(()=>{var rwe=Object.create;var Tj=Object.defineProperty,swe=Object.defineProperties,lwe=Object.getOwnPropertyDescriptor,cwe=Object.getOwnPropertyDescriptors,dwe=Object.getOwnPropertyNames,cz=Object.getOwnPropertySymbols,uwe=Object.getPrototypeOf,Rj=Object.prototype.hasOwnProperty,nX=Object.prototype.propertyIsEnumerable;var iX=(ae,ee,de)=>ee in ae?Tj(ae,ee,{enumerable:!0,configurable:!0,writable:!0,value:de}):ae[ee]=de,pe=(ae,ee)=>{for(var de in ee||(ee={}))Rj.call(ee,de)&&iX(ae,de,ee[de]);if(cz)for(var de of cz(ee))nX.call(ee,de)&&iX(ae,de,ee[de]);return ae},et=(ae,ee)=>swe(ae,cwe(ee));var ji=(ae,ee)=>{var de={};for(var ne in ae)Rj.call(ae,ne)&&ee.indexOf(ne)<0&&(de[ne]=ae[ne]);if(ae!=null&&cz)for(var ne of cz(ae))ee.indexOf(ne)<0&&nX.call(ae,ne)&&(de[ne]=ae[ne]);return de};var yP=(ae,ee)=>()=>(ee||ae((ee={exports:{}}).exports,ee),ee.exports);var hwe=(ae,ee,de,ne)=>{if(ee&&typeof ee=="object"||typeof ee=="function")for(let x of dwe(ee))!Rj.call(ae,x)&&x!==de&&Tj(ae,x,{get:()=>ee[x],enumerable:!(ne=lwe(ee,x))||ne.enumerable});return ae};var bP=(ae,ee,de)=>(de=ae!=null?rwe(uwe(ae)):{},hwe(ee||!ae||!ae.__esModule?Tj(de,"default",{value:ae,enumerable:!0}):de,ae));var KX=yP((UX,kz)=>{(function(ae,ee){"use strict";(function(){for(var s=0,r=["ms","moz","webkit","o"],d=0;d<r.length&&!ae.requestAnimationFrame;++d)ae.requestAnimationFrame=ae[r[d]+"RequestAnimationFrame"],ae.cancelAnimationFrame=ae[r[d]+"CancelAnimationFrame"]||ae[r[d]+"CancelRequestAnimationFrame"];ae.requestAnimationFrame||(ae.requestAnimationFrame=function(g,m){var b=new Date().getTime(),w=Math.max(0,16-(b-s)),k=ae.setTimeout(function(){g(b+w)},w);return s=b+w,k}),ae.cancelAnimationFrame||(ae.cancelAnimationFrame=function(g){clearTimeout(g)})})();var de,ne,x,p=null,M=null,A=null,F=function(s,r,d){s.addEventListener?s.addEventListener(r,d,!1):s.attachEvent?s.attachEvent("on"+r,d):s["on"+r]=d},D={autoRun:!0,barThickness:3,barColors:{0:"rgba(26,  188, 156, .9)",".25":"rgba(52,  152, 219, .9)",".50":"rgba(241, 196, 15,  .9)",".75":"rgba(230, 126, 34,  .9)","1.0":"rgba(211, 84,  0,   .9)"},shadowBlur:10,shadowColor:"rgba(0,   0,   0,   .6)",className:null},f=function(){de.width=ae.innerWidth,de.height=D.barThickness*5;var s=de.getContext("2d");s.shadowBlur=D.shadowBlur,s.shadowColor=D.shadowColor;var r=s.createLinearGradient(0,0,de.width,0);for(var d in D.barColors)r.addColorStop(d,D.barColors[d]);s.lineWidth=D.barThickness,s.beginPath(),s.moveTo(0,D.barThickness/2),s.lineTo(Math.ceil(ne*de.width),D.barThickness/2),s.strokeStyle=r,s.stroke()},v=function(){de=ee.createElement("canvas");var s=de.style;s.position="fixed",s.top=s.left=s.right=s.margin=s.padding=0,s.zIndex=100001,s.display="none",D.className&&de.classList.add(D.className),ee.body.appendChild(de),F(ae,"resize",f)},u={config:function(s){for(var r in s)D.hasOwnProperty(r)&&(D[r]=s[r])},show:function(s){if(!x)if(s){if(A)return;A=setTimeout(()=>u.show(),s)}else x=!0,M!==null&&ae.cancelAnimationFrame(M),de||v(),de.style.opacity=1,de.style.display="block",u.progress(0),D.autoRun&&function r(){p=ae.requestAnimationFrame(r),u.progress("+"+.05*Math.pow(1-Math.sqrt(ne),2))}()},progress:function(s){return typeof s=="undefined"||(typeof s=="string"&&(s=(s.indexOf("+")>=0||s.indexOf("-")>=0?ne:0)+parseFloat(s)),ne=s>1?1:s,f()),ne},hide:function(){clearTimeout(A),A=null,x&&(x=!1,p!=null&&(ae.cancelAnimationFrame(p),p=null),function s(){if(u.progress("+.1")>=1&&(de.style.opacity-=.05,de.style.opacity<=.05)){de.style.display="none",M=null;return}M=ae.requestAnimationFrame(s)}())}};typeof kz=="object"&&typeof kz.exports=="object"?kz.exports=u:typeof define=="function"&&define.amd?define(function(){return u}):this.topbar=u}).call(UX,window,document)});var qX=yP((Az,Zj)=>{(function(ae,ee){typeof Az=="object"&&typeof Zj=="object"?Zj.exports=ee():typeof define=="function"&&define.amd?define([],ee):typeof Az=="object"?Az.agGrid=ee():ae.agGrid=ee()})(self,function(){return function(){"use strict";var ae={8956:function(ne,x,p){var M=p(6758),A=p.n(M),F=p(935),D=p.n(F),f=p(62),v=p.n(f),u=new URL(p(2487),p.b),s=new URL(p(6080),p.b),r=D()(A()),d=v()(u),g=v()(s);r.push([ne.id,`.ag-measurement-container {
  --ag-legacy-styles-loaded: "true";
}

.ag-icon {
  font-family: var(--ag-icon-font-family);
  font-weight: var(--ag-icon-font-weight);
  color: var(--ag-icon-font-color);
  font-size: var(--ag-icon-size);
  line-height: var(--ag-icon-size);
  font-style: normal;
  font-feature-settings: normal;
  font-variant: normal;
  text-transform: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  width: var(--ag-icon-size);
  height: var(--ag-icon-size);
  position: relative;
}
.ag-icon::before {
  content: "";
  font-family: inherit;
}
.ag-icon::after {
  background: transparent none center/contain no-repeat;
  background: transparent var(--ag-icon-image, none) center/contain no-repeat;
  display: var(--ag-icon-image-display);
  opacity: 0.9;
  opacity: var(--ag-icon-image-opacity, 0.9);
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  content: "";
}

.ag-icon-aggregation {
  font-family: var(--ag-icon-font-family-aggregation, var(--ag-icon-font-family));
  font-weight: var(--ag-icon-font-weight-aggregation, var(--ag-icon-font-weight));
  color: var(--ag-icon-font-color-aggregation, var(--ag-icon-font-color));
}

.ag-icon-aggregation::before {
  content: "\\f101";
  content: var(--ag-icon-font-code-aggregation, "\\f101");
  display: var(--ag-icon-font-display-aggregation, var(--ag-icon-font-display));
}

.ag-icon-aggregation::after {
  background-image: var(--ag-icon-image-aggregation, var(--ag-icon-image));
  display: var(--ag-icon-image-display-aggregation, var(--ag-icon-image-display));
  opacity: 0.9;
  opacity: var(--ag-icon-image-opacity-aggregation, var(--ag-icon-image-opacity, 0.9));
}

.ag-icon-arrows {
  font-family: var(--ag-icon-font-family-arrows, var(--ag-icon-font-family));
  font-weight: var(--ag-icon-font-weight-arrows, var(--ag-icon-font-weight));
  color: var(--ag-icon-font-color-arrows, var(--ag-icon-font-color));
}

.ag-icon-arrows::before {
  content: "\\f102";
  content: var(--ag-icon-font-code-arrows, "\\f102");
  display: var(--ag-icon-font-display-arrows, var(--ag-icon-font-display));
}

.ag-icon-arrows::after {
  background-image: var(--ag-icon-image-arrows, var(--ag-icon-image));
  display: var(--ag-icon-image-display-arrows, var(--ag-icon-image-display));
  opacity: 0.9;
  opacity: var(--ag-icon-image-opacity-arrows, var(--ag-icon-image-opacity, 0.9));
}

.ag-icon-asc {
  font-family: var(--ag-icon-font-family-asc, var(--ag-icon-font-family));
  font-weight: var(--ag-icon-font-weight-asc, var(--ag-icon-font-weight));
  color: var(--ag-icon-font-color-asc, var(--ag-icon-font-color));
}

.ag-icon-asc::before {
  content: "\\f103";
  content: var(--ag-icon-font-code-asc, "\\f103");
  display: var(--ag-icon-font-display-asc, var(--ag-icon-font-display));
}

.ag-icon-asc::after {
  background-image: var(--ag-icon-image-asc, var(--ag-icon-image));
  display: var(--ag-icon-image-display-asc, var(--ag-icon-image-display));
  opacity: 0.9;
  opacity: var(--ag-icon-image-opacity-asc, var(--ag-icon-image-opacity, 0.9));
}

.ag-icon-cancel {
  font-family: var(--ag-icon-font-family-cancel, var(--ag-icon-font-family));
  font-weight: var(--ag-icon-font-weight-cancel, var(--ag-icon-font-weight));
  color: var(--ag-icon-font-color-cancel, var(--ag-icon-font-color));
}

.ag-icon-cancel::before {
  content: "\\f104";
  content: var(--ag-icon-font-code-cancel, "\\f104");
  display: var(--ag-icon-font-display-cancel, var(--ag-icon-font-display));
}

.ag-icon-cancel::after {
  background-image: var(--ag-icon-image-cancel, var(--ag-icon-image));
  display: var(--ag-icon-image-display-cancel, var(--ag-icon-image-display));
  opacity: 0.9;
  opacity: var(--ag-icon-image-opacity-cancel, var(--ag-icon-image-opacity, 0.9));
}

.ag-icon-chart {
  font-family: var(--ag-icon-font-family-chart, var(--ag-icon-font-family));
  font-weight: var(--ag-icon-font-weight-chart, var(--ag-icon-font-weight));
  color: var(--ag-icon-font-color-chart, var(--ag-icon-font-color));
}

.ag-icon-chart::before {
  content: "\\f105";
  content: var(--ag-icon-font-code-chart, "\\f105");
  display: var(--ag-icon-font-display-chart, var(--ag-icon-font-display));
}

.ag-icon-chart::after {
  background-image: var(--ag-icon-image-chart, var(--ag-icon-image));
  display: var(--ag-icon-image-display-chart, var(--ag-icon-image-display));
  opacity: 0.9;
  opacity: var(--ag-icon-image-opacity-chart, var(--ag-icon-image-opacity, 0.9));
}

.ag-icon-checkbox-checked {
  font-family: var(--ag-icon-font-family-checkbox-checked, var(--ag-icon-font-family));
  font-weight: var(--ag-icon-font-weight-checkbox-checked, var(--ag-icon-font-weight));
  color: var(--ag-icon-font-color-checkbox-checked, var(--ag-icon-font-color));
}

.ag-icon-checkbox-checked::before {
  content: "\\f106";
  content: var(--ag-icon-font-code-checkbox-checked, "\\f106");
  display: var(--ag-icon-font-display-checkbox-checked, var(--ag-icon-font-display));
}

.ag-icon-checkbox-checked::after {
  background-image: var(--ag-icon-image-checkbox-checked, var(--ag-icon-image));
  display: var(--ag-icon-image-display-checkbox-checked, var(--ag-icon-image-display));
  opacity: 0.9;
  opacity: var(--ag-icon-image-opacity-checkbox-checked, var(--ag-icon-image-opacity, 0.9));
}

.ag-icon-checkbox-indeterminate {
  font-family: var(--ag-icon-font-family-checkbox-indeterminate, var(--ag-icon-font-family));
  font-weight: var(--ag-icon-font-weight-checkbox-indeterminate, var(--ag-icon-font-weight));
  color: var(--ag-icon-font-color-checkbox-indeterminate, var(--ag-icon-font-color));
}

.ag-icon-checkbox-indeterminate::before {
  content: "\\f107";
  content: var(--ag-icon-font-code-checkbox-indeterminate, "\\f107");
  display: var(--ag-icon-font-display-checkbox-indeterminate, var(--ag-icon-font-display));
}

.ag-icon-checkbox-indeterminate::after {
  background-image: var(--ag-icon-image-checkbox-indeterminate, var(--ag-icon-image));
  display: var(--ag-icon-image-display-checkbox-indeterminate, var(--ag-icon-image-display));
  opacity: 0.9;
  opacity: var(--ag-icon-image-opacity-checkbox-indeterminate, var(--ag-icon-image-opacity, 0.9));
}

.ag-icon-checkbox-unchecked {
  font-family: var(--ag-icon-font-family-checkbox-unchecked, var(--ag-icon-font-family));
  font-weight: var(--ag-icon-font-weight-checkbox-unchecked, var(--ag-icon-font-weight));
  color: var(--ag-icon-font-color-checkbox-unchecked, var(--ag-icon-font-color));
}

.ag-icon-checkbox-unchecked::before {
  content: "\\f108";
  content: var(--ag-icon-font-code-checkbox-unchecked, "\\f108");
  display: var(--ag-icon-font-display-checkbox-unchecked, var(--ag-icon-font-display));
}

.ag-icon-checkbox-unchecked::after {
  background-image: var(--ag-icon-image-checkbox-unchecked, var(--ag-icon-image));
  display: var(--ag-icon-image-display-checkbox-unchecked, var(--ag-icon-image-display));
  opacity: 0.9;
  opacity: var(--ag-icon-image-opacity-checkbox-unchecked, var(--ag-icon-image-opacity, 0.9));
}

.ag-icon-color-picker {
  font-family: var(--ag-icon-font-family-color-picker, var(--ag-icon-font-family));
  font-weight: var(--ag-icon-font-weight-color-picker, var(--ag-icon-font-weight));
  color: var(--ag-icon-font-color-color-picker, var(--ag-icon-font-color));
}

.ag-icon-color-picker::before {
  content: "\\f109";
  content: var(--ag-icon-font-code-color-picker, "\\f109");
  display: var(--ag-icon-font-display-color-picker, var(--ag-icon-font-display));
}

.ag-icon-color-picker::after {
  background-image: var(--ag-icon-image-color-picker, var(--ag-icon-image));
  display: var(--ag-icon-image-display-color-picker, var(--ag-icon-image-display));
  opacity: 0.9;
  opacity: var(--ag-icon-image-opacity-color-picker, var(--ag-icon-image-opacity, 0.9));
}

.ag-icon-columns {
  font-family: var(--ag-icon-font-family-columns, var(--ag-icon-font-family));
  font-weight: var(--ag-icon-font-weight-columns, var(--ag-icon-font-weight));
  color: var(--ag-icon-font-color-columns, var(--ag-icon-font-color));
}

.ag-icon-columns::before {
  content: "\\f10a";
  content: var(--ag-icon-font-code-columns, "\\f10a");
  display: var(--ag-icon-font-display-columns, var(--ag-icon-font-display));
}

.ag-icon-columns::after {
  background-image: var(--ag-icon-image-columns, var(--ag-icon-image));
  display: var(--ag-icon-image-display-columns, var(--ag-icon-image-display));
  opacity: 0.9;
  opacity: var(--ag-icon-image-opacity-columns, var(--ag-icon-image-opacity, 0.9));
}

.ag-icon-contracted {
  font-family: var(--ag-icon-font-family-contracted, var(--ag-icon-font-family));
  font-weight: var(--ag-icon-font-weight-contracted, var(--ag-icon-font-weight));
  color: var(--ag-icon-font-color-contracted, var(--ag-icon-font-color));
}

.ag-icon-contracted::before {
  content: "\\f10b";
  content: var(--ag-icon-font-code-contracted, "\\f10b");
  display: var(--ag-icon-font-display-contracted, var(--ag-icon-font-display));
}

.ag-icon-contracted::after {
  background-image: var(--ag-icon-image-contracted, var(--ag-icon-image));
  display: var(--ag-icon-image-display-contracted, var(--ag-icon-image-display));
  opacity: 0.9;
  opacity: var(--ag-icon-image-opacity-contracted, var(--ag-icon-image-opacity, 0.9));
}

.ag-icon-copy {
  font-family: var(--ag-icon-font-family-copy, var(--ag-icon-font-family));
  font-weight: var(--ag-icon-font-weight-copy, var(--ag-icon-font-weight));
  color: var(--ag-icon-font-color-copy, var(--ag-icon-font-color));
}

.ag-icon-copy::before {
  content: "\\f10c";
  content: var(--ag-icon-font-code-copy, "\\f10c");
  display: var(--ag-icon-font-display-copy, var(--ag-icon-font-display));
}

.ag-icon-copy::after {
  background-image: var(--ag-icon-image-copy, var(--ag-icon-image));
  display: var(--ag-icon-image-display-copy, var(--ag-icon-image-display));
  opacity: 0.9;
  opacity: var(--ag-icon-image-opacity-copy, var(--ag-icon-image-opacity, 0.9));
}

.ag-icon-cross {
  font-family: var(--ag-icon-font-family-cross, var(--ag-icon-font-family));
  font-weight: var(--ag-icon-font-weight-cross, var(--ag-icon-font-weight));
  color: var(--ag-icon-font-color-cross, var(--ag-icon-font-color));
}

.ag-icon-cross::before {
  content: "\\f10d";
  content: var(--ag-icon-font-code-cross, "\\f10d");
  display: var(--ag-icon-font-display-cross, var(--ag-icon-font-display));
}

.ag-icon-cross::after {
  background-image: var(--ag-icon-image-cross, var(--ag-icon-image));
  display: var(--ag-icon-image-display-cross, var(--ag-icon-image-display));
  opacity: 0.9;
  opacity: var(--ag-icon-image-opacity-cross, var(--ag-icon-image-opacity, 0.9));
}

.ag-icon-csv {
  font-family: var(--ag-icon-font-family-csv, var(--ag-icon-font-family));
  font-weight: var(--ag-icon-font-weight-csv, var(--ag-icon-font-weight));
  color: var(--ag-icon-font-color-csv, var(--ag-icon-font-color));
}

.ag-icon-csv::before {
  content: "\\f10e";
  content: var(--ag-icon-font-code-csv, "\\f10e");
  display: var(--ag-icon-font-display-csv, var(--ag-icon-font-display));
}

.ag-icon-csv::after {
  background-image: var(--ag-icon-image-csv, var(--ag-icon-image));
  display: var(--ag-icon-image-display-csv, var(--ag-icon-image-display));
  opacity: 0.9;
  opacity: var(--ag-icon-image-opacity-csv, var(--ag-icon-image-opacity, 0.9));
}

.ag-icon-cut {
  font-family: var(--ag-icon-font-family-cut, var(--ag-icon-font-family));
  font-weight: var(--ag-icon-font-weight-cut, var(--ag-icon-font-weight));
  color: var(--ag-icon-font-color-cut, var(--ag-icon-font-color));
}

.ag-icon-cut::before {
  content: "\\f10f";
  content: var(--ag-icon-font-code-cut, "\\f10f");
  display: var(--ag-icon-font-display-cut, var(--ag-icon-font-display));
}

.ag-icon-cut::after {
  background-image: var(--ag-icon-image-cut, var(--ag-icon-image));
  display: var(--ag-icon-image-display-cut, var(--ag-icon-image-display));
  opacity: 0.9;
  opacity: var(--ag-icon-image-opacity-cut, var(--ag-icon-image-opacity, 0.9));
}

.ag-icon-desc {
  font-family: var(--ag-icon-font-family-desc, var(--ag-icon-font-family));
  font-weight: var(--ag-icon-font-weight-desc, var(--ag-icon-font-weight));
  color: var(--ag-icon-font-color-desc, var(--ag-icon-font-color));
}

.ag-icon-desc::before {
  content: "\\f110";
  content: var(--ag-icon-font-code-desc, "\\f110");
  display: var(--ag-icon-font-display-desc, var(--ag-icon-font-display));
}

.ag-icon-desc::after {
  background-image: var(--ag-icon-image-desc, var(--ag-icon-image));
  display: var(--ag-icon-image-display-desc, var(--ag-icon-image-display));
  opacity: 0.9;
  opacity: var(--ag-icon-image-opacity-desc, var(--ag-icon-image-opacity, 0.9));
}

.ag-icon-excel {
  font-family: var(--ag-icon-font-family-excel, var(--ag-icon-font-family));
  font-weight: var(--ag-icon-font-weight-excel, var(--ag-icon-font-weight));
  color: var(--ag-icon-font-color-excel, var(--ag-icon-font-color));
}

.ag-icon-excel::before {
  content: "\\f111";
  content: var(--ag-icon-font-code-excel, "\\f111");
  display: var(--ag-icon-font-display-excel, var(--ag-icon-font-display));
}

.ag-icon-excel::after {
  background-image: var(--ag-icon-image-excel, var(--ag-icon-image));
  display: var(--ag-icon-image-display-excel, var(--ag-icon-image-display));
  opacity: 0.9;
  opacity: var(--ag-icon-image-opacity-excel, var(--ag-icon-image-opacity, 0.9));
}

.ag-icon-expanded {
  font-family: var(--ag-icon-font-family-expanded, var(--ag-icon-font-family));
  font-weight: var(--ag-icon-font-weight-expanded, var(--ag-icon-font-weight));
  color: var(--ag-icon-font-color-expanded, var(--ag-icon-font-color));
}

.ag-icon-expanded::before {
  content: "\\f112";
  content: var(--ag-icon-font-code-expanded, "\\f112");
  display: var(--ag-icon-font-display-expanded, var(--ag-icon-font-display));
}

.ag-icon-expanded::after {
  background-image: var(--ag-icon-image-expanded, var(--ag-icon-image));
  display: var(--ag-icon-image-display-expanded, var(--ag-icon-image-display));
  opacity: 0.9;
  opacity: var(--ag-icon-image-opacity-expanded, var(--ag-icon-image-opacity, 0.9));
}

.ag-icon-eye-slash {
  font-family: var(--ag-icon-font-family-eye-slash, var(--ag-icon-font-family));
  font-weight: var(--ag-icon-font-weight-eye-slash, var(--ag-icon-font-weight));
  color: var(--ag-icon-font-color-eye-slash, var(--ag-icon-font-color));
}

.ag-icon-eye-slash::before {
  content: "\\f113";
  content: var(--ag-icon-font-code-eye-slash, "\\f113");
  display: var(--ag-icon-font-display-eye-slash, var(--ag-icon-font-display));
}

.ag-icon-eye-slash::after {
  background-image: var(--ag-icon-image-eye-slash, var(--ag-icon-image));
  display: var(--ag-icon-image-display-eye-slash, var(--ag-icon-image-display));
  opacity: 0.9;
  opacity: var(--ag-icon-image-opacity-eye-slash, var(--ag-icon-image-opacity, 0.9));
}

.ag-icon-eye {
  font-family: var(--ag-icon-font-family-eye, var(--ag-icon-font-family));
  font-weight: var(--ag-icon-font-weight-eye, var(--ag-icon-font-weight));
  color: var(--ag-icon-font-color-eye, var(--ag-icon-font-color));
}

.ag-icon-eye::before {
  content: "\\f114";
  content: var(--ag-icon-font-code-eye, "\\f114");
  display: var(--ag-icon-font-display-eye, var(--ag-icon-font-display));
}

.ag-icon-eye::after {
  background-image: var(--ag-icon-image-eye, var(--ag-icon-image));
  display: var(--ag-icon-image-display-eye, var(--ag-icon-image-display));
  opacity: 0.9;
  opacity: var(--ag-icon-image-opacity-eye, var(--ag-icon-image-opacity, 0.9));
}

.ag-icon-filter {
  font-family: var(--ag-icon-font-family-filter, var(--ag-icon-font-family));
  font-weight: var(--ag-icon-font-weight-filter, var(--ag-icon-font-weight));
  color: var(--ag-icon-font-color-filter, var(--ag-icon-font-color));
}

.ag-icon-filter::before {
  content: "\\f115";
  content: var(--ag-icon-font-code-filter, "\\f115");
  display: var(--ag-icon-font-display-filter, var(--ag-icon-font-display));
}

.ag-icon-filter::after {
  background-image: var(--ag-icon-image-filter, var(--ag-icon-image));
  display: var(--ag-icon-image-display-filter, var(--ag-icon-image-display));
  opacity: 0.9;
  opacity: var(--ag-icon-image-opacity-filter, var(--ag-icon-image-opacity, 0.9));
}

.ag-icon-first {
  font-family: var(--ag-icon-font-family-first, var(--ag-icon-font-family));
  font-weight: var(--ag-icon-font-weight-first, var(--ag-icon-font-weight));
  color: var(--ag-icon-font-color-first, var(--ag-icon-font-color));
}

.ag-icon-first::before {
  content: "\\f116";
  content: var(--ag-icon-font-code-first, "\\f116");
  display: var(--ag-icon-font-display-first, var(--ag-icon-font-display));
}

.ag-icon-first::after {
  background-image: var(--ag-icon-image-first, var(--ag-icon-image));
  display: var(--ag-icon-image-display-first, var(--ag-icon-image-display));
  opacity: 0.9;
  opacity: var(--ag-icon-image-opacity-first, var(--ag-icon-image-opacity, 0.9));
}

.ag-icon-grip {
  font-family: var(--ag-icon-font-family-grip, var(--ag-icon-font-family));
  font-weight: var(--ag-icon-font-weight-grip, var(--ag-icon-font-weight));
  color: var(--ag-icon-font-color-grip, var(--ag-icon-font-color));
}

.ag-icon-grip::before {
  content: "\\f117";
  content: var(--ag-icon-font-code-grip, "\\f117");
  display: var(--ag-icon-font-display-grip, var(--ag-icon-font-display));
}

.ag-icon-grip::after {
  background-image: var(--ag-icon-image-grip, var(--ag-icon-image));
  display: var(--ag-icon-image-display-grip, var(--ag-icon-image-display));
  opacity: 0.9;
  opacity: var(--ag-icon-image-opacity-grip, var(--ag-icon-image-opacity, 0.9));
}

.ag-icon-group {
  font-family: var(--ag-icon-font-family-group, var(--ag-icon-font-family));
  font-weight: var(--ag-icon-font-weight-group, var(--ag-icon-font-weight));
  color: var(--ag-icon-font-color-group, var(--ag-icon-font-color));
}

.ag-icon-group::before {
  content: "\\f118";
  content: var(--ag-icon-font-code-group, "\\f118");
  display: var(--ag-icon-font-display-group, var(--ag-icon-font-display));
}

.ag-icon-group::after {
  background-image: var(--ag-icon-image-group, var(--ag-icon-image));
  display: var(--ag-icon-image-display-group, var(--ag-icon-image-display));
  opacity: 0.9;
  opacity: var(--ag-icon-image-opacity-group, var(--ag-icon-image-opacity, 0.9));
}

.ag-icon-last {
  font-family: var(--ag-icon-font-family-last, var(--ag-icon-font-family));
  font-weight: var(--ag-icon-font-weight-last, var(--ag-icon-font-weight));
  color: var(--ag-icon-font-color-last, var(--ag-icon-font-color));
}

.ag-icon-last::before {
  content: "\\f119";
  content: var(--ag-icon-font-code-last, "\\f119");
  display: var(--ag-icon-font-display-last, var(--ag-icon-font-display));
}

.ag-icon-last::after {
  background-image: var(--ag-icon-image-last, var(--ag-icon-image));
  display: var(--ag-icon-image-display-last, var(--ag-icon-image-display));
  opacity: 0.9;
  opacity: var(--ag-icon-image-opacity-last, var(--ag-icon-image-opacity, 0.9));
}

.ag-icon-left {
  font-family: var(--ag-icon-font-family-left, var(--ag-icon-font-family));
  font-weight: var(--ag-icon-font-weight-left, var(--ag-icon-font-weight));
  color: var(--ag-icon-font-color-left, var(--ag-icon-font-color));
}

.ag-icon-left::before {
  content: "\\f11a";
  content: var(--ag-icon-font-code-left, "\\f11a");
  display: var(--ag-icon-font-display-left, var(--ag-icon-font-display));
}

.ag-icon-left::after {
  background-image: var(--ag-icon-image-left, var(--ag-icon-image));
  display: var(--ag-icon-image-display-left, var(--ag-icon-image-display));
  opacity: 0.9;
  opacity: var(--ag-icon-image-opacity-left, var(--ag-icon-image-opacity, 0.9));
}

.ag-icon-linked {
  font-family: var(--ag-icon-font-family-linked, var(--ag-icon-font-family));
  font-weight: var(--ag-icon-font-weight-linked, var(--ag-icon-font-weight));
  color: var(--ag-icon-font-color-linked, var(--ag-icon-font-color));
}

.ag-icon-linked::before {
  content: "\\f11b";
  content: var(--ag-icon-font-code-linked, "\\f11b");
  display: var(--ag-icon-font-display-linked, var(--ag-icon-font-display));
}

.ag-icon-linked::after {
  background-image: var(--ag-icon-image-linked, var(--ag-icon-image));
  display: var(--ag-icon-image-display-linked, var(--ag-icon-image-display));
  opacity: 0.9;
  opacity: var(--ag-icon-image-opacity-linked, var(--ag-icon-image-opacity, 0.9));
}

.ag-icon-loading {
  font-family: var(--ag-icon-font-family-loading, var(--ag-icon-font-family));
  font-weight: var(--ag-icon-font-weight-loading, var(--ag-icon-font-weight));
  color: var(--ag-icon-font-color-loading, var(--ag-icon-font-color));
}

.ag-icon-loading::before {
  content: "\\f11c";
  content: var(--ag-icon-font-code-loading, "\\f11c");
  display: var(--ag-icon-font-display-loading, var(--ag-icon-font-display));
}

.ag-icon-loading::after {
  background-image: var(--ag-icon-image-loading, var(--ag-icon-image));
  display: var(--ag-icon-image-display-loading, var(--ag-icon-image-display));
  opacity: 0.9;
  opacity: var(--ag-icon-image-opacity-loading, var(--ag-icon-image-opacity, 0.9));
}

.ag-icon-maximize {
  font-family: var(--ag-icon-font-family-maximize, var(--ag-icon-font-family));
  font-weight: var(--ag-icon-font-weight-maximize, var(--ag-icon-font-weight));
  color: var(--ag-icon-font-color-maximize, var(--ag-icon-font-color));
}

.ag-icon-maximize::before {
  content: "\\f11d";
  content: var(--ag-icon-font-code-maximize, "\\f11d");
  display: var(--ag-icon-font-display-maximize, var(--ag-icon-font-display));
}

.ag-icon-maximize::after {
  background-image: var(--ag-icon-image-maximize, var(--ag-icon-image));
  display: var(--ag-icon-image-display-maximize, var(--ag-icon-image-display));
  opacity: 0.9;
  opacity: var(--ag-icon-image-opacity-maximize, var(--ag-icon-image-opacity, 0.9));
}

.ag-icon-menu {
  font-family: var(--ag-icon-font-family-menu, var(--ag-icon-font-family));
  font-weight: var(--ag-icon-font-weight-menu, var(--ag-icon-font-weight));
  color: var(--ag-icon-font-color-menu, var(--ag-icon-font-color));
}

.ag-icon-menu::before {
  content: "\\f11e";
  content: var(--ag-icon-font-code-menu, "\\f11e");
  display: var(--ag-icon-font-display-menu, var(--ag-icon-font-display));
}

.ag-icon-menu::after {
  background-image: var(--ag-icon-image-menu, var(--ag-icon-image));
  display: var(--ag-icon-image-display-menu, var(--ag-icon-image-display));
  opacity: 0.9;
  opacity: var(--ag-icon-image-opacity-menu, var(--ag-icon-image-opacity, 0.9));
}

.ag-icon-minimize {
  font-family: var(--ag-icon-font-family-minimize, var(--ag-icon-font-family));
  font-weight: var(--ag-icon-font-weight-minimize, var(--ag-icon-font-weight));
  color: var(--ag-icon-font-color-minimize, var(--ag-icon-font-color));
}

.ag-icon-minimize::before {
  content: "\\f11f";
  content: var(--ag-icon-font-code-minimize, "\\f11f");
  display: var(--ag-icon-font-display-minimize, var(--ag-icon-font-display));
}

.ag-icon-minimize::after {
  background-image: var(--ag-icon-image-minimize, var(--ag-icon-image));
  display: var(--ag-icon-image-display-minimize, var(--ag-icon-image-display));
  opacity: 0.9;
  opacity: var(--ag-icon-image-opacity-minimize, var(--ag-icon-image-opacity, 0.9));
}

.ag-icon-next {
  font-family: var(--ag-icon-font-family-next, var(--ag-icon-font-family));
  font-weight: var(--ag-icon-font-weight-next, var(--ag-icon-font-weight));
  color: var(--ag-icon-font-color-next, var(--ag-icon-font-color));
}

.ag-icon-next::before {
  content: "\\f120";
  content: var(--ag-icon-font-code-next, "\\f120");
  display: var(--ag-icon-font-display-next, var(--ag-icon-font-display));
}

.ag-icon-next::after {
  background-image: var(--ag-icon-image-next, var(--ag-icon-image));
  display: var(--ag-icon-image-display-next, var(--ag-icon-image-display));
  opacity: 0.9;
  opacity: var(--ag-icon-image-opacity-next, var(--ag-icon-image-opacity, 0.9));
}

.ag-icon-none {
  font-family: var(--ag-icon-font-family-none, var(--ag-icon-font-family));
  font-weight: var(--ag-icon-font-weight-none, var(--ag-icon-font-weight));
  color: var(--ag-icon-font-color-none, var(--ag-icon-font-color));
}

.ag-icon-none::before {
  content: "\\f121";
  content: var(--ag-icon-font-code-none, "\\f121");
  display: var(--ag-icon-font-display-none, var(--ag-icon-font-display));
}

.ag-icon-none::after {
  background-image: var(--ag-icon-image-none, var(--ag-icon-image));
  display: var(--ag-icon-image-display-none, var(--ag-icon-image-display));
  opacity: 0.9;
  opacity: var(--ag-icon-image-opacity-none, var(--ag-icon-image-opacity, 0.9));
}

.ag-icon-not-allowed {
  font-family: var(--ag-icon-font-family-not-allowed, var(--ag-icon-font-family));
  font-weight: var(--ag-icon-font-weight-not-allowed, var(--ag-icon-font-weight));
  color: var(--ag-icon-font-color-not-allowed, var(--ag-icon-font-color));
}

.ag-icon-not-allowed::before {
  content: "\\f122";
  content: var(--ag-icon-font-code-not-allowed, "\\f122");
  display: var(--ag-icon-font-display-not-allowed, var(--ag-icon-font-display));
}

.ag-icon-not-allowed::after {
  background-image: var(--ag-icon-image-not-allowed, var(--ag-icon-image));
  display: var(--ag-icon-image-display-not-allowed, var(--ag-icon-image-display));
  opacity: 0.9;
  opacity: var(--ag-icon-image-opacity-not-allowed, var(--ag-icon-image-opacity, 0.9));
}

.ag-icon-paste {
  font-family: var(--ag-icon-font-family-paste, var(--ag-icon-font-family));
  font-weight: var(--ag-icon-font-weight-paste, var(--ag-icon-font-weight));
  color: var(--ag-icon-font-color-paste, var(--ag-icon-font-color));
}

.ag-icon-paste::before {
  content: "\\f123";
  content: var(--ag-icon-font-code-paste, "\\f123");
  display: var(--ag-icon-font-display-paste, var(--ag-icon-font-display));
}

.ag-icon-paste::after {
  background-image: var(--ag-icon-image-paste, var(--ag-icon-image));
  display: var(--ag-icon-image-display-paste, var(--ag-icon-image-display));
  opacity: 0.9;
  opacity: var(--ag-icon-image-opacity-paste, var(--ag-icon-image-opacity, 0.9));
}

.ag-icon-pin {
  font-family: var(--ag-icon-font-family-pin, var(--ag-icon-font-family));
  font-weight: var(--ag-icon-font-weight-pin, var(--ag-icon-font-weight));
  color: var(--ag-icon-font-color-pin, var(--ag-icon-font-color));
}

.ag-icon-pin::before {
  content: "\\f124";
  content: var(--ag-icon-font-code-pin, "\\f124");
  display: var(--ag-icon-font-display-pin, var(--ag-icon-font-display));
}

.ag-icon-pin::after {
  background-image: var(--ag-icon-image-pin, var(--ag-icon-image));
  display: var(--ag-icon-image-display-pin, var(--ag-icon-image-display));
  opacity: 0.9;
  opacity: var(--ag-icon-image-opacity-pin, var(--ag-icon-image-opacity, 0.9));
}

.ag-icon-pivot {
  font-family: var(--ag-icon-font-family-pivot, var(--ag-icon-font-family));
  font-weight: var(--ag-icon-font-weight-pivot, var(--ag-icon-font-weight));
  color: var(--ag-icon-font-color-pivot, var(--ag-icon-font-color));
}

.ag-icon-pivot::before {
  content: "\\f125";
  content: var(--ag-icon-font-code-pivot, "\\f125");
  display: var(--ag-icon-font-display-pivot, var(--ag-icon-font-display));
}

.ag-icon-pivot::after {
  background-image: var(--ag-icon-image-pivot, var(--ag-icon-image));
  display: var(--ag-icon-image-display-pivot, var(--ag-icon-image-display));
  opacity: 0.9;
  opacity: var(--ag-icon-image-opacity-pivot, var(--ag-icon-image-opacity, 0.9));
}

.ag-icon-previous {
  font-family: var(--ag-icon-font-family-previous, var(--ag-icon-font-family));
  font-weight: var(--ag-icon-font-weight-previous, var(--ag-icon-font-weight));
  color: var(--ag-icon-font-color-previous, var(--ag-icon-font-color));
}

.ag-icon-previous::before {
  content: "\\f126";
  content: var(--ag-icon-font-code-previous, "\\f126");
  display: var(--ag-icon-font-display-previous, var(--ag-icon-font-display));
}

.ag-icon-previous::after {
  background-image: var(--ag-icon-image-previous, var(--ag-icon-image));
  display: var(--ag-icon-image-display-previous, var(--ag-icon-image-display));
  opacity: 0.9;
  opacity: var(--ag-icon-image-opacity-previous, var(--ag-icon-image-opacity, 0.9));
}

.ag-icon-radio-button-off {
  font-family: var(--ag-icon-font-family-radio-button-off, var(--ag-icon-font-family));
  font-weight: var(--ag-icon-font-weight-radio-button-off, var(--ag-icon-font-weight));
  color: var(--ag-icon-font-color-radio-button-off, var(--ag-icon-font-color));
}

.ag-icon-radio-button-off::before {
  content: "\\f127";
  content: var(--ag-icon-font-code-radio-button-off, "\\f127");
  display: var(--ag-icon-font-display-radio-button-off, var(--ag-icon-font-display));
}

.ag-icon-radio-button-off::after {
  background-image: var(--ag-icon-image-radio-button-off, var(--ag-icon-image));
  display: var(--ag-icon-image-display-radio-button-off, var(--ag-icon-image-display));
  opacity: 0.9;
  opacity: var(--ag-icon-image-opacity-radio-button-off, var(--ag-icon-image-opacity, 0.9));
}

.ag-icon-radio-button-on {
  font-family: var(--ag-icon-font-family-radio-button-on, var(--ag-icon-font-family));
  font-weight: var(--ag-icon-font-weight-radio-button-on, var(--ag-icon-font-weight));
  color: var(--ag-icon-font-color-radio-button-on, var(--ag-icon-font-color));
}

.ag-icon-radio-button-on::before {
  content: "\\f128";
  content: var(--ag-icon-font-code-radio-button-on, "\\f128");
  display: var(--ag-icon-font-display-radio-button-on, var(--ag-icon-font-display));
}

.ag-icon-radio-button-on::after {
  background-image: var(--ag-icon-image-radio-button-on, var(--ag-icon-image));
  display: var(--ag-icon-image-display-radio-button-on, var(--ag-icon-image-display));
  opacity: 0.9;
  opacity: var(--ag-icon-image-opacity-radio-button-on, var(--ag-icon-image-opacity, 0.9));
}

.ag-icon-right {
  font-family: var(--ag-icon-font-family-right, var(--ag-icon-font-family));
  font-weight: var(--ag-icon-font-weight-right, var(--ag-icon-font-weight));
  color: var(--ag-icon-font-color-right, var(--ag-icon-font-color));
}

.ag-icon-right::before {
  content: "\\f129";
  content: var(--ag-icon-font-code-right, "\\f129");
  display: var(--ag-icon-font-display-right, var(--ag-icon-font-display));
}

.ag-icon-right::after {
  background-image: var(--ag-icon-image-right, var(--ag-icon-image));
  display: var(--ag-icon-image-display-right, var(--ag-icon-image-display));
  opacity: 0.9;
  opacity: var(--ag-icon-image-opacity-right, var(--ag-icon-image-opacity, 0.9));
}

.ag-icon-save {
  font-family: var(--ag-icon-font-family-save, var(--ag-icon-font-family));
  font-weight: var(--ag-icon-font-weight-save, var(--ag-icon-font-weight));
  color: var(--ag-icon-font-color-save, var(--ag-icon-font-color));
}

.ag-icon-save::before {
  content: "\\f12a";
  content: var(--ag-icon-font-code-save, "\\f12a");
  display: var(--ag-icon-font-display-save, var(--ag-icon-font-display));
}

.ag-icon-save::after {
  background-image: var(--ag-icon-image-save, var(--ag-icon-image));
  display: var(--ag-icon-image-display-save, var(--ag-icon-image-display));
  opacity: 0.9;
  opacity: var(--ag-icon-image-opacity-save, var(--ag-icon-image-opacity, 0.9));
}

.ag-icon-small-down {
  font-family: var(--ag-icon-font-family-small-down, var(--ag-icon-font-family));
  font-weight: var(--ag-icon-font-weight-small-down, var(--ag-icon-font-weight));
  color: var(--ag-icon-font-color-small-down, var(--ag-icon-font-color));
}

.ag-icon-small-down::before {
  content: "\\f12b";
  content: var(--ag-icon-font-code-small-down, "\\f12b");
  display: var(--ag-icon-font-display-small-down, var(--ag-icon-font-display));
}

.ag-icon-small-down::after {
  background-image: var(--ag-icon-image-small-down, var(--ag-icon-image));
  display: var(--ag-icon-image-display-small-down, var(--ag-icon-image-display));
  opacity: 0.9;
  opacity: var(--ag-icon-image-opacity-small-down, var(--ag-icon-image-opacity, 0.9));
}

.ag-icon-small-left {
  font-family: var(--ag-icon-font-family-small-left, var(--ag-icon-font-family));
  font-weight: var(--ag-icon-font-weight-small-left, var(--ag-icon-font-weight));
  color: var(--ag-icon-font-color-small-left, var(--ag-icon-font-color));
}

.ag-icon-small-left::before {
  content: "\\f12c";
  content: var(--ag-icon-font-code-small-left, "\\f12c");
  display: var(--ag-icon-font-display-small-left, var(--ag-icon-font-display));
}

.ag-icon-small-left::after {
  background-image: var(--ag-icon-image-small-left, var(--ag-icon-image));
  display: var(--ag-icon-image-display-small-left, var(--ag-icon-image-display));
  opacity: 0.9;
  opacity: var(--ag-icon-image-opacity-small-left, var(--ag-icon-image-opacity, 0.9));
}

.ag-icon-small-right {
  font-family: var(--ag-icon-font-family-small-right, var(--ag-icon-font-family));
  font-weight: var(--ag-icon-font-weight-small-right, var(--ag-icon-font-weight));
  color: var(--ag-icon-font-color-small-right, var(--ag-icon-font-color));
}

.ag-icon-small-right::before {
  content: "\\f12d";
  content: var(--ag-icon-font-code-small-right, "\\f12d");
  display: var(--ag-icon-font-display-small-right, var(--ag-icon-font-display));
}

.ag-icon-small-right::after {
  background-image: var(--ag-icon-image-small-right, var(--ag-icon-image));
  display: var(--ag-icon-image-display-small-right, var(--ag-icon-image-display));
  opacity: 0.9;
  opacity: var(--ag-icon-image-opacity-small-right, var(--ag-icon-image-opacity, 0.9));
}

.ag-icon-small-up {
  font-family: var(--ag-icon-font-family-small-up, var(--ag-icon-font-family));
  font-weight: var(--ag-icon-font-weight-small-up, var(--ag-icon-font-weight));
  color: var(--ag-icon-font-color-small-up, var(--ag-icon-font-color));
}

.ag-icon-small-up::before {
  content: "\\f12e";
  content: var(--ag-icon-font-code-small-up, "\\f12e");
  display: var(--ag-icon-font-display-small-up, var(--ag-icon-font-display));
}

.ag-icon-small-up::after {
  background-image: var(--ag-icon-image-small-up, var(--ag-icon-image));
  display: var(--ag-icon-image-display-small-up, var(--ag-icon-image-display));
  opacity: 0.9;
  opacity: var(--ag-icon-image-opacity-small-up, var(--ag-icon-image-opacity, 0.9));
}

.ag-icon-tick {
  font-family: var(--ag-icon-font-family-tick, var(--ag-icon-font-family));
  font-weight: var(--ag-icon-font-weight-tick, var(--ag-icon-font-weight));
  color: var(--ag-icon-font-color-tick, var(--ag-icon-font-color));
}

.ag-icon-tick::before {
  content: "\\f12f";
  content: var(--ag-icon-font-code-tick, "\\f12f");
  display: var(--ag-icon-font-display-tick, var(--ag-icon-font-display));
}

.ag-icon-tick::after {
  background-image: var(--ag-icon-image-tick, var(--ag-icon-image));
  display: var(--ag-icon-image-display-tick, var(--ag-icon-image-display));
  opacity: 0.9;
  opacity: var(--ag-icon-image-opacity-tick, var(--ag-icon-image-opacity, 0.9));
}

.ag-icon-tree-closed {
  font-family: var(--ag-icon-font-family-tree-closed, var(--ag-icon-font-family));
  font-weight: var(--ag-icon-font-weight-tree-closed, var(--ag-icon-font-weight));
  color: var(--ag-icon-font-color-tree-closed, var(--ag-icon-font-color));
}

.ag-icon-tree-closed::before {
  content: "\\f130";
  content: var(--ag-icon-font-code-tree-closed, "\\f130");
  display: var(--ag-icon-font-display-tree-closed, var(--ag-icon-font-display));
}

.ag-icon-tree-closed::after {
  background-image: var(--ag-icon-image-tree-closed, var(--ag-icon-image));
  display: var(--ag-icon-image-display-tree-closed, var(--ag-icon-image-display));
  opacity: 0.9;
  opacity: var(--ag-icon-image-opacity-tree-closed, var(--ag-icon-image-opacity, 0.9));
}

.ag-icon-tree-indeterminate {
  font-family: var(--ag-icon-font-family-tree-indeterminate, var(--ag-icon-font-family));
  font-weight: var(--ag-icon-font-weight-tree-indeterminate, var(--ag-icon-font-weight));
  color: var(--ag-icon-font-color-tree-indeterminate, var(--ag-icon-font-color));
}

.ag-icon-tree-indeterminate::before {
  content: "\\f131";
  content: var(--ag-icon-font-code-tree-indeterminate, "\\f131");
  display: var(--ag-icon-font-display-tree-indeterminate, var(--ag-icon-font-display));
}

.ag-icon-tree-indeterminate::after {
  background-image: var(--ag-icon-image-tree-indeterminate, var(--ag-icon-image));
  display: var(--ag-icon-image-display-tree-indeterminate, var(--ag-icon-image-display));
  opacity: 0.9;
  opacity: var(--ag-icon-image-opacity-tree-indeterminate, var(--ag-icon-image-opacity, 0.9));
}

.ag-icon-tree-open {
  font-family: var(--ag-icon-font-family-tree-open, var(--ag-icon-font-family));
  font-weight: var(--ag-icon-font-weight-tree-open, var(--ag-icon-font-weight));
  color: var(--ag-icon-font-color-tree-open, var(--ag-icon-font-color));
}

.ag-icon-tree-open::before {
  content: "\\f132";
  content: var(--ag-icon-font-code-tree-open, "\\f132");
  display: var(--ag-icon-font-display-tree-open, var(--ag-icon-font-display));
}

.ag-icon-tree-open::after {
  background-image: var(--ag-icon-image-tree-open, var(--ag-icon-image));
  display: var(--ag-icon-image-display-tree-open, var(--ag-icon-image-display));
  opacity: 0.9;
  opacity: var(--ag-icon-image-opacity-tree-open, var(--ag-icon-image-opacity, 0.9));
}

.ag-icon-unlinked {
  font-family: var(--ag-icon-font-family-unlinked, var(--ag-icon-font-family));
  font-weight: var(--ag-icon-font-weight-unlinked, var(--ag-icon-font-weight));
  color: var(--ag-icon-font-color-unlinked, var(--ag-icon-font-color));
}

.ag-icon-unlinked::before {
  content: "\\f133";
  content: var(--ag-icon-font-code-unlinked, "\\f133");
  display: var(--ag-icon-font-display-unlinked, var(--ag-icon-font-display));
}

.ag-icon-unlinked::after {
  background-image: var(--ag-icon-image-unlinked, var(--ag-icon-image));
  display: var(--ag-icon-image-display-unlinked, var(--ag-icon-image-display));
  opacity: 0.9;
  opacity: var(--ag-icon-image-opacity-unlinked, var(--ag-icon-image-opacity, 0.9));
}

.ag-icon-up {
  font-family: var(--ag-icon-font-family-up, var(--ag-icon-font-family));
  font-weight: var(--ag-icon-font-weight-up, var(--ag-icon-font-weight));
  color: var(--ag-icon-font-color-up, var(--ag-icon-font-color));
}

.ag-icon-up::before {
  content: "\\f134";
  content: var(--ag-icon-font-code-up, "\\f134");
  display: var(--ag-icon-font-display-up, var(--ag-icon-font-display));
}

.ag-icon-up::after {
  background-image: var(--ag-icon-image-up, var(--ag-icon-image));
  display: var(--ag-icon-image-display-up, var(--ag-icon-image-display));
  opacity: 0.9;
  opacity: var(--ag-icon-image-opacity-up, var(--ag-icon-image-opacity, 0.9));
}

.ag-icon-down {
  font-family: var(--ag-icon-font-family-down, var(--ag-icon-font-family));
  font-weight: var(--ag-icon-font-weight-down, var(--ag-icon-font-weight));
  color: var(--ag-icon-font-color-down, var(--ag-icon-font-color));
}

.ag-icon-down::before {
  content: "\\f135";
  content: var(--ag-icon-font-code-down, "\\f135");
  display: var(--ag-icon-font-display-down, var(--ag-icon-font-display));
}

.ag-icon-down::after {
  background-image: var(--ag-icon-image-down, var(--ag-icon-image));
  display: var(--ag-icon-image-display-down, var(--ag-icon-image-display));
  opacity: 0.9;
  opacity: var(--ag-icon-image-opacity-down, var(--ag-icon-image-opacity, 0.9));
}

.ag-icon-plus {
  font-family: var(--ag-icon-font-family-plus, var(--ag-icon-font-family));
  font-weight: var(--ag-icon-font-weight-plus, var(--ag-icon-font-weight));
  color: var(--ag-icon-font-color-plus, var(--ag-icon-font-color));
}

.ag-icon-plus::before {
  content: "\\f136";
  content: var(--ag-icon-font-code-plus, "\\f136");
  display: var(--ag-icon-font-display-plus, var(--ag-icon-font-display));
}

.ag-icon-plus::after {
  background-image: var(--ag-icon-image-plus, var(--ag-icon-image));
  display: var(--ag-icon-image-display-plus, var(--ag-icon-image-display));
  opacity: 0.9;
  opacity: var(--ag-icon-image-opacity-plus, var(--ag-icon-image-opacity, 0.9));
}

.ag-icon-minus {
  font-family: var(--ag-icon-font-family-minus, var(--ag-icon-font-family));
  font-weight: var(--ag-icon-font-weight-minus, var(--ag-icon-font-weight));
  color: var(--ag-icon-font-color-minus, var(--ag-icon-font-color));
}

.ag-icon-minus::before {
  content: "\\f137";
  content: var(--ag-icon-font-code-minus, "\\f137");
  display: var(--ag-icon-font-display-minus, var(--ag-icon-font-display));
}

.ag-icon-minus::after {
  background-image: var(--ag-icon-image-minus, var(--ag-icon-image));
  display: var(--ag-icon-image-display-minus, var(--ag-icon-image-display));
  opacity: 0.9;
  opacity: var(--ag-icon-image-opacity-minus, var(--ag-icon-image-opacity, 0.9));
}

.ag-icon-menu-alt {
  font-family: var(--ag-icon-font-family-menu-alt, var(--ag-icon-font-family));
  font-weight: var(--ag-icon-font-weight-menu-alt, var(--ag-icon-font-weight));
  color: var(--ag-icon-font-color-menu-alt, var(--ag-icon-font-color));
}

.ag-icon-menu-alt::before {
  content: "\\f138";
  content: var(--ag-icon-font-code-menu-alt, "\\f138");
  display: var(--ag-icon-font-display-menu-alt, var(--ag-icon-font-display));
}

.ag-icon-menu-alt::after {
  background-image: var(--ag-icon-image-menu-alt, var(--ag-icon-image));
  display: var(--ag-icon-image-display-menu-alt, var(--ag-icon-image-display));
  opacity: 0.9;
  opacity: var(--ag-icon-image-opacity-menu-alt, var(--ag-icon-image-opacity, 0.9));
}

.ag-icon-settings {
  font-family: var(--ag-icon-font-family-settings, var(--ag-icon-font-family));
  font-weight: var(--ag-icon-font-weight-settings, var(--ag-icon-font-weight));
  color: var(--ag-icon-font-color-settings, var(--ag-icon-font-color));
}

.ag-icon-settings::before {
  content: "\\f139";
  content: var(--ag-icon-font-code-settings, "\\f139");
  display: var(--ag-icon-font-display-settings, var(--ag-icon-font-display));
}

.ag-icon-settings::after {
  background-image: var(--ag-icon-image-settings, var(--ag-icon-image));
  display: var(--ag-icon-image-display-settings, var(--ag-icon-image-display));
  opacity: 0.9;
  opacity: var(--ag-icon-image-opacity-settings, var(--ag-icon-image-opacity, 0.9));
}

.ag-icon-row-drag::before {
  content: var(--ag-icon-font-code-grip);
}

.ag-left-arrow::before {
  content: var(--ag-icon-font-code-left);
}

.ag-right-arrow::before {
  content: var(--ag-icon-font-code-right);
}

[class*=ag-theme-] {
  --ag-foreground-color: #000;
  --ag-data-color: var(--ag-foreground-color);
  --ag-secondary-foreground-color: var(--ag-foreground-color);
  --ag-header-foreground-color: var(--ag-secondary-foreground-color);
  --ag-disabled-foreground-color: rgba(0, 0, 0, 0.5);
  --ag-background-color: #fff;
  --ag-header-background-color: transparent;
  --ag-tooltip-background-color: transparent;
  --ag-subheader-background-color: transparent;
  --ag-subheader-toolbar-background-color: transparent;
  --ag-control-panel-background-color: transparent;
  --ag-side-button-selected-background-color: var(--ag-control-panel-background-color);
  --ag-selected-row-background-color: #bbb;
  --ag-odd-row-background-color: var(--ag-background-color);
  --ag-modal-overlay-background-color: rgba(255, 255, 255, 0.66);
  --ag-menu-background-color: var(--ag-background-color);
  --ag-menu-border-color: var(--ag-border-color);
  --ag-panel-background-color: var(--ag-background-color);
  --ag-panel-border-color: var(--ag-border-color);
  --ag-row-hover-color: transparent;
  --ag-column-hover-color: transparent;
  --ag-range-selection-border-color: var(--ag-foreground-color);
  --ag-range-selection-border-style: solid;
  --ag-range-selection-background-color: rgba(0, 0, 0, 0.2);
  --ag-range-selection-background-color-2: var(--ag-range-selection-background-color);
  --ag-range-selection-background-color-3: var(--ag-range-selection-background-color);
  --ag-range-selection-background-color-4: var(--ag-range-selection-background-color);
  --ag-range-selection-highlight-color: var(--ag-range-selection-border-color);
  --ag-selected-tab-underline-color: var(--ag-range-selection-border-color);
  --ag-selected-tab-underline-width: 0;
  --ag-selected-tab-underline-transition-speed: 0s;
  --ag-range-selection-chart-category-background-color: rgba(0, 255, 132, 0.1);
  --ag-range-selection-chart-background-color: rgba(0, 88, 255, 0.1);
  --ag-header-cell-hover-background-color: transparent;
  --ag-header-cell-moving-background-color: var(--ag-background-color);
  --ag-value-change-value-highlight-background-color: rgba(22, 160, 133, 0.5);
  --ag-value-change-delta-up-color: #43a047;
  --ag-value-change-delta-down-color: #e53935;
  --ag-row-loading-skeleton-effect-color: rgba(66, 66, 66, 0.2);
  --ag-chip-background-color: transparent;
  --ag-chip-border-color: var(--ag-chip-background-color);
  --ag-borders: solid 1px;
  --ag-border-color: rgba(0, 0, 0, 0.25);
  --ag-borders-critical: var(--ag-borders);
  --ag-borders-secondary: var(--ag-borders);
  --ag-secondary-border-color: var(--ag-border-color);
  --ag-row-border-style: solid;
  --ag-row-border-color: var(--ag-secondary-border-color);
  --ag-row-border-width: 1px;
  --ag-cell-horizontal-border: solid transparent;
  --ag-borders-input: var(--ag-borders-secondary);
  --ag-input-border-color: var(--ag-secondary-border-color);
  --ag-borders-input-invalid: solid 2px;
  --ag-input-border-color-invalid: var(--ag-invalid-color);
  --ag-borders-side-button: var(--ag-borders);
  --ag-border-radius: 0px;
  --ag-wrapper-border-radius: var(--ag-border-radius);
  --ag-row-border-color: var(--ag-secondary-border-color);
  --ag-header-column-separator-display: none;
  --ag-header-column-separator-height: 100%;
  --ag-header-column-separator-width: 1px;
  --ag-header-column-separator-color: var(--ag-secondary-border-color);
  --ag-header-column-resize-handle-display: none;
  --ag-header-column-resize-handle-height: 50%;
  --ag-header-column-resize-handle-width: 1px;
  --ag-header-column-resize-handle-color: var(--ag-secondary-border-color);
  --ag-invalid-color: red;
  --ag-input-disabled-border-color: var(--ag-input-border-color);
  --ag-input-disabled-background-color: transparent;
  --ag-checkbox-background-color: transparent;
  --ag-checkbox-border-radius: var(--ag-border-radius);
  --ag-checkbox-checked-color: var(--ag-foreground-color);
  --ag-checkbox-unchecked-color: var(--ag-foreground-color);
  --ag-checkbox-indeterminate-color: var(--ag-checkbox-unchecked-color);
  --ag-toggle-button-off-border-color: var(--ag-checkbox-unchecked-color);
  --ag-toggle-button-off-background-color: var(--ag-checkbox-unchecked-color);
  --ag-toggle-button-on-border-color: var(--ag-checkbox-checked-color);
  --ag-toggle-button-on-background-color: var(--ag-checkbox-checked-color);
  --ag-toggle-button-switch-background-color: var(--ag-background-color);
  --ag-toggle-button-switch-border-color: var(--ag-toggle-button-off-border-color);
  --ag-toggle-button-border-width: 1px;
  --ag-toggle-button-height: var(--ag-icon-size);
  --ag-toggle-button-width: calc(var(--ag-toggle-button-height) * 2);
  --ag-input-focus-box-shadow: none;
  --ag-input-focus-border-color: none;
  --ag-minichart-selected-chart-color: var(--ag-checkbox-checked-color);
  --ag-minichart-selected-page-color: var(--ag-checkbox-checked-color);
  --ag-grid-size: 4px;
  --ag-icon-size: 12px;
  --ag-icon-font-weight: normal;
  --ag-icon-font-color: var(--ag-foreground-color);
  --ag-icon-image-display: block;
  --ag-widget-container-horizontal-padding: calc(var(--ag-grid-size) * 1.5);
  --ag-widget-container-vertical-padding: calc(var(--ag-grid-size) * 1.5);
  --ag-widget-horizontal-spacing: calc(var(--ag-grid-size) * 2);
  --ag-widget-vertical-spacing: var(--ag-grid-size);
  --ag-cell-horizontal-padding: calc(var(--ag-grid-size) * 3);
  --ag-cell-widget-spacing: var(--ag-cell-horizontal-padding);
  --ag-row-height: calc(var(--ag-grid-size) * 6 + 1px);
  --ag-header-height: var(--ag-row-height);
  --ag-list-item-height: calc(var(--ag-grid-size) * 5);
  --ag-column-select-indent-size: calc(var(--ag-grid-size) + var(--ag-icon-size));
  --ag-set-filter-indent-size: calc(var(--ag-grid-size) + var(--ag-icon-size));
  --ag-advanced-filter-builder-indent-size: calc(var(--ag-grid-size) * 2 + var(--ag-icon-size));
  --ag-row-group-indent-size: calc(var(--ag-cell-widget-spacing) + var(--ag-icon-size));
  --ag-filter-tool-panel-group-indent: 16px;
  --ag-tab-min-width: 220px;
  --ag-chart-menu-panel-width: var(--ag-tab-min-width);
  --ag-menu-min-width: 181px;
  --ag-side-bar-panel-width: 200px;
  --ag-font-family: "Helvetica Neue", sans-serif;
  --ag-font-size: 14px;
  --ag-card-radius: var(--ag-border-radius);
  --ag-card-shadow: none;
  --ag-popup-shadow: 5px 5px 10px rgba(0, 0, 0, 0.3);
  --ag-advanced-filter-join-pill-color: #f08e8d;
  --ag-advanced-filter-column-pill-color: #a6e194;
  --ag-advanced-filter-option-pill-color: #f3c08b;
  --ag-advanced-filter-value-pill-color: #85c0e4;
}

.ag-root-wrapper,
.ag-sticky-top,
.ag-sticky-bottom,
.ag-dnd-ghost {
  background-color: var(--ag-background-color);
}

.ag-sticky-bottom {
  border-top: var(--ag-row-border-style) var(--ag-row-border-color) var(--ag-row-border-width);
}

.ag-root-wrapper,
.ag-popup {
  --ag-indentation-level: 0;
}

[class*=ag-theme-] {
  -webkit-font-smoothing: antialiased;
  font-family: var(--ag-font-family);
  font-size: var(--ag-font-size);
  line-height: normal;
  color: var(--ag-foreground-color);
}

ag-grid,
ag-grid-angular,
ag-grid-ng2,
ag-grid-polymer,
ag-grid-aurelia {
  display: block;
}

.ag-aria-description-container {
  z-index: 9999;
  border: 0px;
  clip: rect(1px, 1px, 1px, 1px);
  height: 1px;
  width: 1px;
  position: absolute;
  overflow: hidden;
  padding: 0px;
  white-space: nowrap;
}

.ag-hidden {
  display: none !important;
}

.ag-invisible {
  visibility: hidden !important;
}

.ag-drag-handle {
  cursor: grab;
}

.ag-column-drop-wrapper {
  display: flex;
}

.ag-column-drop-horizontal-half-width {
  display: inline-block;
  width: 50% !important;
}

.ag-unselectable {
  -moz-user-select: none;
  -webkit-user-select: none;
  user-select: none;
}

.ag-selectable {
  -moz-user-select: text;
  -webkit-user-select: text;
  user-select: text;
}

.ag-tab {
  position: relative;
}

.ag-tab-guard {
  position: absolute;
  width: 0;
  height: 0;
  display: block;
}

.ag-virtual-list-viewport .ag-tab-guard {
  position: sticky;
}

.ag-tab-guard-top {
  top: 1px;
}

.ag-tab-guard-bottom {
  bottom: 1px;
}

.ag-select-agg-func-popup {
  position: absolute;
}

.ag-input-wrapper,
.ag-picker-field-wrapper {
  display: flex;
  flex: 1 1 auto;
  align-items: center;
  line-height: normal;
  position: relative;
}

.ag-shake-left-to-right {
  animation-direction: alternate;
  animation-duration: 0.2s;
  animation-iteration-count: infinite;
  animation-name: ag-shake-left-to-right;
}

@keyframes ag-shake-left-to-right {
  from {
    padding-left: 6px;
    padding-right: 2px;
  }
  to {
    padding-left: 2px;
    padding-right: 6px;
  }
}
.ag-root-wrapper {
  cursor: default;
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  white-space: normal;
}
.ag-root-wrapper.ag-layout-normal {
  height: 100%;
}

.ag-watermark {
  position: absolute;
  bottom: 20px;
  right: 25px;
  opacity: 0.7;
  transition: opacity 1s ease-out 3s;
  color: #9b9b9b;
}
.ag-watermark::before {
  content: "";
  background-image: url(`+d+`);
  background-repeat: no-repeat;
  background-size: 170px 40px;
  display: block;
  height: 40px;
  width: 170px;
}

.ag-watermark-text {
  opacity: 0.5;
  font-weight: bold;
  font-family: Impact, sans-serif;
  font-size: 19px;
  padding-left: 0.7rem;
}

.ag-root-wrapper-body {
  display: flex;
  flex-direction: row;
}
.ag-root-wrapper-body.ag-layout-normal {
  flex: 1 1 auto;
  height: 0;
  min-height: 0;
}

.ag-root {
  position: relative;
  display: flex;
  flex-direction: column;
}
.ag-root.ag-layout-normal, .ag-root.ag-layout-auto-height {
  overflow: hidden;
  flex: 1 1 auto;
  width: 0;
}
.ag-root.ag-layout-normal {
  height: 100%;
}

.ag-header-viewport,
.ag-floating-top-viewport,
.ag-body-viewport,
.ag-center-cols-viewport,
.ag-floating-bottom-viewport,
.ag-body-horizontal-scroll-viewport,
.ag-body-vertical-scroll-viewport,
.ag-virtual-list-viewport,
.ag-sticky-top-viewport,
.ag-sticky-bottom-viewport {
  position: relative;
  height: 100%;
  min-width: 0px;
  overflow: hidden;
  flex: 1 1 auto;
}

.ag-body-viewport,
.ag-center-cols-viewport,
.ag-header-viewport,
.ag-floating-top-viewport,
.ag-floating-bottom-viewport,
.ag-sticky-top-viewport,
.ag-sticky-bottom-viewport {
  overflow-x: auto;
  -ms-overflow-style: none !important;
  scrollbar-width: none !important;
}
.ag-body-viewport::-webkit-scrollbar,
.ag-center-cols-viewport::-webkit-scrollbar,
.ag-header-viewport::-webkit-scrollbar,
.ag-floating-top-viewport::-webkit-scrollbar,
.ag-floating-bottom-viewport::-webkit-scrollbar,
.ag-sticky-top-viewport::-webkit-scrollbar,
.ag-sticky-bottom-viewport::-webkit-scrollbar {
  display: none !important;
}

.ag-body-viewport {
  display: flex;
  overflow-x: hidden;
}
.ag-body-viewport.ag-layout-normal {
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.ag-sticky-top-container,
.ag-sticky-bottom-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-header-container,
.ag-floating-top-container,
.ag-body-container,
.ag-pinned-right-cols-container,
.ag-center-cols-container,
.ag-pinned-left-cols-container,
.ag-floating-bottom-container,
.ag-body-horizontal-scroll-container,
.ag-body-vertical-scroll-container,
.ag-full-width-container,
.ag-floating-bottom-full-width-container,
.ag-virtual-list-container,
.ag-sticky-top-container,
.ag-sticky-bottom-container {
  position: relative;
}

.ag-header-container,
.ag-floating-top-container,
.ag-floating-bottom-container,
.ag-sticky-top-container,
.ag-sticky-bottom-container {
  height: 100%;
  white-space: nowrap;
}

.ag-center-cols-container {
  display: block;
}

.ag-pinned-right-cols-container {
  display: block;
}

.ag-body-horizontal-scroll-container {
  height: 100%;
}

.ag-body-vertical-scroll-container {
  width: 100%;
}

.ag-full-width-container,
.ag-floating-top-full-width-container,
.ag-floating-bottom-full-width-container,
.ag-sticky-top-full-width-container,
.ag-sticky-bottom-full-width-container {
  position: absolute;
  top: 0px;
  pointer-events: none;
}
.ag-ltr .ag-full-width-container,
.ag-ltr .ag-floating-top-full-width-container,
.ag-ltr .ag-floating-bottom-full-width-container,
.ag-ltr .ag-sticky-top-full-width-container,
.ag-ltr .ag-sticky-bottom-full-width-container {
  left: 0;
}
.ag-rtl .ag-full-width-container,
.ag-rtl .ag-floating-top-full-width-container,
.ag-rtl .ag-floating-bottom-full-width-container,
.ag-rtl .ag-sticky-top-full-width-container,
.ag-rtl .ag-sticky-bottom-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;
  overflow: hidden;
  height: 100%;
  width: 100%;
}

.ag-virtual-list-container {
  overflow: hidden;
}

.ag-body {
  position: relative;
  display: flex;
  flex: 1 1 auto;
  flex-direction: row !important;
  min-height: 0;
}

.ag-body-horizontal-scroll,
.ag-body-vertical-scroll {
  min-height: 0;
  min-width: 0;
  display: flex;
  position: relative;
}
.ag-body-horizontal-scroll.ag-scrollbar-invisible,
.ag-body-vertical-scroll.ag-scrollbar-invisible {
  position: absolute;
  bottom: 0;
}
.ag-body-horizontal-scroll.ag-scrollbar-invisible.ag-apple-scrollbar,
.ag-body-vertical-scroll.ag-scrollbar-invisible.ag-apple-scrollbar {
  opacity: 0;
  transition: opacity 400ms;
  visibility: hidden;
}
.ag-body-horizontal-scroll.ag-scrollbar-invisible.ag-apple-scrollbar.ag-scrollbar-scrolling, .ag-body-horizontal-scroll.ag-scrollbar-invisible.ag-apple-scrollbar.ag-scrollbar-active,
.ag-body-vertical-scroll.ag-scrollbar-invisible.ag-apple-scrollbar.ag-scrollbar-scrolling,
.ag-body-vertical-scroll.ag-scrollbar-invisible.ag-apple-scrollbar.ag-scrollbar-active {
  visibility: visible;
  opacity: 1;
}

.ag-body-horizontal-scroll {
  width: 100%;
}
.ag-body-horizontal-scroll.ag-scrollbar-invisible {
  left: 0;
  right: 0;
}

.ag-body-vertical-scroll {
  height: 100%;
}
.ag-body-vertical-scroll.ag-scrollbar-invisible {
  top: 0;
  z-index: 10;
}
.ag-ltr .ag-body-vertical-scroll.ag-scrollbar-invisible {
  right: 0;
}
.ag-rtl .ag-body-vertical-scroll.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;
}
.ag-horizontal-left-spacer.ag-scroller-corner,
.ag-horizontal-right-spacer.ag-scroller-corner {
  overflow-x: hidden;
}

.ag-header,
.ag-pinned-left-header,
.ag-pinned-right-header {
  display: inline-block;
  overflow: hidden;
  position: relative;
}

.ag-header-cell-sortable .ag-header-cell-label {
  cursor: pointer;
}

.ag-header {
  display: flex;
  width: 100%;
  white-space: nowrap;
}

.ag-pinned-left-header {
  height: 100%;
}

.ag-pinned-right-header {
  height: 100%;
}

.ag-header-row {
  position: absolute;
}

.ag-header-row:not(.ag-header-row-column-group) {
  overflow: hidden;
}

.ag-header.ag-header-allow-overflow .ag-header-row {
  overflow: visible;
}

.ag-header-cell {
  display: inline-flex;
  align-items: center;
  position: absolute;
  height: 100%;
  overflow: hidden;
}

.ag-header-cell.ag-header-active .ag-header-cell-menu-button,
.ag-header-cell-filter-button {
  opacity: 1;
}

.ag-header-cell-menu-button:not(.ag-header-menu-always-show) {
  transition: opacity 0.2s;
  opacity: 0;
}

.ag-header-group-cell-label,
.ag-header-cell-label {
  display: flex;
  flex: 1 1 auto;
  align-self: stretch;
  align-items: center;
  overflow: hidden;
}

.ag-header-cell-label {
  text-overflow: ellipsis;
}

.ag-header-group-cell-label.ag-sticky-label {
  position: sticky;
  flex: none;
  max-width: 100%;
  overflow: visible;
}

.ag-header-group-text {
  overflow: hidden;
  text-overflow: ellipsis;
}

.ag-header-cell-text {
  overflow: hidden;
  text-overflow: ellipsis;
  word-break: break-word;
}

.ag-header-group-cell .ag-header-cell-comp-wrapper {
  display: flex;
}

.ag-header-cell:not(.ag-header-cell-auto-height) .ag-header-cell-comp-wrapper {
  height: 100%;
  display: flex;
  align-items: center;
}

.ag-header-cell-comp-wrapper {
  width: 100%;
}

.ag-header-cell-wrap-text .ag-header-cell-comp-wrapper {
  white-space: normal;
}

.ag-header-cell-comp-wrapper-limited-height > div {
  overflow: hidden;
}

.ag-right-aligned-header .ag-header-cell-label {
  flex-direction: row-reverse;
}

.ag-header-cell-resize {
  position: absolute;
  z-index: 2;
  height: 100%;
  width: 8px;
  top: 0;
  cursor: ew-resize;
}
.ag-ltr .ag-header-cell-resize {
  right: -3px;
}
.ag-rtl .ag-header-cell-resize {
  left: -3px;
}

.ag-pinned-left-header .ag-header-cell-resize {
  right: -3px;
}

.ag-pinned-right-header .ag-header-cell-resize {
  left: -3px;
}

.ag-header-select-all {
  display: flex;
}

.ag-header-cell-menu-button,
.ag-header-cell-filter-button,
.ag-side-button-button,
.ag-panel-title-bar-button,
.ag-floating-filter-button-button {
  cursor: pointer;
}

.ag-column-moving .ag-cell {
  transition: left 0.2s;
}
.ag-column-moving .ag-header-cell {
  transition: left 0.2s;
}
.ag-column-moving .ag-header-group-cell {
  transition: left 0.2s, width 0.2s;
}

.ag-column-panel {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  flex: 1 1 auto;
}

.ag-column-select {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  flex: 3 1 0px;
}

.ag-column-select-header {
  position: relative;
  display: flex;
  flex: none;
}

.ag-column-select-header-icon {
  position: relative;
}

.ag-column-select-header-filter-wrapper {
  flex: 1 1 auto;
}

.ag-column-select-header-filter {
  width: 100%;
}

.ag-column-select-list {
  flex: 1 1 0px;
  overflow: hidden;
}

.ag-column-drop {
  position: relative;
  display: inline-flex;
  align-items: center;
  overflow: auto;
  width: 100%;
}

.ag-column-drop-list {
  display: flex;
  align-items: center;
}

.ag-column-drop-cell {
  position: relative;
  display: flex;
  align-items: center;
}

.ag-column-drop-cell-text {
  overflow: hidden;
  flex: 1 1 auto;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ag-column-drop-vertical {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  align-items: stretch;
  flex: 1 1 0px;
}

.ag-column-drop-vertical-title-bar {
  display: flex;
  align-items: center;
  flex: none;
}

.ag-column-drop-vertical-list {
  position: relative;
  align-items: stretch;
  flex-grow: 1;
  flex-direction: column;
  overflow-x: auto;
}
.ag-column-drop-vertical-list > * {
  flex: none;
}

.ag-column-drop-empty .ag-column-drop-vertical-list {
  overflow: hidden;
}

.ag-column-drop-vertical-empty-message {
  display: block;
}

.ag-column-drop.ag-column-drop-horizontal {
  white-space: nowrap;
  overflow: hidden;
}

.ag-column-drop-cell-button {
  cursor: pointer;
}

.ag-filter-toolpanel {
  flex: 1 1 0px;
  min-width: 0;
}

.ag-filter-toolpanel-header {
  position: relative;
}

.ag-filter-toolpanel-header,
.ag-filter-toolpanel-search {
  display: flex;
  align-items: center;
}
.ag-filter-toolpanel-header > *,
.ag-filter-toolpanel-search > * {
  display: flex;
  align-items: center;
}

.ag-filter-apply-panel {
  display: flex;
  justify-content: flex-end;
  overflow: hidden;
}

.ag-row-animation .ag-row {
  transition: transform 0.4s, top 0.4s, opacity 0.2s;
}

.ag-row-animation .ag-row.ag-after-created {
  transition: transform 0.4s, top 0.4s, height 0.4s, opacity 0.2s;
}

.ag-row-no-animation .ag-row {
  transition: none;
}

.ag-row {
  white-space: nowrap;
  width: 100%;
}

.ag-row-loading {
  display: flex;
  align-items: center;
}

.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 {
  display: flex;
  align-items: center;
}

.ag-cell {
  display: inline-block;
  position: absolute;
  white-space: nowrap;
  height: 100%;
}

.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;
}

.ag-cell-wrapper {
  display: flex;
  align-items: center;
}
.ag-cell-wrapper.ag-row-group {
  align-items: flex-start;
}

.ag-sparkline-wrapper {
  position: absolute;
  height: 100%;
  width: 100%;
  left: 0;
  top: 0;
}

.ag-sparkline-wrapper :where(canvas) {
  position: absolute;
}

.ag-full-width-row .ag-cell-wrapper.ag-row-group {
  height: 100%;
  align-items: center;
}

.ag-cell-inline-editing {
  z-index: 1;
}
.ag-cell-inline-editing .ag-cell-wrapper,
.ag-cell-inline-editing .ag-cell-edit-wrapper,
.ag-cell-inline-editing .ag-cell-editor,
.ag-cell-inline-editing .ag-cell-editor .ag-wrapper,
.ag-cell-inline-editing .ag-cell-editor input {
  height: 100%;
  width: 100%;
  line-height: normal;
}

.ag-cell .ag-icon {
  display: inline-block;
  vertical-align: middle;
}

.ag-set-filter-item {
  display: flex;
  align-items: center;
  height: 100%;
}

.ag-set-filter-item-checkbox {
  display: flex;
  width: 100%;
  height: 100%;
}

.ag-set-filter-group-icons {
  display: block;
}
.ag-set-filter-group-icons > * {
  cursor: pointer;
}

.ag-filter-body-wrapper {
  display: flex;
  flex-direction: column;
}

.ag-filter-filter {
  flex: 1 1 0px;
}

.ag-filter-condition {
  display: flex;
  justify-content: center;
}

.ag-floating-filter-body {
  position: relative;
  display: flex;
  flex: 1 1 auto;
  height: 100%;
}

.ag-floating-filter-full-body {
  display: flex;
  flex: 1 1 auto;
  height: 100%;
  width: 100%;
  align-items: center;
  overflow: hidden;
}

.ag-floating-filter-full-body > div {
  flex: 1 1 auto;
}

.ag-floating-filter-input {
  align-items: center;
  display: flex;
  width: 100%;
}
.ag-floating-filter-input > * {
  flex: 1 1 auto;
}

.ag-floating-filter-button {
  display: flex;
  flex: none;
}

.ag-set-floating-filter-input input[disabled] {
  pointer-events: none;
}

.ag-dnd-ghost {
  display: inline-flex;
  align-items: center;
  cursor: move;
  white-space: nowrap;
}

.ag-overlay {
  height: 100%;
  left: 0;
  pointer-events: none;
  position: absolute;
  top: 0;
  width: 100%;
  z-index: 2;
}

.ag-overlay-panel {
  display: flex;
  height: 100%;
  width: 100%;
}

.ag-overlay-wrapper {
  display: flex;
  flex: none;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.ag-overlay-loading-wrapper {
  pointer-events: all;
}

.ag-popup-child {
  z-index: 5;
  top: 0;
}

.ag-popup-editor {
  position: absolute;
  -moz-user-select: none;
  -webkit-user-select: none;
  user-select: none;
}

.ag-large-text-input {
  display: block;
}

.ag-virtual-list-item {
  position: absolute;
  width: 100%;
}

.ag-floating-top {
  overflow: hidden;
  white-space: nowrap;
  width: 100%;
  position: relative;
  display: flex;
}

.ag-pinned-left-floating-top {
  display: inline-block;
  overflow: hidden;
  position: relative;
  min-width: 0px;
}

.ag-pinned-right-floating-top {
  display: inline-block;
  overflow: hidden;
  position: relative;
  min-width: 0px;
}

.ag-floating-bottom {
  overflow: hidden;
  white-space: nowrap;
  width: 100%;
  position: relative;
  display: flex;
}

.ag-pinned-left-floating-bottom {
  display: inline-block;
  overflow: hidden;
  position: relative;
  min-width: 0px;
}

.ag-pinned-right-floating-bottom {
  display: inline-block;
  overflow: hidden;
  position: relative;
  min-width: 0px;
}

.ag-sticky-top,
.ag-sticky-bottom {
  position: absolute;
  display: flex;
  width: 100%;
  overflow: hidden;
  height: 0px;
}

.ag-sticky-bottom {
  box-sizing: content-box !important;
}

.ag-pinned-left-sticky-top,
.ag-pinned-right-sticky-top {
  position: relative;
  height: 100%;
  overflow: hidden;
}

.ag-sticky-top-full-width-container,
.ag-sticky-bottom-full-width-container {
  overflow: hidden;
  width: 100%;
  height: 100%;
}

.ag-dialog,
.ag-panel {
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.ag-panel-title-bar {
  display: flex;
  flex: none;
  align-items: center;
  cursor: default;
}

.ag-panel-title-bar-title {
  flex: 1 1 auto;
}

.ag-panel-title-bar-buttons {
  display: flex;
}

.ag-panel-title-bar-button {
  cursor: pointer;
}

.ag-panel-content-wrapper {
  display: flex;
  flex: 1 1 auto;
  position: relative;
  overflow: hidden;
}

.ag-dialog {
  position: absolute;
}

.ag-resizer {
  position: absolute;
  pointer-events: none;
  z-index: 1;
  -moz-user-select: none;
  -webkit-user-select: none;
  user-select: none;
}
.ag-resizer.ag-resizer-topLeft {
  top: 0;
  left: 0;
  height: 5px;
  width: 5px;
  cursor: nwse-resize;
}
.ag-resizer.ag-resizer-top {
  top: 0;
  left: 5px;
  right: 5px;
  height: 5px;
  cursor: ns-resize;
}
.ag-resizer.ag-resizer-topRight {
  top: 0;
  right: 0;
  height: 5px;
  width: 5px;
  cursor: nesw-resize;
}
.ag-resizer.ag-resizer-right {
  top: 5px;
  right: 0;
  bottom: 5px;
  width: 5px;
  cursor: ew-resize;
}
.ag-resizer.ag-resizer-bottomRight {
  bottom: 0;
  right: 0;
  height: 5px;
  width: 5px;
  cursor: nwse-resize;
}
.ag-resizer.ag-resizer-bottom {
  bottom: 0;
  left: 5px;
  right: 5px;
  height: 5px;
  cursor: ns-resize;
}
.ag-resizer.ag-resizer-bottomLeft {
  bottom: 0;
  left: 0;
  height: 5px;
  width: 5px;
  cursor: nesw-resize;
}
.ag-resizer.ag-resizer-left {
  left: 0;
  top: 5px;
  bottom: 5px;
  width: 5px;
  cursor: ew-resize;
}

.ag-tooltip {
  position: absolute;
  z-index: 99999;
}

.ag-tooltip-custom {
  position: absolute;
  z-index: 99999;
}

.ag-tooltip:not(.ag-tooltip-interactive),
.ag-tooltip-custom:not(.ag-tooltip-interactive) {
  pointer-events: none;
}

.ag-value-slide-out {
  margin-right: 5px;
  opacity: 1;
  transition: opacity 3s, margin-right 3s;
  transition-timing-function: linear;
}

.ag-value-slide-out-end {
  margin-right: 10px;
  opacity: 0;
}

.ag-opacity-zero {
  opacity: 0 !important;
}

.ag-menu {
  max-height: 100%;
  overflow-y: auto;
  position: absolute;
  -moz-user-select: none;
  -webkit-user-select: none;
  user-select: none;
}

.ag-menu-column-select-wrapper {
  height: 265px;
  overflow: auto;
}
.ag-menu-column-select-wrapper .ag-column-select {
  height: 100%;
}

.ag-dialog .ag-panel-content-wrapper .ag-column-select {
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
}

.ag-menu-list {
  display: table;
  width: 100%;
}

.ag-menu-option,
.ag-menu-separator {
  display: table-row;
}

.ag-menu-option-part,
.ag-menu-separator-part {
  display: table-cell;
  vertical-align: middle;
}

.ag-menu-option-text {
  white-space: nowrap;
}

.ag-menu-option-custom {
  display: contents;
}

.ag-compact-menu-option {
  width: 100%;
  display: flex;
  flex-wrap: nowrap;
}

.ag-compact-menu-option-text {
  white-space: nowrap;
  flex: 1 1 auto;
}

.ag-context-menu-loading-icon {
  position: absolute;
  pointer-events: none;
}

.ag-pill-container {
  display: flex;
  gap: 0.25rem;
  flex-wrap: nowrap;
}

.ag-pill {
  display: flex;
  white-space: nowrap;
  padding: 0 0.25rem;
  align-items: center;
}

.ag-pill .ag-pill-button {
  border: none;
  padding: 0;
}

.ag-rich-select {
  cursor: default;
  outline: none;
  height: 100%;
}

.ag-rich-select-value {
  display: flex;
  align-items: center;
  height: 100%;
}
.ag-rich-select-value .ag-picker-field-display {
  overflow: hidden;
  text-overflow: ellipsis;
}
.ag-rich-select-value .ag-picker-field-display.ag-display-as-placeholder {
  opacity: 0.5;
}

.ag-rich-select-list {
  position: relative;
}
.ag-rich-select-list .ag-loading-text {
  min-height: 2rem;
}

.ag-rich-select-row {
  display: flex;
  flex: 1 1 auto;
  align-items: center;
  white-space: nowrap;
  overflow: hidden;
  height: 100%;
}

.ag-rich-select-field-input {
  flex: 1 1 auto;
}
.ag-rich-select-field-input .ag-input-field-input {
  padding: 0 !important;
  border: none !important;
  box-shadow: none !important;
  text-overflow: ellipsis;
}
.ag-rich-select-field-input .ag-input-field-input::-moz-placeholder {
  opacity: 0.8;
}
.ag-rich-select-field-input .ag-input-field-input::placeholder {
  opacity: 0.8;
}

.ag-autocomplete {
  align-items: center;
  display: flex;
}
.ag-autocomplete > * {
  flex: 1 1 auto;
}

.ag-autocomplete-list-popup {
  position: absolute;
  -moz-user-select: none;
  -webkit-user-select: none;
  user-select: none;
}

.ag-autocomplete-list {
  position: relative;
}

.ag-autocomplete-virtual-list-item {
  display: flex;
}

.ag-autocomplete-row {
  display: flex;
  flex: 1 1 auto;
  align-items: center;
  overflow: hidden;
}

.ag-autocomplete-row-label {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ag-paging-panel {
  align-items: center;
  display: flex;
  justify-content: flex-end;
}

.ag-paging-page-summary-panel {
  display: flex;
  align-items: center;
}

.ag-paging-button {
  position: relative;
}

.ag-disabled .ag-paging-page-summary-panel {
  pointer-events: none;
}

.ag-tool-panel-wrapper {
  display: flex;
  overflow-y: auto;
  overflow-x: hidden;
  cursor: default;
  -moz-user-select: none;
  -webkit-user-select: none;
  user-select: none;
}

.ag-column-select-column,
.ag-column-select-column-group,
.ag-select-agg-func-item {
  position: relative;
  align-items: center;
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  height: 100%;
}
.ag-column-select-column > *,
.ag-column-select-column-group > *,
.ag-select-agg-func-item > * {
  flex: none;
}

.ag-select-agg-func-item,
.ag-column-select-column-label {
  flex: 1 1 auto;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ag-column-select-checkbox {
  display: flex;
}

.ag-tool-panel-horizontal-resize {
  cursor: ew-resize;
  height: 100%;
  position: absolute;
  top: 0;
  width: 5px;
  z-index: 1;
}

.ag-ltr .ag-side-bar-left .ag-tool-panel-horizontal-resize {
  right: -3px;
}
.ag-rtl .ag-side-bar-left .ag-tool-panel-horizontal-resize {
  left: -3px;
}

.ag-ltr .ag-side-bar-right .ag-tool-panel-horizontal-resize {
  left: -3px;
}
.ag-rtl .ag-side-bar-right .ag-tool-panel-horizontal-resize {
  right: -3px;
}

.ag-details-row {
  width: 100%;
}

.ag-details-row-fixed-height {
  height: 100%;
}

.ag-details-grid {
  width: 100%;
}

.ag-details-grid-fixed-height {
  height: 100%;
}

.ag-header-group-cell {
  display: flex;
  align-items: center;
  height: 100%;
  position: absolute;
}

.ag-header-group-cell-no-group.ag-header-span-height {
  display: none;
}

.ag-cell-label-container {
  display: flex;
  justify-content: space-between;
  flex-direction: row-reverse;
  align-items: center;
  height: 100%;
  width: 100%;
}

.ag-header-group-cell-label,
.ag-cell-label-container {
  padding: 5px 0px;
}

.ag-right-aligned-header .ag-cell-label-container {
  flex-direction: row;
}
.ag-right-aligned-header .ag-header-cell-text {
  text-align: right;
}

.ag-side-bar {
  display: flex;
  flex-direction: row-reverse;
}

.ag-side-bar-left {
  order: -1;
  flex-direction: row;
}

.ag-side-button-button {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex-wrap: nowrap;
  white-space: nowrap;
  outline: none;
  cursor: pointer;
}

.ag-side-button-label {
  writing-mode: vertical-lr;
}

.ag-status-bar {
  display: flex;
  justify-content: space-between;
  overflow: hidden;
}

.ag-status-panel {
  display: inline-flex;
}

.ag-status-name-value {
  white-space: nowrap;
}

.ag-status-bar-left {
  display: inline-flex;
}

.ag-status-bar-center {
  display: inline-flex;
}

.ag-status-bar-right {
  display: inline-flex;
}

.ag-icon {
  display: block;
  speak: none;
}

.ag-group {
  position: relative;
  width: 100%;
}

.ag-group-title-bar {
  display: flex;
  align-items: center;
}

.ag-group-title {
  display: inline;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.ag-group-title-bar .ag-group-title {
  cursor: default;
}

.ag-group-toolbar {
  display: flex;
  align-items: center;
}

.ag-group-container {
  display: flex;
}

.ag-disabled .ag-group-container {
  pointer-events: none;
}

.ag-group-container-horizontal {
  flex-direction: row;
  flex-wrap: wrap;
}

.ag-group-container-vertical {
  flex-direction: column;
}

.ag-column-group-icons {
  display: block;
}
.ag-column-group-icons > * {
  cursor: pointer;
}

.ag-group-item-alignment-stretch .ag-group-item {
  align-items: stretch;
}

.ag-group-item-alignment-start .ag-group-item {
  align-items: flex-start;
}

.ag-group-item-alignment-end .ag-group-item {
  align-items: flex-end;
}

.ag-toggle-button-icon {
  transition: right 0.3s;
  position: absolute;
  top: -1px;
}

.ag-input-field,
.ag-select {
  display: flex;
  flex-direction: row;
  align-items: center;
}

.ag-input-field-input {
  flex: 1 1 auto;
}

.ag-floating-filter-input .ag-input-field-input[type=date] {
  width: 1px;
}

.ag-range-field {
  display: flex;
  align-items: center;
}

.ag-angle-select {
  display: flex;
  align-items: center;
}

.ag-angle-select-wrapper {
  display: flex;
}

.ag-angle-select-parent-circle {
  display: block;
  position: relative;
}

.ag-angle-select-child-circle {
  position: absolute;
}

.ag-slider-wrapper {
  display: flex;
}
.ag-slider-wrapper .ag-input-field {
  flex: 1 1 auto;
}

.ag-picker-field-display {
  flex: 1 1 auto;
}

.ag-picker-field {
  display: flex;
  align-items: center;
}

.ag-picker-field-icon {
  display: flex;
  border: 0;
  padding: 0;
  margin: 0;
  cursor: pointer;
}

.ag-picker-field-wrapper {
  overflow: hidden;
}

.ag-label-align-right .ag-label {
  order: 1;
}
.ag-label-align-right > * {
  flex: none;
}

.ag-label-align-top {
  flex-direction: column;
  align-items: flex-start;
}
.ag-label-align-top > * {
  align-self: stretch;
}

.ag-label-ellipsis {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1;
}

.ag-color-panel {
  width: 100%;
  display: flex;
  flex-direction: column;
  text-align: center;
}

.ag-spectrum-color {
  flex: 1 1 auto;
  position: relative;
  overflow: visible;
  cursor: default;
}

.ag-spectrum-fill {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
}

.ag-spectrum-val {
  cursor: pointer;
}

.ag-spectrum-dragger {
  position: absolute;
  pointer-events: none;
  cursor: pointer;
}

.ag-spectrum-hue,
.ag-spectrum-alpha {
  cursor: default;
}

.ag-spectrum-hue-background {
  background: linear-gradient(to left, #ff0000 3%, #ffff00 17%, #00ff00 33%, #00ffff 50%, #0000ff 67%, #ff00ff 83%, #ff0000 100%);
  width: 100%;
  height: 100%;
}

.ag-spectrum-alpha {
  --ag-spectrum-alpha-background-checked: url(`+g+`);
}

.ag-spectrum-alpha-background {
  background: linear-gradient(to right, var(--ag-internal-spectrum-alpha-color-from), var(--ag-internal-spectrum-alpha-color-to)), var(--ag-spectrum-alpha-background-checked) top left/4px 4px;
  width: 100%;
  height: 100%;
}

.ag-spectrum-tool {
  cursor: pointer;
  position: relative;
}

.ag-spectrum-slider {
  position: absolute;
  pointer-events: none;
}

.ag-spectrum-alpha .ag-spectrum-slider {
  background: linear-gradient(to bottom, var(--ag-internal-spectrum-alpha-color), var(--ag-internal-spectrum-alpha-color)) white;
}

.ag-recent-colors {
  display: flex;
}

.ag-recent-color {
  cursor: pointer;
}

.ag-pill-select {
  display: flex;
  flex-direction: column;
}
.ag-pill-select .ag-column-drop {
  flex: initial;
}

.ag-ltr {
  direction: ltr;
}
.ag-ltr .ag-body,
.ag-ltr .ag-floating-top,
.ag-ltr .ag-floating-bottom,
.ag-ltr .ag-header,
.ag-ltr .ag-sticky-top,
.ag-ltr .ag-sticky-bottom,
.ag-ltr .ag-body-viewport,
.ag-ltr .ag-body-horizontal-scroll {
  flex-direction: row;
}

.ag-rtl {
  direction: rtl;
}
.ag-rtl .ag-body,
.ag-rtl .ag-floating-top,
.ag-rtl .ag-floating-bottom,
.ag-rtl .ag-header,
.ag-rtl .ag-sticky-top,
.ag-rtl .ag-sticky-bottom,
.ag-rtl .ag-body-viewport,
.ag-rtl .ag-body-horizontal-scroll {
  flex-direction: row-reverse;
}
.ag-rtl .ag-icon-contracted,
.ag-rtl .ag-icon-expanded,
.ag-rtl .ag-icon-tree-closed {
  display: block;
  transform: rotate(180deg);
}

.ag-body .ag-body-viewport {
  -webkit-overflow-scrolling: touch;
}

.ag-measurement-container {
  width: 0;
  overflow: hidden;
  visibility: hidden;
}
.ag-measurement-container div {
  position: absolute;
}

.ag-layout-print.ag-body {
  display: block;
  height: auto;
  height: initial;
}
.ag-layout-print.ag-root-wrapper {
  display: inline-block;
}
.ag-layout-print .ag-body-vertical-scroll {
  display: none;
}
.ag-layout-print .ag-body-horizontal-scroll {
  display: none;
}
.ag-layout-print.ag-force-vertical-scroll {
  overflow-y: visible !important;
}

@media print {
  .ag-root-wrapper.ag-layout-print {
    display: table;
  }
  .ag-root-wrapper.ag-layout-print .ag-root-wrapper-body,
  .ag-root-wrapper.ag-layout-print .ag-root,
  .ag-root-wrapper.ag-layout-print .ag-body-viewport,
  .ag-root-wrapper.ag-layout-print .ag-center-cols-container,
  .ag-root-wrapper.ag-layout-print .ag-center-cols-viewport,
  .ag-root-wrapper.ag-layout-print .ag-body-horizontal-scroll-viewport,
  .ag-root-wrapper.ag-layout-print .ag-virtual-list-viewport {
    height: auto !important;
    overflow: hidden !important;
    display: block !important;
  }
  .ag-root-wrapper.ag-layout-print .ag-row,
  .ag-root-wrapper.ag-layout-print .ag-cell {
    page-break-inside: avoid;
    -moz-column-break-inside: avoid;
         break-inside: avoid;
  }
}
[class^=ag-],
[class^=ag-]:focus,
[class^=ag-]:after,
[class^=ag-]:before {
  box-sizing: border-box;
  outline: none;
}

[class^=ag-]::-ms-clear {
  display: none;
}

.ag-checkbox .ag-input-wrapper,
.ag-radio-button .ag-input-wrapper {
  overflow: visible;
}

.ag-range-field .ag-input-wrapper {
  height: 100%;
}

.ag-toggle-button {
  flex: none;
  width: auto;
  width: initial;
  min-width: 0;
  min-width: initial;
}

.ag-button {
  border-radius: 0px;
  color: var(--ag-foreground-color);
}

.ag-button:hover {
  background-color: transparent;
}

.ag-ltr .ag-label-align-right .ag-label {
  margin-left: var(--ag-grid-size);
}
.ag-rtl .ag-label-align-right .ag-label {
  margin-right: var(--ag-grid-size);
}

input[class^=ag-] {
  margin: 0;
  background-color: var(--ag-background-color);
}

textarea[class^=ag-],
select[class^=ag-] {
  background-color: var(--ag-background-color);
}

input[class^=ag-]:not([type]),
input[class^=ag-][type=text],
input[class^=ag-][type=number],
input[class^=ag-][type=tel],
input[class^=ag-][type=date],
input[class^=ag-][type=datetime-local],
textarea[class^=ag-] {
  font-size: inherit;
  line-height: inherit;
  color: inherit;
  font-family: inherit;
  border: var(--ag-borders-input) var(--ag-input-border-color);
}
input[class^=ag-]:not([type]):disabled,
input[class^=ag-][type=text]:disabled,
input[class^=ag-][type=number]:disabled,
input[class^=ag-][type=tel]:disabled,
input[class^=ag-][type=date]:disabled,
input[class^=ag-][type=datetime-local]:disabled,
textarea[class^=ag-]:disabled {
  color: var(--ag-disabled-foreground-color);
  background-color: var(--ag-input-disabled-background-color);
  border-color: var(--ag-input-disabled-border-color);
}
input[class^=ag-]:not([type]):focus,
input[class^=ag-][type=text]:focus,
input[class^=ag-][type=number]:focus,
input[class^=ag-][type=tel]:focus,
input[class^=ag-][type=date]:focus,
input[class^=ag-][type=datetime-local]:focus,
textarea[class^=ag-]:focus {
  outline: none;
  box-shadow: var(--ag-input-focus-box-shadow);
  border-color: var(--ag-input-focus-border-color);
}
input[class^=ag-]:not([type]):invalid,
input[class^=ag-][type=text]:invalid,
input[class^=ag-][type=number]:invalid,
input[class^=ag-][type=tel]:invalid,
input[class^=ag-][type=date]:invalid,
input[class^=ag-][type=datetime-local]:invalid,
textarea[class^=ag-]:invalid {
  border: var(--ag-borders-input-invalid) var(--ag-input-border-color-invalid);
}

input[class^=ag-][type=number]:not(.ag-number-field-input-stepper) {
  -moz-appearance: textfield;
}
input[class^=ag-][type=number]:not(.ag-number-field-input-stepper)::-webkit-outer-spin-button, input[class^=ag-][type=number]:not(.ag-number-field-input-stepper)::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

input[class^=ag-][type=range] {
  padding: 0;
}

input[class^=ag-][type=button]:focus,
button[class^=ag-]:focus {
  box-shadow: var(--ag-input-focus-box-shadow);
}

.ag-drag-handle {
  color: var(--ag-secondary-foreground-color);
}

.ag-list-item,
.ag-virtual-list-item {
  height: var(--ag-list-item-height);
}

.ag-virtual-list-item:focus-visible {
  outline: none;
}
.ag-virtual-list-item:focus-visible::after {
  content: "";
  position: absolute;
  background-color: transparent;
  pointer-events: none;
  top: 4px;
  left: 4px;
  display: block;
  width: calc(100% - 8px);
  height: calc(100% - 8px);
  border: 1px solid;
  border-color: var(--ag-input-focus-border-color);
}

.ag-select-list {
  background-color: var(--ag-background-color);
  overflow-y: auto;
  overflow-x: hidden;
  border-radius: var(--ag-border-radius);
  border: var(--ag-borders) var(--ag-border-color);
}

.ag-list-item {
  display: flex;
  align-items: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ag-list-item.ag-active-item {
  background-color: var(--ag-row-hover-color);
}

.ag-select-list-item {
  -moz-user-select: none;
  -webkit-user-select: none;
  user-select: none;
  cursor: default;
}
.ag-ltr .ag-select-list-item {
  padding-left: calc(var(--ag-cell-horizontal-padding) / 2);
}
.ag-rtl .ag-select-list-item {
  padding-right: calc(var(--ag-cell-horizontal-padding) / 2);
}
.ag-select-list-item span {
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}

.ag-row-drag,
.ag-selection-checkbox,
.ag-group-expanded,
.ag-group-contracted {
  color: var(--ag-secondary-foreground-color);
}
.ag-ltr .ag-row-drag,
.ag-ltr .ag-selection-checkbox,
.ag-ltr .ag-group-expanded,
.ag-ltr .ag-group-contracted {
  margin-right: var(--ag-cell-widget-spacing);
}
.ag-rtl .ag-row-drag,
.ag-rtl .ag-selection-checkbox,
.ag-rtl .ag-group-expanded,
.ag-rtl .ag-group-contracted {
  margin-left: var(--ag-cell-widget-spacing);
}

.ag-cell-wrapper > *:not(.ag-cell-value):not(.ag-group-value) {
  --ag-internal-calculated-line-height: var(
      --ag-line-height,
      calc(var(--ag-row-height) - var(--ag-row-border-width))
  );
  --ag-internal-padded-row-height: calc(var(--ag-row-height) - var(--ag-row-border-width));
  height: min(var(--ag-internal-calculated-line-height), var(--ag-internal-padded-row-height));
  display: flex;
  align-items: center;
  flex: none;
}

.ag-group-expanded,
.ag-group-contracted {
  cursor: pointer;
}

.ag-group-title-bar-icon {
  cursor: pointer;
  flex: none;
  color: var(--ag-secondary-foreground-color);
}

.ag-ltr .ag-group-child-count {
  margin-left: 2px;
}
.ag-rtl .ag-group-child-count {
  margin-right: 2px;
}

.ag-group-title-bar {
  background-color: var(--ag-subheader-background-color);
  padding: var(--ag-grid-size);
}

.ag-group-toolbar {
  padding: var(--ag-grid-size);
  background-color: var(--ag-subheader-toolbar-background-color);
}

.ag-disabled-group-title-bar,
.ag-disabled-group-container {
  opacity: 0.5;
}

.group-item {
  margin: calc(var(--ag-grid-size) * 0.5) 0;
}

.ag-label {
  white-space: nowrap;
}
.ag-ltr .ag-label {
  margin-right: var(--ag-grid-size);
}
.ag-rtl .ag-label {
  margin-left: var(--ag-grid-size);
}

.ag-label-align-top .ag-label {
  margin-bottom: calc(var(--ag-grid-size) * 0.5);
}

.ag-angle-select[disabled] {
  color: var(--ag-disabled-foreground-color);
  pointer-events: none;
}
.ag-angle-select[disabled] .ag-angle-select-field {
  opacity: 0.4;
}

.ag-ltr .ag-slider-field,
.ag-ltr .ag-angle-select-field {
  margin-right: calc(var(--ag-grid-size) * 2);
}
.ag-rtl .ag-slider-field,
.ag-rtl .ag-angle-select-field {
  margin-left: calc(var(--ag-grid-size) * 2);
}

.ag-angle-select-parent-circle {
  width: 24px;
  height: 24px;
  border-radius: 12px;
  border: solid 1px;
  border-color: var(--ag-border-color);
  background-color: var(--ag-background-color);
}

.ag-angle-select-child-circle {
  top: 4px;
  left: 12px;
  width: 6px;
  height: 6px;
  margin-left: -3px;
  margin-top: -4px;
  border-radius: 3px;
  background-color: var(--ag-secondary-foreground-color);
}

.ag-picker-field-wrapper {
  border: var(--ag-borders);
  border-color: var(--ag-border-color);
  border-radius: 5px;
  background-color: var(--ag-background-color);
}
.ag-picker-field-wrapper:disabled {
  color: var(--ag-disabled-foreground-color);
  background-color: var(--ag-input-disabled-background-color);
  border-color: var(--ag-input-disabled-border-color);
}
.ag-picker-field-wrapper.ag-picker-has-focus, .ag-picker-field-wrapper:focus-within {
  outline: none;
  box-shadow: var(--ag-input-focus-box-shadow);
  border-color: var(--ag-input-focus-border-color);
}

.ag-picker-field-button {
  background-color: var(--ag-background-color);
  color: var(--ag-secondary-foreground-color);
}

.ag-dialog.ag-color-dialog {
  border-radius: 5px;
}

.ag-color-picker .ag-picker-field-wrapper {
  padding-left: var(--ag-grid-size);
  padding-right: var(--ag-grid-size);
}
.ag-color-picker .ag-picker-field-display {
  display: flex;
  flex-direction: row;
  align-items: center;
  min-height: var(--ag-list-item-height);
}

.ag-ltr .ag-color-picker-color,
.ag-ltr .ag-color-picker-value {
  margin-right: var(--ag-grid-size);
}
.ag-rtl .ag-color-picker-color,
.ag-rtl .ag-color-picker-value {
  margin-left: var(--ag-grid-size);
}

.ag-color-panel {
  padding: var(--ag-grid-size);
}

.ag-spectrum-color {
  background-color: rgb(255, 0, 0);
  border-radius: 2px;
}

.ag-spectrum-tools {
  padding: 10px;
}

.ag-spectrum-sat {
  background-image: linear-gradient(to right, white, rgba(204, 154, 129, 0));
}

.ag-spectrum-val {
  background-image: linear-gradient(to top, black, rgba(204, 154, 129, 0));
}

.ag-spectrum-dragger {
  border-radius: 12px;
  height: 12px;
  width: 12px;
  border: 2px solid white;
  background: black;
  box-shadow: 0 0 2px 0px rgba(0, 0, 0, 0.24);
}

.ag-spectrum-hue-background {
  border-radius: 2px;
}

.ag-spectrum-alpha-background {
  border-radius: 2px;
}

.ag-spectrum-tool {
  margin-bottom: 10px;
  height: 11px;
  border-radius: 2px;
}

.ag-spectrum-slider {
  margin-top: -12px;
  width: 13px;
  height: 13px;
  border-radius: 13px;
  border: 2px solid white;
  box-shadow: 0 1px 4px 0 rgba(0, 0, 0, 0.37);
}

.ag-recent-colors {
  margin-top: 10px;
}

.ag-recent-color {
  margin: 0 3px;
}
.ag-recent-color:first-child {
  margin-left: 0;
}
.ag-recent-color:last-child {
  margin-right: 0;
}

.ag-spectrum-color:focus-visible:not(:disabled):not([readonly]),
.ag-spectrum-slider:focus-visible:not(:disabled):not([readonly]),
.ag-recent-color:focus-visible:not(:disabled):not([readonly]) {
  box-shadow: var(--ag-input-focus-box-shadow);
}

.ag-ltr .ag-color-input input[class^=ag-][type=text].ag-input-field-input {
  padding-left: calc(var(--ag-icon-size) + var(--ag-grid-size) * 2);
}
.ag-rtl .ag-color-input input[class^=ag-][type=text].ag-input-field-input {
  padding-right: calc(var(--ag-icon-size) + var(--ag-grid-size) * 2);
}
.ag-color-input .ag-color-input-color {
  position: absolute;
}
.ag-ltr .ag-color-input .ag-color-input-color {
  margin-left: var(--ag-grid-size);
}
.ag-rtl .ag-color-input .ag-color-input-color {
  margin-right: var(--ag-grid-size);
}

.ag-color-picker-color,
.ag-color-input-color {
  width: var(--ag-icon-size);
  height: var(--ag-icon-size);
  border: var(--ag-borders-secondary) var(--ag-secondary-border-color);
  border-radius: 2px;
}

.ag-dnd-ghost {
  border: var(--ag-borders) var(--ag-border-color);
  background: var(--ag-background-color);
  border-radius: var(--ag-card-radius);
  box-shadow: var(--ag-card-shadow);
  padding: var(--ag-grid-size);
  overflow: hidden;
  text-overflow: ellipsis;
  border: var(--ag-borders-secondary) var(--ag-secondary-border-color);
  color: var(--ag-secondary-foreground-color);
  height: var(--ag-header-height);
  line-height: var(--ag-header-height);
  margin: 0;
  padding: 0 calc(var(--ag-grid-size) * 2);
  transform: translateY(calc(var(--ag-grid-size) * 2));
}

.ag-dnd-ghost-icon {
  margin-right: var(--ag-grid-size);
  color: var(--ag-foreground-color);
}

.ag-popup-child:not(.ag-tooltip-custom) {
  box-shadow: var(--ag-popup-shadow);
}

.ag-select .ag-picker-field-wrapper {
  min-height: var(--ag-list-item-height);
  cursor: default;
}
.ag-ltr .ag-select .ag-picker-field-wrapper {
  padding-left: calc(var(--ag-cell-horizontal-padding) / 2);
}
.ag-rtl .ag-select .ag-picker-field-wrapper {
  padding-right: calc(var(--ag-cell-horizontal-padding) / 2);
}
.ag-ltr .ag-select .ag-picker-field-wrapper {
  padding-right: var(--ag-grid-size);
}
.ag-rtl .ag-select .ag-picker-field-wrapper {
  padding-left: var(--ag-grid-size);
}
.ag-select.ag-disabled .ag-picker-field-wrapper:focus {
  box-shadow: none;
}
.ag-select:not(.ag-cell-editor):not(.ag-label-align-top) {
  min-height: var(--ag-list-item-height);
}
.ag-select .ag-picker-field-display {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ag-select .ag-picker-field-icon {
  display: flex;
  align-items: center;
}
.ag-select.ag-disabled {
  opacity: 0.5;
}

.ag-rich-select-value,
.ag-rich-select-list {
  background-color: var(--ag-background-color);
}

.ag-rich-select-list {
  width: 100%;
  height: auto;
  border-radius: var(--ag-border-radius);
  border: var(--ag-borders) var(--ag-border-color);
}
.ag-rich-select-list .ag-loading-text {
  padding: var(--ag-widget-vertical-spacing) var(--ag-widget-horizontal-spacing);
}

.ag-rich-select-value {
  border-bottom: var(--ag-borders-secondary) var(--ag-secondary-border-color);
  padding-top: 0;
  padding-bottom: 0;
}
.ag-ltr .ag-rich-select-value {
  padding-left: calc(var(--ag-cell-horizontal-padding) / 2);
}
.ag-rtl .ag-rich-select-value {
  padding-right: calc(var(--ag-cell-horizontal-padding) / 2);
}
.ag-ltr .ag-rich-select-value {
  padding-right: var(--ag-grid-size);
}
.ag-rtl .ag-rich-select-value {
  padding-left: var(--ag-grid-size);
}

.ag-ltr .ag-rich-select-field-input {
  left: calc(var(--ag-cell-horizontal-padding));
}
.ag-rtl .ag-rich-select-field-input {
  right: calc(var(--ag-cell-horizontal-padding));
}

.ag-popup-editor .ag-rich-select-value {
  height: var(--ag-row-height);
  min-width: 200px;
}

.ag-rich-select-virtual-list-item {
  cursor: default;
  height: var(--ag-list-item-height);
}
.ag-rich-select-virtual-list-item:focus-visible::after {
  content: none;
}

.ag-ltr .ag-rich-select-row {
  padding-left: calc(var(--ag-cell-horizontal-padding) / 2);
}
.ag-rtl .ag-rich-select-row {
  padding-right: calc(var(--ag-cell-horizontal-padding) / 2);
}

.ag-rich-select-row-selected {
  background-color: var(--ag-selected-row-background-color);
}

.ag-rich-select-row:hover,
.ag-rich-select-row-highlighted {
  background-image: linear-gradient(var(--ag-row-hover-color), var(--ag-row-hover-color));
}

.ag-rich-select-row-text-highlight {
  font-weight: bold;
}

.ag-autocomplete {
  width: 100%;
}

.ag-autocomplete-list {
  width: 100%;
  min-width: 200px;
  height: calc(var(--ag-row-height) * 6.5);
}

.ag-autocomplete-virtual-list-item {
  cursor: default;
  height: var(--ag-list-item-height);
}
.ag-autocomplete-virtual-list-item:focus-visible::after {
  content: none;
}
.ag-autocomplete-virtual-list-item:hover {
  background-color: var(--ag-row-hover-color);
}

.ag-autocomplete-row-label {
  margin: 0px var(--ag-widget-container-horizontal-padding);
}

.ag-autocomplete-row-selected {
  background-color: var(--ag-selected-row-background-color);
}

.ag-pill {
  border: 1px solid var(--ag-chip-border-color);
  border-radius: var(--ag-border-radius);
  background-color: var(--ag-chip-background-color);
}

.ag-ltr .ag-pill .ag-pill-button {
  margin-left: var(--ag-grid-size);
}
.ag-rtl .ag-pill .ag-pill-button {
  margin-right: var(--ag-grid-size);
}

.ag-pill:focus-visible {
  border-color: var(--ag-input-focus-border-color);
}

.ag-pill .ag-pill-button:hover {
  cursor: pointer;
}

.ag-dragging-range-handle .ag-dialog,
.ag-dragging-fill-handle .ag-dialog {
  opacity: 0.7;
  pointer-events: none;
}

.ag-dialog {
  border-radius: var(--ag-border-radius);
  border: var(--ag-borders) var(--ag-border-color);
  box-shadow: var(--ag-popup-shadow);
}

.ag-panel {
  background-color: var(--ag-panel-background-color);
  border-color: var(--ag-panel-border-color);
}

.ag-panel-title-bar {
  color: var(--ag-header-foreground-color);
  height: var(--ag-header-height);
  padding: var(--ag-grid-size) var(--ag-cell-horizontal-padding);
  border-bottom: var(--ag-borders) var(--ag-border-color);
}

.ag-ltr .ag-panel-title-bar-button {
  margin-left: var(--ag-grid-size);
}
.ag-rtl .ag-panel-title-bar-button {
  margin-right: var(--ag-grid-size);
}

.ag-tooltip {
  background-color: var(--ag-tooltip-background-color);
  color: var(--ag-foreground-color);
  padding: var(--ag-grid-size);
  border: var(--ag-borders) var(--ag-border-color);
  border-radius: var(--ag-card-radius);
  white-space: normal;
}

.ag-tooltip.ag-tooltip-animate,
.ag-tooltip-custom.ag-tooltip-animate {
  transition: opacity 1s;
}
.ag-tooltip.ag-tooltip-animate.ag-tooltip-hiding,
.ag-tooltip-custom.ag-tooltip-animate.ag-tooltip-hiding {
  opacity: 0;
}

.ag-ltr .ag-column-select-column,
.ag-ltr .ag-column-select-column-group {
  padding-left: calc(var(--ag-indentation-level) * var(--ag-column-select-indent-size));
}
.ag-rtl .ag-column-select-column,
.ag-rtl .ag-column-select-column-group {
  padding-right: calc(var(--ag-indentation-level) * var(--ag-column-select-indent-size));
}

.ag-column-select-header-icon {
  cursor: pointer;
}

.ag-column-select-header-icon:focus-visible {
  outline: none;
}
.ag-column-select-header-icon:focus-visible::after {
  content: "";
  position: absolute;
  background-color: transparent;
  pointer-events: none;
  top: 0px;
  left: 0px;
  display: block;
  width: calc(100% - 0px);
  height: calc(100% - 0px);
  border: 1px solid;
  border-color: var(--ag-input-focus-border-color);
}

.ag-ltr .ag-column-group-icons:not(:last-child),
.ag-ltr .ag-column-select-header-icon:not(:last-child),
.ag-ltr .ag-column-select-header-checkbox:not(:last-child),
.ag-ltr .ag-column-select-header-filter-wrapper:not(:last-child),
.ag-ltr .ag-column-select-checkbox:not(:last-child),
.ag-ltr .ag-column-select-column-drag-handle:not(:last-child),
.ag-ltr .ag-column-select-column-group-drag-handle:not(:last-child),
.ag-ltr .ag-column-select-column-label:not(:last-child) {
  margin-right: var(--ag-widget-horizontal-spacing);
}
.ag-rtl .ag-column-group-icons:not(:last-child),
.ag-rtl .ag-column-select-header-icon:not(:last-child),
.ag-rtl .ag-column-select-header-checkbox:not(:last-child),
.ag-rtl .ag-column-select-header-filter-wrapper:not(:last-child),
.ag-rtl .ag-column-select-checkbox:not(:last-child),
.ag-rtl .ag-column-select-column-drag-handle:not(:last-child),
.ag-rtl .ag-column-select-column-group-drag-handle:not(:last-child),
.ag-rtl .ag-column-select-column-label:not(:last-child) {
  margin-left: var(--ag-widget-horizontal-spacing);
}

.ag-column-select-virtual-list-item:focus-visible {
  outline: none;
}
.ag-column-select-virtual-list-item:focus-visible::after {
  content: "";
  position: absolute;
  background-color: transparent;
  pointer-events: none;
  top: 1px;
  left: 1px;
  display: block;
  width: calc(100% - 2px);
  height: calc(100% - 2px);
  border: 1px solid;
  border-color: var(--ag-input-focus-border-color);
}

.ag-column-select-column-group:not(:last-child),
.ag-column-select-column:not(:last-child) {
  margin-bottom: var(--ag-widget-vertical-spacing);
}

.ag-column-select-column-readonly,
.ag-column-select-column-group-readonly {
  color: var(--ag-disabled-foreground-color);
  pointer-events: none;
}

.ag-ltr .ag-column-select-add-group-indent {
  margin-left: calc(var(--ag-icon-size) + var(--ag-grid-size) * 2);
}
.ag-rtl .ag-column-select-add-group-indent {
  margin-right: calc(var(--ag-icon-size) + var(--ag-grid-size) * 2);
}

.ag-column-select-virtual-list-viewport {
  padding: calc(var(--ag-widget-container-vertical-padding) * 0.5) 0px;
}

.ag-column-select-virtual-list-item {
  padding: 0 var(--ag-widget-container-horizontal-padding);
}

.ag-checkbox-edit {
  padding-left: var(--ag-cell-horizontal-padding);
  padding-right: var(--ag-cell-horizontal-padding);
}

.ag-pill-select .ag-column-drop {
  border-bottom: 0;
  min-height: 0;
  min-height: initial;
}
.ag-pill-select .ag-column-drop-list {
  padding: 0;
}
.ag-pill-select .ag-select {
  padding-top: var(--ag-grid-size);
}
.ag-pill-select .ag-picker-field-wrapper {
  background-color: transparent;
  border: 0;
}
.ag-pill-select .ag-picker-field-display {
  cursor: pointer;
}

.ag-rtl {
  text-align: right;
}

.ag-root-wrapper {
  border-radius: var(--ag-wrapper-border-radius);
  border: var(--ag-borders) var(--ag-border-color);
}

.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));
}

.ag-cell-wrapper.ag-row-group,
.ag-cell-wrapper.ag-row-group-leaf-indent,
.ag-cell-wrapper.ag-pivot-leaf-group {
  padding-left: calc(var(--ag-indentation-level) * var(--ag-row-group-indent-size));
}

.ag-ltr .ag-row-group-leaf-indent {
  margin-left: var(--ag-row-group-indent-size);
}
.ag-rtl .ag-row-group-leaf-indent {
  margin-right: var(--ag-row-group-indent-size);
}

.ag-row:not(.ag-row-level-0) .ag-pivot-leaf-group {
  margin-left: var(--ag-row-group-indent-size);
}

.ag-value-change-delta {
  padding-right: 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 0.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 {
  height: var(--ag-row-height);
  background-color: var(--ag-background-color);
  color: var(--ag-data-color);
  border-bottom: var(--ag-row-border-style) var(--ag-row-border-color) var(--ag-row-border-width);
}

.ag-row-highlight-above::after,
.ag-row-highlight-below::after {
  content: "";
  position: absolute;
  width: calc(100% - 1px);
  height: 1px;
  background-color: var(--ag-range-selection-border-color);
  left: 1px;
}

.ag-row-highlight-above::after {
  top: 0px;
}

.ag-row-highlight-below::after {
  bottom: 0px;
}

.ag-row-odd {
  background-color: var(--ag-odd-row-background-color);
}

.ag-body-horizontal-scroll:not(.ag-scrollbar-invisible) .ag-horizontal-left-spacer:not(.ag-scroller-corner) {
  border-right: var(--ag-borders-critical) var(--ag-border-color);
}
.ag-body-horizontal-scroll:not(.ag-scrollbar-invisible) .ag-horizontal-right-spacer:not(.ag-scroller-corner) {
  border-left: var(--ag-borders-critical) var(--ag-border-color);
}

.ag-row-selected::before {
  content: "";
  background-color: var(--ag-selected-row-background-color);
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
}

.ag-row-hover:not(.ag-full-width-row)::before,
.ag-row-hover.ag-full-width-row.ag-row-group::before {
  content: "";
  background-color: var(--ag-row-hover-color);
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
}

.ag-row-hover.ag-full-width-row.ag-row-group > * {
  position: relative;
}

.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-column-hover {
  background-color: var(--ag-column-hover-color);
}

.ag-ltr .ag-right-aligned-cell {
  text-align: right;
}
.ag-rtl .ag-right-aligned-cell {
  text-align: left;
}

.ag-ltr .ag-right-aligned-cell .ag-cell-value,
.ag-ltr .ag-right-aligned-cell .ag-group-value {
  margin-left: auto;
}
.ag-rtl .ag-right-aligned-cell .ag-cell-value,
.ag-rtl .ag-right-aligned-cell .ag-group-value {
  margin-right: auto;
}

.ag-ltr .ag-right-aligned-cell .ag-skeleton-effect {
  margin-left: auto;
}
.ag-rtl .ag-right-aligned-cell .ag-skeleton-effect {
  margin-right: auto;
}

.ag-cell,
.ag-full-width-row .ag-cell-wrapper.ag-row-group {
  --ag-internal-calculated-line-height: var(
      --ag-line-height,
      calc(var(--ag-row-height) - var(--ag-row-border-width))
  );
  --ag-internal-padded-row-height: calc(var(--ag-row-height) - var(--ag-row-border-width));
  border: 1px solid transparent;
  line-height: min(var(--ag-internal-calculated-line-height), var(--ag-internal-padded-row-height));
  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);
  -webkit-font-smoothing: subpixel-antialiased;
}

.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: 0.5;
}

.ag-cell-inline-editing {
  border: 1px solid var(--ag-border-color);
  border-radius: var(--ag-card-radius);
  box-shadow: var(--ag-card-shadow);
  padding: 0;
  background-color: var(--ag-control-panel-background-color);
}

.ag-popup-editor .ag-large-text,
.ag-autocomplete-list-popup {
  border: var(--ag-borders) var(--ag-border-color);
  background: var(--ag-background-color);
  border-radius: var(--ag-card-radius);
  box-shadow: var(--ag-card-shadow);
  padding: var(--ag-grid-size);
  background-color: var(--ag-control-panel-background-color);
  padding: 0;
}

.ag-large-text-input {
  height: auto;
  padding: var(--ag-cell-horizontal-padding);
}

.ag-rtl .ag-large-text-input textarea {
  resize: none;
}

.ag-details-row {
  padding: calc(var(--ag-grid-size) * 5);
  background-color: var(--ag-background-color);
}

.ag-layout-auto-height .ag-center-cols-viewport,
.ag-layout-auto-height .ag-center-cols-container,
.ag-layout-print .ag-center-cols-viewport,
.ag-layout-print .ag-center-cols-container {
  min-height: 50px;
}

.ag-overlay-loading-wrapper {
  background-color: var(--ag-modal-overlay-background-color);
}

.ag-overlay-loading-center {
  border: var(--ag-borders) var(--ag-border-color);
  background: var(--ag-background-color);
  border-radius: var(--ag-card-radius);
  box-shadow: var(--ag-card-shadow);
  padding: var(--ag-grid-size);
}

.ag-skeleton-container {
  width: 100%;
  height: 100%;
  align-content: center;
}

.ag-skeleton-effect {
  background-color: var(--ag-row-loading-skeleton-effect-color);
  width: 100%;
  height: 1em;
  border-radius: 0.25rem;
  animation: ag-skeleton-loading 1.5s ease-in-out 0.5s infinite;
}

@keyframes ag-skeleton-loading {
  0% {
    opacity: 1;
  }
  50% {
    opacity: 0.4;
  }
  100% {
    opacity: 1;
  }
}
.ag-loading {
  display: flex;
  height: 100%;
  align-items: center;
}
.ag-ltr .ag-loading {
  padding-left: var(--ag-cell-horizontal-padding);
}
.ag-rtl .ag-loading {
  padding-right: var(--ag-cell-horizontal-padding);
}

.ag-ltr .ag-loading-icon {
  padding-right: var(--ag-cell-widget-spacing);
}
.ag-rtl .ag-loading-icon {
  padding-left: var(--ag-cell-widget-spacing);
}

.ag-icon-loading {
  animation-name: spin;
  animation-duration: 1000ms;
  animation-iteration-count: infinite;
  animation-timing-function: linear;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}
.ag-floating-top {
  border-bottom: var(--ag-borders-critical) var(--ag-border-color);
}

.ag-floating-bottom {
  border-top: var(--ag-borders-critical) var(--ag-border-color);
}

.ag-ltr .ag-cell {
  border-right: var(--ag-cell-horizontal-border);
}
.ag-rtl .ag-cell {
  border-left: var(--ag-cell-horizontal-border);
}
.ag-ltr .ag-cell {
  border-right-width: 1px;
}
.ag-rtl .ag-cell {
  border-left-width: 1px;
}

.ag-cell.ag-cell-first-right-pinned:not(.ag-cell-range-left):not(.ag-cell-range-single-cell) {
  border-left: var(--ag-borders-critical) var(--ag-border-color);
}

.ag-cell.ag-cell-last-left-pinned:not(.ag-cell-range-right):not(.ag-cell-range-single-cell) {
  border-right: var(--ag-borders-critical) var(--ag-border-color);
}

.ag-cell-range-selected:not(.ag-cell-focus),
.ag-cell-range-selected.ag-cell-range-chart,
.ag-body-viewport:not(.ag-has-focus) .ag-cell-range-single-cell:not(.ag-cell-inline-editing) {
  background-color: var(--ag-range-selection-background-color);
}
.ag-cell-range-selected:not(.ag-cell-focus).ag-cell-range-chart,
.ag-cell-range-selected.ag-cell-range-chart.ag-cell-range-chart,
.ag-body-viewport:not(.ag-has-focus) .ag-cell-range-single-cell:not(.ag-cell-inline-editing).ag-cell-range-chart {
  background-color: var(--ag-range-selection-chart-background-color) !important;
}
.ag-cell-range-selected:not(.ag-cell-focus).ag-cell-range-chart.ag-cell-range-chart-category,
.ag-cell-range-selected.ag-cell-range-chart.ag-cell-range-chart.ag-cell-range-chart-category,
.ag-body-viewport:not(.ag-has-focus) .ag-cell-range-single-cell:not(.ag-cell-inline-editing).ag-cell-range-chart.ag-cell-range-chart-category {
  background-color: var(--ag-range-selection-chart-category-background-color) !important;
}

.ag-cell-range-selected-1:not(.ag-cell-focus),
.ag-cell-range-selected-1.ag-cell-range-chart,
.ag-root:not(.ag-context-menu-open) .ag-body-viewport:not(.ag-has-focus) .ag-cell-range-selected-1:not(.ag-cell-inline-editing) {
  background-color: var(--ag-range-selection-background-color);
}

.ag-cell-range-selected-2:not(.ag-cell-focus),
.ag-cell-range-selected-2.ag-cell-range-chart,
.ag-body-viewport:not(.ag-has-focus) .ag-cell-range-selected-2 {
  background-color: var(--ag-range-selection-background-color-2);
}

.ag-cell-range-selected-3:not(.ag-cell-focus),
.ag-cell-range-selected-3.ag-cell-range-chart,
.ag-body-viewport:not(.ag-has-focus) .ag-cell-range-selected-3 {
  background-color: var(--ag-range-selection-background-color-3);
}

.ag-cell-range-selected-4:not(.ag-cell-focus),
.ag-cell-range-selected-4.ag-cell-range-chart,
.ag-body-viewport:not(.ag-has-focus) .ag-cell-range-selected-4 {
  background-color: var(--ag-range-selection-background-color-4);
}

.ag-cell.ag-cell-range-selected:not(.ag-cell-range-single-cell).ag-cell-range-top {
  border-top-color: var(--ag-range-selection-border-color);
  border-top-style: var(--ag-range-selection-border-style);
}
.ag-cell.ag-cell-range-selected:not(.ag-cell-range-single-cell).ag-cell-range-right {
  border-right-color: var(--ag-range-selection-border-color);
  border-right-style: var(--ag-range-selection-border-style);
}
.ag-cell.ag-cell-range-selected:not(.ag-cell-range-single-cell).ag-cell-range-bottom {
  border-bottom-color: var(--ag-range-selection-border-color);
  border-bottom-style: var(--ag-range-selection-border-style);
}
.ag-cell.ag-cell-range-selected:not(.ag-cell-range-single-cell).ag-cell-range-left {
  border-left-color: var(--ag-range-selection-border-color);
  border-left-style: var(--ag-range-selection-border-style);
}

.ag-ltr .ag-cell-focus:not(.ag-cell-range-selected):focus-within,
.ag-ltr .ag-context-menu-open .ag-cell-focus:not(.ag-cell-range-selected),
.ag-ltr .ag-full-width-row.ag-row-focus:focus .ag-cell-wrapper.ag-row-group,
.ag-ltr .ag-cell-range-single-cell,
.ag-ltr .ag-cell-range-single-cell.ag-cell-range-handle,
.ag-rtl .ag-cell-focus:not(.ag-cell-range-selected):focus-within,
.ag-rtl .ag-context-menu-open .ag-cell-focus:not(.ag-cell-range-selected),
.ag-rtl .ag-full-width-row.ag-row-focus:focus .ag-cell-wrapper.ag-row-group,
.ag-rtl .ag-cell-range-single-cell,
.ag-rtl .ag-cell-range-single-cell.ag-cell-range-handle {
  border: 1px solid;
  border-color: var(--ag-range-selection-border-color);
  border-style: var(--ag-range-selection-border-style);
  outline: medium none currentcolor;
  outline: initial;
}

.ag-cell.ag-selection-fill-top,
.ag-cell.ag-selection-fill-top.ag-cell-range-selected {
  border-top: 1px dashed;
  border-top-color: var(--ag-range-selection-border-color);
}

.ag-ltr .ag-cell.ag-selection-fill-right,
.ag-ltr .ag-cell.ag-selection-fill-right.ag-cell-range-selected {
  border-right: 1px dashed var(--ag-range-selection-border-color) !important;
}
.ag-rtl .ag-cell.ag-selection-fill-right,
.ag-rtl .ag-cell.ag-selection-fill-right.ag-cell-range-selected {
  border-left: 1px dashed var(--ag-range-selection-border-color) !important;
}

.ag-cell.ag-selection-fill-bottom,
.ag-cell.ag-selection-fill-bottom.ag-cell-range-selected {
  border-bottom: 1px dashed;
  border-bottom-color: var(--ag-range-selection-border-color);
}

.ag-ltr .ag-cell.ag-selection-fill-left,
.ag-ltr .ag-cell.ag-selection-fill-left.ag-cell-range-selected {
  border-left: 1px dashed var(--ag-range-selection-border-color) !important;
}
.ag-rtl .ag-cell.ag-selection-fill-left,
.ag-rtl .ag-cell.ag-selection-fill-left.ag-cell-range-selected {
  border-right: 1px dashed var(--ag-range-selection-border-color) !important;
}

.ag-fill-handle,
.ag-range-handle {
  position: absolute;
  width: 6px;
  height: 6px;
  bottom: -1px;
  background-color: var(--ag-range-selection-border-color);
}
.ag-ltr .ag-fill-handle,
.ag-ltr .ag-range-handle {
  right: -1px;
}
.ag-rtl .ag-fill-handle,
.ag-rtl .ag-range-handle {
  left: -1px;
}

.ag-fill-handle {
  cursor: cell;
}

.ag-range-handle {
  cursor: nwse-resize;
}

.ag-cell-inline-editing {
  border-color: var(--ag-input-focus-border-color) !important;
}

.ag-menu {
  border: var(--ag-borders) var(--ag-border-color);
  background: var(--ag-background-color);
  border-radius: var(--ag-card-radius);
  box-shadow: var(--ag-card-shadow);
  padding: var(--ag-grid-size);
  background-color: var(--ag-menu-background-color);
  border-color: var(--ag-menu-border-color);
  padding: 0;
}

.ag-menu.ag-tabs {
  min-width: var(--ag-tab-min-width);
}

.ag-menu-list {
  cursor: default;
  padding: var(--ag-grid-size) 0;
}

.ag-menu-separator {
  height: calc(var(--ag-grid-size) * 2 + 1px);
}

.ag-menu-separator-part::after {
  content: "";
  display: block;
  border-top: var(--ag-borders-critical) var(--ag-border-color);
}

.ag-menu-option-active,
.ag-compact-menu-option-active {
  background-color: var(--ag-row-hover-color);
}

.ag-menu-option-part,
.ag-compact-menu-option-part {
  line-height: var(--ag-icon-size);
  padding: calc(var(--ag-grid-size) + 2px) 0;
}

.ag-menu-option-disabled,
.ag-compact-menu-option-disabled {
  opacity: 0.5;
}

.ag-menu-option-icon,
.ag-compact-menu-option-icon {
  width: var(--ag-icon-size);
}
.ag-ltr .ag-menu-option-icon,
.ag-ltr .ag-compact-menu-option-icon {
  padding-left: calc(var(--ag-grid-size) * 2);
}
.ag-rtl .ag-menu-option-icon,
.ag-rtl .ag-compact-menu-option-icon {
  padding-right: calc(var(--ag-grid-size) * 2);
}

.ag-menu-option-text,
.ag-compact-menu-option-text {
  padding-left: calc(var(--ag-grid-size) * 2);
  padding-right: calc(var(--ag-grid-size) * 2);
}

.ag-ltr .ag-menu-option-shortcut,
.ag-ltr .ag-compact-menu-option-shortcut {
  padding-right: var(--ag-grid-size);
}
.ag-rtl .ag-menu-option-shortcut,
.ag-rtl .ag-compact-menu-option-shortcut {
  padding-left: var(--ag-grid-size);
}

.ag-ltr .ag-menu-option-popup-pointer,
.ag-ltr .ag-compact-menu-option-popup-pointer {
  padding-right: var(--ag-grid-size);
}
.ag-rtl .ag-menu-option-popup-pointer,
.ag-rtl .ag-compact-menu-option-popup-pointer {
  padding-left: var(--ag-grid-size);
}

.ag-tabs-header {
  display: flex;
}

.ag-tabs-header-wrapper {
  display: flex;
}
.ag-tabs-header-wrapper .ag-tabs-header {
  flex: 1;
}

.ag-tabs-close-button-wrapper {
  border: 0;
  border-right: var(--ag-borders) var(--ag-border-color);
  padding: var(--ag-grid-size);
}

.ag-tabs-close-button {
  border: 0;
  background-color: transparent;
  background-color: initial;
  cursor: pointer;
  padding: 0;
}

.ag-tab {
  border-bottom: var(--ag-selected-tab-underline-width) solid transparent;
  transition: border-bottom var(--ag-selected-tab-underline-transition-speed);
  display: flex;
  flex: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.ag-tab:focus-visible {
  outline: none;
}
.ag-tab:focus-visible::after {
  content: "";
  position: absolute;
  background-color: transparent;
  pointer-events: none;
  top: 4px;
  left: 4px;
  display: block;
  width: calc(100% - 8px);
  height: calc(100% - 8px);
  border: 1px solid;
  border-color: var(--ag-input-focus-border-color);
}

.ag-tab-selected {
  border-bottom-color: var(--ag-selected-tab-underline-color);
}

.ag-menu-header {
  color: var(--ag-secondary-foreground-color);
}

.ag-filter-separator {
  border-top: var(--ag-borders-critical) var(--ag-border-color);
}

.ag-filter-select .ag-picker-field-wrapper {
  width: 0;
}

.ag-filter-condition-operator {
  height: 17px;
}

.ag-ltr .ag-filter-condition-operator-or {
  margin-left: calc(var(--ag-grid-size) * 2);
}
.ag-rtl .ag-filter-condition-operator-or {
  margin-right: calc(var(--ag-grid-size) * 2);
}

.ag-set-filter-select-all {
  padding-top: var(--ag-widget-container-vertical-padding);
}

.ag-set-filter-list,
.ag-filter-no-matches {
  height: calc(var(--ag-list-item-height) * 6);
}

.ag-set-filter-tree-list {
  height: calc(var(--ag-list-item-height) * 10);
}

.ag-set-filter-filter {
  margin-top: var(--ag-widget-container-vertical-padding);
  margin-left: var(--ag-widget-container-horizontal-padding);
  margin-right: var(--ag-widget-container-horizontal-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);
}

.ag-set-filter {
  --ag-indentation-level: 0;
}

.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));
}
.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-ltr .ag-set-filter-add-group-indent {
  margin-left: calc(var(--ag-icon-size) + var(--ag-widget-container-horizontal-padding));
}
.ag-rtl .ag-set-filter-add-group-indent {
  margin-right: calc(var(--ag-icon-size) + var(--ag-widget-container-horizontal-padding));
}

.ag-ltr .ag-set-filter-group-icons {
  margin-right: var(--ag-widget-container-horizontal-padding);
}
.ag-rtl .ag-set-filter-group-icons {
  margin-left: var(--ag-widget-container-horizontal-padding);
}

.ag-filter-menu .ag-set-filter-list {
  min-width: 200px;
}

.ag-filter-virtual-list-item:focus-visible {
  outline: none;
}
.ag-filter-virtual-list-item:focus-visible::after {
  content: "";
  position: absolute;
  background-color: transparent;
  pointer-events: none;
  top: 1px;
  left: 1px;
  display: block;
  width: calc(100% - 2px);
  height: calc(100% - 2px);
  border: 1px solid;
  border-color: var(--ag-input-focus-border-color);
}

.ag-filter-apply-panel {
  padding: var(--ag-widget-container-vertical-padding) var(--ag-widget-container-horizontal-padding);
  border-top: var(--ag-borders-secondary) var(--ag-secondary-border-color);
}

.ag-filter-apply-panel-button {
  line-height: 1.5;
}
.ag-ltr .ag-filter-apply-panel-button {
  margin-left: calc(var(--ag-grid-size) * 2);
}
.ag-rtl .ag-filter-apply-panel-button {
  margin-right: calc(var(--ag-grid-size) * 2);
}

.ag-simple-filter-body-wrapper {
  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));
  overflow-y: auto;
  min-height: calc(var(--ag-list-item-height) + var(--ag-widget-container-vertical-padding) + var(--ag-widget-vertical-spacing));
}
.ag-simple-filter-body-wrapper > * {
  margin-bottom: var(--ag-widget-vertical-spacing);
}
.ag-simple-filter-body-wrapper .ag-resizer-wrapper {
  margin: 0;
}

.ag-menu:not(.ag-tabs) .ag-filter .ag-filter-body-wrapper,
.ag-menu:not(.ag-tabs) .ag-filter > *:not(.ag-filter-wrapper) {
  min-width: calc(var(--ag-menu-min-width) - 2px);
}

.ag-filter-no-matches {
  padding: var(--ag-widget-container-vertical-padding) var(--ag-widget-container-horizontal-padding);
}

.ag-multi-filter-menu-item {
  margin: var(--ag-grid-size) 0;
}

.ag-multi-filter-group-title-bar {
  padding: calc(var(--ag-grid-size) * 2) var(--ag-grid-size);
  background-color: transparent;
}

.ag-group-filter-field-select-wrapper {
  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));
}
.ag-group-filter-field-select-wrapper > * {
  margin-bottom: var(--ag-widget-vertical-spacing);
}

.ag-multi-filter-group-title-bar:focus-visible {
  outline: none;
}
.ag-multi-filter-group-title-bar:focus-visible::after {
  content: "";
  position: absolute;
  background-color: transparent;
  pointer-events: none;
  top: 4px;
  left: 4px;
  display: block;
  width: calc(100% - 8px);
  height: calc(100% - 8px);
  border: 1px solid;
  border-color: var(--ag-input-focus-border-color);
}

.ag-side-bar {
  position: relative;
}

.ag-tool-panel-wrapper {
  width: var(--ag-side-bar-panel-width);
  background-color: var(--ag-control-panel-background-color);
}

.ag-side-buttons {
  padding-top: calc(var(--ag-grid-size) * 4);
  width: calc(var(--ag-icon-size) + 4px);
  position: relative;
  overflow: hidden;
}

button.ag-side-button-button {
  color: inherit;
  font-family: inherit;
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
  background: transparent;
  padding: calc(var(--ag-grid-size) * 2) 0 calc(var(--ag-grid-size) * 2) 0;
  width: 100%;
  margin: 0;
  min-height: calc(var(--ag-grid-size) * 18);
  background-position-y: center;
  background-position-x: center;
  background-repeat: no-repeat;
  border: none;
  border-top: var(--ag-borders-side-button) var(--ag-border-color);
  border-bottom: var(--ag-borders-side-button) var(--ag-border-color);
}
button.ag-side-button-button:focus {
  box-shadow: none;
}

.ag-side-button-button:focus-visible {
  outline: none;
}
.ag-side-button-button:focus-visible::after {
  content: "";
  position: absolute;
  background-color: transparent;
  pointer-events: none;
  top: 4px;
  left: 4px;
  display: block;
  width: calc(100% - 8px);
  height: calc(100% - 8px);
  border: 1px solid;
  border-color: var(--ag-input-focus-border-color);
}

.ag-selected button.ag-side-button-button {
  background-color: var(--ag-side-button-selected-background-color);
}

.ag-side-button-icon-wrapper {
  margin-bottom: 3px;
}

.ag-ltr .ag-side-bar-left,
.ag-rtl .ag-side-bar-right {
  border-right: var(--ag-borders) var(--ag-border-color);
}
.ag-ltr .ag-side-bar-left .ag-tool-panel-wrapper,
.ag-rtl .ag-side-bar-right .ag-tool-panel-wrapper {
  border-left: var(--ag-borders) var(--ag-border-color);
}
.ag-ltr .ag-side-bar-left .ag-side-button-button,
.ag-rtl .ag-side-bar-right .ag-side-button-button {
  border-right: var(--ag-selected-tab-underline-width) solid transparent;
  transition: border-right var(--ag-selected-tab-underline-transition-speed);
}
.ag-ltr .ag-side-bar-left .ag-selected .ag-side-button-button,
.ag-rtl .ag-side-bar-right .ag-selected .ag-side-button-button {
  border-right-color: var(--ag-selected-tab-underline-color);
}

.ag-rtl .ag-side-bar-left,
.ag-ltr .ag-side-bar-right {
  border-left: var(--ag-borders) var(--ag-border-color);
}
.ag-rtl .ag-side-bar-left .ag-tool-panel-wrapper,
.ag-ltr .ag-side-bar-right .ag-tool-panel-wrapper {
  border-right: var(--ag-borders) var(--ag-border-color);
}
.ag-rtl .ag-side-bar-left .ag-side-button-button,
.ag-ltr .ag-side-bar-right .ag-side-button-button {
  border-left: var(--ag-selected-tab-underline-width) solid transparent;
  transition: border-left var(--ag-selected-tab-underline-transition-speed);
}
.ag-rtl .ag-side-bar-left .ag-selected .ag-side-button-button,
.ag-ltr .ag-side-bar-right .ag-selected .ag-side-button-button {
  border-left-color: var(--ag-selected-tab-underline-color);
}

.ag-filter-toolpanel-header {
  height: calc(var(--ag-grid-size) * 6);
}

.ag-filter-toolpanel-header,
.ag-filter-toolpanel-search {
  padding: 0 var(--ag-grid-size);
}

.ag-filter-toolpanel-header:focus-visible {
  outline: none;
}
.ag-filter-toolpanel-header:focus-visible::after {
  content: "";
  position: absolute;
  background-color: transparent;
  pointer-events: none;
  top: 4px;
  left: 4px;
  display: block;
  width: calc(100% - 8px);
  height: calc(100% - 8px);
  border: 1px solid;
  border-color: var(--ag-input-focus-border-color);
}

.ag-filter-toolpanel-group:not(.ag-has-filter) > .ag-group-title-bar .ag-filter-toolpanel-group-instance-header-icon {
  display: none;
}

.ag-filter-toolpanel-group-level-0-header {
  height: calc(var(--ag-grid-size) * 8);
}

.ag-filter-toolpanel-group-item {
  margin-top: calc(var(--ag-grid-size) * 0.5);
  margin-bottom: calc(var(--ag-grid-size) * 0.5);
}

.ag-filter-toolpanel-search {
  height: var(--ag-header-height);
}

.ag-filter-toolpanel-search-input {
  flex-grow: 1;
  height: calc(var(--ag-grid-size) * 4);
}
.ag-ltr .ag-filter-toolpanel-search-input {
  margin-right: var(--ag-grid-size);
}
.ag-rtl .ag-filter-toolpanel-search-input {
  margin-left: var(--ag-grid-size);
}

.ag-filter-toolpanel-group-level-0 {
  border-top: var(--ag-borders-secondary) var(--ag-secondary-border-color);
}

.ag-ltr .ag-filter-toolpanel-expand,
.ag-ltr .ag-filter-toolpanel-group-title-bar-icon {
  margin-right: var(--ag-grid-size);
}
.ag-rtl .ag-filter-toolpanel-expand,
.ag-rtl .ag-filter-toolpanel-group-title-bar-icon {
  margin-left: var(--ag-grid-size);
}

.ag-filter-toolpanel-group-title-bar {
  background-color: transparent;
}

.ag-ltr .ag-filter-toolpanel-header {
  padding-left: calc(var(--ag-filter-tool-panel-group-indent) * 0 + var(--ag-grid-size));
  padding-left: calc(var(--ag-filter-tool-panel-group-indent) * var(--ag-indentation-level, 0) + var(--ag-grid-size));
}
.ag-rtl .ag-filter-toolpanel-header {
  padding-right: calc(var(--ag-filter-tool-panel-group-indent) * 0 + var(--ag-grid-size));
  padding-right: calc(var(--ag-filter-tool-panel-group-indent) * var(--ag-indentation-level, 0) + var(--ag-grid-size));
}

.ag-filter-toolpanel-instance-filter {
  border-bottom: var(--ag-borders) var(--ag-border-color);
  border-top: var(--ag-borders) var(--ag-border-color);
  margin-top: var(--ag-grid-size);
}

.ag-ltr .ag-filter-toolpanel-group-instance-header-icon,
.ag-ltr .ag-filter-toolpanel-instance-header-icon {
  margin-left: var(--ag-grid-size);
}
.ag-rtl .ag-filter-toolpanel-group-instance-header-icon,
.ag-rtl .ag-filter-toolpanel-instance-header-icon {
  margin-right: var(--ag-grid-size);
}

.ag-set-filter-group-icons {
  color: var(--ag-secondary-foreground-color);
}

.ag-pivot-mode-panel {
  min-height: var(--ag-header-height);
  height: var(--ag-header-height);
  display: flex;
}

.ag-pivot-mode-select {
  display: flex;
  align-items: center;
}
.ag-ltr .ag-pivot-mode-select {
  margin-left: var(--ag-widget-container-horizontal-padding);
}
.ag-rtl .ag-pivot-mode-select {
  margin-right: var(--ag-widget-container-horizontal-padding);
}

.ag-column-select-header:focus-visible {
  outline: none;
}
.ag-column-select-header:focus-visible::after {
  content: "";
  position: absolute;
  background-color: transparent;
  pointer-events: none;
  top: 4px;
  left: 4px;
  display: block;
  width: calc(100% - 8px);
  height: calc(100% - 8px);
  border: 1px solid;
  border-color: var(--ag-input-focus-border-color);
}

.ag-column-select-header {
  height: var(--ag-header-height);
  align-items: center;
  padding: 0 var(--ag-widget-container-horizontal-padding);
  border-bottom: var(--ag-borders-secondary) var(--ag-secondary-border-color);
}

.ag-column-panel-column-select {
  border-bottom: var(--ag-borders-secondary) var(--ag-secondary-border-color);
  border-top: var(--ag-borders-secondary) var(--ag-secondary-border-color);
}

.ag-column-group-icons,
.ag-column-select-header-icon {
  color: var(--ag-secondary-foreground-color);
}

.ag-column-select-list .ag-list-item-hovered::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 1px;
}
.ag-column-select-list .ag-item-highlight-top::after {
  top: 0;
}
.ag-column-select-list .ag-item-highlight-bottom::after {
  bottom: 0;
}

.ag-header,
.ag-advanced-filter-header {
  background-color: var(--ag-header-background-color);
  border-bottom: var(--ag-borders-critical) var(--ag-border-color);
}

.ag-header-row {
  color: var(--ag-header-foreground-color);
  height: var(--ag-header-height);
}

.ag-pinned-right-header {
  border-left: var(--ag-borders-critical) var(--ag-border-color);
}

.ag-pinned-left-header {
  border-right: var(--ag-borders-critical) var(--ag-border-color);
}

.ag-ltr .ag-header-cell:not(.ag-right-aligned-header) .ag-header-label-icon,
.ag-ltr .ag-header-cell:not(.ag-right-aligned-header) .ag-header-menu-icon {
  margin-left: var(--ag-grid-size);
}
.ag-rtl .ag-header-cell:not(.ag-right-aligned-header) .ag-header-label-icon,
.ag-rtl .ag-header-cell:not(.ag-right-aligned-header) .ag-header-menu-icon {
  margin-right: var(--ag-grid-size);
}

.ag-ltr .ag-header-cell.ag-right-aligned-header .ag-header-label-icon,
.ag-ltr .ag-header-cell.ag-right-aligned-header .ag-header-menu-icon {
  margin-right: var(--ag-grid-size);
}
.ag-rtl .ag-header-cell.ag-right-aligned-header .ag-header-label-icon,
.ag-rtl .ag-header-cell.ag-right-aligned-header .ag-header-menu-icon {
  margin-left: var(--ag-grid-size);
}

.ag-header-cell,
.ag-header-group-cell {
  padding-left: var(--ag-cell-horizontal-padding);
  padding-right: var(--ag-cell-horizontal-padding);
}
.ag-header-cell.ag-header-cell-moving,
.ag-header-group-cell.ag-header-cell-moving {
  background-color: var(--ag-header-cell-moving-background-color);
}

.ag-ltr .ag-header-group-cell-label.ag-sticky-label {
  left: var(--ag-cell-horizontal-padding);
}
.ag-rtl .ag-header-group-cell-label.ag-sticky-label {
  right: var(--ag-cell-horizontal-padding);
}

.ag-header-cell:focus-visible {
  outline: none;
}
.ag-header-cell:focus-visible::after {
  content: "";
  position: absolute;
  background-color: transparent;
  pointer-events: none;
  top: 4px;
  left: 4px;
  display: block;
  width: calc(100% - 8px);
  height: calc(100% - 8px);
  border: 1px solid;
  border-color: var(--ag-input-focus-border-color);
}

.ag-header-group-cell:focus-visible {
  outline: none;
}
.ag-header-group-cell:focus-visible::after {
  content: "";
  position: absolute;
  background-color: transparent;
  pointer-events: none;
  top: 4px;
  left: 4px;
  display: block;
  width: calc(100% - 8px);
  height: calc(100% - 8px);
  border: 1px solid;
  border-color: var(--ag-input-focus-border-color);
}

.ag-advanced-filter-header-cell:focus-visible {
  outline: none;
}
.ag-advanced-filter-header-cell:focus-visible::after {
  content: "";
  position: absolute;
  background-color: transparent;
  pointer-events: none;
  top: 4px;
  left: 4px;
  display: block;
  width: calc(100% - 8px);
  height: calc(100% - 8px);
  border: 1px solid;
  border-color: var(--ag-input-focus-border-color);
}

.ag-header-icon {
  color: var(--ag-secondary-foreground-color);
}

.ag-header-expand-icon {
  cursor: pointer;
}
.ag-ltr .ag-header-expand-icon {
  margin-left: 4px;
}
.ag-rtl .ag-header-expand-icon {
  margin-right: 4px;
}

.ag-header-row:not(:first-child) .ag-header-cell:not(.ag-header-span-height.ag-header-span-total):not(.ag-header-parent-hidden),
.ag-header-row:not(:first-child) .ag-header-group-cell.ag-header-group-cell-with-group {
  border-top: var(--ag-borders-critical) var(--ag-border-color);
}

.ag-header-group-cell:not(.ag-column-resizing) + .ag-header-group-cell:not(.ag-column-hover):not(.ag-header-cell-moving):hover, .ag-header-group-cell:not(.ag-column-resizing) + .ag-header-group-cell:not(.ag-column-hover).ag-column-resizing,
.ag-header-cell:not(.ag-column-resizing) + .ag-header-cell:not(.ag-column-hover):not(.ag-header-cell-moving):hover,
.ag-header-cell:not(.ag-column-resizing) + .ag-header-cell:not(.ag-column-hover).ag-column-resizing,
.ag-header-group-cell:first-of-type:not(.ag-header-cell-moving):hover,
.ag-header-group-cell:first-of-type.ag-column-resizing,
.ag-header-cell:not(.ag-column-hover):first-of-type:not(.ag-header-cell-moving):hover,
.ag-header-cell:not(.ag-column-hover):first-of-type.ag-column-resizing {
  background-color: var(--ag-header-cell-hover-background-color);
}

.ag-header-cell::before,
.ag-header-group-cell:not(.ag-header-span-height.ag-header-group-cell-no-group)::before {
  content: "";
  position: absolute;
  z-index: 1;
  display: var(--ag-header-column-separator-display);
  width: var(--ag-header-column-separator-width);
  height: var(--ag-header-column-separator-height);
  top: calc(50% - var(--ag-header-column-separator-height) * 0.5);
  background-color: var(--ag-header-column-separator-color);
}
.ag-ltr .ag-header-cell::before,
.ag-ltr .ag-header-group-cell:not(.ag-header-span-height.ag-header-group-cell-no-group)::before {
  right: 0;
}
.ag-rtl .ag-header-cell::before,
.ag-rtl .ag-header-group-cell:not(.ag-header-span-height.ag-header-group-cell-no-group)::before {
  left: 0;
}

.ag-header-highlight-before::after,
.ag-header-highlight-after::after {
  content: "";
  position: absolute;
  height: 100%;
  width: 1px;
}

.ag-header-highlight-before::after {
  left: 0px;
}

.ag-header-highlight-after::after {
  right: 0px;
}

.ag-pinned-left-header .ag-header-highlight-after::after {
  right: 1px;
}

.ag-header-cell-resize {
  display: flex;
  align-items: center;
}

.ag-header-cell-resize::after {
  content: "";
  position: absolute;
  z-index: 1;
  display: var(--ag-header-column-resize-handle-display);
  width: var(--ag-header-column-resize-handle-width);
  height: var(--ag-header-column-resize-handle-height);
  top: calc(50% - var(--ag-header-column-resize-handle-height) * 0.5);
  background-color: var(--ag-header-column-resize-handle-color);
}
.ag-header-cell.ag-header-span-height .ag-header-cell-resize::after {
  height: calc(100% - var(--ag-grid-size) * 4);
  top: calc(var(--ag-grid-size) * 2);
}

.ag-ltr .ag-header-viewport .ag-header-cell-resize::after {
  left: calc(50% - var(--ag-header-column-resize-handle-width));
}
.ag-rtl .ag-header-viewport .ag-header-cell-resize::after {
  right: calc(50% - var(--ag-header-column-resize-handle-width));
}

.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-ltr .ag-header-select-all {
  margin-right: var(--ag-cell-horizontal-padding);
}
.ag-rtl .ag-header-select-all {
  margin-left: var(--ag-cell-horizontal-padding);
}

.ag-ltr .ag-floating-filter-button {
  margin-left: var(--ag-cell-widget-spacing);
}
.ag-rtl .ag-floating-filter-button {
  margin-right: var(--ag-cell-widget-spacing);
}

.ag-floating-filter-button-button {
  color: inherit;
  font-family: inherit;
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
  -webkit-appearance: none;
     -moz-appearance: none;
          appearance: none;
  background: transparent;
  border: none;
  height: var(--ag-icon-size);
  padding: 0;
  width: var(--ag-icon-size);
}

.ag-filter-loading {
  background-color: var(--ag-control-panel-background-color);
  height: 100%;
  padding: var(--ag-widget-container-vertical-padding) var(--ag-widget-container-horizontal-padding);
  position: absolute;
  width: 100%;
  z-index: 1;
}

.ag-paging-panel {
  border-top: 1px solid;
  border-top-color: var(--ag-border-color);
  color: var(--ag-secondary-foreground-color);
  height: var(--ag-header-height);
}
.ag-paging-panel > * {
  margin: 0 var(--ag-cell-horizontal-padding);
}
.ag-paging-panel > .ag-paging-page-size .ag-wrapper {
  min-width: calc(var(--ag-grid-size) * 10);
}

.ag-paging-button {
  cursor: pointer;
}

.ag-paging-button.ag-disabled {
  cursor: default;
  color: var(--ag-disabled-foreground-color);
}

.ag-paging-button:focus-visible {
  outline: none;
}
.ag-paging-button:focus-visible::after {
  content: "";
  position: absolute;
  background-color: transparent;
  pointer-events: none;
  top: 0px;
  left: 0px;
  display: block;
  width: calc(100% - 0px);
  height: calc(100% - 0px);
  border: 1px solid;
  border-color: var(--ag-input-focus-border-color);
}

.ag-paging-button,
.ag-paging-description {
  margin: 0 var(--ag-grid-size);
}

.ag-status-bar {
  border-top: var(--ag-borders) var(--ag-border-color);
  color: var(--ag-disabled-foreground-color);
  padding-right: calc(var(--ag-grid-size) * 4);
  padding-left: calc(var(--ag-grid-size) * 4);
  line-height: 1.5;
}

.ag-status-name-value-value {
  color: var(--ag-foreground-color);
}

.ag-status-bar-center {
  text-align: center;
}

.ag-status-name-value {
  margin-left: var(--ag-grid-size);
  margin-right: var(--ag-grid-size);
  padding-top: calc(var(--ag-grid-size) * 2);
  padding-bottom: calc(var(--ag-grid-size) * 2);
}

.ag-column-drop-cell {
  background: var(--ag-chip-background-color);
  border-radius: calc(var(--ag-grid-size) * 4);
  height: calc(var(--ag-grid-size) * 4);
  padding: 0 calc(var(--ag-grid-size) * 0.5);
  border: 1px solid var(--ag-chip-border-color);
}

.ag-column-drop-cell:focus-visible {
  outline: none;
}
.ag-column-drop-cell:focus-visible::after {
  content: "";
  position: absolute;
  background-color: transparent;
  pointer-events: none;
  top: 2px;
  left: 2px;
  display: block;
  width: calc(100% - 4px);
  height: calc(100% - 4px);
  border: 1px solid;
  border-color: var(--ag-input-focus-border-color);
}

.ag-column-drop-cell-text {
  margin: 0 var(--ag-grid-size);
}

.ag-column-drop-cell-button {
  min-width: calc(var(--ag-grid-size) * 4);
  margin: 0 calc(var(--ag-grid-size) * 0.5);
  color: var(--ag-secondary-foreground-color);
}

.ag-column-drop-cell-drag-handle {
  margin-left: calc(var(--ag-grid-size) * 2);
}

.ag-column-drop-cell-ghost {
  opacity: 0.5;
}

.ag-column-drop-horizontal {
  background-color: var(--ag-header-background-color);
  color: var(--ag-secondary-foreground-color);
  height: var(--ag-header-height);
  border-bottom: var(--ag-borders) var(--ag-border-color);
}
.ag-ltr .ag-column-drop-horizontal {
  padding-left: var(--ag-cell-horizontal-padding);
}
.ag-rtl .ag-column-drop-horizontal {
  padding-right: var(--ag-cell-horizontal-padding);
}

.ag-ltr .ag-column-drop-horizontal-half-width:not(:last-child) {
  border-right: var(--ag-borders) var(--ag-border-color);
}
.ag-rtl .ag-column-drop-horizontal-half-width:not(:last-child) {
  border-left: var(--ag-borders) var(--ag-border-color);
}

.ag-column-drop-horizontal-cell-separator {
  margin: 0 var(--ag-grid-size);
  color: var(--ag-secondary-foreground-color);
}

.ag-column-drop-horizontal-empty-message {
  color: var(--ag-disabled-foreground-color);
}

.ag-ltr .ag-column-drop-horizontal-icon {
  margin-right: var(--ag-cell-horizontal-padding);
}
.ag-rtl .ag-column-drop-horizontal-icon {
  margin-left: var(--ag-cell-horizontal-padding);
}

.ag-column-drop-vertical-list {
  padding-bottom: var(--ag-grid-size);
  padding-right: var(--ag-grid-size);
  padding-left: var(--ag-grid-size);
}

.ag-column-drop-vertical-cell {
  margin-top: var(--ag-grid-size);
}

.ag-column-drop-vertical {
  min-height: 50px;
  border-bottom: var(--ag-borders-secondary) var(--ag-secondary-border-color);
}
.ag-column-drop-vertical.ag-last-column-drop {
  border-bottom: none;
}

.ag-column-drop-vertical-icon {
  margin-left: var(--ag-grid-size);
  margin-right: var(--ag-grid-size);
}

.ag-column-drop-vertical-empty-message {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  overflow: hidden;
  color: var(--ag-disabled-foreground-color);
  margin-top: var(--ag-grid-size);
}

.ag-select-agg-func-popup {
  border: var(--ag-borders) var(--ag-border-color);
  background: var(--ag-background-color);
  border-radius: var(--ag-card-radius);
  box-shadow: var(--ag-card-shadow);
  padding: var(--ag-grid-size);
  background: var(--ag-background-color);
  height: calc(var(--ag-grid-size) * 5 * 3.5);
  padding: 0;
}

.ag-select-agg-func-virtual-list-item {
  cursor: default;
}
.ag-ltr .ag-select-agg-func-virtual-list-item {
  padding-left: calc(var(--ag-grid-size) * 2);
}
.ag-rtl .ag-select-agg-func-virtual-list-item {
  padding-right: calc(var(--ag-grid-size) * 2);
}
.ag-select-agg-func-virtual-list-item:hover {
  background-color: var(--ag-selected-row-background-color);
}

.ag-select-agg-func-virtual-list-item:focus-visible {
  outline: none;
}
.ag-select-agg-func-virtual-list-item:focus-visible::after {
  content: "";
  position: absolute;
  background-color: transparent;
  pointer-events: none;
  top: 1px;
  left: 1px;
  display: block;
  width: calc(100% - 2px);
  height: calc(100% - 2px);
  border: 1px solid;
  border-color: var(--ag-input-focus-border-color);
}

.ag-sort-indicator-container {
  display: flex;
}

.ag-ltr .ag-sort-indicator-icon {
  padding-left: var(--ag-grid-size);
}
.ag-rtl .ag-sort-indicator-icon {
  padding-right: var(--ag-grid-size);
}

.ag-chart {
  position: relative;
  display: flex;
  width: 100%;
  height: 100%;
}

.ag-chart-components-wrapper {
  position: relative;
  display: flex;
  flex: 1 1 auto;
}

.ag-chart-canvas-wrapper {
  position: relative;
  flex: 1 1 auto;
}

.ag-chart-menu {
  position: absolute;
  top: 16px;
  display: flex;
  flex-direction: column;
}
.ag-ltr .ag-chart-menu {
  right: 20px;
}
.ag-rtl .ag-chart-menu {
  left: 20px;
}

.ag-chart-docked-container {
  position: relative;
  min-width: var(--ag-chart-menu-panel-width);
}

.ag-chart-menu-hidden ~ .ag-chart-docked-container {
  display: none;
}

.ag-chart-tabbed-menu {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.ag-chart-tabbed-menu-header {
  flex: none;
  -moz-user-select: none;
  -webkit-user-select: none;
  user-select: none;
  cursor: default;
}

.ag-chart-tabbed-menu-body {
  display: flex;
  flex: 1 1 auto;
  align-items: stretch;
  overflow: hidden;
}

.ag-chart-tab {
  width: 100%;
  overflow: hidden;
  overflow-y: auto;
}

.ag-chart-settings {
  overflow-x: hidden;
}

.ag-chart-settings-wrapper {
  position: relative;
  flex-direction: column;
  width: 100%;
  height: 100%;
  display: flex;
  overflow: hidden;
}

.ag-chart-settings-nav-bar {
  display: flex;
  align-items: center;
  width: 100%;
  height: 30px;
  padding: 0 10px;
  -moz-user-select: none;
  -webkit-user-select: none;
  user-select: none;
}

.ag-chart-settings-card-selector {
  display: flex;
  align-items: center;
  justify-content: space-around;
  flex: 1 1 auto;
  height: 100%;
  padding: 0 10px;
}

.ag-chart-settings-card-item {
  cursor: pointer;
  width: 10px;
  height: 10px;
  background-color: #000;
  position: relative;
}
.ag-chart-settings-card-item.ag-not-selected {
  opacity: 0.2;
}
.ag-chart-settings-card-item::before {
  content: " ";
  display: block;
  position: absolute;
  background-color: transparent;
  left: 50%;
  top: 50%;
  margin-left: -10px;
  margin-top: -10px;
  width: 20px;
  height: 20px;
}

.ag-chart-settings-prev,
.ag-chart-settings-next {
  position: relative;
  flex: none;
}
.ag-chart-settings-prev:focus-within,
.ag-chart-settings-next:focus-within {
  box-shadow: var(--ag-input-focus-box-shadow);
  border-radius: 1px;
}

.ag-chart-settings-prev-button,
.ag-chart-settings-next-button {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
  opacity: 0;
}

.ag-chart-settings-mini-charts-container {
  position: relative;
  flex: 1 1 auto;
  overflow-x: hidden;
  overflow-y: auto;
}

.ag-chart-settings-mini-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  display: flex;
  flex-direction: column;
  width: 100%;
  min-height: 100%;
  overflow: hidden;
}
.ag-chart-settings-mini-wrapper.ag-animating {
  transition: left 0.3s;
  transition-timing-function: ease-in-out;
}

.ag-chart-mini-thumbnail {
  cursor: pointer;
}

.ag-chart-mini-thumbnail-canvas {
  display: block;
}

.ag-chart-data-wrapper,
.ag-chart-format-wrapper,
.ag-chart-advanced-settings-wrapper {
  display: flex;
  flex-direction: column;
  position: relative;
  -moz-user-select: none;
  -webkit-user-select: none;
  user-select: none;
  padding-bottom: 16px;
}

.ag-chart-data-wrapper,
.ag-chart-advanced-settings-wrapper {
  height: 100%;
  overflow-y: auto;
}

.ag-chart-advanced-settings {
  background-color: var(--ag-control-panel-background-color);
}

.ag-chart-advanced-settings-wrapper,
.ag-chart-advanced-settings {
  width: 100%;
}

.ag-chart-advanced-settings-wrapper {
  padding-bottom: 0;
}

.ag-chart-data-section,
.ag-chart-format-section,
.ag-chart-advanced-settings-section {
  display: flex;
  margin: 0;
}

.ag-chart-advanced-settings-section {
  padding-top: var(--ag-grid-size);
  padding-bottom: var(--ag-grid-size);
}
.ag-chart-advanced-settings-section:not(:last-child) {
  border-bottom: 1px solid var(--ag-secondary-border-color);
}

.ag-chart-empty-text {
  display: flex;
  top: 0;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
  background-color: var(--ag-background-color);
}

.ag-chart .ag-chart-menu {
  display: none;
}

.ag-chart-menu-hidden:hover .ag-chart-menu {
  display: block;
}

.ag-chart .ag-chart-menu-wrapper .ag-chart-menu {
  display: flex;
  flex-direction: row;
  top: 8px;
  gap: 20px;
  width: auto;
}
.ag-ltr .ag-chart .ag-chart-menu-wrapper .ag-chart-menu {
  right: calc(var(--ag-cell-horizontal-padding) + var(--ag-grid-size) - 4px);
  justify-content: right;
}
.ag-rtl .ag-chart .ag-chart-menu-wrapper .ag-chart-menu {
  left: calc(var(--ag-cell-horizontal-padding) + var(--ag-grid-size) - 4px);
  justify-content: left;
}

.ag-charts-font-size-color {
  display: flex;
  align-self: stretch;
  justify-content: space-between;
}

.ag-charts-data-group-item {
  position: relative;
}

.ag-charts-data-group-item:not(:last-child) {
  margin-bottom: var(--ag-grid-size);
}

.ag-chart-menu {
  border-radius: var(--ag-card-radius);
  background: var(--ag-background-color);
}

.ag-chart-menu-icon {
  opacity: 0.5;
  margin: 2px 0;
  cursor: pointer;
  border-radius: var(--ag-card-radius);
  color: var(--ag-secondary-foreground-color);
}
.ag-chart-menu-icon:hover {
  opacity: 1;
}

.ag-chart-menu-toolbar-button {
  border: 0;
  background-color: transparent;
  background-color: initial;
  padding: 0 2px;
  border-radius: 1px;
}

.ag-chart-mini-thumbnail {
  border: 1px solid var(--ag-secondary-border-color);
  border-radius: 5px;
}
.ag-chart-mini-thumbnail.ag-selected {
  border-color: var(--ag-minichart-selected-chart-color);
  border-width: 2px;
}
.ag-chart-mini-thumbnail:focus-visible {
  outline: none;
  border-color: var(--ag-minichart-selected-chart-color);
  box-shadow: var(--ag-input-focus-box-shadow);
}

.ag-chart-settings-card-item {
  background: var(--ag-foreground-color);
  width: 8px;
  height: 8px;
  border-radius: 4px;
}
.ag-chart-settings-card-item.ag-selected {
  background-color: var(--ag-minichart-selected-page-color);
}

.ag-chart-data-column-drag-handle {
  margin-left: var(--ag-grid-size);
}

.ag-charts-settings-group-title-bar,
.ag-charts-data-group-title-bar,
.ag-charts-format-top-level-group-title-bar {
  border-top: var(--ag-borders-secondary) var(--ag-secondary-border-color);
  position: relative;
}

.ag-charts-advanced-settings-top-level-group-title-bar {
  position: relative;
  background-color: transparent;
  background-color: initial;
}

.ag-charts-data-group-title-bar:focus-visible {
  outline: none;
}
.ag-charts-data-group-title-bar:focus-visible::after {
  content: "";
  position: absolute;
  background-color: transparent;
  pointer-events: none;
  top: 4px;
  left: 4px;
  display: block;
  width: calc(100% - 8px);
  height: calc(100% - 8px);
  border: 1px solid;
  border-color: var(--ag-input-focus-border-color);
}

.ag-charts-format-top-level-group-title-bar:focus-visible {
  outline: none;
}
.ag-charts-format-top-level-group-title-bar:focus-visible::after {
  content: "";
  position: absolute;
  background-color: transparent;
  pointer-events: none;
  top: 4px;
  left: 4px;
  display: block;
  width: calc(100% - 8px);
  height: calc(100% - 8px);
  border: 1px solid;
  border-color: var(--ag-input-focus-border-color);
}

.ag-charts-data-group-title-bar .ag-charts-data-group-title,
.ag-charts-format-top-level-group-title-bar .ag-charts-format-top-level-group-title {
  cursor: pointer;
}

.ag-charts-data-group-container {
  padding: calc(var(--ag-widget-container-vertical-padding) * 0.5) var(--ag-widget-container-horizontal-padding);
}
.ag-charts-data-group-container .ag-charts-data-group-item:not(.ag-charts-format-sub-level-group):not(.ag-pill-select):not(.ag-select) {
  height: var(--ag-list-item-height);
}
.ag-charts-data-group-container .ag-charts-data-group-item.ag-picker-field {
  margin-top: var(--ag-grid-size);
}
.ag-charts-data-group-container .ag-list-item-hovered::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 1px;
}
.ag-charts-data-group-container .ag-item-highlight-top::after {
  top: 0;
}
.ag-charts-data-group-container .ag-item-highlight-bottom::after {
  bottom: 0;
}

.ag-charts-format-top-level-group-container,
.ag-charts-advanced-settings-top-level-group-container {
  padding: var(--ag-grid-size);
}
.ag-ltr .ag-charts-format-top-level-group-container,
.ag-ltr .ag-charts-advanced-settings-top-level-group-container {
  margin-left: calc(var(--ag-grid-size) * 2);
}
.ag-rtl .ag-charts-format-top-level-group-container,
.ag-rtl .ag-charts-advanced-settings-top-level-group-container {
  margin-right: calc(var(--ag-grid-size) * 2);
}

.ag-charts-format-top-level-group-item,
.ag-charts-advanced-settings-top-level-group-item {
  margin: var(--ag-grid-size) 0;
}

.ag-charts-format-sub-level-group-container {
  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));
}
.ag-charts-format-sub-level-group-container > * {
  margin-bottom: var(--ag-widget-vertical-spacing);
}

.ag-charts-format-sub-level-no-header-group-container > * {
  margin-bottom: var(--ag-widget-vertical-spacing);
}

.ag-charts-format-sub-level-group-container .ag-charts-format-sub-level-group-item.ag-font-panel-no-header {
  margin: 0;
}

.ag-charts-settings-group-container {
  padding: var(--ag-grid-size);
  grid-row-gap: 8px;
  row-gap: 8px;
  display: grid;
  grid-template-columns: 60px 1fr 60px 1fr 60px;
}
.ag-charts-settings-group-container .ag-chart-mini-thumbnail:nth-child(3n+1) {
  grid-column: 1;
}
.ag-charts-settings-group-container .ag-chart-mini-thumbnail:nth-child(3n+2) {
  grid-column: 3;
}
.ag-charts-settings-group-container .ag-chart-mini-thumbnail:nth-child(3n+3) {
  grid-column: 5;
}

.ag-chart-menu-panel {
  background-color: var(--ag-control-panel-background-color);
}
.ag-ltr .ag-chart-menu-panel {
  border-left: solid 1px var(--ag-border-color);
}
.ag-rtl .ag-chart-menu-panel {
  border-right: solid 1px var(--ag-border-color);
}

.ag-charts-theme-default {
  --ag-charts-align: none !important;
  --ag-charts-justify: none !important;
}

.ag-date-time-list-page-title-bar {
  display: flex;
}

.ag-date-time-list-page-title {
  flex-grow: 1;
  text-align: center;
}

.ag-date-time-list-page-column-labels-row,
.ag-date-time-list-page-entries-row {
  display: flex;
}

.ag-date-time-list-page-column-label,
.ag-date-time-list-page-entry {
  flex-basis: 0;
  flex-grow: 1;
}

.ag-date-time-list-page-entry {
  cursor: pointer;
  text-align: center;
}

.ag-date-time-list-page-column-label {
  text-align: center;
}

.ag-advanced-filter-header {
  position: relative;
  display: flex;
  align-items: center;
  padding-left: var(--ag-cell-horizontal-padding);
  padding-right: var(--ag-cell-horizontal-padding);
}

.ag-advanced-filter {
  display: flex;
  align-items: center;
  width: 100%;
}

.ag-advanced-filter-apply-button,
.ag-advanced-filter-builder-button {
  line-height: normal;
  white-space: nowrap;
}
.ag-ltr .ag-advanced-filter-apply-button,
.ag-ltr .ag-advanced-filter-builder-button {
  margin-left: calc(var(--ag-grid-size) * 2);
}
.ag-rtl .ag-advanced-filter-apply-button,
.ag-rtl .ag-advanced-filter-builder-button {
  margin-right: calc(var(--ag-grid-size) * 2);
}

.ag-advanced-filter-builder-button {
  display: flex;
  align-items: center;
  border: 0;
  background-color: transparent;
  background-color: initial;
  color: var(--ag-foreground-color);
  font-size: var(--ag-font-size);
  font-weight: 600;
}
.ag-advanced-filter-builder-button:hover:not(:disabled) {
  background-color: var(--ag-row-hover-color);
}
.ag-advanced-filter-builder-button:not(:disabled) {
  cursor: pointer;
}

.ag-advanced-filter-builder-button-label {
  margin-left: var(--ag-grid-size);
}

.ag-advanced-filter-builder {
  -moz-user-select: none;
  -webkit-user-select: none;
  user-select: none;
  width: 100%;
  background-color: var(--ag-control-panel-background-color);
  display: flex;
  flex-direction: column;
}

.ag-advanced-filter-builder-list {
  flex: 1;
  overflow: auto;
}
.ag-advanced-filter-builder-list .ag-list-item-hovered::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 1px;
}
.ag-advanced-filter-builder-list .ag-item-highlight-top::after {
  top: 0;
}
.ag-advanced-filter-builder-list .ag-item-highlight-bottom::after {
  bottom: 0;
}

.ag-advanced-filter-builder-button-panel {
  display: flex;
  justify-content: flex-end;
  padding: var(--ag-widget-container-vertical-padding) var(--ag-widget-container-horizontal-padding);
  border-top: var(--ag-borders-secondary) var(--ag-secondary-border-color);
}

.ag-advanced-filter-builder .ag-advanced-filter-builder-button-panel .ag-advanced-filter-builder-apply-button,
.ag-advanced-filter-builder .ag-advanced-filter-builder-button-panel .ag-advanced-filter-builder-cancel-button {
  margin-left: calc(var(--ag-grid-size) * 2);
}

.ag-advanced-filter-builder-item-wrapper {
  display: flex;
  flex: 1 1 auto;
  align-items: center;
  justify-content: space-between;
  overflow: hidden;
  padding-left: calc(var(--ag-icon-size) / 2);
  padding-right: var(--ag-icon-size);
}

.ag-virtual-list-viewport .ag-advanced-filter-builder-item-wrapper .ag-tab-guard {
  position: absolute;
}

.ag-advanced-filter-builder-item-tree-lines > * {
  width: var(--ag-advanced-filter-builder-indent-size);
}

.ag-advanced-filter-builder-item-tree-lines .ag-advanced-filter-builder-item-tree-line-root {
  width: var(--ag-icon-size);
}
.ag-advanced-filter-builder-item-tree-lines .ag-advanced-filter-builder-item-tree-line-root::before {
  top: 50%;
  height: 50%;
}

.ag-advanced-filter-builder-item-tree-line-horizontal,
.ag-advanced-filter-builder-item-tree-line-vertical,
.ag-advanced-filter-builder-item-tree-line-vertical-top,
.ag-advanced-filter-builder-item-tree-line-vertical-bottom {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
}
.ag-advanced-filter-builder-item-tree-line-horizontal::before, .ag-advanced-filter-builder-item-tree-line-horizontal::after,
.ag-advanced-filter-builder-item-tree-line-vertical::before,
.ag-advanced-filter-builder-item-tree-line-vertical::after,
.ag-advanced-filter-builder-item-tree-line-vertical-top::before,
.ag-advanced-filter-builder-item-tree-line-vertical-top::after,
.ag-advanced-filter-builder-item-tree-line-vertical-bottom::before,
.ag-advanced-filter-builder-item-tree-line-vertical-bottom::after {
  content: "";
  position: absolute;
  height: 100%;
}

.ag-advanced-filter-builder-item-tree-line-horizontal::after {
  height: 50%;
  width: calc(var(--ag-advanced-filter-builder-indent-size) - var(--ag-icon-size));
  top: 0;
  left: calc(var(--ag-icon-size) / 2);
  border-bottom: 1px solid;
  border-color: var(--ag-border-color);
}

.ag-advanced-filter-builder-item-tree-line-vertical::before {
  width: calc(var(--ag-advanced-filter-builder-indent-size) - var(--ag-icon-size) / 2);
  top: 0;
  left: calc(var(--ag-icon-size) / 2);
  border-left: 1px solid;
  border-color: var(--ag-border-color);
}

.ag-advanced-filter-builder-item-tree-line-vertical-top::before {
  height: 50%;
  width: calc(var(--ag-advanced-filter-builder-indent-size) - var(--ag-icon-size) / 2);
  top: 0;
  left: calc(var(--ag-icon-size) / 2);
  border-left: 1px solid;
  border-color: var(--ag-border-color);
}

.ag-advanced-filter-builder-item-tree-line-vertical-bottom::before {
  height: calc((100% - 1.5 * var(--ag-icon-size)) / 2);
  width: calc(var(--ag-icon-size) / 2);
  top: calc((100% + 1.5 * var(--ag-icon-size)) / 2);
  left: calc(var(--ag-icon-size) / 2);
  border-left: 1px solid;
  border-color: var(--ag-border-color);
}

.ag-advanced-filter-builder-item-condition {
  padding-top: var(--ag-grid-size);
  padding-bottom: var(--ag-grid-size);
}

.ag-advanced-filter-builder-item,
.ag-advanced-filter-builder-item-condition,
.ag-advanced-filter-builder-pill-wrapper,
.ag-advanced-filter-builder-pill,
.ag-advanced-filter-builder-item-buttons,
.ag-advanced-filter-builder-item-tree-lines {
  display: flex;
  align-items: center;
  height: 100%;
}

.ag-advanced-filter-builder-pill-wrapper {
  margin: 0px var(--ag-grid-size);
}

.ag-advanced-filter-builder-pill {
  position: relative;
  border-radius: var(--ag-border-radius);
  padding: var(--ag-grid-size) calc(var(--ag-grid-size) * 2);
  min-height: calc(100% - var(--ag-grid-size) * 3);
  min-width: calc(var(--ag-grid-size) * 2);
}
.ag-advanced-filter-builder-pill .ag-picker-field-display {
  margin-right: var(--ag-grid-size);
}
.ag-advanced-filter-builder-pill .ag-advanced-filter-builder-value-number {
  font-family: monospace;
  font-weight: 700;
}
.ag-advanced-filter-builder-pill .ag-advanced-filter-builder-value-empty {
  color: var(--ag-disabled-foreground-color);
}

.ag-advanced-filter-builder-pill:focus-visible {
  outline: none;
}
.ag-advanced-filter-builder-pill:focus-visible::after {
  content: "";
  position: absolute;
  background-color: transparent;
  pointer-events: none;
  top: -4px;
  left: -4px;
  display: block;
  width: calc(100% - -8px);
  height: calc(100% - -8px);
  border: 1px solid;
  border-color: var(--ag-input-focus-border-color);
}

.ag-advanced-filter-builder-item-button:focus-visible {
  outline: none;
}
.ag-advanced-filter-builder-item-button:focus-visible::after {
  content: "";
  position: absolute;
  background-color: transparent;
  pointer-events: none;
  top: -4px;
  left: -4px;
  display: block;
  width: calc(100% - -8px);
  height: calc(100% - -8px);
  border: 1px solid;
  border-color: var(--ag-input-focus-border-color);
}

.ag-advanced-filter-builder-pill-display {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 500;
}

.ag-advanced-filter-builder-join-pill {
  color: var(--ag-foreground-color);
  background-color: var(--ag-advanced-filter-join-pill-color);
  cursor: pointer;
}

.ag-advanced-filter-builder-column-pill {
  color: var(--ag-foreground-color);
  background-color: var(--ag-advanced-filter-column-pill-color);
  cursor: pointer;
}

.ag-advanced-filter-builder-option-pill {
  color: var(--ag-foreground-color);
  background-color: var(--ag-advanced-filter-option-pill-color);
  cursor: pointer;
}

.ag-advanced-filter-builder-value-pill {
  color: var(--ag-foreground-color);
  background-color: var(--ag-advanced-filter-value-pill-color);
  cursor: text;
  max-width: 140px;
}
.ag-advanced-filter-builder-value-pill .ag-advanced-filter-builder-pill-display {
  display: block;
}

.ag-advanced-filter-builder-item-buttons > * {
  margin: 0 calc(var(--ag-grid-size) * 0.5);
}

.ag-advanced-filter-builder-item-button {
  position: relative;
  cursor: pointer;
  color: var(--ag-secondary-foreground-color);
  opacity: 0.5;
}

.ag-advanced-filter-builder-item-button-disabled {
  color: var(--ag-disabled-foreground-color);
  cursor: default;
}

.ag-advanced-filter-builder-virtual-list-container {
  top: var(--ag-grid-size);
}

.ag-advanced-filter-builder-virtual-list-item {
  display: flex;
  cursor: default;
  height: var(--ag-list-item-height);
}
.ag-advanced-filter-builder-virtual-list-item:hover {
  background-color: var(--ag-row-hover-color);
}
.ag-advanced-filter-builder-virtual-list-item:hover .ag-advanced-filter-builder-item-button {
  opacity: 1;
}

.ag-advanced-filter-builder-virtual-list-item-highlight .ag-advanced-filter-builder-item-button:focus-visible,
.ag-advanced-filter-builder-validation .ag-advanced-filter-builder-invalid {
  opacity: 1;
}

.ag-advanced-filter-builder-invalid {
  margin: 0 var(--ag-grid-size);
  color: var(--ag-invalid-color);
  cursor: default;
}

.ag-input-field-input {
  width: 100%;
  min-width: 0;
}

.ag-checkbox-input-wrapper {
  font-family: var(--ag-icon-font-family);
  font-weight: var(--ag-icon-font-weight);
  color: var(--ag-icon-font-color);
  font-size: var(--ag-icon-size);
  line-height: var(--ag-icon-size);
  font-style: normal;
  font-feature-settings: normal;
  font-variant: normal;
  text-transform: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  width: var(--ag-icon-size);
  height: var(--ag-icon-size);
  background-color: var(--ag-checkbox-background-color);
  border-radius: var(--ag-checkbox-border-radius);
  display: inline-block;
  vertical-align: middle;
  flex: none;
}
.ag-checkbox-input-wrapper input,
.ag-checkbox-input-wrapper input {
  -webkit-appearance: none;
  opacity: 0;
  width: 100%;
  height: 100%;
}
.ag-checkbox-input-wrapper:focus-within, .ag-checkbox-input-wrapper:active {
  outline: none;
  box-shadow: var(--ag-input-focus-box-shadow);
}
.ag-checkbox-input-wrapper.ag-disabled {
  opacity: 0.5;
}
.ag-checkbox-input-wrapper::after {
  content: "\\f108";
  content: var(--ag-icon-font-code-checkbox-unchecked, "\\f108");
  font-family: inherit;
  color: var(--ag-checkbox-unchecked-color);
  display: var(--ag-icon-font-display-checkbox-unchecked, var(--ag-icon-font-display));
  position: absolute;
  top: 0;
  left: 0;
  pointer-events: none;
}
.ag-checkbox-input-wrapper.ag-checked::after {
  content: "\\f106";
  content: var(--ag-icon-font-code-checkbox-checked, "\\f106");
  color: var(--ag-checkbox-checked-color);
  display: var(--ag-icon-font-display-checkbox-checked, var(--ag-icon-font-display));
  position: absolute;
  top: 0;
  left: 0;
  pointer-events: none;
}
.ag-checkbox-input-wrapper.ag-indeterminate::after {
  content: "\\f107";
  content: var(--ag-icon-font-code-checkbox-indeterminate, "\\f107");
  color: var(--ag-checkbox-indeterminate-color);
  display: var(--ag-icon-font-display-checkbox-indeterminate, var(--ag-icon-font-display));
  position: absolute;
  top: 0;
  left: 0;
  pointer-events: none;
}
.ag-checkbox-input-wrapper::before {
  content: "";
  background: transparent center/contain no-repeat;
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background-image: var(--ag-icon-image-checkbox-unchecked, var(--ag-icon-image));
  display: var(--ag-icon-image-display-checkbox-unchecked, var(--ag-icon-image-display));
  opacity: 0.9;
  opacity: var(--ag-icon-image-opacity-checkbox-unchecked, var(--ag-icon-image-opacity, 0.9));
}
.ag-checkbox-input-wrapper.ag-checked::before {
  background-image: var(--ag-icon-image-checkbox-checked, var(--ag-icon-image));
  display: var(--ag-icon-image-display-checkbox-checked, var(--ag-icon-image-display));
  opacity: 0.9;
  opacity: var(--ag-icon-image-opacity-checkbox-checked, var(--ag-icon-image-opacity, 0.9));
}
.ag-checkbox-input-wrapper.ag-indeterminate::before {
  background-image: var(--ag-icon-image-checkbox-indeterminate, var(--ag-icon-image));
  display: var(--ag-icon-image-display-checkbox-indeterminate, var(--ag-icon-image-display));
  opacity: 0.9;
  opacity: var(--ag-icon-image-opacity-checkbox-indeterminate, var(--ag-icon-image-opacity, 0.9));
}

.ag-toggle-button-input-wrapper {
  box-sizing: border-box;
  width: var(--ag-toggle-button-width);
  min-width: var(--ag-toggle-button-width);
  max-width: var(--ag-toggle-button-width);
  height: var(--ag-toggle-button-height);
  background-color: var(--ag-toggle-button-off-background-color);
  border-radius: calc(var(--ag-toggle-button-height) * 0.5);
  position: relative;
  flex: none;
  border: var(--ag-toggle-button-border-width) solid;
  border-color: var(--ag-toggle-button-off-border-color);
}
.ag-toggle-button-input-wrapper input {
  opacity: 0;
  height: 100%;
  width: 100%;
}
.ag-toggle-button-input-wrapper:focus-within {
  outline: none;
  box-shadow: var(--ag-input-focus-box-shadow);
}
.ag-toggle-button-input-wrapper.ag-disabled {
  opacity: 0.5;
}
.ag-toggle-button-input-wrapper.ag-checked {
  background-color: var(--ag-toggle-button-on-background-color);
  border-color: var(--ag-toggle-button-on-border-color);
}
.ag-toggle-button-input-wrapper::before {
  content: " ";
  position: absolute;
  top: calc(0px - var(--ag-toggle-button-border-width));
  left: calc(0px - var(--ag-toggle-button-border-width));
  display: block;
  box-sizing: border-box;
  height: var(--ag-toggle-button-height);
  width: var(--ag-toggle-button-height);
  background-color: var(--ag-toggle-button-switch-background-color);
  border-radius: 100%;
  transition: left 100ms;
  border: var(--ag-toggle-button-border-width) solid;
  border-color: var(--ag-toggle-button-switch-border-color);
}
.ag-toggle-button-input-wrapper.ag-checked::before {
  left: calc(100% - var(--ag-toggle-button-height) + var(--ag-toggle-button-border-width));
  border-color: var(--ag-toggle-button-on-border-color);
}

.ag-radio-button-input-wrapper {
  font-family: var(--ag-icon-font-family);
  font-weight: var(--ag-icon-font-weight);
  color: var(--ag-icon-font-color);
  font-size: var(--ag-icon-size);
  line-height: var(--ag-icon-size);
  font-style: normal;
  font-feature-settings: normal;
  font-variant: normal;
  text-transform: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  width: var(--ag-icon-size);
  height: var(--ag-icon-size);
  background-color: var(--ag-checkbox-background-color);
  border-radius: var(--ag-checkbox-border-radius);
  display: inline-block;
  vertical-align: middle;
  flex: none;
  border-radius: var(--ag-icon-size);
}
.ag-radio-button-input-wrapper input,
.ag-radio-button-input-wrapper input {
  -webkit-appearance: none;
  opacity: 0;
  width: 100%;
  height: 100%;
}
.ag-radio-button-input-wrapper:focus-within, .ag-radio-button-input-wrapper:active {
  outline: none;
  box-shadow: var(--ag-input-focus-box-shadow);
}
.ag-radio-button-input-wrapper.ag-disabled {
  opacity: 0.5;
}
.ag-radio-button-input-wrapper::after {
  content: "\\f127";
  content: var(--ag-icon-font-code-radio-button-off, "\\f127");
  color: var(--ag-checkbox-unchecked-color);
  display: var(--ag-icon-font-display-radio-button-off, var(--ag-icon-font-display));
  position: absolute;
  top: 0;
  left: 0;
  pointer-events: none;
}
.ag-radio-button-input-wrapper.ag-checked::after {
  content: "\\f128";
  content: var(--ag-icon-font-code-radio-button-on, "\\f128");
  color: var(--ag-checkbox-checked-color);
  display: var(--ag-icon-font-display-radio-button-on, var(--ag-icon-font-display));
  position: absolute;
  top: 0;
  left: 0;
  pointer-events: none;
}
.ag-radio-button-input-wrapper::before {
  content: "";
  background: transparent center/contain no-repeat;
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background-image: var(--ag-icon-image-radio-button-off, var(--ag-icon-image));
  display: var(--ag-icon-image-display-radio-button-off, var(--ag-icon-image-display));
  opacity: 0.9;
  opacity: var(--ag-icon-image-opacity-radio-button-off, var(--ag-icon-image-opacity, 0.9));
}
.ag-radio-button-input-wrapper.ag-checked::before {
  background-image: var(--ag-icon-image-radio-button-on, var(--ag-icon-image));
  display: var(--ag-icon-image-display-radio-button-on, var(--ag-icon-image-display));
  opacity: 0.9;
  opacity: var(--ag-icon-image-opacity-radio-button-on, var(--ag-icon-image-opacity, 0.9));
}

input[class^=ag-][type=range] {
  -webkit-appearance: none;
  width: 100%;
  height: 100%;
  background: none;
  overflow: visible;
}
input[class^=ag-][type=range]::-webkit-slider-runnable-track {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 3px;
  background-color: var(--ag-border-color);
  border-radius: var(--ag-border-radius);
  border-radius: var(--ag-checkbox-border-radius);
}
input[class^=ag-][type=range]::-moz-range-track {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 3px;
  background-color: var(--ag-border-color);
  border-radius: var(--ag-border-radius);
  border-radius: var(--ag-checkbox-border-radius);
}
input[class^=ag-][type=range]::-ms-track {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 3px;
  background-color: var(--ag-border-color);
  border-radius: var(--ag-border-radius);
  border-radius: var(--ag-checkbox-border-radius);
  color: transparent;
  width: calc(100% - 2px);
}
input[class^=ag-][type=range]::-webkit-slider-thumb {
  margin: 0;
  padding: 0;
  -webkit-appearance: none;
  width: var(--ag-icon-size);
  height: var(--ag-icon-size);
  background-color: var(--ag-background-color);
  border: 1px solid;
  border-color: var(--ag-checkbox-unchecked-color);
  border-radius: var(--ag-icon-size);
  transform: translateY(calc(var(--ag-icon-size) * -0.5 + 1.5px));
}
input[class^=ag-][type=range]::-ms-thumb {
  margin: 0;
  padding: 0;
  -webkit-appearance: none;
  width: var(--ag-icon-size);
  height: var(--ag-icon-size);
  background-color: var(--ag-background-color);
  border: 1px solid;
  border-color: var(--ag-checkbox-unchecked-color);
  border-radius: var(--ag-icon-size);
}
input[class^=ag-][type=range]::-moz-ag-range-thumb {
  margin: 0;
  padding: 0;
  -webkit-appearance: none;
  width: var(--ag-icon-size);
  height: var(--ag-icon-size);
  background-color: var(--ag-background-color);
  border: 1px solid;
  border-color: var(--ag-checkbox-unchecked-color);
  border-radius: var(--ag-icon-size);
}
input[class^=ag-][type=range]:focus {
  outline: none;
}
input[class^=ag-][type=range]:focus::-webkit-slider-thumb {
  box-shadow: var(--ag-input-focus-box-shadow);
  border-color: var(--ag-checkbox-checked-color);
}
input[class^=ag-][type=range]:focus::-ms-thumb {
  box-shadow: var(--ag-input-focus-box-shadow);
  border-color: var(--ag-checkbox-checked-color);
}
input[class^=ag-][type=range]:focus::-moz-ag-range-thumb {
  box-shadow: var(--ag-input-focus-box-shadow);
  border-color: var(--ag-checkbox-checked-color);
}
input[class^=ag-][type=range]:active::-webkit-slider-runnable-track {
  background-color: var(--ag-input-focus-border-color);
}
input[class^=ag-][type=range]:active::-moz-ag-range-track {
  background-color: var(--ag-input-focus-border-color);
}
input[class^=ag-][type=range]:active::-ms-track {
  background-color: var(--ag-input-focus-border-color);
}
input[class^=ag-][type=range]:disabled {
  opacity: 0.5;
}
`,""]),x.A=r},8483:function(ne,x,p){var M=p(6758),A=p.n(M),F=p(935),D=p.n(F)()(A());D.push([ne.id,`.ag-theme-alpine,
.ag-theme-alpine-dark,
.ag-theme-alpine-auto-dark {
  --ag-alpine-active-color: #2196f3;
  --ag-selected-row-background-color: rgba(33, 150, 243, 0.3);
  --ag-row-hover-color: rgba(33, 150, 243, 0.1);
  --ag-column-hover-color: rgba(33, 150, 243, 0.1);
  --ag-input-focus-border-color: rgba(33, 150, 243, 0.4);
  --ag-range-selection-background-color: rgba(33, 150, 243, 0.2);
  --ag-range-selection-background-color-2: rgba(33, 150, 243, 0.36);
  --ag-range-selection-background-color-3: rgba(33, 150, 243, 0.49);
  --ag-range-selection-background-color-4: rgba(33, 150, 243, 0.59);
  --ag-background-color: #fff;
  --ag-foreground-color: #181d1f;
  --ag-border-color: #babfc7;
  --ag-secondary-border-color: #dde2eb;
  --ag-header-background-color: #f8f8f8;
  --ag-tooltip-background-color: #f8f8f8;
  --ag-odd-row-background-color: #fcfcfc;
  --ag-control-panel-background-color: #f8f8f8;
  --ag-subheader-background-color: #fff;
  --ag-invalid-color: #e02525;
  --ag-checkbox-unchecked-color: #999;
  --ag-advanced-filter-join-pill-color: #f08e8d;
  --ag-advanced-filter-column-pill-color: #a6e194;
  --ag-advanced-filter-option-pill-color: #f3c08b;
  --ag-advanced-filter-value-pill-color: #85c0e4;
  --ag-checkbox-background-color: var(--ag-background-color);
  --ag-checkbox-checked-color: var(--ag-alpine-active-color);
  --ag-range-selection-border-color: var(--ag-alpine-active-color);
  --ag-secondary-foreground-color: var(--ag-foreground-color);
  --ag-input-border-color: var(--ag-border-color);
  --ag-input-border-color-invalid: var(--ag-invalid-color);
  --ag-input-focus-box-shadow: 0 0 2px 0.1rem var(--ag-input-focus-border-color);
  --ag-panel-background-color: var(--ag-header-background-color);
  --ag-menu-background-color: var(--ag-header-background-color);
  --ag-disabled-foreground-color: rgba(24, 29, 31, 0.5);
  --ag-chip-background-color: rgba(24, 29, 31, 0.07);
  --ag-input-disabled-border-color: rgba(186, 191, 199, 0.3);
  --ag-input-disabled-background-color: rgba(186, 191, 199, 0.15);
  --ag-borders: solid 1px;
  --ag-border-radius: 3px;
  --ag-borders-side-button: none;
  --ag-side-button-selected-background-color: transparent;
  --ag-header-column-resize-handle-display: block;
  --ag-header-column-resize-handle-width: 2px;
  --ag-header-column-resize-handle-height: 30%;
  --ag-grid-size: 6px;
  --ag-icon-size: 16px;
  --ag-row-height: calc(var(--ag-grid-size) * 7);
  --ag-header-height: calc(var(--ag-grid-size) * 8);
  --ag-list-item-height: calc(var(--ag-grid-size) * 4);
  --ag-column-select-indent-size: var(--ag-icon-size);
  --ag-set-filter-indent-size: var(--ag-icon-size);
  --ag-advanced-filter-builder-indent-size: calc(var(--ag-icon-size) + var(--ag-grid-size) * 2);
  --ag-cell-horizontal-padding: calc(var(--ag-grid-size) * 3);
  --ag-cell-widget-spacing: calc(var(--ag-grid-size) * 2);
  --ag-widget-container-vertical-padding: calc(var(--ag-grid-size) * 2);
  --ag-widget-container-horizontal-padding: calc(var(--ag-grid-size) * 2);
  --ag-widget-vertical-spacing: calc(var(--ag-grid-size) * 1.5);
  --ag-toggle-button-height: 18px;
  --ag-toggle-button-width: 28px;
  --ag-font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell,
      "Helvetica Neue", sans-serif;
  --ag-font-size: 13px;
  --ag-icon-font-family: agGridAlpine;
  --ag-selected-tab-underline-color: var(--ag-alpine-active-color);
  --ag-selected-tab-underline-width: 2px;
  --ag-selected-tab-underline-transition-speed: 0.3s;
  --ag-tab-min-width: 240px;
  --ag-card-shadow: 0 1px 4px 1px rgba(186, 191, 199, 0.4);
  --ag-popup-shadow: var(--ag-card-shadow);
  --ag-side-bar-panel-width: 250px;
}

.ag-theme-alpine-dark {
  --ag-background-color: #181d1f;
  --ag-foreground-color: #fff;
  --ag-border-color: #68686e;
  --ag-secondary-border-color: rgba(88, 86, 82, 0.5);
  --ag-modal-overlay-background-color: rgba(24, 29, 31, 0.66);
  --ag-header-background-color: #222628;
  --ag-tooltip-background-color: #222628;
  --ag-odd-row-background-color: #222628;
  --ag-control-panel-background-color: #222628;
  --ag-subheader-background-color: #000;
  --ag-input-disabled-background-color: #282c2f;
  --ag-input-focus-box-shadow: 0 0 2px 0.5px rgba(255, 255, 255, 0.5), 0 0 4px 3px var(--ag-input-focus-border-color);
  --ag-card-shadow: 0 1px 20px 1px black;
  --ag-disabled-foreground-color: rgba(255, 255, 255, 0.5);
  --ag-chip-background-color: rgba(255, 255, 255, 0.07);
  --ag-input-disabled-border-color: rgba(104, 104, 110, 0.3);
  --ag-input-disabled-background-color: rgba(104, 104, 110, 0.07);
  --ag-advanced-filter-join-pill-color: #7a3a37;
  --ag-advanced-filter-column-pill-color: #355f2d;
  --ag-advanced-filter-option-pill-color: #5a3168;
  --ag-advanced-filter-value-pill-color: #374c86;
  --ag-row-loading-skeleton-effect-color: rgba(202, 203, 204, 0.4);
  --csstools-color-scheme--dark: initial;
  color-scheme: dark;
}

@media (prefers-color-scheme: dark) {
  .ag-theme-alpine-auto-dark {
    --ag-background-color: #181d1f;
    --ag-foreground-color: #fff;
    --ag-border-color: #68686e;
    --ag-secondary-border-color: rgba(88, 86, 82, 0.5);
    --ag-modal-overlay-background-color: rgba(24, 29, 31, 0.66);
    --ag-header-background-color: #222628;
    --ag-tooltip-background-color: #222628;
    --ag-odd-row-background-color: #222628;
    --ag-control-panel-background-color: #222628;
    --ag-subheader-background-color: #000;
    --ag-input-disabled-background-color: #282c2f;
    --ag-input-focus-box-shadow: 0 0 2px 0.5px rgba(255, 255, 255, 0.5), 0 0 4px 3px var(--ag-input-focus-border-color);
    --ag-card-shadow: 0 1px 20px 1px black;
    --ag-disabled-foreground-color: rgba(255, 255, 255, 0.5);
    --ag-chip-background-color: rgba(255, 255, 255, 0.07);
    --ag-input-disabled-border-color: rgba(104, 104, 110, 0.3);
    --ag-input-disabled-background-color: rgba(104, 104, 110, 0.07);
    --ag-advanced-filter-join-pill-color: #7a3a37;
    --ag-advanced-filter-column-pill-color: #355f2d;
    --ag-advanced-filter-option-pill-color: #5a3168;
    --ag-advanced-filter-value-pill-color: #374c86;
    --ag-row-loading-skeleton-effect-color: rgba(202, 203, 204, 0.4);
    --csstools-color-scheme--dark: initial;
    color-scheme: dark;
  }
}
.ag-theme-alpine .ag-filter-toolpanel-header,
.ag-theme-alpine .ag-filter-toolpanel-search,
.ag-theme-alpine .ag-status-bar,
.ag-theme-alpine .ag-header-row,
.ag-theme-alpine .ag-panel-title-bar-title,
.ag-theme-alpine .ag-multi-filter-group-title-bar,
.ag-theme-alpine-dark .ag-filter-toolpanel-header,
.ag-theme-alpine-dark .ag-filter-toolpanel-search,
.ag-theme-alpine-dark .ag-status-bar,
.ag-theme-alpine-dark .ag-header-row,
.ag-theme-alpine-dark .ag-panel-title-bar-title,
.ag-theme-alpine-dark .ag-multi-filter-group-title-bar,
.ag-theme-alpine-auto-dark .ag-filter-toolpanel-header,
.ag-theme-alpine-auto-dark .ag-filter-toolpanel-search,
.ag-theme-alpine-auto-dark .ag-status-bar,
.ag-theme-alpine-auto-dark .ag-header-row,
.ag-theme-alpine-auto-dark .ag-panel-title-bar-title,
.ag-theme-alpine-auto-dark .ag-multi-filter-group-title-bar {
  font-weight: 700;
  color: var(--ag-header-foreground-color);
}
.ag-theme-alpine .ag-row,
.ag-theme-alpine-dark .ag-row,
.ag-theme-alpine-auto-dark .ag-row {
  font-size: calc(var(--ag-font-size) + 1px);
}
.ag-theme-alpine input[class^=ag-]:not([type]),
.ag-theme-alpine input[class^=ag-][type=text],
.ag-theme-alpine input[class^=ag-][type=number],
.ag-theme-alpine input[class^=ag-][type=tel],
.ag-theme-alpine input[class^=ag-][type=date],
.ag-theme-alpine input[class^=ag-][type=datetime-local],
.ag-theme-alpine textarea[class^=ag-],
.ag-theme-alpine-dark input[class^=ag-]:not([type]),
.ag-theme-alpine-dark input[class^=ag-][type=text],
.ag-theme-alpine-dark input[class^=ag-][type=number],
.ag-theme-alpine-dark input[class^=ag-][type=tel],
.ag-theme-alpine-dark input[class^=ag-][type=date],
.ag-theme-alpine-dark input[class^=ag-][type=datetime-local],
.ag-theme-alpine-dark textarea[class^=ag-],
.ag-theme-alpine-auto-dark input[class^=ag-]:not([type]),
.ag-theme-alpine-auto-dark input[class^=ag-][type=text],
.ag-theme-alpine-auto-dark input[class^=ag-][type=number],
.ag-theme-alpine-auto-dark input[class^=ag-][type=tel],
.ag-theme-alpine-auto-dark input[class^=ag-][type=date],
.ag-theme-alpine-auto-dark input[class^=ag-][type=datetime-local],
.ag-theme-alpine-auto-dark textarea[class^=ag-] {
  min-height: calc(var(--ag-grid-size) * 4);
  border-radius: var(--ag-border-radius);
}
.ag-theme-alpine .ag-ltr input[class^=ag-]:not([type]), .ag-theme-alpine .ag-ltr input[class^=ag-][type=text], .ag-theme-alpine .ag-ltr input[class^=ag-][type=number], .ag-theme-alpine .ag-ltr input[class^=ag-][type=tel], .ag-theme-alpine .ag-ltr input[class^=ag-][type=date], .ag-theme-alpine .ag-ltr input[class^=ag-][type=datetime-local], .ag-theme-alpine .ag-ltr textarea[class^=ag-], .ag-theme-alpine-dark .ag-ltr input[class^=ag-]:not([type]), .ag-theme-alpine-dark .ag-ltr input[class^=ag-][type=text], .ag-theme-alpine-dark .ag-ltr input[class^=ag-][type=number], .ag-theme-alpine-dark .ag-ltr input[class^=ag-][type=tel], .ag-theme-alpine-dark .ag-ltr input[class^=ag-][type=date], .ag-theme-alpine-dark .ag-ltr input[class^=ag-][type=datetime-local], .ag-theme-alpine-dark .ag-ltr textarea[class^=ag-], .ag-theme-alpine-auto-dark .ag-ltr input[class^=ag-]:not([type]), .ag-theme-alpine-auto-dark .ag-ltr input[class^=ag-][type=text], .ag-theme-alpine-auto-dark .ag-ltr input[class^=ag-][type=number], .ag-theme-alpine-auto-dark .ag-ltr input[class^=ag-][type=tel], .ag-theme-alpine-auto-dark .ag-ltr input[class^=ag-][type=date], .ag-theme-alpine-auto-dark .ag-ltr input[class^=ag-][type=datetime-local], .ag-theme-alpine-auto-dark .ag-ltr textarea[class^=ag-] {
  padding-left: var(--ag-grid-size);
}

.ag-theme-alpine .ag-rtl input[class^=ag-]:not([type]), .ag-theme-alpine .ag-rtl input[class^=ag-][type=text], .ag-theme-alpine .ag-rtl input[class^=ag-][type=number], .ag-theme-alpine .ag-rtl input[class^=ag-][type=tel], .ag-theme-alpine .ag-rtl input[class^=ag-][type=date], .ag-theme-alpine .ag-rtl input[class^=ag-][type=datetime-local], .ag-theme-alpine .ag-rtl textarea[class^=ag-], .ag-theme-alpine-dark .ag-rtl input[class^=ag-]:not([type]), .ag-theme-alpine-dark .ag-rtl input[class^=ag-][type=text], .ag-theme-alpine-dark .ag-rtl input[class^=ag-][type=number], .ag-theme-alpine-dark .ag-rtl input[class^=ag-][type=tel], .ag-theme-alpine-dark .ag-rtl input[class^=ag-][type=date], .ag-theme-alpine-dark .ag-rtl input[class^=ag-][type=datetime-local], .ag-theme-alpine-dark .ag-rtl textarea[class^=ag-], .ag-theme-alpine-auto-dark .ag-rtl input[class^=ag-]:not([type]), .ag-theme-alpine-auto-dark .ag-rtl input[class^=ag-][type=text], .ag-theme-alpine-auto-dark .ag-rtl input[class^=ag-][type=number], .ag-theme-alpine-auto-dark .ag-rtl input[class^=ag-][type=tel], .ag-theme-alpine-auto-dark .ag-rtl input[class^=ag-][type=date], .ag-theme-alpine-auto-dark .ag-rtl input[class^=ag-][type=datetime-local], .ag-theme-alpine-auto-dark .ag-rtl textarea[class^=ag-] {
  padding-right: var(--ag-grid-size);
}

.ag-theme-alpine .ag-tab,
.ag-theme-alpine-dark .ag-tab,
.ag-theme-alpine-auto-dark .ag-tab {
  padding: calc(var(--ag-grid-size) * 1.5);
  transition: color 0.4s;
  flex: 1 1 auto;
}
.ag-theme-alpine .ag-tab-selected,
.ag-theme-alpine-dark .ag-tab-selected,
.ag-theme-alpine-auto-dark .ag-tab-selected {
  color: var(--ag-alpine-active-color);
}
.ag-theme-alpine .ag-menu,
.ag-theme-alpine-dark .ag-menu,
.ag-theme-alpine-auto-dark .ag-menu {
  background-color: var(--ag-control-panel-background-color);
}
.ag-theme-alpine .ag-panel-content-wrapper .ag-column-select,
.ag-theme-alpine-dark .ag-panel-content-wrapper .ag-column-select,
.ag-theme-alpine-auto-dark .ag-panel-content-wrapper .ag-column-select {
  background-color: var(--ag-control-panel-background-color);
}
.ag-theme-alpine .ag-menu-header,
.ag-theme-alpine-dark .ag-menu-header,
.ag-theme-alpine-auto-dark .ag-menu-header {
  background-color: var(--ag-control-panel-background-color);
  padding-top: 1px;
}
.ag-theme-alpine .ag-tabs-header,
.ag-theme-alpine-dark .ag-tabs-header,
.ag-theme-alpine-auto-dark .ag-tabs-header {
  border-bottom: var(--ag-borders) var(--ag-border-color);
}
.ag-theme-alpine .ag-charts-settings-group-title-bar,
.ag-theme-alpine .ag-charts-data-group-title-bar,
.ag-theme-alpine .ag-charts-format-top-level-group-title-bar,
.ag-theme-alpine .ag-charts-advanced-settings-top-level-group-title-bar,
.ag-theme-alpine-dark .ag-charts-settings-group-title-bar,
.ag-theme-alpine-dark .ag-charts-data-group-title-bar,
.ag-theme-alpine-dark .ag-charts-format-top-level-group-title-bar,
.ag-theme-alpine-dark .ag-charts-advanced-settings-top-level-group-title-bar,
.ag-theme-alpine-auto-dark .ag-charts-settings-group-title-bar,
.ag-theme-alpine-auto-dark .ag-charts-data-group-title-bar,
.ag-theme-alpine-auto-dark .ag-charts-format-top-level-group-title-bar,
.ag-theme-alpine-auto-dark .ag-charts-advanced-settings-top-level-group-title-bar {
  padding: var(--ag-grid-size) calc(var(--ag-grid-size) * 2);
  line-height: calc(var(--ag-icon-size) + var(--ag-grid-size) - 2px);
}
.ag-theme-alpine .ag-chart-mini-thumbnail,
.ag-theme-alpine-dark .ag-chart-mini-thumbnail,
.ag-theme-alpine-auto-dark .ag-chart-mini-thumbnail {
  background-color: var(--ag-background-color);
}
.ag-theme-alpine .ag-chart-settings-nav-bar,
.ag-theme-alpine-dark .ag-chart-settings-nav-bar,
.ag-theme-alpine-auto-dark .ag-chart-settings-nav-bar {
  border-top: var(--ag-borders-secondary) var(--ag-secondary-border-color);
}
.ag-theme-alpine .ag-ltr .ag-group-title-bar-icon, .ag-theme-alpine-dark .ag-ltr .ag-group-title-bar-icon, .ag-theme-alpine-auto-dark .ag-ltr .ag-group-title-bar-icon {
  margin-right: var(--ag-grid-size);
}

.ag-theme-alpine .ag-rtl .ag-group-title-bar-icon, .ag-theme-alpine-dark .ag-rtl .ag-group-title-bar-icon, .ag-theme-alpine-auto-dark .ag-rtl .ag-group-title-bar-icon {
  margin-left: var(--ag-grid-size);
}

.ag-theme-alpine .ag-charts-format-top-level-group-toolbar,
.ag-theme-alpine .ag-charts-advanced-settings-top-level-group-toolbar,
.ag-theme-alpine-dark .ag-charts-format-top-level-group-toolbar,
.ag-theme-alpine-dark .ag-charts-advanced-settings-top-level-group-toolbar,
.ag-theme-alpine-auto-dark .ag-charts-format-top-level-group-toolbar,
.ag-theme-alpine-auto-dark .ag-charts-advanced-settings-top-level-group-toolbar {
  margin-top: var(--ag-grid-size);
}
.ag-theme-alpine .ag-ltr .ag-charts-format-top-level-group-toolbar, .ag-theme-alpine .ag-ltr .ag-charts-advanced-settings-top-level-group-toolbar, .ag-theme-alpine-dark .ag-ltr .ag-charts-format-top-level-group-toolbar, .ag-theme-alpine-dark .ag-ltr .ag-charts-advanced-settings-top-level-group-toolbar, .ag-theme-alpine-auto-dark .ag-ltr .ag-charts-format-top-level-group-toolbar, .ag-theme-alpine-auto-dark .ag-ltr .ag-charts-advanced-settings-top-level-group-toolbar {
  padding-left: calc(var(--ag-icon-size) * 0.5 + var(--ag-grid-size) * 2);
}

.ag-theme-alpine .ag-rtl .ag-charts-format-top-level-group-toolbar, .ag-theme-alpine .ag-rtl .ag-charts-advanced-settings-top-level-group-toolbar, .ag-theme-alpine-dark .ag-rtl .ag-charts-format-top-level-group-toolbar, .ag-theme-alpine-dark .ag-rtl .ag-charts-advanced-settings-top-level-group-toolbar, .ag-theme-alpine-auto-dark .ag-rtl .ag-charts-format-top-level-group-toolbar, .ag-theme-alpine-auto-dark .ag-rtl .ag-charts-advanced-settings-top-level-group-toolbar {
  padding-right: calc(var(--ag-icon-size) * 0.5 + var(--ag-grid-size) * 2);
}

.ag-theme-alpine .ag-charts-format-sub-level-group,
.ag-theme-alpine-dark .ag-charts-format-sub-level-group,
.ag-theme-alpine-auto-dark .ag-charts-format-sub-level-group {
  border-left: dashed 1px;
  border-left-color: var(--ag-border-color);
  padding-left: var(--ag-grid-size);
  margin-bottom: calc(var(--ag-grid-size) * 2);
}
.ag-theme-alpine .ag-charts-format-sub-level-group-title-bar,
.ag-theme-alpine-dark .ag-charts-format-sub-level-group-title-bar,
.ag-theme-alpine-auto-dark .ag-charts-format-sub-level-group-title-bar {
  padding-top: 0;
  padding-bottom: 0;
  background: none;
  font-weight: 700;
}
.ag-theme-alpine .ag-charts-format-sub-level-group-container,
.ag-theme-alpine-dark .ag-charts-format-sub-level-group-container,
.ag-theme-alpine-auto-dark .ag-charts-format-sub-level-group-container {
  padding-bottom: 0;
}
.ag-theme-alpine .ag-charts-format-sub-level-group-item:last-child,
.ag-theme-alpine-dark .ag-charts-format-sub-level-group-item:last-child,
.ag-theme-alpine-auto-dark .ag-charts-format-sub-level-group-item:last-child {
  margin-bottom: 0;
}
.ag-theme-alpine.ag-dnd-ghost,
.ag-theme-alpine-dark.ag-dnd-ghost,
.ag-theme-alpine-auto-dark.ag-dnd-ghost {
  font-size: calc(var(--ag-font-size) - 1px);
  font-weight: 700;
}
.ag-theme-alpine .ag-side-buttons,
.ag-theme-alpine-dark .ag-side-buttons,
.ag-theme-alpine-auto-dark .ag-side-buttons {
  width: calc(var(--ag-grid-size) * 5);
}
.ag-theme-alpine .ag-standard-button,
.ag-theme-alpine-dark .ag-standard-button,
.ag-theme-alpine-auto-dark .ag-standard-button {
  font-family: inherit;
  -moz-appearance: none;
       appearance: none;
  -webkit-appearance: none;
  border-radius: var(--ag-border-radius);
  border: 1px solid;
  border-color: var(--ag-alpine-active-color);
  color: var(--ag-alpine-active-color);
  background-color: var(--ag-background-color);
  font-weight: 600;
  padding: var(--ag-grid-size) calc(var(--ag-grid-size) * 2);
}
.ag-theme-alpine .ag-standard-button:hover,
.ag-theme-alpine-dark .ag-standard-button:hover,
.ag-theme-alpine-auto-dark .ag-standard-button:hover {
  border-color: var(--ag-alpine-active-color);
  background-color: var(--ag-row-hover-color);
}
.ag-theme-alpine .ag-standard-button:active,
.ag-theme-alpine-dark .ag-standard-button:active,
.ag-theme-alpine-auto-dark .ag-standard-button:active {
  border-color: var(--ag-alpine-active-color);
  background-color: var(--ag-alpine-active-color);
  color: var(--ag-background-color);
}
.ag-theme-alpine .ag-standard-button:disabled,
.ag-theme-alpine-dark .ag-standard-button:disabled,
.ag-theme-alpine-auto-dark .ag-standard-button:disabled {
  color: var(--ag-disabled-foreground-color);
  background-color: var(--ag-input-disabled-background-color);
  border-color: var(--ag-input-disabled-border-color);
}
.ag-theme-alpine .ag-column-drop-vertical,
.ag-theme-alpine-dark .ag-column-drop-vertical,
.ag-theme-alpine-auto-dark .ag-column-drop-vertical {
  min-height: 75px;
}
.ag-theme-alpine .ag-column-drop-vertical-title-bar,
.ag-theme-alpine-dark .ag-column-drop-vertical-title-bar,
.ag-theme-alpine-auto-dark .ag-column-drop-vertical-title-bar {
  padding: calc(var(--ag-grid-size) * 2);
  padding-bottom: 0px;
}
.ag-theme-alpine .ag-column-drop-vertical-empty-message,
.ag-theme-alpine-dark .ag-column-drop-vertical-empty-message,
.ag-theme-alpine-auto-dark .ag-column-drop-vertical-empty-message {
  display: flex;
  align-items: center;
  border: dashed 1px;
  border-color: var(--ag-border-color);
  margin: calc(var(--ag-grid-size) * 2);
  padding: calc(var(--ag-grid-size) * 2);
}
.ag-theme-alpine .ag-column-drop-empty-message,
.ag-theme-alpine-dark .ag-column-drop-empty-message,
.ag-theme-alpine-auto-dark .ag-column-drop-empty-message {
  color: var(--ag-foreground-color);
  opacity: 0.75;
}
.ag-theme-alpine .ag-pill-select .ag-column-drop,
.ag-theme-alpine-dark .ag-pill-select .ag-column-drop,
.ag-theme-alpine-auto-dark .ag-pill-select .ag-column-drop {
  min-height: 0;
  min-height: initial;
}
.ag-theme-alpine .ag-status-bar,
.ag-theme-alpine-dark .ag-status-bar,
.ag-theme-alpine-auto-dark .ag-status-bar {
  font-weight: normal;
}
.ag-theme-alpine .ag-status-name-value-value,
.ag-theme-alpine-dark .ag-status-name-value-value,
.ag-theme-alpine-auto-dark .ag-status-name-value-value {
  font-weight: 700;
}
.ag-theme-alpine .ag-paging-number,
.ag-theme-alpine .ag-paging-row-summary-panel-number,
.ag-theme-alpine-dark .ag-paging-number,
.ag-theme-alpine-dark .ag-paging-row-summary-panel-number,
.ag-theme-alpine-auto-dark .ag-paging-number,
.ag-theme-alpine-auto-dark .ag-paging-row-summary-panel-number {
  font-weight: 700;
}
.ag-theme-alpine .ag-column-drop-cell-button,
.ag-theme-alpine-dark .ag-column-drop-cell-button,
.ag-theme-alpine-auto-dark .ag-column-drop-cell-button {
  opacity: 0.5;
}
.ag-theme-alpine .ag-column-drop-cell-button:hover,
.ag-theme-alpine-dark .ag-column-drop-cell-button:hover,
.ag-theme-alpine-auto-dark .ag-column-drop-cell-button:hover {
  opacity: 0.75;
}
.ag-theme-alpine .ag-column-select-column-readonly.ag-icon-grip,
.ag-theme-alpine .ag-column-select-column-readonly .ag-icon-grip,
.ag-theme-alpine-dark .ag-column-select-column-readonly.ag-icon-grip,
.ag-theme-alpine-dark .ag-column-select-column-readonly .ag-icon-grip,
.ag-theme-alpine-auto-dark .ag-column-select-column-readonly.ag-icon-grip,
.ag-theme-alpine-auto-dark .ag-column-select-column-readonly .ag-icon-grip {
  opacity: 0.35;
}
.ag-theme-alpine .ag-header-cell-menu-button:hover,
.ag-theme-alpine .ag-header-cell-filter-button:hover,
.ag-theme-alpine .ag-side-button-button:hover,
.ag-theme-alpine .ag-tab:hover,
.ag-theme-alpine .ag-panel-title-bar-button:hover,
.ag-theme-alpine .ag-header-expand-icon:hover,
.ag-theme-alpine .ag-column-group-icons:hover,
.ag-theme-alpine .ag-set-filter-group-icons:hover,
.ag-theme-alpine .ag-group-expanded .ag-icon:hover,
.ag-theme-alpine .ag-group-contracted .ag-icon:hover,
.ag-theme-alpine .ag-chart-settings-prev:hover,
.ag-theme-alpine .ag-chart-settings-next:hover,
.ag-theme-alpine .ag-group-title-bar-icon:hover,
.ag-theme-alpine .ag-column-select-header-icon:hover,
.ag-theme-alpine .ag-floating-filter-button-button:hover,
.ag-theme-alpine .ag-filter-toolpanel-expand:hover,
.ag-theme-alpine .ag-chart-menu-icon:hover,
.ag-theme-alpine-dark .ag-header-cell-menu-button:hover,
.ag-theme-alpine-dark .ag-header-cell-filter-button:hover,
.ag-theme-alpine-dark .ag-side-button-button:hover,
.ag-theme-alpine-dark .ag-tab:hover,
.ag-theme-alpine-dark .ag-panel-title-bar-button:hover,
.ag-theme-alpine-dark .ag-header-expand-icon:hover,
.ag-theme-alpine-dark .ag-column-group-icons:hover,
.ag-theme-alpine-dark .ag-set-filter-group-icons:hover,
.ag-theme-alpine-dark .ag-group-expanded .ag-icon:hover,
.ag-theme-alpine-dark .ag-group-contracted .ag-icon:hover,
.ag-theme-alpine-dark .ag-chart-settings-prev:hover,
.ag-theme-alpine-dark .ag-chart-settings-next:hover,
.ag-theme-alpine-dark .ag-group-title-bar-icon:hover,
.ag-theme-alpine-dark .ag-column-select-header-icon:hover,
.ag-theme-alpine-dark .ag-floating-filter-button-button:hover,
.ag-theme-alpine-dark .ag-filter-toolpanel-expand:hover,
.ag-theme-alpine-dark .ag-chart-menu-icon:hover,
.ag-theme-alpine-auto-dark .ag-header-cell-menu-button:hover,
.ag-theme-alpine-auto-dark .ag-header-cell-filter-button:hover,
.ag-theme-alpine-auto-dark .ag-side-button-button:hover,
.ag-theme-alpine-auto-dark .ag-tab:hover,
.ag-theme-alpine-auto-dark .ag-panel-title-bar-button:hover,
.ag-theme-alpine-auto-dark .ag-header-expand-icon:hover,
.ag-theme-alpine-auto-dark .ag-column-group-icons:hover,
.ag-theme-alpine-auto-dark .ag-set-filter-group-icons:hover,
.ag-theme-alpine-auto-dark .ag-group-expanded .ag-icon:hover,
.ag-theme-alpine-auto-dark .ag-group-contracted .ag-icon:hover,
.ag-theme-alpine-auto-dark .ag-chart-settings-prev:hover,
.ag-theme-alpine-auto-dark .ag-chart-settings-next:hover,
.ag-theme-alpine-auto-dark .ag-group-title-bar-icon:hover,
.ag-theme-alpine-auto-dark .ag-column-select-header-icon:hover,
.ag-theme-alpine-auto-dark .ag-floating-filter-button-button:hover,
.ag-theme-alpine-auto-dark .ag-filter-toolpanel-expand:hover,
.ag-theme-alpine-auto-dark .ag-chart-menu-icon:hover {
  color: var(--ag-alpine-active-color);
}
.ag-theme-alpine .ag-header-cell-menu-button:hover .ag-icon,
.ag-theme-alpine .ag-header-cell-filter-button:hover .ag-icon,
.ag-theme-alpine .ag-side-button-button:hover .ag-icon,
.ag-theme-alpine .ag-panel-title-bar-button:hover .ag-icon,
.ag-theme-alpine .ag-floating-filter-button-button:hover .ag-icon,
.ag-theme-alpine-dark .ag-header-cell-menu-button:hover .ag-icon,
.ag-theme-alpine-dark .ag-header-cell-filter-button:hover .ag-icon,
.ag-theme-alpine-dark .ag-side-button-button:hover .ag-icon,
.ag-theme-alpine-dark .ag-panel-title-bar-button:hover .ag-icon,
.ag-theme-alpine-dark .ag-floating-filter-button-button:hover .ag-icon,
.ag-theme-alpine-auto-dark .ag-header-cell-menu-button:hover .ag-icon,
.ag-theme-alpine-auto-dark .ag-header-cell-filter-button:hover .ag-icon,
.ag-theme-alpine-auto-dark .ag-side-button-button:hover .ag-icon,
.ag-theme-alpine-auto-dark .ag-panel-title-bar-button:hover .ag-icon,
.ag-theme-alpine-auto-dark .ag-floating-filter-button-button:hover .ag-icon {
  color: inherit;
}
.ag-theme-alpine .ag-filter-active .ag-icon-filter,
.ag-theme-alpine-dark .ag-filter-active .ag-icon-filter,
.ag-theme-alpine-auto-dark .ag-filter-active .ag-icon-filter {
  color: var(--ag-alpine-active-color);
}
.ag-theme-alpine .ag-chart-settings-card-item.ag-not-selected:hover,
.ag-theme-alpine-dark .ag-chart-settings-card-item.ag-not-selected:hover,
.ag-theme-alpine-auto-dark .ag-chart-settings-card-item.ag-not-selected:hover {
  opacity: 0.35;
}
.ag-theme-alpine .ag-ltr .ag-panel-title-bar-button, .ag-theme-alpine-dark .ag-ltr .ag-panel-title-bar-button, .ag-theme-alpine-auto-dark .ag-ltr .ag-panel-title-bar-button {
  margin-left: calc(var(--ag-grid-size) * 2);
  margin-right: var(--ag-grid-size);
}

.ag-theme-alpine .ag-rtl .ag-panel-title-bar-button, .ag-theme-alpine-dark .ag-rtl .ag-panel-title-bar-button, .ag-theme-alpine-auto-dark .ag-rtl .ag-panel-title-bar-button {
  margin-right: calc(var(--ag-grid-size) * 2);
  margin-left: var(--ag-grid-size);
}

.ag-theme-alpine .ag-ltr .ag-filter-toolpanel-group-container, .ag-theme-alpine-dark .ag-ltr .ag-filter-toolpanel-group-container, .ag-theme-alpine-auto-dark .ag-ltr .ag-filter-toolpanel-group-container {
  padding-left: var(--ag-grid-size);
}

.ag-theme-alpine .ag-rtl .ag-filter-toolpanel-group-container, .ag-theme-alpine-dark .ag-rtl .ag-filter-toolpanel-group-container, .ag-theme-alpine-auto-dark .ag-rtl .ag-filter-toolpanel-group-container {
  padding-right: var(--ag-grid-size);
}

.ag-theme-alpine .ag-filter-toolpanel-instance-filter,
.ag-theme-alpine-dark .ag-filter-toolpanel-instance-filter,
.ag-theme-alpine-auto-dark .ag-filter-toolpanel-instance-filter {
  border: none;
  background-color: var(--ag-control-panel-background-color);
}
.ag-theme-alpine .ag-ltr .ag-filter-toolpanel-instance-filter, .ag-theme-alpine-dark .ag-ltr .ag-filter-toolpanel-instance-filter, .ag-theme-alpine-auto-dark .ag-ltr .ag-filter-toolpanel-instance-filter {
  border-left: dashed 1px;
  border-left-color: var(--ag-border-color);
  margin-left: calc(var(--ag-icon-size) * 0.5);
}

.ag-theme-alpine .ag-rtl .ag-filter-toolpanel-instance-filter, .ag-theme-alpine-dark .ag-rtl .ag-filter-toolpanel-instance-filter, .ag-theme-alpine-auto-dark .ag-rtl .ag-filter-toolpanel-instance-filter {
  border-right: dashed 1px;
  border-right-color: var(--ag-border-color);
  margin-right: calc(var(--ag-icon-size) * 0.5);
}

.ag-theme-alpine .ag-set-filter-list,
.ag-theme-alpine-dark .ag-set-filter-list,
.ag-theme-alpine-auto-dark .ag-set-filter-list {
  padding-top: calc(var(--ag-grid-size) * 0.5);
  padding-bottom: calc(var(--ag-grid-size) * 0.5);
}
.ag-theme-alpine .ag-layout-auto-height .ag-center-cols-viewport,
.ag-theme-alpine .ag-layout-auto-height .ag-center-cols-container,
.ag-theme-alpine .ag-layout-print .ag-center-cols-viewport,
.ag-theme-alpine .ag-layout-print .ag-center-cols-container,
.ag-theme-alpine-dark .ag-layout-auto-height .ag-center-cols-viewport,
.ag-theme-alpine-dark .ag-layout-auto-height .ag-center-cols-container,
.ag-theme-alpine-dark .ag-layout-print .ag-center-cols-viewport,
.ag-theme-alpine-dark .ag-layout-print .ag-center-cols-container,
.ag-theme-alpine-auto-dark .ag-layout-auto-height .ag-center-cols-viewport,
.ag-theme-alpine-auto-dark .ag-layout-auto-height .ag-center-cols-container,
.ag-theme-alpine-auto-dark .ag-layout-print .ag-center-cols-viewport,
.ag-theme-alpine-auto-dark .ag-layout-print .ag-center-cols-container {
  min-height: 150px;
}
.ag-theme-alpine .ag-date-time-list-page-entry-is-current,
.ag-theme-alpine-dark .ag-date-time-list-page-entry-is-current,
.ag-theme-alpine-auto-dark .ag-date-time-list-page-entry-is-current {
  background-color: var(--ag-alpine-active-color);
}
.ag-theme-alpine .ag-advanced-filter-builder-button,
.ag-theme-alpine-dark .ag-advanced-filter-builder-button,
.ag-theme-alpine-auto-dark .ag-advanced-filter-builder-button {
  padding: var(--ag-grid-size);
  font-weight: 600;
}
.ag-theme-alpine .ag-list-item-hovered::after,
.ag-theme-alpine-dark .ag-list-item-hovered::after,
.ag-theme-alpine-auto-dark .ag-list-item-hovered::after {
  background-color: var(--ag-alpine-active-color);
}
.ag-theme-alpine .ag-pill .ag-pill-button:hover,
.ag-theme-alpine-dark .ag-pill .ag-pill-button:hover,
.ag-theme-alpine-auto-dark .ag-pill .ag-pill-button:hover {
  color: var(--ag-alpine-active-color);
}
.ag-theme-alpine .ag-header-highlight-before::after,
.ag-theme-alpine .ag-header-highlight-after::after,
.ag-theme-alpine-dark .ag-header-highlight-before::after,
.ag-theme-alpine-dark .ag-header-highlight-after::after,
.ag-theme-alpine-auto-dark .ag-header-highlight-before::after,
.ag-theme-alpine-auto-dark .ag-header-highlight-after::after {
  background-color: var(--ag-alpine-active-color);
}
`,""]),x.A=D},7521:function(ne,x,p){var M=p(6758),A=p.n(M),F=p(935),D=p.n(F),f=p(62),v=p.n(f),u=new URL(p(8430),p.b),s=D()(A()),r=v()(u);s.push([ne.id,`@font-face {
  font-family: "agGridAlpine";
  src: url(`+r+`);
  font-weight: normal;
  font-style: normal;
}
.ag-theme-alpine,
.ag-theme-alpine-dark,
.ag-theme-alpine-auto-dark {
  --ag-alpine-active-color: #2196f3;
  --ag-selected-row-background-color: rgba(33, 150, 243, 0.3);
  --ag-row-hover-color: rgba(33, 150, 243, 0.1);
  --ag-column-hover-color: rgba(33, 150, 243, 0.1);
  --ag-input-focus-border-color: rgba(33, 150, 243, 0.4);
  --ag-range-selection-background-color: rgba(33, 150, 243, 0.2);
  --ag-range-selection-background-color-2: rgba(33, 150, 243, 0.36);
  --ag-range-selection-background-color-3: rgba(33, 150, 243, 0.49);
  --ag-range-selection-background-color-4: rgba(33, 150, 243, 0.59);
  --ag-background-color: #fff;
  --ag-foreground-color: #181d1f;
  --ag-border-color: #babfc7;
  --ag-secondary-border-color: #dde2eb;
  --ag-header-background-color: #f8f8f8;
  --ag-tooltip-background-color: #f8f8f8;
  --ag-odd-row-background-color: #fcfcfc;
  --ag-control-panel-background-color: #f8f8f8;
  --ag-subheader-background-color: #fff;
  --ag-invalid-color: #e02525;
  --ag-checkbox-unchecked-color: #999;
  --ag-advanced-filter-join-pill-color: #f08e8d;
  --ag-advanced-filter-column-pill-color: #a6e194;
  --ag-advanced-filter-option-pill-color: #f3c08b;
  --ag-advanced-filter-value-pill-color: #85c0e4;
  --ag-checkbox-background-color: var(--ag-background-color);
  --ag-checkbox-checked-color: var(--ag-alpine-active-color);
  --ag-range-selection-border-color: var(--ag-alpine-active-color);
  --ag-secondary-foreground-color: var(--ag-foreground-color);
  --ag-input-border-color: var(--ag-border-color);
  --ag-input-border-color-invalid: var(--ag-invalid-color);
  --ag-input-focus-box-shadow: 0 0 2px 0.1rem var(--ag-input-focus-border-color);
  --ag-panel-background-color: var(--ag-header-background-color);
  --ag-menu-background-color: var(--ag-header-background-color);
  --ag-disabled-foreground-color: rgba(24, 29, 31, 0.5);
  --ag-chip-background-color: rgba(24, 29, 31, 0.07);
  --ag-input-disabled-border-color: rgba(186, 191, 199, 0.3);
  --ag-input-disabled-background-color: rgba(186, 191, 199, 0.15);
  --ag-borders: solid 1px;
  --ag-border-radius: 3px;
  --ag-borders-side-button: none;
  --ag-side-button-selected-background-color: transparent;
  --ag-header-column-resize-handle-display: block;
  --ag-header-column-resize-handle-width: 2px;
  --ag-header-column-resize-handle-height: 30%;
  --ag-grid-size: 6px;
  --ag-icon-size: 16px;
  --ag-row-height: calc(var(--ag-grid-size) * 7);
  --ag-header-height: calc(var(--ag-grid-size) * 8);
  --ag-list-item-height: calc(var(--ag-grid-size) * 4);
  --ag-column-select-indent-size: var(--ag-icon-size);
  --ag-set-filter-indent-size: var(--ag-icon-size);
  --ag-advanced-filter-builder-indent-size: calc(var(--ag-icon-size) + var(--ag-grid-size) * 2);
  --ag-cell-horizontal-padding: calc(var(--ag-grid-size) * 3);
  --ag-cell-widget-spacing: calc(var(--ag-grid-size) * 2);
  --ag-widget-container-vertical-padding: calc(var(--ag-grid-size) * 2);
  --ag-widget-container-horizontal-padding: calc(var(--ag-grid-size) * 2);
  --ag-widget-vertical-spacing: calc(var(--ag-grid-size) * 1.5);
  --ag-toggle-button-height: 18px;
  --ag-toggle-button-width: 28px;
  --ag-font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell,
      "Helvetica Neue", sans-serif;
  --ag-font-size: 13px;
  --ag-icon-font-family: agGridAlpine;
  --ag-selected-tab-underline-color: var(--ag-alpine-active-color);
  --ag-selected-tab-underline-width: 2px;
  --ag-selected-tab-underline-transition-speed: 0.3s;
  --ag-tab-min-width: 240px;
  --ag-card-shadow: 0 1px 4px 1px rgba(186, 191, 199, 0.4);
  --ag-popup-shadow: var(--ag-card-shadow);
  --ag-side-bar-panel-width: 250px;
}

.ag-theme-alpine-dark {
  --ag-background-color: #181d1f;
  --ag-foreground-color: #fff;
  --ag-border-color: #68686e;
  --ag-secondary-border-color: rgba(88, 86, 82, 0.5);
  --ag-modal-overlay-background-color: rgba(24, 29, 31, 0.66);
  --ag-header-background-color: #222628;
  --ag-tooltip-background-color: #222628;
  --ag-odd-row-background-color: #222628;
  --ag-control-panel-background-color: #222628;
  --ag-subheader-background-color: #000;
  --ag-input-disabled-background-color: #282c2f;
  --ag-input-focus-box-shadow: 0 0 2px 0.5px rgba(255, 255, 255, 0.5), 0 0 4px 3px var(--ag-input-focus-border-color);
  --ag-card-shadow: 0 1px 20px 1px black;
  --ag-disabled-foreground-color: rgba(255, 255, 255, 0.5);
  --ag-chip-background-color: rgba(255, 255, 255, 0.07);
  --ag-input-disabled-border-color: rgba(104, 104, 110, 0.3);
  --ag-input-disabled-background-color: rgba(104, 104, 110, 0.07);
  --ag-advanced-filter-join-pill-color: #7a3a37;
  --ag-advanced-filter-column-pill-color: #355f2d;
  --ag-advanced-filter-option-pill-color: #5a3168;
  --ag-advanced-filter-value-pill-color: #374c86;
  --ag-row-loading-skeleton-effect-color: rgba(202, 203, 204, 0.4);
  --csstools-color-scheme--dark: initial;
  color-scheme: dark;
}

@media (prefers-color-scheme: dark) {
  .ag-theme-alpine-auto-dark {
    --ag-background-color: #181d1f;
    --ag-foreground-color: #fff;
    --ag-border-color: #68686e;
    --ag-secondary-border-color: rgba(88, 86, 82, 0.5);
    --ag-modal-overlay-background-color: rgba(24, 29, 31, 0.66);
    --ag-header-background-color: #222628;
    --ag-tooltip-background-color: #222628;
    --ag-odd-row-background-color: #222628;
    --ag-control-panel-background-color: #222628;
    --ag-subheader-background-color: #000;
    --ag-input-disabled-background-color: #282c2f;
    --ag-input-focus-box-shadow: 0 0 2px 0.5px rgba(255, 255, 255, 0.5), 0 0 4px 3px var(--ag-input-focus-border-color);
    --ag-card-shadow: 0 1px 20px 1px black;
    --ag-disabled-foreground-color: rgba(255, 255, 255, 0.5);
    --ag-chip-background-color: rgba(255, 255, 255, 0.07);
    --ag-input-disabled-border-color: rgba(104, 104, 110, 0.3);
    --ag-input-disabled-background-color: rgba(104, 104, 110, 0.07);
    --ag-advanced-filter-join-pill-color: #7a3a37;
    --ag-advanced-filter-column-pill-color: #355f2d;
    --ag-advanced-filter-option-pill-color: #5a3168;
    --ag-advanced-filter-value-pill-color: #374c86;
    --ag-row-loading-skeleton-effect-color: rgba(202, 203, 204, 0.4);
    --csstools-color-scheme--dark: initial;
    color-scheme: dark;
  }
}
.ag-theme-alpine .ag-filter-toolpanel-header,
.ag-theme-alpine .ag-filter-toolpanel-search,
.ag-theme-alpine .ag-status-bar,
.ag-theme-alpine .ag-header-row,
.ag-theme-alpine .ag-panel-title-bar-title,
.ag-theme-alpine .ag-multi-filter-group-title-bar,
.ag-theme-alpine-dark .ag-filter-toolpanel-header,
.ag-theme-alpine-dark .ag-filter-toolpanel-search,
.ag-theme-alpine-dark .ag-status-bar,
.ag-theme-alpine-dark .ag-header-row,
.ag-theme-alpine-dark .ag-panel-title-bar-title,
.ag-theme-alpine-dark .ag-multi-filter-group-title-bar,
.ag-theme-alpine-auto-dark .ag-filter-toolpanel-header,
.ag-theme-alpine-auto-dark .ag-filter-toolpanel-search,
.ag-theme-alpine-auto-dark .ag-status-bar,
.ag-theme-alpine-auto-dark .ag-header-row,
.ag-theme-alpine-auto-dark .ag-panel-title-bar-title,
.ag-theme-alpine-auto-dark .ag-multi-filter-group-title-bar {
  font-weight: 700;
  color: var(--ag-header-foreground-color);
}
.ag-theme-alpine .ag-row,
.ag-theme-alpine-dark .ag-row,
.ag-theme-alpine-auto-dark .ag-row {
  font-size: calc(var(--ag-font-size) + 1px);
}
.ag-theme-alpine input[class^=ag-]:not([type]),
.ag-theme-alpine input[class^=ag-][type=text],
.ag-theme-alpine input[class^=ag-][type=number],
.ag-theme-alpine input[class^=ag-][type=tel],
.ag-theme-alpine input[class^=ag-][type=date],
.ag-theme-alpine input[class^=ag-][type=datetime-local],
.ag-theme-alpine textarea[class^=ag-],
.ag-theme-alpine-dark input[class^=ag-]:not([type]),
.ag-theme-alpine-dark input[class^=ag-][type=text],
.ag-theme-alpine-dark input[class^=ag-][type=number],
.ag-theme-alpine-dark input[class^=ag-][type=tel],
.ag-theme-alpine-dark input[class^=ag-][type=date],
.ag-theme-alpine-dark input[class^=ag-][type=datetime-local],
.ag-theme-alpine-dark textarea[class^=ag-],
.ag-theme-alpine-auto-dark input[class^=ag-]:not([type]),
.ag-theme-alpine-auto-dark input[class^=ag-][type=text],
.ag-theme-alpine-auto-dark input[class^=ag-][type=number],
.ag-theme-alpine-auto-dark input[class^=ag-][type=tel],
.ag-theme-alpine-auto-dark input[class^=ag-][type=date],
.ag-theme-alpine-auto-dark input[class^=ag-][type=datetime-local],
.ag-theme-alpine-auto-dark textarea[class^=ag-] {
  min-height: calc(var(--ag-grid-size) * 4);
  border-radius: var(--ag-border-radius);
}
.ag-theme-alpine .ag-ltr input[class^=ag-]:not([type]), .ag-theme-alpine .ag-ltr input[class^=ag-][type=text], .ag-theme-alpine .ag-ltr input[class^=ag-][type=number], .ag-theme-alpine .ag-ltr input[class^=ag-][type=tel], .ag-theme-alpine .ag-ltr input[class^=ag-][type=date], .ag-theme-alpine .ag-ltr input[class^=ag-][type=datetime-local], .ag-theme-alpine .ag-ltr textarea[class^=ag-], .ag-theme-alpine-dark .ag-ltr input[class^=ag-]:not([type]), .ag-theme-alpine-dark .ag-ltr input[class^=ag-][type=text], .ag-theme-alpine-dark .ag-ltr input[class^=ag-][type=number], .ag-theme-alpine-dark .ag-ltr input[class^=ag-][type=tel], .ag-theme-alpine-dark .ag-ltr input[class^=ag-][type=date], .ag-theme-alpine-dark .ag-ltr input[class^=ag-][type=datetime-local], .ag-theme-alpine-dark .ag-ltr textarea[class^=ag-], .ag-theme-alpine-auto-dark .ag-ltr input[class^=ag-]:not([type]), .ag-theme-alpine-auto-dark .ag-ltr input[class^=ag-][type=text], .ag-theme-alpine-auto-dark .ag-ltr input[class^=ag-][type=number], .ag-theme-alpine-auto-dark .ag-ltr input[class^=ag-][type=tel], .ag-theme-alpine-auto-dark .ag-ltr input[class^=ag-][type=date], .ag-theme-alpine-auto-dark .ag-ltr input[class^=ag-][type=datetime-local], .ag-theme-alpine-auto-dark .ag-ltr textarea[class^=ag-] {
  padding-left: var(--ag-grid-size);
}

.ag-theme-alpine .ag-rtl input[class^=ag-]:not([type]), .ag-theme-alpine .ag-rtl input[class^=ag-][type=text], .ag-theme-alpine .ag-rtl input[class^=ag-][type=number], .ag-theme-alpine .ag-rtl input[class^=ag-][type=tel], .ag-theme-alpine .ag-rtl input[class^=ag-][type=date], .ag-theme-alpine .ag-rtl input[class^=ag-][type=datetime-local], .ag-theme-alpine .ag-rtl textarea[class^=ag-], .ag-theme-alpine-dark .ag-rtl input[class^=ag-]:not([type]), .ag-theme-alpine-dark .ag-rtl input[class^=ag-][type=text], .ag-theme-alpine-dark .ag-rtl input[class^=ag-][type=number], .ag-theme-alpine-dark .ag-rtl input[class^=ag-][type=tel], .ag-theme-alpine-dark .ag-rtl input[class^=ag-][type=date], .ag-theme-alpine-dark .ag-rtl input[class^=ag-][type=datetime-local], .ag-theme-alpine-dark .ag-rtl textarea[class^=ag-], .ag-theme-alpine-auto-dark .ag-rtl input[class^=ag-]:not([type]), .ag-theme-alpine-auto-dark .ag-rtl input[class^=ag-][type=text], .ag-theme-alpine-auto-dark .ag-rtl input[class^=ag-][type=number], .ag-theme-alpine-auto-dark .ag-rtl input[class^=ag-][type=tel], .ag-theme-alpine-auto-dark .ag-rtl input[class^=ag-][type=date], .ag-theme-alpine-auto-dark .ag-rtl input[class^=ag-][type=datetime-local], .ag-theme-alpine-auto-dark .ag-rtl textarea[class^=ag-] {
  padding-right: var(--ag-grid-size);
}

.ag-theme-alpine .ag-tab,
.ag-theme-alpine-dark .ag-tab,
.ag-theme-alpine-auto-dark .ag-tab {
  padding: calc(var(--ag-grid-size) * 1.5);
  transition: color 0.4s;
  flex: 1 1 auto;
}
.ag-theme-alpine .ag-tab-selected,
.ag-theme-alpine-dark .ag-tab-selected,
.ag-theme-alpine-auto-dark .ag-tab-selected {
  color: var(--ag-alpine-active-color);
}
.ag-theme-alpine .ag-menu,
.ag-theme-alpine-dark .ag-menu,
.ag-theme-alpine-auto-dark .ag-menu {
  background-color: var(--ag-control-panel-background-color);
}
.ag-theme-alpine .ag-panel-content-wrapper .ag-column-select,
.ag-theme-alpine-dark .ag-panel-content-wrapper .ag-column-select,
.ag-theme-alpine-auto-dark .ag-panel-content-wrapper .ag-column-select {
  background-color: var(--ag-control-panel-background-color);
}
.ag-theme-alpine .ag-menu-header,
.ag-theme-alpine-dark .ag-menu-header,
.ag-theme-alpine-auto-dark .ag-menu-header {
  background-color: var(--ag-control-panel-background-color);
  padding-top: 1px;
}
.ag-theme-alpine .ag-tabs-header,
.ag-theme-alpine-dark .ag-tabs-header,
.ag-theme-alpine-auto-dark .ag-tabs-header {
  border-bottom: var(--ag-borders) var(--ag-border-color);
}
.ag-theme-alpine .ag-charts-settings-group-title-bar,
.ag-theme-alpine .ag-charts-data-group-title-bar,
.ag-theme-alpine .ag-charts-format-top-level-group-title-bar,
.ag-theme-alpine .ag-charts-advanced-settings-top-level-group-title-bar,
.ag-theme-alpine-dark .ag-charts-settings-group-title-bar,
.ag-theme-alpine-dark .ag-charts-data-group-title-bar,
.ag-theme-alpine-dark .ag-charts-format-top-level-group-title-bar,
.ag-theme-alpine-dark .ag-charts-advanced-settings-top-level-group-title-bar,
.ag-theme-alpine-auto-dark .ag-charts-settings-group-title-bar,
.ag-theme-alpine-auto-dark .ag-charts-data-group-title-bar,
.ag-theme-alpine-auto-dark .ag-charts-format-top-level-group-title-bar,
.ag-theme-alpine-auto-dark .ag-charts-advanced-settings-top-level-group-title-bar {
  padding: var(--ag-grid-size) calc(var(--ag-grid-size) * 2);
  line-height: calc(var(--ag-icon-size) + var(--ag-grid-size) - 2px);
}
.ag-theme-alpine .ag-chart-mini-thumbnail,
.ag-theme-alpine-dark .ag-chart-mini-thumbnail,
.ag-theme-alpine-auto-dark .ag-chart-mini-thumbnail {
  background-color: var(--ag-background-color);
}
.ag-theme-alpine .ag-chart-settings-nav-bar,
.ag-theme-alpine-dark .ag-chart-settings-nav-bar,
.ag-theme-alpine-auto-dark .ag-chart-settings-nav-bar {
  border-top: var(--ag-borders-secondary) var(--ag-secondary-border-color);
}
.ag-theme-alpine .ag-ltr .ag-group-title-bar-icon, .ag-theme-alpine-dark .ag-ltr .ag-group-title-bar-icon, .ag-theme-alpine-auto-dark .ag-ltr .ag-group-title-bar-icon {
  margin-right: var(--ag-grid-size);
}

.ag-theme-alpine .ag-rtl .ag-group-title-bar-icon, .ag-theme-alpine-dark .ag-rtl .ag-group-title-bar-icon, .ag-theme-alpine-auto-dark .ag-rtl .ag-group-title-bar-icon {
  margin-left: var(--ag-grid-size);
}

.ag-theme-alpine .ag-charts-format-top-level-group-toolbar,
.ag-theme-alpine .ag-charts-advanced-settings-top-level-group-toolbar,
.ag-theme-alpine-dark .ag-charts-format-top-level-group-toolbar,
.ag-theme-alpine-dark .ag-charts-advanced-settings-top-level-group-toolbar,
.ag-theme-alpine-auto-dark .ag-charts-format-top-level-group-toolbar,
.ag-theme-alpine-auto-dark .ag-charts-advanced-settings-top-level-group-toolbar {
  margin-top: var(--ag-grid-size);
}
.ag-theme-alpine .ag-ltr .ag-charts-format-top-level-group-toolbar, .ag-theme-alpine .ag-ltr .ag-charts-advanced-settings-top-level-group-toolbar, .ag-theme-alpine-dark .ag-ltr .ag-charts-format-top-level-group-toolbar, .ag-theme-alpine-dark .ag-ltr .ag-charts-advanced-settings-top-level-group-toolbar, .ag-theme-alpine-auto-dark .ag-ltr .ag-charts-format-top-level-group-toolbar, .ag-theme-alpine-auto-dark .ag-ltr .ag-charts-advanced-settings-top-level-group-toolbar {
  padding-left: calc(var(--ag-icon-size) * 0.5 + var(--ag-grid-size) * 2);
}

.ag-theme-alpine .ag-rtl .ag-charts-format-top-level-group-toolbar, .ag-theme-alpine .ag-rtl .ag-charts-advanced-settings-top-level-group-toolbar, .ag-theme-alpine-dark .ag-rtl .ag-charts-format-top-level-group-toolbar, .ag-theme-alpine-dark .ag-rtl .ag-charts-advanced-settings-top-level-group-toolbar, .ag-theme-alpine-auto-dark .ag-rtl .ag-charts-format-top-level-group-toolbar, .ag-theme-alpine-auto-dark .ag-rtl .ag-charts-advanced-settings-top-level-group-toolbar {
  padding-right: calc(var(--ag-icon-size) * 0.5 + var(--ag-grid-size) * 2);
}

.ag-theme-alpine .ag-charts-format-sub-level-group,
.ag-theme-alpine-dark .ag-charts-format-sub-level-group,
.ag-theme-alpine-auto-dark .ag-charts-format-sub-level-group {
  border-left: dashed 1px;
  border-left-color: var(--ag-border-color);
  padding-left: var(--ag-grid-size);
  margin-bottom: calc(var(--ag-grid-size) * 2);
}
.ag-theme-alpine .ag-charts-format-sub-level-group-title-bar,
.ag-theme-alpine-dark .ag-charts-format-sub-level-group-title-bar,
.ag-theme-alpine-auto-dark .ag-charts-format-sub-level-group-title-bar {
  padding-top: 0;
  padding-bottom: 0;
  background: none;
  font-weight: 700;
}
.ag-theme-alpine .ag-charts-format-sub-level-group-container,
.ag-theme-alpine-dark .ag-charts-format-sub-level-group-container,
.ag-theme-alpine-auto-dark .ag-charts-format-sub-level-group-container {
  padding-bottom: 0;
}
.ag-theme-alpine .ag-charts-format-sub-level-group-item:last-child,
.ag-theme-alpine-dark .ag-charts-format-sub-level-group-item:last-child,
.ag-theme-alpine-auto-dark .ag-charts-format-sub-level-group-item:last-child {
  margin-bottom: 0;
}
.ag-theme-alpine.ag-dnd-ghost,
.ag-theme-alpine-dark.ag-dnd-ghost,
.ag-theme-alpine-auto-dark.ag-dnd-ghost {
  font-size: calc(var(--ag-font-size) - 1px);
  font-weight: 700;
}
.ag-theme-alpine .ag-side-buttons,
.ag-theme-alpine-dark .ag-side-buttons,
.ag-theme-alpine-auto-dark .ag-side-buttons {
  width: calc(var(--ag-grid-size) * 5);
}
.ag-theme-alpine .ag-standard-button,
.ag-theme-alpine-dark .ag-standard-button,
.ag-theme-alpine-auto-dark .ag-standard-button {
  font-family: inherit;
  -moz-appearance: none;
       appearance: none;
  -webkit-appearance: none;
  border-radius: var(--ag-border-radius);
  border: 1px solid;
  border-color: var(--ag-alpine-active-color);
  color: var(--ag-alpine-active-color);
  background-color: var(--ag-background-color);
  font-weight: 600;
  padding: var(--ag-grid-size) calc(var(--ag-grid-size) * 2);
}
.ag-theme-alpine .ag-standard-button:hover,
.ag-theme-alpine-dark .ag-standard-button:hover,
.ag-theme-alpine-auto-dark .ag-standard-button:hover {
  border-color: var(--ag-alpine-active-color);
  background-color: var(--ag-row-hover-color);
}
.ag-theme-alpine .ag-standard-button:active,
.ag-theme-alpine-dark .ag-standard-button:active,
.ag-theme-alpine-auto-dark .ag-standard-button:active {
  border-color: var(--ag-alpine-active-color);
  background-color: var(--ag-alpine-active-color);
  color: var(--ag-background-color);
}
.ag-theme-alpine .ag-standard-button:disabled,
.ag-theme-alpine-dark .ag-standard-button:disabled,
.ag-theme-alpine-auto-dark .ag-standard-button:disabled {
  color: var(--ag-disabled-foreground-color);
  background-color: var(--ag-input-disabled-background-color);
  border-color: var(--ag-input-disabled-border-color);
}
.ag-theme-alpine .ag-column-drop-vertical,
.ag-theme-alpine-dark .ag-column-drop-vertical,
.ag-theme-alpine-auto-dark .ag-column-drop-vertical {
  min-height: 75px;
}
.ag-theme-alpine .ag-column-drop-vertical-title-bar,
.ag-theme-alpine-dark .ag-column-drop-vertical-title-bar,
.ag-theme-alpine-auto-dark .ag-column-drop-vertical-title-bar {
  padding: calc(var(--ag-grid-size) * 2);
  padding-bottom: 0px;
}
.ag-theme-alpine .ag-column-drop-vertical-empty-message,
.ag-theme-alpine-dark .ag-column-drop-vertical-empty-message,
.ag-theme-alpine-auto-dark .ag-column-drop-vertical-empty-message {
  display: flex;
  align-items: center;
  border: dashed 1px;
  border-color: var(--ag-border-color);
  margin: calc(var(--ag-grid-size) * 2);
  padding: calc(var(--ag-grid-size) * 2);
}
.ag-theme-alpine .ag-column-drop-empty-message,
.ag-theme-alpine-dark .ag-column-drop-empty-message,
.ag-theme-alpine-auto-dark .ag-column-drop-empty-message {
  color: var(--ag-foreground-color);
  opacity: 0.75;
}
.ag-theme-alpine .ag-pill-select .ag-column-drop,
.ag-theme-alpine-dark .ag-pill-select .ag-column-drop,
.ag-theme-alpine-auto-dark .ag-pill-select .ag-column-drop {
  min-height: 0;
  min-height: initial;
}
.ag-theme-alpine .ag-status-bar,
.ag-theme-alpine-dark .ag-status-bar,
.ag-theme-alpine-auto-dark .ag-status-bar {
  font-weight: normal;
}
.ag-theme-alpine .ag-status-name-value-value,
.ag-theme-alpine-dark .ag-status-name-value-value,
.ag-theme-alpine-auto-dark .ag-status-name-value-value {
  font-weight: 700;
}
.ag-theme-alpine .ag-paging-number,
.ag-theme-alpine .ag-paging-row-summary-panel-number,
.ag-theme-alpine-dark .ag-paging-number,
.ag-theme-alpine-dark .ag-paging-row-summary-panel-number,
.ag-theme-alpine-auto-dark .ag-paging-number,
.ag-theme-alpine-auto-dark .ag-paging-row-summary-panel-number {
  font-weight: 700;
}
.ag-theme-alpine .ag-column-drop-cell-button,
.ag-theme-alpine-dark .ag-column-drop-cell-button,
.ag-theme-alpine-auto-dark .ag-column-drop-cell-button {
  opacity: 0.5;
}
.ag-theme-alpine .ag-column-drop-cell-button:hover,
.ag-theme-alpine-dark .ag-column-drop-cell-button:hover,
.ag-theme-alpine-auto-dark .ag-column-drop-cell-button:hover {
  opacity: 0.75;
}
.ag-theme-alpine .ag-column-select-column-readonly.ag-icon-grip,
.ag-theme-alpine .ag-column-select-column-readonly .ag-icon-grip,
.ag-theme-alpine-dark .ag-column-select-column-readonly.ag-icon-grip,
.ag-theme-alpine-dark .ag-column-select-column-readonly .ag-icon-grip,
.ag-theme-alpine-auto-dark .ag-column-select-column-readonly.ag-icon-grip,
.ag-theme-alpine-auto-dark .ag-column-select-column-readonly .ag-icon-grip {
  opacity: 0.35;
}
.ag-theme-alpine .ag-header-cell-menu-button:hover,
.ag-theme-alpine .ag-header-cell-filter-button:hover,
.ag-theme-alpine .ag-side-button-button:hover,
.ag-theme-alpine .ag-tab:hover,
.ag-theme-alpine .ag-panel-title-bar-button:hover,
.ag-theme-alpine .ag-header-expand-icon:hover,
.ag-theme-alpine .ag-column-group-icons:hover,
.ag-theme-alpine .ag-set-filter-group-icons:hover,
.ag-theme-alpine .ag-group-expanded .ag-icon:hover,
.ag-theme-alpine .ag-group-contracted .ag-icon:hover,
.ag-theme-alpine .ag-chart-settings-prev:hover,
.ag-theme-alpine .ag-chart-settings-next:hover,
.ag-theme-alpine .ag-group-title-bar-icon:hover,
.ag-theme-alpine .ag-column-select-header-icon:hover,
.ag-theme-alpine .ag-floating-filter-button-button:hover,
.ag-theme-alpine .ag-filter-toolpanel-expand:hover,
.ag-theme-alpine .ag-chart-menu-icon:hover,
.ag-theme-alpine-dark .ag-header-cell-menu-button:hover,
.ag-theme-alpine-dark .ag-header-cell-filter-button:hover,
.ag-theme-alpine-dark .ag-side-button-button:hover,
.ag-theme-alpine-dark .ag-tab:hover,
.ag-theme-alpine-dark .ag-panel-title-bar-button:hover,
.ag-theme-alpine-dark .ag-header-expand-icon:hover,
.ag-theme-alpine-dark .ag-column-group-icons:hover,
.ag-theme-alpine-dark .ag-set-filter-group-icons:hover,
.ag-theme-alpine-dark .ag-group-expanded .ag-icon:hover,
.ag-theme-alpine-dark .ag-group-contracted .ag-icon:hover,
.ag-theme-alpine-dark .ag-chart-settings-prev:hover,
.ag-theme-alpine-dark .ag-chart-settings-next:hover,
.ag-theme-alpine-dark .ag-group-title-bar-icon:hover,
.ag-theme-alpine-dark .ag-column-select-header-icon:hover,
.ag-theme-alpine-dark .ag-floating-filter-button-button:hover,
.ag-theme-alpine-dark .ag-filter-toolpanel-expand:hover,
.ag-theme-alpine-dark .ag-chart-menu-icon:hover,
.ag-theme-alpine-auto-dark .ag-header-cell-menu-button:hover,
.ag-theme-alpine-auto-dark .ag-header-cell-filter-button:hover,
.ag-theme-alpine-auto-dark .ag-side-button-button:hover,
.ag-theme-alpine-auto-dark .ag-tab:hover,
.ag-theme-alpine-auto-dark .ag-panel-title-bar-button:hover,
.ag-theme-alpine-auto-dark .ag-header-expand-icon:hover,
.ag-theme-alpine-auto-dark .ag-column-group-icons:hover,
.ag-theme-alpine-auto-dark .ag-set-filter-group-icons:hover,
.ag-theme-alpine-auto-dark .ag-group-expanded .ag-icon:hover,
.ag-theme-alpine-auto-dark .ag-group-contracted .ag-icon:hover,
.ag-theme-alpine-auto-dark .ag-chart-settings-prev:hover,
.ag-theme-alpine-auto-dark .ag-chart-settings-next:hover,
.ag-theme-alpine-auto-dark .ag-group-title-bar-icon:hover,
.ag-theme-alpine-auto-dark .ag-column-select-header-icon:hover,
.ag-theme-alpine-auto-dark .ag-floating-filter-button-button:hover,
.ag-theme-alpine-auto-dark .ag-filter-toolpanel-expand:hover,
.ag-theme-alpine-auto-dark .ag-chart-menu-icon:hover {
  color: var(--ag-alpine-active-color);
}
.ag-theme-alpine .ag-header-cell-menu-button:hover .ag-icon,
.ag-theme-alpine .ag-header-cell-filter-button:hover .ag-icon,
.ag-theme-alpine .ag-side-button-button:hover .ag-icon,
.ag-theme-alpine .ag-panel-title-bar-button:hover .ag-icon,
.ag-theme-alpine .ag-floating-filter-button-button:hover .ag-icon,
.ag-theme-alpine-dark .ag-header-cell-menu-button:hover .ag-icon,
.ag-theme-alpine-dark .ag-header-cell-filter-button:hover .ag-icon,
.ag-theme-alpine-dark .ag-side-button-button:hover .ag-icon,
.ag-theme-alpine-dark .ag-panel-title-bar-button:hover .ag-icon,
.ag-theme-alpine-dark .ag-floating-filter-button-button:hover .ag-icon,
.ag-theme-alpine-auto-dark .ag-header-cell-menu-button:hover .ag-icon,
.ag-theme-alpine-auto-dark .ag-header-cell-filter-button:hover .ag-icon,
.ag-theme-alpine-auto-dark .ag-side-button-button:hover .ag-icon,
.ag-theme-alpine-auto-dark .ag-panel-title-bar-button:hover .ag-icon,
.ag-theme-alpine-auto-dark .ag-floating-filter-button-button:hover .ag-icon {
  color: inherit;
}
.ag-theme-alpine .ag-filter-active .ag-icon-filter,
.ag-theme-alpine-dark .ag-filter-active .ag-icon-filter,
.ag-theme-alpine-auto-dark .ag-filter-active .ag-icon-filter {
  color: var(--ag-alpine-active-color);
}
.ag-theme-alpine .ag-chart-settings-card-item.ag-not-selected:hover,
.ag-theme-alpine-dark .ag-chart-settings-card-item.ag-not-selected:hover,
.ag-theme-alpine-auto-dark .ag-chart-settings-card-item.ag-not-selected:hover {
  opacity: 0.35;
}
.ag-theme-alpine .ag-ltr .ag-panel-title-bar-button, .ag-theme-alpine-dark .ag-ltr .ag-panel-title-bar-button, .ag-theme-alpine-auto-dark .ag-ltr .ag-panel-title-bar-button {
  margin-left: calc(var(--ag-grid-size) * 2);
  margin-right: var(--ag-grid-size);
}

.ag-theme-alpine .ag-rtl .ag-panel-title-bar-button, .ag-theme-alpine-dark .ag-rtl .ag-panel-title-bar-button, .ag-theme-alpine-auto-dark .ag-rtl .ag-panel-title-bar-button {
  margin-right: calc(var(--ag-grid-size) * 2);
  margin-left: var(--ag-grid-size);
}

.ag-theme-alpine .ag-ltr .ag-filter-toolpanel-group-container, .ag-theme-alpine-dark .ag-ltr .ag-filter-toolpanel-group-container, .ag-theme-alpine-auto-dark .ag-ltr .ag-filter-toolpanel-group-container {
  padding-left: var(--ag-grid-size);
}

.ag-theme-alpine .ag-rtl .ag-filter-toolpanel-group-container, .ag-theme-alpine-dark .ag-rtl .ag-filter-toolpanel-group-container, .ag-theme-alpine-auto-dark .ag-rtl .ag-filter-toolpanel-group-container {
  padding-right: var(--ag-grid-size);
}

.ag-theme-alpine .ag-filter-toolpanel-instance-filter,
.ag-theme-alpine-dark .ag-filter-toolpanel-instance-filter,
.ag-theme-alpine-auto-dark .ag-filter-toolpanel-instance-filter {
  border: none;
  background-color: var(--ag-control-panel-background-color);
}
.ag-theme-alpine .ag-ltr .ag-filter-toolpanel-instance-filter, .ag-theme-alpine-dark .ag-ltr .ag-filter-toolpanel-instance-filter, .ag-theme-alpine-auto-dark .ag-ltr .ag-filter-toolpanel-instance-filter {
  border-left: dashed 1px;
  border-left-color: var(--ag-border-color);
  margin-left: calc(var(--ag-icon-size) * 0.5);
}

.ag-theme-alpine .ag-rtl .ag-filter-toolpanel-instance-filter, .ag-theme-alpine-dark .ag-rtl .ag-filter-toolpanel-instance-filter, .ag-theme-alpine-auto-dark .ag-rtl .ag-filter-toolpanel-instance-filter {
  border-right: dashed 1px;
  border-right-color: var(--ag-border-color);
  margin-right: calc(var(--ag-icon-size) * 0.5);
}

.ag-theme-alpine .ag-set-filter-list,
.ag-theme-alpine-dark .ag-set-filter-list,
.ag-theme-alpine-auto-dark .ag-set-filter-list {
  padding-top: calc(var(--ag-grid-size) * 0.5);
  padding-bottom: calc(var(--ag-grid-size) * 0.5);
}
.ag-theme-alpine .ag-layout-auto-height .ag-center-cols-viewport,
.ag-theme-alpine .ag-layout-auto-height .ag-center-cols-container,
.ag-theme-alpine .ag-layout-print .ag-center-cols-viewport,
.ag-theme-alpine .ag-layout-print .ag-center-cols-container,
.ag-theme-alpine-dark .ag-layout-auto-height .ag-center-cols-viewport,
.ag-theme-alpine-dark .ag-layout-auto-height .ag-center-cols-container,
.ag-theme-alpine-dark .ag-layout-print .ag-center-cols-viewport,
.ag-theme-alpine-dark .ag-layout-print .ag-center-cols-container,
.ag-theme-alpine-auto-dark .ag-layout-auto-height .ag-center-cols-viewport,
.ag-theme-alpine-auto-dark .ag-layout-auto-height .ag-center-cols-container,
.ag-theme-alpine-auto-dark .ag-layout-print .ag-center-cols-viewport,
.ag-theme-alpine-auto-dark .ag-layout-print .ag-center-cols-container {
  min-height: 150px;
}
.ag-theme-alpine .ag-date-time-list-page-entry-is-current,
.ag-theme-alpine-dark .ag-date-time-list-page-entry-is-current,
.ag-theme-alpine-auto-dark .ag-date-time-list-page-entry-is-current {
  background-color: var(--ag-alpine-active-color);
}
.ag-theme-alpine .ag-advanced-filter-builder-button,
.ag-theme-alpine-dark .ag-advanced-filter-builder-button,
.ag-theme-alpine-auto-dark .ag-advanced-filter-builder-button {
  padding: var(--ag-grid-size);
  font-weight: 600;
}
.ag-theme-alpine .ag-list-item-hovered::after,
.ag-theme-alpine-dark .ag-list-item-hovered::after,
.ag-theme-alpine-auto-dark .ag-list-item-hovered::after {
  background-color: var(--ag-alpine-active-color);
}
.ag-theme-alpine .ag-pill .ag-pill-button:hover,
.ag-theme-alpine-dark .ag-pill .ag-pill-button:hover,
.ag-theme-alpine-auto-dark .ag-pill .ag-pill-button:hover {
  color: var(--ag-alpine-active-color);
}
.ag-theme-alpine .ag-header-highlight-before::after,
.ag-theme-alpine .ag-header-highlight-after::after,
.ag-theme-alpine-dark .ag-header-highlight-before::after,
.ag-theme-alpine-dark .ag-header-highlight-after::after,
.ag-theme-alpine-auto-dark .ag-header-highlight-before::after,
.ag-theme-alpine-auto-dark .ag-header-highlight-after::after {
  background-color: var(--ag-alpine-active-color);
}
`,""]),x.A=s},4991:function(ne,x,p){var M=p(6758),A=p.n(M),F=p(935),D=p.n(F)()(A());D.push([ne.id,`.ag-theme-balham,
.ag-theme-balham-dark,
.ag-theme-balham-auto-dark {
  --ag-balham-active-color: #0091ea;
  --ag-foreground-color: #000;
  --ag-background-color: #fff;
  --ag-header-background-color: #f5f7f7;
  --ag-tooltip-background-color: #cbd0d3;
  --ag-subheader-background-color: #e2e9eb;
  --ag-control-panel-background-color: #f5f7f7;
  --ag-border-color: #bdc3c7;
  --ag-odd-row-background-color: #fcfdfe;
  --ag-row-hover-color: #ecf0f1;
  --ag-column-hover-color: #ecf0f1;
  --ag-input-border-color: #95a5a6;
  --ag-invalid-color: #e02525;
  --ag-input-disabled-background-color: #ebebeb;
  --ag-checkbox-unchecked-color: #7f8c8d;
  --ag-input-focus-border-color: #719ece;
  --ag-advanced-filter-join-pill-color: #f08e8d;
  --ag-advanced-filter-column-pill-color: #a6e194;
  --ag-advanced-filter-option-pill-color: #f3c08b;
  --ag-advanced-filter-value-pill-color: #85c0e4;
  --ag-input-focus-box-shadow: 0 0 2px 1px var(--ag-input-focus-border-color);
  --ag-range-selection-border-color: var(--ag-balham-active-color);
  --ag-checkbox-checked-color: var(--ag-balham-active-color);
  --ag-checkbox-background-color: var(--ag-background-color);
  --ag-panel-background-color: var(--ag-header-background-color);
  --ag-secondary-foreground-color: rgba(0, 0, 0, 0.54);
  --ag-disabled-foreground-color: rgba(0, 0, 0, 0.38);
  --ag-subheader-toolbar-background-color: rgba(226, 233, 235, 0.5);
  --ag-row-border-color: rgba(189, 195, 199, 0.58);
  --ag-chip-background-color: rgba(0, 0, 0, 0.1);
  --ag-range-selection-background-color: rgba(0, 145, 234, 0.2);
  --ag-range-selection-background-color-2: rgba(0, 145, 234, 0.36);
  --ag-range-selection-background-color-3: rgba(0, 145, 234, 0.49);
  --ag-range-selection-background-color-4: rgba(0, 145, 234, 0.59);
  --ag-selected-row-background-color: rgba(0, 145, 234, 0.28);
  --ag-header-column-separator-color: rgba(189, 195, 199, 0.5);
  --ag-input-disabled-border-color: rgba(149, 165, 166, 0.3);
  --ag-header-column-separator-display: block;
  --ag-header-column-separator-height: 50%;
  --ag-grid-size: 4px;
  --ag-icon-size: 16px;
  --ag-row-height: calc(var(--ag-grid-size) * 7);
  --ag-header-height: calc(var(--ag-grid-size) * 8);
  --ag-list-item-height: calc(var(--ag-grid-size) * 6);
  --ag-row-group-indent-size: calc(var(--ag-grid-size) * 3 + var(--ag-icon-size));
  --ag-cell-horizontal-padding: calc(var(--ag-grid-size) * 3);
  --ag-input-height: calc(var(--ag-grid-size) * 4);
  --ag-chart-menu-panel-width: 240px;
  --ag-font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell,
      "Helvetica Neue", sans-serif;
  --ag-font-size: 12px;
  --ag-icon-font-family: agGridBalham;
  --ag-border-radius: 2px;
  --ag-checkbox-border-radius: 3px;
  --ag-card-shadow: none;
}

.ag-theme-balham-dark {
  --ag-balham-active-color: #00b0ff;
  --ag-foreground-color: #f5f5f5;
  --ag-background-color: #2d3436;
  --ag-header-background-color: #1c1c1c;
  --ag-tooltip-background-color: #1c1f20;
  --ag-subheader-background-color: #111;
  --ag-control-panel-background-color: #202020;
  --ag-border-color: #424242;
  --ag-odd-row-background-color: #262c2e;
  --ag-row-hover-color: #3d4749;
  --ag-column-hover-color: #3d4749;
  --ag-input-border-color: #f0f0f0;
  --ag-input-disabled-background-color: rgba(48, 46, 46, 0.3);
  --ag-modal-overlay-background-color: rgba(45, 52, 54, 0.66);
  --ag-checkbox-unchecked-color: #ecf0f1;
  --ag-advanced-filter-join-pill-color: #7a3a37;
  --ag-advanced-filter-column-pill-color: #355f2d;
  --ag-advanced-filter-option-pill-color: #5a3168;
  --ag-advanced-filter-value-pill-color: #374c86;
  --ag-secondary-foreground-color: var(--ag-foreground-color);
  --ag-disabled-foreground-color: rgba(245, 245, 245, 0.38);
  --ag-subheader-toolbar-background-color: rgba(17, 17, 17, 0.5);
  --ag-row-border-color: #5c5c5c;
  --ag-chip-background-color: rgba(245, 245, 245, 0.08);
  --ag-range-selection-background-color: rgba(0, 176, 255, 0.2);
  --ag-range-selection-background-color-2: rgba(0, 176, 255, 0.36);
  --ag-range-selection-background-color-3: rgba(0, 176, 255, 0.49);
  --ag-range-selection-background-color-4: rgba(0, 176, 255, 0.59);
  --ag-selected-row-background-color: rgba(0, 176, 255, 0.28);
  --ag-header-column-separator-color: rgba(66, 66, 66, 0.5);
  --ag-input-disabled-border-color: rgba(240, 240, 240, 0.3);
  --ag-header-foreground-color: rgba(245, 245, 245, 0.64);
  --ag-toggle-button-off-background-color: transparent;
  --ag-toggle-button-off-border-color: var(--ag-foreground-color);
  --ag-range-selection-chart-category-background-color: rgba(26, 177, 74, 0.5);
  --ag-range-selection-chart-background-color: rgba(45, 166, 255, 0.5);
  --ag-input-focus-box-shadow: 0 0 4px 1.5px var(--ag-input-focus-border-color);
  --ag-row-loading-skeleton-effect-color: rgba(202, 203, 204, 0.4);
  --csstools-color-scheme--dark: initial;
  color-scheme: dark;
}

@media (prefers-color-scheme: dark) {
  .ag-theme-balham-auto-dark {
    --ag-balham-active-color: #00b0ff;
    --ag-foreground-color: #f5f5f5;
    --ag-background-color: #2d3436;
    --ag-header-background-color: #1c1c1c;
    --ag-tooltip-background-color: #1c1f20;
    --ag-subheader-background-color: #111;
    --ag-control-panel-background-color: #202020;
    --ag-border-color: #424242;
    --ag-odd-row-background-color: #262c2e;
    --ag-row-hover-color: #3d4749;
    --ag-column-hover-color: #3d4749;
    --ag-input-border-color: #f0f0f0;
    --ag-input-disabled-background-color: rgba(48, 46, 46, 0.3);
    --ag-modal-overlay-background-color: rgba(45, 52, 54, 0.66);
    --ag-checkbox-unchecked-color: #ecf0f1;
    --ag-advanced-filter-join-pill-color: #7a3a37;
    --ag-advanced-filter-column-pill-color: #355f2d;
    --ag-advanced-filter-option-pill-color: #5a3168;
    --ag-advanced-filter-value-pill-color: #374c86;
    --ag-secondary-foreground-color: var(--ag-foreground-color);
    --ag-disabled-foreground-color: rgba(245, 245, 245, 0.38);
    --ag-subheader-toolbar-background-color: rgba(17, 17, 17, 0.5);
    --ag-row-border-color: #5c5c5c;
    --ag-chip-background-color: rgba(245, 245, 245, 0.08);
    --ag-range-selection-background-color: rgba(0, 176, 255, 0.2);
    --ag-range-selection-background-color-2: rgba(0, 176, 255, 0.36);
    --ag-range-selection-background-color-3: rgba(0, 176, 255, 0.49);
    --ag-range-selection-background-color-4: rgba(0, 176, 255, 0.59);
    --ag-selected-row-background-color: rgba(0, 176, 255, 0.28);
    --ag-header-column-separator-color: rgba(66, 66, 66, 0.5);
    --ag-input-disabled-border-color: rgba(240, 240, 240, 0.3);
    --ag-header-foreground-color: rgba(245, 245, 245, 0.64);
    --ag-toggle-button-off-background-color: transparent;
    --ag-toggle-button-off-border-color: var(--ag-foreground-color);
    --ag-range-selection-chart-category-background-color: rgba(26, 177, 74, 0.5);
    --ag-range-selection-chart-background-color: rgba(45, 166, 255, 0.5);
    --ag-input-focus-box-shadow: 0 0 4px 1.5px var(--ag-input-focus-border-color);
    --ag-row-loading-skeleton-effect-color: rgba(202, 203, 204, 0.4);
    --csstools-color-scheme--dark: initial;
    color-scheme: dark;
  }
}
.ag-theme-balham .ag-filter-toolpanel-header,
.ag-theme-balham .ag-filter-toolpanel-search,
.ag-theme-balham .ag-status-bar,
.ag-theme-balham .ag-header-row,
.ag-theme-balham .ag-multi-filter-group-title-bar,
.ag-theme-balham-dark .ag-filter-toolpanel-header,
.ag-theme-balham-dark .ag-filter-toolpanel-search,
.ag-theme-balham-dark .ag-status-bar,
.ag-theme-balham-dark .ag-header-row,
.ag-theme-balham-dark .ag-multi-filter-group-title-bar,
.ag-theme-balham-auto-dark .ag-filter-toolpanel-header,
.ag-theme-balham-auto-dark .ag-filter-toolpanel-search,
.ag-theme-balham-auto-dark .ag-status-bar,
.ag-theme-balham-auto-dark .ag-header-row,
.ag-theme-balham-auto-dark .ag-multi-filter-group-title-bar {
  font-weight: 600;
  color: var(--ag-header-foreground-color);
}
.ag-theme-balham .ag-ltr input[class^=ag-]:not([type]), .ag-theme-balham .ag-ltr input[class^=ag-][type=text], .ag-theme-balham .ag-ltr input[class^=ag-][type=number], .ag-theme-balham .ag-ltr input[class^=ag-][type=tel], .ag-theme-balham .ag-ltr input[class^=ag-][type=date], .ag-theme-balham .ag-ltr input[class^=ag-][type=datetime-local], .ag-theme-balham .ag-ltr textarea[class^=ag-], .ag-theme-balham-dark .ag-ltr input[class^=ag-]:not([type]), .ag-theme-balham-dark .ag-ltr input[class^=ag-][type=text], .ag-theme-balham-dark .ag-ltr input[class^=ag-][type=number], .ag-theme-balham-dark .ag-ltr input[class^=ag-][type=tel], .ag-theme-balham-dark .ag-ltr input[class^=ag-][type=date], .ag-theme-balham-dark .ag-ltr input[class^=ag-][type=datetime-local], .ag-theme-balham-dark .ag-ltr textarea[class^=ag-], .ag-theme-balham-auto-dark .ag-ltr input[class^=ag-]:not([type]), .ag-theme-balham-auto-dark .ag-ltr input[class^=ag-][type=text], .ag-theme-balham-auto-dark .ag-ltr input[class^=ag-][type=number], .ag-theme-balham-auto-dark .ag-ltr input[class^=ag-][type=tel], .ag-theme-balham-auto-dark .ag-ltr input[class^=ag-][type=date], .ag-theme-balham-auto-dark .ag-ltr input[class^=ag-][type=datetime-local], .ag-theme-balham-auto-dark .ag-ltr textarea[class^=ag-] {
  padding-left: var(--ag-grid-size);
}

.ag-theme-balham .ag-rtl input[class^=ag-]:not([type]), .ag-theme-balham .ag-rtl input[class^=ag-][type=text], .ag-theme-balham .ag-rtl input[class^=ag-][type=number], .ag-theme-balham .ag-rtl input[class^=ag-][type=tel], .ag-theme-balham .ag-rtl input[class^=ag-][type=date], .ag-theme-balham .ag-rtl input[class^=ag-][type=datetime-local], .ag-theme-balham .ag-rtl textarea[class^=ag-], .ag-theme-balham-dark .ag-rtl input[class^=ag-]:not([type]), .ag-theme-balham-dark .ag-rtl input[class^=ag-][type=text], .ag-theme-balham-dark .ag-rtl input[class^=ag-][type=number], .ag-theme-balham-dark .ag-rtl input[class^=ag-][type=tel], .ag-theme-balham-dark .ag-rtl input[class^=ag-][type=date], .ag-theme-balham-dark .ag-rtl input[class^=ag-][type=datetime-local], .ag-theme-balham-dark .ag-rtl textarea[class^=ag-], .ag-theme-balham-auto-dark .ag-rtl input[class^=ag-]:not([type]), .ag-theme-balham-auto-dark .ag-rtl input[class^=ag-][type=text], .ag-theme-balham-auto-dark .ag-rtl input[class^=ag-][type=number], .ag-theme-balham-auto-dark .ag-rtl input[class^=ag-][type=tel], .ag-theme-balham-auto-dark .ag-rtl input[class^=ag-][type=date], .ag-theme-balham-auto-dark .ag-rtl input[class^=ag-][type=datetime-local], .ag-theme-balham-auto-dark .ag-rtl textarea[class^=ag-] {
  padding-right: var(--ag-grid-size);
}

.ag-theme-balham .ag-column-drop-vertical-empty-message,
.ag-theme-balham .ag-status-bar,
.ag-theme-balham-dark .ag-column-drop-vertical-empty-message,
.ag-theme-balham-dark .ag-status-bar,
.ag-theme-balham-auto-dark .ag-column-drop-vertical-empty-message,
.ag-theme-balham-auto-dark .ag-status-bar {
  font-weight: 600;
  color: var(--ag-disabled-foreground-color);
}
.ag-theme-balham.ag-dnd-ghost,
.ag-theme-balham-dark.ag-dnd-ghost,
.ag-theme-balham-auto-dark.ag-dnd-ghost {
  font-size: var(--ag-font-size);
  font-weight: 600;
}
.ag-theme-balham .ag-tab,
.ag-theme-balham-dark .ag-tab,
.ag-theme-balham-auto-dark .ag-tab {
  border: 1px solid transparent;
  padding: var(--ag-grid-size) calc(var(--ag-grid-size) * 2);
  margin: var(--ag-grid-size);
  margin-bottom: -1px;
}
.ag-theme-balham .ag-tab-selected,
.ag-theme-balham-dark .ag-tab-selected,
.ag-theme-balham-auto-dark .ag-tab-selected {
  background-color: var(--ag-background-color);
  border-color: var(--ag-border-color);
  border-bottom-color: transparent;
}
.ag-theme-balham .ag-tabs-header,
.ag-theme-balham-dark .ag-tabs-header,
.ag-theme-balham-auto-dark .ag-tabs-header {
  border-bottom: 1px solid var(--ag-border-color);
}
.ag-theme-balham .ag-column-drop-cell,
.ag-theme-balham-dark .ag-column-drop-cell,
.ag-theme-balham-auto-dark .ag-column-drop-cell {
  height: calc(var(--ag-grid-size) * 6);
}
.ag-theme-balham .ag-column-drop-vertical-title,
.ag-theme-balham-dark .ag-column-drop-vertical-title,
.ag-theme-balham-auto-dark .ag-column-drop-vertical-title {
  color: var(--ag-foreground-color);
}
.ag-theme-balham .ag-column-drop-vertical-cell,
.ag-theme-balham-dark .ag-column-drop-vertical-cell,
.ag-theme-balham-auto-dark .ag-column-drop-vertical-cell {
  margin-left: calc(var(--ag-grid-size) * 2);
  margin-right: calc(var(--ag-grid-size) * 2);
}
.ag-theme-balham .ag-column-drop-vertical-cell-text,
.ag-theme-balham-dark .ag-column-drop-vertical-cell-text,
.ag-theme-balham-auto-dark .ag-column-drop-vertical-cell-text {
  margin-left: calc(var(--ag-grid-size) * 2);
}
.ag-theme-balham .ag-column-drop-vertical-icon,
.ag-theme-balham-dark .ag-column-drop-vertical-icon,
.ag-theme-balham-auto-dark .ag-column-drop-vertical-icon {
  color: var(--ag-secondary-foreground-color);
}
.ag-theme-balham .ag-ltr .ag-column-drop-vertical-empty-message, .ag-theme-balham-dark .ag-ltr .ag-column-drop-vertical-empty-message, .ag-theme-balham-auto-dark .ag-ltr .ag-column-drop-vertical-empty-message {
  padding-left: calc(var(--ag-icon-size) + var(--ag-grid-size) * 2);
  padding-right: var(--ag-grid-size);
}

.ag-theme-balham .ag-rtl .ag-column-drop-vertical-empty-message, .ag-theme-balham-dark .ag-rtl .ag-column-drop-vertical-empty-message, .ag-theme-balham-auto-dark .ag-rtl .ag-column-drop-vertical-empty-message {
  padding-right: calc(var(--ag-icon-size) + var(--ag-grid-size) * 2);
  padding-left: var(--ag-grid-size);
}

.ag-theme-balham .ag-column-drop-horizontal,
.ag-theme-balham-dark .ag-column-drop-horizontal,
.ag-theme-balham-auto-dark .ag-column-drop-horizontal {
  height: var(--ag-header-height);
}
.ag-theme-balham .ag-column-drop-empty,
.ag-theme-balham-dark .ag-column-drop-empty,
.ag-theme-balham-auto-dark .ag-column-drop-empty {
  color: var(--ag-disabled-foreground-color);
}
.ag-theme-balham .ag-column-drop-horizontal-cell-text,
.ag-theme-balham-dark .ag-column-drop-horizontal-cell-text,
.ag-theme-balham-auto-dark .ag-column-drop-horizontal-cell-text {
  margin-left: calc(var(--ag-grid-size) * 2);
}
.ag-theme-balham .ag-column-drop-vertical,
.ag-theme-balham-dark .ag-column-drop-vertical,
.ag-theme-balham-auto-dark .ag-column-drop-vertical {
  padding-top: calc(var(--ag-grid-size) * 2);
}
.ag-theme-balham .ag-column-select-column-readonly.ag-icon-grip,
.ag-theme-balham .ag-column-select-column-readonly .ag-icon-grip,
.ag-theme-balham-dark .ag-column-select-column-readonly.ag-icon-grip,
.ag-theme-balham-dark .ag-column-select-column-readonly .ag-icon-grip,
.ag-theme-balham-auto-dark .ag-column-select-column-readonly.ag-icon-grip,
.ag-theme-balham-auto-dark .ag-column-select-column-readonly .ag-icon-grip {
  opacity: 0.35;
}
.ag-theme-balham .ag-menu-header,
.ag-theme-balham-dark .ag-menu-header,
.ag-theme-balham-auto-dark .ag-menu-header {
  background-color: var(--ag-header-background-color);
}
.ag-theme-balham .ag-overlay-loading-center,
.ag-theme-balham-dark .ag-overlay-loading-center,
.ag-theme-balham-auto-dark .ag-overlay-loading-center {
  background-color: var(--ag-background-color);
  border: 1px solid var(--ag-border-color);
  color: var(--ag-foreground-color);
  padding: calc(var(--ag-grid-size) * 4);
}
.ag-theme-balham .ag-tooltip,
.ag-theme-balham-dark .ag-tooltip,
.ag-theme-balham-auto-dark .ag-tooltip {
  border: none;
}
.ag-theme-balham .ag-panel-title-bar-button-icon,
.ag-theme-balham-dark .ag-panel-title-bar-button-icon,
.ag-theme-balham-auto-dark .ag-panel-title-bar-button-icon {
  font-size: calc(var(--ag-icon-size) + var(--ag-grid-size));
}
.ag-theme-balham .ag-panel,
.ag-theme-balham-dark .ag-panel,
.ag-theme-balham-auto-dark .ag-panel {
  background-color: var(--ag-header-background-color);
}
.ag-theme-balham .ag-chart-data-section,
.ag-theme-balham .ag-chart-format-section,
.ag-theme-balham .ag-chart-advanced-settings-section,
.ag-theme-balham-dark .ag-chart-data-section,
.ag-theme-balham-dark .ag-chart-format-section,
.ag-theme-balham-dark .ag-chart-advanced-settings-section,
.ag-theme-balham-auto-dark .ag-chart-data-section,
.ag-theme-balham-auto-dark .ag-chart-format-section,
.ag-theme-balham-auto-dark .ag-chart-advanced-settings-section {
  padding-bottom: calc(var(--ag-grid-size) * 0.5);
}
.ag-theme-balham .ag-group-toolbar,
.ag-theme-balham-dark .ag-group-toolbar,
.ag-theme-balham-auto-dark .ag-group-toolbar {
  background-color: var(--ag-subheader-toolbar-background-color);
}
.ag-theme-balham .ag-chart-tab,
.ag-theme-balham-dark .ag-chart-tab,
.ag-theme-balham-auto-dark .ag-chart-tab {
  padding-top: calc(var(--ag-grid-size) * 0.5);
}
.ag-theme-balham .ag-charts-format-sub-level-group-item,
.ag-theme-balham-dark .ag-charts-format-sub-level-group-item,
.ag-theme-balham-auto-dark .ag-charts-format-sub-level-group-item {
  margin-bottom: calc(var(--ag-grid-size) * 1.5);
}
.ag-theme-balham .ag-filter-active .ag-icon-filter,
.ag-theme-balham-dark .ag-filter-active .ag-icon-filter,
.ag-theme-balham-auto-dark .ag-filter-active .ag-icon-filter {
  color: var(--ag-balham-active-color);
}
.ag-theme-balham .ag-color-input input[class^=ag-][type=text].ag-input-field-input,
.ag-theme-balham-dark .ag-color-input input[class^=ag-][type=text].ag-input-field-input,
.ag-theme-balham-auto-dark .ag-color-input input[class^=ag-][type=text].ag-input-field-input {
  min-height: calc(var(--ag-icon-size) + 4px);
}
.ag-theme-balham .ag-list-item-hovered::after,
.ag-theme-balham-dark .ag-list-item-hovered::after,
.ag-theme-balham-auto-dark .ag-list-item-hovered::after {
  background-color: var(--ag-balham-active-color);
}
.ag-theme-balham .ag-pill .ag-pill-button:hover,
.ag-theme-balham-dark .ag-pill .ag-pill-button:hover,
.ag-theme-balham-auto-dark .ag-pill .ag-pill-button:hover {
  color: var(--ag-balham-active-color);
}
.ag-theme-balham .ag-header-highlight-before::after,
.ag-theme-balham .ag-header-highlight-after::after,
.ag-theme-balham-dark .ag-header-highlight-before::after,
.ag-theme-balham-dark .ag-header-highlight-after::after,
.ag-theme-balham-auto-dark .ag-header-highlight-before::after,
.ag-theme-balham-auto-dark .ag-header-highlight-after::after {
  background-color: var(--ag-balham-active-color);
}
`,""]),x.A=D},2621:function(ne,x,p){var M=p(6758),A=p.n(M),F=p(935),D=p.n(F),f=p(62),v=p.n(f),u=new URL(p(9377),p.b),s=D()(A()),r=v()(u);s.push([ne.id,`@font-face {
  font-family: "agGridBalham";
  src: url(`+r+`);
  font-weight: normal;
  font-style: normal;
}
.ag-theme-balham,
.ag-theme-balham-dark,
.ag-theme-balham-auto-dark {
  --ag-balham-active-color: #0091ea;
  --ag-foreground-color: #000;
  --ag-background-color: #fff;
  --ag-header-background-color: #f5f7f7;
  --ag-tooltip-background-color: #cbd0d3;
  --ag-subheader-background-color: #e2e9eb;
  --ag-control-panel-background-color: #f5f7f7;
  --ag-border-color: #bdc3c7;
  --ag-odd-row-background-color: #fcfdfe;
  --ag-row-hover-color: #ecf0f1;
  --ag-column-hover-color: #ecf0f1;
  --ag-input-border-color: #95a5a6;
  --ag-invalid-color: #e02525;
  --ag-input-disabled-background-color: #ebebeb;
  --ag-checkbox-unchecked-color: #7f8c8d;
  --ag-input-focus-border-color: #719ece;
  --ag-advanced-filter-join-pill-color: #f08e8d;
  --ag-advanced-filter-column-pill-color: #a6e194;
  --ag-advanced-filter-option-pill-color: #f3c08b;
  --ag-advanced-filter-value-pill-color: #85c0e4;
  --ag-input-focus-box-shadow: 0 0 2px 1px var(--ag-input-focus-border-color);
  --ag-range-selection-border-color: var(--ag-balham-active-color);
  --ag-checkbox-checked-color: var(--ag-balham-active-color);
  --ag-checkbox-background-color: var(--ag-background-color);
  --ag-panel-background-color: var(--ag-header-background-color);
  --ag-secondary-foreground-color: rgba(0, 0, 0, 0.54);
  --ag-disabled-foreground-color: rgba(0, 0, 0, 0.38);
  --ag-subheader-toolbar-background-color: rgba(226, 233, 235, 0.5);
  --ag-row-border-color: rgba(189, 195, 199, 0.58);
  --ag-chip-background-color: rgba(0, 0, 0, 0.1);
  --ag-range-selection-background-color: rgba(0, 145, 234, 0.2);
  --ag-range-selection-background-color-2: rgba(0, 145, 234, 0.36);
  --ag-range-selection-background-color-3: rgba(0, 145, 234, 0.49);
  --ag-range-selection-background-color-4: rgba(0, 145, 234, 0.59);
  --ag-selected-row-background-color: rgba(0, 145, 234, 0.28);
  --ag-header-column-separator-color: rgba(189, 195, 199, 0.5);
  --ag-input-disabled-border-color: rgba(149, 165, 166, 0.3);
  --ag-header-column-separator-display: block;
  --ag-header-column-separator-height: 50%;
  --ag-grid-size: 4px;
  --ag-icon-size: 16px;
  --ag-row-height: calc(var(--ag-grid-size) * 7);
  --ag-header-height: calc(var(--ag-grid-size) * 8);
  --ag-list-item-height: calc(var(--ag-grid-size) * 6);
  --ag-row-group-indent-size: calc(var(--ag-grid-size) * 3 + var(--ag-icon-size));
  --ag-cell-horizontal-padding: calc(var(--ag-grid-size) * 3);
  --ag-input-height: calc(var(--ag-grid-size) * 4);
  --ag-chart-menu-panel-width: 240px;
  --ag-font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell,
      "Helvetica Neue", sans-serif;
  --ag-font-size: 12px;
  --ag-icon-font-family: agGridBalham;
  --ag-border-radius: 2px;
  --ag-checkbox-border-radius: 3px;
  --ag-card-shadow: none;
}

.ag-theme-balham-dark {
  --ag-balham-active-color: #00b0ff;
  --ag-foreground-color: #f5f5f5;
  --ag-background-color: #2d3436;
  --ag-header-background-color: #1c1c1c;
  --ag-tooltip-background-color: #1c1f20;
  --ag-subheader-background-color: #111;
  --ag-control-panel-background-color: #202020;
  --ag-border-color: #424242;
  --ag-odd-row-background-color: #262c2e;
  --ag-row-hover-color: #3d4749;
  --ag-column-hover-color: #3d4749;
  --ag-input-border-color: #f0f0f0;
  --ag-input-disabled-background-color: rgba(48, 46, 46, 0.3);
  --ag-modal-overlay-background-color: rgba(45, 52, 54, 0.66);
  --ag-checkbox-unchecked-color: #ecf0f1;
  --ag-advanced-filter-join-pill-color: #7a3a37;
  --ag-advanced-filter-column-pill-color: #355f2d;
  --ag-advanced-filter-option-pill-color: #5a3168;
  --ag-advanced-filter-value-pill-color: #374c86;
  --ag-secondary-foreground-color: var(--ag-foreground-color);
  --ag-disabled-foreground-color: rgba(245, 245, 245, 0.38);
  --ag-subheader-toolbar-background-color: rgba(17, 17, 17, 0.5);
  --ag-row-border-color: #5c5c5c;
  --ag-chip-background-color: rgba(245, 245, 245, 0.08);
  --ag-range-selection-background-color: rgba(0, 176, 255, 0.2);
  --ag-range-selection-background-color-2: rgba(0, 176, 255, 0.36);
  --ag-range-selection-background-color-3: rgba(0, 176, 255, 0.49);
  --ag-range-selection-background-color-4: rgba(0, 176, 255, 0.59);
  --ag-selected-row-background-color: rgba(0, 176, 255, 0.28);
  --ag-header-column-separator-color: rgba(66, 66, 66, 0.5);
  --ag-input-disabled-border-color: rgba(240, 240, 240, 0.3);
  --ag-header-foreground-color: rgba(245, 245, 245, 0.64);
  --ag-toggle-button-off-background-color: transparent;
  --ag-toggle-button-off-border-color: var(--ag-foreground-color);
  --ag-range-selection-chart-category-background-color: rgba(26, 177, 74, 0.5);
  --ag-range-selection-chart-background-color: rgba(45, 166, 255, 0.5);
  --ag-input-focus-box-shadow: 0 0 4px 1.5px var(--ag-input-focus-border-color);
  --ag-row-loading-skeleton-effect-color: rgba(202, 203, 204, 0.4);
  --csstools-color-scheme--dark: initial;
  color-scheme: dark;
}

@media (prefers-color-scheme: dark) {
  .ag-theme-balham-auto-dark {
    --ag-balham-active-color: #00b0ff;
    --ag-foreground-color: #f5f5f5;
    --ag-background-color: #2d3436;
    --ag-header-background-color: #1c1c1c;
    --ag-tooltip-background-color: #1c1f20;
    --ag-subheader-background-color: #111;
    --ag-control-panel-background-color: #202020;
    --ag-border-color: #424242;
    --ag-odd-row-background-color: #262c2e;
    --ag-row-hover-color: #3d4749;
    --ag-column-hover-color: #3d4749;
    --ag-input-border-color: #f0f0f0;
    --ag-input-disabled-background-color: rgba(48, 46, 46, 0.3);
    --ag-modal-overlay-background-color: rgba(45, 52, 54, 0.66);
    --ag-checkbox-unchecked-color: #ecf0f1;
    --ag-advanced-filter-join-pill-color: #7a3a37;
    --ag-advanced-filter-column-pill-color: #355f2d;
    --ag-advanced-filter-option-pill-color: #5a3168;
    --ag-advanced-filter-value-pill-color: #374c86;
    --ag-secondary-foreground-color: var(--ag-foreground-color);
    --ag-disabled-foreground-color: rgba(245, 245, 245, 0.38);
    --ag-subheader-toolbar-background-color: rgba(17, 17, 17, 0.5);
    --ag-row-border-color: #5c5c5c;
    --ag-chip-background-color: rgba(245, 245, 245, 0.08);
    --ag-range-selection-background-color: rgba(0, 176, 255, 0.2);
    --ag-range-selection-background-color-2: rgba(0, 176, 255, 0.36);
    --ag-range-selection-background-color-3: rgba(0, 176, 255, 0.49);
    --ag-range-selection-background-color-4: rgba(0, 176, 255, 0.59);
    --ag-selected-row-background-color: rgba(0, 176, 255, 0.28);
    --ag-header-column-separator-color: rgba(66, 66, 66, 0.5);
    --ag-input-disabled-border-color: rgba(240, 240, 240, 0.3);
    --ag-header-foreground-color: rgba(245, 245, 245, 0.64);
    --ag-toggle-button-off-background-color: transparent;
    --ag-toggle-button-off-border-color: var(--ag-foreground-color);
    --ag-range-selection-chart-category-background-color: rgba(26, 177, 74, 0.5);
    --ag-range-selection-chart-background-color: rgba(45, 166, 255, 0.5);
    --ag-input-focus-box-shadow: 0 0 4px 1.5px var(--ag-input-focus-border-color);
    --ag-row-loading-skeleton-effect-color: rgba(202, 203, 204, 0.4);
    --csstools-color-scheme--dark: initial;
    color-scheme: dark;
  }
}
.ag-theme-balham .ag-filter-toolpanel-header,
.ag-theme-balham .ag-filter-toolpanel-search,
.ag-theme-balham .ag-status-bar,
.ag-theme-balham .ag-header-row,
.ag-theme-balham .ag-multi-filter-group-title-bar,
.ag-theme-balham-dark .ag-filter-toolpanel-header,
.ag-theme-balham-dark .ag-filter-toolpanel-search,
.ag-theme-balham-dark .ag-status-bar,
.ag-theme-balham-dark .ag-header-row,
.ag-theme-balham-dark .ag-multi-filter-group-title-bar,
.ag-theme-balham-auto-dark .ag-filter-toolpanel-header,
.ag-theme-balham-auto-dark .ag-filter-toolpanel-search,
.ag-theme-balham-auto-dark .ag-status-bar,
.ag-theme-balham-auto-dark .ag-header-row,
.ag-theme-balham-auto-dark .ag-multi-filter-group-title-bar {
  font-weight: 600;
  color: var(--ag-header-foreground-color);
}
.ag-theme-balham .ag-ltr input[class^=ag-]:not([type]), .ag-theme-balham .ag-ltr input[class^=ag-][type=text], .ag-theme-balham .ag-ltr input[class^=ag-][type=number], .ag-theme-balham .ag-ltr input[class^=ag-][type=tel], .ag-theme-balham .ag-ltr input[class^=ag-][type=date], .ag-theme-balham .ag-ltr input[class^=ag-][type=datetime-local], .ag-theme-balham .ag-ltr textarea[class^=ag-], .ag-theme-balham-dark .ag-ltr input[class^=ag-]:not([type]), .ag-theme-balham-dark .ag-ltr input[class^=ag-][type=text], .ag-theme-balham-dark .ag-ltr input[class^=ag-][type=number], .ag-theme-balham-dark .ag-ltr input[class^=ag-][type=tel], .ag-theme-balham-dark .ag-ltr input[class^=ag-][type=date], .ag-theme-balham-dark .ag-ltr input[class^=ag-][type=datetime-local], .ag-theme-balham-dark .ag-ltr textarea[class^=ag-], .ag-theme-balham-auto-dark .ag-ltr input[class^=ag-]:not([type]), .ag-theme-balham-auto-dark .ag-ltr input[class^=ag-][type=text], .ag-theme-balham-auto-dark .ag-ltr input[class^=ag-][type=number], .ag-theme-balham-auto-dark .ag-ltr input[class^=ag-][type=tel], .ag-theme-balham-auto-dark .ag-ltr input[class^=ag-][type=date], .ag-theme-balham-auto-dark .ag-ltr input[class^=ag-][type=datetime-local], .ag-theme-balham-auto-dark .ag-ltr textarea[class^=ag-] {
  padding-left: var(--ag-grid-size);
}

.ag-theme-balham .ag-rtl input[class^=ag-]:not([type]), .ag-theme-balham .ag-rtl input[class^=ag-][type=text], .ag-theme-balham .ag-rtl input[class^=ag-][type=number], .ag-theme-balham .ag-rtl input[class^=ag-][type=tel], .ag-theme-balham .ag-rtl input[class^=ag-][type=date], .ag-theme-balham .ag-rtl input[class^=ag-][type=datetime-local], .ag-theme-balham .ag-rtl textarea[class^=ag-], .ag-theme-balham-dark .ag-rtl input[class^=ag-]:not([type]), .ag-theme-balham-dark .ag-rtl input[class^=ag-][type=text], .ag-theme-balham-dark .ag-rtl input[class^=ag-][type=number], .ag-theme-balham-dark .ag-rtl input[class^=ag-][type=tel], .ag-theme-balham-dark .ag-rtl input[class^=ag-][type=date], .ag-theme-balham-dark .ag-rtl input[class^=ag-][type=datetime-local], .ag-theme-balham-dark .ag-rtl textarea[class^=ag-], .ag-theme-balham-auto-dark .ag-rtl input[class^=ag-]:not([type]), .ag-theme-balham-auto-dark .ag-rtl input[class^=ag-][type=text], .ag-theme-balham-auto-dark .ag-rtl input[class^=ag-][type=number], .ag-theme-balham-auto-dark .ag-rtl input[class^=ag-][type=tel], .ag-theme-balham-auto-dark .ag-rtl input[class^=ag-][type=date], .ag-theme-balham-auto-dark .ag-rtl input[class^=ag-][type=datetime-local], .ag-theme-balham-auto-dark .ag-rtl textarea[class^=ag-] {
  padding-right: var(--ag-grid-size);
}

.ag-theme-balham .ag-column-drop-vertical-empty-message,
.ag-theme-balham .ag-status-bar,
.ag-theme-balham-dark .ag-column-drop-vertical-empty-message,
.ag-theme-balham-dark .ag-status-bar,
.ag-theme-balham-auto-dark .ag-column-drop-vertical-empty-message,
.ag-theme-balham-auto-dark .ag-status-bar {
  font-weight: 600;
  color: var(--ag-disabled-foreground-color);
}
.ag-theme-balham.ag-dnd-ghost,
.ag-theme-balham-dark.ag-dnd-ghost,
.ag-theme-balham-auto-dark.ag-dnd-ghost {
  font-size: var(--ag-font-size);
  font-weight: 600;
}
.ag-theme-balham .ag-tab,
.ag-theme-balham-dark .ag-tab,
.ag-theme-balham-auto-dark .ag-tab {
  border: 1px solid transparent;
  padding: var(--ag-grid-size) calc(var(--ag-grid-size) * 2);
  margin: var(--ag-grid-size);
  margin-bottom: -1px;
}
.ag-theme-balham .ag-tab-selected,
.ag-theme-balham-dark .ag-tab-selected,
.ag-theme-balham-auto-dark .ag-tab-selected {
  background-color: var(--ag-background-color);
  border-color: var(--ag-border-color);
  border-bottom-color: transparent;
}
.ag-theme-balham .ag-tabs-header,
.ag-theme-balham-dark .ag-tabs-header,
.ag-theme-balham-auto-dark .ag-tabs-header {
  border-bottom: 1px solid var(--ag-border-color);
}
.ag-theme-balham .ag-column-drop-cell,
.ag-theme-balham-dark .ag-column-drop-cell,
.ag-theme-balham-auto-dark .ag-column-drop-cell {
  height: calc(var(--ag-grid-size) * 6);
}
.ag-theme-balham .ag-column-drop-vertical-title,
.ag-theme-balham-dark .ag-column-drop-vertical-title,
.ag-theme-balham-auto-dark .ag-column-drop-vertical-title {
  color: var(--ag-foreground-color);
}
.ag-theme-balham .ag-column-drop-vertical-cell,
.ag-theme-balham-dark .ag-column-drop-vertical-cell,
.ag-theme-balham-auto-dark .ag-column-drop-vertical-cell {
  margin-left: calc(var(--ag-grid-size) * 2);
  margin-right: calc(var(--ag-grid-size) * 2);
}
.ag-theme-balham .ag-column-drop-vertical-cell-text,
.ag-theme-balham-dark .ag-column-drop-vertical-cell-text,
.ag-theme-balham-auto-dark .ag-column-drop-vertical-cell-text {
  margin-left: calc(var(--ag-grid-size) * 2);
}
.ag-theme-balham .ag-column-drop-vertical-icon,
.ag-theme-balham-dark .ag-column-drop-vertical-icon,
.ag-theme-balham-auto-dark .ag-column-drop-vertical-icon {
  color: var(--ag-secondary-foreground-color);
}
.ag-theme-balham .ag-ltr .ag-column-drop-vertical-empty-message, .ag-theme-balham-dark .ag-ltr .ag-column-drop-vertical-empty-message, .ag-theme-balham-auto-dark .ag-ltr .ag-column-drop-vertical-empty-message {
  padding-left: calc(var(--ag-icon-size) + var(--ag-grid-size) * 2);
  padding-right: var(--ag-grid-size);
}

.ag-theme-balham .ag-rtl .ag-column-drop-vertical-empty-message, .ag-theme-balham-dark .ag-rtl .ag-column-drop-vertical-empty-message, .ag-theme-balham-auto-dark .ag-rtl .ag-column-drop-vertical-empty-message {
  padding-right: calc(var(--ag-icon-size) + var(--ag-grid-size) * 2);
  padding-left: var(--ag-grid-size);
}

.ag-theme-balham .ag-column-drop-horizontal,
.ag-theme-balham-dark .ag-column-drop-horizontal,
.ag-theme-balham-auto-dark .ag-column-drop-horizontal {
  height: var(--ag-header-height);
}
.ag-theme-balham .ag-column-drop-empty,
.ag-theme-balham-dark .ag-column-drop-empty,
.ag-theme-balham-auto-dark .ag-column-drop-empty {
  color: var(--ag-disabled-foreground-color);
}
.ag-theme-balham .ag-column-drop-horizontal-cell-text,
.ag-theme-balham-dark .ag-column-drop-horizontal-cell-text,
.ag-theme-balham-auto-dark .ag-column-drop-horizontal-cell-text {
  margin-left: calc(var(--ag-grid-size) * 2);
}
.ag-theme-balham .ag-column-drop-vertical,
.ag-theme-balham-dark .ag-column-drop-vertical,
.ag-theme-balham-auto-dark .ag-column-drop-vertical {
  padding-top: calc(var(--ag-grid-size) * 2);
}
.ag-theme-balham .ag-column-select-column-readonly.ag-icon-grip,
.ag-theme-balham .ag-column-select-column-readonly .ag-icon-grip,
.ag-theme-balham-dark .ag-column-select-column-readonly.ag-icon-grip,
.ag-theme-balham-dark .ag-column-select-column-readonly .ag-icon-grip,
.ag-theme-balham-auto-dark .ag-column-select-column-readonly.ag-icon-grip,
.ag-theme-balham-auto-dark .ag-column-select-column-readonly .ag-icon-grip {
  opacity: 0.35;
}
.ag-theme-balham .ag-menu-header,
.ag-theme-balham-dark .ag-menu-header,
.ag-theme-balham-auto-dark .ag-menu-header {
  background-color: var(--ag-header-background-color);
}
.ag-theme-balham .ag-overlay-loading-center,
.ag-theme-balham-dark .ag-overlay-loading-center,
.ag-theme-balham-auto-dark .ag-overlay-loading-center {
  background-color: var(--ag-background-color);
  border: 1px solid var(--ag-border-color);
  color: var(--ag-foreground-color);
  padding: calc(var(--ag-grid-size) * 4);
}
.ag-theme-balham .ag-tooltip,
.ag-theme-balham-dark .ag-tooltip,
.ag-theme-balham-auto-dark .ag-tooltip {
  border: none;
}
.ag-theme-balham .ag-panel-title-bar-button-icon,
.ag-theme-balham-dark .ag-panel-title-bar-button-icon,
.ag-theme-balham-auto-dark .ag-panel-title-bar-button-icon {
  font-size: calc(var(--ag-icon-size) + var(--ag-grid-size));
}
.ag-theme-balham .ag-panel,
.ag-theme-balham-dark .ag-panel,
.ag-theme-balham-auto-dark .ag-panel {
  background-color: var(--ag-header-background-color);
}
.ag-theme-balham .ag-chart-data-section,
.ag-theme-balham .ag-chart-format-section,
.ag-theme-balham .ag-chart-advanced-settings-section,
.ag-theme-balham-dark .ag-chart-data-section,
.ag-theme-balham-dark .ag-chart-format-section,
.ag-theme-balham-dark .ag-chart-advanced-settings-section,
.ag-theme-balham-auto-dark .ag-chart-data-section,
.ag-theme-balham-auto-dark .ag-chart-format-section,
.ag-theme-balham-auto-dark .ag-chart-advanced-settings-section {
  padding-bottom: calc(var(--ag-grid-size) * 0.5);
}
.ag-theme-balham .ag-group-toolbar,
.ag-theme-balham-dark .ag-group-toolbar,
.ag-theme-balham-auto-dark .ag-group-toolbar {
  background-color: var(--ag-subheader-toolbar-background-color);
}
.ag-theme-balham .ag-chart-tab,
.ag-theme-balham-dark .ag-chart-tab,
.ag-theme-balham-auto-dark .ag-chart-tab {
  padding-top: calc(var(--ag-grid-size) * 0.5);
}
.ag-theme-balham .ag-charts-format-sub-level-group-item,
.ag-theme-balham-dark .ag-charts-format-sub-level-group-item,
.ag-theme-balham-auto-dark .ag-charts-format-sub-level-group-item {
  margin-bottom: calc(var(--ag-grid-size) * 1.5);
}
.ag-theme-balham .ag-filter-active .ag-icon-filter,
.ag-theme-balham-dark .ag-filter-active .ag-icon-filter,
.ag-theme-balham-auto-dark .ag-filter-active .ag-icon-filter {
  color: var(--ag-balham-active-color);
}
.ag-theme-balham .ag-color-input input[class^=ag-][type=text].ag-input-field-input,
.ag-theme-balham-dark .ag-color-input input[class^=ag-][type=text].ag-input-field-input,
.ag-theme-balham-auto-dark .ag-color-input input[class^=ag-][type=text].ag-input-field-input {
  min-height: calc(var(--ag-icon-size) + 4px);
}
.ag-theme-balham .ag-list-item-hovered::after,
.ag-theme-balham-dark .ag-list-item-hovered::after,
.ag-theme-balham-auto-dark .ag-list-item-hovered::after {
  background-color: var(--ag-balham-active-color);
}
.ag-theme-balham .ag-pill .ag-pill-button:hover,
.ag-theme-balham-dark .ag-pill .ag-pill-button:hover,
.ag-theme-balham-auto-dark .ag-pill .ag-pill-button:hover {
  color: var(--ag-balham-active-color);
}
.ag-theme-balham .ag-header-highlight-before::after,
.ag-theme-balham .ag-header-highlight-after::after,
.ag-theme-balham-dark .ag-header-highlight-before::after,
.ag-theme-balham-dark .ag-header-highlight-after::after,
.ag-theme-balham-auto-dark .ag-header-highlight-before::after,
.ag-theme-balham-auto-dark .ag-header-highlight-after::after {
  background-color: var(--ag-balham-active-color);
}
`,""]),x.A=s},8981:function(ne,x,p){var M=p(6758),A=p.n(M),F=p(935),D=p.n(F)()(A());D.push([ne.id,`.ag-theme-material,
.ag-theme-material-dark,
.ag-theme-material-auto-dark {
  --ag-material-primary-color: #3f51b5;
  --ag-material-accent-color: #ff4081;
  --ag-foreground-color: rgba(0, 0, 0, 0.87);
  --ag-secondary-foreground-color: rgba(0, 0, 0, 0.54);
  --ag-disabled-foreground-color: rgba(0, 0, 0, 0.38);
  --ag-background-color: #fff;
  --ag-header-background-color: #fff;
  --ag-tooltip-background-color: #fff;
  --ag-subheader-background-color: #eee;
  --ag-subheader-toolbar-background-color: rgba(238, 238, 238, 0.5);
  --ag-header-cell-hover-background-color: #f2f2f2;
  --ag-chip-background-color: #e2e2e2;
  --ag-range-selection-background-color: rgba(122, 134, 203, 0.1);
  --ag-range-selection-background-color-2: rgba(122, 134, 203, 0.19);
  --ag-range-selection-background-color-3: rgba(122, 134, 203, 0.27);
  --ag-range-selection-background-color-4: rgba(122, 134, 203, 0.34);
  --ag-range-selection-highlight-color: #fce4ec;
  --ag-row-hover-color: #fafafa;
  --ag-column-hover-color: #fafafa;
  --ag-control-panel-background-color: #fafafa;
  --ag-selected-row-background-color: rgba(33, 150, 243, 0.3);
  --ag-checkbox-unchecked-color: #333;
  --ag-value-change-value-highlight-background-color: #00acc1;
  --ag-side-button-selected-background-color: transparent;
  --ag-advanced-filter-join-pill-color: #f08e8d;
  --ag-advanced-filter-column-pill-color: #a6e194;
  --ag-advanced-filter-option-pill-color: #f3c08b;
  --ag-advanced-filter-value-pill-color: #85c0e4;
  --ag-range-selection-border-color: var(--ag-material-primary-color);
  --ag-checkbox-checked-color: var(--ag-material-accent-color);
  --ag-borders: none;
  --ag-borders-critical: solid 1px;
  --ag-border-color: #e2e2e2;
  --ag-grid-size: 8px;
  --ag-icon-size: 18px;
  --ag-header-height: calc(var(--ag-grid-size) * 7);
  --ag-row-height: calc(var(--ag-grid-size) * 6);
  --ag-cell-horizontal-padding: calc(var(--ag-grid-size) * 3);
  --ag-list-item-height: calc(var(--ag-grid-size) * 4);
  --ag-row-group-indent-size: calc(var(--ag-grid-size) * 3 + var(--ag-icon-size));
  --ag-filter-tool-panel-sub-level-row-height: calc(var(--ag-grid-size) * 4);
  --ag-checkbox-border-radius: 2px;
  --ag-toggle-button-switch-border-width: 2px;
  --ag-toggle-button-height: var(--ag-icon-size);
  --ag-widget-container-horizontal-padding: calc(var(--ag-grid-size) * 1.5);
  --ag-widget-container-vertical-padding: calc(var(--ag-grid-size) * 2);
  --ag-widget-vertical-spacing: calc(var(--ag-grid-size) * 1.75);
  --ag-font-family: Roboto, -apple-system, BlinkMacSystemFont, "Segoe UI", Oxygen-Sans, Ubuntu, Cantarell,
      "Helvetica Neue", sans-serif;
  --ag-font-size: 13px;
  --ag-icon-font-family: agGridMaterial;
  --ag-selected-tab-underline-color: var(--ag-material-primary-color);
  --ag-selected-tab-underline-width: 2px;
  --ag-input-focus-border-color: var(--ag-material-primary-color);
  --ag-input-focus-box-shadow: 0 0 0 5px rgba(32, 33, 36, 0.122);
  --ag-card-shadow: 0 3px 1px -2px rgba(0, 0, 0, 0.2), 0 2px 2px 0 rgba(0, 0, 0, 0.14),
      0 1px 5px 0 rgba(0, 0, 0, 0.12);
  --ag-card-radius: 2px;
  --ag-invalid-color: #e02525;
}

.ag-theme-material-dark {
  --ag-material-primary-color: #3f51b5;
  --ag-material-accent-color: rgba(187,134,252,1);
  --ag-range-selection-border-color: var(--ag-material-accent-color);
  --ag-background-color: rgba(18,18,18,1);
  --ag-foreground-color: rgba(255,255,255,1);
  --ag-data-color: rgba(245,245,245,1);
  --ag-header-cell-hover-background-color: rgba(0,0,0,1);
  --ag-advanced-filter-join-pill-color: rgba(122,58,55,1);
  --ag-advanced-filter-column-pill-color: rgba(53,95,45,1);
  --ag-advanced-filter-option-pill-color: rgba(90,49,104,1);
  --ag-advanced-filter-value-pill-color: rgba(55,76,134,1);
  --ag-input-disabled-border-color: rgba(58,67,78,1);
  --ag-input-disabled-background-color: rgba(104,104,110,0.07059);
  --ag-selected-row-background-color: rgba(187,134,252,0.2);
  --ag-row-hover-color: rgba(187,134,252,0.2);
  --ag-column-hover-color: rgba(245,245,245,0.05098);
  --ag-range-selection-background-color: rgba(187,134,252,0.10196);
  --ag-range-selection-background-color-2: rgba(187,134,252,0.18824);
  --ag-range-selection-background-color-3: rgba(187,134,252,0.27059);
  --ag-range-selection-background-color-4: rgba(187,134,252,0.34118);
  --ag-border-color: rgba(56,56,56,1);
  --ag-secondary-border-color: rgba(56,56,56,1);
  --ag-header-background-color: rgba(18,18,18,1);
  --ag-tooltip-background-color: rgba(33,43,56,1);
  --ag-odd-row-background-color: rgba(18,18,18,1);
  --ag-control-panel-background-color: rgba(44,44,44,1);
  --ag-subheader-background-color: rgba(255,255,255,0.05098);
  --ag-subheader-toolbar-background-color: rgba(44,44,44,1);
  --ag-invalid-color: rgba(224,37,37,1);
  --ag-checkbox-unchecked-color: rgba(121,126,135,1);
  --ag-checkbox-background-color: rgba(18,18,18,1);
  --ag-secondary-foreground-color: rgba(245,245,245,1);
  --ag-input-border-color: rgba(56,56,56,1);
  --ag-input-border-color-invalid: rgba(224,37,37,1);
  --ag-disabled-foreground-color: rgba(245,245,245,0.50196);
  --ag-chip-background-color: rgba(34,38,40,0.07059);
  --ag-side-button-selected-background-color: rgba(44,44,44,1);
  --ag-selected-tab-underline-color: rgba(63,81,181,1);
  --ag-modal-overlay-background-color: rgba(18,18,18,0.65882);
  --ag-value-change-delta-up-color: rgba(67,160,71,0.65882);
  --ag-value-change-delta-down-color: rgba(229,57,53,1);
  --ag-menu-background-color: rgba(44,44,44,1);
  --ag-row-loading-skeleton-effect-color: rgba(202, 203, 204, 0.4);
  --csstools-color-scheme--dark: initial;
  color-scheme: dark;
}

@media (prefers-color-scheme: dark) {
  .ag-theme-material-auto-dark {
    --ag-material-primary-color: #3f51b5;
    --ag-material-accent-color: rgba(187,134,252,1);
    --ag-range-selection-border-color: var(--ag-material-accent-color);
    --ag-background-color: rgba(18,18,18,1);
    --ag-foreground-color: rgba(255,255,255,1);
    --ag-data-color: rgba(245,245,245,1);
    --ag-header-cell-hover-background-color: rgba(0,0,0,1);
    --ag-advanced-filter-join-pill-color: rgba(122,58,55,1);
    --ag-advanced-filter-column-pill-color: rgba(53,95,45,1);
    --ag-advanced-filter-option-pill-color: rgba(90,49,104,1);
    --ag-advanced-filter-value-pill-color: rgba(55,76,134,1);
    --ag-input-disabled-border-color: rgba(58,67,78,1);
    --ag-input-disabled-background-color: rgba(104,104,110,0.07059);
    --ag-selected-row-background-color: rgba(187,134,252,0.2);
    --ag-row-hover-color: rgba(187,134,252,0.2);
    --ag-column-hover-color: rgba(245,245,245,0.05098);
    --ag-range-selection-background-color: rgba(187,134,252,0.10196);
    --ag-range-selection-background-color-2: rgba(187,134,252,0.18824);
    --ag-range-selection-background-color-3: rgba(187,134,252,0.27059);
    --ag-range-selection-background-color-4: rgba(187,134,252,0.34118);
    --ag-border-color: rgba(56,56,56,1);
    --ag-secondary-border-color: rgba(56,56,56,1);
    --ag-header-background-color: rgba(18,18,18,1);
    --ag-tooltip-background-color: rgba(33,43,56,1);
    --ag-odd-row-background-color: rgba(18,18,18,1);
    --ag-control-panel-background-color: rgba(44,44,44,1);
    --ag-subheader-background-color: rgba(255,255,255,0.05098);
    --ag-subheader-toolbar-background-color: rgba(44,44,44,1);
    --ag-invalid-color: rgba(224,37,37,1);
    --ag-checkbox-unchecked-color: rgba(121,126,135,1);
    --ag-checkbox-background-color: rgba(18,18,18,1);
    --ag-secondary-foreground-color: rgba(245,245,245,1);
    --ag-input-border-color: rgba(56,56,56,1);
    --ag-input-border-color-invalid: rgba(224,37,37,1);
    --ag-disabled-foreground-color: rgba(245,245,245,0.50196);
    --ag-chip-background-color: rgba(34,38,40,0.07059);
    --ag-side-button-selected-background-color: rgba(44,44,44,1);
    --ag-selected-tab-underline-color: rgba(63,81,181,1);
    --ag-modal-overlay-background-color: rgba(18,18,18,0.65882);
    --ag-value-change-delta-up-color: rgba(67,160,71,0.65882);
    --ag-value-change-delta-down-color: rgba(229,57,53,1);
    --ag-menu-background-color: rgba(44,44,44,1);
    --ag-row-loading-skeleton-effect-color: rgba(202, 203, 204, 0.4);
    --csstools-color-scheme--dark: initial;
    color-scheme: dark;
  }
}
.ag-theme-material .ag-filter-toolpanel-header,
.ag-theme-material .ag-filter-toolpanel-search,
.ag-theme-material .ag-status-bar,
.ag-theme-material .ag-header-row,
.ag-theme-material .ag-panel-title-bar-title,
.ag-theme-material .ag-multi-filter-group-title-bar,
.ag-theme-material-dark .ag-filter-toolpanel-header,
.ag-theme-material-dark .ag-filter-toolpanel-search,
.ag-theme-material-dark .ag-status-bar,
.ag-theme-material-dark .ag-header-row,
.ag-theme-material-dark .ag-panel-title-bar-title,
.ag-theme-material-dark .ag-multi-filter-group-title-bar,
.ag-theme-material-auto-dark .ag-filter-toolpanel-header,
.ag-theme-material-auto-dark .ag-filter-toolpanel-search,
.ag-theme-material-auto-dark .ag-status-bar,
.ag-theme-material-auto-dark .ag-header-row,
.ag-theme-material-auto-dark .ag-panel-title-bar-title,
.ag-theme-material-auto-dark .ag-multi-filter-group-title-bar {
  font-size: calc(var(--ag-font-size) - 1px);
  font-weight: 600;
  color: var(--ag-header-foreground-color);
}
.ag-theme-material .ag-tab,
.ag-theme-material-dark .ag-tab,
.ag-theme-material-auto-dark .ag-tab {
  height: calc(var(--ag-grid-size) * 4.5);
  flex: 1 1 auto;
}
.ag-theme-material .ag-tabs-header,
.ag-theme-material .ag-column-drop-horizontal,
.ag-theme-material-dark .ag-tabs-header,
.ag-theme-material-dark .ag-column-drop-horizontal,
.ag-theme-material-auto-dark .ag-tabs-header,
.ag-theme-material-auto-dark .ag-column-drop-horizontal {
  background-color: var(--ag-subheader-background-color);
}
.ag-theme-material .ag-tabs-body,
.ag-theme-material-dark .ag-tabs-body,
.ag-theme-material-auto-dark .ag-tabs-body {
  padding: calc(var(--ag-grid-size) * 0.5) 0;
}
.ag-theme-material .ag-tabs-body .ag-menu-list,
.ag-theme-material-dark .ag-tabs-body .ag-menu-list,
.ag-theme-material-auto-dark .ag-tabs-body .ag-menu-list {
  padding-top: 0;
  padding-bottom: 0;
}
.ag-theme-material .ag-header-cell,
.ag-theme-material .ag-header-group-cell,
.ag-theme-material-dark .ag-header-cell,
.ag-theme-material-dark .ag-header-group-cell,
.ag-theme-material-auto-dark .ag-header-cell,
.ag-theme-material-auto-dark .ag-header-group-cell {
  transition: background-color 0.5s;
}
.ag-theme-material .ag-row-last:not(.ag-row-first) .ag-cell-inline-editing,
.ag-theme-material-dark .ag-row-last:not(.ag-row-first) .ag-cell-inline-editing,
.ag-theme-material-auto-dark .ag-row-last:not(.ag-row-first) .ag-cell-inline-editing {
  bottom: 0;
}
.ag-theme-material .ag-cell-inline-editing,
.ag-theme-material-dark .ag-cell-inline-editing,
.ag-theme-material-auto-dark .ag-cell-inline-editing {
  padding: var(--ag-grid-size);
  height: calc(var(--ag-row-height) + var(--ag-grid-size) * 3);
  border-color: var(--ag-border-color) !important;
}
.ag-theme-material .ag-has-focus .ag-cell-inline-editing,
.ag-theme-material-dark .ag-has-focus .ag-cell-inline-editing,
.ag-theme-material-auto-dark .ag-has-focus .ag-cell-inline-editing {
  border-color: var(--ag-input-focus-border-color) !important;
}
.ag-theme-material .ag-column-drop-vertical,
.ag-theme-material-dark .ag-column-drop-vertical,
.ag-theme-material-auto-dark .ag-column-drop-vertical {
  border-bottom: solid 1px;
  border-bottom-color: var(--ag-border-color);
  padding-top: var(--ag-grid-size);
}
.ag-theme-material .ag-column-drop-vertical.ag-last-column-drop,
.ag-theme-material-dark .ag-column-drop-vertical.ag-last-column-drop,
.ag-theme-material-auto-dark .ag-column-drop-vertical.ag-last-column-drop {
  border-bottom: none;
}
.ag-theme-material .ag-column-drop-vertical-cell,
.ag-theme-material-dark .ag-column-drop-vertical-cell,
.ag-theme-material-auto-dark .ag-column-drop-vertical-cell {
  margin-left: 0;
}
.ag-theme-material .ag-column-drop-vertical-empty-message,
.ag-theme-material-dark .ag-column-drop-vertical-empty-message,
.ag-theme-material-auto-dark .ag-column-drop-vertical-empty-message {
  font-size: calc(var(--ag-font-size) - 1px);
  font-weight: 600;
  color: var(--ag-disabled-foreground-color);
}
.ag-theme-material .ag-ltr .ag-column-drop-vertical-empty-message, .ag-theme-material-dark .ag-ltr .ag-column-drop-vertical-empty-message, .ag-theme-material-auto-dark .ag-ltr .ag-column-drop-vertical-empty-message {
  padding-left: calc(var(--ag-icon-size) + var(--ag-grid-size) * 2);
  padding-right: var(--ag-grid-size);
}

.ag-theme-material .ag-rtl .ag-column-drop-vertical-empty-message, .ag-theme-material-dark .ag-rtl .ag-column-drop-vertical-empty-message, .ag-theme-material-auto-dark .ag-rtl .ag-column-drop-vertical-empty-message {
  padding-right: calc(var(--ag-icon-size) + var(--ag-grid-size) * 2);
  padding-left: var(--ag-grid-size);
}

.ag-theme-material .ag-status-bar,
.ag-theme-material-dark .ag-status-bar,
.ag-theme-material-auto-dark .ag-status-bar {
  border: solid 1px;
  border-color: var(--ag-border-color);
}
.ag-theme-material .ag-column-panel-column-select,
.ag-theme-material-dark .ag-column-panel-column-select,
.ag-theme-material-auto-dark .ag-column-panel-column-select {
  border-top: solid 1px;
  border-top-color: var(--ag-border-color);
}
.ag-theme-material .ag-column-select,
.ag-theme-material .ag-column-select-header,
.ag-theme-material-dark .ag-column-select,
.ag-theme-material-dark .ag-column-select-header,
.ag-theme-material-auto-dark .ag-column-select,
.ag-theme-material-auto-dark .ag-column-select-header {
  border-bottom: solid 1px;
  border-bottom-color: var(--ag-border-color);
}
.ag-theme-material .ag-column-select-header,
.ag-theme-material-dark .ag-column-select-header,
.ag-theme-material-auto-dark .ag-column-select-header {
  height: var(--ag-header-height);
}
.ag-theme-material .ag-group-title-bar,
.ag-theme-material-dark .ag-group-title-bar,
.ag-theme-material-auto-dark .ag-group-title-bar {
  padding: calc(var(--ag-grid-size) * 0.75) var(--ag-grid-size);
}
.ag-theme-material .ag-charts-format-sub-level-group-title-bar,
.ag-theme-material-dark .ag-charts-format-sub-level-group-title-bar,
.ag-theme-material-auto-dark .ag-charts-format-sub-level-group-title-bar {
  padding: calc(var(--ag-grid-size) * 0.5) var(--ag-grid-size);
}
.ag-theme-material .ag-chart-data-section,
.ag-theme-material .ag-chart-format-section,
.ag-theme-material .ag-chart-advanced-settings-section,
.ag-theme-material-dark .ag-chart-data-section,
.ag-theme-material-dark .ag-chart-format-section,
.ag-theme-material-dark .ag-chart-advanced-settings-section,
.ag-theme-material-auto-dark .ag-chart-data-section,
.ag-theme-material-auto-dark .ag-chart-format-section,
.ag-theme-material-auto-dark .ag-chart-advanced-settings-section {
  padding-bottom: calc(var(--ag-grid-size) * 0.5);
}
.ag-theme-material input[class^=ag-]:not([type]),
.ag-theme-material input[class^=ag-][type=text],
.ag-theme-material input[class^=ag-][type=number],
.ag-theme-material input[class^=ag-][type=tel],
.ag-theme-material input[class^=ag-][type=date],
.ag-theme-material input[class^=ag-][type=datetime-local],
.ag-theme-material textarea[class^=ag-],
.ag-theme-material-dark input[class^=ag-]:not([type]),
.ag-theme-material-dark input[class^=ag-][type=text],
.ag-theme-material-dark input[class^=ag-][type=number],
.ag-theme-material-dark input[class^=ag-][type=tel],
.ag-theme-material-dark input[class^=ag-][type=date],
.ag-theme-material-dark input[class^=ag-][type=datetime-local],
.ag-theme-material-dark textarea[class^=ag-],
.ag-theme-material-auto-dark input[class^=ag-]:not([type]),
.ag-theme-material-auto-dark input[class^=ag-][type=text],
.ag-theme-material-auto-dark input[class^=ag-][type=number],
.ag-theme-material-auto-dark input[class^=ag-][type=tel],
.ag-theme-material-auto-dark input[class^=ag-][type=date],
.ag-theme-material-auto-dark input[class^=ag-][type=datetime-local],
.ag-theme-material-auto-dark textarea[class^=ag-] {
  background: transparent;
  color: var(--ag-foreground-color);
  font-family: inherit;
  font-size: inherit;
  padding-bottom: var(--ag-grid-size);
  border-width: 0;
  border-radius: 0;
  border-bottom: 2px solid;
  border-bottom-color: var(--ag-border-color);
}
.ag-theme-material input[class^=ag-]:not([type]):not(textarea),
.ag-theme-material input[class^=ag-][type=text]:not(textarea),
.ag-theme-material input[class^=ag-][type=number]:not(textarea),
.ag-theme-material input[class^=ag-][type=tel]:not(textarea),
.ag-theme-material input[class^=ag-][type=date]:not(textarea),
.ag-theme-material input[class^=ag-][type=datetime-local]:not(textarea),
.ag-theme-material textarea[class^=ag-]:not(textarea),
.ag-theme-material-dark input[class^=ag-]:not([type]):not(textarea),
.ag-theme-material-dark input[class^=ag-][type=text]:not(textarea),
.ag-theme-material-dark input[class^=ag-][type=number]:not(textarea),
.ag-theme-material-dark input[class^=ag-][type=tel]:not(textarea),
.ag-theme-material-dark input[class^=ag-][type=date]:not(textarea),
.ag-theme-material-dark input[class^=ag-][type=datetime-local]:not(textarea),
.ag-theme-material-dark textarea[class^=ag-]:not(textarea),
.ag-theme-material-auto-dark input[class^=ag-]:not([type]):not(textarea),
.ag-theme-material-auto-dark input[class^=ag-][type=text]:not(textarea),
.ag-theme-material-auto-dark input[class^=ag-][type=number]:not(textarea),
.ag-theme-material-auto-dark input[class^=ag-][type=tel]:not(textarea),
.ag-theme-material-auto-dark input[class^=ag-][type=date]:not(textarea),
.ag-theme-material-auto-dark input[class^=ag-][type=datetime-local]:not(textarea),
.ag-theme-material-auto-dark textarea[class^=ag-]:not(textarea) {
  height: calc(var(--ag-grid-size) * 5);
}
.ag-theme-material input[class^=ag-]:not([type]):focus,
.ag-theme-material input[class^=ag-][type=text]:focus,
.ag-theme-material input[class^=ag-][type=number]:focus,
.ag-theme-material input[class^=ag-][type=tel]:focus,
.ag-theme-material input[class^=ag-][type=date]:focus,
.ag-theme-material input[class^=ag-][type=datetime-local]:focus,
.ag-theme-material textarea[class^=ag-]:focus,
.ag-theme-material-dark input[class^=ag-]:not([type]):focus,
.ag-theme-material-dark input[class^=ag-][type=text]:focus,
.ag-theme-material-dark input[class^=ag-][type=number]:focus,
.ag-theme-material-dark input[class^=ag-][type=tel]:focus,
.ag-theme-material-dark input[class^=ag-][type=date]:focus,
.ag-theme-material-dark input[class^=ag-][type=datetime-local]:focus,
.ag-theme-material-dark textarea[class^=ag-]:focus,
.ag-theme-material-auto-dark input[class^=ag-]:not([type]):focus,
.ag-theme-material-auto-dark input[class^=ag-][type=text]:focus,
.ag-theme-material-auto-dark input[class^=ag-][type=number]:focus,
.ag-theme-material-auto-dark input[class^=ag-][type=tel]:focus,
.ag-theme-material-auto-dark input[class^=ag-][type=date]:focus,
.ag-theme-material-auto-dark input[class^=ag-][type=datetime-local]:focus,
.ag-theme-material-auto-dark textarea[class^=ag-]:focus {
  border-bottom: 2px solid;
  border-bottom-color: var(--ag-material-primary-color);
  outline: none;
  box-shadow: none;
}
.ag-theme-material input[class^=ag-]:not([type])::-moz-placeholder, .ag-theme-material input[class^=ag-][type=text]::-moz-placeholder, .ag-theme-material input[class^=ag-][type=number]::-moz-placeholder, .ag-theme-material input[class^=ag-][type=tel]::-moz-placeholder, .ag-theme-material input[class^=ag-][type=date]::-moz-placeholder, .ag-theme-material input[class^=ag-][type=datetime-local]::-moz-placeholder, .ag-theme-material textarea[class^=ag-]::-moz-placeholder, .ag-theme-material-dark input[class^=ag-]:not([type])::-moz-placeholder, .ag-theme-material-dark input[class^=ag-][type=text]::-moz-placeholder, .ag-theme-material-dark input[class^=ag-][type=number]::-moz-placeholder, .ag-theme-material-dark input[class^=ag-][type=tel]::-moz-placeholder, .ag-theme-material-dark input[class^=ag-][type=date]::-moz-placeholder, .ag-theme-material-dark input[class^=ag-][type=datetime-local]::-moz-placeholder, .ag-theme-material-dark textarea[class^=ag-]::-moz-placeholder, .ag-theme-material-auto-dark input[class^=ag-]:not([type])::-moz-placeholder, .ag-theme-material-auto-dark input[class^=ag-][type=text]::-moz-placeholder, .ag-theme-material-auto-dark input[class^=ag-][type=number]::-moz-placeholder, .ag-theme-material-auto-dark input[class^=ag-][type=tel]::-moz-placeholder, .ag-theme-material-auto-dark input[class^=ag-][type=date]::-moz-placeholder, .ag-theme-material-auto-dark input[class^=ag-][type=datetime-local]::-moz-placeholder, .ag-theme-material-auto-dark textarea[class^=ag-]::-moz-placeholder {
  color: var(--ag-disabled-foreground-color);
}
.ag-theme-material input[class^=ag-]:not([type])::placeholder,
.ag-theme-material input[class^=ag-][type=text]::placeholder,
.ag-theme-material input[class^=ag-][type=number]::placeholder,
.ag-theme-material input[class^=ag-][type=tel]::placeholder,
.ag-theme-material input[class^=ag-][type=date]::placeholder,
.ag-theme-material input[class^=ag-][type=datetime-local]::placeholder,
.ag-theme-material textarea[class^=ag-]::placeholder,
.ag-theme-material-dark input[class^=ag-]:not([type])::placeholder,
.ag-theme-material-dark input[class^=ag-][type=text]::placeholder,
.ag-theme-material-dark input[class^=ag-][type=number]::placeholder,
.ag-theme-material-dark input[class^=ag-][type=tel]::placeholder,
.ag-theme-material-dark input[class^=ag-][type=date]::placeholder,
.ag-theme-material-dark input[class^=ag-][type=datetime-local]::placeholder,
.ag-theme-material-dark textarea[class^=ag-]::placeholder,
.ag-theme-material-auto-dark input[class^=ag-]:not([type])::placeholder,
.ag-theme-material-auto-dark input[class^=ag-][type=text]::placeholder,
.ag-theme-material-auto-dark input[class^=ag-][type=number]::placeholder,
.ag-theme-material-auto-dark input[class^=ag-][type=tel]::placeholder,
.ag-theme-material-auto-dark input[class^=ag-][type=date]::placeholder,
.ag-theme-material-auto-dark input[class^=ag-][type=datetime-local]::placeholder,
.ag-theme-material-auto-dark textarea[class^=ag-]::placeholder {
  color: var(--ag-disabled-foreground-color);
}
.ag-theme-material input[class^=ag-]:not([type]):disabled,
.ag-theme-material input[class^=ag-][type=text]:disabled,
.ag-theme-material input[class^=ag-][type=number]:disabled,
.ag-theme-material input[class^=ag-][type=tel]:disabled,
.ag-theme-material input[class^=ag-][type=date]:disabled,
.ag-theme-material input[class^=ag-][type=datetime-local]:disabled,
.ag-theme-material textarea[class^=ag-]:disabled,
.ag-theme-material-dark input[class^=ag-]:not([type]):disabled,
.ag-theme-material-dark input[class^=ag-][type=text]:disabled,
.ag-theme-material-dark input[class^=ag-][type=number]:disabled,
.ag-theme-material-dark input[class^=ag-][type=tel]:disabled,
.ag-theme-material-dark input[class^=ag-][type=date]:disabled,
.ag-theme-material-dark input[class^=ag-][type=datetime-local]:disabled,
.ag-theme-material-dark textarea[class^=ag-]:disabled,
.ag-theme-material-auto-dark input[class^=ag-]:not([type]):disabled,
.ag-theme-material-auto-dark input[class^=ag-][type=text]:disabled,
.ag-theme-material-auto-dark input[class^=ag-][type=number]:disabled,
.ag-theme-material-auto-dark input[class^=ag-][type=tel]:disabled,
.ag-theme-material-auto-dark input[class^=ag-][type=date]:disabled,
.ag-theme-material-auto-dark input[class^=ag-][type=datetime-local]:disabled,
.ag-theme-material-auto-dark textarea[class^=ag-]:disabled {
  border-bottom: 1px solid;
  border-bottom-color: var(--ag-border-color);
}
.ag-theme-material input[class^=ag-]:not([type]):invalid,
.ag-theme-material input[class^=ag-][type=text]:invalid,
.ag-theme-material input[class^=ag-][type=number]:invalid,
.ag-theme-material input[class^=ag-][type=tel]:invalid,
.ag-theme-material input[class^=ag-][type=date]:invalid,
.ag-theme-material input[class^=ag-][type=datetime-local]:invalid,
.ag-theme-material textarea[class^=ag-]:invalid,
.ag-theme-material-dark input[class^=ag-]:not([type]):invalid,
.ag-theme-material-dark input[class^=ag-][type=text]:invalid,
.ag-theme-material-dark input[class^=ag-][type=number]:invalid,
.ag-theme-material-dark input[class^=ag-][type=tel]:invalid,
.ag-theme-material-dark input[class^=ag-][type=date]:invalid,
.ag-theme-material-dark input[class^=ag-][type=datetime-local]:invalid,
.ag-theme-material-dark textarea[class^=ag-]:invalid,
.ag-theme-material-auto-dark input[class^=ag-]:not([type]):invalid,
.ag-theme-material-auto-dark input[class^=ag-][type=text]:invalid,
.ag-theme-material-auto-dark input[class^=ag-][type=number]:invalid,
.ag-theme-material-auto-dark input[class^=ag-][type=tel]:invalid,
.ag-theme-material-auto-dark input[class^=ag-][type=date]:invalid,
.ag-theme-material-auto-dark input[class^=ag-][type=datetime-local]:invalid,
.ag-theme-material-auto-dark textarea[class^=ag-]:invalid {
  border-width: 0;
  border-bottom: 1px solid;
  border-bottom-color: var(--ag-invalid-color);
  color: var(--ag-invalid-color);
}
.ag-theme-material .ag-standard-button,
.ag-theme-material-dark .ag-standard-button,
.ag-theme-material-auto-dark .ag-standard-button {
  -webkit-appearance: none;
     -moz-appearance: none;
          appearance: none;
  background-color: transparent;
  border: 0;
  color: var(--ag-material-primary-color);
  font-family: inherit;
  font-size: inherit;
  margin: 0;
  padding: 0;
  text-transform: uppercase;
}
.ag-theme-material .ag-standard-button:disabled,
.ag-theme-material-dark .ag-standard-button:disabled,
.ag-theme-material-auto-dark .ag-standard-button:disabled {
  color: var(--ag-disabled-foreground-color);
  background-color: var(--ag-input-disabled-background-color);
  border-color: var(--ag-input-disabled-border-color);
}
.ag-theme-material.ag-dnd-ghost,
.ag-theme-material-dark.ag-dnd-ghost,
.ag-theme-material-auto-dark.ag-dnd-ghost {
  font-size: calc(var(--ag-font-size) - 1px);
  font-weight: 600;
}
.ag-theme-material .ag-filter-toolpanel-header,
.ag-theme-material-dark .ag-filter-toolpanel-header,
.ag-theme-material-auto-dark .ag-filter-toolpanel-header {
  height: calc(var(--ag-grid-size) * 4);
}
.ag-theme-material .ag-filter-toolpanel-group-level-0-header,
.ag-theme-material-dark .ag-filter-toolpanel-group-level-0-header,
.ag-theme-material-auto-dark .ag-filter-toolpanel-group-level-0-header {
  height: calc(var(--ag-grid-size) * 7);
}
.ag-theme-material .ag-ltr .ag-filter-apply-panel-button, .ag-theme-material .ag-ltr .ag-advanced-filter-apply-button, .ag-theme-material .ag-ltr .ag-advanced-filter-builder-button, .ag-theme-material-dark .ag-ltr .ag-filter-apply-panel-button, .ag-theme-material-dark .ag-ltr .ag-advanced-filter-apply-button, .ag-theme-material-dark .ag-ltr .ag-advanced-filter-builder-button, .ag-theme-material-auto-dark .ag-ltr .ag-filter-apply-panel-button, .ag-theme-material-auto-dark .ag-ltr .ag-advanced-filter-apply-button, .ag-theme-material-auto-dark .ag-ltr .ag-advanced-filter-builder-button {
  margin-left: var(--ag-grid-size);
}

.ag-theme-material .ag-rtl .ag-filter-apply-panel-button, .ag-theme-material .ag-rtl .ag-advanced-filter-apply-button, .ag-theme-material .ag-rtl .ag-advanced-filter-builder-button, .ag-theme-material-dark .ag-rtl .ag-filter-apply-panel-button, .ag-theme-material-dark .ag-rtl .ag-advanced-filter-apply-button, .ag-theme-material-dark .ag-rtl .ag-advanced-filter-builder-button, .ag-theme-material-auto-dark .ag-rtl .ag-filter-apply-panel-button, .ag-theme-material-auto-dark .ag-rtl .ag-advanced-filter-apply-button, .ag-theme-material-auto-dark .ag-rtl .ag-advanced-filter-builder-button {
  margin-right: var(--ag-grid-size);
}

.ag-theme-material .ag-layout-auto-height .ag-center-cols-viewport,
.ag-theme-material .ag-layout-auto-height .ag-center-cols-container,
.ag-theme-material .ag-layout-print .ag-center-cols-viewport,
.ag-theme-material .ag-layout-print .ag-center-cols-container,
.ag-theme-material-dark .ag-layout-auto-height .ag-center-cols-viewport,
.ag-theme-material-dark .ag-layout-auto-height .ag-center-cols-container,
.ag-theme-material-dark .ag-layout-print .ag-center-cols-viewport,
.ag-theme-material-dark .ag-layout-print .ag-center-cols-container,
.ag-theme-material-auto-dark .ag-layout-auto-height .ag-center-cols-viewport,
.ag-theme-material-auto-dark .ag-layout-auto-height .ag-center-cols-container,
.ag-theme-material-auto-dark .ag-layout-print .ag-center-cols-viewport,
.ag-theme-material-auto-dark .ag-layout-print .ag-center-cols-container {
  min-height: 150px;
}
.ag-theme-material .ag-picker-field-wrapper:focus-within,
.ag-theme-material-dark .ag-picker-field-wrapper:focus-within,
.ag-theme-material-auto-dark .ag-picker-field-wrapper:focus-within {
  box-shadow: 0 0 0 1px var(--ag-material-primary-color);
}
.ag-theme-material .ag-rich-select-list,
.ag-theme-material-dark .ag-rich-select-list,
.ag-theme-material-auto-dark .ag-rich-select-list {
  box-shadow: rgba(0, 0, 0, 0.2) 0px 5px 5px -3px, rgba(0, 0, 0, 0.14) 0px 8px 10px 1px, rgba(0, 0, 0, 0.12) 0px 3px 14px 2px;
}
.ag-theme-material .ag-advanced-filter-builder-button-label,
.ag-theme-material-dark .ag-advanced-filter-builder-button-label,
.ag-theme-material-auto-dark .ag-advanced-filter-builder-button-label {
  text-transform: uppercase;
}
.ag-theme-material .ag-filter-active .ag-icon-filter,
.ag-theme-material-dark .ag-filter-active .ag-icon-filter,
.ag-theme-material-auto-dark .ag-filter-active .ag-icon-filter {
  color: var(--ag-material-accent-color);
}
.ag-theme-material .ag-list-item-hovered::after,
.ag-theme-material-dark .ag-list-item-hovered::after,
.ag-theme-material-auto-dark .ag-list-item-hovered::after {
  background-color: var(--ag-material-primary-color);
}
.ag-theme-material .ag-pill .ag-pill-button:hover,
.ag-theme-material-dark .ag-pill .ag-pill-button:hover,
.ag-theme-material-auto-dark .ag-pill .ag-pill-button:hover {
  color: var(--ag-material-primary-color);
}
.ag-theme-material .ag-header-highlight-before::after,
.ag-theme-material .ag-header-highlight-after::after,
.ag-theme-material-dark .ag-header-highlight-before::after,
.ag-theme-material-dark .ag-header-highlight-after::after,
.ag-theme-material-auto-dark .ag-header-highlight-before::after,
.ag-theme-material-auto-dark .ag-header-highlight-after::after {
  background-color: var(--ag-material-primary-color);
}
`,""]),x.A=D},2935:function(ne,x,p){var M=p(6758),A=p.n(M),F=p(935),D=p.n(F),f=p(62),v=p.n(f),u=new URL(p(6055),p.b),s=D()(A()),r=v()(u);s.push([ne.id,`@font-face {
  font-family: "agGridMaterial";
  src: url(`+r+`);
  font-weight: normal;
  font-style: normal;
}
.ag-theme-material,
.ag-theme-material-dark,
.ag-theme-material-auto-dark {
  --ag-material-primary-color: #3f51b5;
  --ag-material-accent-color: #ff4081;
  --ag-foreground-color: rgba(0, 0, 0, 0.87);
  --ag-secondary-foreground-color: rgba(0, 0, 0, 0.54);
  --ag-disabled-foreground-color: rgba(0, 0, 0, 0.38);
  --ag-background-color: #fff;
  --ag-header-background-color: #fff;
  --ag-tooltip-background-color: #fff;
  --ag-subheader-background-color: #eee;
  --ag-subheader-toolbar-background-color: rgba(238, 238, 238, 0.5);
  --ag-header-cell-hover-background-color: #f2f2f2;
  --ag-chip-background-color: #e2e2e2;
  --ag-range-selection-background-color: rgba(122, 134, 203, 0.1);
  --ag-range-selection-background-color-2: rgba(122, 134, 203, 0.19);
  --ag-range-selection-background-color-3: rgba(122, 134, 203, 0.27);
  --ag-range-selection-background-color-4: rgba(122, 134, 203, 0.34);
  --ag-range-selection-highlight-color: #fce4ec;
  --ag-row-hover-color: #fafafa;
  --ag-column-hover-color: #fafafa;
  --ag-control-panel-background-color: #fafafa;
  --ag-selected-row-background-color: rgba(33, 150, 243, 0.3);
  --ag-checkbox-unchecked-color: #333;
  --ag-value-change-value-highlight-background-color: #00acc1;
  --ag-side-button-selected-background-color: transparent;
  --ag-advanced-filter-join-pill-color: #f08e8d;
  --ag-advanced-filter-column-pill-color: #a6e194;
  --ag-advanced-filter-option-pill-color: #f3c08b;
  --ag-advanced-filter-value-pill-color: #85c0e4;
  --ag-range-selection-border-color: var(--ag-material-primary-color);
  --ag-checkbox-checked-color: var(--ag-material-accent-color);
  --ag-borders: none;
  --ag-borders-critical: solid 1px;
  --ag-border-color: #e2e2e2;
  --ag-grid-size: 8px;
  --ag-icon-size: 18px;
  --ag-header-height: calc(var(--ag-grid-size) * 7);
  --ag-row-height: calc(var(--ag-grid-size) * 6);
  --ag-cell-horizontal-padding: calc(var(--ag-grid-size) * 3);
  --ag-list-item-height: calc(var(--ag-grid-size) * 4);
  --ag-row-group-indent-size: calc(var(--ag-grid-size) * 3 + var(--ag-icon-size));
  --ag-filter-tool-panel-sub-level-row-height: calc(var(--ag-grid-size) * 4);
  --ag-checkbox-border-radius: 2px;
  --ag-toggle-button-switch-border-width: 2px;
  --ag-toggle-button-height: var(--ag-icon-size);
  --ag-widget-container-horizontal-padding: calc(var(--ag-grid-size) * 1.5);
  --ag-widget-container-vertical-padding: calc(var(--ag-grid-size) * 2);
  --ag-widget-vertical-spacing: calc(var(--ag-grid-size) * 1.75);
  --ag-font-family: Roboto, -apple-system, BlinkMacSystemFont, "Segoe UI", Oxygen-Sans, Ubuntu, Cantarell,
      "Helvetica Neue", sans-serif;
  --ag-font-size: 13px;
  --ag-icon-font-family: agGridMaterial;
  --ag-selected-tab-underline-color: var(--ag-material-primary-color);
  --ag-selected-tab-underline-width: 2px;
  --ag-input-focus-border-color: var(--ag-material-primary-color);
  --ag-input-focus-box-shadow: 0 0 0 5px rgba(32, 33, 36, 0.122);
  --ag-card-shadow: 0 3px 1px -2px rgba(0, 0, 0, 0.2), 0 2px 2px 0 rgba(0, 0, 0, 0.14),
      0 1px 5px 0 rgba(0, 0, 0, 0.12);
  --ag-card-radius: 2px;
  --ag-invalid-color: #e02525;
}

.ag-theme-material-dark {
  --ag-material-primary-color: #3f51b5;
  --ag-material-accent-color: rgba(187,134,252,1);
  --ag-range-selection-border-color: var(--ag-material-accent-color);
  --ag-background-color: rgba(18,18,18,1);
  --ag-foreground-color: rgba(255,255,255,1);
  --ag-data-color: rgba(245,245,245,1);
  --ag-header-cell-hover-background-color: rgba(0,0,0,1);
  --ag-advanced-filter-join-pill-color: rgba(122,58,55,1);
  --ag-advanced-filter-column-pill-color: rgba(53,95,45,1);
  --ag-advanced-filter-option-pill-color: rgba(90,49,104,1);
  --ag-advanced-filter-value-pill-color: rgba(55,76,134,1);
  --ag-input-disabled-border-color: rgba(58,67,78,1);
  --ag-input-disabled-background-color: rgba(104,104,110,0.07059);
  --ag-selected-row-background-color: rgba(187,134,252,0.2);
  --ag-row-hover-color: rgba(187,134,252,0.2);
  --ag-column-hover-color: rgba(245,245,245,0.05098);
  --ag-range-selection-background-color: rgba(187,134,252,0.10196);
  --ag-range-selection-background-color-2: rgba(187,134,252,0.18824);
  --ag-range-selection-background-color-3: rgba(187,134,252,0.27059);
  --ag-range-selection-background-color-4: rgba(187,134,252,0.34118);
  --ag-border-color: rgba(56,56,56,1);
  --ag-secondary-border-color: rgba(56,56,56,1);
  --ag-header-background-color: rgba(18,18,18,1);
  --ag-tooltip-background-color: rgba(33,43,56,1);
  --ag-odd-row-background-color: rgba(18,18,18,1);
  --ag-control-panel-background-color: rgba(44,44,44,1);
  --ag-subheader-background-color: rgba(255,255,255,0.05098);
  --ag-subheader-toolbar-background-color: rgba(44,44,44,1);
  --ag-invalid-color: rgba(224,37,37,1);
  --ag-checkbox-unchecked-color: rgba(121,126,135,1);
  --ag-checkbox-background-color: rgba(18,18,18,1);
  --ag-secondary-foreground-color: rgba(245,245,245,1);
  --ag-input-border-color: rgba(56,56,56,1);
  --ag-input-border-color-invalid: rgba(224,37,37,1);
  --ag-disabled-foreground-color: rgba(245,245,245,0.50196);
  --ag-chip-background-color: rgba(34,38,40,0.07059);
  --ag-side-button-selected-background-color: rgba(44,44,44,1);
  --ag-selected-tab-underline-color: rgba(63,81,181,1);
  --ag-modal-overlay-background-color: rgba(18,18,18,0.65882);
  --ag-value-change-delta-up-color: rgba(67,160,71,0.65882);
  --ag-value-change-delta-down-color: rgba(229,57,53,1);
  --ag-menu-background-color: rgba(44,44,44,1);
  --ag-row-loading-skeleton-effect-color: rgba(202, 203, 204, 0.4);
  --csstools-color-scheme--dark: initial;
  color-scheme: dark;
}

@media (prefers-color-scheme: dark) {
  .ag-theme-material-auto-dark {
    --ag-material-primary-color: #3f51b5;
    --ag-material-accent-color: rgba(187,134,252,1);
    --ag-range-selection-border-color: var(--ag-material-accent-color);
    --ag-background-color: rgba(18,18,18,1);
    --ag-foreground-color: rgba(255,255,255,1);
    --ag-data-color: rgba(245,245,245,1);
    --ag-header-cell-hover-background-color: rgba(0,0,0,1);
    --ag-advanced-filter-join-pill-color: rgba(122,58,55,1);
    --ag-advanced-filter-column-pill-color: rgba(53,95,45,1);
    --ag-advanced-filter-option-pill-color: rgba(90,49,104,1);
    --ag-advanced-filter-value-pill-color: rgba(55,76,134,1);
    --ag-input-disabled-border-color: rgba(58,67,78,1);
    --ag-input-disabled-background-color: rgba(104,104,110,0.07059);
    --ag-selected-row-background-color: rgba(187,134,252,0.2);
    --ag-row-hover-color: rgba(187,134,252,0.2);
    --ag-column-hover-color: rgba(245,245,245,0.05098);
    --ag-range-selection-background-color: rgba(187,134,252,0.10196);
    --ag-range-selection-background-color-2: rgba(187,134,252,0.18824);
    --ag-range-selection-background-color-3: rgba(187,134,252,0.27059);
    --ag-range-selection-background-color-4: rgba(187,134,252,0.34118);
    --ag-border-color: rgba(56,56,56,1);
    --ag-secondary-border-color: rgba(56,56,56,1);
    --ag-header-background-color: rgba(18,18,18,1);
    --ag-tooltip-background-color: rgba(33,43,56,1);
    --ag-odd-row-background-color: rgba(18,18,18,1);
    --ag-control-panel-background-color: rgba(44,44,44,1);
    --ag-subheader-background-color: rgba(255,255,255,0.05098);
    --ag-subheader-toolbar-background-color: rgba(44,44,44,1);
    --ag-invalid-color: rgba(224,37,37,1);
    --ag-checkbox-unchecked-color: rgba(121,126,135,1);
    --ag-checkbox-background-color: rgba(18,18,18,1);
    --ag-secondary-foreground-color: rgba(245,245,245,1);
    --ag-input-border-color: rgba(56,56,56,1);
    --ag-input-border-color-invalid: rgba(224,37,37,1);
    --ag-disabled-foreground-color: rgba(245,245,245,0.50196);
    --ag-chip-background-color: rgba(34,38,40,0.07059);
    --ag-side-button-selected-background-color: rgba(44,44,44,1);
    --ag-selected-tab-underline-color: rgba(63,81,181,1);
    --ag-modal-overlay-background-color: rgba(18,18,18,0.65882);
    --ag-value-change-delta-up-color: rgba(67,160,71,0.65882);
    --ag-value-change-delta-down-color: rgba(229,57,53,1);
    --ag-menu-background-color: rgba(44,44,44,1);
    --ag-row-loading-skeleton-effect-color: rgba(202, 203, 204, 0.4);
    --csstools-color-scheme--dark: initial;
    color-scheme: dark;
  }
}
.ag-theme-material .ag-filter-toolpanel-header,
.ag-theme-material .ag-filter-toolpanel-search,
.ag-theme-material .ag-status-bar,
.ag-theme-material .ag-header-row,
.ag-theme-material .ag-panel-title-bar-title,
.ag-theme-material .ag-multi-filter-group-title-bar,
.ag-theme-material-dark .ag-filter-toolpanel-header,
.ag-theme-material-dark .ag-filter-toolpanel-search,
.ag-theme-material-dark .ag-status-bar,
.ag-theme-material-dark .ag-header-row,
.ag-theme-material-dark .ag-panel-title-bar-title,
.ag-theme-material-dark .ag-multi-filter-group-title-bar,
.ag-theme-material-auto-dark .ag-filter-toolpanel-header,
.ag-theme-material-auto-dark .ag-filter-toolpanel-search,
.ag-theme-material-auto-dark .ag-status-bar,
.ag-theme-material-auto-dark .ag-header-row,
.ag-theme-material-auto-dark .ag-panel-title-bar-title,
.ag-theme-material-auto-dark .ag-multi-filter-group-title-bar {
  font-size: calc(var(--ag-font-size) - 1px);
  font-weight: 600;
  color: var(--ag-header-foreground-color);
}
.ag-theme-material .ag-tab,
.ag-theme-material-dark .ag-tab,
.ag-theme-material-auto-dark .ag-tab {
  height: calc(var(--ag-grid-size) * 4.5);
  flex: 1 1 auto;
}
.ag-theme-material .ag-tabs-header,
.ag-theme-material .ag-column-drop-horizontal,
.ag-theme-material-dark .ag-tabs-header,
.ag-theme-material-dark .ag-column-drop-horizontal,
.ag-theme-material-auto-dark .ag-tabs-header,
.ag-theme-material-auto-dark .ag-column-drop-horizontal {
  background-color: var(--ag-subheader-background-color);
}
.ag-theme-material .ag-tabs-body,
.ag-theme-material-dark .ag-tabs-body,
.ag-theme-material-auto-dark .ag-tabs-body {
  padding: calc(var(--ag-grid-size) * 0.5) 0;
}
.ag-theme-material .ag-tabs-body .ag-menu-list,
.ag-theme-material-dark .ag-tabs-body .ag-menu-list,
.ag-theme-material-auto-dark .ag-tabs-body .ag-menu-list {
  padding-top: 0;
  padding-bottom: 0;
}
.ag-theme-material .ag-header-cell,
.ag-theme-material .ag-header-group-cell,
.ag-theme-material-dark .ag-header-cell,
.ag-theme-material-dark .ag-header-group-cell,
.ag-theme-material-auto-dark .ag-header-cell,
.ag-theme-material-auto-dark .ag-header-group-cell {
  transition: background-color 0.5s;
}
.ag-theme-material .ag-row-last:not(.ag-row-first) .ag-cell-inline-editing,
.ag-theme-material-dark .ag-row-last:not(.ag-row-first) .ag-cell-inline-editing,
.ag-theme-material-auto-dark .ag-row-last:not(.ag-row-first) .ag-cell-inline-editing {
  bottom: 0;
}
.ag-theme-material .ag-cell-inline-editing,
.ag-theme-material-dark .ag-cell-inline-editing,
.ag-theme-material-auto-dark .ag-cell-inline-editing {
  padding: var(--ag-grid-size);
  height: calc(var(--ag-row-height) + var(--ag-grid-size) * 3);
  border-color: var(--ag-border-color) !important;
}
.ag-theme-material .ag-has-focus .ag-cell-inline-editing,
.ag-theme-material-dark .ag-has-focus .ag-cell-inline-editing,
.ag-theme-material-auto-dark .ag-has-focus .ag-cell-inline-editing {
  border-color: var(--ag-input-focus-border-color) !important;
}
.ag-theme-material .ag-column-drop-vertical,
.ag-theme-material-dark .ag-column-drop-vertical,
.ag-theme-material-auto-dark .ag-column-drop-vertical {
  border-bottom: solid 1px;
  border-bottom-color: var(--ag-border-color);
  padding-top: var(--ag-grid-size);
}
.ag-theme-material .ag-column-drop-vertical.ag-last-column-drop,
.ag-theme-material-dark .ag-column-drop-vertical.ag-last-column-drop,
.ag-theme-material-auto-dark .ag-column-drop-vertical.ag-last-column-drop {
  border-bottom: none;
}
.ag-theme-material .ag-column-drop-vertical-cell,
.ag-theme-material-dark .ag-column-drop-vertical-cell,
.ag-theme-material-auto-dark .ag-column-drop-vertical-cell {
  margin-left: 0;
}
.ag-theme-material .ag-column-drop-vertical-empty-message,
.ag-theme-material-dark .ag-column-drop-vertical-empty-message,
.ag-theme-material-auto-dark .ag-column-drop-vertical-empty-message {
  font-size: calc(var(--ag-font-size) - 1px);
  font-weight: 600;
  color: var(--ag-disabled-foreground-color);
}
.ag-theme-material .ag-ltr .ag-column-drop-vertical-empty-message, .ag-theme-material-dark .ag-ltr .ag-column-drop-vertical-empty-message, .ag-theme-material-auto-dark .ag-ltr .ag-column-drop-vertical-empty-message {
  padding-left: calc(var(--ag-icon-size) + var(--ag-grid-size) * 2);
  padding-right: var(--ag-grid-size);
}

.ag-theme-material .ag-rtl .ag-column-drop-vertical-empty-message, .ag-theme-material-dark .ag-rtl .ag-column-drop-vertical-empty-message, .ag-theme-material-auto-dark .ag-rtl .ag-column-drop-vertical-empty-message {
  padding-right: calc(var(--ag-icon-size) + var(--ag-grid-size) * 2);
  padding-left: var(--ag-grid-size);
}

.ag-theme-material .ag-status-bar,
.ag-theme-material-dark .ag-status-bar,
.ag-theme-material-auto-dark .ag-status-bar {
  border: solid 1px;
  border-color: var(--ag-border-color);
}
.ag-theme-material .ag-column-panel-column-select,
.ag-theme-material-dark .ag-column-panel-column-select,
.ag-theme-material-auto-dark .ag-column-panel-column-select {
  border-top: solid 1px;
  border-top-color: var(--ag-border-color);
}
.ag-theme-material .ag-column-select,
.ag-theme-material .ag-column-select-header,
.ag-theme-material-dark .ag-column-select,
.ag-theme-material-dark .ag-column-select-header,
.ag-theme-material-auto-dark .ag-column-select,
.ag-theme-material-auto-dark .ag-column-select-header {
  border-bottom: solid 1px;
  border-bottom-color: var(--ag-border-color);
}
.ag-theme-material .ag-column-select-header,
.ag-theme-material-dark .ag-column-select-header,
.ag-theme-material-auto-dark .ag-column-select-header {
  height: var(--ag-header-height);
}
.ag-theme-material .ag-group-title-bar,
.ag-theme-material-dark .ag-group-title-bar,
.ag-theme-material-auto-dark .ag-group-title-bar {
  padding: calc(var(--ag-grid-size) * 0.75) var(--ag-grid-size);
}
.ag-theme-material .ag-charts-format-sub-level-group-title-bar,
.ag-theme-material-dark .ag-charts-format-sub-level-group-title-bar,
.ag-theme-material-auto-dark .ag-charts-format-sub-level-group-title-bar {
  padding: calc(var(--ag-grid-size) * 0.5) var(--ag-grid-size);
}
.ag-theme-material .ag-chart-data-section,
.ag-theme-material .ag-chart-format-section,
.ag-theme-material .ag-chart-advanced-settings-section,
.ag-theme-material-dark .ag-chart-data-section,
.ag-theme-material-dark .ag-chart-format-section,
.ag-theme-material-dark .ag-chart-advanced-settings-section,
.ag-theme-material-auto-dark .ag-chart-data-section,
.ag-theme-material-auto-dark .ag-chart-format-section,
.ag-theme-material-auto-dark .ag-chart-advanced-settings-section {
  padding-bottom: calc(var(--ag-grid-size) * 0.5);
}
.ag-theme-material input[class^=ag-]:not([type]),
.ag-theme-material input[class^=ag-][type=text],
.ag-theme-material input[class^=ag-][type=number],
.ag-theme-material input[class^=ag-][type=tel],
.ag-theme-material input[class^=ag-][type=date],
.ag-theme-material input[class^=ag-][type=datetime-local],
.ag-theme-material textarea[class^=ag-],
.ag-theme-material-dark input[class^=ag-]:not([type]),
.ag-theme-material-dark input[class^=ag-][type=text],
.ag-theme-material-dark input[class^=ag-][type=number],
.ag-theme-material-dark input[class^=ag-][type=tel],
.ag-theme-material-dark input[class^=ag-][type=date],
.ag-theme-material-dark input[class^=ag-][type=datetime-local],
.ag-theme-material-dark textarea[class^=ag-],
.ag-theme-material-auto-dark input[class^=ag-]:not([type]),
.ag-theme-material-auto-dark input[class^=ag-][type=text],
.ag-theme-material-auto-dark input[class^=ag-][type=number],
.ag-theme-material-auto-dark input[class^=ag-][type=tel],
.ag-theme-material-auto-dark input[class^=ag-][type=date],
.ag-theme-material-auto-dark input[class^=ag-][type=datetime-local],
.ag-theme-material-auto-dark textarea[class^=ag-] {
  background: transparent;
  color: var(--ag-foreground-color);
  font-family: inherit;
  font-size: inherit;
  padding-bottom: var(--ag-grid-size);
  border-width: 0;
  border-radius: 0;
  border-bottom: 2px solid;
  border-bottom-color: var(--ag-border-color);
}
.ag-theme-material input[class^=ag-]:not([type]):not(textarea),
.ag-theme-material input[class^=ag-][type=text]:not(textarea),
.ag-theme-material input[class^=ag-][type=number]:not(textarea),
.ag-theme-material input[class^=ag-][type=tel]:not(textarea),
.ag-theme-material input[class^=ag-][type=date]:not(textarea),
.ag-theme-material input[class^=ag-][type=datetime-local]:not(textarea),
.ag-theme-material textarea[class^=ag-]:not(textarea),
.ag-theme-material-dark input[class^=ag-]:not([type]):not(textarea),
.ag-theme-material-dark input[class^=ag-][type=text]:not(textarea),
.ag-theme-material-dark input[class^=ag-][type=number]:not(textarea),
.ag-theme-material-dark input[class^=ag-][type=tel]:not(textarea),
.ag-theme-material-dark input[class^=ag-][type=date]:not(textarea),
.ag-theme-material-dark input[class^=ag-][type=datetime-local]:not(textarea),
.ag-theme-material-dark textarea[class^=ag-]:not(textarea),
.ag-theme-material-auto-dark input[class^=ag-]:not([type]):not(textarea),
.ag-theme-material-auto-dark input[class^=ag-][type=text]:not(textarea),
.ag-theme-material-auto-dark input[class^=ag-][type=number]:not(textarea),
.ag-theme-material-auto-dark input[class^=ag-][type=tel]:not(textarea),
.ag-theme-material-auto-dark input[class^=ag-][type=date]:not(textarea),
.ag-theme-material-auto-dark input[class^=ag-][type=datetime-local]:not(textarea),
.ag-theme-material-auto-dark textarea[class^=ag-]:not(textarea) {
  height: calc(var(--ag-grid-size) * 5);
}
.ag-theme-material input[class^=ag-]:not([type]):focus,
.ag-theme-material input[class^=ag-][type=text]:focus,
.ag-theme-material input[class^=ag-][type=number]:focus,
.ag-theme-material input[class^=ag-][type=tel]:focus,
.ag-theme-material input[class^=ag-][type=date]:focus,
.ag-theme-material input[class^=ag-][type=datetime-local]:focus,
.ag-theme-material textarea[class^=ag-]:focus,
.ag-theme-material-dark input[class^=ag-]:not([type]):focus,
.ag-theme-material-dark input[class^=ag-][type=text]:focus,
.ag-theme-material-dark input[class^=ag-][type=number]:focus,
.ag-theme-material-dark input[class^=ag-][type=tel]:focus,
.ag-theme-material-dark input[class^=ag-][type=date]:focus,
.ag-theme-material-dark input[class^=ag-][type=datetime-local]:focus,
.ag-theme-material-dark textarea[class^=ag-]:focus,
.ag-theme-material-auto-dark input[class^=ag-]:not([type]):focus,
.ag-theme-material-auto-dark input[class^=ag-][type=text]:focus,
.ag-theme-material-auto-dark input[class^=ag-][type=number]:focus,
.ag-theme-material-auto-dark input[class^=ag-][type=tel]:focus,
.ag-theme-material-auto-dark input[class^=ag-][type=date]:focus,
.ag-theme-material-auto-dark input[class^=ag-][type=datetime-local]:focus,
.ag-theme-material-auto-dark textarea[class^=ag-]:focus {
  border-bottom: 2px solid;
  border-bottom-color: var(--ag-material-primary-color);
  outline: none;
  box-shadow: none;
}
.ag-theme-material input[class^=ag-]:not([type])::-moz-placeholder, .ag-theme-material input[class^=ag-][type=text]::-moz-placeholder, .ag-theme-material input[class^=ag-][type=number]::-moz-placeholder, .ag-theme-material input[class^=ag-][type=tel]::-moz-placeholder, .ag-theme-material input[class^=ag-][type=date]::-moz-placeholder, .ag-theme-material input[class^=ag-][type=datetime-local]::-moz-placeholder, .ag-theme-material textarea[class^=ag-]::-moz-placeholder, .ag-theme-material-dark input[class^=ag-]:not([type])::-moz-placeholder, .ag-theme-material-dark input[class^=ag-][type=text]::-moz-placeholder, .ag-theme-material-dark input[class^=ag-][type=number]::-moz-placeholder, .ag-theme-material-dark input[class^=ag-][type=tel]::-moz-placeholder, .ag-theme-material-dark input[class^=ag-][type=date]::-moz-placeholder, .ag-theme-material-dark input[class^=ag-][type=datetime-local]::-moz-placeholder, .ag-theme-material-dark textarea[class^=ag-]::-moz-placeholder, .ag-theme-material-auto-dark input[class^=ag-]:not([type])::-moz-placeholder, .ag-theme-material-auto-dark input[class^=ag-][type=text]::-moz-placeholder, .ag-theme-material-auto-dark input[class^=ag-][type=number]::-moz-placeholder, .ag-theme-material-auto-dark input[class^=ag-][type=tel]::-moz-placeholder, .ag-theme-material-auto-dark input[class^=ag-][type=date]::-moz-placeholder, .ag-theme-material-auto-dark input[class^=ag-][type=datetime-local]::-moz-placeholder, .ag-theme-material-auto-dark textarea[class^=ag-]::-moz-placeholder {
  color: var(--ag-disabled-foreground-color);
}
.ag-theme-material input[class^=ag-]:not([type])::placeholder,
.ag-theme-material input[class^=ag-][type=text]::placeholder,
.ag-theme-material input[class^=ag-][type=number]::placeholder,
.ag-theme-material input[class^=ag-][type=tel]::placeholder,
.ag-theme-material input[class^=ag-][type=date]::placeholder,
.ag-theme-material input[class^=ag-][type=datetime-local]::placeholder,
.ag-theme-material textarea[class^=ag-]::placeholder,
.ag-theme-material-dark input[class^=ag-]:not([type])::placeholder,
.ag-theme-material-dark input[class^=ag-][type=text]::placeholder,
.ag-theme-material-dark input[class^=ag-][type=number]::placeholder,
.ag-theme-material-dark input[class^=ag-][type=tel]::placeholder,
.ag-theme-material-dark input[class^=ag-][type=date]::placeholder,
.ag-theme-material-dark input[class^=ag-][type=datetime-local]::placeholder,
.ag-theme-material-dark textarea[class^=ag-]::placeholder,
.ag-theme-material-auto-dark input[class^=ag-]:not([type])::placeholder,
.ag-theme-material-auto-dark input[class^=ag-][type=text]::placeholder,
.ag-theme-material-auto-dark input[class^=ag-][type=number]::placeholder,
.ag-theme-material-auto-dark input[class^=ag-][type=tel]::placeholder,
.ag-theme-material-auto-dark input[class^=ag-][type=date]::placeholder,
.ag-theme-material-auto-dark input[class^=ag-][type=datetime-local]::placeholder,
.ag-theme-material-auto-dark textarea[class^=ag-]::placeholder {
  color: var(--ag-disabled-foreground-color);
}
.ag-theme-material input[class^=ag-]:not([type]):disabled,
.ag-theme-material input[class^=ag-][type=text]:disabled,
.ag-theme-material input[class^=ag-][type=number]:disabled,
.ag-theme-material input[class^=ag-][type=tel]:disabled,
.ag-theme-material input[class^=ag-][type=date]:disabled,
.ag-theme-material input[class^=ag-][type=datetime-local]:disabled,
.ag-theme-material textarea[class^=ag-]:disabled,
.ag-theme-material-dark input[class^=ag-]:not([type]):disabled,
.ag-theme-material-dark input[class^=ag-][type=text]:disabled,
.ag-theme-material-dark input[class^=ag-][type=number]:disabled,
.ag-theme-material-dark input[class^=ag-][type=tel]:disabled,
.ag-theme-material-dark input[class^=ag-][type=date]:disabled,
.ag-theme-material-dark input[class^=ag-][type=datetime-local]:disabled,
.ag-theme-material-dark textarea[class^=ag-]:disabled,
.ag-theme-material-auto-dark input[class^=ag-]:not([type]):disabled,
.ag-theme-material-auto-dark input[class^=ag-][type=text]:disabled,
.ag-theme-material-auto-dark input[class^=ag-][type=number]:disabled,
.ag-theme-material-auto-dark input[class^=ag-][type=tel]:disabled,
.ag-theme-material-auto-dark input[class^=ag-][type=date]:disabled,
.ag-theme-material-auto-dark input[class^=ag-][type=datetime-local]:disabled,
.ag-theme-material-auto-dark textarea[class^=ag-]:disabled {
  border-bottom: 1px solid;
  border-bottom-color: var(--ag-border-color);
}
.ag-theme-material input[class^=ag-]:not([type]):invalid,
.ag-theme-material input[class^=ag-][type=text]:invalid,
.ag-theme-material input[class^=ag-][type=number]:invalid,
.ag-theme-material input[class^=ag-][type=tel]:invalid,
.ag-theme-material input[class^=ag-][type=date]:invalid,
.ag-theme-material input[class^=ag-][type=datetime-local]:invalid,
.ag-theme-material textarea[class^=ag-]:invalid,
.ag-theme-material-dark input[class^=ag-]:not([type]):invalid,
.ag-theme-material-dark input[class^=ag-][type=text]:invalid,
.ag-theme-material-dark input[class^=ag-][type=number]:invalid,
.ag-theme-material-dark input[class^=ag-][type=tel]:invalid,
.ag-theme-material-dark input[class^=ag-][type=date]:invalid,
.ag-theme-material-dark input[class^=ag-][type=datetime-local]:invalid,
.ag-theme-material-dark textarea[class^=ag-]:invalid,
.ag-theme-material-auto-dark input[class^=ag-]:not([type]):invalid,
.ag-theme-material-auto-dark input[class^=ag-][type=text]:invalid,
.ag-theme-material-auto-dark input[class^=ag-][type=number]:invalid,
.ag-theme-material-auto-dark input[class^=ag-][type=tel]:invalid,
.ag-theme-material-auto-dark input[class^=ag-][type=date]:invalid,
.ag-theme-material-auto-dark input[class^=ag-][type=datetime-local]:invalid,
.ag-theme-material-auto-dark textarea[class^=ag-]:invalid {
  border-width: 0;
  border-bottom: 1px solid;
  border-bottom-color: var(--ag-invalid-color);
  color: var(--ag-invalid-color);
}
.ag-theme-material .ag-standard-button,
.ag-theme-material-dark .ag-standard-button,
.ag-theme-material-auto-dark .ag-standard-button {
  -webkit-appearance: none;
     -moz-appearance: none;
          appearance: none;
  background-color: transparent;
  border: 0;
  color: var(--ag-material-primary-color);
  font-family: inherit;
  font-size: inherit;
  margin: 0;
  padding: 0;
  text-transform: uppercase;
}
.ag-theme-material .ag-standard-button:disabled,
.ag-theme-material-dark .ag-standard-button:disabled,
.ag-theme-material-auto-dark .ag-standard-button:disabled {
  color: var(--ag-disabled-foreground-color);
  background-color: var(--ag-input-disabled-background-color);
  border-color: var(--ag-input-disabled-border-color);
}
.ag-theme-material.ag-dnd-ghost,
.ag-theme-material-dark.ag-dnd-ghost,
.ag-theme-material-auto-dark.ag-dnd-ghost {
  font-size: calc(var(--ag-font-size) - 1px);
  font-weight: 600;
}
.ag-theme-material .ag-filter-toolpanel-header,
.ag-theme-material-dark .ag-filter-toolpanel-header,
.ag-theme-material-auto-dark .ag-filter-toolpanel-header {
  height: calc(var(--ag-grid-size) * 4);
}
.ag-theme-material .ag-filter-toolpanel-group-level-0-header,
.ag-theme-material-dark .ag-filter-toolpanel-group-level-0-header,
.ag-theme-material-auto-dark .ag-filter-toolpanel-group-level-0-header {
  height: calc(var(--ag-grid-size) * 7);
}
.ag-theme-material .ag-ltr .ag-filter-apply-panel-button, .ag-theme-material .ag-ltr .ag-advanced-filter-apply-button, .ag-theme-material .ag-ltr .ag-advanced-filter-builder-button, .ag-theme-material-dark .ag-ltr .ag-filter-apply-panel-button, .ag-theme-material-dark .ag-ltr .ag-advanced-filter-apply-button, .ag-theme-material-dark .ag-ltr .ag-advanced-filter-builder-button, .ag-theme-material-auto-dark .ag-ltr .ag-filter-apply-panel-button, .ag-theme-material-auto-dark .ag-ltr .ag-advanced-filter-apply-button, .ag-theme-material-auto-dark .ag-ltr .ag-advanced-filter-builder-button {
  margin-left: var(--ag-grid-size);
}

.ag-theme-material .ag-rtl .ag-filter-apply-panel-button, .ag-theme-material .ag-rtl .ag-advanced-filter-apply-button, .ag-theme-material .ag-rtl .ag-advanced-filter-builder-button, .ag-theme-material-dark .ag-rtl .ag-filter-apply-panel-button, .ag-theme-material-dark .ag-rtl .ag-advanced-filter-apply-button, .ag-theme-material-dark .ag-rtl .ag-advanced-filter-builder-button, .ag-theme-material-auto-dark .ag-rtl .ag-filter-apply-panel-button, .ag-theme-material-auto-dark .ag-rtl .ag-advanced-filter-apply-button, .ag-theme-material-auto-dark .ag-rtl .ag-advanced-filter-builder-button {
  margin-right: var(--ag-grid-size);
}

.ag-theme-material .ag-layout-auto-height .ag-center-cols-viewport,
.ag-theme-material .ag-layout-auto-height .ag-center-cols-container,
.ag-theme-material .ag-layout-print .ag-center-cols-viewport,
.ag-theme-material .ag-layout-print .ag-center-cols-container,
.ag-theme-material-dark .ag-layout-auto-height .ag-center-cols-viewport,
.ag-theme-material-dark .ag-layout-auto-height .ag-center-cols-container,
.ag-theme-material-dark .ag-layout-print .ag-center-cols-viewport,
.ag-theme-material-dark .ag-layout-print .ag-center-cols-container,
.ag-theme-material-auto-dark .ag-layout-auto-height .ag-center-cols-viewport,
.ag-theme-material-auto-dark .ag-layout-auto-height .ag-center-cols-container,
.ag-theme-material-auto-dark .ag-layout-print .ag-center-cols-viewport,
.ag-theme-material-auto-dark .ag-layout-print .ag-center-cols-container {
  min-height: 150px;
}
.ag-theme-material .ag-picker-field-wrapper:focus-within,
.ag-theme-material-dark .ag-picker-field-wrapper:focus-within,
.ag-theme-material-auto-dark .ag-picker-field-wrapper:focus-within {
  box-shadow: 0 0 0 1px var(--ag-material-primary-color);
}
.ag-theme-material .ag-rich-select-list,
.ag-theme-material-dark .ag-rich-select-list,
.ag-theme-material-auto-dark .ag-rich-select-list {
  box-shadow: rgba(0, 0, 0, 0.2) 0px 5px 5px -3px, rgba(0, 0, 0, 0.14) 0px 8px 10px 1px, rgba(0, 0, 0, 0.12) 0px 3px 14px 2px;
}
.ag-theme-material .ag-advanced-filter-builder-button-label,
.ag-theme-material-dark .ag-advanced-filter-builder-button-label,
.ag-theme-material-auto-dark .ag-advanced-filter-builder-button-label {
  text-transform: uppercase;
}
.ag-theme-material .ag-filter-active .ag-icon-filter,
.ag-theme-material-dark .ag-filter-active .ag-icon-filter,
.ag-theme-material-auto-dark .ag-filter-active .ag-icon-filter {
  color: var(--ag-material-accent-color);
}
.ag-theme-material .ag-list-item-hovered::after,
.ag-theme-material-dark .ag-list-item-hovered::after,
.ag-theme-material-auto-dark .ag-list-item-hovered::after {
  background-color: var(--ag-material-primary-color);
}
.ag-theme-material .ag-pill .ag-pill-button:hover,
.ag-theme-material-dark .ag-pill .ag-pill-button:hover,
.ag-theme-material-auto-dark .ag-pill .ag-pill-button:hover {
  color: var(--ag-material-primary-color);
}
.ag-theme-material .ag-header-highlight-before::after,
.ag-theme-material .ag-header-highlight-after::after,
.ag-theme-material-dark .ag-header-highlight-before::after,
.ag-theme-material-dark .ag-header-highlight-after::after,
.ag-theme-material-auto-dark .ag-header-highlight-before::after,
.ag-theme-material-auto-dark .ag-header-highlight-after::after {
  background-color: var(--ag-material-primary-color);
}
`,""]),x.A=s},7899:function(ne,x,p){var M=p(6758),A=p.n(M),F=p(935),D=p.n(F),f=p(62),v=p.n(f),u=new URL(p(7249),p.b),s=D()(A()),r=v()(u);s.push([ne.id,`.ag-theme-quartz,
.ag-theme-quartz-dark,
.ag-theme-quartz-auto-dark {
  --ag-active-color: #2196f3;
  --ag-background-color: #fff;
  --ag-foreground-color: #181d1f;
  --ag-border-color: color-mix(in srgb, transparent, var(--ag-foreground-color) 15%);
  --ag-secondary-border-color: var(--ag-border-color);
  --ag-header-background-color: color-mix(in srgb, var(--ag-background-color), var(--ag-foreground-color) 2%);
  --ag-tooltip-background-color: var(--ag-header-background-color);
  --ag-control-panel-background-color: var(--ag-header-background-color);
  --ag-subheader-background-color: transparent;
  --ag-invalid-color: #e02525;
  --ag-checkbox-unchecked-color: color-mix(in srgb, var(--ag-background-color), var(--ag-foreground-color) 30%);
  --ag-advanced-filter-join-pill-color: #f08e8d;
  --ag-advanced-filter-column-pill-color: #a6e194;
  --ag-advanced-filter-option-pill-color: #f3c08b;
  --ag-advanced-filter-value-pill-color: #85c0e4;
  --ag-header-column-resize-handle-color: var(--ag-secondary-border-color);
  --ag-icon-font-color: color-mix(in srgb, transparent, var(--ag-foreground-color) 90%);
  --ag-panel-background-color: color-mix(in srgb, var(--ag-background-color), var(--ag-foreground-color) 3%);
  --ag-panel-border-color: color-mix(in srgb, transparent, var(--ag-foreground-color) 20%);
  --ag-menu-background-color: color-mix(in srgb, var(--ag-background-color), var(--ag-foreground-color) 3%);
  --ag-menu-border-color: color-mix(in srgb, transparent, var(--ag-foreground-color) 20%);
  --ag-selected-row-background-color: color-mix(in srgb, transparent, var(--ag-active-color) 8%);
  --ag-row-hover-color: color-mix(in srgb, transparent, var(--ag-active-color) 12%);
  --ag-column-hover-color: color-mix(in srgb, transparent, var(--ag-foreground-color) 5%);
  --ag-input-focus-border-color: var(--ag-active-color);
  --ag-input-focus-box-shadow: 0 0 0 3px color-mix(in srgb, transparent, var(--ag-input-focus-border-color) 47%);
  --ag-range-selection-background-color: color-mix(in srgb, transparent, var(--ag-active-color) 20%);
  --ag-range-selection-background-color-2: color-mix(in srgb, transparent, var(--ag-active-color) 36%);
  --ag-range-selection-background-color-3: color-mix(in srgb, transparent, var(--ag-active-color) 49%);
  --ag-range-selection-background-color-4: color-mix(in srgb, transparent, var(--ag-active-color) 59%);
  --ag-checkbox-background-color: var(--ag-background-color);
  --ag-checkbox-checked-color: var(--ag-active-color);
  --ag-range-selection-border-color: var(--ag-active-color);
  --ag-secondary-foreground-color: var(--ag-foreground-color);
  --ag-input-border-color: var(--ag-border-color);
  --ag-input-border-color-invalid: var(--ag-invalid-color);
  --ag-disabled-foreground-color: color-mix(in srgb, transparent, var(--ag-foreground-color) 50%);
  --ag-chip-background-color: color-mix(in srgb, transparent, var(--ag-foreground-color) 7%);
  --ag-chip-border-color: color-mix(in srgb, var(--ag-header-background-color), var(--ag-foreground-color) 13%);
  --ag-input-disabled-border-color: var(--ag-border-color);
  --ag-input-disabled-background-color: color-mix(in srgb, var(--ag-background-color), var(--ag-foreground-color) 6%);
  --ag-modal-overlay-background-color: color-mix(in srgb, transparent, var(--ag-background-color) 66%);
  --ag-chart-menu-label-color: color-mix(in srgb, transparent, var(--ag-foreground-color) 80%);
  --ag-chart-menu-pill-select-button-color: color-mix(in srgb, transparent, var(--ag-foreground-color) 70%);
  --ag-borders: solid 1px;
  --ag-border-radius: 4px;
  --ag-wrapper-border-radius: 8px;
  --ag-borders-side-button: none;
  --ag-side-button-selected-background-color: transparent;
  --ag-header-column-resize-handle-display: block;
  --ag-header-column-resize-handle-width: 2px;
  --ag-header-column-resize-handle-height: 30%;
  --ag-grid-size: 8px;
  --ag-icon-size: 16px;
  --ag-header-height: calc(var(--ag-font-size) + var(--ag-grid-size) * 4.25);
  --ag-row-height: calc(var(--ag-font-size) + var(--ag-grid-size) * 3.5);
  --ag-list-item-height: calc(
      var(--ag-icon-size) + var(--ag-widget-vertical-spacing)
  );
  --ag-column-select-indent-size: var(--ag-icon-size);
  --ag-set-filter-indent-size: var(--ag-icon-size);
  --ag-filter-tool-panel-group-indent: var(--ag-grid-size);
  --ag-advanced-filter-builder-indent-size: calc(var(--ag-icon-size) + var(--ag-grid-size) * 2);
  --ag-cell-horizontal-padding: calc(var(--ag-grid-size) * 2);
  --ag-cell-widget-spacing: calc(var(--ag-grid-size) * 1.5);
  --ag-widget-container-vertical-padding: calc(var(--ag-grid-size) * 1.5);
  --ag-widget-container-horizontal-padding: calc(var(--ag-grid-size) * 1.5);
  --ag-widget-horizontal-spacing: calc(var(--ag-grid-size) * 1.5);
  --ag-widget-vertical-spacing: calc(var(--ag-grid-size) * 1);
  --ag-toggle-button-height: 18px;
  --ag-toggle-button-width: 28px;
  --ag-toggle-button-border-width: 2px;
  --ag-font-family: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu,
      Cantarell, "Helvetica Neue", sans-serif;
  --ag-font-size: 14px;
  --ag-icon-font-family: agGridQuartz;
  --ag-tab-min-width: 290px;
  --ag-chart-menu-panel-width: 260px;
  --ag-card-shadow: 0 1px 4px 1px rgba(186, 191, 199, 0.4);
  --ag-popup-shadow: 0 0 16px 0 rgba(0, 0, 0, 0.15);
  --ag-side-bar-panel-width: 250px;
}

.ag-theme-quartz-dark {
  --ag-background-color: rgb(31, 41, 54);
  --ag-foreground-color: #fff;
  --ag-border-color: rgba(255, 255, 255, 0.16);
  --ag-secondary-border-color: color-mix(in srgb, transparent, var(--ag-foreground-color) 10%);
  --ag-header-background-color: rgb(40, 49, 62);
  --ag-tooltip-background-color: rgb(33, 43, 56);
  --ag-control-panel-background-color: rgb(40, 49, 62);
  --ag-input-disabled-background-color: rgba(104,104,110,0.07059);
  --ag-card-shadow: 0 1px 20px 1px black;
  --ag-input-border-color: var(--ag-border-color);
  --ag-input-disabled-border-color: rgba(255, 255, 255, 0.07);
  --ag-checkbox-unchecked-color: color-mix(in srgb, var(--ag-background-color), var(--ag-foreground-color) 40%);
  --ag-row-hover-color: color-mix(in srgb, transparent, var(--ag-active-color) 20%);
  --ag-selected-row-background-color: var(--ag-row-hover-color);
  --ag-panel-background-color: color-mix(in srgb, var(--ag-background-color), var(--ag-foreground-color) 10%);
  --ag-panel-border-color: color-mix(in srgb, transparent, var(--ag-foreground-color) 10%);
  --ag-menu-background-color: color-mix(in srgb, var(--ag-background-color), var(--ag-foreground-color) 10%);
  --ag-menu-border-color: color-mix(in srgb, transparent, var(--ag-foreground-color) 10%);
  --ag-advanced-filter-join-pill-color: #7a3a37;
  --ag-advanced-filter-column-pill-color: #355f2d;
  --ag-advanced-filter-option-pill-color: #5a3168;
  --ag-advanced-filter-value-pill-color: #374c86;
  --ag-popup-shadow: 0 0px 20px rgba(0, 0, 0, 0.3);
  --ag-row-loading-skeleton-effect-color: rgba(202, 203, 204, 0.4);
  --csstools-color-scheme--dark: initial;
  color-scheme: dark;
}

@media (prefers-color-scheme: dark) {
  .ag-theme-quartz-auto-dark {
    --ag-background-color: rgb(31, 41, 54);
    --ag-foreground-color: #fff;
    --ag-border-color: rgba(255, 255, 255, 0.16);
    --ag-secondary-border-color: color-mix(in srgb, transparent, var(--ag-foreground-color) 10%);
    --ag-header-background-color: rgb(40, 49, 62);
    --ag-tooltip-background-color: rgb(33, 43, 56);
    --ag-control-panel-background-color: rgb(40, 49, 62);
    --ag-input-disabled-background-color: rgba(104,104,110,0.07059);
    --ag-card-shadow: 0 1px 20px 1px black;
    --ag-input-border-color: var(--ag-border-color);
    --ag-input-disabled-border-color: rgba(255, 255, 255, 0.07);
    --ag-checkbox-unchecked-color: color-mix(in srgb, var(--ag-background-color), var(--ag-foreground-color) 40%);
    --ag-row-hover-color: color-mix(in srgb, transparent, var(--ag-active-color) 20%);
    --ag-selected-row-background-color: var(--ag-row-hover-color);
    --ag-panel-background-color: color-mix(in srgb, var(--ag-background-color), var(--ag-foreground-color) 10%);
    --ag-panel-border-color: color-mix(in srgb, transparent, var(--ag-foreground-color) 10%);
    --ag-menu-background-color: color-mix(in srgb, var(--ag-background-color), var(--ag-foreground-color) 10%);
    --ag-menu-border-color: color-mix(in srgb, transparent, var(--ag-foreground-color) 10%);
    --ag-advanced-filter-join-pill-color: #7a3a37;
    --ag-advanced-filter-column-pill-color: #355f2d;
    --ag-advanced-filter-option-pill-color: #5a3168;
    --ag-advanced-filter-value-pill-color: #374c86;
    --ag-popup-shadow: 0 0px 20px rgba(0, 0, 0, 0.3);
    --ag-row-loading-skeleton-effect-color: rgba(202, 203, 204, 0.4);
    --csstools-color-scheme--dark: initial;
    color-scheme: dark;
  }
}
.ag-theme-quartz .ag-filter-toolpanel-header,
.ag-theme-quartz .ag-filter-toolpanel-search,
.ag-theme-quartz .ag-status-bar,
.ag-theme-quartz .ag-header-row,
.ag-theme-quartz .ag-panel-title-bar-title,
.ag-theme-quartz .ag-multi-filter-group-title-bar,
.ag-theme-quartz-dark .ag-filter-toolpanel-header,
.ag-theme-quartz-dark .ag-filter-toolpanel-search,
.ag-theme-quartz-dark .ag-status-bar,
.ag-theme-quartz-dark .ag-header-row,
.ag-theme-quartz-dark .ag-panel-title-bar-title,
.ag-theme-quartz-dark .ag-multi-filter-group-title-bar,
.ag-theme-quartz-auto-dark .ag-filter-toolpanel-header,
.ag-theme-quartz-auto-dark .ag-filter-toolpanel-search,
.ag-theme-quartz-auto-dark .ag-status-bar,
.ag-theme-quartz-auto-dark .ag-header-row,
.ag-theme-quartz-auto-dark .ag-panel-title-bar-title,
.ag-theme-quartz-auto-dark .ag-multi-filter-group-title-bar {
  font-weight: 500;
  color: var(--ag-header-foreground-color);
}
.ag-theme-quartz input[class^=ag-]:not([type]),
.ag-theme-quartz input[class^=ag-][type=text],
.ag-theme-quartz input[class^=ag-][type=number],
.ag-theme-quartz input[class^=ag-][type=tel],
.ag-theme-quartz input[class^=ag-][type=date],
.ag-theme-quartz input[class^=ag-][type=datetime-local],
.ag-theme-quartz textarea[class^=ag-],
.ag-theme-quartz-dark input[class^=ag-]:not([type]),
.ag-theme-quartz-dark input[class^=ag-][type=text],
.ag-theme-quartz-dark input[class^=ag-][type=number],
.ag-theme-quartz-dark input[class^=ag-][type=tel],
.ag-theme-quartz-dark input[class^=ag-][type=date],
.ag-theme-quartz-dark input[class^=ag-][type=datetime-local],
.ag-theme-quartz-dark textarea[class^=ag-],
.ag-theme-quartz-auto-dark input[class^=ag-]:not([type]),
.ag-theme-quartz-auto-dark input[class^=ag-][type=text],
.ag-theme-quartz-auto-dark input[class^=ag-][type=number],
.ag-theme-quartz-auto-dark input[class^=ag-][type=tel],
.ag-theme-quartz-auto-dark input[class^=ag-][type=date],
.ag-theme-quartz-auto-dark input[class^=ag-][type=datetime-local],
.ag-theme-quartz-auto-dark textarea[class^=ag-] {
  min-height: calc(var(--ag-grid-size) * 4);
  border-radius: var(--ag-border-radius);
}
.ag-theme-quartz .ag-ltr input[class^=ag-]:not([type]), .ag-theme-quartz .ag-ltr input[class^=ag-][type=text], .ag-theme-quartz .ag-ltr input[class^=ag-][type=number], .ag-theme-quartz .ag-ltr input[class^=ag-][type=tel], .ag-theme-quartz .ag-ltr input[class^=ag-][type=date], .ag-theme-quartz .ag-ltr input[class^=ag-][type=datetime-local], .ag-theme-quartz .ag-ltr textarea[class^=ag-], .ag-theme-quartz-dark .ag-ltr input[class^=ag-]:not([type]), .ag-theme-quartz-dark .ag-ltr input[class^=ag-][type=text], .ag-theme-quartz-dark .ag-ltr input[class^=ag-][type=number], .ag-theme-quartz-dark .ag-ltr input[class^=ag-][type=tel], .ag-theme-quartz-dark .ag-ltr input[class^=ag-][type=date], .ag-theme-quartz-dark .ag-ltr input[class^=ag-][type=datetime-local], .ag-theme-quartz-dark .ag-ltr textarea[class^=ag-], .ag-theme-quartz-auto-dark .ag-ltr input[class^=ag-]:not([type]), .ag-theme-quartz-auto-dark .ag-ltr input[class^=ag-][type=text], .ag-theme-quartz-auto-dark .ag-ltr input[class^=ag-][type=number], .ag-theme-quartz-auto-dark .ag-ltr input[class^=ag-][type=tel], .ag-theme-quartz-auto-dark .ag-ltr input[class^=ag-][type=date], .ag-theme-quartz-auto-dark .ag-ltr input[class^=ag-][type=datetime-local], .ag-theme-quartz-auto-dark .ag-ltr textarea[class^=ag-] {
  padding-left: var(--ag-grid-size);
}

.ag-theme-quartz .ag-rtl input[class^=ag-]:not([type]), .ag-theme-quartz .ag-rtl input[class^=ag-][type=text], .ag-theme-quartz .ag-rtl input[class^=ag-][type=number], .ag-theme-quartz .ag-rtl input[class^=ag-][type=tel], .ag-theme-quartz .ag-rtl input[class^=ag-][type=date], .ag-theme-quartz .ag-rtl input[class^=ag-][type=datetime-local], .ag-theme-quartz .ag-rtl textarea[class^=ag-], .ag-theme-quartz-dark .ag-rtl input[class^=ag-]:not([type]), .ag-theme-quartz-dark .ag-rtl input[class^=ag-][type=text], .ag-theme-quartz-dark .ag-rtl input[class^=ag-][type=number], .ag-theme-quartz-dark .ag-rtl input[class^=ag-][type=tel], .ag-theme-quartz-dark .ag-rtl input[class^=ag-][type=date], .ag-theme-quartz-dark .ag-rtl input[class^=ag-][type=datetime-local], .ag-theme-quartz-dark .ag-rtl textarea[class^=ag-], .ag-theme-quartz-auto-dark .ag-rtl input[class^=ag-]:not([type]), .ag-theme-quartz-auto-dark .ag-rtl input[class^=ag-][type=text], .ag-theme-quartz-auto-dark .ag-rtl input[class^=ag-][type=number], .ag-theme-quartz-auto-dark .ag-rtl input[class^=ag-][type=tel], .ag-theme-quartz-auto-dark .ag-rtl input[class^=ag-][type=date], .ag-theme-quartz-auto-dark .ag-rtl input[class^=ag-][type=datetime-local], .ag-theme-quartz-auto-dark .ag-rtl textarea[class^=ag-] {
  padding-right: var(--ag-grid-size);
}

.ag-theme-quartz .ag-picker-field-wrapper,
.ag-theme-quartz-dark .ag-picker-field-wrapper,
.ag-theme-quartz-auto-dark .ag-picker-field-wrapper {
  min-height: calc(var(--ag-grid-size) * 4);
}
.ag-theme-quartz .ag-tab,
.ag-theme-quartz-dark .ag-tab,
.ag-theme-quartz-auto-dark .ag-tab {
  padding: var(--ag-grid-size);
  border-left: var(--ag-borders) transparent;
  border-right: var(--ag-borders) transparent;
  flex: 1 1 auto;
}
.ag-theme-quartz .ag-tab-selected,
.ag-theme-quartz-dark .ag-tab-selected,
.ag-theme-quartz-auto-dark .ag-tab-selected {
  background-color: var(--ag-background-color);
}
.ag-theme-quartz .ag-ltr .ag-tab-selected:not(:first-of-type), .ag-theme-quartz-dark .ag-ltr .ag-tab-selected:not(:first-of-type), .ag-theme-quartz-auto-dark .ag-ltr .ag-tab-selected:not(:first-of-type) {
  border-left-color: var(--ag-border-color);
}

.ag-theme-quartz .ag-rtl .ag-tab-selected:not(:first-of-type), .ag-theme-quartz-dark .ag-rtl .ag-tab-selected:not(:first-of-type), .ag-theme-quartz-auto-dark .ag-rtl .ag-tab-selected:not(:first-of-type) {
  border-right-color: var(--ag-border-color);
}

.ag-theme-quartz .ag-ltr .ag-tab-selected:not(:last-of-type), .ag-theme-quartz-dark .ag-ltr .ag-tab-selected:not(:last-of-type), .ag-theme-quartz-auto-dark .ag-ltr .ag-tab-selected:not(:last-of-type) {
  border-right-color: var(--ag-border-color);
}

.ag-theme-quartz .ag-rtl .ag-tab-selected:not(:last-of-type), .ag-theme-quartz-dark .ag-rtl .ag-tab-selected:not(:last-of-type), .ag-theme-quartz-auto-dark .ag-rtl .ag-tab-selected:not(:last-of-type) {
  border-left-color: var(--ag-border-color);
}

.ag-theme-quartz .ag-tab:not(.ag-tab-selected),
.ag-theme-quartz-dark .ag-tab:not(.ag-tab-selected),
.ag-theme-quartz-auto-dark .ag-tab:not(.ag-tab-selected) {
  opacity: 0.7;
}
.ag-theme-quartz .ag-tab:not(.ag-tab-selected):hover,
.ag-theme-quartz-dark .ag-tab:not(.ag-tab-selected):hover,
.ag-theme-quartz-auto-dark .ag-tab:not(.ag-tab-selected):hover {
  opacity: 1;
}
.ag-theme-quartz .ag-menu,
.ag-theme-quartz-dark .ag-menu,
.ag-theme-quartz-auto-dark .ag-menu {
  color: color-mix(in srgb, transparent, var(--ag-foreground-color) 95%);
}
.ag-theme-quartz .ag-panel-content-wrapper .ag-column-select,
.ag-theme-quartz-dark .ag-panel-content-wrapper .ag-column-select,
.ag-theme-quartz-auto-dark .ag-panel-content-wrapper .ag-column-select {
  background-color: var(--ag-control-panel-background-color);
  color: color-mix(in srgb, transparent, var(--ag-foreground-color) 95%);
}
.ag-theme-quartz .ag-menu-header,
.ag-theme-quartz-dark .ag-menu-header,
.ag-theme-quartz-auto-dark .ag-menu-header {
  background-color: var(--ag-control-panel-background-color);
}
.ag-theme-quartz .ag-menu-option,
.ag-theme-quartz-dark .ag-menu-option,
.ag-theme-quartz-auto-dark .ag-menu-option {
  font-weight: 500;
  cursor: pointer;
}
.ag-theme-quartz .ag-ltr .ag-menu-option-popup-pointer .ag-icon, .ag-theme-quartz-dark .ag-ltr .ag-menu-option-popup-pointer .ag-icon, .ag-theme-quartz-auto-dark .ag-ltr .ag-menu-option-popup-pointer .ag-icon {
  text-align: right;
}

.ag-theme-quartz .ag-rtl .ag-menu-option-popup-pointer .ag-icon, .ag-theme-quartz-dark .ag-rtl .ag-menu-option-popup-pointer .ag-icon, .ag-theme-quartz-auto-dark .ag-rtl .ag-menu-option-popup-pointer .ag-icon {
  text-align: left;
}

.ag-theme-quartz .ag-tabs-header,
.ag-theme-quartz-dark .ag-tabs-header,
.ag-theme-quartz-auto-dark .ag-tabs-header {
  border-bottom: var(--ag-borders) var(--ag-border-color);
  display: flex;
  background-color: color-mix(in srgb, transparent, var(--ag-foreground-color) 5%);
}
.ag-theme-quartz .ag-side-bar,
.ag-theme-quartz-dark .ag-side-bar,
.ag-theme-quartz-auto-dark .ag-side-bar {
  background-color: var(--ag-control-panel-background-color);
  min-width: calc(var(--ag-icon-size) + var(--ag-grid-size) * 2);
}
.ag-theme-quartz .ag-side-buttons,
.ag-theme-quartz-dark .ag-side-buttons,
.ag-theme-quartz-auto-dark .ag-side-buttons {
  padding: 0;
  align-self: stretch;
  width: calc(var(--ag-icon-size) + var(--ag-grid-size) * 2);
  background: var(--ag-control-panel-background-color);
}
.ag-theme-quartz .ag-side-button,
.ag-theme-quartz-dark .ag-side-button,
.ag-theme-quartz-auto-dark .ag-side-button {
  border-top: var(--ag-borders) transparent;
  border-bottom: var(--ag-borders) transparent;
}
@media (-webkit-max-device-pixel-ratio: 1.5), (max-resolution: 1.5x) {
  .ag-theme-quartz .ag-side-button-label,
  .ag-theme-quartz-dark .ag-side-button-label,
  .ag-theme-quartz-auto-dark .ag-side-button-label {
    font-family: "Segoe UI", var(--ag-font-family);
    transform: rotate(0.05deg);
  }
}
.ag-theme-quartz .ag-side-button.ag-selected,
.ag-theme-quartz-dark .ag-side-button.ag-selected,
.ag-theme-quartz-auto-dark .ag-side-button.ag-selected {
  border-bottom-color: var(--ag-border-color);
  background-color: var(--ag-background-color);
}
.ag-theme-quartz .ag-side-button.ag-selected:not(:first-of-type),
.ag-theme-quartz-dark .ag-side-button.ag-selected:not(:first-of-type),
.ag-theme-quartz-auto-dark .ag-side-button.ag-selected:not(:first-of-type) {
  border-top-color: var(--ag-border-color);
}
.ag-theme-quartz .ag-column-panel-column-select,
.ag-theme-quartz-dark .ag-column-panel-column-select,
.ag-theme-quartz-auto-dark .ag-column-panel-column-select {
  border-top: none;
  border-bottom: 1px solid var(--ag-secondary-border-color);
}
.ag-theme-quartz .ag-filter-toolpanel-search,
.ag-theme-quartz-dark .ag-filter-toolpanel-search,
.ag-theme-quartz-auto-dark .ag-filter-toolpanel-search {
  height: auto;
  height: initial;
  margin-top: var(--ag-widget-container-vertical-padding);
}
.ag-theme-quartz .ag-filter-toolpanel-search-input,
.ag-theme-quartz-dark .ag-filter-toolpanel-search-input,
.ag-theme-quartz-auto-dark .ag-filter-toolpanel-search-input {
  margin: 0;
}
.ag-theme-quartz .ag-filter-apply-panel,
.ag-theme-quartz-dark .ag-filter-apply-panel,
.ag-theme-quartz-auto-dark .ag-filter-apply-panel {
  border: none;
  padding-top: var(--ag-widget-vertical-spacing);
}
.ag-theme-quartz .ag-chart-tabbed-menu-body,
.ag-theme-quartz-dark .ag-chart-tabbed-menu-body,
.ag-theme-quartz-auto-dark .ag-chart-tabbed-menu-body {
  position: relative;
}
.ag-theme-quartz .ag-chart-tabbed-menu-body::after,
.ag-theme-quartz-dark .ag-chart-tabbed-menu-body::after,
.ag-theme-quartz-auto-dark .ag-chart-tabbed-menu-body::after {
  content: "";
  position: absolute;
  display: block;
  top: 0;
  left: 0;
  right: 0;
  height: 16px;
  background: linear-gradient(var(--ag-control-panel-background-color), transparent);
}
.ag-theme-quartz .ag-charts-settings-group-title-bar,
.ag-theme-quartz .ag-charts-data-group-title-bar,
.ag-theme-quartz .ag-charts-format-top-level-group-title-bar,
.ag-theme-quartz .ag-charts-advanced-settings-top-level-group-title-bar,
.ag-theme-quartz .ag-charts-settings-group-container,
.ag-theme-quartz-dark .ag-charts-settings-group-title-bar,
.ag-theme-quartz-dark .ag-charts-data-group-title-bar,
.ag-theme-quartz-dark .ag-charts-format-top-level-group-title-bar,
.ag-theme-quartz-dark .ag-charts-advanced-settings-top-level-group-title-bar,
.ag-theme-quartz-dark .ag-charts-settings-group-container,
.ag-theme-quartz-auto-dark .ag-charts-settings-group-title-bar,
.ag-theme-quartz-auto-dark .ag-charts-data-group-title-bar,
.ag-theme-quartz-auto-dark .ag-charts-format-top-level-group-title-bar,
.ag-theme-quartz-auto-dark .ag-charts-advanced-settings-top-level-group-title-bar,
.ag-theme-quartz-auto-dark .ag-charts-settings-group-container {
  border-top: none;
  font-weight: 500;
}
.ag-theme-quartz .ag-chart-mini-thumbnail,
.ag-theme-quartz-dark .ag-chart-mini-thumbnail,
.ag-theme-quartz-auto-dark .ag-chart-mini-thumbnail {
  background-color: var(--ag-background-color);
  margin-top: 0;
  margin-bottom: 0;
}
.ag-theme-quartz .ag-chart-settings-nav-bar,
.ag-theme-quartz-dark .ag-chart-settings-nav-bar,
.ag-theme-quartz-auto-dark .ag-chart-settings-nav-bar {
  border-top: var(--ag-borders-secondary) var(--ag-secondary-border-color);
}
.ag-theme-quartz .ag-charts-format-sub-level-group-title-bar,
.ag-theme-quartz-dark .ag-charts-format-sub-level-group-title-bar,
.ag-theme-quartz-auto-dark .ag-charts-format-sub-level-group-title-bar {
  background: none;
  font-weight: 500;
}
.ag-theme-quartz .ag-chart-data-section .ag-label:not(.ag-group-title-bar),
.ag-theme-quartz .ag-chart-format-section .ag-label:not(.ag-group-title-bar),
.ag-theme-quartz-dark .ag-chart-data-section .ag-label:not(.ag-group-title-bar),
.ag-theme-quartz-dark .ag-chart-format-section .ag-label:not(.ag-group-title-bar),
.ag-theme-quartz-auto-dark .ag-chart-data-section .ag-label:not(.ag-group-title-bar),
.ag-theme-quartz-auto-dark .ag-chart-format-section .ag-label:not(.ag-group-title-bar) {
  color: var(--ag-chart-menu-label-color);
}
.ag-theme-quartz .ag-chart-data-section .ag-label-align-top .ag-label,
.ag-theme-quartz .ag-chart-format-section .ag-label-align-top .ag-label,
.ag-theme-quartz-dark .ag-chart-data-section .ag-label-align-top .ag-label,
.ag-theme-quartz-dark .ag-chart-format-section .ag-label-align-top .ag-label,
.ag-theme-quartz-auto-dark .ag-chart-data-section .ag-label-align-top .ag-label,
.ag-theme-quartz-auto-dark .ag-chart-format-section .ag-label-align-top .ag-label {
  margin-top: calc(var(--ag-widget-vertical-spacing) * 0.5);
  margin-bottom: var(--ag-widget-vertical-spacing);
}
.ag-theme-quartz .ag-chart-data-section .ag-slider.ag-label-align-top .ag-label,
.ag-theme-quartz .ag-chart-format-section .ag-slider.ag-label-align-top .ag-label,
.ag-theme-quartz-dark .ag-chart-data-section .ag-slider.ag-label-align-top .ag-label,
.ag-theme-quartz-dark .ag-chart-format-section .ag-slider.ag-label-align-top .ag-label,
.ag-theme-quartz-auto-dark .ag-chart-data-section .ag-slider.ag-label-align-top .ag-label,
.ag-theme-quartz-auto-dark .ag-chart-format-section .ag-slider.ag-label-align-top .ag-label {
  margin-bottom: 0;
}
.ag-theme-quartz .ag-chart-data-section label,
.ag-theme-quartz .ag-chart-format-section label,
.ag-theme-quartz-dark .ag-chart-data-section label,
.ag-theme-quartz-dark .ag-chart-format-section label,
.ag-theme-quartz-auto-dark .ag-chart-data-section label,
.ag-theme-quartz-auto-dark .ag-chart-format-section label {
  display: inline-block;
}
.ag-theme-quartz .ag-chart-format-wrapper,
.ag-theme-quartz .ag-chart-data-wrapper,
.ag-theme-quartz .ag-charts-format-top-level-group,
.ag-theme-quartz .ag-charts-format-top-level-group-title-bar,
.ag-theme-quartz .ag-charts-format-top-level-group .ag-charts-format-top-level-group-container,
.ag-theme-quartz .ag-charts-format-top-level-group-item,
.ag-theme-quartz .ag-charts-format-sub-level-group,
.ag-theme-quartz .ag-charts-format-sub-level-group-title-bar,
.ag-theme-quartz .ag-charts-format-sub-level-group-container,
.ag-theme-quartz .ag-charts-format-sub-level-group-item:last-child,
.ag-theme-quartz .ag-charts-format-sub-level-group-container > *,
.ag-theme-quartz .ag-charts-data-group-title-bar,
.ag-theme-quartz .ag-charts-data-group-container,
.ag-theme-quartz .ag-charts-settings-group-title-bar,
.ag-theme-quartz .ag-charts-settings-group-container,
.ag-theme-quartz-dark .ag-chart-format-wrapper,
.ag-theme-quartz-dark .ag-chart-data-wrapper,
.ag-theme-quartz-dark .ag-charts-format-top-level-group,
.ag-theme-quartz-dark .ag-charts-format-top-level-group-title-bar,
.ag-theme-quartz-dark .ag-charts-format-top-level-group .ag-charts-format-top-level-group-container,
.ag-theme-quartz-dark .ag-charts-format-top-level-group-item,
.ag-theme-quartz-dark .ag-charts-format-sub-level-group,
.ag-theme-quartz-dark .ag-charts-format-sub-level-group-title-bar,
.ag-theme-quartz-dark .ag-charts-format-sub-level-group-container,
.ag-theme-quartz-dark .ag-charts-format-sub-level-group-item:last-child,
.ag-theme-quartz-dark .ag-charts-format-sub-level-group-container > *,
.ag-theme-quartz-dark .ag-charts-data-group-title-bar,
.ag-theme-quartz-dark .ag-charts-data-group-container,
.ag-theme-quartz-dark .ag-charts-settings-group-title-bar,
.ag-theme-quartz-dark .ag-charts-settings-group-container,
.ag-theme-quartz-auto-dark .ag-chart-format-wrapper,
.ag-theme-quartz-auto-dark .ag-chart-data-wrapper,
.ag-theme-quartz-auto-dark .ag-charts-format-top-level-group,
.ag-theme-quartz-auto-dark .ag-charts-format-top-level-group-title-bar,
.ag-theme-quartz-auto-dark .ag-charts-format-top-level-group .ag-charts-format-top-level-group-container,
.ag-theme-quartz-auto-dark .ag-charts-format-top-level-group-item,
.ag-theme-quartz-auto-dark .ag-charts-format-sub-level-group,
.ag-theme-quartz-auto-dark .ag-charts-format-sub-level-group-title-bar,
.ag-theme-quartz-auto-dark .ag-charts-format-sub-level-group-container,
.ag-theme-quartz-auto-dark .ag-charts-format-sub-level-group-item:last-child,
.ag-theme-quartz-auto-dark .ag-charts-format-sub-level-group-container > *,
.ag-theme-quartz-auto-dark .ag-charts-data-group-title-bar,
.ag-theme-quartz-auto-dark .ag-charts-data-group-container,
.ag-theme-quartz-auto-dark .ag-charts-settings-group-title-bar,
.ag-theme-quartz-auto-dark .ag-charts-settings-group-container {
  padding: 0;
  margin: 0;
}
.ag-theme-quartz .ag-charts-format-top-level-group,
.ag-theme-quartz .ag-charts-data-group,
.ag-theme-quartz-dark .ag-charts-format-top-level-group,
.ag-theme-quartz-dark .ag-charts-data-group,
.ag-theme-quartz-auto-dark .ag-charts-format-top-level-group,
.ag-theme-quartz-auto-dark .ag-charts-data-group {
  border-top: var(--ag-borders-secondary) var(--ag-secondary-border-color);
}
.ag-theme-quartz .ag-charts-format-top-level-group-title-bar,
.ag-theme-quartz .ag-charts-data-group-title-bar,
.ag-theme-quartz .ag-charts-settings-group-title-bar,
.ag-theme-quartz-dark .ag-charts-format-top-level-group-title-bar,
.ag-theme-quartz-dark .ag-charts-data-group-title-bar,
.ag-theme-quartz-dark .ag-charts-settings-group-title-bar,
.ag-theme-quartz-auto-dark .ag-charts-format-top-level-group-title-bar,
.ag-theme-quartz-auto-dark .ag-charts-data-group-title-bar,
.ag-theme-quartz-auto-dark .ag-charts-settings-group-title-bar {
  padding: var(--ag-widget-container-vertical-padding) var(--ag-widget-container-horizontal-padding);
}
.ag-theme-quartz .ag-charts-format-top-level-group .ag-charts-format-top-level-group-container,
.ag-theme-quartz .ag-charts-data-group .ag-charts-data-group-container,
.ag-theme-quartz .ag-charts-settings-group .ag-charts-settings-group-container,
.ag-theme-quartz-dark .ag-charts-format-top-level-group .ag-charts-format-top-level-group-container,
.ag-theme-quartz-dark .ag-charts-data-group .ag-charts-data-group-container,
.ag-theme-quartz-dark .ag-charts-settings-group .ag-charts-settings-group-container,
.ag-theme-quartz-auto-dark .ag-charts-format-top-level-group .ag-charts-format-top-level-group-container,
.ag-theme-quartz-auto-dark .ag-charts-data-group .ag-charts-data-group-container,
.ag-theme-quartz-auto-dark .ag-charts-settings-group .ag-charts-settings-group-container {
  padding: 0 var(--ag-widget-container-horizontal-padding);
}
.ag-theme-quartz .ag-charts-format-sub-level-group-title-bar,
.ag-theme-quartz-dark .ag-charts-format-sub-level-group-title-bar,
.ag-theme-quartz-auto-dark .ag-charts-format-sub-level-group-title-bar {
  padding: var(--ag-widget-vertical-spacing) 0;
}
.ag-theme-quartz .ag-charts-format-sub-level-group-container,
.ag-theme-quartz-dark .ag-charts-format-sub-level-group-container,
.ag-theme-quartz-auto-dark .ag-charts-format-sub-level-group-container {
  padding-top: var(--ag-widget-vertical-spacing);
  padding-bottom: var(--ag-widget-container-vertical-padding);
}
.ag-theme-quartz .ag-charts-format-top-level-group-container > *,
.ag-theme-quartz .ag-charts-format-sub-level-group-container > *,
.ag-theme-quartz-dark .ag-charts-format-top-level-group-container > *,
.ag-theme-quartz-dark .ag-charts-format-sub-level-group-container > *,
.ag-theme-quartz-auto-dark .ag-charts-format-top-level-group-container > *,
.ag-theme-quartz-auto-dark .ag-charts-format-sub-level-group-container > * {
  margin-bottom: var(--ag-widget-vertical-spacing);
}
.ag-theme-quartz .ag-charts-data-group-item,
.ag-theme-quartz-dark .ag-charts-data-group-item,
.ag-theme-quartz-auto-dark .ag-charts-data-group-item {
  padding-bottom: var(--ag-widget-container-vertical-padding);
}
.ag-theme-quartz .ag-chart-settings-mini-wrapper,
.ag-theme-quartz-dark .ag-chart-settings-mini-wrapper,
.ag-theme-quartz-auto-dark .ag-chart-settings-mini-wrapper {
  padding-bottom: var(--ag-widget-container-vertical-padding);
}
.ag-theme-quartz .ag-chart-advanced-settings-section,
.ag-theme-quartz-dark .ag-chart-advanced-settings-section,
.ag-theme-quartz-auto-dark .ag-chart-advanced-settings-section {
  padding-top: var(--ag-widget-container-vertical-padding);
  padding-bottom: var(--ag-widget-container-vertical-padding);
}
.ag-theme-quartz .ag-charts-advanced-settings-top-level-group .ag-charts-advanced-settings-top-level-group-title-bar,
.ag-theme-quartz .ag-charts-advanced-settings-top-level-group .ag-charts-advanced-settings-top-level-group-container,
.ag-theme-quartz-dark .ag-charts-advanced-settings-top-level-group .ag-charts-advanced-settings-top-level-group-title-bar,
.ag-theme-quartz-dark .ag-charts-advanced-settings-top-level-group .ag-charts-advanced-settings-top-level-group-container,
.ag-theme-quartz-auto-dark .ag-charts-advanced-settings-top-level-group .ag-charts-advanced-settings-top-level-group-title-bar,
.ag-theme-quartz-auto-dark .ag-charts-advanced-settings-top-level-group .ag-charts-advanced-settings-top-level-group-container {
  padding: 0 var(--ag-widget-container-horizontal-padding);
}
.ag-theme-quartz .ag-charts-advanced-settings-top-level-group-container,
.ag-theme-quartz-dark .ag-charts-advanced-settings-top-level-group-container,
.ag-theme-quartz-auto-dark .ag-charts-advanced-settings-top-level-group-container {
  margin: 0;
}
.ag-theme-quartz .ag-charts-advanced-settings-top-level-group-item,
.ag-theme-quartz-dark .ag-charts-advanced-settings-top-level-group-item,
.ag-theme-quartz-auto-dark .ag-charts-advanced-settings-top-level-group-item {
  margin-top: calc(var(--ag-widget-vertical-spacing) * 2);
  margin-bottom: 0;
}
.ag-theme-quartz .ag-ltr .ag-group-title-bar-icon, .ag-theme-quartz-dark .ag-ltr .ag-group-title-bar-icon, .ag-theme-quartz-auto-dark .ag-ltr .ag-group-title-bar-icon {
  margin-right: var(--ag-grid-size);
}

.ag-theme-quartz .ag-rtl .ag-group-title-bar-icon, .ag-theme-quartz-dark .ag-rtl .ag-group-title-bar-icon, .ag-theme-quartz-auto-dark .ag-rtl .ag-group-title-bar-icon {
  margin-left: var(--ag-grid-size);
}

.ag-theme-quartz .ag-spectrum-color,
.ag-theme-quartz .ag-spectrum-fill,
.ag-theme-quartz-dark .ag-spectrum-color,
.ag-theme-quartz-dark .ag-spectrum-fill,
.ag-theme-quartz-auto-dark .ag-spectrum-color,
.ag-theme-quartz-auto-dark .ag-spectrum-fill {
  border-radius: var(--ag-border-radius);
}
.ag-theme-quartz .ag-spectrum-dragger,
.ag-theme-quartz-dark .ag-spectrum-dragger,
.ag-theme-quartz-auto-dark .ag-spectrum-dragger {
  border-radius: 18px;
  height: 18px;
  width: 18px;
  border: 3px solid white;
}
.ag-theme-quartz .ag-spectrum-tools,
.ag-theme-quartz-dark .ag-spectrum-tools,
.ag-theme-quartz-auto-dark .ag-spectrum-tools {
  padding-left: 0;
  padding-right: 0;
  padding-bottom: 0;
}
.ag-theme-quartz .ag-spectrum-tool,
.ag-theme-quartz-dark .ag-spectrum-tool,
.ag-theme-quartz-auto-dark .ag-spectrum-tool {
  height: 12px;
}
.ag-theme-quartz .ag-spectrum-hue-background,
.ag-theme-quartz .ag-spectrum-alpha-background,
.ag-theme-quartz-dark .ag-spectrum-hue-background,
.ag-theme-quartz-dark .ag-spectrum-alpha-background,
.ag-theme-quartz-auto-dark .ag-spectrum-hue-background,
.ag-theme-quartz-auto-dark .ag-spectrum-alpha-background {
  border-radius: 12px;
}
.ag-theme-quartz .ag-spectrum-slider,
.ag-theme-quartz-dark .ag-spectrum-slider,
.ag-theme-quartz-auto-dark .ag-spectrum-slider {
  margin-top: -15px;
  width: 18px;
  height: 18px;
  border-radius: 18px;
  border: 3px solid rgb(248, 248, 248);
}
.ag-theme-quartz .ag-recent-colors,
.ag-theme-quartz-dark .ag-recent-colors,
.ag-theme-quartz-auto-dark .ag-recent-colors {
  margin-left: var(--ag-grid-size);
  margin-right: var(--ag-grid-size);
  margin-bottom: 2px;
}
.ag-theme-quartz .ag-color-input-color,
.ag-theme-quartz .ag-color-picker-color,
.ag-theme-quartz .ag-recent-color,
.ag-theme-quartz-dark .ag-color-input-color,
.ag-theme-quartz-dark .ag-color-picker-color,
.ag-theme-quartz-dark .ag-recent-color,
.ag-theme-quartz-auto-dark .ag-color-input-color,
.ag-theme-quartz-auto-dark .ag-color-picker-color,
.ag-theme-quartz-auto-dark .ag-recent-color {
  border-radius: 4px;
}
.ag-theme-quartz .ag-recent-color,
.ag-theme-quartz-dark .ag-recent-color,
.ag-theme-quartz-auto-dark .ag-recent-color {
  border: var(--ag-borders-secondary) var(--ag-secondary-border-color);
}
.ag-theme-quartz.ag-dnd-ghost,
.ag-theme-quartz-dark.ag-dnd-ghost,
.ag-theme-quartz-auto-dark.ag-dnd-ghost {
  font-weight: 500;
}
.ag-theme-quartz .ag-standard-button,
.ag-theme-quartz-dark .ag-standard-button,
.ag-theme-quartz-auto-dark .ag-standard-button {
  font-family: inherit;
  -moz-appearance: none;
       appearance: none;
  -webkit-appearance: none;
  border-radius: var(--ag-border-radius);
  border: solid 1px var(--ag-input-border-color);
  background-color: var(--ag-background-color);
  padding: var(--ag-grid-size) calc(var(--ag-grid-size) * 2);
  cursor: pointer;
}
.ag-theme-quartz .ag-standard-button:hover,
.ag-theme-quartz-dark .ag-standard-button:hover,
.ag-theme-quartz-auto-dark .ag-standard-button:hover {
  background-color: var(--ag-row-hover-color);
}
.ag-theme-quartz .ag-standard-button:active,
.ag-theme-quartz-dark .ag-standard-button:active,
.ag-theme-quartz-auto-dark .ag-standard-button:active {
  border-color: var(--ag-active-color);
}
.ag-theme-quartz .ag-standard-button:disabled,
.ag-theme-quartz-dark .ag-standard-button:disabled,
.ag-theme-quartz-auto-dark .ag-standard-button:disabled {
  color: var(--ag-disabled-foreground-color);
  background-color: var(--ag-input-disabled-background-color);
  border-color: var(--ag-input-disabled-border-color);
}
.ag-theme-quartz .ag-column-drop-cell,
.ag-theme-quartz-dark .ag-column-drop-cell,
.ag-theme-quartz-auto-dark .ag-column-drop-cell {
  border-radius: calc(var(--ag-grid-size) * 3);
  height: calc(var(--ag-grid-size) * 3);
  padding: 0 var(--ag-grid-size);
}
.ag-theme-quartz .ag-column-drop-cell-button,
.ag-theme-quartz-dark .ag-column-drop-cell-button,
.ag-theme-quartz-auto-dark .ag-column-drop-cell-button {
  min-width: 0;
  margin: 0;
}
.ag-theme-quartz .ag-column-drop-cell-drag-handle,
.ag-theme-quartz-dark .ag-column-drop-cell-drag-handle,
.ag-theme-quartz-auto-dark .ag-column-drop-cell-drag-handle {
  margin-left: 0;
}
.ag-theme-quartz .ag-column-drop-vertical,
.ag-theme-quartz-dark .ag-column-drop-vertical,
.ag-theme-quartz-auto-dark .ag-column-drop-vertical {
  min-height: 75px;
}
.ag-theme-quartz .ag-column-drop-vertical-title-bar,
.ag-theme-quartz-dark .ag-column-drop-vertical-title-bar,
.ag-theme-quartz-auto-dark .ag-column-drop-vertical-title-bar {
  padding: var(--ag-widget-container-vertical-padding) calc(var(--ag-grid-size) * 2) 0;
}
.ag-theme-quartz .ag-ltr .ag-column-drop-vertical-icon, .ag-theme-quartz-dark .ag-ltr .ag-column-drop-vertical-icon, .ag-theme-quartz-auto-dark .ag-ltr .ag-column-drop-vertical-icon {
  margin-left: 0;
  margin-right: var(--ag-widget-horizontal-spacing);
}

.ag-theme-quartz .ag-rtl .ag-column-drop-vertical-icon, .ag-theme-quartz-dark .ag-rtl .ag-column-drop-vertical-icon, .ag-theme-quartz-auto-dark .ag-rtl .ag-column-drop-vertical-icon {
  margin-right: 0;
  margin-left: var(--ag-widget-horizontal-spacing);
}

.ag-theme-quartz .ag-column-drop-vertical-empty-message,
.ag-theme-quartz-dark .ag-column-drop-vertical-empty-message,
.ag-theme-quartz-auto-dark .ag-column-drop-vertical-empty-message {
  display: flex;
  align-items: center;
  justify-content: center;
  border: dashed 1px;
  border-color: var(--ag-border-color);
  margin: calc(var(--ag-grid-size) * 1.5) calc(var(--ag-grid-size) * 2);
  padding: calc(var(--ag-grid-size) * 2);
}
.ag-theme-quartz .ag-column-drop-empty-message,
.ag-theme-quartz-dark .ag-column-drop-empty-message,
.ag-theme-quartz-auto-dark .ag-column-drop-empty-message {
  color: var(--ag-foreground-color);
}
.ag-theme-quartz .ag-pill-select .ag-column-drop,
.ag-theme-quartz-dark .ag-pill-select .ag-column-drop,
.ag-theme-quartz-auto-dark .ag-pill-select .ag-column-drop {
  min-height: 0;
  min-height: initial;
}
.ag-theme-quartz .ag-pill-select .ag-picker-field-display,
.ag-theme-quartz-dark .ag-pill-select .ag-picker-field-display,
.ag-theme-quartz-auto-dark .ag-pill-select .ag-picker-field-display {
  font-weight: 500;
  color: var(--ag-chart-menu-pill-select-button-color);
}
.ag-theme-quartz .ag-pill-select .ag-picker-field-icon .ag-icon,
.ag-theme-quartz-dark .ag-pill-select .ag-picker-field-icon .ag-icon,
.ag-theme-quartz-auto-dark .ag-pill-select .ag-picker-field-icon .ag-icon {
  color: var(--ag-chart-menu-pill-select-button-color);
}
.ag-theme-quartz .ag-status-bar,
.ag-theme-quartz-dark .ag-status-bar,
.ag-theme-quartz-auto-dark .ag-status-bar {
  font-weight: normal;
}
.ag-theme-quartz .ag-status-name-value,
.ag-theme-quartz-dark .ag-status-name-value,
.ag-theme-quartz-auto-dark .ag-status-name-value {
  padding: var(--ag-widget-container-vertical-padding) 0;
}
.ag-theme-quartz .ag-status-name-value-value,
.ag-theme-quartz .ag-paging-number,
.ag-theme-quartz .ag-paging-row-summary-panel-number,
.ag-theme-quartz-dark .ag-status-name-value-value,
.ag-theme-quartz-dark .ag-paging-number,
.ag-theme-quartz-dark .ag-paging-row-summary-panel-number,
.ag-theme-quartz-auto-dark .ag-status-name-value-value,
.ag-theme-quartz-auto-dark .ag-paging-number,
.ag-theme-quartz-auto-dark .ag-paging-row-summary-panel-number {
  font-weight: 500;
}
.ag-theme-quartz .ag-column-drop-cell-button,
.ag-theme-quartz-dark .ag-column-drop-cell-button,
.ag-theme-quartz-auto-dark .ag-column-drop-cell-button {
  opacity: 0.75;
}
.ag-theme-quartz .ag-column-drop-cell-button:hover,
.ag-theme-quartz-dark .ag-column-drop-cell-button:hover,
.ag-theme-quartz-auto-dark .ag-column-drop-cell-button:hover {
  opacity: 1;
}
.ag-theme-quartz .ag-header-cell-menu-button,
.ag-theme-quartz .ag-header-cell-filter-button,
.ag-theme-quartz .ag-panel-title-bar-button,
.ag-theme-quartz .ag-header-expand-icon,
.ag-theme-quartz .ag-column-group-icons,
.ag-theme-quartz .ag-set-filter-group-icons,
.ag-theme-quartz .ag-group-expanded .ag-icon,
.ag-theme-quartz .ag-group-contracted .ag-icon,
.ag-theme-quartz .ag-chart-settings-prev,
.ag-theme-quartz .ag-chart-settings-next,
.ag-theme-quartz .ag-group-title-bar-icon,
.ag-theme-quartz .ag-column-select-header-icon,
.ag-theme-quartz .ag-floating-filter-button-button,
.ag-theme-quartz .ag-filter-toolpanel-expand,
.ag-theme-quartz .ag-panel-title-bar-button-icon,
.ag-theme-quartz .ag-chart-menu-icon,
.ag-theme-quartz-dark .ag-header-cell-menu-button,
.ag-theme-quartz-dark .ag-header-cell-filter-button,
.ag-theme-quartz-dark .ag-panel-title-bar-button,
.ag-theme-quartz-dark .ag-header-expand-icon,
.ag-theme-quartz-dark .ag-column-group-icons,
.ag-theme-quartz-dark .ag-set-filter-group-icons,
.ag-theme-quartz-dark .ag-group-expanded .ag-icon,
.ag-theme-quartz-dark .ag-group-contracted .ag-icon,
.ag-theme-quartz-dark .ag-chart-settings-prev,
.ag-theme-quartz-dark .ag-chart-settings-next,
.ag-theme-quartz-dark .ag-group-title-bar-icon,
.ag-theme-quartz-dark .ag-column-select-header-icon,
.ag-theme-quartz-dark .ag-floating-filter-button-button,
.ag-theme-quartz-dark .ag-filter-toolpanel-expand,
.ag-theme-quartz-dark .ag-panel-title-bar-button-icon,
.ag-theme-quartz-dark .ag-chart-menu-icon,
.ag-theme-quartz-auto-dark .ag-header-cell-menu-button,
.ag-theme-quartz-auto-dark .ag-header-cell-filter-button,
.ag-theme-quartz-auto-dark .ag-panel-title-bar-button,
.ag-theme-quartz-auto-dark .ag-header-expand-icon,
.ag-theme-quartz-auto-dark .ag-column-group-icons,
.ag-theme-quartz-auto-dark .ag-set-filter-group-icons,
.ag-theme-quartz-auto-dark .ag-group-expanded .ag-icon,
.ag-theme-quartz-auto-dark .ag-group-contracted .ag-icon,
.ag-theme-quartz-auto-dark .ag-chart-settings-prev,
.ag-theme-quartz-auto-dark .ag-chart-settings-next,
.ag-theme-quartz-auto-dark .ag-group-title-bar-icon,
.ag-theme-quartz-auto-dark .ag-column-select-header-icon,
.ag-theme-quartz-auto-dark .ag-floating-filter-button-button,
.ag-theme-quartz-auto-dark .ag-filter-toolpanel-expand,
.ag-theme-quartz-auto-dark .ag-panel-title-bar-button-icon,
.ag-theme-quartz-auto-dark .ag-chart-menu-icon {
  --ag-quartz-icon-hover-color: color-mix(in srgb, transparent, var(--ag-foreground-color) 10%);
}
.ag-theme-quartz .ag-header-cell-menu-button:hover,
.ag-theme-quartz .ag-header-cell-filter-button:hover,
.ag-theme-quartz .ag-panel-title-bar-button:hover,
.ag-theme-quartz .ag-header-expand-icon:hover,
.ag-theme-quartz .ag-column-group-icons:hover,
.ag-theme-quartz .ag-set-filter-group-icons:hover,
.ag-theme-quartz .ag-group-expanded .ag-icon:hover,
.ag-theme-quartz .ag-group-contracted .ag-icon:hover,
.ag-theme-quartz .ag-chart-settings-prev:hover,
.ag-theme-quartz .ag-chart-settings-next:hover,
.ag-theme-quartz .ag-group-title-bar-icon:hover,
.ag-theme-quartz .ag-column-select-header-icon:hover,
.ag-theme-quartz .ag-floating-filter-button-button:hover,
.ag-theme-quartz .ag-filter-toolpanel-expand:hover,
.ag-theme-quartz .ag-panel-title-bar-button-icon:hover,
.ag-theme-quartz .ag-chart-menu-icon:hover,
.ag-theme-quartz-dark .ag-header-cell-menu-button:hover,
.ag-theme-quartz-dark .ag-header-cell-filter-button:hover,
.ag-theme-quartz-dark .ag-panel-title-bar-button:hover,
.ag-theme-quartz-dark .ag-header-expand-icon:hover,
.ag-theme-quartz-dark .ag-column-group-icons:hover,
.ag-theme-quartz-dark .ag-set-filter-group-icons:hover,
.ag-theme-quartz-dark .ag-group-expanded .ag-icon:hover,
.ag-theme-quartz-dark .ag-group-contracted .ag-icon:hover,
.ag-theme-quartz-dark .ag-chart-settings-prev:hover,
.ag-theme-quartz-dark .ag-chart-settings-next:hover,
.ag-theme-quartz-dark .ag-group-title-bar-icon:hover,
.ag-theme-quartz-dark .ag-column-select-header-icon:hover,
.ag-theme-quartz-dark .ag-floating-filter-button-button:hover,
.ag-theme-quartz-dark .ag-filter-toolpanel-expand:hover,
.ag-theme-quartz-dark .ag-panel-title-bar-button-icon:hover,
.ag-theme-quartz-dark .ag-chart-menu-icon:hover,
.ag-theme-quartz-auto-dark .ag-header-cell-menu-button:hover,
.ag-theme-quartz-auto-dark .ag-header-cell-filter-button:hover,
.ag-theme-quartz-auto-dark .ag-panel-title-bar-button:hover,
.ag-theme-quartz-auto-dark .ag-header-expand-icon:hover,
.ag-theme-quartz-auto-dark .ag-column-group-icons:hover,
.ag-theme-quartz-auto-dark .ag-set-filter-group-icons:hover,
.ag-theme-quartz-auto-dark .ag-group-expanded .ag-icon:hover,
.ag-theme-quartz-auto-dark .ag-group-contracted .ag-icon:hover,
.ag-theme-quartz-auto-dark .ag-chart-settings-prev:hover,
.ag-theme-quartz-auto-dark .ag-chart-settings-next:hover,
.ag-theme-quartz-auto-dark .ag-group-title-bar-icon:hover,
.ag-theme-quartz-auto-dark .ag-column-select-header-icon:hover,
.ag-theme-quartz-auto-dark .ag-floating-filter-button-button:hover,
.ag-theme-quartz-auto-dark .ag-filter-toolpanel-expand:hover,
.ag-theme-quartz-auto-dark .ag-panel-title-bar-button-icon:hover,
.ag-theme-quartz-auto-dark .ag-chart-menu-icon:hover {
  border-radius: 1px;
  background-color: var(--ag-quartz-icon-hover-color);
  box-shadow: 0 0 0 4px var(--ag-quartz-icon-hover-color);
}
.ag-theme-quartz .ag-filter-active,
.ag-theme-quartz-dark .ag-filter-active,
.ag-theme-quartz-auto-dark .ag-filter-active {
  --ag-quartz-icon-active-color: color-mix(in srgb, transparent, var(--ag-active-color) 14%);
  --ag-quartz-icon-hover-color: color-mix(in srgb, transparent, var(--ag-active-color) 28%);
  position: relative;
  border-radius: 1px;
  background-color: var(--ag-quartz-icon-active-color);
  box-shadow: 0 0 0 4px var(--ag-quartz-icon-active-color);
}
.ag-theme-quartz .ag-filter-active::after,
.ag-theme-quartz-dark .ag-filter-active::after,
.ag-theme-quartz-auto-dark .ag-filter-active::after {
  content: "";
  position: absolute;
  width: 6px;
  height: 6px;
  top: -1px;
  right: -1px;
  border-radius: 50%;
  background-color: var(--ag-active-color);
}
.ag-theme-quartz .ag-filter-active .ag-icon-filter,
.ag-theme-quartz-dark .ag-filter-active .ag-icon-filter,
.ag-theme-quartz-auto-dark .ag-filter-active .ag-icon-filter {
  clip-path: path("M8,0C8,4.415 11.585,8 16,8L16,16L0,16L0,0L8,0Z");
}
.ag-theme-quartz .ag-chart-menu,
.ag-theme-quartz-dark .ag-chart-menu,
.ag-theme-quartz-auto-dark .ag-chart-menu {
  --ag-icon-size: 20px;
  background-color: color-mix(in srgb, transparent, var(--ag-background-color) 30%);
  padding: 4px 2px;
}
.ag-theme-quartz .ag-chart-menu-icon,
.ag-theme-quartz-dark .ag-chart-menu-icon,
.ag-theme-quartz-auto-dark .ag-chart-menu-icon {
  opacity: 0.8;
}
.ag-theme-quartz .ag-drag-handle,
.ag-theme-quartz-dark .ag-drag-handle,
.ag-theme-quartz-auto-dark .ag-drag-handle {
  color: var(--ag-icon-font-color);
}
.ag-theme-quartz .ag-menu-option-icon,
.ag-theme-quartz .ag-compact-menu-option-icon,
.ag-theme-quartz-dark .ag-menu-option-icon,
.ag-theme-quartz-dark .ag-compact-menu-option-icon,
.ag-theme-quartz-auto-dark .ag-menu-option-icon,
.ag-theme-quartz-auto-dark .ag-compact-menu-option-icon {
  width: var(--ag-icon-size);
  cursor: pointer;
}
.ag-theme-quartz .ag-ltr .ag-menu-option-icon, .ag-theme-quartz .ag-ltr .ag-compact-menu-option-icon, .ag-theme-quartz-dark .ag-ltr .ag-menu-option-icon, .ag-theme-quartz-dark .ag-ltr .ag-compact-menu-option-icon, .ag-theme-quartz-auto-dark .ag-ltr .ag-menu-option-icon, .ag-theme-quartz-auto-dark .ag-ltr .ag-compact-menu-option-icon {
  padding-left: calc(var(--ag-grid-size) * 1.5);
}

.ag-theme-quartz .ag-rtl .ag-menu-option-icon, .ag-theme-quartz .ag-rtl .ag-compact-menu-option-icon, .ag-theme-quartz-dark .ag-rtl .ag-menu-option-icon, .ag-theme-quartz-dark .ag-rtl .ag-compact-menu-option-icon, .ag-theme-quartz-auto-dark .ag-rtl .ag-menu-option-icon, .ag-theme-quartz-auto-dark .ag-rtl .ag-compact-menu-option-icon {
  padding-right: calc(var(--ag-grid-size) * 1.5);
}

.ag-theme-quartz .ag-chart-settings-card-item.ag-not-selected:hover,
.ag-theme-quartz-dark .ag-chart-settings-card-item.ag-not-selected:hover,
.ag-theme-quartz-auto-dark .ag-chart-settings-card-item.ag-not-selected:hover {
  opacity: 0.35;
}
.ag-theme-quartz .ag-ltr .ag-panel-title-bar-button, .ag-theme-quartz-dark .ag-ltr .ag-panel-title-bar-button, .ag-theme-quartz-auto-dark .ag-ltr .ag-panel-title-bar-button {
  margin-left: calc(var(--ag-grid-size) * 2);
  margin-right: var(--ag-grid-size);
}

.ag-theme-quartz .ag-rtl .ag-panel-title-bar-button, .ag-theme-quartz-dark .ag-rtl .ag-panel-title-bar-button, .ag-theme-quartz-auto-dark .ag-rtl .ag-panel-title-bar-button {
  margin-right: calc(var(--ag-grid-size) * 2);
  margin-left: var(--ag-grid-size);
}

.ag-theme-quartz .ag-multi-filter-group-title-bar,
.ag-theme-quartz-dark .ag-multi-filter-group-title-bar,
.ag-theme-quartz-auto-dark .ag-multi-filter-group-title-bar {
  padding: calc(var(--ag-grid-size) * 1.5) var(--ag-grid-size);
}
.ag-theme-quartz .ag-ltr .ag-filter-toolpanel-instance-body, .ag-theme-quartz-dark .ag-ltr .ag-filter-toolpanel-instance-body, .ag-theme-quartz-auto-dark .ag-ltr .ag-filter-toolpanel-instance-body {
  padding-left: var(--ag-grid-size);
}

.ag-theme-quartz .ag-rtl .ag-filter-toolpanel-instance-body, .ag-theme-quartz-dark .ag-rtl .ag-filter-toolpanel-instance-body, .ag-theme-quartz-auto-dark .ag-rtl .ag-filter-toolpanel-instance-body {
  padding-right: var(--ag-grid-size);
}

.ag-theme-quartz .ag-filter-toolpanel-instance-filter,
.ag-theme-quartz-dark .ag-filter-toolpanel-instance-filter,
.ag-theme-quartz-auto-dark .ag-filter-toolpanel-instance-filter {
  border: none;
  background-color: var(--ag-control-panel-background-color);
}
.ag-theme-quartz .ag-ltr .ag-filter-toolpanel-instance-filter, .ag-theme-quartz-dark .ag-ltr .ag-filter-toolpanel-instance-filter, .ag-theme-quartz-auto-dark .ag-ltr .ag-filter-toolpanel-instance-filter {
  margin-left: calc(var(--ag-icon-size) * 0.5);
}

.ag-theme-quartz .ag-rtl .ag-filter-toolpanel-instance-filter, .ag-theme-quartz-dark .ag-rtl .ag-filter-toolpanel-instance-filter, .ag-theme-quartz-auto-dark .ag-rtl .ag-filter-toolpanel-instance-filter {
  margin-right: calc(var(--ag-icon-size) * 0.5);
}

.ag-theme-quartz .ag-filter-toolpanel-group-level-0,
.ag-theme-quartz-dark .ag-filter-toolpanel-group-level-0,
.ag-theme-quartz-auto-dark .ag-filter-toolpanel-group-level-0 {
  border-top: none;
}
.ag-theme-quartz .ag-filter-toolpanel-header,
.ag-theme-quartz-dark .ag-filter-toolpanel-header,
.ag-theme-quartz-auto-dark .ag-filter-toolpanel-header {
  height: auto;
  height: initial;
  padding-top: var(--ag-grid-size);
  padding-bottom: var(--ag-grid-size);
}
.ag-theme-quartz .ag-filter-toolpanel-group-item,
.ag-theme-quartz-dark .ag-filter-toolpanel-group-item,
.ag-theme-quartz-auto-dark .ag-filter-toolpanel-group-item {
  margin: 0;
}
.ag-theme-quartz .ag-layout-auto-height .ag-center-cols-viewport,
.ag-theme-quartz .ag-layout-auto-height .ag-center-cols-container,
.ag-theme-quartz .ag-layout-print .ag-center-cols-viewport,
.ag-theme-quartz .ag-layout-print .ag-center-cols-container,
.ag-theme-quartz-dark .ag-layout-auto-height .ag-center-cols-viewport,
.ag-theme-quartz-dark .ag-layout-auto-height .ag-center-cols-container,
.ag-theme-quartz-dark .ag-layout-print .ag-center-cols-viewport,
.ag-theme-quartz-dark .ag-layout-print .ag-center-cols-container,
.ag-theme-quartz-auto-dark .ag-layout-auto-height .ag-center-cols-viewport,
.ag-theme-quartz-auto-dark .ag-layout-auto-height .ag-center-cols-container,
.ag-theme-quartz-auto-dark .ag-layout-print .ag-center-cols-viewport,
.ag-theme-quartz-auto-dark .ag-layout-print .ag-center-cols-container {
  min-height: 150px;
}
.ag-theme-quartz .ag-date-time-list-page-entry-is-current,
.ag-theme-quartz-dark .ag-date-time-list-page-entry-is-current,
.ag-theme-quartz-auto-dark .ag-date-time-list-page-entry-is-current {
  background-color: var(--ag-active-color);
}
.ag-theme-quartz .ag-advanced-filter-builder-button,
.ag-theme-quartz-dark .ag-advanced-filter-builder-button,
.ag-theme-quartz-auto-dark .ag-advanced-filter-builder-button {
  padding: var(--ag-grid-size);
  font-weight: 600;
}
.ag-theme-quartz .ag-advanced-filter-builder-item-button-disabled .ag-icon,
.ag-theme-quartz .ag-disabled .ag-icon,
.ag-theme-quartz .ag-column-select-column-group-readonly .ag-icon,
.ag-theme-quartz [disabled] .ag-icon,
.ag-theme-quartz-dark .ag-advanced-filter-builder-item-button-disabled .ag-icon,
.ag-theme-quartz-dark .ag-disabled .ag-icon,
.ag-theme-quartz-dark .ag-column-select-column-group-readonly .ag-icon,
.ag-theme-quartz-dark [disabled] .ag-icon,
.ag-theme-quartz-auto-dark .ag-advanced-filter-builder-item-button-disabled .ag-icon,
.ag-theme-quartz-auto-dark .ag-disabled .ag-icon,
.ag-theme-quartz-auto-dark .ag-column-select-column-group-readonly .ag-icon,
.ag-theme-quartz-auto-dark [disabled] .ag-icon {
  opacity: 0.6;
}
.ag-theme-quartz .ag-icon-grip,
.ag-theme-quartz-dark .ag-icon-grip,
.ag-theme-quartz-auto-dark .ag-icon-grip {
  opacity: 0.7;
}
.ag-theme-quartz .ag-column-select-column-readonly.ag-icon-grip,
.ag-theme-quartz .ag-column-select-column-readonly .ag-icon-grip,
.ag-theme-quartz-dark .ag-column-select-column-readonly.ag-icon-grip,
.ag-theme-quartz-dark .ag-column-select-column-readonly .ag-icon-grip,
.ag-theme-quartz-auto-dark .ag-column-select-column-readonly.ag-icon-grip,
.ag-theme-quartz-auto-dark .ag-column-select-column-readonly .ag-icon-grip {
  opacity: 0.35;
}
.ag-theme-quartz .ag-column-select-header-filter-wrapper .ag-input-wrapper::before,
.ag-theme-quartz .ag-filter-toolpanel-search .ag-input-wrapper::before,
.ag-theme-quartz .ag-mini-filter .ag-input-wrapper::before,
.ag-theme-quartz .ag-filter-filter .ag-input-wrapper::before,
.ag-theme-quartz-dark .ag-column-select-header-filter-wrapper .ag-input-wrapper::before,
.ag-theme-quartz-dark .ag-filter-toolpanel-search .ag-input-wrapper::before,
.ag-theme-quartz-dark .ag-mini-filter .ag-input-wrapper::before,
.ag-theme-quartz-dark .ag-filter-filter .ag-input-wrapper::before,
.ag-theme-quartz-auto-dark .ag-column-select-header-filter-wrapper .ag-input-wrapper::before,
.ag-theme-quartz-auto-dark .ag-filter-toolpanel-search .ag-input-wrapper::before,
.ag-theme-quartz-auto-dark .ag-mini-filter .ag-input-wrapper::before,
.ag-theme-quartz-auto-dark .ag-filter-filter .ag-input-wrapper::before {
  position: absolute;
  display: block;
  width: 12px;
  height: 12px;
  background-image: url(`+r+`);
  background-position: 50% 50%;
  background-size: contain;
  opacity: 0.4;
  content: "";
  filter: var(--ag-icon-filter);
}
.ag-theme-quartz .ag-ltr .ag-column-select-header-filter-wrapper .ag-input-wrapper::before, .ag-theme-quartz .ag-ltr .ag-filter-toolpanel-search .ag-input-wrapper::before, .ag-theme-quartz .ag-ltr .ag-mini-filter .ag-input-wrapper::before, .ag-theme-quartz .ag-ltr .ag-filter-filter .ag-input-wrapper::before, .ag-theme-quartz-dark .ag-ltr .ag-column-select-header-filter-wrapper .ag-input-wrapper::before, .ag-theme-quartz-dark .ag-ltr .ag-filter-toolpanel-search .ag-input-wrapper::before, .ag-theme-quartz-dark .ag-ltr .ag-mini-filter .ag-input-wrapper::before, .ag-theme-quartz-dark .ag-ltr .ag-filter-filter .ag-input-wrapper::before, .ag-theme-quartz-auto-dark .ag-ltr .ag-column-select-header-filter-wrapper .ag-input-wrapper::before, .ag-theme-quartz-auto-dark .ag-ltr .ag-filter-toolpanel-search .ag-input-wrapper::before, .ag-theme-quartz-auto-dark .ag-ltr .ag-mini-filter .ag-input-wrapper::before, .ag-theme-quartz-auto-dark .ag-ltr .ag-filter-filter .ag-input-wrapper::before {
  margin-left: var(--ag-grid-size);
}

.ag-theme-quartz .ag-rtl .ag-column-select-header-filter-wrapper .ag-input-wrapper::before, .ag-theme-quartz .ag-rtl .ag-filter-toolpanel-search .ag-input-wrapper::before, .ag-theme-quartz .ag-rtl .ag-mini-filter .ag-input-wrapper::before, .ag-theme-quartz .ag-rtl .ag-filter-filter .ag-input-wrapper::before, .ag-theme-quartz-dark .ag-rtl .ag-column-select-header-filter-wrapper .ag-input-wrapper::before, .ag-theme-quartz-dark .ag-rtl .ag-filter-toolpanel-search .ag-input-wrapper::before, .ag-theme-quartz-dark .ag-rtl .ag-mini-filter .ag-input-wrapper::before, .ag-theme-quartz-dark .ag-rtl .ag-filter-filter .ag-input-wrapper::before, .ag-theme-quartz-auto-dark .ag-rtl .ag-column-select-header-filter-wrapper .ag-input-wrapper::before, .ag-theme-quartz-auto-dark .ag-rtl .ag-filter-toolpanel-search .ag-input-wrapper::before, .ag-theme-quartz-auto-dark .ag-rtl .ag-mini-filter .ag-input-wrapper::before, .ag-theme-quartz-auto-dark .ag-rtl .ag-filter-filter .ag-input-wrapper::before {
  margin-right: var(--ag-grid-size);
}

.ag-theme-quartz .ag-ltr .ag-column-select-header-filter-wrapper input.ag-text-field-input, .ag-theme-quartz .ag-ltr .ag-column-select-header-filter-wrapper input.ag-number-field-input, .ag-theme-quartz .ag-ltr .ag-filter-toolpanel-search input.ag-text-field-input, .ag-theme-quartz .ag-ltr .ag-filter-toolpanel-search input.ag-number-field-input, .ag-theme-quartz .ag-ltr .ag-mini-filter input.ag-text-field-input, .ag-theme-quartz .ag-ltr .ag-mini-filter input.ag-number-field-input, .ag-theme-quartz .ag-ltr .ag-filter-filter input.ag-text-field-input, .ag-theme-quartz .ag-ltr .ag-filter-filter input.ag-number-field-input, .ag-theme-quartz-dark .ag-ltr .ag-column-select-header-filter-wrapper input.ag-text-field-input, .ag-theme-quartz-dark .ag-ltr .ag-column-select-header-filter-wrapper input.ag-number-field-input, .ag-theme-quartz-dark .ag-ltr .ag-filter-toolpanel-search input.ag-text-field-input, .ag-theme-quartz-dark .ag-ltr .ag-filter-toolpanel-search input.ag-number-field-input, .ag-theme-quartz-dark .ag-ltr .ag-mini-filter input.ag-text-field-input, .ag-theme-quartz-dark .ag-ltr .ag-mini-filter input.ag-number-field-input, .ag-theme-quartz-dark .ag-ltr .ag-filter-filter input.ag-text-field-input, .ag-theme-quartz-dark .ag-ltr .ag-filter-filter input.ag-number-field-input, .ag-theme-quartz-auto-dark .ag-ltr .ag-column-select-header-filter-wrapper input.ag-text-field-input, .ag-theme-quartz-auto-dark .ag-ltr .ag-column-select-header-filter-wrapper input.ag-number-field-input, .ag-theme-quartz-auto-dark .ag-ltr .ag-filter-toolpanel-search input.ag-text-field-input, .ag-theme-quartz-auto-dark .ag-ltr .ag-filter-toolpanel-search input.ag-number-field-input, .ag-theme-quartz-auto-dark .ag-ltr .ag-mini-filter input.ag-text-field-input, .ag-theme-quartz-auto-dark .ag-ltr .ag-mini-filter input.ag-number-field-input, .ag-theme-quartz-auto-dark .ag-ltr .ag-filter-filter input.ag-text-field-input, .ag-theme-quartz-auto-dark .ag-ltr .ag-filter-filter input.ag-number-field-input {
  padding-left: 26px;
}

.ag-theme-quartz .ag-rtl .ag-column-select-header-filter-wrapper input.ag-text-field-input, .ag-theme-quartz .ag-rtl .ag-column-select-header-filter-wrapper input.ag-number-field-input, .ag-theme-quartz .ag-rtl .ag-filter-toolpanel-search input.ag-text-field-input, .ag-theme-quartz .ag-rtl .ag-filter-toolpanel-search input.ag-number-field-input, .ag-theme-quartz .ag-rtl .ag-mini-filter input.ag-text-field-input, .ag-theme-quartz .ag-rtl .ag-mini-filter input.ag-number-field-input, .ag-theme-quartz .ag-rtl .ag-filter-filter input.ag-text-field-input, .ag-theme-quartz .ag-rtl .ag-filter-filter input.ag-number-field-input, .ag-theme-quartz-dark .ag-rtl .ag-column-select-header-filter-wrapper input.ag-text-field-input, .ag-theme-quartz-dark .ag-rtl .ag-column-select-header-filter-wrapper input.ag-number-field-input, .ag-theme-quartz-dark .ag-rtl .ag-filter-toolpanel-search input.ag-text-field-input, .ag-theme-quartz-dark .ag-rtl .ag-filter-toolpanel-search input.ag-number-field-input, .ag-theme-quartz-dark .ag-rtl .ag-mini-filter input.ag-text-field-input, .ag-theme-quartz-dark .ag-rtl .ag-mini-filter input.ag-number-field-input, .ag-theme-quartz-dark .ag-rtl .ag-filter-filter input.ag-text-field-input, .ag-theme-quartz-dark .ag-rtl .ag-filter-filter input.ag-number-field-input, .ag-theme-quartz-auto-dark .ag-rtl .ag-column-select-header-filter-wrapper input.ag-text-field-input, .ag-theme-quartz-auto-dark .ag-rtl .ag-column-select-header-filter-wrapper input.ag-number-field-input, .ag-theme-quartz-auto-dark .ag-rtl .ag-filter-toolpanel-search input.ag-text-field-input, .ag-theme-quartz-auto-dark .ag-rtl .ag-filter-toolpanel-search input.ag-number-field-input, .ag-theme-quartz-auto-dark .ag-rtl .ag-mini-filter input.ag-text-field-input, .ag-theme-quartz-auto-dark .ag-rtl .ag-mini-filter input.ag-number-field-input, .ag-theme-quartz-auto-dark .ag-rtl .ag-filter-filter input.ag-text-field-input, .ag-theme-quartz-auto-dark .ag-rtl .ag-filter-filter input.ag-number-field-input {
  padding-right: 26px;
}

.ag-theme-quartz .ag-ltr .ag-column-select-add-group-indent, .ag-theme-quartz-dark .ag-ltr .ag-column-select-add-group-indent, .ag-theme-quartz-auto-dark .ag-ltr .ag-column-select-add-group-indent {
  margin-left: calc(var(--ag-icon-size) + var(--ag-grid-size) * 1.5);
}

.ag-theme-quartz .ag-rtl .ag-column-select-add-group-indent, .ag-theme-quartz-dark .ag-rtl .ag-column-select-add-group-indent, .ag-theme-quartz-auto-dark .ag-rtl .ag-column-select-add-group-indent {
  margin-right: calc(var(--ag-icon-size) + var(--ag-grid-size) * 1.5);
}

.ag-theme-quartz .ag-text-field-input[disabled],
.ag-theme-quartz .ag-menu-option-disabled,
.ag-theme-quartz-dark .ag-text-field-input[disabled],
.ag-theme-quartz-dark .ag-menu-option-disabled,
.ag-theme-quartz-auto-dark .ag-text-field-input[disabled],
.ag-theme-quartz-auto-dark .ag-menu-option-disabled {
  cursor: not-allowed;
}
.ag-theme-quartz .ag-checkbox-input-wrapper.ag-checked.ag-disabled,
.ag-theme-quartz-dark .ag-checkbox-input-wrapper.ag-checked.ag-disabled,
.ag-theme-quartz-auto-dark .ag-checkbox-input-wrapper.ag-checked.ag-disabled {
  --ag-checkbox-checked-color: var(--ag-checkbox-unchecked-color);
}
.ag-theme-quartz .ag-checkbox-input,
.ag-theme-quartz .ag-toggle-button-input,
.ag-theme-quartz .ag-radio-button-input,
.ag-theme-quartz input[class^=ag-][type=range],
.ag-theme-quartz-dark .ag-checkbox-input,
.ag-theme-quartz-dark .ag-toggle-button-input,
.ag-theme-quartz-dark .ag-radio-button-input,
.ag-theme-quartz-dark input[class^=ag-][type=range],
.ag-theme-quartz-auto-dark .ag-checkbox-input,
.ag-theme-quartz-auto-dark .ag-toggle-button-input,
.ag-theme-quartz-auto-dark .ag-radio-button-input,
.ag-theme-quartz-auto-dark input[class^=ag-][type=range] {
  cursor: pointer;
}
.ag-theme-quartz .ag-details-row,
.ag-theme-quartz-dark .ag-details-row,
.ag-theme-quartz-auto-dark .ag-details-row {
  padding: calc(var(--ag-grid-size) * 3.75);
}
.ag-theme-quartz .ag-list-item-hovered::after,
.ag-theme-quartz-dark .ag-list-item-hovered::after,
.ag-theme-quartz-auto-dark .ag-list-item-hovered::after {
  background-color: var(--ag-active-color);
}
.ag-theme-quartz .ag-pill .ag-pill-button:hover,
.ag-theme-quartz-dark .ag-pill .ag-pill-button:hover,
.ag-theme-quartz-auto-dark .ag-pill .ag-pill-button:hover {
  color: var(--ag-active-color);
}
.ag-theme-quartz .ag-header-highlight-before::after,
.ag-theme-quartz .ag-header-highlight-after::after,
.ag-theme-quartz-dark .ag-header-highlight-before::after,
.ag-theme-quartz-dark .ag-header-highlight-after::after,
.ag-theme-quartz-auto-dark .ag-header-highlight-before::after,
.ag-theme-quartz-auto-dark .ag-header-highlight-after::after {
  background-color: var(--ag-active-color);
}

.ag-theme-quartz-dark .ag-column-select-header-filter-wrapper .ag-input-wrapper::before,
.ag-theme-quartz-dark .ag-filter-toolpanel-search .ag-input-wrapper::before,
.ag-theme-quartz-dark .ag-mini-filter .ag-input-wrapper::before,
.ag-theme-quartz-dark .ag-filter-filter .ag-input-wrapper::before {
  opacity: 0.66;
  filter: invert(100%);
}
.ag-theme-quartz-dark .ag-chart-menu {
  background-color: color-mix(in srgb, rgba(24, 39, 50, 0.3), var(--ag-background-color) 30%);
}
.ag-theme-quartz-dark .ag-text-field-input::-moz-placeholder {
  color: var(--ag-data-color);
  opacity: 0.8;
}
.ag-theme-quartz-dark .ag-text-field-input::placeholder {
  color: var(--ag-data-color);
  opacity: 0.8;
}
`,""]),x.A=s},9561:function(ne,x,p){var M=p(6758),A=p.n(M),F=p(935),D=p.n(F),f=p(62),v=p.n(f),u=new URL(p(2006),p.b),s=new URL(p(7249),p.b),r=D()(A()),d=v()(u),g=v()(s);r.push([ne.id,`@font-face {
  font-family: "agGridQuartz";
  src: url(`+d+`);
  font-weight: normal;
  font-style: normal;
}
.ag-theme-quartz,
.ag-theme-quartz-dark,
.ag-theme-quartz-auto-dark {
  --ag-active-color: #2196f3;
  --ag-background-color: #fff;
  --ag-foreground-color: #181d1f;
  --ag-border-color: color-mix(in srgb, transparent, var(--ag-foreground-color) 15%);
  --ag-secondary-border-color: var(--ag-border-color);
  --ag-header-background-color: color-mix(in srgb, var(--ag-background-color), var(--ag-foreground-color) 2%);
  --ag-tooltip-background-color: var(--ag-header-background-color);
  --ag-control-panel-background-color: var(--ag-header-background-color);
  --ag-subheader-background-color: transparent;
  --ag-invalid-color: #e02525;
  --ag-checkbox-unchecked-color: color-mix(in srgb, var(--ag-background-color), var(--ag-foreground-color) 30%);
  --ag-advanced-filter-join-pill-color: #f08e8d;
  --ag-advanced-filter-column-pill-color: #a6e194;
  --ag-advanced-filter-option-pill-color: #f3c08b;
  --ag-advanced-filter-value-pill-color: #85c0e4;
  --ag-header-column-resize-handle-color: var(--ag-secondary-border-color);
  --ag-icon-font-color: color-mix(in srgb, transparent, var(--ag-foreground-color) 90%);
  --ag-panel-background-color: color-mix(in srgb, var(--ag-background-color), var(--ag-foreground-color) 3%);
  --ag-panel-border-color: color-mix(in srgb, transparent, var(--ag-foreground-color) 20%);
  --ag-menu-background-color: color-mix(in srgb, var(--ag-background-color), var(--ag-foreground-color) 3%);
  --ag-menu-border-color: color-mix(in srgb, transparent, var(--ag-foreground-color) 20%);
  --ag-selected-row-background-color: color-mix(in srgb, transparent, var(--ag-active-color) 8%);
  --ag-row-hover-color: color-mix(in srgb, transparent, var(--ag-active-color) 12%);
  --ag-column-hover-color: color-mix(in srgb, transparent, var(--ag-foreground-color) 5%);
  --ag-input-focus-border-color: var(--ag-active-color);
  --ag-input-focus-box-shadow: 0 0 0 3px color-mix(in srgb, transparent, var(--ag-input-focus-border-color) 47%);
  --ag-range-selection-background-color: color-mix(in srgb, transparent, var(--ag-active-color) 20%);
  --ag-range-selection-background-color-2: color-mix(in srgb, transparent, var(--ag-active-color) 36%);
  --ag-range-selection-background-color-3: color-mix(in srgb, transparent, var(--ag-active-color) 49%);
  --ag-range-selection-background-color-4: color-mix(in srgb, transparent, var(--ag-active-color) 59%);
  --ag-checkbox-background-color: var(--ag-background-color);
  --ag-checkbox-checked-color: var(--ag-active-color);
  --ag-range-selection-border-color: var(--ag-active-color);
  --ag-secondary-foreground-color: var(--ag-foreground-color);
  --ag-input-border-color: var(--ag-border-color);
  --ag-input-border-color-invalid: var(--ag-invalid-color);
  --ag-disabled-foreground-color: color-mix(in srgb, transparent, var(--ag-foreground-color) 50%);
  --ag-chip-background-color: color-mix(in srgb, transparent, var(--ag-foreground-color) 7%);
  --ag-chip-border-color: color-mix(in srgb, var(--ag-header-background-color), var(--ag-foreground-color) 13%);
  --ag-input-disabled-border-color: var(--ag-border-color);
  --ag-input-disabled-background-color: color-mix(in srgb, var(--ag-background-color), var(--ag-foreground-color) 6%);
  --ag-modal-overlay-background-color: color-mix(in srgb, transparent, var(--ag-background-color) 66%);
  --ag-chart-menu-label-color: color-mix(in srgb, transparent, var(--ag-foreground-color) 80%);
  --ag-chart-menu-pill-select-button-color: color-mix(in srgb, transparent, var(--ag-foreground-color) 70%);
  --ag-borders: solid 1px;
  --ag-border-radius: 4px;
  --ag-wrapper-border-radius: 8px;
  --ag-borders-side-button: none;
  --ag-side-button-selected-background-color: transparent;
  --ag-header-column-resize-handle-display: block;
  --ag-header-column-resize-handle-width: 2px;
  --ag-header-column-resize-handle-height: 30%;
  --ag-grid-size: 8px;
  --ag-icon-size: 16px;
  --ag-header-height: calc(var(--ag-font-size) + var(--ag-grid-size) * 4.25);
  --ag-row-height: calc(var(--ag-font-size) + var(--ag-grid-size) * 3.5);
  --ag-list-item-height: calc(
      var(--ag-icon-size) + var(--ag-widget-vertical-spacing)
  );
  --ag-column-select-indent-size: var(--ag-icon-size);
  --ag-set-filter-indent-size: var(--ag-icon-size);
  --ag-filter-tool-panel-group-indent: var(--ag-grid-size);
  --ag-advanced-filter-builder-indent-size: calc(var(--ag-icon-size) + var(--ag-grid-size) * 2);
  --ag-cell-horizontal-padding: calc(var(--ag-grid-size) * 2);
  --ag-cell-widget-spacing: calc(var(--ag-grid-size) * 1.5);
  --ag-widget-container-vertical-padding: calc(var(--ag-grid-size) * 1.5);
  --ag-widget-container-horizontal-padding: calc(var(--ag-grid-size) * 1.5);
  --ag-widget-horizontal-spacing: calc(var(--ag-grid-size) * 1.5);
  --ag-widget-vertical-spacing: calc(var(--ag-grid-size) * 1);
  --ag-toggle-button-height: 18px;
  --ag-toggle-button-width: 28px;
  --ag-toggle-button-border-width: 2px;
  --ag-font-family: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu,
      Cantarell, "Helvetica Neue", sans-serif;
  --ag-font-size: 14px;
  --ag-icon-font-family: agGridQuartz;
  --ag-tab-min-width: 290px;
  --ag-chart-menu-panel-width: 260px;
  --ag-card-shadow: 0 1px 4px 1px rgba(186, 191, 199, 0.4);
  --ag-popup-shadow: 0 0 16px 0 rgba(0, 0, 0, 0.15);
  --ag-side-bar-panel-width: 250px;
}

.ag-theme-quartz-dark {
  --ag-background-color: rgb(31, 41, 54);
  --ag-foreground-color: #fff;
  --ag-border-color: rgba(255, 255, 255, 0.16);
  --ag-secondary-border-color: color-mix(in srgb, transparent, var(--ag-foreground-color) 10%);
  --ag-header-background-color: rgb(40, 49, 62);
  --ag-tooltip-background-color: rgb(33, 43, 56);
  --ag-control-panel-background-color: rgb(40, 49, 62);
  --ag-input-disabled-background-color: rgba(104,104,110,0.07059);
  --ag-card-shadow: 0 1px 20px 1px black;
  --ag-input-border-color: var(--ag-border-color);
  --ag-input-disabled-border-color: rgba(255, 255, 255, 0.07);
  --ag-checkbox-unchecked-color: color-mix(in srgb, var(--ag-background-color), var(--ag-foreground-color) 40%);
  --ag-row-hover-color: color-mix(in srgb, transparent, var(--ag-active-color) 20%);
  --ag-selected-row-background-color: var(--ag-row-hover-color);
  --ag-panel-background-color: color-mix(in srgb, var(--ag-background-color), var(--ag-foreground-color) 10%);
  --ag-panel-border-color: color-mix(in srgb, transparent, var(--ag-foreground-color) 10%);
  --ag-menu-background-color: color-mix(in srgb, var(--ag-background-color), var(--ag-foreground-color) 10%);
  --ag-menu-border-color: color-mix(in srgb, transparent, var(--ag-foreground-color) 10%);
  --ag-advanced-filter-join-pill-color: #7a3a37;
  --ag-advanced-filter-column-pill-color: #355f2d;
  --ag-advanced-filter-option-pill-color: #5a3168;
  --ag-advanced-filter-value-pill-color: #374c86;
  --ag-popup-shadow: 0 0px 20px rgba(0, 0, 0, 0.3);
  --ag-row-loading-skeleton-effect-color: rgba(202, 203, 204, 0.4);
  --csstools-color-scheme--dark: initial;
  color-scheme: dark;
}

@media (prefers-color-scheme: dark) {
  .ag-theme-quartz-auto-dark {
    --ag-background-color: rgb(31, 41, 54);
    --ag-foreground-color: #fff;
    --ag-border-color: rgba(255, 255, 255, 0.16);
    --ag-secondary-border-color: color-mix(in srgb, transparent, var(--ag-foreground-color) 10%);
    --ag-header-background-color: rgb(40, 49, 62);
    --ag-tooltip-background-color: rgb(33, 43, 56);
    --ag-control-panel-background-color: rgb(40, 49, 62);
    --ag-input-disabled-background-color: rgba(104,104,110,0.07059);
    --ag-card-shadow: 0 1px 20px 1px black;
    --ag-input-border-color: var(--ag-border-color);
    --ag-input-disabled-border-color: rgba(255, 255, 255, 0.07);
    --ag-checkbox-unchecked-color: color-mix(in srgb, var(--ag-background-color), var(--ag-foreground-color) 40%);
    --ag-row-hover-color: color-mix(in srgb, transparent, var(--ag-active-color) 20%);
    --ag-selected-row-background-color: var(--ag-row-hover-color);
    --ag-panel-background-color: color-mix(in srgb, var(--ag-background-color), var(--ag-foreground-color) 10%);
    --ag-panel-border-color: color-mix(in srgb, transparent, var(--ag-foreground-color) 10%);
    --ag-menu-background-color: color-mix(in srgb, var(--ag-background-color), var(--ag-foreground-color) 10%);
    --ag-menu-border-color: color-mix(in srgb, transparent, var(--ag-foreground-color) 10%);
    --ag-advanced-filter-join-pill-color: #7a3a37;
    --ag-advanced-filter-column-pill-color: #355f2d;
    --ag-advanced-filter-option-pill-color: #5a3168;
    --ag-advanced-filter-value-pill-color: #374c86;
    --ag-popup-shadow: 0 0px 20px rgba(0, 0, 0, 0.3);
    --ag-row-loading-skeleton-effect-color: rgba(202, 203, 204, 0.4);
    --csstools-color-scheme--dark: initial;
    color-scheme: dark;
  }
}
.ag-theme-quartz .ag-filter-toolpanel-header,
.ag-theme-quartz .ag-filter-toolpanel-search,
.ag-theme-quartz .ag-status-bar,
.ag-theme-quartz .ag-header-row,
.ag-theme-quartz .ag-panel-title-bar-title,
.ag-theme-quartz .ag-multi-filter-group-title-bar,
.ag-theme-quartz-dark .ag-filter-toolpanel-header,
.ag-theme-quartz-dark .ag-filter-toolpanel-search,
.ag-theme-quartz-dark .ag-status-bar,
.ag-theme-quartz-dark .ag-header-row,
.ag-theme-quartz-dark .ag-panel-title-bar-title,
.ag-theme-quartz-dark .ag-multi-filter-group-title-bar,
.ag-theme-quartz-auto-dark .ag-filter-toolpanel-header,
.ag-theme-quartz-auto-dark .ag-filter-toolpanel-search,
.ag-theme-quartz-auto-dark .ag-status-bar,
.ag-theme-quartz-auto-dark .ag-header-row,
.ag-theme-quartz-auto-dark .ag-panel-title-bar-title,
.ag-theme-quartz-auto-dark .ag-multi-filter-group-title-bar {
  font-weight: 500;
  color: var(--ag-header-foreground-color);
}
.ag-theme-quartz input[class^=ag-]:not([type]),
.ag-theme-quartz input[class^=ag-][type=text],
.ag-theme-quartz input[class^=ag-][type=number],
.ag-theme-quartz input[class^=ag-][type=tel],
.ag-theme-quartz input[class^=ag-][type=date],
.ag-theme-quartz input[class^=ag-][type=datetime-local],
.ag-theme-quartz textarea[class^=ag-],
.ag-theme-quartz-dark input[class^=ag-]:not([type]),
.ag-theme-quartz-dark input[class^=ag-][type=text],
.ag-theme-quartz-dark input[class^=ag-][type=number],
.ag-theme-quartz-dark input[class^=ag-][type=tel],
.ag-theme-quartz-dark input[class^=ag-][type=date],
.ag-theme-quartz-dark input[class^=ag-][type=datetime-local],
.ag-theme-quartz-dark textarea[class^=ag-],
.ag-theme-quartz-auto-dark input[class^=ag-]:not([type]),
.ag-theme-quartz-auto-dark input[class^=ag-][type=text],
.ag-theme-quartz-auto-dark input[class^=ag-][type=number],
.ag-theme-quartz-auto-dark input[class^=ag-][type=tel],
.ag-theme-quartz-auto-dark input[class^=ag-][type=date],
.ag-theme-quartz-auto-dark input[class^=ag-][type=datetime-local],
.ag-theme-quartz-auto-dark textarea[class^=ag-] {
  min-height: calc(var(--ag-grid-size) * 4);
  border-radius: var(--ag-border-radius);
}
.ag-theme-quartz .ag-ltr input[class^=ag-]:not([type]), .ag-theme-quartz .ag-ltr input[class^=ag-][type=text], .ag-theme-quartz .ag-ltr input[class^=ag-][type=number], .ag-theme-quartz .ag-ltr input[class^=ag-][type=tel], .ag-theme-quartz .ag-ltr input[class^=ag-][type=date], .ag-theme-quartz .ag-ltr input[class^=ag-][type=datetime-local], .ag-theme-quartz .ag-ltr textarea[class^=ag-], .ag-theme-quartz-dark .ag-ltr input[class^=ag-]:not([type]), .ag-theme-quartz-dark .ag-ltr input[class^=ag-][type=text], .ag-theme-quartz-dark .ag-ltr input[class^=ag-][type=number], .ag-theme-quartz-dark .ag-ltr input[class^=ag-][type=tel], .ag-theme-quartz-dark .ag-ltr input[class^=ag-][type=date], .ag-theme-quartz-dark .ag-ltr input[class^=ag-][type=datetime-local], .ag-theme-quartz-dark .ag-ltr textarea[class^=ag-], .ag-theme-quartz-auto-dark .ag-ltr input[class^=ag-]:not([type]), .ag-theme-quartz-auto-dark .ag-ltr input[class^=ag-][type=text], .ag-theme-quartz-auto-dark .ag-ltr input[class^=ag-][type=number], .ag-theme-quartz-auto-dark .ag-ltr input[class^=ag-][type=tel], .ag-theme-quartz-auto-dark .ag-ltr input[class^=ag-][type=date], .ag-theme-quartz-auto-dark .ag-ltr input[class^=ag-][type=datetime-local], .ag-theme-quartz-auto-dark .ag-ltr textarea[class^=ag-] {
  padding-left: var(--ag-grid-size);
}

.ag-theme-quartz .ag-rtl input[class^=ag-]:not([type]), .ag-theme-quartz .ag-rtl input[class^=ag-][type=text], .ag-theme-quartz .ag-rtl input[class^=ag-][type=number], .ag-theme-quartz .ag-rtl input[class^=ag-][type=tel], .ag-theme-quartz .ag-rtl input[class^=ag-][type=date], .ag-theme-quartz .ag-rtl input[class^=ag-][type=datetime-local], .ag-theme-quartz .ag-rtl textarea[class^=ag-], .ag-theme-quartz-dark .ag-rtl input[class^=ag-]:not([type]), .ag-theme-quartz-dark .ag-rtl input[class^=ag-][type=text], .ag-theme-quartz-dark .ag-rtl input[class^=ag-][type=number], .ag-theme-quartz-dark .ag-rtl input[class^=ag-][type=tel], .ag-theme-quartz-dark .ag-rtl input[class^=ag-][type=date], .ag-theme-quartz-dark .ag-rtl input[class^=ag-][type=datetime-local], .ag-theme-quartz-dark .ag-rtl textarea[class^=ag-], .ag-theme-quartz-auto-dark .ag-rtl input[class^=ag-]:not([type]), .ag-theme-quartz-auto-dark .ag-rtl input[class^=ag-][type=text], .ag-theme-quartz-auto-dark .ag-rtl input[class^=ag-][type=number], .ag-theme-quartz-auto-dark .ag-rtl input[class^=ag-][type=tel], .ag-theme-quartz-auto-dark .ag-rtl input[class^=ag-][type=date], .ag-theme-quartz-auto-dark .ag-rtl input[class^=ag-][type=datetime-local], .ag-theme-quartz-auto-dark .ag-rtl textarea[class^=ag-] {
  padding-right: var(--ag-grid-size);
}

.ag-theme-quartz .ag-picker-field-wrapper,
.ag-theme-quartz-dark .ag-picker-field-wrapper,
.ag-theme-quartz-auto-dark .ag-picker-field-wrapper {
  min-height: calc(var(--ag-grid-size) * 4);
}
.ag-theme-quartz .ag-tab,
.ag-theme-quartz-dark .ag-tab,
.ag-theme-quartz-auto-dark .ag-tab {
  padding: var(--ag-grid-size);
  border-left: var(--ag-borders) transparent;
  border-right: var(--ag-borders) transparent;
  flex: 1 1 auto;
}
.ag-theme-quartz .ag-tab-selected,
.ag-theme-quartz-dark .ag-tab-selected,
.ag-theme-quartz-auto-dark .ag-tab-selected {
  background-color: var(--ag-background-color);
}
.ag-theme-quartz .ag-ltr .ag-tab-selected:not(:first-of-type), .ag-theme-quartz-dark .ag-ltr .ag-tab-selected:not(:first-of-type), .ag-theme-quartz-auto-dark .ag-ltr .ag-tab-selected:not(:first-of-type) {
  border-left-color: var(--ag-border-color);
}

.ag-theme-quartz .ag-rtl .ag-tab-selected:not(:first-of-type), .ag-theme-quartz-dark .ag-rtl .ag-tab-selected:not(:first-of-type), .ag-theme-quartz-auto-dark .ag-rtl .ag-tab-selected:not(:first-of-type) {
  border-right-color: var(--ag-border-color);
}

.ag-theme-quartz .ag-ltr .ag-tab-selected:not(:last-of-type), .ag-theme-quartz-dark .ag-ltr .ag-tab-selected:not(:last-of-type), .ag-theme-quartz-auto-dark .ag-ltr .ag-tab-selected:not(:last-of-type) {
  border-right-color: var(--ag-border-color);
}

.ag-theme-quartz .ag-rtl .ag-tab-selected:not(:last-of-type), .ag-theme-quartz-dark .ag-rtl .ag-tab-selected:not(:last-of-type), .ag-theme-quartz-auto-dark .ag-rtl .ag-tab-selected:not(:last-of-type) {
  border-left-color: var(--ag-border-color);
}

.ag-theme-quartz .ag-tab:not(.ag-tab-selected),
.ag-theme-quartz-dark .ag-tab:not(.ag-tab-selected),
.ag-theme-quartz-auto-dark .ag-tab:not(.ag-tab-selected) {
  opacity: 0.7;
}
.ag-theme-quartz .ag-tab:not(.ag-tab-selected):hover,
.ag-theme-quartz-dark .ag-tab:not(.ag-tab-selected):hover,
.ag-theme-quartz-auto-dark .ag-tab:not(.ag-tab-selected):hover {
  opacity: 1;
}
.ag-theme-quartz .ag-menu,
.ag-theme-quartz-dark .ag-menu,
.ag-theme-quartz-auto-dark .ag-menu {
  color: color-mix(in srgb, transparent, var(--ag-foreground-color) 95%);
}
.ag-theme-quartz .ag-panel-content-wrapper .ag-column-select,
.ag-theme-quartz-dark .ag-panel-content-wrapper .ag-column-select,
.ag-theme-quartz-auto-dark .ag-panel-content-wrapper .ag-column-select {
  background-color: var(--ag-control-panel-background-color);
  color: color-mix(in srgb, transparent, var(--ag-foreground-color) 95%);
}
.ag-theme-quartz .ag-menu-header,
.ag-theme-quartz-dark .ag-menu-header,
.ag-theme-quartz-auto-dark .ag-menu-header {
  background-color: var(--ag-control-panel-background-color);
}
.ag-theme-quartz .ag-menu-option,
.ag-theme-quartz-dark .ag-menu-option,
.ag-theme-quartz-auto-dark .ag-menu-option {
  font-weight: 500;
  cursor: pointer;
}
.ag-theme-quartz .ag-ltr .ag-menu-option-popup-pointer .ag-icon, .ag-theme-quartz-dark .ag-ltr .ag-menu-option-popup-pointer .ag-icon, .ag-theme-quartz-auto-dark .ag-ltr .ag-menu-option-popup-pointer .ag-icon {
  text-align: right;
}

.ag-theme-quartz .ag-rtl .ag-menu-option-popup-pointer .ag-icon, .ag-theme-quartz-dark .ag-rtl .ag-menu-option-popup-pointer .ag-icon, .ag-theme-quartz-auto-dark .ag-rtl .ag-menu-option-popup-pointer .ag-icon {
  text-align: left;
}

.ag-theme-quartz .ag-tabs-header,
.ag-theme-quartz-dark .ag-tabs-header,
.ag-theme-quartz-auto-dark .ag-tabs-header {
  border-bottom: var(--ag-borders) var(--ag-border-color);
  display: flex;
  background-color: color-mix(in srgb, transparent, var(--ag-foreground-color) 5%);
}
.ag-theme-quartz .ag-side-bar,
.ag-theme-quartz-dark .ag-side-bar,
.ag-theme-quartz-auto-dark .ag-side-bar {
  background-color: var(--ag-control-panel-background-color);
  min-width: calc(var(--ag-icon-size) + var(--ag-grid-size) * 2);
}
.ag-theme-quartz .ag-side-buttons,
.ag-theme-quartz-dark .ag-side-buttons,
.ag-theme-quartz-auto-dark .ag-side-buttons {
  padding: 0;
  align-self: stretch;
  width: calc(var(--ag-icon-size) + var(--ag-grid-size) * 2);
  background: var(--ag-control-panel-background-color);
}
.ag-theme-quartz .ag-side-button,
.ag-theme-quartz-dark .ag-side-button,
.ag-theme-quartz-auto-dark .ag-side-button {
  border-top: var(--ag-borders) transparent;
  border-bottom: var(--ag-borders) transparent;
}
@media (-webkit-max-device-pixel-ratio: 1.5), (max-resolution: 1.5x) {
  .ag-theme-quartz .ag-side-button-label,
  .ag-theme-quartz-dark .ag-side-button-label,
  .ag-theme-quartz-auto-dark .ag-side-button-label {
    font-family: "Segoe UI", var(--ag-font-family);
    transform: rotate(0.05deg);
  }
}
.ag-theme-quartz .ag-side-button.ag-selected,
.ag-theme-quartz-dark .ag-side-button.ag-selected,
.ag-theme-quartz-auto-dark .ag-side-button.ag-selected {
  border-bottom-color: var(--ag-border-color);
  background-color: var(--ag-background-color);
}
.ag-theme-quartz .ag-side-button.ag-selected:not(:first-of-type),
.ag-theme-quartz-dark .ag-side-button.ag-selected:not(:first-of-type),
.ag-theme-quartz-auto-dark .ag-side-button.ag-selected:not(:first-of-type) {
  border-top-color: var(--ag-border-color);
}
.ag-theme-quartz .ag-column-panel-column-select,
.ag-theme-quartz-dark .ag-column-panel-column-select,
.ag-theme-quartz-auto-dark .ag-column-panel-column-select {
  border-top: none;
  border-bottom: 1px solid var(--ag-secondary-border-color);
}
.ag-theme-quartz .ag-filter-toolpanel-search,
.ag-theme-quartz-dark .ag-filter-toolpanel-search,
.ag-theme-quartz-auto-dark .ag-filter-toolpanel-search {
  height: auto;
  height: initial;
  margin-top: var(--ag-widget-container-vertical-padding);
}
.ag-theme-quartz .ag-filter-toolpanel-search-input,
.ag-theme-quartz-dark .ag-filter-toolpanel-search-input,
.ag-theme-quartz-auto-dark .ag-filter-toolpanel-search-input {
  margin: 0;
}
.ag-theme-quartz .ag-filter-apply-panel,
.ag-theme-quartz-dark .ag-filter-apply-panel,
.ag-theme-quartz-auto-dark .ag-filter-apply-panel {
  border: none;
  padding-top: var(--ag-widget-vertical-spacing);
}
.ag-theme-quartz .ag-chart-tabbed-menu-body,
.ag-theme-quartz-dark .ag-chart-tabbed-menu-body,
.ag-theme-quartz-auto-dark .ag-chart-tabbed-menu-body {
  position: relative;
}
.ag-theme-quartz .ag-chart-tabbed-menu-body::after,
.ag-theme-quartz-dark .ag-chart-tabbed-menu-body::after,
.ag-theme-quartz-auto-dark .ag-chart-tabbed-menu-body::after {
  content: "";
  position: absolute;
  display: block;
  top: 0;
  left: 0;
  right: 0;
  height: 16px;
  background: linear-gradient(var(--ag-control-panel-background-color), transparent);
}
.ag-theme-quartz .ag-charts-settings-group-title-bar,
.ag-theme-quartz .ag-charts-data-group-title-bar,
.ag-theme-quartz .ag-charts-format-top-level-group-title-bar,
.ag-theme-quartz .ag-charts-advanced-settings-top-level-group-title-bar,
.ag-theme-quartz .ag-charts-settings-group-container,
.ag-theme-quartz-dark .ag-charts-settings-group-title-bar,
.ag-theme-quartz-dark .ag-charts-data-group-title-bar,
.ag-theme-quartz-dark .ag-charts-format-top-level-group-title-bar,
.ag-theme-quartz-dark .ag-charts-advanced-settings-top-level-group-title-bar,
.ag-theme-quartz-dark .ag-charts-settings-group-container,
.ag-theme-quartz-auto-dark .ag-charts-settings-group-title-bar,
.ag-theme-quartz-auto-dark .ag-charts-data-group-title-bar,
.ag-theme-quartz-auto-dark .ag-charts-format-top-level-group-title-bar,
.ag-theme-quartz-auto-dark .ag-charts-advanced-settings-top-level-group-title-bar,
.ag-theme-quartz-auto-dark .ag-charts-settings-group-container {
  border-top: none;
  font-weight: 500;
}
.ag-theme-quartz .ag-chart-mini-thumbnail,
.ag-theme-quartz-dark .ag-chart-mini-thumbnail,
.ag-theme-quartz-auto-dark .ag-chart-mini-thumbnail {
  background-color: var(--ag-background-color);
  margin-top: 0;
  margin-bottom: 0;
}
.ag-theme-quartz .ag-chart-settings-nav-bar,
.ag-theme-quartz-dark .ag-chart-settings-nav-bar,
.ag-theme-quartz-auto-dark .ag-chart-settings-nav-bar {
  border-top: var(--ag-borders-secondary) var(--ag-secondary-border-color);
}
.ag-theme-quartz .ag-charts-format-sub-level-group-title-bar,
.ag-theme-quartz-dark .ag-charts-format-sub-level-group-title-bar,
.ag-theme-quartz-auto-dark .ag-charts-format-sub-level-group-title-bar {
  background: none;
  font-weight: 500;
}
.ag-theme-quartz .ag-chart-data-section .ag-label:not(.ag-group-title-bar),
.ag-theme-quartz .ag-chart-format-section .ag-label:not(.ag-group-title-bar),
.ag-theme-quartz-dark .ag-chart-data-section .ag-label:not(.ag-group-title-bar),
.ag-theme-quartz-dark .ag-chart-format-section .ag-label:not(.ag-group-title-bar),
.ag-theme-quartz-auto-dark .ag-chart-data-section .ag-label:not(.ag-group-title-bar),
.ag-theme-quartz-auto-dark .ag-chart-format-section .ag-label:not(.ag-group-title-bar) {
  color: var(--ag-chart-menu-label-color);
}
.ag-theme-quartz .ag-chart-data-section .ag-label-align-top .ag-label,
.ag-theme-quartz .ag-chart-format-section .ag-label-align-top .ag-label,
.ag-theme-quartz-dark .ag-chart-data-section .ag-label-align-top .ag-label,
.ag-theme-quartz-dark .ag-chart-format-section .ag-label-align-top .ag-label,
.ag-theme-quartz-auto-dark .ag-chart-data-section .ag-label-align-top .ag-label,
.ag-theme-quartz-auto-dark .ag-chart-format-section .ag-label-align-top .ag-label {
  margin-top: calc(var(--ag-widget-vertical-spacing) * 0.5);
  margin-bottom: var(--ag-widget-vertical-spacing);
}
.ag-theme-quartz .ag-chart-data-section .ag-slider.ag-label-align-top .ag-label,
.ag-theme-quartz .ag-chart-format-section .ag-slider.ag-label-align-top .ag-label,
.ag-theme-quartz-dark .ag-chart-data-section .ag-slider.ag-label-align-top .ag-label,
.ag-theme-quartz-dark .ag-chart-format-section .ag-slider.ag-label-align-top .ag-label,
.ag-theme-quartz-auto-dark .ag-chart-data-section .ag-slider.ag-label-align-top .ag-label,
.ag-theme-quartz-auto-dark .ag-chart-format-section .ag-slider.ag-label-align-top .ag-label {
  margin-bottom: 0;
}
.ag-theme-quartz .ag-chart-data-section label,
.ag-theme-quartz .ag-chart-format-section label,
.ag-theme-quartz-dark .ag-chart-data-section label,
.ag-theme-quartz-dark .ag-chart-format-section label,
.ag-theme-quartz-auto-dark .ag-chart-data-section label,
.ag-theme-quartz-auto-dark .ag-chart-format-section label {
  display: inline-block;
}
.ag-theme-quartz .ag-chart-format-wrapper,
.ag-theme-quartz .ag-chart-data-wrapper,
.ag-theme-quartz .ag-charts-format-top-level-group,
.ag-theme-quartz .ag-charts-format-top-level-group-title-bar,
.ag-theme-quartz .ag-charts-format-top-level-group .ag-charts-format-top-level-group-container,
.ag-theme-quartz .ag-charts-format-top-level-group-item,
.ag-theme-quartz .ag-charts-format-sub-level-group,
.ag-theme-quartz .ag-charts-format-sub-level-group-title-bar,
.ag-theme-quartz .ag-charts-format-sub-level-group-container,
.ag-theme-quartz .ag-charts-format-sub-level-group-item:last-child,
.ag-theme-quartz .ag-charts-format-sub-level-group-container > *,
.ag-theme-quartz .ag-charts-data-group-title-bar,
.ag-theme-quartz .ag-charts-data-group-container,
.ag-theme-quartz .ag-charts-settings-group-title-bar,
.ag-theme-quartz .ag-charts-settings-group-container,
.ag-theme-quartz-dark .ag-chart-format-wrapper,
.ag-theme-quartz-dark .ag-chart-data-wrapper,
.ag-theme-quartz-dark .ag-charts-format-top-level-group,
.ag-theme-quartz-dark .ag-charts-format-top-level-group-title-bar,
.ag-theme-quartz-dark .ag-charts-format-top-level-group .ag-charts-format-top-level-group-container,
.ag-theme-quartz-dark .ag-charts-format-top-level-group-item,
.ag-theme-quartz-dark .ag-charts-format-sub-level-group,
.ag-theme-quartz-dark .ag-charts-format-sub-level-group-title-bar,
.ag-theme-quartz-dark .ag-charts-format-sub-level-group-container,
.ag-theme-quartz-dark .ag-charts-format-sub-level-group-item:last-child,
.ag-theme-quartz-dark .ag-charts-format-sub-level-group-container > *,
.ag-theme-quartz-dark .ag-charts-data-group-title-bar,
.ag-theme-quartz-dark .ag-charts-data-group-container,
.ag-theme-quartz-dark .ag-charts-settings-group-title-bar,
.ag-theme-quartz-dark .ag-charts-settings-group-container,
.ag-theme-quartz-auto-dark .ag-chart-format-wrapper,
.ag-theme-quartz-auto-dark .ag-chart-data-wrapper,
.ag-theme-quartz-auto-dark .ag-charts-format-top-level-group,
.ag-theme-quartz-auto-dark .ag-charts-format-top-level-group-title-bar,
.ag-theme-quartz-auto-dark .ag-charts-format-top-level-group .ag-charts-format-top-level-group-container,
.ag-theme-quartz-auto-dark .ag-charts-format-top-level-group-item,
.ag-theme-quartz-auto-dark .ag-charts-format-sub-level-group,
.ag-theme-quartz-auto-dark .ag-charts-format-sub-level-group-title-bar,
.ag-theme-quartz-auto-dark .ag-charts-format-sub-level-group-container,
.ag-theme-quartz-auto-dark .ag-charts-format-sub-level-group-item:last-child,
.ag-theme-quartz-auto-dark .ag-charts-format-sub-level-group-container > *,
.ag-theme-quartz-auto-dark .ag-charts-data-group-title-bar,
.ag-theme-quartz-auto-dark .ag-charts-data-group-container,
.ag-theme-quartz-auto-dark .ag-charts-settings-group-title-bar,
.ag-theme-quartz-auto-dark .ag-charts-settings-group-container {
  padding: 0;
  margin: 0;
}
.ag-theme-quartz .ag-charts-format-top-level-group,
.ag-theme-quartz .ag-charts-data-group,
.ag-theme-quartz-dark .ag-charts-format-top-level-group,
.ag-theme-quartz-dark .ag-charts-data-group,
.ag-theme-quartz-auto-dark .ag-charts-format-top-level-group,
.ag-theme-quartz-auto-dark .ag-charts-data-group {
  border-top: var(--ag-borders-secondary) var(--ag-secondary-border-color);
}
.ag-theme-quartz .ag-charts-format-top-level-group-title-bar,
.ag-theme-quartz .ag-charts-data-group-title-bar,
.ag-theme-quartz .ag-charts-settings-group-title-bar,
.ag-theme-quartz-dark .ag-charts-format-top-level-group-title-bar,
.ag-theme-quartz-dark .ag-charts-data-group-title-bar,
.ag-theme-quartz-dark .ag-charts-settings-group-title-bar,
.ag-theme-quartz-auto-dark .ag-charts-format-top-level-group-title-bar,
.ag-theme-quartz-auto-dark .ag-charts-data-group-title-bar,
.ag-theme-quartz-auto-dark .ag-charts-settings-group-title-bar {
  padding: var(--ag-widget-container-vertical-padding) var(--ag-widget-container-horizontal-padding);
}
.ag-theme-quartz .ag-charts-format-top-level-group .ag-charts-format-top-level-group-container,
.ag-theme-quartz .ag-charts-data-group .ag-charts-data-group-container,
.ag-theme-quartz .ag-charts-settings-group .ag-charts-settings-group-container,
.ag-theme-quartz-dark .ag-charts-format-top-level-group .ag-charts-format-top-level-group-container,
.ag-theme-quartz-dark .ag-charts-data-group .ag-charts-data-group-container,
.ag-theme-quartz-dark .ag-charts-settings-group .ag-charts-settings-group-container,
.ag-theme-quartz-auto-dark .ag-charts-format-top-level-group .ag-charts-format-top-level-group-container,
.ag-theme-quartz-auto-dark .ag-charts-data-group .ag-charts-data-group-container,
.ag-theme-quartz-auto-dark .ag-charts-settings-group .ag-charts-settings-group-container {
  padding: 0 var(--ag-widget-container-horizontal-padding);
}
.ag-theme-quartz .ag-charts-format-sub-level-group-title-bar,
.ag-theme-quartz-dark .ag-charts-format-sub-level-group-title-bar,
.ag-theme-quartz-auto-dark .ag-charts-format-sub-level-group-title-bar {
  padding: var(--ag-widget-vertical-spacing) 0;
}
.ag-theme-quartz .ag-charts-format-sub-level-group-container,
.ag-theme-quartz-dark .ag-charts-format-sub-level-group-container,
.ag-theme-quartz-auto-dark .ag-charts-format-sub-level-group-container {
  padding-top: var(--ag-widget-vertical-spacing);
  padding-bottom: var(--ag-widget-container-vertical-padding);
}
.ag-theme-quartz .ag-charts-format-top-level-group-container > *,
.ag-theme-quartz .ag-charts-format-sub-level-group-container > *,
.ag-theme-quartz-dark .ag-charts-format-top-level-group-container > *,
.ag-theme-quartz-dark .ag-charts-format-sub-level-group-container > *,
.ag-theme-quartz-auto-dark .ag-charts-format-top-level-group-container > *,
.ag-theme-quartz-auto-dark .ag-charts-format-sub-level-group-container > * {
  margin-bottom: var(--ag-widget-vertical-spacing);
}
.ag-theme-quartz .ag-charts-data-group-item,
.ag-theme-quartz-dark .ag-charts-data-group-item,
.ag-theme-quartz-auto-dark .ag-charts-data-group-item {
  padding-bottom: var(--ag-widget-container-vertical-padding);
}
.ag-theme-quartz .ag-chart-settings-mini-wrapper,
.ag-theme-quartz-dark .ag-chart-settings-mini-wrapper,
.ag-theme-quartz-auto-dark .ag-chart-settings-mini-wrapper {
  padding-bottom: var(--ag-widget-container-vertical-padding);
}
.ag-theme-quartz .ag-chart-advanced-settings-section,
.ag-theme-quartz-dark .ag-chart-advanced-settings-section,
.ag-theme-quartz-auto-dark .ag-chart-advanced-settings-section {
  padding-top: var(--ag-widget-container-vertical-padding);
  padding-bottom: var(--ag-widget-container-vertical-padding);
}
.ag-theme-quartz .ag-charts-advanced-settings-top-level-group .ag-charts-advanced-settings-top-level-group-title-bar,
.ag-theme-quartz .ag-charts-advanced-settings-top-level-group .ag-charts-advanced-settings-top-level-group-container,
.ag-theme-quartz-dark .ag-charts-advanced-settings-top-level-group .ag-charts-advanced-settings-top-level-group-title-bar,
.ag-theme-quartz-dark .ag-charts-advanced-settings-top-level-group .ag-charts-advanced-settings-top-level-group-container,
.ag-theme-quartz-auto-dark .ag-charts-advanced-settings-top-level-group .ag-charts-advanced-settings-top-level-group-title-bar,
.ag-theme-quartz-auto-dark .ag-charts-advanced-settings-top-level-group .ag-charts-advanced-settings-top-level-group-container {
  padding: 0 var(--ag-widget-container-horizontal-padding);
}
.ag-theme-quartz .ag-charts-advanced-settings-top-level-group-container,
.ag-theme-quartz-dark .ag-charts-advanced-settings-top-level-group-container,
.ag-theme-quartz-auto-dark .ag-charts-advanced-settings-top-level-group-container {
  margin: 0;
}
.ag-theme-quartz .ag-charts-advanced-settings-top-level-group-item,
.ag-theme-quartz-dark .ag-charts-advanced-settings-top-level-group-item,
.ag-theme-quartz-auto-dark .ag-charts-advanced-settings-top-level-group-item {
  margin-top: calc(var(--ag-widget-vertical-spacing) * 2);
  margin-bottom: 0;
}
.ag-theme-quartz .ag-ltr .ag-group-title-bar-icon, .ag-theme-quartz-dark .ag-ltr .ag-group-title-bar-icon, .ag-theme-quartz-auto-dark .ag-ltr .ag-group-title-bar-icon {
  margin-right: var(--ag-grid-size);
}

.ag-theme-quartz .ag-rtl .ag-group-title-bar-icon, .ag-theme-quartz-dark .ag-rtl .ag-group-title-bar-icon, .ag-theme-quartz-auto-dark .ag-rtl .ag-group-title-bar-icon {
  margin-left: var(--ag-grid-size);
}

.ag-theme-quartz .ag-spectrum-color,
.ag-theme-quartz .ag-spectrum-fill,
.ag-theme-quartz-dark .ag-spectrum-color,
.ag-theme-quartz-dark .ag-spectrum-fill,
.ag-theme-quartz-auto-dark .ag-spectrum-color,
.ag-theme-quartz-auto-dark .ag-spectrum-fill {
  border-radius: var(--ag-border-radius);
}
.ag-theme-quartz .ag-spectrum-dragger,
.ag-theme-quartz-dark .ag-spectrum-dragger,
.ag-theme-quartz-auto-dark .ag-spectrum-dragger {
  border-radius: 18px;
  height: 18px;
  width: 18px;
  border: 3px solid white;
}
.ag-theme-quartz .ag-spectrum-tools,
.ag-theme-quartz-dark .ag-spectrum-tools,
.ag-theme-quartz-auto-dark .ag-spectrum-tools {
  padding-left: 0;
  padding-right: 0;
  padding-bottom: 0;
}
.ag-theme-quartz .ag-spectrum-tool,
.ag-theme-quartz-dark .ag-spectrum-tool,
.ag-theme-quartz-auto-dark .ag-spectrum-tool {
  height: 12px;
}
.ag-theme-quartz .ag-spectrum-hue-background,
.ag-theme-quartz .ag-spectrum-alpha-background,
.ag-theme-quartz-dark .ag-spectrum-hue-background,
.ag-theme-quartz-dark .ag-spectrum-alpha-background,
.ag-theme-quartz-auto-dark .ag-spectrum-hue-background,
.ag-theme-quartz-auto-dark .ag-spectrum-alpha-background {
  border-radius: 12px;
}
.ag-theme-quartz .ag-spectrum-slider,
.ag-theme-quartz-dark .ag-spectrum-slider,
.ag-theme-quartz-auto-dark .ag-spectrum-slider {
  margin-top: -15px;
  width: 18px;
  height: 18px;
  border-radius: 18px;
  border: 3px solid rgb(248, 248, 248);
}
.ag-theme-quartz .ag-recent-colors,
.ag-theme-quartz-dark .ag-recent-colors,
.ag-theme-quartz-auto-dark .ag-recent-colors {
  margin-left: var(--ag-grid-size);
  margin-right: var(--ag-grid-size);
  margin-bottom: 2px;
}
.ag-theme-quartz .ag-color-input-color,
.ag-theme-quartz .ag-color-picker-color,
.ag-theme-quartz .ag-recent-color,
.ag-theme-quartz-dark .ag-color-input-color,
.ag-theme-quartz-dark .ag-color-picker-color,
.ag-theme-quartz-dark .ag-recent-color,
.ag-theme-quartz-auto-dark .ag-color-input-color,
.ag-theme-quartz-auto-dark .ag-color-picker-color,
.ag-theme-quartz-auto-dark .ag-recent-color {
  border-radius: 4px;
}
.ag-theme-quartz .ag-recent-color,
.ag-theme-quartz-dark .ag-recent-color,
.ag-theme-quartz-auto-dark .ag-recent-color {
  border: var(--ag-borders-secondary) var(--ag-secondary-border-color);
}
.ag-theme-quartz.ag-dnd-ghost,
.ag-theme-quartz-dark.ag-dnd-ghost,
.ag-theme-quartz-auto-dark.ag-dnd-ghost {
  font-weight: 500;
}
.ag-theme-quartz .ag-standard-button,
.ag-theme-quartz-dark .ag-standard-button,
.ag-theme-quartz-auto-dark .ag-standard-button {
  font-family: inherit;
  -moz-appearance: none;
       appearance: none;
  -webkit-appearance: none;
  border-radius: var(--ag-border-radius);
  border: solid 1px var(--ag-input-border-color);
  background-color: var(--ag-background-color);
  padding: var(--ag-grid-size) calc(var(--ag-grid-size) * 2);
  cursor: pointer;
}
.ag-theme-quartz .ag-standard-button:hover,
.ag-theme-quartz-dark .ag-standard-button:hover,
.ag-theme-quartz-auto-dark .ag-standard-button:hover {
  background-color: var(--ag-row-hover-color);
}
.ag-theme-quartz .ag-standard-button:active,
.ag-theme-quartz-dark .ag-standard-button:active,
.ag-theme-quartz-auto-dark .ag-standard-button:active {
  border-color: var(--ag-active-color);
}
.ag-theme-quartz .ag-standard-button:disabled,
.ag-theme-quartz-dark .ag-standard-button:disabled,
.ag-theme-quartz-auto-dark .ag-standard-button:disabled {
  color: var(--ag-disabled-foreground-color);
  background-color: var(--ag-input-disabled-background-color);
  border-color: var(--ag-input-disabled-border-color);
}
.ag-theme-quartz .ag-column-drop-cell,
.ag-theme-quartz-dark .ag-column-drop-cell,
.ag-theme-quartz-auto-dark .ag-column-drop-cell {
  border-radius: calc(var(--ag-grid-size) * 3);
  height: calc(var(--ag-grid-size) * 3);
  padding: 0 var(--ag-grid-size);
}
.ag-theme-quartz .ag-column-drop-cell-button,
.ag-theme-quartz-dark .ag-column-drop-cell-button,
.ag-theme-quartz-auto-dark .ag-column-drop-cell-button {
  min-width: 0;
  margin: 0;
}
.ag-theme-quartz .ag-column-drop-cell-drag-handle,
.ag-theme-quartz-dark .ag-column-drop-cell-drag-handle,
.ag-theme-quartz-auto-dark .ag-column-drop-cell-drag-handle {
  margin-left: 0;
}
.ag-theme-quartz .ag-column-drop-vertical,
.ag-theme-quartz-dark .ag-column-drop-vertical,
.ag-theme-quartz-auto-dark .ag-column-drop-vertical {
  min-height: 75px;
}
.ag-theme-quartz .ag-column-drop-vertical-title-bar,
.ag-theme-quartz-dark .ag-column-drop-vertical-title-bar,
.ag-theme-quartz-auto-dark .ag-column-drop-vertical-title-bar {
  padding: var(--ag-widget-container-vertical-padding) calc(var(--ag-grid-size) * 2) 0;
}
.ag-theme-quartz .ag-ltr .ag-column-drop-vertical-icon, .ag-theme-quartz-dark .ag-ltr .ag-column-drop-vertical-icon, .ag-theme-quartz-auto-dark .ag-ltr .ag-column-drop-vertical-icon {
  margin-left: 0;
  margin-right: var(--ag-widget-horizontal-spacing);
}

.ag-theme-quartz .ag-rtl .ag-column-drop-vertical-icon, .ag-theme-quartz-dark .ag-rtl .ag-column-drop-vertical-icon, .ag-theme-quartz-auto-dark .ag-rtl .ag-column-drop-vertical-icon {
  margin-right: 0;
  margin-left: var(--ag-widget-horizontal-spacing);
}

.ag-theme-quartz .ag-column-drop-vertical-empty-message,
.ag-theme-quartz-dark .ag-column-drop-vertical-empty-message,
.ag-theme-quartz-auto-dark .ag-column-drop-vertical-empty-message {
  display: flex;
  align-items: center;
  justify-content: center;
  border: dashed 1px;
  border-color: var(--ag-border-color);
  margin: calc(var(--ag-grid-size) * 1.5) calc(var(--ag-grid-size) * 2);
  padding: calc(var(--ag-grid-size) * 2);
}
.ag-theme-quartz .ag-column-drop-empty-message,
.ag-theme-quartz-dark .ag-column-drop-empty-message,
.ag-theme-quartz-auto-dark .ag-column-drop-empty-message {
  color: var(--ag-foreground-color);
}
.ag-theme-quartz .ag-pill-select .ag-column-drop,
.ag-theme-quartz-dark .ag-pill-select .ag-column-drop,
.ag-theme-quartz-auto-dark .ag-pill-select .ag-column-drop {
  min-height: 0;
  min-height: initial;
}
.ag-theme-quartz .ag-pill-select .ag-picker-field-display,
.ag-theme-quartz-dark .ag-pill-select .ag-picker-field-display,
.ag-theme-quartz-auto-dark .ag-pill-select .ag-picker-field-display {
  font-weight: 500;
  color: var(--ag-chart-menu-pill-select-button-color);
}
.ag-theme-quartz .ag-pill-select .ag-picker-field-icon .ag-icon,
.ag-theme-quartz-dark .ag-pill-select .ag-picker-field-icon .ag-icon,
.ag-theme-quartz-auto-dark .ag-pill-select .ag-picker-field-icon .ag-icon {
  color: var(--ag-chart-menu-pill-select-button-color);
}
.ag-theme-quartz .ag-status-bar,
.ag-theme-quartz-dark .ag-status-bar,
.ag-theme-quartz-auto-dark .ag-status-bar {
  font-weight: normal;
}
.ag-theme-quartz .ag-status-name-value,
.ag-theme-quartz-dark .ag-status-name-value,
.ag-theme-quartz-auto-dark .ag-status-name-value {
  padding: var(--ag-widget-container-vertical-padding) 0;
}
.ag-theme-quartz .ag-status-name-value-value,
.ag-theme-quartz .ag-paging-number,
.ag-theme-quartz .ag-paging-row-summary-panel-number,
.ag-theme-quartz-dark .ag-status-name-value-value,
.ag-theme-quartz-dark .ag-paging-number,
.ag-theme-quartz-dark .ag-paging-row-summary-panel-number,
.ag-theme-quartz-auto-dark .ag-status-name-value-value,
.ag-theme-quartz-auto-dark .ag-paging-number,
.ag-theme-quartz-auto-dark .ag-paging-row-summary-panel-number {
  font-weight: 500;
}
.ag-theme-quartz .ag-column-drop-cell-button,
.ag-theme-quartz-dark .ag-column-drop-cell-button,
.ag-theme-quartz-auto-dark .ag-column-drop-cell-button {
  opacity: 0.75;
}
.ag-theme-quartz .ag-column-drop-cell-button:hover,
.ag-theme-quartz-dark .ag-column-drop-cell-button:hover,
.ag-theme-quartz-auto-dark .ag-column-drop-cell-button:hover {
  opacity: 1;
}
.ag-theme-quartz .ag-header-cell-menu-button,
.ag-theme-quartz .ag-header-cell-filter-button,
.ag-theme-quartz .ag-panel-title-bar-button,
.ag-theme-quartz .ag-header-expand-icon,
.ag-theme-quartz .ag-column-group-icons,
.ag-theme-quartz .ag-set-filter-group-icons,
.ag-theme-quartz .ag-group-expanded .ag-icon,
.ag-theme-quartz .ag-group-contracted .ag-icon,
.ag-theme-quartz .ag-chart-settings-prev,
.ag-theme-quartz .ag-chart-settings-next,
.ag-theme-quartz .ag-group-title-bar-icon,
.ag-theme-quartz .ag-column-select-header-icon,
.ag-theme-quartz .ag-floating-filter-button-button,
.ag-theme-quartz .ag-filter-toolpanel-expand,
.ag-theme-quartz .ag-panel-title-bar-button-icon,
.ag-theme-quartz .ag-chart-menu-icon,
.ag-theme-quartz-dark .ag-header-cell-menu-button,
.ag-theme-quartz-dark .ag-header-cell-filter-button,
.ag-theme-quartz-dark .ag-panel-title-bar-button,
.ag-theme-quartz-dark .ag-header-expand-icon,
.ag-theme-quartz-dark .ag-column-group-icons,
.ag-theme-quartz-dark .ag-set-filter-group-icons,
.ag-theme-quartz-dark .ag-group-expanded .ag-icon,
.ag-theme-quartz-dark .ag-group-contracted .ag-icon,
.ag-theme-quartz-dark .ag-chart-settings-prev,
.ag-theme-quartz-dark .ag-chart-settings-next,
.ag-theme-quartz-dark .ag-group-title-bar-icon,
.ag-theme-quartz-dark .ag-column-select-header-icon,
.ag-theme-quartz-dark .ag-floating-filter-button-button,
.ag-theme-quartz-dark .ag-filter-toolpanel-expand,
.ag-theme-quartz-dark .ag-panel-title-bar-button-icon,
.ag-theme-quartz-dark .ag-chart-menu-icon,
.ag-theme-quartz-auto-dark .ag-header-cell-menu-button,
.ag-theme-quartz-auto-dark .ag-header-cell-filter-button,
.ag-theme-quartz-auto-dark .ag-panel-title-bar-button,
.ag-theme-quartz-auto-dark .ag-header-expand-icon,
.ag-theme-quartz-auto-dark .ag-column-group-icons,
.ag-theme-quartz-auto-dark .ag-set-filter-group-icons,
.ag-theme-quartz-auto-dark .ag-group-expanded .ag-icon,
.ag-theme-quartz-auto-dark .ag-group-contracted .ag-icon,
.ag-theme-quartz-auto-dark .ag-chart-settings-prev,
.ag-theme-quartz-auto-dark .ag-chart-settings-next,
.ag-theme-quartz-auto-dark .ag-group-title-bar-icon,
.ag-theme-quartz-auto-dark .ag-column-select-header-icon,
.ag-theme-quartz-auto-dark .ag-floating-filter-button-button,
.ag-theme-quartz-auto-dark .ag-filter-toolpanel-expand,
.ag-theme-quartz-auto-dark .ag-panel-title-bar-button-icon,
.ag-theme-quartz-auto-dark .ag-chart-menu-icon {
  --ag-quartz-icon-hover-color: color-mix(in srgb, transparent, var(--ag-foreground-color) 10%);
}
.ag-theme-quartz .ag-header-cell-menu-button:hover,
.ag-theme-quartz .ag-header-cell-filter-button:hover,
.ag-theme-quartz .ag-panel-title-bar-button:hover,
.ag-theme-quartz .ag-header-expand-icon:hover,
.ag-theme-quartz .ag-column-group-icons:hover,
.ag-theme-quartz .ag-set-filter-group-icons:hover,
.ag-theme-quartz .ag-group-expanded .ag-icon:hover,
.ag-theme-quartz .ag-group-contracted .ag-icon:hover,
.ag-theme-quartz .ag-chart-settings-prev:hover,
.ag-theme-quartz .ag-chart-settings-next:hover,
.ag-theme-quartz .ag-group-title-bar-icon:hover,
.ag-theme-quartz .ag-column-select-header-icon:hover,
.ag-theme-quartz .ag-floating-filter-button-button:hover,
.ag-theme-quartz .ag-filter-toolpanel-expand:hover,
.ag-theme-quartz .ag-panel-title-bar-button-icon:hover,
.ag-theme-quartz .ag-chart-menu-icon:hover,
.ag-theme-quartz-dark .ag-header-cell-menu-button:hover,
.ag-theme-quartz-dark .ag-header-cell-filter-button:hover,
.ag-theme-quartz-dark .ag-panel-title-bar-button:hover,
.ag-theme-quartz-dark .ag-header-expand-icon:hover,
.ag-theme-quartz-dark .ag-column-group-icons:hover,
.ag-theme-quartz-dark .ag-set-filter-group-icons:hover,
.ag-theme-quartz-dark .ag-group-expanded .ag-icon:hover,
.ag-theme-quartz-dark .ag-group-contracted .ag-icon:hover,
.ag-theme-quartz-dark .ag-chart-settings-prev:hover,
.ag-theme-quartz-dark .ag-chart-settings-next:hover,
.ag-theme-quartz-dark .ag-group-title-bar-icon:hover,
.ag-theme-quartz-dark .ag-column-select-header-icon:hover,
.ag-theme-quartz-dark .ag-floating-filter-button-button:hover,
.ag-theme-quartz-dark .ag-filter-toolpanel-expand:hover,
.ag-theme-quartz-dark .ag-panel-title-bar-button-icon:hover,
.ag-theme-quartz-dark .ag-chart-menu-icon:hover,
.ag-theme-quartz-auto-dark .ag-header-cell-menu-button:hover,
.ag-theme-quartz-auto-dark .ag-header-cell-filter-button:hover,
.ag-theme-quartz-auto-dark .ag-panel-title-bar-button:hover,
.ag-theme-quartz-auto-dark .ag-header-expand-icon:hover,
.ag-theme-quartz-auto-dark .ag-column-group-icons:hover,
.ag-theme-quartz-auto-dark .ag-set-filter-group-icons:hover,
.ag-theme-quartz-auto-dark .ag-group-expanded .ag-icon:hover,
.ag-theme-quartz-auto-dark .ag-group-contracted .ag-icon:hover,
.ag-theme-quartz-auto-dark .ag-chart-settings-prev:hover,
.ag-theme-quartz-auto-dark .ag-chart-settings-next:hover,
.ag-theme-quartz-auto-dark .ag-group-title-bar-icon:hover,
.ag-theme-quartz-auto-dark .ag-column-select-header-icon:hover,
.ag-theme-quartz-auto-dark .ag-floating-filter-button-button:hover,
.ag-theme-quartz-auto-dark .ag-filter-toolpanel-expand:hover,
.ag-theme-quartz-auto-dark .ag-panel-title-bar-button-icon:hover,
.ag-theme-quartz-auto-dark .ag-chart-menu-icon:hover {
  border-radius: 1px;
  background-color: var(--ag-quartz-icon-hover-color);
  box-shadow: 0 0 0 4px var(--ag-quartz-icon-hover-color);
}
.ag-theme-quartz .ag-filter-active,
.ag-theme-quartz-dark .ag-filter-active,
.ag-theme-quartz-auto-dark .ag-filter-active {
  --ag-quartz-icon-active-color: color-mix(in srgb, transparent, var(--ag-active-color) 14%);
  --ag-quartz-icon-hover-color: color-mix(in srgb, transparent, var(--ag-active-color) 28%);
  position: relative;
  border-radius: 1px;
  background-color: var(--ag-quartz-icon-active-color);
  box-shadow: 0 0 0 4px var(--ag-quartz-icon-active-color);
}
.ag-theme-quartz .ag-filter-active::after,
.ag-theme-quartz-dark .ag-filter-active::after,
.ag-theme-quartz-auto-dark .ag-filter-active::after {
  content: "";
  position: absolute;
  width: 6px;
  height: 6px;
  top: -1px;
  right: -1px;
  border-radius: 50%;
  background-color: var(--ag-active-color);
}
.ag-theme-quartz .ag-filter-active .ag-icon-filter,
.ag-theme-quartz-dark .ag-filter-active .ag-icon-filter,
.ag-theme-quartz-auto-dark .ag-filter-active .ag-icon-filter {
  clip-path: path("M8,0C8,4.415 11.585,8 16,8L16,16L0,16L0,0L8,0Z");
}
.ag-theme-quartz .ag-chart-menu,
.ag-theme-quartz-dark .ag-chart-menu,
.ag-theme-quartz-auto-dark .ag-chart-menu {
  --ag-icon-size: 20px;
  background-color: color-mix(in srgb, transparent, var(--ag-background-color) 30%);
  padding: 4px 2px;
}
.ag-theme-quartz .ag-chart-menu-icon,
.ag-theme-quartz-dark .ag-chart-menu-icon,
.ag-theme-quartz-auto-dark .ag-chart-menu-icon {
  opacity: 0.8;
}
.ag-theme-quartz .ag-drag-handle,
.ag-theme-quartz-dark .ag-drag-handle,
.ag-theme-quartz-auto-dark .ag-drag-handle {
  color: var(--ag-icon-font-color);
}
.ag-theme-quartz .ag-menu-option-icon,
.ag-theme-quartz .ag-compact-menu-option-icon,
.ag-theme-quartz-dark .ag-menu-option-icon,
.ag-theme-quartz-dark .ag-compact-menu-option-icon,
.ag-theme-quartz-auto-dark .ag-menu-option-icon,
.ag-theme-quartz-auto-dark .ag-compact-menu-option-icon {
  width: var(--ag-icon-size);
  cursor: pointer;
}
.ag-theme-quartz .ag-ltr .ag-menu-option-icon, .ag-theme-quartz .ag-ltr .ag-compact-menu-option-icon, .ag-theme-quartz-dark .ag-ltr .ag-menu-option-icon, .ag-theme-quartz-dark .ag-ltr .ag-compact-menu-option-icon, .ag-theme-quartz-auto-dark .ag-ltr .ag-menu-option-icon, .ag-theme-quartz-auto-dark .ag-ltr .ag-compact-menu-option-icon {
  padding-left: calc(var(--ag-grid-size) * 1.5);
}

.ag-theme-quartz .ag-rtl .ag-menu-option-icon, .ag-theme-quartz .ag-rtl .ag-compact-menu-option-icon, .ag-theme-quartz-dark .ag-rtl .ag-menu-option-icon, .ag-theme-quartz-dark .ag-rtl .ag-compact-menu-option-icon, .ag-theme-quartz-auto-dark .ag-rtl .ag-menu-option-icon, .ag-theme-quartz-auto-dark .ag-rtl .ag-compact-menu-option-icon {
  padding-right: calc(var(--ag-grid-size) * 1.5);
}

.ag-theme-quartz .ag-chart-settings-card-item.ag-not-selected:hover,
.ag-theme-quartz-dark .ag-chart-settings-card-item.ag-not-selected:hover,
.ag-theme-quartz-auto-dark .ag-chart-settings-card-item.ag-not-selected:hover {
  opacity: 0.35;
}
.ag-theme-quartz .ag-ltr .ag-panel-title-bar-button, .ag-theme-quartz-dark .ag-ltr .ag-panel-title-bar-button, .ag-theme-quartz-auto-dark .ag-ltr .ag-panel-title-bar-button {
  margin-left: calc(var(--ag-grid-size) * 2);
  margin-right: var(--ag-grid-size);
}

.ag-theme-quartz .ag-rtl .ag-panel-title-bar-button, .ag-theme-quartz-dark .ag-rtl .ag-panel-title-bar-button, .ag-theme-quartz-auto-dark .ag-rtl .ag-panel-title-bar-button {
  margin-right: calc(var(--ag-grid-size) * 2);
  margin-left: var(--ag-grid-size);
}

.ag-theme-quartz .ag-multi-filter-group-title-bar,
.ag-theme-quartz-dark .ag-multi-filter-group-title-bar,
.ag-theme-quartz-auto-dark .ag-multi-filter-group-title-bar {
  padding: calc(var(--ag-grid-size) * 1.5) var(--ag-grid-size);
}
.ag-theme-quartz .ag-ltr .ag-filter-toolpanel-instance-body, .ag-theme-quartz-dark .ag-ltr .ag-filter-toolpanel-instance-body, .ag-theme-quartz-auto-dark .ag-ltr .ag-filter-toolpanel-instance-body {
  padding-left: var(--ag-grid-size);
}

.ag-theme-quartz .ag-rtl .ag-filter-toolpanel-instance-body, .ag-theme-quartz-dark .ag-rtl .ag-filter-toolpanel-instance-body, .ag-theme-quartz-auto-dark .ag-rtl .ag-filter-toolpanel-instance-body {
  padding-right: var(--ag-grid-size);
}

.ag-theme-quartz .ag-filter-toolpanel-instance-filter,
.ag-theme-quartz-dark .ag-filter-toolpanel-instance-filter,
.ag-theme-quartz-auto-dark .ag-filter-toolpanel-instance-filter {
  border: none;
  background-color: var(--ag-control-panel-background-color);
}
.ag-theme-quartz .ag-ltr .ag-filter-toolpanel-instance-filter, .ag-theme-quartz-dark .ag-ltr .ag-filter-toolpanel-instance-filter, .ag-theme-quartz-auto-dark .ag-ltr .ag-filter-toolpanel-instance-filter {
  margin-left: calc(var(--ag-icon-size) * 0.5);
}

.ag-theme-quartz .ag-rtl .ag-filter-toolpanel-instance-filter, .ag-theme-quartz-dark .ag-rtl .ag-filter-toolpanel-instance-filter, .ag-theme-quartz-auto-dark .ag-rtl .ag-filter-toolpanel-instance-filter {
  margin-right: calc(var(--ag-icon-size) * 0.5);
}

.ag-theme-quartz .ag-filter-toolpanel-group-level-0,
.ag-theme-quartz-dark .ag-filter-toolpanel-group-level-0,
.ag-theme-quartz-auto-dark .ag-filter-toolpanel-group-level-0 {
  border-top: none;
}
.ag-theme-quartz .ag-filter-toolpanel-header,
.ag-theme-quartz-dark .ag-filter-toolpanel-header,
.ag-theme-quartz-auto-dark .ag-filter-toolpanel-header {
  height: auto;
  height: initial;
  padding-top: var(--ag-grid-size);
  padding-bottom: var(--ag-grid-size);
}
.ag-theme-quartz .ag-filter-toolpanel-group-item,
.ag-theme-quartz-dark .ag-filter-toolpanel-group-item,
.ag-theme-quartz-auto-dark .ag-filter-toolpanel-group-item {
  margin: 0;
}
.ag-theme-quartz .ag-layout-auto-height .ag-center-cols-viewport,
.ag-theme-quartz .ag-layout-auto-height .ag-center-cols-container,
.ag-theme-quartz .ag-layout-print .ag-center-cols-viewport,
.ag-theme-quartz .ag-layout-print .ag-center-cols-container,
.ag-theme-quartz-dark .ag-layout-auto-height .ag-center-cols-viewport,
.ag-theme-quartz-dark .ag-layout-auto-height .ag-center-cols-container,
.ag-theme-quartz-dark .ag-layout-print .ag-center-cols-viewport,
.ag-theme-quartz-dark .ag-layout-print .ag-center-cols-container,
.ag-theme-quartz-auto-dark .ag-layout-auto-height .ag-center-cols-viewport,
.ag-theme-quartz-auto-dark .ag-layout-auto-height .ag-center-cols-container,
.ag-theme-quartz-auto-dark .ag-layout-print .ag-center-cols-viewport,
.ag-theme-quartz-auto-dark .ag-layout-print .ag-center-cols-container {
  min-height: 150px;
}
.ag-theme-quartz .ag-date-time-list-page-entry-is-current,
.ag-theme-quartz-dark .ag-date-time-list-page-entry-is-current,
.ag-theme-quartz-auto-dark .ag-date-time-list-page-entry-is-current {
  background-color: var(--ag-active-color);
}
.ag-theme-quartz .ag-advanced-filter-builder-button,
.ag-theme-quartz-dark .ag-advanced-filter-builder-button,
.ag-theme-quartz-auto-dark .ag-advanced-filter-builder-button {
  padding: var(--ag-grid-size);
  font-weight: 600;
}
.ag-theme-quartz .ag-advanced-filter-builder-item-button-disabled .ag-icon,
.ag-theme-quartz .ag-disabled .ag-icon,
.ag-theme-quartz .ag-column-select-column-group-readonly .ag-icon,
.ag-theme-quartz [disabled] .ag-icon,
.ag-theme-quartz-dark .ag-advanced-filter-builder-item-button-disabled .ag-icon,
.ag-theme-quartz-dark .ag-disabled .ag-icon,
.ag-theme-quartz-dark .ag-column-select-column-group-readonly .ag-icon,
.ag-theme-quartz-dark [disabled] .ag-icon,
.ag-theme-quartz-auto-dark .ag-advanced-filter-builder-item-button-disabled .ag-icon,
.ag-theme-quartz-auto-dark .ag-disabled .ag-icon,
.ag-theme-quartz-auto-dark .ag-column-select-column-group-readonly .ag-icon,
.ag-theme-quartz-auto-dark [disabled] .ag-icon {
  opacity: 0.6;
}
.ag-theme-quartz .ag-icon-grip,
.ag-theme-quartz-dark .ag-icon-grip,
.ag-theme-quartz-auto-dark .ag-icon-grip {
  opacity: 0.7;
}
.ag-theme-quartz .ag-column-select-column-readonly.ag-icon-grip,
.ag-theme-quartz .ag-column-select-column-readonly .ag-icon-grip,
.ag-theme-quartz-dark .ag-column-select-column-readonly.ag-icon-grip,
.ag-theme-quartz-dark .ag-column-select-column-readonly .ag-icon-grip,
.ag-theme-quartz-auto-dark .ag-column-select-column-readonly.ag-icon-grip,
.ag-theme-quartz-auto-dark .ag-column-select-column-readonly .ag-icon-grip {
  opacity: 0.35;
}
.ag-theme-quartz .ag-column-select-header-filter-wrapper .ag-input-wrapper::before,
.ag-theme-quartz .ag-filter-toolpanel-search .ag-input-wrapper::before,
.ag-theme-quartz .ag-mini-filter .ag-input-wrapper::before,
.ag-theme-quartz .ag-filter-filter .ag-input-wrapper::before,
.ag-theme-quartz-dark .ag-column-select-header-filter-wrapper .ag-input-wrapper::before,
.ag-theme-quartz-dark .ag-filter-toolpanel-search .ag-input-wrapper::before,
.ag-theme-quartz-dark .ag-mini-filter .ag-input-wrapper::before,
.ag-theme-quartz-dark .ag-filter-filter .ag-input-wrapper::before,
.ag-theme-quartz-auto-dark .ag-column-select-header-filter-wrapper .ag-input-wrapper::before,
.ag-theme-quartz-auto-dark .ag-filter-toolpanel-search .ag-input-wrapper::before,
.ag-theme-quartz-auto-dark .ag-mini-filter .ag-input-wrapper::before,
.ag-theme-quartz-auto-dark .ag-filter-filter .ag-input-wrapper::before {
  position: absolute;
  display: block;
  width: 12px;
  height: 12px;
  background-image: url(`+g+`);
  background-position: 50% 50%;
  background-size: contain;
  opacity: 0.4;
  content: "";
  filter: var(--ag-icon-filter);
}
.ag-theme-quartz .ag-ltr .ag-column-select-header-filter-wrapper .ag-input-wrapper::before, .ag-theme-quartz .ag-ltr .ag-filter-toolpanel-search .ag-input-wrapper::before, .ag-theme-quartz .ag-ltr .ag-mini-filter .ag-input-wrapper::before, .ag-theme-quartz .ag-ltr .ag-filter-filter .ag-input-wrapper::before, .ag-theme-quartz-dark .ag-ltr .ag-column-select-header-filter-wrapper .ag-input-wrapper::before, .ag-theme-quartz-dark .ag-ltr .ag-filter-toolpanel-search .ag-input-wrapper::before, .ag-theme-quartz-dark .ag-ltr .ag-mini-filter .ag-input-wrapper::before, .ag-theme-quartz-dark .ag-ltr .ag-filter-filter .ag-input-wrapper::before, .ag-theme-quartz-auto-dark .ag-ltr .ag-column-select-header-filter-wrapper .ag-input-wrapper::before, .ag-theme-quartz-auto-dark .ag-ltr .ag-filter-toolpanel-search .ag-input-wrapper::before, .ag-theme-quartz-auto-dark .ag-ltr .ag-mini-filter .ag-input-wrapper::before, .ag-theme-quartz-auto-dark .ag-ltr .ag-filter-filter .ag-input-wrapper::before {
  margin-left: var(--ag-grid-size);
}

.ag-theme-quartz .ag-rtl .ag-column-select-header-filter-wrapper .ag-input-wrapper::before, .ag-theme-quartz .ag-rtl .ag-filter-toolpanel-search .ag-input-wrapper::before, .ag-theme-quartz .ag-rtl .ag-mini-filter .ag-input-wrapper::before, .ag-theme-quartz .ag-rtl .ag-filter-filter .ag-input-wrapper::before, .ag-theme-quartz-dark .ag-rtl .ag-column-select-header-filter-wrapper .ag-input-wrapper::before, .ag-theme-quartz-dark .ag-rtl .ag-filter-toolpanel-search .ag-input-wrapper::before, .ag-theme-quartz-dark .ag-rtl .ag-mini-filter .ag-input-wrapper::before, .ag-theme-quartz-dark .ag-rtl .ag-filter-filter .ag-input-wrapper::before, .ag-theme-quartz-auto-dark .ag-rtl .ag-column-select-header-filter-wrapper .ag-input-wrapper::before, .ag-theme-quartz-auto-dark .ag-rtl .ag-filter-toolpanel-search .ag-input-wrapper::before, .ag-theme-quartz-auto-dark .ag-rtl .ag-mini-filter .ag-input-wrapper::before, .ag-theme-quartz-auto-dark .ag-rtl .ag-filter-filter .ag-input-wrapper::before {
  margin-right: var(--ag-grid-size);
}

.ag-theme-quartz .ag-ltr .ag-column-select-header-filter-wrapper input.ag-text-field-input, .ag-theme-quartz .ag-ltr .ag-column-select-header-filter-wrapper input.ag-number-field-input, .ag-theme-quartz .ag-ltr .ag-filter-toolpanel-search input.ag-text-field-input, .ag-theme-quartz .ag-ltr .ag-filter-toolpanel-search input.ag-number-field-input, .ag-theme-quartz .ag-ltr .ag-mini-filter input.ag-text-field-input, .ag-theme-quartz .ag-ltr .ag-mini-filter input.ag-number-field-input, .ag-theme-quartz .ag-ltr .ag-filter-filter input.ag-text-field-input, .ag-theme-quartz .ag-ltr .ag-filter-filter input.ag-number-field-input, .ag-theme-quartz-dark .ag-ltr .ag-column-select-header-filter-wrapper input.ag-text-field-input, .ag-theme-quartz-dark .ag-ltr .ag-column-select-header-filter-wrapper input.ag-number-field-input, .ag-theme-quartz-dark .ag-ltr .ag-filter-toolpanel-search input.ag-text-field-input, .ag-theme-quartz-dark .ag-ltr .ag-filter-toolpanel-search input.ag-number-field-input, .ag-theme-quartz-dark .ag-ltr .ag-mini-filter input.ag-text-field-input, .ag-theme-quartz-dark .ag-ltr .ag-mini-filter input.ag-number-field-input, .ag-theme-quartz-dark .ag-ltr .ag-filter-filter input.ag-text-field-input, .ag-theme-quartz-dark .ag-ltr .ag-filter-filter input.ag-number-field-input, .ag-theme-quartz-auto-dark .ag-ltr .ag-column-select-header-filter-wrapper input.ag-text-field-input, .ag-theme-quartz-auto-dark .ag-ltr .ag-column-select-header-filter-wrapper input.ag-number-field-input, .ag-theme-quartz-auto-dark .ag-ltr .ag-filter-toolpanel-search input.ag-text-field-input, .ag-theme-quartz-auto-dark .ag-ltr .ag-filter-toolpanel-search input.ag-number-field-input, .ag-theme-quartz-auto-dark .ag-ltr .ag-mini-filter input.ag-text-field-input, .ag-theme-quartz-auto-dark .ag-ltr .ag-mini-filter input.ag-number-field-input, .ag-theme-quartz-auto-dark .ag-ltr .ag-filter-filter input.ag-text-field-input, .ag-theme-quartz-auto-dark .ag-ltr .ag-filter-filter input.ag-number-field-input {
  padding-left: 26px;
}

.ag-theme-quartz .ag-rtl .ag-column-select-header-filter-wrapper input.ag-text-field-input, .ag-theme-quartz .ag-rtl .ag-column-select-header-filter-wrapper input.ag-number-field-input, .ag-theme-quartz .ag-rtl .ag-filter-toolpanel-search input.ag-text-field-input, .ag-theme-quartz .ag-rtl .ag-filter-toolpanel-search input.ag-number-field-input, .ag-theme-quartz .ag-rtl .ag-mini-filter input.ag-text-field-input, .ag-theme-quartz .ag-rtl .ag-mini-filter input.ag-number-field-input, .ag-theme-quartz .ag-rtl .ag-filter-filter input.ag-text-field-input, .ag-theme-quartz .ag-rtl .ag-filter-filter input.ag-number-field-input, .ag-theme-quartz-dark .ag-rtl .ag-column-select-header-filter-wrapper input.ag-text-field-input, .ag-theme-quartz-dark .ag-rtl .ag-column-select-header-filter-wrapper input.ag-number-field-input, .ag-theme-quartz-dark .ag-rtl .ag-filter-toolpanel-search input.ag-text-field-input, .ag-theme-quartz-dark .ag-rtl .ag-filter-toolpanel-search input.ag-number-field-input, .ag-theme-quartz-dark .ag-rtl .ag-mini-filter input.ag-text-field-input, .ag-theme-quartz-dark .ag-rtl .ag-mini-filter input.ag-number-field-input, .ag-theme-quartz-dark .ag-rtl .ag-filter-filter input.ag-text-field-input, .ag-theme-quartz-dark .ag-rtl .ag-filter-filter input.ag-number-field-input, .ag-theme-quartz-auto-dark .ag-rtl .ag-column-select-header-filter-wrapper input.ag-text-field-input, .ag-theme-quartz-auto-dark .ag-rtl .ag-column-select-header-filter-wrapper input.ag-number-field-input, .ag-theme-quartz-auto-dark .ag-rtl .ag-filter-toolpanel-search input.ag-text-field-input, .ag-theme-quartz-auto-dark .ag-rtl .ag-filter-toolpanel-search input.ag-number-field-input, .ag-theme-quartz-auto-dark .ag-rtl .ag-mini-filter input.ag-text-field-input, .ag-theme-quartz-auto-dark .ag-rtl .ag-mini-filter input.ag-number-field-input, .ag-theme-quartz-auto-dark .ag-rtl .ag-filter-filter input.ag-text-field-input, .ag-theme-quartz-auto-dark .ag-rtl .ag-filter-filter input.ag-number-field-input {
  padding-right: 26px;
}

.ag-theme-quartz .ag-ltr .ag-column-select-add-group-indent, .ag-theme-quartz-dark .ag-ltr .ag-column-select-add-group-indent, .ag-theme-quartz-auto-dark .ag-ltr .ag-column-select-add-group-indent {
  margin-left: calc(var(--ag-icon-size) + var(--ag-grid-size) * 1.5);
}

.ag-theme-quartz .ag-rtl .ag-column-select-add-group-indent, .ag-theme-quartz-dark .ag-rtl .ag-column-select-add-group-indent, .ag-theme-quartz-auto-dark .ag-rtl .ag-column-select-add-group-indent {
  margin-right: calc(var(--ag-icon-size) + var(--ag-grid-size) * 1.5);
}

.ag-theme-quartz .ag-text-field-input[disabled],
.ag-theme-quartz .ag-menu-option-disabled,
.ag-theme-quartz-dark .ag-text-field-input[disabled],
.ag-theme-quartz-dark .ag-menu-option-disabled,
.ag-theme-quartz-auto-dark .ag-text-field-input[disabled],
.ag-theme-quartz-auto-dark .ag-menu-option-disabled {
  cursor: not-allowed;
}
.ag-theme-quartz .ag-checkbox-input-wrapper.ag-checked.ag-disabled,
.ag-theme-quartz-dark .ag-checkbox-input-wrapper.ag-checked.ag-disabled,
.ag-theme-quartz-auto-dark .ag-checkbox-input-wrapper.ag-checked.ag-disabled {
  --ag-checkbox-checked-color: var(--ag-checkbox-unchecked-color);
}
.ag-theme-quartz .ag-checkbox-input,
.ag-theme-quartz .ag-toggle-button-input,
.ag-theme-quartz .ag-radio-button-input,
.ag-theme-quartz input[class^=ag-][type=range],
.ag-theme-quartz-dark .ag-checkbox-input,
.ag-theme-quartz-dark .ag-toggle-button-input,
.ag-theme-quartz-dark .ag-radio-button-input,
.ag-theme-quartz-dark input[class^=ag-][type=range],
.ag-theme-quartz-auto-dark .ag-checkbox-input,
.ag-theme-quartz-auto-dark .ag-toggle-button-input,
.ag-theme-quartz-auto-dark .ag-radio-button-input,
.ag-theme-quartz-auto-dark input[class^=ag-][type=range] {
  cursor: pointer;
}
.ag-theme-quartz .ag-details-row,
.ag-theme-quartz-dark .ag-details-row,
.ag-theme-quartz-auto-dark .ag-details-row {
  padding: calc(var(--ag-grid-size) * 3.75);
}
.ag-theme-quartz .ag-list-item-hovered::after,
.ag-theme-quartz-dark .ag-list-item-hovered::after,
.ag-theme-quartz-auto-dark .ag-list-item-hovered::after {
  background-color: var(--ag-active-color);
}
.ag-theme-quartz .ag-pill .ag-pill-button:hover,
.ag-theme-quartz-dark .ag-pill .ag-pill-button:hover,
.ag-theme-quartz-auto-dark .ag-pill .ag-pill-button:hover {
  color: var(--ag-active-color);
}
.ag-theme-quartz .ag-header-highlight-before::after,
.ag-theme-quartz .ag-header-highlight-after::after,
.ag-theme-quartz-dark .ag-header-highlight-before::after,
.ag-theme-quartz-dark .ag-header-highlight-after::after,
.ag-theme-quartz-auto-dark .ag-header-highlight-before::after,
.ag-theme-quartz-auto-dark .ag-header-highlight-after::after {
  background-color: var(--ag-active-color);
}

.ag-theme-quartz-dark .ag-column-select-header-filter-wrapper .ag-input-wrapper::before,
.ag-theme-quartz-dark .ag-filter-toolpanel-search .ag-input-wrapper::before,
.ag-theme-quartz-dark .ag-mini-filter .ag-input-wrapper::before,
.ag-theme-quartz-dark .ag-filter-filter .ag-input-wrapper::before {
  opacity: 0.66;
  filter: invert(100%);
}
.ag-theme-quartz-dark .ag-chart-menu {
  background-color: color-mix(in srgb, rgba(24, 39, 50, 0.3), var(--ag-background-color) 30%);
}
.ag-theme-quartz-dark .ag-text-field-input::-moz-placeholder {
  color: var(--ag-data-color);
  opacity: 0.8;
}
.ag-theme-quartz-dark .ag-text-field-input::placeholder {
  color: var(--ag-data-color);
  opacity: 0.8;
}
`,""]),x.A=r},4131:function(ne,x,p){var M=p(6758),A=p.n(M),F=p(935),D=p.n(F),f=p(62),v=p.n(f),u=new URL(p(8430),p.b),s=D()(A()),r=v()(u);s.push([ne.id,`@font-face {
  font-family: "agGridAlpine";
  src: url(`+r+`);
  font-weight: normal;
  font-style: normal;
}
`,""]),x.A=s},679:function(ne,x,p){var M=p(6758),A=p.n(M),F=p(935),D=p.n(F),f=p(62),v=p.n(f),u=new URL(p(9377),p.b),s=D()(A()),r=v()(u);s.push([ne.id,`@font-face {
  font-family: "agGridBalham";
  src: url(`+r+`);
  font-weight: normal;
  font-style: normal;
}
`,""]),x.A=s},4086:function(ne,x,p){var M=p(6758),A=p.n(M),F=p(935),D=p.n(F),f=p(62),v=p.n(f),u=new URL(p(7738),p.b),s=D()(A()),r=v()(u);s.push([ne.id,`@font-face {
  font-family: "agGridClassic";
  src: url(`+r+`);
  font-weight: normal;
  font-style: normal;
}
`,""]),x.A=s},2249:function(ne,x,p){var M=p(6758),A=p.n(M),F=p(935),D=p.n(F),f=p(62),v=p.n(f),u=new URL(p(6055),p.b),s=D()(A()),r=v()(u);s.push([ne.id,`@font-face {
  font-family: "agGridMaterial";
  src: url(`+r+`);
  font-weight: normal;
  font-style: normal;
}
`,""]),x.A=s},4011:function(ne,x,p){var M=p(6758),A=p.n(M),F=p(935),D=p.n(F),f=p(62),v=p.n(f),u=new URL(p(2006),p.b),s=D()(A()),r=v()(u);s.push([ne.id,`@font-face {
  font-family: "agGridQuartz";
  src: url(`+r+`);
  font-weight: normal;
  font-style: normal;
}
`,""]),x.A=s},935:function(ne){ne.exports=function(x){var p=[];return p.toString=function(){return this.map(function(M){var A="",F=M[5]!==void 0;return M[4]&&(A+="@supports (".concat(M[4],") {")),M[2]&&(A+="@media ".concat(M[2]," {")),F&&(A+="@layer".concat(M[5].length>0?" ".concat(M[5]):""," {")),A+=x(M),F&&(A+="}"),M[2]&&(A+="}"),M[4]&&(A+="}"),A}).join("")},p.i=function(M,A,F,D,f){typeof M=="string"&&(M=[[null,M,void 0]]);var v={};if(F)for(var u=0;u<this.length;u++){var s=this[u][0];s!=null&&(v[s]=!0)}for(var r=0;r<M.length;r++){var d=[].concat(M[r]);F&&v[d[0]]||(f!==void 0&&(d[5]===void 0||(d[1]="@layer".concat(d[5].length>0?" ".concat(d[5]):""," {").concat(d[1],"}")),d[5]=f),A&&(d[2]&&(d[1]="@media ".concat(d[2]," {").concat(d[1],"}")),d[2]=A),D&&(d[4]?(d[1]="@supports (".concat(d[4],") {").concat(d[1],"}"),d[4]=D):d[4]="".concat(D)),p.push(d))}},p}},62:function(ne){ne.exports=function(x,p){return p||(p={}),x&&(x=String(x.__esModule?x.default:x),/^['"].*['"]$/.test(x)&&(x=x.slice(1,-1)),p.hash&&(x+=p.hash),/["'() \t\n]|(%20)/.test(x)||p.needQuotes?'"'.concat(x.replace(/"/g,'\\"').replace(/\n/g,"\\n"),'"'):x)}},6758:function(ne){ne.exports=function(x){return x[1]}},140:function(ne,x,p){p.r(x);var M=p(2591),A=p.n(M),F=p(1740),D=p.n(F),f=p(8128),v=p.n(f),u=p(8021),s=p.n(u),r=p(3051),d=p.n(r),g=p(3656),m=p.n(g),b=p(8956),w={attributes:{"data-ag-scope":"legacy"}};w.styleTagTransform=m(),w.setAttributes=s(),w.insert=v().bind(null,"head"),w.domAPI=D(),w.insertStyleElement=d(),A()(b.A,w),x.default=b.A&&b.A.locals?b.A.locals:void 0},3795:function(ne,x,p){p.r(x);var M=p(2591),A=p.n(M),F=p(1740),D=p.n(F),f=p(8128),v=p.n(f),u=p(8021),s=p.n(u),r=p(3051),d=p.n(r),g=p(3656),m=p.n(g),b=p(8483),w={attributes:{"data-ag-scope":"legacy"}};w.styleTagTransform=m(),w.setAttributes=s(),w.insert=v().bind(null,"head"),w.domAPI=D(),w.insertStyleElement=d(),A()(b.A,w),x.default=b.A&&b.A.locals?b.A.locals:void 0},8481:function(ne,x,p){p.r(x);var M=p(2591),A=p.n(M),F=p(1740),D=p.n(F),f=p(8128),v=p.n(f),u=p(8021),s=p.n(u),r=p(3051),d=p.n(r),g=p(3656),m=p.n(g),b=p(7521),w={attributes:{"data-ag-scope":"legacy"}};w.styleTagTransform=m(),w.setAttributes=s(),w.insert=v().bind(null,"head"),w.domAPI=D(),w.insertStyleElement=d(),A()(b.A,w),x.default=b.A&&b.A.locals?b.A.locals:void 0},6655:function(ne,x,p){p.r(x);var M=p(2591),A=p.n(M),F=p(1740),D=p.n(F),f=p(8128),v=p.n(f),u=p(8021),s=p.n(u),r=p(3051),d=p.n(r),g=p(3656),m=p.n(g),b=p(4991),w={attributes:{"data-ag-scope":"legacy"}};w.styleTagTransform=m(),w.setAttributes=s(),w.insert=v().bind(null,"head"),w.domAPI=D(),w.insertStyleElement=d(),A()(b.A,w),x.default=b.A&&b.A.locals?b.A.locals:void 0},7229:function(ne,x,p){p.r(x);var M=p(2591),A=p.n(M),F=p(1740),D=p.n(F),f=p(8128),v=p.n(f),u=p(8021),s=p.n(u),r=p(3051),d=p.n(r),g=p(3656),m=p.n(g),b=p(2621),w={attributes:{"data-ag-scope":"legacy"}};w.styleTagTransform=m(),w.setAttributes=s(),w.insert=v().bind(null,"head"),w.domAPI=D(),w.insertStyleElement=d(),A()(b.A,w),x.default=b.A&&b.A.locals?b.A.locals:void 0},2885:function(ne,x,p){p.r(x);var M=p(2591),A=p.n(M),F=p(1740),D=p.n(F),f=p(8128),v=p.n(f),u=p(8021),s=p.n(u),r=p(3051),d=p.n(r),g=p(3656),m=p.n(g),b=p(8981),w={attributes:{"data-ag-scope":"legacy"}};w.styleTagTransform=m(),w.setAttributes=s(),w.insert=v().bind(null,"head"),w.domAPI=D(),w.insertStyleElement=d(),A()(b.A,w),x.default=b.A&&b.A.locals?b.A.locals:void 0},391:function(ne,x,p){p.r(x);var M=p(2591),A=p.n(M),F=p(1740),D=p.n(F),f=p(8128),v=p.n(f),u=p(8021),s=p.n(u),r=p(3051),d=p.n(r),g=p(3656),m=p.n(g),b=p(2935),w={attributes:{"data-ag-scope":"legacy"}};w.styleTagTransform=m(),w.setAttributes=s(),w.insert=v().bind(null,"head"),w.domAPI=D(),w.insertStyleElement=d(),A()(b.A,w),x.default=b.A&&b.A.locals?b.A.locals:void 0},9563:function(ne,x,p){p.r(x);var M=p(2591),A=p.n(M),F=p(1740),D=p.n(F),f=p(8128),v=p.n(f),u=p(8021),s=p.n(u),r=p(3051),d=p.n(r),g=p(3656),m=p.n(g),b=p(7899),w={attributes:{"data-ag-scope":"legacy"}};w.styleTagTransform=m(),w.setAttributes=s(),w.insert=v().bind(null,"head"),w.domAPI=D(),w.insertStyleElement=d(),A()(b.A,w),x.default=b.A&&b.A.locals?b.A.locals:void 0},4169:function(ne,x,p){p.r(x);var M=p(2591),A=p.n(M),F=p(1740),D=p.n(F),f=p(8128),v=p.n(f),u=p(8021),s=p.n(u),r=p(3051),d=p.n(r),g=p(3656),m=p.n(g),b=p(9561),w={attributes:{"data-ag-scope":"legacy"}};w.styleTagTransform=m(),w.setAttributes=s(),w.insert=v().bind(null,"head"),w.domAPI=D(),w.insertStyleElement=d(),A()(b.A,w),x.default=b.A&&b.A.locals?b.A.locals:void 0},8931:function(ne,x,p){p.r(x);var M=p(2591),A=p.n(M),F=p(1740),D=p.n(F),f=p(8128),v=p.n(f),u=p(8021),s=p.n(u),r=p(3051),d=p.n(r),g=p(3656),m=p.n(g),b=p(4131),w={attributes:{"data-ag-scope":"legacy"}};w.styleTagTransform=m(),w.setAttributes=s(),w.insert=v().bind(null,"head"),w.domAPI=D(),w.insertStyleElement=d(),A()(b.A,w),x.default=b.A&&b.A.locals?b.A.locals:void 0},5479:function(ne,x,p){p.r(x);var M=p(2591),A=p.n(M),F=p(1740),D=p.n(F),f=p(8128),v=p.n(f),u=p(8021),s=p.n(u),r=p(3051),d=p.n(r),g=p(3656),m=p.n(g),b=p(679),w={attributes:{"data-ag-scope":"legacy"}};w.styleTagTransform=m(),w.setAttributes=s(),w.insert=v().bind(null,"head"),w.domAPI=D(),w.insertStyleElement=d(),A()(b.A,w),x.default=b.A&&b.A.locals?b.A.locals:void 0},7894:function(ne,x,p){p.r(x);var M=p(2591),A=p.n(M),F=p(1740),D=p.n(F),f=p(8128),v=p.n(f),u=p(8021),s=p.n(u),r=p(3051),d=p.n(r),g=p(3656),m=p.n(g),b=p(4086),w={attributes:{"data-ag-scope":"legacy"}};w.styleTagTransform=m(),w.setAttributes=s(),w.insert=v().bind(null,"head"),w.domAPI=D(),w.insertStyleElement=d(),A()(b.A,w),x.default=b.A&&b.A.locals?b.A.locals:void 0},4665:function(ne,x,p){p.r(x);var M=p(2591),A=p.n(M),F=p(1740),D=p.n(F),f=p(8128),v=p.n(f),u=p(8021),s=p.n(u),r=p(3051),d=p.n(r),g=p(3656),m=p.n(g),b=p(2249),w={attributes:{"data-ag-scope":"legacy"}};w.styleTagTransform=m(),w.setAttributes=s(),w.insert=v().bind(null,"head"),w.domAPI=D(),w.insertStyleElement=d(),A()(b.A,w),x.default=b.A&&b.A.locals?b.A.locals:void 0},8811:function(ne,x,p){p.r(x);var M=p(2591),A=p.n(M),F=p(1740),D=p.n(F),f=p(8128),v=p.n(f),u=p(8021),s=p.n(u),r=p(3051),d=p.n(r),g=p(3656),m=p.n(g),b=p(4011),w={attributes:{"data-ag-scope":"legacy"}};w.styleTagTransform=m(),w.setAttributes=s(),w.insert=v().bind(null,"head"),w.domAPI=D(),w.insertStyleElement=d(),A()(b.A,w),x.default=b.A&&b.A.locals?b.A.locals:void 0},2591:function(ne){var x=[];function p(F){for(var D=-1,f=0;f<x.length;f++)if(x[f].identifier===F){D=f;break}return D}function M(F,D){for(var f={},v=[],u=0;u<F.length;u++){var s=F[u],r=D.base?s[0]+D.base:s[0],d=f[r]||0,g="".concat(r," ").concat(d);f[r]=d+1;var m=p(g),b={css:s[1],media:s[2],sourceMap:s[3],supports:s[4],layer:s[5]};if(m!==-1)x[m].references++,x[m].updater(b);else{var w=A(b,D);D.byIndex=u,x.splice(u,0,{identifier:g,updater:w,references:1})}v.push(g)}return v}function A(F,D){var f=D.domAPI(D);return f.update(F),function(v){if(v){if(v.css===F.css&&v.media===F.media&&v.sourceMap===F.sourceMap&&v.supports===F.supports&&v.layer===F.layer)return;f.update(F=v)}else f.remove()}}ne.exports=function(F,D){var f=M(F=F||[],D=D||{});return function(v){v=v||[];for(var u=0;u<f.length;u++){var s=p(f[u]);x[s].references--}for(var r=M(v,D),d=0;d<f.length;d++){var g=p(f[d]);x[g].references===0&&(x[g].updater(),x.splice(g,1))}f=r}}},8128:function(ne){var x={};ne.exports=function(p,M){var A=function(F){if(x[F]===void 0){var D=document.querySelector(F);if(window.HTMLIFrameElement&&D instanceof window.HTMLIFrameElement)try{D=D.contentDocument.head}catch(f){D=null}x[F]=D}return x[F]}(p);if(!A)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");A.appendChild(M)}},3051:function(ne){ne.exports=function(x){var p=document.createElement("style");return x.setAttributes(p,x.attributes),x.insert(p,x.options),p}},8021:function(ne){ne.exports=function(x,p){Object.keys(p).forEach(function(M){x.setAttribute(M,p[M])})}},1740:function(ne){ne.exports=function(x){if(typeof document=="undefined")return{update:function(){},remove:function(){}};var p=x.insertStyleElement(x);return{update:function(M){(function(A,F,D){var f="";D.supports&&(f+="@supports (".concat(D.supports,") {")),D.media&&(f+="@media ".concat(D.media," {"));var v=D.layer!==void 0;v&&(f+="@layer".concat(D.layer.length>0?" ".concat(D.layer):""," {")),f+=D.css,v&&(f+="}"),D.media&&(f+="}"),D.supports&&(f+="}");var u=D.sourceMap;u&&typeof btoa!="undefined"&&(f+=`
/*# sourceMappingURL=data:application/json;base64,`.concat(btoa(unescape(encodeURIComponent(JSON.stringify(u))))," */")),F.styleTagTransform(f,A,F.options)})(p,x,M)},remove:function(){(function(M){if(M.parentNode===null)return!1;M.parentNode.removeChild(M)})(p)}}}},3656:function(ne){ne.exports=function(x,p){if(p.styleSheet)p.styleSheet.cssText=x;else{for(;p.firstChild;)p.removeChild(p.firstChild);p.appendChild(document.createTextNode(x))}}},2074:function(ne,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.AlignedGridsModule=void 0;let M=p(7205),A=p(8963);x.AlignedGridsModule={moduleName:"AlignedGrids",version:M.VERSION,beans:[A.AlignedGridsService]}},8963:function(ne,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.AlignedGridsService=void 0;let M=p(5266),A=p(8731),F=p(7764);class D extends A.BeanStub{constructor(){super(...arguments),this.beanName="alignedGridsSvc",this.consuming=!1}getAlignedGridApis(){var s;let v=(s=this.gos.get("alignedGrids"))!=null?s:[],u=typeof v=="function";return typeof v=="function"&&(v=v()),v.map(r=>{var g;if(!r)return(0,F._error)(18),void(u||(0,F._error)(20));if(this.isGridApi(r))return r;let d=r;return"current"in d?(g=d.current)==null?void 0:g.api:(d.api||(0,F._error)(19),d.api)}).filter(r=>!!r&&!r.isDestroyed())}isGridApi(v){return!!v&&!!v.dispatchEvent}postConstruct(){let v=this.fireColumnEvent.bind(this);this.addManagedEventListeners({columnMoved:v,columnVisible:v,columnPinned:v,columnGroupOpened:v,columnResized:v,bodyScroll:this.fireScrollEvent.bind(this),alignedGridColumn:({event:u})=>this.onColumnEvent(u),alignedGridScroll:({event:u})=>this.onScrollEvent(u)})}fireEvent(v){this.consuming||this.getAlignedGridApis().forEach(u=>{u.isDestroyed()||u.dispatchEvent(v)})}onEvent(v){this.consuming=!0,v(),this.consuming=!1}fireColumnEvent(v){this.fireEvent({type:"alignedGridColumn",event:v})}fireScrollEvent(v){v.direction==="horizontal"&&this.fireEvent({type:"alignedGridScroll",event:v})}onScrollEvent(v){this.onEvent(()=>{this.beans.ctrlsSvc.getScrollFeature().setHorizontalScrollPosition(v.left,!0)})}extractDataFromEvent(v,u){let s=[];return v.columns?v.columns.forEach(r=>{s.push(u(r))}):v.column&&s.push(u(v.column)),s}getMasterColumns(v){return this.extractDataFromEvent(v,u=>u)}getColumnIds(v){return this.extractDataFromEvent(v,u=>u.getColId())}onColumnEvent(v){this.onEvent(()=>{switch(v.type){case"columnMoved":case"columnVisible":case"columnPinned":case"columnResized":this.processColumnEvent(v);break;case"columnGroupOpened":this.processGroupOpenedEvent(v);break;case"columnPivotChanged":(0,F._warn)(21)}})}processGroupOpenedEvent(v){let{colGroupSvc:u}=this.beans;u&&v.columnGroups.forEach(s=>{let r=null;s&&(r=u.getProvidedColGroup(s.getGroupId())),s&&!r||u.setColumnGroupOpened(r,s.isExpanded(),"alignedGridChanged")})}processColumnEvent(v){var k;let u=v.column,s=null,r=this.beans,{colResize:d,ctrlsSvc:g,colModel:m}=r;if(u&&(s=m.getColDefCol(u.getColId())),u&&!s)return;let b=this.getMasterColumns(v);switch(v.type){case"columnMoved":{let R=v.api.getColumnState().map(T=>({colId:T.colId}));(0,M._applyColumnState)(r,{state:R,applyOrder:!0},"alignedGridChanged")}break;case"columnVisible":{let R=v.api.getColumnState().map(T=>({colId:T.colId,hide:T.hide}));(0,M._applyColumnState)(r,{state:R},"alignedGridChanged")}break;case"columnPinned":{let R=v.api.getColumnState().map(T=>({colId:T.colId,pinned:T.pinned}));(0,M._applyColumnState)(r,{state:R},"alignedGridChanged")}break;case"columnResized":{let R=v,T={};b.forEach(z=>{T[z.getId()]={key:z.getColId(),newWidth:z.getActualWidth()}}),(k=R.flexColumns)==null||k.forEach(z=>{T[z.getId()]&&delete T[z.getId()]}),d==null||d.setColumnWidths(Object.values(T),!1,R.finished,"alignedGridChanged");break}}let w=g.getGridBodyCtrl().isVerticalScrollShowing();this.getAlignedGridApis().forEach(R=>{R.setGridOption("alwaysShowVerticalScroll",w)})}}x.AlignedGridsService=D},1621:function(ne,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.AllCommunityModule=void 0;let M=p(2074),A=p(9642),F=p(9722),D=p(9722),f=p(3856),v=p(1690),u=p(2027),s=p(9734),r=p(4388),d=p(4652),g=p(5432),m=p(4002),b=p(9410),w=p(9519),k=p(6989),R=p(1824),T=p(5423),z=p(3498),G=p(6964),U=p(4577),X=p(3352),Q=p(8594),oe=p(4658),le=p(5010),fe=p(6431),ye=p(7205);x.AllCommunityModule={moduleName:"AllCommunity",version:ye.VERSION,dependsOn:[F.ClientSideRowModelModule,s.CsvExportModule,m.InfiniteRowModelModule,le.ValidationModule,d.TextEditorModule,d.NumberEditorModule,d.DateEditorModule,d.CheckboxEditorModule,d.SelectEditorModule,d.LargeTextEditorModule,d.CustomEditorModule,d.UndoRedoEditModule,g.TextFilterModule,g.NumberFilterModule,g.DateFilterModule,g.CustomFilterModule,g.QuickFilterModule,g.ExternalFilterModule,k.GridStateModule,M.AlignedGridsModule,R.PaginationModule,u.ColumnApiModule,A.RowApiModule,A.ScrollApiModule,G.RenderApiModule,f.ColumnAutoSizeModule,r.RowDragModule,T.PinnedRowModule,X.RowSelectionModule,fe.ValueCacheModule,Q.CellStyleModule,v.ColumnHoverModule,Q.RowStyleModule,b.EventApiModule,fe.CellApiModule,z.HighlightChangesModule,oe.TooltipModule,w.LocaleModule,U.RowAutoHeightModule,r.DragAndDropModule,D.ClientSideRowModelApiModule]}},3907:function(ne,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.ApiFunctionService=void 0;let M=p(8731),A=p(7764),F=p(7689),D={isDestroyed:()=>!0,destroy(){},preConstruct(){},postConstruct(){},preWireBeans(){},wireBeans(){}},f=(s,r)=>s.eventSvc.dispatchEvent(r);class v{}Reflect.defineProperty(v,"name",{value:"GridApi"});class u extends M.BeanStub{constructor(){super(),this.beanName="apiFunctionSvc",this.api=new v,this.fns=et(pe({},D),{dispatchEvent:f}),this.preDestroyLink="";let{api:r}=this;for(let d of Object.keys(F.gridApiFunctionsMap))r[d]=this.makeApi(d)[d]}postConstruct(){this.preDestroyLink=this.beans.frameworkOverrides.getDocLink("grid-lifecycle/#grid-pre-destroyed")}addFunction(r,d){var b,w;let{fns:g,beans:m}=this;g!==D&&(g[r]=(w=(b=m==null?void 0:m.validation)==null?void 0:b.validateApiFunction(r,d))!=null?w:d)}makeApi(r){return{[r]:(...d)=>{let{beans:g,fns:{[r]:m}}=this;return m?m(g,...d):this.apiNotFound(r)}}}apiNotFound(r){let{beans:d,gos:g,preDestroyLink:m}=this;if(d){let b=F.gridApiFunctionsMap[r];g.assertModuleRegistered(b,`api.${r}`)&&(0,A._warn)(27,{fnName:r,module:b})}else(0,A._warn)(26,{fnName:r,preDestroyLink:m})}destroy(){super.destroy(),this.fns=D,this.beans=null}}x.ApiFunctionService=u},9642:function(ne,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.ScrollApiModule=x.RowApiModule=void 0;let M=p(7205),A=p(8192),F=p(1765);x.RowApiModule={moduleName:"RowApi",version:M.VERSION,apiFunctions:{redrawRows:A.redrawRows,setRowNodeExpanded:A.setRowNodeExpanded,getRowNode:A.getRowNode,addRenderedRowListener:A.addRenderedRowListener,getRenderedNodes:A.getRenderedNodes,forEachNode:A.forEachNode,getFirstDisplayedRowIndex:A.getFirstDisplayedRowIndex,getLastDisplayedRowIndex:A.getLastDisplayedRowIndex,getDisplayedRowAtIndex:A.getDisplayedRowAtIndex,getDisplayedRowCount:A.getDisplayedRowCount}},x.ScrollApiModule={moduleName:"ScrollApi",version:M.VERSION,apiFunctions:{getVerticalPixelRange:F.getVerticalPixelRange,getHorizontalPixelRange:F.getHorizontalPixelRange,ensureColumnVisible:F.ensureColumnVisible,ensureIndexVisible:F.ensureIndexVisible,ensureNodeVisible:F.ensureNodeVisible}}},6433:function(ne,x){Object.defineProperty(x,"__esModule",{value:!0}),x.createGridApi=void 0,x.createGridApi=function(p){return{beanName:"gridApi",bean:p.getBean("apiFunctionSvc").api}}},9875:function(ne,x){function p(M,A){M.gos.updateGridOptions({options:A})}Object.defineProperty(x,"__esModule",{value:!0}),x.updateGridOptions=x.setGridOption=x.getGridOption=x.isDestroyed=x.destroy=x.getGridId=void 0,x.getGridId=function(M){return M.context.getGridId()},x.destroy=function(M){M.gridDestroySvc.destroy()},x.isDestroyed=function(M){return M.gridDestroySvc.destroyCalled},x.getGridOption=function(M,A){return M.gos.get(A)},x.setGridOption=function(M,A,F){p(M,{[A]:F})},x.updateGridOptions=p},9513:function(ne,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.onRowHeightChanged=x.collapseAll=x.expandAll=void 0;let M=p(6876);x.expandAll=function(A){var F;(F=A.expansionSvc)==null||F.expandAll(!0)},x.collapseAll=function(A){var F;(F=A.expansionSvc)==null||F.expandAll(!1)},x.onRowHeightChanged=function(A){let F=(0,M._getClientSideRowModel)(A),D=(0,M._getServerSideRowModel)(A);F?F.onRowHeightChanged():D&&D.onRowHeightChanged()}},7689:function(ne,x){Object.defineProperty(x,"__esModule",{value:!0}),x.gridApiFunctionsMap=void 0;let p=(M,A)=>{for(let F of Object.keys(A))A[F]=M;return A};x.gridApiFunctionsMap=pe(pe(pe(pe(pe(pe(pe(pe(pe(pe(pe(pe(pe(pe(pe(pe(pe(pe(pe(pe(pe(pe(pe(pe(pe(pe(pe(pe(pe(pe(pe(pe(pe(pe(pe(pe(pe(pe(pe(pe(pe(pe(pe(pe(pe(pe(pe({dispatchEvent:"CommunityCore"},p("CommunityCore",{destroy:0,getGridId:0,getGridOption:0,isDestroyed:0,setGridOption:0,updateGridOptions:0})),p("GridState",{getState:0})),p("SharedRowSelection",{setNodesSelected:0,selectAll:0,deselectAll:0,selectAllFiltered:0,deselectAllFiltered:0,selectAllOnCurrentPage:0,deselectAllOnCurrentPage:0,getSelectedNodes:0,getSelectedRows:0})),p("RowApi",{redrawRows:0,setRowNodeExpanded:0,getRowNode:0,addRenderedRowListener:0,getRenderedNodes:0,forEachNode:0,getFirstDisplayedRowIndex:0,getLastDisplayedRowIndex:0,getDisplayedRowAtIndex:0,getDisplayedRowCount:0})),p("ScrollApi",{getVerticalPixelRange:0,getHorizontalPixelRange:0,ensureColumnVisible:0,ensureIndexVisible:0,ensureNodeVisible:0})),p("KeyboardNavigation",{getFocusedCell:0,clearFocusedCell:0,setFocusedCell:0,tabToNextCell:0,tabToPreviousCell:0,setFocusedHeader:0})),p("EventApi",{addEventListener:0,addGlobalListener:0,removeEventListener:0,removeGlobalListener:0})),p("ValueCache",{expireValueCache:0})),p("CellApi",{getCellValue:0})),p("SharedMenu",{showColumnMenu:0,hidePopupMenu:0})),p("Sort",{onSortChanged:0})),p("PinnedRow",{getPinnedTopRowCount:0,getPinnedBottomRowCount:0,getPinnedTopRow:0,getPinnedBottomRow:0})),p("Overlay",{showLoadingOverlay:0,showNoRowsOverlay:0,hideOverlay:0})),p("RenderApi",{setGridAriaProperty:0,refreshCells:0,refreshHeader:0,isAnimationFrameQueueEmpty:0,flushAllAnimationFrames:0,getSizesForCurrentTheme:0,getCellRendererInstances:0})),p("HighlightChanges",{flashCells:0})),p("RowDrag",{addRowDropZone:0,removeRowDropZone:0,getRowDropZoneParams:0})),p("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})),p("ColumnAutoSize",{sizeColumnsToFit:0,autoSizeColumns:0,autoSizeAllColumns:0})),p("ColumnGroup",{setColumnGroupOpened:0,getColumnGroup:0,getProvidedColumnGroup:0,getDisplayNameForColumnGroup:0,getColumnGroupState:0,setColumnGroupState:0,resetColumnGroupState:0,getLeftDisplayedColumnGroups:0,getCenterDisplayedColumnGroups:0,getRightDisplayedColumnGroups:0,getAllDisplayedColumnGroups:0})),p("ColumnMove",{moveColumnByIndex:0,moveColumns:0})),p("ColumnResize",{setColumnWidths:0})),p("ColumnHover",{isColumnHovered:0})),p("EditCore",{getCellEditorInstances:0,getEditingCells:0,stopEditing:0,startEditingCell:0})),p("UndoRedoEdit",{undoCellEditing:0,redoCellEditing:0,getCurrentUndoSize:0,getCurrentRedoSize:0})),p("FilterCore",{isAnyFilterPresent:0,onFilterChanged:0})),p("ColumnFilter",{isColumnFilterPresent:0,getColumnFilterInstance:0,destroyFilter:0,setFilterModel:0,getFilterModel:0,getColumnFilterModel:0,setColumnFilterModel:0,showColumnFilter:0})),p("QuickFilter",{isQuickFilterPresent:0,getQuickFilter:0,resetQuickFilter:0})),p("Pagination",{paginationIsLastPageFound:0,paginationGetPageSize:0,paginationGetCurrentPage:0,paginationGetTotalPages:0,paginationGetRowCount:0,paginationGoToNextPage:0,paginationGoToPreviousPage:0,paginationGoToFirstPage:0,paginationGoToLastPage:0,paginationGoToPage:0})),p("CsrmSsrmSharedApi",{expandAll:0,collapseAll:0,onRowHeightChanged:0})),p("SsrmInfiniteSharedApi",{setRowCount:0,getCacheBlockState:0,isLastRowIndexKnown:0})),p("ClientSideRowModelApi",{onGroupExpandedOrCollapsed:0,refreshClientSideRowModel:0,isRowDataEmpty:0,forEachLeafNode:0,forEachNodeAfterFilter:0,forEachNodeAfterFilterAndSort:0,resetRowHeights:0,applyTransaction:0,applyTransactionAsync:0,flushAsyncTransactions:0,getBestCostNodeSelection:0})),p("CsvExport",{getDataAsCsv:0,exportDataAsCsv:0})),p("InfiniteRowModel",{refreshInfiniteCache:0,purgeInfiniteCache:0,getInfiniteRowCount:0})),p("AdvancedFilter",{getAdvancedFilterModel:0,setAdvancedFilterModel:0,showAdvancedFilterBuilder:0,hideAdvancedFilterBuilder:0})),p("IntegratedCharts",{getChartModels:0,getChartRef:0,getChartImageDataURL:0,downloadChart:0,openChartToolPanel:0,closeChartToolPanel:0,createRangeChart:0,createPivotChart:0,createCrossFilterChart:0,updateChart:0,restoreChart:0})),p("Clipboard",{copyToClipboard:0,cutToClipboard:0,copySelectedRowsToClipboard:0,copySelectedRangeToClipboard:0,copySelectedRangeDown:0,pasteFromClipboard:0})),p("ExcelExport",{getDataAsExcel:0,exportDataAsExcel:0,getSheetDataForExcel:0,getMultipleSheetsAsExcel:0,exportMultipleSheetsAsExcel:0})),p("SharedMasterDetail",{addDetailGridInfo:0,removeDetailGridInfo:0,getDetailGridInfo:0,forEachDetailGridInfo:0})),p("ContextMenu",{showContextMenu:0})),p("ColumnMenu",{showColumnChooser:0,hideColumnChooser:0})),p("CellSelection",{getCellRanges:0,addCellRange:0,clearRangeSelection:0,clearCellSelection:0})),p("SharedRowGrouping",{setRowGroupColumns:0,removeRowGroupColumns:0,addRowGroupColumns:0,getRowGroupColumns:0,moveRowGroupColumn:0})),p("SharedAggregation",{addAggFuncs:0,clearAggFuncs:0,setColumnAggFunc:0})),p("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})),p("ServerSideRowModelApi",{getServerSideSelectionState:0,setServerSideSelectionState:0,applyServerSideTransaction:0,applyServerSideTransactionAsync:0,applyServerSideRowData:0,retryServerSideLoads:0,flushServerSideAsyncTransactions:0,refreshServerSide:0,getServerSideGroupLevelState:0})),p("SideBar",{isSideBarVisible:0,setSideBarVisible:0,setSideBarPosition:0,openToolPanel:0,closeToolPanel:0,getOpenedToolPanel:0,refreshToolPanel:0,isToolPanelShowing:0,getToolPanelInstance:0,getSideBar:0})),p("StatusBar",{getStatusPanel:0}))},8192:function(ne,x){Object.defineProperty(x,"__esModule",{value:!0}),x.getDisplayedRowCount=x.getDisplayedRowAtIndex=x.getLastDisplayedRowIndex=x.getFirstDisplayedRowIndex=x.forEachNode=x.getRenderedNodes=x.addRenderedRowListener=x.getRowNode=x.setRowNodeExpanded=x.redrawRows=void 0,x.redrawRows=function(p,M={}){let A=M?M.rowNodes:void 0;p.frameworkOverrides.wrapIncoming(()=>p.rowRenderer.redrawRows(A))},x.setRowNodeExpanded=function p(M,A,F,D,f){A&&(D&&A.parent&&A.parent.level!==-1&&p(M,A.parent,F,D,f),A.setExpanded(F,void 0,f))},x.getRowNode=function(p,M){return p.rowModel.getRowNode(M)},x.addRenderedRowListener=function(p,M,A,F){p.rowRenderer.addRenderedRowListener(M,A,F)},x.getRenderedNodes=function(p){return p.rowRenderer.getRenderedNodes()},x.forEachNode=function(p,M,A){p.rowModel.forEachNode(M,A)},x.getFirstDisplayedRowIndex=function(p){return p.rowRenderer.firstRenderedRow},x.getLastDisplayedRowIndex=function(p){return p.rowRenderer.lastRenderedRow},x.getDisplayedRowAtIndex=function(p,M){return p.rowModel.getRow(M)},x.getDisplayedRowCount=function(p){return p.rowModel.getRowCount()}},6876:function(ne,x){Object.defineProperty(x,"__esModule",{value:!0}),x._getServerSideRowModel=x._getInfiniteRowModel=x._getClientSideRowModel=void 0,x._getClientSideRowModel=function(p){let M=p.rowModel;return M.getType()==="clientSide"?M:void 0},x._getInfiniteRowModel=function(p){let M=p.rowModel;return M.getType()==="infinite"?M:void 0},x._getServerSideRowModel=function(p){let M=p.rowModel;return M.getType()==="serverSide"?M:void 0}},1765:function(ne,x){Object.defineProperty(x,"__esModule",{value:!0}),x.ensureNodeVisible=x.ensureIndexVisible=x.ensureColumnVisible=x.getHorizontalPixelRange=x.getVerticalPixelRange=void 0,x.getVerticalPixelRange=function(p){return p.ctrlsSvc.getScrollFeature().getVScrollPosition()},x.getHorizontalPixelRange=function(p){return p.ctrlsSvc.getScrollFeature().getHScrollPosition()},x.ensureColumnVisible=function(p,M,A="auto"){p.frameworkOverrides.wrapIncoming(()=>p.ctrlsSvc.getScrollFeature().ensureColumnVisible(M,A),"ensureVisible")},x.ensureIndexVisible=function(p,M,A){p.frameworkOverrides.wrapIncoming(()=>p.ctrlsSvc.getScrollFeature().ensureIndexVisible(M,A),"ensureVisible")},x.ensureNodeVisible=function(p,M,A=null){p.frameworkOverrides.wrapIncoming(()=>p.ctrlsSvc.getScrollFeature().ensureNodeVisible(M,A),"ensureVisible")}},6437:function(ne,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.SsrmInfiniteSharedApiModule=x.CsrmSsrmSharedApiModule=void 0;let M=p(7205),A=p(9513),F=p(8496);x.CsrmSsrmSharedApiModule={moduleName:"CsrmSsrmSharedApi",version:M.VERSION,apiFunctions:{expandAll:A.expandAll,collapseAll:A.collapseAll,onRowHeightChanged:A.onRowHeightChanged}},x.SsrmInfiniteSharedApiModule={moduleName:"SsrmInfiniteSharedApi",version:M.VERSION,apiFunctions:{setRowCount:F.setRowCount,getCacheBlockState:F.getCacheBlockState,isLastRowIndexKnown:F.isLastRowIndexKnown}}},8496:function(ne,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.isLastRowIndexKnown=x.getCacheBlockState=x.setRowCount=void 0;let M=p(7274),A=p(7764),F=p(6876);x.setRowCount=function(D,f,v){var r;let u=(0,F._getServerSideRowModel)(D);if(u)return((r=D.rowGroupColsSvc)==null?void 0:r.columns.length)===0?f<0?void(0,A._error)(238):void u.setRowCount(f,v):void(0,A._error)(28);let s=(0,F._getInfiniteRowModel)(D);s&&s.setRowCount(f,v)},x.getCacheBlockState=function(D){var f,v;return(0,M._isServerSideRowModel)(D.gos)?D.rowModel.getBlockStates():(v=(f=D.rowNodeBlockLoader)==null?void 0:f.getBlockState())!=null?v:{}},x.isLastRowIndexKnown=function(D){return D.rowModel.isLastRowIndexKnown()}},5628:function(ne,x){Object.defineProperty(x,"__esModule",{value:!0}),x.AutoScrollService=void 0,x.AutoScrollService=class{constructor(p){this.tickingInterval=null,this.onScrollCallback=null,this.scrollContainer=p.scrollContainer,this.scrollHorizontally=p.scrollAxis.indexOf("x")!==-1,this.scrollVertically=p.scrollAxis.indexOf("y")!==-1,this.scrollByTick=p.scrollByTick!=null?p.scrollByTick:20,p.onScrollCallback&&(this.onScrollCallback=p.onScrollCallback),this.scrollVertically&&(this.getVerticalPosition=p.getVerticalPosition,this.setVerticalPosition=p.setVerticalPosition),this.scrollHorizontally&&(this.getHorizontalPosition=p.getHorizontalPosition,this.setHorizontalPosition=p.setHorizontalPosition),this.shouldSkipVerticalScroll=p.shouldSkipVerticalScroll||(()=>!1),this.shouldSkipHorizontalScroll=p.shouldSkipHorizontalScroll||(()=>!1)}check(p,M=!1){let A=M||this.shouldSkipVerticalScroll();if(A&&this.shouldSkipHorizontalScroll())return;let F=this.scrollContainer.getBoundingClientRect(),D=this.scrollByTick;this.tickLeft=p.clientX<F.left+D,this.tickRight=p.clientX>F.right-D,this.tickUp=p.clientY<F.top+D&&!A,this.tickDown=p.clientY>F.bottom-D&&!A,this.tickLeft||this.tickRight||this.tickUp||this.tickDown?this.ensureTickingStarted():this.ensureCleared()}ensureTickingStarted(){this.tickingInterval===null&&(this.tickingInterval=window.setInterval(this.doTick.bind(this),100),this.tickCount=0)}doTick(){this.tickCount++;let p=this.tickCount>20?200:this.tickCount>10?80:40;if(this.scrollVertically){let M=this.getVerticalPosition();this.tickUp&&this.setVerticalPosition(M-p),this.tickDown&&this.setVerticalPosition(M+p)}if(this.scrollHorizontally){let M=this.getHorizontalPosition();this.tickLeft&&this.setHorizontalPosition(M-p),this.tickRight&&this.setHorizontalPosition(M+p)}this.onScrollCallback&&this.onScrollCallback()}ensureCleared(){this.tickingInterval&&(window.clearInterval(this.tickingInterval),this.tickingInterval=null)}}},3263:function(ne,x){Object.defineProperty(x,"__esModule",{value:!0}),x.BASE_URL=void 0,x.BASE_URL="https://www.ag-grid.com"},1954:function(ne,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.AbstractClientSideNodeManager=void 0;let M=p(8731),A=p(3373),F=p(7274),D=p(4422),f=p(7764);class v extends M.BeanStub{constructor(){super(...arguments),this.nextId=0,this.allNodesMap={},this.rootNode=null}get treeData(){return!1}getRowNode(s){return this.allNodesMap[s]}extractRowData(){var s,r;return(r=(s=this.rootNode)==null?void 0:s.allLeafChildren)==null?void 0:r.map(d=>d.data)}activate(s){this.rootNode=s,s.group=!0,s.level=-1,s.id="ROOT_NODE_ID",s.allLeafChildren=[],s.childrenAfterGroup=[],s.childrenAfterSort=[],s.childrenAfterAggFilter=[],s.childrenAfterFilter=[],this.updateRootSiblingArrays(s)}deactivate(){this.rootNode&&(this.allNodesMap={},this.rootNode=null)}destroy(){super.destroy(),this.allNodesMap={},this.rootNode=null}setNewRowData(s){let r=this.rootNode;r&&(this.dispatchRowDataUpdateStartedEvent(s),r.childrenAfterFilter=null,r.childrenAfterGroup=null,r.childrenAfterAggFilter=null,r.childrenAfterSort=null,r.childrenMapped=null,r.updateHasChildren(),this.allNodesMap={},this.nextId=0,this.loadNewRowData(s),this.updateRootSiblingArrays(r))}updateRootSiblingArrays(s){let r=s.sibling;r&&(r.childrenAfterFilter=s.childrenAfterFilter,r.childrenAfterGroup=s.childrenAfterGroup,r.childrenAfterAggFilter=s.childrenAfterAggFilter,r.childrenAfterSort=s.childrenAfterSort,r.childrenMapped=s.childrenMapped,r.allLeafChildren=s.allLeafChildren)}loadNewRowData(s){var r;this.rootNode.allLeafChildren=(r=s==null?void 0:s.map((d,g)=>this.createRowNode(d,g)))!=null?r:[]}setImmutableRowData(s,r){let d=this.createTransactionForRowData(r),g=this.updateRowData(d,s.changedRowNodes),m=!1;this.gos.get("suppressMaintainUnsortedOrder")||(m=this.updateRowOrderFromRowData(r));let{rowNodeTransaction:b,rowsInserted:w}=g,{add:k,remove:R,update:T}=b;(w||m||k.length||R.length||T.length)&&(s.step="group",s.rowDataUpdated=!0,s.rowNodeTransactions=[b],s.rowNodesOrderChanged=w||m)}updateRowData(s,r){this.dispatchRowDataUpdateStartedEvent(s.add);let d={changedRowNodes:r,rowNodeTransaction:{remove:[],update:[],add:[]},rowsInserted:!1},g=[],m=(0,F._getRowIdCallback)(this.gos);return this.executeRemove(m,s,d,g),this.executeUpdate(m,s,d,g),this.executeAdd(s,d),this.deselectNodes(g),d}createTransactionForRowData(s){let r=(0,F._getRowIdCallback)(this.gos),d=pe({},this.allNodesMap),g=[],m=[],b=[];(0,D._exists)(s)&&s.forEach(w=>{let k=r({data:w,level:0}),R=d[k];R?(R.data!==w&&m.push(w),d[k]=void 0):b.push(w)});for(let w of Object.values(d))w&&g.push(w.data);return{remove:g,update:m,add:b}}updateRowOrderFromRowData(s){var w,k;let r=(w=this.rootNode)==null?void 0:w.allLeafChildren,d=(k=r==null?void 0:r.length)!=null?k:0,g=new Map,m=-1,b=-1;for(let R=0;R<d;++R){let T=r[R],z=T.data;z!==s[R]&&(b<0&&(m=R),b=R,g.set(z,T))}if(m<0)return!1;for(let R=m;R<=b;++R){let T=g.get(s[R]);T!==void 0&&(r[R]=T,T.sourceRowIndex=R)}return!0}executeAdd(s,r){let d=s.add;if(!(d!=null&&d.length))return;let g=this.rootNode.allLeafChildren,m=g.length;if(typeof s.addIndex=="number"&&(m=this.sanitizeAddIndex(s.addIndex),m>0)&&this.gos.get("treeData")&&this.gos.get("getDataPath"))for(let z=0;z<g.length;z++){let G=g[z];if((G==null?void 0:G.rowIndex)==m-1){m=z+1;break}}let b=d.length,w=r.changedRowNodes,k=new Array(b);for(let z=0;z<b;z++){let G=this.createRowNode(d[z],m+z);w.add(G),k[z]=G}let R=this.rootNode;if(m<g.length){let z=g.slice(0,m),G=g.slice(m,g.length),U=z.length+k.length;for(let X=0,Q=G.length;X<Q;++X)G[X].sourceRowIndex=U+X;g=[...z,...k,...G],r.rowsInserted=!0}else g=g.concat(k);R.allLeafChildren=g;let T=R.sibling;T&&(T.allLeafChildren=g),r.rowNodeTransaction.add=k}executeRemove(s,r,{changedRowNodes:d,rowNodeTransaction:g},m){var T,z,G;let{remove:b}=r;if(!(b!=null&&b.length))return;let w={};b.forEach(U=>{let X=this.lookupRowNode(s,U);X&&(X.isSelected()&&m.push(X),X.clearRowTopAndRowIndex(),w[X.id]=!0,delete this.allNodesMap[X.id],g.remove.push(X),d.remove(X))});let k=this.rootNode;k.allLeafChildren=(z=(T=k.allLeafChildren)==null?void 0:T.filter(U=>!w[U.id]))!=null?z:null,(G=k.allLeafChildren)==null||G.forEach((U,X)=>{U.sourceRowIndex=X});let R=k.sibling;R&&(R.allLeafChildren=k.allLeafChildren)}executeUpdate(s,r,{changedRowNodes:d,rowNodeTransaction:g},m){let{update:b}=r;b!=null&&b.length&&b.forEach(w=>{let k=this.lookupRowNode(s,w);k&&(k.updateData(w),!k.selectable&&k.isSelected()&&m.push(k),g.update.push(k),d.update(k))})}dispatchRowDataUpdateStartedEvent(s){this.eventSvc.dispatchEvent({type:"rowDataUpdateStarted",firstRowData:s!=null&&s.length?s[0]:null})}deselectNodes(s){var m;let r="rowDataChanged",d=this.beans.selectionSvc,g=s.length>0;g&&(d==null||d.setNodesSelected({newValue:!1,nodes:s,suppressFinishActions:!0,source:r})),(m=d==null?void 0:d.updateGroupsFromChildrenSelections)==null||m.call(d,r),g&&this.eventSvc.dispatchEvent({type:"selectionChanged",source:r})}sanitizeAddIndex(s){var d,g;let r=(g=(d=this.rootNode.allLeafChildren)==null?void 0:d.length)!=null?g:0;return s<0||s>=r||Number.isNaN(s)?r:Math.ceil(s)}createRowNode(s,r){let d=new A.RowNode(this.beans);return d.parent=this.rootNode,d.level=0,d.group=!1,d.expanded=!1,d.sourceRowIndex=r,d.setDataAndId(s,String(this.nextId)),this.allNodesMap[d.id]&&(0,f._warn)(2,{nodeId:d.id}),this.allNodesMap[d.id]=d,this.nextId++,d}lookupRowNode(s,r){var g,m;let d;if(s){let b=s({data:r,level:0});if(d=this.allNodesMap[b],!d)return(0,f._error)(4,{id:b}),null}else if(d=(m=(g=this.rootNode)==null?void 0:g.allLeafChildren)==null?void 0:m.find(b=>b.data===r),!d)return(0,f._error)(5,{data:r}),null;return d||null}}x.AbstractClientSideNodeManager=v},2106:function(ne,x){Object.defineProperty(x,"__esModule",{value:!0}),x.ChangedRowNodes=void 0,x.ChangedRowNodes=class{constructor(){this.removals=new Set,this.updates=new Map}remove(p){this.removals.add(p),this.updates.delete(p)}update(p){this.updates.has(p)||(this.removals.delete(p),this.updates.set(p,!1))}add(p){this.removals.delete(p),this.updates.set(p,!0)}}},5747:function(ne,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.ClientSideNodeManager=void 0;let M=p(1954);class A extends M.AbstractClientSideNodeManager{constructor(){super(...arguments),this.beanName="csrmNodeSvc"}}x.ClientSideNodeManager=A},3278:function(ne,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.ClientSideRowModel=void 0;let M=p(8731),A=p(3373),F=p(7274),D=p(1502),f=p(6800),v=p(2043),u=p(7764),s=p(2106),r=p(8287),d=p(9849);var g;(function(b){b[b.Normal=0]="Normal",b[b.AfterFilter=1]="AfterFilter",b[b.AfterFilterAndSort=2]="AfterFilterAndSort",b[b.PivotNodes=3]="PivotNodes"})(g||(g={}));class m extends M.BeanStub{constructor(){super(...arguments),this.beanName="rowModel",this.onRowHeightChanged_debounced=(0,v._debounce)(this,this.onRowHeightChanged.bind(this),100),this.rootNode=null,this.rowsToDisplay=[],this.started=!1,this.shouldSkipSettingDataOnStart=!1,this.isRefreshingModel=!1,this.rowNodesCountReady=!1,this.rowCountReady=!1}wireBeans(w){this.colModel=w.colModel,this.valueCache=w.valueCache,this.filterStage=w.filterStage,this.sortStage=w.sortStage,this.flattenStage=w.flattenStage,this.groupStage=w.groupStage,this.aggStage=w.aggStage,this.pivotStage=w.pivotStage,this.filterAggStage=w.filterAggStage}postConstruct(){this.orderedStages=[this.groupStage,this.filterStage,this.pivotStage,this.aggStage,this.sortStage,this.filterAggStage,this.flattenStage].filter(R=>!!R);let w=this.refreshModel.bind(this,{step:"group"}),k=this.refreshModel.bind(this,{step:"group",afterColumnsChanged:!0,keepRenderedRows:!0,animate:!this.gos.get("suppressAnimationFrame")});this.addManagedEventListeners({newColumnsLoaded:k,columnRowGroupChanged:w,columnValueChanged:this.onValueChanged.bind(this),columnPivotChanged:this.refreshModel.bind(this,{step:"pivot"}),filterChanged:this.onFilterChanged.bind(this),sortChanged:this.onSortChanged.bind(this),columnPivotModeChanged:w,gridStylesChanged:this.onGridStylesChanges.bind(this),gridReady:this.onGridReady.bind(this)}),this.addPropertyListeners(),this.rootNode=new A.RowNode(this.beans),this.initRowManager()}initRowManager(){let{gos:w,beans:k,nodeManager:R}=this,T=w.get("treeData"),z=w.get("treeDataChildrenField"),G;(z||T)&&(G=z?k.csrmChildrenTreeNodeSvc:k.csrmPathTreeNodeSvc),G||(G=k.csrmNodeSvc),R!==G&&(R==null||R.deactivate(),this.nodeManager=G),G.activate(this.rootNode)}addPropertyListeners(){let w=["treeData","treeDataChildrenField",...this.orderedStages.flatMap(({refreshProps:k})=>[...k])];this.addManagedPropertyListeners(w,k=>{var T;let R=(T=k.changeSet)==null?void 0:T.properties;R&&this.onPropChange(R)}),this.addManagedPropertyListener("rowData",()=>this.onPropChange(["rowData"])),this.addManagedPropertyListener("rowHeight",()=>this.resetRowHeights())}start(){this.started=!0,this.shouldSkipSettingDataOnStart?this.refreshModel({step:"group",newData:!0,rowDataUpdated:!0}):this.setInitialData()}setInitialData(){this.gos.get("rowData")&&(this.shouldSkipSettingDataOnStart=!0,this.onPropChange(["rowData"]))}ensureRowHeightsValid(w,k,R,T){let z,G=!1;do{z=!1;let U=this.getRowIndexAtPixel(w),X=this.getRowIndexAtPixel(k),Q=Math.max(U,R),oe=Math.min(X,T);for(let le=Q;le<=oe;le++){let fe=this.getRow(le);if(fe.rowHeightEstimated){let ye=(0,F._getRowHeightForNode)(this.beans,fe);fe.setRowHeight(ye.height),z=!0,G=!0}}z&&this.setRowTopAndRowIndex()}while(z);return G}onPropChange(w){var Q,oe,le;if(!this.rootNode)return;let k=this.gos,R=new Set(w),T={step:"nothing",changedProps:R},z=R.has("rowData"),G=R.has("treeData"),U=R.has("treeDataChildrenField")||G&&!k.get("treeDataChildrenField"),X;if(G&&(T.step="group"),(U||z)&&(X=k.get("rowData"),X==null||Array.isArray(X)||(X=null,(0,u._warn)(1))),U&&(z||(X=(oe=(Q=this.nodeManager)==null?void 0:Q.extractRowData())!=null?oe:X),this.initRowManager()),X&&(!U&&this.started&&!this.isEmpty()&&X.length>0&&k.exists("getRowId")&&!k.get("resetRowDataOnUpdate")?(T.keepRenderedRows=!0,T.animate=!this.gos.get("suppressAnimationFrame"),T.changedRowNodes=new s.ChangedRowNodes,this.nodeManager.setImmutableRowData(T,X)):(T.step="group",T.rowDataUpdated=!0,T.newData=!0,(le=this.beans.selectionSvc)==null||le.reset("rowDataChanged"),this.rowNodesCountReady=!0,this.nodeManager.setNewRowData(X))),T.step==="nothing"){for(let{refreshProps:fe,step:ye}of this.orderedStages)if(w.some(ke=>fe.has(ke))){T.step=ye;break}}T.step!=="nothing"&&this.refreshModel(T)}setRowTopAndRowIndex(){let{beans:w}=this,k=w.environment.getDefaultRowHeight(),R=0,T=new Set,z=(0,F._isDomLayout)(this.gos,"normal"),G=this.rowsToDisplay;for(let U=0,X=G.length;U<X;++U){let Q=G[U];if(Q.id!=null&&T.add(Q.id),Q.rowHeight==null){let oe=(0,F._getRowHeightForNode)(w,Q,z,k);Q.setRowHeight(oe.height,oe.estimated)}Q.setRowTop(R),Q.setRowIndex(U),R+=Q.rowHeight}return T}clearRowTopAndRowIndex(w,k){let R=w.active,T=G=>{G&&G.id!=null&&!k.has(G.id)&&G.clearRowTopAndRowIndex()},z=G=>{if(G!==null&&(T(G),T(G.detailNode),T(G.sibling),G.hasChildren()&&G.childrenAfterGroup)){let U=G.level==-1;R&&!U&&!G.expanded||G.childrenAfterGroup.forEach(z)}};z(this.rootNode)}ensureRowsAtPixel(w,k,R=0){var X;let T=this.getRowIndexAtPixel(k),z=this.getRow(T),G=!this.gos.get("suppressAnimationFrame");if(z===w[0])return!1;let U=(X=this.rootNode)==null?void 0:X.allLeafChildren;return!!U&&(w.forEach(Q=>{(0,D._removeFromArray)(U,Q)}),w.forEach((Q,oe)=>{U.splice(Math.max(T+R,0)+oe,0,Q)}),w.forEach((Q,oe)=>{Q.sourceRowIndex=oe}),this.refreshModel({step:"group",keepRenderedRows:!0,animate:G,rowNodesOrderChanged:!0}),!0)}highlightRowAtPixel(w,k){let R=k!=null?this.getRowIndexAtPixel(k):null,T=R!=null?this.getRow(R):null;if(!T||!w||k==null)return void this.clearHighlightedRow();let z=this.getHighlightPosition(k,T),G=this.isHighlightingCurrentPosition(w,T,z),U=this.lastHighlightedRow!=null&&this.lastHighlightedRow!==T;(G||U)&&(this.clearHighlightedRow(),G)||(this.setRowNodeHighlighted(T,z),this.lastHighlightedRow=T)}setRowNodeHighlighted(w,k){w.highlighted!==k&&(w.highlighted=k,w.dispatchRowEvent("rowHighlightChanged"))}getHighlightPosition(w,k){if(!k){let z=this.getRowIndexAtPixel(w);if(!(k=this.getRow(z||0)))return"Below"}let{rowTop:R,rowHeight:T}=k;return w-R<T/2?"Above":"Below"}getLastHighlightedRowNode(){return this.lastHighlightedRow}isHighlightingCurrentPosition(w,k,R){if(w===k)return!0;let T=R==="Above"?-1:1;return this.getRow(k.rowIndex+T)===w}clearHighlightedRow(){this.lastHighlightedRow&&(this.setRowNodeHighlighted(this.lastHighlightedRow,null),this.lastHighlightedRow=null)}isLastRowIndexKnown(){return!0}getRowCount(){return this.rowsToDisplay?this.rowsToDisplay.length:0}getTopLevelRowCount(){let w=this.rootNode;if(!w||this.rowsToDisplay.length===0)return 0;if(this.rowsToDisplay&&this.rowsToDisplay[0]===w)return 1;let k=w.childrenAfterAggFilter,R=w.sibling?1:0;return(k?k.length:0)+R}getTopLevelRowDisplayedIndex(w){let{rootNode:k,rowsToDisplay:R}=this;if(!k||!R.length||R[0]===k)return w;let{childrenAfterSort:T}=k,z=U=>{let X=T[U];if(this.gos.get("groupHideOpenParents"))for(;X.expanded&&X.childrenAfterSort&&X.childrenAfterSort.length>0;)X=X.childrenAfterSort[0];return X.rowIndex},{footerSvc:G}=this.beans;return G?G.getTopDisplayIndex(R,w,T,z):z(w)}getRowBounds(w){let k=this.rowsToDisplay[w];return k?{rowTop:k.rowTop,rowHeight:k.rowHeight}:null}onRowGroupOpened(){let w=(0,F._isAnimateRows)(this.gos);this.refreshModel({step:"map",keepRenderedRows:!0,animate:w})}onFilterChanged(w){if(w.afterDataChange)return;let k=(0,F._isAnimateRows)(this.gos),R=w.columns.length===0||w.columns.some(T=>T.isPrimary())?"filter":"filter_aggregates";this.refreshModel({step:R,keepRenderedRows:!0,animate:k})}onSortChanged(){let w=(0,F._isAnimateRows)(this.gos);this.refreshModel({step:"sort",keepRenderedRows:!0,animate:w})}getType(){return"clientSide"}onValueChanged(){this.refreshModel({step:this.colModel.isPivotActive()?"pivot":"aggregate"})}createChangePath(w){let k=!(w!=null&&w.length),R=new f.ChangedPath(!1,this.rootNode);return k&&(R.active=!1),R}isSuppressModelUpdateAfterUpdateTransaction(w){if(!this.gos.get("suppressModelUpdateAfterUpdateTransaction"))return!1;let k=w.rowNodeTransactions;return k?!k.some(R=>R.add!=null&&R.add.length>0||R.remove!=null&&R.remove.length>0):!1}refreshModel(w){var z,G,U;if(!this.rootNode)return;let k=w.rowNodeTransactions,R=(z=w.changedPath)!=null?z:w.changedPath=this.createChangePath(k);if((U=(G=this.nodeManager).refreshModel)==null||U.call(G,w),this.eventSvc.dispatchEvent({type:"beforeRefreshModel",params:w}),!this.started||(w.rowDataUpdated&&this.eventSvc.dispatchEvent({type:"rowDataUpdated"}),this.isRefreshingModel||this.colModel.changeEventsDispatching||this.isSuppressModelUpdateAfterUpdateTransaction(w)))return;switch(this.isRefreshingModel=!0,w.step){case"group":this.doRowGrouping(w.rowNodeTransactions,w.changedRowNodes,R,!!w.rowNodesOrderChanged,!!w.afterColumnsChanged);case"filter":this.doFilter(R);case"pivot":this.doPivot(R);case"aggregate":this.doAggregate(R);case"filter_aggregates":this.doFilterAggregates(R);case"sort":this.doSort(w.changedRowNodes,R);case"map":this.doRowsToDisplay()}let T=this.setRowTopAndRowIndex();this.clearRowTopAndRowIndex(R,T),this.isRefreshingModel=!1,this.eventSvc.dispatchEvent({type:"modelUpdated",animate:w.animate,keepRenderedRows:w.keepRenderedRows,newData:w.newData,newPage:!1,keepUndoRedoStack:w.keepUndoRedoStack})}isEmpty(){var w,k,R;return!((k=(w=this.rootNode)==null?void 0:w.allLeafChildren)!=null&&k.length)||!((R=this.colModel)!=null&&R.ready)}isRowsToRender(){return this.rowsToDisplay.length>0}getNodesInRangeForSelection(w,k){let R=!1,T=!1,z=[],G=(0,F._getGroupSelectsDescendants)(this.gos);return this.forEachNodeAfterFilterAndSort(U=>{if(!T){if(R&&(U===k||U===w)&&(T=!0,U.group&&G))return void z.push(...U.allLeafChildren);if(!R){if(U!==k&&U!==w)return;R=!0}(!U.group||!G)&&z.push(U)}}),z}getTopLevelNodes(){var w,k;return(k=(w=this.rootNode)==null?void 0:w.childrenAfterGroup)!=null?k:null}getRow(w){return this.rowsToDisplay[w]}isRowPresent(w){return this.rowsToDisplay.indexOf(w)>=0}getRowIndexAtPixel(w){let k=this.rowsToDisplay;if(this.isEmpty()||k.length===0)return-1;let R=0,T=k.length-1;if(w<=0)return 0;if((0,D._last)(k).rowTop<=w)return k.length-1;let z=-1,G=-1;for(;;){let U=Math.floor((R+T)/2),X=k[U];if(this.isRowInPixel(X,w)||(X.rowTop<w?R=U+1:X.rowTop>w&&(T=U-1),z===R&&G===T))return U;z=R,G=T}}isRowInPixel(w,k){let R=w.rowTop,T=w.rowTop+w.rowHeight;return R<=k&&T>k}forEachLeafNode(w){var k,R;(R=(k=this.rootNode)==null?void 0:k.allLeafChildren)==null||R.forEach((T,z)=>w(T,z))}forEachNode(w,k=!1){var R;this.recursivelyWalkNodesAndCallback({nodes:[...((R=this.rootNode)==null?void 0:R.childrenAfterGroup)||[]],callback:w,recursionType:g.Normal,index:0,includeFooterNodes:k})}forEachNodeAfterFilter(w,k=!1){var R;this.recursivelyWalkNodesAndCallback({nodes:[...((R=this.rootNode)==null?void 0:R.childrenAfterAggFilter)||[]],callback:w,recursionType:g.AfterFilter,index:0,includeFooterNodes:k})}forEachNodeAfterFilterAndSort(w,k=!1){var R;this.recursivelyWalkNodesAndCallback({nodes:[...((R=this.rootNode)==null?void 0:R.childrenAfterSort)||[]],callback:w,recursionType:g.AfterFilterAndSort,index:0,includeFooterNodes:k})}forEachPivotNode(w,k=!1){let R=this.rootNode;R&&this.recursivelyWalkNodesAndCallback({nodes:[R],callback:w,recursionType:g.PivotNodes,index:0,includeFooterNodes:k})}recursivelyWalkNodesAndCallback(w){let{nodes:k,callback:R,recursionType:T,includeFooterNodes:z}=w,{index:G}=w,{footerSvc:U}=this.beans;U==null||U.addNodes(w,k,R,z,this.rootNode,"top");for(let X=0;X<k.length;X++){let Q=k[X];if(R(Q,G++),Q.hasChildren()&&!Q.footer){let oe=null;switch(T){case g.Normal:oe=Q.childrenAfterGroup;break;case g.AfterFilter:oe=Q.childrenAfterAggFilter;break;case g.AfterFilterAndSort:oe=Q.childrenAfterSort;break;case g.PivotNodes:oe=Q.leafGroup?null:Q.childrenAfterSort}oe&&(G=this.recursivelyWalkNodesAndCallback({nodes:[...oe],callback:R,recursionType:T,index:G,includeFooterNodes:z}))}}return U==null||U.addNodes(w,k,R,z,this.rootNode,"bottom"),G}doAggregate(w){var R;let k=this.rootNode;k&&((R=this.aggStage)==null||R.execute({rowNode:k,changedPath:w}))}doFilterAggregates(w){let k=this.rootNode;this.filterAggStage?this.filterAggStage.execute({rowNode:k,changedPath:w}):k.childrenAfterAggFilter=k.childrenAfterFilter}doSort(w,k){let{groupHideOpenParentsSvc:R}=this.beans;this.sortStage?this.sortStage.execute({rowNode:this.rootNode,changedRowNodes:w,changedPath:k}):k.forEachChangedNodeDepthFirst(T=>{R==null||R.pullDownGroupDataForHideOpenParents(T.childrenAfterAggFilter,!0),T.childrenAfterSort=T.childrenAfterAggFilter.slice(0),(0,d.updateRowNodeAfterSort)(T)}),R==null||R.updateGroupDataForHideOpenParents(k)}doRowGrouping(w,k,R,T,z){let G=this.nodeManager.treeData,U=this.rootNode;if(!G){let X=this.groupStage;if(X)X.execute({rowNode:U,changedPath:R,changedRowNodes:k,rowNodeTransactions:w,rowNodesOrderChanged:T,afterColumnsChanged:z});else{let Q=U.sibling;U.childrenAfterGroup=U.allLeafChildren,Q&&(Q.childrenAfterGroup=U.childrenAfterGroup),U.updateHasChildren()}}this.rowNodesCountReady&&(this.rowCountReady=!0,this.eventSvc.dispatchEventOnce({type:"rowCountReady"}))}doFilter(w){this.filterStage?this.filterStage.execute({rowNode:this.rootNode,changedPath:w}):w.forEachChangedNodeDepthFirst(k=>{k.childrenAfterFilter=k.childrenAfterGroup,(0,r.updateRowNodeAfterFilter)(k)},!0)}doPivot(w){var k;(k=this.pivotStage)==null||k.execute({rowNode:this.rootNode,changedPath:w})}getRowNode(w){if(typeof w=="string"&&w.indexOf(A.ROW_ID_PREFIX_ROW_GROUP)==0){let k;return this.forEachNode(R=>{R.id===w&&(k=R)}),k}return this.nodeManager.getRowNode(w)}batchUpdateRowData(w,k){if(this.applyAsyncTransactionsTimeout==null){this.rowDataTransactionBatch=[];let R=this.gos.get("asyncTransactionWaitMillis");this.applyAsyncTransactionsTimeout=window.setTimeout(()=>{this.isAlive()&&this.executeBatchUpdateRowData()},R)}this.rowDataTransactionBatch.push({rowDataTransaction:w,callback:k})}flushAsyncTransactions(){this.applyAsyncTransactionsTimeout!=null&&(clearTimeout(this.applyAsyncTransactionsTimeout),this.executeBatchUpdateRowData())}executeBatchUpdateRowData(){var z,G;(z=this.valueCache)==null||z.onDataChanged();let w=[],k=[],R=new s.ChangedRowNodes,T=!1;(G=this.rowDataTransactionBatch)==null||G.forEach(U=>{this.rowNodesCountReady=!0;let{rowNodeTransaction:X,rowsInserted:Q}=this.nodeManager.updateRowData(U.rowDataTransaction,R);Q&&(T=!0),k.push(X),U.callback&&w.push(U.callback.bind(null,X))}),this.commitTransactions(k,T,R),w.length>0&&window.setTimeout(()=>{w.forEach(U=>U())},0),k.length>0&&this.eventSvc.dispatchEvent({type:"asyncTransactionsFlushed",results:k}),this.rowDataTransactionBatch=null,this.applyAsyncTransactionsTimeout=void 0}updateRowData(w){var z;(z=this.valueCache)==null||z.onDataChanged(),this.rowNodesCountReady=!0;let k=new s.ChangedRowNodes,{rowNodeTransaction:R,rowsInserted:T}=this.nodeManager.updateRowData(w,k);return this.commitTransactions([R],T,k),R}commitTransactions(w,k,R){this.refreshModel({step:"group",rowDataUpdated:!0,rowNodeTransactions:w,rowNodesOrderChanged:k,keepRenderedRows:!0,animate:!this.gos.get("suppressAnimationFrame"),changedRowNodes:R,changedPath:this.createChangePath(w)})}doRowsToDisplay(){var T;let{flattenStage:w,rootNode:k}=this,R;if(w)R=w.execute({rowNode:k});else{R=(T=k==null?void 0:k.childrenAfterSort)!=null?T:[];for(let z of R)z.setUiLevel(0)}this.rowsToDisplay=R}onRowHeightChanged(){this.refreshModel({step:"map",keepRenderedRows:!0,keepUndoRedoStack:!0})}onRowHeightChangedDebounced(){this.onRowHeightChanged_debounced()}resetRowHeights(){let w=this.rootNode;if(!w)return;let k=this.resetRowHeightsForAllRowNodes();w.setRowHeight(w.rowHeight,!0),w.sibling&&w.sibling.setRowHeight(w.sibling.rowHeight,!0),k&&this.onRowHeightChanged()}resetRowHeightsForAllRowNodes(){let w=!1;return this.forEachNode(k=>{k.setRowHeight(k.rowHeight,!0);let R=k.detailNode;R&&R.setRowHeight(R.rowHeight,!0),k.sibling&&k.sibling.setRowHeight(k.sibling.rowHeight,!0),w=!0}),w}onGridStylesChanges(w){var k;if(w.rowHeightChanged){if((k=this.beans.rowAutoHeight)!=null&&k.active)return;this.resetRowHeights()}}onGridReady(){this.started||this.setInitialData()}isRowDataLoaded(){return this.rowCountReady}destroy(){super.destroy(),this.clearHighlightedRow(),this.started=!1,this.rootNode=null,this.nodeManager=null,this.rowDataTransactionBatch=null,this.lastHighlightedRow=null,this.orderedStages=D._EmptyArray,this.rowsToDisplay=D._EmptyArray}}x.ClientSideRowModel=m},4452:function(ne,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.getBestCostNodeSelection=x.flushAsyncTransactions=x.applyTransactionAsync=x.applyTransaction=x.resetRowHeights=x.forEachNodeAfterFilterAndSort=x.forEachNodeAfterFilter=x.forEachLeafNode=x.isRowDataEmpty=x.refreshClientSideRowModel=x.onGroupExpandedOrCollapsed=void 0;let M=p(6876),A=p(7764);x.onGroupExpandedOrCollapsed=function(F){var D;(D=F.expansionSvc)==null||D.onGroupExpandedOrCollapsed()},x.refreshClientSideRowModel=function(F,D){let f=(0,M._getClientSideRowModel)(F);f&&(D&&D!=="everything"||(D="group"),f.refreshModel({step:D,keepRenderedRows:!0,animate:!F.gos.get("suppressAnimationFrame")}))},x.isRowDataEmpty=function(F){var D,f;return(f=(D=(0,M._getClientSideRowModel)(F))==null?void 0:D.isEmpty())!=null?f:!0},x.forEachLeafNode=function(F,D){var f;(f=(0,M._getClientSideRowModel)(F))==null||f.forEachLeafNode(D)},x.forEachNodeAfterFilter=function(F,D){var f;(f=(0,M._getClientSideRowModel)(F))==null||f.forEachNodeAfterFilter(D)},x.forEachNodeAfterFilterAndSort=function(F,D){var f;(f=(0,M._getClientSideRowModel)(F))==null||f.forEachNodeAfterFilterAndSort(D)},x.resetRowHeights=function(F){var D,f;(D=F.rowAutoHeight)!=null&&D.active?(0,A._warn)(3):(f=(0,M._getClientSideRowModel)(F))==null||f.resetRowHeights()},x.applyTransaction=function(F,D){return F.frameworkOverrides.wrapIncoming(()=>{var f;return(f=(0,M._getClientSideRowModel)(F))==null?void 0:f.updateRowData(D)})},x.applyTransactionAsync=function(F,D,f){F.frameworkOverrides.wrapIncoming(()=>{var v;return(v=(0,M._getClientSideRowModel)(F))==null?void 0:v.batchUpdateRowData(D,f)})},x.flushAsyncTransactions=function(F){F.frameworkOverrides.wrapIncoming(()=>{var D;return(D=(0,M._getClientSideRowModel)(F))==null?void 0:D.flushAsyncTransactions()})},x.getBestCostNodeSelection=function(F){var D;return(D=F.selectionSvc)==null?void 0:D.getBestCostNodeSelection()}},9722:function(ne,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.ClientSideRowModelApiModule=x.ClientSideRowModelModule=void 0;let M=p(6437),A=p(6620),F=p(7205),D=p(5747),f=p(3278),v=p(4452),u=p(9849);x.ClientSideRowModelModule={moduleName:"ClientSideRowModel",version:F.VERSION,rowModels:["clientSide"],beans:[D.ClientSideNodeManager,f.ClientSideRowModel,u.SortStage],dependsOn:[A.SortModule]},x.ClientSideRowModelApiModule={moduleName:"ClientSideRowModelApi",version:F.VERSION,rowModels:["clientSide"],apiFunctions:{onGroupExpandedOrCollapsed:v.onGroupExpandedOrCollapsed,refreshClientSideRowModel:v.refreshClientSideRowModel,isRowDataEmpty:v.isRowDataEmpty,forEachLeafNode:v.forEachLeafNode,forEachNodeAfterFilter:v.forEachNodeAfterFilter,forEachNodeAfterFilterAndSort:v.forEachNodeAfterFilterAndSort,resetRowHeights:v.resetRowHeights,applyTransaction:v.applyTransaction,applyTransactionAsync:v.applyTransactionAsync,flushAsyncTransactions:v.flushAsyncTransactions,getBestCostNodeSelection:v.getBestCostNodeSelection},dependsOn:[M.CsrmSsrmSharedApiModule]}},8287:function(ne,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.FilterStage=x.updateRowNodeAfterFilter=void 0;let M=p(8731);function A(D){D.sibling&&(D.sibling.childrenAfterFilter=D.childrenAfterFilter)}x.updateRowNodeAfterFilter=A;class F extends M.BeanStub{constructor(){super(...arguments),this.beanName="filterStage",this.refreshProps=new Set(["excludeChildrenWhenTreeDataFiltering"]),this.step="filter"}wireBeans(f){this.filterManager=f.filterManager}execute(f){let{changedPath:v}=f;this.filter(v)}filter(f){var u;let v=!!((u=this.filterManager)!=null&&u.isChildFilterPresent());this.filterNodes(v,f)}filterNodes(f,v){let u=(s,r)=>{s.hasChildren()?s.childrenAfterFilter=f&&!r?s.childrenAfterGroup.filter(d=>{let g=d.childrenAfterFilter&&d.childrenAfterFilter.length>0,m=d.data&&this.filterManager.doesRowPassFilter({rowNode:d});return g||m}):s.childrenAfterGroup:s.childrenAfterFilter=s.childrenAfterGroup,A(s)};if(this.doingTreeDataFiltering()){let s=(d,g)=>{if(d.childrenAfterGroup)for(let m=0;m<d.childrenAfterGroup.length;m++){let b=d.childrenAfterGroup[m],w=g||this.filterManager.doesRowPassFilter({rowNode:b});b.childrenAfterGroup?s(d.childrenAfterGroup[m],w):u(b,w)}u(d,g)},r=d=>s(d,!1);v.executeFromRootNode(r)}else{let s=r=>u(r,!1);v.forEachChangedNodeDepthFirst(s,!0)}}doingTreeDataFiltering(){return this.gos.get("treeData")&&!this.gos.get("excludeChildrenWhenTreeDataFiltering")}}x.FilterStage=F},9849:function(ne,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.SortStage=x.updateRowNodeAfterSort=void 0;let M=p(8731),A=p(7274),F=p(4422);function D(v){v.sibling&&(v.sibling.childrenAfterSort=v.childrenAfterSort),function(u){if((0,F._missing)(u.childrenAfterSort))return;let s=u.childrenAfterSort;for(let r=0;r<s.length;r++){let d=s[r],g=r===0,m=r===u.childrenAfterSort.length-1;d.setFirstChild(g),d.lastChild!==m&&(d.lastChild=m,d.dispatchRowEvent("lastChildChanged")),d.childIndex!==r&&(d.childIndex=r,d.dispatchRowEvent("childIndexChanged"))}}(v)}x.updateRowNodeAfterSort=D;class f extends M.BeanStub{constructor(){super(...arguments),this.beanName="sortStage",this.refreshProps=new Set(["postSortRows","groupDisplayType","accentedSort"]),this.step="sort"}execute(u){let s=this.beans,r=s.sortSvc.getSortOptions(),d=(0,F._exists)(r)&&r.length>0,g=d&&!!u.changedRowNodes&&this.gos.get("deltaSort"),m=r.some(({column:b})=>(0,A._isColumnsSortingCoupledToGroup)(s.gos)?b.isPrimary()&&b.isRowGroupActive():!!b.getColDef().showRowGroup);this.sort(s,r,d,g,u.changedRowNodes,u.changedPath,m)}sort(u,s,r,d,g,m,b){let{gos:w,colModel:k,rowGroupColsSvc:R,groupHideOpenParentsSvc:T,rowNodeSorter:z}=u,G=w.get("groupMaintainOrder"),U=k.getCols().some(oe=>oe.isRowGroupActive()),X=k.isPivotMode(),Q=w.getCallback("postSortRows");m==null||m.forEachChangedNodeDepthFirst(oe=>{var ye;T==null||T.pullDownGroupDataForHideOpenParents(oe.childrenAfterAggFilter,!0);let le=X&&oe.leafGroup,fe;if(G&&U&&!oe.leafGroup&&!b){let ke=(ye=R==null?void 0:R.columns)==null?void 0:ye[oe.level+1],Ie=(ke==null?void 0:ke.getSort())===null,ze=oe.childrenAfterAggFilter.slice(0);if(oe.childrenAfterSort&&!Ie){let Ye={};oe.childrenAfterSort.forEach((xe,Te)=>{Ye[xe.id]=Te}),ze.sort((xe,Te)=>{var Ae,Ne;return((Ae=Ye[xe.id])!=null?Ae:0)-((Ne=Ye[Te.id])!=null?Ne:0)})}fe=ze}else fe=!r||le?oe.childrenAfterAggFilter.slice(0):d&&g?function(ke,Ie,ze,Ye,xe){let Te=Ie.childrenAfterAggFilter,Ae=Ie.childrenAfterSort;if(!Ae)return ke.doFullSort(Te,xe);let Ne=new Set,Re=[],Oe=ze.updates;for(let Ue=0,Ee=Te.length;Ue<Ee;++Ue){let tt=Te[Ue];Oe.has(tt)||Ye&&!Ye.canSkip(tt)?Re.push({currentPos:Re.length,rowNode:tt}):Ne.add(tt.id)}let Ve=Ae.filter(Ue=>Ne.has(Ue.id)).map((Ue,Ee)=>({currentPos:Ee,rowNode:Ue}));return Re.sort((Ue,Ee)=>ke.compareRowNodes(xe,Ue,Ee)),function(Ue,Ee,tt,at){let ut=[],Mt=0,St=0,ft=tt.length,kt=at.length;for(;Mt<ft&&St<kt;){let Et=tt[Mt],Yt=at[St],Tt;Ue.compareRowNodes(Ee,Et,Yt)<0?(Tt=Et,++Mt):(Tt=Yt,++St),ut.push(Tt.rowNode)}for(;Mt<ft;)ut.push(tt[Mt++].rowNode);for(;St<kt;)ut.push(at[St++].rowNode);return ut}(ke,xe,Re,Ve)}(z,oe,g,m,s):z.doFullSort(oe.childrenAfterAggFilter,s);if(oe.childrenAfterSort=fe,D(oe),Q){let ke={nodes:oe.childrenAfterSort};Q(ke)}})}}x.SortStage=f},3218:function(ne,x){Object.defineProperty(x,"__esModule",{value:!0}),x.autoSizeAllColumns=x.autoSizeColumns=x.sizeColumnsToFit=void 0,x.sizeColumnsToFit=function(p,M){var A,F;typeof M=="number"?(A=p.colAutosize)==null||A.sizeColumnsToFit(M,"api"):(F=p.colAutosize)==null||F.sizeColumnsToFitGridBody(M)},x.autoSizeColumns=function(p,M,A){var F;(F=p.colAutosize)==null||F.autoSizeCols({colKeys:M,skipHeader:A,source:"api"})},x.autoSizeAllColumns=function(p,M){var A;(A=p.colAutosize)==null||A.autoSizeAllColumns("api",M)}},3856:function(ne,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.ColumnAutoSizeModule=void 0;let M=p(447),A=p(7205),F=p(3218),D=p(4817);x.ColumnAutoSizeModule={moduleName:"ColumnAutoSize",version:A.VERSION,beans:[D.ColumnAutosizeService],apiFunctions:{sizeColumnsToFit:F.sizeColumnsToFit,autoSizeColumns:F.autoSizeColumns,autoSizeAllColumns:F.autoSizeAllColumns},dependsOn:[M.AutoWidthModule]}},4817:function(ne,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.ColumnAutosizeService=void 0;let M=p(2934),A=p(3146),F=p(8731),D=p(1502),f=p(3507),v=p(7764),u=p(9644);class s extends F.BeanStub{constructor(){super(...arguments),this.beanName="colAutosize",this.timesDelayed=0,this.shouldQueueResizeOperations=!1,this.resizeOperationQueue=[]}postConstruct(){this.addManagedEventListeners({firstDataRendered:()=>this.onFirstDataRendered()})}autoSizeCols(g){if(this.shouldQueueResizeOperations)return void this.pushResizeOperation(()=>this.autoSizeCols(g));let{colKeys:m,skipHeader:b,skipHeaderGroups:w,stopAtGroup:k,source:R="api"}=g,{animationFrameSvc:T,renderStatus:z,colModel:G,autoWidthCalc:U,visibleCols:X}=this.beans;if(T==null||T.flushAllFrames(),this.timesDelayed<5&&z&&!z.areHeaderCellsRendered())return this.timesDelayed++,void setTimeout(()=>{this.isAlive()&&this.autoSizeCols(g)});this.timesDelayed=0;let Q=[],oe=-1,le=b!=null?b:this.gos.get("skipHeaderOnAutoSize"),fe=w!=null?w:le;for(;oe!==0;){oe=0;let ye=[];m.forEach(ke=>{if(!ke)return;let Ie=G.getCol(ke);if(!Ie||Q.indexOf(Ie)>=0)return;let ze=U.getPreferredWidthForColumn(Ie,le);if(ze>0){let Ye=r(Ie,ze);Ie.setActualWidth(Ye,R),Q.push(Ie),oe++}ye.push(Ie)}),ye.length&&X.refresh(R)}fe||this.autoSizeColumnGroupsByColumns(m,R,k),(0,M.dispatchColumnResizedEvent)(this.eventSvc,Q,!0,"autosizeColumns")}autoSizeColumn(g,m,b){g&&this.autoSizeCols({colKeys:[g],skipHeader:b,skipHeaderGroups:!0,source:m})}autoSizeColumnGroupsByColumns(g,m,b){let{colModel:w,ctrlsSvc:k}=this.beans,R=new Set,T;w.getColsForKeys(g).forEach(z=>{let G=z.getParent();for(;G&&G!=b;)G.isPadding()||R.add(G),G=G.getParent()});for(let z of R){for(let G of k.getHeaderRowContainerCtrls())if(T=G.getHeaderCtrlForColumn(z),T)break;T&&T.resizeLeafColumnsToFit(m)}return[]}autoSizeAllColumns(g,m){if(this.shouldQueueResizeOperations)return void this.pushResizeOperation(()=>this.autoSizeAllColumns(g,m));let b=this.beans.visibleCols.allCols;this.autoSizeCols({colKeys:b,skipHeader:m,source:g})}addColumnAutosize(g,m){let b=this.gos.get("skipHeaderOnAutoSize"),w=()=>{this.autoSizeColumn(m,"uiColumnResized",b)};g.addEventListener("dblclick",w);let k=new u.TouchListener(g);return k.addEventListener("doubleTap",w),()=>{g.removeEventListener("dblclick",w),k.removeEventListener("doubleTap",w),k.destroy()}}addColumnGroupResize(g,m,b){let w=this.gos.get("skipHeaderOnAutoSize"),k=()=>{let R=[];m.getDisplayedLeafColumns().forEach(T=>{T.getColDef().suppressAutoSize||R.push(T.getColId())}),R.length>0&&this.autoSizeCols({colKeys:R,skipHeader:w,stopAtGroup:m,source:"uiColumnResized"}),b()};return g.addEventListener("dblclick",k),()=>g.removeEventListener("dblclick",k)}sizeColumnsToFitGridBody(g,m){if(!this.isAlive())return;let{ctrlsSvc:b,scrollVisibleSvc:w}=this.beans,k=b.getGridBodyCtrl(),R=k.isVerticalScrollShowing()?w.getScrollbarWidth():0,T=(0,f._getInnerWidth)(k.eGridBody)-R;T>0?this.sizeColumnsToFit(T,"sizeColumnsToFit",!1,g):m===void 0?window.setTimeout(()=>{this.sizeColumnsToFitGridBody(g,100)},0):m===100?window.setTimeout(()=>{this.sizeColumnsToFitGridBody(g,500)},100):m===500?window.setTimeout(()=>{this.sizeColumnsToFitGridBody(g,-1)},500):(0,v._warn)(29)}sizeColumnsToFit(g,m="sizeColumnsToFit",b,w){var le,fe,ye;if(this.shouldQueueResizeOperations)return void this.pushResizeOperation(()=>this.sizeColumnsToFit(g,m,b,w));let k={};w&&((le=w==null?void 0:w.columnLimits)==null||le.forEach(ze=>{var Ye=ze,{key:ke}=Ye,Ie=ji(Ye,["key"]);k[typeof ke=="string"?ke:ke.getColId()]=Ie}));let R=this.beans.visibleCols.allCols,T=g===(0,A.getWidthOfColsInList)(R);if(g<=0||!R.length||T)return;let z=[],G=[];R.forEach(ke=>{ke.getColDef().suppressSizeToFit===!0?G.push(ke):z.push(ke)});let U=z.slice(0),X=!1,Q=ke=>{(0,D._removeFromArray)(z,ke),G.push(ke)};for(z.forEach(ke=>{var Te,Ae;ke.resetActualWidth(m);let Ie=k==null?void 0:k[ke.getId()],ze=(Te=Ie==null?void 0:Ie.minWidth)!=null?Te:w==null?void 0:w.defaultMinWidth,Ye=(Ae=Ie==null?void 0:Ie.maxWidth)!=null?Ae:w==null?void 0:w.defaultMaxWidth,xe=ke.getActualWidth();typeof ze=="number"&&xe<ze?ke.setActualWidth(ze,m,!0):typeof Ye=="number"&&xe>Ye&&ke.setActualWidth(Ye,m,!0)});!X;){X=!0;let ke=g-(0,A.getWidthOfColsInList)(G);if(ke<=0)z.forEach(Ie=>{var Ye,xe;let ze=(xe=(Ye=k==null?void 0:k[Ie.getId()])==null?void 0:Ye.minWidth)!=null?xe:w==null?void 0:w.defaultMinWidth;typeof ze!="number"?Ie.setActualWidth(Ie.minWidth,m):Ie.setActualWidth(ze,m,!0)});else{let Ie=ke/(0,A.getWidthOfColsInList)(z),ze=ke;for(let Ye=z.length-1;Ye>=0;Ye--){let xe=z[Ye],Te=k==null?void 0:k[xe.getId()],Ae=(fe=Te==null?void 0:Te.minWidth)!=null?fe:w==null?void 0:w.defaultMinWidth,Ne=(ye=Te==null?void 0:Te.maxWidth)!=null?ye:w==null?void 0:w.defaultMaxWidth,Re=xe.getMinWidth(),Oe=xe.getMaxWidth(),Ve=typeof Ae=="number"&&Ae>Re?Ae:Re,Ue=typeof Ne=="number"&&Ne<Oe?Ne:Oe,Ee=Math.round(xe.getActualWidth()*Ie);Ee<Ve?(Ee=Ve,Q(xe),X=!1):Ee>Ue?(Ee=Ue,Q(xe),X=!1):Ye===0&&(Ee=ze),xe.setActualWidth(Ee,m,!0),ze-=Ee}}}U.forEach(ke=>{ke.fireColumnWidthChangedEvent(m)});let oe=this.beans.visibleCols;oe.setLeftValues(m),oe.updateBodyWidths(),b||(0,M.dispatchColumnResizedEvent)(this.eventSvc,U,!0,m)}applyAutosizeStrategy(){let g=this.gos.get("autoSizeStrategy");if(!g)return;let{type:m}=g;setTimeout(()=>{if(m==="fitGridWidth"){let{columnLimits:b,defaultMinWidth:w,defaultMaxWidth:k}=g,R=b==null?void 0:b.map(({colId:T,minWidth:z,maxWidth:G})=>({key:T,minWidth:z,maxWidth:G}));this.sizeColumnsToFitGridBody({defaultMinWidth:w,defaultMaxWidth:k,columnLimits:R})}else m==="fitProvidedWidth"&&this.sizeColumnsToFit(g.width,"sizeColumnsToFit")})}onFirstDataRendered(){let g=this.gos.get("autoSizeStrategy");if((g==null?void 0:g.type)!=="fitCellContents")return;let{colIds:m,skipHeader:b}=g;setTimeout(()=>{m?this.autoSizeCols({colKeys:m,skipHeader:b,source:"autosizeColumns"}):this.autoSizeAllColumns("autosizeColumns",b)})}processResizeOperations(){this.shouldQueueResizeOperations=!1,this.resizeOperationQueue.forEach(g=>g()),this.resizeOperationQueue=[]}pushResizeOperation(g){this.resizeOperationQueue.push(g)}destroy(){this.resizeOperationQueue.length=0,super.destroy()}}function r(d,g){let m=d.getMinWidth();g<m&&(g=m);let b=d.getMaxWidth();return d.isGreaterThanMax(g)&&(g=b),g}x.ColumnAutosizeService=s},9607:function(ne,x){Object.defineProperty(x,"__esModule",{value:!0}),x.columnMovingCSS=void 0,x.columnMovingCSS=":where(.ag-ltr) :where(.ag-column-moving){.ag-cell,.ag-header-cell{transition:left .2s}.ag-header-group-cell{transition:left .2s,width .2s}}:where(.ag-rtl) :where(.ag-column-moving){.ag-cell,.ag-header-cell{transition:right .2s}.ag-header-group-cell{transition:right .2s,width .2s}}"},9122:function(ne,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.ColumnAnimationService=void 0;let M=p(8731);class A extends M.BeanStub{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,D=>this.gridBodyCtrl=D.gridBodyCtrl)}isActive(){return this.active&&!this.suppressAnimation}setSuppressAnimation(D){this.suppressAnimation=D}start(){if(this.active)return;let{gos:D}=this;D.get("suppressColumnMoveAnimation")||D.get("enableRtl")||(this.ensureAnimationCssClassPresent(),this.active=!0,this.activeNext=!0)}finish(){this.active&&this.flush(()=>this.activeNext=!1,()=>this.active=!1)}executeNextVMTurn(D){this.activeNext?this.executeNextFuncs.push(D):D()}executeLaterVMTurn(D){this.active?this.executeLaterFuncs.push(D):D()}ensureAnimationCssClassPresent(){this.animationThreadCount++;let D=this.animationThreadCount,{gridBodyCtrl:f}=this;f.setColumnMovingCss(!0),this.executeLaterFuncs.push(()=>{this.animationThreadCount===D&&f.setColumnMovingCss(!1)})}flush(D,f){let{executeNextFuncs:v,executeLaterFuncs:u}=this;if(v.length===0&&u.length===0)return D(),void f();let s=r=>{for(;r.length;){let d=r.pop();d&&d()}};this.beans.frameworkOverrides.wrapIncoming(()=>{window.setTimeout(()=>{D(),s(v)},0),window.setTimeout(()=>{f(),s(u)},200)})}}x.ColumnAnimationService=A},3052:function(ne,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.BodyDropPivotTarget=void 0;let M=p(8731);class A extends M.BeanStub{constructor(D){super(),this.pinned=D,this.columnsToAggregate=[],this.columnsToGroup=[],this.columnsToPivot=[]}onDragEnter(D){if(this.clearColumnsList(),this.gos.get("functionsReadOnly"))return;let f=D.dragItem.columns;f&&f.forEach(v=>{v.isPrimary()&&(v.isAnyFunctionActive()||(v.isAllowValue()?this.columnsToAggregate.push(v):v.isAllowRowGroup()?this.columnsToGroup.push(v):v.isAllowPivot()&&this.columnsToPivot.push(v)))})}getIconName(){return this.columnsToAggregate.length+this.columnsToGroup.length+this.columnsToPivot.length>0?this.pinned?"pinned":"move":null}onDragLeave(D){this.clearColumnsList()}clearColumnsList(){this.columnsToAggregate.length=0,this.columnsToGroup.length=0,this.columnsToPivot.length=0}onDragging(D){}onDragStop(D){let{valueColsSvc:f,rowGroupColsSvc:v,pivotColsSvc:u}=this.beans;this.columnsToAggregate.length>0&&(f==null||f.addColumns(this.columnsToAggregate,"toolPanelDragAndDrop")),this.columnsToGroup.length>0&&(v==null||v.addColumns(this.columnsToGroup,"toolPanelDragAndDrop")),this.columnsToPivot.length>0&&(u==null||u.addColumns(this.columnsToPivot,"toolPanelDragAndDrop"))}onDragCancel(){this.clearColumnsList()}}x.BodyDropPivotTarget=A},7912:function(ne,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.BodyDropTarget=void 0;let M=p(8731),A=p(2903),F=p(3052),D=p(2909);class f extends M.BeanStub{constructor(u,s){super(),this.pinned=u,this.eContainer=s}postConstruct(){let{ctrlsSvc:u,dragAndDrop:s}=this.beans,r=this.pinned;u.whenReady(this,d=>{let g,m=d.gridBodyCtrl.eBodyViewport;switch(r){case"left":g=[[m,d.left.eContainer],[d.bottomLeft.eContainer],[d.topLeft.eContainer]];break;case"right":g=[[m,d.right.eContainer],[d.bottomRight.eContainer],[d.topRight.eContainer]];break;default:g=[[m,d.center.eViewport],[d.bottomCenter.eViewport],[d.topCenter.eViewport]]}this.eSecondaryContainers=g}),this.moveColumnFeature=this.createManagedBean(new D.MoveColumnFeature(r)),this.bodyDropPivotTarget=this.createManagedBean(new F.BodyDropPivotTarget(r)),s.addDropTarget(this),this.addDestroyFunc(()=>s.removeDropTarget(this))}isInterestedIn(u){return u===A.DragSourceType.HeaderCell||u===A.DragSourceType.ToolPanel&&this.gos.get("allowDragFromColumnsToolPanel")}getSecondaryContainers(){return this.eSecondaryContainers}getContainer(){return this.eContainer}getIconName(){return this.currentDropListener.getIconName()}isDropColumnInPivotMode(u){return this.beans.colModel.isPivotMode()&&u.dragSource.type===A.DragSourceType.ToolPanel}onDragEnter(u){this.currentDropListener=this.isDropColumnInPivotMode(u)?this.bodyDropPivotTarget:this.moveColumnFeature,this.currentDropListener.onDragEnter(u)}onDragLeave(u){this.currentDropListener.onDragLeave(u)}onDragging(u){this.currentDropListener.onDragging(u)}onDragStop(u){this.currentDropListener.onDragStop(u)}onDragCancel(){this.currentDropListener.onDragCancel()}}x.BodyDropTarget=f},2909:function(ne,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.MoveColumnFeature=void 0;let M=p(8731),A=p(2903),F=p(2783),D=p(1502),f=p(4422),v=p(5446);class u extends M.BeanStub{constructor(d){super(),this.pinned=d,this.needToMoveLeft=!1,this.needToMoveRight=!1,this.lastMovedInfo=null,this.isCenterContainer=!(0,f._exists)(d)}postConstruct(){this.beans.ctrlsSvc.whenReady(this,d=>{this.gridBodyCon=d.gridBodyCtrl})}getIconName(){var b;let{pinned:d,lastDraggingEvent:g}=this,m=(b=g==null?void 0:g.dragItem.columns)!=null?b:[];for(let w of m){let k=w.getPinned();if(w.getColDef().lockPinned){if(k==d)return"move"}else{if(k===d||!d)return"move";if(!k&&d)return"pinned"}}return"notAllowed"}onDragEnter(d){let g=d.dragItem,m=g.columns;if(d.dragSource.type===A.DragSourceType.ToolPanel)this.setColumnsVisible(m,!0,"uiColumnDragged");else{let b=g.visibleState,w=(m||[]).filter(k=>b[k.getId()]);this.setColumnsVisible(w,!0,"uiColumnDragged")}this.gos.get("suppressMoveWhenColumnDragging")||this.attemptToPinColumns(m,this.pinned),this.onDragging(d,!0,!0)}onDragging(d=this.lastDraggingEvent,g=!1,m=!1,b=!1){let{gos:w,ctrlsSvc:k}=this.beans,R=w.get("suppressMoveWhenColumnDragging");if(b&&!R)return void this.finishColumnMoving();if(this.lastDraggingEvent=d,!d||!b&&(0,f._missing)(d.hDirection))return;let T=(0,v.normaliseX)({x:d.x,pinned:this.pinned,gos:w,ctrlsSvc:k});g||this.checkCenterForScrolling(T),R?this.handleColumnDragWhileSuppressingMovement(d,g,m,T,b):this.handleColumnDragWhileAllowingMovement(d,g,m,T,b)}onDragLeave(){this.ensureIntervalCleared(),this.clearHighlighted(),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(d,g,m){if(!d)return;let b=d.filter(w=>!w.getColDef().lockVisible);this.beans.colModel.setColsVisible(b,g,m)}finishColumnMoving(){this.clearHighlighted();let d=this.lastMovedInfo;if(!d)return;let{columns:g,toIndex:m}=d;this.beans.colMoves.moveColumns(g,m,"uiColumnMoved",!0)}handleColumnDragWhileSuppressingMovement(d,g,m,b,w){let k=this.getAllMovingColumns(d,!0);if(w){let R=this.isAttemptingToPin(k);R&&this.attemptToPinColumns(k,void 0,!0);let{fromLeft:T,xPosition:z}=this.getNormalisedXPositionInfo(k,R)||{};if(T==null||z==null)return void this.finishColumnMoving();this.moveColumnsAfterHighlight({allMovingColumns:k,xPosition:z,fromEnter:g,fakeEvent:m,fromLeft:T})}else{if(!this.beans.dragAndDrop.isDropZoneWithinThisGrid(d))return;this.highlightHoveredColumn(k,b)}}handleColumnDragWhileAllowingMovement(d,g,m,b,w){let k=this.getAllMovingColumns(d),R=this.normaliseDirection(d.hDirection)==="right",T=d.dragSource.type===A.DragSourceType.HeaderCell,z=this.getMoveColumnParams({allMovingColumns:k,isFromHeader:T,xPosition:b,fromLeft:R,fromEnter:g,fakeEvent:m}),G=(0,v.attemptMoveColumns)(et(pe({},z),{finished:w}));G&&(this.lastMovedInfo=G)}getAllMovingColumns(d,g=!1){let m=d.dragSource.getDragItem(),b=null;return g?(b=m.columnsInSplit,b||(b=m.columns)):b=m.columns,b?b.filter(w=>!w.getColDef().lockPinned||w.getPinned()==this.pinned):[]}getMoveColumnParams(d){let{allMovingColumns:g,isFromHeader:m,xPosition:b,fromLeft:w,fromEnter:k,fakeEvent:R}=d,{gos:T,colModel:z,colMoves:G,visibleCols:U}=this.beans;return{allMovingColumns:g,isFromHeader:m,fromLeft:w,xPosition:b,pinned:this.pinned,fromEnter:k,fakeEvent:R,gos:T,colModel:z,colMoves:G,visibleCols:U}}highlightHoveredColumn(d,g){var U;let{gos:m,colModel:b}=this.beans,w=m.get("enableRtl"),k=b.getCols().filter(X=>X.isVisible()&&X.getPinned()===this.pinned),R,T=null,z=null,G=null;for(let X of k){if(z=X.getActualWidth(),T=this.getNormalisedColumnLeft(X,0,w),T!=null&&T<=g&&T+z>=g){G=X;break}T=null,z=null}if(G)d.indexOf(G)!==-1&&(G=null);else{for(let X=k.length-1;X>=0;X--){let Q=k[X],oe=k[X].getParent();if(!oe){G=Q;break}let le=oe==null?void 0:oe.getDisplayedLeafColumns();if(le.length){G=(0,D._last)(le);break}}if(!G)return;T=this.getNormalisedColumnLeft(G,0,w),z=G.getActualWidth()}((U=this.lastHighlightedColumn)==null?void 0:U.column)!==G&&this.clearHighlighted(),G!=null&&T!=null&&z!=null&&(R=g-T<z/2!==w?F.ColumnHighlightPosition.Before:F.ColumnHighlightPosition.After,s(G,R),this.lastHighlightedColumn={column:G,position:R})}getNormalisedXPositionInfo(d,g){let{gos:m,visibleCols:b}=this.beans,w=m.get("enableRtl"),{firstMovingCol:k,column:R,position:T}=this.getColumnMoveAndTargetInfo(d,g,w);if(!k||!R||T==null)return;let z=b.allCols,G=z.indexOf(k),U=z.indexOf(R),X=T===F.ColumnHighlightPosition.Before!==w,Q=G<U||G===U&&!X,oe=0;if(X?Q&&(oe-=1):Q||(oe+=1),U+oe===G)return;let le=z[U+oe];if(le)return{fromLeft:Q,xPosition:this.getNormalisedColumnLeft(le,20,w)}}getColumnMoveAndTargetInfo(d,g,m){let b=this.lastHighlightedColumn||{},{firstMovingCol:w,lastMovingCol:k}=function(T){let z=T.length,G,U;for(let X=0;X<=z;X++){if(!G){let Q=T[X];Q.getLeft()!=null&&(G=Q)}if(!U){let Q=T[z-1-X];Q.getLeft()!=null&&(U=Q)}if(G&&U)break}return{firstMovingCol:G,lastMovingCol:U}}(d);if(!w||!k||b.column||!g)return pe({firstMovingCol:w},b);let R=this.getPinDirection()==="left";return{firstMovingCol:w,position:R?F.ColumnHighlightPosition.After:F.ColumnHighlightPosition.Before,column:R!==m?w:k}}normaliseDirection(d){if(this.gos.get("enableRtl"))switch(d){case"left":return"right";case"right":return"left"}return d}getNormalisedColumnLeft(d,g,m){let{gos:b,ctrlsSvc:w}=this.beans,k=d.getLeft();if(k==null)return null;let R=d.getActualWidth();return(0,v.normaliseX)({x:m?k+R-g:k+g,pinned:d.getPinned(),useHeaderRow:m,skipScrollPadding:!0,gos:b,ctrlsSvc:w})}isAttemptingToPin(d){let g=this.needToMoveLeft||this.needToMoveRight,m=this.failedMoveAttempts>7;return g&&m||d.some(b=>b.getPinned()!==this.pinned)}moveColumnsAfterHighlight(d){let{allMovingColumns:g,xPosition:m,fromEnter:b,fakeEvent:w,fromLeft:k}=d,R=this.getMoveColumnParams({allMovingColumns:g,isFromHeader:!0,xPosition:m,fromLeft:k,fromEnter:b,fakeEvent:w}),{columns:T,toIndex:z}=(0,v.getBestColumnMoveIndexFromXPosition)(R)||{};T&&z!=null&&(this.lastMovedInfo={columns:T,toIndex:z}),this.finishColumnMoving()}clearHighlighted(){let{lastHighlightedColumn:d}=this;d&&(s(d.column,null),this.lastHighlightedColumn=null)}checkCenterForScrolling(d){if(!this.isCenterContainer)return;let g=this.beans.ctrlsSvc.get("center"),m=g.getCenterViewportScrollLeft(),b=m+g.getCenterWidth(),w,k;this.gos.get("enableRtl")?(w=d<m+50,k=d>b-50):(k=d<m+50,w=d>b-50),this.needToMoveRight=w,this.needToMoveLeft=k,k||w?this.ensureIntervalStarted():this.ensureIntervalCleared()}ensureIntervalStarted(){var d;this.movingIntervalId||(this.intervalCount=0,this.failedMoveAttempts=0,this.movingIntervalId=window.setInterval(this.moveInterval.bind(this),100),(d=this.beans.dragAndDrop.getDragAndDropImageComponent())==null||d.setIcon(this.needToMoveLeft?"left":"right",!0))}ensureIntervalCleared(){var d;this.movingIntervalId&&(window.clearInterval(this.movingIntervalId),this.movingIntervalId=null,this.failedMoveAttempts=0,(d=this.beans.dragAndDrop.getDragAndDropImageComponent())==null||d.setIcon(this.getIconName(),!1))}moveInterval(){var b,w;let d;this.intervalCount++,d=10+5*this.intervalCount,d>100&&(d=100);let g=null,m=this.gridBodyCon.scrollFeature;if(this.needToMoveLeft?g=m.scrollHorizontally(-d):this.needToMoveRight&&(g=m.scrollHorizontally(d)),g!==0)this.onDragging(this.lastDraggingEvent),this.failedMoveAttempts=0;else{this.failedMoveAttempts++;let{pinnedCols:k,dragAndDrop:R,gos:T}=this.beans;if(this.failedMoveAttempts<=8||!k)return;if((b=R.getDragAndDropImageComponent())==null||b.setIcon("pinned",!1),!T.get("suppressMoveWhenColumnDragging")){let z=(w=this.lastDraggingEvent)==null?void 0:w.dragItem.columns;this.attemptToPinColumns(z,void 0,!0)}}}getPinDirection(){return this.needToMoveLeft||this.pinned==="left"?"left":this.needToMoveRight||this.pinned==="right"?"right":void 0}attemptToPinColumns(d,g,m=!1){let b=(d||[]).filter(R=>!R.getColDef().lockPinned);if(!b.length)return 0;m&&(g=this.getPinDirection());let{pinnedCols:w,dragAndDrop:k}=this.beans;return w==null||w.setColsPinned(b,g,"uiColumnDragged"),m&&k.nudge(),b.length}destroy(){super.destroy(),this.lastDraggingEvent=null,this.clearHighlighted(),this.lastMovedInfo=null}}function s(r,d){r.highlighted!==d&&(r.highlighted=d,r.dispatchColEvent("headerHighlightChanged","uiColumnMoved"))}x.MoveColumnFeature=u},852:function(ne,x){Object.defineProperty(x,"__esModule",{value:!0}),x.moveColumns=x.moveColumnByIndex=void 0,x.moveColumnByIndex=function(p,M,A){var F;(F=p.colMoves)==null||F.moveColumnByIndex(M,A,"api")},x.moveColumns=function(p,M,A){var F;(F=p.colMoves)==null||F.moveColumns(M,A,"api")}},4074:function(ne,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.ColumnMoveModule=void 0;let M=p(4388),A=p(7205),F=p(9607),D=p(9122),f=p(852),v=p(4067);x.ColumnMoveModule={moduleName:"ColumnMove",version:A.VERSION,beans:[v.ColumnMoveService,D.ColumnAnimationService],apiFunctions:{moveColumnByIndex:f.moveColumnByIndex,moveColumns:f.moveColumns},dependsOn:[M.SharedDragAndDropModule],css:[F.columnMovingCSS]}},4067:function(ne,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.ColumnMoveService=void 0;let M=p(8731),A=p(2903),F=p(6908),D=p(1502),f=p(7764),v=p(7912),u=p(3505),s=p(5446);var r;(function(g){g[g.LEFT=-1]="LEFT",g[g.NONE=0]="NONE",g[g.RIGHT=1]="RIGHT"})(r||(r={}));class d extends M.BeanStub{constructor(){super(...arguments),this.beanName="colMoves"}moveColumnByIndex(m,b,w){let k=this.beans.colModel.getCols();if(!k)return;let R=k[m];this.moveColumns([R],b,w)}moveColumns(m,b,w,k=!0){let{colModel:R,colAnimation:T,visibleCols:z,eventSvc:G}=this.beans,U=R.getCols();if(!U)return;if(b>U.length-m.length)return void(0,f._warn)(30,{toIndex:b});T==null||T.start();let X=R.getColsForKeys(m);this.doesMovePassRules(X,b)&&((0,D._moveInArray)(R.getCols(),X,b),z.refresh(w),G.dispatchEvent({type:"columnMoved",columns:X,column:X.length===1?X[0]:null,toIndex:b,finished:k,source:w})),T==null||T.finish()}doesMovePassRules(m,b){let w=this.getProposedColumnOrder(m,b);return this.doesOrderPassRules(w)}doesOrderPassRules(m){let{colModel:b,gos:w}=this.beans;return(0,u.doesMovePassMarryChildren)(m,b.getColTree())?!!(k=>{let R=w.get("enableRtl"),T=R?r.RIGHT:r.LEFT,z=!0;return k.forEach(G=>{let U=(X=G.getColDef().lockPosition)?X==="left"||X===!0?r.LEFT:r.RIGHT:r.NONE;var X;R?U>T&&(z=!1):U<T&&(z=!1),T=U}),z})(m):!1}getProposedColumnOrder(m,b){let w=this.beans.colModel.getCols().slice();return(0,D._moveInArray)(w,m,b),w}createBodyDropTarget(m,b){return new v.BodyDropTarget(m,b)}moveHeader(m,b,w,k,R){let{ctrlsSvc:T,gos:z,colModel:G,visibleCols:U,focusSvc:X}=this.beans,Q=b.getBoundingClientRect(),oe=Q.left,le=(0,F.isColumnGroup)(w),fe=le?Q.width:w.getActualWidth(),ye=m==="left"!==z.get("enableRtl"),ke=(0,s.normaliseX)({x:ye?oe-20:oe+fe+20,pinned:k,fromKeyboard:!0,gos:z,ctrlsSvc:T}),Ie=X.focusedHeader,ze;if((0,s.attemptMoveColumns)({allMovingColumns:le?w.getLeafColumns():[w],isFromHeader:!0,fromLeft:m==="right",xPosition:ke,pinned:k,fromEnter:!1,fakeEvent:!1,gos:z,colModel:G,colMoves:this,visibleCols:U,finished:!0}),le){let Ye=w.getDisplayedLeafColumns();ze=ye?Ye[0]:(0,D._last)(Ye)}else ze=w;if(T.getScrollFeature().ensureColumnVisible(ze,"auto"),(!R.isAlive()||z.get("ensureDomOrder"))&&Ie){let Ye;if(le){let xe=w.getGroupId(),Te=w.getLeafColumns();if(!Te.length)return;let Ae=Te[0].getParent();if(!Ae)return;Ye=function(Ne,Re){for(;Ne;){if(Ne.getGroupId()===Re)return Ne;Ne=Ne.getParent()}}(Ae,xe)}else Ye=w;Ye&&X.focusHeaderPosition({headerPosition:et(pe({},Ie),{column:Ye})})}}setDragSourceForHeader(m,b,w){let{gos:k,colModel:R,dragAndDrop:T,visibleCols:z}=this.beans,G=!k.get("suppressDragLeaveHidesColumns"),U=(0,F.isColumnGroup)(b),X=U?b.getProvidedColumnGroup().getLeafColumns():[b],Q=U?()=>function(le,fe){let ye=le.getProvidedColumnGroup().getLeafColumns(),ke={};ye.forEach(xe=>ke[xe.getId()]=xe.isVisible());let Ie=[];fe.forEach(xe=>{ye.indexOf(xe)>=0&&(Ie.push(xe),(0,D._removeFromArray)(ye,xe))}),ye.forEach(xe=>Ie.push(xe));let ze=[],Ye=le.getLeafColumns();for(let xe of Ie)Ye.indexOf(xe)!==-1&&ze.push(xe);return{columns:Ie,columnsInSplit:ze,visibleState:ke}}(b,z.allCols):()=>function(le){let fe={};return fe[le.getId()]=le.isVisible(),{columns:[le],visibleState:fe}}(b),oe={type:A.DragSourceType.HeaderCell,eElement:m,getDefaultIconName:()=>G?"hide":"notAllowed",getDragItem:Q,dragItemName:w,onDragStarted:()=>{G=!k.get("suppressDragLeaveHidesColumns"),(0,s.setColumnsMoving)(X,!0)},onDragStopped:()=>(0,s.setColumnsMoving)(X,!1),onDragCancelled:()=>(0,s.setColumnsMoving)(X,!1),onGridEnter:le=>{if(G){let{columns:fe=[],visibleState:ye}=le!=null?le:{},ke=U?ze=>!ye||ye[ze.getColId()]:()=>!0,Ie=fe.filter(ze=>!ze.getColDef().lockVisible&&ke(ze));R.setColsVisible(Ie,!0,"uiColumnMoved")}},onGridExit:le=>{var fe;if(G){let ye=((fe=le==null?void 0:le.columns)==null?void 0:fe.filter(ke=>!ke.getColDef().lockVisible))||[];R.setColsVisible(ye,!1,"uiColumnMoved")}}};return T.addDragSource(oe,!0),oe}}x.ColumnMoveService=d},3505:function(ne,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.doesMovePassMarryChildren=x.placeLockedColumns=void 0;let M=p(2716),A=p(9409);x.placeLockedColumns=function(F,D){let f=[],v=[],u=[];return F.forEach(s=>{let r=s.getColDef().lockPosition;r==="right"?u.push(s):r==="left"||r===!0?f.push(s):v.push(s)}),D.get("enableRtl")?[...u,...v,...f]:[...f,...v,...u]},x.doesMovePassMarryChildren=function(F,D){let f=!0;return(0,M.depthFirstOriginalTreeSearch)(null,D,v=>{if(!(0,A.isProvidedColumnGroup)(v))return;let u=v,s=u.getColGroupDef();if(!(s&&s.marryChildren))return;let r=[];u.getLeafColumns().forEach(d=>{let g=F.indexOf(d);r.push(g)}),Math.max.apply(Math,r)-Math.min.apply(Math,r)>u.getLeafColumns().length-1&&(f=!1)}),f}},5446:function(ne,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.setColumnsMoving=x.normaliseX=x.attemptMoveColumns=x.getBestColumnMoveIndexFromXPosition=void 0;let M=p(1502);function A(D){let{isFromHeader:f,fromLeft:v,xPosition:u,fromEnter:s,fakeEvent:r,pinned:d,gos:g,colModel:m,colMoves:b,visibleCols:w}=D,{allMovingColumns:k}=D;if(f){let fe=[];k.forEach(ye=>{var ze;let ke=null,Ie=ye.getParent();for(;Ie!=null&&Ie.getDisplayedLeafColumns().length===1;)ke=Ie,Ie=Ie.getParent();ke!=null?((ze=ke.getColGroupDef())!=null&&ze.marryChildren?ke.getProvidedColumnGroup().getLeafColumns():ke.getLeafColumns()).forEach(Ye=>{fe.includes(Ye)||fe.push(Ye)}):fe.includes(ye)||fe.push(ye)}),k=fe}let R=k.slice();(function(fe,ye){!ye||ye.length<=1||ye.filter(ke=>fe.indexOf(ke)<0).length>0||ye.sort((ke,Ie)=>fe.indexOf(ke)-fe.indexOf(Ie))})(m.getCols(),R);let T=function(fe){let{movingCols:ye,draggingRight:ke,xPosition:Ie,pinned:ze,gos:Ye,colModel:xe,visibleCols:Te}=fe;if(Ye.get("suppressMovableColumns")||ye.some(St=>St.getColDef().suppressMovable))return[];let Ne=function(St,ft){switch(ft){case"left":return St.leftCols;case"right":return St.rightCols;default:return St.centerCols}}(Te,ze),Re=xe.getCols(),Oe=Ne.filter(St=>ye.includes(St)),Ve=Ne.filter(St=>!ye.includes(St)),Ue=Re.filter(St=>!ye.includes(St)),Ee,tt=0,at=Ie;if(ke){let St=0;Oe.forEach(ft=>St+=ft.getActualWidth()),at-=St}if(at>0){for(let St=0;St<Ve.length&&(at-=Ve[St].getActualWidth(),!(at<0));St++)tt++;ke&&tt++}if(tt>0){let St=Ve[tt-1];Ee=Ue.indexOf(St)+1}else Ee=Ue.indexOf(Ve[0]),Ee===-1&&(Ee=0);let ut=[Ee],Mt=(St,ft)=>St-ft;if(ke){let St=Ee+1,ft=Re.length-1;for(;St<=ft;)ut.push(St),St++;ut.sort(Mt)}else{let St=Ee,ft=Re.length-1,kt=Re[St];for(;St<=ft&&Ne.indexOf(kt)<0;)St++,ut.push(St),kt=Re[St];St=Ee-1;let Et=0;for(;St>=Et;)ut.push(St),St--;ut.sort(Mt).reverse()}return ut}({movingCols:R,draggingRight:v,xPosition:u,pinned:d,gos:g,colModel:m,visibleCols:w}),z=function(fe,ye){let ke=ye.getCols(),Ie=(0,M._sortNumerically)(fe.map(xe=>ke.indexOf(xe))),ze=Ie[0];return(0,M._last)(Ie)-ze!=Ie.length-1?null:ze}(R,m);if(T.length===0)return;let G=T[0],U=z!==null&&!s;if(f&&(U=z!==null),U&&!r&&(!v&&G>=z||v&&G<=z))return;let X=w.allCols,Q=[],oe=null;for(let fe=0;fe<T.length;fe++){let ye=T[fe],ke=b.getProposedColumnOrder(R,ye);if(!b.doesOrderPassRules(ke))continue;let Ie=ke.filter(Ye=>X.includes(Ye));if(oe===null)oe=Ie;else if(!(0,M._areEqual)(Ie,oe))break;let ze=F(ke);Q.push({move:ye,fragCount:ze})}if(Q.length===0)return;Q.sort((fe,ye)=>fe.fragCount-ye.fragCount);let le=Q[0].move;return le>m.getCols().length-k.length?void 0:{columns:k,toIndex:le}}function F(D){function f(u){let s=[],r=u.getOriginalParent();for(;r!=null;)s.push(r),r=r.getOriginalParent();return s}let v=0;for(let u=0;u<D.length-1;u++){let s=f(D[u]),r=f(D[u+1]);[s,r]=s.length>r.length?[s,r]:[r,s],s.forEach(d=>{r.indexOf(d)===-1&&v++})}return v}x.getBestColumnMoveIndexFromXPosition=A,x.attemptMoveColumns=function(D){let{columns:f,toIndex:v}=A(D)||{},{finished:u,colMoves:s}=D;return f&&v!=null?(s.moveColumns(f,v,"uiColumnMoved",u),u?null:{columns:f,toIndex:v}):null},x.normaliseX=function(D){var b;let{pinned:f,fromKeyboard:v,gos:u,ctrlsSvc:s,useHeaderRow:r,skipScrollPadding:d}=D,g=(b=s.getHeaderRowContainerCtrl(f))==null?void 0:b.eViewport,{x:m}=D;return g?(v&&(m-=g.getBoundingClientRect().left),u.get("enableRtl")&&(r&&(g=g.querySelector(".ag-header-row")),m=g.clientWidth-m),f!=null||d||(m+=s.get("center").getCenterViewportScrollLeft()),m):0},x.setColumnsMoving=function(D,f){for(let v of D)v.moving=f,v.dispatchColEvent("movingChanged","uiColumnMoved")}},9686:function(ne,x){Object.defineProperty(x,"__esModule",{value:!0}),x.setColumnWidths=void 0,x.setColumnWidths=function(p,M,A=!0,F="api"){var D;(D=p.colResize)==null||D.setColumnWidths(M,!1,A,F)}},6924:function(ne,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.ColumnResizeModule=void 0;let M=p(4388),A=p(447),F=p(7205),D=p(9686),f=p(9677);x.ColumnResizeModule={moduleName:"ColumnResize",version:F.VERSION,beans:[f.ColumnResizeService],apiFunctions:{setColumnWidths:D.setColumnWidths},dependsOn:[M.HorizontalResizeModule,A.AutoWidthModule]}},9677:function(ne,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.ColumnResizeService=void 0;let M=p(2934),A=p(8731),F=p(7764),D=p(9033),f=p(7438);class v extends A.BeanStub{constructor(){super(...arguments),this.beanName="colResize"}setColumnWidths(s,r,d,g){let m=[],{colModel:b,gos:w,visibleCols:k}=this.beans;s.forEach(R=>{let T=b.getColDefCol(R.key)||b.getCol(R.key);if(T&&(m.push({width:R.newWidth,ratios:[1],columns:[T]}),w.get("colResizeDefault")==="shift"&&(r=!r),r)){let z=k.getColAfter(T);if(!z)return;let G=T.getActualWidth()-R.newWidth,U=z.getActualWidth()+G;m.push({width:U,ratios:[1],columns:[z]})}}),m.length!==0&&this.resizeColumnSets({resizeSets:m,finished:d,source:g})}resizeColumnSets(s){var T;let{resizeSets:r,finished:d,source:g}=s;if(!(!r||r.every(z=>function(G){let{columns:U,width:X}=G,Q=0,oe=0,le=!0;U.forEach(ye=>{let ke=ye.getMinWidth();Q+=ke||0;let Ie=ye.getMaxWidth();Ie>0?oe+=Ie:le=!1});let fe=!le||X<=oe;return X>=Q&&fe}(z)))){if(d){let z=r&&r.length>0?r[0].columns:null;(0,M.dispatchColumnResizedEvent)(this.eventSvc,z,d,g)}return}let m=[],b=[];r.forEach(z=>{let{width:G,columns:U,ratios:X}=z,Q={},oe={};U.forEach(ye=>b.push(ye));let le=!0,fe=0;for(;le;){if(fe++,fe>1e3){(0,F._error)(31);break}le=!1;let ye=[],ke=0,Ie=G;U.forEach((Ye,xe)=>{if(oe[Ye.getId()])Ie-=Q[Ye.getId()];else{ye.push(Ye);let Te=X[xe];ke+=Te}});let ze=1/ke;ye.forEach((Ye,xe)=>{let Te;xe===ye.length-1?Te=Ie:(Te=Math.round(X[xe]*G*ze),Ie-=Te);let Ae=Ye.getMinWidth(),Ne=Ye.getMaxWidth();Te<Ae?(Te=Ae,oe[Ye.getId()]=!0,le=!0):Ne>0&&Te>Ne&&(Te=Ne,oe[Ye.getId()]=!0,le=!0),Q[Ye.getId()]=Te})}U.forEach(ye=>{let ke=Q[ye.getId()];ye.getActualWidth()!==ke&&(ye.setActualWidth(ke,g),m.push(ye))})});let w=m.length>0,k=[];if(w){let{colFlex:z,visibleCols:G,colViewport:U}=this.beans;k=(T=z==null?void 0:z.refreshFlexedColumns({resizingCols:b,skipSetLeft:!0}))!=null?T:[],G.setLeftValues(g),G.updateBodyWidths(),U.checkViewportColumns()}let R=b.concat(k);(w||d)&&(0,M.dispatchColumnResizedEvent)(this.eventSvc,R,d,g,k)}resizeHeader(s,r,d){if(!s.isResizable())return;let g=s.getActualWidth(),m=s.getMinWidth(),b=s.getMaxWidth(),w=Math.min(Math.max(g+r,m),b);this.setColumnWidths([{key:s,newWidth:w}],d,!0,"uiColumnResized")}createResizeFeature(s,r,d,g,m){return new f.ResizeFeature(s,r,d,g,m)}createGroupResizeFeature(s,r,d,g){return new D.GroupResizeFeature(s,r,d,g)}}x.ColumnResizeService=v},9033:function(ne,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.GroupResizeFeature=void 0;let M=p(8731);class A extends M.BeanStub{constructor(D,f,v,u){super(),this.comp=D,this.eResize=f,this.pinned=v,this.columnGroup=u}postConstruct(){if(!this.columnGroup.isResizable())return void this.comp.setResizableDisplayed(!1);let{horizontalResizeSvc:D,gos:f,colAutosize:v}=this.beans,u=D.addResizeBar({eResizeBar:this.eResize,onResizeStart:this.onResizeStart.bind(this),onResizing:this.onResizing.bind(this,!1),onResizeEnd:this.onResizing.bind(this,!0)});this.addDestroyFunc(u),!f.get("suppressAutoSize")&&v&&this.addDestroyFunc(v.addColumnGroupResize(this.eResize,this.columnGroup,()=>this.resizeLeafColumnsToFit("uiColumnResized")))}onResizeStart(D){let{columnsToResize:f,resizeStartWidth:v,resizeRatios:u,groupAfterColumns:s,groupAfterStartWidth:r,groupAfterRatios:d}=this.getInitialValues(D);this.resizeCols=f,this.resizeStartWidth=v,this.resizeRatios=u,this.resizeTakeFromCols=s,this.resizeTakeFromStartWidth=r,this.resizeTakeFromRatios=d,this.toggleColumnResizing(!0)}onResizing(D,f,v="uiColumnResized"){let u=this.normaliseDragChange(f),s=this.resizeStartWidth+u;this.resizeColumnsFromLocalValues(s,v,D)}getInitialValues(D){var g,m;let f=b=>b.reduce((w,k)=>w+k.getActualWidth(),0),v=(b,w)=>b.map(k=>k.getActualWidth()/w),u=this.getColumnsToResize(),s=f(u),r={columnsToResize:u,resizeStartWidth:s,resizeRatios:v(u,s)},d=null;if(D&&(d=(m=(g=this.beans.colGroupSvc)==null?void 0:g.getGroupAtDirection(this.columnGroup,"After"))!=null?m:null),d){let b=d.getDisplayedLeafColumns(),w=r.groupAfterColumns=b.filter(R=>R.isResizable()),k=r.groupAfterStartWidth=f(w);r.groupAfterRatios=v(w,k)}else r.groupAfterColumns=void 0,r.groupAfterStartWidth=void 0,r.groupAfterRatios=void 0;return r}resizeLeafColumnsToFit(D){let f=this.beans.autoWidthCalc.getPreferredWidthForColumnGroup(this.columnGroup),v=this.getInitialValues();f>v.resizeStartWidth&&this.resizeColumns(v,f,D,!0)}resizeColumnsFromLocalValues(D,f,v=!0){if(!this.resizeCols||!this.resizeRatios)return;let u={columnsToResize:this.resizeCols,resizeStartWidth:this.resizeStartWidth,resizeRatios:this.resizeRatios,groupAfterColumns:this.resizeTakeFromCols,groupAfterStartWidth:this.resizeTakeFromStartWidth,groupAfterRatios:this.resizeTakeFromRatios};this.resizeColumns(u,D,f,v)}resizeColumns(D,f,v,u=!0){var k;let{columnsToResize:s,resizeStartWidth:r,resizeRatios:d,groupAfterColumns:g,groupAfterStartWidth:m,groupAfterRatios:b}=D,w=[];if(w.push({columns:s,ratios:d,width:f}),g){let R=f-r;w.push({columns:g,ratios:b,width:m-R})}(k=this.beans.colResize)==null||k.resizeColumnSets({resizeSets:w,finished:u,source:v}),u&&this.toggleColumnResizing(!1)}toggleColumnResizing(D){this.comp.addOrRemoveCssClass("ag-column-resizing",D)}getColumnsToResize(){return this.columnGroup.getDisplayedLeafColumns().filter(D=>D.isResizable())}normaliseDragChange(D){let f=D;return this.gos.get("enableRtl")?this.pinned!=="left"&&(f*=-1):this.pinned==="right"&&(f*=-1),f}destroy(){super.destroy(),this.resizeCols=void 0,this.resizeRatios=void 0,this.resizeTakeFromCols=void 0,this.resizeTakeFromRatios=void 0}}x.GroupResizeFeature=A},7438:function(ne,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.ResizeFeature=void 0;let M=p(8731),A=p(3507);class F extends M.BeanStub{constructor(f,v,u,s,r){super(),this.pinned=f,this.column=v,this.eResize=u,this.comp=s,this.ctrl=r}postConstruct(){let f=[],v,u,s=()=>{if((0,A._setDisplayed)(this.eResize,v),!v)return;let{horizontalResizeSvc:g,colAutosize:m}=this.beans,b=g.addResizeBar({eResizeBar:this.eResize,onResizeStart:this.onResizeStart.bind(this),onResizing:this.onResizing.bind(this,!1),onResizeEnd:this.onResizing.bind(this,!0)});f.push(b),u&&m&&f.push(m.addColumnAutosize(this.eResize,this.column))},r=()=>{f.forEach(g=>g()),f.length=0},d=()=>{let g=this.column.isResizable(),m=!this.gos.get("suppressAutoSize")&&!this.column.getColDef().suppressAutoSize;(g!==v||m!==u)&&(v=g,u=m,r(),s())};d(),this.addDestroyFunc(r),this.ctrl.setRefreshFunction("resize",d)}onResizing(f,v){var R,T;let{column:u,lastResizeAmount:s,resizeStartWidth:r,beans:d}=this,g=this.normaliseResizeAmount(v),m=[{key:u,newWidth:r+g}],{pinnedCols:b,ctrlsSvc:w,colResize:k}=d;this.column.getPinned()&&((R=b==null?void 0:b.leftWidth)!=null?R:0)+((T=b==null?void 0:b.rightWidth)!=null?T:0)+(g-s)>(0,A._getInnerWidth)(w.getGridBodyCtrl().eBodyViewport)-50||(this.lastResizeAmount=g,k==null||k.setColumnWidths(m,this.resizeWithShiftKey,f,"uiColumnResized"),f&&this.toggleColumnResizing(!1))}onResizeStart(f){this.resizeStartWidth=this.column.getActualWidth(),this.lastResizeAmount=0,this.resizeWithShiftKey=f,this.toggleColumnResizing(!0)}toggleColumnResizing(f){this.comp.addOrRemoveCssClass("ag-column-resizing",f)}normaliseResizeAmount(f){let v=f,u=this.pinned!=="left",s=this.pinned==="right";return this.gos.get("enableRtl")?u&&(v*=-1):s&&(v*=-1),v}}x.ResizeFeature=F},3600:function(ne,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.BaseColsService=void 0;let M=p(8731),A=p(1502),F=p(4422),D=p(2934);class f extends M.BeanStub{constructor(){super(...arguments),this.dispatchColumnChangedEvent=D.dispatchColumnChangedEvent,this.columns=[]}wireBeans(u){this.colModel=u.colModel,this.aggFuncSvc=u.aggFuncSvc,this.visibleCols=u.visibleCols}sortColumns(u){this.columns.sort(u)}setColumns(u,s){this.setColList(u,this.columns,this.eventName,!0,!0,this.columnProcessors.set,s)}addColumns(u,s){this.updateColList(u,this.columns,!0,!0,this.columnProcessors.add,this.eventName,s)}removeColumns(u,s){this.updateColList(u,this.columns,!1,!0,this.columnProcessors.remove,this.eventName,s)}setColList(u=[],s,r,d,g,m,b){let w=this.colModel.getCols();if(!w||w.length===0)return;let k=new Map;s.forEach((R,T)=>k.set(R,T)),s.length=0,(0,F._exists)(u)&&u.forEach(R=>{let T=this.colModel.getColDefCol(R);T&&s.push(T)}),s.forEach((R,T)=>{let z=k.get(R);z!==void 0?d&&z!==T||k.delete(R):k.set(R,0)}),(this.colModel.getColDefCols()||[]).forEach(R=>{let T=s.indexOf(R)>=0;m(R,T,b)}),g&&this.colModel.refreshCols(!1),this.visibleCols.refresh(b),this.dispatchColumnChangedEvent(this.eventSvc,r,[...k.keys()],b)}updateColList(u=[],s,r,d,g,m,b){if(!u||u.length===0)return;let w=!1,k=new Set;if(u.forEach(T=>{if(!T)return;let z=this.colModel.getColDefCol(T);if(z){if(k.add(z),r){if(s.indexOf(z)>=0)return;s.push(z)}else{let G=s.indexOf(z);if(G<0)return;for(let U=G+1;U<s.length;U++)k.add(s[U]);(0,A._removeFromArray)(s,z)}g(z,r,b),w=!0}}),!w)return;d&&this.colModel.refreshCols(!1),this.visibleCols.refresh(b);let R=Array.from(k);this.eventSvc.dispatchEvent({type:m,columns:R,column:R.length===1?R[0]:null,source:b})}extractCols(u,s=[]){let r=this.columns,d=[],g=[],{setFlagFunc:m,getIndexFunc:b,getInitialIndexFunc:w,getValueFunc:k,getInitialValueFunc:R}=this.columnExtractors;(this.colModel.getColDefCols()||[]).forEach(G=>{let U=s.indexOf(G)<0,X=G.getColDef(),Q=k(X),oe=R(X),le=b(X),fe=w(X),ye;ye=Q!==void 0?Q:le!==void 0?le!==null&&le>=0:U?oe!==void 0?oe:fe!==void 0&&fe!=null&&fe>=0:r.indexOf(G)>=0,ye&&((U?le!=null||fe!=null:le!=null)?d.push(G):g.push(G))});let T=G=>{let U=b(G.getColDef()),X=w(G.getColDef());return U!=null?U:X};d.sort((G,U)=>{let X=T(G),Q=T(U);return X===Q?0:X<Q?-1:1});let z=[].concat(d);return r.forEach(G=>{g.indexOf(G)>=0&&z.push(G)}),g.forEach(G=>{z.indexOf(G)<0&&z.push(G)}),r.forEach(G=>{z.indexOf(G)<0&&m(G,!1,u)}),z.forEach(G=>{r.indexOf(G)<0&&m(G,!0,u)}),this.columns=z}restoreColumnOrder(u,s){let r=this.columns,d=this.colModel.getColDefCols();if(!r.length||!d)return u;let g=Object.keys(s),m=new Set(g),b=new Set(g),w=new Set(r.map(ye=>{let ke=ye.getColId();return b.delete(ke),ke}).concat(g)),k=[],R={},T=0;for(let ye=0;ye<d.length;ye++){let ke=d[ye].getColId();w.has(ke)&&(k.push(ke),R[ke]=T++)}let z=1e3,G=!1,U=0,X=this.columnOrdering.enableProp,Q=this.columnOrdering.initialEnableProp,oe=this.columnOrdering.indexProp,le=this.columnOrdering.initialIndexProp,fe=ye=>{let ke=R[ye];for(let Ie=U;Ie<ke;Ie++){let ze=k[Ie];b.has(ze)&&(s[ze][oe]=z++,b.delete(ze))}U=ke};return r.forEach(ye=>{let ke=ye.getColId();if(m.has(ke))fe(ke),s[ke][oe]=z++;else{let Ie=ye.getColDef();(Ie[oe]===null||Ie[oe]===void 0&&Ie[le]==null)&&(G||(Ie[X]||Ie[X]===void 0&&Ie[Q]?fe(ke):(b.forEach(ze=>{s[ze][oe]=z+R[ze]}),z+=k.length,G=!0)),u[ke]||(u[ke]={colId:ke}),u[ke][oe]=z++)}}),u}}x.BaseColsService=f},1144:function(ne,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.getAllDisplayedVirtualColumns=x.getAllDisplayedColumns=x.getDisplayedRightColumns=x.getDisplayedCenterColumns=x.getDisplayedLeftColumns=x.getAllGridColumns=x.setColumnsPinned=x.setColumnsVisible=x.getDisplayedColBefore=x.getDisplayedColAfter=x.isPinningRight=x.isPinningLeft=x.isPinning=x.resetColumnState=x.getColumnState=x.applyColumnState=x.getColumns=x.getColumn=x.getDisplayNameForColumn=x.getColumnDefs=x.getColumnDef=void 0;let M=p(5266);x.getColumnDef=function(A,F){let D=A.colModel.getColDefCol(F);return D?D.getColDef():null},x.getColumnDefs=function(A){return A.colModel.getColumnDefs()},x.getDisplayNameForColumn=function(A,F,D){return A.colNames.getDisplayNameForColumn(F,D)||""},x.getColumn=function(A,F){return A.colModel.getColDefCol(F)},x.getColumns=function(A){return A.colModel.getColDefCols()},x.applyColumnState=function(A,F){return(0,M._applyColumnState)(A,F,"api")},x.getColumnState=function(A){return(0,M._getColumnState)(A)},x.resetColumnState=function(A){(0,M._resetColumnState)(A,"api")},x.isPinning=function(A){return A.visibleCols.isPinningLeft()||A.visibleCols.isPinningRight()},x.isPinningLeft=function(A){return A.visibleCols.isPinningLeft()},x.isPinningRight=function(A){return A.visibleCols.isPinningRight()},x.getDisplayedColAfter=function(A,F){return A.visibleCols.getColAfter(F)},x.getDisplayedColBefore=function(A,F){return A.visibleCols.getColBefore(F)},x.setColumnsVisible=function(A,F,D){A.colModel.setColsVisible(F,D,"api")},x.setColumnsPinned=function(A,F,D){var f;(f=A.pinnedCols)==null||f.setColsPinned(F,D,"api")},x.getAllGridColumns=function(A){return A.colModel.getCols()},x.getDisplayedLeftColumns=function(A){return A.visibleCols.leftCols},x.getDisplayedCenterColumns=function(A){return A.visibleCols.centerCols},x.getDisplayedRightColumns=function(A){return A.visibleCols.rightCols},x.getAllDisplayedColumns=function(A){return A.visibleCols.allCols},x.getAllDisplayedVirtualColumns=function(A){return A.colViewport.getViewportColumns()}},4604:function(ne,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.ColumnDefFactory=x._deepCloneDefinition=void 0;let M=p(8731),A=p(6996);function F(f,v){if(!f)return;let u=f,s={};return Object.keys(u).forEach(r=>{if(v&&v.indexOf(r)>=0||A.SKIP_JS_BUILTINS.has(r))return;let d=u[r],g=typeof d=="object"&&d!==null&&d.constructor===Object;s[r]=g?F(d):d}),s}x._deepCloneDefinition=F;class D extends M.BeanStub{constructor(){super(...arguments),this.beanName="colDefFactory"}wireBeans(v){this.rowGroupColsSvc=v.rowGroupColsSvc,this.pivotColsSvc=v.pivotColsSvc}getColumnDefs(v,u,s,r){var b,w;let d=v.slice();u?d.sort((k,R)=>s.indexOf(k)-s.indexOf(R)):s&&d.sort((k,R)=>r.indexOf(k)-r.indexOf(R));let g=(b=this.rowGroupColsSvc)==null?void 0:b.columns,m=(w=this.pivotColsSvc)==null?void 0:w.columns;return this.buildColumnDefs(d,g,m)}buildColumnDefs(v,u=[],s=[]){let r=[],d={};return v.forEach(g=>{let m=!0,b=this.createDefFromColumn(g,u,s),w=g.getOriginalParent(),k=null;for(;w;){let R=null;if(w.isPadding()){w=w.getOriginalParent();continue}let T=d[w.getGroupId()];if(T){T.children.push(b),m=!1;break}if(R=this.createDefFromGroup(w),R&&(R.children=[b],d[R.groupId]=R,b=R,w=w.getOriginalParent()),w!=null&&k===w){m=!1;break}k=w}m&&r.push(b)}),r}createDefFromGroup(v){let u=F(v.getColGroupDef(),["children"]);return u&&(u.groupId=v.getGroupId()),u}createDefFromColumn(v,u,s){let r=F(v.getColDef());return r.colId=v.getColId(),r.width=v.getActualWidth(),r.rowGroup=v.isRowGroupActive(),r.rowGroupIndex=v.isRowGroupActive()?u.indexOf(v):null,r.pivot=v.isPivotActive(),r.pivotIndex=v.isPivotActive()?s.indexOf(v):null,r.aggFunc=v.isValueActive()?v.getAggFunc():null,r.hide=!v.isVisible()||void 0,r.pinned=v.isPinned()?v.getPinned():null,r.sort=v.getSort()?v.getSort():null,r.sortIndex=v.getSortIndex()!=null?v.getSortIndex():null,r}}x.ColumnDefFactory=D},2934:function(ne,x){function p(M,A){if(!M||M.length==0)return;let F=A(M[0]);for(let D=1;D<M.length;D++)if(F!==A(M[D]))return;return F}Object.defineProperty(x,"__esModule",{value:!0}),x.dispatchColumnResizedEvent=x.dispatchColumnChangedEvent=x.dispatchColumnVisibleEvent=x.dispatchColumnPinnedEvent=void 0,x.dispatchColumnPinnedEvent=function(M,A,F){if(!A.length)return;let D=A.length===1?A[0]:null,f=p(A,v=>v.getPinned());M.dispatchEvent({type:"columnPinned",pinned:f!=null?f:null,columns:A,column:D,source:F})},x.dispatchColumnVisibleEvent=function(M,A,F){if(!A.length)return;let D=A.length===1?A[0]:null,f=p(A,v=>v.isVisible());M.dispatchEvent({type:"columnVisible",visible:f,columns:A,column:D,source:F})},x.dispatchColumnChangedEvent=function(M,A,F,D){M.dispatchEvent({type:A,columns:F,column:F&&F.length==1?F[0]:null,source:D})},x.dispatchColumnResizedEvent=function(M,A,F,D,f=null){A!=null&&A.length&&M.dispatchEvent({type:"columnResized",columns:A,column:A.length===1?A[0]:null,flexColumns:f,finished:F,source:D})}},2716:function(ne,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.depthFirstOriginalTreeSearch=x._addColumnDefaultAndTypes=x._updateColumnState=x.updateSomeColumnState=x._recursivelyCreateColumns=x._createColumnTree=void 0;let M=p(3355),A=p(9409),F=p(5449),D=p(7274),f=p(6996),v=p(7764),u=p(2294),s=p(3146);function r(k,R,T,z,G,U,X,Q){if(!R)return[];let{colGroupSvc:oe}=k,le=new Array(R.length);for(let fe=0;fe<le.length;fe++){let ye=R[fe];oe&&ye.children!==void 0?le[fe]=oe.createProvidedColumnGroup(z,ye,T,G,U,X,Q):le[fe]=d(k,z,ye,G,U,Q)}return le}function d(k,R,T,z,G,U){var oe;let X=function(le,fe){if(fe)for(let ye=0;ye<fe.length;ye++){let ke=fe[ye].getUserProvidedColDef();if(ke){if(le.colId!=null){if(fe[ye].getId()===le.colId)return{idx:ye,column:fe[ye]};continue}if(le.field!=null){if(ke.field===le.field)return{idx:ye,column:fe[ye]}}else if(ke===le)return{idx:ye,column:fe[ye]}}}}(T,z);X&&(z==null||z.splice(X.idx,1));let Q=X==null?void 0:X.column;if(Q){let le=b(k,T,Q.getColId());Q.setColDef(le,T,U),m(k,Q,le,U)}else{let le=G.getUniqueKey(T.colId,T.field),fe=b(k,T,le);Q=new M.AgColumn(fe,T,le,R),k.context.createBean(Q)}return(oe=k.dataTypeSvc)==null||oe.addColumnListeners(Q),Q}function g(k,R,T,z,G,U,X,Q){let{sortSvc:oe,pinnedCols:le,colFlex:fe}=k;T!==void 0&&R.setVisible(!T,Q),oe&&(oe.updateColSort(R,z,Q),G!==void 0&&oe.setColSortIndex(R,G)),U!==void 0&&(le==null||le.setColPinned(R,U)),X!==void 0&&(fe==null||fe.setColFlex(R,X))}function m(k,R,T,z){g(k,R,T.hide,T.sort,T.sortIndex,T.pinned,T.flex,z);let G=R.getFlex();if(!(G!=null&&G>0))if(T.width!=null)R.setActualWidth(T.width,z);else{let U=R.getActualWidth();R.setActualWidth(U,z)}}function b(k,R,T,z){let{gos:G,dataTypeSvc:U,validation:X}=k,Q={},oe=G.get("defaultColDef");(0,f._mergeDeep)(Q,oe,!1,!0);let le=function(ke,Ie,ze,Ye){var Ae,Ne,Re;let xe=(Ae=ke.dataTypeSvc)==null?void 0:Ae.updateColDefAndGetColumnType(Ie,ze,Ye),Te=(Re=(Ne=ze.type)!=null?Ne:xe)!=null?Re:Ie.type;return Ie.type=Te,Te?(0,s.convertColumnTypes)(Te):void 0}(k,Q,R,T);le&&function(ke,Ie,ze){if(!Ie.length)return;let Ye=Object.assign({},F.DefaultColumnTypes),xe=ke.gos.get("columnTypes")||{};for(let[Te,Ae]of Object.entries(xe))Te in Ye?(0,v._warn)(34,{key:Te}):(Ae.type&&(0,v._warn)(35),Ye[Te]=Ae);Ie.forEach(Te=>{let Ae=Ye[Te.trim()];Ae?(0,f._mergeDeep)(ze,Ae,!1,!0):(0,v._warn)(36,{t:Te})})}(k,le,Q),(0,f._mergeDeep)(Q,R,!1,!0);let fe=G.get("autoGroupColumnDef"),ye=(0,D._isColumnsSortingCoupledToGroup)(G);return R.rowGroup&&fe&&ye&&(0,f._mergeDeep)(Q,{sort:fe.sort,initialSort:fe.initialSort},!1,!0),U==null||U.validateColDef(Q),X==null||X.validateColDef(Q,T,z),Q}function w(k,R,T){if(R)for(let z=0;z<R.length;z++){let G=R[z];(0,A.isProvidedColumnGroup)(G)&&w(G,G.getChildren(),T),T(G,k)}}x._createColumnTree=function(k,R=null,T,z,G){var Ie;let U=new u.ColumnKeyCreator,{existingCols:X,existingGroups:Q,existingColKeys:oe}=function(ze){let Ye=[],xe=[],Te=[];return ze&&w(null,ze,Ae=>{if((0,A.isProvidedColumnGroup)(Ae)){let Ne=Ae;xe.push(Ne)}else{let Ne=Ae;Te.push(Ne.getId()),Ye.push(Ne)}}),{existingCols:Ye,existingGroups:xe,existingColKeys:Te}}(z);U.addExistingKeys(oe);let le=r(k,R,0,T,X,U,Q,G),{colGroupSvc:fe}=k,ye=(Ie=fe==null?void 0:fe.findMaxDepth(le,0))!=null?Ie:0,ke=fe?fe.balanceColumnTree(le,0,ye,U):le;return w(null,ke,(ze,Ye)=>{(0,A.isProvidedColumnGroup)(ze)&&ze.setupExpandable(),ze.originalParent=Ye}),{columnTree:ke,treeDept:ye}},x._recursivelyCreateColumns=r,x.updateSomeColumnState=g,x._updateColumnState=m,x._addColumnDefaultAndTypes=b,x.depthFirstOriginalTreeSearch=w},2849:function(ne,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.ColumnFlexService=void 0;let M=p(8731),A=p(2934);class F extends M.BeanStub{constructor(){super(...arguments),this.beanName="colFlex"}refreshFlexedColumns(f={}){let v=f.source?f.source:"flex";f.viewportWidth!=null&&(this.flexViewportWidth=f.viewportWidth);let u=this.flexViewportWidth;if(!u)return[];let{visibleCols:s}=this.beans,r=s.centerCols,d=-1;if(f.resizingCols){let G=new Set(f.resizingCols);for(let U=r.length-1;U>=0;U--)if(G.has(r[U])){d=U;break}}let g=!1,m=r.map((G,U)=>{let X=G.getFlex(),Q=X!=null&&X>0&&U>d;return g||(g=Q),{col:G,isFlex:Q,flex:Math.max(0,X!=null?X:0),initialSize:G.getActualWidth(),min:G.getMinWidth(),max:G.getMaxWidth(),targetSize:0}});if(!g)return[];let b=m.length,w=m.reduce((G,U)=>G+U.flex,0),k=u,R=(G,U)=>{G.frozenSize=U,G.col.setActualWidth(U,v),k-=U,w-=G.flex,b-=1},T=G=>G.frozenSize!=null;for(let G of m)G.isFlex||R(G,G.initialSize);for(;b>0;){let G=Math.round(w<1?k*w:k),U,X=0,Q=0;for(let fe of m){if(T(fe))continue;U=fe,Q+=G*(fe.flex/w);let ye=Q-X,ke=Math.round(ye);fe.targetSize=ke,X+=ke}U&&(U.targetSize+=G-X);let oe=0;for(let fe of m){if(T(fe))continue;let ye=fe.targetSize,ke=Math.min(Math.max(ye,fe.min),fe.max);oe+=ke-ye,fe.violationType=ke===ye?void 0:ke<ye?"max":"min",fe.targetSize=ke}let le=oe===0?"all":oe>0?"min":"max";for(let fe of m)T(fe)||le!=="all"&&fe.violationType!==le||R(fe,fe.targetSize)}f.skipSetLeft||s.setLeftValues(v),f.updateBodyWidths&&s.updateBodyWidths();let z=m.filter(G=>G.isFlex&&!G.violationType).map(G=>G.col);if(f.fireResizedEvent){let G=m.filter(X=>X.initialSize!==X.frozenSize).map(X=>X.col),U=m.filter(X=>X.flex).map(X=>X.col);(0,A.dispatchColumnResizedEvent)(this.eventSvc,G,!0,v,U)}return z}initCol(f){let{flex:v,initialFlex:u}=f.colDef;v!==void 0?f.flex=v:u!==void 0&&(f.flex=u)}setColFlex(f,v){f.flex=v!=null?v:null,f.dispatchStateUpdatedEvent("flex")}}x.ColumnFlexService=F},6641:function(ne,x){Object.defineProperty(x,"__esModule",{value:!0}),x.getAllDisplayedColumnGroups=x.getRightDisplayedColumnGroups=x.getCenterDisplayedColumnGroups=x.getLeftDisplayedColumnGroups=x.resetColumnGroupState=x.setColumnGroupState=x.getColumnGroupState=x.getDisplayNameForColumnGroup=x.getProvidedColumnGroup=x.getColumnGroup=x.setColumnGroupOpened=void 0,x.setColumnGroupOpened=function(p,M,A){var F;(F=p.colGroupSvc)==null||F.setColumnGroupOpened(M,A,"api")},x.getColumnGroup=function(p,M,A){var F,D;return(D=(F=p.colGroupSvc)==null?void 0:F.getColumnGroup(M,A))!=null?D:null},x.getProvidedColumnGroup=function(p,M){var A,F;return(F=(A=p.colGroupSvc)==null?void 0:A.getProvidedColGroup(M))!=null?F:null},x.getDisplayNameForColumnGroup=function(p,M,A){return p.colNames.getDisplayNameForColumnGroup(M,A)||""},x.getColumnGroupState=function(p){var M,A;return(A=(M=p.colGroupSvc)==null?void 0:M.getColumnGroupState())!=null?A:[]},x.setColumnGroupState=function(p,M){var A;(A=p.colGroupSvc)==null||A.setColumnGroupState(M,"api")},x.resetColumnGroupState=function(p){var M;(M=p.colGroupSvc)==null||M.resetColumnGroupState("api")},x.getLeftDisplayedColumnGroups=function(p){return p.visibleCols.treeLeft},x.getCenterDisplayedColumnGroups=function(p){return p.visibleCols.treeCenter},x.getRightDisplayedColumnGroups=function(p){return p.visibleCols.treeRight},x.getAllDisplayedColumnGroups=function(p){return p.visibleCols.getAllTrees()}},6041:function(ne,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.ColumnGroupModule=void 0;let M=p(84),A=p(7205),F=p(6641),D=p(6266);x.ColumnGroupModule={moduleName:"ColumnGroup",version:A.VERSION,dynamicBeans:{headerGroupCellCtrl:M.HeaderGroupCellCtrl},beans:[D.ColumnGroupService],apiFunctions:{getAllDisplayedColumnGroups:F.getAllDisplayedColumnGroups,getCenterDisplayedColumnGroups:F.getCenterDisplayedColumnGroups,getColumnGroup:F.getColumnGroup,getColumnGroupState:F.getColumnGroupState,getDisplayNameForColumnGroup:F.getDisplayNameForColumnGroup,getLeftDisplayedColumnGroups:F.getLeftDisplayedColumnGroups,getProvidedColumnGroup:F.getProvidedColumnGroup,getRightDisplayedColumnGroups:F.getRightDisplayedColumnGroups,resetColumnGroupState:F.resetColumnGroupState,setColumnGroupOpened:F.setColumnGroupOpened,setColumnGroupState:F.setColumnGroupState}}},6266:function(ne,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.ColumnGroupService=void 0;let M=p(8731),A=p(6908),F=p(6908),D=p(9409),f=p(9409),v=p(1502),u=p(4422),s=p(2716),r=p(6869);class d extends M.BeanStub{constructor(){super(...arguments),this.beanName="colGroupSvc"}getColumnGroupState(){let m=[],b=this.beans.colModel.getColTree();return(0,s.depthFirstOriginalTreeSearch)(null,b,w=>{(0,f.isProvidedColumnGroup)(w)&&m.push({groupId:w.getGroupId(),open:w.isExpanded()})}),m}resetColumnGroupState(m){let b=this.beans.colModel.getColDefColTree();if(!b)return;let w=[];(0,s.depthFirstOriginalTreeSearch)(null,b,k=>{if((0,f.isProvidedColumnGroup)(k)){let R=k.getColGroupDef(),T={groupId:k.getGroupId(),open:R?R.openByDefault:void 0};w.push(T)}}),this.setColumnGroupState(w,m)}setColumnGroupState(m,b){let{colModel:w,colAnimation:k,visibleCols:R,eventSvc:T}=this.beans;if(!w.getColTree())return;k==null||k.start();let z=[];m.forEach(G=>{let U=G.groupId,X=G.open,Q=this.getProvidedColGroup(U);Q&&Q.isExpanded()!==X&&(Q.setExpanded(X),z.push(Q))}),R.refresh(b,!0),z.length&&T.dispatchEvent({type:"columnGroupOpened",columnGroup:z.length===1?z[0]:void 0,columnGroups:z}),k==null||k.finish()}setColumnGroupOpened(m,b,w){let k;k=(0,f.isProvidedColumnGroup)(m)?m.getId():m||"",this.setColumnGroupState([{groupId:k,open:b}],w)}getProvidedColGroup(m){let b=null;return(0,s.depthFirstOriginalTreeSearch)(null,this.beans.colModel.getColTree(),w=>{(0,f.isProvidedColumnGroup)(w)&&w.getId()===m&&(b=w)}),b}getGroupAtDirection(m,b){let w=m.getProvidedColumnGroup().getLevel()+m.getPaddingLevel(),k=m.getDisplayedLeafColumns(),R=b==="After"?(0,v._last)(k):k[0],T=`getCol${b}`;for(;;){let z=this.beans.visibleCols[T](R);if(!z)return null;let G=this.getColGroupAtLevel(z,w);if(G!==m)return G}}getColGroupAtLevel(m,b){let w,k,R=m.getParent();for(;w=R.getProvidedColumnGroup().getLevel(),k=R.getPaddingLevel(),!(w+k<=b);)R=R.getParent();return R}updateOpenClosedVisibility(){let m=this.beans.visibleCols.getAllTrees();(0,r.depthFirstAllColumnTreeSearch)(m,!1,b=>{(0,A.isColumnGroup)(b)&&b.calculateDisplayedColumns()})}getColumnGroup(m,b){if(!m)return null;if((0,A.isColumnGroup)(m))return m;let w=this.beans.visibleCols.getAllTrees(),k=typeof b=="number",R=null;return(0,r.depthFirstAllColumnTreeSearch)(w,!1,T=>{if((0,A.isColumnGroup)(T)){let z=T,G;G=k?m===z.getGroupId()&&b===z.getPartId():m===z.getGroupId(),G&&(R=z)}}),R}createColumnGroups(m){let{columns:b,idCreator:w,pinned:k,oldDisplayedGroups:R,isStandaloneStructure:T}=m,z=this.mapOldGroupsById(R),G=[],U=b;for(;U.length;){let X=U;U=[];let Q=0,oe=le=>{let fe=Q;Q=le;let ye=X[fe],ke=((0,A.isColumnGroup)(ye)?ye.getProvidedColumnGroup():ye).getOriginalParent();if(ke==null){for(let ze=fe;ze<le;ze++)G.push(X[ze]);return}let Ie=this.createColumnGroup(ke,w,z,k,T);for(let ze=fe;ze<le;ze++)Ie.addChild(X[ze]);U.push(Ie)};for(let le=1;le<X.length;le++){let fe=X[le],ye=((0,A.isColumnGroup)(fe)?fe.getProvidedColumnGroup():fe).getOriginalParent(),ke=X[Q];ye!==((0,A.isColumnGroup)(ke)?ke.getProvidedColumnGroup():ke).getOriginalParent()&&oe(le)}Q<X.length&&oe(X.length)}return T||this.setupParentsIntoCols(G,null),G}createProvidedColumnGroup(m,b,w,k,R,T,z){let G=R.getUniqueKey(b.groupId||null,null),U=this.createMergedColGroupDef(b,G),X=new D.AgProvidedColumnGroup(U,G,!1,w);this.createBean(X);let Q=this.findExistingGroup(b,T);Q&&T.splice(Q.idx,1);let oe=Q==null?void 0:Q.group;oe&&X.setExpanded(oe.isExpanded());let le=(0,s._recursivelyCreateColumns)(this.beans,U.children,w+1,m,k,R,T,z);return X.setChildren(le),X}balanceColumnTree(m,b,w,k){let R=[];for(let T=0;T<m.length;T++){let z=m[T];if((0,f.isProvidedColumnGroup)(z)){let G=z,U=this.balanceColumnTree(G.getChildren(),b+1,w,k);G.setChildren(U),R.push(G)}else{let G,U;for(let X=w-1;X>=b;X--){let Q=k.getUniqueKey(null,null),oe=this.createMergedColGroupDef(null,Q),le=new D.AgProvidedColumnGroup(oe,Q,!0,b);this.createBean(le),U&&U.setChildren([le]),U=le,G||(G=U)}if(G&&U){if(R.push(G),m.some(X=>(0,f.isProvidedColumnGroup)(X))){U.setChildren([z]);continue}U.setChildren(m);break}R.push(z)}}return R}findDepth(m){let b=0,w=m;for(;w&&w[0]&&(0,f.isProvidedColumnGroup)(w[0]);)b++,w=w[0].getChildren();return b}findMaxDepth(m,b){let w=b;for(let k=0;k<m.length;k++){let R=m[k];if((0,f.isProvidedColumnGroup)(R)){let T=R,z=this.findMaxDepth(T.getChildren(),b+1);w<z&&(w=z)}}return w}balanceTreeForAutoCols(m,b){let w=[];return m.forEach(k=>{let R=k;for(let T=b-1;T>=0;T--){let z=new D.AgProvidedColumnGroup(null,`FAKE_PATH_${k.getId()}}_${T}`,!0,T);this.createBean(z),z.setChildren([R]),R.originalParent=z,R=z}b===0&&(k.originalParent=null),w.push(R)}),w}createMergedColGroupDef(m,b){let w={},{gos:k,validation:R}=this.beans;return Object.assign(w,k.get("defaultColGroupDef")),Object.assign(w,m),R==null||R.validateColDef(w,b),w}findExistingGroup(m,b){if(m.groupId!=null)for(let w=0;w<b.length;w++){let k=b[w];if(k.getColGroupDef()&&k.getId()===m.groupId)return{idx:w,group:k}}}createColumnGroup(m,b,w,k,R){let T=m.getGroupId(),z=b.getInstanceIdForKey(T),G=w[(0,A.createUniqueColumnGroupId)(T,z)];return G&&G.getProvidedColumnGroup()!==m&&(G=null),(0,u._exists)(G)?G.reset():(G=new F.AgColumnGroup(m,T,z,k),R||this.createBean(G)),G}mapOldGroupsById(m){let b={},w=k=>{k.forEach(R=>{if((0,A.isColumnGroup)(R)){let T=R;b[R.getUniqueId()]=T,w(T.getChildren())}})};return m&&w(m),b}setupParentsIntoCols(m,b){m.forEach(w=>{if(w.parent=b,(0,A.isColumnGroup)(w)){let k=w;this.setupParentsIntoCols(k.getChildren(),k)}})}}x.ColumnGroupService=d},3156:function(ne,x){Object.defineProperty(x,"__esModule",{value:!0}),x.isColumnHovered=void 0,x.isColumnHovered=function(p,M){var A;return!!((A=p.colHover)!=null&&A.isHovered(M))}},1690:function(ne,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.ColumnHoverModule=void 0;let M=p(7205),A=p(3156),F=p(7683);x.ColumnHoverModule={moduleName:"ColumnHover",version:M.VERSION,beans:[F.ColumnHoverService],apiFunctions:{isColumnHovered:A.isColumnHovered}}},7683:function(ne,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.ColumnHoverService=void 0;let M=p(8731),A=p(5788);class F extends M.BeanStub{constructor(){super(...arguments),this.beanName="colHover"}setMouseOver(f){this.updateState(f)}clearMouseOver(){this.updateState(null)}isHovered(f){let v=this.selectedColumns;return!!v&&v.indexOf(f)>=0}addHeaderColumnHoverListener(f,v,u){let s=()=>{if(!this.gos.get("columnHoverHighlight"))return;let r=this.isHovered(u);v.addOrRemoveCssClass("ag-column-hover",r)};f.addManagedEventListeners({columnHoverChanged:s}),s()}onCellColumnHover(f,v){if(!v||!this.gos.get("columnHoverHighlight"))return;let u=this.isHovered(f);v.addOrRemoveCssClass("ag-column-hover",u)}addHeaderFilterColumnHoverListener(f,v,u,s){this.createHoverFeature(f,[u],s);let r=()=>{if(!this.gos.get("columnHoverHighlight"))return;let d=this.isHovered(u);v.addOrRemoveCssClass("ag-column-hover",d)};f.addManagedEventListeners({columnHoverChanged:r}),r()}createHoverFeature(f,v,u){f.createManagedBean(new A.HoverFeature(v,u))}updateState(f){this.selectedColumns=f,this.eventSvc.dispatchEvent({type:"columnHoverChanged"})}}x.ColumnHoverService=F},5788:function(ne,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.HoverFeature=void 0;let M=p(8731);class A extends M.BeanStub{constructor(D,f){super(),this.columns=D,this.element=f}postConstruct(){if(this.gos.get("columnHoverHighlight")){let D=this.beans.colHover;this.addManagedListeners(this.element,{mouseout:D.clearMouseOver.bind(D),mouseover:D.setMouseOver.bind(D,this.columns)})}}}x.HoverFeature=A},2294:function(ne,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.ColumnKeyCreator=void 0;let M=p(4422);x.ColumnKeyCreator=class{constructor(){this.existingKeys={}}addExistingKeys(A){for(let F=0;F<A.length;F++)this.existingKeys[A[F]]=!0}getUniqueKey(A,F){A=(0,M._toStringOrNull)(A);let D=0;for(;;){let f=A!=null?A:F;if(f?D!==0&&(f+="_"+D):f=D,!this.existingKeys[f])return this.existingKeys[f]=!0,String(f);D++}}}},2986:function(ne,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.ColumnModel=void 0;let M=p(3505),A=p(8731),F=p(7274),D=p(1502),f=p(2716),v=p(5266),u=p(3146);class s extends A.BeanStub{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"],d=>this.refreshAll((0,u._convertColumnEventSourceType)(d.source))),this.addManagedPropertyListeners(["defaultColDef","defaultColGroupDef","columnTypes","suppressFieldDotNotation"],d=>this.recreateColumnDefs((0,u._convertColumnEventSourceType)(d.source))),this.addManagedPropertyListener("pivotMode",d=>this.setPivotMode(this.gos.get("pivotMode"),(0,u._convertColumnEventSourceType)(d.source)))}createColsFromColDefs(d){var Ie,ze,Ye;let{beans:g}=this,{valueCache:m,colAutosize:b,rowGroupColsSvc:w,pivotColsSvc:k,valueColsSvc:R,visibleCols:T,colViewport:z,eventSvc:G}=g,U=this.colDefs?(0,v._compareColumnStatesAndDispatchEvents)(g,d):void 0;m==null||m.expire();let X=(Ie=this.colDefCols)==null?void 0:Ie.list,Q=(ze=this.colDefCols)==null?void 0:ze.tree,oe=(0,f._createColumnTree)(g,this.colDefs,!0,Q,d);(0,u._destroyColumnTree)(g,(Ye=this.colDefCols)==null?void 0:Ye.tree,oe.columnTree);let le=oe.columnTree,fe=oe.treeDept,ye=(0,u._getColumnsFromTree)(le),ke={};ye.forEach(xe=>ke[xe.getId()]=xe),this.colDefCols={tree:le,treeDepth:fe,list:ye,map:ke},w==null||w.extractCols(d,X),k==null||k.extractCols(d,X),R==null||R.extractCols(d,X),this.ready=!0,this.refreshCols(!0),T.refresh(d),z.checkViewportColumns(),G.dispatchEvent({type:"columnEverythingChanged",source:d}),U&&(this.changeEventsDispatching=!0,U(),this.changeEventsDispatching=!1),G.dispatchEvent({type:"newColumnsLoaded",source:d}),d==="gridInitializing"&&(b==null||b.applyAutosizeStrategy())}refreshCols(d){var oe;if(!this.colDefCols)return;let g=(oe=this.cols)==null?void 0:oe.tree;this.saveColOrder();let{autoColSvc:m,selectionColSvc:b,quickFilter:w,pivotResultCols:k,showRowGroupCols:R,rowAutoHeight:T,visibleCols:z,colViewport:G,eventSvc:U}=this.beans,X=this.selectCols(k,this.colDefCols);m==null||m.createAutoCols(X,le=>{this.lastOrder=le(this.lastOrder),this.lastPivotOrder=le(this.lastPivotOrder)}),m==null||m.addAutoCols(X),b==null||b.createSelectionCols(X,le=>{var fe,ye;this.lastOrder=(fe=le(this.lastOrder))!=null?fe:null,this.lastPivotOrder=(ye=le(this.lastPivotOrder))!=null?ye:null}),b==null||b.addSelectionCols(X);let Q=(0,F._shouldMaintainColumnOrder)(this.gos,this.showingPivotResult);d&&!Q||this.restoreColOrder(X),this.positionLockedCols(X),R==null||R.refresh(),w==null||w.refreshCols(),this.setColSpanActive(),T==null||T.setAutoHeightActive(X),z.clear(),G.clear(),!(0,D._areEqual)(g,this.cols.tree)&&U.dispatchEvent({type:"gridColumnsChanged"})}selectCols(d,g){var T;let m=(T=d==null?void 0:d.getPivotResultCols())!=null?T:null;this.showingPivotResult=m!=null;let{map:b,list:w,tree:k,treeDepth:R}=m!=null?m:g;return this.cols={list:w.slice(),map:pe({},b),tree:k.slice(),treeDepth:R},m&&(m.list.some(z=>{var G;return((G=this.cols)==null?void 0:G.map[z.getColId()])!==void 0})||(this.lastPivotOrder=null)),this.cols}getColsToShow(){var m;if(!this.cols)return[];let d=this.isPivotMode()&&!this.showingPivotResult,g=(m=this.beans.valueColsSvc)==null?void 0:m.columns;return this.cols.list.filter(b=>{let w=(0,u.isColumnGroupAutoCol)(b);if(d){let k=g==null?void 0:g.includes(b);return w||k}return w||b.isVisible()})}refreshAll(d){this.ready&&(this.refreshCols(!1),this.beans.visibleCols.refresh(d))}setColsVisible(d,g=!1,m){(0,v._applyColumnState)(this.beans,{state:d.map(b=>({colId:typeof b=="string"?b:b.getColId(),hide:!g}))},m)}restoreColOrder(d){let g=this.showingPivotResult?this.lastPivotOrder:this.lastOrder;if(!g)return;let m=new Map(g.map((z,G)=>[z,G]));if(!d.list.some(z=>m.has(z)))return;let b=new Map(d.list.map(z=>[z,!0])),w=g.filter(z=>b.has(z)),k=new Map(w.map(z=>[z,!0])),R=d.list.filter(z=>!k.has(z)),T=w.slice();R.forEach(z=>{let G=z.getOriginalParent();if(!G)return void T.push(z);let U=[];for(;!U.length&&G;)G.getLeafColumns().forEach(oe=>{let le=T.indexOf(oe)>=0,fe=U.indexOf(oe)<0;le&&fe&&U.push(oe)}),G=G.getOriginalParent();if(!U.length)return void T.push(z);let X=U.map(oe=>T.indexOf(oe)),Q=Math.max(...X);T.splice(Q+1,0,z)}),d.list=T}positionLockedCols(d){d.list=(0,M.placeLockedColumns)(d.list,this.gos)}saveColOrder(){var d,g,m,b;this.showingPivotResult?this.lastPivotOrder=(g=(d=this.cols)==null?void 0:d.list)!=null?g:null:this.lastOrder=(b=(m=this.cols)==null?void 0:m.list)!=null?b:null}getColumnDefs(){var d,g,m;return this.colDefCols?(m=this.beans.colDefFactory)==null?void 0:m.getColumnDefs(this.colDefCols.list,this.showingPivotResult,this.lastOrder,(g=(d=this.cols)==null?void 0:d.list)!=null?g:[]):void 0}setColSpanActive(){var d;this.colSpanActive=!!((d=this.cols)!=null&&d.list.some(g=>g.getColDef().colSpan!=null))}isPivotMode(){return this.pivotMode}setPivotMode(d,g){if(d===this.pivotMode||(this.pivotMode=d,!this.ready))return;this.refreshCols(!1);let{visibleCols:m,eventSvc:b}=this.beans;m.refresh(g),b.dispatchEvent({type:"columnPivotModeChanged"})}isPivotActive(){var g;let d=(g=this.beans.pivotColsSvc)==null?void 0:g.columns;return this.pivotMode&&!!(d!=null&&d.length)}recreateColumnDefs(d){var g;this.cols&&((g=this.beans.autoColSvc)==null||g.updateAutoCols(d),this.createColsFromColDefs(d))}setColumnDefs(d,g){this.colDefs=d,this.createColsFromColDefs(g)}destroy(){var d;(0,u._destroyColumnTree)(this.beans,(d=this.colDefCols)==null?void 0:d.tree),super.destroy()}getColTree(){var d,g;return(g=(d=this.cols)==null?void 0:d.tree)!=null?g:[]}getColDefColTree(){var d,g;return(g=(d=this.colDefCols)==null?void 0:d.tree)!=null?g:[]}getColDefCols(){var d,g;return(g=(d=this.colDefCols)==null?void 0:d.list)!=null?g:null}getCols(){var d,g;return(g=(d=this.cols)==null?void 0:d.list)!=null?g:[]}getAllCols(){var w,k,R,T,z,G,U;let{pivotResultCols:d,autoColSvc:g,selectionColSvc:m}=this.beans,b=(w=d==null?void 0:d.getPivotResultCols())==null?void 0:w.list;return[(R=(k=this.colDefCols)==null?void 0:k.list)!=null?R:[],(z=(T=g==null?void 0:g.autoCols)==null?void 0:T.list)!=null?z:[],(U=(G=m==null?void 0:m.selectionCols)==null?void 0:G.list)!=null?U:[],b!=null?b:[]].flat()}getColsForKeys(d){return d?d.map(g=>this.getCol(g)).filter(g=>g!=null):[]}getColDefCol(d){var g;return(g=this.colDefCols)!=null&&g.list?this.getColFromCollection(d,this.colDefCols):null}getCol(d){return d==null?null:this.getColFromCollection(d,this.cols)}getColFromCollection(d,g){var w,k;if(g==null)return null;let{map:m,list:b}=g;if(typeof d=="string"&&m[d])return m[d];for(let R=0;R<b.length;R++)if((0,u._columnsMatch)(b[R],d))return b[R];return(k=(w=this.beans.autoColSvc)==null?void 0:w.getAutoCol(d))!=null?k:null}}x.ColumnModel=s},2027:function(ne,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.ColumnApiModule=x.ColumnFlexModule=x.DataTypeModule=void 0;let M=p(7358),A=p(7205),F=p(1144),D=p(4604),f=p(2849),v=p(6350);x.DataTypeModule={moduleName:"DataType",version:A.VERSION,beans:[v.DataTypeService],dependsOn:[M.CheckboxCellRendererModule]},x.ColumnFlexModule={moduleName:"ColumnFlex",version:A.VERSION,beans:[f.ColumnFlexService]},x.ColumnApiModule={moduleName:"ColumnApi",version:A.VERSION,beans:[D.ColumnDefFactory],apiFunctions:{getColumnDef:F.getColumnDef,getDisplayNameForColumn:F.getDisplayNameForColumn,getColumn:F.getColumn,getColumns:F.getColumns,applyColumnState:F.applyColumnState,getColumnState:F.getColumnState,resetColumnState:F.resetColumnState,isPinning:F.isPinning,isPinningLeft:F.isPinningLeft,isPinningRight:F.isPinningRight,getDisplayedColAfter:F.getDisplayedColAfter,getDisplayedColBefore:F.getDisplayedColBefore,setColumnsVisible:F.setColumnsVisible,setColumnsPinned:F.setColumnsPinned,getAllGridColumns:F.getAllGridColumns,getDisplayedLeftColumns:F.getDisplayedLeftColumns,getDisplayedCenterColumns:F.getDisplayedCenterColumns,getDisplayedRightColumns:F.getDisplayedRightColumns,getAllDisplayedColumns:F.getAllDisplayedColumns,getAllDisplayedVirtualColumns:F.getAllDisplayedVirtualColumns,getColumnDefs:F.getColumnDefs}}},8997:function(ne,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.ColumnNameService=x._camelCaseToHumanText=void 0;let M=p(8731);function A(D){return!D||D==null?null:D.replace(/([a-z])([A-Z])/g,"$1 $2").replace(/([A-Z]+)([A-Z])([a-z])/g,"$1 $2$3").replace(/\./g," ").split(" ").map(f=>f.substring(0,1).toUpperCase()+(f.length>1?f.substring(1,f.length):"")).join(" ")}x._camelCaseToHumanText=A;class F extends M.BeanStub{constructor(){super(...arguments),this.beanName="colNames"}getDisplayNameForColumn(f,v,u=!1){if(!f)return null;let s=this.getHeaderName(f.getColDef(),f,null,null,v),{aggColNameSvc:r}=this.beans;return u&&r?r.getHeaderName(f,s):s}getDisplayNameForProvidedColumnGroup(f,v,u){let s=v==null?void 0:v.getColGroupDef();return s?this.getHeaderName(s,null,f,v,u):null}getDisplayNameForColumnGroup(f,v){return this.getDisplayNameForProvidedColumnGroup(f,f.getProvidedColumnGroup(),v)}getHeaderName(f,v,u,s,r){var g,m;let d=f.headerValueGetter;if(d){let b=this.gos.addGridCommonParams({colDef:f,column:v,columnGroup:u,providedColumnGroup:s,location:r});return typeof d=="function"?d(b):typeof d=="string"?(m=(g=this.beans.expressionSvc)==null?void 0:g.evaluate(d,b))!=null?m:null:""}return f.headerName!=null?f.headerName:f.field?A(f.field):""}}x.ColumnNameService=F},5266:function(ne,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.getColumnStateFromColDef=x._getColumnState=x._compareColumnStatesAndDispatchEvents=x._resetColumnState=x._applyColumnState=void 0;let M=p(3505),A=p(1502),F=p(4422),D=p(7764),f=p(2934),v=p(2716),u=p(3146);function s(b,w,k){var Ae,Ne;let{colModel:R,rowGroupColsSvc:T,pivotColsSvc:z,autoColSvc:G,selectionColSvc:U,colAnimation:X,visibleCols:Q,pivotResultCols:oe,environment:le,valueColsSvc:fe,eventSvc:ye,gos:ke}=b,Ie=R.getColDefCols()||[];if(!(Ie!=null&&Ie.length))return!1;if(w!=null&&w.state&&!w.state.forEach)return(0,D._warn)(32),!1;let ze=(Re,Oe,Ve,Ue,Ee)=>{var ut;if(!Re)return;let tt=(0,u.getValueFactory)(Oe,w.defaultState),at=tt("flex").value1;if((0,v.updateSomeColumnState)(b,Re,tt("hide").value1,tt("sort").value1,tt("sortIndex").value1,tt("pinned").value1,at,k),at==null){let Mt=tt("width").value1;if(Mt!=null){let St=(ut=Re.getColDef().minWidth)!=null?ut:le.getDefaultColumnMinWidth();St!=null&&Mt>=St&&Re.setActualWidth(Mt,k)}}!Ee&&Re.isPrimary()&&(fe==null||fe.syncColumnWithState(Re,k,tt),T==null||T.syncColumnWithState(Re,k,tt,Ve),z==null||z.syncColumnWithState(Re,k,tt,Ue))},Ye=(Re,Oe,Ve)=>{var Ft,Bt,Xt,ii;let Ue=r(b,k),Ee=Oe.slice(),tt={},at={},ut=[],Mt=[],St=[],ft=0,kt=(Ft=T==null?void 0:T.columns.slice())!=null?Ft:[],Et=(Bt=z==null?void 0:z.columns.slice())!=null?Bt:[];Re.forEach(Ci=>{let _i=Ci.colId;if(_i.startsWith(u.GROUP_AUTO_COLUMN_ID))return ut.push(Ci),void St.push(Ci);if((0,u.isColumnSelectionCol)(_i))return Mt.push(Ci),void St.push(Ci);let yn=Ve(_i);yn?(ze(yn,Ci,tt,at,!1),(0,A._removeFromArray)(Ee,yn)):(St.push(Ci),ft+=1)});let Yt=Ci=>ze(Ci,null,tt,at,!1);Ee.forEach(Yt),T==null||T.sortColumns(m.bind(T,tt,kt)),z==null||z.sortColumns(m.bind(z,at,Et)),R.refreshCols(!1);let Tt=(Ci,_i,yn=[])=>{_i.forEach(Tn=>{let ma=Ci(Tn.colId);(0,A._removeFromArray)(yn,ma),ze(ma,Tn,null,null,!0)}),yn.forEach(Yt)};return Tt(Ci=>{var _i;return(_i=G==null?void 0:G.getAutoCol(Ci))!=null?_i:null},ut,(Xt=G==null?void 0:G.getAutoCols())==null?void 0:Xt.slice()),Tt(Ci=>{var _i;return(_i=U==null?void 0:U.getSelectionCol(Ci))!=null?_i:null},Mt,(ii=U==null?void 0:U.getSelectionCols())==null?void 0:ii.slice()),function(Ci,_i,yn){if(!Ci.applyOrder||!Ci.state)return;let Tn=[];Ci.state.forEach(ma=>{ma.colId!=null&&Tn.push(ma.colId)}),function(ma,Ho,Ar,ll){if(ma==null)return;let eo=[],Nr={};Ho.forEach(Wo=>{if(Nr[Wo])return;let Mo=ma.map[Wo];Mo&&(eo.push(Mo),Nr[Wo]=!0)});let rn=0;if(ma.list.forEach(Wo=>{let Mo=Wo.getColId();Nr[Mo]==null&&(Mo.startsWith(u.GROUP_AUTO_COLUMN_ID)?eo.splice(rn++,0,Wo):eo.push(Wo))}),eo=(0,M.placeLockedColumns)(eo,ll),!(0,M.doesMovePassMarryChildren)(eo,Ar.getColTree()))return void(0,D._warn)(39);ma.list=eo}(_i.cols,Tn,_i,yn)}(w,R,ke),Q.refresh(k),ye.dispatchEvent({type:"columnEverythingChanged",source:k}),Ue(),{unmatchedAndAutoStates:St,unmatchedCount:ft}};X==null||X.start();let{unmatchedAndAutoStates:xe,unmatchedCount:Te}=Ye(w.state||[],Ie,Re=>R.getColDefCol(Re));return(xe.length>0||(0,F._exists)(w.defaultState))&&(Te=Ye(xe,(Ne=(Ae=oe==null?void 0:oe.getPivotResultCols())==null?void 0:Ae.list)!=null?Ne:[],Re=>{var Oe;return(Oe=oe==null?void 0:oe.getPivotResultCol(Re))!=null?Oe:null}).unmatchedCount),X==null||X.finish(),Te===0}function r(b,w){var le,fe,ye;let{rowGroupColsSvc:k,pivotColsSvc:R,valueColsSvc:T,colModel:z,sortSvc:G,eventSvc:U}=b,X={rowGroupColumns:(le=k==null?void 0:k.columns.slice())!=null?le:[],pivotColumns:(fe=R==null?void 0:R.columns.slice())!=null?fe:[],valueColumns:(ye=T==null?void 0:T.columns.slice())!=null?ye:[]},Q=d(b),oe={};return Q.forEach(ke=>{oe[ke.colId]=ke}),()=>{var Ne,Re;let ke=z.getAllCols(),Ie=(Oe,Ve,Ue,Ee)=>{let tt=Ve.map(Ee),at=Ue.map(Ee);if((0,A._areEqual)(tt,at))return;let ut=new Set(Ve);Ue.forEach(St=>{ut.delete(St)||ut.add(St)});let Mt=[...ut];U.dispatchEvent({type:Oe,columns:Mt,column:Mt.length===1?Mt[0]:null,source:w})},ze=Oe=>{let Ve=[];return ke.forEach(Ue=>{let Ee=oe[Ue.getColId()];Ee&&Oe(Ee,Ue)&&Ve.push(Ue)}),Ve},Ye=Oe=>Oe.getColId();Ie("columnRowGroupChanged",X.rowGroupColumns,(Ne=k==null?void 0:k.columns)!=null?Ne:[],Ye),Ie("columnPivotChanged",X.pivotColumns,(Re=R==null?void 0:R.columns)!=null?Re:[],Ye);let xe=ze((Oe,Ve)=>{let Ue=Oe.aggFunc!=null,Ee=Ue!=Ve.isValueActive(),tt=Ue&&Oe.aggFunc!=Ve.getAggFunc();return Ee||tt});xe.length>0&&(0,f.dispatchColumnChangedEvent)(U,"columnValueChanged",xe,w),(0,f.dispatchColumnResizedEvent)(U,ze((Oe,Ve)=>Oe.width!=Ve.getActualWidth()),!0,w),(0,f.dispatchColumnPinnedEvent)(U,ze((Oe,Ve)=>Oe.pinned!=Ve.getPinned()),w),(0,f.dispatchColumnVisibleEvent)(U,ze((Oe,Ve)=>Oe.hide==Ve.isVisible()),w);let Te=ze((Oe,Ve)=>Oe.sort!=Ve.getSort()||Oe.sortIndex!=Ve.getSortIndex());Te.length>0&&(G==null||G.dispatchSortChangedEvents(w,Te));let Ae=d(b);(function(Oe,Ve,Ue,Ee,tt){let at={};Ve.forEach(kt=>at[kt.colId]=kt);let ut={};Oe.forEach(kt=>{at[kt.colId]&&(ut[kt.colId]=!0)});let Mt=Oe.filter(kt=>ut[kt.colId]),St=Ve.filter(kt=>ut[kt.colId]),ft=[];St.forEach((kt,Et)=>{let Yt=Mt&&Mt[Et];if(Yt&&Yt.colId!==kt.colId){let Tt=Ee.getCol(Yt.colId);Tt&&ft.push(Tt)}}),ft.length&&tt.dispatchEvent({type:"columnMoved",columns:ft,column:ft.length===1?ft[0]:null,finished:!0,source:Ue})})(Q,Ae,w,z,U)}}function d(b){let{colModel:w,rowGroupColsSvc:k,pivotColsSvc:R}=b,T=w.getColDefCols();if((0,F._missing)(T)||!w.isAlive())return[];let z=w.getAllCols(),G=k==null?void 0:k.columns,U=R==null?void 0:R.columns,X=z.map(oe=>(le=>{var Ye;let fe=le.isRowGroupActive()&&G?G.indexOf(le):null,ye=le.isPivotActive()&&U?U.indexOf(le):null,ke=le.isValueActive()?le.getAggFunc():null,Ie=le.getSort()!=null?le.getSort():null,ze=le.getSortIndex()!=null?le.getSortIndex():null;return{colId:le.getColId(),width:le.getActualWidth(),hide:!le.isVisible(),pinned:le.getPinned(),sort:Ie,sortIndex:ze,aggFunc:ke,rowGroup:le.isRowGroupActive(),rowGroupIndex:fe,pivot:le.isPivotActive(),pivotIndex:ye,flex:(Ye=le.getFlex())!=null?Ye:null}})(oe)),Q=new Map(w.getCols().map((oe,le)=>[oe.getColId(),le]));return X.sort((oe,le)=>(Q.has(oe.colId)?Q.get(oe.colId):-1)-(Q.has(le.colId)?Q.get(le.colId):-1)),X}function g(b){let w=(ke,Ie)=>ke!=null?ke:Ie!=null?Ie:null,k=b.getColDef(),R=w(k.sort,k.initialSort),T=w(k.sortIndex,k.initialSortIndex),z=w(k.hide,k.initialHide),G=w(k.pinned,k.initialPinned),U=w(k.width,k.initialWidth),X=w(k.flex,k.initialFlex),Q=w(k.rowGroupIndex,k.initialRowGroupIndex),oe=w(k.rowGroup,k.initialRowGroup);Q!=null||oe!=null&&oe!=0||(Q=null,oe=null);let le=w(k.pivotIndex,k.initialPivotIndex),fe=w(k.pivot,k.initialPivot);le!=null||fe!=null&&fe!=0||(le=null,fe=null);let ye=w(k.aggFunc,k.initialAggFunc);return{colId:b.getColId(),sort:R,sortIndex:T,hide:z,pinned:G,width:U,flex:X,rowGroup:oe,rowGroupIndex:Q,pivot:fe,pivotIndex:le,aggFunc:ye}}x._applyColumnState=s,x._resetColumnState=function(b,w){let{colModel:k,autoColSvc:R}=b,T=k.getColDefCols();if(!(T!=null&&T.length))return;let z=k.getColDefColTree(),G=(0,u._getColumnsFromTree)(z),U=[],X=1e3,Q=1e3,oe=[],le=R==null?void 0:R.getAutoCols();le&&(oe=oe.concat(le)),G&&(oe=oe.concat(G)),oe.forEach(fe=>{let ye=g(fe);(0,F._missing)(ye.rowGroupIndex)&&ye.rowGroup&&(ye.rowGroupIndex=X++),(0,F._missing)(ye.pivotIndex)&&ye.pivot&&(ye.pivotIndex=Q++),U.push(ye)}),s(b,{state:U,applyOrder:!0},w)},x._compareColumnStatesAndDispatchEvents=r,x._getColumnState=d,x.getColumnStateFromColDef=g;let m=(b,w,k,R)=>{let T=b[k.getId()],z=b[R.getId()],G=T!=null,U=z!=null;if(G&&U)return T-z;if(G)return-1;if(U)return 1;let X=w.indexOf(k),Q=w.indexOf(R),oe=X>=0;return oe&&Q>=0?X-Q:oe?-1:1}},3146:function(ne,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.getValueFactory=x._columnsMatch=x._convertColumnEventSourceType=x._updateColsMap=x._areColIdsEqual=x.convertColumnTypes=x.isColumnSelectionCol=x.isColumnGroupAutoCol=x._destroyColumnTree=x.getWidthOfColsInList=x._getColumnsFromTree=x.GROUP_AUTO_COLUMN_ID=void 0;let M=p(3355),A=p(9409),F=p(1502),D=p(4422),f=p(2716),v=p(5626);x.GROUP_AUTO_COLUMN_ID="ag-Grid-AutoColumn",x._getColumnsFromTree=function(u){let s=[],r=d=>{for(let g=0;g<d.length;g++){let m=d[g];(0,M.isColumn)(m)?s.push(m):(0,A.isProvidedColumnGroup)(m)&&r(m.getChildren())}};return r(u),s},x.getWidthOfColsInList=function(u){return u.reduce((s,r)=>s+r.getActualWidth(),0)},x._destroyColumnTree=function(u,s,r){let d={};if(!s)return;(0,f.depthFirstOriginalTreeSearch)(null,s,m=>{d[m.getInstanceId()]=m}),r&&(0,f.depthFirstOriginalTreeSearch)(null,r,m=>{d[m.getInstanceId()]=null});let g=Object.values(d).filter(m=>m!=null);u.context.destroyBeans(g)},x.isColumnGroupAutoCol=function(u){return u.getId().startsWith(x.GROUP_AUTO_COLUMN_ID)},x.isColumnSelectionCol=function(u){var r;let s=typeof u=="string"?u:"getColId"in u?u.getColId():u.colId;return(r=s==null?void 0:s.startsWith(v.CONTROLS_COLUMN_ID_PREFIX))!=null?r:!1},x.convertColumnTypes=function(u){let s=[];return u instanceof Array?s=u:typeof u=="string"&&(s=u.split(",")),s},x._areColIdsEqual=function(u,s){return(0,F._areEqual)(u,s,(r,d)=>r.getColId()===d.getColId())},x._updateColsMap=function(u){u.map={},u.list.forEach(s=>u.map[s.getId()]=s)},x._convertColumnEventSourceType=function(u){return u==="gridOptionsUpdated"?"gridOptionsChanged":u},x._columnsMatch=function(u,s){let r=u===s,d=u.getColDef()===s,g=u.getColId()==s;return r||d||g},x.getValueFactory=(u,s)=>(r,d)=>{let g={value1:void 0,value2:void 0},m=!1;return u&&(u[r]!==void 0&&(g.value1=u[r],m=!0),(0,D._exists)(d)&&u[d]!==void 0&&(g.value2=u[d],m=!0)),!m&&s&&(s[r]!==void 0&&(g.value1=s[r]),(0,D._exists)(d)&&s[d]!==void 0&&(g.value2=s[d])),g}},5034:function(ne,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.ColumnViewportService=void 0;let M=p(8731),A=p(3355),F=p(4422);class D extends M.BeanStub{constructor(){super(...arguments),this.beanName="colViewport",this.colsWithinViewport=[],this.headerColsWithinViewport=[],this.colsWithinViewportHash="",this.rowsOfHeadersToRenderLeft={},this.rowsOfHeadersToRenderRight={},this.rowsOfHeadersToRenderCenter={}}wireBeans(v){this.visibleCols=v.visibleCols,this.colModel=v.colModel}postConstruct(){this.suppressColumnVirtualisation=this.gos.get("suppressColumnVirtualisation")}setScrollPosition(v,u,s=!1){let{visibleCols:r}=this,d=r.isBodyWidthDirty;if(!(v===this.scrollWidth&&u===this.scrollPosition&&!d)){if(this.scrollWidth=v,this.scrollPosition=u,r.isBodyWidthDirty=!0,this.gos.get("enableRtl")){let g=r.bodyWidth;this.viewportLeft=g-u-v,this.viewportRight=g-u}else this.viewportLeft=u,this.viewportRight=v+u;this.colModel.ready&&this.checkViewportColumns(s)}}getHeadersToRender(v,u){let s;switch(v){case"left":s=this.rowsOfHeadersToRenderLeft[u];break;case"right":s=this.rowsOfHeadersToRenderRight[u];break;default:s=this.rowsOfHeadersToRenderCenter[u]}return s||[]}extractViewportColumns(){let v=this.visibleCols.centerCols;this.isColumnVirtualisationSuppressed()?(this.colsWithinViewport=v,this.headerColsWithinViewport=v):(this.colsWithinViewport=v.filter(this.isColumnInRowViewport.bind(this)),this.headerColsWithinViewport=v.filter(this.isColumnInHeaderViewport.bind(this)))}isColumnVirtualisationSuppressed(){return this.suppressColumnVirtualisation||this.viewportRight===0}clear(v){this.rowsOfHeadersToRenderLeft={},this.rowsOfHeadersToRenderRight={},this.rowsOfHeadersToRenderCenter={},v||(this.colsWithinViewportHash="")}isColumnInHeaderViewport(v){return!(!v.isAutoHeaderHeight()&&!function(u){for(;u;){if(u.isAutoHeaderHeight())return!0;u=u.getParent()}return!1}(v))||this.isColumnInRowViewport(v)}isColumnInRowViewport(v){if(v.isAutoHeight())return!0;let u=v.getLeft()||0,s=u+v.getActualWidth(),r=this.viewportLeft-200,d=this.viewportRight+200;return!(u<r&&s<r)&&!(u>d&&s>d)}getViewportColumns(){let{leftCols:v,rightCols:u}=this.visibleCols;return this.colsWithinViewport.concat(v).concat(u)}getColsWithinViewport(v){if(!this.colModel.colSpanActive)return this.colsWithinViewport;let u=this.isColumnVirtualisationSuppressed()?void 0:this.isColumnInRowViewport.bind(this),{visibleCols:s}=this,r=s.centerCols;return s.getColsForRow(v,r,u,d=>{let g=d.getLeft();return(0,F._exists)(g)&&g>this.viewportLeft})}checkViewportColumns(v=!1){this.extractViewport()&&this.eventSvc.dispatchEvent({type:"virtualColumnsChanged",afterScroll:v})}calculateHeaderRows(){this.clear(!0);let v={},{leftCols:u,rightCols:s,treeLeft:r,treeRight:d,treeCenter:g}=this.visibleCols;this.headerColsWithinViewport.concat(u).concat(s).forEach(b=>v[b.getId()]=!0);let m=(b,w,k)=>{let R=!1;for(let T=0;T<b.length;T++){let z=b[T],G=!1;if((0,A.isColumn)(z))G=v[z.getId()]===!0;else{let U=z.getDisplayedChildren();U&&(G=m(U,w,k+1))}G&&(R=!0,w[k]||(w[k]=[]),w[k].push(z))}return R};m(r,this.rowsOfHeadersToRenderLeft,0),m(d,this.rowsOfHeadersToRenderRight,0),m(g,this.rowsOfHeadersToRenderCenter,0)}extractViewport(){this.extractViewportColumns();let v=this.getViewportColumns().map(s=>`${s.getId()}-${s.getPinned()||"normal"}`).join("#"),u=this.colsWithinViewportHash!==v;return u&&(this.colsWithinViewportHash=v,this.calculateHeaderRows()),u}}x.ColumnViewportService=D},6350:function(ne,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.DataTypeService=void 0;let M=p(9853),A=p(8731),F=p(7274),D=p(9827),f=p(4422),v=p(6996),u=p(7764),s=p(2716),r=p(5266),d=p(3146);class g extends A.BeanStub{constructor(){super(...arguments),this.beanName="dataTypeSvc",this.dataTypeDefinitions={},this.isPendingInference=!1,this.isColumnTypeOverrideInDataTypeDefinitions=!1,this.columnStateUpdatesPendingInference={},this.columnStateUpdateListenerDestroyFuncs=[]}wireBeans(T){this.colModel=T.colModel}postConstruct(){this.processDataTypeDefinitions(),this.addManagedPropertyListener("dataTypeDefinitions",T=>{this.processDataTypeDefinitions(),this.colModel.recreateColumnDefs((0,d._convertColumnEventSourceType)(T.source))})}processDataTypeDefinitions(){var oe;let T=this.getDefaultDataTypes(),z={};this.dataTypeDefinitions=z;let G={};this.formatValueFuncs=G;let U=le=>fe=>{let{column:ye,node:ke,value:Ie}=fe,ze=ye.getColDef().valueFormatter;return ze===le.groupSafeValueFormatter&&(ze=le.valueFormatter),this.beans.valueSvc.formatValue(ye,ke,Ie,ze)};Object.entries(T).forEach(([le,fe])=>{let ye=et(pe({},fe),{groupSafeValueFormatter:w(fe,this.gos)});z[le]=ye,G[le]=U(ye)});let X=(oe=this.gos.get("dataTypeDefinitions"))!=null?oe:{},Q={};this.dataTypeMatchers=Q,Object.entries(X).forEach(([le,fe])=>{let ye=this.processDataTypeDefinition(fe,X,[le],T);ye&&(z[le]=ye,fe.dataTypeMatcher&&(Q[le]=fe.dataTypeMatcher),G[le]=U(ye))}),this.checkObjectValueHandlers(T),["dateString","text","number","boolean","date"].forEach(le=>{let fe=Q[le];fe&&delete Q[le],Q[le]=fe!=null?fe:T[le].dataTypeMatcher})}processDataTypeDefinition(T,z,G,U){let X,Q=T.extendsDataType;if(T.columnTypes&&(this.isColumnTypeOverrideInDataTypeDefinitions=!0),T.extendsDataType===T.baseDataType){let oe=U[Q],le=z[Q];if(oe&&le&&(oe=le),!b(T,oe,Q))return;X=m(oe,T)}else{if(G.includes(Q))return void(0,u._warn)(44);let oe=z[Q];if(!b(T,oe,Q))return;let le=this.processDataTypeDefinition(oe,z,[...G,Q],U);if(!le)return;X=m(le,T)}return et(pe({},X),{groupSafeValueFormatter:w(X,this.gos)})}updateColDefAndGetColumnType(T,z,G){let{cellDataType:U}=z,{field:X}=z;if(U===void 0&&(U=T.cellDataType),U!=null&&U!==!0||(U=!!this.canInferCellDataType(T,z)&&this.inferCellDataType(X,G)),!U)return void(T.cellDataType=!1);let Q=this.dataTypeDefinitions[U];if(Q)return T.cellDataType=U,Q.groupSafeValueFormatter&&(T.valueFormatter=Q.groupSafeValueFormatter),Q.valueParser&&(T.valueParser=Q.valueParser),Q.suppressDefaultProperties||this.setColDefPropertiesForBaseDataType(T,U,Q,G),Q.columnTypes;(0,u._warn)(47,{cellDataType:U})}addColumnListeners(T){if(!this.isPendingInference)return;let z=this.columnStateUpdatesPendingInference[T.getColId()];if(!z)return;let G=U=>{z.add(U.key)};T.addEventListener("columnStateUpdated",G),this.columnStateUpdateListenerDestroyFuncs.push(()=>T.removeEventListener("columnStateUpdated",G))}canInferCellDataType(T,z){var Q;let{gos:G}=this;if(!(0,F._isClientSideRowModel)(G))return!1;let U={cellRenderer:!0,valueGetter:!0,valueParser:!0,refData:!0};if(k(z,U))return!1;let X=z.type===null?T.type:z.type;if(X){let oe=(Q=G.get("columnTypes"))!=null?Q:{};if((0,d.convertColumnTypes)(X).some(le=>{let fe=oe[le.trim()];return fe&&k(fe,U)}))return!1}return!k(T,U)}inferCellDataType(T,z){var Q;if(!T)return;let G,U=this.getInitialData();if(U){let oe=T.indexOf(".")>=0&&!this.gos.get("suppressFieldDotNotation");G=(0,v._getValueUsingField)(U,T,oe)}else this.initWaitForRowData(z);if(G==null)return;let[X]=(Q=Object.entries(this.dataTypeMatchers).find(([oe,le])=>le(G)))!=null?Q:["object"];return X}getInitialData(){var z;let T=this.gos.get("rowData");if(T!=null&&T.length)return T[0];if(this.initialData)return this.initialData;{let G=(z=this.beans.rowModel.rootNode)==null?void 0:z.allLeafChildren;if(G!=null&&G.length)return G[0].data}return null}initWaitForRowData(T){if(this.columnStateUpdatesPendingInference[T]=new Set,this.isPendingInference)return;this.isPendingInference=!0;let z=this.isColumnTypeOverrideInDataTypeDefinitions,{colAutosize:G,eventSvc:U}=this.beans;z&&G&&(G.shouldQueueResizeOperations=!0);let[X]=this.addManagedEventListeners({rowDataUpdateStarted:Q=>{let{firstRowData:oe}=Q;oe&&(X==null||X(),this.isPendingInference=!1,this.processColumnsPendingInference(oe,z),this.columnStateUpdatesPendingInference={},z&&(G==null||G.processResizeOperations()),U.dispatchEvent({type:"dataTypesInferred"}))}})}processColumnsPendingInference(T,z){this.initialData=T;let G=[];this.destroyColumnStateUpdateListeners();let U={},X={};Object.entries(this.columnStateUpdatesPendingInference).forEach(([Q,oe])=>{let le=this.colModel.getCol(Q);if(!le)return;let fe=le.getColDef();if(!this.resetColDefIntoCol(le,"cellDataTypeInferred"))return;let ye=le.getColDef();if(z&&ye.type&&ye.type!==fe.type){let ke=function(Ie,ze){let Ye=(0,r.getColumnStateFromColDef)(Ie);return ze.forEach(xe=>{delete Ye[xe],xe==="rowGroup"?delete Ye.rowGroupIndex:xe==="pivot"&&delete Ye.pivotIndex}),Ye}(le,oe);ke.rowGroup&&ke.rowGroupIndex==null&&(U[Q]=ke),ke.pivot&&ke.pivotIndex==null&&(X[Q]=ke),G.push(ke)}}),z&&G.push(...this.generateColumnStateForRowGroupAndPivotIndexes(U,X)),G.length&&(0,r._applyColumnState)(this.beans,{state:G},"cellDataTypeInferred"),this.initialData=null}generateColumnStateForRowGroupAndPivotIndexes(T,z){let G={},{rowGroupColsSvc:U,pivotColsSvc:X}=this.beans;return U==null||U.restoreColumnOrder(G,T),X==null||X.restoreColumnOrder(G,z),Object.values(G)}resetColDefIntoCol(T,z){let G=T.getUserProvidedColDef();if(!G)return!1;let U=(0,s._addColumnDefaultAndTypes)(this.beans,G,T.getColId());return T.setColDef(U,G,z),!0}checkObjectValueHandlers(T){let z=this.dataTypeDefinitions.object,G=T.object;this.hasObjectValueParser=z.valueParser!==G.valueParser,this.hasObjectValueFormatter=z.valueFormatter!==G.valueFormatter}getDateStringTypeDefinition(T){var G;let{dateString:z}=this.dataTypeDefinitions;return T&&(G=this.getDataTypeDefinition(T))!=null?G:z}getDateParserFunction(T){return this.getDateStringTypeDefinition(T).dateParser}getDateFormatterFunction(T){return this.getDateStringTypeDefinition(T).dateFormatter}getDataTypeDefinition(T){let z=T.getColDef();if(z.cellDataType)return this.dataTypeDefinitions[z.cellDataType]}getBaseDataType(T){var z;return(z=this.getDataTypeDefinition(T))==null?void 0:z.baseDataType}checkType(T,z){var U;if(z==null)return!0;let G=(U=this.getDataTypeDefinition(T))==null?void 0:U.dataTypeMatcher;return!G||G(z)}validateColDef(T){let z=G=>(0,u._warn)(48,{property:G});if(T.cellDataType==="object"){let{object:G}=this.dataTypeDefinitions;T.valueFormatter!==G.groupSafeValueFormatter||this.hasObjectValueFormatter||z("Formatter"),T.editable&&T.valueParser===G.valueParser&&!this.hasObjectValueParser&&z("Parser")}}getFormatValue(T){return this.formatValueFuncs[T]}isColPendingInference(T){return this.isPendingInference&&!!this.columnStateUpdatesPendingInference[T]}setColDefPropertiesForBaseDataType(T,z,G,U){var Q;let X=this.formatValueFuncs[z];switch(G.baseDataType){case"number":T.cellEditor="agNumberCellEditor";break;case"boolean":T.cellEditor="agCheckboxCellEditor",T.cellRenderer="agCheckboxCellRenderer",T.suppressKeyboardEvent=oe=>!!oe.colDef.editable&&oe.event.key===M.KeyCode.SPACE;break;case"date":T.cellEditor="agDateCellEditor",T.keyCreator=X;break;case"dateString":T.cellEditor="agDateStringCellEditor",T.keyCreator=X;break;case"object":T.cellEditorParams={useFormatter:!0},T.comparator=(oe,le)=>{let fe=this.colModel.getColDefCol(U),ye=fe==null?void 0:fe.getColDef();if(!fe||!ye)return 0;let ke=oe==null?"":X({column:fe,node:null,value:oe}),Ie=le==null?"":X({column:fe,node:null,value:le});return ke===Ie?0:ke>Ie?1:-1},T.keyCreator=X}(Q=this.beans.filterManager)==null||Q.setColDefPropertiesForDataType(T,G,X)}getDefaultDataTypes(){let T=G=>!!G.match("^\\d{4}-\\d{2}-\\d{2}$"),z=this.getLocaleTextFunc();return{number:{baseDataType:"number",valueParser:G=>{var U,X;return((X=(U=G.newValue)==null?void 0:U.trim)==null?void 0:X.call(U))===""?null:Number(G.newValue)},valueFormatter:G=>G.value==null?"":typeof G.value!="number"||isNaN(G.value)?z("invalidNumber","Invalid Number"):String(G.value),dataTypeMatcher:G=>typeof G=="number"},text:{baseDataType:"text",valueParser:G=>G.newValue===""?null:(0,f._toStringOrNull)(G.newValue),dataTypeMatcher:G=>typeof G=="string"},boolean:{baseDataType:"boolean",valueParser:G=>{var U,X;return G.newValue==null?G.newValue:((X=(U=G.newValue)==null?void 0:U.trim)==null?void 0:X.call(U))===""?null:String(G.newValue).toLowerCase()==="true"},valueFormatter:G=>G.value==null?"":String(G.value),dataTypeMatcher:G=>typeof G=="boolean"},date:{baseDataType:"date",valueParser:G=>(0,D._parseDateTimeFromString)(G.newValue==null?null:String(G.newValue)),valueFormatter:G=>{var U;return G.value==null?"":G.value instanceof Date&&!isNaN(G.value.getTime())?(U=(0,D._serialiseDate)(G.value,!1))!=null?U:"":z("invalidDate","Invalid Date")},dataTypeMatcher:G=>G instanceof Date},dateString:{baseDataType:"dateString",dateParser:G=>{var U;return(U=(0,D._parseDateTimeFromString)(G))!=null?U:void 0},dateFormatter:G=>{var U;return(U=(0,D._serialiseDate)(G!=null?G:null,!1))!=null?U:void 0},valueParser:G=>T(String(G.newValue))?G.newValue:null,valueFormatter:G=>T(String(G.value))?G.value:"",dataTypeMatcher:G=>typeof G=="string"&&T(G)},object:{baseDataType:"object",valueParser:()=>null,valueFormatter:G=>{var U;return(U=(0,f._toStringOrNull)(G.value))!=null?U:""}}}}destroyColumnStateUpdateListeners(){this.columnStateUpdateListenerDestroyFuncs.forEach(T=>T()),this.columnStateUpdateListenerDestroyFuncs=[]}destroy(){this.dataTypeDefinitions={},this.dataTypeMatchers={},this.formatValueFuncs={},this.columnStateUpdatesPendingInference={},this.destroyColumnStateUpdateListeners(),super.destroy()}}function m(R,T){let z=pe(pe({},R),T);return R.columnTypes&&T.columnTypes&&T.appendColumnTypes&&(z.columnTypes=[...(0,d.convertColumnTypes)(R.columnTypes),...(0,d.convertColumnTypes)(T.columnTypes)]),z}function b(R,T,z){return T?T.baseDataType===R.baseDataType||((0,u._warn)(46),!1):((0,u._warn)(45,{parentCellDataType:z}),!1)}function w(R,T){if(R.valueFormatter)return z=>{var G,U,X;if((G=z.node)!=null&&G.group){let Q=((U=z.colDef.pivotValueColumn)!=null?U:z.column).getAggFunc();if(Q){if(Q==="first"||Q==="last")return R.valueFormatter(z);if(R.baseDataType==="number"&&Q!=="count"){if(typeof z.value=="number")return R.valueFormatter(z);if(typeof z.value=="object"){if(!z.value)return;if("toNumber"in z.value)return R.valueFormatter(et(pe({},z),{value:z.value.toNumber()}));if("value"in z.value)return R.valueFormatter(et(pe({},z),{value:z.value.value}))}}return}if(T.get("groupDisplayType")==="groupRows"&&!T.get("treeData"))return}else if(T.get("groupHideOpenParents")&&z.column.isRowGroupActive()&&typeof z.value=="string"&&!((X=R.dataTypeMatcher)!=null&&X.call(R,z.value)))return;return R.valueFormatter(z)}}function k(R,T){return[["cellRenderer","agSparklineCellRenderer"],["valueGetter",void 0],["valueParser",void 0],["refData",void 0]].some(([z,G])=>function(U,X,Q,oe){if(!X[Q])return!1;let le=U[Q];return le===null?(X[Q]=!1,!1):oe===void 0?!!le:le===oe}(R,T,z,G))}x.DataTypeService=g},6034:function(ne,x){Object.defineProperty(x,"__esModule",{value:!0}),x.GroupInstanceIdCreator=void 0,x.GroupInstanceIdCreator=class{constructor(){this.existingIds={}}getInstanceIdForKey(p){let M=this.existingIds[p],A;return A=typeof M!="number"?0:M+1,this.existingIds[p]=A,A}}},5626:function(ne,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.SelectionColService=x.CONTROLS_COLUMN_ID_PREFIX=void 0;let M=p(8731),A=p(3355),F=p(7274),D=p(5266),f=p(3146);x.CONTROLS_COLUMN_ID_PREFIX="ag-Grid-SelectionColumn";class v extends M.BeanStub{constructor(){super(...arguments),this.beanName="selectionColSvc"}postConstruct(){this.addManagedPropertyListener("rowSelection",d=>{this.onSelectionOptionsChanged(d.currentValue,d.previousValue,(0,f._convertColumnEventSourceType)(d.source))})}addSelectionCols(d){let g=this.selectionCols;g!=null&&(d.list=g.list.concat(d.list),d.tree=g.tree.concat(d.tree),(0,f._updateColsMap)(d))}createSelectionCols(d,g){var z,G,U,X,Q,oe;let m=d.treeDepth,b=((G=(z=this.selectionCols)==null?void 0:z.treeDepth)!=null?G:-1)==m,w=this.generateSelectionCols();if((0,f._areColIdsEqual)(w,(X=(U=this.selectionCols)==null?void 0:U.list)!=null?X:[])&&b)return;(()=>{var le;(0,f._destroyColumnTree)(this.beans,(le=this.selectionCols)==null?void 0:le.tree),this.selectionCols=null})();let{colGroupSvc:k}=this.beans,R=(Q=k==null?void 0:k.findDepth(d.tree))!=null?Q:0,T=(oe=k==null?void 0:k.balanceTreeForAutoCols(w,R))!=null?oe:[];this.selectionCols={list:w,tree:T,treeDepth:R,map:{}},g(le=>{if(!le)return null;let fe=le.filter(ye=>!(0,f.isColumnSelectionCol)(ye));return[...w,...fe]})}isSelectionColumnEnabled(){var R,T,z;let{gos:d,beans:g}=this,m=d.get("rowSelection");if(typeof m!="object"||!(0,F._isRowSelection)(d))return!1;let b=((z=(T=(R=g.autoColSvc)==null?void 0:R.getAutoCols())==null?void 0:T.length)!=null?z:0)>0;if(m.checkboxLocation==="autoGroupColumn"&&b)return!1;let w=!!(0,F._getCheckboxes)(m),k=(0,F._getHeaderCheckbox)(m);return w||k}generateSelectionCols(){if(!this.isSelectionColumnEnabled())return[];let{gos:d,validation:g}=this.beans,m=d.get("selectionColumnDef"),b=et(pe({width:50,resizable:!1,suppressHeaderMenuButton:!0,sortable:!1,suppressMovable:!0,lockPosition:d.get("enableRtl")?"right":"left",comparator(R,T,z,G){let U=z.isSelected();return U===G.isSelected()?0:U?1:-1},editable:!1,suppressFillHandle:!0},m),{colId:x.CONTROLS_COLUMN_ID_PREFIX}),w=b.colId;g==null||g.validateColDef(b,w,!0);let k=new A.AgColumn(b,null,w,!1);return this.createBean(k),[k]}putSelectionColsFirstInList(d,g){return g?[...d,...g.filter(m=>!(0,f.isColumnSelectionCol)(m))]:null}getSelectionCol(d){var g,m;return(m=(g=this.selectionCols)==null?void 0:g.list.find(b=>(0,f._columnsMatch)(b,d)))!=null?m:null}getSelectionCols(){var d,g;return(g=(d=this.selectionCols)==null?void 0:d.list)!=null?g:null}onSelectionOptionsChanged(d,g,m){let b=(g&&typeof g!="string"?(0,F._getCheckboxes)(g):void 0)!==(d&&typeof d!="string"?(0,F._getCheckboxes)(d):void 0),w=(g&&typeof g!="string"?(0,F._getHeaderCheckbox)(g):void 0)!==(d&&typeof d!="string"?(0,F._getHeaderCheckbox)(d):void 0),k=(0,F._getCheckboxLocation)(d),R=(0,F._getCheckboxLocation)(g);(b||w||k!==R)&&this.beans.colModel.refreshAll(m)}destroy(){var d;(0,f._destroyColumnTree)(this.beans,(d=this.selectionCols)==null?void 0:d.tree),super.destroy()}refreshVisibility(d){var b;if(!this.isSelectionColumnEnabled())return;let g=this.beans,m=(b=g.visibleCols.getAllTrees())!=null?b:[];if(m.length!==0){if(!m.some(u)){let w=(0,D._getColumnState)(g).find(k=>(0,f.isColumnSelectionCol)(k.colId));w&&(0,D._applyColumnState)(g,{state:[{colId:w.colId,hide:!w.hide}]},d)}if(m.length===1){let w=s(m[0]);if(!w)return;(0,D._applyColumnState)(g,{state:[{colId:w.getColId(),hide:!0}]},d)}}}}x.SelectionColService=v;let u=r=>{var d,g;return r.isColumn?(0,f.isColumnSelectionCol)(r):(g=(d=r.getChildren())==null?void 0:d.some(u))!=null?g:!1};function s(r){var g;if(r.isColumn)return(0,f.isColumnSelectionCol)(r)?r:null;let d=(g=r.getChildren())!=null?g:[];for(let m of d){let b=s(m);if(b)return b}return null}},6869:function(ne,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.depthFirstAllColumnTreeSearch=x.VisibleColsService=void 0;let M=p(8731),A=p(3355),F=p(6908),D=p(1502),f=p(3146),v=p(6034);class u extends M.BeanStub{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(g,m=!1){var z;let{colModel:b,colGroupSvc:w,colViewport:k}=this.beans;m||this.buildTrees(b,w),w==null||w.updateOpenClosedVisibility();let R=r(this.treeLeft);this.leftCols=R,this.centerCols=r(this.treeCenter);let T=r(this.treeRight);this.rightCols=T,this.joinColsAriaOrder(b),this.joinCols(),this.setLeftValues(g),this.autoHeightCols=this.allCols.filter(G=>G.isAutoHeight()),(z=this.beans.colFlex)==null||z.refreshFlexedColumns(),this.updateBodyWidths(),k.checkViewportColumns(!1),this.setFirstRightAndLastLeftPinned(b,R,T,g),this.eventSvc.dispatchEvent({type:"displayedColumnsChanged",source:g})}updateBodyWidths(){let g=(0,f.getWidthOfColsInList)(this.centerCols),m=(0,f.getWidthOfColsInList)(this.leftCols),b=(0,f.getWidthOfColsInList)(this.rightCols);this.isBodyWidthDirty=this.bodyWidth!==g,(this.bodyWidth!==g||this.leftWidth!==m||this.rightWidth!==b)&&(this.bodyWidth=g,this.leftWidth=m,this.rightWidth=b,this.eventSvc.dispatchEvent({type:"columnContainerWidthChanged"}),this.eventSvc.dispatchEvent({type:"displayedColumnsWidthChanged"}))}setLeftValues(g){this.setLeftValuesOfCols(g),this.setLeftValuesOfGroups()}setFirstRightAndLastLeftPinned(g,m,b,w){let k,R;this.gos.get("enableRtl")?(k=m?m[0]:null,R=b?(0,D._last)(b):null):(k=m?(0,D._last)(m):null,R=b?b[0]:null),g.getCols().forEach(T=>{T.setLastLeftPinned(T===k,w),T.setFirstRightPinned(T===R,w)})}buildTrees(g,m){let b=g.getColsToShow(),w=b.filter(G=>G.getPinned()=="left"),k=b.filter(G=>G.getPinned()=="right"),R=b.filter(G=>G.getPinned()!="left"&&G.getPinned()!="right"),T=new v.GroupInstanceIdCreator,z=G=>m?m.createColumnGroups(G):G.columns;this.treeLeft=z({columns:w,idCreator:T,pinned:"left",oldDisplayedGroups:this.treeLeft}),this.treeRight=z({columns:k,idCreator:T,pinned:"right",oldDisplayedGroups:this.treeRight}),this.treeCenter=z({columns:R,idCreator:T,pinned:null,oldDisplayedGroups:this.treeCenter}),this.updateColsAndGroupsMap()}clear(){this.leftCols=[],this.rightCols=[],this.centerCols=[],this.allCols=[],this.ariaOrderColumns=[]}joinColsAriaOrder(g){let m=g.getCols(),b=[],w=[],k=[];for(let R of m){let T=R.getPinned();T?T===!0||T==="left"?b.push(R):k.push(R):w.push(R)}this.ariaOrderColumns=b.concat(w).concat(k)}getAriaColIndex(g){let m;return m=(0,F.isColumnGroup)(g)?g.getLeafColumns()[0]:g,this.ariaOrderColumns.indexOf(m)+1}setLeftValuesOfGroups(){[this.treeLeft,this.treeRight,this.treeCenter].forEach(g=>{g.forEach(m=>{(0,F.isColumnGroup)(m)&&m.checkLeft()})})}setLeftValuesOfCols(g){let{colModel:m}=this.beans;if(!m.getColDefCols())return;let b=m.getCols().slice(0),w=this.gos.get("enableRtl");[this.leftCols,this.rightCols,this.centerCols].forEach(k=>{if(w){let R=(0,f.getWidthOfColsInList)(k);k.forEach(T=>{R-=T.getActualWidth(),T.setLeft(R,g)})}else{let R=0;k.forEach(T=>{T.setLeft(R,g),R+=T.getActualWidth()})}(function(R,T){for(let z=0;z<T.length;z++){let G=R.indexOf(T[z]);G>=0&&(R[G]=R[R.length-1],R.pop())}})(b,k)}),b.forEach(k=>{k.setLeft(null,g)})}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(g){return this.allCols.indexOf(g)>=0}getLeftColsForRow(g){let{leftCols:m,beans:{colModel:b}}=this;return b.colSpanActive?this.getColsForRow(g,m):m}getRightColsForRow(g){let{rightCols:m,beans:{colModel:b}}=this;return b.colSpanActive?this.getColsForRow(g,m):m}getColsForRow(g,m,b,w){let k=[],R=null;for(let T=0;T<m.length;T++){let z=m[T],G=m.length-T,U=Math.min(z.getColSpan(g),G),X=[z];if(U>1){let oe=U-1;for(let le=1;le<=oe;le++)X.push(m[T+le]);T+=oe}let Q;b?(Q=!1,X.forEach(oe=>{b(oe)&&(Q=!0)})):Q=!0,Q&&(k.length===0&&R&&w&&w(z)&&k.push(R),k.push(z)),R=z}return k}getContainerWidth(g){switch(g){case"left":return this.leftWidth;case"right":return this.rightWidth;default:return this.bodyWidth}}getColBefore(g){let m=this.allCols,b=m.indexOf(g);return b>0?m[b-1]:null}isPinningLeft(){return this.leftCols.length>0}isPinningRight(){return this.rightCols.length>0}updateColsAndGroupsMap(){this.colsAndGroupsMap={};let g=m=>{this.colsAndGroupsMap[m.getUniqueId()]=m};s(this.treeCenter,!1,g),s(this.treeLeft,!1,g),s(this.treeRight,!1,g)}isVisible(g){return this.colsAndGroupsMap[g.getUniqueId()]===g}getFirstColumn(){let g=this.gos.get("enableRtl"),m=["leftCols","centerCols","rightCols"];g&&m.reverse();for(let b=0;b<m.length;b++){let w=this[m[b]];if(w.length)return g?(0,D._last)(w):w[0]}return null}getColAfter(g){let m=this.allCols,b=m.indexOf(g);return b<m.length-1?m[b+1]:null}getColsLeftWidth(){return(0,f.getWidthOfColsInList)(this.leftCols)}getDisplayedColumnsRightWidth(){return(0,f.getWidthOfColsInList)(this.rightCols)}isColAtEdge(g,m){let b=this.allCols;if(!b.length)return!1;let w=m==="first",k;if((0,F.isColumnGroup)(g)){let R=g.getDisplayedLeafColumns();if(!R.length)return!1;k=w?R[0]:(0,D._last)(R)}else k=g;return(w?b[0]:(0,D._last)(b))===k}}function s(d,g,m){if(d)for(let b=0;b<d.length;b++){let w=d[b];(0,F.isColumnGroup)(w)&&s(g?w.getDisplayedChildren():w.getChildren(),g,m),m(w)}}function r(d){let g=[];return s(d,!0,m=>{(0,A.isColumn)(m)&&g.push(m)}),g}x.VisibleColsService=u,x.depthFirstAllColumnTreeSearch=s},3789:function(ne,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.setupCompBean=x.EmptyBean=void 0;let M=p(8731);class A extends M.BeanStub{}x.EmptyBean=A,x.setupCompBean=function(F,D,f){return f&&F.addDestroyFunc(()=>D.destroyBean(f)),f!=null?f:F}},4309:function(ne,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.AgComponentUtils=void 0;let M=p(8731),A=p(3507);class F extends M.BeanStub{constructor(){super(...arguments),this.beanName="agCompUtils"}adaptFunction(f,v){return f.cellRenderer?class{refresh(){return!1}getGui(){return this.eGui}init(u){let s=v(u),r=typeof s;this.eGui=r!=="string"&&r!=="number"&&r!=="boolean"?s!=null?s:(0,A._loadTemplate)("<span></span>"):(0,A._loadTemplate)("<span>"+s+"</span>")}}:null}}x.AgComponentUtils=F},8414:function(ne,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.CellRendererFunctionModule=void 0;let M=p(7205),A=p(4309);x.CellRendererFunctionModule={moduleName:"CellRendererFunction",version:M.VERSION,beans:[A.AgComponentUtils]}},8759:function(ne,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.BaseComponentWrapper=void 0;let M=p(7764);x.BaseComponentWrapper=class{wrap(A,F,D,f){let v=this.createWrapper(A,f);return F==null||F.forEach(u=>{this.createMethod(v,u,!0)}),D==null||D.forEach(u=>{this.createMethod(v,u,!1)}),v}createMethod(A,F,D){A.addMethod(F,this.createMethodProxy(A,F,D))}createMethodProxy(A,F,D){return function(){return A.hasMethod(F)?A.callMethod(F,arguments):(D&&(0,M._warn)(49,{methodName:F}),null)}}}},4110:function(ne,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.Registry=void 0;let M=p(8731),A=p(7764);class F extends M.BeanStub{constructor(){super(...arguments),this.beanName="registry",this.agGridDefaults={},this.agGridDefaultParams={},this.jsComps={},this.dynamicBeans={},this.selectors={},this.icons={}}postConstruct(){let f=this.gos.get("components");f!=null&&Object.entries(f).forEach(([v,u])=>{this.jsComps[v]=u})}registerModule(f){let{icons:v,userComponents:u,dynamicBeans:s,selectors:r}=f;if(u){let d=(g,m,b)=>{this.agGridDefaults[g]=m,b&&(this.agGridDefaultParams[g]=b)};for(let g of Object.keys(u)){let m=u[g];typeof m=="object"?d(g,m.classImp,m.params):d(g,m)}}if(s)for(let d of Object.keys(s))this.dynamicBeans[d]=s[d];if(r==null||r.forEach(d=>{this.selectors[d.selector]=d}),v)for(let d of Object.keys(v))this.icons[d]=v[d]}getUserComponent(f,v){var m;let u=(b,w,k)=>({componentFromFramework:w,component:b,params:k}),{frameworkOverrides:s}=this.beans,r=s.frameworkComponent(v,this.gos.get("components"));if(r!=null)return u(r,!0);let d=this.jsComps[v];if(d)return u(d,s.isFrameworkComponent(d));let g=this.agGridDefaults[v];return g?u(g,!1,this.agGridDefaultParams[v]):((m=this.beans.validation)==null||m.missingUserComponent(f,v,this.agGridDefaults,this.jsComps),null)}createDynamicBean(f,v,...u){let s=this.dynamicBeans[f];if(s!=null)return new s(...u);if(v)throw new Error((0,A._errMsg)(256))}getSelector(f){return this.selectors[f]}getIcon(f){return this.icons[f]}}x.Registry=F},4126:function(ne,x){Object.defineProperty(x,"__esModule",{value:!0}),x._unwrapUserComp=void 0,x._unwrapUserComp=function(p){let M=p;return M!=null&&M.getFrameworkComponentInstance!=null?M.getFrameworkComponentInstance():p}},2036:function(ne,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x._mergeFilterParamsWithApplicationProvidedParams=x._getFilterCompKeys=x._getFloatingFilterCompDetails=x._getTooltipCompDetails=x._getNoRowsOverlayCompDetails=x._getLoadingOverlayCompDetails=x._getDateCompDetails=x._getFilterDetails=x._getCellEditorDetails=x._getLoadingCellRendererDetails=x._getEditorRendererDetails=x._getCellRendererDetails=x._getFullWidthDetailCellRendererDetails=x._getFullWidthGroupCellRendererDetails=x._getFullWidthLoadingCellRendererDetails=x._getFullWidthCellRendererDetails=x._getInnerHeaderGroupCompDetails=x._getHeaderGroupCompDetails=x._getInnerHeaderCompDetails=x._getHeaderCompDetails=x._getInnerCellRendererDetails=x._getDragAndDropImageCompDetails=void 0;let M=p(1585),A={name:"dateComponent",mandatoryMethods:["getDate","setDate"],optionalMethods:["afterGuiAttached","setInputPlaceholder","setInputAriaLabel","setDisabled","refresh"]},F={name:"dragAndDropImageComponent",mandatoryMethods:["setIcon","setLabel"]},D={name:"headerComponent",optionalMethods:["refresh"]},f={name:"innerHeaderComponent"},v={name:"innerHeaderGroupComponent"},u={name:"headerGroupComponent"},s={name:"innerRenderer",cellRenderer:!0,optionalMethods:["afterGuiAttached"]},r={name:"cellRenderer",optionalMethods:["refresh","afterGuiAttached"],cellRenderer:!0},d={name:"cellRenderer",optionalMethods:["refresh","afterGuiAttached"]},g={name:"loadingCellRenderer",cellRenderer:!0},m={name:"cellEditor",mandatoryMethods:["getValue"],optionalMethods:["isPopup","isCancelBeforeStart","isCancelAfterEnd","getPopupPosition","focusIn","focusOut","afterGuiAttached","refresh"]},b={name:"loadingOverlayComponent",optionalMethods:["refresh"]},w={name:"noRowsOverlayComponent",optionalMethods:["refresh"]},k={name:"tooltipComponent"},R={name:"filter",mandatoryMethods:["isFilterActive","doesFilterPass","getModel","setModel"],optionalMethods:["afterGuiAttached","afterGuiDetached","onNewRowsLoaded","getModelAsString","onFloatingFilterChanged","onAnyFilterChanged","refresh"]},T={name:"floatingFilterComponent",mandatoryMethods:["onParentModelChanged"],optionalMethods:["afterGuiAttached","refresh"]},z={name:"fullWidthCellRenderer",optionalMethods:["refresh","afterGuiAttached"],cellRenderer:!0},G={name:"loadingCellRenderer",cellRenderer:!0},U={name:"groupRowRenderer",optionalMethods:["afterGuiAttached"],cellRenderer:!0},X={name:"detailCellRenderer",optionalMethods:["refresh"],cellRenderer:!0};x._getDragAndDropImageCompDetails=function(Q,oe){return Q.getCompDetailsFromGridOptions(F,"agDragAndDropImage",oe,!0)},x._getInnerCellRendererDetails=function(Q,oe,le){return Q.getCompDetails(oe,s,void 0,le)},x._getHeaderCompDetails=function(Q,oe,le){return Q.getCompDetails(oe,D,"agColumnHeader",le)},x._getInnerHeaderCompDetails=function(Q,oe,le){return Q.getCompDetails(oe,f,void 0,le)},x._getHeaderGroupCompDetails=function(Q,oe){let le=oe.columnGroup.getColGroupDef();return Q.getCompDetails(le,u,"agColumnGroupHeader",oe)},x._getInnerHeaderGroupCompDetails=function(Q,oe,le){return Q.getCompDetails(oe,v,void 0,le)},x._getFullWidthCellRendererDetails=function(Q,oe){return Q.getCompDetailsFromGridOptions(z,void 0,oe,!0)},x._getFullWidthLoadingCellRendererDetails=function(Q,oe){return Q.getCompDetailsFromGridOptions(G,"agLoadingCellRenderer",oe,!0)},x._getFullWidthGroupCellRendererDetails=function(Q,oe){return Q.getCompDetailsFromGridOptions(U,"agGroupRowRenderer",oe,!0)},x._getFullWidthDetailCellRendererDetails=function(Q,oe){return Q.getCompDetailsFromGridOptions(X,"agDetailCellRenderer",oe,!0)},x._getCellRendererDetails=function(Q,oe,le){return Q.getCompDetails(oe,r,void 0,le)},x._getEditorRendererDetails=function(Q,oe,le){return Q.getCompDetails(oe,d,void 0,le)},x._getLoadingCellRendererDetails=function(Q,oe,le){return Q.getCompDetails(oe,g,"agSkeletonCellRenderer",le,!0)},x._getCellEditorDetails=function(Q,oe,le){return Q.getCompDetails(oe,m,"agCellEditor",le,!0)},x._getFilterDetails=function(Q,oe,le,fe){return Q.getCompDetails(oe,R,fe,le,!0)},x._getDateCompDetails=function(Q,oe){return Q.getCompDetailsFromGridOptions(A,"agDateInput",oe,!0)},x._getLoadingOverlayCompDetails=function(Q,oe){return Q.getCompDetailsFromGridOptions(b,"agLoadingOverlay",oe,!0)},x._getNoRowsOverlayCompDetails=function(Q,oe){return Q.getCompDetailsFromGridOptions(w,"agNoRowsOverlay",oe,!0)},x._getTooltipCompDetails=function(Q,oe){return Q.getCompDetails(oe.colDef,k,"agTooltipComponent",oe,!0)},x._getFloatingFilterCompDetails=function(Q,oe,le,fe){return Q.getCompDetails(oe,T,fe,le)},x._getFilterCompKeys=function(Q,oe){return(0,M._getUserCompKeys)(Q,oe,R)},x._mergeFilterParamsWithApplicationProvidedParams=function(Q,oe,le){return Q.mergeParams(oe,R,le)}},1585:function(ne,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.UserComponentFactory=x._getUserCompKeys=void 0;let M=p(8731),A=p(6996),F=p(7990),D=p(7764);function f(u,s,r,d){let{name:g}=r,m,b,w,k,R,T;if(s){let z=s,G=z[g+"Selector"],U=G?G(d):null,X=Q=>{typeof Q=="string"?m=Q:Q!=null&&Q!==!0&&(u.isFrameworkComponent(Q)?w=Q:b=Q)};U?(X(U.component),k=U.params,R=U.popup,T=U.popupPosition):X(z[g])}return{compName:m,jsComp:b,fwComp:w,paramsFromSelector:k,popupFromSelector:R,popupPositionFromSelector:T}}x._getUserCompKeys=f;class v extends M.BeanStub{constructor(){super(...arguments),this.beanName="userCompFactory"}wireBeans(s){this.agCompUtils=s.agCompUtils,this.registry=s.registry,this.frameworkCompWrapper=s.frameworkCompWrapper,this.gridOptions=s.gridOptions}getCompDetailsFromGridOptions(s,r,d,g=!1){return this.getCompDetails(this.gridOptions,s,r,d,g)}getCompDetails(s,r,d,g,m=!1){var ke;let{name:b,cellRenderer:w}=r,k,{compName:R,jsComp:T,fwComp:z,paramsFromSelector:G,popupFromSelector:U,popupPositionFromSelector:X}=f(this.beans.frameworkOverrides,s,r,g),Q=Ie=>{let ze=this.registry.getUserComponent(b,Ie);ze&&(T=ze.componentFromFramework?void 0:ze.component,z=ze.componentFromFramework?ze.component:void 0,k=ze.params)};var oe;if(R!=null&&Q(R),T==null&&z==null&&d!=null&&Q(d),!T||!w||(oe=T)&&oe.prototype&&"getGui"in oe.prototype||(T=(ke=this.agCompUtils)==null?void 0:ke.adaptFunction(r,T)),!T&&!z){let{validation:Ie}=this.beans;return void(!m||R===d&&d?d&&!Ie&&(0,D._error)(146,{comp:d}):R?(Ie==null?void 0:Ie.isProvidedUserComp(R))||(0,D._error)(50,{compName:R}):d?Ie||(0,D._error)(260,et(pe({},this.gos.getModuleErrorParams()),{propName:b,compName:d})):(0,D._error)(216,{name:b}))}let le=this.mergeParams(s,r,g,G,k),fe=T==null,ye=T!=null?T:z;return{componentFromFramework:fe,componentClass:ye,params:le,type:r,popupFromSelector:U,popupPositionFromSelector:X,newAgStackInstance:()=>this.newAgStackInstance(ye,fe,le,r)}}newAgStackInstance(s,r,d,g){var w;let m;m=r?this.frameworkCompWrapper.wrap(s,g.mandatoryMethods,g.optionalMethods,g):new s,this.createBean(m);let b=(w=m.init)==null?void 0:w.call(m,d);return b==null?F.AgPromise.resolve(m):b.then(()=>m)}mergeParams(s,r,d,g=null,m){let b=this.gos.getGridCommonParams();(0,A._mergeDeep)(b,d),m&&(0,A._mergeDeep)(b,m);let w=s&&s[r.name+"Params"];if(typeof w=="function"){let k=w(d);(0,A._mergeDeep)(b,k)}else typeof w=="object"&&(0,A._mergeDeep)(b,w);return(0,A._mergeDeep)(b,g),b}}x.UserComponentFactory=v},9853:function(ne,x){Object.defineProperty(x,"__esModule",{value:!0}),x.KeyCode=void 0,x.KeyCode={BACKSPACE:"Backspace",TAB:"Tab",ENTER:"Enter",ESCAPE:"Escape",SPACE:" ",LEFT:"ArrowLeft",UP:"ArrowUp",RIGHT:"ArrowRight",DOWN:"ArrowDown",DELETE:"Delete",F2:"F2",PAGE_UP:"PageUp",PAGE_DOWN:"PageDown",PAGE_HOME:"Home",PAGE_END:"End",A:"KeyA",C:"KeyC",D:"KeyD",V:"KeyV",X:"KeyX",Y:"KeyY",Z:"KeyZ"}},8731:function(ne,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.BeanStub=void 0;let M=p(5889),A=p(7230),F=p(2979);x.BeanStub=class{constructor(){this.destroyFunctions=[],this.destroyed=!1,this.__v_skip=!0,this.propertyListenerId=0,this.lastChangeSetIdLookup={},this.isAlive=()=>!this.destroyed}preWireBeans(D){this.beans=D,this.stubContext=D.context,this.eventSvc=D.eventSvc,this.gos=D.gos}destroy(){let{destroyFunctions:D}=this;for(let f=0;f<D.length;f++)D[f]();D.length=0,this.destroyed=!0,this.dispatchLocalEvent({type:"destroyed"})}addEventListener(D,f,v){this.localEventService||(this.localEventService=new M.LocalEventService),this.localEventService.addEventListener(D,f,v)}removeEventListener(D,f,v){var u;(u=this.localEventService)==null||u.removeEventListener(D,f,v)}dispatchLocalEvent(D){var f;(f=this.localEventService)==null||f.dispatchEvent(D)}addManagedElementListeners(D,f){return this._setupListeners(D,f)}addManagedEventListeners(D){return this._setupListeners(this.eventSvc,D)}addManagedListeners(D,f){return this._setupListeners(D,f)}_setupListeners(D,f){let v=[];for(let u of Object.keys(f)){let s=f[u];s&&v.push(this._setupListener(D,u,s))}return v}_setupListener(D,f,v){if(this.destroyed)return()=>null;D instanceof HTMLElement?(0,F._addSafePassiveEventListener)(this.beans.frameworkOverrides,D,f,v):D.addEventListener(f,v);let u=()=>(D.removeEventListener(f,v),null);return this.destroyFunctions.push(u),()=>(u(),this.destroyFunctions=this.destroyFunctions.filter(s=>s!==u),null)}setupGridOptionListener(D,f){let{gos:v}=this;v.addPropertyEventListener(D,f);let u=()=>(v.removePropertyEventListener(D,f),null);return this.destroyFunctions.push(u),()=>(u(),this.destroyFunctions=this.destroyFunctions.filter(s=>s!==u),null)}addManagedPropertyListener(D,f){return this.destroyed?()=>null:this.setupGridOptionListener(D,f)}addManagedPropertyListeners(D,f){if(this.destroyed)return;let v=D.join("-")+this.propertyListenerId++,u=s=>{if(s.changeSet){if(s.changeSet&&s.changeSet.id===this.lastChangeSetIdLookup[v])return;this.lastChangeSetIdLookup[v]=s.changeSet.id}let r={type:"gridPropertyChanged",changeSet:s.changeSet,source:s.source};f(r)};D.forEach(s=>this.setupGridOptionListener(s,u))}getLocaleTextFunc(){return(0,A._getLocaleTextFunc)(this.beans.localeSvc)}addDestroyFunc(D){this.isAlive()?this.destroyFunctions.push(D):D()}createOptionalManagedBean(D,f){return D?this.createManagedBean(D,f):void 0}createManagedBean(D,f){let v=this.createBean(D,f);return this.addDestroyFunc(this.destroyBean.bind(this,D,f)),v}createBean(D,f,v){return(f||this.stubContext).createBean(D,v)}destroyBean(D,f){return(f||this.stubContext).destroyBean(D)}destroyBeans(D,f){return(f||this.stubContext).destroyBeans(D)}}},2342:function(ne,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.Context=void 0;let M=p(2132),A=p(569);class F extends A.GenericContext{init(f){this.gridId=f.gridId,this.beans.context=this,this.destroyCallback=f.destroyCallback,super.init(f)}destroy(){var f;super.destroy(),(0,M._unRegisterGridModules)(this.gridId),(f=this.destroyCallback)==null||f.call(this)}getGridId(){return this.gridId}}x.Context=F},569:function(ne,x){Object.defineProperty(x,"__esModule",{value:!0}),x.GenericContext=void 0,x.GenericContext=class{constructor(p){this.beans={},this.createdBeans=[],this.destroyed=!1,p&&p.beanClasses&&(this.beanDestroyComparator=p.beanDestroyComparator,this.init(p))}init(p){var M;Object.entries(p.providedBeanInstances).forEach(([A,F])=>{this.beans[A]=F}),p.beanClasses.forEach(A=>{let F=new A;F.beanName?this.beans[F.beanName]=F:console.error(`Bean ${A.name} is missing beanName`),this.createdBeans.push(F)}),(M=p.derivedBeans)==null||M.forEach(A=>{let{beanName:F,bean:D}=A(this);this.beans[F]=D,this.createdBeans.push(D)}),p.beanInitComparator&&this.createdBeans.sort(p.beanInitComparator),this.initBeans(this.createdBeans)}getBeanInstances(){return Object.values(this.beans)}createBean(p,M){if(!p)throw Error("null bean");return this.initBeans([p],M),p}initBeans(p,M){p.forEach(A=>{var F,D;(F=A.preWireBeans)==null||F.call(A,this.beans),(D=A.wireBeans)==null||D.call(A,this.beans)}),p.forEach(A=>{var F;return(F=A.preConstruct)==null?void 0:F.call(A)}),M&&p.forEach(M),p.forEach(A=>{var F;return(F=A.postConstruct)==null?void 0:F.call(A)})}getBeans(){return this.beans}getBean(p){return this.beans[p]}destroy(){if(this.destroyed)return;this.destroyed=!0;let p=this.getBeanInstances();this.beanDestroyComparator&&p.sort(this.beanDestroyComparator),this.destroyBeans(p),this.beans={},this.createdBeans=[]}destroyBean(p){var M;(M=p==null?void 0:p.destroy)==null||M.call(p)}destroyBeans(p){if(p)for(let M=0;M<p.length;M++)this.destroyBean(p[M]);return[]}isDestroyed(){return this.destroyed}}},3943:function(ne,x){Object.defineProperty(x,"__esModule",{value:!0}),x.gridBeanDestroyComparator=x.gridBeanInitComparator=void 0;let p=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","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((M,A)=>[M,A]));x.gridBeanInitComparator=function(M,A){var F,D;return((F=M.beanName?p[M.beanName]:void 0)!=null?F:Number.MAX_SAFE_INTEGER)-((D=A.beanName?p[A.beanName]:void 0)!=null?D:Number.MAX_SAFE_INTEGER)},x.gridBeanDestroyComparator=function(M,A){return(M==null?void 0:M.beanName)==="gridDestroySvc"?-1:0}},1310:function(ne,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.CsvCreator=void 0;let M=p(7331),A=p(3885),F=p(7764),D=p(2927);class f extends M.BaseCreator{constructor(){super(...arguments),this.beanName="csvCreator"}wireBeans(u){this.colModel=u.colModel,this.colNames=u.colNames,this.rowGroupColsSvc=u.rowGroupColsSvc,this.valueSvc=u.valueSvc}getMergedParams(u){let s=this.gos.get("defaultCsvExportParams");return Object.assign({},s,u)}export(u){if(this.isExportSuppressed())return void(0,F._warn)(51);let s=this.getMergedParams(u),r=this.getData(s),d=new Blob(["\uFEFF",r],{type:"text/plain"}),g=typeof s.fileName=="function"?s.fileName(this.gos.getGridCommonParams()):s.fileName;(0,A._downloadFile)(this.getFileName(g),d)}exportDataAsCsv(u){this.export(u)}getDataAsCsv(u,s=!1){let r=s?Object.assign({},u):this.getMergedParams(u);return this.getData(r)}getDefaultFileExtension(){return"csv"}createSerializingSession(u){let{colModel:s,colNames:r,rowGroupColsSvc:d,valueSvc:g,gos:m}=this,{processCellCallback:b,processHeaderCallback:w,processGroupHeaderCallback:k,processRowGroupCallback:R,suppressQuotes:T,columnSeparator:z}=u;return new D.CsvSerializingSession({colModel:s,colNames:r,valueSvc:g,gos:m,processCellCallback:b||void 0,processHeaderCallback:w||void 0,processGroupHeaderCallback:k||void 0,processRowGroupCallback:R||void 0,suppressQuotes:T||!1,columnSeparator:z||",",rowGroupColsSvc:d})}isExportSuppressed(){return this.gos.get("suppressCsvExport")}}x.CsvCreator=f},2984:function(ne,x){Object.defineProperty(x,"__esModule",{value:!0}),x.exportDataAsCsv=x.getDataAsCsv=void 0,x.getDataAsCsv=function(p,M){var A;return(A=p.csvCreator)==null?void 0:A.getDataAsCsv(M)},x.exportDataAsCsv=function(p,M){var A;(A=p.csvCreator)==null||A.exportDataAsCsv(M)}},9734:function(ne,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.CsvExportModule=void 0;let M=p(2728),A=p(7205),F=p(1310),D=p(2984);x.CsvExportModule={moduleName:"CsvExport",version:A.VERSION,beans:[F.CsvCreator],apiFunctions:{getDataAsCsv:D.getDataAsCsv,exportDataAsCsv:D.exportDataAsCsv},dependsOn:[M.SharedExportModule]}},2927:function(ne,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.CsvSerializingSession=void 0;let M=p(8376),A=p(7764);class F extends M.BaseGridSerializingSession{constructor(f){super(f),this.isFirstLine=!0,this.result="";let{suppressQuotes:v,columnSeparator:u}=f;this.suppressQuotes=v,this.columnSeparator=u}addCustomContent(f){f&&(typeof f=="string"?(/^\s*\n/.test(f)||this.beginNewLine(),f=f.replace(/\r?\n/g,`\r
`),this.result+=f):f.forEach(v=>{this.beginNewLine(),v.forEach((u,s)=>{s!==0&&(this.result+=this.columnSeparator),this.result+=this.putInQuotes(u.data.value||""),u.mergeAcross&&this.appendEmptyCells(u.mergeAcross)})}))}onNewHeaderGroupingRow(){return this.beginNewLine(),{onColumn:this.onNewHeaderGroupingRowColumn.bind(this)}}onNewHeaderGroupingRowColumn(f,v,u,s){u!=0&&(this.result+=this.columnSeparator),this.result+=this.putInQuotes(v),this.appendEmptyCells(s)}appendEmptyCells(f){for(let v=1;v<=f;v++)this.result+=this.columnSeparator+this.putInQuotes("")}onNewHeaderRow(){return this.beginNewLine(),{onColumn:this.onNewHeaderRowColumn.bind(this)}}onNewHeaderRowColumn(f,v){v!=0&&(this.result+=this.columnSeparator),this.result+=this.putInQuotes(this.extractHeaderValue(f))}onNewBodyRow(){return this.beginNewLine(),{onColumn:this.onNewBodyRowColumn.bind(this)}}onNewBodyRowColumn(f,v,u){var r;v!=0&&(this.result+=this.columnSeparator);let s=this.extractRowCellValue(f,v,v,"csv",u);this.result+=this.putInQuotes((r=s.valueFormatted)!=null?r:s.value)}putInQuotes(f){if(this.suppressQuotes)return f;if(f==null)return'""';let v;return typeof f=="string"?v=f:typeof f.toString=="function"?v=f.toString():((0,A._warn)(53),v=""),'"'+v.replace(/"/g,'""')+'"'}parse(){return this.result}beginNewLine(){this.isFirstLine||(this.result+=`\r
`),this.isFirstLine=!1}}x.CsvSerializingSession=F},20:function(ne,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.CtrlsService=void 0;let M=p(8731);class A extends M.BeanStub{constructor(){super(...arguments),this.beanName="ctrlsSvc",this.params={},this.ready=!1,this.readyCallbacks=[]}postConstruct(){var D,f,v;this.addEventListener("ready",()=>{this.updateReady(),this.ready&&(this.readyCallbacks.forEach(u=>u(this.params)),this.readyCallbacks.length=0)},(v=(f=(D=this.beans.frameworkOverrides).runWhenReadyAsync)==null?void 0:f.call(D))!=null?v:!1)}updateReady(){let D=Object.values(this.params);this.ready=D.length===23&&D.every(f=>{var v;return(v=f==null?void 0:f.isAlive())!=null?v:!1})}whenReady(D,f){this.ready?f(this.params):this.readyCallbacks.push(f),D.addDestroyFunc(()=>{let v=this.readyCallbacks.indexOf(f);v>=0&&this.readyCallbacks.splice(v,1)})}register(D,f){this.params[D]=f,this.updateReady(),this.ready&&this.dispatchLocalEvent({type:"ready"}),f.addDestroyFunc(()=>{this.updateReady()})}get(D){return this.params[D]}getGridBodyCtrl(){return this.params.gridBodyCtrl}getHeaderRowContainerCtrls(){let{leftHeader:D,centerHeader:f,rightHeader:v}=this.params;return[D,v,f]}getHeaderRowContainerCtrl(D){let f=this.params;switch(D){case"left":return f.leftHeader;case"right":return f.rightHeader;default:return f.centerHeader}}getScrollFeature(){return this.getGridBodyCtrl().scrollFeature}}x.CtrlsService=A},2671:function(ne,x){Object.defineProperty(x,"__esModule",{value:!0}),x.dragAndDropImageComponentCSS=void 0,x.dragAndDropImageComponentCSS=".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}"},3814:function(ne,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.DragAndDropImageComponent=void 0;let M=p(3507),A=p(9970),F=p(7766),D=p(8020),f=p(2671);class v extends D.Component{constructor(){super(),this.dragSource=null,this.eIcon=D.RefPlaceholder,this.eLabel=D.RefPlaceholder,this.registerCSS(f.dragAndDropImageComponentCSS)}postConstruct(){let s=r=>(0,A._createIcon)(r,this.beans,null);this.dropIconMap={pinned:s("columnMovePin"),hide:s("columnMoveHide"),move:s("columnMoveMove"),left:s("columnMoveLeft"),right:s("columnMoveRight"),group:s("columnMoveGroup"),aggregate:s("columnMoveValue"),pivot:s("columnMovePivot"),notAllowed:s("dropNotAllowed")}}init(s){this.dragSource=s.dragSource,this.setTemplate(`<div class="ag-dnd-ghost ag-unselectable">
                <span data-ref="eIcon" class="ag-dnd-ghost-icon ag-shake-left-to-right"></span>
                <div data-ref="eLabel" class="ag-dnd-ghost-label"></div>
            </div>`)}destroy(){this.dragSource=null,super.destroy()}setIcon(s,r){let{eIcon:d,dragSource:g,dropIconMap:m,gos:b}=this;(0,M._clearElement)(d);let w=null;s||(s=g!=null&&g.getDefaultIconName?g.getDefaultIconName():"notAllowed"),w=m[s],d.classList.toggle("ag-shake-left-to-right",r),w===m.hide&&b.get("suppressDragLeaveHidesColumns")||w&&d.appendChild(w)}setLabel(s){this.eLabel.textContent=(0,F._escapeString)(s)}}x.DragAndDropImageComponent=v},2903:function(ne,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.DragAndDropService=x.DragSourceType=void 0;let M=p(2036),A=p(8731),F=p(8399),D=p(7274),f=p(1502),v=p(7764);var u;(function(r){r[r.ToolPanel=0]="ToolPanel",r[r.HeaderCell=1]="HeaderCell",r[r.RowDrag=2]="RowDrag",r[r.ChartPanel=3]="ChartPanel",r[r.AdvancedFilterBuilder=4]="AdvancedFilterBuilder"})(u||(x.DragSourceType=u={}));class s extends A.BeanStub{constructor(){super(...arguments),this.beanName="dragAndDrop",this.dragSourceAndParamsList=[],this.dropTargets=[]}wireBeans(d){this.ctrlsSvc=d.ctrlsSvc,this.dragSvc=d.dragSvc,this.environment=d.environment,this.userCompFactory=d.userCompFactory}addDragSource(d,g=!1){let m={eElement:d.eElement,dragStartPixels:d.dragStartPixels,onDragStart:this.onDragStart.bind(this,d),onDragStop:this.onDragStop.bind(this),onDragging:this.onDragging.bind(this),onDragCancel:this.onDragCancel.bind(this),includeTouch:g};this.dragSourceAndParamsList.push({params:m,dragSource:d}),this.dragSvc.addDragSource(m)}getDragAndDropImageComponent(){let{dragAndDropImageComp:d}=this;return d&&d.comp?d.comp:null}removeDragSource(d){let{dragSourceAndParamsList:g,dragSvc:m}=this,b=g.find(w=>w.dragSource===d);b&&(m.removeDragSource(b.params),(0,f._removeFromArray)(g,b))}destroy(){let{dragSourceAndParamsList:d,dragSvc:g,dropTargets:m}=this;d.forEach(b=>g.removeDragSource(b.params)),d.length=0,m.length=0,this.clearDragAndDropProperties(),super.destroy()}nudge(){this.dragging&&this.onDragging(this.eventLastTime,!0)}onDragStart(d,g){var m;this.dragging=!0,this.dragSource=d,this.eventLastTime=g,this.dragItem=d.getDragItem(),(m=d.onDragStarted)==null||m.call(d),this.createDragAndDropImageComponent()}onDragStop(d){var m,b;(b=(m=this.dragSource)==null?void 0:m.onDragStopped)==null||b.call(m);let{lastDropTarget:g}=this;if(g!=null&&g.onDragStop){let w=this.createDropTargetEvent(g,d,null,null,!1);g.onDragStop(w)}this.clearDragAndDropProperties()}onDragCancel(){var m;let{dragSource:d,lastDropTarget:g}=this;(m=d==null?void 0:d.onDragCancelled)==null||m.call(d),g!=null&&g.onDragCancel&&g.onDragCancel(this.createDropTargetEvent(g,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(d,g=!1){var U,X;let m=this.getHorizontalDirection(d),b=this.getVerticalDirection(d);this.eventLastTime=d,this.positionDragAndDropImageComp(d);let w=this.dropTargets.filter(Q=>this.isMouseOnDropTarget(d,Q)),k=this.findCurrentDropTarget(d,w),{lastDropTarget:R,dragSource:T,dragAndDropImageComp:z,dragItem:G}=this;if(k!==R){if(this.leaveLastTargetIfExists(d,m,b,g),R!==null&&k===null&&((U=T==null?void 0:T.onGridExit)==null||U.call(T,G)),R===null&&k!==null&&((X=T==null?void 0:T.onGridEnter)==null||X.call(T,G)),this.enterDragTargetIfExists(k,d,m,b,g),k&&z){let{comp:Q,promise:oe}=z;Q?Q.setIcon(k.getIconName?k.getIconName():null,!1):oe.then(le=>{le&&le.setIcon(k.getIconName?k.getIconName():null,!1)})}this.lastDropTarget=k}else if(k&&k.onDragging){let Q=this.createDropTargetEvent(k,d,m,b,g);k.onDragging(Q)}}getAllContainersFromDropTarget(d){let g=d.getSecondaryContainers?d.getSecondaryContainers():null,m=[[d.getContainer()]];return g?m.concat(g):m}isMouseOnDropTarget(d,g){let m=this.getAllContainersFromDropTarget(g),b=!1,w=(T,z)=>{for(let G of z){let{width:U,height:X,left:Q,right:oe,top:le,bottom:fe}=G.getBoundingClientRect();if(U===0||X===0)return!1;let ye=T.clientX>=Q&&T.clientX<oe,ke=T.clientY>=le&&T.clientY<fe;if(!ye||!ke)return!1}return!0};for(let T of m)if(w(d,T)){b=!0;break}let{eElement:k,type:R}=this.dragSource;return!(g.targetContainsSource&&!g.getContainer().contains(k))&&b&&g.isInterestedIn(R,k)}findCurrentDropTarget(d,g){let m=g.length;if(m===0)return null;if(m===1)return g[0];let b=(0,D._getRootNode)(this.beans).elementsFromPoint(d.clientX,d.clientY);for(let w of b)for(let k of g)if(this.getAllContainersFromDropTarget(k).flatMap(R=>R).indexOf(w)!==-1)return k;return null}enterDragTargetIfExists(d,g,m,b,w){if(d&&d.onDragEnter){let k=this.createDropTargetEvent(d,g,m,b,w);d.onDragEnter(k)}}leaveLastTargetIfExists(d,g,m,b){let{lastDropTarget:w}=this;if(!w)return;if(w.onDragLeave){let R=this.createDropTargetEvent(w,d,g,m,b);w.onDragLeave(R)}let k=this.getDragAndDropImageComponent();k&&k.setIcon(null,!1)}addDropTarget(d){this.dropTargets.push(d)}removeDropTarget(d){this.dropTargets=this.dropTargets.filter(g=>g.getContainer()!==d.getContainer())}hasExternalDropZones(){return this.dropTargets.some(d=>d.external)}findExternalZone(d){return this.dropTargets.filter(g=>g.external).find(g=>g.getContainer()===d.getContainer())||null}isDropZoneWithinThisGrid(d){let g=this.ctrlsSvc.getGridBodyCtrl().eGridBody,{dropZoneTarget:m}=d;return g.contains(m)}getHorizontalDirection(d){var b;let g=(b=this.eventLastTime)==null?void 0:b.clientX,m=d.clientX;return g===m?null:g>m?"left":"right"}getVerticalDirection(d){var b;let g=(b=this.eventLastTime)==null?void 0:b.clientY,m=d.clientY;return g===m?null:g>m?"up":"down"}createDropTargetEvent(d,g,m,b,w){let k=d.getContainer(),R=k.getBoundingClientRect(),{dragItem:T,dragSource:z,gos:G}=this,U=g.clientX-R.left,X=g.clientY-R.top;return G.addGridCommonParams({event:g,x:U,y:X,vDirection:b,hDirection:m,dragSource:z,fromNudge:w,dragItem:T,dropZoneTarget:k})}positionDragAndDropImageComp(d){let g=this.getDragAndDropImageComponent();g&&(0,D._anchorElementToMouseMoveEvent)(g.getGui(),d,this.beans)}removeDragAndDropImageComponent(){var g;let{dragAndDropImageComp:d}=this;if(d){let{comp:m}=d;if(m){let b=m.getGui();(g=this.dragAndDropImageParent)==null||g.removeChild(b),this.destroyBean(m)}}this.dragAndDropImageComp=null}createDragAndDropImageComponent(){let{dragSource:d}=this;if(!d)return;let g=(0,M._getDragAndDropImageCompDetails)(this.userCompFactory,{dragSource:d});if(!g)return;let m=g.newAgStackInstance();this.dragAndDropImageComp={promise:m},m.then(b=>{b&&this.isAlive()&&(this.processDragAndDropImageComponent(b),this.dragAndDropImageComp.comp=b)})}processDragAndDropImageComponent(d){let{dragSource:g,environment:m}=this;if(!g)return;let b=d.getGui();b.style.setProperty("position","absolute"),b.style.setProperty("z-index","9999"),(0,F._stampTopLevelGridCompWithGridInstance)(this.gos,b),m.applyThemeClasses(b),d.setIcon(null,!1);let{dragItemName:w}=g;typeof w=="function"&&(w=w()),d.setLabel(w||""),b.style.top="20px",b.style.left="20px";let k=(0,D._getPageBody)(this.beans);this.dragAndDropImageParent=k,k?k.appendChild(b):(0,v._warn)(54)}registerGridDropTarget(d,g){let m={getContainer:d,isInterestedIn:b=>b===u.HeaderCell||b===u.ToolPanel,getIconName:()=>"notAllowed"};this.addDropTarget(m),g.addDestroyFunc(()=>this.removeDropTarget(m))}}x.DragAndDropService=s},2830:function(ne,x){Object.defineProperty(x,"__esModule",{value:!0}),x.getRowDropZoneParams=x.removeRowDropZone=x.addRowDropZone=void 0,x.addRowDropZone=function(p,M){var A,F;(F=(A=p.rowDragSvc)==null?void 0:A.rowDragFeature)==null||F.addRowDropZone(M)},x.removeRowDropZone=function(p,M){var F,D;let A=(F=p.dragAndDrop)==null?void 0:F.findExternalZone(M);A&&((D=p.dragAndDrop)==null||D.removeDropTarget(A))},x.getRowDropZoneParams=function(p,M){var A,F;return(F=(A=p.rowDragSvc)==null?void 0:A.rowDragFeature)==null?void 0:F.getRowDropZone(M)}},4388:function(ne,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.HorizontalResizeModule=x.RowDragModule=x.SharedDragAndDropModule=x.DragAndDropModule=x.DragModule=void 0;let M=p(714),A=p(7205),F=p(3814),D=p(2903),f=p(2830),v=p(2165),u=p(6843),s=p(2895);x.DragModule={moduleName:"Drag",version:A.VERSION,beans:[v.DragService]},x.DragAndDropModule={moduleName:"DragAndDrop",version:A.VERSION,dynamicBeans:{dndSourceComp:M.DndSourceComp},icons:{rowDrag:"grip"}},x.SharedDragAndDropModule={moduleName:"SharedDragAndDrop",version:A.VERSION,beans:[D.DragAndDropService],dependsOn:[x.DragModule],userComponents:{agDragAndDropImage:F.DragAndDropImageComponent},icons:{columnMovePin:"pin",columnMoveHide:"eye-slash",columnMoveMove:"arrows",columnMoveLeft:"left",columnMoveRight:"right",columnMoveGroup:"group",columnMoveValue:"aggregation",columnMovePivot:"pivot",dropNotAllowed:"not-allowed",rowDrag:"grip"}},x.RowDragModule={moduleName:"RowDrag",version:A.VERSION,beans:[s.RowDragService],apiFunctions:{addRowDropZone:f.addRowDropZone,removeRowDropZone:f.removeRowDropZone,getRowDropZoneParams:f.getRowDropZoneParams},dependsOn:[x.SharedDragAndDropModule]},x.HorizontalResizeModule={moduleName:"HorizontalResize",version:A.VERSION,beans:[u.HorizontalResizeService],dependsOn:[x.DragModule]}},2165:function(ne,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.DragService=void 0;let M=p(9853),A=p(8731),F=p(8399),D=p(7274),f=p(1502),v=p(8667),u=p(3507),s=p(4422),r=p(3276);class d extends A.BeanStub{constructor(){super(...arguments),this.beanName="dragSvc",this.dragEndFunctions=[],this.dragSources=[]}destroy(){let{dragSources:m}=this;m.forEach(this.removeListener.bind(this)),m.length=0,super.destroy()}removeListener(m){let b=m.dragSource.eElement,w=m.mouseDownListener;if(b.removeEventListener("mousedown",w),m.touchEnabled){let k=m.touchStartListener;b.removeEventListener("touchstart",k,{passive:!0})}}removeDragSource(m){let{dragSources:b}=this,w=b.find(k=>k.dragSource===m);w&&(this.removeListener(w),(0,f._removeFromArray)(b,w))}addDragSource(m){let b=this.onMouseDown.bind(this,m),{eElement:w,includeTouch:k,stopPropagationForTouch:R}=m;w.addEventListener("mousedown",b);let T=null,z=this.gos.get("suppressTouch");k&&!z&&(T=G=>{(0,u._isFocusableFormField)(G.target)||(R&&G.stopPropagation(),this.onTouchStart(m,G))},w.addEventListener("touchstart",T,{passive:!1})),this.dragSources.push({dragSource:m,mouseDownListener:b,touchStartListener:T,touchEnabled:!!k})}onTouchStart(m,b){this.currentDragParams=m,this.dragging=!1;let w=b.touches[0];this.touchLastTime=w,this.touchStart=w;let k=z=>this.onTouchUp(z,m.eElement),R=b.target,T=[{target:(0,D._getRootNode)(this.beans),type:"touchmove",listener:z=>{z.cancelable&&z.preventDefault()},options:{passive:!1}},{target:R,type:"touchmove",listener:z=>this.onTouchMove(z,m.eElement),options:{passive:!0}},{target:R,type:"touchend",listener:k,options:{passive:!0}},{target:R,type:"touchcancel",listener:k,options:{passive:!0}}];this.addTemporaryEvents(T),m.dragStartPixels===0&&this.onCommonMove(w,this.touchStart,m.eElement)}onMouseDown(m,b){let w=b;if(m.skipMouseEvent&&m.skipMouseEvent(b)||w._alreadyProcessedByDragService||(w._alreadyProcessedByDragService=!0,b.button!==0))return;this.shouldPreventMouseEvent(b)&&b.preventDefault(),this.currentDragParams=m,this.dragging=!1,this.mouseStartEvent=b,this.startTarget=b.target;let k=(0,D._getRootNode)(this.beans),R=[{target:k,type:"mousemove",listener:T=>this.onMouseMove(T,m.eElement)},{target:k,type:"mouseup",listener:T=>this.onMouseUp(T,m.eElement)},{target:k,type:"contextmenu",listener:T=>T.preventDefault()},{target:k,type:"keydown",listener:T=>{T.key===M.KeyCode.ESCAPE&&this.cancelDrag(m.eElement)}}];this.addTemporaryEvents(R),m.dragStartPixels===0&&this.onMouseMove(b,m.eElement)}addTemporaryEvents(m){m.forEach(b=>{let{target:w,type:k,listener:R,options:T}=b;w.addEventListener(k,R,T)}),this.dragEndFunctions.push(()=>{m.forEach(b=>{let{target:w,type:k,listener:R,options:T}=b;w.removeEventListener(k,R,T)})})}isEventNearStartEvent(m,b){let{dragStartPixels:w}=this.currentDragParams,k=(0,s._exists)(w)?w:4;return(0,r._areEventsNear)(m,b,k)}getFirstActiveTouch(m){for(let b=0;b<m.length;b++)if(m[b].identifier===this.touchStart.identifier)return m[b];return null}onCommonMove(m,b,w){var k;if(!this.dragging){if(this.isEventNearStartEvent(m,b))return;if(this.dragging=!0,this.eventSvc.dispatchEvent({type:"dragStarted",target:w}),this.currentDragParams.onDragStart(b),!this.currentDragParams)return void(this.dragging=!1);this.currentDragParams.onDragging(b)}(k=this.currentDragParams)==null||k.onDragging(m)}onTouchMove(m,b){let w=this.getFirstActiveTouch(m.touches);w&&this.onCommonMove(w,this.touchStart,b)}onMouseMove(m,b){var w;(0,v._isBrowserSafari)()&&((w=(0,D._getDocument)(this.beans).getSelection())==null||w.removeAllRanges()),this.shouldPreventMouseEvent(m)&&m.preventDefault(),this.onCommonMove(m,this.mouseStartEvent,b)}shouldPreventMouseEvent(m){let{gos:b}=this,w=b.get("enableCellTextSelection"),k=m.type==="mousemove";return w&&k&&m.cancelable&&(0,F._isEventFromThisGrid)(b,m)&&!(R=>{let T=R.target,z=T==null?void 0:T.tagName.toLocaleLowerCase();return!!(z!=null&&z.match("^a$|textarea|input|select|button"))})(m)}onTouchUp(m,b){let w=this.getFirstActiveTouch(m.changedTouches);w||(w=this.touchLastTime),this.onUpCommon(w,b)}onMouseUp(m,b){this.onUpCommon(m,b)}onUpCommon(m,b){this.dragging&&(this.dragging=!1,this.currentDragParams.onDragStop(m),this.eventSvc.dispatchEvent({type:"dragStopped",target:b})),this.resetDragProperties()}cancelDrag(m){var b,w;this.eventSvc.dispatchEvent({type:"dragCancelled",target:m}),(w=(b=this.currentDragParams)==null?void 0:b.onDragCancel)==null||w.call(b),this.resetDragProperties()}resetDragProperties(){this.mouseStartEvent=null,this.startTarget=null,this.touchStart=null,this.touchLastTime=null,this.currentDragParams=null;let{dragEndFunctions:m}=this;m.forEach(b=>b()),m.length=0}}x.DragService=d},6843:function(ne,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.HorizontalResizeService=void 0;let M=p(8731);class A extends M.BeanStub{constructor(){super(...arguments),this.beanName="horizontalResizeSvc"}addResizeBar(D){let f={dragStartPixels:D.dragStartPixels||0,eElement:D.eResizeBar,onDragStart:this.onDragStart.bind(this,D),onDragStop:this.onDragStop.bind(this,D),onDragging:this.onDragging.bind(this,D),onDragCancel:this.onDragStop.bind(this,D),includeTouch:!0,stopPropagationForTouch:!0},{dragSvc:v}=this.beans;return v.addDragSource(f),()=>v.removeDragSource(f)}onDragStart(D,f){this.dragStartX=f.clientX,this.setResizeIcons();let v=f instanceof MouseEvent&&f.shiftKey===!0;D.onResizeStart(v)}setResizeIcons(){let D=this.beans.ctrlsSvc.get("gridCtrl");D.setResizeCursor(!0),D.disableUserSelect(!0)}onDragStop(D){D.onResizeEnd(this.resizeAmount),this.resetIcons()}resetIcons(){let D=this.beans.ctrlsSvc.get("gridCtrl");D.setResizeCursor(!1),D.disableUserSelect(!1)}onDragging(D,f){this.resizeAmount=f.clientX-this.dragStartX,D.onResizing(this.resizeAmount)}}x.HorizontalResizeService=A},1633:function(ne,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.RowDragComp=void 0;let M=p(8731),A=p(9970),F=p(8020),D=p(2903);class f extends F.Component{constructor(d,g,m,b,w,k){super(),this.cellValueFn=d,this.rowNode=g,this.column=m,this.customGui=b,this.dragStartPixels=w,this.suppressVisibilityChange=k,this.dragSource=null}isCustomGui(){return this.customGui!=null}postConstruct(){let{beans:d,rowNode:g,column:m,gos:b}=this;if(this.customGui?this.setDragElement(this.customGui,this.dragStartPixels):(this.setTemplate('<div class="ag-drag-handle ag-row-drag" aria-hidden="true"></div>'),this.getGui().appendChild((0,A._createIconNoSpan)("rowDrag",d,null)),this.addDragSource()),!this.suppressVisibilityChange){let w=b.get("rowDragManaged")?new s(this,g,m):new u(this,g,m);this.createManagedBean(w,this.beans.context)}}setDragElement(d,g){this.setTemplateFromElement(d,void 0,void 0,!0),this.addDragSource(g)}getSelectedNodes(){var m,b;let d=this.rowNode;if(!this.gos.get("rowDragMultiRow"))return[d];let g=(b=(m=this.beans.selectionSvc)==null?void 0:m.getSelectedNodes())!=null?b:[];return g.indexOf(d)!==-1?g:[d]}getDragItem(){let{column:d,rowNode:g}=this;return{rowNode:g,rowNodes:this.getSelectedNodes(),columns:d?[d]:void 0,defaultTextValue:this.cellValueFn()}}getRowDragText(d){if(d){let g=d.getColDef();if(g.rowDragText)return g.rowDragText}return this.gos.get("rowDragText")}addDragSource(d=4){this.dragSource&&this.removeDragSource();let g=this.getGui();this.gos.get("enableCellTextSelection")&&(this.removeMouseDownListener(),this.mouseDownListener=this.addManagedElementListeners(g,{mousedown:b=>{b==null||b.preventDefault()}})[0]);let m=this.getLocaleTextFunc();this.dragSource={type:D.DragSourceType.RowDrag,eElement:g,dragItemName:()=>{var R;let b=this.getDragItem(),w=((R=b.rowNodes)==null?void 0:R.length)||1,k=this.getRowDragText(this.column);return k?k(b,w):w===1?this.cellValueFn():`${w} ${m("rowDragRows","rows")}`},getDragItem:()=>this.getDragItem(),dragStartPixels:d,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)}}x.RowDragComp=f;class v extends M.BeanStub{constructor(d,g,m){super(),this.parent=d,this.rowNode=g,this.column=m}setDisplayedOrVisible(d){let g={skipAriaHidden:!0};if(d)this.parent.setDisplayed(!1,g);else{let m=!0,b=!1,{column:w,rowNode:k,parent:R}=this;w&&(m=w.isRowDrag(k)||R.isCustomGui(),b=typeof w.getColDef().rowDrag=="function"),b?(R.setDisplayed(!0,g),R.setVisible(m,g)):(R.setDisplayed(m,g),R.setVisible(!0,g))}}}class u extends v{postConstruct(){this.addManagedPropertyListener("suppressRowDrag",this.onSuppressRowDrag.bind(this));let d=this.workOutVisibility.bind(this);this.addManagedListeners(this.rowNode,{dataChanged:d,cellChanged:d}),this.addManagedListeners(this.beans.eventSvc,{newColumnsLoaded:d}),this.workOutVisibility()}onSuppressRowDrag(){this.workOutVisibility()}workOutVisibility(){let d=this.gos.get("suppressRowDrag");this.setDisplayedOrVisible(d)}}class s extends v{postConstruct(){let d=this.workOutVisibility.bind(this);this.addManagedListeners(this.beans.eventSvc,{sortChanged:d,filterChanged:d,columnRowGroupChanged:d,newColumnsLoaded:d}),this.addManagedListeners(this.rowNode,{dataChanged:d,cellChanged:d}),this.addManagedPropertyListener("suppressRowDrag",this.onSuppressRowDrag.bind(this)),this.workOutVisibility()}onSuppressRowDrag(){this.workOutVisibility()}workOutVisibility(){let{rowDragSvc:d,dragAndDrop:g,gos:m}=this.beans,b=d.rowDragFeature,w=b&&b.shouldPreventRowMove(),k=m.get("suppressRowDrag"),R=g.hasExternalDropZones(),T=w&&!R||k;this.setDisplayedOrVisible(T)}}},2254:function(ne,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.RowDragFeature=void 0;let M=p(5628),A=p(8731),F=p(6257),D=p(8399),f=p(7274),v=p(1502),u=p(7764),s=p(2903);class r extends A.BeanStub{constructor(g){super(),this.eContainer=g}postConstruct(){let{rowModel:g,gos:m,ctrlsSvc:b}=this.beans;(0,f._isClientSideRowModel)(m,g)&&(this.clientSideRowModel=g),b.whenReady(this,w=>{let k=w.gridBodyCtrl;this.autoScrollService=new M.AutoScrollService({scrollContainer:k.eBodyViewport,scrollAxis:"y",getVerticalPosition:()=>k.scrollFeature.getVScrollPosition().top,setVerticalPosition:R=>k.scrollFeature.setVerticalScrollPosition(R),onScrollCallback:()=>{this.onDragging(this.lastDraggingEvent)}})})}getContainer(){return this.eContainer}isInterestedIn(g){return g===s.DragSourceType.RowDrag}getIconName(){return this.gos.get("rowDragManaged")&&this.shouldPreventRowMove()?"notAllowed":"move"}shouldPreventRowMove(){var R;let{rowGroupColsSvc:g,filterManager:m,sortSvc:b}=this.beans;return((R=g==null?void 0:g.columns)!=null?R:[]).length||(m==null?void 0:m.isAnyFilterPresent())?!0:!!(b==null?void 0:b.isSortActive())}getRowNodes(g){var b,w;if(!this.isFromThisGrid(g))return g.dragItem.rowNodes||[];let m=g.dragItem.rowNode;if(this.gos.get("rowDragMultiRow")){let k=[...(w=(b=this.beans.selectionSvc)==null?void 0:b.getSelectedNodes())!=null?w:[]].sort((R,T)=>R.rowIndex==null||T.rowIndex==null?0:this.getRowIndexNumber(R)-this.getRowIndexNumber(T));if(k.indexOf(m)!==-1)return k}return[m]}onDragEnter(g){g.dragItem.rowNodes=this.getRowNodes(g),this.dispatchGridEvent("rowDragEnter",g),this.getRowNodes(g).forEach(m=>{this.setRowNodeDragging(m,!0)}),this.onEnterOrDragging(g)}onDragging(g){this.onEnterOrDragging(g)}isFromThisGrid(g){let{dragSourceDomDataKey:m}=g.dragSource;return m===this.gos.getDomDataKey()}onEnterOrDragging(g){this.dispatchGridEvent("rowDragMove",g),this.lastDraggingEvent=g;let m=(0,D._getNormalisedMousePosition)(this.beans,g).y;this.gos.get("rowDragManaged")&&this.doManagedDrag(g,m),this.autoScrollService.check(g.event)}doManagedDrag(g,m){let{dragAndDrop:b,gos:w}=this.beans,k=this.isFromThisGrid(g),R=w.get("rowDragManaged"),T=g.dragItem.rowNodes;R&&this.shouldPreventRowMove()||(w.get("suppressMoveWhenRowDragging")||!k?b.isDropZoneWithinThisGrid(g)&&this.clientSideRowModel.highlightRowAtPixel(T[0],m):this.moveRows(T,m))}getRowIndexNumber(g){let m=g.getRowIndexString();return parseInt((0,v._last)(m.split("-")),10)}moveRowAndClearHighlight(g){let m=this.clientSideRowModel,b=m.getLastHighlightedRowNode(),w=b&&b.highlighted==="Below",k=(0,D._getNormalisedMousePosition)(this.beans,g).y,R=g.dragItem.rowNodes,T=w?1:0;if(this.isFromThisGrid(g))R.forEach(z=>{z.rowTop<k&&(T-=1)}),this.moveRows(R,k,T);else{let z=(0,f._getRowIdCallback)(this.gos),G=m.getRowIndexAtPixel(k)+1;m.getHighlightPosition(k)==="Above"&&G--,m.updateRowData({add:R.filter(U=>{var X;return!m.getRowNode((X=z==null?void 0:z({data:U.data,level:0,rowPinned:U.rowPinned}))!=null?X:U.data.id)}).map(U=>U.data),addIndex:G})}this.clearRowHighlight()}clearRowHighlight(){this.clientSideRowModel.highlightRowAtPixel(null)}moveRows(g,m,b=0){let w=this.beans.focusSvc,k=w.getFocusedCell(),R=k&&(0,F._getCellByPosition)(this.beans,k);this.clientSideRowModel.ensureRowsAtPixel(g,m,b)&&(R?R.focusCell():w.clearFocusedCell())}addRowDropZone(g){if(!g.getContainer())return void(0,u._warn)(55);let m=this.beans.dragAndDrop;if(m.findExternalZone(g))return void(0,u._warn)(56);let b={getContainer:g.getContainer};g.fromGrid?b=g:(g.onDragEnter&&(b.onDragEnter=k=>{g.onDragEnter(this.draggingToRowDragEvent("rowDragEnter",k))}),g.onDragLeave&&(b.onDragLeave=k=>{g.onDragLeave(this.draggingToRowDragEvent("rowDragLeave",k))}),g.onDragging&&(b.onDragging=k=>{g.onDragging(this.draggingToRowDragEvent("rowDragMove",k))}),g.onDragStop&&(b.onDragStop=k=>{g.onDragStop(this.draggingToRowDragEvent("rowDragEnd",k))}),g.onDragCancel&&(b.onDragCancel=k=>{g.onDragCancel(this.draggingToRowDragEvent("rowDragCancel",k))}));let w=pe({isInterestedIn:k=>k===s.DragSourceType.RowDrag,getIconName:()=>"move",external:!0},b);m.addDropTarget(w),this.addDestroyFunc(()=>m.removeDropTarget(w))}getRowDropZone(g){let m=this.getContainer.bind(this),b=this.onDragEnter.bind(this),w=this.onDragLeave.bind(this),k=this.onDragging.bind(this),R=this.onDragStop.bind(this),T=this.onDragCancel.bind(this),z;return z=g?{getContainer:m,onDragEnter:g.onDragEnter?G=>{b(G),g.onDragEnter(this.draggingToRowDragEvent("rowDragEnter",G))}:b,onDragLeave:g.onDragLeave?G=>{w(G),g.onDragLeave(this.draggingToRowDragEvent("rowDragLeave",G))}:w,onDragging:g.onDragging?G=>{k(G),g.onDragging(this.draggingToRowDragEvent("rowDragMove",G))}:k,onDragStop:g.onDragStop?G=>{R(G),g.onDragStop(this.draggingToRowDragEvent("rowDragEnd",G))}:R,onDragCancel:g.onDragCancel?G=>{T(G),g.onDragCancel(this.draggingToRowDragEvent("rowDragCancel",G))}:T,fromGrid:!0}:{getContainer:m,onDragEnter:b,onDragLeave:w,onDragging:k,onDragStop:R,onDragCancel:T,fromGrid:!0},z}draggingToRowDragEvent(g,m){let b=this.beans,{pageBounds:w,rowModel:k,gos:R}=b,T=(0,D._getNormalisedMousePosition)(b,m).y,z,G=-1;return T>w.getCurrentPageHeight()||(G=k.getRowIndexAtPixel(T),z=k.getRow(G)),R.addGridCommonParams({type:g,event:m.event,node:m.dragItem.rowNode,nodes:m.dragItem.rowNodes,overIndex:G,overNode:z,y:T,vDirection:m.vDirection})}dispatchGridEvent(g,m){let b=this.draggingToRowDragEvent(g,m);this.eventSvc.dispatchEvent(b)}onDragLeave(g){this.dispatchGridEvent("rowDragLeave",g),this.stopDragging(g),this.gos.get("rowDragManaged")&&this.clearRowHighlight()}onDragStop(g){this.dispatchGridEvent("rowDragEnd",g),this.stopDragging(g);let{dragAndDrop:m,gos:b}=this.beans;b.get("rowDragManaged")&&(b.get("suppressMoveWhenRowDragging")||!this.isFromThisGrid(g))&&m.isDropZoneWithinThisGrid(g)&&this.moveRowAndClearHighlight(g)}onDragCancel(g){this.dispatchGridEvent("rowDragCancel",g),this.stopDragging(g);let{dragAndDrop:m,gos:b}=this.beans;b.get("rowDragManaged")&&(b.get("suppressMoveWhenRowDragging")||!this.isFromThisGrid(g))&&m.isDropZoneWithinThisGrid(g)&&this.clearRowHighlight()}stopDragging(g){this.autoScrollService.ensureCleared(),this.getRowNodes(g).forEach(m=>{this.setRowNodeDragging(m,!1)})}setRowNodeDragging(g,m){g.dragging!==m&&(g.dragging=m,g.dispatchRowEvent("draggingChanged"))}}x.RowDragFeature=r},2895:function(ne,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.RowDragService=void 0;let M=p(8731),A=p(7274),F=p(1633),D=p(2254);class f extends M.BeanStub{constructor(){super(...arguments),this.beanName="rowDragSvc"}setupRowDrag(u,s){let r=s.createManagedBean(new D.RowDragFeature(u)),d=this.beans.dragAndDrop;d.addDropTarget(r),s.addDestroyFunc(()=>d.removeDropTarget(r)),this.rowDragFeature=r}createRowDragComp(u,s,r,d,g,m){return new F.RowDragComp(u,s,r,d,g,m)}createRowDragCompForRow(u,s){if((0,A._isCellSelectionEnabled)(this.gos))return;let r=this.getLocaleTextFunc();return this.createRowDragComp(()=>`1 ${r("rowDragRow","row")}`,u,void 0,s,void 0,!0)}createRowDragCompForCell(u,s,r,d,g,m){let b=this.gos;if(!(b.get("rowDragManaged")&&(!(0,A._isClientSideRowModel)(b)||b.get("pagination"))))return this.createRowDragComp(r,u,s,d,g,m)}}x.RowDragService=f},6564:function(ne,x){Object.defineProperty(x,"__esModule",{value:!0}),x.cellEditingCSS=void 0,x.cellEditingCSS=".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;width:100%}}: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)}"},227:function(ne,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.CheckboxCellEditor=void 0;let M=p(5230),A=p(66),F=p(8020),D=p(3598);class f extends D.PopupComponent{constructor(){super(`
            <div class="ag-cell-wrapper ag-cell-edit-wrapper ag-checkbox-edit">
                <ag-checkbox role="presentation" data-ref="eCheckbox"></ag-checkbox>
            </div>`,[A.AgCheckboxSelector]),this.eCheckbox=F.RefPlaceholder}init(u){var d;this.params=u;let s=(d=u.value)!=null?d:void 0,r=this.eCheckbox;r.setValue(s),r.getInputElement().setAttribute("tabindex","-1"),this.setAriaLabel(s),this.addManagedListeners(r,{fieldValueChanged:g=>this.setAriaLabel(g.selected)})}getValue(){return this.eCheckbox.getValue()}focusIn(){this.eCheckbox.getFocusableElement().focus()}afterGuiAttached(){this.params.cellStartedEdit&&this.focusIn()}isPopup(){return!1}setAriaLabel(u){let s=this.getLocaleTextFunc(),r=(0,M._getAriaCheckboxStateName)(s,u),d=s("ariaToggleCellValue","Press SPACE to toggle cell value");this.eCheckbox.setInputAriaLabel(`${d} (${r})`)}}x.CheckboxCellEditor=f},5314:function(ne,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.DateCellEditor=void 0;let M=p(9827),A=p(4422),F=p(3611),D=p(5336);class f{getTemplate(){return'<ag-input-date-field class="ag-cell-editor" data-ref="eInput"></ag-input-date-field>'}getAgComponents(){return[F.AgInputDateFieldSelector]}init(s,r){this.eInput=s,this.params=r;let{min:d,max:g,step:m}=r;d!=null&&s.setMin(d),g!=null&&s.setMax(g),m!=null&&s.setStep(m)}getValue(){let{eInput:s,params:r}=this,d=s.getDate();return(0,A._exists)(d)||(0,A._exists)(r.value)?d!=null?d:null:r.value}getStartValue(){let{value:s}=this.params;if(s instanceof Date)return(0,M._serialiseDate)(s,!1)}}class v extends D.SimpleCellEditor{constructor(){super(new f)}}x.DateCellEditor=v},2059:function(ne,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.DateStringCellEditor=void 0;let M=p(9827),A=p(4422),F=p(3611),D=p(5336);class f{constructor(s){this.getDataTypeService=s}getTemplate(){return'<ag-input-date-field class="ag-cell-editor" data-ref="eInput"></ag-input-date-field>'}getAgComponents(){return[F.AgInputDateFieldSelector]}init(s,r){this.eInput=s,this.params=r;let{min:d,max:g,step:m}=r;d!=null&&s.setMin(d),g!=null&&s.setMax(g),m!=null&&s.setStep(m)}getValue(){let{params:s,eInput:r}=this,d=this.formatDate(r.getDate());return(0,A._exists)(d)||(0,A._exists)(s.value)?s.parseValue(d!=null?d:""):s.value}getStartValue(){var s,r;return(0,M._serialiseDate)((r=this.parseDate((s=this.params.value)!=null?s:void 0))!=null?r:null,!1)}parseDate(s){var d;let r=this.getDataTypeService();return r?r.getDateParserFunction(this.params.column)(s):(d=(0,M._parseDateTimeFromString)(s))!=null?d:void 0}formatDate(s){var d;let r=this.getDataTypeService();return r?r.getDateFormatterFunction(this.params.column)(s):(d=(0,M._serialiseDate)(s!=null?s:null,!1))!=null?d:void 0}}class v extends D.SimpleCellEditor{constructor(){super(new f(()=>this.beans.dataTypeSvc))}}x.DateStringCellEditor=v},4578:function(ne,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.LargeTextCellEditor=void 0;let M=p(9853),A=p(4422),F=p(6209),D=p(8020),f=p(3598);class v extends f.PopupComponent{constructor(){super(`<div class="ag-large-text">
        <ag-input-text-area data-ref="eTextArea" class="ag-large-text-input"></ag-input-text-area>
        </div>`,[F.AgInputTextAreaSelector]),this.eTextArea=D.RefPlaceholder}init(s){this.params=s,this.focusAfterAttached=s.cellStartedEdit,this.eTextArea.setMaxLength(s.maxLength||200).setCols(s.cols||60).setRows(s.rows||10),s.value!=null&&this.eTextArea.setValue(s.value.toString(),!0),this.addGuiEventListener("keydown",this.onKeyDown.bind(this)),this.activateTabIndex()}onKeyDown(s){let r=s.key;(r===M.KeyCode.LEFT||r===M.KeyCode.UP||r===M.KeyCode.RIGHT||r===M.KeyCode.DOWN||s.shiftKey&&r===M.KeyCode.ENTER)&&s.stopPropagation()}afterGuiAttached(){let s=this.getLocaleTextFunc();this.eTextArea.setInputAriaLabel(s("ariaInputEditor","Input Editor")),this.focusAfterAttached&&this.eTextArea.getFocusableElement().focus()}getValue(){let s=this.eTextArea.getValue(),r=this.params;return(0,A._exists)(s)||(0,A._exists)(r.value)?r.parseValue(s):r.value}}x.LargeTextCellEditor=v},4371:function(ne,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.NumberCellEditor=void 0;let M=p(9853),A=p(8667),F=p(4422),D=p(8792),f=p(5336);class v{getTemplate(){return'<ag-input-number-field class="ag-cell-editor" data-ref="eInput"></ag-input-number-field>'}getAgComponents(){return[D.AgInputNumberFieldSelector]}init(r,d){this.eInput=r,this.params=d;let{max:g,min:m,precision:b,step:w}=d;g!=null&&r.setMax(g),m!=null&&r.setMin(m),b!=null&&r.setPrecision(b),w!=null&&r.setStep(w);let k=r.getInputElement();d.preventStepping?r.addManagedElementListeners(k,{keydown:this.preventStepping}):d.showStepperButtons&&k.classList.add("ag-number-field-input-stepper")}preventStepping(r){r.key!==M.KeyCode.UP&&r.key!==M.KeyCode.DOWN||r.preventDefault()}getValue(){let{eInput:r,params:d}=this,g=r.getValue();if(!(0,F._exists)(g)&&!(0,F._exists)(d.value))return d.value;let m=d.parseValue(g);if(m==null)return m;if(typeof m=="string"){if(m==="")return null;m=Number(m)}return isNaN(m)?null:m}getStartValue(){return this.params.value}setCaret(){(0,A._isBrowserSafari)()&&this.eInput.getInputElement().focus({preventScroll:!0})}}class u extends f.SimpleCellEditor{constructor(){super(new v)}}x.NumberCellEditor=u},5609:function(ne,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.PopupEditorWrapper=void 0;let M=p(7274),A=p(6466),F=p(3598);class D extends F.PopupComponent{constructor(v){super('<div class="ag-popup-editor" tabindex="-1"/>'),this.params=v}postConstruct(){(0,M._setDomData)(this.gos,this.getGui(),"popupEditorWrapper",!0),this.addKeyDownListener()}addKeyDownListener(){let v=this.getGui(),u=this.params;this.addManagedElementListeners(v,{keydown:s=>{(0,A._isUserSuppressingKeyboardEvent)(this.gos,s,u.node,u.column,!0)||u.onKeyDown(s)}})}}x.PopupEditorWrapper=D},8774:function(ne,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.SelectCellEditor=void 0;let M=p(9853),A=p(4422),F=p(7764),D=p(159),f=p(8020),v=p(3598);class u extends v.PopupComponent{wireBeans(r){this.valueSvc=r.valueSvc}constructor(){super(`<div class="ag-cell-edit-wrapper">
                <ag-select class="ag-cell-editor" data-ref="eSelect"></ag-select>
            </div>`,[D.AgSelectSelector]),this.eSelect=f.RefPlaceholder,this.startedByEnter=!1}init(r){this.focusAfterAttached=r.cellStartedEdit;let{eSelect:d,valueSvc:g,gos:m}=this,{values:b,value:w,eventKey:k}=r;if((0,A._missing)(b))return void(0,F._warn)(58);this.startedByEnter=k!=null&&k===M.KeyCode.ENTER;let R=!1;b.forEach(U=>{let X={value:U},Q=g.formatValue(r.column,null,U),oe=Q!=null;X.text=oe?Q:U,d.addOption(X),R=R||w===U}),R?d.setValue(r.value,!0):r.values.length&&d.setValue(r.values[0],!0);let{valueListGap:T,valueListMaxWidth:z,valueListMaxHeight:G}=r;T!=null&&d.setPickerGap(T),G!=null&&d.setPickerMaxHeight(G),z!=null&&d.setPickerMaxWidth(z),m.get("editType")!=="fullRow"&&this.addManagedListeners(this.eSelect,{selectedItem:()=>r.stopEditing()})}afterGuiAttached(){this.focusAfterAttached&&this.eSelect.getFocusableElement().focus(),this.startedByEnter&&setTimeout(()=>{this.isAlive()&&this.eSelect.showPicker()})}focusIn(){this.eSelect.getFocusableElement().focus()}getValue(){return this.eSelect.getValue()}isPopup(){return!1}}x.SelectCellEditor=u},5336:function(ne,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.SimpleCellEditor=void 0;let M=p(9853),A=p(8667),F=p(8020),D=p(3598);class f extends D.PopupComponent{constructor(u){super(`
            <div class="ag-cell-edit-wrapper">
                ${u.getTemplate()}
            </div>`,u.getAgComponents()),this.cellEditorInput=u,this.eInput=F.RefPlaceholder}init(u){this.params=u;let{cellStartedEdit:s,eventKey:r,suppressPreventDefault:d}=u,g=this.eInput,m;this.cellEditorInput.init(g,u);let b=!0;s?(this.focusAfterAttached=!0,r===M.KeyCode.BACKSPACE||r===M.KeyCode.DELETE?m="":r&&r.length===1?d?b=!1:m=r:(m=this.cellEditorInput.getStartValue(),r!==M.KeyCode.F2&&(this.highlightAllOnFocus=!0))):(this.focusAfterAttached=!1,m=this.cellEditorInput.getStartValue()),b&&m!=null&&g.setStartValue(m),this.addManagedElementListeners(g.getGui(),{keydown:w=>{let{key:k}=w;k!==M.KeyCode.PAGE_UP&&k!==M.KeyCode.PAGE_DOWN||w.preventDefault()}})}afterGuiAttached(){var d,g;let u=this.getLocaleTextFunc(),s=this.eInput;if(s.setInputAriaLabel(u("ariaInputEditor","Input Editor")),!this.focusAfterAttached)return;(0,A._isBrowserSafari)()||s.getFocusableElement().focus();let r=s.getInputElement();this.highlightAllOnFocus?r.select():(g=(d=this.cellEditorInput).setCaret)==null||g.call(d)}focusIn(){let u=this.eInput,s=u.getFocusableElement(),r=u.getInputElement();s.focus(),r.select()}getValue(){return this.cellEditorInput.getValue()}isPopup(){return!1}}x.SimpleCellEditor=f},5457:function(ne,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.TextCellEditor=void 0;let M=p(4422),A=p(5946),F=p(5336);class D{getTemplate(){return'<ag-input-text-field class="ag-cell-editor" data-ref="eInput"></ag-input-text-field>'}getAgComponents(){return[A.AgInputTextFieldSelector]}init(u,s){this.eInput=u,this.params=s;let r=s.maxLength;r!=null&&u.setMaxLength(r)}getValue(){let{eInput:u,params:s}=this,r=u.getValue();return(0,M._exists)(r)||(0,M._exists)(s.value)?s.parseValue(r):s.value}getStartValue(){let u=this.params;return u.useFormatter||u.column.getColDef().refData?u.formatValue(u.value):u.value}setCaret(){let u=this.eInput,s=u.getValue(),r=(0,M._exists)(s)&&s.length||0;r&&u.getInputElement().setSelectionRange(r,r)}}class f extends F.SimpleCellEditor{constructor(){super(new D)}}x.TextCellEditor=f},89:function(ne,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.getCurrentRedoSize=x.getCurrentUndoSize=x.startEditingCell=x.stopEditing=x.getEditingCells=x.getCellEditorInstances=x.redoCellEditing=x.undoCellEditing=void 0;let M=p(1765),A=p(4126),F=p(6257),D=p(7274),f=p(7764);x.undoCellEditing=function(v){var u;(u=v.undoRedo)==null||u.undo("api")},x.redoCellEditing=function(v){var u;(u=v.undoRedo)==null||u.redo("api")},x.getCellEditorInstances=function(v,u={}){let s=[];return v.rowRenderer.getCellCtrls(u.rowNodes,u.columns).forEach(r=>{var g;let d=(g=r.comp)==null?void 0:g.getCellEditor();d&&s.push((0,A._unwrapUserComp)(d))}),s},x.getEditingCells=function(v){let u=[];return v.rowRenderer.getAllCellCtrls().forEach(s=>{if(s.editing){let{cellPosition:r}=s;u.push(r)}}),u},x.stopEditing=function(v,u=!1){var s;(s=v.editSvc)==null||s.stopAllEditing(u)},x.startEditingCell=function(v,u){let s=v.colModel.getCol(u.colKey);if(!s)return void(0,f._warn)(12,{colKey:u.colKey});let r={rowIndex:u.rowIndex,rowPinned:u.rowPinned||null,column:s};u.rowPinned==null&&(0,M.ensureIndexVisible)(v,u.rowIndex),(0,M.ensureColumnVisible)(v,u.colKey);let d=(0,F._getCellByPosition)(v,r);if(!d)return;let{focusSvc:g,gos:m,editSvc:b}=v,w=m.get("stopEditingWhenCellsLoseFocus")&&(()=>{let k=(0,D._getActiveDomElement)(v),R=d.eGui;return k!==R&&!!(R!=null&&R.contains(k))})();!w&&g.isCellFocused(r)||g.setFocusedCell(et(pe({},r),{forceBrowserFocus:w,preventScrollOnBrowserFocus:!0})),b==null||b.startRowOrCellEdit(d,u.key)},x.getCurrentUndoSize=function(v){var u,s;return(s=(u=v.undoRedo)==null?void 0:u.getCurrentUndoStackSize())!=null?s:0},x.getCurrentRedoSize=function(v){var u,s;return(s=(u=v.undoRedo)==null?void 0:u.getCurrentRedoStackSize())!=null?s:0}},4652:function(ne,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.CustomEditorModule=x.LargeTextEditorModule=x.SelectEditorModule=x.CheckboxEditorModule=x.DateEditorModule=x.NumberEditorModule=x.TextEditorModule=x.UndoRedoEditModule=x.EditCoreModule=void 0;let M=p(7113),A=p(7205),F=p(3137),D=p(6564),f=p(227),v=p(5314),u=p(2059),s=p(4578),r=p(4371),d=p(8774),g=p(5457),m=p(89),b=p(1277),w=p(6359);x.EditCoreModule={moduleName:"EditCore",version:A.VERSION,beans:[b.EditService,w.RowEditService],apiFunctions:{getCellEditorInstances:m.getCellEditorInstances,getEditingCells:m.getEditingCells,stopEditing:m.stopEditing,startEditingCell:m.startEditingCell},dependsOn:[F.PopupModule],css:[D.cellEditingCSS]},x.UndoRedoEditModule={moduleName:"UndoRedoEdit",version:A.VERSION,beans:[M.UndoRedoService],apiFunctions:{undoCellEditing:m.undoCellEditing,redoCellEditing:m.redoCellEditing,getCurrentUndoSize:m.getCurrentUndoSize,getCurrentRedoSize:m.getCurrentRedoSize},dependsOn:[x.EditCoreModule]},x.TextEditorModule={moduleName:"TextEditor",version:A.VERSION,userComponents:{agCellEditor:g.TextCellEditor,agTextCellEditor:g.TextCellEditor},dependsOn:[x.EditCoreModule]},x.NumberEditorModule={moduleName:"NumberEditor",version:A.VERSION,userComponents:{agNumberCellEditor:{classImp:r.NumberCellEditor,params:{suppressPreventDefault:!0}}},dependsOn:[x.EditCoreModule]},x.DateEditorModule={moduleName:"DateEditor",version:A.VERSION,userComponents:{agDateCellEditor:v.DateCellEditor,agDateStringCellEditor:u.DateStringCellEditor},dependsOn:[x.EditCoreModule]},x.CheckboxEditorModule={moduleName:"CheckboxEditor",version:A.VERSION,userComponents:{agCheckboxCellEditor:f.CheckboxCellEditor},dependsOn:[x.EditCoreModule]},x.SelectEditorModule={moduleName:"SelectEditor",version:A.VERSION,userComponents:{agSelectCellEditor:d.SelectCellEditor},dependsOn:[x.EditCoreModule]},x.LargeTextEditorModule={moduleName:"LargeTextEditor",version:A.VERSION,userComponents:{agLargeTextCellEditor:s.LargeTextCellEditor},dependsOn:[x.EditCoreModule]},x.CustomEditorModule={moduleName:"CustomEditor",version:A.VERSION,dependsOn:[x.EditCoreModule]}},1277:function(ne,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.EditService=void 0;let M=p(2036),A=p(9853),F=p(8731),D=p(8399),f=p(8667),v=p(5609);class u extends F.BeanStub{constructor(){super(...arguments),this.beanName="editSvc"}startEditing(d,g=null,m=!1,b=null){var G;if(!d.isCellEditable()||d.editing)return!0;if(!d.comp)return d.onCompAttachedFuncs.push(()=>{this.startEditing(d,g,m,b)}),!0;let w=this.createCellEditorParams(d,g,m),k=d.column.getColDef(),R=(0,M._getCellEditorDetails)(this.beans.userCompFactory,k,w),T=(R==null?void 0:R.popupFromSelector)!=null?R.popupFromSelector:!!k.cellEditorPopup,z=(R==null?void 0:R.popupPositionFromSelector)!=null?R.popupPositionFromSelector:k.cellEditorPopupPosition;return s(d,!0,R),d.comp.setEditDetails(R,T,z,this.gos.get("reactiveCustomComponents")),this.eventSvc.dispatchEvent(d.createEvent(b,"cellEditingStarted")),!((G=R==null?void 0:R.params)!=null&&G.suppressPreventDefault)}stopEditing(d,g=!1){if(d.onEditorAttachedFuncs=[],!d.editing)return!1;let{comp:m,column:b,rowNode:w}=d,{newValue:k,newValueExists:R}=function(G,U){let X={newValueExists:!1};if(G)return X;let Q=U.getCellEditor();return!Q||Q.isCancelAfterEnd&&Q.isCancelAfterEnd()?X:{newValue:Q.getValue(),newValueExists:!0}}(g,m),T=this.beans.valueSvc.getValueForDisplay(b,w),z=!1;return R&&(z=function(G,U,X,Q,oe){if(X===U)return!1;G.suppressRefreshCell=!0;let le=Q.setDataValue(oe,X,"edit");return G.suppressRefreshCell=!1,le}(d,T,k,w,b)),s(d,!1,void 0),m.setEditDetails(),d.updateAndFormatValue(!1),d.refreshCell({forceRefresh:!0,suppressFlash:!0}),this.eventSvc.dispatchEvent(et(pe({},d.createEvent(null,"cellEditingStopped")),{oldValue:T,newValue:k,valueChanged:z})),z}handleColDefChanged(d){var m;let g=(m=d.comp)==null?void 0:m.getCellEditor();if(g!=null&&g.refresh){let{eventKey:b,cellStartedEdit:w}=d.editCompDetails.params,k=this.createCellEditorParams(d,b,w),R=d.column.getColDef(),T=(0,M._getCellEditorDetails)(this.beans.userCompFactory,R,k);g.refresh(T.params)}}setFocusOutOnEditor(d){if(!d.editing)return;let g=d.comp.getCellEditor();g&&g.focusOut&&g.focusOut()}setFocusInOnEditor(d){if(!d.editing)return;let g=d.comp,m=g.getCellEditor();m!=null&&m.focusIn?m.focusIn():(d.focusCell(!0),d.onEditorAttachedFuncs.push(()=>{var b,w;return(w=(b=g.getCellEditor())==null?void 0:b.focusIn)==null?void 0:w.call(b)}))}stopEditingAndFocus(d,g=!1,m=!1){this.stopRowOrCellEdit(d),d.focusCell(!0),g||this.navigateAfterEdit(m,d.cellPosition)}createPopupEditorWrapper(d){return new v.PopupEditorWrapper(d)}stopAllEditing(d=!1){this.beans.rowRenderer.getAllRowCtrls().forEach(g=>this.stopRowEditing(g,d))}stopRowEditing(d,g=!1){var k;if(d.stoppingRowEdit)return;let m=d.getAllCellCtrls(),b=d.editing;d.stoppingRowEdit=!0;let w=!1;for(let R of m){let T=R.stopEditing(g);b&&!g&&!w&&T&&(w=!0)}w&&this.eventSvc.dispatchEvent(d.createRowEvent("rowValueChanged")),b&&((k=this.beans.rowEditSvc)==null||k.setEditing(d,!1)),d.stoppingRowEdit=!1}addStopEditingWhenGridLosesFocus(d){if(!this.gos.get("stopEditingWhenCellsLoseFocus"))return;let g=m=>{let b=m.relatedTarget;if((0,f._getTabIndex)(b)===null)return void this.stopAllEditing();let w=d.some(k=>k.contains(b))&&(0,D._isElementInThisGrid)(this.gos,b);if(!w){let k=this.beans.popupSvc;w=!!k&&(k.getActivePopups().some(R=>R.contains(b))||k.isElementWithinCustomPopup(b))}w||this.stopAllEditing()};d.forEach(m=>this.addManagedElementListeners(m,{focusout:g}))}setInlineEditingCss(d){let g=d.editing||d.getAllCellCtrls().some(m=>m.editing);d.forEachGui(void 0,m=>{m.rowComp.addOrRemoveCssClass("ag-row-inline-editing",g),m.rowComp.addOrRemoveCssClass("ag-row-not-inline-editing",!g)})}isCellEditable(d,g){if(g.group){if(this.gos.get("treeData")){if(!g.data&&!this.gos.get("enableGroupEdit"))return!1}else if(!this.gos.get("enableGroupEdit"))return!1}return d.isColumnFunc(g,d.colDef.editable)}startRowOrCellEdit(d,g,m=null){var b,w;return d.comp?this.gos.get("editType")==="fullRow"?(w=(b=this.beans.rowEditSvc)==null?void 0:b.startEditing(d.rowCtrl,g,d))!=null?w:!0:this.startEditing(d,g,!0,m):(d.onCompAttachedFuncs.push(()=>{this.startRowOrCellEdit(d,g,m)}),!0)}stopRowOrCellEdit(d,g=!1){this.gos.get("editType")==="fullRow"?this.stopRowEditing(d.rowCtrl,g):this.stopEditing(d,g)}createCellEditorParams(d,g,m){let{column:b,rowNode:w,eGui:k,cellPosition:{rowIndex:R}}=d,{valueSvc:T,gos:z}=this.beans;return z.addGridCommonParams({value:T.getValueForDisplay(b,w),eventKey:g,column:b,colDef:b.getColDef(),rowIndex:R,node:w,data:w.data,cellStartedEdit:m,onKeyDown:d.onKeyDown.bind(d),stopEditing:d.stopEditingAndFocus.bind(d),eGridCell:k,parseValue:G=>T.parseValue(b,w,G,d.value),formatValue:d.formatValue.bind(d)})}navigateAfterEdit(d,g){var m;if(this.gos.get("enterNavigatesVerticallyAfterEdit")){let b=d?A.KeyCode.UP:A.KeyCode.DOWN;(m=this.beans.navigation)==null||m.navigateToNextCell(null,b,g,!1)}}}function s(r,d,g){r.editCompDetails=g,r.editing!==d&&(r.editing=d)}x.EditService=u},6359:function(ne,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.RowEditService=void 0;let M=p(8731);class A extends M.BeanStub{constructor(){super(...arguments),this.beanName="rowEditSvc"}startEditing(D,f=null,v=null,u=null){if(D.editing)return!0;let s=!0,r=!1,{editSvc:d}=this.beans;return D.getAllCellCtrls().forEach(g=>{var b;let m=g===v;m?s=(b=d==null?void 0:d.startEditing(g,f,m,u))!=null?b:!0:d==null||d.startEditing(g,null,m,u),r||(r=g.editing)}),r&&this.setEditing(D,!0),s}setEditing(D,f){D.editing=f,D.forEachGui(void 0,u=>u.rowComp.addOrRemoveCssClass("ag-row-editing",f));let v=f?D.createRowEvent("rowEditingStarted"):D.createRowEvent("rowEditingStopped");this.eventSvc.dispatchEvent(v)}}x.RowEditService=A},3355:function(ne,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.AgColumn=x.isColumn=x.getNextColInstanceId=void 0;let M=p(8731),A=p(5889),F=p(4422),D=p(6996),f=p(7764),v={resizable:!0,sortable:!0},u=0;function s(){return u++}x.getNextColInstanceId=s,x.isColumn=function(d){return d instanceof r};class r extends M.BeanStub{constructor(g,m,b,w){super(),this.colDef=g,this.userProvidedColDef=m,this.colId=b,this.primary=w,this.isColumn=!0,this.instanceId=s(),this.autoHeaderHeight=null,this.moving=!1,this.menuVisible=!1,this.lastLeftPinned=!1,this.firstRightPinned=!1,this.filterActive=!1,this.colEventSvc=new A.LocalEventService,this.tooltipEnabled=!1,this.rowGroupActive=!1,this.pivotActive=!1,this.aggregationActive=!1,this.flex=null}getInstanceId(){return this.instanceId}setState(){let{colDef:g,beans:{sortSvc:m,pinnedCols:b,colFlex:w}}=this;m==null||m.initCol(this);let k=g.hide;this.visible=k!==void 0?!k:!g.initialHide,b==null||b.initCol(this),w==null||w.initCol(this)}setColDef(g,m,b){this.colDef=g,this.userProvidedColDef=m,this.initMinAndMaxWidths(),this.initDotNotation(),this.initTooltip(),this.dispatchColEvent("colDefChanged",b)}getUserProvidedColDef(){return this.userProvidedColDef}getParent(){return this.parent}getOriginalParent(){return this.originalParent}postConstruct(){this.setState(),this.initMinAndMaxWidths(),this.resetActualWidth("gridInitializing"),this.initDotNotation(),this.initTooltip()}initDotNotation(){let{gos:g,colDef:{field:m,tooltipField:b}}=this,w=g.get("suppressFieldDotNotation");this.fieldContainsDots=(0,F._exists)(m)&&m.indexOf(".")>=0&&!w,this.tooltipFieldContainsDots=(0,F._exists)(b)&&b.indexOf(".")>=0&&!w}initMinAndMaxWidths(){var m,b;let g=this.colDef;this.minWidth=(m=g.minWidth)!=null?m:this.beans.environment.getDefaultColumnMinWidth(),this.maxWidth=(b=g.maxWidth)!=null?b:Number.MAX_SAFE_INTEGER}initTooltip(){var g;(g=this.beans.tooltipSvc)==null||g.initCol(this)}resetActualWidth(g){let m=this.calculateColInitialWidth(this.colDef);this.setActualWidth(m,g,!0)}calculateColInitialWidth(g){let m,b=g.width,w=g.initialWidth;return m=b!=null?b:w!=null?w:200,Math.max(Math.min(m,this.maxWidth),this.minWidth)}isEmptyGroup(){return!1}isRowGroupDisplayed(g){var m,b;return(b=(m=this.beans.showRowGroupCols)==null?void 0:m.isRowGroupDisplayed(this,g))!=null?b:!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(g,m){var w,k,R,T;this.frameworkEventListenerService=(k=(w=this.beans.frameworkOverrides).createLocalEventListenerWrapper)==null?void 0:k.call(w,this.frameworkEventListenerService,this.colEventSvc);let b=(T=(R=this.frameworkEventListenerService)==null?void 0:R.wrap(m))!=null?T:m;this.colEventSvc.addEventListener(g,b)}removeEventListener(g,m){var w,k;let b=(k=(w=this.frameworkEventListenerService)==null?void 0:w.unwrap(m))!=null?k:m;this.colEventSvc.removeEventListener(g,b)}createColumnFunctionCallbackParams(g){return this.gos.addGridCommonParams({node:g,data:g.data,column:this,colDef:this.colDef})}isSuppressNavigable(g){var m,b;return(b=(m=this.beans.cellNavigation)==null?void 0:m.isSuppressNavigable(this,g))!=null?b:!1}isCellEditable(g){var m,b;return(b=(m=this.beans.editSvc)==null?void 0:m.isCellEditable(this,g))!=null?b:!1}isSuppressFillHandle(){return!!this.colDef.suppressFillHandle}isAutoHeight(){return!!this.colDef.autoHeight}isAutoHeaderHeight(){return!!this.colDef.autoHeaderHeight}isRowDrag(g){return this.isColumnFunc(g,this.colDef.rowDrag)}isDndSource(g){return this.isColumnFunc(g,this.colDef.dndSource)}isCellCheckboxSelection(g){var m,b;return(b=(m=this.beans.selectionSvc)==null?void 0:m.isCellCheckboxSelection(this,g))!=null?b:!1}isSuppressPaste(g){var m,b;return this.isColumnFunc(g,(b=(m=this.colDef)==null?void 0:m.suppressPaste)!=null?b:null)}isResizable(){return!!this.getColDefValue("resizable")}getColDefValue(g){var m;return(m=this.colDef[g])!=null?m:v[g]}isColumnFunc(g,m){return typeof m=="boolean"?m:typeof m=="function"?m(this.createColumnFunctionCallbackParams(g)):!1}createColumnEvent(g,m){return this.gos.addGridCommonParams({type:g,column:this,columns:[this],source:m})}isMoving(){return this.moving}getSort(){return this.sort}isSortable(){return!!this.getColDefValue("sortable")}isSortAscending(){return this.sort==="asc"}isSortDescending(){return this.sort==="desc"}isSortNone(){return(0,F._missing)(this.sort)}isSorting(){return(0,F._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(g,m){this.oldLeft=this.left,this.left!==g&&(this.left=g,this.dispatchColEvent("leftChanged",m))}isFilterActive(){return this.filterActive}isHovered(){var g;return(0,f._warn)(261),!!((g=this.beans.colHover)!=null&&g.isHovered(this))}setFirstRightPinned(g,m){this.firstRightPinned!==g&&(this.firstRightPinned=g,this.dispatchColEvent("firstRightPinnedChanged",m))}setLastLeftPinned(g,m){this.lastLeftPinned!==g&&(this.lastLeftPinned=g,this.dispatchColEvent("lastLeftPinnedChanged",m))}isFirstRightPinned(){return this.firstRightPinned}isLastLeftPinned(){return this.lastLeftPinned}isPinned(){return this.pinned==="left"||this.pinned==="right"}isPinnedLeft(){return this.pinned==="left"}isPinnedRight(){return this.pinned==="right"}getPinned(){return this.pinned}setVisible(g,m){let b=g===!0;this.visible!==b&&(this.visible=b,this.dispatchColEvent("visibleChanged",m)),this.dispatchStateUpdatedEvent("hide")}isVisible(){return this.visible}isSpanHeaderHeight(){return!this.getColDef().suppressSpanHeaderHeight}getColumnGroupPaddingInfo(){let g=this.getParent();if(!g||!g.isPadding())return{numberOfParents:0,isSpanningTotal:!1};let m=g.getPaddingLevel()+1,b=!0;for(;g;){if(!g.isPadding()){b=!1;break}g=g.getParent()}return{numberOfParents:m,isSpanningTotal:b}}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(g){let m=g!==this.autoHeaderHeight;return this.autoHeaderHeight=g,m}createBaseColDefParams(g){return this.gos.addGridCommonParams({node:g,data:g.data,colDef:this.colDef,column:this})}getColSpan(g){if((0,F._missing)(this.colDef.colSpan))return 1;let m=this.createBaseColDefParams(g),b=this.colDef.colSpan(m);return Math.max(b,1)}getRowSpan(g){if((0,F._missing)(this.colDef.rowSpan))return 1;let m=this.createBaseColDefParams(g),b=this.colDef.rowSpan(m);return Math.max(b,1)}setActualWidth(g,m,b=!1){g=Math.max(g,this.minWidth),g=Math.min(g,this.maxWidth),this.actualWidth!==g&&(this.actualWidth=g,this.flex&&m!=="flex"&&m!=="gridInitializing"&&(this.flex=null),b||this.fireColumnWidthChangedEvent(m)),this.dispatchStateUpdatedEvent("width")}fireColumnWidthChangedEvent(g){this.dispatchColEvent("widthChanged",g)}isGreaterThanMax(g){return g>this.maxWidth}getMinWidth(){return this.minWidth}getMaxWidth(){return this.maxWidth}getFlex(){return this.flex}isRowGroupActive(){return this.rowGroupActive}isPivotActive(){return this.pivotActive}isAnyFunctionActive(){return this.isPivotActive()||this.isRowGroupActive()||this.isValueActive()}isAnyFunctionAllowed(){return this.isAllowPivot()||this.isAllowRowGroup()||this.isAllowValue()}isValueActive(){return this.aggregationActive}isAllowPivot(){return this.colDef.enablePivot===!0}isAllowValue(){return this.colDef.enableValue===!0}isAllowRowGroup(){return this.colDef.enableRowGroup===!0}dispatchColEvent(g,m,b){let w=this.createColumnEvent(g,m);b&&(0,D._mergeDeep)(w,b),this.colEventSvc.dispatchEvent(w)}dispatchStateUpdatedEvent(g){this.colEventSvc.dispatchEvent({type:"columnStateUpdated",key:g})}}x.AgColumn=r},6908:function(ne,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.AgColumnGroup=x.isColumnGroup=x.createUniqueColumnGroupId=void 0;let M=p(8731),A=p(1502),F=p(3355);function D(u,s){return u+"_"+s}function f(u){return u instanceof v}x.createUniqueColumnGroupId=D,x.isColumnGroup=f;class v extends M.BeanStub{constructor(s,r,d,g){super(),this.providedColumnGroup=s,this.groupId=r,this.partId=d,this.pinned=g,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 D(this.groupId,this.partId)}isEmptyGroup(){return this.displayedChildren.length===0}isMoving(){let s=this.getProvidedColumnGroup().getLeafColumns();return!(!s||s.length===0)&&s.every(r=>r.isMoving())}checkLeft(){if(this.displayedChildren.forEach(s=>{f(s)&&s.checkLeft()}),this.displayedChildren.length>0)if(this.gos.get("enableRtl")){let s=(0,A._last)(this.displayedChildren).getLeft();this.setLeft(s)}else{let s=this.displayedChildren[0].getLeft();this.setLeft(s)}else this.setLeft(null)}getLeft(){return this.left}getOldLeft(){return this.oldLeft}setLeft(s){this.oldLeft=this.left,this.left!==s&&(this.left=s,this.dispatchLocalEvent({type:"leftChanged"}))}getPinned(){return this.pinned}getGroupId(){return this.groupId}getPartId(){return this.partId}getActualWidth(){var r;let s=0;return(r=this.displayedChildren)==null||r.forEach(d=>{s+=d.getActualWidth()}),s}isResizable(){if(!this.displayedChildren)return!1;let s=!1;return this.displayedChildren.forEach(r=>{r.isResizable()&&(s=!0)}),s}getMinWidth(){let s=0;return this.displayedChildren.forEach(r=>{s+=r.getMinWidth()}),s}addChild(s){this.children||(this.children=[]),this.children.push(s)}getDisplayedChildren(){return this.displayedChildren}getLeafColumns(){let s=[];return this.addLeafColumns(s),s}getDisplayedLeafColumns(){let s=[];return this.addDisplayedLeafColumns(s),s}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(s){this.providedColumnGroup.setExpanded(s)}isAutoHeaderHeight(){var s;return!!((s=this.getColGroupDef())!=null&&s.autoHeaderHeight)}getAutoHeaderHeight(){return this.autoHeaderHeight}setAutoHeaderHeight(s){let r=s!==this.autoHeaderHeight;return this.autoHeaderHeight=s,r}addDisplayedLeafColumns(s){this.displayedChildren.forEach(r=>{(0,F.isColumn)(r)?s.push(r):f(r)&&r.addDisplayedLeafColumns(s)})}addLeafColumns(s){this.children.forEach(r=>{(0,F.isColumn)(r)?s.push(r):f(r)&&r.addLeafColumns(s)})}getChildren(){return this.children}getColumnGroupShow(){return this.providedColumnGroup.getColumnGroupShow()}getProvidedColumnGroup(){return this.providedColumnGroup}getPaddingLevel(){let s=this.getParent();return this.isPadding()&&s&&s.isPadding()?1+s.getPaddingLevel():0}calculateDisplayedColumns(){this.displayedChildren=[];let s=this;for(;s!=null&&s.isPadding();)s=s.getParent();if(!(s&&s.getProvidedColumnGroup().isExpandable()))return this.displayedChildren=this.children,void this.dispatchLocalEvent({type:"displayedChildrenChanged"});this.children.forEach(r=>{if(!(f(r)&&(!r.displayedChildren||!r.displayedChildren.length)))switch(r.getColumnGroupShow()){case"open":s.getProvidedColumnGroup().isExpanded()&&this.displayedChildren.push(r);break;case"closed":s.getProvidedColumnGroup().isExpanded()||this.displayedChildren.push(r);break;default:this.displayedChildren.push(r)}}),this.dispatchLocalEvent({type:"displayedChildrenChanged"})}}x.AgColumnGroup=v},9409:function(ne,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.AgProvidedColumnGroup=x.isProvidedColumnGroup=void 0;let M=p(8731),A=p(3355);function F(f){return f instanceof D}x.isProvidedColumnGroup=F;class D extends M.BeanStub{constructor(v,u,s,r){super(),this.colGroupDef=v,this.groupId=u,this.padding=s,this.level=r,this.isColumn=!1,this.expandable=!1,this.instanceId=(0,A.getNextColInstanceId)(),this.expandableListenerRemoveCallback=null,this.expanded=!!(v!=null&&v.openByDefault)}destroy(){this.expandableListenerRemoveCallback&&this.reset(null,void 0),super.destroy()}reset(v,u){this.colGroupDef=v,this.level=u,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(v=>v.isVisible())}isPadding(){return this.padding}setExpanded(v){this.expanded=v!==void 0&&v,this.dispatchLocalEvent({type:"expandedChanged"})}isExpandable(){return this.expandable}isExpanded(){return this.expanded}getGroupId(){return this.groupId}getId(){return this.getGroupId()}setChildren(v){this.children=v}getChildren(){return this.children}getColGroupDef(){return this.colGroupDef}getLeafColumns(){let v=[];return this.addLeafColumns(v),v}addLeafColumns(v){this.children&&this.children.forEach(u=>{(0,A.isColumn)(u)?v.push(u):F(u)&&u.addLeafColumns(v)})}getColumnGroupShow(){let v=this.colGroupDef;if(v)return v.columnGroupShow}setupExpandable(){this.setExpandable(),this.expandableListenerRemoveCallback&&this.expandableListenerRemoveCallback();let v=this.onColumnVisibilityChanged.bind(this);this.getLeafColumns().forEach(u=>u.addEventListener("visibleChanged",v)),this.expandableListenerRemoveCallback=()=>{this.getLeafColumns().forEach(u=>u.removeEventListener("visibleChanged",v)),this.expandableListenerRemoveCallback=null}}setExpandable(){if(this.isPadding())return;let v=!1,u=!1,s=!1,r=this.findChildrenRemovingPadding();for(let g=0,m=r.length;g<m;g++){let b=r[g];if(!b.isVisible())continue;let w=b.getColumnGroupShow();w==="open"?(v=!0,s=!0):w==="closed"?(u=!0,s=!0):(v=!0,u=!0)}let d=v&&u&&s;this.expandable!==d&&(this.expandable=d,this.dispatchLocalEvent({type:"expandableChanged"}))}findChildrenRemovingPadding(){let v=[],u=s=>{s.forEach(r=>{F(r)&&r.isPadding()?u(r.children):v.push(r)})};return u(this.children),v}onColumnVisibilityChanged(){this.setExpandable()}}x.AgProvidedColumnGroup=D},5449:function(ne,x){Object.defineProperty(x,"__esModule",{value:!0}),x.DefaultColumnTypes=void 0,x.DefaultColumnTypes={numericColumn:{headerClass:"ag-right-aligned-header",cellClass:"ag-right-aligned-cell"},rightAligned:{headerClass:"ag-right-aligned-header",cellClass:"ag-right-aligned-cell"}}},6257:function(ne,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x._getCellByPosition=x._getRowNode=x._getLastRow=x._getFirstRow=x._isSameRow=x._isRowBefore=x._areCellsEqual=x._createCellId=void 0;let M=p(4422);x._createCellId=function(A){let{rowIndex:F,rowPinned:D,column:f}=A;return`${F}.${D==null?"null":D}.${f.getId()}`},x._areCellsEqual=function(A,F){let D=A.column===F.column,f=A.rowPinned===F.rowPinned,v=A.rowIndex===F.rowIndex;return D&&f&&v},x._isRowBefore=function(A,F){switch(A.rowPinned){case"top":if(F.rowPinned!=="top")return!0;break;case"bottom":if(F.rowPinned!=="bottom")return!1;break;default:if((0,M._exists)(F.rowPinned))return F.rowPinned!=="top"}return A.rowIndex<F.rowIndex},x._isSameRow=function(A,F){return!A&&!F||!(A&&!F||!A&&F)&&A.rowIndex===F.rowIndex&&A.rowPinned==F.rowPinned},x._getFirstRow=function(A){let F,D=0,{pinnedRowModel:f,rowModel:v,pageBounds:u}=A;return f!=null&&f.getPinnedTopRowCount()?F="top":v.getRowCount()?(F=null,D=u.getFirstRow()):f!=null&&f.getPinnedBottomRowCount()&&(F="bottom"),F===void 0?null:{rowIndex:D,rowPinned:F}},x._getLastRow=function(A){let F,D=null,{pinnedRowModel:f,pageBounds:v}=A,u=f==null?void 0:f.getPinnedBottomRowCount(),s=f==null?void 0:f.getPinnedTopRowCount();return u?(D="bottom",F=u-1):A.rowModel.getRowCount()?(D=null,F=v.getLastRow()):s&&(D="top",F=s-1),F===void 0?null:{rowIndex:F,rowPinned:D}},x._getRowNode=function(A,F){var D,f;switch(F.rowPinned){case"top":return(D=A.pinnedRowModel)==null?void 0:D.getPinnedTopRow(F.rowIndex);case"bottom":return(f=A.pinnedRowModel)==null?void 0:f.getPinnedBottomRow(F.rowIndex);default:return A.rowModel.getRow(F.rowIndex)}},x._getCellByPosition=function(A,F){let D=A.rowRenderer.getRowByPosition(F);return D?D.getCellCtrl(F.column):null}},3373:function(ne,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.RowNode=x.ROW_ID_PREFIX_BOTTOM_PINNED=x.ROW_ID_PREFIX_TOP_PINNED=x.ROW_ID_PREFIX_ROW_GROUP=void 0;let M=p(7274),A=p(5889),F=p(7764);x.ROW_ID_PREFIX_ROW_GROUP="row-group-",x.ROW_ID_PREFIX_TOP_PINNED="t-",x.ROW_ID_PREFIX_BOTTOM_PINNED="b-";let D=0;x.RowNode=class{constructor(f){this.master=!1,this.detail=void 0,this.rowIndex=null,this.key=null,this.sourceRowIndex=-1,this.childrenMapped={},this.treeNode=null,this.treeNodeFlags=0,this.displayed=!1,this.rowTop=null,this.oldRowTop=null,this.selectable=!0,this.__objectId=D++,this.alreadyRendered=!1,this.highlighted=null,this.hovered=!1,this.__selected=!1,this.beans=f}setData(f){this.setDataCommon(f,!1)}updateData(f){this.setDataCommon(f,!0)}setDataCommon(f,v){var r,d,g;let u=this.data;this.data=f,(r=this.beans.valueCache)==null||r.onDataChanged(),this.updateDataOnDetailNode(),(d=this.beans.selectionSvc)==null||d.updateRowSelectable(this),this.resetQuickFilterAggregateText();let s=this.createDataChangedEvent(f,u,v);(g=this.__localEventService)==null||g.dispatchEvent(s)}updateDataOnDetailNode(){this.detailNode&&(this.detailNode.data=this.data)}createDataChangedEvent(f,v,u){return{type:"dataChanged",node:this,oldData:v,newData:f,update:u}}getRowIndexString(){return this.rowIndex==null?((0,F._error)(13),null):this.rowPinned==="top"?x.ROW_ID_PREFIX_TOP_PINNED+this.rowIndex:this.rowPinned==="bottom"?x.ROW_ID_PREFIX_BOTTOM_PINNED+this.rowIndex:this.rowIndex.toString()}setDataAndId(f,v){var g,m;let{selectionSvc:u}=this.beans,s=(g=u==null?void 0:u.createDaemonNode)==null?void 0:g.call(u,this),r=this.data;this.data=f,this.updateDataOnDetailNode(),this.setId(v),u&&(u.updateRowSelectable(this),u.syncInRowNode(this,s));let d=this.createDataChangedEvent(f,r,!1);(m=this.__localEventService)==null||m.dispatchEvent(d)}setId(f){var u,s;let v=(0,M._getRowIdCallback)(this.beans.gos);if(v)if(this.data){let r=(s=(u=this.parent)==null?void 0:u.getRoute())!=null?s:[];this.id=v({data:this.data,parentKeys:r.length>0?r:void 0,level:this.level,rowPinned:this.rowPinned}),this.id.startsWith(x.ROW_ID_PREFIX_ROW_GROUP)&&(0,F._error)(14,{groupPrefix:x.ROW_ID_PREFIX_ROW_GROUP})}else this.id=void 0;else this.id=f}setRowTop(f){this.oldRowTop=this.rowTop,this.rowTop!==f&&(this.rowTop=f,this.dispatchRowEvent("topChanged"),this.setDisplayed(f!==null))}clearRowTopAndRowIndex(){this.oldRowTop=null,this.setRowTop(null),this.setRowIndex(null)}setHovered(f){this.hovered=f}isHovered(){return this.hovered}setRowHeight(f,v=!1){this.rowHeight=f,this.rowHeightEstimated=v,this.dispatchRowEvent("heightChanged")}setExpanded(f,v,u){var s;(s=this.beans.expansionSvc)==null||s.setExpanded(this,f,v,u)}setDataValue(f,v,u){var k;let{colModel:s,valueSvc:r,gos:d,selectionSvc:g}=this.beans,m=typeof f!="string"?f:(k=s.getCol(f))!=null?k:s.getColDefCol(f);if(!m)return!1;let b=r.getValueForDisplay(m,this);if(d.get("readOnlyEdit")){let{beans:{eventSvc:R},data:T,rowIndex:z,rowPinned:G}=this;return R.dispatchEvent({type:"cellEditRequest",event:null,rowIndex:z,rowPinned:G,column:m,colDef:m.colDef,data:T,node:this,oldValue:b,newValue:v,value:v,source:u}),!1}let w=r.setValue(this,m,v,u);return this.dispatchCellChangedEvent(m,v,b),g==null||g.updateRowSelectable(this),w}updateHasChildren(){let f=this.group&&!this.footer||this.childrenAfterGroup&&this.childrenAfterGroup.length>0,{rowChildrenSvc:v}=this.beans;v&&(f=v.getHasChildrenValue(this)),f!==this.__hasChildren&&(this.__hasChildren=!!f,this.dispatchRowEvent("hasChildrenChanged"))}hasChildren(){return this.__hasChildren==null&&this.updateHasChildren(),this.__hasChildren}dispatchCellChangedEvent(f,v,u){var r;let s={type:"cellChanged",node:this,column:f,newValue:v,oldValue:u};(r=this.__localEventService)==null||r.dispatchEvent(s)}resetQuickFilterAggregateText(){this.quickFilterAggregateText=null}isExpandable(){var f,v;return(v=(f=this.beans.expansionSvc)==null?void 0:f.isExpandable(this))!=null?v:!1}isSelected(){return this.footer?this.sibling.isSelected():this.__selected}depthFirstSearch(f){var v;(v=this.childrenAfterGroup)==null||v.forEach(u=>u.depthFirstSearch(f)),f(this)}dispatchRowEvent(f){var v;(v=this.__localEventService)==null||v.dispatchEvent({type:f,node:this})}setSelected(f,v=!1,u="api"){var s;(s=this.beans.selectionSvc)==null||s.setNodesSelected({nodes:[this],newValue:f,clearSelection:v,source:u})}isRowPinned(){return!!this.rowPinned}addEventListener(f,v){var s,r,d,g,m;(s=this.beans.validation)==null||s.checkRowEvents(f),this.__localEventService||(this.__localEventService=new A.LocalEventService),this.frameworkEventListenerService=(d=(r=this.beans.frameworkOverrides).createLocalEventListenerWrapper)==null?void 0:d.call(r,this.frameworkEventListenerService,this.__localEventService);let u=(m=(g=this.frameworkEventListenerService)==null?void 0:g.wrap(v))!=null?m:v;this.__localEventService.addEventListener(f,u)}removeEventListener(f,v){var s,r;if(!this.__localEventService)return;let u=(r=(s=this.frameworkEventListenerService)==null?void 0:s.unwrap(v))!=null?r:v;this.__localEventService.removeEventListener(f,u),this.__localEventService.noRegisteredListenersExist()&&(this.__localEventService=null)}isFullWidthCell(){if((0,F._warn)(61),this.detail)return!0;let f=this.beans.gos.getCallback("isFullWidthRow");return!!f&&f({rowNode:this})}getRoute(){if(this.level===-1)return[];if(this.key==null)return;let f=[],v=this;for(;v&&v.key!=null;)f.push(v.key),v=v.parent;return f.reverse()}setFirstChild(f){this.firstChild!==f&&(this.firstChild=f,this.dispatchRowEvent("firstChildChanged"))}setDisplayed(f){this.displayed!==f&&(this.displayed=f,this.dispatchRowEvent("displayedChanged"))}setRowIndex(f){this.rowIndex!==f&&(this.rowIndex=f,this.dispatchRowEvent("rowIndexChanged"))}setAllChildrenCount(f){this.allChildrenCount!==f&&(this.allChildrenCount=f,this.dispatchRowEvent("allChildrenCountChanged"))}setUiLevel(f){this.uiLevel!==f&&(this.uiLevel=f,this.dispatchRowEvent("uiLevelChanged"))}}},9888:function(ne,x){Object.defineProperty(x,"__esModule",{value:!0}),x._createGlobalRowEvent=void 0,x._createGlobalRowEvent=function(p,M,A){return M.addGridCommonParams({type:A,node:p,data:p.data,rowIndex:p.rowIndex,rowPinned:p.rowPinned})}},9024:function(ne,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.Environment=void 0;let M=p(8731),A=p(9621),F=p(8951),D=p(2525),f=p(3507),v=p(7764),u={cssName:"--ag-row-height",changeKey:"rowHeightChanged",defaultValue:42},s={cssName:"--ag-header-height",changeKey:"headerHeightChanged",defaultValue:48},r={cssName:"--ag-list-item-height",changeKey:"listItemHeightChanged",defaultValue:24},d={cssName:"--ag-row-border",changeKey:"rowBorderWidthChanged",defaultValue:1,border:!0},g=0;class m extends M.BeanStub{constructor(){super(...arguments),this.beanName="environment",this.sizeEls=new Map,this.lastKnownValues=new Map,this.sizesMeasured=!1,this.paramsClass="ag-theme-params-"+ ++g,this.globalCSS=[]}wireBeans(k){this.eGridDiv=k.eGridDiv}postConstruct(){this.addManagedPropertyListener("theme",()=>this.handleThemeGridOptionChange()),this.handleThemeGridOptionChange(),this.addManagedPropertyListener("rowHeight",()=>this.refreshRowHeightVariable()),this.getSizeEl(u),this.getSizeEl(s),this.getSizeEl(r),this.getSizeEl(d),this.refreshRowBorderWidthVariable(),this.addDestroyFunc(()=>(0,F._unregisterGridUsingThemingAPI)(this))}getDefaultRowHeight(){return this.getCSSVariablePixelValue(u)}getDefaultHeaderHeight(){return this.getCSSVariablePixelValue(s)}getDefaultColumnMinWidth(){return Math.min(36,this.getDefaultRowHeight())}getDefaultListItemHeight(){return this.getCSSVariablePixelValue(r)}getRowBorderWidth(){return this.getCSSVariablePixelValue(d)}applyThemeClasses(k){let{gridTheme:R}=this,T="";if(R)T=`${this.paramsClass} ${R._getCssClass()}`;else{let z=this.eGridDiv;for(;z;){for(let G of Array.from(z.classList))G.startsWith("ag-theme-")&&(T=T?`${T} ${G}`:G);z=z.parentElement}}for(let z of Array.from(k.classList))z.startsWith("ag-theme-")&&k.classList.remove(z);if(T){let z=k.className;k.className=z+(z?" ":"")+T}}refreshRowHeightVariable(){let{eGridDiv:k}=this,R=k.style.getPropertyValue("--ag-line-height").trim(),T=this.gos.get("rowHeight");if(T==null||isNaN(T)||!isFinite(T))return R!==null&&k.style.setProperty("--ag-line-height",null),-1;let z=`${T}px`;return R!=z?(k.style.setProperty("--ag-line-height",z),T):R!=""?parseFloat(R):-1}addGlobalCSS(k,R){this.gridTheme?(0,F._injectGlobalCSS)(k,this.eGridDiv,R):this.globalCSS.push([k,R])}getCSSVariablePixelValue(k){let R=this.lastKnownValues.get(k);if(R!=null)return R;let T=this.measureSizeEl(k);return T==="detached"||T==="no-styles"?k.defaultValue:(this.lastKnownValues.set(k,T),T)}measureSizeEl(k){let R=this.getSizeEl(k);if(R.offsetParent==null)return"detached";let T=R.offsetWidth;return T===b?"no-styles":(this.sizesMeasured=!0,T)}getMeasurementContainer(){let k=this.eMeasurementContainer;return k||(k=this.eMeasurementContainer=document.createElement("div"),k.className="ag-measurement-container",this.eGridDiv.appendChild(k)),k}getSizeEl(k){let R=this.sizeEls.get(k);if(R)return R;let T=this.getMeasurementContainer();R=document.createElement("div");let{border:z}=k;z?(R.className="ag-measurement-element-border",R.style.setProperty("--ag-internal-measurement-border",`var(${k.cssName}, solid ${b}px`)):R.style.width=`var(${k.cssName}, ${b}px)`,T.appendChild(R),this.sizeEls.set(k,R);let G=this.measureSizeEl(k);G==="no-styles"&&(0,v._warn)(9,{variable:k});let U=(0,f._observeResize)(this.beans,R,()=>{let X=this.measureSizeEl(k);X!=="detached"&&X!=="no-styles"&&(this.lastKnownValues.set(k,X),X!==G&&(G=X,this.fireGridStylesChangedEvent(k.changeKey)))});return this.addDestroyFunc(()=>U()),R}fireGridStylesChangedEvent(k){k==="rowBorderWidthChanged"&&this.refreshRowBorderWidthVariable(),this.eventSvc.dispatchEvent({type:"gridStylesChanged",[k]:!0})}refreshRowBorderWidthVariable(){let k=this.getCSSVariablePixelValue(d);this.eGridDiv.style.setProperty("--ag-internal-row-border-width",`${k}px`)}handleThemeGridOptionChange(){let{gos:k,eGridDiv:R,globalCSS:T,gridTheme:z}=this,G=k.get("theme"),U;if(G==="legacy")U=void 0;else{let X=G!=null?G:D.themeQuartz;X instanceof A.ThemeImpl?U=X:(0,v._error)(240,{theme:X})}if(U!==z){if(U){(0,F._registerGridUsingThemingAPI)(this),(0,F._injectCoreAndModuleCSS)(R);for(let[Q,oe]of T)(0,F._injectGlobalCSS)(Q,R,oe);T.length=0}this.gridTheme=U,U==null||U._startUse({loadThemeGoogleFonts:k.get("loadThemeGoogleFonts"),container:R});let X=this.eParamsStyle;X||(X=this.eParamsStyle=document.createElement("style"),R.appendChild(X)),F.IS_SSR||(X.textContent=(U==null?void 0:U._getPerGridCss(this.paramsClass))||""),this.applyThemeClasses(R),this.fireGridStylesChangedEvent("themeChanged")}U&&getComputedStyle(this.getMeasurementContainer()).getPropertyValue("--ag-legacy-styles-loaded")&&(G?(0,v._error)(106):(0,v._error)(239))}}x.Environment=m;let b=15538},8778:function(ne,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.EventService=void 0;let M=p(8731),A=p(5889);class F extends M.BeanStub{constructor(){super(...arguments),this.beanName="eventSvc",this.globalEventService=new A.LocalEventService}postConstruct(){let{globalListener:f,globalSyncListener:v}=this.beans;f&&this.addGlobalListener(f,!0),v&&this.addGlobalListener(v,!1)}addEventListener(f,v,u){this.globalEventService.addEventListener(f,v,u)}removeEventListener(f,v,u){this.globalEventService.removeEventListener(f,v,u)}addGlobalListener(f,v=!1){this.globalEventService.addGlobalListener(f,v)}removeGlobalListener(f,v=!1){this.globalEventService.removeGlobalListener(f,v)}dispatchLocalEvent(){}dispatchEvent(f){this.globalEventService.dispatchEvent(this.gos.addGridCommonParams(f))}dispatchEventOnce(f){this.globalEventService.dispatchEventOnce(this.gos.addGridCommonParams(f))}}x.EventService=F},3080:function(ne,x){Object.defineProperty(x,"__esModule",{value:!0}),x._ALL_EVENTS=x._INTERNAL_EVENTS=x._PUBLIC_EVENTS=void 0,x._PUBLIC_EVENTS=["columnEverythingChanged","newColumnsLoaded","columnPivotModeChanged","pivotMaxColumnsExceeded","columnRowGroupChanged","expandOrCollapseAll","columnPivotChanged","gridColumnsChanged","columnValueChanged","columnMoved","columnVisible","columnPinned","columnGroupOpened","columnResized","displayedColumnsChanged","virtualColumnsChanged","columnHeaderMouseOver","columnHeaderMouseLeave","columnHeaderClicked","columnHeaderContextMenu","asyncTransactionsFlushed","rowGroupOpened","rowDataUpdated","pinnedRowDataChanged","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","filterOpened","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"],x._INTERNAL_EVENTS=["scrollbarWidthChanged","keyShortcutChangedCellStart","keyShortcutChangedCellEnd","pinnedHeightChanged","cellFocusCleared","fullWidthRowFocused","checkboxChanged","heightScaleChanged","suppressMovableColumns","suppressMenuHide","suppressFieldDotNotation","columnPanelItemDragStart","columnPanelItemDragEnd","bodyHeightChanged","columnContainerWidthChanged","displayedColumnsWidthChanged","scrollVisibilityChanged","scrollGapChanged","columnHoverChanged","flashCells","paginationPixelOffsetChanged","displayedRowsChanged","leftPinnedWidthChanged","rightPinnedWidthChanged","rowContainerHeightChanged","headerHeightChanged","columnGroupHeaderHeightChanged","columnHeaderHeightChanged","gridStylesChanged","storeUpdated","filterDestroyed","rowDataUpdateStarted","rowCountReady","advancedFilterEnabledChanged","dataTypesInferred","fieldValueChanged","fieldPickerValueSelected","richSelectListRowSelected","sideBarUpdated","alignedGridScroll","alignedGridColumn","gridOptionsChanged","chartTitleEdit","recalculateRowBounds","stickyTopOffsetChanged","overlayExclusiveChanged","beforeRefreshModel"],x._ALL_EVENTS=[...x._PUBLIC_EVENTS,...x._INTERNAL_EVENTS]},7968:function(ne,x){Object.defineProperty(x,"__esModule",{value:!0}),x.ALWAYS_SYNC_GLOBAL_EVENTS=void 0,x.ALWAYS_SYNC_GLOBAL_EVENTS=new Set(["gridPreDestroyed","fillStart","pasteStart"])},7331:function(ne,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.BaseCreator=void 0;let M=p(8731);class A extends M.BeanStub{getFileName(D){let f=this.getDefaultFileExtension();return D!=null&&D.length||(D=this.getDefaultFileName()),D.indexOf(".")===-1?`${D}.${f}`:D}getData(D){let f=this.createSerializingSession(D);return this.beans.gridSerializer.serialize(f,D)}getDefaultFileName(){return`export.${this.getDefaultFileExtension()}`}}x.BaseCreator=A},8376:function(ne,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.BaseGridSerializingSession=void 0;let M=p(7274);x.BaseGridSerializingSession=class{constructor(A){this.groupColumns=[];let{colModel:F,rowGroupColsSvc:D,colNames:f,valueSvc:v,gos:u,processCellCallback:s,processHeaderCallback:r,processGroupHeaderCallback:d,processRowGroupCallback:g}=A;this.colModel=F,this.rowGroupColsSvc=D,this.colNames=f,this.valueSvc=v,this.gos=u,this.processCellCallback=s,this.processHeaderCallback=r,this.processGroupHeaderCallback=d,this.processRowGroupCallback=g}prepare(A){this.groupColumns=A.filter(F=>!!F.getColDef().showRowGroup)}extractHeaderValue(A){var F;return(F=this.getHeaderName(this.processHeaderCallback,A))!=null?F:""}extractRowCellValue(A,F,D,f,v){let u=this.gos.get("groupHideOpenParents")&&!v.footer||!this.shouldRenderGroupSummaryCell(v,A,F)?this.valueSvc.getValue(A,v):this.createValueForGroupNode(A,v);return this.processCell({accumulatedRowIndex:D,rowNode:v,column:A,value:u,processCellCallback:this.processCellCallback,type:f})}shouldRenderGroupSummaryCell(A,F,D){var v,u;if(!(A&&A.group))return!1;if(this.groupColumns.indexOf(F)!==-1){if(((v=A.groupData)==null?void 0:v[F.getId()])!==void 0||(0,M._isServerSideRowModel)(this.gos)&&A.group)return!0;if(A.footer&&A.level===-1){let s=F.getColDef();return s==null||s.showRowGroup===!0||s.showRowGroup===((u=this.rowGroupColsSvc)==null?void 0:u.columns[0].getId())}}let f=(0,M._isGroupUseEntireRow)(this.gos,this.colModel.isPivotMode());return D===0&&f}getHeaderName(A,F){return A?A(this.gos.addGridCommonParams({column:F})):this.colNames.getDisplayNameForColumn(F,"csv",!0)}createValueForGroupNode(A,F){if(this.processRowGroupCallback)return this.processRowGroupCallback(this.gos.addGridCommonParams({column:A,node:F}));let D=this.gos.get("treeData"),f=r=>{var g,m;if(D)return r.key;let d=(g=r.groupData)==null?void 0:g[A.getId()];return d&&r.rowGroupColumn&&r.rowGroupColumn.getColDef().useValueFormatterForExport!==!1&&(m=this.valueSvc.formatValue(r.rowGroupColumn,r,d))!=null?m:d},v=F.footer,u=[f(F)];if(!(0,M._isGroupMultiAutoColumn)(this.gos))for(;F.parent;)F=F.parent,u.push(f(F));let s=u.reverse().join(" -> ");return v?`Total ${s}`:s}processCell(A){var r;let{accumulatedRowIndex:F,rowNode:D,column:f,value:v,processCellCallback:u,type:s}=A;return u?{value:(r=u(this.gos.addGridCommonParams({accumulatedRowIndex:F,column:f,node:D,value:v,type:s,parseValue:d=>this.valueSvc.parseValue(f,D,d,this.valueSvc.getValue(f,D)),formatValue:d=>{var g;return(g=this.valueSvc.formatValue(f,D,d))!=null?g:d}})))!=null?r:""}:f.getColDef().useValueFormatterForExport!==!1?{value:v!=null?v:"",valueFormatted:this.valueSvc.formatValue(f,D,v)}:{value:v!=null?v:""}}}},3885:function(ne,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x._downloadFile=void 0;let M=p(7764);x._downloadFile=function(A,F){let D=document.defaultView||window;if(!D)return void(0,M._warn)(52);let f=document.createElement("a"),v=D.URL.createObjectURL(F);f.setAttribute("href",v),f.setAttribute("download",A),f.style.display="none",document.body.appendChild(f),f.dispatchEvent(new MouseEvent("click",{bubbles:!1,cancelable:!0,view:D})),document.body.removeChild(f),D.setTimeout(()=>{D.URL.revokeObjectURL(v)},0)}},2728:function(ne,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.SharedExportModule=void 0;let M=p(7205),A=p(826);x.SharedExportModule={moduleName:"SharedExport",version:M.VERSION,beans:[A.GridSerializer]}},826:function(ne,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.GridSerializer=void 0;let M=p(3146),A=p(6034),F=p(8731),D=p(6908),f=p(7274),v=p(1502);class u extends F.BeanStub{constructor(){super(...arguments),this.beanName="gridSerializer"}wireBeans(r){this.visibleCols=r.visibleCols,this.colModel=r.colModel,this.rowModel=r.rowModel,this.pinnedRowModel=r.pinnedRowModel}serialize(r,d={}){let{allColumns:g,columnKeys:m,skipRowGroups:b}=d,w=this.getColumnsToExport(g,b,m);return[this.prepareSession(w),this.prependContent(d),this.exportColumnGroups(d,w),this.exportHeaders(d,w),this.processPinnedTopRows(d,w),this.processRows(d,w),this.processPinnedBottomRows(d,w),this.appendContent(d)].reduce((k,R)=>R(k),r).parse()}processRow(r,d,g,m){var U;let b=d.shouldRowBeSkipped||(()=>!1),w=d.rowPositions!=null||!!d.onlySelected,k=this.gos.get("groupHideOpenParents")&&!w,R=this.colModel.isPivotMode()?m.leafGroup:!m.group,T=!!m.footer,z=m.allChildrenCount===1&&((U=m.childrenAfterGroup)==null?void 0:U.length)===1&&(0,f._canSkipShowingRowGroup)(this.gos,m);if(!R&&!T&&(d.skipRowGroups||z||k)||d.onlySelected&&!m.isSelected()||d.skipPinnedTop&&m.rowPinned==="top"||d.skipPinnedBottom&&m.rowPinned==="bottom"||m.level===-1&&!R&&!T||b(this.gos.addGridCommonParams({node:m})))return;let G=r.onNewBodyRow(m);if(g.forEach((X,Q)=>{G.onColumn(X,Q,m)}),d.getCustomContentBelowRow){let X=d.getCustomContentBelowRow(this.gos.addGridCommonParams({node:m}));X&&r.addCustomContent(X)}}appendContent(r){return d=>{let g=r.appendContent;return g&&d.addCustomContent(g),d}}prependContent(r){return d=>{let g=r.prependContent;return g&&d.addCustomContent(g),d}}prepareSession(r){return d=>(d.prepare(r),d)}exportColumnGroups(r,d){return g=>{if(!r.skipColumnGroupHeaders){let m=new A.GroupInstanceIdCreator,{colGroupSvc:b}=this.beans,w=b?b.createColumnGroups({columns:d,idCreator:m,pinned:null,isStandaloneStructure:!0}):d;this.recursivelyAddHeaderGroups(w,g,r.processGroupHeaderCallback)}return g}}exportHeaders(r,d){return g=>{if(!r.skipColumnHeaders){let m=g.onNewHeaderRow();d.forEach((b,w)=>{m.onColumn(b,w,void 0)})}return g}}processPinnedTopRows(r,d){return g=>{var b;let m=this.processRow.bind(this,g,r,d);return r.rowPositions?r.rowPositions.filter(w=>w.rowPinned==="top").sort((w,k)=>w.rowIndex-k.rowIndex).map(w=>{var k;return(k=this.pinnedRowModel)==null?void 0:k.getPinnedTopRow(w.rowIndex)}).forEach(m):(b=this.pinnedRowModel)==null||b.forEachPinnedRow("top",m),g}}processRows(r,d){return g=>{var z,G;let m=this.rowModel,b=(0,f._isClientSideRowModel)(this.gos,m),w=(0,f._isServerSideRowModel)(this.gos,m),k=!b&&r.onlySelected,R=this.processRow.bind(this,g,r,d),{exportedRows:T="filteredAndSorted"}=r;if(r.rowPositions)return r.rowPositions.filter(U=>U.rowPinned==null).sort((U,X)=>U.rowIndex-X.rowIndex).map(U=>m.getRow(U.rowIndex)).forEach(R),g;if(this.colModel.isPivotMode())return b?m.forEachPivotNode(R,!0):w?m.forEachNodeAfterFilterAndSort(R,!0):m.forEachNode(R),g;if(r.onlySelectedAllPages||k){let U=(G=(z=this.beans.selectionSvc)==null?void 0:z.getSelectedNodes())!=null?G:[];this.replicateSortedOrder(U),U.forEach(R)}else T==="all"?m.forEachNode(R):b||w?m.forEachNodeAfterFilterAndSort(R,!0):m.forEachNode(R);return g}}replicateSortedOrder(r){let{sortSvc:d,rowNodeSorter:g}=this.beans;if(!d||!g)return;let m=d.getSortOptions(),b=(w,k)=>{var R,T,z,G;return w.rowIndex!=null&&k.rowIndex!=null?w.rowIndex-k.rowIndex:w.level===k.level?((R=w.parent)==null?void 0:R.id)===((T=k.parent)==null?void 0:T.id)?g.compareRowNodes(m,{rowNode:w,currentPos:(z=w.rowIndex)!=null?z:-1},{rowNode:k,currentPos:(G=k.rowIndex)!=null?G:-1}):b(w.parent,k.parent):w.level>k.level?b(w.parent,k):b(w,k.parent)};r.sort(b)}processPinnedBottomRows(r,d){return g=>{var b;let m=this.processRow.bind(this,g,r,d);return r.rowPositions?r.rowPositions.filter(w=>w.rowPinned==="bottom").sort((w,k)=>w.rowIndex-k.rowIndex).map(w=>{var k;return(k=this.pinnedRowModel)==null?void 0:k.getPinnedBottomRow(w.rowIndex)}).forEach(m):(b=this.pinnedRowModel)==null||b.forEachPinnedRow("bottom",m),g}}getColumnsToExport(r=!1,d=!1,g){let{colModel:m,gos:b,visibleCols:w}=this,k=m.isPivotMode();if(g&&g.length)return m.getColsForKeys(g);let R=b.get("treeData"),T=[];return T=r&&!k?m.getCols():w.allCols,T=T.filter(z=>!((0,M.isColumnSelectionCol)(z)||d&&!R&&(0,M.isColumnGroupAutoCol)(z))),T}recursivelyAddHeaderGroups(r,d,g){let m=[];r.forEach(b=>{let w=b;w.getChildren&&w.getChildren().forEach(k=>m.push(k))}),r.length>0&&(0,D.isColumnGroup)(r[0])&&this.doAddHeaderHeader(d,r,g),m&&m.length>0&&this.recursivelyAddHeaderGroups(m,d,g)}doAddHeaderHeader(r,d,g){let m=r.onNewHeaderGroupingRow(),b=0;d.forEach(w=>{let k=w,R;R=g?g(this.gos.addGridCommonParams({columnGroup:k})):this.beans.colNames.getDisplayNameForColumnGroup(k,"header");let T=k.getLeafColumns().reduce((z,G,U,X)=>{let Q=(0,v._last)(z);return G.getColumnGroupShow()==="open"?Q&&Q[1]==null||(Q=[U],z.push(Q)):Q&&Q[1]==null&&(Q[1]=U-1),U===X.length-1&&Q&&Q[1]==null&&(Q[1]=U),z},[]);m.onColumn(k,R||"",b++,k.getLeafColumns().length-1,T)})}}x.GridSerializer=u},6331:function(ne,x){Object.defineProperty(x,"__esModule",{value:!0}),x.columnFiltersCSS=void 0,x.columnFiltersCSS=".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%}.ag-floating-filter-input{align-items:center;display:flex;width:100%;>*{flex:1 1 auto}:where(.ag-input-field-input[type=date]){width:1px}}.ag-floating-filter-button{display:flex;flex:none}.ag-set-floating-filter-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{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:1px solid 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)}"},4527:function(ne,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.showColumnFilter=x.setColumnFilterModel=x.getColumnFilterModel=x.getFilterModel=x.setFilterModel=x.destroyFilter=x.getColumnFilterInstance=x.isColumnFilterPresent=void 0;let M=p(7764);x.isColumnFilterPresent=function(A){let F=A.filterManager;return!!(F!=null&&F.isColumnFilterPresent())||!!(F!=null&&F.isAggregateFilterPresent())},x.getColumnFilterInstance=function(A,F){var D,f;return(f=(D=A.filterManager)==null?void 0:D.getColumnFilterInstance(F))!=null?f:Promise.resolve(void 0)},x.destroyFilter=function(A,F){var f;let D=A.colModel.getColDefCol(F);if(D)return(f=A.filterManager)==null?void 0:f.destroyFilter(D,"api")},x.setFilterModel=function(A,F){A.frameworkOverrides.wrapIncoming(()=>{var D;return(D=A.filterManager)==null?void 0:D.setFilterModel(F)})},x.getFilterModel=function(A){var F,D;return(D=(F=A.filterManager)==null?void 0:F.getFilterModel())!=null?D:{}},x.getColumnFilterModel=function(A,F){var D,f;return(f=(D=A.filterManager)==null?void 0:D.getColumnFilterModel(F))!=null?f:null},x.setColumnFilterModel=function(A,F,D){var f,v;return(v=(f=A.filterManager)==null?void 0:f.setColumnFilterModel(F,D))!=null?v:Promise.resolve()},x.showColumnFilter=function(A,F){var f;let D=A.colModel.getCol(F);D?(f=A.menuSvc)==null||f.showFilterMenu({column:D,containerType:"columnFilter",positionBy:"auto"}):(0,M._error)(12,{colKey:F})}},219:function(ne,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.ColumnFilterService=void 0;let M=p(4126),A=p(2036),F=p(8731),D=p(7274),f=p(4422),v=p(7990),u=p(7764),s=p(9990),r={january:"January",february:"February",march:"March",april:"April",may:"May",june:"June",july:"July",august:"August",september:"September",october:"October",november:"November",december:"December"},d=["january","february","march","april","may","june","july","august","september","october","november","december"];function g(w,k){return w==null?-1:k==null?1:parseFloat(w)-parseFloat(k)}class m extends F.BeanStub{constructor(){super(...arguments),this.beanName="colFilter",this.allColumnFilters=new Map,this.allColumnListeners=new Map,this.activeAggregateFilters=[],this.activeColumnFilters=[],this.processingFilterChange=!1,this.filterModelUpdateQueue=[],this.columnFilterModelUpdateQueue=[]}postConstruct(){var k,R,T;this.addManagedEventListeners({gridColumnsChanged:this.onColumnsChanged.bind(this),beforeRefreshModel:({params:z})=>{var G;(z.rowDataUpdated||(G=z.changedProps)!=null&&G.has("treeData"))&&this.onNewRowsLoaded("rowDataUpdated")},dataTypesInferred:this.processFilterModelUpdateQueue.bind(this)}),this.initialFilterModel=pe({},(T=(R=(k=this.gos.get("initialState"))==null?void 0:k.filter)==null?void 0:R.filterModel)!=null?T:{})}setFilterModel(k,R="api"){let{colModel:T,dataTypeSvc:z,filterManager:G}=this.beans;if(z!=null&&z.isPendingInference)return void this.filterModelUpdateQueue.push({model:k,source:R});let U=[],X=this.getFilterModel(!0);if(k){let Q=new Set(Object.keys(k));this.allColumnFilters.forEach((oe,le)=>{let fe=k[le];U.push(b(oe.filterPromise,fe)),Q.delete(le)}),Q.forEach(oe=>{let le=T.getColDefCol(oe)||T.getCol(oe);if(!le)return void(0,u._warn)(62,{colId:oe});if(!le.isFilterAllowed())return void(0,u._warn)(63,{colId:oe});let fe=this.getOrCreateFilterWrapper(le);fe?U.push(b(fe.filterPromise,k[oe])):(0,u._warn)(64,{colId:oe})})}else this.allColumnFilters.forEach(Q=>{U.push(b(Q.filterPromise,null))});v.AgPromise.all(U).then(()=>{let Q=this.getFilterModel(!0),oe=[];this.allColumnFilters.forEach((le,fe)=>{let ye=X?X[fe]:null,ke=Q?Q[fe]:null;(0,f._jsonEquals)(ye,ke)||oe.push(le.column)}),oe.length>0&&(G==null||G.onFilterChanged({columns:oe,source:R}))})}getFilterModel(k){let R={},{allColumnFilters:T,initialFilterModel:z,beans:{colModel:G}}=this;return T.forEach((U,X)=>{let Q=this.getModelFromFilterWrapper(U);(0,f._exists)(Q)&&(R[X]=Q)}),k||Object.entries(z).forEach(([U,X])=>{var Q;(0,f._exists)(X)&&!T.has(U)&&((Q=G.getCol(U))!=null&&Q.isFilterAllowed())&&(R[U]=X)}),R}getModelFromFilterWrapper(k){let{filter:R}=k;return R?typeof R.getModel!="function"?((0,u._warn)(66),null):R.getModel():this.getModelFromInitialState(k.column)}getModelFromInitialState(k){var R;return(R=this.initialFilterModel[k.getColId()])!=null?R:null}isColumnFilterPresent(){return this.activeColumnFilters.length>0}isAggregateFilterPresent(){return!!this.activeAggregateFilters.length}disableColumnFilters(){let{allColumnFilters:k}=this;return!!k.size&&(k.forEach(R=>this.disposeFilterWrapper(R,"advancedFilterEnabled")),!0)}doAggregateFiltersPass(k,R){return this.doColumnFiltersPass(k,R,!0)}updateActiveFilters(){let{colModel:k,gos:R}=this.beans,T=!!(0,D._getGroupAggFiltering)(R),z=[],G=[];return this.forEachColumnFilter((U,X)=>{(oe=>!!oe&&(oe.isFilterActive?oe.isFilterActive():((0,u._warn)(67),!1)))(U)&&((oe=>{if(!oe.isPrimary())return!0;let le=!k.isPivotActive();return!(!oe.isValueActive()||!le)&&(!!k.isPivotMode()||T)})(X.column)?z.push(U):G.push(U))}).then(()=>{this.activeAggregateFilters=z,this.activeColumnFilters=G})}updateFilterFlagInColumns(k,R){return this.forEachColumnFilter((T,z)=>this.setColFilterActive(z.column,T.isFilterActive(),k,R))}forEachColumnFilter(k){let R=[];return this.allColumnFilters.forEach(T=>{let z=T.filterPromise;z&&R.push(z.then(G=>k(G,T)))}),v.AgPromise.all(R)}doColumnFiltersPass(k,R,T){let{data:z,aggData:G}=k,U=T?this.activeAggregateFilters:this.activeColumnFilters,X=T?G:z;for(let Q=0;Q<U.length;Q++){let oe=U[Q];if(oe!=null&&oe!==R)if(typeof oe.doesFilterPass=="function"){if(!oe.doesFilterPass({node:k,data:X}))return!1}else(0,u._error)(91)}return!0}callOnFilterChangedOutsideRenderCycle(k){let{rowRenderer:R,filterManager:T}=this.beans,z=()=>{this.isAlive()&&(T==null||T.onFilterChanged(k))};R.isRefreshInProgress()?setTimeout(z,0):z()}updateBeforeFilterChanged(k={}){let{filterInstance:R,additionalEventAttributes:T}=k;return this.updateDependentFilters(),this.updateActiveFilters().then(()=>this.updateFilterFlagInColumns("filterChanged",T).then(()=>{this.allColumnFilters.forEach(z=>{z.filterPromise&&z.filterPromise.then(G=>{G&&G!==R&&G.onAnyFilterChanged&&G.onAnyFilterChanged()})}),this.processingFilterChange=!0}))}updateAfterFilterChanged(){this.processingFilterChange=!1}isSuppressFlashingCellsBecauseFiltering(){var k;return!((k=this.gos.get("allowShowChangeAfterFilter"))!=null&&k)&&this.processingFilterChange}onNewRowsLoaded(k){this.forEachColumnFilter(R=>{var T;(T=R.onNewRowsLoaded)==null||T.call(R)}).then(()=>this.updateFilterFlagInColumns(k,{afterDataChange:!0})).then(()=>this.updateActiveFilters())}createGetValue(k){let{filterValueSvc:R,colModel:T}=this.beans;return(z,G)=>{let U=G?T.getCol(G):k;return U?R.getValue(U,z):void 0}}isFilterActive(k){var T;let{filter:R}=(T=this.cachedFilter(k))!=null?T:{};return R?R.isFilterActive():this.getModelFromInitialState(k)!=null}getOrCreateFilterWrapper(k){if(!k.isFilterAllowed())return null;let R=this.cachedFilter(k);return R||(R=this.createFilterWrapper(k),this.setColumnFilterWrapper(k,R)),R}cachedFilter(k){return this.allColumnFilters.get(k.getColId())}getDefaultFilter(k){let R,{gos:T,dataTypeSvc:z}=this.beans;if((0,D._isSetFilterByDefault)(T))R="agSetColumnFilter";else{let G=z==null?void 0:z.getBaseDataType(k);R=G==="number"?"agNumberColumnFilter":G==="date"||G==="dateString"?"agDateColumnFilter":"agTextColumnFilter"}return R}getDefaultFloatingFilter(k){let R,{gos:T,dataTypeSvc:z}=this.beans;if((0,D._isSetFilterByDefault)(T))R="agSetColumnFloatingFilter";else{let G=z==null?void 0:z.getBaseDataType(k);R=G==="number"?"agNumberColumnFloatingFilter":G==="date"||G==="dateString"?"agDateColumnFloatingFilter":"agTextColumnFloatingFilter"}return R}createFilterInstance(k,R){let T=this.getDefaultFilter(k),z=k.getColDef(),G,U=et(pe({},this.createFilterParams(k,z)),{filterModifiedCallback:()=>this.filterModifiedCallbackFactory(G,k)(),filterChangedCallback:Q=>this.filterChangedCallbackFactory(G,k)(Q),doesRowPassOtherFilter:Q=>{var oe,le;return(le=(oe=this.beans.filterManager)==null?void 0:oe.doesRowPassOtherFilters(G,Q))!=null?le:!0}}),X=(0,A._getFilterDetails)(this.beans.userCompFactory,z,U,T);return X?{filterPromise:()=>{let Q=X.newAgStackInstance();return Q.then(oe=>{G=oe,R&&(R.filter=oe!=null?oe:void 0)}),Q},compDetails:X}:{filterPromise:null,compDetails:null}}createFilterParams(k,R){return this.gos.addGridCommonParams({column:k,colDef:R,rowModel:this.beans.rowModel,filterChangedCallback:()=>{},filterModifiedCallback:()=>{},getValue:this.createGetValue(k),doesRowPassOtherFilter:()=>!0})}createFilterWrapper(k){var G;let R={column:k,filterPromise:null,compDetails:null},{filterPromise:T,compDetails:z}=this.createFilterInstance(k,R);return R.filterPromise=(G=T==null?void 0:T())!=null?G:null,R.compDetails=z,R}onColumnsChanged(){let k=[],{colModel:R,filterManager:T}=this.beans;this.allColumnFilters.forEach((G,U)=>{let X;X=G.column.isPrimary()?R.getColDefCol(U):R.getCol(U),X&&X===G.column||(k.push(G.column),this.disposeFilterWrapper(G,"columnChanged"),this.disposeColumnListener(U))});let z=k.every(G=>G.getColDef().filter==="agGroupColumnFilter");k.length>0&&!z?T==null||T.onFilterChanged({columns:k,source:"api"}):this.updateDependentFilters()}updateDependentFilters(){var k,R;(R=(k=this.beans.autoColSvc)==null?void 0:k.getAutoCols())==null||R.forEach(T=>{T.getColDef().filter==="agGroupColumnFilter"&&this.getOrCreateFilterWrapper(T)})}isFilterAllowed(k){var T;if(!k.isFilterAllowed())return!1;let{filter:R}=(T=this.allColumnFilters.get(k.getColId()))!=null?T:{};return!R||typeof(R==null?void 0:R.isFilterAllowed)!="function"||R.isFilterAllowed()}getFloatingFilterCompDetails(k,R){let T=fe=>{var ke;let ye=(ke=this.getOrCreateFilterWrapper(k))==null?void 0:ke.filterPromise;ye!=null&&ye.then(Ie=>{fe((0,M._unwrapUserComp)(Ie))})},z=k.getColDef(),G=et(pe({},this.createFilterParams(k,z)),{filterChangedCallback:()=>T(fe=>this.filterChangedCallbackFactory(fe,k)())}),{userCompFactory:U,frameworkOverrides:X}=this.beans,Q=(0,A._mergeFilterParamsWithApplicationProvidedParams)(U,z,G),oe=(0,s._getDefaultFloatingFilterType)(X,z,()=>this.getDefaultFloatingFilter(k));oe==null&&(oe="agReadOnlyFloatingFilter");let le={column:k,filterParams:Q,currentParentModel:()=>this.getCurrentFloatingFilterParentModel(k),parentFilterInstance:T,showParentFilter:R};return(0,A._getFloatingFilterCompDetails)(U,z,le,oe)}getCurrentFloatingFilterParentModel(k){var R;return this.getModelFromFilterWrapper((R=this.cachedFilter(k))!=null?R:{column:k})}destroyFilter(k,R="api"){var G;let T=k.getColId(),z=this.allColumnFilters.get(T);this.disposeColumnListener(T),delete this.initialFilterModel[T],z&&(this.disposeFilterWrapper(z,R),(G=this.beans.filterManager)==null||G.onFilterChanged({columns:[k],source:"api"}))}disposeColumnListener(k){let R=this.allColumnListeners.get(k);R&&(this.allColumnListeners.delete(k),R())}disposeFilterWrapper(k,R){var T;(T=k.filterPromise)==null||T.then(z=>{this.destroyBean(z),this.setColFilterActive(k.column,!1,"filterDestroyed"),this.allColumnFilters.delete(k.column.getColId()),this.eventSvc.dispatchEvent({type:"filterDestroyed",source:R,column:k.column})})}filterModifiedCallbackFactory(k,R){return()=>{this.eventSvc.dispatchEvent({type:"filterModified",column:R,filterInstance:k})}}filterChangedCallbackFactory(k,R){return T=>{var G;let z={filter:k,additionalEventAttributes:T,columns:[R],source:(G=T==null?void 0:T.source)!=null?G:"columnFilter"};this.callOnFilterChangedOutsideRenderCycle(z)}}checkDestroyFilter(k){let R=this.allColumnFilters.get(k);if(!R)return;let T=R.column,{compDetails:z}=T.isFilterAllowed()?this.createFilterInstance(T):{compDetails:null};if(this.areFilterCompsDifferent(R.compDetails,z))return void this.destroyFilter(T,"paramsUpdated");let G=T.getColDef().filterParams;R.filterPromise?R.filterPromise.then(U=>{(!(U!=null&&U.refresh)||U.refresh(pe(et(pe({},this.createFilterParams(T,T.getColDef())),{filterModifiedCallback:this.filterModifiedCallbackFactory(U,T),filterChangedCallback:this.filterChangedCallbackFactory(U,T),doesRowPassOtherFilter:X=>{var Q,oe;return(oe=(Q=this.beans.filterManager)==null?void 0:Q.doesRowPassOtherFilters(U,X))!=null?oe:!0}}),G)))===!1&&this.destroyFilter(T,"paramsUpdated")}):this.destroyFilter(T,"paramsUpdated")}setColumnFilterWrapper(k,R){let T=k.getColId();this.allColumnFilters.set(T,R),this.allColumnListeners.set(T,this.addManagedListeners(k,{colDefChanged:()=>this.checkDestroyFilter(T)})[0])}areFilterCompsDifferent(k,R){if(!R||!k)return!0;let{componentClass:T}=k,{componentClass:z}=R;return!(T===z||T!=null&&T.render&&(z!=null&&z.render)&&T.render===z.render)}hasFloatingFilters(){return this.beans.colModel.getCols().some(k=>k.getColDef().floatingFilter)}getColumnFilterInstance(k){return new Promise(R=>{this.getFilterInstanceImpl(k).then(T=>{R((0,M._unwrapUserComp)(T))})})}getFilterInstanceImpl(k){var z;let R=this.beans.colModel.getColDefCol(k);if(!R)return v.AgPromise.resolve(void 0);let T=(z=this.getOrCreateFilterWrapper(R))==null?void 0:z.filterPromise;return T!=null?T:v.AgPromise.resolve(null)}processFilterModelUpdateQueue(){this.filterModelUpdateQueue.forEach(({model:k,source:R})=>this.setFilterModel(k,R)),this.filterModelUpdateQueue=[],this.columnFilterModelUpdateQueue.forEach(({key:k,model:R,resolve:T})=>{this.setColumnFilterModel(k,R).then(()=>T())}),this.columnFilterModelUpdateQueue=[]}getColumnFilterModel(k){let R=this.getFilterWrapper(k);return R?this.getModelFromFilterWrapper(R):null}setColumnFilterModel(k,R){let{colModel:T,dataTypeSvc:z}=this.beans;if(z!=null&&z.isPendingInference){let Q=()=>{},oe=new Promise(le=>{Q=le});return this.columnFilterModelUpdateQueue.push({key:k,model:R,resolve:Q}),oe}let G=T.getColDefCol(k),U=G?this.getOrCreateFilterWrapper(G):null;return U?(X=b(U.filterPromise,R),new Promise(Q=>{X.then(oe=>Q(oe))})):Promise.resolve();var X}getFilterWrapper(k){var T;let R=this.beans.colModel.getColDefCol(k);return R&&(T=this.cachedFilter(R))!=null?T:null}setColDefPropertiesForDataType(k,R,T){let z=(0,D._isSetFilterByDefault)(this.gos),G=this.getLocaleTextFunc(),U=X=>{let{filterParams:Q}=k;k.filterParams=typeof Q=="object"?pe(pe({},Q),X):X};switch(R.baseDataType){case"number":z&&U({comparator:g});break;case"boolean":U(z?{valueFormatter:X=>(0,f._exists)(X.value)?G(String(X.value),X.value?"True":"False"):G("blanks","(Blanks)")}:{maxNumConditions:1,debounceMs:0,filterOptions:["empty",{displayKey:"true",displayName:"True",predicate:(X,Q)=>Q,numberOfInputs:0},{displayKey:"false",displayName:"False",predicate:(X,Q)=>Q===!1,numberOfInputs:0}]});break;case"date":z&&U({valueFormatter:X=>{let Q=T(X);return(0,f._exists)(Q)?Q:G("blanks","(Blanks)")},treeList:!0,treeListFormatter:(X,Q)=>{if(Q===1&&X!=null){let oe=d[Number(X)-1];return G(oe,r[oe])}return X!=null?X:G("blanks","(Blanks)")}});break;case"dateString":{let X=R.dateParser;U(z?{valueFormatter:Q=>{let oe=T(Q);return(0,f._exists)(oe)?oe:G("blanks","(Blanks)")},treeList:!0,treeListPathGetter:Q=>{let oe=X(Q!=null?Q:void 0);return oe?[String(oe.getFullYear()),String(oe.getMonth()+1),String(oe.getDate())]:null},treeListFormatter:(Q,oe)=>{if(oe===1&&Q!=null){let le=d[Number(Q)-1];return G(le,r[le])}return Q!=null?Q:G("blanks","(Blanks)")}}:{comparator:(Q,oe)=>{let le=X(oe);return oe==null||le<Q?-1:le>Q?1:0}});break}case"object":z?U({valueFormatter:X=>{let Q=T(X);return(0,f._exists)(Q)?Q:G("blanks","(Blanks)")}}):k.filterValueGetter=X=>T({column:X.column,node:X.node,value:this.beans.valueSvc.getValue(X.column,X.node)})}}setColFilterActive(k,R,T,z){k.filterActive!==R&&(k.filterActive=R,k.dispatchColEvent("filterActiveChanged",T)),k.dispatchColEvent("filterChanged",T,z)}destroy(){super.destroy(),this.allColumnFilters.forEach(k=>this.disposeFilterWrapper(k,"gridDestroyed")),this.allColumnListeners.clear()}}function b(w,k){return w?new v.AgPromise(R=>{w.then(T=>{typeof T.setModel!="function"&&((0,u._warn)(65),R()),(T.setModel(k)||v.AgPromise.resolve()).then(()=>R())})}):v.AgPromise.resolve()}x.ColumnFilterService=m},9002:function(ne,x){Object.defineProperty(x,"__esModule",{value:!0}),x.onFilterChanged=x.isAnyFilterPresent=void 0,x.isAnyFilterPresent=function(p){var M;return!!((M=p.filterManager)!=null&&M.isAnyFilterPresent())},x.onFilterChanged=function(p,M="api"){var A;(A=p.filterManager)==null||A.onFilterChanged({source:M})}},5741:function(ne,x){Object.defineProperty(x,"__esModule",{value:!0}),x.FILTER_LOCALE_TEXT=void 0,x.FILTER_LOCALE_TEXT={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"}},8681:function(ne,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.FilterManager=void 0;let M=p(8731),A=p(7274),F=p(6996),D=p(7990),f=p(7764);class v extends M.BeanStub{constructor(){super(...arguments),this.beanName="filterManager",this.advFilterModelUpdateQueue=[]}wireBeans(s){this.quickFilter=s.quickFilter,this.advancedFilter=s.advancedFilter,this.colFilter=s.colFilter}postConstruct(){let s=this.refreshFiltersForAggregations.bind(this),r=this.updateAdvFilterColumns.bind(this);this.addManagedEventListeners({columnValueChanged:s,columnPivotChanged:s,columnPivotModeChanged:s,newColumnsLoaded:r,columnVisible:r,advancedFilterEnabledChanged:({enabled:g})=>this.onAdvFilterEnabledChanged(g),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"})});let{gos:d}=this;this.alwaysPassFilter=d.get("alwaysPassFilter"),this.addManagedPropertyListener("alwaysPassFilter",()=>{this.alwaysPassFilter=d.get("alwaysPassFilter"),this.onFilterChanged({source:"api"})})}isExternalFilterPresentCallback(){let s=this.gos.getCallback("isExternalFilterPresent");return typeof s=="function"&&s({})}doesExternalFilterPass(s){let r=this.gos.get("doesExternalFilterPass");return typeof r=="function"&&r(s)}setFilterModel(s,r="api"){var d;this.isAdvFilterEnabled()?this.warnAdvFilters():(d=this.colFilter)==null||d.setFilterModel(s,r)}getFilterModel(){var s,r;return(r=(s=this.colFilter)==null?void 0:s.getFilterModel())!=null?r:{}}isColumnFilterPresent(){var s;return!!((s=this.colFilter)!=null&&s.isColumnFilterPresent())}isAggregateFilterPresent(){var s;return!!((s=this.colFilter)!=null&&s.isAggregateFilterPresent())}isChildFilterPresent(){return this.isColumnFilterPresent()||this.isQuickFilterPresent()||this.externalFilterPresent||this.isAdvFilterPresent()}isAnyFilterPresent(){return this.isChildFilterPresent()||this.isAggregateFilterPresent()}isAdvFilterPresent(){return this.isAdvFilterEnabled()&&this.advancedFilter.isFilterPresent()}onAdvFilterEnabledChanged(s){var r,d;s?(r=this.colFilter)!=null&&r.disableColumnFilters()&&this.onFilterChanged({source:"advancedFilter"}):(d=this.advancedFilter)!=null&&d.isFilterPresent()&&(this.advancedFilter.setModel(null),this.onFilterChanged({source:"advancedFilter"}))}isAdvFilterEnabled(){var s;return!!((s=this.advancedFilter)!=null&&s.isEnabled())}isAdvFilterHeaderActive(){return this.isAdvFilterEnabled()&&this.advancedFilter.isHeaderActive()}resetQuickFilterCache(){var s;(s=this.quickFilter)==null||s.resetCache()}refreshFiltersForAggregations(){(0,A._getGroupAggFiltering)(this.gos)&&this.onFilterChanged()}onFilterChanged(s={}){let{source:r,additionalEventAttributes:d,columns:g=[]}=s;this.externalFilterPresent=this.isExternalFilterPresentCallback(),(this.colFilter?this.colFilter.updateBeforeFilterChanged(s):D.AgPromise.resolve()).then(()=>{var b;let m={source:r,type:"filterChanged",columns:g};d&&(0,F._mergeDeep)(m,d),this.eventSvc.dispatchEvent(m),(b=this.colFilter)==null||b.updateAfterFilterChanged()})}isSuppressFlashingCellsBecauseFiltering(){var s;return!!((s=this.colFilter)!=null&&s.isSuppressFlashingCellsBecauseFiltering())}isQuickFilterPresent(){var s;return!!((s=this.quickFilter)!=null&&s.isFilterPresent())}updateAggFiltering(){this.aggFiltering=!!(0,A._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(s,r){return this.doesRowPassFilter({rowNode:r,filterInstanceToSkip:s})}doesRowPassAggregateFilters(s){var d;let{rowNode:r}=s;return!!((d=this.alwaysPassFilter)!=null&&d.call(this,r))||!(this.isAggregateQuickFilterPresent()&&!this.quickFilter.doesRowPass(r))&&!(this.isAggregateFilterPresent()&&!this.colFilter.doAggregateFiltersPass(r,s.filterInstanceToSkip))}doesRowPassFilter(s){var d;let{rowNode:r}=s;return!!((d=this.alwaysPassFilter)!=null&&d.call(this,r))||!(this.isNonAggregateQuickFilterPresent()&&!this.quickFilter.doesRowPass(r))&&!(this.externalFilterPresent&&!this.doesExternalFilterPass(r))&&!(this.isColumnFilterPresent()&&!this.colFilter.doColumnFiltersPass(r,s.filterInstanceToSkip))&&!(this.isAdvFilterPresent()&&!this.advancedFilter.doesFilterPass(r))}isFilterActive(s){var r;return!!((r=this.colFilter)!=null&&r.isFilterActive(s))}getOrCreateFilterWrapper(s){var r,d;return(d=(r=this.colFilter)==null?void 0:r.getOrCreateFilterWrapper(s))!=null?d:null}getDefaultFloatingFilter(s){return this.colFilter.getDefaultFloatingFilter(s)}createFilterParams(s,r){return this.colFilter.createFilterParams(s,r)}isFilterAllowed(s){var r;return!this.isAdvFilterEnabled()&&!!((r=this.colFilter)!=null&&r.isFilterAllowed(s))}getFloatingFilterCompDetails(s,r){var d;return(d=this.colFilter)==null?void 0:d.getFloatingFilterCompDetails(s,r)}getCurrentFloatingFilterParentModel(s){var r;return(r=this.colFilter)==null?void 0:r.getCurrentFloatingFilterParentModel(s)}destroyFilter(s,r="api"){var d;(d=this.colFilter)==null||d.destroyFilter(s,r)}areFilterCompsDifferent(s,r){var d;return!!((d=this.colFilter)!=null&&d.areFilterCompsDifferent(s,r))}getAdvFilterModel(){return this.isAdvFilterEnabled()?this.advancedFilter.getModel():null}setAdvFilterModel(s){var r;this.isAdvFilterEnabled()&&((r=this.beans.dataTypeSvc)!=null&&r.isPendingInference?this.advFilterModelUpdateQueue.push(s):(this.advancedFilter.setModel(s!=null?s:null),this.onFilterChanged({source:"advancedFilter"})))}toggleAdvFilterBuilder(s,r){this.isAdvFilterEnabled()&&this.advancedFilter.getCtrl().toggleFilterBuilder({source:r,force:s})}updateAdvFilterColumns(){this.isAdvFilterEnabled()&&this.advancedFilter.updateValidity()&&this.onFilterChanged({source:"advancedFilter"})}hasFloatingFilters(){var s;return!this.isAdvFilterEnabled()&&!!((s=this.colFilter)!=null&&s.hasFloatingFilters())}getColumnFilterInstance(s){var r,d;return this.isAdvFilterEnabled()?(this.warnAdvFilters(),Promise.resolve(void 0)):(d=(r=this.colFilter)==null?void 0:r.getColumnFilterInstance(s))!=null?d:Promise.resolve(void 0)}warnAdvFilters(){(0,f._warn)(68)}setupAdvFilterHeaderComp(s){var r;(r=this.advancedFilter)==null||r.getCtrl().setupHeaderComp(s)}getHeaderRowCount(){return this.isAdvFilterHeaderActive()?1:0}getHeaderHeight(){return this.isAdvFilterHeaderActive()?this.advancedFilter.getCtrl().getHeaderHeight():0}processFilterModelUpdateQueue(){this.advFilterModelUpdateQueue.forEach(s=>this.setAdvFilterModel(s)),this.advFilterModelUpdateQueue=[]}getColumnFilterModel(s){var r;return(r=this.colFilter)==null?void 0:r.getColumnFilterModel(s)}setColumnFilterModel(s,r){var d,g;return this.isAdvFilterEnabled()?(this.warnAdvFilters(),Promise.resolve()):(g=(d=this.colFilter)==null?void 0:d.setColumnFilterModel(s,r))!=null?g:Promise.resolve()}setColDefPropertiesForDataType(s,r,d){var g;(g=this.colFilter)==null||g.setColDefPropertiesForDataType(s,r,d)}}x.FilterManager=v},9665:function(ne,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.FilterMenuFactory=void 0;let M=p(9853),A=p(8731),F=p(7274),D=p(8994),f=p(5230),v=p(3507),u=p(2331),s=p(7764),r=p(1854);class d extends A.BeanStub{constructor(){super(...arguments),this.beanName="filterMenuFactory"}wireBeans(m){this.popupSvc=m.popupSvc}hideActiveMenu(){var m;(m=this.hidePopup)==null||m.call(this)}showMenuAfterMouseEvent(m,b,w){this.showPopup(m,k=>{var R;(R=this.popupSvc)==null||R.positionPopupUnderMouseEvent({column:m,type:w,mouseEvent:b,ePopup:k})},w,b.target,(0,F._isLegacyMenuEnabled)(this.gos))}showMenuAfterButtonClick(m,b,w){let k=-1,R="left",T=(0,F._isLegacyMenuEnabled)(this.gos);!T&&this.gos.get("enableRtl")&&(k=1,R="right");let z=T?void 0:4*k,G=T?void 0:4;this.showPopup(m,U=>{var X;(X=this.popupSvc)==null||X.positionPopupByComponent({type:w,eventSource:b,ePopup:U,nudgeX:z,nudgeY:G,alignSide:R,keepWithinBounds:!0,position:"under",column:m})},w,b,T)}showPopup(m,b,w,k,R){var le;let T=m?this.createBean(new r.FilterWrapperComp(m,"COLUMN_MENU")):void 0;if(this.activeMenu=T,!(T!=null&&T.hasFilter())||!m)return void(0,s._error)(57);let z=document.createElement("div"),G;(0,f._setAriaRole)(z,"presentation"),z.classList.add("ag-menu"),R||z.classList.add("ag-filter-menu"),[this.tabListener]=this.addManagedElementListeners(z,{keydown:fe=>this.trapFocusWithin(fe,z)}),z.appendChild(T==null?void 0:T.getGui());let U=(0,F._isColumnMenuAnchoringEnabled)(this.gos)?k!=null?k:this.beans.ctrlsSvc.getGridBodyCtrl().eGridBody:void 0,X=this.getLocaleTextFunc(),Q=R&&w!=="columnFilter"?X("ariaLabelColumnMenu","Column Menu"):X("ariaLabelColumnFilter","Column Filter"),oe=(le=this.popupSvc)==null?void 0:le.addPopup({modal:!0,eChild:z,closeOnEsc:!0,closedCallback:fe=>{(0,D._setColMenuVisible)(m,!1,"contextMenu");let ye=fe instanceof KeyboardEvent;if(this.tabListener&&(this.tabListener=this.tabListener()),ye&&k&&(0,v._isVisible)(k)){let ke=(0,u._findTabbableParent)(k);ke==null||ke.focus({preventScroll:!0})}T==null||T.afterGuiDetached(),this.destroyBean(this.activeMenu),this.dispatchVisibleChangedEvent(!1,w,m)},positionCallback:()=>b(z),anchorToElement:U,ariaLabel:Q});oe&&(this.hidePopup=G=oe.hideFunc),T.afterInit().then(()=>{b(z),T.afterGuiAttached({container:w,hidePopup:G})}),(0,D._setColMenuVisible)(m,!0,"contextMenu"),this.dispatchVisibleChangedEvent(!0,w,m)}trapFocusWithin(m,b){m.key!==M.KeyCode.TAB||m.defaultPrevented||(0,u._findNextFocusableElement)(this.beans,b,!1,m.shiftKey)||(m.preventDefault(),(0,u._focusInto)(b,m.shiftKey))}dispatchVisibleChangedEvent(m,b,w){this.eventSvc.dispatchEvent({type:"columnMenuVisibleChanged",visible:m,switchingTab:!1,key:b,column:w!=null?w:null,columnGroup:null})}isMenuEnabled(m){var b;return m.isFilterAllowed()&&((b=m.getColDef().menuTabs)!=null?b:["filterMenuTab"]).includes("filterMenuTab")}showMenuAfterContextMenuEvent(){}destroy(){this.destroyBean(this.activeMenu),super.destroy()}}x.FilterMenuFactory=d},5432:function(ne,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.ExternalFilterModule=x.QuickFilterModule=x.DateFilterModule=x.NumberFilterModule=x.TextFilterModule=x.CustomFilterModule=x.ColumnFilterModule=x.FilterValueModule=x.FilterCoreModule=x.ClientSideRowModelFilterModule=void 0;let M=p(8287),A=p(3868),F=p(3472),D=p(7205),f=p(3137),v=p(6331),u=p(4527),s=p(219),r=p(9002),d=p(8681),g=p(9665),m=p(3508),b=p(6657),w=p(3725),k=p(3091),R=p(5459),T=p(8988),z=p(4789),G=p(2811),U=p(8305),X=p(5381),Q=p(1238);x.ClientSideRowModelFilterModule={moduleName:"ClientSideRowModelFilter",version:D.VERSION,rowModels:["clientSide"],beans:[M.FilterStage]},x.FilterCoreModule={moduleName:"FilterCore",version:D.VERSION,beans:[d.FilterManager],apiFunctions:{isAnyFilterPresent:r.isAnyFilterPresent,onFilterChanged:r.onFilterChanged},css:[v.columnFiltersCSS],dependsOn:[x.ClientSideRowModelFilterModule]},x.FilterValueModule={moduleName:"FilterValue",version:D.VERSION,beans:[m.FilterValueService]},x.ColumnFilterModule={moduleName:"ColumnFilter",version:D.VERSION,beans:[s.ColumnFilterService,g.FilterMenuFactory],dynamicBeans:{headerFilterCellCtrl:A.HeaderFilterCellCtrl},icons:{filter:"filter",filterActive:"filter"},apiFunctions:{isColumnFilterPresent:u.isColumnFilterPresent,getColumnFilterInstance:u.getColumnFilterInstance,destroyFilter:u.destroyFilter,setFilterModel:u.setFilterModel,getFilterModel:u.getFilterModel,getColumnFilterModel:u.getColumnFilterModel,setColumnFilterModel:u.setColumnFilterModel,showColumnFilter:u.showColumnFilter},dependsOn:[x.FilterCoreModule,f.PopupModule,x.FilterValueModule,F.SharedMenuModule]},x.CustomFilterModule={moduleName:"CustomFilter",version:D.VERSION,userComponents:{agReadOnlyFloatingFilter:b.ReadOnlyFloatingFilter},dependsOn:[x.ColumnFilterModule]},x.TextFilterModule={moduleName:"TextFilter",version:D.VERSION,dependsOn:[x.ColumnFilterModule],userComponents:{agTextColumnFilter:G.TextFilter,agTextColumnFloatingFilter:U.TextFloatingFilter}},x.NumberFilterModule={moduleName:"NumberFilter",version:D.VERSION,dependsOn:[x.ColumnFilterModule],userComponents:{agNumberColumnFilter:T.NumberFilter,agNumberColumnFloatingFilter:z.NumberFloatingFilter}},x.DateFilterModule={moduleName:"DateFilter",version:D.VERSION,dependsOn:[x.ColumnFilterModule],userComponents:{agDateColumnFilter:w.DateFilter,agDateInput:R.DefaultDateComponent,agDateColumnFloatingFilter:k.DateFloatingFilter}},x.QuickFilterModule={moduleName:"QuickFilter",version:D.VERSION,rowModels:["clientSide"],beans:[Q.QuickFilterService],apiFunctions:{isQuickFilterPresent:X.isQuickFilterPresent,getQuickFilter:X.getQuickFilter,resetQuickFilter:X.resetQuickFilter},dependsOn:[x.FilterCoreModule,x.FilterValueModule]},x.ExternalFilterModule={moduleName:"ExternalFilter",version:D.VERSION,dependsOn:[x.FilterCoreModule]}},3508:function(ne,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.FilterValueService=void 0;let M=p(8731);class A extends M.BeanStub{constructor(){super(...arguments),this.beanName="filterValueSvc"}getValue(D,f){if(!f)return;let v=D.getColDef(),{filterValueGetter:u}=v;return u?this.executeFilterValueGetter(u,f.data,D,f,v):this.beans.valueSvc.getValue(D,f)}executeFilterValueGetter(D,f,v,u,s){let{expressionSvc:r,valueSvc:d}=this.beans,g=this.gos.addGridCommonParams({data:f,node:u,column:v,colDef:s,getValue:d.getValueCallback.bind(this,u)});return typeof D=="function"?D(g):r==null?void 0:r.evaluate(D,g)}}x.FilterValueService=A},1854:function(ne,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.FilterWrapperComp=void 0;let M=p(3507),A=p(4422),F=p(7990),D=p(7764),f=p(8020);class v extends f.Component{constructor(s,r){super('<div class="ag-filter"></div>'),this.column=s,this.source=r,this.filterWrapper=null}postConstruct(){this.createFilter(!0),this.addManagedEventListeners({filterDestroyed:this.onFilterDestroyed.bind(this)})}hasFilter(){return!!this.filterWrapper}getFilter(){var s,r;return(r=(s=this.filterWrapper)==null?void 0:s.filterPromise)!=null?r:null}afterInit(){var s,r,d;return(d=(r=(s=this.filterWrapper)==null?void 0:s.filterPromise)==null?void 0:r.then(()=>{}))!=null?d:F.AgPromise.resolve()}afterGuiAttached(s){var r,d;(d=(r=this.filterWrapper)==null?void 0:r.filterPromise)==null||d.then(g=>{var m;(m=g==null?void 0:g.afterGuiAttached)==null||m.call(g,s)})}afterGuiDetached(){var s,r;(r=(s=this.filterWrapper)==null?void 0:s.filterPromise)==null||r.then(d=>{var g;(g=d==null?void 0:d.afterGuiDetached)==null||g.call(d)})}createFilter(s){var g,m,b;let{column:r,source:d}=this;this.filterWrapper=(m=(g=this.beans.filterManager)==null?void 0:g.getOrCreateFilterWrapper(r))!=null?m:null,(b=this.filterWrapper)!=null&&b.filterPromise&&this.filterWrapper.filterPromise.then(w=>{let k=w.getGui();(0,A._exists)(k)||(0,D._warn)(69,{guiFromFilter:k}),this.appendChild(k),s&&this.eventSvc.dispatchEvent({type:"filterOpened",column:r,source:d,eGui:this.getGui()})})}onFilterDestroyed(s){s.source!=="api"&&s.source!=="paramsUpdated"||s.column.getId()!==this.column.getId()||!this.beans.colModel.getColDefCol(this.column)||((0,M._clearElement)(this.getGui()),this.createFilter())}destroy(){this.filterWrapper=null,super.destroy()}}x.FilterWrapperComp=v},9990:function(ne,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x._getDefaultFloatingFilterType=void 0;let M=p(2036);x._getDefaultFloatingFilterType=function(A,F,D){if(F==null)return null;let f=null,{compName:v,jsComp:u,fwComp:s}=(0,M._getFilterCompKeys)(A,F);return v?f={agSetColumnFilter:"agSetColumnFloatingFilter",agMultiColumnFilter:"agMultiColumnFloatingFilter",agGroupColumnFilter:"agGroupColumnFloatingFilter",agNumberColumnFilter:"agNumberColumnFloatingFilter",agDateColumnFilter:"agDateColumnFloatingFilter",agTextColumnFilter:"agTextColumnFloatingFilter"}[v]:u==null&&s==null&&F.filter===!0&&(f=D()),f}},7287:function(ne,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.FloatingFilterTextInputService=void 0;let M=p(8731),A=p(5946),F=p(8020);class D extends M.BeanStub{constructor(v){super(),this.params=v,this.eInput=F.RefPlaceholder,this.onValueChanged=()=>{}}setupGui(v){var r;this.eInput=this.createManagedBean(new A.AgInputTextField((r=this.params)==null?void 0:r.config));let u=this.eInput.getGui();v.appendChild(u);let s=d=>this.onValueChanged(d);this.addManagedListeners(u,{input:s,keydown:s})}setEditable(v){this.eInput.setDisabled(!v)}getValue(){return this.eInput.getValue()}setValue(v,u){this.eInput.setValue(v,u)}setValueChangedListener(v){this.onValueChanged=v}setParams({ariaLabel:v,autoComplete:u}){let{eInput:s}=this;s.setInputAriaLabel(v),u!==void 0&&s.setAutoComplete(u)}}x.FloatingFilterTextInputService=D},361:function(ne,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.isUseApplyButton=x.getDebounceMs=void 0;let M=p(7764);function A(F){var D,f;return((f=(D=F.buttons)==null?void 0:D.indexOf("apply"))!=null?f:-1)>=0}x.getDebounceMs=function(F,D){let{debounceMs:f}=F;return A(F)?(f!=null&&(0,M._warn)(71),0):f!=null?f:D},x.isUseApplyButton=A},6657:function(ne,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.ReadOnlyFloatingFilter=void 0;let M=p(5946),A=p(8020);class F extends A.Component{constructor(){super(`
            <div class="ag-floating-filter-input" role="presentation">
                <ag-input-text-field data-ref="eFloatingFilterText"></ag-input-text-field>
            </div>`,[M.AgInputTextFieldSelector]),this.eFloatingFilterText=A.RefPlaceholder}init(f){this.params=f;let v=this.beans.colNames.getDisplayNameForColumn(f.column,"header",!0);this.eFloatingFilterText.setDisabled(!0).setInputAriaLabel(`${v} ${this.getLocaleTextFunc()("ariaFilterInput","Filter Input")}`)}onParentModelChanged(f){f!=null?this.params.parentFilterInstance(v=>{if(v.getModelAsString){let u=v.getModelAsString(f);this.eFloatingFilterText.setValue(u)}}):this.eFloatingFilterText.setValue("")}refresh(f){this.init(f)}}x.ReadOnlyFloatingFilter=F},3141:function(ne,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.SimpleFloatingFilter=void 0;let M=p(8020),A=p(4824);class F extends M.Component{constructor(){super(...arguments),this.defaultDebounceMs=0}setLastTypeFromModel(f){if(!f)return void(this.lastType=this.optionsFactory.defaultOption);let v;f.operator?v=f.conditions[0]:v=f,this.lastType=v.type}canWeEditAfterModelFromParentFilter(f){if(!f)return this.isTypeEditable(this.lastType);if(f.operator)return!1;let v=f;return this.isTypeEditable(v.type)}init(f){this.setSimpleParams(f,!1)}setSimpleParams(f,v=!0){let u=new A.OptionsFactory;this.optionsFactory=u,u.init(f.filterParams,this.getDefaultOptions());let s=u.defaultOption;v||(this.lastType=s),this.readOnly=!!f.filterParams.readOnly;let r=this.isTypeEditable(s);this.setEditable(r)}refresh(f){this.setSimpleParams(f)}hasSingleInput(f){var u;let v=(u=this.optionsFactory.getCustomOption(f))==null?void 0:u.numberOfInputs;return v==null||v==1}isTypeEditable(f){return!!f&&!this.readOnly&&this.hasSingleInput(f)&&["inRange","empty","blank","notBlank"].indexOf(f)<0}getAriaLabel(f){return`${this.beans.colNames.getDisplayNameForColumn(f.column,"header",!0)} ${this.getLocaleTextFunc()("ariaFilterInput","Filter Input")}`}}x.SimpleFloatingFilter=F},8922:function(ne,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.TextInputFloatingFilter=void 0;let M=p(9853),A=p(3507),F=p(2043),D=p(8020),f=p(2470),v=p(361),u=p(3141);class s extends u.SimpleFloatingFilter{constructor(){super(...arguments),this.eFloatingFilterInputContainer=D.RefPlaceholder,this.defaultDebounceMs=500}postConstruct(){this.setTemplate(`
            <div class="ag-floating-filter-input" role="presentation" data-ref="eFloatingFilterInputContainer"></div>
        `)}onParentModelChanged(d,g){g!=null&&g.afterFloatingFilter||g!=null&&g.afterDataChange||(this.setLastTypeFromModel(d),this.setEditable(this.canWeEditAfterModelFromParentFilter(d)),this.inputSvc.setValue(this.filterModelFormatter.getModelAsString(d)))}init(d){this.setupFloatingFilterInputService(d),super.init(d),this.setTextInputParams(d)}setupFloatingFilterInputService(d){this.inputSvc=this.createFloatingFilterInputService(d),this.inputSvc.setupGui(this.eFloatingFilterInputContainer)}setTextInputParams(d){var k;this.params=d;let g=(k=d.browserAutoComplete)!=null?k:!1,{inputSvc:m,defaultDebounceMs:b,readOnly:w}=this;if(m.setParams({ariaLabel:this.getAriaLabel(d),autoComplete:g}),this.applyActive=(0,v.isUseApplyButton)(d.filterParams),!w){let R=(0,v.getDebounceMs)(d.filterParams,b),T=(0,F._debounce)(this,this.syncUpWithParentFilter.bind(this),R);m.setValueChangedListener(T)}}refresh(d){super.refresh(d),this.setTextInputParams(d)}recreateFloatingFilterInputService(d){let{inputSvc:g}=this,m=g.getValue();(0,A._clearElement)(this.eFloatingFilterInputContainer),this.destroyBean(g),this.setupFloatingFilterInputService(d),g.setValue(m,!0)}syncUpWithParentFilter(d){let g=d.key===M.KeyCode.ENTER;if(this.applyActive&&!g)return;let{inputSvc:m,params:b}=this,w=m.getValue();b.filterParams.trimInput&&(w=(0,f.trimInputForFilter)(w),m.setValue(w,!0)),b.parentFilterInstance(k=>{k==null||k.onFloatingFilterChanged(this.lastType||null,w||null)})}setEditable(d){this.inputSvc.setEditable(d)}}x.TextInputFloatingFilter=s},8713:function(ne,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.DateCompWrapper=void 0;let M=p(2036),A=p(3507);x.DateCompWrapper=class{constructor(F,D,f,v,u){this.alive=!0,this.context=F,this.eParent=v;let s=(0,M._getDateCompDetails)(D,f);s&&s.newAgStackInstance().then(r=>{var m,b;if(!this.alive)return void F.destroyBean(r);if(this.dateComp=r,!r)return;v.appendChild(r.getGui()),(m=r==null?void 0:r.afterGuiAttached)==null||m.call(r);let{tempValue:d,disabled:g}=this;d&&r.setDate(d),g!=null&&((b=r.setDisabled)==null||b.call(r,g)),u==null||u(this)})}destroy(){this.alive=!1,this.dateComp=this.context.destroyBean(this.dateComp)}getDate(){return this.dateComp?this.dateComp.getDate():this.tempValue}setDate(F){let D=this.dateComp;D?D.setDate(F):this.tempValue=F}setDisabled(F){var f;let D=this.dateComp;D?(f=D.setDisabled)==null||f.call(D,F):this.disabled=F}setDisplayed(F){(0,A._setDisplayed)(this.eParent,F)}setInputPlaceholder(F){var D,f;(f=(D=this.dateComp)==null?void 0:D.setInputPlaceholder)==null||f.call(D,F)}setInputAriaLabel(F){var D,f;(f=(D=this.dateComp)==null?void 0:D.setInputAriaLabel)==null||f.call(D,F)}afterGuiAttached(F){var D,f;(f=(D=this.dateComp)==null?void 0:D.afterGuiAttached)==null||f.call(D,F)}updateParams(F){var D,f;(f=(D=this.dateComp)==null?void 0:D.refresh)==null||f.call(D,F)}}},3725:function(ne,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.DateFilter=void 0;let M=p(7274),A=p(9827),F=p(7764),D=p(5562),f=p(7535),v=p(8713),u=p(4200),s=p(4392),r=1/0;class d extends D.ScalarFilter{constructor(){super("dateFilter"),this.eConditionPanelsFrom=[],this.eConditionPanelsTo=[],this.dateConditionFromComps=[],this.dateConditionToComps=[],this.minValidYear=1e3,this.maxValidYear=r,this.minValidDate=null,this.maxValidDate=null,this.filterType="date"}afterGuiAttached(b){super.afterGuiAttached(b),this.dateConditionFromComps[0].afterGuiAttached(b)}mapValuesFromModel(b){let{dateFrom:w,dateTo:k,type:R}=b||{};return[w&&(0,A._parseDateTimeFromString)(w)||null,k&&(0,A._parseDateTimeFromString)(k)||null].slice(0,this.getNumberOfInputs(R))}comparator(){var b;return(b=this.dateFilterParams.comparator)!=null?b:g}setParams(b){this.dateFilterParams=b,super.setParams(b);let w=(k,R)=>{if(b[k]!=null){if(!isNaN(b[k]))return b[k]==null?R:Number(b[k]);(0,F._warn)(82,{param:k})}return R};this.minValidYear=w("minValidYear",1e3),this.maxValidYear=w("maxValidYear",r),this.minValidYear>this.maxValidYear&&(0,F._warn)(83),this.minValidDate=b.minValidDate?b.minValidDate instanceof Date?b.minValidDate:(0,A._parseDateTimeFromString)(b.minValidDate):null,this.maxValidDate=b.maxValidDate?b.maxValidDate instanceof Date?b.maxValidDate:(0,A._parseDateTimeFromString)(b.maxValidDate):null,this.minValidDate&&this.maxValidDate&&this.minValidDate>this.maxValidDate&&(0,F._warn)(84),this.filterModelFormatter=new s.DateFilterModelFormatter(this.dateFilterParams,this.getLocaleTextFunc.bind(this),this.optionsFactory)}createDateCompWrapper(b){let{userCompFactory:w,context:k}=this.beans,R=new v.DateCompWrapper(k,w,{onDateChanged:()=>this.onUiChanged(),filterParams:this.dateFilterParams,location:"filter"},b);return this.addDestroyFunc(()=>R.destroy()),R}setElementValue(b,w){b.setDate(w)}setElementDisplayed(b,w){b.setDisplayed(w)}setElementDisabled(b,w){b.setDisabled(w)}getDefaultFilterOptions(){return u.DEFAULT_DATE_FILTER_OPTIONS}createValueElement(){let b=(0,M._getDocument)(this.beans).createElement("div");return b.classList.add("ag-filter-body"),this.createFromToElement(b,this.eConditionPanelsFrom,this.dateConditionFromComps,"from"),this.createFromToElement(b,this.eConditionPanelsTo,this.dateConditionToComps,"to"),b}createFromToElement(b,w,k,R){let T=(0,M._getDocument)(this.beans).createElement("div");T.classList.add(`ag-filter-${R}`),T.classList.add(`ag-filter-date-${R}`),w.push(T),b.appendChild(T),k.push(this.createDateCompWrapper(T))}removeValueElements(b,w){this.removeDateComps(this.dateConditionFromComps,b,w),this.removeDateComps(this.dateConditionToComps,b,w),(0,f.removeItems)(this.eConditionPanelsFrom,b,w),(0,f.removeItems)(this.eConditionPanelsTo,b,w)}removeDateComps(b,w,k){(0,f.removeItems)(b,w,k).forEach(R=>R.destroy())}isValidDateValue(b){if(b===null)return!1;let{minValidDate:w,maxValidDate:k,minValidYear:R,maxValidYear:T}=this;if(w){if(b<w)return!1}else if(b.getUTCFullYear()<R)return!1;if(k){if(b>k)return!1}else if(b.getUTCFullYear()>T)return!1;return!0}isConditionUiComplete(b){if(!super.isConditionUiComplete(b))return!1;let w=!0;return this.forEachInput((k,R,T,z)=>{T!==b||!w||R>=z||(w=w&&this.isValidDateValue(k.getDate()))}),w}areSimpleModelsEqual(b,w){return b.dateFrom===w.dateFrom&&b.dateTo===w.dateTo&&b.type===w.type}createCondition(b){let w=this.getConditionType(b),k={},R=this.getValues(b);return R.length>0&&(k.dateFrom=(0,A._serialiseDate)(R[0])),R.length>1&&(k.dateTo=(0,A._serialiseDate)(R[1])),pe({dateFrom:null,dateTo:null,filterType:this.filterType,type:w},k)}resetPlaceholder(){let b=this.getLocaleTextFunc(),w=this.translate("dateFormatOoo"),k=b("ariaFilterValue","Filter Value");this.forEachInput(R=>{R.setInputPlaceholder(w),R.setInputAriaLabel(k)})}getInputs(b){let{dateConditionFromComps:w,dateConditionToComps:k}=this;return b>=w.length?[null,null]:[w[b],k[b]]}getValues(b){let w=[];return this.forEachPositionInput(b,(k,R,T,z)=>{R<z&&w.push(k.getDate())}),w}translate(b){return b==="lessThan"?super.translate("before"):b==="greaterThan"?super.translate("after"):super.translate(b)}getModelAsString(b){var w;return(w=this.filterModelFormatter.getModelAsString(b))!=null?w:""}}function g(m,b){return b==null||b<m?-1:b>m?1:0}x.DateFilter=d},4200:function(ne,x){Object.defineProperty(x,"__esModule",{value:!0}),x.DEFAULT_DATE_FILTER_OPTIONS=void 0,x.DEFAULT_DATE_FILTER_OPTIONS=["equals","notEqual","lessThan","greaterThan","inRange","blank","notBlank"]},4392:function(ne,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.DateFilterModelFormatter=void 0;let M=p(9827),A=p(2786);class F extends A.SimpleFilterModelFormatter{constructor(f,v,u){super(v,u),this.dateFilterParams=f}conditionToString(f,v){let{type:u}=f,{numberOfInputs:s}=v||{},r=u=="inRange"||s===2,d=(0,M._parseDateTimeFromString)(f.dateFrom),g=(0,M._parseDateTimeFromString)(f.dateTo),m=this.dateFilterParams.inRangeFloatingFilterDateFormat;return r?`${d!==null?(0,M._dateToFormattedString)(d,m):"null"}-${g!==null?(0,M._dateToFormattedString)(g,m):"null"}`:d!=null?(0,M._dateToFormattedString)(d,m):`${u}`}updateParams(f){super.updateParams(f),this.dateFilterParams=f.dateFilterParams}}x.DateFilterModelFormatter=F},3091:function(ne,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.DateFloatingFilter=void 0;let M=p(9827),A=p(3507),F=p(2043),D=p(5946),f=p(8020),v=p(361),u=p(3141),s=p(8713),r=p(4200),d=p(4392);class g extends u.SimpleFloatingFilter{constructor(){super(`
            <div class="ag-floating-filter-input" role="presentation">
                <ag-input-text-field data-ref="eReadOnlyText"></ag-input-text-field>
                <div data-ref="eDateWrapper" style="display: flex;"></div>
            </div>`,[D.AgInputTextFieldSelector]),this.eReadOnlyText=f.RefPlaceholder,this.eDateWrapper=f.RefPlaceholder}getDefaultOptions(){return r.DEFAULT_DATE_FILTER_OPTIONS}init(b){super.init(b),this.params=b,this.filterParams=b.filterParams,this.createDateComponent(),this.filterModelFormatter=new d.DateFilterModelFormatter(this.filterParams,this.getLocaleTextFunc.bind(this),this.optionsFactory);let w=this.getLocaleTextFunc();this.eReadOnlyText.setDisabled(!0).setInputAriaLabel(w("ariaDateFilterInput","Date Filter Input"))}refresh(b){super.refresh(b),this.params=b,this.filterParams=b.filterParams;let w=this.gos.addGridCommonParams(this.getDateComponentParams());this.dateComp.updateParams(w),this.filterModelFormatter.updateParams({optionsFactory:this.optionsFactory,dateFilterParams:this.filterParams}),this.updateCompOnModelChange(b.currentParentModel())}updateCompOnModelChange(b){let w=!this.readOnly&&this.canWeEditAfterModelFromParentFilter(b);if(this.setEditable(w),w){let k=b?(0,M._parseDateTimeFromString)(b.dateFrom):null;this.dateComp.setDate(k),this.eReadOnlyText.setValue("")}else this.eReadOnlyText.setValue(this.filterModelFormatter.getModelAsString(b)),this.dateComp.setDate(null)}setEditable(b){(0,A._setDisplayed)(this.eDateWrapper,b),(0,A._setDisplayed)(this.eReadOnlyText.getGui(),!b)}onParentModelChanged(b,w){w!=null&&w.afterFloatingFilter||w!=null&&w.afterDataChange||(super.setLastTypeFromModel(b),this.updateCompOnModelChange(b))}onDateChanged(){let b=this.dateComp.getDate(),w=(0,M._serialiseDate)(b);this.params.parentFilterInstance(k=>{if(k){let R=(0,M._parseDateTimeFromString)(w);k.onFloatingFilterChanged(this.lastType||null,R)}})}getDateComponentParams(){let{filterParams:b,column:w}=this.params,k=(0,v.getDebounceMs)(b,this.defaultDebounceMs);return{onDateChanged:(0,F._debounce)(this,this.onDateChanged.bind(this),k),filterParams:w.getColDef().filterParams,location:"floatingFilter"}}createDateComponent(){let{beans:{context:b,userCompFactory:w},eDateWrapper:k}=this;this.dateComp=new s.DateCompWrapper(b,w,this.getDateComponentParams(),k,R=>{R.setInputAriaLabel(this.getAriaLabel(this.params))}),this.addDestroyFunc(()=>this.dateComp.destroy())}}x.DateFloatingFilter=g},5459:function(ne,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.DefaultDateComponent=void 0;let M=p(7274),A=p(8667),F=p(9827),D=p(7764),f=p(5946),v=p(8020);class u extends v.Component{constructor(){super(`
            <div class="ag-filter-filter">
                <ag-input-text-field class="ag-date-filter" data-ref="eDateInput"></ag-input-text-field>
            </div>`,[f.AgInputTextFieldSelector]),this.eDateInput=v.RefPlaceholder,this.isApply=!1,this.applyOnFocusOut=!1}init(r){this.params=r,this.setParams(r);let d=this.eDateInput.getInputElement();this.addManagedListeners(d,{mouseDown:()=>{this.eDateInput.isDisabled()||this.usingSafariDatePicker||d.focus({preventScroll:!0})},input:this.handleInput.bind(this,!1),change:this.handleInput.bind(this,!0),focusout:this.handleFocusOut.bind(this)})}handleInput(r,d){if(d.target===(0,M._getActiveDomElement)(this.beans)&&!this.eDateInput.isDisabled())return this.isApply?(this.applyOnFocusOut=!r,void(r&&this.params.onDateChanged())):void(r||this.params.onDateChanged())}handleFocusOut(){this.applyOnFocusOut&&(this.applyOnFocusOut=!1,this.params.onDateChanged())}setParams(r){let d=this.eDateInput.getInputElement(),g=this.shouldUseBrowserDatePicker(r);this.usingSafariDatePicker=g&&(0,A._isBrowserSafari)(),d.type=g?"date":"text";let{minValidYear:m,maxValidYear:b,minValidDate:w,maxValidDate:k,buttons:R}=r.filterParams||{};if(w&&m&&(0,D._warn)(85),k&&b&&(0,D._warn)(86),w&&k){let[T,z]=[w,k].map(G=>G instanceof Date?G:(0,F._parseDateTimeFromString)(G));T&&z&&T.getTime()>z.getTime()&&(0,D._warn)(87)}w?w instanceof Date?d.min=(0,F._dateToFormattedString)(w):d.min=w:m&&(d.min=`${m}-01-01`),k?k instanceof Date?d.max=(0,F._dateToFormattedString)(k):d.max=k:b&&(d.max=`${b}-12-31`),this.isApply=r.location==="floatingFilter"&&!!(R!=null&&R.includes("apply"))}refresh(r){this.params=r,this.setParams(r)}getDate(){return(0,F._parseDateTimeFromString)(this.eDateInput.getValue())}setDate(r){this.eDateInput.setValue((0,F._serialiseDate)(r,!1))}setInputPlaceholder(r){this.eDateInput.setInputPlaceholder(r)}setInputAriaLabel(r){this.eDateInput.setAriaLabel(r)}setDisabled(r){this.eDateInput.setDisabled(r)}afterGuiAttached(r){r&&r.suppressFocus||this.eDateInput.getInputElement().focus({preventScroll:!0})}shouldUseBrowserDatePicker(r){var d,g;return(g=(d=r==null?void 0:r.filterParams)==null?void 0:d.browserDatePicker)!=null?g:!0}}x.DefaultDateComponent=u},8988:function(ne,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.NumberFilter=void 0;let M=p(5230),A=p(4422),F=p(8792),D=p(5946),f=p(5562),v=p(846),u=p(1862),s=p(730);class r extends f.ScalarFilter{constructor(){super("numberFilter"),this.eValuesFrom=[],this.eValuesTo=[],this.filterType="number",this.defaultDebounceMs=500}refresh(g){return this.numberFilterParams.allowedCharPattern===g.allowedCharPattern&&super.refresh(g)}mapValuesFromModel(g){let{filter:m,filterTo:b,type:w}=g||{};return[this.processValue(m),this.processValue(b)].slice(0,this.getNumberOfInputs(w))}comparator(){return(g,m)=>g===m?0:g<m?1:-1}setParams(g){this.numberFilterParams=g,super.setParams(g),this.filterModelFormatter=new u.NumberFilterModelFormatter(this.getLocaleTextFunc.bind(this),this.optionsFactory,this.numberFilterParams.numberFormatter)}getDefaultFilterOptions(){return v.DEFAULT_NUMBER_FILTER_OPTIONS}setElementValue(g,m,b){let{numberFormatter:w}=this.numberFilterParams,k=!b&&w?w(m!=null?m:null):m;super.setElementValue(g,k)}createValueElement(){let g=(0,s.getAllowedCharPattern)(this.numberFilterParams),m=document.createElement("div");return m.classList.add("ag-filter-body"),(0,M._setAriaRole)(m,"presentation"),this.createFromToElement(m,this.eValuesFrom,"from",g),this.createFromToElement(m,this.eValuesTo,"to",g),m}createFromToElement(g,m,b,w){let k=this.createManagedBean(w?new D.AgInputTextField({allowedCharPattern:w}):new F.AgInputNumberField);k.addCssClass(`ag-filter-${b}`),k.addCssClass("ag-filter-filter"),m.push(k),g.appendChild(k.getGui())}removeValueElements(g,m){let b=w=>this.removeComponents(w,g,m);b(this.eValuesFrom),b(this.eValuesTo)}getValues(g){let m=[];return this.forEachPositionInput(g,(b,w,k,R)=>{w<R&&m.push(this.processValue(this.stringToFloat(b.getValue())))}),m}areSimpleModelsEqual(g,m){return g.filter===m.filter&&g.filterTo===m.filterTo&&g.type===m.type}processValue(g){return g==null||isNaN(g)?null:g}stringToFloat(g){if(typeof g=="number")return g;let m=(0,A._makeNull)(g);m!=null&&m.trim()===""&&(m=null);let b=this.numberFilterParams.numberParser;return b?b(m):m==null||m.trim()==="-"?null:parseFloat(m)}createCondition(g){let m=this.getConditionType(g),b={filterType:this.filterType,type:m},w=this.getValues(g);return w.length>0&&(b.filter=w[0]),w.length>1&&(b.filterTo=w[1]),b}getInputs(g){let{eValuesFrom:m,eValuesTo:b}=this;return g>=m.length?[null,null]:[m[g],b[g]]}getModelAsString(g){var m;return(m=this.filterModelFormatter.getModelAsString(g))!=null?m:""}hasInvalidInputs(){let g=!1;return this.forEachInput(m=>{m.getInputElement().validity.valid||(g=!0)}),g}}x.NumberFilter=r},846:function(ne,x){Object.defineProperty(x,"__esModule",{value:!0}),x.DEFAULT_NUMBER_FILTER_OPTIONS=void 0,x.DEFAULT_NUMBER_FILTER_OPTIONS=["equals","notEqual","greaterThan","greaterThanOrEqual","lessThan","lessThanOrEqual","inRange","blank","notBlank"]},1862:function(ne,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.NumberFilterModelFormatter=void 0;let M=p(2786);class A extends M.SimpleFilterModelFormatter{conditionToString(D,f){let{numberOfInputs:v}=f||{},{filter:u,filterTo:s,type:r}=D,d=r=="inRange"||v===2,g=this.formatValue.bind(this);return d?`${g(u)}-${g(s)}`:u!=null?g(u):`${r}`}}x.NumberFilterModelFormatter=A},730:function(ne,x){Object.defineProperty(x,"__esModule",{value:!0}),x.getAllowedCharPattern=void 0,x.getAllowedCharPattern=function(p){let{allowedCharPattern:M}=p!=null?p:{};return M!=null?M:null}},4789:function(ne,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.NumberFloatingFilter=void 0;let M=p(8731),A=p(8792),F=p(5946),D=p(7287),f=p(8922),v=p(846),u=p(1862),s=p(730);class r extends M.BeanStub{constructor(){super(...arguments),this.onValueChanged=()=>{},this.numberInputActive=!0}setupGui(m){this.eNumberInput=this.createManagedBean(new A.AgInputNumberField),this.eTextInput=this.createManagedBean(new F.AgInputTextField),this.eTextInput.setDisabled(!0);let b=this.eNumberInput.getGui(),w=this.eTextInput.getGui();m.appendChild(b),m.appendChild(w),this.setupListeners(b,k=>this.onValueChanged(k)),this.setupListeners(w,k=>this.onValueChanged(k))}setEditable(m){this.numberInputActive=m,this.eNumberInput.setDisplayed(this.numberInputActive),this.eTextInput.setDisplayed(!this.numberInputActive)}setAutoComplete(m){this.eNumberInput.setAutoComplete(m),this.eTextInput.setAutoComplete(m)}getValue(){return this.getActiveInputElement().getValue()}setValue(m,b){this.getActiveInputElement().setValue(m,b)}getActiveInputElement(){return this.numberInputActive?this.eNumberInput:this.eTextInput}setValueChangedListener(m){this.onValueChanged=m}setupListeners(m,b){this.addManagedListeners(m,{input:b,keydown:b})}setParams(m){this.setAriaLabel(m.ariaLabel),m.autoComplete!==void 0&&this.setAutoComplete(m.autoComplete)}setAriaLabel(m){this.eNumberInput.setInputAriaLabel(m),this.eTextInput.setInputAriaLabel(m)}}class d extends f.TextInputFloatingFilter{init(m){var b;super.init(m),this.filterModelFormatter=new u.NumberFilterModelFormatter(this.getLocaleTextFunc.bind(this),this.optionsFactory,(b=m.filterParams)==null?void 0:b.numberFormatter)}refresh(m){(0,s.getAllowedCharPattern)(m.filterParams)!==this.allowedCharPattern&&this.recreateFloatingFilterInputService(m),super.refresh(m),this.filterModelFormatter.updateParams({optionsFactory:this.optionsFactory})}getDefaultOptions(){return v.DEFAULT_NUMBER_FILTER_OPTIONS}createFloatingFilterInputService(m){return this.allowedCharPattern=(0,s.getAllowedCharPattern)(m.filterParams),this.allowedCharPattern?this.createManagedBean(new D.FloatingFilterTextInputService({config:{allowedCharPattern:this.allowedCharPattern}})):this.createManagedBean(new r)}}x.NumberFloatingFilter=d},4824:function(ne,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.OptionsFactory=void 0;let M=p(7764);x.OptionsFactory=class{constructor(){this.customFilterOptions={}}init(A,F){this.filterOptions=A.filterOptions||F,this.mapCustomOptions(),this.selectDefaultItem(A)}mapCustomOptions(){let{filterOptions:A}=this;A&&A.forEach(F=>{typeof F!="string"&&([["displayKey"],["displayName"],["predicate","test"]].every(D=>!!D.some(f=>F[f]!=null)||((0,M._warn)(72,{keys:D}),!1))?this.customFilterOptions[F.displayKey]=F:this.filterOptions=A.filter(D=>D===F)||[])})}selectDefaultItem(A){let{filterOptions:F}=this;if(A.defaultOption)this.defaultOption=A.defaultOption;else if(F.length>=1){let D=F[0];typeof D=="string"?this.defaultOption=D:D.displayKey?this.defaultOption=D.displayKey:(0,M._warn)(73)}else(0,M._warn)(74)}getCustomOption(A){return this.customFilterOptions[A]}}},2245:function(ne,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.ProvidedFilter=void 0;let M=p(2147),A=p(3507),F=p(2043),D=p(4422),f=p(7764),v=p(8020),u=p(1772),s=p(5741),r=p(361);class d extends v.Component{constructor(m){super(),this.filterNameKey=m,this.applyActive=!1,this.hidePopup=null,this.debouncePending=!1,this.appliedModel=null,this.eFilterBody=v.RefPlaceholder,this.buttonListeners=[],this.defaultDebounceMs=0}postConstruct(){this.resetTemplate(),this.createManagedBean(new u.ManagedFocusFeature(this.getFocusableElement(),{handleKeyDown:this.handleKeyDown.bind(this)})),this.positionableFeature=new M.PositionableFeature(this.getPositionableElement(),{forcePopupParentAsOffsetParent:!0}),this.createBean(this.positionableFeature)}handleKeyDown(m){}getFilterTitle(){return this.translate(this.filterNameKey)}isFilterActive(){return!!this.appliedModel}resetTemplate(m){let b=this.getGui();b&&b.removeEventListener("submit",this.onFormSubmit);let w=`
            <form class="ag-filter-wrapper">
                <div class="ag-filter-body-wrapper ag-${this.getCssIdentifier()}-body-wrapper" data-ref="eFilterBody">
                    ${this.createBodyTemplate()}
                </div>
            </form>`;this.setTemplate(w,this.getAgComponents(),m),b=this.getGui(),b==null||b.addEventListener("submit",this.onFormSubmit)}isReadOnly(){return!!this.params.readOnly}init(m){this.setParams(m),this.resetUiToDefaults(!0).then(()=>{this.updateUiVisibility(),this.setupOnBtApplyDebounce()})}setParams(m){this.params=m,this.applyActive=(0,r.isUseApplyButton)(m),this.resetButtonsPanel(m)}updateParams(m){this.params=m,this.applyActive=(0,r.isUseApplyButton)(m),this.resetUiToActiveModel(this.getModel(),()=>{this.updateUiVisibility(),this.setupOnBtApplyDebounce()})}resetButtonsPanel(m,b){let{buttons:w,readOnly:k}=b!=null?b:{},{buttons:R,readOnly:T}=m;if(k===T&&(0,D._jsonEquals)(w,R))return;let z=R&&R.length>0&&!this.isReadOnly();if(this.eButtonsPanel?((0,A._clearElement)(this.eButtonsPanel),this.buttonListeners.forEach(X=>X()),this.buttonListeners=[]):z&&(this.eButtonsPanel=document.createElement("div"),this.eButtonsPanel.classList.add("ag-filter-apply-panel")),!z)return void(this.eButtonsPanel&&(0,A._removeFromParent)(this.eButtonsPanel));let G=document.createDocumentFragment(),U=X=>{let Q,oe=X?this.translate(`${X}Filter`):void 0;switch(X){case"apply":Q=ye=>this.onBtApply(!1,!1,ye);break;case"clear":Q=()=>this.onBtClear();break;case"reset":Q=()=>this.onBtReset();break;case"cancel":Q=ye=>{this.onBtCancel(ye)};break;default:return void(0,f._warn)(75)}let le=X==="apply"?"submit":"button",fe=(0,A._loadTemplate)(`<button
                    type="${le}"
                    data-ref="${X}FilterButton"
                    class="ag-button ag-standard-button ag-filter-apply-panel-button"
                >${oe}
                </button>`);this.buttonListeners.push(...this.addManagedElementListeners(fe,{click:Q})),G.append(fe)};R.forEach(X=>U(X)),this.eButtonsPanel.append(G),this.getGui().appendChild(this.eButtonsPanel)}setupOnBtApplyDebounce(){let m=(0,r.getDebounceMs)(this.params,this.defaultDebounceMs),b=(0,F._debounce)(this,this.checkApplyDebounce.bind(this),m);this.onBtApplyDebounce=()=>{this.debouncePending=!0,b()}}checkApplyDebounce(){this.debouncePending&&(this.debouncePending=!1,this.onBtApply())}getModel(){var m;return(m=this.appliedModel)!=null?m:null}setModel(m){return(m!=null?this.setModelIntoUi(m):this.resetUiToDefaults()).then(()=>{this.updateUiVisibility(),this.applyModel("api")})}onBtCancel(m){this.resetUiToActiveModel(this.getModel(),()=>{this.handleCancelEnd(m)})}handleCancelEnd(m){this.params.closeOnApply&&this.close(m)}resetUiToActiveModel(m,b){let w=()=>{this.onUiChanged(!1,"prevent"),b==null||b()};m!=null?this.setModelIntoUi(m).then(w):this.resetUiToDefaults().then(w)}onBtClear(){this.resetUiToDefaults().then(()=>this.onUiChanged())}onBtReset(){this.onBtClear(),this.onBtApply()}applyModel(m="api"){let b=this.getModelFromUi();if(!this.isModelValid(b))return!1;let w=this.appliedModel;return this.appliedModel=b,!this.areModelsEqual(w,b)}isModelValid(m){return!0}onFormSubmit(m){m.preventDefault()}onBtApply(m=!1,b=!1,w){if(w&&w.preventDefault(),this.applyModel(b?"rowDataUpdated":"ui")){let R="columnFilter";this.params.filterChangedCallback({afterFloatingFilter:m,afterDataChange:b,source:R})}let{closeOnApply:k}=this.params;k&&this.applyActive&&!m&&!b&&this.close(w)}onNewRowsLoaded(){}close(m){if(!this.hidePopup)return;let b=m,w=b&&b.key,k;w!=="Enter"&&w!=="Space"||(k={keyboardEvent:b}),this.hidePopup(k),this.hidePopup=null}onUiChanged(m=!1,b){if(this.updateUiVisibility(),this.params.filterModifiedCallback(),this.applyActive&&!this.isReadOnly()){let w=this.isModelValid(this.getModelFromUi()),k=this.queryForHtmlElement('[data-ref="applyFilterButton"]');k&&(0,A._setDisabled)(k,!w)}m&&!b||b==="immediately"?this.onBtApply(m):(this.applyActive||b)&&b!=="debounce"||this.onBtApplyDebounce()}afterGuiAttached(m){m&&(this.hidePopup=m.hidePopup),this.refreshFilterResizer(m==null?void 0:m.container)}refreshFilterResizer(m){let{positionableFeature:b,gos:w}=this;!b||m==="toolPanel"||(m==="floatingFilter"||m==="columnFilter"?(b.restoreLastSize(),b.setResizable(w.get("enableRtl")?{bottom:!0,bottomLeft:!0,left:!0}:{bottom:!0,bottomRight:!0,right:!0})):(b.removeSizeFromEl(),b.setResizable(!1)),b.constrainSizeToAvailableHeight(!0))}afterGuiDetached(){var m;this.checkApplyDebounce(),(m=this.positionableFeature)==null||m.constrainSizeToAvailableHeight(!1)}refresh(m){let b=this.params;return this.params=m,this.resetButtonsPanel(m,b),!0}destroy(){let m=this.getGui();m&&m.removeEventListener("submit",this.onFormSubmit),this.hidePopup=null,this.positionableFeature&&(this.positionableFeature=this.destroyBean(this.positionableFeature)),this.appliedModel=null,super.destroy()}translate(m){return this.getLocaleTextFunc()(m,s.FILTER_LOCALE_TEXT[m])}getCellValue(m){return this.params.getValue(m)}getPositionableElement(){return this.eFilterBody}}x.ProvidedFilter=d},5562:function(ne,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.ScalarFilter=void 0;let M=p(7764),A=p(5220),F=p(7535);class D extends A.SimpleFilter{setParams(v){super.setParams(v),this.scalarFilterParams=v}evaluateNullValue(v){let{includeBlanksInEquals:u,includeBlanksInNotEqual:s,includeBlanksInGreaterThan:r,includeBlanksInLessThan:d,includeBlanksInRange:g}=this.scalarFilterParams;switch(v){case"equals":if(u)return!0;break;case"notEqual":if(s)return!0;break;case"greaterThan":case"greaterThanOrEqual":if(r)return!0;break;case"lessThan":case"lessThanOrEqual":if(d)return!0;break;case"inRange":if(g)return!0;break;case"blank":return!0;case"notBlank":return!1}return!1}evaluateNonNullValue(v,u,s){let r=this.comparator(),d=v[0]!=null?r(v[0],u):0;switch(s.type){case"equals":return d===0;case"notEqual":return d!==0;case"greaterThan":return d>0;case"greaterThanOrEqual":return d>=0;case"lessThan":return d<0;case"lessThanOrEqual":return d<=0;case"inRange":{let g=r(v[1],u);return this.scalarFilterParams.inRangeInclusive?d>=0&&g<=0:d>0&&g<0}case"blank":return(0,F.isBlank)(u);case"notBlank":return!(0,F.isBlank)(u);default:return(0,M._warn)(76,{filterModelType:s.type}),!0}}}x.ScalarFilter=D},5220:function(ne,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.SimpleFilter=void 0;let M=p(1502),A=p(3507),F=p(7990),D=p(7764),f=p(8085),v=p(7336),u=p(159),s=p(8020),r=p(4824),d=p(2245),g=p(7535);class m extends d.ProvidedFilter{constructor(){super(...arguments),this.eTypes=[],this.eJoinOperatorPanels=[],this.eJoinOperatorsAnd=[],this.eJoinOperatorsOr=[],this.eConditionBodies=[],this.listener=()=>this.onUiChanged(),this.lastUiCompletePosition=null,this.joinOperatorId=0}getNumberOfInputs(w){let k=this.optionsFactory.getCustomOption(w);if(k){let{numberOfInputs:R}=k;return R!=null?R:1}return w&&["empty","notBlank","blank"].indexOf(w)>=0?0:w==="inRange"?2:1}onFloatingFilterChanged(w,k){this.setTypeFromFloatingFilter(w),this.setValueFromFloatingFilter(k),this.onUiChanged(!0)}setTypeFromFloatingFilter(w){this.eTypes.forEach((k,R)=>{let T=R===0?w:this.optionsFactory.defaultOption;k.setValue(T,!0)})}getModelFromUi(){let w=this.getUiCompleteConditions();return w.length===0?null:this.maxNumConditions>1&&w.length>1?{filterType:this.filterType,operator:this.getJoinOperator(),conditions:w}:w[0]}getConditionTypes(){return this.eTypes.map(w=>w.getValue())}getConditionType(w){return this.eTypes[w].getValue()}getJoinOperator(){let{eJoinOperatorsOr:w,defaultJoinOperator:k}=this;return w.length===0?k:w[0].getValue()===!0?"OR":"AND"}areModelsEqual(w,k){if(!w&&!k)return!0;if(!w&&k||w&&!k)return!1;let R=!w.operator,T=!k.operator;if(!R&&T||R&&!T)return!1;let z;if(R){let G=w,U=k;z=this.areSimpleModelsEqual(G,U)}else{let G=w,U=k;z=G.operator===U.operator&&(0,M._areEqual)(G.conditions,U.conditions,(X,Q)=>this.areSimpleModelsEqual(X,Q))}return z}shouldRefresh(w){var z,G,U;let k=this.getModel(),R=k?(z=k.conditions)!=null?z:[k]:null,T=(U=(G=w.filterOptions)==null?void 0:G.map(X=>typeof X=="string"?X:X.displayKey))!=null?U:this.getDefaultFilterOptions();return!(R&&!R.every(X=>T.find(Q=>Q===X.type)!==void 0))&&!(typeof w.maxNumConditions=="number"&&R&&R.length>w.maxNumConditions)}refresh(w){return this.shouldRefresh(w)?!!super.refresh(w)&&(this.setParams(w),this.removeConditionsAndOperators(0),this.createOption(),this.setModel(this.getModel()),!0):!1}setModelIntoUi(w){if(w.operator){let k=w,R=k.conditions;R==null&&(R=[],(0,D._warn)(77));let T=(0,g.validateAndUpdateConditions)(R,this.maxNumConditions),z=this.getNumConditions();if(T<z)this.removeConditionsAndOperators(T);else if(T>z)for(let U=z;U<T;U++)this.createJoinOperatorPanel(),this.createOption();let G=k.operator==="OR";this.eJoinOperatorsAnd.forEach(U=>U.setValue(!G,!0)),this.eJoinOperatorsOr.forEach(U=>U.setValue(G,!0)),R.forEach((U,X)=>{this.eTypes[X].setValue(U.type,!0),this.setConditionIntoUi(U,X)})}else{let k=w;this.getNumConditions()>1&&this.removeConditionsAndOperators(1),this.eTypes[0].setValue(k.type,!0),this.setConditionIntoUi(k,0)}return this.lastUiCompletePosition=this.getNumConditions()-1,this.createMissingConditionsAndOperators(),this.onUiChanged(),F.AgPromise.resolve()}doesFilterPass(w){var z;let k=this.getModel();if(k==null)return!0;let{operator:R}=k,T=[];if(R){let G=k;T.push(...(z=G.conditions)!=null?z:[])}else T.push(k);return T[R&&R==="OR"?"some":"every"](G=>this.individualConditionPasses(w,G))}setParams(w){super.setParams(w),this.setNumConditions(w),this.defaultJoinOperator=(0,g.getDefaultJoinOperator)(w.defaultJoinOperator),this.filterPlaceholder=w.filterPlaceholder,this.optionsFactory=new r.OptionsFactory,this.optionsFactory.init(w,this.getDefaultFilterOptions()),this.createFilterListOptions(),this.createOption(),this.createMissingConditionsAndOperators(),this.isReadOnly()&&this.eFilterBody.setAttribute("tabindex","-1")}setNumConditions(w){var T,z;let k=(T=w.maxNumConditions)!=null?T:2;k<1&&((0,D._warn)(79),k=1),this.maxNumConditions=k;let R=(z=w.numAlwaysVisibleConditions)!=null?z:1;R<1&&((0,D._warn)(80),R=1),R>k&&((0,D._warn)(81),R=k),this.numAlwaysVisibleConditions=R}createOption(){let w=this.createManagedBean(new u.AgSelect);this.eTypes.push(w),w.addCssClass("ag-filter-select"),this.eFilterBody.appendChild(w.getGui());let k=this.createValueElement();this.eConditionBodies.push(k),this.eFilterBody.appendChild(k),this.putOptionsIntoDropdown(w),this.resetType(w);let R=this.getNumConditions()-1;this.forEachPositionInput(R,T=>this.resetInput(T)),this.addChangedListeners(w,R)}createJoinOperatorPanel(){let w=document.createElement("div");this.eJoinOperatorPanels.push(w),w.classList.add("ag-filter-condition");let k=this.createJoinOperator(this.eJoinOperatorsAnd,w,"and"),R=this.createJoinOperator(this.eJoinOperatorsOr,w,"or");this.eFilterBody.appendChild(w);let T=this.eJoinOperatorPanels.length-1,z=this.joinOperatorId++;this.resetJoinOperatorAnd(k,T,z),this.resetJoinOperatorOr(R,T,z),this.isReadOnly()||(k.onValueChange(this.listener),R.onValueChange(this.listener))}createJoinOperator(w,k,R){let T=this.createManagedBean(new v.AgRadioButton);w.push(T);let z="ag-filter-condition-operator";return T.addCssClass(z),T.addCssClass(`${z}-${R}`),k.appendChild(T.getGui()),T}createFilterListOptions(){this.filterListOptions=this.optionsFactory.filterOptions.map(w=>typeof w=="string"?this.createBoilerplateListOption(w):this.createCustomListOption(w))}putOptionsIntoDropdown(w){let{filterListOptions:k}=this;k.forEach(R=>{w.addOption(R)}),w.setDisabled(k.length<=1)}createBoilerplateListOption(w){return{value:w,text:this.translate(w)}}createCustomListOption(w){let{displayKey:k}=w,R=this.optionsFactory.getCustomOption(w.displayKey);return{value:k,text:R?this.getLocaleTextFunc()(R.displayKey,R.displayName):this.translate(k)}}createBodyTemplate(){return""}getAgComponents(){return[]}getCssIdentifier(){return"simple-filter"}updateUiVisibility(){let w=this.getJoinOperator();this.updateNumConditions(),this.updateConditionStatusesAndValues(this.lastUiCompletePosition,w)}updateNumConditions(){var R;let w=-1,k=!0;for(let T=0;T<this.getNumConditions();T++)this.isConditionUiComplete(T)?w=T:k=!1;if(this.shouldAddNewConditionAtEnd(k))this.createJoinOperatorPanel(),this.createOption();else{let T=(R=this.lastUiCompletePosition)!=null?R:this.getNumConditions()-2;if(w<T){this.removeConditionsAndOperators(T+1);let z=w+1,G=T-z;G>0&&this.removeConditionsAndOperators(z,G),this.createMissingConditionsAndOperators()}}this.lastUiCompletePosition=w}updateConditionStatusesAndValues(w,k){this.eTypes.forEach((T,z)=>{let G=this.isConditionDisabled(z,w);T.setDisabled(G||this.filterListOptions.length<=1),z===1&&((0,A._setDisabled)(this.eJoinOperatorPanels[0],G),this.eJoinOperatorsAnd[0].setDisabled(G),this.eJoinOperatorsOr[0].setDisabled(G))}),this.eConditionBodies.forEach((T,z)=>{(0,A._setDisplayed)(T,this.isConditionBodyVisible(z))});let R=(k!=null?k:this.getJoinOperator())==="OR";this.eJoinOperatorsAnd.forEach(T=>{T.setValue(!R,!0)}),this.eJoinOperatorsOr.forEach(T=>{T.setValue(R,!0)}),this.forEachInput((T,z,G,U)=>{this.setElementDisplayed(T,z<U),this.setElementDisabled(T,this.isConditionDisabled(G,w))}),this.resetPlaceholder()}shouldAddNewConditionAtEnd(w){return w&&this.getNumConditions()<this.maxNumConditions&&!this.isReadOnly()}removeConditionsAndOperators(w,k){if(w>=this.getNumConditions())return;let{eTypes:R,eConditionBodies:T,eJoinOperatorPanels:z,eJoinOperatorsAnd:G,eJoinOperatorsOr:U}=this;this.removeComponents(R,w,k),this.removeElements(T,w,k),this.removeValueElements(w,k);let X=Math.max(w-1,0);this.removeElements(z,X,k),this.removeComponents(G,X,k),this.removeComponents(U,X,k)}removeElements(w,k,R){(0,g.removeItems)(w,k,R).forEach(T=>(0,A._removeFromParent)(T))}removeComponents(w,k,R){(0,g.removeItems)(w,k,R).forEach(T=>{(0,A._removeFromParent)(T.getGui()),this.destroyBean(T)})}afterGuiAttached(w){var k;if(super.afterGuiAttached(w),this.resetPlaceholder(),!(w!=null&&w.suppressFocus)){let{eFilterBody:R,eTypes:T}=this,z;if(!this.isReadOnly()){let G=this.getInputs(0)[0];z=G instanceof f.AgAbstractInputField&&this.isConditionBodyVisible(0)?G.getInputElement():(k=T[0])==null?void 0:k.getFocusableElement()}(z!=null?z:R).focus({preventScroll:!0})}}afterGuiDetached(){super.afterGuiDetached();let w=this.getModel();this.resetUiToActiveModel(w);let k=-1,R=-1,T=!1,z=this.getJoinOperator();for(let U=this.getNumConditions()-1;U>=0;U--)if(this.isConditionUiComplete(U))k===-1&&(k=U,R=U);else{let X=U<k;(U>=this.numAlwaysVisibleConditions&&!this.isConditionUiComplete(U-1)||X)&&(this.removeConditionsAndOperators(U,1),T=!0,X&&R--)}let G=!1;this.getNumConditions()<this.numAlwaysVisibleConditions&&(this.createMissingConditionsAndOperators(),G=!0),this.shouldAddNewConditionAtEnd(R===this.getNumConditions()-1)&&(this.createJoinOperatorPanel(),this.createOption(),G=!0),G&&this.updateConditionStatusesAndValues(R,z),T&&this.updateJoinOperatorsDisabled(),this.lastUiCompletePosition=R}getPlaceholderText(w,k){let R=this.translate(w);if(typeof this.filterPlaceholder=="function"){let T=this.eTypes[k].getValue(),z=this.translate(T);R=this.filterPlaceholder({filterOptionKey:T,filterOption:z,placeholder:R})}else typeof this.filterPlaceholder=="string"&&(R=this.filterPlaceholder);return R}resetPlaceholder(){let w=this.getLocaleTextFunc();this.forEachInput((k,R,T,z)=>{if(!(k instanceof f.AgAbstractInputField))return;let G=R===0&&z>1?"inRangeStart":R===0?"filterOoo":"inRangeEnd",U=R===0&&z>1?w("ariaFilterFromValue","Filter from value"):R===0?w("ariaFilterValue","Filter Value"):w("ariaFilterToValue","Filter to Value");k.setInputPlaceholder(this.getPlaceholderText(G,T)),k.setInputAriaLabel(U)})}setElementValue(w,k,R){w instanceof f.AgAbstractInputField&&w.setValue(k!=null?String(k):null,!0)}setElementDisplayed(w,k){w instanceof s.Component&&(0,A._setDisplayed)(w.getGui(),k)}setElementDisabled(w,k){w instanceof s.Component&&(0,A._setDisabled)(w.getGui(),k)}attachElementOnChange(w,k){w instanceof f.AgAbstractInputField&&w.onValueChange(k)}forEachInput(w){this.getConditionTypes().forEach((k,R)=>{this.forEachPositionTypeInput(R,k,w)})}forEachPositionInput(w,k){let R=this.getConditionType(w);this.forEachPositionTypeInput(w,R,k)}forEachPositionTypeInput(w,k,R){let T=this.getNumberOfInputs(k),z=this.getInputs(w);for(let G=0;G<z.length;G++){let U=z[G];U!=null&&R(U,G,w,T)}}isConditionDisabled(w,k){return!!this.isReadOnly()||w!==0&&w>k+1}isConditionBodyVisible(w){let k=this.getConditionType(w);return this.getNumberOfInputs(k)>0}isConditionUiComplete(w){return w>=this.getNumConditions()?!1:this.getConditionType(w)!=="empty"&&!this.getValues(w).some(k=>k==null)}getNumConditions(){return this.eTypes.length}getUiCompleteConditions(){let w=[];for(let k=0;k<this.getNumConditions();k++)this.isConditionUiComplete(k)&&w.push(this.createCondition(k));return w}createMissingConditionsAndOperators(){if(!this.isReadOnly())for(let w=this.getNumConditions();w<this.numAlwaysVisibleConditions;w++)this.createJoinOperatorPanel(),this.createOption()}resetUiToDefaults(w){return this.removeConditionsAndOperators(this.isReadOnly()?1:this.numAlwaysVisibleConditions),this.eTypes.forEach(k=>this.resetType(k)),this.eJoinOperatorsAnd.forEach((k,R)=>this.resetJoinOperatorAnd(k,R,this.joinOperatorId+R)),this.eJoinOperatorsOr.forEach((k,R)=>this.resetJoinOperatorOr(k,R,this.joinOperatorId+R)),this.joinOperatorId++,this.forEachInput(k=>this.resetInput(k)),this.resetPlaceholder(),this.createMissingConditionsAndOperators(),this.lastUiCompletePosition=null,w||this.onUiChanged(),F.AgPromise.resolve()}resetType(w){let k=this.getLocaleTextFunc()("ariaFilteringOperator","Filtering operator");w.setValue(this.optionsFactory.defaultOption,!0).setAriaLabel(k).setDisabled(this.isReadOnly()||this.filterListOptions.length<=1)}resetJoinOperatorAnd(w,k,R){this.resetJoinOperator(w,k,this.defaultJoinOperator==="AND",this.translate("andCondition"),R)}resetJoinOperatorOr(w,k,R){this.resetJoinOperator(w,k,this.defaultJoinOperator==="OR",this.translate("orCondition"),R)}resetJoinOperator(w,k,R,T,z){this.updateJoinOperatorDisabled(w.setValue(R,!0).setName(`ag-simple-filter-and-or-${this.getCompId()}-${z}`).setLabel(T),k)}updateJoinOperatorsDisabled(){let w=(k,R)=>this.updateJoinOperatorDisabled(k,R);this.eJoinOperatorsAnd.forEach(w),this.eJoinOperatorsOr.forEach(w)}updateJoinOperatorDisabled(w,k){w.setDisabled(this.isReadOnly()||k>0)}resetInput(w){this.setElementValue(w,null),this.setElementDisabled(w,this.isReadOnly())}setConditionIntoUi(w,k){let R=this.mapValuesFromModel(w);this.forEachInput((T,z,G)=>{G===k&&this.setElementValue(T,R[z]!=null?R[z]:null)})}setValueFromFloatingFilter(w){this.forEachInput((k,R,T)=>{this.setElementValue(k,R===0&&T===0?w:null,!0)})}addChangedListeners(w,k){this.isReadOnly()||(w.onValueChange(this.listener),this.forEachPositionInput(k,R=>{this.attachElementOnChange(R,this.listener)}))}individualConditionPasses(w,k){let R=this.getCellValue(w.node),T=this.mapValuesFromModel(k),z=this.optionsFactory.getCustomOption(k.type),G=(0,g.evaluateCustomFilter)(z,T,R);return G!=null?G:R==null?this.evaluateNullValue(k.type):this.evaluateNonNullValue(T,R,k,w)}hasInvalidInputs(){return!1}}x.SimpleFilter=m},2786:function(ne,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.SimpleFilterModelFormatter=void 0;let M=p(5741);x.SimpleFilterModelFormatter=class{constructor(A,F,D){this.getLocaleTextFunc=A,this.optionsFactory=F,this.valueFormatter=D}getModelAsString(A){var f;if(!A)return null;let F=A.operator!=null,D=this.getLocaleTextFunc();if(F){let v=A,u=((f=v.conditions)!=null?f:[]).map(r=>this.getModelAsString(r)),s=v.operator==="AND"?"andCondition":"orCondition";return u.join(` ${D(s,M.FILTER_LOCALE_TEXT[s])} `)}if(A.type==="blank"||A.type==="notBlank")return D(A.type,A.type);{let v=A,u=this.optionsFactory.getCustomOption(v.type),{displayKey:s,displayName:r,numberOfInputs:d}=u||{};return s&&r&&d===0?(D(s,r),r):this.conditionToString(v,u)}}updateParams(A){this.optionsFactory=A.optionsFactory}formatValue(A){var D;let F=this.valueFormatter;return F?(D=F(A!=null?A:null))!=null?D:"":String(A)}}},7535:function(ne,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.validateAndUpdateConditions=x.evaluateCustomFilter=x.getDefaultJoinOperator=x.isBlank=x.removeItems=void 0;let M=p(7764);x.removeItems=function(A,F,D){return D==null?A.splice(F):A.splice(F,D)},x.isBlank=function(A){return A==null||typeof A=="string"&&A.trim().length===0},x.getDefaultJoinOperator=function(A){return A==="AND"||A==="OR"?A:"AND"},x.evaluateCustomFilter=function(A,F,D){if(A==null)return;let{predicate:f}=A;return f==null||F.some(v=>v==null)?void 0:f(F,D)},x.validateAndUpdateConditions=function(A,F){let D=A.length;return D>F&&(A.splice(F),(0,M._warn)(78),D=F),D}},2811:function(ne,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.TextFilter=void 0;let M=p(5230),A=p(4422),F=p(5946),D=p(5220),f=p(7535),v=p(650),u=p(330),s=p(2470);class r extends D.SimpleFilter{constructor(){super("textFilter"),this.filterType="text",this.defaultFormatter=g=>g,this.defaultLowercaseFormatter=g=>g==null?null:g.toString().toLowerCase(),this.defaultMatcher=({filterOption:g,value:m,filterText:b})=>{if(b==null)return!1;switch(g){case"contains":return m.indexOf(b)>=0;case"notContains":return m.indexOf(b)<0;case"equals":return m===b;case"notEqual":return m!=b;case"startsWith":return m.indexOf(b)===0;case"endsWith":{let w=m.lastIndexOf(b);return w>=0&&w===m.length-b.length}default:return!1}},this.eValuesFrom=[],this.eValuesTo=[],this.defaultDebounceMs=500}setParams(g){this.textFilterParams=g,super.setParams(g),this.matcher=g.textMatcher||this.defaultMatcher,this.formatter=g.textFormatter||(g.caseSensitive?this.defaultFormatter:this.defaultLowercaseFormatter),this.filterModelFormatter=new u.TextFilterModelFormatter(this.getLocaleTextFunc.bind(this),this.optionsFactory)}createCondition(g){let m=this.getConditionType(g),b={filterType:this.filterType,type:m},w=this.getValuesWithSideEffects(g,!0);return w.length>0&&(b.filter=w[0]),w.length>1&&(b.filterTo=w[1]),b}areSimpleModelsEqual(g,m){return g.filter===m.filter&&g.filterTo===m.filterTo&&g.type===m.type}getInputs(g){let{eValuesFrom:m,eValuesTo:b}=this;return g>=m.length?[null,null]:[m[g],b[g]]}getValues(g){return this.getValuesWithSideEffects(g,!1)}getValuesWithSideEffects(g,m){let b=[];return this.forEachPositionInput(g,(w,k,R,T)=>{var z;if(k<T){let G=(0,A._makeNull)(w.getValue());m&&this.textFilterParams.trimInput&&(G=(z=(0,s.trimInputForFilter)(G))!=null?z:null,w.setValue(G,!0)),b.push(G)}}),b}getDefaultFilterOptions(){return v.DEFAULT_TEXT_FILTER_OPTIONS}createValueElement(){let g=document.createElement("div");return g.classList.add("ag-filter-body"),(0,M._setAriaRole)(g,"presentation"),this.createFromToElement(g,this.eValuesFrom,"from"),this.createFromToElement(g,this.eValuesTo,"to"),g}createFromToElement(g,m,b){let w=this.createManagedBean(new F.AgInputTextField);w.addCssClass(`ag-filter-${b}`),w.addCssClass("ag-filter-filter"),m.push(w),g.appendChild(w.getGui())}removeValueElements(g,m){let b=w=>this.removeComponents(w,g,m);b(this.eValuesFrom),b(this.eValuesTo)}mapValuesFromModel(g){let{filter:m,filterTo:b,type:w}=g||{};return[m||null,b||null].slice(0,this.getNumberOfInputs(w))}evaluateNullValue(g){return!!g&&["notEqual","notContains","blank"].indexOf(g)>=0}evaluateNonNullValue(g,m,b,w){let k=g.map(oe=>this.formatter(oe))||[],R=this.formatter(m),{api:T,colDef:z,column:G,context:U,textFormatter:X}=this.textFilterParams;if(b.type==="blank")return(0,f.isBlank)(m);if(b.type==="notBlank")return!(0,f.isBlank)(m);let Q={api:T,colDef:z,column:G,context:U,node:w.node,data:w.data,filterOption:b.type,value:R,textFormatter:X};return k.some(oe=>this.matcher(et(pe({},Q),{filterText:oe})))}getModelAsString(g){var m;return(m=this.filterModelFormatter.getModelAsString(g))!=null?m:""}}x.TextFilter=r},650:function(ne,x){Object.defineProperty(x,"__esModule",{value:!0}),x.DEFAULT_TEXT_FILTER_OPTIONS=void 0,x.DEFAULT_TEXT_FILTER_OPTIONS=["contains","notContains","equals","notEqual","startsWith","endsWith","blank","notBlank"]},330:function(ne,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.TextFilterModelFormatter=void 0;let M=p(2786);class A extends M.SimpleFilterModelFormatter{conditionToString(D,f){let{numberOfInputs:v}=f||{},{filter:u,filterTo:s,type:r}=D;return r=="inRange"||v===2?`${u}-${s}`:u!=null?`${u}`:`${r}`}}x.TextFilterModelFormatter=A},2470:function(ne,x){Object.defineProperty(x,"__esModule",{value:!0}),x.trimInputForFilter=void 0,x.trimInputForFilter=function(p){let M=p==null?void 0:p.trim();return M===""?p:M}},8305:function(ne,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.TextFloatingFilter=void 0;let M=p(7287),A=p(8922),F=p(650),D=p(330);class f extends A.TextInputFloatingFilter{init(u){super.init(u),this.filterModelFormatter=new D.TextFilterModelFormatter(this.getLocaleTextFunc.bind(this),this.optionsFactory)}refresh(u){super.refresh(u),this.filterModelFormatter.updateParams({optionsFactory:this.optionsFactory})}getDefaultOptions(){return F.DEFAULT_TEXT_FILTER_OPTIONS}createFloatingFilterInputService(){return this.createManagedBean(new M.FloatingFilterTextInputService)}}x.TextFloatingFilter=f},5381:function(ne,x){Object.defineProperty(x,"__esModule",{value:!0}),x.resetQuickFilter=x.getQuickFilter=x.isQuickFilterPresent=void 0,x.isQuickFilterPresent=function(p){var M;return!!((M=p.filterManager)!=null&&M.isQuickFilterPresent())},x.getQuickFilter=function(p){return p.gos.get("quickFilterText")},x.resetQuickFilter=function(p){var M;(M=p.filterManager)==null||M.resetQuickFilterCache()}},1238:function(ne,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.QuickFilterService=void 0;let M=p(8731),A=p(4422),F=p(7764);class D extends M.BeanStub{constructor(){super(...arguments),this.beanName="quickFilter",this.quickFilter=null,this.quickFilterParts=null}postConstruct(){let v=this.resetCache.bind(this),u=this.gos;this.addManagedEventListeners({columnPivotModeChanged:v,newColumnsLoaded:v,columnRowGroupChanged:v,columnVisible:()=>{u.get("includeHiddenColumnsInQuickFilter")||this.resetCache()}}),this.addManagedPropertyListener("quickFilterText",s=>this.setFilter(s.currentValue)),this.addManagedPropertyListeners(["includeHiddenColumnsInQuickFilter","applyQuickFilterBeforePivotOrAgg"],()=>this.onColumnConfigChanged()),this.quickFilter=this.parseFilter(u.get("quickFilterText")),this.parser=u.get("quickFilterParser"),this.matcher=u.get("quickFilterMatcher"),this.setFilterParts(),this.addManagedPropertyListeners(["quickFilterMatcher","quickFilterParser"],()=>this.setParserAndMatcher())}refreshCols(){var w,k;let{autoColSvc:v,colModel:u,gos:s,pivotResultCols:r}=this.beans,d=u.isPivotMode(),g=v==null?void 0:v.getAutoCols(),m=u.getColDefCols(),b=(k=d&&!s.get("applyQuickFilterBeforePivotOrAgg")?(w=r==null?void 0:r.getPivotResultCols())==null?void 0:w.list:m)!=null?k:[];g&&(b=b.concat(g)),this.colsToUse=s.get("includeHiddenColumnsInQuickFilter")?b:b.filter(R=>R.isVisible()||R.isRowGroupActive())}isFilterPresent(){return this.quickFilter!==null}doesRowPass(v){let u=this.gos.get("cacheQuickFilter");return this.matcher?this.doesRowPassMatcher(u,v):this.quickFilterParts.every(s=>u?this.doesRowPassCache(v,s):this.doesRowPassNoCache(v,s))}resetCache(){this.beans.rowModel.forEachNode(v=>v.quickFilterAggregateText=null)}setFilterParts(){let{quickFilter:v,parser:u}=this;this.quickFilterParts=v?u?u(v):v.split(" "):null}parseFilter(v){return(0,A._exists)(v)?v.toUpperCase():null}setFilter(v){if(v!=null&&typeof v!="string")return void(0,F._warn)(70,{newFilter:v});let u=this.parseFilter(v);this.quickFilter!==u&&(this.quickFilter=u,this.setFilterParts(),this.dispatchLocalEvent({type:"quickFilterChanged"}))}setParserAndMatcher(){let v=this.gos.get("quickFilterParser"),u=this.gos.get("quickFilterMatcher"),s=v!==this.parser||u!==this.matcher;this.parser=v,this.matcher=u,s&&(this.setFilterParts(),this.dispatchLocalEvent({type:"quickFilterChanged"}))}onColumnConfigChanged(){this.refreshCols(),this.resetCache(),this.isFilterPresent()&&this.dispatchLocalEvent({type:"quickFilterChanged"})}doesRowPassNoCache(v,u){return this.colsToUse.some(s=>{let r=this.getTextForColumn(s,v);return(0,A._exists)(r)&&r.indexOf(u)>=0})}doesRowPassCache(v,u){return this.checkGenerateAggText(v),v.quickFilterAggregateText.indexOf(u)>=0}doesRowPassMatcher(v,u){let s;v?(this.checkGenerateAggText(u),s=u.quickFilterAggregateText):s=this.getAggText(u);let{quickFilterParts:r,matcher:d}=this;return d(r,s)}checkGenerateAggText(v){v.quickFilterAggregateText||(v.quickFilterAggregateText=this.getAggText(v))}getTextForColumn(v,u){let s=this.beans.filterValueSvc.getValue(v,u),r=v.getColDef();if(r.getQuickFilterText){let d=this.gos.addGridCommonParams({value:s,node:u,data:u.data,column:v,colDef:r});s=r.getQuickFilterText(d)}return(0,A._exists)(s)?s.toString().toUpperCase():null}getAggText(v){let u=[];return this.colsToUse.forEach(s=>{let r=this.getTextForColumn(s,v);(0,A._exists)(r)&&u.push(r)}),u.join(`
`)}}x.QuickFilterService=D},3245:function(ne,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.FocusService=void 0;let M=p(8731),A=p(6257),F=p(7274),D=p(3534),f=p(1323),v=p(3990),u=p(7632),s=p(1502),r=p(2331),d=p(4422);class g extends M.BeanStub{constructor(){super(...arguments),this.beanName="focusSvc"}wireBeans(b){this.colModel=b.colModel,this.visibleCols=b.visibleCols,this.rowRenderer=b.rowRenderer,this.navigation=b.navigation,this.filterManager=b.filterManager,this.overlays=b.overlays}postConstruct(){let b=this.clearFocusedCell.bind(this);this.addManagedEventListeners({columnPivotModeChanged:b,newColumnsLoaded:this.onColumnEverythingChanged.bind(this),columnGroupOpened:b,columnRowGroupChanged:b}),this.addDestroyFunc((0,r._registerKeyboardFocusEvents)(this.beans))}onColumnEverythingChanged(){if(!this.focusedCell)return;let b=this.focusedCell.column,w=this.colModel.getCol(b.getId());b!==w&&this.clearFocusedCell()}getFocusCellToUseAfterRefresh(){return this.gos.get("suppressFocusAfterRefresh")||!this.focusedCell||this.isDomDataMissingInHierarchy((0,F._getActiveDomElement)(this.beans),u.DOM_DATA_KEY_ROW_CTRL)?null:this.focusedCell}getFocusHeaderToUseAfterRefresh(){return this.gos.get("suppressFocusAfterRefresh")||!this.focusedHeader||this.isDomDataMissingInHierarchy((0,F._getActiveDomElement)(this.beans),D.DOM_DATA_KEY_HEADER_CTRL)?null:this.focusedHeader}isDomDataMissingInHierarchy(b,w){let k=b;for(;k;){if((0,F._getDomData)(this.gos,k,w))return!1;k=k.parentNode}return!0}getFocusedCell(){return this.focusedCell}shouldRestoreFocus(b){return!!this.isCellRestoreFocused(b)&&(setTimeout(()=>{this.restoredFocusedCell=null},0),!0)}clearRestoreFocus(){this.restoredFocusedCell=null,this.awaitRestoreFocusedCell=!1}restoreFocusedCell(b,w){this.awaitRestoreFocusedCell=!0,setTimeout(()=>{this.awaitRestoreFocusedCell&&(this.setRestoreFocusedCell(b),w())})}isCellRestoreFocused(b){return this.restoredFocusedCell!=null&&(0,A._areCellsEqual)(b,this.restoredFocusedCell)}setRestoreFocusedCell(b){this.beans.frameworkOverrides.renderingEngine==="react"&&(this.restoredFocusedCell=b)}getFocusEventParams(b){let{rowIndex:w,rowPinned:k,column:R}=b,T={rowIndex:w,rowPinned:k,column:R,isFullWidthCell:!1},z=this.rowRenderer.getRowByPosition({rowIndex:w,rowPinned:k});return z&&(T.isFullWidthCell=z.isFullWidth()),T}clearFocusedCell(){if(this.restoredFocusedCell=null,this.focusedCell==null)return;let b=this.getFocusEventParams(this.focusedCell);this.focusedCell=null,this.eventSvc.dispatchEvent(pe({type:"cellFocusCleared"},b))}setFocusedCell(b){let{column:w,rowIndex:k,rowPinned:R,forceBrowserFocus:T=!1,preventScrollOnBrowserFocus:z=!1}=b,G=this.colModel.getCol(w);G?(this.focusedCell={rowIndex:k,rowPinned:(0,d._makeNull)(R),column:G},this.eventSvc.dispatchEvent(et(pe({type:"cellFocused"},this.getFocusEventParams(this.focusedCell)),{forceBrowserFocus:T,preventScrollOnBrowserFocus:z}))):this.focusedCell=null}isCellFocused(b){return this.focusedCell!=null&&(0,A._areCellsEqual)(b,this.focusedCell)}isRowNodeFocused(b){return this.isRowFocused(b.rowIndex,b.rowPinned)}isHeaderWrapperFocused(b){if(this.focusedHeader==null)return!1;let{column:w,rowCtrl:{rowIndex:k,pinned:R}}=b,{column:T,headerRowIndex:z}=this.focusedHeader;return w===T&&k===z&&R==T.getPinned()}focusHeaderPosition(b){var X;if((0,r._isHeaderFocusSuppressed)(this.beans))return!1;let{direction:w,fromTab:k,allowUserOverride:R,event:T,fromCell:z,rowWithoutSpanValue:G}=b,{headerPosition:U}=b;if(z&&((X=this.filterManager)!=null&&X.isAdvFilterHeaderActive()))return this.focusAdvancedFilter(U);if(R){let Q=this.focusedHeader,oe=(0,f.getFocusHeaderRowCount)(this.beans);if(k){let le=this.gos.getCallback("tabToNextHeader");le&&(U=this.getHeaderPositionFromUserFunc({userFunc:le,direction:w,currentPosition:Q,headerPosition:U,headerRowCount:oe}))}else{let le=this.gos.getCallback("navigateToNextHeader");le&&T&&(U=le({key:T.key,previousHeaderPosition:Q,nextHeaderPosition:U,headerRowCount:oe,event:T}))}}return!!U&&this.focusProvidedHeaderPosition({headerPosition:U,direction:w,event:T,fromCell:z,rowWithoutSpanValue:G})}focusHeaderPositionFromUserFunc(b){if((0,r._isHeaderFocusSuppressed)(this.beans))return!1;let{userFunc:w,headerPosition:k,direction:R,event:T}=b,z=this.focusedHeader,G=(0,f.getFocusHeaderRowCount)(this.beans),U=this.getHeaderPositionFromUserFunc({userFunc:w,direction:R,currentPosition:z,headerPosition:k,headerRowCount:G});return!!U&&this.focusProvidedHeaderPosition({headerPosition:U,direction:R,event:T})}getHeaderPositionFromUserFunc(b){let{userFunc:w,direction:k,currentPosition:R,headerPosition:T,headerRowCount:z}=b,G=w({backwards:k==="Before",previousHeaderPosition:R,nextHeaderPosition:T,headerRowCount:z});return G===!0?R:G===!1?null:G}focusProvidedHeaderPosition(b){let{headerPosition:w,direction:k,fromCell:R,rowWithoutSpanValue:T,event:z}=b,{column:G,headerRowIndex:U}=w,{filterManager:X,ctrlsSvc:Q,headerNavigation:oe}=this.beans;if(U===-1)return X!=null&&X.isAdvFilterHeaderActive()?this.focusAdvancedFilter(w):this.focusGridView(G);oe==null||oe.scrollToColumn(G,k);let le=Q.getHeaderRowContainerCtrl(G.getPinned()),fe=(le==null?void 0:le.focusHeader(w.headerRowIndex,G,z))||!1;return oe&&fe&&(T!=null||R)&&(oe.currentHeaderRowWithoutSpan=T!=null?T:-1),fe}focusFirstHeader(){var R;if((R=this.overlays)!=null&&R.isExclusive()&&this.focusOverlay())return!0;let b=this.visibleCols.allCols[0];if(!b)return!1;let{colGroupSvc:w}=this.beans;w&&b.getParent()&&(b=w.getColGroupAtLevel(b,0));let k=(0,v.getHeaderIndexToFocus)(b,0);return this.focusHeaderPosition({headerPosition:k,rowWithoutSpanValue:0})}focusLastHeader(b){var R;if((R=this.overlays)!=null&&R.isExclusive()&&this.focusOverlay(!0))return!0;let w=(0,f.getFocusHeaderRowCount)(this.beans)-1,k=(0,s._last)(this.visibleCols.allCols);return this.focusHeaderPosition({headerPosition:{headerRowIndex:w,column:k},rowWithoutSpanValue:-1,event:b})}focusPreviousFromFirstCell(b){var w;return(w=this.filterManager)!=null&&w.isAdvFilterHeaderActive()?this.focusAdvancedFilter(null):this.focusLastHeader(b)}isAnyCellFocused(){return!!this.focusedCell}isRowFocused(b,w){return this.focusedCell!=null&&this.focusedCell.rowIndex===b&&this.focusedCell.rowPinned===(0,d._makeNull)(w)}focusOverlay(b){var k,R;let w=((k=this.overlays)==null?void 0:k.isVisible())&&((R=this.overlays.eWrapper)==null?void 0:R.getGui());return!!w&&(0,r._focusInto)(w,b)}focusGridView(b,w=!1,k=!0){var T,z,G,U,X;if((T=this.overlays)!=null&&T.isExclusive())return k&&this.focusOverlay(w);if((0,r._isCellFocusSuppressed)(this.beans))return w&&!(0,r._isHeaderFocusSuppressed)(this.beans)?this.focusLastHeader():!(!k||!this.focusOverlay(w))||(0,r._focusNextGridCoreContainer)(this.beans,!1);let R=w?(0,A._getLastRow)(this.beans):(0,A._getFirstRow)(this.beans);if(R){let{rowIndex:Q,rowPinned:oe}=R;if(b!=null||(b=(z=this.focusedHeader)==null?void 0:z.column),b&&Q!=null){if((G=this.navigation)==null||G.ensureCellVisible({rowIndex:Q,column:b,rowPinned:oe}),w){let le=this.rowRenderer.getRowByPosition(R);if(le!=null&&le.isFullWidth()&&((U=this.navigation)!=null&&U.tryToFocusFullWidthRow(R,w)))return!0}return this.setFocusedCell({rowIndex:Q,column:b,rowPinned:(0,d._makeNull)(oe),forceBrowserFocus:!0}),(X=this.beans.rangeSvc)==null||X.setRangeToCell({rowIndex:Q,rowPinned:oe,column:b}),!0}}return!(!k||!this.focusOverlay(w))||!(!w||!this.focusLastHeader())}focusAdvancedFilter(b){var w,k;return this.advFilterFocusColumn=b==null?void 0:b.column,(k=(w=this.beans.advancedFilter)==null?void 0:w.getCtrl().focusHeaderComp())!=null?k:!1}focusNextFromAdvancedFilter(b,w){var R,T;let k=(T=w?void 0:this.advFilterFocusColumn)!=null?T:(R=this.visibleCols.allCols)==null?void 0:R[0];return b?this.focusHeaderPosition({headerPosition:{column:k,headerRowIndex:(0,f.getFocusHeaderRowCount)(this.beans)-1}}):this.focusGridView(k)}clearAdvancedFilterColumn(){this.advFilterFocusColumn=void 0}}x.FocusService=g},1657:function(ne,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.GridCoreCreator=x.createGrid=x._getGlobalGridOption=x.provideGlobalGridOptions=void 0;let M=p(6433),A=p(2342),F=p(3943),D=p(1678),f=p(1978),v=p(2132),u=p(4422),s=p(6996),r=p(7764),d=p(6511);class g{static applyGlobalGridOptions(k){if(!g.gridOptions)return pe({},k);let R={};return(0,s._mergeDeep)(R,g.gridOptions,!0,!0),g.mergeStrategy==="deep"?(0,s._mergeDeep)(R,k,!0,!0):R=pe(pe({},R),k),g.gridOptions.context&&(R.context=g.gridOptions.context),k.context&&(g.mergeStrategy==="deep"&&R.context&&(0,s._mergeDeep)(k.context,R.context,!0,!0),R.context=k.context),R}}g.gridOptions=void 0,g.mergeStrategy="shallow",x.provideGlobalGridOptions=function(w,k="shallow"){g.gridOptions=w,g.mergeStrategy=k},x._getGlobalGridOption=function(w){var k;return(k=g.gridOptions)==null?void 0:k[w]},x.createGrid=function(w,k,R){if(!k)return(0,r._error)(11),{};let T=R,z;if(!(T!=null&&T.setThemeOnGridDiv)){let G=document.createElement("div");G.style.height="100%",w.appendChild(G),w=G,z=()=>w.remove()}return new b().create(w,k,G=>{let U=new D.GridComp(w);G.createBean(U)},void 0,R,z)};let m=1;class b{create(k,R,T,z,G,U){var ze,Ye;let X=g.applyGlobalGridOptions(R),Q=(ze=X.gridId)!=null?ze:String(m++),oe=(Ye=X.rowModelType)!=null?Ye:"clientSide",le=this.getRegisteredModules(G,Q,oe),fe=this.createBeansList(oe,le,Q),ye=this.createProvidedBeans(k,X,G);if(!fe)return;let ke={providedBeanInstances:ye,beanClasses:fe,gridId:Q,beanInitComparator:F.gridBeanInitComparator,beanDestroyComparator:F.gridBeanDestroyComparator,derivedBeans:[M.createGridApi],destroyCallback:U},Ie=new A.Context(ke);return this.registerModuleFeatures(Ie,le),T(Ie),Ie.getBean("syncSvc").start(),z&&z(Ie),Ie.getBean("gridApi")}getRegisteredModules(k,R,T){var z;return(0,v._registerModule)(f.CommunityCoreModule,void 0),(z=k==null?void 0:k.modules)==null||z.forEach(G=>(0,v._registerModule)(G,R)),(0,v._getRegisteredModules)(R,T)}registerModuleFeatures(k,R){let T=k.getBean("registry"),z=k.getBean("apiFunctionSvc");R.forEach(G=>{T.registerModule(G);let U=G.apiFunctions;U&&Object.keys(U).forEach(X=>{z==null||z.addFunction(X,U[X])})})}createProvidedBeans(k,R,T){let z=T?T.frameworkOverrides:null;(0,u._missing)(z)&&(z=new d.VanillaFrameworkOverrides);let G={gridOptions:R,eGridDiv:k,globalListener:T?T.globalListener:null,globalSyncListener:T?T.globalSyncListener:null,frameworkOverrides:z};return T&&T.providedBeanInstances&&Object.assign(G,T.providedBeanInstances),G}createBeansList(k,R,T){let z={clientSide:"ClientSideRowModel",infinite:"InfiniteRowModel",serverSide:"ServerSideRowModel",viewport:"ViewportRowModel"}[k];if(!z)return void(0,r._logPreInitErr)(201,{rowModelType:k},`Unknown rowModelType ${k}.`);if(!(0,v._isModuleRegistered)(z,T,k))return void(0,r._logPreInitErr)(200,{reasonOrId:`rowModelType = '${k}'`,moduleName:z,gridScoped:(0,v._areModulesGridScoped)(),gridId:T,rowModelType:k},`Missing module ${z}Module for rowModelType ${k}. 
If upgrading from before v33, see ${r.baseDocLink}/upgrading-to-ag-grid-33/#changes-to-modules/`);let G=new Set;return R.forEach(U=>{var X;return(X=U.beans)==null?void 0:X.forEach(Q=>G.add(Q))}),Array.from(G)}}x.GridCoreCreator=b},736:function(ne,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.AbstractFakeScrollComp=void 0;let M=p(2612),A=p(8667),F=p(3507),D=p(2043),f=p(8020);class v extends f.Component{constructor(s,r){super(),this.direction=r,this.eViewport=f.RefPlaceholder,this.eContainer=f.RefPlaceholder,this.hideTimeout=0,this.setTemplate(s)}postConstruct(){this.addManagedEventListeners({scrollVisibilityChanged:this.onScrollVisibilityChanged.bind(this)}),this.onScrollVisibilityChanged(),this.addOrRemoveCssClass("ag-apple-scrollbar",(0,A._isMacOsUserAgent)()||(0,A._isIOSUserAgent)())}destroy(){super.destroy(),window.clearTimeout(this.hideTimeout)}initialiseInvisibleScrollbar(){this.invisibleScrollbar===void 0&&(this.invisibleScrollbar=(0,A._isInvisibleScrollbar)(),this.invisibleScrollbar&&(this.hideAndShowInvisibleScrollAsNeeded(),this.addActiveListenerToggles()))}addActiveListenerToggles(){let s=this.getGui(),r=()=>this.addOrRemoveCssClass("ag-scrollbar-active",!0),d=()=>this.addOrRemoveCssClass("ag-scrollbar-active",!1);this.addManagedListeners(s,{mouseenter:r,mousedown:r,touchstart:r,mouseleave:d,touchend:d})}onScrollVisibilityChanged(){this.invisibleScrollbar===void 0&&this.initialiseInvisibleScrollbar(),(0,M._requestAnimationFrame)(this.beans,()=>this.setScrollVisible())}hideAndShowInvisibleScrollAsNeeded(){this.addManagedEventListeners({bodyScroll:s=>{s.direction===this.direction&&(this.hideTimeout&&(window.clearTimeout(this.hideTimeout),this.hideTimeout=0),this.addOrRemoveCssClass("ag-scrollbar-scrolling",!0))},bodyScrollEnd:()=>{this.hideTimeout=window.setTimeout(()=>{this.addOrRemoveCssClass("ag-scrollbar-scrolling",!1),this.hideTimeout=0},400)}})}attemptSettingScrollPosition(s){let r=this.eViewport;(0,D._waitUntil)(()=>(0,F._isVisible)(r),()=>this.setScrollPosition(s),100)}onScrollCallback(s){this.addManagedElementListeners(this.eViewport,{scroll:s})}}x.AbstractFakeScrollComp=v},2218:function(ne,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.CenterWidthFeature=void 0;let M=p(8731),A=p(7274);class F extends M.BeanStub{constructor(f,v=!1){super(),this.callback=f,this.addSpacer=v}postConstruct(){let f=this.setWidth.bind(this);this.addManagedPropertyListener("domLayout",f),this.addManagedEventListeners({columnContainerWidthChanged:f,displayedColumnsChanged:f,leftPinnedWidthChanged:f}),this.addSpacer&&this.addManagedEventListeners({rightPinnedWidthChanged:f,scrollVisibilityChanged:f,scrollbarWidthChanged:f}),this.setWidth()}setWidth(){let f=(0,A._isDomLayout)(this.gos,"print"),{visibleCols:v,scrollVisibleSvc:u}=this.beans,s=v.bodyWidth,r=v.getColsLeftWidth(),d=v.getDisplayedColumnsRightWidth(),g;f?g=s+r+d:(g=s,this.addSpacer&&(this.gos.get("enableRtl")?r:d)===0&&u.verticalScrollShowing&&(g+=u.getScrollbarWidth())),this.callback(g)}}x.CenterWidthFeature=F},335:function(ne,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.FakeHScrollSelector=x.FakeHScrollComp=void 0;let M=p(3507),A=p(8020),F=p(736),D=p(2218);class f extends F.AbstractFakeScrollComp{wireBeans(u){this.visibleCols=u.visibleCols,this.scrollVisibleSvc=u.scrollVisibleSvc}constructor(){super(`<div class="ag-body-horizontal-scroll" aria-hidden="true">
            <div class="ag-horizontal-left-spacer" data-ref="eLeftSpacer"></div>
            <div class="ag-body-horizontal-scroll-viewport" data-ref="eViewport">
                <div class="ag-body-horizontal-scroll-container" data-ref="eContainer"></div>
            </div>
            <div class="ag-horizontal-right-spacer" data-ref="eRightSpacer"></div>
        </div>`,"horizontal"),this.eLeftSpacer=A.RefPlaceholder,this.eRightSpacer=A.RefPlaceholder,this.setScrollVisibleDebounce=0}postConstruct(){super.postConstruct();let u=this.setFakeHScrollSpacerWidths.bind(this);this.addManagedEventListeners({displayedColumnsChanged:u,displayedColumnsWidthChanged:u,pinnedRowDataChanged:this.refreshCompBottom.bind(this)}),this.addManagedPropertyListener("domLayout",u),this.beans.ctrlsSvc.register("fakeHScrollComp",this),this.createManagedBean(new D.CenterWidthFeature(s=>this.eContainer.style.width=`${s}px`)),this.addManagedPropertyListeners(["suppressHorizontalScroll"],this.onScrollVisibilityChanged.bind(this))}destroy(){window.clearTimeout(this.setScrollVisibleDebounce),super.destroy()}initialiseInvisibleScrollbar(){this.invisibleScrollbar===void 0&&(this.enableRtl=this.gos.get("enableRtl"),super.initialiseInvisibleScrollbar(),this.invisibleScrollbar&&this.refreshCompBottom())}refreshCompBottom(){var s,r;if(!this.invisibleScrollbar)return;let u=(r=(s=this.beans.pinnedRowModel)==null?void 0:s.getPinnedBottomTotalHeight())!=null?r:0;this.getGui().style.bottom=`${u}px`}onScrollVisibilityChanged(){super.onScrollVisibilityChanged(),this.setFakeHScrollSpacerWidths()}setFakeHScrollSpacerWidths(){let u=this.scrollVisibleSvc.verticalScrollShowing,s=this.visibleCols.getDisplayedColumnsRightWidth(),r=!this.enableRtl&&u,d=this.scrollVisibleSvc.getScrollbarWidth();r&&(s+=d),(0,M._setFixedWidth)(this.eRightSpacer,s),this.eRightSpacer.classList.toggle("ag-scroller-corner",s<=d);let g=this.visibleCols.getColsLeftWidth();this.enableRtl&&u&&(g+=d),(0,M._setFixedWidth)(this.eLeftSpacer,g),this.eLeftSpacer.classList.toggle("ag-scroller-corner",g<=d)}setScrollVisible(){let u=this.scrollVisibleSvc.horizontalScrollShowing,s=this.invisibleScrollbar,r=this.gos.get("suppressHorizontalScroll"),d=u&&this.scrollVisibleSvc.getScrollbarWidth()||0,g=r?0:d===0&&s?16:d,m=()=>{this.setScrollVisibleDebounce=0,this.addOrRemoveCssClass("ag-scrollbar-invisible",s),(0,M._setFixedHeight)(this.getGui(),g),(0,M._setFixedHeight)(this.eViewport,g),(0,M._setFixedHeight)(this.eContainer,g),this.setDisplayed(u,{skipAriaHidden:!0})};window.clearTimeout(this.setScrollVisibleDebounce),u?this.setScrollVisibleDebounce=window.setTimeout(m,100):m()}getScrollPosition(){return(0,M._getScrollLeft)(this.eViewport,this.enableRtl)}setScrollPosition(u){(0,M._isVisible)(this.eViewport)||this.attemptSettingScrollPosition(u),(0,M._setScrollLeft)(this.eViewport,u,this.enableRtl)}}x.FakeHScrollComp=f,x.FakeHScrollSelector={selector:"AG-FAKE-HORIZONTAL-SCROLL",component:f}},6070:function(ne,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.FakeVScrollSelector=x.FakeVScrollComp=void 0;let M=p(3507),A=p(736),F=p(9622);class D extends A.AbstractFakeScrollComp{constructor(){super(`<div class="ag-body-vertical-scroll" aria-hidden="true">
            <div class="ag-body-vertical-scroll-viewport" data-ref="eViewport">
                <div class="ag-body-vertical-scroll-container" data-ref="eContainer"></div>
            </div>
        </div>`,"vertical")}postConstruct(){super.postConstruct(),this.createManagedBean(new F.SetHeightFeature(this.eContainer));let{ctrlsSvc:v}=this.beans;v.register("fakeVScrollComp",this),this.addManagedEventListeners({rowContainerHeightChanged:this.onRowContainerHeightChanged.bind(this,v)})}setScrollVisible(){let{scrollVisibleSvc:v}=this.beans,u=v.verticalScrollShowing,s=this.invisibleScrollbar,r=u&&v.getScrollbarWidth()||0,d=r===0&&s?16:r;this.addOrRemoveCssClass("ag-scrollbar-invisible",s),(0,M._setFixedWidth)(this.getGui(),d),(0,M._setFixedWidth)(this.eViewport,d),(0,M._setFixedWidth)(this.eContainer,d),this.setDisplayed(u,{skipAriaHidden:!0})}onRowContainerHeightChanged(v){let u=v.getGridBodyCtrl().eBodyViewport,s=this.getScrollPosition(),r=u.scrollTop;s!=r&&this.setScrollPosition(r,!0)}getScrollPosition(){return this.eViewport.scrollTop}setScrollPosition(v,u){u||(0,M._isVisible)(this.eViewport)||this.attemptSettingScrollPosition(v),this.eViewport.scrollTop=v}}x.FakeVScrollComp=D,x.FakeVScrollSelector={selector:"AG-FAKE-VERTICAL-SCROLL",component:D}},9625:function(ne,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.GridBodySelector=x.GridBodyComp=void 0;let M=p(7274),A=p(8791),F=p(9360),D=p(5230),f=p(3507),v=p(8020),u=p(335),s=p(6070),r=p(520),d=p(4633);function g(b,w){return w.map(k=>{let R=`e${k[0].toUpperCase()+k.substring(1)}RowContainer`;return b[R]={name:k},`<ag-row-container name="${k}" data-ref="${R}"></ag-row-container>`}).join("")}class m extends v.Component{constructor(){super(...arguments),this.eGridRoot=v.RefPlaceholder,this.eBodyViewport=v.RefPlaceholder,this.eStickyTop=v.RefPlaceholder,this.eStickyBottom=v.RefPlaceholder,this.eTop=v.RefPlaceholder,this.eBottom=v.RefPlaceholder,this.eBody=v.RefPlaceholder}postConstruct(){let{overlays:w,rangeSvc:k}=this.beans,R=w==null?void 0:w.getOverlayWrapperSelector(),{paramsMap:T,template:z}=function(X){let Q={};return{paramsMap:Q,template:`<div class="ag-root ag-unselectable" data-ref="eGridRoot">
        <ag-header-root></ag-header-root>
        <div class="ag-floating-top" data-ref="eTop" role="presentation">
            ${g(Q,["topLeft","topCenter","topRight","topFullWidth"])}
        </div>
        <div class="ag-body" data-ref="eBody" role="presentation">
            <div class="ag-body-viewport" data-ref="eBodyViewport" role="presentation">
            ${g(Q,["left","center","right","fullWidth"])}
            </div>
            <ag-fake-vertical-scroll></ag-fake-vertical-scroll>
        </div>
        <div class="ag-sticky-top" data-ref="eStickyTop" role="presentation">
            ${g(Q,["stickyTopLeft","stickyTopCenter","stickyTopRight","stickyTopFullWidth"])}
        </div>
        <div class="ag-sticky-bottom" data-ref="eStickyBottom" role="presentation">
            ${g(Q,["stickyBottomLeft","stickyBottomCenter","stickyBottomRight","stickyBottomFullWidth"])}
        </div>
        <div class="ag-floating-bottom" data-ref="eBottom" role="presentation">
            ${g(Q,["bottomLeft","bottomCenter","bottomRight","bottomFullWidth"])}
        </div>
        <ag-fake-horizontal-scroll></ag-fake-horizontal-scroll>
        ${X?"<ag-overlay-wrapper></ag-overlay-wrapper>":""}
    </div>`}}(!!R);this.setTemplate(z,[...R?[R]:[],u.FakeHScrollSelector,s.FakeVScrollSelector,A.GridHeaderSelector,d.RowContainerSelector],T);let G=(X,Q)=>{let oe=`${X}px`;Q.style.minHeight=oe,Q.style.height=oe},U={setRowAnimationCssOnBodyViewport:(X,Q)=>this.setRowAnimationCssOnBodyViewport(X,Q),setColumnCount:X=>(0,D._setAriaColCount)(this.getGui(),X),setRowCount:X=>(0,D._setAriaRowCount)(this.getGui(),X),setTopHeight:X=>G(X,this.eTop),setBottomHeight:X=>G(X,this.eBottom),setTopDisplay:X=>this.eTop.style.display=X,setBottomDisplay:X=>this.eBottom.style.display=X,setStickyTopHeight:X=>this.eStickyTop.style.height=X,setStickyTopTop:X=>this.eStickyTop.style.top=X,setStickyTopWidth:X=>this.eStickyTop.style.width=X,setStickyBottomHeight:X=>{this.eStickyBottom.style.height=X,this.eStickyBottom.classList.toggle("ag-hidden",X==="0px")},setStickyBottomBottom:X=>this.eStickyBottom.style.bottom=X,setStickyBottomWidth:X=>this.eStickyBottom.style.width=X,setColumnMovingCss:(X,Q)=>this.addOrRemoveCssClass(X,Q),updateLayoutClasses:(X,Q)=>{[this.eBodyViewport.classList,this.eBody.classList].forEach(oe=>{oe.toggle(F.LayoutCssClasses.AUTO_HEIGHT,Q.autoHeight),oe.toggle(F.LayoutCssClasses.NORMAL,Q.normal),oe.toggle(F.LayoutCssClasses.PRINT,Q.print)}),this.addOrRemoveCssClass(F.LayoutCssClasses.AUTO_HEIGHT,Q.autoHeight),this.addOrRemoveCssClass(F.LayoutCssClasses.NORMAL,Q.normal),this.addOrRemoveCssClass(F.LayoutCssClasses.PRINT,Q.print)},setAlwaysVerticalScrollClass:(X,Q)=>this.eBodyViewport.classList.toggle(r.CSS_CLASS_FORCE_VERTICAL_SCROLL,Q),registerBodyViewportResizeListener:X=>{let Q=(0,f._observeResize)(this.beans,this.eBodyViewport,X);this.addDestroyFunc(()=>Q())},setPinnedTopBottomOverflowY:X=>this.eTop.style.overflowY=this.eBottom.style.overflowY=X,setCellSelectableCss:(X,Q)=>{[this.eTop,this.eBodyViewport,this.eBottom].forEach(oe=>oe.classList.toggle(X,Q))},setBodyViewportWidth:X=>this.eBodyViewport.style.width=X,setGridRootRole:X=>(0,D._setAriaRole)(this.eGridRoot,X)};this.ctrl=this.createManagedBean(new r.GridBodyCtrl),this.ctrl.setComp(U,this.getGui(),this.eBodyViewport,this.eTop,this.eBottom,this.eStickyTop,this.eStickyBottom),(k&&(0,M._isCellSelectionEnabled)(this.gos)||(0,M._isMultiRowSelection)(this.gos))&&(0,D._setAriaMultiSelectable)(this.getGui(),!0)}setRowAnimationCssOnBodyViewport(w,k){let R=this.eBodyViewport.classList;R.toggle("ag-row-animation",k),R.toggle("ag-row-no-animation",!k)}}x.GridBodyComp=m,x.GridBodySelector={selector:"AG-GRID-BODY",component:m}},520:function(ne,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.GridBodyCtrl=x.CSS_CLASS_FORCE_VERTICAL_SCROLL=void 0;let M=p(8731),A=p(7274),F=p(2612),D=p(9360),f=p(8667),v=p(3507),u=p(5496),s=p(8399),r=p(8115);x.CSS_CLASS_FORCE_VERTICAL_SCROLL="ag-force-vertical-scroll";class d extends M.BeanStub{constructor(){super(...arguments),this.stickyTopHeight=0,this.stickyBottomHeight=0}wireBeans(m){this.ctrlsSvc=m.ctrlsSvc,this.colModel=m.colModel,this.scrollVisibleSvc=m.scrollVisibleSvc,this.pinnedRowModel=m.pinnedRowModel,this.filterManager=m.filterManager,this.rowGroupColsSvc=m.rowGroupColsSvc}setComp(m,b,w,k,R,T,z){var G,U;this.comp=m,this.eGridBody=b,this.eBodyViewport=w,this.eTop=k,this.eBottom=R,this.eStickyTop=T,this.eStickyBottom=z,this.eCenterColsViewport=w.querySelector(`.${(0,r._getRowContainerOptions)("center").viewport}`),this.eFullWidthContainer=w.querySelector(`.${(0,r._getRowContainerOptions)("fullWidth").container}`),this.eStickyTopFullWidthContainer=T.querySelector(`.${(0,r._getRowContainerOptions)("stickyTopFullWidth").container}`),this.eStickyBottomFullWidthContainer=z.querySelector(`.${(0,r._getRowContainerOptions)("stickyBottomFullWidth").container}`),this.setCellTextSelection(this.gos.get("enableCellTextSelection")),this.addManagedPropertyListener("enableCellTextSelection",X=>this.setCellTextSelection(X.currentValue)),this.createManagedBean(new D.LayoutFeature(this.comp)),this.scrollFeature=this.createManagedBean(new u.GridBodyScrollFeature(this.eBodyViewport)),(G=this.beans.rowDragSvc)==null||G.setupRowDrag(this.eBodyViewport,this),this.setupRowAnimationCssClass(),this.addEventListeners(),this.addFocusListeners([k,w,R,T,z]),this.setGridRootRole(),this.onGridColumnsChanged(),this.addBodyViewportListener(),this.setFloatingHeights(),this.disableBrowserDragging(),this.addStopEditingWhenGridLosesFocus(),this.updateScrollingClasses(),(U=this.filterManager)==null||U.setupAdvFilterHeaderComp(k),this.ctrlsSvc.register("gridBodyCtrl",this)}addEventListeners(){let m=this.setFloatingHeights.bind(this),b=this.setGridRootRole.bind(this);this.addManagedEventListeners({gridColumnsChanged:this.onGridColumnsChanged.bind(this),scrollVisibilityChanged:this.onScrollVisibilityChanged.bind(this),scrollGapChanged:this.updateScrollingClasses.bind(this),pinnedRowDataChanged:m,pinnedHeightChanged:m,headerHeightChanged:this.setStickyTopOffsetTop.bind(this),columnRowGroupChanged:b,columnPivotChanged:b}),this.addManagedPropertyListener("treeData",b)}onGridColumnsChanged(){let m=this.beans.colModel.getCols();this.comp.setColumnCount(m.length)}onScrollVisibilityChanged(){let{scrollVisibleSvc:m}=this,b=m.verticalScrollShowing;this.setVerticalScrollPaddingVisible(b),this.setStickyWidth(b),this.setStickyBottomOffsetBottom();let w=`calc(100% + ${(b&&m.getScrollbarWidth()||0)+((0,f._isInvisibleScrollbar)()?16:0)}px)`;(0,F._requestAnimationFrame)(this.beans,()=>this.comp.setBodyViewportWidth(w)),this.updateScrollingClasses()}setGridRootRole(){let{rowGroupColsSvc:m,colModel:b}=this,w=this.gos.get("treeData");if(!w){let k=b.isPivotMode();w=(m?m.columns.length:0)>=(k?2:1)}this.comp.setGridRootRole(w?"treegrid":"grid")}addFocusListeners(m){m.forEach(b=>{this.addManagedElementListeners(b,{focusin:w=>{let{target:k}=w,R=(0,v._isElementChildOfClass)(k,"ag-root",b);b.classList.toggle("ag-has-focus",!R)},focusout:w=>{let{target:k,relatedTarget:R}=w,T=b.contains(R),z=(0,v._isElementChildOfClass)(R,"ag-root",b);(0,v._isElementChildOfClass)(k,"ag-root",b)||T&&!z||b.classList.remove("ag-has-focus")}})})}setColumnMovingCss(m){this.comp.setColumnMovingCss("ag-column-moving",m)}setCellTextSelection(m=!1){this.comp.setCellSelectableCss("ag-selectable",m)}updateScrollingClasses(){let{eGridBody:{classList:m},scrollVisibleSvc:b}=this;m.toggle("ag-body-vertical-content-no-gap",!b.verticalScrollGap),m.toggle("ag-body-horizontal-content-no-gap",!b.horizontalScrollGap)}disableBrowserDragging(){this.addManagedElementListeners(this.eGridBody,{dragstart:m=>{if(m.target instanceof HTMLImageElement)return m.preventDefault(),!1}})}addStopEditingWhenGridLosesFocus(){var m;(m=this.beans.editSvc)==null||m.addStopEditingWhenGridLosesFocus([this.eBodyViewport,this.eBottom,this.eTop,this.eStickyTop,this.eStickyBottom])}updateRowCount(){var R,T,z,G;let m=((T=(R=this.ctrlsSvc.getHeaderRowContainerCtrl())==null?void 0:R.getRowCount())!=null?T:0)+((G=(z=this.filterManager)==null?void 0:z.getHeaderRowCount())!=null?G:0),{rowModel:b}=this.beans,w=b.isLastRowIndexKnown()?b.getRowCount():-1,k=w===-1?-1:m+w;this.comp.setRowCount(k)}registerBodyViewportResizeListener(m){this.comp.registerBodyViewportResizeListener(m)}setVerticalScrollPaddingVisible(m){let b=m?"scroll":"hidden";this.comp.setPinnedTopBottomOverflowY(b)}isVerticalScrollShowing(){let m=this.gos.get("alwaysShowVerticalScroll"),b=m?x.CSS_CLASS_FORCE_VERTICAL_SCROLL:null,w=(0,A._isDomLayout)(this.gos,"normal");return this.comp.setAlwaysVerticalScrollClass(b,m),m||w&&(0,v._isVerticalScrollShowing)(this.eBodyViewport)}setupRowAnimationCssClass(){let{rowContainerHeight:m,environment:b}=this.beans,w=b.sizesMeasured,k=()=>{let R=w&&(0,A._isAnimateRows)(this.gos)&&!m.stretching,T=R?"ag-row-animation":"ag-row-no-animation";this.comp.setRowAnimationCssOnBodyViewport(T,R)};k(),this.addManagedEventListeners({heightScaleChanged:k}),this.addManagedPropertyListener("animateRows",k),this.addManagedEventListeners({gridStylesChanged:()=>{!w&&b.sizesMeasured&&(w=!0,k())}})}addBodyViewportListener(){let{popupSvc:m,touchSvc:b}=this.beans,w=this.onBodyViewportContextMenu.bind(this);this.addManagedElementListeners(this.eBodyViewport,{contextmenu:w}),b==null||b.mockBodyContextMenu(this,w),this.addManagedElementListeners(this.eBodyViewport,{wheel:this.onBodyViewportWheel.bind(this,m)}),this.addManagedElementListeners(this.eStickyTop,{wheel:this.onStickyWheel.bind(this)}),this.addManagedElementListeners(this.eStickyBottom,{wheel:this.onStickyWheel.bind(this)}),this.addFullWidthContainerWheelListener()}addFullWidthContainerWheelListener(){this.addManagedElementListeners(this.eFullWidthContainer,{wheel:m=>this.onFullWidthContainerWheel(m)})}onFullWidthContainerWheel(m){let{deltaX:b,deltaY:w,shiftKey:k}=m;(k||Math.abs(b)>Math.abs(w))&&(0,s._isEventFromThisGrid)(this.gos,m)&&this.scrollGridBodyToMatchEvent(m)}onStickyWheel(m){let{deltaX:b,deltaY:w,shiftKey:k}=m,R=k||Math.abs(b)>Math.abs(w),T=m.target;R?(this.eStickyTopFullWidthContainer.contains(T)||this.eStickyBottomFullWidthContainer.contains(T))&&this.scrollGridBodyToMatchEvent(m):(m.preventDefault(),this.scrollVertically(w))}scrollGridBodyToMatchEvent(m){let{deltaX:b,deltaY:w}=m;m.preventDefault(),this.eCenterColsViewport.scrollBy({left:b||w})}onBodyViewportContextMenu(m,b,w){var R;if(!m&&!w)return;this.gos.get("preventDefaultOnContextMenu")&&(m||w).preventDefault();let{target:k}=m||b;k!==this.eBodyViewport&&k!==this.ctrlsSvc.get("center").eViewport||((R=this.beans.contextMenuSvc)==null||R.showContextMenu({mouseEvent:m,touchEvent:w,value:null,anchorToElement:this.eGridBody}))}onBodyViewportWheel(m,b){this.gos.get("suppressScrollWhenPopupsAreOpen")&&(m!=null&&m.hasAnchoredPopup())&&b.preventDefault()}scrollVertically(m){let b=this.eBodyViewport.scrollTop;return this.scrollFeature.setVerticalScrollPosition(b+m),this.eBodyViewport.scrollTop-b}setFloatingHeights(){var k,R;let{pinnedRowModel:m}=this,b=(k=m==null?void 0:m.getPinnedTopTotalHeight())!=null?k:0,w=(R=m==null?void 0:m.getPinnedBottomTotalHeight())!=null?R:0;this.comp.setTopHeight(b),this.comp.setBottomHeight(w),this.comp.setTopDisplay(b?"inherit":"none"),this.comp.setBottomDisplay(w?"inherit":"none"),this.setStickyTopOffsetTop(),this.setStickyBottomOffsetBottom()}setStickyTopHeight(m=0){this.comp.setStickyTopHeight(`${m}px`),this.stickyTopHeight=m}setStickyBottomHeight(m=0){this.comp.setStickyBottomHeight(`${m}px`),this.stickyBottomHeight=m}setStickyWidth(m){if(m){let b=this.scrollVisibleSvc.getScrollbarWidth();this.comp.setStickyTopWidth(`calc(100% - ${b}px)`),this.comp.setStickyBottomWidth(`calc(100% - ${b}px)`)}else this.comp.setStickyTopWidth("100%"),this.comp.setStickyBottomWidth("100%")}setStickyTopOffsetTop(){var k,R,T,z;let m=this.ctrlsSvc.get("gridHeaderCtrl").headerHeight+((R=(k=this.filterManager)==null?void 0:k.getHeaderHeight())!=null?R:0),b=(z=(T=this.pinnedRowModel)==null?void 0:T.getPinnedTopTotalHeight())!=null?z:0,w=0;m>0&&(w+=m),b>0&&(w+=b),w>0&&(w+=1),this.comp.setStickyTopTop(`${w}px`)}setStickyBottomOffsetBottom(){var R;let{pinnedRowModel:m,scrollVisibleSvc:b,comp:w}=this,k=((R=m==null?void 0:m.getPinnedBottomTotalHeight())!=null?R:0)+(b.horizontalScrollShowing&&b.getScrollbarWidth()||0);w.setStickyBottomBottom(`${k}px`)}}x.GridBodyCtrl=d},5496:function(ne,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.GridBodyScrollFeature=void 0;let M=p(8731),A=p(7274),F=p(8667),D=p(3507),f=p(2043),v=p(7764);var u;(function(m){m[m.Vertical=0]="Vertical",m[m.Horizontal=1]="Horizontal"})(u||(u={}));let s="Viewport",r="fakeVScrollComp",d=["fakeHScrollComp","centerHeader","topCenter","bottomCenter","stickyTopCenter","stickyBottomCenter"];class g extends M.BeanStub{wireBeans(b){this.ctrlsSvc=b.ctrlsSvc,this.animationFrameSvc=b.animationFrameSvc,this.visibleCols=b.visibleCols}constructor(b){super(),this.lastScrollSource=[null,null],this.scrollLeft=-1,this.nextScrollTop=-1,this.scrollTop=-1,this.lastOffsetHeight=-1,this.lastScrollTop=-1,this.scrollTimer=0,this.needsRefreshedScrollPosition=!0,this.eBodyViewport=b,this.resetLastHScrollDebounced=(0,f._debounce)(this,()=>this.lastScrollSource[u.Horizontal]=null,500),this.resetLastVScrollDebounced=(0,f._debounce)(this,()=>this.lastScrollSource[u.Vertical]=null,500)}destroy(){super.destroy(),window.clearTimeout(this.scrollTimer)}postConstruct(){this.enableRtl=this.gos.get("enableRtl");let b=this.requireUpdatedScrollPosition.bind(this);this.addManagedEventListeners({displayedColumnsWidthChanged:this.onDisplayedColumnsWidthChanged.bind(this),gridSizeChanged:b}),this.addManagedElementListeners(this.eBodyViewport,{scroll:b}),this.ctrlsSvc.whenReady(this,w=>{this.centerRowsCtrl=w.center,this.onDisplayedColumnsWidthChanged(),this.addScrollListener()})}requireUpdatedScrollPosition(){this.needsRefreshedScrollPosition=!0}addScrollListener(){this.addHorizontalScrollListeners(),this.addVerticalScrollListeners()}addHorizontalScrollListeners(){this.addManagedElementListeners(this.centerRowsCtrl.eViewport,{scroll:this.onHScroll.bind(this,s)});for(let b of d){let w=this.ctrlsSvc.get(b);this.registerScrollPartner(w,this.onHScroll.bind(this,b))}}addVerticalScrollListeners(){let b=this.ctrlsSvc.get("fakeVScrollComp"),w=this.gos.get("debounceVerticalScrollbar"),k=w?(0,f._debounce)(this,this.onVScroll.bind(this,s),100):this.onVScroll.bind(this,s),R=w?(0,f._debounce)(this,this.onVScroll.bind(this,r),100):this.onVScroll.bind(this,r);this.addManagedElementListeners(this.eBodyViewport,{scroll:k}),this.registerScrollPartner(b,R)}registerScrollPartner(b,w){b.onScrollCallback(w)}onDisplayedColumnsWidthChanged(){this.enableRtl&&this.horizontallyScrollHeaderCenterAndFloatingCenter()}horizontallyScrollHeaderCenterAndFloatingCenter(b){this.centerRowsCtrl==null||(b===void 0&&(b=this.centerRowsCtrl.getCenterViewportScrollLeft()),this.setScrollLeftForAllContainersExceptCurrent(Math.abs(b)))}setScrollLeftForAllContainersExceptCurrent(b){for(let w of[...d,s]){if(this.lastScrollSource[u.Horizontal]===w)continue;let k=this.getViewportForSource(w);(0,D._setScrollLeft)(k,b,this.enableRtl)}}getViewportForSource(b){return b===s?this.centerRowsCtrl.eViewport:this.ctrlsSvc.get(b).eViewport}isControllingScroll(b,w){return this.lastScrollSource[w]==null?(w===u.Vertical?this.lastScrollSource[0]=b:this.lastScrollSource[1]=b,!0):this.lastScrollSource[w]===b}onHScroll(b){if(!this.isControllingScroll(b,u.Horizontal))return;let w=this.centerRowsCtrl.eViewport,{scrollLeft:k}=w;if(this.shouldBlockScrollUpdate(u.Horizontal,k,!0))return;let R=(0,D._getScrollLeft)(this.getViewportForSource(b),this.enableRtl);this.doHorizontalScroll(R),this.resetLastHScrollDebounced()}onVScroll(b){if(!this.isControllingScroll(b,u.Vertical))return;let w;if(w=b===s?this.eBodyViewport.scrollTop:this.ctrlsSvc.get("fakeVScrollComp").getScrollPosition(),this.shouldBlockScrollUpdate(u.Vertical,w,!0))return;let{animationFrameSvc:k}=this;k==null||k.setScrollTop(w),this.nextScrollTop=w,b===s?this.ctrlsSvc.get("fakeVScrollComp").setScrollPosition(w):this.eBodyViewport.scrollTop=w,!k||this.gos.get("suppressAnimationFrame")?this.scrollGridIfNeeded():k.schedule(),this.resetLastVScrollDebounced()}doHorizontalScroll(b){let w=this.ctrlsSvc.get("fakeHScrollComp").getScrollPosition();this.scrollLeft===b&&b===w||(this.scrollLeft=b,this.fireScrollEvent(u.Horizontal),this.horizontallyScrollHeaderCenterAndFloatingCenter(b),this.centerRowsCtrl.onHorizontalViewportChanged(!0))}fireScrollEvent(b){let w={type:"bodyScroll",direction:b===u.Horizontal?"horizontal":"vertical",left:this.scrollLeft,top:this.scrollTop};this.eventSvc.dispatchEvent(w),window.clearTimeout(this.scrollTimer),this.scrollTimer=window.setTimeout(()=>{this.scrollTimer=0,this.eventSvc.dispatchEvent(et(pe({},w),{type:"bodyScrollEnd"}))},100)}shouldBlockScrollUpdate(b,w,k=!1){return!(k&&!(0,F._isIOSUserAgent)())&&(b===u.Vertical?this.shouldBlockVerticalScroll(w):this.shouldBlockHorizontalScroll(w))}shouldBlockVerticalScroll(b){let w=(0,D._getInnerHeight)(this.eBodyViewport),{scrollHeight:k}=this.eBodyViewport;return b<0||b+w>k}shouldBlockHorizontalScroll(b){let w=this.centerRowsCtrl.getCenterWidth(),{scrollWidth:k}=this.centerRowsCtrl.eViewport;if(this.enableRtl&&(0,D._isRtlNegativeScroll)()){if(b>0)return!0}else if(b<0)return!0;return Math.abs(b)+w>k}redrawRowsAfterScroll(){this.fireScrollEvent(u.Vertical)}checkScrollLeft(){this.scrollLeft!==this.centerRowsCtrl.getCenterViewportScrollLeft()&&this.onHScroll(s)}scrollGridIfNeeded(){let b=this.scrollTop!=this.nextScrollTop;return b&&(this.scrollTop=this.nextScrollTop,this.redrawRowsAfterScroll()),b}setHorizontalScrollPosition(b,w=!1){let k=this.centerRowsCtrl.eViewport.scrollWidth-this.centerRowsCtrl.getCenterWidth();!w&&this.shouldBlockScrollUpdate(u.Horizontal,b)&&(b=this.enableRtl&&(0,D._isRtlNegativeScroll)()?b>0?0:k:Math.min(Math.max(b,0),k)),(0,D._setScrollLeft)(this.centerRowsCtrl.eViewport,Math.abs(b),this.enableRtl),this.doHorizontalScroll(b)}setVerticalScrollPosition(b){this.eBodyViewport.scrollTop=b}getVScrollPosition(){if(!this.needsRefreshedScrollPosition){let{lastOffsetHeight:k,lastScrollTop:R}=this;return{top:R,bottom:R+k}}this.needsRefreshedScrollPosition=!1;let{scrollTop:b,offsetHeight:w}=this.eBodyViewport;return this.lastScrollTop=b,this.lastOffsetHeight=w,{top:b,bottom:b+w}}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.centerRowsCtrl.isHorizontalScrollShowing()}scrollHorizontally(b){let w=this.centerRowsCtrl.eViewport.scrollLeft;return this.setHorizontalScrollPosition(w+b),this.centerRowsCtrl.eViewport.scrollLeft-w}scrollToTop(){this.eBodyViewport.scrollTop=0}ensureNodeVisible(b,w=null){let{rowModel:k}=this.beans,R=k.getRowCount(),T=-1;for(let z=0;z<R;z++){let G=k.getRow(z);if(typeof b=="function"){if(G&&b(G)){T=z;break}}else if(b===G||b===G.data){T=z;break}}T>=0&&this.ensureIndexVisible(T,w)}ensureIndexVisible(b,w){if((0,A._isDomLayout)(this.gos,"print"))return;let{rowModel:k}=this.beans,R=k.getRowCount();if(typeof b!="number"||b<0||b>=R)return void(0,v._warn)(88,{index:b});let T=this.gos.get("pagination")&&!this.gos.get("suppressPaginationPanel"),{frameworkOverrides:z,pagination:G,pageBounds:U,rowContainerHeight:X,rowRenderer:Q}=this.beans;z.wrapIncoming(()=>{var Ie;T||(G==null||G.goToPageWithIndex(b));let oe=this.ctrlsSvc.getGridBodyCtrl(),le=oe.stickyTopHeight,fe=oe.stickyBottomHeight,ye=k.getRow(b),ke;do{let ze=ye.rowTop,Ye=ye.rowHeight,xe=U.getPixelOffset(),Te=ye.rowTop-xe,Ae=Te+ye.rowHeight,Ne=this.getVScrollPosition(),Re=X.divStretchOffset,Oe=Ne.top+Re,Ve=Ne.bottom+Re,Ue=Ve-Oe,Ee=X.getScrollPositionForPixel(Te),tt=X.getScrollPositionForPixel(Ae-Ue),at=Math.min((Ee+tt)/2,Te),ut=null;w==="top"?ut=Ee:w==="bottom"?ut=tt:w==="middle"?ut=at:Oe+le>Te?ut=Ee-le:Ve-fe<Ae&&(ut=tt+fe),ut!==null&&(this.setVerticalScrollPosition(ut),Q.redraw({afterScroll:!0})),ke=ze!==ye.rowTop||Ye!==ye.rowHeight}while(ke);(Ie=this.animationFrameSvc)==null||Ie.flushAllFrames()})}ensureColumnVisible(b,w="auto"){let{colModel:k,frameworkOverrides:R}=this.beans,T=k.getCol(b);if(!T||T.isPinned()||!this.visibleCols.isColDisplayed(T))return;let z=this.getPositionedHorizontalScroll(T,w);R.wrapIncoming(()=>{var G;z!==null&&this.centerRowsCtrl.setCenterViewportScrollLeft(z),this.centerRowsCtrl.onHorizontalViewportChanged(),(G=this.animationFrameSvc)==null||G.flushAllFrames()})}getPositionedHorizontalScroll(b,w){let{columnBeforeStart:k,columnAfterEnd:R}=this.isColumnOutsideViewport(b),T=this.centerRowsCtrl.getCenterWidth()<b.getActualWidth(),z=this.centerRowsCtrl.getCenterWidth(),G=this.enableRtl,U=(G?k:R)||T,X=G?R:k;w!=="auto"&&(U=w==="start",X=w==="end");let Q=w==="middle";if(U||X||Q){let{colLeft:oe,colMiddle:le,colRight:fe}=this.getColumnBounds(b);return Q?le-z/2:U?G?fe:oe:G?oe-z:fe-z}return null}isColumnOutsideViewport(b){let{start:w,end:k}=this.getViewportBounds(),{colLeft:R,colRight:T}=this.getColumnBounds(b),z=this.enableRtl;return{columnBeforeStart:z?w>T:k<T,columnAfterEnd:z?k<R:w>R}}getColumnBounds(b){let w=this.enableRtl,k=this.visibleCols.bodyWidth,R=b.getActualWidth(),T=b.getLeft(),z=w?-1:1,G=w?k-T:T;return{colLeft:G,colMiddle:G+R/2*z,colRight:G+R*z}}getViewportBounds(){let b=this.centerRowsCtrl.getCenterWidth(),w=this.centerRowsCtrl.getCenterViewportScrollLeft();return{start:w,end:b+w,width:b}}}x.GridBodyScrollFeature=g},8399:function(ne,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x._getNormalisedMousePosition=x._getCellPositionForEvent=x._isElementInThisGrid=x._isEventFromThisGrid=x._stampTopLevelGridCompWithGridInstance=void 0;let M=p(7274),A=p(814),F=p(4422),D="__ag_grid_instance";function f(v,u){let s=u;for(;s;){let r=s[D];if((0,F._exists)(r))return r===v.gridInstanceId;s=s.parentElement}return!1}x._stampTopLevelGridCompWithGridInstance=function(v,u){u[D]=v.gridInstanceId},x._isEventFromThisGrid=function(v,u){return f(v,u.target)},x._isElementInThisGrid=f,x._getCellPositionForEvent=function(v,u){var s,r;return(r=(s=(0,A._getCellCtrlForEventTarget)(v,u.target))==null?void 0:s.cellPosition)!=null?r:null},x._getNormalisedMousePosition=function(v,u){let s=(0,M._isDomLayout)(v.gos,"normal"),r=u,d,g;if(r.clientX!=null||r.clientY!=null?(d=r.clientX,g=r.clientY):(d=r.x,g=r.y),s){let m=v.ctrlsSvc.getScrollFeature(),b=m.getVScrollPosition();d+=m.getHScrollPosition().left,g+=b.top}return{x:d,y:g}}},4633:function(ne,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.RowContainerSelector=x.RowContainerComp=void 0;let M=p(6049),A=p(5230),F=p(3507),D=p(8020),f=p(8115);class v extends D.Component{constructor(s){super(),this.eViewport=D.RefPlaceholder,this.eContainer=D.RefPlaceholder,this.rowComps={},this.name=s==null?void 0:s.name,this.options=(0,f._getRowContainerOptions)(this.name),this.setTemplate(function(r){let d;return d=r.type==="center"?`<div class="${r.viewport}" data-ref="eViewport" role="presentation">
                <div class="${r.container}" data-ref="eContainer"></div>
            </div>`:`<div class="${r.container}" data-ref="eContainer"></div>`,d}(this.options))}postConstruct(){let s={setHorizontalScroll:r=>this.eViewport.scrollLeft=r,setViewportHeight:r=>this.eViewport.style.height=r,setRowCtrls:({rowCtrls:r})=>this.setRowCtrls(r),setDomOrder:r=>{this.domOrder=r},setContainerWidth:r=>this.eContainer.style.width=r,setOffsetTop:r=>this.eContainer.style.transform=`translateY(${r})`};this.createManagedBean(new f.RowContainerCtrl(this.name)).setComp(s,this.eContainer,this.eViewport)}destroy(){this.setRowCtrls([]),super.destroy()}setRowCtrls(s){let r=pe({},this.rowComps);this.rowComps={},this.lastPlacedElement=null,s.forEach(d=>{let g=d.instanceId,m=r[g];if(m)this.rowComps[g]=m,delete r[g],this.ensureDomOrder(m.getGui());else{if(!d.rowNode.displayed)return;let b=new M.RowComp(d,this.beans,this.options.type);this.rowComps[g]=b,this.appendRow(b.getGui())}}),Object.values(r).forEach(d=>{this.eContainer.removeChild(d.getGui()),d.destroy()}),(0,A._setAriaRole)(this.eContainer,"rowgroup")}appendRow(s){this.domOrder?(0,F._insertWithDomOrder)(this.eContainer,s,this.lastPlacedElement):this.eContainer.appendChild(s),this.lastPlacedElement=s}ensureDomOrder(s){this.domOrder&&((0,F._ensureDomOrder)(this.eContainer,s,this.lastPlacedElement),this.lastPlacedElement=s)}}x.RowContainerComp=v,x.RowContainerSelector={selector:"AG-ROW-CONTAINER",component:v}},8115:function(ne,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.RowContainerCtrl=x._getRowContainerOptions=void 0;let M=p(8731),A=p(7274),F=p(3507),D=p(2218),f=p(5858),v=p(2625),u=p(9622),s=le=>le.topRowCtrls,r=le=>le.getStickyTopRowCtrls(),d=le=>le.getStickyBottomRowCtrls(),g=le=>le.bottomRowCtrls,m=le=>le.allRowCtrls,b={center:{type:"center",container:"ag-center-cols-container",viewport:"ag-center-cols-viewport",getRowCtrls:m},left:{type:"left",container:"ag-pinned-left-cols-container",pinnedType:"left",getRowCtrls:m},right:{type:"right",container:"ag-pinned-right-cols-container",pinnedType:"right",getRowCtrls:m},fullWidth:{type:"fullWidth",container:"ag-full-width-container",fullWidth:!0,getRowCtrls:m},topCenter:{type:"center",container:"ag-floating-top-container",viewport:"ag-floating-top-viewport",getRowCtrls:s},topLeft:{type:"left",container:"ag-pinned-left-floating-top",pinnedType:"left",getRowCtrls:s},topRight:{type:"right",container:"ag-pinned-right-floating-top",pinnedType:"right",getRowCtrls:s},topFullWidth:{type:"fullWidth",container:"ag-floating-top-full-width-container",fullWidth:!0,getRowCtrls:s},stickyTopCenter:{type:"center",container:"ag-sticky-top-container",viewport:"ag-sticky-top-viewport",getRowCtrls:r},stickyTopLeft:{type:"left",container:"ag-pinned-left-sticky-top",pinnedType:"left",getRowCtrls:r},stickyTopRight:{type:"right",container:"ag-pinned-right-sticky-top",pinnedType:"right",getRowCtrls:r},stickyTopFullWidth:{type:"fullWidth",container:"ag-sticky-top-full-width-container",fullWidth:!0,getRowCtrls:r},stickyBottomCenter:{type:"center",container:"ag-sticky-bottom-container",viewport:"ag-sticky-bottom-viewport",getRowCtrls:d},stickyBottomLeft:{type:"left",container:"ag-pinned-left-sticky-bottom",pinnedType:"left",getRowCtrls:d},stickyBottomRight:{type:"right",container:"ag-pinned-right-sticky-bottom",pinnedType:"right",getRowCtrls:d},stickyBottomFullWidth:{type:"fullWidth",container:"ag-sticky-bottom-full-width-container",fullWidth:!0,getRowCtrls:d},bottomCenter:{type:"center",container:"ag-floating-bottom-container",viewport:"ag-floating-bottom-viewport",getRowCtrls:g},bottomLeft:{type:"left",container:"ag-pinned-left-floating-bottom",pinnedType:"left",getRowCtrls:g},bottomRight:{type:"right",container:"ag-pinned-right-floating-bottom",pinnedType:"right",getRowCtrls:g},bottomFullWidth:{type:"fullWidth",container:"ag-floating-bottom-full-width-container",fullWidth:!0,getRowCtrls:g}};function w(le){return b[le]}x._getRowContainerOptions=w;let k=["center","left","right","fullWidth"],R=["stickyTopCenter","stickyBottomCenter","center","topCenter","bottomCenter"],T=["left","bottomLeft","topLeft","stickyTopLeft","stickyBottomLeft"],z=["right","bottomRight","topRight","stickyTopRight","stickyBottomRight"],G=["stickyTopCenter","stickyTopLeft","stickyTopRight"],U=["stickyBottomCenter","stickyBottomLeft","stickyBottomRight"],X=[...G,"stickyTopFullWidth",...U,"stickyBottomFullWidth"],Q=["topCenter","topLeft","topRight","bottomCenter","bottomLeft","bottomRight","center","left","right",...G,...U];class oe extends M.BeanStub{constructor(fe){super(),this.name=fe,this.visible=!0,this.EMPTY_CTRLS=[],this.options=w(fe)}postConstruct(){this.enableRtl=this.gos.get("enableRtl"),this.forContainers(["center"],()=>{this.viewportSizeFeature=this.createManagedBean(new f.ViewportSizeFeature(this)),this.addManagedEventListeners({stickyTopOffsetChanged:this.onStickyTopOffsetChanged.bind(this)})})}onStickyTopOffsetChanged(fe){this.comp.setOffsetTop(`${fe.offset}px`)}registerWithCtrlsService(){this.options.fullWidth||this.beans.ctrlsSvc.register(this.name,this)}forContainers(fe,ye){fe.indexOf(this.name)>=0&&ye()}setComp(fe,ye,ke){this.comp=fe,this.eContainer=ye,this.eViewport=ke,this.createManagedBean(new v.RowContainerEventsFeature(this.eContainer)),this.addPreventScrollWhileDragging(),this.listenOnDomOrder();let{pinnedCols:Ie,rangeSvc:ze}=this.beans,Ye=()=>this.onPinnedWidthChanged();this.forContainers(T,()=>{this.pinnedWidthFeature=this.createOptionalManagedBean(Ie==null?void 0:Ie.createPinnedWidthFeature(this.eContainer,!0)),this.addManagedEventListeners({leftPinnedWidthChanged:Ye})}),this.forContainers(z,()=>{this.pinnedWidthFeature=this.createOptionalManagedBean(Ie==null?void 0:Ie.createPinnedWidthFeature(this.eContainer,!1)),this.addManagedEventListeners({rightPinnedWidthChanged:Ye})}),this.forContainers(k,()=>this.createManagedBean(new u.SetHeightFeature(this.eContainer,this.name==="center"?ke:void 0))),ze&&this.forContainers(Q,()=>this.createManagedBean(ze.createDragListenerFeature(this.eContainer))),this.forContainers(R,()=>this.createManagedBean(new D.CenterWidthFeature(xe=>this.comp.setContainerWidth(`${xe}px`)))),this.visible=this.isContainerVisible(),this.addListeners(),this.registerWithCtrlsService()}onScrollCallback(fe){this.addManagedElementListeners(this.eViewport,{scroll:fe})}addListeners(){this.addManagedEventListeners({displayedColumnsChanged:this.onDisplayedColumnsChanged.bind(this),displayedColumnsWidthChanged:this.onDisplayedColumnsChanged.bind(this),displayedRowsChanged:fe=>this.onDisplayedRowsChanged(fe.afterScroll)}),this.onDisplayedColumnsChanged(),this.onDisplayedRowsChanged()}listenOnDomOrder(){if(X.indexOf(this.name)>=0)return void this.comp.setDomOrder(!0);let fe=()=>{let ye=this.gos.get("ensureDomOrder"),ke=(0,A._isDomLayout)(this.gos,"print");this.comp.setDomOrder(ye||ke)};this.addManagedPropertyListener("domLayout",fe),fe()}onDisplayedColumnsChanged(){this.forContainers(["center"],()=>this.onHorizontalViewportChanged())}addPreventScrollWhileDragging(){let{dragSvc:fe}=this.beans;if(!fe)return;let ye=ke=>{fe.dragging&&ke.cancelable&&ke.preventDefault()};this.eContainer.addEventListener("touchmove",ye,{passive:!1}),this.addDestroyFunc(()=>this.eContainer.removeEventListener("touchmove",ye))}onHorizontalViewportChanged(fe=!1){let ye=this.getCenterWidth(),ke=this.getCenterViewportScrollLeft();this.beans.colViewport.setScrollPosition(ye,ke,fe)}hasHorizontalScrollGap(){return this.eContainer.clientWidth-this.eViewport.clientWidth<0}hasVerticalScrollGap(){return this.eContainer.clientHeight-this.eViewport.clientHeight<0}getCenterWidth(){return(0,F._getInnerWidth)(this.eViewport)}getCenterViewportScrollLeft(){return(0,F._getScrollLeft)(this.eViewport,this.enableRtl)}registerViewportResizeListener(fe){let ye=(0,F._observeResize)(this.beans,this.eViewport,fe);this.addDestroyFunc(()=>ye())}isViewportInTheDOMTree(){return(0,F._isInDOM)(this.eViewport)}getViewportScrollLeft(){return(0,F._getScrollLeft)(this.eViewport,this.enableRtl)}isHorizontalScrollShowing(){return this.gos.get("alwaysShowHorizontalScroll")||(0,F._isHorizontalScrollShowing)(this.eViewport)}setHorizontalScroll(fe){this.comp.setHorizontalScroll(fe)}getHScrollPosition(){return{left:this.eViewport.scrollLeft,right:this.eViewport.scrollLeft+this.eViewport.offsetWidth}}setCenterViewportScrollLeft(fe){(0,F._setScrollLeft)(this.eViewport,fe,this.enableRtl)}isContainerVisible(){return this.options.pinnedType==null||!!this.pinnedWidthFeature&&this.pinnedWidthFeature.getWidth()>0}onPinnedWidthChanged(){let fe=this.isContainerVisible();this.visible!=fe&&(this.visible=fe,this.onDisplayedRowsChanged())}onDisplayedRowsChanged(fe=!1){let ye=this.options.getRowCtrls(this.beans.rowRenderer);if(!this.visible||ye.length===0)return void this.comp.setRowCtrls({rowCtrls:this.EMPTY_CTRLS});let ke=(0,A._isDomLayout)(this.gos,"print"),Ie=this.gos.get("embedFullWidthRows")||ke,ze=ye.filter(Ye=>{let xe=Ye.isFullWidth();return this.options.fullWidth?!Ie&&xe:Ie||!xe});this.comp.setRowCtrls({rowCtrls:ze,useFlushSync:fe})}}x.RowContainerCtrl=oe},2625:function(ne,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.RowContainerEventsFeature=void 0;let M=p(9853),A=p(8731),F=p(7274),D=p(814),f=p(7632),v=p(1502),u=p(2979),s=p(6466),r=p(8399);class d extends A.BeanStub{constructor(m){super(),this.element=m}postConstruct(){var m;this.addKeyboardListeners(),this.addMouseListeners(),(m=this.beans.touchSvc)==null||m.mockRowContextMenu(this)}addKeyboardListeners(){let m="keydown",b=this.processKeyboardEvent.bind(this,m);this.addManagedElementListeners(this.element,{[m]:b})}addMouseListeners(){["dblclick","contextmenu","mouseover","mouseout","click",(0,u._isEventSupported)("touchstart")?"touchstart":"mousedown"].forEach(m=>{let b=this.processMouseEvent.bind(this,m);this.addManagedElementListeners(this.element,{[m]:b})})}processMouseEvent(m,b){var R;if(!(0,r._isEventFromThisGrid)(this.gos,b)||(0,u._isStopPropagationForAgGrid)(b))return;let{cellCtrl:w,rowCtrl:k}=this.getControlsForEventTarget(b.target);m==="contextmenu"?(R=this.beans.contextMenuSvc)==null||R.handleContextMenuMouseEvent(b,void 0,k,w):(w&&w.onMouseEvent(m,b),k&&k.onMouseEvent(m,b))}getControlsForEventTarget(m){let{gos:b}=this;return{cellCtrl:(0,D._getCellCtrlForEventTarget)(b,m),rowCtrl:(0,u._getCtrlForEventTarget)(b,m,f.DOM_DATA_KEY_ROW_CTRL)}}processKeyboardEvent(m,b){let{cellCtrl:w,rowCtrl:k}=this.getControlsForEventTarget(b.target);b.defaultPrevented||(w?this.processCellKeyboardEvent(w,m,b):k&&k.isFullWidth()&&this.processFullWidthRowKeyboardEvent(k,m,b))}processCellKeyboardEvent(m,b,w){var z;let{rowNode:k,column:R,editing:T}=m;!(0,s._isUserSuppressingKeyboardEvent)(this.gos,w,k,R,T)&&b==="keydown"&&(!T&&((z=this.beans.navigation)!=null&&z.handlePageScrollingKey(w))||m.onKeyDown(w),this.doGridOperations(w,m.editing),(0,s._isEventFromPrintableCharacter)(w)&&m.processCharacter(w)),b==="keydown"&&this.eventSvc.dispatchEvent(m.createEvent(w,"cellKeyDown"))}processFullWidthRowKeyboardEvent(m,b,w){let{rowNode:k}=m,{focusSvc:R,navigation:T}=this.beans,z=R.getFocusedCell(),G=z&&z.column;if(!(0,s._isUserSuppressingKeyboardEvent)(this.gos,w,k,G,!1)){let U=w.key;if(b==="keydown")switch(U){case M.KeyCode.PAGE_HOME:case M.KeyCode.PAGE_END:case M.KeyCode.PAGE_UP:case M.KeyCode.PAGE_DOWN:T==null||T.handlePageScrollingKey(w,!0);break;case M.KeyCode.UP:case M.KeyCode.DOWN:m.onKeyboardNavigate(w);break;case M.KeyCode.TAB:m.onTabKeyDown(w)}}b==="keydown"&&this.eventSvc.dispatchEvent(m.createRowEvent("cellKeyDown",w))}doGridOperations(m,b){if(!m.ctrlKey&&!m.metaKey||b||!(0,r._isEventFromThisGrid)(this.gos,m))return;let w=function(T){let{keyCode:z}=T,G;switch(z){case 65:G=M.KeyCode.A;break;case 67:G=M.KeyCode.C;break;case 86:G=M.KeyCode.V;break;case 68:G=M.KeyCode.D;break;case 90:G=M.KeyCode.Z;break;case 89:G=M.KeyCode.Y;break;default:G=T.code}return G}(m),{clipboardSvc:k,undoRedo:R}=this.beans;return w===M.KeyCode.A?this.onCtrlAndA(m):w===M.KeyCode.C?this.onCtrlAndC(k,m):w===M.KeyCode.D?this.onCtrlAndD(k,m):w===M.KeyCode.V?this.onCtrlAndV(k,m):w===M.KeyCode.X?this.onCtrlAndX(k,m):w===M.KeyCode.Y?this.onCtrlAndY(R):w===M.KeyCode.Z?this.onCtrlAndZ(R,m):void 0}onCtrlAndA(m){var G,U,X;let{beans:{pinnedRowModel:b,rowModel:w,visibleCols:k,rangeSvc:R,selectionSvc:T},gos:z}=this;if(R&&(0,F._isCellSelectionEnabled)(z)&&w.isRowsToRender()){let[Q,oe]=[(G=b==null?void 0:b.isEmpty("top"))!=null?G:!0,(U=b==null?void 0:b.isEmpty("bottom"))!=null?U:!0],le=Q?null:"top",fe,ye;oe?(fe=null,ye=w.getRowCount()-1):(fe="bottom",ye=(X=b==null?void 0:b.getPinnedBottomRowCount())!=null?X:-1);let ke=k.allCols;if(!(ke!=null&&ke.length))return;R.setCellRange({rowStartIndex:0,rowStartPinned:le,rowEndIndex:ye,rowEndPinned:fe,columnStart:ke[0],columnEnd:(0,v._last)(ke)})}else T&&(T==null||T.selectAllRowNodes({source:"keyboardSelectAll",selectAll:(0,F._getSelectAll)(z)}));m.preventDefault()}onCtrlAndC(m,b){if(!m||this.gos.get("enableCellTextSelection"))return;let{cellCtrl:w,rowCtrl:k}=this.getControlsForEventTarget(b.target);w!=null&&w.editing||k!=null&&k.editing||(b.preventDefault(),m.copyToClipboard())}onCtrlAndX(m,b){if(!m||this.gos.get("enableCellTextSelection")||this.gos.get("suppressCutToClipboard"))return;let{cellCtrl:w,rowCtrl:k}=this.getControlsForEventTarget(b.target);w!=null&&w.editing||k!=null&&k.editing||(b.preventDefault(),m.cutToClipboard(void 0,"ui"))}onCtrlAndV(m,b){let{cellCtrl:w,rowCtrl:k}=this.getControlsForEventTarget(b.target);w!=null&&w.editing||k!=null&&k.editing||m&&!this.gos.get("suppressClipboardPaste")&&m.pasteFromClipboard()}onCtrlAndD(m,b){m&&!this.gos.get("suppressClipboardPaste")&&m.copyRangeDown(),b.preventDefault()}onCtrlAndZ(m,b){this.gos.get("undoRedoCellEditing")&&m&&(b.preventDefault(),b.shiftKey?m.redo("ui"):m.undo("ui"))}onCtrlAndY(m){m==null||m.redo("ui")}}x.RowContainerEventsFeature=d},9622:function(ne,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.SetHeightFeature=void 0;let M=p(8731);class A extends M.BeanStub{constructor(D,f){super(),this.eContainer=D,this.eViewport=f}postConstruct(){this.addManagedEventListeners({rowContainerHeightChanged:this.onHeightChanged.bind(this,this.beans.rowContainerHeight)})}onHeightChanged(D){let f=D.uiContainerHeight,v=f!=null?`${f}px`:"";this.eContainer.style.height=v,this.eViewport&&(this.eViewport.style.height=v)}}x.SetHeightFeature=A},2865:function(ne,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.SetPinnedWidthFeature=void 0;let M=p(8731),A=p(3507);class F extends M.BeanStub{constructor(f,v){super(),this.element=f,this.isLeft=v,this.getWidth=v?()=>this.beans.pinnedCols.leftWidth:()=>this.beans.pinnedCols.rightWidth}postConstruct(){this.addManagedEventListeners({[(this.isLeft?"left":"right")+"PinnedWidthChanged"]:this.onPinnedWidthChanged.bind(this)})}onPinnedWidthChanged(){let f=this.getWidth(),v=f>0;(0,A._setDisplayed)(this.element,v),(0,A._setFixedWidth)(this.element,f)}}x.SetPinnedWidthFeature=F},8913:function(ne,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.ScrollVisibleService=void 0;let M=p(8731),A=p(8667);class F extends M.BeanStub{constructor(){super(...arguments),this.beanName="scrollVisibleSvc"}wireBeans(f){this.ctrlsSvc=f.ctrlsSvc,this.colAnimation=f.colAnimation}postConstruct(){this.getScrollbarWidth(),this.addManagedEventListeners({displayedColumnsChanged:this.updateScrollVisible.bind(this),displayedColumnsWidthChanged:this.updateScrollVisible.bind(this)})}updateScrollVisible(){let{colAnimation:f}=this;f!=null&&f.isActive()?f.executeLaterVMTurn(()=>{f.executeLaterVMTurn(()=>this.updateScrollVisibleImpl())}):this.updateScrollVisibleImpl()}updateScrollVisibleImpl(){var u;let f=this.ctrlsSvc.get("center");if(!f||(u=this.colAnimation)!=null&&u.isActive())return;let v={horizontalScrollShowing:f.isHorizontalScrollShowing(),verticalScrollShowing:this.verticalScrollShowing};this.setScrollsVisible(v),this.updateScrollGap()}updateScrollGap(){let f=this.ctrlsSvc.get("center"),v=f.hasHorizontalScrollGap(),u=f.hasVerticalScrollGap();(this.horizontalScrollGap!==v||this.verticalScrollGap!==u)&&(this.horizontalScrollGap=v,this.verticalScrollGap=u,this.eventSvc.dispatchEvent({type:"scrollGapChanged"}))}setScrollsVisible(f){(this.horizontalScrollShowing!==f.horizontalScrollShowing||this.verticalScrollShowing!==f.verticalScrollShowing)&&(this.horizontalScrollShowing=f.horizontalScrollShowing,this.verticalScrollShowing=f.verticalScrollShowing,this.eventSvc.dispatchEvent({type:"scrollVisibilityChanged"}))}getScrollbarWidth(){if(this.scrollbarWidth==null){let f=this.gos.get("scrollbarWidth"),v=typeof f=="number"&&f>=0?f:(0,A._getScrollbarWidth)();v!=null&&(this.scrollbarWidth=v,this.eventSvc.dispatchEvent({type:"scrollbarWidthChanged"}))}return this.scrollbarWidth}}x.ScrollVisibleService=F},5858:function(ne,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.ViewportSizeFeature=void 0;let M=p(8731),A=p(2612),F=p(3507);class D extends M.BeanStub{wireBeans(v){this.scrollVisibleSvc=v.scrollVisibleSvc}constructor(v){super(),this.centerContainerCtrl=v}postConstruct(){this.beans.ctrlsSvc.whenReady(this,v=>{this.gridBodyCtrl=v.gridBodyCtrl,this.listenForResize()}),this.addManagedEventListeners({scrollbarWidthChanged:this.onScrollbarWidthChanged.bind(this)}),this.addManagedPropertyListeners(["alwaysShowHorizontalScroll","alwaysShowVerticalScroll"],()=>{this.checkViewportAndScrolls()})}listenForResize(){let{beans:v,centerContainerCtrl:u,gridBodyCtrl:s}=this,r=()=>{(0,A._requestAnimationFrame)(v,()=>{this.onCenterViewportResized()})};u.registerViewportResizeListener(r),s.registerBodyViewportResizeListener(r)}onScrollbarWidthChanged(){this.checkViewportAndScrolls()}onCenterViewportResized(){if(this.scrollVisibleSvc.updateScrollGap(),this.centerContainerCtrl.isViewportInTheDOMTree()){let{pinnedCols:v,colFlex:u}=this.beans;v==null||v.keepPinnedColumnsNarrowerThanViewport(),this.checkViewportAndScrolls();let s=this.centerContainerCtrl.getCenterWidth();s!==this.centerWidth&&(this.centerWidth=s,u==null||u.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(){let v=this.gridBodyCtrl.eBodyViewport,u=(0,F._getInnerHeight)(v);this.bodyHeight!==u&&(this.bodyHeight=u,this.eventSvc.dispatchEvent({type:"bodyHeightChanged"}))}updateScrollVisibleService(){this.updateScrollVisibleServiceImpl(),setTimeout(this.updateScrollVisibleServiceImpl.bind(this),500)}updateScrollVisibleServiceImpl(){let v={horizontalScrollShowing:this.centerContainerCtrl.isHorizontalScrollShowing(),verticalScrollShowing:this.gridBodyCtrl.isVerticalScrollShowing()};this.scrollVisibleSvc.setScrollsVisible(v)}onHorizontalViewportChanged(){let v=this.centerContainerCtrl.getCenterWidth(),u=this.centerContainerCtrl.getViewportScrollLeft();this.beans.colViewport.setScrollPosition(v,u)}}x.ViewportSizeFeature=D},1678:function(ne,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.GridComp=void 0;let M=p(9625),A=p(9360),F=p(3507),D=p(2043),f=p(8020),v=p(8332),u=p(7600);class s extends v.TabGuardComp{constructor(d){super(),this.gridBody=f.RefPlaceholder,this.sideBar=f.RefPlaceholder,this.pagination=f.RefPlaceholder,this.rootWrapperBody=f.RefPlaceholder,this.eGridDiv=d}postConstruct(){let d={destroyGridUi:()=>this.destroyBean(this),setRtlClass:k=>this.addCssClass(k),forceFocusOutOfContainer:this.forceFocusOutOfContainer.bind(this),updateLayoutClasses:this.updateLayoutClasses.bind(this),getFocusableContainers:this.getFocusableContainers.bind(this),setUserSelect:k=>{this.getGui().style.userSelect=k!=null?k:"",this.getGui().style.webkitUserSelect=k!=null?k:""},setCursor:k=>{this.getGui().style.cursor=k!=null?k:""}},g=this.createManagedBean(new u.GridCtrl),m=g.getOptionalSelectors(),b=this.createTemplate(m),w=[M.GridBodySelector,...Object.values(m).filter(k=>!!k)];this.setTemplate(b,w),g.setComp(d,this.eGridDiv,this.getGui()),this.insertGridIntoDom(),this.initialiseTabGuard({onTabKeyDown:()=>{},focusInnerElement:k=>g.focusInnerElement(k),forceFocusOutWhenTabGuardsAreEmpty:!0})}insertGridIntoDom(){let d=this.getGui();this.eGridDiv.appendChild(d),this.addDestroyFunc(()=>{this.eGridDiv.removeChild(d),(0,D._logIfDebug)(this.gos,"Grid removed from DOM")})}updateLayoutClasses(d,g){let m=this.rootWrapperBody.classList,{AUTO_HEIGHT:b,NORMAL:w,PRINT:k}=A.LayoutCssClasses,{autoHeight:R,normal:T,print:z}=g;m.toggle(b,R),m.toggle(w,T),m.toggle(k,z),this.addOrRemoveCssClass(b,R),this.addOrRemoveCssClass(w,T),this.addOrRemoveCssClass(k,z)}createTemplate(d){let g=d.gridHeaderDropZonesSelector?"<ag-grid-header-drop-zones></ag-grid-header-drop-zones>":"",m=d.sideBarSelector?'<ag-side-bar data-ref="sideBar"></ag-side-bar>':"",b=d.statusBarSelector?"<ag-status-bar></ag-status-bar>":"",w=d.watermarkSelector?"<ag-watermark></ag-watermark>":"";return`<div class="ag-root-wrapper" role="presentation">
                ${g}
                <div class="ag-root-wrapper-body" data-ref="rootWrapperBody" role="presentation">
                    <ag-grid-body data-ref="gridBody"></ag-grid-body>
                    ${m}
                </div>
                ${b}
                ${d.paginationSelector?'<ag-pagination data-ref="pagination"></ag-pagination>':""}
                ${w}
            </div>`}getFocusableElement(){return this.rootWrapperBody}forceFocusOutOfContainer(d=!1){var g;d||!((g=this.pagination)!=null&&g.isDisplayed())?super.forceFocusOutOfContainer(d):this.pagination.forceFocusOutOfContainer(d)}getFocusableContainers(){let d=[this.gridBody];return[this.sideBar,this.pagination].forEach(g=>{g&&d.push(g)}),d.filter(g=>(0,F._isVisible)(g.getGui()))}}x.GridComp=s},7600:function(ne,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.GridCtrl=void 0;let M=p(8731),A=p(8399),F=p(7274),D=p(9360),f=p(1502),v=p(3507),u=p(2331);class s extends M.BeanStub{constructor(){super(...arguments),this.additionalFocusableContainers=new Set}setComp(d,g,m){this.view=d,this.eGridHostDiv=g,this.eGui=m,this.eGui.setAttribute("grid-id",this.beans.context.getGridId());let{dragAndDrop:b,ctrlsSvc:w}=this.beans;b==null||b.registerGridDropTarget(()=>this.eGui,this),(0,A._stampTopLevelGridCompWithGridInstance)(this.gos,g),this.createManagedBean(new D.LayoutFeature(this.view)),this.view.setRtlClass(this.gos.get("enableRtl")?"ag-rtl":"ag-ltr");let k=(0,v._observeResize)(this.beans,this.eGridHostDiv,this.onGridSizeChanged.bind(this));this.addDestroyFunc(()=>k()),w.register("gridCtrl",this)}isDetailGrid(){var g;let d=(0,u._findTabbableParent)(this.getGui());return((g=d==null?void 0:d.getAttribute("row-id"))==null?void 0:g.startsWith("detail"))||!1}getOptionalSelectors(){var g,m,b,w;let d=this.beans;return{paginationSelector:(g=d.pagination)==null?void 0:g.getPaginationSelector(),gridHeaderDropZonesSelector:d.registry.getSelector("AG-GRID-HEADER-DROP-ZONES"),sideBarSelector:(m=d.sideBar)==null?void 0:m.getSelector(),statusBarSelector:(b=d.registry)==null?void 0:b.getSelector("AG-STATUS-BAR"),watermarkSelector:(w=d.licenseManager)==null?void 0:w.getWatermarkSelector()}}onGridSizeChanged(){this.eventSvc.dispatchEvent({type:"gridSizeChanged",clientWidth:this.eGridHostDiv.clientWidth,clientHeight:this.eGridHostDiv.clientHeight})}destroyGridUi(){this.view.destroyGridUi()}getGui(){return this.eGui}setResizeCursor(d){this.view.setCursor(d?"ew-resize":null)}disableUserSelect(d){this.view.setUserSelect(d?"none":null)}focusNextInnerContainer(d){let g=this.getFocusableContainers(),{indexWithFocus:m,nextIndex:b}=this.getNextFocusableIndex(g,d);if(b<0||b>=g.length)return!1;if(b===0){if(m>0){let{visibleCols:w,focusSvc:k}=this.beans,R=w.allCols,T=(0,f._last)(R);if(k.focusGridView(T,!0))return!0}return!1}return this.focusContainer(g[b],d)}focusInnerElement(d){let g=this.gos.getCallback("focusGridInnerElement");if(g&&g({fromBottom:!!d}))return!0;let m=this.getFocusableContainers(),{focusSvc:b,visibleCols:w}=this.beans,k=w.allCols;if(d){if(m.length>1)return this.focusContainer((0,f._last)(m),!0);let R=(0,f._last)(k);if(b.focusGridView(R,!0))return!0}if(this.gos.get("headerHeight")===0||(0,u._isHeaderFocusSuppressed)(this.beans)){if(b.focusGridView(k[0]))return!0;for(let R=1;R<m.length;R++)if((0,u._focusInto)(m[R].getGui()))return!0;return!1}return b.focusFirstHeader()}forceFocusOutOfContainer(d=!1){this.view.forceFocusOutOfContainer(d)}addFocusableContainer(d){this.additionalFocusableContainers.add(d)}removeFocusableContainer(d){this.additionalFocusableContainers.delete(d)}allowFocusForNextCoreContainer(d){var k;let g=this.view.getFocusableContainers(),{nextIndex:m,indexWithFocus:b}=this.getNextFocusableIndex(g,d);if(b===-1||m<0||m>=g.length)return;let w=g[m];(k=w.setAllowFocus)==null||k.call(w,!0),setTimeout(()=>{var R;(R=w.setAllowFocus)==null||R.call(w,!1)})}getNextFocusableIndex(d,g){let m=(0,F._getActiveDomElement)(this.beans),b=d.findIndex(w=>w.getGui().contains(m));return{indexWithFocus:b,nextIndex:b+(g?-1:1)}}focusContainer(d,g){var b,w;(b=d.setAllowFocus)==null||b.call(d,!0);let m=(0,u._focusInto)(d.getGui(),g);return(w=d.setAllowFocus)==null||w.call(d,!1),m}getFocusableContainers(){return[...this.view.getFocusableContainers(),...this.additionalFocusableContainers]}destroy(){this.additionalFocusableContainers.clear(),super.destroy()}}x.GridCtrl=s},1978:function(ne,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.CommunityCoreModule=void 0;let M=p(3907),A=p(9875),F=p(4074),D=p(6924),f=p(6041),v=p(2986),u=p(2027),s=p(8997),r=p(5034),d=p(6869),g=p(8414),m=p(4110),b=p(1585),w=p(20),k=p(9024),R=p(8778),T=p(3245),z=p(8913),G=p(3888),U=p(8484),X=p(8078),Q=p(6392),oe=p(3705),le=p(928),fe=p(2550),ye=p(3003),ke=p(6219),Ie=p(3433),ze=p(5366),Ye=p(7109),xe=p(557),Te=p(6620),Ae=p(7711),Ne=p(6431),Re=p(5736),Oe=p(7205);x.CommunityCoreModule={moduleName:"CommunityCore",version:Oe.VERSION,beans:[G.GridDestroyService,M.ApiFunctionService,m.Registry,b.UserComponentFactory,Ye.RowContainerHeightService,d.VisibleColsService,R.EventService,U.GridOptionsService,v.ColumnModel,ye.PageBoundsService,fe.PageBoundsListener,xe.RowRenderer,Re.ValueService,T.FocusService,k.Environment,z.ScrollVisibleService,w.CtrlsService,Ae.SyncService,s.ColumnNameService,r.ColumnViewportService],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:A.getGridId,destroy:A.destroy,isDestroyed:A.isDestroyed,getGridOption:A.getGridOption,setGridOption:A.setGridOption,updateGridOptions:A.updateGridOptions},dependsOn:[u.DataTypeModule,F.ColumnMoveModule,D.ColumnResizeModule,Te.SortModule,X.ColumnHeaderCompModule,f.ColumnGroupModule,X.ColumnGroupHeaderCompModule,ze.OverlayModule,Ne.ChangeDetectionModule,Q.AnimationFrameModule,le.KeyboardNavigationModule,ke.PinnedColumnModule,Ie.AriaModule,oe.TouchModule,g.CellRendererFunctionModule,u.ColumnFlexModule,Ne.ExpressionModule]}},3888:function(ne,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.GridDestroyService=void 0;let M=p(8731);class A extends M.BeanStub{constructor(){super(...arguments),this.beanName="gridDestroySvc",this.destroyCalled=!1}destroy(){var u,s;if(this.destroyCalled)return;let{stateSvc:D,ctrlsSvc:f,context:v}=this.beans;this.eventSvc.dispatchEvent({type:"gridPreDestroyed",state:(u=D==null?void 0:D.getState())!=null?u:{}}),this.destroyCalled=!0,(s=f.get("gridCtrl"))==null||s.destroyGridUi(),v.destroy(),super.destroy()}}x.GridDestroyService=A},28:function(ne,x){Object.defineProperty(x,"__esModule",{value:!0}),x.GRID_OPTION_DEFAULTS=void 0,x.GRID_OPTION_DEFAULTS={suppressContextMenu:!1,preventDefaultOnContextMenu:!1,allowContextMenuWithControlKey:!1,suppressMenuHide:!0,enableBrowserTooltips:!1,tooltipTrigger:"hover",tooltipShowDelay:2e3,tooltipHideDelay:1e4,tooltipMouseTrack:!1,tooltipShowMode:"standard",tooltipInteraction:!1,copyHeadersToClipboard:!1,copyGroupHeadersToClipboard:!1,clipboardDelimiter:"	",suppressCopyRowsToClipboard:!1,suppressCopySingleCellRanges:!1,suppressLastEmptyLineOnPaste:!1,suppressClipboardPaste:!1,suppressClipboardApi:!1,suppressCutToClipboard:!1,maintainColumnOrder:!1,enableStrictPivotColumnOrder:!1,suppressFieldDotNotation:!1,allowDragFromColumnsToolPanel:!1,suppressMovableColumns:!1,suppressColumnMoveAnimation:!1,suppressMoveWhenColumnDragging:!1,suppressDragLeaveHidesColumns:!1,suppressRowGroupHidesColumns:!1,suppressAutoSize:!1,autoSizePadding:20,skipHeaderOnAutoSize:!1,singleClickEdit:!1,suppressClickEdit:!1,readOnlyEdit:!1,stopEditingWhenCellsLoseFocus:!1,enterNavigatesVertically:!1,enterNavigatesVerticallyAfterEdit:!1,enableCellEditingOnBackspace:!1,undoRedoCellEditing:!1,undoRedoCellEditingLimit:10,suppressCsvExport:!1,suppressExcelExport:!1,cacheQuickFilter:!1,includeHiddenColumnsInQuickFilter:!1,excludeChildrenWhenTreeDataFiltering:!1,enableAdvancedFilter:!1,includeHiddenColumnsInAdvancedFilter:!1,enableCharts:!1,masterDetail:!1,keepDetailRows:!1,keepDetailRowsCount:10,detailRowAutoHeight:!1,tabIndex:0,rowBuffer:10,valueCache:!1,valueCacheNeverExpires:!1,enableCellExpressions:!1,suppressTouch:!1,suppressFocusAfterRefresh:!1,suppressBrowserResizeObserver:!1,suppressPropertyNamesCheck:!1,suppressChangeDetection:!1,debug:!1,suppressLoadingOverlay:!1,suppressNoRowsOverlay:!1,pagination:!1,paginationPageSize:100,paginationPageSizeSelector:!0,paginationAutoPageSize:!1,paginateChildRows:!1,suppressPaginationPanel:!1,pivotMode:!1,pivotPanelShow:"never",pivotDefaultExpanded:0,pivotSuppressAutoColumn:!1,suppressExpandablePivotGroups:!1,functionsReadOnly:!1,suppressAggFuncInHeader:!1,alwaysAggregateAtRootLevel:!1,aggregateOnlyChangedColumns:!1,suppressAggFilteredOnly:!1,removePivotHeaderRowWhenSingleValueColumn:!1,animateRows:!0,cellFlashDuration:500,cellFadeDuration:1e3,allowShowChangeAfterFilter:!1,domLayout:"normal",ensureDomOrder:!1,enableRtl:!1,suppressColumnVirtualisation:!1,suppressMaxRenderedRowRestriction:!1,suppressRowVirtualisation:!1,rowDragManaged:!1,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}},2891:function(ne,x){Object.defineProperty(x,"__esModule",{value:!0}),x.INITIAL_GRID_OPTION_KEYS=void 0,x.INITIAL_GRID_OPTION_KEYS={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,columnMenu:!0,suppressSetFilterByDefault:!0,getDataPath:!0}},8484:function(ne,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.GridOptionsService=void 0;let M=p(8731),A=p(7968),F=p(28),D=p(7274),f=p(5889),v=p(2132),u=p(2043),s=p(4422),r=p(7764),d=0,g=0;class m extends M.BeanStub{constructor(){super(...arguments),this.beanName="gos",this.domDataKey="__AG_"+Math.random().toString(),this.gridInstanceId=g++,this.propEventSvc=new f.LocalEventService,this.globalEventHandlerFactory=w=>(k,R)=>{if(!this.isAlive())return;let T=A.ALWAYS_SYNC_GLOBAL_EVENTS.has(k);if(T&&!w||!T&&w)return;let z=(0,D._getCallbackForEvent)(k),G=this.gridOptions[z];typeof G=="function"&&this.beans.frameworkOverrides.wrapOutgoing(()=>{G(R)})}}wireBeans(w){this.gridOptions=w.gridOptions,this.validation=w.validation,this.api=w.gridApi,this.gridId=w.context.getGridId()}get gridOptionsContext(){return this.gridOptions.context}postConstruct(){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:w})=>{this.updateGridOptions({options:w,force:!0,source:"gridOptionsUpdated"})}})}get(w){var k;return(k=this.gridOptions[w])!=null?k:F.GRID_OPTION_DEFAULTS[w]}getCallback(w){return this.mergeGridCommonParams(this.gridOptions[w])}exists(w){return(0,s._exists)(this.gridOptions[w])}mergeGridCommonParams(w){return w&&(k=>w(this.addGridCommonParams(k)))}updateGridOptions({options:w,force:k,source:R="api"}){let T={id:d++,properties:[]},z=[],{gridOptions:G,validation:U}=this;Object.entries(w).forEach(([X,Q])=>{U==null||U.warnOnInitialPropertyUpdate(R,X);let oe=k||typeof Q=="object"&&R==="api",le=G[X];if(oe||le!==Q){G[X]=Q;let fe={type:X,currentValue:Q,previousValue:le,changeSet:T,source:R};z.push(fe)}}),U==null||U.processGridOptions(this.gridOptions),T.properties=z.map(X=>X.type),z.forEach(X=>{(0,u._logIfDebug)(this,`Updated property ${X.type} from`,X.previousValue," to ",X.currentValue),this.propEventSvc.dispatchEvent(X)})}addPropertyEventListener(w,k){this.propEventSvc.addEventListener(w,k)}removePropertyEventListener(w,k){this.propEventSvc.removeEventListener(w,k)}getDomDataKey(){return this.domDataKey}getGridCommonParams(){return{api:this.api,context:this.gridOptionsContext}}addGridCommonParams(w){let k=w;return k.api=this.api,k.context=this.gridOptionsContext,k}assertModuleRegistered(w,k){let R=Array.isArray(w)?w.some(T=>this.isModuleRegistered(T)):this.isModuleRegistered(w);return R||(0,r._error)(200,et(pe({},this.getModuleErrorParams()),{moduleName:w,reasonOrId:k})),R}getModuleErrorParams(){return{gridId:this.gridId,gridScoped:(0,v._areModulesGridScoped)(),rowModelType:this.get("rowModelType")}}isModuleRegistered(w){return(0,v._isModuleRegistered)(w,this.gridId,this.get("rowModelType"))}}x.GridOptionsService=m},7274:function(ne,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x._isColumnMenuAnchoringEnabled=x._isLegacyMenuEnabled=x._isSetFilterByDefault=x._getGroupSelectsDescendants=x._getSelectAll=x._getGroupSelection=x._getEnableSelectionWithoutKeys=x._isMultiRowSelection=x._getRowSelectionMode=x._getIsRowSelectable=x._getEnableDeselection=x._getEnableSelection=x._getFillHandle=x._isCellSelectionEnabled=x._getSuppressMultiRanges=x._isUsingNewCellSelectionAPI=x._isUsingNewRowSelectionAPI=x._getHideDisabledCheckboxes=x._getCheckboxLocation=x._getHeaderCheckbox=x._getCheckboxes=x._shouldUpdateColVisibilityAfterGroup=x._getMaxConcurrentDatasourceRequests=x._canSkipShowingRowGroup=x._getRowIdCallback=x._isGroupUseEntireRow=x._isGroupMultiAutoColumn=x._getGroupTotalRowCallback=x._getGrandTotalRow=x._getGroupAggFiltering=x._isColumnsSortingCoupledToGroup=x._isGroupRowsSticky=x._isAnimateRows=x._isNothingFocused=x._anchorElementToMouseMoveEvent=x._getPageBody=x._getActiveDomElement=x._getRootNode=x._getWindow=x._getDocument=x._setDomData=x._getDomData=x._getRowHeightAsNumber=x._getRowHeightForNode=x._shouldMaintainColumnOrder=x._isGetRowHeightFunction=x._isRowSelection=x._isDomLayout=x._isServerSideRowModel=x._isClientSideRowModel=void 0,x._processOnChange=x._combineAttributesAndGridOptions=x._getCallbackForEvent=x._areAdditionalColumnMenuItemsEnabled=void 0;let M=p(3507),A=p(4422),F=p(7764);function D(R,T){return R.get("rowModelType")===T}function f(R,T){return R.get("domLayout")===T}function v(R){return typeof R.get("getRowHeight")=="function"}function u(R){return!isNaN(R)&&typeof R=="number"&&isFinite(R)}function s(R){let{gos:T,eGridDiv:z}=R,G=null,U=T.get("getDocument");return U&&(0,A._exists)(U)?G=U():z&&(G=z.ownerDocument),G&&(0,A._exists)(G)?G:document}function r(R){return R.eGridDiv.getRootNode()}function d(R){return r(R).activeElement}function g(R){let T=null,z=null;try{T=s(R).fullscreenElement}catch(G){}finally{T||(T=r(R)),z=T.querySelector("body")||(T instanceof ShadowRoot?T:T instanceof Document?T==null?void 0:T.documentElement:T)}return z}function m(R){var z,G;let T=(z=R.get("rowSelection"))!=null?z:"single";if(typeof T=="string"){let U=R.get("suppressRowClickSelection"),X=R.get("suppressRowDeselection");return(!U||!X)&&(U?"enableDeselection":!X||"enableSelection")}return(T.mode==="singleRow"||T.mode==="multiRow")&&((G=T.enableClickSelection)!=null?G:!1)}function b(R){let T=R.get("rowSelection");if(typeof T=="string")switch(T){case"multiple":return"multiRow";case"single":return"singleRow";default:return}switch(T==null?void 0:T.mode){case"multiRow":case"singleRow":return T.mode;default:return}}function w(R){let T=R.get("rowSelection");if(typeof T=="string"){let z=R.get("groupSelectsChildren"),G=R.get("groupSelectsFiltered");return z&&G?"filteredDescendants":z?"descendants":"self"}return(T==null?void 0:T.mode)==="multiRow"?T.groupSelects:void 0}function k(R){return R.get("columnMenu")==="legacy"}x._isClientSideRowModel=function(R,T){return D(R,"clientSide")},x._isServerSideRowModel=function(R,T){return D(R,"serverSide")},x._isDomLayout=f,x._isRowSelection=function(R){return b(R)!==void 0},x._isGetRowHeightFunction=v,x._shouldMaintainColumnOrder=function(R,T){return T?!R.get("enableStrictPivotColumnOrder"):R.get("maintainColumnOrder")},x._getRowHeightForNode=function(R,T,z=!1,G){let{gos:U,environment:X}=R;if(G==null&&(G=X.getDefaultRowHeight()),v(U)){if(z)return{height:G,estimated:!0};let oe={node:T,data:T.data},le=U.getCallback("getRowHeight")(oe);if(u(le))return le===0&&(0,F._warn)(23),{height:Math.max(1,le),estimated:!1}}if(T.detail&&U.get("masterDetail"))return function(oe){if(oe.get("detailRowAutoHeight"))return{height:1,estimated:!1};let le=oe.get("detailRowHeight");return u(le)?{height:le,estimated:!1}:{height:300,estimated:!1}}(U);let Q=U.get("rowHeight");return{height:Q&&u(Q)?Q:G,estimated:!1}},x._getRowHeightAsNumber=function(R){let{environment:T,gos:z}=R,G=z.get("rowHeight");if(!G||(0,A._missing)(G))return T.getDefaultRowHeight();let U=T.refreshRowHeightVariable();return U!==-1?U:((0,F._warn)(24),T.getDefaultRowHeight())},x._getDomData=function(R,T,z){let G=T[R.getDomDataKey()];return G?G[z]:void 0},x._setDomData=function(R,T,z,G){let U=R.getDomDataKey(),X=T[U];(0,A._missing)(X)&&(X={},T[U]=X),X[z]=G},x._getDocument=s,x._getWindow=function(R){return s(R).defaultView||window},x._getRootNode=r,x._getActiveDomElement=d,x._getPageBody=g,x._anchorElementToMouseMoveEvent=function(R,T,z){let G=R.getBoundingClientRect().height,U=function(xe){var Ae;let Te=g(xe);return(Ae=Te==null?void 0:Te.clientWidth)!=null?Ae:window.innerHeight||-1}(z)-2,X=function(xe){var Ae;let Te=g(xe);return(Ae=Te==null?void 0:Te.clientHeight)!=null?Ae:window.innerHeight||-1}(z)-2;if(!R.offsetParent)return;let Q=(0,M._getElementRectWithOffset)(R.offsetParent),{clientY:oe,clientX:le}=T,fe=oe-Q.top-G/2,ye=le-Q.left-10,ke=s(z),Ie=ke.defaultView||window,ze=Ie.pageYOffset||ke.documentElement.scrollTop,Ye=Ie.pageXOffset||ke.documentElement.scrollLeft;U>0&&ye+R.clientWidth>U+Ye&&(ye=U+Ye-R.clientWidth),ye<0&&(ye=0),X>0&&fe+R.clientHeight>X+ze&&(fe=X+ze-R.clientHeight),fe<0&&(fe=0),R.style.left=`${ye}px`,R.style.top=`${fe}px`},x._isNothingFocused=function(R){let T=s(R),z=d(R);return z===null||z===T.body},x._isAnimateRows=function(R){return!R.get("ensureDomOrder")&&R.get("animateRows")},x._isGroupRowsSticky=function(R){return!(R.get("paginateChildRows")||R.get("groupHideOpenParents")||f(R,"print"))},x._isColumnsSortingCoupledToGroup=function(R){let T=R.get("autoGroupColumnDef");return!(T!=null&&T.comparator)&&!R.get("treeData")},x._getGroupAggFiltering=function(R){let T=R.get("groupAggFiltering");return typeof T=="function"?R.getCallback("groupAggFiltering"):T===!0?()=>!0:void 0},x._getGrandTotalRow=function(R){return R.get("grandTotalRow")},x._getGroupTotalRowCallback=function(R){let T=R.get("groupTotalRow");return typeof T=="function"?R.getCallback("groupTotalRow"):()=>T!=null?T:void 0},x._isGroupMultiAutoColumn=function(R){return R.exists("groupDisplayType")?R.get("groupDisplayType")==="multipleColumns":R.get("groupHideOpenParents")},x._isGroupUseEntireRow=function(R,T){return!T&&R.get("groupDisplayType")==="groupRows"},x._getRowIdCallback=function(R){let T=R.getCallback("getRowId");return T===void 0?T:z=>{let G=T(z);return typeof G!="string"&&((0,F._warn)(25,{id:G}),G=String(G)),G}},x._canSkipShowingRowGroup=function(R,T){let z=R.get("groupHideParentOfSingleChild");return z===!0||!(z!=="leafGroupsOnly"||!T.leafGroup)||!!R.get("groupRemoveSingleChildren")||!(!R.get("groupRemoveLowestSingleChildren")||!T.leafGroup)},x._getMaxConcurrentDatasourceRequests=function(R){let T=R.get("maxConcurrentDatasourceRequests");return T>0?T:void 0},x._shouldUpdateColVisibilityAfterGroup=function(R,T){let z=R.get("suppressGroupChangesColumnVisibility");if(z===!0||T&&z==="suppressHideOnGroup"||!T&&z==="suppressShowOnUngroup")return!1;let G=R.get("suppressRowGroupHidesColumns");if(T&&G===!0)return!1;let U=R.get("suppressMakeColumnVisibleAfterUnGroup");return!(!T&&U===!0)},x._getCheckboxes=function(R){var T;return(T=R==null?void 0:R.checkboxes)!=null?T:!0},x._getHeaderCheckbox=function(R){var T;return(R==null?void 0:R.mode)==="multiRow"&&((T=R.headerCheckbox)!=null?T:!0)},x._getCheckboxLocation=function(R){var T;if(typeof R=="object")return(T=R.checkboxLocation)!=null?T:"selectionColumn"},x._getHideDisabledCheckboxes=function(R){var T;return(T=R==null?void 0:R.hideDisabledCheckboxes)!=null?T:!1},x._isUsingNewRowSelectionAPI=function(R){return typeof R.get("rowSelection")!="string"},x._isUsingNewCellSelectionAPI=function(R){return R.get("cellSelection")!==void 0},x._getSuppressMultiRanges=function(R){var z;let T=R.get("cellSelection");return T!==void 0?typeof T!="boolean"&&((z=T==null?void 0:T.suppressMultiRanges)!=null?z:!1):R.get("suppressMultiRangeSelection")},x._isCellSelectionEnabled=function(R){let T=R.get("cellSelection");return T!==void 0?!!T:R.get("enableRangeSelection")},x._getFillHandle=function(R){var z;let T=R.get("cellSelection");return T!==void 0?typeof T!="boolean"&&((z=T.handle)==null?void 0:z.mode)==="fill"?T.handle:void 0:{mode:"fill",setFillValue:R.get("fillOperation"),direction:R.get("fillHandleDirection"),suppressClearOnFillReduction:R.get("suppressClearOnFillReduction")}},x._getEnableSelection=function(R){let T=m(R);return T===!0||T==="enableSelection"},x._getEnableDeselection=function(R){let T=m(R);return T===!0||T==="enableDeselection"},x._getIsRowSelectable=function(R){let T=R.get("rowSelection");return typeof T=="string"?R.get("isRowSelectable"):T==null?void 0:T.isRowSelectable},x._getRowSelectionMode=b,x._isMultiRowSelection=function(R){return b(R)==="multiRow"},x._getEnableSelectionWithoutKeys=function(R){var z;let T=R.get("rowSelection");return typeof T=="string"?R.get("rowMultiSelectWithClick"):(z=T==null?void 0:T.enableSelectionWithoutKeys)!=null?z:!1},x._getGroupSelection=w,x._getSelectAll=function(R,T=!0){let z=R.get("rowSelection");return typeof z!="object"?T?"all":void 0:z.mode==="multiRow"?z.selectAll:"all"},x._getGroupSelectsDescendants=function(R){let T=w(R);return T==="descendants"||T==="filteredDescendants"},x._isSetFilterByDefault=function(R){return R.isModuleRegistered("SetFilter")&&!R.get("suppressSetFilterByDefault")},x._isLegacyMenuEnabled=k,x._isColumnMenuAnchoringEnabled=function(R){return!k(R)},x._areAdditionalColumnMenuItemsEnabled=function(R){return R.get("columnMenu")==="new"},x._getCallbackForEvent=function(R){return!R||R.length<2?R:"on"+R[0].toUpperCase()+R.substring(1)},x._combineAttributesAndGridOptions=function(R,T,z){typeof R!="object"&&(R={});let G=pe({},R);return z.forEach(U=>{let X=T[U];X!==void 0&&(G[U]=X)}),G},x._processOnChange=function(R,T){if(!R)return;let z={},G=!1;if(Object.keys(R).forEach(Q=>{z[Q]=R[Q],G=!0}),!G)return;let U={type:"gridOptionsChanged",options:z};T.dispatchEvent(U);let X=pe({type:"componentStateChanged"},z);T.dispatchEvent(X)}},9860:function(ne,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.AbstractHeaderCellComp=void 0;let M=p(8020);class A extends M.Component{constructor(D,f){super(D),this.ctrl=f}getCtrl(){return this.ctrl}}x.AbstractHeaderCellComp=A},3534:function(ne,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.AbstractHeaderCellCtrl=x.DOM_DATA_KEY_HEADER_CTRL=void 0;let M=p(8731),A=p(7274),F=p(2612),D=p(5230),f=p(3507),v=p(2331),u=p(4422),s=p(9853),r=p(1295),d=0;x.DOM_DATA_KEY_HEADER_CTRL="headerCtrl";class g extends M.BeanStub{constructor(b,w){super(),this.column=b,this.rowCtrl=w,this.resizeToggleTimeout=0,this.resizeMultiplier=1,this.resizeFeature=null,this.lastFocusEvent=null,this.dragSource=null,this.instanceId=b.getUniqueId()+"-"+d++}postConstruct(){let b=this.refreshTabIndex.bind(this);this.addManagedPropertyListeners(["suppressHeaderFocus"],b),this.addManagedEventListeners({overlayExclusiveChanged:b})}shouldStopEventPropagation(b){let{headerRowIndex:w,column:k}=this.beans.focusSvc.focusedHeader,R=k.getDefinition(),T=R&&R.suppressHeaderKeyboardEvent;return(0,u._exists)(T)?!!T(this.gos.addGridCommonParams({colDef:R,column:k,headerRowIndex:w,event:b})):!1}getWrapperHasFocus(){return(0,A._getActiveDomElement)(this.beans)===this.eGui}setGui(b,w){this.eGui=b,this.addDomData(w),w.addManagedListeners(this.beans.eventSvc,{displayedColumnsChanged:this.onDisplayedColumnsChanged.bind(this)}),w.addManagedElementListeners(this.eGui,{focus:this.onGuiFocus.bind(this)}),this.onDisplayedColumnsChanged(),this.refreshTabIndex()}onGuiFocus(){this.eventSvc.dispatchEvent({type:"headerFocused",column:this.column})}setupAutoHeight(b){let{wrapperElement:w,checkMeasuringCallback:k,compBean:R}=b,{beans:T}=this,z=le=>{if(!this.isAlive()||!R.isAlive())return;let{paddingTop:fe,paddingBottom:ye,borderBottomWidth:ke,borderTopWidth:Ie}=(0,f._getElementSize)(this.eGui),ze=fe+ye+ke+Ie,Ye=w.offsetHeight+ze;if(le<5){let xe=(0,A._getDocument)(T);if(!xe||!xe.contains(w)||Ye==0)return void(0,F._requestAnimationFrame)(T,()=>z(le+1))}this.setColHeaderHeight(this.column,Ye)},G,U=!1,X=()=>{let le=this.column.isAutoHeaderHeight();le&&!U&&Q(),!le&&U&&oe()},Q=()=>{U=!0,z(0),this.comp.addOrRemoveCssClass("ag-header-cell-auto-height",!0),G=(0,f._observeResize)(this.beans,w,()=>z(0))},oe=()=>{U=!1,G&&G(),this.comp.addOrRemoveCssClass("ag-header-cell-auto-height",!1),G=void 0};X(),R.addDestroyFunc(()=>oe()),R.addManagedListeners(this.column,{widthChanged:()=>U&&z(0)}),R.addManagedEventListeners({sortChanged:()=>{U&&window.setTimeout(()=>z(0))}}),k&&k(X)}onDisplayedColumnsChanged(){let{comp:b,column:w,beans:k,eGui:R}=this;b&&w&&R&&((0,r.refreshFirstAndLastStyles)(b,w,k.visibleCols),(0,D._setAriaColIndex)(R,k.visibleCols.getAriaColIndex(w)))}addResizeAndMoveKeyboardListeners(b){b.addManagedListeners(this.eGui,{keydown:this.onGuiKeyDown.bind(this),keyup:this.onGuiKeyUp.bind(this)})}refreshTabIndex(){let b=(0,v._isHeaderFocusSuppressed)(this.beans);this.eGui&&(0,f._addOrRemoveAttribute)(this.eGui,"tabindex",b?null:"-1")}onGuiKeyDown(b){var T;let w=(0,A._getActiveDomElement)(this.beans),k=b.key===s.KeyCode.LEFT||b.key===s.KeyCode.RIGHT;if(this.isResizing&&(b.preventDefault(),b.stopImmediatePropagation()),w!==this.eGui||!b.shiftKey&&!b.altKey||((this.isResizing||k)&&(b.preventDefault(),b.stopImmediatePropagation()),!k))return;let R=b.key===s.KeyCode.LEFT!==this.gos.get("enableRtl")?"left":"right";if(b.altKey){this.isResizing=!0,this.resizeMultiplier+=1;let z=this.getViewportAdjustedResizeDiff(b);this.resizeHeader(z,b.shiftKey),(T=this.resizeFeature)==null||T.toggleColumnResizing(!0)}else this.moveHeader(R)}moveHeader(b){var w;(w=this.beans.colMoves)==null||w.moveHeader(b,this.eGui,this.column,this.rowCtrl.pinned,this)}getViewportAdjustedResizeDiff(b){let w=this.getResizeDiff(b),{pinnedCols:k}=this.beans;return k?k.getHeaderResizeDiff(w,this.column):w}getResizeDiff(b){let{gos:w,column:k}=this,R=b.key===s.KeyCode.LEFT!==w.get("enableRtl"),T=k.getPinned(),z=w.get("enableRtl");return T&&z!==(T==="right")&&(R=!R),(R?-1:1)*this.resizeMultiplier}onGuiKeyUp(){this.isResizing&&(this.resizeToggleTimeout&&(window.clearTimeout(this.resizeToggleTimeout),this.resizeToggleTimeout=0),this.isResizing=!1,this.resizeMultiplier=1,this.resizeToggleTimeout=window.setTimeout(()=>{var b;(b=this.resizeFeature)==null||b.toggleColumnResizing(!1)},150))}handleKeyDown(b){let w=this.getWrapperHasFocus();switch(b.key){case s.KeyCode.PAGE_DOWN:case s.KeyCode.PAGE_UP:case s.KeyCode.PAGE_HOME:case s.KeyCode.PAGE_END:w&&b.preventDefault()}}addDomData(b){let w=x.DOM_DATA_KEY_HEADER_CTRL,{eGui:k,gos:R}=this;(0,A._setDomData)(R,k,w,this),b.addDestroyFunc(()=>(0,A._setDomData)(R,k,w,null))}focus(b){let{eGui:w}=this;return!!w&&(this.lastFocusEvent=b||null,w.focus(),!0)}focusThis(){this.beans.focusSvc.focusedHeader={headerRowIndex:this.rowCtrl.rowIndex,column:this.column}}removeDragSource(){var b;this.dragSource&&((b=this.beans.dragAndDrop)==null||b.removeDragSource(this.dragSource),this.dragSource=null)}handleContextMenuMouseEvent(b,w,k){let R=b!=null?b:w,{menuSvc:T,gos:z}=this.beans;z.get("preventDefaultOnContextMenu")&&R.preventDefault(),T!=null&&T.isHeaderContextMenuEnabled(k)&&T.showHeaderContextMenu(k,b,w),this.dispatchColumnMouseEvent("columnHeaderContextMenu",k)}dispatchColumnMouseEvent(b,w){this.eventSvc.dispatchEvent({type:b,column:w})}setColHeaderHeight(b,w){if(!b.setAutoHeaderHeight(w))return;let{eventSvc:k}=this;b.isColumn?k.dispatchEvent({type:"columnHeaderHeightChanged",column:b,columns:[b],source:"autosizeColumnHeaderHeight"}):k.dispatchEvent({type:"columnGroupHeaderHeightChanged",columnGroup:b,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}}x.AbstractHeaderCellCtrl=g},1906:function(ne,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.HeaderCellComp=void 0;let M=p(5230),A=p(8020),F=p(9860);class D extends F.AbstractHeaderCellComp{constructor(v){super(`<div class="ag-header-cell" role="columnheader">
            <div data-ref="eResize" class="ag-header-cell-resize" role="presentation"></div>
            <div data-ref="eHeaderCompWrapper" class="ag-header-cell-comp-wrapper" role="presentation"></div>
        </div>`,v),this.eResize=A.RefPlaceholder,this.eHeaderCompWrapper=A.RefPlaceholder,this.headerCompVersion=0}postConstruct(){let v=this.getGui();var u,s;u="col-id",(s=this.ctrl.column.getColId())!=null&&s!=""?v.setAttribute(u,s):v.removeAttribute(u);let r={setWidth:g=>v.style.width=g,addOrRemoveCssClass:(g,m)=>this.addOrRemoveCssClass(g,m),setAriaSort:g=>g?(0,M._setAriaSort)(v,g):(0,M._removeAriaSort)(v),setUserCompDetails:g=>this.setUserCompDetails(g),getUserCompInstance:()=>this.headerComp};this.ctrl.setComp(r,this.getGui(),this.eResize,this.eHeaderCompWrapper,void 0);let d=this.ctrl.getSelectAllGui();d&&this.eResize.insertAdjacentElement("afterend",d)}destroy(){this.destroyHeaderComp(),super.destroy()}destroyHeaderComp(){this.headerComp&&(this.eHeaderCompWrapper.removeChild(this.headerCompGui),this.headerComp=this.destroyBean(this.headerComp),this.headerCompGui=void 0)}setUserCompDetails(v){this.headerCompVersion++;let u=this.headerCompVersion;v.newAgStackInstance().then(s=>this.afterCompCreated(u,s))}afterCompCreated(v,u){v==this.headerCompVersion&&this.isAlive()?(this.destroyHeaderComp(),this.headerComp=u,this.headerCompGui=u.getGui(),this.eHeaderCompWrapper.appendChild(this.headerCompGui),this.ctrl.setDragSource(this.getGui())):this.destroyBean(u)}}x.HeaderCellComp=D},260:function(ne,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.HeaderCellCtrl=void 0;let M=p(3789),A=p(2036),F=p(9853),D=p(7274),f=p(2783),v=p(8703),u=p(5230),s=p(3507),r=p(2331),d=p(1772),g=p(1323),m=p(3534),b=p(1295);class w extends m.AbstractHeaderCellCtrl{constructor(){super(...arguments),this.refreshFunctions={},this.userHeaderClasses=new Set,this.ariaDescriptionProperties=new Map}setComp(T,z,G,U,X){this.comp=T;let{colResize:Q,context:oe,colHover:le}=this.beans,fe=(0,M.setupCompBean)(this,oe,X);this.setGui(z,fe),this.updateState(),this.setupWidth(fe),this.setupMovingCss(fe),this.setupMenuClass(fe),this.setupSortableClass(fe),this.setupWrapTextClass(),this.refreshSpanHeaderHeight(),this.setupAutoHeight({wrapperElement:U,checkMeasuringCallback:ke=>this.setRefreshFunction("measuring",ke),compBean:fe}),this.addColumnHoverListener(fe),this.setupFilterClass(fe),this.setupClassesFromColDef(),this.setupTooltip(),this.addActiveHeaderMouseListeners(fe),this.setupSelectAll(fe),this.setupUserComp(),this.refreshAria(),Q?this.resizeFeature=fe.createManagedBean(Q.createResizeFeature(this.rowCtrl.pinned,this.column,G,T,this)):(0,s._setDisplayed)(G,!1),le==null||le.createHoverFeature(fe,[this.column],z),fe.createManagedBean(new v.SetLeftFeature(this.column,z,this.beans)),fe.createManagedBean(new d.ManagedFocusFeature(z,{shouldStopEventPropagation:ke=>this.shouldStopEventPropagation(ke),onTabKeyDown:()=>null,handleKeyDown:this.handleKeyDown.bind(this),onFocusIn:this.onFocusIn.bind(this),onFocusOut:this.onFocusOut.bind(this)})),this.addResizeAndMoveKeyboardListeners(fe),fe.addManagedPropertyListeners(["suppressMovableColumns","suppressMenuHide","suppressAggFuncInHeader"],()=>this.refresh()),fe.addManagedListeners(this.column,{colDefChanged:()=>this.refresh()}),fe.addManagedListeners(this.column,{headerHighlightChanged:this.onHeaderHighlightChanged.bind(this)});let ye=()=>this.checkDisplayName();fe.addManagedEventListeners({columnValueChanged:ye,columnRowGroupChanged:ye,columnPivotChanged:ye,headerHeightChanged:this.onHeaderHeightChanged.bind(this)}),fe.addDestroyFunc(()=>{this.refreshFunctions={},this.selectAllFeature=null,this.dragSourceElement=void 0,this.userCompDetails=null,this.userHeaderClasses.clear(),this.ariaDescriptionProperties.clear(),this.clearComponent()})}resizeHeader(T,z){var G;(G=this.beans.colResize)==null||G.resizeHeader(this.column,T,z)}setupUserComp(){let T=this.lookupUserCompDetails();T&&this.setCompDetails(T)}setCompDetails(T){this.userCompDetails=T,this.comp.setUserCompDetails(T)}lookupUserCompDetails(){let T=this.createParams(),z=this.column.getColDef();return(0,A._getHeaderCompDetails)(this.beans.userCompFactory,z,T)}createParams(){let{menuSvc:T,sortSvc:z,colFilter:G,gos:U}=this.beans;return U.addGridCommonParams({column:this.column,displayName:this.displayName,enableSorting:this.column.isSortable(),enableMenu:this.menuEnabled,enableFilterButton:this.openFilterEnabled&&!!(T!=null&&T.isHeaderFilterButtonEnabled(this.column)),enableFilterIcon:!!G&&(!this.openFilterEnabled||(0,D._isLegacyMenuEnabled)(this.gos)),showColumnMenu:X=>{T==null||T.showColumnMenu({column:this.column,buttonElement:X,positionBy:"button"})},showColumnMenuAfterMouseClick:X=>{T==null||T.showColumnMenu({column:this.column,mouseEvent:X,positionBy:"mouse"})},showFilter:X=>{T==null||T.showFilterMenu({column:this.column,buttonElement:X,containerType:"columnFilter",positionBy:"button"})},progressSort:X=>{z==null||z.progressSort(this.column,!!X,"uiColumnSorted")},setSort:(X,Q)=>{z==null||z.setSortForColumn(this.column,X,!!Q,"uiColumnSorted")},eGridHeader:this.eGui,setTooltip:(X,Q)=>{U.assertModuleRegistered("Tooltip",3),this.setupTooltip(X,Q)}})}setupSelectAll(T){let{selectionSvc:z}=this.beans;z&&(this.selectAllFeature=T.createManagedBean(z.createSelectAllFeature(this.column)),this.selectAllFeature.setComp(this))}getSelectAllGui(){var T;return(T=this.selectAllFeature)==null?void 0:T.getCheckboxGui()}handleKeyDown(T){var z;super.handleKeyDown(T),T.key===F.KeyCode.SPACE&&((z=this.selectAllFeature)==null||z.onSpaceKeyDown(T)),T.key===F.KeyCode.ENTER&&this.onEnterKeyDown(T),T.key===F.KeyCode.DOWN&&T.altKey&&this.showMenuOnKeyPress(T,!1)}onEnterKeyDown(T){var z;T.ctrlKey||T.metaKey?this.showMenuOnKeyPress(T,!0):this.sortable&&((z=this.beans.sortSvc)==null||z.progressSort(this.column,T.shiftKey,"uiColumnSorted"))}showMenuOnKeyPress(T,z){let G=this.comp.getUserCompInstance();k(G)&&G.onMenuKeyboardShortcut(z)&&T.preventDefault()}onFocusIn(T){this.eGui.contains(T.relatedTarget)||(this.focusThis(),this.announceAriaDescription()),(0,r._isKeyboardMode)()&&this.setActiveHeader(!0)}onFocusOut(T){this.eGui.contains(T.relatedTarget)||this.setActiveHeader(!1)}setupTooltip(T,z){var G;this.tooltipFeature=(G=this.beans.tooltipSvc)==null?void 0:G.setupHeaderTooltip(this.tooltipFeature,this,T,z)}setupClassesFromColDef(){let T=()=>{let z=this.column.getColDef(),G=(0,b._getHeaderClassesFromColDef)(z,this.gos,this.column,null),U=this.userHeaderClasses;this.userHeaderClasses=new Set(G),G.forEach(X=>{U.has(X)?U.delete(X):this.comp.addOrRemoveCssClass(X,!0)}),U.forEach(X=>this.comp.addOrRemoveCssClass(X,!1))};this.setRefreshFunction("headerClasses",T),T()}setDragSource(T){var z,G;this.dragSourceElement=T,this.removeDragSource(),T&&this.draggable&&(this.dragSource=(G=(z=this.beans.colMoves)==null?void 0:z.setDragSourceForHeader(T,this.column,this.displayName))!=null?G:null)}updateState(){let{menuSvc:T}=this.beans;this.menuEnabled=!!(T!=null&&T.isColumnMenuInHeaderEnabled(this.column)),this.openFilterEnabled=!!(T!=null&&T.isFilterMenuInHeaderEnabled(this.column)),this.sortable=this.column.isSortable(),this.displayName=this.calculateDisplayName(),this.draggable=this.workOutDraggable()}setRefreshFunction(T,z){this.refreshFunctions[T]=z}refresh(){this.updateState(),this.refreshHeaderComp(),this.refreshAria(),Object.values(this.refreshFunctions).forEach(T=>T())}refreshHeaderComp(){let T=this.lookupUserCompDetails();T&&(this.comp.getUserCompInstance()!=null&&this.userCompDetails.componentClass==T.componentClass&&this.attemptHeaderCompRefresh(T.params)?this.setDragSource(this.dragSourceElement):this.setCompDetails(T))}attemptHeaderCompRefresh(T){let z=this.comp.getUserCompInstance();return!z||!z.refresh?!1:z.refresh(T)}calculateDisplayName(){return this.beans.colNames.getDisplayNameForColumn(this.column,"header",!0)}checkDisplayName(){this.displayName!==this.calculateDisplayName()&&this.refresh()}workOutDraggable(){let T=this.column.getColDef();return!this.gos.get("suppressMovableColumns")&&!T.suppressMovable&&!T.lockPosition||!!T.enableRowGroup||!!T.enablePivot}setupWidth(T){let z=()=>{let G=this.column.getActualWidth();this.comp.setWidth(`${G}px`)};T.addManagedListeners(this.column,{widthChanged:z}),z()}setupMovingCss(T){let z=()=>{this.comp.addOrRemoveCssClass("ag-header-cell-moving",this.column.isMoving())};T.addManagedListeners(this.column,{movingChanged:z}),z()}setupMenuClass(T){let z=()=>{this.comp.addOrRemoveCssClass("ag-column-menu-visible",this.column.isMenuVisible())};T.addManagedListeners(this.column,{menuVisibleChanged:z}),z()}setupSortableClass(T){let z=()=>{this.comp.addOrRemoveCssClass("ag-header-cell-sortable",!!this.sortable)};z(),this.setRefreshFunction("updateSortable",z),T.addManagedEventListeners({sortChanged:this.refreshAriaSort.bind(this)})}setupFilterClass(T){let z=()=>{let G=this.column.isFilterActive();this.comp.addOrRemoveCssClass("ag-header-cell-filtered",G),this.refreshAria()};T.addManagedListeners(this.column,{filterActiveChanged:z}),z()}setupWrapTextClass(){let T=()=>{let z=!!this.column.getColDef().wrapHeaderText;this.comp.addOrRemoveCssClass("ag-header-cell-wrap-text",z)};T(),this.setRefreshFunction("wrapText",T)}onHeaderHighlightChanged(){let T=this.column.getHighlighted(),z=T===f.ColumnHighlightPosition.Before,G=T===f.ColumnHighlightPosition.After;this.comp.addOrRemoveCssClass("ag-header-highlight-before",z),this.comp.addOrRemoveCssClass("ag-header-highlight-after",G)}onDisplayedColumnsChanged(){super.onDisplayedColumnsChanged(),this.isAlive()&&this.onHeaderHeightChanged()}onHeaderHeightChanged(){this.refreshSpanHeaderHeight()}refreshSpanHeaderHeight(){let{eGui:T,column:z,comp:G,beans:U}=this,X=(0,g.getGroupRowsHeight)(this.beans),Q=X.reduce((ke,Ie)=>ke+Ie,0)===0;if(G.addOrRemoveCssClass("ag-header-parent-hidden",Q),!z.isSpanHeaderHeight())return T.style.removeProperty("top"),T.style.removeProperty("height"),G.addOrRemoveCssClass("ag-header-span-height",!1),void G.addOrRemoveCssClass("ag-header-span-total",!1);let{numberOfParents:oe,isSpanningTotal:le}=this.column.getColumnGroupPaddingInfo();G.addOrRemoveCssClass("ag-header-span-height",oe>0);let fe=(0,g.getColumnHeaderRowHeight)(U);if(oe===0)return G.addOrRemoveCssClass("ag-header-span-total",!1),T.style.setProperty("top","0px"),void T.style.setProperty("height",`${fe}px`);G.addOrRemoveCssClass("ag-header-span-total",le);let ye=0;for(let ke=0;ke<oe;ke++)ye+=X[X.length-1-ke];T.style.setProperty("top",-ye+"px"),T.style.setProperty("height",`${fe+ye}px`)}refreshAriaSort(){var T;if(this.sortable){let z=this.getLocaleTextFunc(),G=((T=this.beans.sortSvc)==null?void 0:T.getDisplaySortForColumn(this.column))||null;this.comp.setAriaSort((0,u._getAriaSortState)(G)),this.setAriaDescriptionProperty("sort",z("ariaSortableColumn","Press ENTER to sort"))}else this.comp.setAriaSort(),this.setAriaDescriptionProperty("sort",null)}refreshAriaMenu(){if(this.menuEnabled){let T=this.getLocaleTextFunc();this.setAriaDescriptionProperty("menu",T("ariaMenuColumn","Press ALT DOWN to open column menu"))}else this.setAriaDescriptionProperty("menu",null)}refreshAriaFilterButton(){if(this.openFilterEnabled&&!(0,D._isLegacyMenuEnabled)(this.gos)){let T=this.getLocaleTextFunc();this.setAriaDescriptionProperty("filterButton",T("ariaFilterColumn","Press CTRL ENTER to open filter"))}else this.setAriaDescriptionProperty("filterButton",null)}refreshAriaFiltered(){let T=this.getLocaleTextFunc();this.column.isFilterActive()?this.setAriaDescriptionProperty("filter",T("ariaColumnFiltered","Column Filtered")):this.setAriaDescriptionProperty("filter",null)}setAriaDescriptionProperty(T,z){z!=null?this.ariaDescriptionProperties.set(T,z):this.ariaDescriptionProperties.delete(T)}announceAriaDescription(){var z;if(!this.eGui.contains((0,D._getActiveDomElement)(this.beans)))return;let T=Array.from(this.ariaDescriptionProperties.keys()).sort((G,U)=>G==="filter"?-1:U.charCodeAt(0)-G.charCodeAt(0)).map(G=>this.ariaDescriptionProperties.get(G)).join(". ");(z=this.beans.ariaAnnounce)==null||z.announceValue(T,"columnHeader")}refreshAria(){this.refreshAriaSort(),this.refreshAriaMenu(),this.refreshAriaFilterButton(),this.refreshAriaFiltered()}addColumnHoverListener(T){var z;(z=this.beans.colHover)==null||z.addHeaderColumnHoverListener(T,this.comp,this.column)}addActiveHeaderMouseListeners(T){let z=G=>this.handleMouseOverChange(G.type==="mouseenter");T.addManagedListeners(this.eGui,{mouseenter:z,mouseleave:z,click:()=>this.dispatchColumnMouseEvent("columnHeaderClicked",this.column),contextmenu:G=>this.handleContextMenuMouseEvent(G,void 0,this.column)})}handleMouseOverChange(T){this.setActiveHeader(T),this.eventSvc.dispatchEvent({type:T?"columnHeaderMouseOver":"columnHeaderMouseLeave",column:this.column})}setActiveHeader(T){this.comp.addOrRemoveCssClass("ag-header-active",T)}getAnchorElementForMenu(T){let z=this.comp.getUserCompInstance();return k(z)?z.getAnchorElementForMenu(T):this.eGui}destroy(){this.tooltipFeature=this.destroyBean(this.tooltipFeature),super.destroy()}}function k(R){return typeof R.getAnchorElementForMenu=="function"&&typeof R.onMenuKeyboardShortcut=="function"}x.HeaderCellCtrl=w},9270:function(ne,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.HeaderComp=void 0;let M=p(2036),A=p(7274),F=p(3507),D=p(9970),f=p(7766),v=p(8020);class u extends v.Component{constructor(){super(...arguments),this.eFilter=v.RefPlaceholder,this.eFilterButton=v.RefPlaceholder,this.eSortIndicator=v.RefPlaceholder,this.eMenu=v.RefPlaceholder,this.eLabel=v.RefPlaceholder,this.eText=v.RefPlaceholder,this.eSortOrder=v.RefPlaceholder,this.eSortAsc=v.RefPlaceholder,this.eSortDesc=v.RefPlaceholder,this.eSortMixed=v.RefPlaceholder,this.eSortNone=v.RefPlaceholder,this.isLoadingInnerComponent=!1}refresh(r){let d=this.params;return this.params=r,this.workOutTemplate()==this.currentTemplate&&this.workOutShowMenu()==this.currentShowMenu&&r.enableSorting==this.currentSort&&(this.currentSuppressMenuHide==null||this.shouldSuppressMenuHide()==this.currentSuppressMenuHide)&&d.enableFilterButton==r.enableFilterButton&&d.enableFilterIcon==r.enableFilterIcon&&(this.setDisplayName(r),!0)}workOutTemplate(){var m;let{params:r,beans:d}=this,g=(m=r.template)!=null?m:`<div class="ag-cell-label-container" role="presentation">
        <span data-ref="eMenu" class="ag-header-icon ag-header-cell-menu-button" aria-hidden="true"></span>
        <span data-ref="eFilterButton" class="ag-header-icon ag-header-cell-filter-button" aria-hidden="true"></span>
        <div data-ref="eLabel" class="ag-header-cell-label" role="presentation">
            <span data-ref="eText" class="ag-header-cell-text"></span>
            <span data-ref="eFilter" class="ag-header-icon ag-header-label-icon ag-filter-icon" aria-hidden="true"></span>
            ${d.sortSvc?'<ag-sort-indicator data-ref="eSortIndicator"></ag-sort-indicator>':""}
        </div>
    </div>`;return g!=null&&g.trim?g.trim():g}init(r){this.params=r;let{sortSvc:d,touchSvc:g,userCompFactory:m}=this.beans;this.currentTemplate=this.workOutTemplate(),this.setTemplate(this.currentTemplate,d?[d.getSortIndicatorSelector()]:void 0),g==null||g.setupForHeader(this),this.setMenu(),this.setupSort(),this.setupFilterIcon(),this.setupFilterButton(),this.workOutInnerHeaderComponent(m,r),this.setDisplayName(r)}workOutInnerHeaderComponent(r,d){let g=(0,M._getInnerHeaderCompDetails)(r,d,d);g&&(this.isLoadingInnerComponent=!0,g.newAgStackInstance().then(m=>{this.isLoadingInnerComponent=!1,m&&(this.isAlive()?(this.innerHeaderComponent=m,this.eText.appendChild(m.getGui())):this.destroyBean(m))}))}setDisplayName(r){let{displayName:d}=r,g=this.currentDisplayName;if(this.currentDisplayName=d,g===d||this.innerHeaderComponent||this.isLoadingInnerComponent)return;let m=(0,f._escapeString)(d,!0);this.eText.innerText=m}addInIcon(r,d,g){if(d==null)return;let m=(0,D._createIconNoSpan)(r,this.beans,g);m&&d.appendChild(m)}workOutShowMenu(){var r;return this.params.enableMenu&&!!((r=this.beans.menuSvc)!=null&&r.isHeaderMenuButtonEnabled())}shouldSuppressMenuHide(){var r;return!!((r=this.beans.menuSvc)!=null&&r.isHeaderMenuButtonAlwaysShowEnabled())}setMenu(){if(!this.eMenu)return;if(this.currentShowMenu=this.workOutShowMenu(),!this.currentShowMenu)return(0,F._removeFromParent)(this.eMenu),void(this.eMenu=void 0);let{gos:r,eMenu:d,params:g,currentSuppressMenuHide:m}=this,b=(0,A._isLegacyMenuEnabled)(r);this.addInIcon(b?"menu":"menuAlt",d,g.column),d.classList.toggle("ag-header-menu-icon",!b),this.currentSuppressMenuHide=this.shouldSuppressMenuHide(),this.addManagedElementListeners(d,{click:()=>g.showColumnMenu(d)}),d.classList.toggle("ag-header-menu-always-show",m)}onMenuKeyboardShortcut(r){var T,z,G;let{params:d,gos:g,beans:m,eMenu:b,eFilterButton:w}=this,k=d.column,R=(0,A._isLegacyMenuEnabled)(g);if(r&&!R){if((T=m.menuSvc)!=null&&T.isFilterMenuInHeaderEnabled(k))return d.showFilter((z=w!=null?w:b)!=null?z:this.getGui()),!0}else if(d.enableMenu)return d.showColumnMenu((G=b!=null?b:w)!=null?G:this.getGui()),!0;return!1}setupSort(){let{sortSvc:r}=this.beans;if(!r)return;let{enableSorting:d,column:g}=this.params;if(this.currentSort=d,!this.eSortIndicator){this.eSortIndicator=this.createBean(r.createSortIndicator(!0));let{eSortIndicator:m,eSortOrder:b,eSortAsc:w,eSortDesc:k,eSortMixed:R,eSortNone:T}=this;m.attachCustomElements(b,w,k,R,T)}this.eSortIndicator.setupSort(g),this.currentSort&&r.setupHeader(this,g,this.eLabel)}setupFilterIcon(){let{eFilter:r,params:d}=this;r&&this.configureFilter(d.enableFilterIcon,r,this.onFilterChangedIcon.bind(this),"filterActive")}setupFilterButton(){let{eFilterButton:r,params:d}=this;r&&(this.configureFilter(d.enableFilterButton,r,this.onFilterChangedButton.bind(this),"filter")?this.addManagedElementListeners(r,{click:()=>d.showFilter(r)}):this.eFilterButton=void 0)}configureFilter(r,d,g,m){if(!r)return(0,F._removeFromParent)(d),!1;let b=this.params.column;return this.addInIcon(m,d,b),this.addManagedListeners(b,{filterChanged:g}),g(),!0}onFilterChangedIcon(){let r=this.params.column.isFilterActive();(0,F._setDisplayed)(this.eFilter,r,{skipAriaHidden:!0})}onFilterChangedButton(){let r=this.params.column.isFilterActive();this.eFilterButton.classList.toggle("ag-filter-active",r)}getAnchorElementForMenu(r){var m,b;let{eFilterButton:d,eMenu:g}=this;return r?(m=d!=null?d:g)!=null?m:this.getGui():(b=g!=null?g:d)!=null?b:this.getGui()}destroy(){super.destroy(),this.innerHeaderComponent&&(this.destroyBean(this.innerHeaderComponent),this.innerHeaderComponent=void 0)}}x.HeaderComp=u},4312:function(ne,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.GroupWidthFeature=void 0;let M=p(8731);class A extends M.BeanStub{constructor(D,f){super(),this.removeChildListenersFuncs=[],this.columnGroup=f,this.comp=D}postConstruct(){this.addListenersToChildrenColumns(),this.addManagedListeners(this.columnGroup,{displayedChildrenChanged:this.onDisplayedChildrenChanged.bind(this)}),this.onWidthChanged(),this.addDestroyFunc(this.removeListenersOnChildrenColumns.bind(this))}addListenersToChildrenColumns(){this.removeListenersOnChildrenColumns();let D=this.onWidthChanged.bind(this);this.columnGroup.getLeafColumns().forEach(f=>{f.addEventListener("widthChanged",D),f.addEventListener("visibleChanged",D),this.removeChildListenersFuncs.push(()=>{f.removeEventListener("widthChanged",D),f.removeEventListener("visibleChanged",D)})})}removeListenersOnChildrenColumns(){this.removeChildListenersFuncs.forEach(D=>D()),this.removeChildListenersFuncs=[]}onDisplayedChildrenChanged(){this.addListenersToChildrenColumns(),this.onWidthChanged()}onWidthChanged(){let D=this.columnGroup.getActualWidth();this.comp.setWidth(`${D}px`),this.comp.addOrRemoveCssClass("ag-hidden",D===0)}}x.GroupWidthFeature=A},7746:function(ne,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.HeaderGroupCellComp=void 0;let M=p(3507),A=p(8020),F=p(9860);class D extends F.AbstractHeaderCellComp{constructor(v){super(`<div class="ag-header-group-cell" role="columnheader">
            <div data-ref="eHeaderCompWrapper" class="ag-header-cell-comp-wrapper" role="presentation"></div>
            <div data-ref="eResize" class="ag-header-cell-resize" role="presentation"></div>
        </div>`,v),this.eResize=A.RefPlaceholder,this.eHeaderCompWrapper=A.RefPlaceholder}postConstruct(){let v=this.getGui();v.setAttribute("col-id",this.ctrl.column.getUniqueId());let u={addOrRemoveCssClass:(s,r)=>this.addOrRemoveCssClass(s,r),setHeaderWrapperHidden:s=>{s?this.eHeaderCompWrapper.style.setProperty("display","none"):this.eHeaderCompWrapper.style.removeProperty("display")},setHeaderWrapperMaxHeight:s=>{s!=null?this.eHeaderCompWrapper.style.setProperty("max-height",`${s}px`):this.eHeaderCompWrapper.style.removeProperty("max-height"),this.eHeaderCompWrapper.classList.toggle("ag-header-cell-comp-wrapper-limited-height",s!=null)},setResizableDisplayed:s=>(0,M._setDisplayed)(this.eResize,s),setWidth:s=>v.style.width=s,setAriaExpanded:s=>{return r="aria-expanded",(d=s)!=null?v.setAttribute(r,d):v.removeAttribute(r);var r,d},setUserCompDetails:s=>this.setUserCompDetails(s),getUserCompInstance:()=>this.headerGroupComp};this.ctrl.setComp(u,v,this.eResize,this.eHeaderCompWrapper,void 0)}setUserCompDetails(v){v.newAgStackInstance().then(u=>this.afterHeaderCompCreated(u))}afterHeaderCompCreated(v){let u=()=>this.destroyBean(v);if(!this.isAlive())return void u();let s=this.getGui(),r=v.getGui();this.eHeaderCompWrapper.appendChild(r),this.addDestroyFunc(u),this.headerGroupComp=v,this.ctrl.setDragSource(s)}addOrRemoveHeaderWrapperStyle(v,u){let{eHeaderCompWrapper:s}=this;u?s.style.setProperty(v,u):s.style.removeProperty(v)}}x.HeaderGroupCellComp=D},84:function(ne,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.HeaderGroupCellCtrl=void 0;let M=p(3789),A=p(2036),F=p(9853),D=p(2783),f=p(8703),v=p(1502),u=p(1772),s=p(3534),r=p(1295),d=p(4312);class g extends s.AbstractHeaderCellCtrl{constructor(){super(...arguments),this.onSuppressColMoveChange=()=>{!this.isAlive()||this.isSuppressMoving()?this.removeDragSource():this.dragSource||this.setDragSource(this.eGui)}}setComp(b,w,k,R,T){let{column:z,beans:G}=this,{context:U,colNames:X,colHover:Q,colResize:oe}=G;this.comp=b,T=(0,M.setupCompBean)(this,U,T),this.setGui(w,T),this.displayName=X.getDisplayNameForColumnGroup(z,"header"),this.addClasses(),this.setupMovingCss(T),this.setupExpandable(T),this.setupTooltip(),this.setupAutoHeight({wrapperElement:R,compBean:T}),this.setupUserComp(),this.addHeaderMouseListeners(T),this.addManagedPropertyListener("groupHeaderHeight",this.refreshMaxHeaderHeight.bind(this)),this.refreshMaxHeaderHeight();let le=this.rowCtrl.pinned,fe=z.getProvidedColumnGroup().getLeafColumns();Q==null||Q.createHoverFeature(T,fe,w),T.createManagedBean(new f.SetLeftFeature(z,w,G)),T.createManagedBean(new d.GroupWidthFeature(b,z)),oe?this.resizeFeature=T.createManagedBean(oe.createGroupResizeFeature(b,k,le,z)):b.setResizableDisplayed(!1),T.createManagedBean(new u.ManagedFocusFeature(w,{shouldStopEventPropagation:this.shouldStopEventPropagation.bind(this),onTabKeyDown:()=>{},handleKeyDown:this.handleKeyDown.bind(this),onFocusIn:this.onFocusIn.bind(this)})),this.addHighlightListeners(T,fe),T.addManagedPropertyListener("suppressMovableColumns",this.onSuppressColMoveChange),this.addResizeAndMoveKeyboardListeners(T),T.addDestroyFunc(()=>this.clearComponent())}refreshMaxHeaderHeight(){let{gos:b,comp:w}=this,k=b.get("groupHeaderHeight");k!=null?k===0?w.setHeaderWrapperHidden(!0):w.setHeaderWrapperMaxHeight(k):(w.setHeaderWrapperHidden(!1),w.setHeaderWrapperMaxHeight(null))}addHighlightListeners(b,w){if(this.beans.gos.get("suppressMoveWhenColumnDragging"))for(let k of w)b.addManagedListeners(k,{headerHighlightChanged:this.onLeafColumnHighlightChanged.bind(this,k)})}onLeafColumnHighlightChanged(b){let w=this.column.getDisplayedLeafColumns(),k=w[0]===b,R=(0,v._last)(w)===b;if(!k&&!R)return;let T=b.getHighlighted(),z=!1,G=!1;if(this.rowCtrl.findHeaderCellCtrl(U=>U.column.isMoving())){let U=this.beans.gos.get("enableRtl"),X=T===D.ColumnHighlightPosition.After,Q=T===D.ColumnHighlightPosition.Before;k&&(U?G=X:z=Q),R&&(U?z=Q:G=X)}this.comp.addOrRemoveCssClass("ag-header-highlight-before",z),this.comp.addOrRemoveCssClass("ag-header-highlight-after",G)}resizeHeader(b,w){let{resizeFeature:k}=this;if(!k)return;let R=k.getInitialValues(w);k.resizeColumns(R,R.resizeStartWidth+b,"uiColumnResized",!0)}resizeLeafColumnsToFit(b){var w;(w=this.resizeFeature)==null||w.resizeLeafColumnsToFit(b)}setupUserComp(){let{colGroupSvc:b,userCompFactory:w,gos:k}=this.beans,R=k.addGridCommonParams({displayName:this.displayName,columnGroup:this.column,setExpanded:z=>{b.setColumnGroupOpened(this.column.getProvidedColumnGroup(),z,"gridInitializing")},setTooltip:(z,G)=>{k.assertModuleRegistered("Tooltip",3),this.setupTooltip(z,G)}}),T=(0,A._getHeaderGroupCompDetails)(w,R);T&&this.comp.setUserCompDetails(T)}addHeaderMouseListeners(b){let w=k=>this.handleMouseOverChange(k.type==="mouseenter");b.addManagedListeners(this.eGui,{mouseenter:w,mouseleave:w,click:()=>this.dispatchColumnMouseEvent("columnHeaderClicked",this.column.getProvidedColumnGroup()),contextmenu:k=>this.handleContextMenuMouseEvent(k,void 0,this.column.getProvidedColumnGroup())})}handleMouseOverChange(b){this.eventSvc.dispatchEvent({type:b?"columnHeaderMouseOver":"columnHeaderMouseLeave",column:this.column.getProvidedColumnGroup()})}setupTooltip(b,w){var k;this.tooltipFeature=(k=this.beans.tooltipSvc)==null?void 0:k.setupHeaderGroupTooltip(this.tooltipFeature,this,b,w)}setupExpandable(b){let w=this.column.getProvidedColumnGroup();this.refreshExpanded();let k=this.refreshExpanded.bind(this);b.addManagedListeners(w,{expandedChanged:k,expandableChanged:k})}refreshExpanded(){let{column:b}=this;this.expandable=b.isExpandable();let w=b.isExpanded();this.expandable?this.comp.setAriaExpanded(w?"true":"false"):this.comp.setAriaExpanded(void 0)}addClasses(){let{column:b}=this,w=b.getColGroupDef(),k=(0,r._getHeaderClassesFromColDef)(w,this.gos,null,b);b.isPadding()?(k.push("ag-header-group-cell-no-group"),b.getLeafColumns().every(R=>R.isSpanHeaderHeight())&&k.push("ag-header-span-height")):(k.push("ag-header-group-cell-with-group"),w!=null&&w.wrapHeaderText&&k.push("ag-header-cell-wrap-text")),k.forEach(R=>this.comp.addOrRemoveCssClass(R,!0))}setupMovingCss(b){let{column:w}=this,k=w.getProvidedColumnGroup().getLeafColumns(),R=()=>this.comp.addOrRemoveCssClass("ag-header-cell-moving",w.isMoving());k.forEach(T=>{b.addManagedListeners(T,{movingChanged:R})}),R()}onFocusIn(b){this.eGui.contains(b.relatedTarget)||this.focusThis()}handleKeyDown(b){super.handleKeyDown(b);let w=this.getWrapperHasFocus();if(this.expandable&&w&&b.key===F.KeyCode.ENTER){let k=this.column,R=!k.isExpanded();this.beans.colGroupSvc.setColumnGroupOpened(k.getProvidedColumnGroup(),R,"uiColumnExpanded")}}setDragSource(b){var w,k;this.isAlive()&&!this.isSuppressMoving()&&(this.removeDragSource(),b&&(this.dragSource=(k=(w=this.beans.colMoves)==null?void 0:w.setDragSourceForHeader(b,this.column,this.displayName))!=null?k:null))}isSuppressMoving(){return this.gos.get("suppressMovableColumns")||this.column.getLeafColumns().some(b=>b.getColDef().suppressMovable||b.getColDef().lockPosition)}destroy(){this.tooltipFeature=this.destroyBean(this.tooltipFeature),super.destroy()}}x.HeaderGroupCellCtrl=g},4998:function(ne,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.HeaderGroupComp=void 0;let M=p(2036),A=p(3507),F=p(2979),D=p(4422),f=p(9970),v=p(7766),u=p(7764),s=p(8020);class r extends s.Component{constructor(){super(`<div class="ag-header-group-cell-label" role="presentation">
            <span data-ref="agLabel" class="ag-header-group-text" role="presentation"></span>
            <span data-ref="agOpened" class="ag-header-icon ag-header-expand-icon ag-header-expand-icon-expanded"></span>
            <span data-ref="agClosed" class="ag-header-icon ag-header-expand-icon ag-header-expand-icon-collapsed"></span>
        </div>`),this.agOpened=s.RefPlaceholder,this.agClosed=s.RefPlaceholder,this.agLabel=s.RefPlaceholder,this.isLoadingInnerComponent=!1}init(g){let{userCompFactory:m}=this.beans;this.params=g,this.checkWarnings(),this.workOutInnerHeaderGroupComponent(m,g),this.setupLabel(g),this.addGroupExpandIcon(g),this.setupExpandIcons()}checkWarnings(){this.params.template&&(0,u._warn)(89)}workOutInnerHeaderGroupComponent(g,m){let b=(0,M._getInnerHeaderGroupCompDetails)(g,m,m);b&&(this.isLoadingInnerComponent=!0,b.newAgStackInstance().then(w=>{this.isLoadingInnerComponent=!1,w&&(this.isAlive()?(this.innerHeaderGroupComponent=w,this.agLabel.appendChild(w.getGui())):this.destroyBean(w))}))}setupExpandIcons(){let{agOpened:g,agClosed:m,params:{columnGroup:b},beans:w}=this;this.addInIcon("columnGroupOpened",g),this.addInIcon("columnGroupClosed",m);let k=G=>{if((0,F._isStopPropagationForAgGrid)(G))return;let U=!b.isExpanded();w.colGroupSvc.setColumnGroupOpened(b.getProvidedColumnGroup(),U,"uiColumnExpanded")};this.addTouchAndClickListeners(w,m,k),this.addTouchAndClickListeners(w,g,k);let R=G=>{(0,F._stopPropagationForAgGrid)(G)};this.addManagedElementListeners(m,{dblclick:R}),this.addManagedElementListeners(g,{dblclick:R}),this.addManagedElementListeners(this.getGui(),{dblclick:k}),this.updateIconVisibility();let T=b.getProvidedColumnGroup(),z=this.updateIconVisibility.bind(this);this.addManagedListeners(T,{expandedChanged:z,expandableChanged:z})}addTouchAndClickListeners(g,m,b){var w;(w=g.touchSvc)==null||w.setupForHeaderGroup(this,m,b),this.addManagedElementListeners(m,{click:b})}updateIconVisibility(){let{agOpened:g,agClosed:m,params:{columnGroup:b}}=this;if(b.isExpandable()){let w=b.isExpanded();(0,A._setDisplayed)(g,w),(0,A._setDisplayed)(m,!w)}else(0,A._setDisplayed)(g,!1),(0,A._setDisplayed)(m,!1)}addInIcon(g,m){let b=(0,f._createIconNoSpan)(g,this.beans,null);b&&m.appendChild(b)}addGroupExpandIcon(g){if(!g.columnGroup.isExpandable()){let{agOpened:m,agClosed:b}=this;return(0,A._setDisplayed)(m,!1),void(0,A._setDisplayed)(b,!1)}}setupLabel(g){var k;let{displayName:m,columnGroup:b}=g,w=this.innerHeaderGroupComponent||this.isLoadingInnerComponent;if((0,D._exists)(m)&&!w){let R=(0,v._escapeString)(m,!0);this.agLabel.textContent=R}this.addOrRemoveCssClass("ag-sticky-label",!((k=b.getColGroupDef())!=null&&k.suppressStickyLabel))}destroy(){super.destroy(),this.innerHeaderGroupComponent&&(this.destroyBean(this.innerHeaderGroupComponent),this.innerHeaderGroupComponent=void 0)}}x.HeaderGroupComp=r},1295:function(ne,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.refreshFirstAndLastStyles=x._getToolPanelClassesFromColDef=x._getHeaderClassesFromColDef=void 0;let M=p(4422);function A(F,D,f,v,u){if((0,M._missing)(F))return[];let s;if(typeof F=="function"){let r=function(d,g,m,b){return g.addGridCommonParams({colDef:d,column:m,columnGroup:b})}(D,f,v,u);s=F(r)}else s=F;return typeof s=="string"?[s]:Array.isArray(s)?[...s]:[]}x._getHeaderClassesFromColDef=function(F,D,f,v){return(0,M._missing)(F)?[]:A(F.headerClass,F,D,f,v)},x._getToolPanelClassesFromColDef=function(F,D,f,v){return(0,M._missing)(F)?[]:A(F.toolPanelClass,F,D,f,v)},x.refreshFirstAndLastStyles=function(F,D,f){F.addOrRemoveCssClass("ag-column-first",f.isColAtEdge(D,"first")),F.addOrRemoveCssClass("ag-column-last",f.isColAtEdge(D,"last"))}},3290:function(ne,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.HeaderFilterCellComp=void 0;let M=p(3507),A=p(8020),F=p(9860);class D extends F.AbstractHeaderCellComp{constructor(v){super(`<div class="ag-header-cell ag-floating-filter" role="gridcell">
            <div data-ref="eFloatingFilterBody" role="presentation"></div>
            <div class="ag-floating-filter-button ag-hidden" data-ref="eButtonWrapper" role="presentation">
                <button type="button" class="ag-button ag-floating-filter-button-button" data-ref="eButtonShowMainFilter" tabindex="-1"></button>
            </div>
        </div>`,v),this.eFloatingFilterBody=A.RefPlaceholder,this.eButtonWrapper=A.RefPlaceholder,this.eButtonShowMainFilter=A.RefPlaceholder}postConstruct(){let v=this.getGui(),u={addOrRemoveCssClass:(s,r)=>this.addOrRemoveCssClass(s,r),addOrRemoveBodyCssClass:(s,r)=>this.eFloatingFilterBody.classList.toggle(s,r),setButtonWrapperDisplayed:s=>(0,M._setDisplayed)(this.eButtonWrapper,s),setCompDetails:s=>this.setCompDetails(s),getFloatingFilterComp:()=>this.compPromise,setWidth:s=>v.style.width=s,setMenuIcon:s=>this.eButtonShowMainFilter.appendChild(s)};this.ctrl.setComp(u,v,this.eButtonShowMainFilter,this.eFloatingFilterBody,void 0)}setCompDetails(v){if(!v)return this.destroyFloatingFilterComp(),void(this.compPromise=null);this.compPromise=v.newAgStackInstance(),this.compPromise.then(u=>this.afterCompCreated(u))}destroy(){this.destroyFloatingFilterComp(),super.destroy()}destroyFloatingFilterComp(){this.floatingFilterComp&&(this.eFloatingFilterBody.removeChild(this.floatingFilterComp.getGui()),this.floatingFilterComp=this.destroyBean(this.floatingFilterComp))}afterCompCreated(v){v&&(this.isAlive()?(this.destroyFloatingFilterComp(),this.floatingFilterComp=v,this.eFloatingFilterBody.appendChild(v.getGui()),v.afterGuiAttached&&v.afterGuiAttached()):this.destroyBean(v))}}x.HeaderFilterCellComp=D},3868:function(ne,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.HeaderFilterCellCtrl=void 0;let M=p(3789),A=p(9853),F=p(7274),D=p(8703),f=p(5230),v=p(3507),u=p(2331),s=p(9970),r=p(1772),d=p(3534);class g extends d.AbstractHeaderCellCtrl{constructor(){super(...arguments),this.iconCreated=!1}setComp(b,w,k,R,T){this.comp=b;let z=(0,M.setupCompBean)(this,this.beans.context,T);this.eButtonShowMainFilter=k,this.eFloatingFilterBody=R,this.setGui(w,z),this.setupActive(),this.setupWidth(z),this.setupLeft(z),this.setupHover(z),this.setupFocus(z),this.setupAria(),this.setupFilterButton(),this.setupUserComp(),this.setupSyncWithFilter(z),this.setupUi(),z.addManagedElementListeners(this.eButtonShowMainFilter,{click:this.showParentFilter.bind(this)}),this.setupFilterChangedListener(z),z.addManagedListeners(this.column,{colDefChanged:()=>this.onColDefChanged(z)}),z.addDestroyFunc(()=>{this.eButtonShowMainFilter=null,this.eFloatingFilterBody=null,this.userCompDetails=null,this.clearComponent()})}resizeHeader(){}moveHeader(){}setupActive(){let b=this.column.getColDef(),w=!!b.filter,k=!!b.floatingFilter;this.active=w&&k}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;let b=(0,s._createIconNoSpan)("filter",this.beans,this.column);b&&(this.iconCreated=!0,this.eButtonShowMainFilter.appendChild(b))}setupFocus(b){b.createManagedBean(new r.ManagedFocusFeature(this.eGui,{shouldStopEventPropagation:this.shouldStopEventPropagation.bind(this),onTabKeyDown:this.onTabKeyDown.bind(this),handleKeyDown:this.handleKeyDown.bind(this),onFocusIn:this.onFocusIn.bind(this)}))}setupAria(){let b=this.getLocaleTextFunc();(0,f._setAriaLabel)(this.eButtonShowMainFilter,b("ariaFilterMenuOpen","Open Filter Menu"))}onTabKeyDown(b){var T;let{beans:w}=this;if((0,F._getActiveDomElement)(w)===this.eGui)return;let k=(0,u._findNextFocusableElement)(w,this.eGui,null,b.shiftKey);if(k)return(T=w.headerNavigation)==null||T.scrollToColumn(this.column),b.preventDefault(),void k.focus();let R=this.findNextColumnWithFloatingFilter(b.shiftKey);R&&w.focusSvc.focusHeaderPosition({headerPosition:{headerRowIndex:this.rowCtrl.rowIndex,column:R},event:b})&&b.preventDefault()}findNextColumnWithFloatingFilter(b){let w=this.beans.visibleCols,k=this.column;do if(k=b?w.getColBefore(k):w.getColAfter(k),!k)break;while(!k.getColDef().filter||!k.getColDef().floatingFilter);return k}handleKeyDown(b){super.handleKeyDown(b);let w=this.getWrapperHasFocus();switch(b.key){case A.KeyCode.UP:case A.KeyCode.DOWN:w||b.preventDefault();case A.KeyCode.LEFT:case A.KeyCode.RIGHT:if(w)return;b.stopPropagation();case A.KeyCode.ENTER:w&&(0,u._focusInto)(this.eGui)&&b.preventDefault();break;case A.KeyCode.ESCAPE:w||this.eGui.focus()}}onFocusIn(b){if(this.eGui.contains(b.relatedTarget))return;let w=!!b.relatedTarget&&!b.relatedTarget.classList.contains("ag-floating-filter"),k=!!b.relatedTarget&&(0,v._isElementChildOfClass)(b.relatedTarget,"ag-floating-filter");if(w&&k&&b.target===this.eGui){let R=this.lastFocusEvent,T=!(!R||R.key!==A.KeyCode.TAB);if(R&&T){let z=R.shiftKey;(0,u._focusInto)(this.eGui,z)}}this.focusThis()}setupHover(b){var w;(w=this.beans.colHover)==null||w.addHeaderFilterColumnHoverListener(b,this.comp,this.column,this.eGui)}setupLeft(b){let w=new D.SetLeftFeature(this.column,this.eGui,this.beans);b.createManagedBean(w)}setupFilterButton(){var b;this.suppressFilterButton=!((b=this.beans.menuSvc)!=null&&b.isFloatingFilterButtonEnabled(this.column)),this.highlightFilterButtonWhenActive=!(0,F._isLegacyMenuEnabled)(this.gos)}setupUserComp(){var w;if(!this.active)return;let b=(w=this.beans.filterManager)==null?void 0:w.getFloatingFilterCompDetails(this.column,()=>this.showParentFilter());b&&this.setCompDetails(b)}setCompDetails(b){this.userCompDetails=b,this.comp.setCompDetails(b)}showParentFilter(){var w;let b=this.suppressFilterButton?this.eFloatingFilterBody:this.eButtonShowMainFilter;(w=this.beans.menuSvc)==null||w.showFilterMenu({column:this.column,buttonElement:b,containerType:"floatingFilter",positionBy:"button"})}setupSyncWithFilter(b){if(!this.active)return;let{filterManager:w}=this.beans,k=R=>{if((R==null?void 0:R.source)==="filterDestroyed"&&!this.isAlive())return;let T=this.comp.getFloatingFilterComp();T&&T.then(z=>{var G;if(z){let U=w==null?void 0:w.getCurrentFloatingFilterParentModel(this.column),X=R?et(pe({},R),{columns:(G=R.columns)!=null?G:[],source:R.source==="api"?"api":"columnFilter"}):null;z.onParentModelChanged(U,X)}})};[this.destroySyncListener]=b.addManagedListeners(this.column,{filterChanged:k}),w!=null&&w.isFilterActive(this.column)&&k(null)}setupWidth(b){let w=()=>{let k=`${this.column.getActualWidth()}px`;this.comp.setWidth(k)};b.addManagedListeners(this.column,{widthChanged:w}),w()}setupFilterChangedListener(b){this.active&&([this.destroyFilterChangedListener]=b.addManagedListeners(this.column,{filterChanged:this.updateFilterButton.bind(this)}),this.updateFilterButton())}updateFilterButton(){var b;if(!this.suppressFilterButton&&this.comp){let w=!!((b=this.beans.filterManager)!=null&&b.isFilterAllowed(this.column));this.comp.setButtonWrapperDisplayed(w),this.highlightFilterButtonWhenActive&&w&&this.eButtonShowMainFilter.classList.toggle("ag-filter-active",this.column.isFilterActive())}}onColDefChanged(b){var z;let w=this.active;this.setupActive();let k=!w&&this.active;w&&!this.active&&(this.destroySyncListener(),this.destroyFilterChangedListener());let R=this.active?(z=this.beans.filterManager)==null?void 0:z.getFloatingFilterCompDetails(this.column,()=>this.showParentFilter()):null,T=this.comp.getFloatingFilterComp();T&&R?T.then(G=>{var U,X;!G||(X=this.beans.filterManager)!=null&&X.areFilterCompsDifferent((U=this.userCompDetails)!=null?U:null,R)?this.updateCompDetails(b,R,k):this.updateFloatingFilterParams(R)}):this.updateCompDetails(b,R,k)}updateCompDetails(b,w,k){this.isAlive()&&(this.setCompDetails(w),this.setupFilterButton(),this.setupUi(),k&&(this.setupSyncWithFilter(b),this.setupFilterChangedListener(b)))}updateFloatingFilterParams(b){var k;if(!b)return;let w=b.params;(k=this.comp.getFloatingFilterComp())==null||k.then(R=>{R!=null&&R.refresh&&typeof R.refresh=="function"&&R.refresh(w)})}addResizeAndMoveKeyboardListeners(){}destroy(){super.destroy(),this.destroySyncListener=null,this.destroyFilterChangedListener=null}}x.HeaderFilterCellCtrl=g},8078:function(ne,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.ColumnGroupHeaderCompModule=x.ColumnHeaderCompModule=void 0;let M=p(7205),A=p(9270),F=p(4998);x.ColumnHeaderCompModule={moduleName:"ColumnHeaderComp",version:M.VERSION,userComponents:{agColumnHeader:A.HeaderComp},icons:{menu:"menu",menuAlt:"menu-alt"}},x.ColumnGroupHeaderCompModule={moduleName:"ColumnGroupHeaderComp",version:M.VERSION,userComponents:{agColumnGroupHeader:F.HeaderGroupComp},icons:{columnGroupOpened:"expanded",columnGroupClosed:"contracted"}}},8791:function(ne,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.GridHeaderSelector=x.GridHeaderComp=void 0;let M=p(8020),A=p(9),F=p(7260);class D extends M.Component{constructor(){super('<div class="ag-header" role="presentation"/>')}postConstruct(){let v={addOrRemoveCssClass:(s,r)=>this.addOrRemoveCssClass(s,r),setHeightAndMinHeight:s=>{this.getGui().style.height=s,this.getGui().style.minHeight=s}};this.createManagedBean(new A.GridHeaderCtrl).setComp(v,this.getGui(),this.getFocusableElement());let u=s=>{this.createManagedBean(s),this.appendChild(s)};u(new F.HeaderRowContainerComp("left")),u(new F.HeaderRowContainerComp(null)),u(new F.HeaderRowContainerComp("right"))}}x.GridHeaderComp=D,x.GridHeaderSelector={selector:"AG-HEADER-ROOT",component:D}},9:function(ne,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.GridHeaderCtrl=void 0;let M=p(9853),A=p(8731),F=p(7274),D=p(2612),f=p(2331),v=p(4422),u=p(1772),s=p(1323);class r extends A.BeanStub{setComp(g,m,b){this.comp=g,this.eGui=m;let{beans:w}=this,{headerNavigation:k,touchSvc:R,ctrlsSvc:T}=w;k&&this.createManagedBean(new u.ManagedFocusFeature(b,{onTabKeyDown:this.onTabKeyDown.bind(this),handleKeyDown:this.handleKeyDown.bind(this),onFocusOut:this.onFocusOut.bind(this)})),this.addManagedEventListeners({columnPivotModeChanged:this.onPivotModeChanged.bind(this,w),displayedColumnsChanged:this.onDisplayedColumnsChanged.bind(this,w)}),this.onPivotModeChanged(w),this.setupHeaderHeight();let z=this.onHeaderContextMenu.bind(this);this.addManagedElementListeners(this.eGui,{contextmenu:z}),R==null||R.mockHeaderContextMenu(this,z),T.register("gridHeaderCtrl",this)}setupHeaderHeight(){let g=this.setHeaderHeight.bind(this);g(),this.addManagedPropertyListeners(["headerHeight","pivotHeaderHeight","groupHeaderHeight","pivotGroupHeaderHeight","floatingFiltersHeight"],g),this.addManagedEventListeners({displayedColumnsChanged:g,columnHeaderHeightChanged:g,columnGroupHeaderHeightChanged:()=>(0,D._requestAnimationFrame)(this.beans,()=>g()),gridStylesChanged:g,advancedFilterEnabledChanged:g})}setHeaderHeight(){var R;let{beans:g}=this,m=0,b=(0,s.getGroupRowsHeight)(g).reduce((T,z)=>T+z,0),w=(0,s.getColumnHeaderRowHeight)(g);if((R=g.filterManager)!=null&&R.hasFloatingFilters()&&(m+=(0,s.getFloatingFiltersHeight)(g)),m+=b,m+=w,this.headerHeight===m)return;this.headerHeight=m;let k=`${m+1}px`;this.comp.setHeightAndMinHeight(k),this.eventSvc.dispatchEvent({type:"headerHeightChanged"})}onPivotModeChanged(g){let m=g.colModel.isPivotMode();this.comp.addOrRemoveCssClass("ag-pivot-on",m),this.comp.addOrRemoveCssClass("ag-pivot-off",!m)}onDisplayedColumnsChanged(g){let m=g.visibleCols.allCols.some(b=>b.isSpanHeaderHeight());this.comp.addOrRemoveCssClass("ag-header-allow-overflow",m)}onTabKeyDown(g){let m=this.gos.get("enableRtl"),b=g.shiftKey,w=b!==m?"LEFT":"RIGHT",{beans:k}=this,{headerNavigation:R,focusSvc:T}=k;(R.navigateHorizontally(w,!0,g)||!b&&T.focusOverlay(!1)||(0,f._focusNextGridCoreContainer)(k,b,!0))&&g.preventDefault()}handleKeyDown(g){let m=null,{headerNavigation:b}=this.beans;switch(g.key){case M.KeyCode.LEFT:m="LEFT";case M.KeyCode.RIGHT:(0,v._exists)(m)||(m="RIGHT"),b.navigateHorizontally(m,!1,g)&&g.preventDefault();break;case M.KeyCode.UP:m="UP";case M.KeyCode.DOWN:(0,v._exists)(m)||(m="DOWN"),b.navigateVertically(m,null,g)&&g.preventDefault();break;default:return}}onFocusOut(g){let{relatedTarget:m}=g,{eGui:b,beans:w}=this;!m&&b.contains((0,F._getActiveDomElement)(w))||b.contains(m)||(w.focusSvc.focusedHeader=null)}onHeaderContextMenu(g,m,b){var T;let{menuSvc:w,ctrlsSvc:k}=this.beans;if(!g&&!b||!(w!=null&&w.isHeaderContextMenuEnabled()))return;let{target:R}=g!=null?g:m;R!==this.eGui&&R!==((T=k.getHeaderRowContainerCtrl())==null?void 0:T.eViewport)||w.showHeaderContextMenu(void 0,g,b)}}x.GridHeaderCtrl=r},1323:function(ne,x){function p(F,D){let f=F.colModel.isPivotMode()?function(s){var r;return(r=s.gos.get("pivotGroupHeaderHeight"))!=null?r:A(s)}(F):A(F),v=0,u=D.getHeaderCtrls();for(let s of u){let{column:r}=s;if(r.isAutoHeaderHeight()){let d=r.getAutoHeaderHeight();d!=null&&d>v&&(v=d)}}return Math.max(f,v)}function M(F){var D;return(D=F.gos.get("headerHeight"))!=null?D:F.environment.getDefaultHeaderHeight()}function A(F){var D;return(D=F.gos.get("groupHeaderHeight"))!=null?D:M(F)}Object.defineProperty(x,"__esModule",{value:!0}),x.getFloatingFiltersHeight=x.getHeaderHeight=x.getColumnHeaderRowHeight=x.getGroupRowsHeight=x.getFocusHeaderRowCount=x.getHeaderRowCount=void 0,x.getHeaderRowCount=function(F){return F.cols?F.cols.treeDepth+1:-1},x.getFocusHeaderRowCount=function(F){var D,f;return(f=(D=F.ctrlsSvc.getHeaderRowContainerCtrl())==null?void 0:D.getRowCount())!=null?f:0},x.getGroupRowsHeight=function(F){let D=[],f=F.ctrlsSvc.getHeaderRowContainerCtrls();for(let v of f){if(!v)continue;let u=v.getGroupRowCount()||0;for(let s=0;s<u;s++){let r=v.getGroupRowCtrlAtIndex(s),d=D[s];if(r){let g=p(F,r);(d==null||g>d)&&(D[s]=g)}}}return D},x.getColumnHeaderRowHeight=function(F){let D=F.colModel.isPivotMode()?function(v){var u;return(u=v.gos.get("pivotHeaderHeight"))!=null?u:M(v)}(F):M(F),f=F.visibleCols.allCols.filter(v=>v.isAutoHeaderHeight()).map(v=>v.getAutoHeaderHeight()||0);return Math.max(D,...f)},x.getHeaderHeight=M,x.getFloatingFiltersHeight=function(F){var D;return(D=F.gos.get("floatingFiltersHeight"))!=null?D:M(F)}},8866:function(ne,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.HeaderRowComp=void 0;let M=p(5230),A=p(3507),F=p(8020),D=p(1906),f=p(7746),v=p(3290);class u extends F.Component{constructor(r){super(),this.headerComps={},this.ctrl=r,this.setTemplate(`<div class="${this.ctrl.headerRowClass}" role="row"></div>`)}postConstruct(){(0,M._setAriaRowIndex)(this.getGui(),this.ctrl.getAriaRowIndex());let r={setHeight:d=>this.getGui().style.height=d,setTop:d=>this.getGui().style.top=d,setHeaderCtrls:(d,g)=>this.setHeaderCtrls(d,g),setWidth:d=>this.getGui().style.width=d};this.ctrl.setComp(r,void 0)}destroy(){this.setHeaderCtrls([],!1),super.destroy()}setHeaderCtrls(r,d){if(!this.isAlive())return;let g=this.headerComps;if(this.headerComps={},r.forEach(m=>{let b=m.instanceId,w=g[b];delete g[b],w==null&&(w=this.createHeaderComp(m),this.getGui().appendChild(w.getGui())),this.headerComps[b]=w}),Object.values(g).forEach(m=>{this.getGui().removeChild(m.getGui()),this.destroyBean(m)}),d){let m=Object.values(this.headerComps);m.sort((w,k)=>w.getCtrl().column.getLeft()-k.getCtrl().column.getLeft());let b=m.map(w=>w.getGui());(0,A._setDomChildOrder)(this.getGui(),b)}}createHeaderComp(r){let d;switch(this.ctrl.type){case"group":d=new f.HeaderGroupCellComp(r);break;case"filter":d=new v.HeaderFilterCellComp(r);break;default:d=new D.HeaderCellComp(r)}return this.createBean(d),d.setParentComponent(this),d}}x.HeaderRowComp=u},2868:function(ne,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.HeaderRowCtrl=void 0;let M=p(3789),A=p(8731),F=p(7274),D=p(260),f=p(1323),v=0;class u extends A.BeanStub{constructor(r,d,g){super(),this.rowIndex=r,this.pinned=d,this.type=g,this.instanceId=v++;let m=g=="group"?"ag-header-row-column-group":g=="filter"?"ag-header-row-column-filter":"ag-header-row-column";this.headerRowClass=`ag-header-row ${m}`}postConstruct(){this.isPrintLayout=(0,F._isDomLayout)(this.gos,"print"),this.isEnsureDomOrder=this.gos.get("ensureDomOrder")}areCellsRendered(){return!!this.comp&&this.getHeaderCellCtrls().every(r=>r.eGui!=null)}setComp(r,d,g=!0){this.comp=r,d=(0,M.setupCompBean)(this,this.beans.context,d),g&&(this.onRowHeightChanged(),this.onVirtualColumnsChanged()),this.setWidth(),this.addEventListeners(d)}getAriaRowIndex(){return this.rowIndex+1}addEventListeners(r){let d=this.onRowHeightChanged.bind(this);r.addManagedEventListeners({columnResized:this.setWidth.bind(this),displayedColumnsChanged:this.onDisplayedColumnsChanged.bind(this),virtualColumnsChanged:g=>this.onVirtualColumnsChanged(g.afterScroll),columnGroupHeaderHeightChanged:d,columnHeaderHeightChanged:d,gridStylesChanged:d,advancedFilterEnabledChanged:d}),r.addManagedPropertyListener("domLayout",this.onDisplayedColumnsChanged.bind(this)),r.addManagedPropertyListener("ensureDomOrder",g=>this.isEnsureDomOrder=g.currentValue),r.addManagedPropertyListeners(["headerHeight","pivotHeaderHeight","groupHeaderHeight","pivotGroupHeaderHeight","floatingFiltersHeight"],d)}getHeaderCellCtrl(r){if(this.headerCellCtrls){for(let d of this.headerCellCtrls.values())if(d.column===r)return d}}onDisplayedColumnsChanged(){this.isPrintLayout=(0,F._isDomLayout)(this.gos,"print"),this.onVirtualColumnsChanged(),this.setWidth(),this.onRowHeightChanged()}setWidth(){let r=this.getWidthForRow();this.comp.setWidth(`${r}px`)}getWidthForRow(){let{visibleCols:r}=this.beans;return this.isPrintLayout?this.pinned!=null?0:r.getContainerWidth("right")+r.getContainerWidth("left")+r.getContainerWidth(null):r.getContainerWidth(this.pinned)}onRowHeightChanged(){let{topOffset:r,rowHeight:d}=this.getTopAndHeight();this.comp.setTop(r+"px"),this.comp.setHeight(d+"px")}getTopAndHeight(){let{filterManager:r}=this.beans,d=[],g=(0,f.getGroupRowsHeight)(this.beans),m=(0,f.getColumnHeaderRowHeight)(this.beans);d.push(...g),d.push(m),r!=null&&r.hasFloatingFilters()&&d.push((0,f.getFloatingFiltersHeight)(this.beans));let b=0;for(let w=0;w<this.rowIndex;w++)b+=d[w];return{topOffset:b,rowHeight:d[this.rowIndex]}}onVirtualColumnsChanged(r=!1){let d=this.getHeaderCtrls(),g=this.isEnsureDomOrder||this.isPrintLayout;this.comp.setHeaderCtrls(d,g,r)}getHeaderCtrls(){let r=this.headerCellCtrls;this.headerCellCtrls=new Map;let d=this.getColumnsInViewport();for(let m of d)this.recycleAndCreateHeaderCtrls(m,r);let g=m=>{let{focusSvc:b,visibleCols:w}=this.beans;return b.isHeaderWrapperFocused(m)?w.isVisible(m.column):!1};if(r)for(let[m,b]of r)g(b)?this.headerCellCtrls.set(m,b):this.destroyBean(b);return this.getHeaderCellCtrls()}getHeaderCellCtrls(){var r,d;return Array.from((d=(r=this.headerCellCtrls)==null?void 0:r.values())!=null?d:[])}recycleAndCreateHeaderCtrls(r,d){if(!this.headerCellCtrls||r.isEmptyGroup())return;let g=r.getUniqueId(),m;if(d&&(m=d.get(g),d.delete(g)),m&&m.column!=r&&(this.destroyBean(m),m=void 0),m==null)switch(this.type){case"filter":m=this.createBean(this.beans.registry.createDynamicBean("headerFilterCellCtrl",!0,r,this));break;case"group":m=this.createBean(this.beans.registry.createDynamicBean("headerGroupCellCtrl",!0,r,this));break;default:m=this.createBean(new D.HeaderCellCtrl(r,this))}this.headerCellCtrls.set(g,m)}getColumnsInViewport(){return this.isPrintLayout?this.getColumnsInViewportPrintLayout():this.getColumnsInViewportNormalLayout()}getColumnsInViewportPrintLayout(){if(this.pinned!=null)return[];let r=[],d=this.getActualDepth(),{colViewport:g}=this.beans;return["left",null,"right"].forEach(m=>{let b=g.getHeadersToRender(m,d);r=r.concat(b)}),r}getActualDepth(){return this.type=="filter"?this.rowIndex-1:this.rowIndex}getColumnsInViewportNormalLayout(){return this.beans.colViewport.getHeadersToRender(this.pinned,this.getActualDepth())}findHeaderCellCtrl(r){if(!this.headerCellCtrls)return;let d=this.getHeaderCellCtrls(),g;return g=typeof r=="function"?d.find(r):d.find(m=>m.column==r),g}focusHeader(r,d){let g=this.findHeaderCellCtrl(r);return g?g.focus(d):!1}destroy(){var r;(r=this.headerCellCtrls)==null||r.forEach(d=>{this.destroyBean(d)}),this.headerCellCtrls=void 0,super.destroy()}}x.HeaderRowCtrl=u},7260:function(ne,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.HeaderRowContainerComp=void 0;let M=p(3507),A=p(8020),F=p(8866),D=p(8934);class f extends A.Component{constructor(u){super(),this.eCenterContainer=A.RefPlaceholder,this.headerRowComps={},this.rowCompsList=[],this.pinned=u}postConstruct(){this.selectAndSetTemplate();let u={setDisplayed:s=>this.setDisplayed(s),setCtrls:s=>this.setCtrls(s),setCenterWidth:s=>this.eCenterContainer.style.width=s,setViewportScrollLeft:s=>this.getGui().scrollLeft=s,setPinnedContainerWidth:s=>{let r=this.getGui();r.style.width=s,r.style.maxWidth=s,r.style.minWidth=s}};this.createManagedBean(new D.HeaderRowContainerCtrl(this.pinned)).setComp(u,this.getGui())}selectAndSetTemplate(){let u=this.pinned=="left",s=this.pinned=="right",r=u?'<div class="ag-pinned-left-header" role="rowgroup"></div>':s?'<div class="ag-pinned-right-header" role="rowgroup"></div>':`<div class="ag-header-viewport" role="presentation">
        <div class="ag-header-container" data-ref="eCenterContainer" role="rowgroup"></div>
    </div>`;this.setTemplate(r),this.eRowContainer=this.eCenterContainer!==A.RefPlaceholder?this.eCenterContainer:this.getGui()}destroy(){this.setCtrls([]),super.destroy()}destroyRowComp(u){this.destroyBean(u),this.eRowContainer.removeChild(u.getGui())}setCtrls(u){let s=this.headerRowComps,r;this.headerRowComps={},this.rowCompsList=[];let d=g=>{let m=g.getGui();m.parentElement!=this.eRowContainer&&this.eRowContainer.appendChild(m),r&&(0,M._ensureDomOrder)(this.eRowContainer,m,r),r=m};u.forEach(g=>{let m=g.instanceId,b=s[m];delete s[m];let w=b||this.createBean(new F.HeaderRowComp(g));this.headerRowComps[m]=w,this.rowCompsList.push(w),d(w)}),Object.values(s).forEach(g=>this.destroyRowComp(g))}}x.HeaderRowContainerComp=f},8934:function(ne,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.HeaderRowContainerCtrl=void 0;let M=p(8731),A=p(3355),F=p(2218),D=p(1323),f=p(2868);class v extends M.BeanStub{constructor(s){super(),this.pinned=s,this.hidden=!1,this.includeFloatingFilter=!1,this.groupsRowCtrls=[]}setComp(s,r){this.comp=s,this.eViewport=r;let{pinnedCols:d,ctrlsSvc:g,colModel:m,colMoves:b,filterManager:w}=this.beans;this.setupCenterWidth(),d==null||d.setupHeaderPinnedWidth(this),this.setupDragAndDrop(b,this.eViewport);let k=this.onDisplayedColumnsChanged.bind(this,w);this.addManagedEventListeners({gridColumnsChanged:this.onGridColumnsChanged.bind(this),displayedColumnsChanged:k,advancedFilterEnabledChanged:k});let R=`${typeof this.pinned=="string"?this.pinned:"center"}Header`;g.register(R,this),m.ready&&this.refresh()}getAllCtrls(){let s=[...this.groupsRowCtrls];return this.columnsRowCtrl&&s.push(this.columnsRowCtrl),this.filtersRowCtrl&&s.push(this.filtersRowCtrl),s}refresh(s=!1){let{focusSvc:r,colModel:d,filterManager:g}=this.beans,m=0,b=r.getFocusHeaderToUseAfterRefresh();(()=>{let k=(0,D.getHeaderRowCount)(d)-1;this.groupsRowCtrls=this.destroyBeans(this.groupsRowCtrls);for(let R=0;R<k;R++){let T=this.createBean(new f.HeaderRowCtrl(m++,this.pinned,"group"));this.groupsRowCtrls.push(T)}})(),(()=>{let k=m++,R=!(this.hidden||this.columnsRowCtrl!=null&&s&&this.columnsRowCtrl.rowIndex===k);(R||this.hidden)&&(this.columnsRowCtrl=this.destroyBean(this.columnsRowCtrl)),R&&(this.columnsRowCtrl=this.createBean(new f.HeaderRowCtrl(k,this.pinned,"column")))})(),(()=>{this.includeFloatingFilter=!!(g!=null&&g.hasFloatingFilters())&&!this.hidden;let k=()=>{this.filtersRowCtrl=this.destroyBean(this.filtersRowCtrl)};if(!this.includeFloatingFilter)return void k();let R=m++;if(this.filtersRowCtrl){let T=this.filtersRowCtrl.rowIndex!==R;s&&!T||k()}this.filtersRowCtrl||(this.filtersRowCtrl=this.createBean(new f.HeaderRowCtrl(R,this.pinned,"filter")))})();let w=this.getAllCtrls();this.comp.setCtrls(w),this.restoreFocusOnHeader(r,b)}getHeaderCtrlForColumn(s){var r;if((0,A.isColumn)(s))return(r=this.columnsRowCtrl)==null?void 0:r.getHeaderCellCtrl(s);if(this.groupsRowCtrls.length!==0)for(let d=0;d<this.groupsRowCtrls.length;d++){let g=this.groupsRowCtrls[d].getHeaderCellCtrl(s);if(g)return g}}getHtmlElementForColumnHeader(s){var r,d;return(d=(r=this.getHeaderCtrlForColumn(s))==null?void 0:r.eGui)!=null?d:null}getRowType(s){var r;return(r=this.getAllCtrls()[s])==null?void 0:r.type}focusHeader(s,r,d){let g=this.getAllCtrls()[s];return!!g&&g.focusHeader(r,d)}getGroupRowCount(){return this.groupsRowCtrls.length}getGroupRowCtrlAtIndex(s){return this.groupsRowCtrls[s]}getRowCount(){return this.groupsRowCtrls.length+(this.columnsRowCtrl?1:0)+(this.filtersRowCtrl?1:0)}setHorizontalScroll(s){this.comp.setViewportScrollLeft(s)}onScrollCallback(s){this.addManagedElementListeners(this.eViewport,{scroll:s})}destroy(){this.filtersRowCtrl=this.destroyBean(this.filtersRowCtrl),this.columnsRowCtrl=this.destroyBean(this.columnsRowCtrl),this.groupsRowCtrls=this.destroyBeans(this.groupsRowCtrls),super.destroy()}setupDragAndDrop(s,r){let d=s==null?void 0:s.createBodyDropTarget(this.pinned,r);d&&this.createManagedBean(d)}restoreFocusOnHeader(s,r){if(!r)return;let{column:d}=r;d.getPinned()==this.pinned&&s.focusHeaderPosition({headerPosition:r})}onGridColumnsChanged(){this.refresh(!0)}onDisplayedColumnsChanged(s){let r=!!(s!=null&&s.hasFloatingFilters())&&!this.hidden;this.includeFloatingFilter!==r&&this.refresh(!0)}setupCenterWidth(){this.pinned==null&&this.createManagedBean(new F.CenterWidthFeature(s=>this.comp.setCenterWidth(`${s}px`),!0))}}x.HeaderRowContainerCtrl=v},6642:function(ne,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.InfiniteBlock=void 0;let M=p(8731),A=p(3373),F=p(4422),D=p(7764);class f extends M.BeanStub{constructor(u,s,r){super(),this.id=u,this.parentCache=s,this.params=r,this.state="needsLoading",this.version=0,this.startRow=u*r.blockSize,this.endRow=this.startRow+r.blockSize}load(){this.state="loading",this.loadFromDatasource()}setStateWaitingToLoad(){this.version++,this.state="needsLoading"}pageLoadFailed(u){this.isRequestMostRecentAndLive(u)&&(this.state="failed"),this.dispatchLocalEvent({type:"loadComplete"})}pageLoaded(u,s,r){this.successCommon(u,{rowData:s,rowCount:r})}isRequestMostRecentAndLive(u){let s=u===this.version,r=this.isAlive();return s&&r}successCommon(u,s){this.dispatchLocalEvent({type:"loadComplete"}),this.isRequestMostRecentAndLive(u)&&(this.state="loaded",this.processServerResult(s))}postConstruct(){this.rowNodes=[];let{params:{blockSize:u,rowHeight:s},startRow:r,beans:d,rowNodes:g}=this;for(let m=0;m<u;m++){let b=r+m,w=new A.RowNode(d);w.setRowHeight(s),w.uiLevel=0,w.setRowIndex(b),w.setRowTop(s*b),g.push(w)}}getBlockStateJson(){let{id:u,startRow:s,endRow:r,state:d}=this;return{id:""+u,state:{blockNumber:u,startRow:s,endRow:r,pageStatus:d}}}setDataAndId(u,s,r){(0,F._exists)(s)?u.setDataAndId(s,r.toString()):u.setDataAndId(void 0,void 0)}loadFromDatasource(){let u=this.createLoadParams();(0,F._missing)(this.params.datasource.getRows)?(0,D._warn)(90):window.setTimeout(()=>{this.params.datasource.getRows(u)},0)}createLoadParams(){let{startRow:u,endRow:s,version:r,params:{sortModel:d,filterModel:g},gos:m}=this;return{startRow:u,endRow:s,successCallback:this.pageLoaded.bind(this,r),failCallback:this.pageLoadFailed.bind(this,r),sortModel:d,filterModel:g,context:m.getGridCommonParams().context}}forEachNode(u,s,r){this.rowNodes.forEach((d,g)=>{this.startRow+g<r&&u(d,s.value++)})}getRow(u,s=!1){s||(this.lastAccessed=this.params.lastAccessedSequence.value++);let r=u-this.startRow;return this.rowNodes[r]}processServerResult(u){let{rowNodes:s,beans:r}=this;s.forEach((g,m)=>{let b=u.rowData?u.rowData[m]:void 0;!g.id&&g.alreadyRendered&&b&&(s[m]=new A.RowNode(r),s[m].setRowIndex(g.rowIndex),s[m].setRowTop(g.rowTop),s[m].setRowHeight(g.rowHeight),g.clearRowTopAndRowIndex()),this.setDataAndId(s[m],b,this.startRow+m)});let d=u.rowCount!=null&&u.rowCount>=0?u.rowCount:void 0;this.parentCache.pageLoaded(this,d)}destroy(){this.rowNodes.forEach(u=>{u.clearRowTopAndRowIndex()}),super.destroy()}}x.InfiniteBlock=f},8861:function(ne,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.InfiniteCache=void 0;let M=p(8731),A=p(2043),F=p(4422),D=p(6642);class f extends M.BeanStub{constructor(u){super(),this.params=u,this.lastRowIndexKnown=!1,this.blocks={},this.blockCount=0,this.rowCount=u.initialRowCount}getRow(u,s=!1){let r=Math.floor(u/this.params.blockSize),d=this.blocks[r];if(!d){if(s)return;d=this.createBlock(r)}return d.getRow(u)}createBlock(u){let s=this.params,r=this.createBean(new D.InfiniteBlock(u,this,s));return this.blocks[r.id]=r,this.blockCount++,this.purgeBlocksIfNeeded(r),s.rowNodeBlockLoader.addBlock(r),r}refreshCache(){this.blockCount==0?this.purgeCache():(this.getBlocksInOrder().forEach(u=>u.setStateWaitingToLoad()),this.params.rowNodeBlockLoader.checkBlockToLoad())}destroy(){this.getBlocksInOrder().forEach(u=>this.destroyBlock(u)),super.destroy()}getRowCount(){return this.rowCount}isLastRowIndexKnown(){return this.lastRowIndexKnown}pageLoaded(u,s){this.isAlive()&&((0,A._logIfDebug)(this.gos,`InfiniteCache - onPageLoaded: page = ${u.id}, lastRow = ${s}`),this.checkRowCount(u,s),this.onCacheUpdated())}purgeBlocksIfNeeded(u){let s=this.getBlocksInOrder().filter(g=>g!=u);s.sort((g,m)=>m.lastAccessed-g.lastAccessed);let r=this.params.maxBlocksInCache>0,d=r?this.params.maxBlocksInCache-1:null;s.forEach((g,m)=>{if(g.state==="needsLoading"&&m>=1||r&&m>=d){if(this.isBlockCurrentlyDisplayed(g)||this.isBlockFocused(g))return;this.removeBlockFromCache(g)}})}isBlockFocused(u){let s=this.beans.focusSvc.getFocusCellToUseAfterRefresh();if(!s||s.rowPinned!=null)return!1;let{startRow:r,endRow:d}=u;return s.rowIndex>=r&&s.rowIndex<d}isBlockCurrentlyDisplayed(u){let{startRow:s,endRow:r}=u;return this.beans.rowRenderer.isRangeInRenderedViewport(s,r-1)}removeBlockFromCache(u){u&&this.destroyBlock(u)}checkRowCount(u,s){if(typeof s=="number"&&s>=0)this.rowCount=s,this.lastRowIndexKnown=!0;else if(!this.lastRowIndexKnown){let{blockSize:r,overflowSize:d}=this.params,g=(u.id+1)*r+d;this.rowCount<g&&(this.rowCount=g)}}setRowCount(u,s){this.rowCount=u,(0,F._exists)(s)&&(this.lastRowIndexKnown=s),this.lastRowIndexKnown||this.rowCount%this.params.blockSize==0&&this.rowCount++,this.onCacheUpdated()}forEachNodeDeep(u){let s={value:0};this.getBlocksInOrder().forEach(r=>r.forEachNode(u,s,this.rowCount))}getBlocksInOrder(){return Object.values(this.blocks).sort((u,s)=>u.id-s.id)}destroyBlock(u){delete this.blocks[u.id],this.destroyBean(u),this.blockCount--,this.params.rowNodeBlockLoader.removeBlock(u)}onCacheUpdated(){this.isAlive()&&(this.destroyAllBlocksPastVirtualRowCount(),this.eventSvc.dispatchEvent({type:"storeUpdated"}))}destroyAllBlocksPastVirtualRowCount(){let u=[];this.getBlocksInOrder().forEach(s=>{s.id*this.params.blockSize>=this.rowCount&&u.push(s)}),u.length>0&&u.forEach(s=>this.destroyBlock(s))}purgeCache(){this.getBlocksInOrder().forEach(u=>this.removeBlockFromCache(u)),this.lastRowIndexKnown=!1,this.rowCount===0&&(this.rowCount=this.params.initialRowCount),this.onCacheUpdated()}getRowNodesInRange(u,s){let r=[],d=-1,g=!1,m={value:0},b=!1;return this.getBlocksInOrder().forEach(w=>{b||(g&&d+1!==w.id?b=!0:(d=w.id,w.forEachNode(k=>{let R=k===u||k===s;(g||R)&&r.push(k),R&&(g=!g)},m,this.rowCount)))}),b||g?[]:r}}x.InfiniteCache=f},169:function(ne,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.InfiniteRowModel=void 0;let M=p(8731),A=p(7274),F=p(4422),D=p(8861);class f extends M.BeanStub{constructor(){super(...arguments),this.beanName="rowModel"}getRowBounds(u){return{rowHeight:this.rowHeight,rowTop:this.rowHeight*u}}ensureRowHeightsValid(){return!1}postConstruct(){this.gos.get("rowModelType")==="infinite"&&(this.rowHeight=(0,A._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=(0,A._getRowHeightAsNumber)(this.beans),this.cacheParams.rowHeight=this.rowHeight,this.updateRowHeights()})}onColumnEverything(){var s,r;let u;u=!this.cacheParams||!(0,F._jsonEquals)(this.cacheParams.sortModel,(r=(s=this.beans.sortSvc)==null?void 0:s.getSortModel())!=null?r:[]),u&&this.reset()}getType(){return"infinite"}setDatasource(u){this.destroyDatasource(),this.datasource=u,u&&this.reset()}isEmpty(){return!this.infiniteCache}isRowsToRender(){return!!this.infiniteCache}getNodesInRangeForSelection(u,s){var r,d;return(d=(r=this.infiniteCache)==null?void 0:r.getRowNodesInRange(u,s))!=null?d:[]}reset(){var u;this.datasource&&((0,A._getRowIdCallback)(this.gos)!=null||((u=this.beans.selectionSvc)==null||u.reset("rowDataChanged")),this.resetCache())}dispatchModelUpdatedEvent(){this.eventSvc.dispatchEvent({type:"modelUpdated",newPage:!1,newPageSize:!1,newData:!1,keepRenderedRows:!0,animate:!1})}resetCache(){var b,w;this.destroyCache();let u=this.beans,{filterManager:s,sortSvc:r,rowNodeBlockLoader:d,eventSvc:g,gos:m}=u;this.cacheParams={datasource:this.datasource,filterModel:(b=s==null?void 0:s.getFilterModel())!=null?b:{},sortModel:(w=r==null?void 0:r.getSortModel())!=null?w:[],rowNodeBlockLoader:d,initialRowCount:m.get("infiniteInitialRowCount"),maxBlocksInCache:m.get("maxBlocksInCache"),rowHeight:(0,A._getRowHeightAsNumber)(u),overflowSize:m.get("cacheOverflowSize"),blockSize:m.get("cacheBlockSize"),lastAccessedSequence:{value:0}},this.infiniteCache=this.createBean(new D.InfiniteCache(this.cacheParams)),g.dispatchEventOnce({type:"rowCountReady"}),this.dispatchModelUpdatedEvent()}updateRowHeights(){this.forEachNode(u=>{u.setRowHeight(this.rowHeight),u.setRowTop(this.rowHeight*u.rowIndex)}),this.dispatchModelUpdatedEvent()}destroyCache(){this.infiniteCache=this.destroyBean(this.infiniteCache)}getRow(u){let s=this.infiniteCache;if(s&&!(u>=s.getRowCount()))return s.getRow(u)}getRowNode(u){let s;return this.forEachNode(r=>{r.id===u&&(s=r)}),s}forEachNode(u){var s;(s=this.infiniteCache)==null||s.forEachNodeDeep(u)}getTopLevelRowCount(){return this.getRowCount()}getTopLevelRowDisplayedIndex(u){return u}getRowIndexAtPixel(u){if(this.rowHeight!==0){let s=Math.floor(u/this.rowHeight),r=this.getRowCount()-1;return s>r?r:s}return 0}getRowCount(){return this.infiniteCache?this.infiniteCache.getRowCount():0}isRowPresent(u){return!!this.getRowNode(u.id)}refreshCache(){var u;(u=this.infiniteCache)==null||u.refreshCache()}purgeCache(){var u;(u=this.infiniteCache)==null||u.purgeCache()}isLastRowIndexKnown(){var u,s;return(s=(u=this.infiniteCache)==null?void 0:u.isLastRowIndexKnown())!=null?s:!1}setRowCount(u,s){var r;(r=this.infiniteCache)==null||r.setRowCount(u,s)}}x.InfiniteRowModel=f},9836:function(ne,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.getInfiniteRowCount=x.purgeInfiniteCache=x.refreshInfiniteCache=void 0;let M=p(6876);x.refreshInfiniteCache=function(A){var F;(F=(0,M._getInfiniteRowModel)(A))==null||F.refreshCache()},x.purgeInfiniteCache=function(A){var F;(F=(0,M._getInfiniteRowModel)(A))==null||F.purgeCache()},x.getInfiniteRowCount=function(A){var F;return(F=(0,M._getInfiniteRowModel)(A))==null?void 0:F.getRowCount()}},4002:function(ne,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.InfiniteRowModelModule=void 0;let M=p(6437),A=p(7205),F=p(169),D=p(9836),f=p(9789);x.InfiniteRowModelModule={moduleName:"InfiniteRowModel",version:A.VERSION,rowModels:["infinite"],apiFunctions:{refreshInfiniteCache:D.refreshInfiniteCache,purgeInfiniteCache:D.purgeInfiniteCache,getInfiniteRowCount:D.getInfiniteRowCount},beans:[F.InfiniteRowModel,f.RowNodeBlockLoader],dependsOn:[M.SsrmInfiniteSharedApiModule]}},9789:function(ne,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.RowNodeBlockLoader=void 0;let M=p(8731),A=p(7274),F=p(1502),D=p(2043);class f extends M.BeanStub{constructor(){super(...arguments),this.beanName="rowNodeBlockLoader",this.activeBlockLoadsCount=0,this.blocks=[],this.active=!0}postConstruct(){this.maxConcurrentRequests=(0,A._getMaxConcurrentDatasourceRequests)(this.gos);let u=this.gos.get("blockLoadDebounceMillis");u&&u>0&&(this.checkBlockToLoadDebounce=(0,D._debounce)(this,this.performCheckBlocksToLoad.bind(this),u))}addBlock(u){this.blocks.push(u),u.addEventListener("loadComplete",this.loadComplete.bind(this)),this.checkBlockToLoad()}removeBlock(u){(0,F._removeFromArray)(this.blocks,u)}destroy(){super.destroy(),this.active=!1}loadComplete(){this.activeBlockLoadsCount--,this.checkBlockToLoad()}checkBlockToLoad(){this.checkBlockToLoadDebounce?this.checkBlockToLoadDebounce():this.performCheckBlocksToLoad()}performCheckBlocksToLoad(){if(!this.active)return;if(this.printCacheStatus(),this.maxConcurrentRequests!=null&&this.activeBlockLoadsCount>=this.maxConcurrentRequests)return void(0,D._logIfDebug)(this.gos,"RowNodeBlockLoader - checkBlockToLoad: max loads exceeded");let u=this.maxConcurrentRequests!=null?this.maxConcurrentRequests-this.activeBlockLoadsCount:1,s=this.blocks.filter(r=>r.state==="needsLoading").slice(0,u);this.activeBlockLoadsCount+=s.length,s.forEach(r=>r.load()),this.printCacheStatus()}getBlockState(){let u={};return this.blocks.forEach(s=>{let{id:r,state:d}=s.getBlockStateJson();u[r]=d}),u}printCacheStatus(){(0,D._logIfDebug)(this.gos,`RowNodeBlockLoader - printCacheStatus: activePageLoadsCount = ${this.activeBlockLoadsCount}, blocks = ${JSON.stringify(this.getBlockState())}`)}}x.RowNodeBlockLoader=f},5961:function(ne,x){var p;Object.defineProperty(x,"__esModule",{value:!0}),x.CellRangeType=void 0,function(M){M[M.VALUE=0]="VALUE",M[M.DIMENSION=1]="DIMENSION"}(p||(x.CellRangeType=p={}))},7419:function(ne,x){Object.defineProperty(x,"__esModule",{value:!0})},2783:function(ne,x){var p;Object.defineProperty(x,"__esModule",{value:!0}),x.ColumnHighlightPosition=void 0,function(M){M[M.Before=0]="Before",M[M.After=1]="After"}(p||(x.ColumnHighlightPosition=p={}))},7919:function(ne,x){Object.defineProperty(x,"__esModule",{value:!0})},3590:function(ne,x){var p;Object.defineProperty(x,"__esModule",{value:!0}),x.ServerSideTransactionResultStatus=void 0,function(M){M.Applied="Applied",M.StoreNotFound="StoreNotFound",M.StoreLoading="StoreLoading",M.StoreWaitingToLoad="StoreWaitingToLoad",M.StoreLoadingFailed="StoreLoadingFailed",M.StoreWrongType="StoreWrongType",M.Cancelled="Cancelled",M.StoreNotStarted="StoreNotStarted"}(p||(x.ServerSideTransactionResultStatus=p={}))},5889:function(ne,x){Object.defineProperty(x,"__esModule",{value:!0}),x.LocalEventService=void 0,x.LocalEventService=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(p){this.frameworkOverrides=p}getListeners(p,M,A){let F=M?this.allAsyncListeners:this.allSyncListeners,D=F.get(p);return!D&&A&&(D=new Set,F.set(p,D)),D}noRegisteredListenersExist(){return this.allSyncListeners.size===0&&this.allAsyncListeners.size===0&&this.globalSyncListeners.size===0&&this.globalAsyncListeners.size===0}addEventListener(p,M,A=!1){this.getListeners(p,A,!0).add(M)}removeEventListener(p,M,A=!1){let F=this.getListeners(p,A,!1);F&&(F.delete(M),F.size===0)&&(A?this.allAsyncListeners:this.allSyncListeners).delete(p)}addGlobalListener(p,M=!1){(M?this.globalAsyncListeners:this.globalSyncListeners).add(p)}removeGlobalListener(p,M=!1){(M?this.globalAsyncListeners:this.globalSyncListeners).delete(p)}dispatchEvent(p){let M=p;this.dispatchToListeners(M,!0),this.dispatchToListeners(M,!1),this.firedEvents[M.type]=!0}dispatchEventOnce(p){this.firedEvents[p.type]||this.dispatchEvent(p)}dispatchToListeners(p,M){var v;let A=p.type;if(M&&"event"in p){let u=p.event;u instanceof Event&&(p.eventPath=u.composedPath())}let F=(u,s)=>u.forEach(r=>{if(!s.has(r))return;let d=this.frameworkOverrides?()=>this.frameworkOverrides.wrapIncoming(()=>r(p)):()=>r(p);M?this.dispatchAsync(d):d()}),D=(v=this.getListeners(A,M,!1))!=null?v:new Set,f=new Set(D);f.size>0&&F(f,D),new Set(M?this.globalAsyncListeners:this.globalSyncListeners).forEach(u=>{let s=this.frameworkOverrides?()=>this.frameworkOverrides.wrapIncoming(()=>u(A,p)):()=>u(A,p);M?this.dispatchAsync(s):s()})}dispatchAsync(p){if(this.asyncFunctionsQueue.push(p),!this.scheduled){let M=()=>{window.setTimeout(this.flushAsyncQueue.bind(this),0)};this.frameworkOverrides?this.frameworkOverrides.wrapIncoming(M):M(),this.scheduled=!0}}flushAsyncQueue(){this.scheduled=!1;let p=this.asyncFunctionsQueue.slice();this.asyncFunctionsQueue=[],p.forEach(M=>M())}}},9058:function(ne,x,p){Object.defineProperty(x,"__esModule",{value:!0});let M=p(5608);p(140),p(3795),p(8481),p(6655),p(7229),p(2885),p(391),p(9563),p(4169),p(8931),p(5479),p(7894),p(4665),p(8811);let A=p(12);A.ModuleRegistry.registerModules([A.AllCommunityModule]),M.__exportStar(p(12),x)},12:function(ne,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.HeaderRowContainerCtrl=x.GridHeaderCtrl=x._getToolPanelClassesFromColDef=x._getHeaderClassesFromColDef=x._getRowContainerOptions=x.RowContainerCtrl=x.FakeVScrollComp=x.FakeHScrollComp=x._getNormalisedMousePosition=x._getCellPositionForEvent=x.GridBodyCtrl=x._getDefaultFloatingFilterType=x.ProvidedFilter=x.FilterWrapperComp=x._createGlobalRowEvent=x._ROW_ID_PREFIX_ROW_GROUP=x.RowNode=x.isProvidedColumnGroup=x.AgProvidedColumnGroup=x.isColumnGroup=x.AgColumnGroup=x.isColumn=x.AgColumn=x.DragSourceType=x.BeanStub=x._unwrapUserComp=x._getInnerCellRendererDetails=x._getEditorRendererDetails=x._getCellRendererDetails=x._getFloatingFilterCompDetails=x._getFilterDetails=x.RefPlaceholder=x._EmptyBean=x._columnsMatch=x._convertColumnEventSourceType=x._updateColsMap=x._areColIdsEqual=x._getColumnsFromTree=x._destroyColumnTree=x.isColumnGroupAutoCol=x.isColumnSelectionCol=x.GROUP_AUTO_COLUMN_ID=x.GroupInstanceIdCreator=x.ColumnKeyCreator=x._applyColumnState=x._resetColumnState=x.BaseColsService=x._createColumnTree=x._addColumnDefaultAndTypes=x._updateColumnState=void 0,x._processOnChange=x._combineAttributesAndGridOptions=x._getCallbackForEvent=x._PUBLIC_EVENTS=x._ALL_EVENTS=x._getServerSideRowModel=x._getClientSideRowModel=x._getGlobalGridOption=x.provideGlobalGridOptions=x.createGrid=x.GridCoreCreator=x.KeyCode=x.VanillaFrameworkOverrides=x.AutoScrollService=x.CellRangeType=x.AgPickerField=x.AgAbstractLabel=x.TouchListener=x.PopupComponent=x.TabGuardFeature=x.TabGuardClassNames=x.TabGuardCtrl=x.TabGuardComp=x._FOCUS_MANAGED_CLASS=x.ManagedFocusFeature=x.Component=x.AgSelectSelector=x.AgSelect=x.AgInputDateField=x.AgInputNumberFieldSelector=x.AgInputNumberField=x.AgInputTextArea=x.AgInputTextFieldSelector=x.AgInputTextField=x.AgToggleButtonSelector=x.AgToggleButton=x.AgRadioButton=x.AgCheckboxSelector=x.AgCheckbox=x.AgAbstractInputField=x.BaseSelectionService=x.ServerSideTransactionResultStatus=x.AbstractClientSideNodeManager=x.CssClassManager=x._getCellCtrlForEventTarget=x.PositionableFeature=x._setColMenuVisible=x._requestAnimationFrame=x._getHeaderRowCount=x._getFloatingFiltersHeight=void 0,x._getCellByPosition=x._getRowNode=x._isSameRow=x._isRowBefore=x._createCellId=x._areCellsEqual=x._getLocaleTextFunc=x.LocaleService=x.GridCtrl=x.LocalEventService=x._isGroupRowsSticky=x._isUsingNewCellSelectionAPI=x._isUsingNewRowSelectionAPI=x._isColumnMenuAnchoringEnabled=x._isLegacyMenuEnabled=x._getRowSelectionMode=x._getSuppressMultiRanges=x._isCellSelectionEnabled=x._getFillHandle=x._isMultiRowSelection=x._getHeaderCheckbox=x._getCheckboxLocation=x._getCheckboxes=x._getIsRowSelectable=x._getGroupSelectsDescendants=x._getGroupSelection=x._isGetRowHeightFunction=x._isRowSelection=x._getGroupAggFiltering=x._getRootNode=x._anchorElementToMouseMoveEvent=x._getPageBody=x._getDocument=x._isNothingFocused=x._getActiveDomElement=x._shouldUpdateColVisibilityAfterGroup=x._getRowHeightAsNumber=x._canSkipShowingRowGroup=x._isGroupUseEntireRow=x._isServerSideRowModel=x._isClientSideRowModel=x._isColumnsSortingCoupledToGroup=x._isGroupMultiAutoColumn=x._getGroupTotalRowCallback=x._getGrandTotalRow=x._isAnimateRows=x._isDomLayout=x._getRowHeightForNode=x._getRowIdCallback=x._getMaxConcurrentDatasourceRequests=void 0,x._bindCellRendererToHtmlElement=x._setVisible=x._setDisabled=x._setFixedWidth=x._isVisible=x._loadTemplate=x._radioCssClass=x._removeFromParent=x._clearElement=x._setDisplayed=x._getAbsoluteWidth=x._getAbsoluteHeight=x._parseDateTimeFromString=x._serialiseDate=x.ChangedPath=x._isIOSUserAgent=x._areEqual=x._last=x._removeFromArray=x._EmptyArray=x._getAriaPosInSet=x._setAriaHidden=x._setAriaSetSize=x._setAriaPosInSet=x._setAriaSelected=x._setAriaActiveDescendant=x._setAriaRowCount=x._setAriaColCount=x._setAriaSort=x._removeAriaSort=x._removeAriaExpanded=x._setAriaDisabled=x._setAriaRowIndex=x._setAriaColSpan=x._setAriaColIndex=x._setAriaRole=x._setAriaControls=x._setAriaChecked=x._setAriaLabelledBy=x._setAriaExpanded=x._setAriaDescribedBy=x._setAriaLabel=x._setAriaLevel=x._isShowTooltipWhenTruncated=x._getShouldDisplayTooltip=x._shouldDisplayTooltip=x.TooltipFeature=x.BaseComponentWrapper=x._BOOLEAN_MIXED_GRID_OPTIONS=x._ALL_GRID_OPTIONS=void 0,x.RowDragModule=x.DragAndDropModule=x._SharedDragAndDropModule=x._HorizontalResizeModule=x._DragModule=x._ColumnMoveModule=x.ValidationModule=x._getGridRegisteredModules=x.ModuleRegistry=x._downloadFile=x.BaseGridSerializingSession=x.BaseCreator=x._focusNextGridCoreContainer=x._isKeyboardMode=x._focusGridInnerElement=x._findTabbableParent=x._findNextFocusableElement=x._focusInto=x._findFocusableElements=x._addFocusableContainerListener=x._isPromise=x.AgPromise=x._escapeString=x._mergeDeep=x._formatNumberCommas=x._isEventFromPrintableCharacter=x._defaultComparator=x._makeNull=x._toStringOrNull=x._jsonEquals=x._missing=x._exists=x._fuzzySuggestions=x._createIconNoSpan=x._createIcon=x._preInitErrMsg=x._errMsg=x._error=x._warn=x._waitUntil=x._doOnce=x._debounce=x._warnOnce=x._isElementInEventPath=x._isStopPropagationForAgGrid=x._stopPropagationForAgGrid=x._observeResize=x._isNodeOrElement=x._getInnerWidth=x._getInnerHeight=void 0,x.RowAutoHeightModule=x.LocaleModule=x.TooltipModule=x.EventApiModule=x.ColumnHoverModule=x.RowStyleModule=x.CellStyleModule=x.CellApiModule=x.ValueCacheModule=x.PinnedRowModule=x.ColumnAutoSizeModule=x.RenderApiModule=x.ScrollApiModule=x.RowApiModule=x.PaginationModule=x.ColumnApiModule=x.GridStateModule=x._ColumnGroupModule=x.HighlightChangesModule=x._KeyboardNavigationModule=x._PopupModule=x.InfiniteRowModelModule=x.CsvExportModule=x.ClientSideRowModelApiModule=x.ClientSideRowModelModule=x.AlignedGridsModule=x._SortModule=x._SharedMenuModule=x._SsrmInfiniteSharedApiModule=x._CsrmSsrmSharedApiModule=x._SharedRowSelectionModule=x.RowSelectionModule=x.CustomEditorModule=x.UndoRedoEditModule=x.SelectEditorModule=x.LargeTextEditorModule=x.TextEditorModule=x.CheckboxEditorModule=x.DateEditorModule=x.NumberEditorModule=x._EditCoreModule=x.ExternalFilterModule=x.DateFilterModule=x.NumberFilterModule=x.TextFilterModule=x.QuickFilterModule=x.CustomFilterModule=x._FilterValueModule=x._FilterCoreModule=x._ColumnFilterModule=void 0,x._asThemeImpl=x.createTheme=x.createPart=x.AllCommunityModule=x._SharedExportModule=void 0;let M=p(5608);var A=p(2716);Object.defineProperty(x,"_updateColumnState",{enumerable:!0,get:function(){return A._updateColumnState}}),Object.defineProperty(x,"_addColumnDefaultAndTypes",{enumerable:!0,get:function(){return A._addColumnDefaultAndTypes}}),Object.defineProperty(x,"_createColumnTree",{enumerable:!0,get:function(){return A._createColumnTree}});var F=p(3600);Object.defineProperty(x,"BaseColsService",{enumerable:!0,get:function(){return F.BaseColsService}});var D=p(5266);Object.defineProperty(x,"_resetColumnState",{enumerable:!0,get:function(){return D._resetColumnState}}),Object.defineProperty(x,"_applyColumnState",{enumerable:!0,get:function(){return D._applyColumnState}});var f=p(2294);Object.defineProperty(x,"ColumnKeyCreator",{enumerable:!0,get:function(){return f.ColumnKeyCreator}});var v=p(6034);Object.defineProperty(x,"GroupInstanceIdCreator",{enumerable:!0,get:function(){return v.GroupInstanceIdCreator}});var u=p(3146);Object.defineProperty(x,"GROUP_AUTO_COLUMN_ID",{enumerable:!0,get:function(){return u.GROUP_AUTO_COLUMN_ID}}),Object.defineProperty(x,"isColumnSelectionCol",{enumerable:!0,get:function(){return u.isColumnSelectionCol}}),Object.defineProperty(x,"isColumnGroupAutoCol",{enumerable:!0,get:function(){return u.isColumnGroupAutoCol}}),Object.defineProperty(x,"_destroyColumnTree",{enumerable:!0,get:function(){return u._destroyColumnTree}}),Object.defineProperty(x,"_getColumnsFromTree",{enumerable:!0,get:function(){return u._getColumnsFromTree}}),Object.defineProperty(x,"_areColIdsEqual",{enumerable:!0,get:function(){return u._areColIdsEqual}}),Object.defineProperty(x,"_updateColsMap",{enumerable:!0,get:function(){return u._updateColsMap}}),Object.defineProperty(x,"_convertColumnEventSourceType",{enumerable:!0,get:function(){return u._convertColumnEventSourceType}}),Object.defineProperty(x,"_columnsMatch",{enumerable:!0,get:function(){return u._columnsMatch}});var s=p(3789);Object.defineProperty(x,"_EmptyBean",{enumerable:!0,get:function(){return s.EmptyBean}});var r=p(8020);Object.defineProperty(x,"RefPlaceholder",{enumerable:!0,get:function(){return r.RefPlaceholder}});var d=p(2036);Object.defineProperty(x,"_getFilterDetails",{enumerable:!0,get:function(){return d._getFilterDetails}}),Object.defineProperty(x,"_getFloatingFilterCompDetails",{enumerable:!0,get:function(){return d._getFloatingFilterCompDetails}}),Object.defineProperty(x,"_getCellRendererDetails",{enumerable:!0,get:function(){return d._getCellRendererDetails}}),Object.defineProperty(x,"_getEditorRendererDetails",{enumerable:!0,get:function(){return d._getEditorRendererDetails}}),Object.defineProperty(x,"_getInnerCellRendererDetails",{enumerable:!0,get:function(){return d._getInnerCellRendererDetails}});var g=p(4126);Object.defineProperty(x,"_unwrapUserComp",{enumerable:!0,get:function(){return g._unwrapUserComp}});var m=p(8731);Object.defineProperty(x,"BeanStub",{enumerable:!0,get:function(){return m.BeanStub}});var b=p(2903);Object.defineProperty(x,"DragSourceType",{enumerable:!0,get:function(){return b.DragSourceType}});var w=p(3355);Object.defineProperty(x,"AgColumn",{enumerable:!0,get:function(){return w.AgColumn}}),Object.defineProperty(x,"isColumn",{enumerable:!0,get:function(){return w.isColumn}});var k=p(6908);Object.defineProperty(x,"AgColumnGroup",{enumerable:!0,get:function(){return k.AgColumnGroup}}),Object.defineProperty(x,"isColumnGroup",{enumerable:!0,get:function(){return k.isColumnGroup}});var R=p(9409);Object.defineProperty(x,"AgProvidedColumnGroup",{enumerable:!0,get:function(){return R.AgProvidedColumnGroup}}),Object.defineProperty(x,"isProvidedColumnGroup",{enumerable:!0,get:function(){return R.isProvidedColumnGroup}});var T=p(3373);Object.defineProperty(x,"RowNode",{enumerable:!0,get:function(){return T.RowNode}}),Object.defineProperty(x,"_ROW_ID_PREFIX_ROW_GROUP",{enumerable:!0,get:function(){return T.ROW_ID_PREFIX_ROW_GROUP}});var z=p(9888);Object.defineProperty(x,"_createGlobalRowEvent",{enumerable:!0,get:function(){return z._createGlobalRowEvent}});var G=p(1854);Object.defineProperty(x,"FilterWrapperComp",{enumerable:!0,get:function(){return G.FilterWrapperComp}});var U=p(2245);Object.defineProperty(x,"ProvidedFilter",{enumerable:!0,get:function(){return U.ProvidedFilter}});var X=p(9990);Object.defineProperty(x,"_getDefaultFloatingFilterType",{enumerable:!0,get:function(){return X._getDefaultFloatingFilterType}});var Q=p(520);Object.defineProperty(x,"GridBodyCtrl",{enumerable:!0,get:function(){return Q.GridBodyCtrl}});var oe=p(8399);Object.defineProperty(x,"_getCellPositionForEvent",{enumerable:!0,get:function(){return oe._getCellPositionForEvent}}),Object.defineProperty(x,"_getNormalisedMousePosition",{enumerable:!0,get:function(){return oe._getNormalisedMousePosition}});var le=p(335);Object.defineProperty(x,"FakeHScrollComp",{enumerable:!0,get:function(){return le.FakeHScrollComp}});var fe=p(6070);Object.defineProperty(x,"FakeVScrollComp",{enumerable:!0,get:function(){return fe.FakeVScrollComp}});var ye=p(8115);Object.defineProperty(x,"RowContainerCtrl",{enumerable:!0,get:function(){return ye.RowContainerCtrl}}),Object.defineProperty(x,"_getRowContainerOptions",{enumerable:!0,get:function(){return ye._getRowContainerOptions}});var ke=p(1295);Object.defineProperty(x,"_getHeaderClassesFromColDef",{enumerable:!0,get:function(){return ke._getHeaderClassesFromColDef}}),Object.defineProperty(x,"_getToolPanelClassesFromColDef",{enumerable:!0,get:function(){return ke._getToolPanelClassesFromColDef}});var Ie=p(9);Object.defineProperty(x,"GridHeaderCtrl",{enumerable:!0,get:function(){return Ie.GridHeaderCtrl}});var ze=p(8934);Object.defineProperty(x,"HeaderRowContainerCtrl",{enumerable:!0,get:function(){return ze.HeaderRowContainerCtrl}});var Ye=p(1323);Object.defineProperty(x,"_getFloatingFiltersHeight",{enumerable:!0,get:function(){return Ye.getFloatingFiltersHeight}}),Object.defineProperty(x,"_getHeaderRowCount",{enumerable:!0,get:function(){return Ye.getHeaderRowCount}});var xe=p(2612);Object.defineProperty(x,"_requestAnimationFrame",{enumerable:!0,get:function(){return xe._requestAnimationFrame}});var Te=p(8994);Object.defineProperty(x,"_setColMenuVisible",{enumerable:!0,get:function(){return Te._setColMenuVisible}});var Ae=p(2147);Object.defineProperty(x,"PositionableFeature",{enumerable:!0,get:function(){return Ae.PositionableFeature}});var Ne=p(814);Object.defineProperty(x,"_getCellCtrlForEventTarget",{enumerable:!0,get:function(){return Ne._getCellCtrlForEventTarget}});var Re=p(1734);Object.defineProperty(x,"CssClassManager",{enumerable:!0,get:function(){return Re.CssClassManager}});var Oe=p(1954);Object.defineProperty(x,"AbstractClientSideNodeManager",{enumerable:!0,get:function(){return Oe.AbstractClientSideNodeManager}});var Ve=p(3590);Object.defineProperty(x,"ServerSideTransactionResultStatus",{enumerable:!0,get:function(){return Ve.ServerSideTransactionResultStatus}});var Ue=p(3306);Object.defineProperty(x,"BaseSelectionService",{enumerable:!0,get:function(){return Ue.BaseSelectionService}});var Ee=p(8085);Object.defineProperty(x,"AgAbstractInputField",{enumerable:!0,get:function(){return Ee.AgAbstractInputField}});var tt=p(66);Object.defineProperty(x,"AgCheckbox",{enumerable:!0,get:function(){return tt.AgCheckbox}}),Object.defineProperty(x,"AgCheckboxSelector",{enumerable:!0,get:function(){return tt.AgCheckboxSelector}});var at=p(7336);Object.defineProperty(x,"AgRadioButton",{enumerable:!0,get:function(){return at.AgRadioButton}});var ut=p(4927);Object.defineProperty(x,"AgToggleButton",{enumerable:!0,get:function(){return ut.AgToggleButton}}),Object.defineProperty(x,"AgToggleButtonSelector",{enumerable:!0,get:function(){return ut.AgToggleButtonSelector}});var Mt=p(5946);Object.defineProperty(x,"AgInputTextField",{enumerable:!0,get:function(){return Mt.AgInputTextField}}),Object.defineProperty(x,"AgInputTextFieldSelector",{enumerable:!0,get:function(){return Mt.AgInputTextFieldSelector}});var St=p(6209);Object.defineProperty(x,"AgInputTextArea",{enumerable:!0,get:function(){return St.AgInputTextArea}});var ft=p(8792);Object.defineProperty(x,"AgInputNumberField",{enumerable:!0,get:function(){return ft.AgInputNumberField}}),Object.defineProperty(x,"AgInputNumberFieldSelector",{enumerable:!0,get:function(){return ft.AgInputNumberFieldSelector}});var kt=p(3611);Object.defineProperty(x,"AgInputDateField",{enumerable:!0,get:function(){return kt.AgInputDateField}});var Et=p(159);Object.defineProperty(x,"AgSelect",{enumerable:!0,get:function(){return Et.AgSelect}}),Object.defineProperty(x,"AgSelectSelector",{enumerable:!0,get:function(){return Et.AgSelectSelector}});var Yt=p(8020);Object.defineProperty(x,"Component",{enumerable:!0,get:function(){return Yt.Component}});var Tt=p(1772);Object.defineProperty(x,"ManagedFocusFeature",{enumerable:!0,get:function(){return Tt.ManagedFocusFeature}}),Object.defineProperty(x,"_FOCUS_MANAGED_CLASS",{enumerable:!0,get:function(){return Tt.FOCUS_MANAGED_CLASS}});var Ft=p(8332);Object.defineProperty(x,"TabGuardComp",{enumerable:!0,get:function(){return Ft.TabGuardComp}});var Bt=p(6);Object.defineProperty(x,"TabGuardCtrl",{enumerable:!0,get:function(){return Bt.TabGuardCtrl}}),Object.defineProperty(x,"TabGuardClassNames",{enumerable:!0,get:function(){return Bt.TabGuardClassNames}});var Xt=p(1017);Object.defineProperty(x,"TabGuardFeature",{enumerable:!0,get:function(){return Xt.TabGuardFeature}});var ii=p(3598);Object.defineProperty(x,"PopupComponent",{enumerable:!0,get:function(){return ii.PopupComponent}});var Ci=p(9644);Object.defineProperty(x,"TouchListener",{enumerable:!0,get:function(){return Ci.TouchListener}});var _i=p(2747);Object.defineProperty(x,"AgAbstractLabel",{enumerable:!0,get:function(){return _i.AgAbstractLabel}});var yn=p(9497);Object.defineProperty(x,"AgPickerField",{enumerable:!0,get:function(){return yn.AgPickerField}});var Tn=p(5961);Object.defineProperty(x,"CellRangeType",{enumerable:!0,get:function(){return Tn.CellRangeType}});var ma=p(5628);Object.defineProperty(x,"AutoScrollService",{enumerable:!0,get:function(){return ma.AutoScrollService}});var Ho=p(6511);Object.defineProperty(x,"VanillaFrameworkOverrides",{enumerable:!0,get:function(){return Ho.VanillaFrameworkOverrides}});var Ar=p(9853);Object.defineProperty(x,"KeyCode",{enumerable:!0,get:function(){return Ar.KeyCode}});var ll=p(1657);Object.defineProperty(x,"GridCoreCreator",{enumerable:!0,get:function(){return ll.GridCoreCreator}}),Object.defineProperty(x,"createGrid",{enumerable:!0,get:function(){return ll.createGrid}}),Object.defineProperty(x,"provideGlobalGridOptions",{enumerable:!0,get:function(){return ll.provideGlobalGridOptions}}),Object.defineProperty(x,"_getGlobalGridOption",{enumerable:!0,get:function(){return ll._getGlobalGridOption}});var eo=p(6876);Object.defineProperty(x,"_getClientSideRowModel",{enumerable:!0,get:function(){return eo._getClientSideRowModel}}),Object.defineProperty(x,"_getServerSideRowModel",{enumerable:!0,get:function(){return eo._getServerSideRowModel}});var Nr=p(3080);Object.defineProperty(x,"_ALL_EVENTS",{enumerable:!0,get:function(){return Nr._ALL_EVENTS}}),Object.defineProperty(x,"_PUBLIC_EVENTS",{enumerable:!0,get:function(){return Nr._PUBLIC_EVENTS}});var rn=p(7274);Object.defineProperty(x,"_getCallbackForEvent",{enumerable:!0,get:function(){return rn._getCallbackForEvent}}),Object.defineProperty(x,"_combineAttributesAndGridOptions",{enumerable:!0,get:function(){return rn._combineAttributesAndGridOptions}}),Object.defineProperty(x,"_processOnChange",{enumerable:!0,get:function(){return rn._processOnChange}}),Object.defineProperty(x,"_getMaxConcurrentDatasourceRequests",{enumerable:!0,get:function(){return rn._getMaxConcurrentDatasourceRequests}}),Object.defineProperty(x,"_getRowIdCallback",{enumerable:!0,get:function(){return rn._getRowIdCallback}}),Object.defineProperty(x,"_getRowHeightForNode",{enumerable:!0,get:function(){return rn._getRowHeightForNode}}),Object.defineProperty(x,"_isDomLayout",{enumerable:!0,get:function(){return rn._isDomLayout}}),Object.defineProperty(x,"_isAnimateRows",{enumerable:!0,get:function(){return rn._isAnimateRows}}),Object.defineProperty(x,"_getGrandTotalRow",{enumerable:!0,get:function(){return rn._getGrandTotalRow}}),Object.defineProperty(x,"_getGroupTotalRowCallback",{enumerable:!0,get:function(){return rn._getGroupTotalRowCallback}}),Object.defineProperty(x,"_isGroupMultiAutoColumn",{enumerable:!0,get:function(){return rn._isGroupMultiAutoColumn}}),Object.defineProperty(x,"_isColumnsSortingCoupledToGroup",{enumerable:!0,get:function(){return rn._isColumnsSortingCoupledToGroup}}),Object.defineProperty(x,"_isClientSideRowModel",{enumerable:!0,get:function(){return rn._isClientSideRowModel}}),Object.defineProperty(x,"_isServerSideRowModel",{enumerable:!0,get:function(){return rn._isServerSideRowModel}}),Object.defineProperty(x,"_isGroupUseEntireRow",{enumerable:!0,get:function(){return rn._isGroupUseEntireRow}}),Object.defineProperty(x,"_canSkipShowingRowGroup",{enumerable:!0,get:function(){return rn._canSkipShowingRowGroup}}),Object.defineProperty(x,"_getRowHeightAsNumber",{enumerable:!0,get:function(){return rn._getRowHeightAsNumber}}),Object.defineProperty(x,"_shouldUpdateColVisibilityAfterGroup",{enumerable:!0,get:function(){return rn._shouldUpdateColVisibilityAfterGroup}}),Object.defineProperty(x,"_getActiveDomElement",{enumerable:!0,get:function(){return rn._getActiveDomElement}}),Object.defineProperty(x,"_isNothingFocused",{enumerable:!0,get:function(){return rn._isNothingFocused}}),Object.defineProperty(x,"_getDocument",{enumerable:!0,get:function(){return rn._getDocument}}),Object.defineProperty(x,"_getPageBody",{enumerable:!0,get:function(){return rn._getPageBody}}),Object.defineProperty(x,"_anchorElementToMouseMoveEvent",{enumerable:!0,get:function(){return rn._anchorElementToMouseMoveEvent}}),Object.defineProperty(x,"_getRootNode",{enumerable:!0,get:function(){return rn._getRootNode}}),Object.defineProperty(x,"_getGroupAggFiltering",{enumerable:!0,get:function(){return rn._getGroupAggFiltering}}),Object.defineProperty(x,"_isRowSelection",{enumerable:!0,get:function(){return rn._isRowSelection}}),Object.defineProperty(x,"_isGetRowHeightFunction",{enumerable:!0,get:function(){return rn._isGetRowHeightFunction}}),Object.defineProperty(x,"_getGroupSelection",{enumerable:!0,get:function(){return rn._getGroupSelection}}),Object.defineProperty(x,"_getGroupSelectsDescendants",{enumerable:!0,get:function(){return rn._getGroupSelectsDescendants}}),Object.defineProperty(x,"_getIsRowSelectable",{enumerable:!0,get:function(){return rn._getIsRowSelectable}}),Object.defineProperty(x,"_getCheckboxes",{enumerable:!0,get:function(){return rn._getCheckboxes}}),Object.defineProperty(x,"_getCheckboxLocation",{enumerable:!0,get:function(){return rn._getCheckboxLocation}}),Object.defineProperty(x,"_getHeaderCheckbox",{enumerable:!0,get:function(){return rn._getHeaderCheckbox}}),Object.defineProperty(x,"_isMultiRowSelection",{enumerable:!0,get:function(){return rn._isMultiRowSelection}}),Object.defineProperty(x,"_getFillHandle",{enumerable:!0,get:function(){return rn._getFillHandle}}),Object.defineProperty(x,"_isCellSelectionEnabled",{enumerable:!0,get:function(){return rn._isCellSelectionEnabled}}),Object.defineProperty(x,"_getSuppressMultiRanges",{enumerable:!0,get:function(){return rn._getSuppressMultiRanges}}),Object.defineProperty(x,"_getRowSelectionMode",{enumerable:!0,get:function(){return rn._getRowSelectionMode}}),Object.defineProperty(x,"_isLegacyMenuEnabled",{enumerable:!0,get:function(){return rn._isLegacyMenuEnabled}}),Object.defineProperty(x,"_isColumnMenuAnchoringEnabled",{enumerable:!0,get:function(){return rn._isColumnMenuAnchoringEnabled}}),Object.defineProperty(x,"_isUsingNewRowSelectionAPI",{enumerable:!0,get:function(){return rn._isUsingNewRowSelectionAPI}}),Object.defineProperty(x,"_isUsingNewCellSelectionAPI",{enumerable:!0,get:function(){return rn._isUsingNewCellSelectionAPI}}),Object.defineProperty(x,"_isGroupRowsSticky",{enumerable:!0,get:function(){return rn._isGroupRowsSticky}});var Wo=p(5889);Object.defineProperty(x,"LocalEventService",{enumerable:!0,get:function(){return Wo.LocalEventService}});var Mo=p(7600);Object.defineProperty(x,"GridCtrl",{enumerable:!0,get:function(){return Mo.GridCtrl}});var Ps=p(9944);Object.defineProperty(x,"LocaleService",{enumerable:!0,get:function(){return Ps.LocaleService}});var Un=p(7230);Object.defineProperty(x,"_getLocaleTextFunc",{enumerable:!0,get:function(){return Un._getLocaleTextFunc}});var Ls=p(6257);Object.defineProperty(x,"_areCellsEqual",{enumerable:!0,get:function(){return Ls._areCellsEqual}}),Object.defineProperty(x,"_createCellId",{enumerable:!0,get:function(){return Ls._createCellId}}),Object.defineProperty(x,"_isRowBefore",{enumerable:!0,get:function(){return Ls._isRowBefore}}),Object.defineProperty(x,"_isSameRow",{enumerable:!0,get:function(){return Ls._isSameRow}}),Object.defineProperty(x,"_getRowNode",{enumerable:!0,get:function(){return Ls._getRowNode}}),Object.defineProperty(x,"_getCellByPosition",{enumerable:!0,get:function(){return Ls._getCellByPosition}});var la=p(920);Object.defineProperty(x,"_ALL_GRID_OPTIONS",{enumerable:!0,get:function(){return la._ALL_GRID_OPTIONS}}),Object.defineProperty(x,"_BOOLEAN_MIXED_GRID_OPTIONS",{enumerable:!0,get:function(){return la._BOOLEAN_MIXED_GRID_OPTIONS}});var uo=p(8759);Object.defineProperty(x,"BaseComponentWrapper",{enumerable:!0,get:function(){return uo.BaseComponentWrapper}});var ka=p(3386);Object.defineProperty(x,"TooltipFeature",{enumerable:!0,get:function(){return ka.TooltipFeature}}),Object.defineProperty(x,"_shouldDisplayTooltip",{enumerable:!0,get:function(){return ka._shouldDisplayTooltip}}),Object.defineProperty(x,"_getShouldDisplayTooltip",{enumerable:!0,get:function(){return ka._getShouldDisplayTooltip}}),Object.defineProperty(x,"_isShowTooltipWhenTruncated",{enumerable:!0,get:function(){return ka._isShowTooltipWhenTruncated}});var $n=p(5230);Object.defineProperty(x,"_setAriaLevel",{enumerable:!0,get:function(){return $n._setAriaLevel}}),Object.defineProperty(x,"_setAriaLabel",{enumerable:!0,get:function(){return $n._setAriaLabel}}),Object.defineProperty(x,"_setAriaDescribedBy",{enumerable:!0,get:function(){return $n._setAriaDescribedBy}}),Object.defineProperty(x,"_setAriaExpanded",{enumerable:!0,get:function(){return $n._setAriaExpanded}}),Object.defineProperty(x,"_setAriaLabelledBy",{enumerable:!0,get:function(){return $n._setAriaLabelledBy}}),Object.defineProperty(x,"_setAriaChecked",{enumerable:!0,get:function(){return $n._setAriaChecked}}),Object.defineProperty(x,"_setAriaControls",{enumerable:!0,get:function(){return $n._setAriaControls}}),Object.defineProperty(x,"_setAriaRole",{enumerable:!0,get:function(){return $n._setAriaRole}}),Object.defineProperty(x,"_setAriaColIndex",{enumerable:!0,get:function(){return $n._setAriaColIndex}}),Object.defineProperty(x,"_setAriaColSpan",{enumerable:!0,get:function(){return $n._setAriaColSpan}}),Object.defineProperty(x,"_setAriaRowIndex",{enumerable:!0,get:function(){return $n._setAriaRowIndex}}),Object.defineProperty(x,"_setAriaDisabled",{enumerable:!0,get:function(){return $n._setAriaDisabled}}),Object.defineProperty(x,"_removeAriaExpanded",{enumerable:!0,get:function(){return $n._removeAriaExpanded}}),Object.defineProperty(x,"_removeAriaSort",{enumerable:!0,get:function(){return $n._removeAriaSort}}),Object.defineProperty(x,"_setAriaSort",{enumerable:!0,get:function(){return $n._setAriaSort}}),Object.defineProperty(x,"_setAriaColCount",{enumerable:!0,get:function(){return $n._setAriaColCount}}),Object.defineProperty(x,"_setAriaRowCount",{enumerable:!0,get:function(){return $n._setAriaRowCount}}),Object.defineProperty(x,"_setAriaActiveDescendant",{enumerable:!0,get:function(){return $n._setAriaActiveDescendant}}),Object.defineProperty(x,"_setAriaSelected",{enumerable:!0,get:function(){return $n._setAriaSelected}}),Object.defineProperty(x,"_setAriaPosInSet",{enumerable:!0,get:function(){return $n._setAriaPosInSet}}),Object.defineProperty(x,"_setAriaSetSize",{enumerable:!0,get:function(){return $n._setAriaSetSize}}),Object.defineProperty(x,"_setAriaHidden",{enumerable:!0,get:function(){return $n._setAriaHidden}}),Object.defineProperty(x,"_getAriaPosInSet",{enumerable:!0,get:function(){return $n._getAriaPosInSet}});var to=p(1502);Object.defineProperty(x,"_EmptyArray",{enumerable:!0,get:function(){return to._EmptyArray}}),Object.defineProperty(x,"_removeFromArray",{enumerable:!0,get:function(){return to._removeFromArray}}),Object.defineProperty(x,"_last",{enumerable:!0,get:function(){return to._last}}),Object.defineProperty(x,"_areEqual",{enumerable:!0,get:function(){return to._areEqual}});var $t=p(8667);Object.defineProperty(x,"_isIOSUserAgent",{enumerable:!0,get:function(){return $t._isIOSUserAgent}});var nn=p(6800);Object.defineProperty(x,"ChangedPath",{enumerable:!0,get:function(){return nn.ChangedPath}});var bn=p(9827);Object.defineProperty(x,"_serialiseDate",{enumerable:!0,get:function(){return bn._serialiseDate}}),Object.defineProperty(x,"_parseDateTimeFromString",{enumerable:!0,get:function(){return bn._parseDateTimeFromString}});var zi=p(3507);Object.defineProperty(x,"_getAbsoluteHeight",{enumerable:!0,get:function(){return zi._getAbsoluteHeight}}),Object.defineProperty(x,"_getAbsoluteWidth",{enumerable:!0,get:function(){return zi._getAbsoluteWidth}}),Object.defineProperty(x,"_setDisplayed",{enumerable:!0,get:function(){return zi._setDisplayed}}),Object.defineProperty(x,"_clearElement",{enumerable:!0,get:function(){return zi._clearElement}}),Object.defineProperty(x,"_removeFromParent",{enumerable:!0,get:function(){return zi._removeFromParent}}),Object.defineProperty(x,"_radioCssClass",{enumerable:!0,get:function(){return zi._radioCssClass}}),Object.defineProperty(x,"_loadTemplate",{enumerable:!0,get:function(){return zi._loadTemplate}}),Object.defineProperty(x,"_isVisible",{enumerable:!0,get:function(){return zi._isVisible}}),Object.defineProperty(x,"_setFixedWidth",{enumerable:!0,get:function(){return zi._setFixedWidth}}),Object.defineProperty(x,"_setDisabled",{enumerable:!0,get:function(){return zi._setDisabled}}),Object.defineProperty(x,"_setVisible",{enumerable:!0,get:function(){return zi._setVisible}}),Object.defineProperty(x,"_bindCellRendererToHtmlElement",{enumerable:!0,get:function(){return zi._bindCellRendererToHtmlElement}}),Object.defineProperty(x,"_getInnerHeight",{enumerable:!0,get:function(){return zi._getInnerHeight}}),Object.defineProperty(x,"_getInnerWidth",{enumerable:!0,get:function(){return zi._getInnerWidth}}),Object.defineProperty(x,"_isNodeOrElement",{enumerable:!0,get:function(){return zi._isNodeOrElement}}),Object.defineProperty(x,"_observeResize",{enumerable:!0,get:function(){return zi._observeResize}});var En=p(2979);Object.defineProperty(x,"_stopPropagationForAgGrid",{enumerable:!0,get:function(){return En._stopPropagationForAgGrid}}),Object.defineProperty(x,"_isStopPropagationForAgGrid",{enumerable:!0,get:function(){return En._isStopPropagationForAgGrid}}),Object.defineProperty(x,"_isElementInEventPath",{enumerable:!0,get:function(){return En._isElementInEventPath}});var Yn=p(2043);Object.defineProperty(x,"_warnOnce",{enumerable:!0,get:function(){return Yn._warnOnce}}),Object.defineProperty(x,"_debounce",{enumerable:!0,get:function(){return Yn._debounce}}),Object.defineProperty(x,"_doOnce",{enumerable:!0,get:function(){return Yn._doOnce}}),Object.defineProperty(x,"_waitUntil",{enumerable:!0,get:function(){return Yn._waitUntil}});var Ke=p(7764);Object.defineProperty(x,"_warn",{enumerable:!0,get:function(){return Ke._warn}}),Object.defineProperty(x,"_error",{enumerable:!0,get:function(){return Ke._error}}),Object.defineProperty(x,"_errMsg",{enumerable:!0,get:function(){return Ke._errMsg}}),Object.defineProperty(x,"_preInitErrMsg",{enumerable:!0,get:function(){return Ke._preInitErrMsg}});var pt=p(9970);Object.defineProperty(x,"_createIcon",{enumerable:!0,get:function(){return pt._createIcon}}),Object.defineProperty(x,"_createIconNoSpan",{enumerable:!0,get:function(){return pt._createIconNoSpan}});var ct=p(1298);Object.defineProperty(x,"_fuzzySuggestions",{enumerable:!0,get:function(){return ct._fuzzySuggestions}});var ht=p(4422);Object.defineProperty(x,"_exists",{enumerable:!0,get:function(){return ht._exists}}),Object.defineProperty(x,"_missing",{enumerable:!0,get:function(){return ht._missing}}),Object.defineProperty(x,"_jsonEquals",{enumerable:!0,get:function(){return ht._jsonEquals}}),Object.defineProperty(x,"_toStringOrNull",{enumerable:!0,get:function(){return ht._toStringOrNull}}),Object.defineProperty(x,"_makeNull",{enumerable:!0,get:function(){return ht._makeNull}}),Object.defineProperty(x,"_defaultComparator",{enumerable:!0,get:function(){return ht._defaultComparator}});var Gt=p(6466);Object.defineProperty(x,"_isEventFromPrintableCharacter",{enumerable:!0,get:function(){return Gt._isEventFromPrintableCharacter}});var _t=p(7698);Object.defineProperty(x,"_formatNumberCommas",{enumerable:!0,get:function(){return _t._formatNumberCommas}});var ni=p(6996);Object.defineProperty(x,"_mergeDeep",{enumerable:!0,get:function(){return ni._mergeDeep}});var Bi=p(7766);Object.defineProperty(x,"_escapeString",{enumerable:!0,get:function(){return Bi._escapeString}});var xi=p(7990);Object.defineProperty(x,"AgPromise",{enumerable:!0,get:function(){return xi.AgPromise}}),Object.defineProperty(x,"_isPromise",{enumerable:!0,get:function(){return xi._isPromise}});var Ti=p(2331);Object.defineProperty(x,"_addFocusableContainerListener",{enumerable:!0,get:function(){return Ti._addFocusableContainerListener}}),Object.defineProperty(x,"_findFocusableElements",{enumerable:!0,get:function(){return Ti._findFocusableElements}}),Object.defineProperty(x,"_focusInto",{enumerable:!0,get:function(){return Ti._focusInto}}),Object.defineProperty(x,"_findNextFocusableElement",{enumerable:!0,get:function(){return Ti._findNextFocusableElement}}),Object.defineProperty(x,"_findTabbableParent",{enumerable:!0,get:function(){return Ti._findTabbableParent}}),Object.defineProperty(x,"_focusGridInnerElement",{enumerable:!0,get:function(){return Ti._focusGridInnerElement}}),Object.defineProperty(x,"_isKeyboardMode",{enumerable:!0,get:function(){return Ti._isKeyboardMode}}),Object.defineProperty(x,"_focusNextGridCoreContainer",{enumerable:!0,get:function(){return Ti._focusNextGridCoreContainer}}),M.__exportStar(p(7419),x),M.__exportStar(p(7919),x);var Oi=p(7331);Object.defineProperty(x,"BaseCreator",{enumerable:!0,get:function(){return Oi.BaseCreator}});var xn=p(8376);Object.defineProperty(x,"BaseGridSerializingSession",{enumerable:!0,get:function(){return xn.BaseGridSerializingSession}});var an=p(3885);Object.defineProperty(x,"_downloadFile",{enumerable:!0,get:function(){return an._downloadFile}});var Cn=p(2132);Object.defineProperty(x,"ModuleRegistry",{enumerable:!0,get:function(){return Cn.ModuleRegistry}}),Object.defineProperty(x,"_getGridRegisteredModules",{enumerable:!0,get:function(){return Cn._getGridRegisteredModules}});var Wi=p(5010);Object.defineProperty(x,"ValidationModule",{enumerable:!0,get:function(){return Wi.ValidationModule}});var ko=p(4074);Object.defineProperty(x,"_ColumnMoveModule",{enumerable:!0,get:function(){return ko.ColumnMoveModule}});var xc=p(4388);Object.defineProperty(x,"_DragModule",{enumerable:!0,get:function(){return xc.DragModule}}),Object.defineProperty(x,"_HorizontalResizeModule",{enumerable:!0,get:function(){return xc.HorizontalResizeModule}}),Object.defineProperty(x,"_SharedDragAndDropModule",{enumerable:!0,get:function(){return xc.SharedDragAndDropModule}}),Object.defineProperty(x,"DragAndDropModule",{enumerable:!0,get:function(){return xc.DragAndDropModule}}),Object.defineProperty(x,"RowDragModule",{enumerable:!0,get:function(){return xc.RowDragModule}});var Os=p(5432);Object.defineProperty(x,"_ColumnFilterModule",{enumerable:!0,get:function(){return Os.ColumnFilterModule}}),Object.defineProperty(x,"_FilterCoreModule",{enumerable:!0,get:function(){return Os.FilterCoreModule}}),Object.defineProperty(x,"_FilterValueModule",{enumerable:!0,get:function(){return Os.FilterValueModule}}),Object.defineProperty(x,"CustomFilterModule",{enumerable:!0,get:function(){return Os.CustomFilterModule}}),Object.defineProperty(x,"QuickFilterModule",{enumerable:!0,get:function(){return Os.QuickFilterModule}}),Object.defineProperty(x,"TextFilterModule",{enumerable:!0,get:function(){return Os.TextFilterModule}}),Object.defineProperty(x,"NumberFilterModule",{enumerable:!0,get:function(){return Os.NumberFilterModule}}),Object.defineProperty(x,"DateFilterModule",{enumerable:!0,get:function(){return Os.DateFilterModule}}),Object.defineProperty(x,"ExternalFilterModule",{enumerable:!0,get:function(){return Os.ExternalFilterModule}});var pr=p(4652);Object.defineProperty(x,"_EditCoreModule",{enumerable:!0,get:function(){return pr.EditCoreModule}}),Object.defineProperty(x,"NumberEditorModule",{enumerable:!0,get:function(){return pr.NumberEditorModule}}),Object.defineProperty(x,"DateEditorModule",{enumerable:!0,get:function(){return pr.DateEditorModule}}),Object.defineProperty(x,"CheckboxEditorModule",{enumerable:!0,get:function(){return pr.CheckboxEditorModule}}),Object.defineProperty(x,"TextEditorModule",{enumerable:!0,get:function(){return pr.TextEditorModule}}),Object.defineProperty(x,"LargeTextEditorModule",{enumerable:!0,get:function(){return pr.LargeTextEditorModule}}),Object.defineProperty(x,"SelectEditorModule",{enumerable:!0,get:function(){return pr.SelectEditorModule}}),Object.defineProperty(x,"UndoRedoEditModule",{enumerable:!0,get:function(){return pr.UndoRedoEditModule}}),Object.defineProperty(x,"CustomEditorModule",{enumerable:!0,get:function(){return pr.CustomEditorModule}});var $r=p(3352);Object.defineProperty(x,"RowSelectionModule",{enumerable:!0,get:function(){return $r.RowSelectionModule}}),Object.defineProperty(x,"_SharedRowSelectionModule",{enumerable:!0,get:function(){return $r.SharedRowSelectionModule}});var Qh=p(6437);Object.defineProperty(x,"_CsrmSsrmSharedApiModule",{enumerable:!0,get:function(){return Qh.CsrmSsrmSharedApiModule}}),Object.defineProperty(x,"_SsrmInfiniteSharedApiModule",{enumerable:!0,get:function(){return Qh.SsrmInfiniteSharedApiModule}});var Lo=p(3472);Object.defineProperty(x,"_SharedMenuModule",{enumerable:!0,get:function(){return Lo.SharedMenuModule}});var Qr=p(6620);Object.defineProperty(x,"_SortModule",{enumerable:!0,get:function(){return Qr.SortModule}});var cl=p(2074);Object.defineProperty(x,"AlignedGridsModule",{enumerable:!0,get:function(){return cl.AlignedGridsModule}});var Ai=p(9722);Object.defineProperty(x,"ClientSideRowModelModule",{enumerable:!0,get:function(){return Ai.ClientSideRowModelModule}}),Object.defineProperty(x,"ClientSideRowModelApiModule",{enumerable:!0,get:function(){return Ai.ClientSideRowModelApiModule}});var Qn=p(9734);Object.defineProperty(x,"CsvExportModule",{enumerable:!0,get:function(){return Qn.CsvExportModule}});var Oo=p(4002);Object.defineProperty(x,"InfiniteRowModelModule",{enumerable:!0,get:function(){return Oo.InfiniteRowModelModule}});var Id=p(3137);Object.defineProperty(x,"_PopupModule",{enumerable:!0,get:function(){return Id.PopupModule}});var Td=p(928);Object.defineProperty(x,"_KeyboardNavigationModule",{enumerable:!0,get:function(){return Td.KeyboardNavigationModule}});var Jh=p(3498);Object.defineProperty(x,"HighlightChangesModule",{enumerable:!0,get:function(){return Jh.HighlightChangesModule}});var Mc=p(6041);Object.defineProperty(x,"_ColumnGroupModule",{enumerable:!0,get:function(){return Mc.ColumnGroupModule}});var kc=p(6989);Object.defineProperty(x,"GridStateModule",{enumerable:!0,get:function(){return kc.GridStateModule}});var _s=p(2027);Object.defineProperty(x,"ColumnApiModule",{enumerable:!0,get:function(){return _s.ColumnApiModule}});var Jr=p(1824);Object.defineProperty(x,"PaginationModule",{enumerable:!0,get:function(){return Jr.PaginationModule}});var Vl=p(9642);Object.defineProperty(x,"RowApiModule",{enumerable:!0,get:function(){return Vl.RowApiModule}}),Object.defineProperty(x,"ScrollApiModule",{enumerable:!0,get:function(){return Vl.ScrollApiModule}});var Oy=p(6964);Object.defineProperty(x,"RenderApiModule",{enumerable:!0,get:function(){return Oy.RenderApiModule}});var qC=p(3856);Object.defineProperty(x,"ColumnAutoSizeModule",{enumerable:!0,get:function(){return qC.ColumnAutoSizeModule}});var $f=p(5423);Object.defineProperty(x,"PinnedRowModule",{enumerable:!0,get:function(){return $f.PinnedRowModule}});var zr=p(6431);Object.defineProperty(x,"ValueCacheModule",{enumerable:!0,get:function(){return zr.ValueCacheModule}}),Object.defineProperty(x,"CellApiModule",{enumerable:!0,get:function(){return zr.CellApiModule}});var _y=p(8594);Object.defineProperty(x,"CellStyleModule",{enumerable:!0,get:function(){return _y.CellStyleModule}}),Object.defineProperty(x,"RowStyleModule",{enumerable:!0,get:function(){return _y.RowStyleModule}});var Fs=p(1690);Object.defineProperty(x,"ColumnHoverModule",{enumerable:!0,get:function(){return Fs.ColumnHoverModule}});var yi=p(9410);Object.defineProperty(x,"EventApiModule",{enumerable:!0,get:function(){return yi.EventApiModule}});var Rd=p(4658);Object.defineProperty(x,"TooltipModule",{enumerable:!0,get:function(){return Rd.TooltipModule}});var ix=p(9519);Object.defineProperty(x,"LocaleModule",{enumerable:!0,get:function(){return ix.LocaleModule}});var Fy=p(4577);Object.defineProperty(x,"RowAutoHeightModule",{enumerable:!0,get:function(){return Fy.RowAutoHeightModule}});var sp=p(2728);Object.defineProperty(x,"_SharedExportModule",{enumerable:!0,get:function(){return sp.SharedExportModule}});var YC=p(1621);Object.defineProperty(x,"AllCommunityModule",{enumerable:!0,get:function(){return YC.AllCommunityModule}}),M.__exportStar(p(7968),x);var bm=p(6607);Object.defineProperty(x,"createPart",{enumerable:!0,get:function(){return bm.createPart}});var Ny=p(9621);Object.defineProperty(x,"createTheme",{enumerable:!0,get:function(){return Ny.createTheme}}),Object.defineProperty(x,"_asThemeImpl",{enumerable:!0,get:function(){return Ny._asThemeImpl}}),M.__exportStar(p(8265),x),M.__exportStar(p(8689),x),M.__exportStar(p(6407),x),M.__exportStar(p(7161),x),M.__exportStar(p(5117),x),M.__exportStar(p(2525),x)},6392:function(ne,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.AnimationFrameModule=void 0;let M=p(7205),A=p(2612);x.AnimationFrameModule={moduleName:"AnimationFrame",version:M.VERSION,beans:[A.AnimationFrameService]}},2612:function(ne,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.AnimationFrameService=x._requestAnimationFrame=void 0;let M=p(8731),A=p(7274),F=p(7764);function D(v,u){let s=(0,A._getWindow)(v);s.requestAnimationFrame?s.requestAnimationFrame(u):s.webkitRequestAnimationFrame?s.webkitRequestAnimationFrame(u):s.setTimeout(u,0)}x._requestAnimationFrame=D;class f extends M.BeanStub{constructor(){super(...arguments),this.beanName="animationFrameSvc",this.createTasksP1={list:[],sorted:!1},this.createTasksP2={list:[],sorted:!1},this.destroyTasks=[],this.ticking=!1,this.scrollGoingDown=!0,this.lastPage=0,this.lastScrollTop=0,this.taskCount=0,this.cancelledTasks=new Set}setScrollTop(u){var g;let{gos:s,pagination:r}=this.beans,d=s.get("pagination");if(this.scrollGoingDown=u>=this.lastScrollTop,d&&u===0){let m=(g=r==null?void 0:r.getCurrentPage())!=null?g:0;m!==this.lastPage&&(this.lastPage=m,this.scrollGoingDown=!0)}this.lastScrollTop=u}postConstruct(){this.active=!this.gos.get("suppressAnimationFrame")}verifyAnimationFrameOn(u){this.active===!1&&(0,F._warn)(92,{methodName:u})}createTask(u,s,r){this.verifyAnimationFrameOn(r);let d={task:u,index:s,createOrder:++this.taskCount};this.addTaskToList(this[r],d),this.schedule()}cancelTask(u){this.cancelledTasks.add(u)}addTaskToList(u,s){u.list.push(s),u.sorted=!1}sortTaskList(u){if(u.sorted)return;let s=this.scrollGoingDown?1:-1;u.list.sort((r,d)=>r.index!==d.index?s*(d.index-r.index):d.createOrder-r.createOrder),u.sorted=!0}addDestroyTask(u){this.verifyAnimationFrameOn("createTasksP3"),this.destroyTasks.push(u),this.schedule()}executeFrame(u){this.verifyAnimationFrameOn("executeFrame");let s=this.createTasksP1,r=s.list,d=this.createTasksP2,g=d.list,m=this.destroyTasks,b=new Date().getTime(),w=new Date().getTime()-b,k=u<=0,R=this.beans.ctrlsSvc.getScrollFeature();for(;k||w<u;){if(!R.scrollGridIfNeeded()){let T;if(r.length)this.sortTaskList(s),T=r.pop().task;else if(g.length)this.sortTaskList(d),T=g.pop().task;else{if(!m.length){this.cancelledTasks.clear();break}T=m.pop()}this.cancelledTasks.has(T)||T()}w=new Date().getTime()-b}r.length||g.length||m.length?this.requestFrame():this.ticking=!1}flushAllFrames(){this.active&&this.executeFrame(-1)}schedule(){this.active&&(this.ticking||(this.ticking=!0,this.requestFrame()))}requestFrame(){let u=this.executeFrame.bind(this,60);D(this.beans,u)}isQueueEmpty(){return!this.ticking}}x.AnimationFrameService=f},9410:function(ne,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.EventApiModule=void 0;let M=p(7205),A=p(6107),F=p(6470);x.EventApiModule={moduleName:"EventApi",version:M.VERSION,apiFunctions:{addEventListener:F.addEventListener,addGlobalListener:F.addGlobalListener,removeEventListener:F.removeEventListener,removeGlobalListener:F.removeGlobalListener},beans:[A.ApiEventService]}},6107:function(ne,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.ApiEventService=void 0;let M=p(8731),A=p(7968);class F extends M.BeanStub{constructor(){super(...arguments),this.beanName="apiEventSvc",this.syncListeners=new Map,this.asyncListeners=new Map,this.syncGlobalListeners=new Set,this.globalListenerPairs=new Map}postConstruct(){var f,v;this.wrapSvc=(v=(f=this.beans.frameworkOverrides).createGlobalEventListenerWrapper)==null?void 0:v.call(f)}addEventListener(f,v){var d,g;let u=(g=(d=this.wrapSvc)==null?void 0:d.wrap(v))!=null?g:v,s=!A.ALWAYS_SYNC_GLOBAL_EVENTS.has(f),r=s?this.asyncListeners:this.syncListeners;r.has(f)||r.set(f,new Set),r.get(f).add(u),this.eventSvc.addEventListener(f,u,s)}removeEventListener(f,v){var d,g,m;let u=(g=(d=this.wrapSvc)==null?void 0:d.unwrap(v))!=null?g:v,s=this.asyncListeners.get(f),r=!!(s!=null&&s.delete(u));r||((m=this.syncListeners.get(f))==null||m.delete(u)),this.eventSvc.removeEventListener(f,u,r)}addGlobalListener(f){var d,g;let v=(g=(d=this.wrapSvc)==null?void 0:d.wrapGlobal(f))!=null?g:f,u=(m,b)=>{A.ALWAYS_SYNC_GLOBAL_EVENTS.has(m)&&v(m,b)},s=(m,b)=>{A.ALWAYS_SYNC_GLOBAL_EVENTS.has(m)||v(m,b)};this.globalListenerPairs.set(f,{syncListener:u,asyncListener:s});let r=this.eventSvc;r.addGlobalListener(u,!1),r.addGlobalListener(s,!0)}removeGlobalListener(f){var d;let{eventSvc:v,wrapSvc:u,globalListenerPairs:s}=this,r=(d=u==null?void 0:u.unwrapGlobal(f))!=null?d:f;if(s.has(r)){let{syncListener:g,asyncListener:m}=s.get(r);v.removeGlobalListener(g,!1),v.removeGlobalListener(m,!0),s.delete(f)}else this.syncGlobalListeners.delete(r),v.removeGlobalListener(r,!1)}destroyEventListeners(f,v){f.forEach((u,s)=>{u.forEach(r=>this.eventSvc.removeEventListener(s,r,v)),u.clear()}),f.clear()}destroyGlobalListeners(f,v){f.forEach(u=>this.eventSvc.removeGlobalListener(u,v)),f.clear()}destroy(){super.destroy(),this.destroyEventListeners(this.syncListeners,!1),this.destroyEventListeners(this.asyncListeners,!0),this.destroyGlobalListeners(this.syncGlobalListeners,!1);let{globalListenerPairs:f,eventSvc:v}=this;f.forEach(({syncListener:u,asyncListener:s})=>{v.removeGlobalListener(u,!1),v.removeGlobalListener(s,!0)}),f.clear()}}x.ApiEventService=F},6470:function(ne,x){Object.defineProperty(x,"__esModule",{value:!0}),x.removeGlobalListener=x.addGlobalListener=x.removeEventListener=x.addEventListener=void 0,x.addEventListener=function(p,M,A){var F;(F=p.apiEventSvc)==null||F.addEventListener(M,A)},x.removeEventListener=function(p,M,A){var F;(F=p.apiEventSvc)==null||F.removeEventListener(M,A)},x.addGlobalListener=function(p,M){var A;(A=p.apiEventSvc)==null||A.addGlobalListener(M)},x.removeGlobalListener=function(p,M){var A;(A=p.apiEventSvc)==null||A.removeGlobalListener(M)}},9519:function(ne,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.LocaleModule=void 0;let M=p(7205),A=p(9944);x.LocaleModule={moduleName:"Locale",version:M.VERSION,beans:[A.LocaleService]}},9944:function(ne,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.LocaleService=void 0;let M=p(8731);class A extends M.BeanStub{constructor(){super(...arguments),this.beanName="localeSvc"}getLocaleTextFunc(){let D=this.gos,f=D.getCallback("getLocaleText");if(f)return(u,s,r)=>f({key:u,defaultValue:s,variableValues:r});let v=D.get("localeText");return(u,s,r)=>{let d=v&&v[u];if(d&&r&&r.length){let g=0;for(;!(g>=r.length)&&d.indexOf("${variable}")!==-1;)d=d.replace("${variable}",r[g++])}return d!=null?d:s}}}x.LocaleService=A},7230:function(ne,x){function p(M,A){return A}Object.defineProperty(x,"__esModule",{value:!0}),x._getLocaleTextFunc=void 0,x._getLocaleTextFunc=function(M){var A;return(A=M==null?void 0:M.getLocaleTextFunc())!=null?A:p}},297:function(ne,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.hidePopupMenu=x.showColumnMenu=void 0;let M=p(7764);x.showColumnMenu=function(A,F){var f;let D=A.colModel.getCol(F);D?(f=A.menuSvc)==null||f.showColumnMenu({column:D,positionBy:"auto"}):(0,M._error)(12,{colKey:F})},x.hidePopupMenu=function(A){var F;(F=A.menuSvc)==null||F.hidePopupMenu()}},8994:function(ne,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x._setColMenuVisible=x.MenuService=void 0;let M=p(8731),A=p(3355),F=p(7274),D=p(8667),f=p(2612);class v extends M.BeanStub{constructor(){super(...arguments),this.beanName="menuSvc"}postConstruct(){let{enterpriseMenuFactory:s,filterMenuFactory:r}=this.beans;this.activeMenuFactory=s!=null?s:r}showColumnMenu(s){this.showColumnMenuCommon(this.activeMenuFactory,s,"columnMenu")}showFilterMenu(s){let{enterpriseMenuFactory:r,filterMenuFactory:d}=this.beans,g=r&&(0,F._isLegacyMenuEnabled)(this.gos)?r:d;this.showColumnMenuCommon(g,s,s.containerType,!0)}showHeaderContextMenu(s,r,d){var g;(g=this.activeMenuFactory)==null||g.showMenuAfterContextMenuEvent(s,r,d)}hidePopupMenu(){var s,r;(s=this.beans.contextMenuSvc)==null||s.hideActiveMenu(),(r=this.activeMenuFactory)==null||r.hideActiveMenu()}isColumnMenuInHeaderEnabled(s){var d;let{suppressHeaderMenuButton:r}=s.getColDef();return!r&&!!((d=this.activeMenuFactory)!=null&&d.isMenuEnabled(s))&&((0,F._isLegacyMenuEnabled)(this.gos)||!!this.beans.enterpriseMenuFactory)}isFilterMenuInHeaderEnabled(s){var r;return!s.getColDef().suppressHeaderFilterButton&&!!((r=this.beans.filterManager)!=null&&r.isFilterAllowed(s))}isHeaderContextMenuEnabled(s){let r=s&&(0,A.isColumn)(s)?s.getColDef():s==null?void 0:s.getColGroupDef();return!(r!=null&&r.suppressHeaderContextMenu)&&this.gos.get("columnMenu")==="new"}isHeaderMenuButtonAlwaysShowEnabled(){return this.isSuppressMenuHide()}isHeaderMenuButtonEnabled(){let s=!this.isSuppressMenuHide();return!((0,D._isIOSUserAgent)()&&s)}isHeaderFilterButtonEnabled(s){return this.isFilterMenuInHeaderEnabled(s)&&!(0,F._isLegacyMenuEnabled)(this.gos)&&!this.isFloatingFilterButtonDisplayed(s)}isFilterMenuItemEnabled(s){var r;return!(!((r=this.beans.filterManager)!=null&&r.isFilterAllowed(s))||(0,F._isLegacyMenuEnabled)(this.gos)||this.isFilterMenuInHeaderEnabled(s)||this.isFloatingFilterButtonDisplayed(s))}isFloatingFilterButtonEnabled(s){return!s.getColDef().suppressFloatingFilterButton}isFloatingFilterButtonDisplayed(s){return!!s.getColDef().floatingFilter&&this.isFloatingFilterButtonEnabled(s)}isSuppressMenuHide(){let s=this.gos,r=s.get("suppressMenuHide");return(0,F._isLegacyMenuEnabled)(s)?!!s.exists("suppressMenuHide")&&r:r}showColumnMenuCommon(s,r,d,g){let{positionBy:m}=r,b=r.column;if(m==="button"){let{buttonElement:w}=r;s==null||s.showMenuAfterButtonClick(b,w,d,g)}else if(m==="mouse"){let{mouseEvent:w}=r;s==null||s.showMenuAfterMouseEvent(b,w,d,g)}else if(b){let w=this.beans,k=w.ctrlsSvc;k.getScrollFeature().ensureColumnVisible(b,"auto"),(0,f._requestAnimationFrame)(w,()=>{var T;let R=(T=k.getHeaderRowContainerCtrl(b.getPinned()))==null?void 0:T.getHeaderCtrlForColumn(b);R&&(s==null||s.showMenuAfterButtonClick(b,R.getAnchorElementForMenu(g),d,!0))})}}}x.MenuService=v,x._setColMenuVisible=function(u,s,r){u.menuVisible!==s&&(u.menuVisible=s,u.dispatchColEvent("menuVisibleChanged",r))}},3472:function(ne,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.SharedMenuModule=void 0;let M=p(7205),A=p(297),F=p(8994);x.SharedMenuModule={moduleName:"SharedMenu",version:M.VERSION,beans:[F.MenuService],apiFunctions:{showColumnMenu:A.showColumnMenu,hidePopupMenu:A.hidePopupMenu}}},1997:function(ne,x){Object.defineProperty(x,"__esModule",{value:!0}),x.getState=void 0,x.getState=function(p){var M,A;return(A=(M=p.stateSvc)==null?void 0:M.getState())!=null?A:{}}},6414:function(ne,x){Object.defineProperty(x,"__esModule",{value:!0}),x.migrateGridStateModel=void 0,x.migrateGridStateModel=function(p){return(p=pe({},p)).version||(p.version="32.1.0"),p.version==="32.1.0"&&(p=function(M){return M.cellSelection=function(A,F){if(A&&typeof A=="object")return A[F]}(M,"rangeSelection"),M}(p)),p}},6989:function(ne,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.GridStateModule=void 0;let M=p(7205),A=p(1997),F=p(3374);x.GridStateModule={moduleName:"GridState",version:M.VERSION,beans:[F.StateService],apiFunctions:{getState:A.getState}}},3374:function(ne,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.StateService=void 0;let M=p(5266),A=p(8731),F=p(7274),D=p(2043),f=p(4422),v=p(7205),u=p(6414);class s extends A.BeanStub{constructor(){super(...arguments),this.beanName="stateSvc",this.updateRowGroupExpansionStateTimer=0,this.suppressEvents=!0,this.queuedUpdateSources=new Set,this.dispatchStateUpdateEventDebounced=(0,D._debounce)(this,()=>this.dispatchQueuedStateUpdateEvents(),0),this.onRowGroupOpenedDebounced=(0,D._debounce)(this,()=>{this.updateCachedState("rowGroupExpansion",this.getRowGroupExpansionState())},0),this.onRowSelectedDebounced=(0,D._debounce)(this,()=>{this.staleStateKeys.delete("rowSelection"),this.updateCachedState("rowSelection",this.getRowSelectionState())},0),this.staleStateKeys=new Set}postConstruct(){this.isClientSideRowModel=(0,F._isClientSideRowModel)(this.gos),this.cachedState=this.getInitialState(),this.setCachedStateValue("version",v.VERSION);let d=this.suppressEventsAndDispatchInitEvent.bind(this);this.beans.ctrlsSvc.whenReady(this,()=>d(()=>this.setupStateOnGridReady()));let[g,m,b]=this.addManagedEventListeners({newColumnsLoaded:({source:w})=>{w==="gridInitializing"&&(g(),d(()=>this.setupStateOnColumnsInitialised()))},rowCountReady:()=>{m==null||m(),d(()=>this.setupStateOnRowCountReady())},firstDataRendered:()=>{b==null||b(),d(()=>this.setupStateOnFirstDataRendered())}})}destroy(){super.destroy(),clearTimeout(this.updateRowGroupExpansionStateTimer),this.queuedUpdateSources.clear()}getInitialState(){var d;return(0,u.migrateGridStateModel)((d=this.gos.get("initialState"))!=null?d:{})}getState(){return this.staleStateKeys.size&&this.refreshStaleState(),this.cachedState}setupStateOnGridReady(){let d=()=>this.updateCachedState("sideBar",this.getSideBarState());d(),this.addManagedEventListeners({toolPanelVisibleChanged:d,sideBarUpdated:d})}setupStateOnColumnsInitialised(){let d=this.getInitialState();this.setColumnState(d),this.setColumnGroupState(d),this.updateColumnState(["aggregation","columnOrder","columnPinning","columnSizing","columnVisibility","pivot","pivot","rowGroup","sort"]),this.updateCachedState("columnGroup",this.getColumnGroupState());let g=m=>()=>this.updateColumnState([m]);this.addManagedEventListeners({columnValueChanged:g("aggregation"),columnMoved:g("columnOrder"),columnPinned:g("columnPinning"),columnResized:g("columnSizing"),columnVisible:g("columnVisibility"),columnPivotChanged:g("pivot"),columnPivotModeChanged:g("pivot"),columnRowGroupChanged:g("rowGroup"),sortChanged:g("sort"),newColumnsLoaded:()=>this.updateColumnState(["aggregation","columnOrder","columnPinning","columnSizing","columnVisibility","pivot","rowGroup","sort"]),columnGroupOpened:()=>this.updateCachedState("columnGroup",this.getColumnGroupState())})}setupStateOnRowCountReady(){let{filter:d,rowGroupExpansion:g,rowSelection:m,pagination:b}=this.getInitialState();d&&this.setFilterState(d),g&&this.setRowGroupExpansionState(g),m&&this.setRowSelectionState(m),b&&this.setPaginationState(b);let w=this.updateCachedState.bind(this);w("filter",this.getFilterState()),w("rowGroupExpansion",this.getRowGroupExpansionState()),w("rowSelection",this.getRowSelectionState()),w("pagination",this.getPaginationState());let k=()=>{this.updateRowGroupExpansionStateTimer=0,w("rowGroupExpansion",this.getRowGroupExpansionState())};this.addManagedEventListeners({filterChanged:()=>w("filter",this.getFilterState()),rowGroupOpened:()=>this.onRowGroupOpenedDebounced(),expandOrCollapseAll:k,columnRowGroupChanged:k,rowDataUpdated:()=>{this.gos.get("groupDefaultExpanded")!==0&&(this.updateRowGroupExpansionStateTimer||(this.updateRowGroupExpansionStateTimer=setTimeout(k)))},selectionChanged:()=>{this.staleStateKeys.add("rowSelection"),this.onRowSelectedDebounced()},paginationChanged:R=>{(R.newPage||R.newPageSize)&&w("pagination",this.getPaginationState())}})}setupStateOnFirstDataRendered(){let{scroll:d,cellSelection:g,focusedCell:m,columnOrder:b}=this.getInitialState();m&&this.setFocusedCellState(m),g&&this.setCellSelectionState(g),d&&this.setScrollState(d),this.setColumnPivotState(!!(b!=null&&b.orderedColIds));let w=this.updateCachedState.bind(this);w("sideBar",this.getSideBarState()),w("focusedCell",this.getFocusedCellState());let k=this.getRangeSelectionState();w("rangeSelection",k),w("cellSelection",k),w("scroll",this.getScrollState()),this.addManagedEventListeners({cellFocused:()=>w("focusedCell",this.getFocusedCellState()),cellSelectionChanged:R=>{if(R.finished){let T=this.getRangeSelectionState();w("rangeSelection",T),w("cellSelection",T)}},bodyScrollEnd:()=>w("scroll",this.getScrollState())})}getColumnState(){let d=this.beans,g=d.colModel.isPivotMode(),m=[],b=[],w=[],k=[],R=[],T=[],z=[],G=[],U=[],X=0,Q=(0,M._getColumnState)(d);for(let oe=0;oe<Q.length;oe++){let{colId:le,sort:fe,sortIndex:ye,rowGroup:ke,rowGroupIndex:Ie,aggFunc:ze,pivot:Ye,pivotIndex:xe,pinned:Te,hide:Ae,width:Ne,flex:Re}=Q[oe];U.push(le),fe&&(m[ye!=null?ye:X++]={colId:le,sort:fe}),ke&&(b[Ie!=null?Ie:0]=le),typeof ze=="string"&&w.push({colId:le,aggFunc:ze}),Ye&&(k[xe!=null?xe:0]=le),Te&&(Te==="right"?T:R).push(le),Ae&&z.push(le),(Re||Ne)&&G.push({colId:le,flex:Re!=null?Re:void 0,width:Ne})}return{sort:m.length?{sortModel:m}:void 0,rowGroup:b.length?{groupColIds:b}:void 0,aggregation:w.length?{aggregationModel:w}:void 0,pivot:k.length||g?{pivotMode:g,pivotColIds:k}:void 0,columnPinning:R.length||T.length?{leftColIds:R,rightColIds:T}:void 0,columnVisibility:z.length?{hiddenColIds:z}:void 0,columnSizing:G.length?{columnSizingModel:G}:void 0,columnOrder:U.length?{orderedColIds:U}:void 0}}setColumnState(d){let{sort:g,rowGroup:m,aggregation:b,pivot:w,columnPinning:k,columnVisibility:R,columnSizing:T,columnOrder:z,partialColumnState:G}=d,U={},X=ye=>{let ke=U[ye];return ke||(ke={colId:ye},U[ye]=ke,ke)},Q=G?{}:{sort:null,sortIndex:null,rowGroup:null,rowGroupIndex:null,aggFunc:null,pivot:null,pivotIndex:null,pinned:null,hide:null,flex:null};g&&(g.sortModel.forEach(({colId:ye,sort:ke},Ie)=>{let ze=X(ye);ze.sort=ke,ze.sortIndex=Ie}),Q.sort=null,Q.sortIndex=null),m&&(m.groupColIds.forEach((ye,ke)=>{let Ie=X(ye);Ie.rowGroup=!0,Ie.rowGroupIndex=ke}),Q.rowGroup=null,Q.rowGroupIndex=null),b&&(b.aggregationModel.forEach(({colId:ye,aggFunc:ke})=>{X(ye).aggFunc=ke}),Q.aggFunc=null),w&&(w.pivotColIds.forEach((ye,ke)=>{let Ie=X(ye);Ie.pivot=!0,Ie.pivotIndex=ke}),this.gos.updateGridOptions({options:{pivotMode:w.pivotMode},source:"gridInitializing"}),Q.pivot=null,Q.pivotIndex=null),k&&(k.leftColIds.forEach(ye=>{X(ye).pinned="left"}),k.rightColIds.forEach(ye=>{X(ye).pinned="right"}),Q.pinned=null),R&&(R.hiddenColIds.forEach(ye=>{X(ye).hide=!0}),Q.hide=null),T&&(T.columnSizingModel.forEach(({colId:ye,flex:ke,width:Ie})=>{let ze=X(ye);ze.flex=ke!=null?ke:null,ze.width=Ie}),Q.flex=null);let oe=z==null?void 0:z.orderedColIds,le=!!(oe!=null&&oe.length),fe=le?oe.map(ye=>X(ye)):Object.values(U);fe.length&&(this.columnStates=fe,(0,M._applyColumnState)(this.beans,{state:fe,applyOrder:le,defaultState:Q},"gridInitializing"))}setColumnPivotState(d){let g=this.columnStates;this.columnStates=void 0;let m=this.columnGroupStates;this.columnGroupStates=void 0;let b=this.beans,{pivotResultCols:w,colGroupSvc:k}=b;if(w!=null&&w.isPivotResultColsPresent()){if(g){let R=[];for(let T of g)w.getPivotResultCol(T.colId)&&R.push(T);(0,M._applyColumnState)(b,{state:R,applyOrder:d},"gridInitializing")}m&&(k==null||k.setColumnGroupState(m,"gridInitializing"))}}getColumnGroupState(){let d=this.beans.colGroupSvc;if(!d)return;let g=d.getColumnGroupState(),m=[];return g.forEach(({groupId:b,open:w})=>{w&&m.push(b)}),m.length?{openColumnGroupIds:m}:void 0}setColumnGroupState(d){var w;let g=this.beans.colGroupSvc;if(!Object.prototype.hasOwnProperty.call(d,"columnGroup")||!g)return;let m=new Set((w=d.columnGroup)==null?void 0:w.openColumnGroupIds),b=g.getColumnGroupState().map(({groupId:k})=>{let R=m.has(k);return R&&m.delete(k),{groupId:k,open:R}});m.forEach(k=>{b.push({groupId:k,open:!0})}),b.length&&(this.columnGroupStates=b),g.setColumnGroupState(b,"gridInitializing")}getFilterState(){var b;let d=this.beans.filterManager,g=d==null?void 0:d.getFilterModel();g&&Object.keys(g).length===0&&(g=void 0);let m=(b=d==null?void 0:d.getAdvFilterModel())!=null?b:void 0;return g||m?{filterModel:g,advancedFilterModel:m}:void 0}setFilterState(d){let g=this.beans.filterManager,{filterModel:m,advancedFilterModel:b}=d!=null?d:{};m&&(g==null||g.setFilterModel(m,"columnFilter")),b&&(g==null||g.setAdvFilterModel(b))}getRangeSelectionState(){var g;let d=(g=this.beans.rangeSvc)==null?void 0:g.getCellRanges().map(m=>{let{id:b,type:w,startRow:k,endRow:R,columns:T,startColumn:z}=m;return{id:b,type:w,startRow:k,endRow:R,colIds:T.map(G=>G.getColId()),startColId:z.getColId()}});return d!=null&&d.length?{cellRanges:d}:void 0}setCellSelectionState(d){let{gos:g,rangeSvc:m,colModel:b,visibleCols:w}=this.beans;if(!(0,F._isCellSelectionEnabled)(g)||!m)return;let k=[];d.cellRanges.forEach(R=>{let T=[];if(R.colIds.forEach(G=>{let U=b.getCol(G);U&&T.push(U)}),!T.length)return;let z=b.getCol(R.startColId);if(!z){let G=w.allCols,U=new Set(T);z=G.find(X=>U.has(X))}k.push(et(pe({},R),{columns:T,startColumn:z}))}),m.setCellRanges(k)}getScrollState(){var b,w;if(!this.isClientSideRowModel)return;let d=this.beans.ctrlsSvc.getScrollFeature(),{left:g}=(b=d==null?void 0:d.getHScrollPosition())!=null?b:{left:0},{top:m}=(w=d==null?void 0:d.getVScrollPosition())!=null?w:{top:0};return m||g?{top:m,left:g}:void 0}setScrollState(d){if(!this.isClientSideRowModel)return;let{top:g,left:m}=d,{frameworkOverrides:b,rowRenderer:w,animationFrameSvc:k,ctrlsSvc:R}=this.beans;b.wrapIncoming(()=>{var T;R.get("center").setCenterViewportScrollLeft(m),(T=R.getScrollFeature())==null||T.setVerticalScrollPosition(g),w.redraw({afterScroll:!0}),k==null||k.flushAllFrames()})}getSideBarState(){var d,g;return(g=(d=this.beans.sideBar)==null?void 0:d.comp)==null?void 0:g.getState()}getFocusedCellState(){if(!this.isClientSideRowModel)return;let d=this.beans.focusSvc.getFocusedCell();if(d){let{column:g,rowIndex:m,rowPinned:b}=d;return{colId:g.getColId(),rowIndex:m,rowPinned:b}}}setFocusedCellState(d){if(!this.isClientSideRowModel)return;let{colId:g,rowIndex:m,rowPinned:b}=d,{focusSvc:w,colModel:k}=this.beans;w.setFocusedCell({column:k.getCol(g),rowIndex:m,rowPinned:b,forceBrowserFocus:!0,preventScrollOnBrowserFocus:!0})}getPaginationState(){let{pagination:d,gos:g}=this.beans;if(!d)return;let m=d.getCurrentPage(),b=g.get("paginationAutoPageSize")?void 0:d.getPageSize();return m||b?{page:m,pageSize:b}:void 0}setPaginationState(d){let{pagination:g,gos:m}=this.beans;g&&(d.pageSize&&!m.get("paginationAutoPageSize")&&g.setPageSize(d.pageSize,"initialState"),typeof d.page=="number"&&g.setPage(d.page))}getRowSelectionState(){var m;let d=this.beans.selectionSvc;if(!d)return;let g=d.getSelectionState();return!g||!Array.isArray(g)&&(g.selectAll===!1||g.selectAllChildren===!1)&&!((m=g==null?void 0:g.toggledNodes)!=null&&m.length)?void 0:g}setRowSelectionState(d){var g;(g=this.beans.selectionSvc)==null||g.setSelectionState(d,"gridInitializing")}getRowGroupExpansionState(){let{expansionSvc:d,rowModel:g}=this.beans;if(!d)return;let m=[];return g.forEachNode(({expanded:b,id:w})=>{b&&w&&m.push(w)}),m.length?{expandedRowGroupIds:m}:void 0}setRowGroupExpansionState(d){var g;(g=this.beans.expansionSvc)==null||g.expandRows(d.expandedRowGroupIds)}updateColumnState(d){let g=this.getColumnState(),m=!1,b=this.cachedState;Object.entries(g).forEach(([w,k])=>{(0,f._jsonEquals)(k,b[w])||(m=!0)}),this.cachedState=pe(pe({},b),g),m&&this.dispatchStateUpdateEvent(d)}updateCachedState(d,g){let m=this.cachedState[d];this.setCachedStateValue(d,g),(0,f._jsonEquals)(g,m)||this.dispatchStateUpdateEvent([d])}setCachedStateValue(d,g){this.cachedState=et(pe({},this.cachedState),{[d]:g})}refreshStaleState(){let d=this.staleStateKeys;d.forEach(g=>{g==="rowSelection"&&this.setCachedStateValue(g,this.getRowSelectionState())}),d.clear()}dispatchStateUpdateEvent(d){this.suppressEvents||(d.forEach(g=>this.queuedUpdateSources.add(g)),this.dispatchStateUpdateEventDebounced())}dispatchQueuedStateUpdateEvents(){let d=this.queuedUpdateSources,g=Array.from(d);d.clear(),this.eventSvc.dispatchEvent({type:"stateUpdated",sources:g,state:this.cachedState})}suppressEventsAndDispatchInitEvent(d){this.suppressEvents=!0;let g=this.beans.colAnimation;g==null||g.setSuppressAnimation(!0),d(),setTimeout(()=>{this.suppressEvents=!1,this.queuedUpdateSources.clear(),this.isAlive()&&(g==null||g.setSuppressAnimation(!1),this.dispatchStateUpdateEvent(["gridInitializing"]))})}}x.StateService=s},3705:function(ne,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.TouchModule=void 0;let M=p(7205),A=p(3914);x.TouchModule={moduleName:"Touch",version:M.VERSION,beans:[A.TouchService]}},3914:function(ne,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.TouchService=void 0;let M=p(8731),A=p(8667),F=p(2979),D=p(4422),f=p(9644);class v extends M.BeanStub{constructor(){super(...arguments),this.beanName="touchSvc"}mockBodyContextMenu(s,r){this.mockContextMenu(s,s.eBodyViewport,r)}mockHeaderContextMenu(s,r){this.mockContextMenu(s,s.eGui,r)}mockRowContextMenu(s){(0,A._isIOSUserAgent)()&&this.mockContextMenu(s,s.element,(r,d,g)=>{var w,k;let{rowCtrl:m,cellCtrl:b}=s.getControlsForEventTarget((w=g==null?void 0:g.target)!=null?w:null);(k=this.beans.contextMenuSvc)==null||k.handleContextMenuMouseEvent(void 0,g,m,b)})}handleCellDoubleClick(s,r){return!!(()=>{if(!(0,A._isIOSUserAgent)()||(0,F._isEventSupported)("dblclick"))return!1;let d=new Date().getTime(),g=d-s.lastIPadMouseClickEvent<200;return s.lastIPadMouseClickEvent=d,g})()&&(s.onCellDoubleClicked(r),r.preventDefault(),!0)}setupForHeader(s){let{gos:r,sortSvc:d}=this.beans;if(r.get("suppressTouch"))return;let{params:g,eMenu:m,eFilterButton:b}=s,w=new f.TouchListener(s.getGui(),!0),k=s.shouldSuppressMenuHide(),R=k&&(0,D._exists)(m),T=R?new f.TouchListener(m,!0):w;if(g.enableMenu){let z=R?"tap":"longTap",G=U=>g.showColumnMenuAfterMouseClick(U.touchStart);s.addManagedListeners(T,{[z]:G})}if(g.enableSorting){let z=G=>{let U=G.touchStart.target;k&&(m!=null&&m.contains(U)||b!=null&&b.contains(U))||(d==null||d.progressSort(g.column,!1,"uiColumnSorted"))};s.addManagedListeners(w,{tap:z})}if(g.enableFilterButton&&b){let z=new f.TouchListener(b,!0);s.addManagedListeners(z,{tap:()=>g.showFilter(b)}),s.addDestroyFunc(()=>z.destroy())}s.addDestroyFunc(()=>w.destroy()),R&&s.addDestroyFunc(()=>T.destroy())}setupForHeaderGroup(s,r,d){let g=new f.TouchListener(r,!0);s.addManagedListeners(g,{tap:d}),s.addDestroyFunc(()=>g.destroy())}mockContextMenu(s,r,d){if(!(0,A._isIOSUserAgent)())return;let g=new f.TouchListener(r);s.addManagedListeners(g,{longTap:m=>{d(void 0,m.touchStart,m.touchEvent)}}),s.addDestroyFunc(()=>g.destroy())}}x.TouchService=v},2132:function(ne,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.ModuleRegistry=x._getGridRegisteredModules=x._getAllRegisteredModules=x._getRegisteredModules=x._areModulesGridScoped=x._isModuleRegistered=x._unRegisterGridModules=x._registerModule=void 0;let M=p(2043),A=new Set,F={},D={},f,v=!1;function u(r){f||(f=r.version);let d=g=>`You are using incompatible versions of AG Grid modules. Major and minor versions should always match across modules. ${g} Please update all modules to the same version.`;if(r.version?function(g){let[m,b]=g.version.split(".")||[],[w,k]=f.split(".")||[];return m===w&&b===k}(r)||(0,M._errorOnce)(d(`'${r.moduleName}' is version ${r.version} but the other modules are version ${f}.`)):(0,M._errorOnce)(d(`'${r.moduleName}' is incompatible.`)),r.validate){let g=r.validate();if(!g.isValid){let m=g;(0,M._errorOnce)(`${m.message}`)}}}function s(r,d){var b;u(r);let g=(b=r.rowModels)!=null?b:["all"],m;A.add(r),d!==void 0?(v=!0,D[d]===void 0&&(D[d]={}),m=D[d]):m=F,g.forEach(w=>{m[w]===void 0&&(m[w]={}),m[w][r.moduleName]=r}),r.dependsOn&&r.dependsOn.forEach(w=>s(w,d))}x._registerModule=s,x._unRegisterGridModules=function(r){delete D[r]},x._isModuleRegistered=function(r,d,g){let m=b=>{var w,k,R;return!!((w=F[b])!=null&&w[r])||!!((R=(k=D[d])==null?void 0:k[b])!=null&&R[r])};return m(g)||m("all")},x._areModulesGridScoped=function(){return v},x._getRegisteredModules=function(r,d){var m,b,w,k,R;let g=(m=D[r])!=null?m:{};return[...Object.values((b=F.all)!=null?b:{}),...Object.values((w=g.all)!=null?w:{}),...Object.values((k=F[d])!=null?k:{}),...Object.values((R=g[d])!=null?R:{})]},x._getAllRegisteredModules=function(){return new Set(A)},x._getGridRegisteredModules=function(r,d){var m,b,w;let g=(m=D[r])!=null?m:{};return[...Object.values((b=g.all)!=null?b:{}),...Object.values((w=g[d])!=null?w:{})]},x.ModuleRegistry=class{static register(r){s(r,void 0)}static registerModules(r){r.forEach(d=>s(d,void 0))}}},9413:function(ne,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.CellNavigationService=void 0;let M=p(9853),A=p(8731),F=p(7274),D=p(1502),f=p(4422),v=p(7764);class u extends A.BeanStub{constructor(){super(...arguments),this.beanName="cellNavigation"}getNextCellToFocus(r,d,g=!1){return g?this.getNextCellToFocusWithCtrlPressed(r,d):this.getNextCellToFocusWithoutCtrlPressed(r,d)}getNextCellToFocusWithCtrlPressed(r,d){let g=r===M.KeyCode.UP,m=r===M.KeyCode.DOWN,b=r===M.KeyCode.LEFT,w,k,{pageBounds:R,gos:T,visibleCols:z}=this.beans;if(g||m)k=g?R.getFirstRow():R.getLastRow(),w=d.column;else{let G=z.allCols,U=T.get("enableRtl");k=d.rowIndex,w=b!==U?G[0]:(0,D._last)(G)}return{rowIndex:k,rowPinned:null,column:w}}getNextCellToFocusWithoutCtrlPressed(r,d){let g=d,m=!1;for(;!m;){switch(r){case M.KeyCode.UP:g=this.getCellAbove(g);break;case M.KeyCode.DOWN:g=this.getCellBelow(g);break;case M.KeyCode.RIGHT:g=this.gos.get("enableRtl")?this.getCellToLeft(g):this.getCellToRight(g);break;case M.KeyCode.LEFT:g=this.gos.get("enableRtl")?this.getCellToRight(g):this.getCellToLeft(g);break;default:g=null,(0,v._warn)(8,{key:r})}m=!g||this.isCellGoodToFocusOn(g)}return g}isCellGoodToFocusOn(r){let d=r.column,g,{pinnedRowModel:m,rowModel:b}=this.beans;switch(r.rowPinned){case"top":g=m==null?void 0:m.getPinnedTopRow(r.rowIndex);break;case"bottom":g=m==null?void 0:m.getPinnedBottomRow(r.rowIndex);break;default:g=b.getRow(r.rowIndex)}return g?!this.isSuppressNavigable(d,g):!1}getCellToLeft(r){if(!r)return null;let d=this.beans.visibleCols.getColBefore(r.column);return d?{rowIndex:r.rowIndex,column:d,rowPinned:r.rowPinned}:null}getCellToRight(r){if(!r)return null;let d=this.beans.visibleCols.getColAfter(r.column);return d?{rowIndex:r.rowIndex,column:d,rowPinned:r.rowPinned}:null}getRowBelow(r){let d=r.rowIndex,g=r.rowPinned,m=!1,{pageBounds:b,pinnedRowModel:w,rowModel:k}=this.beans;if(this.isLastRowInContainer(r))switch(g){case"bottom":return null;case"top":return k.isRowsToRender()?{rowIndex:b.getFirstRow(),rowPinned:null}:w!=null&&w.isRowsToRender("bottom")?{rowIndex:0,rowPinned:"bottom"}:null;default:return w!=null&&w.isRowsToRender("bottom")?{rowIndex:0,rowPinned:"bottom"}:null}else g&&(m=!0);let R=k.getRow(r.rowIndex);return(m?void 0:this.getNextStickyPosition(R))||{rowIndex:d+1,rowPinned:g}}getNextStickyPosition(r,d){let{gos:g,rowRenderer:m}=this.beans;if(!(0,F._isGroupRowsSticky)(g)||!r||!r.sticky)return;let b=[];b=m.getStickyTopRowCtrls().some(T=>T.rowNode.rowIndex===r.rowIndex)?[...m.getStickyTopRowCtrls()].sort((T,z)=>T.rowNode.rowIndex-z.rowNode.rowIndex):[...m.getStickyBottomRowCtrls()].sort((T,z)=>z.rowNode.rowIndex-T.rowNode.rowIndex);let w=d?-1:1,k=b.findIndex(T=>T.rowNode.rowIndex===r.rowIndex),R=b[k+w];return R?{rowIndex:R.rowNode.rowIndex,rowPinned:null}:void 0}getCellBelow(r){if(!r)return null;let d=this.getRowBelow(r);return d?{rowIndex:d.rowIndex,column:r.column,rowPinned:d.rowPinned}:null}isLastRowInContainer(r){var w,k;let d=r.rowPinned,g=r.rowIndex,{pinnedRowModel:m,pageBounds:b}=this.beans;return d==="top"?((w=m==null?void 0:m.getPinnedTopRowCount())!=null?w:-1)<=g:d==="bottom"?((k=m==null?void 0:m.getPinnedBottomRowCount())!=null?k:-1)<=g:b.getLastRow()<=g}getRowAbove(r){let d=r.rowIndex,g=r.rowPinned,{pageBounds:m,pinnedRowModel:b,rowModel:w}=this.beans,k=!1,R=()=>{var G;return{rowIndex:(G=b==null?void 0:b.getPinnedTopRowCount())!=null?G:-1,rowPinned:"top"}};if(g?d===0:d===m.getFirstRow())return g==="top"?null:g&&w.isRowsToRender()?{rowIndex:m.getLastRow(),rowPinned:null}:b!=null&&b.isRowsToRender("top")?R():null;g&&(k=!0);let T=w.getRow(r.rowIndex);return(k?void 0:this.getNextStickyPosition(T,!0))||{rowIndex:d-1,rowPinned:g}}getCellAbove(r){if(!r)return null;let d=this.getRowAbove({rowIndex:r.rowIndex,rowPinned:r.rowPinned});return d?{rowIndex:d.rowIndex,column:r.column,rowPinned:d.rowPinned}:null}getNextTabbedCell(r,d){return d?this.getNextTabbedCellBackwards(r):this.getNextTabbedCellForwards(r)}getNextTabbedCellForwards(r){var R;let{visibleCols:d,pagination:g}=this.beans,m=d.allCols,b=r.rowIndex,w=r.rowPinned,k=d.getColAfter(r.column);if(!k){k=m[0];let T=this.getRowBelow(r);if((0,f._missing)(T)||!T.rowPinned&&!((R=g==null?void 0:g.isRowInPage(T))==null||R))return null;b=T?T.rowIndex:null,w=T?T.rowPinned:null}return{rowIndex:b,column:k,rowPinned:w}}getNextTabbedCellBackwards(r){var R;let{visibleCols:d,pagination:g}=this.beans,m=d.allCols,b=r.rowIndex,w=r.rowPinned,k=d.getColBefore(r.column);if(!k){k=(0,D._last)(m);let T=this.getRowAbove({rowIndex:r.rowIndex,rowPinned:r.rowPinned});if((0,f._missing)(T)||!T.rowPinned&&!((R=g==null?void 0:g.isRowInPage(T))==null||R))return null;b=T?T.rowIndex:null,w=T?T.rowPinned:null}return{rowIndex:b,column:k,rowPinned:w}}isSuppressNavigable(r,d){let{suppressNavigable:g}=r.colDef;return typeof g=="boolean"?g:typeof g=="function"?g(r.createColumnFunctionCallbackParams(d)):!1}}x.CellNavigationService=u},3990:function(ne,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.HeaderNavigationService=x.getHeaderIndexToFocus=void 0;let M=p(8731),A=p(6908),F=p(7274),D=p(1323),f=p(1502);function v(r){return!!r&&r.getLeafColumns().some(d=>d.isSpanHeaderHeight())}function u(r,d){let g;if((0,A.isColumnGroup)(r)&&v(r)&&r.isPadding()){let m=r;g=m.getLeafColumns()[0];let b=g;for(;b!==m;)d++,b=b.getParent()}return{column:g||r,headerRowIndex:d}}x.getHeaderIndexToFocus=u;class s extends M.BeanStub{constructor(){super(...arguments),this.beanName="headerNavigation",this.currentHeaderRowWithoutSpan=-1}postConstruct(){let d=this.beans;d.ctrlsSvc.whenReady(this,m=>{this.gridBodyCon=m.gridBodyCtrl});let g=(0,F._getDocument)(d);this.addManagedElementListeners(g,{mousedown:()=>{this.currentHeaderRowWithoutSpan=-1}})}getHeaderPositionForColumn(d,g){var oe;let m,{colModel:b,colGroupSvc:w,ctrlsSvc:k}=this.beans;if(typeof d=="string"?(m=b.getCol(d),m||(m=(oe=w==null?void 0:w.getColumnGroup(d))!=null?oe:null)):m=d,!m)return null;let R=k.getHeaderRowContainerCtrl(),T=R==null?void 0:R.getAllCtrls(),z=(0,f._last)(T||[]).type==="filter",G=(0,D.getFocusHeaderRowCount)(this.beans)-1,U=-1,X=m;for(;X;)U++,X=X.getParent();let Q=U;return g&&z&&Q===G-1&&Q++,Q===-1?null:{headerRowIndex:Q,column:m}}navigateVertically(d,g,m){let b=this.beans.focusSvc;if(g||(g=b.focusedHeader),!g)return!1;let{headerRowIndex:w}=g,k=g.column,R=(0,D.getFocusHeaderRowCount)(this.beans),T=d==="UP",z=this.getHeaderRowType(w),{headerRowIndex:G,column:U,headerRowIndexWithoutSpan:X}=T?function(oe,le,fe){let ye=oe==="filter",ke=oe==="column",Ie=ye?le:le.getParent(),ze=fe-1,Ye=ze;if(ke&&v(le.getParent())){for(;Ie&&Ie.isPadding();)Ie=Ie.getParent(),ze--;Ye=ze,ze<0&&(Ie=le,ze=fe,Ye=void 0)}return{column:Ie,headerRowIndex:ze,headerRowIndexWithoutSpan:Ye}}(z,k,w):function(oe,le,fe,ye="After"){let ke=le,Ie=fe+1,ze=Ie;if(oe==="group"){let Ye=le.getDisplayedLeafColumns(),xe=ye==="After"?Ye[0]:(0,f._last)(Ye),Te=[],Ae=xe;for(;Ae.getParent()!==le;)Ae=Ae.getParent(),Te.push(Ae);if(ke=xe,xe.isSpanHeaderHeight())for(let Ne=Te.length-1;Ne>=0;Ne--){let Re=Te[Ne];if(!Re.isPadding()){ke=Re;break}Ie++}else ke=(0,f._last)(Te),ke||(ke=xe)}return{column:ke,headerRowIndex:Ie,headerRowIndexWithoutSpan:ze}}(z,k,w),Q=!1;return G<0&&(G=0,U=k,Q=!0),G>=R?(G=-1,this.currentHeaderRowWithoutSpan=-1):X!==void 0&&(this.currentHeaderRowWithoutSpan=X),!(!Q&&!U)&&b.focusHeaderPosition({headerPosition:{headerRowIndex:G,column:U},allowUserOverride:!0,event:m})}navigateHorizontally(d,g=!1,m){let{focusSvc:b,gos:w}=this.beans,k=b.focusedHeader,R,T;if(this.currentHeaderRowWithoutSpan!==-1?k.headerRowIndex=this.currentHeaderRowWithoutSpan:this.currentHeaderRowWithoutSpan=k.headerRowIndex,d==="LEFT"!==w.get("enableRtl")?(T="Before",R=this.findHeader(k,T)):(T="After",R=this.findHeader(k,T)),R||!g)return b.focusHeaderPosition({headerPosition:R,direction:T,fromTab:g,allowUserOverride:!0,event:m});if(g){let z=w.getCallback("tabToNextHeader");if(z)return b.focusHeaderPositionFromUserFunc({userFunc:z,headerPosition:R,direction:T})}return this.focusNextHeaderRow(k,T,m)}focusNextHeaderRow(d,g,m){let b=d.headerRowIndex,w,k=null,R=this.beans;if(g==="Before"?b>0&&(w=b-1,this.currentHeaderRowWithoutSpan-=1,k=this.findColAtEdgeForHeaderRow(w,"end")):(w=b+1,this.currentHeaderRowWithoutSpan<(0,D.getFocusHeaderRowCount)(R)?this.currentHeaderRowWithoutSpan+=1:this.currentHeaderRowWithoutSpan=-1,k=this.findColAtEdgeForHeaderRow(w,"start")),!k)return!1;let{column:T,headerRowIndex:z}=u(k.column,k==null?void 0:k.headerRowIndex);return R.focusSvc.focusHeaderPosition({headerPosition:{column:T,headerRowIndex:z},direction:g,fromTab:!0,allowUserOverride:!0,event:m})}scrollToColumn(d,g="After"){if(d.getPinned())return;let m;if((0,A.isColumnGroup)(d)){let b=d.getDisplayedLeafColumns();m=g==="Before"?(0,f._last)(b):b[0]}else m=d;this.gridBodyCon.scrollFeature.ensureColumnVisible(m)}findHeader(d,g){var G;let m,b,{colGroupSvc:w,visibleCols:k}=this.beans;if((0,A.isColumnGroup)(d.column)?m=(G=w==null?void 0:w.getGroupAtDirection(d.column,g))!=null?G:void 0:(b=`getCol${g}`,m=k[b](d.column)),!m)return;let{headerRowIndex:R}=d;if(this.getHeaderRowType(R)!=="filter"){let U=[m];for(;m.getParent();)m=m.getParent(),U.push(m);m=U[Math.max(0,U.length-1-R)]}let{column:T,headerRowIndex:z}=u(m,R);return{column:T,headerRowIndex:z}}getHeaderRowType(d){let g=this.beans.ctrlsSvc.getHeaderRowContainerCtrl();if(g)return g.getRowType(d)}findColAtEdgeForHeaderRow(d,g){let{visibleCols:m,ctrlsSvc:b,colGroupSvc:w}=this.beans,k=m.allCols,R=k[g==="start"?0:k.length-1];if(!R)return;let T=b.getHeaderRowContainerCtrl(R.getPinned()),z=T==null?void 0:T.getRowType(d);if(z=="group"){let G=w==null?void 0:w.getColGroupAtLevel(R,d);return{headerRowIndex:d,column:G}}return{headerRowIndex:z==null?-1:d,column:R}}}x.HeaderNavigationService=s},322:function(ne,x){Object.defineProperty(x,"__esModule",{value:!0}),x.setFocusedHeader=x.tabToPreviousCell=x.tabToNextCell=x.setFocusedCell=x.clearFocusedCell=x.getFocusedCell=void 0,x.getFocusedCell=function(p){return p.focusSvc.getFocusedCell()},x.clearFocusedCell=function(p){return p.focusSvc.clearFocusedCell()},x.setFocusedCell=function(p,M,A,F){p.focusSvc.setFocusedCell({rowIndex:M,column:A,rowPinned:F,forceBrowserFocus:!0})},x.tabToNextCell=function(p,M){var A,F;return(F=(A=p.navigation)==null?void 0:A.tabToNextCell(!1,M))!=null?F:!1},x.tabToPreviousCell=function(p,M){var A,F;return(F=(A=p.navigation)==null?void 0:A.tabToNextCell(!0,M))!=null?F:!1},x.setFocusedHeader=function(p,M,A=!1){var D;let F=(D=p.headerNavigation)==null?void 0:D.getHeaderPositionForColumn(M,A);F&&p.focusSvc.focusHeaderPosition({headerPosition:F})}},928:function(ne,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.KeyboardNavigationModule=void 0;let M=p(7205),A=p(9413),F=p(3990),D=p(322),f=p(2321);x.KeyboardNavigationModule={moduleName:"KeyboardNavigation",version:M.VERSION,beans:[f.NavigationService,A.CellNavigationService,F.HeaderNavigationService],apiFunctions:{getFocusedCell:D.getFocusedCell,clearFocusedCell:D.clearFocusedCell,setFocusedCell:D.setFocusedCell,setFocusedHeader:D.setFocusedHeader,tabToNextCell:D.tabToNextCell,tabToPreviousCell:D.tabToPreviousCell}}},2321:function(ne,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.NavigationService=void 0;let M=p(9853),A=p(8731),F=p(6257),D=p(8399),f=p(7274),v=p(1323),u=p(814),s=p(7632),r=p(1502),d=p(2331),g=p(2043),m=p(4422);class b extends A.BeanStub{constructor(){super(),this.beanName="navigation",this.onPageDown=(0,g._throttle)(this.onPageDown,100),this.onPageUp=(0,g._throttle)(this.onPageUp,100)}postConstruct(){this.beans.ctrlsSvc.whenReady(this,R=>{this.gridBodyCon=R.gridBodyCtrl})}handlePageScrollingKey(R,T=!1){let z=R.key,G=R.altKey,U=R.ctrlKey||R.metaKey,X=!!this.beans.rangeSvc&&R.shiftKey,Q=(0,D._getCellPositionForEvent)(this.gos,R),oe=!1;switch(z){case M.KeyCode.PAGE_HOME:case M.KeyCode.PAGE_END:U||G||(this.onHomeOrEndKey(z),oe=!0);break;case M.KeyCode.LEFT:case M.KeyCode.RIGHT:case M.KeyCode.UP:case M.KeyCode.DOWN:if(!Q)return!1;!U||G||X||(this.onCtrlUpDownLeftRight(z,Q),oe=!0);break;case M.KeyCode.PAGE_DOWN:case M.KeyCode.PAGE_UP:U||G||(oe=this.handlePageUpDown(z,Q,T))}return oe&&R.preventDefault(),oe}handlePageUpDown(R,T,z){return z&&(T=this.beans.focusSvc.getFocusedCell()),!!T&&(R===M.KeyCode.PAGE_UP?this.onPageUp(T):this.onPageDown(T),!0)}navigateTo(R){let{scrollIndex:T,scrollType:z,scrollColumn:G,focusIndex:U,focusColumn:X}=R,{scrollFeature:Q}=this.gridBodyCon;(0,m._exists)(G)&&!G.isPinned()&&Q.ensureColumnVisible(G),(0,m._exists)(T)&&Q.ensureIndexVisible(T,z),R.isAsync||Q.ensureIndexVisible(U);let{focusSvc:oe,rangeSvc:le}=this.beans;oe.setFocusedCell({rowIndex:U,column:X,rowPinned:null,forceBrowserFocus:!0}),le==null||le.setRangeToCell({rowIndex:U,rowPinned:null,column:X})}onPageDown(R){let T=this.beans,z=w(T),G=this.getViewportHeight(),{pageBounds:U,rowModel:X,rowAutoHeight:Q}=T,oe=U.getPixelOffset(),le=z.top+G,fe=X.getRowIndexAtPixel(le+oe);Q!=null&&Q.active?this.navigateToNextPageWithAutoHeight(R,fe):this.navigateToNextPage(R,fe)}onPageUp(R){let T=this.beans,z=w(T),{pageBounds:G,rowModel:U,rowAutoHeight:X}=T,Q=G.getPixelOffset(),oe=z.top,le=U.getRowIndexAtPixel(oe+Q);X!=null&&X.active?this.navigateToNextPageWithAutoHeight(R,le,!0):this.navigateToNextPage(R,le,!0)}navigateToNextPage(R,T,z=!1){let{pageBounds:G,rowModel:U}=this.beans,X=this.getViewportHeight(),Q=G.getFirstRow(),oe=G.getLastRow(),le=G.getPixelOffset(),fe=U.getRow(R.rowIndex),ye=z?(fe==null?void 0:fe.rowHeight)-X-le:X-le,ke=(fe==null?void 0:fe.rowTop)+ye,Ie,ze=U.getRowIndexAtPixel(ke+le);if(ze===R.rowIndex){let Ye=z?-1:1;T=ze=R.rowIndex+Ye}z?(Ie="bottom",ze<Q&&(ze=Q),T<Q&&(T=Q)):(Ie="top",ze>oe&&(ze=oe),T>oe&&(T=oe)),this.isRowTallerThanView(U.getRow(ze))&&(T=ze,Ie="top"),this.navigateTo({scrollIndex:T,scrollType:Ie,scrollColumn:null,focusIndex:ze,focusColumn:R.column})}navigateToNextPageWithAutoHeight(R,T,z=!1){this.navigateTo({scrollIndex:T,scrollType:z?"bottom":"top",scrollColumn:null,focusIndex:T,focusColumn:R.column}),setTimeout(()=>{let G=this.getNextFocusIndexForAutoHeight(R,z);this.navigateTo({scrollIndex:T,scrollType:z?"bottom":"top",scrollColumn:null,focusIndex:G,focusColumn:R.column,isAsync:!0})},50)}getNextFocusIndexForAutoHeight(R,T=!1){var fe;let z=T?-1:1,G=this.getViewportHeight(),{pageBounds:U,rowModel:X}=this.beans,Q=U.getLastRow(),oe=0,le=R.rowIndex;for(;le>=0&&le<=Q;){let ye=X.getRow(le);if(ye){let ke=(fe=ye.rowHeight)!=null?fe:0;if(oe+ke>G)break;oe+=ke}le+=z}return Math.max(0,Math.min(le,Q))}getViewportHeight(){let R=this.beans,T=w(R),z=this.beans.scrollVisibleSvc.getScrollbarWidth(),G=T.bottom-T.top;return R.ctrlsSvc.get("center").isHorizontalScrollShowing()&&(G-=z),G}isRowTallerThanView(R){if(!R)return!1;let T=R.rowHeight;return typeof T=="number"&&T>this.getViewportHeight()}onCtrlUpDownLeftRight(R,T){let z=this.beans.cellNavigation.getNextCellToFocus(R,T,!0),{rowIndex:G}=z,U=z.column;this.navigateTo({scrollIndex:G,scrollType:null,scrollColumn:U,focusIndex:G,focusColumn:U})}onHomeOrEndKey(R){let T=R===M.KeyCode.PAGE_HOME,{visibleCols:z,pageBounds:G}=this.beans,U=z.allCols,X=T?U[0]:(0,r._last)(U),Q=T?G.getFirstRow():G.getLastRow();this.navigateTo({scrollIndex:Q,scrollType:null,scrollColumn:X,focusIndex:Q,focusColumn:X})}onTabKeyDown(R,T){let z=T.shiftKey,G=this.tabToNextCellCommon(R,z,T),U=this.beans,{ctrlsSvc:X,pageBounds:Q,focusSvc:oe,gos:le}=U;if(G===!1)if(z){let{rowIndex:fe,rowPinned:ye}=R.getRowPosition();(ye?fe===0:fe===Q.getFirstRow())&&(le.get("headerHeight")===0||(0,d._isHeaderFocusSuppressed)(U)?(0,d._focusNextGridCoreContainer)(U,!0,!0):(T.preventDefault(),oe.focusPreviousFromFirstCell(T)))}else R instanceof u.CellCtrl&&R.focusCell(!0),(!z&&oe.focusOverlay(!1)||(0,d._focusNextGridCoreContainer)(U,z))&&T.preventDefault();else G?T.preventDefault():G===null&&X.get("gridCtrl").allowFocusForNextCoreContainer(z)}tabToNextCell(R,T){let z=this.beans,{focusSvc:G,rowRenderer:U}=z,X=G.getFocusedCell();if(!X)return!1;let Q=(0,F._getCellByPosition)(z,X);return!!(Q||(Q=U.getRowByPosition(X),Q&&Q.isFullWidth()))&&!!this.tabToNextCellCommon(Q,R,T)}tabToNextCellCommon(R,T,z){let G,U=R.editing;if(!U&&R instanceof u.CellCtrl){let X=R.rowCtrl;X&&(U=X.editing)}return G=U?this.gos.get("editType")==="fullRow"?this.moveToNextEditingRow(R,T,z):this.moveToNextEditingCell(R,T,z):this.moveToNextCellNotEditing(R,T),G===null?G:G||!!this.beans.focusSvc.focusedHeader}moveToNextEditingCell(R,T,z=null){var X;let G=R.cellPosition;R.eGui.focus(),R.stopEditing();let U=this.findNextCellToFocusOn(G,T,!0);return U===!1?null:U!=null&&((X=this.beans.editSvc)==null||X.startEditing(U,null,!0,z),U.focusCell(!1),!0)}moveToNextEditingRow(R,T,z=null){let G=R.cellPosition,U=this.findNextCellToFocusOn(G,T,!0);if(U===!1)return null;if(U==null)return!1;let X=U.cellPosition,Q=this.isCellEditable(G),oe=this.isCellEditable(X),le=X&&G.rowIndex===X.rowIndex&&G.rowPinned===X.rowPinned,{editSvc:fe,rowEditSvc:ye}=this.beans;if(Q&&(fe==null||fe.setFocusOutOnEditor(R)),!le){let ke=R.rowCtrl;fe==null||fe.stopRowEditing(ke);let Ie=U.rowCtrl;ye==null||ye.startEditing(Ie,void 0,void 0,z)}return oe?(fe==null||fe.setFocusInOnEditor(U),U.focusCell()):U.focusCell(!0),!0}moveToNextCellNotEditing(R,T){let z=this.beans.visibleCols.allCols,G;G=R instanceof s.RowCtrl?et(pe({},R.getRowPosition()),{column:T?z[0]:(0,r._last)(z)}):R.cellPosition;let U=this.findNextCellToFocusOn(G,T,!1);if(U===!1)return null;if(U instanceof u.CellCtrl)U.focusCell(!0);else if(U)return this.tryToFocusFullWidthRow(U.getRowPosition(),T);return(0,m._exists)(U)}findNextCellToFocusOn(R,T,z){let G=R,U=this.beans,{cellNavigation:X,gos:Q,focusSvc:oe,rowRenderer:le,rangeSvc:fe}=U;for(;;){R!==G&&(R=G),T||(G=this.getLastCellOfColSpan(G)),G=X.getNextTabbedCell(G,T);let ye=Q.getCallback("tabToNextCell");if((0,m._exists)(ye)){let ze=ye({backwards:T,editing:z,previousCellPosition:R,nextCellPosition:G||null});if(ze===!0)G=R;else{if(ze===!1)return!1;G={rowIndex:ze.rowIndex,column:ze.column,rowPinned:ze.rowPinned}}}if(!G)return null;if(G.rowIndex<0){let ze=(0,v.getFocusHeaderRowCount)(U);return oe.focusHeaderPosition({headerPosition:{headerRowIndex:ze+G.rowIndex,column:G.column},fromCell:!0}),null}let ke=Q.get("editType")==="fullRow";if(z&&!ke&&!this.isCellEditable(G))continue;this.ensureCellVisible(G);let Ie=(0,F._getCellByPosition)(U,G);if(!Ie){let ze=le.getRowByPosition(G);if(!ze||!ze.isFullWidth()||z)continue;return ze}if(!X.isSuppressNavigable(Ie.column,Ie.rowNode))return fe==null||fe.setRangeToCell(G),Ie}}isCellEditable(R){let T=this.lookupRowNodeForCell(R);return!!T&&R.column.isCellEditable(T)}lookupRowNodeForCell({rowIndex:R,rowPinned:T}){let{pinnedRowModel:z,rowModel:G}=this.beans;return T==="top"?z==null?void 0:z.getPinnedTopRow(R):T==="bottom"?z==null?void 0:z.getPinnedBottomRow(R):G.getRow(R)}navigateToNextCell(R,T,z,G){let U=z,X=!1,Q=this.beans,{cellNavigation:oe,focusSvc:le,gos:fe}=Q;for(;U&&(U===z||!this.isValidNavigateCell(U));)fe.get("enableRtl")?T===M.KeyCode.LEFT&&(U=this.getLastCellOfColSpan(U)):T===M.KeyCode.RIGHT&&(U=this.getLastCellOfColSpan(U)),U=oe.getNextCellToFocus(T,U),X=(0,m._missing)(U);if(X&&R&&R.key===M.KeyCode.UP&&(U={rowIndex:-1,rowPinned:null,column:z.column}),G){let ke=fe.getCallback("navigateToNextCell");if((0,m._exists)(ke)){let Ie=ke({key:T,previousCellPosition:z,nextCellPosition:U||null,event:R});U=(0,m._exists)(Ie)?{rowPinned:Ie.rowPinned,rowIndex:Ie.rowIndex,column:Ie.column}:null}}if(!U)return;if(U.rowIndex<0){let ke=(0,v.getFocusHeaderRowCount)(Q);return void le.focusHeaderPosition({headerPosition:{headerRowIndex:ke+U.rowIndex,column:z.column},event:R||void 0,fromCell:!0})}let ye=this.getNormalisedPosition(U);ye?this.focusPosition(ye):this.tryToFocusFullWidthRow(U)}getNormalisedPosition(R){this.ensureCellVisible(R);let T=(0,F._getCellByPosition)(this.beans,R);return T?(R=T.cellPosition,this.ensureCellVisible(R),R):null}tryToFocusFullWidthRow(R,T){let{visibleCols:z,rowRenderer:G,focusSvc:U,eventSvc:X}=this.beans,Q=z.allCols,oe=G.getRowByPosition(R);if(!oe||!oe.isFullWidth())return!1;let le=U.getFocusedCell(),fe={rowIndex:R.rowIndex,rowPinned:R.rowPinned,column:R.column||(T?(0,r._last)(Q):Q[0])};this.focusPosition(fe);let ye=T==null?le!=null&&(0,F._isRowBefore)(fe,le):T;return X.dispatchEvent({type:"fullWidthRowFocused",rowIndex:fe.rowIndex,rowPinned:fe.rowPinned,column:fe.column,isFullWidthCell:!0,fromBelow:ye}),!0}focusPosition(R){let{focusSvc:T,rangeSvc:z}=this.beans;T.setFocusedCell({rowIndex:R.rowIndex,column:R.column,rowPinned:R.rowPinned,forceBrowserFocus:!0}),z==null||z.setRangeToCell(R)}isValidNavigateCell(R){return!!(0,F._getRowNode)(this.beans,R)}getLastCellOfColSpan(R){let T=(0,F._getCellByPosition)(this.beans,R);if(!T)return R;let z=T.getColSpanningList();return z.length===1?R:{rowIndex:R.rowIndex,column:(0,r._last)(z),rowPinned:R.rowPinned}}ensureCellVisible(R){let T=(0,f._isGroupRowsSticky)(this.gos),z=this.beans.rowModel.getRow(R.rowIndex),G=T&&(z==null?void 0:z.sticky),{scrollFeature:U}=this.gridBodyCon;!G&&(0,m._missing)(R.rowPinned)&&U.ensureIndexVisible(R.rowIndex),R.column.isPinned()||U.ensureColumnVisible(R.column)}}function w(k){return k.ctrlsSvc.getScrollFeature().getVScrollPosition()}x.NavigationService=b},2550:function(ne,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.PageBoundsListener=void 0;let M=p(8731);class A extends M.BeanStub{constructor(){super(...arguments),this.beanName="pageBoundsListener"}postConstruct(){this.addManagedEventListeners({modelUpdated:this.onModelUpdated.bind(this),recalculateRowBounds:this.calculatePages.bind(this)}),this.onModelUpdated()}onModelUpdated(D){var f,v,u,s,r;this.calculatePages(),this.eventSvc.dispatchEvent({type:"paginationChanged",animate:(f=D==null?void 0:D.animate)!=null?f:!1,newData:(v=D==null?void 0:D.newData)!=null?v:!1,newPage:(u=D==null?void 0:D.newPage)!=null?u:!1,newPageSize:(s=D==null?void 0:D.newPageSize)!=null?s:!1,keepRenderedRows:(r=D==null?void 0:D.keepRenderedRows)!=null?r:!1})}calculatePages(){let{pageBounds:D,pagination:f,rowModel:v}=this.beans;f?f.calculatePages():D.calculateBounds(0,v.getRowCount()-1)}}x.PageBoundsListener=A},3003:function(ne,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.PageBoundsService=void 0;let M=p(8731);class A extends M.BeanStub{constructor(){super(...arguments),this.beanName="pageBounds",this.pixelOffset=0}getFirstRow(){var D,f;return(f=(D=this.topRowBounds)==null?void 0:D.rowIndex)!=null?f:-1}getLastRow(){var D,f;return(f=(D=this.bottomRowBounds)==null?void 0:D.rowIndex)!=null?f:-1}getCurrentPageHeight(){let{topRowBounds:D,bottomRowBounds:f}=this;return D&&f?Math.max(f.rowTop+f.rowHeight-D.rowTop,0):0}getCurrentPagePixelRange(){var v;let{topRowBounds:D,bottomRowBounds:f}=this;return{pageFirstPixel:(v=D==null?void 0:D.rowTop)!=null?v:0,pageLastPixel:f?f.rowTop+f.rowHeight:0}}calculateBounds(D,f){let{rowModel:v}=this.beans,u=v.getRowBounds(D);u&&(u.rowIndex=D),this.topRowBounds=u;let s=v.getRowBounds(f);s&&(s.rowIndex=f),this.bottomRowBounds=s,this.calculatePixelOffset()}getPixelOffset(){return this.pixelOffset}calculatePixelOffset(){var f,v;let D=(v=(f=this.topRowBounds)==null?void 0:f.rowTop)!=null?v:0;this.pixelOffset!==D&&(this.pixelOffset=D,this.eventSvc.dispatchEvent({type:"paginationPixelOffsetChanged"}))}}x.PageBoundsService=A},2078:function(ne,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.PageSizeSelectorSelector=x.PageSizeSelectorComp=void 0;let M=p(1502),A=p(3507),F=p(7764),D=p(159),f=p(8020),v="paginationPageSizeSelector";class u extends f.Component{wireBeans(r){this.pagination=r.pagination}constructor(){super('<span class="ag-paging-page-size"></span>'),this.hasEmptyOption=!1,this.handlePageSizeItemSelected=()=>{if(!this.selectPageSizeComp)return;let r=this.selectPageSizeComp.getValue();if(!r)return;let d=Number(r);isNaN(d)||d<1||d===this.pagination.getPageSize()||(this.pagination.setPageSize(d,"pageSizeSelector"),this.hasEmptyOption&&this.toggleSelectDisplay(!0),this.selectPageSizeComp.getFocusableElement().focus())}}postConstruct(){this.addManagedPropertyListener(v,()=>{this.onPageSizeSelectorValuesChange()}),this.addManagedEventListeners({paginationChanged:r=>this.handlePaginationChanged(r)})}handlePaginationChanged(r){if(!this.selectPageSizeComp||!(r!=null&&r.newPageSize))return;let d=this.pagination.getPageSize();this.getPageSizeSelectorValues().includes(d)?this.selectPageSizeComp.setValue(d.toString()):this.hasEmptyOption?this.selectPageSizeComp.setValue(""):this.toggleSelectDisplay(!0)}toggleSelectDisplay(r){this.selectPageSizeComp&&!r&&this.reset(),r&&(this.reloadPageSizesSelector(),this.selectPageSizeComp)}reset(){(0,A._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")&&this.gos.get(v)!==!1}reloadPageSizesSelector(){let r=this.getPageSizeSelectorValues(),d=this.pagination.getPageSize(),g=!d||!r.includes(d);if(g){let b=this.gos.exists("paginationPageSize"),w=this.gos.get(v)!==!0;(0,F._warn)(94,{pageSizeSet:b,pageSizesSet:w,pageSizeOptions:r,paginationPageSizeOption:d}),w||(0,F._warn)(95,{paginationPageSizeOption:d,paginationPageSizeSelector:v}),r.unshift("")}let m=String(g?"":d);this.selectPageSizeComp?((0,M._areEqual)(this.pageSizeOptions,r)||(this.selectPageSizeComp.clearOptions().addOptions(this.createPageSizeSelectOptions(r)),this.pageSizeOptions=r),this.selectPageSizeComp.setValue(m,!0)):this.createPageSizeSelectorComp(r,m),this.hasEmptyOption=g}createPageSizeSelectOptions(r){return r.map(d=>({value:String(d)}))}createPageSizeSelectorComp(r,d){let g=this.getLocaleTextFunc(),m=g("pageSizeSelectorLabel","Page Size:"),b=g("ariaPageSizeSelectorLabel","Page Size");this.selectPageSizeComp=this.createManagedBean(new D.AgSelect).addOptions(this.createPageSizeSelectOptions(r)).setValue(d).setAriaLabel(b).setLabel(m).onValueChange(()=>this.handlePageSizeItemSelected()),this.appendChild(this.selectPageSizeComp)}getPageSizeSelectorValues(){let r=[20,50,100],d=this.gos.get(v);return Array.isArray(d)&&(d!=null&&d.length)?[...d].sort((g,m)=>g-m):r}destroy(){this.toggleSelectDisplay(!1),super.destroy()}}x.PageSizeSelectorComp=u,x.PageSizeSelectorSelector={selector:"AG-PAGE-SIZE-SELECTOR",component:u}},5794:function(ne,x){Object.defineProperty(x,"__esModule",{value:!0}),x.paginationGoToPage=x.paginationGoToLastPage=x.paginationGoToFirstPage=x.paginationGoToPreviousPage=x.paginationGoToNextPage=x.paginationGetRowCount=x.paginationGetTotalPages=x.paginationGetCurrentPage=x.paginationGetPageSize=x.paginationIsLastPageFound=void 0,x.paginationIsLastPageFound=function(p){return p.rowModel.isLastRowIndexKnown()},x.paginationGetPageSize=function(p){var M,A;return(A=(M=p.pagination)==null?void 0:M.getPageSize())!=null?A:100},x.paginationGetCurrentPage=function(p){var M,A;return(A=(M=p.pagination)==null?void 0:M.getCurrentPage())!=null?A:0},x.paginationGetTotalPages=function(p){var M,A;return(A=(M=p.pagination)==null?void 0:M.getTotalPages())!=null?A:1},x.paginationGetRowCount=function(p){return p.pagination?p.pagination.getMasterRowCount():p.rowModel.getRowCount()},x.paginationGoToNextPage=function(p){var M;(M=p.pagination)==null||M.goToNextPage()},x.paginationGoToPreviousPage=function(p){var M;(M=p.pagination)==null||M.goToPreviousPage()},x.paginationGoToFirstPage=function(p){var M;(M=p.pagination)==null||M.goToFirstPage()},x.paginationGoToLastPage=function(p){var M;(M=p.pagination)==null||M.goToLastPage()},x.paginationGoToPage=function(p,M){var A;(A=p.pagination)==null||A.goToPage(M)}},90:function(ne,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.PaginationAutoPageSizeService=void 0;let M=p(8731),A=p(7274),F=p(2043);class D extends M.BeanStub{constructor(){super(...arguments),this.beanName="paginationAutoPageSizeSvc"}postConstruct(){this.beans.ctrlsSvc.whenReady(this,v=>{this.centerRowsCtrl=v.center;let u=this.checkPageSize.bind(this);this.addManagedEventListeners({bodyHeightChanged:u,scrollVisibilityChanged:u}),this.addManagedPropertyListener("paginationAutoPageSize",this.onPaginationAutoSizeChanged.bind(this)),this.checkPageSize()})}notActive(){return!this.gos.get("paginationAutoPageSize")||this.centerRowsCtrl==null}onPaginationAutoSizeChanged(){this.notActive()?this.beans.pagination.unsetAutoCalculatedPageSize():this.checkPageSize()}checkPageSize(){if(this.notActive())return;let v=this.centerRowsCtrl.viewportSizeFeature.getBodyHeight();if(v>0){let u=this.beans,s=()=>{let r=Math.max((0,A._getRowHeightAsNumber)(u),1),d=Math.floor(v/r);u.pagination.setPageSize(d,"autoCalculated")};this.isBodyRendered?(0,F._debounce)(this,s,50)():(s(),this.isBodyRendered=!0)}else this.isBodyRendered=!1}}x.PaginationAutoPageSizeService=D},462:function(ne,x){Object.defineProperty(x,"__esModule",{value:!0}),x.paginationCompCSS=void 0,x.paginationCompCSS=".ag-paging-panel{align-items:center;border-top:var(--ag-footer-row-border);display:flex;gap:calc(var(--ag-spacing)*4);height:max(var(--ag-row-height),22px);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}"},300:function(ne,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.PaginationSelector=x.PaginationComp=void 0;let M=p(9853),A=p(5230),F=p(2331),D=p(9970),f=p(7698),v=p(8020),u=p(8332),s=p(2078),r=p(462);class d extends u.TabGuardComp{wireBeans(m){this.rowModel=m.rowModel,this.pagination=m.pagination,this.ariaAnnounce=m.ariaAnnounce}constructor(){super(),this.btFirst=v.RefPlaceholder,this.btPrevious=v.RefPlaceholder,this.btNext=v.RefPlaceholder,this.btLast=v.RefPlaceholder,this.lbRecordCount=v.RefPlaceholder,this.lbFirstRowOnPage=v.RefPlaceholder,this.lbLastRowOnPage=v.RefPlaceholder,this.lbCurrent=v.RefPlaceholder,this.lbTotal=v.RefPlaceholder,this.pageSizeComp=v.RefPlaceholder,this.previousAndFirstButtonsDisabled=!1,this.nextButtonDisabled=!1,this.lastButtonDisabled=!1,this.areListenersSetup=!1,this.allowFocusInnerElement=!1,this.registerCSS(r.paginationCompCSS)}postConstruct(){let m=this.gos.get("enableRtl");this.setTemplate(this.getTemplate(),[s.PageSizeSelectorSelector]);let{btFirst:b,btPrevious:w,btNext:k,btLast:R}=this;this.activateTabIndex([b,w,k,R]),b.insertAdjacentElement("afterbegin",(0,D._createIconNoSpan)(m?"last":"first",this.beans)),w.insertAdjacentElement("afterbegin",(0,D._createIconNoSpan)(m?"next":"previous",this.beans)),k.insertAdjacentElement("afterbegin",(0,D._createIconNoSpan)(m?"previous":"next",this.beans)),R.insertAdjacentElement("afterbegin",(0,D._createIconNoSpan)(m?"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:T=>{this.allowFocusInnerElement?this.tabGuardFeature.getTabGuardCtrl().focusInnerElement(T):(0,F._focusGridInnerElement)(this.beans,T)},forceFocusOutWhenTabGuardsAreEmpty:!0}),this.onPaginationChanged()}setAllowFocus(m){this.allowFocusInnerElement=m}onPaginationChanged(){let m=this.gos.get("pagination")&&!this.gos.get("suppressPaginationPanel");this.setDisplayed(m),m&&(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(m=>{let{el:b,fn:w}=m;this.addManagedListeners(b,{click:w,keydown:k=>{k.key!==M.KeyCode.ENTER&&k.key!==M.KeyCode.SPACE||(k.preventDefault(),w())}})}),(0,F._addFocusableContainerListener)(this.beans,this,this.getGui()),this.areListenersSetup=!0)}onBtFirst(){this.previousAndFirstButtonsDisabled||this.pagination.goToFirstPage()}formatNumber(m){let b=this.gos.getCallback("paginationNumberFormatter");return b?b({value:m}):(0,f._formatNumberCommas)(m,this.getLocaleTextFunc.bind(this))}getTemplate(){let m=this.getLocaleTextFunc(),b=m("page","Page"),w=m("to","to"),k=m("of","of"),R=m("firstPage","First Page"),T=m("previousPage","Previous Page"),z=m("nextPage","Next Page"),G=m("lastPage","Last Page"),U=this.getCompId();return`<div class="ag-paging-panel ag-unselectable" id="ag-${U}">
                <ag-page-size-selector data-ref="pageSizeComp"></ag-page-size-selector>
                <span class="ag-paging-row-summary-panel">
                    <span id="ag-${U}-first-row" data-ref="lbFirstRowOnPage" class="ag-paging-row-summary-panel-number"></span>
                    <span id="ag-${U}-to">${w}</span>
                    <span id="ag-${U}-last-row" data-ref="lbLastRowOnPage" class="ag-paging-row-summary-panel-number"></span>
                    <span id="ag-${U}-of">${k}</span>
                    <span id="ag-${U}-row-count" data-ref="lbRecordCount" class="ag-paging-row-summary-panel-number"></span>
                </span>
                <span class="ag-paging-page-summary-panel" role="presentation">
                    <div data-ref="btFirst" class="ag-button ag-paging-button" role="button" aria-label="${R}"></div>
                    <div data-ref="btPrevious" class="ag-button ag-paging-button" role="button" aria-label="${T}"></div>
                    <span class="ag-paging-description">
                        <span id="ag-${U}-start-page">${b}</span>
                        <span id="ag-${U}-start-page-number" data-ref="lbCurrent" class="ag-paging-number"></span>
                        <span id="ag-${U}-of-page">${k}</span>
                        <span id="ag-${U}-of-page-number" data-ref="lbTotal" class="ag-paging-number"></span>
                    </span>
                    <div data-ref="btNext" class="ag-button ag-paging-button" role="button" aria-label="${z}"></div>
                    <div data-ref="btLast" class="ag-button ag-paging-button" role="button" aria-label="${G}"></div>
                </span>
            </div>`}onBtNext(){this.nextButtonDisabled||this.pagination.goToNextPage()}onBtPrevious(){this.previousAndFirstButtonsDisabled||this.pagination.goToPreviousPage()}onBtLast(){this.lastButtonDisabled||this.pagination.goToLastPage()}enableOrDisableButtons(){let m=this.pagination.getCurrentPage(),b=this.rowModel.isLastRowIndexKnown(),w=this.pagination.getTotalPages();this.previousAndFirstButtonsDisabled=m===0,this.toggleButtonDisabled(this.btFirst,this.previousAndFirstButtonsDisabled),this.toggleButtonDisabled(this.btPrevious,this.previousAndFirstButtonsDisabled);let k=this.isZeroPagesToDisplay(),R=m===w-1;this.nextButtonDisabled=R||k,this.lastButtonDisabled=!b||k||m===w-1,this.toggleButtonDisabled(this.btNext,this.nextButtonDisabled),this.toggleButtonDisabled(this.btLast,this.lastButtonDisabled)}toggleButtonDisabled(m,b){(0,A._setAriaDisabled)(m,b),m.classList.toggle("ag-disabled",b)}isZeroPagesToDisplay(){let m=this.rowModel.isLastRowIndexKnown(),b=this.pagination.getTotalPages();return m&&b===0}updateLabels(){let m=this.rowModel.isLastRowIndexKnown(),b=this.pagination.getTotalPages(),w=this.pagination.getMasterRowCount(),k=m?w:null;if(k===1){let Ie=this.rowModel.getRow(0);if(Ie&&Ie.group&&!(Ie.groupData||Ie.aggData))return void this.setTotalLabelsToZero()}let R=this.pagination.getCurrentPage(),T=this.pagination.getPageSize(),z,G;this.isZeroPagesToDisplay()?z=G=0:(z=T*R+1,G=z+T-1,m&&G>k&&(G=k));let U=!m&&w<z+T-1,X=this.formatNumber(z),Q;this.lbFirstRowOnPage.textContent=X;let oe=this.getLocaleTextFunc();Q=U?oe("pageLastRowUnknown","?"):this.formatNumber(G),this.lbLastRowOnPage.textContent=Q;let le=b>0?R+1:0,fe=this.formatNumber(le),ye,ke;if(this.lbCurrent.textContent=fe,m)ye=this.formatNumber(b),ke=this.formatNumber(k);else{let Ie=oe("more","more");ye=Ie,ke=Ie}this.lbTotal.textContent=ye,this.lbRecordCount.textContent=ke,this.announceAriaStatus(X,Q,ke,fe,ye)}announceAriaStatus(m,b,w,k,R){var oe,le;let T=this.getLocaleTextFunc(),z=T("page","Page"),G=T("to","to"),U=T("of","of"),X=`${m} ${G} ${b} ${U} ${w}`,Q=`${z} ${k} ${U} ${R}`;X!==this.ariaRowStatus&&(this.ariaRowStatus=X,(oe=this.ariaAnnounce)==null||oe.announceValue(X,"paginationRow")),Q!==this.ariaPageStatus&&(this.ariaPageStatus=Q,(le=this.ariaAnnounce)==null||le.announceValue(Q,"paginationPage"))}setTotalLabelsToZero(){let m=this.formatNumber(0);this.lbFirstRowOnPage.textContent=m,this.lbCurrent.textContent=m,this.lbLastRowOnPage.textContent=m,this.lbTotal.textContent=m,this.lbRecordCount.textContent=m,this.announceAriaStatus(m,m,m,m,m)}}x.PaginationComp=d,x.PaginationSelector={selector:"AG-PAGINATION",component:d}},1824:function(ne,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.PaginationModule=void 0;let M=p(7205),A=p(3137),F=p(5794),D=p(90),f=p(3937);x.PaginationModule={moduleName:"Pagination",version:M.VERSION,beans:[f.PaginationService,D.PaginationAutoPageSizeService],icons:{first:"first",previous:"previous",next:"next",last:"last"},apiFunctions:{paginationIsLastPageFound:F.paginationIsLastPageFound,paginationGetPageSize:F.paginationGetPageSize,paginationGetCurrentPage:F.paginationGetCurrentPage,paginationGetTotalPages:F.paginationGetTotalPages,paginationGetRowCount:F.paginationGetRowCount,paginationGoToNextPage:F.paginationGoToNextPage,paginationGoToPreviousPage:F.paginationGoToPreviousPage,paginationGoToFirstPage:F.paginationGoToFirstPage,paginationGoToLastPage:F.paginationGoToLastPage,paginationGoToPage:F.paginationGoToPage},dependsOn:[A.PopupModule]}},3937:function(ne,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.PaginationService=void 0;let M=p(8731),A=p(4422),F=p(300);class D extends M.BeanStub{constructor(){super(...arguments),this.beanName="pagination",this.currentPage=0,this.topDisplayedRowIndex=0,this.bottomDisplayedRowIndex=0,this.masterRowCount=0}postConstruct(){let v=this.gos;this.active=v.get("pagination"),this.pageSizeFromGridOptions=v.get("paginationPageSize"),this.paginateChildRows=this.isPaginateChildRows(),this.addManagedPropertyListener("pagination",this.onPaginationGridOptionChanged.bind(this)),this.addManagedPropertyListener("paginationPageSize",this.onPageSizeGridOptionChanged.bind(this))}getPaginationSelector(){return F.PaginationSelector}isPaginateChildRows(){let v=this.gos;return!!(v.get("groupHideParentOfSingleChild")||v.get("groupRemoveSingleChildren")||v.get("groupRemoveLowestSingleChildren"))||v.get("paginateChildRows")}onPaginationGridOptionChanged(){this.active=this.gos.get("pagination"),this.calculatePages(),this.dispatchPaginationChangedEvent({keepRenderedRows:!0})}onPageSizeGridOptionChanged(){this.setPageSize(this.gos.get("paginationPageSize"),"gridOptions")}goToPage(v){let u=this.currentPage;this.active&&u!==v&&typeof u=="number"&&(this.currentPage=v,this.calculatePages(),this.dispatchPaginationChangedEvent({newPage:!0}))}isRowPresent(v){return v.rowIndex>=this.topDisplayedRowIndex&&v.rowIndex<=this.bottomDisplayedRowIndex}getPageForIndex(v){return Math.floor(v/this.pageSize)}goToPageWithIndex(v){if(!this.active)return;let u=this.getPageForIndex(v);this.goToPage(u)}isRowInPage(v){return this.active?this.getPageForIndex(v.rowIndex)===this.currentPage:!0}getCurrentPage(){return this.currentPage}goToNextPage(){this.goToPage(this.currentPage+1)}goToPreviousPage(){this.goToPage(this.currentPage-1)}goToFirstPage(){this.goToPage(0)}goToLastPage(){let v=this.beans.rowModel.getRowCount(),u=Math.floor(v/this.pageSize);this.goToPage(u)}getPageSize(){return this.pageSize}getTotalPages(){return this.totalPages}setPage(v){this.currentPage=v}get pageSize(){return(0,A._exists)(this.pageSizeAutoCalculated)&&this.gos.get("paginationAutoPageSize")?this.pageSizeAutoCalculated:(0,A._exists)(this.pageSizeFromPageSizeSelector)?this.pageSizeFromPageSizeSelector:(0,A._exists)(this.pageSizeFromInitialState)?this.pageSizeFromInitialState:(0,A._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(this.pageSizeAutoCalculated===void 0)return;let v=this.pageSizeAutoCalculated;this.pageSizeAutoCalculated=void 0,this.pageSize!==v&&(this.calculatePages(),this.dispatchPaginationChangedEvent({newPageSize:!0}))}setPageSize(v,u){let s=this.pageSize;switch(u){case"autoCalculated":this.pageSizeAutoCalculated=v;break;case"pageSizeSelector":this.pageSizeFromPageSizeSelector=v,this.currentPage!==0&&this.goToFirstPage();break;case"initialState":this.pageSizeFromInitialState=v;break;case"gridOptions":this.pageSizeFromGridOptions=v,this.pageSizeFromInitialState=void 0,this.pageSizeFromPageSizeSelector=void 0,this.currentPage!==0&&this.goToFirstPage()}s!==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(){let v=this.totalPages;this.currentPage>=v&&(this.currentPage=v-1);let u=this.currentPage;(!isFinite(u)||isNaN(u)||u<0)&&(this.currentPage=0)}calculatePagesMasterRowsOnly(){let v=this.beans.rowModel,u=v.getTopLevelRowCount();if(this.masterRowCount=u,u<=0)return void this.setZeroRows();let s=this.pageSize,r=u-1;this.totalPages=Math.floor(r/s)+1,this.adjustCurrentPageIfInvalid();let d=this.currentPage,g=s*d,m=s*(d+1)-1;if(m>r&&(m=r),this.topDisplayedRowIndex=v.getTopLevelRowDisplayedIndex(g),m===r)this.bottomDisplayedRowIndex=v.getRowCount()-1;else{let b=v.getTopLevelRowDisplayedIndex(m+1);this.bottomDisplayedRowIndex=b-1}}getMasterRowCount(){return this.masterRowCount}calculatePagesAllRows(){let v=this.beans.rowModel.getRowCount();if(this.masterRowCount=v,v===0)return void this.setZeroRows();let{pageSize:u,currentPage:s}=this,r=v-1;this.totalPages=Math.floor(r/u)+1,this.adjustCurrentPageIfInvalid(),this.topDisplayedRowIndex=u*s,this.bottomDisplayedRowIndex=u*(s+1)-1,this.bottomDisplayedRowIndex>r&&(this.bottomDisplayedRowIndex=r)}calculatedPagesNotActive(){this.setPageSize(void 0,"autoCalculated"),this.totalPages=1,this.currentPage=0,this.topDisplayedRowIndex=0,this.bottomDisplayedRowIndex=this.beans.rowModel.getRowCount()-1}dispatchPaginationChangedEvent(v){let{keepRenderedRows:u=!1,newPage:s=!1,newPageSize:r=!1}=v;this.eventSvc.dispatchEvent({type:"paginationChanged",animate:!1,newData:!1,newPage:s,newPageSize:r,keepRenderedRows:u})}}x.PaginationService=D},7186:function(ne,x){Object.defineProperty(x,"__esModule",{value:!0}),x.pinnedColumnModuleCSS=void 0,x.pinnedColumnModuleCSS=".ag-pinned-left-floating-bottom,.ag-pinned-left-floating-top,.ag-pinned-right-floating-bottom,.ag-pinned-right-floating-top{display:inline-block;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}"},6219:function(ne,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.PinnedColumnModule=void 0;let M=p(7205),A=p(7186),F=p(7076);x.PinnedColumnModule={moduleName:"PinnedColumn",version:M.VERSION,beans:[F.PinnedColumnService],css:[A.pinnedColumnModuleCSS]}},7076:function(ne,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.PinnedColumnService=void 0;let M=p(2934),A=p(8731),F=p(2865),D=p(7274),f=p(3507),v=p(7764);class u extends A.BeanStub{constructor(){super(...arguments),this.beanName="pinnedCols"}postConstruct(){this.beans.ctrlsSvc.whenReady(this,d=>{this.gridBodyCtrl=d.gridBodyCtrl});let r=this.checkContainerWidths.bind(this);this.addManagedEventListeners({displayedColumnsChanged:r,displayedColumnsWidthChanged:r}),this.addManagedPropertyListener("domLayout",r)}checkContainerWidths(){let{gos:r,visibleCols:d,eventSvc:g}=this.beans,m=(0,D._isDomLayout)(r,"print"),b=m?0:d.getColsLeftWidth(),w=m?0:d.getDisplayedColumnsRightWidth();b!=this.leftWidth&&(this.leftWidth=b,g.dispatchEvent({type:"leftPinnedWidthChanged"})),w!=this.rightWidth&&(this.rightWidth=w,g.dispatchEvent({type:"rightPinnedWidthChanged"}))}keepPinnedColumnsNarrowerThanViewport(){let r=this.gridBodyCtrl.eBodyViewport,d=(0,f._getInnerWidth)(r);if(d<=50)return;let g=this.getPinnedColumnsOverflowingViewport(d-50),m=this.gos.getCallback("processUnpinnedColumns");g.length&&(m&&(g=m({columns:g,viewportWidth:d})),this.setColsPinned(g,null,"viewportSizeFeature"))}createPinnedWidthFeature(r,d){return new F.SetPinnedWidthFeature(r,d)}setColsPinned(r,d,g){let{colModel:m,colAnimation:b,visibleCols:w,gos:k}=this.beans;if(!m.cols||!(r!=null&&r.length))return;if((0,D._isDomLayout)(k,"print"))return void(0,v._warn)(37);let R;b==null||b.start(),R=d===!0||d==="left"?"left":d==="right"?"right":null;let T=[];r.forEach(z=>{if(!z)return;let G=m.getCol(z);G&&G.getPinned()!==R&&(this.setColPinned(G,R),T.push(G))}),T.length&&(w.refresh(g),(0,M.dispatchColumnPinnedEvent)(this.eventSvc,T,g)),b==null||b.finish()}initCol(r){let{pinned:d,initialPinned:g}=r.colDef;d!==void 0?this.setColPinned(r,d):this.setColPinned(r,g)}setColPinned(r,d){r.pinned=d===!0||d==="left"?"left":d==="right"?"right":null,r.dispatchStateUpdatedEvent("pinned")}setupHeaderPinnedWidth(r){let{scrollVisibleSvc:d}=this.beans;if(r.pinned==null)return;let g=r.pinned==="left",m=r.pinned==="right";r.hidden=!0;let b=()=>{let w=g?this.leftWidth:this.rightWidth;if(w==null)return;let k=w==0,R=r.hidden!==k,T=this.gos.get("enableRtl"),z=d.getScrollbarWidth(),G=d.verticalScrollShowing&&(T&&g||!T&&m)?w+z:w;r.comp.setPinnedContainerWidth(`${G}px`),r.comp.setDisplayed(!k),R&&(r.hidden=k,r.refresh())};r.addManagedEventListeners({leftPinnedWidthChanged:b,rightPinnedWidthChanged:b,scrollVisibilityChanged:b,scrollbarWidthChanged:b})}getHeaderResizeDiff(r,d){if(d.getPinned()){let{leftWidth:g,rightWidth:m}=this,b=(0,f._getInnerWidth)(this.beans.ctrlsSvc.getGridBodyCtrl().eBodyViewport)-50;if(g+m+r>b){if(!(b>g+m))return 0;r=b-g-m}}return r}getPinnedColumnsOverflowingViewport(r){var z,G;let d=((z=this.rightWidth)!=null?z:0)+((G=this.leftWidth)!=null?G:0);if(d<r)return[];let{visibleCols:g}=this.beans,m=[...g.leftCols],b=[...g.rightCols],w=0,k=0,R=[],T=d-0-r;for(;(k<m.length||w<b.length)&&T>0;){if(w<b.length){let U=b[w++];T-=U.getActualWidth(),R.push(U)}if(k<m.length&&T>0){let U=m[k++];T-=U.getActualWidth(),R.push(U)}}return R}}x.PinnedColumnService=u},1879:function(ne,x){Object.defineProperty(x,"__esModule",{value:!0}),x.getPinnedBottomRow=x.getPinnedTopRow=x.getPinnedBottomRowCount=x.getPinnedTopRowCount=void 0,x.getPinnedTopRowCount=function(p){var M,A;return(A=(M=p.pinnedRowModel)==null?void 0:M.getPinnedTopRowCount())!=null?A:0},x.getPinnedBottomRowCount=function(p){var M,A;return(A=(M=p.pinnedRowModel)==null?void 0:M.getPinnedBottomRowCount())!=null?A:0},x.getPinnedTopRow=function(p,M){var A;return(A=p.pinnedRowModel)==null?void 0:A.getPinnedTopRow(M)},x.getPinnedBottomRow=function(p,M){var A;return(A=p.pinnedRowModel)==null?void 0:A.getPinnedBottomRow(M)}},9294:function(ne,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.PinnedRowModel=void 0;let M=p(8731),A=p(3373),F=p(7274),D=p(7764);class f extends M.BeanStub{constructor(){super(...arguments),this.beanName="pinnedRowModel",this.nextId=0,this.pinnedTopRows={cache:{},order:[]},this.pinnedBottomRows={cache:{},order:[]}}postConstruct(){let m=this.gos;this.setPinnedRowData(m.get("pinnedTopRowData"),"top"),this.setPinnedRowData(m.get("pinnedBottomRowData"),"bottom"),this.addManagedPropertyListener("pinnedTopRowData",b=>this.setPinnedRowData(b.currentValue,"top")),this.addManagedPropertyListener("pinnedBottomRowData",b=>this.setPinnedRowData(b.currentValue,"bottom")),this.addManagedEventListeners({gridStylesChanged:this.onGridStylesChanges.bind(this)})}isEmpty(m){return this.getCache(m).order.length===0}isRowsToRender(m){return!this.isEmpty(m)}onGridStylesChanges(m){if(m.rowHeightChanged){let b=w=>{w.setRowHeight(w.rowHeight,!0)};r(this.pinnedBottomRows,b),r(this.pinnedTopRows,b)}}ensureRowHeightsValid(){let m=!1,b=0,w=k=>{if(k.rowHeightEstimated){let R=(0,F._getRowHeightForNode)(this.beans,k);k.setRowTop(b),k.setRowHeight(R.height),b+=R.height,m=!0}};return r(this.pinnedBottomRows,w),b=0,r(this.pinnedTopRows,w),this.eventSvc.dispatchEvent({type:"pinnedHeightChanged"}),m}setPinnedRowData(m,b){this.updateNodesFromRowData(m,b),this.eventSvc.dispatchEvent({type:"pinnedRowDataChanged"})}updateNodesFromRowData(m,b){var Q;let w=this.getCache(b);if(m===void 0)return w.order.length=0,void(w.cache={});let k=(0,F._getRowIdCallback)(this.gos),R=b==="top"?A.ROW_ID_PREFIX_TOP_PINNED:A.ROW_ID_PREFIX_BOTTOM_PINNED,T=new Set(w.order),z=[],G=new Set,U=0,X=-1;for(let oe of m){let le=(Q=k==null?void 0:k({data:oe,level:0,rowPinned:b}))!=null?Q:R+this.nextId++;if(G.has(le)){(0,D._warn)(96,{id:le,data:oe});continue}X++,G.add(le),z.push(le);let fe=u(w,le);if(fe!==void 0)fe.data!==oe&&fe.setData(oe),U+=this.setRowTopAndRowIndex(fe,U,X),T.delete(le);else{let ye=new A.RowNode(this.beans);ye.id=le,ye.data=oe,ye.rowPinned=b,U+=this.setRowTopAndRowIndex(ye,U,X),w.cache[le]=ye,w.order.push(le)}}T.forEach(oe=>{var le;(le=u(w,oe))==null||le.clearRowTopAndRowIndex(),delete w.cache[oe]}),w.order=z}setRowTopAndRowIndex(m,b,w){return m.setRowTop(b),m.setRowHeight((0,F._getRowHeightForNode)(this.beans,m).height),m.setRowIndex(w),m.rowHeight}getPinnedTopTotalHeight(){return v(this.pinnedTopRows)}getPinnedBottomTotalHeight(){return v(this.pinnedBottomRows)}getPinnedTopRowCount(){return d(this.pinnedTopRows)}getPinnedBottomRowCount(){return d(this.pinnedBottomRows)}getPinnedTopRow(m){return s(this.pinnedTopRows,m)}getPinnedBottomRow(m){return s(this.pinnedBottomRows,m)}getPinnedRowById(m,b){return u(this.getCache(b),m)}forEachPinnedRow(m,b){return r(this.getCache(m),b)}getCache(m){return m==="top"?this.pinnedTopRows:this.pinnedBottomRows}}function v(g){let m=d(g);if(m===0)return 0;let b=s(g,m-1);return b===void 0?0:b.rowTop+b.rowHeight}function u(g,m){return g.cache[m]}function s(g,m){return u(g,g.order[m])}function r(g,m){g.order.forEach((b,w)=>{let k=u(g,b);k&&m(k,w)})}function d(g){return g.order.length}x.PinnedRowModel=f},5423:function(ne,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.PinnedRowModule=void 0;let M=p(7205),A=p(1879),F=p(9294);x.PinnedRowModule={moduleName:"PinnedRow",version:M.VERSION,beans:[F.PinnedRowModel],apiFunctions:{getPinnedTopRowCount:A.getPinnedTopRowCount,getPinnedBottomRowCount:A.getPinnedBottomRowCount,getPinnedTopRow:A.getPinnedTopRow,getPinnedBottomRow:A.getPinnedBottomRow}}},920:function(ne,x){Object.defineProperty(x,"__esModule",{value:!0}),x._ALL_GRID_OPTIONS=x._FUNCTION_GRID_OPTIONS=x._BOOLEAN_GRID_OPTIONS=x._BOOLEAN_MIXED_GRID_OPTIONS=x._NUMBER_GRID_OPTIONS=void 0,x._NUMBER_GRID_OPTIONS=["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"],x._BOOLEAN_MIXED_GRID_OPTIONS=["cellSelection","sideBar","suppressGroupChangesColumnVisibility","groupAggFiltering","suppressStickyTotalRow","groupHideParentOfSingleChild"],x._BOOLEAN_GRID_OPTIONS=["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","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"],x._FUNCTION_GRID_OPTIONS=["doesExternalFilterPass","processPivotResultColDef","processPivotResultColGroupDef","getBusinessKeyForNode","isRowSelectable","rowDragText","groupRowRenderer","dragAndDropImageComponent","fullWidthCellRenderer","loadingCellRenderer","loadingOverlayComponent","noRowsOverlayComponent","detailCellRenderer","quickFilterParser","quickFilterMatcher","getLocaleText","isExternalFilterPresent","getRowHeight","getRowClass","getRowStyle","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"],x._ALL_GRID_OPTIONS=["sortingOrder","alignedGrids","rowData","columnDefs","excelStyles","pinnedTopRowData","pinnedBottomRowData","chartThemes","rowClass","paginationPageSizeSelector","components","rowStyle","context","autoGroupColumnDef","localeText","icons","datasource","dragAndDropImageComponentParams","serverSideDatasource","viewportDatasource","groupRowRendererParams","aggFuncs","fullWidthCellRendererParams","defaultColGroupDef","defaultColDef","defaultCsvExportParams","defaultExcelExportParams","columnTypes","rowClassRules","detailCellRendererParams","loadingCellRendererParams","loadingOverlayComponentParams","noRowsOverlayComponentParams","popupParent","statusBar","chartThemeOverrides","customChartThemes","chartToolPanelsDef","dataTypeDefinitions","advancedFilterParent","advancedFilterBuilderParams","initialState","autoSizeStrategy","selectionColumnDef","overlayLoadingTemplate","overlayNoRowsTemplate","gridId","quickFilterText","rowModelType","editType","domLayout","clipboardDelimiter","rowGroupPanelShow","multiSortKey","pivotColumnGroupTotals","pivotRowTotals","pivotPanelShow","fillHandleDirection","groupDisplayType","treeDataDisplayType","colResizeDefault","tooltipTrigger","serverSidePivotResultFieldSeparator","columnMenu","tooltipShowMode","grandTotalRow",...x._NUMBER_GRID_OPTIONS,...x._FUNCTION_GRID_OPTIONS,...x._BOOLEAN_GRID_OPTIONS,...x._BOOLEAN_MIXED_GRID_OPTIONS,"theme","rowSelection"]},1331:function(ne,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.AriaAnnouncementService=void 0;let M=p(8731),A=p(7274),F=p(5230),D=p(3507),f=p(2043);class v extends M.BeanStub{constructor(){super(),this.beanName="ariaAnnounce",this.descriptionContainer=null,this.pendingAnnouncements=new Map,this.lastAnnouncement="",this.updateAnnouncement=(0,f._debounce)(this,this.updateAnnouncement.bind(this),200)}postConstruct(){let s=this.beans,r=(0,A._getDocument)(s),d=this.descriptionContainer=r.createElement("div");d.classList.add("ag-aria-description-container"),(0,F._setAriaLive)(d,"polite"),(0,F._setAriaRelevant)(d,"additions text"),(0,F._setAriaAtomic)(d,!0),s.eGridDiv.appendChild(d)}announceValue(s,r){this.pendingAnnouncements.set(r,s),this.updateAnnouncement()}updateAnnouncement(){if(!this.descriptionContainer)return;let s=Array.from(this.pendingAnnouncements.values()).join(". ");this.pendingAnnouncements.clear(),this.descriptionContainer.textContent="",setTimeout(()=>{if(this.isAlive()&&this.descriptionContainer){let r=s;this.lastAnnouncement===r&&(r=`${r}.`),this.lastAnnouncement=r,this.descriptionContainer.textContent=r}},50)}destroy(){var r;super.destroy();let{descriptionContainer:s}=this;s&&((0,D._clearElement)(s),(r=s.parentElement)==null||r.removeChild(s)),this.descriptionContainer=null,this.pendingAnnouncements.clear()}}x.AriaAnnouncementService=v},3433:function(ne,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.AriaModule=void 0;let M=p(7205),A=p(1331);x.AriaModule={moduleName:"Aria",version:M.VERSION,beans:[A.AriaAnnouncementService]}},8763:function(ne,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.AutoWidthCalculator=void 0;let M=p(8731);class A extends M.BeanStub{constructor(){super(...arguments),this.beanName="autoWidthCalc"}postConstruct(){this.beans.ctrlsSvc.whenReady(this,D=>{this.centerRowContainerCtrl=D.center})}getPreferredWidthForColumn(D,f){let v=this.getHeaderCellForColumn(D);if(!v)return-1;let u=this.beans.rowRenderer.getAllCellsNotSpanningForColumn(D);return f||u.push(v),this.addElementsToContainerAndGetWidth(u)}getPreferredWidthForColumnGroup(D){let f=this.getHeaderCellForColumn(D);return f?this.addElementsToContainerAndGetWidth([f]):-1}addElementsToContainerAndGetWidth(D){let f=document.createElement("form");f.style.position="fixed";let v=this.centerRowContainerCtrl.eContainer;D.forEach(s=>this.cloneItemIntoDummy(s,f)),v.appendChild(f);let u=f.offsetWidth;return v.removeChild(f),u+this.gos.get("autoSizePadding")}getHeaderCellForColumn(D){let f=null;return this.beans.ctrlsSvc.getHeaderRowContainerCtrls().forEach(v=>{let u=v.getHtmlElementForColumnHeader(D);u!=null&&(f=u)}),f}cloneItemIntoDummy(D,f){let v=D.cloneNode(!0);v.style.width="",v.style.position="static",v.style.left="";let u=document.createElement("div"),s=u.classList;["ag-header-cell","ag-header-group-cell"].some(d=>v.classList.contains(d))?(s.add("ag-header","ag-header-row"),u.style.position="static"):s.add("ag-row");let r=D.parentElement;for(;r;){if(["ag-header-row","ag-row"].some(d=>r.classList.contains(d))){for(let d=0;d<r.classList.length;d++){let g=r.classList[d];g!="ag-row-position-absolute"&&s.add(g)}break}r=r.parentElement}u.appendChild(v),f.appendChild(u)}}x.AutoWidthCalculator=A},447:function(ne,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.AutoWidthModule=void 0;let M=p(7205),A=p(8763);x.AutoWidthModule={moduleName:"AutoWidth",version:M.VERSION,beans:[A.AutoWidthCalculator]}},2308:function(ne,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.CellComp=void 0;let M=p(7274),A=p(7230),F=p(5230),D=p(3507),f=p(4422),v=p(7766),u=p(7764),s=p(8020);class r extends s.Component{constructor(g,m,b,w,k){super(),this.cellCtrl=m,this.rendererVersion=0,this.editorVersion=0,this.beans=g,this.column=m.column,this.rowNode=m.rowNode,this.eRow=w;let R=document.createElement("div");R.setAttribute("comp-id",`${this.getCompId()}`),this.setTemplateFromElement(R);let T=this.getGui();this.forceWrapper=m.isForceWrapper(),this.refreshWrapper(!1),(0,F._setAriaRole)(T,m.getCellAriaRole()),T.setAttribute("col-id",m.colIdSanitised);let z={addOrRemoveCssClass:(G,U)=>this.addOrRemoveCssClass(G,U),setUserStyles:G=>(0,D._addStylesToElement)(T,G),getFocusableElement:()=>this.getFocusableElement(),setIncludeSelection:G=>this.includeSelection=G,setIncludeRowDrag:G=>this.includeRowDrag=G,setIncludeDndSource:G=>this.includeDndSource=G,setRenderDetails:(G,U,X)=>this.setRenderDetails(G,U,X),setEditDetails:(G,U,X)=>this.setEditDetails(G,U,X),getCellEditor:()=>this.cellEditor||null,getCellRenderer:()=>this.cellRenderer||null,getParentOfValue:()=>this.getParentOfValue()};m.setComp(z,this.getGui(),this.eCellWrapper,b,k,void 0)}getParentOfValue(){return this.eCellValue?this.eCellValue:this.eCellWrapper?this.eCellWrapper:this.getGui()}setRenderDetails(g,m,b){if(this.cellEditor&&!this.cellEditorPopupWrapper)return;this.firstRender=this.firstRender==null;let w=this.refreshWrapper(!1);this.refreshEditStyles(!1),g?!(b||w)&&this.refreshCellRenderer(g)||(this.destroyRenderer(),this.createCellRendererInstance(g)):(this.destroyRenderer(),this.insertValueWithoutCellRenderer(m))}setEditDetails(g,m,b){g?this.createCellEditorInstance(g,m,b):this.destroyEditor()}removeControls(){this.checkboxSelectionComp=this.beans.context.destroyBean(this.checkboxSelectionComp),this.dndSourceComp=this.beans.context.destroyBean(this.dndSourceComp),this.rowDraggingComp=this.beans.context.destroyBean(this.rowDraggingComp)}refreshWrapper(g){let m=this.includeRowDrag||this.includeDndSource||this.includeSelection,b=m||this.forceWrapper,w=b&&this.eCellWrapper==null;if(w){let U=document.createElement("div");U.setAttribute("role","presentation"),U.setAttribute("class","ag-cell-wrapper"),this.eCellWrapper=U,this.getGui().appendChild(this.eCellWrapper)}let k=!b&&this.eCellWrapper!=null;k&&((0,D._removeFromParent)(this.eCellWrapper),this.eCellWrapper=void 0),this.addOrRemoveCssClass("ag-cell-value",!b);let R=!g&&b,T=R&&this.eCellValue==null;if(T){let U=document.createElement("span");U.setAttribute("role","presentation"),U.setAttribute("class","ag-cell-value"),this.eCellValue=U,this.eCellWrapper.appendChild(this.eCellValue)}let z=!R&&this.eCellValue!=null;z&&((0,D._removeFromParent)(this.eCellValue),this.eCellValue=void 0);let G=w||k||T||z;return G&&this.removeControls(),g||m&&this.addControls(),G}addControls(){this.includeRowDrag&&this.rowDraggingComp==null&&(this.rowDraggingComp=this.cellCtrl.createRowDragComp(),this.rowDraggingComp&&this.eCellWrapper.insertBefore(this.rowDraggingComp.getGui(),this.eCellValue)),this.includeDndSource&&this.dndSourceComp==null&&(this.dndSourceComp=this.cellCtrl.createDndSource(),this.dndSourceComp&&this.eCellWrapper.insertBefore(this.dndSourceComp.getGui(),this.eCellValue)),this.includeSelection&&this.checkboxSelectionComp==null&&(this.checkboxSelectionComp=this.cellCtrl.createSelectionCheckbox(),this.checkboxSelectionComp&&this.eCellWrapper.insertBefore(this.checkboxSelectionComp.getGui(),this.eCellValue))}createCellEditorInstance(g,m,b){let w=this.editorVersion,k=g.newAgStackInstance(),{params:R}=g;k.then(T=>this.afterCellEditorCreated(w,T,R,m,b)),(0,f._missing)(this.cellEditor)&&R.cellStartedEdit&&this.cellCtrl.focusCell(!0)}insertValueWithoutCellRenderer(g){let m=this.getParentOfValue();(0,D._clearElement)(m);let b=g!=null?(0,v._escapeString)(g,!0):null;b!=null&&(m.textContent=b)}destroyEditorAndRenderer(){this.destroyRenderer(),this.destroyEditor()}destroyRenderer(){let{context:g}=this.beans;this.cellRenderer=g.destroyBean(this.cellRenderer),(0,D._removeFromParent)(this.cellRendererGui),this.cellRendererGui=null,this.rendererVersion++}destroyEditor(){let{context:g}=this.beans;this.hideEditorPopup&&this.hideEditorPopup(),this.hideEditorPopup=void 0,this.cellEditor=g.destroyBean(this.cellEditor),this.cellEditorPopupWrapper=g.destroyBean(this.cellEditorPopupWrapper),(0,D._removeFromParent)(this.cellEditorGui),this.cellEditorGui=null,this.editorVersion++}refreshCellRenderer(g){if(this.cellRenderer==null||this.cellRenderer.refresh==null||this.cellRendererClass!==g.componentClass)return!1;let m=this.cellRenderer.refresh(g.params);return m===!0||m===void 0}createCellRendererInstance(g){let m=!this.beans.gos.get("suppressAnimationFrame")&&this.beans.animationFrameSvc,b=this.rendererVersion,{componentClass:w}=g,k=()=>{if(this.rendererVersion!==b||!this.isAlive())return;let R=g.newAgStackInstance(),T=this.afterCellRendererCreated.bind(this,b,w);R&&R.then(T)};m&&this.firstRender?this.beans.animationFrameSvc.createTask(k,this.rowNode.rowIndex,"createTasksP2"):k()}afterCellRendererCreated(g,m,b){if(!this.isAlive()||g!==this.rendererVersion)this.beans.context.destroyBean(b);else if(this.cellRenderer=b,this.cellRendererClass=m,this.cellRendererGui=this.cellRenderer.getGui(),this.cellRendererGui!=null){let w=this.getParentOfValue();(0,D._clearElement)(w),w.appendChild(this.cellRendererGui)}}afterCellEditorCreated(g,m,b,w,k){if(g!==this.editorVersion)return void this.beans.context.destroyBean(m);if(m.isCancelBeforeStart&&m.isCancelBeforeStart())return this.beans.context.destroyBean(m),void this.cellCtrl.stopEditing(!0);if(!m.getGui)return(0,u._warn)(97,{colId:this.column.getId()}),void this.beans.context.destroyBean(m);this.cellEditor=m,this.cellEditorGui=m.getGui();let R=w||m.isPopup!==void 0&&m.isPopup();R?this.addPopupCellEditor(b,k):this.addInCellEditor(),this.refreshEditStyles(!0,R),m.afterGuiAttached&&m.afterGuiAttached(),this.cellCtrl.cellEditorAttached()}refreshEditStyles(g,m){this.addOrRemoveCssClass("ag-cell-inline-editing",g&&!m),this.addOrRemoveCssClass("ag-cell-popup-editing",g&&!!m),this.addOrRemoveCssClass("ag-cell-not-inline-editing",!g||!!m),this.cellCtrl.setInlineEditingCss()}addInCellEditor(){let g=this.getGui();g.contains((0,M._getActiveDomElement)(this.beans))&&g.focus(),this.destroyRenderer(),this.refreshWrapper(!0),this.clearParentOfValue(),this.cellEditorGui&&this.getParentOfValue().appendChild(this.cellEditorGui)}addPopupCellEditor(g,m){var oe,le;this.beans.gos.get("editType")==="fullRow"&&(0,u._warn)(98);let b=this.cellEditor;this.cellEditorPopupWrapper=this.beans.context.createBean(this.beans.editSvc.createPopupEditorWrapper(g));let w=this.cellEditorPopupWrapper.getGui();this.cellEditorGui&&w.appendChild(this.cellEditorGui);let k=this.beans.popupSvc,R=this.beans.gos.get("stopEditingWhenCellsLoseFocus"),T=m!=null?m:(le=(oe=b.getPopupPosition)==null?void 0:oe.call(b))!=null?le:"over",z=this.beans.gos.get("enableRtl"),G={ePopup:w,column:this.column,rowNode:this.rowNode,type:"popupCellEditor",eventSource:this.getGui(),position:T,alignSide:z?"right":"left",keepWithinBounds:!0},U=k.positionPopupByComponent.bind(k,G),X=(0,A._getLocaleTextFunc)(this.beans.localeSvc),Q=k.addPopup({modal:R,eChild:w,closeOnEsc:!0,closedCallback:()=>{this.cellCtrl.onPopupEditorClosed()},anchorToElement:this.getGui(),positionCallback:U,ariaLabel:X("ariaLabelCellEditor","Cell Editor")});Q&&(this.hideEditorPopup=Q.hideFunc)}detach(){this.eRow.removeChild(this.getGui())}destroy(){this.cellCtrl.stopEditing(),this.destroyEditorAndRenderer(),this.removeControls(),super.destroy()}clearParentOfValue(){let g=this.getGui();g.contains((0,M._getActiveDomElement)(this.beans))&&g.focus({preventScroll:!0}),(0,D._clearElement)(this.getParentOfValue())}}x.CellComp=r},814:function(ne,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.CellCtrl=x._getCellCtrlForEventTarget=x.DOM_DATA_KEY_CELL_CTRL=void 0;let M=p(3146),A=p(2036),F=p(8731),D=p(7274),f=p(1295),v=p(2612),u=p(5230),s=p(3507),r=p(2979),d=p(2331),g=p(4422),m=p(7766),b=p(7038),w=p(6368),k=p(3976);x.DOM_DATA_KEY_CELL_CTRL="cellCtrl",x._getCellCtrlForEventTarget=function(z,G){return(0,r._getCtrlForEventTarget)(z,G,x.DOM_DATA_KEY_CELL_CTRL)};let R=0;class T extends F.BeanStub{constructor(G,U,X,Q){super(),this.column=G,this.rowNode=U,this.rowCtrl=Q,this.rangeFeature=void 0,this.positionFeature=void 0,this.customStyleFeature=void 0,this.tooltipFeature=void 0,this.mouseListener=void 0,this.keyboardListener=void 0,this.suppressRefreshCell=!1,this.onCompAttachedFuncs=[],this.onEditorAttachedFuncs=[],this.beans=X,this.instanceId=G.getId()+"-"+R++,this.colIdSanitised=(0,m._escapeString)(this.column.getId()),this.createCellPosition(),this.updateAndFormatValue(!1)}shouldRestoreFocus(){return this.beans.focusSvc.shouldRestoreFocus(this.cellPosition)}onFocusOut(){this.beans.focusSvc.clearRestoreFocus()}addFeatures(){var X;let{beans:G}=this;this.positionFeature=new k.CellPositionFeature(this,G),this.customStyleFeature=(X=G.cellStyles)==null?void 0:X.createCellCustomStyleFeature(this,G),this.mouseListener=new w.CellMouseListenerFeature(this,G,this.column),this.keyboardListener=new b.CellKeyboardListenerFeature(this,G,this.rowNode,this.rowCtrl),this.column.isTooltipEnabled()&&this.enableTooltipFeature();let{rangeSvc:U}=G;U&&(0,D._isCellSelectionEnabled)(G.gos)&&(this.rangeFeature=U.createCellRangeFeature(G,this))}removeFeatures(){let G=this.beans.context;this.positionFeature=G.destroyBean(this.positionFeature),this.customStyleFeature=G.destroyBean(this.customStyleFeature),this.mouseListener=G.destroyBean(this.mouseListener),this.keyboardListener=G.destroyBean(this.keyboardListener),this.rangeFeature=G.destroyBean(this.rangeFeature),this.disableTooltipFeature()}enableTooltipFeature(G,U){var X;this.tooltipFeature=(X=this.beans.tooltipSvc)==null?void 0:X.enableCellTooltipFeature(this,G,U)}disableTooltipFeature(){this.tooltipFeature=this.beans.context.destroyBean(this.tooltipFeature)}setComp(G,U,X,Q,oe,le){var fe,ye,ke,Ie,ze;this.comp=G,this.eGui=U,this.printLayout=Q,le!=null||(le=this),this.addDomData(le),this.addFeatures(),le.addDestroyFunc(()=>this.removeFeatures()),this.onSuppressCellFocusChanged(this.beans.gos.get("suppressCellFocus")),this.onCellFocused(this.focusEventToRestore),this.applyStaticCssClasses(),this.setWrapText(),this.onFirstRightPinnedChanged(),this.onLastLeftPinnedChanged(),this.onColumnHover(),this.setupControlComps(),this.setupAutoHeight(X,le),this.refreshFirstAndLastStyles(),this.refreshAriaColIndex(),(fe=this.positionFeature)==null||fe.setComp(U),(ye=this.customStyleFeature)==null||ye.setComp(G),(ke=this.tooltipFeature)==null||ke.refreshTooltip(),(Ie=this.keyboardListener)==null||Ie.setComp(this.eGui),this.rangeFeature&&this.rangeFeature.setComp(G,U),oe&&this.isCellEditable()?(ze=this.beans.editSvc)==null||ze.startEditing(this):this.showValue(),this.onCompAttachedFuncs.length&&(this.onCompAttachedFuncs.forEach(Ye=>Ye()),this.onCompAttachedFuncs=[])}setupAutoHeight(G,U){var X;this.isAutoHeight=this.column.isAutoHeight(),this.isAutoHeight&&G&&((X=this.beans.rowAutoHeight)==null||X.setupCellAutoHeight(this,G,U))}getCellAriaRole(){var G;return(G=this.column.getColDef().cellAriaRole)!=null?G:"gridcell"}isCellRenderer(){let G=this.column.getColDef();return G.cellRenderer!=null||G.cellRendererSelector!=null}getValueToDisplay(){var G;return(G=this.valueFormatted)!=null?G:this.value}showValue(G=!1){var ke;let{beans:U,column:X,rowNode:Q,rangeFeature:oe}=this,{userCompFactory:le}=U,fe=this.getValueToDisplay(),ye;if(Q.stub&&((ke=Q.groupData)==null?void 0:ke[X.getId()])==null){let Ie=this.createCellRendererParams();ye=(0,A._getLoadingCellRendererDetails)(le,X.getColDef(),Ie)}else if(this.isCellRenderer()){let Ie=this.createCellRendererParams();ye=(0,A._getCellRendererDetails)(le,X.getColDef(),Ie)}this.comp.setRenderDetails(ye,fe,G),oe&&(0,v._requestAnimationFrame)(U,()=>oe==null?void 0:oe.refreshHandle())}setupControlComps(){let G=this.column.getColDef();this.includeSelection=this.isIncludeControl(this.isCheckboxSelection(G)),this.includeRowDrag=this.isIncludeControl(G.rowDrag),this.includeDndSource=this.isIncludeControl(G.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(G){return this.rowNode.rowPinned==null&&(typeof G=="function"||G===!0)}isCheckboxSelection(G){let{rowSelection:U}=this.beans.gridOptions;return G.checkboxSelection||(0,M.isColumnSelectionCol)(this.column)&&U&&typeof U!="string"&&(0,D._getCheckboxes)(U)}refreshShouldDestroy(){let G=this.column.getColDef(),U=this.includeSelection!=this.isIncludeControl(this.isCheckboxSelection(G)),X=this.includeRowDrag!=this.isIncludeControl(G.rowDrag),Q=this.includeDndSource!=this.isIncludeControl(G.dndSource),oe=this.isAutoHeight!=this.column.isAutoHeight();return U||X||Q||oe}onPopupEditorClosed(){this.editing&&this.stopEditingAndFocus()}stopEditing(G=!1){var U,X;return(X=(U=this.beans.editSvc)==null?void 0:U.stopEditing(this,G))!=null?X:!1}createCellRendererParams(){let{value:G,valueFormatted:U,column:X,rowNode:Q,comp:oe,eGui:le,beans:{valueSvc:fe,gos:ye}}=this;return ye.addGridCommonParams({value:G,valueFormatted:U,getValue:()=>fe.getValueForDisplay(X,Q),setValue:Ie=>fe.setValue(Q,X,Ie),formatValue:this.formatValue.bind(this),data:Q.data,node:Q,pinned:X.getPinned(),colDef:X.getColDef(),column:X,refreshCell:this.refreshCell.bind(this),eGridCell:le,eParentOfValue:oe.getParentOfValue(),registerRowDragger:(Ie,ze,Ye,xe)=>this.registerRowDragger(Ie,ze,xe),setTooltip:(Ie,ze)=>{var Ye;ye.assertModuleRegistered("Tooltip",3),this.tooltipFeature&&this.disableTooltipFeature(),this.enableTooltipFeature(Ie,ze),(Ye=this.tooltipFeature)==null||Ye.refreshTooltip()}})}onCellChanged(G){G.column===this.column&&this.refreshCell({})}refreshOrDestroyCell(G){var U;this.refreshShouldDestroy()?(U=this.rowCtrl)==null||U.recreateCell(this):this.refreshCell(G)}refreshCell(G){var ke,Ie,ze,Ye,xe,Te;if(this.suppressRefreshCell||this.editing)return;let U=this.column.getColDef(),X=G!=null&&!!G.newData,Q=G!=null&&!!G.suppressFlash,oe=U.field==null&&U.valueGetter==null&&U.showRowGroup==null,le=G&&G.forceRefresh||oe||X,fe=!!this.comp,ye=this.updateAndFormatValue(fe);if(fe){if(le||ye){this.showValue(X);let Ae=(ke=this.beans.filterManager)==null?void 0:ke.isSuppressFlashingCellsBecauseFiltering();!Q&&!Ae&&U.enableCellChangeFlash&&((Ie=this.beans.cellFlashSvc)==null||Ie.flashCell(this)),(ze=this.customStyleFeature)==null||ze.applyUserStyles(),(Ye=this.customStyleFeature)==null||Ye.applyClassesFromColDef()}(xe=this.tooltipFeature)==null||xe.refreshTooltip(),(Te=this.customStyleFeature)==null||Te.applyCellClassRules()}}stopEditingAndFocus(G=!1,U=!1){var X;(X=this.beans.editSvc)==null||X.stopEditingAndFocus(this,G,U)}isCellEditable(){return this.column.isCellEditable(this.rowNode)}formatValue(G){var U;return(U=this.callValueFormatter(G))!=null?U:G}callValueFormatter(G){return this.beans.valueSvc.formatValue(this.column,this.rowNode,G)}updateAndFormatValue(G){let U=this.value,X=this.valueFormatted;return this.value=this.beans.valueSvc.getValueForDisplay(this.column,this.rowNode),this.valueFormatted=this.callValueFormatter(this.value),!G||!this.valuesAreEqual(U,this.value)||this.valueFormatted!=X}valuesAreEqual(G,U){let X=this.column.getColDef();return X.equals?X.equals(G,U):G===U}addDomData(G){let U=this.eGui;(0,D._setDomData)(this.beans.gos,U,x.DOM_DATA_KEY_CELL_CTRL,this),G.addDestroyFunc(()=>(0,D._setDomData)(this.beans.gos,U,x.DOM_DATA_KEY_CELL_CTRL,null))}createEvent(G,U){let{rowNode:X,column:Q,value:oe}=this;return this.beans.gos.addGridCommonParams({type:U,node:X,data:X.data,value:oe,column:Q,colDef:Q.getColDef(),rowPinned:X.rowPinned,event:G,rowIndex:X.rowIndex})}processCharacter(G){var U;(U=this.keyboardListener)==null||U.processCharacter(G)}onKeyDown(G){var U;(U=this.keyboardListener)==null||U.onKeyDown(G)}onMouseEvent(G,U){var X;(X=this.mouseListener)==null||X.onMouseEvent(G,U)}getColSpanningList(){return this.positionFeature.getColSpanningList()}onLeftChanged(){var G;this.comp&&((G=this.positionFeature)==null||G.onLeftChanged())}onDisplayedColumnsChanged(){this.eGui&&(this.refreshAriaColIndex(),this.refreshFirstAndLastStyles())}refreshFirstAndLastStyles(){let{comp:G,column:U,beans:X}=this;(0,f.refreshFirstAndLastStyles)(G,U,X.visibleCols)}refreshAriaColIndex(){let G=this.beans.visibleCols.getAriaColIndex(this.column);(0,u._setAriaColIndex)(this.eGui,G)}onWidthChanged(){var G;return(G=this.positionFeature)==null?void 0:G.onWidthChanged()}getRowPosition(){let{rowIndex:G,rowPinned:U}=this.cellPosition;return{rowIndex:G,rowPinned:U}}updateRangeBordersIfRangeCount(){var G;this.comp&&((G=this.rangeFeature)==null||G.updateRangeBordersIfRangeCount())}onCellSelectionChanged(){var G;this.comp&&((G=this.rangeFeature)==null||G.onCellSelectionChanged())}isRangeSelectionEnabled(){return this.rangeFeature!=null}focusCell(G=!1){this.beans.focusSvc.setFocusedCell({rowIndex:this.cellPosition.rowIndex,column:this.column,rowPinned:this.rowNode.rowPinned,forceBrowserFocus:G})}onRowIndexChanged(){var G;this.createCellPosition(),this.onCellFocused(),(G=this.rangeFeature)==null||G.onCellSelectionChanged()}onSuppressCellFocusChanged(G){this.eGui&&(0,s._addOrRemoveAttribute)(this.eGui,"tabindex",G?void 0:-1)}onFirstRightPinnedChanged(){if(!this.comp)return;let G=this.column.isFirstRightPinned();this.comp.addOrRemoveCssClass("ag-cell-first-right-pinned",G)}onLastLeftPinnedChanged(){if(!this.comp)return;let G=this.column.isLastLeftPinned();this.comp.addOrRemoveCssClass("ag-cell-last-left-pinned",G)}onCellFocused(G){var oe;let{beans:U}=this;if((0,d._isCellFocusSuppressed)(U))return;let X=U.focusSvc.isCellFocused(this.cellPosition);if(!this.comp)return void(X&&(G==null?void 0:G.forceBrowserFocus)&&(this.focusEventToRestore=G));if(this.focusEventToRestore=void 0,this.comp.addOrRemoveCssClass("ag-cell-focus",X),X&&G&&G.forceBrowserFocus){let le=this.comp.getFocusableElement();if(this.editing){let fe=(0,d._findFocusableElements)(le,null,!0);fe.length&&(le=fe[0])}le.focus({preventScroll:!!G.preventScrollOnBrowserFocus})}let Q=U.gos.get("editType")==="fullRow";X||Q||!this.editing||((oe=U.editSvc)==null||oe.stopRowOrCellEdit(this)),X&&this.rowCtrl.announceDescription()}createCellPosition(){let{rowIndex:G,rowPinned:U}=this.rowNode;this.cellPosition={rowIndex:G,rowPinned:(0,g._makeNull)(U),column:this.column}}setInlineEditingCss(){var G;(G=this.beans.editSvc)==null||G.setInlineEditingCss(this.rowCtrl)}applyStaticCssClasses(){let{comp:G}=this;G.addOrRemoveCssClass("ag-cell",!0),G.addOrRemoveCssClass("ag-cell-not-inline-editing",!0);let U=this.column.isAutoHeight()==1;G.addOrRemoveCssClass("ag-cell-auto-height",U),G.addOrRemoveCssClass("ag-cell-normal-height",!U)}onColumnHover(){var G;(G=this.beans.colHover)==null||G.onCellColumnHover(this.column,this.comp)}onColDefChanged(){var G;this.comp&&(this.column.isTooltipEnabled()?(this.disableTooltipFeature(),this.enableTooltipFeature()):this.disableTooltipFeature(),this.setWrapText(),this.editing?(G=this.beans.editSvc)==null||G.handleColDefChanged(this):this.refreshOrDestroyCell({forceRefresh:!0,suppressFlash:!0}))}setWrapText(){let G=this.column.getColDef().wrapText==1;this.comp.addOrRemoveCssClass("ag-cell-wrap-text",G)}dispatchCellContextMenuEvent(G){let U=this.column.getColDef(),X=this.createEvent(G,"cellContextMenu"),{beans:Q}=this;Q.eventSvc.dispatchEvent(X),U.onCellContextMenu&&window.setTimeout(()=>{Q.frameworkOverrides.wrapOutgoing(()=>{U.onCellContextMenu(X)})},0)}getCellRenderer(){var G,U;return(U=(G=this.comp)==null?void 0:G.getCellRenderer())!=null?U:null}destroy(){this.onCompAttachedFuncs=[],this.onEditorAttachedFuncs=[],super.destroy()}createSelectionCheckbox(){var U;let G=(U=this.beans.selectionSvc)==null?void 0:U.createCheckboxSelectionComponent();if(G)return this.beans.context.createBean(G),G.init({rowNode:this.rowNode,column:this.column}),G}createDndSource(){let G=this.beans.registry.createDynamicBean("dndSourceComp",!1,this.rowNode,this.column,this.eGui);return G&&this.beans.context.createBean(G),G}registerRowDragger(G,U,X){if(this.customRowDragComp)return void this.customRowDragComp.setDragElement(G,U);let Q=this.createRowDragComp(G,U,X);Q&&(this.customRowDragComp=Q,this.addDestroyFunc(()=>{this.beans.context.destroyBean(Q),this.customRowDragComp=null}))}createRowDragComp(G,U,X){var oe;let Q=(oe=this.beans.rowDragSvc)==null?void 0:oe.createRowDragCompForCell(this.rowNode,this.column,()=>this.value,G,U,X);if(Q)return this.beans.context.createBean(Q),Q}cellEditorAttached(){this.onEditorAttachedFuncs.forEach(G=>G()),this.onEditorAttachedFuncs=[]}}x.CellCtrl=T},4534:function(ne,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.CellFlashService=void 0;let M=p(8731),A=p(6257),F=p(4422);class D extends M.BeanStub{constructor(){super(...arguments),this.beanName="cellFlashSvc"}onFlashCells(v,u){if(!v.comp)return;let s=(0,A._createCellId)(v.cellPosition);u.cells[s]&&this.animateCell(v,"highlight")}flashCell(v,u){this.animateCell(v,"data-changed",u==null?void 0:u.flashDuration,u==null?void 0:u.fadeDuration)}animateCell(v,u,s,r){let d=v.comp;if(!d)return;let{gos:g}=this;if(s||(s=g.get("cellFlashDuration")),s===0)return;(0,F._exists)(r)||(r=g.get("cellFadeDuration"));let m=`ag-cell-${u}`,b=`ag-cell-${u}-animation`;d.addOrRemoveCssClass(m,!0),d.addOrRemoveCssClass(b,!1);let{eGui:w}=v;this.beans.frameworkOverrides.wrapIncoming(()=>{window.setTimeout(()=>{v.isAlive()&&(d.addOrRemoveCssClass(m,!1),d.addOrRemoveCssClass(b,!0),w.style.transition=`background-color ${r}ms`,window.setTimeout(()=>{v.isAlive()&&(d.addOrRemoveCssClass(b,!1),w.style.transition="")},r))},s)})}}x.CellFlashService=D},7038:function(ne,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.CellKeyboardListenerFeature=void 0;let M=p(9853),A=p(8731),F=p(7274),D=p(8667);class f extends A.BeanStub{constructor(u,s,r,d){super(),this.cellCtrl=u,this.rowNode=r,this.rowCtrl=d,this.beans=s}setComp(u){this.eGui=u}onKeyDown(u){let s=u.key;switch(s){case M.KeyCode.ENTER:this.onEnterKeyDown(u);break;case M.KeyCode.F2:this.onF2KeyDown(u);break;case M.KeyCode.ESCAPE:this.onEscapeKeyDown(u);break;case M.KeyCode.TAB:this.onTabKeyDown(u);break;case M.KeyCode.BACKSPACE:case M.KeyCode.DELETE:this.onBackspaceOrDeleteKeyDown(s,u);break;case M.KeyCode.DOWN:case M.KeyCode.UP:case M.KeyCode.RIGHT:case M.KeyCode.LEFT:this.onNavigationKeyDown(u,s)}}onNavigationKeyDown(u,s){var r;this.cellCtrl.editing||(u.shiftKey&&this.cellCtrl.isRangeSelectionEnabled()?this.onShiftRangeSelect(u):(r=this.beans.navigation)==null||r.navigateToNextCell(u,s,this.cellCtrl.cellPosition,!0),u.preventDefault())}onShiftRangeSelect(u){let{rangeSvc:s,navigation:r}=this.beans;if(!s)return;let d=s.extendLatestRangeInDirection(u);d&&(r==null||r.ensureCellVisible(d))}onTabKeyDown(u){var s;(s=this.beans.navigation)==null||s.onTabKeyDown(this.cellCtrl,u)}onBackspaceOrDeleteKeyDown(u,s){var k;let{cellCtrl:r,beans:d,rowNode:g}=this,{gos:m,rangeSvc:b,eventSvc:w}=d;if(!r.editing){if(w.dispatchEvent({type:"keyShortcutChangedCellStart"}),function(R,T=!1){return R===M.KeyCode.DELETE||!T&&R===M.KeyCode.BACKSPACE&&(0,D._isMacOsUserAgent)()}(u,m.get("enableCellEditingOnBackspace"))){if(b&&(0,F._isCellSelectionEnabled)(m))b.clearCellRangeCellValues({dispatchWrapperEvents:!0,wrapperEventSource:"deleteKey"});else if(r.isCellEditable()){let{column:R}=r,T=this.beans.valueSvc.getDeleteValue(R,g);g.setDataValue(R,T,"cellClear")}}else(k=d.editSvc)==null||k.startRowOrCellEdit(r,u,s);w.dispatchEvent({type:"keyShortcutChangedCellEnd"})}}onEnterKeyDown(u){var d,g;let{cellCtrl:s,beans:r}=this;if(s.editing||this.rowCtrl.editing)s.stopEditingAndFocus(!1,u.shiftKey);else if(r.gos.get("enterNavigatesVertically")){let m=u.shiftKey?M.KeyCode.UP:M.KeyCode.DOWN;(d=r.navigation)==null||d.navigateToNextCell(null,m,s.cellPosition,!1)}else(g=r.editSvc)==null||g.startRowOrCellEdit(s,M.KeyCode.ENTER,u),s.editing&&u.preventDefault()}onF2KeyDown(u){var d;let{cellCtrl:s,beans:r}=this;s.editing||((d=r.editSvc)==null||d.startRowOrCellEdit(s,M.KeyCode.F2,u))}onEscapeKeyDown(u){var d;let{cellCtrl:s,beans:r}=this;s.editing&&((d=r.editSvc)==null||d.stopRowOrCellEdit(s,!0),s.focusCell(!0))}processCharacter(u){var r;if(u.target!==this.eGui||this.cellCtrl.editing)return;let s=u.key;s===M.KeyCode.SPACE?this.onSpaceKeyDown(u):(r=this.beans.editSvc)!=null&&r.startRowOrCellEdit(this.cellCtrl,s,u)&&u.preventDefault()}onSpaceKeyDown(u){var r;let{gos:s}=this.beans;!this.cellCtrl.editing&&(0,F._isRowSelection)(s)&&((r=this.beans.selectionSvc)==null||r.handleSelectionEvent(u,this.rowNode,"spaceKey")),u.preventDefault()}destroy(){super.destroy()}}x.CellKeyboardListenerFeature=f},6368:function(ne,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.CellMouseListenerFeature=void 0;let M=p(8731),A=p(8667),F=p(3507),D=p(2979);class f extends M.BeanStub{constructor(u,s,r){super(),this.cellCtrl=u,this.column=r,this.beans=s}onMouseEvent(u,s){if(!(0,D._isStopPropagationForAgGrid)(s))switch(u){case"click":this.onCellClicked(s);break;case"mousedown":case"touchstart":this.onMouseDown(s);break;case"dblclick":this.onCellDoubleClicked(s);break;case"mouseout":this.onMouseOut(s);break;case"mouseover":this.onMouseOver(s)}}onCellClicked(u){var k;if((k=this.beans.touchSvc)!=null&&k.handleCellDoubleClick(this,u))return;let{eventSvc:s,rangeSvc:r,gos:d,editSvc:g}=this.beans,m=u.ctrlKey||u.metaKey;r&&m&&r.getCellRangeCount(this.cellCtrl.cellPosition)>1&&r.intersectLastRange(!0);let b=this.cellCtrl.createEvent(u,"cellClicked");s.dispatchEvent(b);let w=this.column.getColDef();w.onCellClicked&&window.setTimeout(()=>{this.beans.frameworkOverrides.wrapOutgoing(()=>{w.onCellClicked(b)})},0),!((d.get("singleClickEdit")||w.singleClickEdit)&&!d.get("suppressClickEdit"))||u.shiftKey&&(r==null?void 0:r.getCellRanges().length)!=0||(g==null||g.startRowOrCellEdit(this.cellCtrl))}onCellDoubleClicked(u){let{column:s,beans:r,cellCtrl:d}=this,{eventSvc:g,frameworkOverrides:m,gos:b,editSvc:w}=r,k=s.getColDef(),R=d.createEvent(u,"cellDoubleClicked");g.dispatchEvent(R),typeof k.onCellDoubleClicked=="function"&&window.setTimeout(()=>{m.wrapOutgoing(()=>{k.onCellDoubleClicked(R)})},0),!b.get("singleClickEdit")&&!b.get("suppressClickEdit")&&(w==null||w.startRowOrCellEdit(d,null,u))}onMouseDown(u){let{ctrlKey:s,metaKey:r,shiftKey:d}=u,g=u.target,{cellCtrl:m,beans:b}=this,{eventSvc:w,rangeSvc:k,focusSvc:R,gos:T}=b;if(this.isRightClickInExistingRange(u))return;let z=k&&!k.isEmpty(),G=this.containsWidget(g),{cellPosition:U}=m;if(!d||!z){let X=T.get("enableCellTextSelection")&&u.defaultPrevented,Q=((0,A._isBrowserSafari)()||X)&&!m.editing&&!(0,F._isFocusableFormField)(g)&&!G;m.focusCell(Q)}if(d&&z&&!R.isCellFocused(U)){u.preventDefault();let X=R.getFocusedCell();if(X){let{column:Q,rowIndex:oe,rowPinned:le}=X,fe=b.rowRenderer.getRowByPosition({rowIndex:oe,rowPinned:le}),ye=fe==null?void 0:fe.getCellCtrl(Q);ye!=null&&ye.editing&&ye.stopEditing(),R.setFocusedCell({column:Q,rowIndex:oe,rowPinned:le,forceBrowserFocus:!0,preventScrollOnBrowserFocus:!0})}}if(!G){if(k)if(d)k.extendLatestRangeToCell(U);else{let X=s||r;k.setRangeToCell(U,X)}w.dispatchEvent(this.cellCtrl.createEvent(u,"cellMouseDown"))}}isRightClickInExistingRange(u){let{rangeSvc:s}=this.beans;if(s){let r=s.isCellInAnyRange(this.cellCtrl.cellPosition),d=u.button===2||u.ctrlKey&&this.beans.gos.get("allowContextMenuWithControlKey");if(r&&d)return!0}return!1}containsWidget(u){return(0,F._isElementChildOfClass)(u,"ag-selection-checkbox",3)||(0,F._isElementChildOfClass)(u,"ag-drag-handle",3)}onMouseOut(u){if(this.mouseStayingInsideCell(u))return;let{eventSvc:s,colHover:r}=this.beans;s.dispatchEvent(this.cellCtrl.createEvent(u,"cellMouseOut")),r==null||r.clearMouseOver()}onMouseOver(u){if(this.mouseStayingInsideCell(u))return;let{eventSvc:s,colHover:r}=this.beans;s.dispatchEvent(this.cellCtrl.createEvent(u,"cellMouseOver")),r==null||r.setMouseOver([this.column])}mouseStayingInsideCell(u){if(!u.target||!u.relatedTarget)return!1;let{eGui:s}=this.cellCtrl,r=s.contains(u.target),d=s.contains(u.relatedTarget);return r&&d}destroy(){super.destroy()}}x.CellMouseListenerFeature=f},3976:function(ne,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.CellPositionFeature=void 0;let M=p(8731),A=p(7274),F=p(1502),D=p(4422);class f extends M.BeanStub{constructor(u,s){super(),this.cellCtrl=u,this.beans=s,this.column=u.column,this.rowNode=u.rowNode}setupRowSpan(){this.rowSpan=this.column.getRowSpan(this.rowNode),this.addManagedListeners(this.beans.eventSvc,{newColumnsLoaded:()=>this.onNewColumnsLoaded()})}setComp(u){this.eGui=u,this.setupColSpan(),this.setupRowSpan(),this.onLeftChanged(),this.onWidthChanged(),this.applyRowSpan()}onNewColumnsLoaded(){let u=this.column.getRowSpan(this.rowNode);this.rowSpan!==u&&(this.rowSpan=u,this.applyRowSpan(!0))}onDisplayColumnsChanged(){let u=this.getColSpanningList();(0,F._areEqual)(this.colsSpanning,u)||(this.colsSpanning=u,this.onWidthChanged(),this.onLeftChanged())}setupColSpan(){this.column.getColDef().colSpan!=null&&(this.colsSpanning=this.getColSpanningList(),this.addManagedListeners(this.beans.eventSvc,{displayedColumnsChanged:this.onDisplayColumnsChanged.bind(this),displayedColumnsWidthChanged:this.onWidthChanged.bind(this)}))}onWidthChanged(){if(!this.eGui)return;let u=this.getCellWidth();this.eGui.style.width=`${u}px`}getCellWidth(){return this.colsSpanning?this.colsSpanning.reduce((u,s)=>u+s.getActualWidth(),0):this.column.getActualWidth()}getColSpanningList(){let{column:u,rowNode:s}=this,r=u.getColSpan(s),d=[];if(r===1)d.push(u);else{let g=u,m=u.getPinned();for(let b=0;g&&b<r&&(d.push(g),g=this.beans.visibleCols.getColAfter(g),g&&!(0,D._missing)(g))&&m===g.getPinned();b++);}return d}onLeftChanged(){if(!this.eGui)return;let u=this.modifyLeftForPrintLayout(this.getCellLeft());this.eGui.style.left=u+"px"}getCellLeft(){let u;return u=this.beans.gos.get("enableRtl")&&this.colsSpanning?(0,F._last)(this.colsSpanning):this.column,u.getLeft()}modifyLeftForPrintLayout(u){if(!this.cellCtrl.printLayout||this.column.getPinned()==="left")return u;let{visibleCols:s}=this.beans,r=s.getColsLeftWidth();return this.column.getPinned()==="right"?r+s.bodyWidth+(u||0):r+(u||0)}applyRowSpan(u){if(this.rowSpan===1&&!u)return;let s=(0,A._getRowHeightAsNumber)(this.beans)*this.rowSpan;this.eGui.style.height=`${s}px`,this.eGui.style.zIndex="1"}destroy(){super.destroy()}}x.CellPositionFeature=f},916:function(ne,x){Object.defineProperty(x,"__esModule",{value:!0}),x.flashCells=void 0,x.flashCells=function(p,M={}){let{cellFlashSvc:A}=p;A&&p.frameworkOverrides.wrapIncoming(()=>{p.rowRenderer.getCellCtrls(M.rowNodes,M.columns).forEach(F=>A.flashCell(F,M))})}},3498:function(ne,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.HighlightChangesModule=void 0;let M=p(7205),A=p(8868),F=p(2346),D=p(4534),f=p(916);x.HighlightChangesModule={moduleName:"HighlightChanges",version:M.VERSION,beans:[D.CellFlashService],userComponents:{agAnimateShowChangeCellRenderer:A.AnimateShowChangeCellRenderer,agAnimateSlideCellRenderer:F.AnimateSlideCellRenderer},apiFunctions:{flashCells:f.flashCells}}},8868:function(ne,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.AnimateShowChangeCellRenderer=void 0;let M=p(3507),A=p(4422),F=p(8020);class D extends F.Component{constructor(){super(),this.refreshCount=0;let v=document.createElement("span"),u=document.createElement("span");u.setAttribute("class","ag-value-change-delta");let s=document.createElement("span");s.setAttribute("class","ag-value-change-value"),v.appendChild(u),v.appendChild(s),this.setTemplateFromElement(v)}init(v){this.eValue=this.queryForHtmlElement(".ag-value-change-value"),this.eDelta=this.queryForHtmlElement(".ag-value-change-delta"),this.refresh(v,!0)}showDelta(v,u){let s=Math.abs(u),r=v.formatValue(s),d=(0,A._exists)(r)?r:s,g=u>=0,m=this.eDelta;m.textContent=g?"\u2191"+d:"\u2193"+d,m.classList.toggle("ag-value-change-delta-up",g),m.classList.toggle("ag-value-change-delta-down",!g)}setTimerToRemoveDelta(){this.refreshCount++;let v=this.refreshCount;this.beans.frameworkOverrides.wrapIncoming(()=>{window.setTimeout(()=>{v===this.refreshCount&&this.hideDeltaValue()},2e3)})}hideDeltaValue(){this.eValue.classList.remove("ag-value-change-value-highlight"),(0,M._clearElement)(this.eDelta)}refresh(v,u=!1){var b;let{value:s,valueFormatted:r}=v,{eValue:d,lastValue:g,beans:m}=this;if(s===g||((0,A._exists)(r)?d.textContent=r:(0,A._exists)(s)?d.textContent=s:(0,M._clearElement)(d),(b=m.filterManager)==null?void 0:b.isSuppressFlashingCellsBecauseFiltering()))return!1;if(typeof s=="number"&&typeof g=="number"){let w=s-g;this.showDelta(v,w)}return g&&d.classList.add("ag-value-change-value-highlight"),u||this.setTimerToRemoveDelta(),this.lastValue=s,!0}}x.AnimateShowChangeCellRenderer=D},9707:function(ne,x){Object.defineProperty(x,"__esModule",{value:!0}),x.animateSlideCellRendererCSS=void 0,x.animateSlideCellRendererCSS=".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}"},2346:function(ne,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.AnimateSlideCellRenderer=void 0;let M=p(7274),A=p(3507),F=p(4422),D=p(8020),f=p(9707);class v extends D.Component{constructor(){super(),this.refreshCount=0;let s=document.createElement("span"),r=document.createElement("span");r.setAttribute("class","ag-value-slide-current"),s.appendChild(r),this.setTemplateFromElement(s),this.eCurrent=this.queryForHtmlElement(".ag-value-slide-current"),this.registerCSS(f.animateSlideCellRendererCSS)}init(s){this.refresh(s,!0)}addSlideAnimation(){this.refreshCount++;let s=this.refreshCount;this.ePrevious&&this.getGui().removeChild(this.ePrevious);let{beans:r,eCurrent:d}=this,g=(0,M._getDocument)(r).createElement("span");g.setAttribute("class","ag-value-slide-previous ag-value-slide-out"),this.ePrevious=g,g.textContent=d.textContent,this.getGui().insertBefore(g,d),r.frameworkOverrides.wrapIncoming(()=>{window.setTimeout(()=>{s===this.refreshCount&&this.ePrevious.classList.add("ag-value-slide-out-end")},50),window.setTimeout(()=>{s===this.refreshCount&&(this.getGui().removeChild(this.ePrevious),this.ePrevious=null)},3e3)})}refresh(s,r=!1){var m;let d=s.value;if((0,F._missing)(d)&&(d=""),d===this.lastValue||(m=this.beans.filterManager)!=null&&m.isSuppressFlashingCellsBecauseFiltering())return!1;r||this.addSlideAnimation(),this.lastValue=d;let g=this.eCurrent;return(0,F._exists)(s.valueFormatted)?g.textContent=s.valueFormatted:(0,F._exists)(s.value)?g.textContent=d:(0,A._clearElement)(g),!0}}x.AnimateSlideCellRenderer=v},7358:function(ne,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.CheckboxCellRendererModule=void 0;let M=p(7205),A=p(3987);x.CheckboxCellRendererModule={moduleName:"CheckboxCellRenderer",version:M.VERSION,userComponents:{agCheckboxCellRenderer:A.CheckboxCellRenderer}}},2522:function(ne,x){Object.defineProperty(x,"__esModule",{value:!0}),x.checkboxCellRendererCSS=void 0,x.checkboxCellRendererCSS=".ag-checkbox-cell{height:100%}"},3987:function(ne,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.CheckboxCellRenderer=void 0;let M=p(3146),A=p(9853),F=p(7274),D=p(5230),f=p(2979),v=p(66),u=p(8020),s=p(2522);class r extends u.Component{constructor(){super(`
            <div class="ag-cell-wrapper ag-checkbox-cell" role="presentation">
                <ag-checkbox role="presentation" data-ref="eCheckbox"></ag-checkbox>
            </div>`,[v.AgCheckboxSelector]),this.eCheckbox=u.RefPlaceholder,this.registerCSS(s.checkboxCellRendererCSS)}init(g){this.refresh(g);let{eCheckbox:m,beans:b}=this,w=m.getInputElement();w.setAttribute("tabindex","-1"),(0,D._setAriaLive)(w,"polite"),this.addManagedListeners(w,{click:k=>{if((0,f._stopPropagationForAgGrid)(k),m.isDisabled())return;let R=m.getValue();this.onCheckboxChanged(R)},dblclick:k=>{(0,f._stopPropagationForAgGrid)(k)}}),this.addManagedElementListeners(g.eGridCell,{keydown:k=>{if(k.key===A.KeyCode.SPACE&&!m.isDisabled()){g.eGridCell===(0,F._getActiveDomElement)(b)&&m.toggle();let R=m.getValue();this.onCheckboxChanged(R),k.preventDefault()}}})}refresh(g){return this.params=g,this.updateCheckbox(g),!0}updateCheckbox(g){var Q;let m,b=!0,{value:w,column:k,node:R}=g;if(R.group&&k)if(typeof w=="boolean")m=w;else{let oe=k.getColId();oe.startsWith(M.GROUP_AUTO_COLUMN_ID)?m=w==null||w===""?void 0:w==="true":R.aggData&&R.aggData[oe]!==void 0?m=w!=null?w:void 0:b=!1}else m=w!=null?w:void 0;let{eCheckbox:T}=this;if(!b)return void T.setDisplayed(!1);T.setValue(m);let z=(Q=g.disabled)!=null?Q:!(k!=null&&k.isCellEditable(R));T.setDisabled(z);let G=this.getLocaleTextFunc(),U=(0,D._getAriaCheckboxStateName)(G,m),X=z?U:`${G("ariaToggleCellValue","Press SPACE to toggle cell value")} (${U})`;T.setInputAriaLabel(X)}onCheckboxChanged(g){let{eventSvc:m,params:b}=this,{column:w,node:k,value:R}=b,T={column:w,colDef:w.getColDef(),data:k.data,node:k,rowIndex:k.rowIndex,rowPinned:k.rowPinned,value:R};m.dispatchEvent(pe({type:"cellEditingStarted"},T));let z=k.setDataValue(w,g,"edit");m.dispatchEvent(et(pe({type:"cellEditingStopped"},T),{oldValue:R,newValue:g,valueChanged:z})),z||this.updateCheckbox(b)}}x.CheckboxCellRenderer=r},1734:function(ne,x){Object.defineProperty(x,"__esModule",{value:!0}),x.CssClassManager=void 0,x.CssClassManager=class{constructor(p){this.cssClassStates={},this.getGui=p}addCssClass(p){this.addOrRemoveCssClass(p,!0)}removeCssClass(p){this.addOrRemoveCssClass(p,!1)}containsCssClass(p){let M=this.getGui();return!!M&&M.classList.contains(p)}addOrRemoveCssClass(p,M){if(p){if(p.indexOf(" ")>=0){let A=(p||"").split(" ");if(A.length>1)return void A.forEach(F=>this.addOrRemoveCssClass(F,M))}if(this.cssClassStates[p]!==M&&p.length){let A=this.getGui();A&&A.classList.toggle(p,M),this.cssClassStates[p]=M}}}}},714:function(ne,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.DndSourceComp=void 0;let M=p(9970),A=p(8020);class F extends A.Component{constructor(f,v,u){super('<div class="ag-drag-handle ag-row-drag" draggable="true"></div>'),this.rowNode=f,this.column=v,this.eCell=u}postConstruct(){this.getGui().appendChild((0,M._createIconNoSpan)("rowDrag",this.beans,null)),this.addGuiEventListener("mousedown",f=>{f.stopPropagation()}),this.addDragSource(),this.checkVisibility()}addDragSource(){this.addGuiEventListener("dragstart",this.onDragStart.bind(this))}onDragStart(f){let{rowNode:v,column:u,eCell:s,gos:r}=this,d=u.getColDef().dndSourceOnRowDrag,g=f.dataTransfer;if(g.setDragImage(s,0,0),d)d(r.addGridCommonParams({rowNode:v,dragEvent:f}));else try{let m=JSON.stringify(v.data);g.setData("application/json",m),g.setData("text/plain",m)}catch(m){}}checkVisibility(){let f=this.column.isDndSource(this.rowNode);this.setDisplayed(f)}}x.DndSourceComp=F},2147:function(ne,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.PositionableFeature=void 0;let M=p(8731),A=p(3507),F="ag-resizer-wrapper",D=(u,s)=>`<div data-ref="${u}Resizer" class="ag-resizer ag-resizer-${s}"></div>`,f=`<div class="${F}">
        ${D("eTopLeft","topLeft")}
        ${D("eTop","top")}
        ${D("eTopRight","topRight")}
        ${D("eRight","right")}
        ${D("eBottomRight","bottomRight")}
        ${D("eBottom","bottom")}
        ${D("eBottomLeft","bottomLeft")}
        ${D("eLeft","left")}
    </div>`;class v extends M.BeanStub{wireBeans(s){this.popupSvc=s.popupSvc,this.dragSvc=s.dragSvc}constructor(s,r){super(),this.element=s,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},r)}center(){let{clientHeight:s,clientWidth:r}=this.offsetParent,d=r/2-this.getWidth()/2,g=s/2-this.getHeight()/2;this.offsetElement(d,g)}initialisePosition(){if(this.positioned)return;let{centered:s,forcePopupParentAsOffsetParent:r,minWidth:d,width:g,minHeight:m,height:b,x:w,y:k}=this.config;this.offsetParent||this.setOffsetParent();let R=0,T=0,z=(0,A._isVisible)(this.element);if(z){let G=this.findBoundaryElement(),U=window.getComputedStyle(G);if(U.minWidth!=null){let X=G.offsetWidth-this.element.offsetWidth;T=parseInt(U.minWidth,10)-X}if(U.minHeight!=null){let X=G.offsetHeight-this.element.offsetHeight;R=parseInt(U.minHeight,10)-X}}if(this.minHeight=m||R,this.minWidth=d||T,g&&this.setWidth(g),b&&this.setHeight(b),g&&b||this.refreshSize(),s)this.center();else if(w||k)this.offsetElement(w,k);else if(z&&r){let G=this.boundaryEl,U=!0;if(G||(G=this.findBoundaryElement(),U=!1),G){let X=parseFloat(G.style.top),Q=parseFloat(G.style.left);U?this.offsetElement(isNaN(Q)?0:Q,isNaN(X)?0:X):this.setPosition(Q,X)}}this.positioned=!!this.offsetParent}isPositioned(){return this.positioned}getPosition(){return this.position}setMovable(s,r){var g,m;if(!this.config.popup||s===this.movable)return;this.movable=s;let d=this.moveElementDragListener||{eElement:r,onDragStart:this.onMoveStart.bind(this),onDragging:this.onMove.bind(this),onDragStop:this.onMoveEnd.bind(this)};s?((g=this.dragSvc)==null||g.addDragSource(d),this.moveElementDragListener=d):((m=this.dragSvc)==null||m.removeDragSource(d),this.moveElementDragListener=void 0)}setResizable(s){if(this.clearResizeListeners(),s?this.addResizers():this.removeResizers(),typeof s=="boolean"){if(s===!1)return;s={topLeft:s,top:s,topRight:s,right:s,bottomRight:s,bottom:s,bottomLeft:s,left:s}}Object.keys(s).forEach(r=>{var b;let d=!!s[r],g=this.getResizerElement(r),m={dragStartPixels:0,eElement:g,onDragStart:w=>this.onResizeStart(w,r),onDragging:this.onResize.bind(this),onDragStop:w=>this.onResizeEnd(w,r)};(d||!this.isAlive()&&!d)&&(d?((b=this.dragSvc)==null||b.addDragSource(m),this.resizeListeners.push(m),g.style.pointerEvents="all"):g.style.pointerEvents="none",this.resizable[r]=d)})}removeSizeFromEl(){this.element.style.removeProperty("height"),this.element.style.removeProperty("width"),this.element.style.removeProperty("flex")}restoreLastSize(){this.element.style.flex="0 0 auto";let{height:s,width:r}=this.lastSize;r!==-1&&(this.element.style.width=`${r}px`),s!==-1&&(this.element.style.height=`${s}px`)}getHeight(){return this.element.offsetHeight}setHeight(s){let{popup:r}=this.config,d=this.element,g=!1;if(typeof s=="string"&&s.indexOf("%")!==-1)(0,A._setFixedHeight)(d,s),s=(0,A._getAbsoluteHeight)(d),g=!0;else if(s=Math.max(this.minHeight,s),this.positioned){let m=this.getAvailableHeight();m&&s>m&&(s=m)}this.getHeight()!==s&&(g?(d.style.maxHeight="unset",d.style.minHeight="unset"):r?(0,A._setFixedHeight)(d,s):(d.style.height=`${s}px`,d.style.flex="0 0 auto",this.lastSize.height=typeof s=="number"?s:parseFloat(s)))}getAvailableHeight(){let{popup:s,forcePopupParentAsOffsetParent:r}=this.config;this.positioned||this.initialisePosition();let{clientHeight:d}=this.offsetParent;if(!d)return null;let g=this.element.getBoundingClientRect(),m=this.offsetParent.getBoundingClientRect(),b=s?this.position.y:g.top,w=s?0:m.top,k=0;if(r){let R=this.element.parentElement;if(R){let{bottom:T}=R.getBoundingClientRect();k=T-g.bottom}}return d+w-b-k}getWidth(){return this.element.offsetWidth}setWidth(s){let r=this.element,{popup:d}=this.config,g=!1;if(typeof s=="string"&&s.indexOf("%")!==-1)(0,A._setFixedWidth)(r,s),s=(0,A._getAbsoluteWidth)(r),g=!0;else if(this.positioned){s=Math.max(this.minWidth,s);let{clientWidth:m}=this.offsetParent,b=d?this.position.x:this.element.getBoundingClientRect().left;m&&s+b>m&&(s=m-b)}this.getWidth()!==s&&(g?(r.style.maxWidth="unset",r.style.minWidth="unset"):this.config.popup?(0,A._setFixedWidth)(r,s):(r.style.width=`${s}px`,r.style.flex=" unset",this.lastSize.width=typeof s=="number"?s:parseFloat(s)))}offsetElement(s=0,r=0){var m;let{forcePopupParentAsOffsetParent:d}=this.config,g=d?this.boundaryEl:this.element;g&&((m=this.popupSvc)==null||m.positionPopup({ePopup:g,keepWithinBounds:!0,skipObserver:this.movable||this.isResizable(),updatePosition:()=>({x:s,y:r})}),this.setPosition(parseFloat(g.style.left),parseFloat(g.style.top)))}constrainSizeToAvailableHeight(s){var d;if(!this.config.forcePopupParentAsOffsetParent)return;let r=()=>{let g=this.getAvailableHeight();this.element.style.setProperty("max-height",`${g}px`)};s&&this.popupSvc?this.resizeObserverSubscriber=(0,A._observeResize)(this.beans,(d=this.popupSvc)==null?void 0:d.getPopupParent(),r):(this.element.style.removeProperty("max-height"),this.resizeObserverSubscriber&&(this.resizeObserverSubscriber(),this.resizeObserverSubscriber=void 0))}setPosition(s,r){this.position.x=s,this.position.y=r}updateDragStartPosition(s,r){this.dragStartPosition={x:s,y:r}}calculateMouseMovement(s){let{e:r,isLeft:d,isTop:g,anywhereWithin:m,topBuffer:b}=s,w=r.clientX-this.dragStartPosition.x,k=r.clientY-this.dragStartPosition.y;return{movementX:this.shouldSkipX(r,!!d,!!m,w)?0:w,movementY:this.shouldSkipY(r,!!g,b,k)?0:k}}shouldSkipX(s,r,d,g){let m=this.element.getBoundingClientRect(),b=this.offsetParent.getBoundingClientRect(),w=this.boundaryEl.getBoundingClientRect(),k=this.config.popup?this.position.x:m.left,R=k<=0&&b.left>=s.clientX||b.right<=s.clientX&&b.right<=w.right;return!!R||(R=r?g<0&&s.clientX>k+b.left||g>0&&s.clientX<k+b.left:d?g<0&&s.clientX>w.right||g>0&&s.clientX<k+b.left:g<0&&s.clientX>w.right||g>0&&s.clientX<w.right,R)}shouldSkipY(s,r,d=0,g){let m=this.element.getBoundingClientRect(),b=this.offsetParent.getBoundingClientRect(),w=this.boundaryEl.getBoundingClientRect(),k=this.config.popup?this.position.y:m.top,R=k<=0&&b.top>=s.clientY||b.bottom<=s.clientY&&b.bottom<=w.bottom;return!!R||(R=r?g<0&&s.clientY>k+b.top+d||g>0&&s.clientY<k+b.top:g<0&&s.clientY>w.bottom||g>0&&s.clientY<w.bottom,R)}createResizeMap(){let s=this.element;this.resizerMap={topLeft:{element:s.querySelector("[data-ref=eTopLeftResizer]")},top:{element:s.querySelector("[data-ref=eTopResizer]")},topRight:{element:s.querySelector("[data-ref=eTopRightResizer]")},right:{element:s.querySelector("[data-ref=eRightResizer]")},bottomRight:{element:s.querySelector("[data-ref=eBottomRightResizer]")},bottom:{element:s.querySelector("[data-ref=eBottomResizer]")},bottomLeft:{element:s.querySelector("[data-ref=eBottomLeftResizer]")},left:{element:s.querySelector("[data-ref=eLeftResizer]")}}}addResizers(){if(this.resizersAdded)return;let s=this.element;if(!s)return;let r=new DOMParser().parseFromString(f,"text/html").body;s.appendChild(r.firstChild),this.createResizeMap(),this.resizersAdded=!0}removeResizers(){this.resizerMap=void 0;let s=this.element.querySelector(`.${F}`);s&&this.element.removeChild(s),this.resizersAdded=!1}getResizerElement(s){return this.resizerMap[s].element}onResizeStart(s,r){this.boundaryEl=this.findBoundaryElement(),this.positioned||this.initialisePosition(),this.currentResizer={isTop:!!r.match(/top/i),isRight:!!r.match(/right/i),isBottom:!!r.match(/bottom/i),isLeft:!!r.match(/left/i)},this.element.classList.add("ag-resizing"),this.resizerMap[r].element.classList.add("ag-active");let{popup:d,forcePopupParentAsOffsetParent:g}=this.config;d||g||this.applySizeToSiblings(this.currentResizer.isBottom||this.currentResizer.isTop),this.isResizing=!0,this.updateDragStartPosition(s.clientX,s.clientY)}getSiblings(){let s=this.element.parentElement;return s?Array.prototype.slice.call(s.children).filter(r=>!r.classList.contains("ag-hidden")):null}getMinSizeOfSiblings(){let s=this.getSiblings()||[],r=0,d=0;for(let g=0;g<s.length;g++){let m=s[g],b=!!m.style.flex&&m.style.flex!=="0 0 auto";if(m===this.element)continue;let w=this.minHeight||0,k=this.minWidth||0;if(b){let R=window.getComputedStyle(m);R.minHeight&&(w=parseInt(R.minHeight,10)),R.minWidth&&(k=parseInt(R.minWidth,10))}else w=m.offsetHeight,k=m.offsetWidth;r+=w,d+=k}return{height:r,width:d}}applySizeToSiblings(s){let r=null,d=this.getSiblings();if(d){for(let g=0;g<d.length;g++){let m=d[g];m!==r&&(s?m.style.height=`${m.offsetHeight}px`:m.style.width=`${m.offsetWidth}px`,m.style.flex="0 0 auto",m===this.element&&(r=d[g+1]))}r&&(r.style.removeProperty("height"),r.style.removeProperty("min-height"),r.style.removeProperty("max-height"),r.style.flex="1 1 auto")}}isResizable(){return Object.values(this.resizable).some(s=>s)}onResize(s){if(!this.isResizing||!this.currentResizer)return;let{popup:r,forcePopupParentAsOffsetParent:d}=this.config,{isTop:g,isRight:m,isBottom:b,isLeft:w}=this.currentResizer,k=m||w,R=b||g,{movementX:T,movementY:z}=this.calculateMouseMovement({e:s,isLeft:w,isTop:g}),G=this.position.x,U=this.position.y,X=0,Q=0;if(k&&T){let oe=w?-1:1,le=this.getWidth(),fe=le+T*oe,ye=!1;w&&(X=le-fe,(G+X<=0||fe<=this.minWidth)&&(ye=!0,X=0)),ye||this.setWidth(fe)}if(R&&z){let oe=g?-1:1,le=this.getHeight(),fe=le+z*oe,ye=!1;g?(Q=le-fe,(U+Q<=0||fe<=this.minHeight)&&(ye=!0,Q=0)):!this.config.popup&&!this.config.forcePopupParentAsOffsetParent&&le<fe&&this.getMinSizeOfSiblings().height+fe>this.element.parentElement.offsetHeight&&(ye=!0),ye||this.setHeight(fe)}this.updateDragStartPosition(s.clientX,s.clientY),((r||d)&&X||Q)&&this.offsetElement(G+X,U+Q)}onResizeEnd(s,r){this.isResizing=!1,this.currentResizer=null,this.boundaryEl=null,this.element.classList.remove("ag-resizing"),this.resizerMap[r].element.classList.remove("ag-active"),this.dispatchLocalEvent({type:"resize"})}refreshSize(){let s=this.element;this.config.popup&&(this.config.width||this.setWidth(s.offsetWidth),this.config.height||this.setHeight(s.offsetHeight))}onMoveStart(s){this.boundaryEl=this.findBoundaryElement(),this.positioned||this.initialisePosition(),this.isMoving=!0,this.element.classList.add("ag-moving"),this.updateDragStartPosition(s.clientX,s.clientY)}onMove(s){if(!this.isMoving)return;let{x:r,y:d}=this.position,g;this.config.calculateTopBuffer&&(g=this.config.calculateTopBuffer());let{movementX:m,movementY:b}=this.calculateMouseMovement({e:s,isTop:!0,anywhereWithin:!0,topBuffer:g});this.offsetElement(r+m,d+b),this.updateDragStartPosition(s.clientX,s.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 s=this.element;for(;s;){if(window.getComputedStyle(s).position!=="static")return s;s=s.parentElement}return this.element}clearResizeListeners(){var s;for(;this.resizeListeners.length;){let r=this.resizeListeners.pop();(s=this.dragSvc)==null||s.removeDragSource(r)}}destroy(){var s;super.destroy(),this.moveElementDragListener&&((s=this.dragSvc)==null||s.removeDragSource(this.moveElementDragListener)),this.constrainSizeToAvailableHeight(!1),this.clearResizeListeners(),this.removeResizers()}}x.PositionableFeature=v},8703:function(ne,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.SetLeftFeature=void 0;let M=p(8731),A=p(6908),F=p(7274),D=p(5230),f=p(1502),v=p(4422);class u extends M.BeanStub{constructor(r,d,g,m){super(),this.columnOrGroup=r,this.eCell=d,this.colsSpanning=m,this.columnOrGroup=r,this.ariaEl=d.querySelector("[role=columnheader]")||d,this.beans=g}setColsSpanning(r){this.colsSpanning=r,this.onLeftChanged()}getColumnOrGroup(){let{beans:r,colsSpanning:d}=this;return r.gos.get("enableRtl")&&d?(0,f._last)(d):this.columnOrGroup}postConstruct(){let r=this.onLeftChanged.bind(this);this.addManagedListeners(this.columnOrGroup,{leftChanged:r}),this.setLeftFirstTime(),this.addManagedEventListeners({displayedColumnsWidthChanged:r}),this.addManagedPropertyListener("domLayout",r)}setLeftFirstTime(){let{gos:r,colAnimation:d}=this.beans,g=r.get("suppressColumnMoveAnimation"),m=(0,v._exists)(this.columnOrGroup.getOldLeft());d!=null&&d.isActive()&&m&&!g?this.animateInLeft():this.onLeftChanged()}animateInLeft(){let r=this.getColumnOrGroup(),d=this.modifyLeftForPrintLayout(r,r.getOldLeft()),g=this.modifyLeftForPrintLayout(r,r.getLeft());this.setLeft(d),this.actualLeft=g,this.beans.colAnimation.executeNextVMTurn(()=>{this.actualLeft===g&&this.setLeft(g)})}onLeftChanged(){let r=this.getColumnOrGroup(),d=r.getLeft();this.actualLeft=this.modifyLeftForPrintLayout(r,d),this.setLeft(this.actualLeft)}modifyLeftForPrintLayout(r,d){let{gos:g,visibleCols:m}=this.beans;if(!(0,F._isDomLayout)(g,"print")||r.getPinned()==="left")return d;let b=m.getColsLeftWidth();return r.getPinned()==="right"?b+m.bodyWidth+d:b+d}setLeft(r){if((0,v._exists)(r)&&(this.eCell.style.left=`${r}px`),(0,A.isColumnGroup)(this.columnOrGroup)){let d=this.columnOrGroup.getLeafColumns();if(!d.length)return;d.length>1&&(0,D._setAriaColSpan)(this.ariaEl,d.length)}}}x.SetLeftFeature=u},6105:function(ne,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.LoadingOverlayComponent=void 0;let M=p(4422),A=p(4679);class F extends A.OverlayComponent{init(){var v;let f=(0,M._makeNull)((v=this.gos.get("overlayLoadingTemplate"))==null?void 0:v.trim());if(this.setTemplate(f!=null?f:'<span aria-live="polite" aria-atomic="true" class="ag-overlay-loading-center"></span>'),!f){let u=this.getLocaleTextFunc();setTimeout(()=>{this.getGui().textContent=u("loadingOoo","Loading...")})}}}x.LoadingOverlayComponent=F},5233:function(ne,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.NoRowsOverlayComponent=void 0;let M=p(4422),A=p(4679);class F extends A.OverlayComponent{init(){var v;let f=(0,M._makeNull)((v=this.gos.get("overlayNoRowsTemplate"))==null?void 0:v.trim());if(this.setTemplate(f!=null?f:'<span class="ag-overlay-no-rows-center"></span>'),!f){let u=this.getLocaleTextFunc();setTimeout(()=>{this.getGui().textContent=u("noRowsToShow","No Rows To Show")})}}}x.NoRowsOverlayComponent=F},7896:function(ne,x){Object.defineProperty(x,"__esModule",{value:!0}),x.hideOverlay=x.showNoRowsOverlay=x.showLoadingOverlay=void 0,x.showLoadingOverlay=function(p){var M;(M=p.overlays)==null||M.showLoadingOverlay()},x.showNoRowsOverlay=function(p){var M;(M=p.overlays)==null||M.showNoRowsOverlay()},x.hideOverlay=function(p){var M;(M=p.overlays)==null||M.hideOverlay()}},4679:function(ne,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.OverlayComponent=void 0;let M=p(8020);class A extends M.Component{constructor(){super()}}x.OverlayComponent=A},5366:function(ne,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.OverlayModule=void 0;let M=p(7205),A=p(6105),F=p(5233),D=p(7896),f=p(2351);x.OverlayModule={moduleName:"Overlay",version:M.VERSION,userComponents:{agLoadingOverlay:A.LoadingOverlayComponent,agNoRowsOverlay:F.NoRowsOverlayComponent},apiFunctions:{showLoadingOverlay:D.showLoadingOverlay,showNoRowsOverlay:D.showNoRowsOverlay,hideOverlay:D.hideOverlay},beans:[f.OverlayService]}},2351:function(ne,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.OverlayService=void 0;let M=p(2036),A=p(8731),F=p(7274),D=p(7764),f=p(8360);class v extends A.BeanStub{constructor(){super(...arguments),this.beanName="overlays",this.state=0,this.showInitialOverlay=!0,this.wrapperPadding=0}postConstruct(){this.isClientSide=(0,F._isClientSideRowModel)(this.gos);let s=()=>this.updateOverlayVisibility();this.addManagedEventListeners({newColumnsLoaded:s,rowDataUpdated:s,gridSizeChanged:this.refreshWrapperPadding.bind(this),rowCountReady:()=>{this.showInitialOverlay=!1,this.updateOverlayVisibility()}}),this.addManagedPropertyListener("loading",s)}setOverlayWrapperComp(s){this.eWrapper=s,this.updateOverlayVisibility()}isVisible(){return this.state!==0&&!!this.eWrapper}isExclusive(){return this.state===1&&!!this.eWrapper}showLoadingOverlay(){this.showInitialOverlay=!1;let s=this.gos,r=s.get("loading");(r||r===void 0&&!s.get("suppressLoadingOverlay"))&&this.doShowLoadingOverlay()}showNoRowsOverlay(){this.showInitialOverlay=!1;let s=this.gos;s.get("loading")||s.get("suppressNoRowsOverlay")||this.doShowNoRowsOverlay()}hideOverlay(){this.showInitialOverlay=!1,this.gos.get("loading")?(0,D._warn)(99):this.doHideOverlay()}getOverlayWrapperSelector(){return f.OverlayWrapperSelector}getOverlayWrapperCompClass(){return f.OverlayWrapperComponent}updateOverlayVisibility(){if(!this.eWrapper)return void(this.state=0);let{state:s,isClientSide:r,beans:{gos:d,colModel:g,rowModel:m}}=this,b=this.gos.get("loading");b!==void 0&&(this.showInitialOverlay=!1),this.showInitialOverlay&&b===void 0&&!d.get("suppressLoadingOverlay")&&(b=!d.get("columnDefs")||!g.ready||!d.get("rowData")&&r),b?s!==1&&this.doShowLoadingOverlay():(this.showInitialOverlay=!1,m.isEmpty()&&!d.get("suppressNoRowsOverlay")&&r?s!==2&&this.doShowNoRowsOverlay():s!==0&&this.doHideOverlay())}doShowLoadingOverlay(){this.eWrapper&&(this.state=1,this.showOverlay((0,M._getLoadingOverlayCompDetails)(this.beans.userCompFactory,{}),"ag-overlay-loading-wrapper","loadingOverlayComponentParams"),this.updateExclusive())}doShowNoRowsOverlay(){this.eWrapper&&(this.state=2,this.showOverlay((0,M._getNoRowsOverlayCompDetails)(this.beans.userCompFactory,{}),"ag-overlay-no-rows-wrapper","noRowsOverlayComponentParams"),this.updateExclusive())}doHideOverlay(){this.eWrapper&&(this.state=0,this.eWrapper.hideOverlay(),this.updateExclusive())}showOverlay(s,r,d){var m,b;let g=(m=s==null?void 0:s.newAgStackInstance())!=null?m:null;(b=this.eWrapper)==null||b.showOverlay(g,r,this.isExclusive(),d),this.refreshWrapperPadding()}updateExclusive(){let s=this.exclusive;this.exclusive=this.isExclusive(),this.exclusive!==s&&this.eventSvc.dispatchEvent({type:"overlayExclusiveChanged"})}refreshWrapperPadding(){let s=this.eWrapper;if(!s)return;let r=0;if(this.state===2){let d=this.beans.ctrlsSvc.get("gridHeaderCtrl");r=(d==null?void 0:d.headerHeight)||0}else this.wrapperPadding!==0&&(r=0);this.wrapperPadding!==r&&(this.wrapperPadding=r,s.updateOverlayWrapperPaddingTop(r))}}x.OverlayService=v},3893:function(ne,x){Object.defineProperty(x,"__esModule",{value:!0}),x.overlayWrapperComponentCSS=void 0,x.overlayWrapperComponentCSS=".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:1px solid var(--ag-border-color);border-radius:var(--ag-border-radius);box-shadow:var(--ag-popup-shadow);padding:var(--ag-spacing)}"},8360:function(ne,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.OverlayWrapperSelector=x.OverlayWrapperComponent=void 0;let M=p(9853),A=p(7274),F=p(9360),D=p(1502),f=p(3507),v=p(2979),u=p(2331),s=p(8020),r=p(3893);class d extends s.Component{constructor(){super(`
            <div class="ag-overlay" role="presentation">
                <div class="ag-overlay-panel" role="presentation">
                    <div class="ag-overlay-wrapper" data-ref="eOverlayWrapper" role="presentation"></div>
                </div>
            </div>`),this.eOverlayWrapper=s.RefPlaceholder,this.activePromise=null,this.activeOverlay=null,this.updateListenerDestroyFunc=null,this.activeCssClass=null,this.elToFocusAfter=null,this.registerCSS(r.overlayWrapperComponentCSS)}handleKeyDown(m){if(m.key!==M.KeyCode.TAB||m.defaultPrevented||(0,v._isStopPropagationForAgGrid)(m))return;let b=this.beans;if((0,u._findNextFocusableElement)(b,this.eOverlayWrapper,!1,m.shiftKey))return;let w=!1;w=m.shiftKey?b.focusSvc.focusGridView((0,D._last)(b.visibleCols.allCols),!0,!1):(0,u._focusNextGridCoreContainer)(b,!1),w&&m.preventDefault()}updateLayoutClasses(m,b){let w=this.eOverlayWrapper.classList,{AUTO_HEIGHT:k,NORMAL:R,PRINT:T}=F.LayoutCssClasses;w.toggle(k,b.autoHeight),w.toggle(R,b.normal),w.toggle(T,b.print)}postConstruct(){this.createManagedBean(new F.LayoutFeature(this)),this.setDisplayed(!1,{skipAriaHidden:!0}),this.beans.overlays.setOverlayWrapperComp(this),this.addManagedElementListeners(this.getFocusableElement(),{keydown:this.handleKeyDown.bind(this)})}setWrapperTypeClass(m){let b=this.eOverlayWrapper.classList;this.activeCssClass&&b.toggle(this.activeCssClass,!1),this.activeCssClass=m,b.toggle(m,!0)}showOverlay(m,b,w,k){if(this.setWrapperTypeClass(b),this.destroyActiveOverlay(),this.elToFocusAfter=null,this.activePromise=m,m){if(this.setDisplayed(!0,{skipAriaHidden:!0}),w&&this.isGridFocused()){let R=(0,A._getActiveDomElement)(this.beans);R&&!(0,A._isNothingFocused)(this.beans)&&(this.elToFocusAfter=R)}m.then(R=>{if(this.activePromise===m){if(this.activePromise=null,R){if(this.activeOverlay!==R&&(this.eOverlayWrapper.appendChild(R.getGui()),this.activeOverlay=R,k)){let T=R;this.updateListenerDestroyFunc=this.addManagedPropertyListener(k,({currentValue:z})=>{var G;(G=T.refresh)==null||G.call(T,this.gos.addGridCommonParams(pe({},z!=null?z:{})))})}w&&this.isGridFocused()&&(0,u._focusInto)(this.eOverlayWrapper)}}else this.activeOverlay!==R&&(this.destroyBean(R),R=null)})}}updateOverlayWrapperPaddingTop(m){this.eOverlayWrapper.style.setProperty("padding-top",`${m}px`)}destroyActiveOverlay(){var k;this.activePromise=null;let m=this.activeOverlay;if(!m)return;let b=this.elToFocusAfter;this.activeOverlay=null,this.elToFocusAfter=null,b&&!this.isGridFocused()&&(b=null);let w=this.updateListenerDestroyFunc;w&&(w(),this.updateListenerDestroyFunc=null),this.destroyBean(m),(0,f._clearElement)(this.eOverlayWrapper),(k=b==null?void 0:b.focus)==null||k.call(b,{preventScroll:!0})}hideOverlay(){this.destroyActiveOverlay(),this.setDisplayed(!1,{skipAriaHidden:!0})}isGridFocused(){let m=(0,A._getActiveDomElement)(this.beans);return!!m&&this.beans.eGridDiv.contains(m)}destroy(){this.elToFocusAfter=null,this.destroyActiveOverlay(),this.beans.overlays.setOverlayWrapperComp(void 0),super.destroy()}}x.OverlayWrapperComponent=d,x.OverlayWrapperSelector={selector:"AG-OVERLAY-WRAPPER",component:d}},94:function(ne,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.getCellRendererInstances=x.getSizesForCurrentTheme=x.flushAllAnimationFrames=x.isAnimationFrameQueueEmpty=x.refreshHeader=x.refreshCells=x.setGridAriaProperty=void 0;let M=p(4126),A=p(7274),F=p(1323),D=p(557);x.setGridAriaProperty=function(f,v,u){if(!v)return;let s=f.ctrlsSvc.getGridBodyCtrl().eGridBody,r=`aria-${v}`;u===null?s.removeAttribute(r):s.setAttribute(r,u)},x.refreshCells=function(f,v={}){f.frameworkOverrides.wrapIncoming(()=>f.rowRenderer.refreshCells(v))},x.refreshHeader=function(f){f.frameworkOverrides.wrapIncoming(()=>f.ctrlsSvc.getHeaderRowContainerCtrls().forEach(v=>v.refresh()))},x.isAnimationFrameQueueEmpty=function(f){var v,u;return(u=(v=f.animationFrameSvc)==null?void 0:v.isQueueEmpty())!=null?u:!0},x.flushAllAnimationFrames=function(f){var v;(v=f.animationFrameSvc)==null||v.flushAllFrames()},x.getSizesForCurrentTheme=function(f){return{rowHeight:(0,A._getRowHeightAsNumber)(f),headerHeight:(0,F.getHeaderHeight)(f)}},x.getCellRendererInstances=function(f,v={}){var d;let u=[];if(f.rowRenderer.getCellCtrls(v.rowNodes,v.columns).forEach(g=>{let m=g.getCellRenderer();m!=null&&u.push((0,M._unwrapUserComp)(m))}),(d=v.columns)==null?void 0:d.length)return u;let s=[],r=(0,D.mapRowNodes)(v.rowNodes);return f.rowRenderer.getAllRowCtrls().forEach(g=>{if(r&&!(0,D.isRowInMap)(g.rowNode,r)||!g.isFullWidth())return;let m=g.getFullWidthCellRenderers();for(let b=0;b<m.length;b++){let w=m[b];w!=null&&s.push((0,M._unwrapUserComp)(w))}}),[...s,...u]}},6964:function(ne,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.RenderApiModule=void 0;let M=p(7205),A=p(94);x.RenderApiModule={moduleName:"RenderApi",version:M.VERSION,apiFunctions:{setGridAriaProperty:A.setGridAriaProperty,refreshCells:A.refreshCells,refreshHeader:A.refreshHeader,isAnimationFrameQueueEmpty:A.isAnimationFrameQueueEmpty,flushAllAnimationFrames:A.flushAllAnimationFrames,getSizesForCurrentTheme:A.getSizesForCurrentTheme,getCellRendererInstances:A.getCellRendererInstances}}},4577:function(ne,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.RowAutoHeightModule=void 0;let M=p(7205),A=p(6418);x.RowAutoHeightModule={moduleName:"RowAutoHeight",version:M.VERSION,beans:[A.RowAutoHeightService]}},6418:function(ne,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.RowAutoHeightService=void 0;let M=p(8731),A=p(7274),F=p(3507),D=p(2043);class f extends M.BeanStub{constructor(){super(...arguments),this.beanName="rowAutoHeight",this.wasEverActive=!1}setRowAutoHeight(u,s,r){u.__autoHeights||(u.__autoHeights={}),u.__autoHeights[r.getId()]=s,s!=null&&(u.__checkAutoHeightsDebounced==null&&(u.__checkAutoHeightsDebounced=(0,D._debounce)(this,this.doCheckAutoHeights.bind(this,u),1)),u.__checkAutoHeightsDebounced())}checkAutoHeights(u){this.wasEverActive&&this.doCheckAutoHeights(u)}doCheckAutoHeights(u){var R;let s=u.__autoHeights;if(s==null)return;let r=!1,d=!0,g=0,{visibleCols:m,colModel:b,colViewport:w,rowModel:k}=this.beans;m.autoHeightCols.forEach(T=>{let z=s[T.getId()];if(z==null){if(!b.colSpanActive)return void(r=!0);{let G=[];switch(T.getPinned()){case"left":G=m.getLeftColsForRow(u);break;case"right":G=m.getRightColsForRow(u);break;case null:G=w.getColsWithinViewport(u)}if(G.includes(T))return void(r=!0);z=-1}}else d=!1;z>g&&(g=z)}),r||((d||g<10)&&(g=(0,A._getRowHeightForNode)(this.beans,u).height),g!=u.rowHeight&&(u.setRowHeight(g),(R=k.onRowHeightChangedDebounced)==null||R.call(k)))}setupCellAutoHeight(u,s,r){let d=s.parentElement,{rowNode:g,column:m}=u,b=this.beans,w=(0,A._getRowHeightForNode)(b,g).height,k=z=>{if(u.editing||!u.isAlive()||!r.isAlive())return;let{paddingTop:G,paddingBottom:U,borderBottomWidth:X,borderTopWidth:Q}=(0,F._getElementSize)(d),oe=G+U+X+Q,le=s.offsetHeight+oe;if(z<5){let ye=(0,A._getDocument)(b);if(!ye||!ye.contains(s)||le==0)return void window.setTimeout(()=>k(z+1),0)}let fe=Math.max(le,w);this.setRowAutoHeight(g,fe,m)},R=()=>k(0);R();let T=(0,F._observeResize)(b,s,R);r.addDestroyFunc(()=>{T(),this.setRowAutoHeight(g,void 0,m)})}setAutoHeightActive(u){this.active=u.list.some(s=>s.isVisible()&&s.isAutoHeight()),this.active&&(this.wasEverActive=!0)}}x.RowAutoHeightService=f},6049:function(ne,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.RowComp=void 0;let M=p(5230),A=p(3507),F=p(8020),D=p(2308);class f extends F.Component{constructor(u,s,r){super(),this.cellComps={},this.beans=s,this.rowCtrl=u;let d=document.createElement("div");d.setAttribute("comp-id",`${this.getCompId()}`),d.setAttribute("style",this.getInitialStyle(r)),this.setTemplateFromElement(d);let g=this.getGui(),m=g.style;this.domOrder=this.rowCtrl.getDomOrder(),(0,M._setAriaRole)(g,"row");let b={setDomOrder:w=>this.domOrder=w,setCellCtrls:w=>this.setCellCtrls(w),showFullWidth:w=>this.showFullWidth(w),getFullWidthCellRenderer:()=>this.fullWidthCellRenderer,addOrRemoveCssClass:(w,k)=>this.addOrRemoveCssClass(w,k),setUserStyles:w=>(0,A._addStylesToElement)(g,w),setTop:w=>m.top=w,setTransform:w=>m.transform=w,setRowIndex:w=>g.setAttribute("row-index",w),setRowId:w=>g.setAttribute("row-id",w),setRowBusinessKey:w=>g.setAttribute("row-business-key",w),refreshFullWidth:w=>{var k,R,T;return(T=(R=(k=this.fullWidthCellRenderer)==null?void 0:k.refresh)==null?void 0:R.call(k,w()))!=null?T:!1}};u.setComp(b,this.getGui(),r,void 0),this.addDestroyFunc(()=>{u.unsetComp(r)})}getInitialStyle(u){let s=this.rowCtrl.getInitialTransform(u);return s?`transform: ${s}`:`top: ${this.rowCtrl.getInitialRowTop(u)}`}showFullWidth(u){u.newAgStackInstance().then(s=>{if(this.isAlive()){let r=s.getGui();this.getGui().appendChild(r),this.rowCtrl.setupDetailRowAutoHeight(r),this.setFullWidthRowComp(s)}else this.beans.context.destroyBean(s)})}setCellCtrls(u){let s=Object.assign({},this.cellComps);u.forEach(d=>{let g=d.instanceId;this.cellComps[g]==null?this.newCellComp(d):s[g]=null});let r=Object.values(s).filter(d=>d!=null);this.destroyCells(r),this.ensureDomOrder(u)}ensureDomOrder(u){if(!this.domOrder)return;let s=[];u.forEach(r=>{let d=this.cellComps[r.instanceId];d&&s.push(d.getGui())}),(0,A._setDomChildOrder)(this.getGui(),s)}newCellComp(u){let s=new D.CellComp(this.beans,u,this.rowCtrl.printLayout,this.getGui(),this.rowCtrl.editing);this.cellComps[u.instanceId]=s,this.getGui().appendChild(s.getGui())}destroy(){super.destroy(),this.destroyAllCells()}destroyAllCells(){let u=Object.values(this.cellComps).filter(s=>s!=null);this.destroyCells(u)}setFullWidthRowComp(u){this.fullWidthCellRenderer=u,this.addDestroyFunc(()=>{this.fullWidthCellRenderer=this.beans.context.destroyBean(this.fullWidthCellRenderer)})}destroyCells(u){u.forEach(s=>{if(!s)return;let r=s.cellCtrl.instanceId;this.cellComps[r]===s&&(s.detach(),s.destroy(),this.cellComps[r]=null)})}}x.RowComp=f},7632:function(ne,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.RowCtrl=x.DOM_DATA_KEY_ROW_CTRL=void 0;let M=p(3789),A=p(2036),F=p(8731),D=p(7274),f=p(7648),v=p(5230),u=p(3507),s=p(2979),r=p(2331),d=p(2043),g=p(4422),m=p(7766),b=p(814),w=0;x.DOM_DATA_KEY_ROW_CTRL="renderedRow";class k extends F.BeanStub{constructor(T,z,G,U,X){var Q,oe;super(),this.rowNode=T,this.useAnimationFrameForCreate=U,this.printLayout=X,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=z,this.gos=z.gos,this.paginationPage=(oe=(Q=z.pagination)==null?void 0:Q.getCurrentPage())!=null?oe:0,this.suppressRowTransform=this.gos.get("suppressRowTransform"),this.instanceId=T.id+"-"+w++,this.rowId=(0,m._escapeString)(T.id),this.initRowBusinessKey(),this.rowFocused=z.focusSvc.isRowFocused(this.rowNode.rowIndex,this.rowNode.rowPinned),this.rowLevel=(0,f.calculateRowLevel)(this.rowNode),this.setRowType(),this.setAnimateFlags(G),this.rowStyles=this.processStylesFromGridOptions(),this.addListeners()}initRowBusinessKey(){this.businessKeyForNodeFunc=this.gos.get("getBusinessKeyForNode"),this.updateRowBusinessKey()}updateRowBusinessKey(){if(typeof this.businessKeyForNodeFunc!="function")return;let T=this.businessKeyForNodeFunc(this.rowNode);this.businessKey=(0,m._escapeString)(T)}updateGui(T,z){T==="left"?this.leftGui=z:T==="right"?this.rightGui=z:T==="fullWidth"?this.fullWidthGui=z:this.centerGui=z}setComp(T,z,G,U){let X={rowComp:T,element:z,containerType:G,compBean:U=(0,M.setupCompBean)(this,this.beans.context,U)};this.allRowGuis.push(X),this.updateGui(G,X),this.initialiseRowComp(X),this.rowType==="FullWidthLoading"||this.rowNode.rowPinned||this.beans.rowRenderer.dispatchFirstDataRenderedEvent()}unsetComp(T){this.allRowGuis=this.allRowGuis.filter(z=>z.containerType!==T),this.updateGui(T,void 0)}isCacheable(){return this.rowType==="FullWidthDetail"&&this.gos.get("keepDetailRows")}setCached(T){let z=T?"none":"";this.allRowGuis.forEach(G=>G.element.style.display=z)}initialiseRowComp(T){var U;let z=this.gos;this.onSuppressCellFocusChanged(this.beans.gos.get("suppressCellFocus")),this.listenOnDomOrder(T),(U=this.beans.rowAutoHeight)==null||U.checkAutoHeights(this.rowNode),this.onRowHeightChanged(T),this.updateRowIndexes(T),this.setFocusedClasses(T),this.setStylesFromGridOptions(!1,T),(0,D._isRowSelection)(z)&&this.rowNode.selectable&&this.onRowSelected(T),this.updateColumnLists(!this.useAnimationFrameForCreate);let G=T.rowComp;this.getInitialRowClasses(T.containerType).forEach(X=>G.addOrRemoveCssClass(X,!0)),this.executeSlideAndFadeAnimations(T),this.rowNode.group&&(0,v._setAriaExpanded)(T.element,this.rowNode.expanded==1),this.setRowCompRowId(G),this.setRowCompRowBusinessKey(G),(0,D._setDomData)(z,T.element,x.DOM_DATA_KEY_ROW_CTRL,this),T.compBean.addDestroyFunc(()=>(0,D._setDomData)(z,T.element,x.DOM_DATA_KEY_ROW_CTRL,null)),this.useAnimationFrameForCreate?this.beans.animationFrameSvc.createTask(this.addHoverFunctionality.bind(this,T),this.rowNode.rowIndex,"createTasksP2"):this.addHoverFunctionality(T),this.isFullWidth()&&this.setupFullWidth(T),z.get("rowDragEntireRow")&&this.addRowDraggerToRow(T),this.useAnimationFrameForCreate&&this.beans.animationFrameSvc.addDestroyTask(()=>{this.isAlive()&&T.rowComp.addOrRemoveCssClass("ag-after-created",!0)}),this.executeProcessRowPostCreateFunc()}setRowCompRowBusinessKey(T){this.businessKey!=null&&T.setRowBusinessKey(this.businessKey)}setRowCompRowId(T){let z=(0,m._escapeString)(this.rowNode.id);this.rowId=z,z!=null&&T.setRowId(z)}executeSlideAndFadeAnimations(T){let{containerType:z}=T;this.slideInAnimation[z]&&((0,d._executeNextVMTurn)(()=>{this.onTopChanged()}),this.slideInAnimation[z]=!1),this.fadeInAnimation[z]&&((0,d._executeNextVMTurn)(()=>{T.rowComp.addOrRemoveCssClass("ag-opacity-zero",!1)}),this.fadeInAnimation[z]=!1)}addRowDraggerToRow(T){var U;let z=(U=this.beans.rowDragSvc)==null?void 0:U.createRowDragCompForRow(this.rowNode,T.element);if(!z)return;let G=this.createBean(z,this.beans.context);this.rowDragComps.push(G),T.compBean.addDestroyFunc(()=>{this.rowDragComps=this.rowDragComps.filter(X=>X!==G),this.destroyBean(G,this.beans.context)})}setupFullWidth(T){let z=this.getPinnedForContainer(T.containerType),G=this.createFullWidthCompDetails(T.element,z);T.rowComp.showFullWidth(G)}getFullWidthCellRenderers(){var T,z;return this.gos.get("embedFullWidthRows")?this.allRowGuis.map(G=>{var U;return(U=G==null?void 0:G.rowComp)==null?void 0:U.getFullWidthCellRenderer()}):[(z=(T=this.fullWidthGui)==null?void 0:T.rowComp)==null?void 0:z.getFullWidthCellRenderer()]}executeProcessRowPostCreateFunc(){let T=this.gos.getCallback("processRowPostCreate");!T||!this.areAllContainersReady()||T({eRow:this.centerGui.element,ePinnedLeftRow:this.leftGui?this.leftGui.element:void 0,ePinnedRightRow:this.rightGui?this.rightGui.element:void 0,node:this.rowNode,rowIndex:this.rowNode.rowIndex,addRenderedRowListener:this.addEventListener.bind(this)})}areAllContainersReady(){let{leftGui:T,centerGui:z,rightGui:G,beans:{visibleCols:U}}=this,X=!!T||!U.isPinningLeft(),Q=!!z,oe=!!G||!U.isPinningRight();return X&&Q&&oe}isNodeFullWidthCell(){if(this.rowNode.detail)return!0;let T=this.beans.gos.getCallback("isFullWidthRow");return!!T&&T({rowNode:this.rowNode})}setRowType(){let T=this.rowNode.stub&&!this.gos.get("suppressServerSideFullWidthLoadingRow")&&!this.gos.get("groupHideOpenParents"),z=this.isNodeFullWidthCell(),G=this.gos.get("masterDetail")&&this.rowNode.detail,U=this.beans.colModel.isPivotMode(),X=!!this.rowNode.group&&!this.rowNode.footer&&(0,D._isGroupUseEntireRow)(this.gos,U);this.rowType=T?"FullWidthLoading":G?"FullWidthDetail":z?"FullWidth":X?"FullWidthGroup":"Normal"}updateColumnLists(T=!1,z=!1){if(this.isFullWidth())return;let{animationFrameSvc:G}=this.beans;!G||T||this.gos.get("suppressAnimationFrame")||this.printLayout?this.updateColumnListsImpl(z):this.updateColumnListsPending||(G.createTask(()=>{this.active&&this.updateColumnListsImpl(!0)},this.rowNode.rowIndex,"createTasksP1"),this.updateColumnListsPending=!0)}createCellCtrls(T,z,G=null){let U={list:[],map:{}},X=(Q,oe)=>{U.list.push(oe),U.map[Q]=oe};return z.forEach(Q=>{let oe=Q.getInstanceId(),le=T.map[oe];le||(le=new b.CellCtrl(Q,this.rowNode,this.beans,this)),X(oe,le)}),T.list.forEach(Q=>{let oe=Q.column.getInstanceId();U.map[oe]==null&&(this.isCellEligibleToBeRemoved(Q,G)?Q.destroy():X(oe,Q))}),U}updateColumnListsImpl(T){this.updateColumnListsPending=!1,this.createAllCellCtrls(),this.setCellCtrls(T)}setCellCtrls(T){this.allRowGuis.forEach(z=>{let G=this.getCellCtrlsForContainer(z.containerType);z.rowComp.setCellCtrls(G,T)})}getCellCtrlsForContainer(T){switch(T){case"left":return this.leftCellCtrls.list;case"right":return this.rightCellCtrls.list;case"fullWidth":return[];case"center":return this.centerCellCtrls.list}}createAllCellCtrls(){let T=this.beans.colViewport,z=this.beans.visibleCols;if(this.printLayout)this.centerCellCtrls=this.createCellCtrls(this.centerCellCtrls,z.allCols),this.leftCellCtrls={list:[],map:{}},this.rightCellCtrls={list:[],map:{}};else{let G=T.getColsWithinViewport(this.rowNode);this.centerCellCtrls=this.createCellCtrls(this.centerCellCtrls,G);let U=z.getLeftColsForRow(this.rowNode);this.leftCellCtrls=this.createCellCtrls(this.leftCellCtrls,U,"left");let X=z.getRightColsForRow(this.rowNode);this.rightCellCtrls=this.createCellCtrls(this.rightCellCtrls,X,"right")}}isCellEligibleToBeRemoved(T,z){let{column:U}=T;if(U.getPinned()!=z)return!0;let{editing:X,cellPosition:Q}=T,{focusSvc:oe,visibleCols:le}=this.beans,fe=oe.isCellFocused(Q);return X||fe?!(le.allCols.indexOf(U)>=0)&&!0:!0}getDomOrder(){return this.gos.get("ensureDomOrder")||(0,D._isDomLayout)(this.gos,"print")}listenOnDomOrder(T){T.compBean.addManagedPropertyListeners(["domLayout","ensureDomOrder"],()=>{T.rowComp.setDomOrder(this.getDomOrder())})}setAnimateFlags(T){if(this.rowNode.sticky||!T)return;let z=(0,g._exists)(this.rowNode.oldRowTop),{visibleCols:G}=this.beans,U=G.isPinningLeft(),X=G.isPinningRight();if(z){let{slideInAnimation:Q}=this;if(this.isFullWidth()&&!this.gos.get("embedFullWidthRows"))return void(Q.fullWidth=!0);Q.center=!0,Q.left=U,Q.right=X}else{let{fadeInAnimation:Q}=this;if(this.isFullWidth()&&!this.gos.get("embedFullWidthRows"))return void(Q.fullWidth=!0);Q.center=!0,Q.left=U,Q.right=X}}isFullWidth(){return this.rowType!=="Normal"}refreshFullWidth(){let T=(Q,oe)=>!Q||Q.rowComp.refreshFullWidth(()=>this.createFullWidthCompDetails(Q.element,oe).params),z=T(this.fullWidthGui,null),G=T(this.centerGui,null),U=T(this.leftGui,"left"),X=T(this.rightGui,"right");return z&&G&&U&&X}addListeners(){var T,z;this.addManagedListeners(this.rowNode,pe({heightChanged:()=>this.onRowHeightChanged(),rowSelected:()=>this.onRowSelected(),rowIndexChanged:this.onRowIndexChanged.bind(this),topChanged:this.onTopChanged.bind(this)},(z=(T=this.beans.expansionSvc)==null?void 0:T.getRowExpandedListeners(this))!=null?z:{})),this.rowNode.detail&&this.addManagedListeners(this.rowNode.parent,{dataChanged:this.onRowNodeDataChanged.bind(this)}),this.addManagedListeners(this.rowNode,{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)}),this.addManagedListeners(this.beans.eventSvc,{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()}),this.addDestroyFunc(()=>{this.rowDragComps=this.destroyBeans(this.rowDragComps,this.beans.context),this.tooltipFeature=this.destroyBean(this.tooltipFeature,this.beans.context)}),this.addManagedPropertyListeners(["rowStyle","getRowStyle","rowClass","getRowClass","rowClassRules"],this.postProcessCss.bind(this)),this.addManagedPropertyListener("rowDragEntireRow",()=>{this.gos.get("rowDragEntireRow")?this.allRowGuis.forEach(G=>{this.addRowDraggerToRow(G)}):this.rowDragComps=this.destroyBeans(this.rowDragComps,this.beans.context)}),this.addListenersForCellComps()}addListenersForCellComps(){this.addManagedListeners(this.rowNode,{rowIndexChanged:()=>{this.getAllCellCtrls().forEach(T=>T.onRowIndexChanged())},cellChanged:T=>{this.getAllCellCtrls().forEach(z=>z.onCellChanged(T))}})}onRowNodeDataChanged(T){this.isFullWidth()!==!!this.isNodeFullWidthCell()?this.beans.rowRenderer.redrawRow(this.rowNode):this.isFullWidth()?this.refreshFullWidth()||this.beans.rowRenderer.redrawRow(this.rowNode):(this.getAllCellCtrls().forEach(z=>z.refreshCell({suppressFlash:!T.update,newData:!T.update})),this.allRowGuis.forEach(z=>{this.setRowCompRowId(z.rowComp),this.updateRowBusinessKey(),this.setRowCompRowBusinessKey(z.rowComp)}),this.onRowSelected(),this.postProcessCss())}postProcessCss(){this.setStylesFromGridOptions(!0),this.postProcessClassesFromGridOptions(),this.postProcessRowClassRules(),this.postProcessRowDragging()}onRowNodeHighlightChanged(){let T=this.rowNode.highlighted;this.allRowGuis.forEach(z=>{let G=T==="Above",U=T==="Below";z.rowComp.addOrRemoveCssClass("ag-row-highlight-above",G),z.rowComp.addOrRemoveCssClass("ag-row-highlight-below",U)})}postProcessRowDragging(){let T=this.rowNode.dragging;this.allRowGuis.forEach(z=>z.rowComp.addOrRemoveCssClass("ag-row-dragging",T))}onDisplayedColumnsChanged(){var T;this.updateColumnLists(!0),(T=this.beans.rowAutoHeight)==null||T.checkAutoHeights(this.rowNode)}onVirtualColumnsChanged(){this.updateColumnLists(!1,!0)}getRowPosition(){return{rowPinned:(0,g._makeNull)(this.rowNode.rowPinned),rowIndex:this.rowNode.rowIndex}}findFullWidthRowGui(T){return this.allRowGuis.find(z=>z.element.contains(T))}onKeyboardNavigate(T){var le;let z=this.findFullWidthRowGui(T.target);if((z?z.element:null)!==T.target)return;let G=this.rowNode,{focusSvc:U,navigation:X}=this.beans,Q=U.getFocusedCell(),oe={rowIndex:G.rowIndex,rowPinned:G.rowPinned,column:(le=Q==null?void 0:Q.column)!=null?le:this.getColumnForFullWidth(z)};X==null||X.navigateToNextCell(T,T.key,oe,!0),T.preventDefault()}onTabKeyDown(T){var le;if(T.defaultPrevented||(0,s._isStopPropagationForAgGrid)(T))return;let z=this.allRowGuis.find(fe=>fe.element.contains(T.target)),G=z?z.element:null,U=G===T.target,X=(0,D._getActiveDomElement)(this.beans),Q=!1;G&&X&&(Q=G.contains(X)&&X.classList.contains("ag-cell"));let oe=null;U||Q||(oe=(0,r._findNextFocusableElement)(this.beans,G,!1,T.shiftKey)),(this.isFullWidth()&&U||!oe)&&((le=this.beans.navigation)==null||le.onTabKeyDown(this,T))}getFullWidthElement(){return this.fullWidthGui?this.fullWidthGui.element:null}getRowYPosition(){var z;let T=(z=this.allRowGuis.find(G=>(0,u._isVisible)(G.element)))==null?void 0:z.element;return T?T.getBoundingClientRect().top:0}onSuppressCellFocusChanged(T){let z=this.isFullWidth()&&T?void 0:-1;this.allRowGuis.forEach(G=>{(0,u._addOrRemoveAttribute)(G.element,"tabindex",z)})}onFullWidthRowFocused(T){var X;let z=this.rowNode,G=!!T&&this.isFullWidth()&&T.rowIndex===z.rowIndex&&T.rowPinned==z.rowPinned,U=this.fullWidthGui?this.fullWidthGui.element:(X=this.centerGui)==null?void 0:X.element;U&&(U.classList.toggle("ag-full-width-focus",G),G&&(T!=null&&T.forceBrowserFocus)&&U.focus({preventScroll:!0}))}recreateCell(T){this.centerCellCtrls=this.removeCellCtrl(this.centerCellCtrls,T),this.leftCellCtrls=this.removeCellCtrl(this.leftCellCtrls,T),this.rightCellCtrls=this.removeCellCtrl(this.rightCellCtrls,T),T.destroy(),this.updateColumnLists()}removeCellCtrl(T,z){let G={list:[],map:{}};return T.list.forEach(U=>{U!==z&&(G.list.push(U),G.map[U.column.getInstanceId()]=U)}),G}onMouseEvent(T,z){switch(T){case"dblclick":this.onRowDblClick(z);break;case"click":this.onRowClick(z);break;case"touchstart":case"mousedown":this.onRowMouseDown(z)}}createRowEvent(T,z){let{rowNode:G}=this;return this.gos.addGridCommonParams({type:T,node:G,data:G.data,rowIndex:G.rowIndex,rowPinned:G.rowPinned,event:z})}createRowEventWithSource(T,z){let G=this.createRowEvent(T,z);return G.source=this,G}onRowDblClick(T){(0,s._isStopPropagationForAgGrid)(T)||this.beans.eventSvc.dispatchEvent(this.createRowEventWithSource("rowDoubleClicked",T))}getColumnForFullWidth(T){let{visibleCols:z}=this.beans;switch(T==null?void 0:T.containerType){case"center":return z.centerCols[0];case"left":return z.leftCols[0];case"right":return z.rightCols[0];default:return z.allCols[0]}}onRowMouseDown(T){if(this.lastMouseDownOnDragger=(0,u._isElementChildOfClass)(T.target,"ag-row-drag",3),!this.isFullWidth())return;let z=this.rowNode,{rangeSvc:G,focusSvc:U}=this.beans;G==null||G.removeAllCellRanges();let X=this.findFullWidthRowGui(T.target),Q=X==null?void 0:X.element,oe=T.target,le=!0;Q&&Q.contains(oe)&&(0,u._isFocusableFormField)(oe)&&(le=!1),U.setFocusedCell({rowIndex:z.rowIndex,column:this.getColumnForFullWidth(X),rowPinned:z.rowPinned,forceBrowserFocus:le})}onRowClick(T){if((0,s._isStopPropagationForAgGrid)(T)||this.lastMouseDownOnDragger)return;let{eventSvc:z,selectionSvc:G}=this.beans;z.dispatchEvent(this.createRowEventWithSource("rowClicked",T)),G==null||G.handleSelectionEvent(T,this.rowNode,"rowClicked")}setupDetailRowAutoHeight(T){var z;this.rowType==="FullWidthDetail"&&((z=this.beans.masterDetailSvc)==null||z.setupDetailRowAutoHeight(this,T))}createFullWidthCompDetails(T,z){let{gos:G,rowNode:U}=this,X=G.addGridCommonParams({fullWidth:!0,data:U.data,node:U,value:U.key,valueFormatted:U.key,eGridCell:T,eParentOfValue:T,pinned:z,addRenderedRowListener:this.addEventListener.bind(this),registerRowDragger:(oe,le,fe,ye)=>this.addFullWidthRowDragging(oe,le,fe,ye),setTooltip:(oe,le)=>{G.assertModuleRegistered("Tooltip",3),this.refreshRowTooltip(oe,le)}}),Q=this.beans.userCompFactory;switch(this.rowType){case"FullWidthDetail":return(0,A._getFullWidthDetailCellRendererDetails)(Q,X);case"FullWidthGroup":return(0,A._getFullWidthGroupCellRendererDetails)(Q,X);case"FullWidthLoading":return(0,A._getFullWidthLoadingCellRendererDetails)(Q,X);default:return(0,A._getFullWidthCellRendererDetails)(Q,X)}}refreshRowTooltip(T,z){var G;this.fullWidthGui&&(this.tooltipFeature=(G=this.beans.tooltipSvc)==null?void 0:G.refreshRowTooltip(this.tooltipFeature,this,T,z))}addFullWidthRowDragging(T,z,G="",U){let{rowDragSvc:X,context:Q}=this.beans;if(!X||!this.isFullWidth())return;let oe=X.createRowDragComp(()=>G,this.rowNode,void 0,T,z,U);this.createBean(oe,Q),this.addDestroyFunc(()=>{this.destroyBean(oe,Q)})}onUiLevelChanged(){let T=(0,f.calculateRowLevel)(this.rowNode);if(this.rowLevel!=T){let z="ag-row-level-"+T,G="ag-row-level-"+this.rowLevel;this.allRowGuis.forEach(U=>{U.rowComp.addOrRemoveCssClass(z,!0),U.rowComp.addOrRemoveCssClass(G,!1)})}this.rowLevel=T}isFirstRowOnPage(){return this.rowNode.rowIndex===this.beans.pageBounds.getFirstRow()}isLastRowOnPage(){return this.rowNode.rowIndex===this.beans.pageBounds.getLastRow()}refreshFirstAndLastRowStyles(){let T=this.isFirstRowOnPage(),z=this.isLastRowOnPage();this.firstRowOnPage!==T&&(this.firstRowOnPage=T,this.allRowGuis.forEach(G=>G.rowComp.addOrRemoveCssClass("ag-row-first",T))),this.lastRowOnPage!==z&&(this.lastRowOnPage=z,this.allRowGuis.forEach(G=>G.rowComp.addOrRemoveCssClass("ag-row-last",z)))}getAllCellCtrls(){return this.leftCellCtrls.list.length===0&&this.rightCellCtrls.list.length===0?this.centerCellCtrls.list:[...this.centerCellCtrls.list,...this.leftCellCtrls.list,...this.rightCellCtrls.list]}postProcessClassesFromGridOptions(){var z;let T=[];(z=this.beans.rowStyleSvc)==null||z.processClassesFromGridOptions(T,this.rowNode),T.length&&T.forEach(G=>{this.allRowGuis.forEach(U=>U.rowComp.addOrRemoveCssClass(G,!0))})}postProcessRowClassRules(){var T;(T=this.beans.rowStyleSvc)==null||T.processRowClassRules(this.rowNode,z=>{this.allRowGuis.forEach(G=>G.rowComp.addOrRemoveCssClass(z,!0))},z=>{this.allRowGuis.forEach(G=>G.rowComp.addOrRemoveCssClass(z,!1))})}setStylesFromGridOptions(T,z){T&&(this.rowStyles=this.processStylesFromGridOptions()),this.forEachGui(z,G=>G.rowComp.setUserStyles(this.rowStyles))}getPinnedForContainer(T){return T==="left"||T==="right"?T:null}getInitialRowClasses(T){var le;let z=this.getPinnedForContainer(T),G=this.isFullWidth(),{rowNode:U,beans:X}=this,Q=[];Q.push("ag-row"),Q.push(this.rowFocused?"ag-row-focus":"ag-row-no-focus"),this.fadeInAnimation[T]&&Q.push("ag-opacity-zero"),Q.push(U.rowIndex%2==0?"ag-row-even":"ag-row-odd"),U.isRowPinned()&&Q.push("ag-row-pinned"),U.isSelected()&&Q.push("ag-row-selected"),U.footer&&Q.push("ag-row-footer"),Q.push("ag-row-level-"+this.rowLevel),U.stub&&Q.push("ag-row-loading"),G&&Q.push("ag-full-width-row"),(le=X.expansionSvc)==null||le.addExpandedCss(Q,U),U.dragging&&Q.push("ag-row-dragging");let{rowStyleSvc:oe}=X;return oe&&(oe.processClassesFromGridOptions(Q,U),oe.preProcessRowClassRules(Q,U)),Q.push(this.printLayout?"ag-row-position-relative":"ag-row-position-absolute"),this.isFirstRowOnPage()&&Q.push("ag-row-first"),this.isLastRowOnPage()&&Q.push("ag-row-last"),G&&(z==="left"&&Q.push("ag-cell-last-left-pinned"),z==="right"&&Q.push("ag-cell-first-right-pinned")),Q}processStylesFromGridOptions(){var T,z;return(z=(T=this.beans.rowStyleSvc)==null?void 0:T.processStylesFromGridOptions(this.rowNode))!=null?z:this.emptyStyle}onRowSelected(T){var z;(z=this.beans.selectionSvc)==null||z.onRowCtrlSelected(this,G=>{G!==this.centerGui&&G!==this.fullWidthGui||this.announceDescription()},T)}announceDescription(){var T;(T=this.beans.selectionSvc)==null||T.announceAriaRowSelection(this.rowNode)}addHoverFunctionality(T){if(!this.active)return;let{element:z,compBean:G}=T,{rowNode:U,beans:X,gos:Q}=this;G.addManagedListeners(z,{mouseenter:()=>U.dispatchRowEvent("mouseEnter"),mouseleave:()=>U.dispatchRowEvent("mouseLeave")}),G.addManagedListeners(U,{mouseEnter:()=>{var oe;(oe=X.dragSvc)!=null&&oe.dragging||Q.get("suppressRowHoverHighlight")||(z.classList.add("ag-row-hover"),U.setHovered(!0))},mouseLeave:()=>{z.classList.remove("ag-row-hover"),U.setHovered(!1)}})}roundRowTopToBounds(T){let z=this.beans.ctrlsSvc.getScrollFeature().getApproximateVScollPosition(),G=this.applyPaginationOffset(z.top,!0)-100,U=this.applyPaginationOffset(z.bottom,!0)+100;return Math.min(Math.max(G,T),U)}forEachGui(T,z){T?z(T):this.allRowGuis.forEach(z)}onRowHeightChanged(T){if(this.rowNode.rowHeight==null)return;let z=this.rowNode.rowHeight,G=this.beans.environment.getDefaultRowHeight(),U=(0,D._isGetRowHeightFunction)(this.gos)?(0,D._getRowHeightForNode)(this.beans,this.rowNode).height:void 0,X=U?Math.min(G,U)-2+"px":void 0;this.forEachGui(T,Q=>{Q.element.style.height=`${z}px`,X&&Q.element.style.setProperty("--ag-line-height",X)})}destroyFirstPass(T=!1){this.active=!1;let{rowNode:z}=this;if(!T&&(0,D._isAnimateRows)(this.gos)&&!z.sticky)if(z.rowTop!=null){let U=this.roundRowTopToBounds(z.rowTop);this.setRowTop(U)}else this.allRowGuis.forEach(U=>U.rowComp.addOrRemoveCssClass("ag-opacity-zero",!0));z.setHovered(!1);let G=this.createRowEvent("virtualRowRemoved");this.dispatchLocalEvent(G),this.beans.eventSvc.dispatchEvent(G),super.destroy()}destroySecondPass(){var z;this.allRowGuis.length=0,(z=this.beans.editSvc)==null||z.stopRowEditing(this);let T=G=>(G.list.forEach(U=>U.destroy()),{list:[],map:{}});this.centerCellCtrls=T(this.centerCellCtrls),this.leftCellCtrls=T(this.leftCellCtrls),this.rightCellCtrls=T(this.rightCellCtrls)}setFocusedClasses(T){this.forEachGui(T,z=>{z.rowComp.addOrRemoveCssClass("ag-row-focus",this.rowFocused),z.rowComp.addOrRemoveCssClass("ag-row-no-focus",!this.rowFocused)})}onCellFocusChanged(){let{focusSvc:T,editSvc:z}=this.beans,G=T.isRowFocused(this.rowNode.rowIndex,this.rowNode.rowPinned);G!==this.rowFocused&&(this.rowFocused=G,this.setFocusedClasses()),!G&&this.editing&&(z==null||z.stopRowEditing(this,!1))}onPaginationChanged(){var z,G;let T=(G=(z=this.beans.pagination)==null?void 0:z.getCurrentPage())!=null?G:0;this.paginationPage!==T&&(this.paginationPage=T,this.onTopChanged()),this.refreshFirstAndLastRowStyles()}onTopChanged(){this.setRowTop(this.rowNode.rowTop)}onPaginationPixelOffsetChanged(){this.onTopChanged()}applyPaginationOffset(T,z=!1){return this.rowNode.isRowPinned()||this.rowNode.sticky?T:T+this.beans.pageBounds.getPixelOffset()*(z?1:-1)}setRowTop(T){if(!this.printLayout&&(0,g._exists)(T)){let z=this.applyPaginationOffset(T),G=`${this.rowNode.isRowPinned()||this.rowNode.sticky?z:this.beans.rowContainerHeight.getRealPixelPosition(z)}px`;this.setRowTopStyle(G)}}getInitialRowTop(T){return this.suppressRowTransform?this.getInitialRowTopShared(T):void 0}getInitialTransform(T){return this.suppressRowTransform?void 0:`translateY(${this.getInitialRowTopShared(T)})`}getInitialRowTopShared(T){if(this.printLayout)return"";let z=this.rowNode,G;if(z.sticky)G=z.stickyRowTop;else{let U=this.slideInAnimation[T]?this.roundRowTopToBounds(z.oldRowTop):z.rowTop,X=this.applyPaginationOffset(U);G=z.isRowPinned()?X:this.beans.rowContainerHeight.getRealPixelPosition(X)}return G+"px"}setRowTopStyle(T){this.allRowGuis.forEach(z=>this.suppressRowTransform?z.rowComp.setTop(T):z.rowComp.setTransform(`translateY(${T})`))}getCellCtrl(T,z=!1){let G=null;return this.getAllCellCtrls().forEach(U=>{U.column==T&&(G=U)}),G!=null||z||this.getAllCellCtrls().forEach(U=>{U.getColSpanningList().indexOf(T)>=0&&(G=U)}),G}onRowIndexChanged(){this.rowNode.rowIndex!=null&&(this.onCellFocusChanged(),this.updateRowIndexes(),this.postProcessCss())}updateRowIndexes(T){var Q,oe,le,fe;let z=this.rowNode.getRowIndexString();if(z===null)return;let G=((oe=(Q=this.beans.ctrlsSvc.getHeaderRowContainerCtrl())==null?void 0:Q.getRowCount())!=null?oe:0)+((fe=(le=this.beans.filterManager)==null?void 0:le.getHeaderRowCount())!=null?fe:0),U=this.rowNode.rowIndex%2==0,X=G+this.rowNode.rowIndex+1;this.forEachGui(T,ye=>{ye.rowComp.setRowIndex(z),ye.rowComp.addOrRemoveCssClass("ag-row-even",U),ye.rowComp.addOrRemoveCssClass("ag-row-odd",!U),(0,v._setAriaRowIndex)(ye.element,X)})}}x.RowCtrl=k},7109:function(ne,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.RowContainerHeightService=void 0;let M=p(8731),A=p(8667),F=p(2043);class D extends M.BeanStub{constructor(){super(...arguments),this.beanName="rowContainerHeight",this.scrollY=0,this.uiBodyHeight=0}postConstruct(){this.addManagedEventListeners({bodyHeightChanged:this.updateOffset.bind(this)}),this.maxDivHeight=(0,A._getMaxDivHeight)(),(0,F._logIfDebug)(this.gos,"RowContainerHeightService - maxDivHeight = "+this.maxDivHeight)}updateOffset(){if(!this.stretching)return;let v=this.beans.ctrlsSvc.getScrollFeature().getVScrollPosition().top,u=this.getUiBodyHeight();(v!==this.scrollY||u!==this.uiBodyHeight)&&(this.scrollY=v,this.uiBodyHeight=u,this.calculateOffset())}calculateOffset(){this.setUiContainerHeight(this.maxDivHeight),this.pixelsToShave=this.modelHeight-this.uiContainerHeight,this.maxScrollY=this.uiContainerHeight-this.uiBodyHeight;let v=this.scrollY/this.maxScrollY,u=v*this.pixelsToShave;(0,F._logIfDebug)(this.gos,`RowContainerHeightService - Div Stretch Offset = ${u} (${this.pixelsToShave} * ${v})`),this.setDivStretchOffset(u)}setUiContainerHeight(v){v!==this.uiContainerHeight&&(this.uiContainerHeight=v,this.eventSvc.dispatchEvent({type:"rowContainerHeightChanged"}))}clearOffset(){this.setUiContainerHeight(this.modelHeight),this.pixelsToShave=0,this.setDivStretchOffset(0)}setDivStretchOffset(v){let u=typeof v=="number"?Math.floor(v):null;this.divStretchOffset!==u&&(this.divStretchOffset=u,this.eventSvc.dispatchEvent({type:"heightScaleChanged"}))}setModelHeight(v){this.modelHeight=v,this.stretching=v!=null&&this.maxDivHeight>0&&v>this.maxDivHeight,this.stretching?this.calculateOffset():this.clearOffset()}getRealPixelPosition(v){return v-this.divStretchOffset}getUiBodyHeight(){let v=this.beans.ctrlsSvc.getScrollFeature().getVScrollPosition();return v.bottom-v.top}getScrollPositionForPixel(v){if(this.pixelsToShave<=0)return v;let u=v/(this.modelHeight-this.getUiBodyHeight());return this.maxScrollY*u}}x.RowContainerHeightService=D},557:function(ne,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.isRowInMap=x.mapRowNodes=x.RowRenderer=void 0;let M=p(8731),A=p(7274),F=p(1502),D=p(4422),f=p(7764),v=p(814),u=p(7632);class s extends M.BeanStub{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=()=>{let b=()=>{this.getAllCellCtrls().forEach(T=>T.onCellSelectionChanged())},w=()=>{this.getAllCellCtrls().forEach(T=>T.updateRangeBordersIfRangeCount())},k=()=>{this.eventSvc.addEventListener("cellSelectionChanged",b),this.eventSvc.addEventListener("columnMoved",w),this.eventSvc.addEventListener("columnPinned",w),this.eventSvc.addEventListener("columnVisible",w)},R=()=>{this.eventSvc.removeEventListener("cellSelectionChanged",b),this.eventSvc.removeEventListener("columnMoved",w),this.eventSvc.removeEventListener("columnPinned",w),this.eventSvc.removeEventListener("columnVisible",w)};this.addDestroyFunc(()=>R()),this.addManagedPropertyListeners(["enableRangeSelection","cellSelection"],()=>{(0,A._isCellSelectionEnabled)(this.gos)?k():R()}),(0,A._isCellSelectionEnabled)(this.gos)&&k()}}wireBeans(b){this.pageBounds=b.pageBounds,this.colModel=b.colModel,this.pinnedRowModel=b.pinnedRowModel,this.rowModel=b.rowModel,this.focusSvc=b.focusSvc,this.rowContainerHeight=b.rowContainerHeight,this.ctrlsSvc=b.ctrlsSvc}postConstruct(){this.ctrlsSvc.whenReady(this,b=>{this.gridBodyCtrl=b.gridBodyCtrl,this.initialise()})}initialise(){this.addManagedEventListeners({paginationChanged:this.onPageLoaded.bind(this),pinnedRowDataChanged:this.onPinnedRowDataChanged.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",k=>this.onSuppressCellFocusChanged(k.currentValue)),this.addManagedPropertyListeners(["groupSuppressBlankHeader","getBusinessKeyForNode","fullWidthCellRenderer","fullWidthCellRendererParams","suppressStickyTotalRow","groupRowRenderer","groupRowRendererParams","loadingCellRenderer","loadingCellRendererParams","detailCellRenderer","detailCellRendererParams","enableRangeSelection","enableCellTextSelection"],()=>this.redrawRows()),this.addManagedPropertyListener("cellSelection",({currentValue:k,previousValue:R})=>{(!R&&k||R&&!k)&&this.redrawRows()});let{stickyRowSvc:b,gos:w}=this.beans;if(b)this.stickyRowFeature=b.createStickyRowFeature(this,this.createRowCon.bind(this),this.destroyRowCtrls.bind(this));else{let k=this.gridBodyCtrl;k.setStickyTopHeight(0),k.setStickyBottomHeight(0)}this.registerCellEventListeners(),this.initialiseCache(),this.printLayout=(0,A._isDomLayout)(w,"print"),this.embedFullWidthRows=this.printLayout||w.get("embedFullWidthRows"),this.redrawAfterModelUpdate()}initialiseCache(){if(this.gos.get("keepDetailRows")){let b=this.getKeepDetailRowsCount(),w=b!=null?b:3;this.cachedRowCtrls=new r(w)}}getKeepDetailRowsCount(){return this.gos.get("keepDetailRowsCount")}getStickyTopRowCtrls(){var b,w;return(w=(b=this.stickyRowFeature)==null?void 0:b.stickyTopRowCtrls)!=null?w:[]}getStickyBottomRowCtrls(){var b,w;return(w=(b=this.stickyRowFeature)==null?void 0:b.stickyBottomRowCtrls)!=null?w:[]}updateAllRowCtrls(){var R,T;let b=Object.values(this.rowCtrlsByRowIndex),w=Object.values(this.zombieRowCtrls),k=(T=(R=this.cachedRowCtrls)==null?void 0:R.getEntries())!=null?T:[];w.length>0||k.length>0?this.allRowCtrls=[...b,...w,...k]:this.allRowCtrls=b}onCellFocusChanged(b){this.getAllCellCtrls().forEach(w=>w.onCellFocused(b)),this.getFullWidthRowCtrls().forEach(w=>w.onFullWidthRowFocused(b))}onSuppressCellFocusChanged(b){this.getAllCellCtrls().forEach(w=>w.onSuppressCellFocusChanged(b)),this.getFullWidthRowCtrls().forEach(w=>w.onSuppressCellFocusChanged(b))}registerCellEventListeners(){this.addManagedEventListeners({cellFocused:b=>{this.onCellFocusChanged(b)},cellFocusCleared:()=>this.onCellFocusChanged(),flashCells:b=>{let{cellFlashSvc:w}=this.beans;w&&this.getAllCellCtrls().forEach(k=>w.onFlashCells(k,b))},columnHoverChanged:()=>{this.getAllCellCtrls().forEach(b=>b.onColumnHover())},displayedColumnsChanged:()=>{this.getAllCellCtrls().forEach(b=>b.onDisplayedColumnsChanged())},displayedColumnsWidthChanged:()=>{this.printLayout&&this.getAllCellCtrls().forEach(b=>b.onLeftChanged())}}),this.setupRangeSelectionListeners(),this.refreshListenersToColumnsForCellComps(),this.addManagedEventListeners({gridColumnsChanged:this.refreshListenersToColumnsForCellComps.bind(this)}),this.addDestroyFunc(this.removeGridColumnListeners.bind(this))}removeGridColumnListeners(){this.destroyFuncsForColumnListeners.forEach(b=>b()),this.destroyFuncsForColumnListeners.length=0}refreshListenersToColumnsForCellComps(){this.removeGridColumnListeners(),this.colModel.getCols().forEach(b=>{let w=U=>{this.getAllCellCtrls().forEach(X=>{X.column===b&&U(X)})},k=()=>{w(U=>U.onLeftChanged())},R=()=>{w(U=>U.onWidthChanged())},T=()=>{w(U=>U.onFirstRightPinnedChanged())},z=()=>{w(U=>U.onLastLeftPinnedChanged())},G=()=>{w(U=>U.onColDefChanged())};b.addEventListener("leftChanged",k),b.addEventListener("widthChanged",R),b.addEventListener("firstRightPinnedChanged",T),b.addEventListener("lastLeftPinnedChanged",z),b.addEventListener("colDefChanged",G),this.destroyFuncsForColumnListeners.push(()=>{b.removeEventListener("leftChanged",k),b.removeEventListener("widthChanged",R),b.removeEventListener("firstRightPinnedChanged",T),b.removeEventListener("lastLeftPinnedChanged",z),b.removeEventListener("colDefChanged",G)})})}onDomLayoutChanged(){let b=(0,A._isDomLayout)(this.gos,"print"),w=b||this.gos.get("embedFullWidthRows"),k=w!==this.embedFullWidthRows||this.printLayout!==b;this.printLayout=b,this.embedFullWidthRows=w,k&&this.redrawAfterModelUpdate({domLayoutChanged:!0})}datasourceChanged(){this.firstRenderedRow=0,this.lastRenderedRow=-1;let b=Object.keys(this.rowCtrlsByRowIndex);this.removeRowCtrls(b)}onPageLoaded(b){let w={recycleRows:b.keepRenderedRows,animate:b.animate,newData:b.newData,newPage:b.newPage,onlyBody:!0};this.redrawAfterModelUpdate(w)}getAllCellsNotSpanningForColumn(b){let w=[];return this.getAllRowCtrls().forEach(k=>{var T;let R=(T=k.getCellCtrl(b,!0))==null?void 0:T.eGui;R&&w.push(R)}),w}refreshFloatingRowComps(){this.refreshFloatingRows(this.topRowCtrls,"top"),this.refreshFloatingRows(this.bottomRowCtrls,"bottom")}refreshFloatingRows(b,w){var U;let{pinnedRowModel:k,beans:R,printLayout:T}=this,z=Object.fromEntries(b.map(X=>[X.rowNode.id,X]));k==null||k.forEachPinnedRow(w,(X,Q)=>{let oe=b[Q];oe&&k.getPinnedRowById(oe.rowNode.id,w)===void 0&&(oe.destroyFirstPass(),oe.destroySecondPass()),X.id in z?(b[Q]=z[X.id],delete z[X.id]):b[Q]=new u.RowCtrl(X,R,!1,!1,T)});let G=(U=w==="top"?k==null?void 0:k.getPinnedTopRowCount():k==null?void 0:k.getPinnedBottomRowCount())!=null?U:0;b.length=G}onPinnedRowDataChanged(){this.redrawAfterModelUpdate({recycleRows:!0})}redrawRow(b,w=!1){var k,R;if(b.sticky)(k=this.stickyRowFeature)==null||k.refreshStickyNode(b);else{if((R=this.cachedRowCtrls)!=null&&R.has(b))return void this.cachedRowCtrls.removeRow(b);{let T=z=>{let G=z[b.rowIndex];G&&G.rowNode===b&&(G.destroyFirstPass(),G.destroySecondPass(),z[b.rowIndex]=this.createRowCon(b,!1,!1))};switch(b.rowPinned){case"top":T(this.topRowCtrls);break;case"bottom":T(this.bottomRowCtrls);break;default:T(this.rowCtrlsByRowIndex),this.updateAllRowCtrls()}}}w||this.dispatchDisplayedRowsChanged(!1)}redrawRows(b){if(b!=null)return b==null||b.forEach(w=>this.redrawRow(w,!0)),void this.dispatchDisplayedRowsChanged(!1);this.redrawAfterModelUpdate()}getCellToRestoreFocusToAfterRefresh(b){let w=b!=null&&b.suppressKeepFocus?null:this.focusSvc.getFocusCellToUseAfterRefresh();if(w==null)return null;let k=(0,A._getActiveDomElement)(this.beans),R=(0,A._getDomData)(this.gos,k,v.DOM_DATA_KEY_CELL_CTRL),T=(0,A._getDomData)(this.gos,k,u.DOM_DATA_KEY_ROW_CTRL);return R||T?w:null}redrawAfterModelUpdate(b={}){this.getLockOnRefresh();let w=this.getCellToRestoreFocusToAfterRefresh(b);this.updateContainerHeights(),this.scrollToTopIfNewData(b);let k=!b.domLayoutChanged&&!!b.recycleRows,R=b.animate&&(0,A._isAnimateRows)(this.gos),T=k?this.getRowsToRecycle():null;k||this.removeAllRowComps(),this.workOutFirstAndLastRowsToRender();let{stickyRowFeature:z}=this;if(z){z.checkStickyRows();let G=z.extraTopHeight+z.extraBottomHeight;G&&this.updateContainerHeights(G)}this.recycleRows(T,R),this.gridBodyCtrl.updateRowCount(),b.onlyBody||this.refreshFloatingRowComps(),this.dispatchDisplayedRowsChanged(),w!=null&&this.restoreFocusedCell(w),this.releaseLockOnRefresh()}scrollToTopIfNewData(b){var R;let w=b.newData||b.newPage,k=this.gos.get("suppressScrollOnNewData");w&&!k&&(this.gridBodyCtrl.scrollFeature.scrollToTop(),(R=this.stickyRowFeature)==null||R.resetOffsets())}updateContainerHeights(b=0){let{rowContainerHeight:w}=this;if(this.printLayout)return void w.setModelHeight(null);let k=this.pageBounds.getCurrentPageHeight();k===0&&(k=1),w.setModelHeight(k+b)}getLockOnRefresh(){var b,w;if(this.refreshInProgress)throw new Error((0,f._errMsg)(252));this.refreshInProgress=!0,(w=(b=this.beans.frameworkOverrides).getLockOnRefresh)==null||w.call(b)}releaseLockOnRefresh(){var b,w;this.refreshInProgress=!1,(w=(b=this.beans.frameworkOverrides).releaseLockOnRefresh)==null||w.call(b)}isRefreshInProgress(){return this.refreshInProgress}restoreFocusedCell(b){b&&this.focusSvc.restoreFocusedCell(b,()=>{this.onCellFocusChanged(this.gos.addGridCommonParams({rowIndex:b.rowIndex,column:b.column,rowPinned:b.rowPinned,forceBrowserFocus:!0,preventScrollOnBrowserFocus:!0,type:"cellFocused"}))})}getAllCellCtrls(){let b=[],w=this.getAllRowCtrls(),k=w.length;for(let R=0;R<k;R++){let T=w[R].getAllCellCtrls(),z=T.length;for(let G=0;G<z;G++)b.push(T[G])}return b}getAllRowCtrls(){let b=this.getStickyTopRowCtrls(),w=this.getStickyBottomRowCtrls();return[...this.topRowCtrls,...this.bottomRowCtrls,...b,...w,...Object.values(this.rowCtrlsByRowIndex)]}addRenderedRowListener(b,w,k){let R=this.rowCtrlsByRowIndex[w];R&&R.addEventListener(b,k)}refreshCells(b={}){let w={forceRefresh:b.force,newData:!1,suppressFlash:b.suppressFlash};for(let k of this.getCellCtrls(b.rowNodes,b.columns))k.refreshOrDestroyCell(w);this.refreshFullWidth(b.rowNodes)}refreshFullWidth(b){if(!b)return;let w=null;this.stickyRowFeature&&(w=this.getCellToRestoreFocusToAfterRefresh()||null);for(let k of this.getRowCtrls(b))k.isFullWidth()&&(k.refreshFullWidth()||this.redrawRow(k.rowNode,!0));this.dispatchDisplayedRowsChanged(!1),w&&this.restoreFocusedCell(w)}getRowCtrls(b){let w=d(b),k=this.getAllRowCtrls();return b&&w?k.filter(R=>g(R.rowNode,w)):k}getCellCtrls(b,w){let k;(0,D._exists)(w)&&(k={},w.forEach(T=>{let z=this.colModel.getCol(T);(0,D._exists)(z)&&(k[z.getId()]=!0)}));let R=[];return this.getRowCtrls(b).forEach(T=>{T.getAllCellCtrls().forEach(z=>{let G=z.column.getId();k&&!k[G]||R.push(z)})}),R}destroy(){this.removeAllRowComps(!0),super.destroy()}removeAllRowComps(b=!1){var k;let w=Object.keys(this.rowCtrlsByRowIndex);this.removeRowCtrls(w,b),(k=this.stickyRowFeature)==null||k.destroyStickyCtrls()}getRowsToRecycle(){let b=[];for(let[k,R]of Object.entries(this.rowCtrlsByRowIndex))R.rowNode.id==null&&b.push(k);this.removeRowCtrls(b);let w={};for(let k of Object.values(this.rowCtrlsByRowIndex))w[k.rowNode.id]=k;return this.rowCtrlsByRowIndex={},w}removeRowCtrls(b,w=!1){b.forEach(k=>{let R=this.rowCtrlsByRowIndex[k];R&&(R.destroyFirstPass(w),R.destroySecondPass()),delete this.rowCtrlsByRowIndex[k]})}onBodyScroll(b){b.direction==="vertical"&&this.redraw({afterScroll:!0})}redraw(b={}){var X;let{afterScroll:w}=b,k,R=this.stickyRowFeature;R&&(k=this.getCellToRestoreFocusToAfterRefresh()||void 0);let T=this.firstRenderedRow,z=this.lastRenderedRow;this.workOutFirstAndLastRowsToRender();let G=!1;if(R){G=R.checkStickyRows();let Q=R.extraTopHeight+R.extraBottomHeight;Q&&this.updateContainerHeights(Q)}let U=this.firstRenderedRow!==T||this.lastRenderedRow!==z;if((!w||G||U)&&(this.getLockOnRefresh(),this.recycleRows(null,!1,w),this.releaseLockOnRefresh(),this.dispatchDisplayedRowsChanged(w&&!G),k!=null)){let Q=this.getCellToRestoreFocusToAfterRefresh();k!=null&&Q==null&&((X=this.beans.animationFrameSvc)==null||X.flushAllFrames(),this.restoreFocusedCell(k))}}removeRowCompsNotToDraw(b,w){let k={};b.forEach(T=>k[T]=!0);let R=Object.keys(this.rowCtrlsByRowIndex).filter(T=>!k[T]);this.removeRowCtrls(R,w)}calculateIndexesToDraw(b){let w=[];for(let T=this.firstRenderedRow;T<=this.lastRenderedRow;T++)w.push(T);let k=T=>{let z=T.rowNode.rowIndex;z!=null&&(z<this.firstRenderedRow||z>this.lastRenderedRow)&&this.doNotUnVirtualiseRow(T)&&w.push(z)};for(let T of Object.values(this.rowCtrlsByRowIndex))k(T);if(b)for(let T of Object.values(b))k(T);w.sort((T,z)=>T-z);let R=[];for(let T=0;T<w.length;T++){let z=w[T],G=this.rowModel.getRow(z);G&&!G.sticky&&R.push(z)}return R}recycleRows(b,w=!1,k=!1){let R=this.calculateIndexesToDraw(b);(this.printLayout||k)&&(w=!1),this.removeRowCompsNotToDraw(R,!w);let T=[];if(R.forEach(z=>{let G=this.createOrUpdateRowCtrl(z,b,w,k);(0,D._exists)(G)&&T.push(G)}),b){let{animationFrameSvc:z}=this.beans;z&&k&&!this.gos.get("suppressAnimationFrame")&&!this.printLayout?z.addDestroyTask(()=>{this.destroyRowCtrls(b,w),this.updateAllRowCtrls(),this.dispatchDisplayedRowsChanged()}):this.destroyRowCtrls(b,w)}this.updateAllRowCtrls()}dispatchDisplayedRowsChanged(b=!1){this.eventSvc.dispatchEvent({type:"displayedRowsChanged",afterScroll:b})}onDisplayedColumnsChanged(){let{visibleCols:b}=this.beans,w=b.isPinningLeft(),k=b.isPinningRight();(this.pinningLeft!==w||k!==this.pinningRight)&&(this.pinningLeft=w,this.pinningRight=k,this.embedFullWidthRows&&this.redrawFullWidthEmbeddedRows())}redrawFullWidthEmbeddedRows(){let b=[];this.getFullWidthRowCtrls().forEach(w=>{let k=w.rowNode.rowIndex;b.push(k.toString())}),this.refreshFloatingRowComps(),this.removeRowCtrls(b),this.redraw({afterScroll:!0})}getFullWidthRowCtrls(b){let w=d(b);return this.getAllRowCtrls().filter(k=>{if(!k.isFullWidth())return!1;let R=k.rowNode;return!(w!=null&&!g(R,w))})}createOrUpdateRowCtrl(b,w,k,R){let T,z=this.rowCtrlsByRowIndex[b];if(z||(T=this.rowModel.getRow(b),(0,D._exists)(T)&&(0,D._exists)(w)&&w[T.id]&&T.alreadyRendered&&(z=w[T.id],w[T.id]=null)),!z){if(T||(T=this.rowModel.getRow(b)),!(0,D._exists)(T))return;z=this.createRowCon(T,k,R)}return T&&(T.alreadyRendered=!0),this.rowCtrlsByRowIndex[b]=z,z}destroyRowCtrls(b,w){let k=[];if(b){for(let R of Object.values(b))if(R)if(this.cachedRowCtrls&&R.isCacheable())this.cachedRowCtrls.addRow(R);else if(R.destroyFirstPass(!w),w){let T=R.instanceId;this.zombieRowCtrls[T]=R,k.push(()=>{R.destroySecondPass(),delete this.zombieRowCtrls[T]})}else R.destroySecondPass()}w&&(k.push(()=>{this.updateAllRowCtrls(),this.dispatchDisplayedRowsChanged()}),window.setTimeout(()=>k.forEach(R=>R()),400))}getRowBuffer(){return this.gos.get("rowBuffer")}getRowBufferInPixels(){return this.getRowBuffer()*(0,A._getRowHeightAsNumber)(this.beans)}workOutFirstAndLastRowsToRender(){let{rowContainerHeight:b,pageBounds:w,rowModel:k}=this,R,T;if(b.updateOffset(),k.isRowsToRender())if(this.printLayout)this.beans.environment.refreshRowHeightVariable(),R=w.getFirstRow(),T=w.getLastRow();else{let oe=this.getRowBufferInPixels(),le=this.ctrlsSvc.getScrollFeature(),fe=this.gos.get("suppressRowVirtualisation"),ye,ke,Ie=!1;do{let Ae=w.getPixelOffset(),{pageFirstPixel:Ne,pageLastPixel:Re}=w.getCurrentPagePixelRange(),Oe=b.divStretchOffset,Ve=le.getVScrollPosition(),Ue=Ve.top,Ee=Ve.bottom;fe?(ye=Ne+Oe,ke=Re+Oe):(ye=Math.max(Ue+Ae-oe,Ne)+Oe,ke=Math.min(Ee+Ae+oe,Re)+Oe),this.firstVisibleVPixel=Math.max(Ue+Ae,Ne)+Oe,this.lastVisibleVPixel=Math.min(Ee+Ae,Re)+Oe,Ie=this.ensureAllRowsInRangeHaveHeightsCalculated(ye,ke)}while(Ie);let ze=k.getRowIndexAtPixel(ye),Ye=k.getRowIndexAtPixel(ke),xe=w.getFirstRow(),Te=w.getLastRow();ze<xe&&(ze=xe),Ye>Te&&(Ye=Te),R=ze,T=Ye}else R=0,T=-1;let z=(0,A._isDomLayout)(this.gos,"normal"),G=this.gos.get("suppressMaxRenderedRowRestriction"),U=Math.max(this.getRowBuffer(),500);z&&!G&&T-R>U&&(T=R+U);let X=R!==this.firstRenderedRow,Q=T!==this.lastRenderedRow;(X||Q)&&(this.firstRenderedRow=R,this.lastRenderedRow=T,this.eventSvc.dispatchEvent({type:"viewportChanged",firstRow:R,lastRow:T}))}dispatchFirstDataRenderedEvent(){this.dataFirstRenderedFired||(this.dataFirstRenderedFired=!0,window.requestAnimationFrame(()=>{this.beans.eventSvc.dispatchEvent({type:"firstDataRendered",firstRow:this.firstRenderedRow,lastRow:this.lastRenderedRow})}))}ensureAllRowsInRangeHaveHeightsCalculated(b,w){var U,X;let k=(U=this.pinnedRowModel)==null?void 0:U.ensureRowHeightsValid(),R=(X=this.stickyRowFeature)==null?void 0:X.ensureRowHeightsValid(),{pageBounds:T,rowModel:z}=this,G=z.ensureRowHeightsValid(b,w,T.getFirstRow(),T.getLastRow());return(G||R)&&this.eventSvc.dispatchEvent({type:"recalculateRowBounds"}),!!(R||G||k)&&(this.updateContainerHeights(),!0)}doNotUnVirtualiseRow(b){let k=b.rowNode,R=this.focusSvc.isRowNodeFocused(k),T=b.editing,z=k.detail;return(R||T||z)&&!!this.isRowPresent(k)||!1}isRowPresent(b){var w,k;return!!this.rowModel.isRowPresent(b)&&((k=(w=this.beans.pagination)==null?void 0:w.isRowPresent(b))!=null?k:!0)}createRowCon(b,w,k){var G,U;let R=(U=(G=this.cachedRowCtrls)==null?void 0:G.getRow(b))!=null?U:null;if(R)return R;let T=this.gos.get("suppressAnimationFrame"),z=k&&!T&&!this.printLayout&&!!this.beans.animationFrameSvc;return new u.RowCtrl(b,this.beans,w,z,this.printLayout)}getRenderedNodes(){let b=this.rowCtrlsByRowIndex;return Object.values(b).map(w=>w.rowNode)}getRowByPosition(b){let w,{rowIndex:k}=b;switch(b.rowPinned){case"top":w=this.topRowCtrls[k];break;case"bottom":w=this.bottomRowCtrls[k];break;default:w=this.rowCtrlsByRowIndex[k],w||(w=this.getStickyTopRowCtrls().find(R=>R.rowNode.rowIndex===k)||null,w||(w=this.getStickyBottomRowCtrls().find(R=>R.rowNode.rowIndex===k)||null))}return w}isRangeInRenderedViewport(b,w){if(b==null||w==null)return!1;let k=b>this.lastRenderedRow;return!(w<this.firstRenderedRow)&&!k}}x.RowRenderer=s;class r{constructor(b){this.entriesMap={},this.entriesList=[],this.maxCount=b}addRow(b){if(this.entriesMap[b.rowNode.id]=b,this.entriesList.push(b),b.setCached(!0),this.entriesList.length>this.maxCount){let w=this.entriesList[0];w.destroyFirstPass(),w.destroySecondPass(),this.removeFromCache(w)}}getRow(b){if(b==null||b.id==null)return null;let w=this.entriesMap[b.id];return w?(this.removeFromCache(w),w.setCached(!1),w.rowNode!=b?null:w):null}has(b){return this.entriesMap[b.id]!=null}removeRow(b){let w=b.id,k=this.entriesMap[w];delete this.entriesMap[w],(0,F._removeFromArray)(this.entriesList,k)}removeFromCache(b){let w=b.rowNode.id;delete this.entriesMap[w],(0,F._removeFromArray)(this.entriesList,b)}getEntries(){return this.entriesList}}function d(m){if(!m)return;let b={top:{},bottom:{},normal:{}};return m.forEach(w=>{let k=w.id;switch(w.rowPinned){case"top":b.top[k]=w;break;case"bottom":b.bottom[k]=w;break;default:b.normal[k]=w}}),b}function g(m,b){let w=m.id;switch(m.rowPinned){case"top":return b.top[w]!=null;case"bottom":return b.bottom[w]!=null;default:return b.normal[w]!=null}}x.mapRowNodes=d,x.isRowInMap=g},3306:function(ne,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.BaseSelectionService=void 0;let M=p(3146),A=p(8731),F=p(9888),D=p(7274),f=p(5230),v=p(5954),u=p(9666),s=p(8273);class r extends A.BeanStub{postConstruct(){let{gos:g,beans:m}=this;this.selectionCtx=new u.RowRangeSelectionContext(m.rowModel),this.addManagedPropertyListeners(["isRowSelectable","rowSelection"],()=>{let b=(0,D._getIsRowSelectable)(g);b!==this.isRowSelectable&&(this.isRowSelectable=b,this.updateSelectable())}),this.isRowSelectable=(0,D._getIsRowSelectable)(g)}destroy(){super.destroy(),this.selectionCtx.reset()}createCheckboxSelectionComponent(){return new v.CheckboxSelectionComponent}createSelectAllFeature(g){return new s.SelectAllFeature(g)}isMultiSelect(){return(0,D._isMultiRowSelection)(this.gos)}onRowCtrlSelected(g,m,b){let w=!!g.rowNode.isSelected();g.forEachGui(b,k=>{k.rowComp.addOrRemoveCssClass("ag-row-selected",w);let R=k.element;(0,f._setAriaSelected)(R,w),R.contains((0,D._getActiveDomElement)(this.beans))&&m(k)})}announceAriaRowSelection(g){var w;if(this.isRowSelectionBlocked(g))return;let m=g.isSelected();if(m&&!(0,D._getEnableDeselection)(this.gos))return;let b=this.getLocaleTextFunc()(m?"ariaRowDeselect":"ariaRowSelect",`Press SPACE to ${m?"deselect":"select"} this row`);(w=this.beans.ariaAnnounce)==null||w.announceValue(b,"rowSelection")}dispatchSelectionChanged(g){this.eventSvc.dispatchEvent({type:"selectionChanged",source:g})}isRowSelectionBlocked(g){return!g.selectable||!!g.rowPinned||!(0,D._isRowSelection)(this.gos)}updateRowSelectable(g,m){var w,k;let b=(k=(w=this.isRowSelectable)==null?void 0:w.call(this,g))!=null?k:!0;return this.setRowSelectable(g,b,m),b}setRowSelectable(g,m,b){if(g.selectable!==m){if(g.selectable=m,g.dispatchRowEvent("selectableChanged"),b)return;if((0,D._getGroupSelectsDescendants)(this.gos)){let w=this.calculateSelectedFromChildren(g);return void this.setNodesSelected({nodes:[g],newValue:w!=null?w:!1,source:"selectableChanged"})}g.isSelected()&&!g.selectable&&this.setNodesSelected({nodes:[g],newValue:!1,source:"selectableChanged"})}}calculateSelectedFromChildren(g){var w;let m=!1,b=!1;if(!((w=g.childrenAfterGroup)!=null&&w.length))return g.selectable?g.__selected:null;for(let k=0;k<g.childrenAfterGroup.length;k++){let R=g.childrenAfterGroup[k],T=R.isSelected();if(!R.selectable){let z=this.calculateSelectedFromChildren(R);if(z===null)continue;T=z}switch(T){case!0:m=!0;break;case!1:b=!0;break;default:return}}return m&&b?void 0:!!m||!b&&(g.selectable?g.__selected:null)}selectRowNode(g,m,b,w="api"){let k=!g.selectable&&m,R=g.__selected===m;if(k||R)return!1;g.__selected=m,g.dispatchRowEvent("rowSelected");let T=g.sibling;return T&&T.footer&&T.__localEventService&&T.dispatchRowEvent("rowSelected"),this.eventSvc.dispatchEvent(et(pe({},(0,F._createGlobalRowEvent)(g,this.gos,"rowSelected")),{event:b||null,source:w})),!0}isCellCheckboxSelection(g,m){let b=this.gos.get("rowSelection");if(b&&typeof b!="string"){let w=(0,M.isColumnSelectionCol)(g)&&(0,D._getCheckboxes)(b);return g.isColumnFunc(m,w)}return g.isColumnFunc(m,g.colDef.checkboxSelection)}inferNodeSelections(g,m,b,w){let{gos:k,selectionCtx:R}=this,T=g.isSelected(),z=(0,D._getGroupSelectsDescendants)(k),G=(0,D._getEnableSelection)(k),U=(0,D._getEnableDeselection)(k),X=w==="rowClicked";if(X&&z&&g.group||X&&!G&&!U)return null;if(m&&b&&this.isMultiSelect()){let Q=R.getRoot();if(Q){if(Q.isSelected()){let oe=R.isInRange(g)?R.truncate(g):R.extend(g,z);return{deselect:oe.discard,select:oe.keep,reset:!1}}return{select:[],deselect:R.extend(g,z).keep,reset:!1}}return null}if(m&&this.isMultiSelect()){let Q=R.getRoot(),oe=R.isInRange(g)?R.truncate(g):R.extend(g,z);return{select:oe.keep,deselect:oe.discard,reset:!(!Q||Q.isSelected())}}if(b)return R.setRoot(g),X&&T&&!U?null:{node:g,newValue:!T,clearSelection:!this.isMultiSelect()};{R.setRoot(g);let Q=(0,D._getEnableSelectionWithoutKeys)(k),oe=X&&(!Q||!G);if((0,D._getGroupSelection)(k)==="filteredDescendants"&&T===void 0&&(0,D._isClientSideRowModel)(k))return{node:g,newValue:!1,clearSelection:!this.isMultiSelect()||oe};if(X){let le=T?!Q:G;return le===T?null:{node:g,newValue:le,clearSelection:!this.isMultiSelect()||oe}}return{node:g,newValue:!T,clearSelection:!this.isMultiSelect()||oe}}}}x.BaseSelectionService=r},5954:function(ne,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.CheckboxSelectionComponent=void 0;let M=p(7274),A=p(5230),F=p(2979),D=p(66),f=p(8020);class v extends f.Component{constructor(){super(`
            <div class="ag-selection-checkbox" role="presentation">
                <ag-checkbox role="presentation" data-ref="eCheckbox"></ag-checkbox>
            </div>`,[D.AgCheckboxSelector]),this.eCheckbox=f.RefPlaceholder}postConstruct(){this.eCheckbox.setPassive(!0)}getCheckboxId(){return this.eCheckbox.getInputElement().id}onDataChanged(){this.onSelectionChanged()}onSelectableChanged(){this.showOrHideSelect()}onSelectionChanged(){let s=this.getLocaleTextFunc(),{rowNode:r,eCheckbox:d}=this,g=r.isSelected(),m=(0,A._getAriaCheckboxStateName)(s,g),[b,w]=r.selectable?["ariaRowToggleSelection","Press Space to toggle row selection"]:["ariaRowSelectionDisabled","Row Selection is disabled for this row"],k=s(b,w);d.setValue(g,!0),d.setInputAriaLabel(`${k} (${m})`)}init(s){if(this.rowNode=s.rowNode,this.column=s.column,this.overrides=s.overrides,this.onSelectionChanged(),this.addManagedListeners(this.eCheckbox.getInputElement(),{dblclick:F._stopPropagationForAgGrid,click:r=>{var d;(0,F._stopPropagationForAgGrid)(r),(d=this.beans.selectionSvc)==null||d.handleSelectionEvent(r,this.rowNode,"checkboxSelected")}}),this.addManagedListeners(this.rowNode,{rowSelected:this.onSelectionChanged.bind(this),dataChanged:this.onDataChanged.bind(this),selectableChanged:this.onSelectableChanged.bind(this)}),this.addManagedPropertyListener("rowSelection",({currentValue:r,previousValue:d})=>{(typeof r=="object"?(0,M._getHideDisabledCheckboxes)(r):void 0)!==(typeof d=="object"?(0,M._getHideDisabledCheckboxes)(d):void 0)&&this.onSelectableChanged()}),(0,M._getIsRowSelectable)(this.gos)||typeof this.getIsVisible()=="function"){let r=this.showOrHideSelect.bind(this);this.addManagedEventListeners({displayedColumnsChanged:r}),this.addManagedListeners(this.rowNode,{dataChanged:r,cellChanged:r}),this.showOrHideSelect()}this.eCheckbox.getInputElement().setAttribute("tabindex","-1")}showOrHideSelect(){let{column:s,rowNode:r,overrides:d,gos:g}=this,m=r.selectable,b=this.getIsVisible();if(m)if(typeof b=="function"){let k=d==null?void 0:d.callbackParams;if(s){let R=s.createColumnFunctionCallbackParams(r);m=b(pe(pe({},k),R))}else m=b(et(pe({},k),{node:r,data:r.data}))}else m=b!=null?b:!1;let w=g.get("rowSelection");if(w&&typeof w!="string"?!(0,M._getHideDisabledCheckboxes)(w):s!=null&&s.getColDef().showDisabledCheckboxes)return this.eCheckbox.setDisabled(!m),this.setVisible(!0),void this.setDisplayed(!0);d!=null&&d.removeHidden?this.setDisplayed(m):this.setVisible(m)}getIsVisible(){var d,g;let s=this.overrides;if(s)return s.isVisible;let r=this.gos.get("rowSelection");return r&&typeof r!="string"?(0,M._getCheckboxes)(r):(g=(d=this.column)==null?void 0:d.getColDef())==null?void 0:g.checkboxSelection}}x.CheckboxSelectionComponent=v},9666:function(ne,x){Object.defineProperty(x,"__esModule",{value:!0}),x.RowRangeSelectionContext=void 0,x.RowRangeSelectionContext=class{constructor(p){this.rootId=null,this.endId=null,this.cachedRange=[],this.rowModel=p}reset(){this.rootId=null,this.endId=null,this.cachedRange.length=0}setRoot(p){this.rootId=p.id,this.endId=null,this.cachedRange.length=0}setEndRange(p){this.endId=p.id,this.cachedRange.length=0}getRange(){var p;if(this.cachedRange.length===0){let M=this.getRoot(),A=this.getEnd();if(M==null||A==null)return this.cachedRange;this.cachedRange=(p=this.rowModel.getNodesInRangeForSelection(M,A))!=null?p:[]}return this.cachedRange}isInRange(p){return this.rootId!==null&&this.getRange().some(M=>M.id===p.id)}getRoot(){var p;return this.rootId&&(p=this.rowModel.getRowNode(this.rootId))!=null?p:null}getEnd(){var p;return this.endId&&(p=this.rowModel.getRowNode(this.endId))!=null?p:null}truncate(p){let M=this.getRange();if(M.length===0)return{keep:[],discard:[]};let A=M[0].id===this.rootId,F=M.findIndex(D=>D.id===p.id);if(F>-1){let D=M.slice(0,F),f=M.slice(F+1);return this.setEndRange(p),A?{keep:D,discard:f}:{keep:f,discard:D}}return{keep:M,discard:[]}}extend(p,M=!1){let A=this.getRoot();if(A==null){let D=this.getRange().slice();return M&&p.depthFirstSearch(f=>!f.group&&D.push(f)),D.push(p),this.setRoot(p),{keep:D,discard:[]}}let F=this.rowModel.getNodesInRangeForSelection(A,p);if(!F)return this.setRoot(p),{keep:[p],discard:[]};if(F.find(D=>D.id===this.endId))return this.setEndRange(p),{keep:this.getRange(),discard:[]};{let D=this.getRange().slice();return this.setEndRange(p),{keep:this.getRange(),discard:D}}}}},9770:function(ne,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.getSelectedRows=x.getSelectedNodes=x.deselectAllOnCurrentPage=x.selectAllOnCurrentPage=x.deselectAllFiltered=x.selectAllFiltered=x.deselectAll=x.selectAll=x.setNodesSelected=void 0;let M=p(7764);x.setNodesSelected=function(A,F){var s;if(!F.nodes.every(r=>r.rowPinned?((0,M._warn)(59),!1):r.id!==void 0||((0,M._warn)(60),!1)))return;let{nodes:D,source:f,newValue:v}=F,u=D;(s=A.selectionSvc)==null||s.setNodesSelected({nodes:u,source:f!=null?f:"api",newValue:v})},x.selectAll=function(A,F,D="apiSelectAll"){var f;(f=A.selectionSvc)==null||f.selectAllRowNodes({source:D,selectAll:F})},x.deselectAll=function(A,F,D="apiSelectAll"){var f;(f=A.selectionSvc)==null||f.deselectAllRowNodes({source:D,selectAll:F})},x.selectAllFiltered=function(A,F="apiSelectAllFiltered"){var D;(D=A.selectionSvc)==null||D.selectAllRowNodes({source:F,selectAll:"filtered"})},x.deselectAllFiltered=function(A,F="apiSelectAllFiltered"){var D;(D=A.selectionSvc)==null||D.deselectAllRowNodes({source:F,selectAll:"filtered"})},x.selectAllOnCurrentPage=function(A,F="apiSelectAllCurrentPage"){var D;(D=A.selectionSvc)==null||D.selectAllRowNodes({source:F,selectAll:"currentPage"})},x.deselectAllOnCurrentPage=function(A,F="apiSelectAllCurrentPage"){var D;(D=A.selectionSvc)==null||D.deselectAllRowNodes({source:F,selectAll:"currentPage"})},x.getSelectedNodes=function(A){var F,D;return(D=(F=A.selectionSvc)==null?void 0:F.getSelectedNodes())!=null?D:[]},x.getSelectedRows=function(A){var F,D;return(D=(F=A.selectionSvc)==null?void 0:F.getSelectedRows())!=null?D:[]}},3352:function(ne,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.RowSelectionModule=x.SharedRowSelectionModule=void 0;let M=p(5626),A=p(7205),F=p(9770),D=p(6603);x.SharedRowSelectionModule={moduleName:"SharedRowSelection",version:A.VERSION,beans:[M.SelectionColService],apiFunctions:{setNodesSelected:F.setNodesSelected,selectAll:F.selectAll,deselectAll:F.deselectAll,selectAllFiltered:F.selectAllFiltered,deselectAllFiltered:F.deselectAllFiltered,selectAllOnCurrentPage:F.selectAllOnCurrentPage,deselectAllOnCurrentPage:F.deselectAllOnCurrentPage,getSelectedNodes:F.getSelectedNodes,getSelectedRows:F.getSelectedRows}},x.RowSelectionModule={moduleName:"RowSelection",version:A.VERSION,rowModels:["clientSide","infinite","viewport"],beans:[D.SelectionService],dependsOn:[x.SharedRowSelectionModule]}},8273:function(ne,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.SelectAllFeature=void 0;let M=p(3146),A=p(8731),F=p(7274),D=p(5230),f=p(7764),v=p(66);class u extends A.BeanStub{constructor(r){super(),this.column=r,this.cbSelectAllVisible=!1,this.processingEventFromCheckbox=!1}onSpaceKeyDown(r){let d=this.cbSelectAll;d.isDisplayed()&&!d.getGui().contains((0,F._getActiveDomElement)(this.beans))&&(r.preventDefault(),d.setValue(!d.getValue()))}getCheckboxGui(){return this.cbSelectAll.getGui()}setComp(r){this.headerCellCtrl=r;let d=this.createManagedBean(new v.AgCheckbox);this.cbSelectAll=d,d.addCssClass("ag-header-select-all"),(0,D._setAriaRole)(d.getGui(),"presentation"),this.showOrHideSelectAll(),this.addManagedEventListeners({newColumnsLoaded:this.showOrHideSelectAll.bind(this),displayedColumnsChanged:this.onDisplayedColumnsChanged.bind(this),selectionChanged:this.onSelectionChanged.bind(this),paginationChanged:this.onSelectionChanged.bind(this),modelUpdated:this.onModelChanged.bind(this)}),this.addManagedListeners(d,{fieldValueChanged:this.onCbSelectAll.bind(this)}),d.getInputElement().setAttribute("tabindex","-1"),this.refreshSelectAllLabel()}onDisplayedColumnsChanged(){this.isAlive()&&this.showOrHideSelectAll()}showOrHideSelectAll(){let r=this.isCheckboxSelection();this.cbSelectAllVisible=r,this.cbSelectAll.setDisplayed(r),r&&(this.checkRightRowModelType("selectAllCheckbox"),this.checkSelectionType("selectAllCheckbox"),this.updateStateOfCheckbox()),this.refreshSelectAllLabel()}onModelChanged(){this.cbSelectAllVisible&&this.updateStateOfCheckbox()}onSelectionChanged(){this.cbSelectAllVisible&&this.updateStateOfCheckbox()}updateStateOfCheckbox(){if(this.processingEventFromCheckbox)return;this.processingEventFromCheckbox=!0;let r=this.getSelectAllMode(),d=this.beans.selectionSvc,g=this.cbSelectAll,m=d.getSelectAllState(r);g.setValue(m);let b=d.hasNodesToSelect(r);g.setDisabled(!b),this.refreshSelectAllLabel(),this.processingEventFromCheckbox=!1}refreshSelectAllLabel(){let r=this.getLocaleTextFunc(),{headerCellCtrl:d,cbSelectAll:g,cbSelectAllVisible:m}=this,b=g.getValue()?r("ariaChecked","checked"):r("ariaUnchecked","unchecked"),w=r("ariaRowSelectAll","Press Space to toggle all rows selection");d.setAriaDescriptionProperty("selectAll",m?`${w} (${b})`:null),g.setInputAriaLabel(r("ariaHeaderSelection","Column with Header Selection")),d.announceAriaDescription()}checkSelectionType(r){return!!(0,F._isMultiRowSelection)(this.gos)||((0,f._warn)(128,{feature:r}),!1)}checkRightRowModelType(r){let{gos:d,rowModel:g}=this.beans;return!(!(0,F._isClientSideRowModel)(d)&&!(0,F._isServerSideRowModel)(d))||((0,f._warn)(129,{feature:r,rowModel:g.getType()}),!1)}onCbSelectAll(){if(this.processingEventFromCheckbox||!this.cbSelectAllVisible)return;let r=this.cbSelectAll.getValue(),d=this.getSelectAllMode(),g="uiSelectAll";d==="currentPage"?g="uiSelectAllCurrentPage":d==="filtered"&&(g="uiSelectAllFiltered");let m={source:g,selectAll:d},b=this.beans.selectionSvc;r?b.selectAllRowNodes(m):b.deselectAllRowNodes(m)}isCheckboxSelection(){var z;let{column:r,gos:d,beans:g}=this,m=d.get("rowSelection"),b=r.getColDef(),{headerCheckboxSelection:w}=b,k=!1,R=typeof m=="object";if(R){let G=(0,M.isColumnSelectionCol)(r),U=(0,M.isColumnGroupAutoCol)(r);((0,F._getCheckboxLocation)(m)==="autoGroupColumn"&&U||G&&((z=g.selectionColSvc)!=null&&z.isSelectionColumnEnabled()))&&(k=(0,F._getHeaderCheckbox)(m))}else k=typeof w=="function"?w(d.addGridCommonParams({column:r,colDef:b})):!!w;let T=R?"headerCheckbox":"headerCheckboxSelection";return k&&this.checkRightRowModelType(T)&&this.checkSelectionType(T)}getSelectAllMode(){let r=(0,F._getSelectAll)(this.gos,!1);if(r)return r;let{headerCheckboxSelectionCurrentPageOnly:d,headerCheckboxSelectionFilteredOnly:g}=this.column.getColDef();return d?"currentPage":g?"filtered":"all"}}x.SelectAllFeature=u},6603:function(ne,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.SelectionService=void 0;let M=p(3373),A=p(7274),F=p(6800),D=p(7764),f=p(3306);class v extends f.BaseSelectionService{constructor(){super(...arguments),this.beanName="selectionSvc",this.selectedNodes=new Map}postConstruct(){super.postConstruct();let{gos:s}=this;this.mode=(0,A._getRowSelectionMode)(s),this.groupSelectsDescendants=(0,A._getGroupSelectsDescendants)(s),this.groupSelectsFiltered=(0,A._getGroupSelection)(s)==="filteredDescendants",this.addManagedPropertyListeners(["groupSelectsChildren","groupSelectsFiltered","rowSelection"],()=>{let r=(0,A._getGroupSelectsDescendants)(s),d=(0,A._getRowSelectionMode)(s),g=(0,A._getGroupSelection)(s)==="filteredDescendants";r===this.groupSelectsDescendants&&g===this.groupSelectsFiltered&&d===this.mode||(this.deselectAllRowNodes({source:"api"}),this.groupSelectsDescendants=r,this.groupSelectsFiltered=g,this.mode=d)}),this.addManagedEventListeners({rowSelected:this.onRowSelected.bind(this)})}destroy(){super.destroy(),this.resetNodes()}handleSelectionEvent(s,r,d){if(this.isRowSelectionBlocked(r))return 0;let g=this.inferNodeSelections(r,s.shiftKey,s.metaKey||s.ctrlKey,d);return g==null?0:"select"in g?(g.reset?this.resetNodes():this.selectRange(g.deselect,!1,d),this.selectRange(g.select,!0,d)):this.setNodesSelected({nodes:[g.node],newValue:g.newValue,clearSelection:g.clearSelection,event:s,source:d})}setNodesSelected({newValue:s,clearSelection:r,suppressFinishActions:d,nodes:g,event:m,source:b}){var k;if(!(0,A._isRowSelection)(this.gos)&&s)return(0,D._warn)(132),0;if(g.length===0)return 0;if(g.length>1&&!this.isMultiSelect())return(0,D._warn)(130),0;let w=0;for(let R=0;R<g.length;R++){let T=g[R],z=T.footer?T.sibling:T,G=this.groupSelectsFiltered&&z.group;z.rowPinned?(0,D._warn)(59):z.id!==void 0?(G||this.selectRowNode(z,s,m,b)&&w++,this.groupSelectsDescendants&&((k=z.childrenAfterGroup)!=null&&k.length)&&(w+=this.selectChildren(z,s,b))):(0,D._warn)(60)}return d||(s&&(r||!this.isMultiSelect())&&(w+=this.clearOtherNodes(g[0],b)),w>0&&(this.updateGroupsFromChildrenSelections(b),this.dispatchSelectionChanged(b))),w}selectRange(s,r,d){let g=0;return s.forEach(m=>{m.group&&this.groupSelectsDescendants||this.selectRowNode(m,r,void 0,d)&&g++}),g>0&&(this.updateGroupsFromChildrenSelections(d),this.dispatchSelectionChanged(d)),g}selectChildren(s,r,d){let g=this.groupSelectsFiltered?s.childrenAfterAggFilter:s.childrenAfterGroup;return g?this.setNodesSelected({newValue:r,clearSelection:!1,suppressFinishActions:!0,source:d,nodes:g}):0}getSelectedNodes(){return Array.from(this.selectedNodes.values())}getSelectedRows(){let s=[];return this.selectedNodes.forEach(r=>s.push(r.data)),s}getSelectionCount(){return this.selectedNodes.size}filterFromSelection(s){let r=new Map;this.selectedNodes.forEach((d,g)=>{s(d)&&r.set(g,d)}),this.selectedNodes=r}updateGroupsFromChildrenSelections(s,r){if(!this.groupSelectsDescendants)return!1;let{gos:d,rowModel:g}=this.beans;if(!(0,A._isClientSideRowModel)(d,g))return!1;let m=g.rootNode;if(!m)return!1;r||((r=new F.ChangedPath(!0,m)).active=!1);let b=!1;return r.forEachChangedNodeDepthFirst(w=>{if(w!==m){let k=this.calculateSelectedFromChildren(w);b=this.selectRowNode(w,k!==null&&k,void 0,s)||b}}),b}clearOtherNodes(s,r){let d=new Map,g=0;return this.selectedNodes.forEach(m=>{if(m&&m.id!==s.id){let b=this.selectedNodes.get(m.id);g+=this.setNodesSelected({nodes:[b],newValue:!1,clearSelection:!1,suppressFinishActions:!0,source:r}),this.groupSelectsDescendants&&m.parent&&d.set(m.parent.id,m.parent)}}),d.forEach(m=>{let b=this.calculateSelectedFromChildren(m);this.selectRowNode(m,b!==null&&b,void 0,r)}),g}onRowSelected(s){let r=s.node;this.groupSelectsDescendants&&r.group||(r.isSelected()?this.selectedNodes.set(r.id,r):this.selectedNodes.delete(r.id))}syncInRowNode(s,r){this.syncInOldRowNode(s,r),this.syncInNewRowNode(s)}createDaemonNode(s){if(!s.id)return;let r=new M.RowNode(this.beans);return r.id=s.id,r.data=s.data,r.__daemon=!0,r.__selected=s.__selected,r.level=s.level,r}syncInOldRowNode(s,r){r&&s.id!==r.id&&this.selectedNodes.get(r.id)==s&&this.selectedNodes.set(r.id,r)}syncInNewRowNode(s){this.selectedNodes.has(s.id)?(s.__selected=!0,this.selectedNodes.set(s.id,s)):s.__selected=!1}reset(s){let r=this.getSelectionCount();this.resetNodes(),r&&this.dispatchSelectionChanged(s)}resetNodes(){this.selectedNodes.forEach(s=>{this.selectRowNode(s,!1)}),this.selectedNodes.clear()}getBestCostNodeSelection(){let{gos:s,rowModel:r}=this.beans;if(!(0,A._isClientSideRowModel)(s,r))return;let d=r.getTopLevelNodes();if(d===null)return;let g=[];return function m(b){for(let w=0,k=b.length;w<k;w++){let R=b[w];R.isSelected()?g.push(R):R.group&&R.childrenAfterGroup&&m(R.childrenAfterGroup)}}(d),g}isEmpty(){return this.getSelectionCount()===0}deselectAllRowNodes(s){let r=b=>this.selectRowNode(b.footer?b.sibling:b,!1,void 0,g),d=(0,A._isClientSideRowModel)(this.gos),{source:g,selectAll:m}=s;if(m==="currentPage"||m==="filtered"){if(!d)return void(0,D._error)(102);this.getNodesToSelect(m).forEach(r)}else this.selectedNodes.forEach(r),this.reset(g);d&&this.groupSelectsDescendants&&this.updateGroupsFromChildrenSelections(g),this.dispatchSelectionChanged(g)}getSelectedCounts(s){let r=0,d=0;return this.getNodesToSelect(s).forEach(g=>{this.groupSelectsDescendants&&g.group||(g.isSelected()?r++:g.selectable&&d++)}),{selectedCount:r,notSelectedCount:d}}getSelectAllState(s){let{selectedCount:r,notSelectedCount:d}=this.getSelectedCounts(s);return(r!==0||d!==0)&&(r>0&&d>0?null:r>0)}hasNodesToSelect(s){return this.getNodesToSelect(s).filter(r=>r.selectable).length>0}getNodesToSelect(s){if(!this.canSelectAll())return[];let r=[];if(s==="currentPage")return this.forEachNodeOnPage(g=>{if(g.group)if(g.expanded||g.footer)this.groupSelectsDescendants||r.push(g);else{let m=b=>{var w;r.push(b),(w=b.childrenAfterFilter)!=null&&w.length&&b.childrenAfterFilter.forEach(m)};m(g)}else r.push(g)}),r;let d=this.beans.rowModel;return s==="filtered"?(d.forEachNodeAfterFilter(g=>{r.push(g)}),r):(d.forEachNode(g=>{r.push(g)}),r)}forEachNodeOnPage(s){let{pageBounds:r,rowModel:d}=this.beans,g=r.getFirstRow(),m=r.getLastRow();for(let b=g;b<=m;b++){let w=d.getRow(b);w&&s(w)}}selectAllRowNodes(s){let{gos:r}=this;if(!(0,A._isRowSelection)(r))return void(0,D._warn)(132);if((0,A._isUsingNewRowSelectionAPI)(r)&&!(0,A._isMultiRowSelection)(r))return void(0,D._warn)(130);if(!this.canSelectAll())return;let{source:d,selectAll:g}=s;this.getNodesToSelect(g).forEach(m=>{this.selectRowNode(m.footer?m.sibling:m,!0,void 0,d)}),(0,A._isClientSideRowModel)(r)&&this.groupSelectsDescendants&&this.updateGroupsFromChildrenSelections(d),this.dispatchSelectionChanged(d)}getSelectionState(){let s=[];return this.selectedNodes.forEach(r=>{r!=null&&r.id&&s.push(r.id)}),s.length?s:null}setSelectionState(s,r){if(!Array.isArray(s))return void(0,D._error)(103);let d=new Set(s),g=[];this.beans.rowModel.forEachNode(m=>{d.has(m.id)&&g.push(m)}),this.setNodesSelected({newValue:!0,nodes:g,source:r})}canSelectAll(){let{gos:s,rowModel:r}=this.beans;return!!(0,A._isClientSideRowModel)(s)||((0,D._error)(100,{rowModelType:r.getType()}),!1)}updateSelectable(s){var R;let{gos:r,rowModel:d}=this.beans;if(!(0,A._isRowSelection)(r))return;let g="selectableChanged",m=s!==void 0,b=(0,A._isClientSideRowModel)(r)&&this.groupSelectsDescendants,w=[],k=T=>{var z,G;if(!(m&&!T.group)){if(b&&T.group){let U=(G=(z=T.childrenAfterGroup)==null?void 0:z.some(X=>X.selectable))!=null?G:!1;return void this.setRowSelectable(T,U,!0)}!this.updateRowSelectable(T,!0)&&T.isSelected()&&w.push(T)}};if(b){if(s===void 0){let T=d.rootNode;s=T?new F.ChangedPath(!1,T):void 0}s==null||s.forEachChangedNodeDepthFirst(k,!m,!m)}else d.forEachNode(k);w.length&&this.setNodesSelected({nodes:w,newValue:!1,source:g}),!m&&b&&((R=this.updateGroupsFromChildrenSelections)==null||R.call(this,g))}updateSelectableAfterGrouping(s){var r;this.updateSelectable(s),this.groupSelectsDescendants&&((r=this.updateGroupsFromChildrenSelections)!=null&&r.call(this,"rowGroupChanged",s))&&this.eventSvc.dispatchEvent({type:"selectionChanged",source:"rowGroupChanged"})}}x.SelectionService=v},3341:function(ne,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.RowNodeSorter=void 0;let M=p(8731),A=p(7274),F=p(4422);class D extends M.BeanStub{constructor(){super(...arguments),this.beanName="rowNodeSorter"}postConstruct(){let{gos:v}=this;this.isAccentedSort=v.get("accentedSort"),this.primaryColumnsSortGroups=(0,A._isColumnsSortingCoupledToGroup)(v),this.addManagedPropertyListener("accentedSort",u=>this.isAccentedSort=u.currentValue),this.addManagedPropertyListener("autoGroupColumnDef",()=>this.primaryColumnsSortGroups=(0,A._isColumnsSortingCoupledToGroup)(v))}doFullSort(v,u){let s=v.map((r,d)=>({currentPos:d,rowNode:r}));return s.sort(this.compareRowNodes.bind(this,u)),s.map(r=>r.rowNode)}compareRowNodes(v,u,s){let r=u.rowNode,d=s.rowNode;for(let g=0,m=v.length;g<m;g++){let b=v[g],w=b.sort==="desc",k=this.getValue(r,b.column),R=this.getValue(d,b.column),T,z=this.getComparator(b,r);if(T=z?z(k,R,r,d,w):(0,F._defaultComparator)(k,R,this.isAccentedSort),!isNaN(T)&&T!==0)return b.sort==="asc"?T:-1*T}return u.currentPos-s.currentPos}getComparator(v,u){let s=v.column,r=s.getColDef().comparator;if(r!=null)return r;if(!s.getColDef().showRowGroup)return;let d=!u.group&&s.getColDef().field;if(!d)return;let g=this.beans.colModel.getColDefCol(d);return g?g.getColDef().comparator:void 0}getValue(v,u){var m,b;let{valueSvc:s,colModel:r,showRowGroupCols:d,gos:g}=this.beans;if(!this.primaryColumnsSortGroups)return s.getValue(u,v,!1);if(v.rowGroupColumn===u){if((0,A._isGroupUseEntireRow)(g,r.isPivotActive())){let k=(m=v.allLeafChildren)==null?void 0:m[0];return k?s.getValue(u,k,!1):void 0}let w=d==null?void 0:d.getShowRowGroupCol(u.getId());return w?(b=v.groupData)==null?void 0:b[w.getId()]:void 0}return v.group&&u.getColDef().showRowGroup?void 0:s.getValue(u,v,!1)}}x.RowNodeSorter=D},7430:function(ne,x){Object.defineProperty(x,"__esModule",{value:!0}),x.onSortChanged=void 0,x.onSortChanged=function(p){var M;(M=p.sortSvc)==null||M.onSortChanged("api")}},7388:function(ne,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.SortIndicatorSelector=x.SortIndicatorComp=void 0;let M=p(7274),A=p(3507),F=p(9970),D=p(8020);function f(s,r){return`<span data-ref="eSort${s}" class="ag-sort-indicator-icon ag-sort-${r} ag-hidden" aria-hidden="true"></span>`}let v=`<span class="ag-sort-indicator-container">
        ${f("Order","order")}
        ${f("Asc","ascending-icon")}
        ${f("Desc","descending-icon")}
        ${f("Mixed","mixed-icon")}
        ${f("None","none-icon")}
    </span>`;class u extends D.Component{constructor(r){super(),this.eSortOrder=D.RefPlaceholder,this.eSortAsc=D.RefPlaceholder,this.eSortDesc=D.RefPlaceholder,this.eSortMixed=D.RefPlaceholder,this.eSortNone=D.RefPlaceholder,r||this.setTemplate(v)}attachCustomElements(r,d,g,m,b){this.eSortOrder=r,this.eSortAsc=d,this.eSortDesc=g,this.eSortMixed=m,this.eSortNone=b}setupSort(r,d=!1){if(this.column=r,this.suppressOrder=d,this.setupMultiSortIndicator(),!r.isSortable()&&!r.getColDef().showRowGroup)return;this.addInIcon("sortAscending",this.eSortAsc,r),this.addInIcon("sortDescending",this.eSortDesc,r),this.addInIcon("sortUnSort",this.eSortNone,r);let g=this.updateIcons.bind(this),m=this.onSortChanged.bind(this);this.addManagedPropertyListener("unSortIcon",g),this.addManagedEventListeners({newColumnsLoaded:g,sortChanged:m,columnRowGroupChanged:m}),this.onSortChanged()}addInIcon(r,d,g){if(d==null)return;let m=(0,F._createIconNoSpan)(r,this.beans,g);m&&d.appendChild(m)}onSortChanged(){this.updateIcons(),this.suppressOrder||this.updateSortOrder()}updateIcons(){let{eSortAsc:r,eSortDesc:d,eSortNone:g,column:m,gos:b,beans:w}=this,k=w.sortSvc.getDisplaySortForColumn(m);if(r){let R=k==="asc";(0,A._setDisplayed)(r,R,{skipAriaHidden:!0})}if(d){let R=k==="desc";(0,A._setDisplayed)(d,R,{skipAriaHidden:!0})}if(g){let R=!m.getColDef().unSortIcon&&!b.get("unSortIcon"),T=k==null;(0,A._setDisplayed)(g,!R&&T,{skipAriaHidden:!0})}}setupMultiSortIndicator(){let{eSortMixed:r,column:d,gos:g}=this;this.addInIcon("sortUnSort",r,d);let m=d.getColDef().showRowGroup;(0,M._isColumnsSortingCoupledToGroup)(g)&&m&&(this.addManagedEventListeners({sortChanged:this.updateMultiSortIndicator.bind(this),columnRowGroupChanged:this.updateMultiSortIndicator.bind(this)}),this.updateMultiSortIndicator())}updateMultiSortIndicator(){let{eSortMixed:r,beans:d,column:g}=this;if(r){let m=d.sortSvc.getDisplaySortForColumn(g)==="mixed";(0,A._setDisplayed)(r,m,{skipAriaHidden:!0})}}updateSortOrder(){var R;let{eSortOrder:r,column:d,beans:{sortSvc:g}}=this;if(!r)return;let m=g.getColumnsWithSortingOrdered(),b=(R=g.getDisplaySortIndexForColumn(d))!=null?R:-1,w=m.some(T=>{var z;return(z=g.getDisplaySortIndexForColumn(T))!=null?z:!1}),k=b>=0&&w;(0,A._setDisplayed)(r,k,{skipAriaHidden:!0}),b>=0?r.textContent=(b+1).toString():(0,A._clearElement)(r)}}x.SortIndicatorComp=u,x.SortIndicatorSelector={selector:"AG-SORT-INDICATOR",component:u}},6620:function(ne,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.SortModule=void 0;let M=p(7205),A=p(3341),F=p(7430),D=p(7388),f=p(8125);x.SortModule={moduleName:"Sort",version:M.VERSION,beans:[f.SortService,A.RowNodeSorter],apiFunctions:{onSortChanged:F.onSortChanged},userComponents:{agSortIndicator:D.SortIndicatorComp},icons:{sortAscending:"asc",sortDescending:"desc",sortUnSort:"none"}}},8125:function(ne,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.SortService=x.DEFAULT_SORTING_ORDER=void 0;let M=p(8731),A=p(7274),F=p(7388);x.DEFAULT_SORTING_ORDER=["asc","desc",null];class D extends M.BeanStub{constructor(){super(...arguments),this.beanName="sortSvc"}progressSort(v,u,s){let r=this.getNextSortDirection(v);this.setSortForColumn(v,r,u,s)}progressSortFromEvent(v,u){let s=this.gos.get("multiSortKey")==="ctrl"?u.ctrlKey||u.metaKey:u.shiftKey;this.progressSort(v,s,"uiColumnSorted")}setSortForColumn(v,u,s,r){var w;u!=="asc"&&u!=="desc"&&(u=null);let{gos:d,showRowGroupCols:g}=this.beans,m=[v];if((0,A._isColumnsSortingCoupledToGroup)(d)&&v.getColDef().showRowGroup){let k=(w=g==null?void 0:g.getSourceColumnsForGroupColumn)==null?void 0:w.call(g,v),R=k==null?void 0:k.filter(T=>T.isSortable());R&&(m=[v,...R])}m.forEach(k=>this.setColSort(k,u,r));let b=[];if(!((s||d.get("alwaysMultiSort"))&&!d.get("suppressMultiSort"))){let k=this.clearSortBarTheseColumns(m,r);b.push(...k)}this.updateSortIndex(v),b.push(...m),this.dispatchSortChangedEvents(r,b)}updateSortIndex(v){let{gos:u,colModel:s,showRowGroupCols:r}=this.beans,d=(0,A._isColumnsSortingCoupledToGroup)(u),g=r==null?void 0:r.getShowRowGroupCol(v.getId()),m=d&&g||v,b=this.getColumnsWithSortingOrdered();s.getAllCols().forEach(k=>this.setColSortIndex(k,null));let w=b.filter(k=>(!d||!k.getColDef().showRowGroup)&&k!==m);(m.getSort()?[...w,m]:w).forEach((k,R)=>this.setColSortIndex(k,R))}onSortChanged(v,u){this.dispatchSortChangedEvents(v,u)}isSortActive(){let v=this.beans.colModel.getAllCols().filter(u=>!!u.getSort());return v&&v.length>0}dispatchSortChangedEvents(v,u){let s={type:"sortChanged",source:v};u&&(s.columns=u),this.eventSvc.dispatchEvent(s)}clearSortBarTheseColumns(v,u){let s=[];return this.beans.colModel.getAllCols().forEach(r=>{v.includes(r)||(r.getSort()&&s.push(r),this.setColSort(r,void 0,u))}),s}getNextSortDirection(v){var g,m;let u=(m=(g=v.getColDef().sortingOrder)!=null?g:this.gos.get("sortingOrder"))!=null?m:x.DEFAULT_SORTING_ORDER,s=u.indexOf(v.getSort()),r=s<0,d=s==u.length-1;return r||d?u[0]:u[s+1]}getIndexedSortMap(){var k;let{gos:v,colModel:u,showRowGroupCols:s,rowGroupColsSvc:r}=this.beans,d=u.getAllCols().filter(R=>!!R.getSort());if(u.isPivotMode()){let R=(0,A._isColumnsSortingCoupledToGroup)(v);d=d.filter(T=>{let z=!!T.getAggFunc(),G=!T.isPrimary(),U=R?s==null?void 0:s.getShowRowGroupCol(T.getId()):T.getColDef().showRowGroup;return z||G||U})}let g=(k=r==null?void 0:r.columns.filter(R=>!!R.getSort()))!=null?k:[],m={};d.forEach((R,T)=>m[R.getId()]=T),d.sort((R,T)=>{let z=R.getSortIndex(),G=T.getSortIndex();return z!=null&&G!=null?z-G:z==null&&G==null?m[R.getId()]>m[T.getId()]?1:-1:G==null?-1:1});let b=(0,A._isColumnsSortingCoupledToGroup)(v)&&!!g.length;b&&(d=[...new Set(d.map(R=>{var T;return(T=s==null?void 0:s.getShowRowGroupCol(R.getId()))!=null?T:R}))]);let w=new Map;return d.forEach((R,T)=>w.set(R,T)),b&&g.forEach(R=>{let T=s.getShowRowGroupCol(R.getId());w.set(R,w.get(T))}),w}getColumnsWithSortingOrdered(){return[...this.getIndexedSortMap().entries()].sort(([v,u],[s,r])=>u-r).map(([v])=>v)}getSortModel(){return this.getColumnsWithSortingOrdered().filter(v=>v.getSort()).map(v=>({sort:v.getSort(),colId:v.getId()}))}getSortOptions(){return this.getColumnsWithSortingOrdered().filter(v=>v.getSort()).map(v=>({sort:v.getSort(),column:v}))}canColumnDisplayMixedSort(v){let u=(0,A._isColumnsSortingCoupledToGroup)(this.gos),s=!!v.getColDef().showRowGroup;return u&&s}getDisplaySortForColumn(v){var d;let u=(d=this.beans.showRowGroupCols)==null?void 0:d.getSourceColumnsForGroupColumn(v);if(!this.canColumnDisplayMixedSort(v)||!(u!=null&&u.length))return v.getSort();let s=v.getColDef().field!=null||v.getColDef().valueGetter?[v,...u]:u,r=s[0].getSort();return s.every(g=>g.getSort()==r)?r:"mixed"}getDisplaySortIndexForColumn(v){return this.getIndexedSortMap().get(v)}setupHeader(v,u,s){let r=0;v.addManagedListeners(u,{movingChanged:()=>{r=new Date().getTime()}}),s&&v.addManagedElementListeners(s,{click:g=>{let m=u.isMoving(),b=new Date().getTime();m||b-r<50||this.progressSortFromEvent(u,g)}});let d=()=>{var m;let g=u.getSort();if(v.addOrRemoveCssClass("ag-header-cell-sorted-asc",g==="asc"),v.addOrRemoveCssClass("ag-header-cell-sorted-desc",g==="desc"),v.addOrRemoveCssClass("ag-header-cell-sorted-none",!g),u.getColDef().showRowGroup){let b=(m=this.beans.showRowGroupCols)==null?void 0:m.getSourceColumnsForGroupColumn(u),w=b==null?void 0:b.every(R=>u.getSort()==R.getSort()),k=!w;v.addOrRemoveCssClass("ag-header-cell-sorted-mixed",k)}};v.addManagedEventListeners({sortChanged:d,columnRowGroupChanged:d})}initCol(v){let{sort:u,initialSort:s,sortIndex:r,initialSortIndex:d}=v.colDef;u!==void 0?u!=="asc"&&u!=="desc"||(v.sort=u):s!=="asc"&&s!=="desc"||(v.sort=s),r!==void 0?r!==null&&(v.sortIndex=r):d!==null&&(v.sortIndex=d)}updateColSort(v,u,s){u!==void 0&&(u==="desc"||u==="asc"?this.setColSort(v,u,s):this.setColSort(v,void 0,s))}setColSort(v,u,s){v.sort!==u&&(v.sort=u,v.dispatchColEvent("sortChanged",s)),v.dispatchStateUpdatedEvent("sort")}setColSortIndex(v,u){v.sortIndex=u,v.dispatchStateUpdatedEvent("sortIndex")}createSortIndicator(v){return new F.SortIndicatorComp(v)}getSortIndicatorSelector(){return F.SortIndicatorSelector}}x.SortService=D},2760:function(ne,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.CellCustomStyleFeature=void 0;let M=p(8731),A=p(8729);class F extends M.BeanStub{constructor(f,v){super(),this.cellCtrl=f,this.staticClasses=[],this.beans=v,this.column=f.column}setComp(f){this.cellComp=f,this.applyUserStyles(),this.applyCellClassRules(),this.applyClassesFromColDef()}applyCellClassRules(){let{column:f,cellComp:v}=this,u=f.colDef,s=u.cellClassRules,r=this.getCellClassParams(f,u);(0,A.processClassRules)(this.beans.expressionSvc,s===this.cellClassRules?void 0:this.cellClassRules,s,r,d=>v.addOrRemoveCssClass(d,!0),d=>v.addOrRemoveCssClass(d,!1)),this.cellClassRules=s}applyUserStyles(){let f=this.column,v=f.colDef,u=v.cellStyle;if(!u)return;let s;typeof u=="function"?s=u(this.getCellClassParams(f,v)):s=u,s&&this.cellComp.setUserStyles(s)}applyClassesFromColDef(){let{column:f,cellComp:v}=this,u=f.colDef,s=this.getCellClassParams(f,u);this.staticClasses.forEach(d=>v.addOrRemoveCssClass(d,!1));let r=this.beans.cellStyles.getStaticCellClasses(u,s);this.staticClasses=r,r.forEach(d=>v.addOrRemoveCssClass(d,!0))}getCellClassParams(f,v){let{value:u,rowNode:s}=this.cellCtrl;return this.beans.gos.addGridCommonParams({value:u,data:s.data,node:s,colDef:v,column:f,rowIndex:s.rowIndex})}}x.CellCustomStyleFeature=F},9330:function(ne,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.CellStyleService=void 0;let M=p(8731),A=p(2760),F=p(8729);class D extends M.BeanStub{constructor(){super(...arguments),this.beanName="cellStyles"}processAllCellClasses(v,u,s,r){(0,F.processClassRules)(this.beans.expressionSvc,void 0,v.cellClassRules,u,s,r),this.processStaticCellClasses(v,u,s)}getStaticCellClasses(v,u){let{cellClass:s}=v;if(!s)return[];let r;return typeof s=="function"?r=s(u):r=s,typeof r=="string"&&(r=[r]),r||[]}createCellCustomStyleFeature(v,u){return new A.CellCustomStyleFeature(v,u)}processStaticCellClasses(v,u,s){this.getStaticCellClasses(v,u).forEach(r=>{s(r)})}}x.CellStyleService=D},9360:function(ne,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.LayoutFeature=x.LayoutCssClasses=void 0;let M=p(8731);x.LayoutCssClasses={AUTO_HEIGHT:"ag-layout-auto-height",NORMAL:"ag-layout-normal",PRINT:"ag-layout-print"};class A extends M.BeanStub{constructor(D){super(),this.view=D}postConstruct(){this.addManagedPropertyListener("domLayout",this.updateLayoutClasses.bind(this)),this.updateLayoutClasses()}updateLayoutClasses(){let D=this.gos.get("domLayout"),f={autoHeight:D==="autoHeight",normal:D==="normal",print:D==="print"},v=f.autoHeight?x.LayoutCssClasses.AUTO_HEIGHT:f.print?x.LayoutCssClasses.PRINT:x.LayoutCssClasses.NORMAL;this.view.updateLayoutClasses(v,f)}}x.LayoutFeature=A},7648:function(ne,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.RowStyleService=x.calculateRowLevel=void 0;let M=p(8731),A=p(8729);x.calculateRowLevel=function(D){if(D.group)return D.level;let f=D.parent;return f?f.level+1:0};class F extends M.BeanStub{constructor(){super(...arguments),this.beanName="rowStyleSvc"}processClassesFromGridOptions(f,v){let u=this.gos,s=g=>{typeof g=="string"?f.push(g):Array.isArray(g)&&g.forEach(m=>f.push(m))},r=u.get("rowClass");r&&s(r);let d=u.getCallback("getRowClass");d&&s(d({data:v.data,node:v,rowIndex:v.rowIndex}))}preProcessRowClassRules(f,v){this.processRowClassRules(v,u=>{f.push(u)},()=>{})}processRowClassRules(f,v,u){let{gos:s,expressionSvc:r}=this.beans,d=s.addGridCommonParams({data:f.data,node:f,rowIndex:f.rowIndex});(0,A.processClassRules)(r,void 0,s.get("rowClassRules"),d,v,u)}processStylesFromGridOptions(f){let v=this.gos,u=v.get("rowStyle"),s=v.getCallback("getRowStyle"),r;if(s&&(r=s({data:f.data,node:f,rowIndex:f.rowIndex})),r||u)return Object.assign({},u,r)}}x.RowStyleService=F},8594:function(ne,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.RowStyleModule=x.CellStyleModule=void 0;let M=p(7205),A=p(9330),F=p(7648);x.CellStyleModule={moduleName:"CellStyle",version:M.VERSION,beans:[A.CellStyleService]},x.RowStyleModule={moduleName:"RowStyle",version:M.VERSION,beans:[F.RowStyleService]}},8729:function(ne,x){Object.defineProperty(x,"__esModule",{value:!0}),x.processClassRules=void 0,x.processClassRules=function(p,M,A,F,D,f){if(A==null&&M==null)return;let v={},u={},s=(r,d)=>{r.split(" ").forEach(g=>{g.trim()!=""&&d(g)})};if(A){let r=Object.keys(A);for(let d=0;d<r.length;d++){let g=r[d],m=A[g],b;typeof m=="string"?b=!p||p.evaluate(m,F):typeof m=="function"&&(b=m(F)),s(g,w=>{b?v[w]=!0:u[w]=!0})}}M&&f&&Object.keys(M).forEach(r=>s(r,d=>{v[d]||(u[d]=!0)})),f&&Object.keys(u).forEach(f),Object.keys(v).forEach(D)}},7711:function(ne,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.SyncService=void 0;let M=p(3146),A=p(8731),F=p(2043);class D extends A.BeanStub{constructor(){super(...arguments),this.beanName="syncSvc",this.waitingForColumns=!1}postConstruct(){this.addManagedPropertyListener("columnDefs",v=>this.setColumnDefs(v))}start(){this.beans.ctrlsSvc.whenReady(this,()=>{let v=this.gos.get("columnDefs");v?this.setColumnsAndData(v):this.waitingForColumns=!0,this.gridReady()})}setColumnsAndData(v){let{colModel:u,rowModel:s}=this.beans;u.setColumnDefs(v!=null?v:[],"gridInitializing"),s.start()}gridReady(){let{eventSvc:v,gos:u}=this;v.dispatchEvent({type:"gridReady"}),(0,F._logIfDebug)(u,`initialised successfully, enterprise = ${u.isModuleRegistered("EnterpriseCore")}`)}setColumnDefs(v){let u=this.gos.get("columnDefs");if(u)return this.waitingForColumns?(this.waitingForColumns=!1,void this.setColumnsAndData(u)):void this.beans.colModel.setColumnDefs(u,(0,M._convertColumnEventSourceType)(v.source))}}x.SyncService=D},6607:function(ne,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.PartImpl=x.defaultModeName=x.createPart=void 0;let M=p(8951);x.createPart=D=>new F(D),x.defaultModeName="$default";let A=0;class F{constructor({feature:f,params:v,modeParams:u={},css:s,cssImports:r}){var d;this.feature=f,this.css=s,this.cssImports=r,this.modeParams=pe({[x.defaultModeName]:pe(pe({},(d=u[x.defaultModeName])!=null?d:{}),v!=null?v:{})},u)}use(f){var u,s;let v=this._inject;if(v==null){let{css:r}=this;if(r){let d=`ag-theme-${(u=this.feature)!=null?u:"part"}-${++A}`;typeof r=="function"&&(r=r()),r=`:where(.${d}) {
${r}
}
`;for(let g of(s=this.cssImports)!=null?s:[])r=`@import url(${JSON.stringify(g)});
${r}`;v={css:r,class:d}}else v=!1;this._inject=v}return v&&f&&(0,M._injectGlobalCSS)(v.css,f,v.class),!!v&&v.class}}x.PartImpl=F},9621:function(ne,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.ThemeImpl=x.createTheme=x._asThemeImpl=void 0;let M=p(7764),A=p(6607),F=p(405),D=p(8951),f=p(113),v=p(7845);x._asThemeImpl=k=>{if(!(k instanceof u))throw new Error("theme is not an object created by createTheme");return k},x.createTheme=()=>new u;class u{constructor(R=[]){this.parts=R}withPart(R){return typeof R=="function"&&(R=R()),R instanceof A.PartImpl?new u([...this.parts,R]):((0,M._logPreInitErr)(259,{part:R},"Invalid part"),this)}withoutPart(R){return this.withPart((0,A.createPart)({feature:R}))}withParams(R,T=A.defaultModeName){return this.withPart((0,A.createPart)({modeParams:{[T]:R}}))}_startUse({container:R,loadThemeGoogleFonts:T}){if(D.IS_SSR)return;g(),(0,D._injectCoreAndModuleCSS)(R);let z=r(this);if(z.length>0)for(let G of z)T&&b(G);for(let G of this.parts)G.use(R)}_getCssClass(){var R;return(R=this._cssClassCache)!=null?R:this._cssClassCache=s(this.parts).map(T=>T.use()).filter(Boolean).join(" ")}_getModeParams(){var T;let R=this._paramsCache;if(!R){let z={[A.defaultModeName]:pe({},F.coreDefaults)};for(let G of s(this.parts))for(let[U,X]of Object.entries(G.modeParams))if(X){let Q=(T=z[U])!=null?T:z[U]={},oe=new Set;for(let[le,fe]of Object.entries(X))fe!==void 0&&(Q[le]=fe,oe.add(le));if(U===A.defaultModeName){for(let[le,fe]of Object.entries(z))if(le!==A.defaultModeName)for(let ye of oe)delete fe[ye]}}this._paramsCache=R=z}return R}_getPerGridCss(R){let T="##SELECTOR##",z=this._paramsCssCache;if(!z){let G="",U="";for(let[Q,oe]of Object.entries(this._getModeParams())){if(Q!==A.defaultModeName){let le=`:where([data-ag-theme-mode="${typeof CSS=="object"?CSS.escape(Q):Q}"]) & {
`;G+=le,U+=le}for(let[le,fe]of Object.entries(oe)){let ye=(0,f.paramValueToCss)(le,fe);if(ye===!1)(0,M._error)(107,{key:le,value:fe});else{let ke=(0,v.paramToVariableName)(le),Ie=ke.replace("--ag-","--ag-inherited-");G+=`	${ke}: var(${Ie}, ${ye});
`,U+=`	${Ie}: var(${ke});
`}}Q!==A.defaultModeName&&(G+=`}
`,U+=`}
`)}let X=`${T} {
${G}}
`;X+=`:has(> ${T}):not(${T}) {
${U}}
`,this._paramsCssCache=z=X}return z.replaceAll(T,`:where(.${R})`)}}x.ThemeImpl=u;let s=k=>{let R=new Map;for(let z of k)R.set(z.feature,z);let T=[];for(let z of k)z.feature&&R.get(z.feature)!==z||T.push(z);return T},r=k=>{let R=new Set,T=z=>{if(Array.isArray(z))z.forEach(T);else{let G=z==null?void 0:z.googleFont;typeof G=="string"&&R.add(G)}};return Object.values(k._getModeParams()).flatMap(z=>Object.values(z)).forEach(T),Array.from(R).sort()},d=!1,g=()=>{if(!d){d=!0;for(let k of Array.from(document.head.querySelectorAll('style[data-ag-scope="legacy"]')))k.remove()}},m=new Set,b=async k=>{m.add(k);let R=`@import url('https://${w}/css2?family=${encodeURIComponent(k)}:wght@100;200;300;400;500;600;700;800;900&display=swap');
`;(0,D._injectGlobalCSS)(R,document.head,`googleFont:${k}`)},w="fonts.googleapis.com"},405:function(ne,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.coreDefaults=x.defaultLightColorSchemeParams=x.coreCSS=void 0;let M=p(7845);var A=p(9550);Object.defineProperty(x,"coreCSS",{enumerable:!0,get:function(){return A.coreCSS}}),x.defaultLightColorSchemeParams={backgroundColor:"#fff",foregroundColor:"#181d1f",borderColor:(0,M.foregroundMix)(.15),chromeBackgroundColor:(0,M.foregroundBackgroundMix)(.02),browserColorScheme:"light"},x.coreDefaults=et(pe({},x.defaultLightColorSchemeParams),{textColor:M.foregroundColor,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:{ref:"backgroundColor"},sideButtonSelectedTextColor:{ref:"sideButtonTextColor"},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:"backgroundColor"},headerCellBackgroundTransitionDuration:"0.2s",cellTextColor:{ref:"textColor"},subtleTextColor:{ref:"textColor",mix:.5},rangeSelectionBorderStyle:"solid",rangeSelectionBorderColor:M.accentColor,rangeSelectionBackgroundColor:(0,M.accentMix)(.2),rangeSelectionChartBackgroundColor:"#0058FF1A",rangeSelectionChartCategoryBackgroundColor:"#00FF841A",rangeSelectionHighlightColor:(0,M.accentMix)(.5),rowHoverColor:(0,M.accentMix)(.08),columnHoverColor:(0,M.accentMix)(.05),selectedRowBackgroundColor:(0,M.accentMix)(.12),modalOverlayBackgroundColor:{ref:"backgroundColor",mix:.66},oddRowBackgroundColor:{ref:"backgroundColor"},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,popupShadow:"0 0 16px #00000026",cardShadow:"0 1px 4px 1px #00000018",dropdownShadow:{ref:"cardShadow"},dragAndDropImageBackgroundColor:{ref:"backgroundColor"},dragAndDropImageBorder:!0,dragAndDropImageShadow:{ref:"popupShadow"},dragHandleColor:(0,M.foregroundMix)(.7),focusShadow:{spread:3,color:(0,M.accentMix)(.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:"iconSize + widgetVerticalSpacing"},iconSize:16,toggleButtonWidth:28,toggleButtonHeight:18,toggleButtonOnBackgroundColor:M.accentColor,toggleButtonOffBackgroundColor:(0,M.foregroundBackgroundMix)(.3),toggleButtonSwitchBackgroundColor:{ref:"backgroundColor"},toggleButtonSwitchInset:2,menuBorder:{color:(0,M.foregroundMix)(.2)},menuBackgroundColor:(0,M.foregroundBackgroundMix)(.03),menuTextColor:(0,M.foregroundBackgroundMix)(.95),menuShadow:{ref:"popupShadow"},menuSeparatorColor:{ref:"borderColor"},setFilterIndentSize:{ref:"iconSize"},chartMenuPanelWidth:260,chartMenuLabelColor:(0,M.foregroundMix)(.8),iconButtonHoverColor:(0,M.foregroundMix)(.1),dialogShadow:{ref:"popupShadow"},cellEditingBorder:{color:M.accentColor},cellEditingShadow:{ref:"cardShadow"},dialogBorder:{color:(0,M.foregroundMix)(.2)},panelBackgroundColor:{ref:"backgroundColor"},panelTitleBarBackgroundColor:{ref:"headerBackgroundColor"},panelTitleBarBorder:!0,columnSelectIndentSize:{ref:"iconSize"},toolPanelSeparatorBorder:!0,tooltipBackgroundColor:{ref:"chromeBackgroundColor"},tooltipTextColor:{ref:"textColor"},tooltipBorder:!0,columnDropCellBackgroundColor:(0,M.foregroundMix)(.07),columnDropCellTextColor:{ref:"textColor"},columnDropCellDragHandleColor:{ref:"textColor"},columnDropCellBorder:{color:(0,M.foregroundMix)(.13)},selectCellBackgroundColor:(0,M.foregroundMix)(.07),selectCellBorder:{color:(0,M.foregroundMix)(.13)},advancedFilterBuilderButtonBarBorder:!0,advancedFilterBuilderIndentSize:{calc:"spacing * 2 + iconSize"},advancedFilterBuilderJoinPillColor:"#f08e8d",advancedFilterBuilderColumnPillColor:"#a6e194",advancedFilterBuilderOptionPillColor:"#f3c08b",advancedFilterBuilderValuePillColor:"#85c0e4",filterToolPanelGroupIndent:{ref:"spacing"},iconButtonHoverBackgroundColor:(0,M.foregroundMix)(.1),rowLoadingSkeletonEffectColor:(0,M.foregroundMix)(.15)})},9550:function(ne,x){Object.defineProperty(x,"__esModule",{value:!0}),x.coreCSS=void 0,x.coreCSS=':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}}: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-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-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-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-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{border-bottom:var(--ag-pinned-row-border)}.ag-floating-bottom,.ag-floating-top{display:flex;overflow:hidden;position:relative;white-space:nowrap;width:100%}.ag-floating-bottom{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%}.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{background-color:var(--ag-background-color);border-bottom:var(--ag-row-border);color:var(--ag-cell-text-color);font-family:var(--ag-cell-font-family);font-size:var(--ag-data-font-size);height:var(--ag-row-height);white-space:nowrap;width:100%;--ag-internal-content-line-height:calc(min(var(--ag-row-height), var(--ag-line-height, 1000px)) - var(--ag-internal-row-border-width, 1px))}: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)}: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-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-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}: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{background-color:var(--ag-range-selection-border-color);content:"";height:1px;position:absolute;width:calc(100% - 1px)}:where(.ag-ltr) .ag-row-highlight-above:after,:where(.ag-ltr) .ag-row-highlight-below:after{left:1px}:where(.ag-rtl) .ag-row-highlight-above:after,:where(.ag-rtl) .ag-row-highlight-below:after{right:1px}.ag-row-highlight-above:after{top:0}.ag-row-highlight-below:after{bottom:0}.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-hover.ag-full-width-row.ag-row-group>*{position:relative}.ag-column-hover{background-color:var(--ag-column-hover-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{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%}}: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;&: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-background-color);border:var(--ag-input-border);border-radius:var(--ag-border-radius);cursor:pointer;font-family:inherit;padding:var(--ag-spacing) calc(var(--ag-spacing)*2);&:hover{background-color:var(--ag-row-hover-color)}&:active{border-color:var(--ag-accent-color)}&:disabled{background-color:var(--ag-input-disabled-background-color);border:var(--ag-input-disabled-border);color:var(--ag-input-disabled-text-color)}}.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-background-color);border:var(--ag-input-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}.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{&:hover{background-color:var(--ag-icon-button-hover-color);border-radius:1px;box-shadow:0 0 0 4px var(--ag-icon-button-hover-color)}}.ag-filter-active{--ag-icon-button-hover-color:color-mix(in srgb,transparent,var(--ag-accent-color) 28%);background-color:color-mix(in srgb,transparent,var(--ag-accent-color) 14%);border-radius:1px;outline:solid 4px color-mix(in srgb,transparent,var(--ag-accent-color) 14%);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")}}: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{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{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;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;height:5px;left:0;width:5px}&.ag-resizer-left{bottom:5px;cursor:ew-resize;left:0;top:5px;width:5px}}:where(.ag-ltr) :where(.ag-resizer){&.ag-resizer-topLeft{cursor:nwse-resize}&.ag-resizer-topRight{cursor:nesw-resize}&.ag-resizer-bottomRight{cursor:nwse-resize}&.ag-resizer-bottomLeft{cursor:nesw-resize}}:where(.ag-rtl) :where(.ag-resizer){&.ag-resizer-topLeft{cursor:nesw-resize}&.ag-resizer-topRight{cursor:nwse-resize}&.ag-resizer-bottomRight{cursor:nesw-resize}&.ag-resizer-bottomLeft{cursor:nwse-resize}}'},8951:function(ne,x,p){var f,v;Object.defineProperty(x,"__esModule",{value:!0}),x._unregisterGridUsingThemingAPI=x._registerGridUsingThemingAPI=x._injectCoreAndModuleCSS=x._injectGlobalCSS=x.IS_SSR=void 0;let M=p(2132),A=p(9550);x.IS_SSR=typeof window!="object"||!((v=(f=window==null?void 0:window.document)==null?void 0:f.fonts)!=null&&v.forEach);let F=new WeakMap;x._injectGlobalCSS=(u,s,r)=>{if(x.IS_SSR)return;let d=s.getRootNode()===document?document.head:s,g=F.get(d);if(g||(g={css:new Set},F.set(d,g)),g.css.has(u))return;let m=document.createElement("style");m.dataset.agGlobalCss=r,m.textContent=u,g.last?g.last.insertAdjacentElement("afterend",m):d.insertBefore(m,d.querySelector(":not(title, meta)")),g.css.add(u),g.last=m},x._injectCoreAndModuleCSS=u=>{(0,x._injectGlobalCSS)(A.coreCSS,u,"core"),Array.from((0,M._getAllRegisteredModules)()).sort((s,r)=>s.moduleName.localeCompare(r.moduleName)).forEach(s=>{var r;return(r=s.css)==null?void 0:r.forEach(d=>(0,x._injectGlobalCSS)(d,u,`module-${s.moduleName}`))})};let D=new Set;x._registerGridUsingThemingAPI=u=>{D.add(u)},x._unregisterGridUsingThemingAPI=u=>{if(D.delete(u),D.size===0){F=new WeakMap;for(let s of document.head.querySelectorAll("style[data-ag-global-css]"))s.remove()}}},3071:function(ne,x){Object.defineProperty(x,"__esModule",{value:!0}),x.checkboxStyleDefaultCSS=void 0,x.checkboxStyleDefaultCSS='.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-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)}}'},8265:function(ne,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.checkboxStyleDefault=void 0;let M=p(6607),A=p(7845),F=p(3071);x.checkboxStyleDefault=(0,M.createPart)({feature:"checkboxStyle",params:{checkboxBorderWidth:1,checkboxBorderRadius:{ref:"borderRadius"},checkboxUncheckedBackgroundColor:{ref:"backgroundColor"},checkboxUncheckedBorderColor:(0,A.foregroundBackgroundMix)(.3),checkboxCheckedBackgroundColor:A.accentColor,checkboxCheckedBorderColor:A.accentColor,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:{ref:"backgroundColor"},checkboxIndeterminateBackgroundColor:(0,A.foregroundBackgroundMix)(.3),checkboxIndeterminateBorderColor:(0,A.foregroundBackgroundMix)(.3),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:{ref:"backgroundColor"},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:F.checkboxStyleDefaultCSS})},8689:function(ne,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.colorSchemeVariable=x.colorSchemeDarkBlue=x.colorSchemeDarkWarm=x.colorSchemeDark=x.colorSchemeLightCold=x.colorSchemeLightWarm=x.colorSchemeLight=void 0;let M=p(6607),A=p(405),F=p(7845);x.colorSchemeLight=(0,M.createPart)({feature:"colorScheme",params:A.defaultLightColorSchemeParams}),x.colorSchemeLightWarm=(0,M.createPart)({feature:"colorScheme",params:et(pe({},A.defaultLightColorSchemeParams),{foregroundColor:"#000000de",borderColor:"#60300026",chromeBackgroundColor:"#60300005"})}),x.colorSchemeLightCold=(0,M.createPart)({feature:"colorScheme",params:et(pe({},A.defaultLightColorSchemeParams),{foregroundColor:"#000",chromeBackgroundColor:"#f3f8f8"})});let D=et(pe({},A.defaultLightColorSchemeParams),{backgroundColor:"hsl(217, 0%, 17%)",foregroundColor:"#FFF",chromeBackgroundColor:(0,F.foregroundBackgroundMix)(.05),rowHoverColor:(0,F.accentMix)(.15),selectedRowBackgroundColor:(0,F.accentMix)(.2),menuBackgroundColor:(0,F.foregroundBackgroundMix)(.1),browserColorScheme:"dark",popupShadow:"0 0px 20px #000A",cardShadow:"0 1px 4px 1px #000A",advancedFilterBuilderJoinPillColor:"#7a3a37",advancedFilterBuilderColumnPillColor:"#355f2d",advancedFilterBuilderOptionPillColor:"#5a3168",advancedFilterBuilderValuePillColor:"#374c86",checkboxUncheckedBorderColor:(0,F.foregroundBackgroundMix)(.4),toggleButtonOffBackgroundColor:(0,F.foregroundBackgroundMix)(.4)});x.colorSchemeDark=(0,M.createPart)({feature:"colorScheme",params:D}),x.colorSchemeDarkWarm=(0,M.createPart)({feature:"colorScheme",params:{backgroundColor:"hsl(29, 10%, 17%)",foregroundColor:"#FFF",browserColorScheme:"dark"}});let f=et(pe({},D),{backgroundColor:"#1f2836"});x.colorSchemeDarkBlue=(0,M.createPart)({feature:"colorScheme",params:f}),x.colorSchemeVariable=(0,M.createPart)({feature:"colorScheme",params:A.defaultLightColorSchemeParams,modeParams:{light:A.defaultLightColorSchemeParams,dark:D,"dark-blue":f}})},8897:function(ne,x){Object.defineProperty(x,"__esModule",{value:!0}),x.iconSetAlpineCSS=void 0,x.iconSetAlpineCSS=`.ag-icon-aggregation:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' xml:space='preserve' style='fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2' viewBox='0 0 32 32'%3E%3Cpath d='M24 6H8v2l8 8-8 8v2h16v-2H11l8-8-8-8h13z' style='fill-rule:nonzero'/%3E%3C/svg%3E")}.ag-icon-arrows:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' xml:space='preserve' style='fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2' viewBox='0 0 32 32'%3E%3Cpath d='M7.515 11.171 2.687 16l4.828 4.829-1.414 1.414L-.142 16l6.243-6.243zm16.97 0 1.414-1.414L32.142 16l-6.243 6.243-1.414-1.414L29.313 16zM16.028 13.2l2.829 2.828-2.829 2.829-2.828-2.829zm-4.857 11.285L16 29.313l4.829-4.828 1.414 1.414L16 32.142l-6.243-6.243zm0-16.97L9.757 6.101 16-.142l6.243 6.243-1.414 1.414L16 2.687z' style='fill-rule:nonzero'/%3E%3C/svg%3E")}.ag-icon-asc:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' xml:space='preserve' style='fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2' viewBox='0 0 32 32'%3E%3Cpath d='m5.333 16 1.88 1.88 7.453-7.44v16.227h2.667V10.44l7.44 7.453L26.666 16 15.999 5.333 5.332 16z' style='fill-rule:nonzero'/%3E%3C/svg%3E")}.ag-icon-cancel:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' xml:space='preserve' style='fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2' viewBox='0 0 32 32'%3E%3Cpath d='M16 2.667A13.32 13.32 0 0 0 2.667 16c0 7.373 5.96 13.333 13.333 13.333S29.333 23.373 29.333 16 23.373 2.667 16 2.667m6.667 18.12-1.88 1.88L16 17.88l-4.787 4.787-1.88-1.88L14.12 16l-4.787-4.787 1.88-1.88L16 14.12l4.787-4.787 1.88 1.88L17.88 16z' style='fill-rule:nonzero'/%3E%3C/svg%3E")}.ag-icon-chart:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ctitle%3Echart%3C/title%3E%3Cg fill='%23000' fill-rule='nonzero'%3E%3Cpath d='M14 7h4v18h-4zM8 17h4v8H8zM20 13h4v12h-4z'/%3E%3C/g%3E%3C/svg%3E")}.ag-icon-color-picker:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' xml:space='preserve' style='fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2' viewBox='0 0 32 32'%3E%3Cpath d='M23.907 17.587 10.574 4.254l-1.88 1.88 3.173 3.173-8.28 8.28 10.16 10.16zm-16.547 0 6.387-6.387 6.387 6.387zm18.387 2s-2.667 2.893-2.667 4.667c0 1.467 1.2 2.667 2.667 2.667s2.667-1.2 2.667-2.667c0-1.773-2.667-4.667-2.667-4.667' style='fill-rule:nonzero'/%3E%3C/svg%3E")}.ag-icon-columns:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' xml:space='preserve' style='fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2' viewBox='0 0 32 32'%3E%3Cpath d='M26 25H6V7h20zM12 11H8v12h4zm6 0h-4v12h4zm6 12V11h-4v12z' style='fill-rule:nonzero' transform='translate(0 -1)'/%3E%3C/svg%3E")}.ag-icon-contracted:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' xml:space='preserve' style='fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2' viewBox='0 0 32 32'%3E%3Cpath d='m12 6 10 10-10 10-2-2 8-8-8-8z'/%3E%3C/svg%3E")}.ag-icon-copy:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' xml:space='preserve' style='fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2' viewBox='0 0 32 32'%3E%3Cpath d='M22 1.333H6A2.675 2.675 0 0 0 3.333 4v18.667H6V4h16zm4 5.334H11.333a2.675 2.675 0 0 0-2.667 2.667v18.667c0 1.467 1.2 2.667 2.667 2.667H26c1.467 0 2.667-1.2 2.667-2.667V9.334c0-1.467-1.2-2.667-2.667-2.667M26 28H11.333V9.333H26z' style='fill-rule:nonzero'/%3E%3C/svg%3E")}.ag-icon-cross:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' xml:space='preserve' style='fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2' viewBox='0 0 32 32'%3E%3Cpath d='M15.984 13.894 27.05 2.828l2.122 2.122-11.066 11.066 11.066 11.066-2.122 2.12-11.066-11.066L4.918 29.202l-2.12-2.12 11.066-11.066L2.798 4.95l2.12-2.122z'/%3E%3C/svg%3E")}.ag-icon-csv:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' xml:space='preserve' style='fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2' viewBox='0 0 32 32'%3E%3Cpath d='M384 131.9c-7.753-8.433-110.425-128.473-114.9-133L48-.1C21.5 0 0 21.5 0 48v416c0 26.5 21.5 48 48 48h288c26.5 0 48-21.5 48-48zm-35.9 2.1H257V27.9zM30 479V27h200l1 105c0 13.3-1.3 29 12 29h111l1 318z' style='fill-rule:nonzero' transform='matrix(.06285 0 0 .06285 3.934 -.054)'/%3E%3Cpath d='M.688-.226a.2.2 0 0 1-.017.074.28.28 0 0 1-.145.14.412.412 0 0 1-.234.013.28.28 0 0 1-.202-.168.468.468 0 0 1-.04-.19q0-.086.025-.155a.319.319 0 0 1 .182-.191.4.4 0 0 1 .134-.025q.087 0 .155.035a.3.3 0 0 1 .104.085.17.17 0 0 1 .036.097.06.06 0 0 1-.018.044.06.06 0 0 1-.042.019.06.06 0 0 1-.042-.013.2.2 0 0 1-.031-.046.2.2 0 0 0-.066-.079.16.16 0 0 0-.095-.027.17.17 0 0 0-.142.068.3.3 0 0 0-.053.193.4.4 0 0 0 .023.139.2.2 0 0 0 .067.083.2.2 0 0 0 .1.027q.063 0 .106-.031a.2.2 0 0 0 .065-.091.2.2 0 0 1 .023-.046q.014-.018.044-.018a.06.06 0 0 1 .044.018.06.06 0 0 1 .019.045' style='fill-rule:nonzero' transform='matrix(8.39799 0 0 12.455 7.122 25.977)'/%3E%3Cpath d='M.622-.215a.2.2 0 0 1-.033.117.23.23 0 0 1-.098.081.4.4 0 0 1-.153.029.34.34 0 0 1-.175-.04.23.23 0 0 1-.079-.077.17.17 0 0 1-.031-.093q0-.027.019-.045a.06.06 0 0 1 .046-.019.06.06 0 0 1 .039.014.1.1 0 0 1 .027.044.3.3 0 0 0 .03.057q.015.023.044.038.03.015.076.015.065 0 .105-.03a.09.09 0 0 0 .04-.075.08.08 0 0 0-.022-.058.14.14 0 0 0-.056-.034 1 1 0 0 0-.092-.025.7.7 0 0 1-.129-.042.2.2 0 0 1-.083-.066.17.17 0 0 1-.03-.104q0-.058.032-.105a.2.2 0 0 1 .093-.07.4.4 0 0 1 .144-.025q.066 0 .114.016a.3.3 0 0 1 .08.044.2.2 0 0 1 .046.057q.015.03.015.058a.07.07 0 0 1-.018.046.06.06 0 0 1-.046.021q-.025 0-.038-.012a.2.2 0 0 1-.028-.041.2.2 0 0 0-.047-.063Q.387-.625.326-.625a.15.15 0 0 0-.09.025q-.035.024-.035.059 0 .021.012.037a.1.1 0 0 0 .032.027.4.4 0 0 0 .111.036q.06.015.11.031.048.018.083.042a.2.2 0 0 1 .054.062.2.2 0 0 1 .019.091' style='fill-rule:nonzero' transform='matrix(8.39799 0 0 12.455 13.339 25.977)'/%3E%3Cpath d='m.184-.633.162.48.163-.483q.013-.038.019-.053a.062.062 0 0 1 .061-.039q.018 0 .034.009a.1.1 0 0 1 .025.025q.009.015.009.031L.654-.64l-.007.025-.009.024-.173.468-.019.051a.2.2 0 0 1-.021.042.1.1 0 0 1-.033.03.1.1 0 0 1-.049.012.1.1 0 0 1-.05-.011A.1.1 0 0 1 .26-.03a.2.2 0 0 1-.021-.042L.22-.123.05-.587.041-.612.033-.638.03-.662q0-.025.02-.046a.07.07 0 0 1 .05-.02q.037 0 .053.023.015.023.031.072' style='fill-rule:nonzero' transform='matrix(8.39799 0 0 12.455 18.94 25.977)'/%3E%3C/svg%3E")}.ag-icon-cut:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' xml:space='preserve' style='fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2' viewBox='0 0 32 32'%3E%3Cpath d='M13.775 15.198 3.835 2.945a1.501 1.501 0 0 1 2.33-1.89l14.997 18.488A6.003 6.003 0 0 1 29.657 25c0 3.311-2.688 6-6 6s-6-2.689-6-6c0-1.335.437-2.569 1.176-3.566l-3.127-3.855-3.001 3.7A5.97 5.97 0 0 1 14 25c0 3.311-2.689 6-6 6s-6-2.689-6-6a6.003 6.003 0 0 1 8.315-5.536zm9.882 6.702a3.1 3.1 0 0 0-3.1 3.1c0 1.711 1.389 3.1 3.1 3.1s3.1-1.389 3.1-3.1-1.389-3.1-3.1-3.1M8 21.95a3.05 3.05 0 1 0 .001 6.101A3.05 3.05 0 0 0 8 21.95m9.63-11.505 1.932 2.381 8.015-9.881a1.5 1.5 0 0 0-2.329-1.89z' style='fill-rule:nonzero'/%3E%3C/svg%3E")}.ag-icon-desc:before,.ag-icon-down:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' xml:space='preserve' style='fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2' viewBox='0 0 32 32'%3E%3Cpath d='m26.667 16-1.88-1.88-7.453 7.44V5.333h-2.667V21.56l-7.44-7.453L5.334 16l10.667 10.667z' style='fill-rule:nonzero'/%3E%3C/svg%3E")}.ag-icon-excel:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' xml:space='preserve' style='fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2' viewBox='0 0 32 32'%3E%3Cpath d='M384 131.9c-7.753-8.433-110.425-128.473-114.9-133L48-.1C21.5 0 0 21.5 0 48v416c0 26.5 21.5 48 48 48h288c26.5 0 48-21.5 48-48zm-35.9 2.1H257V27.9zM30 479V27h200l1 105c0 13.3-1.3 29 12 29h111l1 318z' style='fill-rule:nonzero' transform='matrix(.06285 0 0 .06285 3.934 -.054)'/%3E%3Cpath d='m.052-.139.16-.234-.135-.208a.4.4 0 0 1-.028-.052.1.1 0 0 1-.01-.042.05.05 0 0 1 .018-.037.07.07 0 0 1 .045-.016q.03 0 .047.018a1 1 0 0 1 .047.066l.107.174.115-.174.024-.038.019-.026.021-.015a.1.1 0 0 1 .027-.005.06.06 0 0 1 .044.016.05.05 0 0 1 .018.039q0 .033-.038.089l-.141.211.152.234a.3.3 0 0 1 .03.051.1.1 0 0 1 .009.038.1.1 0 0 1-.008.031.1.1 0 0 1-.024.023.1.1 0 0 1-.034.008.1.1 0 0 1-.035-.008.1.1 0 0 1-.023-.022L.427-.067.301-.265l-.134.204-.022.034-.016.019a.1.1 0 0 1-.022.015.1.1 0 0 1-.03.005.06.06 0 0 1-.044-.016.06.06 0 0 1-.017-.047q0-.036.036-.088' style='fill-rule:nonzero' transform='matrix(17.82892 0 0 16.50777 10.371 25.928)'/%3E%3C/svg%3E")}.ag-icon-expanded:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' xml:space='preserve' style='fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2' viewBox='0 0 32 32'%3E%3Cpath d='M20 26 10 16 20 6l2 2-8 8 8 8z'/%3E%3C/svg%3E")}.ag-icon-eye-slash:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ctitle%3Eeye-slash%3C/title%3E%3Cpath fill='%23000' fill-rule='nonzero' d='M8.95 10.364 7 8.414 8.414 7l2.32 2.32A13.2 13.2 0 0 1 16.5 8c5.608 0 10.542 3.515 12.381 8.667L29 17l-.119.333a13 13 0 0 1-4.255 5.879l1.466 1.466-1.414 1.414-1.754-1.753A13.2 13.2 0 0 1 16.5 26c-5.608 0-10.542-3.515-12.381-8.667L4 17l.119-.333a13 13 0 0 1 4.83-6.303m1.445 1.445A11.02 11.02 0 0 0 6.148 17c1.646 4.177 5.728 7 10.352 7 1.76 0 3.441-.409 4.94-1.146l-1.878-1.878A5.06 5.06 0 0 1 16.5 22c-2.789 0-5.05-2.239-5.05-5 0-1.158.398-2.223 1.065-3.07zm1.855-.974 1.794 1.795A5.07 5.07 0 0 1 16.5 12c2.789 0 5.05 2.239 5.05 5 0 .9-.24 1.745-.661 2.474l2.305 2.306A11 11 0 0 0 26.852 17c-1.646-4.177-5.728-7-10.352-7-1.495 0-2.933.295-4.25.835'/%3E%3C/svg%3E")}.ag-icon-eye:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' xml:space='preserve' style='fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2' viewBox='0 0 32 32'%3E%3Cpath d='M16.5 23c4.624 0 8.706-2.823 10.352-7-1.646-4.177-5.728-7-10.352-7s-8.706 2.823-10.352 7c1.646 4.177 5.728 7 10.352 7M4.119 15.667C5.958 10.515 10.892 7 16.5 7s10.542 3.515 12.381 8.667L29 16l-.119.333C27.042 21.485 22.108 25 16.5 25S5.958 21.485 4.119 16.333L4 16zM16.5 21c2.789 0 5.049-2.239 5.049-5s-2.26-5-5.049-5-5.049 2.239-5.049 5 2.26 5 5.049 5' style='fill-rule:nonzero'/%3E%3C/svg%3E")}.ag-icon-filter:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' xml:space='preserve' style='fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2' viewBox='0 0 32 32'%3E%3Cpath d='m28 8-8 8v5l-6 6V16L6 8V6h22zM9 8l7 7v7l2-2v-5l7-7z' style='fill-rule:nonzero'/%3E%3C/svg%3E")}.ag-icon-first:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' xml:space='preserve' style='fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2' viewBox='0 0 32 32'%3E%3Cpath d='M24.273 22.12 18.153 16l6.12-6.12L22.393 8l-8 8 8 8zM7.727 8h2.667v16H7.727z' style='fill-rule:nonzero'/%3E%3C/svg%3E")}.ag-icon-group:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' xml:space='preserve' style='fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2' viewBox='0 0 32 32'%3E%3Cpath d='M14 7v1H9V7zm0-3v1H5.001V4zm-7 7H5v-1h2zm0-3H5V7h2zM3 5H1V4h2zm11 5v1H9v-1zm-7 4H5v-1h2zm7-1v1H9v-1z' style='fill-rule:nonzero' transform='matrix(2 0 0 2 0 -2)'/%3E%3C/svg%3E")}.ag-icon-last:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' xml:space='preserve' style='fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2' viewBox='0 0 32 32'%3E%3Cpath d='m7.727 9.88 6.12 6.12-6.12 6.12L9.607 24l8-8-8-8zM21.607 8h2.667v16h-2.667z' style='fill-rule:nonzero'/%3E%3C/svg%3E")}.ag-icon-left:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' xml:space='preserve' style='fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2' viewBox='0 0 32 32'%3E%3Cpath d='M26.667 14.667H10.44l7.453-7.453L16 5.334 5.333 16.001 16 26.668l1.88-1.88-7.44-7.453h16.227z' style='fill-rule:nonzero'/%3E%3C/svg%3E")}.ag-icon-linked:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' xml:space='preserve' style='fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2' viewBox='0 0 32 32'%3E%3Cpath d='M5.2 16a4.136 4.136 0 0 1 4.133-4.133h5.333V9.334H9.333a6.67 6.67 0 0 0-6.667 6.667 6.67 6.67 0 0 0 6.667 6.667h5.333v-2.533H9.333A4.136 4.136 0 0 1 5.2 16.002zm5.467 1.333h10.667v-2.667H10.667zm12-8h-5.333v2.533h5.333a4.136 4.136 0 0 1 4.133 4.133 4.136 4.136 0 0 1-4.133 4.133h-5.333v2.533h5.333a6.67 6.67 0 0 0 6.667-6.667 6.67 6.67 0 0 0-6.667-6.667z' style='fill-rule:nonzero'/%3E%3C/svg%3E")}.ag-icon-loading:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' xml:space='preserve' style='fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2' viewBox='0 0 32 32'%3E%3Cpath d='M17 29h-2v-8h2zm-3.586-9L7 26.414 5.586 25 12 18.586zm13 5L25 26.414 18.586 20 20 18.586zM29 17h-8v-2h8zm-18 0H3v-2h8zm2.414-5L12 13.414 5.586 7 7 5.586zm13-5L20 13.414 18.586 12 25 5.586zM17 11h-2V3h2z' style='fill-rule:nonzero' transform='translate(-3.692 -3.692)scale(1.23077)'/%3E%3C/svg%3E")}.ag-icon-maximize:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' xml:space='preserve' style='fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2' viewBox='0 0 32 32'%3E%3Cpath d='M14 30H2V18h2.828v7.05l8.254-8.252 2.12 2.12-8.252 8.254H14zm4-28h12v12h-2.828V6.95l-8.254 8.252-2.12-2.12 8.252-8.254H18z'/%3E%3C/svg%3E")}.ag-icon-menu:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' xml:space='preserve' style='fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2' viewBox='0 0 32 32'%3E%3Cpath d='M20 13H0v-2h20zm0-6H0V5h20zm0-6H0v-2h20z' style='fill-rule:nonzero' transform='translate(6 9)'/%3E%3C/svg%3E")}.ag-icon-menu-alt:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' fill='none' viewBox='0 0 32 32'%3E%3Cpath fill='%23000' d='M16 19a3 3 0 1 0 0-6 3 3 0 0 0 0 6M16 11a3 3 0 1 0 0-6 3 3 0 0 0 0 6M16 27a3 3 0 1 0 0-6 3 3 0 0 0 0 6'/%3E%3C/svg%3E")}.ag-icon-minimize:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' xml:space='preserve' style='fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2' viewBox='0 0 32 32'%3E%3Cpath d='M2 18h12v12h-2.828v-7.05l-8.254 8.252-2.12-2.12 8.252-8.254H2zm28-4H18V2h2.828v7.05L29.082.798l2.12 2.12-8.252 8.254H30z'/%3E%3C/svg%3E")}.ag-icon-minus:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' xml:space='preserve' style='fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2' viewBox='0 0 32 32'%3E%3Cpath d='M6.572 6.572a13.32 13.32 0 0 0 0 18.856 13.32 13.32 0 0 0 18.856 0 13.32 13.32 0 0 0 0-18.856 13.32 13.32 0 0 0-18.856 0m17.527 8.099v2.658H7.901v-2.658z' style='fill-rule:nonzero'/%3E%3C/svg%3E")}.ag-icon-next:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' xml:space='preserve' style='fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2' viewBox='0 0 32 32'%3E%3Cpath d='M10.94 6 9.06 7.88 17.167 16 9.06 24.12 10.94 26l10-10z' style='fill-rule:nonzero' transform='translate(1)'/%3E%3C/svg%3E")}.ag-icon-none:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ctitle%3Enone%3C/title%3E%3Cg fill='%23000' fill-rule='nonzero'%3E%3Cpath d='M23.708 14.645 16 6.939l-7.708 7.706 1.416 1.416L16 9.767l6.292 6.294zM23.708 20.355 16 28.061l-7.708-7.706 1.416-1.416L16 25.233l6.292-6.294z'/%3E%3C/g%3E%3C/svg%3E")}.ag-icon-not-allowed:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' xml:space='preserve' style='fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2' viewBox='0 0 32 32'%3E%3Cpath d='M16 2.667C8.64 2.667 2.667 8.64 2.667 16S8.64 29.333 16 29.333 29.333 23.36 29.333 16 23.36 2.667 16 2.667M5.333 16c0-5.893 4.773-10.667 10.667-10.667 2.467 0 4.733.84 6.533 2.253L7.586 22.533A10.54 10.54 0 0 1 5.333 16M16 26.667c-2.467 0-4.733-.84-6.533-2.253L24.414 9.467A10.54 10.54 0 0 1 26.667 16c0 5.893-4.773 10.667-10.667 10.667' style='fill-rule:nonzero'/%3E%3C/svg%3E")}.ag-icon-paste:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' xml:space='preserve' style='fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2' viewBox='0 0 32 32'%3E%3Cpath d='M25.334 4H19.76C19.2 2.453 17.733 1.333 16 1.333S12.8 2.453 12.24 4H6.667A2.675 2.675 0 0 0 4 6.667V28c0 1.467 1.2 2.667 2.667 2.667h18.667c1.467 0 2.667-1.2 2.667-2.667V6.667C28.001 5.2 26.801 4 25.334 4M16 4c.733 0 1.333.6 1.333 1.333s-.6 1.333-1.333 1.333-1.333-.6-1.333-1.333S15.267 4 16 4m9.333 24H6.666V6.667h2.667v4h13.333v-4h2.667z' style='fill-rule:nonzero'/%3E%3C/svg%3E")}.ag-icon-pin:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' xml:space='preserve' style='fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2' viewBox='0 0 32 32'%3E%3Cpath d='m10.78 19.777-4.668-4.666s.032-1 .67-1.87c1.366-1.86 4.052-1.96 6.056-1.572l3.158-3.108c-.7-2.342 3.352-5.046 3.352-5.046l9.166 9.168q-.334.447-.67.894c-1.074 1.426-2.538 2.63-4.272 2.338l-3.32 3.218c.046.344.042.03.118 1.152.144 2.13-.64 4.324-2.632 5.34l-.746.364-4.798-4.798-7.292 7.294-1.416-1.416zm8.24-13.672c-.688.568-1.416 1.45-1.024 2.072l.49.722-4.986 4.988c-1.988-.506-4.346-.636-5.156.614l9.02 9.032q.14-.099.272-.21c1.226-1.08.764-3.04.498-4.9l4.79-4.79s1.47.938 2.936-.776l-6.79-6.79q-.026.019-.05.038' style='fill-rule:nonzero'/%3E%3C/svg%3E")}.ag-icon-pivot:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' xml:space='preserve' style='fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2' viewBox='0 0 32 32'%3E%3Cpath d='M25.128 2.002c2.56.096 4.772 2.292 4.87 4.87a712 712 0 0 1 0 18.256c-.096 2.56-2.292 4.772-4.87 4.87a712 712 0 0 1-18.256 0c-2.558-.096-4.772-2.29-4.87-4.87a712 712 0 0 1 0-18.256c.096-2.56 2.292-4.772 4.87-4.87a712 712 0 0 1 18.256 0m2.966 7.954H9.892v18.136c5.086.13 10.18.098 15.264-.096 1.48-.094 2.746-1.35 2.84-2.84.192-5.064.226-10.134.098-15.2M3.968 24.1q.015.528.036 1.056c.094 1.484 1.354 2.746 2.84 2.84l1.012.036V24.1zM22 15.414l-.292.294-1.416-1.416L23 11.586l2.708 2.706-1.416 1.416-.292-.294v3.592c-.032 2.604-2.246 4.892-4.872 4.992L15.414 24l.294.292-1.416 1.416L11.586 23l2.706-2.708 1.416 1.416-.322.32c3.372.03 6.578-.164 6.614-3.034zM3.88 18.038c.002 1.346.012 2.694.038 4.04h3.938v-4.04zm.05-6.062a681 681 0 0 0-.044 4.042h3.97v-4.042zm5.962-7.99Q8.449 3.999 7.006 4c-1.57.02-2.946 1.348-3.004 2.922q-.02 1.517-.042 3.034h3.896v-2.02h2.036zm14.244-.016v3.966h3.898q-.017-.546-.038-1.092c-.094-1.48-1.35-2.746-2.84-2.84q-.51-.019-1.02-.034m-8.14-.054q-2.035.022-4.07.048v3.972h4.07zm6.106.008a213 213 0 0 0-4.07-.022v4.034h4.07z' style='fill-rule:nonzero'/%3E%3C/svg%3E")}.ag-icon-plus:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' xml:space='preserve' style='fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2' viewBox='0 0 32 32'%3E%3Cpath d='M6.572 6.572a13.32 13.32 0 0 0 0 18.856 13.32 13.32 0 0 0 18.856 0 13.32 13.32 0 0 0 0-18.856 13.32 13.32 0 0 0-18.856 0m17.527 8.099v2.658h-6.77v6.77h-2.658v-6.77h-6.77v-2.658h6.77v-6.77h2.658v6.77z' style='fill-rule:nonzero'/%3E%3C/svg%3E")}.ag-icon-previous:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' xml:space='preserve' style='fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2' viewBox='0 0 32 32'%3E%3Cpath d='M21.94 7.88 20.06 6l-10 10 10 10 1.88-1.88L13.833 16z' style='fill-rule:nonzero'/%3E%3C/svg%3E")}.ag-icon-right:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' xml:space='preserve' style='fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2' viewBox='0 0 32 32'%3E%3Cpath d='m16 5.333-1.88 1.88 7.44 7.453H5.333v2.667H21.56l-7.44 7.453 1.88 1.88 10.667-10.667L16 5.332z' style='fill-rule:nonzero'/%3E%3C/svg%3E")}.ag-icon-save:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' xml:space='preserve' style='fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2' viewBox='0 0 32 32'%3E%3Cpath d='M15.708 2.355 8 10.061.292 2.355 1.708.939 8 7.233 14.292.939z' style='fill-rule:nonzero' transform='translate(8 14)'/%3E%3Cpath d='M5 26h22v2H5zM15 4h2v18h-2z'/%3E%3C/svg%3E")}.ag-icon-small-down:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' xml:space='preserve' style='fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2' viewBox='0 0 32 32'%3E%3Cpath d='M7.334 10.667 16 21.334l8.667-10.667z' style='fill-rule:nonzero'/%3E%3C/svg%3E")}.ag-icon-small-left:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' xml:space='preserve' style='fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2' viewBox='0 0 32 32'%3E%3Cpath d='M21.333 7.334 10.666 16l10.667 8.667z' style='fill-rule:nonzero'/%3E%3C/svg%3E")}.ag-icon-small-right:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' xml:space='preserve' style='fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2' viewBox='0 0 32 32'%3E%3Cpath d='M10.667 24.666 21.334 16 10.667 7.333z' style='fill-rule:nonzero'/%3E%3C/svg%3E")}.ag-icon-small-up:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' xml:space='preserve' style='fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2' viewBox='0 0 32 32'%3E%3Cpath d='M7.334 21.333 16 10.666l8.667 10.667z' style='fill-rule:nonzero'/%3E%3C/svg%3E")}.ag-icon-tick:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' xml:space='preserve' style='fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2' viewBox='0 0 32 32'%3E%3Cpath d='M11.586 22.96 27.718 6.828 29.84 8.95 11.586 27.202 2.4 18.016l2.12-2.122z'/%3E%3C/svg%3E")}.ag-icon-tree-closed:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' xml:space='preserve' style='fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2' viewBox='0 0 32 32'%3E%3Cpath d='m11.94 6-1.88 1.88L18.167 16l-8.107 8.12L11.94 26l10-10z' style='fill-rule:nonzero'/%3E%3C/svg%3E")}.ag-icon-tree-indeterminate:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' xml:space='preserve' style='fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2' viewBox='0 0 32 32'%3E%3Cpath d='M6 13.5h20v3H6z'/%3E%3C/svg%3E")}.ag-icon-tree-open:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' xml:space='preserve' style='fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2' viewBox='0 0 32 32'%3E%3Cpath d='M24.12 9.06 16 17.167 7.88 9.06 6 10.94l10 10 10-10z' style='fill-rule:nonzero' transform='translate(0 1)'/%3E%3C/svg%3E")}.ag-icon-unlinked:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' xml:space='preserve' style='fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2' viewBox='0 0 32 32'%3E%3Cpath d='M22.667 9.333h-5.333v2.533h5.333a4.136 4.136 0 0 1 4.133 4.133c0 1.907-1.307 3.507-3.08 3.973l1.947 1.947c2.173-1.107 3.667-3.32 3.667-5.92a6.67 6.67 0 0 0-6.667-6.667zm-1.334 5.334h-2.92l2.667 2.667h.253zM2.667 5.693 6.814 9.84A6.65 6.65 0 0 0 2.667 16a6.67 6.67 0 0 0 6.667 6.667h5.333v-2.533H9.334a4.136 4.136 0 0 1-4.133-4.133c0-2.12 1.613-3.867 3.68-4.093l2.76 2.76h-.973v2.667h3.64l3.027 3.027v2.307h2.307l5.347 5.333 1.68-1.68L4.362 4.002 2.669 5.695z' style='fill-rule:nonzero'/%3E%3C/svg%3E")}.ag-icon-up:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' xml:space='preserve' style='fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2' viewBox='0 0 32 32'%3E%3Cpath d='m5.333 16 1.88 1.88 7.453-7.44v16.227h2.667V10.44l7.44 7.453L26.666 16 15.999 5.333 5.332 16z' style='fill-rule:nonzero'/%3E%3C/svg%3E")}.ag-icon-grip:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' xml:space='preserve' style='fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2' viewBox='0 0 32 32'%3E%3Cpath d='M8 24H6v-4h2zm6 0h-2v-4h2zm6 0h-2v-4h2zm6 0h-2v-4h2zM8 18H6v-4h2zm6 0h-2v-4h2zm6 0h-2v-4h2zm6 0h-2v-4h2zM8 12H6V8h2zm6 0h-2V8h2zm6 0h-2V8h2zm6 0h-2V8h2z' style='fill-rule:nonzero'/%3E%3C/svg%3E")}.ag-icon-settings:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' fill='none' viewBox='0 0 32 32'%3E%3Cpath fill='%23000' d='M30 8h-4.1c-.5-2.3-2.5-4-4.9-4s-4.4 1.7-4.9 4H2v2h14.1c.5 2.3 2.5 4 4.9 4s4.4-1.7 4.9-4H30zm-9 4c-1.7 0-3-1.3-3-3s1.3-3 3-3 3 1.3 3 3-1.3 3-3 3M2 24h4.1c.5 2.3 2.5 4 4.9 4s4.4-1.7 4.9-4H30v-2H15.9c-.5-2.3-2.5-4-4.9-4s-4.4 1.7-4.9 4H2zm9-4c1.7 0 3 1.3 3 3s-1.3 3-3 3-3-1.3-3-3 1.3-3 3-3'/%3E%3C/svg%3E")}`},9580:function(ne,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.iconSetAlpine=void 0;let M=p(6607),A=p(7235),F=p(8897);x.iconSetAlpine=(0,M.createPart)({feature:"iconSet",css:()=>A.sharedIconStylesCSS+F.iconSetAlpineCSS})},6407:function(ne,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.iconSetQuartzRegular=x.iconSetQuartzLight=x.iconSetQuartzBold=x.iconSetQuartz=x.iconOverrides=x.iconSetMaterial=x.iconSetAlpine=void 0;var M=p(9580);Object.defineProperty(x,"iconSetAlpine",{enumerable:!0,get:function(){return M.iconSetAlpine}});var A=p(8900);Object.defineProperty(x,"iconSetMaterial",{enumerable:!0,get:function(){return A.iconSetMaterial}});var F=p(5867);Object.defineProperty(x,"iconOverrides",{enumerable:!0,get:function(){return F.iconOverrides}});var D=p(3692);Object.defineProperty(x,"iconSetQuartz",{enumerable:!0,get:function(){return D.iconSetQuartz}}),Object.defineProperty(x,"iconSetQuartzBold",{enumerable:!0,get:function(){return D.iconSetQuartzBold}}),Object.defineProperty(x,"iconSetQuartzLight",{enumerable:!0,get:function(){return D.iconSetQuartzLight}}),Object.defineProperty(x,"iconSetQuartzRegular",{enumerable:!0,get:function(){return D.iconSetQuartzRegular}})},7545:function(ne,x){Object.defineProperty(x,"__esModule",{value:!0}),x.iconSetMaterialCSS=void 0,x.iconSetMaterialCSS=`.ag-icon-aggregation:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ctitle%3Eaggregation%3C/title%3E%3Cpath d='M24 5.333H8V8l8.667 8L8 24v2.667h16v-4h-9.333L21.334 16l-6.667-6.667H24z'/%3E%3C/svg%3E")}.ag-icon-arrows:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ctitle%3Earrows%3C/title%3E%3Cpath d='M13.333 11.556h5.333V8h3.556L16 1.778 9.778 8h3.556zm-1.777 1.777H8V9.777l-6.222 6.222L8 22.221v-3.556h3.556zM30.222 16 24 9.778v3.556h-3.556v5.333H24v3.556l6.222-6.222zm-11.555 4.444h-5.333V24H9.778L16 30.222 22.222 24h-3.556z'/%3E%3C/svg%3E")}.ag-icon-asc:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ctitle%3Easc%3C/title%3E%3Cpath d='m5.333 16 1.88 1.88 7.453-7.44v16.227h2.667V10.44l7.44 7.453L26.666 16 15.999 5.333z'/%3E%3C/svg%3E")}.ag-icon-cancel:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ctitle%3Ecancel%3C/title%3E%3Cpath d='M16 2.667C8.627 2.667 2.667 8.627 2.667 16S8.627 29.333 16 29.333 29.333 23.373 29.333 16 23.373 2.667 16 2.667m6.667 18.12-1.88 1.88L16 17.88l-4.787 4.787-1.88-1.88L14.12 16l-4.787-4.787 1.88-1.88L16 14.12l4.787-4.787 1.88 1.88L17.88 16z'/%3E%3C/svg%3E")}.ag-icon-chart:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ctitle%3Echart%3C/title%3E%3Cpath d='M6.667 12.267h4v13.067h-4zm7.466-5.6h3.733v18.667h-3.733zM21.6 17.333h3.733v8H21.6z'/%3E%3C/svg%3E")}.ag-icon-color-picker:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ctitle%3Ecolor-picker%3C/title%3E%3Cpath d='M23.907 17.587 10.574 4.254l-1.88 1.88 3.173 3.173-8.28 8.28 10.16 10.16zm-16.547 0 6.387-6.387 6.387 6.387H7.361zm18.387 2s-2.667 2.893-2.667 4.667c0 1.467 1.2 2.667 2.667 2.667s2.667-1.2 2.667-2.667c0-1.773-2.667-4.667-2.667-4.667'/%3E%3C/svg%3E")}.ag-icon-columns:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ctitle%3Ecolumns%3C/title%3E%3Cpath d='M5.333 10.667h5.333V5.334H5.333zm8 16h5.333v-5.333h-5.333zm-8 0h5.333v-5.333H5.333zm0-8h5.333v-5.333H5.333zm8 0h5.333v-5.333h-5.333zm8-13.334v5.333h5.333V5.333zm-8 5.334h5.333V5.334h-5.333zm8 8h5.333v-5.333h-5.333zm0 8h5.333v-5.333h-5.333z'/%3E%3C/svg%3E")}.ag-icon-contracted:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ctitle%3Econtracted%3C/title%3E%3Cpath d='m12.94 8-1.88 1.88L17.167 16l-6.107 6.12L12.94 24l8-8z'/%3E%3C/svg%3E")}.ag-icon-copy:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ctitle%3Ecopy%3C/title%3E%3Cpath d='M22 1.333H6A2.675 2.675 0 0 0 3.333 4v18.667H6V4h16zm4 5.334H11.333a2.675 2.675 0 0 0-2.667 2.667v18.667c0 1.467 1.2 2.667 2.667 2.667H26c1.467 0 2.667-1.2 2.667-2.667V9.334c0-1.467-1.2-2.667-2.667-2.667M26 28H11.333V9.333H26z'/%3E%3C/svg%3E")}.ag-icon-cross:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ctitle%3Ecross%3C/title%3E%3Cpath d='m25.333 8.547-1.88-1.88L16 14.12 8.547 6.667l-1.88 1.88L14.12 16l-7.453 7.453 1.88 1.88L16 17.88l7.453 7.453 1.88-1.88L17.88 16z'/%3E%3C/svg%3E")}.ag-icon-csv:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' xml:space='preserve' style='fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2' viewBox='0 0 32 32'%3E%3Cpath d='M384 131.9c-7.753-8.433-110.425-128.473-114.9-133L48-.1C21.5 0 0 21.5 0 48v416c0 26.5 21.5 48 48 48h288c26.5 0 48-21.5 48-48zm-35.9 2.1H257V27.9zM30 479V27h200l1 105c0 13.3-1.3 29 12 29h111l1 318z' style='fill-rule:nonzero' transform='matrix(.06285 0 0 .06285 3.934 -.054)'/%3E%3Cpath d='M.688-.226a.2.2 0 0 1-.017.074.28.28 0 0 1-.145.14.412.412 0 0 1-.234.013.28.28 0 0 1-.202-.168.468.468 0 0 1-.04-.19q0-.086.025-.155a.319.319 0 0 1 .182-.191.4.4 0 0 1 .134-.025q.087 0 .155.035a.3.3 0 0 1 .104.085.17.17 0 0 1 .036.097.06.06 0 0 1-.018.044.06.06 0 0 1-.042.019.06.06 0 0 1-.042-.013.2.2 0 0 1-.031-.046.2.2 0 0 0-.066-.079.16.16 0 0 0-.095-.027.17.17 0 0 0-.142.068.3.3 0 0 0-.053.193.4.4 0 0 0 .023.139.2.2 0 0 0 .067.083.2.2 0 0 0 .1.027q.063 0 .106-.031a.2.2 0 0 0 .065-.091.2.2 0 0 1 .023-.046q.014-.018.044-.018a.06.06 0 0 1 .044.018.06.06 0 0 1 .019.045' style='fill-rule:nonzero' transform='matrix(8.39799 0 0 12.455 7.122 25.977)'/%3E%3Cpath d='M.622-.215a.2.2 0 0 1-.033.117.23.23 0 0 1-.098.081.4.4 0 0 1-.153.029.34.34 0 0 1-.175-.04.23.23 0 0 1-.079-.077.17.17 0 0 1-.031-.093q0-.027.019-.045a.06.06 0 0 1 .046-.019.06.06 0 0 1 .039.014.1.1 0 0 1 .027.044.3.3 0 0 0 .03.057q.015.023.044.038.03.015.076.015.065 0 .105-.03a.09.09 0 0 0 .04-.075.08.08 0 0 0-.022-.058.14.14 0 0 0-.056-.034 1 1 0 0 0-.092-.025.7.7 0 0 1-.129-.042.2.2 0 0 1-.083-.066.17.17 0 0 1-.03-.104q0-.058.032-.105a.2.2 0 0 1 .093-.07.4.4 0 0 1 .144-.025q.066 0 .114.016a.3.3 0 0 1 .08.044.2.2 0 0 1 .046.057q.015.03.015.058a.07.07 0 0 1-.018.046.06.06 0 0 1-.046.021q-.025 0-.038-.012a.2.2 0 0 1-.028-.041.2.2 0 0 0-.047-.063Q.387-.625.326-.625a.15.15 0 0 0-.09.025q-.035.024-.035.059 0 .021.012.037a.1.1 0 0 0 .032.027.4.4 0 0 0 .111.036q.06.015.11.031.048.018.083.042a.2.2 0 0 1 .054.062.2.2 0 0 1 .019.091' style='fill-rule:nonzero' transform='matrix(8.39799 0 0 12.455 13.339 25.977)'/%3E%3Cpath d='m.184-.633.162.48.163-.483q.013-.038.019-.053a.062.062 0 0 1 .061-.039q.018 0 .034.009a.1.1 0 0 1 .025.025q.009.015.009.031L.654-.64l-.007.025-.009.024-.173.468-.019.051a.2.2 0 0 1-.021.042.1.1 0 0 1-.033.03.1.1 0 0 1-.049.012.1.1 0 0 1-.05-.011A.1.1 0 0 1 .26-.03a.2.2 0 0 1-.021-.042L.22-.123.05-.587.041-.612.033-.638.03-.662q0-.025.02-.046a.07.07 0 0 1 .05-.02q.037 0 .053.023.015.023.031.072' style='fill-rule:nonzero' transform='matrix(8.39799 0 0 12.455 18.94 25.977)'/%3E%3C/svg%3E")}.ag-icon-cut:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' xml:space='preserve' style='fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2' viewBox='0 0 32 32'%3E%3Cpath d='m19 3-6 6 2 2 7-7V3m-10 9.5a.503.503 0 0 1-.5-.5c0-.274.226-.5.5-.5s.5.226.5.5-.226.5-.5.5M6 20c-1.097 0-2-.903-2-2a2 2 0 0 1 2-2c1.097 0 2 .903 2 2a2 2 0 0 1-2 2M6 8c-1.097 0-2-.903-2-2a2 2 0 0 1 2-2c1.097 0 2 .903 2 2a2 2 0 0 1-2 2m3.64-.36c.23-.5.36-1.05.36-1.64 0-2.194-1.806-4-4-4S2 3.806 2 6s1.806 4 4 4c.59 0 1.14-.13 1.64-.36L10 12l-2.36 2.36C7.14 14.13 6.59 14 6 14c-2.194 0-4 1.806-4 4s1.806 4 4 4 4-1.806 4-4c0-.59-.13-1.14-.36-1.64L12 14l7 7h3v-1z' style='fill-rule:nonzero' transform='translate(4 4)'/%3E%3C/svg%3E")}.ag-icon-desc:before,.ag-icon-down:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ctitle%3Edesc%3C/title%3E%3Cpath d='m26.667 16-1.88-1.88-7.453 7.44V5.333h-2.667V21.56l-7.44-7.453L5.334 16l10.667 10.667L26.668 16z'/%3E%3C/svg%3E")}.ag-icon-excel:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' xml:space='preserve' style='fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2' viewBox='0 0 32 32'%3E%3Cpath d='M384 131.9c-7.753-8.433-110.425-128.473-114.9-133L48-.1C21.5 0 0 21.5 0 48v416c0 26.5 21.5 48 48 48h288c26.5 0 48-21.5 48-48zm-35.9 2.1H257V27.9zM30 479V27h200l1 105c0 13.3-1.3 29 12 29h111l1 318z' style='fill-rule:nonzero' transform='matrix(.06285 0 0 .06285 3.934 -.054)'/%3E%3Cpath d='m.052-.139.16-.234-.135-.208a.4.4 0 0 1-.028-.052.1.1 0 0 1-.01-.042.05.05 0 0 1 .018-.037.07.07 0 0 1 .045-.016q.03 0 .047.018a1 1 0 0 1 .047.066l.107.174.115-.174.024-.038.019-.026.021-.015a.1.1 0 0 1 .027-.005.06.06 0 0 1 .044.016.05.05 0 0 1 .018.039q0 .033-.038.089l-.141.211.152.234a.3.3 0 0 1 .03.051.1.1 0 0 1 .009.038.1.1 0 0 1-.008.031.1.1 0 0 1-.024.023.1.1 0 0 1-.034.008.1.1 0 0 1-.035-.008.1.1 0 0 1-.023-.022L.427-.067.301-.265l-.134.204-.022.034-.016.019a.1.1 0 0 1-.022.015.1.1 0 0 1-.03.005.06.06 0 0 1-.044-.016.06.06 0 0 1-.017-.047q0-.036.036-.088' style='fill-rule:nonzero' transform='matrix(17.82892 0 0 16.50777 10.371 25.928)'/%3E%3C/svg%3E")}.ag-icon-expanded:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ctitle%3Eexpanded%3C/title%3E%3Cpath d='M20.94 9.88 19.06 8l-8 8 8 8 1.88-1.88L14.833 16z'/%3E%3C/svg%3E")}.ag-icon-eye-slash:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ctitle%3Eeye-slash%3C/title%3E%3Cpath d='M21.106 15.088A5.19 5.19 0 0 0 16 10.814a5.17 5.17 0 0 0-3.668 1.522L9.866 9.868a12.2 12.2 0 0 1 6.133-1.646c5.186 0 9.614 3.225 11.408 7.778a12.34 12.34 0 0 1-5.276 6.133l-2.468-2.466a5.17 5.17 0 0 0 1.449-2.802h-2.123c-.148.508-.42.964-.782 1.33l-1.33-1.33h-2.514l2.196 2.196q-.272.049-.56.05a3.11 3.11 0 0 1-2.99-2.245h-2.123a5.19 5.19 0 0 0 7.3 3.836l2.247 2.247a12.2 12.2 0 0 1-4.434.828c-5.186 0-9.614-3.225-11.408-7.778a12.3 12.3 0 0 1 3.781-5.111l2.924 2.924a5.1 5.1 0 0 0-.404 1.275h4.206l-1.296-1.296a3.1 3.1 0 0 1 2.196-.903c1.404 0 2.587.924 2.976 2.199h2.13z'/%3E%3C/svg%3E")}.ag-icon-eye:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ctitle%3Eeye%3C/title%3E%3Cpath d='M16 8.222c-5.186 0-9.614 3.225-11.408 7.778 1.794 4.553 6.222 7.778 11.408 7.778S25.614 20.553 27.408 16C25.614 11.447 21.186 8.222 16 8.222m0 12.964c-2.862 0-5.186-2.324-5.186-5.186s2.324-5.186 5.186-5.186 5.186 2.324 5.186 5.186-2.324 5.186-5.186 5.186m0-8.297c-1.721 0-3.111 1.39-3.111 3.111s1.39 3.111 3.111 3.111 3.111-1.39 3.111-3.111-1.39-3.111-3.111-3.111'/%3E%3C/svg%3E")}.ag-icon-filter:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ctitle%3Efilter%3C/title%3E%3Cpath d='M13.333 24h5.333v-2.667h-5.333zM4 8v2.667h24V8zm4 9.333h16v-2.667H8z'/%3E%3C/svg%3E")}.ag-icon-first:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ctitle%3Efirst%3C/title%3E%3Cpath d='M24.273 22.12 18.153 16l6.12-6.12L22.393 8l-8 8 8 8zM7.727 8h2.667v16H7.727z'/%3E%3C/svg%3E")}.ag-icon-group:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ctitle%3Egroup%3C/title%3E%3Cpath d='M18.667 21.333h8.889A3.555 3.555 0 0 1 24 24.889h-5.333zm8.888-7.111v3.556h-8.889v-3.556zM24 7.111a3.555 3.555 0 0 1 3.556 3.556h-16V7.111zm-8.889 17.778h-3.556v-3.556h3.556zm0-7.111h-3.556v-3.556h3.556zM8 10.667H4.444A3.555 3.555 0 0 1 8 7.111z'/%3E%3C/svg%3E")}.ag-icon-last:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ctitle%3Elast%3C/title%3E%3Cpath d='m7.727 9.88 6.12 6.12-6.12 6.12L9.607 24l8-8-8-8zM21.607 8h2.667v16h-2.667z'/%3E%3C/svg%3E")}.ag-icon-left:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ctitle%3Eleft%3C/title%3E%3Cpath d='M26.667 14.667H10.44l7.453-7.453L16 5.334 5.333 16.001 16 26.668l1.88-1.88-7.44-7.453h16.227v-2.667z'/%3E%3C/svg%3E")}.ag-icon-linked:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ctitle%3Elinked%3C/title%3E%3Cpath d='M5.2 16a4.136 4.136 0 0 1 4.133-4.133h5.333V9.334H9.333c-3.68 0-6.667 2.987-6.667 6.667s2.987 6.667 6.667 6.667h5.333v-2.533H9.333A4.136 4.136 0 0 1 5.2 16.002zm5.467 1.333h10.667v-2.667H10.667zm12-8h-5.333v2.533h5.333c2.28 0 4.133 1.853 4.133 4.133s-1.853 4.133-4.133 4.133h-5.333v2.533h5.333c3.68 0 6.667-2.987 6.667-6.667s-2.987-6.667-6.667-6.667z'/%3E%3C/svg%3E")}.ag-icon-loading:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ctitle%3Eloading%3C/title%3E%3Cpath d='m17.778 11.708 3.25-3.251 2.516 2.516-3.251 3.25h4.597v3.556h-4.597l3.251 3.25-2.516 2.516-3.25-3.251v4.597h-3.556v-4.597l-3.25 3.251-2.516-2.516 3.251-3.25H7.11v-3.556h4.597l-3.251-3.25 2.516-2.516 3.25 3.251V7.111h3.556zm-3.251 7.847h2.944l2.084-2.084v-2.944l-2.084-2.084h-2.944l-2.084 2.084v2.944z'/%3E%3C/svg%3E")}.ag-icon-maximize:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ctitle%3Emaximize%3C/title%3E%3Cpath d='M4 4h24v2.667H4z'/%3E%3C/svg%3E")}.ag-icon-menu:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ctitle%3Emenu%3C/title%3E%3Cpath d='M4 24h24v-2.667H4zm0-6.667h24v-2.667H4zM4 8v2.667h24V8z'/%3E%3C/svg%3E")}.ag-icon-menu-alt:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' fill='none' viewBox='0 0 32 32'%3E%3Cpath fill='%23000' d='M16 26.667a2.57 2.57 0 0 1-1.883-.784A2.57 2.57 0 0 1 13.333 24q0-1.1.784-1.883A2.57 2.57 0 0 1 16 21.333q1.1 0 1.883.784.784.783.784 1.883t-.784 1.883a2.57 2.57 0 0 1-1.883.784m0-8a2.57 2.57 0 0 1-1.883-.784A2.57 2.57 0 0 1 13.333 16q0-1.1.784-1.883A2.57 2.57 0 0 1 16 13.333q1.1 0 1.883.784.784.783.784 1.883t-.784 1.883a2.57 2.57 0 0 1-1.883.784m0-8a2.57 2.57 0 0 1-1.883-.784A2.57 2.57 0 0 1 13.333 8q0-1.1.784-1.883A2.57 2.57 0 0 1 16 5.333q1.1 0 1.883.784.784.783.784 1.883t-.784 1.883a2.57 2.57 0 0 1-1.883.784'/%3E%3C/svg%3E")}.ag-icon-minimize:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ctitle%3Eminimize%3C/title%3E%3Cpath d='M8 25.333h16V28H8z'/%3E%3C/svg%3E")}.ag-icon-minus:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' xml:space='preserve' style='fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2' viewBox='0 0 32 32'%3E%3Cpath d='M6.572 6.572a13.32 13.32 0 0 0 0 18.856 13.32 13.32 0 0 0 18.856 0 13.32 13.32 0 0 0 0-18.856 13.32 13.32 0 0 0-18.856 0m17.527 8.099v2.658H7.901v-2.658z' style='fill-rule:nonzero'/%3E%3C/svg%3E")}.ag-icon-next:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ctitle%3Enext%3C/title%3E%3Cpath d='m12.94 8-1.88 1.88L17.167 16l-6.107 6.12L12.94 24l8-8z'/%3E%3C/svg%3E")}.ag-icon-none:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ctitle%3Enone%3C/title%3E%3Cpath d='M4 24h16v-2.667H4zM4 8v2.667h24V8zm0 9.333h24v-2.667H4z'/%3E%3C/svg%3E")}.ag-icon-not-allowed:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ctitle%3Enot-allowed%3C/title%3E%3Cpath d='M16 2.667C8.64 2.667 2.667 8.64 2.667 16S8.64 29.333 16 29.333 29.333 23.36 29.333 16 23.36 2.667 16 2.667M5.333 16c0-5.893 4.773-10.667 10.667-10.667 2.467 0 4.733.84 6.533 2.253L7.586 22.533A10.54 10.54 0 0 1 5.333 16M16 26.667c-2.467 0-4.733-.84-6.533-2.253L24.414 9.467A10.54 10.54 0 0 1 26.667 16c0 5.893-4.773 10.667-10.667 10.667'/%3E%3C/svg%3E")}.ag-icon-paste:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ctitle%3Epaste%3C/title%3E%3Cpath d='M25.333 4H19.76C19.2 2.453 17.733 1.333 16 1.333S12.8 2.453 12.24 4H6.667A2.675 2.675 0 0 0 4 6.667V28c0 1.467 1.2 2.667 2.667 2.667h18.667c1.467 0 2.667-1.2 2.667-2.667V6.667C28.001 5.2 26.801 4 25.334 4zM16 4c.733 0 1.333.6 1.333 1.333s-.6 1.333-1.333 1.333-1.333-.6-1.333-1.333S15.267 4 16 4m9.333 24H6.666V6.667h2.667v4h13.333v-4h2.667z'/%3E%3C/svg%3E")}.ag-icon-pin:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ctitle%3Epin%3C/title%3E%3Cpath d='m11.106 22.093-4.444 4.444-1.259-1.259 4.444-4.444zm5.872-16.63 9.618 9.62-.962.962-.962-.962-7.694 3.847 1.924 1.924-2.74 2.74-7.696-7.696 2.741-2.74 1.924 1.925 3.847-7.696-.962-.962z'/%3E%3C/svg%3E")}.ag-icon-pivot:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ctitle%3Epivot%3C/title%3E%3Cpath d='M26.667 30.223H5.334a3.556 3.556 0 0 1-3.556-3.556V5.334a3.556 3.556 0 0 1 3.556-3.556h21.333a3.556 3.556 0 0 1 3.556 3.556v21.333a3.556 3.556 0 0 1-3.556 3.556m-16-8.89H5.334v5.333h5.333zm16-7.11H12.444v12.444h14.223zm-9.15 6.85-2.039 2.037 2.039 2.039-1.257 1.257-3.295-3.296 3.295-3.295q.63.628 1.257 1.257zm-6.85-6.85H5.334v5.333h5.333zm15.74 3.816-1.257 1.256-2.039-2.037-2.037 2.037-1.257-1.256 3.295-3.296zM10.667 5.333H5.334v5.333h5.333zm8.889 0h-7.112v5.333h7.112zm7.111 0h-5.333v5.333h5.333z'/%3E%3C/svg%3E")}.ag-icon-plus:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' xml:space='preserve' style='fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2' viewBox='0 0 32 32'%3E%3Cpath d='M6.572 6.572a13.32 13.32 0 0 0 0 18.856 13.32 13.32 0 0 0 18.856 0 13.32 13.32 0 0 0 0-18.856 13.32 13.32 0 0 0-18.856 0m17.527 8.099v2.658h-6.77v6.77h-2.658v-6.77h-6.77v-2.658h6.77v-6.77h2.658v6.77z' style='fill-rule:nonzero'/%3E%3C/svg%3E")}.ag-icon-previous:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ctitle%3Eprevious%3C/title%3E%3Cpath d='M20.94 9.88 19.06 8l-8 8 8 8 1.88-1.88L14.833 16z'/%3E%3C/svg%3E")}.ag-icon-right:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ctitle%3Eright%3C/title%3E%3Cpath d='m16 5.333-1.88 1.88 7.44 7.453H5.333v2.667H21.56l-7.44 7.453 1.88 1.88 10.667-10.667L16 5.332z'/%3E%3C/svg%3E")}.ag-icon-save:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ctitle%3Esave%3C/title%3E%3Cpath d='M25.333 16v9.333H6.666V16H3.999v9.333C3.999 26.8 5.199 28 6.666 28h18.667C26.8 28 28 26.8 28 25.333V16zm-8 .893 3.453-3.44 1.88 1.88L15.999 22l-6.667-6.667 1.88-1.88 3.453 3.44V4h2.667v12.893z'/%3E%3C/svg%3E")}.ag-icon-small-down:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ctitle%3Esmall-down%3C/title%3E%3Cpath d='M9.333 12.667 16 19.334l6.667-6.667H9.334z'/%3E%3C/svg%3E")}.ag-icon-small-left:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ctitle%3Esmall-left%3C/title%3E%3Cpath d='M19.333 9.333 12.666 16l6.667 6.667V9.334z'/%3E%3C/svg%3E")}.ag-icon-small-right:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ctitle%3Esmall-right%3C/title%3E%3Cpath d='M12.667 22.667 19.334 16l-6.667-6.667v13.333z'/%3E%3C/svg%3E")}.ag-icon-small-up:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ctitle%3Esmall-up%3C/title%3E%3Cpath d='M9.333 19.333 16 12.666l6.667 6.667H9.334z'/%3E%3C/svg%3E")}.ag-icon-tick:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ctitle%3Etick%3C/title%3E%3Cpath d='m11.727 21.167-5.56-5.56-1.893 1.88 7.453 7.453 16-16-1.88-1.88z'/%3E%3C/svg%3E")}.ag-icon-tree-closed:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ctitle%3Etree-closed%3C/title%3E%3Cpath d='m12.94 8-1.88 1.88L17.167 16l-6.107 6.12L12.94 24l8-8z'/%3E%3C/svg%3E")}.ag-icon-tree-indeterminate:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ctitle%3Etree-indeterminate%3C/title%3E%3Cpath d='M6.667 14.667h18.667v2.667H6.667z'/%3E%3C/svg%3E")}.ag-icon-tree-open:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ctitle%3Etree-open%3C/title%3E%3Cpath d='M22.12 11.06 16 17.167 9.88 11.06 8 12.94l8 8 8-8z'/%3E%3C/svg%3E")}.ag-icon-unlinked:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ctitle%3Eunlinked%3C/title%3E%3Cpath d='M22.667 9.333h-5.333v2.533h5.333a4.136 4.136 0 0 1 4.133 4.133c0 1.907-1.307 3.507-3.08 3.973l1.947 1.947c2.173-1.107 3.667-3.32 3.667-5.92a6.67 6.67 0 0 0-6.667-6.667zm-1.334 5.334h-2.92l2.667 2.667h.253zM2.667 5.693 6.814 9.84A6.65 6.65 0 0 0 2.667 16a6.67 6.67 0 0 0 6.667 6.667h5.333v-2.533H9.334a4.136 4.136 0 0 1-4.133-4.133c0-2.12 1.613-3.867 3.68-4.093l2.76 2.76h-.973v2.667h3.64l3.027 3.027v2.307h2.307l5.347 5.333 1.68-1.68L4.362 4.002 2.669 5.695z'/%3E%3C/svg%3E")}.ag-icon-up:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ctitle%3Easc%3C/title%3E%3Cpath d='m5.333 16 1.88 1.88 7.453-7.44v16.227h2.667V10.44l7.44 7.453L26.666 16 15.999 5.333z'/%3E%3C/svg%3E")}.ag-icon-grip:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ctitle%3Egrip%3C/title%3E%3Cpath d='M26.667 12H5.334v2.667h21.333zM5.333 20h21.333v-2.667H5.333z'/%3E%3C/svg%3E")}.ag-icon-settings:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' fill='none' viewBox='0 0 32 32'%3E%3Cpath fill='%23000' d='M30 8h-4.1c-.5-2.3-2.5-4-4.9-4s-4.4 1.7-4.9 4H2v2h14.1c.5 2.3 2.5 4 4.9 4s4.4-1.7 4.9-4H30zm-9 4c-1.7 0-3-1.3-3-3s1.3-3 3-3 3 1.3 3 3-1.3 3-3 3M2 24h4.1c.5 2.3 2.5 4 4.9 4s4.4-1.7 4.9-4H30v-2H15.9c-.5-2.3-2.5-4-4.9-4s-4.4 1.7-4.9 4H2zm9-4c1.7 0 3 1.3 3 3s-1.3 3-3 3-3-1.3-3-3 1.3-3 3-3'/%3E%3C/svg%3E")}`},8900:function(ne,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.iconSetMaterial=void 0;let M=p(6607),A=p(7235),F=p(7545);x.iconSetMaterial=(0,M.createPart)({feature:"iconSet",css:()=>A.sharedIconStylesCSS+F.iconSetMaterialCSS})},5867:function(ne,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.iconOverrides=void 0;let M=p(6607),A=p(113),F=p(7235);x.iconOverrides=f=>{let v=[F.sharedIconStylesCSS];if(f.type==="image"){let{icons:u,mask:s}=f;for(let[r,d]of Object.entries(u)){let g=(0,A.imageValueToCss)(d);s?v.push(`.ag-icon-${r}::before { mask-image: ${g}; }`):v.push(`.ag-icon-${r}::before { background-image: ${g}; ${D} }`)}}if(f.type==="font"){let{family:u,weight:s,color:r,icons:d}=f,g=D;u&&(g+=` font-family: ${(0,A.fontFamilyValueToCss)(u)};`),s&&(g+=` font-weight: ${(0,A.fontWeightValueToCss)(s)};`),r&&(g+=` color: ${(0,A.colorValueToCss)(r)};`);for(let[m,b]of Object.entries(d))v.push(`.ag-icon-${m}::before { content: ${JSON.stringify(b)}; ${g} }`)}return(0,M.createPart)({css:v.join(`;
`),cssImports:f.cssImports})};let D="background-color: unset; mask-image: unset; -webkit-mask-image: unset;"},3692:function(ne,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.iconSetQuartzBold=x.iconSetQuartzRegular=x.iconSetQuartzLight=x.iconSetQuartz=void 0;let M=p(6607),A=p(1368);x.iconSetQuartz=(F={})=>(0,M.createPart)({feature:"iconSet",css:()=>(0,A.getQuartzIconsCss)(F)}),x.iconSetQuartzLight=(0,x.iconSetQuartz)({strokeWidth:1}),x.iconSetQuartzRegular=(0,x.iconSetQuartz)(),x.iconSetQuartzBold=(0,x.iconSetQuartz)({strokeWidth:2})},1368:function(ne,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.getQuartzIconsCss=void 0;let M=p(7235),A={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"/>'},F={"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>'};x.getQuartzIconsCss=(f={})=>{let v=M.sharedIconStylesCSS;for(let u of[...Object.keys(A),...Object.keys(F)]){let s=D(u,f.strokeWidth);v+=`.ag-icon-${u}::before { mask-image: url('data:image/svg+xml,${encodeURIComponent(s)}'); }
`}return v};let D=(f,v=1.5)=>{let u=F[f];if(u)return u;let s=A[f];if(!s)throw new Error(`Missing icon data for ${f}`);return`<svg xmlns="http://www.w3.org/2000/svg" class="ag-icon" fill="none" stroke-linecap="round" stroke-linejoin="round" stroke="black" stroke-width="${v}" viewBox="0 0 24 24"><style>* { vector-effect: non-scaling-stroke; }</style>`+s+"</svg>"}},7235:function(ne,x){Object.defineProperty(x,"__esModule",{value:!0}),x.sharedIconStylesCSS=void 0,x.sharedIconStylesCSS=':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;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)}'},2543:function(ne,x){Object.defineProperty(x,"__esModule",{value:!0}),x.inputStyleBaseCSS=void 0,x.inputStyleBaseCSS=':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}}:where(input.ag-input-field-input:not([type]),input.ag-input-field-input[type=text],input.ag-input-field-input[type=number],input.ag-input-field-input[type=tel],input.ag-input-field-input[type=date],input.ag-input-field-input[type=datetime-local],textarea.ag-input-field-input){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) :where(input.ag-input-field-input:not([type]),input.ag-input-field-input[type=text],input.ag-input-field-input[type=number],input.ag-input-field-input[type=tel],input.ag-input-field-input[type=date],input.ag-input-field-input[type=datetime-local],textarea.ag-input-field-input){padding-left:var(--ag-input-padding-start)}:where(.ag-rtl) :where(input.ag-input-field-input:not([type]),input.ag-input-field-input[type=text],input.ag-input-field-input[type=number],input.ag-input-field-input[type=tel],input.ag-input-field-input[type=date],input.ag-input-field-input[type=datetime-local],textarea.ag-input-field-input){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-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-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-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)}}'},7389:function(ne,x){Object.defineProperty(x,"__esModule",{value:!0}),x.inputStyleBorderedCSS=void 0,x.inputStyleBorderedCSS=":where(input.ag-input-field-input:not([type]),input.ag-input-field-input[type=text],input.ag-input-field-input[type=number],input.ag-input-field-input[type=tel],input.ag-input-field-input[type=date],input.ag-input-field-input[type=datetime-local],textarea.ag-input-field-input){&:focus{box-shadow:var(--ag-focus-shadow)}}"},3054:function(ne,x){Object.defineProperty(x,"__esModule",{value:!0}),x.inputStyleUnderlinedCSS=void 0,x.inputStyleUnderlinedCSS=":where(input.ag-input-field-input:not([type]),input.ag-input-field-input[type=text],input.ag-input-field-input[type=number],input.ag-input-field-input[type=tel],input.ag-input-field-input[type=date],input.ag-input-field-input[type=datetime-local],textarea.ag-input-field-input){border-left:none;border-right:none;border-top:none}"},7161:function(ne,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.inputStyleUnderlined=x.inputStyleBordered=x.inputStyleBase=void 0;let M=p(6607),A=p(7845),F=p(2543),D=p(7389),f=p(3054),v={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"}};x.inputStyleBase=(0,M.createPart)({feature:"inputStyle",params:v,css:F.inputStyleBaseCSS}),x.inputStyleBordered=(0,M.createPart)({feature:"inputStyle",params:et(pe({},v),{inputBackgroundColor:{ref:"backgroundColor"},inputBorder:!0,inputBorderRadius:{ref:"borderRadius"},inputPaddingStart:{ref:"spacing"},inputFocusBorder:{color:A.accentColor},inputFocusShadow:{ref:"focusShadow"},inputDisabledBackgroundColor:(0,A.foregroundBackgroundMix)(.06),inputDisabledTextColor:{ref:"textColor",mix:.5},inputInvalidBorder:{color:{ref:"invalidColor"}}}),css:()=>F.inputStyleBaseCSS+D.inputStyleBorderedCSS}),x.inputStyleUnderlined=(0,M.createPart)({feature:"inputStyle",params:et(pe({},v),{inputBorder:{width:2,color:(0,A.foregroundMix)(.3)},inputPaddingStart:{ref:"spacing"},inputFocusBorder:"solid 2px var(--ag-accent-color)",inputDisabledTextColor:{ref:"textColor",mix:.5},inputDisabledBorder:"solid 1px var(--ag-border-color)",inputInvalidBorder:{width:2,color:{ref:"invalidColor",mix:.3}}}),css:()=>F.inputStyleBaseCSS+f.inputStyleUnderlinedCSS})},4907:function(ne,x){Object.defineProperty(x,"__esModule",{value:!0}),x.tabStyleBaseCSS=void 0,x.tabStyleBaseCSS='.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:1px solid var(--ag-border-color)}:where(.ag-rtl) .ag-tabs-close-button-wrapper{border-left:1px solid 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)}}}'},5797:function(ne,x){Object.defineProperty(x,"__esModule",{value:!0}),x.tabStyleRolodexCSS=void 0,x.tabStyleRolodexCSS=".ag-tab{border-left:var(--ag-tab-selected-border-width) solid transparent;border-right:var(--ag-tab-selected-border-width) solid transparent;border-top:var(--ag-tab-selected-border-width) solid transparent;flex:0;&.ag-tab-selected{border-left-color:var(--ag-tab-selected-border-color);border-right-color:var(--ag-tab-selected-border-color);border-top-color:var(--ag-tab-selected-border-color);margin-bottom:-1px;padding-bottom:calc(var(--ag-tab-bottom-padding) + 1px)}}"},5117:function(ne,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.tabStyleRolodex=x.tabStyleAlpine=x.tabStyleMaterial=x.tabStyleQuartz=x.tabStyleBase=void 0;let M=p(6607),A=p(7845),F=p(4907),D=p(5797),f={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:1,tabSelectedBorderColor:"transparent",tabSelectedUnderlineColor:"transparent",tabSelectedUnderlineWidth:0,tabSelectedUnderlineTransitionDuration:0,tabBarBorder:!1};x.tabStyleBase=(0,M.createPart)({feature:"tabStyle",params:f,css:F.tabStyleBaseCSS}),x.tabStyleQuartz=(0,M.createPart)({feature:"tabStyle",params:et(pe({},f),{tabBarBorder:!0,tabBarBackgroundColor:(0,A.foregroundMix)(.05),tabTextColor:{ref:"textColor",mix:.7},tabSelectedTextColor:{ref:"textColor"},tabHoverTextColor:{ref:"textColor"},tabSelectedBorderColor:{ref:"borderColor"},tabSelectedBackgroundColor:{ref:"backgroundColor"}}),css:F.tabStyleBaseCSS}),x.tabStyleMaterial=(0,M.createPart)({feature:"tabStyle",params:et(pe({},f),{tabBarBackgroundColor:{ref:"chromeBackgroundColor"},tabSelectedUnderlineColor:{ref:"primaryColor"},tabSelectedUnderlineWidth:2,tabSelectedUnderlineTransitionDuration:0}),css:F.tabStyleBaseCSS}),x.tabStyleAlpine=(0,M.createPart)({feature:"tabStyle",params:et(pe({},f),{tabBarBorder:!0,tabBarBackgroundColor:{ref:"chromeBackgroundColor"},tabHoverTextColor:A.accentColor,tabSelectedTextColor:A.accentColor,tabSelectedUnderlineColor:A.accentColor,tabSelectedUnderlineWidth:2,tabSelectedUnderlineTransitionDuration:"0.3s"}),css:F.tabStyleBaseCSS}),x.tabStyleRolodex=(0,M.createPart)({feature:"tabStyle",params:et(pe({},f),{tabBarBackgroundColor:{ref:"chromeBackgroundColor"},tabBarHorizontalPadding:{ref:"spacing"},tabBarTopPadding:{ref:"spacing"},tabBarBorder:!0,tabHorizontalPadding:{calc:"spacing * 2"},tabTopPadding:{ref:"spacing"},tabBottomPadding:{ref:"spacing"},tabSpacing:{ref:"spacing"},tabSelectedBorderColor:{ref:"borderColor"},tabSelectedBackgroundColor:{ref:"backgroundColor"}}),css:()=>F.tabStyleBaseCSS+D.tabStyleRolodexCSS})},2525:function(ne,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.themeBalham=x.themeAlpine=x.themeQuartz=void 0;let M=p(9621),A=p(7845),F=p(8265),D=p(8689),f=p(6407),v=p(7161),u=p(5117);x.themeQuartz=(0,M.createTheme)().withPart(F.checkboxStyleDefault).withPart(D.colorSchemeVariable).withPart(f.iconSetQuartzRegular).withPart(u.tabStyleQuartz).withPart(()=>v.inputStyleBordered).withParams({fontFamily:[{googleFont:"IBM Plex Sans"},"-apple-system","BlinkMacSystemFont","Segoe UI","Roboto","Oxygen-Sans","Ubuntu"]}),x.themeAlpine=(0,M.createTheme)().withPart(F.checkboxStyleDefault).withPart(D.colorSchemeVariable).withPart(f.iconSetAlpine).withPart(u.tabStyleAlpine).withPart(v.inputStyleBordered).withParams({accentColor:"#2196f3",selectedRowBackgroundColor:(0,A.accentMix)(.3),inputFocusBorder:{color:(0,A.accentMix)(.4)},fontSize:13,dataFontSize:14,headerFontWeight:700,borderRadius:3,wrapperBorderRadius:3,tabSelectedUnderlineColor:A.accentColor,tabSelectedBorderWidth:2,tabSelectedUnderlineTransitionDuration:.3}),x.themeBalham=(0,M.createTheme)().withPart(F.checkboxStyleDefault).withPart(D.colorSchemeVariable).withPart(f.iconSetAlpine).withPart(u.tabStyleRolodex).withPart(v.inputStyleBordered).withParams({spacing:4,borderRadius:2,wrapperBorderRadius:2,headerColumnResizeHandleColor:"transparent",headerColumnBorder:!0,headerColumnBorderHeight:"50%",oddRowBackgroundColor:{ref:"chromeBackgroundColor",mix:.5},headerTextColor:(0,A.foregroundMix)(.5),fontSize:12,headerFontWeight:"bold"})},113:function(ne,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.paramValueToCss=x.durationValueToCss=x.imageValueToCss=x.fontWeightValueToCss=x.fontFamilyValueToCss=x.borderStyleValueToCss=x.shadowValueToCss=x.borderValueToCss=x.scaleValueToCss=x.lengthValueToCss=x.colorSchemeValueToCss=x.colorValueToCss=x.getParamType=void 0;let M=p(7764),A=p(7845),F=["colorScheme","color","length","scale","borderStyle","border","shadow","image","fontFamily","fontWeight","duration"];x.getParamType=(0,A.memoize)(u=>{var s;return u=u.toLowerCase(),(s=F.find(r=>u.endsWith(r.toLowerCase())))!=null?s:"length"});let D=u=>typeof u=="string"?u:typeof u=="number"&&String(u);x.colorValueToCss=u=>{if(typeof u=="string")return u;if(u&&"ref"in u){let s=(0,A.paramToVariableExpression)(u.ref);return u.mix==null?s:`color-mix(in srgb, ${u.onto?(0,A.paramToVariableExpression)(u.onto):"transparent"}, ${s} ${(0,A.clamp)(100*u.mix,0,100)}%)`}return!1},x.colorSchemeValueToCss=D,x.lengthValueToCss=u=>typeof u=="string"?u:typeof u=="number"?`${u}px`:u&&"calc"in u?`calc(${u.calc.replace(/ ?[*/+] ?/g," $& ").replace(/-?[a-z][a-z0-9]*\b(?![-(])/gi,s=>s[0]==="-"?s:` ${(0,A.paramToVariableExpression)(s)} `)})`:!(!u||!("ref"in u))&&(0,A.paramToVariableExpression)(u.ref),x.scaleValueToCss=D,x.borderValueToCss=(u,s)=>{var r,d,g;return typeof u=="string"?u:u===!0?"solid 1px var(--ag-border-color)":u===!1?s==="columnBorder"?"solid 1px transparent":"none":u&&"ref"in u?(0,A.paramToVariableExpression)(u.ref):(0,x.borderStyleValueToCss)((r=u.style)!=null?r:"solid")+" "+(0,x.lengthValueToCss)((d=u.width)!=null?d:1)+" "+(0,x.colorValueToCss)((g=u.color)!=null?g:{ref:"borderColor"})},x.shadowValueToCss=u=>{var s,r,d,g,m;return typeof u=="string"?u:u===!1?"none":u&&"ref"in u?(0,A.paramToVariableExpression)(u.ref):[(0,x.lengthValueToCss)((s=u.offsetX)!=null?s:0),(0,x.lengthValueToCss)((r=u.offsetY)!=null?r:0),(0,x.lengthValueToCss)((d=u.radius)!=null?d:0),(0,x.lengthValueToCss)((g=u.spread)!=null?g:0),(0,x.colorValueToCss)((m=u.color)!=null?m:{ref:"foregroundColor"})].join(" ")},x.borderStyleValueToCss=D,x.fontFamilyValueToCss=u=>typeof u=="string"?f(u):u&&"googleFont"in u?(0,x.fontFamilyValueToCss)(u.googleFont):u&&"ref"in u?(0,A.paramToVariableExpression)(u.ref):!!Array.isArray(u)&&u.map(s=>(typeof s=="object"&&"googleFont"in s&&(s=s.googleFont),f(s))).join(", ");let f=u=>/^[\w-]+$/.test(u)?u:JSON.stringify(u);x.fontWeightValueToCss=D,x.imageValueToCss=u=>typeof u=="string"?u:u&&"url"in u?`url(${JSON.stringify(u.url)})`:u&&"svg"in u?(0,x.imageValueToCss)({url:`data:image/svg+xml,${encodeURIComponent(u.svg)}`}):!(!u||!("ref"in u))&&(0,A.paramToVariableExpression)(u.ref),x.durationValueToCss=(u,s)=>typeof u=="string"?u:typeof u=="number"?(u>=10&&(0,M._error)(104,{value:u,param:s}),`${u}s`):!(!u||!("ref"in u))&&(0,A.paramToVariableExpression)(u.ref);let v={color:x.colorValueToCss,colorScheme:x.colorSchemeValueToCss,length:x.lengthValueToCss,scale:x.scaleValueToCss,border:x.borderValueToCss,borderStyle:x.borderStyleValueToCss,shadow:x.shadowValueToCss,image:x.imageValueToCss,fontFamily:x.fontFamilyValueToCss,fontWeight:x.fontWeightValueToCss,duration:x.durationValueToCss};x.paramValueToCss=(u,s)=>{let r=(0,x.getParamType)(u);return v[r](s,u)}},7845:function(ne,x){Object.defineProperty(x,"__esModule",{value:!0}),x.accentColor=x.foregroundColor=x.foregroundBackgroundMix=x.foregroundMix=x.accentMix=x.memoize=x.logErrorMessage=x.clamp=x.paramToVariableExpression=x.paramToVariableName=x.kebabCase=void 0,x.kebabCase=p=>p.replace(/[A-Z]/g,M=>`-${M}`).toLowerCase(),x.paramToVariableName=p=>`--ag-${(0,x.kebabCase)(p)}`,x.paramToVariableExpression=p=>`var(${(0,x.paramToVariableName)(p)})`,x.clamp=(p,M,A)=>Math.max(M,Math.min(A,p)),x.logErrorMessage=(p,M)=>{M?console.error(p,M):console.error(p)},x.memoize=p=>{let M=new Map;return A=>{let F=A;return M.has(F)||M.set(F,p(A)),M.get(F)}},x.accentMix=p=>({ref:"accentColor",mix:p}),x.foregroundMix=p=>({ref:"foregroundColor",mix:p}),x.foregroundBackgroundMix=p=>({ref:"foregroundColor",mix:p,onto:"backgroundColor"}),x.foregroundColor={ref:"foregroundColor"},x.accentColor={ref:"accentColor"}},8927:function(ne,x){Object.defineProperty(x,"__esModule",{value:!0}),x.tooltipCSS=void 0,x.tooltipCSS=".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);white-space:normal}.ag-tooltip,.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}}"},243:function(ne,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.TooltipComponent=void 0;let M=p(7766),A=p(3598);class F extends A.PopupComponent{constructor(){super('<div class="ag-tooltip"></div>')}init(f){let{value:v}=f;this.getGui().textContent=(0,M._escapeString)(v,!0)}}x.TooltipComponent=F},3386:function(ne,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.TooltipFeature=x._shouldDisplayTooltip=x._getShouldDisplayTooltip=x._isShowTooltipWhenTruncated=void 0;let M=p(8731),A=p(3430);function F(v){return v.get("tooltipShowMode")==="whenTruncated"}function D(v){return()=>{let u=v();return!u||u.scrollWidth>u.clientWidth}}x._isShowTooltipWhenTruncated=F,x._getShouldDisplayTooltip=function(v,u){return F(v)?D(u):void 0},x._shouldDisplayTooltip=D;class f extends M.BeanStub{constructor(u,s){super(),this.ctrl=u,s&&(this.beans=s)}postConstruct(){this.refreshTooltip()}setBrowserTooltip(u){let s="title",r=this.ctrl.getGui();r&&(u!=null&&u!=""?r.setAttribute(s,u):r.removeAttribute(s))}updateTooltipText(){let{getTooltipValue:u}=this.ctrl;u&&(this.tooltip=u())}createTooltipFeatureIfNeeded(){this.tooltipManager==null&&(this.tooltipManager=this.createBean(new A.TooltipStateManager(this.ctrl,()=>this.tooltip),this.beans.context))}setTooltipAndRefresh(u){this.tooltip=u,this.refreshTooltip()}refreshTooltip(){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(null),this.createTooltipFeatureIfNeeded())}destroy(){this.tooltipManager=this.destroyBean(this.tooltipManager,this.beans.context),super.destroy()}}x.TooltipFeature=f},4658:function(ne,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.TooltipModule=void 0;let M=p(7205),A=p(3137),F=p(8927),D=p(243),f=p(3386),v=p(7931);x.TooltipModule={moduleName:"Tooltip",version:M.VERSION,beans:[v.TooltipService],dynamicBeans:{tooltipFeature:f.TooltipFeature},userComponents:{agTooltipComponent:D.TooltipComponent},dependsOn:[A.PopupModule],css:[F.tooltipCSS]}},7931:function(ne,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.TooltipService=void 0;let M=p(8731),A=p(4422),F=p(6996),D=p(3386);class f extends M.BeanStub{constructor(){super(...arguments),this.beanName="tooltipSvc"}setupHeaderTooltip(u,s,r,d){u&&s.destroyBean(u);let g=(0,D._isShowTooltipWhenTruncated)(this.gos),{column:m,eGui:b}=s,w=m.getColDef();d||!g||w.headerComponent||(d=(0,D._shouldDisplayTooltip)(()=>b.querySelector(".ag-header-cell-text")));let k={getColumn:()=>m,getColDef:()=>m.getColDef(),getGui:()=>b,getLocation:()=>"header",getTooltipValue:()=>r!=null?r:m.getColDef().headerTooltip,shouldDisplayTooltip:d},R=this.createTooltipFeature(k);return R&&(R=s.createBean(R),s.setRefreshFunction("tooltip",()=>R.refreshTooltip())),R}setupHeaderGroupTooltip(u,s,r,d){u&&s.destroyBean(u);let g=(0,D._isShowTooltipWhenTruncated)(this.gos),{column:m,eGui:b}=s,w=m.getColGroupDef();d||!g||w!=null&&w.headerGroupComponent||(d=(0,D._shouldDisplayTooltip)(()=>b.querySelector(".ag-header-group-text")));let k={getColumn:()=>m,getGui:()=>b,getLocation:()=>"headerGroup",getTooltipValue:()=>r!=null?r:w&&w.headerTooltip,shouldDisplayTooltip:d};w&&(k.getColDef=()=>w);let R=this.createTooltipFeature(k);return R&&s.createBean(R)}enableCellTooltipFeature(u,s,r){let{column:d,rowNode:g}=u,m=(0,D._isShowTooltipWhenTruncated)(this.gos);r||!m||u.isCellRenderer()||(r=(0,D._shouldDisplayTooltip)(()=>{let{eGui:w}=u;return w.children.length===0?w:w.querySelector(".ag-cell-value")}));let b={getColumn:()=>d,getColDef:()=>d.getColDef(),getRowIndex:()=>u.cellPosition.rowIndex,getRowNode:()=>g,getGui:()=>u.eGui,getLocation:()=>"cell",getTooltipValue:s!=null?()=>s:()=>{let w=d.getColDef(),k=g.data;if(w.tooltipField&&(0,A._exists)(k))return(0,F._getValueUsingField)(k,w.tooltipField,d.isTooltipFieldContainsDots());let R=w.tooltipValueGetter;return R?R(this.gos.addGridCommonParams({location:"cell",colDef:d.getColDef(),column:d,rowIndex:u.cellPosition.rowIndex,node:g,data:g.data,value:u.value,valueFormatted:u.valueFormatted})):null},getValueFormatted:()=>u.valueFormatted,shouldDisplayTooltip:r};return this.createTooltipFeature(b,this.beans)}refreshRowTooltip(u,s,r,d){let g={getGui:()=>s.getFullWidthElement(),getTooltipValue:()=>r,getLocation:()=>"fullWidthRow",shouldDisplayTooltip:d},m=this.beans,b=m.context;u&&s.destroyBean(u,b);let w=this.createTooltipFeature(g,m);return s.createBean(w,b)}initCol(u){let{colDef:s}=u;u.tooltipEnabled=(0,A._exists)(s.tooltipField)||(0,A._exists)(s.tooltipValueGetter)||(0,A._exists)(s.tooltipComponent)}createTooltipFeature(u,s){return this.beans.registry.createDynamicBean("tooltipFeature",!1,u,s)}}x.TooltipService=f},3430:function(ne,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.TooltipStateManager=void 0;let M=p(2036),A=p(8731),F=p(7274),D=p(8667),f=p(4422);var v,u;(function(g){g[g.NOTHING=0]="NOTHING",g[g.WAITING_TO_SHOW=1]="WAITING_TO_SHOW",g[g.SHOWING=2]="SHOWING"})(v||(v={})),function(g){g[g.HOVER=0]="HOVER",g[g.FOCUS=1]="FOCUS"}(u||(u={}));let s,r=!1;class d extends A.BeanStub{wireBeans(m){this.popupSvc=m.popupSvc,this.userCompFactory=m.userCompFactory}constructor(m,b){super(),this.tooltipCtrl=m,this.getTooltipValue=b,this.interactionEnabled=!1,this.isInteractingWithTooltip=!1,this.state=v.NOTHING,this.tooltipInstanceCount=0,this.tooltipMouseTrack=!1}postConstruct(){this.gos.get("tooltipInteraction")&&(this.interactionEnabled=!0),this.tooltipTrigger=this.getTooltipTrigger(),this.tooltipMouseTrack=this.gos.get("tooltipMouseTrack");let m=this.tooltipCtrl.getGui();this.tooltipTrigger===u.HOVER&&this.addManagedListeners(m,{mouseenter:this.onMouseEnter.bind(this),mouseleave:this.onMouseLeave.bind(this)}),this.tooltipTrigger===u.FOCUS&&this.addManagedListeners(m,{focusin:this.onFocusIn.bind(this),focusout:this.onFocusOut.bind(this)}),this.addManagedListeners(m,{mousemove:this.onMouseMove.bind(this)}),this.interactionEnabled||this.addManagedListeners(m,{mousedown:this.onMouseDown.bind(this),keydown:this.onKeyDown.bind(this)})}getGridOptionsTooltipDelay(m){let b=this.gos.get(m);return Math.max(200,b)}getTooltipDelay(m){var b,w,k,R,T,z;return m==="show"?(k=(w=(b=this.tooltipCtrl).getTooltipShowDelayOverride)==null?void 0:w.call(b))!=null?k:this.getGridOptionsTooltipDelay("tooltipShowDelay"):(z=(T=(R=this.tooltipCtrl).getTooltipHideDelayOverride)==null?void 0:T.call(R))!=null?z:this.getGridOptionsTooltipDelay("tooltipHideDelay")}destroy(){this.setToDoNothing(),super.destroy()}getTooltipTrigger(){let m=this.gos.get("tooltipTrigger");return m&&m!=="hover"?u.FOCUS:u.HOVER}onMouseEnter(m){this.interactionEnabled&&this.interactiveTooltipTimeoutId&&(this.unlockService(),this.startHideTimeout()),(0,D._isIOSUserAgent)()||(r?this.showTooltipTimeoutId=window.setTimeout(()=>{this.prepareToShowTooltip(m)},100):this.prepareToShowTooltip(m))}onMouseMove(m){this.lastMouseEvent&&(this.lastMouseEvent=m),this.tooltipMouseTrack&&this.state===v.SHOWING&&this.tooltipComp&&this.positionTooltip()}onMouseDown(){this.setToDoNothing()}onMouseLeave(){this.interactionEnabled?this.lockService():this.setToDoNothing()}onFocusIn(){this.prepareToShowTooltip()}onFocusOut(m){var R;let b=m.relatedTarget,w=this.tooltipCtrl.getGui(),k=(R=this.tooltipComp)==null?void 0:R.getGui();this.isInteractingWithTooltip||w.contains(b)||this.interactionEnabled&&(k!=null&&k.contains(b))||this.setToDoNothing()}onKeyDown(){this.isInteractingWithTooltip&&(this.isInteractingWithTooltip=!1),this.setToDoNothing()}prepareToShowTooltip(m){if(this.state!=v.NOTHING||r)return;let b=0;m&&(b=this.isLastTooltipHiddenRecently()?200:this.getTooltipDelay("show")),this.lastMouseEvent=m||null,this.showTooltipTimeoutId=window.setTimeout(this.showTooltip.bind(this),b),this.state=v.WAITING_TO_SHOW}isLastTooltipHiddenRecently(){return new Date().getTime()-s<1e3}setToDoNothing(m){m||this.state!==v.SHOWING||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=v.NOTHING,this.lastMouseEvent=null}showTooltip(){var z,G,U,X,Q,oe,le,fe,ye;let m=this.getTooltipValue(),b=this.tooltipCtrl;if(!(0,f._exists)(m)||b.shouldDisplayTooltip&&!b.shouldDisplayTooltip())return void this.setToDoNothing();let w=(z=b.getRowNode)==null?void 0:z.call(b),k=pe({location:(U=(G=b.getLocation)==null?void 0:G.call(b))!=null?U:"UNKNOWN",colDef:(X=b.getColDef)==null?void 0:X.call(b),column:(Q=b.getColumn)==null?void 0:Q.call(b),rowIndex:(oe=b.getRowIndex)==null?void 0:oe.call(b),node:w,data:w==null?void 0:w.data,value:m,valueFormatted:(le=b.getValueFormatted)==null?void 0:le.call(b),hideTooltipCallback:()=>this.hideTooltip(!0)},(ye=(fe=b.getAdditionalParams)==null?void 0:fe.call(b))!=null?ye:{});this.state=v.SHOWING,this.tooltipInstanceCount++;let R=this.newTooltipComponentCallback.bind(this,this.tooltipInstanceCount),T=(0,M._getTooltipCompDetails)(this.userCompFactory,k);T==null||T.newAgStackInstance().then(R)}hideTooltip(m){!m&&this.isInteractingWithTooltip||(this.tooltipComp&&(this.destroyTooltipComp(),s=new Date().getTime()),this.eventSvc.dispatchEvent({type:"tooltipHide",parentGui:this.tooltipCtrl.getGui()}),m&&(this.isInteractingWithTooltip=!1),this.setToDoNothing(!0))}newTooltipComponentCallback(m,b){var T;if(this.state!==v.SHOWING||this.tooltipInstanceCount!==m)return void this.destroyBean(b);let w=b.getGui();this.tooltipComp=b,w.classList.contains("ag-tooltip")||w.classList.add("ag-tooltip-custom"),this.tooltipTrigger===u.HOVER&&w.classList.add("ag-tooltip-animate"),this.interactionEnabled&&w.classList.add("ag-tooltip-interactive");let k=this.getLocaleTextFunc(),R=(T=this.popupSvc)==null?void 0:T.addPopup({eChild:w,ariaLabel:k("ariaLabelTooltip","Tooltip")});if(R&&(this.tooltipPopupDestroyFunc=R.hideFunc),this.positionTooltip(),this.tooltipTrigger===u.FOCUS){let z=()=>this.setToDoNothing();[this.onBodyScrollEventCallback,this.onColumnMovedEventCallback]=this.addManagedEventListeners({bodyScroll:z,columnMoved:z})}this.interactionEnabled&&([this.tooltipMouseEnterListener,this.tooltipMouseLeaveListener]=this.addManagedElementListeners(w,{mouseenter:this.onTooltipMouseEnter.bind(this),mouseleave:this.onTooltipMouseLeave.bind(this)}),[this.onDocumentKeyDownCallback]=this.addManagedElementListeners((0,F._getDocument)(this.beans),{keydown:z=>{w.contains(z==null?void 0:z.target)||this.onKeyDown()}}),this.tooltipTrigger===u.FOCUS&&([this.tooltipFocusInListener,this.tooltipFocusOutListener]=this.addManagedElementListeners(w,{focusin:this.onTooltipFocusIn.bind(this),focusout:this.onTooltipFocusOut.bind(this)}))),this.eventSvc.dispatchEvent({type:"tooltipShow",tooltipGui:w,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(){var w;let m=(w=this.tooltipComp)==null?void 0:w.getGui(),b=(0,F._getActiveDomElement)(this.beans);return!!m&&m.contains(b)}onTooltipFocusOut(m){let b=this.tooltipCtrl.getGui();this.isTooltipFocused()||(this.isInteractingWithTooltip=!1,b.contains(m.relatedTarget)?this.startHideTimeout():this.hideTooltip())}positionTooltip(){var b,w;let m={type:"tooltip",ePopup:this.tooltipComp.getGui(),nudgeY:18,skipObserver:this.tooltipMouseTrack};this.lastMouseEvent?(b=this.popupSvc)==null||b.positionPopupUnderMouseEvent(et(pe({},m),{mouseEvent:this.lastMouseEvent})):(w=this.popupSvc)==null||w.positionPopupByComponent(et(pe({},m),{eventSource:this.tooltipCtrl.getGui(),position:"under",keepWithinBounds:!0,nudgeY:5}))}destroyTooltipComp(){this.tooltipComp.getGui().classList.add("ag-tooltip-hiding");let m=this.tooltipPopupDestroyFunc,b=this.tooltipComp,w=this.tooltipTrigger===u.HOVER?1e3:0;window.setTimeout(()=>{m(),this.destroyBean(b)},w),this.clearTooltipListeners(),this.tooltipPopupDestroyFunc=void 0,this.tooltipComp=void 0}clearTooltipListeners(){[this.tooltipMouseEnterListener,this.tooltipMouseLeaveListener,this.tooltipFocusInListener,this.tooltipFocusOutListener].forEach(m=>{m&&m()}),this.tooltipMouseEnterListener=this.tooltipMouseLeaveListener=this.tooltipFocusInListener=this.tooltipFocusOutListener=null}lockService(){r=!0,this.interactiveTooltipTimeoutId=window.setTimeout(()=>{this.unlockService(),this.setToDoNothing()},100)}unlockService(){r=!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()}}x.TooltipStateManager=d},7113:function(ne,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.UndoRedoService=void 0;let M=p(8731),A=p(6257),F=p(7274),D=p(2410);class f extends M.BeanStub{constructor(){super(...arguments),this.beanName="undoRedo",this.cellValueChanges=[],this.activeCellEdit=null,this.activeRowEdit=null,this.isPasting=!1,this.isRangeInAction=!1,this.onCellValueChanged=u=>{let s={column:u.column,rowIndex:u.rowIndex,rowPinned:u.rowPinned},r=this.activeCellEdit!==null&&(0,A._areCellsEqual)(this.activeCellEdit,s),d=this.activeRowEdit!==null&&(0,A._isSameRow)(this.activeRowEdit,s);if(!(r||d||this.isPasting||this.isRangeInAction))return;let{rowPinned:g,rowIndex:m,column:b,oldValue:w,value:k}=u,R={rowPinned:g,rowIndex:m,columnId:b.getColId(),newValue:k,oldValue:w};this.cellValueChanges.push(R)},this.clearStacks=()=>{this.undoStack.clear(),this.redoStack.clear()}}postConstruct(){let{gos:u,ctrlsSvc:s}=this.beans;if(!u.get("undoRedoCellEditing"))return;let r=u.get("undoRedoCellEditingLimit");if(r<=0)return;this.undoStack=new D.UndoRedoStack(r),this.redoStack=new D.UndoRedoStack(r),this.addListeners();let d=this.clearStacks.bind(this);this.addManagedEventListeners({cellValueChanged:this.onCellValueChanged.bind(this),modelUpdated:g=>{g.keepUndoRedoStack||this.clearStacks()},columnPivotModeChanged:d,newColumnsLoaded:d,columnGroupOpened:d,columnRowGroupChanged:d,columnMoved:d,columnPinned:d,columnVisible:d,rowDragEnd:d}),s.whenReady(this,g=>{this.gridBodyCtrl=g.gridBodyCtrl})}getCurrentUndoStackSize(){var u,s;return(s=(u=this.undoStack)==null?void 0:u.getCurrentStackSize())!=null?s:0}getCurrentRedoStackSize(){var u,s;return(s=(u=this.redoStack)==null?void 0:u.getCurrentStackSize())!=null?s:0}undo(u){let{eventSvc:s,undoStack:r,redoStack:d}=this;s.dispatchEvent({type:"undoStarted",source:u});let g=this.undoRedo(r,d,"initialRange","oldValue","undo");s.dispatchEvent({type:"undoEnded",source:u,operationPerformed:g})}redo(u){let{eventSvc:s,undoStack:r,redoStack:d}=this;s.dispatchEvent({type:"redoStarted",source:u});let g=this.undoRedo(d,r,"finalRange","newValue","redo");s.dispatchEvent({type:"redoEnded",source:u,operationPerformed:g})}undoRedo(u,s,r,d,g){if(!u)return!1;let m=u.pop();return!(!m||!m.cellValueChanges)&&(this.processAction(m,b=>b[d],g),m instanceof D.RangeUndoRedoAction?this.processRange(m.ranges||[m[r]]):this.processCell(m.cellValueChanges),s.push(m),!0)}processAction(u,s,r){u.cellValueChanges.forEach(d=>{let{rowIndex:g,rowPinned:m,columnId:b}=d,w={rowIndex:g,rowPinned:m},k=(0,A._getRowNode)(this.beans,w);k.displayed&&k.setDataValue(b,s(d),r)})}processRange(u){let s,r=this.beans.rangeSvc;r.removeAllCellRanges(!0),u.forEach((d,g)=>{if(!d)return;let m=d.startRow,b=d.endRow;g===u.length-1&&(s={rowPinned:m.rowPinned,rowIndex:m.rowIndex,columnId:d.startColumn.getColId()},this.setLastFocusedCell(s));let w={rowStartIndex:m.rowIndex,rowStartPinned:m.rowPinned,rowEndIndex:b.rowIndex,rowEndPinned:b.rowPinned,columnStart:d.startColumn,columns:d.columns};r.addCellRange(w)})}processCell(u){let s=u[0],{rowIndex:r,rowPinned:d}=s,g={rowIndex:r,rowPinned:d},m=(0,A._getRowNode)(this.beans,g),b={rowPinned:s.rowPinned,rowIndex:m.rowIndex,columnId:s.columnId};this.setLastFocusedCell(b)}setLastFocusedCell(u){let{rowIndex:s,columnId:r,rowPinned:d}=u,{colModel:g,focusSvc:m,rangeSvc:b}=this.beans,w=g.getCol(r);if(!w)return;let{scrollFeature:k}=this.gridBodyCtrl;k.ensureIndexVisible(s),k.ensureColumnVisible(w);let R={rowIndex:s,column:w,rowPinned:d};m.setFocusedCell(et(pe({},R),{forceBrowserFocus:!0})),b==null||b.setRangeToCell(R)}addListeners(){this.addManagedEventListeners({rowEditingStarted:u=>{this.activeRowEdit={rowIndex:u.rowIndex,rowPinned:u.rowPinned}},rowEditingStopped:()=>{let u=new D.UndoRedoAction(this.cellValueChanges);this.pushActionsToUndoStack(u),this.activeRowEdit=null},cellEditingStarted:u=>{this.activeCellEdit={column:u.column,rowIndex:u.rowIndex,rowPinned:u.rowPinned}},cellEditingStopped:u=>{if(this.activeCellEdit=null,u.valueChanged&&!this.activeRowEdit&&!this.isPasting&&!this.isRangeInAction){let s=new D.UndoRedoAction(this.cellValueChanges);this.pushActionsToUndoStack(s)}},pasteStart:()=>{this.isPasting=!0},pasteEnd:()=>{let u=new D.UndoRedoAction(this.cellValueChanges);this.pushActionsToUndoStack(u),this.isPasting=!1},fillStart:()=>{this.isRangeInAction=!0},fillEnd:u=>{let s=new D.RangeUndoRedoAction(this.cellValueChanges,u.initialRange,u.finalRange);this.pushActionsToUndoStack(s),this.isRangeInAction=!1},keyShortcutChangedCellStart:()=>{this.isRangeInAction=!0},keyShortcutChangedCellEnd:()=>{let u,{rangeSvc:s,gos:r}=this.beans;u=s&&(0,F._isCellSelectionEnabled)(r)?new D.RangeUndoRedoAction(this.cellValueChanges,void 0,void 0,[...s.getCellRanges()]):new D.UndoRedoAction(this.cellValueChanges),this.pushActionsToUndoStack(u),this.isRangeInAction=!1}})}pushActionsToUndoStack(u){this.undoStack.push(u),this.cellValueChanges=[],this.redoStack.clear()}}x.UndoRedoService=f},2410:function(ne,x){Object.defineProperty(x,"__esModule",{value:!0}),x.UndoRedoStack=x.RangeUndoRedoAction=x.UndoRedoAction=void 0;class p{constructor(A){this.cellValueChanges=A}}x.UndoRedoAction=p,x.RangeUndoRedoAction=class extends p{constructor(M,A,F,D){super(M),this.initialRange=A,this.finalRange=F,this.ranges=D}},x.UndoRedoStack=class{constructor(M){this.actionStack=[],this.maxStackSize=M||10,this.actionStack=new Array(this.maxStackSize)}pop(){return this.actionStack.pop()}push(M){M.cellValueChanges&&M.cellValueChanges.length>0&&(this.actionStack.length===this.maxStackSize&&this.actionStack.shift(),this.actionStack.push(M))}clear(){this.actionStack=[]}getCurrentStackSize(){return this.actionStack.length}}},5230:function(ne,x){function p(f,v,u){u==null||typeof u=="string"&&u==""?A(f,v):M(f,v,u)}function M(f,v,u){f.setAttribute(F(v),u.toString())}function A(f,v){f.removeAttribute(F(v))}function F(f){return`aria-${f}`}function D(f,v){p(f,"labelledby",v)}Object.defineProperty(x,"__esModule",{value:!0}),x._getAriaCheckboxStateName=x._setAriaControls=x._setAriaChecked=x._setAriaSelected=x._removeAriaSort=x._setAriaSort=x._setAriaColSpan=x._setAriaColIndex=x._setAriaColCount=x._setAriaRowIndex=x._setAriaRowCount=x._setAriaMultiSelectable=x._setAriaPosInSet=x._setAriaSetSize=x._removeAriaExpanded=x._setAriaExpanded=x._setAriaActiveDescendant=x._setAriaHidden=x._setAriaDisabled=x._setAriaLevel=x._setAriaRelevant=x._setAriaAtomic=x._setAriaLive=x._setAriaDescribedBy=x._setAriaLabelledBy=x._setAriaLabel=x._getAriaLabel=x._getAriaPosInSet=x._getAriaLevel=x._getAriaSortState=x._setAriaRole=void 0,x._setAriaRole=function(f,v){v?f.setAttribute("role",v):f.removeAttribute("role")},x._getAriaSortState=function(f){let v;return v=f==="asc"?"ascending":f==="desc"?"descending":f==="mixed"?"other":"none",v},x._getAriaLevel=function(f){return parseInt(f.getAttribute("aria-level"),10)},x._getAriaPosInSet=function(f){return parseInt(f.getAttribute("aria-posinset"),10)},x._getAriaLabel=function(f){return f.getAttribute("aria-label")},x._setAriaLabel=function(f,v){p(f,"label",v)},x._setAriaLabelledBy=D,x._setAriaDescribedBy=function(f,v){p(f,"describedby",v)},x._setAriaLive=function(f,v){p(f,"live",v)},x._setAriaAtomic=function(f,v){p(f,"atomic",v)},x._setAriaRelevant=function(f,v){p(f,"relevant",v)},x._setAriaLevel=function(f,v){p(f,"level",v)},x._setAriaDisabled=function(f,v){p(f,"disabled",v)},x._setAriaHidden=function(f,v){p(f,"hidden",v)},x._setAriaActiveDescendant=function(f,v){p(f,"activedescendant",v)},x._setAriaExpanded=function(f,v){M(f,"expanded",v)},x._removeAriaExpanded=function(f){A(f,"expanded")},x._setAriaSetSize=function(f,v){M(f,"setsize",v)},x._setAriaPosInSet=function(f,v){M(f,"posinset",v)},x._setAriaMultiSelectable=function(f,v){M(f,"multiselectable",v)},x._setAriaRowCount=function(f,v){M(f,"rowcount",v)},x._setAriaRowIndex=function(f,v){M(f,"rowindex",v)},x._setAriaColCount=function(f,v){M(f,"colcount",v)},x._setAriaColIndex=function(f,v){M(f,"colindex",v)},x._setAriaColSpan=function(f,v){M(f,"colspan",v)},x._setAriaSort=function(f,v){M(f,"sort",v)},x._removeAriaSort=function(f){A(f,"sort")},x._setAriaSelected=function(f,v){p(f,"selected",v)},x._setAriaChecked=function(f,v){M(f,"checked",v===void 0?"mixed":v)},x._setAriaControls=function(f,v){p(f,"controls",v.id),D(v,f.id)},x._getAriaCheckboxStateName=function(f,v){return v===void 0?f("ariaIndeterminate","indeterminate"):v===!0?f("ariaChecked","checked"):f("ariaUnchecked","unchecked")}},1502:function(ne,x){function p(M,A){let F=M.indexOf(A);F>=0&&M.splice(F,1)}Object.defineProperty(x,"__esModule",{value:!0}),x._moveInArray=x._removeFromArray=x._sortNumerically=x._areEqual=x._last=x._EmptyArray=void 0,x._EmptyArray=Object.freeze([]),x._last=function(M){if(M!=null&&M.length)return M[M.length-1]},x._areEqual=function(M,A,F){return M==null&&A==null||M!=null&&A!=null&&M.length===A.length&&M.every((D,f)=>F?F(D,A[f]):A[f]===D)},x._sortNumerically=function(M){return M.sort((A,F)=>A-F)},x._removeFromArray=p,x._moveInArray=function(M,A,F){for(let D=0;D<A.length;D++)p(M,A[D]);for(let D=A.length-1;D>=0;D--)M.splice(F,0,A[D])}},8667:function(ne,x){let p,M,A,F,D,f,v,u;function s(){return A===void 0&&(A=/(firefox)/i.test(navigator.userAgent)),A}function r(){let d=document.body,g=document.createElement("div");g.style.width=g.style.height="100px",g.style.opacity="0",g.style.overflow="scroll",g.style.msOverflowStyle="scrollbar",g.style.position="absolute",d.appendChild(g);let m=g.offsetWidth-g.clientWidth;m===0&&g.clientWidth===0&&(m=null),g.parentNode&&g.parentNode.removeChild(g),m!=null&&(v=m,f=m===0)}Object.defineProperty(x,"__esModule",{value:!0}),x._isInvisibleScrollbar=x._getScrollbarWidth=x._getMaxDivHeight=x._getTabIndex=x._isIOSUserAgent=x._isMacOsUserAgent=x._isBrowserFirefox=x._isBrowserChrome=x._isBrowserSafari=void 0,x._isBrowserSafari=function(){return p===void 0&&(p=/^((?!chrome|android).)*safari/i.test(navigator.userAgent)),p},x._isBrowserChrome=function(){if(M===void 0){let d=window;M=!!d.chrome&&(!!d.chrome.webstore||!!d.chrome.runtime)||/Chrome/.test(navigator.userAgent)&&/Google Inc/.test(navigator.vendor)}return M},x._isBrowserFirefox=s,x._isMacOsUserAgent=function(){return F===void 0&&(F=/(Mac|iPhone|iPod|iPad)/i.test(navigator.platform)),F},x._isIOSUserAgent=function(){return D===void 0&&(D=/iPad|iPhone|iPod/.test(navigator.platform)||navigator.platform==="MacIntel"&&navigator.maxTouchPoints>1),D},x._getTabIndex=function(d){if(!d)return null;let g=d.tabIndex,m=d.getAttribute("tabIndex");return g!==-1||m!==null&&(m!==""||s())?g.toString():null},x._getMaxDivHeight=function(){if(u!==void 0)return u;if(!document.body)return-1;let d=1e6,g=s()?6e6:1e9,m=document.createElement("div");for(document.body.appendChild(m);;){let b=2*d;if(m.style.height=b+"px",b>g||m.clientHeight!==b)break;d=b}return document.body.removeChild(m),u=d,d},x._getScrollbarWidth=function(){return v==null&&r(),v},x._isInvisibleScrollbar=function(){return f==null&&r(),f}},6800:function(ne,x){Object.defineProperty(x,"__esModule",{value:!0}),x.ChangedPath=void 0,x.ChangedPath=class{constructor(p,M){this.active=!0,this.nodeIdsToColumns={},this.mapToItems={},this.keepingColumns=p,this.pathRoot={rowNode:M,children:null},this.mapToItems[M.id]=this.pathRoot}depthFirstSearchChangedPath(p,M){let{rowNode:A,children:F}=p;if(F)for(let D=0;D<F.length;++D)this.depthFirstSearchChangedPath(F[D],M);M(A)}depthFirstSearchEverything(p,M,A){let F=p.childrenAfterGroup;if(F)for(let D=0,f=F.length;D<f;++D){let v=F[D];v.childrenAfterGroup?this.depthFirstSearchEverything(v,M,A):A&&M(v)}M(p)}forEachChangedNodeDepthFirst(p,M=!1,A=!1){this.active&&!A?this.depthFirstSearchChangedPath(this.pathRoot,p):this.depthFirstSearchEverything(this.pathRoot.rowNode,p,M)}executeFromRootNode(p){p(this.pathRoot.rowNode)}createPathItems(p){let M=p,A=0;for(;!this.mapToItems[M.id];){let F={rowNode:M,children:null};this.mapToItems[M.id]=F,A++,M=M.parent}return A}populateColumnsMap(p,M){if(!this.keepingColumns||!M)return;let A=p;for(;A;)this.nodeIdsToColumns[A.id]||(this.nodeIdsToColumns[A.id]={}),M.forEach(F=>this.nodeIdsToColumns[A.id][F.getId()]=!0),A=A.parent}linkPathItems(p,M){let A=p;for(let F=0;F<M;F++){let D=this.mapToItems[A.id],f=this.mapToItems[A.parent.id];f.children||(f.children=[]),f.children.push(D),A=A.parent}}addParentNode(p,M){if(!p||p.isRowPinned())return;let A=this.createPathItems(p);this.linkPathItems(p,A),this.populateColumnsMap(p,M)}canSkip(p){return this.active&&!this.mapToItems[p.id]}getValueColumnsForNode(p,M){if(!this.keepingColumns)return M;let A=this.nodeIdsToColumns[p.id];return M.filter(F=>A[F.getId()])}getNotValueColumnsForNode(p,M){if(!this.keepingColumns)return null;let A=this.nodeIdsToColumns[p.id];return M.filter(F=>!A[F.getId()])}}},9827:function(ne,x){function p(A,F){return A.toString().padStart(F,"0")}Object.defineProperty(x,"__esModule",{value:!0}),x._parseDateTimeFromString=x._dateToFormattedString=x._serialiseDate=void 0,x._serialiseDate=function(A,F=!0,D="-"){if(!A)return null;let f=[A.getFullYear(),A.getMonth()+1,A.getDate()].map(v=>p(v,2)).join(D);return F&&(f+=" "+[A.getHours(),A.getMinutes(),A.getSeconds()].map(v=>p(v,2)).join(":")),f};let M=A=>{if(A>3&&A<21)return"th";switch(A%10){case 1:return"st";case 2:return"nd";case 3:return"rd"}return"th"};x._dateToFormattedString=function(A,F="YYYY-MM-DD"){let D=p(A.getFullYear(),4),f=["January","February","March","April","May","June","July","August","September","October","November","December"],v=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],u={YYYY:()=>D.slice(D.length-4,D.length),YY:()=>D.slice(D.length-2,D.length),Y:()=>`${A.getFullYear()}`,MMMM:()=>f[A.getMonth()],MMM:()=>f[A.getMonth()].slice(0,3),MM:()=>p(A.getMonth()+1,2),Mo:()=>`${A.getMonth()+1}${M(A.getMonth()+1)}`,M:()=>`${A.getMonth()+1}`,Do:()=>`${A.getDate()}${M(A.getDate())}`,DD:()=>p(A.getDate(),2),D:()=>`${A.getDate()}`,dddd:()=>v[A.getDay()],ddd:()=>v[A.getDay()].slice(0,3),dd:()=>v[A.getDay()].slice(0,2),do:()=>`${A.getDay()}${M(A.getDay())}`,d:()=>`${A.getDay()}`},s=new RegExp(Object.keys(u).join("|"),"g");return F.replace(s,r=>r in u?u[r]():r)},x._parseDateTimeFromString=function(A){if(!A)return null;let[F,D]=A.split(" ");if(!F)return null;let f=F.split("-").map(b=>parseInt(b,10));if(f.filter(b=>!isNaN(b)).length!==3)return null;let[v,u,s]=f,r=new Date(v,u-1,s);if(r.getFullYear()!==v||r.getMonth()!==u-1||r.getDate()!==s)return null;if(!D||D==="00:00:00")return r;let[d,g,m]=D.split(":").map(b=>parseInt(b,10));return d>=0&&d<24&&r.setHours(d),g>=0&&g<60&&r.setMinutes(g),m>=0&&m<60&&r.setSeconds(m),r}},3507:function(ne,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x._observeResize=x._bindCellRendererToHtmlElement=x._nodeListForEach=x._addOrRemoveAttribute=x._iterateNamedNodeMap=x._copyNodeList=x._isNodeOrElement=x._formatSize=x._setFixedHeight=x._setElementHeight=x._setFixedWidth=x._setElementWidth=x._isVerticalScrollShowing=x._isHorizontalScrollShowing=x._addStylesToElement=x._insertWithDomOrder=x._setDomChildOrder=x._ensureDomOrder=x._loadTemplate=x._isVisible=x._isInDOM=x._removeFromParent=x._clearElement=x._setScrollLeft=x._getScrollLeft=x._isRtlNegativeScroll=x._getElementRectWithOffset=x._getAbsoluteWidth=x._getAbsoluteHeight=x._getInnerWidth=x._getInnerHeight=x._getElementSize=x._isElementChildOfClass=x._setDisabled=x._setVisible=x._setDisplayed=x._isFocusableFormField=x.FOCUSABLE_EXCLUDE=x.FOCUSABLE_SELECTOR=x._radioCssClass=void 0;let M=p(7274),A=p(5230),F=p(8667),D;function f(b){let{height:w,width:k,borderTopWidth:R,borderRightWidth:T,borderBottomWidth:z,borderLeftWidth:G,paddingTop:U,paddingRight:X,paddingBottom:Q,paddingLeft:oe,marginTop:le,marginRight:fe,marginBottom:ye,marginLeft:ke,boxSizing:Ie}=window.getComputedStyle(b);return{height:parseFloat(w||"0"),width:parseFloat(k||"0"),borderTopWidth:parseFloat(R||"0"),borderRightWidth:parseFloat(T||"0"),borderBottomWidth:parseFloat(z||"0"),borderLeftWidth:parseFloat(G||"0"),paddingTop:parseFloat(U||"0"),paddingRight:parseFloat(X||"0"),paddingBottom:parseFloat(Q||"0"),paddingLeft:parseFloat(oe||"0"),marginTop:parseFloat(le||"0"),marginRight:parseFloat(fe||"0"),marginBottom:parseFloat(ye||"0"),marginLeft:parseFloat(ke||"0"),boxSizing:Ie}}function v(){if(typeof D=="boolean")return D;let b=document.createElement("div");return b.style.direction="rtl",b.style.width="1px",b.style.height="1px",b.style.position="fixed",b.style.top="0px",b.style.overflow="hidden",b.dir="rtl",b.innerHTML=`<div style="width: 2px">
            <span style="display: inline-block; width: 1px"></span>
            <span style="display: inline-block; width: 1px"></span>
        </div>`,document.body.appendChild(b),b.scrollLeft=1,D=Math.floor(b.scrollLeft)===0,document.body.removeChild(b),D}function u(b){return!!b.offsetParent}function s(b){let w=b;return w.checkVisibility?w.checkVisibility({checkVisibilityCSS:!0}):!(!u(b)||window.getComputedStyle(b).visibility!=="visible")}function r(b,w){w=g(w),b.style.width=w.toString(),b.style.maxWidth=w.toString(),b.style.minWidth=w.toString()}function d(b,w){w=g(w),b.style.height=w.toString(),b.style.maxHeight=w.toString(),b.style.minHeight=w.toString()}function g(b){return typeof b=="number"?`${b}px`:b}function m(b,w){if(b!=null)for(let k=0;k<b.length;k++)w(b[k])}x._radioCssClass=function(b,w,k){let R=b.parentElement,T=R&&R.firstChild;for(;T;)w&&T.classList.toggle(w,T===b),k&&T.classList.toggle(k,T!==b),T=T.nextSibling},x.FOCUSABLE_SELECTOR="[tabindex], input, select, button, textarea, [href]",x.FOCUSABLE_EXCLUDE="[disabled], .ag-disabled:not(.ag-button), .ag-disabled *",x._isFocusableFormField=function(b){let w=Element.prototype.matches||Element.prototype.msMatchesSelector,k=w.call(b,"input, select, button, textarea"),R=w.call(b,x.FOCUSABLE_EXCLUDE),T=s(b);return k&&!R&&T},x._setDisplayed=function(b,w,k={}){let{skipAriaHidden:R}=k;b.classList.toggle("ag-hidden",!w),R||(0,A._setAriaHidden)(b,!w)},x._setVisible=function(b,w,k={}){let{skipAriaHidden:R}=k;b.classList.toggle("ag-invisible",!w),R||(0,A._setAriaHidden)(b,!w)},x._setDisabled=function(b,w){let k="disabled",R=w?T=>T.setAttribute(k,""):T=>T.removeAttribute(k);R(b),m(b.querySelectorAll("input"),T=>R(T))},x._isElementChildOfClass=function(b,w,k){let R=0;for(;b;){if(b.classList.contains(w))return!0;if(b=b.parentElement,typeof k=="number"){if(++R>k)break}else if(b===k)break}return!1},x._getElementSize=f,x._getInnerHeight=function(b){let w=f(b);return w.boxSizing==="border-box"?w.height-w.paddingTop-w.paddingBottom:w.height},x._getInnerWidth=function(b){let w=f(b);return w.boxSizing==="border-box"?w.width-w.paddingLeft-w.paddingRight:w.width},x._getAbsoluteHeight=function(b){let{height:w,marginBottom:k,marginTop:R}=f(b);return Math.floor(w+k+R)},x._getAbsoluteWidth=function(b){let{width:w,marginLeft:k,marginRight:R}=f(b);return Math.floor(w+k+R)},x._getElementRectWithOffset=function(b){let w=b.getBoundingClientRect(),{borderTopWidth:k,borderLeftWidth:R,borderRightWidth:T,borderBottomWidth:z}=f(b);return{top:w.top+(k||0),left:w.left+(R||0),right:w.right+(T||0),bottom:w.bottom+(z||0)}},x._isRtlNegativeScroll=v,x._getScrollLeft=function(b,w){let k=b.scrollLeft;return w&&(k=Math.abs(k),(0,F._isBrowserChrome)()&&!v()&&(k=b.scrollWidth-b.getBoundingClientRect().width-k)),k},x._setScrollLeft=function(b,w,k){k&&(v()?w*=-1:((0,F._isBrowserSafari)()||(0,F._isBrowserChrome)())&&(w=b.scrollWidth-b.getBoundingClientRect().width-w)),b.scrollLeft=w},x._clearElement=function(b){for(;b&&b.firstChild;)b.removeChild(b.firstChild)},x._removeFromParent=function(b){b&&b.parentNode&&b.parentNode.removeChild(b)},x._isInDOM=u,x._isVisible=s,x._loadTemplate=function(b){let w=document.createElement("div");return w.innerHTML=(b||"").trim(),w.firstChild},x._ensureDomOrder=function(b,w,k){k&&k.nextSibling===w||(k?k.nextSibling?b.insertBefore(w,k.nextSibling):b.appendChild(w):b.firstChild&&b.firstChild!==w&&b.insertAdjacentElement("afterbegin",w))},x._setDomChildOrder=function(b,w){for(let k=0;k<w.length;k++){let R=w[k],T=b.children[k];T!==R&&b.insertBefore(R,T)}},x._insertWithDomOrder=function(b,w,k){k?k.insertAdjacentElement("afterend",w):b.firstChild?b.insertAdjacentElement("afterbegin",w):b.appendChild(w)},x._addStylesToElement=function(b,w){if(w)for(let[k,R]of Object.entries(w)){if(!k||!k.length||R==null)continue;let T=k.replace(/[A-Z]/g,X=>`-${X.toLocaleLowerCase()}`),z=R.toString(),G=z.replace(/\s*!important/g,""),U=G.length!=z.length?"important":void 0;b.style.setProperty(T,G,U)}},x._isHorizontalScrollShowing=function(b){return b.clientWidth<b.scrollWidth},x._isVerticalScrollShowing=function(b){return b.clientHeight<b.scrollHeight},x._setElementWidth=function(b,w){w==="flex"?(b.style.removeProperty("width"),b.style.removeProperty("minWidth"),b.style.removeProperty("maxWidth"),b.style.flex="1 1 auto"):r(b,w)},x._setFixedWidth=r,x._setElementHeight=function(b,w){w==="flex"?(b.style.removeProperty("height"),b.style.removeProperty("minHeight"),b.style.removeProperty("maxHeight"),b.style.flex="1 1 auto"):d(b,w)},x._setFixedHeight=d,x._formatSize=g,x._isNodeOrElement=function(b){return b instanceof Node||b instanceof HTMLElement},x._copyNodeList=function(b){if(b==null)return[];let w=[];return m(b,k=>w.push(k)),w},x._iterateNamedNodeMap=function(b,w){if(b)for(let k=0;k<b.length;k++){let R=b[k];w(R.name,R.value)}},x._addOrRemoveAttribute=function(b,w,k){k==null||k===""?b.removeAttribute(w):b.setAttribute(w,k.toString())},x._nodeListForEach=m,x._bindCellRendererToHtmlElement=function(b,w){b.then(k=>{let R=k.getGui();R!=null&&(typeof R=="object"?w.appendChild(R):w.innerHTML=R)})},x._observeResize=function(b,w,k){let R=(0,M._getWindow)(b).ResizeObserver,T=R?new R(k):null;return T==null||T.observe(w),()=>T==null?void 0:T.disconnect()}},2979:function(ne,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.getPassiveStateForEvent=x._addSafePassiveEventListener=x._getEventPath=x._createEventPath=x._isElementInEventPath=x._getCtrlForEventTarget=x._isEventSupported=x._isStopPropagationForAgGrid=x._stopPropagationForAgGrid=void 0;let M=p(7274),A="__ag_Grid_Stop_Propagation",F=["touchstart","touchend","touchmove","touchcancel","scroll"],D=["wheel"],f={};function v(s){let r=[],d=s.target;for(;d;)r.push(d),d=d.parentElement;return r}function u(s){let r=s;return r.path?r.path:r.composedPath?r.composedPath():v(r)}x._stopPropagationForAgGrid=function(s){s[A]=!0},x._isStopPropagationForAgGrid=function(s){return s[A]===!0},x._isEventSupported=(()=>{let s={select:"input",change:"input",submit:"form",reset:"form",error:"img",load:"img",abort:"img"};return r=>{if(typeof f[r]=="boolean")return f[r];let d=document.createElement(s[r]||"div");return f[r="on"+r]=r in d}})(),x._getCtrlForEventTarget=function(s,r,d){let g=r;for(;g;){let m=(0,M._getDomData)(s,g,d);if(m)return m;g=g.parentElement}return null},x._isElementInEventPath=function(s,r){return!(!r||!s)&&u(r).indexOf(s)>=0},x._createEventPath=v,x._getEventPath=u,x._addSafePassiveEventListener=function(s,r,d,g){let m=(0,x.getPassiveStateForEvent)(d),b;m!=null&&(b={passive:m}),s&&s.addEventListener&&s.addEventListener(r,d,g,b)},x.getPassiveStateForEvent=s=>{let r=F.includes(s),d=D.includes(s);return!!r||!d&&void 0}},2331:function(ne,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x._focusNextGridCoreContainer=x._isCellFocusSuppressed=x._isHeaderFocusSuppressed=x._focusGridInnerElement=x._findTabbableParent=x._findNextFocusableElement=x._focusInto=x._findFocusableElements=x._addFocusableContainerListener=x._isKeyboardMode=x._registerKeyboardFocusEvents=void 0;let M=p(9853),A=p(7274),F=p(1502),D=p(8667),f=p(3507),v=!1,u=0;function s(m){let b=v,w=m.type==="keydown";w&&(m.ctrlKey||m.metaKey||m.altKey)||b!==w&&(v=w)}function r(m,b,w=!1){let k=f.FOCUSABLE_SELECTOR,R=f.FOCUSABLE_EXCLUDE;b&&(R+=", "+b),w&&(R+=', [tabindex="-1"]');let T=Array.prototype.slice.apply(m.querySelectorAll(k)).filter(U=>(0,f._isVisible)(U)),z=Array.prototype.slice.apply(m.querySelectorAll(R));if(!z.length)return T;return G=z,T.filter(U=>G.indexOf(U)===-1);var G}function d(m,b,w,k){let R=r(b,w?':not([tabindex="-1"])':null),T=(0,A._getActiveDomElement)(m),z;z=w?R.findIndex(U=>U.contains(T)):R.indexOf(T);let G=z+(k?-1:1);return G<0||G>=R.length?null:R[G]}function g(m,b,w=!1){let k=m.ctrlsSvc.get("gridCtrl");return!(w||!k.focusNextInnerContainer(b))||((w||!b&&!k.isDetailGrid())&&k.forceFocusOutOfContainer(b),!1)}x._registerKeyboardFocusEvents=function(m){let b=(0,A._getDocument)(m);var w;return w=b,u>0||(w.addEventListener("keydown",s),w.addEventListener("mousedown",s)),u++,()=>{u--,function(k){u>0||(k.removeEventListener("keydown",s),k.removeEventListener("mousedown",s))}(b)}},x._isKeyboardMode=function(){return v},x._addFocusableContainerListener=function(m,b,w){b.addManagedElementListeners(w,{keydown:k=>{if(!k.defaultPrevented&&k.key===M.KeyCode.TAB){let R=k.shiftKey;d(m,w,!1,R)||g(m,R)&&k.preventDefault()}}})},x._findFocusableElements=r,x._focusInto=function(m,b=!1,w=!1){let k=r(m,null,w),R=b?(0,F._last)(k):k[0];return!!R&&(R.focus({preventScroll:!0}),!0)},x._findNextFocusableElement=d,x._findTabbableParent=function(m,b=5){let w=0;for(;m&&(0,D._getTabIndex)(m)===null&&++w<=b;)m=m.parentElement;return(0,D._getTabIndex)(m)===null?null:m},x._focusGridInnerElement=function(m,b){return m.ctrlsSvc.get("gridCtrl").focusInnerElement(b)},x._isHeaderFocusSuppressed=function(m){var b;return m.gos.get("suppressHeaderFocus")||!!((b=m.overlays)!=null&&b.isExclusive())},x._isCellFocusSuppressed=function(m){var b;return m.gos.get("suppressCellFocus")||!!((b=m.overlays)!=null&&b.isExclusive())},x._focusNextGridCoreContainer=g},2043:function(ne,x){Object.defineProperty(x,"__esModule",{value:!0}),x._waitUntil=x._throttle=x._debounce=x._executeNextVMTurn=x._errorOnce=x._warnOnce=x._logIfDebug=x._doOnce=void 0;let p={};function M(f,v){p[v]||(f(),p[v]=!0)}function A(f,...v){M(()=>console.warn("AG Grid: "+f,...v),f+(v==null?void 0:v.join("")))}x._doOnce=M,x._logIfDebug=function(f,v,...u){f.get("debug")&&console.log("AG Grid: "+v,...u)},x._warnOnce=A,x._errorOnce=function(f,...v){M(()=>console.error("AG Grid: "+f,...v),f+(v==null?void 0:v.join("")))};let F=[],D=!1;x._executeNextVMTurn=function(f){F.push(f),D||(D=!0,window.setTimeout(()=>{let v=F.slice();F.length=0,D=!1,v.forEach(u=>u())},0))},x._debounce=function(f,v,u){let s;return function(...r){let d=this;window.clearTimeout(s),s=window.setTimeout(function(){f.isAlive()&&v.apply(d,r)},u)}},x._throttle=function(f,v){let u=0;return function(...s){let r=new Date().getTime();r-u<v||(u=r,f.apply(this,s))}},x._waitUntil=function(f,v,u=100,s){let r=new Date().getTime(),d=null,g=!1,m=()=>{let b=new Date().getTime()-r>u;(f()||b)&&(v(),g=!0,d!=null&&(window.clearInterval(d),d=null),b&&s&&A(s))};m(),g||(d=window.setInterval(m,10))}},1298:function(ne,x){function p(M,A,F=!1){let D=M.replace(/\s/g,""),f=A.replace(/\s/g,""),v=D.length,u=f.length,s=new Array(v+1).fill(null).map(()=>new Array(u+1).fill(0));for(let g=0;g<=v;g+=1)s[g][0]=g;for(let g=0;g<=u;g+=1)s[0][g]=g;for(let g=1;g<=v;g++)for(let m=1;m<=u;m++)D[g-1]===f[m-1]?s[g][m]=s[g-1][m-1]:s[g][m]=1+Math.min(s[g][m-1],Math.min(s[g-1][m],s[g-1][m-1]));let r=s[v][u],d=Math.max(v,u)-r;if(F){let g=function(m){let b=[],w=m.length;for(let k=1;k<=w;k++)for(let R=0;R<=w-k;R++){let T=R+k-1;b.push(m.slice(R,T+1))}return b}(D);for(let m=0;m<g.length;m++){let b=g[m];f.indexOf(b)!==-1&&(d+=1,d*=b.length)}}return d}Object.defineProperty(x,"__esModule",{value:!0}),x._fuzzySuggestions=void 0,x._fuzzySuggestions=function(M){let{inputValue:A,allSuggestions:F,hideIrrelevant:D,filterByPercentageOfBestMatch:f,addSequentialWeight:v}=M,u=F.map((d,g)=>({value:d,relevance:p(A.toLowerCase(),d.toLocaleLowerCase(),v),idx:g}));if(u.sort((d,g)=>g.relevance-d.relevance),D&&(u=u.filter(d=>d.relevance!==0)),u.length>0&&f&&f>0){let d=u[0].relevance*f;u=u.filter(g=>d-g.relevance<0)}let s=[],r=[];for(let d of u)s.push(d.value),r.push(d.idx);return{values:s,indices:r}}},4422:function(ne,x){function p(M){return M!=null&&M!==""}Object.defineProperty(x,"__esModule",{value:!0}),x._defaultComparator=x._jsonEquals=x._toStringOrNull=x._missing=x._exists=x._makeNull=void 0,x._makeNull=function(M){return M==null||M===""?null:M},x._exists=p,x._missing=function(M){return!p(M)},x._toStringOrNull=function(M){return M!=null&&typeof M.toString=="function"?M.toString():null},x._jsonEquals=function(M,A){return(M?JSON.stringify(M):null)===(A?JSON.stringify(A):null)},x._defaultComparator=function(M,A,F=!1){let D=M==null,f=A==null;if(M&&M.toNumber&&(M=M.toNumber()),A&&A.toNumber&&(A=A.toNumber()),D&&f)return 0;if(D)return-1;if(f)return 1;function v(u,s){return u>s?1:u<s?-1:0}if(typeof M!="string"||!F)return v(M,A);try{return M.localeCompare(A)}catch(u){return v(M,A)}}},9970:function(ne,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x._createIconNoSpan=x._createIcon=void 0;let M=p(7764),A=p(5230),F=p(3507);function D(f,v,u){var d;let s=null;f==="smallDown"?(0,M._warn)(262):f==="smallLeft"?(0,M._warn)(263):f==="smallRight"&&(0,M._warn)(264);let r=u&&u.getColDef().icons;if(r&&(s=r[f]),v.gos&&!s){let g=v.gos.get("icons");g&&(s=g[f])}if(s){let g;if(typeof s=="function")g=s();else{if(typeof s!="string")return void(0,M._warn)(38,{iconName:f});g=s}return typeof g=="string"?(0,F._loadTemplate)(g):(0,F._isNodeOrElement)(g)?g:void(0,M._warn)(133,{iconName:f})}{let g=document.createElement("span"),m=v.registry.getIcon(f);m||((d=v.validation)==null||d.validateIcon(f));let b=m!=null?m:f;return g.setAttribute("class",`ag-icon ag-icon-${b}`),g.setAttribute("unselectable","on"),(0,A._setAriaRole)(g,"presentation"),g}}x._createIcon=function(f,v,u){let s=D(f,v,u);if(s){let{className:d}=s;if(typeof d=="string"&&d.indexOf("ag-icon")>-1||typeof d=="object"&&d["ag-icon"])return s}let r=document.createElement("span");return r.appendChild(s),r},x._createIconNoSpan=D},6466:function(ne,x){Object.defineProperty(x,"__esModule",{value:!0}),x._isUserSuppressingKeyboardEvent=x._isEventFromPrintableCharacter=void 0,x._isEventFromPrintableCharacter=function(p){var M;return!(p.altKey||p.ctrlKey||p.metaKey)&&((M=p.key)==null?void 0:M.length)===1},x._isUserSuppressingKeyboardEvent=function(p,M,A,F,D){let f=F?F.getColDef().suppressKeyboardEvent:void 0;if(!f)return!1;let v=p.addGridCommonParams({event:M,editing:D,column:F,node:A,data:A.data,colDef:F.getColDef()});return!!(f&&f(v))}},3276:function(ne,x){Object.defineProperty(x,"__esModule",{value:!0}),x._areEventsNear=void 0,x._areEventsNear=function(p,M,A){if(A===0)return!1;let F=Math.abs(p.clientX-M.clientX),D=Math.abs(p.clientY-M.clientY);return Math.max(F,D)<=A}},7698:function(ne,x){Object.defineProperty(x,"__esModule",{value:!0}),x._formatNumberCommas=void 0,x._formatNumberCommas=function(p,M){if(typeof p!="number")return"";let A=M(),F=A("thousandSeparator",","),D=A("decimalSeparator",".");return p.toString().replace(".",D).replace(/(\d)(?=(\d{3})+(?!\d))/g,`$1${F}`)}},6996:function(ne,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x._getValueUsingField=x._mergeDeep=x.SKIP_JS_BUILTINS=void 0;let M=p(4422);function A(F){return typeof F=="object"&&F!==null}x.SKIP_JS_BUILTINS=new Set(["__proto__","constructor","prototype"]),x._mergeDeep=function F(D,f,v=!0,u=!1){(0,M._exists)(f)&&function(s,r){if(s!=null)if(Array.isArray(s))for(let d=0;d<s.length;d++)r(d.toString(),s[d]);else for(let[d,g]of Object.entries(s))r(d,g)}(f,(s,r)=>{if(x.SKIP_JS_BUILTINS.has(s))return;let d=D[s];d!==r&&(u&&d==null&&r!=null&&typeof r=="object"&&r.constructor===Object&&(d={},D[s]=d),A(r)&&A(d)&&!Array.isArray(d)?F(d,r,v,u):(v||r!==void 0)&&(D[s]=r))})},x._getValueUsingField=function(F,D,f){if(!D||!F)return;if(!f)return F[D];let v=D.split("."),u=F;for(let s=0;s<v.length;s++){if(u==null)return;u=u[v[s]]}return u}},7990:function(ne,x){var p;Object.defineProperty(x,"__esModule",{value:!0}),x.AgPromise=x._isPromise=void 0,x._isPromise=function(A){return typeof A.then=="function"},function(A){A[A.IN_PROGRESS=0]="IN_PROGRESS",A[A.RESOLVED=1]="RESOLVED"}(p||(p={}));class M{static all(F){return F.length?new M(D=>{let f=F.length,v=new Array(f);F.forEach((u,s)=>{u.then(r=>{v[s]=r,f--,f===0&&D(v)})})}):M.resolve()}static resolve(F=null){return new M(D=>D(F))}constructor(F){this.status=p.IN_PROGRESS,this.resolution=null,this.waiters=[],F(D=>this.onDone(D),D=>this.onReject(D))}then(F){return new M(D=>{this.status===p.RESOLVED?D(F(this.resolution)):this.waiters.push(f=>D(F(f)))})}onDone(F){this.status=p.RESOLVED,this.resolution=F,this.waiters.forEach(D=>D(F))}onReject(F){}}x.AgPromise=M},7766:function(ne,x){Object.defineProperty(x,"__esModule",{value:!0}),x._escapeString=void 0;let p=/[&<>"']/g,M={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"};x._escapeString=function(A,F){if(A==null)return null;let D=A.toString().toString();return F?D:D.replace(p,f=>M[f])}},8179:function(ne,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.validateApiFunction=void 0;let M=p(2043),A="clientSide",F="serverSide",D="infinite",f={onGroupExpandedOrCollapsed:[A],refreshClientSideRowModel:[A],isRowDataEmpty:[A],forEachLeafNode:[A],forEachNodeAfterFilter:[A],forEachNodeAfterFilterAndSort:[A],resetRowHeights:[A],applyTransaction:[A],applyTransactionAsync:[A],flushAsyncTransactions:[A],getBestCostNodeSelection:[A],getServerSideSelectionState:[F],setServerSideSelectionState:[F],applyServerSideTransaction:[F],applyServerSideTransactionAsync:[F],applyServerSideRowData:[F],retryServerSideLoads:[F],flushServerSideAsyncTransactions:[F],refreshServerSide:[F],getServerSideGroupLevelState:[F],refreshInfiniteCache:[D],purgeInfiniteCache:[D],getInfiniteRowCount:[D],isLastRowIndexKnown:[D,F],expandAll:[A,F],collapseAll:[A,F],onRowHeightChanged:[A,F],setRowCount:[D,F],getCacheBlockState:[D,F]},v={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")'}};x.validateApiFunction=function(u,s,r){let d=v[u];if(d){let{version:m,new:b,old:w,message:k}=d,R=w!=null?w:u;return(...T)=>{let z=b?`Please use ${b} instead. `:"";return(0,M._warnOnce)(`Since ${m} api.${R} is deprecated. ${z}${k!=null?k:""}`),s.apply(s,T)}}let g=f[u];return g?(...m)=>{let b=r.rowModel.getType();if(g.includes(b))return s.apply(s,m);(0,M._errorOnce)(`api.${u} can only be called when gridOptions.rowModelType is ${g.join(" or ")}`)}:s}},8732:function(ne,x){Object.defineProperty(x,"__esModule",{value:!0}),x.ENTERPRISE_MODULE_NAMES=void 0,x.ENTERPRISE_MODULE_NAMES={AdvancedFilter:1,AllEnterprise:1,CellSelection:1,Clipboard:1,ColumnMenu:1,ColumnsToolPanel:1,ContextMenu:1,ExcelExport:1,FiltersToolPanel:1,GridCharts:1,IntegratedCharts:1,GroupFilter:1,MasterDetail:1,Menu:1,MultiFilter:1,Pivot:1,RangeSelection:1,RichSelect:1,RowGrouping:1,RowGroupingPanel:1,ServerSideRowModelApi:1,ServerSideRowModel:1,SetFilter:1,SideBar:1,Sparklines:1,StatusBar:1,TreeData:1,ViewportRowModel:1}},5205:function(ne,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.MISSING_MODULE_REASONS=x.getError=x.AG_GRID_ERRORS=x.moduleImportMsg=void 0;let M=p(1298),A=p(8732),F=p(7764),D=p(342),f=p(1389);function v(r){return`${r}Module`}x.moduleImportMsg=r=>`import { ModuleRegistry } from 'ag-grid-community'; 
${r.map(d=>`import { ${v(d)} } from '${A.ENTERPRISE_MODULE_NAMES[d]?"ag-grid-enterprise":"ag-grid-community"}';`).join(` 
`)} 

ModuleRegistry.registerModules([ ${r.map(v).join(", ")} ]); 

For more info see: ${F.baseDocLink}/modules/`;let u=({reasonOrId:r,moduleName:d,gridScoped:g,gridId:m,rowModelType:b,additionalText:w})=>{let k=(0,D.resolveModuleNames)(d,b);return`Unable to use ${typeof r=="string"?r:x.MISSING_MODULE_REASONS[r]} as ${k.length>1?"one of "+k.map(v).join(", "):v(k[0])} is not registered${g?" for gridId: "+m:""}. Check if you have registered the module:
${(0,x.moduleImportMsg)(k)}`+(w?` 

${w}`:"")},s=r=>`${r} must be initialised with an AG Charts module. One of 'AgChartsCommunityModule' / 'AgChartsEnterpriseModule'.

import { AgChartsEnterpriseModule } from 'ag-charts-enterprise';
import { ModuleRegistry } from 'ag-grid-community';
import { ${r} } from 'ag-grid-enterprise';
    
ModuleRegistry.registerModules([${r}.with(AgChartsEnterpriseModule)]);
    `;x.AG_GRID_ERRORS={1:()=>"`rowData` must be an array",2:({nodeId:r})=>`Duplicate node id '${r}' 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:r})=>`Could not find row id=${r}, data item was not found for this id`,5:({data:r})=>["Could not find data item as object was not found.",r," 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:r})=>`Unknown key for navigation ${r}`,9:({variable:r})=>`No value for ${r.cssName}. This usually means that the grid has been initialised before styles have been loaded. The default value of ${r.defaultValue} will be used and updated when styles load.`,10:({eventType:r})=>`As of v33, the '${r}' event is deprecated. Use the global 'modelUpdated' event to determine when row children have changed.`,11:()=>"No gridOptions provided to createGrid",12:({colKey:r})=>["column ",r," 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:r})=>`Row IDs cannot start with ${r}, this is a reserved prefix for AG Grid's row grouping feature.`,15:({expression:r})=>["value should be either a string or a function",r],16:({expression:r,params:d,e:g})=>["Processing of the expression failed","Expression = ",r,"Params = ",d,"Exception = ",g],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:
                     "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:r})=>`${r} 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:r})=>["The getRowId callback must return a string. The ID ",r," is being cast to a string."],26:({fnName:r,preDestroyLink:d})=>`Grid API function ${r}() cannot be called as the grid has been destroyed.
 Either clear local references to the grid api, when it is destroyed, or check gridApi.isDestroyed() to avoid calling methods against a destroyed grid.
 To run logic when the grid is about to be destroyed use the gridPreDestroy event. See: ${d}`,27:({fnName:r,module:d})=>`API function '${r}' not registered to module '${d}'`,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:r})=>["tried to insert columns in invalid location, toIndex = ",r,"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:r})=>`the column type '${r}' 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:r})=>"colDef.type '"+r+"' does not correspond to defined gridOptions.columnTypes",37:()=>"Changing the column pinning status is not allowed with domLayout='print'",38:({iconName:r})=>`provided icon '${r}' 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:r,method:d})=>`${r}
${(g=>`AG Grid: Unable to use the Clipboard API (navigator.clipboard.${g}()). 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.`)(d)}`,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:r})=>`As of v33, icon '${r}' is deprecated. Use the icon CSS name instead.`,44:()=>'Data type definition hierarchies (via the "extendsDataType" property) cannot contain circular references.',45:({parentCellDataType:r})=>`The data type definition ${r} does not exist.`,46:()=>'The "baseDataType" property of a data type definition must match that of its parent.',47:({cellDataType:r})=>`Missing data type definition - "${r}"`,48:({property:r})=>`Cell data type is "object" but no Value ${r} has been provided. Please either provide an object data type definition with a Value ${r}, or set "colDef.value${r}"`,49:({methodName:r})=>`Framework component is missing the method ${r}()`,50:({compName:r})=>`Could not find component ${r}, 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:r})=>`setFilterModel() - no column found for colId: ${r}`,63:({colId:r})=>`setFilterModel() - unable to fully apply model, filtering disabled for colId: ${r}`,64:({colId:r})=>`setFilterModel() - unable to fully apply model, unable to create filter for colId: ${r}`,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:r})=>`getGui method from filter returned ${r}; it should be a DOM element.`,70:({newFilter:r})=>"Grid option quickFilterText only supports string inputs, received: "+typeof r,71:()=>"debounceMs is ignored when apply button is present",72:({keys:r})=>["ignoring FilterOptionDef as it doesn't contain one of ",r],73:()=>"invalid FilterOptionDef supplied as it doesn't contain a 'displayKey'",74:()=>"no filter options for filter",75:()=>"Unknown button type specified",76:({filterModelType:r})=>['Unexpected type of filter "',r,'", 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:r})=>`DateFilter ${r} 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:r})=>`Invalid row index for ensureIndexVisible: ${r}`,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:({methodName:r})=>`AnimationFrameService.${r} called but animation frames are off`,93:()=>"cannot add multiple ranges when `cellSelection.suppressMultiRanges = true`",94:({paginationPageSizeOption:r,pageSizeSet:d,pageSizesSet:g,pageSizeOptions:m})=>`'paginationPageSize=${r}'${d?"":" (default value)"}, but ${r} is not included in${g?"":" the default"} paginationPageSizeSelector=[${m.join(", ")}].`,95:({paginationPageSizeOption:r,paginationPageSizeSelector:d})=>`Either set '${d}' to an array that includes ${r} or to 'false' to disable the page size selector.`,96:({id:r,data:d})=>["Duplicate ID",r,"found for pinned row with data",d,"When `getRowId` is defined, it must return unique IDs for all pinned rows. Use the `rowPinned` parameter."],97:({colId:r})=>`cellEditor for column ${r} 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.",100:({rowModelType:r})=>`selectAll only available when rowModelType='clientSide', ie not ${r}`,101:({propertyName:r,componentName:d,agGridDefaults:g,jsComps:m})=>{let b=[],w=[...Object.keys(g).filter(R=>!["agCellEditor","agGroupRowRenderer","agSortIndicator"].includes(R)),...Object.keys(m)],k=(0,M._fuzzySuggestions)({inputValue:d,allSuggestions:w,hideIrrelevant:!0,filterByPercentageOfBestMatch:.8}).values;return b.push(`Could not find '${d}' component. It was configured as "${r}: '${d}'" but it wasn't found in the list of registered components.
`),k.length>0&&b.push(`         Did you mean: [${k.slice(0,3)}]?
`),b.push("If using a custom component check it has been registered correctly."),b},102:()=>"selecting just 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:r,param:d})=>`Numeric value ${r} passed to ${d} param will be interpreted as ${r} seconds. If this is intentional use "${r}s" to silence this warning.`,105:({e:r})=>["chart rendering failed",r],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: ${F.baseDocLink}/theming-migration/`,107:({key:r,value:d})=>`Invalid value for theme param ${r} - ${d}`,108:({e:r})=>["chart update failed",r],109:({aggFuncOrString:r})=>`unrecognised aggregation function ${r}`,110:()=>"groupHideOpenParents only works when specifying specific columns for colDef.showRowGroup",111:()=>"Invalid selection state. When `groupSelectsChildren` 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:r})=>`Could not find component with name of ${r}. Is it in Vue.components?`,115:()=>"The provided selection state should be an object.",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:r})=>`Unable to update chart. No active chart found with ID: ${r}.`,126:()=>"unable to restore chart as no chart model is provided",127:({allRange:r})=>`unable to create chart as ${r?"there are no columns in the grid":"no range is selected"}.`,128:({feature:r})=>`${r} is only available if using 'multiRow' selection mode.`,129:({feature:r,rowModel:d})=>`${r} is only available if using 'clientSide' or 'serverSide' rowModelType, you are using ${d}.`,130:()=>'cannot multi select unless selection mode is "multiRow"',131:()=>"cannot range select while selecting multiple rows",132:()=>"Row selection features are not available unless `rowSelection` is enabled.",133:({iconName:r})=>`icon '${r}' function should return back a string or a dom object`,134:({iconName:r})=>`Did not find icon '${r}'`,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:r,currentChartType:d})=>`Unable to update chart as a '${r}' update type is not permitted on a ${d}.`,138:({chartType:r})=>`invalid chart type supplied: ${r}`,139:({customThemeName:r})=>`a custom chart theme with the name ${r} has been supplied but not added to the 'chartThemes' list`,140:({name:r})=>`no stock theme exists with the name '${r}' 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:r})=>`'${r}' is not a valid Chart Tool Panel name`,144:({type:r})=>`Invalid charts data panel group name supplied: '${r}'`,145:({group:r})=>`As of v32, only one charts customize panel group can be expanded at a time. '${r}' will not be expanded.`,146:({comp:r})=>`Unable to instantiate component '${r}' as its module hasn't been loaded. Add 'ValidationModule' to see which module is required.`,147:({group:r})=>`Invalid charts customize panel group name supplied: '${r}'`,148:({group:r})=>`invalid chartGroupsDef config '${r}'`,149:({group:r,chartType:d})=>`invalid chartGroupsDef config '${r}.${d}'`,150:()=>"'seriesChartTypes' are required when the 'customCombo' chart type is specified.",151:({chartType:r})=>`invalid chartType '${r}' supplied in 'seriesChartTypes', converting to 'line' instead.`,152:({colId:r})=>`no 'seriesChartType' found for colId = '${r}', defaulting to 'line'.`,153:({chartDataType:r})=>`unexpected chartDataType value '${r}' supplied, instead use 'category', 'series' or 'excluded'`,154:({colId:r})=>`cross filtering requires a 'agSetColumnFilter' or 'agMultiColumnFilter' to be defined on the column with id: ${r}`,155:({option:r})=>`'${r}' is not a valid Chart Toolbar Option`,156:({panel:r})=>`Invalid panel in chartToolPanelsDef.panels: '${r}'`,157:({unrecognisedGroupIds:r})=>["unable to find group(s) for supplied groupIds:",r],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:r,dataType:d})=>`Unrecognized data type for excel export [${r}.dataType=${d}]`,163:({featureName:r})=>`Excel table export does not work with ${r}. The exported Excel file will not contain any Excel tables.
 Please turn off ${r} 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:r})=>["unable to find groups for these supplied groupIds:",r],167:({unrecognisedColIds:r})=>["unable to find columns for these supplied colIds:",r],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:r})=>`invalid cellRendererParams.refreshStrategy = ${r} 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:r})=>`invalid chartGroupsDef config '${r}'`,174:({group:r,chartType:d})=>`invalid chartGroupsDef config '${r}.${d}'`,175:({menuTabName:r,itemsToConsider:d})=>[`Trying to render an invalid menu item '${r}'. Check that your 'menuTabs' contains one of `,d],176:({key:r})=>`unknown menu item type ${r}`,177:()=>"valid values for fillHandleDirection are 'x', 'y' and 'xy'. Default to 'xy'.",178:({colId:r})=>`column ${r} 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:r,childNodeData:d})=>["duplicate group keys for row data, keys should be unique",[r,d]],185:({data:r})=>["getDataPath() should not return an empty path",[r]],186:({rowId:r,rowData:d,duplicateRowsData:g})=>["duplicate group keys for row data, keys should be unique",r,d,...g],187:({rowId:r,firstData:d,secondData:g})=>[`Duplicate node id ${r}. Row IDs are provided via the getRowId() callback. Please modify the getRowId() callback code to provide unique row id values.`,"first instance",d,"second instance",g],188:()=>"getRowId callback must be provided for Server Side Row Model selection to work correctly.",189:({startRow:r})=>`invalid value ${r} for startRow, the value should be >= 0`,190:({rowGroupId:r,data:d})=>["null and undefined values are not allowed for server side row model keys",r?`column = ${r}`:"","data is ",d],191:()=>"cannot multi select unless selection mode is 'multiRow'",192:()=>"cannot use range selection when multi selecting rows",193:()=>"cannot multi select unless selection mode is 'multiRow'",194:({method:r})=>`calling gridApi.${r}() is only possible when using rowModelType=\`clientSide\`.`,195:({justCurrentPage:r})=>`selecting just ${r?"current page":"filtered"} only works when gridOptions.rowModelType='clientSide'`,196:({key:r})=>`Provided ids must be of string type. Invalid id provided: ${r}`,197:()=>"`toggledNodes` must be an array of string ids.",198:()=>"cannot multi select unless selection mode is 'multiRow'",199:()=>"getSelectedNodes and getSelectedRows functions cannot be used with select all functionality with the server-side row model. Use `api.getServerSideSelectionState()` instead.",200:u,201:({rowModelType:r})=>`Could not find row model for rowModelType = ${r}`,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:r})=>`Unable to display rows as duplicate row ids (${r}) 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 ${F.baseDocLink}/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:r})=>`unable to lookup Tool Panel as invalid key supplied: ${r}`,215:({key:r,defaultByKey:d})=>`the key ${r} is not a valid key for specifying a tool panel, valid keys are: ${Object.keys(d).join(",")}`,216:({name:r})=>`Missing component for '${r}'`,217:({invalidColIds:r})=>["unable to find grid columns for the supplied colDef(s):",r],218:({property:r,defaultOffset:d})=>`${r} must be a number, the value you provided is not a valid number. Using the default of ${d}px.`,219:({property:r})=>`Property ${r} does not exist on the target object.`,220:({lineDash:r})=>`'${r}' 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:r})=>`unrecognised menu item ${r}`,229:({index:r})=>["invalid row index for ensureIndexVisible: ",r],230:()=>"detailCellRendererParams.template is not supported by AG Grid React. To change the template, provide a Custom Detail Cell Renderer. See https://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:r})=>`Framework component is missing the method ${r}()`,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:r})=>`theme grid option must be a Theming API theme object or the string "legacy", received: ${r}`,241:()=>"cannot select multiple rows when rowSelection.mode is set to 'singleRow'",242:()=>"cannot select multiple rows when using rangeSelect",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. 
Please rebuild the selection state and reapply it.`,248:()=>"SetFloatingFilter expects SetFilter as its parent",249:()=>"Must supply a Value Formatter in Set Filter params when using a Key Creator",250:()=>"Must supply a Key Creator in Set Filter params when `treeList = true` on a group column, and Tree Data or Row Grouping is enabled.",251:({chartType:r})=>`AG Grid: Unable to create chart as an invalid chartType = '${r}' was supplied.`,252:()=>`cannot get grid to draw rows when it is in the middle of drawing rows. 
Your code probably called a grid API method while the grid was in the render stage. 
To overcome this, put the API call into a timeout, e.g. instead of api.redrawRows(), call setTimeout(function() { api.redrawRows(); }, 0). 
To see what part of your code that caused the refresh check this stacktrace.`,253:({version:r})=>["Illegal version string: ",r],254:()=>"Cannot create chart: no chart themes available.",255:({point:r})=>`Lone surrogate U+${r.toString(16).toUpperCase()} is not a scalar value`,256:()=>"Unable to initialise. See validation error, or load ValidationModule if missing.",257:()=>s("IntegratedChartsModule"),258:()=>s("SparklinesModule"),259:({part:r})=>`the argument to theme.withPart must be a Theming API part object, received: ${r}`,260:({propName:r,compName:d,gridScoped:g,gridId:m,rowModelType:b})=>u({reasonOrId:`AG Grid '${r}' component: ${d}`,moduleName:f.USER_COMP_MODULES[d],gridId:m,gridScoped:g,rowModelType:b}),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'},x.getError=function(r,d){let g=x.AG_GRID_ERRORS[r];if(!g)return[`Missing error text for error id ${r}!`];let m=g(d),b=`
See ${(0,F.getErrorLink)(r,d)}`;return Array.isArray(m)?m.concat(b):[m,b]},x.MISSING_MODULE_REASONS={1:"Charting Aggregation",2:"pivotResultFields",3:"setTooltip"}},7764:function(ne,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x._preInitErrMsg=x._errMsg=x._logPreInitErr=x._error=x._warn=x.getErrorLink=x.toStringWithNullUndefined=x.setValidationDocLink=x.suppressAllLogs=x.provideValidationServiceLogger=x.baseDocLink=void 0;let M=p(3263),A=p(2043),F=p(7205),D=100,f="_version_",v=null,u=!1;function s(k,R,T){var z;return(z=v==null?void 0:v.getConsoleMessage(k,R))!=null?z:[b(k,R,T)]}function r(k,R,T,z){u||k(`error #${R}`,...s(R,T,z))}function d(k){let R=k;return k instanceof Error?R=k.toString():typeof k=="object"&&(R=function(T){if(!T)return String(T);let z={};for(let G of Object.keys(T))typeof T[G]!="object"&&typeof T[G]!="function"&&(z[G]=T[G]);return JSON.stringify(z)}(k)),R}function g(k,R){return`${k}?${R.toString()}`}function m(k,R){let T=new URLSearchParams;T.append(f,F.VERSION),R&&Object.entries(R).forEach(([U,X])=>{T.append(U,d(X))});let z=`${x.baseDocLink}/errors/${k}`,G=g(z,T);return G.length<=2e3?G:function(U,X,Q){let oe=Array.from(X.entries()).sort((fe,ye)=>ye[1].length-fe[1].length),le=g(U,X);for(let[fe,ye]of oe){if(fe===f)continue;let ke=le.length-Q;if(ke<=0)break;let Ie="...",ze=ke+Ie.length,Ye=ye.length-ze>D?ye.slice(0,ye.length-ze)+Ie:ye.slice(0,D)+Ie;X.set(fe,Ye),le=g(U,X)}return le}(z,T,2e3)}x.baseDocLink=`${M.BASE_URL}/javascript-data-grid`,x.provideValidationServiceLogger=function(k){v=k},x.suppressAllLogs=function(){u=!0},x.setValidationDocLink=function(k){x.baseDocLink=k},x.toStringWithNullUndefined=function(k){return k===void 0?"undefined":k===null?"null":k},x.getErrorLink=m;let b=(k,R,T)=>`${T?T+` 
`:""}Visit ${m(k,R)}${T?"":` 
  Alternatively register the ValidationModule to see the full message in the console.`}`;function w(k,R){let T=R[0];return`error #${T} `+s(T,R[1],k).join(" ")}x._warn=function(...k){r(A._warnOnce,k[0],k[1])},x._error=function(...k){r(A._errorOnce,k[0],k[1])},x._logPreInitErr=function(k,R,T){r(A._errorOnce,k,R,T)},x._errMsg=function(...k){return w(void 0,k)},x._preInitErrMsg=function(...k){return w(`
`,k)}},342:function(ne,x){Object.defineProperty(x,"__esModule",{value:!0}),x.resolveModuleNames=x.MODULES_FOR_ROW_MODELS=x.RESOLVABLE_MODULE_NAMES=void 0;let p=["TextFilter","NumberFilter","DateFilter","SetFilter","MultiFilter","GroupFilter","CustomFilter"];x.RESOLVABLE_MODULE_NAMES={EditCore:["TextEditor","NumberEditor","DateEditor","CheckboxEditor","LargeTextEditor","SelectEditor","RichSelect","CustomEditor"],CheckboxCellRenderer:["AllCommunity"],ClientSideRowModelHierarchy:["RowGrouping","Pivot","TreeData"],ColumnFilter:p,ColumnGroupHeaderComp:["AllCommunity"],ColumnGroup:["AllCommunity"],ColumnHeaderComp:["AllCommunity"],ColumnMove:["AllCommunity"],ColumnResize:["AllCommunity"],CommunityCore:["AllCommunity"],CsrmSsrmSharedApi:["ClientSideRowModelApi","ServerSideRowModelApi"],EnterpriseCore:["AllEnterprise"],FilterCore:[...p,"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:[...p,"ColumnMenu","ContextMenu"],SharedPivot:["Pivot","ServerSideRowModel"],SharedRowGrouping:["RowGrouping","ServerSideRowModel"],SharedRowSelection:["RowSelection","ServerSideRowModel"],SkeletonCellRenderer:["ServerSideRowModel"],Sort:["AllCommunity"],SsrmInfiniteSharedApi:["InfiniteRowModel","ServerSideRowModelApi"],SharedTreeData:["TreeData","ServerSideRowModel"]},x.MODULES_FOR_ROW_MODELS={InfiniteRowModel:"infinite",ClientSideRowModelApi:"clientSide",ClientSideRowModel:"clientSide",ServerSideRowModelApi:"serverSide",ServerSideRowModel:"serverSide",ViewportRowModel:"viewport"},x.resolveModuleNames=function(M,A){let F=[];return(Array.isArray(M)?M:[M]).forEach(D=>{let f=x.RESOLVABLE_MODULE_NAMES[D];f?f.forEach(v=>{let u=x.MODULES_FOR_ROW_MODELS[v];u&&u!==A||F.push(v)}):F.push(D)}),F}},4842:function(ne,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.COL_DEF_VALIDATORS=void 0;let M=p(8125),A=p(7764),F=p(1389),D={headerName:void 0,columnGroupShow: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,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};x.COL_DEF_VALIDATORS=()=>({objectName:"colDef",allProperties:Object.keys(D),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:{aggFunc:{module:"SharedAggregation"},autoHeight:{supportedRowModels:["clientSide","serverSide"],module:"RowAutoHeight"},cellClass:{module:"CellStyle"},cellClassRules:{module:"CellStyle"},cellEditor:({cellEditor:f,editable:v})=>{if(!v)return null;if(typeof f=="string"){let u=F.USER_COMP_MODULES[f];if(u)return{module:u}}return{module:"CustomEditor"}},cellRenderer:({cellRenderer:f})=>{if(typeof f!="string")return null;let v=F.USER_COMP_MODULES[f];return v?{module:v}:null},cellRendererParams:{validate:f=>f.rowGroup==null&&f.rowGroupIndex==null&&f.cellRenderer!=="agGroupCellRenderer"||!("checkbox"in f.cellRendererParams)?null:'Since v33.0, `cellRendererParams.checkbox` has been deprecated. Use `rowSelection.checkboxLocation = "autoGroupColumn"` instead.'},cellStyle:{module:"CellStyle"},children:()=>(0,x.COL_DEF_VALIDATORS)(),columnChooserParams:{module:"ColumnMenu"},contextMenuItems:{module:"ContextMenu"},dndSource:{module:"DragAndDrop"},dndSourceOnRowDrag:{module:"DragAndDrop"},editable:({editable:f,cellEditor:v})=>f&&!v?{module:"TextEditor"}:null,enableCellChangeFlash:{module:"HighlightChanges"},enablePivot:{module:"SharedPivot"},enableRowGroup:{module:"SharedRowGrouping"},enableValue:{module:"SharedAggregation"},filter:({filter:f})=>{if(f&&typeof f!="string"&&typeof f!="boolean")return{module:"CustomFilter"};if(typeof f=="string"){let v=F.USER_COMP_MODULES[f];if(v)return{module:v}}return{module:"ColumnFilter"}},floatingFilter:{module:"ColumnFilter"},headerCheckboxSelection:{supportedRowModels:["clientSide","serverSide"],validate:(f,{rowSelection:v})=>v==="multiple"?null:"headerCheckboxSelection is only supported with rowSelection=multiple"},headerCheckboxSelectionCurrentPageOnly:{supportedRowModels:["clientSide"],validate:(f,{rowSelection:v})=>v==="multiple"?null:"headerCheckboxSelectionCurrentPageOnly is only supported with rowSelection=multiple"},headerCheckboxSelectionFilteredOnly:{supportedRowModels:["clientSide"],validate:(f,{rowSelection:v})=>v==="multiple"?null:"headerCheckboxSelectionFilteredOnly is only supported with rowSelection=multiple"},headerTooltip:{module:"Tooltip"},headerValueGetter:{validate:f=>{let v=f.headerValueGetter;return typeof v=="function"||typeof v=="string"?null:"headerValueGetter must be a function or a valid string expression"}},icons:{validate:({icons:f})=>{if(f){if(f.smallDown)return(0,A._errMsg)(262);if(f.smallLeft)return(0,A._errMsg)(263);if(f.smallRight)return(0,A._errMsg)(264)}return null}},mainMenuItems:{module:"ColumnMenu"},menuTabs:f=>{var u;let v=["columnsMenuTab","generalMenuTab"];return(u=f.menuTabs)!=null&&u.some(s=>v.includes(s))?{module:"ColumnMenu"}:null},pivot:{module:"SharedPivot"},pivotIndex:{module:"SharedPivot"},rowDrag:{module:"RowDrag"},rowGroup:{module:"SharedRowGrouping"},rowGroupIndex:{module:"SharedRowGrouping"},sortingOrder:{validate:f=>{let v=f.sortingOrder;if(Array.isArray(v)&&v.length>0){let u=v.filter(s=>!M.DEFAULT_SORTING_ORDER.includes(s));if(u.length>0)return`sortingOrder must be an array with elements from [${M.DEFAULT_SORTING_ORDER.map(A.toStringWithNullUndefined).join()}], currently it includes [${u.map(A.toStringWithNullUndefined).join()}]`}else if(!Array.isArray(v)||v.length<=0)return`sortingOrder must be an array with at least one element, currently it's ${v}`;return null}},tooltipField:{module:"Tooltip"},tooltipValueGetter:{module:"Tooltip"},type:{validate:f=>{let v=f.type;return v instanceof Array?v.some(u=>typeof u!="string")?"if colDef.type is supplied an array it should be of type 'string[]'":null:typeof v=="string"?null:"colDef.type should be of type 'string' | 'string[]'"}},rowSpan:{validate:(f,{suppressRowTransform:v})=>v?null:"colDef.rowSpan requires suppressRowTransform to be enabled."}}})},711:function(ne,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.GRID_OPTIONS_VALIDATORS=void 0;let M=p(3080),A=p(7274),F=p(920),D=p(8125),f=p(6996),v=p(7764);function u(r,d,g,m=Number.MAX_VALUE){return typeof d=="number"||d==null?d==null||d>=g&&d<=m?null:m===Number.MAX_VALUE?`${r}: value should be greater than or equal to ${g}`:`${r}: value should be between ${g} and ${m}`:`${r}: value should be a number`}let s=()=>{let r={alignedGrids:{module:"AlignedGrids"},allowContextMenuWithControlKey:{module:"ContextMenu"},autoSizePadding:{validate({autoSizePadding:g}){return u("autoSizePadding",g,0)}},autoSizeStrategy:{module:"ColumnAutoSize"},cacheBlockSize:{supportedRowModels:["serverSide","infinite"],validate({cacheBlockSize:g}){return u("cacheBlockSize",g,1)}},cacheOverflowSize:{validate({cacheOverflowSize:g}){return u("cacheOverflowSize",g,1)}},cellSelection:{module:"CellSelection"},columnHoverHighlight:{module:"ColumnHover"},datasource:{supportedRowModels:["infinite"],module:"InfiniteRowModel"},doesExternalFilterPass:{module:"ExternalFilter"},domLayout:{validate:g=>{let m=g.domLayout,b=["autoHeight","normal","print"];return m&&!b.includes(m)?`domLayout must be one of [${b.join()}], currently it's ${m}`:null}},editType:{module:"EditCore"},enableAdvancedFilter:{module:"AdvancedFilter"},enableCharts:{module:"IntegratedCharts"},enableFillHandle:{dependencies:{enableRangeSelection:{required:[!0]}}},enableRangeHandle:{dependencies:{enableRangeSelection:{required:[!0]}}},enableRangeSelection:{module:"CellSelection",dependencies:{rowDragEntireRow:{required:[!1,void 0]}}},getContextMenuItems:{module:"ContextMenu"},getLocaleText:{module:"Locale"},getMainMenuItems:{module:"ColumnMenu"},getRowClass:{module:"RowStyle"},getRowStyle:{module:"RowStyle"},grandTotalRow:{module:"SharedRowGrouping"},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:g})=>{if(g){if(g.smallDown)return(0,v._errMsg)(262);if(g.smallLeft)return(0,v._errMsg)(263);if(g.smallRight)return(0,v._errMsg)(264)}return null}},infiniteInitialRowCount:{validate({infiniteInitialRowCount:g}){return u("infiniteInitialRowCount",g,1)}},initialGroupOrderComparator:{supportedRowModels:["clientSide"]},initialState:{module:"GridState"},isExternalFilterPresent:{module:"ExternalFilter"},keepDetailRowsCount:{validate({keepDetailRowsCount:g}){return u("keepDetailRowsCount",g,1)}},localeText:{module:"Locale"},masterDetail:{module:"SharedMasterDetail"},pagination:{module:"Pagination"},paginationPageSize:{validate({paginationPageSize:g}){return u("paginationPageSize",g,1)}},paginationPageSizeSelector:{validate:g=>{let m=g.paginationPageSizeSelector;return typeof m=="boolean"||m==null||m.length?null:`'paginationPageSizeSelector' cannot be an empty array.
                    If you want to hide the page size selector, set paginationPageSizeSelector to false.`}},pinnedTopRowData:{module:"PinnedRow"},pinnedBottomRowData:{module:"PinnedRow"},pivotMode:{dependencies:{treeData:{required:[!1,void 0],reason:"Pivot Mode is not supported with Tree Data."}},module:"SharedPivot"},pivotPanelShow:{module:"RowGroupingPanel"},quickFilterText:{supportedRowModels:["clientSide"],module:"QuickFilter"},rowBuffer:{validate({rowBuffer:g}){return u("rowBuffer",g,0)}},rowClass:{validate:g=>typeof g.rowClass=="function"?"rowClass should not be a function, please use getRowClass instead":null,module:"RowStyle"},rowClassRules:{module:"RowStyle"},rowData:{supportedRowModels:["clientSide"],module:"ClientSideRowModel"},rowDragManaged:{supportedRowModels:["clientSide"],dependencies:{treeData:{required:[!1,void 0]},pagination:{required:[!1,void 0]}},module:"RowDrag"},rowGroupPanelShow:{module:"RowGroupingPanel"},rowSelection:{validate({rowSelection:g}){return g&&typeof g=="string"?'As of version 32.2.1, using `rowSelection` with the values "single" or "multiple" has been deprecated. Use the object value instead.':g&&typeof g!="object"?"Expected `RowSelectionOptions` object for the `rowSelection` property.":g&&g.mode!=="multiRow"&&g.mode!=="singleRow"?`Selection mode "${g.mode}" is invalid. Use one of 'singleRow' or 'multiRow'.`:null},module:"SharedRowSelection"},rowStyle:{validate:g=>{let m=g.rowStyle;return m&&typeof m=="function"?"rowStyle should be an object of key/value styles, not be a function, use getRowStyle() instead":null},module:"RowStyle"},serverSideDatasource:{supportedRowModels:["serverSide"],module:"ServerSideRowModel"},serverSideInitialRowCount:{supportedRowModels:["serverSide"],validate({serverSideInitialRowCount:g}){return u("serverSideInitialRowCount",g,1)}},serverSideOnlyRefreshFilteredGroups:{supportedRowModels:["serverSide"]},serverSideSortAllLevels:{supportedRowModels:["serverSide"]},sideBar:{module:"SideBar"},sortingOrder:{validate:g=>{let m=g.sortingOrder;if(Array.isArray(m)&&m.length>0){let b=m.filter(w=>!D.DEFAULT_SORTING_ORDER.includes(w));if(b.length>0)return`sortingOrder must be an array with elements from [${D.DEFAULT_SORTING_ORDER.map(v.toStringWithNullUndefined).join()}], currently it includes [${b.map(v.toStringWithNullUndefined).join()}]`}else if(!Array.isArray(m)||m.length<=0)return`sortingOrder must be an array with at least one element, currently it's ${m}`;return null}},statusBar:{module:"StatusBar"},tooltipHideDelay:{validate:g=>g.tooltipHideDelay&&g.tooltipHideDelay<0?"tooltipHideDelay should not be lower than 0":null},tooltipShowDelay:{validate:g=>g.tooltipShowDelay&&g.tooltipShowDelay<0?"tooltipShowDelay should not be lower than 0":null},treeData:{supportedRowModels:["clientSide","serverSide"],module:"SharedTreeData",validate:g=>{var b;let m=(b=g.rowModelType)!=null?b:"clientSide";switch(m){case"clientSide":{let w=`treeData requires 'getDataPath' in the ${m} row model.`;return g.treeDataChildrenField||g.getDataPath?null:w}case"serverSide":{let w=`treeData requires 'isServerSideGroup' and 'getServerSideGroupKey' in the ${m} row model.`;return g.isServerSideGroup&&g.getServerSideGroupKey?null:w}}return null}},treeDataChildrenField:{module:"SharedTreeData"},undoRedoCellEditing:{module:"UndoRedoEdit"},valueCache:{module:"ValueCache"},viewportDatasource:{supportedRowModels:["viewport"],module:"ViewportRowModel"},viewportRowModelBufferSize:{validate({viewportRowModelBufferSize:g}){return u("viewportRowModelBufferSize",g,0)}},viewportRowModelPageSize:{validate({viewportRowModelPageSize:g}){return u("viewportRowModelPageSize",g,1)}},rowDragEntireRow:{dependencies:{cellSelection:{required:[void 0]}}}},d={};return F._BOOLEAN_GRID_OPTIONS.forEach(g=>{d[g]={expectedType:"boolean"}}),F._NUMBER_GRID_OPTIONS.forEach(g=>{d[g]={expectedType:"number"}}),(0,f._mergeDeep)(d,r),d};x.GRID_OPTIONS_VALIDATORS=()=>({objectName:"gridOptions",allProperties:[...F._ALL_GRID_OPTIONS,...M._ALL_EVENTS.map(r=>(0,A._getCallbackForEvent)(r))],propertyExceptions:["api","treeDataChildrenField"],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."}},validations:s()})},9938:function(ne,x){Object.defineProperty(x,"__esModule",{value:!0}),x.DEPRECATED_ICONS_V33=x.ICON_MODULES=x.ICON_VALUES=void 0,x.ICON_VALUES={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,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},x.ICON_MODULES={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",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",groupContracted:"GroupCellRenderer",groupExpanded:"GroupCellRenderer",setFilterGroupClosed:"SetFilter",setFilterGroupOpen:"SetFilter",setFilterGroupIndeterminate:"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"},x.DEPRECATED_ICONS_V33=new Set(["colorPicker","smallUp","checkboxChecked","checkboxIndeterminate","checkboxUnchecked","radioButtonOn","radioButtonOff","smallDown","smallLeft","smallRight"])},3781:function(ne,x){Object.defineProperty(x,"__esModule",{value:!0}),x.MENU_ITEM_MODULES=void 0,x.MENU_ITEM_MODULES={pinSubMenu:"PinnedColumn",pinLeft:"PinnedColumn",pinRight:"PinnedColumn",clearPinned:"PinnedColumn",valueAggSubMenu:"SharedAggregation",autoSizeThis:"ColumnAutoSize",autoSizeAll:"ColumnAutoSize",rowGroup:"SharedRowGrouping",rowUnGroup:"SharedRowGrouping",resetColumns:"CommunityCore",expandAll:["ClientSideRowModelHierarchy","ServerSideRowModel"],contractAll:["ClientSideRowModelHierarchy","ServerSideRowModel"],copy:"Clipboard",copyWithHeaders:"Clipboard",copyWithGroupHeaders:"Clipboard",cut:"Clipboard",paste:"Clipboard",export:["CsvExport","ExcelExport"],csvExport:"CsvExport",excelExport:"ExcelExport",separator:"CommunityCore",pivotChart:"IntegratedCharts",chartRange:"IntegratedCharts",columnFilter:"ColumnFilter",columnChooser:"ColumnMenu",sortAscending:"Sort",sortDescending:"Sort",sortUnSort:"Sort"}},1389:function(ne,x){Object.defineProperty(x,"__esModule",{value:!0}),x.USER_COMP_MODULES=void 0,x.USER_COMP_MODULES={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",agAggregationComponent:"StatusBar",agSelectedRowCountComponent:"StatusBar",agTotalRowCountComponent:"StatusBar",agFilteredRowCountComponent:"StatusBar",agTotalAndFilteredRowCountComponent:"StatusBar"}},5010:function(ne,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.ValidationModule=void 0;let M=p(7205),A=p(5147);x.ValidationModule={moduleName:"Validation",version:M.VERSION,beans:[A.ValidationService]}},5147:function(ne,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x._fuzzyCheckStrings=x.ValidationService=void 0;let M=p(8731),A=p(2891),F=p(2132),D=p(2043),f=p(1298),v=p(8179),u=p(5205),s=p(7764),r=p(4842),d=p(711),g=p(9938),m=p(3781),b=p(1389);class w extends M.BeanStub{constructor(){super(...arguments),this.beanName="validation"}wireBeans(z){this.gridOptions=z.gridOptions,(0,s.provideValidationServiceLogger)(this)}postConstruct(){this.processGridOptions(this.gridOptions)}warnOnInitialPropertyUpdate(z,G){z==="api"&&A.INITIAL_GRID_OPTION_KEYS[G]&&(0,s._warn)(22,{key:G})}processGridOptions(z){this.processOptions(z,(0,d.GRID_OPTIONS_VALIDATORS)())}validateApiFunction(z,G){return(0,v.validateApiFunction)(z,G,this.beans)}missingUserComponent(z,G,U,X){let Q=b.USER_COMP_MODULES[G];Q?this.gos.assertModuleRegistered(Q,`AG Grid '${z}' component: ${G}`):(0,s._warn)(101,{propertyName:z,componentName:G,agGridDefaults:U,jsComps:X})}checkRowEvents(z){R.has(z)&&(0,s._warn)(10,{eventType:z})}validateIcon(z){if(g.DEPRECATED_ICONS_V33.has(z)&&(0,s._warn)(43,{iconName:z}),g.ICON_VALUES[z])return;let G=g.ICON_MODULES[z];G?(0,s._error)(200,{reasonOrId:`icon '${z}'`,moduleName:G,gridScoped:(0,F._areModulesGridScoped)(),gridId:this.beans.context.getGridId(),rowModelType:this.gos.get("rowModelType"),additionalText:"Alternatively, use the CSS icon name directly."}):(0,s._warn)(134,{iconName:z})}validateMenuItem(z){let G=m.MENU_ITEM_MODULES[z];G&&this.gos.assertModuleRegistered(G,`menu item '${z}'`)}isProvidedUserComp(z){return!!b.USER_COMP_MODULES[z]}validateColDef(z,G,U){var X;!U&&((X=this.beans.dataTypeSvc)!=null&&X.isColPendingInference(G))||this.processOptions(z,(0,r.COL_DEF_VALIDATORS)())}processOptions(z,G){let{validations:U,deprecations:X,allProperties:Q,propertyExceptions:oe,objectName:le,docsUrl:fe}=G;Q&&this.gridOptions.suppressPropertyNamesCheck!==!0&&this.checkProperties(z,[...oe!=null?oe:[],...Object.keys(X)],Q,le,fe);let ye=new Set,ke=Ie=>{let ze=U[Ie];if(ze){if(typeof ze=="function"){let Ye=ze(z,this.gridOptions,this.beans);if(!Ye)return;if("objectName"in Ye){let xe=z[Ie];return Array.isArray(xe)?void xe.forEach(Te=>{this.processOptions(Te,Ye)}):void this.processOptions(z[Ie],Ye)}return Ye}return ze}};Object.keys(z).forEach(Ie=>{var Ve;let ze=X[Ie];if(ze){let{message:Ue,version:Ee}=ze;ye.add(`As of v${Ee}, ${String(Ie)} is deprecated. ${Ue!=null?Ue:""}`)}let Ye=z[Ie];if(Ye==null||Ye===!1)return;let xe=ke(Ie);if(!xe)return;let{module:Te,dependencies:Ae,validate:Ne,supportedRowModels:Re,expectedType:Oe}=xe;if(Oe){let Ue=typeof Ye;if(Ue!==Oe)return void ye.add(`${String(Ie)} should be of type '${Oe}' but received '${Ue}' (${Ye}).`)}if(Re){let Ue=(Ve=this.gridOptions.rowModelType)!=null?Ve:"clientSide";if(!Re.includes(Ue))return void ye.add(`${String(Ie)} is not supported with the '${Ue}' row model. It is only valid with: ${Re.join(", ")}.`)}if(Te){let Ue=Array.isArray(Te)?Te:[Te],Ee=!0;if(Ue.forEach(tt=>{this.gos.assertModuleRegistered(tt,String(Ie))||(Ee=!1)}),!Ee)return}if(Ae){let Ue=this.checkForRequiredDependencies(Ie,Ae,z);if(Ue)return void ye.add(Ue)}if(Ne){let Ue=Ne(z,this.gridOptions,this.beans);if(Ue)return void ye.add(Ue)}}),ye.size>0&&ye.forEach(Ie=>{(0,D._warnOnce)(Ie)})}checkForRequiredDependencies(z,G,U){let X=Object.entries(G).filter(([Q,oe])=>{let le=U[Q];return!oe.required.includes(le)});return X.length===0?null:X.map(([Q,oe])=>{var le;return`'${String(z)}' requires '${Q}' to be one of [${oe.required.map(fe=>fe===null?"null":fe===void 0?"undefined":fe).join(", ")}]. ${(le=oe.reason)!=null?le:""}`}).join(`
           `)}checkProperties(z,G,U,X,Q){let oe=k(Object.getOwnPropertyNames(z),["__ob__","__v_skip","__metadata__",...G,...U],U);if(Object.entries(oe).forEach(([le,fe])=>{let ye=`invalid ${X} property '${le}' did you mean any of these: ${fe.slice(0,8).join(", ")}.`;U.includes("context")&&(ye+=`
If you are trying to annotate ${X} with application data, use the '${X}.context' property instead.`),(0,D._warnOnce)(ye)}),Object.keys(oe).length>0&&Q){let le=this.beans.frameworkOverrides.getDocLink(Q);(0,D._warnOnce)(`to see all the valid ${X} properties please check: ${le}`)}}getConsoleMessage(z,G){return(0,u.getError)(z,G)}}function k(T,z,G){let U={},X=T.filter(Q=>!z.some(oe=>oe===Q));return X.length>0&&X.forEach(Q=>U[Q]=(0,f._fuzzySuggestions)({inputValue:Q,allSuggestions:G}).values),U}x.ValidationService=w,x._fuzzyCheckStrings=k;let R=new Set(["firstChildChanged","lastChildChanged","childIndexChanged"])},7486:function(ne,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.getCellValue=x.expireValueCache=void 0;let M=p(4422),A=p(7766);x.expireValueCache=function(F){var D;(D=F.valueCache)==null||D.expire()},x.getCellValue=function(F,D){var d,g;let{colKey:f,rowNode:v,useFormatter:u}=D,s=(d=F.colModel.getColDefCol(f))!=null?d:F.colModel.getCol(f);if((0,M._missing)(s))return null;let r=F.valueSvc.getValueForDisplay(s,v);return u?(g=F.valueSvc.formatValue(s,v,r))!=null?g:(0,A._escapeString)(r,!0):r}},2878:function(ne,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.ChangeDetectionService=void 0;let M=p(8731),A=p(7274),F=p(6800);class D extends M.BeanStub{constructor(){super(...arguments),this.beanName="changeDetectionSvc",this.clientSideRowModel=null}postConstruct(){let{gos:v,rowModel:u}=this.beans;(0,A._isClientSideRowModel)(v,u)&&(this.clientSideRowModel=u),this.addManagedEventListeners({cellValueChanged:this.onCellValueChanged.bind(this)})}onCellValueChanged(v){let{gos:u,rowRenderer:s}=this.beans;if(v.source==="paste"||u.get("suppressChangeDetection"))return;let r=v.node,d=[r],g=this.clientSideRowModel,m=g==null?void 0:g.rootNode;if(m&&!r.isRowPinned()){let b=u.get("aggregateOnlyChangedColumns"),w=new F.ChangedPath(b,m);w.addParentNode(r.parent,[v.column]),g.doAggregate(w),w.forEachChangedNodeDepthFirst(k=>{d.push(k)})}s.refreshCells({rowNodes:d})}}x.ChangeDetectionService=D},5751:function(ne,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.ExpressionService=void 0;let M=p(8731),A=p(7764);class F extends M.BeanStub{constructor(){super(...arguments),this.beanName="expressionSvc",this.cache={}}evaluate(f,v){if(typeof f=="string")return this.evaluateExpression(f,v);(0,A._error)(15,{expression:f})}evaluateExpression(f,v){try{return this.createExpressionFunction(f)(v.value,v.context,v.oldValue,v.newValue,v.value,v.node,v.data,v.colDef,v.rowIndex,v.api,v.getValue,v.column,v.columnGroup)}catch(u){return(0,A._error)(16,{expression:f,params:v,e:u}),null}}createExpressionFunction(f){let v=this.cache;if(v[f])return v[f];let u=this.createFunctionBody(f),s=new Function("x, ctx, oldValue, newValue, value, node, data, colDef, rowIndex, api, getValue, column, columnGroup",u);return v[f]=s,s}createFunctionBody(f){return f.indexOf("return")>=0?f:"return "+f+";"}}x.ExpressionService=F},3913:function(ne,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.ValueCache=void 0;let M=p(8731);class A extends M.BeanStub{constructor(){super(...arguments),this.beanName="valueCache",this.cacheVersion=0}postConstruct(){let D=this.gos;this.active=D.get("valueCache"),this.neverExpires=D.get("valueCacheNeverExpires")}onDataChanged(){this.neverExpires||this.expire()}expire(){this.cacheVersion++}setValue(D,f,v){if(this.active){let u=this.cacheVersion;D.__cacheVersion!==u&&(D.__cacheVersion=u,D.__cacheData={}),D.__cacheData[f]=v}}getValue(D,f){if(this.active&&D.__cacheVersion===this.cacheVersion)return D.__cacheData[f]}}x.ValueCache=A},6431:function(ne,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.CellApiModule=x.ChangeDetectionModule=x.ExpressionModule=x.ValueCacheModule=void 0;let M=p(7205),A=p(7486),F=p(2878),D=p(5751),f=p(3913);x.ValueCacheModule={moduleName:"ValueCache",version:M.VERSION,beans:[f.ValueCache],apiFunctions:{expireValueCache:A.expireValueCache}},x.ExpressionModule={moduleName:"Expression",version:M.VERSION,beans:[D.ExpressionService]},x.ChangeDetectionModule={moduleName:"ChangeDetection",version:M.VERSION,beans:[F.ChangeDetectionService]},x.CellApiModule={moduleName:"CellApi",version:M.VERSION,apiFunctions:{getCellValue:A.getCellValue}}},5736:function(ne,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.ValueService=void 0;let M=p(8731),A=p(7274),F=p(4422),D=p(6996),f=p(7764);class v extends M.BeanStub{constructor(){super(...arguments),this.beanName="valueSvc",this.initialised=!1,this.isSsrm=!1}wireBeans(s){this.expressionSvc=s.expressionSvc,this.colModel=s.colModel,this.valueCache=s.valueCache,this.dataTypeSvc=s.dataTypeSvc}postConstruct(){this.initialised||this.init()}init(){this.executeValueGetter=this.valueCache?this.executeValueGetterWithValueCache.bind(this):this.executeValueGetterWithoutValueCache.bind(this),this.isSsrm=(0,A._isServerSideRowModel)(this.gos),this.cellExpressions=this.gos.get("enableCellExpressions"),this.isTreeData=this.gos.get("treeData"),this.initialised=!0;let s=r=>this.callColumnCellValueChangedHandler(r);this.eventSvc.addEventListener("cellValueChanged",s,!0),this.addDestroyFunc(()=>this.eventSvc.removeEventListener("cellValueChanged",s,!0)),this.addManagedPropertyListener("treeData",r=>this.isTreeData=r.currentValue)}getValueForDisplay(s,r){let d=r.leafGroup&&this.colModel.isPivotMode(),g=r.group&&r.expanded&&!r.footer&&!d,m=this.gos.get("groupSuppressBlankHeader");if(!g||m)return this.getValue(s,r);let b=!1,w=this.gos.get("groupTotalRow");typeof w!="function"?b=!!w:b=!!this.gos.getCallback("groupTotalRow")({node:this});let k=g&&b;return this.getValue(s,r,k)}getValue(s,r,d=!1){if(this.initialised||this.init(),!r)return;let g=s.getColDef(),m=g.field,b=s.getColId(),w=r.data,k,R=r.groupData&&r.groupData[b]!==void 0,T=!d&&r.aggData&&r.aggData[b]!==void 0,z=this.isSsrm&&d&&!!s.getColDef().aggFunc,G=this.isSsrm&&r.footer&&r.field&&(s.getColDef().showRowGroup===!0||s.getColDef().showRowGroup===r.field);if(this.isTreeData&&T?k=r.aggData[b]:this.isTreeData&&g.valueGetter?k=this.executeValueGetter(g.valueGetter,w,s,r):this.isTreeData&&m&&w?k=(0,D._getValueUsingField)(w,m,s.isFieldContainsDots()):R?k=r.groupData[b]:T?k=r.aggData[b]:g.valueGetter?k=this.executeValueGetter(g.valueGetter,w,s,r):G?k=(0,D._getValueUsingField)(w,r.field,s.isFieldContainsDots()):m&&w&&!z&&(k=(0,D._getValueUsingField)(w,m,s.isFieldContainsDots())),this.cellExpressions&&typeof k=="string"&&k.indexOf("=")===0){let U=k.substring(1);k=this.executeValueGetter(U,w,s,r)}if(k==null){let U=this.getOpenedGroup(r,s);if(U!=null)return U}return k}parseValue(s,r,d,g){var w;let m=s.getColDef(),b=m.valueParser;if((0,F._exists)(b)){let k=this.gos.addGridCommonParams({node:r,data:r==null?void 0:r.data,oldValue:g,newValue:d,colDef:m,column:s});return typeof b=="function"?b(k):(w=this.expressionSvc)==null?void 0:w.evaluate(b,k)}return d}getDeleteValue(s,r){var d;return(0,F._exists)(s.getColDef().valueParser)&&(d=this.parseValue(s,r,"",this.getValueForDisplay(s,r)))!=null?d:null}formatValue(s,r,d,g,m=!0){let b,w=null,k=s.getColDef();if(g?b=g:m&&(b=k.valueFormatter),b){let R=this.gos.addGridCommonParams({value:d,node:r,data:r?r.data:null,colDef:k,column:s});w=typeof b=="function"?b(R):this.expressionSvc?this.expressionSvc.evaluate(b,R):null}else if(k.refData)return k.refData[d]||"";return w==null&&Array.isArray(d)&&(w=d.join(", ")),w}getOpenedGroup(s,r){if(!this.gos.get("showOpenedGroup")||!r.getColDef().showRowGroup)return;let d=r.getColDef().showRowGroup,g=s.parent;for(;g!=null;){if(g.rowGroupColumn&&(d===!0||d===g.rowGroupColumn.getColId()))return g.key;g=g.parent}}setValue(s,r,d,g){var z,G;let m=this.colModel.getColDefCol(r);if(!s||!m)return!1;(0,F._missing)(s.data)&&(s.data={});let{field:b,valueSetter:w}=m.getColDef();if((0,F._missing)(b)&&(0,F._missing)(w))return(0,f._warn)(17),!1;if(this.dataTypeSvc&&!this.dataTypeSvc.checkType(m,d))return(0,f._warn)(135),!1;let k=this.gos.addGridCommonParams({node:s,data:s.data,oldValue:this.getValue(m,s),newValue:d,colDef:m.getColDef(),column:m}),R;if(k.newValue=d,R=(0,F._exists)(w)?typeof w=="function"?w(k):(z=this.expressionSvc)==null?void 0:z.evaluate(w,k):this.setValueUsingField(s.data,b,d,m.isFieldContainsDots()),R===void 0&&(R=!0),!R)return!1;s.resetQuickFilterAggregateText(),(G=this.valueCache)==null||G.onDataChanged();let T=this.getValue(m,s);return this.eventSvc.dispatchEvent({type:"cellValueChanged",event:null,rowIndex:s.rowIndex,rowPinned:s.rowPinned,column:k.column,colDef:k.colDef,data:s.data,node:s,oldValue:k.oldValue,newValue:T,value:T,source:g}),!0}callColumnCellValueChangedHandler(s){let r=s.colDef.onCellValueChanged;typeof r=="function"&&this.beans.frameworkOverrides.wrapOutgoing(()=>{r({node:s.node,data:s.data,oldValue:s.oldValue,newValue:s.newValue,colDef:s.colDef,column:s.column,api:s.api,context:s.context})})}setValueUsingField(s,r,d,g){if(!r)return!1;let m=!1;if(g){let b=r.split("."),w=s;for(;b.length>0&&w;){let k=b.shift();b.length===0?(m=w[k]===d,m||(w[k]=d)):w=w[k]}}else m=s[r]===d,m||(s[r]=d);return!m}executeValueGetterWithValueCache(s,r,d,g){let m=d.getColId(),b=this.valueCache.getValue(g,m);if(b!==void 0)return b;let w=this.executeValueGetterWithoutValueCache(s,r,d,g);return this.valueCache.setValue(g,m,w),w}executeValueGetterWithoutValueCache(s,r,d,g){var w;let m=this.gos.addGridCommonParams({data:r,node:g,column:d,colDef:d.getColDef(),getValue:this.getValueCallback.bind(this,g)}),b;return b=typeof s=="function"?s(m):(w=this.expressionSvc)==null?void 0:w.evaluate(s,m),b}getValueCallback(s,r){let d=this.colModel.getColDefCol(r);return d?this.getValue(d,s):null}getKeyForNode(s,r){let d=this.getValue(s,r),g=s.getColDef().keyCreator,m=d;return g&&(m=g(this.gos.addGridCommonParams({value:d,colDef:s.getColDef(),column:s,node:r,data:r.data}))),typeof m=="string"||m==null||(m=String(m),m==="[object Object]"&&(0,f._warn)(121)),m}}x.ValueService=v},6511:function(ne,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.VanillaFrameworkOverrides=void 0;let M=p(3263),A=p(2979),F=p(7990),D=p(7764);x.VanillaFrameworkOverrides=class{constructor(f="javascript"){this.frameworkName=f,this.renderingEngine="vanilla",this.wrapIncoming=v=>v(),this.wrapOutgoing=v=>v(),this.baseDocLink=`${M.BASE_URL}/${this.frameworkName}-data-grid`,(0,D.setValidationDocLink)(this.baseDocLink)}setInterval(f,v){return new F.AgPromise(u=>{u(window.setInterval(f,v))})}addEventListener(f,v,u,s){let r={};if(typeof s=="object"?r=s:typeof s=="boolean"&&(r={capture:s}),r.passive==null){let d=(0,A.getPassiveStateForEvent)(v);d!=null&&(r.passive=d)}f.addEventListener(v,u,r)}frameworkComponent(f){return null}isFrameworkComponent(f){return!1}getDocLink(f){return`${this.baseDocLink}${f?`/${f}`:""}`}}},7205:function(ne,x){Object.defineProperty(x,"__esModule",{value:!0}),x.VERSION=void 0,x.VERSION="33.0.1"},7321:function(ne,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.AgAbstractField=void 0;let M=p(5230),A=p(3507),F=p(2747);class D extends F.AgAbstractLabel{constructor(v,u,s,r){super(v,u,s),this.className=r}postConstruct(){super.postConstruct();let{width:v,value:u,onValueChange:s}=this.config;v!=null&&this.setWidth(v),u!=null&&this.setValue(u),s!=null&&this.onValueChange(s),this.className&&this.addCssClass(this.className),this.refreshAriaLabelledBy()}setLabel(v){return super.setLabel(v),this.refreshAriaLabelledBy(),this}refreshAriaLabelledBy(){let v=this.getAriaElement(),u=this.getLabelId(),s=this.getLabel();s==null||s==""||(0,M._getAriaLabel)(v)!==null?(0,M._setAriaLabelledBy)(v,""):(0,M._setAriaLabelledBy)(v,u!=null?u:"")}setAriaLabel(v){return(0,M._setAriaLabel)(this.getAriaElement(),v),this.refreshAriaLabelledBy(),this}onValueChange(v){return this.addManagedListeners(this,{fieldValueChanged:()=>v(this.getValue())}),this}getWidth(){return this.getGui().clientWidth}setWidth(v){return(0,A._setFixedWidth)(this.getGui(),v),this}getPreviousValue(){return this.previousValue}getValue(){return this.value}setValue(v,u){return this.value===v||(this.previousValue=this.value,this.value=v,u||this.dispatchLocalEvent({type:"fieldValueChanged"})),this}}x.AgAbstractField=D},8085:function(ne,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.AgAbstractInputField=void 0;let M=p(5230),A=p(3507),F=p(7321),D=p(8020);class f extends F.AgAbstractField{constructor(u,s,r="text",d="input"){var g;super(u,(g=u==null?void 0:u.template)!=null?g:`
            <div role="presentation">
                <div data-ref="eLabel" class="ag-input-field-label"></div>
                <div data-ref="eWrapper" class="ag-wrapper ag-input-wrapper" role="presentation">
                    <${d} data-ref="eInput" class="ag-input-field-input"></${d}>
                </div>
            </div>`,[],s),this.inputType=r,this.displayFieldTag=d,this.eLabel=D.RefPlaceholder,this.eWrapper=D.RefPlaceholder,this.eInput=D.RefPlaceholder}postConstruct(){super.postConstruct(),this.setInputType();let{eLabel:u,eWrapper:s,eInput:r,className:d}=this;u.classList.add(`${d}-label`),s.classList.add(`${d}-input-wrapper`),r.classList.add(`${d}-input`),this.addCssClass("ag-input-field"),r.id=r.id||`ag-${this.getCompId()}-input`;let{inputName:g,inputWidth:m}=this.config;g!=null&&this.setInputName(g),m!=null&&this.setInputWidth(m),this.addInputListeners(),this.activateTabIndex([r])}addInputListeners(){this.addManagedElementListeners(this.eInput,{input:u=>this.setValue(u.target.value)})}setInputType(){this.displayFieldTag==="input"&&this.eInput.setAttribute("type",this.inputType)}getInputElement(){return this.eInput}setInputWidth(u){return(0,A._setElementWidth)(this.eWrapper,u),this}setInputName(u){return this.getInputElement().setAttribute("name",u),this}getFocusableElement(){return this.eInput}setMaxLength(u){return this.eInput.maxLength=u,this}setInputPlaceholder(u){return(0,A._addOrRemoveAttribute)(this.eInput,"placeholder",u),this}setInputAriaLabel(u){return(0,M._setAriaLabel)(this.eInput,u),this.refreshAriaLabelledBy(),this}setDisabled(u){return(0,A._setDisabled)(this.eInput,u),super.setDisabled(u)}setAutoComplete(u){if(u===!0)(0,A._addOrRemoveAttribute)(this.eInput,"autocomplete",null);else{let s=typeof u=="string"?u:"off";(0,A._addOrRemoveAttribute)(this.eInput,"autocomplete",s)}return this}}x.AgAbstractInputField=f},2178:function(ne,x){Object.defineProperty(x,"__esModule",{value:!0}),x.agAbstractLabelCSS=void 0,x.agAbstractLabelCSS=".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)}"},2747:function(ne,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.AgAbstractLabel=void 0;let M=p(5230),A=p(3507),F=p(2178),D=p(8020);class f extends D.Component{constructor(u,s,r){super(s,r),this.labelSeparator="",this.labelAlignment="left",this.disabled=!1,this.label="",this.config=u||{},this.registerCSS(F.agAbstractLabelCSS)}postConstruct(){this.addCssClass("ag-labeled"),this.eLabel.classList.add("ag-label");let{labelSeparator:u,label:s,labelWidth:r,labelAlignment:d,disabled:g}=this.config;g!=null&&this.setDisabled(g),u!=null&&this.setLabelSeparator(u),s!=null&&this.setLabel(s),r!=null&&this.setLabelWidth(r),this.setLabelAlignment(d||this.labelAlignment),this.refreshLabel()}refreshLabel(){let{label:u,eLabel:s}=this;(0,A._clearElement)(s),typeof u=="string"?s.innerText=u+this.labelSeparator:u&&s.appendChild(u),u===""?((0,A._setDisplayed)(s,!1),(0,M._setAriaRole)(s,"presentation")):((0,A._setDisplayed)(s,!0),(0,M._setAriaRole)(s,null))}setLabelSeparator(u){return this.labelSeparator===u||(this.labelSeparator=u,this.label!=null&&this.refreshLabel()),this}getLabelId(){let u=this.eLabel;return u.id=u.id||`ag-${this.getCompId()}-label`,u.id}getLabel(){return this.label}setLabel(u){return this.label===u||(this.label=u,this.refreshLabel()),this}setLabelAlignment(u){let s=this.getGui().classList;return s.toggle("ag-label-align-left",u==="left"),s.toggle("ag-label-align-right",u==="right"),s.toggle("ag-label-align-top",u==="top"),this}setLabelEllipsis(u){return this.eLabel.classList.toggle("ag-label-ellipsis",u),this}setLabelWidth(u){return this.label==null||(0,A._setElementWidth)(this.eLabel,u),this}setDisabled(u){u=!!u;let s=this.getGui();return(0,A._setDisabled)(s,u),s.classList.toggle("ag-disabled",u),this.disabled=u,this}isDisabled(){return!!this.disabled}}x.AgAbstractLabel=f},66:function(ne,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.AgCheckboxSelector=x.AgCheckbox=void 0;let M=p(8085);class A extends M.AgAbstractInputField{constructor(D,f="ag-checkbox",v="checkbox"){super(D,f,v),this.labelAlignment="right",this.selected=!1,this.readOnly=!1,this.passive=!1}postConstruct(){super.postConstruct();let{readOnly:D,passive:f}=this.config;typeof D=="boolean"&&this.setReadOnly(D),typeof f=="boolean"&&this.setPassive(f)}addInputListeners(){this.addManagedElementListeners(this.eInput,{click:this.onCheckboxClick.bind(this)}),this.addManagedElementListeners(this.eLabel,{click:this.toggle.bind(this)})}getNextValue(){return this.selected===void 0||!this.selected}setPassive(D){this.passive=D}isReadOnly(){return this.readOnly}setReadOnly(D){this.eWrapper.classList.toggle("ag-disabled",D),this.eInput.disabled=D,this.readOnly=D}setDisabled(D){return this.eWrapper.classList.toggle("ag-disabled",D),super.setDisabled(D)}toggle(){if(this.eInput.disabled)return;let D=this.isSelected(),f=this.getNextValue();this.passive?this.dispatchChange(f,D):this.setValue(f)}getValue(){return this.isSelected()}setValue(D,f){return this.refreshSelectedClass(D),this.setSelected(D,f),this}setName(D){return this.getInputElement().name=D,this}isSelected(){return this.selected}setSelected(D,f){if(this.isSelected()===D)return;this.previousValue=this.isSelected(),D=this.selected=typeof D=="boolean"?D:void 0;let v=this.eInput;v.checked=D,v.indeterminate=D===void 0,f||this.dispatchChange(this.selected,this.previousValue)}dispatchChange(D,f,v){this.dispatchLocalEvent({type:"fieldValueChanged",selected:D,previousValue:f,event:v});let u=this.getInputElement();this.eventSvc.dispatchEvent({type:"checkboxChanged",id:u.id,name:u.name,selected:D,previousValue:f})}onCheckboxClick(D){if(this.passive||this.eInput.disabled)return;let f=this.isSelected(),v=this.selected=D.target.checked;this.refreshSelectedClass(v),this.dispatchChange(v,f,D)}refreshSelectedClass(D){let f=this.eWrapper.classList;f.toggle("ag-checked",D===!0),f.toggle("ag-indeterminate",D==null)}}x.AgCheckbox=A,x.AgCheckboxSelector={selector:"AG-CHECKBOX",component:A}},3611:function(ne,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.AgInputDateFieldSelector=x.AgInputDateField=void 0;let M=p(7274),A=p(8667),F=p(9827),D=p(3507),f=p(5946);class v extends f.AgInputTextField{constructor(s){super(s,"ag-date-field","date")}postConstruct(){super.postConstruct();let s=(0,A._isBrowserSafari)();this.addManagedListeners(this.eInput,{wheel:this.onWheel.bind(this),mousedown:()=>{this.isDisabled()||s||this.eInput.focus()}}),this.eInput.step="any"}onWheel(s){(0,M._getActiveDomElement)(this.beans)===this.eInput&&s.preventDefault()}setMin(s){var d;let r=s instanceof Date?(d=(0,F._serialiseDate)(s!=null?s:null,!1))!=null?d:void 0:s;return this.min===r||(this.min=r,(0,D._addOrRemoveAttribute)(this.eInput,"min",r)),this}setMax(s){var d;let r=s instanceof Date?(d=(0,F._serialiseDate)(s!=null?s:null,!1))!=null?d:void 0:s;return this.max===r||(this.max=r,(0,D._addOrRemoveAttribute)(this.eInput,"max",r)),this}setStep(s){return this.step===s||(this.step=s,(0,D._addOrRemoveAttribute)(this.eInput,"step",s)),this}getDate(){var s;if(this.eInput.validity.valid)return(s=(0,F._parseDateTimeFromString)(this.getValue()))!=null?s:void 0}setDate(s,r){this.setValue((0,F._serialiseDate)(s!=null?s:null,!1),r)}}x.AgInputDateField=v,x.AgInputDateFieldSelector={selector:"AG-INPUT-DATE-FIELD",component:v}},8792:function(ne,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.AgInputNumberFieldSelector=x.AgInputNumberField=void 0;let M=p(7274),A=p(3507),F=p(4422),D=p(5946);class f extends D.AgInputTextField{constructor(u){super(u,"ag-number-field","number")}postConstruct(){super.postConstruct();let u=this.eInput;this.addManagedListeners(u,{blur:()=>{let m=parseFloat(u.value),b=isNaN(m)?"":this.normalizeValue(m.toString());this.value!==b&&this.setValue(b)},wheel:this.onWheel.bind(this)}),u.step="any";let{precision:s,min:r,max:d,step:g}=this.config;typeof s=="number"&&this.setPrecision(s),typeof r=="number"&&this.setMin(r),typeof d=="number"&&this.setMax(d),typeof g=="number"&&this.setStep(g)}onWheel(u){(0,M._getActiveDomElement)(this.beans)===this.eInput&&u.preventDefault()}normalizeValue(u){if(u==="")return"";this.precision!=null&&(u=this.adjustPrecision(u));let s=parseFloat(u),{min:r,max:d}=this;return r!=null&&s<r?u=r.toString():d!=null&&s>d&&(u=d.toString()),u}adjustPrecision(u,s){let r=this.precision;if(r==null)return u;if(s){let g=parseFloat(u).toFixed(r);return parseFloat(g).toString()}let d=String(u).split(".");if(d.length>1){if(d[1].length<=r)return u;if(r>0)return`${d[0]}.${d[1].slice(0,r)}`}return d[0]}setMin(u){return this.min===u||(this.min=u,(0,A._addOrRemoveAttribute)(this.eInput,"min",u)),this}setMax(u){return this.max===u||(this.max=u,(0,A._addOrRemoveAttribute)(this.eInput,"max",u)),this}setPrecision(u){return this.precision=u,this}setStep(u){return this.step===u||(this.step=u,(0,A._addOrRemoveAttribute)(this.eInput,"step",u)),this}setValue(u,s){return this.setValueOrInputValue(r=>super.setValue(r,s),()=>this,u)}setStartValue(u){return this.setValueOrInputValue(s=>super.setValue(s,!0),s=>{this.eInput.value=s},u)}setValueOrInputValue(u,s,r){if((0,F._exists)(r)){let d=this.isScientificNotation(r);if(d&&this.eInput.validity.valid)return u(r);if(d||(d=(r=this.adjustPrecision(r))!=this.normalizeValue(r)),d)return s(r)}return u(r)}getValue(){let u=this.eInput;if(!u.validity.valid)return;let s=u.value;return this.isScientificNotation(s)?this.adjustPrecision(s,!0):super.getValue()}isScientificNotation(u){return typeof u=="string"&&u.includes("e")}}x.AgInputNumberField=f,x.AgInputNumberFieldSelector={selector:"AG-INPUT-NUMBER-FIELD",component:f}},6209:function(ne,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.AgInputTextAreaSelector=x.AgInputTextArea=void 0;let M=p(8085);class A extends M.AgAbstractInputField{constructor(D){super(D,"ag-text-area",null,"textarea")}setValue(D,f){let v=super.setValue(D,f);return this.eInput.value=D,v}setCols(D){return this.eInput.cols=D,this}setRows(D){return this.eInput.rows=D,this}}x.AgInputTextArea=A,x.AgInputTextAreaSelector={selector:"AG-INPUT-TEXT-AREA",component:A}},5946:function(ne,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.AgInputTextFieldSelector=x.AgInputTextField=void 0;let M=p(4422),A=p(6466),F=p(8085);class D extends F.AgAbstractInputField{constructor(v,u="ag-text-field",s="text"){super(v,u,s)}postConstruct(){super.postConstruct(),this.config.allowedCharPattern&&this.preventDisallowedCharacters()}setValue(v,u){let s=this.eInput;return s.value!==v&&(s.value=(0,M._exists)(v)?v:""),super.setValue(v,u)}setStartValue(v){this.setValue(v,!0)}preventDisallowedCharacters(){let v=new RegExp(`[${this.config.allowedCharPattern}]`);this.addManagedListeners(this.eInput,{keydown:u=>{(0,A._isEventFromPrintableCharacter)(u)&&u.key&&!v.test(u.key)&&u.preventDefault()},paste:u=>{var r;let s=(r=u.clipboardData)==null?void 0:r.getData("text");s&&s.split("").some(d=>!v.test(d))&&u.preventDefault()}})}}x.AgInputTextField=D,x.AgInputTextFieldSelector={selector:"AG-INPUT-TEXT-FIELD",component:D}},7283:function(ne,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.AgList=void 0;let M=p(9853),A=p(7274),F=p(5230),D=p(3507),f=p(8020);class v extends f.Component{constructor(s="default",r=!1){super(`<div class="ag-list ag-${s}-list" role="listbox"></div>`),this.cssIdentifier=s,this.unFocusable=r,this.activeClass="ag-active-item",this.options=[],this.itemEls=[]}postConstruct(){let s=this.getGui();this.addManagedElementListeners(s,{mouseleave:()=>this.clearHighlighted()}),this.unFocusable||this.addManagedElementListeners(s,{keydown:this.handleKeyDown.bind(this)})}handleKeyDown(s){let r=s.key;switch(r){case M.KeyCode.ENTER:if(this.highlightedEl){let d=this.itemEls.indexOf(this.highlightedEl);this.setValueByIndex(d)}else this.setValue(this.getValue());break;case M.KeyCode.DOWN:case M.KeyCode.UP:s.preventDefault(),this.navigate(r);break;case M.KeyCode.PAGE_DOWN:case M.KeyCode.PAGE_UP:case M.KeyCode.PAGE_HOME:case M.KeyCode.PAGE_END:s.preventDefault(),this.navigateToPage(r)}}navigate(s){let r=s===M.KeyCode.DOWN,d,{itemEls:g,highlightedEl:m}=this;if(m){let b=g.indexOf(m)+(r?1:-1);b=Math.min(Math.max(b,0),g.length-1),d=g[b]}else d=g[r?0:g.length-1];this.highlightItem(d)}navigateToPage(s){let{itemEls:r,highlightedEl:d}=this;if(!d||r.length===0)return;let g=r.indexOf(d),m=this.options.length-1,b=r[0].clientHeight,w=Math.floor(this.getGui().clientHeight/b),k=-1;s===M.KeyCode.PAGE_HOME?k=0:s===M.KeyCode.PAGE_END?k=m:s===M.KeyCode.PAGE_DOWN?k=Math.min(g+w,m):s===M.KeyCode.PAGE_UP&&(k=Math.max(g-w,0)),k!==-1&&this.highlightItem(r[k])}addOptions(s){return s.forEach(r=>this.addOption(r)),this}addOption(s){let{value:r,text:d}=s,g=d||r;return this.options.push({value:r,text:g}),this.renderOption(r,g),this.updateIndices(),this}clearOptions(){this.options=[],this.reset(!0),this.itemEls.forEach(s=>{(0,D._removeFromParent)(s)}),this.itemEls=[]}updateIndices(){let s=this.getGui().querySelectorAll(".ag-list-item");s.forEach((r,d)=>{(0,F._setAriaPosInSet)(r,d+1),(0,F._setAriaSetSize)(r,s.length)})}renderOption(s,r){let d=(0,A._getDocument)(this.beans),g=d.createElement("div");(0,F._setAriaRole)(g,"option"),g.classList.add("ag-list-item",`ag-${this.cssIdentifier}-list-item`);let m=d.createElement("span");g.appendChild(m),m.textContent=r,this.unFocusable||(g.tabIndex=-1),this.itemEls.push(g),this.addManagedListeners(g,{mouseover:()=>this.highlightItem(g),mousedown:b=>{b.preventDefault(),b.stopPropagation(),this.setValue(s)}}),this.createOptionalManagedBean(this.beans.registry.createDynamicBean("tooltipFeature",!1,{getTooltipValue:()=>r,getGui:()=>g,getLocation:()=>"UNKNOWN",shouldDisplayTooltip:()=>m.scrollWidth>m.clientWidth})),this.getGui().appendChild(g)}setValue(s,r){if(this.value===s)return this.fireItemSelected(),this;if(s==null)return this.reset(r),this;let d=this.options.findIndex(g=>g.value===s);if(d!==-1){let g=this.options[d];this.value=g.value,this.displayValue=g.text,this.highlightItem(this.itemEls[d]),r||this.fireChangeEvent()}return this}setValueByIndex(s){return this.setValue(this.options[s].value)}getValue(){return this.value}getDisplayValue(){return this.displayValue}refreshHighlighted(){this.clearHighlighted();let s=this.options.findIndex(r=>r.value===this.value);s!==-1&&this.highlightItem(this.itemEls[s])}reset(s){this.value=null,this.displayValue=null,this.clearHighlighted(),s||this.fireChangeEvent()}highlightItem(s){if(!(0,D._isVisible)(s))return;this.clearHighlighted(),this.highlightedEl=s,s.classList.add(this.activeClass),(0,F._setAriaSelected)(s,!0);let r=this.getGui(),{scrollTop:d,clientHeight:g}=r,{offsetTop:m,offsetHeight:b}=s;(m+b>d+g||m<d)&&s.scrollIntoView({block:"nearest"}),this.unFocusable||s.focus()}clearHighlighted(){let s=this.highlightedEl;s&&(0,D._isVisible)(s)&&(s.classList.remove(this.activeClass),(0,F._setAriaSelected)(s,!1),this.highlightedEl=null)}fireChangeEvent(){this.dispatchLocalEvent({type:"fieldValueChanged"}),this.fireItemSelected()}fireItemSelected(){this.dispatchLocalEvent({type:"selectedItem"})}}x.AgList=v},4772:function(ne,x){Object.defineProperty(x,"__esModule",{value:!0}),x.agPickerFieldCSS=void 0,x.agPickerFieldCSS=".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-background-color);border:var(--ag-input-border);border-radius:5px;min-height:max(var(--ag-list-item-height),calc(var(--ag-spacing)*4));overflow:hidden;&:disabled{opacity:.5}&.ag-picker-has-focus,&:focus-within{border:var(--ag-input-focus-border);box-shadow:var(--ag-focus-shadow)}}.ag-picker-field-button{background-color:var(--ag-background-color)}"},9497:function(ne,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.AgPickerField=void 0;let M=p(9853),A=p(7274),F=p(5230),D=p(3507),f=p(9970),v=p(7321),u=p(4772),s=p(8020);class r extends v.AgAbstractField{constructor(g){if(super(g,(g==null?void 0:g.template)||`
            <div class="ag-picker-field" role="presentation">
                <div data-ref="eLabel"></div>
                <div data-ref="eWrapper" class="ag-wrapper ag-picker-field-wrapper ag-picker-collapsed">
                    <div data-ref="eDisplayField" class="ag-picker-field-display"></div>
                    <div data-ref="eIcon" class="ag-picker-field-icon" aria-hidden="true"></div>
                </div>
            </div>`,(g==null?void 0:g.agComponents)||[],g==null?void 0:g.className),this.isPickerDisplayed=!1,this.skipClick=!1,this.pickerGap=4,this.hideCurrentPicker=null,this.eLabel=s.RefPlaceholder,this.eWrapper=s.RefPlaceholder,this.eDisplayField=s.RefPlaceholder,this.eIcon=s.RefPlaceholder,this.registerCSS(u.agPickerFieldCSS),this.ariaRole=g==null?void 0:g.ariaRole,this.onPickerFocusIn=this.onPickerFocusIn.bind(this),this.onPickerFocusOut=this.onPickerFocusOut.bind(this),!g)return;let{pickerGap:m,maxPickerHeight:b,variableWidth:w,minPickerWidth:k,maxPickerWidth:R}=g;m!=null&&(this.pickerGap=m),this.variableWidth=!!w,b!=null&&this.setPickerMaxHeight(b),k!=null&&this.setPickerMinWidth(k),R!=null&&this.setPickerMaxWidth(R)}postConstruct(){super.postConstruct(),this.setupAria();let g=`ag-${this.getCompId()}-display`;this.eDisplayField.setAttribute("id",g);let m=this.getAriaElement();this.addManagedElementListeners(m,{keydown:this.onKeyDown.bind(this)}),this.addManagedElementListeners(this.eLabel,{mousedown:this.onLabelOrWrapperMouseDown.bind(this)}),this.addManagedElementListeners(this.eWrapper,{mousedown:this.onLabelOrWrapperMouseDown.bind(this)});let{pickerIcon:b,inputWidth:w}=this.config;if(b){let k=(0,f._createIconNoSpan)(b,this.beans);k&&this.eIcon.appendChild(k)}w!=null&&this.setInputWidth(w)}setupAria(){let g=this.getAriaElement();g.setAttribute("tabindex",this.gos.get("tabIndex").toString()),(0,F._setAriaExpanded)(g,!1),this.ariaRole&&(0,F._setAriaRole)(g,this.ariaRole)}onLabelOrWrapperMouseDown(g){if(g){let m=this.getFocusableElement();if(m!==this.eWrapper&&(g==null?void 0:g.target)===m)return;g.preventDefault(),this.getFocusableElement().focus()}this.skipClick?this.skipClick=!1:this.isDisabled()||(this.isPickerDisplayed?this.hidePicker():this.showPicker())}onKeyDown(g){switch(g.key){case M.KeyCode.UP:case M.KeyCode.DOWN:case M.KeyCode.ENTER:case M.KeyCode.SPACE:g.preventDefault(),this.onLabelOrWrapperMouseDown();break;case M.KeyCode.ESCAPE:this.isPickerDisplayed&&(g.preventDefault(),g.stopPropagation(),this.hideCurrentPicker&&this.hideCurrentPicker())}}showPicker(){this.isPickerDisplayed=!0,this.pickerComponent||(this.pickerComponent=this.createPickerComponent());let g=this.pickerComponent.getGui();g.addEventListener("focusin",this.onPickerFocusIn),g.addEventListener("focusout",this.onPickerFocusOut),this.hideCurrentPicker=this.renderAndPositionPicker(),this.toggleExpandedStyles(!0)}renderAndPositionPicker(){let g=this.pickerComponent.getGui();this.gos.get("suppressScrollWhenPopupsAreOpen")||([this.destroyMouseWheelFunc]=this.addManagedEventListeners({bodyScroll:()=>{this.hidePicker()}}));let m=this.getLocaleTextFunc(),{config:{pickerAriaLabelKey:b,pickerAriaLabelValue:w,modalPicker:k=!0},maxPickerHeight:R,minPickerWidth:T,maxPickerWidth:z,variableWidth:G,beans:U,eWrapper:X}=this,Q={modal:k,eChild:g,closeOnEsc:!0,closedCallback:()=>{let ye=(0,A._isNothingFocused)(U);this.beforeHidePicker(),ye&&this.isAlive()&&this.getFocusableElement().focus()},ariaLabel:m(b,w),anchorToElement:X};g.style.position="absolute";let oe=U.popupSvc,le=oe.addPopup(Q);G?(T&&(g.style.minWidth=T),g.style.width=(0,D._formatSize)((0,D._getAbsoluteWidth)(X)),z&&(g.style.maxWidth=z)):(0,D._setElementWidth)(g,z!=null?z:(0,D._getAbsoluteWidth)(X));let fe=R!=null?R:`${(0,D._getInnerHeight)(oe.getPopupParent())}px`;return g.style.setProperty("max-height",fe),this.alignPickerToComponent(),le.hideFunc}alignPickerToComponent(){if(!this.pickerComponent)return;let{pickerGap:g,config:{pickerType:m},beans:{popupSvc:b,gos:w},eWrapper:k,pickerComponent:R}=this,T=w.get("enableRtl")?"right":"left";b.positionPopupByComponent({type:m,eventSource:k,ePopup:R.getGui(),position:"under",alignSide:T,keepWithinBounds:!0,nudgeY:g})}beforeHidePicker(){this.destroyMouseWheelFunc&&(this.destroyMouseWheelFunc(),this.destroyMouseWheelFunc=void 0),this.toggleExpandedStyles(!1);let g=this.pickerComponent.getGui();g.removeEventListener("focusin",this.onPickerFocusIn),g.removeEventListener("focusout",this.onPickerFocusOut),this.isPickerDisplayed=!1,this.pickerComponent=void 0,this.hideCurrentPicker=null}toggleExpandedStyles(g){if(!this.isAlive())return;let m=this.getAriaElement();(0,F._setAriaExpanded)(m,g);let b=this.eWrapper.classList;b.toggle("ag-picker-expanded",g),b.toggle("ag-picker-collapsed",!g)}onPickerFocusIn(){this.togglePickerHasFocus(!0)}onPickerFocusOut(g){var m;(m=this.pickerComponent)!=null&&m.getGui().contains(g.relatedTarget)||this.togglePickerHasFocus(!1)}togglePickerHasFocus(g){this.pickerComponent&&this.eWrapper.classList.toggle("ag-picker-has-focus",g)}hidePicker(){var g;(g=this.hideCurrentPicker)==null||g.call(this)}setInputWidth(g){return(0,D._setElementWidth)(this.eWrapper,g),this}getFocusableElement(){return this.eWrapper}setPickerGap(g){return this.pickerGap=g,this}setPickerMinWidth(g){return typeof g=="number"&&(g=`${g}px`),this.minPickerWidth=g==null?void 0:g,this}setPickerMaxWidth(g){return typeof g=="number"&&(g=`${g}px`),this.maxPickerWidth=g==null?void 0:g,this}setPickerMaxHeight(g){return typeof g=="number"&&(g=`${g}px`),this.maxPickerHeight=g==null?void 0:g,this}destroy(){this.hidePicker(),super.destroy()}}x.AgPickerField=r},7336:function(ne,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.AgRadioButton=void 0;let M=p(66);class A extends M.AgCheckbox{constructor(D){super(D,"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(D){let f=this.eInput;D.selected&&D.name&&f.name&&f.name===D.name&&D.id&&f.id!==D.id&&this.setValue(!1,!0)}}x.AgRadioButton=A},5310:function(ne,x){Object.defineProperty(x,"__esModule",{value:!0}),x.agSelectCSS=void 0,x.agSelectCSS=".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)}}"},159:function(ne,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.AgSelectSelector=x.AgSelect=void 0;let M=p(9853),A=p(3386),F=p(5230),D=p(7283),f=p(9497),v=p(5310);class u extends f.AgPickerField{constructor(r){super(pe({pickerAriaLabelKey:"ariaLabelSelectField",pickerAriaLabelValue:"Select Field",pickerType:"ag-list",className:"ag-select",pickerIcon:"selectOpen",ariaRole:"combobox"},r)),this.registerCSS(v.agSelectCSS)}postConstruct(){this.tooltipFeature=this.createOptionalManagedBean(this.beans.registry.createDynamicBean("tooltipFeature",!1,{shouldDisplayTooltip:(0,A._shouldDisplayTooltip)(()=>this.eDisplayField),getGui:()=>this.getGui()})),super.postConstruct(),this.createListComponent(),this.eWrapper.tabIndex=this.gos.get("tabIndex");let{options:r,value:d,placeholder:g}=this.config;r!=null&&this.addOptions(r),d!=null&&this.setValue(d,!0),g&&d==null&&(this.eDisplayField.textContent=g),this.addManagedElementListeners(this.eWrapper,{focusout:this.onWrapperFocusOut.bind(this)})}onWrapperFocusOut(r){this.eWrapper.contains(r.relatedTarget)||this.hidePicker()}createListComponent(){let r=this.createBean(new D.AgList("select",!0));this.listComponent=r,r.setParentComponent(this);let d=r.getAriaElement(),g=`ag-select-list-${r.getCompId()}`;d.setAttribute("id",g),(0,F._setAriaControls)(this.getAriaElement(),d),r.addManagedListeners(r,{selectedItem:()=>{this.hidePicker(),this.dispatchLocalEvent({type:"selectedItem"})}}),r.addManagedListeners(r,{fieldValueChanged:()=>{this.listComponent&&(this.setValue(this.listComponent.getValue(),!1,!0),this.hidePicker())}})}createPickerComponent(){return this.listComponent}onKeyDown(r){var g;let{key:d}=r;switch(d===M.KeyCode.TAB&&this.hidePicker(),d){case M.KeyCode.ENTER:case M.KeyCode.UP:case M.KeyCode.DOWN:case M.KeyCode.PAGE_UP:case M.KeyCode.PAGE_DOWN:case M.KeyCode.PAGE_HOME:case M.KeyCode.PAGE_END:r.preventDefault(),this.isPickerDisplayed?(g=this.listComponent)==null||g.handleKeyDown(r):super.onKeyDown(r);break;case M.KeyCode.ESCAPE:super.onKeyDown(r);break;case M.KeyCode.SPACE:this.isPickerDisplayed?r.preventDefault():super.onKeyDown(r)}}showPicker(){let r=this.listComponent;r&&(super.showPicker(),r.refreshHighlighted())}addOptions(r){return r.forEach(d=>this.addOption(d)),this}addOption(r){return this.listComponent.addOption(r),this}clearOptions(){var r;return(r=this.listComponent)==null||r.clearOptions(),this}setValue(r,d,g){let{listComponent:m,config:{placeholder:b},eDisplayField:w,tooltipFeature:k}=this;if(this.value===r||!m)return this;if(g||m.setValue(r,!0),m.getValue()===this.getValue())return this;let R=m.getDisplayValue();return R==null&&b&&(R=b),w.textContent=R,k==null||k.setTooltipAndRefresh(R!=null?R:null),super.setValue(r,d)}destroy(){this.listComponent=this.destroyBean(this.listComponent),super.destroy()}}x.AgSelect=u,x.AgSelectSelector={selector:"AG-SELECT",component:u}},8398:function(ne,x){Object.defineProperty(x,"__esModule",{value:!0}),x.agToggleButtonCSS=void 0,x.agToggleButtonCSS='.ag-toggle-button{flex:none;min-width:unset;width:unset}.ag-toggle-button-input-wrapper{background-color:var(--ag-toggle-button-off-background-color);border-radius:calc(var(--ag-toggle-button-height)*.5);flex:none;height:var(--ag-toggle-button-height);max-width:var(--ag-toggle-button-width);min-width:var(--ag-toggle-button-width);position:relative;transition:background-color .1s;:where(.ag-toggle-button-input){-webkit-appearance:none;-moz-appearance:none;appearance:none;cursor:pointer;display:block;height:var(--ag-toggle-button-height);margin:0;max-width:var(--ag-toggle-button-width);min-width:var(--ag-toggle-button-width);opacity:0}&:before{background-color:var(--ag-toggle-button-switch-background-color);border-radius:100%;content:"";display:block;height:calc(var(--ag-toggle-button-height) - var(--ag-toggle-button-switch-inset)*2);left:var(--ag-toggle-button-switch-inset);pointer-events:none;position:absolute;top:var(--ag-toggle-button-switch-inset);transition:left .1s;width:calc(var(--ag-toggle-button-height) - var(--ag-toggle-button-switch-inset)*2)}&.ag-checked{background-color:var(--ag-toggle-button-on-background-color);&:before{left:calc(100% - var(--ag-toggle-button-height) + var(--ag-toggle-button-switch-inset))}}&:focus-within{box-shadow:var(--ag-focus-shadow)}&.ag-disabled{opacity:.5}}'},4927:function(ne,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.AgToggleButtonSelector=x.AgToggleButton=void 0;let M=p(66),A=p(8398);class F extends M.AgCheckbox{constructor(f){super(f,"ag-toggle-button"),this.registerCSS(A.agToggleButtonCSS)}setValue(f,v){return super.setValue(f,v),this.addOrRemoveCssClass("ag-selected",this.getValue()),this}}x.AgToggleButton=F,x.AgToggleButtonSelector={selector:"AG-TOGGLE-BUTTON",component:F}},8020:function(ne,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.Component=x.RefPlaceholder=void 0;let M=p(8731),A=p(1734),F=p(3507),D=0;x.RefPlaceholder=null;class f extends M.BeanStub{constructor(u,s){super(),this.suppressDataRefValidation=!1,this.displayed=!0,this.visible=!0,this.compId=D++,this.cssClassManager=new A.CssClassManager(()=>this.eGui),this.componentSelectors=new Map((s!=null?s:[]).map(r=>[r.selector,r])),u&&this.setTemplate(u)}preConstruct(){var s,r,d;this.wireTemplate(this.getGui());let u="component-"+((r=(s=Object.getPrototypeOf(this))==null?void 0:s.constructor)==null?void 0:r.name);(d=this.css)==null||d.forEach(g=>this.beans.environment.addGlobalCSS(g,u))}wireTemplate(u,s){u&&this.gos&&(this.applyElementsToComponent(u),this.createChildComponentsFromTags(u,s))}getCompId(){return this.compId}getDataRefAttribute(u){return u.getAttribute?u.getAttribute("data-ref"):null}applyElementsToComponent(u,s,r,d=null){if(s===void 0&&(s=this.getDataRefAttribute(u)),s){let g=this[s];if(g===x.RefPlaceholder)this[s]=d!=null?d:u;else{let m=r&&r[s];if(!this.suppressDataRefValidation&&!m)throw new Error(`data-ref: ${s} on ${this.constructor.name} with ${g}`)}}}createChildComponentsFromTags(u,s){(0,F._copyNodeList)(u.childNodes).forEach(r=>{if(!(r instanceof HTMLElement))return;let d=this.createComponentFromElement(r,g=>{g.getGui()&&this.copyAttributesFromNode(r,g.getGui())},s);if(d){if(d.addItems&&r.children.length){this.createChildComponentsFromTags(r,s);let g=Array.prototype.slice.call(r.children);d.addItems(g)}this.swapComponentForNode(d,u,r)}else r.childNodes&&this.createChildComponentsFromTags(r,s)})}createComponentFromElement(u,s,r){let d=u.nodeName,g=this.getDataRefAttribute(u),m=d.indexOf("AG-")===0,b=m?this.componentSelectors.get(d):null,w=null;if(b){let k=r&&g?r[g]:void 0;w=new b.component(k),w.setParentComponent(this),this.createBean(w,null,s)}else if(m)throw new Error(`selector: ${d}`);return this.applyElementsToComponent(u,g,r,w),w}copyAttributesFromNode(u,s){(0,F._iterateNamedNodeMap)(u.attributes,(r,d)=>s.setAttribute(r,d))}swapComponentForNode(u,s,r){let d=u.getGui();s.replaceChild(d,r),s.insertBefore(document.createComment(r.nodeName),d),this.addDestroyFunc(this.destroyBean.bind(this,u))}activateTabIndex(u){let s=this.gos.get("tabIndex");u||(u=[]),u.length||u.push(this.getGui()),u.forEach(r=>r.setAttribute("tabindex",s.toString()))}setTemplate(u,s,r){let d=(0,F._loadTemplate)(u);this.setTemplateFromElement(d,s,r)}setTemplateFromElement(u,s,r,d=!1){if(this.eGui=u,this.suppressDataRefValidation=d,s)for(let g=0;g<s.length;g++){let m=s[g];this.componentSelectors.set(m.selector,m)}this.wireTemplate(u,r)}getGui(){return this.eGui}getFocusableElement(){return this.eGui}getAriaElement(){return this.getFocusableElement()}setParentComponent(u){this.parentComponent=u}getParentComponent(){return this.parentComponent}setGui(u){this.eGui=u}queryForHtmlElement(u){return this.eGui.querySelector(u)}getContainerAndElement(u,s){let r=s;return u==null?null:(r||(r=this.eGui),(0,F._isNodeOrElement)(u)?{element:u,parent:r}:{element:u.getGui(),parent:r})}prependChild(u,s){let{element:r,parent:d}=this.getContainerAndElement(u,s)||{};r&&d&&d.insertAdjacentElement("afterbegin",r)}appendChild(u,s){let{element:r,parent:d}=this.getContainerAndElement(u,s)||{};r&&d&&d.appendChild(r)}isDisplayed(){return this.displayed}setVisible(u,s={}){if(u!==this.visible){this.visible=u;let{skipAriaHidden:r}=s;(0,F._setVisible)(this.eGui,u,{skipAriaHidden:r})}}setDisplayed(u,s={}){if(u!==this.displayed){this.displayed=u;let{skipAriaHidden:r}=s;(0,F._setDisplayed)(this.eGui,u,{skipAriaHidden:r});let d={type:"displayChanged",visible:this.displayed};this.dispatchLocalEvent(d)}}destroy(){this.parentComponent&&(this.parentComponent=void 0),super.destroy()}addGuiEventListener(u,s,r){this.eGui.addEventListener(u,s,r),this.addDestroyFunc(()=>this.eGui.removeEventListener(u,s))}addCssClass(u){this.cssClassManager.addCssClass(u)}removeCssClass(u){this.cssClassManager.removeCssClass(u)}containsCssClass(u){return this.cssClassManager.containsCssClass(u)}addOrRemoveCssClass(u,s){this.cssClassManager.addOrRemoveCssClass(u,s)}registerCSS(u){this.css||(this.css=[]),this.css.push(u)}}x.Component=f},1772:function(ne,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.ManagedFocusFeature=x.FOCUS_MANAGED_CLASS=void 0;let M=p(9853),A=p(8731),F=p(2979),D=p(2331);x.FOCUS_MANAGED_CLASS="ag-focus-managed";class f extends A.BeanStub{constructor(u,s={}){super(),this.eFocusable=u,this.callbacks=s,this.callbacks=pe({shouldStopEventPropagation:()=>!1,onTabKeyDown:r=>{if(r.defaultPrevented)return;let d=(0,D._findNextFocusableElement)(this.beans,this.eFocusable,!1,r.shiftKey);d&&(d.focus(),r.preventDefault())}},s)}postConstruct(){let{eFocusable:u,callbacks:{onFocusIn:s,onFocusOut:r}}=this;u.classList.add(x.FOCUS_MANAGED_CLASS),this.addKeyDownListeners(u),s&&this.addManagedElementListeners(u,{focusin:s}),r&&this.addManagedElementListeners(u,{focusout:r})}addKeyDownListeners(u){this.addManagedElementListeners(u,{keydown:s=>{if(s.defaultPrevented||(0,F._isStopPropagationForAgGrid)(s))return;let{callbacks:r}=this;r.shouldStopEventPropagation(s)?(0,F._stopPropagationForAgGrid)(s):s.key===M.KeyCode.TAB?r.onTabKeyDown(s):r.handleKeyDown&&r.handleKeyDown(s)}})}}x.ManagedFocusFeature=f},3598:function(ne,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.PopupComponent=void 0;let M=p(8020);class A extends M.Component{isPopup(){return!0}setParentComponent(D){D.addCssClass("ag-has-popup"),super.setParentComponent(D)}destroy(){let D=this.parentComponent;D&&D.isAlive()&&D.getGui().classList.remove("ag-has-popup"),super.destroy()}}x.PopupComponent=A},3137:function(ne,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.PopupModule=void 0;let M=p(7205),A=p(3906);x.PopupModule={moduleName:"Popup",version:M.VERSION,beans:[A.PopupService]}},3906:function(ne,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.PopupService=void 0;let M=p(9853),A=p(8731),F=p(7274),D=p(5230),f=p(3507),v=p(2979),u=p(4422),s=p(7990),r=p(7764);var d;(function(b){b[b.vertical=0]="vertical",b[b.horizontal=1]="horizontal"})(d||(d={}));let g=0;class m extends A.BeanStub{constructor(){super(...arguments),this.beanName="popupSvc",this.popupList=[]}postConstruct(){this.beans.ctrlsSvc.whenReady(this,w=>{this.gridCtrl=w.gridCtrl}),this.addManagedEventListeners({gridStylesChanged:this.handleThemeChange.bind(this)})}getPopupParent(){return this.gos.get("popupParent")||this.gridCtrl.getGui()}positionPopupForMenu(w){let{eventSource:k,ePopup:R}=w,T=this.getPopupIndex(R);T!==-1&&(this.popupList[T].alignedToElement=k);let z=k.getBoundingClientRect(),G=this.getParentRect(),U=this.keepXYWithinBounds(R,z.top-G.top,d.vertical),X=R.clientWidth>0?R.clientWidth:200;R.style.minWidth=`${X}px`;let Q=G.right-G.left-X,oe;function le(){return z.right-G.left-2}function fe(){return z.left-G.left-X}this.gos.get("enableRtl")?(oe=fe(),oe<0&&(oe=le(),this.setAlignedStyles(R,"left")),oe>Q&&(oe=0,this.setAlignedStyles(R,"right"))):(oe=le(),oe>Q&&(oe=fe(),this.setAlignedStyles(R,"right")),oe<0&&(oe=0,this.setAlignedStyles(R,"left"))),R.style.left=`${oe}px`,R.style.top=`${U}px`}positionPopupUnderMouseEvent(w){let{ePopup:k,nudgeX:R,nudgeY:T,skipObserver:z}=w;this.positionPopup({ePopup:k,nudgeX:R,nudgeY:T,keepWithinBounds:!0,skipObserver:z,updatePosition:()=>this.calculatePointerAlign(w.mouseEvent),postProcessCallback:()=>this.callPostProcessPopup(w.type,w.ePopup,null,w.mouseEvent,w.column,w.rowNode)})}calculatePointerAlign(w){let k=this.getParentRect();return{x:w.clientX-k.left,y:w.clientY-k.top}}positionPopupByComponent(w){let{ePopup:k,nudgeX:R,nudgeY:T,keepWithinBounds:z,eventSource:G,alignSide:U="left",position:X="over",column:Q,rowNode:oe,type:le}=w,fe=G.getBoundingClientRect(),ye=this.getParentRect(),ke=this.getPopupIndex(k);ke!==-1&&(this.popupList[ke].alignedToElement=G),this.positionPopup({ePopup:k,nudgeX:R,nudgeY:T,keepWithinBounds:z,updatePosition:()=>{let Ie,ze=fe.left-ye.left;return U==="right"&&(ze-=k.offsetWidth-fe.width),X==="over"?(Ie=fe.top-ye.top,this.setAlignedStyles(k,"over")):(this.setAlignedStyles(k,"under"),Ie=this.shouldRenderUnderOrAbove(k,fe,ye,w.nudgeY||0)==="under"?fe.top-ye.top+fe.height:fe.top-k.offsetHeight-2*(T||0)-ye.top),{x:ze,y:Ie}},postProcessCallback:()=>this.callPostProcessPopup(le,k,G,null,Q,oe)})}shouldRenderUnderOrAbove(w,k,R,T){let z=R.bottom-k.bottom,G=k.top-R.top,U=w.offsetHeight+T;return z>U?"under":G>U||G>z?"above":"under"}setAlignedStyles(w,k){let R=this.getPopupIndex(w);if(R===-1)return;let T=this.popupList[R],{alignedToElement:z}=T;z&&(["right","left","over","above","under"].forEach(G=>{z.classList.remove(`ag-has-popup-positioned-${G}`),w.classList.remove(`ag-popup-positioned-${G}`)}),k&&(z.classList.add(`ag-has-popup-positioned-${k}`),w.classList.add(`ag-popup-positioned-${k}`)))}callPostProcessPopup(w,k,R,T,z,G){let U=this.gos.getCallback("postProcessPopup");U&&U({column:z,rowNode:G,ePopup:k,type:w,eventSource:R,mouseEvent:T})}positionPopup(w){let{ePopup:k,keepWithinBounds:R,nudgeX:T,nudgeY:z,skipObserver:G,updatePosition:U}=w,X={width:0,height:0},Q=(oe=!1)=>{let{x:le,y:fe}=U();oe&&k.clientWidth===X.width&&k.clientHeight===X.height||(X.width=k.clientWidth,X.height=k.clientHeight,T&&(le+=T),z&&(fe+=z),R&&(le=this.keepXYWithinBounds(k,le,d.horizontal),fe=this.keepXYWithinBounds(k,fe,d.vertical)),k.style.left=`${le}px`,k.style.top=`${fe}px`,w.postProcessCallback&&w.postProcessCallback())};if(Q(),!G){let oe=(0,f._observeResize)(this.beans,k,()=>Q(!0));setTimeout(()=>oe(),200)}}getActivePopups(){return this.popupList.map(w=>w.element)}getParentRect(){let w=(0,F._getDocument)(this.beans),k=this.getPopupParent();return k===w.body?k=w.documentElement:getComputedStyle(k).position==="static"&&(k=k.offsetParent),(0,f._getElementRectWithOffset)(k)}keepXYWithinBounds(w,k,R){let T=R===d.vertical,z=T?"clientHeight":"clientWidth",G=T?"top":"left",U=T?"height":"width",X=T?"scrollTop":"scrollLeft",Q=(0,F._getDocument)(this.beans),oe=Q.documentElement,le=this.getPopupParent(),fe=w.getBoundingClientRect(),ye=le.getBoundingClientRect(),ke=Q.documentElement.getBoundingClientRect(),Ie=le===Q.body,ze=Math.ceil(fe[U]),Ye=T?f._getAbsoluteHeight:f._getAbsoluteWidth,xe=Ie?Ye(oe)+oe[X]:le[z];Ie&&(xe-=Math.abs(ke[G]-ye[G]));let Te=xe-ze;return Math.min(Math.max(k,0),Math.abs(Te))}addPopup(w){let k=(0,F._getDocument)(this.beans),{eChild:R,ariaLabel:T,alwaysOnTop:z,positionCallback:G,anchorToElement:U}=w;if(!k)return(0,r._warn)(122),{hideFunc:()=>{}};let X=this.getPopupIndex(R);if(X!==-1)return{hideFunc:this.popupList[X].hideFunc};this.initialisePopupPosition(R);let Q=this.createPopupWrapper(R,T,!!z),oe=this.addEventListenersToPopup(et(pe({},w),{wrapperEl:Q}));return G&&G(),this.addPopupToPopupList(R,Q,oe,U),{hideFunc:oe}}initialisePopupPosition(w){let k=this.getPopupParent().getBoundingClientRect();(0,u._exists)(w.style.top)||(w.style.top=-1*k.top+"px"),(0,u._exists)(w.style.left)||(w.style.left=-1*k.left+"px")}createPopupWrapper(w,k,R){let T=this.getPopupParent(),z=document.createElement("div"),{environment:G,gos:U}=this.beans;return G.applyThemeClasses(z),z.classList.add("ag-popup"),w.classList.add(U.get("enableRtl")?"ag-rtl":"ag-ltr","ag-popup-child"),w.hasAttribute("role")||(0,D._setAriaRole)(w,"dialog"),(0,D._setAriaLabel)(w,k),z.appendChild(w),T.appendChild(z),R?this.setAlwaysOnTop(w,!0):this.bringPopupToFront(w),z}handleThemeChange(w){if(w.themeChanged){let k=this.beans.environment;for(let R of this.popupList)k.applyThemeClasses(R.wrapper)}}addEventListenersToPopup(w){let k=this.beans,R=(0,F._getDocument)(k),T=this.getPopupParent(),{wrapperEl:z,eChild:G,closedCallback:U,afterGuiAttached:X,closeOnEsc:Q,modal:oe}=w,le=!1,fe=ze=>{z.contains((0,F._getActiveDomElement)(k))&&(ze.key!==M.KeyCode.ESCAPE||(0,v._isStopPropagationForAgGrid)(ze)||Ie({keyboardEvent:ze}))},ye=ze=>Ie({mouseEvent:ze}),ke=ze=>Ie({touchEvent:ze}),Ie=(ze={})=>{let{mouseEvent:Ye,touchEvent:xe,keyboardEvent:Te,forceHide:Ae}=ze;(Ae||!this.isEventFromCurrentPopup({mouseEvent:Ye,touchEvent:xe},G)&&!le)&&(le=!0,T.removeChild(z),R.removeEventListener("keydown",fe),R.removeEventListener("mousedown",ye),R.removeEventListener("touchstart",ke),R.removeEventListener("contextmenu",ye),this.eventSvc.removeEventListener("dragStarted",ye),U&&U(Ye||xe||Te),this.removePopupFromPopupList(G))};return X&&X({hidePopup:Ie}),window.setTimeout(()=>{Q&&R.addEventListener("keydown",fe),oe&&(R.addEventListener("mousedown",ye),this.eventSvc.addEventListener("dragStarted",ye),R.addEventListener("touchstart",ke),R.addEventListener("contextmenu",ye))},0),Ie}addPopupToPopupList(w,k,R,T){this.popupList.push({element:w,wrapper:k,hideFunc:R,instanceId:g++,isAnchored:!!T}),T&&this.setPopupPositionRelatedToElement(w,T)}getPopupIndex(w){return this.popupList.findIndex(k=>k.element===w)}setPopupPositionRelatedToElement(w,k){let R=this.getPopupIndex(w);if(R===-1)return;let T=this.popupList[R];if(T.stopAnchoringPromise&&T.stopAnchoringPromise.then(G=>G&&G()),T.stopAnchoringPromise=void 0,T.isAnchored=!1,!k)return;let z=this.keepPopupPositionedRelativeTo({element:k,ePopup:w,hidePopup:T.hideFunc});return T.stopAnchoringPromise=z,T.isAnchored=!0,z}removePopupFromPopupList(w){this.setAlignedStyles(w,null),this.setPopupPositionRelatedToElement(w,null),this.popupList=this.popupList.filter(k=>k.element!==w)}keepPopupPositionedRelativeTo(w){let k=this.getPopupParent(),R=k.getBoundingClientRect(),{element:T,ePopup:z}=w,G=T.getBoundingClientRect(),U=fe=>parseInt(fe.substring(0,fe.length-1),10),X=(fe,ye)=>{let ke=R[fe]-G[fe],Ie=U(z.style[fe]);return{initialDiff:ke,lastDiff:ke,initial:Ie,last:Ie,direction:ye}},Q=X("top",d.vertical),oe=X("left",d.horizontal),le=this.beans.frameworkOverrides;return new s.AgPromise(fe=>{le.wrapIncoming(()=>{le.setInterval(()=>{let ye=k.getBoundingClientRect(),ke=T.getBoundingClientRect();if(ke.top==0&&ke.left==0&&ke.height==0&&ke.width==0)return void w.hidePopup();let Ie=(ze,Ye)=>{let xe=U(z.style[Ye]);ze.last!==xe&&(ze.initial=xe,ze.last=xe);let Te=ye[Ye]-ke[Ye];if(Te!=ze.lastDiff){let Ae=this.keepXYWithinBounds(z,ze.initial+ze.initialDiff-Te,ze.direction);z.style[Ye]=`${Ae}px`,ze.last=Ae}ze.lastDiff=Te};Ie(Q,"top"),Ie(oe,"left")},200).then(ye=>{fe(()=>{ye!=null&&window.clearInterval(ye)})})},"popupPositioning")})}hasAnchoredPopup(){return this.popupList.some(w=>w.isAnchored)}isEventFromCurrentPopup(w,k){let{mouseEvent:R,touchEvent:T}=w,z=R||T;if(!z)return!1;let G=this.getPopupIndex(k);if(G===-1)return!1;for(let U=G;U<this.popupList.length;U++){let X=this.popupList[U];if((0,v._isElementInEventPath)(X.element,z))return!0}return this.isElementWithinCustomPopup(z.target)}isElementWithinCustomPopup(w){let k=(0,F._getDocument)(this.beans);for(;w&&w!==k.body;){if(w.classList.contains("ag-custom-component-popup")||w.parentElement===null)return!0;w=w.parentElement}return!1}getWrapper(w){for(;!w.classList.contains("ag-popup")&&w.parentElement;)w=w.parentElement;return w.classList.contains("ag-popup")?w:null}setAlwaysOnTop(w,k){let R=this.getWrapper(w);R&&(R.classList.toggle("ag-always-on-top",!!k),k&&this.bringPopupToFront(R))}bringPopupToFront(w){let k=this.getPopupParent(),R=Array.prototype.slice.call(k.querySelectorAll(".ag-popup")),T=R.length,z=this.getWrapper(w);if(!z||T<=1||!k.contains(w))return;let G=[],U=[];for(let le of R)le!==z&&(le.classList.contains("ag-always-on-top")?U.push(le):G.push(le));let X=[],Q=U.length,oe=z.classList.contains("ag-always-on-top")||!Q?[...G,...U,z]:[...G,z,...U];for(let le=0;le<=T;le++){let fe=oe[le];R[le]===oe[le]||fe===z||(fe.querySelectorAll("div").forEach(ye=>{ye.scrollTop!==0&&X.push([ye,ye.scrollTop])}),le===0?k.insertAdjacentElement("afterbegin",fe):oe[le-1].insertAdjacentElement("afterend",fe))}for(;X.length;){let le=X.pop();le[0].scrollTop=le[1]}}}x.PopupService=m},8332:function(ne,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.TabGuardComp=void 0;let M=p(8020),A=p(1017);class F extends M.Component{initialiseTabGuard(f){this.tabGuardFeature=this.createManagedBean(new A.TabGuardFeature(this)),this.tabGuardFeature.initialiseTabGuard(f)}forceFocusOutOfContainer(f=!1){this.tabGuardFeature.forceFocusOutOfContainer(f)}appendChild(f,v){this.tabGuardFeature.appendChild(super.appendChild.bind(this),f,v)}}x.TabGuardComp=F},6:function(ne,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.TabGuardCtrl=x.TabGuardClassNames=void 0;let M=p(8731),A=p(7274),F=p(2331),D=p(1772);x.TabGuardClassNames={TAB_GUARD:"ag-tab-guard",TAB_GUARD_TOP:"ag-tab-guard-top",TAB_GUARD_BOTTOM:"ag-tab-guard-bottom"};class f extends M.BeanStub{constructor(u){super(),this.skipTabGuardFocus=!1,this.forcingFocusOut=!1,this.allowFocus=!1;let{comp:s,eTopGuard:r,eBottomGuard:d,focusTrapActive:g,forceFocusOutWhenTabGuardsAreEmpty:m,isFocusableContainer:b,focusInnerElement:w,onFocusIn:k,onFocusOut:R,shouldStopEventPropagation:T,onTabKeyDown:z,handleKeyDown:G,eFocusableElement:U}=u;this.comp=s,this.eTopGuard=r,this.eBottomGuard=d,this.providedFocusInnerElement=w,this.eFocusableElement=U,this.focusTrapActive=!!g,this.forceFocusOutWhenTabGuardsAreEmpty=!!m,this.isFocusableContainer=!!b,this.providedFocusIn=k,this.providedFocusOut=R,this.providedShouldStopEventPropagation=T,this.providedOnTabKeyDown=z,this.providedHandleKeyDown=G}postConstruct(){this.createManagedBean(new D.ManagedFocusFeature(this.eFocusableElement,{shouldStopEventPropagation:()=>this.shouldStopEventPropagation(),onTabKeyDown:u=>this.onTabKeyDown(u),handleKeyDown:u=>this.handleKeyDown(u),onFocusIn:u=>this.onFocusIn(u),onFocusOut:u=>this.onFocusOut(u)})),this.activateTabGuards(),[this.eTopGuard,this.eBottomGuard].forEach(u=>this.addManagedElementListeners(u,{focus:this.onFocus.bind(this)}))}handleKeyDown(u){this.providedHandleKeyDown&&this.providedHandleKeyDown(u)}tabGuardsAreActive(){return!!this.eTopGuard&&this.eTopGuard.hasAttribute("tabIndex")}shouldStopEventPropagation(){return!!this.providedShouldStopEventPropagation&&this.providedShouldStopEventPropagation()}activateTabGuards(){if(this.forcingFocusOut)return;let u=this.gos.get("tabIndex");this.comp.setTabIndex(u.toString())}deactivateTabGuards(){this.comp.setTabIndex()}onFocus(u){if(this.isFocusableContainer&&!this.eFocusableElement.contains(u.relatedTarget)&&!this.allowFocus)return void this.findNextElementOutsideAndFocus(u.target===this.eBottomGuard);if(this.skipTabGuardFocus)return void(this.skipTabGuardFocus=!1);if(this.forceFocusOutWhenTabGuardsAreEmpty&&(0,F._findFocusableElements)(this.eFocusableElement,".ag-tab-guard").length===0)return void this.findNextElementOutsideAndFocus(u.target===this.eBottomGuard);if(this.isFocusableContainer&&this.eFocusableElement.contains(u.relatedTarget))return;let s=u.target===this.eBottomGuard;this.providedFocusInnerElement?this.providedFocusInnerElement(s):this.focusInnerElement(s)}findNextElementOutsideAndFocus(u){var k;let s=(0,A._getDocument)(this.beans),r=(0,F._findFocusableElements)(s.body,null,!0),d=r.indexOf(u?this.eTopGuard:this.eBottomGuard);if(d===-1)return;let g,m;u?(g=0,m=d):(g=d+1,m=r.length);let b=r.slice(g,m),w=this.gos.get("tabIndex");b.sort((R,T)=>{let z=parseInt(R.getAttribute("tabindex")||"0"),G=parseInt(T.getAttribute("tabindex")||"0");return G===w?1:z===w?-1:z===0?1:G===0?-1:z-G}),(k=b[u?b.length-1:0])==null||k.focus()}onFocusIn(u){this.focusTrapActive||this.forcingFocusOut||(this.providedFocusIn&&this.providedFocusIn(u),this.isFocusableContainer||this.deactivateTabGuards())}onFocusOut(u){this.focusTrapActive||(this.providedFocusOut&&this.providedFocusOut(u),this.eFocusableElement.contains(u.relatedTarget)||this.activateTabGuards())}onTabKeyDown(u){if(this.providedOnTabKeyDown)return void this.providedOnTabKeyDown(u);if(this.focusTrapActive||u.defaultPrevented)return;let s=this.tabGuardsAreActive();s&&this.deactivateTabGuards();let r=this.getNextFocusableElement(u.shiftKey);s&&setTimeout(()=>this.activateTabGuards(),0),r&&(r.focus(),u.preventDefault())}focusInnerElement(u=!1){let s=(0,F._findFocusableElements)(this.eFocusableElement);this.tabGuardsAreActive()&&(s.splice(0,1),s.splice(s.length-1,1)),s.length&&s[u?s.length-1:0].focus({preventScroll:!0})}getNextFocusableElement(u){return(0,F._findNextFocusableElement)(this.beans,this.eFocusableElement,!1,u)}forceFocusOutOfContainer(u=!1){if(this.forcingFocusOut)return;let s=u?this.eTopGuard:this.eBottomGuard;this.activateTabGuards(),this.skipTabGuardFocus=!0,this.forcingFocusOut=!0,s.focus(),window.setTimeout(()=>{this.forcingFocusOut=!1,this.activateTabGuards()})}isTabGuard(u,s){return u===this.eTopGuard&&!s||u===this.eBottomGuard&&(s!=null?s:!0)}setAllowFocus(u){this.allowFocus=u}}x.TabGuardCtrl=f},1017:function(ne,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.TabGuardFeature=void 0;let M=p(8731),A=p(7274),F=p(5230),D=p(3507),f=p(6);class v extends M.BeanStub{constructor(s){super(),this.comp=s}initialiseTabGuard(s){this.eTopGuard=this.createTabGuard("top"),this.eBottomGuard=this.createTabGuard("bottom"),this.eFocusableElement=this.comp.getFocusableElement();let{eTopGuard:r,eBottomGuard:d,eFocusableElement:g}=this,m=[r,d],b={setTabIndex:oe=>{m.forEach(le=>oe!=null?le.setAttribute("tabindex",oe):le.removeAttribute("tabindex"))}};this.addTabGuards(r,d);let{focusTrapActive:w=!1,onFocusIn:k,onFocusOut:R,focusInnerElement:T,handleKeyDown:z,onTabKeyDown:G,shouldStopEventPropagation:U,forceFocusOutWhenTabGuardsAreEmpty:X,isFocusableContainer:Q}=s;this.tabGuardCtrl=this.createManagedBean(new f.TabGuardCtrl({comp:b,focusTrapActive:w,eTopGuard:r,eBottomGuard:d,eFocusableElement:g,onFocusIn:k,onFocusOut:R,focusInnerElement:T,handleKeyDown:z,onTabKeyDown:G,shouldStopEventPropagation:U,forceFocusOutWhenTabGuardsAreEmpty:X,isFocusableContainer:Q}))}getTabGuardCtrl(){return this.tabGuardCtrl}createTabGuard(s){let r=(0,A._getDocument)(this.beans).createElement("div"),d=s==="top"?f.TabGuardClassNames.TAB_GUARD_TOP:f.TabGuardClassNames.TAB_GUARD_BOTTOM;return r.classList.add(f.TabGuardClassNames.TAB_GUARD,d),(0,F._setAriaRole)(r,"presentation"),r}addTabGuards(s,r){let d=this.eFocusableElement;d.insertAdjacentElement("afterbegin",s),d.insertAdjacentElement("beforeend",r)}removeAllChildrenExceptTabGuards(){let s=[this.eTopGuard,this.eBottomGuard];(0,D._clearElement)(this.comp.getFocusableElement()),this.addTabGuards(...s)}forceFocusOutOfContainer(s=!1){this.tabGuardCtrl.forceFocusOutOfContainer(s)}appendChild(s,r,d){(0,D._isNodeOrElement)(r)||(r=r.getGui());let{eBottomGuard:g}=this;g?g.insertAdjacentElement("beforebegin",r):s(r,d)}}x.TabGuardFeature=v},9644:function(ne,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.TouchListener=void 0;let M=p(5889),A=p(3276);x.TouchListener=class{constructor(F,D=!1){this.DOUBLE_TAP_MILLIS=500,this.destroyFuncs=[],this.touching=!1,this.localEventService=new M.LocalEventService,this.preventMouseClick=D;let f=this.onTouchStart.bind(this),v=this.onTouchMove.bind(this),u=this.onTouchEnd.bind(this);F.addEventListener("touchstart",f,{passive:!0}),F.addEventListener("touchmove",v,{passive:!0}),F.addEventListener("touchend",u,{passive:!1}),this.destroyFuncs.push(()=>{F.removeEventListener("touchstart",f,{passive:!0}),F.removeEventListener("touchmove",v,{passive:!0}),F.removeEventListener("touchend",u,{passive:!1})})}getActiveTouch(F){for(let D=0;D<F.length;D++)if(F[D].identifier===this.touchStart.identifier)return F[D];return null}addEventListener(F,D){this.localEventService.addEventListener(F,D)}removeEventListener(F,D){this.localEventService.removeEventListener(F,D)}onTouchStart(F){if(this.touching)return;this.touchStart=F.touches[0],this.touching=!0,this.moved=!1;let D=this.touchStart;window.setTimeout(()=>{let f=this.touchStart===D;if(this.touching&&f&&!this.moved){this.moved=!0;let v={type:"longTap",touchStart:this.touchStart,touchEvent:F};this.localEventService.dispatchEvent(v)}},500)}onTouchMove(F){if(!this.touching)return;let D=this.getActiveTouch(F.touches);D&&!(0,A._areEventsNear)(D,this.touchStart,4)&&(this.moved=!0)}onTouchEnd(F){if(this.touching){if(!this.moved){let D={type:"tap",touchStart:this.touchStart};this.localEventService.dispatchEvent(D),this.checkForDoubleTap()}this.preventMouseClick&&F.cancelable&&F.preventDefault(),this.touching=!1}}checkForDoubleTap(){let F=new Date().getTime();if(this.lastTapTime&&this.lastTapTime>0)if(F-this.lastTapTime>this.DOUBLE_TAP_MILLIS){let D={type:"doubleTap",touchStart:this.touchStart};this.localEventService.dispatchEvent(D),this.lastTapTime=null}else this.lastTapTime=F;else this.lastTapTime=F}destroy(){this.destroyFuncs.forEach(F=>F())}}},6055:function(ne){ne.exports="data:font/woff2;charset=utf-8;base64, "},8430:function(ne){ne.exports="data:font/woff2;charset=utf-8;base64, "},7738:function(ne){ne.exports="data:font/woff2;charset=utf-8;base64, "},9377:function(ne){ne.exports="data:font/woff2;charset=utf-8;base64, "},2006:function(ne){ne.exports="data:font/woff2;charset=utf-8;base64, "},2487:function(ne){ne.exports="data:image/svg+xml;base64, "},7249:function(ne){ne.exports="data:image/svg+xml;charset=utf-8;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxMiIgaGVpZ2h0PSIxMiIgZmlsbD0ibm9uZSIgc3Ryb2tlPSIjMDAwIiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiIHN0cm9rZS13aWR0aD0iMS41Ij48cGF0aCBkPSJNNS4zIDlhMy43IDMuNyAwIDEgMCAwLTcuNSAzLjcgMy43IDAgMCAwIDAgNy41Wk0xMC41IDEwLjUgOC4zIDguMiIvPjwvc3ZnPg=="},6080:function(ne){ne.exports='data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="4" height="4"><rect x="0" y="0" width="4" height="4" fill="%23fff"/><path d="M0 0H2V4H4V2H0Z" fill="%23b2b2b2"/></svg>'},5608:function(ne,x,p){p.r(x),p.d(x,{__addDisposableResource:function(){return Te},__assign:function(){return F},__asyncDelegator:function(){return oe},__asyncGenerator:function(){return Q},__asyncValues:function(){return le},__await:function(){return X},__awaiter:function(){return m},__classPrivateFieldGet:function(){return ze},__classPrivateFieldIn:function(){return xe},__classPrivateFieldSet:function(){return Ye},__createBinding:function(){return w},__decorate:function(){return f},__disposeResources:function(){return Ne},__esDecorate:function(){return u},__exportStar:function(){return k},__extends:function(){return A},__generator:function(){return b},__importDefault:function(){return Ie},__importStar:function(){return ke},__makeTemplateObject:function(){return fe},__metadata:function(){return g},__param:function(){return v},__propKey:function(){return r},__read:function(){return T},__rest:function(){return D},__runInitializers:function(){return s},__setFunctionName:function(){return d},__spread:function(){return z},__spreadArray:function(){return U},__spreadArrays:function(){return G},__values:function(){return R}});var M=function(Re,Oe){return M=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(Ve,Ue){Ve.__proto__=Ue}||function(Ve,Ue){for(var Ee in Ue)Object.prototype.hasOwnProperty.call(Ue,Ee)&&(Ve[Ee]=Ue[Ee])},M(Re,Oe)};function A(Re,Oe){if(typeof Oe!="function"&&Oe!==null)throw new TypeError("Class extends value "+String(Oe)+" is not a constructor or null");function Ve(){this.constructor=Re}M(Re,Oe),Re.prototype=Oe===null?Object.create(Oe):(Ve.prototype=Oe.prototype,new Ve)}var F=function(){return F=Object.assign||function(Re){for(var Oe,Ve=1,Ue=arguments.length;Ve<Ue;Ve++)for(var Ee in Oe=arguments[Ve])Object.prototype.hasOwnProperty.call(Oe,Ee)&&(Re[Ee]=Oe[Ee]);return Re},F.apply(this,arguments)};function D(Re,Oe){var Ve={};for(var Ue in Re)Object.prototype.hasOwnProperty.call(Re,Ue)&&Oe.indexOf(Ue)<0&&(Ve[Ue]=Re[Ue]);if(Re!=null&&typeof Object.getOwnPropertySymbols=="function"){var Ee=0;for(Ue=Object.getOwnPropertySymbols(Re);Ee<Ue.length;Ee++)Oe.indexOf(Ue[Ee])<0&&Object.prototype.propertyIsEnumerable.call(Re,Ue[Ee])&&(Ve[Ue[Ee]]=Re[Ue[Ee]])}return Ve}function f(Re,Oe,Ve,Ue){var Ee,tt=arguments.length,at=tt<3?Oe:Ue===null?Ue=Object.getOwnPropertyDescriptor(Oe,Ve):Ue;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")at=Reflect.decorate(Re,Oe,Ve,Ue);else for(var ut=Re.length-1;ut>=0;ut--)(Ee=Re[ut])&&(at=(tt<3?Ee(at):tt>3?Ee(Oe,Ve,at):Ee(Oe,Ve))||at);return tt>3&&at&&Object.defineProperty(Oe,Ve,at),at}function v(Re,Oe){return function(Ve,Ue){Oe(Ve,Ue,Re)}}function u(Re,Oe,Ve,Ue,Ee,tt){function at(Xt){if(Xt!==void 0&&typeof Xt!="function")throw new TypeError("Function expected");return Xt}for(var ut,Mt=Ue.kind,St=Mt==="getter"?"get":Mt==="setter"?"set":"value",ft=!Oe&&Re?Ue.static?Re:Re.prototype:null,kt=Oe||(ft?Object.getOwnPropertyDescriptor(ft,Ue.name):{}),Et=!1,Yt=Ve.length-1;Yt>=0;Yt--){var Tt={};for(var Ft in Ue)Tt[Ft]=Ft==="access"?{}:Ue[Ft];for(var Ft in Ue.access)Tt.access[Ft]=Ue.access[Ft];Tt.addInitializer=function(Xt){if(Et)throw new TypeError("Cannot add initializers after decoration has completed");tt.push(at(Xt||null))};var Bt=(0,Ve[Yt])(Mt==="accessor"?{get:kt.get,set:kt.set}:kt[St],Tt);if(Mt==="accessor"){if(Bt===void 0)continue;if(Bt===null||typeof Bt!="object")throw new TypeError("Object expected");(ut=at(Bt.get))&&(kt.get=ut),(ut=at(Bt.set))&&(kt.set=ut),(ut=at(Bt.init))&&Ee.unshift(ut)}else(ut=at(Bt))&&(Mt==="field"?Ee.unshift(ut):kt[St]=ut)}ft&&Object.defineProperty(ft,Ue.name,kt),Et=!0}function s(Re,Oe,Ve){for(var Ue=arguments.length>2,Ee=0;Ee<Oe.length;Ee++)Ve=Ue?Oe[Ee].call(Re,Ve):Oe[Ee].call(Re);return Ue?Ve:void 0}function r(Re){return typeof Re=="symbol"?Re:"".concat(Re)}function d(Re,Oe,Ve){return typeof Oe=="symbol"&&(Oe=Oe.description?"[".concat(Oe.description,"]"):""),Object.defineProperty(Re,"name",{configurable:!0,value:Ve?"".concat(Ve," ",Oe):Oe})}function g(Re,Oe){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(Re,Oe)}function m(Re,Oe,Ve,Ue){return new(Ve||(Ve=Promise))(function(Ee,tt){function at(St){try{Mt(Ue.next(St))}catch(ft){tt(ft)}}function ut(St){try{Mt(Ue.throw(St))}catch(ft){tt(ft)}}function Mt(St){var ft;St.done?Ee(St.value):(ft=St.value,ft instanceof Ve?ft:new Ve(function(kt){kt(ft)})).then(at,ut)}Mt((Ue=Ue.apply(Re,Oe||[])).next())})}function b(Re,Oe){var Ve,Ue,Ee,tt,at={label:0,sent:function(){if(1&Ee[0])throw Ee[1];return Ee[1]},trys:[],ops:[]};return tt={next:ut(0),throw:ut(1),return:ut(2)},typeof Symbol=="function"&&(tt[Symbol.iterator]=function(){return this}),tt;function ut(Mt){return function(St){return function(ft){if(Ve)throw new TypeError("Generator is already executing.");for(;tt&&(tt=0,ft[0]&&(at=0)),at;)try{if(Ve=1,Ue&&(Ee=2&ft[0]?Ue.return:ft[0]?Ue.throw||((Ee=Ue.return)&&Ee.call(Ue),0):Ue.next)&&!(Ee=Ee.call(Ue,ft[1])).done)return Ee;switch(Ue=0,Ee&&(ft=[2&ft[0],Ee.value]),ft[0]){case 0:case 1:Ee=ft;break;case 4:return at.label++,{value:ft[1],done:!1};case 5:at.label++,Ue=ft[1],ft=[0];continue;case 7:ft=at.ops.pop(),at.trys.pop();continue;default:if(Ee=at.trys,!((Ee=Ee.length>0&&Ee[Ee.length-1])||ft[0]!==6&&ft[0]!==2)){at=0;continue}if(ft[0]===3&&(!Ee||ft[1]>Ee[0]&&ft[1]<Ee[3])){at.label=ft[1];break}if(ft[0]===6&&at.label<Ee[1]){at.label=Ee[1],Ee=ft;break}if(Ee&&at.label<Ee[2]){at.label=Ee[2],at.ops.push(ft);break}Ee[2]&&at.ops.pop(),at.trys.pop();continue}ft=Oe.call(Re,at)}catch(kt){ft=[6,kt],Ue=0}finally{Ve=Ee=0}if(5&ft[0])throw ft[1];return{value:ft[0]?ft[1]:void 0,done:!0}}([Mt,St])}}}var w=Object.create?function(Re,Oe,Ve,Ue){Ue===void 0&&(Ue=Ve);var Ee=Object.getOwnPropertyDescriptor(Oe,Ve);Ee&&!("get"in Ee?!Oe.__esModule:Ee.writable||Ee.configurable)||(Ee={enumerable:!0,get:function(){return Oe[Ve]}}),Object.defineProperty(Re,Ue,Ee)}:function(Re,Oe,Ve,Ue){Ue===void 0&&(Ue=Ve),Re[Ue]=Oe[Ve]};function k(Re,Oe){for(var Ve in Re)Ve==="default"||Object.prototype.hasOwnProperty.call(Oe,Ve)||w(Oe,Re,Ve)}function R(Re){var Oe=typeof Symbol=="function"&&Symbol.iterator,Ve=Oe&&Re[Oe],Ue=0;if(Ve)return Ve.call(Re);if(Re&&typeof Re.length=="number")return{next:function(){return Re&&Ue>=Re.length&&(Re=void 0),{value:Re&&Re[Ue++],done:!Re}}};throw new TypeError(Oe?"Object is not iterable.":"Symbol.iterator is not defined.")}function T(Re,Oe){var Ve=typeof Symbol=="function"&&Re[Symbol.iterator];if(!Ve)return Re;var Ue,Ee,tt=Ve.call(Re),at=[];try{for(;(Oe===void 0||Oe-- >0)&&!(Ue=tt.next()).done;)at.push(Ue.value)}catch(ut){Ee={error:ut}}finally{try{Ue&&!Ue.done&&(Ve=tt.return)&&Ve.call(tt)}finally{if(Ee)throw Ee.error}}return at}function z(){for(var Re=[],Oe=0;Oe<arguments.length;Oe++)Re=Re.concat(T(arguments[Oe]));return Re}function G(){for(var Re=0,Oe=0,Ve=arguments.length;Oe<Ve;Oe++)Re+=arguments[Oe].length;var Ue=Array(Re),Ee=0;for(Oe=0;Oe<Ve;Oe++)for(var tt=arguments[Oe],at=0,ut=tt.length;at<ut;at++,Ee++)Ue[Ee]=tt[at];return Ue}function U(Re,Oe,Ve){if(Ve||arguments.length===2)for(var Ue,Ee=0,tt=Oe.length;Ee<tt;Ee++)!Ue&&Ee in Oe||(Ue||(Ue=Array.prototype.slice.call(Oe,0,Ee)),Ue[Ee]=Oe[Ee]);return Re.concat(Ue||Array.prototype.slice.call(Oe))}function X(Re){return this instanceof X?(this.v=Re,this):new X(Re)}function Q(Re,Oe,Ve){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var Ue,Ee=Ve.apply(Re,Oe||[]),tt=[];return Ue={},at("next"),at("throw"),at("return"),Ue[Symbol.asyncIterator]=function(){return this},Ue;function at(kt){Ee[kt]&&(Ue[kt]=function(Et){return new Promise(function(Yt,Tt){tt.push([kt,Et,Yt,Tt])>1||ut(kt,Et)})})}function ut(kt,Et){try{(Yt=Ee[kt](Et)).value instanceof X?Promise.resolve(Yt.value.v).then(Mt,St):ft(tt[0][2],Yt)}catch(Tt){ft(tt[0][3],Tt)}var Yt}function Mt(kt){ut("next",kt)}function St(kt){ut("throw",kt)}function ft(kt,Et){kt(Et),tt.shift(),tt.length&&ut(tt[0][0],tt[0][1])}}function oe(Re){var Oe,Ve;return Oe={},Ue("next"),Ue("throw",function(Ee){throw Ee}),Ue("return"),Oe[Symbol.iterator]=function(){return this},Oe;function Ue(Ee,tt){Oe[Ee]=Re[Ee]?function(at){return(Ve=!Ve)?{value:X(Re[Ee](at)),done:!1}:tt?tt(at):at}:tt}}function le(Re){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var Oe,Ve=Re[Symbol.asyncIterator];return Ve?Ve.call(Re):(Re=R(Re),Oe={},Ue("next"),Ue("throw"),Ue("return"),Oe[Symbol.asyncIterator]=function(){return this},Oe);function Ue(Ee){Oe[Ee]=Re[Ee]&&function(tt){return new Promise(function(at,ut){(function(Mt,St,ft,kt){Promise.resolve(kt).then(function(Et){Mt({value:Et,done:ft})},St)})(at,ut,(tt=Re[Ee](tt)).done,tt.value)})}}}function fe(Re,Oe){return Object.defineProperty?Object.defineProperty(Re,"raw",{value:Oe}):Re.raw=Oe,Re}var ye=Object.create?function(Re,Oe){Object.defineProperty(Re,"default",{enumerable:!0,value:Oe})}:function(Re,Oe){Re.default=Oe};function ke(Re){if(Re&&Re.__esModule)return Re;var Oe={};if(Re!=null)for(var Ve in Re)Ve!=="default"&&Object.prototype.hasOwnProperty.call(Re,Ve)&&w(Oe,Re,Ve);return ye(Oe,Re),Oe}function Ie(Re){return Re&&Re.__esModule?Re:{default:Re}}function ze(Re,Oe,Ve,Ue){if(Ve==="a"&&!Ue)throw new TypeError("Private accessor was defined without a getter");if(typeof Oe=="function"?Re!==Oe||!Ue:!Oe.has(Re))throw new TypeError("Cannot read private member from an object whose class did not declare it");return Ve==="m"?Ue:Ve==="a"?Ue.call(Re):Ue?Ue.value:Oe.get(Re)}function Ye(Re,Oe,Ve,Ue,Ee){if(Ue==="m")throw new TypeError("Private method is not writable");if(Ue==="a"&&!Ee)throw new TypeError("Private accessor was defined without a setter");if(typeof Oe=="function"?Re!==Oe||!Ee:!Oe.has(Re))throw new TypeError("Cannot write private member to an object whose class did not declare it");return Ue==="a"?Ee.call(Re,Ve):Ee?Ee.value=Ve:Oe.set(Re,Ve),Ve}function xe(Re,Oe){if(Oe===null||typeof Oe!="object"&&typeof Oe!="function")throw new TypeError("Cannot use 'in' operator on non-object");return typeof Re=="function"?Oe===Re:Re.has(Oe)}function Te(Re,Oe,Ve){if(Oe!=null){if(typeof Oe!="object"&&typeof Oe!="function")throw new TypeError("Object expected.");var Ue;if(Ve){if(!Symbol.asyncDispose)throw new TypeError("Symbol.asyncDispose is not defined.");Ue=Oe[Symbol.asyncDispose]}if(Ue===void 0){if(!Symbol.dispose)throw new TypeError("Symbol.dispose is not defined.");Ue=Oe[Symbol.dispose]}if(typeof Ue!="function")throw new TypeError("Object not disposable.");Re.stack.push({value:Oe,dispose:Ue,async:Ve})}else Ve&&Re.stack.push({async:!0});return Oe}var Ae=typeof SuppressedError=="function"?SuppressedError:function(Re,Oe,Ve){var Ue=new Error(Ve);return Ue.name="SuppressedError",Ue.error=Re,Ue.suppressed=Oe,Ue};function Ne(Re){function Oe(Ve){Re.error=Re.hasError?new Ae(Ve,Re.error,"An error was suppressed during disposal."):Ve,Re.hasError=!0}return function Ve(){for(;Re.stack.length;){var Ue=Re.stack.pop();try{var Ee=Ue.dispose&&Ue.dispose.call(Ue.value);if(Ue.async)return Promise.resolve(Ee).then(Ve,function(tt){return Oe(tt),Ve()})}catch(tt){Oe(tt)}}if(Re.hasError)throw Re.error}()}x.default={__extends:A,__assign:F,__rest:D,__decorate:f,__param:v,__metadata:g,__awaiter:m,__generator:b,__createBinding:w,__exportStar:k,__values:R,__read:T,__spread:z,__spreadArrays:G,__spreadArray:U,__await:X,__asyncGenerator:Q,__asyncDelegator:oe,__asyncValues:le,__makeTemplateObject:fe,__importStar:ke,__importDefault:Ie,__classPrivateFieldGet:ze,__classPrivateFieldSet:Ye,__classPrivateFieldIn:xe,__addDisposableResource:Te,__disposeResources:Ne}}},ee={};function de(ne){var x=ee[ne];if(x!==void 0)return x.exports;var p=ee[ne]={id:ne,exports:{}};return ae[ne](p,p.exports,de),p.exports}return de.m=ae,de.n=function(ne){var x=ne&&ne.__esModule?function(){return ne.default}:function(){return ne};return de.d(x,{a:x}),x},de.d=function(ne,x){for(var p in x)de.o(x,p)&&!de.o(ne,p)&&Object.defineProperty(ne,p,{enumerable:!0,get:x[p]})},de.o=function(ne,x){return Object.prototype.hasOwnProperty.call(ne,x)},de.r=function(ne){typeof Symbol!="undefined"&&Symbol.toStringTag&&Object.defineProperty(ne,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(ne,"__esModule",{value:!0})},de.b=document.baseURI||self.location.href,de(9058)}()})});var XX=yP((Dz,$j)=>{(function(ee,de){typeof Dz=="object"&&typeof $j=="object"?$j.exports=de():typeof define=="function"&&define.amd?define([],de):typeof Dz=="object"?Dz.agGrid=de():ee.agGrid=de()})(self,function(){return function(){var ae={2974:function(x,p,M){"use strict";var A=M(6758),F=M.n(A),D=M(935),f=M.n(D),v=M(62),u=M.n(v),s=new URL(M(2487),M.b),r=new URL(M(6080),M.b),d=f()(F()),g=u()(s),m=u()(r);d.push([x.id,`.ag-measurement-container {
  --ag-legacy-styles-loaded: "true";
}

.ag-icon {
  font-family: var(--ag-icon-font-family);
  font-weight: var(--ag-icon-font-weight);
  color: var(--ag-icon-font-color);
  font-size: var(--ag-icon-size);
  line-height: var(--ag-icon-size);
  font-style: normal;
  font-variant: normal;
  text-transform: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  width: var(--ag-icon-size);
  height: var(--ag-icon-size);
  position: relative;
}
.ag-icon::before {
  content: "";
  font-family: inherit;
}
.ag-icon::after {
  background: transparent var(--ag-icon-image, none) center/contain no-repeat;
  display: var(--ag-icon-image-display);
  opacity: var(--ag-icon-image-opacity, 0.9);
  position: absolute;
  inset: 0;
  content: "";
}

.ag-icon-aggregation {
  font-family: var(--ag-icon-font-family-aggregation, var(--ag-icon-font-family));
  font-weight: var(--ag-icon-font-weight-aggregation, var(--ag-icon-font-weight));
  color: var(--ag-icon-font-color-aggregation, var(--ag-icon-font-color));
}

.ag-icon-aggregation::before {
  content: var(--ag-icon-font-code-aggregation, "\\f101");
  display: var(--ag-icon-font-display-aggregation, var(--ag-icon-font-display));
}

.ag-icon-aggregation::after {
  background-image: var(--ag-icon-image-aggregation, var(--ag-icon-image));
  display: var(--ag-icon-image-display-aggregation, var(--ag-icon-image-display));
  opacity: var(--ag-icon-image-opacity-aggregation, var(--ag-icon-image-opacity, 0.9));
}

.ag-icon-arrows {
  font-family: var(--ag-icon-font-family-arrows, var(--ag-icon-font-family));
  font-weight: var(--ag-icon-font-weight-arrows, var(--ag-icon-font-weight));
  color: var(--ag-icon-font-color-arrows, var(--ag-icon-font-color));
}

.ag-icon-arrows::before {
  content: var(--ag-icon-font-code-arrows, "\\f102");
  display: var(--ag-icon-font-display-arrows, var(--ag-icon-font-display));
}

.ag-icon-arrows::after {
  background-image: var(--ag-icon-image-arrows, var(--ag-icon-image));
  display: var(--ag-icon-image-display-arrows, var(--ag-icon-image-display));
  opacity: var(--ag-icon-image-opacity-arrows, var(--ag-icon-image-opacity, 0.9));
}

.ag-icon-asc {
  font-family: var(--ag-icon-font-family-asc, var(--ag-icon-font-family));
  font-weight: var(--ag-icon-font-weight-asc, var(--ag-icon-font-weight));
  color: var(--ag-icon-font-color-asc, var(--ag-icon-font-color));
}

.ag-icon-asc::before {
  content: var(--ag-icon-font-code-asc, "\\f103");
  display: var(--ag-icon-font-display-asc, var(--ag-icon-font-display));
}

.ag-icon-asc::after {
  background-image: var(--ag-icon-image-asc, var(--ag-icon-image));
  display: var(--ag-icon-image-display-asc, var(--ag-icon-image-display));
  opacity: var(--ag-icon-image-opacity-asc, var(--ag-icon-image-opacity, 0.9));
}

.ag-icon-cancel {
  font-family: var(--ag-icon-font-family-cancel, var(--ag-icon-font-family));
  font-weight: var(--ag-icon-font-weight-cancel, var(--ag-icon-font-weight));
  color: var(--ag-icon-font-color-cancel, var(--ag-icon-font-color));
}

.ag-icon-cancel::before {
  content: var(--ag-icon-font-code-cancel, "\\f104");
  display: var(--ag-icon-font-display-cancel, var(--ag-icon-font-display));
}

.ag-icon-cancel::after {
  background-image: var(--ag-icon-image-cancel, var(--ag-icon-image));
  display: var(--ag-icon-image-display-cancel, var(--ag-icon-image-display));
  opacity: var(--ag-icon-image-opacity-cancel, var(--ag-icon-image-opacity, 0.9));
}

.ag-icon-chart {
  font-family: var(--ag-icon-font-family-chart, var(--ag-icon-font-family));
  font-weight: var(--ag-icon-font-weight-chart, var(--ag-icon-font-weight));
  color: var(--ag-icon-font-color-chart, var(--ag-icon-font-color));
}

.ag-icon-chart::before {
  content: var(--ag-icon-font-code-chart, "\\f105");
  display: var(--ag-icon-font-display-chart, var(--ag-icon-font-display));
}

.ag-icon-chart::after {
  background-image: var(--ag-icon-image-chart, var(--ag-icon-image));
  display: var(--ag-icon-image-display-chart, var(--ag-icon-image-display));
  opacity: var(--ag-icon-image-opacity-chart, var(--ag-icon-image-opacity, 0.9));
}

.ag-icon-checkbox-checked {
  font-family: var(--ag-icon-font-family-checkbox-checked, var(--ag-icon-font-family));
  font-weight: var(--ag-icon-font-weight-checkbox-checked, var(--ag-icon-font-weight));
  color: var(--ag-icon-font-color-checkbox-checked, var(--ag-icon-font-color));
}

.ag-icon-checkbox-checked::before {
  content: var(--ag-icon-font-code-checkbox-checked, "\\f106");
  display: var(--ag-icon-font-display-checkbox-checked, var(--ag-icon-font-display));
}

.ag-icon-checkbox-checked::after {
  background-image: var(--ag-icon-image-checkbox-checked, var(--ag-icon-image));
  display: var(--ag-icon-image-display-checkbox-checked, var(--ag-icon-image-display));
  opacity: var(--ag-icon-image-opacity-checkbox-checked, var(--ag-icon-image-opacity, 0.9));
}

.ag-icon-checkbox-indeterminate {
  font-family: var(--ag-icon-font-family-checkbox-indeterminate, var(--ag-icon-font-family));
  font-weight: var(--ag-icon-font-weight-checkbox-indeterminate, var(--ag-icon-font-weight));
  color: var(--ag-icon-font-color-checkbox-indeterminate, var(--ag-icon-font-color));
}

.ag-icon-checkbox-indeterminate::before {
  content: var(--ag-icon-font-code-checkbox-indeterminate, "\\f107");
  display: var(--ag-icon-font-display-checkbox-indeterminate, var(--ag-icon-font-display));
}

.ag-icon-checkbox-indeterminate::after {
  background-image: var(--ag-icon-image-checkbox-indeterminate, var(--ag-icon-image));
  display: var(--ag-icon-image-display-checkbox-indeterminate, var(--ag-icon-image-display));
  opacity: var(--ag-icon-image-opacity-checkbox-indeterminate, var(--ag-icon-image-opacity, 0.9));
}

.ag-icon-checkbox-unchecked {
  font-family: var(--ag-icon-font-family-checkbox-unchecked, var(--ag-icon-font-family));
  font-weight: var(--ag-icon-font-weight-checkbox-unchecked, var(--ag-icon-font-weight));
  color: var(--ag-icon-font-color-checkbox-unchecked, var(--ag-icon-font-color));
}

.ag-icon-checkbox-unchecked::before {
  content: var(--ag-icon-font-code-checkbox-unchecked, "\\f108");
  display: var(--ag-icon-font-display-checkbox-unchecked, var(--ag-icon-font-display));
}

.ag-icon-checkbox-unchecked::after {
  background-image: var(--ag-icon-image-checkbox-unchecked, var(--ag-icon-image));
  display: var(--ag-icon-image-display-checkbox-unchecked, var(--ag-icon-image-display));
  opacity: var(--ag-icon-image-opacity-checkbox-unchecked, var(--ag-icon-image-opacity, 0.9));
}

.ag-icon-color-picker {
  font-family: var(--ag-icon-font-family-color-picker, var(--ag-icon-font-family));
  font-weight: var(--ag-icon-font-weight-color-picker, var(--ag-icon-font-weight));
  color: var(--ag-icon-font-color-color-picker, var(--ag-icon-font-color));
}

.ag-icon-color-picker::before {
  content: var(--ag-icon-font-code-color-picker, "\\f109");
  display: var(--ag-icon-font-display-color-picker, var(--ag-icon-font-display));
}

.ag-icon-color-picker::after {
  background-image: var(--ag-icon-image-color-picker, var(--ag-icon-image));
  display: var(--ag-icon-image-display-color-picker, var(--ag-icon-image-display));
  opacity: var(--ag-icon-image-opacity-color-picker, var(--ag-icon-image-opacity, 0.9));
}

.ag-icon-columns {
  font-family: var(--ag-icon-font-family-columns, var(--ag-icon-font-family));
  font-weight: var(--ag-icon-font-weight-columns, var(--ag-icon-font-weight));
  color: var(--ag-icon-font-color-columns, var(--ag-icon-font-color));
}

.ag-icon-columns::before {
  content: var(--ag-icon-font-code-columns, "\\f10a");
  display: var(--ag-icon-font-display-columns, var(--ag-icon-font-display));
}

.ag-icon-columns::after {
  background-image: var(--ag-icon-image-columns, var(--ag-icon-image));
  display: var(--ag-icon-image-display-columns, var(--ag-icon-image-display));
  opacity: var(--ag-icon-image-opacity-columns, var(--ag-icon-image-opacity, 0.9));
}

.ag-icon-contracted {
  font-family: var(--ag-icon-font-family-contracted, var(--ag-icon-font-family));
  font-weight: var(--ag-icon-font-weight-contracted, var(--ag-icon-font-weight));
  color: var(--ag-icon-font-color-contracted, var(--ag-icon-font-color));
}

.ag-icon-contracted::before {
  content: var(--ag-icon-font-code-contracted, "\\f10b");
  display: var(--ag-icon-font-display-contracted, var(--ag-icon-font-display));
}

.ag-icon-contracted::after {
  background-image: var(--ag-icon-image-contracted, var(--ag-icon-image));
  display: var(--ag-icon-image-display-contracted, var(--ag-icon-image-display));
  opacity: var(--ag-icon-image-opacity-contracted, var(--ag-icon-image-opacity, 0.9));
}

.ag-icon-copy {
  font-family: var(--ag-icon-font-family-copy, var(--ag-icon-font-family));
  font-weight: var(--ag-icon-font-weight-copy, var(--ag-icon-font-weight));
  color: var(--ag-icon-font-color-copy, var(--ag-icon-font-color));
}

.ag-icon-copy::before {
  content: var(--ag-icon-font-code-copy, "\\f10c");
  display: var(--ag-icon-font-display-copy, var(--ag-icon-font-display));
}

.ag-icon-copy::after {
  background-image: var(--ag-icon-image-copy, var(--ag-icon-image));
  display: var(--ag-icon-image-display-copy, var(--ag-icon-image-display));
  opacity: var(--ag-icon-image-opacity-copy, var(--ag-icon-image-opacity, 0.9));
}

.ag-icon-cross {
  font-family: var(--ag-icon-font-family-cross, var(--ag-icon-font-family));
  font-weight: var(--ag-icon-font-weight-cross, var(--ag-icon-font-weight));
  color: var(--ag-icon-font-color-cross, var(--ag-icon-font-color));
}

.ag-icon-cross::before {
  content: var(--ag-icon-font-code-cross, "\\f10d");
  display: var(--ag-icon-font-display-cross, var(--ag-icon-font-display));
}

.ag-icon-cross::after {
  background-image: var(--ag-icon-image-cross, var(--ag-icon-image));
  display: var(--ag-icon-image-display-cross, var(--ag-icon-image-display));
  opacity: var(--ag-icon-image-opacity-cross, var(--ag-icon-image-opacity, 0.9));
}

.ag-icon-csv {
  font-family: var(--ag-icon-font-family-csv, var(--ag-icon-font-family));
  font-weight: var(--ag-icon-font-weight-csv, var(--ag-icon-font-weight));
  color: var(--ag-icon-font-color-csv, var(--ag-icon-font-color));
}

.ag-icon-csv::before {
  content: var(--ag-icon-font-code-csv, "\\f10e");
  display: var(--ag-icon-font-display-csv, var(--ag-icon-font-display));
}

.ag-icon-csv::after {
  background-image: var(--ag-icon-image-csv, var(--ag-icon-image));
  display: var(--ag-icon-image-display-csv, var(--ag-icon-image-display));
  opacity: var(--ag-icon-image-opacity-csv, var(--ag-icon-image-opacity, 0.9));
}

.ag-icon-cut {
  font-family: var(--ag-icon-font-family-cut, var(--ag-icon-font-family));
  font-weight: var(--ag-icon-font-weight-cut, var(--ag-icon-font-weight));
  color: var(--ag-icon-font-color-cut, var(--ag-icon-font-color));
}

.ag-icon-cut::before {
  content: var(--ag-icon-font-code-cut, "\\f10f");
  display: var(--ag-icon-font-display-cut, var(--ag-icon-font-display));
}

.ag-icon-cut::after {
  background-image: var(--ag-icon-image-cut, var(--ag-icon-image));
  display: var(--ag-icon-image-display-cut, var(--ag-icon-image-display));
  opacity: var(--ag-icon-image-opacity-cut, var(--ag-icon-image-opacity, 0.9));
}

.ag-icon-desc {
  font-family: var(--ag-icon-font-family-desc, var(--ag-icon-font-family));
  font-weight: var(--ag-icon-font-weight-desc, var(--ag-icon-font-weight));
  color: var(--ag-icon-font-color-desc, var(--ag-icon-font-color));
}

.ag-icon-desc::before {
  content: var(--ag-icon-font-code-desc, "\\f110");
  display: var(--ag-icon-font-display-desc, var(--ag-icon-font-display));
}

.ag-icon-desc::after {
  background-image: var(--ag-icon-image-desc, var(--ag-icon-image));
  display: var(--ag-icon-image-display-desc, var(--ag-icon-image-display));
  opacity: var(--ag-icon-image-opacity-desc, var(--ag-icon-image-opacity, 0.9));
}

.ag-icon-excel {
  font-family: var(--ag-icon-font-family-excel, var(--ag-icon-font-family));
  font-weight: var(--ag-icon-font-weight-excel, var(--ag-icon-font-weight));
  color: var(--ag-icon-font-color-excel, var(--ag-icon-font-color));
}

.ag-icon-excel::before {
  content: var(--ag-icon-font-code-excel, "\\f111");
  display: var(--ag-icon-font-display-excel, var(--ag-icon-font-display));
}

.ag-icon-excel::after {
  background-image: var(--ag-icon-image-excel, var(--ag-icon-image));
  display: var(--ag-icon-image-display-excel, var(--ag-icon-image-display));
  opacity: var(--ag-icon-image-opacity-excel, var(--ag-icon-image-opacity, 0.9));
}

.ag-icon-expanded {
  font-family: var(--ag-icon-font-family-expanded, var(--ag-icon-font-family));
  font-weight: var(--ag-icon-font-weight-expanded, var(--ag-icon-font-weight));
  color: var(--ag-icon-font-color-expanded, var(--ag-icon-font-color));
}

.ag-icon-expanded::before {
  content: var(--ag-icon-font-code-expanded, "\\f112");
  display: var(--ag-icon-font-display-expanded, var(--ag-icon-font-display));
}

.ag-icon-expanded::after {
  background-image: var(--ag-icon-image-expanded, var(--ag-icon-image));
  display: var(--ag-icon-image-display-expanded, var(--ag-icon-image-display));
  opacity: var(--ag-icon-image-opacity-expanded, var(--ag-icon-image-opacity, 0.9));
}

.ag-icon-eye-slash {
  font-family: var(--ag-icon-font-family-eye-slash, var(--ag-icon-font-family));
  font-weight: var(--ag-icon-font-weight-eye-slash, var(--ag-icon-font-weight));
  color: var(--ag-icon-font-color-eye-slash, var(--ag-icon-font-color));
}

.ag-icon-eye-slash::before {
  content: var(--ag-icon-font-code-eye-slash, "\\f113");
  display: var(--ag-icon-font-display-eye-slash, var(--ag-icon-font-display));
}

.ag-icon-eye-slash::after {
  background-image: var(--ag-icon-image-eye-slash, var(--ag-icon-image));
  display: var(--ag-icon-image-display-eye-slash, var(--ag-icon-image-display));
  opacity: var(--ag-icon-image-opacity-eye-slash, var(--ag-icon-image-opacity, 0.9));
}

.ag-icon-eye {
  font-family: var(--ag-icon-font-family-eye, var(--ag-icon-font-family));
  font-weight: var(--ag-icon-font-weight-eye, var(--ag-icon-font-weight));
  color: var(--ag-icon-font-color-eye, var(--ag-icon-font-color));
}

.ag-icon-eye::before {
  content: var(--ag-icon-font-code-eye, "\\f114");
  display: var(--ag-icon-font-display-eye, var(--ag-icon-font-display));
}

.ag-icon-eye::after {
  background-image: var(--ag-icon-image-eye, var(--ag-icon-image));
  display: var(--ag-icon-image-display-eye, var(--ag-icon-image-display));
  opacity: var(--ag-icon-image-opacity-eye, var(--ag-icon-image-opacity, 0.9));
}

.ag-icon-filter {
  font-family: var(--ag-icon-font-family-filter, var(--ag-icon-font-family));
  font-weight: var(--ag-icon-font-weight-filter, var(--ag-icon-font-weight));
  color: var(--ag-icon-font-color-filter, var(--ag-icon-font-color));
}

.ag-icon-filter::before {
  content: var(--ag-icon-font-code-filter, "\\f115");
  display: var(--ag-icon-font-display-filter, var(--ag-icon-font-display));
}

.ag-icon-filter::after {
  background-image: var(--ag-icon-image-filter, var(--ag-icon-image));
  display: var(--ag-icon-image-display-filter, var(--ag-icon-image-display));
  opacity: var(--ag-icon-image-opacity-filter, var(--ag-icon-image-opacity, 0.9));
}

.ag-icon-first {
  font-family: var(--ag-icon-font-family-first, var(--ag-icon-font-family));
  font-weight: var(--ag-icon-font-weight-first, var(--ag-icon-font-weight));
  color: var(--ag-icon-font-color-first, var(--ag-icon-font-color));
}

.ag-icon-first::before {
  content: var(--ag-icon-font-code-first, "\\f116");
  display: var(--ag-icon-font-display-first, var(--ag-icon-font-display));
}

.ag-icon-first::after {
  background-image: var(--ag-icon-image-first, var(--ag-icon-image));
  display: var(--ag-icon-image-display-first, var(--ag-icon-image-display));
  opacity: var(--ag-icon-image-opacity-first, var(--ag-icon-image-opacity, 0.9));
}

.ag-icon-grip {
  font-family: var(--ag-icon-font-family-grip, var(--ag-icon-font-family));
  font-weight: var(--ag-icon-font-weight-grip, var(--ag-icon-font-weight));
  color: var(--ag-icon-font-color-grip, var(--ag-icon-font-color));
}

.ag-icon-grip::before {
  content: var(--ag-icon-font-code-grip, "\\f117");
  display: var(--ag-icon-font-display-grip, var(--ag-icon-font-display));
}

.ag-icon-grip::after {
  background-image: var(--ag-icon-image-grip, var(--ag-icon-image));
  display: var(--ag-icon-image-display-grip, var(--ag-icon-image-display));
  opacity: var(--ag-icon-image-opacity-grip, var(--ag-icon-image-opacity, 0.9));
}

.ag-icon-group {
  font-family: var(--ag-icon-font-family-group, var(--ag-icon-font-family));
  font-weight: var(--ag-icon-font-weight-group, var(--ag-icon-font-weight));
  color: var(--ag-icon-font-color-group, var(--ag-icon-font-color));
}

.ag-icon-group::before {
  content: var(--ag-icon-font-code-group, "\\f118");
  display: var(--ag-icon-font-display-group, var(--ag-icon-font-display));
}

.ag-icon-group::after {
  background-image: var(--ag-icon-image-group, var(--ag-icon-image));
  display: var(--ag-icon-image-display-group, var(--ag-icon-image-display));
  opacity: var(--ag-icon-image-opacity-group, var(--ag-icon-image-opacity, 0.9));
}

.ag-icon-last {
  font-family: var(--ag-icon-font-family-last, var(--ag-icon-font-family));
  font-weight: var(--ag-icon-font-weight-last, var(--ag-icon-font-weight));
  color: var(--ag-icon-font-color-last, var(--ag-icon-font-color));
}

.ag-icon-last::before {
  content: var(--ag-icon-font-code-last, "\\f119");
  display: var(--ag-icon-font-display-last, var(--ag-icon-font-display));
}

.ag-icon-last::after {
  background-image: var(--ag-icon-image-last, var(--ag-icon-image));
  display: var(--ag-icon-image-display-last, var(--ag-icon-image-display));
  opacity: var(--ag-icon-image-opacity-last, var(--ag-icon-image-opacity, 0.9));
}

.ag-icon-left {
  font-family: var(--ag-icon-font-family-left, var(--ag-icon-font-family));
  font-weight: var(--ag-icon-font-weight-left, var(--ag-icon-font-weight));
  color: var(--ag-icon-font-color-left, var(--ag-icon-font-color));
}

.ag-icon-left::before {
  content: var(--ag-icon-font-code-left, "\\f11a");
  display: var(--ag-icon-font-display-left, var(--ag-icon-font-display));
}

.ag-icon-left::after {
  background-image: var(--ag-icon-image-left, var(--ag-icon-image));
  display: var(--ag-icon-image-display-left, var(--ag-icon-image-display));
  opacity: var(--ag-icon-image-opacity-left, var(--ag-icon-image-opacity, 0.9));
}

.ag-icon-linked {
  font-family: var(--ag-icon-font-family-linked, var(--ag-icon-font-family));
  font-weight: var(--ag-icon-font-weight-linked, var(--ag-icon-font-weight));
  color: var(--ag-icon-font-color-linked, var(--ag-icon-font-color));
}

.ag-icon-linked::before {
  content: var(--ag-icon-font-code-linked, "\\f11b");
  display: var(--ag-icon-font-display-linked, var(--ag-icon-font-display));
}

.ag-icon-linked::after {
  background-image: var(--ag-icon-image-linked, var(--ag-icon-image));
  display: var(--ag-icon-image-display-linked, var(--ag-icon-image-display));
  opacity: var(--ag-icon-image-opacity-linked, var(--ag-icon-image-opacity, 0.9));
}

.ag-icon-loading {
  font-family: var(--ag-icon-font-family-loading, var(--ag-icon-font-family));
  font-weight: var(--ag-icon-font-weight-loading, var(--ag-icon-font-weight));
  color: var(--ag-icon-font-color-loading, var(--ag-icon-font-color));
}

.ag-icon-loading::before {
  content: var(--ag-icon-font-code-loading, "\\f11c");
  display: var(--ag-icon-font-display-loading, var(--ag-icon-font-display));
}

.ag-icon-loading::after {
  background-image: var(--ag-icon-image-loading, var(--ag-icon-image));
  display: var(--ag-icon-image-display-loading, var(--ag-icon-image-display));
  opacity: var(--ag-icon-image-opacity-loading, var(--ag-icon-image-opacity, 0.9));
}

.ag-icon-maximize {
  font-family: var(--ag-icon-font-family-maximize, var(--ag-icon-font-family));
  font-weight: var(--ag-icon-font-weight-maximize, var(--ag-icon-font-weight));
  color: var(--ag-icon-font-color-maximize, var(--ag-icon-font-color));
}

.ag-icon-maximize::before {
  content: var(--ag-icon-font-code-maximize, "\\f11d");
  display: var(--ag-icon-font-display-maximize, var(--ag-icon-font-display));
}

.ag-icon-maximize::after {
  background-image: var(--ag-icon-image-maximize, var(--ag-icon-image));
  display: var(--ag-icon-image-display-maximize, var(--ag-icon-image-display));
  opacity: var(--ag-icon-image-opacity-maximize, var(--ag-icon-image-opacity, 0.9));
}

.ag-icon-menu {
  font-family: var(--ag-icon-font-family-menu, var(--ag-icon-font-family));
  font-weight: var(--ag-icon-font-weight-menu, var(--ag-icon-font-weight));
  color: var(--ag-icon-font-color-menu, var(--ag-icon-font-color));
}

.ag-icon-menu::before {
  content: var(--ag-icon-font-code-menu, "\\f11e");
  display: var(--ag-icon-font-display-menu, var(--ag-icon-font-display));
}

.ag-icon-menu::after {
  background-image: var(--ag-icon-image-menu, var(--ag-icon-image));
  display: var(--ag-icon-image-display-menu, var(--ag-icon-image-display));
  opacity: var(--ag-icon-image-opacity-menu, var(--ag-icon-image-opacity, 0.9));
}

.ag-icon-minimize {
  font-family: var(--ag-icon-font-family-minimize, var(--ag-icon-font-family));
  font-weight: var(--ag-icon-font-weight-minimize, var(--ag-icon-font-weight));
  color: var(--ag-icon-font-color-minimize, var(--ag-icon-font-color));
}

.ag-icon-minimize::before {
  content: var(--ag-icon-font-code-minimize, "\\f11f");
  display: var(--ag-icon-font-display-minimize, var(--ag-icon-font-display));
}

.ag-icon-minimize::after {
  background-image: var(--ag-icon-image-minimize, var(--ag-icon-image));
  display: var(--ag-icon-image-display-minimize, var(--ag-icon-image-display));
  opacity: var(--ag-icon-image-opacity-minimize, var(--ag-icon-image-opacity, 0.9));
}

.ag-icon-next {
  font-family: var(--ag-icon-font-family-next, var(--ag-icon-font-family));
  font-weight: var(--ag-icon-font-weight-next, var(--ag-icon-font-weight));
  color: var(--ag-icon-font-color-next, var(--ag-icon-font-color));
}

.ag-icon-next::before {
  content: var(--ag-icon-font-code-next, "\\f120");
  display: var(--ag-icon-font-display-next, var(--ag-icon-font-display));
}

.ag-icon-next::after {
  background-image: var(--ag-icon-image-next, var(--ag-icon-image));
  display: var(--ag-icon-image-display-next, var(--ag-icon-image-display));
  opacity: var(--ag-icon-image-opacity-next, var(--ag-icon-image-opacity, 0.9));
}

.ag-icon-none {
  font-family: var(--ag-icon-font-family-none, var(--ag-icon-font-family));
  font-weight: var(--ag-icon-font-weight-none, var(--ag-icon-font-weight));
  color: var(--ag-icon-font-color-none, var(--ag-icon-font-color));
}

.ag-icon-none::before {
  content: var(--ag-icon-font-code-none, "\\f121");
  display: var(--ag-icon-font-display-none, var(--ag-icon-font-display));
}

.ag-icon-none::after {
  background-image: var(--ag-icon-image-none, var(--ag-icon-image));
  display: var(--ag-icon-image-display-none, var(--ag-icon-image-display));
  opacity: var(--ag-icon-image-opacity-none, var(--ag-icon-image-opacity, 0.9));
}

.ag-icon-not-allowed {
  font-family: var(--ag-icon-font-family-not-allowed, var(--ag-icon-font-family));
  font-weight: var(--ag-icon-font-weight-not-allowed, var(--ag-icon-font-weight));
  color: var(--ag-icon-font-color-not-allowed, var(--ag-icon-font-color));
}

.ag-icon-not-allowed::before {
  content: var(--ag-icon-font-code-not-allowed, "\\f122");
  display: var(--ag-icon-font-display-not-allowed, var(--ag-icon-font-display));
}

.ag-icon-not-allowed::after {
  background-image: var(--ag-icon-image-not-allowed, var(--ag-icon-image));
  display: var(--ag-icon-image-display-not-allowed, var(--ag-icon-image-display));
  opacity: var(--ag-icon-image-opacity-not-allowed, var(--ag-icon-image-opacity, 0.9));
}

.ag-icon-paste {
  font-family: var(--ag-icon-font-family-paste, var(--ag-icon-font-family));
  font-weight: var(--ag-icon-font-weight-paste, var(--ag-icon-font-weight));
  color: var(--ag-icon-font-color-paste, var(--ag-icon-font-color));
}

.ag-icon-paste::before {
  content: var(--ag-icon-font-code-paste, "\\f123");
  display: var(--ag-icon-font-display-paste, var(--ag-icon-font-display));
}

.ag-icon-paste::after {
  background-image: var(--ag-icon-image-paste, var(--ag-icon-image));
  display: var(--ag-icon-image-display-paste, var(--ag-icon-image-display));
  opacity: var(--ag-icon-image-opacity-paste, var(--ag-icon-image-opacity, 0.9));
}

.ag-icon-pin {
  font-family: var(--ag-icon-font-family-pin, var(--ag-icon-font-family));
  font-weight: var(--ag-icon-font-weight-pin, var(--ag-icon-font-weight));
  color: var(--ag-icon-font-color-pin, var(--ag-icon-font-color));
}

.ag-icon-pin::before {
  content: var(--ag-icon-font-code-pin, "\\f124");
  display: var(--ag-icon-font-display-pin, var(--ag-icon-font-display));
}

.ag-icon-pin::after {
  background-image: var(--ag-icon-image-pin, var(--ag-icon-image));
  display: var(--ag-icon-image-display-pin, var(--ag-icon-image-display));
  opacity: var(--ag-icon-image-opacity-pin, var(--ag-icon-image-opacity, 0.9));
}

.ag-icon-pivot {
  font-family: var(--ag-icon-font-family-pivot, var(--ag-icon-font-family));
  font-weight: var(--ag-icon-font-weight-pivot, var(--ag-icon-font-weight));
  color: var(--ag-icon-font-color-pivot, var(--ag-icon-font-color));
}

.ag-icon-pivot::before {
  content: var(--ag-icon-font-code-pivot, "\\f125");
  display: var(--ag-icon-font-display-pivot, var(--ag-icon-font-display));
}

.ag-icon-pivot::after {
  background-image: var(--ag-icon-image-pivot, var(--ag-icon-image));
  display: var(--ag-icon-image-display-pivot, var(--ag-icon-image-display));
  opacity: var(--ag-icon-image-opacity-pivot, var(--ag-icon-image-opacity, 0.9));
}

.ag-icon-previous {
  font-family: var(--ag-icon-font-family-previous, var(--ag-icon-font-family));
  font-weight: var(--ag-icon-font-weight-previous, var(--ag-icon-font-weight));
  color: var(--ag-icon-font-color-previous, var(--ag-icon-font-color));
}

.ag-icon-previous::before {
  content: var(--ag-icon-font-code-previous, "\\f126");
  display: var(--ag-icon-font-display-previous, var(--ag-icon-font-display));
}

.ag-icon-previous::after {
  background-image: var(--ag-icon-image-previous, var(--ag-icon-image));
  display: var(--ag-icon-image-display-previous, var(--ag-icon-image-display));
  opacity: var(--ag-icon-image-opacity-previous, var(--ag-icon-image-opacity, 0.9));
}

.ag-icon-radio-button-off {
  font-family: var(--ag-icon-font-family-radio-button-off, var(--ag-icon-font-family));
  font-weight: var(--ag-icon-font-weight-radio-button-off, var(--ag-icon-font-weight));
  color: var(--ag-icon-font-color-radio-button-off, var(--ag-icon-font-color));
}

.ag-icon-radio-button-off::before {
  content: var(--ag-icon-font-code-radio-button-off, "\\f127");
  display: var(--ag-icon-font-display-radio-button-off, var(--ag-icon-font-display));
}

.ag-icon-radio-button-off::after {
  background-image: var(--ag-icon-image-radio-button-off, var(--ag-icon-image));
  display: var(--ag-icon-image-display-radio-button-off, var(--ag-icon-image-display));
  opacity: var(--ag-icon-image-opacity-radio-button-off, var(--ag-icon-image-opacity, 0.9));
}

.ag-icon-radio-button-on {
  font-family: var(--ag-icon-font-family-radio-button-on, var(--ag-icon-font-family));
  font-weight: var(--ag-icon-font-weight-radio-button-on, var(--ag-icon-font-weight));
  color: var(--ag-icon-font-color-radio-button-on, var(--ag-icon-font-color));
}

.ag-icon-radio-button-on::before {
  content: var(--ag-icon-font-code-radio-button-on, "\\f128");
  display: var(--ag-icon-font-display-radio-button-on, var(--ag-icon-font-display));
}

.ag-icon-radio-button-on::after {
  background-image: var(--ag-icon-image-radio-button-on, var(--ag-icon-image));
  display: var(--ag-icon-image-display-radio-button-on, var(--ag-icon-image-display));
  opacity: var(--ag-icon-image-opacity-radio-button-on, var(--ag-icon-image-opacity, 0.9));
}

.ag-icon-right {
  font-family: var(--ag-icon-font-family-right, var(--ag-icon-font-family));
  font-weight: var(--ag-icon-font-weight-right, var(--ag-icon-font-weight));
  color: var(--ag-icon-font-color-right, var(--ag-icon-font-color));
}

.ag-icon-right::before {
  content: var(--ag-icon-font-code-right, "\\f129");
  display: var(--ag-icon-font-display-right, var(--ag-icon-font-display));
}

.ag-icon-right::after {
  background-image: var(--ag-icon-image-right, var(--ag-icon-image));
  display: var(--ag-icon-image-display-right, var(--ag-icon-image-display));
  opacity: var(--ag-icon-image-opacity-right, var(--ag-icon-image-opacity, 0.9));
}

.ag-icon-save {
  font-family: var(--ag-icon-font-family-save, var(--ag-icon-font-family));
  font-weight: var(--ag-icon-font-weight-save, var(--ag-icon-font-weight));
  color: var(--ag-icon-font-color-save, var(--ag-icon-font-color));
}

.ag-icon-save::before {
  content: var(--ag-icon-font-code-save, "\\f12a");
  display: var(--ag-icon-font-display-save, var(--ag-icon-font-display));
}

.ag-icon-save::after {
  background-image: var(--ag-icon-image-save, var(--ag-icon-image));
  display: var(--ag-icon-image-display-save, var(--ag-icon-image-display));
  opacity: var(--ag-icon-image-opacity-save, var(--ag-icon-image-opacity, 0.9));
}

.ag-icon-small-down {
  font-family: var(--ag-icon-font-family-small-down, var(--ag-icon-font-family));
  font-weight: var(--ag-icon-font-weight-small-down, var(--ag-icon-font-weight));
  color: var(--ag-icon-font-color-small-down, var(--ag-icon-font-color));
}

.ag-icon-small-down::before {
  content: var(--ag-icon-font-code-small-down, "\\f12b");
  display: var(--ag-icon-font-display-small-down, var(--ag-icon-font-display));
}

.ag-icon-small-down::after {
  background-image: var(--ag-icon-image-small-down, var(--ag-icon-image));
  display: var(--ag-icon-image-display-small-down, var(--ag-icon-image-display));
  opacity: var(--ag-icon-image-opacity-small-down, var(--ag-icon-image-opacity, 0.9));
}

.ag-icon-small-left {
  font-family: var(--ag-icon-font-family-small-left, var(--ag-icon-font-family));
  font-weight: var(--ag-icon-font-weight-small-left, var(--ag-icon-font-weight));
  color: var(--ag-icon-font-color-small-left, var(--ag-icon-font-color));
}

.ag-icon-small-left::before {
  content: var(--ag-icon-font-code-small-left, "\\f12c");
  display: var(--ag-icon-font-display-small-left, var(--ag-icon-font-display));
}

.ag-icon-small-left::after {
  background-image: var(--ag-icon-image-small-left, var(--ag-icon-image));
  display: var(--ag-icon-image-display-small-left, var(--ag-icon-image-display));
  opacity: var(--ag-icon-image-opacity-small-left, var(--ag-icon-image-opacity, 0.9));
}

.ag-icon-small-right {
  font-family: var(--ag-icon-font-family-small-right, var(--ag-icon-font-family));
  font-weight: var(--ag-icon-font-weight-small-right, var(--ag-icon-font-weight));
  color: var(--ag-icon-font-color-small-right, var(--ag-icon-font-color));
}

.ag-icon-small-right::before {
  content: var(--ag-icon-font-code-small-right, "\\f12d");
  display: var(--ag-icon-font-display-small-right, var(--ag-icon-font-display));
}

.ag-icon-small-right::after {
  background-image: var(--ag-icon-image-small-right, var(--ag-icon-image));
  display: var(--ag-icon-image-display-small-right, var(--ag-icon-image-display));
  opacity: var(--ag-icon-image-opacity-small-right, var(--ag-icon-image-opacity, 0.9));
}

.ag-icon-small-up {
  font-family: var(--ag-icon-font-family-small-up, var(--ag-icon-font-family));
  font-weight: var(--ag-icon-font-weight-small-up, var(--ag-icon-font-weight));
  color: var(--ag-icon-font-color-small-up, var(--ag-icon-font-color));
}

.ag-icon-small-up::before {
  content: var(--ag-icon-font-code-small-up, "\\f12e");
  display: var(--ag-icon-font-display-small-up, var(--ag-icon-font-display));
}

.ag-icon-small-up::after {
  background-image: var(--ag-icon-image-small-up, var(--ag-icon-image));
  display: var(--ag-icon-image-display-small-up, var(--ag-icon-image-display));
  opacity: var(--ag-icon-image-opacity-small-up, var(--ag-icon-image-opacity, 0.9));
}

.ag-icon-tick {
  font-family: var(--ag-icon-font-family-tick, var(--ag-icon-font-family));
  font-weight: var(--ag-icon-font-weight-tick, var(--ag-icon-font-weight));
  color: var(--ag-icon-font-color-tick, var(--ag-icon-font-color));
}

.ag-icon-tick::before {
  content: var(--ag-icon-font-code-tick, "\\f12f");
  display: var(--ag-icon-font-display-tick, var(--ag-icon-font-display));
}

.ag-icon-tick::after {
  background-image: var(--ag-icon-image-tick, var(--ag-icon-image));
  display: var(--ag-icon-image-display-tick, var(--ag-icon-image-display));
  opacity: var(--ag-icon-image-opacity-tick, var(--ag-icon-image-opacity, 0.9));
}

.ag-icon-tree-closed {
  font-family: var(--ag-icon-font-family-tree-closed, var(--ag-icon-font-family));
  font-weight: var(--ag-icon-font-weight-tree-closed, var(--ag-icon-font-weight));
  color: var(--ag-icon-font-color-tree-closed, var(--ag-icon-font-color));
}

.ag-icon-tree-closed::before {
  content: var(--ag-icon-font-code-tree-closed, "\\f130");
  display: var(--ag-icon-font-display-tree-closed, var(--ag-icon-font-display));
}

.ag-icon-tree-closed::after {
  background-image: var(--ag-icon-image-tree-closed, var(--ag-icon-image));
  display: var(--ag-icon-image-display-tree-closed, var(--ag-icon-image-display));
  opacity: var(--ag-icon-image-opacity-tree-closed, var(--ag-icon-image-opacity, 0.9));
}

.ag-icon-tree-indeterminate {
  font-family: var(--ag-icon-font-family-tree-indeterminate, var(--ag-icon-font-family));
  font-weight: var(--ag-icon-font-weight-tree-indeterminate, var(--ag-icon-font-weight));
  color: var(--ag-icon-font-color-tree-indeterminate, var(--ag-icon-font-color));
}

.ag-icon-tree-indeterminate::before {
  content: var(--ag-icon-font-code-tree-indeterminate, "\\f131");
  display: var(--ag-icon-font-display-tree-indeterminate, var(--ag-icon-font-display));
}

.ag-icon-tree-indeterminate::after {
  background-image: var(--ag-icon-image-tree-indeterminate, var(--ag-icon-image));
  display: var(--ag-icon-image-display-tree-indeterminate, var(--ag-icon-image-display));
  opacity: var(--ag-icon-image-opacity-tree-indeterminate, var(--ag-icon-image-opacity, 0.9));
}

.ag-icon-tree-open {
  font-family: var(--ag-icon-font-family-tree-open, var(--ag-icon-font-family));
  font-weight: var(--ag-icon-font-weight-tree-open, var(--ag-icon-font-weight));
  color: var(--ag-icon-font-color-tree-open, var(--ag-icon-font-color));
}

.ag-icon-tree-open::before {
  content: var(--ag-icon-font-code-tree-open, "\\f132");
  display: var(--ag-icon-font-display-tree-open, var(--ag-icon-font-display));
}

.ag-icon-tree-open::after {
  background-image: var(--ag-icon-image-tree-open, var(--ag-icon-image));
  display: var(--ag-icon-image-display-tree-open, var(--ag-icon-image-display));
  opacity: var(--ag-icon-image-opacity-tree-open, var(--ag-icon-image-opacity, 0.9));
}

.ag-icon-unlinked {
  font-family: var(--ag-icon-font-family-unlinked, var(--ag-icon-font-family));
  font-weight: var(--ag-icon-font-weight-unlinked, var(--ag-icon-font-weight));
  color: var(--ag-icon-font-color-unlinked, var(--ag-icon-font-color));
}

.ag-icon-unlinked::before {
  content: var(--ag-icon-font-code-unlinked, "\\f133");
  display: var(--ag-icon-font-display-unlinked, var(--ag-icon-font-display));
}

.ag-icon-unlinked::after {
  background-image: var(--ag-icon-image-unlinked, var(--ag-icon-image));
  display: var(--ag-icon-image-display-unlinked, var(--ag-icon-image-display));
  opacity: var(--ag-icon-image-opacity-unlinked, var(--ag-icon-image-opacity, 0.9));
}

.ag-icon-up {
  font-family: var(--ag-icon-font-family-up, var(--ag-icon-font-family));
  font-weight: var(--ag-icon-font-weight-up, var(--ag-icon-font-weight));
  color: var(--ag-icon-font-color-up, var(--ag-icon-font-color));
}

.ag-icon-up::before {
  content: var(--ag-icon-font-code-up, "\\f134");
  display: var(--ag-icon-font-display-up, var(--ag-icon-font-display));
}

.ag-icon-up::after {
  background-image: var(--ag-icon-image-up, var(--ag-icon-image));
  display: var(--ag-icon-image-display-up, var(--ag-icon-image-display));
  opacity: var(--ag-icon-image-opacity-up, var(--ag-icon-image-opacity, 0.9));
}

.ag-icon-down {
  font-family: var(--ag-icon-font-family-down, var(--ag-icon-font-family));
  font-weight: var(--ag-icon-font-weight-down, var(--ag-icon-font-weight));
  color: var(--ag-icon-font-color-down, var(--ag-icon-font-color));
}

.ag-icon-down::before {
  content: var(--ag-icon-font-code-down, "\\f135");
  display: var(--ag-icon-font-display-down, var(--ag-icon-font-display));
}

.ag-icon-down::after {
  background-image: var(--ag-icon-image-down, var(--ag-icon-image));
  display: var(--ag-icon-image-display-down, var(--ag-icon-image-display));
  opacity: var(--ag-icon-image-opacity-down, var(--ag-icon-image-opacity, 0.9));
}

.ag-icon-plus {
  font-family: var(--ag-icon-font-family-plus, var(--ag-icon-font-family));
  font-weight: var(--ag-icon-font-weight-plus, var(--ag-icon-font-weight));
  color: var(--ag-icon-font-color-plus, var(--ag-icon-font-color));
}

.ag-icon-plus::before {
  content: var(--ag-icon-font-code-plus, "\\f136");
  display: var(--ag-icon-font-display-plus, var(--ag-icon-font-display));
}

.ag-icon-plus::after {
  background-image: var(--ag-icon-image-plus, var(--ag-icon-image));
  display: var(--ag-icon-image-display-plus, var(--ag-icon-image-display));
  opacity: var(--ag-icon-image-opacity-plus, var(--ag-icon-image-opacity, 0.9));
}

.ag-icon-minus {
  font-family: var(--ag-icon-font-family-minus, var(--ag-icon-font-family));
  font-weight: var(--ag-icon-font-weight-minus, var(--ag-icon-font-weight));
  color: var(--ag-icon-font-color-minus, var(--ag-icon-font-color));
}

.ag-icon-minus::before {
  content: var(--ag-icon-font-code-minus, "\\f137");
  display: var(--ag-icon-font-display-minus, var(--ag-icon-font-display));
}

.ag-icon-minus::after {
  background-image: var(--ag-icon-image-minus, var(--ag-icon-image));
  display: var(--ag-icon-image-display-minus, var(--ag-icon-image-display));
  opacity: var(--ag-icon-image-opacity-minus, var(--ag-icon-image-opacity, 0.9));
}

.ag-icon-menu-alt {
  font-family: var(--ag-icon-font-family-menu-alt, var(--ag-icon-font-family));
  font-weight: var(--ag-icon-font-weight-menu-alt, var(--ag-icon-font-weight));
  color: var(--ag-icon-font-color-menu-alt, var(--ag-icon-font-color));
}

.ag-icon-menu-alt::before {
  content: var(--ag-icon-font-code-menu-alt, "\\f138");
  display: var(--ag-icon-font-display-menu-alt, var(--ag-icon-font-display));
}

.ag-icon-menu-alt::after {
  background-image: var(--ag-icon-image-menu-alt, var(--ag-icon-image));
  display: var(--ag-icon-image-display-menu-alt, var(--ag-icon-image-display));
  opacity: var(--ag-icon-image-opacity-menu-alt, var(--ag-icon-image-opacity, 0.9));
}

.ag-icon-settings {
  font-family: var(--ag-icon-font-family-settings, var(--ag-icon-font-family));
  font-weight: var(--ag-icon-font-weight-settings, var(--ag-icon-font-weight));
  color: var(--ag-icon-font-color-settings, var(--ag-icon-font-color));
}

.ag-icon-settings::before {
  content: var(--ag-icon-font-code-settings, "\\f139");
  display: var(--ag-icon-font-display-settings, var(--ag-icon-font-display));
}

.ag-icon-settings::after {
  background-image: var(--ag-icon-image-settings, var(--ag-icon-image));
  display: var(--ag-icon-image-display-settings, var(--ag-icon-image-display));
  opacity: var(--ag-icon-image-opacity-settings, var(--ag-icon-image-opacity, 0.9));
}

.ag-icon-row-drag::before {
  content: var(--ag-icon-font-code-grip);
}

.ag-left-arrow::before {
  content: var(--ag-icon-font-code-left);
}

.ag-right-arrow::before {
  content: var(--ag-icon-font-code-right);
}

[class*=ag-theme-] {
  --ag-foreground-color: #000;
  --ag-data-color: var(--ag-foreground-color);
  --ag-secondary-foreground-color: var(--ag-foreground-color);
  --ag-header-foreground-color: var(--ag-secondary-foreground-color);
  --ag-disabled-foreground-color: rgba(0, 0, 0, 0.5);
  --ag-background-color: #fff;
  --ag-header-background-color: transparent;
  --ag-tooltip-background-color: transparent;
  --ag-subheader-background-color: transparent;
  --ag-subheader-toolbar-background-color: transparent;
  --ag-control-panel-background-color: transparent;
  --ag-side-button-selected-background-color: var(--ag-control-panel-background-color);
  --ag-selected-row-background-color: #bbb;
  --ag-odd-row-background-color: var(--ag-background-color);
  --ag-modal-overlay-background-color: rgba(255, 255, 255, 0.66);
  --ag-menu-background-color: var(--ag-background-color);
  --ag-menu-border-color: var(--ag-border-color);
  --ag-panel-background-color: var(--ag-background-color);
  --ag-panel-border-color: var(--ag-border-color);
  --ag-row-hover-color: transparent;
  --ag-column-hover-color: transparent;
  --ag-range-selection-border-color: var(--ag-foreground-color);
  --ag-range-selection-border-style: solid;
  --ag-range-selection-background-color: rgba(0, 0, 0, 0.2);
  --ag-range-selection-background-color-2: var(--ag-range-selection-background-color);
  --ag-range-selection-background-color-3: var(--ag-range-selection-background-color);
  --ag-range-selection-background-color-4: var(--ag-range-selection-background-color);
  --ag-range-selection-highlight-color: var(--ag-range-selection-border-color);
  --ag-selected-tab-underline-color: var(--ag-range-selection-border-color);
  --ag-selected-tab-underline-width: 0;
  --ag-selected-tab-underline-transition-speed: 0s;
  --ag-range-selection-chart-category-background-color: rgba(0, 255, 132, 0.1);
  --ag-range-selection-chart-background-color: rgba(0, 88, 255, 0.1);
  --ag-header-cell-hover-background-color: transparent;
  --ag-header-cell-moving-background-color: var(--ag-background-color);
  --ag-value-change-value-highlight-background-color: rgba(22, 160, 133, 0.5);
  --ag-value-change-delta-up-color: #43a047;
  --ag-value-change-delta-down-color: #e53935;
  --ag-row-loading-skeleton-effect-color: rgba(66, 66, 66, 0.2);
  --ag-chip-background-color: transparent;
  --ag-chip-border-color: var(--ag-chip-background-color);
  --ag-borders: solid 1px;
  --ag-border-color: rgba(0, 0, 0, 0.25);
  --ag-borders-critical: var(--ag-borders);
  --ag-borders-secondary: var(--ag-borders);
  --ag-secondary-border-color: var(--ag-border-color);
  --ag-row-border-style: solid;
  --ag-row-border-color: var(--ag-secondary-border-color);
  --ag-row-border-width: 1px;
  --ag-cell-horizontal-border: solid transparent;
  --ag-borders-input: var(--ag-borders-secondary);
  --ag-input-border-color: var(--ag-secondary-border-color);
  --ag-borders-input-invalid: solid 2px;
  --ag-input-border-color-invalid: var(--ag-invalid-color);
  --ag-borders-side-button: var(--ag-borders);
  --ag-border-radius: 0px;
  --ag-wrapper-border-radius: var(--ag-border-radius);
  --ag-row-border-color: var(--ag-secondary-border-color);
  --ag-header-column-separator-display: none;
  --ag-header-column-separator-height: 100%;
  --ag-header-column-separator-width: 1px;
  --ag-header-column-separator-color: var(--ag-secondary-border-color);
  --ag-header-column-resize-handle-display: none;
  --ag-header-column-resize-handle-height: 50%;
  --ag-header-column-resize-handle-width: 1px;
  --ag-header-column-resize-handle-color: var(--ag-secondary-border-color);
  --ag-invalid-color: red;
  --ag-input-disabled-border-color: var(--ag-input-border-color);
  --ag-input-disabled-background-color: transparent;
  --ag-checkbox-background-color: transparent;
  --ag-checkbox-border-radius: var(--ag-border-radius);
  --ag-checkbox-checked-color: var(--ag-foreground-color);
  --ag-checkbox-unchecked-color: var(--ag-foreground-color);
  --ag-checkbox-indeterminate-color: var(--ag-checkbox-unchecked-color);
  --ag-toggle-button-off-border-color: var(--ag-checkbox-unchecked-color);
  --ag-toggle-button-off-background-color: var(--ag-checkbox-unchecked-color);
  --ag-toggle-button-on-border-color: var(--ag-checkbox-checked-color);
  --ag-toggle-button-on-background-color: var(--ag-checkbox-checked-color);
  --ag-toggle-button-switch-background-color: var(--ag-background-color);
  --ag-toggle-button-switch-border-color: var(--ag-toggle-button-off-border-color);
  --ag-toggle-button-border-width: 1px;
  --ag-toggle-button-height: var(--ag-icon-size);
  --ag-toggle-button-width: calc(var(--ag-toggle-button-height) * 2);
  --ag-input-focus-box-shadow: none;
  --ag-input-focus-border-color: none;
  --ag-minichart-selected-chart-color: var(--ag-checkbox-checked-color);
  --ag-minichart-selected-page-color: var(--ag-checkbox-checked-color);
  --ag-grid-size: 4px;
  --ag-icon-size: 12px;
  --ag-icon-font-weight: normal;
  --ag-icon-font-color: var(--ag-foreground-color);
  --ag-icon-image-display: block;
  --ag-widget-container-horizontal-padding: calc(var(--ag-grid-size) * 1.5);
  --ag-widget-container-vertical-padding: calc(var(--ag-grid-size) * 1.5);
  --ag-widget-horizontal-spacing: calc(var(--ag-grid-size) * 2);
  --ag-widget-vertical-spacing: var(--ag-grid-size);
  --ag-cell-horizontal-padding: calc(var(--ag-grid-size) * 3);
  --ag-cell-widget-spacing: var(--ag-cell-horizontal-padding);
  --ag-row-height: calc(var(--ag-grid-size) * 6 + 1px);
  --ag-header-height: var(--ag-row-height);
  --ag-list-item-height: calc(var(--ag-grid-size) * 5);
  --ag-column-select-indent-size: calc(var(--ag-grid-size) + var(--ag-icon-size));
  --ag-set-filter-indent-size: calc(var(--ag-grid-size) + var(--ag-icon-size));
  --ag-advanced-filter-builder-indent-size: calc(var(--ag-grid-size) * 2 + var(--ag-icon-size));
  --ag-row-group-indent-size: calc(var(--ag-cell-widget-spacing) + var(--ag-icon-size));
  --ag-filter-tool-panel-group-indent: 16px;
  --ag-tab-min-width: 220px;
  --ag-chart-menu-panel-width: var(--ag-tab-min-width);
  --ag-menu-min-width: 181px;
  --ag-side-bar-panel-width: 200px;
  --ag-font-family: "Helvetica Neue", sans-serif;
  --ag-font-size: 14px;
  --ag-card-radius: var(--ag-border-radius);
  --ag-card-shadow: none;
  --ag-popup-shadow: 5px 5px 10px rgba(0, 0, 0, 0.3);
  --ag-advanced-filter-join-pill-color: #f08e8d;
  --ag-advanced-filter-column-pill-color: #a6e194;
  --ag-advanced-filter-option-pill-color: #f3c08b;
  --ag-advanced-filter-value-pill-color: #85c0e4;
}

.ag-root-wrapper,
.ag-sticky-top,
.ag-sticky-bottom,
.ag-dnd-ghost {
  background-color: var(--ag-background-color);
}

.ag-sticky-bottom {
  border-top: var(--ag-row-border-style) var(--ag-row-border-color) var(--ag-row-border-width);
}

.ag-root-wrapper,
.ag-popup {
  --ag-indentation-level: 0;
}

[class*=ag-theme-] {
  -webkit-font-smoothing: antialiased;
  font-family: var(--ag-font-family);
  font-size: var(--ag-font-size);
  line-height: normal;
  color: var(--ag-foreground-color);
}

ag-grid,
ag-grid-angular,
ag-grid-ng2,
ag-grid-polymer,
ag-grid-aurelia {
  display: block;
}

.ag-aria-description-container {
  z-index: 9999;
  border: 0px;
  clip: rect(1px, 1px, 1px, 1px);
  height: 1px;
  width: 1px;
  position: absolute;
  overflow: hidden;
  padding: 0px;
  white-space: nowrap;
}

.ag-hidden {
  display: none !important;
}

.ag-invisible {
  visibility: hidden !important;
}

.ag-drag-handle {
  cursor: grab;
}

.ag-column-drop-wrapper {
  display: flex;
}

.ag-column-drop-horizontal-half-width {
  display: inline-block;
  width: 50% !important;
}

.ag-unselectable {
  -moz-user-select: none;
  -webkit-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

.ag-selectable {
  -moz-user-select: text;
  -webkit-user-select: text;
  -ms-user-select: text;
  user-select: text;
}

.ag-tab {
  position: relative;
}

.ag-tab-guard {
  position: absolute;
  width: 0;
  height: 0;
  display: block;
}

.ag-virtual-list-viewport .ag-tab-guard {
  position: sticky;
}

.ag-tab-guard-top {
  top: 1px;
}

.ag-tab-guard-bottom {
  bottom: 1px;
}

.ag-select-agg-func-popup {
  position: absolute;
}

.ag-input-wrapper,
.ag-picker-field-wrapper {
  display: flex;
  flex: 1 1 auto;
  align-items: center;
  line-height: normal;
  position: relative;
}

.ag-shake-left-to-right {
  animation-direction: alternate;
  animation-duration: 0.2s;
  animation-iteration-count: infinite;
  animation-name: ag-shake-left-to-right;
}

@keyframes ag-shake-left-to-right {
  from {
    padding-left: 6px;
    padding-right: 2px;
  }
  to {
    padding-left: 2px;
    padding-right: 6px;
  }
}
.ag-root-wrapper {
  cursor: default;
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  white-space: normal;
}
.ag-root-wrapper.ag-layout-normal {
  height: 100%;
}

.ag-watermark {
  position: absolute;
  bottom: 20px;
  right: 25px;
  opacity: 0.7;
  transition: opacity 1s ease-out 3s;
  color: #9b9b9b;
}
.ag-watermark::before {
  content: "";
  background-image: url(`+g+`);
  background-repeat: no-repeat;
  background-size: 170px 40px;
  display: block;
  height: 40px;
  width: 170px;
}

.ag-watermark-text {
  opacity: 0.5;
  font-weight: bold;
  font-family: Impact, sans-serif;
  font-size: 19px;
  padding-left: 0.7rem;
}

.ag-root-wrapper-body {
  display: flex;
  flex-direction: row;
}
.ag-root-wrapper-body.ag-layout-normal {
  flex: 1 1 auto;
  height: 0;
  min-height: 0;
}

.ag-root {
  position: relative;
  display: flex;
  flex-direction: column;
}
.ag-root.ag-layout-normal, .ag-root.ag-layout-auto-height {
  overflow: hidden;
  flex: 1 1 auto;
  width: 0;
}
.ag-root.ag-layout-normal {
  height: 100%;
}

.ag-header-viewport,
.ag-floating-top-viewport,
.ag-body-viewport,
.ag-center-cols-viewport,
.ag-floating-bottom-viewport,
.ag-body-horizontal-scroll-viewport,
.ag-body-vertical-scroll-viewport,
.ag-virtual-list-viewport,
.ag-sticky-top-viewport,
.ag-sticky-bottom-viewport {
  position: relative;
  height: 100%;
  min-width: 0px;
  overflow: hidden;
  flex: 1 1 auto;
}

.ag-body-viewport,
.ag-center-cols-viewport,
.ag-header-viewport,
.ag-floating-top-viewport,
.ag-floating-bottom-viewport,
.ag-sticky-top-viewport,
.ag-sticky-bottom-viewport {
  overflow-x: auto;
  -ms-overflow-style: none !important;
  scrollbar-width: none !important;
}
.ag-body-viewport::-webkit-scrollbar,
.ag-center-cols-viewport::-webkit-scrollbar,
.ag-header-viewport::-webkit-scrollbar,
.ag-floating-top-viewport::-webkit-scrollbar,
.ag-floating-bottom-viewport::-webkit-scrollbar,
.ag-sticky-top-viewport::-webkit-scrollbar,
.ag-sticky-bottom-viewport::-webkit-scrollbar {
  display: none !important;
}

.ag-body-viewport {
  display: flex;
  overflow-x: hidden;
}
.ag-body-viewport.ag-layout-normal {
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.ag-sticky-top-container,
.ag-sticky-bottom-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-header-container,
.ag-floating-top-container,
.ag-body-container,
.ag-pinned-right-cols-container,
.ag-center-cols-container,
.ag-pinned-left-cols-container,
.ag-floating-bottom-container,
.ag-body-horizontal-scroll-container,
.ag-body-vertical-scroll-container,
.ag-full-width-container,
.ag-floating-bottom-full-width-container,
.ag-virtual-list-container,
.ag-sticky-top-container,
.ag-sticky-bottom-container {
  position: relative;
}

.ag-header-container,
.ag-floating-top-container,
.ag-floating-bottom-container,
.ag-sticky-top-container,
.ag-sticky-bottom-container {
  height: 100%;
  white-space: nowrap;
}

.ag-center-cols-container {
  display: block;
}

.ag-pinned-right-cols-container {
  display: block;
}

.ag-body-horizontal-scroll-container {
  height: 100%;
}

.ag-body-vertical-scroll-container {
  width: 100%;
}

.ag-full-width-container,
.ag-floating-top-full-width-container,
.ag-floating-bottom-full-width-container,
.ag-sticky-top-full-width-container,
.ag-sticky-bottom-full-width-container {
  position: absolute;
  top: 0px;
  pointer-events: none;
}
.ag-ltr .ag-full-width-container,
.ag-ltr .ag-floating-top-full-width-container,
.ag-ltr .ag-floating-bottom-full-width-container,
.ag-ltr .ag-sticky-top-full-width-container,
.ag-ltr .ag-sticky-bottom-full-width-container {
  left: 0;
}
.ag-rtl .ag-full-width-container,
.ag-rtl .ag-floating-top-full-width-container,
.ag-rtl .ag-floating-bottom-full-width-container,
.ag-rtl .ag-sticky-top-full-width-container,
.ag-rtl .ag-sticky-bottom-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;
  overflow: hidden;
  height: 100%;
  width: 100%;
}

.ag-virtual-list-container {
  overflow: hidden;
}

.ag-body {
  position: relative;
  display: flex;
  flex: 1 1 auto;
  flex-direction: row !important;
  min-height: 0;
}

.ag-body-horizontal-scroll,
.ag-body-vertical-scroll {
  min-height: 0;
  min-width: 0;
  display: flex;
  position: relative;
}
.ag-body-horizontal-scroll.ag-scrollbar-invisible,
.ag-body-vertical-scroll.ag-scrollbar-invisible {
  position: absolute;
  bottom: 0;
}
.ag-body-horizontal-scroll.ag-scrollbar-invisible.ag-apple-scrollbar,
.ag-body-vertical-scroll.ag-scrollbar-invisible.ag-apple-scrollbar {
  opacity: 0;
  transition: opacity 400ms;
  visibility: hidden;
}
.ag-body-horizontal-scroll.ag-scrollbar-invisible.ag-apple-scrollbar.ag-scrollbar-scrolling, .ag-body-horizontal-scroll.ag-scrollbar-invisible.ag-apple-scrollbar.ag-scrollbar-active,
.ag-body-vertical-scroll.ag-scrollbar-invisible.ag-apple-scrollbar.ag-scrollbar-scrolling,
.ag-body-vertical-scroll.ag-scrollbar-invisible.ag-apple-scrollbar.ag-scrollbar-active {
  visibility: visible;
  opacity: 1;
}

.ag-body-horizontal-scroll {
  width: 100%;
}
.ag-body-horizontal-scroll.ag-scrollbar-invisible {
  left: 0;
  right: 0;
}

.ag-body-vertical-scroll {
  height: 100%;
}
.ag-body-vertical-scroll.ag-scrollbar-invisible {
  top: 0;
  z-index: 10;
}
.ag-ltr .ag-body-vertical-scroll.ag-scrollbar-invisible {
  right: 0;
}
.ag-rtl .ag-body-vertical-scroll.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;
}
.ag-horizontal-left-spacer.ag-scroller-corner,
.ag-horizontal-right-spacer.ag-scroller-corner {
  overflow-x: hidden;
}

.ag-header,
.ag-pinned-left-header,
.ag-pinned-right-header {
  display: inline-block;
  overflow: hidden;
  position: relative;
}

.ag-header-cell-sortable .ag-header-cell-label {
  cursor: pointer;
}

.ag-header {
  display: flex;
  width: 100%;
  white-space: nowrap;
}

.ag-pinned-left-header {
  height: 100%;
}

.ag-pinned-right-header {
  height: 100%;
}

.ag-header-row {
  position: absolute;
}

.ag-header-row:not(.ag-header-row-column-group) {
  overflow: hidden;
}

.ag-header.ag-header-allow-overflow .ag-header-row {
  overflow: visible;
}

.ag-header-cell {
  display: inline-flex;
  align-items: center;
  position: absolute;
  height: 100%;
  overflow: hidden;
}

.ag-header-cell.ag-header-active .ag-header-cell-menu-button,
.ag-header-cell-filter-button {
  opacity: 1;
}

.ag-header-cell-menu-button:not(.ag-header-menu-always-show) {
  transition: opacity 0.2s;
  opacity: 0;
}

.ag-header-group-cell-label,
.ag-header-cell-label {
  display: flex;
  flex: 1 1 auto;
  align-self: stretch;
  align-items: center;
  overflow: hidden;
}

.ag-header-cell-label {
  text-overflow: ellipsis;
}

.ag-header-group-cell-label.ag-sticky-label {
  position: sticky;
  flex: none;
  max-width: 100%;
  overflow: visible;
}

.ag-header-group-text {
  overflow: hidden;
  text-overflow: ellipsis;
}

.ag-header-cell-text {
  overflow: hidden;
  text-overflow: ellipsis;
  word-break: break-word;
}

.ag-header-group-cell .ag-header-cell-comp-wrapper {
  display: flex;
}

.ag-header-cell:not(.ag-header-cell-auto-height) .ag-header-cell-comp-wrapper {
  height: 100%;
  display: flex;
  align-items: center;
}

.ag-header-cell-comp-wrapper {
  width: 100%;
}

.ag-header-cell-wrap-text .ag-header-cell-comp-wrapper {
  white-space: normal;
}

.ag-header-cell-comp-wrapper-limited-height > div {
  overflow: hidden;
}

.ag-right-aligned-header .ag-header-cell-label {
  flex-direction: row-reverse;
}

.ag-header-cell-resize {
  position: absolute;
  z-index: 2;
  height: 100%;
  width: 8px;
  top: 0;
  cursor: ew-resize;
}
.ag-ltr .ag-header-cell-resize {
  right: -3px;
}
.ag-rtl .ag-header-cell-resize {
  left: -3px;
}

.ag-pinned-left-header .ag-header-cell-resize {
  right: -3px;
}

.ag-pinned-right-header .ag-header-cell-resize {
  left: -3px;
}

.ag-header-select-all {
  display: flex;
}

.ag-header-cell-menu-button,
.ag-header-cell-filter-button,
.ag-side-button-button,
.ag-panel-title-bar-button,
.ag-floating-filter-button-button {
  cursor: pointer;
}

.ag-column-moving .ag-cell {
  transition: left 0.2s;
}
.ag-column-moving .ag-header-cell {
  transition: left 0.2s;
}
.ag-column-moving .ag-header-group-cell {
  transition: left 0.2s, width 0.2s;
}

.ag-column-panel {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  flex: 1 1 auto;
}

.ag-column-select {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  flex: 3 1 0px;
}

.ag-column-select-header {
  position: relative;
  display: flex;
  flex: none;
}

.ag-column-select-header-icon {
  position: relative;
}

.ag-column-select-header-filter-wrapper {
  flex: 1 1 auto;
}

.ag-column-select-header-filter {
  width: 100%;
}

.ag-column-select-list {
  flex: 1 1 0px;
  overflow: hidden;
}

.ag-column-drop {
  position: relative;
  display: inline-flex;
  align-items: center;
  overflow: auto;
  width: 100%;
}

.ag-column-drop-list {
  display: flex;
  align-items: center;
}

.ag-column-drop-cell {
  position: relative;
  display: flex;
  align-items: center;
}

.ag-column-drop-cell-text {
  overflow: hidden;
  flex: 1 1 auto;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ag-column-drop-vertical {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  align-items: stretch;
  flex: 1 1 0px;
}

.ag-column-drop-vertical-title-bar {
  display: flex;
  align-items: center;
  flex: none;
}

.ag-column-drop-vertical-list {
  position: relative;
  align-items: stretch;
  flex-grow: 1;
  flex-direction: column;
  overflow-x: auto;
}
.ag-column-drop-vertical-list > * {
  flex: none;
}

.ag-column-drop-empty .ag-column-drop-vertical-list {
  overflow: hidden;
}

.ag-column-drop-vertical-empty-message {
  display: block;
}

.ag-column-drop.ag-column-drop-horizontal {
  white-space: nowrap;
  overflow: hidden;
}

.ag-column-drop-cell-button {
  cursor: pointer;
}

.ag-filter-toolpanel {
  flex: 1 1 0px;
  min-width: 0;
}

.ag-filter-toolpanel-header {
  position: relative;
}

.ag-filter-toolpanel-header,
.ag-filter-toolpanel-search {
  display: flex;
  align-items: center;
}
.ag-filter-toolpanel-header > *,
.ag-filter-toolpanel-search > * {
  display: flex;
  align-items: center;
}

.ag-filter-apply-panel {
  display: flex;
  justify-content: flex-end;
  overflow: hidden;
}

.ag-row-animation .ag-row {
  transition: transform 0.4s, top 0.4s, opacity 0.2s;
}

.ag-row-animation .ag-row.ag-after-created {
  transition: transform 0.4s, top 0.4s, height 0.4s, opacity 0.2s;
}

.ag-row-no-animation .ag-row {
  transition: none;
}

.ag-row {
  white-space: nowrap;
  width: 100%;
}

.ag-row-loading {
  display: flex;
  align-items: center;
}

.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 {
  display: flex;
  align-items: center;
}

.ag-cell {
  display: inline-block;
  position: absolute;
  white-space: nowrap;
  height: 100%;
}

.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;
}

.ag-cell-wrapper {
  display: flex;
  align-items: center;
}
.ag-cell-wrapper.ag-row-group {
  align-items: flex-start;
}

.ag-sparkline-wrapper {
  position: absolute;
  height: 100%;
  width: 100%;
  left: 0;
  top: 0;
}

.ag-sparkline-wrapper :where(canvas) {
  position: absolute;
}

.ag-full-width-row .ag-cell-wrapper.ag-row-group {
  height: 100%;
  align-items: center;
}

.ag-cell-inline-editing {
  z-index: 1;
}
.ag-cell-inline-editing .ag-cell-wrapper,
.ag-cell-inline-editing .ag-cell-edit-wrapper,
.ag-cell-inline-editing .ag-cell-editor,
.ag-cell-inline-editing .ag-cell-editor .ag-wrapper,
.ag-cell-inline-editing .ag-cell-editor input {
  height: 100%;
  width: 100%;
  line-height: normal;
}

.ag-cell .ag-icon {
  display: inline-block;
  vertical-align: middle;
}

.ag-set-filter-item {
  display: flex;
  align-items: center;
  height: 100%;
}

.ag-set-filter-item-checkbox {
  display: flex;
  width: 100%;
  height: 100%;
}

.ag-set-filter-group-icons {
  display: block;
}
.ag-set-filter-group-icons > * {
  cursor: pointer;
}

.ag-filter-body-wrapper {
  display: flex;
  flex-direction: column;
}

.ag-filter-filter {
  flex: 1 1 0px;
}

.ag-filter-condition {
  display: flex;
  justify-content: center;
}

.ag-floating-filter-body {
  position: relative;
  display: flex;
  flex: 1 1 auto;
  height: 100%;
}

.ag-floating-filter-full-body {
  display: flex;
  flex: 1 1 auto;
  height: 100%;
  width: 100%;
  align-items: center;
  overflow: hidden;
}

.ag-floating-filter-full-body > div {
  flex: 1 1 auto;
}

.ag-floating-filter-input {
  align-items: center;
  display: flex;
  width: 100%;
}
.ag-floating-filter-input > * {
  flex: 1 1 auto;
}

.ag-floating-filter-button {
  display: flex;
  flex: none;
}

.ag-set-floating-filter-input input[disabled] {
  pointer-events: none;
}

.ag-dnd-ghost {
  display: inline-flex;
  align-items: center;
  cursor: move;
  white-space: nowrap;
}

.ag-overlay {
  height: 100%;
  left: 0;
  pointer-events: none;
  position: absolute;
  top: 0;
  width: 100%;
  z-index: 2;
}

.ag-overlay-panel {
  display: flex;
  height: 100%;
  width: 100%;
}

.ag-overlay-wrapper {
  display: flex;
  flex: none;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.ag-overlay-loading-wrapper {
  pointer-events: all;
}

.ag-popup-child {
  z-index: 5;
  top: 0;
}

.ag-popup-editor {
  position: absolute;
  -moz-user-select: none;
  -webkit-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

.ag-large-text-input {
  display: block;
}

.ag-virtual-list-item {
  position: absolute;
  width: 100%;
}

.ag-floating-top {
  overflow: hidden;
  white-space: nowrap;
  width: 100%;
  position: relative;
  display: flex;
}

.ag-pinned-left-floating-top {
  display: inline-block;
  overflow: hidden;
  position: relative;
  min-width: 0px;
}

.ag-pinned-right-floating-top {
  display: inline-block;
  overflow: hidden;
  position: relative;
  min-width: 0px;
}

.ag-floating-bottom {
  overflow: hidden;
  white-space: nowrap;
  width: 100%;
  position: relative;
  display: flex;
}

.ag-pinned-left-floating-bottom {
  display: inline-block;
  overflow: hidden;
  position: relative;
  min-width: 0px;
}

.ag-pinned-right-floating-bottom {
  display: inline-block;
  overflow: hidden;
  position: relative;
  min-width: 0px;
}

.ag-sticky-top,
.ag-sticky-bottom {
  position: absolute;
  display: flex;
  width: 100%;
  overflow: hidden;
  height: 0px;
}

.ag-sticky-bottom {
  box-sizing: content-box !important;
}

.ag-pinned-left-sticky-top,
.ag-pinned-right-sticky-top {
  position: relative;
  height: 100%;
  overflow: hidden;
}

.ag-sticky-top-full-width-container,
.ag-sticky-bottom-full-width-container {
  overflow: hidden;
  width: 100%;
  height: 100%;
}

.ag-dialog,
.ag-panel {
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.ag-panel-title-bar {
  display: flex;
  flex: none;
  align-items: center;
  cursor: default;
}

.ag-panel-title-bar-title {
  flex: 1 1 auto;
}

.ag-panel-title-bar-buttons {
  display: flex;
}

.ag-panel-title-bar-button {
  cursor: pointer;
}

.ag-panel-content-wrapper {
  display: flex;
  flex: 1 1 auto;
  position: relative;
  overflow: hidden;
}

.ag-dialog {
  position: absolute;
}

.ag-resizer {
  position: absolute;
  pointer-events: none;
  z-index: 1;
  -moz-user-select: none;
  -webkit-user-select: none;
  -ms-user-select: none;
  user-select: none;
}
.ag-resizer.ag-resizer-topLeft {
  top: 0;
  left: 0;
  height: 5px;
  width: 5px;
  cursor: nwse-resize;
}
.ag-resizer.ag-resizer-top {
  top: 0;
  left: 5px;
  right: 5px;
  height: 5px;
  cursor: ns-resize;
}
.ag-resizer.ag-resizer-topRight {
  top: 0;
  right: 0;
  height: 5px;
  width: 5px;
  cursor: nesw-resize;
}
.ag-resizer.ag-resizer-right {
  top: 5px;
  right: 0;
  bottom: 5px;
  width: 5px;
  cursor: ew-resize;
}
.ag-resizer.ag-resizer-bottomRight {
  bottom: 0;
  right: 0;
  height: 5px;
  width: 5px;
  cursor: nwse-resize;
}
.ag-resizer.ag-resizer-bottom {
  bottom: 0;
  left: 5px;
  right: 5px;
  height: 5px;
  cursor: ns-resize;
}
.ag-resizer.ag-resizer-bottomLeft {
  bottom: 0;
  left: 0;
  height: 5px;
  width: 5px;
  cursor: nesw-resize;
}
.ag-resizer.ag-resizer-left {
  left: 0;
  top: 5px;
  bottom: 5px;
  width: 5px;
  cursor: ew-resize;
}

.ag-tooltip {
  position: absolute;
  z-index: 99999;
}

.ag-tooltip-custom {
  position: absolute;
  z-index: 99999;
}

.ag-tooltip:not(.ag-tooltip-interactive),
.ag-tooltip-custom:not(.ag-tooltip-interactive) {
  pointer-events: none;
}

.ag-value-slide-out {
  margin-right: 5px;
  opacity: 1;
  transition: opacity 3s, margin-right 3s;
  transition-timing-function: linear;
}

.ag-value-slide-out-end {
  margin-right: 10px;
  opacity: 0;
}

.ag-opacity-zero {
  opacity: 0 !important;
}

.ag-menu {
  max-height: 100%;
  overflow-y: auto;
  position: absolute;
  -moz-user-select: none;
  -webkit-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

.ag-menu-column-select-wrapper {
  height: 265px;
  overflow: auto;
}
.ag-menu-column-select-wrapper .ag-column-select {
  height: 100%;
}

.ag-dialog .ag-panel-content-wrapper .ag-column-select {
  user-select: none;
}

.ag-menu-list {
  display: table;
  width: 100%;
}

.ag-menu-option,
.ag-menu-separator {
  display: table-row;
}

.ag-menu-option-part,
.ag-menu-separator-part {
  display: table-cell;
  vertical-align: middle;
}

.ag-menu-option-text {
  white-space: nowrap;
}

.ag-menu-option-custom {
  display: contents;
}

.ag-compact-menu-option {
  width: 100%;
  display: flex;
  flex-wrap: nowrap;
}

.ag-compact-menu-option-text {
  white-space: nowrap;
  flex: 1 1 auto;
}

.ag-context-menu-loading-icon {
  position: absolute;
  pointer-events: none;
}

.ag-pill-container {
  display: flex;
  gap: 0.25rem;
  flex-wrap: nowrap;
}

.ag-pill {
  display: flex;
  white-space: nowrap;
  padding: 0 0.25rem;
  align-items: center;
}

.ag-pill .ag-pill-button {
  border: none;
  padding: 0;
}

.ag-rich-select {
  cursor: default;
  outline: none;
  height: 100%;
}

.ag-rich-select-value {
  display: flex;
  align-items: center;
  height: 100%;
}
.ag-rich-select-value .ag-picker-field-display {
  overflow: hidden;
  text-overflow: ellipsis;
}
.ag-rich-select-value .ag-picker-field-display.ag-display-as-placeholder {
  opacity: 0.5;
}

.ag-rich-select-list {
  position: relative;
}
.ag-rich-select-list .ag-loading-text {
  min-height: 2rem;
}

.ag-rich-select-row {
  display: flex;
  flex: 1 1 auto;
  align-items: center;
  white-space: nowrap;
  overflow: hidden;
  height: 100%;
}

.ag-rich-select-field-input {
  flex: 1 1 auto;
}
.ag-rich-select-field-input .ag-input-field-input {
  padding: 0 !important;
  border: none !important;
  box-shadow: none !important;
  text-overflow: ellipsis;
}
.ag-rich-select-field-input .ag-input-field-input::placeholder {
  opacity: 0.8;
}

.ag-autocomplete {
  align-items: center;
  display: flex;
}
.ag-autocomplete > * {
  flex: 1 1 auto;
}

.ag-autocomplete-list-popup {
  position: absolute;
  -moz-user-select: none;
  -webkit-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

.ag-autocomplete-list {
  position: relative;
}

.ag-autocomplete-virtual-list-item {
  display: flex;
}

.ag-autocomplete-row {
  display: flex;
  flex: 1 1 auto;
  align-items: center;
  overflow: hidden;
}

.ag-autocomplete-row-label {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ag-paging-panel {
  align-items: center;
  display: flex;
  justify-content: flex-end;
}

.ag-paging-page-summary-panel {
  display: flex;
  align-items: center;
}

.ag-paging-button {
  position: relative;
}

.ag-disabled .ag-paging-page-summary-panel {
  pointer-events: none;
}

.ag-tool-panel-wrapper {
  display: flex;
  overflow-y: auto;
  overflow-x: hidden;
  cursor: default;
  -moz-user-select: none;
  -webkit-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

.ag-column-select-column,
.ag-column-select-column-group,
.ag-select-agg-func-item {
  position: relative;
  align-items: center;
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  height: 100%;
}
.ag-column-select-column > *,
.ag-column-select-column-group > *,
.ag-select-agg-func-item > * {
  flex: none;
}

.ag-select-agg-func-item,
.ag-column-select-column-label {
  flex: 1 1 auto;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ag-column-select-checkbox {
  display: flex;
}

.ag-tool-panel-horizontal-resize {
  cursor: ew-resize;
  height: 100%;
  position: absolute;
  top: 0;
  width: 5px;
  z-index: 1;
}

.ag-ltr .ag-side-bar-left .ag-tool-panel-horizontal-resize {
  right: -3px;
}
.ag-rtl .ag-side-bar-left .ag-tool-panel-horizontal-resize {
  left: -3px;
}

.ag-ltr .ag-side-bar-right .ag-tool-panel-horizontal-resize {
  left: -3px;
}
.ag-rtl .ag-side-bar-right .ag-tool-panel-horizontal-resize {
  right: -3px;
}

.ag-details-row {
  width: 100%;
}

.ag-details-row-fixed-height {
  height: 100%;
}

.ag-details-grid {
  width: 100%;
}

.ag-details-grid-fixed-height {
  height: 100%;
}

.ag-header-group-cell {
  display: flex;
  align-items: center;
  height: 100%;
  position: absolute;
}

.ag-header-group-cell-no-group.ag-header-span-height {
  display: none;
}

.ag-cell-label-container {
  display: flex;
  justify-content: space-between;
  flex-direction: row-reverse;
  align-items: center;
  height: 100%;
  width: 100%;
}

.ag-header-group-cell-label,
.ag-cell-label-container {
  padding: 5px 0px;
}

.ag-right-aligned-header .ag-cell-label-container {
  flex-direction: row;
}
.ag-right-aligned-header .ag-header-cell-text {
  text-align: end;
}

.ag-side-bar {
  display: flex;
  flex-direction: row-reverse;
}

.ag-side-bar-left {
  order: -1;
  flex-direction: row;
}

.ag-side-button-button {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex-wrap: nowrap;
  white-space: nowrap;
  outline: none;
  cursor: pointer;
}

.ag-side-button-label {
  writing-mode: vertical-lr;
}

.ag-status-bar {
  display: flex;
  justify-content: space-between;
  overflow: hidden;
}

.ag-status-panel {
  display: inline-flex;
}

.ag-status-name-value {
  white-space: nowrap;
}

.ag-status-bar-left {
  display: inline-flex;
}

.ag-status-bar-center {
  display: inline-flex;
}

.ag-status-bar-right {
  display: inline-flex;
}

.ag-icon {
  display: block;
  speak: none;
}

.ag-group {
  position: relative;
  width: 100%;
}

.ag-group-title-bar {
  display: flex;
  align-items: center;
}

.ag-group-title {
  display: inline;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.ag-group-title-bar .ag-group-title {
  cursor: default;
}

.ag-group-toolbar {
  display: flex;
  align-items: center;
}

.ag-group-container {
  display: flex;
}

.ag-disabled .ag-group-container {
  pointer-events: none;
}

.ag-group-container-horizontal {
  flex-direction: row;
  flex-wrap: wrap;
}

.ag-group-container-vertical {
  flex-direction: column;
}

.ag-column-group-icons {
  display: block;
}
.ag-column-group-icons > * {
  cursor: pointer;
}

.ag-group-item-alignment-stretch .ag-group-item {
  align-items: stretch;
}

.ag-group-item-alignment-start .ag-group-item {
  align-items: flex-start;
}

.ag-group-item-alignment-end .ag-group-item {
  align-items: flex-end;
}

.ag-toggle-button-icon {
  transition: right 0.3s;
  position: absolute;
  top: -1px;
}

.ag-input-field,
.ag-select {
  display: flex;
  flex-direction: row;
  align-items: center;
}

.ag-input-field-input {
  flex: 1 1 auto;
}

.ag-floating-filter-input .ag-input-field-input[type=date] {
  width: 1px;
}

.ag-range-field {
  display: flex;
  align-items: center;
}

.ag-angle-select {
  display: flex;
  align-items: center;
}

.ag-angle-select-wrapper {
  display: flex;
}

.ag-angle-select-parent-circle {
  display: block;
  position: relative;
}

.ag-angle-select-child-circle {
  position: absolute;
}

.ag-slider-wrapper {
  display: flex;
}
.ag-slider-wrapper .ag-input-field {
  flex: 1 1 auto;
}

.ag-picker-field-display {
  flex: 1 1 auto;
}

.ag-picker-field {
  display: flex;
  align-items: center;
}

.ag-picker-field-icon {
  display: flex;
  border: 0;
  padding: 0;
  margin: 0;
  cursor: pointer;
}

.ag-picker-field-wrapper {
  overflow: hidden;
}

.ag-label-align-right .ag-label {
  order: 1;
}
.ag-label-align-right > * {
  flex: none;
}

.ag-label-align-top {
  flex-direction: column;
  align-items: flex-start;
}
.ag-label-align-top > * {
  align-self: stretch;
}

.ag-label-ellipsis {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1;
}

.ag-color-panel {
  width: 100%;
  display: flex;
  flex-direction: column;
  text-align: center;
}

.ag-spectrum-color {
  flex: 1 1 auto;
  position: relative;
  overflow: visible;
  cursor: default;
}

.ag-spectrum-fill {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
}

.ag-spectrum-val {
  cursor: pointer;
}

.ag-spectrum-dragger {
  position: absolute;
  pointer-events: none;
  cursor: pointer;
}

.ag-spectrum-hue,
.ag-spectrum-alpha {
  cursor: default;
}

.ag-spectrum-hue-background {
  background: linear-gradient(to left, #ff0000 3%, #ffff00 17%, #00ff00 33%, #00ffff 50%, #0000ff 67%, #ff00ff 83%, #ff0000 100%);
  width: 100%;
  height: 100%;
}

.ag-spectrum-alpha {
  --ag-spectrum-alpha-background-checked: url(`+m+`);
}

.ag-spectrum-alpha-background {
  background: linear-gradient(to right, var(--ag-internal-spectrum-alpha-color-from), var(--ag-internal-spectrum-alpha-color-to)), var(--ag-spectrum-alpha-background-checked) top left/4px 4px;
  width: 100%;
  height: 100%;
}

.ag-spectrum-tool {
  cursor: pointer;
  position: relative;
}

.ag-spectrum-slider {
  position: absolute;
  pointer-events: none;
}

.ag-spectrum-alpha .ag-spectrum-slider {
  background: linear-gradient(to bottom, var(--ag-internal-spectrum-alpha-color), var(--ag-internal-spectrum-alpha-color)) white;
}

.ag-recent-colors {
  display: flex;
}

.ag-recent-color {
  cursor: pointer;
}

.ag-pill-select {
  display: flex;
  flex-direction: column;
}
.ag-pill-select .ag-column-drop {
  flex: unset;
}

.ag-ltr {
  direction: ltr;
}
.ag-ltr .ag-body,
.ag-ltr .ag-floating-top,
.ag-ltr .ag-floating-bottom,
.ag-ltr .ag-header,
.ag-ltr .ag-sticky-top,
.ag-ltr .ag-sticky-bottom,
.ag-ltr .ag-body-viewport,
.ag-ltr .ag-body-horizontal-scroll {
  flex-direction: row;
}

.ag-rtl {
  direction: rtl;
}
.ag-rtl .ag-body,
.ag-rtl .ag-floating-top,
.ag-rtl .ag-floating-bottom,
.ag-rtl .ag-header,
.ag-rtl .ag-sticky-top,
.ag-rtl .ag-sticky-bottom,
.ag-rtl .ag-body-viewport,
.ag-rtl .ag-body-horizontal-scroll {
  flex-direction: row-reverse;
}
.ag-rtl .ag-icon-contracted,
.ag-rtl .ag-icon-expanded,
.ag-rtl .ag-icon-tree-closed {
  display: block;
  transform: rotate(180deg);
}

.ag-body .ag-body-viewport {
  -webkit-overflow-scrolling: touch;
}

.ag-measurement-container {
  width: 0;
  overflow: hidden;
  visibility: hidden;
}
.ag-measurement-container div {
  position: absolute;
}

.ag-layout-print.ag-body {
  display: block;
  height: unset;
}
.ag-layout-print.ag-root-wrapper {
  display: inline-block;
}
.ag-layout-print .ag-body-vertical-scroll {
  display: none;
}
.ag-layout-print .ag-body-horizontal-scroll {
  display: none;
}
.ag-layout-print.ag-force-vertical-scroll {
  overflow-y: visible !important;
}

@media print {
  .ag-root-wrapper.ag-layout-print {
    display: table;
  }
  .ag-root-wrapper.ag-layout-print .ag-root-wrapper-body,
  .ag-root-wrapper.ag-layout-print .ag-root,
  .ag-root-wrapper.ag-layout-print .ag-body-viewport,
  .ag-root-wrapper.ag-layout-print .ag-center-cols-container,
  .ag-root-wrapper.ag-layout-print .ag-center-cols-viewport,
  .ag-root-wrapper.ag-layout-print .ag-body-horizontal-scroll-viewport,
  .ag-root-wrapper.ag-layout-print .ag-virtual-list-viewport {
    height: auto !important;
    overflow: hidden !important;
    display: block !important;
  }
  .ag-root-wrapper.ag-layout-print .ag-row,
  .ag-root-wrapper.ag-layout-print .ag-cell {
    break-inside: avoid;
  }
}
[class^=ag-],
[class^=ag-]:focus,
[class^=ag-]:after,
[class^=ag-]:before {
  box-sizing: border-box;
  outline: none;
}

[class^=ag-]::-ms-clear {
  display: none;
}

.ag-checkbox .ag-input-wrapper,
.ag-radio-button .ag-input-wrapper {
  overflow: visible;
}

.ag-range-field .ag-input-wrapper {
  height: 100%;
}

.ag-toggle-button {
  flex: none;
  width: unset;
  min-width: unset;
}

.ag-button {
  border-radius: 0px;
  color: var(--ag-foreground-color);
}

.ag-button:hover {
  background-color: transparent;
}

.ag-ltr .ag-label-align-right .ag-label {
  margin-left: var(--ag-grid-size);
}
.ag-rtl .ag-label-align-right .ag-label {
  margin-right: var(--ag-grid-size);
}

input[class^=ag-] {
  margin: 0;
  background-color: var(--ag-background-color);
}

textarea[class^=ag-],
select[class^=ag-] {
  background-color: var(--ag-background-color);
}

input[class^=ag-]:not([type]),
input[class^=ag-][type=text],
input[class^=ag-][type=number],
input[class^=ag-][type=tel],
input[class^=ag-][type=date],
input[class^=ag-][type=datetime-local],
textarea[class^=ag-] {
  font-size: inherit;
  line-height: inherit;
  color: inherit;
  font-family: inherit;
  border: var(--ag-borders-input) var(--ag-input-border-color);
}
input[class^=ag-]:not([type]):disabled,
input[class^=ag-][type=text]:disabled,
input[class^=ag-][type=number]:disabled,
input[class^=ag-][type=tel]:disabled,
input[class^=ag-][type=date]:disabled,
input[class^=ag-][type=datetime-local]:disabled,
textarea[class^=ag-]:disabled {
  color: var(--ag-disabled-foreground-color);
  background-color: var(--ag-input-disabled-background-color);
  border-color: var(--ag-input-disabled-border-color);
}
input[class^=ag-]:not([type]):focus,
input[class^=ag-][type=text]:focus,
input[class^=ag-][type=number]:focus,
input[class^=ag-][type=tel]:focus,
input[class^=ag-][type=date]:focus,
input[class^=ag-][type=datetime-local]:focus,
textarea[class^=ag-]:focus {
  outline: none;
  box-shadow: var(--ag-input-focus-box-shadow);
  border-color: var(--ag-input-focus-border-color);
}
input[class^=ag-]:not([type]):invalid,
input[class^=ag-][type=text]:invalid,
input[class^=ag-][type=number]:invalid,
input[class^=ag-][type=tel]:invalid,
input[class^=ag-][type=date]:invalid,
input[class^=ag-][type=datetime-local]:invalid,
textarea[class^=ag-]:invalid {
  border: var(--ag-borders-input-invalid) var(--ag-input-border-color-invalid);
}

input[class^=ag-][type=number]:not(.ag-number-field-input-stepper) {
  -moz-appearance: textfield;
}
input[class^=ag-][type=number]:not(.ag-number-field-input-stepper)::-webkit-outer-spin-button, input[class^=ag-][type=number]:not(.ag-number-field-input-stepper)::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

input[class^=ag-][type=range] {
  padding: 0;
}

input[class^=ag-][type=button]:focus,
button[class^=ag-]:focus {
  box-shadow: var(--ag-input-focus-box-shadow);
}

.ag-drag-handle {
  color: var(--ag-secondary-foreground-color);
}

.ag-list-item,
.ag-virtual-list-item {
  height: var(--ag-list-item-height);
}

.ag-virtual-list-item:focus-visible {
  outline: none;
}
.ag-virtual-list-item:focus-visible::after {
  content: "";
  position: absolute;
  background-color: transparent;
  pointer-events: none;
  top: 4px;
  left: 4px;
  display: block;
  width: calc(100% - 8px);
  height: calc(100% - 8px);
  border: 1px solid;
  border-color: var(--ag-input-focus-border-color);
}

.ag-select-list {
  background-color: var(--ag-background-color);
  overflow-y: auto;
  overflow-x: hidden;
  border-radius: var(--ag-border-radius);
  border: var(--ag-borders) var(--ag-border-color);
}

.ag-list-item {
  display: flex;
  align-items: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ag-list-item.ag-active-item {
  background-color: var(--ag-row-hover-color);
}

.ag-select-list-item {
  -moz-user-select: none;
  -webkit-user-select: none;
  -ms-user-select: none;
  user-select: none;
  cursor: default;
}
.ag-ltr .ag-select-list-item {
  padding-left: calc(var(--ag-cell-horizontal-padding) / 2);
}
.ag-rtl .ag-select-list-item {
  padding-right: calc(var(--ag-cell-horizontal-padding) / 2);
}
.ag-select-list-item span {
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}

.ag-row-drag,
.ag-selection-checkbox,
.ag-group-expanded,
.ag-group-contracted {
  color: var(--ag-secondary-foreground-color);
}
.ag-ltr .ag-row-drag,
.ag-ltr .ag-selection-checkbox,
.ag-ltr .ag-group-expanded,
.ag-ltr .ag-group-contracted {
  margin-right: var(--ag-cell-widget-spacing);
}
.ag-rtl .ag-row-drag,
.ag-rtl .ag-selection-checkbox,
.ag-rtl .ag-group-expanded,
.ag-rtl .ag-group-contracted {
  margin-left: var(--ag-cell-widget-spacing);
}

.ag-cell-wrapper > *:not(.ag-cell-value):not(.ag-group-value) {
  --ag-internal-calculated-line-height: var(
      --ag-line-height,
      calc(var(--ag-row-height) - var(--ag-row-border-width))
  );
  --ag-internal-padded-row-height: calc(var(--ag-row-height) - var(--ag-row-border-width));
  height: min(var(--ag-internal-calculated-line-height), var(--ag-internal-padded-row-height));
  display: flex;
  align-items: center;
  flex: none;
}

.ag-group-expanded,
.ag-group-contracted {
  cursor: pointer;
}

.ag-group-title-bar-icon {
  cursor: pointer;
  flex: none;
  color: var(--ag-secondary-foreground-color);
}

.ag-ltr .ag-group-child-count {
  margin-left: 2px;
}
.ag-rtl .ag-group-child-count {
  margin-right: 2px;
}

.ag-group-title-bar {
  background-color: var(--ag-subheader-background-color);
  padding: var(--ag-grid-size);
}

.ag-group-toolbar {
  padding: var(--ag-grid-size);
  background-color: var(--ag-subheader-toolbar-background-color);
}

.ag-disabled-group-title-bar,
.ag-disabled-group-container {
  opacity: 0.5;
}

.group-item {
  margin: calc(var(--ag-grid-size) * 0.5) 0;
}

.ag-label {
  white-space: nowrap;
}
.ag-ltr .ag-label {
  margin-right: var(--ag-grid-size);
}
.ag-rtl .ag-label {
  margin-left: var(--ag-grid-size);
}

.ag-label-align-top .ag-label {
  margin-bottom: calc(var(--ag-grid-size) * 0.5);
}

.ag-angle-select[disabled] {
  color: var(--ag-disabled-foreground-color);
  pointer-events: none;
}
.ag-angle-select[disabled] .ag-angle-select-field {
  opacity: 0.4;
}

.ag-ltr .ag-slider-field,
.ag-ltr .ag-angle-select-field {
  margin-right: calc(var(--ag-grid-size) * 2);
}
.ag-rtl .ag-slider-field,
.ag-rtl .ag-angle-select-field {
  margin-left: calc(var(--ag-grid-size) * 2);
}

.ag-angle-select-parent-circle {
  width: 24px;
  height: 24px;
  border-radius: 12px;
  border: solid 1px;
  border-color: var(--ag-border-color);
  background-color: var(--ag-background-color);
}

.ag-angle-select-child-circle {
  top: 4px;
  left: 12px;
  width: 6px;
  height: 6px;
  margin-left: -3px;
  margin-top: -4px;
  border-radius: 3px;
  background-color: var(--ag-secondary-foreground-color);
}

.ag-picker-field-wrapper {
  border: var(--ag-borders);
  border-color: var(--ag-border-color);
  border-radius: 5px;
  background-color: var(--ag-background-color);
}
.ag-picker-field-wrapper:disabled {
  color: var(--ag-disabled-foreground-color);
  background-color: var(--ag-input-disabled-background-color);
  border-color: var(--ag-input-disabled-border-color);
}
.ag-picker-field-wrapper.ag-picker-has-focus, .ag-picker-field-wrapper:focus-within {
  outline: none;
  box-shadow: var(--ag-input-focus-box-shadow);
  border-color: var(--ag-input-focus-border-color);
}

.ag-picker-field-button {
  background-color: var(--ag-background-color);
  color: var(--ag-secondary-foreground-color);
}

.ag-dialog.ag-color-dialog {
  border-radius: 5px;
}

.ag-color-picker .ag-picker-field-wrapper {
  padding-left: var(--ag-grid-size);
  padding-right: var(--ag-grid-size);
}
.ag-color-picker .ag-picker-field-display {
  display: flex;
  flex-direction: row;
  align-items: center;
  min-height: var(--ag-list-item-height);
}

.ag-ltr .ag-color-picker-color,
.ag-ltr .ag-color-picker-value {
  margin-right: var(--ag-grid-size);
}
.ag-rtl .ag-color-picker-color,
.ag-rtl .ag-color-picker-value {
  margin-left: var(--ag-grid-size);
}

.ag-color-panel {
  padding: var(--ag-grid-size);
}

.ag-spectrum-color {
  background-color: rgb(255, 0, 0);
  border-radius: 2px;
}

.ag-spectrum-tools {
  padding: 10px;
}

.ag-spectrum-sat {
  background-image: linear-gradient(to right, white, rgba(204, 154, 129, 0));
}

.ag-spectrum-val {
  background-image: linear-gradient(to top, black, rgba(204, 154, 129, 0));
}

.ag-spectrum-dragger {
  border-radius: 12px;
  height: 12px;
  width: 12px;
  border: 2px solid white;
  background: black;
  box-shadow: 0 0 2px 0px rgba(0, 0, 0, 0.24);
}

.ag-spectrum-hue-background {
  border-radius: 2px;
}

.ag-spectrum-alpha-background {
  border-radius: 2px;
}

.ag-spectrum-tool {
  margin-bottom: 10px;
  height: 11px;
  border-radius: 2px;
}

.ag-spectrum-slider {
  margin-top: -12px;
  width: 13px;
  height: 13px;
  border-radius: 13px;
  border: 2px solid white;
  box-shadow: 0 1px 4px 0 rgba(0, 0, 0, 0.37);
}

.ag-recent-colors {
  margin-top: 10px;
}

.ag-recent-color {
  margin: 0 3px;
}
.ag-recent-color:first-child {
  margin-left: 0;
}
.ag-recent-color:last-child {
  margin-right: 0;
}

.ag-spectrum-color:focus-visible:not(:disabled):not([readonly]),
.ag-spectrum-slider:focus-visible:not(:disabled):not([readonly]),
.ag-recent-color:focus-visible:not(:disabled):not([readonly]) {
  box-shadow: var(--ag-input-focus-box-shadow);
}

.ag-ltr .ag-color-input input[class^=ag-][type=text].ag-input-field-input {
  padding-left: calc(var(--ag-icon-size) + var(--ag-grid-size) * 2);
}
.ag-rtl .ag-color-input input[class^=ag-][type=text].ag-input-field-input {
  padding-right: calc(var(--ag-icon-size) + var(--ag-grid-size) * 2);
}
.ag-color-input .ag-color-input-color {
  position: absolute;
}
.ag-ltr .ag-color-input .ag-color-input-color {
  margin-left: var(--ag-grid-size);
}
.ag-rtl .ag-color-input .ag-color-input-color {
  margin-right: var(--ag-grid-size);
}

.ag-color-picker-color,
.ag-color-input-color {
  width: var(--ag-icon-size);
  height: var(--ag-icon-size);
  border: var(--ag-borders-secondary) var(--ag-secondary-border-color);
  border-radius: 2px;
}

.ag-dnd-ghost {
  border: var(--ag-borders) var(--ag-border-color);
  background: var(--ag-background-color);
  border-radius: var(--ag-card-radius);
  box-shadow: var(--ag-card-shadow);
  padding: var(--ag-grid-size);
  overflow: hidden;
  text-overflow: ellipsis;
  border: var(--ag-borders-secondary) var(--ag-secondary-border-color);
  color: var(--ag-secondary-foreground-color);
  height: var(--ag-header-height);
  line-height: var(--ag-header-height);
  margin: 0;
  padding: 0 calc(var(--ag-grid-size) * 2);
  transform: translateY(calc(var(--ag-grid-size) * 2));
}

.ag-dnd-ghost-icon {
  margin-right: var(--ag-grid-size);
  color: var(--ag-foreground-color);
}

.ag-popup-child:not(.ag-tooltip-custom) {
  box-shadow: var(--ag-popup-shadow);
}

.ag-select .ag-picker-field-wrapper {
  min-height: var(--ag-list-item-height);
  cursor: default;
}
.ag-ltr .ag-select .ag-picker-field-wrapper {
  padding-left: calc(var(--ag-cell-horizontal-padding) / 2);
}
.ag-rtl .ag-select .ag-picker-field-wrapper {
  padding-right: calc(var(--ag-cell-horizontal-padding) / 2);
}
.ag-ltr .ag-select .ag-picker-field-wrapper {
  padding-right: var(--ag-grid-size);
}
.ag-rtl .ag-select .ag-picker-field-wrapper {
  padding-left: var(--ag-grid-size);
}
.ag-select.ag-disabled .ag-picker-field-wrapper:focus {
  box-shadow: none;
}
.ag-select:not(.ag-cell-editor, .ag-label-align-top) {
  min-height: var(--ag-list-item-height);
}
.ag-select .ag-picker-field-display {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ag-select .ag-picker-field-icon {
  display: flex;
  align-items: center;
}
.ag-select.ag-disabled {
  opacity: 0.5;
}

.ag-rich-select-value,
.ag-rich-select-list {
  background-color: var(--ag-background-color);
}

.ag-rich-select-list {
  width: 100%;
  height: auto;
  border-radius: var(--ag-border-radius);
  border: var(--ag-borders) var(--ag-border-color);
}
.ag-rich-select-list .ag-loading-text {
  padding: var(--ag-widget-vertical-spacing) var(--ag-widget-horizontal-spacing);
}

.ag-rich-select-value {
  border-bottom: var(--ag-borders-secondary) var(--ag-secondary-border-color);
  padding-top: 0;
  padding-bottom: 0;
}
.ag-ltr .ag-rich-select-value {
  padding-left: calc(var(--ag-cell-horizontal-padding) / 2);
}
.ag-rtl .ag-rich-select-value {
  padding-right: calc(var(--ag-cell-horizontal-padding) / 2);
}
.ag-ltr .ag-rich-select-value {
  padding-right: var(--ag-grid-size);
}
.ag-rtl .ag-rich-select-value {
  padding-left: var(--ag-grid-size);
}

.ag-ltr .ag-rich-select-field-input {
  left: calc(var(--ag-cell-horizontal-padding));
}
.ag-rtl .ag-rich-select-field-input {
  right: calc(var(--ag-cell-horizontal-padding));
}

.ag-popup-editor .ag-rich-select-value {
  height: var(--ag-row-height);
  min-width: 200px;
}

.ag-rich-select-virtual-list-item {
  cursor: default;
  height: var(--ag-list-item-height);
}
.ag-rich-select-virtual-list-item:focus-visible::after {
  content: none;
}

.ag-ltr .ag-rich-select-row {
  padding-left: calc(var(--ag-cell-horizontal-padding) / 2);
}
.ag-rtl .ag-rich-select-row {
  padding-right: calc(var(--ag-cell-horizontal-padding) / 2);
}

.ag-rich-select-row-selected {
  background-color: var(--ag-selected-row-background-color);
}

.ag-rich-select-row:hover,
.ag-rich-select-row-highlighted {
  background-image: linear-gradient(var(--ag-row-hover-color), var(--ag-row-hover-color));
}

.ag-rich-select-row-text-highlight {
  font-weight: bold;
}

.ag-autocomplete {
  width: 100%;
}

.ag-autocomplete-list {
  width: 100%;
  min-width: 200px;
  height: calc(var(--ag-row-height) * 6.5);
}

.ag-autocomplete-virtual-list-item {
  cursor: default;
  height: var(--ag-list-item-height);
}
.ag-autocomplete-virtual-list-item:focus-visible::after {
  content: none;
}
.ag-autocomplete-virtual-list-item:hover {
  background-color: var(--ag-row-hover-color);
}

.ag-autocomplete-row-label {
  margin: 0px var(--ag-widget-container-horizontal-padding);
}

.ag-autocomplete-row-selected {
  background-color: var(--ag-selected-row-background-color);
}

.ag-pill {
  border: 1px solid var(--ag-chip-border-color);
  border-radius: var(--ag-border-radius);
  background-color: var(--ag-chip-background-color);
}

.ag-ltr .ag-pill .ag-pill-button {
  margin-left: var(--ag-grid-size);
}
.ag-rtl .ag-pill .ag-pill-button {
  margin-right: var(--ag-grid-size);
}

.ag-pill:focus-visible {
  border-color: var(--ag-input-focus-border-color);
}

.ag-pill .ag-pill-button:hover {
  cursor: pointer;
}

.ag-dragging-range-handle .ag-dialog,
.ag-dragging-fill-handle .ag-dialog {
  opacity: 0.7;
  pointer-events: none;
}

.ag-dialog {
  border-radius: var(--ag-border-radius);
  border: var(--ag-borders) var(--ag-border-color);
  box-shadow: var(--ag-popup-shadow);
}

.ag-panel {
  background-color: var(--ag-panel-background-color);
  border-color: var(--ag-panel-border-color);
}

.ag-panel-title-bar {
  color: var(--ag-header-foreground-color);
  height: var(--ag-header-height);
  padding: var(--ag-grid-size) var(--ag-cell-horizontal-padding);
  border-bottom: var(--ag-borders) var(--ag-border-color);
}

.ag-ltr .ag-panel-title-bar-button {
  margin-left: var(--ag-grid-size);
}
.ag-rtl .ag-panel-title-bar-button {
  margin-right: var(--ag-grid-size);
}

.ag-tooltip {
  background-color: var(--ag-tooltip-background-color);
  color: var(--ag-foreground-color);
  padding: var(--ag-grid-size);
  border: var(--ag-borders) var(--ag-border-color);
  border-radius: var(--ag-card-radius);
  white-space: normal;
}

.ag-tooltip.ag-tooltip-animate,
.ag-tooltip-custom.ag-tooltip-animate {
  transition: opacity 1s;
}
.ag-tooltip.ag-tooltip-animate.ag-tooltip-hiding,
.ag-tooltip-custom.ag-tooltip-animate.ag-tooltip-hiding {
  opacity: 0;
}

.ag-ltr .ag-column-select-column,
.ag-ltr .ag-column-select-column-group {
  padding-left: calc(var(--ag-indentation-level) * var(--ag-column-select-indent-size));
}
.ag-rtl .ag-column-select-column,
.ag-rtl .ag-column-select-column-group {
  padding-right: calc(var(--ag-indentation-level) * var(--ag-column-select-indent-size));
}

.ag-column-select-header-icon {
  cursor: pointer;
}

.ag-column-select-header-icon:focus-visible {
  outline: none;
}
.ag-column-select-header-icon:focus-visible::after {
  content: "";
  position: absolute;
  background-color: transparent;
  pointer-events: none;
  top: 0px;
  left: 0px;
  display: block;
  width: calc(100% - 0px);
  height: calc(100% - 0px);
  border: 1px solid;
  border-color: var(--ag-input-focus-border-color);
}

.ag-ltr .ag-column-group-icons:not(:last-child),
.ag-ltr .ag-column-select-header-icon:not(:last-child),
.ag-ltr .ag-column-select-header-checkbox:not(:last-child),
.ag-ltr .ag-column-select-header-filter-wrapper:not(:last-child),
.ag-ltr .ag-column-select-checkbox:not(:last-child),
.ag-ltr .ag-column-select-column-drag-handle:not(:last-child),
.ag-ltr .ag-column-select-column-group-drag-handle:not(:last-child),
.ag-ltr .ag-column-select-column-label:not(:last-child) {
  margin-right: var(--ag-widget-horizontal-spacing);
}
.ag-rtl .ag-column-group-icons:not(:last-child),
.ag-rtl .ag-column-select-header-icon:not(:last-child),
.ag-rtl .ag-column-select-header-checkbox:not(:last-child),
.ag-rtl .ag-column-select-header-filter-wrapper:not(:last-child),
.ag-rtl .ag-column-select-checkbox:not(:last-child),
.ag-rtl .ag-column-select-column-drag-handle:not(:last-child),
.ag-rtl .ag-column-select-column-group-drag-handle:not(:last-child),
.ag-rtl .ag-column-select-column-label:not(:last-child) {
  margin-left: var(--ag-widget-horizontal-spacing);
}

.ag-column-select-virtual-list-item:focus-visible {
  outline: none;
}
.ag-column-select-virtual-list-item:focus-visible::after {
  content: "";
  position: absolute;
  background-color: transparent;
  pointer-events: none;
  top: 1px;
  left: 1px;
  display: block;
  width: calc(100% - 2px);
  height: calc(100% - 2px);
  border: 1px solid;
  border-color: var(--ag-input-focus-border-color);
}

.ag-column-select-column-group:not(:last-child),
.ag-column-select-column:not(:last-child) {
  margin-bottom: var(--ag-widget-vertical-spacing);
}

.ag-column-select-column-readonly,
.ag-column-select-column-group-readonly {
  color: var(--ag-disabled-foreground-color);
  pointer-events: none;
}

.ag-ltr .ag-column-select-add-group-indent {
  margin-left: calc(var(--ag-icon-size) + var(--ag-grid-size) * 2);
}
.ag-rtl .ag-column-select-add-group-indent {
  margin-right: calc(var(--ag-icon-size) + var(--ag-grid-size) * 2);
}

.ag-column-select-virtual-list-viewport {
  padding: calc(var(--ag-widget-container-vertical-padding) * 0.5) 0px;
}

.ag-column-select-virtual-list-item {
  padding: 0 var(--ag-widget-container-horizontal-padding);
}

.ag-checkbox-edit {
  padding-left: var(--ag-cell-horizontal-padding);
  padding-right: var(--ag-cell-horizontal-padding);
}

.ag-pill-select .ag-column-drop {
  border-bottom: 0;
  min-height: unset;
}
.ag-pill-select .ag-column-drop-list {
  padding: 0;
}
.ag-pill-select .ag-select {
  padding-top: var(--ag-grid-size);
}
.ag-pill-select .ag-picker-field-wrapper {
  background-color: transparent;
  border: 0;
}
.ag-pill-select .ag-picker-field-display {
  cursor: pointer;
}

.ag-rtl {
  text-align: right;
}

.ag-root-wrapper {
  border-radius: var(--ag-wrapper-border-radius);
  border: var(--ag-borders) var(--ag-border-color);
}

.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));
}

.ag-cell-wrapper.ag-row-group,
.ag-cell-wrapper.ag-row-group-leaf-indent,
.ag-cell-wrapper.ag-pivot-leaf-group {
  padding-left: calc(var(--ag-indentation-level) * var(--ag-row-group-indent-size));
}

.ag-ltr .ag-row-group-leaf-indent {
  margin-left: var(--ag-row-group-indent-size);
}
.ag-rtl .ag-row-group-leaf-indent {
  margin-right: var(--ag-row-group-indent-size);
}

.ag-row:not(.ag-row-level-0) .ag-pivot-leaf-group {
  margin-left: var(--ag-row-group-indent-size);
}

.ag-value-change-delta {
  padding-right: 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 0.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 {
  height: var(--ag-row-height);
  background-color: var(--ag-background-color);
  color: var(--ag-data-color);
  border-bottom: var(--ag-row-border-style) var(--ag-row-border-color) var(--ag-row-border-width);
}

.ag-row-highlight-above::after,
.ag-row-highlight-below::after {
  content: "";
  position: absolute;
  width: calc(100% - 1px);
  height: 1px;
  background-color: var(--ag-range-selection-border-color);
  left: 1px;
}

.ag-row-highlight-above::after {
  top: 0px;
}

.ag-row-highlight-below::after {
  bottom: 0px;
}

.ag-row-odd {
  background-color: var(--ag-odd-row-background-color);
}

.ag-body-horizontal-scroll:not(.ag-scrollbar-invisible) .ag-horizontal-left-spacer:not(.ag-scroller-corner) {
  border-right: var(--ag-borders-critical) var(--ag-border-color);
}
.ag-body-horizontal-scroll:not(.ag-scrollbar-invisible) .ag-horizontal-right-spacer:not(.ag-scroller-corner) {
  border-left: var(--ag-borders-critical) var(--ag-border-color);
}

.ag-row-selected::before {
  content: "";
  background-color: var(--ag-selected-row-background-color);
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
}

.ag-row-hover:not(.ag-full-width-row)::before,
.ag-row-hover.ag-full-width-row.ag-row-group::before {
  content: "";
  background-color: var(--ag-row-hover-color);
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
}

.ag-row-hover.ag-full-width-row.ag-row-group > * {
  position: relative;
}

.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-column-hover {
  background-color: var(--ag-column-hover-color);
}

.ag-ltr .ag-right-aligned-cell {
  text-align: right;
}
.ag-rtl .ag-right-aligned-cell {
  text-align: left;
}

.ag-ltr .ag-right-aligned-cell .ag-cell-value,
.ag-ltr .ag-right-aligned-cell .ag-group-value {
  margin-left: auto;
}
.ag-rtl .ag-right-aligned-cell .ag-cell-value,
.ag-rtl .ag-right-aligned-cell .ag-group-value {
  margin-right: auto;
}

.ag-ltr .ag-right-aligned-cell .ag-skeleton-effect {
  margin-left: auto;
}
.ag-rtl .ag-right-aligned-cell .ag-skeleton-effect {
  margin-right: auto;
}

.ag-cell,
.ag-full-width-row .ag-cell-wrapper.ag-row-group {
  --ag-internal-calculated-line-height: var(
      --ag-line-height,
      calc(var(--ag-row-height) - var(--ag-row-border-width))
  );
  --ag-internal-padded-row-height: calc(var(--ag-row-height) - var(--ag-row-border-width));
  border: 1px solid transparent;
  line-height: min(var(--ag-internal-calculated-line-height), var(--ag-internal-padded-row-height));
  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);
  -webkit-font-smoothing: subpixel-antialiased;
}

.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: 0.5;
}

.ag-cell-inline-editing {
  border: 1px solid var(--ag-border-color);
  border-radius: var(--ag-card-radius);
  box-shadow: var(--ag-card-shadow);
  padding: 0;
  background-color: var(--ag-control-panel-background-color);
}

.ag-popup-editor .ag-large-text,
.ag-autocomplete-list-popup {
  border: var(--ag-borders) var(--ag-border-color);
  background: var(--ag-background-color);
  border-radius: var(--ag-card-radius);
  box-shadow: var(--ag-card-shadow);
  padding: var(--ag-grid-size);
  background-color: var(--ag-control-panel-background-color);
  padding: 0;
}

.ag-large-text-input {
  height: auto;
  padding: var(--ag-cell-horizontal-padding);
}

.ag-rtl .ag-large-text-input textarea {
  resize: none;
}

.ag-details-row {
  padding: calc(var(--ag-grid-size) * 5);
  background-color: var(--ag-background-color);
}

.ag-layout-auto-height .ag-center-cols-viewport,
.ag-layout-auto-height .ag-center-cols-container,
.ag-layout-print .ag-center-cols-viewport,
.ag-layout-print .ag-center-cols-container {
  min-height: 50px;
}

.ag-overlay-loading-wrapper {
  background-color: var(--ag-modal-overlay-background-color);
}

.ag-overlay-loading-center {
  border: var(--ag-borders) var(--ag-border-color);
  background: var(--ag-background-color);
  border-radius: var(--ag-card-radius);
  box-shadow: var(--ag-card-shadow);
  padding: var(--ag-grid-size);
}

.ag-skeleton-container {
  width: 100%;
  height: 100%;
  align-content: center;
}

.ag-skeleton-effect {
  background-color: var(--ag-row-loading-skeleton-effect-color);
  width: 100%;
  height: 1em;
  border-radius: 0.25rem;
  animation: ag-skeleton-loading 1.5s ease-in-out 0.5s infinite;
}

@keyframes ag-skeleton-loading {
  0% {
    opacity: 1;
  }
  50% {
    opacity: 0.4;
  }
  100% {
    opacity: 1;
  }
}
.ag-loading {
  display: flex;
  height: 100%;
  align-items: center;
}
.ag-ltr .ag-loading {
  padding-left: var(--ag-cell-horizontal-padding);
}
.ag-rtl .ag-loading {
  padding-right: var(--ag-cell-horizontal-padding);
}

.ag-ltr .ag-loading-icon {
  padding-right: var(--ag-cell-widget-spacing);
}
.ag-rtl .ag-loading-icon {
  padding-left: var(--ag-cell-widget-spacing);
}

.ag-icon-loading {
  animation-name: spin;
  animation-duration: 1000ms;
  animation-iteration-count: infinite;
  animation-timing-function: linear;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}
.ag-floating-top {
  border-bottom: var(--ag-borders-critical) var(--ag-border-color);
}

.ag-floating-bottom {
  border-top: var(--ag-borders-critical) var(--ag-border-color);
}

.ag-ltr .ag-cell {
  border-right: var(--ag-cell-horizontal-border);
}
.ag-rtl .ag-cell {
  border-left: var(--ag-cell-horizontal-border);
}
.ag-ltr .ag-cell {
  border-right-width: 1px;
}
.ag-rtl .ag-cell {
  border-left-width: 1px;
}

.ag-cell.ag-cell-first-right-pinned:not(.ag-cell-range-left):not(.ag-cell-range-single-cell) {
  border-left: var(--ag-borders-critical) var(--ag-border-color);
}

.ag-cell.ag-cell-last-left-pinned:not(.ag-cell-range-right):not(.ag-cell-range-single-cell) {
  border-right: var(--ag-borders-critical) var(--ag-border-color);
}

.ag-cell-range-selected:not(.ag-cell-focus),
.ag-cell-range-selected.ag-cell-range-chart,
.ag-body-viewport:not(.ag-has-focus) .ag-cell-range-single-cell:not(.ag-cell-inline-editing) {
  background-color: var(--ag-range-selection-background-color);
}
.ag-cell-range-selected:not(.ag-cell-focus).ag-cell-range-chart,
.ag-cell-range-selected.ag-cell-range-chart.ag-cell-range-chart,
.ag-body-viewport:not(.ag-has-focus) .ag-cell-range-single-cell:not(.ag-cell-inline-editing).ag-cell-range-chart {
  background-color: var(--ag-range-selection-chart-background-color) !important;
}
.ag-cell-range-selected:not(.ag-cell-focus).ag-cell-range-chart.ag-cell-range-chart-category,
.ag-cell-range-selected.ag-cell-range-chart.ag-cell-range-chart.ag-cell-range-chart-category,
.ag-body-viewport:not(.ag-has-focus) .ag-cell-range-single-cell:not(.ag-cell-inline-editing).ag-cell-range-chart.ag-cell-range-chart-category {
  background-color: var(--ag-range-selection-chart-category-background-color) !important;
}

.ag-cell-range-selected-1:not(.ag-cell-focus),
.ag-cell-range-selected-1.ag-cell-range-chart,
.ag-root:not(.ag-context-menu-open) .ag-body-viewport:not(.ag-has-focus) .ag-cell-range-selected-1:not(.ag-cell-inline-editing) {
  background-color: var(--ag-range-selection-background-color);
}

.ag-cell-range-selected-2:not(.ag-cell-focus),
.ag-cell-range-selected-2.ag-cell-range-chart,
.ag-body-viewport:not(.ag-has-focus) .ag-cell-range-selected-2 {
  background-color: var(--ag-range-selection-background-color-2);
}

.ag-cell-range-selected-3:not(.ag-cell-focus),
.ag-cell-range-selected-3.ag-cell-range-chart,
.ag-body-viewport:not(.ag-has-focus) .ag-cell-range-selected-3 {
  background-color: var(--ag-range-selection-background-color-3);
}

.ag-cell-range-selected-4:not(.ag-cell-focus),
.ag-cell-range-selected-4.ag-cell-range-chart,
.ag-body-viewport:not(.ag-has-focus) .ag-cell-range-selected-4 {
  background-color: var(--ag-range-selection-background-color-4);
}

.ag-cell.ag-cell-range-selected:not(.ag-cell-range-single-cell).ag-cell-range-top {
  border-top-color: var(--ag-range-selection-border-color);
  border-top-style: var(--ag-range-selection-border-style);
}
.ag-cell.ag-cell-range-selected:not(.ag-cell-range-single-cell).ag-cell-range-right {
  border-right-color: var(--ag-range-selection-border-color);
  border-right-style: var(--ag-range-selection-border-style);
}
.ag-cell.ag-cell-range-selected:not(.ag-cell-range-single-cell).ag-cell-range-bottom {
  border-bottom-color: var(--ag-range-selection-border-color);
  border-bottom-style: var(--ag-range-selection-border-style);
}
.ag-cell.ag-cell-range-selected:not(.ag-cell-range-single-cell).ag-cell-range-left {
  border-left-color: var(--ag-range-selection-border-color);
  border-left-style: var(--ag-range-selection-border-style);
}

.ag-ltr .ag-cell-focus:not(.ag-cell-range-selected):focus-within,
.ag-ltr .ag-context-menu-open .ag-cell-focus:not(.ag-cell-range-selected),
.ag-ltr .ag-full-width-row.ag-row-focus:focus .ag-cell-wrapper.ag-row-group,
.ag-ltr .ag-cell-range-single-cell,
.ag-ltr .ag-cell-range-single-cell.ag-cell-range-handle,
.ag-rtl .ag-cell-focus:not(.ag-cell-range-selected):focus-within,
.ag-rtl .ag-context-menu-open .ag-cell-focus:not(.ag-cell-range-selected),
.ag-rtl .ag-full-width-row.ag-row-focus:focus .ag-cell-wrapper.ag-row-group,
.ag-rtl .ag-cell-range-single-cell,
.ag-rtl .ag-cell-range-single-cell.ag-cell-range-handle {
  border: 1px solid;
  border-color: var(--ag-range-selection-border-color);
  border-style: var(--ag-range-selection-border-style);
  outline: initial;
}

.ag-cell.ag-selection-fill-top,
.ag-cell.ag-selection-fill-top.ag-cell-range-selected {
  border-top: 1px dashed;
  border-top-color: var(--ag-range-selection-border-color);
}

.ag-ltr .ag-cell.ag-selection-fill-right,
.ag-ltr .ag-cell.ag-selection-fill-right.ag-cell-range-selected {
  border-right: 1px dashed var(--ag-range-selection-border-color) !important;
}
.ag-rtl .ag-cell.ag-selection-fill-right,
.ag-rtl .ag-cell.ag-selection-fill-right.ag-cell-range-selected {
  border-left: 1px dashed var(--ag-range-selection-border-color) !important;
}

.ag-cell.ag-selection-fill-bottom,
.ag-cell.ag-selection-fill-bottom.ag-cell-range-selected {
  border-bottom: 1px dashed;
  border-bottom-color: var(--ag-range-selection-border-color);
}

.ag-ltr .ag-cell.ag-selection-fill-left,
.ag-ltr .ag-cell.ag-selection-fill-left.ag-cell-range-selected {
  border-left: 1px dashed var(--ag-range-selection-border-color) !important;
}
.ag-rtl .ag-cell.ag-selection-fill-left,
.ag-rtl .ag-cell.ag-selection-fill-left.ag-cell-range-selected {
  border-right: 1px dashed var(--ag-range-selection-border-color) !important;
}

.ag-fill-handle,
.ag-range-handle {
  position: absolute;
  width: 6px;
  height: 6px;
  bottom: -1px;
  background-color: var(--ag-range-selection-border-color);
}
.ag-ltr .ag-fill-handle,
.ag-ltr .ag-range-handle {
  right: -1px;
}
.ag-rtl .ag-fill-handle,
.ag-rtl .ag-range-handle {
  left: -1px;
}

.ag-fill-handle {
  cursor: cell;
}

.ag-range-handle {
  cursor: nwse-resize;
}

.ag-cell-inline-editing {
  border-color: var(--ag-input-focus-border-color) !important;
}

.ag-menu {
  border: var(--ag-borders) var(--ag-border-color);
  background: var(--ag-background-color);
  border-radius: var(--ag-card-radius);
  box-shadow: var(--ag-card-shadow);
  padding: var(--ag-grid-size);
  background-color: var(--ag-menu-background-color);
  border-color: var(--ag-menu-border-color);
  padding: 0;
}

.ag-menu.ag-tabs {
  min-width: var(--ag-tab-min-width);
}

.ag-menu-list {
  cursor: default;
  padding: var(--ag-grid-size) 0;
}

.ag-menu-separator {
  height: calc(var(--ag-grid-size) * 2 + 1px);
}

.ag-menu-separator-part::after {
  content: "";
  display: block;
  border-top: var(--ag-borders-critical) var(--ag-border-color);
}

.ag-menu-option-active,
.ag-compact-menu-option-active {
  background-color: var(--ag-row-hover-color);
}

.ag-menu-option-part,
.ag-compact-menu-option-part {
  line-height: var(--ag-icon-size);
  padding: calc(var(--ag-grid-size) + 2px) 0;
}

.ag-menu-option-disabled,
.ag-compact-menu-option-disabled {
  opacity: 0.5;
}

.ag-menu-option-icon,
.ag-compact-menu-option-icon {
  width: var(--ag-icon-size);
}
.ag-ltr .ag-menu-option-icon,
.ag-ltr .ag-compact-menu-option-icon {
  padding-left: calc(var(--ag-grid-size) * 2);
}
.ag-rtl .ag-menu-option-icon,
.ag-rtl .ag-compact-menu-option-icon {
  padding-right: calc(var(--ag-grid-size) * 2);
}

.ag-menu-option-text,
.ag-compact-menu-option-text {
  padding-left: calc(var(--ag-grid-size) * 2);
  padding-right: calc(var(--ag-grid-size) * 2);
}

.ag-ltr .ag-menu-option-shortcut,
.ag-ltr .ag-compact-menu-option-shortcut {
  padding-right: var(--ag-grid-size);
}
.ag-rtl .ag-menu-option-shortcut,
.ag-rtl .ag-compact-menu-option-shortcut {
  padding-left: var(--ag-grid-size);
}

.ag-ltr .ag-menu-option-popup-pointer,
.ag-ltr .ag-compact-menu-option-popup-pointer {
  padding-right: var(--ag-grid-size);
}
.ag-rtl .ag-menu-option-popup-pointer,
.ag-rtl .ag-compact-menu-option-popup-pointer {
  padding-left: var(--ag-grid-size);
}

.ag-tabs-header {
  display: flex;
}

.ag-tabs-header-wrapper {
  display: flex;
}
.ag-tabs-header-wrapper .ag-tabs-header {
  flex: 1;
}

.ag-tabs-close-button-wrapper {
  border: 0;
  border-right: var(--ag-borders) var(--ag-border-color);
  padding: var(--ag-grid-size);
}

.ag-tabs-close-button {
  border: 0;
  background-color: unset;
  cursor: pointer;
  padding: 0;
}

.ag-tab {
  border-bottom: var(--ag-selected-tab-underline-width) solid transparent;
  transition: border-bottom var(--ag-selected-tab-underline-transition-speed);
  display: flex;
  flex: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.ag-tab:focus-visible {
  outline: none;
}
.ag-tab:focus-visible::after {
  content: "";
  position: absolute;
  background-color: transparent;
  pointer-events: none;
  top: 4px;
  left: 4px;
  display: block;
  width: calc(100% - 8px);
  height: calc(100% - 8px);
  border: 1px solid;
  border-color: var(--ag-input-focus-border-color);
}

.ag-tab-selected {
  border-bottom-color: var(--ag-selected-tab-underline-color);
}

.ag-menu-header {
  color: var(--ag-secondary-foreground-color);
}

.ag-filter-separator {
  border-top: var(--ag-borders-critical) var(--ag-border-color);
}

.ag-filter-select .ag-picker-field-wrapper {
  width: 0;
}

.ag-filter-condition-operator {
  height: 17px;
}

.ag-ltr .ag-filter-condition-operator-or {
  margin-left: calc(var(--ag-grid-size) * 2);
}
.ag-rtl .ag-filter-condition-operator-or {
  margin-right: calc(var(--ag-grid-size) * 2);
}

.ag-set-filter-select-all {
  padding-top: var(--ag-widget-container-vertical-padding);
}

.ag-set-filter-list,
.ag-filter-no-matches {
  height: calc(var(--ag-list-item-height) * 6);
}

.ag-set-filter-tree-list {
  height: calc(var(--ag-list-item-height) * 10);
}

.ag-set-filter-filter {
  margin-top: var(--ag-widget-container-vertical-padding);
  margin-left: var(--ag-widget-container-horizontal-padding);
  margin-right: var(--ag-widget-container-horizontal-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);
}

.ag-set-filter {
  --ag-indentation-level: 0;
}

.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));
}
.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-ltr .ag-set-filter-add-group-indent {
  margin-left: calc(var(--ag-icon-size) + var(--ag-widget-container-horizontal-padding));
}
.ag-rtl .ag-set-filter-add-group-indent {
  margin-right: calc(var(--ag-icon-size) + var(--ag-widget-container-horizontal-padding));
}

.ag-ltr .ag-set-filter-group-icons {
  margin-right: var(--ag-widget-container-horizontal-padding);
}
.ag-rtl .ag-set-filter-group-icons {
  margin-left: var(--ag-widget-container-horizontal-padding);
}

.ag-filter-menu .ag-set-filter-list {
  min-width: 200px;
}

.ag-filter-virtual-list-item:focus-visible {
  outline: none;
}
.ag-filter-virtual-list-item:focus-visible::after {
  content: "";
  position: absolute;
  background-color: transparent;
  pointer-events: none;
  top: 1px;
  left: 1px;
  display: block;
  width: calc(100% - 2px);
  height: calc(100% - 2px);
  border: 1px solid;
  border-color: var(--ag-input-focus-border-color);
}

.ag-filter-apply-panel {
  padding: var(--ag-widget-container-vertical-padding) var(--ag-widget-container-horizontal-padding);
  border-top: var(--ag-borders-secondary) var(--ag-secondary-border-color);
}

.ag-filter-apply-panel-button {
  line-height: 1.5;
}
.ag-ltr .ag-filter-apply-panel-button {
  margin-left: calc(var(--ag-grid-size) * 2);
}
.ag-rtl .ag-filter-apply-panel-button {
  margin-right: calc(var(--ag-grid-size) * 2);
}

.ag-simple-filter-body-wrapper {
  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));
  overflow-y: auto;
  min-height: calc(var(--ag-list-item-height) + var(--ag-widget-container-vertical-padding) + var(--ag-widget-vertical-spacing));
}
.ag-simple-filter-body-wrapper > * {
  margin-bottom: var(--ag-widget-vertical-spacing);
}
.ag-simple-filter-body-wrapper .ag-resizer-wrapper {
  margin: 0;
}

.ag-menu:not(.ag-tabs) .ag-filter .ag-filter-body-wrapper,
.ag-menu:not(.ag-tabs) .ag-filter > *:not(.ag-filter-wrapper) {
  min-width: calc(var(--ag-menu-min-width) - 2px);
}

.ag-filter-no-matches {
  padding: var(--ag-widget-container-vertical-padding) var(--ag-widget-container-horizontal-padding);
}

.ag-multi-filter-menu-item {
  margin: var(--ag-grid-size) 0;
}

.ag-multi-filter-group-title-bar {
  padding: calc(var(--ag-grid-size) * 2) var(--ag-grid-size);
  background-color: transparent;
}

.ag-group-filter-field-select-wrapper {
  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));
}
.ag-group-filter-field-select-wrapper > * {
  margin-bottom: var(--ag-widget-vertical-spacing);
}

.ag-multi-filter-group-title-bar:focus-visible {
  outline: none;
}
.ag-multi-filter-group-title-bar:focus-visible::after {
  content: "";
  position: absolute;
  background-color: transparent;
  pointer-events: none;
  top: 4px;
  left: 4px;
  display: block;
  width: calc(100% - 8px);
  height: calc(100% - 8px);
  border: 1px solid;
  border-color: var(--ag-input-focus-border-color);
}

.ag-side-bar {
  position: relative;
}

.ag-tool-panel-wrapper {
  width: var(--ag-side-bar-panel-width);
  background-color: var(--ag-control-panel-background-color);
}

.ag-side-buttons {
  padding-top: calc(var(--ag-grid-size) * 4);
  width: calc(var(--ag-icon-size) + 4px);
  position: relative;
  overflow: hidden;
}

button.ag-side-button-button {
  color: inherit;
  font-family: inherit;
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
  background: transparent;
  padding: calc(var(--ag-grid-size) * 2) 0 calc(var(--ag-grid-size) * 2) 0;
  width: 100%;
  margin: 0;
  min-height: calc(var(--ag-grid-size) * 18);
  background-position-y: center;
  background-position-x: center;
  background-repeat: no-repeat;
  border: none;
  border-top: var(--ag-borders-side-button) var(--ag-border-color);
  border-bottom: var(--ag-borders-side-button) var(--ag-border-color);
}
button.ag-side-button-button:focus {
  box-shadow: none;
}

.ag-side-button-button:focus-visible {
  outline: none;
}
.ag-side-button-button:focus-visible::after {
  content: "";
  position: absolute;
  background-color: transparent;
  pointer-events: none;
  top: 4px;
  left: 4px;
  display: block;
  width: calc(100% - 8px);
  height: calc(100% - 8px);
  border: 1px solid;
  border-color: var(--ag-input-focus-border-color);
}

.ag-selected button.ag-side-button-button {
  background-color: var(--ag-side-button-selected-background-color);
}

.ag-side-button-icon-wrapper {
  margin-bottom: 3px;
}

.ag-ltr .ag-side-bar-left,
.ag-rtl .ag-side-bar-right {
  border-right: var(--ag-borders) var(--ag-border-color);
}
.ag-ltr .ag-side-bar-left .ag-tool-panel-wrapper,
.ag-rtl .ag-side-bar-right .ag-tool-panel-wrapper {
  border-left: var(--ag-borders) var(--ag-border-color);
}
.ag-ltr .ag-side-bar-left .ag-side-button-button,
.ag-rtl .ag-side-bar-right .ag-side-button-button {
  border-right: var(--ag-selected-tab-underline-width) solid transparent;
  transition: border-right var(--ag-selected-tab-underline-transition-speed);
}
.ag-ltr .ag-side-bar-left .ag-selected .ag-side-button-button,
.ag-rtl .ag-side-bar-right .ag-selected .ag-side-button-button {
  border-right-color: var(--ag-selected-tab-underline-color);
}

.ag-rtl .ag-side-bar-left,
.ag-ltr .ag-side-bar-right {
  border-left: var(--ag-borders) var(--ag-border-color);
}
.ag-rtl .ag-side-bar-left .ag-tool-panel-wrapper,
.ag-ltr .ag-side-bar-right .ag-tool-panel-wrapper {
  border-right: var(--ag-borders) var(--ag-border-color);
}
.ag-rtl .ag-side-bar-left .ag-side-button-button,
.ag-ltr .ag-side-bar-right .ag-side-button-button {
  border-left: var(--ag-selected-tab-underline-width) solid transparent;
  transition: border-left var(--ag-selected-tab-underline-transition-speed);
}
.ag-rtl .ag-side-bar-left .ag-selected .ag-side-button-button,
.ag-ltr .ag-side-bar-right .ag-selected .ag-side-button-button {
  border-left-color: var(--ag-selected-tab-underline-color);
}

.ag-filter-toolpanel-header {
  height: calc(var(--ag-grid-size) * 6);
}

.ag-filter-toolpanel-header,
.ag-filter-toolpanel-search {
  padding: 0 var(--ag-grid-size);
}

.ag-filter-toolpanel-header:focus-visible {
  outline: none;
}
.ag-filter-toolpanel-header:focus-visible::after {
  content: "";
  position: absolute;
  background-color: transparent;
  pointer-events: none;
  top: 4px;
  left: 4px;
  display: block;
  width: calc(100% - 8px);
  height: calc(100% - 8px);
  border: 1px solid;
  border-color: var(--ag-input-focus-border-color);
}

.ag-filter-toolpanel-group:not(.ag-has-filter) > .ag-group-title-bar .ag-filter-toolpanel-group-instance-header-icon {
  display: none;
}

.ag-filter-toolpanel-group-level-0-header {
  height: calc(var(--ag-grid-size) * 8);
}

.ag-filter-toolpanel-group-item {
  margin-top: calc(var(--ag-grid-size) * 0.5);
  margin-bottom: calc(var(--ag-grid-size) * 0.5);
}

.ag-filter-toolpanel-search {
  height: var(--ag-header-height);
}

.ag-filter-toolpanel-search-input {
  flex-grow: 1;
  height: calc(var(--ag-grid-size) * 4);
}
.ag-ltr .ag-filter-toolpanel-search-input {
  margin-right: var(--ag-grid-size);
}
.ag-rtl .ag-filter-toolpanel-search-input {
  margin-left: var(--ag-grid-size);
}

.ag-filter-toolpanel-group-level-0 {
  border-top: var(--ag-borders-secondary) var(--ag-secondary-border-color);
}

.ag-ltr .ag-filter-toolpanel-expand,
.ag-ltr .ag-filter-toolpanel-group-title-bar-icon {
  margin-right: var(--ag-grid-size);
}
.ag-rtl .ag-filter-toolpanel-expand,
.ag-rtl .ag-filter-toolpanel-group-title-bar-icon {
  margin-left: var(--ag-grid-size);
}

.ag-filter-toolpanel-group-title-bar {
  background-color: transparent;
}

.ag-ltr .ag-filter-toolpanel-header {
  padding-left: calc(var(--ag-filter-tool-panel-group-indent) * var(--ag-indentation-level, 0) + var(--ag-grid-size));
}
.ag-rtl .ag-filter-toolpanel-header {
  padding-right: calc(var(--ag-filter-tool-panel-group-indent) * var(--ag-indentation-level, 0) + var(--ag-grid-size));
}

.ag-filter-toolpanel-instance-filter {
  border-bottom: var(--ag-borders) var(--ag-border-color);
  border-top: var(--ag-borders) var(--ag-border-color);
  margin-top: var(--ag-grid-size);
}

.ag-ltr .ag-filter-toolpanel-group-instance-header-icon,
.ag-ltr .ag-filter-toolpanel-instance-header-icon {
  margin-left: var(--ag-grid-size);
}
.ag-rtl .ag-filter-toolpanel-group-instance-header-icon,
.ag-rtl .ag-filter-toolpanel-instance-header-icon {
  margin-right: var(--ag-grid-size);
}

.ag-set-filter-group-icons {
  color: var(--ag-secondary-foreground-color);
}

.ag-pivot-mode-panel {
  min-height: var(--ag-header-height);
  height: var(--ag-header-height);
  display: flex;
}

.ag-pivot-mode-select {
  display: flex;
  align-items: center;
}
.ag-ltr .ag-pivot-mode-select {
  margin-left: var(--ag-widget-container-horizontal-padding);
}
.ag-rtl .ag-pivot-mode-select {
  margin-right: var(--ag-widget-container-horizontal-padding);
}

.ag-column-select-header:focus-visible {
  outline: none;
}
.ag-column-select-header:focus-visible::after {
  content: "";
  position: absolute;
  background-color: transparent;
  pointer-events: none;
  top: 4px;
  left: 4px;
  display: block;
  width: calc(100% - 8px);
  height: calc(100% - 8px);
  border: 1px solid;
  border-color: var(--ag-input-focus-border-color);
}

.ag-column-select-header {
  height: var(--ag-header-height);
  align-items: center;
  padding: 0 var(--ag-widget-container-horizontal-padding);
  border-bottom: var(--ag-borders-secondary) var(--ag-secondary-border-color);
}

.ag-column-panel-column-select {
  border-bottom: var(--ag-borders-secondary) var(--ag-secondary-border-color);
  border-top: var(--ag-borders-secondary) var(--ag-secondary-border-color);
}

.ag-column-group-icons,
.ag-column-select-header-icon {
  color: var(--ag-secondary-foreground-color);
}

.ag-column-select-list .ag-list-item-hovered::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 1px;
}
.ag-column-select-list .ag-item-highlight-top::after {
  top: 0;
}
.ag-column-select-list .ag-item-highlight-bottom::after {
  bottom: 0;
}

.ag-header,
.ag-advanced-filter-header {
  background-color: var(--ag-header-background-color);
  border-bottom: var(--ag-borders-critical) var(--ag-border-color);
}

.ag-header-row {
  color: var(--ag-header-foreground-color);
  height: var(--ag-header-height);
}

.ag-pinned-right-header {
  border-left: var(--ag-borders-critical) var(--ag-border-color);
}

.ag-pinned-left-header {
  border-right: var(--ag-borders-critical) var(--ag-border-color);
}

.ag-ltr .ag-header-cell:not(.ag-right-aligned-header) .ag-header-label-icon,
.ag-ltr .ag-header-cell:not(.ag-right-aligned-header) .ag-header-menu-icon {
  margin-left: var(--ag-grid-size);
}
.ag-rtl .ag-header-cell:not(.ag-right-aligned-header) .ag-header-label-icon,
.ag-rtl .ag-header-cell:not(.ag-right-aligned-header) .ag-header-menu-icon {
  margin-right: var(--ag-grid-size);
}

.ag-ltr .ag-header-cell.ag-right-aligned-header .ag-header-label-icon,
.ag-ltr .ag-header-cell.ag-right-aligned-header .ag-header-menu-icon {
  margin-right: var(--ag-grid-size);
}
.ag-rtl .ag-header-cell.ag-right-aligned-header .ag-header-label-icon,
.ag-rtl .ag-header-cell.ag-right-aligned-header .ag-header-menu-icon {
  margin-left: var(--ag-grid-size);
}

.ag-header-cell,
.ag-header-group-cell {
  padding-left: var(--ag-cell-horizontal-padding);
  padding-right: var(--ag-cell-horizontal-padding);
}
.ag-header-cell.ag-header-cell-moving,
.ag-header-group-cell.ag-header-cell-moving {
  background-color: var(--ag-header-cell-moving-background-color);
}

.ag-ltr .ag-header-group-cell-label.ag-sticky-label {
  left: var(--ag-cell-horizontal-padding);
}
.ag-rtl .ag-header-group-cell-label.ag-sticky-label {
  right: var(--ag-cell-horizontal-padding);
}

.ag-header-cell:focus-visible {
  outline: none;
}
.ag-header-cell:focus-visible::after {
  content: "";
  position: absolute;
  background-color: transparent;
  pointer-events: none;
  top: 4px;
  left: 4px;
  display: block;
  width: calc(100% - 8px);
  height: calc(100% - 8px);
  border: 1px solid;
  border-color: var(--ag-input-focus-border-color);
}

.ag-header-group-cell:focus-visible {
  outline: none;
}
.ag-header-group-cell:focus-visible::after {
  content: "";
  position: absolute;
  background-color: transparent;
  pointer-events: none;
  top: 4px;
  left: 4px;
  display: block;
  width: calc(100% - 8px);
  height: calc(100% - 8px);
  border: 1px solid;
  border-color: var(--ag-input-focus-border-color);
}

.ag-advanced-filter-header-cell:focus-visible {
  outline: none;
}
.ag-advanced-filter-header-cell:focus-visible::after {
  content: "";
  position: absolute;
  background-color: transparent;
  pointer-events: none;
  top: 4px;
  left: 4px;
  display: block;
  width: calc(100% - 8px);
  height: calc(100% - 8px);
  border: 1px solid;
  border-color: var(--ag-input-focus-border-color);
}

.ag-header-icon {
  color: var(--ag-secondary-foreground-color);
}

.ag-header-expand-icon {
  cursor: pointer;
}
.ag-ltr .ag-header-expand-icon {
  margin-left: 4px;
}
.ag-rtl .ag-header-expand-icon {
  margin-right: 4px;
}

.ag-header-row:not(:first-child) .ag-header-cell:not(.ag-header-span-height.ag-header-span-total, .ag-header-parent-hidden),
.ag-header-row:not(:first-child) .ag-header-group-cell.ag-header-group-cell-with-group {
  border-top: var(--ag-borders-critical) var(--ag-border-color);
}

.ag-header-group-cell:not(.ag-column-resizing) + .ag-header-group-cell:not(.ag-column-hover):not(.ag-header-cell-moving):hover, .ag-header-group-cell:not(.ag-column-resizing) + .ag-header-group-cell:not(.ag-column-hover).ag-column-resizing,
.ag-header-cell:not(.ag-column-resizing) + .ag-header-cell:not(.ag-column-hover):not(.ag-header-cell-moving):hover,
.ag-header-cell:not(.ag-column-resizing) + .ag-header-cell:not(.ag-column-hover).ag-column-resizing,
.ag-header-group-cell:first-of-type:not(.ag-header-cell-moving):hover,
.ag-header-group-cell:first-of-type.ag-column-resizing,
.ag-header-cell:not(.ag-column-hover):first-of-type:not(.ag-header-cell-moving):hover,
.ag-header-cell:not(.ag-column-hover):first-of-type.ag-column-resizing {
  background-color: var(--ag-header-cell-hover-background-color);
}

.ag-header-cell::before,
.ag-header-group-cell:not(.ag-header-span-height.ag-header-group-cell-no-group)::before {
  content: "";
  position: absolute;
  z-index: 1;
  display: var(--ag-header-column-separator-display);
  width: var(--ag-header-column-separator-width);
  height: var(--ag-header-column-separator-height);
  top: calc(50% - var(--ag-header-column-separator-height) * 0.5);
  background-color: var(--ag-header-column-separator-color);
}
.ag-ltr .ag-header-cell::before,
.ag-ltr .ag-header-group-cell:not(.ag-header-span-height.ag-header-group-cell-no-group)::before {
  right: 0;
}
.ag-rtl .ag-header-cell::before,
.ag-rtl .ag-header-group-cell:not(.ag-header-span-height.ag-header-group-cell-no-group)::before {
  left: 0;
}

.ag-header-highlight-before::after,
.ag-header-highlight-after::after {
  content: "";
  position: absolute;
  height: 100%;
  width: 1px;
}

.ag-header-highlight-before::after {
  left: 0px;
}

.ag-header-highlight-after::after {
  right: 0px;
}

.ag-pinned-left-header .ag-header-highlight-after::after {
  right: 1px;
}

.ag-header-cell-resize {
  display: flex;
  align-items: center;
}

.ag-header-cell-resize::after {
  content: "";
  position: absolute;
  z-index: 1;
  display: var(--ag-header-column-resize-handle-display);
  width: var(--ag-header-column-resize-handle-width);
  height: var(--ag-header-column-resize-handle-height);
  top: calc(50% - var(--ag-header-column-resize-handle-height) * 0.5);
  background-color: var(--ag-header-column-resize-handle-color);
}
.ag-header-cell.ag-header-span-height .ag-header-cell-resize::after {
  height: calc(100% - var(--ag-grid-size) * 4);
  top: calc(var(--ag-grid-size) * 2);
}

.ag-ltr .ag-header-viewport .ag-header-cell-resize::after {
  left: calc(50% - var(--ag-header-column-resize-handle-width));
}
.ag-rtl .ag-header-viewport .ag-header-cell-resize::after {
  right: calc(50% - var(--ag-header-column-resize-handle-width));
}

.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-ltr .ag-header-select-all {
  margin-right: var(--ag-cell-horizontal-padding);
}
.ag-rtl .ag-header-select-all {
  margin-left: var(--ag-cell-horizontal-padding);
}

.ag-ltr .ag-floating-filter-button {
  margin-left: var(--ag-cell-widget-spacing);
}
.ag-rtl .ag-floating-filter-button {
  margin-right: var(--ag-cell-widget-spacing);
}

.ag-floating-filter-button-button {
  color: inherit;
  font-family: inherit;
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
  appearance: none;
  background: transparent;
  border: none;
  height: var(--ag-icon-size);
  padding: 0;
  width: var(--ag-icon-size);
}

.ag-filter-loading {
  background-color: var(--ag-control-panel-background-color);
  height: 100%;
  padding: var(--ag-widget-container-vertical-padding) var(--ag-widget-container-horizontal-padding);
  position: absolute;
  width: 100%;
  z-index: 1;
}

.ag-paging-panel {
  border-top: 1px solid;
  border-top-color: var(--ag-border-color);
  color: var(--ag-secondary-foreground-color);
  height: var(--ag-header-height);
}
.ag-paging-panel > * {
  margin: 0 var(--ag-cell-horizontal-padding);
}
.ag-paging-panel > .ag-paging-page-size .ag-wrapper {
  min-width: calc(var(--ag-grid-size) * 10);
}

.ag-paging-button {
  cursor: pointer;
}

.ag-paging-button.ag-disabled {
  cursor: default;
  color: var(--ag-disabled-foreground-color);
}

.ag-paging-button:focus-visible {
  outline: none;
}
.ag-paging-button:focus-visible::after {
  content: "";
  position: absolute;
  background-color: transparent;
  pointer-events: none;
  top: 0px;
  left: 0px;
  display: block;
  width: calc(100% - 0px);
  height: calc(100% - 0px);
  border: 1px solid;
  border-color: var(--ag-input-focus-border-color);
}

.ag-paging-button,
.ag-paging-description {
  margin: 0 var(--ag-grid-size);
}

.ag-status-bar {
  border-top: var(--ag-borders) var(--ag-border-color);
  color: var(--ag-disabled-foreground-color);
  padding-right: calc(var(--ag-grid-size) * 4);
  padding-left: calc(var(--ag-grid-size) * 4);
  line-height: 1.5;
}

.ag-status-name-value-value {
  color: var(--ag-foreground-color);
}

.ag-status-bar-center {
  text-align: center;
}

.ag-status-name-value {
  margin-left: var(--ag-grid-size);
  margin-right: var(--ag-grid-size);
  padding-top: calc(var(--ag-grid-size) * 2);
  padding-bottom: calc(var(--ag-grid-size) * 2);
}

.ag-column-drop-cell {
  background: var(--ag-chip-background-color);
  border-radius: calc(var(--ag-grid-size) * 4);
  height: calc(var(--ag-grid-size) * 4);
  padding: 0 calc(var(--ag-grid-size) * 0.5);
  border: 1px solid var(--ag-chip-border-color);
}

.ag-column-drop-cell:focus-visible {
  outline: none;
}
.ag-column-drop-cell:focus-visible::after {
  content: "";
  position: absolute;
  background-color: transparent;
  pointer-events: none;
  top: 2px;
  left: 2px;
  display: block;
  width: calc(100% - 4px);
  height: calc(100% - 4px);
  border: 1px solid;
  border-color: var(--ag-input-focus-border-color);
}

.ag-column-drop-cell-text {
  margin: 0 var(--ag-grid-size);
}

.ag-column-drop-cell-button {
  min-width: calc(var(--ag-grid-size) * 4);
  margin: 0 calc(var(--ag-grid-size) * 0.5);
  color: var(--ag-secondary-foreground-color);
}

.ag-column-drop-cell-drag-handle {
  margin-left: calc(var(--ag-grid-size) * 2);
}

.ag-column-drop-cell-ghost {
  opacity: 0.5;
}

.ag-column-drop-horizontal {
  background-color: var(--ag-header-background-color);
  color: var(--ag-secondary-foreground-color);
  height: var(--ag-header-height);
  border-bottom: var(--ag-borders) var(--ag-border-color);
}
.ag-ltr .ag-column-drop-horizontal {
  padding-left: var(--ag-cell-horizontal-padding);
}
.ag-rtl .ag-column-drop-horizontal {
  padding-right: var(--ag-cell-horizontal-padding);
}

.ag-ltr .ag-column-drop-horizontal-half-width:not(:last-child) {
  border-right: var(--ag-borders) var(--ag-border-color);
}
.ag-rtl .ag-column-drop-horizontal-half-width:not(:last-child) {
  border-left: var(--ag-borders) var(--ag-border-color);
}

.ag-column-drop-horizontal-cell-separator {
  margin: 0 var(--ag-grid-size);
  color: var(--ag-secondary-foreground-color);
}

.ag-column-drop-horizontal-empty-message {
  color: var(--ag-disabled-foreground-color);
}

.ag-ltr .ag-column-drop-horizontal-icon {
  margin-right: var(--ag-cell-horizontal-padding);
}
.ag-rtl .ag-column-drop-horizontal-icon {
  margin-left: var(--ag-cell-horizontal-padding);
}

.ag-column-drop-vertical-list {
  padding-bottom: var(--ag-grid-size);
  padding-right: var(--ag-grid-size);
  padding-left: var(--ag-grid-size);
}

.ag-column-drop-vertical-cell {
  margin-top: var(--ag-grid-size);
}

.ag-column-drop-vertical {
  min-height: 50px;
  border-bottom: var(--ag-borders-secondary) var(--ag-secondary-border-color);
}
.ag-column-drop-vertical.ag-last-column-drop {
  border-bottom: none;
}

.ag-column-drop-vertical-icon {
  margin-left: var(--ag-grid-size);
  margin-right: var(--ag-grid-size);
}

.ag-column-drop-vertical-empty-message {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  overflow: hidden;
  color: var(--ag-disabled-foreground-color);
  margin-top: var(--ag-grid-size);
}

.ag-select-agg-func-popup {
  border: var(--ag-borders) var(--ag-border-color);
  background: var(--ag-background-color);
  border-radius: var(--ag-card-radius);
  box-shadow: var(--ag-card-shadow);
  padding: var(--ag-grid-size);
  background: var(--ag-background-color);
  height: calc(var(--ag-grid-size) * 5 * 3.5);
  padding: 0;
}

.ag-select-agg-func-virtual-list-item {
  cursor: default;
}
.ag-ltr .ag-select-agg-func-virtual-list-item {
  padding-left: calc(var(--ag-grid-size) * 2);
}
.ag-rtl .ag-select-agg-func-virtual-list-item {
  padding-right: calc(var(--ag-grid-size) * 2);
}
.ag-select-agg-func-virtual-list-item:hover {
  background-color: var(--ag-selected-row-background-color);
}

.ag-select-agg-func-virtual-list-item:focus-visible {
  outline: none;
}
.ag-select-agg-func-virtual-list-item:focus-visible::after {
  content: "";
  position: absolute;
  background-color: transparent;
  pointer-events: none;
  top: 1px;
  left: 1px;
  display: block;
  width: calc(100% - 2px);
  height: calc(100% - 2px);
  border: 1px solid;
  border-color: var(--ag-input-focus-border-color);
}

.ag-sort-indicator-container {
  display: flex;
}

.ag-ltr .ag-sort-indicator-icon {
  padding-left: var(--ag-grid-size);
}
.ag-rtl .ag-sort-indicator-icon {
  padding-right: var(--ag-grid-size);
}

.ag-chart {
  position: relative;
  display: flex;
  width: 100%;
  height: 100%;
}

.ag-chart-components-wrapper {
  position: relative;
  display: flex;
  flex: 1 1 auto;
}

.ag-chart-canvas-wrapper {
  position: relative;
  flex: 1 1 auto;
}

.ag-chart-menu {
  position: absolute;
  top: 16px;
  display: flex;
  flex-direction: column;
}
.ag-ltr .ag-chart-menu {
  right: 20px;
}
.ag-rtl .ag-chart-menu {
  left: 20px;
}

.ag-chart-docked-container {
  position: relative;
  min-width: var(--ag-chart-menu-panel-width);
}

.ag-chart-menu-hidden ~ .ag-chart-docked-container {
  display: none;
}

.ag-chart-tabbed-menu {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.ag-chart-tabbed-menu-header {
  flex: none;
  -moz-user-select: none;
  -webkit-user-select: none;
  -ms-user-select: none;
  user-select: none;
  cursor: default;
}

.ag-chart-tabbed-menu-body {
  display: flex;
  flex: 1 1 auto;
  align-items: stretch;
  overflow: hidden;
}

.ag-chart-tab {
  width: 100%;
  overflow: hidden;
  overflow-y: auto;
}

.ag-chart-settings {
  overflow-x: hidden;
}

.ag-chart-settings-wrapper {
  position: relative;
  flex-direction: column;
  width: 100%;
  height: 100%;
  display: flex;
  overflow: hidden;
}

.ag-chart-settings-nav-bar {
  display: flex;
  align-items: center;
  width: 100%;
  height: 30px;
  padding: 0 10px;
  -moz-user-select: none;
  -webkit-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

.ag-chart-settings-card-selector {
  display: flex;
  align-items: center;
  justify-content: space-around;
  flex: 1 1 auto;
  height: 100%;
  padding: 0 10px;
}

.ag-chart-settings-card-item {
  cursor: pointer;
  width: 10px;
  height: 10px;
  background-color: #000;
  position: relative;
}
.ag-chart-settings-card-item.ag-not-selected {
  opacity: 0.2;
}
.ag-chart-settings-card-item::before {
  content: " ";
  display: block;
  position: absolute;
  background-color: transparent;
  left: 50%;
  top: 50%;
  margin-left: -10px;
  margin-top: -10px;
  width: 20px;
  height: 20px;
}

.ag-chart-settings-prev,
.ag-chart-settings-next {
  position: relative;
  flex: none;
}
.ag-chart-settings-prev:focus-within,
.ag-chart-settings-next:focus-within {
  box-shadow: var(--ag-input-focus-box-shadow);
  border-radius: 1px;
}

.ag-chart-settings-prev-button,
.ag-chart-settings-next-button {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
  opacity: 0;
}

.ag-chart-settings-mini-charts-container {
  position: relative;
  flex: 1 1 auto;
  overflow-x: hidden;
  overflow-y: auto;
}

.ag-chart-settings-mini-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  display: flex;
  flex-direction: column;
  width: 100%;
  min-height: 100%;
  overflow: hidden;
}
.ag-chart-settings-mini-wrapper.ag-animating {
  transition: left 0.3s;
  transition-timing-function: ease-in-out;
}

.ag-chart-mini-thumbnail {
  cursor: pointer;
}

.ag-chart-mini-thumbnail-canvas {
  display: block;
}

.ag-chart-data-wrapper,
.ag-chart-format-wrapper,
.ag-chart-advanced-settings-wrapper {
  display: flex;
  flex-direction: column;
  position: relative;
  -moz-user-select: none;
  -webkit-user-select: none;
  -ms-user-select: none;
  user-select: none;
  padding-bottom: 16px;
}

.ag-chart-data-wrapper,
.ag-chart-advanced-settings-wrapper {
  height: 100%;
  overflow-y: auto;
}

.ag-chart-advanced-settings {
  background-color: var(--ag-control-panel-background-color);
}

.ag-chart-advanced-settings-wrapper,
.ag-chart-advanced-settings {
  width: 100%;
}

.ag-chart-advanced-settings-wrapper {
  padding-bottom: 0;
}

.ag-chart-data-section,
.ag-chart-format-section,
.ag-chart-advanced-settings-section {
  display: flex;
  margin: 0;
}

.ag-chart-advanced-settings-section {
  padding-top: var(--ag-grid-size);
  padding-bottom: var(--ag-grid-size);
}
.ag-chart-advanced-settings-section:not(:last-child) {
  border-bottom: 1px solid var(--ag-secondary-border-color);
}

.ag-chart-empty-text {
  display: flex;
  top: 0;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
  background-color: var(--ag-background-color);
}

.ag-chart .ag-chart-menu {
  display: none;
}

.ag-chart-menu-hidden:hover .ag-chart-menu {
  display: block;
}

.ag-chart .ag-chart-menu-wrapper .ag-chart-menu {
  display: flex;
  flex-direction: row;
  top: 8px;
  gap: 20px;
  width: auto;
}
.ag-ltr .ag-chart .ag-chart-menu-wrapper .ag-chart-menu {
  right: calc(var(--ag-cell-horizontal-padding) + var(--ag-grid-size) - 4px);
  justify-content: right;
}
.ag-rtl .ag-chart .ag-chart-menu-wrapper .ag-chart-menu {
  left: calc(var(--ag-cell-horizontal-padding) + var(--ag-grid-size) - 4px);
  justify-content: left;
}

.ag-charts-font-size-color {
  display: flex;
  align-self: stretch;
  justify-content: space-between;
}

.ag-charts-data-group-item {
  position: relative;
}

.ag-charts-data-group-item:not(:last-child) {
  margin-bottom: var(--ag-grid-size);
}

.ag-chart-menu {
  border-radius: var(--ag-card-radius);
  background: var(--ag-background-color);
}

.ag-chart-menu-icon {
  opacity: 0.5;
  margin: 2px 0;
  cursor: pointer;
  border-radius: var(--ag-card-radius);
  color: var(--ag-secondary-foreground-color);
}
.ag-chart-menu-icon:hover {
  opacity: 1;
}

.ag-chart-menu-toolbar-button {
  border: 0;
  background-color: unset;
  padding: 0 2px;
  border-radius: 1px;
}

.ag-chart-mini-thumbnail {
  border: 1px solid var(--ag-secondary-border-color);
  border-radius: 5px;
}
.ag-chart-mini-thumbnail.ag-selected {
  border-color: var(--ag-minichart-selected-chart-color);
  border-width: 2px;
}
.ag-chart-mini-thumbnail:focus-visible {
  outline: none;
  border-color: var(--ag-minichart-selected-chart-color);
  box-shadow: var(--ag-input-focus-box-shadow);
}

.ag-chart-settings-card-item {
  background: var(--ag-foreground-color);
  width: 8px;
  height: 8px;
  border-radius: 4px;
}
.ag-chart-settings-card-item.ag-selected {
  background-color: var(--ag-minichart-selected-page-color);
}

.ag-chart-data-column-drag-handle {
  margin-left: var(--ag-grid-size);
}

.ag-charts-settings-group-title-bar,
.ag-charts-data-group-title-bar,
.ag-charts-format-top-level-group-title-bar {
  border-top: var(--ag-borders-secondary) var(--ag-secondary-border-color);
  position: relative;
}

.ag-charts-advanced-settings-top-level-group-title-bar {
  position: relative;
  background-color: unset;
}

.ag-charts-data-group-title-bar:focus-visible {
  outline: none;
}
.ag-charts-data-group-title-bar:focus-visible::after {
  content: "";
  position: absolute;
  background-color: transparent;
  pointer-events: none;
  top: 4px;
  left: 4px;
  display: block;
  width: calc(100% - 8px);
  height: calc(100% - 8px);
  border: 1px solid;
  border-color: var(--ag-input-focus-border-color);
}

.ag-charts-format-top-level-group-title-bar:focus-visible {
  outline: none;
}
.ag-charts-format-top-level-group-title-bar:focus-visible::after {
  content: "";
  position: absolute;
  background-color: transparent;
  pointer-events: none;
  top: 4px;
  left: 4px;
  display: block;
  width: calc(100% - 8px);
  height: calc(100% - 8px);
  border: 1px solid;
  border-color: var(--ag-input-focus-border-color);
}

.ag-charts-data-group-title-bar .ag-charts-data-group-title,
.ag-charts-format-top-level-group-title-bar .ag-charts-format-top-level-group-title {
  cursor: pointer;
}

.ag-charts-data-group-container {
  padding: calc(var(--ag-widget-container-vertical-padding) * 0.5) var(--ag-widget-container-horizontal-padding);
}
.ag-charts-data-group-container .ag-charts-data-group-item:not(.ag-charts-format-sub-level-group):not(.ag-pill-select):not(.ag-select) {
  height: var(--ag-list-item-height);
}
.ag-charts-data-group-container .ag-charts-data-group-item.ag-picker-field {
  margin-top: var(--ag-grid-size);
}
.ag-charts-data-group-container .ag-list-item-hovered::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 1px;
}
.ag-charts-data-group-container .ag-item-highlight-top::after {
  top: 0;
}
.ag-charts-data-group-container .ag-item-highlight-bottom::after {
  bottom: 0;
}

.ag-charts-format-top-level-group-container,
.ag-charts-advanced-settings-top-level-group-container {
  padding: var(--ag-grid-size);
}
.ag-ltr .ag-charts-format-top-level-group-container,
.ag-ltr .ag-charts-advanced-settings-top-level-group-container {
  margin-left: calc(var(--ag-grid-size) * 2);
}
.ag-rtl .ag-charts-format-top-level-group-container,
.ag-rtl .ag-charts-advanced-settings-top-level-group-container {
  margin-right: calc(var(--ag-grid-size) * 2);
}

.ag-charts-format-top-level-group-item,
.ag-charts-advanced-settings-top-level-group-item {
  margin: var(--ag-grid-size) 0;
}

.ag-charts-format-sub-level-group-container {
  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));
}
.ag-charts-format-sub-level-group-container > * {
  margin-bottom: var(--ag-widget-vertical-spacing);
}

.ag-charts-format-sub-level-no-header-group-container > * {
  margin-bottom: var(--ag-widget-vertical-spacing);
}

.ag-charts-format-sub-level-group-container .ag-charts-format-sub-level-group-item.ag-font-panel-no-header {
  margin: 0;
}

.ag-charts-settings-group-container {
  padding: var(--ag-grid-size);
  row-gap: 8px;
  display: grid;
  grid-template-columns: 60px 1fr 60px 1fr 60px;
}
.ag-charts-settings-group-container .ag-chart-mini-thumbnail:nth-child(3n+1) {
  grid-column: 1;
}
.ag-charts-settings-group-container .ag-chart-mini-thumbnail:nth-child(3n+2) {
  grid-column: 3;
}
.ag-charts-settings-group-container .ag-chart-mini-thumbnail:nth-child(3n+3) {
  grid-column: 5;
}

.ag-chart-menu-panel {
  background-color: var(--ag-control-panel-background-color);
}
.ag-ltr .ag-chart-menu-panel {
  border-left: solid 1px var(--ag-border-color);
}
.ag-rtl .ag-chart-menu-panel {
  border-right: solid 1px var(--ag-border-color);
}

.ag-charts-theme-default {
  --ag-charts-align: none !important;
  --ag-charts-justify: none !important;
}

.ag-date-time-list-page-title-bar {
  display: flex;
}

.ag-date-time-list-page-title {
  flex-grow: 1;
  text-align: center;
}

.ag-date-time-list-page-column-labels-row,
.ag-date-time-list-page-entries-row {
  display: flex;
}

.ag-date-time-list-page-column-label,
.ag-date-time-list-page-entry {
  flex-basis: 0;
  flex-grow: 1;
}

.ag-date-time-list-page-entry {
  cursor: pointer;
  text-align: center;
}

.ag-date-time-list-page-column-label {
  text-align: center;
}

.ag-advanced-filter-header {
  position: relative;
  display: flex;
  align-items: center;
  padding-left: var(--ag-cell-horizontal-padding);
  padding-right: var(--ag-cell-horizontal-padding);
}

.ag-advanced-filter {
  display: flex;
  align-items: center;
  width: 100%;
}

.ag-advanced-filter-apply-button,
.ag-advanced-filter-builder-button {
  line-height: normal;
  white-space: nowrap;
}
.ag-ltr .ag-advanced-filter-apply-button,
.ag-ltr .ag-advanced-filter-builder-button {
  margin-left: calc(var(--ag-grid-size) * 2);
}
.ag-rtl .ag-advanced-filter-apply-button,
.ag-rtl .ag-advanced-filter-builder-button {
  margin-right: calc(var(--ag-grid-size) * 2);
}

.ag-advanced-filter-builder-button {
  display: flex;
  align-items: center;
  border: 0;
  background-color: unset;
  color: var(--ag-foreground-color);
  font-size: var(--ag-font-size);
  font-weight: 600;
}
.ag-advanced-filter-builder-button:hover:not(:disabled) {
  background-color: var(--ag-row-hover-color);
}
.ag-advanced-filter-builder-button:not(:disabled) {
  cursor: pointer;
}

.ag-advanced-filter-builder-button-label {
  margin-left: var(--ag-grid-size);
}

.ag-advanced-filter-builder {
  -moz-user-select: none;
  -webkit-user-select: none;
  -ms-user-select: none;
  user-select: none;
  width: 100%;
  background-color: var(--ag-control-panel-background-color);
  display: flex;
  flex-direction: column;
}

.ag-advanced-filter-builder-list {
  flex: 1;
  overflow: auto;
}
.ag-advanced-filter-builder-list .ag-list-item-hovered::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 1px;
}
.ag-advanced-filter-builder-list .ag-item-highlight-top::after {
  top: 0;
}
.ag-advanced-filter-builder-list .ag-item-highlight-bottom::after {
  bottom: 0;
}

.ag-advanced-filter-builder-button-panel {
  display: flex;
  justify-content: flex-end;
  padding: var(--ag-widget-container-vertical-padding) var(--ag-widget-container-horizontal-padding);
  border-top: var(--ag-borders-secondary) var(--ag-secondary-border-color);
}

.ag-advanced-filter-builder .ag-advanced-filter-builder-button-panel .ag-advanced-filter-builder-apply-button,
.ag-advanced-filter-builder .ag-advanced-filter-builder-button-panel .ag-advanced-filter-builder-cancel-button {
  margin-left: calc(var(--ag-grid-size) * 2);
}

.ag-advanced-filter-builder-item-wrapper {
  display: flex;
  flex: 1 1 auto;
  align-items: center;
  justify-content: space-between;
  overflow: hidden;
  padding-left: calc(var(--ag-icon-size) / 2);
  padding-right: var(--ag-icon-size);
}

.ag-virtual-list-viewport .ag-advanced-filter-builder-item-wrapper .ag-tab-guard {
  position: absolute;
}

.ag-advanced-filter-builder-item-tree-lines > * {
  width: var(--ag-advanced-filter-builder-indent-size);
}

.ag-advanced-filter-builder-item-tree-lines .ag-advanced-filter-builder-item-tree-line-root {
  width: var(--ag-icon-size);
}
.ag-advanced-filter-builder-item-tree-lines .ag-advanced-filter-builder-item-tree-line-root::before {
  top: 50%;
  height: 50%;
}

.ag-advanced-filter-builder-item-tree-line-horizontal,
.ag-advanced-filter-builder-item-tree-line-vertical,
.ag-advanced-filter-builder-item-tree-line-vertical-top,
.ag-advanced-filter-builder-item-tree-line-vertical-bottom {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
}
.ag-advanced-filter-builder-item-tree-line-horizontal::before, .ag-advanced-filter-builder-item-tree-line-horizontal::after,
.ag-advanced-filter-builder-item-tree-line-vertical::before,
.ag-advanced-filter-builder-item-tree-line-vertical::after,
.ag-advanced-filter-builder-item-tree-line-vertical-top::before,
.ag-advanced-filter-builder-item-tree-line-vertical-top::after,
.ag-advanced-filter-builder-item-tree-line-vertical-bottom::before,
.ag-advanced-filter-builder-item-tree-line-vertical-bottom::after {
  content: "";
  position: absolute;
  height: 100%;
}

.ag-advanced-filter-builder-item-tree-line-horizontal::after {
  height: 50%;
  width: calc(var(--ag-advanced-filter-builder-indent-size) - var(--ag-icon-size));
  top: 0;
  left: calc(var(--ag-icon-size) / 2);
  border-bottom: 1px solid;
  border-color: var(--ag-border-color);
}

.ag-advanced-filter-builder-item-tree-line-vertical::before {
  width: calc(var(--ag-advanced-filter-builder-indent-size) - var(--ag-icon-size) / 2);
  top: 0;
  left: calc(var(--ag-icon-size) / 2);
  border-left: 1px solid;
  border-color: var(--ag-border-color);
}

.ag-advanced-filter-builder-item-tree-line-vertical-top::before {
  height: 50%;
  width: calc(var(--ag-advanced-filter-builder-indent-size) - var(--ag-icon-size) / 2);
  top: 0;
  left: calc(var(--ag-icon-size) / 2);
  border-left: 1px solid;
  border-color: var(--ag-border-color);
}

.ag-advanced-filter-builder-item-tree-line-vertical-bottom::before {
  height: calc((100% - 1.5 * var(--ag-icon-size)) / 2);
  width: calc(var(--ag-icon-size) / 2);
  top: calc((100% + 1.5 * var(--ag-icon-size)) / 2);
  left: calc(var(--ag-icon-size) / 2);
  border-left: 1px solid;
  border-color: var(--ag-border-color);
}

.ag-advanced-filter-builder-item-condition {
  padding-top: var(--ag-grid-size);
  padding-bottom: var(--ag-grid-size);
}

.ag-advanced-filter-builder-item,
.ag-advanced-filter-builder-item-condition,
.ag-advanced-filter-builder-pill-wrapper,
.ag-advanced-filter-builder-pill,
.ag-advanced-filter-builder-item-buttons,
.ag-advanced-filter-builder-item-tree-lines {
  display: flex;
  align-items: center;
  height: 100%;
}

.ag-advanced-filter-builder-pill-wrapper {
  margin: 0px var(--ag-grid-size);
}

.ag-advanced-filter-builder-pill {
  position: relative;
  border-radius: var(--ag-border-radius);
  padding: var(--ag-grid-size) calc(var(--ag-grid-size) * 2);
  min-height: calc(100% - var(--ag-grid-size) * 3);
  min-width: calc(var(--ag-grid-size) * 2);
}
.ag-advanced-filter-builder-pill .ag-picker-field-display {
  margin-right: var(--ag-grid-size);
}
.ag-advanced-filter-builder-pill .ag-advanced-filter-builder-value-number {
  font-family: monospace;
  font-weight: 700;
}
.ag-advanced-filter-builder-pill .ag-advanced-filter-builder-value-empty {
  color: var(--ag-disabled-foreground-color);
}

.ag-advanced-filter-builder-pill:focus-visible {
  outline: none;
}
.ag-advanced-filter-builder-pill:focus-visible::after {
  content: "";
  position: absolute;
  background-color: transparent;
  pointer-events: none;
  top: -4px;
  left: -4px;
  display: block;
  width: calc(100% - -8px);
  height: calc(100% - -8px);
  border: 1px solid;
  border-color: var(--ag-input-focus-border-color);
}

.ag-advanced-filter-builder-item-button:focus-visible {
  outline: none;
}
.ag-advanced-filter-builder-item-button:focus-visible::after {
  content: "";
  position: absolute;
  background-color: transparent;
  pointer-events: none;
  top: -4px;
  left: -4px;
  display: block;
  width: calc(100% - -8px);
  height: calc(100% - -8px);
  border: 1px solid;
  border-color: var(--ag-input-focus-border-color);
}

.ag-advanced-filter-builder-pill-display {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 500;
}

.ag-advanced-filter-builder-join-pill {
  color: var(--ag-foreground-color);
  background-color: var(--ag-advanced-filter-join-pill-color);
  cursor: pointer;
}

.ag-advanced-filter-builder-column-pill {
  color: var(--ag-foreground-color);
  background-color: var(--ag-advanced-filter-column-pill-color);
  cursor: pointer;
}

.ag-advanced-filter-builder-option-pill {
  color: var(--ag-foreground-color);
  background-color: var(--ag-advanced-filter-option-pill-color);
  cursor: pointer;
}

.ag-advanced-filter-builder-value-pill {
  color: var(--ag-foreground-color);
  background-color: var(--ag-advanced-filter-value-pill-color);
  cursor: text;
  max-width: 140px;
}
.ag-advanced-filter-builder-value-pill .ag-advanced-filter-builder-pill-display {
  display: block;
}

.ag-advanced-filter-builder-item-buttons > * {
  margin: 0 calc(var(--ag-grid-size) * 0.5);
}

.ag-advanced-filter-builder-item-button {
  position: relative;
  cursor: pointer;
  color: var(--ag-secondary-foreground-color);
  opacity: 50%;
}

.ag-advanced-filter-builder-item-button-disabled {
  color: var(--ag-disabled-foreground-color);
  cursor: default;
}

.ag-advanced-filter-builder-virtual-list-container {
  top: var(--ag-grid-size);
}

.ag-advanced-filter-builder-virtual-list-item {
  display: flex;
  cursor: default;
  height: var(--ag-list-item-height);
}
.ag-advanced-filter-builder-virtual-list-item:hover {
  background-color: var(--ag-row-hover-color);
}
.ag-advanced-filter-builder-virtual-list-item:hover .ag-advanced-filter-builder-item-button {
  opacity: 100%;
}

.ag-advanced-filter-builder-virtual-list-item-highlight .ag-advanced-filter-builder-item-button:focus-visible,
.ag-advanced-filter-builder-validation .ag-advanced-filter-builder-invalid {
  opacity: 100%;
}

.ag-advanced-filter-builder-invalid {
  margin: 0 var(--ag-grid-size);
  color: var(--ag-invalid-color);
  cursor: default;
}

.ag-input-field-input {
  width: 100%;
  min-width: 0;
}

.ag-checkbox-input-wrapper {
  font-family: var(--ag-icon-font-family);
  font-weight: var(--ag-icon-font-weight);
  color: var(--ag-icon-font-color);
  font-size: var(--ag-icon-size);
  line-height: var(--ag-icon-size);
  font-style: normal;
  font-variant: normal;
  text-transform: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  width: var(--ag-icon-size);
  height: var(--ag-icon-size);
  background-color: var(--ag-checkbox-background-color);
  border-radius: var(--ag-checkbox-border-radius);
  display: inline-block;
  vertical-align: middle;
  flex: none;
}
.ag-checkbox-input-wrapper input,
.ag-checkbox-input-wrapper input {
  -webkit-appearance: none;
  opacity: 0;
  width: 100%;
  height: 100%;
}
.ag-checkbox-input-wrapper:focus-within, .ag-checkbox-input-wrapper:active {
  outline: none;
  box-shadow: var(--ag-input-focus-box-shadow);
}
.ag-checkbox-input-wrapper.ag-disabled {
  opacity: 0.5;
}
.ag-checkbox-input-wrapper::after {
  content: var(--ag-icon-font-code-checkbox-unchecked, "\\f108");
  font-family: inherit;
  color: var(--ag-checkbox-unchecked-color);
  display: var(--ag-icon-font-display-checkbox-unchecked, var(--ag-icon-font-display));
  position: absolute;
  top: 0;
  left: 0;
  pointer-events: none;
}
.ag-checkbox-input-wrapper.ag-checked::after {
  content: var(--ag-icon-font-code-checkbox-checked, "\\f106");
  color: var(--ag-checkbox-checked-color);
  display: var(--ag-icon-font-display-checkbox-checked, var(--ag-icon-font-display));
  position: absolute;
  top: 0;
  left: 0;
  pointer-events: none;
}
.ag-checkbox-input-wrapper.ag-indeterminate::after {
  content: var(--ag-icon-font-code-checkbox-indeterminate, "\\f107");
  color: var(--ag-checkbox-indeterminate-color);
  display: var(--ag-icon-font-display-checkbox-indeterminate, var(--ag-icon-font-display));
  position: absolute;
  top: 0;
  left: 0;
  pointer-events: none;
}
.ag-checkbox-input-wrapper::before {
  content: "";
  background: transparent center/contain no-repeat;
  position: absolute;
  inset: 0;
  background-image: var(--ag-icon-image-checkbox-unchecked, var(--ag-icon-image));
  display: var(--ag-icon-image-display-checkbox-unchecked, var(--ag-icon-image-display));
  opacity: var(--ag-icon-image-opacity-checkbox-unchecked, var(--ag-icon-image-opacity, 0.9));
}
.ag-checkbox-input-wrapper.ag-checked::before {
  background-image: var(--ag-icon-image-checkbox-checked, var(--ag-icon-image));
  display: var(--ag-icon-image-display-checkbox-checked, var(--ag-icon-image-display));
  opacity: var(--ag-icon-image-opacity-checkbox-checked, var(--ag-icon-image-opacity, 0.9));
}
.ag-checkbox-input-wrapper.ag-indeterminate::before {
  background-image: var(--ag-icon-image-checkbox-indeterminate, var(--ag-icon-image));
  display: var(--ag-icon-image-display-checkbox-indeterminate, var(--ag-icon-image-display));
  opacity: var(--ag-icon-image-opacity-checkbox-indeterminate, var(--ag-icon-image-opacity, 0.9));
}

.ag-toggle-button-input-wrapper {
  box-sizing: border-box;
  width: var(--ag-toggle-button-width);
  min-width: var(--ag-toggle-button-width);
  max-width: var(--ag-toggle-button-width);
  height: var(--ag-toggle-button-height);
  background-color: var(--ag-toggle-button-off-background-color);
  border-radius: calc(var(--ag-toggle-button-height) * 0.5);
  position: relative;
  flex: none;
  border: var(--ag-toggle-button-border-width) solid;
  border-color: var(--ag-toggle-button-off-border-color);
}
.ag-toggle-button-input-wrapper input {
  opacity: 0;
  height: 100%;
  width: 100%;
}
.ag-toggle-button-input-wrapper:focus-within {
  outline: none;
  box-shadow: var(--ag-input-focus-box-shadow);
}
.ag-toggle-button-input-wrapper.ag-disabled {
  opacity: 0.5;
}
.ag-toggle-button-input-wrapper.ag-checked {
  background-color: var(--ag-toggle-button-on-background-color);
  border-color: var(--ag-toggle-button-on-border-color);
}
.ag-toggle-button-input-wrapper::before {
  content: " ";
  position: absolute;
  top: calc(0px - var(--ag-toggle-button-border-width));
  left: calc(0px - var(--ag-toggle-button-border-width));
  display: block;
  box-sizing: border-box;
  height: var(--ag-toggle-button-height);
  width: var(--ag-toggle-button-height);
  background-color: var(--ag-toggle-button-switch-background-color);
  border-radius: 100%;
  transition: left 100ms;
  border: var(--ag-toggle-button-border-width) solid;
  border-color: var(--ag-toggle-button-switch-border-color);
}
.ag-toggle-button-input-wrapper.ag-checked::before {
  left: calc(100% - var(--ag-toggle-button-height) + var(--ag-toggle-button-border-width));
  border-color: var(--ag-toggle-button-on-border-color);
}

.ag-radio-button-input-wrapper {
  font-family: var(--ag-icon-font-family);
  font-weight: var(--ag-icon-font-weight);
  color: var(--ag-icon-font-color);
  font-size: var(--ag-icon-size);
  line-height: var(--ag-icon-size);
  font-style: normal;
  font-variant: normal;
  text-transform: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  width: var(--ag-icon-size);
  height: var(--ag-icon-size);
  background-color: var(--ag-checkbox-background-color);
  border-radius: var(--ag-checkbox-border-radius);
  display: inline-block;
  vertical-align: middle;
  flex: none;
  border-radius: var(--ag-icon-size);
}
.ag-radio-button-input-wrapper input,
.ag-radio-button-input-wrapper input {
  -webkit-appearance: none;
  opacity: 0;
  width: 100%;
  height: 100%;
}
.ag-radio-button-input-wrapper:focus-within, .ag-radio-button-input-wrapper:active {
  outline: none;
  box-shadow: var(--ag-input-focus-box-shadow);
}
.ag-radio-button-input-wrapper.ag-disabled {
  opacity: 0.5;
}
.ag-radio-button-input-wrapper::after {
  content: var(--ag-icon-font-code-radio-button-off, "\\f127");
  color: var(--ag-checkbox-unchecked-color);
  display: var(--ag-icon-font-display-radio-button-off, var(--ag-icon-font-display));
  position: absolute;
  top: 0;
  left: 0;
  pointer-events: none;
}
.ag-radio-button-input-wrapper.ag-checked::after {
  content: var(--ag-icon-font-code-radio-button-on, "\\f128");
  color: var(--ag-checkbox-checked-color);
  display: var(--ag-icon-font-display-radio-button-on, var(--ag-icon-font-display));
  position: absolute;
  top: 0;
  left: 0;
  pointer-events: none;
}
.ag-radio-button-input-wrapper::before {
  content: "";
  background: transparent center/contain no-repeat;
  position: absolute;
  inset: 0;
  background-image: var(--ag-icon-image-radio-button-off, var(--ag-icon-image));
  display: var(--ag-icon-image-display-radio-button-off, var(--ag-icon-image-display));
  opacity: var(--ag-icon-image-opacity-radio-button-off, var(--ag-icon-image-opacity, 0.9));
}
.ag-radio-button-input-wrapper.ag-checked::before {
  background-image: var(--ag-icon-image-radio-button-on, var(--ag-icon-image));
  display: var(--ag-icon-image-display-radio-button-on, var(--ag-icon-image-display));
  opacity: var(--ag-icon-image-opacity-radio-button-on, var(--ag-icon-image-opacity, 0.9));
}

input[class^=ag-][type=range] {
  -webkit-appearance: none;
  width: 100%;
  height: 100%;
  background: none;
  overflow: visible;
}
input[class^=ag-][type=range]::-webkit-slider-runnable-track {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 3px;
  background-color: var(--ag-border-color);
  border-radius: var(--ag-border-radius);
  border-radius: var(--ag-checkbox-border-radius);
}
input[class^=ag-][type=range]::-moz-range-track {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 3px;
  background-color: var(--ag-border-color);
  border-radius: var(--ag-border-radius);
  border-radius: var(--ag-checkbox-border-radius);
}
input[class^=ag-][type=range]::-ms-track {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 3px;
  background-color: var(--ag-border-color);
  border-radius: var(--ag-border-radius);
  border-radius: var(--ag-checkbox-border-radius);
  color: transparent;
  width: calc(100% - 2px);
}
input[class^=ag-][type=range]::-webkit-slider-thumb {
  margin: 0;
  padding: 0;
  -webkit-appearance: none;
  width: var(--ag-icon-size);
  height: var(--ag-icon-size);
  background-color: var(--ag-background-color);
  border: 1px solid;
  border-color: var(--ag-checkbox-unchecked-color);
  border-radius: var(--ag-icon-size);
  transform: translateY(calc(var(--ag-icon-size) * -0.5 + 1.5px));
}
input[class^=ag-][type=range]::-ms-thumb {
  margin: 0;
  padding: 0;
  -webkit-appearance: none;
  width: var(--ag-icon-size);
  height: var(--ag-icon-size);
  background-color: var(--ag-background-color);
  border: 1px solid;
  border-color: var(--ag-checkbox-unchecked-color);
  border-radius: var(--ag-icon-size);
}
input[class^=ag-][type=range]::-moz-ag-range-thumb {
  margin: 0;
  padding: 0;
  -webkit-appearance: none;
  width: var(--ag-icon-size);
  height: var(--ag-icon-size);
  background-color: var(--ag-background-color);
  border: 1px solid;
  border-color: var(--ag-checkbox-unchecked-color);
  border-radius: var(--ag-icon-size);
}
input[class^=ag-][type=range]:focus {
  outline: none;
}
input[class^=ag-][type=range]:focus::-webkit-slider-thumb {
  box-shadow: var(--ag-input-focus-box-shadow);
  border-color: var(--ag-checkbox-checked-color);
}
input[class^=ag-][type=range]:focus::-ms-thumb {
  box-shadow: var(--ag-input-focus-box-shadow);
  border-color: var(--ag-checkbox-checked-color);
}
input[class^=ag-][type=range]:focus::-moz-ag-range-thumb {
  box-shadow: var(--ag-input-focus-box-shadow);
  border-color: var(--ag-checkbox-checked-color);
}
input[class^=ag-][type=range]:active::-webkit-slider-runnable-track {
  background-color: var(--ag-input-focus-border-color);
}
input[class^=ag-][type=range]:active::-moz-ag-range-track {
  background-color: var(--ag-input-focus-border-color);
}
input[class^=ag-][type=range]:active::-ms-track {
  background-color: var(--ag-input-focus-border-color);
}
input[class^=ag-][type=range]:disabled {
  opacity: 0.5;
}
`,""]),p.A=d},1229:function(x,p,M){"use strict";var A=M(6758),F=M.n(A),D=M(935),f=M.n(D),v=f()(F());v.push([x.id,`.ag-theme-alpine,
.ag-theme-alpine-dark,
.ag-theme-alpine-auto-dark {
  --ag-alpine-active-color: #2196f3;
  --ag-selected-row-background-color: rgba(33, 150, 243, 0.3);
  --ag-row-hover-color: rgba(33, 150, 243, 0.1);
  --ag-column-hover-color: rgba(33, 150, 243, 0.1);
  --ag-input-focus-border-color: rgba(33, 150, 243, 0.4);
  --ag-range-selection-background-color: rgba(33, 150, 243, 0.2);
  --ag-range-selection-background-color-2: rgba(33, 150, 243, 0.36);
  --ag-range-selection-background-color-3: rgba(33, 150, 243, 0.49);
  --ag-range-selection-background-color-4: rgba(33, 150, 243, 0.59);
  --ag-background-color: #fff;
  --ag-foreground-color: #181d1f;
  --ag-border-color: #babfc7;
  --ag-secondary-border-color: #dde2eb;
  --ag-header-background-color: #f8f8f8;
  --ag-tooltip-background-color: #f8f8f8;
  --ag-odd-row-background-color: #fcfcfc;
  --ag-control-panel-background-color: #f8f8f8;
  --ag-subheader-background-color: #fff;
  --ag-invalid-color: #e02525;
  --ag-checkbox-unchecked-color: #999;
  --ag-advanced-filter-join-pill-color: #f08e8d;
  --ag-advanced-filter-column-pill-color: #a6e194;
  --ag-advanced-filter-option-pill-color: #f3c08b;
  --ag-advanced-filter-value-pill-color: #85c0e4;
  --ag-checkbox-background-color: var(--ag-background-color);
  --ag-checkbox-checked-color: var(--ag-alpine-active-color);
  --ag-range-selection-border-color: var(--ag-alpine-active-color);
  --ag-secondary-foreground-color: var(--ag-foreground-color);
  --ag-input-border-color: var(--ag-border-color);
  --ag-input-border-color-invalid: var(--ag-invalid-color);
  --ag-input-focus-box-shadow: 0 0 2px 0.1rem var(--ag-input-focus-border-color);
  --ag-panel-background-color: var(--ag-header-background-color);
  --ag-menu-background-color: var(--ag-header-background-color);
  --ag-disabled-foreground-color: rgba(24, 29, 31, 0.5);
  --ag-chip-background-color: rgba(24, 29, 31, 0.07);
  --ag-input-disabled-border-color: rgba(186, 191, 199, 0.3);
  --ag-input-disabled-background-color: rgba(186, 191, 199, 0.15);
  --ag-borders: solid 1px;
  --ag-border-radius: 3px;
  --ag-borders-side-button: none;
  --ag-side-button-selected-background-color: transparent;
  --ag-header-column-resize-handle-display: block;
  --ag-header-column-resize-handle-width: 2px;
  --ag-header-column-resize-handle-height: 30%;
  --ag-grid-size: 6px;
  --ag-icon-size: 16px;
  --ag-row-height: calc(var(--ag-grid-size) * 7);
  --ag-header-height: calc(var(--ag-grid-size) * 8);
  --ag-list-item-height: calc(var(--ag-grid-size) * 4);
  --ag-column-select-indent-size: var(--ag-icon-size);
  --ag-set-filter-indent-size: var(--ag-icon-size);
  --ag-advanced-filter-builder-indent-size: calc(var(--ag-icon-size) + var(--ag-grid-size) * 2);
  --ag-cell-horizontal-padding: calc(var(--ag-grid-size) * 3);
  --ag-cell-widget-spacing: calc(var(--ag-grid-size) * 2);
  --ag-widget-container-vertical-padding: calc(var(--ag-grid-size) * 2);
  --ag-widget-container-horizontal-padding: calc(var(--ag-grid-size) * 2);
  --ag-widget-vertical-spacing: calc(var(--ag-grid-size) * 1.5);
  --ag-toggle-button-height: 18px;
  --ag-toggle-button-width: 28px;
  --ag-font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell,
      "Helvetica Neue", sans-serif;
  --ag-font-size: 13px;
  --ag-icon-font-family: agGridAlpine;
  --ag-selected-tab-underline-color: var(--ag-alpine-active-color);
  --ag-selected-tab-underline-width: 2px;
  --ag-selected-tab-underline-transition-speed: 0.3s;
  --ag-tab-min-width: 240px;
  --ag-card-shadow: 0 1px 4px 1px rgba(186, 191, 199, 0.4);
  --ag-popup-shadow: var(--ag-card-shadow);
  --ag-side-bar-panel-width: 250px;
}

.ag-theme-alpine-dark {
  --ag-background-color: #181d1f;
  --ag-foreground-color: #fff;
  --ag-border-color: #68686e;
  --ag-secondary-border-color: rgba(88, 86, 82, 0.5);
  --ag-modal-overlay-background-color: rgba(24, 29, 31, 0.66);
  --ag-header-background-color: #222628;
  --ag-tooltip-background-color: #222628;
  --ag-odd-row-background-color: #222628;
  --ag-control-panel-background-color: #222628;
  --ag-subheader-background-color: #000;
  --ag-input-disabled-background-color: #282c2f;
  --ag-input-focus-box-shadow: 0 0 2px 0.5px rgba(255, 255, 255, 0.5), 0 0 4px 3px var(--ag-input-focus-border-color);
  --ag-card-shadow: 0 1px 20px 1px black;
  --ag-disabled-foreground-color: rgba(255, 255, 255, 0.5);
  --ag-chip-background-color: rgba(255, 255, 255, 0.07);
  --ag-input-disabled-border-color: rgba(104, 104, 110, 0.3);
  --ag-input-disabled-background-color: rgba(104, 104, 110, 0.07);
  --ag-advanced-filter-join-pill-color: #7a3a37;
  --ag-advanced-filter-column-pill-color: #355f2d;
  --ag-advanced-filter-option-pill-color: #5a3168;
  --ag-advanced-filter-value-pill-color: #374c86;
  --ag-row-loading-skeleton-effect-color: rgba(202, 203, 204, 0.4);
  color-scheme: dark;
}

@media (prefers-color-scheme: dark) {
  .ag-theme-alpine-auto-dark {
    --ag-background-color: #181d1f;
    --ag-foreground-color: #fff;
    --ag-border-color: #68686e;
    --ag-secondary-border-color: rgba(88, 86, 82, 0.5);
    --ag-modal-overlay-background-color: rgba(24, 29, 31, 0.66);
    --ag-header-background-color: #222628;
    --ag-tooltip-background-color: #222628;
    --ag-odd-row-background-color: #222628;
    --ag-control-panel-background-color: #222628;
    --ag-subheader-background-color: #000;
    --ag-input-disabled-background-color: #282c2f;
    --ag-input-focus-box-shadow: 0 0 2px 0.5px rgba(255, 255, 255, 0.5), 0 0 4px 3px var(--ag-input-focus-border-color);
    --ag-card-shadow: 0 1px 20px 1px black;
    --ag-disabled-foreground-color: rgba(255, 255, 255, 0.5);
    --ag-chip-background-color: rgba(255, 255, 255, 0.07);
    --ag-input-disabled-border-color: rgba(104, 104, 110, 0.3);
    --ag-input-disabled-background-color: rgba(104, 104, 110, 0.07);
    --ag-advanced-filter-join-pill-color: #7a3a37;
    --ag-advanced-filter-column-pill-color: #355f2d;
    --ag-advanced-filter-option-pill-color: #5a3168;
    --ag-advanced-filter-value-pill-color: #374c86;
    --ag-row-loading-skeleton-effect-color: rgba(202, 203, 204, 0.4);
    color-scheme: dark;
  }
}
.ag-theme-alpine .ag-filter-toolpanel-header,
.ag-theme-alpine .ag-filter-toolpanel-search,
.ag-theme-alpine .ag-status-bar,
.ag-theme-alpine .ag-header-row,
.ag-theme-alpine .ag-panel-title-bar-title,
.ag-theme-alpine .ag-multi-filter-group-title-bar,
.ag-theme-alpine-dark .ag-filter-toolpanel-header,
.ag-theme-alpine-dark .ag-filter-toolpanel-search,
.ag-theme-alpine-dark .ag-status-bar,
.ag-theme-alpine-dark .ag-header-row,
.ag-theme-alpine-dark .ag-panel-title-bar-title,
.ag-theme-alpine-dark .ag-multi-filter-group-title-bar,
.ag-theme-alpine-auto-dark .ag-filter-toolpanel-header,
.ag-theme-alpine-auto-dark .ag-filter-toolpanel-search,
.ag-theme-alpine-auto-dark .ag-status-bar,
.ag-theme-alpine-auto-dark .ag-header-row,
.ag-theme-alpine-auto-dark .ag-panel-title-bar-title,
.ag-theme-alpine-auto-dark .ag-multi-filter-group-title-bar {
  font-weight: 700;
  color: var(--ag-header-foreground-color);
}
.ag-theme-alpine .ag-row,
.ag-theme-alpine-dark .ag-row,
.ag-theme-alpine-auto-dark .ag-row {
  font-size: calc(var(--ag-font-size) + 1px);
}
.ag-theme-alpine input[class^=ag-]:not([type]),
.ag-theme-alpine input[class^=ag-][type=text],
.ag-theme-alpine input[class^=ag-][type=number],
.ag-theme-alpine input[class^=ag-][type=tel],
.ag-theme-alpine input[class^=ag-][type=date],
.ag-theme-alpine input[class^=ag-][type=datetime-local],
.ag-theme-alpine textarea[class^=ag-],
.ag-theme-alpine-dark input[class^=ag-]:not([type]),
.ag-theme-alpine-dark input[class^=ag-][type=text],
.ag-theme-alpine-dark input[class^=ag-][type=number],
.ag-theme-alpine-dark input[class^=ag-][type=tel],
.ag-theme-alpine-dark input[class^=ag-][type=date],
.ag-theme-alpine-dark input[class^=ag-][type=datetime-local],
.ag-theme-alpine-dark textarea[class^=ag-],
.ag-theme-alpine-auto-dark input[class^=ag-]:not([type]),
.ag-theme-alpine-auto-dark input[class^=ag-][type=text],
.ag-theme-alpine-auto-dark input[class^=ag-][type=number],
.ag-theme-alpine-auto-dark input[class^=ag-][type=tel],
.ag-theme-alpine-auto-dark input[class^=ag-][type=date],
.ag-theme-alpine-auto-dark input[class^=ag-][type=datetime-local],
.ag-theme-alpine-auto-dark textarea[class^=ag-] {
  min-height: calc(var(--ag-grid-size) * 4);
  border-radius: var(--ag-border-radius);
}
.ag-theme-alpine .ag-ltr input[class^=ag-]:not([type]), .ag-theme-alpine .ag-ltr input[class^=ag-][type=text], .ag-theme-alpine .ag-ltr input[class^=ag-][type=number], .ag-theme-alpine .ag-ltr input[class^=ag-][type=tel], .ag-theme-alpine .ag-ltr input[class^=ag-][type=date], .ag-theme-alpine .ag-ltr input[class^=ag-][type=datetime-local], .ag-theme-alpine .ag-ltr textarea[class^=ag-], .ag-theme-alpine-dark .ag-ltr input[class^=ag-]:not([type]), .ag-theme-alpine-dark .ag-ltr input[class^=ag-][type=text], .ag-theme-alpine-dark .ag-ltr input[class^=ag-][type=number], .ag-theme-alpine-dark .ag-ltr input[class^=ag-][type=tel], .ag-theme-alpine-dark .ag-ltr input[class^=ag-][type=date], .ag-theme-alpine-dark .ag-ltr input[class^=ag-][type=datetime-local], .ag-theme-alpine-dark .ag-ltr textarea[class^=ag-], .ag-theme-alpine-auto-dark .ag-ltr input[class^=ag-]:not([type]), .ag-theme-alpine-auto-dark .ag-ltr input[class^=ag-][type=text], .ag-theme-alpine-auto-dark .ag-ltr input[class^=ag-][type=number], .ag-theme-alpine-auto-dark .ag-ltr input[class^=ag-][type=tel], .ag-theme-alpine-auto-dark .ag-ltr input[class^=ag-][type=date], .ag-theme-alpine-auto-dark .ag-ltr input[class^=ag-][type=datetime-local], .ag-theme-alpine-auto-dark .ag-ltr textarea[class^=ag-] {
  padding-left: var(--ag-grid-size);
}

.ag-theme-alpine .ag-rtl input[class^=ag-]:not([type]), .ag-theme-alpine .ag-rtl input[class^=ag-][type=text], .ag-theme-alpine .ag-rtl input[class^=ag-][type=number], .ag-theme-alpine .ag-rtl input[class^=ag-][type=tel], .ag-theme-alpine .ag-rtl input[class^=ag-][type=date], .ag-theme-alpine .ag-rtl input[class^=ag-][type=datetime-local], .ag-theme-alpine .ag-rtl textarea[class^=ag-], .ag-theme-alpine-dark .ag-rtl input[class^=ag-]:not([type]), .ag-theme-alpine-dark .ag-rtl input[class^=ag-][type=text], .ag-theme-alpine-dark .ag-rtl input[class^=ag-][type=number], .ag-theme-alpine-dark .ag-rtl input[class^=ag-][type=tel], .ag-theme-alpine-dark .ag-rtl input[class^=ag-][type=date], .ag-theme-alpine-dark .ag-rtl input[class^=ag-][type=datetime-local], .ag-theme-alpine-dark .ag-rtl textarea[class^=ag-], .ag-theme-alpine-auto-dark .ag-rtl input[class^=ag-]:not([type]), .ag-theme-alpine-auto-dark .ag-rtl input[class^=ag-][type=text], .ag-theme-alpine-auto-dark .ag-rtl input[class^=ag-][type=number], .ag-theme-alpine-auto-dark .ag-rtl input[class^=ag-][type=tel], .ag-theme-alpine-auto-dark .ag-rtl input[class^=ag-][type=date], .ag-theme-alpine-auto-dark .ag-rtl input[class^=ag-][type=datetime-local], .ag-theme-alpine-auto-dark .ag-rtl textarea[class^=ag-] {
  padding-right: var(--ag-grid-size);
}

.ag-theme-alpine .ag-tab,
.ag-theme-alpine-dark .ag-tab,
.ag-theme-alpine-auto-dark .ag-tab {
  padding: calc(var(--ag-grid-size) * 1.5);
  transition: color 0.4s;
  flex: 1 1 auto;
}
.ag-theme-alpine .ag-tab-selected,
.ag-theme-alpine-dark .ag-tab-selected,
.ag-theme-alpine-auto-dark .ag-tab-selected {
  color: var(--ag-alpine-active-color);
}
.ag-theme-alpine .ag-menu,
.ag-theme-alpine-dark .ag-menu,
.ag-theme-alpine-auto-dark .ag-menu {
  background-color: var(--ag-control-panel-background-color);
}
.ag-theme-alpine .ag-panel-content-wrapper .ag-column-select,
.ag-theme-alpine-dark .ag-panel-content-wrapper .ag-column-select,
.ag-theme-alpine-auto-dark .ag-panel-content-wrapper .ag-column-select {
  background-color: var(--ag-control-panel-background-color);
}
.ag-theme-alpine .ag-menu-header,
.ag-theme-alpine-dark .ag-menu-header,
.ag-theme-alpine-auto-dark .ag-menu-header {
  background-color: var(--ag-control-panel-background-color);
  padding-top: 1px;
}
.ag-theme-alpine .ag-tabs-header,
.ag-theme-alpine-dark .ag-tabs-header,
.ag-theme-alpine-auto-dark .ag-tabs-header {
  border-bottom: var(--ag-borders) var(--ag-border-color);
}
.ag-theme-alpine .ag-charts-settings-group-title-bar,
.ag-theme-alpine .ag-charts-data-group-title-bar,
.ag-theme-alpine .ag-charts-format-top-level-group-title-bar,
.ag-theme-alpine .ag-charts-advanced-settings-top-level-group-title-bar,
.ag-theme-alpine-dark .ag-charts-settings-group-title-bar,
.ag-theme-alpine-dark .ag-charts-data-group-title-bar,
.ag-theme-alpine-dark .ag-charts-format-top-level-group-title-bar,
.ag-theme-alpine-dark .ag-charts-advanced-settings-top-level-group-title-bar,
.ag-theme-alpine-auto-dark .ag-charts-settings-group-title-bar,
.ag-theme-alpine-auto-dark .ag-charts-data-group-title-bar,
.ag-theme-alpine-auto-dark .ag-charts-format-top-level-group-title-bar,
.ag-theme-alpine-auto-dark .ag-charts-advanced-settings-top-level-group-title-bar {
  padding: var(--ag-grid-size) calc(var(--ag-grid-size) * 2);
  line-height: calc(var(--ag-icon-size) + var(--ag-grid-size) - 2px);
}
.ag-theme-alpine .ag-chart-mini-thumbnail,
.ag-theme-alpine-dark .ag-chart-mini-thumbnail,
.ag-theme-alpine-auto-dark .ag-chart-mini-thumbnail {
  background-color: var(--ag-background-color);
}
.ag-theme-alpine .ag-chart-settings-nav-bar,
.ag-theme-alpine-dark .ag-chart-settings-nav-bar,
.ag-theme-alpine-auto-dark .ag-chart-settings-nav-bar {
  border-top: var(--ag-borders-secondary) var(--ag-secondary-border-color);
}
.ag-theme-alpine .ag-ltr .ag-group-title-bar-icon, .ag-theme-alpine-dark .ag-ltr .ag-group-title-bar-icon, .ag-theme-alpine-auto-dark .ag-ltr .ag-group-title-bar-icon {
  margin-right: var(--ag-grid-size);
}

.ag-theme-alpine .ag-rtl .ag-group-title-bar-icon, .ag-theme-alpine-dark .ag-rtl .ag-group-title-bar-icon, .ag-theme-alpine-auto-dark .ag-rtl .ag-group-title-bar-icon {
  margin-left: var(--ag-grid-size);
}

.ag-theme-alpine .ag-charts-format-top-level-group-toolbar,
.ag-theme-alpine .ag-charts-advanced-settings-top-level-group-toolbar,
.ag-theme-alpine-dark .ag-charts-format-top-level-group-toolbar,
.ag-theme-alpine-dark .ag-charts-advanced-settings-top-level-group-toolbar,
.ag-theme-alpine-auto-dark .ag-charts-format-top-level-group-toolbar,
.ag-theme-alpine-auto-dark .ag-charts-advanced-settings-top-level-group-toolbar {
  margin-top: var(--ag-grid-size);
}
.ag-theme-alpine .ag-ltr .ag-charts-format-top-level-group-toolbar, .ag-theme-alpine .ag-ltr .ag-charts-advanced-settings-top-level-group-toolbar, .ag-theme-alpine-dark .ag-ltr .ag-charts-format-top-level-group-toolbar, .ag-theme-alpine-dark .ag-ltr .ag-charts-advanced-settings-top-level-group-toolbar, .ag-theme-alpine-auto-dark .ag-ltr .ag-charts-format-top-level-group-toolbar, .ag-theme-alpine-auto-dark .ag-ltr .ag-charts-advanced-settings-top-level-group-toolbar {
  padding-left: calc(var(--ag-icon-size) * 0.5 + var(--ag-grid-size) * 2);
}

.ag-theme-alpine .ag-rtl .ag-charts-format-top-level-group-toolbar, .ag-theme-alpine .ag-rtl .ag-charts-advanced-settings-top-level-group-toolbar, .ag-theme-alpine-dark .ag-rtl .ag-charts-format-top-level-group-toolbar, .ag-theme-alpine-dark .ag-rtl .ag-charts-advanced-settings-top-level-group-toolbar, .ag-theme-alpine-auto-dark .ag-rtl .ag-charts-format-top-level-group-toolbar, .ag-theme-alpine-auto-dark .ag-rtl .ag-charts-advanced-settings-top-level-group-toolbar {
  padding-right: calc(var(--ag-icon-size) * 0.5 + var(--ag-grid-size) * 2);
}

.ag-theme-alpine .ag-charts-format-sub-level-group,
.ag-theme-alpine-dark .ag-charts-format-sub-level-group,
.ag-theme-alpine-auto-dark .ag-charts-format-sub-level-group {
  border-left: dashed 1px;
  border-left-color: var(--ag-border-color);
  padding-left: var(--ag-grid-size);
  margin-bottom: calc(var(--ag-grid-size) * 2);
}
.ag-theme-alpine .ag-charts-format-sub-level-group-title-bar,
.ag-theme-alpine-dark .ag-charts-format-sub-level-group-title-bar,
.ag-theme-alpine-auto-dark .ag-charts-format-sub-level-group-title-bar {
  padding-top: 0;
  padding-bottom: 0;
  background: none;
  font-weight: 700;
}
.ag-theme-alpine .ag-charts-format-sub-level-group-container,
.ag-theme-alpine-dark .ag-charts-format-sub-level-group-container,
.ag-theme-alpine-auto-dark .ag-charts-format-sub-level-group-container {
  padding-bottom: 0;
}
.ag-theme-alpine .ag-charts-format-sub-level-group-item:last-child,
.ag-theme-alpine-dark .ag-charts-format-sub-level-group-item:last-child,
.ag-theme-alpine-auto-dark .ag-charts-format-sub-level-group-item:last-child {
  margin-bottom: 0;
}
.ag-theme-alpine.ag-dnd-ghost,
.ag-theme-alpine-dark.ag-dnd-ghost,
.ag-theme-alpine-auto-dark.ag-dnd-ghost {
  font-size: calc(var(--ag-font-size) - 1px);
  font-weight: 700;
}
.ag-theme-alpine .ag-side-buttons,
.ag-theme-alpine-dark .ag-side-buttons,
.ag-theme-alpine-auto-dark .ag-side-buttons {
  width: calc(var(--ag-grid-size) * 5);
}
.ag-theme-alpine .ag-standard-button,
.ag-theme-alpine-dark .ag-standard-button,
.ag-theme-alpine-auto-dark .ag-standard-button {
  font-family: inherit;
  appearance: none;
  -webkit-appearance: none;
  border-radius: var(--ag-border-radius);
  border: 1px solid;
  border-color: var(--ag-alpine-active-color);
  color: var(--ag-alpine-active-color);
  background-color: var(--ag-background-color);
  font-weight: 600;
  padding: var(--ag-grid-size) calc(var(--ag-grid-size) * 2);
}
.ag-theme-alpine .ag-standard-button:hover,
.ag-theme-alpine-dark .ag-standard-button:hover,
.ag-theme-alpine-auto-dark .ag-standard-button:hover {
  border-color: var(--ag-alpine-active-color);
  background-color: var(--ag-row-hover-color);
}
.ag-theme-alpine .ag-standard-button:active,
.ag-theme-alpine-dark .ag-standard-button:active,
.ag-theme-alpine-auto-dark .ag-standard-button:active {
  border-color: var(--ag-alpine-active-color);
  background-color: var(--ag-alpine-active-color);
  color: var(--ag-background-color);
}
.ag-theme-alpine .ag-standard-button:disabled,
.ag-theme-alpine-dark .ag-standard-button:disabled,
.ag-theme-alpine-auto-dark .ag-standard-button:disabled {
  color: var(--ag-disabled-foreground-color);
  background-color: var(--ag-input-disabled-background-color);
  border-color: var(--ag-input-disabled-border-color);
}
.ag-theme-alpine .ag-column-drop-vertical,
.ag-theme-alpine-dark .ag-column-drop-vertical,
.ag-theme-alpine-auto-dark .ag-column-drop-vertical {
  min-height: 75px;
}
.ag-theme-alpine .ag-column-drop-vertical-title-bar,
.ag-theme-alpine-dark .ag-column-drop-vertical-title-bar,
.ag-theme-alpine-auto-dark .ag-column-drop-vertical-title-bar {
  padding: calc(var(--ag-grid-size) * 2);
  padding-bottom: 0px;
}
.ag-theme-alpine .ag-column-drop-vertical-empty-message,
.ag-theme-alpine-dark .ag-column-drop-vertical-empty-message,
.ag-theme-alpine-auto-dark .ag-column-drop-vertical-empty-message {
  display: flex;
  align-items: center;
  border: dashed 1px;
  border-color: var(--ag-border-color);
  margin: calc(var(--ag-grid-size) * 2);
  padding: calc(var(--ag-grid-size) * 2);
}
.ag-theme-alpine .ag-column-drop-empty-message,
.ag-theme-alpine-dark .ag-column-drop-empty-message,
.ag-theme-alpine-auto-dark .ag-column-drop-empty-message {
  color: var(--ag-foreground-color);
  opacity: 0.75;
}
.ag-theme-alpine .ag-pill-select .ag-column-drop,
.ag-theme-alpine-dark .ag-pill-select .ag-column-drop,
.ag-theme-alpine-auto-dark .ag-pill-select .ag-column-drop {
  min-height: unset;
}
.ag-theme-alpine .ag-status-bar,
.ag-theme-alpine-dark .ag-status-bar,
.ag-theme-alpine-auto-dark .ag-status-bar {
  font-weight: normal;
}
.ag-theme-alpine .ag-status-name-value-value,
.ag-theme-alpine-dark .ag-status-name-value-value,
.ag-theme-alpine-auto-dark .ag-status-name-value-value {
  font-weight: 700;
}
.ag-theme-alpine .ag-paging-number,
.ag-theme-alpine .ag-paging-row-summary-panel-number,
.ag-theme-alpine-dark .ag-paging-number,
.ag-theme-alpine-dark .ag-paging-row-summary-panel-number,
.ag-theme-alpine-auto-dark .ag-paging-number,
.ag-theme-alpine-auto-dark .ag-paging-row-summary-panel-number {
  font-weight: 700;
}
.ag-theme-alpine .ag-column-drop-cell-button,
.ag-theme-alpine-dark .ag-column-drop-cell-button,
.ag-theme-alpine-auto-dark .ag-column-drop-cell-button {
  opacity: 0.5;
}
.ag-theme-alpine .ag-column-drop-cell-button:hover,
.ag-theme-alpine-dark .ag-column-drop-cell-button:hover,
.ag-theme-alpine-auto-dark .ag-column-drop-cell-button:hover {
  opacity: 0.75;
}
.ag-theme-alpine .ag-column-select-column-readonly.ag-icon-grip,
.ag-theme-alpine .ag-column-select-column-readonly .ag-icon-grip,
.ag-theme-alpine-dark .ag-column-select-column-readonly.ag-icon-grip,
.ag-theme-alpine-dark .ag-column-select-column-readonly .ag-icon-grip,
.ag-theme-alpine-auto-dark .ag-column-select-column-readonly.ag-icon-grip,
.ag-theme-alpine-auto-dark .ag-column-select-column-readonly .ag-icon-grip {
  opacity: 0.35;
}
.ag-theme-alpine .ag-header-cell-menu-button:hover,
.ag-theme-alpine .ag-header-cell-filter-button:hover,
.ag-theme-alpine .ag-side-button-button:hover,
.ag-theme-alpine .ag-tab:hover,
.ag-theme-alpine .ag-panel-title-bar-button:hover,
.ag-theme-alpine .ag-header-expand-icon:hover,
.ag-theme-alpine .ag-column-group-icons:hover,
.ag-theme-alpine .ag-set-filter-group-icons:hover,
.ag-theme-alpine .ag-group-expanded .ag-icon:hover,
.ag-theme-alpine .ag-group-contracted .ag-icon:hover,
.ag-theme-alpine .ag-chart-settings-prev:hover,
.ag-theme-alpine .ag-chart-settings-next:hover,
.ag-theme-alpine .ag-group-title-bar-icon:hover,
.ag-theme-alpine .ag-column-select-header-icon:hover,
.ag-theme-alpine .ag-floating-filter-button-button:hover,
.ag-theme-alpine .ag-filter-toolpanel-expand:hover,
.ag-theme-alpine .ag-chart-menu-icon:hover,
.ag-theme-alpine-dark .ag-header-cell-menu-button:hover,
.ag-theme-alpine-dark .ag-header-cell-filter-button:hover,
.ag-theme-alpine-dark .ag-side-button-button:hover,
.ag-theme-alpine-dark .ag-tab:hover,
.ag-theme-alpine-dark .ag-panel-title-bar-button:hover,
.ag-theme-alpine-dark .ag-header-expand-icon:hover,
.ag-theme-alpine-dark .ag-column-group-icons:hover,
.ag-theme-alpine-dark .ag-set-filter-group-icons:hover,
.ag-theme-alpine-dark .ag-group-expanded .ag-icon:hover,
.ag-theme-alpine-dark .ag-group-contracted .ag-icon:hover,
.ag-theme-alpine-dark .ag-chart-settings-prev:hover,
.ag-theme-alpine-dark .ag-chart-settings-next:hover,
.ag-theme-alpine-dark .ag-group-title-bar-icon:hover,
.ag-theme-alpine-dark .ag-column-select-header-icon:hover,
.ag-theme-alpine-dark .ag-floating-filter-button-button:hover,
.ag-theme-alpine-dark .ag-filter-toolpanel-expand:hover,
.ag-theme-alpine-dark .ag-chart-menu-icon:hover,
.ag-theme-alpine-auto-dark .ag-header-cell-menu-button:hover,
.ag-theme-alpine-auto-dark .ag-header-cell-filter-button:hover,
.ag-theme-alpine-auto-dark .ag-side-button-button:hover,
.ag-theme-alpine-auto-dark .ag-tab:hover,
.ag-theme-alpine-auto-dark .ag-panel-title-bar-button:hover,
.ag-theme-alpine-auto-dark .ag-header-expand-icon:hover,
.ag-theme-alpine-auto-dark .ag-column-group-icons:hover,
.ag-theme-alpine-auto-dark .ag-set-filter-group-icons:hover,
.ag-theme-alpine-auto-dark .ag-group-expanded .ag-icon:hover,
.ag-theme-alpine-auto-dark .ag-group-contracted .ag-icon:hover,
.ag-theme-alpine-auto-dark .ag-chart-settings-prev:hover,
.ag-theme-alpine-auto-dark .ag-chart-settings-next:hover,
.ag-theme-alpine-auto-dark .ag-group-title-bar-icon:hover,
.ag-theme-alpine-auto-dark .ag-column-select-header-icon:hover,
.ag-theme-alpine-auto-dark .ag-floating-filter-button-button:hover,
.ag-theme-alpine-auto-dark .ag-filter-toolpanel-expand:hover,
.ag-theme-alpine-auto-dark .ag-chart-menu-icon:hover {
  color: var(--ag-alpine-active-color);
}
.ag-theme-alpine .ag-header-cell-menu-button:hover .ag-icon,
.ag-theme-alpine .ag-header-cell-filter-button:hover .ag-icon,
.ag-theme-alpine .ag-side-button-button:hover .ag-icon,
.ag-theme-alpine .ag-panel-title-bar-button:hover .ag-icon,
.ag-theme-alpine .ag-floating-filter-button-button:hover .ag-icon,
.ag-theme-alpine-dark .ag-header-cell-menu-button:hover .ag-icon,
.ag-theme-alpine-dark .ag-header-cell-filter-button:hover .ag-icon,
.ag-theme-alpine-dark .ag-side-button-button:hover .ag-icon,
.ag-theme-alpine-dark .ag-panel-title-bar-button:hover .ag-icon,
.ag-theme-alpine-dark .ag-floating-filter-button-button:hover .ag-icon,
.ag-theme-alpine-auto-dark .ag-header-cell-menu-button:hover .ag-icon,
.ag-theme-alpine-auto-dark .ag-header-cell-filter-button:hover .ag-icon,
.ag-theme-alpine-auto-dark .ag-side-button-button:hover .ag-icon,
.ag-theme-alpine-auto-dark .ag-panel-title-bar-button:hover .ag-icon,
.ag-theme-alpine-auto-dark .ag-floating-filter-button-button:hover .ag-icon {
  color: inherit;
}
.ag-theme-alpine .ag-filter-active .ag-icon-filter,
.ag-theme-alpine-dark .ag-filter-active .ag-icon-filter,
.ag-theme-alpine-auto-dark .ag-filter-active .ag-icon-filter {
  color: var(--ag-alpine-active-color);
}
.ag-theme-alpine .ag-chart-settings-card-item.ag-not-selected:hover,
.ag-theme-alpine-dark .ag-chart-settings-card-item.ag-not-selected:hover,
.ag-theme-alpine-auto-dark .ag-chart-settings-card-item.ag-not-selected:hover {
  opacity: 0.35;
}
.ag-theme-alpine .ag-ltr .ag-panel-title-bar-button, .ag-theme-alpine-dark .ag-ltr .ag-panel-title-bar-button, .ag-theme-alpine-auto-dark .ag-ltr .ag-panel-title-bar-button {
  margin-left: calc(var(--ag-grid-size) * 2);
  margin-right: var(--ag-grid-size);
}

.ag-theme-alpine .ag-rtl .ag-panel-title-bar-button, .ag-theme-alpine-dark .ag-rtl .ag-panel-title-bar-button, .ag-theme-alpine-auto-dark .ag-rtl .ag-panel-title-bar-button {
  margin-right: calc(var(--ag-grid-size) * 2);
  margin-left: var(--ag-grid-size);
}

.ag-theme-alpine .ag-ltr .ag-filter-toolpanel-group-container, .ag-theme-alpine-dark .ag-ltr .ag-filter-toolpanel-group-container, .ag-theme-alpine-auto-dark .ag-ltr .ag-filter-toolpanel-group-container {
  padding-left: var(--ag-grid-size);
}

.ag-theme-alpine .ag-rtl .ag-filter-toolpanel-group-container, .ag-theme-alpine-dark .ag-rtl .ag-filter-toolpanel-group-container, .ag-theme-alpine-auto-dark .ag-rtl .ag-filter-toolpanel-group-container {
  padding-right: var(--ag-grid-size);
}

.ag-theme-alpine .ag-filter-toolpanel-instance-filter,
.ag-theme-alpine-dark .ag-filter-toolpanel-instance-filter,
.ag-theme-alpine-auto-dark .ag-filter-toolpanel-instance-filter {
  border: none;
  background-color: var(--ag-control-panel-background-color);
}
.ag-theme-alpine .ag-ltr .ag-filter-toolpanel-instance-filter, .ag-theme-alpine-dark .ag-ltr .ag-filter-toolpanel-instance-filter, .ag-theme-alpine-auto-dark .ag-ltr .ag-filter-toolpanel-instance-filter {
  border-left: dashed 1px;
  border-left-color: var(--ag-border-color);
  margin-left: calc(var(--ag-icon-size) * 0.5);
}

.ag-theme-alpine .ag-rtl .ag-filter-toolpanel-instance-filter, .ag-theme-alpine-dark .ag-rtl .ag-filter-toolpanel-instance-filter, .ag-theme-alpine-auto-dark .ag-rtl .ag-filter-toolpanel-instance-filter {
  border-right: dashed 1px;
  border-right-color: var(--ag-border-color);
  margin-right: calc(var(--ag-icon-size) * 0.5);
}

.ag-theme-alpine .ag-set-filter-list,
.ag-theme-alpine-dark .ag-set-filter-list,
.ag-theme-alpine-auto-dark .ag-set-filter-list {
  padding-top: calc(var(--ag-grid-size) * 0.5);
  padding-bottom: calc(var(--ag-grid-size) * 0.5);
}
.ag-theme-alpine .ag-layout-auto-height .ag-center-cols-viewport,
.ag-theme-alpine .ag-layout-auto-height .ag-center-cols-container,
.ag-theme-alpine .ag-layout-print .ag-center-cols-viewport,
.ag-theme-alpine .ag-layout-print .ag-center-cols-container,
.ag-theme-alpine-dark .ag-layout-auto-height .ag-center-cols-viewport,
.ag-theme-alpine-dark .ag-layout-auto-height .ag-center-cols-container,
.ag-theme-alpine-dark .ag-layout-print .ag-center-cols-viewport,
.ag-theme-alpine-dark .ag-layout-print .ag-center-cols-container,
.ag-theme-alpine-auto-dark .ag-layout-auto-height .ag-center-cols-viewport,
.ag-theme-alpine-auto-dark .ag-layout-auto-height .ag-center-cols-container,
.ag-theme-alpine-auto-dark .ag-layout-print .ag-center-cols-viewport,
.ag-theme-alpine-auto-dark .ag-layout-print .ag-center-cols-container {
  min-height: 150px;
}
.ag-theme-alpine .ag-date-time-list-page-entry-is-current,
.ag-theme-alpine-dark .ag-date-time-list-page-entry-is-current,
.ag-theme-alpine-auto-dark .ag-date-time-list-page-entry-is-current {
  background-color: var(--ag-alpine-active-color);
}
.ag-theme-alpine .ag-advanced-filter-builder-button,
.ag-theme-alpine-dark .ag-advanced-filter-builder-button,
.ag-theme-alpine-auto-dark .ag-advanced-filter-builder-button {
  padding: var(--ag-grid-size);
  font-weight: 600;
}
.ag-theme-alpine .ag-list-item-hovered::after,
.ag-theme-alpine-dark .ag-list-item-hovered::after,
.ag-theme-alpine-auto-dark .ag-list-item-hovered::after {
  background-color: var(--ag-alpine-active-color);
}
.ag-theme-alpine .ag-pill .ag-pill-button:hover,
.ag-theme-alpine-dark .ag-pill .ag-pill-button:hover,
.ag-theme-alpine-auto-dark .ag-pill .ag-pill-button:hover {
  color: var(--ag-alpine-active-color);
}
.ag-theme-alpine .ag-header-highlight-before::after,
.ag-theme-alpine .ag-header-highlight-after::after,
.ag-theme-alpine-dark .ag-header-highlight-before::after,
.ag-theme-alpine-dark .ag-header-highlight-after::after,
.ag-theme-alpine-auto-dark .ag-header-highlight-before::after,
.ag-theme-alpine-auto-dark .ag-header-highlight-after::after {
  background-color: var(--ag-alpine-active-color);
}
`,""]),p.A=v},3871:function(x,p,M){"use strict";var A=M(6758),F=M.n(A),D=M(935),f=M.n(D),v=M(62),u=M.n(v),s=new URL(M(8430),M.b),r=f()(F()),d=u()(s);r.push([x.id,`@font-face {
  font-family: "agGridAlpine";
  src: url(`+d+`);
  font-weight: normal;
  font-style: normal;
}
.ag-theme-alpine,
.ag-theme-alpine-dark,
.ag-theme-alpine-auto-dark {
  --ag-alpine-active-color: #2196f3;
  --ag-selected-row-background-color: rgba(33, 150, 243, 0.3);
  --ag-row-hover-color: rgba(33, 150, 243, 0.1);
  --ag-column-hover-color: rgba(33, 150, 243, 0.1);
  --ag-input-focus-border-color: rgba(33, 150, 243, 0.4);
  --ag-range-selection-background-color: rgba(33, 150, 243, 0.2);
  --ag-range-selection-background-color-2: rgba(33, 150, 243, 0.36);
  --ag-range-selection-background-color-3: rgba(33, 150, 243, 0.49);
  --ag-range-selection-background-color-4: rgba(33, 150, 243, 0.59);
  --ag-background-color: #fff;
  --ag-foreground-color: #181d1f;
  --ag-border-color: #babfc7;
  --ag-secondary-border-color: #dde2eb;
  --ag-header-background-color: #f8f8f8;
  --ag-tooltip-background-color: #f8f8f8;
  --ag-odd-row-background-color: #fcfcfc;
  --ag-control-panel-background-color: #f8f8f8;
  --ag-subheader-background-color: #fff;
  --ag-invalid-color: #e02525;
  --ag-checkbox-unchecked-color: #999;
  --ag-advanced-filter-join-pill-color: #f08e8d;
  --ag-advanced-filter-column-pill-color: #a6e194;
  --ag-advanced-filter-option-pill-color: #f3c08b;
  --ag-advanced-filter-value-pill-color: #85c0e4;
  --ag-checkbox-background-color: var(--ag-background-color);
  --ag-checkbox-checked-color: var(--ag-alpine-active-color);
  --ag-range-selection-border-color: var(--ag-alpine-active-color);
  --ag-secondary-foreground-color: var(--ag-foreground-color);
  --ag-input-border-color: var(--ag-border-color);
  --ag-input-border-color-invalid: var(--ag-invalid-color);
  --ag-input-focus-box-shadow: 0 0 2px 0.1rem var(--ag-input-focus-border-color);
  --ag-panel-background-color: var(--ag-header-background-color);
  --ag-menu-background-color: var(--ag-header-background-color);
  --ag-disabled-foreground-color: rgba(24, 29, 31, 0.5);
  --ag-chip-background-color: rgba(24, 29, 31, 0.07);
  --ag-input-disabled-border-color: rgba(186, 191, 199, 0.3);
  --ag-input-disabled-background-color: rgba(186, 191, 199, 0.15);
  --ag-borders: solid 1px;
  --ag-border-radius: 3px;
  --ag-borders-side-button: none;
  --ag-side-button-selected-background-color: transparent;
  --ag-header-column-resize-handle-display: block;
  --ag-header-column-resize-handle-width: 2px;
  --ag-header-column-resize-handle-height: 30%;
  --ag-grid-size: 6px;
  --ag-icon-size: 16px;
  --ag-row-height: calc(var(--ag-grid-size) * 7);
  --ag-header-height: calc(var(--ag-grid-size) * 8);
  --ag-list-item-height: calc(var(--ag-grid-size) * 4);
  --ag-column-select-indent-size: var(--ag-icon-size);
  --ag-set-filter-indent-size: var(--ag-icon-size);
  --ag-advanced-filter-builder-indent-size: calc(var(--ag-icon-size) + var(--ag-grid-size) * 2);
  --ag-cell-horizontal-padding: calc(var(--ag-grid-size) * 3);
  --ag-cell-widget-spacing: calc(var(--ag-grid-size) * 2);
  --ag-widget-container-vertical-padding: calc(var(--ag-grid-size) * 2);
  --ag-widget-container-horizontal-padding: calc(var(--ag-grid-size) * 2);
  --ag-widget-vertical-spacing: calc(var(--ag-grid-size) * 1.5);
  --ag-toggle-button-height: 18px;
  --ag-toggle-button-width: 28px;
  --ag-font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell,
      "Helvetica Neue", sans-serif;
  --ag-font-size: 13px;
  --ag-icon-font-family: agGridAlpine;
  --ag-selected-tab-underline-color: var(--ag-alpine-active-color);
  --ag-selected-tab-underline-width: 2px;
  --ag-selected-tab-underline-transition-speed: 0.3s;
  --ag-tab-min-width: 240px;
  --ag-card-shadow: 0 1px 4px 1px rgba(186, 191, 199, 0.4);
  --ag-popup-shadow: var(--ag-card-shadow);
  --ag-side-bar-panel-width: 250px;
}

.ag-theme-alpine-dark {
  --ag-background-color: #181d1f;
  --ag-foreground-color: #fff;
  --ag-border-color: #68686e;
  --ag-secondary-border-color: rgba(88, 86, 82, 0.5);
  --ag-modal-overlay-background-color: rgba(24, 29, 31, 0.66);
  --ag-header-background-color: #222628;
  --ag-tooltip-background-color: #222628;
  --ag-odd-row-background-color: #222628;
  --ag-control-panel-background-color: #222628;
  --ag-subheader-background-color: #000;
  --ag-input-disabled-background-color: #282c2f;
  --ag-input-focus-box-shadow: 0 0 2px 0.5px rgba(255, 255, 255, 0.5), 0 0 4px 3px var(--ag-input-focus-border-color);
  --ag-card-shadow: 0 1px 20px 1px black;
  --ag-disabled-foreground-color: rgba(255, 255, 255, 0.5);
  --ag-chip-background-color: rgba(255, 255, 255, 0.07);
  --ag-input-disabled-border-color: rgba(104, 104, 110, 0.3);
  --ag-input-disabled-background-color: rgba(104, 104, 110, 0.07);
  --ag-advanced-filter-join-pill-color: #7a3a37;
  --ag-advanced-filter-column-pill-color: #355f2d;
  --ag-advanced-filter-option-pill-color: #5a3168;
  --ag-advanced-filter-value-pill-color: #374c86;
  --ag-row-loading-skeleton-effect-color: rgba(202, 203, 204, 0.4);
  color-scheme: dark;
}

@media (prefers-color-scheme: dark) {
  .ag-theme-alpine-auto-dark {
    --ag-background-color: #181d1f;
    --ag-foreground-color: #fff;
    --ag-border-color: #68686e;
    --ag-secondary-border-color: rgba(88, 86, 82, 0.5);
    --ag-modal-overlay-background-color: rgba(24, 29, 31, 0.66);
    --ag-header-background-color: #222628;
    --ag-tooltip-background-color: #222628;
    --ag-odd-row-background-color: #222628;
    --ag-control-panel-background-color: #222628;
    --ag-subheader-background-color: #000;
    --ag-input-disabled-background-color: #282c2f;
    --ag-input-focus-box-shadow: 0 0 2px 0.5px rgba(255, 255, 255, 0.5), 0 0 4px 3px var(--ag-input-focus-border-color);
    --ag-card-shadow: 0 1px 20px 1px black;
    --ag-disabled-foreground-color: rgba(255, 255, 255, 0.5);
    --ag-chip-background-color: rgba(255, 255, 255, 0.07);
    --ag-input-disabled-border-color: rgba(104, 104, 110, 0.3);
    --ag-input-disabled-background-color: rgba(104, 104, 110, 0.07);
    --ag-advanced-filter-join-pill-color: #7a3a37;
    --ag-advanced-filter-column-pill-color: #355f2d;
    --ag-advanced-filter-option-pill-color: #5a3168;
    --ag-advanced-filter-value-pill-color: #374c86;
    --ag-row-loading-skeleton-effect-color: rgba(202, 203, 204, 0.4);
    color-scheme: dark;
  }
}
.ag-theme-alpine .ag-filter-toolpanel-header,
.ag-theme-alpine .ag-filter-toolpanel-search,
.ag-theme-alpine .ag-status-bar,
.ag-theme-alpine .ag-header-row,
.ag-theme-alpine .ag-panel-title-bar-title,
.ag-theme-alpine .ag-multi-filter-group-title-bar,
.ag-theme-alpine-dark .ag-filter-toolpanel-header,
.ag-theme-alpine-dark .ag-filter-toolpanel-search,
.ag-theme-alpine-dark .ag-status-bar,
.ag-theme-alpine-dark .ag-header-row,
.ag-theme-alpine-dark .ag-panel-title-bar-title,
.ag-theme-alpine-dark .ag-multi-filter-group-title-bar,
.ag-theme-alpine-auto-dark .ag-filter-toolpanel-header,
.ag-theme-alpine-auto-dark .ag-filter-toolpanel-search,
.ag-theme-alpine-auto-dark .ag-status-bar,
.ag-theme-alpine-auto-dark .ag-header-row,
.ag-theme-alpine-auto-dark .ag-panel-title-bar-title,
.ag-theme-alpine-auto-dark .ag-multi-filter-group-title-bar {
  font-weight: 700;
  color: var(--ag-header-foreground-color);
}
.ag-theme-alpine .ag-row,
.ag-theme-alpine-dark .ag-row,
.ag-theme-alpine-auto-dark .ag-row {
  font-size: calc(var(--ag-font-size) + 1px);
}
.ag-theme-alpine input[class^=ag-]:not([type]),
.ag-theme-alpine input[class^=ag-][type=text],
.ag-theme-alpine input[class^=ag-][type=number],
.ag-theme-alpine input[class^=ag-][type=tel],
.ag-theme-alpine input[class^=ag-][type=date],
.ag-theme-alpine input[class^=ag-][type=datetime-local],
.ag-theme-alpine textarea[class^=ag-],
.ag-theme-alpine-dark input[class^=ag-]:not([type]),
.ag-theme-alpine-dark input[class^=ag-][type=text],
.ag-theme-alpine-dark input[class^=ag-][type=number],
.ag-theme-alpine-dark input[class^=ag-][type=tel],
.ag-theme-alpine-dark input[class^=ag-][type=date],
.ag-theme-alpine-dark input[class^=ag-][type=datetime-local],
.ag-theme-alpine-dark textarea[class^=ag-],
.ag-theme-alpine-auto-dark input[class^=ag-]:not([type]),
.ag-theme-alpine-auto-dark input[class^=ag-][type=text],
.ag-theme-alpine-auto-dark input[class^=ag-][type=number],
.ag-theme-alpine-auto-dark input[class^=ag-][type=tel],
.ag-theme-alpine-auto-dark input[class^=ag-][type=date],
.ag-theme-alpine-auto-dark input[class^=ag-][type=datetime-local],
.ag-theme-alpine-auto-dark textarea[class^=ag-] {
  min-height: calc(var(--ag-grid-size) * 4);
  border-radius: var(--ag-border-radius);
}
.ag-theme-alpine .ag-ltr input[class^=ag-]:not([type]), .ag-theme-alpine .ag-ltr input[class^=ag-][type=text], .ag-theme-alpine .ag-ltr input[class^=ag-][type=number], .ag-theme-alpine .ag-ltr input[class^=ag-][type=tel], .ag-theme-alpine .ag-ltr input[class^=ag-][type=date], .ag-theme-alpine .ag-ltr input[class^=ag-][type=datetime-local], .ag-theme-alpine .ag-ltr textarea[class^=ag-], .ag-theme-alpine-dark .ag-ltr input[class^=ag-]:not([type]), .ag-theme-alpine-dark .ag-ltr input[class^=ag-][type=text], .ag-theme-alpine-dark .ag-ltr input[class^=ag-][type=number], .ag-theme-alpine-dark .ag-ltr input[class^=ag-][type=tel], .ag-theme-alpine-dark .ag-ltr input[class^=ag-][type=date], .ag-theme-alpine-dark .ag-ltr input[class^=ag-][type=datetime-local], .ag-theme-alpine-dark .ag-ltr textarea[class^=ag-], .ag-theme-alpine-auto-dark .ag-ltr input[class^=ag-]:not([type]), .ag-theme-alpine-auto-dark .ag-ltr input[class^=ag-][type=text], .ag-theme-alpine-auto-dark .ag-ltr input[class^=ag-][type=number], .ag-theme-alpine-auto-dark .ag-ltr input[class^=ag-][type=tel], .ag-theme-alpine-auto-dark .ag-ltr input[class^=ag-][type=date], .ag-theme-alpine-auto-dark .ag-ltr input[class^=ag-][type=datetime-local], .ag-theme-alpine-auto-dark .ag-ltr textarea[class^=ag-] {
  padding-left: var(--ag-grid-size);
}

.ag-theme-alpine .ag-rtl input[class^=ag-]:not([type]), .ag-theme-alpine .ag-rtl input[class^=ag-][type=text], .ag-theme-alpine .ag-rtl input[class^=ag-][type=number], .ag-theme-alpine .ag-rtl input[class^=ag-][type=tel], .ag-theme-alpine .ag-rtl input[class^=ag-][type=date], .ag-theme-alpine .ag-rtl input[class^=ag-][type=datetime-local], .ag-theme-alpine .ag-rtl textarea[class^=ag-], .ag-theme-alpine-dark .ag-rtl input[class^=ag-]:not([type]), .ag-theme-alpine-dark .ag-rtl input[class^=ag-][type=text], .ag-theme-alpine-dark .ag-rtl input[class^=ag-][type=number], .ag-theme-alpine-dark .ag-rtl input[class^=ag-][type=tel], .ag-theme-alpine-dark .ag-rtl input[class^=ag-][type=date], .ag-theme-alpine-dark .ag-rtl input[class^=ag-][type=datetime-local], .ag-theme-alpine-dark .ag-rtl textarea[class^=ag-], .ag-theme-alpine-auto-dark .ag-rtl input[class^=ag-]:not([type]), .ag-theme-alpine-auto-dark .ag-rtl input[class^=ag-][type=text], .ag-theme-alpine-auto-dark .ag-rtl input[class^=ag-][type=number], .ag-theme-alpine-auto-dark .ag-rtl input[class^=ag-][type=tel], .ag-theme-alpine-auto-dark .ag-rtl input[class^=ag-][type=date], .ag-theme-alpine-auto-dark .ag-rtl input[class^=ag-][type=datetime-local], .ag-theme-alpine-auto-dark .ag-rtl textarea[class^=ag-] {
  padding-right: var(--ag-grid-size);
}

.ag-theme-alpine .ag-tab,
.ag-theme-alpine-dark .ag-tab,
.ag-theme-alpine-auto-dark .ag-tab {
  padding: calc(var(--ag-grid-size) * 1.5);
  transition: color 0.4s;
  flex: 1 1 auto;
}
.ag-theme-alpine .ag-tab-selected,
.ag-theme-alpine-dark .ag-tab-selected,
.ag-theme-alpine-auto-dark .ag-tab-selected {
  color: var(--ag-alpine-active-color);
}
.ag-theme-alpine .ag-menu,
.ag-theme-alpine-dark .ag-menu,
.ag-theme-alpine-auto-dark .ag-menu {
  background-color: var(--ag-control-panel-background-color);
}
.ag-theme-alpine .ag-panel-content-wrapper .ag-column-select,
.ag-theme-alpine-dark .ag-panel-content-wrapper .ag-column-select,
.ag-theme-alpine-auto-dark .ag-panel-content-wrapper .ag-column-select {
  background-color: var(--ag-control-panel-background-color);
}
.ag-theme-alpine .ag-menu-header,
.ag-theme-alpine-dark .ag-menu-header,
.ag-theme-alpine-auto-dark .ag-menu-header {
  background-color: var(--ag-control-panel-background-color);
  padding-top: 1px;
}
.ag-theme-alpine .ag-tabs-header,
.ag-theme-alpine-dark .ag-tabs-header,
.ag-theme-alpine-auto-dark .ag-tabs-header {
  border-bottom: var(--ag-borders) var(--ag-border-color);
}
.ag-theme-alpine .ag-charts-settings-group-title-bar,
.ag-theme-alpine .ag-charts-data-group-title-bar,
.ag-theme-alpine .ag-charts-format-top-level-group-title-bar,
.ag-theme-alpine .ag-charts-advanced-settings-top-level-group-title-bar,
.ag-theme-alpine-dark .ag-charts-settings-group-title-bar,
.ag-theme-alpine-dark .ag-charts-data-group-title-bar,
.ag-theme-alpine-dark .ag-charts-format-top-level-group-title-bar,
.ag-theme-alpine-dark .ag-charts-advanced-settings-top-level-group-title-bar,
.ag-theme-alpine-auto-dark .ag-charts-settings-group-title-bar,
.ag-theme-alpine-auto-dark .ag-charts-data-group-title-bar,
.ag-theme-alpine-auto-dark .ag-charts-format-top-level-group-title-bar,
.ag-theme-alpine-auto-dark .ag-charts-advanced-settings-top-level-group-title-bar {
  padding: var(--ag-grid-size) calc(var(--ag-grid-size) * 2);
  line-height: calc(var(--ag-icon-size) + var(--ag-grid-size) - 2px);
}
.ag-theme-alpine .ag-chart-mini-thumbnail,
.ag-theme-alpine-dark .ag-chart-mini-thumbnail,
.ag-theme-alpine-auto-dark .ag-chart-mini-thumbnail {
  background-color: var(--ag-background-color);
}
.ag-theme-alpine .ag-chart-settings-nav-bar,
.ag-theme-alpine-dark .ag-chart-settings-nav-bar,
.ag-theme-alpine-auto-dark .ag-chart-settings-nav-bar {
  border-top: var(--ag-borders-secondary) var(--ag-secondary-border-color);
}
.ag-theme-alpine .ag-ltr .ag-group-title-bar-icon, .ag-theme-alpine-dark .ag-ltr .ag-group-title-bar-icon, .ag-theme-alpine-auto-dark .ag-ltr .ag-group-title-bar-icon {
  margin-right: var(--ag-grid-size);
}

.ag-theme-alpine .ag-rtl .ag-group-title-bar-icon, .ag-theme-alpine-dark .ag-rtl .ag-group-title-bar-icon, .ag-theme-alpine-auto-dark .ag-rtl .ag-group-title-bar-icon {
  margin-left: var(--ag-grid-size);
}

.ag-theme-alpine .ag-charts-format-top-level-group-toolbar,
.ag-theme-alpine .ag-charts-advanced-settings-top-level-group-toolbar,
.ag-theme-alpine-dark .ag-charts-format-top-level-group-toolbar,
.ag-theme-alpine-dark .ag-charts-advanced-settings-top-level-group-toolbar,
.ag-theme-alpine-auto-dark .ag-charts-format-top-level-group-toolbar,
.ag-theme-alpine-auto-dark .ag-charts-advanced-settings-top-level-group-toolbar {
  margin-top: var(--ag-grid-size);
}
.ag-theme-alpine .ag-ltr .ag-charts-format-top-level-group-toolbar, .ag-theme-alpine .ag-ltr .ag-charts-advanced-settings-top-level-group-toolbar, .ag-theme-alpine-dark .ag-ltr .ag-charts-format-top-level-group-toolbar, .ag-theme-alpine-dark .ag-ltr .ag-charts-advanced-settings-top-level-group-toolbar, .ag-theme-alpine-auto-dark .ag-ltr .ag-charts-format-top-level-group-toolbar, .ag-theme-alpine-auto-dark .ag-ltr .ag-charts-advanced-settings-top-level-group-toolbar {
  padding-left: calc(var(--ag-icon-size) * 0.5 + var(--ag-grid-size) * 2);
}

.ag-theme-alpine .ag-rtl .ag-charts-format-top-level-group-toolbar, .ag-theme-alpine .ag-rtl .ag-charts-advanced-settings-top-level-group-toolbar, .ag-theme-alpine-dark .ag-rtl .ag-charts-format-top-level-group-toolbar, .ag-theme-alpine-dark .ag-rtl .ag-charts-advanced-settings-top-level-group-toolbar, .ag-theme-alpine-auto-dark .ag-rtl .ag-charts-format-top-level-group-toolbar, .ag-theme-alpine-auto-dark .ag-rtl .ag-charts-advanced-settings-top-level-group-toolbar {
  padding-right: calc(var(--ag-icon-size) * 0.5 + var(--ag-grid-size) * 2);
}

.ag-theme-alpine .ag-charts-format-sub-level-group,
.ag-theme-alpine-dark .ag-charts-format-sub-level-group,
.ag-theme-alpine-auto-dark .ag-charts-format-sub-level-group {
  border-left: dashed 1px;
  border-left-color: var(--ag-border-color);
  padding-left: var(--ag-grid-size);
  margin-bottom: calc(var(--ag-grid-size) * 2);
}
.ag-theme-alpine .ag-charts-format-sub-level-group-title-bar,
.ag-theme-alpine-dark .ag-charts-format-sub-level-group-title-bar,
.ag-theme-alpine-auto-dark .ag-charts-format-sub-level-group-title-bar {
  padding-top: 0;
  padding-bottom: 0;
  background: none;
  font-weight: 700;
}
.ag-theme-alpine .ag-charts-format-sub-level-group-container,
.ag-theme-alpine-dark .ag-charts-format-sub-level-group-container,
.ag-theme-alpine-auto-dark .ag-charts-format-sub-level-group-container {
  padding-bottom: 0;
}
.ag-theme-alpine .ag-charts-format-sub-level-group-item:last-child,
.ag-theme-alpine-dark .ag-charts-format-sub-level-group-item:last-child,
.ag-theme-alpine-auto-dark .ag-charts-format-sub-level-group-item:last-child {
  margin-bottom: 0;
}
.ag-theme-alpine.ag-dnd-ghost,
.ag-theme-alpine-dark.ag-dnd-ghost,
.ag-theme-alpine-auto-dark.ag-dnd-ghost {
  font-size: calc(var(--ag-font-size) - 1px);
  font-weight: 700;
}
.ag-theme-alpine .ag-side-buttons,
.ag-theme-alpine-dark .ag-side-buttons,
.ag-theme-alpine-auto-dark .ag-side-buttons {
  width: calc(var(--ag-grid-size) * 5);
}
.ag-theme-alpine .ag-standard-button,
.ag-theme-alpine-dark .ag-standard-button,
.ag-theme-alpine-auto-dark .ag-standard-button {
  font-family: inherit;
  appearance: none;
  -webkit-appearance: none;
  border-radius: var(--ag-border-radius);
  border: 1px solid;
  border-color: var(--ag-alpine-active-color);
  color: var(--ag-alpine-active-color);
  background-color: var(--ag-background-color);
  font-weight: 600;
  padding: var(--ag-grid-size) calc(var(--ag-grid-size) * 2);
}
.ag-theme-alpine .ag-standard-button:hover,
.ag-theme-alpine-dark .ag-standard-button:hover,
.ag-theme-alpine-auto-dark .ag-standard-button:hover {
  border-color: var(--ag-alpine-active-color);
  background-color: var(--ag-row-hover-color);
}
.ag-theme-alpine .ag-standard-button:active,
.ag-theme-alpine-dark .ag-standard-button:active,
.ag-theme-alpine-auto-dark .ag-standard-button:active {
  border-color: var(--ag-alpine-active-color);
  background-color: var(--ag-alpine-active-color);
  color: var(--ag-background-color);
}
.ag-theme-alpine .ag-standard-button:disabled,
.ag-theme-alpine-dark .ag-standard-button:disabled,
.ag-theme-alpine-auto-dark .ag-standard-button:disabled {
  color: var(--ag-disabled-foreground-color);
  background-color: var(--ag-input-disabled-background-color);
  border-color: var(--ag-input-disabled-border-color);
}
.ag-theme-alpine .ag-column-drop-vertical,
.ag-theme-alpine-dark .ag-column-drop-vertical,
.ag-theme-alpine-auto-dark .ag-column-drop-vertical {
  min-height: 75px;
}
.ag-theme-alpine .ag-column-drop-vertical-title-bar,
.ag-theme-alpine-dark .ag-column-drop-vertical-title-bar,
.ag-theme-alpine-auto-dark .ag-column-drop-vertical-title-bar {
  padding: calc(var(--ag-grid-size) * 2);
  padding-bottom: 0px;
}
.ag-theme-alpine .ag-column-drop-vertical-empty-message,
.ag-theme-alpine-dark .ag-column-drop-vertical-empty-message,
.ag-theme-alpine-auto-dark .ag-column-drop-vertical-empty-message {
  display: flex;
  align-items: center;
  border: dashed 1px;
  border-color: var(--ag-border-color);
  margin: calc(var(--ag-grid-size) * 2);
  padding: calc(var(--ag-grid-size) * 2);
}
.ag-theme-alpine .ag-column-drop-empty-message,
.ag-theme-alpine-dark .ag-column-drop-empty-message,
.ag-theme-alpine-auto-dark .ag-column-drop-empty-message {
  color: var(--ag-foreground-color);
  opacity: 0.75;
}
.ag-theme-alpine .ag-pill-select .ag-column-drop,
.ag-theme-alpine-dark .ag-pill-select .ag-column-drop,
.ag-theme-alpine-auto-dark .ag-pill-select .ag-column-drop {
  min-height: unset;
}
.ag-theme-alpine .ag-status-bar,
.ag-theme-alpine-dark .ag-status-bar,
.ag-theme-alpine-auto-dark .ag-status-bar {
  font-weight: normal;
}
.ag-theme-alpine .ag-status-name-value-value,
.ag-theme-alpine-dark .ag-status-name-value-value,
.ag-theme-alpine-auto-dark .ag-status-name-value-value {
  font-weight: 700;
}
.ag-theme-alpine .ag-paging-number,
.ag-theme-alpine .ag-paging-row-summary-panel-number,
.ag-theme-alpine-dark .ag-paging-number,
.ag-theme-alpine-dark .ag-paging-row-summary-panel-number,
.ag-theme-alpine-auto-dark .ag-paging-number,
.ag-theme-alpine-auto-dark .ag-paging-row-summary-panel-number {
  font-weight: 700;
}
.ag-theme-alpine .ag-column-drop-cell-button,
.ag-theme-alpine-dark .ag-column-drop-cell-button,
.ag-theme-alpine-auto-dark .ag-column-drop-cell-button {
  opacity: 0.5;
}
.ag-theme-alpine .ag-column-drop-cell-button:hover,
.ag-theme-alpine-dark .ag-column-drop-cell-button:hover,
.ag-theme-alpine-auto-dark .ag-column-drop-cell-button:hover {
  opacity: 0.75;
}
.ag-theme-alpine .ag-column-select-column-readonly.ag-icon-grip,
.ag-theme-alpine .ag-column-select-column-readonly .ag-icon-grip,
.ag-theme-alpine-dark .ag-column-select-column-readonly.ag-icon-grip,
.ag-theme-alpine-dark .ag-column-select-column-readonly .ag-icon-grip,
.ag-theme-alpine-auto-dark .ag-column-select-column-readonly.ag-icon-grip,
.ag-theme-alpine-auto-dark .ag-column-select-column-readonly .ag-icon-grip {
  opacity: 0.35;
}
.ag-theme-alpine .ag-header-cell-menu-button:hover,
.ag-theme-alpine .ag-header-cell-filter-button:hover,
.ag-theme-alpine .ag-side-button-button:hover,
.ag-theme-alpine .ag-tab:hover,
.ag-theme-alpine .ag-panel-title-bar-button:hover,
.ag-theme-alpine .ag-header-expand-icon:hover,
.ag-theme-alpine .ag-column-group-icons:hover,
.ag-theme-alpine .ag-set-filter-group-icons:hover,
.ag-theme-alpine .ag-group-expanded .ag-icon:hover,
.ag-theme-alpine .ag-group-contracted .ag-icon:hover,
.ag-theme-alpine .ag-chart-settings-prev:hover,
.ag-theme-alpine .ag-chart-settings-next:hover,
.ag-theme-alpine .ag-group-title-bar-icon:hover,
.ag-theme-alpine .ag-column-select-header-icon:hover,
.ag-theme-alpine .ag-floating-filter-button-button:hover,
.ag-theme-alpine .ag-filter-toolpanel-expand:hover,
.ag-theme-alpine .ag-chart-menu-icon:hover,
.ag-theme-alpine-dark .ag-header-cell-menu-button:hover,
.ag-theme-alpine-dark .ag-header-cell-filter-button:hover,
.ag-theme-alpine-dark .ag-side-button-button:hover,
.ag-theme-alpine-dark .ag-tab:hover,
.ag-theme-alpine-dark .ag-panel-title-bar-button:hover,
.ag-theme-alpine-dark .ag-header-expand-icon:hover,
.ag-theme-alpine-dark .ag-column-group-icons:hover,
.ag-theme-alpine-dark .ag-set-filter-group-icons:hover,
.ag-theme-alpine-dark .ag-group-expanded .ag-icon:hover,
.ag-theme-alpine-dark .ag-group-contracted .ag-icon:hover,
.ag-theme-alpine-dark .ag-chart-settings-prev:hover,
.ag-theme-alpine-dark .ag-chart-settings-next:hover,
.ag-theme-alpine-dark .ag-group-title-bar-icon:hover,
.ag-theme-alpine-dark .ag-column-select-header-icon:hover,
.ag-theme-alpine-dark .ag-floating-filter-button-button:hover,
.ag-theme-alpine-dark .ag-filter-toolpanel-expand:hover,
.ag-theme-alpine-dark .ag-chart-menu-icon:hover,
.ag-theme-alpine-auto-dark .ag-header-cell-menu-button:hover,
.ag-theme-alpine-auto-dark .ag-header-cell-filter-button:hover,
.ag-theme-alpine-auto-dark .ag-side-button-button:hover,
.ag-theme-alpine-auto-dark .ag-tab:hover,
.ag-theme-alpine-auto-dark .ag-panel-title-bar-button:hover,
.ag-theme-alpine-auto-dark .ag-header-expand-icon:hover,
.ag-theme-alpine-auto-dark .ag-column-group-icons:hover,
.ag-theme-alpine-auto-dark .ag-set-filter-group-icons:hover,
.ag-theme-alpine-auto-dark .ag-group-expanded .ag-icon:hover,
.ag-theme-alpine-auto-dark .ag-group-contracted .ag-icon:hover,
.ag-theme-alpine-auto-dark .ag-chart-settings-prev:hover,
.ag-theme-alpine-auto-dark .ag-chart-settings-next:hover,
.ag-theme-alpine-auto-dark .ag-group-title-bar-icon:hover,
.ag-theme-alpine-auto-dark .ag-column-select-header-icon:hover,
.ag-theme-alpine-auto-dark .ag-floating-filter-button-button:hover,
.ag-theme-alpine-auto-dark .ag-filter-toolpanel-expand:hover,
.ag-theme-alpine-auto-dark .ag-chart-menu-icon:hover {
  color: var(--ag-alpine-active-color);
}
.ag-theme-alpine .ag-header-cell-menu-button:hover .ag-icon,
.ag-theme-alpine .ag-header-cell-filter-button:hover .ag-icon,
.ag-theme-alpine .ag-side-button-button:hover .ag-icon,
.ag-theme-alpine .ag-panel-title-bar-button:hover .ag-icon,
.ag-theme-alpine .ag-floating-filter-button-button:hover .ag-icon,
.ag-theme-alpine-dark .ag-header-cell-menu-button:hover .ag-icon,
.ag-theme-alpine-dark .ag-header-cell-filter-button:hover .ag-icon,
.ag-theme-alpine-dark .ag-side-button-button:hover .ag-icon,
.ag-theme-alpine-dark .ag-panel-title-bar-button:hover .ag-icon,
.ag-theme-alpine-dark .ag-floating-filter-button-button:hover .ag-icon,
.ag-theme-alpine-auto-dark .ag-header-cell-menu-button:hover .ag-icon,
.ag-theme-alpine-auto-dark .ag-header-cell-filter-button:hover .ag-icon,
.ag-theme-alpine-auto-dark .ag-side-button-button:hover .ag-icon,
.ag-theme-alpine-auto-dark .ag-panel-title-bar-button:hover .ag-icon,
.ag-theme-alpine-auto-dark .ag-floating-filter-button-button:hover .ag-icon {
  color: inherit;
}
.ag-theme-alpine .ag-filter-active .ag-icon-filter,
.ag-theme-alpine-dark .ag-filter-active .ag-icon-filter,
.ag-theme-alpine-auto-dark .ag-filter-active .ag-icon-filter {
  color: var(--ag-alpine-active-color);
}
.ag-theme-alpine .ag-chart-settings-card-item.ag-not-selected:hover,
.ag-theme-alpine-dark .ag-chart-settings-card-item.ag-not-selected:hover,
.ag-theme-alpine-auto-dark .ag-chart-settings-card-item.ag-not-selected:hover {
  opacity: 0.35;
}
.ag-theme-alpine .ag-ltr .ag-panel-title-bar-button, .ag-theme-alpine-dark .ag-ltr .ag-panel-title-bar-button, .ag-theme-alpine-auto-dark .ag-ltr .ag-panel-title-bar-button {
  margin-left: calc(var(--ag-grid-size) * 2);
  margin-right: var(--ag-grid-size);
}

.ag-theme-alpine .ag-rtl .ag-panel-title-bar-button, .ag-theme-alpine-dark .ag-rtl .ag-panel-title-bar-button, .ag-theme-alpine-auto-dark .ag-rtl .ag-panel-title-bar-button {
  margin-right: calc(var(--ag-grid-size) * 2);
  margin-left: var(--ag-grid-size);
}

.ag-theme-alpine .ag-ltr .ag-filter-toolpanel-group-container, .ag-theme-alpine-dark .ag-ltr .ag-filter-toolpanel-group-container, .ag-theme-alpine-auto-dark .ag-ltr .ag-filter-toolpanel-group-container {
  padding-left: var(--ag-grid-size);
}

.ag-theme-alpine .ag-rtl .ag-filter-toolpanel-group-container, .ag-theme-alpine-dark .ag-rtl .ag-filter-toolpanel-group-container, .ag-theme-alpine-auto-dark .ag-rtl .ag-filter-toolpanel-group-container {
  padding-right: var(--ag-grid-size);
}

.ag-theme-alpine .ag-filter-toolpanel-instance-filter,
.ag-theme-alpine-dark .ag-filter-toolpanel-instance-filter,
.ag-theme-alpine-auto-dark .ag-filter-toolpanel-instance-filter {
  border: none;
  background-color: var(--ag-control-panel-background-color);
}
.ag-theme-alpine .ag-ltr .ag-filter-toolpanel-instance-filter, .ag-theme-alpine-dark .ag-ltr .ag-filter-toolpanel-instance-filter, .ag-theme-alpine-auto-dark .ag-ltr .ag-filter-toolpanel-instance-filter {
  border-left: dashed 1px;
  border-left-color: var(--ag-border-color);
  margin-left: calc(var(--ag-icon-size) * 0.5);
}

.ag-theme-alpine .ag-rtl .ag-filter-toolpanel-instance-filter, .ag-theme-alpine-dark .ag-rtl .ag-filter-toolpanel-instance-filter, .ag-theme-alpine-auto-dark .ag-rtl .ag-filter-toolpanel-instance-filter {
  border-right: dashed 1px;
  border-right-color: var(--ag-border-color);
  margin-right: calc(var(--ag-icon-size) * 0.5);
}

.ag-theme-alpine .ag-set-filter-list,
.ag-theme-alpine-dark .ag-set-filter-list,
.ag-theme-alpine-auto-dark .ag-set-filter-list {
  padding-top: calc(var(--ag-grid-size) * 0.5);
  padding-bottom: calc(var(--ag-grid-size) * 0.5);
}
.ag-theme-alpine .ag-layout-auto-height .ag-center-cols-viewport,
.ag-theme-alpine .ag-layout-auto-height .ag-center-cols-container,
.ag-theme-alpine .ag-layout-print .ag-center-cols-viewport,
.ag-theme-alpine .ag-layout-print .ag-center-cols-container,
.ag-theme-alpine-dark .ag-layout-auto-height .ag-center-cols-viewport,
.ag-theme-alpine-dark .ag-layout-auto-height .ag-center-cols-container,
.ag-theme-alpine-dark .ag-layout-print .ag-center-cols-viewport,
.ag-theme-alpine-dark .ag-layout-print .ag-center-cols-container,
.ag-theme-alpine-auto-dark .ag-layout-auto-height .ag-center-cols-viewport,
.ag-theme-alpine-auto-dark .ag-layout-auto-height .ag-center-cols-container,
.ag-theme-alpine-auto-dark .ag-layout-print .ag-center-cols-viewport,
.ag-theme-alpine-auto-dark .ag-layout-print .ag-center-cols-container {
  min-height: 150px;
}
.ag-theme-alpine .ag-date-time-list-page-entry-is-current,
.ag-theme-alpine-dark .ag-date-time-list-page-entry-is-current,
.ag-theme-alpine-auto-dark .ag-date-time-list-page-entry-is-current {
  background-color: var(--ag-alpine-active-color);
}
.ag-theme-alpine .ag-advanced-filter-builder-button,
.ag-theme-alpine-dark .ag-advanced-filter-builder-button,
.ag-theme-alpine-auto-dark .ag-advanced-filter-builder-button {
  padding: var(--ag-grid-size);
  font-weight: 600;
}
.ag-theme-alpine .ag-list-item-hovered::after,
.ag-theme-alpine-dark .ag-list-item-hovered::after,
.ag-theme-alpine-auto-dark .ag-list-item-hovered::after {
  background-color: var(--ag-alpine-active-color);
}
.ag-theme-alpine .ag-pill .ag-pill-button:hover,
.ag-theme-alpine-dark .ag-pill .ag-pill-button:hover,
.ag-theme-alpine-auto-dark .ag-pill .ag-pill-button:hover {
  color: var(--ag-alpine-active-color);
}
.ag-theme-alpine .ag-header-highlight-before::after,
.ag-theme-alpine .ag-header-highlight-after::after,
.ag-theme-alpine-dark .ag-header-highlight-before::after,
.ag-theme-alpine-dark .ag-header-highlight-after::after,
.ag-theme-alpine-auto-dark .ag-header-highlight-before::after,
.ag-theme-alpine-auto-dark .ag-header-highlight-after::after {
  background-color: var(--ag-alpine-active-color);
}
`,""]),p.A=r},8225:function(x,p,M){"use strict";var A=M(6758),F=M.n(A),D=M(935),f=M.n(D),v=f()(F());v.push([x.id,`.ag-theme-balham,
.ag-theme-balham-dark,
.ag-theme-balham-auto-dark {
  --ag-balham-active-color: #0091ea;
  --ag-foreground-color: #000;
  --ag-background-color: #fff;
  --ag-header-background-color: #f5f7f7;
  --ag-tooltip-background-color: #cbd0d3;
  --ag-subheader-background-color: #e2e9eb;
  --ag-control-panel-background-color: #f5f7f7;
  --ag-border-color: #bdc3c7;
  --ag-odd-row-background-color: #fcfdfe;
  --ag-row-hover-color: #ecf0f1;
  --ag-column-hover-color: #ecf0f1;
  --ag-input-border-color: #95a5a6;
  --ag-invalid-color: #e02525;
  --ag-input-disabled-background-color: #ebebeb;
  --ag-checkbox-unchecked-color: #7f8c8d;
  --ag-input-focus-border-color: #719ece;
  --ag-advanced-filter-join-pill-color: #f08e8d;
  --ag-advanced-filter-column-pill-color: #a6e194;
  --ag-advanced-filter-option-pill-color: #f3c08b;
  --ag-advanced-filter-value-pill-color: #85c0e4;
  --ag-input-focus-box-shadow: 0 0 2px 1px var(--ag-input-focus-border-color);
  --ag-range-selection-border-color: var(--ag-balham-active-color);
  --ag-checkbox-checked-color: var(--ag-balham-active-color);
  --ag-checkbox-background-color: var(--ag-background-color);
  --ag-panel-background-color: var(--ag-header-background-color);
  --ag-secondary-foreground-color: rgba(0, 0, 0, 0.54);
  --ag-disabled-foreground-color: rgba(0, 0, 0, 0.38);
  --ag-subheader-toolbar-background-color: rgba(226, 233, 235, 0.5);
  --ag-row-border-color: rgba(189, 195, 199, 0.58);
  --ag-chip-background-color: rgba(0, 0, 0, 0.1);
  --ag-range-selection-background-color: rgba(0, 145, 234, 0.2);
  --ag-range-selection-background-color-2: rgba(0, 145, 234, 0.36);
  --ag-range-selection-background-color-3: rgba(0, 145, 234, 0.49);
  --ag-range-selection-background-color-4: rgba(0, 145, 234, 0.59);
  --ag-selected-row-background-color: rgba(0, 145, 234, 0.28);
  --ag-header-column-separator-color: rgba(189, 195, 199, 0.5);
  --ag-input-disabled-border-color: rgba(149, 165, 166, 0.3);
  --ag-header-column-separator-display: block;
  --ag-header-column-separator-height: 50%;
  --ag-grid-size: 4px;
  --ag-icon-size: 16px;
  --ag-row-height: calc(var(--ag-grid-size) * 7);
  --ag-header-height: calc(var(--ag-grid-size) * 8);
  --ag-list-item-height: calc(var(--ag-grid-size) * 6);
  --ag-row-group-indent-size: calc(var(--ag-grid-size) * 3 + var(--ag-icon-size));
  --ag-cell-horizontal-padding: calc(var(--ag-grid-size) * 3);
  --ag-input-height: calc(var(--ag-grid-size) * 4);
  --ag-chart-menu-panel-width: 240px;
  --ag-font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell,
      "Helvetica Neue", sans-serif;
  --ag-font-size: 12px;
  --ag-icon-font-family: agGridBalham;
  --ag-border-radius: 2px;
  --ag-checkbox-border-radius: 3px;
  --ag-card-shadow: none;
}

.ag-theme-balham-dark {
  --ag-balham-active-color: #00b0ff;
  --ag-foreground-color: #f5f5f5;
  --ag-background-color: #2d3436;
  --ag-header-background-color: #1c1c1c;
  --ag-tooltip-background-color: #1c1f20;
  --ag-subheader-background-color: #111;
  --ag-control-panel-background-color: #202020;
  --ag-border-color: #424242;
  --ag-odd-row-background-color: #262c2e;
  --ag-row-hover-color: #3d4749;
  --ag-column-hover-color: #3d4749;
  --ag-input-border-color: #f0f0f0;
  --ag-input-disabled-background-color: rgba(48, 46, 46, 0.3);
  --ag-modal-overlay-background-color: rgba(45, 52, 54, 0.66);
  --ag-checkbox-unchecked-color: #ecf0f1;
  --ag-advanced-filter-join-pill-color: #7a3a37;
  --ag-advanced-filter-column-pill-color: #355f2d;
  --ag-advanced-filter-option-pill-color: #5a3168;
  --ag-advanced-filter-value-pill-color: #374c86;
  --ag-secondary-foreground-color: var(--ag-foreground-color);
  --ag-disabled-foreground-color: rgba(245, 245, 245, 0.38);
  --ag-subheader-toolbar-background-color: rgba(17, 17, 17, 0.5);
  --ag-row-border-color: #5c5c5c;
  --ag-chip-background-color: rgba(245, 245, 245, 0.08);
  --ag-range-selection-background-color: rgba(0, 176, 255, 0.2);
  --ag-range-selection-background-color-2: rgba(0, 176, 255, 0.36);
  --ag-range-selection-background-color-3: rgba(0, 176, 255, 0.49);
  --ag-range-selection-background-color-4: rgba(0, 176, 255, 0.59);
  --ag-selected-row-background-color: rgba(0, 176, 255, 0.28);
  --ag-header-column-separator-color: rgba(66, 66, 66, 0.5);
  --ag-input-disabled-border-color: rgba(240, 240, 240, 0.3);
  --ag-header-foreground-color: rgba(245, 245, 245, 0.64);
  --ag-toggle-button-off-background-color: transparent;
  --ag-toggle-button-off-border-color: var(--ag-foreground-color);
  --ag-range-selection-chart-category-background-color: rgba(26, 177, 74, 0.5);
  --ag-range-selection-chart-background-color: rgba(45, 166, 255, 0.5);
  --ag-input-focus-box-shadow: 0 0 4px 1.5px var(--ag-input-focus-border-color);
  --ag-row-loading-skeleton-effect-color: rgba(202, 203, 204, 0.4);
  color-scheme: dark;
}

@media (prefers-color-scheme: dark) {
  .ag-theme-balham-auto-dark {
    --ag-balham-active-color: #00b0ff;
    --ag-foreground-color: #f5f5f5;
    --ag-background-color: #2d3436;
    --ag-header-background-color: #1c1c1c;
    --ag-tooltip-background-color: #1c1f20;
    --ag-subheader-background-color: #111;
    --ag-control-panel-background-color: #202020;
    --ag-border-color: #424242;
    --ag-odd-row-background-color: #262c2e;
    --ag-row-hover-color: #3d4749;
    --ag-column-hover-color: #3d4749;
    --ag-input-border-color: #f0f0f0;
    --ag-input-disabled-background-color: rgba(48, 46, 46, 0.3);
    --ag-modal-overlay-background-color: rgba(45, 52, 54, 0.66);
    --ag-checkbox-unchecked-color: #ecf0f1;
    --ag-advanced-filter-join-pill-color: #7a3a37;
    --ag-advanced-filter-column-pill-color: #355f2d;
    --ag-advanced-filter-option-pill-color: #5a3168;
    --ag-advanced-filter-value-pill-color: #374c86;
    --ag-secondary-foreground-color: var(--ag-foreground-color);
    --ag-disabled-foreground-color: rgba(245, 245, 245, 0.38);
    --ag-subheader-toolbar-background-color: rgba(17, 17, 17, 0.5);
    --ag-row-border-color: #5c5c5c;
    --ag-chip-background-color: rgba(245, 245, 245, 0.08);
    --ag-range-selection-background-color: rgba(0, 176, 255, 0.2);
    --ag-range-selection-background-color-2: rgba(0, 176, 255, 0.36);
    --ag-range-selection-background-color-3: rgba(0, 176, 255, 0.49);
    --ag-range-selection-background-color-4: rgba(0, 176, 255, 0.59);
    --ag-selected-row-background-color: rgba(0, 176, 255, 0.28);
    --ag-header-column-separator-color: rgba(66, 66, 66, 0.5);
    --ag-input-disabled-border-color: rgba(240, 240, 240, 0.3);
    --ag-header-foreground-color: rgba(245, 245, 245, 0.64);
    --ag-toggle-button-off-background-color: transparent;
    --ag-toggle-button-off-border-color: var(--ag-foreground-color);
    --ag-range-selection-chart-category-background-color: rgba(26, 177, 74, 0.5);
    --ag-range-selection-chart-background-color: rgba(45, 166, 255, 0.5);
    --ag-input-focus-box-shadow: 0 0 4px 1.5px var(--ag-input-focus-border-color);
    --ag-row-loading-skeleton-effect-color: rgba(202, 203, 204, 0.4);
    color-scheme: dark;
  }
}
.ag-theme-balham .ag-filter-toolpanel-header,
.ag-theme-balham .ag-filter-toolpanel-search,
.ag-theme-balham .ag-status-bar,
.ag-theme-balham .ag-header-row,
.ag-theme-balham .ag-multi-filter-group-title-bar,
.ag-theme-balham-dark .ag-filter-toolpanel-header,
.ag-theme-balham-dark .ag-filter-toolpanel-search,
.ag-theme-balham-dark .ag-status-bar,
.ag-theme-balham-dark .ag-header-row,
.ag-theme-balham-dark .ag-multi-filter-group-title-bar,
.ag-theme-balham-auto-dark .ag-filter-toolpanel-header,
.ag-theme-balham-auto-dark .ag-filter-toolpanel-search,
.ag-theme-balham-auto-dark .ag-status-bar,
.ag-theme-balham-auto-dark .ag-header-row,
.ag-theme-balham-auto-dark .ag-multi-filter-group-title-bar {
  font-weight: 600;
  color: var(--ag-header-foreground-color);
}
.ag-theme-balham .ag-ltr input[class^=ag-]:not([type]), .ag-theme-balham .ag-ltr input[class^=ag-][type=text], .ag-theme-balham .ag-ltr input[class^=ag-][type=number], .ag-theme-balham .ag-ltr input[class^=ag-][type=tel], .ag-theme-balham .ag-ltr input[class^=ag-][type=date], .ag-theme-balham .ag-ltr input[class^=ag-][type=datetime-local], .ag-theme-balham .ag-ltr textarea[class^=ag-], .ag-theme-balham-dark .ag-ltr input[class^=ag-]:not([type]), .ag-theme-balham-dark .ag-ltr input[class^=ag-][type=text], .ag-theme-balham-dark .ag-ltr input[class^=ag-][type=number], .ag-theme-balham-dark .ag-ltr input[class^=ag-][type=tel], .ag-theme-balham-dark .ag-ltr input[class^=ag-][type=date], .ag-theme-balham-dark .ag-ltr input[class^=ag-][type=datetime-local], .ag-theme-balham-dark .ag-ltr textarea[class^=ag-], .ag-theme-balham-auto-dark .ag-ltr input[class^=ag-]:not([type]), .ag-theme-balham-auto-dark .ag-ltr input[class^=ag-][type=text], .ag-theme-balham-auto-dark .ag-ltr input[class^=ag-][type=number], .ag-theme-balham-auto-dark .ag-ltr input[class^=ag-][type=tel], .ag-theme-balham-auto-dark .ag-ltr input[class^=ag-][type=date], .ag-theme-balham-auto-dark .ag-ltr input[class^=ag-][type=datetime-local], .ag-theme-balham-auto-dark .ag-ltr textarea[class^=ag-] {
  padding-left: var(--ag-grid-size);
}

.ag-theme-balham .ag-rtl input[class^=ag-]:not([type]), .ag-theme-balham .ag-rtl input[class^=ag-][type=text], .ag-theme-balham .ag-rtl input[class^=ag-][type=number], .ag-theme-balham .ag-rtl input[class^=ag-][type=tel], .ag-theme-balham .ag-rtl input[class^=ag-][type=date], .ag-theme-balham .ag-rtl input[class^=ag-][type=datetime-local], .ag-theme-balham .ag-rtl textarea[class^=ag-], .ag-theme-balham-dark .ag-rtl input[class^=ag-]:not([type]), .ag-theme-balham-dark .ag-rtl input[class^=ag-][type=text], .ag-theme-balham-dark .ag-rtl input[class^=ag-][type=number], .ag-theme-balham-dark .ag-rtl input[class^=ag-][type=tel], .ag-theme-balham-dark .ag-rtl input[class^=ag-][type=date], .ag-theme-balham-dark .ag-rtl input[class^=ag-][type=datetime-local], .ag-theme-balham-dark .ag-rtl textarea[class^=ag-], .ag-theme-balham-auto-dark .ag-rtl input[class^=ag-]:not([type]), .ag-theme-balham-auto-dark .ag-rtl input[class^=ag-][type=text], .ag-theme-balham-auto-dark .ag-rtl input[class^=ag-][type=number], .ag-theme-balham-auto-dark .ag-rtl input[class^=ag-][type=tel], .ag-theme-balham-auto-dark .ag-rtl input[class^=ag-][type=date], .ag-theme-balham-auto-dark .ag-rtl input[class^=ag-][type=datetime-local], .ag-theme-balham-auto-dark .ag-rtl textarea[class^=ag-] {
  padding-right: var(--ag-grid-size);
}

.ag-theme-balham .ag-column-drop-vertical-empty-message,
.ag-theme-balham .ag-status-bar,
.ag-theme-balham-dark .ag-column-drop-vertical-empty-message,
.ag-theme-balham-dark .ag-status-bar,
.ag-theme-balham-auto-dark .ag-column-drop-vertical-empty-message,
.ag-theme-balham-auto-dark .ag-status-bar {
  font-weight: 600;
  color: var(--ag-disabled-foreground-color);
}
.ag-theme-balham.ag-dnd-ghost,
.ag-theme-balham-dark.ag-dnd-ghost,
.ag-theme-balham-auto-dark.ag-dnd-ghost {
  font-size: var(--ag-font-size);
  font-weight: 600;
}
.ag-theme-balham .ag-tab,
.ag-theme-balham-dark .ag-tab,
.ag-theme-balham-auto-dark .ag-tab {
  border: 1px solid transparent;
  padding: var(--ag-grid-size) calc(var(--ag-grid-size) * 2);
  margin: var(--ag-grid-size);
  margin-bottom: -1px;
}
.ag-theme-balham .ag-tab-selected,
.ag-theme-balham-dark .ag-tab-selected,
.ag-theme-balham-auto-dark .ag-tab-selected {
  background-color: var(--ag-background-color);
  border-color: var(--ag-border-color);
  border-bottom-color: transparent;
}
.ag-theme-balham .ag-tabs-header,
.ag-theme-balham-dark .ag-tabs-header,
.ag-theme-balham-auto-dark .ag-tabs-header {
  border-bottom: 1px solid var(--ag-border-color);
}
.ag-theme-balham .ag-column-drop-cell,
.ag-theme-balham-dark .ag-column-drop-cell,
.ag-theme-balham-auto-dark .ag-column-drop-cell {
  height: calc(var(--ag-grid-size) * 6);
}
.ag-theme-balham .ag-column-drop-vertical-title,
.ag-theme-balham-dark .ag-column-drop-vertical-title,
.ag-theme-balham-auto-dark .ag-column-drop-vertical-title {
  color: var(--ag-foreground-color);
}
.ag-theme-balham .ag-column-drop-vertical-cell,
.ag-theme-balham-dark .ag-column-drop-vertical-cell,
.ag-theme-balham-auto-dark .ag-column-drop-vertical-cell {
  margin-left: calc(var(--ag-grid-size) * 2);
  margin-right: calc(var(--ag-grid-size) * 2);
}
.ag-theme-balham .ag-column-drop-vertical-cell-text,
.ag-theme-balham-dark .ag-column-drop-vertical-cell-text,
.ag-theme-balham-auto-dark .ag-column-drop-vertical-cell-text {
  margin-left: calc(var(--ag-grid-size) * 2);
}
.ag-theme-balham .ag-column-drop-vertical-icon,
.ag-theme-balham-dark .ag-column-drop-vertical-icon,
.ag-theme-balham-auto-dark .ag-column-drop-vertical-icon {
  color: var(--ag-secondary-foreground-color);
}
.ag-theme-balham .ag-ltr .ag-column-drop-vertical-empty-message, .ag-theme-balham-dark .ag-ltr .ag-column-drop-vertical-empty-message, .ag-theme-balham-auto-dark .ag-ltr .ag-column-drop-vertical-empty-message {
  padding-left: calc(var(--ag-icon-size) + var(--ag-grid-size) * 2);
  padding-right: var(--ag-grid-size);
}

.ag-theme-balham .ag-rtl .ag-column-drop-vertical-empty-message, .ag-theme-balham-dark .ag-rtl .ag-column-drop-vertical-empty-message, .ag-theme-balham-auto-dark .ag-rtl .ag-column-drop-vertical-empty-message {
  padding-right: calc(var(--ag-icon-size) + var(--ag-grid-size) * 2);
  padding-left: var(--ag-grid-size);
}

.ag-theme-balham .ag-column-drop-horizontal,
.ag-theme-balham-dark .ag-column-drop-horizontal,
.ag-theme-balham-auto-dark .ag-column-drop-horizontal {
  height: var(--ag-header-height);
}
.ag-theme-balham .ag-column-drop-empty,
.ag-theme-balham-dark .ag-column-drop-empty,
.ag-theme-balham-auto-dark .ag-column-drop-empty {
  color: var(--ag-disabled-foreground-color);
}
.ag-theme-balham .ag-column-drop-horizontal-cell-text,
.ag-theme-balham-dark .ag-column-drop-horizontal-cell-text,
.ag-theme-balham-auto-dark .ag-column-drop-horizontal-cell-text {
  margin-left: calc(var(--ag-grid-size) * 2);
}
.ag-theme-balham .ag-column-drop-vertical,
.ag-theme-balham-dark .ag-column-drop-vertical,
.ag-theme-balham-auto-dark .ag-column-drop-vertical {
  padding-top: calc(var(--ag-grid-size) * 2);
}
.ag-theme-balham .ag-column-select-column-readonly.ag-icon-grip,
.ag-theme-balham .ag-column-select-column-readonly .ag-icon-grip,
.ag-theme-balham-dark .ag-column-select-column-readonly.ag-icon-grip,
.ag-theme-balham-dark .ag-column-select-column-readonly .ag-icon-grip,
.ag-theme-balham-auto-dark .ag-column-select-column-readonly.ag-icon-grip,
.ag-theme-balham-auto-dark .ag-column-select-column-readonly .ag-icon-grip {
  opacity: 0.35;
}
.ag-theme-balham .ag-menu-header,
.ag-theme-balham-dark .ag-menu-header,
.ag-theme-balham-auto-dark .ag-menu-header {
  background-color: var(--ag-header-background-color);
}
.ag-theme-balham .ag-overlay-loading-center,
.ag-theme-balham-dark .ag-overlay-loading-center,
.ag-theme-balham-auto-dark .ag-overlay-loading-center {
  background-color: var(--ag-background-color);
  border: 1px solid var(--ag-border-color);
  color: var(--ag-foreground-color);
  padding: calc(var(--ag-grid-size) * 4);
}
.ag-theme-balham .ag-tooltip,
.ag-theme-balham-dark .ag-tooltip,
.ag-theme-balham-auto-dark .ag-tooltip {
  border: none;
}
.ag-theme-balham .ag-panel-title-bar-button-icon,
.ag-theme-balham-dark .ag-panel-title-bar-button-icon,
.ag-theme-balham-auto-dark .ag-panel-title-bar-button-icon {
  font-size: calc(var(--ag-icon-size) + var(--ag-grid-size));
}
.ag-theme-balham .ag-panel,
.ag-theme-balham-dark .ag-panel,
.ag-theme-balham-auto-dark .ag-panel {
  background-color: var(--ag-header-background-color);
}
.ag-theme-balham .ag-chart-data-section,
.ag-theme-balham .ag-chart-format-section,
.ag-theme-balham .ag-chart-advanced-settings-section,
.ag-theme-balham-dark .ag-chart-data-section,
.ag-theme-balham-dark .ag-chart-format-section,
.ag-theme-balham-dark .ag-chart-advanced-settings-section,
.ag-theme-balham-auto-dark .ag-chart-data-section,
.ag-theme-balham-auto-dark .ag-chart-format-section,
.ag-theme-balham-auto-dark .ag-chart-advanced-settings-section {
  padding-bottom: calc(var(--ag-grid-size) * 0.5);
}
.ag-theme-balham .ag-group-toolbar,
.ag-theme-balham-dark .ag-group-toolbar,
.ag-theme-balham-auto-dark .ag-group-toolbar {
  background-color: var(--ag-subheader-toolbar-background-color);
}
.ag-theme-balham .ag-chart-tab,
.ag-theme-balham-dark .ag-chart-tab,
.ag-theme-balham-auto-dark .ag-chart-tab {
  padding-top: calc(var(--ag-grid-size) * 0.5);
}
.ag-theme-balham .ag-charts-format-sub-level-group-item,
.ag-theme-balham-dark .ag-charts-format-sub-level-group-item,
.ag-theme-balham-auto-dark .ag-charts-format-sub-level-group-item {
  margin-bottom: calc(var(--ag-grid-size) * 1.5);
}
.ag-theme-balham .ag-filter-active .ag-icon-filter,
.ag-theme-balham-dark .ag-filter-active .ag-icon-filter,
.ag-theme-balham-auto-dark .ag-filter-active .ag-icon-filter {
  color: var(--ag-balham-active-color);
}
.ag-theme-balham .ag-color-input input[class^=ag-][type=text].ag-input-field-input,
.ag-theme-balham-dark .ag-color-input input[class^=ag-][type=text].ag-input-field-input,
.ag-theme-balham-auto-dark .ag-color-input input[class^=ag-][type=text].ag-input-field-input {
  min-height: calc(var(--ag-icon-size) + 4px);
}
.ag-theme-balham .ag-list-item-hovered::after,
.ag-theme-balham-dark .ag-list-item-hovered::after,
.ag-theme-balham-auto-dark .ag-list-item-hovered::after {
  background-color: var(--ag-balham-active-color);
}
.ag-theme-balham .ag-pill .ag-pill-button:hover,
.ag-theme-balham-dark .ag-pill .ag-pill-button:hover,
.ag-theme-balham-auto-dark .ag-pill .ag-pill-button:hover {
  color: var(--ag-balham-active-color);
}
.ag-theme-balham .ag-header-highlight-before::after,
.ag-theme-balham .ag-header-highlight-after::after,
.ag-theme-balham-dark .ag-header-highlight-before::after,
.ag-theme-balham-dark .ag-header-highlight-after::after,
.ag-theme-balham-auto-dark .ag-header-highlight-before::after,
.ag-theme-balham-auto-dark .ag-header-highlight-after::after {
  background-color: var(--ag-balham-active-color);
}
`,""]),p.A=v},5251:function(x,p,M){"use strict";var A=M(6758),F=M.n(A),D=M(935),f=M.n(D),v=M(62),u=M.n(v),s=new URL(M(9377),M.b),r=f()(F()),d=u()(s);r.push([x.id,`@font-face {
  font-family: "agGridBalham";
  src: url(`+d+`);
  font-weight: normal;
  font-style: normal;
}
.ag-theme-balham,
.ag-theme-balham-dark,
.ag-theme-balham-auto-dark {
  --ag-balham-active-color: #0091ea;
  --ag-foreground-color: #000;
  --ag-background-color: #fff;
  --ag-header-background-color: #f5f7f7;
  --ag-tooltip-background-color: #cbd0d3;
  --ag-subheader-background-color: #e2e9eb;
  --ag-control-panel-background-color: #f5f7f7;
  --ag-border-color: #bdc3c7;
  --ag-odd-row-background-color: #fcfdfe;
  --ag-row-hover-color: #ecf0f1;
  --ag-column-hover-color: #ecf0f1;
  --ag-input-border-color: #95a5a6;
  --ag-invalid-color: #e02525;
  --ag-input-disabled-background-color: #ebebeb;
  --ag-checkbox-unchecked-color: #7f8c8d;
  --ag-input-focus-border-color: #719ece;
  --ag-advanced-filter-join-pill-color: #f08e8d;
  --ag-advanced-filter-column-pill-color: #a6e194;
  --ag-advanced-filter-option-pill-color: #f3c08b;
  --ag-advanced-filter-value-pill-color: #85c0e4;
  --ag-input-focus-box-shadow: 0 0 2px 1px var(--ag-input-focus-border-color);
  --ag-range-selection-border-color: var(--ag-balham-active-color);
  --ag-checkbox-checked-color: var(--ag-balham-active-color);
  --ag-checkbox-background-color: var(--ag-background-color);
  --ag-panel-background-color: var(--ag-header-background-color);
  --ag-secondary-foreground-color: rgba(0, 0, 0, 0.54);
  --ag-disabled-foreground-color: rgba(0, 0, 0, 0.38);
  --ag-subheader-toolbar-background-color: rgba(226, 233, 235, 0.5);
  --ag-row-border-color: rgba(189, 195, 199, 0.58);
  --ag-chip-background-color: rgba(0, 0, 0, 0.1);
  --ag-range-selection-background-color: rgba(0, 145, 234, 0.2);
  --ag-range-selection-background-color-2: rgba(0, 145, 234, 0.36);
  --ag-range-selection-background-color-3: rgba(0, 145, 234, 0.49);
  --ag-range-selection-background-color-4: rgba(0, 145, 234, 0.59);
  --ag-selected-row-background-color: rgba(0, 145, 234, 0.28);
  --ag-header-column-separator-color: rgba(189, 195, 199, 0.5);
  --ag-input-disabled-border-color: rgba(149, 165, 166, 0.3);
  --ag-header-column-separator-display: block;
  --ag-header-column-separator-height: 50%;
  --ag-grid-size: 4px;
  --ag-icon-size: 16px;
  --ag-row-height: calc(var(--ag-grid-size) * 7);
  --ag-header-height: calc(var(--ag-grid-size) * 8);
  --ag-list-item-height: calc(var(--ag-grid-size) * 6);
  --ag-row-group-indent-size: calc(var(--ag-grid-size) * 3 + var(--ag-icon-size));
  --ag-cell-horizontal-padding: calc(var(--ag-grid-size) * 3);
  --ag-input-height: calc(var(--ag-grid-size) * 4);
  --ag-chart-menu-panel-width: 240px;
  --ag-font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell,
      "Helvetica Neue", sans-serif;
  --ag-font-size: 12px;
  --ag-icon-font-family: agGridBalham;
  --ag-border-radius: 2px;
  --ag-checkbox-border-radius: 3px;
  --ag-card-shadow: none;
}

.ag-theme-balham-dark {
  --ag-balham-active-color: #00b0ff;
  --ag-foreground-color: #f5f5f5;
  --ag-background-color: #2d3436;
  --ag-header-background-color: #1c1c1c;
  --ag-tooltip-background-color: #1c1f20;
  --ag-subheader-background-color: #111;
  --ag-control-panel-background-color: #202020;
  --ag-border-color: #424242;
  --ag-odd-row-background-color: #262c2e;
  --ag-row-hover-color: #3d4749;
  --ag-column-hover-color: #3d4749;
  --ag-input-border-color: #f0f0f0;
  --ag-input-disabled-background-color: rgba(48, 46, 46, 0.3);
  --ag-modal-overlay-background-color: rgba(45, 52, 54, 0.66);
  --ag-checkbox-unchecked-color: #ecf0f1;
  --ag-advanced-filter-join-pill-color: #7a3a37;
  --ag-advanced-filter-column-pill-color: #355f2d;
  --ag-advanced-filter-option-pill-color: #5a3168;
  --ag-advanced-filter-value-pill-color: #374c86;
  --ag-secondary-foreground-color: var(--ag-foreground-color);
  --ag-disabled-foreground-color: rgba(245, 245, 245, 0.38);
  --ag-subheader-toolbar-background-color: rgba(17, 17, 17, 0.5);
  --ag-row-border-color: #5c5c5c;
  --ag-chip-background-color: rgba(245, 245, 245, 0.08);
  --ag-range-selection-background-color: rgba(0, 176, 255, 0.2);
  --ag-range-selection-background-color-2: rgba(0, 176, 255, 0.36);
  --ag-range-selection-background-color-3: rgba(0, 176, 255, 0.49);
  --ag-range-selection-background-color-4: rgba(0, 176, 255, 0.59);
  --ag-selected-row-background-color: rgba(0, 176, 255, 0.28);
  --ag-header-column-separator-color: rgba(66, 66, 66, 0.5);
  --ag-input-disabled-border-color: rgba(240, 240, 240, 0.3);
  --ag-header-foreground-color: rgba(245, 245, 245, 0.64);
  --ag-toggle-button-off-background-color: transparent;
  --ag-toggle-button-off-border-color: var(--ag-foreground-color);
  --ag-range-selection-chart-category-background-color: rgba(26, 177, 74, 0.5);
  --ag-range-selection-chart-background-color: rgba(45, 166, 255, 0.5);
  --ag-input-focus-box-shadow: 0 0 4px 1.5px var(--ag-input-focus-border-color);
  --ag-row-loading-skeleton-effect-color: rgba(202, 203, 204, 0.4);
  color-scheme: dark;
}

@media (prefers-color-scheme: dark) {
  .ag-theme-balham-auto-dark {
    --ag-balham-active-color: #00b0ff;
    --ag-foreground-color: #f5f5f5;
    --ag-background-color: #2d3436;
    --ag-header-background-color: #1c1c1c;
    --ag-tooltip-background-color: #1c1f20;
    --ag-subheader-background-color: #111;
    --ag-control-panel-background-color: #202020;
    --ag-border-color: #424242;
    --ag-odd-row-background-color: #262c2e;
    --ag-row-hover-color: #3d4749;
    --ag-column-hover-color: #3d4749;
    --ag-input-border-color: #f0f0f0;
    --ag-input-disabled-background-color: rgba(48, 46, 46, 0.3);
    --ag-modal-overlay-background-color: rgba(45, 52, 54, 0.66);
    --ag-checkbox-unchecked-color: #ecf0f1;
    --ag-advanced-filter-join-pill-color: #7a3a37;
    --ag-advanced-filter-column-pill-color: #355f2d;
    --ag-advanced-filter-option-pill-color: #5a3168;
    --ag-advanced-filter-value-pill-color: #374c86;
    --ag-secondary-foreground-color: var(--ag-foreground-color);
    --ag-disabled-foreground-color: rgba(245, 245, 245, 0.38);
    --ag-subheader-toolbar-background-color: rgba(17, 17, 17, 0.5);
    --ag-row-border-color: #5c5c5c;
    --ag-chip-background-color: rgba(245, 245, 245, 0.08);
    --ag-range-selection-background-color: rgba(0, 176, 255, 0.2);
    --ag-range-selection-background-color-2: rgba(0, 176, 255, 0.36);
    --ag-range-selection-background-color-3: rgba(0, 176, 255, 0.49);
    --ag-range-selection-background-color-4: rgba(0, 176, 255, 0.59);
    --ag-selected-row-background-color: rgba(0, 176, 255, 0.28);
    --ag-header-column-separator-color: rgba(66, 66, 66, 0.5);
    --ag-input-disabled-border-color: rgba(240, 240, 240, 0.3);
    --ag-header-foreground-color: rgba(245, 245, 245, 0.64);
    --ag-toggle-button-off-background-color: transparent;
    --ag-toggle-button-off-border-color: var(--ag-foreground-color);
    --ag-range-selection-chart-category-background-color: rgba(26, 177, 74, 0.5);
    --ag-range-selection-chart-background-color: rgba(45, 166, 255, 0.5);
    --ag-input-focus-box-shadow: 0 0 4px 1.5px var(--ag-input-focus-border-color);
    --ag-row-loading-skeleton-effect-color: rgba(202, 203, 204, 0.4);
    color-scheme: dark;
  }
}
.ag-theme-balham .ag-filter-toolpanel-header,
.ag-theme-balham .ag-filter-toolpanel-search,
.ag-theme-balham .ag-status-bar,
.ag-theme-balham .ag-header-row,
.ag-theme-balham .ag-multi-filter-group-title-bar,
.ag-theme-balham-dark .ag-filter-toolpanel-header,
.ag-theme-balham-dark .ag-filter-toolpanel-search,
.ag-theme-balham-dark .ag-status-bar,
.ag-theme-balham-dark .ag-header-row,
.ag-theme-balham-dark .ag-multi-filter-group-title-bar,
.ag-theme-balham-auto-dark .ag-filter-toolpanel-header,
.ag-theme-balham-auto-dark .ag-filter-toolpanel-search,
.ag-theme-balham-auto-dark .ag-status-bar,
.ag-theme-balham-auto-dark .ag-header-row,
.ag-theme-balham-auto-dark .ag-multi-filter-group-title-bar {
  font-weight: 600;
  color: var(--ag-header-foreground-color);
}
.ag-theme-balham .ag-ltr input[class^=ag-]:not([type]), .ag-theme-balham .ag-ltr input[class^=ag-][type=text], .ag-theme-balham .ag-ltr input[class^=ag-][type=number], .ag-theme-balham .ag-ltr input[class^=ag-][type=tel], .ag-theme-balham .ag-ltr input[class^=ag-][type=date], .ag-theme-balham .ag-ltr input[class^=ag-][type=datetime-local], .ag-theme-balham .ag-ltr textarea[class^=ag-], .ag-theme-balham-dark .ag-ltr input[class^=ag-]:not([type]), .ag-theme-balham-dark .ag-ltr input[class^=ag-][type=text], .ag-theme-balham-dark .ag-ltr input[class^=ag-][type=number], .ag-theme-balham-dark .ag-ltr input[class^=ag-][type=tel], .ag-theme-balham-dark .ag-ltr input[class^=ag-][type=date], .ag-theme-balham-dark .ag-ltr input[class^=ag-][type=datetime-local], .ag-theme-balham-dark .ag-ltr textarea[class^=ag-], .ag-theme-balham-auto-dark .ag-ltr input[class^=ag-]:not([type]), .ag-theme-balham-auto-dark .ag-ltr input[class^=ag-][type=text], .ag-theme-balham-auto-dark .ag-ltr input[class^=ag-][type=number], .ag-theme-balham-auto-dark .ag-ltr input[class^=ag-][type=tel], .ag-theme-balham-auto-dark .ag-ltr input[class^=ag-][type=date], .ag-theme-balham-auto-dark .ag-ltr input[class^=ag-][type=datetime-local], .ag-theme-balham-auto-dark .ag-ltr textarea[class^=ag-] {
  padding-left: var(--ag-grid-size);
}

.ag-theme-balham .ag-rtl input[class^=ag-]:not([type]), .ag-theme-balham .ag-rtl input[class^=ag-][type=text], .ag-theme-balham .ag-rtl input[class^=ag-][type=number], .ag-theme-balham .ag-rtl input[class^=ag-][type=tel], .ag-theme-balham .ag-rtl input[class^=ag-][type=date], .ag-theme-balham .ag-rtl input[class^=ag-][type=datetime-local], .ag-theme-balham .ag-rtl textarea[class^=ag-], .ag-theme-balham-dark .ag-rtl input[class^=ag-]:not([type]), .ag-theme-balham-dark .ag-rtl input[class^=ag-][type=text], .ag-theme-balham-dark .ag-rtl input[class^=ag-][type=number], .ag-theme-balham-dark .ag-rtl input[class^=ag-][type=tel], .ag-theme-balham-dark .ag-rtl input[class^=ag-][type=date], .ag-theme-balham-dark .ag-rtl input[class^=ag-][type=datetime-local], .ag-theme-balham-dark .ag-rtl textarea[class^=ag-], .ag-theme-balham-auto-dark .ag-rtl input[class^=ag-]:not([type]), .ag-theme-balham-auto-dark .ag-rtl input[class^=ag-][type=text], .ag-theme-balham-auto-dark .ag-rtl input[class^=ag-][type=number], .ag-theme-balham-auto-dark .ag-rtl input[class^=ag-][type=tel], .ag-theme-balham-auto-dark .ag-rtl input[class^=ag-][type=date], .ag-theme-balham-auto-dark .ag-rtl input[class^=ag-][type=datetime-local], .ag-theme-balham-auto-dark .ag-rtl textarea[class^=ag-] {
  padding-right: var(--ag-grid-size);
}

.ag-theme-balham .ag-column-drop-vertical-empty-message,
.ag-theme-balham .ag-status-bar,
.ag-theme-balham-dark .ag-column-drop-vertical-empty-message,
.ag-theme-balham-dark .ag-status-bar,
.ag-theme-balham-auto-dark .ag-column-drop-vertical-empty-message,
.ag-theme-balham-auto-dark .ag-status-bar {
  font-weight: 600;
  color: var(--ag-disabled-foreground-color);
}
.ag-theme-balham.ag-dnd-ghost,
.ag-theme-balham-dark.ag-dnd-ghost,
.ag-theme-balham-auto-dark.ag-dnd-ghost {
  font-size: var(--ag-font-size);
  font-weight: 600;
}
.ag-theme-balham .ag-tab,
.ag-theme-balham-dark .ag-tab,
.ag-theme-balham-auto-dark .ag-tab {
  border: 1px solid transparent;
  padding: var(--ag-grid-size) calc(var(--ag-grid-size) * 2);
  margin: var(--ag-grid-size);
  margin-bottom: -1px;
}
.ag-theme-balham .ag-tab-selected,
.ag-theme-balham-dark .ag-tab-selected,
.ag-theme-balham-auto-dark .ag-tab-selected {
  background-color: var(--ag-background-color);
  border-color: var(--ag-border-color);
  border-bottom-color: transparent;
}
.ag-theme-balham .ag-tabs-header,
.ag-theme-balham-dark .ag-tabs-header,
.ag-theme-balham-auto-dark .ag-tabs-header {
  border-bottom: 1px solid var(--ag-border-color);
}
.ag-theme-balham .ag-column-drop-cell,
.ag-theme-balham-dark .ag-column-drop-cell,
.ag-theme-balham-auto-dark .ag-column-drop-cell {
  height: calc(var(--ag-grid-size) * 6);
}
.ag-theme-balham .ag-column-drop-vertical-title,
.ag-theme-balham-dark .ag-column-drop-vertical-title,
.ag-theme-balham-auto-dark .ag-column-drop-vertical-title {
  color: var(--ag-foreground-color);
}
.ag-theme-balham .ag-column-drop-vertical-cell,
.ag-theme-balham-dark .ag-column-drop-vertical-cell,
.ag-theme-balham-auto-dark .ag-column-drop-vertical-cell {
  margin-left: calc(var(--ag-grid-size) * 2);
  margin-right: calc(var(--ag-grid-size) * 2);
}
.ag-theme-balham .ag-column-drop-vertical-cell-text,
.ag-theme-balham-dark .ag-column-drop-vertical-cell-text,
.ag-theme-balham-auto-dark .ag-column-drop-vertical-cell-text {
  margin-left: calc(var(--ag-grid-size) * 2);
}
.ag-theme-balham .ag-column-drop-vertical-icon,
.ag-theme-balham-dark .ag-column-drop-vertical-icon,
.ag-theme-balham-auto-dark .ag-column-drop-vertical-icon {
  color: var(--ag-secondary-foreground-color);
}
.ag-theme-balham .ag-ltr .ag-column-drop-vertical-empty-message, .ag-theme-balham-dark .ag-ltr .ag-column-drop-vertical-empty-message, .ag-theme-balham-auto-dark .ag-ltr .ag-column-drop-vertical-empty-message {
  padding-left: calc(var(--ag-icon-size) + var(--ag-grid-size) * 2);
  padding-right: var(--ag-grid-size);
}

.ag-theme-balham .ag-rtl .ag-column-drop-vertical-empty-message, .ag-theme-balham-dark .ag-rtl .ag-column-drop-vertical-empty-message, .ag-theme-balham-auto-dark .ag-rtl .ag-column-drop-vertical-empty-message {
  padding-right: calc(var(--ag-icon-size) + var(--ag-grid-size) * 2);
  padding-left: var(--ag-grid-size);
}

.ag-theme-balham .ag-column-drop-horizontal,
.ag-theme-balham-dark .ag-column-drop-horizontal,
.ag-theme-balham-auto-dark .ag-column-drop-horizontal {
  height: var(--ag-header-height);
}
.ag-theme-balham .ag-column-drop-empty,
.ag-theme-balham-dark .ag-column-drop-empty,
.ag-theme-balham-auto-dark .ag-column-drop-empty {
  color: var(--ag-disabled-foreground-color);
}
.ag-theme-balham .ag-column-drop-horizontal-cell-text,
.ag-theme-balham-dark .ag-column-drop-horizontal-cell-text,
.ag-theme-balham-auto-dark .ag-column-drop-horizontal-cell-text {
  margin-left: calc(var(--ag-grid-size) * 2);
}
.ag-theme-balham .ag-column-drop-vertical,
.ag-theme-balham-dark .ag-column-drop-vertical,
.ag-theme-balham-auto-dark .ag-column-drop-vertical {
  padding-top: calc(var(--ag-grid-size) * 2);
}
.ag-theme-balham .ag-column-select-column-readonly.ag-icon-grip,
.ag-theme-balham .ag-column-select-column-readonly .ag-icon-grip,
.ag-theme-balham-dark .ag-column-select-column-readonly.ag-icon-grip,
.ag-theme-balham-dark .ag-column-select-column-readonly .ag-icon-grip,
.ag-theme-balham-auto-dark .ag-column-select-column-readonly.ag-icon-grip,
.ag-theme-balham-auto-dark .ag-column-select-column-readonly .ag-icon-grip {
  opacity: 0.35;
}
.ag-theme-balham .ag-menu-header,
.ag-theme-balham-dark .ag-menu-header,
.ag-theme-balham-auto-dark .ag-menu-header {
  background-color: var(--ag-header-background-color);
}
.ag-theme-balham .ag-overlay-loading-center,
.ag-theme-balham-dark .ag-overlay-loading-center,
.ag-theme-balham-auto-dark .ag-overlay-loading-center {
  background-color: var(--ag-background-color);
  border: 1px solid var(--ag-border-color);
  color: var(--ag-foreground-color);
  padding: calc(var(--ag-grid-size) * 4);
}
.ag-theme-balham .ag-tooltip,
.ag-theme-balham-dark .ag-tooltip,
.ag-theme-balham-auto-dark .ag-tooltip {
  border: none;
}
.ag-theme-balham .ag-panel-title-bar-button-icon,
.ag-theme-balham-dark .ag-panel-title-bar-button-icon,
.ag-theme-balham-auto-dark .ag-panel-title-bar-button-icon {
  font-size: calc(var(--ag-icon-size) + var(--ag-grid-size));
}
.ag-theme-balham .ag-panel,
.ag-theme-balham-dark .ag-panel,
.ag-theme-balham-auto-dark .ag-panel {
  background-color: var(--ag-header-background-color);
}
.ag-theme-balham .ag-chart-data-section,
.ag-theme-balham .ag-chart-format-section,
.ag-theme-balham .ag-chart-advanced-settings-section,
.ag-theme-balham-dark .ag-chart-data-section,
.ag-theme-balham-dark .ag-chart-format-section,
.ag-theme-balham-dark .ag-chart-advanced-settings-section,
.ag-theme-balham-auto-dark .ag-chart-data-section,
.ag-theme-balham-auto-dark .ag-chart-format-section,
.ag-theme-balham-auto-dark .ag-chart-advanced-settings-section {
  padding-bottom: calc(var(--ag-grid-size) * 0.5);
}
.ag-theme-balham .ag-group-toolbar,
.ag-theme-balham-dark .ag-group-toolbar,
.ag-theme-balham-auto-dark .ag-group-toolbar {
  background-color: var(--ag-subheader-toolbar-background-color);
}
.ag-theme-balham .ag-chart-tab,
.ag-theme-balham-dark .ag-chart-tab,
.ag-theme-balham-auto-dark .ag-chart-tab {
  padding-top: calc(var(--ag-grid-size) * 0.5);
}
.ag-theme-balham .ag-charts-format-sub-level-group-item,
.ag-theme-balham-dark .ag-charts-format-sub-level-group-item,
.ag-theme-balham-auto-dark .ag-charts-format-sub-level-group-item {
  margin-bottom: calc(var(--ag-grid-size) * 1.5);
}
.ag-theme-balham .ag-filter-active .ag-icon-filter,
.ag-theme-balham-dark .ag-filter-active .ag-icon-filter,
.ag-theme-balham-auto-dark .ag-filter-active .ag-icon-filter {
  color: var(--ag-balham-active-color);
}
.ag-theme-balham .ag-color-input input[class^=ag-][type=text].ag-input-field-input,
.ag-theme-balham-dark .ag-color-input input[class^=ag-][type=text].ag-input-field-input,
.ag-theme-balham-auto-dark .ag-color-input input[class^=ag-][type=text].ag-input-field-input {
  min-height: calc(var(--ag-icon-size) + 4px);
}
.ag-theme-balham .ag-list-item-hovered::after,
.ag-theme-balham-dark .ag-list-item-hovered::after,
.ag-theme-balham-auto-dark .ag-list-item-hovered::after {
  background-color: var(--ag-balham-active-color);
}
.ag-theme-balham .ag-pill .ag-pill-button:hover,
.ag-theme-balham-dark .ag-pill .ag-pill-button:hover,
.ag-theme-balham-auto-dark .ag-pill .ag-pill-button:hover {
  color: var(--ag-balham-active-color);
}
.ag-theme-balham .ag-header-highlight-before::after,
.ag-theme-balham .ag-header-highlight-after::after,
.ag-theme-balham-dark .ag-header-highlight-before::after,
.ag-theme-balham-dark .ag-header-highlight-after::after,
.ag-theme-balham-auto-dark .ag-header-highlight-before::after,
.ag-theme-balham-auto-dark .ag-header-highlight-after::after {
  background-color: var(--ag-balham-active-color);
}
`,""]),p.A=r},4023:function(x,p,M){"use strict";var A=M(6758),F=M.n(A),D=M(935),f=M.n(D),v=f()(F());v.push([x.id,`.ag-theme-material,
.ag-theme-material-dark,
.ag-theme-material-auto-dark {
  --ag-material-primary-color: #3f51b5;
  --ag-material-accent-color: #ff4081;
  --ag-foreground-color: rgba(0, 0, 0, 0.87);
  --ag-secondary-foreground-color: rgba(0, 0, 0, 0.54);
  --ag-disabled-foreground-color: rgba(0, 0, 0, 0.38);
  --ag-background-color: #fff;
  --ag-header-background-color: #fff;
  --ag-tooltip-background-color: #fff;
  --ag-subheader-background-color: #eee;
  --ag-subheader-toolbar-background-color: rgba(238, 238, 238, 0.5);
  --ag-header-cell-hover-background-color: #f2f2f2;
  --ag-chip-background-color: #e2e2e2;
  --ag-range-selection-background-color: rgba(122, 134, 203, 0.1);
  --ag-range-selection-background-color-2: rgba(122, 134, 203, 0.19);
  --ag-range-selection-background-color-3: rgba(122, 134, 203, 0.27);
  --ag-range-selection-background-color-4: rgba(122, 134, 203, 0.34);
  --ag-range-selection-highlight-color: #fce4ec;
  --ag-row-hover-color: #fafafa;
  --ag-column-hover-color: #fafafa;
  --ag-control-panel-background-color: #fafafa;
  --ag-selected-row-background-color: rgba(33, 150, 243, 0.3);
  --ag-checkbox-unchecked-color: #333;
  --ag-value-change-value-highlight-background-color: #00acc1;
  --ag-side-button-selected-background-color: transparent;
  --ag-advanced-filter-join-pill-color: #f08e8d;
  --ag-advanced-filter-column-pill-color: #a6e194;
  --ag-advanced-filter-option-pill-color: #f3c08b;
  --ag-advanced-filter-value-pill-color: #85c0e4;
  --ag-range-selection-border-color: var(--ag-material-primary-color);
  --ag-checkbox-checked-color: var(--ag-material-accent-color);
  --ag-borders: none;
  --ag-borders-critical: solid 1px;
  --ag-border-color: #e2e2e2;
  --ag-grid-size: 8px;
  --ag-icon-size: 18px;
  --ag-header-height: calc(var(--ag-grid-size) * 7);
  --ag-row-height: calc(var(--ag-grid-size) * 6);
  --ag-cell-horizontal-padding: calc(var(--ag-grid-size) * 3);
  --ag-list-item-height: calc(var(--ag-grid-size) * 4);
  --ag-row-group-indent-size: calc(var(--ag-grid-size) * 3 + var(--ag-icon-size));
  --ag-filter-tool-panel-sub-level-row-height: calc(var(--ag-grid-size) * 4);
  --ag-checkbox-border-radius: 2px;
  --ag-toggle-button-switch-border-width: 2px;
  --ag-toggle-button-height: var(--ag-icon-size);
  --ag-widget-container-horizontal-padding: calc(var(--ag-grid-size) * 1.5);
  --ag-widget-container-vertical-padding: calc(var(--ag-grid-size) * 2);
  --ag-widget-vertical-spacing: calc(var(--ag-grid-size) * 1.75);
  --ag-font-family: Roboto, -apple-system, BlinkMacSystemFont, "Segoe UI", Oxygen-Sans, Ubuntu, Cantarell,
      "Helvetica Neue", sans-serif;
  --ag-font-size: 13px;
  --ag-icon-font-family: agGridMaterial;
  --ag-selected-tab-underline-color: var(--ag-material-primary-color);
  --ag-selected-tab-underline-width: 2px;
  --ag-input-focus-border-color: var(--ag-material-primary-color);
  --ag-input-focus-box-shadow: 0 0 0 5px rgba(32, 33, 36, 0.122);
  --ag-card-shadow: 0 3px 1px -2px rgba(0, 0, 0, 0.2), 0 2px 2px 0 rgba(0, 0, 0, 0.14),
      0 1px 5px 0 rgba(0, 0, 0, 0.12);
  --ag-card-radius: 2px;
  --ag-invalid-color: #e02525;
}

.ag-theme-material-dark {
  --ag-material-primary-color: #3f51b5;
  --ag-material-accent-color: #bb86fcff;
  --ag-range-selection-border-color: var(--ag-material-accent-color);
  --ag-background-color: #121212ff;
  --ag-foreground-color: #ffffffff;
  --ag-data-color: #f5f5f5ff;
  --ag-header-cell-hover-background-color: #000000ff;
  --ag-advanced-filter-join-pill-color: #7a3a37ff;
  --ag-advanced-filter-column-pill-color: #355f2dff;
  --ag-advanced-filter-option-pill-color: #5a3168ff;
  --ag-advanced-filter-value-pill-color: #374c86ff;
  --ag-input-disabled-border-color: #3a434eff;
  --ag-input-disabled-background-color: #68686e12;
  --ag-selected-row-background-color: #bb86fc33;
  --ag-row-hover-color: #bb86fc33;
  --ag-column-hover-color: #f5f5f50d;
  --ag-range-selection-background-color: #bb86fc1a;
  --ag-range-selection-background-color-2: #bb86fc30;
  --ag-range-selection-background-color-3: #bb86fc45;
  --ag-range-selection-background-color-4: #bb86fc57;
  --ag-border-color: #383838ff;
  --ag-secondary-border-color: #383838ff;
  --ag-header-background-color: #121212ff;
  --ag-tooltip-background-color: #212b38ff;
  --ag-odd-row-background-color: #121212ff;
  --ag-control-panel-background-color: #2c2c2cff;
  --ag-subheader-background-color: #ffffff0d;
  --ag-subheader-toolbar-background-color: #2c2c2cff;
  --ag-invalid-color: #e02525ff;
  --ag-checkbox-unchecked-color: #797e87ff;
  --ag-checkbox-background-color: #121212ff;
  --ag-secondary-foreground-color: #f5f5f5ff;
  --ag-input-border-color: #383838ff;
  --ag-input-border-color-invalid: #e02525ff;
  --ag-disabled-foreground-color: #f5f5f580;
  --ag-chip-background-color: #22262812;
  --ag-side-button-selected-background-color: #2c2c2cff;
  --ag-selected-tab-underline-color: #3f51b5ff;
  --ag-modal-overlay-background-color: #121212a8;
  --ag-value-change-delta-up-color: #43a047a8;
  --ag-value-change-delta-down-color: #e53935ff;
  --ag-menu-background-color: #2c2c2cff;
  --ag-row-loading-skeleton-effect-color: rgba(202, 203, 204, 0.4);
  color-scheme: dark;
}

@media (prefers-color-scheme: dark) {
  .ag-theme-material-auto-dark {
    --ag-material-primary-color: #3f51b5;
    --ag-material-accent-color: #bb86fcff;
    --ag-range-selection-border-color: var(--ag-material-accent-color);
    --ag-background-color: #121212ff;
    --ag-foreground-color: #ffffffff;
    --ag-data-color: #f5f5f5ff;
    --ag-header-cell-hover-background-color: #000000ff;
    --ag-advanced-filter-join-pill-color: #7a3a37ff;
    --ag-advanced-filter-column-pill-color: #355f2dff;
    --ag-advanced-filter-option-pill-color: #5a3168ff;
    --ag-advanced-filter-value-pill-color: #374c86ff;
    --ag-input-disabled-border-color: #3a434eff;
    --ag-input-disabled-background-color: #68686e12;
    --ag-selected-row-background-color: #bb86fc33;
    --ag-row-hover-color: #bb86fc33;
    --ag-column-hover-color: #f5f5f50d;
    --ag-range-selection-background-color: #bb86fc1a;
    --ag-range-selection-background-color-2: #bb86fc30;
    --ag-range-selection-background-color-3: #bb86fc45;
    --ag-range-selection-background-color-4: #bb86fc57;
    --ag-border-color: #383838ff;
    --ag-secondary-border-color: #383838ff;
    --ag-header-background-color: #121212ff;
    --ag-tooltip-background-color: #212b38ff;
    --ag-odd-row-background-color: #121212ff;
    --ag-control-panel-background-color: #2c2c2cff;
    --ag-subheader-background-color: #ffffff0d;
    --ag-subheader-toolbar-background-color: #2c2c2cff;
    --ag-invalid-color: #e02525ff;
    --ag-checkbox-unchecked-color: #797e87ff;
    --ag-checkbox-background-color: #121212ff;
    --ag-secondary-foreground-color: #f5f5f5ff;
    --ag-input-border-color: #383838ff;
    --ag-input-border-color-invalid: #e02525ff;
    --ag-disabled-foreground-color: #f5f5f580;
    --ag-chip-background-color: #22262812;
    --ag-side-button-selected-background-color: #2c2c2cff;
    --ag-selected-tab-underline-color: #3f51b5ff;
    --ag-modal-overlay-background-color: #121212a8;
    --ag-value-change-delta-up-color: #43a047a8;
    --ag-value-change-delta-down-color: #e53935ff;
    --ag-menu-background-color: #2c2c2cff;
    --ag-row-loading-skeleton-effect-color: rgba(202, 203, 204, 0.4);
    color-scheme: dark;
  }
}
.ag-theme-material .ag-filter-toolpanel-header,
.ag-theme-material .ag-filter-toolpanel-search,
.ag-theme-material .ag-status-bar,
.ag-theme-material .ag-header-row,
.ag-theme-material .ag-panel-title-bar-title,
.ag-theme-material .ag-multi-filter-group-title-bar,
.ag-theme-material-dark .ag-filter-toolpanel-header,
.ag-theme-material-dark .ag-filter-toolpanel-search,
.ag-theme-material-dark .ag-status-bar,
.ag-theme-material-dark .ag-header-row,
.ag-theme-material-dark .ag-panel-title-bar-title,
.ag-theme-material-dark .ag-multi-filter-group-title-bar,
.ag-theme-material-auto-dark .ag-filter-toolpanel-header,
.ag-theme-material-auto-dark .ag-filter-toolpanel-search,
.ag-theme-material-auto-dark .ag-status-bar,
.ag-theme-material-auto-dark .ag-header-row,
.ag-theme-material-auto-dark .ag-panel-title-bar-title,
.ag-theme-material-auto-dark .ag-multi-filter-group-title-bar {
  font-size: calc(var(--ag-font-size) - 1px);
  font-weight: 600;
  color: var(--ag-header-foreground-color);
}
.ag-theme-material .ag-tab,
.ag-theme-material-dark .ag-tab,
.ag-theme-material-auto-dark .ag-tab {
  height: calc(var(--ag-grid-size) * 4.5);
  flex: 1 1 auto;
}
.ag-theme-material .ag-tabs-header,
.ag-theme-material .ag-column-drop-horizontal,
.ag-theme-material-dark .ag-tabs-header,
.ag-theme-material-dark .ag-column-drop-horizontal,
.ag-theme-material-auto-dark .ag-tabs-header,
.ag-theme-material-auto-dark .ag-column-drop-horizontal {
  background-color: var(--ag-subheader-background-color);
}
.ag-theme-material .ag-tabs-body,
.ag-theme-material-dark .ag-tabs-body,
.ag-theme-material-auto-dark .ag-tabs-body {
  padding: calc(var(--ag-grid-size) * 0.5) 0;
}
.ag-theme-material .ag-tabs-body .ag-menu-list,
.ag-theme-material-dark .ag-tabs-body .ag-menu-list,
.ag-theme-material-auto-dark .ag-tabs-body .ag-menu-list {
  padding-top: 0;
  padding-bottom: 0;
}
.ag-theme-material .ag-header-cell,
.ag-theme-material .ag-header-group-cell,
.ag-theme-material-dark .ag-header-cell,
.ag-theme-material-dark .ag-header-group-cell,
.ag-theme-material-auto-dark .ag-header-cell,
.ag-theme-material-auto-dark .ag-header-group-cell {
  transition: background-color 0.5s;
}
.ag-theme-material .ag-row-last:not(.ag-row-first) .ag-cell-inline-editing,
.ag-theme-material-dark .ag-row-last:not(.ag-row-first) .ag-cell-inline-editing,
.ag-theme-material-auto-dark .ag-row-last:not(.ag-row-first) .ag-cell-inline-editing {
  bottom: 0;
}
.ag-theme-material .ag-cell-inline-editing,
.ag-theme-material-dark .ag-cell-inline-editing,
.ag-theme-material-auto-dark .ag-cell-inline-editing {
  padding: var(--ag-grid-size);
  height: calc(var(--ag-row-height) + var(--ag-grid-size) * 3);
  border-color: var(--ag-border-color) !important;
}
.ag-theme-material .ag-has-focus .ag-cell-inline-editing,
.ag-theme-material-dark .ag-has-focus .ag-cell-inline-editing,
.ag-theme-material-auto-dark .ag-has-focus .ag-cell-inline-editing {
  border-color: var(--ag-input-focus-border-color) !important;
}
.ag-theme-material .ag-column-drop-vertical,
.ag-theme-material-dark .ag-column-drop-vertical,
.ag-theme-material-auto-dark .ag-column-drop-vertical {
  border-bottom: solid 1px;
  border-bottom-color: var(--ag-border-color);
  padding-top: var(--ag-grid-size);
}
.ag-theme-material .ag-column-drop-vertical.ag-last-column-drop,
.ag-theme-material-dark .ag-column-drop-vertical.ag-last-column-drop,
.ag-theme-material-auto-dark .ag-column-drop-vertical.ag-last-column-drop {
  border-bottom: none;
}
.ag-theme-material .ag-column-drop-vertical-cell,
.ag-theme-material-dark .ag-column-drop-vertical-cell,
.ag-theme-material-auto-dark .ag-column-drop-vertical-cell {
  margin-left: 0;
}
.ag-theme-material .ag-column-drop-vertical-empty-message,
.ag-theme-material-dark .ag-column-drop-vertical-empty-message,
.ag-theme-material-auto-dark .ag-column-drop-vertical-empty-message {
  font-size: calc(var(--ag-font-size) - 1px);
  font-weight: 600;
  color: var(--ag-disabled-foreground-color);
}
.ag-theme-material .ag-ltr .ag-column-drop-vertical-empty-message, .ag-theme-material-dark .ag-ltr .ag-column-drop-vertical-empty-message, .ag-theme-material-auto-dark .ag-ltr .ag-column-drop-vertical-empty-message {
  padding-left: calc(var(--ag-icon-size) + var(--ag-grid-size) * 2);
  padding-right: var(--ag-grid-size);
}

.ag-theme-material .ag-rtl .ag-column-drop-vertical-empty-message, .ag-theme-material-dark .ag-rtl .ag-column-drop-vertical-empty-message, .ag-theme-material-auto-dark .ag-rtl .ag-column-drop-vertical-empty-message {
  padding-right: calc(var(--ag-icon-size) + var(--ag-grid-size) * 2);
  padding-left: var(--ag-grid-size);
}

.ag-theme-material .ag-status-bar,
.ag-theme-material-dark .ag-status-bar,
.ag-theme-material-auto-dark .ag-status-bar {
  border: solid 1px;
  border-color: var(--ag-border-color);
}
.ag-theme-material .ag-column-panel-column-select,
.ag-theme-material-dark .ag-column-panel-column-select,
.ag-theme-material-auto-dark .ag-column-panel-column-select {
  border-top: solid 1px;
  border-top-color: var(--ag-border-color);
}
.ag-theme-material .ag-column-select,
.ag-theme-material .ag-column-select-header,
.ag-theme-material-dark .ag-column-select,
.ag-theme-material-dark .ag-column-select-header,
.ag-theme-material-auto-dark .ag-column-select,
.ag-theme-material-auto-dark .ag-column-select-header {
  border-bottom: solid 1px;
  border-bottom-color: var(--ag-border-color);
}
.ag-theme-material .ag-column-select-header,
.ag-theme-material-dark .ag-column-select-header,
.ag-theme-material-auto-dark .ag-column-select-header {
  height: var(--ag-header-height);
}
.ag-theme-material .ag-group-title-bar,
.ag-theme-material-dark .ag-group-title-bar,
.ag-theme-material-auto-dark .ag-group-title-bar {
  padding: calc(var(--ag-grid-size) * 0.75) var(--ag-grid-size);
}
.ag-theme-material .ag-charts-format-sub-level-group-title-bar,
.ag-theme-material-dark .ag-charts-format-sub-level-group-title-bar,
.ag-theme-material-auto-dark .ag-charts-format-sub-level-group-title-bar {
  padding: calc(var(--ag-grid-size) * 0.5) var(--ag-grid-size);
}
.ag-theme-material .ag-chart-data-section,
.ag-theme-material .ag-chart-format-section,
.ag-theme-material .ag-chart-advanced-settings-section,
.ag-theme-material-dark .ag-chart-data-section,
.ag-theme-material-dark .ag-chart-format-section,
.ag-theme-material-dark .ag-chart-advanced-settings-section,
.ag-theme-material-auto-dark .ag-chart-data-section,
.ag-theme-material-auto-dark .ag-chart-format-section,
.ag-theme-material-auto-dark .ag-chart-advanced-settings-section {
  padding-bottom: calc(var(--ag-grid-size) * 0.5);
}
.ag-theme-material input[class^=ag-]:not([type]),
.ag-theme-material input[class^=ag-][type=text],
.ag-theme-material input[class^=ag-][type=number],
.ag-theme-material input[class^=ag-][type=tel],
.ag-theme-material input[class^=ag-][type=date],
.ag-theme-material input[class^=ag-][type=datetime-local],
.ag-theme-material textarea[class^=ag-],
.ag-theme-material-dark input[class^=ag-]:not([type]),
.ag-theme-material-dark input[class^=ag-][type=text],
.ag-theme-material-dark input[class^=ag-][type=number],
.ag-theme-material-dark input[class^=ag-][type=tel],
.ag-theme-material-dark input[class^=ag-][type=date],
.ag-theme-material-dark input[class^=ag-][type=datetime-local],
.ag-theme-material-dark textarea[class^=ag-],
.ag-theme-material-auto-dark input[class^=ag-]:not([type]),
.ag-theme-material-auto-dark input[class^=ag-][type=text],
.ag-theme-material-auto-dark input[class^=ag-][type=number],
.ag-theme-material-auto-dark input[class^=ag-][type=tel],
.ag-theme-material-auto-dark input[class^=ag-][type=date],
.ag-theme-material-auto-dark input[class^=ag-][type=datetime-local],
.ag-theme-material-auto-dark textarea[class^=ag-] {
  background: transparent;
  color: var(--ag-foreground-color);
  font-family: inherit;
  font-size: inherit;
  padding-bottom: var(--ag-grid-size);
  border-width: 0;
  border-radius: 0;
  border-bottom: 2px solid;
  border-bottom-color: var(--ag-border-color);
}
.ag-theme-material input[class^=ag-]:not([type]):not(textarea),
.ag-theme-material input[class^=ag-][type=text]:not(textarea),
.ag-theme-material input[class^=ag-][type=number]:not(textarea),
.ag-theme-material input[class^=ag-][type=tel]:not(textarea),
.ag-theme-material input[class^=ag-][type=date]:not(textarea),
.ag-theme-material input[class^=ag-][type=datetime-local]:not(textarea),
.ag-theme-material textarea[class^=ag-]:not(textarea),
.ag-theme-material-dark input[class^=ag-]:not([type]):not(textarea),
.ag-theme-material-dark input[class^=ag-][type=text]:not(textarea),
.ag-theme-material-dark input[class^=ag-][type=number]:not(textarea),
.ag-theme-material-dark input[class^=ag-][type=tel]:not(textarea),
.ag-theme-material-dark input[class^=ag-][type=date]:not(textarea),
.ag-theme-material-dark input[class^=ag-][type=datetime-local]:not(textarea),
.ag-theme-material-dark textarea[class^=ag-]:not(textarea),
.ag-theme-material-auto-dark input[class^=ag-]:not([type]):not(textarea),
.ag-theme-material-auto-dark input[class^=ag-][type=text]:not(textarea),
.ag-theme-material-auto-dark input[class^=ag-][type=number]:not(textarea),
.ag-theme-material-auto-dark input[class^=ag-][type=tel]:not(textarea),
.ag-theme-material-auto-dark input[class^=ag-][type=date]:not(textarea),
.ag-theme-material-auto-dark input[class^=ag-][type=datetime-local]:not(textarea),
.ag-theme-material-auto-dark textarea[class^=ag-]:not(textarea) {
  height: calc(var(--ag-grid-size) * 5);
}
.ag-theme-material input[class^=ag-]:not([type]):focus,
.ag-theme-material input[class^=ag-][type=text]:focus,
.ag-theme-material input[class^=ag-][type=number]:focus,
.ag-theme-material input[class^=ag-][type=tel]:focus,
.ag-theme-material input[class^=ag-][type=date]:focus,
.ag-theme-material input[class^=ag-][type=datetime-local]:focus,
.ag-theme-material textarea[class^=ag-]:focus,
.ag-theme-material-dark input[class^=ag-]:not([type]):focus,
.ag-theme-material-dark input[class^=ag-][type=text]:focus,
.ag-theme-material-dark input[class^=ag-][type=number]:focus,
.ag-theme-material-dark input[class^=ag-][type=tel]:focus,
.ag-theme-material-dark input[class^=ag-][type=date]:focus,
.ag-theme-material-dark input[class^=ag-][type=datetime-local]:focus,
.ag-theme-material-dark textarea[class^=ag-]:focus,
.ag-theme-material-auto-dark input[class^=ag-]:not([type]):focus,
.ag-theme-material-auto-dark input[class^=ag-][type=text]:focus,
.ag-theme-material-auto-dark input[class^=ag-][type=number]:focus,
.ag-theme-material-auto-dark input[class^=ag-][type=tel]:focus,
.ag-theme-material-auto-dark input[class^=ag-][type=date]:focus,
.ag-theme-material-auto-dark input[class^=ag-][type=datetime-local]:focus,
.ag-theme-material-auto-dark textarea[class^=ag-]:focus {
  border-bottom: 2px solid;
  border-bottom-color: var(--ag-material-primary-color);
  outline: none;
  box-shadow: none;
}
.ag-theme-material input[class^=ag-]:not([type])::placeholder,
.ag-theme-material input[class^=ag-][type=text]::placeholder,
.ag-theme-material input[class^=ag-][type=number]::placeholder,
.ag-theme-material input[class^=ag-][type=tel]::placeholder,
.ag-theme-material input[class^=ag-][type=date]::placeholder,
.ag-theme-material input[class^=ag-][type=datetime-local]::placeholder,
.ag-theme-material textarea[class^=ag-]::placeholder,
.ag-theme-material-dark input[class^=ag-]:not([type])::placeholder,
.ag-theme-material-dark input[class^=ag-][type=text]::placeholder,
.ag-theme-material-dark input[class^=ag-][type=number]::placeholder,
.ag-theme-material-dark input[class^=ag-][type=tel]::placeholder,
.ag-theme-material-dark input[class^=ag-][type=date]::placeholder,
.ag-theme-material-dark input[class^=ag-][type=datetime-local]::placeholder,
.ag-theme-material-dark textarea[class^=ag-]::placeholder,
.ag-theme-material-auto-dark input[class^=ag-]:not([type])::placeholder,
.ag-theme-material-auto-dark input[class^=ag-][type=text]::placeholder,
.ag-theme-material-auto-dark input[class^=ag-][type=number]::placeholder,
.ag-theme-material-auto-dark input[class^=ag-][type=tel]::placeholder,
.ag-theme-material-auto-dark input[class^=ag-][type=date]::placeholder,
.ag-theme-material-auto-dark input[class^=ag-][type=datetime-local]::placeholder,
.ag-theme-material-auto-dark textarea[class^=ag-]::placeholder {
  color: var(--ag-disabled-foreground-color);
}
.ag-theme-material input[class^=ag-]:not([type]):disabled,
.ag-theme-material input[class^=ag-][type=text]:disabled,
.ag-theme-material input[class^=ag-][type=number]:disabled,
.ag-theme-material input[class^=ag-][type=tel]:disabled,
.ag-theme-material input[class^=ag-][type=date]:disabled,
.ag-theme-material input[class^=ag-][type=datetime-local]:disabled,
.ag-theme-material textarea[class^=ag-]:disabled,
.ag-theme-material-dark input[class^=ag-]:not([type]):disabled,
.ag-theme-material-dark input[class^=ag-][type=text]:disabled,
.ag-theme-material-dark input[class^=ag-][type=number]:disabled,
.ag-theme-material-dark input[class^=ag-][type=tel]:disabled,
.ag-theme-material-dark input[class^=ag-][type=date]:disabled,
.ag-theme-material-dark input[class^=ag-][type=datetime-local]:disabled,
.ag-theme-material-dark textarea[class^=ag-]:disabled,
.ag-theme-material-auto-dark input[class^=ag-]:not([type]):disabled,
.ag-theme-material-auto-dark input[class^=ag-][type=text]:disabled,
.ag-theme-material-auto-dark input[class^=ag-][type=number]:disabled,
.ag-theme-material-auto-dark input[class^=ag-][type=tel]:disabled,
.ag-theme-material-auto-dark input[class^=ag-][type=date]:disabled,
.ag-theme-material-auto-dark input[class^=ag-][type=datetime-local]:disabled,
.ag-theme-material-auto-dark textarea[class^=ag-]:disabled {
  border-bottom: 1px solid;
  border-bottom-color: var(--ag-border-color);
}
.ag-theme-material input[class^=ag-]:not([type]):invalid,
.ag-theme-material input[class^=ag-][type=text]:invalid,
.ag-theme-material input[class^=ag-][type=number]:invalid,
.ag-theme-material input[class^=ag-][type=tel]:invalid,
.ag-theme-material input[class^=ag-][type=date]:invalid,
.ag-theme-material input[class^=ag-][type=datetime-local]:invalid,
.ag-theme-material textarea[class^=ag-]:invalid,
.ag-theme-material-dark input[class^=ag-]:not([type]):invalid,
.ag-theme-material-dark input[class^=ag-][type=text]:invalid,
.ag-theme-material-dark input[class^=ag-][type=number]:invalid,
.ag-theme-material-dark input[class^=ag-][type=tel]:invalid,
.ag-theme-material-dark input[class^=ag-][type=date]:invalid,
.ag-theme-material-dark input[class^=ag-][type=datetime-local]:invalid,
.ag-theme-material-dark textarea[class^=ag-]:invalid,
.ag-theme-material-auto-dark input[class^=ag-]:not([type]):invalid,
.ag-theme-material-auto-dark input[class^=ag-][type=text]:invalid,
.ag-theme-material-auto-dark input[class^=ag-][type=number]:invalid,
.ag-theme-material-auto-dark input[class^=ag-][type=tel]:invalid,
.ag-theme-material-auto-dark input[class^=ag-][type=date]:invalid,
.ag-theme-material-auto-dark input[class^=ag-][type=datetime-local]:invalid,
.ag-theme-material-auto-dark textarea[class^=ag-]:invalid {
  border-width: 0;
  border-bottom: 1px solid;
  border-bottom-color: var(--ag-invalid-color);
  color: var(--ag-invalid-color);
}
.ag-theme-material .ag-standard-button,
.ag-theme-material-dark .ag-standard-button,
.ag-theme-material-auto-dark .ag-standard-button {
  appearance: none;
  background-color: transparent;
  border: 0;
  color: var(--ag-material-primary-color);
  font-family: inherit;
  font-size: inherit;
  margin: 0;
  padding: 0;
  text-transform: uppercase;
}
.ag-theme-material .ag-standard-button:disabled,
.ag-theme-material-dark .ag-standard-button:disabled,
.ag-theme-material-auto-dark .ag-standard-button:disabled {
  color: var(--ag-disabled-foreground-color);
  background-color: var(--ag-input-disabled-background-color);
  border-color: var(--ag-input-disabled-border-color);
}
.ag-theme-material.ag-dnd-ghost,
.ag-theme-material-dark.ag-dnd-ghost,
.ag-theme-material-auto-dark.ag-dnd-ghost {
  font-size: calc(var(--ag-font-size) - 1px);
  font-weight: 600;
}
.ag-theme-material .ag-filter-toolpanel-header,
.ag-theme-material-dark .ag-filter-toolpanel-header,
.ag-theme-material-auto-dark .ag-filter-toolpanel-header {
  height: calc(var(--ag-grid-size) * 4);
}
.ag-theme-material .ag-filter-toolpanel-group-level-0-header,
.ag-theme-material-dark .ag-filter-toolpanel-group-level-0-header,
.ag-theme-material-auto-dark .ag-filter-toolpanel-group-level-0-header {
  height: calc(var(--ag-grid-size) * 7);
}
.ag-theme-material .ag-ltr .ag-filter-apply-panel-button, .ag-theme-material .ag-ltr .ag-advanced-filter-apply-button, .ag-theme-material .ag-ltr .ag-advanced-filter-builder-button, .ag-theme-material-dark .ag-ltr .ag-filter-apply-panel-button, .ag-theme-material-dark .ag-ltr .ag-advanced-filter-apply-button, .ag-theme-material-dark .ag-ltr .ag-advanced-filter-builder-button, .ag-theme-material-auto-dark .ag-ltr .ag-filter-apply-panel-button, .ag-theme-material-auto-dark .ag-ltr .ag-advanced-filter-apply-button, .ag-theme-material-auto-dark .ag-ltr .ag-advanced-filter-builder-button {
  margin-left: var(--ag-grid-size);
}

.ag-theme-material .ag-rtl .ag-filter-apply-panel-button, .ag-theme-material .ag-rtl .ag-advanced-filter-apply-button, .ag-theme-material .ag-rtl .ag-advanced-filter-builder-button, .ag-theme-material-dark .ag-rtl .ag-filter-apply-panel-button, .ag-theme-material-dark .ag-rtl .ag-advanced-filter-apply-button, .ag-theme-material-dark .ag-rtl .ag-advanced-filter-builder-button, .ag-theme-material-auto-dark .ag-rtl .ag-filter-apply-panel-button, .ag-theme-material-auto-dark .ag-rtl .ag-advanced-filter-apply-button, .ag-theme-material-auto-dark .ag-rtl .ag-advanced-filter-builder-button {
  margin-right: var(--ag-grid-size);
}

.ag-theme-material .ag-layout-auto-height .ag-center-cols-viewport,
.ag-theme-material .ag-layout-auto-height .ag-center-cols-container,
.ag-theme-material .ag-layout-print .ag-center-cols-viewport,
.ag-theme-material .ag-layout-print .ag-center-cols-container,
.ag-theme-material-dark .ag-layout-auto-height .ag-center-cols-viewport,
.ag-theme-material-dark .ag-layout-auto-height .ag-center-cols-container,
.ag-theme-material-dark .ag-layout-print .ag-center-cols-viewport,
.ag-theme-material-dark .ag-layout-print .ag-center-cols-container,
.ag-theme-material-auto-dark .ag-layout-auto-height .ag-center-cols-viewport,
.ag-theme-material-auto-dark .ag-layout-auto-height .ag-center-cols-container,
.ag-theme-material-auto-dark .ag-layout-print .ag-center-cols-viewport,
.ag-theme-material-auto-dark .ag-layout-print .ag-center-cols-container {
  min-height: 150px;
}
.ag-theme-material .ag-picker-field-wrapper:focus-within,
.ag-theme-material-dark .ag-picker-field-wrapper:focus-within,
.ag-theme-material-auto-dark .ag-picker-field-wrapper:focus-within {
  box-shadow: 0 0 0 1px var(--ag-material-primary-color);
}
.ag-theme-material .ag-rich-select-list,
.ag-theme-material-dark .ag-rich-select-list,
.ag-theme-material-auto-dark .ag-rich-select-list {
  box-shadow: rgba(0, 0, 0, 0.2) 0px 5px 5px -3px, rgba(0, 0, 0, 0.14) 0px 8px 10px 1px, rgba(0, 0, 0, 0.12) 0px 3px 14px 2px;
}
.ag-theme-material .ag-advanced-filter-builder-button-label,
.ag-theme-material-dark .ag-advanced-filter-builder-button-label,
.ag-theme-material-auto-dark .ag-advanced-filter-builder-button-label {
  text-transform: uppercase;
}
.ag-theme-material .ag-filter-active .ag-icon-filter,
.ag-theme-material-dark .ag-filter-active .ag-icon-filter,
.ag-theme-material-auto-dark .ag-filter-active .ag-icon-filter {
  color: var(--ag-material-accent-color);
}
.ag-theme-material .ag-list-item-hovered::after,
.ag-theme-material-dark .ag-list-item-hovered::after,
.ag-theme-material-auto-dark .ag-list-item-hovered::after {
  background-color: var(--ag-material-primary-color);
}
.ag-theme-material .ag-pill .ag-pill-button:hover,
.ag-theme-material-dark .ag-pill .ag-pill-button:hover,
.ag-theme-material-auto-dark .ag-pill .ag-pill-button:hover {
  color: var(--ag-material-primary-color);
}
.ag-theme-material .ag-header-highlight-before::after,
.ag-theme-material .ag-header-highlight-after::after,
.ag-theme-material-dark .ag-header-highlight-before::after,
.ag-theme-material-dark .ag-header-highlight-after::after,
.ag-theme-material-auto-dark .ag-header-highlight-before::after,
.ag-theme-material-auto-dark .ag-header-highlight-after::after {
  background-color: var(--ag-material-primary-color);
}
`,""]),p.A=v},3973:function(x,p,M){"use strict";var A=M(6758),F=M.n(A),D=M(935),f=M.n(D),v=M(62),u=M.n(v),s=new URL(M(6055),M.b),r=f()(F()),d=u()(s);r.push([x.id,`@font-face {
  font-family: "agGridMaterial";
  src: url(`+d+`);
  font-weight: normal;
  font-style: normal;
}
.ag-theme-material,
.ag-theme-material-dark,
.ag-theme-material-auto-dark {
  --ag-material-primary-color: #3f51b5;
  --ag-material-accent-color: #ff4081;
  --ag-foreground-color: rgba(0, 0, 0, 0.87);
  --ag-secondary-foreground-color: rgba(0, 0, 0, 0.54);
  --ag-disabled-foreground-color: rgba(0, 0, 0, 0.38);
  --ag-background-color: #fff;
  --ag-header-background-color: #fff;
  --ag-tooltip-background-color: #fff;
  --ag-subheader-background-color: #eee;
  --ag-subheader-toolbar-background-color: rgba(238, 238, 238, 0.5);
  --ag-header-cell-hover-background-color: #f2f2f2;
  --ag-chip-background-color: #e2e2e2;
  --ag-range-selection-background-color: rgba(122, 134, 203, 0.1);
  --ag-range-selection-background-color-2: rgba(122, 134, 203, 0.19);
  --ag-range-selection-background-color-3: rgba(122, 134, 203, 0.27);
  --ag-range-selection-background-color-4: rgba(122, 134, 203, 0.34);
  --ag-range-selection-highlight-color: #fce4ec;
  --ag-row-hover-color: #fafafa;
  --ag-column-hover-color: #fafafa;
  --ag-control-panel-background-color: #fafafa;
  --ag-selected-row-background-color: rgba(33, 150, 243, 0.3);
  --ag-checkbox-unchecked-color: #333;
  --ag-value-change-value-highlight-background-color: #00acc1;
  --ag-side-button-selected-background-color: transparent;
  --ag-advanced-filter-join-pill-color: #f08e8d;
  --ag-advanced-filter-column-pill-color: #a6e194;
  --ag-advanced-filter-option-pill-color: #f3c08b;
  --ag-advanced-filter-value-pill-color: #85c0e4;
  --ag-range-selection-border-color: var(--ag-material-primary-color);
  --ag-checkbox-checked-color: var(--ag-material-accent-color);
  --ag-borders: none;
  --ag-borders-critical: solid 1px;
  --ag-border-color: #e2e2e2;
  --ag-grid-size: 8px;
  --ag-icon-size: 18px;
  --ag-header-height: calc(var(--ag-grid-size) * 7);
  --ag-row-height: calc(var(--ag-grid-size) * 6);
  --ag-cell-horizontal-padding: calc(var(--ag-grid-size) * 3);
  --ag-list-item-height: calc(var(--ag-grid-size) * 4);
  --ag-row-group-indent-size: calc(var(--ag-grid-size) * 3 + var(--ag-icon-size));
  --ag-filter-tool-panel-sub-level-row-height: calc(var(--ag-grid-size) * 4);
  --ag-checkbox-border-radius: 2px;
  --ag-toggle-button-switch-border-width: 2px;
  --ag-toggle-button-height: var(--ag-icon-size);
  --ag-widget-container-horizontal-padding: calc(var(--ag-grid-size) * 1.5);
  --ag-widget-container-vertical-padding: calc(var(--ag-grid-size) * 2);
  --ag-widget-vertical-spacing: calc(var(--ag-grid-size) * 1.75);
  --ag-font-family: Roboto, -apple-system, BlinkMacSystemFont, "Segoe UI", Oxygen-Sans, Ubuntu, Cantarell,
      "Helvetica Neue", sans-serif;
  --ag-font-size: 13px;
  --ag-icon-font-family: agGridMaterial;
  --ag-selected-tab-underline-color: var(--ag-material-primary-color);
  --ag-selected-tab-underline-width: 2px;
  --ag-input-focus-border-color: var(--ag-material-primary-color);
  --ag-input-focus-box-shadow: 0 0 0 5px rgba(32, 33, 36, 0.122);
  --ag-card-shadow: 0 3px 1px -2px rgba(0, 0, 0, 0.2), 0 2px 2px 0 rgba(0, 0, 0, 0.14),
      0 1px 5px 0 rgba(0, 0, 0, 0.12);
  --ag-card-radius: 2px;
  --ag-invalid-color: #e02525;
}

.ag-theme-material-dark {
  --ag-material-primary-color: #3f51b5;
  --ag-material-accent-color: #bb86fcff;
  --ag-range-selection-border-color: var(--ag-material-accent-color);
  --ag-background-color: #121212ff;
  --ag-foreground-color: #ffffffff;
  --ag-data-color: #f5f5f5ff;
  --ag-header-cell-hover-background-color: #000000ff;
  --ag-advanced-filter-join-pill-color: #7a3a37ff;
  --ag-advanced-filter-column-pill-color: #355f2dff;
  --ag-advanced-filter-option-pill-color: #5a3168ff;
  --ag-advanced-filter-value-pill-color: #374c86ff;
  --ag-input-disabled-border-color: #3a434eff;
  --ag-input-disabled-background-color: #68686e12;
  --ag-selected-row-background-color: #bb86fc33;
  --ag-row-hover-color: #bb86fc33;
  --ag-column-hover-color: #f5f5f50d;
  --ag-range-selection-background-color: #bb86fc1a;
  --ag-range-selection-background-color-2: #bb86fc30;
  --ag-range-selection-background-color-3: #bb86fc45;
  --ag-range-selection-background-color-4: #bb86fc57;
  --ag-border-color: #383838ff;
  --ag-secondary-border-color: #383838ff;
  --ag-header-background-color: #121212ff;
  --ag-tooltip-background-color: #212b38ff;
  --ag-odd-row-background-color: #121212ff;
  --ag-control-panel-background-color: #2c2c2cff;
  --ag-subheader-background-color: #ffffff0d;
  --ag-subheader-toolbar-background-color: #2c2c2cff;
  --ag-invalid-color: #e02525ff;
  --ag-checkbox-unchecked-color: #797e87ff;
  --ag-checkbox-background-color: #121212ff;
  --ag-secondary-foreground-color: #f5f5f5ff;
  --ag-input-border-color: #383838ff;
  --ag-input-border-color-invalid: #e02525ff;
  --ag-disabled-foreground-color: #f5f5f580;
  --ag-chip-background-color: #22262812;
  --ag-side-button-selected-background-color: #2c2c2cff;
  --ag-selected-tab-underline-color: #3f51b5ff;
  --ag-modal-overlay-background-color: #121212a8;
  --ag-value-change-delta-up-color: #43a047a8;
  --ag-value-change-delta-down-color: #e53935ff;
  --ag-menu-background-color: #2c2c2cff;
  --ag-row-loading-skeleton-effect-color: rgba(202, 203, 204, 0.4);
  color-scheme: dark;
}

@media (prefers-color-scheme: dark) {
  .ag-theme-material-auto-dark {
    --ag-material-primary-color: #3f51b5;
    --ag-material-accent-color: #bb86fcff;
    --ag-range-selection-border-color: var(--ag-material-accent-color);
    --ag-background-color: #121212ff;
    --ag-foreground-color: #ffffffff;
    --ag-data-color: #f5f5f5ff;
    --ag-header-cell-hover-background-color: #000000ff;
    --ag-advanced-filter-join-pill-color: #7a3a37ff;
    --ag-advanced-filter-column-pill-color: #355f2dff;
    --ag-advanced-filter-option-pill-color: #5a3168ff;
    --ag-advanced-filter-value-pill-color: #374c86ff;
    --ag-input-disabled-border-color: #3a434eff;
    --ag-input-disabled-background-color: #68686e12;
    --ag-selected-row-background-color: #bb86fc33;
    --ag-row-hover-color: #bb86fc33;
    --ag-column-hover-color: #f5f5f50d;
    --ag-range-selection-background-color: #bb86fc1a;
    --ag-range-selection-background-color-2: #bb86fc30;
    --ag-range-selection-background-color-3: #bb86fc45;
    --ag-range-selection-background-color-4: #bb86fc57;
    --ag-border-color: #383838ff;
    --ag-secondary-border-color: #383838ff;
    --ag-header-background-color: #121212ff;
    --ag-tooltip-background-color: #212b38ff;
    --ag-odd-row-background-color: #121212ff;
    --ag-control-panel-background-color: #2c2c2cff;
    --ag-subheader-background-color: #ffffff0d;
    --ag-subheader-toolbar-background-color: #2c2c2cff;
    --ag-invalid-color: #e02525ff;
    --ag-checkbox-unchecked-color: #797e87ff;
    --ag-checkbox-background-color: #121212ff;
    --ag-secondary-foreground-color: #f5f5f5ff;
    --ag-input-border-color: #383838ff;
    --ag-input-border-color-invalid: #e02525ff;
    --ag-disabled-foreground-color: #f5f5f580;
    --ag-chip-background-color: #22262812;
    --ag-side-button-selected-background-color: #2c2c2cff;
    --ag-selected-tab-underline-color: #3f51b5ff;
    --ag-modal-overlay-background-color: #121212a8;
    --ag-value-change-delta-up-color: #43a047a8;
    --ag-value-change-delta-down-color: #e53935ff;
    --ag-menu-background-color: #2c2c2cff;
    --ag-row-loading-skeleton-effect-color: rgba(202, 203, 204, 0.4);
    color-scheme: dark;
  }
}
.ag-theme-material .ag-filter-toolpanel-header,
.ag-theme-material .ag-filter-toolpanel-search,
.ag-theme-material .ag-status-bar,
.ag-theme-material .ag-header-row,
.ag-theme-material .ag-panel-title-bar-title,
.ag-theme-material .ag-multi-filter-group-title-bar,
.ag-theme-material-dark .ag-filter-toolpanel-header,
.ag-theme-material-dark .ag-filter-toolpanel-search,
.ag-theme-material-dark .ag-status-bar,
.ag-theme-material-dark .ag-header-row,
.ag-theme-material-dark .ag-panel-title-bar-title,
.ag-theme-material-dark .ag-multi-filter-group-title-bar,
.ag-theme-material-auto-dark .ag-filter-toolpanel-header,
.ag-theme-material-auto-dark .ag-filter-toolpanel-search,
.ag-theme-material-auto-dark .ag-status-bar,
.ag-theme-material-auto-dark .ag-header-row,
.ag-theme-material-auto-dark .ag-panel-title-bar-title,
.ag-theme-material-auto-dark .ag-multi-filter-group-title-bar {
  font-size: calc(var(--ag-font-size) - 1px);
  font-weight: 600;
  color: var(--ag-header-foreground-color);
}
.ag-theme-material .ag-tab,
.ag-theme-material-dark .ag-tab,
.ag-theme-material-auto-dark .ag-tab {
  height: calc(var(--ag-grid-size) * 4.5);
  flex: 1 1 auto;
}
.ag-theme-material .ag-tabs-header,
.ag-theme-material .ag-column-drop-horizontal,
.ag-theme-material-dark .ag-tabs-header,
.ag-theme-material-dark .ag-column-drop-horizontal,
.ag-theme-material-auto-dark .ag-tabs-header,
.ag-theme-material-auto-dark .ag-column-drop-horizontal {
  background-color: var(--ag-subheader-background-color);
}
.ag-theme-material .ag-tabs-body,
.ag-theme-material-dark .ag-tabs-body,
.ag-theme-material-auto-dark .ag-tabs-body {
  padding: calc(var(--ag-grid-size) * 0.5) 0;
}
.ag-theme-material .ag-tabs-body .ag-menu-list,
.ag-theme-material-dark .ag-tabs-body .ag-menu-list,
.ag-theme-material-auto-dark .ag-tabs-body .ag-menu-list {
  padding-top: 0;
  padding-bottom: 0;
}
.ag-theme-material .ag-header-cell,
.ag-theme-material .ag-header-group-cell,
.ag-theme-material-dark .ag-header-cell,
.ag-theme-material-dark .ag-header-group-cell,
.ag-theme-material-auto-dark .ag-header-cell,
.ag-theme-material-auto-dark .ag-header-group-cell {
  transition: background-color 0.5s;
}
.ag-theme-material .ag-row-last:not(.ag-row-first) .ag-cell-inline-editing,
.ag-theme-material-dark .ag-row-last:not(.ag-row-first) .ag-cell-inline-editing,
.ag-theme-material-auto-dark .ag-row-last:not(.ag-row-first) .ag-cell-inline-editing {
  bottom: 0;
}
.ag-theme-material .ag-cell-inline-editing,
.ag-theme-material-dark .ag-cell-inline-editing,
.ag-theme-material-auto-dark .ag-cell-inline-editing {
  padding: var(--ag-grid-size);
  height: calc(var(--ag-row-height) + var(--ag-grid-size) * 3);
  border-color: var(--ag-border-color) !important;
}
.ag-theme-material .ag-has-focus .ag-cell-inline-editing,
.ag-theme-material-dark .ag-has-focus .ag-cell-inline-editing,
.ag-theme-material-auto-dark .ag-has-focus .ag-cell-inline-editing {
  border-color: var(--ag-input-focus-border-color) !important;
}
.ag-theme-material .ag-column-drop-vertical,
.ag-theme-material-dark .ag-column-drop-vertical,
.ag-theme-material-auto-dark .ag-column-drop-vertical {
  border-bottom: solid 1px;
  border-bottom-color: var(--ag-border-color);
  padding-top: var(--ag-grid-size);
}
.ag-theme-material .ag-column-drop-vertical.ag-last-column-drop,
.ag-theme-material-dark .ag-column-drop-vertical.ag-last-column-drop,
.ag-theme-material-auto-dark .ag-column-drop-vertical.ag-last-column-drop {
  border-bottom: none;
}
.ag-theme-material .ag-column-drop-vertical-cell,
.ag-theme-material-dark .ag-column-drop-vertical-cell,
.ag-theme-material-auto-dark .ag-column-drop-vertical-cell {
  margin-left: 0;
}
.ag-theme-material .ag-column-drop-vertical-empty-message,
.ag-theme-material-dark .ag-column-drop-vertical-empty-message,
.ag-theme-material-auto-dark .ag-column-drop-vertical-empty-message {
  font-size: calc(var(--ag-font-size) - 1px);
  font-weight: 600;
  color: var(--ag-disabled-foreground-color);
}
.ag-theme-material .ag-ltr .ag-column-drop-vertical-empty-message, .ag-theme-material-dark .ag-ltr .ag-column-drop-vertical-empty-message, .ag-theme-material-auto-dark .ag-ltr .ag-column-drop-vertical-empty-message {
  padding-left: calc(var(--ag-icon-size) + var(--ag-grid-size) * 2);
  padding-right: var(--ag-grid-size);
}

.ag-theme-material .ag-rtl .ag-column-drop-vertical-empty-message, .ag-theme-material-dark .ag-rtl .ag-column-drop-vertical-empty-message, .ag-theme-material-auto-dark .ag-rtl .ag-column-drop-vertical-empty-message {
  padding-right: calc(var(--ag-icon-size) + var(--ag-grid-size) * 2);
  padding-left: var(--ag-grid-size);
}

.ag-theme-material .ag-status-bar,
.ag-theme-material-dark .ag-status-bar,
.ag-theme-material-auto-dark .ag-status-bar {
  border: solid 1px;
  border-color: var(--ag-border-color);
}
.ag-theme-material .ag-column-panel-column-select,
.ag-theme-material-dark .ag-column-panel-column-select,
.ag-theme-material-auto-dark .ag-column-panel-column-select {
  border-top: solid 1px;
  border-top-color: var(--ag-border-color);
}
.ag-theme-material .ag-column-select,
.ag-theme-material .ag-column-select-header,
.ag-theme-material-dark .ag-column-select,
.ag-theme-material-dark .ag-column-select-header,
.ag-theme-material-auto-dark .ag-column-select,
.ag-theme-material-auto-dark .ag-column-select-header {
  border-bottom: solid 1px;
  border-bottom-color: var(--ag-border-color);
}
.ag-theme-material .ag-column-select-header,
.ag-theme-material-dark .ag-column-select-header,
.ag-theme-material-auto-dark .ag-column-select-header {
  height: var(--ag-header-height);
}
.ag-theme-material .ag-group-title-bar,
.ag-theme-material-dark .ag-group-title-bar,
.ag-theme-material-auto-dark .ag-group-title-bar {
  padding: calc(var(--ag-grid-size) * 0.75) var(--ag-grid-size);
}
.ag-theme-material .ag-charts-format-sub-level-group-title-bar,
.ag-theme-material-dark .ag-charts-format-sub-level-group-title-bar,
.ag-theme-material-auto-dark .ag-charts-format-sub-level-group-title-bar {
  padding: calc(var(--ag-grid-size) * 0.5) var(--ag-grid-size);
}
.ag-theme-material .ag-chart-data-section,
.ag-theme-material .ag-chart-format-section,
.ag-theme-material .ag-chart-advanced-settings-section,
.ag-theme-material-dark .ag-chart-data-section,
.ag-theme-material-dark .ag-chart-format-section,
.ag-theme-material-dark .ag-chart-advanced-settings-section,
.ag-theme-material-auto-dark .ag-chart-data-section,
.ag-theme-material-auto-dark .ag-chart-format-section,
.ag-theme-material-auto-dark .ag-chart-advanced-settings-section {
  padding-bottom: calc(var(--ag-grid-size) * 0.5);
}
.ag-theme-material input[class^=ag-]:not([type]),
.ag-theme-material input[class^=ag-][type=text],
.ag-theme-material input[class^=ag-][type=number],
.ag-theme-material input[class^=ag-][type=tel],
.ag-theme-material input[class^=ag-][type=date],
.ag-theme-material input[class^=ag-][type=datetime-local],
.ag-theme-material textarea[class^=ag-],
.ag-theme-material-dark input[class^=ag-]:not([type]),
.ag-theme-material-dark input[class^=ag-][type=text],
.ag-theme-material-dark input[class^=ag-][type=number],
.ag-theme-material-dark input[class^=ag-][type=tel],
.ag-theme-material-dark input[class^=ag-][type=date],
.ag-theme-material-dark input[class^=ag-][type=datetime-local],
.ag-theme-material-dark textarea[class^=ag-],
.ag-theme-material-auto-dark input[class^=ag-]:not([type]),
.ag-theme-material-auto-dark input[class^=ag-][type=text],
.ag-theme-material-auto-dark input[class^=ag-][type=number],
.ag-theme-material-auto-dark input[class^=ag-][type=tel],
.ag-theme-material-auto-dark input[class^=ag-][type=date],
.ag-theme-material-auto-dark input[class^=ag-][type=datetime-local],
.ag-theme-material-auto-dark textarea[class^=ag-] {
  background: transparent;
  color: var(--ag-foreground-color);
  font-family: inherit;
  font-size: inherit;
  padding-bottom: var(--ag-grid-size);
  border-width: 0;
  border-radius: 0;
  border-bottom: 2px solid;
  border-bottom-color: var(--ag-border-color);
}
.ag-theme-material input[class^=ag-]:not([type]):not(textarea),
.ag-theme-material input[class^=ag-][type=text]:not(textarea),
.ag-theme-material input[class^=ag-][type=number]:not(textarea),
.ag-theme-material input[class^=ag-][type=tel]:not(textarea),
.ag-theme-material input[class^=ag-][type=date]:not(textarea),
.ag-theme-material input[class^=ag-][type=datetime-local]:not(textarea),
.ag-theme-material textarea[class^=ag-]:not(textarea),
.ag-theme-material-dark input[class^=ag-]:not([type]):not(textarea),
.ag-theme-material-dark input[class^=ag-][type=text]:not(textarea),
.ag-theme-material-dark input[class^=ag-][type=number]:not(textarea),
.ag-theme-material-dark input[class^=ag-][type=tel]:not(textarea),
.ag-theme-material-dark input[class^=ag-][type=date]:not(textarea),
.ag-theme-material-dark input[class^=ag-][type=datetime-local]:not(textarea),
.ag-theme-material-dark textarea[class^=ag-]:not(textarea),
.ag-theme-material-auto-dark input[class^=ag-]:not([type]):not(textarea),
.ag-theme-material-auto-dark input[class^=ag-][type=text]:not(textarea),
.ag-theme-material-auto-dark input[class^=ag-][type=number]:not(textarea),
.ag-theme-material-auto-dark input[class^=ag-][type=tel]:not(textarea),
.ag-theme-material-auto-dark input[class^=ag-][type=date]:not(textarea),
.ag-theme-material-auto-dark input[class^=ag-][type=datetime-local]:not(textarea),
.ag-theme-material-auto-dark textarea[class^=ag-]:not(textarea) {
  height: calc(var(--ag-grid-size) * 5);
}
.ag-theme-material input[class^=ag-]:not([type]):focus,
.ag-theme-material input[class^=ag-][type=text]:focus,
.ag-theme-material input[class^=ag-][type=number]:focus,
.ag-theme-material input[class^=ag-][type=tel]:focus,
.ag-theme-material input[class^=ag-][type=date]:focus,
.ag-theme-material input[class^=ag-][type=datetime-local]:focus,
.ag-theme-material textarea[class^=ag-]:focus,
.ag-theme-material-dark input[class^=ag-]:not([type]):focus,
.ag-theme-material-dark input[class^=ag-][type=text]:focus,
.ag-theme-material-dark input[class^=ag-][type=number]:focus,
.ag-theme-material-dark input[class^=ag-][type=tel]:focus,
.ag-theme-material-dark input[class^=ag-][type=date]:focus,
.ag-theme-material-dark input[class^=ag-][type=datetime-local]:focus,
.ag-theme-material-dark textarea[class^=ag-]:focus,
.ag-theme-material-auto-dark input[class^=ag-]:not([type]):focus,
.ag-theme-material-auto-dark input[class^=ag-][type=text]:focus,
.ag-theme-material-auto-dark input[class^=ag-][type=number]:focus,
.ag-theme-material-auto-dark input[class^=ag-][type=tel]:focus,
.ag-theme-material-auto-dark input[class^=ag-][type=date]:focus,
.ag-theme-material-auto-dark input[class^=ag-][type=datetime-local]:focus,
.ag-theme-material-auto-dark textarea[class^=ag-]:focus {
  border-bottom: 2px solid;
  border-bottom-color: var(--ag-material-primary-color);
  outline: none;
  box-shadow: none;
}
.ag-theme-material input[class^=ag-]:not([type])::placeholder,
.ag-theme-material input[class^=ag-][type=text]::placeholder,
.ag-theme-material input[class^=ag-][type=number]::placeholder,
.ag-theme-material input[class^=ag-][type=tel]::placeholder,
.ag-theme-material input[class^=ag-][type=date]::placeholder,
.ag-theme-material input[class^=ag-][type=datetime-local]::placeholder,
.ag-theme-material textarea[class^=ag-]::placeholder,
.ag-theme-material-dark input[class^=ag-]:not([type])::placeholder,
.ag-theme-material-dark input[class^=ag-][type=text]::placeholder,
.ag-theme-material-dark input[class^=ag-][type=number]::placeholder,
.ag-theme-material-dark input[class^=ag-][type=tel]::placeholder,
.ag-theme-material-dark input[class^=ag-][type=date]::placeholder,
.ag-theme-material-dark input[class^=ag-][type=datetime-local]::placeholder,
.ag-theme-material-dark textarea[class^=ag-]::placeholder,
.ag-theme-material-auto-dark input[class^=ag-]:not([type])::placeholder,
.ag-theme-material-auto-dark input[class^=ag-][type=text]::placeholder,
.ag-theme-material-auto-dark input[class^=ag-][type=number]::placeholder,
.ag-theme-material-auto-dark input[class^=ag-][type=tel]::placeholder,
.ag-theme-material-auto-dark input[class^=ag-][type=date]::placeholder,
.ag-theme-material-auto-dark input[class^=ag-][type=datetime-local]::placeholder,
.ag-theme-material-auto-dark textarea[class^=ag-]::placeholder {
  color: var(--ag-disabled-foreground-color);
}
.ag-theme-material input[class^=ag-]:not([type]):disabled,
.ag-theme-material input[class^=ag-][type=text]:disabled,
.ag-theme-material input[class^=ag-][type=number]:disabled,
.ag-theme-material input[class^=ag-][type=tel]:disabled,
.ag-theme-material input[class^=ag-][type=date]:disabled,
.ag-theme-material input[class^=ag-][type=datetime-local]:disabled,
.ag-theme-material textarea[class^=ag-]:disabled,
.ag-theme-material-dark input[class^=ag-]:not([type]):disabled,
.ag-theme-material-dark input[class^=ag-][type=text]:disabled,
.ag-theme-material-dark input[class^=ag-][type=number]:disabled,
.ag-theme-material-dark input[class^=ag-][type=tel]:disabled,
.ag-theme-material-dark input[class^=ag-][type=date]:disabled,
.ag-theme-material-dark input[class^=ag-][type=datetime-local]:disabled,
.ag-theme-material-dark textarea[class^=ag-]:disabled,
.ag-theme-material-auto-dark input[class^=ag-]:not([type]):disabled,
.ag-theme-material-auto-dark input[class^=ag-][type=text]:disabled,
.ag-theme-material-auto-dark input[class^=ag-][type=number]:disabled,
.ag-theme-material-auto-dark input[class^=ag-][type=tel]:disabled,
.ag-theme-material-auto-dark input[class^=ag-][type=date]:disabled,
.ag-theme-material-auto-dark input[class^=ag-][type=datetime-local]:disabled,
.ag-theme-material-auto-dark textarea[class^=ag-]:disabled {
  border-bottom: 1px solid;
  border-bottom-color: var(--ag-border-color);
}
.ag-theme-material input[class^=ag-]:not([type]):invalid,
.ag-theme-material input[class^=ag-][type=text]:invalid,
.ag-theme-material input[class^=ag-][type=number]:invalid,
.ag-theme-material input[class^=ag-][type=tel]:invalid,
.ag-theme-material input[class^=ag-][type=date]:invalid,
.ag-theme-material input[class^=ag-][type=datetime-local]:invalid,
.ag-theme-material textarea[class^=ag-]:invalid,
.ag-theme-material-dark input[class^=ag-]:not([type]):invalid,
.ag-theme-material-dark input[class^=ag-][type=text]:invalid,
.ag-theme-material-dark input[class^=ag-][type=number]:invalid,
.ag-theme-material-dark input[class^=ag-][type=tel]:invalid,
.ag-theme-material-dark input[class^=ag-][type=date]:invalid,
.ag-theme-material-dark input[class^=ag-][type=datetime-local]:invalid,
.ag-theme-material-dark textarea[class^=ag-]:invalid,
.ag-theme-material-auto-dark input[class^=ag-]:not([type]):invalid,
.ag-theme-material-auto-dark input[class^=ag-][type=text]:invalid,
.ag-theme-material-auto-dark input[class^=ag-][type=number]:invalid,
.ag-theme-material-auto-dark input[class^=ag-][type=tel]:invalid,
.ag-theme-material-auto-dark input[class^=ag-][type=date]:invalid,
.ag-theme-material-auto-dark input[class^=ag-][type=datetime-local]:invalid,
.ag-theme-material-auto-dark textarea[class^=ag-]:invalid {
  border-width: 0;
  border-bottom: 1px solid;
  border-bottom-color: var(--ag-invalid-color);
  color: var(--ag-invalid-color);
}
.ag-theme-material .ag-standard-button,
.ag-theme-material-dark .ag-standard-button,
.ag-theme-material-auto-dark .ag-standard-button {
  appearance: none;
  background-color: transparent;
  border: 0;
  color: var(--ag-material-primary-color);
  font-family: inherit;
  font-size: inherit;
  margin: 0;
  padding: 0;
  text-transform: uppercase;
}
.ag-theme-material .ag-standard-button:disabled,
.ag-theme-material-dark .ag-standard-button:disabled,
.ag-theme-material-auto-dark .ag-standard-button:disabled {
  color: var(--ag-disabled-foreground-color);
  background-color: var(--ag-input-disabled-background-color);
  border-color: var(--ag-input-disabled-border-color);
}
.ag-theme-material.ag-dnd-ghost,
.ag-theme-material-dark.ag-dnd-ghost,
.ag-theme-material-auto-dark.ag-dnd-ghost {
  font-size: calc(var(--ag-font-size) - 1px);
  font-weight: 600;
}
.ag-theme-material .ag-filter-toolpanel-header,
.ag-theme-material-dark .ag-filter-toolpanel-header,
.ag-theme-material-auto-dark .ag-filter-toolpanel-header {
  height: calc(var(--ag-grid-size) * 4);
}
.ag-theme-material .ag-filter-toolpanel-group-level-0-header,
.ag-theme-material-dark .ag-filter-toolpanel-group-level-0-header,
.ag-theme-material-auto-dark .ag-filter-toolpanel-group-level-0-header {
  height: calc(var(--ag-grid-size) * 7);
}
.ag-theme-material .ag-ltr .ag-filter-apply-panel-button, .ag-theme-material .ag-ltr .ag-advanced-filter-apply-button, .ag-theme-material .ag-ltr .ag-advanced-filter-builder-button, .ag-theme-material-dark .ag-ltr .ag-filter-apply-panel-button, .ag-theme-material-dark .ag-ltr .ag-advanced-filter-apply-button, .ag-theme-material-dark .ag-ltr .ag-advanced-filter-builder-button, .ag-theme-material-auto-dark .ag-ltr .ag-filter-apply-panel-button, .ag-theme-material-auto-dark .ag-ltr .ag-advanced-filter-apply-button, .ag-theme-material-auto-dark .ag-ltr .ag-advanced-filter-builder-button {
  margin-left: var(--ag-grid-size);
}

.ag-theme-material .ag-rtl .ag-filter-apply-panel-button, .ag-theme-material .ag-rtl .ag-advanced-filter-apply-button, .ag-theme-material .ag-rtl .ag-advanced-filter-builder-button, .ag-theme-material-dark .ag-rtl .ag-filter-apply-panel-button, .ag-theme-material-dark .ag-rtl .ag-advanced-filter-apply-button, .ag-theme-material-dark .ag-rtl .ag-advanced-filter-builder-button, .ag-theme-material-auto-dark .ag-rtl .ag-filter-apply-panel-button, .ag-theme-material-auto-dark .ag-rtl .ag-advanced-filter-apply-button, .ag-theme-material-auto-dark .ag-rtl .ag-advanced-filter-builder-button {
  margin-right: var(--ag-grid-size);
}

.ag-theme-material .ag-layout-auto-height .ag-center-cols-viewport,
.ag-theme-material .ag-layout-auto-height .ag-center-cols-container,
.ag-theme-material .ag-layout-print .ag-center-cols-viewport,
.ag-theme-material .ag-layout-print .ag-center-cols-container,
.ag-theme-material-dark .ag-layout-auto-height .ag-center-cols-viewport,
.ag-theme-material-dark .ag-layout-auto-height .ag-center-cols-container,
.ag-theme-material-dark .ag-layout-print .ag-center-cols-viewport,
.ag-theme-material-dark .ag-layout-print .ag-center-cols-container,
.ag-theme-material-auto-dark .ag-layout-auto-height .ag-center-cols-viewport,
.ag-theme-material-auto-dark .ag-layout-auto-height .ag-center-cols-container,
.ag-theme-material-auto-dark .ag-layout-print .ag-center-cols-viewport,
.ag-theme-material-auto-dark .ag-layout-print .ag-center-cols-container {
  min-height: 150px;
}
.ag-theme-material .ag-picker-field-wrapper:focus-within,
.ag-theme-material-dark .ag-picker-field-wrapper:focus-within,
.ag-theme-material-auto-dark .ag-picker-field-wrapper:focus-within {
  box-shadow: 0 0 0 1px var(--ag-material-primary-color);
}
.ag-theme-material .ag-rich-select-list,
.ag-theme-material-dark .ag-rich-select-list,
.ag-theme-material-auto-dark .ag-rich-select-list {
  box-shadow: rgba(0, 0, 0, 0.2) 0px 5px 5px -3px, rgba(0, 0, 0, 0.14) 0px 8px 10px 1px, rgba(0, 0, 0, 0.12) 0px 3px 14px 2px;
}
.ag-theme-material .ag-advanced-filter-builder-button-label,
.ag-theme-material-dark .ag-advanced-filter-builder-button-label,
.ag-theme-material-auto-dark .ag-advanced-filter-builder-button-label {
  text-transform: uppercase;
}
.ag-theme-material .ag-filter-active .ag-icon-filter,
.ag-theme-material-dark .ag-filter-active .ag-icon-filter,
.ag-theme-material-auto-dark .ag-filter-active .ag-icon-filter {
  color: var(--ag-material-accent-color);
}
.ag-theme-material .ag-list-item-hovered::after,
.ag-theme-material-dark .ag-list-item-hovered::after,
.ag-theme-material-auto-dark .ag-list-item-hovered::after {
  background-color: var(--ag-material-primary-color);
}
.ag-theme-material .ag-pill .ag-pill-button:hover,
.ag-theme-material-dark .ag-pill .ag-pill-button:hover,
.ag-theme-material-auto-dark .ag-pill .ag-pill-button:hover {
  color: var(--ag-material-primary-color);
}
.ag-theme-material .ag-header-highlight-before::after,
.ag-theme-material .ag-header-highlight-after::after,
.ag-theme-material-dark .ag-header-highlight-before::after,
.ag-theme-material-dark .ag-header-highlight-after::after,
.ag-theme-material-auto-dark .ag-header-highlight-before::after,
.ag-theme-material-auto-dark .ag-header-highlight-after::after {
  background-color: var(--ag-material-primary-color);
}
`,""]),p.A=r},145:function(x,p,M){"use strict";var A=M(6758),F=M.n(A),D=M(935),f=M.n(D),v=M(62),u=M.n(v),s=new URL(M(7249),M.b),r=f()(F()),d=u()(s);r.push([x.id,`.ag-theme-quartz,
.ag-theme-quartz-dark,
.ag-theme-quartz-auto-dark {
  --ag-active-color: #2196f3;
  --ag-background-color: #fff;
  --ag-foreground-color: #181d1f;
  --ag-border-color: color-mix(in srgb, transparent, var(--ag-foreground-color) 15%);
  --ag-secondary-border-color: var(--ag-border-color);
  --ag-header-background-color: color-mix(in srgb, var(--ag-background-color), var(--ag-foreground-color) 2%);
  --ag-tooltip-background-color: var(--ag-header-background-color);
  --ag-control-panel-background-color: var(--ag-header-background-color);
  --ag-subheader-background-color: transparent;
  --ag-invalid-color: #e02525;
  --ag-checkbox-unchecked-color: color-mix(in srgb, var(--ag-background-color), var(--ag-foreground-color) 30%);
  --ag-advanced-filter-join-pill-color: #f08e8d;
  --ag-advanced-filter-column-pill-color: #a6e194;
  --ag-advanced-filter-option-pill-color: #f3c08b;
  --ag-advanced-filter-value-pill-color: #85c0e4;
  --ag-header-column-resize-handle-color: var(--ag-secondary-border-color);
  --ag-icon-font-color: color-mix(in srgb, transparent, var(--ag-foreground-color) 90%);
  --ag-panel-background-color: color-mix(in srgb, var(--ag-background-color), var(--ag-foreground-color) 3%);
  --ag-panel-border-color: color-mix(in srgb, transparent, var(--ag-foreground-color) 20%);
  --ag-menu-background-color: color-mix(in srgb, var(--ag-background-color), var(--ag-foreground-color) 3%);
  --ag-menu-border-color: color-mix(in srgb, transparent, var(--ag-foreground-color) 20%);
  --ag-selected-row-background-color: color-mix(in srgb, transparent, var(--ag-active-color) 8%);
  --ag-row-hover-color: color-mix(in srgb, transparent, var(--ag-active-color) 12%);
  --ag-column-hover-color: color-mix(in srgb, transparent, var(--ag-foreground-color) 5%);
  --ag-input-focus-border-color: var(--ag-active-color);
  --ag-input-focus-box-shadow: 0 0 0 3px color-mix(in srgb, transparent, var(--ag-input-focus-border-color) 47%);
  --ag-range-selection-background-color: color-mix(in srgb, transparent, var(--ag-active-color) 20%);
  --ag-range-selection-background-color-2: color-mix(in srgb, transparent, var(--ag-active-color) 36%);
  --ag-range-selection-background-color-3: color-mix(in srgb, transparent, var(--ag-active-color) 49%);
  --ag-range-selection-background-color-4: color-mix(in srgb, transparent, var(--ag-active-color) 59%);
  --ag-checkbox-background-color: var(--ag-background-color);
  --ag-checkbox-checked-color: var(--ag-active-color);
  --ag-range-selection-border-color: var(--ag-active-color);
  --ag-secondary-foreground-color: var(--ag-foreground-color);
  --ag-input-border-color: var(--ag-border-color);
  --ag-input-border-color-invalid: var(--ag-invalid-color);
  --ag-disabled-foreground-color: color-mix(in srgb, transparent, var(--ag-foreground-color) 50%);
  --ag-chip-background-color: color-mix(in srgb, transparent, var(--ag-foreground-color) 7%);
  --ag-chip-border-color: color-mix(in srgb, var(--ag-header-background-color), var(--ag-foreground-color) 13%);
  --ag-input-disabled-border-color: var(--ag-border-color);
  --ag-input-disabled-background-color: color-mix(in srgb, var(--ag-background-color), var(--ag-foreground-color) 6%);
  --ag-modal-overlay-background-color: color-mix(in srgb, transparent, var(--ag-background-color) 66%);
  --ag-chart-menu-label-color: color-mix(in srgb, transparent, var(--ag-foreground-color) 80%);
  --ag-chart-menu-pill-select-button-color: color-mix(in srgb, transparent, var(--ag-foreground-color) 70%);
  --ag-borders: solid 1px;
  --ag-border-radius: 4px;
  --ag-wrapper-border-radius: 8px;
  --ag-borders-side-button: none;
  --ag-side-button-selected-background-color: transparent;
  --ag-header-column-resize-handle-display: block;
  --ag-header-column-resize-handle-width: 2px;
  --ag-header-column-resize-handle-height: 30%;
  --ag-grid-size: 8px;
  --ag-icon-size: 16px;
  --ag-header-height: calc(var(--ag-font-size) + var(--ag-grid-size) * 4.25);
  --ag-row-height: calc(var(--ag-font-size) + var(--ag-grid-size) * 3.5);
  --ag-list-item-height: calc(
      var(--ag-icon-size) + var(--ag-widget-vertical-spacing)
  );
  --ag-column-select-indent-size: var(--ag-icon-size);
  --ag-set-filter-indent-size: var(--ag-icon-size);
  --ag-filter-tool-panel-group-indent: var(--ag-grid-size);
  --ag-advanced-filter-builder-indent-size: calc(var(--ag-icon-size) + var(--ag-grid-size) * 2);
  --ag-cell-horizontal-padding: calc(var(--ag-grid-size) * 2);
  --ag-cell-widget-spacing: calc(var(--ag-grid-size) * 1.5);
  --ag-widget-container-vertical-padding: calc(var(--ag-grid-size) * 1.5);
  --ag-widget-container-horizontal-padding: calc(var(--ag-grid-size) * 1.5);
  --ag-widget-horizontal-spacing: calc(var(--ag-grid-size) * 1.5);
  --ag-widget-vertical-spacing: calc(var(--ag-grid-size) * 1);
  --ag-toggle-button-height: 18px;
  --ag-toggle-button-width: 28px;
  --ag-toggle-button-border-width: 2px;
  --ag-font-family: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu,
      Cantarell, "Helvetica Neue", sans-serif;
  --ag-font-size: 14px;
  --ag-icon-font-family: agGridQuartz;
  --ag-tab-min-width: 290px;
  --ag-chart-menu-panel-width: 260px;
  --ag-card-shadow: 0 1px 4px 1px rgba(186, 191, 199, 0.4);
  --ag-popup-shadow: 0 0 16px 0 rgba(0, 0, 0, 0.15);
  --ag-side-bar-panel-width: 250px;
}

.ag-theme-quartz-dark {
  --ag-background-color: color-mix(in srgb, #fff, #182230 97%);
  --ag-foreground-color: #fff;
  --ag-border-color: rgba(255, 255, 255, 0.16);
  --ag-secondary-border-color: color-mix(in srgb, transparent, var(--ag-foreground-color) 10%);
  --ag-header-background-color: color-mix(in srgb, #fff, #182230 93%);
  --ag-tooltip-background-color: color-mix(in srgb, #fff, #182230 96%);
  --ag-control-panel-background-color: color-mix(in srgb, #fff, #182230 93%);
  --ag-input-disabled-background-color: #68686e12;
  --ag-card-shadow: 0 1px 20px 1px black;
  --ag-input-border-color: var(--ag-border-color);
  --ag-input-disabled-border-color: rgba(255, 255, 255, 0.07);
  --ag-checkbox-unchecked-color: color-mix(in srgb, var(--ag-background-color), var(--ag-foreground-color) 40%);
  --ag-row-hover-color: color-mix(in srgb, transparent, var(--ag-active-color) 20%);
  --ag-selected-row-background-color: var(--ag-row-hover-color);
  --ag-panel-background-color: color-mix(in srgb, var(--ag-background-color), var(--ag-foreground-color) 10%);
  --ag-panel-border-color: color-mix(in srgb, transparent, var(--ag-foreground-color) 10%);
  --ag-menu-background-color: color-mix(in srgb, var(--ag-background-color), var(--ag-foreground-color) 10%);
  --ag-menu-border-color: color-mix(in srgb, transparent, var(--ag-foreground-color) 10%);
  --ag-advanced-filter-join-pill-color: #7a3a37;
  --ag-advanced-filter-column-pill-color: #355f2d;
  --ag-advanced-filter-option-pill-color: #5a3168;
  --ag-advanced-filter-value-pill-color: #374c86;
  --ag-popup-shadow: 0 0px 20px rgba(0, 0, 0, 0.3);
  --ag-row-loading-skeleton-effect-color: rgba(202, 203, 204, 0.4);
  color-scheme: dark;
}

@media (prefers-color-scheme: dark) {
  .ag-theme-quartz-auto-dark {
    --ag-background-color: color-mix(in srgb, #fff, #182230 97%);
    --ag-foreground-color: #fff;
    --ag-border-color: rgba(255, 255, 255, 0.16);
    --ag-secondary-border-color: color-mix(in srgb, transparent, var(--ag-foreground-color) 10%);
    --ag-header-background-color: color-mix(in srgb, #fff, #182230 93%);
    --ag-tooltip-background-color: color-mix(in srgb, #fff, #182230 96%);
    --ag-control-panel-background-color: color-mix(in srgb, #fff, #182230 93%);
    --ag-input-disabled-background-color: #68686e12;
    --ag-card-shadow: 0 1px 20px 1px black;
    --ag-input-border-color: var(--ag-border-color);
    --ag-input-disabled-border-color: rgba(255, 255, 255, 0.07);
    --ag-checkbox-unchecked-color: color-mix(in srgb, var(--ag-background-color), var(--ag-foreground-color) 40%);
    --ag-row-hover-color: color-mix(in srgb, transparent, var(--ag-active-color) 20%);
    --ag-selected-row-background-color: var(--ag-row-hover-color);
    --ag-panel-background-color: color-mix(in srgb, var(--ag-background-color), var(--ag-foreground-color) 10%);
    --ag-panel-border-color: color-mix(in srgb, transparent, var(--ag-foreground-color) 10%);
    --ag-menu-background-color: color-mix(in srgb, var(--ag-background-color), var(--ag-foreground-color) 10%);
    --ag-menu-border-color: color-mix(in srgb, transparent, var(--ag-foreground-color) 10%);
    --ag-advanced-filter-join-pill-color: #7a3a37;
    --ag-advanced-filter-column-pill-color: #355f2d;
    --ag-advanced-filter-option-pill-color: #5a3168;
    --ag-advanced-filter-value-pill-color: #374c86;
    --ag-popup-shadow: 0 0px 20px rgba(0, 0, 0, 0.3);
    --ag-row-loading-skeleton-effect-color: rgba(202, 203, 204, 0.4);
    color-scheme: dark;
  }
}
.ag-theme-quartz .ag-filter-toolpanel-header,
.ag-theme-quartz .ag-filter-toolpanel-search,
.ag-theme-quartz .ag-status-bar,
.ag-theme-quartz .ag-header-row,
.ag-theme-quartz .ag-panel-title-bar-title,
.ag-theme-quartz .ag-multi-filter-group-title-bar,
.ag-theme-quartz-dark .ag-filter-toolpanel-header,
.ag-theme-quartz-dark .ag-filter-toolpanel-search,
.ag-theme-quartz-dark .ag-status-bar,
.ag-theme-quartz-dark .ag-header-row,
.ag-theme-quartz-dark .ag-panel-title-bar-title,
.ag-theme-quartz-dark .ag-multi-filter-group-title-bar,
.ag-theme-quartz-auto-dark .ag-filter-toolpanel-header,
.ag-theme-quartz-auto-dark .ag-filter-toolpanel-search,
.ag-theme-quartz-auto-dark .ag-status-bar,
.ag-theme-quartz-auto-dark .ag-header-row,
.ag-theme-quartz-auto-dark .ag-panel-title-bar-title,
.ag-theme-quartz-auto-dark .ag-multi-filter-group-title-bar {
  font-weight: 500;
  color: var(--ag-header-foreground-color);
}
.ag-theme-quartz input[class^=ag-]:not([type]),
.ag-theme-quartz input[class^=ag-][type=text],
.ag-theme-quartz input[class^=ag-][type=number],
.ag-theme-quartz input[class^=ag-][type=tel],
.ag-theme-quartz input[class^=ag-][type=date],
.ag-theme-quartz input[class^=ag-][type=datetime-local],
.ag-theme-quartz textarea[class^=ag-],
.ag-theme-quartz-dark input[class^=ag-]:not([type]),
.ag-theme-quartz-dark input[class^=ag-][type=text],
.ag-theme-quartz-dark input[class^=ag-][type=number],
.ag-theme-quartz-dark input[class^=ag-][type=tel],
.ag-theme-quartz-dark input[class^=ag-][type=date],
.ag-theme-quartz-dark input[class^=ag-][type=datetime-local],
.ag-theme-quartz-dark textarea[class^=ag-],
.ag-theme-quartz-auto-dark input[class^=ag-]:not([type]),
.ag-theme-quartz-auto-dark input[class^=ag-][type=text],
.ag-theme-quartz-auto-dark input[class^=ag-][type=number],
.ag-theme-quartz-auto-dark input[class^=ag-][type=tel],
.ag-theme-quartz-auto-dark input[class^=ag-][type=date],
.ag-theme-quartz-auto-dark input[class^=ag-][type=datetime-local],
.ag-theme-quartz-auto-dark textarea[class^=ag-] {
  min-height: calc(var(--ag-grid-size) * 4);
  border-radius: var(--ag-border-radius);
}
.ag-theme-quartz .ag-ltr input[class^=ag-]:not([type]), .ag-theme-quartz .ag-ltr input[class^=ag-][type=text], .ag-theme-quartz .ag-ltr input[class^=ag-][type=number], .ag-theme-quartz .ag-ltr input[class^=ag-][type=tel], .ag-theme-quartz .ag-ltr input[class^=ag-][type=date], .ag-theme-quartz .ag-ltr input[class^=ag-][type=datetime-local], .ag-theme-quartz .ag-ltr textarea[class^=ag-], .ag-theme-quartz-dark .ag-ltr input[class^=ag-]:not([type]), .ag-theme-quartz-dark .ag-ltr input[class^=ag-][type=text], .ag-theme-quartz-dark .ag-ltr input[class^=ag-][type=number], .ag-theme-quartz-dark .ag-ltr input[class^=ag-][type=tel], .ag-theme-quartz-dark .ag-ltr input[class^=ag-][type=date], .ag-theme-quartz-dark .ag-ltr input[class^=ag-][type=datetime-local], .ag-theme-quartz-dark .ag-ltr textarea[class^=ag-], .ag-theme-quartz-auto-dark .ag-ltr input[class^=ag-]:not([type]), .ag-theme-quartz-auto-dark .ag-ltr input[class^=ag-][type=text], .ag-theme-quartz-auto-dark .ag-ltr input[class^=ag-][type=number], .ag-theme-quartz-auto-dark .ag-ltr input[class^=ag-][type=tel], .ag-theme-quartz-auto-dark .ag-ltr input[class^=ag-][type=date], .ag-theme-quartz-auto-dark .ag-ltr input[class^=ag-][type=datetime-local], .ag-theme-quartz-auto-dark .ag-ltr textarea[class^=ag-] {
  padding-left: var(--ag-grid-size);
}

.ag-theme-quartz .ag-rtl input[class^=ag-]:not([type]), .ag-theme-quartz .ag-rtl input[class^=ag-][type=text], .ag-theme-quartz .ag-rtl input[class^=ag-][type=number], .ag-theme-quartz .ag-rtl input[class^=ag-][type=tel], .ag-theme-quartz .ag-rtl input[class^=ag-][type=date], .ag-theme-quartz .ag-rtl input[class^=ag-][type=datetime-local], .ag-theme-quartz .ag-rtl textarea[class^=ag-], .ag-theme-quartz-dark .ag-rtl input[class^=ag-]:not([type]), .ag-theme-quartz-dark .ag-rtl input[class^=ag-][type=text], .ag-theme-quartz-dark .ag-rtl input[class^=ag-][type=number], .ag-theme-quartz-dark .ag-rtl input[class^=ag-][type=tel], .ag-theme-quartz-dark .ag-rtl input[class^=ag-][type=date], .ag-theme-quartz-dark .ag-rtl input[class^=ag-][type=datetime-local], .ag-theme-quartz-dark .ag-rtl textarea[class^=ag-], .ag-theme-quartz-auto-dark .ag-rtl input[class^=ag-]:not([type]), .ag-theme-quartz-auto-dark .ag-rtl input[class^=ag-][type=text], .ag-theme-quartz-auto-dark .ag-rtl input[class^=ag-][type=number], .ag-theme-quartz-auto-dark .ag-rtl input[class^=ag-][type=tel], .ag-theme-quartz-auto-dark .ag-rtl input[class^=ag-][type=date], .ag-theme-quartz-auto-dark .ag-rtl input[class^=ag-][type=datetime-local], .ag-theme-quartz-auto-dark .ag-rtl textarea[class^=ag-] {
  padding-right: var(--ag-grid-size);
}

.ag-theme-quartz .ag-picker-field-wrapper,
.ag-theme-quartz-dark .ag-picker-field-wrapper,
.ag-theme-quartz-auto-dark .ag-picker-field-wrapper {
  min-height: calc(var(--ag-grid-size) * 4);
}
.ag-theme-quartz .ag-tab,
.ag-theme-quartz-dark .ag-tab,
.ag-theme-quartz-auto-dark .ag-tab {
  padding: var(--ag-grid-size);
  border-left: var(--ag-borders) transparent;
  border-right: var(--ag-borders) transparent;
  flex: 1 1 auto;
}
.ag-theme-quartz .ag-tab-selected,
.ag-theme-quartz-dark .ag-tab-selected,
.ag-theme-quartz-auto-dark .ag-tab-selected {
  background-color: var(--ag-background-color);
}
.ag-theme-quartz .ag-ltr .ag-tab-selected:not(:first-of-type), .ag-theme-quartz-dark .ag-ltr .ag-tab-selected:not(:first-of-type), .ag-theme-quartz-auto-dark .ag-ltr .ag-tab-selected:not(:first-of-type) {
  border-left-color: var(--ag-border-color);
}

.ag-theme-quartz .ag-rtl .ag-tab-selected:not(:first-of-type), .ag-theme-quartz-dark .ag-rtl .ag-tab-selected:not(:first-of-type), .ag-theme-quartz-auto-dark .ag-rtl .ag-tab-selected:not(:first-of-type) {
  border-right-color: var(--ag-border-color);
}

.ag-theme-quartz .ag-ltr .ag-tab-selected:not(:last-of-type), .ag-theme-quartz-dark .ag-ltr .ag-tab-selected:not(:last-of-type), .ag-theme-quartz-auto-dark .ag-ltr .ag-tab-selected:not(:last-of-type) {
  border-right-color: var(--ag-border-color);
}

.ag-theme-quartz .ag-rtl .ag-tab-selected:not(:last-of-type), .ag-theme-quartz-dark .ag-rtl .ag-tab-selected:not(:last-of-type), .ag-theme-quartz-auto-dark .ag-rtl .ag-tab-selected:not(:last-of-type) {
  border-left-color: var(--ag-border-color);
}

.ag-theme-quartz .ag-tab:not(.ag-tab-selected),
.ag-theme-quartz-dark .ag-tab:not(.ag-tab-selected),
.ag-theme-quartz-auto-dark .ag-tab:not(.ag-tab-selected) {
  opacity: 0.7;
}
.ag-theme-quartz .ag-tab:not(.ag-tab-selected):hover,
.ag-theme-quartz-dark .ag-tab:not(.ag-tab-selected):hover,
.ag-theme-quartz-auto-dark .ag-tab:not(.ag-tab-selected):hover {
  opacity: 1;
}
.ag-theme-quartz .ag-menu,
.ag-theme-quartz-dark .ag-menu,
.ag-theme-quartz-auto-dark .ag-menu {
  color: color-mix(in srgb, transparent, var(--ag-foreground-color) 95%);
}
.ag-theme-quartz .ag-panel-content-wrapper .ag-column-select,
.ag-theme-quartz-dark .ag-panel-content-wrapper .ag-column-select,
.ag-theme-quartz-auto-dark .ag-panel-content-wrapper .ag-column-select {
  background-color: var(--ag-control-panel-background-color);
  color: color-mix(in srgb, transparent, var(--ag-foreground-color) 95%);
}
.ag-theme-quartz .ag-menu-header,
.ag-theme-quartz-dark .ag-menu-header,
.ag-theme-quartz-auto-dark .ag-menu-header {
  background-color: var(--ag-control-panel-background-color);
}
.ag-theme-quartz .ag-menu-option,
.ag-theme-quartz-dark .ag-menu-option,
.ag-theme-quartz-auto-dark .ag-menu-option {
  font-weight: 500;
  cursor: pointer;
}
.ag-theme-quartz .ag-ltr .ag-menu-option-popup-pointer .ag-icon, .ag-theme-quartz-dark .ag-ltr .ag-menu-option-popup-pointer .ag-icon, .ag-theme-quartz-auto-dark .ag-ltr .ag-menu-option-popup-pointer .ag-icon {
  text-align: right;
}

.ag-theme-quartz .ag-rtl .ag-menu-option-popup-pointer .ag-icon, .ag-theme-quartz-dark .ag-rtl .ag-menu-option-popup-pointer .ag-icon, .ag-theme-quartz-auto-dark .ag-rtl .ag-menu-option-popup-pointer .ag-icon {
  text-align: left;
}

.ag-theme-quartz .ag-tabs-header,
.ag-theme-quartz-dark .ag-tabs-header,
.ag-theme-quartz-auto-dark .ag-tabs-header {
  border-bottom: var(--ag-borders) var(--ag-border-color);
  display: flex;
  background-color: color-mix(in srgb, transparent, var(--ag-foreground-color) 5%);
}
.ag-theme-quartz .ag-side-bar,
.ag-theme-quartz-dark .ag-side-bar,
.ag-theme-quartz-auto-dark .ag-side-bar {
  background-color: var(--ag-control-panel-background-color);
  min-width: calc(var(--ag-icon-size) + var(--ag-grid-size) * 2);
}
.ag-theme-quartz .ag-side-buttons,
.ag-theme-quartz-dark .ag-side-buttons,
.ag-theme-quartz-auto-dark .ag-side-buttons {
  padding: 0;
  align-self: stretch;
  width: calc(var(--ag-icon-size) + var(--ag-grid-size) * 2);
  background: var(--ag-control-panel-background-color);
}
.ag-theme-quartz .ag-side-button,
.ag-theme-quartz-dark .ag-side-button,
.ag-theme-quartz-auto-dark .ag-side-button {
  border-top: var(--ag-borders) transparent;
  border-bottom: var(--ag-borders) transparent;
}
@media (max-resolution: 1.5x) {
  .ag-theme-quartz .ag-side-button-label,
  .ag-theme-quartz-dark .ag-side-button-label,
  .ag-theme-quartz-auto-dark .ag-side-button-label {
    font-family: "Segoe UI", var(--ag-font-family);
    transform: rotate(0.05deg);
  }
}
.ag-theme-quartz .ag-side-button.ag-selected,
.ag-theme-quartz-dark .ag-side-button.ag-selected,
.ag-theme-quartz-auto-dark .ag-side-button.ag-selected {
  border-bottom-color: var(--ag-border-color);
  background-color: var(--ag-background-color);
}
.ag-theme-quartz .ag-side-button.ag-selected:not(:first-of-type),
.ag-theme-quartz-dark .ag-side-button.ag-selected:not(:first-of-type),
.ag-theme-quartz-auto-dark .ag-side-button.ag-selected:not(:first-of-type) {
  border-top-color: var(--ag-border-color);
}
.ag-theme-quartz .ag-column-panel-column-select,
.ag-theme-quartz-dark .ag-column-panel-column-select,
.ag-theme-quartz-auto-dark .ag-column-panel-column-select {
  border-top: none;
  border-bottom: 1px solid var(--ag-secondary-border-color);
}
.ag-theme-quartz .ag-filter-toolpanel-search,
.ag-theme-quartz-dark .ag-filter-toolpanel-search,
.ag-theme-quartz-auto-dark .ag-filter-toolpanel-search {
  height: initial;
  margin-top: var(--ag-widget-container-vertical-padding);
}
.ag-theme-quartz .ag-filter-toolpanel-search-input,
.ag-theme-quartz-dark .ag-filter-toolpanel-search-input,
.ag-theme-quartz-auto-dark .ag-filter-toolpanel-search-input {
  margin: 0;
}
.ag-theme-quartz .ag-filter-apply-panel,
.ag-theme-quartz-dark .ag-filter-apply-panel,
.ag-theme-quartz-auto-dark .ag-filter-apply-panel {
  border: none;
  padding-top: var(--ag-widget-vertical-spacing);
}
.ag-theme-quartz .ag-chart-tabbed-menu-body,
.ag-theme-quartz-dark .ag-chart-tabbed-menu-body,
.ag-theme-quartz-auto-dark .ag-chart-tabbed-menu-body {
  position: relative;
}
.ag-theme-quartz .ag-chart-tabbed-menu-body::after,
.ag-theme-quartz-dark .ag-chart-tabbed-menu-body::after,
.ag-theme-quartz-auto-dark .ag-chart-tabbed-menu-body::after {
  content: "";
  position: absolute;
  display: block;
  top: 0;
  left: 0;
  right: 0;
  height: 16px;
  background: linear-gradient(var(--ag-control-panel-background-color), transparent);
}
.ag-theme-quartz .ag-charts-settings-group-title-bar,
.ag-theme-quartz .ag-charts-data-group-title-bar,
.ag-theme-quartz .ag-charts-format-top-level-group-title-bar,
.ag-theme-quartz .ag-charts-advanced-settings-top-level-group-title-bar,
.ag-theme-quartz .ag-charts-settings-group-container,
.ag-theme-quartz-dark .ag-charts-settings-group-title-bar,
.ag-theme-quartz-dark .ag-charts-data-group-title-bar,
.ag-theme-quartz-dark .ag-charts-format-top-level-group-title-bar,
.ag-theme-quartz-dark .ag-charts-advanced-settings-top-level-group-title-bar,
.ag-theme-quartz-dark .ag-charts-settings-group-container,
.ag-theme-quartz-auto-dark .ag-charts-settings-group-title-bar,
.ag-theme-quartz-auto-dark .ag-charts-data-group-title-bar,
.ag-theme-quartz-auto-dark .ag-charts-format-top-level-group-title-bar,
.ag-theme-quartz-auto-dark .ag-charts-advanced-settings-top-level-group-title-bar,
.ag-theme-quartz-auto-dark .ag-charts-settings-group-container {
  border-top: none;
  font-weight: 500;
}
.ag-theme-quartz .ag-chart-mini-thumbnail,
.ag-theme-quartz-dark .ag-chart-mini-thumbnail,
.ag-theme-quartz-auto-dark .ag-chart-mini-thumbnail {
  background-color: var(--ag-background-color);
  margin-top: 0;
  margin-bottom: 0;
}
.ag-theme-quartz .ag-chart-settings-nav-bar,
.ag-theme-quartz-dark .ag-chart-settings-nav-bar,
.ag-theme-quartz-auto-dark .ag-chart-settings-nav-bar {
  border-top: var(--ag-borders-secondary) var(--ag-secondary-border-color);
}
.ag-theme-quartz .ag-charts-format-sub-level-group-title-bar,
.ag-theme-quartz-dark .ag-charts-format-sub-level-group-title-bar,
.ag-theme-quartz-auto-dark .ag-charts-format-sub-level-group-title-bar {
  background: none;
  font-weight: 500;
}
.ag-theme-quartz .ag-chart-data-section .ag-label:not(.ag-group-title-bar),
.ag-theme-quartz .ag-chart-format-section .ag-label:not(.ag-group-title-bar),
.ag-theme-quartz-dark .ag-chart-data-section .ag-label:not(.ag-group-title-bar),
.ag-theme-quartz-dark .ag-chart-format-section .ag-label:not(.ag-group-title-bar),
.ag-theme-quartz-auto-dark .ag-chart-data-section .ag-label:not(.ag-group-title-bar),
.ag-theme-quartz-auto-dark .ag-chart-format-section .ag-label:not(.ag-group-title-bar) {
  color: var(--ag-chart-menu-label-color);
}
.ag-theme-quartz .ag-chart-data-section .ag-label-align-top .ag-label,
.ag-theme-quartz .ag-chart-format-section .ag-label-align-top .ag-label,
.ag-theme-quartz-dark .ag-chart-data-section .ag-label-align-top .ag-label,
.ag-theme-quartz-dark .ag-chart-format-section .ag-label-align-top .ag-label,
.ag-theme-quartz-auto-dark .ag-chart-data-section .ag-label-align-top .ag-label,
.ag-theme-quartz-auto-dark .ag-chart-format-section .ag-label-align-top .ag-label {
  margin-top: calc(var(--ag-widget-vertical-spacing) * 0.5);
  margin-bottom: var(--ag-widget-vertical-spacing);
}
.ag-theme-quartz .ag-chart-data-section .ag-slider.ag-label-align-top .ag-label,
.ag-theme-quartz .ag-chart-format-section .ag-slider.ag-label-align-top .ag-label,
.ag-theme-quartz-dark .ag-chart-data-section .ag-slider.ag-label-align-top .ag-label,
.ag-theme-quartz-dark .ag-chart-format-section .ag-slider.ag-label-align-top .ag-label,
.ag-theme-quartz-auto-dark .ag-chart-data-section .ag-slider.ag-label-align-top .ag-label,
.ag-theme-quartz-auto-dark .ag-chart-format-section .ag-slider.ag-label-align-top .ag-label {
  margin-bottom: 0;
}
.ag-theme-quartz .ag-chart-data-section label,
.ag-theme-quartz .ag-chart-format-section label,
.ag-theme-quartz-dark .ag-chart-data-section label,
.ag-theme-quartz-dark .ag-chart-format-section label,
.ag-theme-quartz-auto-dark .ag-chart-data-section label,
.ag-theme-quartz-auto-dark .ag-chart-format-section label {
  display: inline-block;
}
.ag-theme-quartz .ag-chart-format-wrapper,
.ag-theme-quartz .ag-chart-data-wrapper,
.ag-theme-quartz .ag-charts-format-top-level-group,
.ag-theme-quartz .ag-charts-format-top-level-group-title-bar,
.ag-theme-quartz .ag-charts-format-top-level-group .ag-charts-format-top-level-group-container,
.ag-theme-quartz .ag-charts-format-top-level-group-item,
.ag-theme-quartz .ag-charts-format-sub-level-group,
.ag-theme-quartz .ag-charts-format-sub-level-group-title-bar,
.ag-theme-quartz .ag-charts-format-sub-level-group-container,
.ag-theme-quartz .ag-charts-format-sub-level-group-item:last-child,
.ag-theme-quartz .ag-charts-format-sub-level-group-container > *,
.ag-theme-quartz .ag-charts-data-group-title-bar,
.ag-theme-quartz .ag-charts-data-group-container,
.ag-theme-quartz .ag-charts-settings-group-title-bar,
.ag-theme-quartz .ag-charts-settings-group-container,
.ag-theme-quartz-dark .ag-chart-format-wrapper,
.ag-theme-quartz-dark .ag-chart-data-wrapper,
.ag-theme-quartz-dark .ag-charts-format-top-level-group,
.ag-theme-quartz-dark .ag-charts-format-top-level-group-title-bar,
.ag-theme-quartz-dark .ag-charts-format-top-level-group .ag-charts-format-top-level-group-container,
.ag-theme-quartz-dark .ag-charts-format-top-level-group-item,
.ag-theme-quartz-dark .ag-charts-format-sub-level-group,
.ag-theme-quartz-dark .ag-charts-format-sub-level-group-title-bar,
.ag-theme-quartz-dark .ag-charts-format-sub-level-group-container,
.ag-theme-quartz-dark .ag-charts-format-sub-level-group-item:last-child,
.ag-theme-quartz-dark .ag-charts-format-sub-level-group-container > *,
.ag-theme-quartz-dark .ag-charts-data-group-title-bar,
.ag-theme-quartz-dark .ag-charts-data-group-container,
.ag-theme-quartz-dark .ag-charts-settings-group-title-bar,
.ag-theme-quartz-dark .ag-charts-settings-group-container,
.ag-theme-quartz-auto-dark .ag-chart-format-wrapper,
.ag-theme-quartz-auto-dark .ag-chart-data-wrapper,
.ag-theme-quartz-auto-dark .ag-charts-format-top-level-group,
.ag-theme-quartz-auto-dark .ag-charts-format-top-level-group-title-bar,
.ag-theme-quartz-auto-dark .ag-charts-format-top-level-group .ag-charts-format-top-level-group-container,
.ag-theme-quartz-auto-dark .ag-charts-format-top-level-group-item,
.ag-theme-quartz-auto-dark .ag-charts-format-sub-level-group,
.ag-theme-quartz-auto-dark .ag-charts-format-sub-level-group-title-bar,
.ag-theme-quartz-auto-dark .ag-charts-format-sub-level-group-container,
.ag-theme-quartz-auto-dark .ag-charts-format-sub-level-group-item:last-child,
.ag-theme-quartz-auto-dark .ag-charts-format-sub-level-group-container > *,
.ag-theme-quartz-auto-dark .ag-charts-data-group-title-bar,
.ag-theme-quartz-auto-dark .ag-charts-data-group-container,
.ag-theme-quartz-auto-dark .ag-charts-settings-group-title-bar,
.ag-theme-quartz-auto-dark .ag-charts-settings-group-container {
  padding: 0;
  margin: 0;
}
.ag-theme-quartz .ag-charts-format-top-level-group,
.ag-theme-quartz .ag-charts-data-group,
.ag-theme-quartz-dark .ag-charts-format-top-level-group,
.ag-theme-quartz-dark .ag-charts-data-group,
.ag-theme-quartz-auto-dark .ag-charts-format-top-level-group,
.ag-theme-quartz-auto-dark .ag-charts-data-group {
  border-top: var(--ag-borders-secondary) var(--ag-secondary-border-color);
}
.ag-theme-quartz .ag-charts-format-top-level-group-title-bar,
.ag-theme-quartz .ag-charts-data-group-title-bar,
.ag-theme-quartz .ag-charts-settings-group-title-bar,
.ag-theme-quartz-dark .ag-charts-format-top-level-group-title-bar,
.ag-theme-quartz-dark .ag-charts-data-group-title-bar,
.ag-theme-quartz-dark .ag-charts-settings-group-title-bar,
.ag-theme-quartz-auto-dark .ag-charts-format-top-level-group-title-bar,
.ag-theme-quartz-auto-dark .ag-charts-data-group-title-bar,
.ag-theme-quartz-auto-dark .ag-charts-settings-group-title-bar {
  padding: var(--ag-widget-container-vertical-padding) var(--ag-widget-container-horizontal-padding);
}
.ag-theme-quartz .ag-charts-format-top-level-group .ag-charts-format-top-level-group-container,
.ag-theme-quartz .ag-charts-data-group .ag-charts-data-group-container,
.ag-theme-quartz .ag-charts-settings-group .ag-charts-settings-group-container,
.ag-theme-quartz-dark .ag-charts-format-top-level-group .ag-charts-format-top-level-group-container,
.ag-theme-quartz-dark .ag-charts-data-group .ag-charts-data-group-container,
.ag-theme-quartz-dark .ag-charts-settings-group .ag-charts-settings-group-container,
.ag-theme-quartz-auto-dark .ag-charts-format-top-level-group .ag-charts-format-top-level-group-container,
.ag-theme-quartz-auto-dark .ag-charts-data-group .ag-charts-data-group-container,
.ag-theme-quartz-auto-dark .ag-charts-settings-group .ag-charts-settings-group-container {
  padding: 0 var(--ag-widget-container-horizontal-padding);
}
.ag-theme-quartz .ag-charts-format-sub-level-group-title-bar,
.ag-theme-quartz-dark .ag-charts-format-sub-level-group-title-bar,
.ag-theme-quartz-auto-dark .ag-charts-format-sub-level-group-title-bar {
  padding: var(--ag-widget-vertical-spacing) 0;
}
.ag-theme-quartz .ag-charts-format-sub-level-group-container,
.ag-theme-quartz-dark .ag-charts-format-sub-level-group-container,
.ag-theme-quartz-auto-dark .ag-charts-format-sub-level-group-container {
  padding-top: var(--ag-widget-vertical-spacing);
  padding-bottom: var(--ag-widget-container-vertical-padding);
}
.ag-theme-quartz .ag-charts-format-top-level-group-container > *,
.ag-theme-quartz .ag-charts-format-sub-level-group-container > *,
.ag-theme-quartz-dark .ag-charts-format-top-level-group-container > *,
.ag-theme-quartz-dark .ag-charts-format-sub-level-group-container > *,
.ag-theme-quartz-auto-dark .ag-charts-format-top-level-group-container > *,
.ag-theme-quartz-auto-dark .ag-charts-format-sub-level-group-container > * {
  margin-bottom: var(--ag-widget-vertical-spacing);
}
.ag-theme-quartz .ag-charts-data-group-item,
.ag-theme-quartz-dark .ag-charts-data-group-item,
.ag-theme-quartz-auto-dark .ag-charts-data-group-item {
  padding-bottom: var(--ag-widget-container-vertical-padding);
}
.ag-theme-quartz .ag-chart-settings-mini-wrapper,
.ag-theme-quartz-dark .ag-chart-settings-mini-wrapper,
.ag-theme-quartz-auto-dark .ag-chart-settings-mini-wrapper {
  padding-bottom: var(--ag-widget-container-vertical-padding);
}
.ag-theme-quartz .ag-chart-advanced-settings-section,
.ag-theme-quartz-dark .ag-chart-advanced-settings-section,
.ag-theme-quartz-auto-dark .ag-chart-advanced-settings-section {
  padding-top: var(--ag-widget-container-vertical-padding);
  padding-bottom: var(--ag-widget-container-vertical-padding);
}
.ag-theme-quartz .ag-charts-advanced-settings-top-level-group .ag-charts-advanced-settings-top-level-group-title-bar,
.ag-theme-quartz .ag-charts-advanced-settings-top-level-group .ag-charts-advanced-settings-top-level-group-container,
.ag-theme-quartz-dark .ag-charts-advanced-settings-top-level-group .ag-charts-advanced-settings-top-level-group-title-bar,
.ag-theme-quartz-dark .ag-charts-advanced-settings-top-level-group .ag-charts-advanced-settings-top-level-group-container,
.ag-theme-quartz-auto-dark .ag-charts-advanced-settings-top-level-group .ag-charts-advanced-settings-top-level-group-title-bar,
.ag-theme-quartz-auto-dark .ag-charts-advanced-settings-top-level-group .ag-charts-advanced-settings-top-level-group-container {
  padding: 0 var(--ag-widget-container-horizontal-padding);
}
.ag-theme-quartz .ag-charts-advanced-settings-top-level-group-container,
.ag-theme-quartz-dark .ag-charts-advanced-settings-top-level-group-container,
.ag-theme-quartz-auto-dark .ag-charts-advanced-settings-top-level-group-container {
  margin: 0;
}
.ag-theme-quartz .ag-charts-advanced-settings-top-level-group-item,
.ag-theme-quartz-dark .ag-charts-advanced-settings-top-level-group-item,
.ag-theme-quartz-auto-dark .ag-charts-advanced-settings-top-level-group-item {
  margin-top: calc(var(--ag-widget-vertical-spacing) * 2);
  margin-bottom: 0;
}
.ag-theme-quartz .ag-ltr .ag-group-title-bar-icon, .ag-theme-quartz-dark .ag-ltr .ag-group-title-bar-icon, .ag-theme-quartz-auto-dark .ag-ltr .ag-group-title-bar-icon {
  margin-right: var(--ag-grid-size);
}

.ag-theme-quartz .ag-rtl .ag-group-title-bar-icon, .ag-theme-quartz-dark .ag-rtl .ag-group-title-bar-icon, .ag-theme-quartz-auto-dark .ag-rtl .ag-group-title-bar-icon {
  margin-left: var(--ag-grid-size);
}

.ag-theme-quartz .ag-spectrum-color,
.ag-theme-quartz .ag-spectrum-fill,
.ag-theme-quartz-dark .ag-spectrum-color,
.ag-theme-quartz-dark .ag-spectrum-fill,
.ag-theme-quartz-auto-dark .ag-spectrum-color,
.ag-theme-quartz-auto-dark .ag-spectrum-fill {
  border-radius: var(--ag-border-radius);
}
.ag-theme-quartz .ag-spectrum-dragger,
.ag-theme-quartz-dark .ag-spectrum-dragger,
.ag-theme-quartz-auto-dark .ag-spectrum-dragger {
  border-radius: 18px;
  height: 18px;
  width: 18px;
  border: 3px solid white;
}
.ag-theme-quartz .ag-spectrum-tools,
.ag-theme-quartz-dark .ag-spectrum-tools,
.ag-theme-quartz-auto-dark .ag-spectrum-tools {
  padding-left: 0;
  padding-right: 0;
  padding-bottom: 0;
}
.ag-theme-quartz .ag-spectrum-tool,
.ag-theme-quartz-dark .ag-spectrum-tool,
.ag-theme-quartz-auto-dark .ag-spectrum-tool {
  height: 12px;
}
.ag-theme-quartz .ag-spectrum-hue-background,
.ag-theme-quartz .ag-spectrum-alpha-background,
.ag-theme-quartz-dark .ag-spectrum-hue-background,
.ag-theme-quartz-dark .ag-spectrum-alpha-background,
.ag-theme-quartz-auto-dark .ag-spectrum-hue-background,
.ag-theme-quartz-auto-dark .ag-spectrum-alpha-background {
  border-radius: 12px;
}
.ag-theme-quartz .ag-spectrum-slider,
.ag-theme-quartz-dark .ag-spectrum-slider,
.ag-theme-quartz-auto-dark .ag-spectrum-slider {
  margin-top: -15px;
  width: 18px;
  height: 18px;
  border-radius: 18px;
  border: 3px solid rgb(248, 248, 248);
}
.ag-theme-quartz .ag-recent-colors,
.ag-theme-quartz-dark .ag-recent-colors,
.ag-theme-quartz-auto-dark .ag-recent-colors {
  margin-left: var(--ag-grid-size);
  margin-right: var(--ag-grid-size);
  margin-bottom: 2px;
}
.ag-theme-quartz .ag-color-input-color,
.ag-theme-quartz .ag-color-picker-color,
.ag-theme-quartz .ag-recent-color,
.ag-theme-quartz-dark .ag-color-input-color,
.ag-theme-quartz-dark .ag-color-picker-color,
.ag-theme-quartz-dark .ag-recent-color,
.ag-theme-quartz-auto-dark .ag-color-input-color,
.ag-theme-quartz-auto-dark .ag-color-picker-color,
.ag-theme-quartz-auto-dark .ag-recent-color {
  border-radius: 4px;
}
.ag-theme-quartz .ag-recent-color,
.ag-theme-quartz-dark .ag-recent-color,
.ag-theme-quartz-auto-dark .ag-recent-color {
  border: var(--ag-borders-secondary) var(--ag-secondary-border-color);
}
.ag-theme-quartz.ag-dnd-ghost,
.ag-theme-quartz-dark.ag-dnd-ghost,
.ag-theme-quartz-auto-dark.ag-dnd-ghost {
  font-weight: 500;
}
.ag-theme-quartz .ag-standard-button,
.ag-theme-quartz-dark .ag-standard-button,
.ag-theme-quartz-auto-dark .ag-standard-button {
  font-family: inherit;
  appearance: none;
  -webkit-appearance: none;
  border-radius: var(--ag-border-radius);
  border: solid 1px var(--ag-input-border-color);
  background-color: var(--ag-background-color);
  padding: var(--ag-grid-size) calc(var(--ag-grid-size) * 2);
  cursor: pointer;
}
.ag-theme-quartz .ag-standard-button:hover,
.ag-theme-quartz-dark .ag-standard-button:hover,
.ag-theme-quartz-auto-dark .ag-standard-button:hover {
  background-color: var(--ag-row-hover-color);
}
.ag-theme-quartz .ag-standard-button:active,
.ag-theme-quartz-dark .ag-standard-button:active,
.ag-theme-quartz-auto-dark .ag-standard-button:active {
  border-color: var(--ag-active-color);
}
.ag-theme-quartz .ag-standard-button:disabled,
.ag-theme-quartz-dark .ag-standard-button:disabled,
.ag-theme-quartz-auto-dark .ag-standard-button:disabled {
  color: var(--ag-disabled-foreground-color);
  background-color: var(--ag-input-disabled-background-color);
  border-color: var(--ag-input-disabled-border-color);
}
.ag-theme-quartz .ag-column-drop-cell,
.ag-theme-quartz-dark .ag-column-drop-cell,
.ag-theme-quartz-auto-dark .ag-column-drop-cell {
  border-radius: calc(var(--ag-grid-size) * 3);
  height: calc(var(--ag-grid-size) * 3);
  padding: 0 var(--ag-grid-size);
}
.ag-theme-quartz .ag-column-drop-cell-button,
.ag-theme-quartz-dark .ag-column-drop-cell-button,
.ag-theme-quartz-auto-dark .ag-column-drop-cell-button {
  min-width: 0;
  margin: 0;
}
.ag-theme-quartz .ag-column-drop-cell-drag-handle,
.ag-theme-quartz-dark .ag-column-drop-cell-drag-handle,
.ag-theme-quartz-auto-dark .ag-column-drop-cell-drag-handle {
  margin-left: 0;
}
.ag-theme-quartz .ag-column-drop-vertical,
.ag-theme-quartz-dark .ag-column-drop-vertical,
.ag-theme-quartz-auto-dark .ag-column-drop-vertical {
  min-height: 75px;
}
.ag-theme-quartz .ag-column-drop-vertical-title-bar,
.ag-theme-quartz-dark .ag-column-drop-vertical-title-bar,
.ag-theme-quartz-auto-dark .ag-column-drop-vertical-title-bar {
  padding: var(--ag-widget-container-vertical-padding) calc(var(--ag-grid-size) * 2) 0;
}
.ag-theme-quartz .ag-ltr .ag-column-drop-vertical-icon, .ag-theme-quartz-dark .ag-ltr .ag-column-drop-vertical-icon, .ag-theme-quartz-auto-dark .ag-ltr .ag-column-drop-vertical-icon {
  margin-left: 0;
  margin-right: var(--ag-widget-horizontal-spacing);
}

.ag-theme-quartz .ag-rtl .ag-column-drop-vertical-icon, .ag-theme-quartz-dark .ag-rtl .ag-column-drop-vertical-icon, .ag-theme-quartz-auto-dark .ag-rtl .ag-column-drop-vertical-icon {
  margin-right: 0;
  margin-left: var(--ag-widget-horizontal-spacing);
}

.ag-theme-quartz .ag-column-drop-vertical-empty-message,
.ag-theme-quartz-dark .ag-column-drop-vertical-empty-message,
.ag-theme-quartz-auto-dark .ag-column-drop-vertical-empty-message {
  display: flex;
  align-items: center;
  justify-content: center;
  border: dashed 1px;
  border-color: var(--ag-border-color);
  margin: calc(var(--ag-grid-size) * 1.5) calc(var(--ag-grid-size) * 2);
  padding: calc(var(--ag-grid-size) * 2);
}
.ag-theme-quartz .ag-column-drop-empty-message,
.ag-theme-quartz-dark .ag-column-drop-empty-message,
.ag-theme-quartz-auto-dark .ag-column-drop-empty-message {
  color: var(--ag-foreground-color);
}
.ag-theme-quartz .ag-pill-select .ag-column-drop,
.ag-theme-quartz-dark .ag-pill-select .ag-column-drop,
.ag-theme-quartz-auto-dark .ag-pill-select .ag-column-drop {
  min-height: unset;
}
.ag-theme-quartz .ag-pill-select .ag-picker-field-display,
.ag-theme-quartz-dark .ag-pill-select .ag-picker-field-display,
.ag-theme-quartz-auto-dark .ag-pill-select .ag-picker-field-display {
  font-weight: 500;
  color: var(--ag-chart-menu-pill-select-button-color);
}
.ag-theme-quartz .ag-pill-select .ag-picker-field-icon .ag-icon,
.ag-theme-quartz-dark .ag-pill-select .ag-picker-field-icon .ag-icon,
.ag-theme-quartz-auto-dark .ag-pill-select .ag-picker-field-icon .ag-icon {
  color: var(--ag-chart-menu-pill-select-button-color);
}
.ag-theme-quartz .ag-status-bar,
.ag-theme-quartz-dark .ag-status-bar,
.ag-theme-quartz-auto-dark .ag-status-bar {
  font-weight: normal;
}
.ag-theme-quartz .ag-status-name-value,
.ag-theme-quartz-dark .ag-status-name-value,
.ag-theme-quartz-auto-dark .ag-status-name-value {
  padding: var(--ag-widget-container-vertical-padding) 0;
}
.ag-theme-quartz .ag-status-name-value-value,
.ag-theme-quartz .ag-paging-number,
.ag-theme-quartz .ag-paging-row-summary-panel-number,
.ag-theme-quartz-dark .ag-status-name-value-value,
.ag-theme-quartz-dark .ag-paging-number,
.ag-theme-quartz-dark .ag-paging-row-summary-panel-number,
.ag-theme-quartz-auto-dark .ag-status-name-value-value,
.ag-theme-quartz-auto-dark .ag-paging-number,
.ag-theme-quartz-auto-dark .ag-paging-row-summary-panel-number {
  font-weight: 500;
}
.ag-theme-quartz .ag-column-drop-cell-button,
.ag-theme-quartz-dark .ag-column-drop-cell-button,
.ag-theme-quartz-auto-dark .ag-column-drop-cell-button {
  opacity: 0.75;
}
.ag-theme-quartz .ag-column-drop-cell-button:hover,
.ag-theme-quartz-dark .ag-column-drop-cell-button:hover,
.ag-theme-quartz-auto-dark .ag-column-drop-cell-button:hover {
  opacity: 1;
}
.ag-theme-quartz .ag-header-cell-menu-button,
.ag-theme-quartz .ag-header-cell-filter-button,
.ag-theme-quartz .ag-panel-title-bar-button,
.ag-theme-quartz .ag-header-expand-icon,
.ag-theme-quartz .ag-column-group-icons,
.ag-theme-quartz .ag-set-filter-group-icons,
.ag-theme-quartz .ag-group-expanded .ag-icon,
.ag-theme-quartz .ag-group-contracted .ag-icon,
.ag-theme-quartz .ag-chart-settings-prev,
.ag-theme-quartz .ag-chart-settings-next,
.ag-theme-quartz .ag-group-title-bar-icon,
.ag-theme-quartz .ag-column-select-header-icon,
.ag-theme-quartz .ag-floating-filter-button-button,
.ag-theme-quartz .ag-filter-toolpanel-expand,
.ag-theme-quartz .ag-panel-title-bar-button-icon,
.ag-theme-quartz .ag-chart-menu-icon,
.ag-theme-quartz-dark .ag-header-cell-menu-button,
.ag-theme-quartz-dark .ag-header-cell-filter-button,
.ag-theme-quartz-dark .ag-panel-title-bar-button,
.ag-theme-quartz-dark .ag-header-expand-icon,
.ag-theme-quartz-dark .ag-column-group-icons,
.ag-theme-quartz-dark .ag-set-filter-group-icons,
.ag-theme-quartz-dark .ag-group-expanded .ag-icon,
.ag-theme-quartz-dark .ag-group-contracted .ag-icon,
.ag-theme-quartz-dark .ag-chart-settings-prev,
.ag-theme-quartz-dark .ag-chart-settings-next,
.ag-theme-quartz-dark .ag-group-title-bar-icon,
.ag-theme-quartz-dark .ag-column-select-header-icon,
.ag-theme-quartz-dark .ag-floating-filter-button-button,
.ag-theme-quartz-dark .ag-filter-toolpanel-expand,
.ag-theme-quartz-dark .ag-panel-title-bar-button-icon,
.ag-theme-quartz-dark .ag-chart-menu-icon,
.ag-theme-quartz-auto-dark .ag-header-cell-menu-button,
.ag-theme-quartz-auto-dark .ag-header-cell-filter-button,
.ag-theme-quartz-auto-dark .ag-panel-title-bar-button,
.ag-theme-quartz-auto-dark .ag-header-expand-icon,
.ag-theme-quartz-auto-dark .ag-column-group-icons,
.ag-theme-quartz-auto-dark .ag-set-filter-group-icons,
.ag-theme-quartz-auto-dark .ag-group-expanded .ag-icon,
.ag-theme-quartz-auto-dark .ag-group-contracted .ag-icon,
.ag-theme-quartz-auto-dark .ag-chart-settings-prev,
.ag-theme-quartz-auto-dark .ag-chart-settings-next,
.ag-theme-quartz-auto-dark .ag-group-title-bar-icon,
.ag-theme-quartz-auto-dark .ag-column-select-header-icon,
.ag-theme-quartz-auto-dark .ag-floating-filter-button-button,
.ag-theme-quartz-auto-dark .ag-filter-toolpanel-expand,
.ag-theme-quartz-auto-dark .ag-panel-title-bar-button-icon,
.ag-theme-quartz-auto-dark .ag-chart-menu-icon {
  --ag-quartz-icon-hover-color: color-mix(in srgb, transparent, var(--ag-foreground-color) 10%);
}
.ag-theme-quartz .ag-header-cell-menu-button:hover,
.ag-theme-quartz .ag-header-cell-filter-button:hover,
.ag-theme-quartz .ag-panel-title-bar-button:hover,
.ag-theme-quartz .ag-header-expand-icon:hover,
.ag-theme-quartz .ag-column-group-icons:hover,
.ag-theme-quartz .ag-set-filter-group-icons:hover,
.ag-theme-quartz .ag-group-expanded .ag-icon:hover,
.ag-theme-quartz .ag-group-contracted .ag-icon:hover,
.ag-theme-quartz .ag-chart-settings-prev:hover,
.ag-theme-quartz .ag-chart-settings-next:hover,
.ag-theme-quartz .ag-group-title-bar-icon:hover,
.ag-theme-quartz .ag-column-select-header-icon:hover,
.ag-theme-quartz .ag-floating-filter-button-button:hover,
.ag-theme-quartz .ag-filter-toolpanel-expand:hover,
.ag-theme-quartz .ag-panel-title-bar-button-icon:hover,
.ag-theme-quartz .ag-chart-menu-icon:hover,
.ag-theme-quartz-dark .ag-header-cell-menu-button:hover,
.ag-theme-quartz-dark .ag-header-cell-filter-button:hover,
.ag-theme-quartz-dark .ag-panel-title-bar-button:hover,
.ag-theme-quartz-dark .ag-header-expand-icon:hover,
.ag-theme-quartz-dark .ag-column-group-icons:hover,
.ag-theme-quartz-dark .ag-set-filter-group-icons:hover,
.ag-theme-quartz-dark .ag-group-expanded .ag-icon:hover,
.ag-theme-quartz-dark .ag-group-contracted .ag-icon:hover,
.ag-theme-quartz-dark .ag-chart-settings-prev:hover,
.ag-theme-quartz-dark .ag-chart-settings-next:hover,
.ag-theme-quartz-dark .ag-group-title-bar-icon:hover,
.ag-theme-quartz-dark .ag-column-select-header-icon:hover,
.ag-theme-quartz-dark .ag-floating-filter-button-button:hover,
.ag-theme-quartz-dark .ag-filter-toolpanel-expand:hover,
.ag-theme-quartz-dark .ag-panel-title-bar-button-icon:hover,
.ag-theme-quartz-dark .ag-chart-menu-icon:hover,
.ag-theme-quartz-auto-dark .ag-header-cell-menu-button:hover,
.ag-theme-quartz-auto-dark .ag-header-cell-filter-button:hover,
.ag-theme-quartz-auto-dark .ag-panel-title-bar-button:hover,
.ag-theme-quartz-auto-dark .ag-header-expand-icon:hover,
.ag-theme-quartz-auto-dark .ag-column-group-icons:hover,
.ag-theme-quartz-auto-dark .ag-set-filter-group-icons:hover,
.ag-theme-quartz-auto-dark .ag-group-expanded .ag-icon:hover,
.ag-theme-quartz-auto-dark .ag-group-contracted .ag-icon:hover,
.ag-theme-quartz-auto-dark .ag-chart-settings-prev:hover,
.ag-theme-quartz-auto-dark .ag-chart-settings-next:hover,
.ag-theme-quartz-auto-dark .ag-group-title-bar-icon:hover,
.ag-theme-quartz-auto-dark .ag-column-select-header-icon:hover,
.ag-theme-quartz-auto-dark .ag-floating-filter-button-button:hover,
.ag-theme-quartz-auto-dark .ag-filter-toolpanel-expand:hover,
.ag-theme-quartz-auto-dark .ag-panel-title-bar-button-icon:hover,
.ag-theme-quartz-auto-dark .ag-chart-menu-icon:hover {
  border-radius: 1px;
  background-color: var(--ag-quartz-icon-hover-color);
  box-shadow: 0 0 0 4px var(--ag-quartz-icon-hover-color);
}
.ag-theme-quartz .ag-filter-active,
.ag-theme-quartz-dark .ag-filter-active,
.ag-theme-quartz-auto-dark .ag-filter-active {
  --ag-quartz-icon-active-color: color-mix(in srgb, transparent, var(--ag-active-color) 14%);
  --ag-quartz-icon-hover-color: color-mix(in srgb, transparent, var(--ag-active-color) 28%);
  position: relative;
  border-radius: 1px;
  background-color: var(--ag-quartz-icon-active-color);
  box-shadow: 0 0 0 4px var(--ag-quartz-icon-active-color);
}
.ag-theme-quartz .ag-filter-active::after,
.ag-theme-quartz-dark .ag-filter-active::after,
.ag-theme-quartz-auto-dark .ag-filter-active::after {
  content: "";
  position: absolute;
  width: 6px;
  height: 6px;
  top: -1px;
  right: -1px;
  border-radius: 50%;
  background-color: var(--ag-active-color);
}
.ag-theme-quartz .ag-filter-active .ag-icon-filter,
.ag-theme-quartz-dark .ag-filter-active .ag-icon-filter,
.ag-theme-quartz-auto-dark .ag-filter-active .ag-icon-filter {
  clip-path: path("M8,0C8,4.415 11.585,8 16,8L16,16L0,16L0,0L8,0Z");
}
.ag-theme-quartz .ag-chart-menu,
.ag-theme-quartz-dark .ag-chart-menu,
.ag-theme-quartz-auto-dark .ag-chart-menu {
  --ag-icon-size: 20px;
  background-color: color-mix(in srgb, transparent, var(--ag-background-color) 30%);
  padding: 4px 2px;
}
.ag-theme-quartz .ag-chart-menu-icon,
.ag-theme-quartz-dark .ag-chart-menu-icon,
.ag-theme-quartz-auto-dark .ag-chart-menu-icon {
  opacity: 0.8;
}
.ag-theme-quartz .ag-drag-handle,
.ag-theme-quartz-dark .ag-drag-handle,
.ag-theme-quartz-auto-dark .ag-drag-handle {
  color: var(--ag-icon-font-color);
}
.ag-theme-quartz .ag-menu-option-icon,
.ag-theme-quartz .ag-compact-menu-option-icon,
.ag-theme-quartz-dark .ag-menu-option-icon,
.ag-theme-quartz-dark .ag-compact-menu-option-icon,
.ag-theme-quartz-auto-dark .ag-menu-option-icon,
.ag-theme-quartz-auto-dark .ag-compact-menu-option-icon {
  width: var(--ag-icon-size);
  cursor: pointer;
}
.ag-theme-quartz .ag-ltr .ag-menu-option-icon, .ag-theme-quartz .ag-ltr .ag-compact-menu-option-icon, .ag-theme-quartz-dark .ag-ltr .ag-menu-option-icon, .ag-theme-quartz-dark .ag-ltr .ag-compact-menu-option-icon, .ag-theme-quartz-auto-dark .ag-ltr .ag-menu-option-icon, .ag-theme-quartz-auto-dark .ag-ltr .ag-compact-menu-option-icon {
  padding-left: calc(var(--ag-grid-size) * 1.5);
}

.ag-theme-quartz .ag-rtl .ag-menu-option-icon, .ag-theme-quartz .ag-rtl .ag-compact-menu-option-icon, .ag-theme-quartz-dark .ag-rtl .ag-menu-option-icon, .ag-theme-quartz-dark .ag-rtl .ag-compact-menu-option-icon, .ag-theme-quartz-auto-dark .ag-rtl .ag-menu-option-icon, .ag-theme-quartz-auto-dark .ag-rtl .ag-compact-menu-option-icon {
  padding-right: calc(var(--ag-grid-size) * 1.5);
}

.ag-theme-quartz .ag-chart-settings-card-item.ag-not-selected:hover,
.ag-theme-quartz-dark .ag-chart-settings-card-item.ag-not-selected:hover,
.ag-theme-quartz-auto-dark .ag-chart-settings-card-item.ag-not-selected:hover {
  opacity: 0.35;
}
.ag-theme-quartz .ag-ltr .ag-panel-title-bar-button, .ag-theme-quartz-dark .ag-ltr .ag-panel-title-bar-button, .ag-theme-quartz-auto-dark .ag-ltr .ag-panel-title-bar-button {
  margin-left: calc(var(--ag-grid-size) * 2);
  margin-right: var(--ag-grid-size);
}

.ag-theme-quartz .ag-rtl .ag-panel-title-bar-button, .ag-theme-quartz-dark .ag-rtl .ag-panel-title-bar-button, .ag-theme-quartz-auto-dark .ag-rtl .ag-panel-title-bar-button {
  margin-right: calc(var(--ag-grid-size) * 2);
  margin-left: var(--ag-grid-size);
}

.ag-theme-quartz .ag-multi-filter-group-title-bar,
.ag-theme-quartz-dark .ag-multi-filter-group-title-bar,
.ag-theme-quartz-auto-dark .ag-multi-filter-group-title-bar {
  padding: calc(var(--ag-grid-size) * 1.5) var(--ag-grid-size);
}
.ag-theme-quartz .ag-ltr .ag-filter-toolpanel-instance-body, .ag-theme-quartz-dark .ag-ltr .ag-filter-toolpanel-instance-body, .ag-theme-quartz-auto-dark .ag-ltr .ag-filter-toolpanel-instance-body {
  padding-left: var(--ag-grid-size);
}

.ag-theme-quartz .ag-rtl .ag-filter-toolpanel-instance-body, .ag-theme-quartz-dark .ag-rtl .ag-filter-toolpanel-instance-body, .ag-theme-quartz-auto-dark .ag-rtl .ag-filter-toolpanel-instance-body {
  padding-right: var(--ag-grid-size);
}

.ag-theme-quartz .ag-filter-toolpanel-instance-filter,
.ag-theme-quartz-dark .ag-filter-toolpanel-instance-filter,
.ag-theme-quartz-auto-dark .ag-filter-toolpanel-instance-filter {
  border: none;
  background-color: var(--ag-control-panel-background-color);
}
.ag-theme-quartz .ag-ltr .ag-filter-toolpanel-instance-filter, .ag-theme-quartz-dark .ag-ltr .ag-filter-toolpanel-instance-filter, .ag-theme-quartz-auto-dark .ag-ltr .ag-filter-toolpanel-instance-filter {
  margin-left: calc(var(--ag-icon-size) * 0.5);
}

.ag-theme-quartz .ag-rtl .ag-filter-toolpanel-instance-filter, .ag-theme-quartz-dark .ag-rtl .ag-filter-toolpanel-instance-filter, .ag-theme-quartz-auto-dark .ag-rtl .ag-filter-toolpanel-instance-filter {
  margin-right: calc(var(--ag-icon-size) * 0.5);
}

.ag-theme-quartz .ag-filter-toolpanel-group-level-0,
.ag-theme-quartz-dark .ag-filter-toolpanel-group-level-0,
.ag-theme-quartz-auto-dark .ag-filter-toolpanel-group-level-0 {
  border-top: none;
}
.ag-theme-quartz .ag-filter-toolpanel-header,
.ag-theme-quartz-dark .ag-filter-toolpanel-header,
.ag-theme-quartz-auto-dark .ag-filter-toolpanel-header {
  height: initial;
  padding-top: var(--ag-grid-size);
  padding-bottom: var(--ag-grid-size);
}
.ag-theme-quartz .ag-filter-toolpanel-group-item,
.ag-theme-quartz-dark .ag-filter-toolpanel-group-item,
.ag-theme-quartz-auto-dark .ag-filter-toolpanel-group-item {
  margin: 0;
}
.ag-theme-quartz .ag-layout-auto-height .ag-center-cols-viewport,
.ag-theme-quartz .ag-layout-auto-height .ag-center-cols-container,
.ag-theme-quartz .ag-layout-print .ag-center-cols-viewport,
.ag-theme-quartz .ag-layout-print .ag-center-cols-container,
.ag-theme-quartz-dark .ag-layout-auto-height .ag-center-cols-viewport,
.ag-theme-quartz-dark .ag-layout-auto-height .ag-center-cols-container,
.ag-theme-quartz-dark .ag-layout-print .ag-center-cols-viewport,
.ag-theme-quartz-dark .ag-layout-print .ag-center-cols-container,
.ag-theme-quartz-auto-dark .ag-layout-auto-height .ag-center-cols-viewport,
.ag-theme-quartz-auto-dark .ag-layout-auto-height .ag-center-cols-container,
.ag-theme-quartz-auto-dark .ag-layout-print .ag-center-cols-viewport,
.ag-theme-quartz-auto-dark .ag-layout-print .ag-center-cols-container {
  min-height: 150px;
}
.ag-theme-quartz .ag-date-time-list-page-entry-is-current,
.ag-theme-quartz-dark .ag-date-time-list-page-entry-is-current,
.ag-theme-quartz-auto-dark .ag-date-time-list-page-entry-is-current {
  background-color: var(--ag-active-color);
}
.ag-theme-quartz .ag-advanced-filter-builder-button,
.ag-theme-quartz-dark .ag-advanced-filter-builder-button,
.ag-theme-quartz-auto-dark .ag-advanced-filter-builder-button {
  padding: var(--ag-grid-size);
  font-weight: 600;
}
.ag-theme-quartz .ag-advanced-filter-builder-item-button-disabled .ag-icon,
.ag-theme-quartz .ag-disabled .ag-icon,
.ag-theme-quartz .ag-column-select-column-group-readonly .ag-icon,
.ag-theme-quartz [disabled] .ag-icon,
.ag-theme-quartz-dark .ag-advanced-filter-builder-item-button-disabled .ag-icon,
.ag-theme-quartz-dark .ag-disabled .ag-icon,
.ag-theme-quartz-dark .ag-column-select-column-group-readonly .ag-icon,
.ag-theme-quartz-dark [disabled] .ag-icon,
.ag-theme-quartz-auto-dark .ag-advanced-filter-builder-item-button-disabled .ag-icon,
.ag-theme-quartz-auto-dark .ag-disabled .ag-icon,
.ag-theme-quartz-auto-dark .ag-column-select-column-group-readonly .ag-icon,
.ag-theme-quartz-auto-dark [disabled] .ag-icon {
  opacity: 0.6;
}
.ag-theme-quartz .ag-icon-grip,
.ag-theme-quartz-dark .ag-icon-grip,
.ag-theme-quartz-auto-dark .ag-icon-grip {
  opacity: 0.7;
}
.ag-theme-quartz .ag-column-select-column-readonly.ag-icon-grip,
.ag-theme-quartz .ag-column-select-column-readonly .ag-icon-grip,
.ag-theme-quartz-dark .ag-column-select-column-readonly.ag-icon-grip,
.ag-theme-quartz-dark .ag-column-select-column-readonly .ag-icon-grip,
.ag-theme-quartz-auto-dark .ag-column-select-column-readonly.ag-icon-grip,
.ag-theme-quartz-auto-dark .ag-column-select-column-readonly .ag-icon-grip {
  opacity: 0.35;
}
.ag-theme-quartz .ag-column-select-header-filter-wrapper .ag-input-wrapper::before,
.ag-theme-quartz .ag-filter-toolpanel-search .ag-input-wrapper::before,
.ag-theme-quartz .ag-mini-filter .ag-input-wrapper::before,
.ag-theme-quartz .ag-filter-filter .ag-input-wrapper::before,
.ag-theme-quartz-dark .ag-column-select-header-filter-wrapper .ag-input-wrapper::before,
.ag-theme-quartz-dark .ag-filter-toolpanel-search .ag-input-wrapper::before,
.ag-theme-quartz-dark .ag-mini-filter .ag-input-wrapper::before,
.ag-theme-quartz-dark .ag-filter-filter .ag-input-wrapper::before,
.ag-theme-quartz-auto-dark .ag-column-select-header-filter-wrapper .ag-input-wrapper::before,
.ag-theme-quartz-auto-dark .ag-filter-toolpanel-search .ag-input-wrapper::before,
.ag-theme-quartz-auto-dark .ag-mini-filter .ag-input-wrapper::before,
.ag-theme-quartz-auto-dark .ag-filter-filter .ag-input-wrapper::before {
  position: absolute;
  display: block;
  width: 12px;
  height: 12px;
  background-image: url(`+d+`);
  background-position: 50% 50%;
  background-size: contain;
  opacity: 40%;
  content: "";
  filter: var(--ag-icon-filter);
}
.ag-theme-quartz .ag-ltr .ag-column-select-header-filter-wrapper .ag-input-wrapper::before, .ag-theme-quartz .ag-ltr .ag-filter-toolpanel-search .ag-input-wrapper::before, .ag-theme-quartz .ag-ltr .ag-mini-filter .ag-input-wrapper::before, .ag-theme-quartz .ag-ltr .ag-filter-filter .ag-input-wrapper::before, .ag-theme-quartz-dark .ag-ltr .ag-column-select-header-filter-wrapper .ag-input-wrapper::before, .ag-theme-quartz-dark .ag-ltr .ag-filter-toolpanel-search .ag-input-wrapper::before, .ag-theme-quartz-dark .ag-ltr .ag-mini-filter .ag-input-wrapper::before, .ag-theme-quartz-dark .ag-ltr .ag-filter-filter .ag-input-wrapper::before, .ag-theme-quartz-auto-dark .ag-ltr .ag-column-select-header-filter-wrapper .ag-input-wrapper::before, .ag-theme-quartz-auto-dark .ag-ltr .ag-filter-toolpanel-search .ag-input-wrapper::before, .ag-theme-quartz-auto-dark .ag-ltr .ag-mini-filter .ag-input-wrapper::before, .ag-theme-quartz-auto-dark .ag-ltr .ag-filter-filter .ag-input-wrapper::before {
  margin-left: var(--ag-grid-size);
}

.ag-theme-quartz .ag-rtl .ag-column-select-header-filter-wrapper .ag-input-wrapper::before, .ag-theme-quartz .ag-rtl .ag-filter-toolpanel-search .ag-input-wrapper::before, .ag-theme-quartz .ag-rtl .ag-mini-filter .ag-input-wrapper::before, .ag-theme-quartz .ag-rtl .ag-filter-filter .ag-input-wrapper::before, .ag-theme-quartz-dark .ag-rtl .ag-column-select-header-filter-wrapper .ag-input-wrapper::before, .ag-theme-quartz-dark .ag-rtl .ag-filter-toolpanel-search .ag-input-wrapper::before, .ag-theme-quartz-dark .ag-rtl .ag-mini-filter .ag-input-wrapper::before, .ag-theme-quartz-dark .ag-rtl .ag-filter-filter .ag-input-wrapper::before, .ag-theme-quartz-auto-dark .ag-rtl .ag-column-select-header-filter-wrapper .ag-input-wrapper::before, .ag-theme-quartz-auto-dark .ag-rtl .ag-filter-toolpanel-search .ag-input-wrapper::before, .ag-theme-quartz-auto-dark .ag-rtl .ag-mini-filter .ag-input-wrapper::before, .ag-theme-quartz-auto-dark .ag-rtl .ag-filter-filter .ag-input-wrapper::before {
  margin-right: var(--ag-grid-size);
}

.ag-theme-quartz .ag-ltr .ag-column-select-header-filter-wrapper input.ag-text-field-input, .ag-theme-quartz .ag-ltr .ag-column-select-header-filter-wrapper input.ag-number-field-input, .ag-theme-quartz .ag-ltr .ag-filter-toolpanel-search input.ag-text-field-input, .ag-theme-quartz .ag-ltr .ag-filter-toolpanel-search input.ag-number-field-input, .ag-theme-quartz .ag-ltr .ag-mini-filter input.ag-text-field-input, .ag-theme-quartz .ag-ltr .ag-mini-filter input.ag-number-field-input, .ag-theme-quartz .ag-ltr .ag-filter-filter input.ag-text-field-input, .ag-theme-quartz .ag-ltr .ag-filter-filter input.ag-number-field-input, .ag-theme-quartz-dark .ag-ltr .ag-column-select-header-filter-wrapper input.ag-text-field-input, .ag-theme-quartz-dark .ag-ltr .ag-column-select-header-filter-wrapper input.ag-number-field-input, .ag-theme-quartz-dark .ag-ltr .ag-filter-toolpanel-search input.ag-text-field-input, .ag-theme-quartz-dark .ag-ltr .ag-filter-toolpanel-search input.ag-number-field-input, .ag-theme-quartz-dark .ag-ltr .ag-mini-filter input.ag-text-field-input, .ag-theme-quartz-dark .ag-ltr .ag-mini-filter input.ag-number-field-input, .ag-theme-quartz-dark .ag-ltr .ag-filter-filter input.ag-text-field-input, .ag-theme-quartz-dark .ag-ltr .ag-filter-filter input.ag-number-field-input, .ag-theme-quartz-auto-dark .ag-ltr .ag-column-select-header-filter-wrapper input.ag-text-field-input, .ag-theme-quartz-auto-dark .ag-ltr .ag-column-select-header-filter-wrapper input.ag-number-field-input, .ag-theme-quartz-auto-dark .ag-ltr .ag-filter-toolpanel-search input.ag-text-field-input, .ag-theme-quartz-auto-dark .ag-ltr .ag-filter-toolpanel-search input.ag-number-field-input, .ag-theme-quartz-auto-dark .ag-ltr .ag-mini-filter input.ag-text-field-input, .ag-theme-quartz-auto-dark .ag-ltr .ag-mini-filter input.ag-number-field-input, .ag-theme-quartz-auto-dark .ag-ltr .ag-filter-filter input.ag-text-field-input, .ag-theme-quartz-auto-dark .ag-ltr .ag-filter-filter input.ag-number-field-input {
  padding-left: 26px;
}

.ag-theme-quartz .ag-rtl .ag-column-select-header-filter-wrapper input.ag-text-field-input, .ag-theme-quartz .ag-rtl .ag-column-select-header-filter-wrapper input.ag-number-field-input, .ag-theme-quartz .ag-rtl .ag-filter-toolpanel-search input.ag-text-field-input, .ag-theme-quartz .ag-rtl .ag-filter-toolpanel-search input.ag-number-field-input, .ag-theme-quartz .ag-rtl .ag-mini-filter input.ag-text-field-input, .ag-theme-quartz .ag-rtl .ag-mini-filter input.ag-number-field-input, .ag-theme-quartz .ag-rtl .ag-filter-filter input.ag-text-field-input, .ag-theme-quartz .ag-rtl .ag-filter-filter input.ag-number-field-input, .ag-theme-quartz-dark .ag-rtl .ag-column-select-header-filter-wrapper input.ag-text-field-input, .ag-theme-quartz-dark .ag-rtl .ag-column-select-header-filter-wrapper input.ag-number-field-input, .ag-theme-quartz-dark .ag-rtl .ag-filter-toolpanel-search input.ag-text-field-input, .ag-theme-quartz-dark .ag-rtl .ag-filter-toolpanel-search input.ag-number-field-input, .ag-theme-quartz-dark .ag-rtl .ag-mini-filter input.ag-text-field-input, .ag-theme-quartz-dark .ag-rtl .ag-mini-filter input.ag-number-field-input, .ag-theme-quartz-dark .ag-rtl .ag-filter-filter input.ag-text-field-input, .ag-theme-quartz-dark .ag-rtl .ag-filter-filter input.ag-number-field-input, .ag-theme-quartz-auto-dark .ag-rtl .ag-column-select-header-filter-wrapper input.ag-text-field-input, .ag-theme-quartz-auto-dark .ag-rtl .ag-column-select-header-filter-wrapper input.ag-number-field-input, .ag-theme-quartz-auto-dark .ag-rtl .ag-filter-toolpanel-search input.ag-text-field-input, .ag-theme-quartz-auto-dark .ag-rtl .ag-filter-toolpanel-search input.ag-number-field-input, .ag-theme-quartz-auto-dark .ag-rtl .ag-mini-filter input.ag-text-field-input, .ag-theme-quartz-auto-dark .ag-rtl .ag-mini-filter input.ag-number-field-input, .ag-theme-quartz-auto-dark .ag-rtl .ag-filter-filter input.ag-text-field-input, .ag-theme-quartz-auto-dark .ag-rtl .ag-filter-filter input.ag-number-field-input {
  padding-right: 26px;
}

.ag-theme-quartz .ag-ltr .ag-column-select-add-group-indent, .ag-theme-quartz-dark .ag-ltr .ag-column-select-add-group-indent, .ag-theme-quartz-auto-dark .ag-ltr .ag-column-select-add-group-indent {
  margin-left: calc(var(--ag-icon-size) + var(--ag-grid-size) * 1.5);
}

.ag-theme-quartz .ag-rtl .ag-column-select-add-group-indent, .ag-theme-quartz-dark .ag-rtl .ag-column-select-add-group-indent, .ag-theme-quartz-auto-dark .ag-rtl .ag-column-select-add-group-indent {
  margin-right: calc(var(--ag-icon-size) + var(--ag-grid-size) * 1.5);
}

.ag-theme-quartz .ag-text-field-input[disabled],
.ag-theme-quartz .ag-menu-option-disabled,
.ag-theme-quartz-dark .ag-text-field-input[disabled],
.ag-theme-quartz-dark .ag-menu-option-disabled,
.ag-theme-quartz-auto-dark .ag-text-field-input[disabled],
.ag-theme-quartz-auto-dark .ag-menu-option-disabled {
  cursor: not-allowed;
}
.ag-theme-quartz .ag-checkbox-input-wrapper.ag-checked.ag-disabled,
.ag-theme-quartz-dark .ag-checkbox-input-wrapper.ag-checked.ag-disabled,
.ag-theme-quartz-auto-dark .ag-checkbox-input-wrapper.ag-checked.ag-disabled {
  --ag-checkbox-checked-color: var(--ag-checkbox-unchecked-color);
}
.ag-theme-quartz .ag-checkbox-input,
.ag-theme-quartz .ag-toggle-button-input,
.ag-theme-quartz .ag-radio-button-input,
.ag-theme-quartz input[class^=ag-][type=range],
.ag-theme-quartz-dark .ag-checkbox-input,
.ag-theme-quartz-dark .ag-toggle-button-input,
.ag-theme-quartz-dark .ag-radio-button-input,
.ag-theme-quartz-dark input[class^=ag-][type=range],
.ag-theme-quartz-auto-dark .ag-checkbox-input,
.ag-theme-quartz-auto-dark .ag-toggle-button-input,
.ag-theme-quartz-auto-dark .ag-radio-button-input,
.ag-theme-quartz-auto-dark input[class^=ag-][type=range] {
  cursor: pointer;
}
.ag-theme-quartz .ag-details-row,
.ag-theme-quartz-dark .ag-details-row,
.ag-theme-quartz-auto-dark .ag-details-row {
  padding: calc(var(--ag-grid-size) * 3.75);
}
.ag-theme-quartz .ag-list-item-hovered::after,
.ag-theme-quartz-dark .ag-list-item-hovered::after,
.ag-theme-quartz-auto-dark .ag-list-item-hovered::after {
  background-color: var(--ag-active-color);
}
.ag-theme-quartz .ag-pill .ag-pill-button:hover,
.ag-theme-quartz-dark .ag-pill .ag-pill-button:hover,
.ag-theme-quartz-auto-dark .ag-pill .ag-pill-button:hover {
  color: var(--ag-active-color);
}
.ag-theme-quartz .ag-header-highlight-before::after,
.ag-theme-quartz .ag-header-highlight-after::after,
.ag-theme-quartz-dark .ag-header-highlight-before::after,
.ag-theme-quartz-dark .ag-header-highlight-after::after,
.ag-theme-quartz-auto-dark .ag-header-highlight-before::after,
.ag-theme-quartz-auto-dark .ag-header-highlight-after::after {
  background-color: var(--ag-active-color);
}

.ag-theme-quartz-dark .ag-column-select-header-filter-wrapper .ag-input-wrapper::before,
.ag-theme-quartz-dark .ag-filter-toolpanel-search .ag-input-wrapper::before,
.ag-theme-quartz-dark .ag-mini-filter .ag-input-wrapper::before,
.ag-theme-quartz-dark .ag-filter-filter .ag-input-wrapper::before {
  opacity: 66%;
  filter: invert(100%);
}
.ag-theme-quartz-dark .ag-chart-menu {
  background-color: color-mix(in srgb, rgba(24, 39, 50, 0.3), var(--ag-background-color) 30%);
}
.ag-theme-quartz-dark .ag-text-field-input::placeholder {
  color: var(--ag-data-color);
  opacity: 0.8;
}
`,""]),p.A=r},1123:function(x,p,M){"use strict";var A=M(6758),F=M.n(A),D=M(935),f=M.n(D),v=M(62),u=M.n(v),s=new URL(M(2006),M.b),r=new URL(M(7249),M.b),d=f()(F()),g=u()(s),m=u()(r);d.push([x.id,`@font-face {
  font-family: "agGridQuartz";
  src: url(`+g+`);
  font-weight: normal;
  font-style: normal;
}
.ag-theme-quartz,
.ag-theme-quartz-dark,
.ag-theme-quartz-auto-dark {
  --ag-active-color: #2196f3;
  --ag-background-color: #fff;
  --ag-foreground-color: #181d1f;
  --ag-border-color: color-mix(in srgb, transparent, var(--ag-foreground-color) 15%);
  --ag-secondary-border-color: var(--ag-border-color);
  --ag-header-background-color: color-mix(in srgb, var(--ag-background-color), var(--ag-foreground-color) 2%);
  --ag-tooltip-background-color: var(--ag-header-background-color);
  --ag-control-panel-background-color: var(--ag-header-background-color);
  --ag-subheader-background-color: transparent;
  --ag-invalid-color: #e02525;
  --ag-checkbox-unchecked-color: color-mix(in srgb, var(--ag-background-color), var(--ag-foreground-color) 30%);
  --ag-advanced-filter-join-pill-color: #f08e8d;
  --ag-advanced-filter-column-pill-color: #a6e194;
  --ag-advanced-filter-option-pill-color: #f3c08b;
  --ag-advanced-filter-value-pill-color: #85c0e4;
  --ag-header-column-resize-handle-color: var(--ag-secondary-border-color);
  --ag-icon-font-color: color-mix(in srgb, transparent, var(--ag-foreground-color) 90%);
  --ag-panel-background-color: color-mix(in srgb, var(--ag-background-color), var(--ag-foreground-color) 3%);
  --ag-panel-border-color: color-mix(in srgb, transparent, var(--ag-foreground-color) 20%);
  --ag-menu-background-color: color-mix(in srgb, var(--ag-background-color), var(--ag-foreground-color) 3%);
  --ag-menu-border-color: color-mix(in srgb, transparent, var(--ag-foreground-color) 20%);
  --ag-selected-row-background-color: color-mix(in srgb, transparent, var(--ag-active-color) 8%);
  --ag-row-hover-color: color-mix(in srgb, transparent, var(--ag-active-color) 12%);
  --ag-column-hover-color: color-mix(in srgb, transparent, var(--ag-foreground-color) 5%);
  --ag-input-focus-border-color: var(--ag-active-color);
  --ag-input-focus-box-shadow: 0 0 0 3px color-mix(in srgb, transparent, var(--ag-input-focus-border-color) 47%);
  --ag-range-selection-background-color: color-mix(in srgb, transparent, var(--ag-active-color) 20%);
  --ag-range-selection-background-color-2: color-mix(in srgb, transparent, var(--ag-active-color) 36%);
  --ag-range-selection-background-color-3: color-mix(in srgb, transparent, var(--ag-active-color) 49%);
  --ag-range-selection-background-color-4: color-mix(in srgb, transparent, var(--ag-active-color) 59%);
  --ag-checkbox-background-color: var(--ag-background-color);
  --ag-checkbox-checked-color: var(--ag-active-color);
  --ag-range-selection-border-color: var(--ag-active-color);
  --ag-secondary-foreground-color: var(--ag-foreground-color);
  --ag-input-border-color: var(--ag-border-color);
  --ag-input-border-color-invalid: var(--ag-invalid-color);
  --ag-disabled-foreground-color: color-mix(in srgb, transparent, var(--ag-foreground-color) 50%);
  --ag-chip-background-color: color-mix(in srgb, transparent, var(--ag-foreground-color) 7%);
  --ag-chip-border-color: color-mix(in srgb, var(--ag-header-background-color), var(--ag-foreground-color) 13%);
  --ag-input-disabled-border-color: var(--ag-border-color);
  --ag-input-disabled-background-color: color-mix(in srgb, var(--ag-background-color), var(--ag-foreground-color) 6%);
  --ag-modal-overlay-background-color: color-mix(in srgb, transparent, var(--ag-background-color) 66%);
  --ag-chart-menu-label-color: color-mix(in srgb, transparent, var(--ag-foreground-color) 80%);
  --ag-chart-menu-pill-select-button-color: color-mix(in srgb, transparent, var(--ag-foreground-color) 70%);
  --ag-borders: solid 1px;
  --ag-border-radius: 4px;
  --ag-wrapper-border-radius: 8px;
  --ag-borders-side-button: none;
  --ag-side-button-selected-background-color: transparent;
  --ag-header-column-resize-handle-display: block;
  --ag-header-column-resize-handle-width: 2px;
  --ag-header-column-resize-handle-height: 30%;
  --ag-grid-size: 8px;
  --ag-icon-size: 16px;
  --ag-header-height: calc(var(--ag-font-size) + var(--ag-grid-size) * 4.25);
  --ag-row-height: calc(var(--ag-font-size) + var(--ag-grid-size) * 3.5);
  --ag-list-item-height: calc(
      var(--ag-icon-size) + var(--ag-widget-vertical-spacing)
  );
  --ag-column-select-indent-size: var(--ag-icon-size);
  --ag-set-filter-indent-size: var(--ag-icon-size);
  --ag-filter-tool-panel-group-indent: var(--ag-grid-size);
  --ag-advanced-filter-builder-indent-size: calc(var(--ag-icon-size) + var(--ag-grid-size) * 2);
  --ag-cell-horizontal-padding: calc(var(--ag-grid-size) * 2);
  --ag-cell-widget-spacing: calc(var(--ag-grid-size) * 1.5);
  --ag-widget-container-vertical-padding: calc(var(--ag-grid-size) * 1.5);
  --ag-widget-container-horizontal-padding: calc(var(--ag-grid-size) * 1.5);
  --ag-widget-horizontal-spacing: calc(var(--ag-grid-size) * 1.5);
  --ag-widget-vertical-spacing: calc(var(--ag-grid-size) * 1);
  --ag-toggle-button-height: 18px;
  --ag-toggle-button-width: 28px;
  --ag-toggle-button-border-width: 2px;
  --ag-font-family: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu,
      Cantarell, "Helvetica Neue", sans-serif;
  --ag-font-size: 14px;
  --ag-icon-font-family: agGridQuartz;
  --ag-tab-min-width: 290px;
  --ag-chart-menu-panel-width: 260px;
  --ag-card-shadow: 0 1px 4px 1px rgba(186, 191, 199, 0.4);
  --ag-popup-shadow: 0 0 16px 0 rgba(0, 0, 0, 0.15);
  --ag-side-bar-panel-width: 250px;
}

.ag-theme-quartz-dark {
  --ag-background-color: color-mix(in srgb, #fff, #182230 97%);
  --ag-foreground-color: #fff;
  --ag-border-color: rgba(255, 255, 255, 0.16);
  --ag-secondary-border-color: color-mix(in srgb, transparent, var(--ag-foreground-color) 10%);
  --ag-header-background-color: color-mix(in srgb, #fff, #182230 93%);
  --ag-tooltip-background-color: color-mix(in srgb, #fff, #182230 96%);
  --ag-control-panel-background-color: color-mix(in srgb, #fff, #182230 93%);
  --ag-input-disabled-background-color: #68686e12;
  --ag-card-shadow: 0 1px 20px 1px black;
  --ag-input-border-color: var(--ag-border-color);
  --ag-input-disabled-border-color: rgba(255, 255, 255, 0.07);
  --ag-checkbox-unchecked-color: color-mix(in srgb, var(--ag-background-color), var(--ag-foreground-color) 40%);
  --ag-row-hover-color: color-mix(in srgb, transparent, var(--ag-active-color) 20%);
  --ag-selected-row-background-color: var(--ag-row-hover-color);
  --ag-panel-background-color: color-mix(in srgb, var(--ag-background-color), var(--ag-foreground-color) 10%);
  --ag-panel-border-color: color-mix(in srgb, transparent, var(--ag-foreground-color) 10%);
  --ag-menu-background-color: color-mix(in srgb, var(--ag-background-color), var(--ag-foreground-color) 10%);
  --ag-menu-border-color: color-mix(in srgb, transparent, var(--ag-foreground-color) 10%);
  --ag-advanced-filter-join-pill-color: #7a3a37;
  --ag-advanced-filter-column-pill-color: #355f2d;
  --ag-advanced-filter-option-pill-color: #5a3168;
  --ag-advanced-filter-value-pill-color: #374c86;
  --ag-popup-shadow: 0 0px 20px rgba(0, 0, 0, 0.3);
  --ag-row-loading-skeleton-effect-color: rgba(202, 203, 204, 0.4);
  color-scheme: dark;
}

@media (prefers-color-scheme: dark) {
  .ag-theme-quartz-auto-dark {
    --ag-background-color: color-mix(in srgb, #fff, #182230 97%);
    --ag-foreground-color: #fff;
    --ag-border-color: rgba(255, 255, 255, 0.16);
    --ag-secondary-border-color: color-mix(in srgb, transparent, var(--ag-foreground-color) 10%);
    --ag-header-background-color: color-mix(in srgb, #fff, #182230 93%);
    --ag-tooltip-background-color: color-mix(in srgb, #fff, #182230 96%);
    --ag-control-panel-background-color: color-mix(in srgb, #fff, #182230 93%);
    --ag-input-disabled-background-color: #68686e12;
    --ag-card-shadow: 0 1px 20px 1px black;
    --ag-input-border-color: var(--ag-border-color);
    --ag-input-disabled-border-color: rgba(255, 255, 255, 0.07);
    --ag-checkbox-unchecked-color: color-mix(in srgb, var(--ag-background-color), var(--ag-foreground-color) 40%);
    --ag-row-hover-color: color-mix(in srgb, transparent, var(--ag-active-color) 20%);
    --ag-selected-row-background-color: var(--ag-row-hover-color);
    --ag-panel-background-color: color-mix(in srgb, var(--ag-background-color), var(--ag-foreground-color) 10%);
    --ag-panel-border-color: color-mix(in srgb, transparent, var(--ag-foreground-color) 10%);
    --ag-menu-background-color: color-mix(in srgb, var(--ag-background-color), var(--ag-foreground-color) 10%);
    --ag-menu-border-color: color-mix(in srgb, transparent, var(--ag-foreground-color) 10%);
    --ag-advanced-filter-join-pill-color: #7a3a37;
    --ag-advanced-filter-column-pill-color: #355f2d;
    --ag-advanced-filter-option-pill-color: #5a3168;
    --ag-advanced-filter-value-pill-color: #374c86;
    --ag-popup-shadow: 0 0px 20px rgba(0, 0, 0, 0.3);
    --ag-row-loading-skeleton-effect-color: rgba(202, 203, 204, 0.4);
    color-scheme: dark;
  }
}
.ag-theme-quartz .ag-filter-toolpanel-header,
.ag-theme-quartz .ag-filter-toolpanel-search,
.ag-theme-quartz .ag-status-bar,
.ag-theme-quartz .ag-header-row,
.ag-theme-quartz .ag-panel-title-bar-title,
.ag-theme-quartz .ag-multi-filter-group-title-bar,
.ag-theme-quartz-dark .ag-filter-toolpanel-header,
.ag-theme-quartz-dark .ag-filter-toolpanel-search,
.ag-theme-quartz-dark .ag-status-bar,
.ag-theme-quartz-dark .ag-header-row,
.ag-theme-quartz-dark .ag-panel-title-bar-title,
.ag-theme-quartz-dark .ag-multi-filter-group-title-bar,
.ag-theme-quartz-auto-dark .ag-filter-toolpanel-header,
.ag-theme-quartz-auto-dark .ag-filter-toolpanel-search,
.ag-theme-quartz-auto-dark .ag-status-bar,
.ag-theme-quartz-auto-dark .ag-header-row,
.ag-theme-quartz-auto-dark .ag-panel-title-bar-title,
.ag-theme-quartz-auto-dark .ag-multi-filter-group-title-bar {
  font-weight: 500;
  color: var(--ag-header-foreground-color);
}
.ag-theme-quartz input[class^=ag-]:not([type]),
.ag-theme-quartz input[class^=ag-][type=text],
.ag-theme-quartz input[class^=ag-][type=number],
.ag-theme-quartz input[class^=ag-][type=tel],
.ag-theme-quartz input[class^=ag-][type=date],
.ag-theme-quartz input[class^=ag-][type=datetime-local],
.ag-theme-quartz textarea[class^=ag-],
.ag-theme-quartz-dark input[class^=ag-]:not([type]),
.ag-theme-quartz-dark input[class^=ag-][type=text],
.ag-theme-quartz-dark input[class^=ag-][type=number],
.ag-theme-quartz-dark input[class^=ag-][type=tel],
.ag-theme-quartz-dark input[class^=ag-][type=date],
.ag-theme-quartz-dark input[class^=ag-][type=datetime-local],
.ag-theme-quartz-dark textarea[class^=ag-],
.ag-theme-quartz-auto-dark input[class^=ag-]:not([type]),
.ag-theme-quartz-auto-dark input[class^=ag-][type=text],
.ag-theme-quartz-auto-dark input[class^=ag-][type=number],
.ag-theme-quartz-auto-dark input[class^=ag-][type=tel],
.ag-theme-quartz-auto-dark input[class^=ag-][type=date],
.ag-theme-quartz-auto-dark input[class^=ag-][type=datetime-local],
.ag-theme-quartz-auto-dark textarea[class^=ag-] {
  min-height: calc(var(--ag-grid-size) * 4);
  border-radius: var(--ag-border-radius);
}
.ag-theme-quartz .ag-ltr input[class^=ag-]:not([type]), .ag-theme-quartz .ag-ltr input[class^=ag-][type=text], .ag-theme-quartz .ag-ltr input[class^=ag-][type=number], .ag-theme-quartz .ag-ltr input[class^=ag-][type=tel], .ag-theme-quartz .ag-ltr input[class^=ag-][type=date], .ag-theme-quartz .ag-ltr input[class^=ag-][type=datetime-local], .ag-theme-quartz .ag-ltr textarea[class^=ag-], .ag-theme-quartz-dark .ag-ltr input[class^=ag-]:not([type]), .ag-theme-quartz-dark .ag-ltr input[class^=ag-][type=text], .ag-theme-quartz-dark .ag-ltr input[class^=ag-][type=number], .ag-theme-quartz-dark .ag-ltr input[class^=ag-][type=tel], .ag-theme-quartz-dark .ag-ltr input[class^=ag-][type=date], .ag-theme-quartz-dark .ag-ltr input[class^=ag-][type=datetime-local], .ag-theme-quartz-dark .ag-ltr textarea[class^=ag-], .ag-theme-quartz-auto-dark .ag-ltr input[class^=ag-]:not([type]), .ag-theme-quartz-auto-dark .ag-ltr input[class^=ag-][type=text], .ag-theme-quartz-auto-dark .ag-ltr input[class^=ag-][type=number], .ag-theme-quartz-auto-dark .ag-ltr input[class^=ag-][type=tel], .ag-theme-quartz-auto-dark .ag-ltr input[class^=ag-][type=date], .ag-theme-quartz-auto-dark .ag-ltr input[class^=ag-][type=datetime-local], .ag-theme-quartz-auto-dark .ag-ltr textarea[class^=ag-] {
  padding-left: var(--ag-grid-size);
}

.ag-theme-quartz .ag-rtl input[class^=ag-]:not([type]), .ag-theme-quartz .ag-rtl input[class^=ag-][type=text], .ag-theme-quartz .ag-rtl input[class^=ag-][type=number], .ag-theme-quartz .ag-rtl input[class^=ag-][type=tel], .ag-theme-quartz .ag-rtl input[class^=ag-][type=date], .ag-theme-quartz .ag-rtl input[class^=ag-][type=datetime-local], .ag-theme-quartz .ag-rtl textarea[class^=ag-], .ag-theme-quartz-dark .ag-rtl input[class^=ag-]:not([type]), .ag-theme-quartz-dark .ag-rtl input[class^=ag-][type=text], .ag-theme-quartz-dark .ag-rtl input[class^=ag-][type=number], .ag-theme-quartz-dark .ag-rtl input[class^=ag-][type=tel], .ag-theme-quartz-dark .ag-rtl input[class^=ag-][type=date], .ag-theme-quartz-dark .ag-rtl input[class^=ag-][type=datetime-local], .ag-theme-quartz-dark .ag-rtl textarea[class^=ag-], .ag-theme-quartz-auto-dark .ag-rtl input[class^=ag-]:not([type]), .ag-theme-quartz-auto-dark .ag-rtl input[class^=ag-][type=text], .ag-theme-quartz-auto-dark .ag-rtl input[class^=ag-][type=number], .ag-theme-quartz-auto-dark .ag-rtl input[class^=ag-][type=tel], .ag-theme-quartz-auto-dark .ag-rtl input[class^=ag-][type=date], .ag-theme-quartz-auto-dark .ag-rtl input[class^=ag-][type=datetime-local], .ag-theme-quartz-auto-dark .ag-rtl textarea[class^=ag-] {
  padding-right: var(--ag-grid-size);
}

.ag-theme-quartz .ag-picker-field-wrapper,
.ag-theme-quartz-dark .ag-picker-field-wrapper,
.ag-theme-quartz-auto-dark .ag-picker-field-wrapper {
  min-height: calc(var(--ag-grid-size) * 4);
}
.ag-theme-quartz .ag-tab,
.ag-theme-quartz-dark .ag-tab,
.ag-theme-quartz-auto-dark .ag-tab {
  padding: var(--ag-grid-size);
  border-left: var(--ag-borders) transparent;
  border-right: var(--ag-borders) transparent;
  flex: 1 1 auto;
}
.ag-theme-quartz .ag-tab-selected,
.ag-theme-quartz-dark .ag-tab-selected,
.ag-theme-quartz-auto-dark .ag-tab-selected {
  background-color: var(--ag-background-color);
}
.ag-theme-quartz .ag-ltr .ag-tab-selected:not(:first-of-type), .ag-theme-quartz-dark .ag-ltr .ag-tab-selected:not(:first-of-type), .ag-theme-quartz-auto-dark .ag-ltr .ag-tab-selected:not(:first-of-type) {
  border-left-color: var(--ag-border-color);
}

.ag-theme-quartz .ag-rtl .ag-tab-selected:not(:first-of-type), .ag-theme-quartz-dark .ag-rtl .ag-tab-selected:not(:first-of-type), .ag-theme-quartz-auto-dark .ag-rtl .ag-tab-selected:not(:first-of-type) {
  border-right-color: var(--ag-border-color);
}

.ag-theme-quartz .ag-ltr .ag-tab-selected:not(:last-of-type), .ag-theme-quartz-dark .ag-ltr .ag-tab-selected:not(:last-of-type), .ag-theme-quartz-auto-dark .ag-ltr .ag-tab-selected:not(:last-of-type) {
  border-right-color: var(--ag-border-color);
}

.ag-theme-quartz .ag-rtl .ag-tab-selected:not(:last-of-type), .ag-theme-quartz-dark .ag-rtl .ag-tab-selected:not(:last-of-type), .ag-theme-quartz-auto-dark .ag-rtl .ag-tab-selected:not(:last-of-type) {
  border-left-color: var(--ag-border-color);
}

.ag-theme-quartz .ag-tab:not(.ag-tab-selected),
.ag-theme-quartz-dark .ag-tab:not(.ag-tab-selected),
.ag-theme-quartz-auto-dark .ag-tab:not(.ag-tab-selected) {
  opacity: 0.7;
}
.ag-theme-quartz .ag-tab:not(.ag-tab-selected):hover,
.ag-theme-quartz-dark .ag-tab:not(.ag-tab-selected):hover,
.ag-theme-quartz-auto-dark .ag-tab:not(.ag-tab-selected):hover {
  opacity: 1;
}
.ag-theme-quartz .ag-menu,
.ag-theme-quartz-dark .ag-menu,
.ag-theme-quartz-auto-dark .ag-menu {
  color: color-mix(in srgb, transparent, var(--ag-foreground-color) 95%);
}
.ag-theme-quartz .ag-panel-content-wrapper .ag-column-select,
.ag-theme-quartz-dark .ag-panel-content-wrapper .ag-column-select,
.ag-theme-quartz-auto-dark .ag-panel-content-wrapper .ag-column-select {
  background-color: var(--ag-control-panel-background-color);
  color: color-mix(in srgb, transparent, var(--ag-foreground-color) 95%);
}
.ag-theme-quartz .ag-menu-header,
.ag-theme-quartz-dark .ag-menu-header,
.ag-theme-quartz-auto-dark .ag-menu-header {
  background-color: var(--ag-control-panel-background-color);
}
.ag-theme-quartz .ag-menu-option,
.ag-theme-quartz-dark .ag-menu-option,
.ag-theme-quartz-auto-dark .ag-menu-option {
  font-weight: 500;
  cursor: pointer;
}
.ag-theme-quartz .ag-ltr .ag-menu-option-popup-pointer .ag-icon, .ag-theme-quartz-dark .ag-ltr .ag-menu-option-popup-pointer .ag-icon, .ag-theme-quartz-auto-dark .ag-ltr .ag-menu-option-popup-pointer .ag-icon {
  text-align: right;
}

.ag-theme-quartz .ag-rtl .ag-menu-option-popup-pointer .ag-icon, .ag-theme-quartz-dark .ag-rtl .ag-menu-option-popup-pointer .ag-icon, .ag-theme-quartz-auto-dark .ag-rtl .ag-menu-option-popup-pointer .ag-icon {
  text-align: left;
}

.ag-theme-quartz .ag-tabs-header,
.ag-theme-quartz-dark .ag-tabs-header,
.ag-theme-quartz-auto-dark .ag-tabs-header {
  border-bottom: var(--ag-borders) var(--ag-border-color);
  display: flex;
  background-color: color-mix(in srgb, transparent, var(--ag-foreground-color) 5%);
}
.ag-theme-quartz .ag-side-bar,
.ag-theme-quartz-dark .ag-side-bar,
.ag-theme-quartz-auto-dark .ag-side-bar {
  background-color: var(--ag-control-panel-background-color);
  min-width: calc(var(--ag-icon-size) + var(--ag-grid-size) * 2);
}
.ag-theme-quartz .ag-side-buttons,
.ag-theme-quartz-dark .ag-side-buttons,
.ag-theme-quartz-auto-dark .ag-side-buttons {
  padding: 0;
  align-self: stretch;
  width: calc(var(--ag-icon-size) + var(--ag-grid-size) * 2);
  background: var(--ag-control-panel-background-color);
}
.ag-theme-quartz .ag-side-button,
.ag-theme-quartz-dark .ag-side-button,
.ag-theme-quartz-auto-dark .ag-side-button {
  border-top: var(--ag-borders) transparent;
  border-bottom: var(--ag-borders) transparent;
}
@media (max-resolution: 1.5x) {
  .ag-theme-quartz .ag-side-button-label,
  .ag-theme-quartz-dark .ag-side-button-label,
  .ag-theme-quartz-auto-dark .ag-side-button-label {
    font-family: "Segoe UI", var(--ag-font-family);
    transform: rotate(0.05deg);
  }
}
.ag-theme-quartz .ag-side-button.ag-selected,
.ag-theme-quartz-dark .ag-side-button.ag-selected,
.ag-theme-quartz-auto-dark .ag-side-button.ag-selected {
  border-bottom-color: var(--ag-border-color);
  background-color: var(--ag-background-color);
}
.ag-theme-quartz .ag-side-button.ag-selected:not(:first-of-type),
.ag-theme-quartz-dark .ag-side-button.ag-selected:not(:first-of-type),
.ag-theme-quartz-auto-dark .ag-side-button.ag-selected:not(:first-of-type) {
  border-top-color: var(--ag-border-color);
}
.ag-theme-quartz .ag-column-panel-column-select,
.ag-theme-quartz-dark .ag-column-panel-column-select,
.ag-theme-quartz-auto-dark .ag-column-panel-column-select {
  border-top: none;
  border-bottom: 1px solid var(--ag-secondary-border-color);
}
.ag-theme-quartz .ag-filter-toolpanel-search,
.ag-theme-quartz-dark .ag-filter-toolpanel-search,
.ag-theme-quartz-auto-dark .ag-filter-toolpanel-search {
  height: initial;
  margin-top: var(--ag-widget-container-vertical-padding);
}
.ag-theme-quartz .ag-filter-toolpanel-search-input,
.ag-theme-quartz-dark .ag-filter-toolpanel-search-input,
.ag-theme-quartz-auto-dark .ag-filter-toolpanel-search-input {
  margin: 0;
}
.ag-theme-quartz .ag-filter-apply-panel,
.ag-theme-quartz-dark .ag-filter-apply-panel,
.ag-theme-quartz-auto-dark .ag-filter-apply-panel {
  border: none;
  padding-top: var(--ag-widget-vertical-spacing);
}
.ag-theme-quartz .ag-chart-tabbed-menu-body,
.ag-theme-quartz-dark .ag-chart-tabbed-menu-body,
.ag-theme-quartz-auto-dark .ag-chart-tabbed-menu-body {
  position: relative;
}
.ag-theme-quartz .ag-chart-tabbed-menu-body::after,
.ag-theme-quartz-dark .ag-chart-tabbed-menu-body::after,
.ag-theme-quartz-auto-dark .ag-chart-tabbed-menu-body::after {
  content: "";
  position: absolute;
  display: block;
  top: 0;
  left: 0;
  right: 0;
  height: 16px;
  background: linear-gradient(var(--ag-control-panel-background-color), transparent);
}
.ag-theme-quartz .ag-charts-settings-group-title-bar,
.ag-theme-quartz .ag-charts-data-group-title-bar,
.ag-theme-quartz .ag-charts-format-top-level-group-title-bar,
.ag-theme-quartz .ag-charts-advanced-settings-top-level-group-title-bar,
.ag-theme-quartz .ag-charts-settings-group-container,
.ag-theme-quartz-dark .ag-charts-settings-group-title-bar,
.ag-theme-quartz-dark .ag-charts-data-group-title-bar,
.ag-theme-quartz-dark .ag-charts-format-top-level-group-title-bar,
.ag-theme-quartz-dark .ag-charts-advanced-settings-top-level-group-title-bar,
.ag-theme-quartz-dark .ag-charts-settings-group-container,
.ag-theme-quartz-auto-dark .ag-charts-settings-group-title-bar,
.ag-theme-quartz-auto-dark .ag-charts-data-group-title-bar,
.ag-theme-quartz-auto-dark .ag-charts-format-top-level-group-title-bar,
.ag-theme-quartz-auto-dark .ag-charts-advanced-settings-top-level-group-title-bar,
.ag-theme-quartz-auto-dark .ag-charts-settings-group-container {
  border-top: none;
  font-weight: 500;
}
.ag-theme-quartz .ag-chart-mini-thumbnail,
.ag-theme-quartz-dark .ag-chart-mini-thumbnail,
.ag-theme-quartz-auto-dark .ag-chart-mini-thumbnail {
  background-color: var(--ag-background-color);
  margin-top: 0;
  margin-bottom: 0;
}
.ag-theme-quartz .ag-chart-settings-nav-bar,
.ag-theme-quartz-dark .ag-chart-settings-nav-bar,
.ag-theme-quartz-auto-dark .ag-chart-settings-nav-bar {
  border-top: var(--ag-borders-secondary) var(--ag-secondary-border-color);
}
.ag-theme-quartz .ag-charts-format-sub-level-group-title-bar,
.ag-theme-quartz-dark .ag-charts-format-sub-level-group-title-bar,
.ag-theme-quartz-auto-dark .ag-charts-format-sub-level-group-title-bar {
  background: none;
  font-weight: 500;
}
.ag-theme-quartz .ag-chart-data-section .ag-label:not(.ag-group-title-bar),
.ag-theme-quartz .ag-chart-format-section .ag-label:not(.ag-group-title-bar),
.ag-theme-quartz-dark .ag-chart-data-section .ag-label:not(.ag-group-title-bar),
.ag-theme-quartz-dark .ag-chart-format-section .ag-label:not(.ag-group-title-bar),
.ag-theme-quartz-auto-dark .ag-chart-data-section .ag-label:not(.ag-group-title-bar),
.ag-theme-quartz-auto-dark .ag-chart-format-section .ag-label:not(.ag-group-title-bar) {
  color: var(--ag-chart-menu-label-color);
}
.ag-theme-quartz .ag-chart-data-section .ag-label-align-top .ag-label,
.ag-theme-quartz .ag-chart-format-section .ag-label-align-top .ag-label,
.ag-theme-quartz-dark .ag-chart-data-section .ag-label-align-top .ag-label,
.ag-theme-quartz-dark .ag-chart-format-section .ag-label-align-top .ag-label,
.ag-theme-quartz-auto-dark .ag-chart-data-section .ag-label-align-top .ag-label,
.ag-theme-quartz-auto-dark .ag-chart-format-section .ag-label-align-top .ag-label {
  margin-top: calc(var(--ag-widget-vertical-spacing) * 0.5);
  margin-bottom: var(--ag-widget-vertical-spacing);
}
.ag-theme-quartz .ag-chart-data-section .ag-slider.ag-label-align-top .ag-label,
.ag-theme-quartz .ag-chart-format-section .ag-slider.ag-label-align-top .ag-label,
.ag-theme-quartz-dark .ag-chart-data-section .ag-slider.ag-label-align-top .ag-label,
.ag-theme-quartz-dark .ag-chart-format-section .ag-slider.ag-label-align-top .ag-label,
.ag-theme-quartz-auto-dark .ag-chart-data-section .ag-slider.ag-label-align-top .ag-label,
.ag-theme-quartz-auto-dark .ag-chart-format-section .ag-slider.ag-label-align-top .ag-label {
  margin-bottom: 0;
}
.ag-theme-quartz .ag-chart-data-section label,
.ag-theme-quartz .ag-chart-format-section label,
.ag-theme-quartz-dark .ag-chart-data-section label,
.ag-theme-quartz-dark .ag-chart-format-section label,
.ag-theme-quartz-auto-dark .ag-chart-data-section label,
.ag-theme-quartz-auto-dark .ag-chart-format-section label {
  display: inline-block;
}
.ag-theme-quartz .ag-chart-format-wrapper,
.ag-theme-quartz .ag-chart-data-wrapper,
.ag-theme-quartz .ag-charts-format-top-level-group,
.ag-theme-quartz .ag-charts-format-top-level-group-title-bar,
.ag-theme-quartz .ag-charts-format-top-level-group .ag-charts-format-top-level-group-container,
.ag-theme-quartz .ag-charts-format-top-level-group-item,
.ag-theme-quartz .ag-charts-format-sub-level-group,
.ag-theme-quartz .ag-charts-format-sub-level-group-title-bar,
.ag-theme-quartz .ag-charts-format-sub-level-group-container,
.ag-theme-quartz .ag-charts-format-sub-level-group-item:last-child,
.ag-theme-quartz .ag-charts-format-sub-level-group-container > *,
.ag-theme-quartz .ag-charts-data-group-title-bar,
.ag-theme-quartz .ag-charts-data-group-container,
.ag-theme-quartz .ag-charts-settings-group-title-bar,
.ag-theme-quartz .ag-charts-settings-group-container,
.ag-theme-quartz-dark .ag-chart-format-wrapper,
.ag-theme-quartz-dark .ag-chart-data-wrapper,
.ag-theme-quartz-dark .ag-charts-format-top-level-group,
.ag-theme-quartz-dark .ag-charts-format-top-level-group-title-bar,
.ag-theme-quartz-dark .ag-charts-format-top-level-group .ag-charts-format-top-level-group-container,
.ag-theme-quartz-dark .ag-charts-format-top-level-group-item,
.ag-theme-quartz-dark .ag-charts-format-sub-level-group,
.ag-theme-quartz-dark .ag-charts-format-sub-level-group-title-bar,
.ag-theme-quartz-dark .ag-charts-format-sub-level-group-container,
.ag-theme-quartz-dark .ag-charts-format-sub-level-group-item:last-child,
.ag-theme-quartz-dark .ag-charts-format-sub-level-group-container > *,
.ag-theme-quartz-dark .ag-charts-data-group-title-bar,
.ag-theme-quartz-dark .ag-charts-data-group-container,
.ag-theme-quartz-dark .ag-charts-settings-group-title-bar,
.ag-theme-quartz-dark .ag-charts-settings-group-container,
.ag-theme-quartz-auto-dark .ag-chart-format-wrapper,
.ag-theme-quartz-auto-dark .ag-chart-data-wrapper,
.ag-theme-quartz-auto-dark .ag-charts-format-top-level-group,
.ag-theme-quartz-auto-dark .ag-charts-format-top-level-group-title-bar,
.ag-theme-quartz-auto-dark .ag-charts-format-top-level-group .ag-charts-format-top-level-group-container,
.ag-theme-quartz-auto-dark .ag-charts-format-top-level-group-item,
.ag-theme-quartz-auto-dark .ag-charts-format-sub-level-group,
.ag-theme-quartz-auto-dark .ag-charts-format-sub-level-group-title-bar,
.ag-theme-quartz-auto-dark .ag-charts-format-sub-level-group-container,
.ag-theme-quartz-auto-dark .ag-charts-format-sub-level-group-item:last-child,
.ag-theme-quartz-auto-dark .ag-charts-format-sub-level-group-container > *,
.ag-theme-quartz-auto-dark .ag-charts-data-group-title-bar,
.ag-theme-quartz-auto-dark .ag-charts-data-group-container,
.ag-theme-quartz-auto-dark .ag-charts-settings-group-title-bar,
.ag-theme-quartz-auto-dark .ag-charts-settings-group-container {
  padding: 0;
  margin: 0;
}
.ag-theme-quartz .ag-charts-format-top-level-group,
.ag-theme-quartz .ag-charts-data-group,
.ag-theme-quartz-dark .ag-charts-format-top-level-group,
.ag-theme-quartz-dark .ag-charts-data-group,
.ag-theme-quartz-auto-dark .ag-charts-format-top-level-group,
.ag-theme-quartz-auto-dark .ag-charts-data-group {
  border-top: var(--ag-borders-secondary) var(--ag-secondary-border-color);
}
.ag-theme-quartz .ag-charts-format-top-level-group-title-bar,
.ag-theme-quartz .ag-charts-data-group-title-bar,
.ag-theme-quartz .ag-charts-settings-group-title-bar,
.ag-theme-quartz-dark .ag-charts-format-top-level-group-title-bar,
.ag-theme-quartz-dark .ag-charts-data-group-title-bar,
.ag-theme-quartz-dark .ag-charts-settings-group-title-bar,
.ag-theme-quartz-auto-dark .ag-charts-format-top-level-group-title-bar,
.ag-theme-quartz-auto-dark .ag-charts-data-group-title-bar,
.ag-theme-quartz-auto-dark .ag-charts-settings-group-title-bar {
  padding: var(--ag-widget-container-vertical-padding) var(--ag-widget-container-horizontal-padding);
}
.ag-theme-quartz .ag-charts-format-top-level-group .ag-charts-format-top-level-group-container,
.ag-theme-quartz .ag-charts-data-group .ag-charts-data-group-container,
.ag-theme-quartz .ag-charts-settings-group .ag-charts-settings-group-container,
.ag-theme-quartz-dark .ag-charts-format-top-level-group .ag-charts-format-top-level-group-container,
.ag-theme-quartz-dark .ag-charts-data-group .ag-charts-data-group-container,
.ag-theme-quartz-dark .ag-charts-settings-group .ag-charts-settings-group-container,
.ag-theme-quartz-auto-dark .ag-charts-format-top-level-group .ag-charts-format-top-level-group-container,
.ag-theme-quartz-auto-dark .ag-charts-data-group .ag-charts-data-group-container,
.ag-theme-quartz-auto-dark .ag-charts-settings-group .ag-charts-settings-group-container {
  padding: 0 var(--ag-widget-container-horizontal-padding);
}
.ag-theme-quartz .ag-charts-format-sub-level-group-title-bar,
.ag-theme-quartz-dark .ag-charts-format-sub-level-group-title-bar,
.ag-theme-quartz-auto-dark .ag-charts-format-sub-level-group-title-bar {
  padding: var(--ag-widget-vertical-spacing) 0;
}
.ag-theme-quartz .ag-charts-format-sub-level-group-container,
.ag-theme-quartz-dark .ag-charts-format-sub-level-group-container,
.ag-theme-quartz-auto-dark .ag-charts-format-sub-level-group-container {
  padding-top: var(--ag-widget-vertical-spacing);
  padding-bottom: var(--ag-widget-container-vertical-padding);
}
.ag-theme-quartz .ag-charts-format-top-level-group-container > *,
.ag-theme-quartz .ag-charts-format-sub-level-group-container > *,
.ag-theme-quartz-dark .ag-charts-format-top-level-group-container > *,
.ag-theme-quartz-dark .ag-charts-format-sub-level-group-container > *,
.ag-theme-quartz-auto-dark .ag-charts-format-top-level-group-container > *,
.ag-theme-quartz-auto-dark .ag-charts-format-sub-level-group-container > * {
  margin-bottom: var(--ag-widget-vertical-spacing);
}
.ag-theme-quartz .ag-charts-data-group-item,
.ag-theme-quartz-dark .ag-charts-data-group-item,
.ag-theme-quartz-auto-dark .ag-charts-data-group-item {
  padding-bottom: var(--ag-widget-container-vertical-padding);
}
.ag-theme-quartz .ag-chart-settings-mini-wrapper,
.ag-theme-quartz-dark .ag-chart-settings-mini-wrapper,
.ag-theme-quartz-auto-dark .ag-chart-settings-mini-wrapper {
  padding-bottom: var(--ag-widget-container-vertical-padding);
}
.ag-theme-quartz .ag-chart-advanced-settings-section,
.ag-theme-quartz-dark .ag-chart-advanced-settings-section,
.ag-theme-quartz-auto-dark .ag-chart-advanced-settings-section {
  padding-top: var(--ag-widget-container-vertical-padding);
  padding-bottom: var(--ag-widget-container-vertical-padding);
}
.ag-theme-quartz .ag-charts-advanced-settings-top-level-group .ag-charts-advanced-settings-top-level-group-title-bar,
.ag-theme-quartz .ag-charts-advanced-settings-top-level-group .ag-charts-advanced-settings-top-level-group-container,
.ag-theme-quartz-dark .ag-charts-advanced-settings-top-level-group .ag-charts-advanced-settings-top-level-group-title-bar,
.ag-theme-quartz-dark .ag-charts-advanced-settings-top-level-group .ag-charts-advanced-settings-top-level-group-container,
.ag-theme-quartz-auto-dark .ag-charts-advanced-settings-top-level-group .ag-charts-advanced-settings-top-level-group-title-bar,
.ag-theme-quartz-auto-dark .ag-charts-advanced-settings-top-level-group .ag-charts-advanced-settings-top-level-group-container {
  padding: 0 var(--ag-widget-container-horizontal-padding);
}
.ag-theme-quartz .ag-charts-advanced-settings-top-level-group-container,
.ag-theme-quartz-dark .ag-charts-advanced-settings-top-level-group-container,
.ag-theme-quartz-auto-dark .ag-charts-advanced-settings-top-level-group-container {
  margin: 0;
}
.ag-theme-quartz .ag-charts-advanced-settings-top-level-group-item,
.ag-theme-quartz-dark .ag-charts-advanced-settings-top-level-group-item,
.ag-theme-quartz-auto-dark .ag-charts-advanced-settings-top-level-group-item {
  margin-top: calc(var(--ag-widget-vertical-spacing) * 2);
  margin-bottom: 0;
}
.ag-theme-quartz .ag-ltr .ag-group-title-bar-icon, .ag-theme-quartz-dark .ag-ltr .ag-group-title-bar-icon, .ag-theme-quartz-auto-dark .ag-ltr .ag-group-title-bar-icon {
  margin-right: var(--ag-grid-size);
}

.ag-theme-quartz .ag-rtl .ag-group-title-bar-icon, .ag-theme-quartz-dark .ag-rtl .ag-group-title-bar-icon, .ag-theme-quartz-auto-dark .ag-rtl .ag-group-title-bar-icon {
  margin-left: var(--ag-grid-size);
}

.ag-theme-quartz .ag-spectrum-color,
.ag-theme-quartz .ag-spectrum-fill,
.ag-theme-quartz-dark .ag-spectrum-color,
.ag-theme-quartz-dark .ag-spectrum-fill,
.ag-theme-quartz-auto-dark .ag-spectrum-color,
.ag-theme-quartz-auto-dark .ag-spectrum-fill {
  border-radius: var(--ag-border-radius);
}
.ag-theme-quartz .ag-spectrum-dragger,
.ag-theme-quartz-dark .ag-spectrum-dragger,
.ag-theme-quartz-auto-dark .ag-spectrum-dragger {
  border-radius: 18px;
  height: 18px;
  width: 18px;
  border: 3px solid white;
}
.ag-theme-quartz .ag-spectrum-tools,
.ag-theme-quartz-dark .ag-spectrum-tools,
.ag-theme-quartz-auto-dark .ag-spectrum-tools {
  padding-left: 0;
  padding-right: 0;
  padding-bottom: 0;
}
.ag-theme-quartz .ag-spectrum-tool,
.ag-theme-quartz-dark .ag-spectrum-tool,
.ag-theme-quartz-auto-dark .ag-spectrum-tool {
  height: 12px;
}
.ag-theme-quartz .ag-spectrum-hue-background,
.ag-theme-quartz .ag-spectrum-alpha-background,
.ag-theme-quartz-dark .ag-spectrum-hue-background,
.ag-theme-quartz-dark .ag-spectrum-alpha-background,
.ag-theme-quartz-auto-dark .ag-spectrum-hue-background,
.ag-theme-quartz-auto-dark .ag-spectrum-alpha-background {
  border-radius: 12px;
}
.ag-theme-quartz .ag-spectrum-slider,
.ag-theme-quartz-dark .ag-spectrum-slider,
.ag-theme-quartz-auto-dark .ag-spectrum-slider {
  margin-top: -15px;
  width: 18px;
  height: 18px;
  border-radius: 18px;
  border: 3px solid rgb(248, 248, 248);
}
.ag-theme-quartz .ag-recent-colors,
.ag-theme-quartz-dark .ag-recent-colors,
.ag-theme-quartz-auto-dark .ag-recent-colors {
  margin-left: var(--ag-grid-size);
  margin-right: var(--ag-grid-size);
  margin-bottom: 2px;
}
.ag-theme-quartz .ag-color-input-color,
.ag-theme-quartz .ag-color-picker-color,
.ag-theme-quartz .ag-recent-color,
.ag-theme-quartz-dark .ag-color-input-color,
.ag-theme-quartz-dark .ag-color-picker-color,
.ag-theme-quartz-dark .ag-recent-color,
.ag-theme-quartz-auto-dark .ag-color-input-color,
.ag-theme-quartz-auto-dark .ag-color-picker-color,
.ag-theme-quartz-auto-dark .ag-recent-color {
  border-radius: 4px;
}
.ag-theme-quartz .ag-recent-color,
.ag-theme-quartz-dark .ag-recent-color,
.ag-theme-quartz-auto-dark .ag-recent-color {
  border: var(--ag-borders-secondary) var(--ag-secondary-border-color);
}
.ag-theme-quartz.ag-dnd-ghost,
.ag-theme-quartz-dark.ag-dnd-ghost,
.ag-theme-quartz-auto-dark.ag-dnd-ghost {
  font-weight: 500;
}
.ag-theme-quartz .ag-standard-button,
.ag-theme-quartz-dark .ag-standard-button,
.ag-theme-quartz-auto-dark .ag-standard-button {
  font-family: inherit;
  appearance: none;
  -webkit-appearance: none;
  border-radius: var(--ag-border-radius);
  border: solid 1px var(--ag-input-border-color);
  background-color: var(--ag-background-color);
  padding: var(--ag-grid-size) calc(var(--ag-grid-size) * 2);
  cursor: pointer;
}
.ag-theme-quartz .ag-standard-button:hover,
.ag-theme-quartz-dark .ag-standard-button:hover,
.ag-theme-quartz-auto-dark .ag-standard-button:hover {
  background-color: var(--ag-row-hover-color);
}
.ag-theme-quartz .ag-standard-button:active,
.ag-theme-quartz-dark .ag-standard-button:active,
.ag-theme-quartz-auto-dark .ag-standard-button:active {
  border-color: var(--ag-active-color);
}
.ag-theme-quartz .ag-standard-button:disabled,
.ag-theme-quartz-dark .ag-standard-button:disabled,
.ag-theme-quartz-auto-dark .ag-standard-button:disabled {
  color: var(--ag-disabled-foreground-color);
  background-color: var(--ag-input-disabled-background-color);
  border-color: var(--ag-input-disabled-border-color);
}
.ag-theme-quartz .ag-column-drop-cell,
.ag-theme-quartz-dark .ag-column-drop-cell,
.ag-theme-quartz-auto-dark .ag-column-drop-cell {
  border-radius: calc(var(--ag-grid-size) * 3);
  height: calc(var(--ag-grid-size) * 3);
  padding: 0 var(--ag-grid-size);
}
.ag-theme-quartz .ag-column-drop-cell-button,
.ag-theme-quartz-dark .ag-column-drop-cell-button,
.ag-theme-quartz-auto-dark .ag-column-drop-cell-button {
  min-width: 0;
  margin: 0;
}
.ag-theme-quartz .ag-column-drop-cell-drag-handle,
.ag-theme-quartz-dark .ag-column-drop-cell-drag-handle,
.ag-theme-quartz-auto-dark .ag-column-drop-cell-drag-handle {
  margin-left: 0;
}
.ag-theme-quartz .ag-column-drop-vertical,
.ag-theme-quartz-dark .ag-column-drop-vertical,
.ag-theme-quartz-auto-dark .ag-column-drop-vertical {
  min-height: 75px;
}
.ag-theme-quartz .ag-column-drop-vertical-title-bar,
.ag-theme-quartz-dark .ag-column-drop-vertical-title-bar,
.ag-theme-quartz-auto-dark .ag-column-drop-vertical-title-bar {
  padding: var(--ag-widget-container-vertical-padding) calc(var(--ag-grid-size) * 2) 0;
}
.ag-theme-quartz .ag-ltr .ag-column-drop-vertical-icon, .ag-theme-quartz-dark .ag-ltr .ag-column-drop-vertical-icon, .ag-theme-quartz-auto-dark .ag-ltr .ag-column-drop-vertical-icon {
  margin-left: 0;
  margin-right: var(--ag-widget-horizontal-spacing);
}

.ag-theme-quartz .ag-rtl .ag-column-drop-vertical-icon, .ag-theme-quartz-dark .ag-rtl .ag-column-drop-vertical-icon, .ag-theme-quartz-auto-dark .ag-rtl .ag-column-drop-vertical-icon {
  margin-right: 0;
  margin-left: var(--ag-widget-horizontal-spacing);
}

.ag-theme-quartz .ag-column-drop-vertical-empty-message,
.ag-theme-quartz-dark .ag-column-drop-vertical-empty-message,
.ag-theme-quartz-auto-dark .ag-column-drop-vertical-empty-message {
  display: flex;
  align-items: center;
  justify-content: center;
  border: dashed 1px;
  border-color: var(--ag-border-color);
  margin: calc(var(--ag-grid-size) * 1.5) calc(var(--ag-grid-size) * 2);
  padding: calc(var(--ag-grid-size) * 2);
}
.ag-theme-quartz .ag-column-drop-empty-message,
.ag-theme-quartz-dark .ag-column-drop-empty-message,
.ag-theme-quartz-auto-dark .ag-column-drop-empty-message {
  color: var(--ag-foreground-color);
}
.ag-theme-quartz .ag-pill-select .ag-column-drop,
.ag-theme-quartz-dark .ag-pill-select .ag-column-drop,
.ag-theme-quartz-auto-dark .ag-pill-select .ag-column-drop {
  min-height: unset;
}
.ag-theme-quartz .ag-pill-select .ag-picker-field-display,
.ag-theme-quartz-dark .ag-pill-select .ag-picker-field-display,
.ag-theme-quartz-auto-dark .ag-pill-select .ag-picker-field-display {
  font-weight: 500;
  color: var(--ag-chart-menu-pill-select-button-color);
}
.ag-theme-quartz .ag-pill-select .ag-picker-field-icon .ag-icon,
.ag-theme-quartz-dark .ag-pill-select .ag-picker-field-icon .ag-icon,
.ag-theme-quartz-auto-dark .ag-pill-select .ag-picker-field-icon .ag-icon {
  color: var(--ag-chart-menu-pill-select-button-color);
}
.ag-theme-quartz .ag-status-bar,
.ag-theme-quartz-dark .ag-status-bar,
.ag-theme-quartz-auto-dark .ag-status-bar {
  font-weight: normal;
}
.ag-theme-quartz .ag-status-name-value,
.ag-theme-quartz-dark .ag-status-name-value,
.ag-theme-quartz-auto-dark .ag-status-name-value {
  padding: var(--ag-widget-container-vertical-padding) 0;
}
.ag-theme-quartz .ag-status-name-value-value,
.ag-theme-quartz .ag-paging-number,
.ag-theme-quartz .ag-paging-row-summary-panel-number,
.ag-theme-quartz-dark .ag-status-name-value-value,
.ag-theme-quartz-dark .ag-paging-number,
.ag-theme-quartz-dark .ag-paging-row-summary-panel-number,
.ag-theme-quartz-auto-dark .ag-status-name-value-value,
.ag-theme-quartz-auto-dark .ag-paging-number,
.ag-theme-quartz-auto-dark .ag-paging-row-summary-panel-number {
  font-weight: 500;
}
.ag-theme-quartz .ag-column-drop-cell-button,
.ag-theme-quartz-dark .ag-column-drop-cell-button,
.ag-theme-quartz-auto-dark .ag-column-drop-cell-button {
  opacity: 0.75;
}
.ag-theme-quartz .ag-column-drop-cell-button:hover,
.ag-theme-quartz-dark .ag-column-drop-cell-button:hover,
.ag-theme-quartz-auto-dark .ag-column-drop-cell-button:hover {
  opacity: 1;
}
.ag-theme-quartz .ag-header-cell-menu-button,
.ag-theme-quartz .ag-header-cell-filter-button,
.ag-theme-quartz .ag-panel-title-bar-button,
.ag-theme-quartz .ag-header-expand-icon,
.ag-theme-quartz .ag-column-group-icons,
.ag-theme-quartz .ag-set-filter-group-icons,
.ag-theme-quartz .ag-group-expanded .ag-icon,
.ag-theme-quartz .ag-group-contracted .ag-icon,
.ag-theme-quartz .ag-chart-settings-prev,
.ag-theme-quartz .ag-chart-settings-next,
.ag-theme-quartz .ag-group-title-bar-icon,
.ag-theme-quartz .ag-column-select-header-icon,
.ag-theme-quartz .ag-floating-filter-button-button,
.ag-theme-quartz .ag-filter-toolpanel-expand,
.ag-theme-quartz .ag-panel-title-bar-button-icon,
.ag-theme-quartz .ag-chart-menu-icon,
.ag-theme-quartz-dark .ag-header-cell-menu-button,
.ag-theme-quartz-dark .ag-header-cell-filter-button,
.ag-theme-quartz-dark .ag-panel-title-bar-button,
.ag-theme-quartz-dark .ag-header-expand-icon,
.ag-theme-quartz-dark .ag-column-group-icons,
.ag-theme-quartz-dark .ag-set-filter-group-icons,
.ag-theme-quartz-dark .ag-group-expanded .ag-icon,
.ag-theme-quartz-dark .ag-group-contracted .ag-icon,
.ag-theme-quartz-dark .ag-chart-settings-prev,
.ag-theme-quartz-dark .ag-chart-settings-next,
.ag-theme-quartz-dark .ag-group-title-bar-icon,
.ag-theme-quartz-dark .ag-column-select-header-icon,
.ag-theme-quartz-dark .ag-floating-filter-button-button,
.ag-theme-quartz-dark .ag-filter-toolpanel-expand,
.ag-theme-quartz-dark .ag-panel-title-bar-button-icon,
.ag-theme-quartz-dark .ag-chart-menu-icon,
.ag-theme-quartz-auto-dark .ag-header-cell-menu-button,
.ag-theme-quartz-auto-dark .ag-header-cell-filter-button,
.ag-theme-quartz-auto-dark .ag-panel-title-bar-button,
.ag-theme-quartz-auto-dark .ag-header-expand-icon,
.ag-theme-quartz-auto-dark .ag-column-group-icons,
.ag-theme-quartz-auto-dark .ag-set-filter-group-icons,
.ag-theme-quartz-auto-dark .ag-group-expanded .ag-icon,
.ag-theme-quartz-auto-dark .ag-group-contracted .ag-icon,
.ag-theme-quartz-auto-dark .ag-chart-settings-prev,
.ag-theme-quartz-auto-dark .ag-chart-settings-next,
.ag-theme-quartz-auto-dark .ag-group-title-bar-icon,
.ag-theme-quartz-auto-dark .ag-column-select-header-icon,
.ag-theme-quartz-auto-dark .ag-floating-filter-button-button,
.ag-theme-quartz-auto-dark .ag-filter-toolpanel-expand,
.ag-theme-quartz-auto-dark .ag-panel-title-bar-button-icon,
.ag-theme-quartz-auto-dark .ag-chart-menu-icon {
  --ag-quartz-icon-hover-color: color-mix(in srgb, transparent, var(--ag-foreground-color) 10%);
}
.ag-theme-quartz .ag-header-cell-menu-button:hover,
.ag-theme-quartz .ag-header-cell-filter-button:hover,
.ag-theme-quartz .ag-panel-title-bar-button:hover,
.ag-theme-quartz .ag-header-expand-icon:hover,
.ag-theme-quartz .ag-column-group-icons:hover,
.ag-theme-quartz .ag-set-filter-group-icons:hover,
.ag-theme-quartz .ag-group-expanded .ag-icon:hover,
.ag-theme-quartz .ag-group-contracted .ag-icon:hover,
.ag-theme-quartz .ag-chart-settings-prev:hover,
.ag-theme-quartz .ag-chart-settings-next:hover,
.ag-theme-quartz .ag-group-title-bar-icon:hover,
.ag-theme-quartz .ag-column-select-header-icon:hover,
.ag-theme-quartz .ag-floating-filter-button-button:hover,
.ag-theme-quartz .ag-filter-toolpanel-expand:hover,
.ag-theme-quartz .ag-panel-title-bar-button-icon:hover,
.ag-theme-quartz .ag-chart-menu-icon:hover,
.ag-theme-quartz-dark .ag-header-cell-menu-button:hover,
.ag-theme-quartz-dark .ag-header-cell-filter-button:hover,
.ag-theme-quartz-dark .ag-panel-title-bar-button:hover,
.ag-theme-quartz-dark .ag-header-expand-icon:hover,
.ag-theme-quartz-dark .ag-column-group-icons:hover,
.ag-theme-quartz-dark .ag-set-filter-group-icons:hover,
.ag-theme-quartz-dark .ag-group-expanded .ag-icon:hover,
.ag-theme-quartz-dark .ag-group-contracted .ag-icon:hover,
.ag-theme-quartz-dark .ag-chart-settings-prev:hover,
.ag-theme-quartz-dark .ag-chart-settings-next:hover,
.ag-theme-quartz-dark .ag-group-title-bar-icon:hover,
.ag-theme-quartz-dark .ag-column-select-header-icon:hover,
.ag-theme-quartz-dark .ag-floating-filter-button-button:hover,
.ag-theme-quartz-dark .ag-filter-toolpanel-expand:hover,
.ag-theme-quartz-dark .ag-panel-title-bar-button-icon:hover,
.ag-theme-quartz-dark .ag-chart-menu-icon:hover,
.ag-theme-quartz-auto-dark .ag-header-cell-menu-button:hover,
.ag-theme-quartz-auto-dark .ag-header-cell-filter-button:hover,
.ag-theme-quartz-auto-dark .ag-panel-title-bar-button:hover,
.ag-theme-quartz-auto-dark .ag-header-expand-icon:hover,
.ag-theme-quartz-auto-dark .ag-column-group-icons:hover,
.ag-theme-quartz-auto-dark .ag-set-filter-group-icons:hover,
.ag-theme-quartz-auto-dark .ag-group-expanded .ag-icon:hover,
.ag-theme-quartz-auto-dark .ag-group-contracted .ag-icon:hover,
.ag-theme-quartz-auto-dark .ag-chart-settings-prev:hover,
.ag-theme-quartz-auto-dark .ag-chart-settings-next:hover,
.ag-theme-quartz-auto-dark .ag-group-title-bar-icon:hover,
.ag-theme-quartz-auto-dark .ag-column-select-header-icon:hover,
.ag-theme-quartz-auto-dark .ag-floating-filter-button-button:hover,
.ag-theme-quartz-auto-dark .ag-filter-toolpanel-expand:hover,
.ag-theme-quartz-auto-dark .ag-panel-title-bar-button-icon:hover,
.ag-theme-quartz-auto-dark .ag-chart-menu-icon:hover {
  border-radius: 1px;
  background-color: var(--ag-quartz-icon-hover-color);
  box-shadow: 0 0 0 4px var(--ag-quartz-icon-hover-color);
}
.ag-theme-quartz .ag-filter-active,
.ag-theme-quartz-dark .ag-filter-active,
.ag-theme-quartz-auto-dark .ag-filter-active {
  --ag-quartz-icon-active-color: color-mix(in srgb, transparent, var(--ag-active-color) 14%);
  --ag-quartz-icon-hover-color: color-mix(in srgb, transparent, var(--ag-active-color) 28%);
  position: relative;
  border-radius: 1px;
  background-color: var(--ag-quartz-icon-active-color);
  box-shadow: 0 0 0 4px var(--ag-quartz-icon-active-color);
}
.ag-theme-quartz .ag-filter-active::after,
.ag-theme-quartz-dark .ag-filter-active::after,
.ag-theme-quartz-auto-dark .ag-filter-active::after {
  content: "";
  position: absolute;
  width: 6px;
  height: 6px;
  top: -1px;
  right: -1px;
  border-radius: 50%;
  background-color: var(--ag-active-color);
}
.ag-theme-quartz .ag-filter-active .ag-icon-filter,
.ag-theme-quartz-dark .ag-filter-active .ag-icon-filter,
.ag-theme-quartz-auto-dark .ag-filter-active .ag-icon-filter {
  clip-path: path("M8,0C8,4.415 11.585,8 16,8L16,16L0,16L0,0L8,0Z");
}
.ag-theme-quartz .ag-chart-menu,
.ag-theme-quartz-dark .ag-chart-menu,
.ag-theme-quartz-auto-dark .ag-chart-menu {
  --ag-icon-size: 20px;
  background-color: color-mix(in srgb, transparent, var(--ag-background-color) 30%);
  padding: 4px 2px;
}
.ag-theme-quartz .ag-chart-menu-icon,
.ag-theme-quartz-dark .ag-chart-menu-icon,
.ag-theme-quartz-auto-dark .ag-chart-menu-icon {
  opacity: 0.8;
}
.ag-theme-quartz .ag-drag-handle,
.ag-theme-quartz-dark .ag-drag-handle,
.ag-theme-quartz-auto-dark .ag-drag-handle {
  color: var(--ag-icon-font-color);
}
.ag-theme-quartz .ag-menu-option-icon,
.ag-theme-quartz .ag-compact-menu-option-icon,
.ag-theme-quartz-dark .ag-menu-option-icon,
.ag-theme-quartz-dark .ag-compact-menu-option-icon,
.ag-theme-quartz-auto-dark .ag-menu-option-icon,
.ag-theme-quartz-auto-dark .ag-compact-menu-option-icon {
  width: var(--ag-icon-size);
  cursor: pointer;
}
.ag-theme-quartz .ag-ltr .ag-menu-option-icon, .ag-theme-quartz .ag-ltr .ag-compact-menu-option-icon, .ag-theme-quartz-dark .ag-ltr .ag-menu-option-icon, .ag-theme-quartz-dark .ag-ltr .ag-compact-menu-option-icon, .ag-theme-quartz-auto-dark .ag-ltr .ag-menu-option-icon, .ag-theme-quartz-auto-dark .ag-ltr .ag-compact-menu-option-icon {
  padding-left: calc(var(--ag-grid-size) * 1.5);
}

.ag-theme-quartz .ag-rtl .ag-menu-option-icon, .ag-theme-quartz .ag-rtl .ag-compact-menu-option-icon, .ag-theme-quartz-dark .ag-rtl .ag-menu-option-icon, .ag-theme-quartz-dark .ag-rtl .ag-compact-menu-option-icon, .ag-theme-quartz-auto-dark .ag-rtl .ag-menu-option-icon, .ag-theme-quartz-auto-dark .ag-rtl .ag-compact-menu-option-icon {
  padding-right: calc(var(--ag-grid-size) * 1.5);
}

.ag-theme-quartz .ag-chart-settings-card-item.ag-not-selected:hover,
.ag-theme-quartz-dark .ag-chart-settings-card-item.ag-not-selected:hover,
.ag-theme-quartz-auto-dark .ag-chart-settings-card-item.ag-not-selected:hover {
  opacity: 0.35;
}
.ag-theme-quartz .ag-ltr .ag-panel-title-bar-button, .ag-theme-quartz-dark .ag-ltr .ag-panel-title-bar-button, .ag-theme-quartz-auto-dark .ag-ltr .ag-panel-title-bar-button {
  margin-left: calc(var(--ag-grid-size) * 2);
  margin-right: var(--ag-grid-size);
}

.ag-theme-quartz .ag-rtl .ag-panel-title-bar-button, .ag-theme-quartz-dark .ag-rtl .ag-panel-title-bar-button, .ag-theme-quartz-auto-dark .ag-rtl .ag-panel-title-bar-button {
  margin-right: calc(var(--ag-grid-size) * 2);
  margin-left: var(--ag-grid-size);
}

.ag-theme-quartz .ag-multi-filter-group-title-bar,
.ag-theme-quartz-dark .ag-multi-filter-group-title-bar,
.ag-theme-quartz-auto-dark .ag-multi-filter-group-title-bar {
  padding: calc(var(--ag-grid-size) * 1.5) var(--ag-grid-size);
}
.ag-theme-quartz .ag-ltr .ag-filter-toolpanel-instance-body, .ag-theme-quartz-dark .ag-ltr .ag-filter-toolpanel-instance-body, .ag-theme-quartz-auto-dark .ag-ltr .ag-filter-toolpanel-instance-body {
  padding-left: var(--ag-grid-size);
}

.ag-theme-quartz .ag-rtl .ag-filter-toolpanel-instance-body, .ag-theme-quartz-dark .ag-rtl .ag-filter-toolpanel-instance-body, .ag-theme-quartz-auto-dark .ag-rtl .ag-filter-toolpanel-instance-body {
  padding-right: var(--ag-grid-size);
}

.ag-theme-quartz .ag-filter-toolpanel-instance-filter,
.ag-theme-quartz-dark .ag-filter-toolpanel-instance-filter,
.ag-theme-quartz-auto-dark .ag-filter-toolpanel-instance-filter {
  border: none;
  background-color: var(--ag-control-panel-background-color);
}
.ag-theme-quartz .ag-ltr .ag-filter-toolpanel-instance-filter, .ag-theme-quartz-dark .ag-ltr .ag-filter-toolpanel-instance-filter, .ag-theme-quartz-auto-dark .ag-ltr .ag-filter-toolpanel-instance-filter {
  margin-left: calc(var(--ag-icon-size) * 0.5);
}

.ag-theme-quartz .ag-rtl .ag-filter-toolpanel-instance-filter, .ag-theme-quartz-dark .ag-rtl .ag-filter-toolpanel-instance-filter, .ag-theme-quartz-auto-dark .ag-rtl .ag-filter-toolpanel-instance-filter {
  margin-right: calc(var(--ag-icon-size) * 0.5);
}

.ag-theme-quartz .ag-filter-toolpanel-group-level-0,
.ag-theme-quartz-dark .ag-filter-toolpanel-group-level-0,
.ag-theme-quartz-auto-dark .ag-filter-toolpanel-group-level-0 {
  border-top: none;
}
.ag-theme-quartz .ag-filter-toolpanel-header,
.ag-theme-quartz-dark .ag-filter-toolpanel-header,
.ag-theme-quartz-auto-dark .ag-filter-toolpanel-header {
  height: initial;
  padding-top: var(--ag-grid-size);
  padding-bottom: var(--ag-grid-size);
}
.ag-theme-quartz .ag-filter-toolpanel-group-item,
.ag-theme-quartz-dark .ag-filter-toolpanel-group-item,
.ag-theme-quartz-auto-dark .ag-filter-toolpanel-group-item {
  margin: 0;
}
.ag-theme-quartz .ag-layout-auto-height .ag-center-cols-viewport,
.ag-theme-quartz .ag-layout-auto-height .ag-center-cols-container,
.ag-theme-quartz .ag-layout-print .ag-center-cols-viewport,
.ag-theme-quartz .ag-layout-print .ag-center-cols-container,
.ag-theme-quartz-dark .ag-layout-auto-height .ag-center-cols-viewport,
.ag-theme-quartz-dark .ag-layout-auto-height .ag-center-cols-container,
.ag-theme-quartz-dark .ag-layout-print .ag-center-cols-viewport,
.ag-theme-quartz-dark .ag-layout-print .ag-center-cols-container,
.ag-theme-quartz-auto-dark .ag-layout-auto-height .ag-center-cols-viewport,
.ag-theme-quartz-auto-dark .ag-layout-auto-height .ag-center-cols-container,
.ag-theme-quartz-auto-dark .ag-layout-print .ag-center-cols-viewport,
.ag-theme-quartz-auto-dark .ag-layout-print .ag-center-cols-container {
  min-height: 150px;
}
.ag-theme-quartz .ag-date-time-list-page-entry-is-current,
.ag-theme-quartz-dark .ag-date-time-list-page-entry-is-current,
.ag-theme-quartz-auto-dark .ag-date-time-list-page-entry-is-current {
  background-color: var(--ag-active-color);
}
.ag-theme-quartz .ag-advanced-filter-builder-button,
.ag-theme-quartz-dark .ag-advanced-filter-builder-button,
.ag-theme-quartz-auto-dark .ag-advanced-filter-builder-button {
  padding: var(--ag-grid-size);
  font-weight: 600;
}
.ag-theme-quartz .ag-advanced-filter-builder-item-button-disabled .ag-icon,
.ag-theme-quartz .ag-disabled .ag-icon,
.ag-theme-quartz .ag-column-select-column-group-readonly .ag-icon,
.ag-theme-quartz [disabled] .ag-icon,
.ag-theme-quartz-dark .ag-advanced-filter-builder-item-button-disabled .ag-icon,
.ag-theme-quartz-dark .ag-disabled .ag-icon,
.ag-theme-quartz-dark .ag-column-select-column-group-readonly .ag-icon,
.ag-theme-quartz-dark [disabled] .ag-icon,
.ag-theme-quartz-auto-dark .ag-advanced-filter-builder-item-button-disabled .ag-icon,
.ag-theme-quartz-auto-dark .ag-disabled .ag-icon,
.ag-theme-quartz-auto-dark .ag-column-select-column-group-readonly .ag-icon,
.ag-theme-quartz-auto-dark [disabled] .ag-icon {
  opacity: 0.6;
}
.ag-theme-quartz .ag-icon-grip,
.ag-theme-quartz-dark .ag-icon-grip,
.ag-theme-quartz-auto-dark .ag-icon-grip {
  opacity: 0.7;
}
.ag-theme-quartz .ag-column-select-column-readonly.ag-icon-grip,
.ag-theme-quartz .ag-column-select-column-readonly .ag-icon-grip,
.ag-theme-quartz-dark .ag-column-select-column-readonly.ag-icon-grip,
.ag-theme-quartz-dark .ag-column-select-column-readonly .ag-icon-grip,
.ag-theme-quartz-auto-dark .ag-column-select-column-readonly.ag-icon-grip,
.ag-theme-quartz-auto-dark .ag-column-select-column-readonly .ag-icon-grip {
  opacity: 0.35;
}
.ag-theme-quartz .ag-column-select-header-filter-wrapper .ag-input-wrapper::before,
.ag-theme-quartz .ag-filter-toolpanel-search .ag-input-wrapper::before,
.ag-theme-quartz .ag-mini-filter .ag-input-wrapper::before,
.ag-theme-quartz .ag-filter-filter .ag-input-wrapper::before,
.ag-theme-quartz-dark .ag-column-select-header-filter-wrapper .ag-input-wrapper::before,
.ag-theme-quartz-dark .ag-filter-toolpanel-search .ag-input-wrapper::before,
.ag-theme-quartz-dark .ag-mini-filter .ag-input-wrapper::before,
.ag-theme-quartz-dark .ag-filter-filter .ag-input-wrapper::before,
.ag-theme-quartz-auto-dark .ag-column-select-header-filter-wrapper .ag-input-wrapper::before,
.ag-theme-quartz-auto-dark .ag-filter-toolpanel-search .ag-input-wrapper::before,
.ag-theme-quartz-auto-dark .ag-mini-filter .ag-input-wrapper::before,
.ag-theme-quartz-auto-dark .ag-filter-filter .ag-input-wrapper::before {
  position: absolute;
  display: block;
  width: 12px;
  height: 12px;
  background-image: url(`+m+`);
  background-position: 50% 50%;
  background-size: contain;
  opacity: 40%;
  content: "";
  filter: var(--ag-icon-filter);
}
.ag-theme-quartz .ag-ltr .ag-column-select-header-filter-wrapper .ag-input-wrapper::before, .ag-theme-quartz .ag-ltr .ag-filter-toolpanel-search .ag-input-wrapper::before, .ag-theme-quartz .ag-ltr .ag-mini-filter .ag-input-wrapper::before, .ag-theme-quartz .ag-ltr .ag-filter-filter .ag-input-wrapper::before, .ag-theme-quartz-dark .ag-ltr .ag-column-select-header-filter-wrapper .ag-input-wrapper::before, .ag-theme-quartz-dark .ag-ltr .ag-filter-toolpanel-search .ag-input-wrapper::before, .ag-theme-quartz-dark .ag-ltr .ag-mini-filter .ag-input-wrapper::before, .ag-theme-quartz-dark .ag-ltr .ag-filter-filter .ag-input-wrapper::before, .ag-theme-quartz-auto-dark .ag-ltr .ag-column-select-header-filter-wrapper .ag-input-wrapper::before, .ag-theme-quartz-auto-dark .ag-ltr .ag-filter-toolpanel-search .ag-input-wrapper::before, .ag-theme-quartz-auto-dark .ag-ltr .ag-mini-filter .ag-input-wrapper::before, .ag-theme-quartz-auto-dark .ag-ltr .ag-filter-filter .ag-input-wrapper::before {
  margin-left: var(--ag-grid-size);
}

.ag-theme-quartz .ag-rtl .ag-column-select-header-filter-wrapper .ag-input-wrapper::before, .ag-theme-quartz .ag-rtl .ag-filter-toolpanel-search .ag-input-wrapper::before, .ag-theme-quartz .ag-rtl .ag-mini-filter .ag-input-wrapper::before, .ag-theme-quartz .ag-rtl .ag-filter-filter .ag-input-wrapper::before, .ag-theme-quartz-dark .ag-rtl .ag-column-select-header-filter-wrapper .ag-input-wrapper::before, .ag-theme-quartz-dark .ag-rtl .ag-filter-toolpanel-search .ag-input-wrapper::before, .ag-theme-quartz-dark .ag-rtl .ag-mini-filter .ag-input-wrapper::before, .ag-theme-quartz-dark .ag-rtl .ag-filter-filter .ag-input-wrapper::before, .ag-theme-quartz-auto-dark .ag-rtl .ag-column-select-header-filter-wrapper .ag-input-wrapper::before, .ag-theme-quartz-auto-dark .ag-rtl .ag-filter-toolpanel-search .ag-input-wrapper::before, .ag-theme-quartz-auto-dark .ag-rtl .ag-mini-filter .ag-input-wrapper::before, .ag-theme-quartz-auto-dark .ag-rtl .ag-filter-filter .ag-input-wrapper::before {
  margin-right: var(--ag-grid-size);
}

.ag-theme-quartz .ag-ltr .ag-column-select-header-filter-wrapper input.ag-text-field-input, .ag-theme-quartz .ag-ltr .ag-column-select-header-filter-wrapper input.ag-number-field-input, .ag-theme-quartz .ag-ltr .ag-filter-toolpanel-search input.ag-text-field-input, .ag-theme-quartz .ag-ltr .ag-filter-toolpanel-search input.ag-number-field-input, .ag-theme-quartz .ag-ltr .ag-mini-filter input.ag-text-field-input, .ag-theme-quartz .ag-ltr .ag-mini-filter input.ag-number-field-input, .ag-theme-quartz .ag-ltr .ag-filter-filter input.ag-text-field-input, .ag-theme-quartz .ag-ltr .ag-filter-filter input.ag-number-field-input, .ag-theme-quartz-dark .ag-ltr .ag-column-select-header-filter-wrapper input.ag-text-field-input, .ag-theme-quartz-dark .ag-ltr .ag-column-select-header-filter-wrapper input.ag-number-field-input, .ag-theme-quartz-dark .ag-ltr .ag-filter-toolpanel-search input.ag-text-field-input, .ag-theme-quartz-dark .ag-ltr .ag-filter-toolpanel-search input.ag-number-field-input, .ag-theme-quartz-dark .ag-ltr .ag-mini-filter input.ag-text-field-input, .ag-theme-quartz-dark .ag-ltr .ag-mini-filter input.ag-number-field-input, .ag-theme-quartz-dark .ag-ltr .ag-filter-filter input.ag-text-field-input, .ag-theme-quartz-dark .ag-ltr .ag-filter-filter input.ag-number-field-input, .ag-theme-quartz-auto-dark .ag-ltr .ag-column-select-header-filter-wrapper input.ag-text-field-input, .ag-theme-quartz-auto-dark .ag-ltr .ag-column-select-header-filter-wrapper input.ag-number-field-input, .ag-theme-quartz-auto-dark .ag-ltr .ag-filter-toolpanel-search input.ag-text-field-input, .ag-theme-quartz-auto-dark .ag-ltr .ag-filter-toolpanel-search input.ag-number-field-input, .ag-theme-quartz-auto-dark .ag-ltr .ag-mini-filter input.ag-text-field-input, .ag-theme-quartz-auto-dark .ag-ltr .ag-mini-filter input.ag-number-field-input, .ag-theme-quartz-auto-dark .ag-ltr .ag-filter-filter input.ag-text-field-input, .ag-theme-quartz-auto-dark .ag-ltr .ag-filter-filter input.ag-number-field-input {
  padding-left: 26px;
}

.ag-theme-quartz .ag-rtl .ag-column-select-header-filter-wrapper input.ag-text-field-input, .ag-theme-quartz .ag-rtl .ag-column-select-header-filter-wrapper input.ag-number-field-input, .ag-theme-quartz .ag-rtl .ag-filter-toolpanel-search input.ag-text-field-input, .ag-theme-quartz .ag-rtl .ag-filter-toolpanel-search input.ag-number-field-input, .ag-theme-quartz .ag-rtl .ag-mini-filter input.ag-text-field-input, .ag-theme-quartz .ag-rtl .ag-mini-filter input.ag-number-field-input, .ag-theme-quartz .ag-rtl .ag-filter-filter input.ag-text-field-input, .ag-theme-quartz .ag-rtl .ag-filter-filter input.ag-number-field-input, .ag-theme-quartz-dark .ag-rtl .ag-column-select-header-filter-wrapper input.ag-text-field-input, .ag-theme-quartz-dark .ag-rtl .ag-column-select-header-filter-wrapper input.ag-number-field-input, .ag-theme-quartz-dark .ag-rtl .ag-filter-toolpanel-search input.ag-text-field-input, .ag-theme-quartz-dark .ag-rtl .ag-filter-toolpanel-search input.ag-number-field-input, .ag-theme-quartz-dark .ag-rtl .ag-mini-filter input.ag-text-field-input, .ag-theme-quartz-dark .ag-rtl .ag-mini-filter input.ag-number-field-input, .ag-theme-quartz-dark .ag-rtl .ag-filter-filter input.ag-text-field-input, .ag-theme-quartz-dark .ag-rtl .ag-filter-filter input.ag-number-field-input, .ag-theme-quartz-auto-dark .ag-rtl .ag-column-select-header-filter-wrapper input.ag-text-field-input, .ag-theme-quartz-auto-dark .ag-rtl .ag-column-select-header-filter-wrapper input.ag-number-field-input, .ag-theme-quartz-auto-dark .ag-rtl .ag-filter-toolpanel-search input.ag-text-field-input, .ag-theme-quartz-auto-dark .ag-rtl .ag-filter-toolpanel-search input.ag-number-field-input, .ag-theme-quartz-auto-dark .ag-rtl .ag-mini-filter input.ag-text-field-input, .ag-theme-quartz-auto-dark .ag-rtl .ag-mini-filter input.ag-number-field-input, .ag-theme-quartz-auto-dark .ag-rtl .ag-filter-filter input.ag-text-field-input, .ag-theme-quartz-auto-dark .ag-rtl .ag-filter-filter input.ag-number-field-input {
  padding-right: 26px;
}

.ag-theme-quartz .ag-ltr .ag-column-select-add-group-indent, .ag-theme-quartz-dark .ag-ltr .ag-column-select-add-group-indent, .ag-theme-quartz-auto-dark .ag-ltr .ag-column-select-add-group-indent {
  margin-left: calc(var(--ag-icon-size) + var(--ag-grid-size) * 1.5);
}

.ag-theme-quartz .ag-rtl .ag-column-select-add-group-indent, .ag-theme-quartz-dark .ag-rtl .ag-column-select-add-group-indent, .ag-theme-quartz-auto-dark .ag-rtl .ag-column-select-add-group-indent {
  margin-right: calc(var(--ag-icon-size) + var(--ag-grid-size) * 1.5);
}

.ag-theme-quartz .ag-text-field-input[disabled],
.ag-theme-quartz .ag-menu-option-disabled,
.ag-theme-quartz-dark .ag-text-field-input[disabled],
.ag-theme-quartz-dark .ag-menu-option-disabled,
.ag-theme-quartz-auto-dark .ag-text-field-input[disabled],
.ag-theme-quartz-auto-dark .ag-menu-option-disabled {
  cursor: not-allowed;
}
.ag-theme-quartz .ag-checkbox-input-wrapper.ag-checked.ag-disabled,
.ag-theme-quartz-dark .ag-checkbox-input-wrapper.ag-checked.ag-disabled,
.ag-theme-quartz-auto-dark .ag-checkbox-input-wrapper.ag-checked.ag-disabled {
  --ag-checkbox-checked-color: var(--ag-checkbox-unchecked-color);
}
.ag-theme-quartz .ag-checkbox-input,
.ag-theme-quartz .ag-toggle-button-input,
.ag-theme-quartz .ag-radio-button-input,
.ag-theme-quartz input[class^=ag-][type=range],
.ag-theme-quartz-dark .ag-checkbox-input,
.ag-theme-quartz-dark .ag-toggle-button-input,
.ag-theme-quartz-dark .ag-radio-button-input,
.ag-theme-quartz-dark input[class^=ag-][type=range],
.ag-theme-quartz-auto-dark .ag-checkbox-input,
.ag-theme-quartz-auto-dark .ag-toggle-button-input,
.ag-theme-quartz-auto-dark .ag-radio-button-input,
.ag-theme-quartz-auto-dark input[class^=ag-][type=range] {
  cursor: pointer;
}
.ag-theme-quartz .ag-details-row,
.ag-theme-quartz-dark .ag-details-row,
.ag-theme-quartz-auto-dark .ag-details-row {
  padding: calc(var(--ag-grid-size) * 3.75);
}
.ag-theme-quartz .ag-list-item-hovered::after,
.ag-theme-quartz-dark .ag-list-item-hovered::after,
.ag-theme-quartz-auto-dark .ag-list-item-hovered::after {
  background-color: var(--ag-active-color);
}
.ag-theme-quartz .ag-pill .ag-pill-button:hover,
.ag-theme-quartz-dark .ag-pill .ag-pill-button:hover,
.ag-theme-quartz-auto-dark .ag-pill .ag-pill-button:hover {
  color: var(--ag-active-color);
}
.ag-theme-quartz .ag-header-highlight-before::after,
.ag-theme-quartz .ag-header-highlight-after::after,
.ag-theme-quartz-dark .ag-header-highlight-before::after,
.ag-theme-quartz-dark .ag-header-highlight-after::after,
.ag-theme-quartz-auto-dark .ag-header-highlight-before::after,
.ag-theme-quartz-auto-dark .ag-header-highlight-after::after {
  background-color: var(--ag-active-color);
}

.ag-theme-quartz-dark .ag-column-select-header-filter-wrapper .ag-input-wrapper::before,
.ag-theme-quartz-dark .ag-filter-toolpanel-search .ag-input-wrapper::before,
.ag-theme-quartz-dark .ag-mini-filter .ag-input-wrapper::before,
.ag-theme-quartz-dark .ag-filter-filter .ag-input-wrapper::before {
  opacity: 66%;
  filter: invert(100%);
}
.ag-theme-quartz-dark .ag-chart-menu {
  background-color: color-mix(in srgb, rgba(24, 39, 50, 0.3), var(--ag-background-color) 30%);
}
.ag-theme-quartz-dark .ag-text-field-input::placeholder {
  color: var(--ag-data-color);
  opacity: 0.8;
}
`,""]),p.A=d},6049:function(x,p,M){"use strict";var A=M(6758),F=M.n(A),D=M(935),f=M.n(D),v=M(62),u=M.n(v),s=new URL(M(8430),M.b),r=f()(F()),d=u()(s);r.push([x.id,`@font-face {
  font-family: "agGridAlpine";
  src: url(`+d+`);
  font-weight: normal;
  font-style: normal;
}
`,""]),p.A=r},1365:function(x,p,M){"use strict";var A=M(6758),F=M.n(A),D=M(935),f=M.n(D),v=M(62),u=M.n(v),s=new URL(M(9377),M.b),r=f()(F()),d=u()(s);r.push([x.id,`@font-face {
  font-family: "agGridBalham";
  src: url(`+d+`);
  font-weight: normal;
  font-style: normal;
}
`,""]),p.A=r},492:function(x,p,M){"use strict";var A=M(6758),F=M.n(A),D=M(935),f=M.n(D),v=M(62),u=M.n(v),s=new URL(M(7738),M.b),r=f()(F()),d=u()(s);r.push([x.id,`@font-face {
  font-family: "agGridClassic";
  src: url(`+d+`);
  font-weight: normal;
  font-style: normal;
}
`,""]),p.A=r},31:function(x,p,M){"use strict";var A=M(6758),F=M.n(A),D=M(935),f=M.n(D),v=M(62),u=M.n(v),s=new URL(M(6055),M.b),r=f()(F()),d=u()(s);r.push([x.id,`@font-face {
  font-family: "agGridMaterial";
  src: url(`+d+`);
  font-weight: normal;
  font-style: normal;
}
`,""]),p.A=r},2229:function(x,p,M){"use strict";var A=M(6758),F=M.n(A),D=M(935),f=M.n(D),v=M(62),u=M.n(v),s=new URL(M(2006),M.b),r=f()(F()),d=u()(s);r.push([x.id,`@font-face {
  font-family: "agGridQuartz";
  src: url(`+d+`);
  font-weight: normal;
  font-style: normal;
}
`,""]),p.A=r},935:function(x){"use strict";x.exports=function(p){var M=[];return M.toString=function(){return this.map(function(F){var D="",f=typeof F[5]!="undefined";return F[4]&&(D+="@supports (".concat(F[4],") {")),F[2]&&(D+="@media ".concat(F[2]," {")),f&&(D+="@layer".concat(F[5].length>0?" ".concat(F[5]):""," {")),D+=p(F),f&&(D+="}"),F[2]&&(D+="}"),F[4]&&(D+="}"),D}).join("")},M.i=function(F,D,f,v,u){typeof F=="string"&&(F=[[null,F,void 0]]);var s={};if(f)for(var r=0;r<this.length;r++){var d=this[r][0];d!=null&&(s[d]=!0)}for(var g=0;g<F.length;g++){var m=[].concat(F[g]);f&&s[m[0]]||(typeof u!="undefined"&&(typeof m[5]=="undefined"||(m[1]="@layer".concat(m[5].length>0?" ".concat(m[5]):""," {").concat(m[1],"}")),m[5]=u),D&&(m[2]&&(m[1]="@media ".concat(m[2]," {").concat(m[1],"}")),m[2]=D),v&&(m[4]?(m[1]="@supports (".concat(m[4],") {").concat(m[1],"}"),m[4]=v):m[4]="".concat(v)),M.push(m))}},M}},62:function(x){"use strict";x.exports=function(p,M){return M||(M={}),p&&(p=String(p.__esModule?p.default:p),/^['"].*['"]$/.test(p)&&(p=p.slice(1,-1)),M.hash&&(p+=M.hash),/["'() \t\n]|(%20)/.test(p)||M.needQuotes?'"'.concat(p.replace(/"/g,'\\"').replace(/\n/g,"\\n"),'"'):p)}},6758:function(x){"use strict";x.exports=function(p){return p[1]}},8510:function(x,p,M){"use strict";M.r(p);var A=M(2591),F=M.n(A),D=M(1740),f=M.n(D),v=M(8128),u=M.n(v),s=M(8021),r=M.n(s),d=M(3051),g=M.n(d),m=M(3656),b=M.n(m),w=M(2974),k={attributes:{"data-ag-scope":"legacy"}};k.styleTagTransform=b(),k.setAttributes=r(),k.insert=u().bind(null,"head"),k.domAPI=f(),k.insertStyleElement=g();var R=F()(w.A,k);p.default=w.A&&w.A.locals?w.A.locals:void 0},2685:function(x,p,M){"use strict";M.r(p);var A=M(2591),F=M.n(A),D=M(1740),f=M.n(D),v=M(8128),u=M.n(v),s=M(8021),r=M.n(s),d=M(3051),g=M.n(d),m=M(3656),b=M.n(m),w=M(1229),k={attributes:{"data-ag-scope":"legacy"}};k.styleTagTransform=b(),k.setAttributes=r(),k.insert=u().bind(null,"head"),k.domAPI=f(),k.insertStyleElement=g();var R=F()(w.A,k);p.default=w.A&&w.A.locals?w.A.locals:void 0},5151:function(x,p,M){"use strict";M.r(p);var A=M(2591),F=M.n(A),D=M(1740),f=M.n(D),v=M(8128),u=M.n(v),s=M(8021),r=M.n(s),d=M(3051),g=M.n(d),m=M(3656),b=M.n(m),w=M(3871),k={attributes:{"data-ag-scope":"legacy"}};k.styleTagTransform=b(),k.setAttributes=r(),k.insert=u().bind(null,"head"),k.domAPI=f(),k.insertStyleElement=g();var R=F()(w.A,k);p.default=w.A&&w.A.locals?w.A.locals:void 0},9681:function(x,p,M){"use strict";M.r(p);var A=M(2591),F=M.n(A),D=M(1740),f=M.n(D),v=M(8128),u=M.n(v),s=M(8021),r=M.n(s),d=M(3051),g=M.n(d),m=M(3656),b=M.n(m),w=M(8225),k={attributes:{"data-ag-scope":"legacy"}};k.styleTagTransform=b(),k.setAttributes=r(),k.insert=u().bind(null,"head"),k.domAPI=f(),k.insertStyleElement=g();var R=F()(w.A,k);p.default=w.A&&w.A.locals?w.A.locals:void 0},2883:function(x,p,M){"use strict";M.r(p);var A=M(2591),F=M.n(A),D=M(1740),f=M.n(D),v=M(8128),u=M.n(v),s=M(8021),r=M.n(s),d=M(3051),g=M.n(d),m=M(3656),b=M.n(m),w=M(5251),k={attributes:{"data-ag-scope":"legacy"}};k.styleTagTransform=b(),k.setAttributes=r(),k.insert=u().bind(null,"head"),k.domAPI=f(),k.insertStyleElement=g();var R=F()(w.A,k);p.default=w.A&&w.A.locals?w.A.locals:void 0},3543:function(x,p,M){"use strict";M.r(p);var A=M(2591),F=M.n(A),D=M(1740),f=M.n(D),v=M(8128),u=M.n(v),s=M(8021),r=M.n(s),d=M(3051),g=M.n(d),m=M(3656),b=M.n(m),w=M(4023),k={attributes:{"data-ag-scope":"legacy"}};k.styleTagTransform=b(),k.setAttributes=r(),k.insert=u().bind(null,"head"),k.domAPI=f(),k.insertStyleElement=g();var R=F()(w.A,k);p.default=w.A&&w.A.locals?w.A.locals:void 0},1109:function(x,p,M){"use strict";M.r(p);var A=M(2591),F=M.n(A),D=M(1740),f=M.n(D),v=M(8128),u=M.n(v),s=M(8021),r=M.n(s),d=M(3051),g=M.n(d),m=M(3656),b=M.n(m),w=M(3973),k={attributes:{"data-ag-scope":"legacy"}};k.styleTagTransform=b(),k.setAttributes=r(),k.insert=u().bind(null,"head"),k.domAPI=f(),k.insertStyleElement=g();var R=F()(w.A,k);p.default=w.A&&w.A.locals?w.A.locals:void 0},1601:function(x,p,M){"use strict";M.r(p);var A=M(2591),F=M.n(A),D=M(1740),f=M.n(D),v=M(8128),u=M.n(v),s=M(8021),r=M.n(s),d=M(3051),g=M.n(d),m=M(3656),b=M.n(m),w=M(145),k={attributes:{"data-ag-scope":"legacy"}};k.styleTagTransform=b(),k.setAttributes=r(),k.insert=u().bind(null,"head"),k.domAPI=f(),k.insertStyleElement=g();var R=F()(w.A,k);p.default=w.A&&w.A.locals?w.A.locals:void 0},8755:function(x,p,M){"use strict";M.r(p);var A=M(2591),F=M.n(A),D=M(1740),f=M.n(D),v=M(8128),u=M.n(v),s=M(8021),r=M.n(s),d=M(3051),g=M.n(d),m=M(3656),b=M.n(m),w=M(1123),k={attributes:{"data-ag-scope":"legacy"}};k.styleTagTransform=b(),k.setAttributes=r(),k.insert=u().bind(null,"head"),k.domAPI=f(),k.insertStyleElement=g();var R=F()(w.A,k);p.default=w.A&&w.A.locals?w.A.locals:void 0},3713:function(x,p,M){"use strict";M.r(p);var A=M(2591),F=M.n(A),D=M(1740),f=M.n(D),v=M(8128),u=M.n(v),s=M(8021),r=M.n(s),d=M(3051),g=M.n(d),m=M(3656),b=M.n(m),w=M(6049),k={attributes:{"data-ag-scope":"legacy"}};k.styleTagTransform=b(),k.setAttributes=r(),k.insert=u().bind(null,"head"),k.domAPI=f(),k.insertStyleElement=g();var R=F()(w.A,k);p.default=w.A&&w.A.locals?w.A.locals:void 0},9029:function(x,p,M){"use strict";M.r(p);var A=M(2591),F=M.n(A),D=M(1740),f=M.n(D),v=M(8128),u=M.n(v),s=M(8021),r=M.n(s),d=M(3051),g=M.n(d),m=M(3656),b=M.n(m),w=M(1365),k={attributes:{"data-ag-scope":"legacy"}};k.styleTagTransform=b(),k.setAttributes=r(),k.insert=u().bind(null,"head"),k.domAPI=f(),k.insertStyleElement=g();var R=F()(w.A,k);p.default=w.A&&w.A.locals?w.A.locals:void 0},7628:function(x,p,M){"use strict";M.r(p);var A=M(2591),F=M.n(A),D=M(1740),f=M.n(D),v=M(8128),u=M.n(v),s=M(8021),r=M.n(s),d=M(3051),g=M.n(d),m=M(3656),b=M.n(m),w=M(492),k={attributes:{"data-ag-scope":"legacy"}};k.styleTagTransform=b(),k.setAttributes=r(),k.insert=u().bind(null,"head"),k.domAPI=f(),k.insertStyleElement=g();var R=F()(w.A,k);p.default=w.A&&w.A.locals?w.A.locals:void 0},2559:function(x,p,M){"use strict";M.r(p);var A=M(2591),F=M.n(A),D=M(1740),f=M.n(D),v=M(8128),u=M.n(v),s=M(8021),r=M.n(s),d=M(3051),g=M.n(d),m=M(3656),b=M.n(m),w=M(31),k={attributes:{"data-ag-scope":"legacy"}};k.styleTagTransform=b(),k.setAttributes=r(),k.insert=u().bind(null,"head"),k.domAPI=f(),k.insertStyleElement=g();var R=F()(w.A,k);p.default=w.A&&w.A.locals?w.A.locals:void 0},9893:function(x,p,M){"use strict";M.r(p);var A=M(2591),F=M.n(A),D=M(1740),f=M.n(D),v=M(8128),u=M.n(v),s=M(8021),r=M.n(s),d=M(3051),g=M.n(d),m=M(3656),b=M.n(m),w=M(2229),k={attributes:{"data-ag-scope":"legacy"}};k.styleTagTransform=b(),k.setAttributes=r(),k.insert=u().bind(null,"head"),k.domAPI=f(),k.insertStyleElement=g();var R=F()(w.A,k);p.default=w.A&&w.A.locals?w.A.locals:void 0},2591:function(x){"use strict";var p=[];function M(D){for(var f=-1,v=0;v<p.length;v++)if(p[v].identifier===D){f=v;break}return f}function A(D,f){for(var v={},u=[],s=0;s<D.length;s++){var r=D[s],d=f.base?r[0]+f.base:r[0],g=v[d]||0,m="".concat(d," ").concat(g);v[d]=g+1;var b=M(m),w={css:r[1],media:r[2],sourceMap:r[3],supports:r[4],layer:r[5]};if(b!==-1)p[b].references++,p[b].updater(w);else{var k=F(w,f);f.byIndex=s,p.splice(s,0,{identifier:m,updater:k,references:1})}u.push(m)}return u}function F(D,f){var v=f.domAPI(f);v.update(D);var u=function(r){if(r){if(r.css===D.css&&r.media===D.media&&r.sourceMap===D.sourceMap&&r.supports===D.supports&&r.layer===D.layer)return;v.update(D=r)}else v.remove()};return u}x.exports=function(D,f){f=f||{},D=D||[];var v=A(D,f);return function(s){s=s||[];for(var r=0;r<v.length;r++){var d=v[r],g=M(d);p[g].references--}for(var m=A(s,f),b=0;b<v.length;b++){var w=v[b],k=M(w);p[k].references===0&&(p[k].updater(),p.splice(k,1))}v=m}}},8128:function(x){"use strict";var p={};function M(F){if(typeof p[F]=="undefined"){var D=document.querySelector(F);if(window.HTMLIFrameElement&&D instanceof window.HTMLIFrameElement)try{D=D.contentDocument.head}catch(f){D=null}p[F]=D}return p[F]}function A(F,D){var f=M(F);if(!f)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");f.appendChild(D)}x.exports=A},3051:function(x){"use strict";function p(M){var A=document.createElement("style");return M.setAttributes(A,M.attributes),M.insert(A,M.options),A}x.exports=p},8021:function(x){"use strict";function p(M,A){Object.keys(A).forEach(function(F){M.setAttribute(F,A[F])})}x.exports=p},1740:function(x){"use strict";function p(F,D,f){var v="";f.supports&&(v+="@supports (".concat(f.supports,") {")),f.media&&(v+="@media ".concat(f.media," {"));var u=typeof f.layer!="undefined";u&&(v+="@layer".concat(f.layer.length>0?" ".concat(f.layer):""," {")),v+=f.css,u&&(v+="}"),f.media&&(v+="}"),f.supports&&(v+="}");var s=f.sourceMap;s&&typeof btoa!="undefined"&&(v+=`
/*# sourceMappingURL=data:application/json;base64,`.concat(btoa(unescape(encodeURIComponent(JSON.stringify(s))))," */")),D.styleTagTransform(v,F,D.options)}function M(F){if(F.parentNode===null)return!1;F.parentNode.removeChild(F)}function A(F){if(typeof document=="undefined")return{update:function(){},remove:function(){}};var D=F.insertStyleElement(F);return{update:function(v){p(D,F,v)},remove:function(){M(D)}}}x.exports=A},3656:function(x){"use strict";function p(M,A){if(A.styleSheet)A.styleSheet.cssText=M;else{for(;A.firstChild;)A.removeChild(A.firstChild);A.appendChild(document.createTextNode(M))}}x.exports=p},5372:function(x,p){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.advancedFilterCSS=void 0,p.advancedFilterCSS='.ag-advanced-filter-header{align-items:center;background-color:var(--ag-header-background-color);border-bottom:var(--ag-header-row-border);display:flex;padding-left:var(--ag-cell-horizontal-padding);padding-right:var(--ag-cell-horizontal-padding);position:relative}.ag-advanced-filter{align-items:center;display:flex;width:100%}.ag-advanced-filter-apply-button,.ag-advanced-filter-builder-button{line-height:normal;white-space:nowrap}:where(.ag-ltr) .ag-advanced-filter-apply-button,:where(.ag-ltr) .ag-advanced-filter-builder-button{margin-left:calc(var(--ag-spacing)*2)}:where(.ag-rtl) .ag-advanced-filter-apply-button,:where(.ag-rtl) .ag-advanced-filter-builder-button{margin-right:calc(var(--ag-spacing)*2)}.ag-advanced-filter-builder-button{align-items:center;background-color:unset;border:0;display:flex;font-size:var(--ag-font-size);font-weight:600;padding:var(--ag-spacing);&:where(:not(:disabled)){cursor:pointer;&:hover{background-color:var(--ag-row-hover-color)}}}:where(.ag-ltr) .ag-advanced-filter-builder-button-label{margin-left:var(--ag-spacing)}:where(.ag-rtl) .ag-advanced-filter-builder-button-label{margin-right:var(--ag-spacing)}.ag-advanced-filter-builder{display:flex;flex-direction:column;-webkit-user-select:none;-moz-user-select:none;user-select:none;width:100%}.ag-advanced-filter-builder-list{flex:1;overflow:auto}.ag-advanced-filter-builder-button-panel{border-top:var(--ag-advanced-filter-builder-button-bar-border);display:flex;justify-content:flex-end;padding:var(--ag-widget-container-vertical-padding) var(--ag-widget-container-horizontal-padding)}:where(.ag-ltr) .ag-advanced-filter-builder-apply-button,:where(.ag-ltr) .ag-advanced-filter-builder-cancel-button{margin-left:calc(var(--ag-spacing)*2)}:where(.ag-rtl) .ag-advanced-filter-builder-apply-button,:where(.ag-rtl) .ag-advanced-filter-builder-cancel-button{margin-right:calc(var(--ag-spacing)*2)}.ag-advanced-filter-builder-item-wrapper{align-items:center;display:flex;flex:1 1 auto;justify-content:space-between;overflow:hidden}:where(.ag-ltr) .ag-advanced-filter-builder-item-wrapper{padding-left:calc(var(--ag-icon-size)/2);padding-right:var(--ag-icon-size)}:where(.ag-rtl) .ag-advanced-filter-builder-item-wrapper{padding-left:var(--ag-icon-size);padding-right:calc(var(--ag-icon-size)/2)}:where(.ag-virtual-list-viewport .ag-advanced-filter-builder-item-wrapper) .ag-tab-guard{position:absolute}.ag-advanced-filter-builder-item-tree-lines>*{width:var(--ag-advanced-filter-builder-indent-size)}.ag-advanced-filter-builder-item-tree-line-root{width:var(--ag-icon-size);&:before{height:50%;top:50%}}.ag-advanced-filter-builder-item-tree-line-horizontal,.ag-advanced-filter-builder-item-tree-line-vertical,.ag-advanced-filter-builder-item-tree-line-vertical-bottom,.ag-advanced-filter-builder-item-tree-line-vertical-top{align-items:center;display:flex;height:100%;position:relative;&:after,&:before{content:"";height:100%;position:absolute}}.ag-advanced-filter-builder-item-tree-line-horizontal:after{border-bottom:1px solid var(--ag-border-color);height:50%;top:0;width:calc(var(--ag-advanced-filter-builder-indent-size) - var(--ag-icon-size))}:where(.ag-ltr) .ag-advanced-filter-builder-item-tree-line-horizontal:after{left:calc(var(--ag-icon-size)/2)}:where(.ag-rtl) .ag-advanced-filter-builder-item-tree-line-horizontal:after{right:calc(var(--ag-icon-size)/2)}.ag-advanced-filter-builder-item-tree-line-vertical:before{top:0;width:calc(var(--ag-advanced-filter-builder-indent-size) - var(--ag-icon-size)/2)}:where(.ag-ltr) .ag-advanced-filter-builder-item-tree-line-vertical:before{border-left:1px solid var(--ag-border-color);left:calc(var(--ag-icon-size)/2)}:where(.ag-rtl) .ag-advanced-filter-builder-item-tree-line-vertical:before{border-right:1px solid var(--ag-border-color);right:calc(var(--ag-icon-size)/2)}.ag-advanced-filter-builder-item-tree-line-vertical-top:before{height:50%;top:0;width:calc(var(--ag-advanced-filter-builder-indent-size) - var(--ag-icon-size)/2)}:where(.ag-ltr) .ag-advanced-filter-builder-item-tree-line-vertical-top:before{border-left:1px solid var(--ag-border-color);left:calc(var(--ag-icon-size)/2)}:where(.ag-rtl) .ag-advanced-filter-builder-item-tree-line-vertical-top:before{border-right:1px solid var(--ag-border-color);right:calc(var(--ag-icon-size)/2)}.ag-advanced-filter-builder-item-tree-line-vertical-bottom:before{height:calc(50% - var(--ag-icon-size)*1.5/2);top:calc(50% + var(--ag-icon-size)*1.5/2);width:calc(var(--ag-icon-size)/2)}:where(.ag-ltr) .ag-advanced-filter-builder-item-tree-line-vertical-bottom:before{border-left:1px solid var(--ag-border-color);left:calc(var(--ag-icon-size)/2)}:where(.ag-rtl) .ag-advanced-filter-builder-item-tree-line-vertical-bottom:before{border-right:1px solid var(--ag-border-color);right:calc(var(--ag-icon-size)/2)}.ag-advanced-filter-builder-item-condition{padding-bottom:var(--ag-spacing);padding-top:var(--ag-spacing)}.ag-advanced-filter-builder-item,.ag-advanced-filter-builder-item-buttons,.ag-advanced-filter-builder-item-condition,.ag-advanced-filter-builder-item-tree-lines,.ag-advanced-filter-builder-pill,.ag-advanced-filter-builder-pill-wrapper{align-items:center;display:flex;height:100%}.ag-advanced-filter-builder-pill-wrapper{margin:0 var(--ag-spacing)}.ag-advanced-filter-builder-pill{border-radius:var(--ag-border-radius);min-height:calc(100% - var(--ag-spacing)*3);min-width:calc(var(--ag-spacing)*2);padding:var(--ag-spacing) calc(var(--ag-spacing)*2);position:relative}:where(.ag-advanced-filter-builder-pill){.ag-advanced-filter-builder-value-number{font-family:monospace;font-weight:700}.ag-advanced-filter-builder-value-empty{color:var(--ag-subtle-text-color)}}:where(.ag-ltr) :where(.ag-advanced-filter-builder-pill){.ag-picker-field-display{margin-right:var(--ag-spacing)}}:where(.ag-rtl) :where(.ag-advanced-filter-builder-pill){.ag-picker-field-display{margin-left:var(--ag-spacing)}}.ag-advanced-filter-builder-pill-display{font-weight:500;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ag-advanced-filter-builder-join-pill{background-color:var(--ag-advanced-filter-builder-join-pill-color);cursor:pointer}.ag-advanced-filter-builder-column-pill{background-color:var(--ag-advanced-filter-builder-column-pill-color);cursor:pointer}.ag-advanced-filter-builder-option-pill{background-color:var(--ag-advanced-filter-builder-option-pill-color);cursor:pointer}.ag-advanced-filter-builder-value-pill{background-color:var(--ag-advanced-filter-builder-value-pill-color);cursor:text;max-width:140px;:where(.ag-advanced-filter-builder-pill-display){display:block}}.ag-advanced-filter-builder-item-buttons>*{margin:0 calc(var(--ag-spacing)*.5)}.ag-advanced-filter-builder-item-button{color:var(--ag-subtle-text-color);cursor:pointer;position:relative}.ag-advanced-filter-builder-item-button,.ag-advanced-filter-builder-pill{&:focus-visible{box-shadow:var(--ag-focus-shadow)}}.ag-advanced-filter-builder-item-button-disabled{cursor:default;opacity:.5}.ag-advanced-filter-builder-virtual-list-container{top:var(--ag-spacing)}.ag-advanced-filter-builder-virtual-list-item{cursor:default;display:flex;height:var(--ag-list-item-height);&:hover{background-color:var(--ag-row-hover-color);:where(.ag-advanced-filter-builder-item-button){opacity:1}}}.ag-advanced-filter-builder-invalid{color:var(--ag-invalid-color);cursor:default;margin:0 var(--ag-spacing)}:where(.ag-advanced-filter-builder-validation) .ag-advanced-filter-builder-invalid,:where(.ag-advanced-filter-builder-virtual-list-item-highlight) .ag-advanced-filter-builder-item-button:focus-visible{opacity:1}'},6138:function(x,p){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.hideAdvancedFilterBuilder=p.showAdvancedFilterBuilder=p.setAdvancedFilterModel=p.getAdvancedFilterModel=void 0;function M(f){var v,u;return(u=(v=f.filterManager)==null?void 0:v.getAdvFilterModel())!=null?u:null}p.getAdvancedFilterModel=M;function A(f,v){var u;(u=f.filterManager)==null||u.setAdvFilterModel(v)}p.setAdvancedFilterModel=A;function F(f){var v;(v=f.filterManager)==null||v.toggleAdvFilterBuilder(!0,"api")}p.showAdvancedFilterBuilder=F;function D(f){var v;(v=f.filterManager)==null||v.toggleAdvFilterBuilder(!1,"api")}p.hideAdvancedFilterBuilder=D},2583:function(x,p,M){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.AdvancedFilterComp=void 0;let A=M(6624),F=M(2611);class D extends A.Component{wireBeans(v){this.advFilterExpSvc=v.advFilterExpSvc,this.advancedFilter=v.advancedFilter,this.filterManager=v.filterManager,this.registry=v.registry}constructor(){super(`
            <div class="ag-advanced-filter" role="presentation" tabindex="-1">
                <ag-autocomplete data-ref="eAutocomplete"></ag-autocomplete>
                <button class="ag-button ag-standard-button ag-advanced-filter-apply-button" data-ref="eApplyFilterButton"></button>
                <button class="ag-button ag-advanced-filter-builder-button" data-ref="eBuilderFilterButton">
                    <span data-ref="eBuilderFilterButtonIcon" aria-hidden="true"></span>
                    <span class="ag-advanced-filter-builder-button-label" data-ref="eBuilderFilterButtonLabel"></span>
                </button>
            </div>`,[F.AgAutocompleteSelector]),this.eAutocomplete=A.RefPlaceholder,this.eApplyFilterButton=A.RefPlaceholder,this.eBuilderFilterButton=A.RefPlaceholder,this.eBuilderFilterButtonIcon=A.RefPlaceholder,this.eBuilderFilterButtonLabel=A.RefPlaceholder,this.expressionParser=null,this.isApplyDisabled=!0,this.builderOpen=!1}postConstruct(){this.tooltipFeature=this.createOptionalManagedBean(this.registry.createDynamicBean("tooltipFeature",!1,{getGui:()=>this.getGui(),getTooltipShowDelayOverride:()=>1e3,getLocation:()=>"advancedFilter"})),this.eAutocomplete.setListGenerator((v,u)=>this.generateAutocompleteListParams(u)).setValidator(()=>this.validateValue()).setForceLastSelection((v,u)=>this.forceLastSelection(v,u)).setInputAriaLabel(this.advFilterExpSvc.translate("ariaAdvancedFilterInput")).setListAriaLabel(this.advFilterExpSvc.translate("ariaLabelAdvancedFilterAutocomplete")),this.refresh(),this.addManagedListeners(this.eAutocomplete,{eventValueChanged:({value:v})=>this.onValueChanged(v),eventValueConfirmed:({isValid:v})=>this.onValueConfirmed(v),eventOptionSelected:({position:v,updateEntry:u,autocompleteType:s})=>this.onOptionSelected(v,u,s),eventValidChanged:({isValid:v,validationMessage:u})=>this.onValidChanged(v,u)}),this.setupApplyButton(),this.setupBuilderButton()}refresh(){let v=this.advancedFilter.getExpressionDisplayValue();this.eAutocomplete.setValue({value:v!=null?v:"",position:v==null?void 0:v.length,updateListOnlyIfOpen:!0})}setInputDisabled(v){this.eAutocomplete.setInputDisabled(v),(0,A._setDisabled)(this.eApplyFilterButton,v||this.isApplyDisabled)}setupApplyButton(){this.eApplyFilterButton.innerText=this.advFilterExpSvc.translate("advancedFilterApply"),this.activateTabIndex([this.eApplyFilterButton]),this.addManagedElementListeners(this.eApplyFilterButton,{click:()=>this.onValueConfirmed(this.eAutocomplete.isValid())}),(0,A._setDisabled)(this.eApplyFilterButton,this.isApplyDisabled)}setupBuilderButton(){this.eBuilderFilterButtonIcon.appendChild((0,A._createIconNoSpan)("advancedFilterBuilder",this.beans)),this.eBuilderFilterButtonLabel.innerText=this.advFilterExpSvc.translate("advancedFilterBuilder"),this.activateTabIndex([this.eBuilderFilterButton]),this.addManagedElementListeners(this.eBuilderFilterButton,{click:()=>this.openBuilder()}),this.addManagedListeners(this.advancedFilter.getCtrl(),{advancedFilterBuilderClosed:()=>this.closeBuilder()})}onValueChanged(v){var s;v=(0,A._makeNull)(v),this.advancedFilter.setExpressionDisplayValue(v),this.expressionParser=this.advancedFilter.createExpressionParser(v);let u=(s=this.expressionParser)==null?void 0:s.parseExpression();u&&u!==v&&this.eAutocomplete.setValue({value:u,silent:!0,restoreFocus:!0})}onValueConfirmed(v){var u;!v||this.isApplyDisabled||((0,A._setDisabled)(this.eApplyFilterButton,!0),this.advancedFilter.applyExpression(),(u=this.filterManager)==null||u.onFilterChanged({source:"advancedFilter"}))}onOptionSelected(v,u,s){let{updatedValue:r,updatedPosition:d,hideAutocomplete:g}=this.updateExpression(v,u,s);this.eAutocomplete.setValue({value:r,position:d,updateListOnlyIfOpen:g,restoreFocus:!0})}validateValue(){var v,u,s;return(v=this.expressionParser)!=null&&v.isValid()?null:(s=(u=this.expressionParser)==null?void 0:u.getValidationMessage())!=null?s:null}onValidChanged(v,u){var s;this.isApplyDisabled=!v||this.advancedFilter.isCurrentExpressionApplied(),(0,A._setDisabled)(this.eApplyFilterButton,this.isApplyDisabled),(s=this.tooltipFeature)==null||s.setTooltipAndRefresh(u)}generateAutocompleteListParams(v){return this.expressionParser?this.expressionParser.getAutocompleteListParams(v):this.advFilterExpSvc.getDefaultAutocompleteListParams("")}updateExpression(v,u,s){var r,d;return this.advFilterExpSvc.updateAutocompleteCache(u,s),(d=(r=this.expressionParser)==null?void 0:r.updateExpression(v,u,s))!=null?d:this.advancedFilter.getDefaultExpression(u)}forceLastSelection({key:v,displayValue:u},s){return!!s.toLocaleLowerCase().match(`^${(u!=null?u:v).toLocaleLowerCase()}\\s*$`)}openBuilder(){this.builderOpen||(this.builderOpen=!0,(0,A._setDisabled)(this.eBuilderFilterButton,!0),this.advancedFilter.getCtrl().toggleFilterBuilder({source:"ui",eventSource:this.eBuilderFilterButton}))}closeBuilder(){this.builderOpen&&(this.builderOpen=!1,(0,A._setDisabled)(this.eBuilderFilterButton,!1),this.eBuilderFilterButton.focus())}}p.AdvancedFilterComp=D},5865:function(x,p,M){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.AdvancedFilterCtrl=void 0;let A=M(6624),F=M(8775),D=M(2583),f=M(4858),v=M(8986);class u extends A.BeanStub{wireBeans(r){this.ctrlsSvc=r.ctrlsSvc,this.popupSvc=r.popupSvc,this.advFilterExpSvc=r.advFilterExpSvc,this.environment=r.environment}constructor(r){super(),this.enabled=r}postConstruct(){this.hasAdvancedFilterParent=!!this.gos.get("advancedFilterParent"),this.ctrlsSvc.whenReady(this,()=>this.setAdvancedFilterComp()),this.addManagedEventListeners({advancedFilterEnabledChanged:({enabled:r})=>this.onEnabledChanged(r)}),this.addManagedPropertyListener("advancedFilterParent",()=>this.updateComps()),this.addDestroyFunc(()=>{this.destroyAdvancedFilterComp(),this.destroyBean(this.eBuilderComp),this.eBuilderDialog&&this.eBuilderDialog.isAlive()&&this.destroyBean(this.eBuilderDialog)})}setupHeaderComp(r){var d;this.eHeaderComp&&((d=this.eHeaderComp)==null||d.getGui().remove(),this.destroyBean(this.eHeaderComp)),this.eHeaderComp=this.createManagedBean(new f.AdvancedFilterHeaderComp(this.enabled&&!this.hasAdvancedFilterParent)),r.insertAdjacentElement("beforebegin",this.eHeaderComp.getGui())}focusHeaderComp(){return this.eHeaderComp?(this.eHeaderComp.getFocusableElement().focus(),!0):!1}refreshComp(){var r,d;(r=this.eFilterComp)==null||r.refresh(),(d=this.eHeaderComp)==null||d.refresh()}refreshBuilderComp(){var r;(r=this.eBuilderComp)==null||r.refresh()}getHeaderHeight(){var r,d;return(d=(r=this.eHeaderComp)==null?void 0:r.getHeight())!=null?d:0}setInputDisabled(r){var d,g;(d=this.eFilterComp)==null||d.setInputDisabled(r),(g=this.eHeaderComp)==null||g.setInputDisabled(r)}toggleFilterBuilder(r){let{source:d,force:g,eventSource:m}=r;if(g&&this.eBuilderDialog||g===!1&&!this.eBuilderDialog)return;if(this.eBuilderDialog){this.builderDestroySource=d,this.destroyBean(this.eBuilderDialog);return}this.setInputDisabled(!0);let{width:b,height:w,minWidth:k}=this.getBuilderDialogSize();this.eBuilderComp=this.createBean(new v.AdvancedFilterBuilderComp),this.eBuilderDialog=this.createBean(new F.AgDialog({title:this.advFilterExpSvc.translate("advancedFilterBuilderTitle"),component:this.eBuilderComp,width:b,height:w,resizable:!0,movable:!0,maximizable:!0,centered:!0,closable:!0,minWidth:k,afterGuiAttached:()=>{var R;return(R=this.eBuilderComp)==null?void 0:R.afterGuiAttached()},postProcessPopupParams:{type:"advancedFilterBuilder",eventSource:m}})),this.dispatchFilterBuilderVisibleChangedEvent(d,!0),this.eBuilderDialog.addEventListener("destroyed",()=>{var R;this.destroyBean(this.eBuilderComp),this.eBuilderComp=void 0,this.eBuilderDialog=void 0,this.setInputDisabled(!1),this.dispatchLocalEvent({type:"advancedFilterBuilderClosed"}),this.dispatchFilterBuilderVisibleChangedEvent((R=this.builderDestroySource)!=null?R:"ui",!1),this.builderDestroySource=void 0})}dispatchFilterBuilderVisibleChangedEvent(r,d){this.eventSvc.dispatchEvent({type:"advancedFilterBuilderVisibleChanged",source:r,visible:d})}getBuilderDialogSize(){var k,R;let r=(R=(k=this.gos.get("advancedFilterBuilderParams"))==null?void 0:k.minWidth)!=null?R:500,d=this.popupSvc.getPopupParent(),g=Math.round((0,A._getAbsoluteWidth)(d))-2,m=Math.round((0,A._getAbsoluteHeight)(d)*.75)-2,b=Math.min(Math.max(600,r),g),w=Math.min(600,m);return{width:b,height:w,minWidth:r}}onEnabledChanged(r){this.enabled=r,this.updateComps()}updateComps(){this.setAdvancedFilterComp(),this.setHeaderCompEnabled(),this.eventSvc.dispatchEvent({type:"headerHeightChanged"})}setAdvancedFilterComp(){if(this.destroyAdvancedFilterComp(),!this.enabled)return;let r=this.gos.get("advancedFilterParent");if(this.hasAdvancedFilterParent=!!r,r){let d=this.createBean(new D.AdvancedFilterComp),g=d.getGui();this.environment.applyThemeClasses(g),g.classList.add(this.gos.get("enableRtl")?"ag-rtl":"ag-ltr"),r.appendChild(g),this.eFilterComp=d}}setHeaderCompEnabled(){var r;(r=this.eHeaderComp)==null||r.setEnabled(this.enabled&&!this.hasAdvancedFilterParent)}destroyAdvancedFilterComp(){this.eFilterComp&&((0,A._removeFromParent)(this.eFilterComp.getGui()),this.destroyBean(this.eFilterComp))}}p.AdvancedFilterCtrl=u},1723:function(x,p,M){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.AdvancedFilterExpressionService=void 0;let A=M(6624),F=M(8397),D=M(9023),f=M(9459);class v extends A.BeanStub{constructor(){super(...arguments),this.beanName="advFilterExpSvc",this.columnNameToIdMap={},this.columnAutocompleteEntries=null,this.expressionEvaluatorParams={}}wireBeans(s){this.valueSvc=s.valueSvc,this.colModel=s.colModel,this.colNames=s.colNames,this.dataTypeSvc=s.dataTypeSvc}postConstruct(){this.expressionJoinOperators=this.generateExpressionJoinOperators(),this.expressionOperators=this.generateExpressionOperators()}parseJoinOperator(s){var d;let{type:r}=s;return(d=this.expressionJoinOperators[r])!=null?d:r}getColumnDisplayValue(s){let{colId:r}=s,g=this.getColumnAutocompleteEntries().find(({key:b})=>b===r),m;return g?(m=g.displayValue,this.columnNameToIdMap[m.toLocaleUpperCase()]={colId:r,columnName:m}):m=r,m}getOperatorDisplayValue(s){var r,d;return(d=(r=this.getExpressionOperator(s.filterType,s.type))==null?void 0:r.displayValue)!=null?d:s.type}getOperandModelValue(s,r,d){var g;switch(r){case"number":return(0,A._exists)(s)?Number(s):null;case"date":return(0,A._serialiseDate)(this.valueSvc.parseValue(d,null,s,void 0),!1);case"dateString":{let m=this.valueSvc.parseValue(d,null,s,void 0);return this.dataTypeSvc?(0,A._serialiseDate)((g=this.dataTypeSvc.getDateParserFunction(d)(m))!=null?g:null,!1):m}}return s}getOperandDisplayValue(s,r){var w,k,R;let{colId:d,filter:g}=s,m=this.colModel.getColDefCol(d),b="";if(g!=null){let T;switch(s.filterType){case"number":T=(w=(0,A._toStringOrNull)(g))!=null?w:"";break;case"date":{let z=(0,A._parseDateTimeFromString)(g);T=m?this.valueSvc.formatValue(m,null,z):null;break}case"dateString":{let z;if(this.dataTypeSvc){let G=(0,A._parseDateTimeFromString)(g);z=m?(k=this.dataTypeSvc)==null?void 0:k.getDateFormatterFunction(m)(G!=null?G:void 0):null}else z=g;T=m?this.valueSvc.formatValue(m,null,z):null;break}}s.filterType!=="number"&&(T=(R=T!=null?T:(0,A._toStringOrNull)(g))!=null?R:"",r||(T=`"${T}"`)),b=r?T:` ${T}`}return b}parseColumnFilterModel(s){var m,b;let r=(m=this.getColumnDisplayValue(s))!=null?m:"",d=(b=this.getOperatorDisplayValue(s))!=null?b:"",g=this.getOperandDisplayValue(s);return`[${r}] ${d}${g}`}updateAutocompleteCache(s,r){if(r==="column"){let{key:d,displayValue:g}=s;this.columnNameToIdMap[s.displayValue.toLocaleUpperCase()]={colId:d,columnName:g}}}translate(s,r){let d=F.ADVANCED_FILTER_LOCALE_TEXT[s];return typeof d=="function"&&(d=d(r)),this.getLocaleTextFunc()(s,d,r)}generateAutocompleteListParams(s,r,d){return{enabled:!0,type:r,searchString:d,entries:s}}getColumnAutocompleteEntries(){var g;if(this.columnAutocompleteEntries)return this.columnAutocompleteEntries;let s=(g=this.colModel.getColDefCols())!=null?g:[],r=[],d=this.gos.get("includeHiddenColumnsInAdvancedFilter");return s.forEach(m=>{m.getColDef().filter&&(d||m.isVisible()||m.isRowGroupActive())&&r.push({key:m.getColId(),displayValue:this.colNames.getDisplayNameForColumn(m,"advancedFilter")})}),r.sort((m,b)=>{var R,T;let w=(R=m.displayValue)!=null?R:"",k=(T=b.displayValue)!=null?T:"";return w<k?-1:k>w?1:0}),r}getOperatorAutocompleteEntries(s,r){let d=this.getActiveOperators(s);return this.getDataTypeExpressionOperator(r).getEntries(d)}getJoinOperatorAutocompleteEntries(){return Object.entries(this.expressionJoinOperators).map(([s,r])=>({key:s,displayValue:r}))}getDefaultAutocompleteListParams(s){return this.generateAutocompleteListParams(this.getColumnAutocompleteEntries(),"column",s)}getDataTypeExpressionOperator(s){return this.expressionOperators[s]}getExpressionOperator(s,r){var d,g;return(g=(d=this.getDataTypeExpressionOperator(s))==null?void 0:d.operators)==null?void 0:g[r]}getExpressionJoinOperators(){return this.expressionJoinOperators}getColId(s){let r=s.toLocaleUpperCase(),d=this.columnNameToIdMap[r];if(d)return d;let m=this.getColumnAutocompleteEntries().find(({displayValue:b})=>b.toLocaleUpperCase()===r);if(m){let{key:b,displayValue:w}=m,k={colId:b,columnName:w};return this.columnNameToIdMap[r]=k,k}return null}getExpressionEvaluatorParams(s){var b,w,k;let r=this.expressionEvaluatorParams[s];if(r)return r;let d=this.colModel.getColDefCol(s);if(!d)return{valueConverter:R=>R};switch((b=this.dataTypeSvc)==null?void 0:b.getBaseDataType(d)){case"dateString":r={valueConverter:(k=(w=this.dataTypeSvc)==null?void 0:w.getDateParserFunction(d))!=null?k:R=>R};break;case"object":d.getColDef().filterValueGetter?r={valueConverter:R=>R}:r={valueConverter:(R,T)=>{var z;return(z=this.valueSvc.formatValue(d,T,R))!=null?z:typeof R.toString=="function"?R.toString():""}};break;case"text":case void 0:r={valueConverter:R=>(0,A._toStringOrNull)(R)};break;default:r={valueConverter:R=>R};break}let{filterParams:m}=d.getColDef();return m&&["caseSensitive","includeBlanksInEquals","includeBlanksInLessThan","includeBlanksInGreaterThan"].forEach(R=>{let T=m[R];T&&(r[R]=T)}),this.expressionEvaluatorParams[s]=r,r}getColumnDetails(s){var g,m,b;let r=(g=this.colModel.getColDefCol(s))!=null?g:void 0,d=(b=r?(m=this.dataTypeSvc)==null?void 0:m.getBaseDataType(r):void 0)!=null?b:"text";return{column:r,baseCellDataType:d}}generateExpressionOperators(){let s=(r,d)=>this.translate(r,d);return{text:new f.TextFilterExpressionOperators({translate:s}),boolean:new f.BooleanFilterExpressionOperators({translate:s}),object:new f.TextFilterExpressionOperators({translate:s}),number:new f.ScalarFilterExpressionOperators({translate:s,equals:(r,d)=>r===d}),date:new f.ScalarFilterExpressionOperators({translate:s,equals:(r,d)=>r.getTime()===d.getTime()}),dateString:new f.ScalarFilterExpressionOperators({translate:s,equals:(r,d)=>r.getTime()===d.getTime()})}}getColumnValue({displayValue:s}){return`${D.COL_FILTER_EXPRESSION_START_CHAR}${s}${D.COL_FILTER_EXPRESSION_END_CHAR}`}generateExpressionJoinOperators(){return{AND:this.translate("advancedFilterAnd"),OR:this.translate("advancedFilterOr")}}getActiveOperators(s){var g;let r=(g=s.getColDef().filterParams)==null?void 0:g.filterOptions;return r&&r.every(m=>typeof m=="string")?r:void 0}resetColumnCaches(){this.columnAutocompleteEntries=null,this.columnNameToIdMap={},this.expressionEvaluatorParams={}}}p.AdvancedFilterExpressionService=v},4858:function(x,p,M){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.AdvancedFilterHeaderComp=void 0;let A=M(6624),F=M(2583);class D extends A.Component{wireBeans(v){this.colModel=v.colModel,this.focusSvc=v.focusSvc,this.ctrlsSvc=v.ctrlsSvc}constructor(v){super(`
            <div class="ag-advanced-filter-header" role="row">
            </div>`),this.enabled=v}postConstruct(){this.setupAdvancedFilter(this.enabled),this.addDestroyFunc(()=>this.destroyBean(this.eAdvancedFilter));let v=()=>{this.enabled&&this.setEnabledHeight()};this.addManagedEventListeners({gridColumnsChanged:()=>this.onGridColumnsChanged(),columnHeaderHeightChanged:v,gridStylesChanged:v}),this.addManagedPropertyListener("headerHeight",v),this.addManagedPropertyListener("floatingFiltersHeight",v),this.addGuiEventListener("keydown",u=>this.onKeyDown(u)),this.addGuiEventListener("focusout",u=>{this.getFocusableElement().contains(u.relatedTarget)||this.focusSvc.clearAdvancedFilterColumn()})}getFocusableElement(){var v,u;return(u=(v=this.eAdvancedFilter)==null?void 0:v.getGui())!=null?u:this.getGui()}setEnabled(v){v!==this.enabled&&this.setupAdvancedFilter(v)}refresh(){var v;(v=this.eAdvancedFilter)==null||v.refresh()}getHeight(){return this.height}setInputDisabled(v){var u;(u=this.eAdvancedFilter)==null||u.setInputDisabled(v)}setupAdvancedFilter(v){let u=this.getGui();if(v){this.eAdvancedFilter=this.createBean(new F.AdvancedFilterComp);let s=this.eAdvancedFilter.getGui();this.eAdvancedFilter.addCssClass("ag-advanced-filter-header-cell"),this.setEnabledHeight(),this.setAriaRowIndex(),(0,A._setAriaRole)(s,"gridcell"),(0,A._setAriaColIndex)(s,1),this.setAriaColumnCount(s),u.appendChild(s)}else(0,A._clearElement)(u),this.destroyBean(this.eAdvancedFilter),this.height=0;(0,A._setDisplayed)(u,v),this.enabled=v}setEnabledHeight(){let v=this.getGui();this.height=(0,A._getFloatingFiltersHeight)(this.beans);let u=`${this.height}px`;v.style.height=u,v.style.minHeight=u}setAriaColumnCount(v){(0,A._setAriaColSpan)(v,this.colModel.getCols().length)}setAriaRowIndex(){var v,u;(0,A._setAriaRowIndex)(this.getGui(),(u=(v=this.ctrlsSvc.getHeaderRowContainerCtrl())==null?void 0:v.getRowCount())!=null?u:0)}onGridColumnsChanged(){this.eAdvancedFilter&&(this.setAriaColumnCount(this.eAdvancedFilter.getGui()),this.setAriaRowIndex())}onKeyDown(v){switch(v.key){case A.KeyCode.ENTER:{this.hasFocus()&&(0,A._focusInto)(this.getFocusableElement())&&v.preventDefault();break}case A.KeyCode.ESCAPE:this.hasFocus()||this.getFocusableElement().focus();break;case A.KeyCode.UP:this.navigateUpDown(!0,v);break;case A.KeyCode.DOWN:this.navigateUpDown(!1,v);break;case A.KeyCode.TAB:if(this.hasFocus())this.navigateLeftRight(v);else{let u=(0,A._findNextFocusableElement)(this.beans,this.getFocusableElement(),null,v.shiftKey);u?(v.preventDefault(),u.focus()):this.navigateLeftRight(v)}break}}navigateUpDown(v,u){this.hasFocus()&&this.focusSvc.focusNextFromAdvancedFilter(v)&&u.preventDefault()}navigateLeftRight(v){(v.shiftKey?this.focusSvc.focusLastHeader():this.focusSvc.focusNextFromAdvancedFilter(!1,!0))&&v.preventDefault()}hasFocus(){return(0,A._getActiveDomElement)(this.beans)===this.getFocusableElement()}}p.AdvancedFilterHeaderComp=D},8397:function(x,p){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.ADVANCED_FILTER_LOCALE_TEXT=void 0,p.ADVANCED_FILTER_LOCALE_TEXT={ariaAdvancedFilterBuilderItem:M=>`${M[0]}. Level ${M[1]}. Press ENTER to edit`,ariaAdvancedFilterBuilderItemValidation:M=>`${M[0]}. Level ${M[1]}. ${M[2]} Press ENTER to edit`,ariaAdvancedFilterBuilderList:"Advanced Filter Builder List",ariaAdvancedFilterBuilderFilterItem:"Filter Condition",ariaAdvancedFilterBuilderGroupItem:"Filter Group",ariaAdvancedFilterBuilderColumn:"Column",ariaAdvancedFilterBuilderOption:"Option",ariaAdvancedFilterBuilderValue:"Value",ariaAdvancedFilterBuilderJoinOperator:"Join Operator",ariaAdvancedFilterInput:"Advanced Filter Input",ariaLabelAdvancedFilterAutocomplete:"Advanced Filter Autocomplete",advancedFilterContains:"contains",advancedFilterNotContains:"does not contain",advancedFilterTextEquals:"equals",advancedFilterTextNotEqual:"does not equal",advancedFilterStartsWith:"begins with",advancedFilterEndsWith:"ends with",advancedFilterBlank:"is blank",advancedFilterNotBlank:"is not blank",advancedFilterEquals:"=",advancedFilterNotEqual:"!=",advancedFilterGreaterThan:">",advancedFilterGreaterThanOrEqual:">=",advancedFilterLessThan:"<",advancedFilterLessThanOrEqual:"<=",advancedFilterTrue:"is true",advancedFilterFalse:"is false",advancedFilterAnd:"AND",advancedFilterOr:"OR",advancedFilterApply:"Apply",advancedFilterBuilder:"Builder",advancedFilterValidationMissingColumn:"Column is missing",advancedFilterValidationMissingOption:"Option is missing",advancedFilterValidationMissingValue:"Value is missing",advancedFilterValidationInvalidColumn:"Column not found",advancedFilterValidationInvalidOption:"Option not found",advancedFilterValidationMissingQuote:"Value is missing an end quote",advancedFilterValidationNotANumber:"Value is not a number",advancedFilterValidationInvalidDate:"Value is not a valid date",advancedFilterValidationMissingCondition:"Condition is missing",advancedFilterValidationJoinOperatorMismatch:"Join operators within a condition must be the same",advancedFilterValidationInvalidJoinOperator:"Join operator not found",advancedFilterValidationMissingEndBracket:"Missing end bracket",advancedFilterValidationExtraEndBracket:"Too many end brackets",advancedFilterValidationMessage:M=>`Expression has an error. ${M[0]} - ${M[1]}.`,advancedFilterValidationMessageAtEnd:M=>`Expression has an error. ${M[0]} at end of expression.`,advancedFilterBuilderTitle:"Advanced Filter",advancedFilterBuilderApply:"Apply",advancedFilterBuilderCancel:"Cancel",advancedFilterBuilderAddButtonTooltip:"Add Filter or Group",advancedFilterBuilderRemoveButtonTooltip:"Remove",advancedFilterBuilderMoveUpButtonTooltip:"Move Up",advancedFilterBuilderMoveDownButtonTooltip:"Move Down",advancedFilterBuilderAddJoin:"Add Group",advancedFilterBuilderAddCondition:"Add Filter",advancedFilterBuilderSelectColumn:"Select a column",advancedFilterBuilderSelectOption:"Select an option",advancedFilterBuilderEnterValue:"Enter a value...",advancedFilterBuilderValidationAlreadyApplied:"Current filter already applied.",advancedFilterBuilderValidationIncomplete:"Not all conditions are complete.",advancedFilterBuilderValidationSelectColumn:"Must select a column.",advancedFilterBuilderValidationSelectOption:"Must select an option.",advancedFilterBuilderValidationEnterValue:"Must enter a value."}},7976:function(x,p,M){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.AdvancedFilterModule=void 0;let A=M(6624),F=M(9206),D=M(7205),f=M(5372),v=M(6138),u=M(1723),s=M(3065);p.AdvancedFilterModule={moduleName:"AdvancedFilter",version:D.VERSION,beans:[s.AdvancedFilterService,u.AdvancedFilterExpressionService],icons:{advancedFilterBuilder:"group",advancedFilterBuilderDrag:"grip",advancedFilterBuilderInvalid:"not-allowed",advancedFilterBuilderMoveUp:"up",advancedFilterBuilderMoveDown:"down",advancedFilterBuilderAdd:"plus",advancedFilterBuilderRemove:"minus",advancedFilterBuilderSelectOpen:"small-down",richSelectRemove:"cancel"},apiFunctions:{getAdvancedFilterModel:v.getAdvancedFilterModel,setAdvancedFilterModel:v.setAdvancedFilterModel,showAdvancedFilterBuilder:v.showAdvancedFilterBuilder,hideAdvancedFilterBuilder:v.hideAdvancedFilterBuilder},dependsOn:[F.EnterpriseCoreModule,A._FilterCoreModule,A._SharedDragAndDropModule,A._PopupModule,A._FilterValueModule],css:[f.advancedFilterCSS]}},3065:function(x,p,M){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.AdvancedFilterService=void 0;let A=M(6624),F=M(5865),D=M(4899);class f extends A.BeanStub{constructor(){super(...arguments),this.beanName="advancedFilter",this.appliedExpression=null,this.expression=null,this.isValid=!0}wireBeans(u){this.valueSvc=u.valueSvc,this.colModel=u.colModel,this.dataTypeSvc=u.dataTypeSvc,this.advFilterExpSvc=u.advFilterExpSvc,this.filterValueSvc=u.filterValueSvc}postConstruct(){this.setEnabled(this.gos.get("enableAdvancedFilter"),!0),this.ctrl=this.createManagedBean(new F.AdvancedFilterCtrl(this.enabled)),this.expressionProxy={getValue:(u,s)=>{let r=this.colModel.getColDefCol(u);return r?this.filterValueSvc.getValue(r,s):void 0}},this.addManagedPropertyListener("enableAdvancedFilter",u=>this.setEnabled(!!u.currentValue)),this.addManagedEventListeners({newColumnsLoaded:u=>this.onNewColumnsLoaded(u)}),this.addManagedPropertyListener("includeHiddenColumnsInAdvancedFilter",()=>this.updateValidity())}isEnabled(){return this.enabled}isFilterPresent(){return!!this.expressionFunction}doesFilterPass(u){return this.expressionFunction(this.expressionProxy,u,this.expressionParams)}getModel(){var s;let u=this.createExpressionParser(this.appliedExpression);return u==null||u.parseExpression(),(s=u==null?void 0:u.getModel())!=null?s:null}setModel(u){let s=(d,g)=>{if(d.filterType==="join"){let m=this.advFilterExpSvc.parseJoinOperator(d),b=d.conditions.map(w=>s(w)).filter(w=>(0,A._exists)(w)).join(` ${m} `);return g||d.conditions.length<=1?b:`(${b})`}else return this.advFilterExpSvc.parseColumnFilterModel(d)},r=u?s(u,!0):null;this.setExpressionDisplayValue(r),this.applyExpression(),this.ctrl.refreshComp(),this.ctrl.refreshBuilderComp()}getExpressionDisplayValue(){return this.expression}setExpressionDisplayValue(u){this.expression=u}isCurrentExpressionApplied(){return this.appliedExpression===this.expression}createExpressionParser(u){return u?new D.FilterExpressionParser({expression:u,colModel:this.colModel,dataTypeSvc:this.dataTypeSvc,valueSvc:this.valueSvc,advFilterExpSvc:this.advFilterExpSvc}):null}getDefaultExpression(u){let s=this.advFilterExpSvc.getColumnValue(u)+" ";return{updatedValue:s,updatedPosition:s.length}}isHeaderActive(){return!this.gos.get("advancedFilterParent")}getCtrl(){return this.ctrl}setEnabled(u,s){let r=this.enabled,d=(0,A._isClientSideRowModel)(this.gos)||(0,A._isServerSideRowModel)(this.gos);u&&!d&&(0,A._warn)(123),this.enabled=u&&d,!s&&this.enabled!==r&&this.eventSvc.dispatchEvent({type:"advancedFilterEnabledChanged",enabled:this.enabled})}applyExpression(){let u=this.createExpressionParser(this.expression);u==null||u.parseExpression(),this.applyExpressionFromParser(u)}applyExpressionFromParser(u){if(this.isValid=!u||u.isValid(),!u||!this.isValid){this.expressionFunction=null,this.expressionParams=null,this.appliedExpression=null;return}let{expressionFunction:s,params:r}=this.getFunction(u);this.expressionFunction=s,this.expressionParams=r,this.appliedExpression=this.expression}getFunction(u){if(this.gos.get("suppressAdvancedFilterEval"))return u.getFunctionParsed();{let{functionString:s,params:r}=u.getFunctionString();return{expressionFunction:new Function("expressionProxy","node","params",s),params:r}}}updateValidity(){this.advFilterExpSvc.resetColumnCaches();let u=this.createExpressionParser(this.expression);u==null||u.parseExpression();let r=(!u||u.isValid())!==this.isValid;return this.applyExpressionFromParser(u),this.ctrl.refreshComp(),this.ctrl.refreshBuilderComp(),r}onNewColumnsLoaded(u){var r;if(u.source!=="gridInitializing"||!((r=this.dataTypeSvc)!=null&&r.isPendingInference))return;this.ctrl.setInputDisabled(!0);let[s]=this.addManagedEventListeners({dataTypesInferred:()=>{s==null||s(),this.ctrl.setInputDisabled(!1)}})}}p.AdvancedFilterService=f},9546:function(x,p){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.agAutocompleteCSS=void 0,p.agAutocompleteCSS=".ag-autocomplete{align-items:center;display:flex;width:100%;>*{flex:1 1 auto}}.ag-autocomplete-list-popup{background-color:var(--ag-background-color);border-radius:var(--ag-border-radius);box-shadow:var(--ag-dropdown-shadow);padding:0;position:absolute;-webkit-user-select:none;-moz-user-select:none;user-select:none}.ag-autocomplete-list{height:calc(var(--ag-row-height)*6.5);min-width:200px;position:relative;width:100%}.ag-autocomplete-virtual-list-item{cursor:default;display:flex;height:var(--ag-list-item-height);&:focus-visible:after{content:none}&:hover{background-color:var(--ag-row-hover-color)}}.ag-autocomplete-row{align-items:center;display:flex;flex:1 1 auto;overflow:hidden}.ag-autocomplete-row-label{margin:0 var(--ag-widget-container-horizontal-padding);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ag-autocomplete-row-selected{background-color:var(--ag-selected-row-background-color)}"},2611:function(x,p,M){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.AgAutocompleteSelector=p.AgAutocomplete=void 0;let A=M(6624),F=M(9546),D=M(3359);class f extends A.Component{wireBeans(u){this.popupSvc=u.popupSvc}constructor(){super(`
            <div class="ag-autocomplete" role="presentation">
                <ag-input-text-field data-ref="eAutocompleteInput"></ag-input-text-field>
            </div>`,[A.AgInputTextFieldSelector]),this.eAutocompleteInput=A.RefPlaceholder,this.isListOpen=!1,this.lastPosition=0,this.valid=!0,this.registerCSS(F.agAutocompleteCSS)}postConstruct(){this.eAutocompleteInput.onValueChange(u=>this.onValueChanged(u)),this.eAutocompleteInput.getInputElement().setAttribute("autocomplete","off"),this.addGuiEventListener("keydown",this.onKeyDown.bind(this)),this.addGuiEventListener("click",this.updatePositionAndList.bind(this)),this.addDestroyFunc(()=>{this.destroyBean(this.autocompleteList)}),this.addGuiEventListener("focusout",()=>this.onFocusOut())}onValueChanged(u){let s=(0,A._makeNull)(u);this.updateValue(s),this.updateAutocompleteList(s)}updateValue(u){this.updateLastPosition(),this.dispatchLocalEvent({type:"eventValueChanged",value:u}),this.validate(u)}updateAutocompleteList(u){var d,g,m;let s=(g=(d=this.listGenerator)==null?void 0:d.call(this,u,this.lastPosition))!=null?g:{enabled:!1},r=this.isListOpen;if((!s.type||s.type!==((m=this.autocompleteListParams)==null?void 0:m.type))&&r&&this.closeList(),this.autocompleteListParams=s,s!=null&&s.enabled){r||this.openList();let{searchString:b}=s;this.autocompleteList.setSearch(b!=null?b:"")}else r&&this.closeList()}onKeyDown(u){let s=u.key;switch(this.updateLastPosition(),s){case A.KeyCode.ENTER:this.onEnterKeyDown(u);break;case A.KeyCode.TAB:this.onTabKeyDown(u);break;case A.KeyCode.DOWN:case A.KeyCode.UP:this.onUpDownKeyDown(u,s);break;case A.KeyCode.LEFT:case A.KeyCode.RIGHT:case A.KeyCode.PAGE_HOME:case A.KeyCode.PAGE_END:setTimeout(()=>{this.updatePositionAndList()});break;case A.KeyCode.ESCAPE:this.onEscapeKeyDown(u);break;case A.KeyCode.SPACE:u.ctrlKey&&!this.isListOpen&&(u.preventDefault(),this.forceOpenList());break}}confirmSelection(){var s;let u=(s=this.autocompleteList)==null?void 0:s.getSelectedValue();u&&(this.closeList(),this.dispatchLocalEvent({type:"eventOptionSelected",value:this.getValue(),position:this.lastPosition,updateEntry:u,autocompleteType:this.autocompleteListParams.type}))}onTabKeyDown(u){this.isListOpen&&(u.preventDefault(),u.stopPropagation(),this.confirmSelection())}onEnterKeyDown(u){u.preventDefault(),this.isListOpen?this.confirmSelection():this.onCompleted()}onUpDownKeyDown(u,s){var r;u.preventDefault(),this.isListOpen?(r=this.autocompleteList)==null||r.onNavigationKeyDown(u,s):this.forceOpenList()}onEscapeKeyDown(u){this.isListOpen&&(u.preventDefault(),u.stopPropagation(),this.closeList(),this.setCaret(this.lastPosition,!0))}onFocusOut(){this.isListOpen&&this.closeList()}updatePositionAndList(){var u;this.updateLastPosition(),this.updateAutocompleteList((u=this.eAutocompleteInput.getValue())!=null?u:null)}setCaret(u,s){s&&(0,A._isNothingFocused)(this.beans)&&this.eAutocompleteInput.getFocusableElement().focus();let r=this.eAutocompleteInput.getInputElement();r.setSelectionRange(u,u),u===r.value.length&&(r.scrollLeft=r.scrollWidth)}forceOpenList(){this.onValueChanged(this.eAutocompleteInput.getValue())}updateLastPosition(){var u;this.lastPosition=(u=this.eAutocompleteInput.getInputElement().selectionStart)!=null?u:0}validate(u){if(!this.validator)return;let s=this.validationMessage=this.validator(u);this.eAutocompleteInput.getInputElement().setCustomValidity(s!=null?s:""),this.valid=!s,this.dispatchLocalEvent({type:"eventValidChanged",isValid:this.valid,validationMessage:s})}openList(){this.isListOpen=!0,this.autocompleteList=this.createBean(new D.AgAutocompleteList({autocompleteEntries:this.autocompleteListParams.entries,onConfirmed:()=>this.confirmSelection(),forceLastSelection:this.forceLastSelection}));let u=this.autocompleteList.getGui(),s={ePopup:u,type:"autocomplete",eventSource:this.getGui(),position:"under",alignSide:this.gos.get("enableRtl")?"right":"left",keepWithinBounds:!0},r=this.popupSvc.addPopup({eChild:u,anchorToElement:this.getGui(),positionCallback:()=>this.popupSvc.positionPopupByComponent(s),ariaLabel:this.listAriaLabel});this.hidePopup=r.hideFunc,this.autocompleteList.afterGuiAttached()}closeList(){this.isListOpen=!1,this.hidePopup(),this.destroyBean(this.autocompleteList),this.autocompleteList=null}onCompleted(){this.isListOpen&&this.closeList(),this.dispatchLocalEvent({type:"eventValueConfirmed",value:this.getValue(),isValid:this.isValid()})}getValue(){return(0,A._makeNull)(this.eAutocompleteInput.getValue())}setInputPlaceholder(u){return this.eAutocompleteInput.setInputPlaceholder(u),this}setInputAriaLabel(u){return this.eAutocompleteInput.setInputAriaLabel(u),this}setListAriaLabel(u){return this.listAriaLabel=u,this}setListGenerator(u){return this.listGenerator=u,this}setValidator(u){return this.validator=u,this}isValid(){return this.valid}setValue(u){let{value:s,position:r,silent:d,updateListOnlyIfOpen:g,restoreFocus:m}=u;this.eAutocompleteInput.setValue(s,!0),this.setCaret(r!=null?r:this.lastPosition,m),d||this.updateValue(s),(!g||this.isListOpen)&&this.updateAutocompleteList(s)}setForceLastSelection(u){return this.forceLastSelection=u,this}setInputDisabled(u){return this.eAutocompleteInput.setDisabled(u),this}}p.AgAutocomplete=f,p.AgAutocompleteSelector={selector:"AG-AUTOCOMPLETE",component:f}},3359:function(x,p,M){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.AgAutocompleteList=void 0;let A=M(6624),F=M(7904),D=M(9087);class f extends A.PopupComponent{constructor(u){super(`<div class="ag-autocomplete-list-popup">
            <div data-ref="eList" class="ag-autocomplete-list"></div>
        <div>`),this.params=u,this.eList=A.RefPlaceholder,this.searchString=""}postConstruct(){this.autocompleteEntries=this.params.autocompleteEntries,this.virtualList=this.createManagedBean(new F.VirtualList({cssIdentifier:"autocomplete"})),this.virtualList.setComponentCreator(this.createRowComponent.bind(this)),this.eList.appendChild(this.virtualList.getGui()),this.virtualList.setModel({getRowCount:()=>this.autocompleteEntries.length,getRow:s=>this.autocompleteEntries[s]});let u=this.virtualList.getGui();this.addManagedListeners(u,{click:()=>this.params.onConfirmed(),mousemove:this.onMouseMove.bind(this),mousedown:s=>s.preventDefault()}),this.setSelectedValue(0)}onNavigationKeyDown(u,s){u.preventDefault();let r=this.autocompleteEntries.indexOf(this.selectedValue),d=s===A.KeyCode.UP?r-1:r+1;this.checkSetSelectedValue(d)}setSearch(u){this.searchString=u,(0,A._exists)(u)?this.runSearch():(this.autocompleteEntries=this.params.autocompleteEntries,this.virtualList.refresh(),this.checkSetSelectedValue(0)),this.updateSearchInList()}runContainsSearch(u,s){let r,d=!1,g=u.toLocaleLowerCase(),m=s.filter(b=>{let k=b.toLocaleLowerCase().indexOf(g),R=k===0,T=k>=0;return T&&(!r||!d&&R||d===R&&b.length<r.length)&&(r=b,d=R),T});return!r&&m.length&&(r=m[0]),{topMatch:r,allMatches:m}}runSearch(){let{autocompleteEntries:u,useFuzzySearch:s,forceLastSelection:r}=this.params,d=u.map(k=>{var R;return(R=k.displayValue)!=null?R:k.key}),g,m;if(s)g=(0,A._fuzzySuggestions)({inputValue:this.searchString,allSuggestions:d,hideIrrelevant:!0,addSequentialWeight:!0}).values,m=g.length?g[0]:void 0;else{let k=this.runContainsSearch(this.searchString,d);g=k.allMatches,m=k.topMatch}let b=u.filter(({key:k,displayValue:R})=>g.includes(R!=null?R:k));if(!b.length&&this.selectedValue&&(r!=null&&r(this.selectedValue,this.searchString))&&(b=[this.selectedValue]),this.autocompleteEntries=b,this.virtualList.refresh(),!m)return;let w=g.indexOf(m);this.checkSetSelectedValue(w)}updateSearchInList(){this.virtualList.forEachRenderedRow(u=>u.setSearchString(this.searchString))}checkSetSelectedValue(u){u>=0&&u<this.autocompleteEntries.length&&this.setSelectedValue(u)}setSelectedValue(u){let s=this.autocompleteEntries[u];this.selectedValue!==s&&(this.selectedValue=s,this.virtualList.ensureIndexVisible(u),this.virtualList.forEachRenderedRow((r,d)=>{r.updateSelected(u===d)}))}createRowComponent(u){var r;let s=new D.AgAutocompleteRow;return this.createBean(s),s.setState((r=u.displayValue)!=null?r:u.key,u===this.selectedValue),s}onMouseMove(u){let s=this.virtualList,r=s.getGui().getBoundingClientRect(),d=s.getScrollTop(),g=u.clientY-r.top+d,m=Math.floor(g/s.getRowHeight());this.checkSetSelectedValue(m)}afterGuiAttached(){this.virtualList.refresh()}getSelectedValue(){var u;return this.autocompleteEntries.length&&(u=this.selectedValue)!=null?u:null}}p.AgAutocompleteList=f},9087:function(x,p,M){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.AgAutocompleteRow=void 0;let A=M(6624);class F extends A.Component{constructor(){super(`
        <div class="ag-autocomplete-row" role="presentation">
            <div class="ag-autocomplete-row-label"></div>
        </div>`),this.hasHighlighting=!1}setState(f,v){this.value=f,this.render(),this.updateSelected(v)}updateSelected(f){this.addOrRemoveCssClass("ag-autocomplete-row-selected",f)}setSearchString(f){var u;let v=!1;if((0,A._exists)(f)){let s=(u=this.value)==null?void 0:u.toLocaleLowerCase().indexOf(f.toLocaleLowerCase());if(s>=0){v=!0,this.hasHighlighting=!0;let r=s+f.length,d=(0,A._escapeString)(this.value.slice(0,s)),g=(0,A._escapeString)(this.value.slice(s,r)),m=(0,A._escapeString)(this.value.slice(r));this.getGui().lastElementChild.innerHTML=`${d}<b>${g}</b>${m}`}}!v&&this.hasHighlighting&&(this.hasHighlighting=!1,this.render())}render(){var f;this.getGui().lastElementChild.innerHTML=(f=(0,A._escapeString)(this.value))!=null?f:"&nbsp;"}}p.AgAutocompleteRow=F},5219:function(x,p,M){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.AddDropdownComp=void 0;let A=M(6624),F=M(2005);class D extends F.AgRichSelect{constructor(v){super(et(pe({},v),{template:`
                <div class="ag-picker-field" role="presentation">
                    <div data-ref="eLabel"></div>
                    <div data-ref="eWrapper" class="ag-wrapper ag-picker-collapsed">
                        <div data-ref="eDisplayField" class="ag-picker-field-display"></div>
                        <ag-input-text-field data-ref="eInput" class="ag-rich-select-field-input"></ag-input-text-field>
                        <span data-ref="eDeselect" class="ag-rich-select-deselect-button ag-picker-field-icon" role="presentation"></span>
                        <div data-ref="eIcon" class="ag-picker-field-icon" aria-hidden="true"></div>
                    </div>
                </div>`,agComponents:[A.AgInputTextFieldSelector]})),this.params=v}showPicker(){setTimeout(()=>super.showPicker())}hidePicker(){setTimeout(()=>super.hidePicker())}postConstruct(){super.postConstruct();let{wrapperClassName:v,ariaLabel:u}=this.params;(0,A._setDisplayed)(this.eDisplayField,!1),v&&this.eWrapper.classList.add(v),(0,A._setAriaLabelledBy)(this.eWrapper,""),(0,A._setAriaLabel)(this.eWrapper,u)}onEnterKeyDown(v){(0,A._stopPropagationForAgGrid)(v),this.isPickerDisplayed?super.onEnterKeyDown(v):(v.preventDefault(),this.showPicker())}}p.AddDropdownComp=D},8986:function(x,p,M){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.AdvancedFilterBuilderComp=void 0;let A=M(6624),F=M(7904),D=M(2865),f=M(2172),v=M(9889);class u extends A.Component{wireBeans(r){this.filterManager=r.filterManager,this.advancedFilter=r.advancedFilter,this.advFilterExpSvc=r.advFilterExpSvc,this.registry=r.registry}constructor(){super(`
            <div role="presentation" class="ag-advanced-filter-builder" tabindex="-1">
                <div role="presentation" class="ag-advanced-filter-builder-list" data-ref="eList"></div>
                <div role="presentation" class="ag-advanced-filter-builder-button-panel">
                    <button class="ag-button ag-standard-button ag-advanced-filter-builder-apply-button" data-ref="eApplyFilterButton"></button>
                    <button class="ag-button ag-standard-button ag-advanced-filter-builder-cancel-button" data-ref="eCancelFilterButton"></button>
                </div>
            </div>`),this.eList=A.RefPlaceholder,this.eApplyFilterButton=A.RefPlaceholder,this.eCancelFilterButton=A.RefPlaceholder,this.validationMessage=null}postConstruct(){var d;let{showMoveButtons:r}=(d=this.gos.get("advancedFilterBuilderParams"))!=null?d:{};this.showMove=!!r,this.addManagedPropertyListener("advancedFilterBuilderParams",({currentValue:g})=>{this.showMove=!!(g!=null&&g.showMoveButtons),this.refreshList(!1)}),this.filterModel=this.setupFilterModel(),this.setupVirtualList(),this.dragFeature=this.createManagedBean(new D.AdvancedFilterBuilderDragFeature(this,this.virtualList)),this.setupButtons()}refresh(){let r=this.virtualList,d=r.getLastFocusedRow();this.setupFilterModel(),this.validateItems(),this.refreshList(!1),d!=null&&(r.getComponentAt(d)||(d=0),r.focusRow(d))}getNumItems(){return this.items.length}moveItem(r,d){!d||!r||this.moveItemToIndex(r,d.rowIndex,d.position)}afterGuiAttached(){this.virtualList.awaitStable(()=>this.virtualList.focusRow(0))}setupVirtualList(){let r=this.virtualList=this.createManagedBean(new F.VirtualList({cssIdentifier:"advanced-filter-builder",ariaRole:"tree",listName:this.advFilterExpSvc.translate("ariaAdvancedFilterBuilderList")}));r.setComponentCreator(this.createItemComponent.bind(this)),r.setComponentUpdater(this.updateItemComponent.bind(this)),r.setRowHeight(40),this.eList.appendChild(r.getGui()),r.setModel({getRowCount:()=>this.items.length,getRow:d=>this.items[d],areRowsEqual:(d,g)=>d===g}),this.buildList(),r.refresh()}setupButtons(){this.eApplyFilterButton.innerText=this.advFilterExpSvc.translate("advancedFilterBuilderApply"),this.activateTabIndex([this.eApplyFilterButton]),this.addManagedElementListeners(this.eApplyFilterButton,{click:()=>{var d;this.advancedFilter.setModel(this.filterModel),(d=this.filterManager)==null||d.onFilterChanged({source:"advancedFilter"}),this.close()}}),this.validationTooltipFeature=this.createOptionalManagedBean(this.registry.createDynamicBean("tooltipFeature",!1,{getGui:()=>this.eApplyFilterButton,getLocation:()=>"advancedFilter",getTooltipValue:()=>this.validationMessage,getTooltipShowDelayOverride:()=>1e3})),this.validate();let r=d=>this.addOrRemoveCssClass("ag-advanced-filter-builder-validation",d);this.addManagedListeners(this.eApplyFilterButton,{mouseenter:()=>r(!0),mouseleave:()=>r(!1)}),this.eCancelFilterButton.innerText=this.advFilterExpSvc.translate("advancedFilterBuilderCancel"),this.activateTabIndex([this.eCancelFilterButton]),this.addManagedElementListeners(this.eCancelFilterButton,{click:()=>this.close()})}removeItemFromParent(r){let d=r.parent.conditions.indexOf(r.filterModel);return r.parent.conditions.splice(d,1),d}moveItemToIndex(r,d,g){var R;let m=this.items[d],b=((R=m.filterModel)==null?void 0:R.filterType)==="join"&&g==="bottom",w=b?m.filterModel:m.parent;if(!w||this.isChildOrSelf(w,r.filterModel)||m===r)return;this.removeItemFromParent(r);let k;b?k=0:(k=w.conditions.indexOf(m.filterModel),k===-1?k=w.conditions.length:g==="bottom"&&(k+=1)),w.conditions.splice(k,0,r.filterModel),this.refreshList(!1)}isChildOrSelf(r,d){return r===d||d.filterType==="join"&&d.conditions.some(g=>this.isChildOrSelf(r,g))}setupFilterModel(){let r=this.formatFilterModel(this.advancedFilter.getModel());return this.stringifiedModel=JSON.stringify(r),r}formatFilterModel(r){return r=r!=null?r:{filterType:"join",type:"AND",conditions:[]},r.filterType!=="join"&&(r={filterType:"join",type:"AND",conditions:[r]}),r}buildList(){let r=(d,g,m,b)=>{g.push({filterModel:d,level:m,parent:b,valid:!0,showMove:this.showMove}),d.filterType==="join"&&(d.conditions.forEach(w=>r(w,g,m+1,d)),m===0&&g.push({filterModel:null,level:m+1,parent:d,valid:!0}))};this.items=[],r(this.filterModel,this.items,0)}refreshList(r){if(!r){let d=[];this.items.forEach(g=>{g.valid||d.push(g.filterModel)}),this.buildList(),d.length&&this.items.forEach(g=>{g.filterModel&&d.includes(g.filterModel)&&(g.valid=!1)})}this.virtualList.refresh(r),this.validate()}updateItemComponent(r,d){let g=this.items.indexOf(r),m=(R,T)=>{let z=this.items.find(U=>U.filterModel===R),G=z==null?void 0:z.parent;if(G){let{conditions:U}=G;m(G,T),T.push(U[U.length-1]===R)}},b=[],{filterModel:w}=r;w&&(m(w,b),b[0]=!1);let k=(w==null?void 0:w.filterType)==="join"&&!!w.conditions.length;d.setState({disableMoveUp:g===1,disableMoveDown:!this.canMoveDown(r,g),treeLines:b,showStartTreeLine:k})}createItemComponent(r,d){let g=this.createBean(r.filterModel?new v.AdvancedFilterBuilderItemComp(r,this.dragFeature,d):new f.AdvancedFilterBuilderItemAddComp(r,d));return g.addManagedListeners(g,{advancedFilterBuilderRemoved:({item:m})=>this.removeItem(m),advancedFilterBuilderValueChanged:()=>this.validate(),advancedFilterBuilderAdded:({item:m,isJoin:b})=>this.addItem(m,b),advancedFilterBuilderMoved:({item:m,backwards:b})=>this.moveItemUpDown(m,b)}),g instanceof v.AdvancedFilterBuilderItemComp&&this.updateItemComponent(r,g),g}addItem(r,d){var U;let{parent:g,level:m,filterModel:b}=r,w=(b==null?void 0:b.filterType)==="join",k=d?{filterType:"join",type:"AND",conditions:[]}:{},R=w?b:g,T=w?0:R.conditions.indexOf(b);T>=0?(w||(T+=1),R.conditions.splice(T,0,k)):R.conditions.push(k);let z=this.items.indexOf(r),G=z>=0;if(G){r.filterModel&&z++;let X=[{filterModel:k,level:w?m+1:m,parent:R,valid:d,showMove:this.showMove}];this.items.splice(z,0,...X)}this.refreshList(G),G&&((U=this.virtualList.getComponentAt(z))==null||U.afterAdd())}removeItem(r){var R;let d=r.parent,{filterModel:g}=r,m=d.conditions.indexOf(g);d.conditions.splice(m,1);let b=((R=r.filterModel)==null?void 0:R.filterType)==="join",w=this.items.indexOf(r),k=!b&&w>=0;k&&this.items.splice(w,1),this.refreshList(k),w>=0&&this.virtualList.focusRow(w)}moveItemUpDown(r,d){let g=this.items.indexOf(r),m=d?g-1:g+1;if(m===0||!d&&!this.canMoveDown(r,g))return;let b=this.items[m],w=this.removeItemFromParent(r),{level:k,filterModel:R,parent:T}=r,{level:z,filterModel:G,parent:U}=b;if(d)if(z===k&&G.filterType==="join")G.conditions.push(R);else if(z<=k){let Q=U.conditions.indexOf(G);U.conditions.splice(Q,0,R)}else T.conditions[w-1].conditions.push(R);else if(z===k)if(G.filterType==="join")G.conditions.splice(0,0,R);else{let Q=U.conditions.indexOf(G);U.conditions.splice(Q+1,0,R)}else if(w<T.conditions.length)T.conditions.splice(w+1,0,R);else{let Q=this.items.find(le=>le.filterModel===T),oe=Q.parent.conditions.indexOf(Q.filterModel)+1;Q.parent.conditions.splice(oe,0,R)}this.refreshList(!1);let X=this.items.findIndex(({filterModel:Q})=>Q===R);if(X>=0){let Q=this.virtualList.getComponentAt(X);Q instanceof v.AdvancedFilterBuilderItemComp&&Q.focusMoveButton(d)}}canMoveDown(r,d){return!(r.level===1&&d===this.items.length-2||r.level===1&&r.parent.conditions[r.parent.conditions.length-1]===r.filterModel)}close(){this.advancedFilter.getCtrl().toggleFilterBuilder({source:"ui"})}validate(){var d;let r=!this.items.every(({valid:g})=>g);r?this.validationMessage=this.advFilterExpSvc.translate("advancedFilterBuilderValidationIncomplete"):(r=JSON.stringify(this.filterModel)===this.stringifiedModel,r?this.validationMessage=this.advFilterExpSvc.translate("advancedFilterBuilderValidationAlreadyApplied"):this.validationMessage=null),(0,A._setDisabled)(this.eApplyFilterButton,r),(d=this.validationTooltipFeature)==null||d.refreshTooltip()}validateItems(){let r=g=>{g.type=void 0},d=g=>{delete g.filter};this.items.forEach(g=>{if(!g.valid||!g.filterModel||g.filterModel.filterType==="join")return;let{filterModel:m}=g,{colId:b}=m,w=this.advFilterExpSvc.getColumnAutocompleteEntries().find(({key:z})=>z===b),k=this.advFilterExpSvc.getColumnDetails(m.colId);if(!w||!k.column){g.valid=!1,m.colId=void 0,r(m),d(m);return}let T=this.advFilterExpSvc.getDataTypeExpressionOperator(k.baseCellDataType).operators[m.type];if(!T){g.valid=!1,r(m),d(m);return}if(T.numOperands>0&&!(0,A._exists)(m.filter)){g.valid=!1;return}})}}p.AdvancedFilterBuilderComp=u},2865:function(x,p,M){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.AdvancedFilterBuilderDragFeature=void 0;let A=M(6624),F=M(5760);class D extends A.BeanStub{constructor(v,u){super(),this.comp=v,this.virtualList=u}postConstruct(){this.createManagedBean(new F.VirtualListDragFeature(this.comp,this.virtualList,{dragSourceType:A.DragSourceType.AdvancedFilterBuilder,listItemDragStartEvent:"advancedFilterBuilderDragStarted",listItemDragEndEvent:"advancedFilterBuilderDragEnded",eventSource:this,getCurrentDragValue:v=>this.getCurrentDragValue(v),isMoveBlocked:()=>!1,getNumRows:v=>v.getNumItems(),moveItem:(v,u)=>this.moveItem(v,u)}))}getCurrentDragValue(v){return v.item}moveItem(v,u){this.comp.moveItem(v,u)}}p.AdvancedFilterBuilderDragFeature=D},2172:function(x,p,M){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.AdvancedFilterBuilderItemAddComp=void 0;let A=M(6624),F=M(5219),D=M(1748),f=M(6608);class v extends A.Component{wireBeans(s){this.advFilterExpSvc=s.advFilterExpSvc,this.registry=s.registry}constructor(s,r){super(`
            <div class="ag-advanced-filter-builder-item-wrapper" role="presentation">
                <div data-ref="eItem" class="ag-advanced-filter-builder-item" role="presentation">
                    <div class="ag-advanced-filter-builder-item-tree-lines" aria-hidden="true">
                        <div class="ag-advanced-filter-builder-item-tree-line-vertical-top ag-advanced-filter-builder-item-tree-line-horizontal"></div>
                    </div>
                </div>
            </div>
        `),this.item=s,this.focusWrapper=r,this.eItem=A.RefPlaceholder}postConstruct(){var d;(0,A._setAriaLevel)(this.focusWrapper,2);let s=(0,f.getAdvancedFilterBuilderAddButtonParams)(g=>this.advFilterExpSvc.translate(g),(d=this.gos.get("advancedFilterBuilderParams"))==null?void 0:d.addSelectWidth),r=this.createManagedBean(new F.AddDropdownComp(s));this.addManagedListeners(r,{fieldPickerValueSelected:({value:g})=>{this.dispatchLocalEvent({type:"advancedFilterBuilderAdded",item:this.item,isJoin:g.key==="join"})}}),this.eItem.appendChild(r.getGui()),this.createOptionalManagedBean(this.registry.createDynamicBean("tooltipFeature",!1,{getGui:()=>r.getGui(),getLocation:()=>"advancedFilter",getTooltipValue:()=>this.advFilterExpSvc.translate("advancedFilterBuilderAddButtonTooltip")})),this.createManagedBean(new D.AdvancedFilterBuilderItemNavigationFeature(this.getGui(),this.focusWrapper,r)),(0,A._setAriaLabel)(this.focusWrapper,this.advFilterExpSvc.translate("ariaAdvancedFilterBuilderItem",[this.advFilterExpSvc.translate("advancedFilterBuilderAddButtonTooltip"),`${this.item.level+1}`]))}afterAdd(){}}p.AdvancedFilterBuilderItemAddComp=v},9889:function(x,p,M){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.AdvancedFilterBuilderItemComp=void 0;let A=M(6624),F=M(5219),D=M(1748),f=M(6608),v=M(6106),u=M(4042),s=M(1395),r=M(3036);class d extends A.TabGuardComp{wireBeans(m){this.dragAndDrop=m.dragAndDrop,this.advFilterExpSvc=m.advFilterExpSvc,this.registry=m.registry}constructor(m,b,w){super(`
            <div class="ag-advanced-filter-builder-item-wrapper" role="presentation">
                <div class="ag-advanced-filter-builder-item" role="presentation">
                    <div data-ref="eTreeLines" class="ag-advanced-filter-builder-item-tree-lines" aria-hidden="true"></div>
                    <span data-ref="eDragHandle" class="ag-drag-handle" aria-hidden="true"></span>
                    <span data-ref="eValidation" class="ag-advanced-filter-builder-item-button ag-advanced-filter-builder-invalid" aria-hidden="true"></span>
                </div>
                <div data-ref="eButtons" class="ag-advanced-filter-builder-item-buttons">
                    <span data-ref="eMoveUpButton" class="ag-advanced-filter-builder-item-button" role="button"></span>
                    <span data-ref="eMoveDownButton" class="ag-advanced-filter-builder-item-button" role="button"></span>
                    <div data-ref="eAddButton" role="presentation"></div>
                    <span data-ref="eRemoveButton" class="ag-advanced-filter-builder-item-button" role="button"></span>
                </div>
            </div>
        `),this.item=m,this.dragFeature=b,this.focusWrapper=w,this.eTreeLines=A.RefPlaceholder,this.eDragHandle=A.RefPlaceholder,this.eButtons=A.RefPlaceholder,this.eValidation=A.RefPlaceholder,this.eMoveUpButton=A.RefPlaceholder,this.eMoveDownButton=A.RefPlaceholder,this.eAddButton=A.RefPlaceholder,this.eRemoveButton=A.RefPlaceholder,this.moveUpDisabled=!1,this.moveDownDisabled=!1}postConstruct(){let{filterModel:m,level:b,showMove:w}=this.item,k=m.filterType==="join";if(this.ePillWrapper=this.createManagedBean(k?new s.JoinPillWrapperComp:new v.ConditionPillWrapperComp),this.ePillWrapper.init({item:this.item,createPill:R=>this.createPill(R)}),this.eDragHandle.insertAdjacentElement("afterend",this.ePillWrapper.getGui()),b===0){let R=document.createElement("div");R.classList.add("ag-advanced-filter-builder-item-tree-line-vertical-bottom"),R.classList.add("ag-advanced-filter-builder-item-tree-line-root"),this.eTreeLines.appendChild(R),(0,A._setDisplayed)(this.eDragHandle,!1),(0,A._setDisplayed)(this.eButtons,!1),(0,A._setAriaExpanded)(this.focusWrapper,!0)}else this.setupTreeLines(b),this.eDragHandle.appendChild((0,A._createIconNoSpan)("advancedFilterBuilderDrag",this.beans)),this.setupValidation(),this.setupMoveButtons(w),this.setupAddButton(),this.setupRemoveButton(),this.setupDragging(),this.updateAriaExpanded();(0,A._setAriaLevel)(this.focusWrapper,b+1),this.initialiseTabGuard({}),this.createManagedBean(new D.AdvancedFilterBuilderItemNavigationFeature(this.getGui(),this.focusWrapper,this.ePillWrapper)),this.updateAriaLabel(),this.addManagedListeners(this.ePillWrapper,{advancedFilterBuilderValueChanged:()=>this.dispatchLocalEvent({type:"advancedFilterBuilderValueChanged"}),advancedFilterBuilderValidChanged:()=>this.updateValidity()})}setState(m){var G,U;let{level:b}=this.item;if(b===0)return;let{showMove:w}=this.item,{disableMoveUp:k,disableMoveDown:R,treeLines:T,showStartTreeLine:z}=m;this.updateTreeLines(T,z),this.updateAriaExpanded(),w&&(this.moveUpDisabled=!!k,this.moveDownDisabled=!!R,this.eMoveUpButton.classList.toggle("ag-advanced-filter-builder-item-button-disabled",k),this.eMoveDownButton.classList.toggle("ag-advanced-filter-builder-item-button-disabled",R),(0,A._setAriaDisabled)(this.eMoveUpButton,!!k),(0,A._setAriaDisabled)(this.eMoveDownButton,!!R),(G=this.moveUpTooltipFeature)==null||G.refreshTooltip(),(U=this.moveDownTooltipFeature)==null||U.refreshTooltip())}focusMoveButton(m){(m?this.eMoveUpButton:this.eMoveDownButton).focus()}afterAdd(){this.ePillWrapper.getFocusableElement().focus()}setupTreeLines(m){for(let b=0;b<m;b++){let w=document.createElement("div");this.eTreeLines.appendChild(w)}}updateTreeLines(m,b){let w=m.length-1,{children:k}=this.eTreeLines;for(let T=0;T<w;T++){let z=k.item(T);z&&z.classList.toggle("ag-advanced-filter-builder-item-tree-line-vertical",!m[T])}let R=k.item(w);if(R){R.classList.add("ag-advanced-filter-builder-item-tree-line-horizontal");let T=m[w];R.classList.toggle("ag-advanced-filter-builder-item-tree-line-vertical-top",T),R.classList.toggle("ag-advanced-filter-builder-item-tree-line-vertical",!T)}this.eDragHandle.classList.toggle("ag-advanced-filter-builder-item-tree-line-vertical-bottom",b)}setupValidation(){this.eValidation.appendChild((0,A._createIconNoSpan)("advancedFilterBuilderInvalid",this.beans)),this.validationTooltipFeature=this.createOptionalManagedBean(this.registry.createDynamicBean("tooltipFeature",!1,{getGui:()=>this.eValidation,getLocation:()=>"advancedFilter",getTooltipValue:()=>this.ePillWrapper.getValidationMessage(),getTooltipShowDelayOverride:()=>1e3})),this.updateValidity()}setupAddButton(){var w;let m=(0,f.getAdvancedFilterBuilderAddButtonParams)(k=>this.advFilterExpSvc.translate(k),(w=this.gos.get("advancedFilterBuilderParams"))==null?void 0:w.addSelectWidth),b=this.createManagedBean(new F.AddDropdownComp(m));this.addManagedListeners(b,{fieldPickerValueSelected:({value:k})=>this.dispatchLocalEvent({type:"advancedFilterBuilderAdded",item:this.item,isJoin:k.key==="join"})}),this.eAddButton.appendChild(b.getGui()),this.createOptionalManagedBean(this.registry.createDynamicBean("tooltipFeature",!1,{getGui:()=>this.eAddButton,getLocation:()=>"advancedFilter",getTooltipValue:()=>this.advFilterExpSvc.translate("advancedFilterBuilderAddButtonTooltip")}))}setupRemoveButton(){this.eRemoveButton.appendChild((0,A._createIconNoSpan)("advancedFilterBuilderRemove",this.beans)),this.addManagedListeners(this.eRemoveButton,{click:()=>this.removeItem(),keydown:m=>{switch(m.key){case A.KeyCode.ENTER:m.preventDefault(),(0,A._stopPropagationForAgGrid)(m),this.removeItem();break}}}),this.createOptionalManagedBean(this.registry.createDynamicBean("tooltipFeature",!1,{getGui:()=>this.eRemoveButton,getLocation:()=>"advancedFilter",getTooltipValue:()=>this.advFilterExpSvc.translate("advancedFilterBuilderRemoveButtonTooltip")})),(0,A._setAriaLabel)(this.eRemoveButton,this.advFilterExpSvc.translate("advancedFilterBuilderRemoveButtonTooltip")),this.activateTabIndex([this.eRemoveButton])}setupMoveButtons(m){m?(this.eMoveUpButton.appendChild((0,A._createIconNoSpan)("advancedFilterBuilderMoveUp",this.beans)),this.addManagedListeners(this.eMoveUpButton,{click:()=>this.moveItem(!0),keydown:b=>{switch(b.key){case A.KeyCode.ENTER:b.preventDefault(),(0,A._stopPropagationForAgGrid)(b),this.moveItem(!0);break}}}),this.moveUpTooltipFeature=this.createOptionalManagedBean(this.registry.createDynamicBean("tooltipFeature",!1,{getGui:()=>this.eMoveUpButton,getLocation:()=>"advancedFilter",getTooltipValue:()=>this.moveUpDisabled?null:this.advFilterExpSvc.translate("advancedFilterBuilderMoveUpButtonTooltip")})),(0,A._setAriaLabel)(this.eMoveUpButton,this.advFilterExpSvc.translate("advancedFilterBuilderMoveUpButtonTooltip")),this.eMoveDownButton.appendChild((0,A._createIconNoSpan)("advancedFilterBuilderMoveDown",this.beans)),this.addManagedListeners(this.eMoveDownButton,{click:()=>this.moveItem(!1),keydown:b=>{switch(b.key){case A.KeyCode.ENTER:b.preventDefault(),(0,A._stopPropagationForAgGrid)(b),this.moveItem(!1);break}}}),this.moveDownTooltipFeature=this.createOptionalManagedBean(this.registry.createDynamicBean("tooltipFeature",!1,{getGui:()=>this.eMoveDownButton,getLocation:()=>"advancedFilter",getTooltipValue:()=>this.moveDownDisabled?null:this.advFilterExpSvc.translate("advancedFilterBuilderMoveDownButtonTooltip")})),(0,A._setAriaLabel)(this.eMoveDownButton,this.advFilterExpSvc.translate("advancedFilterBuilderMoveDownButtonTooltip")),this.activateTabIndex([this.eMoveUpButton,this.eMoveDownButton])):((0,A._setDisplayed)(this.eMoveUpButton,!1),(0,A._setDisplayed)(this.eMoveDownButton,!1))}updateValidity(){var m;(0,A._setVisible)(this.eValidation,!this.item.valid),(m=this.validationTooltipFeature)==null||m.refreshTooltip(),this.updateAriaLabel()}createPill(m){var z,G;let{key:b,cssClass:w,update:k,ariaLabel:R}=m,T=U=>{U!=null&&(k(U),this.dispatchLocalEvent({type:"advancedFilterBuilderValueChanged"}))};if(m.isSelect){let{getEditorParams:U,pickerAriaLabelKey:X,pickerAriaLabelValue:Q,displayValue:oe}=m,le=this.gos.get("advancedFilterBuilderParams"),fe=`${(z=le==null?void 0:le.pillSelectMinWidth)!=null?z:140}px`,ye=`${(G=le==null?void 0:le.pillSelectMaxWidth)!=null?G:200}px`,ke=this.createBean(new r.SelectPillComp({pickerAriaLabelKey:X,pickerAriaLabelValue:Q,pickerType:"ag-list",value:{key:b,displayValue:oe},valueFormatter:Ie=>{var ze;return Ie==null?null:(ze=Ie.displayValue)!=null?ze:Ie.key},variableWidth:!0,minPickerWidth:fe,maxPickerWidth:ye,getEditorParams:U,wrapperClassName:w,ariaLabel:R,pickerIcon:"advancedFilterBuilderSelectOpen"}));return this.addManagedListeners(ke,{fieldPickerValueSelected:({value:Ie})=>T(Ie==null?void 0:Ie.key)}),ke}else{let{baseCellDataType:U,valueFormatter:X}=m,Q=this.createBean(new u.InputPillComp({value:b,valueFormatter:X,cssClass:w,type:this.getInputType(U),ariaLabel:R}));return this.addManagedListeners(Q,{fieldValueChanged:({value:oe})=>T(oe)}),Q}}getInputType(m){switch(m){case"text":case"object":case"boolean":return"text";case"number":return"number";case"date":case"dateString":return"date"}}setupDragging(){let m={type:A.DragSourceType.AdvancedFilterBuilder,eElement:this.eDragHandle,dragItemName:()=>this.ePillWrapper.getDragName(),getDefaultIconName:()=>"notAllowed",getDragItem:()=>({}),onDragStarted:()=>this.dragFeature.dispatchLocalEvent({type:"advancedFilterBuilderDragStarted",item:this.item}),onDragStopped:()=>this.dragFeature.dispatchLocalEvent({type:"advancedFilterBuilderDragEnded"})};this.dragAndDrop.addDragSource(m,!0),this.addDestroyFunc(()=>this.dragAndDrop.removeDragSource(m))}updateAriaLabel(){let m=this.ePillWrapper.getAriaLabel(),b=`${this.item.level+1}`,w=this.ePillWrapper.getValidationMessage(),k;w?k=this.advFilterExpSvc.translate("ariaAdvancedFilterBuilderItemValidation",[m,b,w]):k=this.advFilterExpSvc.translate("ariaAdvancedFilterBuilderItem",[m,b]),(0,A._setAriaLabel)(this.focusWrapper,k)}updateAriaExpanded(){(0,A._removeAriaExpanded)(this.focusWrapper);let{filterModel:m}=this.item;(m==null?void 0:m.filterType)==="join"&&m.conditions.length&&(0,A._setAriaExpanded)(this.focusWrapper,!0)}removeItem(){this.dispatchLocalEvent({type:"advancedFilterBuilderRemoved",item:this.item})}moveItem(m){this.dispatchLocalEvent({type:"advancedFilterBuilderMoved",item:this.item,backwards:m})}}p.AdvancedFilterBuilderItemComp=d},1748:function(x,p,M){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.AdvancedFilterBuilderItemNavigationFeature=void 0;let A=M(6624);class F extends A.BeanStub{constructor(f,v,u){super(),this.eGui=f,this.focusWrapper=v,this.eFocusableComp=u}postConstruct(){this.addManagedElementListeners(this.eGui,{keydown:v=>{switch(v.key){case A.KeyCode.TAB:v.defaultPrevented||(0,A._stopPropagationForAgGrid)(v);break;case A.KeyCode.UP:case A.KeyCode.DOWN:(0,A._stopPropagationForAgGrid)(v);break;case A.KeyCode.ESCAPE:if((0,A._isStopPropagationForAgGrid)(v))return;this.eGui.contains((0,A._getActiveDomElement)(this.beans))&&(v.preventDefault(),(0,A._stopPropagationForAgGrid)(v),this.focusWrapper.focus());break}}});let f="ag-advanced-filter-builder-virtual-list-item-highlight";this.addManagedListeners(this.focusWrapper,{keydown:v=>{switch(v.key){case A.KeyCode.ENTER:if((0,A._isStopPropagationForAgGrid)(v))return;(0,A._getActiveDomElement)(this.beans)===this.focusWrapper&&(v.preventDefault(),(0,A._stopPropagationForAgGrid)(v),this.eFocusableComp.getFocusableElement().focus());break}},focusin:()=>{this.focusWrapper.classList.add(f)},focusout:v=>{this.focusWrapper.contains(v.relatedTarget)||this.focusWrapper.classList.remove(f)}})}}p.AdvancedFilterBuilderItemNavigationFeature=F},6608:function(x,p){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.getAdvancedFilterBuilderAddButtonParams=void 0;function M(A,F){return{pickerAriaLabelKey:"ariaLabelAdvancedFilterBuilderAddField",pickerAriaLabelValue:"Advanced Filter Builder Add Field",pickerType:"ag-list",valueList:[{key:"condition",displayValue:A("advancedFilterBuilderAddCondition")},{key:"join",displayValue:A("advancedFilterBuilderAddJoin")}],valueFormatter:D=>{var f;return D==null?null:(f=D.displayValue)!=null?f:D.key},pickerIcon:"advancedFilterBuilderAdd",maxPickerWidth:`${F!=null?F:120}px`,wrapperClassName:"ag-advanced-filter-builder-item-button",ariaLabel:A("advancedFilterBuilderAddButtonTooltip")}}p.getAdvancedFilterBuilderAddButtonParams=M},6106:function(x,p,M){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.ConditionPillWrapperComp=void 0;let A=M(6624);class F extends A.Component{wireBeans(f){this.advFilterExpSvc=f.advFilterExpSvc}constructor(){super(`
            <div class="ag-advanced-filter-builder-item-condition" role="presentation"></div>
        `),this.validationMessage=null}init(f){let{item:v,createPill:u}=f;this.item=v,this.createPill=u,this.filterModel=v.filterModel,this.setupColumnCondition(this.filterModel),this.validate(),this.addDestroyFunc(()=>this.destroyBeans([this.eColumnPill,this.eOperatorPill,this.eOperandPill]))}getDragName(){return this.filterModel.colId?this.advFilterExpSvc.parseColumnFilterModel(this.filterModel):this.getDefaultColumnDisplayValue()}getAriaLabel(){return`${this.advFilterExpSvc.translate("ariaAdvancedFilterBuilderFilterItem")} ${this.getDragName()}`}getValidationMessage(){return this.validationMessage}getFocusableElement(){return this.eColumnPill.getFocusableElement()}setupColumnCondition(f){var u;let v=this.advFilterExpSvc.getColumnDetails(f.colId);this.baseCellDataType=v.baseCellDataType,this.column=v.column,this.numOperands=this.getNumOperands(this.getOperatorKey()),this.eColumnPill=this.createPill({key:this.getColumnKey(),displayValue:(u=this.getColumnDisplayValue())!=null?u:this.getDefaultColumnDisplayValue(),cssClass:"ag-advanced-filter-builder-column-pill",isSelect:!0,getEditorParams:()=>({values:this.advFilterExpSvc.getColumnAutocompleteEntries()}),update:s=>this.setColumnKey(s),pickerAriaLabelKey:"ariaLabelAdvancedFilterBuilderColumnSelectField",pickerAriaLabelValue:"Advanced Filter Builder Column Select Field",ariaLabel:this.advFilterExpSvc.translate("ariaAdvancedFilterBuilderColumn")}),this.getGui().appendChild(this.eColumnPill.getGui()),(0,A._exists)(this.getColumnKey())&&(this.createOperatorPill(),this.hasOperand()&&this.createOperandPill())}createOperatorPill(){var f;this.eOperatorPill=this.createPill({key:this.getOperatorKey(),displayValue:(f=this.getOperatorDisplayValue())!=null?f:this.getDefaultOptionSelectValue(),cssClass:"ag-advanced-filter-builder-option-pill",isSelect:!0,getEditorParams:()=>({values:this.getOperatorAutocompleteEntries()}),update:v=>this.setOperatorKey(v),pickerAriaLabelKey:"ariaLabelAdvancedFilterBuilderOptionSelectField",pickerAriaLabelValue:"Advanced Filter Builder Option Select Field",ariaLabel:this.advFilterExpSvc.translate("ariaAdvancedFilterBuilderOption")}),this.eColumnPill.getGui().insertAdjacentElement("afterend",this.eOperatorPill.getGui())}createOperandPill(){var u;let{filter:f}=this.filterModel,v=(u=typeof f=="number"?(0,A._toStringOrNull)(f):f)!=null?u:"";this.eOperandPill=this.createPill({key:v,valueFormatter:s=>this.advFilterExpSvc.getOperandDisplayValue(et(pe({},this.filterModel),{filter:s}),!0),baseCellDataType:this.baseCellDataType,cssClass:"ag-advanced-filter-builder-value-pill",isSelect:!1,update:s=>this.setOperand(s),ariaLabel:this.advFilterExpSvc.translate("ariaAdvancedFilterBuilderValue")}),this.getGui().appendChild(this.eOperandPill.getGui())}getColumnKey(){return this.filterModel.colId}getColumnDisplayValue(){return this.advFilterExpSvc.getColumnDisplayValue(this.filterModel)}getOperatorKey(){return this.filterModel.type}getOperatorDisplayValue(){return this.advFilterExpSvc.getOperatorDisplayValue(this.filterModel)}getOperandDisplayValue(){return this.advFilterExpSvc.getOperandDisplayValue(this.filterModel,!0)}hasOperand(){return this.numOperands>0}getOperatorAutocompleteEntries(){return this.column?this.advFilterExpSvc.getOperatorAutocompleteEntries(this.column,this.baseCellDataType):[]}setColumnKey(f){this.eOperatorPill||this.createOperatorPill();let v=this.advFilterExpSvc.getColumnDetails(f);this.column=v.column;let u=v.baseCellDataType;this.baseCellDataType!==u&&(this.baseCellDataType=u,this.setOperatorKey(void 0),this.eOperatorPill&&((0,A._removeFromParent)(this.eOperatorPill.getGui()),this.destroyBean(this.eOperatorPill),this.createOperatorPill()),this.validate()),this.filterModel.colId=f,this.filterModel.filterType=this.baseCellDataType}setOperatorKey(f){let v=this.getNumOperands(f);v!==this.numOperands&&(this.numOperands=v,v===0?this.destroyOperandPill():(this.createOperandPill(),this.baseCellDataType!=="number"&&this.setOperand(""))),this.filterModel.type=f,this.validate()}setOperand(f){let v=f;this.baseCellDataType==="number"&&(v=(0,A._exists)(f)?Number(f):""),this.filterModel.filter=v,this.validate()}getNumOperands(f){var v,u;return(u=(v=this.advFilterExpSvc.getExpressionOperator(this.baseCellDataType,f))==null?void 0:v.numOperands)!=null?u:0}destroyOperandPill(){delete this.filterModel.filter,this.getGui().removeChild(this.eOperandPill.getGui()),this.destroyBean(this.eOperandPill),this.eOperandPill=void 0}validate(){let f=null;(0,A._exists)(this.getColumnKey())?(0,A._exists)(this.getOperatorKey())?this.numOperands>0&&!(0,A._exists)(this.getOperandDisplayValue())&&(f=this.advFilterExpSvc.translate("advancedFilterBuilderValidationEnterValue")):f=this.advFilterExpSvc.translate("advancedFilterBuilderValidationSelectOption"):f=this.advFilterExpSvc.translate("advancedFilterBuilderValidationSelectColumn"),this.item.valid=!f,f!==this.validationMessage&&(this.validationMessage=f,this.dispatchLocalEvent({type:"advancedFilterBuilderValidChanged"}))}getDefaultColumnDisplayValue(){return this.advFilterExpSvc.translate("advancedFilterBuilderSelectColumn")}getDefaultOptionSelectValue(){return this.advFilterExpSvc.translate("advancedFilterBuilderSelectOption")}}p.ConditionPillWrapperComp=F},4042:function(x,p,M){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.InputPillComp=void 0;let A=M(6624);class F extends A.Component{wireBeans(f){this.advFilterExpSvc=f.advFilterExpSvc}constructor(f){super(`
            <div class="ag-advanced-filter-builder-pill-wrapper" role="presentation">
                <div data-ref="ePill" class="ag-advanced-filter-builder-pill" role="button">
                    <span data-ref="eLabel" class="ag-advanced-filter-builder-pill-display"></span>
                </div>
            </div>
        `),this.params=f,this.ePill=A.RefPlaceholder,this.eLabel=A.RefPlaceholder;let{value:v,valueFormatter:u}=f;this.value=v,this.displayValue=u(v)}postConstruct(){let{cssClass:f,ariaLabel:v}=this.params;this.ePill.classList.add(f),this.activateTabIndex([this.ePill]),this.eLabel.id=`${this.getCompId()}`,(0,A._setAriaDescribedBy)(this.ePill,this.eLabel.id),(0,A._setAriaLabel)(this.ePill,v),this.renderValue(),this.addManagedListeners(this.ePill,{click:u=>{u.preventDefault(),this.showEditor()},keydown:u=>{switch(u.key){case A.KeyCode.ENTER:u.preventDefault(),(0,A._stopPropagationForAgGrid)(u),this.showEditor();break}}}),this.addDestroyFunc(()=>this.destroyBean(this.eEditor))}getFocusableElement(){return this.ePill}showEditor(){if(this.eEditor)return;(0,A._setDisplayed)(this.ePill,!1),this.eEditor=this.createEditorComp(this.params.type),this.eEditor.setValue(this.value);let f=this.eEditor.getGui();this.eEditor.addManagedElementListeners(f,{keydown:v=>{switch(v.key){case A.KeyCode.ENTER:v.preventDefault(),(0,A._stopPropagationForAgGrid)(v),this.updateValue(!0);break;case A.KeyCode.ESCAPE:v.preventDefault(),(0,A._stopPropagationForAgGrid)(v),this.hideEditor(!0);break}},focusout:()=>this.updateValue(!1)}),this.getGui().appendChild(f),this.eEditor.getFocusableElement().focus()}createEditorComp(f){let v;switch(f){case"text":v=new A.AgInputTextField;break;case"number":v=new A.AgInputNumberField;break;case"date":v=new A.AgInputDateField;break}return this.createBean(v)}hideEditor(f){let{eEditor:v}=this;v&&(this.eEditor=void 0,this.getGui().removeChild(v.getGui()),this.destroyBean(v),(0,A._setDisplayed)(this.ePill,!0),f&&this.ePill.focus())}renderValue(){let f,{displayValue:v,eLabel:u}=this,{classList:s}=u;s.remove("ag-advanced-filter-builder-value-empty","ag-advanced-filter-builder-value-number","ag-advanced-filter-builder-value-text"),(0,A._exists)(v)?this.params.type==="number"?(f=v,s.add("ag-advanced-filter-builder-value-number")):(f=`"${v}"`,s.add("ag-advanced-filter-builder-value-text")):(f=this.advFilterExpSvc.translate("advancedFilterBuilderEnterValue"),s.add("ag-advanced-filter-builder-value-empty")),u.innerText=f}updateValue(f){var u;if(!this.eEditor)return;let v=(u=this.eEditor.getValue())!=null?u:"";this.dispatchLocalEvent({type:"fieldValueChanged",value:v}),this.value=v,this.displayValue=this.params.valueFormatter(v),this.renderValue(),this.hideEditor(f)}}p.InputPillComp=F},1395:function(x,p,M){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.JoinPillWrapperComp=void 0;let A=M(6624);class F extends A.Component{wireBeans(f){this.advFilterExpSvc=f.advFilterExpSvc}constructor(){super(`
            <div class="ag-advanced-filter-builder-item-condition" role="presentation"></div>
        `)}init(f){let{item:v,createPill:u}=f,s=v.filterModel;this.filterModel=s,this.ePill=u({key:s.type,displayValue:this.advFilterExpSvc.parseJoinOperator(s),cssClass:"ag-advanced-filter-builder-join-pill",isSelect:!0,getEditorParams:()=>({values:this.advFilterExpSvc.getJoinOperatorAutocompleteEntries()}),update:r=>s.type=r,pickerAriaLabelKey:"ariaLabelAdvancedFilterBuilderJoinSelectField",pickerAriaLabelValue:"Advanced Filter Builder Join Operator Select Field",ariaLabel:this.advFilterExpSvc.translate("ariaAdvancedFilterBuilderJoinOperator")}),this.getGui().appendChild(this.ePill.getGui()),this.addDestroyFunc(()=>this.destroyBean(this.ePill))}getDragName(){return this.advFilterExpSvc.parseJoinOperator(this.filterModel)}getAriaLabel(){return`${this.advFilterExpSvc.translate("ariaAdvancedFilterBuilderGroupItem")} ${this.getDragName()}`}getValidationMessage(){return null}getFocusableElement(){return this.ePill.getFocusableElement()}}p.JoinPillWrapperComp=F},3036:function(x,p,M){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.SelectPillComp=void 0;let A=M(6624),F=M(2005);class D extends F.AgRichSelect{constructor(v){super(et(pe({},v),{template:`
                <div class="ag-picker-field ag-advanced-filter-builder-pill-wrapper" role="presentation">
                    <div data-ref="eLabel"></div>
                    <div data-ref="eWrapper" class="ag-wrapper ag-advanced-filter-builder-pill ag-picker-collapsed">
                        <div data-ref="eDisplayField" class="ag-picker-field-display ag-advanced-filter-builder-pill-display"></div>
                        <ag-input-text-field data-ref="eInput" class="ag-rich-select-field-input"></ag-input-text-field>
                        <span data-ref="eDeselect" class="ag-rich-select-deselect-button ag-picker-field-icon" role="presentation"></span>
                        <div data-ref="eIcon" class="ag-picker-field-icon" aria-hidden="true"></div>
                    </div>
                </div>`,agComponents:[A.AgInputTextFieldSelector]})),this.params=v}getFocusableElement(){return this.eWrapper}showPicker(){setTimeout(()=>super.showPicker())}hidePicker(){setTimeout(()=>super.hidePicker())}postConstruct(){super.postConstruct();let{wrapperClassName:v,ariaLabel:u}=this.params;this.eWrapper.classList.add(v),(0,A._setAriaLabelledBy)(this.eWrapper,""),(0,A._setAriaLabel)(this.eWrapper,u)}createPickerComponent(){var v;if(!this.values){let{values:u}=this.params.getEditorParams();this.values=u;let s=this.value.key,r=(v=u.find(d=>d.key===s))!=null?v:{key:s,displayValue:this.value.displayValue};this.value=r}return super.createPickerComponent()}onEnterKeyDown(v){(0,A._stopPropagationForAgGrid)(v),this.isPickerDisplayed?super.onEnterKeyDown(v):(v.preventDefault(),this.showPicker())}}p.SelectPillComp=D},9023:function(x,p,M){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.ColFilterExpressionParser=p.COL_FILTER_EXPRESSION_END_CHAR=p.COL_FILTER_EXPRESSION_START_CHAR=void 0;let A=M(6487);class F{constructor(s,r){this.params=s,this.startPosition=r,this.type="column",this.valid=!0,this.hasStartChar=!1,this.hasEndChar=!1,this.colName=""}parse(s,r){if(s===p.COL_FILTER_EXPRESSION_START_CHAR&&!this.colName)this.hasStartChar=!0;else if(s===p.COL_FILTER_EXPRESSION_END_CHAR&&this.hasStartChar){if(this.parseColumn(!1,r))return this.hasEndChar=!0,!1;this.colName+=s}else this.colName+=s}getDisplayValue(){return(this.hasStartChar?p.COL_FILTER_EXPRESSION_START_CHAR:"")+this.colName+(this.hasEndChar?p.COL_FILTER_EXPRESSION_END_CHAR:"")}getColId(){return this.colId}complete(s){this.parseColumn(!0,s)}getValidationError(){var s;return this.valid?null:{message:this.params.advFilterExpSvc.translate("advancedFilterValidationInvalidColumn"),startPosition:this.startPosition,endPosition:(s=this.endPosition)!=null?s:this.params.expression.length-1}}parseColumn(s,r){var g,m;this.endPosition=r;let d=this.params.advFilterExpSvc.getColId(this.colName);return d&&this.hasStartChar&&(this.colId=d.colId,(0,A.checkAndUpdateExpression)(this.params,this.colName,d.columnName,r-1),this.colName=d.columnName,this.column=this.params.colModel.getColDefCol(this.colId),this.column)?(this.baseCellDataType=(m=(g=this.params.dataTypeSvc)==null?void 0:g.getBaseDataType(this.column))!=null?m:"text",!0):(s&&(this.valid=!1),this.baseCellDataType="text",!1)}}class D{constructor(s,r,d){this.params=s,this.startPosition=r,this.baseCellDataType=d,this.type="operator",this.valid=!0,this.expectedNumOperands=0,this.operator=""}parse(s,r){if(s===" "||s===")"){if(this.parseOperator(!1,r-1))return!0;this.operator+=s}else this.operator+=s}complete(s){this.parseOperator(!0,s)}getValidationError(){var s;return this.valid?null:{message:this.params.advFilterExpSvc.translate("advancedFilterValidationInvalidOption"),startPosition:this.startPosition,endPosition:(s=this.endPosition)!=null?s:this.params.expression.length-1}}getDisplayValue(){return this.operator}getOperatorKey(){return this.parsedOperator}parseOperator(s,r){let d=this.params.advFilterExpSvc.getDataTypeExpressionOperator(this.baseCellDataType),g=d.findOperator(this.operator);if(this.endPosition=r,g){this.parsedOperator=g;let b=d.operators[g];this.expectedNumOperands=b.numOperands;let w=b.displayValue;return(0,A.checkAndUpdateExpression)(this.params,this.operator,w,r),this.operator=w,!0}return(s||!(g===null))&&(this.valid=!1),!1}}class f{constructor(s,r,d,g){this.params=s,this.startPosition=r,this.baseCellDataType=d,this.column=g,this.type="operand",this.valid=!0,this.operand="",this.validationMessage=null}parse(s,r){if(s===" ")if(this.quotes)this.operand+=s;else return this.parseOperand(!1,r),!0;else if(s===")"){if(this.baseCellDataType==="number"||!this.quotes)return this.parseOperand(!1,r-1),!0;this.operand+=s}else if(!this.operand&&!this.quotes&&(s==="'"||s==='"'))this.quotes=s;else{if(this.quotes&&s===this.quotes)return this.parseOperand(!1,r),!1;this.operand+=s}}complete(s){this.parseOperand(!0,s)}getValidationError(){var s;return this.validationMessage?{message:this.validationMessage,startPosition:this.startPosition,endPosition:(s=this.endPosition)!=null?s:this.params.expression.length-1}:null}getRawValue(){return this.operand}getModelValue(){return this.modelValue}parseOperand(s,r){let{advFilterExpSvc:d}=this.params;if(this.endPosition=r,this.modelValue=this.operand,s&&this.quotes)this.valid=!1,this.validationMessage=d.translate("advancedFilterValidationMissingQuote");else if(this.modelValue==="")this.valid=!1,this.validationMessage=d.translate("advancedFilterValidationMissingValue");else{let g=d.getOperandModelValue(this.operand,this.baseCellDataType,this.column);switch(g!=null&&(this.modelValue=g),this.baseCellDataType){case"number":(this.quotes||isNaN(this.modelValue))&&(this.valid=!1,this.validationMessage=d.translate("advancedFilterValidationNotANumber"));break;case"date":case"dateString":g==null&&(this.valid=!1,this.validationMessage=d.translate("advancedFilterValidationInvalidDate"));break}}}}p.COL_FILTER_EXPRESSION_START_CHAR="[",p.COL_FILTER_EXPRESSION_END_CHAR="]";class v{constructor(s,r){this.params=s,this.startPosition=r,this.isAwaiting=!0}parseExpression(){var d,g;let s=this.startPosition,{expression:r}=this.params;for(;s<r.length;){let m=r[s];if(!(m===" "&&this.isAwaiting)){if(this.isAwaiting=!1,!this.parser){let w;this.columnParser?this.operatorParser?(this.operandParser=new f(this.params,s,this.columnParser.baseCellDataType,this.columnParser.column),w=this.operandParser):(this.operatorParser=new D(this.params,s,this.columnParser.baseCellDataType),w=this.operatorParser):(this.columnParser=new F(this.params,s),w=this.columnParser),this.parser=w}let b=this.parser.parse(m,s);if(b!=null){if(this.isComplete())return this.returnEndPosition(b?s-1:s,!0);this.parser=void 0,this.isAwaiting=!0}}s++}return(g=(d=this.parser)==null?void 0:d.complete)==null||g.call(d,s-1),this.returnEndPosition(s)}isValid(){return this.isComplete()&&this.columnParser.valid&&this.operatorParser.valid&&(!this.operandParser||this.operandParser.valid)}getValidationError(){var g,m,b,w,k;let s=(k=(b=(g=this.columnParser)==null?void 0:g.getValidationError())!=null?b:(m=this.operatorParser)==null?void 0:m.getValidationError())!=null?k:(w=this.operandParser)==null?void 0:w.getValidationError();if(s)return s;let r=this.params.expression.length,d;return this.columnParser?this.operatorParser?this.operatorParser.expectedNumOperands&&!this.operandParser&&(d="advancedFilterValidationMissingValue"):d="advancedFilterValidationMissingOption":d="advancedFilterValidationMissingColumn",d?{message:this.params.advFilterExpSvc.translate(d),startPosition:r,endPosition:r}:null}getFunctionString(s){return this.getFunctionCommon(s,(r,d,g,m)=>{let b=(0,A.escapeQuotes)(g),w=r==null?"":`, params.operands[${r}]`;return`params.operators[${d}].evaluator(expressionProxy.getValue('${b}', node), node, params.evaluatorParams[${m}]${w})`})}getFunctionParsed(s){return this.getFunctionCommon(s,(r,d,g,m)=>(b,w,k)=>k.operators[d].evaluator(b.getValue(g,w),w,k.evaluatorParams[m],r==null?void 0:k.operands[r]))}getAutocompleteListParams(s){if(this.isColumnPosition(s))return this.getColumnAutocompleteListParams(s);if(this.isOperatorPosition(s))return this.getOperatorAutocompleteListParams(s);if(!this.isBeyondEndPosition(s))return{enabled:!1}}updateExpression(s,r,d){var m,b,w,k,R;let{expression:g}=this.params;if(this.isColumnPosition(s))return(0,A.updateExpression)(this.params.expression,this.startPosition,(m=this.columnParser)!=null&&m.getColId()?this.columnParser.endPosition:(0,A.findEndPosition)(g,s).endPosition,this.params.advFilterExpSvc.getColumnValue(r),!0);if(this.isOperatorPosition(s)){let T=this.getBaseCellDataTypeFromOperatorAutocompleteType(d),z=this.hasOperand(T,r.key),G=z&&this.doesOperandNeedQuotes(T),U;if(((b=this.operatorParser)==null?void 0:b.startPosition)!=null&&s<this.operatorParser.startPosition)U=(0,A.updateExpression)(g,s,s,(w=r.displayValue)!=null?w:r.key,z,G);else{let X,Q=!1;if((k=this.operatorParser)!=null&&k.getOperatorKey())X=this.operatorParser.endPosition;else{let{endPosition:oe,isEmpty:le}=(0,A.findEndPosition)(g,s,!0,!0);X=oe,Q=le}U=(0,A.updateExpression)(g,(0,A.findStartPosition)(g,this.columnParser.endPosition+1,X),X,(R=r.displayValue)!=null?R:r.key,z,G,Q)}return et(pe({},U),{hideAutocomplete:!z})}return null}getModel(){let s=this.columnParser.getColId(),r={filterType:this.columnParser.baseCellDataType,colId:s,type:this.operatorParser.getOperatorKey()};return this.operatorParser.expectedNumOperands&&(r.filter=this.operandParser.getModelValue()),r}getFunctionCommon(s,r){var U,X;let d=this.columnParser.getColId(),g=(U=this.operatorParser)==null?void 0:U.getOperatorKey(),{operators:m,evaluatorParams:b,operands:w}=s,k=this.params.advFilterExpSvc.getExpressionOperator(this.columnParser.baseCellDataType,g),R=this.addToListAndGetIndex(m,k),T=this.params.advFilterExpSvc.getExpressionEvaluatorParams(d),z=this.addToListAndGetIndex(b,T),G=((X=this.operatorParser)==null?void 0:X.expectedNumOperands)===0?void 0:this.addToListAndGetIndex(w,this.getOperandValue());return r(G,R,d,z)}getOperandValue(){let s=this.operandParser.getRawValue(),{baseCellDataType:r,column:d}=this.columnParser;switch(r){case"number":s=Number(s);break;case"date":case"dateString":s=this.params.valueSvc.parseValue(d,null,s,void 0);break}if(r==="dateString"){let{dataTypeSvc:g}=this.params;return g?g.getDateParserFunction(d)(s):s}return s}isComplete(){return!!(this.operatorParser&&(!this.operatorParser.expectedNumOperands||this.operatorParser.expectedNumOperands&&this.operandParser))}isColumnPosition(s){return!this.columnParser||this.columnParser.endPosition==null||s<=this.columnParser.endPosition+1}isOperatorPosition(s){return!this.operatorParser||this.operatorParser.endPosition==null||s<=this.operatorParser.endPosition+1}isBeyondEndPosition(s){return this.isComplete()&&this.endPosition!=null&&s>this.endPosition+1&&this.endPosition+1<this.params.expression.length}returnEndPosition(s,r){return this.endPosition=r?s:s-1,s}getColumnAutocompleteListParams(s){return this.params.advFilterExpSvc.generateAutocompleteListParams(this.params.advFilterExpSvc.getColumnAutocompleteEntries(),"column",this.getColumnSearchString(s))}getColumnSearchString(s){var b,w,k,R,T;let r=(w=(b=this.columnParser)==null?void 0:b.getDisplayValue())!=null?w:"",d=(0,A.getSearchString)(r,s,((k=this.columnParser)==null?void 0:k.endPosition)==null?this.params.expression.length:this.columnParser.endPosition+1),g=((R=this.columnParser)==null?void 0:R.hasStartChar)&&d.length>0,m=((T=this.columnParser)==null?void 0:T.hasEndChar)&&d.length===r.length+2;return g?d.slice(1,m?-1:void 0):d}getOperatorAutocompleteListParams(s){var m,b,w,k,R;let r=(m=this.columnParser)==null?void 0:m.column;if(!r)return{enabled:!1};let d=this.columnParser.baseCellDataType,g=((b=this.operatorParser)==null?void 0:b.startPosition)!=null&&s<this.operatorParser.startPosition?"":(0,A.getSearchString)((k=(w=this.operatorParser)==null?void 0:w.getDisplayValue())!=null?k:"",s,((R=this.operatorParser)==null?void 0:R.endPosition)==null?this.params.expression.length:this.operatorParser.endPosition+1);return this.params.advFilterExpSvc.generateAutocompleteListParams(this.params.advFilterExpSvc.getOperatorAutocompleteEntries(r,d),`operator-${d}`,g)}getBaseCellDataTypeFromOperatorAutocompleteType(s){return s==null?void 0:s.replace("operator-","")}hasOperand(s,r){var d,g;return!s||!r||((g=(d=this.params.advFilterExpSvc.getExpressionOperator(s,r))==null?void 0:d.numOperands)!=null?g:0)>0}doesOperandNeedQuotes(s){return s!=="number"}addToListAndGetIndex(s,r){let d=s.length;return s.push(r),d}}p.ColFilterExpressionParser=v},9459:function(x,p){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.BooleanFilterExpressionOperators=p.ScalarFilterExpressionOperators=p.TextFilterExpressionOperators=p.findMatch=void 0;function M(v,u,s){let r=!1,d=v.toLocaleLowerCase(),g=d+" ",m=Object.entries(u).find(([,b])=>{let w=s(b).toLocaleLowerCase();return w.startsWith(g)&&(r=!0),w===d});return m?m[0]:r?null:void 0}p.findMatch=M;function A(v,u){return(u!=null?u:Object.keys(v)).map(r=>({key:r,displayValue:v[r].displayValue}))}class F{constructor(u){this.params=u,this.initOperators()}getEntries(u){return A(this.operators,u)}findOperator(u){return M(u,this.operators,({displayValue:s})=>s)}initOperators(){let{translate:u}=this.params;this.operators={contains:{displayValue:u("advancedFilterContains"),evaluator:(s,r,d,g)=>this.evaluateExpression(s,r,d,g,!1,(m,b)=>m.includes(b)),numOperands:1},notContains:{displayValue:u("advancedFilterNotContains"),evaluator:(s,r,d,g)=>this.evaluateExpression(s,r,d,g,!0,(m,b)=>!m.includes(b)),numOperands:1},equals:{displayValue:u("advancedFilterTextEquals"),evaluator:(s,r,d,g)=>this.evaluateExpression(s,r,d,g,!1,(m,b)=>m===b),numOperands:1},notEqual:{displayValue:u("advancedFilterTextNotEqual"),evaluator:(s,r,d,g)=>this.evaluateExpression(s,r,d,g,!0,(m,b)=>m!=b),numOperands:1},startsWith:{displayValue:u("advancedFilterStartsWith"),evaluator:(s,r,d,g)=>this.evaluateExpression(s,r,d,g,!1,(m,b)=>m.startsWith(b)),numOperands:1},endsWith:{displayValue:u("advancedFilterEndsWith"),evaluator:(s,r,d,g)=>this.evaluateExpression(s,r,d,g,!1,(m,b)=>m.endsWith(b)),numOperands:1},blank:{displayValue:u("advancedFilterBlank"),evaluator:s=>s==null||typeof s=="string"&&s.trim().length===0,numOperands:0},notBlank:{displayValue:u("advancedFilterNotBlank"),evaluator:s=>s!=null&&(typeof s!="string"||s.trim().length>0),numOperands:0}}}evaluateExpression(u,s,r,d,g,m){return u==null?g:r.caseSensitive?m(r.valueConverter(u,s),d):m(r.valueConverter(u,s).toLocaleLowerCase(),d.toLocaleLowerCase())}}p.TextFilterExpressionOperators=F;class D{constructor(u){this.params=u,this.initOperators()}getEntries(u){return A(this.operators,u)}findOperator(u){return M(u,this.operators,({displayValue:s})=>s)}initOperators(){let{translate:u,equals:s}=this.params;this.operators={equals:{displayValue:u("advancedFilterEquals"),evaluator:(r,d,g,m)=>this.evaluateSingleOperandExpression(r,d,g,m,!!g.includeBlanksInEquals,s),numOperands:1},notEqual:{displayValue:u("advancedFilterNotEqual"),evaluator:(r,d,g,m)=>this.evaluateSingleOperandExpression(r,d,g,m,!!g.includeBlanksInEquals,(b,w)=>!s(b,w)),numOperands:1},greaterThan:{displayValue:u("advancedFilterGreaterThan"),evaluator:(r,d,g,m)=>this.evaluateSingleOperandExpression(r,d,g,m,!!g.includeBlanksInGreaterThan,(b,w)=>b>w),numOperands:1},greaterThanOrEqual:{displayValue:u("advancedFilterGreaterThanOrEqual"),evaluator:(r,d,g,m)=>this.evaluateSingleOperandExpression(r,d,g,m,!!g.includeBlanksInGreaterThan,(b,w)=>b>=w),numOperands:1},lessThan:{displayValue:u("advancedFilterLessThan"),evaluator:(r,d,g,m)=>this.evaluateSingleOperandExpression(r,d,g,m,!!g.includeBlanksInLessThan,(b,w)=>b<w),numOperands:1},lessThanOrEqual:{displayValue:u("advancedFilterLessThanOrEqual"),evaluator:(r,d,g,m)=>this.evaluateSingleOperandExpression(r,d,g,m,!!g.includeBlanksInLessThan,(b,w)=>b<=w),numOperands:1},blank:{displayValue:u("advancedFilterBlank"),evaluator:r=>r==null,numOperands:0},notBlank:{displayValue:u("advancedFilterNotBlank"),evaluator:r=>r!=null,numOperands:0}}}evaluateSingleOperandExpression(u,s,r,d,g,m){return u==null?g:m(r.valueConverter(u,s),d)}}p.ScalarFilterExpressionOperators=D;class f{constructor(u){this.params=u,this.initOperators()}getEntries(u){return A(this.operators,u)}findOperator(u){return M(u,this.operators,({displayValue:s})=>s)}initOperators(){let{translate:u}=this.params;this.operators={true:{displayValue:u("advancedFilterTrue"),evaluator:s=>!!s,numOperands:0},false:{displayValue:u("advancedFilterFalse"),evaluator:s=>s===!1,numOperands:0},blank:{displayValue:u("advancedFilterBlank"),evaluator:s=>s==null,numOperands:0},notBlank:{displayValue:u("advancedFilterNotBlank"),evaluator:s=>s!=null,numOperands:0}}}}p.BooleanFilterExpressionOperators=f},4899:function(x,p,M){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.FilterExpressionParser=void 0;let A=M(9471);class F{constructor(f){this.params=f,this.valid=!1}parseExpression(){this.joinExpressionParser=new A.JoinFilterExpressionParser(this.params,0);let f=this.joinExpressionParser.parseExpression();return this.valid=f>=this.params.expression.length-1&&this.joinExpressionParser.isValid(),this.params.expression}isValid(){return this.valid}getValidationMessage(){let f=this.joinExpressionParser.getValidationError();if(!f)return null;let{message:v,startPosition:u,endPosition:s}=f;return u<this.params.expression.length?this.params.advFilterExpSvc.translate("advancedFilterValidationMessage",[v,this.params.expression.slice(u,s+1).trim()]):this.params.advFilterExpSvc.translate("advancedFilterValidationMessageAtEnd",[v])}getFunctionString(){let f=this.createFunctionParams();return{functionString:`return ${this.joinExpressionParser.getFunctionString(f)};`,params:f}}getFunctionParsed(){let f=this.createFunctionParams();return{expressionFunction:this.joinExpressionParser.getFunctionParsed(f),params:f}}getAutocompleteListParams(f){var v;return(v=this.joinExpressionParser.getAutocompleteListParams(f))!=null?v:{enabled:!1}}updateExpression(f,v,u){return this.joinExpressionParser.updateExpression(f,v,u)}getModel(){return this.isValid()?this.joinExpressionParser.getModel():null}createFunctionParams(){return{operands:[],operators:[],evaluatorParams:[]}}}p.FilterExpressionParser=F},6487:function(x,p){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.escapeQuotes=p.checkAndUpdateExpression=p.findEndPosition=p.findStartPosition=p.updateExpression=p.getSearchString=void 0;function M(u,s,r){if(!u)return"";let d=r-s;return d?u.slice(0,u.length-d):u}p.getSearchString=M;function A(u,s,r,d,g,m,b){let w=r+(!u.length||b?0:1),k=0;return g&&(u[w]===" "?k=1:(d+=" ",m&&(d+='"'))),{updatedValue:u.slice(0,s)+d+u.slice(w),updatedPosition:s+d.length+k}}p.updateExpression=A;function F(u,s,r){let d=s;for(;d<r&&u[d]===" ";)d++;return d}p.findStartPosition=F;function D(u,s,r,d){let g=s,m=!1;for(;g<u.length;){let b=u[g];if(b==="("){d&&u[g-1]===" "?m=!0:g=g-1;break}else if(b===" "||r&&b===")"){g=g-1;break}g++}return{endPosition:g,isEmpty:m}}p.findEndPosition=D;function f(u,s,r,d){r!==s&&(u.expression=A(u.expression,d-s.length+1,d,r).updatedValue)}p.checkAndUpdateExpression=f;function v(u){return u.replace(/(['"])/,"\\$1")}p.escapeQuotes=v},9471:function(x,p,M){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.JoinFilterExpressionParser=void 0;let A=M(9023),F=M(9459),D=M(6487);class f{constructor(s){this.params=s,this.operators=[],this.operatorStartPositions=[],this.operatorEndPositions=[],this.activeOperator=0,this.validationError=null}parseExpression(s){this.operators.push(""),this.operatorStartPositions.push(s),this.operatorEndPositions.push(void 0);let{expression:r}=this.params;for(;s<r.length;){let d=r[s];if(d===" "){if(this.parseOperator(s-1))return this.activeOperator++,s-1;this.operators[this.activeOperator]+=d}else this.operators[this.activeOperator]+=d;s++}return this.parseOperator(s-1),s}isValid(){return!this.validationError&&(!this.operators.length||!!this.parsedOperator)}getValidationError(){return this.validationError}getFunction(){return this.parsedOperator==="OR"?"||":"&&"}getModel(){return this.parsedOperator==="OR"?"OR":"AND"}getAutocompleteListParams(s,r){let d;if(r==null)d="";else{let m=this.operators[r],b=this.operatorEndPositions[r];d=(0,D.getSearchString)(m,s,b==null?this.params.expression.length:b+1)}let g=this.params.advFilterExpSvc.getJoinOperatorAutocompleteEntries();return(r||r==null&&this.activeOperator)&&(g=g.filter(({key:m})=>m===this.parsedOperator)),this.params.advFilterExpSvc.generateAutocompleteListParams(g,"join",d)}updateExpression(s,r,d){var k,R;let{expression:g}=this.params,m=(k=r.displayValue)!=null?k:r.key;if(d===0)for(let T=this.operatorEndPositions.length-1;T>0;T--){let z=this.operatorEndPositions[T];z!=null&&(g=(0,D.updateExpression)(g,this.operatorStartPositions[T],z,m).updatedValue)}let b=this.operatorStartPositions.length>d?this.operatorStartPositions[d]:s,w=(R=this.operatorEndPositions.length>d?this.operatorEndPositions[d]:void 0)!=null?R:(0,D.findEndPosition)(g,s,!0).endPosition;return(0,D.updateExpression)(g,b,w,m,!0)}getNumOperators(){return this.operators.length}getLastOperatorEndPosition(){return this.operatorEndPositions[this.operatorEndPositions.length-1]}parseOperator(s){let r=this.operators.length>this.activeOperator?this.operators[this.activeOperator]:"",d=this.params.advFilterExpSvc.getExpressionJoinOperators(),g=(0,F.findMatch)(r,d,m=>m);if(g){this.operatorEndPositions[this.activeOperator]=s;let m=d[g];if(this.activeOperator){if(g!==this.parsedOperator)return this.validationError||(this.validationError={message:this.params.advFilterExpSvc.translate("advancedFilterValidationJoinOperatorMismatch"),startPosition:s-r.length+1,endPosition:s}),!1}else this.parsedOperator=g;return r!==m&&((0,D.checkAndUpdateExpression)(this.params,r,m,s),this.operators[this.activeOperator]=m),!0}else return g===null?!1:(this.validationError||(this.validationError={message:this.params.advFilterExpSvc.translate("advancedFilterValidationInvalidJoinOperator"),startPosition:s-r.length+1,endPosition:s}),!0)}}class v{constructor(s,r){this.params=s,this.startPosition=r,this.expectingExpression=!0,this.expectingOperator=!1,this.expressionParsers=[],this.operatorParser=new f(this.params),this.missingEndBracket=!1,this.extraEndBracket=!1}parseExpression(){let s=this.startPosition,{expression:r}=this.params;for(;s<r.length;){let d=r[s];if(d==="("&&!this.expectingOperator){let g=new v(this.params,s+1);s=g.parseExpression(),this.expressionParsers.push(g),this.expectingExpression=!1,this.expectingOperator=!0}else{if(d===")")return this.endPosition=s-1,this.startPosition===0&&(this.extraEndBracket=!0),s;if(d!==" ")if(this.expectingExpression){let g=new A.ColFilterExpressionParser(this.params,s);s=g.parseExpression(),this.expressionParsers.push(g),this.expectingExpression=!1,this.expectingOperator=!0}else this.expectingOperator&&(s=this.operatorParser.parseExpression(s),this.expectingOperator=!1,this.expectingExpression=!0)}s++}return this.startPosition>0&&(this.missingEndBracket=!0),s}isValid(){return!this.missingEndBracket&&!this.extraEndBracket&&this.expressionParsers.length===this.operatorParser.getNumOperators()+1&&this.operatorParser.isValid()&&this.expressionParsers.every(s=>s.isValid())}getValidationError(){let s=this.operatorParser.getValidationError();for(let d=0;d<this.expressionParsers.length;d++){let g=this.expressionParsers[d].getValidationError();if(g)return s&&s.startPosition<g.startPosition?s:g}if(s)return s;if(this.extraEndBracket)return{message:this.params.advFilterExpSvc.translate("advancedFilterValidationExtraEndBracket"),startPosition:this.endPosition+1,endPosition:this.endPosition+1};let r;return this.expressionParsers.length===this.operatorParser.getNumOperators()?r="advancedFilterValidationMissingCondition":this.missingEndBracket&&(r="advancedFilterValidationMissingEndBracket"),r?{message:this.params.advFilterExpSvc.translate(r),startPosition:this.params.expression.length,endPosition:this.params.expression.length}:null}getFunctionString(s){let r=this.expressionParsers.length>1,d=this.expressionParsers.map(g=>g.getFunctionString(s)).join(` ${this.operatorParser.getFunction()} `);return r?`(${d})`:d}getFunctionParsed(s){let r=this.operatorParser.getFunction(),d=this.expressionParsers.map(m=>m.getFunctionParsed(s)),g=r==="&&"?"every":"some";return(m,b,w)=>d[g](k=>k(m,b,w))}getAutocompleteListParams(s){if(this.endPosition!=null&&s>this.endPosition+1)return;if(!this.expressionParsers.length)return this.getColumnAutocompleteListParams();let r=this.getExpressionParserIndex(s);if(r==null)return this.params.expression[s]==="("?{enabled:!1}:this.getColumnAutocompleteListParams();let g=this.expressionParsers[r].getAutocompleteListParams(s);if(!g){if(r<this.expressionParsers.length-1)return this.operatorParser.getAutocompleteListParams(s,r);if(this.expressionParsers.length===this.operatorParser.getNumOperators()){let m=this.operatorParser.getLastOperatorEndPosition();return m==null||s<=m+1?this.operatorParser.getAutocompleteListParams(s,this.operatorParser.getNumOperators()-1):this.getColumnAutocompleteListParams()}return this.params.expression[s-1]===")"?{enabled:!1}:this.operatorParser.getAutocompleteListParams(s)}return g}updateExpression(s,r,d){var k;let g=this.params.expression,m=this.getExpressionParserIndex(s);if(m==null){let R=d==="column"?this.params.advFilterExpSvc.getColumnValue(r):(k=r.displayValue)!=null?k:r.key;return(0,D.updateExpression)(g,this.startPosition,this.startPosition,R,!0)}let w=this.expressionParsers[m].updateExpression(s,r,d);return w==null?d==="column"?(0,D.updateExpression)(g,s,g.length-1,this.params.advFilterExpSvc.getColumnValue(r),!0):this.endPosition!=null&&s>this.endPosition+1?null:this.operatorParser.updateExpression(s,r,m):w}getModel(){return this.expressionParsers.length>1?{filterType:"join",type:this.operatorParser.getModel(),conditions:this.expressionParsers.map(s=>s.getModel())}:this.expressionParsers[0].getModel()}getColumnAutocompleteListParams(){return this.params.advFilterExpSvc.generateAutocompleteListParams(this.params.advFilterExpSvc.getColumnAutocompleteEntries(),"column","")}getExpressionParserIndex(s){let r;for(let d=0;d<this.expressionParsers.length&&!(this.expressionParsers[d].startPosition>s);d++)r=d;return r}}p.JoinFilterExpressionParser=v},9206:function(x,p,M){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.EnterpriseCoreModule=p.AgWatermark=void 0;let A=M(3159),F=M(7205);var D=M(3879);Object.defineProperty(p,"AgWatermark",{enumerable:!0,get:function(){return D.AgWatermark}}),p.EnterpriseCoreModule={moduleName:"EnterpriseCore",version:F.VERSION,beans:[A.GridLicenseManager],icons:{accordionOpen:"tree-open",accordionClosed:"tree-closed",accordionIndeterminate:"tree-indeterminate",close:"cross",cancel:"cancel",maximize:"maximize",minimize:"minimize",columnDrag:"grip"},dependsOn:[]}},2529:function(x,p,M){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.AggColumnNameService=void 0;let A=M(6624);class F extends A.BeanStub{constructor(){super(...arguments),this.beanName="aggColNameSvc"}getHeaderName(f,v){var w;if(this.gos.get("suppressAggFuncInHeader"))return v;let{valueColsSvc:u,colModel:s,rowGroupColsSvc:r}=this.beans,d=f.getColDef().pivotValueColumn,g=(0,A._exists)(d),m=null,b;if(g){let k=(w=u==null?void 0:u.columns)!=null?w:[],R=this.gos.get("removePivotHeaderRowWhenSingleValueColumn")&&k.length===1,T=f.getColDef().pivotTotalColumnIds!==void 0;if(R&&!T)return v;m=d?d.getAggFunc():null,b=!0}else{let k=f.isValueActive(),R=s.isPivotMode()||(r==null?void 0:r.columns.length)!==0;k&&R?(m=f.getAggFunc(),b=!0):b=!1}if(b){let k=typeof m=="string"?m:"func";return`${this.getLocaleTextFunc()(k,k)}(${v})`}return v}}p.AggColumnNameService=F},5780:function(x,p,M){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.AggFuncService=void 0;let A=M(6624),F={sum:"Sum",first:"First",last:"Last",min:"Min",max:"Max",count:"Count",avg:"Average"};class D extends A.BeanStub{constructor(){super(...arguments),this.beanName="aggFuncSvc",this.aggFuncsMap={},this.initialised=!1}postConstruct(){this.init()}init(){this.initialised||(this.initialiseWithDefaultAggregations(),this.addAggFuncs(this.gos.get("aggFuncs")))}initialiseWithDefaultAggregations(){let b=this.aggFuncsMap;b.sum=f,b.first=v,b.last=u,b.min=s,b.max=r,b.count=d,b.avg=g,this.initialised=!0}isAggFuncPossible(b,w){let R=this.getFuncNames(b).includes(w),T=(0,A._exists)(this.aggFuncsMap[w]);return R&&T}getDefaultFuncLabel(b){var w;return(w=F[b])!=null?w:b}getDefaultAggFunc(b){let w=b.getColDef().defaultAggFunc;if((0,A._exists)(w)&&this.isAggFuncPossible(b,w))return w;if(this.isAggFuncPossible(b,"sum"))return"sum";let k=this.getFuncNames(b);return k!=null&&k.length?k[0]:null}addAggFuncs(b){this.init(),b&&Object.entries(b).forEach(([w,k])=>{this.aggFuncsMap[w]=k})}getAggFunc(b){return this.init(),this.aggFuncsMap[b]}getFuncNames(b){let w=b.getColDef().allowedAggFuncs;return w==null?Object.keys(this.aggFuncsMap).sort():w}clear(){this.aggFuncsMap={}}}p.AggFuncService=D;function f(m){let{values:b}=m,w=null;for(let k=0;k<b.length;k++){let R=b[k];typeof R=="number"?w===null?w=R:w+=typeof w=="number"?R:BigInt(R):typeof R=="bigint"&&(w===null?w=R:w=(typeof w=="bigint"?w:BigInt(w))+R)}return w}function v(m){return m.values.length>0?m.values[0]:null}function u(m){return m.values.length>0?(0,A._last)(m.values):null}function s(m){let{values:b}=m,w=null;for(let k=0;k<b.length;k++){let R=b[k];(typeof R=="number"||typeof R=="bigint")&&(w===null||w>R)&&(w=R)}return w}function r(m){let{values:b}=m,w=null;for(let k=0;k<b.length;k++){let R=b[k];(typeof R=="number"||typeof R=="bigint")&&(w===null||w<R)&&(w=R)}return w}function d(m){var R,T;let{values:b}=m,w=0;for(let z=0;z<b.length;z++){let G=b[z];w+=G!=null&&typeof G.value=="number"?G.value:1}let k=(T=(R=m.rowNode)==null?void 0:R.aggData)==null?void 0:T[m.column.getColId()];return k&&k.value===w?k:{value:w,toString:function(){return this.value.toString()},toNumber:function(){return this.value}}}function g(m){var z,G,U;let{values:b}=m,w=0,k=0;for(let X=0;X<b.length;X++){let Q=b[X],oe=null;typeof Q=="number"||typeof Q=="bigint"?(oe=Q,k++):Q!=null&&(typeof Q.value=="number"||typeof Q.value=="bigint")&&typeof Q.count=="number"&&(oe=Q.value*(typeof Q.value=="number"?Q.count:BigInt(Q.count)),k+=Q.count),typeof oe=="number"?w+=typeof w=="number"?oe:BigInt(oe):typeof oe=="bigint"&&(w=(typeof w=="bigint"?w:BigInt(w))+oe)}let R=null;k>0&&(R=w/(typeof w=="number"?k:BigInt(k)));let T=(U=(z=m.rowNode)==null?void 0:z.aggData)==null?void 0:U[(G=m.column)==null?void 0:G.getColId()];return T&&T.count===k&&T.value===R?T:{count:k,value:R,toString:function(){return typeof this.value=="number"||typeof this.value=="bigint"?this.value.toString():""},toNumber:function(){return this.value}}}},1872:function(x,p){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.setColumnAggFunc=p.clearAggFuncs=p.addAggFuncs=void 0;function M(D,f){D.aggFuncSvc&&D.aggFuncSvc.addAggFuncs(f)}p.addAggFuncs=M;function A(D){D.aggFuncSvc&&D.aggFuncSvc.clear()}p.clearAggFuncs=A;function F(D,f,v){var u,s;(s=(u=D.valueColsSvc)==null?void 0:u.setColumnAggFunc)==null||s.call(u,f,v,"api")}p.setColumnAggFunc=F},7032:function(x,p,M){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.AggregationModule=p.SharedAggregationModule=void 0;let A=M(9206),F=M(7205),D=M(2529),f=M(5780),v=M(1872),u=M(3438),s=M(6948),r=M(182),d=M(7926);p.SharedAggregationModule={moduleName:"SharedAggregation",version:F.VERSION,beans:[f.AggFuncService,D.AggColumnNameService,r.FooterService,d.ValueColsSvc],apiFunctions:{addAggFuncs:v.addAggFuncs,clearAggFuncs:v.clearAggFuncs,setColumnAggFunc:v.setColumnAggFunc},dependsOn:[A.EnterpriseCoreModule]},p.AggregationModule={moduleName:"Aggregation",version:F.VERSION,beans:[u.AggregationStage,s.FilterAggregatesStage],rowModels:["clientSide"],dependsOn:[p.SharedAggregationModule]}},3438:function(x,p,M){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.AggregationStage=void 0;let A=M(6624);class F extends A.BeanStub{constructor(){super(...arguments),this.beanName="aggStage",this.refreshProps=new Set(["getGroupRowAgg","alwaysAggregateAtRootLevel","suppressAggFilteredOnly","grandTotalRow"]),this.step="aggregate"}wireBeans(f){this.colModel=f.colModel,this.aggFuncSvc=f.aggFuncSvc,this.pivotColsSvc=f.pivotColsSvc,this.valueColsSvc=f.valueColsSvc,this.pivotResultCols=f.pivotResultCols,this.valueSvc=f.valueSvc}execute(f){var r,d,g;let v=!((d=(r=this.valueColsSvc)==null?void 0:r.columns)!=null&&d.length),u=!this.gos.getCallback("getGroupRowAgg");if(v&&u&&((g=f.changedPath)!=null&&g.active))return;let s=this.createAggDetails(f);this.recursivelyCreateAggData(s)}createAggDetails(f){var d;let v=this.colModel.isPivotActive(),u=(d=this.valueColsSvc)==null?void 0:d.columns,s=v&&this.pivotColsSvc?this.pivotColsSvc.columns:[];return{alwaysAggregateAtRootLevel:this.gos.get("alwaysAggregateAtRootLevel"),groupIncludeTotalFooter:!!(0,A._getGrandTotalRow)(this.gos),changedPath:f.changedPath,valueColumns:u!=null?u:[],pivotColumns:s,filteredOnly:!this.isSuppressAggFilteredOnly(),userAggFunc:this.gos.getCallback("getGroupRowAgg")}}isSuppressAggFilteredOnly(){return(0,A._getGroupAggFiltering)(this.gos)!==void 0||this.gos.get("suppressAggFilteredOnly")}recursivelyCreateAggData(f){let v=u=>{if(!u.hasChildren()){u.aggData&&this.setAggData(u,null);return}if(u.level===-1&&!f.groupIncludeTotalFooter){let d=!this.colModel.isPivotMode();if(!f.alwaysAggregateAtRootLevel&&d){this.setAggData(u,null);return}}this.aggregateRowNode(u,f)};f.changedPath.forEachChangedNodeDepthFirst(v,!0)}aggregateRowNode(f,v){let u=v.valueColumns.length===0,s=v.pivotColumns.length===0,r;v.userAggFunc?r=v.userAggFunc({nodes:f.childrenAfterFilter}):u?r=null:s?r=this.aggregateRowNodeUsingValuesOnly(f,v):r=this.aggregateRowNodeUsingValuesAndPivot(f),this.setAggData(f,r),f.sibling&&this.setAggData(f.sibling,r)}aggregateRowNodeUsingValuesAndPivot(f){var r,d,g,m;let v={},u=(g=(d=(r=this.pivotResultCols)==null?void 0:r.getPivotResultCols())==null?void 0:d.list)!=null?g:[],s=!0;for(let b=0;b<u.length;b++){let w=u[b],k=w.getColDef();if(k.pivotTotalColumnIds!=null){s=!1;continue}let R=(m=k.pivotKeys)!=null?m:[],T;f.leafGroup?T=this.getValuesFromMappedSet(f.childrenMapped,R,k.pivotValueColumn):T=this.getValuesPivotNonLeaf(f,k.colId),v[k.colId]=this.aggregateValues(T,k.pivotValueColumn.getAggFunc(),k.pivotValueColumn,f,w)}if(!s)for(let b=0;b<u.length;b++){let w=u[b],k=w.getColDef();if(k.pivotTotalColumnIds==null||!k.pivotTotalColumnIds.length)continue;let R=k.pivotTotalColumnIds.map(T=>v[T]);v[k.colId]=this.aggregateValues(R,k.pivotValueColumn.getAggFunc(),k.pivotValueColumn,f,w)}return v}aggregateRowNodeUsingValuesOnly(f,v){let u={},{changedPath:s,valueColumns:r,filteredOnly:d}=v,g=s.active?s.getValueColumnsForNode(f,r):r,m=s.active?s.getNotValueColumnsForNode(f,r):null,b=this.getValuesNormal(f,g,d),w=f.aggData;return g.forEach((k,R)=>{u[k.getId()]=this.aggregateValues(b[R],k.getAggFunc(),k,f)}),m&&w&&m.forEach(k=>{u[k.getId()]=w[k.getId()]}),u}getValuesPivotNonLeaf(f,v){return f.childrenAfterFilter.map(u=>u.aggData[v])}getValuesFromMappedSet(f,v,u){let s=f;for(let r=0;r<v.length;r++){let d=v[r];s=s?s[d]:null}return s?s.map(r=>this.valueSvc.getValue(u,r)):[]}getValuesNormal(f,v,u){let s=[];v.forEach(()=>s.push([]));let r=v.length,d=u?f.childrenAfterFilter:f.childrenAfterGroup,g=d.length;for(let m=0;m<g;m++){let b=d[m];for(let w=0;w<r;w++){let k=v[w],R=this.valueSvc.getValue(k,b);s[w].push(R)}}return s}aggregateValues(f,v,u,s,r){let d=typeof v=="string"?this.aggFuncSvc.getAggFunc(v):v;if(typeof d!="function")return(0,A._error)(109,{aggFuncOrString:v}),null;let g=d,m=this.gos.addGridCommonParams({values:f,column:u,colDef:u?u.getColDef():void 0,pivotResultColumn:r,rowNode:s,data:s?s.data:void 0});return g(m)}setAggData(f,v){let u=f.aggData;if(f.aggData=v,f.__localEventService){let s=r=>{let d=f.aggData?f.aggData[r]:void 0,g=u?u[r]:void 0;if(d===g)return;let m=this.colModel.getCol(r);m&&f.dispatchCellChangedEvent(m,d,g)};if(u)for(let r of Object.keys(u))s(r);if(v)for(let r of Object.keys(v))(!u||!(r in u))&&s(r)}}}p.AggregationStage=F},6948:function(x,p,M){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.FilterAggregatesStage=void 0;let A=M(6624);class F extends A.BeanStub{constructor(){super(...arguments),this.beanName="filterAggStage",this.refreshProps=new Set([]),this.step="filter_aggregates"}wireBeans(f){this.filterManager=f.filterManager}execute(f){var w,k;let v=this.beans.colModel.isPivotMode(),u=((w=this.filterManager)==null?void 0:w.isAggregateFilterPresent())||((k=this.filterManager)==null?void 0:k.isAggregateQuickFilterPresent()),s=R=>!R.node.group,r=R=>R.node.leafGroup,d=(0,A._getGroupAggFiltering)(this.gos)||(v?r:s),{changedPath:g}=f,m=(R,T=!1)=>{R.childrenAfterFilter&&(R.childrenAfterAggFilter=R.childrenAfterFilter,T&&R.childrenAfterAggFilter.forEach(z=>m(z,T)),this.setAllChildrenCount(R)),R.sibling&&(R.sibling.childrenAfterAggFilter=R.childrenAfterAggFilter)},b=R=>{var T;R.childrenAfterAggFilter=((T=R.childrenAfterFilter)==null?void 0:T.filter(z=>{var X;return d({node:z})&&this.filterManager.doesRowPassAggregateFilters({rowNode:z})?(m(z,!0),!0):(X=z.childrenAfterAggFilter)==null?void 0:X.length}))||null,this.setAllChildrenCount(R),R.sibling&&(R.sibling.childrenAfterAggFilter=R.childrenAfterAggFilter)};g.forEachChangedNodeDepthFirst(u?b:m,!0)}setAllChildrenCountTreeData(f){var s;let v=f.childrenAfterAggFilter,u=0;if(v){let r=v.length;u=r;for(let d=0;d<r;++d)u+=(s=v[d].allChildrenCount)!=null?s:0}f.setAllChildrenCount(u===0&&f.level>=0?null:u)}setAllChildrenCountGridGrouping(f){let v=0;f.childrenAfterAggFilter.forEach(u=>{u.group?v+=u.allChildrenCount:v++}),f.setAllChildrenCount(v)}setAllChildrenCount(f){if(!f.hasChildren()){f.setAllChildrenCount(null);return}this.gos.get("treeData")?this.setAllChildrenCountTreeData(f):this.setAllChildrenCountGridGrouping(f)}}p.FilterAggregatesStage=F},182:function(x,p,M){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.FooterService=void 0;let A=M(6624),F=M(6432);class D extends A.BeanStub{constructor(){super(...arguments),this.beanName="footerSvc"}addNodes(v,u,s,r,d,g){var z;let m=(z=u[0])==null?void 0:z.parent;if(!m)return;let{index:b}=v,w=r&&(0,A._getGrandTotalRow)(this.gos),k=(0,A._getGroupTotalRowCallback)(this.gos),R=r&&k({node:m});if(m===d){w===g&&((0,F._createRowNodeFooter)(m,this.beans),s(m.sibling,b++));return}R===g&&((0,F._createRowNodeFooter)(m,this.beans),s(m.sibling,b++))}getTopDisplayIndex(v,u,s,r){let d=u;if(v[0].footer){if(u===0)return 0;d-=1}let g=v[v.length-1],m=d>=s.length;return g.footer&&m?g.rowIndex:r(d)}}p.FooterService=D},6432:function(x,p,M){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p._destroyRowNodeFooter=p._createRowNodeFooter=void 0;let A=M(6624),F=new Set(["__localEventService","__objectId","sticky","__autoHeights","__checkAutoHeightsDebounced"]);function D(v,u){if(v.sibling)return;let s=new A.RowNode(u);Object.keys(v).forEach(r=>{F.has(r)||(s[r]=v[r])}),s.footer=!0,s.setRowTop(null),s.setRowIndex(null),s.oldRowTop=null,s.id="rowGroupFooter_"+v.id,s.sibling=v,v.sibling=s}p._createRowNodeFooter=D;function f(v){v.sibling&&(v.sibling.setRowTop(null),v.sibling.setRowIndex(null),v.sibling=void 0)}p._destroyRowNodeFooter=f},7926:function(x,p,M){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.ValueColsSvc=void 0;let A=M(6624);class F extends A.BaseColsService{constructor(){super(...arguments),this.beanName="valueColsSvc",this.eventName="columnValueChanged",this.columnProcessors={set:(f,v,u)=>this.setValueActive(v,f,u),add:(f,v,u)=>this.setValueActive(!0,f,u),remove:(f,v,u)=>this.setValueActive(!1,f,u)},this.columnExtractors={setFlagFunc:(f,v,u)=>this.setColValueActive(f,v,u),getIndexFunc:()=>{},getInitialIndexFunc:()=>{},getValueFunc:f=>{let v=f.aggFunc;if(v===null||v==="")return null;if(v!==void 0)return!!v},getInitialValueFunc:f=>f.initialAggFunc!=null&&f.initialAggFunc!=""},this.modifyColumnsNoEventsCallbacks={addCol:f=>this.columns.push(f),removeCol:f=>(0,A._removeFromArray)(this.columns,f)}}extractCols(f,v){return this.columns=super.extractCols(f,v),this.columns.forEach(u=>{let s=u.getColDef();s.aggFunc!=null&&s.aggFunc!=""?this.setColAggFunc(u,s.aggFunc):u.getAggFunc()||this.setColAggFunc(u,s.initialAggFunc)}),this.columns}setColumnAggFunc(f,v,u){if(!f)return;let s=this.colModel.getColDefCol(f);s&&(this.setColAggFunc(s,v),this.dispatchColumnChangedEvent(this.eventSvc,this.eventName,[s],u))}syncColumnWithState(f,v,u){let s=u("aggFunc").value1;s!==void 0&&(typeof s=="string"?(this.setColAggFunc(f,s),f.isValueActive()||(this.setColValueActive(f,!0,v),this.modifyColumnsNoEventsCallbacks.addCol(f))):((0,A._exists)(s)&&(0,A._warn)(33),f.isValueActive()&&(this.setColValueActive(f,!1,v),this.modifyColumnsNoEventsCallbacks.removeCol(f))))}setValueActive(f,v,u){if(f!==v.isValueActive()&&(this.setColValueActive(v,f,u),f&&!v.getAggFunc()&&this.aggFuncSvc)){let s=this.aggFuncSvc.getDefaultAggFunc(v);this.setColAggFunc(v,s)}}setColAggFunc(f,v){f.aggFunc=v,f.dispatchStateUpdatedEvent("aggFunc")}setColValueActive(f,v,u){f.aggregationActive!==v&&(f.aggregationActive=v,f.dispatchColEvent("columnValueChanged",u))}}p.ValueColsSvc=F},1809:function(x,p,M){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.AllEnterpriseModule=void 0;let A=M(6624),F=M(7976),D=M(1527),f=M(3766),v=M(6455),u=M(2886),s=M(2515),r=M(1594),d=M(7130),g=M(5434),m=M(5470),b=M(266),w=M(9327),k=M(1442),R=M(9074),T=M(9002),z=M(6358),G=M(2949),U=M(8450),X=M(9428),Q=M(7205),oe=M(7794),le=[A.AllCommunityModule,f.ClipboardModule,v.ColumnsToolPanelModule,u.ExcelExportModule,s.FiltersToolPanelModule,r.MasterDetailModule,d.ColumnMenuModule,d.ContextMenuModule,b.CellSelectionModule,w.RichSelectModule,k.RowGroupingModule,k.RowGroupingPanelModule,k.GroupFilterModule,R.ServerSideRowModelModule,R.ServerSideRowModelApiModule,T.SetFilterModule,g.MultiFilterModule,F.AdvancedFilterModule,z.SideBarModule,U.StatusBarModule,oe.ViewportRowModelModule,m.PivotModule,X.TreeDataModule],fe="AllEnterprise";p.AllEnterpriseModule={with:ye=>({moduleName:fe,version:Q.VERSION,dependsOn:[...le,D.IntegratedChartsModule.with(ye),G.SparklinesModule.with(ye)]}),moduleName:fe,version:Q.VERSION,dependsOn:le}},7672:function(x,p,M){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.SkeletonCellRendererModule=p.LoadingCellRendererModule=void 0;let A=M(9206),F=M(7205),D=M(1565),f=M(780);p.LoadingCellRendererModule={moduleName:"LoadingCellRenderer",version:F.VERSION,userComponents:{agLoadingCellRenderer:D.LoadingCellRenderer},icons:{groupLoading:"loading"},dependsOn:[A.EnterpriseCoreModule]},p.SkeletonCellRendererModule={moduleName:"SkeletonCellRenderer",version:F.VERSION,userComponents:{agSkeletonCellRenderer:f.SkeletonCellRenderer},dependsOn:[A.EnterpriseCoreModule]}},1565:function(x,p,M){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.LoadingCellRenderer=void 0;let A=M(6624);class F extends A.Component{constructor(){super(`<div class="ag-loading">
            <span class="ag-loading-icon" data-ref="eLoadingIcon"></span>
            <span class="ag-loading-text" data-ref="eLoadingText"></span>
        </div>`),this.eLoadingIcon=A.RefPlaceholder,this.eLoadingText=A.RefPlaceholder}init(f){f.node.failedLoad?this.setupFailed():this.setupLoading()}setupFailed(){let f=this.getLocaleTextFunc();this.eLoadingText.innerText=f("loadingError","ERR")}setupLoading(){let f=(0,A._createIconNoSpan)("groupLoading",this.beans,null);f&&this.eLoadingIcon.appendChild(f);let v=this.getLocaleTextFunc();this.eLoadingText.innerText=v("loadingOoo","Loading")}refresh(f){return!1}}p.LoadingCellRenderer=F},780:function(x,p,M){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.SkeletonCellRenderer=void 0;let A=M(6624);class F extends A.Component{constructor(){super('<div class="ag-skeleton-container"></div>')}init(f){let v=`ag-cell-skeleton-renderer-${this.getCompId()}`;this.getGui().setAttribute("id",v),this.addDestroyFunc(()=>(0,A._setAriaLabelledBy)(f.eParentOfValue)),(0,A._setAriaLabelledBy)(f.eParentOfValue,v),f.node.failedLoad?this.setupFailed():this.setupLoading(f)}setupFailed(){let f=this.getLocaleTextFunc();this.getGui().innerText=f("loadingError","ERR");let v=f("ariaSkeletonCellLoadingFailed","Row failed to load");(0,A._setAriaLabel)(this.getGui(),v)}setupLoading(f){let u=(0,A._getDocument)(this.beans).createElement("div");u.classList.add("ag-skeleton-effect");let s=f.node.rowIndex;if(s!=null){let g=75+25*(s%2===0?Math.sin(s):Math.cos(s));u.style.width=`${g}%`}this.getGui().appendChild(u);let d=this.getLocaleTextFunc()("ariaSkeletonCellLoading","Row data is loading");(0,A._setAriaLabel)(this.getGui(),d)}refresh(f){return!1}}p.SkeletonCellRenderer=F},2459:function(x,p,M){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.AgChartsExports=void 0;let A=M(6624);class F extends A.BeanStub{constructor(f){super(),this.beanName="agChartsExports",this.isEnterprise=!1,this.create=f.create,this._Theme=f._Theme,this._Scene=f._Scene,this.isEnterprise=f.isEnterprise,this._Util=f._Util}}p.AgChartsExports=F},3251:function(x,p,M){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.ChartController=p.DEFAULT_THEMES=void 0;let A=M(6624),F=M(8987),D=M(8592),f=M(8889),v=M(4237);p.DEFAULT_THEMES=["ag-default","ag-material","ag-sheets","ag-polychroma","ag-vivid"];class u extends A.BeanStub{wireBeans(r){this.rangeSvc=r.rangeSvc,this.agChartsExports=r.agChartsExports}constructor(r){super(),this.model=r,this.isEnterprise=()=>this.agChartsExports.isEnterprise}postConstruct(){this.setChartRange(),this.model.unlinked&&this.rangeSvc&&this.rangeSvc.setCellRanges([]);let r=this.updateForGridChange.bind(this,{});this.addManagedEventListeners({cellSelectionChanged:d=>{d.id&&d.id===this.model.chartId&&this.updateForRangeChange()},columnMoved:r,columnPinned:r,columnVisible:r,columnRowGroupChanged:r,modelUpdated:r,cellValueChanged:this.updateForDataChange.bind(this)})}update(r){if(!this.validUpdateType(r))return!1;let d=(0,f.validateUpdateParams)(r,this.agChartsExports.isEnterprise);if(!d)return!1;let g=d===!0?r:d;return this.applyValidatedChartParams(g),!0}applyValidatedChartParams(r){var T,z,G,U,X,Q,oe,le,fe;let{chartId:d,chartType:g,chartThemeName:m,unlinkChart:b}=r,w={chartId:d,pivotChart:this.model.pivotChart,chartType:g!=null?g:this.model.chartType,chartThemeName:m!=null?m:this.model.chartThemeName,unlinkChart:b!=null?b:this.model.unlinked,cellRange:this.model.suppliedCellRange,switchCategorySeries:this.model.switchCategorySeries,aggFunc:this.model.aggFunc,seriesChartTypes:void 0,suppressChartRanges:!1,crossFiltering:!1},k=pe({},w);switch(r.type){case"rangeChartUpdate":k.cellRange=(T=this.createCellRange(r))!=null?T:this.model.suppliedCellRange,k.switchCategorySeries=(z=r.switchCategorySeries)!=null?z:this.model.switchCategorySeries,k.aggFunc=(G=r.aggFunc)!=null?G:this.model.aggFunc,k.seriesChartTypes=r.seriesChartTypes,k.suppressChartRanges=(U=r.suppressChartRanges)!=null?U:this.model.suppressChartRanges,k.seriesGroupType=(X=r.seriesGroupType)!=null?X:this.model.seriesGroupType;break;case"crossFilterChartUpdate":k.cellRange=(Q=this.createCellRange(r))!=null?Q:this.model.suppliedCellRange,k.switchCategorySeries=!1,k.aggFunc=(oe=r.aggFunc)!=null?oe:this.model.aggFunc,k.crossFiltering=!0,k.suppressChartRanges=(le=r.suppressChartRanges)!=null?le:this.model.suppressChartRanges;break;case"pivotChartUpdate":k.switchCategorySeries=!1;break}this.model.updateModel(k),k.unlinkChart||k.suppressChartRanges?(fe=this.rangeSvc)==null||fe.setCellRanges([]):this.setChartRange()}updateForGridChange(r){if(this.model.unlinked)return;let{maintainColState:d,setColsFromRange:g}=r!=null?r:{};this.model.updateCellRanges({maintainColState:d,setColsFromRange:g}),this.model.updateData(),this.setChartRange()}updateForDataChange(){this.model.unlinked||(this.model.updateData(),this.raiseChartModelUpdateEvent())}updateForRangeChange(){this.updateForGridChange({setColsFromRange:!0}),this.raiseChartRangeSelectionChangedEvent()}updateForPanelChange(r){this.model.updateCellRanges(r),this.model.updateData(),r.skipAnimation&&this.getChartProxy().getChartRef().skipAnimations(),this.setChartRange(),this.raiseChartRangeSelectionChangedEvent()}updateThemeOverrides(r){this.chartProxy.updateThemeOverrides(r)}getChartUpdateParams(r){let g=this.getSelectedValueColState().map(k=>({colId:k.colId,displayName:k.displayName})),m=this.getChartData(),b=this.getSelectedDimensions(),w={data:m,groupData:this.model.groupChartData,grouping:this.isGrouping(),categories:b.map(k=>{var R;return{id:k.colId,name:k.displayName,chartDataType:(R=this.model.categoryAxisType)!=null?R:this.model.getChartDataType(k.colId)}}),fields:g,chartId:this.getChartId(),getCrossFilteringContext:()=>({lastSelectedChartId:"xxx"}),seriesChartTypes:this.getSeriesChartTypes(),updatedOverrides:r,seriesGroupType:this.model.seriesGroupType};return this.isCategorySeriesSwitched()?this.invertCategorySeriesParams(w):w}invertCategorySeriesParams(r){let[d]=r.categories,g=[{id:D.DEFAULT_CHART_CATEGORY,name:""}],m=r.data.map((w,k)=>{let R=`${d.id}:${k}`,T=w[d.id],z=T==null?"":String(T);return{colId:R,displayName:z}}),b=r.fields.map(w=>{let k={[D.DEFAULT_CHART_CATEGORY]:w.displayName};for(let[R,T]of r.data.entries()){let z=`${d.id}:${R}`,G=T[w.colId];k[z]=G}return k});return et(pe({},r),{categories:g,fields:m,data:b})}getChartModel(){let r=this.model.pivotChart?"pivot":"range",d=this.isComboChart()?this.model.comboChartModel.seriesChartTypes:void 0;return{modelType:r,chartId:this.model.chartId,chartType:this.model.chartType,chartThemeName:this.getChartThemeName(),chartOptions:this.chartProxy.getChartThemeOverrides(),chartPalette:this.chartProxy.getChartPalette(),cellRange:this.getCellRangeParams(),switchCategorySeries:this.model.switchCategorySeries,suppressChartRanges:this.model.suppressChartRanges,aggFunc:this.model.aggFunc,unlinkChart:this.model.unlinked,seriesChartTypes:d,seriesGroupType:this.model.seriesGroupType}}getChartId(){return this.model.chartId}getChartData(){return this.model.chartData}getChartType(){return this.model.chartType}setChartType(r){this.updateMultiSeriesAndCategory(this.model.chartType,r),this.model.chartType=r,this.model.comboChartModel.updateSeriesChartTypes(),this.model.switchCategorySeries=!1,this.model.categoryAxisType=void 0,this.model.seriesGroupType=void 0,this.raiseChartModelUpdateEvent(),this.raiseChartOptionsChangedEvent()}isCategorySeriesSwitched(){return this.model.switchCategorySeries&&!this.model.isGrouping()}switchCategorySeries(r){(0,v.supportsInvertedCategorySeries)(this.getChartType())&&(this.model.switchCategorySeries=r,this.raiseChartModelUpdateEvent())}getAggFunc(){return this.model.aggFunc}setAggFunc(r,d){this.model.aggFunc!==r&&(this.model.aggFunc=r,!d&&(this.model.updateData(),this.raiseChartModelUpdateEvent()))}updateMultiSeriesAndCategory(r,d){var R,T;let g=(z,G)=>{let U=0;for(let X of z)X.selected&&(U>=G?X.selected=!1:U++);U===0&&(z[0].selected=!0)},m=(0,v.getMaxNumCategories)(d),b=(0,v.getMaxNumSeries)(d),w=m!=null&&((R=(0,v.getMaxNumCategories)(r))!=null?R:100)>(m!=null?m:100),k=b!=null&&((T=(0,v.getMaxNumSeries)(r))!=null?T:100)>(b!=null?b:100);w&&g(this.model.dimensionColState,m),k&&g(this.model.valueColState,b),(w||k)&&(this.model.resetCellRanges(w,k),this.setChartRange(!0))}setChartThemeName(r,d){this.model.chartThemeName=r,d||(this.raiseChartModelUpdateEvent(),this.raiseChartOptionsChangedEvent())}getChartThemeName(){return this.model.chartThemeName}isPivotChart(){return this.model.pivotChart}isPivotMode(){return this.model.isPivotMode()}isGrouping(){return this.model.isGrouping()}isCrossFilterChart(){return this.model.crossFiltering}getThemeNames(){return this.gos.get("chartThemes")||p.DEFAULT_THEMES}getThemes(){return this.getThemeNames().map(d=>{let m=(0,F.isStockTheme)(d,this.agChartsExports._Theme)?d:this.chartProxy.lookupCustomChartTheme(d);return this.agChartsExports._Theme.getChartTheme(m)})}getPalettes(){return this.getThemes().map(d=>d.palette)}getThemeTemplateParameters(){return this.getThemes().map(d=>d.getTemplateParameters())}getValueColState(){return this.model.valueColState.map(this.displayNameMapper.bind(this))}getSelectedValueColState(){return this.getValueColState().filter(r=>r.selected)}getSelectedDimensions(){return this.model.getSelectedDimensions()}displayNameMapper(r){let{column:d}=r;if(d)r.displayName=this.model.getColDisplayName(d,this.model.isPivotMode());else{let g=this.model.colNames[r.colId];r.displayName=g?g.join(" - "):this.model.getColDisplayName(d)}return r}getColStateForMenu(){return{dimensionCols:this.model.dimensionColState,valueCols:this.getValueColState()}}setChartRange(r=!1){this.rangeSvc&&!this.model.suppressChartRanges&&!this.model.unlinked&&this.rangeSvc.setCellRanges(this.getCellRanges()),r||this.raiseChartModelUpdateEvent()}detachChartRange(){this.model.unlinked=!this.model.unlinked,this.model.unlinked?this.rangeSvc&&this.rangeSvc.setCellRanges([]):this.updateForGridChange(),this.dispatchLocalEvent({type:"chartLinkedChanged"})}setChartProxy(r){this.chartProxy=r}getChartProxy(){return this.chartProxy}isActiveXYChart(){return["scatter","bubble"].includes(this.getChartType())}isChartLinked(){return!this.model.unlinked}customComboExists(){let r=this.model.comboChartModel.savedCustomSeriesChartTypes;return r&&r.length>0}getSeriesChartTypes(){return this.model.comboChartModel.seriesChartTypes}isComboChart(r){return this.model.isComboChart(r)}updateSeriesChartType(r,d,g){let m=this.model.comboChartModel.seriesChartTypes.find(b=>b.colId===r);if(m){let b=this.model.chartType!=="customCombo";b&&(this.model.chartType="customCombo");let w=m.chartType;d!=null&&(m.chartType=d),g!=null&&(m.secondaryAxis=g),this.model.comboChartModel.savedCustomSeriesChartTypes=this.model.comboChartModel.seriesChartTypes,this.model.comboChartModel.updateSeriesChartTypes(),this.updateForDataChange(),b&&this.dispatchLocalEvent({type:"chartTypeChanged"}),w!==d&&this.dispatchLocalEvent({type:"chartSeriesChartTypeChanged"}),this.raiseChartOptionsChangedEvent()}}getActiveSeriesChartTypes(){let r=this.getSelectedValueColState().map(d=>d.colId);return this.getSeriesChartTypes().filter(d=>r.includes(d.colId))}getChartSeriesTypes(r){let d=r!=null?r:this.getChartType();return this.isComboChart(d)?["line","bar","area"]:[(0,v.getSeriesType)(d)]}getChartSeriesType(){let r=this.getSeriesChartTypes();if(r.length===0)return"bar";let d=r[0].chartType;return d==="columnLineCombo"?"bar":d==="areaColumnCombo"?"area":(0,v.getSeriesType)(d)}getCellRanges(){return[this.model.dimensionCellRange,this.model.valueCellRange].filter(r=>r)}createCellRange(r){var d;return r.cellRange&&((d=this.rangeSvc)==null?void 0:d.createPartialCellRangeFromRangeParams(r.cellRange,!0))}validUpdateType(r){var b;if(!r.type)return(0,A._warn)(136),!1;let d={"Range Chart":()=>!this.isPivotChart()&&!this.isCrossFilterChart(),"Pivot Chart":()=>this.isPivotChart(),"Cross Filter Chart":()=>this.isCrossFilterChart()},g=(b=Object.keys(d).find(w=>d[w]()))!=null?b:"Range Chart",m=r.type===`${g[0].toLowerCase()}${g.slice(1).replace(/ /g,"")}Update`;return m||(0,A._warn)(137,{currentChartType:g,type:r.type}),m}getCellRangeParams(){let r=this.getCellRanges(),d=r[0],g=d&&d.startRow||null,m=d&&d.endRow||null;return{rowStartIndex:g&&g.rowIndex,rowStartPinned:g&&g.rowPinned,rowEndIndex:m&&m.rowIndex,rowEndPinned:m&&m.rowPinned,columns:r.reduce((b,w)=>b.concat(w.columns.map(k=>k.getId())),[])}}setCategoryAxisType(r){this.model.categoryAxisType=r,this.raiseChartModelUpdateEvent()}getSeriesGroupType(){var r;return(r=this.model.seriesGroupType)!=null?r:this.chartProxy.getSeriesGroupType()}setSeriesGroupType(r){this.model.seriesGroupType=r,this.raiseChartModelUpdateEvent()}raiseChartModelUpdateEvent(){this.dispatchLocalEvent({type:"chartModelUpdate"})}raiseChartUpdatedEvent(){this.dispatchLocalEvent({type:"chartUpdated"})}raiseChartApiUpdateEvent(){this.dispatchLocalEvent({type:"chartApiUpdate"})}raiseChartOptionsChangedEvent(){let{chartId:r,chartType:d}=this.getChartModel();this.eventSvc.dispatchEvent({type:"chartOptionsChanged",chartId:r,chartType:d,chartThemeName:this.getChartThemeName(),chartOptions:this.chartProxy.getChartThemeOverrides()})}raiseChartRangeSelectionChangedEvent(){this.eventSvc.dispatchEvent({type:"chartRangeSelectionChanged",id:this.model.chartId,chartId:this.model.chartId,cellRange:this.getCellRangeParams()})}destroy(){super.destroy(),this.rangeSvc&&this.rangeSvc.setCellRanges([])}}p.ChartController=u},7216:function(x,p,M){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.AreaChartProxy=void 0;let A=M(8631);class F extends A.CartesianChartProxy{constructor(f){super(f)}getAxes(f){let v=[{type:this.getXAxisType(f),position:"bottom"},{type:"number",position:"left"}];if(this.isNormalised()){let u=v[1];u.label=et(pe({},u.label),{formatter:s=>Math.round(s.value)+"%"})}return v}getSeries(f){let[v]=f.categories,u=f.fields.map(s=>({type:this.standaloneChartType,xKey:v.id,xName:v.name,yKey:s.colId,yName:s.displayName,normalizedTo:this.chartType==="normalizedArea"?100:void 0,stacked:["normalizedArea","stackedArea"].includes(this.chartType)}));return this.crossFiltering?this.extractLineAreaCrossFilterSeries(u,f):u}isNormalised(){return!this.crossFiltering&&this.chartType==="normalizedArea"}}p.AreaChartProxy=F},3116:function(x,p,M){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.BarChartProxy=void 0;let A=M(3610),F=M(4237),D=M(8631),f=new Set(["bar","groupedBar","stackedBar","normalizedBar"]);class v extends D.CartesianChartProxy{constructor(s){super(s)}getAxes(s){let r=[{type:this.getXAxisType(s),position:this.isHorizontal()?"left":"bottom"},{type:"number",position:this.isHorizontal()?"bottom":"left"}];if(this.isNormalised()){let d=r[1];d.label=et(pe({},d.label),{formatter:g=>Math.round(g.value)+"%"})}return r}getSeries(s){let[r]=s.categories,d=s.fields.map(g=>({type:this.standaloneChartType,direction:this.isHorizontal()?"horizontal":"vertical",stacked:this.crossFiltering||(0,F.isStacked)(this.chartType),normalizedTo:this.isNormalised()?100:void 0,xKey:r.id,xName:r.name,yKey:g.colId,yName:g.displayName}));return this.crossFiltering?this.extractCrossFilterSeries(d):d}extractCrossFilterSeries(s){let r=this.getChartPalette(),d=(b,w)=>{var k,R;return et(pe({},b),{highlightStyle:{item:{fill:void 0}},fill:(k=r==null?void 0:r.fills)==null?void 0:k[w],stroke:(R=r==null?void 0:r.strokes)==null?void 0:R[w],listeners:{nodeClick:this.crossFilterCallback}})},g=b=>{let w=b.yKey+"-filtered-out";return et(pe({},b),{yKey:w,fill:(0,A.hexToRGBA)(b.fill,"0.3"),stroke:(0,A.hexToRGBA)(b.stroke,"0.3"),showInLegend:!1})},m=[];for(let b=0;b<s.length;b++){let w=s[b];m.push(d(w,b)),m.push(g(d(w,b)))}return m}isNormalised(){let s=["normalizedColumn","normalizedBar"];return!this.crossFiltering&&s.includes(this.chartType)}isHorizontal(){return f.has(this.chartType)}}p.BarChartProxy=v},8631:function(x,p,M){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.CartesianChartProxy=void 0;let A=M(6738);class F extends A.ChartProxy{constructor(f){super(f),this.crossFilteringAllPoints=new Set,this.crossFilteringSelectedPoints=[]}getUpdateOptions(f,v){let u=this.getAxes(f,v);return et(pe({},v),{data:this.getData(f,u),axes:u,series:this.getSeries(f)})}getData(f,v){let u=["area","line"].includes(this.standaloneChartType);return this.crossFiltering&&u?this.getCrossFilterData(f):this.getDataTransformedData(f,v)}getDataTransformedData(f,v){let u=v[0].type,{categories:s,data:r}=f,[d]=s;switch(u){case"category":return this.transformCategoryData(r,d.id);case"time":return this.transformTimeData(r,d.id);default:return r}}getXAxisType(f){return f.grouping?"grouped-category":this.isXAxisOfType(f,"time",v=>v instanceof Date)?"time":this.isXAxisOfType(f,"number")?"number":"category"}isXAxisOfType(f,v,u){let[s]=f.categories;if(s!=null&&s.chartDataType)return s.chartDataType===v;if(!u)return!1;let r=f.data[0];return r?u(r[s.id]):!1}transformTimeData(f,v){var s;return((s=f[0])==null?void 0:s[v])instanceof Date?f:f.map(r=>{let d=r[v];return typeof d=="string"?et(pe({},r),{[v]:new Date(d)}):r})}crossFilteringReset(){this.crossFilteringSelectedPoints=[],this.crossFilteringAllPoints.clear()}crossFilteringPointSelected(f){return this.crossFilteringSelectedPoints.length==0||this.crossFilteringSelectedPoints.includes(f)}crossFilteringDeselectedPoints(){return this.crossFilteringSelectedPoints.length>0&&this.crossFilteringAllPoints.size!==this.crossFilteringSelectedPoints.length}extractLineAreaCrossFilterSeries(f,v){let[u]=v.categories,s=r=>this.standaloneChartType==="area"?v.getCrossFilteringContext().lastSelectedChartId===v.chartId?r+"-total":r:r+"-total";return f.map(r=>(r.yKey=s(r.yKey),r.listeners={nodeClick:d=>{let g=d.datum[r.xKey],m=d.event.metaKey||d.event.ctrlKey;this.crossFilteringAddSelectedPoint(m,g),this.crossFilterCallback(d)}},r.marker={itemStyler:d=>{let g=d.datum[u.id];return{fill:d.highlighted?"yellow":d.fill,size:d.highlighted?14:this.crossFilteringPointSelected(g)?8:0}}},this.standaloneChartType==="area"&&(r.fillOpacity=this.crossFilteringDeselectedPoints()?.3:1),this.standaloneChartType==="line"&&(r.strokeOpacity=this.crossFilteringDeselectedPoints()?.3:1),r))}getCrossFilterData(f){this.crossFilteringAllPoints.clear();let[v]=f.categories,u=f.fields[0].colId,s=`${u}-filtered-out`,r=f.getCrossFilteringContext().lastSelectedChartId;return f.data.map(d=>{let g=d[v.id];this.crossFilteringAllPoints.add(g);let m=this.crossFilteringPointSelected(g);return this.standaloneChartType==="area"&&r===f.chartId&&(d[`${u}-total`]=m?d[u]:d[u]+d[s]),this.standaloneChartType==="line"&&(d[`${u}-total`]=m?d[u]:d[u]+d[s]),d})}crossFilteringAddSelectedPoint(f,v){f?this.crossFilteringSelectedPoints.push(v):this.crossFilteringSelectedPoints=[v]}isHorizontal(f){let v=this.standaloneChartType;if(v!=="waterfall"&&v!=="box-plot"&&v!=="range-bar")return!1;let u=f.theme,s=r=>{var g,m,b;let d=(b=(m=(g=r==null?void 0:r.overrides)==null?void 0:g[v])==null?void 0:m.series)==null?void 0:b.direction;return d!=null?d==="horizontal":typeof(r==null?void 0:r.baseTheme)=="object"?s(r.baseTheme):!1};return s(u)}}p.CartesianChartProxy=F},1051:function(x,p,M){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.HistogramChartProxy=void 0;let A=M(8631);class F extends A.CartesianChartProxy{constructor(f){super(f)}getSeries(f){let v=f.fields[0];return[{type:this.standaloneChartType,xKey:v.colId,xName:v.displayName,yName:this.chartProxyParams.translate("histogramFrequency"),areaPlot:!1}]}getAxes(f){return[{type:"number",position:"bottom"},{type:"number",position:"left"}]}}p.HistogramChartProxy=F},9235:function(x,p,M){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.LineChartProxy=void 0;let A=M(8631);class F extends A.CartesianChartProxy{constructor(f){super(f)}getAxes(f){let v=[{type:this.getXAxisType(f),position:"bottom"},{type:"number",position:"left"}];if(this.isNormalised()){let u=v[1];u.label=et(pe({},u.label),{formatter:s=>Math.round(s.value)+"%"})}return v}getSeries(f){let[v]=f.categories,u=["normalizedLine","stackedLine"].includes(this.chartType),s=f.fields.map(r=>({type:this.standaloneChartType,xKey:v.id,xName:v.name,yKey:r.colId,yName:r.displayName,normalizedTo:u&&this.isNormalised()?100:void 0,stacked:u}));return this.crossFiltering?this.extractLineAreaCrossFilterSeries(s,f):s}isNormalised(){let f=["normalizedLine"];return!this.crossFiltering&&f.includes(this.chartType)}}p.LineChartProxy=F},7015:function(x,p,M){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.ScatterChartProxy=void 0;let A=M(8592),F=M(8631);class D extends F.CartesianChartProxy{constructor(v){super(v)}getAxes(v){return[{type:"number",position:"bottom"},{type:"number",position:"left"}]}getSeries(v){let[u]=v.categories,s=this.isPaired(),r=this.getSeriesDefinitions(v.fields,s),d=u.id===A.DEFAULT_CHART_CATEGORY?void 0:u,g=r.map(m=>{var w,k,R,T,z;return m!=null&&m.sizeField?{type:"bubble",xKey:m.xField.colId,xName:(w=m.xField.displayName)!=null?w:void 0,yKey:m.yField.colId,yName:(k=m.yField.displayName)!=null?k:void 0,title:`${m.yField.displayName} vs ${m.xField.displayName}`,sizeKey:m.sizeField.colId,sizeName:(R=m.sizeField.displayName)!=null?R:"",labelKey:d?d.id:m.yField.colId,labelName:d?d.name:void 0}:{type:"scatter",xKey:m.xField.colId,xName:(T=m.xField.displayName)!=null?T:void 0,yKey:m.yField.colId,yName:(z=m.yField.displayName)!=null?z:void 0,title:`${m.yField.displayName} vs ${m.xField.displayName}`,labelKey:d?d.id:m.yField.colId,labelName:d?d.name:void 0}});return this.crossFiltering?this.extractCrossFilterSeries(g,v):g}extractCrossFilterSeries(v,u){let{data:s}=u,r=this.getChartPalette(),d=k=>`${k}-filtered-out`,g=(k,R)=>{var z;let T=[1/0,-1/0];if(R!=null)for(let G of k){let U=(z=G[R])!=null?z:G[d(R)];U<T[0]&&(T[0]=U),U>T[1]&&(T[1]=U)}if(T[0]<=T[1])return T},m=(k,R)=>{var U,X;let T=(U=r==null?void 0:r.fills)==null?void 0:U[R],z=(X=r==null?void 0:r.strokes)==null?void 0:X[R],G;if(k.type==="bubble"){let{sizeKey:Q}=k;G=g(s,Q)}return et(pe({},k),{fill:T,stroke:z,domain:G,highlightStyle:{item:{fill:"yellow"}},listeners:et(pe({},k.listeners),{nodeClick:this.crossFilterCallback})})},b=k=>{let{yKey:R,xKey:T}=k,z={};return k.type==="bubble"&&(z={sizeKey:d(k.sizeKey)}),et(pe(pe({},k),z),{yKey:d(R),xKey:d(T),fillOpacity:.3,strokeOpacity:.3,showInLegend:!1,listeners:et(pe({},k.listeners),{nodeClick:G=>{let U=G.datum[d(T)],X=et(pe({},G),{xKey:T,datum:et(pe({},G.datum),{[T]:U})});this.crossFilterCallback(X)}})})},w=v.map(m);return[...w,...w.map(b)]}getSeriesDefinitions(v,u){if(v.length<2)return[];let s=this.chartType==="bubble";if(u)return s?v.map((d,g)=>g%3===0?{xField:d,yField:v[g+1],sizeField:v[g+2]}:null).filter(d=>d&&d.yField&&d.sizeField):v.map((d,g)=>g%2===0?{xField:d,yField:v[g+1]}:null).filter(d=>d&&d.yField);let r=v[0];return s?v.map((d,g)=>g%2===1?{xField:r,yField:d,sizeField:v[g+1]}:null).filter(d=>d&&d.sizeField):v.filter((d,g)=>g>0).map(d=>({xField:r,yField:d}))}}p.ScatterChartProxy=D},9303:function(x,p,M){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.WaterfallChartProxy=void 0;let A=M(8631);class F extends A.CartesianChartProxy{constructor(f){super(f)}getAxes(f,v){return[{type:this.getXAxisType(f),position:this.isHorizontal(v)?"left":"bottom"},{type:"number",position:this.isHorizontal(v)?"bottom":"left"}]}getSeries(f){var r;let[v]=f.categories,[u]=f.fields;return[{type:this.standaloneChartType,xKey:v.id,xName:v.name,yKey:u.colId,yName:(r=u.displayName)!=null?r:void 0}]}}p.WaterfallChartProxy=F},6738:function(x,p,M){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.ChartProxy=void 0;let A=M(9687),F=M(2210),D=M(4237),f=M(8987);class v{constructor(s){this.chartProxyParams=s,this.clearThemeOverrides=!1,this.agChartsExports=s.agChartsExports,this.chart=s.chartInstance,this.chartType=s.chartType,this.crossFiltering=s.crossFiltering,this.crossFilterCallback=s.crossFilterCallback,this.standaloneChartType=(0,D.getSeriesType)(this.chartType),this.chart==null?this.chart=s.agChartsExports.create(this.getCommonChartOptions()):this.clearThemeOverrides=!0}crossFilteringReset(){}update(s){this.getChartRef().update(this.getUpdateOptions(s,this.getCommonChartOptions(s.updatedOverrides)))}updateThemeOverrides(s){this.getChartRef().updateDelta({theme:{overrides:s}})}getChart(){return(0,A.deproxy)(this.chart)}getChartRef(){return this.chart}downloadChart(s,r,d){let{chart:g}=this,m=(0,A.deproxy)(g),b=r||(m.title?m.title.text:"chart"),{width:w,height:k}=s||{};g.download({width:w,height:k,fileName:b,fileFormat:d})}getChartImageDataURL(s){return this.getChart().getCanvasDataURL(s)}getChartOptions(){return this.chart.getOptions()}getChartThemeOverrides(){var r;return(r=this.getChartOptions().theme.overrides)!=null?r:{}}getChartPalette(){return this.agChartsExports._Theme.getChartTheme(this.getChartOptions().theme).palette}setPaired(s){let r=(0,D.getSeriesType)(this.chartProxyParams.chartType);this.chart.updateDelta({theme:{overrides:{[r]:{paired:s}}}})}isPaired(){let s=(0,D.getSeriesType)(this.chartProxyParams.chartType);return(0,F.get)(this.getChartThemeOverrides(),`${s}.paired`,!0)}lookupCustomChartTheme(s){return(0,f.lookupCustomChartTheme)(this.chartProxyParams,s)}getSeriesGroupType(){}transformCategoryData(s,r){return s.map((d,g)=>{let m=d[r],b=m&&m.toString?m.toString():"",w=pe({},d);return w[r]={id:g,value:m,toString:()=>b},w})}getCommonChartOptions(s){var b,w;let r=this.clearThemeOverrides?{}:(w=(b=this.chart)==null?void 0:b.getOptions())!=null?w:{},d=this.chart!=null?this.getActiveFormattingPanelOverrides():void 0;this.clearThemeOverrides=!1;let g=(0,f.createAgChartTheme)(this.chartProxyParams,this,this.agChartsExports.isEnterprise,this.getChartThemeDefaults(),s!=null?s:d),m=et(pe({},r),{mode:"integrated"});return m.theme=g,m.container=this.chartProxyParams.parentElement,m}getChartThemeDefaults(){let s=this.getSeriesChartThemeDefaults(),r=s?{[this.standaloneChartType]:s}:{},d={enabled:!0,snap:!0,label:{enabled:!1}},g=this.agChartsExports.isEnterprise?{zoom:{enabled:!0},animation:{enabled:!0,duration:500},axes:{number:{crosshair:d},category:{crosshair:d},log:{crosshair:d},time:{crosshair:d}}}:{};return g.minHeight=0,g.minWidth=0,g.navigator={enabled:!1},pe({common:g},r)}getSeriesChartThemeDefaults(){}getActiveFormattingPanelOverrides(){var r,d;if(this.clearThemeOverrides)return{};let s=(r=this.chart)==null?void 0:r.getOptions().theme;return(d=s==null?void 0:s.overrides)!=null?d:{}}destroy({keepChartInstance:s=!1}={}){if(s)return this.chart.resetAnimations(),this.chart;this.destroyChart()}destroyChart(){this.chart&&(this.chart.destroy(),this.chart=void 0)}}p.ChartProxy=v},8987:function(x,p,M){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.lookupCustomChartTheme=p.isStockTheme=p.createAgChartTheme=void 0;let A=M(6624),F=M(2753),D=M(2210),f=M(4237);function v(k,R,T,z,G){var Ne;let{chartOptionsToRestore:U,chartPaletteToRestore:X,chartThemeToRestore:Q,agChartsExports:oe}=k,le=b(k),fe=s(le,oe._Theme),ye=fe?{baseTheme:le}:(Ne=w(k,le))!=null?Ne:{},ke=k.getGridOptionsChartThemeOverrides(),Ie=k.apiChartThemeOverrides,ze=(0,f.getSeriesType)(k.chartType),Ye=k.crossFiltering?r(R,k,ze):void 0,Ae=[fe?g(k,T,(()=>{let Re=Oe=>Oe?Object.keys(Oe).some(Ve=>(0,D.get)(Oe[Ve],"title.enabled",!1)):!1;return Re(ke)||Re(Ie)})()):void 0,m(),z,Ye,ke,Ie,pe({},U!=null?U:{}),G].filter(Re=>!!Re).reduce((Re,Oe)=>({baseTheme:Re,overrides:Oe}),ye);if(X&&le===Q){let Re=k.agChartsExports._Theme.getChartTheme(ye).palette;u(X,Re)||(Ae.palette=X)}return Ae}p.createAgChartTheme=v;function u(k,R){let T=(z,G)=>{var U;return z===G?!0:(z==null?void 0:z.length)!==(G==null?void 0:G.length)?!1:(U=z==null?void 0:z.every((X,Q)=>X===(G==null?void 0:G[Q])))!=null?U:!1};return T(k.fills,R.fills)&&T(k.strokes,R.strokes)}function s(k,R){return Object.keys(R.themes).includes(k)}p.isStockTheme=s;function r(k,R,T){let z={listeners:{legendItemClick:G=>{let U=k.getChart(),X=[G.seriesId,`${G.seriesId}-filtered-out`];U.series.filter(Q=>X.includes(Q.id)).forEach(Q=>Q.toggleSeriesItem(void 0,"category",G.itemId,void 0))}}};return{[T]:{tooltip:{delay:500},legend:z,listeners:{click:G=>R.crossFilterCallback(G,!0)}}}}let d=F.ALL_AXIS_TYPES.reduce((k,R)=>et(pe({},k),{[R]:{title:{_enabledFromTheme:!0}}}),{});function g(k,R,T){let z=k.getExtraPaddingDirections();return{common:et(pe({},R?{animation:{duration:500}}:void 0),{axes:d,padding:{top:!T&&z.includes("top")?40:20,right:z.includes("right")?30:20,bottom:z.includes("bottom")?40:20,left:z.includes("left")?30:20},suppressFieldDotNotation:!0})}}function m(){return{pie:{series:{title:{_enabledFromTheme:!0},calloutLabel:{_enabledFromTheme:!0},sectorLabel:{enabled:!1,_enabledFromTheme:!0}}},donut:{series:{title:{_enabledFromTheme:!0},calloutLabel:{_enabledFromTheme:!0},sectorLabel:{enabled:!1,_enabledFromTheme:!0}}}}}function b(k){let R=k.getChartThemeName(),T=k.getChartThemes();return T.includes(R)||(R=T[0]),R}function w(k,R){let{customChartThemes:T}=k,z=T&&T[R];return z||(0,A._warn)(140,{name:R}),z}p.lookupCustomChartTheme=w},8995:function(x,p,M){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.ComboChartProxy=void 0;let A=M(4237),F=M(8631);class D extends F.CartesianChartProxy{constructor(v){super(v)}getAxes(v){let u=v?v.fields:[],s=new Map(u.map(m=>[m.colId,m])),{primaryYKeys:r,secondaryYKeys:d}=this.getYKeys(u,v.seriesChartTypes),g=[{type:this.getXAxisType(v),position:"bottom"}];return r.length>0&&g.push({type:"number",keys:r,position:"left"}),d.length>0&&d.forEach(m=>{let b=s.get(m);if(!(b&&b.colId===m))return;let k={type:"number",keys:[m],position:"right"};g.push(k)}),g}getSeries(v){let{fields:u,seriesChartTypes:s}=v,[r]=v.categories;return u.map(d=>{let g=s.find(m=>m.colId===d.colId);if(g){let m=g.chartType,w=["groupedColumn","groupedBar"].includes(m)?{grouped:!0}:{};return pe({type:(0,A.getSeriesType)(m),xKey:r.id,yKey:d.colId,yName:d.displayName,stacked:["stackedArea","stackedColumn"].includes(m)},w)}})}getYKeys(v,u){let s=[],r=[];return v.forEach(d=>{let g=d.colId,m=u.find(b=>b.colId===g);m&&(m.secondaryAxis?r.push(g):s.push(g))}),{primaryYKeys:s,secondaryYKeys:r}}}p.ComboChartProxy=D},7879:function(x,p,M){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.EnterpriseChartProxyFactory=void 0;let A=M(6624),F=M(1051),D=M(9303),f=M(3511),v=M(9899),u=M(7562),s=M(5413),r=M(6926);class d extends A.BeanStub{constructor(){super(...arguments),this.beanName="enterpriseChartProxyFactory"}createChartProxy(m){switch(m.chartType){case"histogram":return new F.HistogramChartProxy(m);case"radarLine":case"radarArea":case"nightingale":case"radialColumn":case"radialBar":return new v.PolarChartProxy(m);case"rangeBar":case"rangeArea":return new r.RangeChartProxy(m);case"boxPlot":return new s.BoxPlotChartProxy(m);case"treemap":case"sunburst":return new f.HierarchicalChartProxy(m);case"heatmap":return new u.HeatmapChartProxy(m);case"waterfall":return new D.WaterfallChartProxy(m)}}}p.EnterpriseChartProxyFactory=d},3511:function(x,p,M){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.HierarchicalChartProxy=void 0;let A=M(6624),F=M(6738),D=M(6326);class f extends F.ChartProxy{constructor(u){super(u)}getUpdateOptions(u,s){let{fields:r}=u,[d,g]=r;return et(pe({},s),{series:this.getSeries(d,g),data:this.getData(u,d,g)})}getSeriesChartThemeDefaults(){return{gradientLegend:{gradient:{preferredLength:200}}}}getSeries(u,s){var r,d;return[{type:this.standaloneChartType,labelKey:D.CATEGORY_LABEL_KEY,sizeKey:u==null?void 0:u.colId,sizeName:(r=u==null?void 0:u.displayName)!=null?r:void 0,colorKey:s==null?void 0:s.colId,colorName:(d=s==null?void 0:s.displayName)!=null?d:void 0}]}getData(u,s,r){var w;let{categories:d,data:g,groupData:m,grouping:b}=u;if(b){let k=r?g.concat((w=m==null?void 0:m.map(R=>{let T=pe({},R);return delete T[s.colId],T}))!=null?w:[]):g;return(0,D.createAutoGroupHierarchy)(k,R=>{var T,z;return(z=(T=R[A.GROUP_AUTO_COLUMN_ID])==null?void 0:T.labels)!=null?z:null})}else{let k=d.map(({id:R})=>R);return(0,D.createCategoryHierarchy)(g,k)}}}p.HierarchicalChartProxy=f},6326:function(x,p){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.createAutoGroupHierarchy=p.createCategoryHierarchy=p.CATEGORY_LABEL_KEY=void 0,p.CATEGORY_LABEL_KEY="AG-GRID-DEFAULT-LABEL-KEY";function M(f,v){let u=D(f,s,r);return F(u);function s(g){return v.length}function r(g,m){let b=v[m],w=g[b];return d(w)}function d(g){return g==null?null:String(g)}}p.createCategoryHierarchy=M;function A(f,v){let u=D(f,s,r);return F(u);function s(d){var g,m;return(m=(g=v(d))==null?void 0:g.length)!=null?m:0}function r(d,g){let m=v(d);if(!m)return null;let b=m.length-1-g;return m[b]}}p.createAutoGroupHierarchy=A;function F(f,v=null,u){let{depth:s,rootValues:r,value:d,children:g}=f;if(r)return r.map(b=>pe({[p.CATEGORY_LABEL_KEY]:v},b));if(s===0)return[pe({[p.CATEGORY_LABEL_KEY]:v},d)];let m=[];for(let[b,w]of g.entries())m.push(...F(w,b,!0));return u?[pe({[p.CATEGORY_LABEL_KEY]:v,children:m},d!=null?d:{})]:m}function D(f,v,u){let s={depth:0,children:new Map};return f.forEach(d=>{let g=v(d);r(d,g,u,0,s)}),s;function r(d,g,m,b,w){if(b===g)return b===0?(w.rootValues||(w.rootValues=[]),w.rootValues.push(d)):w.value=d,w;{let k=m(d,b),R=w.children.get(k),T=r(d,g,m,b+1,R||{depth:0,children:new Map});return w.children.set(k,T),w.depth=Math.max(1+T.depth,w.depth),w}}}},4104:function(x,p,M){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.PieChartProxy=void 0;let A=M(6738);function F(f){let v=f.currentOffset;f.currentOffset-=f.offsetAmount;let u=f.currentOffset;return f.currentOffset-=f.offsetAmount,{outerRadiusOffset:v,innerRadiusOffset:u}}class D extends A.ChartProxy{constructor(v){super(v)}getUpdateOptions(v,u){return et(pe({},u),{data:this.crossFiltering?this.getCrossFilterData(v):v.data,series:this.getSeries(v)})}getSeries(v){let[u]=v.categories,s=v.fields.length,r={currentOffset:0,offsetAmount:s>1?20:40},d=this.getFields(v).map(g=>{var b;let m={type:this.standaloneChartType,angleKey:g.colId,angleName:g.displayName,sectorLabelKey:g.colId,calloutLabelName:u.name,calloutLabelKey:u.id};if(this.chartType==="donut"||this.chartType==="doughnut"){let{outerRadiusOffset:w,innerRadiusOffset:k}=F(r),R=g.displayName?{title:{text:g.displayName,showInLegend:s>1}}:void 0;return et(pe(et(pe({},m),{type:"donut",outerRadiusOffset:w,innerRadiusOffset:k}),R),{calloutLine:{colors:(b=this.getChartPalette())==null?void 0:b.strokes}})}return m});return this.crossFiltering?this.extractCrossFilterSeries(d):d}getCrossFilterData(v){let u=v.fields[0].colId,s=`${u}-filtered-out`;return v.data.map(r=>{let d=r[u]+r[s];return r[`${u}-total`]=d,r[s]=1,r[u]=r[u]/d,r})}extractCrossFilterSeries(v){let u=this.getChartPalette(),s=b=>et(pe({},b),{legendItemKey:b.calloutLabelKey,calloutLabel:{enabled:!1},highlightStyle:{item:{fill:void 0}},radiusKey:b.angleKey,angleKey:b.angleKey+"-total",radiusMin:0,radiusMax:1,listeners:{nodeClick:this.crossFilterCallback}}),r=(b,w)=>{var k,R,T,z;return et(pe({},m),{radiusKey:w+"-filtered-out",fills:this.changeOpacity((R=(k=b.fills)!=null?k:u==null?void 0:u.fills)!=null?R:[],.3),strokes:this.changeOpacity((z=(T=b.strokes)!=null?T:u==null?void 0:u.strokes)!=null?z:[],.3),showInLegend:!1})},d=v[0],g=d.angleKey,m=s(d);return[r(s(d),g),m]}getFields(v){return this.chartType==="pie"?v.fields.slice(0,1):v.fields}changeOpacity(v,u){let s=this.agChartsExports._Util.Color;return v.map(r=>{let d=s.fromString(r);return new s(d.r,d.g,d.b,u).toHexString()})}}p.PieChartProxy=D},9899:function(x,p,M){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.PolarChartProxy=void 0;let A=M(6738);class F extends A.ChartProxy{constructor(f){super(f)}getAxes(f){let v=this.standaloneChartType==="radial-bar";return[{type:v?"angle-number":"angle-category"},{type:v?"radius-category":"radius-number"}]}getSeries(f){let{fields:v,categories:u,seriesGroupType:s}=f,[r]=u,d=this.standaloneChartType==="radial-bar",g=this.getSeriesGroupTypeOptions(s);return v.map(m=>{var b,w;return pe({type:this.standaloneChartType,angleKey:d?m.colId:r.id,angleName:d?(b=m.displayName)!=null?b:void 0:r.name,radiusKey:d?r.id:m.colId,radiusName:d?r.name:(w=m.displayName)!=null?w:void 0},g)})}getSeriesGroupType(){var s,r;let f=this.standaloneChartType;if(!["nightingale","radial-bar","radial-column"].includes(f))return;let v=(r=(s=this.getChart().series)==null?void 0:s[0])==null?void 0:r.properties.toJson(),u=()=>v.normalizedTo?"normalized":"stacked";return f==="nightingale"?v.grouped?"grouped":u():v.stacked?u():"grouped"}getUpdateOptions(f,v){let u=this.getAxes(f);return et(pe({},v),{data:this.getData(f,u),axes:u,series:this.getSeries(f)})}getData(f,v){if(v.some(s=>s.type==="angle-category"||s.type==="radius-category")){let[s]=f.categories;return this.transformCategoryData(f.data,s.id)}else return f.data}getSeriesGroupTypeOptions(f){return f?{grouped:f==="grouped"||void 0,stacked:f!=="grouped"||void 0,normalizedTo:f==="normalized"?100:void 0}:{}}}p.PolarChartProxy=F},7562:function(x,p,M){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.HeatmapChartProxy=p.HEATMAP_VALUE_KEY=p.HEATMAP_SERIES_KEY=p.HEATMAP_CATEGORY_KEY=void 0;let A=M(1480),F=M(6738);p.HEATMAP_CATEGORY_KEY="AG-GRID-DEFAULT-HEATMAP-CATEGORY-KEY",p.HEATMAP_SERIES_KEY="AG-GRID-DEFAULT-HEATMAP-SERIES-KEY",p.HEATMAP_VALUE_KEY="AG-GRID-DEFAULT-HEATMAP-VALUE-KEY";class D extends F.ChartProxy{constructor(u){super(u)}getUpdateOptions(u,s){let r=p.HEATMAP_SERIES_KEY,d=p.HEATMAP_VALUE_KEY,g=p.HEATMAP_CATEGORY_KEY;return et(pe({},s),{series:this.getSeries(u,r,d,g),data:this.getData(u,r,d,g)})}getSeries(u,s,r,d){let[g]=u.categories;return[{type:this.standaloneChartType,yKey:d,xKey:s,colorKey:r,yName:g.name,xName:void 0,colorName:void 0}]}getData(u,s,r,d){let[g]=u.categories;return(0,A.flatMap)(u.data,(m,b)=>{let w=m[g.id],k=w==null?"":String(w),R={id:b,value:w,toString:()=>k};return u.fields.map(({colId:T,displayName:z})=>et(pe({},m),{[s]:z,[r]:m[T],[d]:R}))})}getSeriesChartThemeDefaults(){return{gradientLegend:{gradient:{preferredLength:200}},series:{tooltip:{renderer:f}}}}}p.HeatmapChartProxy=D;function f(v){let{xKey:u,yKey:s,colorKey:r,yName:d,datum:g}=v;return{title:"",data:[{label:d,value:g[s]},{label:g[u],value:r&&g[r]}].map(({label:b,value:w})=>({label:String(b),value:String(w)}))}}},5413:function(x,p,M){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.BoxPlotChartProxy=void 0;let A=M(879);class F extends A.StatisticalChartProxy{constructor(f){super(f)}getSeries(f){let[v]=f.categories;return f.fields.map((u,s)=>{var r;return{type:this.standaloneChartType,xKey:v.id,xName:v.name,yName:(r=u.displayName)!=null?r:void 0,minName:"Min",q1Name:"Q1",medianName:"Median",q3Name:"Q3",maxName:"Max",minKey:`min:${s}`,q1Key:`q1:${s}`,medianKey:`median:${s}`,q3Key:`q3:${s}`,maxKey:`max:${s}`}})}getData(f){return this.computeSeriesStatistics(f,v=>{let u=v.sort((s,r)=>s-r);return{min:u[0],q1:this.quantile(u,.25),median:this.quantile(u,.5),q3:this.quantile(u,.75),max:u[u.length-1]}})}quantile(f,v){let u=(f.length-1)*v,s=Math.floor(u),r=u-s;return f[s+1]!==void 0?f[s]+r*(f[s+1]-f[s]):f[s]}}p.BoxPlotChartProxy=F},6926:function(x,p,M){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.RangeChartProxy=void 0;let A=M(879);class F extends A.StatisticalChartProxy{constructor(f){super(f)}getSeries(f){let[v]=f.categories;return f.fields.map((u,s)=>{var r;return{type:this.standaloneChartType,xKey:v.id,xName:v.name,yName:(r=u.displayName)!=null?r:void 0,yLowName:"Min",yHighName:"Max",yLowKey:`min:${s}`,yHighKey:`max:${s}`}})}getData(f){return this.computeSeriesStatistics(f,v=>({min:Math.min(...v),max:Math.max(...v)}))}}p.RangeChartProxy=F},879:function(x,p,M){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.StatisticalChartProxy=void 0;let A=M(8592),F=M(8631);class D extends F.CartesianChartProxy{constructor(v){super(v)}getAxes(v,u){return[{type:this.getXAxisType(v),position:this.isHorizontal(u)?"left":"bottom"},{type:"number",position:this.isHorizontal(u)?"bottom":"left"}]}computeSeriesStatistics(v,u){let{data:s,fields:r}=v,[d]=v.categories,g=d.id||A.DEFAULT_CHART_CATEGORY,m=this.groupDataByCategory(g,s);return Array.from(m).map(([b,w])=>{let k={[d.id]:b};return r.forEach((R,T)=>{let z=w.map(G=>G[R.colId]).filter(G=>typeof G=="number"&&!isNaN(G));Object.entries(u(z)).forEach(([G,U])=>{let X=`${G}:${T}`;k[X]=z.length>0?U:null})}),k})}groupDataByCategory(v,u){let s=r=>{if(v===A.DEFAULT_CHART_CATEGORY)return 1;let d=r[v];return d==null?"":d instanceof Date?d.getTime():d};return u.reduce((r,d)=>{let g=s(d),m=r.get(g);return m?m.push(d):r.set(g,[d]),r},new Map)}}p.StatisticalChartProxy=D},9208:function(x,p,M){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.ChartDatasource=void 0;let A=M(6624),F=M(8592);class D extends A.BeanStub{wireBeans(v){this.sortSvc=v.sortSvc,this.gridRowModel=v.rowModel,this.colModel=v.colModel,this.valueSvc=v.valueSvc,this.pivotResultCols=v.pivotResultCols,this.rowNodeSorter=v.rowNodeSorter,this.aggStage=v.aggStage}getData(v){if(v.crossFiltering){if(v.grouping)return(0,A._warn)(141),{chartData:[],colNames:{}};if(!(0,A._isClientSideRowModel)(this.gos))return(0,A._warn)(142),{chartData:[],colNames:{}}}(0,A._isServerSideRowModel)(this.gos)&&v.pivoting&&this.updatePivotKeysForSSRM();let s=this.extractRowsFromGridRowModel(v);return s.chartData=this.aggregateRowsByDimension(v,s.chartData),s}extractRowsFromGridRowModel(v){let{crossFiltering:u,startRow:s,endRow:r,valueCols:d,dimensionCols:g,grouping:m}=v,b=[],w={},k={},R={},T={},z=[],G;if(u)T=this.getFilteredRowNodes(),z=this.getAllRowNodes(),G=z.length;else{let Q=this.gridRowModel.getRowCount()-1;s===r&&s===0&&g.length===0&&d.length===0?G=0:G=(r>=0?Math.min(r,Q):Q)-s+1}G>0&&d.forEach(Q=>{let oe=[],le=Q.getColDef().pivotKeys;le&&(oe=le.slice());let fe=Q.getColDef().headerName;fe&&oe.push(fe),oe.length>0&&(w[Q.getId()]=oe)});let U=0;for(let Q=0;Q<G;Q++){let oe=u?z[Q]:this.gridRowModel.getRow(Q+s);if(oe.footer||oe.detail){U++;continue}let le={};g.forEach(fe=>{let ye=fe.colId,ke=this.colModel.getCol(ye);if(ke){let Ie=this.valueSvc.getValue(ke,oe);if(m){let ze=Ie!=null&&Ie.toString?String(Ie.toString()):"",Ye=this.getGroupLabels(oe,ze);le[ye]=Ye.slice().reverse(),oe.group&&(k[Ye.toString()]=Q-U);let xe=Ye.slice(1,Ye.length).toString();xe&&(R[xe]=k[xe])}else le[ye]=Ie}else le[F.DEFAULT_CHART_CATEGORY]=Q+1}),d.forEach(fe=>{let ye=fe.getColId();if(u){let ke=ye+"-filtered-out",Ie=this.valueSvc.getValue(fe,oe),ze=Ie!=null&&typeof Ie.toNumber=="function"?Ie.toNumber():Ie;T[oe.id]?(le[ye]=ze,le[ke]=v.aggFunc||v.isScatter?void 0:0):(le[ye]=v.aggFunc||v.isScatter?void 0:0,le[ke]=ze)}else{let ke=this.valueSvc.getValue(fe,oe);ke&&Object.prototype.hasOwnProperty.call(ke,"toString")&&(ke=parseFloat(ke.toString())),le[ye]=ke!=null&&typeof ke.toNumber=="function"?ke.toNumber():ke}}),b.push(le)}let X;if(m){let Q=Object.values(R),oe=b;b=[],X=[];for(let le=0;le<oe.length;le++)(Q.includes(le)?X:b).push(oe[le])}return{chartData:b,colNames:w,groupChartData:X}}aggregateRowsByDimension(v,u){let s=v.dimensionCols;if(!v.aggFunc||s.length===0)return u;let r=(0,A._last)(s),d=r&&r.colId,g={},m=[];if(u.forEach(b=>{let w=g;s.forEach(k=>{let R=k.colId,T=b[R];if(R===d){let z=w[T];z||(z={__children:[]},s.forEach(G=>{let U=G.colId;z[U]=b[U]}),w[T]=z,m.push(z)),z.__children.push(b)}else w[T]||(w[T]={}),w=w[T]})}),this.gos.assertModuleRegistered("SharedRowGrouping",1)){let b=this.aggStage;m.forEach(w=>v.valueCols.forEach(k=>{if(v.crossFiltering)v.valueCols.forEach(R=>{let T=R.getColId(),z=w.__children.filter(oe=>typeof oe[T]!="undefined").map(oe=>oe[T]),G=b.aggregateValues(z,v.aggFunc);w[R.getId()]=G&&typeof G.value!="undefined"?G.value:G;let U=`${T}-filtered-out`,X=w.__children.filter(oe=>typeof oe[U]!="undefined").map(oe=>oe[U]),Q=b.aggregateValues(X,v.aggFunc);w[U]=Q&&typeof Q.value!="undefined"?Q.value:Q});else{let R=w.__children.map(z=>z[k.getId()]),T=b.aggregateValues(R,v.aggFunc);w[k.getId()]=T&&typeof T.value!="undefined"?T.value:T}}))}return m}updatePivotKeysForSSRM(){var s,r;let v=(r=(s=this.pivotResultCols)==null?void 0:s.getPivotResultCols())==null?void 0:r.list;if(!v)return;let u=this.extractPivotKeySeparator(v);v.forEach(d=>{if(u==="")d.getColDef().pivotKeys=[];else{let g=d.getColId().split(u);d.getColDef().pivotKeys=g.slice(0,g.length-1)}})}extractPivotKeySeparator(v){if(v.length===0)return"";let u=(r,d)=>{let g=r.getGroupId();return r.getParent()?u(r.getParent(),g):d.split(g)[1][0]},s=v[0];return s.getParent()==null?"":u(s.getParent(),s.getColId())}getGroupLabels(v,u){let s=[u];for(;v&&v.level!==0;)v=v.parent,v&&s.push(v.key);return s}getFilteredRowNodes(){let v={};return this.gridRowModel.forEachNodeAfterFilterAndSort(u=>{v[u.id]=u}),v}getAllRowNodes(){let v=[];return this.gridRowModel.forEachNode(u=>{v.push(u)}),this.sortRowNodes(v)}sortRowNodes(v){var s;let u=(s=this.sortSvc)==null?void 0:s.getSortOptions();return!u||u.length==0||!this.rowNodeSorter?v:this.rowNodeSorter.doFullSort(v,u)}}p.ChartDatasource=D},7760:function(x,p,M){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.GridChartComp=void 0;let A=M(6624),F=M(8775),D=M(3251),f=M(7216),v=M(3116),u=M(9235),s=M(7015),r=M(8995),d=M(4104),g=M(3608),m=M(3786),b=M(8592),w=M(7492),k=M(6297),R=M(4237);class T extends A.Component{wireBeans(G){this.crossFilterService=G.chartCrossFilterSvc,this.chartTranslation=G.chartTranslation,this.chartMenuSvc=G.chartMenuSvc,this.focusSvc=G.focusSvc,this.popupSvc=G.popupSvc,this.enterpriseChartProxyFactory=G.enterpriseChartProxyFactory,this.environment=G.environment}constructor(G){super(`
            <div style="height: 100%; width: 100%;">
                <div class="ag-chart" data-ref="eWrapper">
                    <div data-ref="eChartContainer" class="ag-chart-components-wrapper ag-chart-menu-hidden">
                        <div data-ref="eChart" class="ag-chart-canvas-wrapper"></div>
                        <div data-ref="eEmpty" class="ag-chart-empty-text ag-unselectable"></div>
                    </div>
                    <div data-ref="eMenuContainer" class="ag-chart-docked-container"></div>
                </div>
            </div>
            `),this.eChart=A.RefPlaceholder,this.eWrapper=A.RefPlaceholder,this.eChartContainer=A.RefPlaceholder,this.eMenuContainer=A.RefPlaceholder,this.eEmpty=A.RefPlaceholder,this.params=G}postConstruct(){let G=et(pe({},this.params),{chartType:(0,R.getCanonicalChartType)(this.params.chartType),chartThemeName:this.getThemeName()}),U=this.gos.get("enableRtl");this.eWrapper.classList.add(U?"ag-rtl":"ag-ltr");let X=this.createBean(new b.ChartDataModel(G));this.chartController=this.createManagedBean(new D.ChartController(X)),this.chartOptionsService=this.createManagedBean(new k.ChartOptionsService(this.chartController)),this.validateCustomThemes(),this.createChart(),this.params.insideDialog?this.addDialog():(this.addManagedEventListeners({gridStylesChanged:this.updateTheme.bind(this)}),this.updateTheme()),this.addMenu(),this.addManagedElementListeners(this.getGui(),{focusin:this.setActiveChartCellRange.bind(this)}),this.addManagedListeners(this.chartController,{chartModelUpdate:this.update.bind(this)}),this.addManagedPropertyListeners(["chartThemeOverrides","chartThemes"],this.reactivePropertyUpdate.bind(this)),this.update(),this.raiseChartCreatedEvent()}updateTheme(){this.environment.applyThemeClasses(this.getGui())}createChart(){var oe;let G;this.chartProxy&&(G=this.chartProxy.destroy({keepChartInstance:!0}));let U=(le,fe)=>{let ye=this.params.crossFilteringContext;ye.lastSelectedChartId=fe?"":this.chartController.getChartId(),fe&&this.params.crossFilteringResetCallback(),this.crossFilterService.filter(le,fe)},X=this.chartController.getChartType(),Q={agChartsExports:this.beans.agChartsExports,chartType:X,chartInstance:G,getChartThemeName:this.getChartThemeName.bind(this),getChartThemes:this.getChartThemes.bind(this),customChartThemes:this.gos.get("customChartThemes"),getGridOptionsChartThemeOverrides:()=>this.getGridOptionsChartThemeOverrides(),getExtraPaddingDirections:()=>{var le,fe;return(fe=(le=this.chartMenu)==null?void 0:le.getExtraPaddingDirections())!=null?fe:[]},apiChartThemeOverrides:this.params.chartThemeOverrides,crossFiltering:(oe=this.params.crossFiltering)!=null?oe:!1,crossFilterCallback:U,parentElement:this.eChart,grouping:this.chartController.isGrouping(),chartThemeToRestore:this.params.chartThemeName,chartOptionsToRestore:this.params.chartOptionsToRestore,chartPaletteToRestore:this.params.chartPaletteToRestore,seriesChartTypes:this.chartController.getSeriesChartTypes(),translate:le=>this.chartTranslation.translate(le)};if(this.params.chartOptionsToRestore=void 0,this.chartType=X,this.chartProxy=this.createChartProxy(Q),!this.chartProxy){(0,A._warn)(138,{chartType:Q.chartType});return}this.chartController.setChartProxy(this.chartProxy),this.createMenuContext()}createMenuContext(){if(this.chartMenuContext)return;let G=this.createManagedBean(new m.ChartMenuParamsFactory(this.chartOptionsService.getChartThemeOverridesProxy())),U=this.createManagedBean(new m.ChartMenuParamsFactory(this.chartOptionsService.getAxisThemeOverridesProxy()));this.chartMenuContext={chartController:this.chartController,chartOptionsService:this.chartOptionsService,chartMenuParamsFactory:G,chartAxisMenuParamsFactory:U}}getChartThemeName(){return this.chartController.getChartThemeName()}getChartThemes(){return this.chartController.getThemeNames()}getGridOptionsChartThemeOverrides(){return this.gos.get("chartThemeOverrides")}createChartProxy(G){var Q;let{chartType:U}=G;switch(U){case"column":case"bar":case"groupedColumn":case"stackedColumn":case"normalizedColumn":case"groupedBar":case"stackedBar":case"normalizedBar":return new v.BarChartProxy(G);case"pie":case"donut":case"doughnut":return new d.PieChartProxy(G);case"area":case"stackedArea":case"normalizedArea":return new f.AreaChartProxy(G);case"line":case"stackedLine":case"normalizedLine":return new u.LineChartProxy(G);case"scatter":case"bubble":return new s.ScatterChartProxy(G);case"columnLineCombo":case"areaColumnCombo":case"customCombo":return new r.ComboChartProxy(G)}let X=(Q=this.enterpriseChartProxyFactory)==null?void 0:Q.createChartProxy(G);if(!X)throw(0,A._errMsg)(251,{chartType:U});return X}addDialog(){let G=this.chartTranslation.translate(this.params.pivotChart?"pivotChartTitle":"rangeChartTitle"),{width:U,height:X}=this.getBestDialogSize(),Q=this.params.focusDialogOnOpen?()=>setTimeout(()=>(0,A._focusInto)(this.getGui())):void 0;this.chartDialog=new F.AgDialog({resizable:!0,movable:!0,maximizable:!0,title:G,width:U,height:X,component:this,centered:!0,closable:!0,afterGuiAttached:Q,postProcessPopupParams:{type:"chart"}}),this.createBean(this.chartDialog),this.chartDialog.addEventListener("destroyed",()=>{this.destroy(),this.chartMenuSvc.hideAdvancedSettings();let oe=this.focusSvc.getFocusedCell();setTimeout(()=>{this.focusSvc.isAlive()&&(oe?this.focusSvc.setFocusedCell(et(pe({},oe),{forceBrowserFocus:!0})):(0,A._focusGridInnerElement)(this.beans))})})}getBestDialogSize(){let G=this.popupSvc.getPopupParent(),U=(0,A._getAbsoluteWidth)(G)*.75,X=(0,A._getAbsoluteHeight)(G)*.75,Q=.553,oe=this.chartProxy.getChart(),le=this.params.insideDialog?850:oe.width,fe=this.params.insideDialog?470:oe.height;return(le>U||fe>X)&&(le=Math.min(le,U),fe=Math.round(le*Q),fe>X&&(fe=X,le=Math.min(le,Math.round(fe/Q)))),{width:le,height:fe}}addMenu(){this.params.crossFiltering||(this.chartMenu=this.createBean(new g.ChartMenu(this.eChartContainer,this.eMenuContainer,this.chartMenuContext)),this.eChartContainer.appendChild(this.chartMenu.getGui()))}update(G){if(G!=null&&G.chartId&&!this.chartController.update(G))return;let U=this.chartTypeChanged(G),X=U||this.chartEmpty?(oe=>{let le=this.chartType,fe=oe,ye=this.chartProxy.getChart(),ke=ye==null?void 0:ye.getOptions(),Ie=ye==null?void 0:ye.axes;return this.chartOptionsService.getPersistedChartThemeOverrides(ke,Ie,le,fe!=null?fe:le)})(U):void 0;U&&this.createChart(),X&&(G!=null&&G.chartThemeOverrides)&&(0,A._mergeDeep)(X,G.chartThemeOverrides);let Q=X!=null?X:G==null?void 0:G.chartThemeOverrides;this.updateChart(Q),G!=null&&G.chartId&&this.chartProxy.getChart().waitForUpdate().then(()=>{this.chartController.raiseChartApiUpdateEvent()})}updateChart(G){let{chartProxy:U}=this,X=this.chartController.getSelectedValueColState(),Q=this.chartController.getChartData(),oe=this.handleEmptyChart(Q,X.length);if(this.chartEmpty=oe,oe){G&&this.chartController.updateThemeOverrides(G);return}let le=this.chartController.getChartUpdateParams(G);U.update(le),this.chartProxy.getChart().waitForUpdate().then(()=>{this.chartController.raiseChartUpdatedEvent()})}chartTypeChanged(G){let[U,X]=[this.chartController.getChartType(),G==null?void 0:G.chartType],Q=X?(0,R.getCanonicalChartType)(X):void 0;return this.chartType!==U?Q!=null?Q:U:Q&&U!==Q?Q:null}getChartModel(){return this.chartController.getChartModel()}getChartImageDataURL(G){return this.chartProxy.getChartImageDataURL(G)}handleEmptyChart(G,U){let X=this.chartController.isPivotChart()&&!this.chartController.isPivotMode(),Q=this.chartController.getChartType(),oe=1;this.chartController.isActiveXYChart()?oe=Q==="bubble"?3:2:(0,R.isHierarchical)((0,R.getSeriesType)(Q))&&(oe=0);let le=U<oe||G.length===0;if(this.eChart){let fe=X||le;(0,A._setDisplayed)(this.eChart,!fe),(0,A._setDisplayed)(this.eEmpty,fe)}return X?(this.eEmpty.innerText=this.chartTranslation.translate("pivotChartRequiresPivotMode"),!0):le?(this.eEmpty.innerText=this.chartTranslation.translate("noDataToChart"),!0):!1}downloadChart(G,U,X){this.chartProxy.downloadChart(G,U,X)}openChartToolPanel(G){let U=G&&w.CHART_TOOL_PANEL_MENU_OPTIONS[G];this.chartMenu.showMenu({panel:U})}closeChartToolPanel(){this.chartMenu.hideMenu()}getChartId(){return this.chartController.getChartId()}getUnderlyingChart(){return this.chartProxy.getChartRef()}crossFilteringReset(){this.chartProxy.crossFilteringReset()}setActiveChartCellRange(G){this.getGui().contains(G.relatedTarget)||this.chartController.setChartRange(!0)}getThemeName(){let G=this.gos.get("chartThemes")||D.DEFAULT_THEMES;if(G.length===0)throw new Error((0,A._errMsg)(254));let{chartThemeName:U}=this.params;return G.includes(U)?U:G[0]}getAllKeysInObjects(G){let U={};return G.filter(X=>X!=null).forEach(X=>{Object.keys(X).forEach(Q=>U[Q]=null)}),Object.keys(U)}validateCustomThemes(){let G=this.getChartThemes(),U=this.gos.get("customChartThemes");U&&this.getAllKeysInObjects([U]).forEach(X=>{G.includes(X)||(0,A._warn)(139,{customThemeName:X})})}reactivePropertyUpdate(){this.chartController.setChartThemeName(this.getThemeName(),!0);let G=this.getChartId(),U=this.chartController.isCrossFilterChart()?"crossFilter":this.getChartModel().modelType,X=this.gos.get("chartThemeOverrides")||{};this.update({type:`${U}ChartUpdate`,chartId:G,chartThemeOverrides:X})}raiseChartCreatedEvent(){this.chartProxy.getChart().waitForUpdate().then(()=>{this.eventSvc.dispatchEvent({type:"chartCreated",chartId:this.chartController.getChartId()})})}raiseChartDestroyedEvent(){this.eventSvc.dispatchEvent({type:"chartDestroyed",chartId:this.chartController.getChartId()})}destroy(){var U;super.destroy(),this.chartProxy&&this.chartProxy.destroy(),this.destroyBean(this.chartMenu),this.chartDialog&&this.chartDialog.isAlive()&&this.destroyBean(this.chartDialog),(U=this.onDestroyColorSchemeChangeListener)==null||U.call(this);let G=this.getGui();(0,A._clearElement)(G),(0,A._removeFromParent)(G),this.raiseChartDestroyedEvent()}}p.GridChartComp=T},6353:function(x,p,M){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.AdvancedSettingsMenuFactory=void 0;let A=M(6624),F=M(8775),D=M(5776);class f extends A.BeanStub{constructor(){super(...arguments),this.beanName="advSettingsMenuFactory"}showMenu(s,r){this.hideMenu();let d=this.createBean(new v(s));this.activeDialog=this.createBean(new F.AgDialog({title:this.beans.chartTranslation.translate("advancedSettings"),component:d,width:300,height:400,resizable:!0,movable:!0,centered:!0,closable:!0,afterGuiAttached:()=>{var g;(g=(0,A._findFocusableElements)(d.getGui())[0])==null||g.focus()},closedCallback:()=>{this.activeMenu=this.destroyBean(this.activeMenu),this.activeDialog=void 0,r==null||r.focus({preventScroll:!0})}})),this.activeMenu=d}hideMenu(){this.activeDialog&&this.destroyBean(this.activeDialog)}destroy(){this.activeMenu=this.destroyBean(this.activeMenu),this.activeDialog=this.destroyBean(this.activeDialog),super.destroy()}}p.AdvancedSettingsMenuFactory=f;class v extends A.TabGuardComp{constructor(s){super('<div class="ag-chart-advanced-settings"></div>'),this.chartMenuContext=s}postConstruct(){this.advancedSettingsPanel=this.createManagedBean(new D.AdvancedSettingsPanel(this.chartMenuContext)),this.getGui().appendChild(this.advancedSettingsPanel.getGui()),this.initialiseTabGuard({onTabKeyDown:this.onTabKeyDown.bind(this),focusTrapActive:!0})}onTabKeyDown(s){if(s.defaultPrevented)return;s.preventDefault();let r=s.shiftKey,d=this.advancedSettingsPanel.getGui(),g=(0,A._findNextFocusableElement)(this.beans,d,!1,r);if(g)g.focus();else{let m=(0,A._findFocusableElements)(d);m.length&&m[r?m.length-1:0].focus()}}}},5776:function(x,p,M){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.AdvancedSettingsPanel=void 0;let A=M(6624),F=M(4237),D=M(1299),f=M(6671),v=M(2337),u=M(2738),s=M(3320),r=["navigator","zoom","animation","crosshair"];class d extends A.Component{constructor(m){super('<div class="ag-chart-advanced-settings-wrapper"></div>'),this.chartMenuContext=m}postConstruct(){this.chartPanelFeature=this.createManagedBean(new D.ChartPanelFeature(this.chartMenuContext.chartController,this.getGui(),"ag-chart-advanced-settings-section",(m,b)=>this.createPanels(m,b))),this.chartPanelFeature.refreshPanels()}createPanels(m,b){r.forEach(w=>{if(!this.isGroupPanelShownForSeries(w,b))return;let k=this.createPanel(w);this.chartPanelFeature.addComponent(k)})}isGroupPanelShownForSeries(m,b){return m==="animation"||(0,F.isCartesian)(b)}createPanel(m){let{chartMenuParamsFactory:b,chartAxisMenuParamsFactory:w}=this.chartMenuContext;switch(m){case"navigator":return new u.NavigatorPanel(b);case"zoom":return new s.ZoomPanel(b);case"animation":return new f.AnimationPanel(b);case"crosshair":return new v.CrosshairPanel(w)}}}p.AdvancedSettingsPanel=d},6671:function(x,p,M){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.AnimationPanel=void 0;let A=M(6624),F=M(1421);class D extends A.Component{wireBeans(v){this.chartTranslation=v.chartTranslation}constructor(v){super(),this.chartMenuParamsFactory=v}postConstruct(){let v=this.chartMenuParamsFactory.addEnableParams("animation.enabled",{cssIdentifier:"charts-advanced-settings-top-level",direction:"vertical",suppressOpenCloseIcons:!0,title:this.chartTranslation.translate("animation"),suppressEnabledCheckbox:!0,useToggle:!0}),u=this.chartMenuParamsFactory.getDefaultNumberInputParams("animation.duration","durationMillis",{min:0});this.setTemplate(`<div>
            <ag-group-component data-ref="animationGroup">
                <ag-input-number-field data-ref="animationHeightInput"></ag-input>
            </ag-group-component>
        </div>`,[F.AgGroupComponentSelector,A.AgInputNumberFieldSelector],{animationGroup:v,animationHeightInput:u})}}p.AnimationPanel=D},2337:function(x,p,M){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.CrosshairPanel=void 0;let A=M(6624),F=M(1421),D=M(1296);class f extends A.Component{wireBeans(u){this.chartTranslation=u.chartTranslation}constructor(u){super(),this.chartMenuParamsFactory=u}postConstruct(){let u=this.chartMenuParamsFactory.addEnableParams("crosshair.enabled",{cssIdentifier:"charts-advanced-settings-top-level",direction:"vertical",suppressOpenCloseIcons:!0,title:this.chartTranslation.translate("crosshair"),suppressEnabledCheckbox:!0,useToggle:!0}),s=this.chartMenuParamsFactory.getDefaultCheckboxParams("crosshair.label.enabled","crosshairLabel"),r=this.chartMenuParamsFactory.getDefaultCheckboxParams("crosshair.snap","crosshairSnap"),d=this.chartMenuParamsFactory.getDefaultColorPickerParams("crosshair.stroke","color");this.setTemplate(`<div>
            <ag-group-component data-ref="crosshairGroup">
                <ag-checkbox data-ref="crosshairLabelCheckbox"></ag-checkbox>
                <ag-checkbox data-ref="crosshairSnapCheckbox"></ag-checkbox>
                <ag-color-picker data-ref="crosshairStrokeColorPicker"></ag-color-picker>
            </ag-group-component>
        </div>`,[F.AgGroupComponentSelector,A.AgCheckboxSelector,D.AgColorPickerSelector],{crosshairGroup:u,crosshairLabelCheckbox:s,crosshairSnapCheckbox:r,crosshairStrokeColorPicker:d})}}p.CrosshairPanel=f},2738:function(x,p,M){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.NavigatorPanel=void 0;let A=M(6624),F=M(1421),D=M(5e3);class f extends A.Component{wireBeans(u){this.chartTranslation=u.chartTranslation}constructor(u){super(),this.chartMenuParamsFactory=u}postConstruct(){let u=this.chartMenuParamsFactory.addEnableParams("navigator.enabled",{cssIdentifier:"charts-advanced-settings-top-level",direction:"vertical",suppressOpenCloseIcons:!0,title:this.chartTranslation.translate("navigator"),suppressEnabledCheckbox:!0,useToggle:!0}),s=this.chartMenuParamsFactory.getDefaultSliderParams("navigator.height","height",60);s.minValue=10;let r=this.chartMenuParamsFactory.getDefaultCheckboxParams("navigator.miniChart.enabled","miniChart");this.setTemplate(`<div>
            <ag-group-component data-ref="navigatorGroup">
                <ag-slider data-ref="navigatorHeightSlider"></ag-slider>
                <ag-checkbox data-ref="navigatorMiniChartCheckbox"></ag-checkbox>
            </ag-group-component>
        </div>`,[F.AgGroupComponentSelector,D.AgSliderSelector,A.AgCheckboxSelector],{navigatorGroup:u,navigatorHeightSlider:s,navigatorMiniChartCheckbox:r})}}p.NavigatorPanel=f},3320:function(x,p,M){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.ZoomPanel=void 0;let A=M(6624),F=M(1421),D=M(5e3);class f extends A.Component{wireBeans(u){this.chartTranslation=u.chartTranslation}constructor(u){super(),this.chartMenuParamsFactory=u,this.zoomScrollingStepInput=A.RefPlaceholder}postConstruct(){let u=this.chartMenuParamsFactory.addEnableParams("zoom.enabled",{cssIdentifier:"charts-advanced-settings-top-level",direction:"vertical",suppressOpenCloseIcons:!0,title:this.chartTranslation.translate("zoom"),suppressEnabledCheckbox:!0,useToggle:!0}),s=this.chartMenuParamsFactory.getDefaultCheckboxParams("zoom.enableScrolling","scrollingZoom"),r=this.chartMenuParamsFactory.getDefaultSliderParams("zoom.scrollingStep","scrollingStep",1);r.step=.01,r.minValue=r.step;let d=this.chartMenuParamsFactory.getDefaultCheckboxParams("zoom.enableSelecting","selectingZoom");s.onValueChange=(g=>m=>{g&&(g(m),this.zoomScrollingStepInput.setDisabled(!m))})(s.onValueChange),this.setTemplate(`<div>
            <ag-group-component data-ref="zoomGroup">
                <ag-checkbox data-ref="zoomSelectingCheckbox"></ag-checkbox>
                <ag-checkbox data-ref="zoomScrollingCheckbox"></ag-checkbox>
                <ag-slider data-ref="zoomScrollingStepInput"></ag-slider>
            </ag-group-component>
        </div>`,[F.AgGroupComponentSelector,A.AgCheckboxSelector,D.AgSliderSelector],{zoomGroup:u,zoomScrollingCheckbox:s,zoomScrollingStepInput:r,zoomSelectingCheckbox:d}),this.zoomScrollingStepInput.setDisabled(!s.value)}}p.ZoomPanel=f},3608:function(x,p,M){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.ChartMenu=void 0;let A=M(6624),F=M(7325),D=M(4967),f=M(5518);class v extends A.Component{wireBeans(s){this.chartMenuSvc=s.chartMenuSvc,this.chartMenuListFactory=s.chartMenuListFactory,this.environment=s.environment}constructor(s,r,d){super('<div class="ag-chart-menu-wrapper"></div>'),this.eChartContainer=s,this.eMenuPanelContainer=r,this.chartMenuContext=d,this.buttons={chartLink:{iconName:"linked",callback:()=>this.chartMenuSvc.toggleLinked(this.chartMenuContext)},chartUnlink:{iconName:"unlinked",callback:()=>this.chartMenuSvc.toggleLinked(this.chartMenuContext)},chartDownload:{iconName:"chartsDownload",callback:()=>this.chartMenuSvc.downloadChart(this.chartMenuContext)},chartMenu:{iconName:"chartsMenu",callback:g=>this.showMenuList(g)}},this.panels=[],this.menuVisible=!1,this.chartController=d.chartController}postConstruct(){this.chartToolbar=this.createManagedBean(new D.ChartToolbar),this.getGui().appendChild(this.chartToolbar.getGui()),this.refreshToolbarAndPanels(),this.addManagedEventListeners({chartCreated:s=>{var r;s.chartId===this.chartController.getChartId()&&((r=this.gos.get("chartToolPanelsDef"))!=null&&r.defaultToolPanel)&&this.showMenu({panel:this.defaultPanel,suppressFocus:!0})}}),this.addManagedListeners(this.chartController,{chartLinkedChanged:this.refreshToolbarAndPanels.bind(this)}),this.refreshMenuClasses(),this.addManagedListeners(this.chartController,{chartApiUpdate:this.refreshToolbarAndPanels.bind(this)})}isVisible(){return this.menuVisible}getExtraPaddingDirections(){return["chartMenu","chartLink","chartUnlink","chartDownload"].some(s=>this.chartToolbarOptions.includes(s))?["top"]:[]}refreshToolbarAndPanels(){this.initToolbarOptionsAndPanels(),this.updateToolbar()}initToolbarOptionsAndPanels(){let{panels:s,defaultPanel:r}=this.chartMenuSvc.getChartToolPanels(this.chartController);this.panels=s,this.defaultPanel=r,this.chartToolbarOptions=this.chartMenuSvc.getChartToolbarOptions()}updateToolbar(){let s=this.chartToolbarOptions.map(r=>{let{iconName:d,callback:g}=this.buttons[r];return{buttonName:r,iconName:d,callback:g}});this.chartToolbar.updateParams({buttons:s})}createMenuPanel(s){let r=this.menuPanel=this.createBean(new F.AgPanel({height:"100%",closable:!0,hideTitleBar:!0,cssIdentifier:"chart-menu"}));return r.setParentComponent(this),this.eMenuPanelContainer.appendChild(r.getGui()),this.tabbedMenu=this.createBean(new f.TabbedChartMenu(this.panels,this.chartMenuContext)),this.addManagedListeners(this.tabbedMenu,{closed:()=>{this.hideMenu()}}),this.addManagedListeners(r,{destroyed:()=>this.destroyBean(this.tabbedMenu)}),new A.AgPromise(d=>{window.setTimeout(()=>{r.setBodyComponent(this.tabbedMenu),this.tabbedMenu.showTab(s),d(r)},100)})}showContainer(s,r){this.menuPanel&&(this.menuVisible=!0,this.refreshMenuClasses(),this.tabbedMenu.showMenu(s,r))}showMenu(s){let{panel:r,eventSource:d,suppressFocus:g}=s!=null?s:{};if(this.menuPanel&&!r)this.showContainer(d,g);else{let m=r||this.defaultPanel,b=this.panels.indexOf(m);b<0&&((0,A._warn)(143,{panel:r}),b=this.panels.indexOf(this.defaultPanel)),this.menuPanel?(this.tabbedMenu.showTab(b),this.showContainer(d,g)):this.createMenuPanel(b).then(()=>this.showContainer(d,g))}}hideMenu(){this.menuVisible=!1,this.refreshMenuClasses()}refreshMenuClasses(){this.eChartContainer.classList.toggle("ag-chart-menu-visible",this.menuVisible),this.eChartContainer.classList.toggle("ag-chart-menu-hidden",!this.menuVisible)}showMenuList(s){this.chartMenuListFactory.showMenuList({eventSource:s,showMenu:()=>this.showMenu({eventSource:s}),chartMenuContext:this.chartMenuContext})}destroy(){super.destroy(),this.menuPanel&&this.menuPanel.isAlive()&&this.destroyBean(this.menuPanel),this.tabbedMenu&&this.tabbedMenu.isAlive()&&this.destroyBean(this.tabbedMenu)}}p.ChartMenu=v},6292:function(x,p,M){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.ChartMenuListFactory=void 0;let A=M(6624),F=M(9476);class D extends A.BeanStub{constructor(){super(...arguments),this.beanName="chartMenuListFactory"}wireBeans(u){this.popupSvc=u.popupSvc,this.chartMenuSvc=u.chartMenuSvc,this.chartTranslation=u.chartTranslation}showMenuList(u){let{eventSource:s,showMenu:r,chartMenuContext:d}=u,g=this.chartMenuSvc.doChartToolPanelsExist(d.chartController),m=this.mapWithStockItems(this.getMenuItems(d.chartController,g),d,r,s,g);if(!m.length)return;let b=this.createBean(new f(m));this.activeChartMenuList=b;let w=-1,k="left";this.gos.get("enableRtl")&&(w=1,k="right");let R=b.getGui();this.popupSvc.addPopup({modal:!0,eChild:R,closeOnEsc:!0,closedCallback:()=>{this.destroyBean(b),this.activeChartMenuList=void 0,(0,A._isNothingFocused)(this.beans)&&s.focus({preventScroll:!0})},afterGuiAttached:T=>b.afterGuiAttached(T),positionCallback:()=>{this.popupSvc.positionPopupByComponent({type:"chartMenu",eventSource:s,ePopup:R,alignSide:k,nudgeX:4*w,nudgeY:4,position:"under",keepWithinBounds:!0})},ariaLabel:"Chart Menu"})}getMenuItems(u,s){let r=[...s?["chartEdit"]:[],...u.isEnterprise()?["chartAdvancedSettings"]:[],u.isChartLinked()?"chartUnlink":"chartLink","chartDownload"],d=this.gos.get("chartMenuItems");return d?Array.isArray(d)?d:d(this.gos.addGridCommonParams({defaultItems:r})):r}mapWithStockItems(u,s,r,d,g){if(!u)return[];let m=[];return u.forEach(b=>{let w;if(typeof b=="string"?w=this.getStockMenuItem(b,s,r,d,g):w=pe({},b),!w)return;let{subMenu:k}=w;Array.isArray(k)&&(w.subMenu=this.mapWithStockItems(k,s,r,d,g)),m.push(w)}),m}getStockMenuItem(u,s,r,d,g){switch(u){case"chartEdit":return g?this.createMenuItem(this.chartTranslation.translate("chartEdit"),"chartsMenuEdit",r):null;case"chartAdvancedSettings":return this.createMenuItem(this.chartTranslation.translate("chartAdvancedSettings"),"chartsMenuAdvancedSettings",()=>this.chartMenuSvc.openAdvancedSettings(s,d));case"chartUnlink":return s.chartController.isChartLinked()?this.createMenuItem(this.chartTranslation.translate("chartUnlink"),"unlinked",()=>this.chartMenuSvc.toggleLinked(s)):null;case"chartLink":return s.chartController.isChartLinked()?null:this.createMenuItem(this.chartTranslation.translate("chartLink"),"linked",()=>this.chartMenuSvc.toggleLinked(s));case"chartDownload":return this.createMenuItem(this.chartTranslation.translate("chartDownload"),"chartsDownload",()=>this.chartMenuSvc.downloadChart(s))}return null}createMenuItem(u,s,r){return{name:u,icon:(0,A._createIconNoSpan)(s,this.beans,null),action:r}}destroy(){this.destroyBean(this.activeChartMenuList),super.destroy()}}p.ChartMenuListFactory=D;class f extends A.Component{constructor(u){super(`
            <div data-ref="eChartsMenu" role="presentation" class="ag-menu ag-chart-menu-popup"></div>
        `),this.menuItems=u,this.eChartsMenu=A.RefPlaceholder}postConstruct(){this.mainMenuList=this.createManagedBean(new F.AgMenuList(0)),this.mainMenuList.addMenuItems(this.menuItems),this.mainMenuList.addEventListener("closeMenu",this.onHidePopup.bind(this)),this.eChartsMenu.appendChild(this.mainMenuList.getGui())}onHidePopup(){var u;(u=this.hidePopupFunc)==null||u.call(this)}afterGuiAttached({hidePopup:u}){u&&(this.hidePopupFunc=u,this.addDestroyFunc(u)),(0,A._focusInto)(this.mainMenuList.getGui())}}},3786:function(x,p,M){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.ChartMenuParamsFactory=void 0;let A=M(6624);class F extends A.BeanStub{wireBeans(f){this.chartTranslation=f.chartTranslation}constructor(f){super(),this.chartOptionsProxy=f}getDefaultColorPickerParams(f,v,u){return this.addValueParams(f,{label:this.chartTranslation.translate(v!=null?v:"color"),labelWidth:"flex",inputWidth:"flex",labelAlignment:"top",pickerGap:6},u)}getDefaultNumberInputParams(f,v,u){return this.addValueParams(f,{label:this.chartTranslation.translate(v),labelAlignment:"top",labelWidth:"flex",inputWidth:"flex",precision:u==null?void 0:u.precision,step:u==null?void 0:u.step,min:u==null?void 0:u.min,max:u==null?void 0:u.max},{parseInputValue:s=>{let r=Number(s);return isNaN(r)?void 0:r},formatInputValue:s=>s==null?"":`${s}`})}getDefaultSliderParams(f,v,u,s){var g;let r=(g=this.chartOptionsProxy.getValue(f))!=null?g:0;s&&Array.isArray(r)&&(r=r[0]);let d=this.getDefaultSliderParamsWithoutValueParams(r,v,u);return d.onValueChange=m=>this.chartOptionsProxy.setValue(f,s?[m]:m),d}getDefaultSliderParamsWithoutValueParams(f,v,u){return{label:this.chartTranslation.translate(v),minValue:0,maxValue:Math.max(f,u),textFieldWidth:45,value:`${f}`}}getDefaultCheckboxParams(f,v,u){let s=this.chartOptionsProxy.getValue(f),r={label:this.chartTranslation.translate(v),value:s,readOnly:u==null?void 0:u.readOnly,passive:u==null?void 0:u.passive};return r.onValueChange=d=>{this.chartOptionsProxy.setValue(f,typeof d=="boolean"?d:void 0)},r}getDefaultSelectParams(f,v,u){return this.getDefaultSelectParamsWithoutValueParams(v,u,this.chartOptionsProxy.getValue(f),s=>{this.chartOptionsProxy.setValue(f,s)})}getDefaultSelectParamsWithoutValueParams(f,v,u,s){return{label:this.chartTranslation.translate(f),labelAlignment:"top",options:v,pickerGap:6,value:u,onValueChange:s}}getDefaultFontPanelParams(f,v){let u=s=>`${f}.${s}`;return this.addEnableParams(u("enabled"),{name:this.chartTranslation.translate(v),suppressEnabledCheckbox:!1,chartMenuParamsFactory:this,keyMapper:u})}addValueParams(f,v,u){let s=this.chartOptionsProxy.getValue(f);return v.value=u!=null&&u.formatInputValue?u.formatInputValue(s):s,v.onValueChange=r=>{let d=u!=null&&u.parseInputValue?u.parseInputValue(r):r;this.chartOptionsProxy.setValue(f,d)},v}addEnableParams(f,v){var u;return v.enabled=(u=this.chartOptionsProxy.getValue(f))!=null?u:!1,v.onEnableChange=s=>this.chartOptionsProxy.setValue(f,s),v}getChartOptions(){return this.chartOptionsProxy}}p.ChartMenuParamsFactory=F},1299:function(x,p,M){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.ChartPanelFeature=void 0;let A=M(6624),F=M(4237);class D extends A.BeanStub{constructor(v,u,s,r){super(),this.chartController=v,this.eGui=u,this.cssClass=s,this.createPanels=r,this.panels=[]}postConstruct(){this.addManagedListeners(this.chartController,{chartUpdated:()=>this.refreshPanels(!0),chartApiUpdate:()=>this.refreshPanels(!1)})}addComponent(v){this.createBean(v),this.panels.push(v),v.addCssClass(this.cssClass),this.eGui.appendChild(v.getGui())}refreshPanels(v){let u=this.chartController.getChartType(),s=this.chartController.isGrouping(),r=(0,F.getSeriesType)(u);v&&u===this.chartType&&s===this.isGrouping||(this.destroyPanels(),this.createPanels(u,r),this.chartType=u,this.isGrouping=s)}destroyPanels(){this.panels.forEach(v=>{(0,A._removeFromParent)(v.getGui()),this.destroyBean(v)}),this.panels=[]}destroy(){this.destroyPanels(),super.destroy()}}p.ChartPanelFeature=D},4967:function(x,p,M){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.ChartToolbar=void 0;let A=M(6624);class F extends A.Component{wireBeans(f){this.chartTranslation=f.chartTranslation}constructor(){super('<div class="ag-chart-menu" data-ref="eMenu"></div>'),this.eMenu=A.RefPlaceholder,this.buttonListenersDestroyFuncs=[]}updateParams(f){let{buttons:v}=f;this.createButtons(v)}createButtons(f){this.buttonListenersDestroyFuncs.forEach(u=>u==null?void 0:u()),this.buttonListenersDestroyFuncs=[];let v=this.eMenu;(0,A._clearElement)(v),f.forEach(u=>{let{buttonName:s,iconName:r,callback:d}=u,g=this.createButton(r),m=this.chartTranslation.translate(s+"ToolbarTooltip");m&&g instanceof HTMLElement&&(g.title=m),this.buttonListenersDestroyFuncs.push(...this.addManagedElementListeners(g,{click:b=>d(b.currentTarget)})),v.appendChild(g)})}createButton(f){let v=(0,A._createIconNoSpan)(f,this.beans);v.classList.add("ag-chart-menu-icon");let u=(0,A._getDocument)(this.beans).createElement("button");return u.appendChild(v),u.classList.add("ag-chart-menu-toolbar-button"),u}destroy(){this.buttonListenersDestroyFuncs=[],super.destroy()}}p.ChartToolbar=F},2477:function(x,p,M){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.CategoriesDataPanel=void 0;let A=M(6624),F=M(1421),D=M(8592),f=M(6532),v="sum";class u extends f.DragDataPanel{constructor(r,d,g,m,b){super(r,g,void 0,'<div id="categoriesGroup"></div>'),this.title=d,this.dimensionCols=m,this.isOpen=b}postConstruct(){this.groupComp=this.createBean(new F.AgGroupComponent({title:this.title,enabled:!0,suppressEnabledCheckbox:!0,suppressOpenCloseIcons:!1,cssIdentifier:"charts-data",expanded:this.isOpen})),this.createGroup(this.dimensionCols,r=>{var d;return(d=r.displayName)!=null?d:""},"categoryAdd","categorySelect",()=>!this.chartController.getAggFunc()),this.createAggFuncControls(this.dimensionCols),this.getGui().appendChild(this.groupComp.getGui())}refresh(r){var d;(d=this.valuePillSelect)==null||d.setValues(r,r.filter(g=>g.selected)),this.refreshValueSelect(r),this.refreshAggFuncControls(r,this.chartController.getAggFunc())}createAggFuncControls(r){let d=this.chartController.getAggFunc();this.groupComp.addItem(this.aggFuncToggle=this.createBean(new A.AgToggleButton({label:this.chartTranslation.translate("aggregate"),labelAlignment:"left",labelWidth:"flex",inputWidth:"flex",value:d!=null,onValueChange:g=>{var b,w;let m=g?v:void 0;this.chartController.setAggFunc(m),(b=this.aggFuncSelect)==null||b.setValue(m,!0),(w=this.aggFuncSelect)==null||w.setDisplayed(m!=null)}}))),this.groupComp.addItem(this.aggFuncSelect=this.createBean(new A.AgSelect({options:[{value:"sum",text:this.chartTranslation.translate("sum")},{value:"first",text:this.chartTranslation.translate("first")},{value:"last",text:this.chartTranslation.translate("last")},{value:"min",text:this.chartTranslation.translate("min")},{value:"max",text:this.chartTranslation.translate("max")},{value:"count",text:this.chartTranslation.translate("count")},{value:"avg",text:this.chartTranslation.translate("avg")}],value:typeof d=="string"?d:void 0,onValueChange:g=>{this.chartController.setAggFunc(g)}}))),this.refreshAggFuncControls(r,d)}refreshAggFuncControls(r,d){var b,w,k,R;let m=r.filter(T=>T.selected).some(T=>T.colId!==D.DEFAULT_CHART_CATEGORY);(b=this.aggFuncToggle)==null||b.setValue(d!=null),(w=this.aggFuncSelect)==null||w.setValue(typeof d=="string"?d:void 0,!0),(k=this.aggFuncToggle)==null||k.setDisplayed(m),(R=this.aggFuncSelect)==null||R.setDisplayed(m&&d!=null)}clearAggFuncControls(){this.aggFuncToggle=this.destroyBean(this.aggFuncToggle),this.aggFuncSelect=this.destroyBean(this.aggFuncSelect)}destroy(){this.clearAggFuncControls(),this.groupComp=this.destroyBean(this.groupComp),super.destroy()}}p.CategoriesDataPanel=u},1504:function(x,p,M){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.ChartDataPanel=void 0;let A=M(6624),F=M(4237),D=M(2477),f=M(5524),v=M(1625),u=M(3365),s={groups:[{type:"categories",isOpen:!0},{type:"series",isOpen:!0},{type:"seriesChartType",isOpen:!0},{type:"chartSpecific",isOpen:!0}]};class r extends A.Component{wireBeans(g){this.chartTranslation=g.chartTranslation,this.chartSvc=g.chartSvc}constructor(g){super('<div class="ag-chart-data-wrapper ag-scrollable-container"></div>'),this.chartMenuContext=g,this.isSwitchCategorySeriesToggled=!1,this.restoreSwitchCategorySeriesToggleFocus=!1,this.panels=[],this.chartController=g.chartController}postConstruct(){this.createSwitchCategorySeriesToggle(),this.isSwitchCategorySeriesToggled=this.chartController.isCategorySeriesSwitched(),this.updatePanels();let g=this.updatePanels.bind(this);this.addManagedListeners(this.chartController,{chartModelUpdate:g,chartApiUpdate:g})}destroy(){this.clearPanelComponents(),super.destroy()}updatePanels(){var T,z,G,U,X;let g=this.chartType,m=this.isSwitchCategorySeriesToggled,{dimensionCols:b,valueCols:w}=this.chartController.getColStateForMenu();this.chartType=this.chartController.getChartType(),this.isSwitchCategorySeriesToggled=this.chartController.isCategorySeriesSwitched();let k=this.isSwitchCategorySeriesToggled!==m;this.canRefresh(g,this.chartType)&&!k?((T=this.categoriesDataPanel)==null||T.refresh(b),(z=this.seriesDataPanel)==null||z.refresh(w),(G=this.seriesChartTypePanel)==null||G.refresh(w),(U=this.chartSpecificPanel)==null||U.refresh()):this.recreatePanels(b,w);let R=(0,F.supportsInvertedCategorySeries)(this.chartType)&&this.chartSvc.isEnterprise()&&!this.chartController.isGrouping();(0,A._setDisplayed)(this.switchCategorySeriesToggle.getGui(),R),k&&((X=this.switchCategorySeriesToggle)==null||X.setValue(this.chartController.isCategorySeriesSwitched())),this.restoreSwitchCategorySeriesToggleFocus&&(this.restoreSwitchCategorySeriesToggleFocus=!1,R&&this.switchCategorySeriesToggle.getFocusableElement().focus())}canRefresh(g,m){if(g===void 0)return!1;if(g===m)return!0;let b=w=>["columnLineCombo","areaColumnCombo","customCombo"].includes(w);return!!(b(g)&&b(m))}recreatePanels(g,m){var k,R;this.clearPanelComponents();let{chartType:b}=this;if(!b)return;let w=this.chartController.isCategorySeriesSwitched();(k=this.getDataPanelDef().groups)==null||k.forEach(({type:T,isOpen:z})=>{T===(w?"series":"categories")?(this.categoriesDataPanel=this.createBean(new D.CategoriesDataPanel(this.chartController,this.getCategoryGroupTitle(w),this.getCategoryGroupMultipleSelect(b,w),g,z)),this.panels.push(this.categoriesDataPanel)):T===(w?"categories":"series")?(this.seriesDataPanel=this.createBean(new u.SeriesDataPanel(this.chartController,this.chartMenuContext.chartOptionsService,this.getSeriesGroupTitle(w),this.getSeriesGroupMultipleSelect(b,w),this.getSeriesGroupMaxSelection(b,w),m,z)),this.panels.push(this.seriesDataPanel)):T==="seriesChartType"?this.chartController.isComboChart()&&(this.seriesChartTypePanel=this.createBean(new v.SeriesChartTypePanel(this.chartController,m,z)),this.panels.push(this.seriesChartTypePanel)):T==="chartSpecific"?(this.chartSpecificPanel=this.createBean(new f.ChartSpecificDataPanel(this.chartMenuContext,z)),this.panels.push(this.chartSpecificPanel)):(0,A._warn)(144,{type:T})}),(R=w?this.categoriesDataPanel:this.seriesDataPanel)==null||R.addItem(this.switchCategorySeriesToggle.getGui()),this.addPanelComponents()}addPanelComponents(){if(!this.panels.length)return;let m=(0,A._getDocument)(this.beans).createDocumentFragment();for(let b of this.panels)b.addCssClass("ag-chart-data-section"),m.appendChild(b.getGui());this.getGui().appendChild(m)}clearPanelComponents(){let g=this.getGui();this.panels.forEach(m=>{g.removeChild(m.getGui()),this.destroyBean(m)}),this.panels=[]}getDataPanelDef(){var g,m;return(m=(g=this.gos.get("chartToolPanelsDef"))==null?void 0:g.dataPanel)!=null?m:s}getCategoryGroupTitle(g){return g?this.chartTranslation.translate("seriesLabels"):this.chartTranslation.translate(this.chartController.isActiveXYChart()?"labels":"categories")}getCategoryGroupMultipleSelect(g,m){return m?!1:(0,F.getMaxNumCategories)(g)!==1}getSeriesGroupTitle(g){return g?this.chartTranslation.translate("categoryValues"):this.chartTranslation.translate(this.chartController.isActiveXYChart()?"xyValues":"series")}getSeriesGroupMultipleSelect(g,m){return this.getSeriesGroupMaxSelection(g,m)!==1}getSeriesGroupMaxSelection(g,m){if(!m)return(0,F.getMaxNumSeries)(g)}createSwitchCategorySeriesToggle(){this.switchCategorySeriesToggle=this.createManagedBean(new A.AgToggleButton({label:this.chartTranslation.translate("switchCategorySeries"),labelAlignment:"left",labelWidth:"flex",inputWidth:"flex",value:this.chartController.isCategorySeriesSwitched(),onValueChange:g=>{this.restoreSwitchCategorySeriesToggleFocus=!0,this.chartController.switchCategorySeries(g)}}))}}p.ChartDataPanel=r},5524:function(x,p,M){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.ChartSpecificDataPanel=void 0;let A=M(6624),F=M(1421),D=M(4237),f=M(3786);class v extends A.Component{wireBeans(s){this.chartTranslation=s.chartTranslation,this.chartSvc=s.chartSvc}constructor(s,r){super(),this.chartMenuContext=s,this.isOpen=r,this.chartSpecificGroup=A.RefPlaceholder,this.hasContent=!1}postConstruct(){let r={title:this.getTitle(),enabled:!0,suppressEnabledCheckbox:!0,suppressOpenCloseIcons:!1,cssIdentifier:"charts-data",expanded:this.isOpen,items:[...this.createDirectionSelect(),this.createGroupTypeSelect()]};this.setTemplate(`
            <div id="chartSpecificGroup">
                <ag-group-component data-ref="chartSpecificGroup"></ag-group-component>
            </div>`,[F.AgGroupComponentSelector],{chartSpecificGroup:r}),this.setDisplayed(this.hasContent)}refresh(){this.hasContent=!1,this.chartSpecificGroup.setTitle(this.getTitle()),this.updateDirectionSelect(),this.updateGroupTypeSelect(),this.setDisplayed(this.hasContent)}getTitle(){let s=this.chartMenuContext.chartController.getChartType();return this.chartTranslation.translate((0,D.getFullChartNameTranslationKey)(s))}createDirectionSelect(){if(!this.chartSvc.isEnterprise())return[];let{chartOptionsService:s,chartController:r}=this.chartMenuContext,d=s.getSeriesOptionsProxy(()=>(0,D.getSeriesType)(r.getChartType())),g=this.createManagedBean(new f.ChartMenuParamsFactory(d)),m=["horizontal","vertical"].map(k=>({value:k,text:this.chartTranslation.translate(k)})),b=g.getDefaultSelectParams("direction","direction",m),w=b.onValueChange;return b.onValueChange=k=>{w(k),r.raiseChartModelUpdateEvent()},this.directionSelect=this.createManagedBean(new A.AgSelect(b)),this.updateDirectionSelect(),[this.directionSelect]}updateDirectionSelect(){let s=(0,D.canSwitchDirection)(this.chartMenuContext.chartController.getChartType());this.updateDisplayed(this.directionSelect,s)}createGroupTypeSelect(){let{chartController:s,chartMenuParamsFactory:r}=this.chartMenuContext;return this.groupTypeSelect=this.createManagedBean(new A.AgSelect(r.getDefaultSelectParamsWithoutValueParams("seriesGroupType",D.SERIES_GROUP_TYPES.map(d=>({value:d,text:this.chartTranslation.translate(`${d}SeriesGroupType`)})),s.getSeriesGroupType(),d=>s.setSeriesGroupType(d)))),this.updateGroupTypeSelect(),this.groupTypeSelect}updateGroupTypeSelect(){let s=["radialColumn","radialBar","nightingale"].includes(this.chartMenuContext.chartController.getChartType());this.updateDisplayed(this.groupTypeSelect,s)}updateDisplayed(s,r){s==null||s.setDisplayed(r),s&&(this.hasContent=this.hasContent||r)}}p.ChartSpecificDataPanel=v},6532:function(x,p,M){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.DragDataPanel=void 0;let A=M(6624),F=M(2406),D=M(8592);class f extends A.Component{wireBeans(u){this.chartTranslation=u.chartTranslation}constructor(u,s,r,d){super(d),this.chartController=u,this.allowMultipleSelection=s,this.maxSelection=r}addItem(u){this.groupComp.addItem(u)}createGroup(u,s,r,d,g){if(this.allowMultipleSelection){let m=u.filter(b=>b.selected);this.valuePillSelect=this.groupComp.createManagedBean(new F.AgPillSelect({valueList:u,selectedValueList:m,valueFormatter:s,selectPlaceholder:this.chartTranslation.translate(r),dragSourceId:d,onValuesChange:b=>this.onValueChange(b),maxSelection:this.maxSelection})),this.groupComp.addItem(this.valuePillSelect)}else{let m=this.createValueSelectParams(u);m.onValueChange=b=>{u.forEach(w=>{w.selected=!1}),b.selected=!0,b.colId===D.DEFAULT_CHART_CATEGORY&&this.chartController.setAggFunc(void 0,!0),this.chartController.updateForPanelChange({updatedColState:b,skipAnimation:g==null?void 0:g()})},this.valueSelect=this.groupComp.createManagedBean(new A.AgSelect(m)),this.groupComp.addItem(this.valueSelect)}}refreshValueSelect(u){if(!this.valueSelect)return;let{options:s,value:r}=this.createValueSelectParams(u);this.valueSelect.clearOptions().addOptions(s).setValue(r,!0)}createValueSelectParams(u){let s;return{options:u.map(d=>{var m;let g=(m=d.displayName)!=null?m:"";return d.selected&&(s=d),{value:d,text:g}}),value:s}}onValueChange({added:u,updated:s,removed:r,selected:d}){let g,m,b=()=>{d.forEach((w,k)=>{w.order=k}),m=!0};u.length?(g=u[0],g.selected=!0,b()):r.length?(g=r[0],g.selected=!1):s.length&&(b(),g=s[0]),g&&this.chartController.updateForPanelChange({updatedColState:g,resetOrder:m})}destroy(){this.valuePillSelect=void 0,this.valueSelect=void 0,super.destroy()}}p.DragDataPanel=f},1625:function(x,p,M){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.SeriesChartTypePanel=void 0;let A=M(6624),F=M(1421),D=M(4237);class f extends A.Component{wireBeans(u){this.chartTranslation=u.chartTranslation}constructor(u,s,r){super('<div id="seriesChartTypeGroup"></div>'),this.chartController=u,this.columns=s,this.isOpen=r,this.selectedColIds=[],this.chartTypeComps=new Map,this.secondaryAxisComps=new Map}postConstruct(){this.createSeriesChartTypeGroup(this.columns)}refresh(u){(0,A._areEqual)(this.getValidColIds(u),this.selectedColIds)?this.refreshComps():this.recreate(u)}recreate(u){this.isOpen=this.seriesChartTypeGroupComp.isExpanded(),(0,A._clearElement)(this.getGui()),this.destroyBean(this.seriesChartTypeGroupComp),this.columns=u,this.selectedColIds=[],this.clearComps(),this.postConstruct()}getValidColIds(u){let s=this.chartController.getSeriesChartTypes();return u.filter(r=>r.selected&&!!s.filter(d=>d.colId===r.colId)[0]).map(({colId:r})=>r)}createSeriesChartTypeGroup(u){this.seriesChartTypeGroupComp=this.createBean(new F.AgGroupComponent({title:this.chartTranslation.translate("seriesChartType"),enabled:!0,suppressEnabledCheckbox:!0,suppressOpenCloseIcons:!1,cssIdentifier:"charts-data",expanded:this.isOpen}));let s=this.chartController.getSeriesChartTypes();u.forEach(r=>{if(!r.selected)return;let d=s.filter(R=>R.colId===r.colId)[0];if(!d)return;this.selectedColIds.push(r.colId);let g=this.seriesChartTypeGroupComp.createManagedBean(new F.AgGroupComponent({title:r.displayName,enabled:!0,suppressEnabledCheckbox:!0,suppressOpenCloseIcons:!0,cssIdentifier:"charts-format-sub-level"})),m=R=>["groupedColumn","stackedColumn","stackedArea"].includes(R),b=this.seriesChartTypeGroupComp.createManagedBean(new A.AgCheckbox({label:this.chartTranslation.translate("secondaryAxis"),labelWidth:"flex",disabled:m(d.chartType),value:!!d.secondaryAxis,onValueChange:R=>this.chartController.updateSeriesChartType(r.colId,void 0,R)}));g.addItem(b);let w=["line","area","stackedArea","groupedColumn","stackedColumn"].map(R=>({value:R,text:this.chartTranslation.translate((0,D.getFullChartNameTranslationKey)(R))})),k=g.createManagedBean(new A.AgSelect({options:w,value:d.chartType,onValueChange:R=>this.chartController.updateSeriesChartType(r.colId,R)}));g.addItem(k),this.seriesChartTypeGroupComp.addItem(g),this.chartTypeComps.set(r.colId,k),this.secondaryAxisComps.set(r.colId,b)}),this.getGui().appendChild(this.seriesChartTypeGroupComp.getGui())}refreshComps(){let u=this.chartController.getSeriesChartTypes();this.selectedColIds.forEach(s=>{let r=u.find(m=>m.colId===s);if(!r)return;let d=this.chartTypeComps.get(s),g=this.secondaryAxisComps.get(s);d==null||d.setValue(r.chartType),g==null||g.setValue(!!r.secondaryAxis),g==null||g.setDisabled(this.isSecondaryAxisDisabled(r.chartType))})}clearComps(){this.chartTypeComps.clear(),this.secondaryAxisComps.clear()}isSecondaryAxisDisabled(u){return["groupedColumn","stackedColumn","stackedArea"].includes(u)}destroy(){this.clearComps(),this.seriesChartTypeGroupComp=this.destroyBean(this.seriesChartTypeGroupComp),super.destroy()}}p.SeriesChartTypePanel=f},3365:function(x,p,M){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.SeriesDataPanel=void 0;let A=M(6624),F=M(1421),D=M(6532);class f extends D.DragDataPanel{constructor(u,s,r,d,g,m,b){super(u,d,g,'<div id="seriesGroup"></div>'),this.chartOptionsService=s,this.title=r,this.valueCols=m,this.isOpen=b}postConstruct(){if(this.groupComp=this.createBean(new F.AgGroupComponent({title:this.title,enabled:!0,suppressEnabledCheckbox:!0,suppressOpenCloseIcons:!1,cssIdentifier:"charts-data",expanded:this.isOpen})),this.chartController.isActiveXYChart()){let u=this.groupComp.createManagedBean(new A.AgToggleButton({label:this.chartTranslation.translate("paired"),labelAlignment:"left",labelWidth:"flex",inputWidth:"flex",value:this.chartOptionsService.getPairedMode(),onValueChange:s=>{this.chartOptionsService.setPairedMode(!!s),this.chartController.updateForGridChange({maintainColState:!0})}}));this.groupComp.addItem(u)}this.createGroup(this.valueCols,this.generateGetSeriesLabel(this.valueCols),"seriesAdd","seriesSelect"),this.getGui().appendChild(this.groupComp.getGui())}refresh(u){var s,r;(s=this.valuePillSelect)==null||s.setValueFormatter(this.generateGetSeriesLabel(u)),(r=this.valuePillSelect)==null||r.setValues(u,u.filter(d=>d.selected)),this.refreshValueSelect(u)}generateGetSeriesLabel(u){if(!this.chartController.isActiveXYChart())return m=>{var b;return(b=m.displayName)!=null?b:""};let s=u.filter(m=>m.selected),r=this.chartController.getChartType()==="bubble",d=this.chartOptionsService.getPairedMode(),g=new Map;return g.set(0,"X"),g.set(1,"Y"),g.set(2,"size"),m=>{var R;let b=(R=m.displayName)!=null?R:"";if(!m.selected)return b;let w=s.indexOf(m);if(w===-1)return b;let k;return d?k=g.get(w%(r?3:2)):w===0?k="X":k=r&&w%2===0?"size":"Y",`${b} (${k})`}}destroy(){this.groupComp=this.destroyBean(this.groupComp),super.destroy()}}p.SeriesDataPanel=f},5248:function(x,p,M){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.AxisTicksPanel=void 0;let A=M(6624),F=M(1421),D=M(1296),f=M(5e3);class v extends A.Component{wireBeans(s){this.chartTranslation=s.chartTranslation}constructor(s){super(),this.chartMenuUtils=s}postConstruct(){let{chartMenuUtils:s}=this,r=s.addEnableParams("tick.enabled",{cssIdentifier:"charts-format-sub-level",direction:"vertical",suppressOpenCloseIcons:!0,title:this.chartTranslation.translate("ticks"),suppressEnabledCheckbox:!0,useToggle:!0}),d=s.getDefaultColorPickerParams("tick.stroke"),g=s.getDefaultSliderParams("tick.width","width",10),m=s.getDefaultSliderParams("tick.size","length",30);this.setTemplate(`<div>
            <ag-group-component data-ref="axisTicksGroup">
                <ag-color-picker data-ref="axisTicksColorPicker"></ag-color-picker>
                <ag-slider data-ref="axisTicksWidthSlider"></ag-slider>
                <ag-slider data-ref="axisTicksSizeSlider"></ag-slider>
            </ag-group-component>
        </div>`,[F.AgGroupComponentSelector,D.AgColorPickerSelector,f.AgSliderSelector],{axisTicksGroup:r,axisTicksColorPicker:d,axisTicksWidthSlider:g,axisTicksSizeSlider:m})}}p.AxisTicksPanel=v},5002:function(x,p,M){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.CartesianAxisPanel=void 0;let A=M(6624),F=M(1421),D=M(1750),f=M(1296),v=M(5e3),u=M(3786),s=M(7730),r=M(5248),d=M(4513),g="%d %B %Y";class m extends A.Component{wireBeans(w){this.chartTranslation=w.chartTranslation}constructor(w,k){super(),this.axisType=w,this.options=k,this.axisGroup=A.RefPlaceholder,this.axisTypeSelect=A.RefPlaceholder,this.axisPositionSelect=A.RefPlaceholder,this.axisTimeFormatSelect=A.RefPlaceholder,this.activePanels=[],this.axisLabelUpdateFuncs=[];let{chartOptionsService:R,seriesType:T}=k;this.chartOptionsSeriesProxy=R.getSeriesOptionsProxy(()=>T)}postConstruct(){var Ye;let{isExpandedOnInit:w,chartOptionsService:k,chartController:R,registerGroupComponent:T}=this.options,z=this.axisType,G={cssIdentifier:"charts-format-top-level",direction:"vertical",title:this.translate(z),expanded:w,suppressEnabledCheckbox:!0},U=k.getCartesianAxisOptionsProxy(this.axisType),X=this.createManagedBean(new u.ChartMenuParamsFactory(U)),Q=this.createManagedBean(new u.ChartMenuParamsFactory(k.getCartesianAxisThemeOverridesProxy(this.axisType))),oe=this.getAxisTypeSelectParams(X,k.getCartesianAxisAppliedThemeOverridesProxy(this.axisType)),le=this.getAxisPositionSelectParams(X),fe=this.getAxisTimeFormatSelectParams(X),ye=this.getAxisColorInputParams(Q),ke=this.getAxisLineWidthSliderParams(Q);this.setTemplate(`<div>
            <ag-group-component data-ref="axisGroup">
                <ag-select data-ref="axisTypeSelect"></ag-select>
                <ag-select data-ref="axisTimeFormatSelect"></ag-select>
                <ag-select data-ref="axisPositionSelect"></ag-select>
                <ag-color-picker data-ref="axisColorInput"></ag-color-picker>
                <ag-slider data-ref="axisLineWidthSlider"></ag-slider>
            </ag-group-component>
        </div>`,[F.AgGroupComponentSelector,A.AgSelectSelector,f.AgColorPickerSelector,v.AgSliderSelector],{axisGroup:G,axisTypeSelect:oe!=null?oe:void 0,axisPositionSelect:le!=null?le:void 0,axisTimeFormatSelect:fe!=null?fe:void 0,axisColorInput:ye,axisLineWidthSlider:ke}),T(this.axisGroup),this.axisTypeSelect.setDisplayed(!!((Ye=oe.options)!=null&&Ye.length)),le||this.removeTemplateComponent(this.axisPositionSelect);let Ie=()=>{let xe=U.getValue("type")==="time";(0,A._setDisplayed)(this.axisTimeFormatSelect.getGui(),xe)};fe?(Ie(),this.addManagedEventListeners({chartOptionsChanged:()=>{Ie()}})):this.removeTemplateComponent(this.axisTimeFormatSelect),this.initGridLines(Q),this.initAxisTicks(Q),this.initAxisLabels(Q);let ze=()=>this.axisLabelUpdateFuncs.forEach(xe=>xe());this.addManagedListeners(R,{chartUpdated:ze,chartModelUpdate:()=>setTimeout(()=>{this.isAlive()&&(this.refreshAxisTypeSelect(X),Ie())})})}getAxisTypeSelectParams(w,k){let R=w.getChartOptions(),T=this.getAxisTypeSelectOptions(),z=w.getDefaultSelectParams("type","axisType",T);return z.onValueChange=G=>{var fe;let U=R.getValue("type");if(G===U)return;let X=k.getValue("*"),Q=U==="time",oe=G==="time",le=Q!==oe?oe?g:void 0:null;if(this.options.chartOptionsService.setCartesianCategoryAxisType(this.axisType,G),le!==null){let ye=(fe=R.getValue("label"))!=null?fe:{};R.setValue("label",et(pe({},ye),{format:le}))}k.setValue("*",X)},z}refreshAxisTypeSelect(w){let k=this.getAxisTypeSelectOptions(),R=!!k.length;this.axisTypeSelect.setDisplayed(R),R&&this.axisTypeSelect.clearOptions().addOptions(k).setValue(w.getChartOptions().getValue("type"))}getAxisTypeSelectOptions(){let{chartController:w}=this.options,k=w.getChartType(),R=()=>{let T=w.getChartData()[0];return T?w.getSelectedDimensions().every(z=>!isNaN(parseFloat(T[z.colId]))):!1};return["heatmap","histogram","boxPlot","rangeBar","scatter","bubble"].includes(k)||w.isGrouping()||!this.isCategoryAxis()||w.isCategorySeriesSwitched()||!R()?[]:["category","number","time"].map(T=>({value:T,text:this.translate(T)}))}isCategoryAxis(){let w=this.chartOptionsSeriesProxy.getValue("direction")==="horizontal";return w&&this.axisType==="yAxis"||!w&&this.axisType==="xAxis"}getAxisPositionSelectParams(w){let k=((R,T)=>{switch(R){case"heatmap":return null;default:switch(T){case"xAxis":return[{value:"top",text:this.translate("top")},{value:"bottom",text:this.translate("bottom")}];case"yAxis":return[{value:"left",text:this.translate("left")},{value:"right",text:this.translate("right")}]}}})(this.options.chartController.getChartType(),this.axisType);return k?w.getDefaultSelectParams("position","position",k):null}getAxisTimeFormatSelectParams(w){if(!this.isCategoryAxis())return null;let k=[{value:"%d/%m/%Y",text:this.translate("timeFormatSlashesDDMMYYYY")},{value:"%m/%d/%Y",text:this.translate("timeFormatSlashesMMDDYYYY")},{value:"%d/%m/%y",text:this.translate("timeFormatSlashesDDMMYY")},{value:"%m/%d/%y",text:this.translate("timeFormatSlashesMMDDYY")},{value:"%d.%e.%y",text:this.translate("timeFormatDotsDDMYY")},{value:"%e.%d.%y",text:this.translate("timeFormatDotsMDDYY")},{value:"%Y-%m-%d",text:this.translate("timeFormatDashesYYYYMMDD")},{value:"%d %B %Y",text:this.translate("timeFormatSpacesDDMMMMYYYY")},{value:"%H:%M:%S",text:this.translate("timeFormatHHMMSS")},{value:"%I:%M:%S %p",text:this.translate("timeFormatHHMMSSAmPm")}];return w.getDefaultSelectParams("label.format","timeFormat",k)}getAxisColorInputParams(w){return w.getDefaultColorPickerParams("line.stroke")}getAxisLineWidthSliderParams(w){var G;let k=w.getChartOptions(),R=()=>k.getValue("line.enabled")?k.getValue("line.width"):null,T=U=>{k.setValues([{expression:"line.enabled",value:U!=null},{expression:"line.width",value:U!=null?U:0}])},z=w.getDefaultSliderParamsWithoutValueParams((G=R())!=null?G:0,"thickness",10);return z.onValueChange=U=>{T(U===0?null:U)},z}initGridLines(w){if(this.options.chartController.getChartType()==="heatmap")return;let R=this.createBean(new d.GridLinePanel(w));this.axisGroup.addItem(R),this.activePanels.push(R)}initAxisTicks(w){if(!this.hasConfigurableAxisTicks())return;let k=this.createBean(new r.AxisTicksPanel(w));this.axisGroup.addItem(k),this.activePanels.push(k)}hasConfigurableAxisTicks(){switch(this.options.chartController.getChartType()){case"radarLine":case"radarArea":case"rangeBar":case"boxPlot":case"waterfall":return!1;default:return!0}}initAxisLabels(w){let k={name:this.translate("labels"),enabled:!0,suppressEnabledCheckbox:!0,chartMenuParamsFactory:w,keyMapper:T=>`label.${T}`},R=this.createBean(new s.FontPanel(k));this.axisGroup.addItem(R),this.activePanels.push(R),this.addAdditionalLabelComps(R,w)}addAdditionalLabelComps(w,k){this.addLabelPadding(w,k);let R=this.createRotationWidget("labelRotation",k),T=this.initLabelRotation(R,k);w.addItem(T),w.addItem(R)}initLabelRotation(w,k){let R=k.getChartOptions(),T=()=>R.getValue("label.rotation"),z=()=>R.getValue("label.autoRotate"),G=oe=>{oe&&(this.prevRotation=T()),R.setValues([{expression:"label.autoRotate",value:oe},{expression:"label.rotation",value:oe?void 0:this.prevRotation}]),w.setDisplayed(!oe)},X=typeof T()=="number"?!1:z(),Q=this.createBean(new A.AgCheckbox({label:this.translate("autoRotate"),value:X,onValueChange:G}));return w.setDisplayed(!X),Q}createRotationWidget(w,k){var Q;let R=k.getChartOptions(),T=()=>R.getValue("label.rotation"),z=oe=>R.setValue("label.rotation",oe),G=String.fromCharCode(176),U=`${this.chartTranslation.translate(w)} ${G}`,X=new D.AgAngleSelect({label:U,labelWidth:"flex",value:(Q=T())!=null?Q:0,onValueChange:z});return this.axisLabelUpdateFuncs.push(()=>{var oe;X.setValue((oe=T())!=null?oe:0)}),this.createBean(X)}addLabelPadding(w,k){let R=this.createBean(new v.AgSlider(k.getDefaultSliderParams("label.spacing","padding",30)));w.addItem(R)}translate(w){return this.chartTranslation.translate(w)}removeTemplateComponent(w){(0,A._removeFromParent)(w.getGui()),this.destroyBean(w)}destroyActivePanels(){this.activePanels.forEach(w=>{(0,A._removeFromParent)(w.getGui()),this.destroyBean(w)})}destroy(){this.destroyActivePanels(),super.destroy()}}p.CartesianAxisPanel=m},4513:function(x,p,M){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.GridLinePanel=void 0;let A=M(6624),F=M(1421),D=M(1296),f=M(5e3);class v extends A.Component{wireBeans(s){this.chartTranslation=s.chartTranslation}constructor(s){super(),this.chartMenuUtils=s,this.chartOptions=s.getChartOptions()}postConstruct(){let s=this.chartMenuUtils.addEnableParams("gridLine.enabled",{cssIdentifier:"charts-format-sub-level",direction:"vertical",suppressOpenCloseIcons:!0,title:this.chartTranslation.translate("gridLines"),suppressEnabledCheckbox:!0,useToggle:!0}),r=this.getGridLineColorPickerParams("color"),d=this.getGridLineWidthSliderParams("thickness"),g=this.getGridLineDashSliderParams("lineDash");this.setTemplate(`<div>
            <ag-group-component data-ref="gridLineGroup">
                <ag-color-picker data-ref="gridLineColorPicker"></ag-color-picker>
                <ag-slider data-ref="gridLineWidthSlider"></ag-slider>
                <ag-slider data-ref="gridLineLineDashSlider"></ag-slider>
            </ag-group-component>
        </div>`,[F.AgGroupComponentSelector,D.AgColorPickerSelector,f.AgSliderSelector],{gridLineGroup:s,gridLineColorPicker:r,gridLineWidthSlider:d,gridLineLineDashSlider:g})}getGridLineColorPickerParams(s){return this.chartMenuUtils.getDefaultColorPickerParams("gridLine.style",s,{formatInputValue:r=>{var d;return(d=r==null?void 0:r[0])==null?void 0:d.stroke},parseInputValue:r=>{var g;let d=(g=this.chartOptions.getValue("gridLine.style"))!=null?g:[];return d.length===0?[{stroke:r,lineDash:[]}]:[et(pe({},d[0]),{stroke:r})]}})}getGridLineWidthSliderParams(s){return this.chartMenuUtils.getDefaultSliderParams("gridLine.width",s,10)}getGridLineDashSliderParams(s){var m,b;let r=this.chartOptions.getValue("gridLine.style"),d=(b=(m=r==null?void 0:r[0])==null?void 0:m.lineDash)==null?void 0:b[0],g=this.chartMenuUtils.getDefaultSliderParamsWithoutValueParams(d!=null?d:0,s,30);return g.onValueChange=w=>{let k=this.chartOptions.getValue("gridLine.style.0.stroke");this.chartOptions.setValue("gridLine.style",[{lineDash:[w],stroke:k}])},g}}p.GridLinePanel=v},956:function(x,p,M){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.PolarAxisPanel=void 0;let A=M(6624),F=M(1421),D=M(1296),f=M(5e3),v=M(4237),u=M(7730);class s extends A.Component{wireBeans(d){this.chartTranslation=d.chartTranslation}constructor(d){super(),this.options=d,this.axisGroup=A.RefPlaceholder}postConstruct(){let{isExpandedOnInit:d,chartAxisMenuParamsFactory:g,registerGroupComponent:m}=this.options,b={cssIdentifier:"charts-format-top-level",direction:"vertical",title:this.translate("polarAxis"),expanded:d,suppressEnabledCheckbox:!0},w=g.getDefaultColorPickerParams("line.stroke"),k=g.getDefaultSliderParams("line.width","thickness",10);this.setTemplate(`<div>
            <ag-group-component data-ref="axisGroup">
                <ag-color-picker data-ref="axisColorInput"></ag-color-picker>
                <ag-slider data-ref="axisLineWidthSlider"></ag-slider>
            </ag-group-component>
        </div>`,[F.AgGroupComponentSelector,D.AgColorPickerSelector,f.AgSliderSelector],{axisGroup:b,axisColorInput:w,axisLineWidthSlider:k}),m(this.axisGroup),this.initAxis(),this.initAxisLabels(),this.initRadiusAxis()}initAxis(){let d=this.options.chartController.getChartType();if(["radarLine","radarArea"].includes(d)){let m=[{value:"circle",text:this.translate("circle")},{value:"polygon",text:this.translate("polygon")}];this.axisGroup.addItem(this.createSelect({labelKey:"shape",options:m,property:"shape"}))}d!=="pie"&&this.axisGroup.addItem(this.createSlider({labelKey:"innerRadius",defaultMaxValue:1,property:"innerRadiusRatio"}))}initAxisLabels(){let d={name:this.translate("labels"),enabled:!0,suppressEnabledCheckbox:!0,chartMenuParamsFactory:this.options.chartAxisMenuParamsFactory,keyMapper:b=>`label.${b}`},g=this.createManagedBean(new u.FontPanel(d)),m=this.createOrientationWidget();g.addItem(m),this.axisGroup.addItem(g)}createOrientationWidget(){let d=[{value:"fixed",text:this.translate("fixed")},{value:"parallel",text:this.translate("parallel")},{value:"perpendicular",text:this.translate("perpendicular")}];return this.createSelect({labelKey:"orientation",options:d,property:"label.orientation"})}initRadiusAxis(){let d=(0,v.getSeriesType)(this.options.chartController.getChartType());if(!(0,v.isRadial)(d))return;let g=[this.createSlider({labelKey:"groupPadding",defaultMaxValue:1,property:"paddingInner"}),this.createSlider({labelKey:"seriesPadding",defaultMaxValue:1,property:"groupPaddingInner"})],m=this.createManagedBean(new F.AgGroupComponent({cssIdentifier:"charts-format-sub-level",direction:"vertical",suppressOpenCloseIcons:!0,enabled:!0,suppressEnabledCheckbox:!0,title:this.translate("padding"),items:g})).hideEnabledCheckbox(!0).hideOpenCloseIcons(!0);this.axisGroup.addItem(m)}createSlider(d){let{labelKey:g,defaultMaxValue:m,step:b=.05,property:w}=d,k=this.options.chartAxisMenuParamsFactory.getDefaultSliderParams(w,g,m);return k.step=b,this.createManagedBean(new f.AgSlider(k))}createSelect(d){let{labelKey:g,options:m,property:b}=d;return this.createManagedBean(new A.AgSelect(this.options.chartAxisMenuParamsFactory.getDefaultSelectParams(b,g,m)))}translate(d){return this.chartTranslation.translate(d)}}p.PolarAxisPanel=s},4742:function(x,p,M){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.BackgroundPanel=void 0;let A=M(6624),F=M(1421),D=M(1296);class f extends A.Component{wireBeans(u){this.chartTranslation=u.chartTranslation}constructor(u){super(),this.chartMenuUtils=u}postConstruct(){let u=this.chartMenuUtils.addEnableParams("background.visible",{cssIdentifier:"charts-format-sub-level",direction:"vertical",suppressOpenCloseIcons:!0,title:this.chartTranslation.translate("background"),suppressEnabledCheckbox:!0,useToggle:!0}),s=this.chartMenuUtils.getDefaultColorPickerParams("background.fill");this.setTemplate(`<div>
            <ag-group-component data-ref="chartBackgroundGroup">
                <ag-color-picker data-ref="colorPicker"></ag-color-picker>
            </ag-group-component>
        <div>`,[F.AgGroupComponentSelector,D.AgColorPickerSelector],{chartBackgroundGroup:u,colorPicker:s})}}p.BackgroundPanel=f},3628:function(x,p,M){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.ChartPanel=void 0;let A=M(6624),F=M(1421),D=M(4742),f=M(2567);class v extends A.Component{wireBeans(s){this.chartTranslation=s.chartTranslation}constructor(s){super(),this.options=s,this.chartGroup=A.RefPlaceholder}postConstruct(){let{chartController:s,chartMenuParamsFactory:r,isExpandedOnInit:d,registerGroupComponent:g}=this.options,m={cssIdentifier:"charts-format-top-level",direction:"vertical",title:this.chartTranslation.translate("chartStyle"),expanded:d,suppressEnabledCheckbox:!0,items:[this.createManagedBean(new f.PaddingPanel(r,s)),this.createManagedBean(new D.BackgroundPanel(r))]};this.setTemplate(`<div>
            <ag-group-component data-ref="chartGroup"></ag-group-component>
        </div>`,[F.AgGroupComponentSelector],{chartGroup:m}),g(this.chartGroup)}}p.ChartPanel=v},2567:function(x,p,M){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.PaddingPanel=void 0;let A=M(6624),F=M(1421),D=M(5e3);class f extends A.Component{wireBeans(u){this.chartTranslation=u.chartTranslation}constructor(u,s){super(),this.chartMenuUtils=u,this.chartController=s,this.paddingTopSlider=A.RefPlaceholder}postConstruct(){let u={cssIdentifier:"charts-format-sub-level",direction:"vertical",suppressOpenCloseIcons:!0,title:this.chartTranslation.translate("padding"),suppressEnabledCheckbox:!0},s=r=>this.chartMenuUtils.getDefaultSliderParams("padding."+r,r,200);this.setTemplate(`<div>
            <ag-group-component data-ref="chartPaddingGroup">
                <ag-slider data-ref="paddingTopSlider"></ag-slider>
                <ag-slider data-ref="paddingRightSlider"></ag-slider>
                <ag-slider data-ref="paddingBottomSlider"></ag-slider>
                <ag-slider data-ref="paddingLeftSlider"></ag-slider>
            </ag-group-component>
        <div>`,[F.AgGroupComponentSelector,D.AgSliderSelector],{chartPaddingGroup:u,paddingTopSlider:s("top"),paddingRightSlider:s("right"),paddingBottomSlider:s("bottom"),paddingLeftSlider:s("left")}),this.addManagedEventListeners({chartOptionsChanged:r=>{this.updateTopPadding(r.chartOptions)}})}updateTopPadding(u){let s=[...this.chartController.getChartSeriesTypes(),"common"].map(r=>{var d,g;return(g=(d=u[r])==null?void 0:d.padding)==null?void 0:g.top}).find(r=>r!=null);s!=null&&this.paddingTopSlider.setValue(`${s}`)}}p.PaddingPanel=f},7730:function(x,p,M){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.FontPanel=void 0;let A=M(6624),F=M(1421),D=M(1296);function f(u){return u[0].toUpperCase()+u.substring(1).toLowerCase()}class v extends A.Component{wireBeans(s){this.chartTranslation=s.chartTranslation}constructor(s){super(),this.params=s,this.fontGroup=A.RefPlaceholder,this.activeComps=[],this.chartOptions=s.chartMenuParamsFactory.getChartOptions()}postConstruct(){let{cssIdentifier:s="charts-format-sub-level",name:r,enabled:d,onEnableChange:g,suppressEnabledCheckbox:m,chartMenuParamsFactory:b,keyMapper:w}=this.params,k={cssIdentifier:s,direction:"vertical",suppressOpenCloseIcons:!0,title:r,enabled:d,suppressEnabledCheckbox:!0,onEnableChange:R=>{g&&g(R)},useToggle:!m};this.setTemplate(`<div class="ag-font-panel">
        <ag-group-component data-ref="fontGroup">
            <ag-select data-ref="familySelect"></ag-select>
            <ag-select data-ref="weightStyleSelect"></ag-select>
            <div class="ag-charts-font-size-color">
                <ag-select data-ref="sizeSelect"></ag-select>
                <ag-color-picker data-ref="colorPicker"></ag-color-picker>
            </div>
        </ag-group-component>
    </div>`,[F.AgGroupComponentSelector,A.AgSelectSelector,D.AgColorPickerSelector],{fontGroup:k,familySelect:this.getFamilySelectParams(),weightStyleSelect:this.getWeightStyleSelectParams(),sizeSelect:this.getSizeSelectParams(),colorPicker:b.getDefaultColorPickerParams(w("color"))}),this.addOrRemoveCssClass("ag-font-panel-no-header",!r)}addItem(s,r){r?this.fontGroup.prependItem(s):this.fontGroup.addItem(s),this.activeComps.push(s)}setEnabled(s){this.fontGroup.setEnabled(s)}getFamilySelectParams(){let s=["Arial, sans-serif","Aria Black, sans-serif","Book Antiqua,  serif","Charcoal, sans-serif","Comic Sans MS, cursive","Courier, monospace","Courier New, monospace","Gadget, sans-serif","Geneva, sans-serif","Helvetica, sans-serif","Impact, sans-serif","Lucida Console, monospace","Lucida Grande, sans-serif","Lucida Sans Unicode,  sans-serif","Monaco, monospace","Palatino Linotype, serif","Palatino, serif","Times New Roman, serif","Times, serif","Verdana, sans-serif"],r=this.getInitialFontValue("fontFamily"),d=s[0];if(r){let b=s.map(w=>w.toLowerCase()).indexOf(r.toLowerCase());if(b>=0)d=s[b];else{let w=f(r);s.push(w),d=w}}let g=s.sort().map(m=>({value:m,text:m}));return this.params.chartMenuParamsFactory.getDefaultSelectParamsWithoutValueParams("font",g,`${d}`,m=>this.setFont({fontFamily:m}))}getSizeSelectParams(){let s=[8,10,12,14,16,18,20,22,24,26,28,30,32,34,36],r=this.getInitialFontValue("fontSize");s.includes(r)||s.push(r);let d=s.sort((g,m)=>g-m).map(g=>({value:`${g}`,text:`${g}`}));return this.params.chartMenuParamsFactory.getDefaultSelectParamsWithoutValueParams("size",d,`${r}`,g=>this.setFont({fontSize:parseInt(g,10)}))}getWeightStyleSelectParams(){var b,w;let s=(b=this.getInitialFontValue("fontWeight"))!=null?b:"normal",r=(w=this.getInitialFontValue("fontStyle"))!=null?w:"normal",d=[{name:"normal",weight:"normal",style:"normal"},{name:"bold",weight:"bold",style:"normal"},{name:"italic",weight:"normal",style:"italic"},{name:"boldItalic",weight:"bold",style:"italic"}],g=d.find(k=>k.weight===s&&k.style===r);g||(g={name:"predefined",weight:s,style:r},d.unshift(g));let m=d.map(k=>({value:k.name,text:this.chartTranslation.translate(k.name)}));return this.params.chartMenuParamsFactory.getDefaultSelectParamsWithoutValueParams("weight",m,g.name,k=>{let R=d.find(T=>T.name===k);this.setFont({fontWeight:R.weight,fontStyle:R.style})})}destroyActiveComps(){this.activeComps.forEach(s=>{(0,A._removeFromParent)(s.getGui()),this.destroyBean(s)})}destroy(){this.destroyActiveComps(),super.destroy()}setFont(s){let{keyMapper:r}=this.params;Object.entries(s).forEach(([d,g])=>{g&&this.chartOptions.setValue(r(d),g)})}getInitialFontValue(s){let{keyMapper:r}=this.params;return this.chartOptions.getValue(r(s))}}p.FontPanel=v},3160:function(x,p,M){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.FormatPanel=void 0;let A=M(6624),F=M(4237),D=M(1299),f=M(5002),v=M(956),u=M(3628),s=M(8693),r=M(3316),d=M(2496),g=M(5272),m={groups:[{type:"chart"},{type:"titles"},{type:"legend"},{type:"series"},{type:"axis"}]};class b extends A.Component{constructor(k){super('<div class="ag-chart-format-wrapper"></div>'),this.chartMenuContext=k}postConstruct(){this.groupExpansionFeature=this.createManagedBean(new s.GroupExpansionFeature(this.getGui())),this.chartPanelFeature=this.createManagedBean(new D.ChartPanelFeature(this.chartMenuContext.chartController,this.getGui(),"ag-chart-format-section",(k,R)=>this.createPanels(R))),this.chartPanelFeature.refreshPanels()}createPanels(k){var T;let R=!1;(T=this.getFormatPanelDef().groups)==null||T.forEach(({type:z,isOpen:G=!1})=>{if(!this.isGroupPanelShownInSeries(z,k))return;G&&(R&&(0,A._warn)(145,{group:z}),R=!0);let U=Q=>this.groupExpansionFeature.addGroupComponent(Q),X=et(pe({},this.chartMenuContext),{isExpandedOnInit:G,seriesType:k,registerGroupComponent:U});switch(z){case"chart":this.chartPanelFeature.addComponent(new u.ChartPanel(X));break;case"titles":this.chartPanelFeature.addComponent(new g.TitlesPanel(X));break;case"legend":this.chartPanelFeature.addComponent(new r.LegendPanel(X));break;case"axis":(0,F.isPolar)(k)?this.chartPanelFeature.addComponent(new v.PolarAxisPanel(X)):(0,F.isCartesian)(k)&&(this.chartPanelFeature.addComponent(new f.CartesianAxisPanel("xAxis",X)),this.chartPanelFeature.addComponent(new f.CartesianAxisPanel("yAxis",X)));break;case"horizontalAxis":this.chartPanelFeature.addComponent(new f.CartesianAxisPanel("xAxis",X));break;case"verticalAxis":this.chartPanelFeature.addComponent(new f.CartesianAxisPanel("yAxis",X));break;case"series":this.chartPanelFeature.addComponent(new d.SeriesPanel(X));break;default:(0,A._warn)(147,{group:z})}})}getFormatPanelDef(){var R;let k=(R=this.gos.get("chartToolPanelsDef"))==null?void 0:R.formatPanel;return k||m}isGroupPanelShownInSeries(k,R){return["chart","titles","legend","series"].includes(k)||(0,F.isCartesian)(R)&&["axis","horizontalAxis","verticalAxis"].includes(k)||(0,F.isPolar)(R)&&k==="axis"}}p.FormatPanel=b},8693:function(x,p,M){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.GroupExpansionFeature=void 0;let A=M(6624);class F extends A.BeanStub{constructor(f){super(),this.groupContainer=f,this.id=0,this.groupComponents=new Map}addGroupComponent(f){let v=this.id++;this.groupComponents.set(v,f),f.isExpanded()&&(this.expandedGroupComponent=v),f.onExpandedChange(u=>{var s;if(u){let r=this.expandedGroupComponent;if(this.expandedGroupComponent=v,r!=null){let d=f.getGui(),g=d.offsetTop-this.groupContainer.parentElement.scrollTop;(s=this.groupComponents.get(r))==null||s.toggleGroupExpand(!1,!0);let m=d.offsetTop-g;m<0&&(m=0),m!==this.groupContainer.parentElement.scrollTop&&(this.groupContainer.parentElement.scrollTop=m)}}else this.expandedGroupComponent=void 0})}destroy(){this.groupComponents.clear(),super.destroy()}}p.GroupExpansionFeature=F},3316:function(x,p,M){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.LegendPanel=void 0;let A=M(6624),F=M(1421),D=M(5e3),f=M(7730);class v extends A.Component{wireBeans(s){this.chartTranslation=s.chartTranslation}constructor(s){super(),this.options=s,this.legendGroup=A.RefPlaceholder,this.isGradient=["treemap","sunburst","heatmap"].includes(s.seriesType),this.key=this.isGradient?"gradientLegend":"legend"}postConstruct(){let{chartMenuParamsFactory:s,isExpandedOnInit:r,registerGroupComponent:d}=this.options,g=this.createManagedBean(new A.AgSelect(s.getDefaultSelectParams(`${this.key}.position`,"position",["top","right","bottom","left"].map(w=>({value:w,text:this.chartTranslation.translate(w)}))))),m=this.createManagedBean(new F.AgGroupComponent(s.addEnableParams(`${this.key}.enabled`,{cssIdentifier:"charts-format-sub-level",direction:"vertical",suppressOpenCloseIcons:!0,title:this.chartTranslation.translate("legendEnabled"),suppressEnabledCheckbox:!0,useToggle:!0,items:[this.createLabelPanel(s),g,...this.getItems(s)]}))),b={cssIdentifier:"charts-format-top-level",direction:"vertical",title:this.chartTranslation.translate("legend"),suppressEnabledCheckbox:!0,expanded:r,items:[m]};this.setTemplate(`<div>
            <ag-group-component data-ref="legendGroup">
            </ag-group-component>
        </div>`,[F.AgGroupComponentSelector],{legendGroup:b}),d(this.legendGroup)}getItems(s){let r=(d,g,m)=>this.createManagedBean(new D.AgSlider(s.getDefaultSliderParams(`${this.key}.${d}`,g,m)));return this.isGradient?[this.createManagedBean(new A.AgCheckbox(s.addValueParams("gradientLegend.reverseOrder",{label:this.chartTranslation.translate("reverseDirection"),labelWidth:"flex"}))),r("gradient.thickness","thickness",40),r("gradient.preferredLength","preferredLength",300),r("spacing","spacing",200)]:[r("spacing","spacing",200),r("item.marker.size","markerSize",40),r("item.marker.strokeWidth","markerStroke",10),r("item.marker.padding","itemSpacing",20),r("item.paddingX","layoutHorizontalSpacing",50),r("item.paddingY","layoutVerticalSpacing",50)]}createLabelPanel(s){let r=this.isGradient?"gradientLegend.scale.label":"legend.item.label",d={enabled:!0,suppressEnabledCheckbox:!0,chartMenuParamsFactory:s,keyMapper:g=>`${r}.${g}`,cssIdentifier:"charts-format-sub-level-no-header"};return this.createManagedBean(new f.FontPanel(d))}}p.LegendPanel=v},6279:function(x,p,M){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.CalloutPanel=void 0;let A=M(6624),F=M(1421),D=M(5e3);class f extends A.Component{wireBeans(u){this.chartTranslation=u.chartTranslation}constructor(u){super(),this.chartMenuUtils=u}postConstruct(){let u={cssIdentifier:"charts-format-sub-level",direction:"vertical",title:this.chartTranslation.translate("callout"),enabled:!0,suppressOpenCloseIcons:!0,suppressEnabledCheckbox:!0};this.setTemplate(`<div>
            <ag-group-component data-ref="calloutGroup">
                <ag-slider data-ref="calloutLengthSlider"></ag-slider>
                <ag-slider data-ref="calloutStrokeWidthSlider"></ag-slider>
                <ag-slider data-ref="labelOffsetSlider"></ag-slider>
            </ag-group-component>
        </div>`,[F.AgGroupComponentSelector,D.AgSliderSelector],{calloutGroup:u,calloutLengthSlider:this.chartMenuUtils.getDefaultSliderParams("calloutLine.length","length",40),calloutStrokeWidthSlider:this.chartMenuUtils.getDefaultSliderParams("calloutLine.strokeWidth","strokeWidth",10),labelOffsetSlider:this.chartMenuUtils.getDefaultSliderParams("calloutLabel.offset","offset",30)})}}p.CalloutPanel=f},2948:function(x,p,M){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.CapsPanel=void 0;let A=M(6624),F=M(1421),D=M(5e3);class f extends A.Component{wireBeans(u){this.chartTranslation=u.chartTranslation}constructor(u){super(),this.chartMenuUtils=u}postConstruct(){let u={cssIdentifier:"charts-format-sub-level",direction:"vertical",title:this.chartTranslation.translate("cap"),enabled:!0,suppressOpenCloseIcons:!0,suppressEnabledCheckbox:!0},s=this.chartMenuUtils.getDefaultSliderParams("cap.lengthRatio","capLengthRatio",1);s.step=.05,this.setTemplate(`<div>
            <ag-group-component data-ref="capsGroup">
                <ag-slider data-ref="capLengthRatioSlider"></ag-slider>
            </ag-group-component>
        </div>`,[F.AgGroupComponentSelector,D.AgSliderSelector],{capsGroup:u,capLengthRatioSlider:s})}}p.CapsPanel=f},1428:function(x,p,M){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.ConnectorLinePanel=void 0;let A=M(6624),F=M(1421),D=M(1296),f=M(5e3);class v extends A.Component{wireBeans(s){this.chartTranslation=s.chartTranslation}constructor(s){super(),this.chartMenuUtils=s}postConstruct(){let s={cssIdentifier:"charts-format-sub-level",direction:"vertical",title:this.chartTranslation.translate("connectorLine"),enabled:!0,suppressOpenCloseIcons:!0,suppressEnabledCheckbox:!0};this.setTemplate(`<div>
            <ag-group-component data-ref="lineGroup">
                <ag-color-picker data-ref="lineColorPicker"></ag-color-picker>
                <ag-slider data-ref="lineStrokeWidthSlider"></ag-slider>
                <ag-slider data-ref="lineOpacitySlider"></ag-slider>
                <ag-slider data-ref="lineDashSlider"></ag-slider>                
            </ag-group-component>
        </div>`,[F.AgGroupComponentSelector,D.AgColorPickerSelector,f.AgSliderSelector],{lineGroup:s,lineColorPicker:this.chartMenuUtils.getDefaultColorPickerParams("line.stroke"),lineStrokeWidthSlider:this.getSliderParams("strokeWidth",10,"line.strokeWidth"),lineDashSlider:this.getSliderParams("lineDash",30,"line.lineDash",1,!0),lineOpacitySlider:this.getSliderParams("strokeOpacity",1,"line.strokeOpacity",.05)})}getSliderParams(s,r,d,g=1,m=!1){let b=this.chartMenuUtils.getDefaultSliderParams(d,s,r,m);return b.step=g,b}}p.ConnectorLinePanel=v},1902:function(x,p,M){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.MarkersPanel=void 0;let A=M(6624),F=M(1421),D=M(5e3),f=M(1307);class v extends A.Component{wireBeans(s){this.chartTranslation=s.chartTranslation}constructor(s){super(),this.chartMenuUtils=s}postConstruct(){let s=this.chartMenuUtils.addEnableParams("marker.enabled",{cssIdentifier:"charts-format-sub-level",direction:"vertical",title:this.chartTranslation.translate("markers"),suppressEnabledCheckbox:!0,useToggle:!0,suppressOpenCloseIcons:!0});this.setTemplate(`<div>
            <ag-group-component data-ref="seriesMarkersGroup">
                <ag-select data-ref="seriesMarkerShapeSelect"></ag-select>
                <ag-slider data-ref="seriesMarkerSizeSlider"></ag-slider>
                <ag-slider data-ref="seriesMarkerStrokeWidthSlider"></ag-slider>
            </ag-group-component>
        </div>`,[F.AgGroupComponentSelector,A.AgSelectSelector,D.AgSliderSelector],{seriesMarkersGroup:s,seriesMarkerShapeSelect:this.chartMenuUtils.getDefaultSelectParams("marker.shape","shape",(0,f.getShapeSelectOptions)(this.chartTranslation)),seriesMarkerSizeSlider:this.chartMenuUtils.getDefaultSliderParams("marker.size","size",60),seriesMarkerStrokeWidthSlider:this.chartMenuUtils.getDefaultSliderParams("marker.strokeWidth","strokeWidth",10)})}}p.MarkersPanel=v},1730:function(x,p,M){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.SeriesItemsPanel=void 0;let A=M(6624),F=M(1421),D=M(5e3),f=M(7730);class v extends A.Component{wireBeans(s){this.chartTranslation=s.chartTranslation}constructor(s){super(),this.chartMenuUtils=s,this.seriesItemsGroup=A.RefPlaceholder,this.activePanels=[]}postConstruct(){let s={cssIdentifier:"charts-format-sub-level",direction:"vertical",title:this.chartTranslation.translate("seriesItems"),enabled:!0,suppressOpenCloseIcons:!0,suppressEnabledCheckbox:!0};this.setTemplate(`<div>
            <ag-group-component data-ref="seriesItemsGroup">
                <ag-select data-ref="seriesItemSelect"></ag-select>
            </ag-group-component>
        </div>`,[F.AgGroupComponentSelector,A.AgSelectSelector],{seriesItemsGroup:s,seriesItemSelect:this.getSeriesItemsParams()}),this.initSeriesControls()}getSeriesItemsParams(){let s=[{value:"positive",text:this.chartTranslation.translate("seriesItemPositive")},{value:"negative",text:this.chartTranslation.translate("seriesItemNegative")}],r=d=>{this.destroyActivePanels(),this.initSeriesControls(d)};return this.chartMenuUtils.getDefaultSelectParamsWithoutValueParams("seriesItemType",s,"positive",r)}initSeriesControls(s="positive"){this.initSlider("strokeWidth",10,`item.${s}.strokeWidth`),this.initSlider("lineDash",30,`item.${s}.lineDash`,1,!0),this.initSlider("strokeOpacity",1,`item.${s}.strokeOpacity`,.05,!1),this.initSlider("fillOpacity",1,`item.${s}.fillOpacity`,.05,!1),this.initItemLabels(s)}initSlider(s,r,d,g=1,m=!1){let b=this.chartMenuUtils.getDefaultSliderParams(d,s,r,m);b.step=g;let w=this.seriesItemsGroup.createManagedBean(new D.AgSlider(b));this.seriesItemsGroup.addItem(w),this.activePanels.push(w)}initItemLabels(s){let r=this.chartMenuUtils.getDefaultFontPanelParams(`item.${s}.label`,"seriesItemLabels"),d=this.createBean(new f.FontPanel(r));this.seriesItemsGroup.addItem(d),this.activePanels.push(d)}destroyActivePanels(){this.activePanels.forEach(s=>{(0,A._removeFromParent)(s.getGui()),this.destroyBean(s)})}destroy(){this.destroyActivePanels(),super.destroy()}}p.SeriesItemsPanel=v},2496:function(x,p,M){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.SeriesPanel=void 0;let A=M(6624),F=M(1421),D=M(1296),f=M(5e3),v=M(4237),u=M(3786),s=M(7730),r=M(6279),d=M(2948),g=M(1428),m=M(1902),b=M(1730),w=M(1307),k=M(1919),R=M(4880),T=M(991),z="tooltips",G="strokeWidth",U="lineDash",X="lineOpacity",Q="fillOpacity",oe="labels",le="shadow";class fe extends A.Component{wireBeans(ke){this.chartTranslation=ke.chartTranslation}constructor(ke){super(),this.options=ke,this.seriesGroup=A.RefPlaceholder,this.activePanels=[],this.widgetFuncs={lineWidth:()=>this.initStrokeWidth("lineWidth"),[G]:()=>this.initStrokeWidth("strokeWidth"),lineColor:()=>this.initLineColor(),[U]:()=>this.initLineDash(),[X]:()=>this.initOpacity("strokeOpacity"),[Q]:()=>this.initOpacity("fillOpacity"),markers:()=>new m.MarkersPanel(this.chartMenuUtils),[oe]:()=>this.initLabels(),sectorLabels:()=>this.initSectorLabels(),[le]:()=>new k.ShadowPanel(this.chartMenuUtils),[z]:()=>this.initTooltips(),bins:()=>this.initBins(),whiskers:()=>new T.WhiskersPanel(this.chartMenuUtils),caps:()=>new d.CapsPanel(this.chartMenuUtils),connectorLine:()=>new g.ConnectorLinePanel(this.chartMenuUtils),seriesItems:()=>new b.SeriesItemsPanel(this.chartMenuUtils),tileSpacing:()=>new R.TileSpacingPanel(this.chartMenuUtils),shape:()=>this.initShape(),size:()=>this.initSize("size","size"),minSize:()=>this.initSize("size","minSize"),maxSize:()=>this.initSize("maxSize","maxSize")},this.seriesWidgetMappings={bar:[z,G,U,X,Q,oe,le],pie:[z,G,X,Q,oe,"sectorLabels",le],donut:[z,G,X,Q,oe,"sectorLabels",le],line:[z,"lineWidth",U,X,"markers",oe],scatter:[z,"shape","size",G,oe],bubble:[z,"shape","minSize","maxSize",G,oe],area:[z,"lineWidth",U,X,Q,"markers",oe,le],histogram:[z,"bins",G,U,X,Q,oe,le],"radial-column":[z,G,U,X,Q,oe],"radial-bar":[z,G,U,X,Q,oe],"radar-line":[z,G,U,X,"markers",oe],"radar-area":[z,G,U,X,Q,"markers",oe],nightingale:[z,G,U,X,Q,oe],"box-plot":[z,G,U,X,Q,"whiskers","caps"],"range-bar":[z,G,U,X,Q,oe],"range-area":[z,"lineWidth",U,X,Q,"markers",oe,le],treemap:[z,"tileSpacing"],sunburst:[z],heatmap:[z,oe,"lineColor","lineWidth",X],waterfall:[z,"connectorLine","seriesItems"]},this.seriesType=ke.seriesType}postConstruct(){let{isExpandedOnInit:ke,chartOptionsService:Ie,chartController:ze,registerGroupComponent:Ye}=this.options,xe={cssIdentifier:"charts-format-top-level",direction:"vertical",title:this.translate("series"),expanded:ke,suppressEnabledCheckbox:!0};this.setTemplate(`<div>
            <ag-group-component data-ref="seriesGroup">
            </ag-group-component>
        </div>`,[F.AgGroupComponentSelector],{seriesGroup:xe}),Ye(this.seriesGroup),this.chartMenuUtils=this.createManagedBean(new u.ChartMenuParamsFactory(Ie.getSeriesOptionsProxy(()=>this.seriesType))),this.addManagedListeners(ze,{chartSeriesChartTypeChanged:this.refreshWidgets.bind(this)}),this.refreshWidgets()}refreshWidgets(){let{chartController:ke}=this.options;this.destroyActivePanels(),ke.getChartProxy().getChart().waitForUpdate().then(()=>{var Ye;this.isAlive()&&(ke.isComboChart()&&(this.updateSeriesType(),this.initSeriesSelect()),((Ye=this.seriesWidgetMappings[this.seriesType])!=null?Ye:[]).forEach(xe=>{let Te=this.widgetFuncs[xe](),Ae;if(Array.isArray(Te)){let Ne=this.createBean(Te[0]);Ae=Ne,Te[1](Ne)}else Ae=this.createBean(Te);this.seriesGroup.addItem(Ae),this.activePanels.push(Ae)}))}).catch(ze=>(0,A._error)(105,{e:ze}))}initSeriesSelect(){let ke=this.createBean(new A.AgSelect(this.chartMenuUtils.getDefaultSelectParamsWithoutValueParams("seriesType",this.getSeriesSelectOptions(),`${this.seriesType}`,Ie=>{this.seriesType=Ie,this.refreshWidgets()})));this.seriesGroup.addItem(ke),this.activePanels.push(ke)}initTooltips(){return new A.AgToggleButton(this.chartMenuUtils.addValueParams("tooltip.enabled",{label:this.translate("tooltips"),labelAlignment:"left",labelWidth:"flex",inputWidth:"flex"}))}initLineColor(){return new D.AgColorPicker(this.chartMenuUtils.getDefaultColorPickerParams("stroke","strokeColor"))}initStrokeWidth(ke){return new f.AgSlider(this.chartMenuUtils.getDefaultSliderParams("strokeWidth",ke,10))}initLineDash(){return new f.AgSlider(this.chartMenuUtils.getDefaultSliderParams("lineDash","lineDash",30,!0))}initOpacity(ke){let Ie=this.chartMenuUtils.getDefaultSliderParams(ke,ke,1);return Ie.step=.05,new f.AgSlider(Ie)}initLabels(){let ke=(0,v.isPieChartSeries)(this.seriesType),Ie=ke?"calloutLabel":"label",ze=ke?"calloutLabels":"labels",Ye=this.chartMenuUtils.getDefaultFontPanelParams(Ie,ze);return[new s.FontPanel(Ye),Ae=>{if(ke){let Ne=Ae.createManagedBean(new r.CalloutPanel(this.chartMenuUtils));Ae.addItem(Ne),this.activePanels.push(Ne)}if(this.seriesType==="range-bar"){let Ne=[{value:"inside",text:this.translate("inside")},{value:"outside",text:this.translate("outside")}],Re=Ae.createManagedBean(new A.AgSelect(this.chartMenuUtils.getDefaultSelectParams("label.placement","labelPlacement",Ne)));Ae.addItem(Re),this.activePanels.push(Re);let Oe=Ae.createManagedBean(new f.AgSlider(this.chartMenuUtils.getDefaultSliderParams("label.padding","padding",200)));Ae.addItem(Oe),this.activePanels.push(Oe)}}]}initSectorLabels(){let ke=this.chartMenuUtils.getDefaultFontPanelParams("sectorLabel","sectorLabels");return[new s.FontPanel(ke),Ye=>{let xe=this.chartMenuUtils.getDefaultSliderParams("sectorLabel.positionRatio","positionRatio",1);xe.step=.05;let Te=Ye.createManagedBean(new f.AgSlider(xe));Ye.addItem(Te)}]}initBins(){var Ye;let ke=this.chartMenuUtils.getDefaultSliderParams("binCount","histogramBinCount",20),Ie=this.chartMenuUtils.getChartOptions(),ze=((Ye=Ie.getValue("bins"))!=null?Ye:Ie.getValue("calculatedBins",!0)).length;return ke.value=`${ze}`,ke.maxValue=Math.max(ze,20),new f.AgSlider(ke)}initShape(){return new A.AgSelect(this.chartMenuUtils.getDefaultSelectParams("shape","shape",(0,w.getShapeSelectOptions)(this.chartTranslation)))}initSize(ke,Ie){return new f.AgSlider(this.chartMenuUtils.getDefaultSliderParams(ke,Ie,60))}getSeriesSelectOptions(){let ke=this.getActiveSeriesTypes();return["area","bar","line"].filter(Ie=>ke.includes(Ie)).map(Ie=>({value:Ie,text:this.translate(Ie)}))}updateSeriesType(){let ke=this.getActiveSeriesTypes();!ke.includes(this.seriesType)&&ke.length>0&&(this.seriesType=ke[0])}getActiveSeriesTypes(){return this.options.chartController.getActiveSeriesChartTypes().map(ke=>(0,v.getSeriesType)(ke.chartType))}translate(ke){return this.chartTranslation.translate(ke)}destroyActivePanels(){this.activePanels.forEach(ke=>{(0,A._removeFromParent)(ke.getGui()),this.destroyBean(ke)})}destroy(){this.destroyActivePanels(),super.destroy()}}p.SeriesPanel=fe},1307:function(x,p){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.getShapeSelectOptions=void 0;function M(A){return["square","circle","cross","diamond","plus","triangle","heart"].map(F=>({value:F,text:A.translate(F)}))}p.getShapeSelectOptions=M},1919:function(x,p,M){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.ShadowPanel=void 0;let A=M(6624),F=M(1421),D=M(1296),f=M(5e3);class v extends A.Component{wireBeans(s){this.chartTranslation=s.chartTranslation}constructor(s,r="shadow"){super(),this.chartMenuUtils=s,this.propertyKey=r}postConstruct(){let s=this.propertyKey,r=this.chartMenuUtils.addEnableParams(`${s}.enabled`,{cssIdentifier:"charts-format-sub-level",direction:"vertical",suppressOpenCloseIcons:!0,title:this.chartTranslation.translate("shadow"),suppressEnabledCheckbox:!0,useToggle:!0}),d=this.chartMenuUtils.getDefaultColorPickerParams(`${s}.color`);this.setTemplate(`<div>
            <ag-group-component data-ref="shadowGroup">
                <ag-color-picker data-ref="shadowColorPicker"></ag-color-picker>
                <ag-slider data-ref="shadowBlurSlider"></ag-slider>
                <ag-slider data-ref="shadowXOffsetSlider"></ag-slider>
                <ag-slider data-ref="shadowYOffsetSlider"></ag-slider>
            </ag-group-component>
        </div>`,[F.AgGroupComponentSelector,D.AgColorPickerSelector,f.AgSliderSelector],{shadowGroup:r,shadowColorPicker:d,shadowBlurSlider:this.getSliderParams("blur",0,20),shadowXOffsetSlider:this.getSliderParams("xOffset",-10,10),shadowYOffsetSlider:this.getSliderParams("yOffset",-10,10)})}getSliderParams(s,r,d){let g=`${this.propertyKey}.${s}`,m=this.chartMenuUtils.getDefaultSliderParams(g,s,d);return m.minValue=r,m}}p.ShadowPanel=v},4880:function(x,p,M){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.TileSpacingPanel=void 0;let A=M(6624),F=M(1421),D=M(5e3);class f extends A.Component{wireBeans(u){this.chartTranslation=u.chartTranslation}constructor(u){super(),this.chartMenuUtils=u}postConstruct(){let u={cssIdentifier:"charts-format-sub-level",direction:"vertical",enabled:!0,suppressOpenCloseIcons:!0,suppressEnabledCheckbox:!0};this.setTemplate(`<div>
            <ag-group-component data-ref="groupSpacing">
                <ag-slider data-ref="groupPaddingSlider"></ag-slider>
                <ag-slider data-ref="groupSpacingSlider"></ag-slider>
            </ag-group-component>
            <ag-group-component data-ref="tileSpacing">
                <ag-slider data-ref="tilePaddingSlider"></ag-slider>
                <ag-slider data-ref="tileSpacingSlider"></ag-slider>
            </ag-group-component>
        </div>`,[F.AgGroupComponentSelector,D.AgSliderSelector],{groupSpacing:et(pe({},u),{title:this.chartTranslation.translate("group")}),tileSpacing:et(pe({},u),{title:this.chartTranslation.translate("tile")}),groupPaddingSlider:this.getSliderParams("padding","group.padding"),groupSpacingSlider:this.getSliderParams("spacing","group.gap"),tilePaddingSlider:this.getSliderParams("padding","tile.padding"),tileSpacingSlider:this.getSliderParams("spacing","tile.gap")})}getSliderParams(u,s){return this.chartMenuUtils.getDefaultSliderParams(s,u,10)}}p.TileSpacingPanel=f},991:function(x,p,M){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.WhiskersPanel=void 0;let A=M(6624),F=M(1421),D=M(1296),f=M(5e3);class v extends A.Component{wireBeans(s){this.chartTranslation=s.chartTranslation}constructor(s){super(),this.chartMenuUtils=s}postConstruct(){let s={cssIdentifier:"charts-format-sub-level",direction:"vertical",title:this.chartTranslation.translate("whisker"),enabled:!0,suppressOpenCloseIcons:!0,suppressEnabledCheckbox:!0};this.setTemplate(`<div>
            <ag-group-component data-ref="whiskersGroup">
                <ag-color-picker data-ref="whiskerColorPicker"></ag-color-picker>
                <ag-slider data-ref="whiskerThicknessSlider"></ag-slider>
                <ag-slider data-ref="whiskerOpacitySlider"></ag-slider>
                <ag-slider data-ref="whiskerLineDashSlider"></ag-slider>
                <ag-slider data-ref="whiskerLineDashOffsetSlider"></ag-slider>
            </ag-group-component>
        </div>`,[F.AgGroupComponentSelector,D.AgColorPickerSelector,f.AgSliderSelector],{whiskersGroup:s,whiskerColorPicker:this.chartMenuUtils.getDefaultColorPickerParams("whisker.stroke"),whiskerThicknessSlider:this.chartMenuUtils.getDefaultSliderParams("whisker.strokeWidth","strokeWidth",10),whiskerOpacitySlider:this.chartMenuUtils.getDefaultSliderParams("whisker.strokeOpacity","strokeOpacity",1),whiskerLineDashSlider:this.chartMenuUtils.getDefaultSliderParams("whisker.lineDash","lineDash",30,!0),whiskerLineDashOffsetSlider:this.chartMenuUtils.getDefaultSliderParams("whisker.lineDashOffset","lineDashOffset",30)})}}p.WhiskersPanel=v},3179:function(x,p,M){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.ChartTitlePanel=void 0;let A=M(9375);class F extends A.TitlePanel{wireBeans(f){super.wireBeans(f),this.chartMenuSvc=f.chartMenuSvc}postConstruct(){this.titlePlaceholder=this.chartTranslation.translate("titlePlaceholder"),super.postConstruct(),this.addManagedEventListeners({chartTitleEdit:()=>{this.fontPanel.setEnabled(this.hasTitle())}})}getTextInputParams(){let f=super.getTextInputParams();return this.shouldOverrideTextWithPlaceholder(f.value)&&(f.value=this.titlePlaceholder),f}getSpacingSliderParams(){let f=super.getSpacingSliderParams();return f.value="10",f}onEnableChange(f){if(this.chartMenuSvc.doesChartToolbarExist()){let u=this.chartOptions.getValue("padding.top");this.chartOptions.setValue("padding.top",f?u-20:u+20)}this.chartOptions.setValue(`${this.key}.enabled`,f);let v=this.chartOptions.getValue(`${this.key}.text`);f&&this.shouldOverrideTextWithPlaceholder(v)&&this.chartOptions.setValue(`${this.key}.text`,this.titlePlaceholder)}shouldOverrideTextWithPlaceholder(f){return f==="Title"||(f==null?void 0:f.trim().length)===0}}p.ChartTitlePanel=F},9375:function(x,p,M){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.TitlePanel=void 0;let A=M(6624),F=M(5e3),D=M(7730);class f extends A.Component{wireBeans(u){this.chartTranslation=u.chartTranslation}constructor(u,s,r){super("<div></div>"),this.chartMenuUtils=u,this.name=s,this.key=r,this.chartOptions=u.getChartOptions()}postConstruct(){this.initFontPanel()}hasTitle(){let u=this.chartOptions.getValue(this.key);return u&&u.enabled&&u.text&&u.text.length>0}initFontPanel(){let u=this.hasTitle(),s={name:this.chartTranslation.translate(this.name),enabled:u,suppressEnabledCheckbox:!1,chartMenuParamsFactory:this.chartMenuUtils,keyMapper:r=>`${this.key}.${r}`,onEnableChange:r=>this.onEnableChange(r)};this.fontPanel=this.createManagedBean(new D.FontPanel(s)),this.fontPanel.addItem(this.createBean(new A.AgInputTextField(this.getTextInputParams())),!0),this.fontPanel.addItem(this.createBean(new F.AgSlider(this.getSpacingSliderParams()))),this.getGui().appendChild(this.fontPanel.getGui())}getTextInputParams(){return this.chartMenuUtils.addValueParams(`${this.key}.text`,{label:this.chartTranslation.translate("title"),labelAlignment:"top"})}getSpacingSliderParams(){return this.chartMenuUtils.getDefaultSliderParams(`${this.key}.spacing`,"spacing",100)}onEnableChange(u){this.chartOptions.setValue(`${this.key}.enabled`,u)}}p.TitlePanel=f},5272:function(x,p,M){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.TitlesPanel=void 0;let A=M(6624),F=M(1421),D=M(4237),f=M(3786),v=M(3179),u=M(9375);class s extends A.Component{wireBeans(d){this.chartTranslation=d.chartTranslation}constructor(d){super(),this.options=d,this.titleGroup=A.RefPlaceholder}postConstruct(){let{chartMenuParamsFactory:d,chartAxisMenuParamsFactory:g,chartOptionsService:m,seriesType:b,isExpandedOnInit:w=!1,registerGroupComponent:k}=this.options,R=[];if((0,D.isCartesian)(b)){let z=G=>this.createManagedBean(new f.ChartMenuParamsFactory(m.getCartesianAxisThemeOverridesProxy(G)));R.push(this.createManagedBean(new u.TitlePanel(z("xAxis"),"horizontalAxisTitle","title"))),R.push(this.createManagedBean(new u.TitlePanel(z("yAxis"),"verticalAxisTitle","title")))}else(0,D.isPolar)(b)&&R.push(this.createManagedBean(new u.TitlePanel(g,"polarAxisTitle","title")));let T={cssIdentifier:"charts-format-top-level",direction:"vertical",title:this.chartTranslation.translate("chartTitles"),expanded:w,suppressEnabledCheckbox:!0,items:[this.createManagedBean(new v.ChartTitlePanel(d,"chartTitle","title")),this.createManagedBean(new u.TitlePanel(d,"chartSubtitle","subtitle")),...R]};this.setTemplate(`<div>
            <ag-group-component data-ref="titleGroup"></ag-group-component>
        </div>`,[F.AgGroupComponentSelector],{titleGroup:T}),k(this.titleGroup)}}p.TitlesPanel=s},6604:function(x,p,M){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.ChartSettingsPanel=void 0;let A=M(6624),F=M(8987),D=M(6692);class f extends A.Component{constructor(u){super(`<div class="ag-chart-settings-wrapper">
            <div data-ref="eMiniChartsContainer" class="ag-chart-settings-mini-charts-container ag-scrollable-container"></div>
            <div data-ref="eNavBar" class="ag-chart-settings-nav-bar">
                <div data-ref="ePrevBtn" class="ag-chart-settings-prev">
                    <button type="button" class="ag-button ag-chart-settings-prev-button"></button>
                </div>
                <div data-ref="eCardSelector" class="ag-chart-settings-card-selector"></div>
                <div data-ref="eNextBtn" class="ag-chart-settings-next">
                    <button type="button" class="ag-button ag-chart-settings-next-button"></button>
                </div>
            </div>
        </div>`),this.chartController=u,this.eMiniChartsContainer=A.RefPlaceholder,this.eNavBar=A.RefPlaceholder,this.eCardSelector=A.RefPlaceholder,this.ePrevBtn=A.RefPlaceholder,this.eNextBtn=A.RefPlaceholder,this.miniChartsContainers=[],this.cardItems=[],this.activePaletteIndex=0,this.palettes=[],this.themes=[]}postConstruct(){this.resetPalettes(),this.ePrevBtn.insertAdjacentElement("afterbegin",(0,A._createIconNoSpan)("chartsThemePrevious",this.beans)),this.eNextBtn.insertAdjacentElement("afterbegin",(0,A._createIconNoSpan)("chartsThemeNext",this.beans)),this.addManagedElementListeners(this.ePrevBtn,{click:()=>this.setActivePalette(this.getPrev(),"left")}),this.addManagedElementListeners(this.eNextBtn,{click:()=>this.setActivePalette(this.getNext(),"right")});let u=()=>this.resetPalettes(!0);this.addManagedListeners(this.chartController,{chartTypeChanged:u,chartApiUpdate:u}),this.scrollSelectedIntoView()}scrollSelectedIntoView(){setTimeout(()=>{let u=d=>!d.getGui().classList.contains("ag-hidden"),r=this.miniChartsContainers.find(u).getGui().querySelector(".ag-selected");if(r){let d=r.offsetParent;d&&this.eMiniChartsContainer.scrollTo(0,d.offsetTop)}},250)}resetPalettes(u){var m,b;let s=this.chartController.getPalettes(),r=this.chartController.getThemeTemplateParameters(),d=(b=(m=this.gos.get("chartToolPanelsDef"))==null?void 0:m.settingsPanel)==null?void 0:b.chartGroupsDef;if((0,A._areEqual)(s,this.palettes)&&!u||this.isAnimating)return;this.palettes=s,this.themes=this.chartController.getThemeNames(),this.activePaletteIndex=this.themes.findIndex(w=>w===this.chartController.getChartThemeName()),this.cardItems=[],(0,A._clearElement)(this.eCardSelector),this.destroyMiniCharts();let{themes:g}=this;this.palettes.forEach((w,k)=>{let R=this.activePaletteIndex===k,{fills:T=[],strokes:z=[]}=w,G=g[k],U=!(0,F.isStockTheme)(G,this.beans.agChartsExports._Theme),X=this.createBean(new D.MiniChartsContainer(this.chartController,T,z,r[k],U,d));this.miniChartsContainers.push(X),this.eMiniChartsContainer.appendChild(X.getGui()),this.addCardLink(k),R?X.updateSelectedMiniChart():X.setDisplayed(!1)}),(0,A._setDisplayed)(this.eNavBar,this.palettes.length>1),(0,A._radioCssClass)(this.cardItems[this.activePaletteIndex],"ag-selected","ag-not-selected")}addCardLink(u){let s=document.createElement("div");s.classList.add("ag-chart-settings-card-item"),this.addManagedElementListeners(s,{click:()=>{this.setActivePalette(u,u<this.activePaletteIndex?"left":"right")}}),this.eCardSelector.appendChild(s),this.cardItems.push(s)}getPrev(){let u=this.activePaletteIndex-1;return u<0&&(u=this.palettes.length-1),u}getNext(){let u=this.activePaletteIndex+1;return u>=this.palettes.length&&(u=0),u}setActivePalette(u,s){if(this.isAnimating||this.activePaletteIndex===u)return;(0,A._radioCssClass)(this.cardItems[u],"ag-selected","ag-not-selected");let r=this.miniChartsContainers[this.activePaletteIndex],d=r.getGui(),g=this.miniChartsContainers[u],m=g.getGui();r.updateSelectedMiniChart(),g.updateSelectedMiniChart();let b=s==="left"?-1:1,w=m.style.left=`${(0,A._getAbsoluteWidth)(this.getGui())*b}px`;this.activePaletteIndex=u,this.isAnimating=!0;let k="ag-animating";g.setDisplayed(!0),r.addCssClass(k),g.addCssClass(k),this.chartController.setChartThemeName(this.themes[u]),window.setTimeout(()=>{d.style.left=`${-parseFloat(w)}px`,m.style.left="0px"},0),window.setTimeout(()=>{this.isAnimating=!1,r.removeCssClass(k),g.removeCssClass(k),r.setDisplayed(!1)},300)}destroyMiniCharts(){(0,A._clearElement)(this.eMiniChartsContainer),this.miniChartsContainers=this.destroyBeans(this.miniChartsContainers)}destroy(){this.destroyMiniCharts(),super.destroy()}}p.ChartSettingsPanel=f},3564:function(x,p,M){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.MiniArea=void 0;let A=M(7526),F=M(9004),D=M(1408);class f extends D.MiniChartWithAxes{constructor(u,s,r,d,g,m,b=f.data,w="groupedAreaTooltip",k=!1){super(u,s,w),this.areas=(0,F.createAreaPaths)(s._Scene,this.root,b,this.size,this.padding,k),this.updateColors(r,d)}updateColors(u,s){this.areas.forEach((r,d)=>{r.fill=u[d],r.stroke=s[d],r.strokeWidth=1,r.strokeOpacity=.75,r.fillOpacity=.7})}}p.MiniArea=f,f.chartType="area",f.data=A.MiniLine.data},6249:function(x,p,M){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.MiniNormalizedArea=void 0;let A=M(9004),F=M(5133);class D extends F.MiniStackedArea{constructor(v,u,s,r,d,g,m=D.data,b="normalizedAreaTooltip"){super(v,u,s,r,d,g,m,b)}}p.MiniNormalizedArea=D,D.chartType="normalizedArea",D.data=(0,A.normalizeStackData)(F.MiniStackedArea.data)},5133:function(x,p,M){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.MiniStackedArea=void 0;let A=M(9004),F=M(3564);class D extends F.MiniArea{constructor(v,u,s,r,d,g,m=D.data,b="stackedAreaTooltip"){super(v,u,s,r,d,g,m,b,!0)}updateColors(v,u){this.areas.forEach((s,r)=>{s.fill=v[r],s.stroke=u[r]})}}p.MiniStackedArea=D,D.chartType="stackedArea",D.data=(0,A.stackData)(F.MiniArea.data)},702:function(x,p,M){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.MiniBar=void 0;let A=M(1408);class F extends A.MiniChartWithAxes{constructor(f,v,u,s){super(f,v,"groupedBarTooltip");let{_Scene:r}=v,d=this.padding,g=this.size,m=[2,3,4],b=new r.BandScale;b.domain=[0,1,2],b.range=[d,g-d],b.paddingInner=.3,b.paddingOuter=.3;let w=new r.LinearScale;w.domain=[0,4],w.range=[g-d,d];let k=w.convert(0),R=b.bandwidth;this.bars=m.map((T,z)=>{let G=new r.Rect;return G.x=d,G.y=b.convert(z),G.width=k-w.convert(T),G.height=R,G.strokeWidth=0,G.crisp=!0,G}),this.updateColors(u,s),this.root.append(this.bars)}updateColors(f,v){this.bars.forEach((u,s)=>{u.fill=f[s],u.stroke=v[s]})}}p.MiniBar=F,F.chartType="groupedBar"},3245:function(x,p,M){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.MiniNormalizedBar=void 0;let A=M(4161);class F extends A.MiniStackedBar{constructor(f,v,u,s,r,d){super(f,v,u,s,r,d,F.data,[0,10],"normalizedBarTooltip")}}p.MiniNormalizedBar=F,F.chartType="normalizedBar",F.data=[[10,10,10],[6,7,8],[2,4,6]]},4161:function(x,p,M){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.MiniStackedBar=void 0;let A=M(1408);class F extends A.MiniChartWithAxes{constructor(f,v,u,s,r,d,g=F.data,m=[0,16],b="stackedBarTooltip"){super(f,v,b);let{_Scene:w}=v,k=this.size,R=this.padding,T=new w.BandScale;T.domain=[0,1,2],T.range=[R,k-R],T.paddingInner=.3,T.paddingOuter=.3;let z=new w.LinearScale;z.domain=m,z.range=[k-R,R];let G=z.convert(0),U=T.bandwidth;this.bars=g.map(X=>X.map((Q,oe)=>{let le=new w.Rect;return le.x=R,le.y=T.convert(oe),le.width=G-z.convert(Q),le.height=U,le.strokeWidth=0,le.crisp=!0,le})),this.updateColors(u,s),this.root.append([].concat.apply([],this.bars))}updateColors(f,v){this.bars.forEach((u,s)=>u.forEach(r=>{r.fill=f[s],r.stroke=v[s]}))}}p.MiniStackedBar=F,F.chartType="stackedBar",F.data=[[8,12,16],[6,9,12],[2,3,4]]},1990:function(x,p,M){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.MiniColumn=void 0;let A=M(9004),F=M(1408);class D extends F.MiniChartWithAxes{constructor(v,u,s,r){super(v,u,"groupedColumnTooltip"),this.columnData=[2,3,4];let{root:d,columnData:g,size:m,padding:b}=this;this.columns=(0,A.createColumnRects)({stacked:!1,root:d,data:g,size:m,padding:b,xScaleDomain:[0,1,2],yScaleDomain:[0,4],xScalePadding:.3,agChartsExports:u}),d.append(this.columns),this.updateColors(s,r)}updateColors(v,u){this.columns.forEach((s,r)=>{s.fill=v[r],s.stroke=u[r]})}}p.MiniColumn=D,D.chartType="groupedColumn"},2115:function(x,p,M){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.MiniNormalizedColumn=void 0;let A=M(2397);class F extends A.MiniStackedColumn{constructor(f,v,u,s,r,d){super(f,v,u,s,r,d,F.data,[0,10],"normalizedColumnTooltip")}}p.MiniNormalizedColumn=F,F.chartType="normalizedColumn",F.data=[[10,10,10],[6,7,8],[2,4,6]]},2397:function(x,p,M){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.MiniStackedColumn=void 0;let A=M(9004),F=M(1408);class D extends F.MiniChartWithAxes{constructor(v,u,s,r,d,g,m=D.data,b=[0,16],w="stackedColumnTooltip"){super(v,u,w);let{root:k,size:R,padding:T}=this;this.stackedColumns=(0,A.createColumnRects)({stacked:!0,root:k,data:m,size:R,padding:T,xScaleDomain:[0,1,2],yScaleDomain:b,xScalePadding:.3,agChartsExports:u}),k.append([].concat.apply([],this.stackedColumns)),this.updateColors(s,r)}updateColors(v,u){this.stackedColumns.forEach((s,r)=>s.forEach(d=>{d.fill=v[r],d.stroke=u[r]}))}}p.MiniStackedColumn=D,D.chartType="stackedColumn",D.data=[[8,12,16],[6,9,12],[2,3,4]]},539:function(x,p,M){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.MiniAreaColumnCombo=void 0;let A=M(9004),F=M(1408);class D extends F.MiniChartWithAxes{constructor(v,u,s,r){super(v,u,"areaColumnComboTooltip"),this.columnData=[3,4.5],this.areaData=[[5,4,6,5,4]];let{root:d,columnData:g,areaData:m,size:b,padding:w,agChartsExports:{_Scene:k}}=this;this.columns=(0,A.createColumnRects)({stacked:!1,root:d,data:g,size:b,padding:w,xScaleDomain:[0,1],yScaleDomain:[0,6],xScalePadding:.5,agChartsExports:u});let R=new k.BandScale;R.range=[w,b-w],R.domain=[0,1,2,3,4],R.paddingInner=1,R.paddingOuter=0;let T=new k.LinearScale;T.range=[b-w,w],T.domain=[0,6];let z=[],G=T.convert(0),U=R.convert(0);m.forEach((oe,le)=>{let fe=z[le]||(z[le]=[]);oe.forEach((ke,Ie)=>{let ze=ke,Ye=Ie,xe=R.convert(Ye),Te=T.convert(ze);fe[Ie]={x:xe,y:Te}});let ye=R.convert(oe.length-1);z[le].push({x:ye,y:G},{x:U,y:G})}),this.areas=z.map(oe=>{let le=new k.Path;le.strokeWidth=0,le.fillOpacity=.8;let fe=le.path;return oe.forEach((ye,ke)=>fe[ke>0?"lineTo":"moveTo"](ye.x,ye.y)),le});let X=new k.Group;X.setClipRect(new k.BBox(w,w,b-w*2,b-w*2));let Q=new k.Group;Q.setClipRect(new k.BBox(w,w,b-w*2,b-w*2)),X.append(this.areas),Q.append(this.columns),d.append(X),d.append(Q),this.updateColors(s,r)}updateColors(v,u){this.areas.forEach((s,r)=>{s.fill=v[r],s.stroke=u[r]}),this.columns.forEach((s,r)=>{s.fill=v[r+1],s.stroke=u[r+1]})}}p.MiniAreaColumnCombo=D,D.chartType="areaColumnCombo"},6042:function(x,p,M){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.MiniColumnLineCombo=void 0;let A=M(9004),F=M(1408);class D extends F.MiniChartWithAxes{constructor(v,u,s,r){super(v,u,"columnLineComboTooltip"),this.columnData=[3,4],this.lineData=[[5,4,6,5,4]];let{root:d,columnData:g,lineData:m,size:b,padding:w}=this;this.columns=(0,A.createColumnRects)({stacked:!1,root:d,data:g,size:b,padding:w,xScaleDomain:[0,1],yScaleDomain:[0,4],xScalePadding:.5,agChartsExports:u}),d.append(this.columns),this.lines=(0,A.createLinePaths)(u,d,m,b,w),this.updateColors(s,r)}updateColors(v,u){this.columns.forEach((s,r)=>{s.fill=v[r],s.stroke=u[r]}),this.lines.forEach((s,r)=>{s.stroke=v[r+2]})}}p.MiniColumnLineCombo=D,D.chartType="columnLineCombo"},1655:function(x,p,M){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.MiniCustomCombo=void 0;let A=M(2893),F=M(9004);class D extends A.MiniChart{constructor(v,u,s,r){super(v,u,"customComboTooltip"),this.columnData=[3,4],this.lineData=[[5,4,6,5,4]];let{root:d,columnData:g,lineData:m,size:b,padding:w,agChartsExports:{_Scene:k}}=this;this.columns=(0,F.createColumnRects)({stacked:!1,root:d,data:g,size:b,padding:w,xScaleDomain:[0,1],yScaleDomain:[0,4],xScalePadding:.5,agChartsExports:u}),d.append(this.columns),this.lines=(0,F.createLinePaths)(this.agChartsExports,d,m,b,w);let R="grey",T=3,z=new k.Line;z.x1=w,z.y1=w,z.x2=w,z.y2=b-w+T,z.stroke=R;let G=new k.Line;G.x1=w-T+1,G.y1=b-w,G.x2=b-w+1,G.y2=b-w,G.stroke=R;let U=new k.Path;this.buildPenIconPath(U),U.fill="whitesmoke",U.stroke="darkslategrey",U.strokeWidth=1,d.append([G,z,U]),this.updateColors(s,r)}updateColors(v,u){this.columns.forEach((s,r)=>{s.fill=v[r],s.stroke=u[r]}),this.lines.forEach((s,r)=>{s.stroke=v[r+2]})}buildPenIconPath(v){let{path:u}=v;u.moveTo(25.76,43.46),u.lineTo(31.27,48.53),u.moveTo(49.86,22),u.lineTo(49.86,22),u.cubicCurveTo(49.01994659053345,21.317514933510974,47.89593834348529,21.09645997825817,46.86,21.41),u.lineTo(46.86,21.41),u.cubicCurveTo(45.55460035985361,21.77260167850787,44.38777081121966,22.517979360321792,43.51,23.55),u.lineTo(25.51,43.8),u.lineTo(25.43,43.89),u.lineTo(23.01,51.89),u.lineTo(22.83,52.46),u.lineTo(31.02,48.86),u.lineTo(49.02,28.52),u.lineTo(49.02,28.52),u.cubicCurveTo(49.940716461596224,27.521914221246085,50.54302631059587,26.2720342455763,50.75,24.93),u.lineTo(50.75,24.93),u.cubicCurveTo(50.95363374988308,23.866379846512814,50.62080640232334,22.77066734274871,49.86,22),u.closePath(),u.moveTo(41.76,25.5),u.lineTo(47.34,30.5),u.moveTo(40.74,26.65),u.lineTo(46.25,31.71)}}p.MiniCustomCombo=D,D.chartType="customCombo"},5717:function(x,p,M){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.MiniSunburst=void 0;let A=M(2220);class F extends A.MiniChartWithPolarAxes{constructor(f,v,u,s){super(f,v,"sunburstTooltip"),this.data=[[[],[]],[[],[]],[[],[]]],this.angleOffset=-Math.PI/2,this.innerRadiusRatio=0,this.showRadiusAxisLine=!1,this.showAngleAxisLines=!1;let{data:r,size:d,padding:g,angleOffset:m,innerRadiusRatio:b,agChartsExports:{_Scene:w}}=this,k=(d-g*2)/2,R=[m+0,m+2*Math.PI],T=Math.abs(R[1]-R[0]),z=[k*b,k],G=Math.abs(z[1]-z[0]),U=0,X=(ye,ke)=>{ye.forEach(Ie=>{let ze=ke+1;U=Math.max(U,ze),X(Ie,ze)})};X(r,0);let Q=G/U,oe=this.size/2,le=R[0];this.series=[];let fe=(ye,ke,Ie,ze,Ye)=>{if(!Array.isArray(ye))return;let Te=ke+1,Ae=Ie;ye.forEach((Ne,Re,Oe)=>{let Ve=Ye;Ve||(Ve=new w.Group,this.series.push(Ve));let Ue=z[0]+ke*Q,Ee=z[0]+Te*Q,tt=1/Oe.length,at=Ae,ut=at+ze*tt,Mt=new w.Sector;Mt.centerX=oe,Mt.centerY=oe,Mt.innerRadius=Ue,Mt.outerRadius=Ee,Mt.startAngle=at,Mt.endAngle=ut,Mt.stroke=void 0,Mt.strokeWidth=0,Mt.inset=.75,Ae=ut,Ve.append(Mt),fe(Ne,Te,at,Math.abs(ut-at),Ve)})};fe(r,0,le,T),this.root.append(this.series),this.updateColors(u,s)}updateColors(f,v){this.series.forEach((u,s)=>{for(let r of u.children())r.fill=f[s%f.length],r.stroke=v[s%v.length]})}}p.MiniSunburst=F,F.chartType="sunburst"},7439:function(x,p,M){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.MiniTreemap=void 0;let A=M(2893);class F extends A.MiniChart{constructor(f,v,u,s,r,d){super(f,v,"treemapTooltip");let{size:g,padding:m,agChartsExports:{_Scene:b}}=this,w=[[1,1],[3,2,1]],R=w.length%2===0?.3:.2,T=[m,g-m],z=w.length,G=z*(z+1)/2,U=R/(z-1),X=T[1]-T[0],Q=X-R,oe=T[0];this.rects=w.reduce((fe,ye,ke)=>{fe!=null||(fe=[]);let Ie=(z-ke)/G,ze=Q*Ie,Ye=ye.length,xe=ye.reduce((Oe,Ve)=>Oe+=Ve,0),Te=R/(Ye-1||1),Ae=Ye>1?X-R:X,Ne=T[0],Re=ye.map(Oe=>{let Ve=new b.Rect,Ue=Ae*Oe/xe;return Ve.x=oe,Ve.y=Ne,Ve.width=ze,Ve.height=Ue,Ve.strokeWidth=.75,Ve.crisp=!0,Ne+=Ue+Te,Ve});return oe+=ze+U,fe.push(...Re),fe},[]),this.updateColors(u,s,r,d);let le=new b.Group;le.setClipRect(new b.BBox(m,m,g-m,g-m)),le.append(this.rects),this.root.append(le)}updateColors(f,v,u,s){var g;let r=u==null?void 0:u.get(this.agChartsExports._Theme.themeSymbols.DEFAULT_BACKGROUND_COLOUR),d=(g=Array.isArray(r)?r[0]:r)!=null?g:"white";this.rects.forEach((m,b)=>{m.fill=f[b%v.length],m.stroke=s?v[b%v.length]:d})}}p.MiniTreemap=F,F.chartType="treemap"},5626:function(x,p,M){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.MiniHistogram=void 0;let A=M(1408);class F extends A.MiniChartWithAxes{constructor(f,v,u,s){super(f,v,"histogramTooltip");let{padding:r,size:d,agChartsExports:{_Scene:g}}=this,m=[2,5,11,13,10,6,1],b=new g.LinearScale;b.domain=[0,m.length],b.range=[r,d-r];let w=new g.LinearScale;w.domain=[0,m.reduce((R,T)=>Math.max(R,T),0)],w.range=[d-r,r];let k=w.convert(0);this.bars=m.map((R,T)=>{let z=w.convert(R),G=b.convert(T),U=b.convert(T+1),X=new g.Rect;return X.x=G,X.y=z,X.width=U-G,X.height=k-z,X.strokeWidth=1,X.strokeOpacity=.75,X.crisp=!0,X}),this.updateColors(u,s),this.root.append(this.bars)}updateColors([f],[v]){this.bars.forEach(u=>{u.fill=f,u.stroke=v})}}p.MiniHistogram=F,F.chartType="histogram"},6544:function(x,p,M){"use strict";Object.defineProperty(p,"__esModule",{value:!0});let A=M(5608);A.__exportStar(M(1990),p),A.__exportStar(M(2397),p),A.__exportStar(M(2115),p),A.__exportStar(M(702),p),A.__exportStar(M(4161),p),A.__exportStar(M(3245),p),A.__exportStar(M(210),p),A.__exportStar(M(7716),p),A.__exportStar(M(7526),p),A.__exportStar(M(9005),p),A.__exportStar(M(8051),p),A.__exportStar(M(434),p),A.__exportStar(M(3268),p),A.__exportStar(M(3564),p),A.__exportStar(M(5133),p),A.__exportStar(M(6249),p),A.__exportStar(M(5626),p),A.__exportStar(M(781),p),A.__exportStar(M(9702),p),A.__exportStar(M(5520),p),A.__exportStar(M(8660),p),A.__exportStar(M(2036),p),A.__exportStar(M(4823),p),A.__exportStar(M(7049),p),A.__exportStar(M(1819),p),A.__exportStar(M(7439),p),A.__exportStar(M(5717),p),A.__exportStar(M(795),p),A.__exportStar(M(3209),p),A.__exportStar(M(6042),p),A.__exportStar(M(539),p),A.__exportStar(M(1655),p)},7526:function(x,p,M){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.MiniLine=void 0;let A=M(9004),F=M(1408);class D extends F.MiniChartWithAxes{constructor(v,u,s,r,d,g,m=D.data,b="lineTooltip"){super(v,u,b);let{size:w,padding:k,root:R}=this;this.lines=(0,A.createLinePaths)(u,R,m,w,k),this.updateColors(s,r)}updateColors(v,u){this.lines.forEach((s,r)=>{s.stroke=v[r]})}}p.MiniLine=D,D.chartType="line",D.data=[[1,3,5],[2,6,4],[5,3,1]]},8051:function(x,p,M){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.MiniNormalizedLine=void 0;let A=M(9004),F=M(7526),D=M(9005);class f extends F.MiniLine{constructor(u,s,r,d,g,m,b=f.data,w="normalizedLineTooltip"){super(u,s,r,d,g,m,b,w)}}p.MiniNormalizedLine=f,f.chartType="normalizedLine",f.data=(0,A.normalizeStackData)(D.MiniStackedLine.data)},9005:function(x,p,M){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.MiniStackedLine=void 0;let A=M(9004),F=M(7526);class D extends F.MiniLine{constructor(v,u,s,r,d,g,m=D.data,b="stackedLineTooltip"){super(v,u,s,r,d,g,m,b)}}p.MiniStackedLine=D,D.chartType="stackedLine",D.data=(0,A.stackData)(F.MiniLine.data)},2893:function(x,p,M){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.MiniChart=void 0;let A=M(6624),F="ag-chart-mini-thumbnail-canvas";class D extends A.Component{wireBeans(v){this.chartTranslation=v.chartTranslation}constructor(v,u,s){super(),this.agChartsExports=u,this.tooltipName=s,this.size=58,this.padding=5;let{_Scene:r}=u;this.root=new r.Group;let d=new r.Scene({width:this.size,height:this.size});d.canvas.element.classList.add(F),d.setRoot(this.root),d.setContainer(v),this.scene=d}postConstruct(){this.scene.canvas.element.title=this.chartTranslation.translate(this.tooltipName);try{this.scene.render()}catch(v){(0,A._error)(108,{e:v})}}}p.MiniChart=D},9004:function(x,p,M){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.accumulateData=p.createPolarPaths=p.normalizeStackData=p.stackData=p.createAreaPaths=p.createLinePaths=p.closePathViaOrigin=p.closePathViaPreviousSeries=p.createAreaPathCommands=p.createPath=p.createPathCommands=p.prepareLinearScene=p.createColumnRects=void 0;let A=M(6624);function F(R){let{stacked:T,size:z,padding:G,xScalePadding:U,xScaleDomain:X,yScaleDomain:Q,agChartsExports:{_Scene:oe}}=R,le=new oe.BandScale;le.domain=X,le.range=[G,z-G],le.paddingInner=U,le.paddingOuter=U;let fe=new oe.LinearScale;fe.domain=Q,fe.range=[z-G,G];let ye=(ke,Ie,ze)=>ke.map((Ye,xe)=>{let Te=ze.convert(Ye),Ae=new oe.Rect;return Ae.x=Ie.convert(xe),Ae.y=Te,Ae.width=Ie.bandwidth,Ae.height=ze.convert(0)-Te,Ae.strokeWidth=0,Ae.crisp=!0,Ae});return T?R.data.map(ke=>ye(ke,le,fe)):ye(R.data,le,fe)}p.createColumnRects=F;function D(R,T,z,G){let U=[0,T[0].length-1],X=T.reduce((le,fe)=>(fe.forEach(ye=>{ye<le[0]&&(le[0]=ye),ye>le[1]&&(le[1]=ye)}),le),[1/0,-1/0]);X[0]--,X[X.length-1]++;let Q=new R.LinearScale;Q.domain=U,Q.range=[G,z-G];let oe=new R.LinearScale;return oe.domain=X,oe.range=[z-G,G],{xScale:Q,yScale:oe}}p.prepareLinearScene=D;function f(R,T,z){return R.map(G=>G.map((U,X)=>[X>0?"lineTo":"moveTo",T.convert(X),z.convert(U)]))}p.createPathCommands=f;function v(R,T){let z=new R.Path;return T.forEach(([G,U,X])=>z.path[G](U,X)),z}p.createPath=v;function u(R,T,z){return R.map((G,U,X)=>{let oe=[...z?s(X,U,T):r(G,T)].reverse().map(([ye,ke,Ie])=>["lineTo",ke,Ie]),le=G[0],fe=(0,A._last)(oe);return(le[1]!==fe[1]||le[2]!==fe[2])&&oe.push(["lineTo",le[1],le[2]]),[...G,...oe]})}p.createAreaPathCommands=u;function s(R,T,z){return T===0?r(R[T],z):[...R[T-1]]}p.closePathViaPreviousSeries=s;function r(R,T){return R.map(([z,G])=>[z,G,T.convert(0)])}p.closePathViaOrigin=r;function d({_Scene:R},T,z,G,U){let{xScale:X,yScale:Q}=D(R,z,G,U),le=f(z,X,Q).map(ye=>{let ke=v(R,ye);return ke.strokeWidth=3,ke.lineCap="round",ke.fill=void 0,ke}),fe=new R.Group;return fe.setClipRect(new R.BBox(U,U,G-U*2,G-U*2)),fe.append(le),T.append(fe),le}p.createLinePaths=d;function g(R,T,z,G,U,X=!1){let{xScale:Q,yScale:oe}=D(R,z,G,U),le=u(f(z,Q,oe),oe,X),fe=new R.Group;fe.setClipRect(new R.BBox(U,U,G-U*2,G-U*2));let ye=le.map(ke=>v(R,ke));return fe.append(ye),T.append(fe),ye}p.createAreaPaths=g;function m(R){return R.map((T,z,G)=>T.map((U,X)=>G.slice(0,z+1).reduce((Q,oe)=>Q+oe[X],0)))}p.stackData=m;function b(R){let T=R.map((z,G)=>R.reduce((U,X)=>Math.max(U,X[G]),0));return R.map(z=>z.map((G,U)=>G/T[U]*19))}p.normalizeStackData=b;function w(R,T,z,G,U,X,Q=0){let{_Scene:oe}=R,le=new oe.LinearScale;le.domain=[0,7],le.range=[-Math.PI,Math.PI].map(Ye=>Ye+Math.PI/2);let fe=new oe.LinearScale;fe.domain=[0,10],fe.range=[U,X];let ye=[],ke=G/2,Ie=z.map(Ye=>{let xe=new oe.Path;return xe.strokeWidth=1,xe.strokeOpacity=.5,xe.lineCap="round",xe.fill=void 0,xe.fillOpacity=.8,Ye.forEach((Te,Ae)=>{let Ne=le.convert(Ae),Re=U+X-fe.convert(Te),Oe=Re*Math.cos(Ne)+ke,Ve=Re*Math.sin(Ne)+ke;if(xe.path[Ae>0?"lineTo":"moveTo"](Oe,Ve),Q>0){let Ue=new oe.Circle;Ue.x=Oe,Ue.y=Ve,Ue.size=Q,ye.push(Ue)}}),xe.path.closePath(),xe}),ze=new oe.Group;return ze.append([...Ie,...ye]),T.append(ze),{paths:Ie,markers:ye}}p.createPolarPaths=w;function k(R){let[T,z]=[1/0,-1/0];return{processedData:R.reduce((U,X,Q)=>{var fe;let oe=Q>0?U[Q-1]:void 0;(fe=U[Q])!=null||(U[Q]=[]);let le=U[Q];return X.forEach((ye,ke)=>{oe&&(ye+=oe[ke]),le[ke]=ye,le[ke]<T&&(T=le[ke]),le[ke]>z&&(z=le[ke])}),U},[]),min:T,max:z}}p.accumulateData=k},1408:function(x,p,M){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.MiniChartWithAxes=void 0;let A=M(2893);class F extends A.MiniChart{constructor(f,v,u){super(f,v,u),this.stroke="gray",this.axisOvershoot=3}postConstruct(){let{_Scene:f}=this.agChartsExports,v=this.size,u=this.padding,s=new f.Line;s.x1=u,s.y1=u,s.x2=u,s.y2=v-u+this.axisOvershoot,s.stroke=this.stroke;let r=new f.Line;r.x1=u-this.axisOvershoot+1,r.y1=v-u,r.x2=v-u+1,r.y2=v-u,r.stroke=this.stroke;let d=this.root;d.append(s),d.append(r),super.postConstruct()}}p.MiniChartWithAxes=F},2220:function(x,p,M){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.MiniChartWithPolarAxes=void 0;let A=M(2893);class F extends A.MiniChart{constructor(f,v,u){super(f,v,u),this.stroke="gray",this.showRadiusAxisLine=!0,this.showAngleAxisLines=!0}postConstruct(){let{_Scene:f}=this.agChartsExports,v=this.size,u=this.padding,s=u*2,r=(v-s)/2,d=this.showAngleAxisLines?[r,r*.8,r*.6,r*.4]:[],g=new f.Line;g.x1=v/2,g.y1=u,g.x2=v/2,g.y2=v-u-r-d[d.length-1],g.stroke=this.stroke,g.strokeOpacity=.5,g.fill=void 0,g.visible=this.showRadiusAxisLine;let m=u+r;this.gridLines=d.map((w,k)=>{let R=new f.Path;return R.path.arc(m,m,w,0,2*Math.PI),R.strokeWidth=1,R.stroke=this.stroke,R.strokeOpacity=k===0?.5:.2,R.fill=void 0,R});let b=this.root;b.append(g),this.gridLines.length>0&&b.append(this.gridLines),super.postConstruct()}}p.MiniChartWithPolarAxes=F},7716:function(x,p,M){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.MiniDonut=void 0;let A=M(2893);class F extends A.MiniChart{constructor(f,v,u,s,r,d,g=.6,m="donutTooltip"){super(f,v,m);let{size:b,padding:w,agChartsExports:{_Scene:k}}=this,R=(b-w*2)/2,T=R+w,z=k.toRadians,G=[[z(-90),z(30)],[z(30),z(120)],[z(120),z(180)],[z(180),z(210)],[z(210),z(240)],[z(240),z(270)]];this.sectors=G.map(([U,X])=>{let Q=new k.Sector;return Q.centerX=T,Q.centerY=T,Q.innerRadius=R*g,Q.outerRadius=R,Q.startAngle=U,Q.endAngle=X,Q.stroke=void 0,Q.strokeWidth=0,Q.inset=.75,Q}),this.updateColors(u,s),this.root.append(this.sectors)}updateColors(f,v){this.sectors.forEach((u,s)=>{u.fill=f[s%f.length],u.stroke=v[s%v.length]})}}p.MiniDonut=F,F.chartType="donut"},210:function(x,p,M){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.MiniPie=void 0;let A=M(7716);class F extends A.MiniDonut{constructor(f,v,u,s,r,d){super(f,v,u,s,r,d,0,"pieTooltip")}}p.MiniPie=F,F.chartType="pie"},2036:function(x,p,M){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.MiniNightingale=void 0;let A=M(9004),F=M(2220);class D extends F.MiniChartWithPolarAxes{constructor(v,u,s,r){super(v,u,"nightingaleTooltip"),this.data=[[6,10,9,8,7,8],[4,6,5,4,5,5],[3,5,4,3,4,7]],this.showRadiusAxisLine=!1;let{size:d,padding:g,data:m,agChartsExports:{_Scene:b}}=this,w=(d-g*2)/2,k=new b.BandScale;k.domain=m[0].map((X,Q)=>Q),k.range=[-Math.PI,Math.PI],k.paddingInner=0,k.paddingOuter=0;let R=k.bandwidth*.7,{processedData:T,max:z}=(0,A.accumulateData)(m),G=new b.LinearScale;G.domain=[0,z],G.range=[0,w];let U=d/2;this.series=T.map((X,Q)=>{let oe=Q<0?void 0:T[Q-1],le=new b.Group({zIndex:1e6}),fe=X.map((ye,ke)=>{let Ie=oe==null?void 0:oe[ke],ze=G.convert(ye),Ye=G.convert(Ie!=null?Ie:0),xe=k.convert(ke),Te=xe+R,Ae=new b.Sector;return Ae.centerX=U,Ae.centerY=U,Ae.innerRadius=Ye,Ae.outerRadius=ze,Ae.startAngle=xe,Ae.endAngle=Te,Ae.stroke=void 0,Ae.strokeWidth=0,Ae});return le.append(fe),le}),this.root.append(this.series),this.updateColors(s,r)}updateColors(v,u){this.series.forEach((s,r)=>{for(let d of s.children())d.fill=v[r%v.length],d.stroke=u[r%u.length]})}}p.MiniNightingale=D,D.chartType="nightingale"},8660:function(x,p,M){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.MiniRadarArea=void 0;let A=M(9004),F=M(2220);class D extends F.MiniChartWithPolarAxes{constructor(v,u,s,r){super(v,u,"radarAreaTooltip"),this.data=[[8,10,5,7,4,1,5,8],[1,1,2,7,7,8,10,1],[4,5,9,9,4,2,3,4]];let{size:d,padding:g,root:m,data:b}=this;this.showRadiusAxisLine=!1;let w=(d-g*2)/2,k=w-d*.3;this.areas=(0,A.createPolarPaths)(u,m,b,d,w,k).paths,this.updateColors(s,r)}updateColors(v,u){this.areas.forEach((s,r)=>{s.fill=v[r],s.stroke=u[r]})}}p.MiniRadarArea=D,D.chartType="radarArea"},5520:function(x,p,M){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.MiniRadarLine=void 0;let A=M(9004),F=M(2220);class D extends F.MiniChartWithPolarAxes{constructor(v,u,s,r){super(v,u,"radarLineTooltip"),this.markerSize=4,this.data=[[8,7,8,7,8,8,7,8],[6,8,5,10,6,7,4,6],[0,3,3,5,4,4,2,0]],this.showRadiusAxisLine=!1;let{size:d,padding:g,root:m,data:b}=this,w=(d-g*2)/2,k=0,{paths:R,markers:T}=(0,A.createPolarPaths)(u,m,b,d,w,k,this.markerSize);this.lines=R,this.markers=T,this.updateColors(s,r)}updateColors(v,u){this.lines.forEach((s,r)=>{let d=this.data[r].length;s.stroke=v[r];let g=r*d,m=g+d;this.markers.slice(g,m).forEach(w=>{w.stroke=u[r],w.fill=v[r]})})}}p.MiniRadarLine=D,D.chartType="radarLine"},9702:function(x,p,M){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.MiniRadialBar=void 0;let A=M(9004),F=M(2220);class D extends F.MiniChartWithPolarAxes{constructor(v,u,s,r){super(v,u,"radialBarTooltip"),this.data=[[6,8,10],[4,4,3],[5,4,2]],this.showRadiusAxisLine=!1;let{size:d,padding:g,data:m,agChartsExports:{_Scene:b}}=this,w=(d-g)/2,R=w*.4,T=new b.BandScale;T.domain=m[0].map((fe,ye)=>ye),T.range=[R,w],T.paddingInner=.5,T.paddingOuter=0;let z=T.bandwidth,{processedData:G,max:U}=(0,A.accumulateData)(m),X=new b.LinearScale;X.domain=[0,Math.ceil(U*1.5)];let Q=3/2*Math.PI,oe=Q+2*Math.PI;X.range=[Q,oe];let le=d/2;this.series=G.map((fe,ye)=>{let ke=ye<0?void 0:G[ye-1],Ie=new b.Group({zIndex:1e6}),ze=fe.map((Ye,xe)=>{var Ue;let Te=(Ue=ke==null?void 0:ke[xe])!=null?Ue:0,Ae=T.convert(xe),Ne=Ae-z,Re=X.convert(Te),Oe=X.convert(Ye),Ve=new b.Sector;return Ve.centerX=le,Ve.centerY=le,Ve.innerRadius=Ne,Ve.outerRadius=Ae,Ve.startAngle=Re,Ve.endAngle=Oe,Ve.stroke=void 0,Ve.strokeWidth=0,Ve});return Ie.append(ze),Ie}),this.root.append(this.series),this.updateColors(s,r)}updateColors(v,u){this.series.forEach((s,r)=>{for(let d of s.children())d.fill=v[r%v.length],d.stroke=u[r%u.length]})}}p.MiniRadialBar=D,D.chartType="radialBar"},781:function(x,p,M){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.MiniRadialColumn=void 0;let A=M(9004),F=M(2220);class D extends F.MiniChartWithPolarAxes{constructor(v,u,s,r){super(v,u,"radialColumnTooltip"),this.data=[[6,8,10,2,6,5],[4,4,3,6,4,4],[5,4,2,9,8,9]],this.showRadiusAxisLine=!1;let{padding:d,size:g,data:m,agChartsExports:{_Scene:b}}=this,w=(g-d*2)/2,R=w*.4,T=new b.BandScale;T.domain=m[0].map((oe,le)=>le),T.range=[0,2*Math.PI],T.paddingInner=0,T.paddingOuter=0;let z=T.bandwidth*.7,{processedData:G,max:U}=(0,A.accumulateData)(m),X=new b.LinearScale;X.domain=[0,U],X.range=[R,w];let Q=this.size/2;this.series=G.map((oe,le)=>{let ye=le===0?void 0:G[le-1],ke=new b.TranslatableGroup({zIndex:1e6}),Ie=oe.map((ze,Ye)=>{let xe=ye==null?void 0:ye[Ye],Te=X.convert(ze),Ae=X.convert(xe!=null?xe:0),Ne=T.convert(Ye),Re=Ne+z,Oe=b.getRadialColumnWidth(Ne,Re,w,.5,.5),Ve=new b.RadialColumnShape;return Ve.columnWidth=Oe,Ve.innerRadius=Ae,Ve.outerRadius=Te,Ve.startAngle=Ne,Ve.endAngle=Re,Ve.isBeveled=!0,Ve.axisInnerRadius=R,Ve.axisOuterRadius=w,Ve.stroke=void 0,Ve.strokeWidth=0,Ve});return ke.append(Ie),ke.translationX=Q,ke.translationY=Q,ke}),this.root.append(this.series),this.updateColors(s,r)}updateColors(v,u){this.series.forEach((s,r)=>{for(let d of s.children())d.fill=v[r%v.length],d.stroke=u[r%u.length]})}}p.MiniRadialColumn=D,D.chartType="radialColumn"},3268:function(x,p,M){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.MiniBubble=void 0;let A=M(1408);class F extends A.MiniChartWithAxes{constructor(f,v,u,s){super(f,v,"bubbleTooltip");let{size:r,padding:d,agChartsExports:{_Scene:g}}=this,m=[[[.1,.3,5],[.5,.4,7],[.2,.8,7]],[[.8,.7,5],[.7,.3,9]]],b=new g.LinearScale;b.domain=[0,1],b.range=[d*2,r-d];let w=new g.LinearScale;w.domain=[0,1],w.range=[r-d,d];let k=[];m.forEach(T=>{T.forEach(([z,G,U])=>{let X=new g.Arc;X.strokeWidth=0,X.centerX=b.convert(z),X.centerY=w.convert(G),X.radius=U,X.fillOpacity=.7,k.push(X)})}),this.points=k,this.updateColors(u,s);let R=new g.Group;R.setClipRect(new g.BBox(d,d,r-d*2,r-d*2)),R.append(this.points),this.root.append(R)}updateColors(f,v){this.points.forEach((u,s)=>{u.stroke=v[s%v.length],u.fill=f[s%f.length]})}}p.MiniBubble=F,F.chartType="bubble"},434:function(x,p,M){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.MiniScatter=void 0;let A=M(1408);class F extends A.MiniChartWithAxes{constructor(f,v,u,s){super(f,v,"scatterTooltip");let{size:r,padding:d,agChartsExports:{_Scene:g}}=this,m=[[[.3,3],[1.1,.9],[2,.4],[3.4,2.4]],[[0,.3],[1,2],[2.4,1.4],[3,0]]],b=new g.LinearScale;b.domain=[-.5,4],b.range=[d*2,r-d];let w=new g.LinearScale;w.domain=[-.5,3.5],w.range=[r-d,d];let k=[];m.forEach(T=>{T.forEach(([z,G])=>{let U=new g.Arc;U.strokeWidth=0,U.centerX=b.convert(z),U.centerY=w.convert(G),U.radius=2.5,k.push(U)})}),this.points=k,this.updateColors(u,s);let R=new g.Group;R.setClipRect(new g.BBox(d,d,r-d*2,r-d*2)),R.append(this.points),this.root.append(R)}updateColors(f,v){this.points.forEach((u,s)=>{u.stroke=v[s%v.length],u.fill=f[s%f.length]})}}p.MiniScatter=F,F.chartType="scatter"},795:function(x,p,M){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.MiniHeatmap=void 0;let A=M(2893);class F extends A.MiniChart{constructor(f,v,u,s,r,d){var Q,oe;super(f,v,"heatmapTooltip");let{size:g,padding:m,agChartsExports:{_Scene:b}}=this,w=3,k=Array.from({length:w},(le,fe)=>Array.from({length:w},(ye,ke)=>ke)),R=k.map((le,fe)=>fe),T=new b.BandScale;T.domain=R,T.range=[m,g-m],T.paddingInner=.01,T.paddingOuter=.1;let z=new b.BandScale;z.domain=R,z.range=[m,g-m],z.paddingInner=.01,z.paddingOuter=.1;let G=(Q=T.bandwidth)!=null?Q:0,U=(oe=z.bandwidth)!=null?oe:0;this.rects=k.reduce((le,fe,ye)=>{le!=null||(le=[]);let ke=fe.map((Ie,ze)=>{let Ye=new b.Rect;return Ye.x=T.convert(ye),Ye.y=z.convert(ze),Ye.width=G,Ye.height=U,Ye.strokeWidth=0,Ye.crisp=!0,Ye});return le.push(...ke),le},[]),this.updateColors(u,s,r,d);let X=new b.Group;X.setClipRect(new b.BBox(m,m,g-m,g-m)),X.append(this.rects),this.root.append(X)}updateColors(f,v,u,s){var T;let{_Theme:r,_Util:d}=this.agChartsExports,g=u==null?void 0:u.get(r.themeSymbols.DEFAULT_DIVERGING_SERIES_COLOR_RANGE),m=u==null?void 0:u.get(r.themeSymbols.DEFAULT_BACKGROUND_COLOUR),b=(T=Array.isArray(m)?m[0]:m)!=null?T:"white",w=s?[f[0],f[1]]:g,k=s?v[0]:b,R=d.interpolateColor(w[0],w[1]);this.rects.forEach((z,G)=>{z.fill=R(G*.2),z.stroke=k})}}p.MiniHeatmap=F,F.chartType="heatmap"},3209:function(x,p,M){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.MiniWaterfall=void 0;let A=M(9004),F=M(1408);class D extends F.MiniChartWithAxes{constructor(v,u,s,r,d,g){super(v,u,"waterfallTooltip"),this.data=[4,3,-3,6,-3],this.bars=this.createWaterfall(this.root,this.data,this.size,this.padding,"vertical").bars,this.updateColors(s,r,d,g)}updateColors(v,u,s,r){let{data:d,agChartsExports:{_Theme:{themeSymbols:g}}}=this,m={fill:r?v[0]:s==null?void 0:s.get(g.PALETTE_ALT_UP_FILL),stroke:r?u[0]:s==null?void 0:s.get(g.PALETTE_ALT_UP_STROKE)},b={fill:r?v[1]:s==null?void 0:s.get(g.PALETTE_ALT_DOWN_FILL),stroke:r?u[1]:s==null?void 0:s.get(g.PALETTE_ALT_DOWN_STROKE)};this.bars.forEach((w,k)=>{let R=d[k]>=0;w.fill=R?m.fill:b.fill,w.stroke=R?m.stroke:b.stroke})}createWaterfall(v,u,s,r,d){let g=2*r,{processedData:m,min:b,max:w}=(0,A.accumulateData)(u.map(fe=>[fe])),k=m.reduce((fe,ye)=>fe.concat(ye),[]),{_Scene:R}=this.agChartsExports,T=new R.LinearScale;T.domain=[Math.min(b,0),w],T.range=[s-g,g];let z=new R.BandScale;z.domain=u.map((fe,ye)=>ye),z.range=[r,s-r],z.paddingInner=.2,z.paddingOuter=.3;let G=z.bandwidth,U=new R.Path;U.stroke="#575757",U.strokeWidth=0;let X=Math.floor(U.strokeWidth)%2/2,Q=U.path;Q.clear();let oe=d==="horizontal",le=k.map((fe,ye)=>{let ke=ye>0?k[ye-1]:0,ze=u[ye]>0,Ye=Math.round(T.convert(fe)),xe=Math.round(T.convert(ke)),Te=(ze?Ye:xe)-X,Ae=(ze?xe:Ye)+X,Ne=Math.abs(Ae-Te),Re=z.convert(ye),Oe=new R.Rect;Oe.x=oe?Te:Re,Oe.y=oe?Re:Te,Oe.width=oe?Ne:G,Oe.height=oe?G:Ne,Oe.strokeWidth=0,Oe.crisp=!0;let Ve=Ye+X,Ue=xe+X;if(ye>0){let at=oe?Ue:Oe.x,ut=oe?Oe.y:Ue;Q.lineTo(at,ut)}let Ee=oe?Ve:Oe.x,tt=oe?Oe.y:Ve;return Q.moveTo(Ee,tt),Oe});return v.append([U,...le]),{bars:le}}}p.MiniWaterfall=D,D.chartType="waterfall"},1819:function(x,p,M){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.MiniBoxPlot=void 0;let A=M(1408);class F extends A.MiniChartWithAxes{constructor(f,v,u,s,r,d){super(f,v,"boxPlotTooltip");let{size:g,padding:m,agChartsExports:{_Scene:b}}=this,w=[11,11.5,10.5],k=1.2,R=1.1,T=.9,z=.8,G=new b.LinearScale;G.domain=[w.reduce((oe,le)=>Math.min(oe,le),1/0)*z,w.reduce((oe,le)=>Math.max(oe,le),0)*k],G.range=[g-1.5*m,m];let U=new b.BandScale;U.domain=w.map((oe,le)=>le),U.range=[m,g-m],U.paddingInner=.4,U.paddingOuter=.2;let X=Math.round(U.bandwidth),Q=Math.round(U.bandwidth/2);this.boxPlotGroups=w.map((oe,le)=>{let[fe,ye,ke,Ie]=[oe*z,oe*T,oe*R,oe*k],ze=Math.round(G.convert(ke)),Ye=Math.round(U.convert(le)),xe=Math.round(Ye+X),Te=Math.round(G.convert(ye)),Ae=Math.round(G.convert(fe)),Ne=Math.round(G.convert(oe)),Re=Math.round(G.convert(Ie)),Oe=Ye+Q,Ve=new b.Group,Ue=new b.Rect,Ee=new b.Line,tt=new b.Line,at=new b.Line,ut=new b.Line,Mt=new b.Line;return Ue.x=Ye,Ue.y=ze,Ue.width=X,Ue.height=Te-ze,Ue.strokeWidth=1,Ue.strokeOpacity=.75,Ue.crisp=!0,this.setLineProperties(Ee,Ye,xe,Ne,Ne),this.setLineProperties(tt,Oe,Oe,Re,ze),this.setLineProperties(at,Oe,Oe,Ae,Te),this.setLineProperties(ut,Ye,xe,Re,Re),this.setLineProperties(Mt,Ye,xe,Ae,Ae),Ve.append([Ue,Ee,tt,at,ut,Mt]),Ve}),this.updateColors(u,s,r,d),this.root.append(this.boxPlotGroups)}updateColors(f,v,u,s){var b;let{agChartsExports:{_Util:r,_Theme:d}}=this,g=u==null?void 0:u.get(d.themeSymbols.DEFAULT_BACKGROUND_COLOUR),m=(b=Array.isArray(g)?g[0]:g)!=null?b:"white";this.boxPlotGroups.forEach((w,k)=>{for(let R of w.children()){let T=f[k%f.length];R.fill=s?T:r.interpolateColor(T,m)(.7),R.stroke=v[k%v.length]}})}setLineProperties(f,v,u,s,r){f.x1=v,f.x2=u,f.y1=s,f.y2=r,f.strokeOpacity=.75}}p.MiniBoxPlot=F,F.chartType="boxPlot"},7049:function(x,p,M){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.MiniRangeArea=void 0;let A=M(1408);class F extends A.MiniChartWithAxes{constructor(s,r,d,g){super(s,r,"rangeAreaTooltip");let m=4,b=[D({offset:.375*m,length:m,pattern:{low:3,high:5,period:m}}),D({offset:.375*m,length:m,pattern:{low:2.25,high:4.25,period:m}}),D({offset:.75*m,length:m,pattern:{low:2.5,high:4.5,period:m}})],w=1.75,k=b.map(z=>z.map(([G,U])=>({x:G,low:U-.5*w,high:U+.5*w}))),{lines:R,areas:T}=this.createRangeArea(this.root,k,this.size,this.padding);this.lines=R,this.areas=T,this.updateColors(d,g)}updateColors(s,r){s=v(s,1,2),r=v(r,1,2),this.lines.forEach(([d,g],m)=>{d.fill=void 0,d.stroke=r[m],g.fill=void 0,g.stroke=r[m]}),this.areas.forEach((d,g)=>{d.fill=s[g]})}createRangeArea(s,r,d,g){let m=r.reduce((oe,le)=>le.reduce((fe,{x:ye})=>Math.min(fe,ye),oe),1/0),b=r.reduce((oe,le)=>le.reduce((fe,{x:ye})=>Math.max(fe,ye),oe),-1/0),w=r.reduce((oe,le)=>le.reduce((fe,{low:ye})=>Math.min(fe,ye),oe),1/0),k=r.reduce((oe,le)=>le.reduce((fe,{high:ye})=>Math.max(fe,ye),oe),-1/0),{_Scene:R}=this.agChartsExports,T=new R.LinearScale;T.domain=[m,b],T.range=[g,d-g];let z=2*g,G=new R.LinearScale;G.domain=[w,k],G.range=[d-z,z];let U=[],X=[];return r.map(oe=>{let le=new R.Path,fe=new R.Path,ye=new R.Path;return U.push([le,fe]),X.push(ye),le.strokeWidth=0,fe.strokeWidth=0,ye.strokeWidth=0,ye.fillOpacity=.8,le.path.clear(),fe.path.clear(),ye.path.clear(),oe.map((ke,Ie)=>{let{x:ze,low:Ye,high:xe}=ke,Te=T.convert(ze),Ae=G.convert(Ye),Ne=G.convert(xe),Re=Ie>0?"lineTo":"moveTo";return le.path[Re](Te,Ne),fe.path[Re](Te,Ae),ye.path[Re](Te,Ne),[Te,Ae]})}).forEach((oe,le)=>{let fe=oe.length-1,ye=X[le];for(let ke=fe;ke>=0;ke--){let[Ie,ze]=oe[ke];ye.path.lineTo(Ie,ze)}}),s.append(X.concat(...U)),{lines:U,areas:X}}}p.MiniRangeArea=F,F.chartType="rangeArea";function D(u){let{offset:s,length:r,pattern:d}=u,g=w(s,r,d),m=0,b=r;return(g.length===0||g[0][0]!==m)&&g.unshift(k(m,s,d)),g[g.length-1][0]!==b&&g.push(k(b,s,d)),g;function w(T,z,G){let{period:U}=G,X=T/U,oe=[0,.5].map(fe=>fe-X).map(f).sort((fe,ye)=>fe-ye);return Array.from({length:Math.floor(oe.length*(U/z))},(fe,ye)=>oe[ye%oe.length]+Math.floor(ye/oe.length)).map(fe=>fe*U).map(fe=>k(fe,T,G))}function k(T,z,G){return[T,R(z+T,G)]}function R(T,z){let{low:G,high:U,period:X}=z,Q=f(T/X),oe=Q>.5?1-2*(Q-.5):2*Q;return G+(U-G)*oe}}function f(u){let s=u%1;return s<0?s+1:s}function v(u,s,r){let d=[...u],g=d[s];return d[s]=d[r],d[r]=g,d}},4823:function(x,p,M){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.MiniRangeBar=void 0;let A=M(1408);class F extends A.MiniChartWithAxes{constructor(f,v,u,s){super(f,v,"rangeBarTooltip");let r=[3,3.5,3];this.bars=this.createRangeBar(this.root,r,this.size,this.padding,"vertical"),this.updateColors(u,s)}updateColors(f,v){this.bars.forEach((u,s)=>{u.fill=f[s],u.stroke=v[s]})}createRangeBar(f,v,u,s,r){let d=r==="horizontal",g=2*s,{_Scene:m}=this.agChartsExports,b=new m.BandScale;b.domain=v.map((G,U)=>U),b.range=[s,u-s],b.paddingInner=.3,b.paddingOuter=.3;let w=.7,k=1.3,R=new m.LinearScale;R.domain=[v.reduce((G,U)=>Math.min(G,U),1/0)*w,v.reduce((G,U)=>Math.max(G,U),0)*k],R.range=[g,u-g];let T=b.bandwidth,z=v.map((G,U)=>{let[X,Q]=[G*w,G*k],oe=b.convert(U),le=R.convert(X),fe=R.convert(Q)-le,ye=new m.Rect;return ye.x=d?le:oe,ye.y=d?oe:le,ye.width=d?fe:T,ye.height=d?T:fe,ye.strokeWidth=0,ye.crisp=!0,ye});return f.append(z),z}}p.MiniRangeBar=F,F.chartType="rangeBar"},6692:function(x,p,M){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.MiniChartsContainer=void 0;let A=M(6624),F=M(1421),D=M(4237),f=M(6544),v={columnGroup:{column:{range:!0,pivot:!0,enterprise:!1,icon:f.MiniColumn},stackedColumn:{range:!0,pivot:!0,enterprise:!1,icon:f.MiniStackedColumn},normalizedColumn:{range:!0,pivot:!0,enterprise:!1,icon:f.MiniNormalizedColumn}},barGroup:{bar:{range:!0,pivot:!0,enterprise:!1,icon:f.MiniBar},stackedBar:{range:!0,pivot:!0,enterprise:!1,icon:f.MiniStackedBar},normalizedBar:{range:!0,pivot:!0,enterprise:!1,icon:f.MiniNormalizedBar}},pieGroup:{pie:{range:!0,pivot:!0,enterprise:!1,icon:f.MiniPie},donut:{range:!0,pivot:!0,enterprise:!1,icon:f.MiniDonut},doughnut:{range:!0,pivot:!0,enterprise:!1,icon:f.MiniDonut}},lineGroup:{line:{range:!0,pivot:!0,enterprise:!1,icon:f.MiniLine},stackedLine:{range:!0,pivot:!0,enterprise:!1,icon:f.MiniStackedLine},normalizedLine:{range:!0,pivot:!0,enterprise:!1,icon:f.MiniNormalizedLine}},scatterGroup:{scatter:{range:!0,pivot:!0,enterprise:!1,icon:f.MiniScatter},bubble:{range:!0,pivot:!0,enterprise:!1,icon:f.MiniBubble}},areaGroup:{area:{range:!0,pivot:!0,enterprise:!1,icon:f.MiniArea},stackedArea:{range:!0,pivot:!0,enterprise:!1,icon:f.MiniStackedArea},normalizedArea:{range:!0,pivot:!0,enterprise:!1,icon:f.MiniNormalizedArea}},polarGroup:{radarLine:{range:!0,pivot:!1,enterprise:!0,icon:f.MiniRadarLine},radarArea:{range:!0,pivot:!1,enterprise:!0,icon:f.MiniRadarArea},nightingale:{range:!0,pivot:!1,enterprise:!0,icon:f.MiniNightingale},radialColumn:{range:!0,pivot:!1,enterprise:!0,icon:f.MiniRadialColumn},radialBar:{range:!0,pivot:!1,enterprise:!0,icon:f.MiniRadialBar}},statisticalGroup:{boxPlot:{range:!0,pivot:!1,enterprise:!0,icon:f.MiniBoxPlot},histogram:{range:!0,pivot:!1,enterprise:!1,icon:f.MiniHistogram},rangeBar:{range:!0,pivot:!1,enterprise:!0,icon:f.MiniRangeBar},rangeArea:{range:!0,pivot:!1,enterprise:!0,icon:f.MiniRangeArea}},hierarchicalGroup:{treemap:{range:!0,pivot:!0,enterprise:!0,icon:f.MiniTreemap},sunburst:{range:!0,pivot:!0,enterprise:!0,icon:f.MiniSunburst}},specializedGroup:{heatmap:{range:!0,pivot:!1,enterprise:!0,icon:f.MiniHeatmap},waterfall:{range:!0,pivot:!1,enterprise:!0,icon:f.MiniWaterfall}},combinationGroup:{columnLineCombo:{range:!0,pivot:!0,enterprise:!1,icon:f.MiniColumnLineCombo},areaColumnCombo:{range:!0,pivot:!0,enterprise:!1,icon:f.MiniAreaColumnCombo},customCombo:{range:!0,pivot:!0,enterprise:!1,icon:f.MiniCustomCombo}}},u={columnGroup:["column","stackedColumn","normalizedColumn"],barGroup:["bar","stackedBar","normalizedBar"],pieGroup:["pie","donut"],lineGroup:["line","stackedLine","normalizedLine"],areaGroup:["area","stackedArea","normalizedArea"],scatterGroup:["scatter","bubble"],polarGroup:["radarLine","radarArea","nightingale","radialColumn","radialBar"],statisticalGroup:["boxPlot","histogram","rangeBar","rangeArea"],hierarchicalGroup:["treemap","sunburst"],specializedGroup:["heatmap","waterfall"],combinationGroup:["columnLineCombo","areaColumnCombo","customCombo"]};class s extends A.Component{wireBeans(d){this.chartTranslation=d.chartTranslation}constructor(d,g,m,b,w,k=u){super('<div class="ag-chart-settings-mini-wrapper"></div>'),this.wrappers=new Map,this.chartController=d,this.fills=g,this.strokes=m,this.themeTemplateParameters=b,this.isCustomTheme=w,this.chartGroups=pe({},k)}postConstruct(){!this.chartController.customComboExists()&&this.chartGroups.combinationGroup&&(this.chartGroups.combinationGroup=this.chartGroups.combinationGroup.filter(k=>k!=="customCombo"));let d=this.getGui(),g=this.chartController.isEnterprise(),m=this.chartController.isPivotChart(),b=!m,w=Object.keys(this.chartGroups).map(k=>{var G;let R=k in v?v[k]:void 0;if(!R)return(0,A._warn)(148,{group:k}),null;let z=((G=this.chartGroups[k])!=null?G:[]).map(U=>{let X=U in R?R[U]:void 0;return X?!g&&X.enterprise?null:b&&X.range||m&&X.pivot?X:null:((0,A._warn)(149,{group:k,chartType:U}),null)}).filter(U=>U!=null);return z.length===0?null:{label:this.chartTranslation.translate(k),items:z}}).filter(k=>k!=null);for(let{label:k,items:R}of w){let T=this.createBean(new F.AgGroupComponent({title:k,suppressEnabledCheckbox:!0,enabled:!0,suppressOpenCloseIcons:!0,cssIdentifier:"charts-settings",direction:"horizontal",suppressKeyboardNavigation:!0}));for(let z of R){let G=z.icon,U=document.createElement("div");U.classList.add("ag-chart-mini-thumbnail"),U.setAttribute("tabindex","0"),U.setAttribute("role","button");let X=G.chartType,Q=()=>{this.chartController.setChartType(X),this.updateSelectedMiniChart()};this.addManagedListeners(U,{click:Q,keydown:oe=>{(oe.key==A.KeyCode.ENTER||oe.key===A.KeyCode.SPACE)&&(oe.preventDefault(),Q())}}),this.wrappers.set(X,U),this.createBean(new G(U,this.beans.agChartsExports,this.fills,this.strokes,this.themeTemplateParameters,this.isCustomTheme)),T.addItem(U)}d.appendChild(T.getGui())}this.updateSelectedMiniChart()}updateSelectedMiniChart(){let d=this.chartController.getChartType();this.wrappers.forEach((g,m)=>{let b=m===d;g.classList.toggle("ag-selected",b);let w=this.chartTranslation.translate((0,D.getFullChartNameTranslationKey)(m)),k=b?`${w}. ${this.chartTranslation.translate("ariaChartSelected")}`:w;(0,A._setAriaLabel)(g,k)})}destroy(){this.wrappers.clear(),super.destroy()}}p.MiniChartsContainer=s},5518:function(x,p,M){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.TabbedChartMenu=void 0;let A=M(6624),F=M(5875),D=M(1504),f=M(3160),v=M(6604),u="data",s="format";class r extends A.Component{wireBeans(g){this.chartTranslation=g.chartTranslation}constructor(g,m){super(),this.panels=g,this.chartMenuContext=m,this.tabs=[]}postConstruct(){this.panels.forEach(g=>{let m=g.replace("chart","").toLowerCase(),b=this.createPanel(m),w=this.createTab(g,m,b);this.tabs.push(w),this.addDestroyFunc(()=>this.destroyBean(b))}),this.tabbedLayout=new F.TabbedLayout({items:this.tabs,cssClass:"ag-chart-tabbed-menu",keepScrollPosition:!0,suppressFocusBodyOnOpen:!0,suppressTrapFocus:!0,enableCloseButton:!0,closeButtonAriaLabel:this.chartTranslation.translate("ariaChartMenuClose"),onCloseClicked:()=>{var g;(g=this.eventSource)==null||g.focus({preventScroll:!0}),this.dispatchLocalEvent({type:"closed"})}}),this.createBean(this.tabbedLayout)}createTab(g,m,b){let w=document.createElement("div");w.classList.add("ag-chart-tab",`ag-chart-${m}`),this.createBean(b),w.appendChild(b.getGui());let k=document.createElement("div"),R=this.chartTranslation.translate(m);return k.innerText=R,{title:k,titleLabel:R,bodyPromise:A.AgPromise.resolve(w),getScrollableContainer:()=>w.querySelector(".ag-scrollable-container")||w,name:g}}showTab(g){let m=this.tabs[g];this.tabbedLayout.showItem(m)}getGui(){return this.tabbedLayout&&this.tabbedLayout.getGui()}showMenu(g,m){var b;this.eventSource=g,m||(b=this.tabbedLayout)==null||b.focusHeader(!0)}destroy(){this.parentComponent&&this.parentComponent.isAlive()&&this.destroyBean(this.parentComponent),super.destroy()}createPanel(g){switch(g){case u:return new D.ChartDataPanel(this.chartMenuContext);case s:return new f.FormatPanel(this.chartMenuContext);default:return new v.ChartSettingsPanel(this.chartMenuContext.chartController)}}}p.TabbedChartMenu=r},8592:function(x,p,M){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.ChartDataModel=p.DEFAULT_CHART_CATEGORY=void 0;let A=M(6624),F=M(9208),D=M(8919),f=M(4237),v=M(2474);p.DEFAULT_CHART_CATEGORY="AG-GRID-DEFAULT-CATEGORY";class u extends A.BeanStub{wireBeans(r){this.rangeSvc=r.rangeSvc,this.chartTranslation=r.chartTranslation}constructor(r){super(),this.unlinked=!1,this.chartData=[],this.valueColState=[],this.dimensionColState=[],this.colNames={},this.crossFiltering=!1,this.grouping=!1,this.params=r,this.chartId=r.chartId,this.setParams(r)}setParams(r){let{chartType:d,pivotChart:g,chartThemeName:m,switchCategorySeries:b,aggFunc:w,cellRange:k,suppressChartRanges:R,unlinkChart:T,crossFiltering:z,seriesGroupType:G}=r;this.chartType=d,this.pivotChart=g!=null?g:!1,this.chartThemeName=m,this.switchCategorySeries=!!b,this.aggFunc=w,this.referenceCellRange=k,this.suppliedCellRange=k,this.suppressChartRanges=R!=null?R:!1,this.unlinked=!!T,this.crossFiltering=!!z,this.seriesGroupType=G}postConstruct(){this.datasource=this.createManagedBean(new F.ChartDatasource),this.chartColSvc=this.createManagedBean(new D.ChartColumnService),this.comboChartModel=this.createManagedBean(new v.ComboChartModel(this)),this.updateCellRanges({setColsFromRange:!0}),this.updateData()}updateModel(r){let{cellRange:d,seriesChartTypes:g}=r;d!==this.suppliedCellRange&&(this.dimensionCellRange=void 0,this.valueCellRange=void 0),this.setParams(r),this.updateSelectedDimensions(d==null?void 0:d.columns),this.updateCellRanges({setColsFromRange:!0}),(this.isComboChart()||g)&&this.comboChartModel.update(g),this.unlinked||this.updateData()}updateCellRanges(r){let{updatedColState:d,resetOrder:g,maintainColState:m,setColsFromRange:b}=r!=null?r:{};this.valueCellRange&&(this.referenceCellRange=this.valueCellRange);let{dimensionCols:w,valueCols:k}=this.chartColSvc.getChartColumns(),R=this.getAllColumnsFromRanges();d&&this.updateColumnState(d,g),this.setDimensionCellRange(w,R,d),this.setValueCellRange(k,R,b),!d&&!m&&(this.resetColumnState(),this.syncDimensionCellRange()),this.comboChartModel.updateSeriesChartTypes()}updateData(){let{startRow:r,endRow:d}=this.getRowIndexes();this.pivotChart&&this.resetColumnState(),this.grouping=this.isGrouping();let g={aggFunc:this.aggFunc,dimensionCols:this.getSelectedDimensions(),grouping:this.grouping,pivoting:this.isPivotActive(),crossFiltering:this.crossFiltering,valueCols:this.getSelectedValueCols(),startRow:r,endRow:d,isScatter:["scatter","bubble"].includes(this.chartType)},{chartData:m,colNames:b,groupChartData:w}=this.datasource.getData(g);this.chartData=m,this.groupChartData=w,this.colNames=b,this.categoryAxisType=void 0}isGrouping(){let r=this.gos.get("treeData"),d=r?null:this.chartColSvc.getRowGroupColumns(),g=r||d&&d.length>0,m=this.getSelectedDimensions().map(({colId:k})=>k),w=this.chartColSvc.getGroupDisplayColumns().map(k=>k.getColId()).some(k=>m.includes(k));return!!g&&w}getSelectedValueCols(){return this.valueColState.filter(r=>r.selected).map(r=>r.column)}getSelectedDimensions(){return this.dimensionColState.filter(r=>r.selected)}getColDisplayName(r,d){return this.chartColSvc.getColDisplayName(r,d)}isPivotMode(){return this.chartColSvc.isPivotMode()}getChartDataType(r){let d=this.chartColSvc.getColumn(r);return d?d.getColDef().chartDataType:void 0}isPivotActive(){return this.chartColSvc.isPivotActive()}createCellRange(r,...d){return{id:this.chartId,startRow:this.referenceCellRange.startRow,endRow:this.referenceCellRange.endRow,columns:d,startColumn:r===A.CellRangeType.DIMENSION||this.referenceCellRange.startColumn==null?d[0]:this.referenceCellRange.startColumn,type:r}}getAllColumnsFromRanges(){if(this.pivotChart)return new Set(this.chartColSvc.getAllDisplayedColumns());let r=this.dimensionCellRange||this.valueCellRange?[]:this.referenceCellRange.columns;return this.dimensionCellRange&&r.push(...this.dimensionCellRange.columns),this.valueCellRange&&r.push(...this.valueCellRange.columns),new Set(r)}getRowIndexes(){let r=0,d=0,{rangeSvc:g,valueCellRange:m,dimensionCellRange:b}=this,w=m||b;if(g&&w){r=g.getRangeStartRow(w).rowIndex;let k=g.getRangeEndRow(w);d=k.rowPinned==="bottom"?-1:k.rowIndex}return{startRow:r,endRow:d}}resetColumnState(){let{dimensionCols:r,valueCols:d}=this.chartColSvc.getChartColumns(),g=this.getAllColumnsFromRanges(),m=this.valueColState.length<1;this.dimensionColState=[],this.valueColState=[];let b=(0,f.isHierarchical)((0,f.getSeriesType)(this.chartType)),w=!1,k=1,R=this.suppliedCellRange.columns[0];r.forEach(G=>{let U=G.getColId()==="ag-Grid-AutoColumn",X=!1;this.crossFiltering&&this.aggFunc?R.getColId()===G.getColId()&&(X=!0):X=U?!0:(!w||b)&&g.has(G),this.dimensionColState.push({column:G,colId:G.getColId(),displayName:this.getColDisplayName(G),selected:X,order:k++}),X&&(w=!0)});let T={colId:p.DEFAULT_CHART_CATEGORY,displayName:this.chartTranslation.translate("defaultCategory"),selected:!w,order:0};this.dimensionColState.unshift(T);let z=this.referenceCellRange.columns.filter(G=>d.has(G));d.forEach(G=>{m&&this.referenceCellRange.columns.includes(G)&&(G=z.shift()),this.valueColState.push({column:G,colId:G.getColId(),displayName:this.getColDisplayName(G),selected:g.has(G),order:k++})})}updateColumnState(r,d){let g=z=>z.colId===r.colId,{dimensionColState:m,valueColState:b}=this,w=m.find(g),k=b.find(g);if(w)if((0,f.isHierarchical)((0,f.getSeriesType)(this.chartType)))w.selected=r.selected;else{let G=r.selected?w:m.filter(U=>U!==w).find(({selected:U})=>U);m.forEach(U=>U.selected=U===G)}else k&&(k.selected=r.selected);let R=[...m,...b],T=[];d||(R.forEach((z,G)=>{G===r.order&&T.push(r.colId),z.colId!==r.colId&&T.push(z.colId)}),R.forEach(z=>{let G=T.indexOf(z.colId);z.order=G>=0?T.indexOf(z.colId):R.length-1})),this.reorderColState()}reorderColState(){let r=(d,g)=>d.order-g.order;this.dimensionColState.sort(r),this.valueColState.sort(r)}setDimensionCellRange(r,d,g){this.dimensionCellRange=void 0;let m=(0,f.isHierarchical)((0,f.getSeriesType)(this.chartType));if(!g&&!this.dimensionColState.length){let R=new Array;r.forEach(T=>{R.length>0&&!m||!d.has(T)||R.push(T)}),R.length>0&&(this.dimensionCellRange=this.createCellRange(A.CellRangeType.DIMENSION,...R));return}let b=g?[g]:[];if(this.crossFiltering&&this.aggFunc){let R=this.suppliedCellRange.columns[0];b=this.dimensionColState.filter(T=>T.colId===R.getColId())}else(m||b.length===0||b.some(({column:R})=>!R||!r.has(R)))&&(b=this.dimensionColState.filter(R=>R.selected));let w=b.length===1?b[0].colId===p.DEFAULT_CHART_CATEGORY:!1,k=b.map(({column:R})=>R).filter(R=>R!=null);k.length>0&&!w&&(this.dimensionCellRange=this.createCellRange(A.CellRangeType.DIMENSION,...k))}setValueCellRange(r,d,g){this.valueCellRange=void 0;let m=[],b=(0,f.getMaxNumSeries)(this.chartType),w=0;if(r.forEach(k=>{g?(b==null||w<b)&&d.has(k)&&(m.push(k),w++):this.valueColState.some(R=>R.selected&&R.colId===k.getColId())&&m.push(k)}),m.length>0){let k=[];this.valueColState.length>0?k=this.valueColState.map(R=>R.colId):d.forEach(R=>k.push(R.getColId())),m.sort((R,T)=>k.indexOf(R.getColId())-k.indexOf(T.getColId())),this.valueCellRange=this.createCellRange(A.CellRangeType.VALUE,...m)}}resetCellRanges(r,d){if(!r&&!d)return;let{dimensionCols:g,valueCols:m}=this.chartColSvc.getChartColumns(),b=this.getAllColumnsFromRanges();r&&this.setDimensionCellRange(g,b),d&&this.setValueCellRange(m,b)}updateSelectedDimensions(r){let d=new Set(r.map(m=>m.getColId()));if((0,f.isHierarchical)((0,f.getSeriesType)(this.chartType))){let m=this.dimensionColState.filter(w=>d.has(w.colId)),b=new Set(m.map(w=>w.colId));this.dimensionColState=this.dimensionColState.map(w=>et(pe({},w),{selected:b.has(w.colId)}))}else{let b=(this.dimensionColState.find(w=>d.has(w.colId))||this.dimensionColState[0]).colId;this.dimensionColState=this.dimensionColState.map(w=>et(pe({},w),{selected:w.colId===b}))}}syncDimensionCellRange(){let r=this.getSelectedDimensions();if(r.length===0)return;let d=r.map(({column:g})=>g).filter(g=>g!=null);d.length>0&&(this.dimensionCellRange=this.createCellRange(A.CellRangeType.DIMENSION,...d))}isComboChart(r){return(0,f.isComboChart)(r!=null?r:this.chartType)}}p.ChartDataModel=u},2474:function(x,p,M){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.ComboChartModel=void 0;let A=M(6624),F=new Set(["line","groupedColumn","stackedColumn","area","stackedArea"]);class D extends A.BeanStub{constructor(v){var u;super(),this.suppressComboChartWarnings=!1,this.chartDataModel=v,this.seriesChartTypes=(u=v.params.seriesChartTypes)!=null?u:[]}postConstruct(){this.initComboCharts()}update(v){this.seriesChartTypes=v!=null?v:this.seriesChartTypes,this.initComboCharts(),this.updateSeriesChartTypes()}initComboCharts(){let v=this.seriesChartTypes&&this.seriesChartTypes.length>0;(this.chartDataModel.chartType==="customCombo"||v)&&(this.chartDataModel.chartType="customCombo",this.savedCustomSeriesChartTypes=this.seriesChartTypes||[])}updateSeriesChartTypes(){if(this.chartDataModel.isComboChart()){if(this.seriesChartTypes=this.seriesChartTypes.map(v=>{let u=["groupedColumn","stackedColumn","stackedArea"].includes(v.chartType);return v.secondaryAxis=u?!1:v.secondaryAxis,v}),this.chartDataModel.chartType==="customCombo"){this.updateSeriesChartTypesForCustomCombo();return}this.updateChartSeriesTypesForBuiltInCombos()}}updateSeriesChartTypesForCustomCombo(){!(this.seriesChartTypes&&this.seriesChartTypes.length>0)&&!this.suppressComboChartWarnings&&(0,A._warn)(150),this.seriesChartTypes=this.seriesChartTypes.map(r=>(F.has(r.chartType)||((0,A._warn)(151,{chartType:r.chartType}),r.chartType="line"),r));let u=r=>{(!this.savedCustomSeriesChartTypes||this.savedCustomSeriesChartTypes.length===0)&&(this.savedCustomSeriesChartTypes=this.seriesChartTypes);let d=this.savedCustomSeriesChartTypes.find(g=>g.colId===r.colId);return d||(r.selected&&!this.suppressComboChartWarnings&&(0,A._warn)(152,{colId:r.colId}),{colId:r.colId,chartType:"line",secondaryAxis:!1})},s=this.chartDataModel.valueColState.map(u);this.seriesChartTypes=s,this.savedCustomSeriesChartTypes=s,this.suppressComboChartWarnings=!0}updateChartSeriesTypesForBuiltInCombos(){let{chartType:v,valueColState:u}=this.chartDataModel,s=v==="columnLineCombo"?"groupedColumn":"stackedArea",r=v==="columnLineCombo"?"line":"groupedColumn",d=u.filter(m=>m.selected),g=Math.ceil(d.length/2);this.seriesChartTypes=d.map((m,b)=>{let w=b>=g?r:s;return{colId:m.colId,chartType:w,secondaryAxis:!1}})}}p.ComboChartModel=D},8919:function(x,p,M){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.ChartColumnService=void 0;let A=M(6624);class F extends A.BeanStub{constructor(){super(...arguments),this.beanName="chartColSvc",this.valueColsWithoutSeriesType=new Set}wireBeans(f){this.colModel=f.colModel,this.colNames=f.colNames,this.valueSvc=f.valueSvc}postConstruct(){let f=()=>this.valueColsWithoutSeriesType.clear();this.addManagedEventListeners({newColumnsLoaded:f,rowDataUpdated:f})}getColumn(f){return this.colModel.getColDefCol(f)}getAllDisplayedColumns(){return this.beans.visibleCols.allCols}getColDisplayName(f,v){let u="chart",s=this.colNames.getDisplayNameForColumn(f,u);if(v){let r=[s],d=g=>{if(!g)return;let m=this.colNames.getDisplayNameForColumnGroup(g,u);m!=null&&m.length&&(r.unshift(m),d(g.getParent()))};return d(f.getParent()),r.join(" - ")}return s}getRowGroupColumns(){var f,v;return(v=(f=this.beans.rowGroupColsSvc)==null?void 0:f.columns)!=null?v:[]}getGroupDisplayColumns(){var f,v;return(v=(f=this.beans.showRowGroupCols)==null?void 0:f.getShowRowGroupCols())!=null?v:[]}isPivotMode(){return this.colModel.isPivotMode()}isPivotActive(){return this.colModel.isPivotActive()}getChartColumns(){let f=this.colModel.getCols(),v=new Set,u=new Set;return f.forEach(s=>{let r=s.getColDef(),d=r.chartDataType;if(d)switch(d){case"category":case"time":v.add(s);return;case"series":u.add(s);return;case"excluded":return;default:(0,A._warn)(153,{chartDataType:d});break}if(r.colId==="ag-Grid-AutoColumn"){v.add(s);return}if(!s.isPrimary()){u.add(s);return}(this.isInferredValueCol(s)?u:v).add(s)}),{dimensionCols:v,valueCols:u}}isInferredValueCol(f){let v=f.getColId();if(v==="ag-Grid-AutoColumn")return!1;let u=(0,A._getRowNode)(this.beans,{rowIndex:0,rowPinned:null});if(!u)return this.valueColsWithoutSeriesType.has(v);let s=this.valueSvc.getValue(f,u);s==null&&(s=this.extractLeafData(u,f)),s!=null&&typeof s.toNumber=="function"&&(s=s.toNumber());let r=typeof s=="number";return r&&this.valueColsWithoutSeriesType.add(v),r}extractLeafData(f,v){if(!f.allLeafChildren)return null;for(let u=0;u<f.allLeafChildren.length;u++){let s=f.allLeafChildren[u],r=this.valueSvc.getValue(v,s);if(r!=null)return r}return null}destroy(){this.valueColsWithoutSeriesType.clear(),super.destroy()}}p.ChartColumnService=F},8769:function(x,p,M){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.ChartCrossFilterService=void 0;let A=M(6624);class F extends A.BeanStub{constructor(){super(...arguments),this.beanName="chartCrossFilterSvc"}wireBeans(f){this.colModel=f.colModel,this.valueSvc=f.valueSvc,this.filterManager=f.filterManager,(0,A._isClientSideRowModel)(this.gos,f.rowModel)&&(this.clientSideRowModel=f.rowModel)}filter(f,v=!1){var r,d;let u=(d=(r=this.filterManager)==null?void 0:r.getFilterModel())!=null?d:{};if(v){this.resetFilters(u);return}let s=this.extractFilterColId(f);this.isValidColumnFilter(s)?this.updateFilters(u,f,s):(0,A._warn)(154,{colId:s})}resetFilters(f){var u,s;Object.keys(f).length>0&&((u=this.filterManager)==null||u.setFilterModel(null),(s=this.filterManager)==null||s.onFilterChanged({source:"api"}))}updateFilters(f,v,u){var g;let s=this.extractFilterColId(v),r=v.datum[s];if(r===void 0)return;let d=r.toString();if(v.event.metaKey||v.event.ctrlKey){let m=this.getCurrentGridValuesForCategory(u),b=m.includes(d),w;b?w=m.filter(k=>k!==d):(w=m,w.push(d)),f[u]=this.getUpdatedFilterModel(u,w)}else{let m=[d];f={[u]:this.getUpdatedFilterModel(u,m)}}(g=this.filterManager)==null||g.setFilterModel(f)}getUpdatedFilterModel(f,v){return this.getColumnFilterType(f)==="agMultiColumnFilter"?{filterType:"multi",filterModels:[null,{filterType:"set",values:v}]}:{filterType:"set",values:v}}getCurrentGridValuesForCategory(f){var s;let v=[],u=this.getColumnById(f);return(s=this.clientSideRowModel)==null||s.forEachNodeAfterFilter(r=>{if(u&&!r.group){let d=this.valueSvc.getValue(u,r)+"";v.includes(d)||v.push(d)}}),v}extractFilterColId(f){return f.xKey||f.calloutLabelKey}isValidColumnFilter(f){f.indexOf("-filtered-out")&&(f=f.replace("-filtered-out",""));let v=this.getColumnFilterType(f);return typeof v=="boolean"?v:["agSetColumnFilter","agMultiColumnFilter"].includes(v)}getColumnFilterType(f){let v=this.getColumnById(f);if(v)return v.getColDef().filter}getColumnById(f){return this.colModel.getCol(f)}}p.ChartCrossFilterService=F},7492:function(x,p,M){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.ChartMenuService=p.CHART_TOOL_PANEL_MENU_OPTIONS=void 0;let A=M(6624),F=["chartUnlink","chartLink","chartDownload","chartMenu"];p.CHART_TOOL_PANEL_MENU_OPTIONS={settings:"chartSettings",data:"chartData",format:"chartFormat"};class D extends A.BeanStub{constructor(){super(...arguments),this.beanName="chartMenuSvc"}wireBeans(v){this.advSettingsMenuFactory=v.advSettingsMenuFactory}downloadChart(v,u,s,r){v.chartController.getChartProxy().downloadChart(u,s,r)}toggleLinked(v){v.chartController.detachChartRange()}openAdvancedSettings(v,u){var s;(s=this.advSettingsMenuFactory)==null||s.showMenu(v,u)}hideAdvancedSettings(){var v;(v=this.advSettingsMenuFactory)==null||v.hideMenu()}getChartToolbarOptions(){let v=["chartMenu"],u=this.gos.getCallback("getChartToolbarItems");return u?u({defaultItems:v}).filter(r=>F.includes(r)?!0:((0,A._warn)(155,{option:r}),!1)):v}getChartToolPanels(v){var m;let u=this.gos.get("chartToolPanelsDef"),s=(m=u==null?void 0:u.panels)==null?void 0:m.map(b=>{let w=p.CHART_TOOL_PANEL_MENU_OPTIONS[b];return w||(0,A._warn)(156,{panel:b}),w}).filter(b=>!!b),r=s!=null?s:Object.values(p.CHART_TOOL_PANEL_MENU_OPTIONS);v.isPivotChart()&&(r=r.filter(b=>b!=="chartData"));let d=u==null?void 0:u.defaultToolPanel,g=d&&p.CHART_TOOL_PANEL_MENU_OPTIONS[d]||r[0];return{panels:r,defaultPanel:g}}doesChartToolbarExist(){return this.getChartToolbarOptions().length>0}doChartToolPanelsExist(v){let{panels:u}=this.getChartToolPanels(v);return u.length>0}}p.ChartMenuService=D},6297:function(x,p,M){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.ChartOptionsService=void 0;let A=M(6624),F=M(2210),D=M(4237),f=["number","category","time","grouped-category"],v=["angle-category","angle-number","radius-category","radius-number"],u=[...f,...v];class s extends A.BeanStub{constructor(g){super(),this.chartController=g}getChartThemeOverridesProxy(){return{getValue:g=>this.getChartOption(g),setValue:(g,m)=>this.setChartThemeOverrides([{expression:g,value:m}]),setValues:g=>this.setChartThemeOverrides(g)}}getAxisThemeOverridesProxy(){return{getValue:g=>this.getAxisProperty(g),setValue:(g,m)=>this.setAxisThemeOverrides([{expression:g,value:m}]),setValues:g=>this.setAxisThemeOverrides(g)}}getCartesianAxisOptionsProxy(g){return{getValue:m=>this.getCartesianAxisProperty(g,m),setValue:(m,b)=>this.setCartesianAxisOptions(g,[{expression:m,value:b}]),setValues:m=>this.setCartesianAxisOptions(g,m)}}getCartesianAxisThemeOverridesProxy(g){return{getValue:m=>this.getCartesianAxisProperty(g,m),setValue:(m,b)=>this.setCartesianAxisThemeOverrides(g,[{expression:m,value:b}]),setValues:m=>this.setCartesianAxisThemeOverrides(g,m)}}getCartesianAxisAppliedThemeOverridesProxy(g){return{getValue:m=>this.getCartesianAxisThemeOverride(g,m==="*"?null:m),setValue:(m,b)=>this.setCartesianAxisThemeOverrides(g,[{expression:m==="*"?null:m,value:b}]),setValues:m=>this.setCartesianAxisThemeOverrides(g,m)}}getSeriesOptionsProxy(g){return{getValue:(m,b)=>this.getSeriesOption(g(),m,b),setValue:(m,b)=>this.setSeriesOptions(g(),[{expression:m,value:b}]),setValues:m=>this.setSeriesOptions(g(),m)}}getPersistedChartThemeOverrides(g,m,b,w){let k=this.getRetainedChartThemeOverrideKeys(b,w),R=this.getRetainedChartAxisThemeOverrideKeys(null,b,w),T=this.createChartOptions();for(let z of k){let G=this.retrieveChartOptionsThemeOverride(g,b,z);G!==void 0&&this.assignChartOptionsThemeOverride(T,w,z,G)}return m&&this.assignPersistedAxisOverrides({existingAxes:m,retainedChartAxisThemeOverrideKeys:R,existingChartOptions:g,targetChartOptions:T,existingChartType:b,targetChartType:w}),T.theme.overrides}assignPersistedAxisOverrides(g){let{existingAxes:m,retainedChartAxisThemeOverrideKeys:b,existingChartOptions:w,targetChartOptions:k,existingChartType:R,targetChartType:T}=g;for(let{expression:z,targetAxisTypes:G}of b)for(let U of m.map(X=>X.type)){let X=this.retrieveChartOptionsThemeOverride(w,R,["axes",U,z].join("."));if(X!==void 0)for(let Q of G)this.assignChartOptionsThemeOverride(k,T,["axes",Q,z].join("."),X)}}getRetainedChartThemeOverrideKeys(g,m){let b=["animation"],w=["zoom","navigator"],k=((R,T)=>{let z=new Array;return(0,D.isCartesian)((0,D.getSeriesType)(R))&&(0,D.isCartesian)((0,D.getSeriesType)(T))&&z.push(...w),z})(g,m);return[...b,...k]}getRetainedChartAxisThemeOverrideKeys(g,m,b){return(0,D.isCartesian)((0,D.getSeriesType)(m))&&(0,D.isCartesian)((0,D.getSeriesType)(b))?this.getRetainedCartesianAxisThemeOverrideKeys(g).map(k=>({expression:k,targetAxisTypes:f})):[]}getRetainedCartesianAxisThemeOverrideKeys(g){let m=g==="xAxis"?["",".top",".bottom"]:g==="yAxis"?["",".left",".right"]:["",".left",".right",".top",".bottom"],b=["crosshair"],w=new Array;for(let k of b)for(let R of m)w.push(`${k}${R}`);return w}getChartOption(g){return(0,F.get)(this.getChart(),g,void 0)}setChartThemeOverrides(g){let m=this.getChartType(),b=this.createChartOptions();for(let{expression:w,value:k}of g)this.assignChartOptionsThemeOverride(b,m,w,k);this.applyChartOptions(b)}applyChartOptions(g,m){if(Object.keys(g).length===0)return;this.updateChart(g),!(m!=null&&m.silent)&&this.raiseChartOptionsChangedEvent()}awaitChartOptionUpdate(g){this.chartController.getChartProxy().getChart().waitForUpdate().then(()=>g()).catch(b=>(0,A._error)(108,{e:b}))}getAxisProperty(g){var m;return(0,F.get)((m=this.getChart().axes)==null?void 0:m[0],g,void 0)}setAxisThemeOverrides(g){var k;let m=this.getChart(),b=this.getChartType(),w=this.createChartOptions();for(let{expression:R,value:T}of g){let z=(k=m.axes)==null?void 0:k.filter(G=>{let U=R.split("."),X=G;for(let Q of U){if(!(Q in X))return!1;X=X[Q]}return!0});if(z)for(let G of z)this.isValidAxisType(G)&&this.assignChartAxisThemeOverride(w,b,G.type,null,R,T)}this.applyChartOptions(w)}getCartesianAxisProperty(g,m){let b=this.getChartAxes(),w=this.getCartesianAxis(b,g);return(0,F.get)(w,m,void 0)}getCartesianAxisThemeOverride(g,m){let b=this.getChartAxes(),w=this.getCartesianAxis(b,g);if(!w||!this.isValidAxisType(w))return;let k=this.getChartType(),R=this.getChart().getOptions();return this.retrieveChartAxisThemeOverride(R,k,w.type,g==="yAxis"?["left","right"]:["bottom","top"],m)}setCartesianAxisThemeOverrides(g,m){let b=this.getChartAxes(),w=this.getCartesianAxis(b,g);if(!w||!this.isValidAxisType(w))return;let k=this.getChartType(),R=this.createChartOptions();for(let{expression:T,value:z}of m)this.assignChartAxisThemeOverride(R,k,w.type,g==="yAxis"?["left","right"]:["bottom","top"],T,z);this.applyChartOptions(R)}setCartesianAxisOptions(g,m){this.updateCartesianAxisOptions(g,(b,w,k)=>{let R=w.indexOf(k);for(let{expression:T,value:z}of m)this.assignChartOption(b,`axes.${R}.${T}`,z)})}updateCartesianAxisOptions(g,m){let b=this.getChart().getOptions(),w="axes"in b?b.axes:void 0;if(!b||!w)return;let k=this.getChartAxes(),R=this.getCartesianAxis(k,g);if(!R)return;let T=this.createChartOptions();T.axes=w,m(T,k,R,b),this.applyChartOptions(T)}setCartesianCategoryAxisType(g,m){this.updateCartesianAxisOptions(g,(b,w,k,R)=>{let T=this.getChartType();this.assignPersistedAxisOverrides({existingAxes:[k],retainedChartAxisThemeOverrideKeys:this.getRetainedChartAxisThemeOverrideKeys(g,T,T),existingChartOptions:R,targetChartOptions:b,existingChartType:T,targetChartType:T}),this.assignChartOption(b,"axes.0.type",m),this.chartController.setCategoryAxisType(m)})}getCartesianAxis(g,m){if(!(g.length<2))switch(m){case"xAxis":return g[0].direction==="x"?g[0]:g[1];case"yAxis":return g[1].direction==="y"?g[1]:g[0]}}getSeriesOption(g,m,b){let w=this.getChart().series.find(k=>r(g,k));return(0,F.get)(b?w:w==null?void 0:w.properties.toJson(),m,void 0)}setSeriesOptions(g,m){let b=this.createChartOptions();for(let{expression:w,value:k}of m)this.assignChartOptionsSeriesThemeOverride(b,g,`series.${w}`,k);this.applyChartOptions(b)}getPairedMode(){return this.chartController.getChartProxy().isPaired()}setPairedMode(g){this.chartController.getChartProxy().setPaired(g)}getChartAxes(){var m;return(m=this.getChart().axes)!=null?m:[]}retrieveChartAxisThemeOverride(g,m,b,w,k){if(w)for(let R of w){let T=this.retrieveChartOptionsThemeOverride(g,m,["axes",b,R,...k?[k]:[]].join("."));if(T!==void 0)return T}else return this.retrieveChartOptionsThemeOverride(g,m,["axes",b,...k?[k]:[]].join("."))}assignChartAxisThemeOverride(g,m,b,w,k,R){if(w)for(let T of w)this.assignChartOptionsThemeOverride(g,m,["axes",b,T,...k?[k]:[]].join("."),R);else this.assignChartOptionsThemeOverride(g,m,["axes",b,...k?[k]:[]].join("."),R)}isValidAxisType(g){return u.includes(g.type)}getChartType(){return this.chartController.getChartType()}getChart(){return this.chartController.getChartProxy().getChart()}updateChart(g){let m=this.chartController.getChartProxy().getChartRef();m.skipAnimations(),m.updateDelta(g)}createChartOptions(){return{theme:{overrides:{}}}}retrieveChartOptionsThemeOverride(g,m,b){let w=this.getChartThemeOverridesSeriesTypeKeys(m);for(let k of w){let R=this.retrieveChartOptionsSeriesThemeOverride(g,k,b);if(R!==void 0)return R}}assignChartOptionsThemeOverride(g,m,b,w){let k=this.getChartThemeOverridesSeriesTypeKeys(m);for(let R of k)this.assignChartOptionsSeriesThemeOverride(g,R,b,w)}retrieveChartOptionsSeriesThemeOverride(g,m,b){return this.retrieveChartOption(g,["theme","overrides",m,...b?[b]:[]].join("."))}assignChartOptionsSeriesThemeOverride(g,m,b,w){this.assignChartOption(g,["theme","overrides",m,...b?[b]:[]].join("."),w)}getChartThemeOverridesSeriesTypeKeys(g){let m=this.chartController.getChartSeriesTypes(g);return this.chartController.isComboChart()&&m.push("common"),m}retrieveChartOption(g,m){return(0,F.get)(g,m,void 0)}assignChartOption(g,m,b){(0,F.set)(g,m,b)}raiseChartOptionsChangedEvent(){let g=this.chartController.getChartModel();this.eventSvc.dispatchEvent({type:"chartOptionsChanged",chartId:g.chartId,chartType:g.chartType,chartThemeName:this.chartController.getChartThemeName(),chartOptions:g.chartOptions})}destroy(){super.destroy()}}p.ChartOptionsService=s;function r(d,g){return(0,D.isSeriesType)(d)&&g.type===d}},93:function(x,p,M){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.ChartTranslationService=p.DEFAULT_CHART_TRANSLATIONS=void 0;let A=M(6624);p.DEFAULT_CHART_TRANSLATIONS={pivotChartTitle:"Pivot Chart",rangeChartTitle:"Range Chart",settings:"Chart",data:"Set Up",format:"Customize",categories:"Categories",defaultCategory:"(None)",series:"Series",switchCategorySeries:"Switch Category / Series",categoryValues:"Category Values",seriesLabels:"Series Labels",aggregate:"Aggregate",xyValues:"X Y Values",paired:"Paired Mode",axis:"Axis",xAxis:"Horizontal Axis",yAxis:"Vertical Axis",polarAxis:"Polar Axis",radiusAxis:"Radius Axis",navigator:"Navigator",zoom:"Zoom",animation:"Animation",crosshair:"Crosshair",color:"Color",thickness:"Thickness",preferredLength:"Preferred Length",xType:"X Type",axisType:"Axis Type",automatic:"Automatic",category:"Category",number:"Number",time:"Time",timeFormat:"Time Format",autoRotate:"Auto Rotate",labelRotation:"Rotation",circle:"Circle",polygon:"Polygon",square:"Square",cross:"Cross",diamond:"Diamond",plus:"Plus",triangle:"Triangle",heart:"Heart",orientation:"Orientation",fixed:"Fixed",parallel:"Parallel",perpendicular:"Perpendicular",radiusAxisPosition:"Position",ticks:"Ticks",gridLines:"Grid Lines",width:"Width",height:"Height",length:"Length",padding:"Padding",spacing:"Spacing",chartStyle:"Chart Style",title:"Title",chartTitles:"Titles",chartTitle:"Chart Title",chartSubtitle:"Subtitle",horizontalAxisTitle:"Horizontal Axis Title",verticalAxisTitle:"Vertical Axis Title",polarAxisTitle:"Polar Axis Title",titlePlaceholder:"Chart Title",background:"Background",font:"Font",weight:"Weight",top:"Top",right:"Right",bottom:"Bottom",left:"Left",labels:"Labels",calloutLabels:"Callout Labels",sectorLabels:"Sector Labels",positionRatio:"Position Ratio",size:"Size",shape:"Shape",minSize:"Minimum Size",maxSize:"Maximum Size",legend:"Legend",position:"Position",markerSize:"Marker Size",markerStroke:"Marker Stroke",markerPadding:"Marker Padding",itemSpacing:"Item Spacing",itemPaddingX:"Item Padding X",itemPaddingY:"Item Padding Y",layoutHorizontalSpacing:"Horizontal Spacing",layoutVerticalSpacing:"Vertical Spacing",strokeWidth:"Stroke Width",offset:"Offset",offsets:"Offsets",tooltips:"Tooltips",callout:"Callout",markers:"Markers",shadow:"Shadow",blur:"Blur",xOffset:"X Offset",yOffset:"Y Offset",lineWidth:"Line Width",lineDash:"Line Dash",lineDashOffset:"Dash Offset",scrollingZoom:"Scrolling",scrollingStep:"Scrolling Step",selectingZoom:"Selecting",durationMillis:"Duration (ms)",crosshairLabel:"Label",crosshairSnap:"Snap to Node",normal:"Normal",bold:"Bold",italic:"Italic",boldItalic:"Bold Italic",predefined:"Predefined",fillOpacity:"Fill Opacity",strokeColor:"Line Color",strokeOpacity:"Line Opacity",miniChart:"Mini-Chart",histogramBinCount:"Bin count",connectorLine:"Connector Line",seriesItems:"Series Items",seriesItemType:"Item Type",seriesItemPositive:"Positive",seriesItemNegative:"Negative",seriesItemLabels:"Item Labels",columnGroup:"Column",barGroup:"Bar",pieGroup:"Pie",lineGroup:"Line",scatterGroup:"X Y (Scatter)",areaGroup:"Area",polarGroup:"Polar",statisticalGroup:"Statistical",hierarchicalGroup:"Hierarchical",specializedGroup:"Specialized",combinationGroup:"Combination",groupedColumnTooltip:"Grouped",stackedColumnTooltip:"Stacked",normalizedColumnTooltip:"100% Stacked",groupedBarTooltip:"Grouped",stackedBarTooltip:"Stacked",normalizedBarTooltip:"100% Stacked",pieTooltip:"Pie",donutTooltip:"Donut",lineTooltip:"Line",stackedLineTooltip:"Stacked",normalizedLineTooltip:"100% Stacked",groupedAreaTooltip:"Area",stackedAreaTooltip:"Stacked",normalizedAreaTooltip:"100% Stacked",scatterTooltip:"Scatter",bubbleTooltip:"Bubble",histogramTooltip:"Histogram",radialColumnTooltip:"Radial Column",radialBarTooltip:"Radial Bar",radarLineTooltip:"Radar Line",radarAreaTooltip:"Radar Area",nightingaleTooltip:"Nightingale",rangeBarTooltip:"Range Bar",rangeAreaTooltip:"Range Area",boxPlotTooltip:"Box Plot",treemapTooltip:"Treemap",sunburstTooltip:"Sunburst",waterfallTooltip:"Waterfall",heatmapTooltip:"Heatmap",columnLineComboTooltip:"Column & Line",areaColumnComboTooltip:"Area & Column",customComboTooltip:"Custom Combination",innerRadius:"Inner Radius",startAngle:"Start Angle",endAngle:"End Angle",reverseDirection:"Reverse Direction",groupPadding:"Group Padding",seriesPadding:"Series Padding",tile:"Tile",whisker:"Whisker",cap:"Cap",capLengthRatio:"Length Ratio",labelPlacement:"Placement",inside:"Inside",outside:"Outside",noDataToChart:"No data available to be charted.",pivotChartRequiresPivotMode:"Pivot Chart requires Pivot Mode enabled.",chartSettingsToolbarTooltip:"Menu",chartLinkToolbarTooltip:"Linked to Grid",chartUnlinkToolbarTooltip:"Unlinked from Grid",chartDownloadToolbarTooltip:"Download Chart",chartMenuToolbarTooltip:"Menu",chartEdit:"Edit Chart",chartAdvancedSettings:"Advanced Settings",chartLink:"Link to Grid",chartUnlink:"Unlink from Grid",chartDownload:"Download Chart",histogramFrequency:"Frequency",seriesChartType:"Series Chart Type",seriesType:"Series Type",secondaryAxis:"Secondary Axis",seriesAdd:"Add a series",categoryAdd:"Add a category",bar:"Bar",column:"Column",histogram:"Histogram",advancedSettings:"Advanced Settings",direction:"Direction",horizontal:"Horizontal",vertical:"Vertical",seriesGroupType:"Group Type",groupedSeriesGroupType:"Grouped",stackedSeriesGroupType:"Stacked",normalizedSeriesGroupType:"100% Stacked",legendEnabled:"Enabled",invalidColor:"Color value is invalid",groupedColumnFull:"Grouped Column",stackedColumnFull:"Stacked Column",normalizedColumnFull:"100% Stacked Column",groupedBarFull:"Grouped Bar",stackedBarFull:"Stacked Bar",normalizedBarFull:"100% Stacked Bar",stackedAreaFull:"Stacked Area",normalizedAreaFull:"100% Stacked Area",stackedLineFull:"Stacked Line",normalizedLineFull:"100% Stacked Line",customCombo:"Custom Combination",groupedColumn:"Grouped",stackedColumn:"Stacked",pie:"Pie",donut:"Donut",line:"Line",scatter:"Scatter",bubble:"Bubble",area:"Area",stackedArea:"Stacked",radarLine:"Radar Line",radarArea:"Radar Area",nightingale:"Nightingale",radialColumn:"Radial Column",radialBar:"Radial Bar",boxPlot:"Box Plot",rangeBar:"Range Bar",rangeArea:"Range Area",treemap:"Treemap",sunburst:"Sunburst",waterfall:"Waterfall",heatmap:"Heatmap",columnLineCombo:"Column & Line",AreaColumnCombo:"Area & Column",ariaChartMenuClose:"Close Chart Edit Menu",ariaChartSelected:"Selected",group:"Group",timeFormatSlashesDDMMYYYY:"DD/MM/YYYY",timeFormatSlashesMMDDYYYY:"MM/DD/YYYY",timeFormatSlashesDDMMYY:"DD/MM/YY",timeFormatSlashesMMDDYY:"MM/DD/YY",timeFormatDotsDDMYY:"DD.M.YY",timeFormatDotsMDDYY:"M.DD.YY",timeFormatDashesYYYYMMDD:"YYYY-MM-DD",timeFormatSpacesDDMMMMYYYY:"DD MMMM YYYY",timeFormatHHMMSS:"HH:MM:SS",timeFormatHHMMSSAmPm:"HH:MM:SS AM/PM",sum:"Sum",first:"First",last:"Last",min:"Min",max:"Max",count:"Count",avg:"Average"};class F extends A.BeanStub{constructor(){super(...arguments),this.beanName="chartTranslation"}translate(f){let v=this.getLocaleTextFunc(),u=p.DEFAULT_CHART_TRANSLATIONS[f];return v(f,u)}}p.ChartTranslationService=F},1480:function(x,p){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.flatMap=p.partition=void 0;function M(F,D){return F.reduce((f,v)=>{let u=D(v),s=f.get(u);return f.set(u,s?[...s,v]:[v])},new Map)}p.partition=M;function A(F,D){return F.reduce((f,v,u,s)=>f.concat(D(v,u,s)),new Array)}p.flatMap=A},2753:function(x,p){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.getLegacyAxisType=p.ALL_AXIS_TYPES=void 0,p.ALL_AXIS_TYPES=["number","category","grouped-category","log","time"];function M(A){switch(A){case"bar":case"stackedBar":case"normalizedBar":return["number","category"];case"groupedBar":return["number","grouped-category"];case"column":case"stackedColumn":case"normalizedColumn":case"line":case"stackedLine":case"normalizedLine":case"area":case"stackedArea":case"normalizedArea":case"histogram":return["category","number"];case"groupedColumn":return["grouped-category","number"];case"scatter":case"bubble":return["number","number"];default:return}}p.getLegacyAxisType=M},8889:function(x,p,M){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.validateCreateParams=p.validateUpdateParams=void 0;let A=M(6624),F=M(4237),D=Ie=>ze=>ze==null?!0:Ie(ze),f=Ie=>typeof Ie=="string",v=Ie=>typeof Ie=="boolean",u=Ie=>typeof Ie=="object",s=(Ie,ze)=>Ye=>`AG Grid - unable to update chart as invalid params supplied:  \`${Ie}: ${Ye}\`, expected ${ze}.`,r=Ie=>`${Ie} is not supported in AG Charts Community ('ag-charts-enterprise' hasn't been loaded). See https://www.ag-grid.com/javascript-data-grid/integrated-charts-installation/ for more details.`,d=["doughnut"],g=["type","chartId","chartType","chartThemeName","chartThemeOverrides","unlinkChart"];function m(Ie){return!!(0,F.getSeriesTypeIfExists)(Ie)||(0,F.isComboChart)(Ie)}function b(Ie){return d.includes(Ie)}let w=D(Ie=>{if(m(Ie))return!0;if(b(Ie)){let ze=(0,F.getCanonicalChartType)(Ie);return(0,A._warnOnce)(`The chart type '${Ie}' has been deprecated. Please use '${ze}' instead.`),ze}return!1}),k=D(Ie=>typeof Ie=="object"),R=D(Ie=>typeof Ie=="object"),T=D(Ie=>typeof Ie=="string"||typeof Ie=="function"),z=Ie=>({property:"chartType",validationFn:D(ze=>Ie||!ze||!(0,F.isEnterpriseChartType)(ze)),warnMessage:ze=>r(`The '${ze}' chart type`)}),G=Ie=>({property:"switchCategorySeries",validationFn:D(ze=>{if(!ze||Ie)return!0}),warnMessage:()=>r("'switchCategorySeries' has been ignored as it"),warnIfFixed:!0}),U=()=>[{property:"chartId",validationFn:f,warnMessage:s("chartId","string")},{property:"chartType",validationFn:w,warnMessage:s("chartType","ChartType")},{property:"chartThemeName",validationFn:f,warnMessage:s("chartThemeName","string")},{property:"chartThemeOverrides",validationFn:k,warnMessage:s("chartThemeOverrides","AgChartThemeOverrides")},{property:"unlinkChart",validationFn:v,warnMessage:s("unlinkChart","boolean")}],X=Ie=>[{property:"cellRange",validationFn:R,warnMessage:s("cellRange","ChartParamsCellRange")},{property:"suppressChartRanges",validationFn:v,warnMessage:s("suppressChartRanges","boolean")},{property:"aggFunc",validationFn:T,warnMessage:s("aggFunc","string or IAggFunc")},G(Ie)];function Q(Ie,ze){switch(Ie.type){case"rangeChartUpdate":return le(Ie,ze);case"pivotChartUpdate":return fe(Ie);case"crossFilterChartUpdate":return ye(Ie,ze);default:return(0,A._warnOnce)(`Invalid value supplied for 'type': ${Ie.type}. It must be either 'rangeChartUpdate', 'pivotChartUpdate', or 'crossFilterChartUpdate'.`),!1}}p.validateUpdateParams=Q;function oe(Ie,ze){return ke(Ie,[z(ze),G(ze)])}p.validateCreateParams=oe;function le(Ie,ze){let Ye=[...U(),z(ze),...X(ze),{property:"seriesChartTypes",validationFn:xe=>xe===void 0||Array.isArray(xe)&&xe.every(u),warnMessage:s("seriesChartTypes","Array of SeriesChartType")}];return ke(Ie,Ye,[...g,"cellRange","suppressChartRanges","switchCategorySeries","aggFunc","seriesChartTypes","seriesGroupType"],"UpdateRangeChartParams")}function fe(Ie){let ze=[...U()];return ke(Ie,ze,[...g],"UpdatePivotChartParams")}function ye(Ie,ze){let Ye=[...U(),...X(ze)];return ke(Ie,Ye,[...g,"cellRange","suppressChartRanges","aggFunc"],"UpdateCrossFilterChartParams")}function ke(Ie,ze,Ye,xe){let Te;for(let Ae of ze){let{property:Ne,validationFn:Re,warnMessage:Oe,warnIfFixed:Ve}=Ae;if(Ne in Ie){let Ue=Ie[Ne],Ee=Re(Ue);if(Ee===!0)continue;if(Ee===!1)return(0,A._warnOnce)(Oe(Ue)),!1;Te=Te||pe({},Ie),Te[Ne]=Ee,Ve&&(0,A._warnOnce)(Oe(Ue))}}if(Ye){for(let Ae of Object.keys(Ie))if(!Ye.includes(Ae))return(0,A._warnOnce)(`Unexpected property supplied. ${xe} does not contain: \`${Ae}\`.`),!1}return Te||!0}},3610:function(x,p){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.hexToRGBA=void 0;function M(A,F){let D=parseInt(A.slice(1,3),16),f=parseInt(A.slice(3,5),16),v=parseInt(A.slice(5,7),16);return F?`rgba(${D}, ${f}, ${v}, ${F})`:`rgba(${D}, ${f}, ${v})`}p.hexToRGBA=M},9687:function(x,p){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.deproxy=void 0;function M(A){return A.chart!=null?A.chart:A}p.deproxy=M},2210:function(x,p){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.set=p.get=void 0;function M(F,D,f){if(F==null)return f;let v=D.split("."),u=F;for(;v.length>1;)if(u=u[v.shift()],u==null)return f;let s=u[v[0]];return s!=null?s:f}p.get=M;function A(F,D,f){if(F==null)return;let v=D.split("."),u=F;v.forEach((s,r)=>{u[s]||(u[s]={}),r<v.length-1&&(u=u[s])}),u[v[v.length-1]]=f}p.set=A},4237:function(x,p){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.getFullChartNameTranslationKey=p.canSwitchDirection=p.supportsInvertedCategorySeries=p.getMaxNumSeries=p.getMaxNumCategories=p.isPieChartSeries=p.getSeriesType=p.getSeriesTypeIfExists=p.getCanonicalChartType=p.isHierarchical=p.isRadial=p.isPolar=p.isCartesian=p.isStacked=p.isEnterpriseChartType=p.isComboChart=p.isSeriesType=p.SERIES_GROUP_TYPES=void 0;let M={column:"bar",groupedColumn:"bar",stackedColumn:"bar",normalizedColumn:"bar",bar:"bar",groupedBar:"bar",stackedBar:"bar",normalizedBar:"bar",line:"line",stackedLine:"line",normalizedLine:"line",scatter:"scatter",bubble:"bubble",pie:"pie",donut:"donut",doughnut:"donut",area:"area",stackedArea:"area",normalizedArea:"area",histogram:"histogram",radarLine:"radar-line",radarArea:"radar-area",nightingale:"nightingale",radialColumn:"radial-column",radialBar:"radial-bar",sunburst:"sunburst",rangeBar:"range-bar",rangeArea:"range-area",boxPlot:"box-plot",treemap:"treemap",heatmap:"heatmap",waterfall:"waterfall"},A=new Set(["columnLineCombo","areaColumnCombo","customCombo"]);p.SERIES_GROUP_TYPES=["grouped","stacked","normalized"];let F={area:{isCartesian:!0,canInvert:!0},bar:{isCartesian:!0,canInvert:!0},histogram:{isCartesian:!0},line:{isCartesian:!0,canInvert:!0},pie:{isPie:!0},donut:{isPie:!0,canInvert:!0},scatter:{isCartesian:!0},bubble:{isCartesian:!0},"radial-column":{isPolar:!0,isEnterprise:!0,isRadial:!0,canInvert:!0},"radial-bar":{isPolar:!0,isEnterprise:!0,isRadial:!0,canInvert:!0},"radar-line":{isPolar:!0,isEnterprise:!0,canInvert:!0},"radar-area":{isPolar:!0,isEnterprise:!0,canInvert:!0},nightingale:{isPolar:!0,isEnterprise:!0,canInvert:!0},"range-bar":{isCartesian:!0,isEnterprise:!0,canSwitchDirection:!0},"range-area":{isCartesian:!0,isEnterprise:!0},"box-plot":{isCartesian:!0,isEnterprise:!0,canSwitchDirection:!0},treemap:{isEnterprise:!0,isHierarchical:!0},sunburst:{isEnterprise:!0,isHierarchical:!0},heatmap:{isCartesian:!0,isEnterprise:!0},waterfall:{isCartesian:!0,isEnterprise:!0,canSwitchDirection:!0}};function D(le){return!!F[le]}p.isSeriesType=D;function f(le){return A.has(le)}p.isComboChart=f;function v(le,fe){var ye;return!!((ye=F[le])!=null&&ye[fe])}function u(le){return v(R(le),"isEnterprise")}p.isEnterpriseChartType=u;let s=new Set(["stackedColumn","normalizedColumn","stackedBar","normalizedBar"]);function r(le){return s.has(le)}p.isStacked=r;function d(le){return v(le,"isCartesian")}p.isCartesian=d;function g(le){return v(le,"isPolar")}p.isPolar=g;function m(le){return v(le,"isRadial")}p.isRadial=m;function b(le){return v(le,"isHierarchical")}p.isHierarchical=b;function w(le){return le==="doughnut"?"donut":le}p.getCanonicalChartType=w;function k(le){return M[le]}p.getSeriesTypeIfExists=k;function R(le){var fe;return(fe=k(le))!=null?fe:"line"}p.getSeriesType=R;function T(le){return v(le,"isPie")}p.isPieChartSeries=T;function z(le){return le==="pie"||le==="waterfall"||le==="histogram"}function G(le){return b(R(le))?void 0:1}p.getMaxNumCategories=G;function U(le){return b(R(le))?2:z(le)?1:void 0}p.getMaxNumSeries=U;function X(le){return!f(le)&&v(R(le),"canInvert")}p.supportsInvertedCategorySeries=X;function Q(le){return v(R(le),"canSwitchDirection")}p.canSwitchDirection=Q;function oe(le){switch(le){case"groupedColumn":case"stackedColumn":case"normalizedColumn":case"groupedBar":case"stackedBar":case"normalizedBar":case"stackedLine":case"normalizedLine":case"stackedArea":case"normalizedArea":return`${le}Full`;case"doughnut":return"donut";case"areaColumnCombo":return"AreaColumnCombo";default:return le}}p.getFullChartNameTranslationKey=oe},6476:function(x,p,M){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.heuristicVersionDetection=p.upgradeChartModel=void 0;let A=M(6624),F=M(7205),D=M(2753),f=M(4237),v=!1;function u(Ee){let tt=Ee.version;return Ee.version==null&&(Ee.version=le(Ee)),Ee=fe("23.0.0",Ee,s),Ee=fe("24.0.0",Ee,r),Ee=fe("25.1.0",Ee,d),Ee=fe("26.0.0",Ee,g),Ee=fe("26.1.0",Ee,m),Ee=fe("26.2.0",Ee,b),Ee=fe("28.0.0",Ee,w),Ee=fe("28.2.0",Ee,k),Ee=fe("29.0.0",Ee,R),Ee=fe("29.1.0",Ee,T),Ee=fe("29.2.0",Ee,z),Ee=fe("30.0.0",Ee,G),Ee=fe("31.0.0",Ee,U),Ee=fe("32.0.0",Ee,X),Ee=fe("33.0.0",Ee,Q),Ee=oe(Ee),Ee=fe(F.VERSION,Ee,at=>at),v&&tt!==Ee.version&&console.log("AG Grid: ChartModel migration complete",{model:Ee}),Ee}p.upgradeChartModel=u;function s(Ee){return Ee=Ae("chartOptions.legend.item.marker.type","shape",Ee),Ee=Ae("chartOptions.seriesDefaults.marker.type","shape",Ee),Ee=Ae("chartOptions.legend.padding","spacing",Ee),Ee}function r(Ee){var Xt;Ee=Ne("chartOptions.seriesDefaults.marker.minSize",Ee);let Tt=Ee,{chartType:tt,chartPalette:at,chartOptions:Ft}=Tt,Bt=Ft,{xAxis:ut,yAxis:Mt}=Bt,St=ji(Bt,["xAxis","yAxis"]),ft=ji(Tt,["chartType","chartPalette","chartOptions"]),kt=(0,D.getLegacyAxisType)(tt),Et=kt==null?void 0:kt.map((ii,Ci)=>pe({type:ii},Ci===0?ut:Mt));return pe({chartType:tt,chartThemeName:(Xt={borneo:"ag-default",material:"ag-material",bright:"ag-vivid"}[at])!=null?Xt:"ag-default",chartOptions:et(pe({},St),{axes:Et,xAxis:ut,yAxis:Mt})},ft)}function d(Ee){return Ee=Ae("chartOptions.seriesDefaults.label.minRequiredAngle","minAngle",Ee),Ee}function g(Ee){return Ee=Oe("chartOptions.seriesDefaults.highlightStyle",Ee,Mt=>{var St=Mt,{dimOpacity:at}=St,ut=ji(St,["dimOpacity"]);return pe(pe({},ut),at!=null?{series:{dimOpacity:at}}:{})}),Ee=Ne("chart",Ee),Ee=Ne("chartOptions.seriesDefaults.tooltipClass",Ee),Ee=Ne("chartOptions.seriesDefaults.tooltipTracking",Ee),Ee=Ie("chartOptions.axes[].label.rotation",0,Ee),Ee=Ie("chartOptions.axes[].label.rotation",335,Ee),Ee}function m(Ee){let tt=St=>{var ft=St,{item:at,series:ut}=ft,Mt=ji(ft,["item","series"]);return pe({item:pe(pe({},Mt),at)},ut?{series:ut}:{})};return Ee=Oe("chartOptions.seriesDefaults.highlightStyle",Ee,tt),Ee=Oe("chartOptions.series[].highlightStyle",Ee,tt),Ee}function b(Ee){Ee=xe("chartOptions.seriesDefaults.fill.opacity","chartOptions.seriesDefaults.fillOpacity",Ee),Ee=xe("chartOptions.seriesDefaults.stroke.opacity","chartOptions.seriesDefaults.strokeOpacity",Ee),Ee=xe("chartOptions.seriesDefaults.stroke.width","chartOptions.seriesDefaults.strokeWidth",Ee),Ee=Ne("chartOptions.seriesDefaults.fill",Ee),Ee=Ne("chartOptions.seriesDefaults.stroke",Ee),Ee=Ne("chartOptions.seriesDefaults.callout.colors",Ee),Ee=Ne("chartOptions.xAxis",Ee),Ee=Ne("chartOptions.yAxis",Ee);let Bt=Ee,{chartType:tt,chartOptions:Xt}=Bt,ii=Xt,{axes:at,series:ut,seriesDefaults:Mt}=ii,St=ji(ii,["axes","series","seriesDefaults"]),ft=ji(Bt,["chartType","chartOptions"]),kt=(0,f.getCanonicalChartType)(tt),Et=(0,f.getSeriesType)(kt),Yt=[Et],Tt={};if(!(0,f.isPieChartSeries)(Et)){let Ci={top:{},bottom:{},left:{},right:{}},_i=at.map(ma=>{var Ho=ma,{type:yn}=Ho,Tn=ji(Ho,["type"]);return{[yn]:pe(pe({},Ci),Tn)}}).reduce(Ue,{});D.ALL_AXIS_TYPES.filter(yn=>_i[yn]==null).forEach(yn=>{_i[yn]=pe({},Ci)}),Tt.axes=_i}let Ft=Yt.map(Ci=>({[Ci]:pe(et(pe({},Tt),{series:Mt}),St)})).reduce(Ue,{});return Ee=et(pe({},ft),{chartType:kt,chartOptions:Ft}),Ee}function w(Ee){return Ee=Ne("chartOptions.*.title.padding",Ee),Ee=Ne("chartOptions.*.subtitle.padding",Ee),Ee=Ne("chartOptions.*.axes.*.title.padding",Ee),Ee=ze("chartOptions.*.axes.*.title.enabled",!1,Ee),Ee}function k(Ee){return Ee=Ae("chartOptions.pie.series.callout","calloutLine",Ee),Ee=Ae("chartOptions.pie.series.label","calloutLabel",Ee),Ee=Ae("chartOptions.pie.series.labelKey","sectorLabelKey",Ee),Ee=Ae("chartOptions.pie.series.labelName","sectorLabelName",Ee),Ee=Ae("chartOptions.donut.series.callout","calloutLine",Ee),Ee=Ae("chartOptions.donut.series.label","calloutLabel",Ee),Ee=Ae("chartOptions.donut.series.labelKey","sectorLabelKey",Ee),Ee=Ae("chartOptions.donut.series.labelName","sectorLabelName",Ee),Ee}function R(Ee){return Ee=Te("chartOptions.scatter.series.fill","chartOptions.scatter.series.marker.fill",Ee),Ee=Te("chartOptions.scatter.series.fillOpacity","chartOptions.scatter.series.marker.fillOpacity",Ee),Ee=Te("chartOptions.scatter.series.stroke","chartOptions.scatter.series.marker.stroke",Ee),Ee=Te("chartOptions.scatter.series.strokeOpacity","chartOptions.scatter.series.marker.strokeOpacity",Ee),Ee=Te("chartOptions.scatter.series.strokeWidth","chartOptions.scatter.series.marker.strokeWidth",Ee),Ee=xe("chartOptions.scatter.series.paired","chartOptions.scatter.paired",Ee),Ee}function T(Ee){return Ee=Ne("chartOptions.axes[].tick.count",Ee),Ee}function z(Ee){return Ee=Oe("chartOptions.*.tooltip",Ee,Mt=>{var St=Mt,{tracking:at}=St,ut=ji(St,["tracking"]);var kt,Et,Yt,Tt;let ft=pe({},ut);return at===!1?((kt=ft.position)!=null||(ft.position={type:"pointer"}),(Et=ft.range)!=null||(ft.range="nearest")):at===!0&&((Yt=ft.position)!=null||(ft.position={type:"node"}),(Tt=ft.range)!=null||(ft.range="nearest")),ft}),Ee}function G(Ee){return Ee=Ae("chartOptions.pie.series.labelKey","sectorLabelKey",Ee),Ee=Ae("chartOptions.pie.series.labelName","sectorLabelName",Ee),Ee=T(Ee),Ee=z(Ee),Ee=Ne("chartOptions.*.series.flipXY",Ee),Ee=Ye("chartOptions.common.legend.enabled",!0,Ee),Ee=ze("chartOptions.common.legend.position","right",Ee),Ee}function U(Ee){let tt={"ag-pastel":"ag-sheets","ag-solar":"ag-polychroma"},at=Ae("chartOptions.column","bar",Ee),ut=tt[at.chartThemeName]||at.chartThemeName;return et(pe({},at),{chartThemeName:ut})}function X(Ee){return Ee=Re("chartOptions.*.autoSize",!0,Ee,(tt,at)=>{tt[at]===!0||tt[at]===!1&&(tt.minHeight=600,tt.minWidth=300),delete tt[at]}),Ee}function Q(Ee){return Ee=Ne("chartOptions.*.axes.category.label.format",Ee),Ee=Ne("chartOptions.*.axes.category.crosshair.label.format",Ee),Ee=Ne("chartOptions.*.axes.angle-category.label.format",Ee),Ee=Ne("chartOptions.*.axes.radius-category.label.format",Ee),Ee=Ae("chartOptions.*.axes.*.label.padding","spacing",Ee),Ee=Ae("chartOptions.*.navigator.miniChart.label.padding","spacing",Ee),Ee=Ne("chartOptions.*.axes.*.crossLines.label.className",Ee),Ee=Re("chartOptions.*.axes.*.crossLines.label.position",!0,Ee,(tt,at)=>{typeof tt[at]=="string"&&(tt[at]=tt[at].replace(/([A-Z])/,"-$1").toLowerCase())}),Ee=Ne("chartOptions.bullet",Ee),Ee=Ve("chartOptions.bar.series.label.placement",Ee,{inside:"inside-center",outside:"inside-end"}),Ee=Ve("chartOptions.waterfall.series.item.*.label.placement",Ee,{inside:"inside-center",start:"outside-start",end:"outside-end"}),Ee=Ne("chartOptions.*.navigator.min",Ee),Ee=Ne("chartOptions.*.navigator.max",Ee),Ee=Ne("chartOptions.*.zoom.ratioX",Ee),Ee=Ne("chartOptions.*.zoom.ratioY",Ee),Ee=Ne("chartOptions.*.zoom.rangeX",Ee),Ee=Ne("chartOptions.*.zoom.rangeY",Ee),Ee}function oe(Ee){return Ee=Ne("chartOptions.*.width",Ee),Ee=Ne("chartOptions.*.height",Ee),Ee=ze("chartOptions.*.axes.category.label.autoRotate",!0,Ee),Ee}function le(Ee){var Yt,Tt;let tt=Ee;if(Ee.version!=null)return Ee.version;let at=(Ft,...Bt)=>Object.keys(Ft||{}).some(Xt=>Bt.includes(Xt)),ut=tt.chartOptions,Mt=at(ut,"seriesDefaults")?ut==null?void 0:ut.seriesDefaults:ut==null?void 0:ut[Object.keys(ut)[0]],St={"27.0.0":at(tt,"seriesChartTypes"),"26.2.0":!at(ut,"seriesDefaults"),"26.1.0":at(Mt==null?void 0:Mt.highlightStyle,"item"),"26.0.0":at(Mt==null?void 0:Mt.highlightStyle,"series"),"25.1.0":at(Mt==null?void 0:Mt.label,"minAngle"),"25.0.0":at(tt,"modelType","aggFunc","unlinkChart","suppressChartRanges")||at(Mt,"lineDash","lineDashOffset"),"24.0.0":at(tt,"chartThemeName","chart")||at(ut,"series"),"23.2.0":at(ut,"navigator"),"23.0.0":at((Tt=(Yt=ut==null?void 0:ut.legend)==null?void 0:Yt.item)==null?void 0:Tt.marker,"shape"),"22.1.0":at(tt,"chartPalette","chartType")},ft="27.1.0",kt=Object.entries(St).filter(([Ft,Bt])=>Bt);v&&console.log("AG Grid: ChartModel migration",{heuristicVersionCandidates:kt});let[Et=ft]=kt[0];return v&&console.log("AG Grid: ChartModel migration",{heuristicVersion:Et}),Et}p.heuristicVersionDetection=le;function fe(Ee,tt,at){if(ke(Ee)>ke(tt.version)){v&&console.log("AG Grid: ChartModel migration",{migratingTo:Ee});let ut=at(tt);return ut.version=Ee,v&&console.log("AG Grid: ChartModel migration",{migratedTo:Ee,result:ut}),ut}return tt}function ye(Ee){let tt=Ee.includes("-beta")?Ee.replace(/-beta.*/,""):Ee,at=typeof tt=="string"?tt.split(".").map(ut=>Number(ut)):[];if(at.length!==3||at.some(ut=>isNaN(ut)))throw new Error((0,A._errMsg)(253,{version:tt}));return{major:at[0],minor:at[1],patch:at[2]}}function ke(Ee){let{major:tt,minor:at,patch:ut}=ye(Ee);return tt*1e4+at*100+ut}function Ie(Ee,tt,at){return Re(Ee,!0,at,(ut,Mt)=>{ut[Mt]===tt&&delete ut[Mt]})}function ze(Ee,tt,at){return Re(Ee,!1,at,(ut,Mt)=>{ut[Mt]==null&&(ut[Mt]=tt)})}function Ye(Ee,tt,at){var St;typeof Ee=="string"&&(Ee=Ee.split("."));let ut=Ee[0];return Ee.length>1&&(at[ut]=Ye(Ee.slice(1),tt,(St=at[ut])!=null?St:{})),Object.keys(at).includes(ut)||(at[ut]=tt),at}function xe(Ee,tt,at){let ut,Mt=!1;return at=Re(Ee,!0,at,(St,ft)=>{Mt=!0,ut=St[ft],delete St[ft]}),Mt?Re(tt,!1,at,(St,ft)=>{St[ft]=ut}):at}function Te(Ee,tt,at){let ut,Mt=!1;return at=Re(Ee,!0,at,(St,ft)=>{Mt=!0,ut=St[ft],delete St[ft]}),Mt?Re(tt,!1,at,(St,ft)=>{St[ft]===void 0&&(St[ft]=ut)}):at}function Ae(Ee,tt,at){return Re(Ee,!0,at,(ut,Mt)=>{ut[tt]=ut[Mt],delete ut[Mt]})}function Ne(Ee,tt){return Re(Ee,!0,tt,(at,ut)=>delete at[ut])}function Re(Ee,tt,at,ut){let Mt=Ee instanceof Array?Ee:Ee.split("."),St=Mt.slice(0,Mt.length-1),ft=Mt[Mt.length-1];return Oe(St,at,kt=>{let Et=Object.keys(kt).includes(ft);if(tt&&!Et)return kt;let Yt=pe({},kt);return ut(Yt,ft),Yt})}function Oe(Ee,tt,at){let ut=Ee instanceof Array?Ee:Ee.split(".");if(tt=pe({},tt),ut.length===0)return at(tt);if(ut[0].startsWith("{")){let Mt=ut[0].substring(1,ut[0].lastIndexOf("}")).split(",");for(let St of Mt)tt[St]!=null&&(tt[St]=Oe(ut.slice(1),tt[St],at))}else if(ut[0].endsWith("[]")){let Mt=ut[0].substring(0,Ee[0].indexOf("["));tt[Mt]instanceof Array&&(tt[Mt]=tt[Mt].map(St=>Oe(ut.slice(1),St,at)))}else if(ut[0]==="*")for(let Mt of Object.keys(tt))tt[Mt]=Oe(ut.slice(1),tt[Mt],at);else tt[ut[0]]!=null&&(tt[ut[0]]=Oe(ut.slice(1),tt[ut[0]],at));return tt}function Ve(Ee,tt,at){return Re(Ee,!0,tt,(ut,Mt)=>{var St;typeof ut[Mt]=="string"&&(ut[Mt]=(St=at[Mt])!=null?St:Mt)})}let Ue=(Ee,tt)=>pe(pe({},Ee),tt)},100:function(x,p,M){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.ChartService=void 0;let A=M(6624),F=M(7205),D=M(7760),f=M(8889),v=M(4237),u=M(6476);class s extends A.BeanStub{constructor(){super(...arguments),this.beanName="chartSvc",this.activeCharts=new Set,this.activeChartComps=new Set,this.crossFilteringContext={lastSelectedChartId:""},this.isEnterprise=()=>this.agChartsExports.isEnterprise}wireBeans(d){this.visibleCols=d.visibleCols,this.rangeSvc=d.rangeSvc,this.agChartsExports=d.agChartsExports}updateChart(d){if(this.activeChartComps.size===0){(0,A._warn)(124);return}let g=[...this.activeChartComps].find(m=>m.getChartId()===d.chartId);if(!g){(0,A._warn)(125,{chartId:d.chartId});return}g.update(d)}getChartModels(){let d=[],g=m=>et(pe({},m),{version:F.VERSION});return this.activeChartComps.forEach(m=>d.push(g(m.getChartModel()))),d}getChartRef(d){let g;return this.activeCharts.forEach(m=>{m.chartId===d&&(g=m)}),g}getChartComp(d){let g;return this.activeChartComps.forEach(m=>{m.getChartId()===d&&(g=m)}),g}getChartImageDataURL(d){let g;return this.activeChartComps.forEach(m=>{m.getChartId()===d.chartId&&(g=m.getChartImageDataURL(d.fileFormat))}),g}downloadChart(d){let g=Array.from(this.activeChartComps).find(m=>m.getChartId()===d.chartId);g==null||g.downloadChart(d.dimensions,d.fileName,d.fileFormat)}openChartToolPanel(d){let g=Array.from(this.activeChartComps).find(m=>m.getChartId()===d.chartId);g==null||g.openChartToolPanel(d.panel)}closeChartToolPanel(d){let g=Array.from(this.activeChartComps).find(m=>m.getChartId()===d);g==null||g.closeChartToolPanel()}createChartFromCurrentRange(d="groupedColumn",g){let m=this.getSelectedRange();return this.createChart({cellRange:m,chartType:d,focusDialogOnOpen:!g})}restoreChart(d,g){if(!d){(0,A._warn)(126);return}d.version!==F.VERSION&&(d=(0,u.upgradeChartModel)(d));let m,b,w,k;if(d.modelType==="pivot"?(this.gos.updateGridOptions({options:{pivotMode:!0},source:"pivotChart"}),m=this.createCellRange(void 0,!0),b=!0,w=!0):(m=this.createCellRange(d.cellRange),k=d.chartPalette,w=d.suppressChartRanges),!!m)return this.createChart(et(pe({},d),{cellRange:m,pivotChart:b,suppressChartRanges:w,chartContainer:g,chartOptionsToRestore:d.chartOptions,chartPaletteToRestore:k}))}createRangeChart(d,g){let m=this.createCellRange(d.cellRange);if(m)return this.createChart(et(pe({},d),{cellRange:m,focusDialogOnOpen:!g}))}createPivotChart(d,g){this.gos.updateGridOptions({options:{pivotMode:!0},source:"pivotChart"});let m=this.createCellRange(void 0,!0);if(m)return this.createChart(et(pe({},d),{cellRange:m,pivotChart:!0,suppressChartRanges:!0,focusDialogOnOpen:!g}))}createCrossFilterChart(d,g){let m=this.createCellRange(d.cellRange);if(!m)return;let w=typeof d.suppressChartRanges!="undefined"&&d.suppressChartRanges!==null?d.suppressChartRanges:!0;return this.createChart(et(pe({},d),{cellRange:m,suppressChartRanges:w,crossFiltering:!0,focusDialogOnOpen:!g}))}createChart(d){let g=(0,f.validateCreateParams)(d,this.agChartsExports.isEnterprise);if(!g)return;d=g===!0?d:g;let{chartType:m,chartContainer:b}=d,w=this.gos.getCallback("createChartContainer"),k=et(pe({},d),{chartId:this.generateId(),chartType:(0,v.getCanonicalChartType)(m),insideDialog:!(b||w),crossFilteringContext:this.crossFilteringContext,crossFilteringResetCallback:()=>this.activeChartComps.forEach(z=>z.crossFilteringReset())}),R=new D.GridChartComp(k);this.createBean(R);let T=this.createChartRef(R);return b?b.appendChild(T.chartElement):w?w(T):R.addEventListener("destroyed",()=>{this.activeChartComps.delete(R),this.activeCharts.delete(T)}),T}createChartRef(d){let g={destroyChart:()=>{this.activeCharts.has(g)&&(this.destroyBean(d),this.activeChartComps.delete(d),this.activeCharts.delete(g))},focusChart:()=>{(0,A._focusInto)(d.getGui())},chartElement:d.getGui(),chart:d.getUnderlyingChart(),chartId:d.getChartModel().chartId};return this.activeCharts.add(g),this.activeChartComps.add(d),g}getSelectedRange(){var g,m;let d=(m=(g=this.rangeSvc)==null?void 0:g.getCellRanges())!=null?m:[];return d.length>0?d[0]:{columns:[]}}generateId(){return`id-${Math.random().toString(36).substring(2,18)}`}createCellRange(d,g){var w;let m=g?{rowStartIndex:null,rowStartPinned:void 0,rowEndIndex:null,rowEndPinned:void 0,columns:this.visibleCols.allCols.map(k=>k.getColId())}:d,b=m&&((w=this.rangeSvc)==null?void 0:w.createPartialCellRangeFromRangeParams(m,!0));return b||(0,A._warn)(127,{allRange:g}),b}destroy(){this.activeCharts.forEach(d=>d.destroyChart()),super.destroy()}}p.ChartService=s},4604:function(x,p){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.restoreChart=p.updateChart=p.createCrossFilterChart=p.createPivotChart=p.createRangeChart=p.closeChartToolPanel=p.openChartToolPanel=p.downloadChart=p.getChartImageDataURL=p.getChartRef=p.getChartModels=void 0;function M(m){return m.frameworkOverrides.wrapIncoming(()=>{var b;return(b=m.chartSvc)==null?void 0:b.getChartModels()})}p.getChartModels=M;function A(m,b){return m.frameworkOverrides.wrapIncoming(()=>{var w;return(w=m.chartSvc)==null?void 0:w.getChartRef(b)})}p.getChartRef=A;function F(m,b){return m.frameworkOverrides.wrapIncoming(()=>{var w;return(w=m.chartSvc)==null?void 0:w.getChartImageDataURL(b)})}p.getChartImageDataURL=F;function D(m,b){return m.frameworkOverrides.wrapIncoming(()=>{var w;return(w=m.chartSvc)==null?void 0:w.downloadChart(b)})}p.downloadChart=D;function f(m,b){return m.frameworkOverrides.wrapIncoming(()=>{var w;return(w=m.chartSvc)==null?void 0:w.openChartToolPanel(b)})}p.openChartToolPanel=f;function v(m,b){return m.frameworkOverrides.wrapIncoming(()=>{var w;return(w=m.chartSvc)==null?void 0:w.closeChartToolPanel(b.chartId)})}p.closeChartToolPanel=v;function u(m,b){return m.frameworkOverrides.wrapIncoming(()=>{var w;return(w=m.chartSvc)==null?void 0:w.createRangeChart(b,!0)})}p.createRangeChart=u;function s(m,b){return m.frameworkOverrides.wrapIncoming(()=>{var w;return(w=m.chartSvc)==null?void 0:w.createPivotChart(b,!0)})}p.createPivotChart=s;function r(m,b){return m.frameworkOverrides.wrapIncoming(()=>{var w;return(w=m.chartSvc)==null?void 0:w.createCrossFilterChart(b,!0)})}p.createCrossFilterChart=r;function d(m,b){return m.frameworkOverrides.wrapIncoming(()=>{var w;return(w=m.chartSvc)==null?void 0:w.updateChart(b)})}p.updateChart=d;function g(m,b,w){return m.frameworkOverrides.wrapIncoming(()=>{var k;return(k=m.chartSvc)==null?void 0:k.restoreChart(b,w)})}p.restoreChart=g},4806:function(x,p){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.integratedChartsModuleCSS=void 0,p.integratedChartsModuleCSS=`.ag-chart{display:flex;height:100%;position:relative;width:100%}.ag-chart-components-wrapper{display:flex}.ag-chart-canvas-wrapper,.ag-chart-components-wrapper{flex:1 1 auto;position:relative}.ag-chart-menu{background:var(--ag-background-color);background-color:color-mix(in srgb,transparent,var(--ag-background-color) 30%);border-radius:var(--ag-border-radius);display:flex;flex-direction:row;gap:20px;padding:4px 2px;position:absolute;top:8px;width:auto;--ag-icon-size:20px}:where(.ag-ltr) .ag-chart-menu{justify-content:right;right:calc(var(--ag-cell-horizontal-padding) + var(--ag-spacing) - 4px)}:where(.ag-rtl) .ag-chart-menu{justify-content:left;left:calc(var(--ag-cell-horizontal-padding) + var(--ag-spacing) - 4px)}:where(.ag-chart) .ag-chart-menu{display:none}:where(.ag-chart-menu-hidden:hover) .ag-chart-menu{display:block}.ag-chart-docked-container{min-width:var(--ag-chart-menu-panel-width);position:relative}:where(.ag-chart-menu-hidden)~.ag-chart-docked-container{display:none}.ag-chart-tabbed-menu{display:flex;flex-direction:column;height:100%;overflow:hidden;width:100%}.ag-chart-tabbed-menu-header{cursor:default;flex:none;-webkit-user-select:none;-moz-user-select:none;user-select:none}.ag-chart-tabbed-menu-body{align-items:stretch;display:flex;flex:1 1 auto;overflow:hidden;position:relative;&:after{background:linear-gradient(var(--ag-background-color),transparent);content:"";display:block;height:16px;left:0;position:absolute;right:0;top:0}}.ag-chart-tab{overflow:hidden;overflow-y:auto;width:100%}.ag-chart-settings{overflow-x:hidden}.ag-chart-settings-wrapper{display:flex;flex-direction:column;height:100%;overflow:hidden;position:relative;width:100%}.ag-chart-settings-nav-bar{align-items:center;border-top:1px solid var(--ag-border-color);display:flex;height:30px;padding:0 10px;-webkit-user-select:none;-moz-user-select:none;user-select:none;width:100%}.ag-chart-settings-card-selector{align-items:center;display:flex;flex:1 1 auto;height:100%;justify-content:space-around;padding:0 10px}.ag-chart-settings-card-item{background-color:var(--ag-foreground-color);border-radius:4px;cursor:pointer;height:8px;position:relative;width:8px;&.ag-not-selected{opacity:.2}&:before{background-color:transparent;content:" ";display:block;height:20px;left:50%;margin-left:-10px;margin-top:-10px;position:absolute;top:50%;width:20px}&.ag-selected{background-color:var(--ag-accent-color)}}.ag-chart-settings-next,.ag-chart-settings-prev{flex:none;position:relative;&:focus-within{border-radius:1px;box-shadow:var(--ag-focus-shadow)}}.ag-chart-settings-next-button,.ag-chart-settings-prev-button{cursor:pointer;height:100%;left:0;opacity:0;position:absolute;top:0;width:100%}.ag-chart-settings-mini-charts-container{flex:1 1 auto;overflow:hidden auto;position:relative}.ag-chart-settings-mini-wrapper{display:flex;flex-direction:column;left:0;min-height:100%;overflow:hidden;padding-bottom:var(--ag-widget-container-vertical-padding);position:absolute;top:0;width:100%;&.ag-animating{transition:left .3s;transition-timing-function:ease-in-out}}.ag-chart-mini-thumbnail{border:1px solid var(--ag-border-color);border-radius:5px;cursor:pointer;&.ag-selected{border-color:var(--ag-accent-color);border-width:2px}&:focus-visible{border-color:var(--ag-accent-color);box-shadow:var(--ag-focus-shadow)}}.ag-chart-mini-thumbnail-canvas{display:block}.ag-chart-advanced-settings-wrapper,.ag-chart-data-wrapper,.ag-chart-format-wrapper{display:flex;flex-direction:column;padding-bottom:16px;position:relative;-webkit-user-select:none;-moz-user-select:none;user-select:none}.ag-chart-advanced-settings-wrapper,.ag-chart-data-wrapper{height:100%;overflow-y:auto}.ag-chart-advanced-settings{background-color:var(--ag-chrome-background-color)}.ag-chart-advanced-settings,.ag-chart-advanced-settings-wrapper{width:100%}.ag-chart-advanced-settings-wrapper{padding-bottom:0}.ag-chart-advanced-settings-section{border-bottom:1px solid var(--ag-border-color);display:flex;margin:0;padding-bottom:var(--ag-widget-container-vertical-padding);padding-top:var(--ag-widget-container-vertical-padding)}.ag-chart-empty-text{align-items:center;background-color:var(--ag-background-color);display:flex;height:100%;justify-content:center;top:0;width:100%}.ag-charts-font-size-color{align-self:stretch;display:flex;justify-content:space-between}.ag-charts-data-group-item{padding-bottom:var(--ag-widget-container-vertical-padding);position:relative}.ag-charts-data-group-item:where(:not(:last-child)){margin-bottom:var(--ag-spacing)}.ag-chart-menu-icon{border-radius:var(--ag-border-radius);cursor:pointer;margin:2px 0;opacity:.8;&:hover{opacity:1}}.ag-chart-menu-toolbar-button{background-color:unset;border:0;border-radius:1px;padding:0 2px}.ag-chart-data-column-drag-handle{margin-left:var(--ag-spacing)}.ag-charts-advanced-settings-top-level-group-title-bar{background-color:unset;position:relative}.ag-charts-data-group-container{padding:calc(var(--ag-widget-container-vertical-padding)*.5) var(--ag-widget-container-horizontal-padding)}.ag-charts-data-group-item:where(:not(.ag-charts-format-sub-level-group,.ag-pill-select,.ag-select)){height:var(--ag-list-item-height)}.ag-charts-data-group-item:where(.ag-picker-field){margin-top:var(--ag-spacing)}.ag-charts-advanced-settings-top-level-group-container,.ag-charts-format-top-level-group-container{margin-left:calc(var(--ag-spacing)*2);padding:var(--ag-spacing)}.ag-charts-advanced-settings-top-level-group-item,.ag-charts-format-top-level-group-item{margin:var(--ag-spacing) 0}.ag-charts-format-sub-level-group-container{display:flex;flex-direction:column;padding:var(--ag-widget-vertical-spacing) 0}.ag-charts-settings-group-container{display:grid;grid-template-columns:60px 1fr 60px 1fr 60px;padding:var(--ag-spacing);row-gap:8px;:where(.ag-chart-mini-thumbnail:nth-child(3n+1)){grid-column:1}:where(.ag-chart-mini-thumbnail:nth-child(3n+2)){grid-column:3}:where(.ag-chart-mini-thumbnail:nth-child(3n+3)){grid-column:5}}.ag-chart-data-section,.ag-chart-format-section{display:flex;margin:0;:where(.ag-label:not(.ag-group-title-bar)){color:var(--ag-chart-menu-label-color)}:where(.ag-label-align-top .ag-label){margin-bottom:var(--ag-widget-vertical-spacing);margin-top:calc(var(--ag-widget-vertical-spacing)*.5)}:where(.ag-slider.ag-label-align-top .ag-label){margin-bottom:0}:where(label){display:inline-block}}.ag-chart-menu-panel{--ag-panel-background-color:var(--ag-chrome-background-color)}:where(.ag-ltr) .ag-chart-menu-panel{border-left:1px solid var(--ag-border-color)}:where(.ag-rtl) .ag-chart-menu-panel{border-right:1px solid var(--ag-border-color)}.ag-charts-data-group-title-bar,.ag-charts-format-top-level-group-title-bar,.ag-charts-settings-group-container,.ag-charts-settings-group-title-bar{border-top:none;font-weight:500;padding:0 calc(var(--ag-spacing)*1.5)}.ag-charts-format-sub-level-group-title-bar{background:none;font-weight:500;padding:var(--ag-widget-vertical-spacing) 0}.ag-chart-data-wrapper,.ag-chart-format-wrapper,.ag-charts-data-group-container,.ag-charts-data-group-title-bar,.ag-charts-format-sub-level-group,.ag-charts-format-sub-level-group-container>*,.ag-charts-format-sub-level-group-item:last-child,.ag-charts-format-top-level-group,.ag-charts-format-top-level-group-item,.ag-charts-format-top-level-group-title-bar,.ag-charts-settings-group-container,.ag-charts-settings-group-title-bar,:where(.ag-charts-format-top-level-group) .ag-charts-format-top-level-group-container{margin:0;padding:0}.ag-charts-data-group-title-bar,.ag-charts-format-top-level-group-title-bar,.ag-charts-settings-group-title-bar{padding:var(--ag-widget-container-vertical-padding) var(--ag-widget-container-horizontal-padding);position:relative}.ag-charts-data-group,.ag-charts-format-top-level-group{border-top:1px solid var(--ag-border-color)}:where(.ag-charts-data-group) .ag-charts-data-group-container,:where(.ag-charts-format-top-level-group) .ag-charts-format-top-level-group-container,:where(.ag-charts-settings-group) .ag-charts-settings-group-container{padding:0 var(--ag-widget-container-horizontal-padding)}.ag-charts-format-sub-level-group-container>*,.ag-charts-format-sub-level-no-header-group-container>*,.ag-charts-format-top-level-group-container>*{margin-bottom:var(--ag-widget-vertical-spacing)}.ag-charts-advanced-settings-top-level-group-container{margin:0}:where(.ag-charts-advanced-settings-top-level-group){.ag-charts-advanced-settings-top-level-group-container,.ag-charts-advanced-settings-top-level-group-title-bar{padding:0 var(--ag-widget-container-horizontal-padding)}}.ag-charts-advanced-settings-top-level-group-item{margin-bottom:0;margin-top:calc(var(--ag-widget-vertical-spacing)*2)}.ag-chart-settings-card-item.ag-not-selected:hover{opacity:.35}.ag-angle-select{align-items:center;display:flex}.ag-angle-select-wrapper{display:flex}.ag-angle-select-parent-circle{background-color:var(--ag-background-color);border:1px solid;border-color:var(--ag-border-color);border-radius:12px;display:block;height:24px;position:relative;width:24px}.ag-angle-select-child-circle{background-color:var(--ag-foreground-color);border-radius:3px;height:6px;left:12px;margin-left:-3px;margin-top:-4px;position:absolute;top:4px;width:6px}.ag-slider-wrapper{display:flex;:where(.ag-input-field){flex:1 1 auto}}.ag-color-panel{display:flex;flex-direction:column;padding:var(--ag-spacing);text-align:center;width:100%}.ag-spectrum-color{cursor:default;flex:1 1 auto;overflow:visible;position:relative}.ag-spectrum-fill{inset:0;position:absolute}.ag-spectrum-val{background-image:linear-gradient(0deg,#000,hsla(20,42%,65%,0));cursor:pointer}.ag-spectrum-dragger{background:#000;border:3px solid #fff;border-radius:18px;box-shadow:0 0 2px 0 rgba(0,0,0,.24);cursor:pointer;height:18px;pointer-events:none;position:absolute;width:18px}.ag-spectrum-alpha,.ag-spectrum-hue{cursor:default}.ag-spectrum-hue-background{background:linear-gradient(270deg,red 3%,#ff0 17%,#0f0 33%,#0ff 50%,#00f 67%,#f0f 83%,red);height:100%;width:100%}.ag-spectrum-alpha-background{background:linear-gradient(to right,var(--ag-internal-spectrum-alpha-color-from),var(--ag-internal-spectrum-alpha-color-to)),url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="4" height="4"><rect x="0" y="0" width="4" height="4" fill="%23fff"/><path d="M0 0H2V4H4V2H0Z" fill="%23b2b2b2"/></svg>') 0 0 /4px 4px;height:100%;width:100%}.ag-spectrum-tool{border-radius:2px;cursor:pointer;height:11px;margin-bottom:10px;position:relative}.ag-spectrum-slider{border:2px solid #fff;border-radius:13px;box-shadow:0 1px 4px 0 rgba(0,0,0,.37);height:13px;margin-top:-12px;pointer-events:none;position:absolute;width:13px}:where(.ag-spectrum-alpha) .ag-spectrum-slider{background:linear-gradient(to bottom,var(--ag-internal-spectrum-alpha-color),var(--ag-internal-spectrum-alpha-color)) var(--ag-background-color)}.ag-recent-colors{display:flex;gap:6px;margin-bottom:2px;margin-left:var(--ag-spacing);margin-right:var(--ag-spacing)}.ag-recent-color{border:1px solid var(--ag-border-color);cursor:pointer}.ag-angle-select[disabled]{opacity:.5;pointer-events:none}:where(.ag-ltr) .ag-angle-select-field,:where(.ag-ltr) .ag-slider-field{margin-right:calc(var(--ag-spacing)*2)}:where(.ag-rtl) .ag-angle-select-field,:where(.ag-rtl) .ag-slider-field{margin-left:calc(var(--ag-spacing)*2)}.ag-color-dialog{border-radius:5px}:where(.ag-color-picker){.ag-picker-field-wrapper{padding-left:var(--ag-spacing);padding-right:var(--ag-spacing)}.ag-picker-field-display{align-items:center;display:flex;flex-direction:row;min-height:var(--ag-list-item-height)}}:where(.ag-ltr) .ag-color-picker-color,:where(.ag-ltr) .ag-color-picker-value{margin-right:var(--ag-spacing)}:where(.ag-rtl) .ag-color-picker-color,:where(.ag-rtl) .ag-color-picker-value{margin-left:var(--ag-spacing)}.ag-spectrum-tools{padding-bottom:0;padding-left:0;padding-right:0}.ag-spectrum-alpha-background,.ag-spectrum-hue-background{border-radius:2px}.ag-color-input-color,.ag-color-picker-color,.ag-recent-color{border-radius:4px}.ag-spectrum-sat{background-image:linear-gradient(90deg,#fff,hsla(20,42%,65%,0))}.ag-recent-color,.ag-spectrum-color,.ag-spectrum-slider{&:where(:not(:disabled,[readonly])):focus-visible{box-shadow:var(--ag-focus-shadow)}}.ag-color-input-color,.ag-color-picker-color{border:1px solid var(--ag-border-color);border-radius:2px;height:var(--ag-icon-size);width:var(--ag-icon-size)}:where(.ag-color-input){.ag-color-input-color{position:absolute}}:where(.ag-ltr) :where(.ag-color-input){.ag-input-field-input{padding-left:calc(var(--ag-icon-size) + var(--ag-spacing)*2)}.ag-color-input-color{margin-left:var(--ag-spacing)}}:where(.ag-rtl) :where(.ag-color-input){.ag-input-field-input{padding-right:calc(var(--ag-icon-size) + var(--ag-spacing)*2)}.ag-color-input-color{margin-right:var(--ag-spacing)}}.ag-range-field{align-items:center;display:flex;:where(.ag-input-wrapper){height:100%}}.ag-range-field-input{-webkit-appearance:none;-moz-appearance:none;appearance:none;background:none;height:100%;overflow:visible;padding:0;width:100%;&:disabled{opacity:.5}}.ag-range-field-input{&::-webkit-slider-runnable-track{background-color:var(--ag-border-color);border-radius:1.5px;height:3px;margin:0;padding:0;width:100%}&::-webkit-slider-thumb{-webkit-appearance:none;appearance:none;background-color:var(--ag-background-color);border:1px solid var(--ag-border-color);border-radius:100%;height:var(--ag-icon-size);margin:0;padding:0;transform:translateY(calc(var(--ag-icon-size)*-.5 + 1.5px));width:var(--ag-icon-size)}&:focus::-webkit-slider-thumb{border-color:var(--ag-accent-color);box-shadow:var(--ag-focus-shadow)}&:active::-webkit-slider-runnable-track{background-color:var(--ag-accent-color)}}.ag-range-field-input{&::-moz-range-track{background-color:var(--ag-border-color);border-radius:1.5px;height:3px;margin:0;padding:0;width:100%}&::-moz-ag-range-thumb{-moz-appearance:none;appearance:none;background-color:var(--ag-background-color);border:1px solid var(--ag-border-color);border-radius:100%;height:var(--ag-icon-size);margin:0;padding:0;transform:translateY(calc(var(--ag-icon-size)*-.5 + 1.5px));width:var(--ag-icon-size)}&:focus::-moz-ag-range-thumb{border-color:var(--ag-accent-color);box-shadow:var(--ag-focus-shadow)}&:active::-moz-ag-range-track{background-color:var(--ag-accent-color)}}`},1527:function(x,p,M){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.IntegratedChartsModule=p.GridChartsModule=void 0;let A=M(6624),F=M(9206),D=M(6565),f=M(266),v=M(7205),u=M(3375),s=M(2459),r=M(7879),d=M(6353),g=M(6292),m=M(8769),b=M(7492),w=M(93),k=M(100),R=M(4604),T=M(4806),z=M(3504),G={linked:"linked",unlinked:"unlinked",chartsMenu:"menu-alt",chartsDownload:"save",chartsMenuEdit:"chart",chartsMenuAdvancedSettings:"settings",chartsMenuAdd:"plus",chartsColorPicker:"small-down",chartsThemePrevious:"previous",chartsThemeNext:"next"},U={getChartModels:R.getChartModels,getChartRef:R.getChartRef,getChartImageDataURL:R.getChartImageDataURL,downloadChart:R.downloadChart,openChartToolPanel:R.openChartToolPanel,closeChartToolPanel:R.closeChartToolPanel,createRangeChart:R.createRangeChart,createPivotChart:R.createPivotChart,createCrossFilterChart:R.createCrossFilterChart,updateChart:R.updateChart,restoreChart:R.restoreChart},X=[f.CellSelectionModule,F.EnterpriseCoreModule,A._SharedDragAndDropModule,A._PopupModule,u.MenuItemModule],Q="IntegratedCharts";p.GridChartsModule={moduleName:"GridCharts",version:v.VERSION,dependsOn:X,validate:()=>({isValid:!1,message:`AG Grid: As of v33, the "GridChartsModule" has been deprecated. Please use "IntegratedChartsModule.with(...)" instead.
 ${(0,A._preInitErrMsg)(257)}`})},p.IntegratedChartsModule={moduleName:Q,version:v.VERSION,dependsOn:X,validate:()=>({isValid:!1,message:(0,A._preInitErrMsg)(257)}),with:oe=>{var le;if(oe.setup(),(le=oe.setGridContext)==null||le.call(oe,!0),oe.isEnterprise&&oe.setLicenseKey){let fe={setLicenseKey:oe.setLicenseKey};D.LicenseManager.setChartsLicenseManager(fe)}return{moduleName:Q,version:v.VERSION,icons:G,apiFunctions:U,dependsOn:X,css:[T.integratedChartsModuleCSS],validate:()=>(0,z.validGridChartsVersion)({gridVersion:v.VERSION,chartsVersion:oe.VERSION}),beans:[s.AgChartsExports.bind(null,oe),k.ChartService,w.ChartTranslationService,m.ChartCrossFilterService,g.ChartMenuListFactory,b.ChartMenuService,r.EnterpriseChartProxyFactory,d.AdvancedSettingsMenuFactory]}}}},3504:function(x,p){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.validGridChartsVersion=p.validGridChartsVersionErrorMessage=p.gridChartVersion=void 0;let M=28,A=6;function F(s){return s&&s.match(/\d+\.\d+\.\d+/)}function D({gridMajorVersion:s,chartsMajorVersion:r}){let d=parseInt(s,10),g=parseInt(r,10),m=d-M,b=g-A,w=m>=0;return m===b&&w}function f(s){if(!s||!F(s))return;let[r,d]=s.split(".")||[],g=`${r}.${d}.x`,b=parseInt(r,10)-M+A;if(b<0)return;let k=`${b}.${d}.x`;return{gridMajorMinor:g,chartsMajorMinor:k}}p.gridChartVersion=f;function v({type:s,gridVersion:r,chartsVersion:d}){let g="AG Grid: AG Grid version is incompatible. Please see https://www.ag-grid.com/javascript-data-grid/modules/ for more information.";if(!r)return g;let m=f(r);if(!m)return g;let{gridMajorMinor:b,chartsMajorMinor:w}=m;return s==="incompatible"?`AG Grid version ${r} and AG Charts version ${d} is not supported. AG Grid version ${b} should be used with AG Chart ${w}. Please see https://www.ag-grid.com/javascript-data-grid/modules/ for more information.`:s==="invalidCharts"?`AG Grid version ${b} should be used with AG Chart ${w} not ${d}. Please see https://www.ag-grid.com/javascript-data-grid/modules/ for more information.`:g}p.validGridChartsVersionErrorMessage=v;function u({gridVersion:s,chartsVersion:r}){if(!F(r))return{isValid:!1,message:v({type:"invalidCharts",gridVersion:s,chartsVersion:r})};if(!F(s))return{isValid:!1,message:v({type:"invalidGrid",gridVersion:s,chartsVersion:r})};let[d,g]=s.split(".")||[],[m,b,w]=r.split(".")||[],k=D({gridMajorVersion:d,chartsMajorVersion:m});return k&&g===b||w.includes("beta")?{isValid:!0}:!k||g!==b?{isValid:!1,message:v({type:"incompatible",gridVersion:s,chartsVersion:r})}:{isValid:!1,message:v({type:"invalid",gridVersion:s,chartsVersion:r})}}p.validGridChartsVersion=u},1750:function(x,p,M){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.AgAngleSelect=void 0;let A=M(6624);class F extends A.AgAbstractLabel{wireBeans(f){this.dragSvc=f.dragSvc}constructor(f){super(f,`<div class="ag-angle-select">
            <div data-ref="eLabel"></div>
            <div class="ag-wrapper ag-angle-select-wrapper">
                <div class="ag-angle-select-field">
                    <div data-ref="eParentCircle" class="ag-angle-select-parent-circle">
                        <div data-ref="eChildCircle" class="ag-angle-select-child-circle"></div>
                    </div>
                </div>
                <ag-input-number-field data-ref="eAngleValue"></ag-input-number-field>
            </div>
        </div>`,[A.AgInputNumberFieldSelector]),this.eLabel=A.RefPlaceholder,this.eParentCircle=A.RefPlaceholder,this.eChildCircle=A.RefPlaceholder,this.eAngleValue=A.RefPlaceholder,this.radius=0,this.offsetX=0,this.offsetY=0}postConstruct(){var u;super.postConstruct();let{value:f,onValueChange:v}=this.config;f!=null&&this.setValue(f,void 0,!0),v!=null&&this.onValueChange(v),this.dragListener={eElement:this.eParentCircle,dragStartPixels:0,onDragStart:()=>{this.parentCircleRect=this.eParentCircle.getBoundingClientRect()},onDragging:s=>this.calculateAngleDrag(s),onDragStop:()=>{}},(u=this.dragSvc)==null||u.addDragSource(this.dragListener),this.eAngleValue.setLabel("").setLabelWidth(5).setInputWidth(45).setMin(0).setMax(360).setValue(`${this.degrees}`).onValueChange(s=>{(s==null||s==="")&&(s="0"),s=this.eAngleValue.normalizeValue(s);let r=parseFloat(s);r>180&&(r=r-360),this.setValue(r)}),this.updateNumberInput(),(0,A._exists)(this.getValue())&&this.eAngleValue.setValue(this.normalizeNegativeValue(this.getValue()).toString()),this.addManagedListeners(this,{fieldValueChanged:()=>{this.eAngleValue.getInputElement().contains((0,A._getActiveDomElement)(this.beans))||this.updateNumberInput()}})}updateNumberInput(){let f=this.normalizeNegativeValue(this.getValue());this.eAngleValue.setValue(f.toString())}positionChildCircle(f){let v=this.parentCircleRect||{width:24,height:24},u=this.eChildCircle,s=v.width/2,r=v.height/2;u.style.left=`${s+Math.cos(f)*8}px`,u.style.top=`${r+Math.sin(f)*8}px`}calculatePolar(){let f=this.offsetX,v=this.offsetY,u=Math.atan2(v,f);this.degrees=this.toDegrees(u),this.radius=Math.sqrt(f*f+v*v),this.positionChildCircle(u)}calculateCartesian(){let f=this.toRadians(this.getValue()),v=this.getRadius();this.setOffsetX(Math.cos(f)*v).setOffsetY(Math.sin(f)*v)}setOffsetX(f){return this.offsetX!==f&&(this.offsetX=f,this.calculatePolar()),this}setOffsetY(f){return this.offsetY!==f&&(this.offsetY=f,this.calculatePolar()),this}calculateAngleDrag(f){let v=this.parentCircleRect,u=v.width/2,s=v.height/2,r=f.clientX-v.left,d=f.clientY-v.top,g=r-u,m=d-s,b=Math.atan2(m,g);this.setValue(b,!0)}toDegrees(f){return f/Math.PI*180}toRadians(f){return f/180*Math.PI}normalizeNegativeValue(f){return f<0?360+f:f}normalizeAngle180(f){return f%=Math.PI*2,f<-Math.PI?f+=Math.PI*2:f>=Math.PI&&(f-=Math.PI*2),f}getRadius(){return this.radius}setRadius(f){return this.radius===f?this:(this.radius=f,this.calculateCartesian(),this)}onValueChange(f){return this.addManagedListeners(this,{fieldValueChanged:()=>{f(this.degrees)}}),this}getValue(f){return f?this.toRadians(this.degrees):this.degrees}setValue(f,v,u){let s;return v?s=f:s=this.normalizeAngle180(this.toRadians(f)),f=this.toDegrees(s),this.degrees!==f&&(this.degrees=Math.floor(f),this.calculateCartesian(),this.positionChildCircle(s),u||this.dispatchLocalEvent({type:"fieldValueChanged"})),this}setWidth(f){return(0,A._setFixedWidth)(this.getGui(),f),this}setDisabled(f){return super.setDisabled(f),this.eAngleValue.setDisabled(f),this}destroy(){var f;(f=this.dragSvc)==null||f.removeDragSource(this.dragListener),super.destroy()}}p.AgAngleSelect=F},7699:function(x,p,M){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.AgColorInputSelector=p.AgColorInput=void 0;let A=M(6624);class F extends A.AgInputTextField{wireBeans(f){this.chartTranslation=f.chartTranslation,this.color=f.agChartsExports._Util.Color}constructor(){super({template:`
            <div role="presentation" class="ag-color-input">
                <div data-ref="eLabel" class="ag-input-field-label"></div>
                <div data-ref="eWrapper" class="ag-wrapper ag-input-wrapper" role="presentation">
                    <input data-ref="eInput" class="ag-input-field-input">
                    <div data-ref="eColor" class="ag-color-input-color"></div>
                </div>
            </div>`}),this.eColor=A.RefPlaceholder}setColor(f){let v=f.toRgbaString();this.setValue(this.color.fromString(v).toHexString().toUpperCase(),!0),this.eColor.style.backgroundColor=v}setValue(f,v){let u=this.color.validColorString(f!=null?f:"");return this.eInput.setCustomValidity(u?"":this.chartTranslation.translate("invalidColor")),super.setValue(f,v),u&&!v&&this.dispatchLocalEvent({type:"colorChanged"}),this}onColorChanged(f){this.addManagedListeners(this,{colorChanged:()=>f(this.color.fromString(this.value))})}}p.AgColorInput=F,p.AgColorInputSelector={selector:"AG-COLOR-INPUT",component:F}},7434:function(x,p,M){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.AgColorPanel=void 0;let A=M(6624),F=M(7699),D=8,f=[];class v extends A.Component{constructor(s){super(`<div class="ag-color-panel" tabindex="-1">
            <div data-ref="spectrumColor" class="ag-spectrum-color">
                <div class="ag-spectrum-sat ag-spectrum-fill">
                    <div data-ref="spectrumVal" class="ag-spectrum-val ag-spectrum-fill">
                        <div data-ref="spectrumDragger" class="ag-spectrum-dragger"></div>
                    </div>
                </div>
            </div>
            <div class="ag-spectrum-tools">
                <div data-ref="spectrumHue" class="ag-spectrum-hue ag-spectrum-tool">
                    <div class="ag-spectrum-hue-background"></div>
                    <div data-ref="spectrumHueSlider" class="ag-spectrum-slider"></div>
                </div>
                <div data-ref="spectrumAlpha" class="ag-spectrum-alpha ag-spectrum-tool">
                    <div class="ag-spectrum-alpha-background"></div>
                    <div data-ref="spectrumAlphaSlider" class="ag-spectrum-slider"></div>
                </div>
                <ag-color-input data-ref="colorInput"></ag-color-input>
                <div data-ref="recentColors" class="ag-recent-colors"></div>
            </div>
        </div>`,[F.AgColorInputSelector]),this.H=1,this.S=1,this.B=1,this.A=1,this.isSpectrumDragging=!1,this.isSpectrumHueDragging=!1,this.isSpectrumAlphaDragging=!1,this.colorChanged=!1,this.spectrumColor=A.RefPlaceholder,this.spectrumVal=A.RefPlaceholder,this.spectrumDragger=A.RefPlaceholder,this.spectrumHue=A.RefPlaceholder,this.spectrumHueSlider=A.RefPlaceholder,this.spectrumAlpha=A.RefPlaceholder,this.spectrumAlphaSlider=A.RefPlaceholder,this.colorInput=A.RefPlaceholder,this.recentColors=A.RefPlaceholder,this.picker=s.picker}wireBeans(s){this._Color=s.agChartsExports._Util.Color}postConstruct(){this.initTabIndex(),this.initRecentColors(),this.addGuiEventListener("focus",()=>this.spectrumColor.focus()),this.addGuiEventListener("keydown",s=>{s.key===A.KeyCode.ENTER&&!s.defaultPrevented&&this.destroy()}),this.addManagedListeners(this.spectrumColor,{keydown:s=>this.moveDragger(s)}),this.addManagedListeners(this.spectrumAlphaSlider,{keydown:s=>this.moveAlphaSlider(s)}),this.addManagedListeners(this.spectrumHueSlider,{keydown:s=>this.moveHueSlider(s)}),this.addManagedListeners(this.spectrumVal,{mousedown:this.onSpectrumDraggerDown.bind(this)}),this.addManagedListeners(this.spectrumHue,{mousedown:this.onSpectrumHueDown.bind(this)}),this.addManagedListeners(this.spectrumAlpha,{mousedown:this.onSpectrumAlphaDown.bind(this)}),this.addGuiEventListener("mousemove",s=>{this.onSpectrumDraggerMove(s),this.onSpectrumHueMove(s),this.onSpectrumAlphaMove(s)}),this.addManagedListeners(document,{mouseup:this.onMouseUp.bind(this)}),this.colorInput.onColorChanged(this.setColor.bind(this)),this.addManagedListeners(this.recentColors,{click:this.onRecentColorClick.bind(this),keydown:s=>{(s.key===A.KeyCode.ENTER||s.key===A.KeyCode.SPACE)&&(s.preventDefault(),this.onRecentColorClick(s))}})}initTabIndex(){let s=this.tabIndex=this.gos.get("tabIndex").toString();this.spectrumColor.setAttribute("tabindex",s),this.spectrumHueSlider.setAttribute("tabindex",s),this.spectrumAlphaSlider.setAttribute("tabindex",s)}refreshSpectrumRect(){return this.spectrumValRect=this.spectrumVal.getBoundingClientRect()}refreshHueRect(){return this.spectrumHueRect=this.spectrumHue.getBoundingClientRect()}refreshAlphaRect(){return this.spectrumAlphaRect=this.spectrumAlpha.getBoundingClientRect()}onSpectrumDraggerDown(s){s.preventDefault(),this.refreshSpectrumRect(),this.isSpectrumDragging=!0,this.moveDragger(s)}onSpectrumDraggerMove(s){this.isSpectrumDragging&&this.moveDragger(s)}onSpectrumHueDown(s){this.refreshHueRect(),this.isSpectrumHueDragging=!0,this.moveHueSlider(s)}onSpectrumHueMove(s){this.isSpectrumHueDragging&&this.moveHueSlider(s)}onSpectrumAlphaDown(s){this.refreshAlphaRect(),this.isSpectrumAlphaDragging=!0,this.moveAlphaSlider(s)}onSpectrumAlphaMove(s){this.isSpectrumAlphaDragging&&this.moveAlphaSlider(s)}onMouseUp(){this.isSpectrumDragging=!1,this.isSpectrumHueDragging=!1,this.isSpectrumAlphaDragging=!1}moveDragger(s){let r=this.spectrumValRect;if(!r)return;let d,g;if(s instanceof MouseEvent)d=s.clientX-r.left,g=s.clientY-r.top;else{let m=s.key===A.KeyCode.LEFT,b=s.key===A.KeyCode.RIGHT,w=s.key===A.KeyCode.UP,k=s.key===A.KeyCode.DOWN,R=w||k,T=m||b;if(!R&&!T)return;s.preventDefault();let{x:z,y:G}=this.getSpectrumValue();d=z+(T?m?-5:5:0),g=G+(R?w?-5:5:0)}d=Math.max(d,0),d=Math.min(d,r.width),g=Math.max(g,0),g=Math.min(g,r.height),this.setSpectrumValue(d/r.width,1-g/r.height)}moveHueSlider(s){let r=this.spectrumHueRect;if(!r)return;let d=this.moveSlider(this.spectrumHueSlider,s);d!=null&&(this.H=1-d/r.width,this.update())}moveAlphaSlider(s){let r=this.spectrumAlphaRect;if(!r)return;let d=this.moveSlider(this.spectrumAlphaSlider,s);d!=null&&(this.A=d/r.width,this.update())}moveSlider(s,r){var w;let d=s.getBoundingClientRect(),g=(w=s.parentElement)==null?void 0:w.getBoundingClientRect();if(!s||!g)return null;let m=d.width/2,b;if(r instanceof MouseEvent)b=Math.floor(r.clientX-g.left);else{let k=r.key===A.KeyCode.LEFT,R=r.key===A.KeyCode.RIGHT;if(!k&&!R)return null;r.preventDefault();let T=k?-5:5;b=parseFloat(s.style.left)+m+T}return b=Math.max(b,0),b=Math.min(b,g.width),s.style.left=b-m+"px",b}update(s){let{A:r,S:d,B:g,H:m,_Color:b}=this,w=m*360,k=b.fromHSB(w,d,g,r),R=k.toRgbaString(),z=b.fromHSB(w,d,g).toRgbaString(),U=b.fromHSB(w,1,1).toRgbaString(),X=this.picker;b.fromString(X.getValue()).toRgbaString()!==R&&(this.colorChanged=!0),X.setValue(R),this.spectrumColor.style.backgroundColor=U,this.spectrumDragger.style.backgroundColor=z,this.spectrumHueSlider.style.backgroundColor=U,this.spectrumAlpha.style.setProperty("--ag-internal-spectrum-alpha-color-from",b.fromHSB(w,d,g,0).toRgbaString()),this.spectrumAlpha.style.setProperty("--ag-internal-spectrum-alpha-color-to",z),this.spectrumAlpha.style.setProperty("--ag-internal-spectrum-alpha-color",R),s||this.colorInput.setColor(k)}setSpectrumValue(s,r,d){let g=this.spectrumValRect||this.refreshSpectrumRect();if(g==null)return;let m=this.spectrumDragger,b=m.getBoundingClientRect();s=Math.max(0,s),s=Math.min(1,s),r=Math.max(0,r),r=Math.min(1,r),this.S=s,this.B=r,m.style.left=s*g.width-b.width/2+"px",m.style.top=(1-r)*g.height-b.height/2+"px",this.update(d)}getSpectrumValue(){let s=this.spectrumDragger,r=s.getBoundingClientRect(),d=parseFloat(s.style.left)+r.width/2,g=parseFloat(s.style.top)+r.height/2;return{x:d,y:g}}initRecentColors(){let s=f,r=s.map((d,g)=>`<div class="ag-recent-color" id=${g} style="background-color: ${d}; width: 15px; height: 15px;" recent-color="${d}" tabIndex="${this.tabIndex}"></div>`);this.recentColors.innerHTML=r.join(""),(0,A._setDisplayed)(this.recentColors,!!s.length)}setValue(s){let r=this._Color.fromString(s);this.setColor(r,!0)}setColor(s,r){let[d,g,m]=s.toHSB();this.H=(isNaN(d)?0:d)/360,this.A=s.a;let b=this.spectrumHueRect||this.refreshHueRect(),w=this.spectrumAlphaRect||this.refreshAlphaRect();this.spectrumHueSlider.style.left=`${(this.H-1)*-b.width-this.spectrumHueSlider.getBoundingClientRect().width/2}px`,this.spectrumAlphaSlider.style.left=`${this.A*w.width-this.spectrumAlphaSlider.getBoundingClientRect().width/2}px`,this.setSpectrumValue(g,m,!r)}onRecentColorClick(s){let r=s.target;if(!(0,A._exists)(r.id))return;let d=parseInt(r.id,10);this.setValue(f[d]),this.destroy()}addRecentColor(){let r=this._Color.fromHSB(this.H*360,this.S,this.B,this.A).toRgbaString(),d=f;!this.colorChanged||d[0]===r||(d=d.filter(g=>g!=r),d=[r].concat(d),d.length>D&&(d=d.slice(0,D)),f=d)}destroy(){this.addRecentColor(),super.destroy()}}p.AgColorPanel=v},1296:function(x,p,M){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.AgColorPickerSelector=p.AgColorPicker=void 0;let A=M(6624),F=M(8775),D=M(7434);class f extends A.AgPickerField{constructor(u){super(pe({pickerAriaLabelKey:"ariaLabelColorPicker",pickerAriaLabelValue:"Color Picker",pickerType:"ag-list",className:"ag-color-picker",pickerIcon:"chartsColorPicker"},u))}postConstruct(){let u=(0,A._getDocument)(this.beans);this.eDisplayFieldColor=u.createElement("span"),this.eDisplayFieldColor.classList.add("ag-color-picker-color"),this.eDisplayFieldText=u.createElement("span"),this.eDisplayFieldText.classList.add("ag-color-picker-value"),this.eDisplayField.appendChild(this.eDisplayFieldColor),this.eDisplayField.appendChild(this.eDisplayFieldText),super.postConstruct(),this.value&&this.setValue(this.value)}createPickerComponent(){var d;let u=this.eWrapper.getBoundingClientRect(),s=this.beans.popupSvc.getParentRect();return this.createBean(new F.AgDialog({closable:!1,modal:!0,hideTitleBar:!0,minWidth:190,width:190,height:250,x:u.right-s.left-190,y:u.top-s.top-250-((d=this.config.pickerGap)!=null?d:0),postProcessPopupParams:{type:"colorPicker",eventSource:this.eWrapper}}))}renderAndPositionPicker(){let u=this.pickerComponent,s=this.createBean(new D.AgColorPanel({picker:this}));return u.addCssClass("ag-color-dialog"),s.addDestroyFunc(()=>{u.isAlive()&&this.destroyBean(u)}),u.setParentComponent(this),u.setBodyComponent(s),s.setValue(this.getValue()),s.getGui().focus(),u.addDestroyFunc(()=>{this.isDestroyingPicker?this.isDestroyingPicker=!1:(this.beforeHidePicker(),this.isDestroyingPicker=!0,s.isAlive()&&this.destroyBean(s),this.isAlive()&&this.getFocusableElement().focus())}),()=>{var r;return(r=this.pickerComponent)==null?void 0:r.close()}}setValue(u){return this.value===u?this:(this.eDisplayFieldColor.style.backgroundColor=u,this.eDisplayFieldText.textContent=this.beans.agChartsExports._Util.Color.fromString(u).toHexString().toUpperCase(),super.setValue(u))}getValue(){return this.value}}p.AgColorPicker=f,p.AgColorPickerSelector={selector:"AG-COLOR-PICKER",component:f}},5748:function(x,p,M){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.AgInputRangeSelector=p.AgInputRange=void 0;let A=M(6624);class F extends A.AgAbstractInputField{constructor(f){super(f,"ag-range-field","range")}postConstruct(){super.postConstruct();let{min:f,max:v,step:u}=this.config;f!=null&&this.setMinValue(f),v!=null&&this.setMaxValue(v),this.setStep(u||1)}addInputListeners(){this.addManagedElementListeners(this.eInput,{input:f=>{let v=f.target.value;this.setValue(v)}})}setMinValue(f){return this.min=f,this.eInput.setAttribute("min",f.toString()),this}setMaxValue(f){return this.max=f,this.eInput.setAttribute("max",f.toString()),this}setStep(f){return this.eInput.setAttribute("step",f.toString()),this}setValue(f,v){this.min!=null&&(f=Math.max(parseFloat(f),this.min).toString()),this.max!=null&&(f=Math.min(parseFloat(f),this.max).toString());let u=super.setValue(f,v);return this.eInput.value=f,u}}p.AgInputRange=F,p.AgInputRangeSelector={selector:"AG-INPUT-RANGE",component:F}},8239:function(x,p){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.agPillSelectCSS=void 0,p.agPillSelectCSS=".ag-pill-select{display:flex;flex-direction:column}:where(.ag-pill-select){.ag-column-drop-list{padding:0}.ag-select{padding-top:var(--ag-spacing)}.ag-picker-field-wrapper{background-color:transparent;border:0}.ag-picker-field-display{cursor:pointer;font-weight:500}.ag-picker-field-display,.ag-picker-field-icon{color:var(--ag-chart-menu-label-color)}}"},2406:function(x,p,M){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.AgPillSelect=void 0;let A=M(6624),F=M(3173),D=M(9733),f=M(8239);class v extends A.Component{constructor(d){super('<div class="ag-pill-select" role="presentation"></div>'),this.config=d!=null?d:{};let{selectedValueList:g,valueFormatter:m,valueList:b}=this.config;this.selectedValues=g!=null?g:[],this.valueList=b!=null?b:[],this.valueFormatter=m!=null?m:w=>(0,A._escapeString)(w),this.registerCSS(f.agPillSelectCSS)}postConstruct(){let{ariaLabel:d,onValuesChange:g,dragSourceId:m}=this.config;this.dropZonePanel=this.createManagedBean(new s({getValues:()=>this.selectedValues,setValues:w=>this.updateValues(w),isDraggable:()=>this.selectedValues.length>1},w=>this.valueFormatter(w),d,m)),this.getGui().appendChild(this.dropZonePanel.getGui()),this.initSelect(),g!=null&&(this.onValuesChange=g)}setValues(d,g){let{added:m,removed:b,updated:w}=this.getChanges(this.valueList,d),k=!1;return(m.length||b.length||w.length)&&(k=!0),this.valueList=d,this.updateValues(g,k,!0),this}setValueFormatter(d){return this.valueFormatter=d,this}initSelect(){let d=this.createSelectOptions();if(!d.length)return!1;let{selectPlaceholder:g}=this.config;return this.eSelect=this.createBean(new A.AgSelect({options:d,placeholder:g,onValueChange:m=>this.addValue(m),pickerIcon:"chartsMenuAdd"})),this.getGui().appendChild(this.eSelect.getGui()),!0}createSelectOptions(){let d=[],{maxSelection:g}=this.config;return g&&this.selectedValues.length>=g||this.valueList.forEach(m=>{this.selectedValues.includes(m)||d.push({value:m,text:this.valueFormatter(m)})}),d}addValue(d){this.dropZonePanel.addItem(d)}updateValues(d,g,m){var U,X,Q,oe,le;let b=this.selectedValues;this.selectedValues=d;let w=this.getChanges(b,d),k=g||w.added.length||w.removed.length,R=(0,A._getActiveDomElement)(this.beans),T=(U=this.eSelect)==null?void 0:U.getGui().contains(R),z=(X=this.dropZonePanel)==null?void 0:X.getGui().contains(R);m||(Q=this.onValuesChange)==null||Q.call(this,w);let G=k?!this.refreshSelect():!1;this.dropZonePanel.refreshGui(),k&&T&&(G?this.dropZonePanel.focusList(!0):(oe=this.eSelect)==null||oe.getFocusableElement().focus()),z&&!d.length&&((le=this.eSelect)==null||le.getFocusableElement().focus())}getChanges(d,g){let m=g.filter(k=>!d.includes(k)),b=d.filter(k=>!g.includes(k)),w=g.filter((k,R)=>d[R]!==k);return{added:m,removed:b,updated:w,selected:g}}refreshSelect(){if(!this.eSelect)return this.initSelect();let d=this.createSelectOptions();return d.length?(this.eSelect.clearOptions().addOptions(d).setValue(void 0,!0),!0):((0,A._removeFromParent)(this.eSelect.getGui()),this.eSelect=this.destroyBean(this.eSelect),!1)}destroy(){this.destroyBean(this.eSelect),super.destroy()}}p.AgPillSelect=v;class u extends F.PillDragComp{constructor(d,g,m,b,w,k){super(g,m,!1),this.value=d,this.valueFormatter=b,this.draggable=w,this.sourceId=k}getItem(){return this.value}getDisplayName(){return this.valueFormatter(this.value)}getAriaDisplayName(){return this.getDisplayName()}getTooltip(){}createGetDragItem(){return()=>({value:this.value})}getDragSourceType(){return A.DragSourceType.ChartPanel}getDragSourceId(){return this.sourceId}isDraggable(){return this.draggable}}class s extends D.PillDropZonePanel{constructor(d,g,m,b){super(!1),this.model=d,this.valueFormatter=g,this.ariaLabel=m,this.sourceId=b}postConstruct(){super.init()}isItemDroppable(d,g){return this.isSourceEventFromTarget(g)||this.sourceId!=null&&this.sourceId===g.dragSource.sourceId}updateItems(d){this.model.setValues(d)}getExistingItems(){return this.model.getValues()}getIconName(){return this.isPotentialDndItems()?"move":"notAllowed"}getAriaLabel(){return this.ariaLabel}createPillComponent(d,g,m){return new u(d,g,m,this.valueFormatter,this.model.isDraggable(),this.sourceId)}getItems(d){return[d.value]}isInterestedIn(d){return d===A.DragSourceType.ChartPanel}}},5e3:function(x,p,M){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.AgSliderSelector=p.AgSlider=void 0;let A=M(6624),F=M(5748);class D extends A.AgAbstractLabel{constructor(v){super(v,`<div class="ag-slider">
            <label data-ref="eLabel"></label>
            <div class="ag-wrapper ag-slider-wrapper">
                <ag-input-range data-ref="eSlider"></ag-input-range>
                <ag-input-number-field data-ref="eText"></ag-input-number-field>
            </div>
        </div>`,[F.AgInputRangeSelector,A.AgInputNumberFieldSelector]),this.eLabel=A.RefPlaceholder,this.eSlider=A.RefPlaceholder,this.eText=A.RefPlaceholder,this.labelAlignment="top"}postConstruct(){super.postConstruct(),this.eSlider.addCssClass("ag-slider-field");let{minValue:v,maxValue:u,textFieldWidth:s,step:r,value:d,onValueChange:g}=this.config;v!=null&&this.setMinValue(v),u!=null&&this.setMaxValue(u),s!=null&&this.setTextFieldWidth(s),r!=null&&this.setStep(r),d!=null&&this.setValue(d),g!=null&&this.onValueChange(g)}onValueChange(v){return this.addManagedListeners(this.eText,{fieldValueChanged:()=>{let u=parseFloat(this.eText.getValue());this.eSlider.setValue(u.toString(),!0),v(u||0)}}),this.addManagedListeners(this.eSlider,{fieldValueChanged:()=>{let u=this.eSlider.getValue();this.eText.setValue(u,!0),v(parseFloat(u))}}),this}setSliderWidth(v){return this.eSlider.setWidth(v),this}setTextFieldWidth(v){return this.eText.setWidth(v),this}setMinValue(v){return this.eSlider.setMinValue(v),this.eText.setMin(v),this}setMaxValue(v){return this.eSlider.setMaxValue(v),this.eText.setMax(v),this}getValue(){return this.eText.getValue()}setValue(v,u){return this.getValue()===v?this:(this.eText.setValue(v,!0),this.eSlider.setValue(v,!0),u||this.dispatchLocalEvent({type:"fieldValueChanged"}),this)}setStep(v){return this.eSlider.setStep(v),this.eText.setStep(v),this}}p.AgSlider=D,p.AgSliderSelector={selector:"AG-SLIDER",component:D}},9112:function(x,p){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.pasteFromClipboard=p.copySelectedRangeDown=p.copySelectedRangeToClipboard=p.copySelectedRowsToClipboard=p.cutToClipboard=p.copyToClipboard=void 0;function M(u,s){var r;(r=u.clipboardSvc)==null||r.copyToClipboard(s)}p.copyToClipboard=M;function A(u,s){var r;(r=u.clipboardSvc)==null||r.cutToClipboard(s)}p.cutToClipboard=A;function F(u,s){var r;(r=u.clipboardSvc)==null||r.copySelectedRowsToClipboard(s)}p.copySelectedRowsToClipboard=F;function D(u,s){var r;(r=u.clipboardSvc)==null||r.copySelectedRangeToClipboard(s)}p.copySelectedRangeToClipboard=D;function f(u){var s;(s=u.clipboardSvc)==null||s.copyRangeDown()}p.copySelectedRangeDown=f;function v(u){var s;(s=u.clipboardSvc)==null||s.pasteFromClipboard()}p.pasteFromClipboard=v},3766:function(x,p,M){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.ClipboardModule=void 0;let A=M(6624),F=M(9206),D=M(7205),f=M(9112),v=M(5519);p.ClipboardModule={moduleName:"Clipboard",version:D.VERSION,beans:[v.ClipboardService],apiFunctions:{copyToClipboard:f.copyToClipboard,cutToClipboard:f.cutToClipboard,copySelectedRowsToClipboard:f.copySelectedRowsToClipboard,copySelectedRangeToClipboard:f.copySelectedRangeToClipboard,copySelectedRangeDown:f.copySelectedRangeDown,pasteFromClipboard:f.pasteFromClipboard},dependsOn:[F.EnterpriseCoreModule,A.CsvExportModule,A._KeyboardNavigationModule,A.HighlightChangesModule]}},5519:function(x,p,M){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.ClipboardService=p.stringToArray=void 0;let A=M(6624),F="paste",D="dragCopy",f="clipboard";var v;(function(r){r[r.CellRange=0]="CellRange",r[r.SelectedRows=1]="SelectedRows",r[r.FocusedCell=2]="FocusedCell"})(v||(v={}));function u(r,d=","){let g=[],m=w=>w==="\r"||w===`
`,b=!1;if(r==="")return[[""]];for(let w=0,k=0,R=0;R<r.length;R++){let T=r[R-1],z=r[R],G=r[R+1],U=()=>{g[w]||(g[w]=[]),g[w][k]||(g[w][k]="")};if(U(),z==='"'&&(b?G==='"'?(g[w][k]+='"',R++):b=!1:(T===void 0||T===d||m(T))&&(b=!0)),!b&&z!=='"'){if(z===d){k++,U();continue}else if(m(z)){k=0,w++,U(),z==="\r"&&G===`
`&&R++;continue}}g[w][k]+=z}return g}p.stringToArray=u;class s extends A.BeanStub{constructor(){super(...arguments),this.beanName="clipboardSvc",this.clientSideRowModel=null,this.gridCtrl=null,this.lastPasteOperationTime=0,this.navigatorApiFailed=!1}postConstruct(){let{gos:d,rowModel:g,ctrlsSvc:m}=this.beans;(0,A._isClientSideRowModel)(d,g)&&(this.clientSideRowModel=g),m.whenReady(this,b=>{this.gridCtrl=b.gridCtrl})}destroy(){super.destroy(),this.clientSideRowModel=null,this.gridCtrl=null}pasteFromClipboard(){!this.gos.get("suppressClipboardApi")&&!this.navigatorApiFailed&&navigator.clipboard&&navigator.clipboard.readText?navigator.clipboard.readText().then(this.processClipboardData.bind(this)).catch(g=>{(0,A._warn)(40,{e:g,method:"readText"}),this.navigatorApiFailed=!0,this.pasteFromClipboardLegacy()}):this.pasteFromClipboardLegacy()}pasteFromClipboardLegacy(){let d=!1,g=m=>{let b=new Date().getTime();b-this.lastPasteOperationTime<50&&(d=!0,m.preventDefault()),this.lastPasteOperationTime=b};this.executeOnTempElement(m=>{m.addEventListener("paste",g),m.focus({preventScroll:!0})},m=>{let b=m.value;d?this.refocusLastFocusedCell():this.processClipboardData(b),m.removeEventListener("paste",g)})}refocusLastFocusedCell(){let{focusSvc:d}=this.beans,g=d.getFocusedCell();g&&d.setFocusedCell({rowIndex:g.rowIndex,column:g.column,rowPinned:g.rowPinned,forceBrowserFocus:!0})}getClipboardDelimiter(){let d=this.gos.get("clipboardDelimiter");return(0,A._exists)(d)?d:"	"}processClipboardData(d){if(d==null)return;let g=u(d,this.getClipboardDelimiter()),m=this.gos.getCallback("processDataFromClipboard");if(m&&(g=m({data:g})),g==null)return;this.gos.get("suppressLastEmptyLineOnPaste")&&this.removeLastLineIfBlank(g);let{rangeSvc:b}=this.beans,w=(k,R,T,z)=>{(b==null?void 0:b.isMoreThanOneCell())&&!this.hasOnlyOneValueToPaste(g)?this.pasteIntoActiveRange(b,g,k,R,z):this.pasteStartingFromFocusedCell(g,k,R,T,z)};this.doPasteOperation(w)}doPasteOperation(d){let g="clipboard",{eventSvc:m,focusSvc:b,rowRenderer:w,gos:k}=this.beans;m.dispatchEvent({type:"pasteStart",source:g});let{clientSideRowModel:R}=this,T=R==null?void 0:R.rootNode,z=T&&new A.ChangedPath(k.get("aggregateOnlyChangedColumns"),T),G={},U=[],X=b.getFocusedCell();d(G,U,X,z);let Q=[...U];z&&(R.doAggregate(z),z.forEachChangedNodeDepthFirst(oe=>{Q.push(oe)})),w.refreshCells({rowNodes:Q}),this.dispatchFlashCells(G),this.fireRowChanged(U),this.refocusLastFocusedCell(),m.dispatchEvent({type:"pasteEnd",source:g})}pasteIntoActiveRange(d,g,m,b,w){let k=this.getRangeSize(d)%g.length!=0,R=0,T=0,z=(G,U,X,Q)=>{if(Q-R>=g.length){if(k)return;R+=T,T=0}let le=g[Q-R];b.push(U);let fe=this.gos.getCallback("processCellFromClipboard");X.forEach((ye,ke)=>{if(!ye.isCellEditable(U)||ye.isSuppressPaste(U))return;ke>=le.length&&(ke=ke%le.length);let Ie=this.processCell(U,ye,le[ke],D,fe,!0);U.setDataValue(ye,Ie,F),w&&w.addParentNode(U.parent,[ye]);let{rowIndex:ze,rowPinned:Ye}=G,xe=(0,A._createCellId)({rowIndex:ze,column:ye,rowPinned:Ye});m[xe]=!0}),T++};this.iterateActiveRanges(!1,z)}getDisplayedColumnsStartingAt(d){let g=d,m=[],b=this.beans.visibleCols;for(;g!=null;)m.push(g),g=b.getColAfter(g);return m}pasteStartingFromFocusedCell(d,g,m,b,w){if(!b)return;let k={rowIndex:b.rowIndex,rowPinned:b.rowPinned},R=this.getDisplayedColumnsStartingAt(b.column);this.isPasteSingleValueIntoRange(d)?this.pasteSingleValueIntoRange(d,m,g,w):this.pasteMultipleValues(d,k,m,R,g,f,w)}isPasteSingleValueIntoRange(d){let g=this.beans.rangeSvc;return this.hasOnlyOneValueToPaste(d)&&!!g&&!g.isEmpty()}pasteSingleValueIntoRange(d,g,m,b){let w=d[0][0],k=(R,T,z)=>{g.push(T),z.forEach(G=>this.updateCellValue(T,G,w,m,f,b))};this.iterateActiveRanges(!1,k)}hasOnlyOneValueToPaste(d){return d.length===1&&d[0].length===1}copyRangeDown(){let{rangeSvc:d,gos:g,valueSvc:m}=this.beans;if(!d||d.isEmpty())return;let b=[],w=(k,R,T,z)=>{let G=g.getCallback("processCellForClipboard"),U=g.getCallback("processCellFromClipboard"),X=(Q,oe,le)=>{b.length?(R.push(oe),le.forEach((fe,ye)=>{if(!fe.isCellEditable(oe)||fe.isSuppressPaste(oe))return;let ke=this.processCell(oe,fe,b[ye],D,U,!0);oe.setDataValue(fe,ke,F),z&&z.addParentNode(oe.parent,[fe]);let{rowIndex:Ie,rowPinned:ze}=Q,Ye=(0,A._createCellId)({rowIndex:Ie,column:fe,rowPinned:ze});k[Ye]=!0})):le.forEach(fe=>{let ye=this.processCell(oe,fe,m.getValue(fe,oe),D,G,!1,!0);b.push(ye)})};this.iterateActiveRanges(!0,X)};this.doPasteOperation(w)}removeLastLineIfBlank(d){let g=(0,A._last)(d);if(g&&g.length===1&&g[0]===""){if(d.length===1)return;(0,A._removeFromArray)(d,g)}}fireRowChanged(d){this.gos.get("editType")==="fullRow"&&d.forEach(g=>{this.eventSvc.dispatchEvent({type:"rowValueChanged",node:g,data:g.data,rowIndex:g.rowIndex,rowPinned:g.rowPinned})})}pasteMultipleValues(d,g,m,b,w,k,R){let T=g,z=this.beans,{gos:G,cellNavigation:U}=z,X=this.clientSideRowModel!=null&&!G.get("enableGroupEdit")&&!G.get("treeData"),Q=()=>{for(;;){if(!T)return null;let oe=(0,A._getRowNode)(z,T);if(T=U.getRowBelow({rowPinned:T.rowPinned,rowIndex:T.rowIndex}),oe==null)return null;if(!(oe.detail||oe.footer||X&&oe.group))return oe}};d.forEach(oe=>{let le=Q();le&&(oe.forEach((fe,ye)=>this.updateCellValue(le,b[ye],fe,w,k,R)),m.push(le))})}updateCellValue(d,g,m,b,w,k){if(!d||!g||!g.isCellEditable(d)||g.isSuppressPaste(d))return;let R=this.processCell(d,g,m,w,this.gos.getCallback("processCellFromClipboard"),!0);d.setDataValue(g,R,F);let{rowIndex:T,rowPinned:z}=d,G=(0,A._createCellId)({rowIndex:T,column:g,rowPinned:z});b[G]=!0,k&&k.addParentNode(d.parent,[g])}copyToClipboard(d={}){this.copyOrCutToClipboard(d)}cutToClipboard(d={},g="api"){this.gos.get("suppressCutToClipboard")||(this.eventSvc.dispatchEvent({type:"cutStart",source:g}),this.copyOrCutToClipboard(d,!0),this.eventSvc.dispatchEvent({type:"cutEnd",source:g}))}copyOrCutToClipboard(d,g){let{includeHeaders:m,includeGroupHeaders:b}=d,{gos:w,focusSvc:k}=this.beans;m==null&&(m=w.get("copyHeadersToClipboard")),b==null&&(b=w.get("copyGroupHeadersToClipboard"));let R={includeHeaders:m,includeGroupHeaders:b},T=w.get("rowSelection"),z=w.get("cellSelection"),G=null;this.shouldCopyCells(z,T)?(this.copySelectedRangeToClipboard(R),G=v.CellRange):this.shouldCopyRows(T)?(this.copySelectedRowsToClipboard(R),G=v.SelectedRows):k.isAnyCellFocused()&&(this.copyFocusedCellToClipboard(R),G=v.FocusedCell),g&&G!==null&&this.clearCellsAfterCopy(G)}shouldCopyCells(d,g){let{rangeSvc:m,selectionSvc:b,gos:w}=this.beans;if(!m||m.isEmpty())return!1;if(d)return!(typeof g=="object"&&g.copySelectedRows&&!(b!=null&&b.isEmpty()));{let k=w.get("suppressCopySingleCellRanges");return!(!m.isMoreThanOneCell()&&k)}}shouldCopyRows(d){var b,w;let{selectionSvc:g,gos:m}=this.beans;return(b=g==null?void 0:g.isEmpty())==null||b?!1:d&&typeof d!="string"?(w=d.copySelectedRows)!=null?w:!1:!m.get("suppressCopyRowsToClipboard")}clearCellsAfterCopy(d){let g=this.beans,{rangeSvc:m,focusSvc:b,eventSvc:w}=g;if(w.dispatchEvent({type:"keyShortcutChangedCellStart"}),d===v.CellRange)m.clearCellRangeCellValues({cellEventSource:"clipboardSvc"});else if(d===v.SelectedRows)this.clearSelectedRows();else{let k=b.getFocusedCell();if(k==null)return;let R=(0,A._getRowNode)(g,k);R&&this.clearCellValue(R,k.column)}w.dispatchEvent({type:"keyShortcutChangedCellEnd"})}clearSelectedRows(){var w;let{selectionSvc:d,visibleCols:g}=this.beans,m=(w=d==null?void 0:d.getSelectedNodes())!=null?w:[],b=g.allCols;for(let k of m)for(let R of b)this.clearCellValue(k,R)}clearCellValue(d,g){if(!g.isCellEditable(d))return;let m=this.beans.valueSvc.getDeleteValue(g,d);d.setDataValue(g,m,"clipboardSvc")}iterateActiveRanges(d,g,m){let b=this.beans.rangeSvc;if(!b||b.isEmpty())return;let w=b.getCellRanges();d?this.iterateActiveRange(w[0],g,m,!0):w.forEach((k,R)=>this.iterateActiveRange(k,g,m,R===w.length-1))}iterateActiveRange(d,g,m,b){let{rangeSvc:w,cellNavigation:k}=this.beans;if(!w)return;let R=w.getRangeStartRow(d),T=w.getRangeEndRow(d);m&&d.columns&&m(d.columns);let z=0,G=!1;for(;!G&&R!=null;){let U=(0,A._getRowNode)(this.beans,R);G=(0,A._isSameRow)(R,T),g(R,U,d.columns,z++,G&&b),R=k.getRowBelow(R)}}copySelectedRangeToClipboard(d={}){let g=this.beans.rangeSvc;if(!g||g.isEmpty())return;let m=g.areAllRangesAbleToMerge(),{data:b,cellsToFlash:w}=m?this.buildDataFromMergedRanges(g,d):this.buildDataFromRanges(g,d);this.copyDataToClipboard(b),this.dispatchFlashCells(w)}buildDataFromMergedRanges(d,g){let m=new Set,b=d.getCellRanges(),w=new Map,k=[],R={};b.forEach(U=>{U.columns.forEach(oe=>m.add(oe));let{rowPositions:X,cellsToFlash:Q}=this.getRangeRowPositionsAndCellsToFlash(d,U);X.forEach(oe=>{let le=`${oe.rowIndex}-${oe.rowPinned||"null"}`;w.get(le)||(w.set(le,!0),k.push(oe))}),Object.assign(R,Q)});let T=this.beans.visibleCols.allCols,z=Array.from(m);return z.sort((U,X)=>{let Q=T.indexOf(U),oe=T.indexOf(X);return Q-oe}),{data:this.buildExportParams({columns:z,rowPositions:k,includeHeaders:g.includeHeaders,includeGroupHeaders:g.includeGroupHeaders}),cellsToFlash:R}}buildDataFromRanges(d,g){let m=d.getCellRanges(),b=[],w={};return m.forEach(k=>{let{rowPositions:R,cellsToFlash:T}=this.getRangeRowPositionsAndCellsToFlash(d,k);Object.assign(w,T),b.push(this.buildExportParams({columns:k.columns,rowPositions:R,includeHeaders:g.includeHeaders,includeGroupHeaders:g.includeGroupHeaders}))}),{data:b.join(`
`),cellsToFlash:w}}getRangeRowPositionsAndCellsToFlash(d,g){let m=[],b={},w=d.getRangeStartRow(g),k=d.getRangeEndRow(g),R=w;for(;R&&(m.push(R),g.columns.forEach(T=>{let{rowIndex:z,rowPinned:G}=R,U=(0,A._createCellId)({rowIndex:z,column:T,rowPinned:G});b[U]=!0}),!(0,A._isSameRow)(R,k));)R=this.beans.cellNavigation.getRowBelow(R);return{rowPositions:m,cellsToFlash:b}}getCellsToFlashFromRowNodes(d){let g=this.beans.visibleCols.allCols,m={};for(let b=0;b<d.length;b++){let{level:w,rowIndex:k,rowPinned:R,sibling:T}=d[b],z=w===-1?T.rowIndex:k;if(z!=null)for(let G=0;G<g.length;G++){let U=g[G],X=(0,A._createCellId)({rowIndex:z,column:U,rowPinned:R});m[X]=!0}}return m}copyFocusedCellToClipboard(d={}){let g=this.beans.focusSvc.getFocusedCell();if(g==null)return;let m=(0,A._createCellId)(g),b={rowPinned:g.rowPinned,rowIndex:g.rowIndex},w=g.column,k=this.buildExportParams({columns:[w],rowPositions:[b],includeHeaders:d.includeHeaders,includeGroupHeaders:d.includeGroupHeaders});this.copyDataToClipboard(k),this.dispatchFlashCells({[m]:!0})}copySelectedRowsToClipboard(d={}){var R;let{columnKeys:g,includeHeaders:m,includeGroupHeaders:b}=d,w=this.buildExportParams({columns:g,includeHeaders:m,includeGroupHeaders:b});this.copyDataToClipboard(w);let k=((R=this.beans.selectionSvc)==null?void 0:R.getSelectedNodes())||[];this.dispatchFlashCells(this.getCellsToFlashFromRowNodes(k))}buildExportParams(d){let{columns:g,rowPositions:m,includeHeaders:b=!1,includeGroupHeaders:w=!1}=d,{gos:k,csvCreator:R}=this.beans,T={columnKeys:g,rowPositions:m,skipColumnHeaders:!b,skipColumnGroupHeaders:!w,suppressQuotes:!0,columnSeparator:this.getClipboardDelimiter(),onlySelected:!m,processCellCallback:k.getCallback("processCellForClipboard"),processRowGroupCallback:z=>this.processRowGroupCallback(z),processHeaderCallback:k.getCallback("processHeaderForClipboard"),processGroupHeaderCallback:k.getCallback("processGroupHeaderForClipboard")};return R.getDataAsCsv(T,!0)}processRowGroupCallback({node:d,column:g}){let{gos:m,valueSvc:b,rowGroupColsSvc:w}=this.beans,k=m.get("treeData"),T=(()=>{var U,X;if(k||!g)return d.key;let G=(U=d.groupData)==null?void 0:U[g.getId()];return!G||!d.rowGroupColumn||d.rowGroupColumn.getColDef().useValueFormatterForExport===!1?G:(X=b.formatValue(d.rowGroupColumn,d,G))!=null?X:G})();if(d.footer){let G="";T&&T.length&&(G=` ${T}`),T=`Total${G}`}let z=m.getCallback("processCellForClipboard");if(z){let G=d.rowGroupColumn;return!G&&d.footer&&d.level===-1&&w&&(G=w.columns[0]),z({value:T,node:d,column:G,type:"clipboard",formatValue:U=>{var X;return(X=b.formatValue(G,d,U))!=null?X:U},parseValue:U=>b.parseValue(G,d,U,b.getValue(G,d))})}return T}dispatchFlashCells(d){window.setTimeout(()=>{this.eventSvc.dispatchEvent({type:"flashCells",cells:d})},0)}processCell(d,g,m,b,w,k,R){var z;let T=this.beans.valueSvc;return w?w({column:g,node:d,value:m,type:b,formatValue:U=>{var X;return(X=T.formatValue(g,d!=null?d:null,U))!=null?X:U},parseValue:U=>T.parseValue(g,d!=null?d:null,U,T.getValue(g,d))}):k&&g.getColDef().useValueParserForImport!==!1?T.parseValue(g,d!=null?d:null,m,T.getValue(g,d)):R&&g.getColDef().useValueFormatterForExport!==!1&&(z=T.formatValue(g,d!=null?d:null,m))!=null?z:m}copyDataToClipboard(d){let g=this.gos.getCallback("sendToClipboard");if(g){g({data:d});return}if(!this.gos.get("suppressClipboardApi")&&navigator.clipboard){navigator.clipboard.writeText(d).catch(b=>{(0,A._warn)(40,{e:b,method:"writeText"}),this.copyDataToClipboardLegacy(d)});return}this.copyDataToClipboardLegacy(d)}copyDataToClipboardLegacy(d){this.executeOnTempElement(g=>{let m=(0,A._getDocument)(this.beans),b=(0,A._getActiveDomElement)(this.beans);g.value=d||" ",g.select(),g.focus({preventScroll:!0}),m.execCommand("copy")||(0,A._warn)(41),b!=null&&b.focus!=null&&b.focus({preventScroll:!0})})}executeOnTempElement(d,g){if(!this.gridCtrl)return;let m=(0,A._getDocument)(this.beans),b=m.createElement("textarea"),w=b.style;w.width="1px",w.height="1px";let k=m.documentElement;w.top=k.scrollTop+"px",w.left=k.scrollLeft+"px",w.position="absolute",w.opacity="0";let R=this.gridCtrl.getGui();R.appendChild(b);try{d(b)}catch(T){(0,A._warn)(42)}g?window.setTimeout(()=>{g(b),R.removeChild(b)},100):R.removeChild(b)}getRangeSize(d){let g=d.getCellRanges(),m=0,b=0;return g.length>0&&(m=d.getRangeStartRow(g[0]).rowIndex,b=d.getRangeEndRow(g[0]).rowIndex),m-b+1}}p.ClipboardService=s},2664:function(x,p){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.agPrimaryColsCSS=void 0,p.agPrimaryColsCSS=".ag-column-select{display:flex;flex:3 1 0px;flex-direction:column;overflow:hidden;position:relative}.ag-column-select-header{align-items:center;display:flex;flex:none;gap:var(--ag-widget-horizontal-spacing);height:var(--ag-header-height);padding-left:var(--ag-widget-container-horizontal-padding);padding-right:var(--ag-widget-container-horizontal-padding);position:relative}.ag-column-select-column,.ag-column-select-column-group{align-items:center;display:flex;gap:var(--ag-widget-horizontal-spacing);height:100%;position:relative;&:where(:not(:last-child)){margin-bottom:var(--ag-widget-vertical-spacing)}}:where(.ag-ltr) .ag-column-select-column,:where(.ag-ltr) .ag-column-select-column-group{padding-left:calc(var(--ag-indentation-level)*var(--ag-column-select-indent-size))}:where(.ag-rtl) .ag-column-select-column,:where(.ag-rtl) .ag-column-select-column-group{padding-right:calc(var(--ag-indentation-level)*var(--ag-column-select-indent-size))}.ag-column-select-header-icon{border-radius:var(--ag-border-radius);cursor:pointer;height:var(--ag-icon-size);position:relative;width:var(--ag-icon-size);&:focus-visible{box-shadow:var(--ag-focus-shadow)}}.ag-column-select-header-filter-wrapper{flex:1 1 auto}.ag-column-select-header-filter{width:100%}.ag-column-select-list{flex:1 1 0px;overflow:hidden}:where(.ag-ltr) .ag-column-select-add-group-indent{margin-left:calc(var(--ag-icon-size) + var(--ag-spacing)*1.5)}:where(.ag-rtl) .ag-column-select-add-group-indent{margin-right:calc(var(--ag-icon-size) + var(--ag-spacing)*1.5)}.ag-column-select-column-group-readonly,.ag-column-select-column-readonly{opacity:.5;pointer-events:none}.ag-column-select-virtual-list-viewport{padding:calc(var(--ag-widget-container-vertical-padding)*.5) 0}.ag-column-select-virtual-list-item{padding:0 var(--ag-widget-container-horizontal-padding)}.ag-column-select-column-label{flex:1 1 auto;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ag-column-select-checkbox{display:flex}"},1269:function(x,p,M){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.AgPrimaryColsSelector=p.AgPrimaryCols=void 0;let A=M(6624),F=M(2664),D=M(4312),f=M(5853);class v extends A.Component{constructor(){super(`<div class="ag-column-select">
            <ag-primary-cols-header data-ref="primaryColsHeaderPanel"></ag-primary-cols-header>
            <ag-primary-cols-list data-ref="primaryColsListPanel"></ag-primary-cols-list>
        </div>`,[D.AgPrimaryColsHeaderSelector,f.AgPrimaryColsListSelector]),this.primaryColsHeaderPanel=A.RefPlaceholder,this.primaryColsListPanel=A.RefPlaceholder,this.registerCSS(F.agPrimaryColsCSS)}init(s,r,d){let{primaryColsHeaderPanel:g,primaryColsListPanel:m}=this;g.init(r);let b=r.suppressColumnFilter,w=r.suppressColumnSelectAll;r.suppressColumnExpandAll&&b&&w&&g.setDisplayed(!1),this.addManagedListeners(m,{groupExpanded:R=>{g.setExpandState(R.state),r.onStateUpdated()},selectionChanged:R=>g.setSelectionState(R.state)}),m.init(r,s,d),this.addManagedListeners(g,{expandAll:m.doSetExpandedAll.bind(m,!0),collapseAll:m.doSetExpandedAll.bind(m,!1),selectAll:m.doSetSelectedAll.bind(m,!0),unselectAll:m.doSetSelectedAll.bind(m,!1),filterChanged:R=>m.setFilterText(R.filterText)}),this.positionableFeature=this.createManagedBean(new A.PositionableFeature(this.getGui(),{minHeight:100}))}toggleResizable(s){this.positionableFeature.setResizable(s?{bottom:!0}:!1)}expandGroups(s){this.primaryColsListPanel.setGroupsExpanded(!0,s)}collapseGroups(s){this.primaryColsListPanel.setGroupsExpanded(!1,s)}setColumnLayout(s){this.primaryColsListPanel.setColumnLayout(s)}syncLayoutWithGrid(){this.primaryColsListPanel.onColumnsChanged()}getExpandedGroups(){return this.primaryColsListPanel.getExpandedGroups()}}p.AgPrimaryCols=v,p.AgPrimaryColsSelector={selector:"AG-PRIMARY-COLS",component:v}},4312:function(x,p,M){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.AgPrimaryColsHeaderSelector=p.AgPrimaryColsHeader=p.ExpandState=void 0;let A=M(6624);var F;(function(v){v[v.EXPANDED=0]="EXPANDED",v[v.COLLAPSED=1]="COLLAPSED",v[v.INDETERMINATE=2]="INDETERMINATE"})(F||(p.ExpandState=F={}));let D=300;class f extends A.Component{constructor(){super(`<div class="ag-column-select-header" role="presentation">
            <div data-ref="eExpand" class="ag-column-select-header-icon"></div>
            <ag-checkbox data-ref="eSelect" class="ag-column-select-header-checkbox"></ag-checkbox>
            <ag-input-text-field class="ag-column-select-header-filter-wrapper" data-ref="eFilterTextField"></ag-input-text-field>
        </div>`,[A.AgCheckboxSelector,A.AgInputTextFieldSelector]),this.eExpand=A.RefPlaceholder,this.eSelect=A.RefPlaceholder,this.eFilterTextField=A.RefPlaceholder}postConstruct(){this.createExpandIcons(),this.addManagedListeners(this.eExpand,{click:this.onExpandClicked.bind(this),keydown:s=>{s.key===A.KeyCode.SPACE&&(s.preventDefault(),this.onExpandClicked())}}),this.addManagedElementListeners(this.eSelect.getInputElement(),{click:this.onSelectClicked.bind(this)}),this.addManagedPropertyListener("functionsReadOnly",()=>this.onFunctionsReadOnlyPropChanged()),this.eFilterTextField.setAutoComplete(!1).onValueChange(()=>this.onFilterTextChanged()),this.addManagedEventListeners({newColumnsLoaded:this.showOrHideOptions.bind(this)});let u=this.getLocaleTextFunc();this.eSelect.setInputAriaLabel(u("ariaColumnSelectAll","Toggle All Columns Visibility")),this.eFilterTextField.setInputAriaLabel(u("ariaFilterColumnsInput","Filter Columns Input")),this.activateTabIndex([this.eExpand])}onFunctionsReadOnlyPropChanged(){let u=this.gos.get("functionsReadOnly");this.eSelect.setReadOnly(u),this.eSelect.addOrRemoveCssClass("ag-column-select-column-readonly",u)}init(u){this.params=u;let s=this.gos.get("functionsReadOnly");this.eSelect.setReadOnly(s),this.eSelect.addOrRemoveCssClass("ag-column-select-column-readonly",s),this.beans.colModel.ready&&this.showOrHideOptions()}createExpandIcons(){let u=this.beans;this.eExpand.appendChild(this.eExpandChecked=(0,A._createIconNoSpan)("columnSelectOpen",u)),this.eExpand.appendChild(this.eExpandUnchecked=(0,A._createIconNoSpan)("columnSelectClosed",u)),this.eExpand.appendChild(this.eExpandIndeterminate=(0,A._createIconNoSpan)("columnSelectIndeterminate",u)),this.setExpandState(F.EXPANDED)}showOrHideOptions(){var b;let u=this.params,s=!u.suppressColumnFilter,r=!u.suppressColumnSelectAll,d=!u.suppressColumnExpandAll,g=!!((b=this.beans.colModel.colDefCols)!=null&&b.treeDepth),m=this.getLocaleTextFunc();this.eFilterTextField.setInputPlaceholder(m("searchOoo","Search...")),(0,A._setDisplayed)(this.eFilterTextField.getGui(),s),(0,A._setDisplayed)(this.eSelect.getGui(),r),(0,A._setDisplayed)(this.eExpand,d&&g)}onFilterTextChanged(){this.onFilterTextChangedDebounced||(this.onFilterTextChangedDebounced=(0,A._debounce)(this,()=>{let u=this.eFilterTextField.getValue();this.dispatchLocalEvent({type:"filterChanged",filterText:u})},D)),this.onFilterTextChangedDebounced()}onSelectClicked(){this.dispatchLocalEvent({type:this.selectState?"unselectAll":"selectAll"})}onExpandClicked(){this.dispatchLocalEvent({type:this.expandState===F.EXPANDED?"collapseAll":"expandAll"})}setExpandState(u){this.expandState=u,(0,A._setDisplayed)(this.eExpandChecked,u===F.EXPANDED),(0,A._setDisplayed)(this.eExpandUnchecked,u===F.COLLAPSED),(0,A._setDisplayed)(this.eExpandIndeterminate,u===F.INDETERMINATE)}setSelectionState(u){this.selectState=u,this.eSelect.setValue(this.selectState)}}p.AgPrimaryColsHeader=f,p.AgPrimaryColsHeaderSelector={selector:"AG-PRIMARY-COLS-HEADER",component:f}},5853:function(x,p,M){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.AgPrimaryColsListSelector=p.AgPrimaryColsList=void 0;let A=M(6624),F=M(6092),D=M(7904),f=M(4312),v=M(2176),u=M(4781),s=M(3234),r=M(4545),d=M(4224);class g{constructor(k){this.items=k}getRowCount(){return this.items.length}getRow(k){return this.items[k]}}let m="ag-column-select-list";class b extends A.Component{wireBeans(k){this.colModel=k.colModel}constructor(){super(`<div class="${m}" role="presentation"></div>`),this.destroyColumnItemFuncs=[],this.hasLoadedInitialState=!1,this.isInitialState=!1}destroy(){this.destroyColumnTree(),super.destroy()}destroyColumnTree(){this.allColsTree=[],this.destroyColumnItemFuncs.forEach(k=>k()),this.destroyColumnItemFuncs=[]}init(k,R,T){this.params=k,this.allowDragging=R,this.eventType=T,k.suppressSyncLayoutWithGrid||this.addManagedEventListeners({columnMoved:this.onColumnsChanged.bind(this)}),this.addManagedEventListeners({newColumnsLoaded:this.onColumnsChanged.bind(this)});let z=this.fireSelectionChangedEvent.bind(this);this.addManagedEventListeners({columnPivotChanged:z,columnPivotModeChanged:z,columnRowGroupChanged:z,columnValueChanged:z,columnVisible:z,newColumnsLoaded:z}),this.expandGroupsByDefault=!k.contractColumnSelection;let G=this.createManagedBean(new D.VirtualList({cssIdentifier:"column-select",ariaRole:"tree"}));this.virtualList=G,this.appendChild(G.getGui()),G.setComponentCreator((U,X)=>((0,A._setAriaLevel)(X,U.depth+1),this.createComponentFromItem(U,X))),this.colModel.ready&&this.onColumnsChanged(),!k.suppressColumnMove&&this.createManagedBean(new s.PrimaryColsListPanelItemDragFeature(this,G))}createComponentFromItem(k,R){let T=this.allowDragging;if(k.group){let G=new d.ToolPanelColumnGroupComp(k,T,this.eventType,R);return this.createBean(G),G}let z=new r.ToolPanelColumnComp(k,T,this.groupsExist,R);return this.createBean(z),z}onColumnsChanged(){let k=this.params;this.hasLoadedInitialState||(this.hasLoadedInitialState=!0,this.isInitialState=!!k.initialState);let R=this.getExpandedStates(),T=this.colModel.isPivotMode();!k.suppressSyncLayoutWithGrid&&!T?this.buildTreeFromWhatGridIsDisplaying():this.buildTreeFromProvidedColumnDefs(),this.setExpandedStates(R),this.markFilteredColumns(),this.flattenAndFilterModel(),this.isInitialState=!1}getDisplayedColsList(){return this.displayedColsList}getExpandedStates(){let k={};if(this.isInitialState){let{expandedGroupIds:R}=this.params.initialState;return R.forEach(T=>{k[T]=!0}),k}return this.allColsTree?(this.forEachItem(R=>{if(!R.group)return;let T=R.columnGroup;T&&(k[T.getId()]=R.expanded)}),k):{}}setExpandedStates(k){if(!this.allColsTree)return;let{isInitialState:R}=this;this.forEachItem(T=>{if(!T.group)return;let z=T.columnGroup;if(z){let G=k[z.getId()];(G!=null||R)&&(T.expanded=!!G)}})}buildTreeFromWhatGridIsDisplaying(){(0,F.syncLayoutWithGrid)(this.colModel,this.setColumnLayout.bind(this))}setColumnLayout(k){let R=(0,F.toolPanelCreateColumnTree)(this.colModel,k);this.buildListModel(R),this.groupsExist=k.some(T=>T&&typeof T.children!="undefined"),this.markFilteredColumns(),this.flattenAndFilterModel()}buildTreeFromProvidedColumnDefs(){var R;let k=this.colModel;this.buildListModel(k.getColDefColTree()),this.groupsExist=!!((R=k.colDefCols)!=null&&R.treeDepth)}buildListModel(k){let R=this.onColumnExpanded.bind(this),T=Q=>{Q.addEventListener("expandedChanged",R);let oe=Q.removeEventListener.bind(Q,"expandedChanged",R);this.destroyColumnItemFuncs.push(oe)},z=this.beans.colNames,G=(Q,oe,le)=>{Q.forEach(fe=>{(0,A.isProvidedColumnGroup)(fe)?U(fe,oe,le):X(fe,oe,le)})},U=(Q,oe,le)=>{let fe=Q.getColGroupDef();if(fe&&fe.suppressColumnsToolPanel)return;if(Q.isPadding()){G(Q.getChildren(),oe,le);return}let ke=z.getDisplayNameForProvidedColumnGroup(null,Q,"columnToolPanel"),Ie=new v.ColumnModelItem(ke,Q,oe,!0,this.expandGroupsByDefault);le.push(Ie),T(Ie),G(Q.getChildren(),oe+1,Ie.children)},X=(Q,oe,le)=>{if(Q.getColDef()&&Q.getColDef().suppressColumnsToolPanel)return;let ye=z.getDisplayNameForColumn(Q,"columnToolPanel");le.push(new v.ColumnModelItem(ye,Q,oe))};this.destroyColumnTree(),G(k,0,this.allColsTree)}onColumnExpanded(){this.flattenAndFilterModel()}flattenAndFilterModel(){this.displayedColsList=[];let k=z=>{z.passesFilter&&(this.displayedColsList.push(z),z.group&&z.expanded&&z.children.forEach(k))},R=this.virtualList;this.allColsTree.forEach(k),R.setModel(new g(this.displayedColsList));let T=R.getLastFocusedRow();R.refresh(),T!=null&&this.focusRowIfAlive(T),this.notifyListeners(),this.refreshAriaLabel()}refreshAriaLabel(){let k=this.getLocaleTextFunc(),R=k("ariaColumnPanelList","Column List"),T=k("columns","Columns"),z=this.displayedColsList.length;(0,A._setAriaLabel)(this.virtualList.getAriaElement(),`${R} ${z} ${T}`)}focusRowIfAlive(k){window.setTimeout(()=>{this.isAlive()&&this.virtualList.focusRow(k)},0)}forEachItem(k){let R=z=>{z.forEach(G=>{k(G),G.group&&R(G.children)})},T=this.allColsTree;T&&R(T)}doSetExpandedAll(k){this.forEachItem(R=>{R.group&&(R.expanded=k)})}setGroupsExpanded(k,R){if(!R){this.doSetExpandedAll(k);return}let T=[];this.forEachItem(G=>{if(!G.group)return;let U=G.columnGroup.getId();R.indexOf(U)>=0&&(G.expanded=k,T.push(U))});let z=R.filter(G=>!T.includes(G));z.length>0&&(0,A._warn)(157,{unrecognisedGroupIds:z})}getExpandState(){let k=0,R=0;return this.forEachItem(T=>{T.group&&(T.expanded?k++:R++)}),k>0&&R>0?f.ExpandState.INDETERMINATE:R>0?f.ExpandState.COLLAPSED:f.ExpandState.EXPANDED}doSetSelectedAll(k){(0,u.selectAllChildren)(this.beans,this.allColsTree,k,this.eventType)}getSelectionState(){let k=0,R=0,T=this.colModel.isPivotMode();if(this.forEachItem(z=>{if(z.group||!z.passesFilter)return;let G=z.column,U=G.getColDef(),X;if(T){if(!G.isAllowPivot()&&!G.isAllowRowGroup()&&!G.isAllowValue())return;X=G.isValueActive()||G.isPivotActive()||G.isRowGroupActive()}else{if(U.lockVisible)return;X=G.isVisible()}X?k++:R++}),!(k>0&&R>0))return!(k===0||R>0)}setFilterText(k){this.filterText=(0,A._exists)(k)?k.toLowerCase():null,this.markFilteredColumns(),this.flattenAndFilterModel()}markFilteredColumns(){let k=T=>{if(!(0,A._exists)(this.filterText))return!0;let z=T.displayName;return z==null||z.toLowerCase().indexOf(this.filterText)!==-1},R=(T,z)=>{let G=!1;if(T.group){let X=k(T);T.children.forEach(Q=>{let oe=R(Q,X||z);oe&&(G=oe)})}let U=z||G?!0:k(T);return T.passesFilter=U,U};this.allColsTree.forEach(T=>R(T,!1))}notifyListeners(){this.fireGroupExpandedEvent(),this.fireSelectionChangedEvent()}fireGroupExpandedEvent(){let k=this.getExpandState();this.dispatchLocalEvent({type:"groupExpanded",state:k})}fireSelectionChangedEvent(){if(!this.allColsTree)return;let k=this.getSelectionState();this.dispatchLocalEvent({type:"selectionChanged",state:k})}getExpandedGroups(){let k=[];return this.allColsTree&&this.forEachItem(R=>{R.group&&R.expanded&&k.push(R.columnGroup.getId())}),k}}p.AgPrimaryColsList=b,p.AgPrimaryColsListSelector={selector:"AG-PRIMARY-COLS-LIST",component:b}},2176:function(x,p,M){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.ColumnModelItem=void 0;let A=M(6624);class F{constructor(f,v,u,s=!1,r){this.displayName=f,this.depth=u,this.group=s,this.localEventService=new A.LocalEventService,s?(this.columnGroup=v,this._expanded=r,this.children=[]):this.column=v}get expanded(){return!!this._expanded}set expanded(f){f!==this._expanded&&(this._expanded=f,this.localEventService.dispatchEvent({type:"expandedChanged"}))}addEventListener(f,v){this.localEventService.addEventListener(f,v)}removeEventListener(f,v){this.localEventService.removeEventListener(f,v)}}p.ColumnModelItem=F},7367:function(x,p){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.columnToolPanelCSS=void 0,p.columnToolPanelCSS=".ag-column-panel{display:flex;flex:1 1 auto;flex-direction:column;overflow:hidden}.ag-pivot-mode-panel{display:flex;height:var(--ag-header-height)}.ag-pivot-mode-select{align-items:center;display:flex}:where(.ag-ltr) .ag-pivot-mode-select{margin-left:var(--ag-widget-container-horizontal-padding)}:where(.ag-rtl) .ag-pivot-mode-select{margin-right:var(--ag-widget-container-horizontal-padding)}.ag-column-panel-column-select{border-bottom:var(--ag-tool-panel-separator-border)}.ag-column-panel-column-select:where(:nth-child(n+2 of :not(.ag-hidden))){border-top:var(--ag-tool-panel-separator-border)}:where(.ag-column-panel) .ag-column-drop-vertical{flex:1 1 0px;min-height:50px;&:where(:not(.ag-last-column-drop)){border-bottom:var(--ag-tool-panel-separator-border)}}"},4142:function(x,p,M){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.ColumnToolPanel=void 0;let A=M(6624),F=M(1269),D=M(7367);class f extends A.Component{constructor(){super('<div class="ag-column-panel"></div>'),this.initialised=!1,this.childDestroyFuncs=[],this.registerCSS(D.columnToolPanelCSS)}wireBeans(u){this.colToolPanelFactory=u.colToolPanelFactory}setVisible(u){super.setDisplayed(u),u&&!this.initialised&&this.init(this.params)}init(u){let s=this.gos.addGridCommonParams({suppressColumnMove:!1,suppressColumnSelectAll:!1,suppressColumnFilter:!1,suppressColumnExpandAll:!1,contractColumnSelection:!1,suppressPivotMode:!1,suppressRowGroups:!1,suppressValues:!1,suppressPivots:!1,suppressSyncLayoutWithGrid:!1}),r=pe(pe({},s),u);this.params=r;let{childDestroyFuncs:d,colToolPanelFactory:g,gos:m}=this,b=m.isModuleRegistered("SharedPivot"),w=b||m.isModuleRegistered("SharedRowGrouping");!r.suppressPivotMode&&g&&b&&(this.pivotModePanel=g.createPivotModePanel(this,d));let k=this.createBean(new F.AgPrimaryCols);if(this.primaryColsPanel=k,d.push(()=>this.destroyBean(this.primaryColsPanel)),k.init(!0,r,"toolPanelUi"),k.addCssClass("ag-column-panel-column-select"),this.appendChild(k),g){!r.suppressRowGroups&&w&&(this.rowGroupDropZonePanel=g.createRowGroupPanel(this,d)),!r.suppressValues&&w&&(this.valuesDropZonePanel=g.createValuesPanel(this,d)),!r.suppressPivots&&b&&(this.pivotDropZonePanel=g.createPivotPanel(this,d)),this.setLastVisible();let[R]=this.addManagedEventListeners({columnPivotModeChanged:()=>{this.resetChildrenHeight(),this.setLastVisible()}});d.push(()=>R())}this.initialised=!0}setPivotModeSectionVisible(u){let s=this.colToolPanelFactory;s&&(this.pivotModePanel=s.setPanelVisible(this.pivotModePanel,u,s.createPivotModePanel.bind(s,this,this.childDestroyFuncs,!0)),this.setLastVisible())}setRowGroupsSectionVisible(u){let s=this.colToolPanelFactory;s&&(this.rowGroupDropZonePanel=s.setPanelVisible(this.rowGroupDropZonePanel,u,s.createRowGroupPanel.bind(s,this,this.childDestroyFuncs)),this.setLastVisible())}setValuesSectionVisible(u){let s=this.colToolPanelFactory;s&&(this.valuesDropZonePanel=s.setPanelVisible(this.valuesDropZonePanel,u,s.createValuesPanel.bind(s,this,this.childDestroyFuncs)),this.setLastVisible())}setPivotSectionVisible(u){var r;let s=this.colToolPanelFactory;s&&(this.pivotDropZonePanel=s.setPanelVisible(this.pivotDropZonePanel,u,s.createPivotPanel.bind(s,this,this.childDestroyFuncs)),(r=this.pivotDropZonePanel)==null||r.setDisplayed(u),this.setLastVisible())}setResizers(){[this.primaryColsPanel,this.rowGroupDropZonePanel,this.valuesDropZonePanel,this.pivotDropZonePanel].forEach(u=>{if(!u)return;let s=u.getGui();u.toggleResizable(!s.classList.contains("ag-last-column-drop")&&!s.classList.contains("ag-hidden"))})}setLastVisible(){let u=this.getGui();Array.prototype.slice.call(u.querySelectorAll(".ag-column-drop")).forEach(g=>g.classList.remove("ag-last-column-drop"));let r=u.querySelectorAll(".ag-column-drop:not(.ag-hidden)"),d=(0,A._last)(r);d&&d.classList.add("ag-last-column-drop"),this.setResizers()}resetChildrenHeight(){let s=this.getGui().children;for(let r=0;r<s.length;r++){let{style:d}=s[r];d.removeProperty("height"),d.removeProperty("flex")}}expandColumnGroups(u){this.primaryColsPanel.expandGroups(u)}collapseColumnGroups(u){this.primaryColsPanel.collapseGroups(u)}setColumnLayout(u){this.primaryColsPanel.setColumnLayout(u)}syncLayoutWithGrid(){this.primaryColsPanel.syncLayoutWithGrid()}destroyChildren(){let u=this.childDestroyFuncs;u.forEach(s=>s()),u.length=0,(0,A._clearElement)(this.getGui())}refresh(u){return this.destroyChildren(),this.init(u),!0}getState(){return{expandedGroupIds:this.primaryColsPanel.getExpandedGroups()}}destroy(){this.destroyChildren(),super.destroy()}}p.ColumnToolPanel=f},8698:function(x,p,M){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.ColumnToolPanelFactory=void 0;let A=M(6624),F=M(6491),D=M(4552),f=M(3392),v=M(4465);class u extends A.BeanStub{constructor(){super(...arguments),this.beanName="colToolPanelFactory"}setPanelVisible(r,d,g){return r?r.setDisplayed(d):d&&(r=g()),r}createRowGroupPanel(r,d){return this.createPanel(r,d,new D.RowGroupDropZonePanel(!1))}createValuesPanel(r,d){return this.createPanel(r,d,new f.ValuesDropZonePanel(!1))}createPivotPanel(r,d){return this.createPanel(r,d,new F.PivotDropZonePanel(!1))}createPivotModePanel(r,d,g){return this.createPanel(r,d,new v.PivotModePanel,g)}createPanel(r,d,g,m){return g=r.createBean(g),d.push(()=>r.destroyBean(g)),m?r.prependChild(g):r.appendChild(g),g}}p.ColumnToolPanelFactory=u},6455:function(x,p,M){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.ColumnsToolPanelModule=void 0;let A=M(6624),F=M(9206),D=M(6358),f=M(7205),v=M(3375),u=M(4142),s=M(8698);p.ColumnsToolPanelModule={moduleName:"ColumnsToolPanel",version:f.VERSION,beans:[s.ColumnToolPanelFactory],userComponents:{agColumnsToolPanel:u.ColumnToolPanel},icons:{columnsToolPanel:"columns",menuAddRowGroup:"group",menuRemoveRowGroup:"group",pivotPanel:"pivot",rowGroupPanel:"group",valuePanel:"aggregation",columnSelectClosed:"tree-closed",columnSelectOpen:"tree-open",columnSelectIndeterminate:"tree-indeterminate"},dependsOn:[F.EnterpriseCoreModule,D.SideBarModule,A._ColumnMoveModule,A._SharedDragAndDropModule,A._PopupModule,v.MenuItemModule]}},4781:function(x,p,M){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.createPivotState=p.updateColumns=p.setAllColumns=p.selectAllChildren=void 0;let A=M(6624);function F(g,m,b,w){let k=f(m);D(g,k,b,w)}p.selectAllChildren=F;function D(g,m,b,w){g.colModel.isPivotMode()?u(g,m,b,w):v(g,m,b,w)}p.setAllColumns=D;function f(g){let m=[],b=w=>{w.forEach(k=>{k.passesFilter&&(k.group?b(k.children):m.push(k.column))})};return b(g),m}function v(g,m,b,w){var R;let k=[];m.forEach(T=>{T.getColDef().lockVisible||T.isVisible()!=b&&k.push({colId:T.getId(),hide:!b})}),k.length>0&&(0,A._applyColumnState)(g,{state:k},w),(R=g.selectionColSvc)==null||R.refreshVisibility(w)}function u(g,m,b,w){s(g,m,b,w)}function s(g,m,b,w){let k=[],z=b?G=>{var U;if(!G.isAnyFunctionActive())if(G.isAllowValue()){let X=typeof G.getAggFunc()=="string"?G.getAggFunc():(U=g.aggFuncSvc)==null?void 0:U.getDefaultAggFunc(G);k.push({colId:G.getId(),aggFunc:X})}else G.isAllowRowGroup()?k.push({colId:G.getId(),rowGroup:!0}):G.isAllowPivot()&&k.push({colId:G.getId(),pivot:!0})}:G=>{(G.isPivotActive()||G.isRowGroupActive()||G.isValueActive())&&k.push({colId:G.getId(),pivot:!1,rowGroup:!1,aggFunc:null})};m.forEach(z),k.length>0&&(0,A._applyColumnState)(g,{state:k},w)}function r(g,m){let{columns:b,visibleState:w,pivotState:k,eventType:R}=m,T=b.map(z=>{let G=z.getColId();if(g.colModel.isPivotMode()){let U=k==null?void 0:k[G];return{colId:G,pivot:U==null?void 0:U.pivot,rowGroup:U==null?void 0:U.rowGroup,aggFunc:U==null?void 0:U.aggFunc}}else return{colId:G,hide:!(w!=null&&w[G])}});(0,A._applyColumnState)(g,{state:T},R)}p.updateColumns=r;function d(g){return{pivot:g.isPivotActive(),rowGroup:g.isRowGroupActive(),aggFunc:g.isValueActive()?g.getAggFunc():void 0}}p.createPivotState=d},4465:function(x,p,M){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.PivotModePanel=void 0;let A=M(6624);class F extends A.Component{constructor(){super(...arguments),this.cbPivotMode=A.RefPlaceholder}createTemplate(){return`<div class="ag-pivot-mode-panel">
                <ag-toggle-button data-ref="cbPivotMode" class="ag-pivot-mode-select"></ag-toggle-button>
            </div>`}postConstruct(){this.setTemplate(this.createTemplate(),[A.AgToggleButtonSelector]);let f=this.cbPivotMode,{colModel:v,ctrlsSvc:u,gos:s}=this.beans;f.setValue(v.isPivotMode());let r=this.getLocaleTextFunc();f.setLabel(r("pivotMode","Pivot Mode"));let d=()=>{let m=!!f.getValue();m!==v.isPivotMode()&&(s.updateGridOptions({options:{pivotMode:m},source:"toolPanelUi"}),u.getHeaderRowContainerCtrls().forEach(b=>b.refresh()))},g=()=>{let m=v.isPivotMode();f.setValue(m)};this.addManagedListeners(f,{fieldValueChanged:d}),this.addManagedEventListeners({newColumnsLoaded:g,columnPivotModeChanged:g})}}p.PivotModePanel=F},3234:function(x,p,M){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.PrimaryColsListPanelItemDragFeature=void 0;let A=M(6624),F=M(5760),D=M(4224);class f extends A.BeanStub{constructor(u,s){super(),this.comp=u,this.virtualList=s}postConstruct(){this.createManagedBean(new F.VirtualListDragFeature(this.comp,this.virtualList,{dragSourceType:A.DragSourceType.ToolPanel,listItemDragStartEvent:"columnPanelItemDragStart",listItemDragEndEvent:"columnPanelItemDragEnd",eventSource:this.eventSvc,getCurrentDragValue:u=>this.getCurrentDragValue(u),isMoveBlocked:u=>this.isMoveBlocked(u),getNumRows:u=>u.getDisplayedColsList().length,moveItem:(u,s)=>this.moveItem(this.getCurrentColumnsBeingMoved(u),s)}))}getCurrentDragValue(u){return u.column}getCurrentColumnsBeingMoved(u){return(0,A.isProvidedColumnGroup)(u)?u.getLeafColumns():u?[u]:[]}isMoveBlocked(u){return this.gos.get("suppressMovableColumns")?!0:!!this.getCurrentColumnsBeingMoved(u).find(g=>{let m=g.getColDef();return!!m.suppressMovable||!!m.lockPosition})}moveItem(u,s){var b;if(!s)return;let{component:r}=s,d=null,g=s.position==="top";if(r instanceof D.ToolPanelColumnGroupComp?(d=r.getColumns()[0],g=!0):r&&(d=r.column),!d)return;let m=this.getMoveTargetIndex({currentColumns:u,lastHoveredColumn:d,isBefore:g});m!=null&&((b=this.beans.colMoves)==null||b.moveColumns(u,m,"toolPanelUi"))}getMoveTargetIndex(u){let{currentColumns:s,lastHoveredColumn:r,isBefore:d}=u;if(!r||!s)return null;let g=this.beans.colModel.getCols(),m=g.indexOf(r),b=d?m:m+1,w=this.getMoveDiff(g,s,b);return b-w}getMoveDiff(u,s,r){if(!s)return 0;let d=s[0],g=s.length;return u.indexOf(d)<r?g:0}}p.PrimaryColsListPanelItemDragFeature=f},4545:function(x,p,M){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.ToolPanelColumnComp=void 0;let A=M(6624),F=M(4781),D=M(334);class f extends A.Component{constructor(u,s,r,d){super(),this.allowDragging=s,this.groupsExist=r,this.focusWrapper=d,this.eLabel=A.RefPlaceholder,this.cbSelect=A.RefPlaceholder,this.processingColumnStateChange=!1;let{column:g,depth:m,displayName:b}=u;this.column=g,this.columnDept=m,this.displayName=b}postConstruct(){this.setTemplate(`<div class="ag-column-select-column">
                <ag-checkbox data-ref="cbSelect" class="ag-column-select-checkbox"></ag-checkbox>
                <span class="ag-column-select-column-label" data-ref="eLabel"></span>
            </div>`,[A.AgCheckboxSelector]);let{beans:u,cbSelect:s,displayName:r,eLabel:d,columnDept:g,groupsExist:m,column:b,gos:w,focusWrapper:k}=this,R=(0,A._createIconNoSpan)("columnDrag",u);this.eDragHandle=R,R.classList.add("ag-drag-handle","ag-column-select-column-drag-handle");let T=s.getGui(),z=s.getInputElement();T.insertAdjacentElement("afterend",R),z.setAttribute("tabindex","-1");let G=(0,A._escapeString)(r);d.innerHTML=G,m&&this.addCssClass("ag-column-select-add-group-indent"),this.addCssClass(`ag-column-select-indent-${g}`),this.getGui().style.setProperty("--ag-indentation-level",String(g)),this.tooltipFeature=this.createOptionalManagedBean(u.registry.createDynamicBean("tooltipFeature",!1,{getGui:()=>this.getGui(),getLocation:()=>"columnToolPanelColumn",getColDef:()=>b.getColDef(),shouldDisplayTooltip:(0,A._getShouldDisplayTooltip)(w,()=>d)})),this.setupDragging();let U=this.onColumnStateChanged.bind(this);this.addManagedEventListeners({columnPivotModeChanged:U}),this.addManagedListeners(b,{columnValueChanged:U,columnPivotChanged:U,columnRowGroupChanged:U,visibleChanged:U}),this.addManagedListeners(k,{keydown:this.handleKeyDown.bind(this),contextmenu:this.onContextMenu.bind(this)}),this.addManagedPropertyListener("functionsReadOnly",this.onColumnStateChanged.bind(this)),this.addManagedListeners(s,{fieldValueChanged:this.onCheckboxChanged.bind(this)}),this.addManagedElementListeners(d,{click:this.onLabelClicked.bind(this)}),this.onColumnStateChanged(),this.refreshAriaLabel(),this.setupTooltip(),(0,A._getToolPanelClassesFromColDef)(b.getColDef(),w,b,null).forEach(Q=>this.addOrRemoveCssClass(Q,!0))}getColumn(){return this.column}setupTooltip(){let u=()=>{var s;return(s=this.tooltipFeature)==null?void 0:s.setTooltipAndRefresh(this.column.getColDef().headerTooltip)};u(),this.addManagedEventListeners({newColumnsLoaded:u})}onContextMenu(u){let{column:s,gos:r}=this;if(r.get("functionsReadOnly"))return;let d=this.createBean(new D.ToolPanelContextMenu(s,u,this.focusWrapper));this.addDestroyFunc(()=>{d.isAlive()&&this.destroyBean(d)})}handleKeyDown(u){u.key===A.KeyCode.SPACE&&(u.preventDefault(),this.isSelectable()&&this.onSelectAllChanged(!this.isSelected()))}onLabelClicked(){if(this.gos.get("functionsReadOnly"))return;let u=!this.cbSelect.getValue();this.onChangeCommon(u)}onCheckboxChanged(u){this.onChangeCommon(u.selected)}onChangeCommon(u){this.cbSelect.isReadOnly()||(this.refreshAriaLabel(),!this.processingColumnStateChange&&(0,F.setAllColumns)(this.beans,[this.column],u,"toolPanelUi"))}refreshAriaLabel(){let{cbSelect:u,focusWrapper:s,displayName:r}=this,d=this.getLocaleTextFunc(),g=d("ariaColumn","Column"),m=u.getValue()?d("ariaVisible","visible"):d("ariaHidden","hidden"),b=d("ariaToggleVisibility","Press SPACE to toggle visibility");(0,A._setAriaLabel)(s,`${r} ${g}`),this.cbSelect.setInputAriaLabel(`${b} (${m})`),(0,A._setAriaDescribedBy)(s,u.getInputElement().id)}setupDragging(){let u=this.eDragHandle;if(!this.allowDragging){(0,A._setDisplayed)(u,!1);return}let s=this.beans,{gos:r,eventSvc:d,dragAndDrop:g}=s,m=!r.get("suppressDragLeaveHidesColumns"),b={type:A.DragSourceType.ToolPanel,eElement:u,dragItemName:this.displayName,getDefaultIconName:()=>m?"hide":"notAllowed",getDragItem:()=>this.createDragItem(),onDragStarted:()=>{m=!r.get("suppressDragLeaveHidesColumns"),d.dispatchEvent({type:"columnPanelItemDragStart",column:this.column})},onDragStopped:()=>{d.dispatchEvent({type:"columnPanelItemDragEnd"})},onGridEnter:w=>{m&&(0,F.updateColumns)(s,{columns:[this.column],visibleState:w==null?void 0:w.visibleState,pivotState:w==null?void 0:w.pivotState,eventType:"toolPanelUi"})},onGridExit:()=>{m&&this.onChangeCommon(!1)}};g.addDragSource(b,!0),this.addDestroyFunc(()=>g.removeDragSource(b))}createDragItem(){let u=this.column.getColId(),s={[u]:this.column.isVisible()},r={[u]:(0,F.createPivotState)(this.column)};return{columns:[this.column],visibleState:s,pivotState:r}}onColumnStateChanged(){this.processingColumnStateChange=!0;let u=this.beans.colModel.isPivotMode();if(u){let d=this.column.isAnyFunctionActive();this.cbSelect.setValue(d)}else this.cbSelect.setValue(this.column.isVisible());let s=!0,r=!0;if(u){let d=this.gos.get("functionsReadOnly"),g=!this.column.isAnyFunctionAllowed();s=!d&&!g,r=s}else{let{enableRowGroup:d,enableValue:g,lockPosition:m,suppressMovable:b,lockVisible:w}=this.column.getColDef(),k=!!d||!!g,R=!!m||!!b;s=!w,r=k||!R}this.cbSelect.setReadOnly(!s),this.eDragHandle.classList.toggle("ag-column-select-column-readonly",!r),this.addOrRemoveCssClass("ag-column-select-column-readonly",!r&&!s),this.cbSelect.setPassive(!1),this.processingColumnStateChange=!1}getDisplayName(){return this.displayName}onSelectAllChanged(u){let s=this.cbSelect;u!==s.getValue()&&(s.isReadOnly()||s.toggle())}isSelected(){return this.cbSelect.getValue()}isSelectable(){return!this.cbSelect.isReadOnly()}isExpandable(){return!1}setExpanded(u){(0,A._warn)(158)}}p.ToolPanelColumnComp=f},4224:function(x,p,M){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.ToolPanelColumnGroupComp=void 0;let A=M(6624),F=M(4781),D=M(334);class f extends A.Component{constructor(u,s,r,d){super(),this.modelItem=u,this.allowDragging=s,this.eventType=r,this.focusWrapper=d,this.cbSelect=A.RefPlaceholder,this.eLabel=A.RefPlaceholder,this.eGroupOpenedIcon=A.RefPlaceholder,this.eGroupClosedIcon=A.RefPlaceholder,this.eColumnGroupIcons=A.RefPlaceholder,this.processingColumnStateChange=!1;let{columnGroup:g,depth:m,displayName:b}=u;this.columnGroup=g,this.columnDepth=m,this.displayName=b}postConstruct(){this.setTemplate(`<div class="ag-column-select-column-group">
                <span class="ag-column-group-icons" data-ref="eColumnGroupIcons" >
                    <span class="ag-column-group-closed-icon" data-ref="eGroupClosedIcon"></span>
                    <span class="ag-column-group-opened-icon" data-ref="eGroupOpenedIcon"></span>
                </span>
                <ag-checkbox data-ref="cbSelect" class="ag-column-select-checkbox"></ag-checkbox>
                <span class="ag-column-select-column-label" data-ref="eLabel"></span>
            </div>`,[A.AgCheckboxSelector]);let{beans:u,cbSelect:s,eLabel:r,displayName:d,columnDepth:g,modelItem:m,focusWrapper:b,columnGroup:w}=this,{registry:k,gos:R}=u,T=(0,A._createIconNoSpan)("columnDrag",u);this.eDragHandle=T,T.classList.add("ag-drag-handle","ag-column-select-column-group-drag-handle");let z=s.getGui(),G=s.getInputElement();z.insertAdjacentElement("afterend",T),G.setAttribute("tabindex","-1"),r.innerHTML=d!=null?d:"",this.setupExpandContract(),this.addCssClass("ag-column-select-indent-"+g),this.getGui().style.setProperty("--ag-indentation-level",String(g)),this.tooltipFeature=this.createOptionalManagedBean(k.createDynamicBean("tooltipFeature",!1,{getGui:()=>this.getGui(),getLocation:()=>"columnToolPanelColumnGroup",shouldDisplayTooltip:(0,A._getShouldDisplayTooltip)(R,()=>r)})),this.addManagedEventListeners({columnPivotModeChanged:this.onColumnStateChanged.bind(this)}),this.addManagedElementListeners(r,{click:this.onLabelClicked.bind(this)}),this.addManagedListeners(s,{fieldValueChanged:this.onCheckboxChanged.bind(this)}),this.addManagedListeners(m,{expandedChanged:this.onExpandChanged.bind(this)}),this.addManagedListeners(b,{keydown:this.handleKeyDown.bind(this),contextmenu:this.onContextMenu.bind(this)}),this.setOpenClosedIcons(),this.setupDragging(),this.onColumnStateChanged(),this.addVisibilityListenersToAllChildren(),this.refreshAriaExpanded(),this.refreshAriaLabel(),this.setupTooltip(),(0,A._getToolPanelClassesFromColDef)(w.getColGroupDef(),R,null,w).forEach(X=>this.addOrRemoveCssClass(X,!0))}getColumns(){return this.columnGroup.getLeafColumns()}setupTooltip(){let u=this.columnGroup.getColGroupDef();if(!u)return;let s=()=>{var r;return(r=this.tooltipFeature)==null?void 0:r.setTooltipAndRefresh(u.headerTooltip)};s(),this.addManagedEventListeners({newColumnsLoaded:s})}handleKeyDown(u){switch(u.key){case A.KeyCode.LEFT:u.preventDefault(),this.modelItem.expanded=!1;break;case A.KeyCode.RIGHT:u.preventDefault(),this.modelItem.expanded=!0;break;case A.KeyCode.SPACE:u.preventDefault(),this.isSelectable()&&this.onSelectAllChanged(!this.isSelected());break}}onContextMenu(u){let{columnGroup:s,gos:r}=this;if(r.get("functionsReadOnly"))return;let d=this.createBean(new D.ToolPanelContextMenu(s,u,this.focusWrapper));this.addDestroyFunc(()=>{d.isAlive()&&this.destroyBean(d)})}addVisibilityListenersToAllChildren(){let u=this.onColumnStateChanged.bind(this);this.columnGroup.getLeafColumns().forEach(s=>{this.addManagedListeners(s,{visibleChanged:u,columnValueChanged:u,columnPivotChanged:u,columnRowGroupChanged:u})})}setupDragging(){if(!this.allowDragging){(0,A._setDisplayed)(this.eDragHandle,!1);return}let u=this.beans,{gos:s,eventSvc:r,dragAndDrop:d}=u,g=!s.get("suppressDragLeaveHidesColumns"),m={type:A.DragSourceType.ToolPanel,eElement:this.eDragHandle,dragItemName:this.displayName,getDefaultIconName:()=>g?"hide":"notAllowed",getDragItem:()=>this.createDragItem(),onDragStarted:()=>{g=!s.get("suppressDragLeaveHidesColumns"),r.dispatchEvent({type:"columnPanelItemDragStart",column:this.columnGroup})},onDragStopped:()=>{r.dispatchEvent({type:"columnPanelItemDragEnd"})},onGridEnter:b=>{g&&(0,F.updateColumns)(u,{columns:this.columnGroup.getLeafColumns(),visibleState:b==null?void 0:b.visibleState,pivotState:b==null?void 0:b.pivotState,eventType:this.eventType})},onGridExit:()=>{g&&this.onChangeCommon(!1)}};d.addDragSource(m,!0),this.addDestroyFunc(()=>d.removeDragSource(m))}createDragItem(){let u=this.columnGroup.getLeafColumns(),s={},r={};return u.forEach(d=>{let g=d.getId();s[g]=d.isVisible(),r[g]=(0,F.createPivotState)(d)}),{columns:u,visibleState:s,pivotState:r}}setupExpandContract(){let{beans:u,eGroupClosedIcon:s,eGroupOpenedIcon:r,eColumnGroupIcons:d}=this;s.appendChild((0,A._createIcon)("columnSelectClosed",u,null)),r.appendChild((0,A._createIcon)("columnSelectOpen",u,null));let g=this.onExpandOrContractClicked.bind(this);this.addManagedElementListeners(s,{click:g}),this.addManagedElementListeners(r,{click:g});let m=new A.TouchListener(d,!0);this.addManagedListeners(m,{tap:g}),this.addDestroyFunc(m.destroy.bind(m))}onLabelClicked(){let u=!this.cbSelect.getValue();this.onChangeCommon(u)}onCheckboxChanged(u){this.onChangeCommon(u.selected)}getVisibleLeafColumns(){let u=[],s=r=>{r.forEach(d=>{d.passesFilter&&(d.group?s(d.children):u.push(d.column))})};return s(this.modelItem.children),u}onChangeCommon(u){this.refreshAriaLabel(),!this.processingColumnStateChange&&(0,F.selectAllChildren)(this.beans,this.modelItem.children,u,this.eventType)}refreshAriaLabel(){let{cbSelect:u,focusWrapper:s,displayName:r}=this,d=this.getLocaleTextFunc(),g=d("ariaColumnGroup","Column Group"),m=u.getValue(),b=m===void 0?d("ariaIndeterminate","indeterminate"):m?d("ariaVisible","visible"):d("ariaHidden","hidden"),w=d("ariaToggleVisibility","Press SPACE to toggle visibility");(0,A._setAriaLabel)(s,`${r} ${g}`),u.setInputAriaLabel(`${w} (${b})`),(0,A._setAriaDescribedBy)(s,u.getInputElement().id)}onColumnStateChanged(){let u=this.workOutSelectedValue(),s=this.workOutReadOnlyValue();this.processingColumnStateChange=!0;let r=this.cbSelect;r.setValue(u),r.setReadOnly(s),this.addOrRemoveCssClass("ag-column-select-column-group-readonly",s),this.processingColumnStateChange=!1}workOutSelectedValue(){let u=this.beans.colModel.isPivotMode(),s=this.getVisibleLeafColumns(),r=0,d=0;if(s.forEach(g=>{!u&&g.getColDef().lockVisible||(this.isColumnChecked(g,u)?r++:d++)}),!(r>0&&d>0))return r>0}workOutReadOnlyValue(){let u=this.beans.colModel.isPivotMode(),s=0;return this.columnGroup.getLeafColumns().forEach(r=>{u?r.isAnyFunctionAllowed()&&s++:r.getColDef().lockVisible||s++}),s===0}isColumnChecked(u,s){if(s){let r=u.isPivotActive(),d=u.isRowGroupActive(),g=u.isValueActive();return r||d||g}return u.isVisible()}onExpandOrContractClicked(){let u=this.modelItem,s=u.expanded;u.expanded=!s}onExpandChanged(){this.setOpenClosedIcons(),this.refreshAriaExpanded()}setOpenClosedIcons(){let u=this.modelItem.expanded;(0,A._setDisplayed)(this.eGroupClosedIcon,!u),(0,A._setDisplayed)(this.eGroupOpenedIcon,u)}refreshAriaExpanded(){(0,A._setAriaExpanded)(this.focusWrapper,this.modelItem.expanded)}getDisplayName(){return this.displayName}onSelectAllChanged(u){let s=this.cbSelect,r=s.getValue();!s.isReadOnly()&&(u&&!r||!u&&r)&&s.toggle()}isSelected(){return this.cbSelect.getValue()}isSelectable(){return!this.cbSelect.isReadOnly()}setSelected(u){this.cbSelect.setValue(u,!0)}}p.ToolPanelColumnGroupComp=f},334:function(x,p,M){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.ToolPanelContextMenu=void 0;let A=M(6624),F=M(8105),D=M(9476);class f extends A.Component{constructor(u,s,r){super('<div class="ag-menu"></div>'),this.column=u,this.mouseEvent=s,this.parentEl=r,this.displayName=null}postConstruct(){let{column:u,beans:{colNames:s}}=this;this.initializeProperties(u);let r;if((0,A.isColumn)(u)?r=s.getDisplayNameForColumn(u,"columnToolPanel"):r=s.getDisplayNameForProvidedColumnGroup(null,u,"columnToolPanel"),this.displayName=r,this.buildMenuItemMap(),this.isActive()){this.mouseEvent.preventDefault();let d=this.getMappedMenuItems();if(d.length===0)return;this.displayContextMenu(d)}}initializeProperties(u){let s;(0,A.isProvidedColumnGroup)(u)?s=u.getLeafColumns():s=[u],this.columns=s,this.allowGrouping=s.some(r=>r.isPrimary()&&r.isAllowRowGroup()),this.allowValues=s.some(r=>r.isPrimary()&&r.isAllowValue()),this.allowPivoting=this.beans.colModel.isPivotMode()&&s.some(r=>r.isPrimary()&&r.isAllowPivot())}buildMenuItemMap(){let u=this.getLocaleTextFunc(),{beans:s,displayName:r}=this,{rowGroupColsSvc:d,valueColsSvc:g,pivotColsSvc:m,colModel:b}=s,w=new Map;this.menuItemMap=w,w.set("rowGroup",{allowedFunction:k=>k.isPrimary()&&k.isAllowRowGroup()&&!(0,F.isRowGroupColLocked)(k,s),activeFunction:k=>k.isRowGroupActive(),activateLabel:()=>`${u("groupBy","Group by")} ${r}`,deactivateLabel:()=>`${u("ungroupBy","Un-Group by")} ${r}`,activateFunction:()=>d==null?void 0:d.setColumns(this.addColumnsToList(d.columns),"toolPanelUi"),deActivateFunction:()=>d==null?void 0:d.setColumns(this.removeColumnsFromList(d.columns),"toolPanelUi"),addIcon:"menuAddRowGroup",removeIcon:"menuRemoveRowGroup"}),w.set("value",{allowedFunction:k=>k.isPrimary()&&k.isAllowValue(),activeFunction:k=>k.isValueActive(),activateLabel:()=>u("addToValues",`Add ${r} to values`,[r]),deactivateLabel:()=>u("removeFromValues",`Remove ${r} from values`,[r]),activateFunction:()=>g==null?void 0:g.setColumns(this.addColumnsToList(g.columns),"toolPanelUi"),deActivateFunction:()=>g==null?void 0:g.setColumns(this.removeColumnsFromList(g.columns),"toolPanelUi"),addIcon:"valuePanel",removeIcon:"valuePanel"}),w.set("pivot",{allowedFunction:k=>b.isPivotMode()&&k.isPrimary()&&k.isAllowPivot(),activeFunction:k=>k.isPivotActive(),activateLabel:()=>u("addToLabels",`Add ${r} to labels`,[r]),deactivateLabel:()=>u("removeFromLabels",`Remove ${r} from labels`,[r]),activateFunction:()=>m==null?void 0:m.setColumns(this.addColumnsToList(m.columns),"toolPanelUi"),deActivateFunction:()=>m==null?void 0:m.setColumns(this.removeColumnsFromList(m.columns),"toolPanelUi"),addIcon:"pivotPanel",removeIcon:"pivotPanel"})}addColumnsToList(u){return[...u].concat(this.columns.filter(s=>u.indexOf(s)===-1))}removeColumnsFromList(u){return u.filter(s=>this.columns.indexOf(s)===-1)}displayContextMenu(u){let s=this.getGui(),r=this.createBean(new D.AgMenuList),d=this.getLocaleTextFunc(),g=()=>{};s.appendChild(r.getGui()),r.addMenuItems(u),r.addManagedListeners(r,{closeMenu:()=>{this.parentEl.focus(),g()}});let m=this.beans.popupSvc,b=m.addPopup({modal:!0,eChild:s,closeOnEsc:!0,afterGuiAttached:()=>(0,A._focusInto)(r.getGui()),ariaLabel:d("ariaLabelContextMenu","Context Menu"),closedCallback:w=>{w instanceof KeyboardEvent&&this.parentEl.focus(),this.destroyBean(r)}});b&&(g=b.hideFunc),m.positionPopupUnderMouseEvent({type:"columnContextMenu",mouseEvent:this.mouseEvent,ePopup:s})}isActive(){return this.allowGrouping||this.allowValues||this.allowPivoting}getMappedMenuItems(){let u=[],{menuItemMap:s,columns:r,displayName:d,beans:g}=this;for(let m of s.values()){let b=r.some(k=>m.allowedFunction(k)&&!m.activeFunction(k)),w=r.some(k=>m.allowedFunction(k)&&m.activeFunction(k));b&&u.push({name:m.activateLabel(d),icon:(0,A._createIconNoSpan)(m.addIcon,g,null),action:()=>m.activateFunction()}),w&&u.push({name:m.deactivateLabel(d),icon:(0,A._createIconNoSpan)(m.removeIcon,g,null),action:()=>m.deActivateFunction()})}return u}}p.ToolPanelContextMenu=f},2805:function(x,p){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.numberFormatMap=p.INCH_TO_EMU=void 0,p.INCH_TO_EMU=9525,p.numberFormatMap={0:1,"0.00":2,"#,##0":3,"#,##0.00":4,"0%":9,"0.00%":10,"0.00E+00":11,"# ?/?":12,"# ??/??":13,"mm-dd-yy":14,"d-mmm-yy":15,"d-mmm":16,"mmm-yy":17,"h:mm AM/PM":18,"h:mm:ss AM/PM":19,"h:mm":20,"h:mm:ss":21,"m/d/yy h:mm":22,"#,##0 ;(#,##0)":37,"#,##0 ;[Red](#,##0)":38,"#,##0.00;(#,##0.00)":39,"#,##0.00;[Red](#,##0.00)":40,"mm:ss":45,"[h]:mm:ss":46,"mmss.0":47,"##0.0E+0":48,"@":49}},1842:function(x,p){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.convertLegacyVerticalAlignment=p.convertLegacyHorizontalAlignment=p.convertLegacyBorder=p.convertLegacyColor=p.convertLegacyPattern=void 0;let M=m=>{switch(m){case 1:return"thin";case 2:return"medium";case 3:return"thick";default:return"hair"}},A={None:"None",Dot:"Dotted",Dash:"Dashed",Double:"Double",DashDot:"DashDot",DashDotDot:"DashDotDot",SlantDashDot:"SlantDashDot",Continuous:"Continuous"},F=["Dashed","DashDot","DashDotDot"],D={None:"none",Solid:"solid",Gray50:"mediumGray",Gray75:"darkGray",Gray25:"lightGray",HorzStripe:"darkHorizontal",VertStripe:"darkVertical",ReverseDiagStripe:"darkDown",DiagStripe:"darkUp",DiagCross:"darkGrid",ThickDiagCross:"darkTrellis",ThinHorzStripe:"lightHorizontal",ThinVertStripe:"lightVertical",ThinReverseDiagStripe:"lightDown",ThinDiagStripe:"lightUp",ThinHorzCross:"lightGrid",ThinDiagCross:"lightTrellis",Gray125:"gray125",Gray0625:"gray0625"},f={Automatic:"general",Left:"left",Center:"center",Right:"right",Fill:"fill",Justify:"justify",CenterAcrossSelection:"centerContinuous",Distributed:"distributed",JustifyDistributed:"justify"},v={Automatic:void 0,Top:"top",Bottom:"bottom",Center:"center",Justify:"justify",Distributed:"distributed",JustifyDistributed:"justify"},u=m=>m?D[m]||m:"none";p.convertLegacyPattern=u;let s=m=>m==null?m:(m.charAt(0)==="#"&&(m=m.substring(1)),m.length===6?"FF"+m:m);p.convertLegacyColor=s;let r=(m,b)=>{if(!m)return"thin";let w=M(b);if(m==="Continuous")return w;let k=A[m];return w==="medium"&&F.some(R=>R===k)?`medium${k}`:`${k.charAt(0).toLowerCase()}${k.substring(1)}`};p.convertLegacyBorder=r;let d=m=>f[m]||"general";p.convertLegacyHorizontalAlignment=d;let g=m=>v[m]||void 0;p.convertLegacyVerticalAlignment=g},3237:function(x,p,M){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.buildSharedString=p.replaceInvisibleCharacters=p.getExcelColumnName=p.createXmlPart=p.setExcelImageTotalHeight=p.setExcelImageTotalWidth=p.getHeightFromProperty=p.getFontFamilyId=p.pixelsToEMU=p.pointsToPixel=void 0;let A=M(6624),F=M(2805),D=M(5048),f=k=>Math.round(k*96/72);p.pointsToPixel=f;let v=k=>Math.ceil(k*F.INCH_TO_EMU);p.pixelsToEMU=v;let u=k=>{if(k===void 0)return;let T=["Automatic","Roman","Swiss","Modern","Script","Decorative"].indexOf(k||"Automatic");return Math.max(T,0)};p.getFontFamilyId=u;let s=(k,R)=>{if(!R)return;let T;return typeof R=="number"?T=R:T=R({rowIndex:k}),T};p.getHeightFromProperty=s;let r=(k,R)=>{let{colSpan:T,column:z}=k.position;if(k.width)if(T){let G=R.slice(z-1,z+T-1),U=0;for(let X=0;X<G.length;X++){let Q=G[X].getActualWidth();if(k.width<U+Q){k.position.colSpan=X+1,k.totalWidth=k.width,k.width=k.totalWidth-U;break}U+=Q}}else k.totalWidth=k.width};p.setExcelImageTotalWidth=r;let d=(k,R)=>{let{rowSpan:T,row:z}=k.position;if(k.height)if(T){let G=0,U=0;for(let X=z;X<z+T;X++){let Q=(0,p.pointsToPixel)((0,p.getHeightFromProperty)(X,R)||20);if(k.height<G+Q){k.position.rowSpan=U+1,k.totalHeight=k.height,k.height=k.totalHeight-G;break}G+=Q,U++}}else k.totalHeight=k.height};p.setExcelImageTotalHeight=d;let g=(k,R)=>{let T=(0,D.createXmlHeader)({encoding:"UTF-8",standalone:"yes"}),z=(0,D.createXml)(k);return R?z:`${T}${z}`};p.createXmlPart=g;let m=k=>{let z=String.fromCharCode,G=Math.floor(k/26),U=k%26;return!G||k===26?z(65+k-1):U?G<26?z(65+G-1)+z(65+U-1):(0,p.getExcelColumnName)(G)+z(65+U-1):(0,p.getExcelColumnName)(G-1)+"Z"};p.getExcelColumnName=m;let b=k=>{if(k==null)return null;let R="";for(let T=0;T<k.length;T++){let z=k.charCodeAt(T);if(z>=0&&z<=31&&z!==10){let X=`_x${z.toString(16).toUpperCase().padStart(4,"0")}_`;R+=X}else R+=k[T]}return R};p.replaceInvisibleCharacters=b;let w=k=>{let R=[];for(let T of k.keys()){let z=T.toString(),G={name:"t",textNode:(0,A._escapeString)((0,p.replaceInvisibleCharacters)(z),!1)};z.trim().length!==z.length&&(G.properties={rawMap:{"xml:space":"preserve"}}),R.push({name:"si",children:[G]})}return R};p.buildSharedString=w},5048:function(x,p){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.createXml=p.createXmlHeader=void 0;let M=`\r
`;function A(f,v,u){if(!v&&v!==""&&v!==0)return"";let s=v;return typeof v=="boolean"&&u&&(s=u(v)),` ${f}="${s}"`}function F(f={}){let v="<?",u="?>",s=["version"];f.version||(f.version="1.0"),f.encoding&&s.push("encoding"),f.standalone&&s.push("standalone");let r=s.map(d=>`${d}="${f[d]}"`).join(" ");return`${v}xml ${r} ${u}`}p.createXmlHeader=F;function D(f,v){let u="";f.properties&&(f.properties.prefixedAttributes&&f.properties.prefixedAttributes.forEach(r=>{Object.keys(r.map).forEach(d=>{u+=A(r.prefix+d,r.map[d],v)})}),f.properties.rawMap&&Object.keys(f.properties.rawMap).forEach(r=>{u+=A(r,f.properties.rawMap[r],v)}));let s="<"+f.name+u;return!f.children&&f.textNode==null?s+"/>"+M:f.textNode!=null?s+">"+f.textNode+"</"+f.name+">"+M:(s+=">"+M,f.children&&f.children.forEach(r=>{s+=D(r,v)}),s+"</"+f.name+">"+M)}p.createXml=D},1790:function(x,p,M){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.ExcelCreator=p.exportMultipleSheetsAsExcel=p.getMultipleSheetsAsExcel=void 0;let A=M(6624),F=M(5103),D=M(7165),f=M(541),v=M(5950),u=z=>{if(z.addFolders(["_rels/","docProps/","xl/","xl/theme/","xl/_rels/","xl/worksheets/"]),!D.XLSX_IMAGES.size)return;z.addFolders(["xl/worksheets/_rels","xl/drawings/","xl/drawings/_rels","xl/media/"]);let G=0;D.XLSX_IMAGES.forEach(U=>{let X=U[0].image[0],{base64:Q,imageType:oe}=X;z.addFile(`xl/media/image${++G}.${(0,f._normaliseImageExtension)(oe)}`,Q,!0)})},s=(z,G)=>{let U=0,X=0;for(let Q=0;Q<G.length;Q++){let oe=G[Q];z.addFile(`xl/worksheets/sheet${Q+1}.xml`,oe,!1);let le=D.XLSX_IMAGES.size>0&&D.XLSX_WORKSHEET_IMAGES.has(Q),fe=D.XLSX_WORKSHEET_DATA_TABLES.size>0&&D.XLSX_WORKSHEET_DATA_TABLES.get(Q),ye=D.XLSX_IMAGES.size&&D.XLSX_WORKSHEET_HEADER_FOOTER_IMAGES.has(Q);if(!le&&!fe&&!ye)continue;let ke,Ie,ze;le&&(r(z,Q,U),Ie=U,U++),ye&&(d(z,Q,X),ze=X,X++),fe&&(ke=fe.name);let Ye=`xl/worksheets/_rels/sheet${Q+1}.xml.rels`;z.addFile(Ye,(0,D.createXlsxRelationships)({tableName:ke,drawingIndex:Ie,vmlDrawingIndex:ze}))}},r=(z,G,U)=>{let X="xl/drawings",Q=`${X}/drawing${U+1}.xml`,oe=`${X}/_rels/drawing${U+1}.xml.rels`;z.addFile(oe,(0,D.createXlsxDrawingRel)(G)),z.addFile(Q,(0,D.createXlsxDrawing)(G))},d=(z,G,U)=>{let X="xl/drawings",Q=`${X}/vmlDrawing${U+1}.vml`,oe=`${X}/_rels/vmlDrawing${U+1}.vml.rels`;z.addFile(Q,(0,D.createXlsxVmlDrawing)(G)),z.addFile(oe,(0,D.createXlsxVmlDrawingRel)(G))},g=z=>{let G=D.XLSX_WORKSHEET_DATA_TABLES,U=Array.from(G.keys());for(let X=0;X<U.length;X++){let Q=U[X],oe=G.get(Q);oe&&z.addFile(`xl/tables/${oe.name}.xml`,(0,D.createXlsxTable)(oe,X))}},m=(z,G,U,X,Q)=>{z.addFile("xl/workbook.xml",(0,D.createXlsxWorkbook)(Q)),z.addFile("xl/styles.xml",(0,D.createXlsxStylesheet)(G)),z.addFile("xl/sharedStrings.xml",(0,D.createXlsxSharedStrings)()),z.addFile("xl/theme/theme1.xml",(0,D.createXlsxTheme)()),z.addFile("xl/_rels/workbook.xml.rels",(0,D.createXlsxWorkbookRels)(X)),z.addFile("docProps/core.xml",(0,D.createXlsxCore)(U)),z.addFile("[Content_Types].xml",(0,D.createXlsxContentTypes)(X)),z.addFile("_rels/.rels",(0,D.createXlsxRels)())},b=(z,G,U={})=>{if(!G||G.length===0)return(0,A._warn)(159),(0,D.resetXlsxFactory)(),!1;let{fontSize:X=11,author:Q="AG Grid",activeTab:oe=0}=U,le=G.length,fe=Math.max(Math.min(oe,le-1),0);return u(z),g(z),s(z,G),m(z,X,Q,le,fe),(0,D.resetXlsxFactory)(),!0},w=z=>{let{data:G,fontSize:U,author:X,activeSheetIndex:Q}=z,oe=z.mimeType||"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",le=new v.ZipContainer;return b(le,G,{author:X,fontSize:U,activeTab:Q})?le.getZipFile(oe):Promise.resolve(void 0)},k=z=>{let{data:G,fontSize:U,author:X,activeSheetIndex:Q}=z,oe=z.mimeType||"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",le=new v.ZipContainer;if(b(le,G,{author:X,fontSize:U,activeTab:Q}))return le.getUncompressedZipFile(oe)};p.getMultipleSheetsAsExcel=k;let R=z=>{let{fileName:G="export.xlsx"}=z;w(z).then(U=>{if(U){let X=typeof G=="function"?G():G;(0,A._downloadFile)(X,U)}})};p.exportMultipleSheetsAsExcel=R;class T extends A.BaseCreator{constructor(){super(...arguments),this.beanName="excelCreator"}getMergedParams(G){let U=this.gos.get("defaultExcelExportParams");return Object.assign({},U,G)}export(G){if(this.isExportSuppressed()){(0,A._warn)(160);return}let U=this.getMergedParams(G),Q={data:[this.getData(U)],fontSize:U.fontSize,author:U.author,mimeType:U.mimeType};this.packageCompressedFile(Q).then(oe=>{if(oe){let{fileName:le}=U,fe=typeof le=="function"?le(this.gos.getGridCommonParams()):le;(0,A._downloadFile)(this.getFileName(fe),oe)}})}exportDataAsExcel(G){this.export(G)}getDataAsExcel(G){let U=this.getMergedParams(G),Q={data:[this.getData(U)],fontSize:U.fontSize,author:U.author,mimeType:U.mimeType};return this.packageFile(Q)}setFactoryMode(G){(0,D.setXlsxFactoryMode)(G)}getFactoryMode(){return(0,D.getXlsxFactoryMode)()}getSheetDataForExcel(G){let U=this.getMergedParams(G);return this.getData(U)}getMultipleSheetsAsExcel(G){return(0,p.getMultipleSheetsAsExcel)(G)}exportMultipleSheetsAsExcel(G){(0,p.exportMultipleSheetsAsExcel)(G)}getDefaultFileExtension(){return"xlsx"}createSerializingSession(G){var ye;let{colModel:U,colNames:X,rowGroupColsSvc:Q,valueSvc:oe,gos:le}=this.beans,fe=et(pe({},G),{colModel:U,colNames:X,rowGroupColsSvc:Q,valueSvc:oe,gos:le,suppressRowOutline:G.suppressRowOutline||G.skipRowGroups,headerRowHeight:G.headerRowHeight||G.rowHeight,baseExcelStyles:le.get("excelStyles")||[],rightToLeft:(ye=G.rightToLeft)!=null?ye:le.get("enableRtl"),styleLinker:this.styleLinker.bind(this)});return new F.ExcelSerializingSession(fe)}styleLinker(G){let{rowType:U,rowIndex:X,value:Q,column:oe,columnGroup:le,node:fe}=G,ye=U==="HEADER",ke=U==="HEADER_GROUPING",Ie=ye?oe:le,ze=[],{gos:Ye,cellStyles:xe}=this.beans;if(ye||ke)return ze.push("header"),ke&&ze.push("headerGroup"),Ie&&(ze=ze.concat((0,A._getHeaderClassesFromColDef)(Ie.getDefinition(),Ye,oe||null,le||null))),ze;let Te=Ye.get("excelStyles"),Ae=["cell"];if(!Te||!Te.length)return Ae;let Ne=Te.map(Oe=>Oe.id),Re=oe.getDefinition();return xe==null||xe.processAllCellClasses(Re,Ye.addGridCommonParams({value:Q,data:fe.data,node:fe,colDef:Re,column:oe,rowIndex:X}),Oe=>{Ne.indexOf(Oe)>-1&&Ae.push(Oe)}),Ae.sort((Oe,Ve)=>Ne.indexOf(Oe)<Ne.indexOf(Ve)?-1:1)}isExportSuppressed(){return this.gos.get("suppressExcelExport")}packageCompressedFile(G){return w(G)}packageFile(G){return(0,p.getMultipleSheetsAsExcel)(G)}}p.ExcelCreator=T},4760:function(x,p,M){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.exportMultipleSheetsAsExcel=p.getMultipleSheetsAsExcel=p.getSheetDataForExcel=p.exportDataAsExcel=p.getDataAsExcel=void 0;let A=M(6624);function F(r){var d;return((d=r.excelCreator)==null?void 0:d.getFactoryMode())==="MULTI_SHEET"?((0,A._warn)(161),!1):!0}function D(r,d){var g;if(F(r))return(g=r.excelCreator)==null?void 0:g.getDataAsExcel(d)}p.getDataAsExcel=D;function f(r,d){var g;F(r)&&((g=r.excelCreator)==null||g.exportDataAsExcel(d))}p.exportDataAsExcel=f;function v(r,d){var g,m;return(g=r.excelCreator)==null||g.setFactoryMode("MULTI_SHEET"),(m=r.excelCreator)==null?void 0:m.getSheetDataForExcel(d)}p.getSheetDataForExcel=v;function u(r,d){var g;return(g=r.excelCreator)==null?void 0:g.getMultipleSheetsAsExcel(d)}p.getMultipleSheetsAsExcel=u;function s(r,d){var g;(g=r.excelCreator)==null||g.exportMultipleSheetsAsExcel(d)}p.exportMultipleSheetsAsExcel=s},2886:function(x,p,M){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.ExcelExportModule=void 0;let A=M(6624),F=M(9206),D=M(7205),f=M(1790),v=M(4760);p.ExcelExportModule={moduleName:"ExcelExport",version:D.VERSION,beans:[f.ExcelCreator],apiFunctions:{getDataAsExcel:v.getDataAsExcel,exportDataAsExcel:v.exportDataAsExcel,getSheetDataForExcel:v.getSheetDataForExcel,getMultipleSheetsAsExcel:v.getMultipleSheetsAsExcel,exportMultipleSheetsAsExcel:v.exportMultipleSheetsAsExcel},dependsOn:[A._SharedExportModule,F.EnterpriseCoreModule]}},5103:function(x,p,M){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.ExcelSerializingSession=void 0;let A=M(6624),F=M(3237),D=M(7165);class f extends A.BaseGridSerializingSession{constructor(u){super(u),this.mixedStyles={},this.mixedStyleCounter=0,this.rows=[],this.frozenRowCount=0,this.skipFrozenRows=!1,this.frozenColumnCount=0,this.skipFrozenColumns=!1,this.config=Object.assign({},u),this.stylesByIds={},this.config.baseExcelStyles.forEach(s=>{this.stylesByIds[s.id]=s}),this.excelStyles=[...this.config.baseExcelStyles,{id:"_quotePrefix",quotePrefix:1}]}addCustomContent(u){u.forEach(s=>{let r=this.rows.length+1,d;!this.config.suppressRowOutline&&s.outlineLevel!=null&&(d=s.outlineLevel);let g={height:(0,F.getHeightFromProperty)(r,s.height||this.config.rowHeight),cells:(s.cells||[]).map((m,b)=>{var G,U,X;let w=this.addImage(r,this.columnsToExport[b],(G=m.data)==null?void 0:G.value),k=null;m.styleId&&(k=typeof m.styleId=="string"?[m.styleId]:m.styleId);let R=this.getStyleId(k);if(w)return this.createCell(R,this.getDataTypeForValue(w.value),w.value==null?"":w.value);let T=(X=(U=m.data)==null?void 0:U.value)!=null?X:"",z=this.getDataTypeForValue(T);return m.mergeAcross?this.createMergedCell(R,z,T,m.mergeAcross):this.createCell(R,z,T)}),outlineLevel:d};s.collapsed!=null&&(g.collapsed=s.collapsed),s.hidden!=null&&(g.hidden=s.hidden),this.rows.push(g)})}onNewHeaderGroupingRow(){let u=[],{freezeRows:s,headerRowHeight:r}=this.config;return this.rows.push({cells:u,height:(0,F.getHeightFromProperty)(this.rows.length+1,r)}),s&&this.frozenRowCount++,{onColumn:(d,g,m,b,w)=>{let k=this.config.styleLinker({rowType:"HEADER_GROUPING",rowIndex:1,value:`grouping-${g}`,columnGroup:d});u.push(et(pe({},this.createMergedCell(this.getStyleId(k),this.getDataTypeForValue("string"),g,b)),{collapsibleRanges:w}))}}}onNewHeaderRow(){let{freezeRows:u,headerRowHeight:s}=this.config;return u&&this.frozenRowCount++,this.onNewRow(this.onNewHeaderColumn,s)}onNewBodyRow(u){let{freezeRows:s,rowHeight:r}=this.config;this.skipFrozenRows||(s==="headersAndPinnedRows"&&(u==null?void 0:u.rowPinned)==="top"?this.frozenRowCount++:typeof s=="function"?s(et(pe({},this.gos.getGridCommonParams()),{node:u}))?this.frozenRowCount++:this.skipFrozenRows=!0:this.skipFrozenRows=!0);let d=this.onNewRow(this.onNewBodyColumn,r);return u&&this.addRowOutlineIfNecessary(u),d}prepare(u){super.prepare(u),this.columnsToExport=[...u],this.cols=u.map((s,r)=>this.convertColumnToExcel(s,r))}parse(){let u=this.rows.reduce((g,m)=>Math.max(g,m.cells.length),0);for(;this.cols.length<u;)this.cols.push(this.convertColumnToExcel(null,this.cols.length+1));let{config:s}=this,r;if(s.sheetName!=null){let{sheetName:g}=s,m=typeof g=="function"?g(this.gos.getGridCommonParams()):g;r=String(m).substring(0,31)}else r="ag-grid";let d={name:r,table:{columns:this.cols,rows:this.rows}};return this.createExcel(d)}addRowOutlineIfNecessary(u){let{gos:s,suppressRowOutline:r,rowGroupExpandState:d="expanded"}=this.config;if(s.get("groupHideOpenParents")||r||u.level==null)return;let m=u.footer?1:0,b=(0,A._last)(this.rows),w=Math.min(u.level+m,7);if(b.outlineLevel=w,d==="expanded")return;let k=d==="collapsed";if(u.isExpandable()){let R=!k&&u.expanded;b.collapsed=!R}b.hidden=!!u.parent&&u.parent.level!==-1&&(k||this.isAnyParentCollapsed(u.parent))}isAnyParentCollapsed(u){for(;u&&u.level!==-1;){if(!u.expanded)return!0;u=u.parent}return!1}convertColumnToExcel(u,s){let r=this.config.columnWidth,d=u?this.extractHeaderValue(u):void 0,g=d!=null?d:"",m=u?u.isFilterAllowed():!1;return r?typeof r=="number"?{width:r,displayName:g,filterAllowed:m}:{width:r({column:u,index:s}),displayName:g,filterAllowed:m}:u?{width:Math.max(u.getActualWidth(),75),displayName:g,filterAllowed:m}:{displayName:g,filterAllowed:m}}onNewHeaderColumn(u,s){return r=>{let d=this.extractHeaderValue(r),g=this.config.styleLinker({rowType:"HEADER",rowIndex:u,value:d,column:r});s.push(this.createCell(this.getStyleId(g),this.getDataTypeForValue("string"),d))}}onNewBodyColumn(u,s){let r=0,{freezeColumns:d,rightToLeft:g}=this.config;return(m,b,w)=>{if(r>0){r-=1;return}if(!this.skipFrozenColumns){let X=m.getPinned();d==="pinned"&&X&&(X===!0||X==="left")!==g?this.frozenColumnCount++:typeof d=="function"&&d(et(pe({},this.gos.getGridCommonParams()),{column:m}))?this.frozenColumnCount++:this.skipFrozenColumns=!0}let{value:k,valueFormatted:R}=this.extractRowCellValue(m,b,u,"excel",w),T=this.config.styleLinker({rowType:"BODY",rowIndex:u,value:k,column:m,node:w}),z=this.getStyleId(T),G=m.getColSpan(w),U=this.addImage(u,m,k);U?s.push(this.createCell(z,this.getDataTypeForValue(U.value),U.value==null?"":U.value)):G>1?(r=G-1,s.push(this.createMergedCell(z,this.getDataTypeForValue(k),k,G-1))):s.push(this.createCell(z,this.getDataTypeForValue(k),k,R))}}onNewRow(u,s){let r=[];return this.rows.push({cells:r,height:(0,F.getHeightFromProperty)(this.rows.length+1,s)}),{onColumn:u.bind(this,this.rows.length,r)()}}createExcel(u){let{excelStyles:s,config:r}=this;return this.frozenColumnCount&&(r.frozenColumnCount=this.frozenColumnCount),this.frozenRowCount&&(r.frozenRowCount=this.frozenRowCount),(0,D.createXlsxExcel)(s,u,r)}getDataTypeForValue(u){return u===void 0?"empty":this.isNumerical(u)?"n":"s"}getTypeFromStyle(u,s){if(this.isFormula(s))return"f";if(u&&u.dataType)switch(u.dataType.toLocaleLowerCase()){case"formula":return"f";case"string":return"s";case"number":return"n";case"datetime":return"d";case"error":return"e";case"boolean":return"b";default:(0,A._warn)(162,{id:u.id,dataType:u.dataType})}return null}addImage(u,s,r){if(!this.config.addImageToCell)return;let d=this.config.addImageToCell(u,s,r);if(d)return(0,D.addXlsxBodyImageToMap)(d.image,u,s,this.columnsToExport,this.config.rowHeight),d}createCell(u,s,r,d){let g=this.getStyleById(u);!(g!=null&&g.dataType)&&s==="s"&&d&&(r=d);let m=this.getTypeFromStyle(g,r)||s,{value:b,escaped:w}=this.getCellValue(m,r),k=[];return g&&k.push(u),w&&k.push("_quotePrefix"),u=this.getStyleId(k)||void 0,{styleId:u,data:{type:m,value:b}}}createMergedCell(u,s,r,d){let g=r==null?"":r;return{styleId:this.getStyleById(u)?u:void 0,data:{type:s,value:s==="s"?(0,D.getXlsxStringPosition)(g).toString():r},mergeAcross:d}}getCellValue(u,s){let r=!1;if(s==null||u==="s"&&s==="")return{value:"",escaped:!1};if(u==="s")s&&s[0]==="'"&&(r=!0,s=s.slice(1)),s=(0,D.getXlsxStringPosition)(s).toString();else if(u==="f")s=s.slice(1);else if(u==="n"){let d=Number(s);isNaN(d)?s="":s!==""&&(s=d.toString())}return{value:s,escaped:r}}getStyleId(u){if(!u||!u.length)return null;if(u.length===1)return u[0];let s=u.join("-");return this.mixedStyles[s]||this.addNewMixedStyle(u),this.mixedStyles[s].excelID}deepCloneObject(u){return JSON.parse(JSON.stringify(u))}addNewMixedStyle(u){this.mixedStyleCounter+=1;let s=`mixedStyle${this.mixedStyleCounter}`,r={};for(let g of u)for(let m of this.excelStyles)m.id===g&&(0,A._mergeDeep)(r,this.deepCloneObject(m));r.id=s;let d=u.join("-");this.mixedStyles[d]={excelID:s,key:d,result:r},this.excelStyles.push(r),this.stylesByIds[s]=r}isFormula(u){return u==null?!1:this.config.autoConvertFormulas&&u.toString().startsWith("=")}isNumerical(u){return typeof u=="bigint"?!0:isFinite(u)&&u!==""&&!isNaN(parseFloat(u))}getStyleById(u){return u==null?null:this.stylesByIds[u]||null}}p.ExcelSerializingSession=f},7165:function(x,p,M){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.createXlsxRelationships=p.createXlsxVmlDrawingRel=p.createXlsxVmlDrawing=p.createXlsxDrawingRel=p.createXlsxDrawing=p.createXlsxWorkbookRels=p.createXlsxTable=p.createXlsxTheme=p.createXlsxRels=p.createXlsxContentTypes=p.createXlsxCore=p.createXlsxSharedStrings=p.createXlsxStylesheet=p.createXlsxWorkbook=p.resetXlsxFactory=p.getXlsxStringPosition=p.addXlsxBodyImageToMap=p.addXlsxHeaderFooterImageToMap=p.addXlsxTableToSheet=p.getXlsxSanitizedTableName=p.showExcelTableNonCompatibleFeaturesWarning=p.createXlsxExcel=p.setXlsxFactoryMode=p.getXlsxFactoryMode=p.DEFAULT_TABLE_DISPLAY_NAME=p.XLSX_WORKSHEET_DATA_TABLES=p.XLSX_WORKSHEET_IMAGE_IDS=p.XLSX_WORKBOOK_IMAGE_IDS=p.XLSX_WORKSHEET_HEADER_FOOTER_IMAGES=p.XLSX_WORKSHEET_IMAGES=p.XLSX_IMAGES=void 0;let A=M(5608),F=M(6624),D=M(3237),f=A.__importStar(M(541)),v=A.__importDefault(M(1528)),u=A.__importDefault(M(6161)),s=A.__importDefault(M(7348)),r=A.__importDefault(M(1126)),d=A.__importStar(M(3056)),g=A.__importDefault(M(859)),m=A.__importDefault(M(6316)),b=A.__importDefault(M(5592)),w=A.__importDefault(M(2519)),k=A.__importDefault(M(559)),R=new Map,T=[];p.XLSX_IMAGES=new Map,p.XLSX_WORKSHEET_IMAGES=new Map,p.XLSX_WORKSHEET_HEADER_FOOTER_IMAGES=new Map,p.XLSX_WORKBOOK_IMAGE_IDS=new Map,p.XLSX_WORKSHEET_IMAGE_IDS=new Map,p.XLSX_WORKSHEET_DATA_TABLES=new Map,p.DEFAULT_TABLE_DISPLAY_NAME="AG-GRID-TABLE";let z="SINGLE_SHEET";function G(){return z}p.getXlsxFactoryMode=G;function U(Et){z=Et}p.setXlsxFactoryMode=U;function X(Et,Yt,Tt){ze(Yt),(0,d.registerStyles)(Et,T.length);let Ft=Object.assign({},Tt);return Tt.exportAsExcelTable&&(Tt.colModel.isPivotActive()&&(Q("pivot mode"),Ft.exportAsExcelTable=!1),Tt.gos.get("masterDetail")&&(Q("master/detail"),Ft.exportAsExcelTable=!1)),fe(Yt,Ft),kt(Yt,Ft)}p.createXlsxExcel=X;function Q(Et){(0,F._warn)(163,{featureName:Et})}p.showExcelTableNonCompatibleFeaturesWarning=Q;function oe(Et){return Et.replace(/^[^a-zA-Z_]+/,"_").replace(/\s/g,"_").replace(/[^a-zA-Z0-9_]/g,"_")}p.getXlsxSanitizedTableName=oe;function le(Et,Yt){if(p.XLSX_WORKSHEET_DATA_TABLES.has(Et)){(0,F._warn)(164);return}p.XLSX_WORKSHEET_DATA_TABLES.set(Et,Yt)}p.addXlsxTableToSheet=le;function fe(Et,Yt){var ka;let{exportAsExcelTable:Tt,prependContent:Ft,appendContent:Bt,colModel:Xt}=Yt;if(!Tt)return;let ii=typeof Tt=="boolean"?{}:Tt,{name:Ci,showColumnStripes:_i,showRowStripes:yn,showFilterButton:Tn,highlightFirstColumn:ma,highlightLastColumn:Ho}=ii,Ar=oe(Ci||p.DEFAULT_TABLE_DISPLAY_NAME),ll=T.length-1,{table:eo}=Et,{rows:Nr,columns:rn}=eo,Wo=(0,F._getHeaderRowCount)(Xt),Mo=Ft?Ft.length:0,Ps=Bt?Bt.length:0,Un=Nr.length,Ls=rn.length,la=[],uo=[];for(let $n=0;$n<Ls;$n++){let to=rn[$n];la.push(to.displayName||""),uo.push(Tn==="match"||Tn===void 0?(ka=to.filterAllowed)!=null?ka:!1:Tn)}if(!la||!la.length||!Un||!Ar){(0,F._warn)(165);return}le(ll,{name:`table${p.XLSX_WORKSHEET_DATA_TABLES.size+1}`,displayName:Ar,columns:la,showFilterButtons:uo,rowRange:[Wo+Mo,Wo+(Un-Wo)-Ps],showRowStripes:yn!=null?yn:!0,showColumnStripes:_i!=null?_i:!1,highlightFirstColumn:ma!=null?ma:!1,highlightLastColumn:Ho!=null?Ho:!1})}function ye(Et,Yt){let Tt=T.length-1,Ft=Et;Ft.headerFooterPosition=Yt,Ie({imageToAdd:Ft,idx:Tt});let Bt=p.XLSX_WORKSHEET_HEADER_FOOTER_IMAGES.get(Tt);Bt||(Bt=[],p.XLSX_WORKSHEET_HEADER_FOOTER_IMAGES.set(Tt,Bt)),Bt.find(Xt=>Xt.id===Et.id)||Bt.push(Et)}p.addXlsxHeaderFooterImageToMap=ye;function ke(Et,Yt,Tt,Ft,Bt){let Xt=T.length,{row:ii,column:Ci}=Et.position||{},_i=Et;Ft&&(Yt!=null&&Tt!=null&&(!ii||!Ci)&&(Et.position||(Et.position={}),Et.position=Object.assign({},Et.position,{row:Yt,column:Ft.indexOf(Tt)+1})),(0,D.setExcelImageTotalWidth)(_i,Ft),(0,D.setExcelImageTotalHeight)(_i,Bt)),Ie({imageToAdd:_i,idx:Xt});let yn=p.XLSX_WORKSHEET_IMAGE_IDS.get(Xt);yn||(yn=new Map,p.XLSX_WORKSHEET_IMAGE_IDS.set(Xt,yn));let Tn=p.XLSX_WORKSHEET_IMAGES.get(Xt);Tn?Tn.push(_i):p.XLSX_WORKSHEET_IMAGES.set(Xt,[_i]),yn.get(Et.id)||yn.set(Et.id,{index:yn.size,type:Et.imageType})}p.addXlsxBodyImageToMap=ke;function Ie(Et){let{imageToAdd:Yt,idx:Tt}=Et,Ft=p.XLSX_IMAGES.get(Yt.id);if(Ft){let Bt=Ft.find(Xt=>Xt.sheetId===Tt);Bt?Bt.image.push(Yt):Ft.push({sheetId:Tt,image:[Yt]})}else p.XLSX_IMAGES.set(Yt.id,[{sheetId:Tt,image:[Yt]}]),p.XLSX_WORKBOOK_IMAGE_IDS.set(Yt.id,{type:Yt.imageType,index:p.XLSX_WORKBOOK_IMAGE_IDS.size})}function ze(Et){let Yt=(0,F._escapeString)(Et.name)||"",Tt="";for(;T.indexOf(`${Yt}${Tt}`)!==-1;)Tt===""?Tt="_1":Tt=`_${parseInt(Tt.slice(1),10)+1}`;Et.name=`${Yt}${Tt}`,T.push(Et.name)}function Ye(Et){return R.has(Et)?R.get(Et):(R.set(Et,R.size),R.size-1)}p.getXlsxStringPosition=Ye;function xe(){R.clear(),p.XLSX_IMAGES.clear(),p.XLSX_WORKSHEET_IMAGES.clear(),p.XLSX_WORKSHEET_HEADER_FOOTER_IMAGES.clear(),p.XLSX_WORKBOOK_IMAGE_IDS.clear(),p.XLSX_WORKSHEET_IMAGE_IDS.clear(),p.XLSX_WORKSHEET_DATA_TABLES.clear(),T=[],z="SINGLE_SHEET"}p.resetXlsxFactory=xe;function Te(Et){return(0,D.createXmlPart)(w.default.getTemplate(T,Et))}p.createXlsxWorkbook=Te;function Ae(Et){return(0,D.createXmlPart)(d.default.getTemplate(Et))}p.createXlsxStylesheet=Ae;function Ne(){return(0,D.createXmlPart)(r.default.getTemplate(R))}p.createXlsxSharedStrings=Ne;function Re(Et){return(0,D.createXmlPart)(v.default.getTemplate(Et))}p.createXlsxCore=Re;function Oe(Et){return(0,D.createXmlPart)(f.default.getTemplate(Et))}p.createXlsxContentTypes=Oe;function Ve(){let Et=s.default.getTemplate([{Id:"rId1",Type:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument",Target:"xl/workbook.xml"},{Id:"rId2",Type:"http://schemas.openxmlformats.org/package/2006/relationships/metadata/core-properties",Target:"docProps/core.xml"}]);return(0,D.createXmlPart)(Et)}p.createXlsxRels=Ve;function Ue(){return(0,D.createXmlPart)(m.default.getTemplate())}p.createXlsxTheme=Ue;function Ee(Et,Yt){return(0,D.createXmlPart)(g.default.getTemplate(Et,Yt))}p.createXlsxTable=Ee;function tt(Et){let Yt=new Array(Et).fill(void 0).map((Ft,Bt)=>({Id:`rId${Bt+1}`,Type:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/worksheet",Target:`worksheets/sheet${Bt+1}.xml`})),Tt=s.default.getTemplate([...Yt,{Id:`rId${Et+1}`,Type:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/theme",Target:"theme/theme1.xml"},{Id:`rId${Et+2}`,Type:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/styles",Target:"styles.xml"},{Id:`rId${Et+3}`,Type:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/sharedStrings",Target:"sharedStrings.xml"}]);return(0,D.createXmlPart)(Tt)}p.createXlsxWorkbookRels=tt;function at(Et){return(0,D.createXmlPart)(u.default.getTemplate({sheetIndex:Et}))}p.createXlsxDrawing=at;function ut(Et){let Yt=p.XLSX_WORKSHEET_IMAGE_IDS.get(Et)||[],Tt=[];for(let[Ft,Bt]of Yt){let{index:Xt,type:ii}=Bt;Tt.push({Id:`rId${Xt+1}`,Type:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/image",Target:`../media/image${p.XLSX_WORKBOOK_IMAGE_IDS.get(Ft).index+1}.${(0,f._normaliseImageExtension)(ii)}`})}return(0,D.createXmlPart)(s.default.getTemplate(Tt))}p.createXlsxDrawingRel=ut;function Mt(Et){return(0,D.createXmlPart)(b.default.getTemplate({sheetIndex:Et}),!0)}p.createXlsxVmlDrawing=Mt;function St(Et){let Yt=p.XLSX_WORKSHEET_HEADER_FOOTER_IMAGES.get(Et)||[],Tt=[];for(let Ft=0;Ft<Yt.length;Ft++){let Bt=Yt[Ft],Xt=p.XLSX_WORKBOOK_IMAGE_IDS.get(Bt.id);if(!Xt)continue;let{index:ii,type:Ci}=Xt;Tt.push({Id:`rId${Ft+1}`,Type:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/image",Target:`../media/image${ii+1}.${(0,f._normaliseImageExtension)(Ci)}`})}return(0,D.createXmlPart)(s.default.getTemplate(Tt))}p.createXlsxVmlDrawingRel=St;function ft({drawingIndex:Et,vmlDrawingIndex:Yt,tableName:Tt}={}){if(Et===void 0&&Yt===void 0&&Tt===void 0)return"";let Ft=[];Et!=null&&Ft.push({Id:`rId${Ft.length+1}`,Type:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/drawing",Target:`../drawings/drawing${Et+1}.xml`}),Yt!=null&&Ft.push({Id:`rId${Ft.length+1}`,Type:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/vmlDrawing",Target:`../drawings/vmlDrawing${Yt+1}.vml`}),Tt!=null&&Ft.push({Id:`rId${Ft.length+1}`,Type:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/table",Target:`../tables/${Tt}.xml`});let Bt=s.default.getTemplate(Ft);return(0,D.createXmlPart)(Bt)}p.createXlsxRelationships=ft;function kt(Et,Yt){return(0,D.createXmlPart)(k.default.getTemplate({worksheet:Et,currentSheet:T.length-1,config:Yt}))}},3391:function(x,p,M){"use strict";Object.defineProperty(p,"__esModule",{value:!0});let A=M(6624),F=M(3237),D=M(3056),f=u=>{let s=u.charAt(0).toLowerCase();return s==="s"?"inlineStr":s},v={getTemplate(u,s,r){let{ref:d,data:g,styleId:m}=u,{type:b,value:w}=g||{type:"empty",value:null},k=b;b==="f"?k="str":b.charAt(0)===b.charAt(0).toUpperCase()&&(k=f(b));let R={name:"c",properties:{rawMap:{r:d,t:k==="empty"?void 0:k,s:m?(0,D.getStyleId)(m,r):void 0}}};if(k==="empty")return R;let T;return k==="str"&&b==="f"?T=[{name:"f",textNode:(0,A._escapeString)((0,F.replaceInvisibleCharacters)(w),!1)}]:k==="inlineStr"?T=[{name:"is",children:[{name:"t",textNode:(0,A._escapeString)((0,F.replaceInvisibleCharacters)(w),!1)}]}]:T=[{name:"v",textNode:w}],Object.assign({},R,{children:T})}};p.default=v},3285:function(x,p){"use strict";Object.defineProperty(p,"__esModule",{value:!0});let M=F=>Math.ceil((F-12)/7+1),A={getTemplate(F){let{min:D,max:f,outlineLevel:v,s:u,width:s,hidden:r,bestFit:d}=F,g=1,m="0";return s>1&&(g=M(s),m="1"),{name:"col",properties:{rawMap:{min:D,max:f,outlineLevel:v!=null?v:void 0,width:g,style:u,hidden:r?"1":"0",bestFit:d?"1":"0",customWidth:m}}}}};p.default=A},2654:function(x,p){"use strict";Object.defineProperty(p,"__esModule",{value:!0});let M={getTemplate(A){let{name:F,ContentType:D,Extension:f,PartName:v}=A;return{name:F,properties:{rawMap:{Extension:f,PartName:v,ContentType:D}}}}};p.default=M},541:function(x,p,M){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p._normaliseImageExtension=void 0;let A=M(5608),F=M(7165),D=A.__importDefault(M(2654)),f=u=>u==="jpg"?"jpeg":u;p._normaliseImageExtension=f;let v={getTemplate(u){let s=new Array(u).fill(void 0).map((R,T)=>({name:"Override",ContentType:"application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml",PartName:`/xl/worksheets/sheet${T+1}.xml`})),r=F.XLSX_WORKSHEET_IMAGES.size,d=F.XLSX_WORKSHEET_HEADER_FOOTER_IMAGES.size,g={};F.XLSX_WORKBOOK_IMAGE_IDS.forEach(R=>{g[(0,p._normaliseImageExtension)(R.type)]=!0});let m=new Array(r).fill(void 0).map((R,T)=>({name:"Override",ContentType:"application/vnd.openxmlformats-officedocument.drawing+xml",PartName:`/xl/drawings/drawing${T+1}.xml`})),b=[];F.XLSX_WORKSHEET_DATA_TABLES.forEach(({name:R})=>{b.push({name:"Override",ContentType:"application/vnd.openxmlformats-officedocument.spreadsheetml.table+xml",PartName:`/xl/tables/${R}.xml`})});let w=Object.keys(g).map(R=>({name:"Default",ContentType:`image/${R}`,Extension:R}));d&&w.push({name:"Default",Extension:"vml",ContentType:"application/vnd.openxmlformats-officedocument.vmlDrawing"});let k=[...w,{name:"Default",Extension:"rels",ContentType:"application/vnd.openxmlformats-package.relationships+xml"},{name:"Default",ContentType:"application/xml",Extension:"xml"},{name:"Override",ContentType:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml",PartName:"/xl/workbook.xml"},...s,{name:"Override",ContentType:"application/vnd.openxmlformats-officedocument.theme+xml",PartName:"/xl/theme/theme1.xml"},{name:"Override",ContentType:"application/vnd.openxmlformats-officedocument.spreadsheetml.styles+xml",PartName:"/xl/styles.xml"},{name:"Override",ContentType:"application/vnd.openxmlformats-officedocument.spreadsheetml.sharedStrings+xml",PartName:"/xl/sharedStrings.xml"},...m,...b,{name:"Override",ContentType:"application/vnd.openxmlformats-package.core-properties+xml",PartName:"/docProps/core.xml"}].map(R=>D.default.getTemplate(R));return{name:"Types",properties:{rawMap:{xmlns:"http://schemas.openxmlformats.org/package/2006/content-types"}},children:k}}};p.default=v},1528:function(x,p){"use strict";Object.defineProperty(p,"__esModule",{value:!0});let M={getTemplate(A){let D=new Date().toJSON();return{name:"cp:coreProperties",properties:{prefixedAttributes:[{prefix:"xmlns:",map:{cp:"http://schemas.openxmlformats.org/package/2006/metadata/core-properties",dc:"http://purl.org/dc/elements/1.1/",dcterms:"http://purl.org/dc/terms/",dcmitype:"http://purl.org/dc/dcmitype/",xsi:"http://www.w3.org/2001/XMLSchema-instance"}}]},children:[{name:"dc:creator",textNode:A},{name:"dc:title",textNode:"Workbook"},{name:"dcterms:created",properties:{rawMap:{"xsi:type":"dcterms:W3CDTF"}},textNode:D},{name:"dcterms:modified",properties:{rawMap:{"xsi:type":"dcterms:W3CDTF"}},textNode:D}]}}};p.default=M},6161:function(x,p,M){"use strict";Object.defineProperty(p,"__esModule",{value:!0});let A=M(3237),F=M(7165),D=(w,k)=>({name:`xdr:${w}`,children:[{name:"xdr:col",textNode:k.col.toString()},{name:"xdr:colOff",textNode:k.offsetX.toString()},{name:"xdr:row",textNode:k.row.toString()},{name:"xdr:rowOff",textNode:k.offsetY.toString()}]}),f=w=>{let k=[{name:"a:ext",properties:{rawMap:{uri:"{FF2B5EF4-FFF2-40B4-BE49-F238E27FC236}"}},children:[{name:"a16:creationId",properties:{rawMap:{id:"{822E6D20-D7BC-2841-A643-D49A6EF008A2}","xmlns:a16":"http://schemas.microsoft.com/office/drawing/2014/main"}}}]}];switch(w.recolor&&w.recolor.toLowerCase()){case"grayscale":case"sepia":case"washout":k.push({name:"a:ext",properties:{rawMap:{uri:"{C183D7F6-B498-43B3-948B-1728B52AA6E4}"}},children:[{name:"adec:decorative",properties:{rawMap:{val:"0","xmlns:adec":"http://schemas.microsoft.com/office/drawing/2017/decorative"}}}]})}return{name:"a:extLst",children:k}},v=(w,k)=>({name:"xdr:nvPicPr",children:[{name:"xdr:cNvPr",properties:{rawMap:{id:k,name:w.id,descr:w.altText!=null?w.altText:void 0}},children:[f(w)]},{name:"xdr:cNvPicPr",properties:{rawMap:{preferRelativeResize:"0"}},children:[{name:"a:picLocks"}]}]}),u=w=>{if(!w.saturation&&!w.tint)return;let k=[];return w.saturation&&k.push({name:"a:satMod",properties:{rawMap:{val:w.saturation*1e3}}}),w.tint&&k.push({name:"a:tint",properties:{rawMap:{val:w.tint*1e3}}}),k},s=(w,k)=>({name:"a:duotone",children:[{name:"a:prstClr",properties:{rawMap:{val:w.color}},children:u(w)},{name:"a:srgbClr",properties:{rawMap:{val:k.color}},children:u(k)}]}),r=(w,k)=>{let R;if(w.transparency){let T=Math.min(Math.max(w.transparency,0),100);R=[{name:"a:alphaModFix",properties:{rawMap:{amt:1e5-Math.round(T*1e3)}}}]}if(w.recolor)switch(R||(R=[]),w.recolor.toLocaleLowerCase()){case"grayscale":R.push({name:"a:grayscl"});break;case"sepia":R.push(s({color:"black"},{color:"D9C3A5",tint:50,saturation:180}));break;case"washout":R.push({name:"a:lum",properties:{rawMap:{bright:"70000",contrast:"-70000"}}});break;default:}return{name:"xdr:blipFill",children:[{name:"a:blip",properties:{rawMap:{cstate:"print","r:embed":`rId${k}`,"xmlns:r":"http://schemas.openxmlformats.org/officeDocument/2006/relationships"}},children:R},{name:"a:stretch",children:[{name:"a:fillRect"}]}]}},d=(w,k)=>{let R={name:"a:xfrm",children:[{name:"a:off",properties:{rawMap:{x:0,y:0}}},{name:"a:ext",properties:{rawMap:{cx:k.width,cy:k.height}}}]};if(w.rotation){let G=w.rotation;R.properties={rawMap:{rot:Math.min(Math.max(G,0),360)*6e4}}}return{name:"xdr:spPr",children:[R,{name:"a:prstGeom",properties:{rawMap:{prst:"rect"}},children:[{name:"a:avLst"}]}]}},g=w=>{w.fitCell=!!w.fitCell||!w.width||!w.height;let{position:k={},fitCell:R,width:T=0,height:z=0,totalHeight:G,totalWidth:U}=w,{offsetX:X=0,offsetY:Q=0,row:oe=1,rowSpan:le=1,column:fe=1,colSpan:ye=1}=k;return{from:{row:oe-1,col:fe-1,offsetX:(0,A.pixelsToEMU)(X),offsetY:(0,A.pixelsToEMU)(Q)},to:{row:oe-1+(R?1:le-1),col:fe-1+(R?1:ye-1),offsetX:(0,A.pixelsToEMU)(T+X),offsetY:(0,A.pixelsToEMU)(z+Q)},height:(0,A.pixelsToEMU)(G||z),width:(0,A.pixelsToEMU)(U||T)}},m=(w,k,R,T)=>({name:"xdr:pic",children:[v(w,k+1),r(w,R+1),d(w,T)]}),b={getTemplate(w){let{sheetIndex:k}=w,R=F.XLSX_WORKSHEET_IMAGES.get(k),T=F.XLSX_WORKSHEET_IMAGE_IDS.get(k),z=R.map((G,U)=>{let X=g(G);return{name:"xdr:twoCellAnchor",properties:{rawMap:{editAs:"absolute"}},children:[D("from",X.from),D("to",X.to),m(G,U,T.get(G.id).index,X),{name:"xdr:clientData"}]}});return{name:"xdr:wsDr",properties:{rawMap:{"xmlns:a":"http://schemas.openxmlformats.org/drawingml/2006/main","xmlns:xdr":"http://schemas.openxmlformats.org/drawingml/2006/spreadsheetDrawing"}},children:z}}};p.default=b},1775:function(x,p){"use strict";Object.defineProperty(p,"__esModule",{value:!0});let M={getTemplate(A){return{name:"mergeCell",properties:{rawMap:{ref:A}}}}};p.default=M},637:function(x,p){"use strict";Object.defineProperty(p,"__esModule",{value:!0});let M={getTemplate(A){let{Id:F,Type:D,Target:f}=A;return{name:"Relationship",properties:{rawMap:{Id:F,Type:D,Target:f}}}}};p.default=M},7348:function(x,p,M){"use strict";Object.defineProperty(p,"__esModule",{value:!0});let F=M(5608).__importDefault(M(637)),D={getTemplate(f){let v=f.map(u=>F.default.getTemplate(u));return{name:"Relationships",properties:{rawMap:{xmlns:"http://schemas.openxmlformats.org/package/2006/relationships"}},children:v}}};p.default=D},7067:function(x,p,M){"use strict";Object.defineProperty(p,"__esModule",{value:!0});let A=M(5608),F=M(3237),D=A.__importDefault(M(3391)),f=(s,r)=>{let d=[],g=0;for(let m=0;m<s.length;m++){let b=s[m];b.mergeAcross&&(d.push({pos:m,excelPos:g}),g+=b.mergeAcross),g++}if(d.length)for(let m=d.length-1;m>=0;m--){let b=[],w=s[d[m].pos];for(let k=1;k<=w.mergeAcross;k++)b.push({ref:`${(0,F.getExcelColumnName)(d[m].excelPos+1+k)}${r+1}`,styleId:w.styleId,data:{type:"empty",value:null}});b.length&&s.splice(d[m].pos+1,0,...b)}},v=s=>{var r;return((r=s.data)==null?void 0:r.value)!==""||s.styleId!==void 0},u={getTemplate(s,r,d){let{collapsed:g,hidden:m,height:b,outlineLevel:w,cells:k=[]}=s;f(k,r);let R=k.filter(v).map((T,z)=>D.default.getTemplate(T,z,d));return{name:"row",properties:{rawMap:{r:r+1,collapsed:g?"1":"0",hidden:m?"1":"0",ht:b,customHeight:b!=null?"1":"0",spans:"1:1",outlineLevel:w||void 0}},children:R}}};p.default=u},1126:function(x,p,M){"use strict";Object.defineProperty(p,"__esModule",{value:!0});let A=M(3237),F={getTemplate(D){return{name:"sst",properties:{rawMap:{xmlns:"http://schemas.openxmlformats.org/spreadsheetml/2006/main",count:D.size,uniqueCount:D.size}},children:(0,A.buildSharedString)(D)}}};p.default=F},7440:function(x,p){"use strict";Object.defineProperty(p,"__esModule",{value:!0});let M={getTemplate(A,F){let D=(F+1).toString();return{name:"sheet",properties:{rawMap:{name:A,sheetId:D,"r:id":`rId${D}`}}}}};p.default=M},2023:function(x,p,M){"use strict";Object.defineProperty(p,"__esModule",{value:!0});let F=M(5608).__importDefault(M(7440)),D={getTemplate(f){return{name:"sheets",children:f.map((v,u)=>F.default.getTemplate(v,u))}}};p.default=D},1951:function(x,p,M){"use strict";Object.defineProperty(p,"__esModule",{value:!0});let A=M(1842),F=f=>{let u=["Context","LeftToRight","RightToLeft"].indexOf(f);return Math.max(u,0)},D={getTemplate(f){let{horizontal:v,indent:u,readingOrder:s,rotate:r,shrinkToFit:d,vertical:g,wrapText:m}=f;return{name:"alignment",properties:{rawMap:{horizontal:v&&(0,A.convertLegacyHorizontalAlignment)(v),indent:u,readingOrder:s&&F(s),textRotation:r,shrinkToFit:d,vertical:g&&(0,A.convertLegacyVerticalAlignment)(g),wrapText:m}}}}};p.default=D},3142:function(x,p,M){"use strict";Object.defineProperty(p,"__esModule",{value:!0});let A=M(1842),F=f=>({name:"color",properties:{rawMap:{rgb:(0,A.convertLegacyColor)(f||"#000000")}}}),D={getTemplate(f){let{left:v,right:u,top:s,bottom:r,diagonal:d}=f,g=v?[F(v.color)]:void 0,m=u?[F(u.color)]:void 0,b=s?[F(s.color)]:void 0,w=r?[F(r.color)]:void 0,k=d?[F(d.color)]:void 0;return{name:"border",children:[{name:"left",properties:{rawMap:{style:v&&v.style}},children:g},{name:"right",properties:{rawMap:{style:u&&u.style}},children:m},{name:"top",properties:{rawMap:{style:s&&s.style}},children:b},{name:"bottom",properties:{rawMap:{style:r&&r.style}},children:w},{name:"diagonal",properties:{rawMap:{style:d&&d.style}},children:k}]}}};p.default=D},773:function(x,p,M){"use strict";Object.defineProperty(p,"__esModule",{value:!0});let F=M(5608).__importDefault(M(3142)),D={getTemplate(f){return{name:"borders",properties:{rawMap:{count:f.length}},children:f.map(v=>F.default.getTemplate(v))}}};p.default=D},5271:function(x,p){"use strict";Object.defineProperty(p,"__esModule",{value:!0});let M={getTemplate(A){let{builtinId:F,name:D,xfId:f}=A;return{name:"cellStyle",properties:{rawMap:{builtinId:F,name:D,xfId:f}}}}};p.default=M},4100:function(x,p,M){"use strict";Object.defineProperty(p,"__esModule",{value:!0});let F=M(5608).__importDefault(M(7234)),D={getTemplate(f){return{name:"cellStyleXfs",properties:{rawMap:{count:f.length}},children:f.map(v=>F.default.getTemplate(v))}}};p.default=D},3246:function(x,p,M){"use strict";Object.defineProperty(p,"__esModule",{value:!0});let F=M(5608).__importDefault(M(5271)),D={getTemplate(f){return{name:"cellStyles",properties:{rawMap:{count:f.length}},children:f.map(v=>F.default.getTemplate(v))}}};p.default=D},4473:function(x,p,M){"use strict";Object.defineProperty(p,"__esModule",{value:!0});let F=M(5608).__importDefault(M(7234)),D={getTemplate(f){return{name:"cellXfs",properties:{rawMap:{count:f.length}},children:f.map(v=>F.default.getTemplate(v))}}};p.default=D},3153:function(x,p){"use strict";Object.defineProperty(p,"__esModule",{value:!0});let M={getTemplate(A){let{patternType:F,fgTheme:D,fgTint:f,fgRgb:v,bgRgb:u,bgIndexed:s}=A,r={name:"patternFill",properties:{rawMap:{patternType:F}}};return(D||f||v)&&(r.children=[{name:"fgColor",properties:{rawMap:{theme:D,tint:f,rgb:v}}}]),(s||u)&&(r.children||(r.children=[]),r.children.push({name:"bgColor",properties:{rawMap:{indexed:s,rgb:u}}})),{name:"fill",children:[r]}}};p.default=M},9392:function(x,p,M){"use strict";Object.defineProperty(p,"__esModule",{value:!0});let F=M(5608).__importDefault(M(3153)),D={getTemplate(f){return{name:"fills",properties:{rawMap:{count:f.length}},children:f.map(v=>F.default.getTemplate(v))}}};p.default=D},585:function(x,p){"use strict";Object.defineProperty(p,"__esModule",{value:!0});let M={getTemplate(A){let{size:F,colorTheme:D,color:f="FF000000",fontName:v="Calibri",family:u,scheme:s,italic:r,bold:d,strikeThrough:g,outline:m,shadow:b,underline:w,verticalAlign:k}=A,R=[{name:"sz",properties:{rawMap:{val:F}}},{name:"color",properties:{rawMap:{theme:D,rgb:f}}},{name:"name",properties:{rawMap:{val:v}}}];return u&&R.push({name:"family",properties:{rawMap:{val:u}}}),s&&R.push({name:"scheme",properties:{rawMap:{val:s}}}),r&&R.push({name:"i"}),d&&R.push({name:"b"}),g&&R.push({name:"strike"}),m&&R.push({name:"outline"}),b&&R.push({name:"shadow"}),w&&R.push({name:"u",properties:{rawMap:{val:w}}}),k&&R.push({name:"vertAlign",properties:{rawMap:{val:k}}}),{name:"font",children:R}}};p.default=M},3704:function(x,p,M){"use strict";Object.defineProperty(p,"__esModule",{value:!0});let F=M(5608).__importDefault(M(585)),D={getTemplate(f){return{name:"fonts",properties:{rawMap:{count:f.length}},children:f.map(v=>F.default.getTemplate(v))}}};p.default=D},7282:function(x,p,M){"use strict";Object.defineProperty(p,"__esModule",{value:!0});let A=M(6624);function F(f){let v=f.split(/(\[[^\]]*\])/);for(let u=0;u<v.length;u++){let s=v[u];s.length&&(s.startsWith("[")||(s=s.replace(/\$/g,'"$"')),v[u]=(0,A._escapeString)(s))}return v.join("")}let D={getTemplate(f){let{formatCode:v,numFmtId:u}=f;return v.length&&(v=F(v)),{name:"numFmt",properties:{rawMap:{formatCode:v,numFmtId:u}}}}};p.default=D},5305:function(x,p,M){"use strict";Object.defineProperty(p,"__esModule",{value:!0});let F=M(5608).__importDefault(M(7282)),D={getTemplate(f){return{name:"numFmts",properties:{rawMap:{count:f.length}},children:f.map(v=>F.default.getTemplate(v))}}};p.default=D},8187:function(x,p){"use strict";Object.defineProperty(p,"__esModule",{value:!0});let M={getTemplate(A){let F=A.protected===!1?0:1;return{name:"protection",properties:{rawMap:{hidden:A.hideFormula===!0?1:0,locked:F}}}}};p.default=M},3056:function(x,p,M){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.registerStyles=p.getStyleId=void 0;let A=M(5608),F=M(2805),D=M(1842),f=M(3237),v=A.__importDefault(M(773)),u=A.__importDefault(M(4100)),s=A.__importDefault(M(3246)),r=A.__importDefault(M(4473)),d=A.__importDefault(M(9392)),g=A.__importDefault(M(3704)),m=A.__importDefault(M(5305)),b,w,k,R,T,z,G,U,X,Q=(Te,Ae)=>(Te.indexOf("mixedStyle")!==-1&&Ae>1&&(Te+=`_${Ae}`),Te),oe=()=>{b={base:0},w=[],k=[{fontName:"Calibri",colorTheme:"1",family:"2",scheme:"minor"}],R=[{patternType:"none"},{patternType:"gray125"}],T=[{left:void 0,right:void 0,top:void 0,bottom:void 0,diagonal:void 0}],z=[{borderId:0,fillId:0,fontId:0,numFmtId:0}],G=[{borderId:0,fillId:0,fontId:0,numFmtId:0,xfId:0}],U=[{builtinId:0,name:"Normal",xfId:0}]},le=Te=>{let Ae=(0,D.convertLegacyPattern)(Te.pattern),Ne=(0,D.convertLegacyColor)(Te.color),Re=(0,D.convertLegacyColor)(Te.patternColor),Oe=R.findIndex(Ve=>{let{patternType:Ue,fgRgb:Ee,bgRgb:tt}=Ve;return!(Ue!=Ae||Ee!=Ne||tt!=Re)});return Oe===-1&&(Oe=R.length,R.push({patternType:Ae,fgRgb:Ne,bgRgb:Re})),Oe},fe=Te=>{if(F.numberFormatMap[Te])return F.numberFormatMap[Te];let Ae=w.findIndex(Ne=>Ne.formatCode===Te);return Ae===-1?(Ae=w.length+164,w.push({formatCode:Te,numFmtId:Ae})):Ae=w[Ae].numFmtId,Ae},ye=Te=>{let{borderBottom:Ae,borderTop:Ne,borderLeft:Re,borderRight:Oe}=Te,Ve,Ue,Ee,tt,at,ut,Mt,St;Re&&(Ee=(0,D.convertLegacyBorder)(Re.lineStyle,Re.weight),Mt=(0,D.convertLegacyColor)(Re.color)),Oe&&(tt=(0,D.convertLegacyBorder)(Oe.lineStyle,Oe.weight),St=(0,D.convertLegacyColor)(Oe.color)),Ae&&(Ve=(0,D.convertLegacyBorder)(Ae.lineStyle,Ae.weight),at=(0,D.convertLegacyColor)(Ae.color)),Ne&&(Ue=(0,D.convertLegacyBorder)(Ne.lineStyle,Ne.weight),ut=(0,D.convertLegacyColor)(Ne.color));let ft=T.findIndex(kt=>{let{left:Et,right:Yt,top:Tt,bottom:Ft}=kt;if(!Et&&(Ee||Mt)||!Yt&&(tt||St)||!Tt&&(Ue||ut)||!Ft&&(Ve||at))return!1;let{style:Bt,color:Xt}=Et||{},{style:ii,color:Ci}=Yt||{},{style:_i,color:yn}=Tt||{},{style:Tn,color:ma}=Ft||{};return!(Bt!=Ee||Xt!=Mt||ii!=tt||Ci!=St||_i!=Ue||yn!=ut||Tn!=Ve||ma!=at)});return ft===-1&&(ft=T.length,T.push({left:{style:Ee,color:Mt},right:{style:tt,color:St},top:{style:Ue,color:ut},bottom:{style:Ve,color:at},diagonal:{style:void 0,color:void 0}})),ft},ke=Te=>{let{fontName:Ae="Calibri",color:Ne,size:Re,bold:Oe,italic:Ve,outline:Ue,shadow:Ee,strikeThrough:tt,underline:at,family:ut,verticalAlign:Mt}=Te,St=(0,D.convertLegacyColor)(Ne),ft=(0,f.getFontFamilyId)(ut),kt=at?at.toLocaleLowerCase():void 0,Et=Mt?Mt.toLocaleLowerCase():void 0,Yt=k.findIndex(Tt=>!(Tt.fontName!=Ae||Tt.color!=St||Tt.size!=Re||Tt.bold!=Oe||Tt.italic!=Ve||Tt.outline!=Ue||Tt.shadow!=Ee||Tt.strikeThrough!=tt||Tt.underline!=kt||Tt.verticalAlign!=Et||Tt.family!=ft));return Yt===-1&&(Yt=k.length,k.push({fontName:Ae,color:St,size:Re,bold:Oe,italic:Ve,outline:Ue,shadow:Ee,strikeThrough:tt,underline:kt,verticalAlign:Et,family:ft!=null?ft.toString():void 0})),Yt},Ie=Te=>{let{alignment:Ae,borders:Ne,font:Re,interior:Oe,numberFormat:Ve,protection:Ue,quotePrefix:Ee}=Te,{id:tt}=Te,at=0,ut=0,Mt=0,St=0;tt&&(tt=Q(tt,X),b[tt]==null&&(Oe&&(at=le(Oe)),Ne&&(ut=ye(Ne)),Re&&(Mt=ke(Re)),Ve&&(St=fe(Ve.format)),b[tt]=G.length,G.push({alignment:Ae,borderId:ut||0,fillId:at||0,fontId:Mt||0,numFmtId:St||0,protection:Ue,quotePrefix:Ee,xfId:0})))},ze={getTemplate(Te){let Ae=m.default.getTemplate(w),Ne=g.default.getTemplate(k.map(tt=>et(pe({},tt),{size:tt.size!=null?tt.size:Te}))),Re=d.default.getTemplate(R),Oe=v.default.getTemplate(T),Ve=u.default.getTemplate(z),Ue=r.default.getTemplate(G),Ee=s.default.getTemplate(U);return oe(),{name:"styleSheet",properties:{rawMap:{"mc:Ignorable":"x14ac x16r2 xr",xmlns:"http://schemas.openxmlformats.org/spreadsheetml/2006/main","xmlns:mc":"http://schemas.openxmlformats.org/markup-compatibility/2006","xmlns:x14ac":"http://schemas.microsoft.com/office/spreadsheetml/2009/9/ac","xmlns:x16r2":"http://schemas.microsoft.com/office/spreadsheetml/2015/02/main","xmlns:xr":"http://schemas.microsoft.com/office/spreadsheetml/2014/revision"}},children:[Ae,Ne,Re,Oe,Ve,Ue,Ee,{name:"tableStyles",properties:{rawMap:{count:0,defaultPivotStyle:"PivotStyleLight16",defaultTableStyle:"TableStyleMedium2"}}}]}}},Ye=(Te,Ae)=>b[Q(Te,Ae)]||0;p.getStyleId=Ye;let xe=(Te,Ae)=>{X=Ae,X===1&&oe(),Te.forEach(Ie)};p.registerStyles=xe,p.default=ze},7234:function(x,p,M){"use strict";Object.defineProperty(p,"__esModule",{value:!0});let A=M(5608),F=A.__importDefault(M(1951)),D=A.__importDefault(M(8187)),f={getTemplate(v){let{alignment:u,borderId:s,fillId:r,fontId:d,numFmtId:g,protection:m,quotePrefix:b,xfId:w}=v,k=[];return u&&k.push(F.default.getTemplate(u)),m&&k.push(D.default.getTemplate(m)),{name:"xf",properties:{rawMap:{applyAlignment:u?1:void 0,applyProtection:m?1:void 0,applyBorder:s?1:void 0,applyFill:r?1:void 0,borderId:s,fillId:r,applyFont:d?1:void 0,fontId:d,applyNumberFormat:g?1:void 0,numFmtId:g,quotePrefix:b?1:void 0,xfId:w}},children:k.length?k:void 0}}};p.default=f},859:function(x,p,M){"use strict";Object.defineProperty(p,"__esModule",{value:!0});let A=M(3237),F={getTemplate(D,f){let{name:v,columns:u,rowRange:s,displayName:r,showRowStripes:d,showColumnStripes:g,showFilterButtons:m,highlightFirstColumn:b,highlightLastColumn:w}=D||{},k=!s||s[0]-s[1]===0;if(!D||!v||!Array.isArray(u)||!u.length||k)return{name:"table"};let R=u.map((Q,oe)=>({name:"filterColumn",properties:{rawMap:{colId:oe.toString(),hiddenButton:m[oe]?0:1}}})),T=`A${s[0]}`,z=`${(0,A.getExcelColumnName)(u.length)}${s[1]}`,G=`${T}:${z}`,U=`${f+1}`,X=f?`${r}_${U}`:r;return{name:"table",properties:{rawMap:{xmlns:"http://schemas.openxmlformats.org/spreadsheetml/2006/main","xmlns:mc":"http://schemas.openxmlformats.org/markup-compatibility/2006","mc:Ignorable":"xr xr3","xmlns:xr":"http://schemas.microsoft.com/office/spreadsheetml/2014/revision","xmlns:xr3":"http://schemas.microsoft.com/office/spreadsheetml/2016/revision3",name:v,displayName:X,ref:G,totalsRowShown:0,id:U}},children:[{name:"autoFilter",properties:{rawMap:{ref:G}},children:R},{name:"tableColumns",properties:{rawMap:{count:u.length}},children:u.map((Q,oe)=>({name:"tableColumn",properties:{rawMap:{id:(oe+1).toString(),name:Q,dataCellStyle:"Normal"}}}))},{name:"tableStyleInfo",properties:{rawMap:{name:"TableStyleLight1",showFirstColumn:b?1:0,showLastColumn:w?1:0,showRowStripes:d?1:0,showColumnStripes:g?1:0}}}]}}};p.default=F},6316:function(x,p,M){"use strict";Object.defineProperty(p,"__esModule",{value:!0});let F=M(5608).__importDefault(M(2119)),D={getTemplate(){return{name:"a:theme",properties:{prefixedAttributes:[{prefix:"xmlns:",map:{a:"http://schemas.openxmlformats.org/drawingml/2006/main"}}],rawMap:{name:"Office Theme"}},children:[F.default.getTemplate(),{name:"a:objectDefaults"},{name:"a:extraClrSchemeLst"}]}}};p.default=D},9119:function(x,p){"use strict";Object.defineProperty(p,"__esModule",{value:!0});let M=F=>{let[D,f,v,u]=F;return{name:`a:${D}`,children:[{name:`a:${f}`,properties:{rawMap:{val:v,lastClr:u}}}]}},A={getTemplate(){return{name:"a:clrScheme",properties:{rawMap:{name:"Office"}},children:[M(["dk1","sysClr","windowText","000000"]),M(["lt1","sysClr","window","FFFFFF"]),M(["dk2","srgbClr","44546A"]),M(["lt2","srgbClr","E7E6E6"]),M(["accent1","srgbClr","4472C4"]),M(["accent2","srgbClr","ED7D31"]),M(["accent3","srgbClr","A5A5A5"]),M(["accent4","srgbClr","FFC000"]),M(["accent5","srgbClr","5B9BD5"]),M(["accent6","srgbClr","70AD47"]),M(["hlink","srgbClr","0563C1"]),M(["folHlink","srgbClr","954F72"])]}}};p.default=A},221:function(x,p){"use strict";Object.defineProperty(p,"__esModule",{value:!0});let M=F=>{let[D,f,v,u]=F;return{name:`a:${D}`,properties:{rawMap:{script:v,typeface:f,panose:u}}}},A={getTemplate(){return{name:"a:fontScheme",properties:{rawMap:{name:"Office"}},children:[{name:"a:majorFont",children:[M(["latin","Calibri Light",void 0,"020F0302020204030204"]),M(["ea",""]),M(["cs",""]),M(["font","\u6E38\u30B4\u30B7\u30C3\u30AF Light","Jpan"]),M(["font","\uB9D1\uC740 \uACE0\uB515","Hang"]),M(["font","\u7B49\u7EBF Light","Hans"]),M(["font","\u65B0\u7D30\u660E\u9AD4","Hant"]),M(["font","Times New Roman","Arab"]),M(["font","Times New Roman","Hebr"]),M(["font","Tahoma","Thai"]),M(["font","Nyala","Ethi"]),M(["font","Vrinda","Beng"]),M(["font","Shruti","Gujr"]),M(["font","MoolBoran","Khmr"]),M(["font","Tunga","Knda"]),M(["font","Raavi","Guru"]),M(["font","Euphemia","Cans"]),M(["font","Plantagenet Cherokee","Cher"]),M(["font","Microsoft Yi Baiti","Yiii"]),M(["font","Microsoft Himalaya","Tibt"]),M(["font","MV Boli","Thaa"]),M(["font","Mangal","Deva"]),M(["font","Gautami","Telu"]),M(["font","Latha","Taml"]),M(["font","Estrangelo Edessa","Syrc"]),M(["font","Kalinga","Orya"]),M(["font","Kartika","Mlym"]),M(["font","DokChampa","Laoo"]),M(["font","Iskoola Pota","Sinh"]),M(["font","Mongolian Baiti","Mong"]),M(["font","Times New Roman","Viet"]),M(["font","Microsoft Uighur","Uigh"]),M(["font","Sylfaen","Geor"]),M(["font","Arial","Armn"]),M(["font","Leelawadee UI","Bugi"]),M(["font","Microsoft JhengHei","Bopo"]),M(["font","Javanese Text","Java"]),M(["font","Segoe UI","Lisu"]),M(["font","Myanmar Text","Mymr"]),M(["font","Ebrima","Nkoo"]),M(["font","Nirmala UI","Olck"]),M(["font","Ebrima","Osma"]),M(["font","Phagspa","Phag"]),M(["font","Estrangelo Edessa","Syrn"]),M(["font","Estrangelo Edessa","Syrj"]),M(["font","Estrangelo Edessa","Syre"]),M(["font","Nirmala UI","Sora"]),M(["font","Microsoft Tai Le","Tale"]),M(["font","Microsoft New Tai Lue","Talu"]),M(["font","Ebrima","Tfng"])]},{name:"a:minorFont",children:[M(["latin","Calibri",void 0,"020F0502020204030204"]),M(["ea",""]),M(["cs",""]),M(["font","\u6E38\u30B4\u30B7\u30C3\u30AF","Jpan"]),M(["font","\uB9D1\uC740 \uACE0\uB515","Hang"]),M(["font","\u7B49\u7EBF","Hans"]),M(["font","\u65B0\u7D30\u660E\u9AD4","Hant"]),M(["font","Arial","Arab"]),M(["font","Arial","Hebr"]),M(["font","Tahoma","Thai"]),M(["font","Nyala","Ethi"]),M(["font","Vrinda","Beng"]),M(["font","Shruti","Gujr"]),M(["font","DaunPenh","Khmr"]),M(["font","Tunga","Knda"]),M(["font","Raavi","Guru"]),M(["font","Euphemia","Cans"]),M(["font","Plantagenet Cherokee","Cher"]),M(["font","Microsoft Yi Baiti","Yiii"]),M(["font","Microsoft Himalaya","Tibt"]),M(["font","MV Boli","Thaa"]),M(["font","Mangal","Deva"]),M(["font","Gautami","Telu"]),M(["font","Latha","Taml"]),M(["font","Estrangelo Edessa","Syrc"]),M(["font","Kalinga","Orya"]),M(["font","Kartika","Mlym"]),M(["font","DokChampa","Laoo"]),M(["font","Iskoola Pota","Sinh"]),M(["font","Mongolian Baiti","Mong"]),M(["font","Arial","Viet"]),M(["font","Microsoft Uighur","Uigh"]),M(["font","Sylfaen","Geor"]),M(["font","Arial","Armn"]),M(["font","Leelawadee UI","Bugi"]),M(["font","Microsoft JhengHei","Bopo"]),M(["font","Javanese Text","Java"]),M(["font","Segoe UI","Lisu"]),M(["font","Myanmar Text","Mymr"]),M(["font","Ebrima","Nkoo"]),M(["font","Nirmala UI","Olck"]),M(["font","Ebrima","Osma"]),M(["font","Phagspa","Phag"]),M(["font","Estrangelo Edessa","Syrn"]),M(["font","Estrangelo Edessa","Syrj"]),M(["font","Estrangelo Edessa","Syre"]),M(["font","Nirmala UI","Sora"]),M(["font","Microsoft Tai Le","Tale"]),M(["font","Microsoft New Tai Lue","Talu"]),M(["font","Ebrima","Tfng"])]}]}}};p.default=A},1203:function(x,p){"use strict";Object.defineProperty(p,"__esModule",{value:!0});let M=(m,b,w)=>({name:`a:${m}`,properties:{rawMap:{val:b}},children:w}),A=m=>{let[b,w,k,R,T,z]=m,G=[];return G.push(M("satMod",k)),R&&G.push(M("lumMod",R)),T&&G.push(M("tint",T)),z&&G.push(M("shade",z)),{name:"a:gs",properties:{rawMap:{pos:b}},children:[{name:"a:schemeClr",properties:{rawMap:{val:w}},children:G}]}},F=(m,b)=>({name:"a:solidFill",children:[M("schemeClr",m,b)]}),D=m=>{let[b,w,k,R,T]=m,[z,G]=T;return{name:"a:gradFill",properties:{rawMap:{rotWithShape:b}},children:[{name:"a:gsLst",children:[A(w),A(k),A(R)]},{name:"a:lin",properties:{rawMap:{ang:z,scaled:G}}}]}},f=m=>{let[b,w,k,R]=m;return{name:"a:ln",properties:{rawMap:{w:b,cap:w,cmpd:k,algn:R}},children:[F("phClr"),M("prstDash","solid"),{name:"a:miter",properties:{rawMap:{lim:"800000"}}}]}},v=m=>{let b=[];if(m){let[w,k,R,T,z]=m;b.push({name:"a:outerShdw",properties:{rawMap:{blurRad:w,dist:k,dir:R,algn:T,rotWithShape:z}},children:[M("srgbClr","000000",[M("alpha","63000")])]})}return{name:"a:effectStyle",children:[Object.assign({},{name:"a:effectLst"},b.length?{children:b}:{})]}},u=()=>({name:"a:fillStyleLst",children:[F("phClr"),D(["1",["0","phClr","105000","110000","67000"],["50000","phClr","103000","105000","73000"],["100000","phClr","109000","105000","81000"],["5400000","0"]]),D(["1",["0","phClr","103000","102000","94000"],["50000","phClr","110000","100000",void 0,"100000"],["100000","phClr","120000","99000",void 0,"78000"],["5400000","0"]])]}),s=()=>({name:"a:lnStyleLst",children:[f(["6350","flat","sng","ctr"]),f(["12700","flat","sng","ctr"]),f(["19050","flat","sng","ctr"])]}),r=()=>({name:"a:effectStyleLst",children:[v(),v(),v(["57150","19050","5400000","ctr","0"])]}),d=()=>({name:"a:bgFillStyleLst",children:[F("phClr"),F("phClr",[M("tint","95000"),M("satMod","170000")]),D(["1",["0","phClr","150000","102000","93000","98000"],["50000","phClr","130000","103000","98000","90000"],["100000","phClr","120000",void 0,void 0,"63000"],["5400000","0"]])]}),g={getTemplate(){return{name:"a:fmtScheme",properties:{rawMap:{name:"Office"}},children:[u(),s(),r(),d()]}}};p.default=g},2119:function(x,p,M){"use strict";Object.defineProperty(p,"__esModule",{value:!0});let A=M(5608),F=A.__importDefault(M(9119)),D=A.__importDefault(M(221)),f=A.__importDefault(M(1203)),v={getTemplate(){return{name:"a:themeElements",children:[F.default.getTemplate(),D.default.getTemplate(),f.default.getTemplate()]}}};p.default=v},5592:function(x,p,M){"use strict";Object.defineProperty(p,"__esModule",{value:!0});let A=M(7165),F=()=>({name:"o:shapelayout",properties:{prefixedAttributes:[{prefix:"v:",map:{ext:"edit"}}]},children:[{name:"o:idmap",properties:{prefixedAttributes:[{prefix:"v:",map:{ext:"edit"}}],rawMap:{data:"1"}}}]}),D=()=>({name:"v:stroke",properties:{rawMap:{joinstyle:"miter"}}}),f=w=>({name:"v:formulas",children:w.map(k=>({name:"v:f",properties:{rawMap:{eqn:k}}}))}),v=()=>({name:"v:path",properties:{prefixedAttributes:[{prefix:"o:",map:{connecttype:"rect",extrusionok:"f"}}],rawMap:{gradientshapeok:"t"}}}),u=w=>{let{aspectratio:k,rotation:R}=w||{},T={};return k&&(T.aspectratio="t"),R&&(T.rotation="t"),{name:"o:lock",properties:{prefixedAttributes:[{prefix:"v:",map:{ext:"edit"}}],rawMap:T}}};function s(w,k,R,T,z){return(w-k)/(R-k)*(z-T)+T}let r=(w,k)=>{let R,{recolor:T,brightness:z,contrast:G,id:U}=w;if(T&&(R={},(T==="Washout"||T==="Grayscale")&&(R.gain="19661f",R.blacklevel="22938f"),(T==="Black & White"||T==="Grayscale")&&(R.grayscale="t",T==="Black & White"&&(R.bilevel="t"))),!T||T==="Grayscale"){if(R||(R={}),G!=null&&G!==50){let X="1";G>=0&&(G<50?X=String(G/50):G<100?X=String(50/(100-G)):G===100&&(X="2147483647f")),R.gain=X}z!=null&&z!==50&&(R.blacklevel=s(z,0,100,-.5,.5).toString())}return{name:"v:imagedata",properties:{prefixedAttributes:[{prefix:"o:",map:{relid:`rId${k}`,title:U}}],rawMap:R}}},d=()=>{let w=["if lineDrawn pixelLineWidth 0","sum @0 1 0","sum 0 0 @1","prod @2 1 2","prod @3 21600 pixelWidth","prod @3 21600 pixelHeight","sum @0 0 1","prod @6 1 2","prod @7 21600 pixelWidth","sum @8 21600 0","prod @7 21600 pixelHeight","sum @10 21600 0"];return{name:"v:shapetype",properties:{prefixedAttributes:[{prefix:"o:",map:{spt:"75",preferrelative:"t"}}],rawMap:{coordsize:"21600,21600",filled:"f",id:"_x0000_t75",path:"m@4@5l@4@11@9@11@9@5xe",stroked:"f"}},children:[D(),f(w),v(),u({aspectratio:!0})]}},g=w=>Math.floor((w!=null?w:0)*.74999943307122),m=(w,k)=>{let{width:R=0,height:T=0,altText:z}=w,G=g(R),U=g(T);return{name:"v:shape",properties:{rawMap:{id:w.headerFooterPosition,"o:spid":"_x0000_s1025",style:`position: absolute; margin-left: 0; margin-top: 10in; margin-bottom: 0; margin-right: 0; width: ${G}pt; height: ${U}pt; z-index: ${k+1}`,type:"#_x0000_t75",alt:z}},children:[r(w,k+1),u({rotation:!0})]}},b={getTemplate(w){let k=A.XLSX_WORKSHEET_HEADER_FOOTER_IMAGES.get(w.sheetIndex)||[],R=[F(),d(),...k.map((T,z)=>m(T,z))];return{name:"xml",properties:{prefixedAttributes:[{prefix:"xmlns:",map:{v:"urn:schemas-microsoft-com:vml",o:"urn:schemas-microsoft-com:office:office",x:"urn:schemas-microsoft-com:office:excel"}}]},children:R}}};p.default=b},2519:function(x,p,M){"use strict";Object.defineProperty(p,"__esModule",{value:!0});let F=M(5608).__importDefault(M(2023)),D={getTemplate(f,v){return{name:"workbook",properties:{prefixedAttributes:[{prefix:"xmlns:",map:{r:"http://schemas.openxmlformats.org/officeDocument/2006/relationships"}}],rawMap:{xmlns:"http://schemas.openxmlformats.org/spreadsheetml/2006/main"}},children:[{name:"bookViews",children:[{name:"workbookView",properties:{rawMap:{activeTab:v}}}]},F.default.getTemplate(f)]}}};p.default=D},559:function(x,p,M){"use strict";Object.defineProperty(p,"__esModule",{value:!0});let A=M(5608),F=M(6624),D=M(3237),f=M(7165),v=A.__importDefault(M(3285)),u=A.__importDefault(M(1775)),s=A.__importDefault(M(7067)),r=(xe,Te,Ae)=>{let Ne=[],Re=[];xe.forEach((Ue,Ee)=>{let tt=Ue.cells,at=0,ut;tt.forEach((Mt,St)=>{let ft=St+at+1,kt=(0,D.getExcelColumnName)(ft),Et=Ee+1;if(Mt.mergeAcross){at+=Mt.mergeAcross;let Tt=(0,D.getExcelColumnName)(St+at+1);Ne.push(`${kt}${Et}:${Tt}${Et}`)}Te[ft-1]||(Te[ft-1]={});let{collapsibleRanges:Yt}=Mt;Yt&&Yt.forEach(Tt=>{Re.push([ft+Tt[0],ft+Tt[1]])}),ut=Te[ft-1],ut.min=ft,ut.max=ft,Mt.ref=`${kt}${Et}`})}),Re.sort((Ue,Ee)=>Ue[0]!==Ee[0]?Ue[0]-Ee[0]:Ee[1]-Ue[1]);let Oe=new Map,Ve=new Map;return Re.filter(Ue=>{let Ee=Ue.toString();return Oe.get(Ee)?!1:(Oe.set(Ee,!0),!0)}).forEach(Ue=>{let Ee=Te.find(at=>at.min==Ue[0]&&at.max==Ue[1]),tt=Ve.get(Ue[0]);Te.push({min:Ue[0],max:Ue[1],outlineLevel:Ae?void 0:tt||1,width:(Ee||{width:100}).width}),Ve.set(Ue[0],(tt||0)+1)}),Ne},d=xe=>!xe||xe!=="Portrait"&&xe!=="Landscape"?"portrait":xe.toLocaleLowerCase(),g=xe=>{if(xe==null)return 1;let Ae=["Letter","Letter Small","Tabloid","Ledger","Legal","Statement","Executive","A3","A4","A4 Small","A5","A6","B4","B5","Folio","Envelope","Envelope DL","Envelope C5","Envelope B5","Envelope C3","Envelope C4","Envelope C6","Envelope Monarch","Japanese Postcard","Japanese Double Postcard"].indexOf(xe);return Ae===-1?1:Ae+1},m=xe=>(Object.entries({"&[Page]":"&P","&[Pages]":"&N","&[Date]":"&D","&[Time]":"&T","&[Tab]":"&A","&[Path]":"&Z","&[File]":"&F","&[Picture]":"&G"}).forEach(([Ae,Ne])=>{xe=xe.replace(Ae,Ne)}),xe),b=xe=>xe==="Center"?"C":xe==="Right"?"R":"L",w=(xe,Te)=>(Te&&(xe+="&amp;&quot;",xe+=Te.fontName||"Calibri",Te.bold!==Te.italic?xe+=Te.bold?",Bold":",Italic":Te.bold?xe+=",Bold Italic":xe+=",Regular",xe+="&quot;",Te.size&&(xe+=`&amp;${Te.size}`),Te.strikeThrough&&(xe+="&amp;S"),Te.underline&&(xe+=`&amp;${Te.underline==="Double"?"E":"U"}`),Te.color&&(xe+=`&amp;K${Te.color.replace("#","").toUpperCase()}`)),xe),k=(xe,Te,Ae)=>xe.reduce((Ne,Re,Oe)=>{let Ve=b(Re.position),Ue=w(`${Ne}&amp;${Ve}`,Re.font),Ee=["Left","Center","Right"];Re.position||(Re.position=Ee[Oe]);let{image:tt}=Re;if(Re.value==="&[Picture]"&&tt){let at=`${Ve}${Te}${Ae}`;(0,f.addXlsxHeaderFooterImageToMap)(tt,at)}return`${Ue}${(0,F._escapeString)(m(Re.value))}`},""),R=xe=>{let Te=["all","first","even"],Ae=[];return Te.forEach(Ne=>{let Re=xe[Ne],Oe=Ne==="all"?"odd":Ne;if(Re)for(let[Ve,Ue]of Object.entries(Re)){let Ee=`${Ve.charAt(0).toUpperCase()}${Ve.slice(1)}`,tt=Ve[0].toUpperCase();if(Ue){let at=Ne==="all"?"":Ne.toUpperCase();Ae.push({name:`${Oe}${Ee}`,properties:{rawMap:{"xml:space":"preserve"}},textNode:k(Ue,tt,at)})}}}),Ae},T=xe=>Te=>(xe.length&&Te.children.push({name:"cols",children:xe.map(Ae=>v.default.getTemplate(Ae))}),Te),z=(xe,Te)=>Ae=>(xe.length&&Ae.children.push({name:"sheetData",children:xe.map((Ne,Re)=>s.default.getTemplate(Ne,Re,Te))}),Ae),G=xe=>Te=>(xe.length&&Te.children.push({name:"mergeCells",properties:{rawMap:{count:xe.length}},children:xe.map(Ae=>u.default.getTemplate(Ae))}),Te),U=xe=>Te=>{let{top:Ae=.75,right:Ne=.7,bottom:Re=.75,left:Oe=.7,header:Ve=.3,footer:Ue=.3}=xe;return Te.children.push({name:"pageMargins",properties:{rawMap:{bottom:Re,footer:Ue,header:Ve,left:Oe,right:Ne,top:Ae}}}),Te},X=xe=>Te=>(xe&&Te.children.push({name:"pageSetup",properties:{rawMap:{horizontalDpi:0,verticalDpi:0,orientation:d(xe.orientation),paperSize:g(xe.pageSize)}}}),Te),Q=xe=>Te=>{if(!xe)return Te;let Ae=xe.first!=null?1:0,Ne=xe.even!=null?1:0;return Te.children.push({name:"headerFooter",properties:{rawMap:{differentFirst:Ae,differentOddEven:Ne}},children:R(xe)}),Te},oe=xe=>Te=>(xe&&Te.children.push({name:"tableParts",properties:{rawMap:{count:"1"}},children:[{name:"tablePart",properties:{rawMap:{"r:id":`rId${++Te.rIdCounter}`}}}]}),Te),le=xe=>Te=>{let Ae=f.XLSX_WORKSHEET_IMAGES.get(xe);return Ae!=null&&Ae.length&&Te.children.push({name:"drawing",properties:{rawMap:{"r:id":`rId${++Te.rIdCounter}`}}}),Te},fe=xe=>Te=>(f.XLSX_WORKSHEET_HEADER_FOOTER_IMAGES.get(xe)&&Te.children.push({name:"legacyDrawingHF",properties:{rawMap:{"r:id":`rId${++Te.rIdCounter}`}}}),Te),ye=(xe=0,Te=0)=>{let Ae=xe>0||Te>0;return Ae?[{name:"pane",properties:{rawMap:{state:Ae?"frozen":void 0,topLeftCell:Ae?`${(0,D.getExcelColumnName)(xe+1)}${Te+1}`:void 0,xSplit:xe===0?void 0:xe,ySplit:Te===0?void 0:Te}}}]:void 0},ke=(xe=!1,Te,Ae)=>Ne=>(Ne.children.push({name:"sheetViews",children:[{name:"sheetView",properties:{rawMap:{rightToLeft:xe===!0?"1":"0",workbookViewId:"0"}},children:ye(Te,Ae)}]}),Ne),Ie=()=>xe=>(xe.children.push({name:"sheetPr",children:[{name:"outlinePr",properties:{rawMap:{summaryBelow:0}}}]}),xe),ze=xe=>Te=>{let Ae=xe.reduce((Ne,Re)=>Re.outlineLevel&&Re.outlineLevel>Ne?Re.outlineLevel:Ne,0);return Te.children.push({name:"sheetFormatPr",properties:{rawMap:{baseColWidth:10,defaultRowHeight:16,outlineLevelRow:Ae||void 0}}}),Te},Ye={getTemplate(xe){let{worksheet:Te,currentSheet:Ae,config:Ne}=xe,{margins:Re={},pageSetup:Oe,headerFooterConfig:Ve,suppressColumnOutline:Ue,rightToLeft:Ee,frozenRowCount:tt,frozenColumnCount:at}=Ne,{table:ut}=Te,{rows:Mt,columns:St}=ut,ft=St&&St.length?r(Mt,St,!!Ue):[],kt=f.XLSX_WORKSHEET_DATA_TABLES.get(Ae),{children:Et}=[Ie(),ke(Ee,at,tt),ze(Mt),T(St),z(Mt,Ae+1),G(ft),U(Re),X(Oe),Q(Ve),le(Ae),fe(Ae),oe(kt)].reduce((Yt,Tt)=>Tt(Yt),{children:[],rIdCounter:0});return{name:"worksheet",properties:{prefixedAttributes:[{prefix:"xmlns:",map:{r:"http://schemas.openxmlformats.org/officeDocument/2006/relationships"}}],rawMap:{xmlns:"http://schemas.openxmlformats.org/spreadsheetml/2006/main"}},children:Et}}};p.default=Ye},5552:function(x,p){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.deflateLocalFile=void 0;let M=async F=>{let D=0,f=[],v=new WritableStream({write:r=>{f.push(r),D+=r.length}}),u=new ReadableStream({start:r=>{let d=new FileReader;d.onload=g=>{var m;(m=g.target)!=null&&m.result&&r.enqueue(g.target.result),r.close()},d.readAsArrayBuffer(F)}}),s=new window.CompressionStream("deflate-raw");return await u.pipeThrough(s).pipeTo(v),{size:D,content:new Blob(f)}},A=async F=>{let D=new Blob([F]),{size:f,content:v}=await M(D),u=new Uint8Array(await v.arrayBuffer());return{size:f,content:u}};p.deflateLocalFile=A},4557:function(x,p){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.convertDecToHex=p.convertDate=p.convertTime=void 0;let M=D=>{let f=D.getHours();return f<<=6,f=f|D.getMinutes(),f<<=5,f=f|D.getSeconds()/2,f};p.convertTime=M;let A=D=>{let f=D.getFullYear()-1980;return f<<=4,f=f|D.getMonth()+1,f<<=5,f=f|D.getDate(),f};p.convertDate=A;function F(D,f){let v="";for(let u=0;u<f;u++)v+=String.fromCharCode(D&255),D>>>=8;return v}p.convertDecToHex=F},758:function(x,p){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.getCrcFromCrc32Table=void 0;let M=D=>{if(!D.length)return 0;let f=-1,v=0,u=0,s=0;for(let r=0;r<D.length;r++)v=D[r],u=(f^v)&255,s=F[u],f=f>>>8^s;return f^-1},A=D=>D.length?M(typeof D=="string"?new TextEncoder().encode(D):D):0;p.getCrcFromCrc32Table=A;let F=new Uint32Array([0,1996959894,3993919788,2567524794,124634137,1886057615,3915621685,2657392035,249268274,2044508324,3772115230,2547177864,162941995,2125561021,3887607047,2428444049,498536548,1789927666,4089016648,2227061214,450548861,1843258603,4107580753,2211677639,325883990,1684777152,4251122042,2321926636,335633487,1661365465,4195302755,2366115317,997073096,1281953886,3579855332,2724688242,1006888145,1258607687,3524101629,2768942443,901097722,1119000684,3686517206,2898065728,853044451,1172266101,3705015759,2882616665,651767980,1373503546,3369554304,3218104598,565507253,1454621731,3485111705,3099436303,671266974,1594198024,3322730930,2970347812,795835527,1483230225,3244367275,3060149565,1994146192,31158534,2563907772,4023717930,1907459465,112637215,2680153253,3904427059,2013776290,251722036,2517215374,3775830040,2137656763,141376813,2439277719,3865271297,1802195444,476864866,2238001368,4066508878,1812370925,453092731,2181625025,4111451223,1706088902,314042704,2344532202,4240017532,1658658271,366619977,2362670323,4224994405,1303535960,984961486,2747007092,3569037538,1256170817,1037604311,2765210733,3554079995,1131014506,879679996,2909243462,3663771856,1141124467,855842277,2852801631,3708648649,1342533948,654459306,3188396048,3373015174,1466479909,544179635,3110523913,3462522015,1591671054,702138776,2966460450,3352799412,1504918807,783551873,3082640443,3233442989,3988292384,2596254646,62317068,1957810842,3939845945,2647816111,81470997,1943803523,3814918930,2489596804,225274430,2053790376,3826175755,2466906013,167816743,2097651377,4027552580,2265490386,503444072,1762050814,4150417245,2154129355,426522225,1852507879,4275313526,2312317920,282753626,1742555852,4189708143,2394877945,397917763,1622183637,3604390888,2714866558,953729732,1340076626,3518719985,2797360999,1068828381,1219638859,3624741850,2936675148,906185462,1090812512,3747672003,2825379669,829329135,1181335161,3412177804,3160834842,628085408,1382605366,3423369109,3138078467,570562233,1426400815,3317316542,2998733608,733239954,1555261956,3268935591,3050360625,752459403,1541320221,2607071920,3965973030,1969922972,40735498,2617837225,3943577151,1913087877,83908371,2512341634,3803740692,2075208622,213261112,2463272603,3855990285,2094854071,198958881,2262029012,4057260610,1759359992,534414190,2176718541,4139329115,1873836001,414664567,2282248934,4279200368,1711684554,285281116,2405801727,4167216745,1634467795,376229701,2685067896,3608007406,1308918612,956543938,2808555105,3495958263,1231636301,1047427035,2932959818,3654703836,1088359270,936918e3,2847714899,3736837829,1202900863,817233897,3183342108,3401237130,1404277552,615818150,3134207493,3453421203,1423857449,601450431,3009837614,3294710456,1567103746,711928724,3020668471,3272380065,1510334235,755167117])},5950:function(x,p,M){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.ZipContainer=void 0;let A=M(6090);class F{constructor(){this.folders=[],this.files=[]}addFolders(f){f.forEach(this.addFolder.bind(this))}addFolder(f){this.folders.push({path:f,created:new Date,isBase64:!1,type:"folder"})}addFile(f,v,u=!1){this.files.push({path:f,created:new Date,content:u?v:new TextEncoder().encode(v),isBase64:u,type:"file"})}async getZipFile(f="application/zip"){let v=await this.buildCompressedFileStream();return this.clearStream(),new Blob([v],{type:f})}getUncompressedZipFile(f="application/zip"){let v=this.buildFileStream();return this.clearStream(),new Blob([v],{type:f})}clearStream(){this.folders=[],this.files=[]}packageFiles(f){let v=0,u=0;for(let w of f){let{localFileHeader:k,centralDirectoryHeader:R,content:T}=w;v+=k.length+T.length,u+=R.length}let s=new Uint8Array(v),r=new Uint8Array(u),d=0,g=0;for(let w of f){let{localFileHeader:k,centralDirectoryHeader:R,content:T}=w;s.set(k,d),d+=k.length,s.set(T,d),d+=T.length,r.set(R,g),g+=R.length}let m=(0,A.buildCentralDirectoryEnd)(f.length,u,v),b=new Uint8Array(s.length+r.length+m.length);return b.set(s),b.set(r,s.length),b.set(m,s.length+r.length),b}async buildCompressedFileStream(){let f=[...this.folders,...this.files],v=[],u=0;for(let s of f){let r=await(0,A.getDeflatedHeaderAndContent)(s,u),{localFileHeader:d,content:g}=r;v.push(r),u+=d.length+g.length}return this.packageFiles(v)}buildFileStream(){let f=[...this.folders,...this.files],v=[],u=0;for(let s of f){let r=(0,A.getHeaderAndContent)(s,u),{localFileHeader:d,content:g}=r;v.push(r),u+=d.length+g.length}return this.packageFiles(v)}}p.ZipContainer=F},6090:function(x,p,M){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.buildCentralDirectoryEnd=p.getHeaderAndContent=p.getDeflatedHeaderAndContent=void 0;let A=M(6624),F=M(5552),D=M(4557),f=M(758);function v(m){let b=String.fromCharCode;function w(oe){let le=[];if(!oe)return[];let fe=oe.length,ye=0,ke,Ie;for(;ye<fe;)ke=oe.charCodeAt(ye++),ke>=55296&&ke<=56319&&ye<fe?(Ie=oe.charCodeAt(ye++),(Ie&64512)==56320?le.push(((ke&1023)<<10)+(Ie&1023)+65536):(le.push(ke),ye--)):le.push(ke);return le}function k(oe){if(oe>=55296&&oe<=57343)throw Error((0,A._errMsg)(255,{point:oe}))}function R(oe,le){return b(oe>>le&63|128)}function T(oe){if(!(oe&4294967168))return b(oe);let le="";return oe&4294965248?oe&4294901760?oe&4292870144||(le=b(oe>>18&7|240),le+=R(oe,12),le+=R(oe,6)):(k(oe),le=b(oe>>12&15|224),le+=R(oe,6)):le=b(oe>>6&31|192),le+=b(oe&63|128),le}let z=w(m),G=z.length,U=-1,X,Q="";for(;++U<G;)X=z[U],Q+=T(X);return Q}let u=(m,b,w,k,R,T)=>{let{content:z,path:G,created:U}=m,X=(0,D.convertTime)(U),Q=(0,D.convertDate)(U),oe=(0,f.getCrcFromCrc32Table)(R),le=T!==void 0?T:k,fe=v(G),ye=fe!==G,ke="";if(ye){let xe=(0,D.convertDecToHex)(1,1)+(0,D.convertDecToHex)((0,f.getCrcFromCrc32Table)(fe),4)+fe;ke="up"+(0,D.convertDecToHex)(xe.length,2)+xe}let Ie="\0"+(ye?"\0\b":"\0\0")+(0,D.convertDecToHex)(b?8:0,2)+(0,D.convertDecToHex)(X,2)+(0,D.convertDecToHex)(Q,2)+(0,D.convertDecToHex)(le?oe:0,4)+(0,D.convertDecToHex)(T!=null?T:k,4)+(0,D.convertDecToHex)(k,4)+(0,D.convertDecToHex)(fe.length,2)+(0,D.convertDecToHex)(ke.length,2),ze="PK"+Ie+fe+ke,Ye="PK\0"+Ie+"\0\0\0\0\0\0"+(z?"\0\0\0\0":"\0\0\0")+(0,D.convertDecToHex)(w,4)+fe+ke;return{localFileHeader:Uint8Array.from(ze,xe=>xe.charCodeAt(0)),centralDirectoryHeader:Uint8Array.from(Ye,xe=>xe.charCodeAt(0))}},s=m=>{let b;if(typeof m=="string"){let w=atob(m.split(";base64,")[1]);b=Uint8Array.from(w,k=>k.charCodeAt(0))}else b=m;return{size:b.length,content:b}},r=async(m,b)=>{let{content:w}=m,{size:k,content:R}=w?s(w):{size:0,content:Uint8Array.from([])},T,z,G=!1;if(m.type==="file"&&R&&k>0){let Q=await(0,F.deflateLocalFile)(R);T=Q.content,z=Q.size,G=!0}let X=u(m,G,b,k,R,z);return et(pe({},X),{content:T||R,isCompressed:G})};p.getDeflatedHeaderAndContent=r;let d=(m,b)=>{let{content:w}=m,{content:k}=w?s(w):{content:Uint8Array.from([])},R=u(m,!1,b,k.length,k,void 0);return et(pe({},R),{content:k,isCompressed:!1})};p.getHeaderAndContent=d;let g=(m,b,w)=>{let k="PK\0\0\0\0"+(0,D.convertDecToHex)(m,2)+(0,D.convertDecToHex)(m,2)+(0,D.convertDecToHex)(b,4)+(0,D.convertDecToHex)(w,4)+"\0\0";return Uint8Array.from(k,R=>R.charCodeAt(0))};p.buildCentralDirectoryEnd=g},5760:function(x,p,M){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.VirtualListDragFeature=void 0;let A=M(6624),F="ag-list-item-hovered";class D extends A.BeanStub{wireBeans(v){this.dragAndDrop=v.dragAndDrop}constructor(v,u,s){super(),this.comp=v,this.virtualList=u,this.params=s,this.currentDragValue=null,this.lastHoveredListItem=null}postConstruct(){this.addManagedListeners(this.params.eventSource,{[this.params.listItemDragStartEvent]:this.listItemDragStart.bind(this),[this.params.listItemDragEndEvent]:this.listItemDragEnd.bind(this)}),this.createDropTarget(),this.createAutoScrollService()}listItemDragStart(v){this.currentDragValue=this.params.getCurrentDragValue(v),this.moveBlocked=this.params.isMoveBlocked(this.currentDragValue)}listItemDragEnd(){window.setTimeout(()=>{this.currentDragValue=null,this.moveBlocked=!1},10)}createDropTarget(){var u;let v={isInterestedIn:s=>s===this.params.dragSourceType,getIconName:()=>this.moveBlocked?"pinned":"move",getContainer:()=>this.comp.getGui(),onDragging:s=>this.onDragging(s),onDragStop:()=>this.onDragStop(),onDragLeave:()=>this.onDragLeave(),onDragCancel:()=>this.onDragCancel()};(u=this.dragAndDrop)==null||u.addDropTarget(v)}createAutoScrollService(){let v=this.virtualList.getGui();this.autoScrollService=new A.AutoScrollService({scrollContainer:v,scrollAxis:"y",getVerticalPosition:()=>v.scrollTop,setVerticalPosition:u=>v.scrollTop=u})}onDragging(v){if(!this.currentDragValue||this.moveBlocked)return;let u=this.getListDragItem(v),s=this.virtualList.getComponentAt(u.rowIndex);if(!s)return;let r=s.getGui().parentElement;this.lastHoveredListItem&&this.lastHoveredListItem.rowIndex===u.rowIndex&&this.lastHoveredListItem.position===u.position||(this.autoScrollService.check(v.event),this.clearHoveredItems(),this.lastHoveredListItem=u,(0,A._radioCssClass)(r,F),(0,A._radioCssClass)(r,`ag-item-highlight-${u.position}`))}getListDragItem(v){let u=this.virtualList.getGui(),s=parseFloat(window.getComputedStyle(u).paddingTop),r=this.virtualList.getRowHeight(),d=this.virtualList.getScrollTop(),g=Math.max(0,(v.y-s+d)/r),m=this.params.getNumRows(this.comp)-1,b=Math.min(m,g)|0;return{rowIndex:b,position:Math.round(g)>g||g>m?"bottom":"top",component:this.virtualList.getComponentAt(b)}}onDragStop(){this.moveBlocked||(this.params.moveItem(this.currentDragValue,this.lastHoveredListItem),this.clearDragProperties())}onDragCancel(){this.clearDragProperties()}onDragLeave(){this.clearDragProperties()}clearDragProperties(){this.clearHoveredItems(),this.autoScrollService.ensureCleared()}clearHoveredItems(){this.virtualList.getGui().querySelectorAll(`.${F}`).forEach(u=>{[F,"ag-item-highlight-top","ag-item-highlight-bottom"].forEach(s=>{u.classList.remove(s)})}),this.lastHoveredListItem=null}}p.VirtualListDragFeature=D},8046:function(x,p,M){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.AgFiltersToolPanelHeaderSelector=p.AgFiltersToolPanelHeader=p.EXPAND_STATE=void 0;let A=M(6624);var F;(function(f){f[f.EXPANDED=0]="EXPANDED",f[f.COLLAPSED=1]="COLLAPSED",f[f.INDETERMINATE=2]="INDETERMINATE"})(F||(p.EXPAND_STATE=F={}));class D extends A.Component{constructor(){super(...arguments),this.eExpand=A.RefPlaceholder,this.eFilterTextField=A.RefPlaceholder}postConstruct(){this.setTemplate(`<div class="ag-filter-toolpanel-search" role="presentation">
                <div data-ref="eExpand" class="ag-filter-toolpanel-expand"></div>
                <ag-input-text-field data-ref="eFilterTextField" class="ag-filter-toolpanel-search-input"></ag-input-text-field>
            </div>`,[A.AgInputTextFieldSelector]);let v=this.getLocaleTextFunc();this.eFilterTextField.setAutoComplete(!1).setInputAriaLabel(v("ariaFilterColumnsInput","Filter Columns Input")).onValueChange(this.onSearchTextChanged.bind(this)),this.createExpandIcons(),this.setExpandState(F.EXPANDED),this.addManagedElementListeners(this.eExpand,{click:this.onExpandClicked.bind(this)}),this.addManagedEventListeners({newColumnsLoaded:this.showOrHideOptions.bind(this)})}init(v){this.params=v,this.beans.colModel.ready&&this.showOrHideOptions()}createExpandIcons(){let{eExpand:v,beans:u}=this;v.appendChild(this.eExpandChecked=(0,A._createIconNoSpan)("accordionOpen",u)),v.appendChild(this.eExpandUnchecked=(0,A._createIconNoSpan)("accordionClosed",u)),v.appendChild(this.eExpandIndeterminate=(0,A._createIconNoSpan)("accordionIndeterminate",u))}showOrHideOptions(){let{params:v,eFilterTextField:u}=this,s=!v.suppressFilterSearch,r=!v.suppressExpandAll,d=this.getLocaleTextFunc();u.setInputPlaceholder(d("searchOoo","Search..."));let g=b=>b.getOriginalParent()&&b.isFilterAllowed(),m=this.beans.colModel.getCols().some(g);(0,A._setDisplayed)(u.getGui(),s),(0,A._setDisplayed)(this.eExpand,r&&m)}onSearchTextChanged(){this.onSearchTextChangedDebounced||(this.onSearchTextChangedDebounced=(0,A._debounce)(this,()=>this.dispatchLocalEvent({type:"searchChanged",searchText:this.eFilterTextField.getValue()}),300)),this.onSearchTextChangedDebounced()}onExpandClicked(){let v=this.currentExpandState===F.EXPANDED?{type:"collapseAll"}:{type:"expandAll"};this.dispatchLocalEvent(v)}setExpandState(v){this.currentExpandState=v,(0,A._setDisplayed)(this.eExpandChecked,v===F.EXPANDED),(0,A._setDisplayed)(this.eExpandUnchecked,v===F.COLLAPSED),(0,A._setDisplayed)(this.eExpandIndeterminate,v===F.INDETERMINATE)}}p.AgFiltersToolPanelHeader=D,p.AgFiltersToolPanelHeaderSelector={selector:"AG-FILTERS-TOOL-PANEL-HEADER",component:D}},7291:function(x,p,M){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.AgFiltersToolPanelListSelector=p.AgFiltersToolPanelList=void 0;let A=M(6624),F=M(6092),D=M(8046),f=M(3905),v=M(5296);class u extends A.Component{wireBeans(r){this.colModel=r.colModel}constructor(){super('<div class="ag-filter-list-panel"></div>'),this.initialised=!1,this.hasLoadedInitialState=!1,this.isInitialState=!1,this.filterGroupComps=[],this.suppressOnColumnsChanged=!1,this.onColumnsChangedPending=!1}init(r){this.initialised=!0;let d=this.gos.addGridCommonParams({suppressExpandAll:!1,suppressFilterSearch:!1,suppressSyncLayoutWithGrid:!1});(0,A._mergeDeep)(d,r),this.params=d,d.suppressSyncLayoutWithGrid||this.addManagedEventListeners({columnMoved:()=>this.onColumnsChanged()}),this.addManagedEventListeners({newColumnsLoaded:()=>this.onColumnsChanged(),toolPanelVisibleChanged:g=>{g.key==="filters"&&this.refreshFilters(g.visible)},dragStarted:()=>{this.suppressOnColumnsChanged=!0},dragStopped:()=>{this.suppressOnColumnsChanged=!1,this.onColumnsChangedPending&&(this.onColumnsChangedPending=!1,this.onColumnsChanged())}}),this.colModel.ready&&this.onColumnsChanged()}onColumnsChanged(){if(this.suppressOnColumnsChanged){this.onColumnsChangedPending=!0;return}let r=this.colModel.isPivotMode();!this.params.suppressSyncLayoutWithGrid&&!r?this.syncFilterLayout():this.buildTreeFromProvidedColumnDefs(),this.refreshAriaLabel()}syncFilterLayout(){(0,F.syncLayoutWithGrid)(this.colModel,this.setFiltersLayout.bind(this)),this.refreshAriaLabel()}buildTreeFromProvidedColumnDefs(){let r=this.colModel.getColDefColTree();this.recreateFilters(r)}setFiltersLayout(r){let d=(0,F.toolPanelCreateColumnTree)(this.colModel,r);this.recreateFilters(d)}recreateFilters(r){let d=(0,A._getActiveDomElement)(this.beans);this.hasLoadedInitialState||(this.hasLoadedInitialState=!0,this.isInitialState=!!this.params.initialState);let g=this.getExpansionState();this.destroyFilters();let m=this.recursivelyAddComps(r,0,g);this.filterGroupComps=m;let b=m.length;b&&(m.forEach(k=>this.appendChild(k)),this.setFirstAndLastVisible(0,b-1));let w=this.searchFilterText;(0,A._exists)(w)&&this.searchFilters(w),this.fireExpandedEvent(),this.getGui().contains(d)&&d.focus(),this.isInitialState=!1,this.refreshAriaLabel()}recursivelyAddComps(r,d,g){return r.map(m=>{var T,z;if((0,A.isProvidedColumnGroup)(m))return(z=(T=this.recursivelyAddFilterGroupComps(m,d,g))==null?void 0:T.flatMap(G=>G))!=null?z:[];let b=m;if(!this.shouldDisplayFilter(b))return[];let w=d===0,k=new f.ToolPanelFilterComp(w,()=>this.onFilterExpanded());if(this.createBean(k),k.setColumn(b),g.get(b.getId())&&k.expand(),d>0)return k;let R=this.createBean(new v.ToolPanelFilterGroupComp(b,[k],this.onGroupExpanded.bind(this),d,!0));return R.addCssClassToTitleBar("ag-filter-toolpanel-header"),g.get(R.getFilterGroupId())||R.collapse(),R}).flatMap(m=>m)}refreshAriaLabel(){let r=this.getLocaleTextFunc(),d=r("ariaFilterPanelList","Filter List"),g=r("filters","Filters"),m=this.getGui(),b=".ag-filter-toolpanel-group-wrapper",w=".ag-filter-toolpanel-group-item",k=".ag-hidden",T=m.querySelectorAll(`${w}:not(${b}, ${k})`).length;(0,A._setAriaLabel)(this.getAriaElement(),`${d} ${T} ${g}`)}recursivelyAddFilterGroupComps(r,d,g){if(!this.filtersExistInChildren(r.getChildren()))return;let m=r.getColGroupDef();if(m&&m.suppressFiltersToolPanel)return[];let b=r.isPadding()?d:d+1,w=this.recursivelyAddComps(r.getChildren(),b,g).flatMap(T=>T);if(r.isPadding())return w;let k=new v.ToolPanelFilterGroupComp(r,w,this.onGroupExpanded.bind(this),d,!1);this.createBean(k),k.addCssClassToTitleBar("ag-filter-toolpanel-header");let R=g.get(k.getFilterGroupId());return(this.isInitialState&&!R||R===!1)&&k.collapse(),[k]}filtersExistInChildren(r){return r.some(d=>(0,A.isProvidedColumnGroup)(d)?this.filtersExistInChildren(d.getChildren()):this.shouldDisplayFilter(d))}shouldDisplayFilter(r){let d=r.getColDef()&&r.getColDef().suppressFiltersToolPanel;return r.isFilterAllowed()&&!d}getExpansionState(){let r=new Map;if(this.isInitialState){let{expandedColIds:g,expandedGroupIds:m}=this.params.initialState;return g.forEach(b=>r.set(b,!0)),m.forEach(b=>r.set(b,!0)),r}let d=g=>{r.set(g.getFilterGroupId(),g.isExpanded()),g.getChildren().forEach(m=>{m instanceof v.ToolPanelFilterGroupComp?d(m):r.set(m.getColumn().getId(),m.isExpanded())})};return this.filterGroupComps.forEach(d),r}refresh(){}setVisible(r){super.setDisplayed(r),r&&!this.initialised&&this.init(this.params)}expandFilterGroups(r,d){let g=[],m=b=>{let w=b.getFilterGroupId();(!d||d.includes(w))&&(r&&b.isColumnGroup()?b.expand():b.collapse(),g.push(w)),b.getChildren().forEach(R=>{R instanceof v.ToolPanelFilterGroupComp&&m(R)})};if(this.filterGroupComps.forEach(m),this.onGroupExpanded(),d){let b=d.filter(w=>g.indexOf(w)<0);b.length>0&&(0,A._warn)(166,{unrecognisedGroupIds:b})}}expandFilters(r,d){let g=[],m=b=>{if(b instanceof v.ToolPanelFilterGroupComp){let R=!1;return b.getChildren().forEach(T=>{m(T)&&(r?(b.expand(),R=!0):b.isColumnGroup()||b.collapse())}),R}let w=b.getColumn().getColId(),k=!d||d.includes(w);return k&&(r?b.expand():b.collapse(),g.push(w)),k};if(this.filterGroupComps.forEach(m),this.onGroupExpanded(),d){let b=d.filter(w=>g.indexOf(w)<0);b.length>0&&(0,A._warn)(167,{unrecognisedColIds:b})}}onGroupExpanded(){this.fireExpandedEvent()}onFilterExpanded(){this.dispatchLocalEvent({type:"filterExpanded"})}fireExpandedEvent(){let r=0,d=0,g=b=>{b.isColumnGroup()&&(b.isExpanded()?r++:d++,b.getChildren().forEach(w=>{w instanceof v.ToolPanelFilterGroupComp&&g(w)}))};this.filterGroupComps.forEach(g);let m;r>0&&d>0?m=D.EXPAND_STATE.INDETERMINATE:d>0?m=D.EXPAND_STATE.COLLAPSED:m=D.EXPAND_STATE.EXPANDED,this.dispatchLocalEvent({type:"groupExpanded",state:m})}performFilterSearch(r){this.searchFilterText=(0,A._exists)(r)?r.toLowerCase():null,this.searchFilters(this.searchFilterText)}searchFilters(r){let d=w=>!(0,A._exists)(r)||w.toLowerCase().indexOf(r)!==-1,g=(w,k)=>{if(!(w instanceof v.ToolPanelFilterGroupComp))return d(w.getColumnFilterName()||"");let R=w.getChildren(),T=d(w.getFilterGroupName()),z=k||T;if(z){w.hideGroup(!1);for(let U=0;U<R.length;U++)g(R[U],z),w.hideGroupItem(!1,U);return!0}let G=!1;return R.forEach((U,X)=>{let Q=g(U,k);w.hideGroupItem(!Q,X),Q&&(G=!0)}),w.hideGroup(!G),G},m,b;this.filterGroupComps.forEach((w,k)=>{g(w,!1),m===void 0?w.containsCssClass("ag-hidden")||(m=k,b=k):!w.containsCssClass("ag-hidden")&&b!==k&&(b=k)}),this.setFirstAndLastVisible(m,b),this.refreshAriaLabel()}setFirstAndLastVisible(r,d){this.filterGroupComps.forEach((g,m)=>{g.removeCssClass("ag-first-group-visible"),g.removeCssClass("ag-last-group-visible"),m===r&&g.addCssClass("ag-first-group-visible"),m===d&&g.addCssClass("ag-last-group-visible")})}refreshFilters(r){this.filterGroupComps.forEach(d=>d.refreshFilters(r))}getExpandedFiltersAndGroups(){let r=[],d=new Set,g=m=>{if(m instanceof v.ToolPanelFilterGroupComp){m.getChildren().forEach(w=>g(w));let b=m.getFilterGroupId();m.isExpanded()&&!d.has(b)&&r.push(b)}else m.isExpanded()&&d.add(m.getColumn().getColId())};return this.filterGroupComps.forEach(g),{expandedGroupIds:r,expandedColIds:Array.from(d)}}destroyFilters(){this.filterGroupComps=this.destroyBeans(this.filterGroupComps),(0,A._clearElement)(this.getGui())}destroy(){this.destroyFilters(),super.destroy()}}p.AgFiltersToolPanelList=u,p.AgFiltersToolPanelListSelector={selector:"AG-FILTERS-TOOL-PANEL-LIST",component:u}},662:function(x,p){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.filtersToolPanelCSS=void 0,p.filtersToolPanelCSS=".ag-filter-toolpanel{flex:1 1 0px;min-width:0}.ag-filter-toolpanel-header,.ag-filter-toolpanel-search{align-items:center;color:var(--ag-header-text-color);display:flex;font-weight:500;padding:0 var(--ag-spacing);>*{align-items:center;display:flex}}.ag-filter-toolpanel-header{padding-bottom:var(--ag-spacing);padding-top:var(--ag-spacing);position:relative;&:focus-visible{border-radius:var(--ag-border-radius);box-shadow:inset var(--ag-focus-shadow)}}:where(.ag-ltr) .ag-filter-toolpanel-group-instance-header-icon,:where(.ag-ltr) .ag-filter-toolpanel-instance-header-icon{margin-left:var(--ag-spacing)}:where(.ag-rtl) .ag-filter-toolpanel-group-instance-header-icon,:where(.ag-rtl) .ag-filter-toolpanel-instance-header-icon{margin-right:var(--ag-spacing)}.ag-filter-toolpanel-search{margin-bottom:var(--ag-spacing);margin-top:var(--ag-widget-container-vertical-padding)}:where(.ag-filter-toolpanel-group:not(.ag-has-filter)>.ag-group-title-bar) .ag-filter-toolpanel-group-instance-header-icon{display:none}.ag-filter-toolpanel-search-input{flex-grow:1;height:calc(var(--ag-spacing)*4)}:where(.ag-ltr) .ag-filter-toolpanel-group-title-bar-icon{margin-right:var(--ag-spacing)}:where(.ag-rtl) .ag-filter-toolpanel-group-title-bar-icon{margin-left:var(--ag-spacing)}.ag-filter-toolpanel-expand{cursor:pointer}:where(.ag-ltr) .ag-filter-toolpanel-expand{margin-right:var(--ag-spacing)}:where(.ag-rtl) .ag-filter-toolpanel-expand{margin-left:var(--ag-spacing)}:where(.ag-ltr) .ag-filter-toolpanel-group-title-bar,:where(.ag-ltr) .ag-filter-toolpanel-instance-header{padding-left:calc(var(--ag-spacing) + var(--ag-filter-tool-panel-group-indent)*var(--ag-indentation-level))}:where(.ag-rtl) .ag-filter-toolpanel-group-title-bar,:where(.ag-rtl) .ag-filter-toolpanel-instance-header{padding-right:calc(var(--ag-spacing) + var(--ag-filter-tool-panel-group-indent)*var(--ag-indentation-level))}:where(.ag-ltr) .ag-filter-toolpanel-instance-body{margin-left:var(--ag-filter-tool-panel-group-indent)}:where(.ag-rtl) .ag-filter-toolpanel-instance-body{margin-right:var(--ag-filter-tool-panel-group-indent)}.ag-filter-toolpanel-instance-filter{background-color:var(--ag-chrome-background-color)}.ag-filter-toolpanel-group-level-0{border-top:none}"},983:function(x,p,M){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.FiltersToolPanel=void 0;let A=M(6624),F=M(8046),D=M(7291),f=M(662);class v extends A.Component{constructor(){super(`<div class="ag-filter-toolpanel">
            <ag-filters-tool-panel-header data-ref="filtersToolPanelHeaderPanel"></ag-filters-tool-panel-header>
            <ag-filters-tool-panel-list data-ref="filtersToolPanelListPanel"></ag-filters-tool-panel-list>
         </div>`,[F.AgFiltersToolPanelHeaderSelector,D.AgFiltersToolPanelListSelector]),this.filtersToolPanelHeaderPanel=A.RefPlaceholder,this.filtersToolPanelListPanel=A.RefPlaceholder,this.initialised=!1,this.listenerDestroyFuncs=[],this.registerCSS(f.filtersToolPanelCSS)}init(s){this.initialised&&(this.listenerDestroyFuncs.forEach(k=>k()),this.listenerDestroyFuncs=[]),this.initialised=!0;let r=this.gos.addGridCommonParams({suppressExpandAll:!1,suppressFilterSearch:!1,suppressSyncLayoutWithGrid:!1}),d=pe(pe({},r),s);this.params=d;let{filtersToolPanelHeaderPanel:g,filtersToolPanelListPanel:m}=this;g.init(d),m.init(d);let b=d.suppressExpandAll,w=d.suppressFilterSearch;b&&w&&g.setDisplayed(!1),this.listenerDestroyFuncs.push(...this.addManagedListeners(g,{expandAll:()=>m.expandFilterGroups(!0),collapseAll:()=>m.expandFilterGroups(!1),searchChanged:k=>m.performFilterSearch(k.searchText)}),...this.addManagedListeners(m,{filterExpanded:d.onStateUpdated,groupExpanded:k=>{g.setExpandState(k.state),d.onStateUpdated()}}))}setVisible(s){super.setDisplayed(s),s&&!this.initialised&&this.init(this.params)}setFilterLayout(s){this.filtersToolPanelListPanel.setFiltersLayout(s)}expandFilterGroups(s){this.filtersToolPanelListPanel.expandFilterGroups(!0,s)}collapseFilterGroups(s){this.filtersToolPanelListPanel.expandFilterGroups(!1,s)}expandFilters(s){this.filtersToolPanelListPanel.expandFilters(!0,s)}collapseFilters(s){this.filtersToolPanelListPanel.expandFilters(!1,s)}syncLayoutWithGrid(){this.filtersToolPanelListPanel.syncFilterLayout()}refresh(s){return this.init(s),!0}getState(){return this.filtersToolPanelListPanel.getExpandedFiltersAndGroups()}}p.FiltersToolPanel=v},2515:function(x,p,M){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.FiltersToolPanelModule=void 0;let A=M(6624),F=M(9206),D=M(6358),f=M(7205),v=M(983);p.FiltersToolPanelModule={moduleName:"FiltersToolPanel",version:f.VERSION,userComponents:{agFiltersToolPanel:v.FiltersToolPanel},icons:{filtersToolPanel:"filter"},dependsOn:[D.SideBarModule,F.EnterpriseCoreModule,A._ColumnFilterModule]}},3905:function(x,p,M){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.ToolPanelFilterComp=void 0;let A=M(6624);class F extends A.Component{constructor(f,v){super(`
            <div class="ag-filter-toolpanel-instance">
                <div class="ag-filter-toolpanel-header ag-filter-toolpanel-instance-header" data-ref="eFilterToolPanelHeader" role="button" aria-expanded="false">
                    <div data-ref="eExpand" class="ag-filter-toolpanel-expand"></div>
                    <span data-ref="eFilterName" class="ag-header-cell-text"></span>
                    <span data-ref="eFilterIcon" class="ag-header-icon ag-filter-icon ag-filter-toolpanel-instance-header-icon" aria-hidden="true"></span>
                </div>
                <div class="ag-filter-toolpanel-instance-body ag-filter" data-ref="agFilterToolPanelBody"></div>
            </div>`),this.hideHeader=f,this.expandedCallback=v,this.eFilterToolPanelHeader=A.RefPlaceholder,this.eFilterName=A.RefPlaceholder,this.agFilterToolPanelBody=A.RefPlaceholder,this.eFilterIcon=A.RefPlaceholder,this.eExpand=A.RefPlaceholder,this.expanded=!1}postConstruct(){let{beans:f,eExpand:v}=this,u=(0,A._createIconNoSpan)("accordionOpen",f);this.eExpandChecked=u;let s=(0,A._createIconNoSpan)("accordionClosed",f);this.eExpandUnchecked=s,v.appendChild(u),v.appendChild(s)}setColumn(f){this.column=f;let{beans:v,eFilterToolPanelHeader:u,eFilterIcon:s,eExpandChecked:r,hideHeader:d}=this;this.eFilterName.innerText=v.colNames.getDisplayNameForColumn(f,"filterToolPanel",!1)||"",this.addManagedListeners(u,{click:this.toggleExpanded.bind(this),keydown:this.onKeyDown.bind(this)}),this.addManagedEventListeners({filterOpened:this.onFilterOpened.bind(this)}),this.addInIcon("filterActive",s,f),(0,A._setDisplayed)(s,this.isFilterActive(),{skipAriaHidden:!0}),(0,A._setDisplayed)(r,!1),d?((0,A._setDisplayed)(u,!1),u.removeAttribute("tabindex")):u.setAttribute("tabindex","0"),this.addManagedListeners(f,{filterChanged:this.onFilterChanged.bind(this)})}onKeyDown(f){let{key:v}=f,{ENTER:u,SPACE:s,LEFT:r,RIGHT:d}=A.KeyCode;v!==u&&v!==s&&v!==r&&v!==d||(f.preventDefault(),v===u||v===s?this.toggleExpanded():v===A.KeyCode.LEFT?this.collapse():this.expand())}getColumn(){return this.column}getColumnFilterName(){return this.beans.colNames.getDisplayNameForColumn(this.column,"filterToolPanel",!1)}addCssClassToTitleBar(f){this.eFilterToolPanelHeader.classList.add(f)}addInIcon(f,v,u){if(v==null)return;let s=(0,A._createIconNoSpan)(f,this.beans,u);v.appendChild(s)}isFilterActive(){var f;return!!((f=this.beans.filterManager)!=null&&f.isFilterActive(this.column))}onFilterChanged(){(0,A._setDisplayed)(this.eFilterIcon,this.isFilterActive(),{skipAriaHidden:!0}),this.dispatchLocalEvent({type:"filterChanged"})}toggleExpanded(){this.expanded?this.collapse():this.expand()}expand(){this.expanded||(this.expanded=!0,(0,A._setAriaExpanded)(this.eFilterToolPanelHeader,!0),(0,A._setDisplayed)(this.eExpandChecked,!0),(0,A._setDisplayed)(this.eExpandUnchecked,!1),this.addFilterElement(),this.expandedCallback())}addFilterElement(f){var s;let v=(0,A._loadTemplate)('<div class="ag-filter-toolpanel-instance-filter"></div>'),u=this.createManagedBean(new A.FilterWrapperComp(this.column,"TOOLBAR"));this.filterWrapperComp=u,u.hasFilter()&&((s=u.getFilter())==null||s.then(r=>{this.underlyingFilter=r,r&&(v.appendChild(u.getGui()),this.agFilterToolPanelBody.appendChild(v),u.afterGuiAttached({container:"toolPanel",suppressFocus:f}))}))}collapse(){if(!this.expanded)return;this.expanded=!1,(0,A._setAriaExpanded)(this.eFilterToolPanelHeader,!1),this.removeFilterElement(),(0,A._setDisplayed)(this.eExpandChecked,!1),(0,A._setDisplayed)(this.eExpandUnchecked,!0);let f=this.filterWrapperComp;f==null||f.afterGuiDetached(),this.destroyBean(f),this.expandedCallback()}removeFilterElement(){(0,A._clearElement)(this.agFilterToolPanelBody)}isExpanded(){return this.expanded}refreshFilter(f){var u;if(!this.expanded)return;let v=this.underlyingFilter;v&&(f?typeof v.refreshVirtualList=="function"&&v.refreshVirtualList():(u=v.afterGuiDetached)==null||u.call(v))}onFilterOpened(f){f.source==="COLUMN_MENU"&&f.column===this.column&&this.expanded&&this.collapse()}}p.ToolPanelFilterComp=F},5296:function(x,p,M){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.ToolPanelFilterGroupComp=void 0;let A=M(6624),F=M(1421),D=M(3905);class f extends A.Component{constructor(u,s,r,d,g){super(),this.columnGroup=u,this.childFilterComps=s,this.expandedCallback=r,this.depth=d,this.showingColumn=g,this.filterGroupComp=A.RefPlaceholder}postConstruct(){let u={cssIdentifier:"filter-toolpanel",direction:"vertical"};this.setTemplate(`<div class="ag-filter-toolpanel-group-wrapper">
            <ag-group-component data-ref="filterGroupComp"></ag-group-component>
        </div>`,[F.AgGroupComponentSelector],{filterGroupComp:u}),this.setGroupTitle();let{filterGroupComp:s,depth:r,childFilterComps:d,gos:g}=this;s.setAlignItems("stretch"),s.addCssClass(`ag-filter-toolpanel-group-level-${r}`),s.getGui().style.setProperty("--ag-indentation-level",String(r)),s.addCssClassToTitleBar(`ag-filter-toolpanel-group-level-${r}-header`),d.forEach(m=>{s.addItem(m),m.addCssClassToTitleBar(`ag-filter-toolpanel-group-level-${r+1}-header`),m.getGui().style.setProperty("--ag-indentation-level",String(r+1))}),this.tooltipFeature=this.createOptionalManagedBean(this.beans.registry.createDynamicBean("tooltipFeature",!1,{getGui:()=>this.getGui(),getLocation:()=>"filterToolPanelColumnGroup",shouldDisplayTooltip:(0,A._getShouldDisplayTooltip)(g,()=>s.getGui().querySelector(".ag-group-title"))})),this.refreshFilterClass(),this.addExpandCollapseListeners(),this.addFilterChangedListeners(),this.setupTooltip(),this.addInIcon("filterActive")}setupTooltip(){if(!this.showingColumn)return;let u=()=>{var s;(s=this.tooltipFeature)==null||s.setTooltipAndRefresh(this.columnGroup.getColDef().headerTooltip)};u(),this.addManagedEventListeners({newColumnsLoaded:u})}addCssClassToTitleBar(u){this.filterGroupComp.addCssClassToTitleBar(u)}refreshFilters(u){this.childFilterComps.forEach(s=>{s instanceof f?s.refreshFilters(u):s.refreshFilter(u)})}isColumnGroup(){return(0,A.isProvidedColumnGroup)(this.columnGroup)}isExpanded(){return this.filterGroupComp.isExpanded()}getChildren(){return this.childFilterComps}getFilterGroupName(){var u;return(u=this.filterGroupName)!=null?u:""}getFilterGroupId(){return this.columnGroup.getId()}hideGroupItem(u,s){this.filterGroupComp.hideItem(u,s)}hideGroup(u){this.setDisplayed(!u)}addInIcon(u){let s=(0,A._createIconNoSpan)(u,this.beans);s&&s.classList.add("ag-filter-toolpanel-group-instance-header-icon"),this.filterGroupComp.addTitleBarWidget(s)}forEachToolPanelFilterChild(u){this.childFilterComps.forEach(s=>{s instanceof D.ToolPanelFilterComp&&u(s)})}addExpandCollapseListeners(){let u=this.isColumnGroup()?()=>this.expandedCallback():()=>this.forEachToolPanelFilterChild(r=>r.expand()),s=this.isColumnGroup()?()=>this.expandedCallback():()=>this.forEachToolPanelFilterChild(r=>r.collapse());this.addManagedListeners(this.filterGroupComp,{expanded:u,collapsed:s})}getColumns(){return(0,A.isProvidedColumnGroup)(this.columnGroup)?this.columnGroup.getLeafColumns():[this.columnGroup]}addFilterChangedListeners(){this.getColumns().forEach(u=>{this.addManagedListeners(u,{filterChanged:()=>this.refreshFilterClass()})}),(0,A.isProvidedColumnGroup)(this.columnGroup)||this.addManagedEventListeners({filterOpened:this.onFilterOpened.bind(this)})}refreshFilterClass(){let u=this.getColumns(),s=()=>u.some(r=>r.isFilterActive());this.filterGroupComp.addOrRemoveCssClass("ag-has-filter",s())}onFilterOpened(u){u.source==="COLUMN_MENU"&&u.column===this.columnGroup&&this.isExpanded()&&this.collapse()}expand(){this.filterGroupComp.toggleGroupExpand(!0)}collapse(){this.filterGroupComp.toggleGroupExpand(!1)}setGroupTitle(){let u=this.columnGroup,s=(0,A.isProvidedColumnGroup)(u)?this.getColumnGroupName(u):this.getColumnName(u);this.filterGroupName=s,this.filterGroupComp.setTitle(s||"")}getColumnGroupName(u){return this.beans.colNames.getDisplayNameForProvidedColumnGroup(null,u,"filterToolPanel")}getColumnName(u){return this.beans.colNames.getDisplayNameForColumn(u,"filterToolPanel",!1)}destroyFilters(){this.childFilterComps=this.destroyBeans(this.childFilterComps),(0,A._clearElement)(this.getGui())}destroy(){this.destroyFilters(),super.destroy()}}p.ToolPanelFilterGroupComp=f},3159:function(x,p,M){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.GridLicenseManager=void 0;let A=M(6624),F=M(6565),D=M(3879);class f extends A.BeanStub{constructor(){super(...arguments),this.beanName="licenseManager"}postConstruct(){this.validateLicense()}validateLicense(){this.licenseManager=new F.LicenseManager((0,A._getDocument)(this.beans)),this.licenseManager.validateLicense()}static getLicenseDetails(u){return new F.LicenseManager(null).getLicenseDetails(u)}getWatermarkSelector(){return D.AgWatermarkSelector}isDisplayWatermark(){return this.licenseManager.isDisplayWatermark()}getWatermarkMessage(){return this.licenseManager.getWatermarkMessage()}static setLicenseKey(u){F.LicenseManager.setLicenseKey(u)}static setChartsLicenseManager(u){F.LicenseManager.setChartsLicenseManager(u)}}p.GridLicenseManager=f},6565:function(x,p,M){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.LicenseManager=void 0;let A=M(1555),F={"01":"GRID","02":"CHARTS","0102":"BOTH"},D="https://ag-grid.com/licensing/";class f{constructor(u){this.watermarkMessage=void 0,this.totalMessageLength=124,this.document=u,this.md5=new A.MD5,this.md5.init()}validateLicense(){let u=this.getLicenseDetails(f.licenseKey),s=`AG Grid ${u.currentLicenseType==="BOTH"?"and AG Charts ":""}Enterprise`,r=u.suppliedLicenseType===void 0?"":`AG ${u.suppliedLicenseType==="BOTH"?"Grid and AG Charts":u.suppliedLicenseType==="GRID"?"Grid":"Charts"} Enterprise`;if(u.missing)(!this.isWebsiteUrl()||this.isForceWatermark())&&this.outputMissingLicenseKey(s);else if(u.expired){let d=f.getGridReleaseDate(),g=f.formatDate(d);this.outputExpiredKey(u.expiry,g,s,r)}else u.valid?u.isTrial&&u.trialExpired&&this.outputExpiredTrialKey(u.expiry,s,r):this.outputInvalidLicenseKey(!!u.incorrectLicenseType,s,r)}static extractExpiry(u){let s=u.substring(u.lastIndexOf("_")+1,u.length);return new Date(parseInt(f.decode(s),10))}static extractLicenseComponents(u){let s=u.replace(/[\u200B-\u200D\uFEFF]/g,"");if(s=s.replace(/\r?\n|\r/g,""),u.length<=32)return{md5:null,license:u,version:null,isTrial:null};let r=s.length-32,d=s.substring(r),g=s.substring(0,r),[m,b,w]=f.extractBracketedInformation(s);return{md5:d,license:g,version:m,isTrial:b,type:w}}getLicenseDetails(u){let s=f.chartsLicenseManager?"BOTH":"GRID";if(!(u!=null&&u.length))return{licenseKey:u,valid:!1,missing:!0,currentLicenseType:s};let r=f.getGridReleaseDate(),{md5:d,license:g,version:m,isTrial:b,type:w}=f.extractLicenseComponents(u),k=d===this.md5.md5(g)&&u.indexOf("For_Trialing_ag-Grid_Only")===-1,R,T,z=null,G=!1,U;function X(){R=z<new Date,T=void 0}if(k&&(z=f.extractExpiry(g),k=!isNaN(z.getTime()),k))switch(T=r>z,m){case"legacy":case"2":{b&&X();break}case"3":w!=null&&w.length?(U=w,w!==F["01"]&&w!==F["0102"]||s==="BOTH"&&U!=="BOTH"?(k=!1,G=!0):b&&X()):k=!1}return k?{licenseKey:u,valid:k,expiry:f.formatDate(z),expired:T,version:m,isTrial:b,trialExpired:R,incorrectLicenseType:G,currentLicenseType:s,suppliedLicenseType:U}:{licenseKey:u,valid:k,incorrectLicenseType:G,currentLicenseType:s,suppliedLicenseType:U}}isDisplayWatermark(){var u;return this.isForceWatermark()||!this.isLocalhost()&&!this.isWebsiteUrl()&&!!((u=this.watermarkMessage)!=null&&u.length)}getWatermarkMessage(){return this.watermarkMessage||""}getHostname(){let s=(this.document.defaultView||window).location,{hostname:r=""}=s;return r}isForceWatermark(){let s=(this.document.defaultView||window).location,{pathname:r}=s;return r?r.indexOf("forceWatermark")!==-1:!1}isWebsiteUrl(){return this.getHostname().match(/^((?:[\w-]+\.)?ag-grid\.com)$/)!==null}isLocalhost(){return this.getHostname().match(/^(?:127\.0\.0\.1|localhost)$/)!==null}static formatDate(u){let s=["January","February","March","April","May","June","July","August","September","October","November","December"],r=u.getDate(),d=u.getMonth(),g=u.getFullYear();return r+" "+s[d]+" "+g}static getGridReleaseDate(){return new Date(parseInt(f.decode(f.RELEASE_INFORMATION),10))}static decode(u){let s="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",r="",d,g,m,b,w,k,R,T=0,z=u.replace(/[^A-Za-z0-9+/=]/g,"");for(;T<z.length;)b=s.indexOf(z.charAt(T++)),w=s.indexOf(z.charAt(T++)),k=s.indexOf(z.charAt(T++)),R=s.indexOf(z.charAt(T++)),d=b<<2|w>>4,g=(w&15)<<4|k>>2,m=(k&3)<<6|R,r=r+String.fromCharCode(d),k!=64&&(r=r+String.fromCharCode(g)),R!=64&&(r=r+String.fromCharCode(m));return r=f.utf8_decode(r),r}static utf8_decode(u){u=u.replace(/rn/g,"n");let s="";for(let r=0;r<u.length;r++){let d=u.charCodeAt(r);d<128?s+=String.fromCharCode(d):d>127&&d<2048?(s+=String.fromCharCode(d>>6|192),s+=String.fromCharCode(d&63|128)):(s+=String.fromCharCode(d>>12|224),s+=String.fromCharCode(d>>6&63|128),s+=String.fromCharCode(d&63|128))}return s}static setChartsLicenseManager(u){this.chartsLicenseManager=u}static setLicenseKey(u){var s;this.licenseKey=u,(s=this.chartsLicenseManager)==null||s.setLicenseKey(u,!0)}static extractBracketedInformation(u){if(!u.includes("["))return["legacy",!1,void 0];let s=u.match(/\[(.*?)\]/g).map(b=>b.replace("[","").replace("]",""));if(!s||s.length===0)return["legacy",!1,void 0];let r=s.filter(b=>b==="TRIAL").length===1,d=s.filter(b=>b.indexOf("v")===0)[0],g=d?d.replace("v",""):"legacy",m=F[s.filter(b=>F[b])[0]];return[g,r,m]}centerPadAndOutput(u){let s=this.totalMessageLength-u.length;console.error(u.padStart(s/2+u.length,"*").padEnd(this.totalMessageLength,"*"))}padAndOutput(u,s="*",r=""){console.error(u.padEnd(this.totalMessageLength-r.length,s)+r)}outputInvalidLicenseKey(u,s,r){u?(this.centerPadAndOutput(""),this.centerPadAndOutput(` ${s} License `),this.centerPadAndOutput(" Incompatible License Key "),this.padAndOutput(`* Your license key is for ${r} only and does not cover you for ${s}.`," ","*"),this.padAndOutput(`* To troubleshoot your license key visit ${D}.`," ","*"),this.centerPadAndOutput(""),this.centerPadAndOutput("")):(this.centerPadAndOutput(""),this.centerPadAndOutput(` ${s} License `),this.centerPadAndOutput(" Invalid License Key "),this.padAndOutput("* Your license key is not valid."," ","*"),this.padAndOutput(`* To troubleshoot your license key visit ${D}.`," ","*"),this.centerPadAndOutput(""),this.centerPadAndOutput("")),this.watermarkMessage="Invalid License"}outputExpiredTrialKey(u,s,r){this.centerPadAndOutput(""),this.centerPadAndOutput(` ${s} License `),this.centerPadAndOutput(" Trial Period Expired. "),this.padAndOutput(`* Your trial only license for ${r} expired on ${u}.`," ","*"),this.padAndOutput("* Please email info@ag-grid.com to purchase a license."," ","*"),this.centerPadAndOutput(""),this.centerPadAndOutput(""),this.watermarkMessage="Trial Period Expired"}outputMissingLicenseKey(u){this.centerPadAndOutput(""),this.centerPadAndOutput(` ${u} License `),this.centerPadAndOutput(" License Key Not Found "),this.padAndOutput(`* All ${u} features are unlocked for trial.`," ","*"),this.padAndOutput("* If you want to hide the watermark please email info@ag-grid.com for a trial license key."," ","*"),this.centerPadAndOutput(""),this.centerPadAndOutput(""),this.watermarkMessage="For Trial Use Only"}outputExpiredKey(u,s,r,d){this.centerPadAndOutput(""),this.centerPadAndOutput(` ${r} License `),this.centerPadAndOutput(" Incompatible Software Version "),this.padAndOutput(`* Your license key works with versions of ${d} released before ${u}.`," ","*"),this.padAndOutput(`* The version you are trying to use was released on ${s}.`," ","*"),this.padAndOutput("* Please contact info@ag-grid.com to renew your license key."," ","*"),this.centerPadAndOutput(""),this.centerPadAndOutput(""),this.watermarkMessage="License Expired"}}p.LicenseManager=f,f.RELEASE_INFORMATION="MTczMzc1NjY3OTc2Mw=="},1555:function(x,p){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.MD5=void 0;class M{constructor(){this.ieCompatibility=!1}init(){this.ieCompatibility=this.md5("hello")!="5d41402abc4b2a76b9719d911017c592"}md5cycle(F,D){let f=F[0],v=F[1],u=F[2],s=F[3];f=this.ff(f,v,u,s,D[0],7,-680876936),s=this.ff(s,f,v,u,D[1],12,-389564586),u=this.ff(u,s,f,v,D[2],17,606105819),v=this.ff(v,u,s,f,D[3],22,-1044525330),f=this.ff(f,v,u,s,D[4],7,-176418897),s=this.ff(s,f,v,u,D[5],12,1200080426),u=this.ff(u,s,f,v,D[6],17,-1473231341),v=this.ff(v,u,s,f,D[7],22,-45705983),f=this.ff(f,v,u,s,D[8],7,1770035416),s=this.ff(s,f,v,u,D[9],12,-1958414417),u=this.ff(u,s,f,v,D[10],17,-42063),v=this.ff(v,u,s,f,D[11],22,-1990404162),f=this.ff(f,v,u,s,D[12],7,1804603682),s=this.ff(s,f,v,u,D[13],12,-40341101),u=this.ff(u,s,f,v,D[14],17,-1502002290),v=this.ff(v,u,s,f,D[15],22,1236535329),f=this.gg(f,v,u,s,D[1],5,-165796510),s=this.gg(s,f,v,u,D[6],9,-1069501632),u=this.gg(u,s,f,v,D[11],14,643717713),v=this.gg(v,u,s,f,D[0],20,-373897302),f=this.gg(f,v,u,s,D[5],5,-701558691),s=this.gg(s,f,v,u,D[10],9,38016083),u=this.gg(u,s,f,v,D[15],14,-660478335),v=this.gg(v,u,s,f,D[4],20,-405537848),f=this.gg(f,v,u,s,D[9],5,568446438),s=this.gg(s,f,v,u,D[14],9,-1019803690),u=this.gg(u,s,f,v,D[3],14,-187363961),v=this.gg(v,u,s,f,D[8],20,1163531501),f=this.gg(f,v,u,s,D[13],5,-1444681467),s=this.gg(s,f,v,u,D[2],9,-51403784),u=this.gg(u,s,f,v,D[7],14,1735328473),v=this.gg(v,u,s,f,D[12],20,-1926607734),f=this.hh(f,v,u,s,D[5],4,-378558),s=this.hh(s,f,v,u,D[8],11,-2022574463),u=this.hh(u,s,f,v,D[11],16,1839030562),v=this.hh(v,u,s,f,D[14],23,-35309556),f=this.hh(f,v,u,s,D[1],4,-1530992060),s=this.hh(s,f,v,u,D[4],11,1272893353),u=this.hh(u,s,f,v,D[7],16,-155497632),v=this.hh(v,u,s,f,D[10],23,-1094730640),f=this.hh(f,v,u,s,D[13],4,681279174),s=this.hh(s,f,v,u,D[0],11,-358537222),u=this.hh(u,s,f,v,D[3],16,-722521979),v=this.hh(v,u,s,f,D[6],23,76029189),f=this.hh(f,v,u,s,D[9],4,-640364487),s=this.hh(s,f,v,u,D[12],11,-421815835),u=this.hh(u,s,f,v,D[15],16,530742520),v=this.hh(v,u,s,f,D[2],23,-995338651),f=this.ii(f,v,u,s,D[0],6,-198630844),s=this.ii(s,f,v,u,D[7],10,1126891415),u=this.ii(u,s,f,v,D[14],15,-1416354905),v=this.ii(v,u,s,f,D[5],21,-57434055),f=this.ii(f,v,u,s,D[12],6,1700485571),s=this.ii(s,f,v,u,D[3],10,-1894986606),u=this.ii(u,s,f,v,D[10],15,-1051523),v=this.ii(v,u,s,f,D[1],21,-2054922799),f=this.ii(f,v,u,s,D[8],6,1873313359),s=this.ii(s,f,v,u,D[15],10,-30611744),u=this.ii(u,s,f,v,D[6],15,-1560198380),v=this.ii(v,u,s,f,D[13],21,1309151649),f=this.ii(f,v,u,s,D[4],6,-145523070),s=this.ii(s,f,v,u,D[11],10,-1120210379),u=this.ii(u,s,f,v,D[2],15,718787259),v=this.ii(v,u,s,f,D[9],21,-343485551),F[0]=this.add32(f,F[0]),F[1]=this.add32(v,F[1]),F[2]=this.add32(u,F[2]),F[3]=this.add32(s,F[3])}cmn(F,D,f,v,u,s){return D=this.add32(this.add32(D,F),this.add32(v,s)),this.add32(D<<u|D>>>32-u,f)}ff(F,D,f,v,u,s,r){return this.cmn(D&f|~D&v,F,D,u,s,r)}gg(F,D,f,v,u,s,r){return this.cmn(D&v|f&~v,F,D,u,s,r)}hh(F,D,f,v,u,s,r){return this.cmn(D^f^v,F,D,u,s,r)}ii(F,D,f,v,u,s,r){return this.cmn(f^(D|~v),F,D,u,s,r)}md51(F){let D=F.length,f=[1732584193,-271733879,-1732584194,271733878],v;for(v=64;v<=F.length;v+=64)this.md5cycle(f,this.md5blk(F.substring(v-64,v)));F=F.substring(v-64);let u=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];for(v=0;v<F.length;v++)u[v>>2]|=F.charCodeAt(v)<<(v%4<<3);if(u[v>>2]|=128<<(v%4<<3),v>55)for(this.md5cycle(f,u),v=0;v<16;v++)u[v]=0;return u[14]=D*8,this.md5cycle(f,u),f}md5blk(F){let D=[];for(let f=0;f<64;f+=4)D[f>>2]=F.charCodeAt(f)+(F.charCodeAt(f+1)<<8)+(F.charCodeAt(f+2)<<16)+(F.charCodeAt(f+3)<<24);return D}rhex(F){let D="0123456789abcdef".split(""),f="",v=0;for(;v<4;v++)f+=D[F>>v*8+4&15]+D[F>>v*8&15];return f}hex(F){for(let D=0;D<F.length;D++)F[D]=this.rhex(F[D]);return F.join("")}md5(F){return this.hex(this.md51(F))}add32(F,D){return this.ieCompatibility?this.add32Compat(F,D):this.add32Std(F,D)}add32Std(F,D){return F+D&4294967295}add32Compat(F,D){let f=(F&65535)+(D&65535);return(F>>16)+(D>>16)+(f>>16)<<16|f&65535}}p.MD5=M},454:function(x,p){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.watermarkCSS=void 0,p.watermarkCSS='.ag-watermark{bottom:20px;color:#9b9b9b;opacity:.7;position:absolute;transition:opacity 1s ease-out 3s;&:before{background-image:url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyMDkiIGhlaWdodD0iMzYiIGZpbGw9Im5vbmUiIHZpZXdCb3g9IjAgMCAyMDkgMzYiPjxwYXRoIGZpbGw9IiM5QjlCOUIiIGQ9Ik0xOTIuOTkzIDIzLjY1OHYtNy45NDZoLTEzLjU0MWwtNy45NDcgNy45NDZ6TTIwOC4yNSAzLjk1aC0xNi45NzRsLTguMDEgNy45NDdoMjQuOTg0ek0xNjMuNjIyIDMxLjYwNWw0LjA2OS00LjA2OWgxMy43MzJ2Ny45NDdoLTE3LjgwMXoiLz48cGF0aCBmaWxsPSIjOUI5QjlCIiBkPSJNMTY2LjYxIDE5Ljc4aDguNzczbDguMDEtNy45NDZIMTY2LjYxek0xNTcuMDExIDMxLjYwNWg2LjYxMWw3Ljg4My03Ljk0N2gtMTQuNDk0ek0xOTEuMjc2IDMuOTVsLTQuMDY4IDQuMDdIMTYxLjI3Vi4wNzJoMzAuMDA2ek0yMC44NCAzMC4yMDZIOC4zNzhsLTIuMTYyIDUuMzRILjc1TDEyLjI1NyA4LjU5Mmg0Ljc2OEwyOC41MyAzNS41NDZoLTUuNTN6bS0xLjcxNy00LjI2TDE0LjYwOSAxNC45NWwtNC41MTQgMTAuOTk4ek0xMDQuNDM3IDE4LjUwOWMxLjU4OS0yLjM1MiA1LjU5NC0yLjYwNyA3LjI0Ny0yLjYwN3Y0LjU3OGMtMi4wMzQgMC00LjA2OS4wNjMtNS4yNzcuOTUzLTEuMjA3Ljg5LTEuODQzIDIuMDk4LTEuODQzIDMuNTZ2MTAuNTUzaC00Ljk1OVYxNS45MDJoNC43Njh6TTExOS4zNzYgMTUuOTAyaC00Ljk1OHYxOS42NDRoNC45NTh6TTExOS4zNzYgNy4xM2gtNC45NTh2NS44NDhoNC45NTh6TTE0My45NzkgNy4xM3YyOC40MTZoLTQuNzY4bC0uMTI3LTIuOTg4YTguMyA4LjMgMCAwIDEtMi42NyAyLjQ4Yy0xLjA4MS41NzItMi40MTYuODktMy45NDIuODktMS4zMzUgMC0yLjYwNi0uMjU1LTMuNjg3LS43LTEuMTQ0LS41MDgtMi4xNjItMS4xNDQtMi45ODgtMi4wMzRhOS42IDkuNiAwIDAgMS0xLjk3MS0zLjE3OWMtLjUwOC0xLjIwNy0uNjk5LTIuNjA2LS42OTktNC4xMzJzLjI1NC0yLjkyNC42OTktNC4xOTZjLjUwOS0xLjI3MSAxLjE0NS0yLjM1MiAxLjk3MS0zLjI0MnMxLjg0NC0xLjU4OSAyLjk4OC0yLjA5OCAyLjM1Mi0uNzYzIDMuNjg3LS43NjNjMS41MjYgMCAyLjc5Ny4yNTUgMy44NzguODI3czEuOTcxIDEuMzM1IDIuNjcgMi40MTZWNy4xOTNoNC45NTl6bS0xMC40MjYgMjQuNTM4YzEuNjUzIDAgMi45MjQtLjU3MiAzLjk0MS0xLjY1M3MxLjUyNi0yLjU0MyAxLjUyNi00LjMyMy0uNTA5LTMuMTc4LTEuNTI2LTQuMzIyYy0xLjAxNy0xLjA4MS0yLjI4OC0xLjY1My0zLjk0MS0xLjY1My0xLjU5IDAtMi45MjUuNTcyLTMuODc4IDEuNjUzLTEuMDE3IDEuMDgtMS41MjYgMi41NDMtMS41MjYgNC4zMjIgMCAxLjc4LjUwOSAzLjE4IDEuNTI2IDQuMjYgMS4wMTcgMS4xNDQgMi4yODggMS43MTYgMy44NzggMS43MTZNNTcuMjAyIDIwLjM1M0g0NC45MzN2NC4yNTloNi45OTNjLS4xOSAyLjE2MS0xLjAxNyAzLjgxNC0yLjQxNiA1LjE1LTEuMzk4IDEuMjctMy4xNzggMS45MDYtNS40NjcgMS45MDYtMS4yNzEgMC0yLjQ4LS4yNTQtMy40OTYtLjY5OWE3IDcgMCAwIDEtMi43MzQtMS45N2MtLjc2My0uODI3LTEuMzM1LTEuODQ0LTEuNzgtMy4wNTJzLS42MzYtMi40OC0uNjM2LTMuOTQyLjE5LTIuNzMzLjYzNi0zLjk0MWMuMzgxLTEuMjA4IDEuMDE3LTIuMTYyIDEuNzgtMy4wNTIuNzYzLS44MjYgMS42NTMtMS40NjIgMi43MzMtMS45N2E5LjEgOS4xIDAgMCAxIDMuNTYtLjdxNC4wMDUgMCA2LjEwMyAxLjkwN2wzLjMwNi0zLjMwNWMtMi40OC0xLjkwNy01LjY1OC0yLjkyNS05LjQwOS0yLjkyNS0yLjA5NyAwLTQuMDA0LjMxOC01LjcyMSAxLjAxOC0xLjcxNi42OTktMy4xNzkgMS41ODktNC4zODYgMi43OTdBMTIuMSAxMi4xIDAgMCAwIDMxLjIgMTYuMjJjLS42MzUgMS43MTctLjk1MyAzLjYyNC0uOTUzIDUuNjU4cy4zMTggMy45NDIgMS4wMTcgNS42NThjLjcgMS43MTcgMS41OSAzLjE3OSAyLjc5NyA0LjM4N2ExMi4xIDEyLjEgMCAwIDAgNC4zODcgMi43OTdjMS43MTYuNyAzLjYyMyAxLjAxNyA1LjY1NyAxLjAxNyAyLjAzNSAwIDMuODc4LS4zMTggNS41MzEtMS4wMTcgMS42NTMtLjcgMy4wNTItMS41OSA0LjE5Ni0yLjc5N3ExLjcxNi0xLjgxMiAyLjY3LTQuMzg3Yy42MzYtMS43MTYuOTU0LTMuNjIzLjk1NC01LjY1OHYtLjgyNmMtLjE5MS0uMTI3LS4yNTUtLjQ0NS0uMjU1LS43TTk1Ljk4MiAyMC4zNTNoLTEyLjI3djQuMjU5aDYuOTkzYy0uMTkgMi4xNjEtMS4wMTcgMy44MTQtMi40MTYgNS4xNS0xLjM5OCAxLjI3LTMuMTc4IDEuOTA2LTUuNDY3IDEuOTA2LTEuMjcxIDAtMi40OC0uMjU0LTMuNDk2LS42OTlhNyA3IDAgMCAxLTIuNzM0LTEuOTdjLS43NjMtLjgyNy0xLjMzNS0xLjg0NC0xLjc4LTMuMDUycy0uNjM2LTIuNDgtLjYzNi0zLjk0Mi4xOS0yLjczMy42MzYtMy45NDFjLjM4MS0xLjIwOCAxLjAxNy0yLjE2MiAxLjc4LTMuMDUyLjc2My0uODI2IDEuNjUzLTEuNDYyIDIuNzM0LTEuOTdhOS4xIDkuMSAwIDAgMSAzLjU2LS43cTQuMDA1IDAgNi4xMDMgMS45MDdsMy4zMDUtMy4zMDVjLTIuNDc5LTEuOTA3LTUuNjU4LTIuOTI1LTkuNDA4LTIuOTI1LTIuMDk4IDAtNC4wMDUuMzE4LTUuNzIyIDEuMDE4LTEuNzE2LjY5OS0zLjE3OCAxLjU4OS00LjM4NiAyLjc5N2ExMi4xIDEyLjEgMCAwIDAtMi43OTcgNC4zODZjLS42MzYgMS43MTctLjk1NCAzLjYyNC0uOTU0IDUuNjU4cy4zMTggMy45NDIgMS4wMTcgNS42NThjLjcgMS43MTcgMS41OSAzLjE3OSAyLjc5NyA0LjM4N2ExMi4xIDEyLjEgMCAwIDAgNC4zODcgMi43OTdjMS43MTYuNyAzLjYyMyAxLjAxNyA1LjY1OCAxLjAxNyAyLjAzNCAwIDMuODc4LS4zMTggNS41My0xLjAxNyAxLjY1My0uNyAzLjA1Mi0xLjU5IDQuMTk2LTIuNzk3cTEuNzE4LTEuODEyIDIuNjctNC4zODdjLjYzNi0xLjcxNi45NTQtMy42MjMuOTU0LTUuNjU4di0uODI2Yy0uMTktLjEyNy0uMjU1LS40NDUtLjI1NS0uNyIvPjwvc3ZnPg==");background-repeat:no-repeat;background-size:170px 40px;content:"";display:block;height:40px;width:170px}}:where(.ag-ltr) .ag-watermark{right:25px}:where(.ag-rtl) .ag-watermark{left:25px}.ag-watermark-text{font-family:Impact,sans-serif;font-size:19px;font-weight:700;opacity:.5}:where(.ag-ltr) .ag-watermark-text{padding-left:.7rem}:where(.ag-rtl) .ag-watermark-text{padding-right:.7rem}'},3879:function(x,p,M){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.AgWatermarkSelector=p.AgWatermark=void 0;let A=M(6624),F=M(454);class D extends A.Component{wireBeans(v){this.licenseManager=v.licenseManager}constructor(){super(`<div class="ag-watermark">
                <div data-ref="eLicenseTextRef" class="ag-watermark-text"></div>
            </div>`),this.eLicenseTextRef=A.RefPlaceholder,this.registerCSS(F.watermarkCSS)}postConstruct(){let v=this.shouldDisplayWatermark();this.setDisplayed(v),v&&(this.eLicenseTextRef.innerText=this.licenseManager.getWatermarkMessage(),window.setTimeout(()=>this.addCssClass("ag-opacity-zero"),0),window.setTimeout(()=>this.setDisplayed(!1),5e3))}shouldDisplayWatermark(){return this.licenseManager.isDisplayWatermark()}}p.AgWatermark=D,p.AgWatermarkSelector={selector:"AG-WATERMARK",component:D}},6825:function(x,p,M){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.createGrid=void 0;let A=M(6624),F=M(6624),D=M(12);function f(){var r;let u=globalThis==null?void 0:globalThis.agCharts,s=(r=u==null?void 0:u.AgChartsEnterpriseModule)!=null?r:u==null?void 0:u.AgChartsCommunityModule;s&&A.ModuleRegistry.registerModules([D.IntegratedChartsModule.with(s),D.SparklinesModule.with(s)])}function v(u,s,r){return f(),(0,F.createGrid)(u,s,r)}p.createGrid=v},9058:function(x,p,M){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.createGrid=void 0;let A=M(5608);M(8510),M(2685),M(5151),M(9681),M(2883),M(3543),M(1109),M(1601),M(8755),M(3713),M(9029),M(7628),M(2559),M(9893);let F=M(6624),D=M(12);F.ModuleRegistry.registerModules([D.AllEnterpriseModule]),A.__exportStar(M(6624),p),A.__exportStar(M(12),p);var f=M(6825);Object.defineProperty(p,"createGrid",{enumerable:!0,get:function(){return f.createGrid}})},12:function(x,p,M){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.AllEnterpriseModule=p.IntegratedChartsModule=p.GridChartsModule=p.PivotModule=p.AggregationModule=p.TreeDataModule=p.SparklinesModule=p.ServerSideRowModelApiModule=p.ServerSideRowModelModule=p.RangeSelectionModule=p.CellSelectionModule=p.MasterDetailModule=p.FiltersToolPanelModule=p.ClipboardModule=p.ViewportRowModelModule=p.SideBarModule=p.RowGroupingModule=p.RowGroupingPanelModule=p.GroupFilterModule=p.MultiFilterModule=p.ExcelExportModule=p.StatusBarModule=p.SetFilterModule=p.RichSelectModule=p.ContextMenuModule=p.ColumnMenuModule=p.MenuModule=p.ColumnsToolPanelModule=p.AdvancedFilterModule=p.exportMultipleSheetsAsExcel=p.getMultipleSheetsAsExcel=p.LicenseManager=void 0;let A=M(5608);var F=M(3159);Object.defineProperty(p,"LicenseManager",{enumerable:!0,get:function(){return F.GridLicenseManager}});var D=M(1790);Object.defineProperty(p,"getMultipleSheetsAsExcel",{enumerable:!0,get:function(){return D.getMultipleSheetsAsExcel}}),Object.defineProperty(p,"exportMultipleSheetsAsExcel",{enumerable:!0,get:function(){return D.exportMultipleSheetsAsExcel}});var f=M(7976);Object.defineProperty(p,"AdvancedFilterModule",{enumerable:!0,get:function(){return f.AdvancedFilterModule}});var v=M(6455);Object.defineProperty(p,"ColumnsToolPanelModule",{enumerable:!0,get:function(){return v.ColumnsToolPanelModule}});var u=M(7130);Object.defineProperty(p,"MenuModule",{enumerable:!0,get:function(){return u.MenuModule}}),Object.defineProperty(p,"ColumnMenuModule",{enumerable:!0,get:function(){return u.ColumnMenuModule}}),Object.defineProperty(p,"ContextMenuModule",{enumerable:!0,get:function(){return u.ContextMenuModule}});var s=M(9327);Object.defineProperty(p,"RichSelectModule",{enumerable:!0,get:function(){return s.RichSelectModule}});var r=M(9002);Object.defineProperty(p,"SetFilterModule",{enumerable:!0,get:function(){return r.SetFilterModule}});var d=M(8450);Object.defineProperty(p,"StatusBarModule",{enumerable:!0,get:function(){return d.StatusBarModule}});var g=M(2886);Object.defineProperty(p,"ExcelExportModule",{enumerable:!0,get:function(){return g.ExcelExportModule}});var m=M(5434);Object.defineProperty(p,"MultiFilterModule",{enumerable:!0,get:function(){return m.MultiFilterModule}});var b=M(1442);Object.defineProperty(p,"GroupFilterModule",{enumerable:!0,get:function(){return b.GroupFilterModule}}),Object.defineProperty(p,"RowGroupingPanelModule",{enumerable:!0,get:function(){return b.RowGroupingPanelModule}}),Object.defineProperty(p,"RowGroupingModule",{enumerable:!0,get:function(){return b.RowGroupingModule}});var w=M(6358);Object.defineProperty(p,"SideBarModule",{enumerable:!0,get:function(){return w.SideBarModule}});var k=M(7794);Object.defineProperty(p,"ViewportRowModelModule",{enumerable:!0,get:function(){return k.ViewportRowModelModule}});var R=M(3766);Object.defineProperty(p,"ClipboardModule",{enumerable:!0,get:function(){return R.ClipboardModule}});var T=M(2515);Object.defineProperty(p,"FiltersToolPanelModule",{enumerable:!0,get:function(){return T.FiltersToolPanelModule}});var z=M(1594);Object.defineProperty(p,"MasterDetailModule",{enumerable:!0,get:function(){return z.MasterDetailModule}});var G=M(266);Object.defineProperty(p,"CellSelectionModule",{enumerable:!0,get:function(){return G.CellSelectionModule}}),Object.defineProperty(p,"RangeSelectionModule",{enumerable:!0,get:function(){return G.RangeSelectionModule}});var U=M(9074);Object.defineProperty(p,"ServerSideRowModelModule",{enumerable:!0,get:function(){return U.ServerSideRowModelModule}}),Object.defineProperty(p,"ServerSideRowModelApiModule",{enumerable:!0,get:function(){return U.ServerSideRowModelApiModule}});var X=M(2949);Object.defineProperty(p,"SparklinesModule",{enumerable:!0,get:function(){return X.SparklinesModule}});var Q=M(9428);Object.defineProperty(p,"TreeDataModule",{enumerable:!0,get:function(){return Q.TreeDataModule}});var oe=M(7032);Object.defineProperty(p,"AggregationModule",{enumerable:!0,get:function(){return oe.AggregationModule}});var le=M(5470);Object.defineProperty(p,"PivotModule",{enumerable:!0,get:function(){return le.PivotModule}});var fe=M(1527);Object.defineProperty(p,"GridChartsModule",{enumerable:!0,get:function(){return fe.GridChartsModule}}),Object.defineProperty(p,"IntegratedChartsModule",{enumerable:!0,get:function(){return fe.IntegratedChartsModule}});var ye=M(1809);Object.defineProperty(p,"AllEnterpriseModule",{enumerable:!0,get:function(){return ye.AllEnterpriseModule}}),A.__exportStar(M(6624),p)},3763:function(x,p,M){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.DetailCellRenderer=void 0;let A=M(6624),F=M(3210),D=M(7324);class f extends A.Component{constructor(){super(...arguments),this.eDetailGrid=A.RefPlaceholder}wireBeans(u){this.context=u.context}init(u){this.params=u,this.selectAndSetTemplate();let s={addOrRemoveCssClass:(r,d)=>this.addOrRemoveCssClass(r,d),addOrRemoveDetailGridCssClass:(r,d)=>this.eDetailGrid.classList.toggle(r,d),setDetailGrid:r=>this.setDetailGrid(r),setRowData:r=>this.setRowData(r),getGui:()=>this.eDetailGrid};this.ctrl=this.createManagedBean(new F.DetailCellRendererCtrl),this.ctrl.init(s,u)}refresh(){return this.ctrl&&this.ctrl.refresh()}selectAndSetTemplate(){let u=this.params;if(u.pinned){this.setTemplate('<div class="ag-details-row"></div>');return}let s=()=>{this.setTemplate(`<div class="ag-details-row" role="gridcell">
                <div data-ref="eDetailGrid" class="ag-details-grid" role="presentation"></div>
            </div>`)};if((0,A._missing)(u.template))s();else if(typeof u.template=="string")this.setTemplate(u.template,[]);else if(typeof u.template=="function"){let r=u.template,d=r(u);this.setTemplate(d,[])}else(0,A._warn)(168),s();this.eDetailGrid==null&&(0,A._warn)(169)}setDetailGrid(u){var m;if(!this.eDetailGrid)return;let s=this.context.getBean("frameworkCompWrapper"),r=new D.DetailFrameworkComponentWrapper(s),{frameworkOverrides:d}=this.beans,g=(0,A.createGrid)(this.eDetailGrid,u,{frameworkOverrides:d,providedBeanInstances:{frameworkCompWrapper:r},modules:(0,A._getGridRegisteredModules)(this.params.api.getGridId(),(m=u.rowModelType)!=null?m:"clientSide")});this.detailApi=g,this.ctrl.registerDetailWithMaster(g),this.addDestroyFunc(()=>{g==null||g.destroy()})}setRowData(u){var s;(s=this.detailApi)==null||s.setGridOption("rowData",u)}}p.DetailCellRenderer=f},3210:function(x,p,M){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.DetailCellRendererCtrl=void 0;let A=M(6624);class F extends A.BeanStub{constructor(){super(...arguments),this.loadRowDataVersion=0}init(f,v){this.params=v,this.comp=f,v.pinned==null&&(this.setAutoHeightClasses(),this.setupRefreshStrategy(),this.createDetailGrid(),this.loadRowData(),this.addManagedEventListeners({fullWidthRowFocused:this.onFullWidthRowFocused.bind(this)}))}onFullWidthRowFocused(f){let v=this.params,u={rowIndex:v.node.rowIndex,rowPinned:v.node.rowPinned},s={rowIndex:f.rowIndex,rowPinned:f.rowPinned};(0,A._isSameRow)(u,s)&&(0,A._focusInto)(this.comp.getGui(),f.fromBelow)}setAutoHeightClasses(){let f=this.gos.get("detailRowAutoHeight"),v=f?"ag-details-row-auto-height":"ag-details-row-fixed-height",u=f?"ag-details-grid-auto-height":"ag-details-grid-fixed-height",s=this.comp;s.addOrRemoveCssClass(v,!0),s.addOrRemoveDetailGridCssClass(u,!0)}setupRefreshStrategy(){let f=this.params.refreshStrategy;if(f=="everything"||f=="nothing"||f=="rows"){this.refreshStrategy=f;return}f!=null&&(0,A._warn)(170,{providedStrategy:f}),this.refreshStrategy="rows"}createDetailGrid(){let{params:f,gos:v}=this;if((0,A._missing)(f.detailGridOptions)){(0,A._warn)(171);return}let u=pe({},f.detailGridOptions);v.get("detailRowAutoHeight")&&(u.domLayout="autoHeight"),u.theme||(u.theme=v.get("theme")),this.comp.setDetailGrid(u)}registerDetailWithMaster(f){let v=this.params,u=v.node.id,s=v.api,r={id:u,api:f},d=v.node;s.isDestroyed()||(s.addDetailGridInfo(u,r),d.detailGridInfo=r,this.addDestroyFunc(()=>{d.detailGridInfo===r&&(s.isDestroyed()||s.removeDetailGridInfo(u),d.detailGridInfo=null)}))}loadRowData(){var d,g,m;this.loadRowDataVersion++;let f=this.loadRowDataVersion,v=this.params;if(((d=v.detailGridOptions)==null?void 0:d.rowModelType)==="serverSide"){(m=(g=v.node.detailGridInfo)==null?void 0:g.api)==null||m.refreshServerSide({purge:!0});return}let u=v.getDetailRowData;if(!u){(0,A._warn)(172);return}let s=b=>{this.loadRowDataVersion===f&&this.comp.setRowData(b)},r={node:v.node,data:v.node.data,successCallback:s,context:this.gos.getGridCommonParams().context};u(r)}refresh(){switch(this.refreshStrategy){case"nothing":return!0;case"everything":return!1}return this.loadRowData(),!0}}p.DetailCellRendererCtrl=F},7324:function(x,p){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.DetailFrameworkComponentWrapper=void 0;class M{constructor(F){this.parentWrapper=F}wrap(F,D,f,v){return this.parentWrapper.wrap(F,D,f,v)}}p.DetailFrameworkComponentWrapper=M},4276:function(x,p){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.forEachDetailGridInfo=p.getDetailGridInfo=p.removeDetailGridInfo=p.addDetailGridInfo=void 0;function M(v,u){var r;let s=(r=v.masterDetailSvc)==null?void 0:r.store;return s?u(s):void 0}function A(v,u,s){M(v,r=>{r[u]=s})}p.addDetailGridInfo=A;function F(v,u){M(v,s=>{delete s[u]})}p.removeDetailGridInfo=F;function D(v,u){return M(v,s=>s[u])}p.getDetailGridInfo=D;function f(v,u){M(v,s=>{let r=0;Object.values(s).forEach(d=>{d&&u(d,r++)})})}p.forEachDetailGridInfo=f},2283:function(x,p){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.masterDetailModuleCSS=void 0,p.masterDetailModuleCSS=".ag-details-row{width:100%}.ag-details-row-fixed-height{height:100%}.ag-details-grid{width:100%}.ag-details-grid-fixed-height{height:100%}"},1594:function(x,p,M){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.MasterDetailModule=p.SharedMasterDetailModule=void 0;let A=M(9206),F=M(6858),D=M(7205),f=M(3763),v=M(3210),u=M(4276),s=M(2283),r=M(2771);p.SharedMasterDetailModule={moduleName:"SharedMasterDetail",version:D.VERSION,beans:[r.MasterDetailService],userComponents:{agDetailCellRenderer:f.DetailCellRenderer},dynamicBeans:{detailCellRendererCtrl:v.DetailCellRendererCtrl},apiFunctions:{addDetailGridInfo:u.addDetailGridInfo,removeDetailGridInfo:u.removeDetailGridInfo,getDetailGridInfo:u.getDetailGridInfo,forEachDetailGridInfo:u.forEachDetailGridInfo},dependsOn:[A.EnterpriseCoreModule,F.GroupCellRendererModule,F.StickyRowModule],css:[s.masterDetailModuleCSS]},p.MasterDetailModule={moduleName:"MasterDetail",version:D.VERSION,dependsOn:[p.SharedMasterDetailModule,F.ClientSideRowModelHierarchyModule]}},2771:function(x,p,M){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.MasterDetailService=void 0;let A=M(6624);class F extends A.BeanStub{constructor(){super(...arguments),this.beanName="masterDetailSvc",this.store={}}isEnabled(){let f=this.gos;return f.get("masterDetail")&&!f.get("treeData")}postConstruct(){(0,A._isClientSideRowModel)(this.gos)&&(this.enabled=this.isEnabled(),this.addManagedEventListeners({beforeRefreshModel:this.beforeRefreshModel.bind(this)}))}beforeRefreshModel({params:f}){if(f.changedProps){let v=this.isEnabled();if(this.enabled!==v){this.setMasters(null);return}}f.rowDataUpdated&&this.setMasters(f.changedRowNodes)}setMasters(f){var g,m;let v=this.isEnabled();this.enabled=v;let u=this.gos,s=u.get("isRowMaster"),r=u.get("groupDefaultExpanded"),d=(b,w,k)=>{var z,G;let R=b.master,T=v;if(v)if(w||k){if(s){let U=b.data;T=!!U&&!!s(U)}}else T=R;if(T&&w)if(r===-1)b.expanded=!0;else{let U=(G=(z=this.beans.rowGroupColsSvc)==null?void 0:z.columns.length)!=null?G:0;b.expanded=U<r}else!T&&R&&(b.expanded=!1);T!==R&&(b.master=T,b.dispatchRowEvent("masterChanged"))};if(f){let b=f.updates;for(let w of b.keys()){let k=b.get(w);d(w,k,!k)}}else{let b=(m=(g=(0,A._getClientSideRowModel)(this.beans))==null?void 0:g.rootNode)==null?void 0:m.allLeafChildren;if(b)for(let w=0,k=b.length;w<k;++w)d(b[w],!0,!1)}}getDetail(f){if(!f.master||!f.expanded)return null;let v=f.detailNode;return v||(v=new A.RowNode(this.beans),v.detail=!0,v.selectable=!1,v.parent=f,(0,A._exists)(f.id)&&(v.id="detail_"+f.id),v.data=f.data,v.level=f.level+1,f.detailNode=v,v)}setupDetailRowAutoHeight(f,v){let{gos:u,beans:s}=this;if(!u.get("detailRowAutoHeight"))return;let r=()=>{let g=v.clientHeight;if(g!=null&&g>0){let m=()=>{let{rowModel:b}=this.beans,{rowNode:w}=f;w.setRowHeight(g),((0,A._isClientSideRowModel)(u,b)||(0,A._isServerSideRowModel)(u,b))&&b.onRowHeightChanged()};window.setTimeout(m,0)}},d=(0,A._observeResize)(s,v,r);f.addDestroyFunc(d),r()}destroy(){this.store={},super.destroy()}}p.MasterDetailService=F},5636:function(x,p,M){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.ChartMenuItemMapper=void 0;let A=M(6624);class F extends A.BeanStub{constructor(){super(...arguments),this.beanName="chartMenuItemMapper"}getChartItems(u){var R,T;let s=this.beans,r=s.chartSvc,d=u==="pivotChart";if(!r)return null;let g=this.getLocaleTextFunc.bind(this),m=d?new D(s,r,g):new f(s,r,g),b=r.isEnterprise(),w=m.getMenuItem();if(w&&w.subMenu&&!b){let z=G=>{var U;return et(pe({},G),{subMenu:(U=G.subMenu)==null?void 0:U.filter(X=>!X._enterprise).map(X=>z(X))})};w=z(w)}let k=(T=(R=this.gos.get("chartToolPanelsDef"))==null?void 0:R.settingsPanel)==null?void 0:T.chartGroupsDef;return k&&(w=this.filterAndOrderChartMenu(w,k,m.getConfigLookup())),this.cleanInternals(w)}cleanInternals(u){if(!u)return u;let s=r=>{var d;return r==null||delete r._key,r==null||delete r._enterprise,(d=r==null?void 0:r.subMenu)==null||d.forEach(g=>s(g)),r};return s(u)}buildLookup(u){let s={},r=d=>{s[d._key]=d,d.subMenu&&d.subMenu.forEach(g=>r(g))};return r(u),s}filterAndOrderChartMenu(u,s,r){var m;let d=this.buildLookup(u),g=et(pe({},u),{subMenu:[]});return Object.entries(s).forEach(([b,w])=>{var T,z;let k=r[b];if(k===null)return;if(k==null){(0,A._warn)(173,{group:b});return}let R=d[k._key];if(R)if(R.subMenu){let G=w.map(U=>{let X=k[U];if(X==null){(0,A._warn)(174,{group:b,chartType:U});return}return d[X]}).filter(U=>U!==void 0);G.length>0&&(R.subMenu=G,(T=g.subMenu)==null||T.push(R))}else(z=g.subMenu)==null||z.push(R)}),((m=g.subMenu)==null?void 0:m.length)==0?null:g}}p.ChartMenuItemMapper=F;class D{constructor(u,s,r){this.beans=u,this.chartSvc=s,this.getLocaleTextFunc=r}getMenuItem(){let u=this.getLocaleTextFunc(),s=(r,d,g,m,b=!1)=>({name:u(r,d),action:()=>this.chartSvc.createPivotChart({chartType:g}),_key:m,_enterprise:b});return{name:u("pivotChart","Pivot Chart"),_key:"pivotChart",subMenu:[{_key:"pivotColumnChart",name:u("columnChart","Column"),subMenu:[s("groupedColumn","Grouped&lrm;","groupedColumn","pivotGroupedColumn"),s("stackedColumn","Stacked&lrm;","stackedColumn","pivotStackedColumn"),s("normalizedColumn","100% Stacked&lrm;","normalizedColumn","pivotNormalizedColumn")]},{_key:"pivotBarChart",name:u("barChart","Bar"),subMenu:[s("groupedBar","Grouped&lrm;","groupedBar","pivotGroupedBar"),s("stackedBar","Stacked&lrm;","stackedBar","pivotStackedBar"),s("normalizedBar","100% Stacked&lrm;","normalizedBar","pivotNormalizedBar")]},{_key:"pivotPieChart",name:u("pieChart","Pie"),subMenu:[s("pie","Pie&lrm;","pie","pivotPie"),s("donut","Donut&lrm;","donut","pivotDonut")]},{_key:"pivotLineChart",name:u("lineChart","Line"),subMenu:[s("lineChart","Line&lrm;","line","pivotLineChart"),s("stackedLine","Stacked&lrm;","stackedLine","pivotStackedLine"),s("normalizedLine","100% Stacked&lrm;","normalizedLine","pivotNormalizedLine")]},{_key:"pivotAreaChart",name:u("areaChart","Area"),subMenu:[s("areaChart","Area&lrm;","area","pivotArea"),s("stackedArea","Stacked&lrm;","stackedArea","pivotStackedArea"),s("normalizedArea","100% Stacked&lrm;","normalizedArea","pivotNormalizedArea")]},{_key:"pivotXYChart",name:u("xyChart","X Y (Scatter)"),subMenu:[s("scatter","Scatter&lrm;","scatter","pivotScatter"),s("bubble","Bubble&lrm;","bubble","pivotBubble")]},{_key:"pivotStatisticalChart",_enterprise:!1,name:u("statisticalChart","Statistical"),subMenu:[s("histogramChart","Histogram&lrm;","histogram","pivotHistogram",!1)]},{_key:"pivotHierarchicalChart",_enterprise:!0,name:u("hierarchicalChart","Hierarchical"),subMenu:[s("treemapChart","Treemap&lrm;","treemap","pivotTreemap",!0),s("sunburstChart","Sunburst&lrm;","sunburst","pivotSunburst",!0)]},{_key:"pivotCombinationChart",name:u("combinationChart","Combination"),subMenu:[s("columnLineCombo","Column & Line&lrm;","columnLineCombo","pivotColumnLineCombo"),s("AreaColumnCombo","Area & Column&lrm;","areaColumnCombo","pivotAreaColumnCombo")]}],icon:(0,A._createIconNoSpan)("chart",this.beans,void 0)}}getConfigLookup(){return{columnGroup:{_key:"pivotColumnChart",column:"pivotGroupedColumn",stackedColumn:"pivotStackedColumn",normalizedColumn:"pivotNormalizedColumn"},barGroup:{_key:"pivotBarChart",bar:"pivotGroupedBar",stackedBar:"pivotStackedBar",normalizedBar:"pivotNormalizedBar"},pieGroup:{_key:"pivotPieChart",pie:"pivotPie",donut:"pivotDonut",doughnut:"pivotDonut"},lineGroup:{_key:"pivotLineChart",line:"pivotLineChart",stackedLine:"pivotStackedLine",normalizedLine:"pivotNormalizedLine"},areaGroup:{_key:"pivotAreaChart",area:"pivotArea",stackedArea:"pivotStackedArea",normalizedArea:"pivotNormalizedArea"},scatterGroup:{_key:"pivotXYChart",bubble:"pivotBubble",scatter:"pivotScatter"},combinationGroup:{_key:"pivotCombinationChart",columnLineCombo:"pivotColumnLineCombo",areaColumnCombo:"pivotAreaColumnCombo",customCombo:null},hierarchicalGroup:{_key:"pivotHierarchicalChart",treemap:"pivotTreemap",sunburst:"pivotSunburst"},statisticalGroup:{_key:"pivotStatisticalChart",histogram:"pivotHistogram",rangeBar:null,rangeArea:null,boxPlot:null},polarGroup:null,specializedGroup:null}}}class f{constructor(u,s,r){this.beans=u,this.chartSvc=s,this.getLocaleTextFunc=r}getMenuItem(){let u=this.getLocaleTextFunc(),s=(r,d,g,m,b=!1)=>({name:u(r,d),action:()=>this.chartSvc.createChartFromCurrentRange(g),_key:m,_enterprise:b});return{name:u("chartRange","Chart Range"),_key:"chartRange",subMenu:[{name:u("columnChart","Column"),subMenu:[s("groupedColumn","Grouped&lrm;","groupedColumn","rangeGroupedColumn"),s("stackedColumn","Stacked&lrm;","stackedColumn","rangeStackedColumn"),s("normalizedColumn","100% Stacked&lrm;","normalizedColumn","rangeNormalizedColumn")],_key:"rangeColumnChart"},{name:u("barChart","Bar"),subMenu:[s("groupedBar","Grouped&lrm;","groupedBar","rangeGroupedBar"),s("stackedBar","Stacked&lrm;","stackedBar","rangeStackedBar"),s("normalizedBar","100% Stacked&lrm;","normalizedBar","rangeNormalizedBar")],_key:"rangeBarChart"},{name:u("pieChart","Pie"),subMenu:[s("pie","Pie&lrm;","pie","rangePie"),s("donut","Donut&lrm;","donut","rangeDonut")],_key:"rangePieChart"},{name:u("lineChart","Line"),subMenu:[s("lineChart","Line&lrm;","line","rangeLineChart"),s("stackedLine","Stacked&lrm;","stackedLine","rangeStackedLine"),s("normalizedLine","100% Stacked&lrm;","normalizedLine","rangeNormalizedLine")],_key:"rangeLineChart"},{name:u("areaChart","Area"),subMenu:[s("areaChart","Area&lrm;","area","rangeArea"),s("stackedArea","Stacked&lrm;","stackedArea","rangeStackedArea"),s("normalizedArea","100% Stacked&lrm;","normalizedArea","rangeNormalizedArea")],_key:"rangeAreaChart"},{name:u("xyChart","X Y (Scatter)"),subMenu:[s("scatter","Scatter&lrm;","scatter","rangeScatter"),s("bubble","Bubble&lrm;","bubble","rangeBubble")],_key:"rangeXYChart"},{name:u("polarChart","Polar"),subMenu:[s("radarLine","Radar Line&lrm;","radarLine","rangeRadarLine"),s("radarArea","Radar Area&lrm;","radarArea","rangeRadarArea"),s("nightingale","Nightingale&lrm;","nightingale","rangeNightingale"),s("radialColumn","Radial Column&lrm;","radialColumn","rangeRadialColumn"),s("radialBar","Radial Bar&lrm;","radialBar","rangeRadialBar")],_key:"rangePolarChart",_enterprise:!0},{name:u("statisticalChart","Statistical"),subMenu:[s("boxPlot","Box Plot&lrm;","boxPlot","rangeBoxPlot",!0),s("histogramChart","Histogram&lrm;","histogram","rangeHistogram",!1),s("rangeBar","Range Bar&lrm;","rangeBar","rangeRangeBar",!0),s("rangeArea","Range Area&lrm;","rangeArea","rangeRangeArea",!0)],_key:"rangeStatisticalChart",_enterprise:!1},{name:u("hierarchicalChart","Hierarchical"),subMenu:[s("treemap","Treemap&lrm;","treemap","rangeTreemap"),s("sunburst","Sunburst&lrm;","sunburst","rangeSunburst")],_key:"rangeHierarchicalChart",_enterprise:!0},{name:u("specializedChart","Specialized"),subMenu:[s("heatmap","Heatmap&lrm;","heatmap","rangeHeatmap"),s("waterfall","Waterfall&lrm;","waterfall","rangeWaterfall")],_key:"rangeSpecializedChart",_enterprise:!0},{name:u("combinationChart","Combination"),subMenu:[s("columnLineCombo","Column & Line&lrm;","columnLineCombo","rangeColumnLineCombo"),s("AreaColumnCombo","Area & Column&lrm;","areaColumnCombo","rangeAreaColumnCombo")],_key:"rangeCombinationChart"}],icon:(0,A._createIconNoSpan)("chart",this.beans,void 0)}}getConfigLookup(){return{columnGroup:{_key:"rangeColumnChart",column:"rangeGroupedColumn",stackedColumn:"rangeStackedColumn",normalizedColumn:"rangeNormalizedColumn"},barGroup:{_key:"rangeBarChart",bar:"rangeGroupedBar",stackedBar:"rangeStackedBar",normalizedBar:"rangeNormalizedBar"},pieGroup:{_key:"rangePieChart",pie:"rangePie",donut:"rangeDonut",doughnut:"rangeDonut"},lineGroup:{_key:"rangeLineChart",line:"rangeLineChart",stackedLine:"rangeStackedLine",normalizedLine:"rangeNormalizedLine"},areaGroup:{_key:"rangeAreaChart",area:"rangeArea",stackedArea:"rangeStackedArea",normalizedArea:"rangeNormalizedArea"},scatterGroup:{_key:"rangeXYChart",bubble:"rangeBubble",scatter:"rangeScatter"},polarGroup:{_key:"rangePolarChart",radarLine:"rangeRadarLine",radarArea:"rangeRadarArea",nightingale:"rangeNightingale",radialColumn:"rangeRadialColumn",radialBar:"rangeRadialBar"},statisticalGroup:{_key:"rangeStatisticalChart",boxPlot:"rangeBoxPlot",histogram:"rangeHistogram",rangeBar:"rangeRangeBar",rangeArea:"rangeRangeArea"},hierarchicalGroup:{_key:"rangeHierarchicalChart",treemap:"rangeTreemap",sunburst:"rangeSunburst"},specializedGroup:{_key:"rangeSpecializedChart",heatmap:"rangeHeatmap",waterfall:"rangeWaterfall"},combinationGroup:{_key:"rangeCombinationChart",columnLineCombo:"rangeColumnLineCombo",areaColumnCombo:"rangeAreaColumnCombo",customCombo:null}}}}},9262:function(x,p,M){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.ColumnChooserFactory=void 0;let A=M(6624),F=M(1269),D=M(8775);class f extends A.BeanStub{constructor(){super(...arguments),this.beanName="colChooserFactory"}createColumnSelectPanel(u,s,r,d){var G;let g=u.createManagedBean(new F.AgPrimaryCols),m=(G=d!=null?d:s==null?void 0:s.getColDef().columnChooserParams)!=null?G:{},{contractColumnSelection:b,suppressColumnExpandAll:w,suppressColumnFilter:k,suppressColumnSelectAll:R,suppressSyncLayoutWithGrid:T,columnLayout:z}=m;return g.init(!!r,this.gos.addGridCommonParams({suppressColumnMove:!1,suppressValues:!1,suppressPivots:!1,suppressRowGroups:!1,suppressPivotMode:!1,contractColumnSelection:!!b,suppressColumnExpandAll:!!w,suppressColumnFilter:!!k,suppressColumnSelectAll:!!R,suppressSyncLayoutWithGrid:!!z||!!T,onStateUpdated:()=>{}}),"columnMenu"),z&&g.setColumnLayout(z),g}showColumnChooser({column:u,chooserParams:s,eventSource:r}){this.hideActiveColumnChooser();let d=this.createColumnSelectPanel(this,u,!0,s),g=this.getLocaleTextFunc(),m=this.beans,{visibleCols:b,focusSvc:w,menuUtils:k}=m,R=b.allCols.indexOf(u),T=u?w.focusedHeader:null;this.activeColumnChooserDialog=this.createBean(new D.AgDialog({title:g("chooseColumns","Choose Columns"),component:d,width:300,height:300,resizable:!0,movable:!0,centered:!0,closable:!0,afterGuiAttached:()=>{var z;(z=(0,A._findNextFocusableElement)(m,d.getGui()))==null||z.focus({preventScroll:!0}),this.dispatchVisibleChangedEvent(!0,u)},closedCallback:z=>{let G=this.activeColumnChooser.getGui();this.destroyBean(this.activeColumnChooser),this.activeColumnChooser=void 0,this.activeColumnChooserDialog=void 0,this.dispatchVisibleChangedEvent(!1,u),u&&k.restoreFocusOnClose({column:u,headerPosition:T,columnIndex:R,eventSource:r},G,z,!0)},postProcessPopupParams:{type:"columnChooser",column:u,eventSource:r}})),this.activeColumnChooser=d}hideActiveColumnChooser(){this.destroyBean(this.activeColumnChooserDialog)}dispatchVisibleChangedEvent(u,s){this.eventSvc.dispatchEvent({type:"columnMenuVisibleChanged",visible:u,switchingTab:!1,key:"columnChooser",column:s!=null?s:null})}}p.ColumnChooserFactory=f},5884:function(x,p,M){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.ColumnMenuFactory=void 0;let A=M(6624),F=M(8105),D=M(9476),f=M(1708);class v extends A.BeanStub{constructor(){super(...arguments),this.beanName="colMenuFactory"}createMenu(s,r,d,g){let m=s.createManagedBean(new D.AgMenuList(0,{column:d!=null?d:null,node:null,value:null})),b=this.beans.menuItemMapper.mapWithStockItems(r,d!=null?d:null,g,"columnMenu");return m.addMenuItems(b),m}getMenuItems(s=null,r=null){var b,w;let d=this.getDefaultMenuOptions(s),g,m=(w=(b=s==null?void 0:s.getColDef())!=null?b:r==null?void 0:r.getColGroupDef())==null?void 0:w.mainMenuItems;if(Array.isArray(m))g=m;else if(typeof m=="function")g=m(this.gos.addGridCommonParams({column:s,columnGroup:r,defaultItems:d}));else{let k=this.gos.getCallback("getMainMenuItems");k?g=k({column:s,columnGroup:r,defaultItems:d}):g=d}return(0,f._removeRepeatsFromArray)(g,f.MENU_ITEM_SEPARATOR),g}getDefaultMenuOptions(s){var ze;let r=[],{beans:d,gos:g}=this,{colChooserFactory:m,rowGroupColsSvc:b,colModel:w,expansionSvc:k,sortSvc:R,menuSvc:T,pinnedCols:z,aggFuncSvc:G,colAutosize:U}=d,X=(0,A._isLegacyMenuEnabled)(g),Q=()=>{!X&&m&&r.push("columnChooser"),r.push("resetColumns")};if(!s)return Q(),r;let{colDef:oe}=s,le=z&&!oe.lockPinned,fe=(ze=b==null?void 0:b.columns.length)!=null?ze:0,ye=fe>0,ke=s.isPrimary(),Ie=G&&ke&&ye&&s.isAllowValue()||!ke;if(R&&!X&&s.isSortable()){let Ye=s.getSort();Ye!=="asc"&&r.push("sortAscending"),Ye!=="desc"&&r.push("sortDescending"),Ye&&r.push("sortUnSort"),r.push(f.MENU_ITEM_SEPARATOR)}if(T!=null&&T.isFilterMenuItemEnabled(s)&&(r.push("columnFilter"),r.push(f.MENU_ITEM_SEPARATOR)),le&&r.push("pinSubMenu"),Ie&&r.push("valueAggSubMenu"),(le||Ie)&&r.push(f.MENU_ITEM_SEPARATOR),U&&(r.push("autoSizeThis"),r.push("autoSizeAll"),r.push(f.MENU_ITEM_SEPARATOR)),b&&g.isModuleRegistered("SharedRowGrouping")){let Ye=r.length;oe.showRowGroup?r.push("rowUnGroup"):s.isAllowRowGroup()&&ke&&(s.isRowGroupActive()?(0,F.isRowGroupColLocked)(s,d)||r.push("rowUnGroup"):r.push("rowGroup")),r.length>Ye&&r.push(f.MENU_ITEM_SEPARATOR)}return Q(),k&&(0,A._isClientSideRowModel)(g)&&(g.get("treeData")||fe>(w.isPivotMode()?1:0))&&(r.push("expandAll"),r.push("contractAll")),r}}p.ColumnMenuFactory=v},3461:function(x,p,M){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.ContextMenuService=void 0;let A=M(6624),F=M(9476),D="ag-menu",f="ag-context-menu-open",v="ag-context-menu-loading-icon";class u extends A.BeanStub{constructor(){super(...arguments),this.beanName="contextMenuSvc",this.destroyLoadingSpinner=null,this.lastPromise=0}hideActiveMenu(){this.destroyBean(this.activeMenu)}getMenuItems(d,g,m,b){let w=[],{clipboardSvc:k,chartSvc:R,csvCreator:T,excelCreator:z,colModel:G,rangeSvc:U,gos:X}=this.beans;if((0,A._exists)(d)&&k&&g&&(X.get("suppressCutToClipboard")||w.push("cut"),w.push("copy","copyWithHeaders","copyWithGroupHeaders","paste","separator")),X.get("enableCharts")&&R&&(G.isPivotMode()&&w.push("pivotChart"),U&&!U.isEmpty()&&w.push("chartRange")),(0,A._exists)(d)){let fe=X.get("suppressExcelExport")||!z,ye=X.get("suppressCsvExport")||!T;!(0,A._isIOSUserAgent)()&&(!fe||!ye)&&w.push("export")}let Q=w.length?w:void 0,oe=g==null?void 0:g.getColDef().contextMenuItems;if(Array.isArray(oe))return oe;if(typeof oe=="function")return oe(X.addGridCommonParams({column:g,node:d,value:m,defaultItems:Q,event:b}));let le=X.getCallback("getContextMenuItems");return le?le({column:g,node:d,value:m,defaultItems:Q,event:b}):w}getContextMenuPosition(d,g){let m=this.getRowCtrl(d),b=this.getCellGui(m,g);if(!b)return m?{x:0,y:m.getRowYPosition()}:{x:0,y:0};let w=b.getBoundingClientRect();return{x:w.x+w.width/2,y:w.y+w.height/2}}showContextMenu(d){var k,R;let g=d.rowNode,m=d.column,{anchorToElement:b,value:w}=d;g&&m&&w==null&&(w=this.beans.valueSvc.getValueForDisplay(m,g)),b==null&&(b=this.getContextMenuAnchorElement(g,m)),this.onContextMenu((k=d.mouseEvent)!=null?k:null,(R=d.touchEvent)!=null?R:null,g!=null?g:null,m!=null?m:null,w,b)}handleContextMenuMouseEvent(d,g,m,b){var X,Q;let w=(X=m==null?void 0:m.rowNode)!=null?X:null,k=(Q=b==null?void 0:b.column)!=null?Q:null,R=null,{valueSvc:T,ctrlsSvc:z}=this.beans;if(k){let oe=d||g;b.dispatchCellContextMenuEvent(oe!=null?oe:null),R=T.getValue(k,w)}let G=z.getGridBodyCtrl(),U=b?b.eGui:G.eGridBody;this.showContextMenu({mouseEvent:d,touchEvent:g,rowNode:w,column:k,value:R,anchorToElement:U})}onContextMenu(d,g,m,b,w,k){this.beans.menuUtils.onContextMenu(d,g,R=>this.showMenu(m,b,w,R,k))}showMenu(d,g,m,b,w){let k=this.getMenuItems(d,g,m,b);if((0,A._isPromise)(k)){let R=this.lastPromise+1;return this.lastPromise=R,this.destroyLoadingSpinner||this.createLoadingIcon(b),k.then(T=>{var G;if(this.lastPromise!==R)return;T&&T.length&&(0,A._isVisible)(b.target)&&!((G=this.beans.overlays)!=null&&G.isExclusive())&&this.createContextMenu({menuItems:T,node:d,column:g,value:m,mouseEvent:b,anchorToElement:w}),this.destroyLoadingSpinner&&this.destroyLoadingSpinner()}),!0}return k===void 0||!(k!=null&&k.length)?!1:(this.createContextMenu({menuItems:k,node:d,column:g,value:m,mouseEvent:b,anchorToElement:w}),!0)}createLoadingIcon(d){var z;let{beans:g}=this,m=this.getLocaleTextFunc(),b=(0,A._createIconNoSpan)("loadingMenuItems",g),w=document.createElement("div");w.classList.add(v),w.appendChild(b);let k=(0,A._getRootNode)(g),R=(0,A._getPageBody)(g);if(!R){(0,A._warn)(54);return}R.appendChild(w),(z=g.ariaAnnounce)==null||z.announceValue(m("ariaLabelLoadingContextMenu","Loading Context Menu"),"contextmenu"),g.environment.applyThemeClasses(w),(0,A._anchorElementToMouseMoveEvent)(w,d,g);let T=G=>{(0,A._anchorElementToMouseMoveEvent)(w,G,g)};k.addEventListener("mousemove",T),this.destroyLoadingSpinner=()=>{k.removeEventListener("mousemove",T),R.removeChild(w),this.destroyLoadingSpinner=null}}createContextMenu(d){let{menuItems:g,node:m,column:b,value:w,mouseEvent:k,anchorToElement:R}=d,{ctrlsSvc:T,focusSvc:z,popupSvc:G}=this.beans,U=T.getGridBodyCtrl().eGridBody,X=new s(g,b,m,w);this.createBean(X);let Q=X.getGui();b||z.clearFocusedCell();let oe={column:b,rowNode:m,type:"contextMenu",mouseEvent:k,ePopup:Q,nudgeY:1},le=this.getLocaleTextFunc(),fe=G.addPopup({modal:!0,eChild:Q,closeOnEsc:!0,closedCallback:ke=>{U.classList.remove(f),this.destroyBean(X),this.dispatchVisibleChangedEvent(!1,ke===void 0?"api":"ui")},click:k,positionCallback:()=>{let ke=this.gos.get("enableRtl");G.positionPopupUnderMouseEvent(et(pe({},oe),{nudgeX:ke?(Q.offsetWidth+1)*-1:1}))},anchorToElement:R,ariaLabel:le("ariaLabelContextMenu","Context Menu")});fe&&(U.classList.add(f),X.afterGuiAttached({container:"contextMenu",hidePopup:fe.hideFunc})),this.activeMenu&&this.hideActiveMenu(),this.activeMenu=X,X.addEventListener("destroyed",()=>{this.activeMenu===X&&(this.activeMenu=null)}),fe&&X.addEventListener("closeMenu",ke=>{var Ie,ze;return fe.hideFunc({mouseEvent:(Ie=ke.mouseEvent)!=null?Ie:void 0,keyboardEvent:(ze=ke.keyboardEvent)!=null?ze:void 0,forceHide:!0})});let ye=k&&k instanceof MouseEvent&&k.type==="mousedown";this.dispatchVisibleChangedEvent(!0,ye?"api":"ui")}dispatchVisibleChangedEvent(d,g="ui"){this.eventSvc.dispatchEvent({type:"contextMenuVisibleChanged",visible:d,source:g})}getRowCtrl(d){let{rowIndex:g,rowPinned:m}=d||{};if(g!=null)return this.beans.rowRenderer.getRowByPosition({rowIndex:g,rowPinned:m})||void 0}getCellGui(d,g){if(!d||!g)return;let m=d.getCellCtrl(g);return(m==null?void 0:m.eGui)||void 0}getContextMenuAnchorElement(d,g){let m=this.beans.ctrlsSvc.getGridBodyCtrl().eGridBody,b=this.getRowCtrl(d);if(!b)return m;let w=this.getCellGui(b,g);return w||(b.isFullWidth()?b.getFullWidthElement():m)}destroy(){var d;(d=this.destroyLoadingSpinner)==null||d.call(this),super.destroy()}}p.ContextMenuService=u;class s extends A.Component{constructor(d,g,m,b){super(`<div class="${D}" role="presentation"></div>`),this.menuItems=d,this.column=g,this.node=m,this.value=b,this.menuList=null,this.focusedCell=null}postConstruct(){let d=this.createManagedBean(new F.AgMenuList(0,{column:this.column,node:this.node,value:this.value})),g=this.beans.menuItemMapper.mapWithStockItems(this.menuItems,null,()=>this.getGui(),"contextMenu");d.addMenuItems(g),this.appendChild(d),this.menuList=d,d.addEventListener("closeMenu",m=>this.dispatchLocalEvent(m))}afterGuiAttached(d){d.hidePopup&&this.addDestroyFunc(d.hidePopup),this.focusedCell=this.beans.focusSvc.getFocusedCell();let g=this.menuList;g&&(0,A._focusInto)(g.getGui())}restoreFocusedCell(){let{beans:d,focusedCell:g}=this,m=d.focusSvc,b=m.getFocusedCell();if(b&&g&&(0,A._areCellsEqual)(b,g)){let{rowIndex:w,rowPinned:k,column:R}=g;(0,A._isNothingFocused)(d)&&m.setFocusedCell({rowIndex:w,column:R,rowPinned:k,forceBrowserFocus:!0,preventScrollOnBrowserFocus:!(0,A._isKeyboardMode)()})}}destroy(){this.restoreFocusedCell(),super.destroy()}}},6345:function(x,p,M){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.EnterpriseMenuFactory=void 0;let A=M(6624),F=M(5875),D="filterMenuTab",f="generalMenuTab",v="columnsMenuTab",u=[f,D,v];class s extends A.BeanStub{constructor(){super(...arguments),this.beanName="enterpriseMenuFactory"}hideActiveMenu(){this.destroyBean(this.activeMenu)}showMenuAfterMouseEvent(m,b,w,k){let{column:R,columnGroup:T}=this.splitColumnOrGroup(m),z=k?"filterMenuTab":void 0;this.showMenu(R,T,G=>{var X;let U=G.getGui();this.beans.popupSvc.positionPopupUnderMouseEvent({type:w,column:R,mouseEvent:b,ePopup:U}),z&&((X=G.showTab)==null||X.call(G,z)),this.dispatchVisibleChangedEvent(!0,!1,R,T,z)},w,z,void 0,b.target)}splitColumnOrGroup(m){let b=m&&(0,A.isColumn)(m);return{column:b?m:void 0,columnGroup:b?void 0:m}}showMenuAfterButtonClick(m,b,w,k){let R=-1,T="left";this.gos.get("enableRtl")&&(R=1,T="right");let z=k?"filterMenuTab":void 0,G=z?[z]:void 0,U=(0,A._isLegacyMenuEnabled)(this.gos),X=(U?9:4)*R,Q=U?-23:4,{column:oe,columnGroup:le}=this.splitColumnOrGroup(m);this.showMenu(oe,le,fe=>{var ke;let ye=fe.getGui();this.beans.popupSvc.positionPopupByComponent({type:w,column:oe,eventSource:b,ePopup:ye,alignSide:T,nudgeX:X,nudgeY:Q,position:"under",keepWithinBounds:!0}),z&&((ke=fe.showTab)==null||ke.call(fe,z)),this.dispatchVisibleChangedEvent(!0,!1,oe,le,z)},w,z,G,b)}showMenu(m,b,w,k,R,T,z){var Ie;let G=this.getMenuParams(m,b,T,z);if(!G)return;let{menu:U,eMenuGui:X,anchorToElement:Q,restoreFocusParams:oe}=G,le=[],{menuUtils:fe,popupSvc:ye}=this.beans;le.push(ze=>{let Ye=U.getGui();this.destroyBean(U),m&&((0,A._setColMenuVisible)(m,!1,"contextMenu"),fe.restoreFocusOnClose(oe,Ye,ze))});let ke=this.getLocaleTextFunc();if(ye.addPopup({modal:!0,eChild:X,closeOnEsc:!0,closedCallback:ze=>{le.forEach(Ye=>Ye(ze)),this.dispatchVisibleChangedEvent(!1,!1,m,b,R)},afterGuiAttached:ze=>U.afterGuiAttached(Object.assign({},{container:k},ze)),positionCallback:R?()=>w(U):void 0,ariaLabel:ke("ariaLabelColumnMenu","Column Menu")}),R||((Ie=U.showTabBasedOnPreviousSelection)==null||Ie.call(U),w(U)),(0,A._isColumnMenuAnchoringEnabled)(this.gos)){let ze=ye.setPopupPositionRelatedToElement(X,Q);ze&&m&&this.addStopAnchoring(ze,m,le)}U.addEventListener("tabSelected",ze=>{this.dispatchVisibleChangedEvent(!1,!0,m),this.lastSelectedTab=ze.key,this.dispatchVisibleChangedEvent(!0,!0,m)}),m&&(0,A._setColMenuVisible)(m,!0,"contextMenu"),this.activeMenu=U,U.addEventListener("destroyed",()=>{this.activeMenu===U&&(this.activeMenu=null)})}addStopAnchoring(m,b,w){m.then(k=>{b.addEventListener("leftChanged",k),b.addEventListener("visibleChanged",k),w.push(()=>{b.removeEventListener("leftChanged",k),b.removeEventListener("visibleChanged",k)})})}getMenuParams(m,b,w,k){let{focusSvc:R,visibleCols:T,ctrlsSvc:z}=this.beans,G={column:m,headerPosition:R.focusedHeader,columnIndex:T.allCols.indexOf(m),eventSource:k},U=this.createMenu(m,b,G,w,k);return U?{menu:U,eMenuGui:U.getGui(),anchorToElement:k||z.getGridBodyCtrl().eGridBody,restoreFocusParams:G}:void 0}createMenu(m,b,w,k,R){if((0,A._isLegacyMenuEnabled)(this.gos))return this.createBean(new r(m,w,this.lastSelectedTab,k,R));{let T=this.beans.colMenuFactory.getMenuItems(m,b);return T.length?this.createBean(new d(T,m,w,R)):void 0}}dispatchVisibleChangedEvent(m,b,w,k,R){var T,z;this.eventSvc.dispatchEvent({type:"columnMenuVisibleChanged",visible:m,switchingTab:b,key:(z=(T=this.lastSelectedTab)!=null?T:R)!=null?z:(0,A._isLegacyMenuEnabled)(this.gos)?f:"columnMenu",column:w!=null?w:null,columnGroup:k!=null?k:null})}isMenuEnabled(m){var R,T;if(!(0,A._isLegacyMenuEnabled)(this.gos))return!0;let b=!((R=this.beans.filterManager)!=null&&R.isFilterAllowed(m)),w=(T=m.getColDef().menuTabs)!=null?T:u;return(b&&w.includes(D)?w.length-1:w.length)>0}showMenuAfterContextMenuEvent(m,b,w){this.beans.menuUtils.onContextMenu(b,w,k=>(this.showMenuAfterMouseEvent(m,k,"columnMenu"),!0))}}p.EnterpriseMenuFactory=s;class r extends A.BeanStub{constructor(m,b,w,k,R){super(),this.column=m,this.restoreFocusParams=b,this.initialSelection=w,this.restrictTo=k,this.sourceElement=R,this.tabFactories={},this.includeChecks={};let{tabFactories:T,includeChecks:z}=this;T[f]=this.createMainPanel.bind(this),T[D]=this.createFilterPanel.bind(this),T[v]=this.createColumnsPanel.bind(this),z[f]=()=>!0,z[D]=()=>{var G;return m?!!((G=this.beans.filterManager)!=null&&G.isFilterAllowed(m)):!1},z[v]=()=>!0}postConstruct(){var w;let m=this.getTabsToCreate().map(k=>this.createTab(k)),b=new F.TabbedLayout({items:m,cssClass:"ag-menu",onActiveItemClicked:this.onHidePopup.bind(this),onItemClicked:this.onTabItemClicked.bind(this)});this.tabbedLayout=this.createBean(b),(w=this.mainMenuList)==null||w.setParentComponent(b),this.addDestroyFunc(()=>this.destroyBean(b))}getTabsToCreate(){var m,b;return this.restrictTo?this.restrictTo:((b=(m=this.column)==null?void 0:m.getColDef().menuTabs)!=null?b:u).filter(w=>this.isValidMenuTabItem(w)&&this.isNotSuppressed(w))}isValidMenuTabItem(m){let b=!0,w=u;return this.restrictTo!=null&&(b=this.restrictTo.indexOf(m)>-1,w=this.restrictTo),b=b&&u.indexOf(m)>-1,b||(0,A._warn)(175,{menuTabName:m,itemsToConsider:w}),b}isNotSuppressed(m){return this.includeChecks[m]()}createTab(m){return this.tabFactories[m]()}showTabBasedOnPreviousSelection(){this.showTab(this.initialSelection)}showTab(m){let{tabItemColumns:b,tabbedLayout:w,tabItemFilter:k,tabItemGeneral:R}=this;b&&m===v?w.showItem(b):k&&m===D?w.showItem(k):R&&m===f?w.showItem(R):w.showFirstItem()}onTabItemClicked(m){let b=null;switch(m.item){case this.tabItemColumns:b=v;break;case this.tabItemFilter:b=D;break;case this.tabItemGeneral:b=f;break}b&&this.activateTab(b)}activateTab(m){let b={type:"tabSelected",key:m};this.dispatchLocalEvent(b)}createMainPanel(){let{beans:m,column:b}=this,w=m.colMenuFactory,k=w.createMenu(this,w.getMenuItems(b),this.column,()=>{var T;return(T=this.sourceElement)!=null?T:this.getGui()});this.mainMenuList=k,k.addEventListener("closeMenu",this.onHidePopup.bind(this));let R={title:(0,A._createIconNoSpan)("legacyMenu",m,b),titleLabel:f.replace("MenuTab",""),bodyPromise:A.AgPromise.resolve(k.getGui()),name:f};return this.tabItemGeneral=R,R}onHidePopup(m){this.beans.menuUtils.closePopupAndRestoreFocusOnSelect(this.hidePopupFunc,this.restoreFocusParams,m)}createFilterPanel(){let m=this.column?this.createBean(new A.FilterWrapperComp(this.column,"COLUMN_MENU")):null;this.filterComp=m,m!=null&&m.hasFilter()||(0,A._error)(119);let b=k=>m==null?void 0:m.afterGuiAttached(k),w=()=>m==null?void 0:m.afterGuiDetached();return this.tabItemFilter={title:(0,A._createIconNoSpan)("filterTab",this.beans,this.column),titleLabel:D.replace("MenuTab",""),bodyPromise:A.AgPromise.resolve(m==null?void 0:m.getGui()),afterAttachedCallback:b,afterDetachedCallback:w,name:D},this.tabItemFilter}createColumnsPanel(){let m=document.createElement("div");m.classList.add("ag-menu-column-select-wrapper");let{beans:b,column:w}=this,R=b.colChooserFactory.createColumnSelectPanel(this,w).getGui();R.classList.add("ag-menu-column-select"),m.appendChild(R);let T={title:(0,A._createIconNoSpan)("columns",b,w),titleLabel:v.replace("MenuTab",""),bodyPromise:A.AgPromise.resolve(m),name:v};return this.tabItemColumns=T,T}afterGuiAttached(m){let{container:b,hidePopup:w}=m;this.tabbedLayout.setAfterAttachedParams({container:b,hidePopup:w}),w&&(this.hidePopupFunc=w,this.addDestroyFunc(w))}getGui(){return this.tabbedLayout.getGui()}destroy(){super.destroy(),this.destroyBean(this.filterComp)}}class d extends A.Component{constructor(m,b,w,k){super(`
            <div data-ref="eColumnMenu" role="presentation" class="ag-menu ag-column-menu"></div>
        `),this.menuItems=m,this.column=b,this.restoreFocusParams=w,this.sourceElement=k,this.eColumnMenu=A.RefPlaceholder}postConstruct(){let m=this.beans.colMenuFactory.createMenu(this,this.menuItems,this.column,()=>{var b;return(b=this.sourceElement)!=null?b:this.getGui()});this.mainMenuList=m,m.addEventListener("closeMenu",this.onHidePopup.bind(this)),this.eColumnMenu.appendChild(m.getGui())}onHidePopup(m){this.beans.menuUtils.closePopupAndRestoreFocusOnSelect(this.hidePopupFunc,this.restoreFocusParams,m)}afterGuiAttached({hidePopup:m}){m&&(this.hidePopupFunc=m,this.addDestroyFunc(m)),(0,A._focusInto)(this.mainMenuList.getGui())}}},8228:function(x,p){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.hideColumnChooser=p.showColumnChooser=p.showContextMenu=void 0;function M(D,f){let{contextMenuSvc:v}=D;if(!v)return;let{rowNode:u,column:s,value:r,x:d,y:g}=f||{},{x:m,y:b}=v.getContextMenuPosition(u,s);d!=null&&(m=d),g!=null&&(b=g),v.showContextMenu({mouseEvent:new MouseEvent("mousedown",{clientX:m,clientY:b}),rowNode:u,column:s,value:r})}p.showContextMenu=M;function A(D,f){var v;(v=D.colChooserFactory)==null||v.showColumnChooser({chooserParams:f})}p.showColumnChooser=A;function F(D){var f;(f=D.colChooserFactory)==null||f.hideActiveColumnChooser()}p.hideColumnChooser=F},1708:function(x,p,M){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.MenuItemMapper=p._removeRepeatsFromArray=p.MENU_ITEM_SEPARATOR=void 0;let A=M(6624),F=M(8105);p.MENU_ITEM_SEPARATOR="separator";function D(u,s){if(u)for(let r=u.length-2;r>=0;r--){let d=u[r]===s,g=u[r+1]===s;d&&g&&u.splice(r+1,1)}}p._removeRepeatsFromArray=D;class f extends A.BeanStub{constructor(){super(...arguments),this.beanName="menuItemMapper"}mapWithStockItems(s,r,d,g){if(!s)return[];let m=[],b=this.getLocaleTextFunc(),{beans:w,gos:k}=this,{validation:R,pinnedCols:T,colAutosize:z,aggFuncSvc:G,rowGroupColsSvc:U,colNames:X,colModel:Q,clipboardSvc:oe,expansionSvc:le,focusSvc:fe,csvCreator:ye,excelCreator:ke,menuSvc:Ie,colChooserFactory:ze,sortSvc:Ye,chartMenuItemMapper:xe,valueColsSvc:Te}=w,Ae=(Ne,Re,Oe,Ve)=>{var Ue;switch(R==null||R.validateMenuItem(Ne),Ne){case"pinSubMenu":return T&&Re?{name:b("pinColumn","Pin Column"),icon:(0,A._createIconNoSpan)("menuPin",w,null),subMenu:["clearPinned","pinLeft","pinRight"]}:null;case"pinLeft":return T&&Re?{name:b("pinLeft","Pin Left"),action:()=>T.setColsPinned([Re],"left",Ve),checked:!!Re&&Re.isPinnedLeft()}:null;case"pinRight":return T&&Re?{name:b("pinRight","Pin Right"),action:()=>T.setColsPinned([Re],"right",Ve),checked:!!Re&&Re.isPinnedRight()}:null;case"clearPinned":return T&&Re?{name:b("noPin","No Pin"),action:()=>T.setColsPinned([Re],null,Ve),checked:!!Re&&!Re.isPinned()}:null;case"valueAggSubMenu":return G&&Te&&(Re!=null&&Re.isPrimary()||Re!=null&&Re.getColDef().pivotValueColumn)?{name:b("valueAggregation","Value Aggregation"),icon:(0,A._createIconNoSpan)("menuValue",w,null),subMenu:v(Re,G,Te,b),disabled:k.get("functionsReadOnly")}:null;case"autoSizeThis":return z?{name:b("autosizeThisColumn","Autosize This Column"),action:()=>z.autoSizeColumn(Re,Ve,k.get("skipHeaderOnAutoSize"))}:null;case"autoSizeAll":return z?{name:b("autosizeAllColumns","Autosize All Columns"),action:()=>z.autoSizeAllColumns(Ve,k.get("skipHeaderOnAutoSize"))}:null;case"rowGroup":return U?{name:b("groupBy","Group by")+" "+(0,A._escapeString)(X.getDisplayNameForColumn(Re,"header")),disabled:k.get("functionsReadOnly")||(Re==null?void 0:Re.isRowGroupActive())||!(Re!=null&&Re.getColDef().enableRowGroup),action:()=>U.addColumns([Re],Ve),icon:(0,A._createIconNoSpan)("menuAddRowGroup",w,null)}:null;case"rowUnGroup":if(U&&k.isModuleRegistered("SharedRowGrouping")){let Ee=Re==null?void 0:Re.getColDef().showRowGroup,tt=k.get("groupLockGroupColumns"),at,ut,Mt;if(Ee===!0)at=b("ungroupAll","Un-Group All"),ut=k.get("functionsReadOnly")||tt===-1||tt>=((Ue=U.columns.length)!=null?Ue:0),Mt=()=>U.setColumns(U.columns.slice(0,tt),Ve);else if(typeof Ee=="string"){let St=Q.getColDefCol(Ee),ft=St!=null?(0,A._escapeString)(X.getDisplayNameForColumn(St,"header")):Ee;at=b("ungroupBy","Un-Group by")+" "+ft,ut=k.get("functionsReadOnly")||(0,F.isRowGroupColLocked)(St,w),Mt=()=>{U.removeColumns([Ee],Ve)}}else at=b("ungroupBy","Un-Group by")+" "+(0,A._escapeString)(X.getDisplayNameForColumn(Re,"header")),ut=k.get("functionsReadOnly")||!(Re!=null&&Re.isRowGroupActive())||!(Re!=null&&Re.getColDef().enableRowGroup)||(0,F.isRowGroupColLocked)(Re,w),Mt=()=>U.removeColumns([Re],Ve);return{name:at,disabled:ut,action:Mt,icon:(0,A._createIconNoSpan)("menuRemoveRowGroup",w,null)}}else return null;case"resetColumns":return{name:b("resetColumns","Reset Columns"),action:()=>(0,A._resetColumnState)(w,Ve)};case"expandAll":return le?{name:b("expandAll","Expand All Row Groups"),action:()=>le.expandAll(!0)}:null;case"contractAll":return le?{name:b("collapseAll","Collapse All Row Groups"),action:()=>le.expandAll(!1)}:null;case"copy":return oe?{name:b("copy","Copy"),shortcut:b("ctrlC","Ctrl+C"),icon:(0,A._createIconNoSpan)("clipboardCopy",w,null),action:()=>oe.copyToClipboard()}:null;case"copyWithHeaders":return oe?{name:b("copyWithHeaders","Copy with Headers"),icon:(0,A._createIconNoSpan)("clipboardCopy",w,null),action:()=>oe.copyToClipboard({includeHeaders:!0})}:null;case"copyWithGroupHeaders":return oe?{name:b("copyWithGroupHeaders","Copy with Group Headers"),icon:(0,A._createIconNoSpan)("clipboardCopy",w,null),action:()=>oe.copyToClipboard({includeHeaders:!0,includeGroupHeaders:!0})}:null;case"cut":if(oe){let Ee=fe.getFocusedCell(),tt=Ee?(0,A._getRowNode)(w,Ee):null,at=tt?Ee==null?void 0:Ee.column.isCellEditable(tt):!1;return{name:b("cut","Cut"),shortcut:b("ctrlX","Ctrl+X"),icon:(0,A._createIconNoSpan)("clipboardCut",w,null),disabled:!at||k.get("suppressCutToClipboard"),action:()=>oe.cutToClipboard(void 0,"contextMenu")}}else return null;case"paste":return oe?{name:b("paste","Paste"),shortcut:b("ctrlV","Ctrl+V"),disabled:!0,icon:(0,A._createIconNoSpan)("clipboardPaste",w,null),action:()=>oe.pasteFromClipboard()}:null;case"export":{let Ee=[];return!k.get("suppressCsvExport")&&ye&&Ee.push("csvExport"),!k.get("suppressExcelExport")&&ke&&Ee.push("excelExport"),Ee.length?{name:b("export","Export"),subMenu:Ee,icon:(0,A._createIconNoSpan)("save",w,null)}:null}case"csvExport":return ye?{name:b("csvExport","CSV Export"),icon:(0,A._createIconNoSpan)("csvExport",w,null),action:()=>ye.exportDataAsCsv()}:null;case"excelExport":return ke?{name:b("excelExport","Excel Export"),icon:(0,A._createIconNoSpan)("excelExport",w,null),action:()=>ke.exportDataAsExcel()}:null;case"separator":return"separator";case"pivotChart":case"chartRange":return xe.getChartItems(Ne);case"columnFilter":return Ie&&Re?{name:b("columnFilter","Column Filter"),icon:(0,A._createIconNoSpan)("filter",w,null),action:()=>Ie.showFilterMenu({column:Re,buttonElement:Oe(),containerType:"columnFilter",positionBy:"button"})}:null;case"columnChooser":return ze?{name:b("columnChooser","Choose Columns"),icon:(0,A._createIconNoSpan)("columns",w,null),action:()=>ze.showColumnChooser({column:Re,eventSource:Oe()})}:null;case"sortAscending":return Ye?{name:b("sortAscending","Sort Ascending"),icon:(0,A._createIconNoSpan)("sortAscending",w,null),action:()=>Ye.setSortForColumn(Re,"asc",!1,Ve)}:null;case"sortDescending":return Ye?{name:b("sortDescending","Sort Descending"),icon:(0,A._createIconNoSpan)("sortDescending",w,null),action:()=>Ye.setSortForColumn(Re,"desc",!1,Ve)}:null;case"sortUnSort":return Ye?{name:b("sortUnSort","Clear Sort"),icon:(0,A._createIconNoSpan)("sortUnSort",w,null),action:()=>Ye.setSortForColumn(Re,null,!1,Ve)}:null;default:return(0,A._warn)(176,{key:Ne}),null}};return s.forEach(Ne=>{let Re;if(typeof Ne=="string"?Re=Ae(Ne,r,d,g):Re=pe({},Ne),!Re)return;let Oe=Re,{subMenu:Ve}=Oe;Ve&&Ve instanceof Array&&(Oe.subMenu=this.mapWithStockItems(Ve,r,d,g)),Re!=null&&m.push(Re)}),D(m,p.MENU_ITEM_SEPARATOR),m}}p.MenuItemMapper=f;function v(u,s,r,d){let g;if(u.isPrimary())g=u;else{let b=u.getColDef().pivotValueColumn;g=(0,A._exists)(b)?b:void 0}let m=[];if(g){let b=g.isValueActive(),w=s.getFuncNames(g);m.push({name:d("noAggregation","None"),action:()=>{r.removeColumns([g],"contextMenu"),r.setColumnAggFunc(g,void 0,"contextMenu")},checked:!b}),w.forEach(k=>{m.push({name:d(k,s.getDefaultFuncLabel(k)),action:()=>{r.setColumnAggFunc(g,k,"contextMenu"),r.addColumns([g],"contextMenu")},checked:b&&g.getAggFunc()===k})})}return m}},7130:function(x,p,M){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.MenuModule=p.ContextMenuModule=p.ColumnMenuModule=p.MenuCoreModule=void 0;let A=M(6624),F=M(9206),D=M(7205),f=M(3375),v=M(5636),u=M(9262),s=M(5884),r=M(3461),d=M(6345),g=M(8228),m=M(1708),b=M(3569);p.MenuCoreModule={moduleName:"MenuCore",version:D.VERSION,beans:[m.MenuItemMapper,v.ChartMenuItemMapper,b.MenuUtils],icons:{chart:"chart",columns:"columns",loadingMenuItems:"loading",menuPin:"pin",menuValue:"aggregation",menuAddRowGroup:"group",menuRemoveRowGroup:"group",clipboardCopy:"copy",clipboardCut:"cut",clipboardPaste:"paste",save:"save",csvExport:"csv",excelExport:"excel",sortAscending:"asc",sortDescending:"desc",sortUnSort:"none"},dependsOn:[F.EnterpriseCoreModule,A._PopupModule,A._SharedMenuModule,f.MenuItemModule]},p.ColumnMenuModule={moduleName:"ColumnMenu",version:D.VERSION,beans:[d.EnterpriseMenuFactory,s.ColumnMenuFactory,u.ColumnChooserFactory],icons:{legacyMenu:"menu",filterTab:"filter",columnSelectClosed:"tree-closed",columnSelectOpen:"tree-open",columnSelectIndeterminate:"tree-indeterminate"},apiFunctions:{showColumnChooser:g.showColumnChooser,hideColumnChooser:g.hideColumnChooser},dependsOn:[p.MenuCoreModule,A._SharedDragAndDropModule,A._ColumnMoveModule]},p.ContextMenuModule={moduleName:"ContextMenu",version:D.VERSION,beans:[r.ContextMenuService],apiFunctions:{showContextMenu:g.showContextMenu},dependsOn:[p.MenuCoreModule]},p.MenuModule={moduleName:"Menu",version:D.VERSION,dependsOn:[p.ColumnMenuModule,p.ContextMenuModule]}},3569:function(x,p,M){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.MenuUtils=void 0;let A=M(6624);class F extends A.BeanStub{constructor(){super(...arguments),this.beanName="menuUtils"}restoreFocusOnClose(f,v,u,s){let{eventSource:r}=f,d=u instanceof KeyboardEvent;if(!s&&!d||!r)return;let g=(0,A._getActiveDomElement)(this.beans);!v.contains(g)&&!(0,A._isNothingFocused)(this.beans)||this.focusHeaderCell(f)}closePopupAndRestoreFocusOnSelect(f,v,u){let s;u&&u.keyboardEvent&&(s=u.keyboardEvent),f(s&&{keyboardEvent:s});let r=this.beans,d=r.focusSvc,g=d.getFocusedCell();if((0,A._isNothingFocused)(r))if(g){let{rowIndex:m,rowPinned:b,column:w}=g;d.setFocusedCell({rowIndex:m,column:w,rowPinned:b,forceBrowserFocus:!0,preventScrollOnBrowserFocus:!0})}else this.focusHeaderCell(v)}onContextMenu(f,v,u){if(!this.gos.get("allowContextMenuWithControlKey")&&f&&(f.ctrlKey||f.metaKey)||(f&&this.blockMiddleClickScrollsIfNeeded(f),this.gos.get("suppressContextMenu")))return;let s=f!=null?f:v.touches[0];if(u(s)){let r=f!=null?f:v;r&&r.cancelable&&r.preventDefault()}}async focusHeaderCell(f){let{column:v,columnIndex:u,headerPosition:s,eventSource:r}=f,{visibleCols:d,headerNavigation:g,focusSvc:m}=this.beans,b=await d.allCols.some(w=>w===v);if(!(v&&!v.isAlive())){if(b&&r&&(0,A._isVisible)(r)){let w=(0,A._findTabbableParent)(r);w&&(v&&(g==null||g.scrollToColumn(v)),w.focus())}else if(s&&u!==-1){let w=d.allCols,k=w[u]||(0,A._last)(w);k&&m.focusHeaderPosition({headerPosition:{headerRowIndex:s.headerRowIndex,column:k}})}}}blockMiddleClickScrollsIfNeeded(f){this.gos.get("suppressMiddleClickScrolls")&&f.which===2&&f.preventDefault()}}p.MenuUtils=F},6242:function(x,p,M){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.isTargetUnderManagedComponent=p.findFocusableElementBeforeTabGuard=void 0;let A=M(6624);function F(f,v){if(!v)return null;let u=(0,A._findFocusableElements)(f),s=u.indexOf(v);if(s===-1)return null;let r=-1;for(let d=s-1;d>=0;d--)if(u[d].classList.contains(A.TabGuardClassNames.TAB_GUARD_TOP)){r=d;break}return r<=0?null:u[r-1]}p.findFocusableElementBeforeTabGuard=F;function D(f,v){if(!v)return!1;let u=f.querySelectorAll(`.${A._FOCUS_MANAGED_CLASS}`);if(!u.length)return!1;for(let s=0;s<u.length;s++)if(u[s].contains(v))return!0;return!1}p.isTargetUnderManagedComponent=D},9038:function(x,p,M){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.MultiFilter=p.getMultiFilterDefs=void 0;let A=M(6624),F=M(1421),D=M(7040),f=M(3360);function v(d){let{filters:g}=d;return g&&g.length>0?g:[{filter:"agTextColumnFilter"},{filter:"agSetColumnFilter"}]}p.getMultiFilterDefs=v;function u(d,g){if(d!=null)for(let m=d.length-1;m>=0;m--)g(d[m],m)}function s(d,g){return g.title!=null?g.title:d instanceof A.ProvidedFilter?d.getFilterTitle():"Filter"}class r extends A.TabGuardComp{constructor(){super('<div class="ag-multi-filter ag-menu-list-compact"></div>'),this.filterType="multi",this.filterDefs=[],this.filters=[],this.guiDestroyFuncs=[],this.filterGuis=[],this.activeFilterIndices=[],this.lastActivatedMenuItem=null,this.afterFiltersReadyFuncs=[]}postConstruct(){this.initialiseTabGuard({onFocusIn:g=>this.onFocusIn(g)})}init(g){this.params=g,this.filterDefs=v(g);let{column:m,filterChangedCallback:b}=g;this.column=m,this.filterChangedCallback=b;let w=[];return this.filterDefs.forEach((k,R)=>{let T=this.createFilter(k,R);T!=null&&w.push(T)}),new A.AgPromise(k=>{A.AgPromise.all(w).then(R=>{this.filters=R,this.refreshGui("columnMenu").then(()=>{k()})})}).then(()=>{this.afterFiltersReadyFuncs.forEach(k=>k()),this.afterFiltersReadyFuncs.length=0})}refreshGui(g){return g===this.lastOpenedInContainer?A.AgPromise.resolve():(this.tabGuardFeature.removeAllChildrenExceptTabGuards(),this.destroyChildren(),A.AgPromise.all(this.filters.map((m,b)=>{let w=this.filterDefs[b],k=s(m,w),R;if(w.display==="subMenu"&&g!=="toolPanel")R=this.insertFilterMenu(m,k).then(T=>T.getGui());else if(w.display==="subMenu"||w.display==="accordion"){let T=this.insertFilterGroup(m,k);R=A.AgPromise.resolve(T.getGui())}else R=A.AgPromise.resolve(m.getGui());return R})).then(m=>{m.forEach((b,w)=>{w>0&&this.appendChild((0,A._loadTemplate)('<div class="ag-filter-separator"></div>')),this.appendChild(b)}),this.filterGuis=m,this.lastOpenedInContainer=g}))}destroyChildren(){this.guiDestroyFuncs.forEach(g=>g()),this.guiDestroyFuncs.length=0,this.filterGuis.length=0}insertFilterMenu(g,m){let b=this.createBean(new D.AgMenuItemComponent);return b.init({menuItemDef:{name:m,subMenu:[],cssClasses:["ag-multi-filter-menu-item"],menuItem:f.AgMenuItemRenderer,menuItemParams:{cssClassPrefix:"ag-compact-menu-option",isCompact:!0}},level:0,isAnotherSubMenuOpen:()=>!1,childComponent:g,contextParams:{column:null,node:null,value:null}}).then(()=>{b.setParentComponent(this),this.guiDestroyFuncs.push(()=>this.destroyBean(b)),this.addManagedListeners(b,{menuItemActivated:k=>{this.lastActivatedMenuItem&&this.lastActivatedMenuItem!==k.menuItem&&this.lastActivatedMenuItem.deactivate(),this.lastActivatedMenuItem=k.menuItem}});let w=b.getGui();return b.addManagedElementListeners(w,{keydown:k=>{let{key:R}=k;switch(R){case A.KeyCode.UP:case A.KeyCode.RIGHT:case A.KeyCode.DOWN:case A.KeyCode.LEFT:k.preventDefault(),R===A.KeyCode.RIGHT&&b.openSubMenu(!0);break}},focusin:()=>b.activate(),focusout:()=>{!b.isSubMenuOpen()&&!b.isSubMenuOpening()&&b.deactivate()}}),b})}insertFilterGroup(g,m){let b=this.createBean(new F.AgGroupComponent({title:m,cssIdentifier:"multi-filter"}));return this.guiDestroyFuncs.push(()=>this.destroyBean(b)),b.addItem(g.getGui()),b.toggleGroupExpand(!1),g.afterGuiAttached&&b.addManagedListeners(b,{expanded:()=>g.afterGuiAttached({container:this.lastOpenedInContainer,suppressFocus:!0,hidePopup:this.hidePopup})}),b}isFilterActive(){return this.filters.some(g=>g.isFilterActive())}getLastActiveFilterIndex(){let g=this.activeFilterIndices;return g.length>0?g[g.length-1]:null}doesFilterPass(g,m){let b=!0;return this.filters.forEach(w=>{!b||w===m||!w.isFilterActive()||(b=w.doesFilterPass(g))}),b}getModelFromUi(){return{filterType:this.filterType,filterModels:this.filters.map(m=>{let b=m;return typeof b.getModelFromUi=="function"?b.getModelFromUi():null})}}getModel(){return this.isFilterActive()?{filterType:this.filterType,filterModels:this.filters.map(m=>m.isFilterActive()?m.getModel():null)}:null}setModel(g){let m=(w,k)=>new A.AgPromise(R=>{let T=w.setModel(k);T?T.then(()=>R()):R()}),b=[];return g==null?b=this.filters.map((w,k)=>m(w,null).then(()=>{this.updateActiveList(k)})):this.filters.forEach((w,k)=>{let R=g.filterModels.length>k?g.filterModels[k]:null,T=m(w,R).then(()=>{this.updateActiveList(k)});b.push(T)}),A.AgPromise.all(b).then(()=>{})}applyModel(g="api"){let m=!1;return this.filters.forEach(b=>{b instanceof A.ProvidedFilter&&(m=b.applyModel(g)||m)}),m}getChildFilterInstance(g){return this.filters[g]}afterGuiAttached(g){let m;g?(this.hidePopup=g.hidePopup,m=this.refreshGui(g.container)):(this.hidePopup=void 0,m=A.AgPromise.resolve());let b=g==null?void 0:g.suppressFocus;m.then(()=>{let{filterDefs:w,filters:k,filterGuis:R,beans:T}=this,z=!!b;w&&u(w,(U,X)=>{let Q=X===0,oe=U.display&&U.display!=="inline",le=b||!Q||oe,fe=et(pe({},g!=null?g:{}),{suppressFocus:le}),ye=k==null?void 0:k[X];if(ye&&(this.executeFunctionIfExistsOnFilter(ye,"afterGuiAttached",fe),Q&&!le&&(z=!0)),!b&&Q&&oe){let ke=R[X];ke&&((0,A._focusInto)(ke)||ke.focus({preventScroll:!0}),z=!0)}});let G=(0,A._getActiveDomElement)(T);!z&&((0,A._isNothingFocused)(T)||this.getGui().contains(G))&&this.forceFocusOutOfContainer(!0)})}afterGuiDetached(){this.executeFunctionIfExists("afterGuiDetached")}onAnyFilterChanged(){this.executeFunctionIfExists("onAnyFilterChanged")}onNewRowsLoaded(){this.executeFunctionIfExists("onNewRowsLoaded")}destroy(){this.filters.forEach(g=>this.destroyBean(g)),this.filters.length=0,this.destroyChildren(),this.hidePopup=void 0,super.destroy()}executeFunctionIfExists(g,...m){u(this.filters,b=>{this.executeFunctionIfExistsOnFilter(b,g,m)})}executeFunctionIfExistsOnFilter(g,m,...b){let w=g[m];typeof w=="function"&&w.apply(g,b)}createFilter(g,m){let{filterModifiedCallback:b,doesRowPassOtherFilter:w}=this.params,{filterManager:k,userCompFactory:R}=this.beans,T,z=et(pe({},k.createFilterParams(this.column,this.column.getColDef())),{filterModifiedCallback:b,filterChangedCallback:X=>{this.executeWhenAllFiltersReady(()=>this.filterChanged(m,X))},doesRowPassOtherFilter:X=>w(X)&&this.doesFilterPass({node:X,data:X.data},T)}),G=(0,A._getFilterDetails)(R,g,z,"agTextColumnFilter");if(!G)return null;let U=G.newAgStackInstance();return U.then(X=>T=X),U}executeWhenAllFiltersReady(g){var m,b;((b=(m=this.filters)==null?void 0:m.length)!=null?b:0)>0?g():this.afterFiltersReadyFuncs.push(g)}updateActiveList(g){let{filters:m,activeFilterIndices:b}=this,w=m[g];(0,A._removeFromArray)(b,g),w.isFilterActive()&&b.push(g)}filterChanged(g,m){this.updateActiveList(g),this.filterChangedCallback(m);let b=this.filters[g];this.filters.forEach(w=>{w!==b&&typeof w.onAnyFilterChanged=="function"&&w.onAnyFilterChanged()})}onFocusIn(g){let m=this.lastActivatedMenuItem;m!=null&&!m.getGui().contains(g.target)&&(m.deactivate(),this.lastActivatedMenuItem=null)}getModelAsString(g){var w,k,R,T;if(!this.filters||!((w=g==null?void 0:g.filterModels)!=null&&w.length))return"";let m=(k=this.getLastActiveFilterIndex())!=null?k:0,b=this.filters[m];return(T=(R=b.getModelAsString)==null?void 0:R.call(b,g.filterModels[m]))!=null?T:""}}p.MultiFilter=r},5434:function(x,p,M){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.MultiFilterModule=void 0;let A=M(6624),F=M(9206),D=M(7205),f=M(3375),v=M(9038),u=M(2335);p.MultiFilterModule={moduleName:"MultiFilter",version:D.VERSION,userComponents:{agMultiColumnFilter:v.MultiFilter,agMultiColumnFloatingFilter:u.MultiFloatingFilterComp},dependsOn:[F.EnterpriseCoreModule,A._ColumnFilterModule,f.MenuItemModule]}},2335:function(x,p,M){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.MultiFloatingFilterComp=void 0;let A=M(6624),F=M(9038);class D extends A.Component{constructor(){super('<div class="ag-multi-floating-filter ag-floating-filter-input"></div>'),this.floatingFilters=[],this.compDetailsList=[]}init(v){this.params=v;let{compDetailsList:u}=this.getCompDetailsList(v);return this.setParams(u)}setParams(v){let u=[];return v.forEach(s=>{let r=s==null?void 0:s.newAgStackInstance();r!=null&&(this.compDetailsList.push(s),u.push(r))}),A.AgPromise.all(u).then(s=>{s.forEach((r,d)=>{this.floatingFilters.push(r);let g=r.getGui();this.appendChild(g),d>0&&(0,A._setDisplayed)(g,!1)})})}refresh(v){this.params=v;let{compDetailsList:u,floatingFilterParamsList:s}=this.getCompDetailsList(v);u.length===this.compDetailsList.length&&u.every((d,g)=>{var m;return!((m=this.beans.filterManager)!=null&&m.areFilterCompsDifferent(this.compDetailsList[g],d))})?s.forEach((d,g)=>{var b;let m=this.floatingFilters[g];(b=m.refresh)==null||b.call(m,d)}):((0,A._clearElement)(this.getGui()),this.destroyBeans(this.floatingFilters),this.floatingFilters=[],this.compDetailsList=[],this.setParams(u))}getCompDetailsList(v){let u=[],s=[],r=v.filterParams,d=v.currentParentModel;return(0,F.getMultiFilterDefs)(r).forEach((g,m)=>{let b=et(pe({},v),{parentFilterInstance:k=>{this.parentMultiFilterInstance(R=>{let T=R.getChildFilterInstance(m);T!=null&&k(T)})},currentParentModel:()=>{var k,R,T;return(T=(R=(k=d())==null?void 0:k.filterModels)==null?void 0:R[m])!=null?T:null}});(0,A._mergeDeep)(b.filterParams,g.filterParams);let w=this.getCompDetails(g,b);w&&(u.push(w),s.push(b))}),{compDetailsList:u,floatingFilterParamsList:s}}onParentModelChanged(v,u){u&&u.afterFloatingFilter||this.parentMultiFilterInstance(s=>{if(v==null)this.floatingFilters.forEach((r,d)=>{r.onParentModelChanged(null,u),(0,A._setDisplayed)(r.getGui(),d===0)});else{let r=s.getLastActiveFilterIndex();this.floatingFilters.forEach((d,g)=>{let m=v.filterModels.length>g?v.filterModels[g]:null;d.onParentModelChanged(m,u);let b=r==null?g===0:g===r;(0,A._setDisplayed)(d.getGui(),b)})}})}destroy(){this.destroyBeans(this.floatingFilters),this.floatingFilters.length=0,super.destroy()}getCompDetails(v,u){var m;let{filterManager:s,frameworkOverrides:r,userCompFactory:d}=this.beans,g=(m=(0,A._getDefaultFloatingFilterType)(r,v,()=>s.getDefaultFloatingFilter(this.params.column)))!=null?m:"agReadOnlyFloatingFilter";return(0,A._getFloatingFilterCompDetails)(d,v,u,g)}parentMultiFilterInstance(v){this.params.parentFilterInstance(u=>{u instanceof F.MultiFilter||(0,A._error)(120),v(u)})}}p.MultiFloatingFilterComp=D},5792:function(x,p){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.getPivotResultColumns=p.setPivotResultColumns=p.getPivotColumns=p.addPivotColumns=p.removePivotColumns=p.setPivotColumns=p.addValueColumns=p.removeValueColumns=p.getValueColumns=p.setValueColumns=p.getPivotResultColumn=p.isPivotMode=void 0;function M(b){return b.colModel.isPivotMode()}p.isPivotMode=M;function A(b,w,k){var R,T;return(T=(R=b.pivotResultCols)==null?void 0:R.lookupPivotResultCol(w,k))!=null?T:null}p.getPivotResultColumn=A;function F(b,w){var k;(k=b.valueColsSvc)==null||k.setColumns(w,"api")}p.setValueColumns=F;function D(b){var w,k;return(k=(w=b.valueColsSvc)==null?void 0:w.columns)!=null?k:[]}p.getValueColumns=D;function f(b,w){var k;(k=b.valueColsSvc)==null||k.removeColumns(w,"api")}p.removeValueColumns=f;function v(b,w){var k;(k=b.valueColsSvc)==null||k.addColumns(w,"api")}p.addValueColumns=v;function u(b,w){var k;(k=b.pivotColsSvc)==null||k.setColumns(w,"api")}p.setPivotColumns=u;function s(b,w){var k;(k=b.pivotColsSvc)==null||k.removeColumns(w,"api")}p.removePivotColumns=s;function r(b,w){var k;(k=b.pivotColsSvc)==null||k.addColumns(w,"api")}p.addPivotColumns=r;function d(b){var w,k;return(k=(w=b.pivotColsSvc)==null?void 0:w.columns)!=null?k:[]}p.getPivotColumns=d;function g(b,w){var k;(k=b.pivotResultCols)==null||k.setPivotResultCols(w,"api")}p.setPivotResultColumns=g;function m(b){var k;let w=(k=b.pivotResultCols)==null?void 0:k.getPivotResultCols();return w?w.list:null}p.getPivotResultColumns=m},6616:function(x,p,M){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.PivotColDefService=void 0;let A=M(6624),F="PivotRowTotal_";class D extends A.BeanStub{constructor(){super(...arguments),this.beanName="pivotColDefSvc"}wireBeans(v){this.colModel=v.colModel,this.pivotColsSvc=v.pivotColsSvc,this.valueColsSvc=v.valueColsSvc,this.colNames=v.colNames}postConstruct(){let v=()=>{var s;return(s=this.gos.get("serverSidePivotResultFieldSeparator"))!=null?s:"_"};this.fieldSeparator=v(),this.addManagedPropertyListener("serverSidePivotResultFieldSeparator",()=>{this.fieldSeparator=v()});let u=()=>this.gos.get("pivotDefaultExpanded");this.pivotDefaultExpanded=u(),this.addManagedPropertyListener("pivotDefaultExpanded",()=>{this.pivotDefaultExpanded=u()})}createPivotColumnDefs(v){let u=this.createPivotColumnsFromUniqueValues(v);function s(g,m=[]){return g.forEach(b=>{b.children!==void 0?s(b.children,m):m.push(b)}),m}let r=s(u);this.addRowGroupTotals(u,r),this.addExpandablePivotGroups(u,r),this.addPivotTotalsToGroups(u,r);let d=r.map(g=>pe({},g));return{pivotColumnGroupDefs:u,pivotColumnDefs:d}}createPivotColumnsFromUniqueValues(v){var d,g;let u=(g=(d=this.pivotColsSvc)==null?void 0:d.columns)!=null?g:[],s=u.length;return this.recursivelyBuildGroup(0,v,[],s,u)}recursivelyBuildGroup(v,u,s,r,d){var k;let g=(k=this.valueColsSvc)==null?void 0:k.columns;if(v>=r)return this.buildMeasureCols(s);let m=d[v].getColDef(),b=this.headerNameComparator.bind(this,m.pivotComparator);if((g==null?void 0:g.length)===1&&this.gos.get("removePivotHeaderRowWhenSingleValueColumn")&&v===r-1){let R=[];for(let T of Object.keys(u)){let z=[...s,T],G=this.createColDef(g[0],T,z);G.columnGroupShow="open",R.push(G)}return R.sort(b),R}let w=[];for(let[R,T]of Object.entries(u)){let z=this.pivotDefaultExpanded===-1||v<this.pivotDefaultExpanded,G=[...s,R];w.push({children:this.recursivelyBuildGroup(v+1,T,G,r,d),headerName:R,pivotKeys:G,columnGroupShow:"open",openByDefault:z,groupId:this.generateColumnGroupId(G)})}return w.sort(b),w}buildMeasureCols(v){var s,r;let u=(r=(s=this.valueColsSvc)==null?void 0:s.columns)!=null?r:[];return u.length===0?[this.createColDef(null,"-",v)]:u.map(d=>{let g=this.colNames.getDisplayNameForColumn(d,"header");return et(pe({},this.createColDef(d,g,v)),{columnGroupShow:"open"})})}addExpandablePivotGroups(v,u){let s=this.gos.get("suppressExpandablePivotGroups");if(s||this.gos.get("pivotColumnGroupTotals"))return;let r=(d,g,m)=>{var k;if("children"in d){let R=new Map;d.children.forEach(z=>{r(z,g,R)});let T=!d.children.some(z=>z.children);(k=this.valueColsSvc)==null||k.columns.forEach(z=>{let G=this.colNames.getDisplayNameForColumn(z,"header"),U=this.createColDef(z,G,d.pivotKeys);U.pivotTotalColumnIds=R.get(z.getColId()),U.columnGroupShow=s?"open":"closed",U.aggFunc=z.getAggFunc(),T||(d.children.push(U),g.push(U))}),this.merge(m,R);return}if(!d.pivotValueColumn)return;let b=d.pivotValueColumn.getColId();m.has(b)?m.get(b).push(d.colId):m.set(b,[d.colId])};v.forEach(d=>{r(d,u,new Map)})}addPivotTotalsToGroups(v,u){var g;if(!this.gos.get("pivotColumnGroupTotals"))return;let s=this.gos.get("pivotColumnGroupTotals")==="after",r=(g=this.valueColsSvc)==null?void 0:g.columns,d=r==null?void 0:r.map(m=>m.getAggFunc());if(!(!d||d.length<1||!this.sameAggFuncs(d))&&r){let m=r[0];v.forEach(b=>{this.recursivelyAddPivotTotal(b,u,m,s)})}}recursivelyAddPivotTotal(v,u,s,r){let d=v;if(!d.children){let m=v;return m.colId?[m.colId]:null}let g=[];if(d.children.forEach(m=>{let b=this.recursivelyAddPivotTotal(m,u,s,r);b&&(g=g.concat(b))}),d.children.length>1){let b=this.getLocaleTextFunc()("pivotColumnGroupTotals","Total"),w=this.createColDef(s,b,v.pivotKeys,!0);w.pivotTotalColumnIds=g,w.aggFunc=s.getAggFunc(),w.columnGroupShow=this.gos.get("suppressExpandablePivotGroups")?"open":void 0;let k=v.children;r?k.push(w):k.unshift(w),u.push(w)}return g}addRowGroupTotals(v,u){var m,b;if(!this.gos.get("pivotRowTotals"))return;let s=this.gos.get("pivotRowTotals")==="after",d=((b=(m=this.valueColsSvc)==null?void 0:m.columns)!=null?b:[]).slice();s||d.reverse();let g=d.length>1||!this.gos.get("removePivotHeaderRowWhenSingleValueColumn");for(let w=0;w<d.length;w++){let k=d[w],R=this.colNames.getDisplayNameForColumn(k,"header"),T=this.createColDef(k,R,[]),z=[];for(let U=0;U<u.length;U++){let X=u[U];X.pivotValueColumn===k&&z.push(X.colId)}T.pivotTotalColumnIds=z,T.colId=F+T.colId;let G=g?{children:[T],pivotKeys:[],groupId:`${F}_pivotGroup_${k.getColId()}`}:T;u.push(T),s?v.push(G):v.unshift(G)}}createColDef(v,u,s,r=!1){let d={};if(v){let g=v.getColDef();Object.assign(d,g),d.hide=!1}return d.headerName=u,d.colId=this.generateColumnId(s||[],v&&!r?v.getColId():""),d.field=d.colId,d.valueGetter=g=>{var m;return(m=g.data)==null?void 0:m[g.colDef.field]},d.pivotKeys=s,d.pivotValueColumn=v,d.filter===!0&&(d.filter="agNumberColumnFilter"),d}sameAggFuncs(v){if(v.length==1)return!0;for(let u=1;u<v.length;u++)if(v[u]!==v[0])return!1;return!0}headerNameComparator(v,u,s){return v?v(u.headerName,s.headerName):u.headerName&&!s.headerName?1:!u.headerName&&s.headerName?-1:!u.headerName||!s.headerName?0:u.headerName<s.headerName?-1:u.headerName>s.headerName?1:0}merge(v,u){u.forEach((s,r)=>{let g=[...v.has(r)?v.get(r):[],...s];v.set(r,g)})}generateColumnGroupId(v){var s,r;return`pivotGroup_${((r=(s=this.pivotColsSvc)==null?void 0:s.columns)!=null?r:[]).map(d=>d.getColId()).join("-")}_${v.join("-")}`}generateColumnId(v,u){var r,d;return`pivot_${((d=(r=this.pivotColsSvc)==null?void 0:r.columns)!=null?d:[]).map(g=>g.getColId()).join("-")}_${v.join("-")}_${u}`}createColDefsFromFields(v){let u={};for(let d=0;d<v.length;d++){let m=v[d].split(this.fieldSeparator),b=u;for(let w=0;w<m.length;w++){let k=m[w];b[k]==null&&(b[k]={}),b=b[k]}}let s=(d,g,m,b)=>{var T;let w=[];for(let z of Object.keys(m)){let G=m[z],U=s(`${d}${this.fieldSeparator}${z}`,z,G,b+1);w.push(U)}if(w.length===0){let z=this.colModel.getColDefCol(g);if(z){let U=(T=this.colNames.getDisplayNameForColumn(z,"header"))!=null?T:g,X=this.createColDef(z,U,void 0,!1);return X.colId=d,X.aggFunc=z.getAggFunc(),X.valueGetter=Q=>{var oe;return(oe=Q.data)==null?void 0:oe[d]},X}return{colId:d,headerName:g,valueGetter:U=>{var X;return(X=U.data)==null?void 0:X[d]}}}return this.gos.get("removePivotHeaderRowWhenSingleValueColumn")&&w.length===1&&"colId"in w[0]?(w[0].headerName=g,w[0]):{openByDefault:this.pivotDefaultExpanded===-1||b<this.pivotDefaultExpanded,groupId:d,headerName:g,children:w}},r=[];for(let d of Object.keys(u)){let g=u[d],m=s(d,d,g,0);r.push(m)}return r}}p.PivotColDefService=D},3227:function(x,p,M){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.PivotColsSvc=void 0;let A=M(6624);class F extends A.BaseColsService{constructor(){super(...arguments),this.beanName="pivotColsSvc",this.eventName="columnPivotChanged",this.columnProcessors={set:(f,v,u)=>this.setColPivotActive(f,v,u),add:(f,v,u)=>this.setColPivotActive(f,!0,u),remove:(f,v,u)=>this.setColPivotActive(f,!1,u)},this.columnOrdering={enableProp:"pivot",initialEnableProp:"initialPivot",indexProp:"pivotIndex",initialIndexProp:"initialPivotIndex"},this.columnExtractors={setFlagFunc:(f,v,u)=>this.setColPivotActive(f,v,u),getIndexFunc:f=>f.pivotIndex,getInitialIndexFunc:f=>f.initialPivotIndex,getValueFunc:f=>f.pivot,getInitialValueFunc:f=>f.initialPivot},this.modifyColumnsNoEventsCallbacks={addCol:f=>this.columns.push(f),removeCol:f=>(0,A._removeFromArray)(this.columns,f)}}syncColumnWithState(f,v,u,s){let{value1:r,value2:d}=u("pivot","pivotIndex");(r!==void 0||d!==void 0)&&(typeof d=="number"||r?(f.isPivotActive()||(this.setColPivotActive(f,!0,v),this.modifyColumnsNoEventsCallbacks.addCol(f)),s&&typeof d=="number"&&(s[f.getId()]=d)):f.isPivotActive()&&(this.setColPivotActive(f,!1,v),this.modifyColumnsNoEventsCallbacks.removeCol(f)))}setColPivotActive(f,v,u){f.pivotActive!==v&&(f.pivotActive=v,f.dispatchColEvent("columnPivotChanged",u)),f.dispatchStateUpdatedEvent("pivot")}}p.PivotColsSvc=F},5470:function(x,p,M){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.PivotModule=p.SharedPivotModule=void 0;let A=M(6624),F=M(1442),D=M(6858),f=M(7205),v=M(5792),u=M(6616),s=M(3227),r=M(6465),d=M(5374);p.SharedPivotModule={moduleName:"SharedPivot",version:f.VERSION,beans:[r.PivotResultColsService,u.PivotColDefService,s.PivotColsSvc],apiFunctions:{isPivotMode:v.isPivotMode,getPivotResultColumn:v.getPivotResultColumn,setValueColumns:v.setValueColumns,getValueColumns:v.getValueColumns,removeValueColumns:v.removeValueColumns,addValueColumns:v.addValueColumns,setPivotColumns:v.setPivotColumns,removePivotColumns:v.removePivotColumns,addPivotColumns:v.addPivotColumns,getPivotColumns:v.getPivotColumns,setPivotResultColumns:v.setPivotResultColumns,getPivotResultColumns:v.getPivotResultColumns},dependsOn:[F.SharedRowGroupingModule,A._ColumnGroupModule]},p.PivotModule={moduleName:"Pivot",version:f.VERSION,rowModels:["clientSide"],beans:[d.PivotStage],dependsOn:[p.SharedPivotModule,F.RowGroupingModule,D.ClientSideRowModelHierarchyModule]}},6465:function(x,p,M){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.PivotResultColsService=void 0;let A=M(6624);class F extends A.BeanStub{constructor(){super(...arguments),this.beanName="pivotResultCols"}wireBeans(f){this.colModel=f.colModel,this.visibleCols=f.visibleCols}destroy(){var f;(0,A._destroyColumnTree)(this.beans,(f=this.pivotResultCols)==null?void 0:f.tree),super.destroy()}isPivotResultColsPresent(){return this.pivotResultCols!=null}lookupPivotResultCol(f,v){if(this.pivotResultCols==null)return null;let u=this.colModel.getColDefCol(v),s=null;return this.pivotResultCols.list.forEach(r=>{let d=r.getColDef().pivotKeys,g=r.getColDef().pivotValueColumn;(0,A._areEqual)(d,f)&&g===u&&(s=r)}),s}getPivotResultCols(){return this.pivotResultCols}getPivotResultCol(f){return this.pivotResultCols?this.colModel.getColFromCollection(f,this.pivotResultCols):null}setPivotResultCols(f,v){var u,s;if(this.colModel.ready&&!(f==null&&this.pivotResultCols==null)){if(f){this.processPivotResultColDef(f);let r=(0,A._createColumnTree)(this.beans,f,!1,((u=this.pivotResultCols)==null?void 0:u.tree)||this.previousPivotResultCols||void 0,v);(0,A._destroyColumnTree)(this.beans,(s=this.pivotResultCols)==null?void 0:s.tree,r.columnTree);let d=r.columnTree,g=r.treeDept,m=(0,A._getColumnsFromTree)(d),b={};this.pivotResultCols={tree:d,treeDepth:g,list:m,map:b},this.pivotResultCols.list.forEach(k=>this.pivotResultCols.map[k.getId()]=k);let w=!!this.previousPivotResultCols;this.previousPivotResultCols=null,this.colModel.refreshCols(!w)}else this.previousPivotResultCols=this.pivotResultCols?this.pivotResultCols.tree:null,this.pivotResultCols=null,this.colModel.refreshCols(!1);this.visibleCols.refresh(v)}}processPivotResultColDef(f){let v=this.gos.get("processPivotResultColDef"),u=this.gos.get("processPivotResultColGroupDef");if(!v&&!u)return;let s=r=>{r.forEach(d=>{if((0,A._exists)(d.children)){let m=d;u&&u(m),s(m.children)}else v&&v(d)})};f&&s(f)}}p.PivotResultColsService=F},5374:function(x,p,M){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.PivotStage=void 0;let A=M(6624),F="Exceeded maximum allowed pivot column count.";class D extends A.BeanStub{constructor(){super(...arguments),this.beanName="pivotStage",this.refreshProps=new Set(["removePivotHeaderRowWhenSingleValueColumn","pivotRowTotals","pivotColumnGroupTotals","suppressExpandablePivotGroups"]),this.step="pivot",this.uniqueValues={},this.lastTimeFailed=!1,this.maxUniqueValues=-1,this.currentUniqueCount=0}wireBeans(v){this.valueSvc=v.valueSvc,this.colModel=v.colModel,this.pivotResultCols=v.pivotResultCols,this.rowGroupColsSvc=v.rowGroupColsSvc,this.valueColsSvc=v.valueColsSvc,this.pivotColsSvc=v.pivotColsSvc,this.pivotColDefSvc=v.pivotColDefSvc}execute(v){let u=v.changedPath;this.colModel.isPivotActive()?this.executePivotOn(u):this.executePivotOff(u)}executePivotOff(v){this.aggregationColumnsHashLastTime=null,this.uniqueValues={},this.pivotResultCols.isPivotResultColsPresent()&&(this.pivotResultCols.setPivotResultCols(null,"rowModelUpdated"),v&&(v.active=!1))}executePivotOn(v){var oe,le,fe,ye,ke,Ie;let u=(le=(oe=this.valueColsSvc)==null?void 0:oe.columns.length)!=null?le:1,s=this.gos.get("pivotMaxGeneratedColumns");this.maxUniqueValues=s===-1?-1:s/u;let r;try{r=this.bucketUpRowNodes(v)}catch(ze){if(ze.message===F){this.pivotResultCols.setPivotResultCols([],"rowModelUpdated"),this.eventSvc.dispatchEvent({type:"pivotMaxColumnsExceeded",message:ze.message}),this.lastTimeFailed=!0;return}throw ze}let d=this.setUniqueValues(r),g=(ye=(fe=this.valueColsSvc)==null?void 0:fe.columns)!=null?ye:[],m=g.map(ze=>`${ze.getId()}-${ze.getColDef().headerName}`).join("#"),b=g.map(ze=>ze.getAggFunc().toString()).join("#"),w=this.aggregationColumnsHashLastTime!==m,k=this.aggregationFuncsHashLastTime!==b;this.aggregationColumnsHashLastTime=m,this.aggregationFuncsHashLastTime=b;let R=((Ie=(ke=this.rowGroupColsSvc)==null?void 0:ke.columns)!=null?Ie:[]).map(ze=>ze.getId()).join("#"),T=R!==this.groupColumnsHashLastTime;this.groupColumnsHashLastTime=R;let z=this.gos.get("pivotRowTotals"),G=this.gos.get("pivotColumnGroupTotals"),U=this.gos.get("suppressExpandablePivotGroups"),X=this.gos.get("removePivotHeaderRowWhenSingleValueColumn"),Q=z!==this.pivotRowTotalsLastTime||G!==this.pivotColumnGroupTotalsLastTime||U!==this.suppressExpandablePivotGroupsLastTime||X!==this.removePivotHeaderRowWhenSingleValueColumnLastTime;if(this.pivotRowTotalsLastTime=z,this.pivotColumnGroupTotalsLastTime=G,this.suppressExpandablePivotGroupsLastTime=U,this.removePivotHeaderRowWhenSingleValueColumnLastTime=X,this.lastTimeFailed||d||w||T||k||Q){let{pivotColumnGroupDefs:ze,pivotColumnDefs:Ye}=this.pivotColDefSvc.createPivotColumnDefs(this.uniqueValues);this.pivotColumnDefs=Ye,this.pivotResultCols.setPivotResultCols(ze,"rowModelUpdated"),v&&(v.active=!1)}this.lastTimeFailed=!1}setUniqueValues(v){let u=JSON.stringify(v),s=JSON.stringify(this.uniqueValues);return u!==s?(this.uniqueValues=v,!0):!1}bucketUpRowNodes(v){this.currentUniqueCount=0;let u={};v.forEachChangedNodeDepthFirst(r=>{r.leafGroup&&(r.childrenMapped=null)});let s=r=>{var d;r.leafGroup?this.bucketRowNode(r,u):(d=r.childrenAfterFilter)==null||d.forEach(s)};return v.executeFromRootNode(s),u}bucketRowNode(v,u){var r;let s=(r=this.pivotColsSvc)==null?void 0:r.columns;(s==null?void 0:s.length)===0?v.childrenMapped=null:v.childrenMapped=this.bucketChildren(v.childrenAfterFilter,s,0,u),v.sibling&&(v.sibling.childrenMapped=v.childrenMapped)}bucketChildren(v,u=[],s,r){let d={},g=u[s];if(v.forEach(m=>{let b=this.valueSvc.getKeyForNode(g,m);if((0,A._missing)(b)&&(b=""),!r[b]){this.currentUniqueCount+=1,r[b]={};let w=this.maxUniqueValues!==-1,k=this.currentUniqueCount>this.maxUniqueValues;if(w&&k)throw Error(F)}d[b]||(d[b]=[]),d[b].push(m)}),s===u.length-1)return d;{let m={};for(let[b,w]of Object.entries(d))m[b]=this.bucketChildren(w,u,s+1,r[b]);return m}}getPivotColumnDefs(){return this.pivotColumnDefs}}p.PivotStage=D},1037:function(x,p,M){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.AbstractSelectionHandle=p.SelectionHandleType=void 0;let A=M(6624);var F;(function(f){f[f.FILL=0]="FILL",f[f.RANGE=1]="RANGE"})(F||(p.SelectionHandleType=F={}));class D extends A.Component{constructor(){super(...arguments),this.changedCalculatedValues=!1,this.dragging=!1,this.shouldDestroyOnEndDragging=!1}postConstruct(){let{dragSvc:v,rangeSvc:u}=this.beans;v.addDragSource({dragStartPixels:0,eElement:this.getGui(),onDragStart:this.onDragStart.bind(this),onDragging:s=>{this.dragging=!0,u.autoScrollService.check(s),this.changedCalculatedValues&&(this.onDrag(s),this.changedCalculatedValues=!1)},onDragStop:s=>{this.dragging=!1,this.onDragEnd(s),this.clearDragProperties(),this.shouldDestroyOnEndDragging&&this.destroy()},onDragCancel:()=>{this.dragging=!1,this.onDragCancel(),this.clearDragProperties()}}),this.addManagedElementListeners(this.getGui(),{mousedown:this.preventRangeExtension.bind(this)})}getLastCellHovered(){return this.lastCellHovered}preventRangeExtension(v){v.stopPropagation()}onDragStart(v){[this.cellHoverListener]=this.addManagedElementListeners(this.beans.ctrlsSvc.get("gridCtrl").getGui(),{mousemove:this.updateValuesOnMove.bind(this)}),document.body.classList.add(this.getDraggingCssClass())}getDraggingCssClass(){return`ag-dragging-${this.type===F.FILL?"fill":"range"}-handle`}updateValuesOnMove(v){let u=(0,A._getCellPositionForEvent)(this.gos,v);!u||this.lastCellHovered&&(0,A._areCellsEqual)(u,this.lastCellHovered)||(this.lastCellHovered=u,this.changedCalculatedValues=!0)}clearDragProperties(){this.clearValues(),this.beans.rangeSvc.autoScrollService.ensureCleared(),document.body.classList.remove(this.getDraggingCssClass())}getType(){return this.type}refresh(v){let u=this.cellCtrl,s=this.getGui(),r=(0,A._last)(this.beans.rangeSvc.getCellRanges()),d=r.startRow,g=r.endRow;if(d&&g&&((0,A._isRowBefore)(g,d)?(this.rangeStartRow=g,this.rangeEndRow=d):(this.rangeStartRow=d,this.rangeEndRow=g)),u!==v||!(0,A._isVisible)(s)){this.cellCtrl=v;let m=v.comp.getParentOfValue();m&&m.appendChild(s)}this.cellRange=r}clearValues(){this.lastCellHovered=void 0,this.removeListeners()}removeListeners(){let v=this.cellHoverListener;v&&(v(),this.cellHoverListener=void 0)}destroy(){var u;if(!this.shouldDestroyOnEndDragging&&this.dragging){(0,A._setDisplayed)(this.getGui(),!1),this.shouldDestroyOnEndDragging=!0;return}this.shouldDestroyOnEndDragging=!1,super.destroy(),this.removeListeners();let v=this.getGui();(u=v.parentElement)==null||u.removeChild(v)}}p.AbstractSelectionHandle=D},9236:function(x,p,M){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.AgFillHandle=void 0;let A=M(6624),F=M(1037),D=M(3978);class f extends F.AbstractSelectionHandle{constructor(){super('<div class="ag-fill-handle"></div>'),this.markedCells=[],this.cellValues=[],this.isUp=!1,this.isLeft=!1,this.isReduce=!1,this.type=F.SelectionHandleType.FILL}updateValuesOnMove(u){super.updateValuesOnMove(u),this.initialXY||(this.initialXY=(0,A._getNormalisedMousePosition)(this.beans,u));let{x:s,y:r}=this.initialXY,{x:d,y:g}=(0,A._getNormalisedMousePosition)(this.beans,u),m=Math.abs(s-d),b=Math.abs(r-g),w=this.getFillHandleDirection(),k;w==="xy"?k=m>b?"x":"y":k=w,k!==this.dragAxis&&(this.dragAxis=k,this.changedCalculatedValues=!0)}onDrag(u){if(!this.initialPosition){let r=this.cellCtrl;if(!r)return;this.initialPosition=r.cellPosition}let s=this.getLastCellHovered();s&&this.markPathFrom(this.initialPosition,s)}onDragEnd(u){if(this.initialXY=null,!this.markedCells.length)return;let s=this.dragAxis==="x",{cellRange:r,rangeStartRow:d,rangeEndRow:g,beans:m}=this,b=r.columns.length,w,{rangeSvc:k,eventSvc:R}=m;if(!this.isUp&&!this.isLeft)w=k.createCellRangeFromCellRangeParams({rowStartIndex:d.rowIndex,rowStartPinned:d.rowPinned,columnStart:r.columns[0],rowEndIndex:s?g.rowIndex:this.lastCellMarked.rowIndex,rowEndPinned:s?g.rowPinned:this.lastCellMarked.rowPinned,columnEnd:s?this.lastCellMarked.column:r.columns[b-1]});else{let T=s?d:this.lastCellMarked;w=k.createCellRangeFromCellRangeParams({rowStartIndex:T.rowIndex,rowStartPinned:T.rowPinned,columnStart:s?this.lastCellMarked.column:r.columns[0],rowEndIndex:g.rowIndex,rowEndPinned:g.rowPinned,columnEnd:r.columns[b-1]})}w&&(R.dispatchEvent({type:"fillStart"}),this.handleValueChanged(r,w,u),k.setCellRanges([w]),R.dispatchEvent({type:"fillEnd",initialRange:r,finalRange:w}))}onDragCancel(){this.initialXY=null,this.markedCells.length&&this.clearMarkedPath()}getFillHandleDirection(){var s;let u=(s=(0,A._getFillHandle)(this.gos))==null?void 0:s.direction;return u?u!=="x"&&u!=="y"&&u!=="xy"?((0,A._warn)(177),"xy"):u:"xy"}handleValueChanged(u,s,r){var Ie;let{rangeSvc:d,gos:g,cellNavigation:m,valueSvc:b}=this.beans,w=d.getRangeEndRow(u),k=d.getRangeStartRow(u),R=d.getRangeEndRow(s),T=d.getRangeStartRow(s),z=this.dragAxis==="y";if(this.isReduce&&!((Ie=(0,A._getFillHandle)(g))!=null&&Ie.suppressClearOnFillReduction)){let ze=z?u.columns:u.columns.filter(xe=>s.columns.indexOf(xe)<0),Ye=z?m.getRowBelow(R):T;Ye&&this.clearCellsInRange(Ye,w,ze);return}let G=[],U=[],X=[],Q=[],oe=!0,le=0,fe=()=>{G.length=0,U.length=0,X.length=0,Q.length=0,le=0},ye=(ze,Ye)=>{let xe=this.isUp?w:k,Te=!1;for(z&&(oe=!0,fe());!Te&&xe;){let Ae=(0,A._getRowNode)(this.beans,xe);if(!Ae)break;z&&ze?ke(G,ze,Ae,()=>!(0,A._isSameRow)(xe,this.isUp?k:w)):Ye&&(oe=!0,fe(),Ye.forEach(Ne=>ke(G,Ne,Ae,()=>Ne!==(this.isLeft?u.columns[0]:(0,A._last)(u.columns))))),Te=(0,A._isSameRow)(xe,this.isUp?T:R),xe=this.isUp?m.getRowAbove(xe):m.getRowBelow(xe)}},ke=(ze,Ye,xe,Te)=>{let Ae,Ne=!1;if(oe)Ae=b.getValue(Ye,xe),U.push(Ae),X.push(b.getValue(Ye,xe,!0)),Q.push(b.formatValue(Ye,xe,Ae)),oe=Te();else{let{value:Re,fromUserFunction:Oe,sourceCol:Ve,sourceRowNode:Ue}=this.processValues({event:r,values:ze,initialValues:U,initialNonAggregatedValues:X,initialFormattedValues:Q,col:Ye,rowNode:xe,idx:le++});if(Ae=Re,Ye.isCellEditable(xe)){let Ee=b.getValue(Ye,xe);if(!Oe){if(Ve){let tt=Ve.getColDef();if(tt.useValueFormatterForExport!==!1&&tt.valueFormatter){let at=b.formatValue(Ve,Ue,Ae);at!=null&&(Ae=at)}}Ye.getColDef().useValueParserForImport!==!1&&(Ae=b.parseValue(Ye,xe,Ve?Ae:(0,A._toStringOrNull)(Ae),Ee))}!Oe||Ee!==Ae?xe.setDataValue(Ye,Ae,"rangeSvc"):Ne=!0}}Ne||ze.push({value:Ae,column:Ye,rowNode:xe})};if(z)u.columns.forEach(ze=>{ye(ze)});else{let ze=this.isLeft?[...s.columns].reverse():s.columns;ye(void 0,ze)}}clearCellsInRange(u,s,r){let d={startRow:u,endRow:s,columns:r,startColumn:r[0]};this.beans.rangeSvc.clearCellRangeCellValues({cellRanges:[d]})}processValues(u){var U;let{event:s,values:r,initialValues:d,initialNonAggregatedValues:g,initialFormattedValues:m,col:b,rowNode:w,idx:k}=u,R=(U=(0,A._getFillHandle)(this.gos))==null?void 0:U.setFillValue,T=this.dragAxis==="y",z;if(T?z=this.isUp?"up":"down":z=this.isLeft?"left":"right",R){let X=this.gos.addGridCommonParams({event:s,values:r.map(({value:oe})=>oe),initialValues:d,initialNonAggregatedValues:g,initialFormattedValues:m,currentIndex:k,currentCellValue:this.beans.valueSvc.getValue(b,w),direction:z,column:b,rowNode:w}),Q=R(X);if(Q!==!1)return{value:Q,fromUserFunction:!0}}let G=!r.some(({value:X})=>{let Q=parseFloat(X);return isNaN(Q)||Q.toString()!==X.toString()});if(s.altKey||!G){if(G&&d.length===1){let le=this.isUp||this.isLeft?-1:1;return{value:parseFloat((0,A._last)(r).value)+1*le,fromUserFunction:!1}}let{value:X,column:Q,rowNode:oe}=r[k%r.length];return{value:X,fromUserFunction:!1,sourceCol:Q,sourceRowNode:oe}}return{value:(0,A._last)((0,D.findLineByLeastSquares)(r.map(({value:X})=>Number(X)))),fromUserFunction:!1}}clearValues(){this.clearMarkedPath(),this.clearCellValues(),this.lastCellMarked=void 0,super.clearValues()}clearMarkedPath(){this.markedCells.forEach(u=>{if(!u.isAlive())return;let{comp:s}=u;s.addOrRemoveCssClass("ag-selection-fill-top",!1),s.addOrRemoveCssClass("ag-selection-fill-right",!1),s.addOrRemoveCssClass("ag-selection-fill-bottom",!1),s.addOrRemoveCssClass("ag-selection-fill-left",!1)}),this.markedCells.length=0,this.isUp=!1,this.isLeft=!1,this.isReduce=!1}clearCellValues(){this.cellValues.length=0}markPathFrom(u,s){if(this.clearMarkedPath(),this.clearCellValues(),this.dragAxis==="y"){if((0,A._isSameRow)(s,u))return;let r=(0,A._isRowBefore)(s,u),{rangeStartRow:d,rangeEndRow:g}=this;r&&(s.rowPinned==d.rowPinned&&s.rowIndex>=d.rowIndex||d.rowPinned!=g.rowPinned&&s.rowPinned==g.rowPinned&&s.rowIndex<=g.rowIndex)?(this.reduceVertical(u,s),this.isReduce=!0):(this.extendVertical(u,s,r),this.isReduce=!1)}else{let r=u.column,d=s.column;if(r===d)return;let g=this.beans.visibleCols.allCols,m=g.indexOf(r),b=g.indexOf(d);b<=m&&b>=g.indexOf(this.cellRange.columns[0])?(this.reduceHorizontal(u,s),this.isReduce=!0):(this.extendHorizontal(u,s,b<m),this.isReduce=!1)}this.lastCellMarked=s}extendVertical(u,s,r){let d=this.beans,{rangeSvc:g,cellNavigation:m}=d,b=u;do{let w=this.cellRange,k=w.columns.length;for(let R=0;R<k;R++){let T=w.columns[R],z={rowIndex:b.rowIndex,rowPinned:b.rowPinned},G=et(pe({},z),{column:T}),U=g.isCellInSpecificRange(G,w),X=(0,A._isSameRow)(b,u);if(r&&(this.isUp=!0),!X){let Q=(0,A._getCellByPosition)(d,G);if(Q){this.markedCells.push(Q);let oe=Q.comp;U||(oe.addOrRemoveCssClass("ag-selection-fill-left",R===0),oe.addOrRemoveCssClass("ag-selection-fill-right",R===k-1)),oe.addOrRemoveCssClass(r?"ag-selection-fill-top":"ag-selection-fill-bottom",(0,A._isSameRow)(b,s))}}}if((0,A._isSameRow)(b,s))break}while(b=r?m.getRowAbove(b):m.getRowBelow(b))}reduceVertical(u,s){let r=u,d=this.beans,g=d.cellNavigation;do{let m=this.cellRange,b=m.columns.length,w=(0,A._isSameRow)(r,s);for(let k=0;k<b;k++){let R={rowIndex:r.rowIndex,rowPinned:r.rowPinned},T=et(pe({},R),{column:m.columns[k]}),z=(0,A._getCellByPosition)(d,T);z&&(this.markedCells.push(z),z.comp.addOrRemoveCssClass("ag-selection-fill-bottom",(0,A._isSameRow)(r,s)))}if(w)break}while(r=g.getRowAbove(r))}extendHorizontal(u,s,r){let d=this.beans,{visibleCols:g,cellNavigation:m}=d,b=g.allCols,w=b.indexOf(r?s.column:u.column),k=b.indexOf(r?this.cellRange.columns[0]:s.column),R=r?0:1,T=b.slice(w+R,k+R),{rangeStartRow:z,rangeEndRow:G}=this;T.forEach(U=>{let X=z,Q=!1;do{Q=(0,A._isSameRow)(X,G);let oe=(0,A._getCellByPosition)(d,{rowIndex:X.rowIndex,rowPinned:X.rowPinned,column:U});if(oe){this.markedCells.push(oe);let le=oe.comp;le.addOrRemoveCssClass("ag-selection-fill-top",(0,A._isSameRow)(X,z)),le.addOrRemoveCssClass("ag-selection-fill-bottom",(0,A._isSameRow)(X,G)),r?(this.isLeft=!0,le.addOrRemoveCssClass("ag-selection-fill-left",U===T[0])):le.addOrRemoveCssClass("ag-selection-fill-right",U===(0,A._last)(T))}X=m.getRowBelow(X)}while(!Q)})}reduceHorizontal(u,s){let r=this.beans,{visibleCols:d,cellNavigation:g}=r,m=d.allCols,b=m.indexOf(s.column),w=m.indexOf(u.column),k=m.slice(b,w),{rangeStartRow:R,rangeEndRow:T}=this;k.forEach(z=>{let G=R,U=!1;do{U=(0,A._isSameRow)(G,T);let X=(0,A._getCellByPosition)(this.beans,{rowIndex:G.rowIndex,rowPinned:G.rowPinned,column:z});X&&(this.markedCells.push(X),X.comp.addOrRemoveCssClass("ag-selection-fill-right",z===k[0])),G=g.getRowBelow(G)}while(!U)})}refresh(u){let s=this.beans.rangeSvc.getCellRanges()[0];if(!s.startRow||!s.endRow){this.destroy();return}super.refresh(u)}}p.AgFillHandle=f},7724:function(x,p,M){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.AgRangeHandle=void 0;let A=M(6624),F=M(1037);class D extends F.AbstractSelectionHandle{constructor(){super('<div class="ag-range-handle"></div>'),this.type=F.SelectionHandleType.RANGE,this.rangeFixed=!1}onDrag(v){let u=this.getLastCellHovered();if(!u)return;let s=this.beans.rangeSvc,r=s.getCellRanges(),d=(0,A._last)(r);this.rangeFixed||(this.fixRangeStartEnd(d),this.rangeFixed=!0),this.endPosition={rowIndex:u.rowIndex,rowPinned:u.rowPinned,column:u.column},r.length===2&&r[0].type===A.CellRangeType.DIMENSION&&d.type===A.CellRangeType.VALUE&&!(0,A._isSameRow)(this.endPosition,s.getRangeEndRow(d))&&s.updateRangeEnd(r[0],et(pe({},this.endPosition),{column:r[0].columns[0]}),!0),s.extendLatestRangeToCell(this.endPosition)}onDragEnd(v){let u=(0,A._last)(this.beans.rangeSvc.getCellRanges());this.fixRangeStartEnd(u),this.rangeFixed=!1}onDragCancel(){this.rangeFixed=!1}fixRangeStartEnd(v){let u=this.beans.rangeSvc,s=u.getRangeStartRow(v),r=u.getRangeEndRow(v),d=v.columns[0];v.startRow=s,v.endRow=r,v.startColumn=d}}p.AgRangeHandle=D},4870:function(x,p,M){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.CellRangeFeature=void 0;let A=M(6624),F=M(1037),D="ag-cell-range-selected",f="ag-cell-range-chart",v="ag-cell-range-single-cell",u="ag-cell-range-chart-category",s="ag-cell-range-handle",r="ag-cell-range-top",d="ag-cell-range-right",g="ag-cell-range-bottom",m="ag-cell-range-left";function b(R){var G;let T=R.get("cellSelection");return T!==void 0?typeof T!="boolean"?((G=T.handle)==null?void 0:G.mode)==="range":!1:R.get("enableRangeHandle")}function w(R){var G;let T=R.get("cellSelection");return T!==void 0?typeof T!="boolean"?((G=T.handle)==null?void 0:G.mode)==="fill":!1:R.get("enableFillHandle")}class k{constructor(T,z){this.beans=T,this.cellCtrl=z,this.rangeSvc=T.rangeSvc}setComp(T,z){this.cellComp=T,this.eGui=z,this.onCellSelectionChanged()}onCellSelectionChanged(){let T=this.cellComp;if(!T)return;let{rangeSvc:z,cellCtrl:G,eGui:U}=this,X=z.getCellRangeCount(G.cellPosition);this.rangeCount=X;let Q=this.getHasChartRange();this.hasChartRange=Q,T.addOrRemoveCssClass(D,X!==0),T.addOrRemoveCssClass(`${D}-1`,X===1),T.addOrRemoveCssClass(`${D}-2`,X===2),T.addOrRemoveCssClass(`${D}-3`,X===3),T.addOrRemoveCssClass(`${D}-4`,X>=4),T.addOrRemoveCssClass(f,Q),(0,A._setAriaSelected)(U,X>0?!0:void 0),T.addOrRemoveCssClass(v,this.isSingleCell()),this.updateRangeBorders(),this.refreshHandle()}updateRangeBorders(){let T=this.getRangeBorders(),z=this.isSingleCell(),G=!z&&T.top,U=!z&&T.right,X=!z&&T.bottom,Q=!z&&T.left,oe=this.cellComp;oe.addOrRemoveCssClass(r,G),oe.addOrRemoveCssClass(d,U),oe.addOrRemoveCssClass(g,X),oe.addOrRemoveCssClass(m,Q)}isSingleCell(){let{rangeSvc:T}=this;return this.rangeCount===1&&!!T&&!T.isMoreThanOneCell()}getHasChartRange(){let{rangeSvc:T}=this;if(!this.rangeCount||!T)return!1;let z=T.getCellRanges();return z.length>0&&z.every(G=>[A.CellRangeType.DIMENSION,A.CellRangeType.VALUE].includes(G.type))}updateRangeBordersIfRangeCount(){this.rangeCount>0&&(this.updateRangeBorders(),this.refreshHandle())}getRangeBorders(){let T=this.beans.gos.get("enableRtl"),z=!1,G=!1,U=!1,X=!1,{rangeSvc:Q,beans:{visibleCols:oe},cellCtrl:{cellPosition:le}}=this,fe=le.column,ye,ke;T?(ye=oe.getColAfter(fe),ke=oe.getColBefore(fe)):(ye=oe.getColBefore(fe),ke=oe.getColAfter(fe));let Ie=Q.getCellRanges().filter(ze=>Q.isCellInSpecificRange(le,ze));ye||(X=!0),ke||(G=!0);for(let ze=0;ze<Ie.length&&!(z&&G&&U&&X);ze++){let Ye=Ie[ze],xe=Q.getRangeStartRow(Ye),Te=Q.getRangeEndRow(Ye);!z&&(0,A._isSameRow)(xe,le)&&(z=!0),!U&&(0,A._isSameRow)(Te,le)&&(U=!0),!X&&ye&&Ye.columns.indexOf(ye)<0&&(X=!0),!G&&ke&&Ye.columns.indexOf(ke)<0&&(G=!0)}return{top:z,right:G,bottom:U,left:X}}refreshHandle(){if(this.beans.context.isDestroyed())return;let T=this.shouldHaveSelectionHandle();this.selectionHandle&&!T&&(this.selectionHandle=this.beans.context.destroyBean(this.selectionHandle)),T&&this.addSelectionHandle(),this.cellComp.addOrRemoveCssClass(s,!!this.selectionHandle)}shouldHaveSelectionHandle(){let T=this.beans.gos,z=this.rangeSvc,G=z.getCellRanges(),U=G.length;if(this.rangeCount<1||U<1)return!1;let X=(0,A._last)(G),{cellPosition:Q}=this.cellCtrl,oe=w(T)&&!this.cellCtrl.column.isSuppressFillHandle(),le=b(T),fe=U===1&&!this.cellCtrl.editing&&(oe||le);if(this.hasChartRange){let ke=G[0].type===A.CellRangeType.DIMENSION&&z.isCellInSpecificRange(Q,G[0]);this.cellComp.addOrRemoveCssClass(u,ke),fe=X.type===A.CellRangeType.VALUE}return fe&&X.endRow!=null&&z.isContiguousRange(X)&&z.isBottomRightCell(X,Q)}addSelectionHandle(){var Q;let{beans:T,rangeSvc:z}=this,G=(0,A._last)(z.getCellRanges()).type,X=w(T.gos)&&(0,A._missing)(G)?F.SelectionHandleType.FILL:F.SelectionHandleType.RANGE;if(this.selectionHandle&&this.selectionHandle.getType()!==X&&(this.selectionHandle=T.context.destroyBean(this.selectionHandle)),!this.selectionHandle){let oe=T.registry.createDynamicBean(X===F.SelectionHandleType.FILL?"fillHandle":"rangeHandle",!1);oe&&(this.selectionHandle=T.context.createBean(oe))}(Q=this.selectionHandle)==null||Q.refresh(this.cellCtrl)}destroy(){this.beans.context.destroyBean(this.selectionHandle)}}p.CellRangeFeature=k},6527:function(x,p,M){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.DragListenerFeature=void 0;let A=M(6624);class F extends A.BeanStub{constructor(f){super(),this.eContainer=f}postConstruct(){let{beans:f,gos:v,eContainer:u}=this,s=f.rangeSvc,r={eElement:u,onDragStart:s.onDragStart.bind(s),onDragStop:s.onDragStop.bind(s),onDragging:s.onDragging.bind(s)},d=f.dragSvc,g=d.addDragSource.bind(d,r),m=d.removeDragSource.bind(d,r);this.addManagedPropertyListeners(["enableRangeSelection","cellSelection"],()=>{(0,A._isCellSelectionEnabled)(v)?g():m()}),this.addDestroyFunc(m),(0,A._isCellSelectionEnabled)(v)&&g()}}p.DragListenerFeature=F},3799:function(x,p){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.rangeSelectionCSS=void 0,p.rangeSelectionCSS=".ag-body-viewport:not(.ag-has-focus) .ag-cell-range-single-cell:not(.ag-cell-inline-editing),.ag-cell-range-selected.ag-cell-range-chart,.ag-cell-range-selected:not(.ag-cell-focus){background-color:var(--ag-range-selection-background-color);&.ag-cell-range-chart{background-color:var(--ag-range-selection-chart-background-color)!important;&.ag-cell-range-chart-category{background-color:var(--ag-range-selection-chart-category-background-color)!important}}}.ag-cell-range-selected-1.ag-cell-range-chart,.ag-cell-range-selected-1:not(.ag-cell-focus),.ag-root:not(.ag-context-menu-open) .ag-body-viewport:not(.ag-has-focus) .ag-cell-range-selected-1:not(.ag-cell-inline-editing){background-color:var(--ag-range-selection-background-color)}.ag-cell-range-selected-2.ag-cell-range-chart,.ag-cell-range-selected-2:not(.ag-cell-focus){background-image:linear-gradient(var(--ag-range-selection-background-color),var(--ag-range-selection-background-color))}.ag-cell-range-selected-3.ag-cell-range-chart,.ag-cell-range-selected-3:not(.ag-cell-focus){background-image:linear-gradient(var(--ag-range-selection-background-color),var(--ag-range-selection-background-color)),linear-gradient(var(--ag-range-selection-background-color),var(--ag-range-selection-background-color))}.ag-cell-range-selected-4.ag-cell-range-chart,.ag-cell-range-selected-4:not(.ag-cell-focus){background-image:linear-gradient(var(--ag-range-selection-background-color),var(--ag-range-selection-background-color)),linear-gradient(var(--ag-range-selection-background-color),var(--ag-range-selection-background-color)),linear-gradient(var(--ag-range-selection-background-color),var(--ag-range-selection-background-color))}.ag-cell.ag-cell-range-selected:not(.ag-cell-range-single-cell){&.ag-cell-range-top{border-top-color:var(--ag-range-selection-border-color);border-top-style:var(--ag-range-selection-border-style)}&.ag-cell-range-right{border-right-color:var(--ag-range-selection-border-color);border-right-style:var(--ag-range-selection-border-style)}&.ag-cell-range-bottom{border-bottom-color:var(--ag-range-selection-border-color);border-bottom-style:var(--ag-range-selection-border-style)}&.ag-cell-range-left{border-left-color:var(--ag-range-selection-border-color);border-left-style:var(--ag-range-selection-border-style)}}.ag-cell.ag-selection-fill-top,.ag-cell.ag-selection-fill-top.ag-cell-range-selected{border-top:1px dashed;border-top-color:var(--ag-range-selection-border-color)}:where(.ag-ltr) .ag-cell.ag-selection-fill-right,:where(.ag-ltr) .ag-cell.ag-selection-fill-right.ag-cell-range-selected{border-right:1px dashed var(--ag-range-selection-border-color)!important}:where(.ag-rtl) .ag-cell.ag-selection-fill-right,:where(.ag-rtl) .ag-cell.ag-selection-fill-right.ag-cell-range-selected{border-left:1px dashed var(--ag-range-selection-border-color)!important}.ag-cell.ag-selection-fill-bottom,.ag-cell.ag-selection-fill-bottom.ag-cell-range-selected{border-bottom:1px dashed;border-bottom-color:var(--ag-range-selection-border-color)}:where(.ag-ltr) .ag-cell.ag-selection-fill-left,:where(.ag-ltr) .ag-cell.ag-selection-fill-left.ag-cell-range-selected{border-left:1px dashed var(--ag-range-selection-border-color)!important}:where(.ag-rtl) .ag-cell.ag-selection-fill-left,:where(.ag-rtl) .ag-cell.ag-selection-fill-left.ag-cell-range-selected{border-right:1px dashed var(--ag-range-selection-border-color)!important}.ag-fill-handle,.ag-range-handle{background-color:var(--ag-range-selection-border-color);bottom:-1px;height:6px;position:absolute;width:6px}:where(.ag-ltr) .ag-fill-handle,:where(.ag-ltr) .ag-range-handle{right:-1px}:where(.ag-rtl) .ag-fill-handle,:where(.ag-rtl) .ag-range-handle{left:-1px}.ag-fill-handle{cursor:cell}:where(.ag-ltr) .ag-range-handle{cursor:nwse-resize}:where(.ag-rtl) .ag-range-handle{cursor:nesw-resize}"},7876:function(x,p){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.clearRangeSelection=p.addCellRange=p.getCellRanges=void 0;function M(D){var f,v;return(v=(f=D.rangeSvc)==null?void 0:f.getCellRanges())!=null?v:null}p.getCellRanges=M;function A(D,f){var v;(v=D.rangeSvc)==null||v.addCellRange(f)}p.addCellRange=A;function F(D){var f;(f=D.rangeSvc)==null||f.removeAllCellRanges()}p.clearRangeSelection=F},266:function(x,p,M){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.RangeSelectionModule=p.CellSelectionModule=void 0;let A=M(6624),F=M(9206),D=M(7205),f=M(9236),v=M(7724),u=M(3799),s=M(7876),r=M(1455);p.CellSelectionModule={moduleName:"CellSelection",version:D.VERSION,beans:[r.RangeService],dynamicBeans:{fillHandle:f.AgFillHandle,rangeHandle:v.AgRangeHandle},apiFunctions:{getCellRanges:s.getCellRanges,addCellRange:s.addCellRange,clearRangeSelection:s.clearRangeSelection,clearCellSelection:s.clearRangeSelection},dependsOn:[F.EnterpriseCoreModule,A._KeyboardNavigationModule,A._DragModule],css:[u.rangeSelectionCSS]},p.RangeSelectionModule={moduleName:"RangeSelection",version:D.VERSION,dependsOn:[p.CellSelectionModule]}},1455:function(x,p,M){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.RangeService=void 0;let A=M(6624),F=M(4870),D=M(6527);class f extends A.BeanStub{constructor(){super(...arguments),this.beanName="rangeSvc",this.cellRanges=[],this.bodyScrollListener=this.onBodyScroll.bind(this),this.dragging=!1,this.intersectionRange=!1}wireBeans(u){this.rowModel=u.rowModel,this.dragSvc=u.dragSvc,this.colModel=u.colModel,this.visibleCols=u.visibleCols,this.cellNavigation=u.cellNavigation,this.pinnedRowModel=u.pinnedRowModel,this.ctrlsSvc=u.ctrlsSvc}postConstruct(){let u=this.onColumnsChanged.bind(this),s=()=>this.removeAllCellRanges(),r=this.refreshLastRangeStart.bind(this);this.addManagedEventListeners({newColumnsLoaded:u,columnVisible:u,columnValueChanged:u,columnPivotModeChanged:s,columnRowGroupChanged:s,columnPivotChanged:s,columnGroupOpened:r,columnMoved:r,columnPinned:r}),this.ctrlsSvc.whenReady(this,d=>{let g=d.gridBodyCtrl;this.autoScrollService=new A.AutoScrollService({scrollContainer:g.eBodyViewport,scrollAxis:"xy",getVerticalPosition:()=>g.scrollFeature.getVScrollPosition().top,setVerticalPosition:m=>g.scrollFeature.setVerticalScrollPosition(m),getHorizontalPosition:()=>g.scrollFeature.getHScrollPosition().left,setHorizontalPosition:m=>g.scrollFeature.setHorizontalScrollPosition(m),shouldSkipVerticalScroll:()=>!(0,A._isDomLayout)(this.gos,"normal"),shouldSkipHorizontalScroll:()=>!g.scrollFeature.isHorizontalScrollShowing()})})}onColumnsChanged(){this.refreshLastRangeStart();let u=this.visibleCols.allCols;this.cellRanges.forEach(r=>{let d=r.columns;r.columns=r.columns.filter(m=>m.isVisible()&&u.indexOf(m)!==-1),!(0,A._areEqual)(d,r.columns)&&this.dispatchChangedEvent(!1,!0,r.id)});let s=this.cellRanges.length;this.cellRanges=this.cellRanges.filter(r=>r.columns.length>0),s>this.cellRanges.length&&this.dispatchChangedEvent(!1,!0)}refreshLastRangeStart(){let u=(0,A._last)(this.cellRanges);u&&this.refreshRangeStart(u)}isContiguousRange(u){let s=u.columns;if(!s.length)return!1;let r=this.visibleCols.allCols,d=s.map(g=>r.indexOf(g)).sort((g,m)=>g-m);return(0,A._last)(d)-d[0]+1===s.length}getRangeStartRow(u){var d,g;return u.startRow&&u.endRow?(0,A._isRowBefore)(u.startRow,u.endRow)?u.startRow:u.endRow:{rowIndex:0,rowPinned:((g=(d=this.pinnedRowModel)==null?void 0:d.getPinnedTopRowCount())!=null?g:0)>0?"top":null}}getRangeEndRow(u){var d,g;if(u.startRow&&u.endRow)return(0,A._isRowBefore)(u.startRow,u.endRow)?u.endRow:u.startRow;let s=(g=(d=this.pinnedRowModel)==null?void 0:d.getPinnedBottomRowCount())!=null?g:0;return s>0?{rowIndex:s-1,rowPinned:"bottom"}:{rowIndex:this.rowModel.getRowCount()-1,rowPinned:null}}setRangeToCell(u,s=!1){if(!(0,A._isCellSelectionEnabled)(this.gos))return;let r=this.calculateColumnsBetween(u.column,u.column);if(!r)return;((0,A._getSuppressMultiRanges)(this.gos)||!s||(0,A._missing)(this.cellRanges))&&this.removeAllCellRanges(!0);let g={rowIndex:u.rowIndex,rowPinned:u.rowPinned},m={startRow:g,endRow:g,columns:r,startColumn:u.column};this.cellRanges.push(m),this.setNewestRangeStartCell(u),this.onDragStop(),this.dispatchChangedEvent(!0,!0)}extendLatestRangeToCell(u){if(this.isEmpty()||!this.newestRangeStartCell)return;let s=(0,A._last)(this.cellRanges);this.updateRangeEnd(s,u)}updateRangeEnd(u,s,r=!1){let d=s.column,g=this.calculateColumnsBetween(u.startColumn,d);!g||this.isLastCellOfRange(u,s)||(u.columns=g,u.endRow={rowIndex:s.rowIndex,rowPinned:s.rowPinned},r||this.dispatchChangedEvent(!0,!0,u.id))}refreshRangeStart(u){let{startColumn:s,columns:r}=u,d=(k,R)=>{let T=u.columns.filter(z=>z!==k);k?(u.startColumn=k,u.columns=R?[k,...T]:[...T,k]):u.columns=T},{left:g,right:m}=this.getRangeEdgeColumns(u);if(s===r[0]&&s!==g){d(g,!0);return}if(s===(0,A._last)(r)&&s===m){d(m,!1);return}}getRangeEdgeColumns(u){let s=this.visibleCols.allCols,r=u.columns.map(d=>s.indexOf(d)).filter(d=>d>-1).sort((d,g)=>d-g);return{left:s[r[0]],right:s[(0,A._last)(r)]}}extendLatestRangeInDirection(u){if(this.isEmpty()||!this.newestRangeStartCell)return;let s=u.key,r=u.ctrlKey||u.metaKey,d=(0,A._last)(this.cellRanges),g=this.newestRangeStartCell,m=d.columns[0],b=(0,A._last)(d.columns),w=d.endRow.rowIndex,k=d.endRow.rowPinned,T={column:g.column===m?b:m,rowIndex:w,rowPinned:k},z=this.cellNavigation.getNextCellToFocus(s,T,r);if(z)return this.setCellRange({rowStartIndex:g.rowIndex,rowStartPinned:g.rowPinned,rowEndIndex:z.rowIndex,rowEndPinned:z.rowPinned,columnStart:g.column,columnEnd:z.column}),z}setCellRange(u){(0,A._isCellSelectionEnabled)(this.gos)&&(this.removeAllCellRanges(!0),this.addCellRange(u))}setCellRanges(u){(0,A._areEqual)(this.cellRanges,u)||this.verifyCellRanges(this.gos)&&(this.removeAllCellRanges(!0),u.forEach(s=>{s.columns&&s.startRow&&this.setNewestRangeStartCell({rowIndex:s.startRow.rowIndex,rowPinned:s.startRow.rowPinned,column:s.columns[0]}),this.cellRanges.push(s)}),this.dispatchChangedEvent(!1,!0))}setNewestRangeStartCell(u){this.newestRangeStartCell=u}clearCellRangeCellValues(u){let{cellRanges:s}=u,{cellEventSource:r="rangeSvc",dispatchWrapperEvents:d,wrapperEventSource:g="deleteKey"}=u;d&&(this.eventSvc.dispatchEvent({type:"cellSelectionDeleteStart",source:g}),this.eventSvc.dispatchEvent({type:"rangeDeleteStart",source:g})),s||(s=this.cellRanges),s.forEach(m=>{this.forEachRowInRange(m,b=>{let w=(0,A._getRowNode)(this.beans,b);if(w)for(let k=0;k<m.columns.length;k++){let R=this.colModel.getCol(m.columns[k]);if(!R||!R.isCellEditable(w))continue;let T=this.beans.valueSvc.getDeleteValue(R,w);w.setDataValue(R,T,r)}})}),d&&(this.eventSvc.dispatchEvent({type:"cellSelectionDeleteEnd",source:g}),this.eventSvc.dispatchEvent({type:"rangeDeleteEnd",source:g}))}createCellRangeFromCellRangeParams(u){return this.createPartialCellRangeFromRangeParams(u,!1)}createPartialCellRangeFromRangeParams(u,s){let r,d=!1;if(u.columns)r=u.columns.map(b=>this.colModel.getCol(b)).filter(b=>b);else{let b=this.colModel.getCol(u.columnStart),w=this.colModel.getCol(u.columnEnd);if(!b||!w)return;r=this.calculateColumnsBetween(b,w),r&&r.length&&(d=r[0]!==b)}if(!r||!s&&r.length===0)return;let g=u.rowStartIndex!=null?{rowIndex:u.rowStartIndex,rowPinned:u.rowStartPinned||null}:void 0,m=u.rowEndIndex!=null?{rowIndex:u.rowEndIndex,rowPinned:u.rowEndPinned||null}:void 0;return{startRow:g,endRow:m,columns:r,startColumn:d?(0,A._last)(r):r[0]}}verifyCellRanges(u){let s=(0,A._isUsingNewCellSelectionAPI)(u)&&(0,A._getSuppressMultiRanges)(u)&&this.cellRanges.length>0;return s&&(0,A._warn)(93),!s}addCellRange(u){let s=this.gos;if(!(0,A._isCellSelectionEnabled)(s)||!this.verifyCellRanges(s))return;let r=this.createCellRangeFromCellRangeParams(u);r&&(r.startRow&&this.setNewestRangeStartCell({rowIndex:r.startRow.rowIndex,rowPinned:r.startRow.rowPinned,column:r.startColumn}),this.cellRanges.push(r),this.dispatchChangedEvent(!1,!0,r.id))}getCellRanges(){return this.cellRanges}isEmpty(){return this.cellRanges.length===0}isMoreThanOneCell(){let u=this.cellRanges.length;if(u===0)return!1;if(u>1)return!0;let s=this.cellRanges[0],r=this.getRangeStartRow(s),d=this.getRangeEndRow(s);return r.rowPinned!==d.rowPinned||r.rowIndex!==d.rowIndex||s.columns.length!==1}areAllRangesAbleToMerge(){let u=new Map;if(this.cellRanges.length<=1)return!0;this.cellRanges.forEach(d=>{this.forEachRowInRange(d,g=>{let m=`${g.rowPinned||"normal"}_${g.rowIndex}`,b=u.get(m),w=d.columns.map(k=>k.getId());if(b){let k=w.filter(R=>b.indexOf(R)===-1);b.push(...k)}else u.set(m,w)})});let r;for(let d of u.values()){let g=d.sort().join();if(r===void 0){r=g;continue}if(r!==g)return!1}return!0}forEachRowInRange(u,s){let r=this.getRangeStartRow(u),d=this.getRangeEndRow(u),g=r;for(;g&&(s(g),!(0,A._isSameRow)(g,d));)g=this.cellNavigation.getRowBelow(g)}removeAllCellRanges(u){this.isEmpty()||(this.onDragStop(),this.cellRanges.length=0,u||this.dispatchChangedEvent(!1,!0))}onBodyScroll(){this.dragging&&this.lastMouseEvent&&this.onDragging(this.lastMouseEvent)}isCellInAnyRange(u){return this.getCellRangeCount(u)>0}isCellInSpecificRange(u,s){let r=s.columns!==null&&s.columns.includes(u.column),d=this.isRowInRange(u.rowIndex,u.rowPinned,s);return r&&d}isLastCellOfRange(u,s){let{startRow:r,endRow:d}=u,g=(0,A._isRowBefore)(r,d)?d:r,m=s.rowIndex===g.rowIndex&&s.rowPinned===g.rowPinned,b=u.columns[0],w=(0,A._last)(u.columns),k=u.startColumn===b?w:b;return s.column===k&&m}isBottomRightCell(u,s){let r=this.visibleCols.allCols,d=u.columns.map(R=>r.indexOf(R)).sort((R,T)=>R-T),{startRow:g,endRow:m}=u,b=(0,A._isRowBefore)(g,m)?m:g,w=r.indexOf(s.column)===(0,A._last)(d),k=s.rowIndex===b.rowIndex&&(0,A._makeNull)(s.rowPinned)===(0,A._makeNull)(b.rowPinned);return w&&k}getCellRangeCount(u){return this.isEmpty()?0:this.cellRanges.filter(s=>this.isCellInSpecificRange(u,s)).length}isRowInRange(u,s,r){let d=this.getRangeStartRow(r),g=this.getRangeEndRow(r),m={rowIndex:u,rowPinned:s||null},b=m.rowIndex===d.rowIndex&&m.rowPinned==d.rowPinned,w=m.rowIndex===g.rowIndex&&m.rowPinned==g.rowPinned;if(b||w)return!0;let k=!(0,A._isRowBefore)(m,d),R=(0,A._isRowBefore)(m,g);return k&&R}getDraggingRange(){return this.draggingRange}onDragStart(u){var R;if(!(0,A._isCellSelectionEnabled)(this.gos))return;let{ctrlKey:s,metaKey:r,shiftKey:d}=u,g=s||r,b=!(0,A._getSuppressMultiRanges)(this.gos)?g:!1,w=d&&!!((R=this.cellRanges)!=null&&R.length);!b&&(!w||(0,A._exists)((0,A._last)(this.cellRanges).type))&&this.removeAllCellRanges(!0);let k=this.dragSvc.startTarget;if(k&&this.updateValuesOnMove(k),!!this.lastCellHovered){if(this.dragging=!0,this.lastMouseEvent=u,this.intersectionRange=b&&this.getCellRangeCount(this.lastCellHovered)>1,w||this.setNewestRangeStartCell(this.lastCellHovered),this.cellRanges.length>0)this.draggingRange=(0,A._last)(this.cellRanges);else{let T={rowIndex:this.lastCellHovered.rowIndex,rowPinned:this.lastCellHovered.rowPinned};this.draggingRange={startRow:T,endRow:T,columns:[this.lastCellHovered.column],startColumn:this.newestRangeStartCell.column},this.cellRanges.push(this.draggingRange)}this.ctrlsSvc.getGridBodyCtrl().eBodyViewport.addEventListener("scroll",this.bodyScrollListener,{passive:!0}),this.dispatchChangedEvent(!0,!1,this.draggingRange.id)}}intersectLastRange(u){if(u&&this.dragging||(0,A._getSuppressMultiRanges)(this.gos)||this.isEmpty())return;let s=(0,A._last)(this.cellRanges),r=this.getRangeStartRow(s),d=this.getRangeEndRow(s),g=[];this.cellRanges.slice(0,-1).forEach(m=>{let b=this.getRangeStartRow(m),w=this.getRangeEndRow(m),k=m.columns,R=k.filter(z=>s.columns.indexOf(z)===-1);if(R.length===k.length){g.push(m);return}if((0,A._isRowBefore)(d,b)||(0,A._isRowBefore)(w,r)){g.push(m);return}let T=g.length;if((0,A._isRowBefore)(b,r)){let z={columns:[...k],startColumn:s.startColumn,startRow:pe({},b),endRow:this.cellNavigation.getRowAbove(r)};g.push(z)}if(R.length>0){let z={columns:R,startColumn:R.includes(s.startColumn)?s.startColumn:R[0],startRow:this.rowMax([pe({},r),pe({},b)]),endRow:this.rowMin([pe({},d),pe({},w)])};g.push(z)}(0,A._isRowBefore)(d,w)&&g.push({columns:[...k],startColumn:s.startColumn,startRow:this.cellNavigation.getRowBelow(d),endRow:pe({},w)}),g.length-T===1&&(g[g.length-1].id=m.id)}),this.cellRanges=g,u&&this.dispatchChangedEvent(!1,!0)}rowMax(u){let s;return u.forEach(r=>{(s===void 0||(0,A._isRowBefore)(s,r))&&(s=r)}),s}rowMin(u){let s;return u.forEach(r=>{(s===void 0||(0,A._isRowBefore)(r,s))&&(s=r)}),s}updateValuesOnMove(u){let s=(0,A._getCellCtrlForEventTarget)(this.gos,u),r=s==null?void 0:s.cellPosition;if(this.cellHasChanged=!1,!(!r||this.lastCellHovered&&(0,A._areCellsEqual)(r,this.lastCellHovered))){if(s!=null&&s.editing){this.dragSvc.cancelDrag(u);return}this.lastCellHovered&&(this.cellHasChanged=!0),this.lastCellHovered=r}}onDragging(u){if(!this.dragging||!u)return;this.updateValuesOnMove(u.target),this.lastMouseEvent=u;let s=this.lastCellHovered,r=m=>s&&s.rowPinned===m&&this.newestRangeStartCell.rowPinned===m,d=r("top")||r("bottom");if(this.autoScrollService.check(u,d),!this.cellHasChanged)return;let g=this.calculateColumnsBetween(this.newestRangeStartCell.column,s.column);g&&(this.draggingRange.endRow={rowIndex:s.rowIndex,rowPinned:s.rowPinned},this.draggingRange.columns=g,this.dispatchChangedEvent(!1,!1,this.draggingRange.id))}onDragStop(){if(!this.dragging)return;let{id:u}=this.draggingRange;this.autoScrollService.ensureCleared(),this.ctrlsSvc.getGridBodyCtrl().eBodyViewport.removeEventListener("scroll",this.bodyScrollListener),this.lastMouseEvent=null,this.dragging=!1,this.draggingRange=void 0,this.lastCellHovered=void 0,this.intersectionRange&&(this.intersectionRange=!1,this.intersectLastRange()),this.dispatchChangedEvent(!1,!0,u)}dispatchChangedEvent(u,s,r){this.eventSvc.dispatchEvent({type:"cellSelectionChanged",started:u,finished:s,id:r}),this.eventSvc.dispatchEvent({type:"rangeSelectionChanged",started:u,finished:s,id:r})}calculateColumnsBetween(u,s){let r=this.visibleCols.allCols,d=u===s,g=r.indexOf(u);if(g<0){(0,A._warn)(178,{colId:u.getId()});return}let m=d?g:r.indexOf(s);if(m<0){(0,A._warn)(178,{colId:s.getId()});return}if(d)return[u];let b=Math.min(g,m),w=b===g?m:g,k=[];for(let R=b;R<=w;R++)k.push(r[R]);return k}createDragListenerFeature(u){return new D.DragListenerFeature(u)}createCellRangeFeature(u,s){return new F.CellRangeFeature(u,s)}}p.RangeService=f},3978:function(x,p){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.findLineByLeastSquares=void 0;function M(A){let F=A.length,D=0;if(F<=1)return A;for(let b=0;b<A.length;b++){let w=A[b],k=w.toString().split("e-");if(k.length>1){D=Math.max(D,parseInt(k[1],10));continue}Math.floor(w)!==w&&(D=Math.max(D,w.toString().split(".")[1].length))}let f=0,v=0,u=0,s=0,r=0;for(let b=0;b<F;b++)r=A[b],f+=b,v+=r,s+=b*b,u+=b*r;let d=(F*u-f*v)/(F*s-f*f),g=v/F-d*f/F,m=[];for(let b=0;b<=F;b++)m.push(parseFloat((b*d+g).toFixed(D)));return m}p.findLineByLeastSquares=M},9617:function(x,p,M){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.RichSelectCellEditor=void 0;let A=M(6624),F=M(2005);class D extends A.PopupComponent{constructor(){super('<div class="ag-cell-edit-wrapper"></div>')}init(v){this.params=v;let{cellStartedEdit:u,values:s}=v;(0,A._missing)(s)&&(0,A._warn)(180);let{params:r,valuesPromise:d}=this.buildRichSelectParams(),g=this.createManagedBean(new F.AgRichSelect(r));this.richSelect=g,g.addCssClass("ag-cell-editor"),this.appendChild(g),d&&d.then(m=>{g.setValueList({valueList:m,refresh:!0});let b=this.getSearchStringCallback(m);b&&g.setSearchStringCreator(b)}),this.addManagedListeners(g,{fieldPickerValueSelected:this.onEditorPickerValueSelected.bind(this)}),this.focusAfterAttached=u}onEditorPickerValueSelected(v){setTimeout(()=>this.params.stopEditing(!v.fromEnterKey))}buildRichSelectParams(){let v=this.params,{cellRenderer:u,cellHeight:s,value:r,values:d,formatValue:g,searchDebounceDelay:m,valueListGap:b,valueListMaxHeight:w,valueListMaxWidth:k,allowTyping:R,filterList:T,searchType:z,highlightMatch:G,valuePlaceholder:U,eventKey:X,multiSelect:Q,suppressDeselectAll:oe,suppressMultiSelectPillRenderer:le}=v,fe={value:r,cellRenderer:u,cellRowHeight:s,searchDebounceDelay:m,valueFormatter:g,pickerAriaLabelKey:"ariaLabelRichSelectField",pickerAriaLabelValue:"Rich Select Field",pickerType:"virtual-list",pickerGap:b,allowTyping:R,filterList:T,searchType:z,highlightMatch:G,maxPickerHeight:w,maxPickerWidth:k,placeholder:U,initialInputValue:(X==null?void 0:X.length)===1?X:void 0,multiSelect:Q,suppressDeselectAll:oe,suppressMultiSelectPillRenderer:le},ye,ke;return typeof d=="function"?ye=d(v):ye=d!=null?d:[],Array.isArray(ye)?(fe.valueList=ye,fe.searchStringCreator=this.getSearchStringCallback(ye)):ke=ye,Q&&R&&(v.allowTyping=fe.allowTyping=!1,(0,A._warn)(181)),{params:fe,valuesPromise:ke}}getSearchStringCallback(v){let u=this.params,{colDef:s}=u;if(typeof v[0]!="object"||!s.keyCreator)return;let{column:r,node:d,data:g}=u;return m=>m.map(b=>{let w=this.gos.addGridCommonParams({value:b,colDef:s,column:r,node:d,data:g});return s.keyCreator(w)})}afterGuiAttached(){let{focusAfterAttached:v,params:u}=this;setTimeout(()=>{if(!this.isAlive())return;let s=this.richSelect;if(v){let d=s.getFocusableElement();d.focus();let{allowTyping:g,eventKey:m}=this.params;g&&(!m||m.length!==1)&&d.select()}s.showPicker();let{eventKey:r}=u;r&&(r==null?void 0:r.length)===1&&s.searchTextFromString(r)})}focusIn(){this.richSelect.getFocusableElement().focus()}getValue(){return this.richSelect.getValue()}isPopup(){return!1}}p.RichSelectCellEditor=D},9327:function(x,p,M){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.RichSelectModule=void 0;let A=M(6624),F=M(9206),D=M(7205),f=M(9617);p.RichSelectModule={moduleName:"RichSelect",version:D.VERSION,beans:[],userComponents:{agRichSelect:f.RichSelectCellEditor,agRichSelectCellEditor:f.RichSelectCellEditor},icons:{richSelectOpen:"small-down",richSelectRemove:"cancel"},dependsOn:[F.EnterpriseCoreModule,A._EditCoreModule]}},9449:function(x,p,M){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.AgGridHeaderDropZonesSelector=p.AgGridHeaderDropZones=void 0;let A=M(6624),F=M(6491),D=M(4552);class f extends A.Component{constructor(){super()}postConstruct(){this.setGui(this.createNorthPanel());let u=this.onRowGroupChanged.bind(this);this.addManagedEventListeners({columnRowGroupChanged:u,newColumnsLoaded:u}),this.addManagedPropertyListener("rowGroupPanelShow",u),this.addManagedPropertyListener("pivotPanelShow",()=>this.onPivotPanelShow()),this.onRowGroupChanged()}createNorthPanel(){let u=document.createElement("div");u.classList.add("ag-column-drop-wrapper"),(0,A._setAriaRole)(u,"presentation");let s=new D.RowGroupDropZonePanel(!0);this.rowGroupComp=this.createManagedBean(s);let r=new F.PivotDropZonePanel(!0);this.pivotComp=this.createManagedBean(r),u.appendChild(s.getGui()),u.appendChild(r.getGui());let d=this.onDropPanelVisible.bind(this);return this.addManagedListeners(s,{displayChanged:d}),this.addManagedListeners(r,{displayChanged:d}),this.onDropPanelVisible(),u}onDropPanelVisible(){let{rowGroupComp:u,pivotComp:s}=this,r=u.isDisplayed()&&s.isDisplayed(),d="ag-column-drop-horizontal-half-width";u.addOrRemoveCssClass(d,r),s.addOrRemoveCssClass(d,r)}onRowGroupChanged(){var r,d;let u=this.rowGroupComp;if(!u)return;let s=this.gos.get("rowGroupPanelShow");if(s==="always")u.setDisplayed(!0);else if(s==="onlyWhenGrouping"){let g=((d=(r=this.beans.rowGroupColsSvc)==null?void 0:r.columns)==null?void 0:d.length)!==0;u.setDisplayed(g)}else u.setDisplayed(!1)}onPivotPanelShow(){let u=this.pivotComp;if(!u)return;let s=this.gos.get("pivotPanelShow");if(s==="always")u.setDisplayed(!0);else if(s==="onlyWhenPivoting"){let r=this.beans.colModel.isPivotActive();u.setDisplayed(r)}else u.setDisplayed(!1)}}p.AgGridHeaderDropZones=f,p.AgGridHeaderDropZonesSelector={selector:"AG-GRID-HEADER-DROP-ZONES",component:f}},8322:function(x,p,M){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.BaseDropZonePanel=void 0;let A=M(6624),F=M(9733),D=M(3154);class f extends F.PillDropZonePanel{constructor(u,s){super(u),this.dropZonePurpose=s,this.addElementClasses(this.getGui(),this.dropZonePurpose.toLowerCase())}init(u){super.init(u),this.addManagedEventListeners({newColumnsLoaded:this.refreshGui.bind(this)}),this.addManagedPropertyListeners(["functionsReadOnly","rowGroupPanelSuppressSort","groupLockGroupColumns"],this.refreshGui.bind(this))}getItems(u){var s;return(s=u.columns)!=null?s:[]}isInterestedIn(u){return u===A.DragSourceType.HeaderCell||u===A.DragSourceType.ToolPanel}minimumAllowedNewInsertIndex(){var g;let{gos:u,rowGroupColsSvc:s}=this.beans,r=u.get("groupLockGroupColumns"),d=(g=s==null?void 0:s.columns.length)!=null?g:0;return r===-1?d:Math.min(r,d)}showOrHideColumnOnExit(u){return this.isRowGroupPanel()&&(0,A._shouldUpdateColVisibilityAfterGroup)(this.gos,!0)&&!u.fromNudge}handleDragEnterEnd(u){if(this.showOrHideColumnOnExit(u)){let d=u.dragSource.getDragItem().columns;this.setColumnsVisible(d,!1,"uiColumnDragged")}}handleDragLeaveEnd(u){if(this.showOrHideColumnOnExit(u)){let r=u.dragSource.getDragItem();this.setColumnsVisible(r.columns,!0,"uiColumnDragged")}}setColumnsVisible(u,s,r){if(u){let d=u.filter(g=>!g.getColDef().lockVisible);this.beans.colModel.setColsVisible(d,s,r)}}isRowGroupPanel(){return this.dropZonePurpose==="rowGroup"}createPillComponent(u,s,r,d){return new D.DropZoneColumnComp(u,s,r,this.dropZonePurpose,d)}}p.BaseDropZonePanel=f},3154:function(x,p,M){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.DropZoneColumnComp=void 0;let A=M(6624),F=M(3173),D=M(7904),f=M(8105);class v extends F.PillDragComp{constructor(r,d,g,m,b){super(d,g,b),this.column=r,this.dropZonePurpose=m,this.eSortIndicator=A.RefPlaceholder,this.popupShowing=!1}postConstruct(){let{sortSvc:r,colNames:d}=this.beans;this.template=`
            <span role="option">
                <span data-ref="eDragHandle" class="ag-drag-handle ag-column-drop-cell-drag-handle" role="presentation"></span>
                <span data-ref="eText" class="ag-column-drop-cell-text" aria-hidden="true"></span>
                ${r?'<ag-sort-indicator data-ref="eSortIndicator"></ag-sort-indicator>':""}
                <span data-ref="eButton" class="ag-column-drop-cell-button" role="presentation"></span>
            </span>
        `,r&&(this.agComponents=[r.getSortIndicatorSelector()]),this.displayName=d.getDisplayNameForColumn(this.column,"columnDrop"),super.postConstruct(),r&&(this.setupSort(),this.addManagedEventListeners({sortChanged:()=>{this.setupAria()}})),this.isGroupingZone()&&this.addManagedPropertyListener("groupLockGroupColumns",()=>{this.refreshRemove(),this.refreshDraggable(),this.setupAria()})}getItem(){return this.column}getDisplayName(){return this.displayName}getTooltip(){return this.column.getColDef().headerTooltip}addAdditionalAriaInstructions(r,d){let g=this.gos.get("rowGroupPanelSuppressSort"),m=this.gos.get("functionsReadOnly");if(this.isAggregationZone()&&!m){let b=d("ariaDropZoneColumnValueItemDescription","Press ENTER to change the aggregation type");r.push(b)}if(this.isGroupingZone()&&this.column.isSortable()&&!g){let b=d("ariaDropZoneColumnGroupItemDescription","Press ENTER to sort");r.push(b)}super.addAdditionalAriaInstructions(r,d)}isDraggable(){return this.isReadOnly()}isRemovable(){return this.isReadOnly()}isReadOnly(){return!this.isGroupingAndLocked()&&!this.gos.get("functionsReadOnly")}getAriaDisplayName(){let r=this.getLocaleTextFunc(),{name:d,aggFuncName:g}=this.getColumnAndAggFuncName(),m=r("ariaDropZoneColumnComponentAggFuncSeparator"," of "),b={asc:r("ariaDropZoneColumnComponentSortAscending","ascending"),desc:r("ariaDropZoneColumnComponentSortDescending","descending")},w=this.column.getSort(),k=this.gos.get("rowGroupPanelSuppressSort");return[g&&`${g}${m}`,d,this.isGroupingZone()&&!k&&w&&`, ${b[w]}`].filter(R=>!!R).join("")}getColumnAndAggFuncName(){let r=this.displayName,d="";if(this.isAggregationZone()){let g=this.column.getAggFunc(),m=typeof g=="string"?g:"agg";d=this.getLocaleTextFunc()(m,m)}return{name:r,aggFuncName:d}}setupSort(){if(!(!this.column.isSortable()||!this.isGroupingZone())&&!this.gos.get("rowGroupPanelSuppressSort")){this.eSortIndicator.setupSort(this.column,!0);let r=d=>{d.preventDefault(),this.beans.sortSvc.progressSortFromEvent(this.column,d)};this.addGuiEventListener("click",r),this.addGuiEventListener("keydown",d=>{d.key===A.KeyCode.ENTER&&this.isGroupingZone()&&r(d)})}}getDefaultIconName(){return"hide"}createGetDragItem(){let{column:r}=this;return()=>{let d={};return d[r.getId()]=r.isVisible(),{columns:[r],visibleState:d}}}setupComponents(){super.setupComponents(),this.isAggregationZone()&&!this.gos.get("functionsReadOnly")&&this.addGuiEventListener("click",this.onShowAggFuncSelection.bind(this))}onKeyDown(r){super.onKeyDown(r),r.key===A.KeyCode.ENTER&&this.isAggregationZone()&&!this.gos.get("functionsReadOnly")&&(r.preventDefault(),this.onShowAggFuncSelection())}getDisplayValue(){let{name:r,aggFuncName:d}=this.getColumnAndAggFuncName();return this.isAggregationZone()?`${d}(${r})`:r}onShowAggFuncSelection(){if(this.popupShowing)return;this.popupShowing=!0;let{aggFuncSvc:r,popupSvc:d}=this.beans,g=new D.VirtualList({cssIdentifier:"select-agg-func"}),m=r.getFuncNames(this.column),b=this.getGui(),w=g.getGui();g.setModel({getRow:function(X){return m[X]},getRowCount:function(){return m.length}}),this.createBean(g);let k=(0,A._loadTemplate)('<div class="ag-select-agg-func-popup"></div>');k.style.top="0px",k.style.left="0px",k.appendChild(w),k.style.width=`${b.clientWidth}px`;let[R]=this.addManagedElementListeners(k,{focusout:X=>{!k.contains(X.relatedTarget)&&G&&G.hideFunc()}}),T=X=>{this.destroyBean(g),this.popupShowing=!1,(X==null?void 0:X.key)==="Escape"&&b.focus(),R&&R()},z=this.getLocaleTextFunc(),G=d.addPopup({modal:!0,eChild:k,closeOnEsc:!0,closedCallback:T,ariaLabel:z("ariaLabelAggregationFunction","Aggregation Function")});G&&g.setComponentCreator(this.createAggSelect.bind(this,G.hideFunc)),g.addGuiEventListener("keydown",X=>{if(X.key===A.KeyCode.ENTER||X.key===A.KeyCode.SPACE){let Q=g.getLastFocusedRow();if(Q==null)return;let oe=g.getComponentAt(Q);oe&&oe.selectItem()}}),d.positionPopupByComponent({type:"aggFuncSelect",eventSource:b,ePopup:k,keepWithinBounds:!0,column:this.column,position:"under"}),g.refresh();let U=m.findIndex(X=>X===this.column.getAggFunc());U===-1&&(U=0),g.focusRow(U)}createAggSelect(r,d){let g=()=>{var R,T;r(),this.getGui().focus(),(T=(R=this.beans.valueColsSvc)==null?void 0:R.setColumnAggFunc)==null||T.call(R,this.column,d,"toolPanelDragAndDrop")},m=this.getLocaleTextFunc(),b=d.toString(),w=m(b,b);return new u(g,w)}isGroupingAndLocked(){return this.isGroupingZone()&&(0,f.isRowGroupColLocked)(this.column,this.beans)}isAggregationZone(){return this.dropZonePurpose==="aggregation"}isGroupingZone(){return this.dropZonePurpose==="rowGroup"}getDragSourceType(){return A.DragSourceType.ToolPanel}destroy(){super.destroy(),this.column=null}}p.DropZoneColumnComp=v;class u extends A.Component{constructor(r,d){super('<div class="ag-select-agg-func-item"/>'),this.selectItem=r,this.getGui().innerText=d,this.addGuiEventListener("click",this.selectItem)}}},6491:function(x,p,M){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.PivotDropZonePanel=void 0;let A=M(6624),F=M(8322);class D extends F.BaseDropZonePanel{constructor(v){super(v,"pivot")}postConstruct(){let v=this.getLocaleTextFunc(),u=v("pivotColumnsEmptyMessage","Drag here to set column labels"),s=v("pivots","Column Labels");super.init({icon:(0,A._createIconNoSpan)("pivotPanel",this.beans,null),emptyMessage:u,title:s}),this.addManagedEventListeners({newColumnsLoaded:this.refresh.bind(this),columnPivotChanged:this.refresh.bind(this),columnPivotModeChanged:this.checkVisibility.bind(this)}),this.refresh()}getAriaLabel(){return this.getLocaleTextFunc()("ariaPivotDropZonePanelLabel","Column Labels")}refresh(){this.checkVisibility(),this.refreshGui()}checkVisibility(){let v=this.beans.colModel,u=v.isPivotMode();if(this.horizontal)switch(this.gos.get("pivotPanelShow")){case"always":this.setDisplayed(u);break;case"onlyWhenPivoting":{let s=v.isPivotActive();this.setDisplayed(u&&s);break}default:this.setDisplayed(!1);break}else this.setDisplayed(u)}isItemDroppable(v,u){return this.gos.get("functionsReadOnly")||!v.isPrimary()?!1:v.isAllowPivot()&&(!v.isPivotActive()||this.isSourceEventFromTarget(u))}updateItems(v){var u;(u=this.beans.pivotColsSvc)==null||u.setColumns(v,"toolPanelUi")}getIconName(){return this.isPotentialDndItems()?"pivot":"notAllowed"}getExistingItems(){var v,u;return(u=(v=this.beans.pivotColsSvc)==null?void 0:v.columns)!=null?u:[]}}p.PivotDropZonePanel=D},4552:function(x,p,M){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.RowGroupDropZonePanel=void 0;let A=M(6624),F=M(8322);class D extends F.BaseDropZonePanel{constructor(v){super(v,"rowGroup")}postConstruct(){let v=this.getLocaleTextFunc(),u=v("rowGroupColumnsEmptyMessage","Drag here to set row groups"),s=v("groups","Row Groups");super.init({icon:(0,A._createIconNoSpan)("rowGroupPanel",this.beans,null),emptyMessage:u,title:s}),this.addManagedEventListeners({columnRowGroupChanged:this.refreshGui.bind(this)})}getAriaLabel(){return this.getLocaleTextFunc()("ariaRowGroupDropZonePanelLabel","Row Groups")}isItemDroppable(v,u){return this.gos.get("functionsReadOnly")||!v.isPrimary()?!1:v.isAllowRowGroup()&&(!v.isRowGroupActive()||this.isSourceEventFromTarget(u))}updateItems(v){var u;(u=this.beans.rowGroupColsSvc)==null||u.setColumns(v,"toolPanelUi")}getIconName(){return this.isPotentialDndItems()?"group":"notAllowed"}getExistingItems(){var v,u;return(u=(v=this.beans.rowGroupColsSvc)==null?void 0:v.columns)!=null?u:[]}}p.RowGroupDropZonePanel=D},3392:function(x,p,M){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.ValuesDropZonePanel=void 0;let A=M(6624),F=M(8322);class D extends F.BaseDropZonePanel{constructor(v){super(v,"aggregation")}postConstruct(){let v=this.getLocaleTextFunc(),u=v("valueColumnsEmptyMessage","Drag here to aggregate"),s=v("values","Values");super.init({icon:(0,A._createIconNoSpan)("valuePanel",this.beans,null),emptyMessage:u,title:s}),this.addManagedEventListeners({columnValueChanged:this.refreshGui.bind(this)})}getAriaLabel(){return this.getLocaleTextFunc()("ariaValuesDropZonePanelLabel","Values")}getIconName(){return this.isPotentialDndItems()?"aggregate":"notAllowed"}isItemDroppable(v,u){return this.gos.get("functionsReadOnly")||!v.isPrimary()?!1:v.isAllowValue()&&(!v.isValueActive()||this.isSourceEventFromTarget(u))}updateItems(v){var u;(u=this.beans.valueColsSvc)==null||u.setColumns(v,"toolPanelUi")}getExistingItems(){var v,u;return(u=(v=this.beans.valueColsSvc)==null?void 0:v.columns)!=null?u:[]}}p.ValuesDropZonePanel=D},4700:function(x,p,M){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.GroupFilter=void 0;let A=M(6624);class F extends A.TabGuardComp{wireBeans(f){this.filterManager=f.filterManager,this.showRowGroupCols=f.showRowGroupCols}constructor(){super(`
            <div class="ag-group-filter">
                <div data-ref="eGroupField"></div>
                <div data-ref="eUnderlyingFilter"></div>
            </div>
        `),this.eGroupField=A.RefPlaceholder,this.eUnderlyingFilter=A.RefPlaceholder}postConstruct(){this.initialiseTabGuard({})}init(f){return this.updateParams(f).then(()=>{this.addManagedEventListeners({columnRowGroupChanged:()=>this.onColumnRowGroupChanged(),filterDestroyed:v=>this.onFilterDestroyed(v)})})}refresh(f){return this.updateParams(f),!0}updateParams(f){return this.params=f,this.validateParams(),this.updateGroups()}validateParams(){let{colDef:f}=this.params;f.field&&(0,A._warn)(234),f.filterValueGetter&&(0,A._warn)(235),f.filterParams&&(0,A._warn)(236)}updateGroups(){let f=this.updateGroupField();return this.getUnderlyingFilters(f)}getSourceColumns(){var v;if(this.groupColumn=this.params.column,this.gos.get("treeData"))return(0,A._warn)(237),[];let f=(v=this.showRowGroupCols)==null?void 0:v.getSourceColumnsForGroupColumn(this.groupColumn);return f||((0,A._warn)(183),[])}updateGroupField(){let f=this.eGroupField;(0,A._clearElement)(f),this.eGroupFieldSelect&&this.destroyBean(this.eGroupFieldSelect);let v=this.getSourceColumns(),u=v.filter(s=>s.isFilterAllowed());return u.length?(v.length===1?(this.selectedColumn=u[0],(0,A._setDisplayed)(f,!1)):((!this.selectedColumn||!u.some(s=>s.getId()===this.selectedColumn.getId()))&&(this.selectedColumn=u[0]),this.createGroupFieldSelectElement(u),f.appendChild(this.eGroupFieldSelect.getGui()),f.appendChild((0,A._loadTemplate)('<div class="ag-filter-separator"></div>')),(0,A._setDisplayed)(f,!0)),u):(this.selectedColumn=void 0,(0,A._setDisplayed)(f,!1),null)}createGroupFieldSelectElement(f){let v=this.createManagedBean(new A.AgSelect);this.eGroupFieldSelect=v;let u=this.getLocaleTextFunc();v.setLabel(u("groupFilterSelect","Select field:")),v.setLabelAlignment("top"),v.addOptions(f.map(s=>{var r;return{value:s.getId(),text:(r=this.beans.colNames.getDisplayNameForColumn(s,"groupFilter",!1))!=null?r:void 0}})),v.setValue(this.selectedColumn.getId()),v.onValueChange(s=>this.updateSelectedColumn(s)),v.addCssClass("ag-group-filter-field-select-wrapper"),f.length===1&&v.setDisabled(!0)}getUnderlyingFilters(f){var s;if(!f)return this.filterColumnPairs=void 0,this.selectedFilter=void 0,(s=this.beans.colFilter)==null||s.setColFilterActive(this.groupColumn,!1,"columnRowGroupChanged"),A.AgPromise.resolve();let v=[],u=[];return f.forEach(r=>{let d=this.filterManager.getOrCreateFilterWrapper(r);d!=null&&d.filterPromise&&v.push(d.filterPromise.then(g=>(g&&u.push({filter:g,column:r}),r.getId()===this.selectedColumn.getId()&&(this.selectedFilter=g!=null?g:void 0),g)))}),A.AgPromise.all(v).then(()=>{var r;this.filterColumnPairs=u,(r=this.beans.colFilter)==null||r.setColFilterActive(this.groupColumn,this.isFilterActive(),"columnRowGroupChanged")})}addUnderlyingFilterElement(){var v,u;if((0,A._clearElement)(this.eUnderlyingFilter),!this.selectedColumn)return A.AgPromise.resolve();let f=this.createManagedBean(new A.FilterWrapperComp(this.selectedColumn,"COLUMN_MENU"));return this.filterWrapperComp=f,f.hasFilter()?(this.eUnderlyingFilter.appendChild(f.getGui()),(u=(v=f.getFilter())==null?void 0:v.then(()=>{var s,r;(s=f.afterGuiAttached)==null||s.call(f,this.afterGuiAttachedParams),!((r=this.afterGuiAttachedParams)!=null&&r.suppressFocus)&&this.eGroupFieldSelect&&!this.eGroupFieldSelect.isDisabled()&&this.eGroupFieldSelect.getFocusableElement().focus()}))!=null?u:A.AgPromise.resolve()):A.AgPromise.resolve()}updateSelectedColumn(f){var u;if(!f)return;(u=this.filterWrapperComp)==null||u.afterGuiDetached(),this.destroyBean(this.filterWrapperComp);let v=this.getFilterColumnPair(f);this.selectedColumn=v==null?void 0:v.column,this.selectedFilter=v==null?void 0:v.filter,this.dispatchLocalEvent({type:"selectedColumnChanged"}),this.addUnderlyingFilterElement()}isFilterActive(){var f;return!!((f=this.filterColumnPairs)!=null&&f.some(({filter:v})=>v.isFilterActive()))}doesFilterPass(){return!0}getModel(){return null}setModel(){return A.AgPromise.resolve()}afterGuiAttached(f){this.afterGuiAttachedParams=f,this.addUnderlyingFilterElement()}afterGuiDetached(){var f,v;(0,A._clearElement)(this.eUnderlyingFilter),(v=(f=this.selectedFilter)==null?void 0:f.afterGuiDetached)==null||v.call(f)}onColumnRowGroupChanged(){this.updateGroups().then(()=>{this.dispatchLocalEvent({type:"columnRowGroupChanged"})})}onFilterDestroyed({column:f,source:v}){var s;if(v==="gridDestroyed")return;let u=f.getColId();(s=this.filterColumnPairs)!=null&&s.some(({column:r})=>r.getColId()===u)&&setTimeout(()=>{this.isAlive()&&this.updateGroups()})}getFilterColumnPair(f){var v;if(f)return(v=this.filterColumnPairs)==null?void 0:v.find(({column:u})=>u.getId()===f)}getSelectedFilter(){return this.selectedFilter}getSelectedColumn(){return this.selectedColumn}isFilterAllowed(){return!!this.selectedColumn}}p.GroupFilter=F},7250:function(x,p,M){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.GroupFloatingFilterComp=void 0;let A=M(6624);class F extends A.Component{wireBeans(f){this.filterManager=f.filterManager}constructor(){super(`
            <div data-ref="eFloatingFilter" class="ag-group-floating-filter ag-floating-filter-input" role="presentation"></div>
        `),this.eFloatingFilter=A.RefPlaceholder,this.haveAddedColumnListeners=!1}init(f){this.params=f;let v=this.gos.get("groupDisplayType")==="multipleColumns";return new A.AgPromise(u=>{this.params.parentFilterInstance(s=>{this.parentFilterInstance=s,v?this.setupUnderlyingFloatingFilterElement().then(()=>u()):(this.setupReadOnlyFloatingFilterElement(),u())})}).then(()=>{let u=this.onColChange.bind(this);this.addManagedListeners(this.parentFilterInstance,{selectedColumnChanged:u,columnRowGroupChanged:u})})}refresh(f){this.params=f,this.setParams()}setParams(){var u;let f=this.beans.colNames.getDisplayNameForColumn(this.params.column,"header",!0),v=this.getLocaleTextFunc();(u=this.eFloatingFilterText)==null||u.setInputAriaLabel(`${f} ${v("ariaFilterInput","Filter Input")}`)}setupReadOnlyFloatingFilterElement(){this.eFloatingFilterText||(this.eFloatingFilterText=this.createManagedBean(new A.AgInputTextField),this.eFloatingFilterText.setDisabled(!0).addGuiEventListener("click",()=>this.params.showParentFilter()),this.setParams()),this.updateDisplayedValue(),this.eFloatingFilter.appendChild(this.eFloatingFilterText.getGui())}setupUnderlyingFloatingFilterElement(){this.showingUnderlyingFloatingFilter=!1,this.underlyingFloatingFilter=void 0,(0,A._clearElement)(this.eFloatingFilter);let f=this.parentFilterInstance.getSelectedColumn();if(f&&!f.isVisible()){let v=this.filterManager.getFloatingFilterCompDetails(f,this.params.showParentFilter);if(v)return this.haveAddedColumnListeners||(this.haveAddedColumnListeners=!0,this.addManagedListeners(f,{visibleChanged:this.onColumnVisibleChanged.bind(this),colDefChanged:this.onColDefChanged.bind(this)})),v.newAgStackInstance().then(u=>{var s,r;this.underlyingFloatingFilter=u,(r=this.underlyingFloatingFilter)==null||r.onParentModelChanged((s=this.parentFilterInstance.getSelectedFilter())==null?void 0:s.getModel()),this.appendChild(u.getGui()),this.showingUnderlyingFloatingFilter=!0})}return this.setupReadOnlyFloatingFilterElement(),A.AgPromise.resolve()}onColumnVisibleChanged(){this.setupUnderlyingFloatingFilterElement()}onColDefChanged(f){var u,s;if(!f.column)return;let v=this.filterManager.getFloatingFilterCompDetails(f.column,this.params.showParentFilter);v&&((s=(u=this.underlyingFloatingFilter)==null?void 0:u.refresh)==null||s.call(u,v.params))}onParentModelChanged(f,v){var u,s;this.showingUnderlyingFloatingFilter?(s=this.underlyingFloatingFilter)==null||s.onParentModelChanged((u=this.parentFilterInstance.getSelectedFilter())==null?void 0:u.getModel(),v):this.updateDisplayedValue()}updateDisplayedValue(){let{eFloatingFilterText:f,parentFilterInstance:v}=this;if(!v||!f)return;let u=v.getSelectedFilter();if(!u){f.setValue(""),f.setDisplayed(!1);return}if(f.setDisplayed(!0),u.getModelAsString){let s=u.getModel();f.setValue(s==null?"":u.getModelAsString(s))}else f.setValue("")}onColChange(){this.showingUnderlyingFloatingFilter||this.updateDisplayedValue()}}p.GroupFloatingFilterComp=F},8628:function(x,p,M){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.GroupHideOpenParentsService=void 0;let A=M(6624),F=M(8105);class D extends A.BeanStub{constructor(){super(...arguments),this.beanName="groupHideOpenParentsSvc"}updateGroupDataForHideOpenParents(v){if(!this.gos.get("groupHideOpenParents")||this.gos.get("treeData"))return;let u=s=>{this.pullDownGroupDataForHideOpenParents(s.childrenAfterSort,!1),s.childrenAfterSort.forEach(r=>{r.hasChildren()&&u(r)})};v&&v.executeFromRootNode(s=>u(s))}pullDownGroupDataForHideOpenParents(v,u){if(!this.gos.get("groupHideOpenParents")||(0,A._missing)(v))return;let{colModel:s,showRowGroupCols:r}=this.beans;v.forEach(d=>{var m;((m=r==null?void 0:r.getShowRowGroupCols())!=null?m:[]).forEach(b=>{let w=b.getColDef().showRowGroup;if(typeof w!="string"){(0,A._error)(110);return}let k=w,R=s.getColDefCol(k);if(R!==d.rowGroupColumn)if(u)(0,F.setRowNodeGroupValue)(d,s,b.getId(),void 0);else{let z=this.getFirstChildOfFirstChild(d,R);z&&(0,F.setRowNodeGroupValue)(d,s,b.getId(),z.key)}})})}isShowingValueForOpenedParent(v,u){if(!this.gos.get("groupHideOpenParents")||!v.groupData)return!1;if(v.rowGroupColumn!=null){let r=v.rowGroupColumn.getId();if(u.isRowGroupDisplayed(r))return!1}return v.groupData[u.getId()]!=null}getFirstChildOfFirstChild(v,u){let s=v;for(;s;){let r=s.parent;if(r!=null&&r.childrenAfterSort&&s===r.childrenAfterSort[0]){if(r.rowGroupColumn===u)return r}else return null;s=r}return null}}p.GroupHideOpenParentsService=D},1645:function(x,p){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.BatchRemover=void 0;class M{constructor(){this.allSets={},this.allParents=[]}removeFromChildrenAfterGroup(F,D){let f=this.getSet(F);f.removeFromChildrenAfterGroup[D.id]=!0}isRemoveFromAllLeafChildren(F,D){return!!this.getSet(F).removeFromAllLeafChildren[D.id]}preventRemoveFromAllLeafChildren(F,D){let f=this.getSet(F);delete f.removeFromAllLeafChildren[D.id]}removeFromAllLeafChildren(F,D){let f=this.getSet(F);f.removeFromAllLeafChildren[D.id]=!0}getSet(F){return this.allSets[F.id]||(this.allSets[F.id]={removeFromAllLeafChildren:{},removeFromChildrenAfterGroup:{}},this.allParents.push(F)),this.allSets[F.id]}getAllParents(){return this.allParents}flush(){this.allParents.forEach(F=>{var v,u;let D=this.allSets[F.id];F.childrenAfterGroup=F.childrenAfterGroup.filter(s=>!D.removeFromChildrenAfterGroup[s.id]),F.allLeafChildren=(u=(v=F.allLeafChildren)==null?void 0:v.filter(s=>!D.removeFromAllLeafChildren[s.id]))!=null?u:null,F.updateHasChildren();let f=F.sibling;f&&(f.childrenAfterGroup=F.childrenAfterGroup,f.allLeafChildren=F.allLeafChildren)}),this.allSets={},this.allParents.length=0}}p.BatchRemover=M},4216:function(x,p,M){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.GroupStage=void 0;let A=M(6624),F=M(8105),D=M(1645),f=M(4831);class v extends A.BeanStub{constructor(){super(...arguments),this.beanName="groupStage",this.refreshProps=new Set(["groupDefaultExpanded","groupAllowUnbalanced","initialGroupOrderComparator","groupHideOpenParents","groupDisplayType"]),this.step="group"}wireBeans(s){this.colModel=s.colModel,this.rowGroupColsSvc=s.rowGroupColsSvc,this.valueSvc=s.valueSvc,this.selectionSvc=s.selectionSvc,this.showRowGroupCols=s.showRowGroupCols}execute(s){var g;let r=this.createGroupingDetails(s);if(r.transactions)this.handleTransaction(r);else{let m=s.afterColumnsChanged===!0;this.shotgunResetEverything(r,m)}let d=s.changedPath;this.positionLeafsAndGroups(d),this.orderGroups(r),(g=this.selectionSvc)==null||g.updateSelectableAfterGrouping(d)}positionLeafsAndGroups(s){s.forEachChangedNodeDepthFirst(r=>{if(r.childrenAfterGroup){let d=[],g=[],m;r.childrenAfterGroup.forEach(b=>{var w;(w=b.childrenAfterGroup)!=null&&w.length?b.key===""&&!m?m=b:g.push(b):d.push(b)}),m&&g.push(m),r.childrenAfterGroup=[...d,...g]}},!1)}createGroupingDetails(s){var k,R,T;let{rowNode:r,changedPath:d,rowNodeTransactions:g,rowNodesOrderChanged:m}=s,b=(k=this.rowGroupColsSvc)==null?void 0:k.columns;return{expandByDefault:this.gos.get("groupDefaultExpanded"),groupedCols:b,rootNode:r,pivotMode:this.colModel.isPivotMode(),groupedColCount:(R=b==null?void 0:b.length)!=null?R:0,transactions:g,rowNodesOrderChanged:!!m,changedPath:d,groupAllowUnbalanced:this.gos.get("groupAllowUnbalanced"),isGroupOpenByDefault:this.gos.getCallback("isGroupOpenByDefault"),initialGroupOrderComparator:this.gos.getCallback("initialGroupOrderComparator"),keyCreators:(T=b==null?void 0:b.map(z=>z.getColDef().keyCreator))!=null?T:[]}}handleTransaction(s){s.transactions.forEach(r=>{var m,b,w;let d=new D.BatchRemover;(m=r.remove)!=null&&m.length&&this.removeNodes(r.remove,s,d),(b=r.update)!=null&&b.length&&this.moveNodesInWrongPath(r.update,s,d),(w=r.add)!=null&&w.length&&this.insertNodes(r.add,s);let g=d.getAllParents().slice();d.flush(),this.removeEmptyGroups(g,s)}),s.rowNodesOrderChanged&&this.sortChildren(s)}sortChildren(s){s.changedPath.forEachChangedNodeDepthFirst(r=>{(0,f.sortGroupChildren)(r.childrenAfterGroup)&&s.changedPath.addParentNode(r)},!1,!0)}orderGroups(s){let r=s.initialGroupOrderComparator;(0,A._exists)(r)&&d(s.rootNode);function d(g){(0,A._exists)(g.childrenAfterGroup)&&!g.leafGroup&&(g.childrenAfterGroup.sort((b,w)=>r({nodeA:b,nodeB:w})),g.childrenAfterGroup.forEach(b=>d(b)))}}getExistingPathForNode(s,r){let d=[],g=s.parent;for(;g&&g!==r.rootNode;)d.push({key:g.key,rowGroupColumn:g.rowGroupColumn,field:g.field}),g=g.parent;return d.reverse(),d}moveNodesInWrongPath(s,r,d){s.forEach(g=>{r.changedPath.active&&r.changedPath.addParentNode(g.parent);let m=R=>R.key,b=this.getExistingPathForNode(g,r).map(m),w=this.getGroupInfo(g,r).map(m);(0,A._areEqual)(b,w)||this.moveNode(g,r,d)})}moveNode(s,r,d){if(this.removeNodesFromParents([s],r,d),this.insertOneNode(s,r,d),s.setData(s.data),r.changedPath.active){let g=s.parent;r.changedPath.addParentNode(g)}}removeNodes(s,r,d){this.removeNodesFromParents(s,r,d),r.changedPath.active&&s.forEach(g=>r.changedPath.addParentNode(g.parent))}forEachParentGroup(s,r,d){let g=r;for(;g&&g!==s.rootNode;)d(g),g=g.parent}removeNodesFromParents(s,r,d){let g=d==null,m=d||new D.BatchRemover;s.forEach(b=>{this.removeFromParent(b,m),this.forEachParentGroup(r,b.parent,w=>{m.removeFromAllLeafChildren(w,b)})}),g&&m.flush()}removeEmptyGroups(s,r){let d=!0,g=m=>{var R,T;let b=this.getChildrenMappedKey(m.key,m.rowGroupColumn),w=m.parent;return(w!=null&&w.childrenMapped?!w.childrenMapped[b]:!0)?!1:!!m.group&&((T=(R=m.childrenAfterGroup)==null?void 0:R.length)!=null?T:0)===0};for(;d;){d=!1;let m=new D.BatchRemover;s.forEach(b=>{this.forEachParentGroup(r,b,w=>{var k;g(w)&&(d=!0,this.removeFromParent(w,m),(k=this.selectionSvc)==null||k.setNodesSelected({nodes:[w],newValue:!1,source:"rowGroupChanged"}))})}),m.flush()}}removeFromParent(s,r){var g;s.parent&&(r?r.removeFromChildrenAfterGroup(s.parent,s):((0,A._removeFromArray)(s.parent.childrenAfterGroup,s),s.parent.updateHasChildren()));let d=this.getChildrenMappedKey(s.key,s.rowGroupColumn);(g=s.parent)!=null&&g.childrenMapped&&delete s.parent.childrenMapped[d],s.setRowTop(null),s.setRowIndex(null)}addToParent(s,r){let d=this.getChildrenMappedKey(s.key,s.rowGroupColumn);r!=null&&r.childrenMapped&&r.childrenMapped[d]!==s&&(r.childrenMapped[d]=s,r.childrenAfterGroup.push(s),(0,F.setRowNodeGroup)(r,this.beans,!0))}areGroupColsEqual(s,r){return s==null||r==null||s.pivotMode!==r.pivotMode?!1:(0,A._areEqual)(s.groupedCols,r.groupedCols)&&(0,A._areEqual)(s.keyCreators,r.keyCreators)}checkAllGroupDataAfterColsChanged(s){let r=d=>{d&&d.forEach(g=>{var w;if(!g.group)return;let b={field:g.field,key:g.key,rowGroupColumn:g.rowGroupColumn,leafNode:(w=g.allLeafChildren)==null?void 0:w[0]};this.setGroupData(g,b),r(g.childrenAfterGroup)})};r(s.rootNode.childrenAfterGroup)}shotgunResetEverything(s,r){var b,w;if(this.noChangeInGroupingColumns(s,r))return;(w=(b=this.selectionSvc)==null?void 0:b.filterFromSelection)==null||w.call(b,k=>!k.group);let{groupedCols:d}=s,g=s.rootNode;g.leafGroup=d.length===0,g.childrenAfterGroup=[],g.childrenMapped={},g.updateHasChildren();let m=g.sibling;m&&(m.childrenAfterGroup=g.childrenAfterGroup,m.childrenMapped=g.childrenMapped),this.insertNodes(g.allLeafChildren,s)}noChangeInGroupingColumns(s,r){let d=!1,g=this.showRowGroupCols.getShowRowGroupCols(),m=g?g.map(b=>b.getId()).join("-"):"";return r&&(d=this.areGroupColsEqual(s,this.oldGroupingDetails),this.oldGroupDisplayColIds!==m&&this.checkAllGroupDataAfterColsChanged(s)),this.oldGroupingDetails=s,this.oldGroupDisplayColIds=m,d}insertNodes(s,r){s.forEach(d=>{this.insertOneNode(d,r),r.changedPath.active&&r.changedPath.addParentNode(d.parent)})}insertOneNode(s,r,d){let g=this.getGroupInfo(s,r),m=this.findParentForNode(s,g,r,d);m.group||(0,A._warn)(184,{parentGroupData:m.data,childNodeData:s.data}),s.parent=m,s.level=g.length,m.childrenAfterGroup.push(s),m.updateHasChildren()}findParentForNode(s,r,d,g){let m=d.rootNode;return r.forEach((b,w)=>{m=this.getOrCreateNextNode(m,b,w,d),g!=null&&g.isRemoveFromAllLeafChildren(m,s)?g==null||g.preventRemoveFromAllLeafChildren(m,s):m.allLeafChildren.push(s)}),m}getOrCreateNextNode(s,r,d,g){var w;let m=this.getChildrenMappedKey(r.key,r.rowGroupColumn),b=(w=s==null?void 0:s.childrenMapped)==null?void 0:w[m];return b||(b=this.createGroup(r,s,d,g),this.addToParent(b,s)),b}createGroup(s,r,d,g){let m=new A.RowNode(this.beans);return m.group=!0,m.field=s.field,m.rowGroupColumn=s.rowGroupColumn,this.setGroupData(m,s),m.key=s.key,m.id=this.createGroupId(m,r,d),m.level=d,m.leafGroup=d===g.groupedColCount-1,m.allLeafChildren=[],m.setAllChildrenCount(0),m.rowGroupIndex=d,m.childrenAfterGroup=[],m.childrenMapped={},m.updateHasChildren(),m.parent=r,this.setExpandedInitialValue(g,m),m}createGroupId(s,r,d){let g=(m,b)=>{if(!m.rowGroupColumn)return null;let w=b?g(b,b.parent,0):null;return`${w==null?"":w+"-"}${m.rowGroupColumn.getColId()}-${m.key}`};return A._ROW_ID_PREFIX_ROW_GROUP+g(s,r,d)}setGroupData(s,r){s.groupData={},this.showRowGroupCols.getShowRowGroupCols().forEach(g=>{let m=s.rowGroupColumn;m!==null&&g.isRowGroupDisplayed(m.getId())&&(s.groupData[g.getColId()]=this.valueSvc.getValue(m,r.leafNode))})}getChildrenMappedKey(s,r){return r?r.getId()+"-"+s:s}setExpandedInitialValue(s,r){if(s.pivotMode&&r.leafGroup){r.expanded=!1;return}let d=s.isGroupOpenByDefault;if(d){let g={rowNode:r,field:r.field,key:r.key,level:r.level,rowGroupColumn:r.rowGroupColumn};r.expanded=d(g)==!0;return}if(s.expandByDefault===-1){r.expanded=!0;return}r.expanded=r.level<s.expandByDefault}getGroupInfo(s,r){let d=[];return r.groupedCols.forEach(g=>{let m=this.valueSvc.getKeyForNode(g,s),b=m!=null&&m!=="";if((r.pivotMode||!r.groupAllowUnbalanced)&&!b&&(m="",b=!0),b){let k={key:m,field:g.getColDef().field,rowGroupColumn:g,leafNode:s};d.push(k)}}),d}}p.GroupStage=v},4831:function(x,p){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.sortGroupChildren=void 0;function M(F){if(!F)return!1;let D=F.length;if(D<2)return!1;let f=!1;for(let v=1;v<D;v++)if(A(F[v-1],F[v])>0){f=!0;break}return f?(F.sort(A),!0):!1}p.sortGroupChildren=M;function A(F,D){let f=F.sourceRowIndex,v=D.sourceRowIndex,u=f>=0,s=v>=0,r=u&&s,d=!u&&!s;return r?f-v:d?F.__objectId-D.__objectId:u?1:-1}},4357:function(x,p,M){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.RowGroupColsSvc=void 0;let A=M(6624);class F extends A.BaseColsService{constructor(){super(...arguments),this.beanName="rowGroupColsSvc",this.eventName="columnRowGroupChanged",this.columnProcessors={set:(f,v,u)=>this.setActive(v,f,u),add:(f,v,u)=>this.setActive(!0,f,u),remove:(f,v,u)=>this.setActive(!1,f,u)},this.columnOrdering={enableProp:"rowGroup",initialEnableProp:"initialRowGroup",indexProp:"rowGroupIndex",initialIndexProp:"initialRowGroupIndex"},this.columnExtractors={setFlagFunc:(f,v,u)=>this.setColRowGroupActive(f,v,u),getIndexFunc:f=>f.rowGroupIndex,getInitialIndexFunc:f=>f.initialRowGroupIndex,getValueFunc:f=>f.rowGroup,getInitialValueFunc:f=>f.initialRowGroup},this.modifyColumnsNoEventsCallbacks={addCol:f=>this.columns.push(f),removeCol:f=>(0,A._removeFromArray)(this.columns,f)}}moveColumn(f,v,u){if(this.columns.length===0)return;let s=this.columns[f],r=this.columns.slice(f,v);this.columns.splice(f,1),this.columns.splice(v,0,s),this.eventSvc.dispatchEvent({type:this.eventName,columns:r,column:r.length===1?r[0]:null,source:u})}syncColumnWithState(f,v,u,s){let{value1:r,value2:d}=u("rowGroup","rowGroupIndex");(r!==void 0||d!==void 0)&&(typeof d=="number"||r?(f.isRowGroupActive()||(this.setColRowGroupActive(f,!0,v),this.modifyColumnsNoEventsCallbacks.addCol(f)),s&&typeof d=="number"&&(s[f.getId()]=d)):f.isRowGroupActive()&&(this.setColRowGroupActive(f,!1,v),this.modifyColumnsNoEventsCallbacks.removeCol(f)))}setActive(f,v,u){f!==v.isRowGroupActive()&&(this.setColRowGroupActive(v,f,u),(0,A._shouldUpdateColVisibilityAfterGroup)(this.gos,f)&&this.colModel.setColsVisible([v],!f,u))}setColRowGroupActive(f,v,u){f.rowGroupActive!==v&&(f.rowGroupActive=v,f.dispatchColEvent("columnRowGroupChanged",u)),f.dispatchStateUpdatedEvent("rowGroup")}}p.RowGroupColsSvc=F},3516:function(x,p){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.getRowGroupColumns=p.moveRowGroupColumn=p.addRowGroupColumns=p.removeRowGroupColumns=p.setRowGroupColumns=void 0;function M(v,u){var s;(s=v.rowGroupColsSvc)==null||s.setColumns(u,"api")}p.setRowGroupColumns=M;function A(v,u){var s;(s=v.rowGroupColsSvc)==null||s.removeColumns(u,"api")}p.removeRowGroupColumns=A;function F(v,u){var s;(s=v.rowGroupColsSvc)==null||s.addColumns(u,"api")}p.addRowGroupColumns=F;function D(v,u,s){var r,d;(d=(r=v.rowGroupColsSvc)==null?void 0:r.moveColumn)==null||d.call(r,u,s,"api")}p.moveRowGroupColumn=D;function f(v){var u,s;return(s=(u=v.rowGroupColsSvc)==null?void 0:u.columns)!=null?s:[]}p.getRowGroupColumns=f},1442:function(x,p,M){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.GroupFilterModule=p.RowGroupingPanelModule=p.RowGroupingModule=p.SharedRowGroupingModule=void 0;let A=M(6624),F=M(9206),D=M(7032),f=M(6858),v=M(7205),u=M(9449),s=M(4700),r=M(7250),d=M(8628),g=M(4216),m=M(3516);p.SharedRowGroupingModule={moduleName:"SharedRowGrouping",version:v.VERSION,beans:[d.GroupHideOpenParentsService],apiFunctions:{setRowGroupColumns:m.setRowGroupColumns,removeRowGroupColumns:m.removeRowGroupColumns,addRowGroupColumns:m.addRowGroupColumns,getRowGroupColumns:m.getRowGroupColumns,moveRowGroupColumn:m.moveRowGroupColumn},dependsOn:[F.EnterpriseCoreModule,D.SharedAggregationModule,f.GroupColumnModule,f.StickyRowModule]},p.RowGroupingModule={moduleName:"RowGrouping",version:v.VERSION,beans:[g.GroupStage],rowModels:["clientSide"],dependsOn:[p.SharedRowGroupingModule,D.AggregationModule,f.ClientSideRowModelHierarchyModule]},p.RowGroupingPanelModule={moduleName:"RowGroupingPanel",version:v.VERSION,selectors:[u.AgGridHeaderDropZonesSelector],icons:{pivotPanel:"pivot",rowGroupPanel:"group",panelDelimiter:"small-right",panelDelimiterRtl:"small-left"},dependsOn:[F.EnterpriseCoreModule,A._PopupModule]},p.GroupFilterModule={moduleName:"GroupFilter",version:v.VERSION,userComponents:{agGroupColumnFilter:s.GroupFilter,agGroupColumnFloatingFilter:r.GroupFloatingFilterComp},dependsOn:[F.EnterpriseCoreModule,A._ColumnFilterModule]}},8105:function(x,p){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.isRowGroupColLocked=p.setRowNodeGroup=p.setRowNodeGroupValue=void 0;function M(D,f,v,u){let s=f.getCol(v);D.groupData||(D.groupData={});let r=s.getColId(),d=D.groupData[r];d!==u&&(D.groupData[r]=u,D.dispatchCellChangedEvent(s,u,d))}p.setRowNodeGroupValue=M;function A(D,f,v){var u;D.group!==v&&(D.group&&!v&&(D.expanded=!1),D.group=v,D.updateHasChildren(),(u=f.selectionSvc)==null||u.updateRowSelectable(D),D.dispatchRowEvent("groupChanged"))}p.setRowNodeGroup=A;function F(D,f){let{gos:v,rowGroupColsSvc:u}=f;if(!u||!D)return!1;let s=v.get("groupLockGroupColumns");if(!D.isRowGroupActive()||s===0)return!1;if(s===-1)return!0;let r=u.columns.findIndex(d=>d.getColId()===D.getColId());return s>r}p.isRowGroupColLocked=F},5995:function(x,p,M){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.AutoColService=void 0;let A=M(6624);class F extends A.BeanStub{constructor(){super(...arguments),this.beanName="autoColSvc"}postConstruct(){this.addManagedPropertyListener("autoGroupColumnDef",f=>this.onAutoGroupColumnDefChanged((0,A._convertColumnEventSourceType)(f.source)))}addAutoCols(f){this.autoCols!=null&&(f.list=this.autoCols.list.concat(f.list),f.tree=this.autoCols.tree.concat(f.tree),(0,A._updateColsMap)(f))}createAutoCols(f,v){var ke,Ie,ze;let u=this.beans,{colModel:s,gos:r,rowGroupColsSvc:d,colGroupSvc:g}=u,m=s.isPivotMode(),b=(0,A._isGroupUseEntireRow)(r,m),w=m?r.get("pivotSuppressAutoColumn"):this.isSuppressAutoCol(),k=d==null?void 0:d.columns,T=!(k&&k.length>0||r.get("treeData"))||w||b,z=()=>{this.autoCols&&((0,A._destroyColumnTree)(u,this.autoCols.tree),this.autoCols=null)};if(T){z();return}let G=this.generateAutoCols(k),U=(0,A._areColIdsEqual)(G,((ke=this.autoCols)==null?void 0:ke.list)||null),X=f.treeDepth,oe=(this.autoCols?this.autoCols.treeDepth:-1)==X;if(U&&oe)return;z();let le=(Ie=g==null?void 0:g.findDepth(f.tree))!=null?Ie:0,fe=(ze=g==null?void 0:g.balanceTreeForAutoCols(G,le))!=null?ze:[];this.autoCols={list:G,tree:fe,treeDepth:le,map:{}},v(Ye=>{if(!Ye)return null;let xe=Ye.filter(Te=>!(0,A.isColumnGroupAutoCol)(Te));return[...G,...xe]})}getAutoCol(f){var v,u;return(u=(v=this.autoCols)==null?void 0:v.list.find(s=>(0,A._columnsMatch)(s,f)))!=null?u:null}getAutoCols(){var f,v;return(v=(f=this.autoCols)==null?void 0:f.list)!=null?v:null}generateAutoCols(f=[]){let v=[],u=this.gos.get("treeData"),s=(0,A._isGroupMultiAutoColumn)(this.gos);return u&&s&&((0,A._warn)(182),s=!1),s?f.forEach((r,d)=>{v.push(this.createOneAutoCol(r,d))}):v.push(this.createOneAutoCol()),v}updateAutoCols(f){var v;(v=this.autoCols)==null||v.list.forEach((u,s)=>this.updateOneAutoCol(u,s,f))}isSuppressAutoCol(){let f=this.gos;return f.get("groupDisplayType")==="custom"?!0:f.get("treeDataDisplayType")==="custom"}createOneAutoCol(f,v){let u;f?u=`${A.GROUP_AUTO_COLUMN_ID}-${f.getId()}`:u=A.GROUP_AUTO_COLUMN_ID;let s=this.createAutoColDef(u,f,v);s.colId=u;let r=new A.AgColumn(s,null,u,!0);return this.createBean(r),r}updateOneAutoCol(f,v,u){let s=f.getColDef(),r=typeof s.showRowGroup=="string"?s.showRowGroup:void 0,d=this.beans,g=r!=null?d.colModel.getColDefCol(r):void 0,m=this.createAutoColDef(f.getId(),g!=null?g:void 0,v);f.setColDef(m,null,u),(0,A._updateColumnState)(d,f,m,u)}createAutoColDef(f,v,u){let s=this.createBaseColDef(v),r=this.gos.get("autoGroupColumnDef");(0,A._mergeDeep)(s,r),s=(0,A._addColumnDefaultAndTypes)(this.beans,s,f,!0),this.gos.get("treeData")||(0,A._missing)(s.field)&&(0,A._missing)(s.valueGetter)&&(0,A._missing)(s.filterValueGetter)&&s.filter!=="agGroupColumnFilter"&&(s.filter=!1),u&&u>0&&(s.headerCheckboxSelection=!1);let d=(0,A._isColumnsSortingCoupledToGroup)(this.gos),g=s.valueGetter||s.field!=null;return d&&!g&&(s.sortIndex=void 0,s.initialSort=void 0),s}createBaseColDef(f){let v=this.gos.get("autoGroupColumnDef"),s={headerName:this.getLocaleTextFunc()("group","Group")};if(v&&(v.cellRenderer||v.cellRendererSelector)||(s.cellRenderer="agGroupCellRenderer"),f){let d=f.getColDef();Object.assign(s,{headerName:this.beans.colNames.getDisplayNameForColumn(f,"header"),headerValueGetter:d.headerValueGetter}),d.cellRenderer&&Object.assign(s,{cellRendererParams:{innerRenderer:d.cellRenderer,innerRendererParams:d.cellRendererParams}}),s.showRowGroup=f.getColId()}else s.showRowGroup=!0;return s}onAutoGroupColumnDefChanged(f){this.updateAutoCols(f)}destroy(){var f;(0,A._destroyColumnTree)(this.beans,(f=this.autoCols)==null?void 0:f.tree),super.destroy()}}p.AutoColService=F},2560:function(x,p,M){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.BaseExpansionService=void 0;let A=M(6624);class F extends A.BeanStub{addExpandedCss(f,v){v.isExpandable()&&(f.push("ag-row-group"),f.push(v.expanded?"ag-row-group-expanded":"ag-row-group-contracted"))}getRowExpandedListeners(f){let{rowNode:v}=f,u=this.updateExpandedCss.bind(this,f,v);return{expandedChanged:u,hasChildrenChanged:u}}setExpanded(f,v,u,s){if(f.expanded===v)return;f.expanded=v,f.dispatchRowEvent("expandedChanged");let r=et(pe({},(0,A._createGlobalRowEvent)(f,this.gos,"rowGroupOpened")),{expanded:v,event:u||null});this.dispatchExpandedEvent(r,s),this.beans.rowRenderer.refreshCells({rowNodes:[f]})}isExpandable(f){return f.footer?!1:this.beans.colModel.isPivotMode()?f.hasChildren()&&!f.leafGroup:f.hasChildren()||f.master}updateExpandedCss(f,v){let u=v.isExpandable(),s=v.expanded==!0;f.forEachGui(void 0,r=>{let d=r.rowComp;d.addOrRemoveCssClass("ag-row-group",u),d.addOrRemoveCssClass("ag-row-group-expanded",u&&s),d.addOrRemoveCssClass("ag-row-group-contracted",u&&!s),(0,A._setAriaExpanded)(r.element,u&&s)})}}p.BaseExpansionService=F},4449:function(x,p,M){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.ClientSideExpansionService=void 0;let A=M(6624),F=M(2560);class D extends F.BaseExpansionService{constructor(){super(...arguments),this.beanName="expansionSvc",this.events=[]}wireBeans(v){this.rowModel=v.rowModel}expandRows(v){let u=new Set(v);this.rowModel.forEachNode(s=>{s.id&&u.has(s.id)&&(s.expanded=!0)}),this.onGroupExpandedOrCollapsed()}expandAll(v){let{gos:u,colModel:s,eventSvc:r}=this.beans,d=this.rowModel,g=u.get("treeData"),m=s.isPivotActive(),b=k=>{k&&k.forEach(R=>{let T=()=>{R.expanded=v,b(R.childrenAfterGroup)};if(g){(0,A._exists)(R.childrenAfterGroup)&&T();return}if(m){!R.leafGroup&&T();return}R.group&&T()})},w=d.rootNode;w&&b(w.childrenAfterGroup),d.refreshModel({step:"map"}),r.dispatchEvent({type:"expandOrCollapseAll",source:v?"expandAll":"collapseAll"})}onGroupExpandedOrCollapsed(){this.rowModel.refreshModel({step:"map"})}dispatchExpandedEvent(v,u){this.events.push(v);let s=()=>{this.rowModel.onRowGroupOpened(),this.events.forEach(r=>this.eventSvc.dispatchEvent(r)),this.events=[]};u?s():(this.dispatchExpandedDebounced==null&&(this.dispatchExpandedDebounced=this.debounce(s)),this.dispatchExpandedDebounced())}debounce(v){let u=this.beans.animationFrameSvc;if(!u)return()=>window.setTimeout(v,0);let s=!1;return()=>{if(!u.active){window.setTimeout(v,0);return}s||(s=!0,u.addDestroyTask(()=>{s=!1,v()}))}}}p.ClientSideExpansionService=D},257:function(x,p,M){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.FlattenStage=void 0;let A=M(6624),F=M(6432);class D extends A.BeanStub{constructor(){super(...arguments),this.beanName="flattenStage",this.refreshProps=new Set(["groupHideParentOfSingleChild","groupRemoveSingleChildren","groupRemoveLowestSingleChildren","groupTotalRow","masterDetail"]),this.step="map"}execute(v){let u=v.rowNode,s=[],r=this.beans.colModel.isPivotMode(),d=r&&u.leafGroup,g=d?[u]:u.childrenAfterSort,m=this.getFlattenDetails();this.recursivelyAddToRowsToDisplay(m,g,s,r,0);let b=s.length>0;if(!d&&b&&m.grandTotalRow){(0,F._createRowNodeFooter)(u,this.beans);let k=m.grandTotalRow==="top";this.addRowNodeToRowsToDisplay(m,u.sibling,s,0,k)}return s}getFlattenDetails(){let v=this.gos.get("groupHideParentOfSingleChild");return v||(v=this.gos.get("groupRemoveSingleChildren"),!v&&this.gos.get("groupRemoveLowestSingleChildren")&&(v="leafGroupsOnly")),{groupHideParentOfSingleChild:v,isGroupMultiAutoColumn:(0,A._isGroupMultiAutoColumn)(this.gos),hideOpenParents:this.gos.get("groupHideOpenParents"),grandTotalRow:(0,A._getGrandTotalRow)(this.gos),groupTotalRow:(0,A._getGroupTotalRowCallback)(this.gos)}}recursivelyAddToRowsToDisplay(v,u,s,r,d){var g;if(u!=null&&u.length)for(let m=0;m<u.length;m++){let b=u[m],w=b.hasChildren(),k=r&&!w,R=v.groupHideParentOfSingleChild===!0&&w&&b.childrenAfterGroup.length===1,T=v.groupHideParentOfSingleChild==="leafGroupsOnly"&&w&&b.leafGroup&&b.childrenAfterGroup.length===1,z=r&&b.leafGroup,G=v.hideOpenParents&&b.expanded&&!b.master&&!z;if(!k&&!G&&!R&&!T&&this.addRowNodeToRowsToDisplay(v,b,s,d),!(r&&b.leafGroup))if(w){let X=R||T;if(b.expanded||X){let Q=v.groupTotalRow({node:b});Q||(0,F._destroyRowNodeFooter)(b);let oe=X?d:d+1;Q==="top"&&((0,F._createRowNodeFooter)(b,this.beans),this.addRowNodeToRowsToDisplay(v,b.sibling,s,oe)),this.recursivelyAddToRowsToDisplay(v,b.childrenAfterSort,s,r,oe),Q==="bottom"&&((0,F._createRowNodeFooter)(b,this.beans),this.addRowNodeToRowsToDisplay(v,b.sibling,s,oe))}}else{let X=(g=this.beans.masterDetailSvc)==null?void 0:g.getDetail(b);X&&this.addRowNodeToRowsToDisplay(v,X,s,d)}}}addRowNodeToRowsToDisplay(v,u,s,r,d){d?s.unshift(u):s.push(u),u.setUiLevel(v.isGroupMultiAutoColumn?0:r)}}p.FlattenStage=D},1982:function(x,p,M){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.GroupCellRenderer=void 0;let A=M(6624),F=M(5471),D=`<span class="ag-cell-wrapper">
        <span class="ag-group-expanded" data-ref="eExpanded"></span>
        <span class="ag-group-contracted" data-ref="eContracted"></span>
        <span class="ag-group-checkbox ag-invisible" data-ref="eCheckbox"></span>
        <span class="ag-group-value" data-ref="eValue"></span>
        <span class="ag-group-child-count" data-ref="eChildCount"></span>
    </span>`;class f extends A.Component{constructor(){super(D),this.eExpanded=A.RefPlaceholder,this.eContracted=A.RefPlaceholder,this.eCheckbox=A.RefPlaceholder,this.eValue=A.RefPlaceholder,this.eChildCount=A.RefPlaceholder}init(u){let s={setInnerRenderer:(m,b)=>this.setRenderDetails(m,b),setChildCount:m=>this.eChildCount.textContent=m,addOrRemoveCssClass:(m,b)=>this.addOrRemoveCssClass(m,b),setContractedDisplayed:m=>(0,A._setDisplayed)(this.eContracted,m),setExpandedDisplayed:m=>(0,A._setDisplayed)(this.eExpanded,m),setCheckboxVisible:m=>this.eCheckbox.classList.toggle("ag-invisible",!m)},r=this.createManagedBean(new F.GroupCellRendererCtrl),d=!u.colDef,g=this.getGui();r.init(s,g,this.eCheckbox,this.eExpanded,this.eContracted,this.constructor,u),d&&(0,A._setAriaRole)(g,r.getCellAriaRole())}setRenderDetails(u,s){u?u.newAgStackInstance().then(r=>{if(!r)return;let d=()=>this.destroyBean(r);this.isAlive()?(this.eValue.appendChild(r.getGui()),this.addDestroyFunc(d)):d()}):this.eValue.innerText=s}destroy(){this.destroyBean(this.innerCellRenderer),super.destroy()}refresh(){return!1}}p.GroupCellRenderer=f},5471:function(x,p,M){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.GroupCellRendererCtrl=void 0;let A=M(6624);class F extends A.BeanStub{wireBeans(f){this.expressionSvc=f.expressionSvc,this.valueSvc=f.valueSvc,this.colModel=f.colModel,this.visibleCols=f.visibleCols,this.userCompFactory=f.userCompFactory,this.ctrlsSvc=f.ctrlsSvc,this.rowGroupColsSvc=f.rowGroupColsSvc,this.selectionSvc=f.selectionSvc,this.groupHideOpenParentsSvc=f.groupHideOpenParentsSvc}init(f,v,u,s,r,d,g){var k,R,T;this.params=g,this.eGui=v,this.eCheckbox=u,this.eExpanded=s,this.eContracted=r,this.comp=f,this.compClass=d;let{node:m,colDef:b}=g,w=this.isTopLevelFooter();if(!w){if(this.isEmbeddedRowMismatch())return;if(m.footer&&this.gos.get("groupHideOpenParents")){let G=b==null?void 0:b.showRowGroup,U=(k=m.rowGroupColumn)==null?void 0:k.getColId();if(G!==U)return}}if(this.setupShowingValueForOpenedParent(),this.findDisplayedGroupNode(),!w){let z=this.rowGroupColsSvc&&m.footer&&m.rowGroupIndex===this.rowGroupColsSvc.columns.findIndex(fe=>fe.getColId()===(b==null?void 0:b.showRowGroup)),U=this.gos.get("groupDisplayType")!="multipleColumns"||this.gos.get("treeData")||this.gos.get("showOpenedGroup")&&this.rowGroupColsSvc&&!m.footer&&(!m.group||m.rowGroupIndex!=null&&m.rowGroupIndex>((R=this.rowGroupColsSvc)==null?void 0:R.columns.findIndex(fe=>fe.getColId()===(b==null?void 0:b.showRowGroup)))),X=!m.group&&((b==null?void 0:b.field)||(b==null?void 0:b.valueGetter)),Q=this.isExpandable(),oe=this.colModel.isPivotMode()&&m.leafGroup&&((T=m.rowGroupColumn)==null?void 0:T.getColId())===(b==null?void 0:b.showRowGroup);if(!this.showingValueForOpenedParent&&!Q&&!X&&!U&&!z&&!oe)return}this.addExpandAndContract(),this.addFullWidthRowDraggerIfNeeded(),this.addCheckboxIfNeeded(),this.addValueElement(),this.setupIndent(),this.refreshAriaExpanded(),this.addManagedPropertyListener("rowSelection",({currentValue:z,previousValue:G})=>{let U=typeof z=="object"?z:void 0,X=typeof G=="object"?G:void 0;(U==null?void 0:U.checkboxLocation)!==(X==null?void 0:X.checkboxLocation)&&this.refreshCheckbox()})}getCellAriaRole(){var u,s;let f=(u=this.params.colDef)==null?void 0:u.cellAriaRole,v=(s=this.params.column)==null?void 0:s.getColDef().cellAriaRole;return f||v||"gridcell"}destroy(){super.destroy(),this.expandListener=null,this.destroyCheckbox()}refreshAriaExpanded(){let{node:f,eGridCell:v}=this.params;if(this.expandListener&&(this.expandListener=this.expandListener()),!this.isExpandable()){(0,A._removeAriaExpanded)(v);return}let u=()=>{(0,A._setAriaExpanded)(v,this.showingValueForOpenedParent||!!f.expanded)};[this.expandListener]=this.addManagedListeners(f,{expandedChanged:u})||null,u()}isTopLevelFooter(){var r;if(!(0,A._getGrandTotalRow)(this.gos)||this.params.value!=null||this.params.node.level!=-1)return!1;let v=this.params.colDef;if(v==null||v.showRowGroup===!0)return!0;let s=(r=this.rowGroupColsSvc)==null?void 0:r.columns;return!s||s.length===0?!0:s[0].getId()===v.showRowGroup}isEmbeddedRowMismatch(){if(!this.params.fullWidth||!this.gos.get("embedFullWidthRows"))return!1;let f=this.params.pinned==="left",v=this.params.pinned==="right",u=!f&&!v;return this.gos.get("enableRtl")?this.visibleCols.isPinningLeft()?!v:!u:this.visibleCols.isPinningLeft()?!f:!u}findDisplayedGroupNode(){let f=this.params.column,v=this.params.node;if(this.showingValueForOpenedParent){let u=v.parent;for(;u!=null;){if(u.rowGroupColumn&&f.isRowGroupDisplayed(u.rowGroupColumn.getId())){this.displayedGroupNode=u;break}u=u.parent}}(0,A._missing)(this.displayedGroupNode)&&(this.displayedGroupNode=v)}setupShowingValueForOpenedParent(){var f,v;this.showingValueForOpenedParent=(v=(f=this.groupHideOpenParentsSvc)==null?void 0:f.isShowingValueForOpenedParent(this.params.node,this.params.column))!=null?v:!1}addValueElement(){this.displayedGroupNode.footer?this.addFooterValue():(this.addGroupValue(),this.addChildCount())}addGroupValue(){var d;let f=this.adjustParamsWithDetailsFromRelatedColumn(),v=this.getInnerCompDetails(f),{valueFormatted:u,value:s}=f,r=u;if(r==null){let g=this.displayedGroupNode.rowGroupColumn&&((d=this.params.column)==null?void 0:d.isRowGroupDisplayed(this.displayedGroupNode.rowGroupColumn.getId()));this.displayedGroupNode.key===""&&this.displayedGroupNode.group&&g?r=this.getLocaleTextFunc()("blanks","(Blanks)"):r=s!=null?s:null}this.comp.setInnerRenderer(v,r)}adjustParamsWithDetailsFromRelatedColumn(){let f=this.displayedGroupNode.rowGroupColumn,v=this.params.column;if(!f)return this.params;if(v!=null&&!v.isRowGroupDisplayed(f.getId()))return this.params;let s=this.params,{value:r,node:d}=this.params,g=this.valueSvc.formatValue(f,d,r);return et(pe({},s),{valueFormatted:g})}addFooterValue(){let f=this.params.totalValueGetter,v="";if(f){let s=et(pe({},this.params),{value:this.params.value});typeof f=="function"?v=f(s):typeof f=="string"?v=this.expressionSvc?this.expressionSvc.evaluate(f,s):"":(0,A._warn)(179)}else v=this.getLocaleTextFunc()("footerTotal","Total")+" "+(this.params.value!=null?this.params.value:"");let u=this.getInnerCompDetails(this.params);this.comp.setInnerRenderer(u,v)}getInnerCompDetails(f){if(f.fullWidth)return(0,A._getInnerCellRendererDetails)(this.userCompFactory,this.gos.get("groupRowRendererParams"),f);let v=(0,A._getInnerCellRendererDetails)(this.userCompFactory,f,f),u=g=>g&&g.componentClass==this.compClass;if(v&&!u(v))return v;let s=this.displayedGroupNode.rowGroupColumn,r=s==null?void 0:s.getColDef();if(!r)return;let d=(0,A._getCellRendererDetails)(this.userCompFactory,r,f);if(d&&!u(d))return d;if(u(d)&&r.cellRendererParams&&r.cellRendererParams.innerRenderer)return(0,A._getInnerCellRendererDetails)(this.userCompFactory,r.cellRendererParams,f)}addChildCount(){this.params.suppressCount||(this.addManagedListeners(this.displayedGroupNode,{allChildrenCountChanged:this.updateChildCount.bind(this)}),this.updateChildCount())}updateChildCount(){let f=this.displayedGroupNode.allChildrenCount,s=this.isShowRowGroupForThisRow()&&f!=null&&f>=0?`(${f})`:"";this.comp.setChildCount(s)}isShowRowGroupForThisRow(){if(this.gos.get("treeData"))return!0;let f=this.displayedGroupNode.rowGroupColumn;if(!f)return!1;let v=this.params.column;return v==null||v.isRowGroupDisplayed(f.getId())}addExpandAndContract(){var d;let f=this.params,v=(g,m)=>{let b=(0,A._createIconNoSpan)(g,this.beans,null);b&&(m.appendChild(b),this.addDestroyFunc(()=>m.removeChild(b)))};v("groupExpanded",this.eExpanded),v("groupContracted",this.eContracted);let u=f.eGridCell;!(((d=this.params.column)==null?void 0:d.isCellEditable(f.node))&&this.gos.get("enableGroupEdit"))&&this.isExpandable()&&!f.suppressDoubleClickExpand&&this.addManagedListeners(u,{dblclick:this.onCellDblClicked.bind(this)}),this.addManagedListeners(this.eExpanded,{click:this.onExpandClicked.bind(this)}),this.addManagedListeners(this.eContracted,{click:this.onExpandClicked.bind(this)}),this.addManagedListeners(u,{keydown:this.onKeyDown.bind(this)}),this.addManagedListeners(f.node,{expandedChanged:this.showExpandAndContractIcons.bind(this)}),this.showExpandAndContractIcons();let r=this.onRowNodeIsExpandableChanged.bind(this);this.addManagedListeners(this.displayedGroupNode,{allChildrenCountChanged:r,masterChanged:r,groupChanged:r,hasChildrenChanged:r})}onExpandClicked(f){(0,A._isStopPropagationForAgGrid)(f)||((0,A._stopPropagationForAgGrid)(f),this.onExpandOrContract(f))}onExpandOrContract(f){let v=this.displayedGroupNode,u=!v.expanded;!u&&v.sticky&&this.scrollToStickyNode(v),v.setExpanded(u,f)}scrollToStickyNode(f){this.ctrlsSvc.getScrollFeature().setVerticalScrollPosition(f.rowTop-f.stickyRowTop)}isExpandable(){if(this.showingValueForOpenedParent)return!0;let f=this.displayedGroupNode,v=this.colModel.isPivotMode()&&f.leafGroup;if(!(f.isExpandable()&&!f.footer&&!v))return!1;let s=this.params.column;return s!=null&&typeof s.getColDef().showRowGroup=="string"?this.isShowRowGroupForThisRow():!0}showExpandAndContractIcons(){let{params:f,displayedGroupNode:v,colModel:u}=this,{node:s}=f,r=this.isExpandable();if(r){let w=this.showingValueForOpenedParent?!0:s.expanded;this.comp.setExpandedDisplayed(w),this.comp.setContractedDisplayed(!w)}else this.comp.setExpandedDisplayed(!1),this.comp.setContractedDisplayed(!1);let d=u.isPivotMode(),g=d&&v.leafGroup,m=r&&!g,b=s.footer&&s.level===-1;this.comp.addOrRemoveCssClass("ag-cell-expandable",m),this.comp.addOrRemoveCssClass("ag-row-group",m),d?this.comp.addOrRemoveCssClass("ag-pivot-leaf-group",!!g):b||this.comp.addOrRemoveCssClass("ag-row-group-leaf-indent",!m)}onRowNodeIsExpandableChanged(){this.showExpandAndContractIcons(),this.setIndent(),this.refreshAriaExpanded()}setupIndent(){let f=this.params.node;this.params.suppressPadding||(this.addManagedListeners(f,{uiLevelChanged:this.setIndent.bind(this)}),this.setIndent())}setIndent(){if(this.gos.get("groupHideOpenParents"))return;let f=this.params,v=f.node,u=!!f.colDef,s=this.gos.get("treeData"),d=!u||s||f.colDef.showRowGroup===!0?v.uiLevel:0;this.indentClass&&this.comp.addOrRemoveCssClass(this.indentClass,!1),this.indentClass="ag-row-group-indent-"+d,this.comp.addOrRemoveCssClass(this.indentClass,!0),this.eGui.style.setProperty("--ag-indentation-level",String(d))}addFullWidthRowDraggerIfNeeded(){if(!this.params.fullWidth||!this.params.rowDrag||!this.rowDragSvc)return;let f=this.rowDragSvc.createRowDragComp(()=>this.params.value,this.params.node);this.createManagedBean(f),this.eGui.insertAdjacentElement("afterbegin",f.getGui())}addCheckboxIfNeeded(){let f=this.displayedGroupNode,v=this.gos.get("rowSelection"),u=(0,A._getCheckboxLocation)(v),s=typeof v=="object"?u==="autoGroupColumn"&&(0,A._getCheckboxes)(v):this.params.checkbox,d=(typeof s=="function"||s===!0)&&!f.footer&&!f.rowPinned&&!f.detail&&!!this.selectionSvc&&(0,A._isRowSelection)(this.gos);if(d){let g=this.selectionSvc.createCheckboxSelectionComponent();this.cbComp=g,this.createBean(g),g.init({rowNode:this.params.node,column:this.params.column,overrides:{isVisible:s,callbackParams:this.params,removeHidden:!0}}),this.eCheckbox.appendChild(g.getGui())}this.comp.setCheckboxVisible(d)}destroyCheckbox(){this.cbComp&&this.eCheckbox.removeChild(this.cbComp.getGui()),this.cbComp=this.destroyBean(this.cbComp)}refreshCheckbox(){this.destroyCheckbox(),this.addCheckboxIfNeeded()}onKeyDown(f){!(f.key===A.KeyCode.ENTER)||this.params.suppressEnterExpand||this.params.column&&this.params.column.isCellEditable(this.params.node)||this.onExpandOrContract(f)}onCellDblClicked(f){if((0,A._isStopPropagationForAgGrid)(f))return;(0,A._isElementInEventPath)(this.eExpanded,f)||(0,A._isElementInEventPath)(this.eContracted,f)||this.onExpandOrContract(f)}}p.GroupCellRendererCtrl=F},6858:function(x,p,M){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.StickyRowModule=p.ClientSideRowModelHierarchyModule=p.GroupColumnModule=p.GroupCellRendererModule=void 0;let A=M(9206),F=M(7926),D=M(3227),f=M(4357),v=M(7205),u=M(5995),s=M(4449),r=M(257),d=M(1982),g=M(5471),m=M(4685),b=M(1998);p.GroupCellRendererModule={moduleName:"GroupCellRenderer",version:v.VERSION,userComponents:{agGroupRowRenderer:d.GroupCellRenderer,agGroupCellRenderer:d.GroupCellRenderer},dynamicBeans:{groupCellRendererCtrl:g.GroupCellRendererCtrl},icons:{groupContracted:"tree-closed",groupExpanded:"tree-open"},dependsOn:[A.EnterpriseCoreModule]},p.GroupColumnModule={moduleName:"GroupColumn",version:v.VERSION,beans:[u.AutoColService,m.ShowRowGroupColsService,f.RowGroupColsSvc,D.PivotColsSvc,F.ValueColsSvc],dependsOn:[A.EnterpriseCoreModule,p.GroupCellRendererModule]},p.ClientSideRowModelHierarchyModule={moduleName:"ClientSideRowModelHierarchy",version:v.VERSION,rowModels:["clientSide"],beans:[r.FlattenStage,s.ClientSideExpansionService],dependsOn:[A.EnterpriseCoreModule]},p.StickyRowModule={moduleName:"StickyRow",version:v.VERSION,beans:[b.StickyRowService]}},4685:function(x,p,M){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.ShowRowGroupColsService=void 0;let A=M(6624);class F extends A.BeanStub{constructor(){super(...arguments),this.beanName="showRowGroupCols"}refresh(){this.showRowGroupCols=[],this.showRowGroupColsMap={};let{colModel:f,rowGroupColsSvc:v}=this.beans;f.getCols().forEach(u=>{let r=u.getColDef().showRowGroup,d=typeof r=="string";!d&&!(r===!0)||(this.showRowGroupCols.push(u),d?this.showRowGroupColsMap[r]=u:v&&v.columns.forEach(m=>{this.showRowGroupColsMap[m.getId()]=u}))})}getShowRowGroupCols(){return this.showRowGroupCols}getShowRowGroupCol(f){return this.showRowGroupColsMap[f]}getSourceColumnsForGroupColumn(f){let v=f.getColDef().showRowGroup;if(!v)return null;let{rowGroupColsSvc:u,colModel:s}=this.beans;if(v===!0&&u)return u.columns.slice(0);let r=s.getColDefCol(v);return r?[r]:null}isRowGroupDisplayed(f,v){let{colDef:u}=f;if((u==null?void 0:u.showRowGroup)==null)return!1;let s=u.showRowGroup===!0,r=u.showRowGroup===v;return s||r}}p.ShowRowGroupColsService=F},80:function(x,p,M){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.StickyRowFeature=void 0;let A=M(6624);class F extends A.BeanStub{constructor(u,s){super(),this.createRowCon=u,this.destroyRowCtrls=s,this.stickyTopRowCtrls=[],this.stickyBottomRowCtrls=[],this.extraTopHeight=0,this.extraBottomHeight=0}postConstruct(){this.isClientSide=(0,A._isClientSideRowModel)(this.gos),this.beans.ctrlsSvc.whenReady(this,u=>{this.gridBodyCtrl=u.gridBodyCtrl}),this.resetStickyContainers()}setOffsetTop(u){this.extraTopHeight!==u&&(this.extraTopHeight=u,this.eventSvc.dispatchEvent({type:"stickyTopOffsetChanged",offset:u}))}setOffsetBottom(u){this.extraBottomHeight!==u&&(this.extraBottomHeight=u)}resetOffsets(){this.setOffsetBottom(0),this.setOffsetTop(0)}getLastPixelOfGroup(u){return this.isClientSide?f(u):D(u)}getFirstPixelOfGroup(u){return u.footer?u.sibling.rowTop+u.sibling.rowHeight-1:u.hasChildren()?u.rowTop-1:0}updateStickyRows(u){let s=u==="top",r=0;if(!this.canRowsBeSticky())return this.refreshNodesAndContainerHeight(u,new Set,r);let{rowModel:d,rowRenderer:g}=this.beans,m=s?g.firstVisibleVPixel-this.extraTopHeight:g.lastVisibleVPixel-this.extraTopHeight,b=new Set,w=z=>{if(b.add(z),s){let G=this.getLastPixelOfGroup(z),U=m+r+z.rowHeight;G<U?z.stickyRowTop=r+(G-U):z.stickyRowTop=r}else{let G=this.getFirstPixelOfGroup(z),U=m-(r+z.rowHeight);G>U?z.stickyRowTop=r-(G-U):z.stickyRowTop=r}r=0,b.forEach(G=>{let U=G.stickyRowTop+G.rowHeight;r<U&&(r=U)})},k=this.areFooterRowsStickySuppressed(),R=this.gos.get("suppressGroupRowsSticky"),T=z=>{if(!z.displayed)return!1;if(z.footer){if(k===!0||k==="grand"&&z.level===-1||k==="group"&&z.level>-1)return!1;let G=z.sibling.rowIndex?z.sibling.rowIndex+1===z.rowIndex:!1;return u==="bottom"&&G?!1:!b.has(z)}return z.isExpandable()?R===!0||u==="bottom"?!1:!b.has(z)&&z.expanded:!1};for(let z=0;z<100;z++){let G=m+r;s||(G=m-r);let U=d.getRowIndexAtPixel(G),X=d.getRow(U);if(X==null)break;let oe=this.getStickyAncestors(X).find(fe=>(s?fe.rowIndex<U:fe.rowIndex>U)&&T(fe));if(oe){w(oe);continue}if((s?X.rowTop<G:X.rowTop+X.rowHeight>G)&&T(X)){w(X);continue}break}return s||b.forEach(z=>{z.stickyRowTop=r-(z.stickyRowTop+z.rowHeight)}),this.refreshNodesAndContainerHeight(u,b,r)}areFooterRowsStickySuppressed(){let u=this.gos.get("suppressStickyTotalRow");if(u===!0)return!0;let s=u==="group",r=u==="grand";return s&&r?!0:r?"grand":s?"group":!1}canRowsBeSticky(){let u=(0,A._isGroupRowsSticky)(this.gos),s=this.areFooterRowsStickySuppressed(),r=this.gos.get("suppressGroupRowsSticky");return u&&(!s||!r)}getStickyAncestors(u){let s=[],r=u.footer?u.sibling:u.parent;for(;r;)r.sibling&&s.push(r.sibling),s.push(r),r=r.parent;return s.reverse()}checkStickyRows(){let u=this.updateStickyRows("top"),s=this.updateStickyRows("bottom");return u||s}destroyStickyCtrls(){this.resetStickyContainers()}resetStickyContainers(){this.refreshNodesAndContainerHeight("top",new Set,0),this.refreshNodesAndContainerHeight("bottom",new Set,0)}refreshStickyNode(u){let s=new Set;if(this.stickyTopRowCtrls.some(r=>r.rowNode===u)){for(let r=0;r<this.stickyTopRowCtrls.length;r++){let d=this.stickyTopRowCtrls[r].rowNode;d!==u&&s.add(d)}this.refreshNodesAndContainerHeight("top",s,this.topContainerHeight)&&this.checkStickyRows();return}for(let r=0;r<this.stickyBottomRowCtrls.length;r++){let d=this.stickyBottomRowCtrls[r].rowNode;d!==u&&s.add(d)}this.refreshNodesAndContainerHeight("bottom",s,this.bottomContainerHeight)&&this.checkStickyRows()}refreshNodesAndContainerHeight(u,s,r){let d=u==="top",g=d?this.stickyTopRowCtrls:this.stickyBottomRowCtrls,m={},b=[];for(let U=0;U<g.length;U++){let X=g[U].rowNode;if(!s.has(X)){m[X.id]=g[U],X.sticky=!1;continue}b.push(g[U])}let w=new Set;for(let U=0;U<b.length;U++)w.add(b[U].rowNode);let k=[];s.forEach(U=>{w.has(U)||(U.sticky=!0,k.push(this.createRowCon(U,!1,!1)))});let R=!!k.length||b.length!==g.length;d?this.topContainerHeight!==r&&(this.topContainerHeight=r,this.gridBodyCtrl.setStickyTopHeight(r),R=!0):this.bottomContainerHeight!==r&&(this.bottomContainerHeight=r,this.gridBodyCtrl.setStickyBottomHeight(r),R=!0),this.destroyRowCtrls(m,!1);let T=[...b,...k];T.sort((U,X)=>X.rowNode.rowIndex-U.rowNode.rowIndex),d||T.reverse(),T.forEach(U=>U.setRowTop(U.rowNode.stickyRowTop));let z=this.beans.pageBounds,G=0;return d?(s.forEach(U=>{U.rowIndex<z.getFirstRow()&&(G+=U.rowHeight)}),G>this.topContainerHeight&&(G=this.topContainerHeight),this.setOffsetTop(G)):(s.forEach(U=>{U.rowIndex>z.getLastRow()&&(G+=U.rowHeight)}),G>this.bottomContainerHeight&&(G=this.bottomContainerHeight),this.setOffsetBottom(G)),R?(d?this.stickyTopRowCtrls=T:this.stickyBottomRowCtrls=T,!0):!1}ensureRowHeightsValid(){let u=!1,s=r=>{let d=r.rowNode;if(d.rowHeightEstimated){let g=(0,A._getRowHeightForNode)(this.beans,d);d.setRowHeight(g.height),u=!0}};return this.stickyTopRowCtrls.forEach(s),this.stickyBottomRowCtrls.forEach(s),u}}p.StickyRowFeature=F;function D(v){var u,s,r,d;if(v.isExpandable()||v.footer){if(v.master)return v.detailNode.rowTop+v.detailNode.rowHeight;if(!v.sibling||Math.abs(v.sibling.rowIndex-v.rowIndex)===1){let m=(u=v.childStore)==null?void 0:u.getStoreBounds();return v.footer&&(m=(s=v.sibling.childStore)==null?void 0:s.getStoreBounds()),((r=m==null?void 0:m.heightPx)!=null?r:0)+((d=m==null?void 0:m.topPx)!=null?d:0)}return v.footer?v.rowTop+v.rowHeight:v.sibling.rowTop+v.sibling.rowHeight}return Number.MAX_SAFE_INTEGER}function f(v){if(v.isExpandable()||v.footer){if(v.footer&&v.rowIndex===0)return Number.MAX_SAFE_INTEGER;if(!v.sibling||Math.abs(v.sibling.rowIndex-v.rowIndex)===1){let r=v.footer?v.sibling:v;for(;r.isExpandable()&&r.expanded;)if(r.master)r=r.detailNode;else if(r.childrenAfterSort){if(r.childrenAfterSort.length===0)break;r=(0,A._last)(r.childrenAfterSort)}return r.rowTop+r.rowHeight}return v.footer?v.rowTop+v.rowHeight:v.sibling.rowTop+v.sibling.rowHeight}return Number.MAX_SAFE_INTEGER}},1998:function(x,p,M){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.StickyRowService=void 0;let A=M(6624),F=M(80);class D extends A.BeanStub{constructor(){super(...arguments),this.beanName="stickyRowSvc"}createStickyRowFeature(v,u,s){let r=this.gos;if((0,A._isGroupRowsSticky)(r)&&(0,A._isClientSideRowModel)(r)||(0,A._isServerSideRowModel)(r))return v.createManagedBean(new F.StickyRowFeature(u,s))}}p.StickyRowService=D},1538:function(x,p,M){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.BlockUtils=p.GROUP_MISSING_KEY_ID=void 0;let A=M(6624),F=M(6432);p.GROUP_MISSING_KEY_ID="ag-Grid-MissingKey";class D extends A.BeanStub{constructor(){super(...arguments),this.beanName="ssrmBlockUtils"}wireBeans(v){this.valueSvc=v.valueSvc,this.showRowGroupCols=v.showRowGroupCols,this.nodeManager=v.ssrmNodeManager,this.expansionSvc=v.expansionSvc,this.serverSideRowModel=v.rowModel,this.storeFactory=v.ssrmStoreFactory}createRowNode(v){let u=new A.RowNode(this.beans),s=v.rowHeight!=null?v.rowHeight:(0,A._getRowHeightAsNumber)(this.beans);return u.setRowHeight(s),u.group=v.group,u.leafGroup=v.leafGroup,u.level=v.level,u.uiLevel=v.level,u.parent=v.parent,u.stub=!0,u.__needsRefreshWhenVisible=!1,u.group&&(u.expanded=!1,u.field=v.field,u.rowGroupColumn=v.rowGroupColumn),u}destroyRowNode(v,u=!1){v.childStore&&!u&&(this.destroyBean(v.childStore),v.childStore=null),v.sibling&&!v.footer&&this.destroyRowNode(v.sibling,!1),v.clearRowTopAndRowIndex(),v.id!=null&&this.nodeManager.removeNode(v)}setTreeGroupInfo(v){v.updateHasChildren();let u=this.gos.get("getServerSideGroupKey"),s=v.hasChildren();s&&u!=null&&(v.key=u(v.data)),!s&&v.childStore!=null&&(this.destroyBean(v.childStore),v.childStore=null,v.expanded=!1)}setRowGroupInfo(v){if(v.key=this.valueSvc.getValue(v.rowGroupColumn,v),(v.key===null||v.key===void 0)&&(0,A._doOnce)(()=>{var d;(0,A._warn)(190,{rowGroupId:(d=v.rowGroupColumn)==null?void 0:d.getId(),data:v.data})},"SSBlock-BadKey"),this.gos.get("groupAllowUnbalanced")&&v.key===""){let d=this.serverSideRowModel.getParams();v.childStore=this.createBean(this.storeFactory.createStore(d,v))}(0,A._getGroupTotalRowCallback)(this.beans.gos)({node:v})&&((0,F._createRowNodeFooter)(v,this.beans),v.sibling&&(v.sibling.uiLevel=v.uiLevel+1))}setMasterDetailInfo(v){let u=this.gos.get("isRowMaster");u!=null?v.master=u(v.data):v.master=!0}updateDataIntoRowNode(v,u){v.updateData(u),this.gos.get("treeData")?(this.setTreeGroupInfo(v),this.setChildCountIntoRowNode(v)):v.group?(this.setChildCountIntoRowNode(v),v.footer||((0,A._getGroupTotalRowCallback)(this.beans.gos)({node:v})?v.sibling?v.sibling.updateData(u):(0,F._createRowNodeFooter)(v,this.beans):v.sibling&&(0,F._destroyRowNodeFooter)(v))):this.gos.get("masterDetail")}setDataIntoRowNode(v,u,s,r){var g;v.stub=!1;let d=this.gos.get("treeData");v.setDataAndId(u,s),d?this.setTreeGroupInfo(v):v.group?this.setRowGroupInfo(v):this.gos.get("masterDetail")&&this.setMasterDetailInfo(v),(d||v.group)&&(this.setGroupDataIntoRowNode(v),this.setChildCountIntoRowNode(v)),(0,A._exists)(u)&&(v.setRowHeight((0,A._getRowHeightForNode)(this.beans,v,!1,r).height),(g=v.sibling)==null||g.setRowHeight((0,A._getRowHeightForNode)(this.beans,v.sibling,!1,r).height))}setChildCountIntoRowNode(v){let u=this.gos.get("getChildCount");u&&v.setAllChildrenCount(u(v.data))}setGroupDataIntoRowNode(v){var r,d;let u=(d=(r=this.showRowGroupCols)==null?void 0:r.getShowRowGroupCols())!=null?d:[],s=this.gos.get("treeData");u.forEach(g=>{if(v.groupData==null&&(v.groupData={}),s)v.groupData[g.getColId()]=v.key;else if(g.isRowGroupDisplayed(v.rowGroupColumn.getId())){let m=this.valueSvc.getValue(v.rowGroupColumn,v);v.groupData[g.getColId()]=m}})}clearDisplayIndex(v){var r;v.clearRowTopAndRowIndex(),v.hasChildren()&&!!v.childStore&&((r=v.childStore)==null||r.clearDisplayIndexes()),v.master&&v.detailNode&&v.detailNode.clearRowTopAndRowIndex()}setDisplayIndex(v,u,s,r){let d=this.gos.get("groupAllowUnbalanced")&&v.group&&v.key==="";if(this.gos.get("groupHideOpenParents")&&v.group&&v.expanded||d?(v.setRowIndex(null),v.setRowTop(null)):(v.setRowIndex(u.value++),v.setRowTop(s.value),s.value+=v.rowHeight),v.setUiLevel(r),v.footer)return;if(v.master&&(v.expanded&&v.detailNode?(v.detailNode.setRowIndex(u.value++),v.detailNode.setRowTop(s.value),s.value+=v.detailNode.rowHeight):v.detailNode&&v.detailNode.clearRowTopAndRowIndex()),v.hasChildren()&&!!v.childStore){let w=v.childStore;v.expanded||d?w.setDisplayIndexes(u,s,d?r:r+1):w.clearDisplayIndexes()}}extractRowBounds(v,u){let s=r=>({rowHeight:r.rowHeight,rowTop:r.rowTop});if(v.rowIndex===u)return s(v);if(v.hasChildren()&&v.expanded&&v.childStore){let r=v.childStore;if(r.isDisplayIndexInStore(u))return r.getRowBounds(u)}else if(v.master&&v.expanded&&v.detailNode&&v.detailNode.rowIndex===u)return s(v.detailNode)}isPixelInNodeRange(v,u){return!(0,A._exists)(v.rowTop)||!(0,A._exists)(v.rowHeight)?!1:u>=v.rowTop&&u<v.rowTop+v.rowHeight}getIndexAtPixel(v,u){if(this.isPixelInNodeRange(v,u))return v.rowIndex;let s=v.master&&v.expanded,r=v.detailNode;if(s&&r&&this.isPixelInNodeRange(r,u))return v.detailNode.rowIndex;if(v.hasChildren()&&v.expanded&&v.childStore){let d=v.childStore;if(d.isPixelInRange(u))return d.getRowIndexAtPixel(u)}return null}createNodeIdPrefix(v){let u=[],s=v;for(;s&&s.level>=0;)s.key===""?u.push(p.GROUP_MISSING_KEY_ID):u.push(s.key),s=s.parent;if(u.length>0)return u.reverse().join("-")}checkOpenByDefault(v){var u;return(u=this.expansionSvc)==null?void 0:u.checkOpenByDefault(v)}}p.BlockUtils=D},8089:function(x,p,M){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.ExpandListener=void 0;let A=M(6624);class F extends A.BeanStub{constructor(){super(...arguments),this.beanName="ssrmExpandListener"}wireBeans(f){this.serverSideRowModel=f.rowModel,this.storeFactory=f.ssrmStoreFactory}postConstruct(){(0,A._isServerSideRowModel)(this.gos)&&this.addManagedEventListeners({rowGroupOpened:this.onRowGroupOpened.bind(this)})}onRowGroupOpened(f){let v=f.node;if(v.expanded){if(v.master)this.createDetailNode(v);else if((0,A._missing)(v.childStore)){let u=this.serverSideRowModel.getParams();v.childStore=this.createBean(this.storeFactory.createStore(u,v))}}else this.gos.get("purgeClosedRowNodes")&&(0,A._exists)(v.childStore)&&(v.childStore=this.destroyBean(v.childStore));this.eventSvc.dispatchEvent({type:"storeUpdated"})}createDetailNode(f){if((0,A._exists)(f.detailNode))return f.detailNode;let v=new A.RowNode(this.beans);v.detail=!0,v.selectable=!1,v.parent=f,(0,A._exists)(f.id)&&(v.id="detail_"+f.id),v.data=f.data,v.level=f.level+1;let u=200,s=(0,A._getRowHeightForNode)(this.beans,v).height;return v.rowHeight=s||u,f.detailNode=v,v}}p.ExpandListener=F},1999:function(x,p,M){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.FilterListener=void 0;let A=M(6624);class F extends A.BeanStub{constructor(){super(...arguments),this.beanName="ssrmFilterListener"}wireBeans(f){this.serverSideRowModel=f.rowModel,this.filterManager=f.filterManager,this.listenerUtils=f.ssrmListenerUtils}postConstruct(){(0,A._isServerSideRowModel)(this.gos)&&this.addManagedEventListeners({advancedFilterEnabledChanged:()=>this.onFilterChanged(!0),filterChanged:()=>this.onFilterChanged()})}onFilterChanged(f){var b,w,k;let v=this.serverSideRowModel.getParams();if(!v)return;let u=v.filterModel,s,r;if((b=this.filterManager)!=null&&b.isAdvFilterEnabled()){s=this.filterManager.getAdvFilterModel();let R=f?Object.keys(u!=null?u:{}):this.getAdvancedFilterColumns(u),T=this.getAdvancedFilterColumns(s);R.forEach(z=>T.add(z)),r=Array.from(T)}else if(s=(k=(w=this.filterManager)==null?void 0:w.getFilterModel())!=null?k:{},f){let R=this.getAdvancedFilterColumns(u);Object.keys(s).forEach(T=>R.add(T)),r=Array.from(R)}else r=this.findChangedColumns(u,s);let d=this.listenerUtils.isSortingWithValueColumn(r),g=this.listenerUtils.isSortingWithSecondaryColumn(r),m={valueColChanged:d,secondaryColChanged:g,changedColumns:r};this.serverSideRowModel.refreshAfterFilter(s,m)}findChangedColumns(f,v){let u={};Object.keys(f).forEach(r=>u[r]=!0),Object.keys(v).forEach(r=>u[r]=!0);let s=[];return Object.keys(u).forEach(r=>{let d=JSON.stringify(f[r]),g=JSON.stringify(v[r]);d!=g&&s.push(r)}),s}getAdvancedFilterColumns(f){let v=new Set;if(!f)return v;let u=s=>{s.filterType==="join"?s.conditions.forEach(r=>u(r)):v.add(s.colId)};return u(f),v}}p.FilterListener=F},5956:function(x,p,M){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.ListenerUtils=void 0;let A=M(6624);class F extends A.BeanStub{constructor(){super(...arguments),this.beanName="ssrmListenerUtils"}wireBeans(f){this.pivotResultCols=f.pivotResultCols,this.valueColsSvc=f.valueColsSvc}isSortingWithValueColumn(f){var u,s;let v=((s=(u=this.valueColsSvc)==null?void 0:u.columns)!=null?s:[]).map(r=>r.getColId());for(let r=0;r<f.length;r++)if(v.indexOf(f[r])>-1)return!0;return!1}isSortingWithSecondaryColumn(f){var s;let v=(s=this.pivotResultCols)==null?void 0:s.getPivotResultCols();if(!v)return!1;let u=v.list.map(r=>r.getColId());for(let r=0;r<f.length;r++)if(u.indexOf(f[r])>-1)return!0;return!1}}p.ListenerUtils=F},6533:function(x,p,M){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.SortListener=void 0;let A=M(6624);class F extends A.BeanStub{constructor(){super(...arguments),this.beanName="ssrmSortSvc"}wireBeans(f){this.sortSvc=f.sortSvc,this.serverSideRowModel=f.rowModel,this.listenerUtils=f.ssrmListenerUtils}postConstruct(){(0,A._isServerSideRowModel)(this.gos)&&this.addManagedEventListeners({sortChanged:this.onSortChanged.bind(this)})}onSortChanged(){let f=this.serverSideRowModel.getParams();if(!f)return;let v=this.sortSvc.getSortModel(),u=f.sortModel,s=this.findChangedColumnsInSort(v,u),r=this.listenerUtils.isSortingWithValueColumn(s),d=this.listenerUtils.isSortingWithSecondaryColumn(s),g={valueColChanged:r,secondaryColChanged:d,changedColumns:s};this.serverSideRowModel.refreshAfterSort(v,g)}findChangedColumnsInSort(f,v){let u=[];[f,v].forEach(d=>{if(d){let g=d.map(m=>m.colId);u=u.concat(g)}});let s=(d,g)=>{let m=d?d.sort:null,b=g?g.sort:null;return m!==b},r=(d,g)=>{let m=d?v.indexOf(d):-1,b=g?f.indexOf(g):-1;return m!==b};return u.filter(d=>{let g=v.find(b=>b.colId===d),m=f.find(b=>b.colId===d);return s(g,m)||r(g,m)})}}p.SortListener=F},9140:function(x,p,M){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.NodeManager=void 0;let A=M(6624);class F extends A.BeanStub{constructor(){super(...arguments),this.beanName="ssrmNodeManager",this.rowNodes={}}addRowNode(f){let v=f.id;this.rowNodes[v]&&(0,A._warn)(187,{rowId:v,firstData:this.rowNodes[v].data,secondData:f.data}),this.rowNodes[v]=f}removeNode(f){let v=f.id;this.rowNodes[v]&&(this.rowNodes[v]=void 0)}destroy(){this.clear(),super.destroy()}clear(){this.rowNodes={},super.destroy()}}p.NodeManager=F},8646:function(x,p,M){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.ServerSideRowModel=void 0;let A=M(6624);class F extends A.BeanStub{constructor(){super(...arguments),this.beanName="rowModel",this.onRowHeightChanged_debounced=(0,A._debounce)(this,this.onRowHeightChanged.bind(this),100),this.pauseStoreUpdateListening=!1,this.started=!1,this.managingPivotResultColumns=!1}wireBeans(f){this.colModel=f.colModel,this.colNames=f.colNames,this.pivotResultCols=f.pivotResultCols,this.rowGroupColsSvc=f.rowGroupColsSvc,this.pivotColsSvc=f.pivotColsSvc,this.valueColsSvc=f.valueColsSvc,this.filterManager=f.filterManager,this.sortSvc=f.sortSvc,this.rowRenderer=f.rowRenderer,this.nodeManager=f.ssrmNodeManager,this.storeFactory=f.ssrmStoreFactory,this.pivotColDefSvc=f.pivotColDefSvc}ensureRowHeightsValid(){return!1}start(){this.started=!0,this.updateDatasource()}destroyDatasource(){this.datasource&&(this.datasource.destroy&&this.datasource.destroy(),this.rowRenderer.datasourceChanged(),this.datasource=void 0)}postConstruct(){let f=this.resetRootStore.bind(this);this.addManagedEventListeners({newColumnsLoaded:this.onColumnEverything.bind(this),storeUpdated:this.onStoreUpdated.bind(this),columnValueChanged:f,columnPivotChanged:f,columnRowGroupChanged:f,columnPivotModeChanged:f}),this.addManagedPropertyListeners(["masterDetail","treeData","removePivotHeaderRowWhenSingleValueColumn","cacheBlockSize"],f),this.addManagedPropertyListener("groupAllowUnbalanced",()=>this.onStoreUpdated()),this.addManagedPropertyListener("rowHeight",()=>this.resetRowHeights()),this.verifyProps(),this.addManagedPropertyListener("serverSideDatasource",()=>this.updateDatasource())}updateDatasource(){let f=this.gos.get("serverSideDatasource");f&&this.setDatasource(f)}verifyProps(){(0,A._isRowSelection)(this.gos)&&!this.gos.exists("getRowId")&&(0,A._warn)(188)}setDatasource(f){this.started&&(this.destroyDatasource(),this.datasource=f,this.resetRootStore())}applyRowData(f,v,u){let s=this.getRootStore();if(!s)return;let r=s.getChildStore(u);r&&r.applyRowData(f,v,f.rowData.length)}isLastRowIndexKnown(){let f=this.getRootStore();return f?f.isLastRowIndexKnown():!1}onColumnEverything(){var w,k,R,T,z;if(!this.storeParams){this.resetRootStore();return}let f=this.columnsToValueObjects((w=this.rowGroupColsSvc)==null?void 0:w.columns),v=this.columnsToValueObjects((k=this.valueColsSvc)==null?void 0:k.columns),u=this.columnsToValueObjects((R=this.pivotColsSvc)==null?void 0:R.columns),s=G=>{let U={};G.oldCols.forEach(oe=>U[oe.id]=oe);let X=G.newCols.every(oe=>{let le=U[oe.id];return le&&delete U[oe.id],le&&le.field===oe.field&&le.aggFunc===oe.aggFunc}),Q=!G.allowRemovedColumns&&!!Object.values(U).length;return X&&!Q},r=!(0,A._jsonEquals)(this.storeParams.sortModel,(z=(T=this.sortSvc)==null?void 0:T.getSortModel())!=null?z:[]),d=!s({oldCols:this.storeParams.rowGroupCols,newCols:f}),g=!s({oldCols:this.storeParams.pivotCols,newCols:u}),m=!!(f!=null&&f.length)&&!s({oldCols:this.storeParams.valueCols,newCols:v,allowRemovedColumns:!0});if(r||d||g||m)this.resetRootStore();else{let G=this.createStoreParams();this.storeParams.rowGroupCols=G.rowGroupCols,this.storeParams.pivotCols=G.pivotCols,this.storeParams.valueCols=G.valueCols}}destroyRootStore(){!this.rootNode||!this.rootNode.childStore||(this.rootNode.childStore=this.destroyBean(this.rootNode.childStore),this.nodeManager.clear())}refreshAfterSort(f,v){this.storeParams&&(this.storeParams.sortModel=f);let u=this.getRootStore();u&&(u.refreshAfterSort(v),this.onStoreUpdated())}generateSecondaryColumns(f){var u;if(!this.pivotColDefSvc){this.gos.assertModuleRegistered("SharedPivot",2);return}let v=this.pivotColDefSvc.createColDefsFromFields(f);this.managingPivotResultColumns=!0,(u=this.pivotResultCols)==null||u.setPivotResultCols(v,"rowModelUpdated")}resetRowHeights(){let f=this.resetRowHeightsForAllRowNodes(),v=(0,A._getRowHeightForNode)(this.beans,this.rootNode);if(this.rootNode.setRowHeight(v.height,v.estimated),this.rootNode.sibling){let u=(0,A._getRowHeightForNode)(this.beans,this.rootNode.sibling);this.rootNode.sibling.setRowHeight(u.height,u.estimated)}f&&this.onRowHeightChanged()}resetRowHeightsForAllRowNodes(){let f=!1;return this.forEachNode(v=>{let u=(0,A._getRowHeightForNode)(this.beans,v);v.setRowHeight(u.height,u.estimated);let s=v.detailNode;if(s){let r=(0,A._getRowHeightForNode)(this.beans,s);s.setRowHeight(r.height,r.estimated)}if(v.sibling){let r=(0,A._getRowHeightForNode)(this.beans,v.sibling);s.setRowHeight(r.height,r.estimated)}f=!0}),f}resetRootStore(){var f;this.destroyRootStore(),this.rootNode=new A.RowNode(this.beans),this.rootNode.group=!0,this.rootNode.level=-1,this.datasource&&(this.storeParams=this.createStoreParams(),this.rootNode.childStore=this.createBean(this.storeFactory.createStore(this.storeParams,this.rootNode)),this.updateRowIndexesAndBounds()),this.managingPivotResultColumns&&((f=this.pivotResultCols)==null||f.setPivotResultCols(null,"api"),this.managingPivotResultColumns=!1),this.dispatchModelUpdated(!0)}columnsToValueObjects(f=[]){return f.map(v=>({id:v.getId(),aggFunc:v.getAggFunc(),displayName:this.colNames.getDisplayNameForColumn(v,"model"),field:v.getColDef().field}))}createStoreParams(){var d,g,m,b,w,k,R,T,z;let f=this.columnsToValueObjects((d=this.rowGroupColsSvc)==null?void 0:d.columns),v=this.columnsToValueObjects((g=this.valueColsSvc)==null?void 0:g.columns),u=this.columnsToValueObjects((m=this.pivotColsSvc)==null?void 0:m.columns),s=(0,A._isGetRowHeightFunction)(this.gos);return{valueCols:v,rowGroupCols:f,pivotCols:u,pivotMode:this.colModel.isPivotMode(),filterModel:(b=this.filterManager)!=null&&b.isAdvFilterEnabled()?(w=this.filterManager)==null?void 0:w.getAdvFilterModel():(R=(k=this.filterManager)==null?void 0:k.getFilterModel())!=null?R:{},sortModel:(z=(T=this.sortSvc)==null?void 0:T.getSortModel())!=null?z:[],datasource:this.datasource,lastAccessedSequence:{value:0},dynamicRowHeight:s}}getParams(){return this.storeParams}dispatchModelUpdated(f=!1){this.eventSvc.dispatchEvent({type:"modelUpdated",animate:!f,keepRenderedRows:!f,newPage:!1,newData:!1})}onStoreUpdated(){this.pauseStoreUpdateListening||(this.updateRowIndexesAndBounds(),this.dispatchModelUpdated())}onRowHeightChangedDebounced(){this.onRowHeightChanged_debounced()}onRowHeightChanged(){this.updateRowIndexesAndBounds(),this.dispatchModelUpdated()}updateRowIndexesAndBounds(){let f=this.getRootStore();f&&f.setDisplayIndexes({value:0},{value:0},0)}retryLoads(){let f=this.getRootStore();f&&(f.retryLoads(),this.onStoreUpdated())}getRow(f){let v=this.getRootStore();if(v)return v.getRowUsingDisplayIndex(f)}setPaused(f){this.pauseStoreUpdateListening=f}expandAll(f){this.pauseStoreUpdateListening=!0,this.forEachNode(v=>{v.stub||v.hasChildren()&&v.setExpanded(f)}),this.pauseStoreUpdateListening=!1,this.onStoreUpdated()}refreshAfterFilter(f,v){this.storeParams&&(this.storeParams.filterModel=f);let u=this.getRootStore();u&&(u.refreshAfterFilter(v),this.onStoreUpdated())}getRootStore(){var f;return(f=this.rootNode)==null?void 0:f.childStore}getRowCount(){let f=this.getRootStore();return f?f.getDisplayIndexEnd():0}getTopLevelRowCount(){let f=this.getRootStore();return f?f.getRowCount():1}getTopLevelRowDisplayedIndex(f){let v=this.getRootStore();return v?v.getTopLevelRowDisplayedIndex(f):f}getRowBounds(f){let v=this.getRootStore();return v?v.getRowBounds(f):{rowTop:0,rowHeight:(0,A._getRowHeightAsNumber)(this.beans)}}getBlockStates(){let f=this.getRootStore();if(!f)return;let v={};return f.forEachStoreDeep(u=>{Object.entries(u.getBlockStates()).forEach(([s,r])=>{v[s]=r})}),v}getRowIndexAtPixel(f){let v=this.getRootStore();return f<=0||!v?0:v.getRowIndexAtPixel(f)}isEmpty(){return!1}isRowsToRender(){return this.getRootStore()!=null&&this.getRowCount()>0}getType(){return"serverSide"}forEachNode(f){let v=this.getRootStore();v&&v.forEachNodeDeep(f)}forEachNodeAfterFilterAndSort(f,v=!1){let u=this.getRootStore();u&&u.forEachNodeDeepAfterFilterAndSort(f,void 0,v)}executeOnStore(f,v){if(!this.started)return!1;let u=this.getRootStore();if(!u)return!0;let s=u.getChildStore(f);return s&&v(s),!0}refreshStore(f={}){let v=f.route?f.route:[];this.executeOnStore(v,u=>u.refreshStore(f.purge==!0))}getStoreState(){let f=[],v=this.getRootStore();return v&&v.addStoreStates(f),f}getNodesInRangeForSelection(f,v){let u=f.rowIndex,s=v.rowIndex;if(u===null&&s===null)return[];if(s===null)return f?[f]:[];if(u===null)return[v];let r=[],[d,g]=[u,s].sort((m,b)=>m-b);return this.forEachNode(m=>{let b=m.rowIndex;b==null||m.stub||b>=d&&b<=g&&r.push(m)}),r.length!==g-d+1?null:r}getRowNode(f){let v;return this.forEachNode(u=>{u.id===f&&(v=u),u.detailNode&&u.detailNode.id===f&&(v=u.detailNode)}),v}isRowPresent(f){return!!this.getRowNode(f.id)}setRowCount(f,v){let u=this.getRootStore();u&&u.setRowCount(f,v)}destroy(){this.destroyDatasource(),this.destroyRootStore(),super.destroy()}}p.ServerSideRowModel=F},5868:function(x,p,M){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.getServerSideGroupLevelState=p.refreshServerSide=p.flushServerSideAsyncTransactions=p.retryServerSideLoads=p.applyServerSideTransactionAsync=p.applyServerSideRowData=p.applyServerSideTransaction=p.setServerSideSelectionState=p.getServerSideSelectionState=void 0;let A=M(6624);function F(m){var b,w;return(w=(b=m.selectionSvc)==null?void 0:b.getSelectionState())!=null?w:null}p.getServerSideSelectionState=F;function D(m,b){var w;(w=m.selectionSvc)==null||w.setSelectionState(b,"api")}p.setServerSideSelectionState=D;function f(m,b){var w;return(w=m.ssrmTxnManager)==null?void 0:w.applyTransaction(b)}p.applyServerSideTransaction=f;function v(m,b){var R,T,z;let w=(R=b.startRow)!=null?R:0,k=(T=b.route)!=null?T:[];if(w<0){(0,A._warn)(189,{startRow:w});return}(z=(0,A._getServerSideRowModel)(m))==null||z.applyRowData(b.successParams,w,k)}p.applyServerSideRowData=v;function u(m,b,w){var k;return(k=m.ssrmTxnManager)==null?void 0:k.applyTransactionAsync(b,w)}p.applyServerSideTransactionAsync=u;function s(m){var b;(b=(0,A._getServerSideRowModel)(m))==null||b.retryLoads()}p.retryServerSideLoads=s;function r(m){var b;return(b=m.ssrmTxnManager)==null?void 0:b.flushAsyncTransactions()}p.flushServerSideAsyncTransactions=r;function d(m,b){var w;(w=(0,A._getServerSideRowModel)(m))==null||w.refreshStore(b)}p.refreshServerSide=d;function g(m){var b,w;return(w=(b=(0,A._getServerSideRowModel)(m))==null?void 0:b.getStoreState())!=null?w:[]}p.getServerSideGroupLevelState=g},9074:function(x,p,M){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.ServerSideRowModelApiModule=p.ServerSideRowModelModule=void 0;let A=M(6624),F=M(9206),D=M(7672),f=M(5470),v=M(9428),u=M(7205),s=M(1538),r=M(8089),d=M(1999),g=M(5956),m=M(6533),b=M(9140),w=M(8646),k=M(5868),R=M(2758),T=M(8299),z=M(3803),G=M(8865),U=M(2697),X=M(2234),Q=M(7332);p.ServerSideRowModelModule={moduleName:"ServerSideRowModel",version:u.VERSION,rowModels:["serverSide"],beans:[w.ServerSideRowModel,r.ExpandListener,X.StoreUtils,s.BlockUtils,b.NodeManager,Q.TransactionManager,d.FilterListener,U.StoreFactory,g.ListenerUtils,T.ServerSideSelectionService,G.LazyBlockLoadingService,z.SsrmRowChildrenService,R.ServerSideExpansionService,m.SortListener],dependsOn:[F.EnterpriseCoreModule,A._SortModule,A._SharedRowSelectionModule,f.SharedPivotModule,v.SharedTreeDataModule,D.LoadingCellRendererModule,D.SkeletonCellRendererModule]},p.ServerSideRowModelApiModule={moduleName:"ServerSideRowModelApi",version:u.VERSION,rowModels:["serverSide"],apiFunctions:{getServerSideSelectionState:k.getServerSideSelectionState,setServerSideSelectionState:k.setServerSideSelectionState,applyServerSideTransaction:k.applyServerSideTransaction,applyServerSideTransactionAsync:k.applyServerSideTransactionAsync,applyServerSideRowData:k.applyServerSideRowData,retryServerSideLoads:k.retryServerSideLoads,flushServerSideAsyncTransactions:k.flushServerSideAsyncTransactions,refreshServerSide:k.refreshServerSide,getServerSideGroupLevelState:k.getServerSideGroupLevelState},dependsOn:[F.EnterpriseCoreModule,A._CsrmSsrmSharedApiModule,A._SsrmInfiniteSharedApiModule]}},2147:function(x,p,M){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.DefaultStrategy=void 0;let A=M(6624);class F extends A.BeanStub{constructor(){super(...arguments),this.selectedState={selectAll:!1,toggledNodes:new Set},this.selectAllUsed=!1,this.selectedNodes={}}wireBeans(f){this.rowModel=f.rowModel,this.selectionSvc=f.selectionSvc}getSelectedState(){return{selectAll:this.selectedState.selectAll,toggledNodes:[...this.selectedState.toggledNodes]}}setSelectedState(f){if(typeof f!="object"){(0,A._error)(115);return}if(!("selectAll"in f)){(0,A._error)(116);return}if(typeof f.selectAll!="boolean"){(0,A._error)(117);return}if(!("toggledNodes"in f)||!Array.isArray(f.toggledNodes))return(0,A._warn)(197);let v={selectAll:f.selectAll,toggledNodes:new Set};f.toggledNodes.forEach(s=>{typeof s=="string"?v.toggledNodes.add(s):(0,A._warn)(196,{key:s})});let u=v.selectAll||v.toggledNodes.size>1;if((0,A._isUsingNewRowSelectionAPI)(this.gos)&&!(0,A._isMultiRowSelection)(this.gos)&&u){(0,A._warn)(198);return}this.selectedState=v}deleteSelectionStateFromParent(f,v){if(this.selectedState.toggledNodes.size===0)return!1;let u=!1;return v.forEach(s=>{this.selectedState.toggledNodes.delete(s)&&(u=!0)}),u}setNodesSelected(f){let{nodes:v,clearSelection:u,newValue:s}=f;if(v.length===0)return 0;let r=u&&s;if(!(0,A._isMultiRowSelection)(this.gos)||r){if(v.length>1)return(0,A._error)(241),0;let g=v[0],m=g.footer?g.sibling:g;return s&&m.selectable?(this.selectedNodes={[m.id]:m},this.selectedState={selectAll:!1,toggledNodes:new Set([m.id])}):(this.selectedNodes={},this.selectedState={selectAll:!1,toggledNodes:new Set}),1}let d=(g,m=s)=>{let b=g.footer?g.sibling:g;m&&b.selectable?this.selectedNodes[b.id]=b:delete this.selectedNodes[b.id],m===this.selectedState.selectAll||!b.selectable?this.selectedState.toggledNodes.delete(b.id):this.selectedState.toggledNodes.add(b.id)};return v.forEach(g=>d(g)),1}processNewRow(f){this.selectedNodes[f.id]&&(this.selectedNodes[f.id]=f)}isNodeSelected(f){let v=this.selectedState.toggledNodes.has(f.id);return this.selectedState.selectAll?!v:v}getSelectedNodes(){return this.selectAllUsed&&(0,A._warn)(199),Object.values(this.selectedNodes)}getSelectedRows(){return this.getSelectedNodes().map(f=>f.data)}getSelectionCount(){return this.selectedState.selectAll?-1:this.selectedState.toggledNodes.size}isEmpty(){var f;return!this.selectedState.selectAll&&!((f=this.selectedState.toggledNodes)!=null&&f.size)}selectAllRowNodes(){this.selectedState={selectAll:!0,toggledNodes:new Set},this.selectedNodes={},this.selectAllUsed=!0}deselectAllRowNodes(){this.selectedState={selectAll:!1,toggledNodes:new Set},this.selectedNodes={}}getSelectAllState(){return this.selectedState.selectAll?this.selectedState.toggledNodes.size>0?null:!0:this.selectedState.toggledNodes.size>0?null:!1}}p.DefaultStrategy=F},9149:function(x,p,M){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.GroupSelectsChildrenStrategy=void 0;let A=M(6624);class F extends A.BeanStub{constructor(){super(...arguments),this.selectedState={selectAllChildren:!1,toggledNodes:new Map}}wireBeans(f){this.rowModel=f.rowModel,this.rowGroupColsSvc=f.rowGroupColsSvc,this.filterManager=f.filterManager,this.selectionSvc=f.selectionSvc}postConstruct(){this.addManagedEventListeners({modelUpdated:()=>this.removeRedundantState(),columnRowGroupChanged:()=>this.selectionSvc.reset("rowGroupChanged")})}getSelectedState(){let f=this.gos.get("treeData"),v=(u,s,r)=>{var g;let d={nodeId:r};if((f||this.rowGroupColsSvc&&s<=((g=this.rowGroupColsSvc)==null?void 0:g.columns.length))&&(d.selectAllChildren=u.selectAllChildren),u.toggledNodes.size){let m=[];u.toggledNodes.forEach((b,w)=>{let k=v(b,s+1,w);m.push(k)}),d.toggledNodes=m}return d};return v(this.selectedState,0)}setSelectedState(f){if("selectAll"in f){(0,A._error)(111);return}let v=(u,s)=>{var m,b;if(typeof u!="object")throw(0,A._error)(243),new Error;if("selectAllChildren"in u&&typeof u.selectAllChildren!="boolean")throw(0,A._error)(244),new Error;if("toggledNodes"in u){if(!Array.isArray(u.toggledNodes))throw(0,A._error)(245),new Error;if(!u.toggledNodes.every(k=>typeof k=="object"&&"nodeId"in k&&typeof k.nodeId=="string"))throw(0,A._error)(246),new Error}let r=(m=u.selectAllChildren)!=null?m:!s,d=(b=u.toggledNodes)==null?void 0:b.map(w=>[w.nodeId,v(w,r)]);if(d==null?void 0:d.some(([,w])=>r===w.selectAllChildren&&w.toggledNodes.size===0))throw(0,A._error)(247),new Error;return{selectAllChildren:r,toggledNodes:new Map(d)}};try{this.selectedState=v(f,!!f.selectAllChildren)}catch(u){}}deleteSelectionStateFromParent(f,v){let u=this.selectedState,s=[...f];for(;u&&s.length;)u=u.toggledNodes.get(s.pop());if(!u)return!1;let r=!1;return v.forEach(d=>{u!=null&&u.toggledNodes.delete(d)&&(r=!0)}),r&&this.removeRedundantState(),r}setNodesSelected({nodes:f,newValue:v,clearSelection:u}){if(f.length===0)return 0;let s=u&&v;if(!(0,A._isMultiRowSelection)(this.gos)||s){if(f.length>1)return(0,A._error)(241),0;this.deselectAllRowNodes()}return f.forEach(r=>{let d=r.footer?r.sibling:r,g=this.getRouteToNode(d);this.recursivelySelectNode(g,this.selectedState,v)}),this.removeRedundantState(),1}isNodeSelected(f){let v=this.getRouteToNode(f);return this.isNodePathSelected(v,this.selectedState)}isNodePathSelected([f,...v],u){if(v.length===0){let s=u.toggledNodes.has(f.id);if(f.hasChildren()){let r=u.toggledNodes.get(f.id);if(r&&r.toggledNodes.size)return}return u.selectAllChildren?!s:s}if(u.toggledNodes.has(f.id)){let s=u.toggledNodes.get(f.id);if(s)return this.isNodePathSelected(v,s)}return u.selectAllChildren}getRouteToNode(f){let v=[],u=f;for(;u.parent;)v.push(u),u=u.parent;return v.reverse()}removeRedundantState(){var v;if((v=this.filterManager)!=null&&v.isAnyFilterPresent())return;let f=(u=this.selectedState,s,r)=>{if(u.toggledNodes.forEach((m,b)=>{f(m,b,u)}),s){let m=this.rowModel.getRowNode(s),b=m==null?void 0:m.childStore;if((b==null?void 0:b.isLastRowIndexKnown())&&u.toggledNodes.size>=b.getRowCount()){for(let R of u.toggledNodes.entries()){let[T,z]=R;if(z.toggledNodes.size>0||!this.rowModel.getRowNode(T))return}u.selectAllChildren=!u.selectAllChildren,u.toggledNodes.clear()}}let d=u.toggledNodes.size===0,g=(r==null?void 0:r.selectAllChildren)===u.selectAllChildren;d&&g&&(r==null||r.toggledNodes.delete(s))};f()}recursivelySelectNode([f,...v],u,s){var m;if(!f)return;if(!v.length){let b=f.selectable;if(u.selectAllChildren===s||!b){u.toggledNodes.delete(f.id);return}let k={selectAllChildren:s,toggledNodes:new Map};u.toggledNodes.set(f.id,k);return}let d=u.toggledNodes.has(f.id),g=(m=u.toggledNodes.get(f.id))!=null?m:{selectAllChildren:u.selectAllChildren,toggledNodes:new Map};d||u.toggledNodes.set(f.id,g),this.recursivelySelectNode(v,g,s),u.selectAllChildren===g.selectAllChildren&&g.toggledNodes.size===0&&u.toggledNodes.delete(f.id)}getSelectedNodes(){(0,A._warn)(202);let f=[];return this.rowModel.forEachNode(v=>{v.isSelected()&&f.push(v)}),f}processNewRow(){}getSelectedRows(){return this.getSelectedNodes().map(f=>f.data)}getSelectionCount(){return-1}isEmpty(){var f;return!this.selectedState.selectAllChildren&&!((f=this.selectedState.toggledNodes)!=null&&f.size)}selectAllRowNodes(){this.selectedState={selectAllChildren:!0,toggledNodes:new Map}}deselectAllRowNodes(){this.selectedState={selectAllChildren:!1,toggledNodes:new Map}}getSelectAllState(){return this.selectedState.selectAllChildren?this.selectedState.toggledNodes.size>0?null:!0:this.selectedState.toggledNodes.size>0?null:!1}}p.GroupSelectsChildrenStrategy=F},2758:function(x,p,M){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.ServerSideExpansionService=void 0;let A=M(2560);class F extends A.BaseExpansionService{constructor(){super(...arguments),this.beanName="expansionSvc",this.queuedRowIds=new Set}wireBeans(f){this.serverSideRowModel=f.rowModel}postConstruct(){this.addManagedEventListeners({columnRowGroupChanged:()=>{this.queuedRowIds.clear()}})}checkOpenByDefault(f){if(!f.isExpandable())return;if(this.queuedRowIds.has(f.id)){this.queuedRowIds.delete(f.id),f.setExpanded(!0);return}let v=this.gos.getCallback("isServerSideGroupOpenByDefault");if(!v)return;let u={data:f.data,rowNode:f};v(u)&&f.setExpanded(!0)}expandRows(f){f.forEach(v=>{let u=this.serverSideRowModel.getRowNode(v);u?u.setExpanded(!0):this.queuedRowIds.add(v)})}expandAll(f){this.serverSideRowModel.expandAll(f)}onGroupExpandedOrCollapsed(){}dispatchExpandedEvent(f){this.eventSvc.dispatchEvent(f)}}p.ServerSideExpansionService=F},8299:function(x,p,M){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.ServerSideSelectionService=void 0;let A=M(6624),F=M(2147),D=M(9149);class f extends A.BaseSelectionService{constructor(){super(...arguments),this.beanName="selectionSvc"}postConstruct(){super.postConstruct(),this.addManagedPropertyListeners(["groupSelectsChildren","rowSelection"],()=>{let d=(0,A._getGroupSelectsDescendants)(this.gos),g=d&&this.selectionStrategy instanceof F.DefaultStrategy?D.GroupSelectsChildrenStrategy:!d&&this.selectionStrategy instanceof D.GroupSelectsChildrenStrategy?F.DefaultStrategy:void 0;g&&(this.destroyBean(this.selectionStrategy),this.selectionStrategy=this.createManagedBean(new g),this.shotgunResetNodeSelectionState(),this.dispatchSelectionChanged("api"))}),this.addManagedPropertyListeners(["rowSelection"],()=>{let d=(0,A._getRowSelectionMode)(this.gos);d!==this.selectionMode&&(this.selectionMode=d,this.deselectAllRowNodes({source:"api"}))}),this.selectionMode=(0,A._getRowSelectionMode)(this.gos);let r=(0,A._getGroupSelectsDescendants)(this.gos)?D.GroupSelectsChildrenStrategy:F.DefaultStrategy;this.selectionStrategy=this.createManagedBean(new r)}handleSelectionEvent(s,r,d){if(this.isRowSelectionBlocked(r))return 0;let g=0,m=this.inferNodeSelections(r,s.shiftKey,s.metaKey||s.ctrlKey,d);return m==null?0:("select"in m?(m.reset?this.selectionStrategy.deselectAllRowNodes({source:"api"}):this.selectionStrategy.setNodesSelected({nodes:m.deselect,newValue:!1,source:d}),g=this.selectionStrategy.setNodesSelected({nodes:m.select,newValue:!0,source:d})):g=this.selectionStrategy.setNodesSelected({nodes:[m.node],newValue:m.newValue,clearSelection:m.clearSelection,event:s,source:d}),this.shotgunResetNodeSelectionState(),this.dispatchSelectionChanged(d),g)}getSelectionState(){return this.selectionStrategy.getSelectedState()}setSelectionState(s,r){if(!(0,A._isRowSelection)(this.gos)){(0,A._warn)(132);return}Array.isArray(s)||(this.selectionStrategy.setSelectedState(s),this.shotgunResetNodeSelectionState(),this.dispatchSelectionChanged(r))}setNodesSelected(s){if(!(0,A._isRowSelection)(this.gos)&&s.newValue)return(0,A._warn)(132),0;let b=s,{nodes:r}=b,d=ji(b,["nodes"]);if(r.length>1&&this.selectionMode!=="multiRow")return(0,A._warn)(130),0;let g=pe({nodes:r.filter(w=>w.selectable)},d);if(!g.nodes.length)return 0;let m=this.selectionStrategy.setNodesSelected(g);return this.shotgunResetNodeSelectionState(g.source),this.dispatchSelectionChanged(g.source),m}deleteSelectionStateFromParent(s,r){this.selectionStrategy.deleteSelectionStateFromParent(s,r)&&(this.shotgunResetNodeSelectionState(),this.dispatchSelectionChanged("api"))}shotgunResetNodeSelectionState(s){this.beans.rowModel.forEachNode(r=>{if(r.stub)return;let d=this.selectionStrategy.isNodeSelected(r);d!==r.isSelected()&&this.selectRowNode(r,d,void 0,s)})}getSelectedNodes(){return this.selectionStrategy.getSelectedNodes()}getSelectedRows(){return this.selectionStrategy.getSelectedRows()}getSelectionCount(){return this.selectionStrategy.getSelectionCount()}syncInRowNode(s){this.selectionStrategy.processNewRow(s);let r=this.selectionStrategy.isNodeSelected(s);if(r!=!1&&!s.selectable){this.selectionStrategy.setNodesSelected({nodes:[s],newValue:!1,source:"api"}),this.shotgunResetNodeSelectionState(),this.dispatchSelectionChanged("api");return}s.__selected=r}reset(){this.selectionStrategy.deselectAllRowNodes({source:"api"}),this.selectionCtx.reset()}isEmpty(){return this.selectionStrategy.isEmpty()}hasNodesToSelect(){return!0}selectAllRowNodes(s){if(!(0,A._isRowSelection)(this.gos)){(0,A._warn)(132);return}if(v(s),(0,A._isUsingNewRowSelectionAPI)(this.gos)&&!(0,A._isMultiRowSelection)(this.gos))return(0,A._warn)(130);this.selectionStrategy.selectAllRowNodes(s),this.selectionCtx.reset(),this.beans.rowModel.forEachNode(r=>{r.stub||this.selectRowNode(r,!0,void 0,s.source)}),this.dispatchSelectionChanged(s.source)}deselectAllRowNodes(s){v(s),this.selectionStrategy.deselectAllRowNodes(s),this.selectionCtx.reset(),this.beans.rowModel.forEachNode(r=>{r.stub||this.selectRowNode(r,!1,void 0,s.source)}),this.dispatchSelectionChanged(s.source)}getSelectAllState(s){return this.selectionStrategy.getSelectAllState(s)}getBestCostNodeSelection(){return(0,A._warn)(194,{method:"getBestCostNodeSelection"})}updateSelectable(){if(!(0,A._isRowSelection)(this.gos))return;let s=[];this.beans.rowModel.forEachNode(r=>{!this.updateRowSelectable(r,!0)&&r.isSelected()&&s.push(r)}),s.length&&this.setNodesSelected({nodes:s,newValue:!1,source:"selectableChanged"})}updateSelectableAfterGrouping(){return(0,A._error)(194,{method:"updateSelectableAfterGrouping"})}}p.ServerSideSelectionService=f;function v({selectAll:u}){(u==="filtered"||u==="currentPage")&&(0,A._warn)(195,{justCurrentPage:u==="currentPage"})}},3803:function(x,p,M){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.SsrmRowChildrenService=void 0;let A=M(6624);class F extends A.BeanStub{constructor(){super(...arguments),this.beanName="rowChildrenSvc"}getHasChildrenValue(f){let v=this.gos.get("treeData"),u=this.gos.get("isServerSideGroup");return!f.stub&&!f.footer&&(v?!!u&&u(f.data):!!f.group)}}p.SsrmRowChildrenService=F},8865:function(x,p,M){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.LazyBlockLoadingService=void 0;let A=M(6624);class F extends A.BeanStub{constructor(){super(...arguments),this.beanName="lazyBlockLoadingSvc",this.outboundRequests=0,this.cacheLoadingNodesMap=new Map,this.isCheckQueued=!1,this.nextBlockToLoad=void 0}wireBeans(f){this.rowRenderer=f.rowRenderer,this.rowModel=f.rowModel}postConstruct(){this.maxOutboundRequests=(0,A._getMaxConcurrentDatasourceRequests)(this.gos)}subscribe(f){this.cacheLoadingNodesMap.set(f,new Set)}unsubscribe(f){this.cacheLoadingNodesMap.delete(f)}queueLoadCheck(){this.isCheckQueued||(this.isCheckQueued=!0,window.queueMicrotask(()=>{this.queueLoadAction(),this.isCheckQueued=!1}))}onLoadComplete(){this.outboundRequests-=1,this.queueLoadCheck()}hasAvailableLoadBandwidth(){return this.maxOutboundRequests===void 0?!0:this.outboundRequests<this.maxOutboundRequests}queueLoadAction(){let f=this.getBlockToLoad();if(!f)return;let v=this.nextBlockToLoad&&this.nextBlockToLoad.cache===f.cache&&this.nextBlockToLoad.index===f.index;if(!v&&(!this.nextBlockToLoad||!v)){this.nextBlockToLoad=f,window.clearTimeout(this.loaderTimeout);let u=Number(this.nextBlockToLoad.index),s=this.nextBlockToLoad.cache,r=f.index+f.cache.getBlockSize();this.loaderTimeout=window.setTimeout(()=>{s.isAlive()&&(this.loaderTimeout=void 0,this.attemptLoad(s,u,r),this.nextBlockToLoad=void 0)},this.gos.get("blockLoadDebounceMillis"))}}attemptLoad(f,v,u){this.hasAvailableLoadBandwidth()&&(this.executeLoad(f,v,u),this.queueLoadCheck())}executeLoad(f,v,u){var R,T;let s=f.getSsrmParams(),r={startRow:v,endRow:u,rowGroupCols:s.rowGroupCols,valueCols:s.valueCols,pivotCols:s.pivotCols,pivotMode:s.pivotMode,groupKeys:(R=f.store.getParentNode().getRoute())!=null?R:[],filterModel:s.filterModel,sortModel:s.sortModel},d=this.cacheLoadingNodesMap.get(f),g=()=>{for(let z=0;z<u-v;z++)d.delete(v+z)},m=()=>{for(let z=0;z<u-v;z++)d.add(v+z)},b=z=>{this.onLoadComplete(),f.onLoadSuccess(v,u-v,z),g()},w=()=>{this.onLoadComplete(),f.onLoadFailed(v,u-v),g()},k=this.gos.addGridCommonParams({request:r,success:b,fail:w,parentNode:f.store.getParentNode()});m(),this.outboundRequests+=1,(T=f.getSsrmParams().datasource)==null||T.getRows(k)}getBlockToLoad(){var m,b;let f=this.rowRenderer.firstRenderedRow,v=this.rowRenderer.lastRenderedRow;for(let w=f;w<=v;w++){let k=this.rowModel.getRow(w);if(!k)continue;let R=(m=k.parent)==null?void 0:m.childStore;if(!R)continue;let T=R.getCache(),z=T.getNodes().getBy("node",k);if(!z)continue;let G=this.cacheLoadingNodesMap.get(T);if(!(G!=null&&G.has(z.index))&&(k.__needsRefreshWhenVisible||k.stub&&!k.failedLoad))return{cache:T,index:T.getBlockStartIndex(z.index)}}let u=null,s=null,r=Number.MAX_SAFE_INTEGER;for(let w of this.cacheLoadingNodesMap.keys())w.getNodesToRefresh().forEach(R=>{if(R.rowIndex==null){s=R,u=w;return}let T=w.getNodes().getBy("node",R);if(!T)return;let z=this.cacheLoadingNodesMap.get(w);if(z!=null&&z.has(T.index))return;let G=Math.abs(f-R.rowIndex),U=Math.abs(R.rowIndex-v);G<r&&(s=R,r=G,u=w),U<r&&(s=R,r=U,u=w)});if(!u)return;let d=u,g=(b=d.getNodes().getBy("node",s))==null?void 0:b.index;return g==null?void 0:{cache:d,index:d.getBlockStartIndex(g)}}isRowLoading(f,v){var u,s;return(s=(u=this.cacheLoadingNodesMap.get(f))==null?void 0:u.has(v))!=null?s:!1}}p.LazyBlockLoadingService=F},4905:function(x,p,M){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.LazyCache=void 0;let A=M(6624),F=M(8105),D=M(2314),f=100;class v extends A.BeanStub{wireBeans(s){this.rowRenderer=s.rowRenderer,this.blockUtils=s.ssrmBlockUtils,this.focusSvc=s.focusSvc,this.nodeManager=s.ssrmNodeManager,this.serverSideRowModel=s.rowModel,this.rowNodeSorter=s.rowNodeSorter,this.sortSvc=s.sortSvc,this.lazyBlockLoadingSvc=s.lazyBlockLoadingSvc,this.colModel=s.colModel}constructor(s,r,d,g){super(),this.live=!0,this.removedNodeCache=new Map,this.store=s,this.numberOfRows=r,this.isLastRowKnown=d,this.storeParams=g}postConstruct(){this.lazyBlockLoadingSvc.subscribe(this),this.nodeMap=new D.MultiIndexMap("index","id","node"),this.nodeDisplayIndexMap=new Map,this.nodesToRefresh=new Set,this.defaultNodeIdPrefix=this.blockUtils.createNodeIdPrefix(this.store.getParentNode()),this.getRowIdFunc=(0,A._getRowIdCallback)(this.gos),this.isMasterDetail=this.gos.get("masterDetail")}destroy(){this.lazyBlockLoadingSvc.unsubscribe(this),this.numberOfRows=0,this.nodeMap.forEach(s=>this.blockUtils.destroyRowNode(s.node)),this.nodeMap.clear(),this.nodeDisplayIndexMap.clear(),this.nodesToRefresh.clear(),this.live=!1,super.destroy()}getRowByDisplayIndex(s){var R,T,z,G,U;if(!this.store.isDisplayIndexInStore(s))return;let r=this.nodeDisplayIndexMap.get(s);if(r)return(r.stub||r.__needsRefreshWhenVisible)&&this.lazyBlockLoadingSvc.queueLoadCheck(),r;if(this.gos.get("groupHideOpenParents")||this.gos.get("groupAllowUnbalanced")){let X=this.nodeMap.find(Q=>{var oe;return!!((oe=Q.node.childStore)!=null&&oe.isDisplayIndexInStore(s))});if(X)return(R=X.node.childStore)==null?void 0:R.getRowUsingDisplayIndex(s)}if(s===this.store.getDisplayIndexStart())return this.createStubNode(0,s);let g=this.nodeDisplayIndexMap.get(s-1);if(g){if(this.isMasterDetail&&g.master&&g.expanded)return g.detailNode;if(g.expanded&&((T=g.childStore)!=null&&T.isDisplayIndexInStore(s)))return(z=g.childStore)==null?void 0:z.getRowUsingDisplayIndex(s);let X=this.nodeMap.getBy("node",g);return this.createStubNode(X.index+1,s)}let m=this.getSurroundingNodesByDisplayIndex(s);if(m==null){let X=this.store.getRowCount()-(this.store.getDisplayIndexEnd()-s);return this.createStubNode(X,s)}let{previousNode:b,nextNode:w}=m;if(b&&b.node.expanded&&((G=b.node.childStore)!=null&&G.isDisplayIndexInStore(s)))return(U=b.node.childStore)==null?void 0:U.getRowUsingDisplayIndex(s);if(w){let X=w.node.rowIndex-s,Q=w.index-X;return this.createStubNode(Q,s)}let k=this.store.getRowCount()-(this.store.getDisplayIndexEnd()-s);return this.createStubNode(k,s)}createStubNode(s,r){let d=this.store.getRowBounds(r),g=this.createRowAtIndex(s,null,m=>{m.setRowIndex(r),m.setRowTop(d.rowTop),this.nodeDisplayIndexMap.set(r,m)});if(s===0&&this.gos.get("groupHideOpenParents")){let m=this.store.getParentNode().groupData;if(m)for(let b of Object.keys(m))(0,F.setRowNodeGroupValue)(g,this.colModel,b,m[b])}return this.lazyBlockLoadingSvc.queueLoadCheck(),g}getRowByStoreIndex(s){var r;return(r=this.nodeMap.getBy("index",s))==null?void 0:r.node}skipDisplayIndexes(s,r,d){if(s===0)return;let g=(0,A._getRowHeightAsNumber)(this.beans);r.value+=s,d.value+=s*g}setDisplayIndexes(s,r,d){this.nodeDisplayIndexMap.clear();let g={};this.nodeMap.forEach(w=>{g[w.index]=w.node});let m=-1;for(let w of Object.keys(g)){let k=g[w],R=Number(w),T=R-1-m;this.skipDisplayIndexes(T,s,r);let z=R===0;if(k.setFirstChild(z),z&&this.gos.get("groupHideOpenParents")){let G=this.store.getParentNode().groupData;if(G)for(let U of Object.keys(G))(0,F.setRowNodeGroupValue)(k,this.colModel,U,z?G[U]:void 0)}this.blockUtils.setDisplayIndex(k,s,r,d),k.rowIndex!=null&&this.nodeDisplayIndexMap.set(k.rowIndex,k),m=R}let b=this.numberOfRows-1-m;this.skipDisplayIndexes(b,s,r),this.purgeExcessRows()}getRowCount(){return this.numberOfRows}setRowCount(s,r){this.numberOfRows=s,r!=null&&(this.isLastRowKnown=r,r===!1&&(this.numberOfRows+=1)),this.fireStoreUpdatedEvent()}getNodes(){return this.nodeMap}getNodeCachedByDisplayIndex(s){var r;return(r=this.nodeDisplayIndexMap.get(s))!=null?r:null}getNodesToRefresh(){return this.nodesToRefresh}getSurroundingNodesByDisplayIndex(s){let r,d;return this.nodeMap.forEach(g=>{if(s>g.node.rowIndex){(d==null||d.node.rowIndex<g.node.rowIndex)&&(d=g);return}if(r==null||r.node.rowIndex>g.node.rowIndex){r=g;return}}),!d&&!r?null:{previousNode:d,nextNode:r}}getDisplayIndexFromStoreIndex(s){var w,k;let r=this.nodeMap.getBy("index",s);if(r)return r.node.rowIndex;let d,g;if(this.nodeMap.forEach(R=>{if(s>R.index){(g==null||g.index<R.index)&&(g=R);return}if(d==null||d.index>R.index){d=R;return}}),!d)return this.store.getDisplayIndexEnd()-(this.numberOfRows-s);if(!g)return this.store.getDisplayIndexStart()+s;let m=s-g.index;return((k=(w=g.node.childStore)==null?void 0:w.getDisplayIndexEnd())!=null?k:g.node.rowIndex)+m}createRowAtIndex(s,r,d){var b,w;let g=this.nodeMap.getBy("index",s);if(g){let{node:k}=g;if(k.__needsRefreshWhenVisible=!1,this.doesNodeMatch(r,k))return this.blockUtils.updateDataIntoRowNode(k,r),this.nodesToRefresh.delete(k),k;if(this.getRowIdFunc==null&&k.hasChildren()&&k.expanded)return this.nodesToRefresh.delete(k),k;this.destroyRowAtIndex(s)}if(r&&this.getRowIdFunc!=null){let k=this.getRowId(r),R=k&&((b=this.removedNodeCache)==null?void 0:b.get(k));if(R)return(w=this.removedNodeCache)==null||w.delete(k),this.blockUtils.updateDataIntoRowNode(R,r),this.nodeMap.set({id:R.id,node:R,index:s}),this.nodesToRefresh.delete(R),R.__needsRefreshWhenVisible=!1,R;let T=this.nodeMap.getBy("id",k);if(T){this.nodeMap.delete(T);let{node:z,index:G}=T;return this.blockUtils.updateDataIntoRowNode(z,r),this.nodeMap.set({id:z.id,node:z,index:s}),this.nodesToRefresh.delete(z),z.__needsRefreshWhenVisible=!1,this.getBlockStartIndex(G)===this.getBlockStartIndex(s)||this.markBlockForVerify(G),z}}let m=this.blockUtils.createRowNode(this.store.getRowDetails());if(r!=null){let k=this.getPrefixedId(this.store.getIdSequence().value++);this.blockUtils.setDataIntoRowNode(m,r,k,void 0),this.serverSideRowModel.setPaused(!0),this.blockUtils.checkOpenByDefault(m),this.serverSideRowModel.setPaused(!1),this.nodeManager.addRowNode(m)}return this.nodeMap.set({id:m.id,node:m,index:s}),d&&d(m),m}getBlockStates(){let s={},r={};this.nodeMap.forEach(({node:b,index:w})=>{var T;let k=this.getBlockStartIndex(w);!b.stub&&!b.failedLoad&&(s[k]=((T=s[k])!=null?T:0)+1);let R="loaded";b.failedLoad?R="failed":this.lazyBlockLoadingSvc.isRowLoading(this,k)?R="loading":(this.nodesToRefresh.has(b)||b.stub)&&(R="needsLoading"),r[k]||(r[k]=new Set),r[k].add(R)});let d={loading:4,failed:3,needsLoading:2,loaded:1},g=this.blockUtils.createNodeIdPrefix(this.store.getParentNode()),m={};return Object.entries(r).forEach(([b,w])=>{var G;let R=[...w].sort((U,X)=>{var Q,oe;return((Q=d[U])!=null?Q:0)-((oe=d[X])!=null?oe:0)})[0],T=Number(b)/this.getBlockSize(),z=g?`${g}-${T}`:String(T);m[z]={blockNumber:T,startRow:Number(b),endRow:Number(b)+this.getBlockSize(),pageStatus:R,loadedRowCount:(G=s[b])!=null?G:0}}),m}destroyRowAtIndex(s){let r=this.nodeMap.getBy("index",s);r&&(this.nodeMap.delete(r),this.nodeDisplayIndexMap.delete(r.node.rowIndex),this.nodesToRefresh.size>0?this.removedNodeCache.set(r.node.id,r.node):this.blockUtils.destroyRowNode(r.node),this.nodesToRefresh.delete(r.node))}getSsrmParams(){return this.store.getSsrmParams()}getPrefixedId(s){return this.defaultNodeIdPrefix?this.defaultNodeIdPrefix+"-"+s:s.toString()}markBlockForVerify(s){let[r,d]=this.getBlockBounds(s);this.nodeMap.filter(m=>m.index>=r&&m.index<d).forEach(({node:m})=>{m.__needsRefreshWhenVisible=!0})}doesNodeMatch(s,r){if(r.stub)return!1;let d=this.getRowId(s);return d===null?r.data===s:r.id===d}purgeStubsOutsideOfViewport(){let{firstRenderedRow:s,lastRenderedRow:r}=this.rowRenderer,d=this.getBlockStartIndex(s),[,g]=this.getBlockBounds(r);this.nodeMap.forEach(m=>{this.lazyBlockLoadingSvc.isRowLoading(this,m.index)||m.node.failedLoad||m.node.stub&&(m.index<d||m.index>g)&&this.destroyRowAtIndex(m.index)})}getBlocksDistanceFromRow(s,r){let d={};return s.forEach(({node:g,index:m})=>{let[b,w]=this.getBlockBounds(m);if(b in d)return;let k=Math.abs(g.rowIndex-r),R,T=this.nodeMap.getBy("index",[w-1]);T&&(R=Math.abs(T.node.rowIndex-r));let z=R==null||k<R?k:R;d[b]=z}),Object.entries(d)}purgeExcessRows(){var X;if(this.purgeStubsOutsideOfViewport(),this.store.getDisplayIndexEnd()==null||this.storeParams.maxBlocksInCache==null)return;let{firstRenderedRow:s,lastRenderedRow:r}=this.rowRenderer,d=new Set,g=new Set;this.nodeMap.forEach(({index:Q,node:oe})=>{let le=this.getBlockStartIndex(Q);d.add(le),oe.rowIndex>=s&&oe.rowIndex<=r&&g.add(le)});let m=Math.max(g.size,(X=this.storeParams.maxBlocksInCache)!=null?X:0),w=d.size-m;if(w<=0)return;let k=Number.MAX_SAFE_INTEGER,R=Number.MIN_SAFE_INTEGER;g.forEach(Q=>{k>Q&&(k=Q),R<Q&&(R=Q)});let T=this.nodeMap.filter(({node:Q,index:oe})=>{let le=this.getBlockStartIndex(oe);return!(le>=k&&le<=R)&&!this.isNodeCached(Q)});if(T.length===0)return;let z=s+(r-s)/2,G=this.getBlocksDistanceFromRow(T,z),U=this.getBlockSize();G.sort((Q,oe)=>Math.sign(oe[1]-Q[1]));for(let Q=0;Q<Math.min(w,G.length);Q++){let oe=Number(G[Q][0]);for(let le=oe;le<oe+U;le++){let fe=this.nodeMap.getBy("index",le);!fe||this.isNodeCached(fe.node)||this.destroyRowAtIndex(le)}}}isNodeFocused(s){let r=this.focusSvc.getFocusCellToUseAfterRefresh();return!r||r.rowPinned!=null?!1:r.rowIndex===s.rowIndex}isNodeCached(s){let r=this.gos.get("groupAllowUnbalanced")&&s.key==="";return s.isExpandable()&&s.expanded||this.isNodeFocused(s)||r}extractDuplicateIds(s){if(this.getRowIdFunc==null)return[];let r=new Set,d=new Set;return s.forEach(g=>{let m=this.getRowId(g);if(r.has(m)){d.add(m);return}r.add(m)}),[...d]}onLoadSuccess(s,r,d){if(!this.live)return;let g=d.groupLevelInfo;if(this.store.setStoreInfo(g),this.getRowIdFunc!=null){let w=this.extractDuplicateIds(d.rowData);if(w.length>0){let k=w.join(", ");(0,A._warn)(205,{duplicateIdText:k}),this.onLoadFailed(s,r);return}}d.pivotResultFields&&this.serverSideRowModel.generateSecondaryColumns(d.pivotResultFields);let m=this.nodesToRefresh.size>0;if(d.rowData.forEach((w,k)=>{var z;let R=s+k,T=this.nodeMap.getBy("index",R);if((z=T==null?void 0:T.node)!=null&&z.stub){this.createRowAtIndex(R,w);return}if(T&&this.doesNodeMatch(w,T.node)){this.blockUtils.updateDataIntoRowNode(T.node,w),this.nodesToRefresh.delete(T.node),T.node.__needsRefreshWhenVisible=!1;return}this.createRowAtIndex(R,w)}),d.rowCount!=null&&d.rowCount!==-1)this.numberOfRows=d.rowCount,this.isLastRowKnown=!0;else if(r>d.rowData.length)this.numberOfRows=s+d.rowData.length,this.isLastRowKnown=!0;else if(!this.isLastRowKnown){let w=s+d.rowData.length+1;w>this.numberOfRows&&(this.numberOfRows=w)}this.isLastRowKnown&&this.nodeMap.filter(k=>k.index>=this.numberOfRows).forEach(k=>this.destroyRowAtIndex(k.index)),this.fireStoreUpdatedEvent();let b=this.nodesToRefresh.size===0;m&&b&&this.fireRefreshFinishedEvent()}fireRefreshFinishedEvent(){this.nodesToRefresh.size===0&&(this.removedNodeCache.forEach(r=>{this.blockUtils.destroyRowNode(r)}),this.removedNodeCache=new Map,this.store.fireRefreshFinishedEvent())}isStoreFullyLoaded(){let s=this.isLastRowKnown,r=this.nodeMap.getSize()===this.numberOfRows;if(!s||!r||this.nodesToRefresh.size>0)return;let d=-1;return this.nodeMap.find(m=>(d+=1,!!(m.index!==d||m.node.__needsRefreshWhenVisible||m.node.stub)))==null}isLastRowIndexKnown(){return this.isLastRowKnown}onLoadFailed(s,r){var m;if(!this.live)return;let d=this.nodesToRefresh.size>0;for(let b=s;b<s+r&&b<this.getRowCount();b++){let{node:w}=(m=this.nodeMap.getBy("index",b))!=null?m:{};w&&this.nodesToRefresh.delete(w),(!w||!w.stub)&&(w&&!w.stub&&this.destroyRowAtIndex(b),w=this.createRowAtIndex(b)),w.__needsRefreshWhenVisible=!1,w.failedLoad=!0}let g=this.nodesToRefresh.size===0;d&&g&&this.fireRefreshFinishedEvent(),this.fireStoreUpdatedEvent()}markNodesForRefresh(){this.nodeMap.forEach(s=>{s.node.stub&&!s.node.failedLoad||this.nodesToRefresh.add(s.node)}),this.lazyBlockLoadingSvc.queueLoadCheck(),this.isLastRowKnown&&this.numberOfRows===0&&(this.numberOfRows=1,this.isLastRowKnown=!1,this.fireStoreUpdatedEvent())}isNodeInCache(s){return!!this.nodeMap.getBy("id",s)}fireStoreUpdatedEvent(){this.live&&this.store.fireStoreUpdatedEvent()}getRowId(s){var g;if(this.getRowIdFunc==null)return null;let{level:r}=this.store.getRowDetails(),d=(g=this.store.getParentNode().getRoute())!=null?g:[];return this.getRowIdFunc({data:s,parentKeys:d.length>0?d:void 0,level:r})}getOrderedNodeMap(){let s={};return this.nodeMap.forEach(r=>s[r.index]=r),s}clearDisplayIndexes(){this.nodeDisplayIndexMap.clear()}clientSideSortRows(){var m,b;let s=(b=(m=this.sortSvc)==null?void 0:m.getSortOptions())!=null?b:[];if(!s.some(w=>w.sort!=null)||!this.rowNodeSorter)return;let d=new Array(this.nodeMap.getSize());this.nodeMap.forEach(w=>d[w.index]=w.node),this.nodeMap.clear(),this.rowNodeSorter.doFullSort(d,s).forEach((w,k)=>{this.nodeMap.set({id:w.id,node:w,index:k})})}updateRowNodes(s){let r=[];return s.forEach(d=>{let g=this.getRowId(d),m=this.nodeMap.getBy("id",g);m&&(this.blockUtils.updateDataIntoRowNode(m.node,d),r.push(m.node))}),r}insertRowNodes(s,r){let d=this.store.getRowCount()-(this.store.getParentNode().sibling?1:0),g=r==null&&this.isLastRowKnown?d:r;if(g==null||d<g)return[];let m={};s.forEach(R=>{let T=this.getRowId(R);T&&this.isNodeInCache(T)||(m[T]=R)});let b=Object.values(m),w=b.length;if(w===0)return[];let k=this.nodeMap.filter(R=>R.index>=g);return k.forEach(R=>this.nodeMap.delete(R)),k.forEach(R=>{this.nodeMap.set({node:R.node,index:R.index+w,id:R.id})}),this.numberOfRows+=w,b.map((R,T)=>this.createRowAtIndex(g+T,R))}removeRowNodes(s){let r=[],d=[],g=0,m=[...s],b=this.getOrderedNodeMap(),w=-1;for(let k of Object.keys(b)){w+=1;let R=b[k],T=m.findIndex(G=>G===R.id);if(T!==-1){m.splice(T,1),this.destroyRowAtIndex(Number(k)),r.push(R.node),g+=1;continue}if(g===0)continue;let z=Number(k);w!==z&&d.push(R.node),this.nodeMap.delete(R),this.nodeMap.set({id:R.id,node:R.node,index:z-g})}return this.numberOfRows-=this.isLastRowIndexKnown()?s.length:g,m.length>0&&d.length>0&&(d.forEach(k=>k.__needsRefreshWhenVisible=!0),this.lazyBlockLoadingSvc.queueLoadCheck()),r}getBlockSize(){return this.storeParams.cacheBlockSize||f}getBlockStartIndex(s){let r=this.getBlockSize();return s-s%r}getBlockBounds(s){let r=this.getBlockStartIndex(s),d=this.getBlockSize();return[r,r+d]}}p.LazyCache=v},5330:function(x,p,M){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.LazyStore=void 0;let A=M(6624),F=M(6432),D=M(4905);class f extends A.BeanStub{wireBeans(u){this.blockUtils=u.ssrmBlockUtils,this.storeUtils=u.ssrmStoreUtils,this.selectionSvc=u.selectionSvc,this.rowGroupColsSvc=u.rowGroupColsSvc}constructor(u,s,r){super(),this.idSequence={value:0},this.ssrmParams=u,this.parentRowNode=r,this.storeParams=s,this.level=r.level+1,this.group=u.rowGroupCols?this.level<u.rowGroupCols.length:!1,this.leafGroup=u.rowGroupCols?this.level===u.rowGroupCols.length-1:!1,this.info={}}postConstruct(){var r;let u=1;if(this.level===0&&(u=(r=this.storeUtils.getServerSideInitialRowCount())!=null?r:1,this.eventSvc.dispatchEventOnce({type:"rowCountReady"})),this.cache=this.createManagedBean(new D.LazyCache(this,u,!1,this.storeParams)),!this.gos.get("treeData")&&this.group&&this.rowGroupColsSvc){let d=this.ssrmParams.rowGroupCols[this.level];this.groupField=d.field,this.rowGroupColumn=this.rowGroupColsSvc.columns[this.level]}}destroy(){this.displayIndexStart=void 0,this.displayIndexEnd=void 0,this.destroyBean(this.cache),super.destroy()}applyRowData(u,s,r){this.cache.onLoadSuccess(s,r,u)}applyTransaction(u){var T,z,G;let s=(0,A._getRowIdCallback)(this.gos);if(!s)return(0,A._warn)(206),{status:A.ServerSideTransactionResultStatus.Cancelled};let r=this.gos.getCallback("isApplyServerSideTransaction");if(r){let U={transaction:u,parentNode:this.parentRowNode,groupLevelInfo:this.info};if(!r(U))return{status:A.ServerSideTransactionResultStatus.Cancelled}}let d=this.cache.isStoreFullyLoaded(),g;(T=u.update)!=null&&T.length&&(g=this.cache.updateRowNodes(u.update));let m;if((z=u.add)!=null&&z.length){let U=u.addIndex;U!=null&&U<0&&(U=void 0),m=this.cache.insertRowNodes(u.add,U)}let b;if((G=u.remove)!=null&&G.length){let U=u.remove.map(Q=>{var oe;return s({level:this.level,parentKeys:(oe=this.parentRowNode.getRoute())!=null?oe:[],data:Q})}),X=[...new Set(U)];b=this.cache.removeRowNodes(X)}let w=this.gos.get("serverSideEnableClientSideSort"),k=(g==null?void 0:g.length)||(m==null?void 0:m.length);return d&&w&&k&&this.cache.clientSideSortRows(),this.updateSelectionAfterTransaction(g,b),{status:A.ServerSideTransactionResultStatus.Applied,update:g,add:m,remove:b}}updateSelectionAfterTransaction(u,s){if(!this.selectionSvc)return;let r=[];u==null||u.forEach(d=>{d.isSelected()&&!d.selectable&&r.push(d)}),s==null||s.forEach(d=>{d.isSelected()&&r.push(d)}),r.length&&this.selectionSvc.setNodesSelected({newValue:!1,clearSelection:!1,nodes:r,source:"rowDataChanged"})}clearDisplayIndexes(){this.displayIndexStart=void 0,this.displayIndexEnd=void 0,this.cache.getNodes().forEach(u=>this.blockUtils.clearDisplayIndex(u.node)),this.parentRowNode.sibling&&this.blockUtils.clearDisplayIndex(this.parentRowNode.sibling),this.cache.clearDisplayIndexes()}getDisplayIndexStart(){return this.displayIndexStart}getDisplayIndexEnd(){return this.displayIndexEnd}getRowCount(){return this.parentRowNode.sibling?this.cache.getRowCount()+1:this.cache.getRowCount()}setRowCount(u,s){this.cache.setRowCount(u,s)}isDisplayIndexInStore(u){return this.cache.getRowCount()===0?!1:this.displayIndexStart<=u&&u<this.getDisplayIndexEnd()}setDisplayIndexes(u,s,r){this.displayIndexStart=u.value,this.topPx=s.value;let d=this.parentRowNode.level>-1&&(0,A._getGroupTotalRowCallback)(this.gos)({node:this.parentRowNode});d||(0,F._destroyRowNodeFooter)(this.parentRowNode),d==="top"&&((0,F._createRowNodeFooter)(this.parentRowNode,this.beans),this.blockUtils.setDisplayIndex(this.parentRowNode.sibling,u,s,r)),this.cache.setDisplayIndexes(u,s,r),d==="bottom"&&((0,F._createRowNodeFooter)(this.parentRowNode,this.beans),this.blockUtils.setDisplayIndex(this.parentRowNode.sibling,u,s,r)),this.displayIndexEnd=u.value,this.heightPx=s.value-this.topPx}forEachStoreDeep(u,s={value:0}){u(this,s.value++),this.cache.getNodes().forEach(r=>{let d=r.node.childStore;d&&d.forEachStoreDeep(u,s)})}forEachNodeDeep(u,s={value:0}){this.cache.getNodes().forEach(r=>{u(r.node,s.value++);let d=r.node.childStore;d&&d.forEachNodeDeep(u,s)})}forEachNodeDeepAfterFilterAndSort(u,s={value:0},r=!1){let d=this.parentRowNode.level>-1&&(0,A._getGroupTotalRowCallback)(this.gos)({node:this.parentRowNode});d==="top"&&u(this.parentRowNode.sibling,s.value++);let g=this.cache.getOrderedNodeMap();for(let m of Object.values(g)){u(m.node,s.value++);let b=m.node.childStore;b&&b.forEachNodeDeepAfterFilterAndSort(u,s,r)}d==="bottom"&&u(this.parentRowNode.sibling,s.value++)}retryLoads(){this.cache.getNodes().forEach(({node:u})=>{u.failedLoad&&(u.failedLoad=!1,u.__needsRefreshWhenVisible=!0,u.stub=!0)}),this.forEachChildStoreShallow(u=>u.retryLoads()),this.fireStoreUpdatedEvent()}getRowUsingDisplayIndex(u){return this.parentRowNode.sibling&&u===this.parentRowNode.sibling.rowIndex?this.parentRowNode.sibling:this.cache.getRowByDisplayIndex(u)}getRowBounds(u){var w;if(!this.isDisplayIndexInStore(u))return null;let s=this.cache.getNodeCachedByDisplayIndex(u);if(s){let k=this.blockUtils.extractRowBounds(s,u);if(k)return k}let{previousNode:r,nextNode:d}=(w=this.cache.getSurroundingNodesByDisplayIndex(u))!=null?w:{};if(r){let k=this.blockUtils.extractRowBounds(r.node,u);if(k!=null)return k}let g=(0,A._getRowHeightAsNumber)(this.beans);if(d){let k=(d.node.rowIndex-u)*g;return{rowTop:d.node.rowTop-k,rowHeight:g}}let m=this.topPx+this.heightPx,b=(this.getDisplayIndexEnd()-u)*g;return{rowTop:m-b,rowHeight:g}}isPixelInRange(u){return u>=this.topPx&&u<this.topPx+this.heightPx}getRowIndexAtPixel(u){if(u<this.topPx)return this.getDisplayIndexStart();if(u>=this.topPx+this.heightPx)return this.getDisplayIndexEnd()-1;if(this.parentRowNode.sibling&&u>this.parentRowNode.sibling.rowTop&&u<this.parentRowNode.sibling.rowTop+this.parentRowNode.sibling.rowHeight)return this.parentRowNode.sibling.rowIndex;let s=Number.MAX_SAFE_INTEGER,r=null,d=Number.MAX_SAFE_INTEGER,g=null;if(this.cache.getNodes().forEach(({node:k})=>{let R=Math.abs(u-k.rowTop);if(k.rowTop<u){R<s&&(s=R,r=k);return}R<d&&(d=R,g=k)}),r=r,g=g,r){let k=this.blockUtils.getIndexAtPixel(r,u);if(k!=null)return k}let m=(0,A._getRowHeightAsNumber)(this.beans);if(g){let k=g.rowTop,R=Math.ceil((k-u)/m);return g.rowIndex-R}let b=this.topPx+this.heightPx,w=Math.floor((b-u)/m);return this.getDisplayIndexEnd()-w}getChildStore(u){return this.storeUtils.getChildStore(u,this,s=>{let r=this.cache.getNodes().find(d=>d.node.key==s);return r?r.node:null})}forEachChildStoreShallow(u){this.cache.getNodes().forEach(({node:s})=>{s.childStore&&u(s.childStore)})}refreshAfterSort(u){if(this.storeUtils.isServerSideSortAllLevels()||this.storeUtils.isServerRefreshNeeded(this.parentRowNode,this.ssrmParams.rowGroupCols,u)){let r=this.cache.isStoreFullyLoaded(),d=this.gos.get("serverSideEnableClientSideSort");if(!(r&&d)){let m=this.cache.getRowCount(),b=this.cache.isLastRowIndexKnown();this.destroyBean(this.cache),this.cache=this.createManagedBean(new D.LazyCache(this,m,b,this.storeParams));return}this.cache.clientSideSortRows()}this.forEachChildStoreShallow(r=>r.refreshAfterSort(u))}refreshAfterFilter(u){if(!this.storeUtils.isServerSideOnlyRefreshFilteredGroups()||this.storeUtils.isServerRefreshNeeded(this.parentRowNode,this.ssrmParams.rowGroupCols,u)){this.refreshStore(!0);return}this.forEachChildStoreShallow(r=>r.refreshAfterFilter(u))}refreshStore(u){if(u){this.destroyBean(this.cache),this.cache=this.createManagedBean(new D.LazyCache(this,1,!1,this.storeParams)),this.fireStoreUpdatedEvent();return}this.cache.markNodesForRefresh()}getTopLevelRowDisplayedIndex(u){let s=this.cache.getDisplayIndexFromStoreIndex(u);return s!=null?s:u}isLastRowIndexKnown(){return this.cache.isLastRowIndexKnown()}getRowNodesInRange(u,s){return this.cache.getNodes().filter(({node:r})=>r.rowIndex>=u.rowIndex&&r.rowIndex<=s.rowIndex).map(({node:r})=>r)}addStoreStates(u){var s;u.push({route:(s=this.parentRowNode.getRoute())!=null?s:[],rowCount:this.getRowCount(),lastRowIndexKnown:this.isLastRowIndexKnown(),info:this.info,maxBlocksInCache:this.storeParams.maxBlocksInCache,cacheBlockSize:this.storeParams.cacheBlockSize}),this.forEachChildStoreShallow(r=>r.addStoreStates(u))}getIdSequence(){return this.idSequence}getParentNode(){return this.parentRowNode}getRowDetails(){return{field:this.groupField,group:this.group,leafGroup:this.leafGroup,level:this.level,parent:this.parentRowNode,rowGroupColumn:this.rowGroupColumn}}getSsrmParams(){return this.ssrmParams}setStoreInfo(u){u&&Object.assign(this.info,u)}fireStoreUpdatedEvent(){this.eventSvc.dispatchEvent({type:"storeUpdated"})}fireRefreshFinishedEvent(){this.eventSvc.dispatchEvent({type:"storeRefreshed",route:this.parentRowNode.getRoute()})}getBlockStates(){return this.cache.getBlockStates()}getStoreBounds(){return{topPx:this.topPx,heightPx:this.heightPx}}getCache(){return this.cache}}p.LazyStore=f},2314:function(x,p){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.MultiIndexMap=void 0;class M{constructor(...F){this.indexes=F,this.maps=new Map(this.indexes.map(D=>[D,new Map]))}getSize(){return this.maps.get(this.indexes[0]).size}getBy(F,D){return this.maps.get(F).get(D)}set(F){this.indexes.forEach(D=>{this.maps.get(D).set(F[D],F)})}delete(F){this.indexes.forEach(D=>{this.maps.get(D).delete(F[D])})}clear(){this.maps.forEach(F=>F.clear())}getIterator(F){return this.maps.get(F).values()}forEach(F){let D=this.getIterator(this.indexes[0]),f;for(;(f=D.next())&&!f.done;)F(f.value)}find(F){let D=this.getIterator(this.indexes[0]),f;for(;(f=D.next())&&!f.done;)if(F(f.value))return f.value}filter(F){let D=this.getIterator(this.indexes[0]),f,v=[];for(;(f=D.next())&&!f.done;)F(f.value)&&v.push(f.value);return v}}p.MultiIndexMap=M},2697:function(x,p,M){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.StoreFactory=void 0;let A=M(6624),F=M(5330);class D extends A.BeanStub{constructor(){super(...arguments),this.beanName="ssrmStoreFactory"}wireBeans(v){this.colModel=v.colModel,this.rowGroupColsSvc=v.rowGroupColsSvc,this.pivotColsSvc=v.pivotColsSvc,this.rowAutoHeight=v.rowAutoHeight}createStore(v,u){let s=this.getStoreParams(v,u);return new F.LazyStore(v,s,u)}getStoreParams(v,u){let s=this.getLevelSpecificParams(u),r=this.getBlockSize(s),d=this.getMaxBlocksInCache(v,s);return{cacheBlockSize:r,maxBlocksInCache:d}}getMaxBlocksInCache(v,u){var d;let s=u&&u.maxBlocksInCache!=null?u.maxBlocksInCache:this.gos.get("maxBlocksInCache");if(s!=null&&s>=0){if(v.dynamicRowHeight){(0,A._warn)(203);return}if((d=this.rowAutoHeight)!=null&&d.active){(0,A._warn)(204);return}return s}}getBlockSize(v){let u=v&&v.cacheBlockSize!=null?v.cacheBlockSize:this.gos.get("cacheBlockSize");return u!=null&&u>0?u:100}getLevelSpecificParams(v){var d,g,m,b;let u=this.gos.getCallback("getServerSideGroupLevelParams");if(!u)return;let s={level:v.level+1,parentRowNode:v.level>=0?v:void 0,rowGroupColumns:(g=(d=this.rowGroupColsSvc)==null?void 0:d.columns)!=null?g:[],pivotColumns:(b=(m=this.pivotColsSvc)==null?void 0:m.columns)!=null?b:[],pivotMode:this.colModel.isPivotMode()};return u(s)}}p.StoreFactory=D},2234:function(x,p,M){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.StoreUtils=void 0;let A=M(6624);class F extends A.BeanStub{constructor(){super(...arguments),this.beanName="ssrmStoreUtils"}wireBeans(f){this.colModel=f.colModel,this.serverSideRowModel=f.rowModel,this.storeFactory=f.ssrmStoreFactory}getChildStore(f,v,u){if(!(f!=null&&f.length))return v;let s=f[0],r=u(s);if(r){if(f.length===1&&!r.childStore){let m=this.serverSideRowModel.getParams();r.childStore=this.createBean(this.storeFactory.createStore(m,r))}let d=f.slice(1,f.length),g=r.childStore;return g?g.getChildStore(d):null}return null}isServerRefreshNeeded(f,v,u){if(u.valueColChanged||u.secondaryColChanged)return!0;let s=f.level+1;if(!(s<v.length))return!0;let g=v[s].id;return u.changedColumns.indexOf(g)>-1?!0:this.colModel.getCols().filter(k=>k.getColDef().showRowGroup&&u.changedColumns.includes(k.getId())).map(k=>k.getColDef().showRowGroup).some(k=>k===!0||k===g)}getServerSideInitialRowCount(){return this.gos.get("serverSideInitialRowCount")}isServerSideSortAllLevels(){return this.gos.get("serverSideSortAllLevels")&&(0,A._isServerSideRowModel)(this.gos)}isServerSideOnlyRefreshFilteredGroups(){return this.gos.get("serverSideOnlyRefreshFilteredGroups")&&(0,A._isServerSideRowModel)(this.gos)}}p.StoreUtils=F},7332:function(x,p,M){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.TransactionManager=void 0;let A=M(6624);class F extends A.BeanStub{constructor(){super(...arguments),this.beanName="ssrmTxnManager",this.asyncTransactions=[]}wireBeans(f){this.valueCache=f.valueCache,this.serverSideRowModel=f.rowModel,this.selectionSvc=f.selectionSvc}postConstruct(){(0,A._isServerSideRowModel)(this.gos)}applyTransactionAsync(f,v){this.asyncTransactionsTimeout==null&&this.scheduleExecuteAsync(),this.asyncTransactions.push({transaction:f,callback:v})}scheduleExecuteAsync(){let f=this.gos.get("asyncTransactionWaitMillis");this.asyncTransactionsTimeout=window.setTimeout(()=>{this.executeAsyncTransactions()},f)}executeAsyncTransactions(){var r;if(!this.asyncTransactions)return;let f=[],v=[],u=[],s=!1;this.asyncTransactions.forEach(d=>{let g;if(this.serverSideRowModel.executeOnStore(d.transaction.route,w=>{g=w.applyTransaction(d.transaction)})?g==null&&(g={status:A.ServerSideTransactionResultStatus.StoreNotFound}):g={status:A.ServerSideTransactionResultStatus.StoreNotStarted},v.push(g),g.status==A.ServerSideTransactionResultStatus.StoreLoading){u.push(d);return}d.callback&&f.push(()=>d.callback(g)),g.status===A.ServerSideTransactionResultStatus.Applied&&(s=!0)}),f.length>0&&window.setTimeout(()=>{f.forEach(d=>d())},0),this.asyncTransactionsTimeout=void 0,this.asyncTransactions=u,s&&((r=this.valueCache)==null||r.onDataChanged(),this.eventSvc.dispatchEvent({type:"storeUpdated"})),v.length>0&&this.eventSvc.dispatchEvent({type:"asyncTransactionsFlushed",results:v})}flushAsyncTransactions(){this.asyncTransactionsTimeout!=null&&clearTimeout(this.asyncTransactionsTimeout),this.executeAsyncTransactions()}applyTransaction(f){var s;let v;if(this.serverSideRowModel.executeOnStore(f.route,r=>{v=r.applyTransaction(f)}))if(v){if((s=this.valueCache)==null||s.onDataChanged(),v.remove&&this.selectionSvc){let r=v.remove.map(d=>d.id);this.selectionSvc.deleteSelectionStateFromParent(f.route||[],r)}return this.eventSvc.dispatchEvent({type:"storeUpdated"}),v}else return{status:A.ServerSideTransactionResultStatus.StoreNotFound};else return{status:A.ServerSideTransactionResultStatus.StoreNotStarted}}}p.TransactionManager=F},4737:function(x,p,M){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.ClientSideValuesExtractor=void 0;let A=M(6624),F=M(2270);class D{constructor(v,u,s,r,d,g,m,b,w,k){this.rowModel=v,this.filterParams=u,this.createKey=s,this.caseFormat=r,this.valueSvc=d,this.treeDataOrGrouping=g,this.treeData=m,this.groupAllowUnbalanced=b,this.addManagedEventListeners=w,this.rowGroupColsSvc=k}extractUniqueValuesAsync(v,u){return new A.AgPromise(s=>{if(this.rowModel.isRowDataLoaded())s(this.extractUniqueValues(v,u));else{let[r]=this.addManagedEventListeners({rowCountReady:()=>{r==null||r(),s(this.extractUniqueValues(v,u))}})}})}extractUniqueValues(v,u){var w;let s=new Map,r=this.extractExistingFormattedKeys(u),d=new Set,g=this.treeData,m=(w=this.rowGroupColsSvc)==null?void 0:w.columns,b=(k,R)=>{let T=this.caseFormat(k);if(!d.has(T)){d.add(T);let z=k,G=(0,A._makeNull)(R),U=r==null?void 0:r.get(T);U!=null&&(z=U,G=u.get(U)),s.set(z,G)}};return this.rowModel.forEachLeafNode(k=>{if(!k.data||!v(k))return;if(this.treeDataOrGrouping){this.addValueForTreeDataOrGrouping(k,g,m,b);return}let R=this.getValue(k);R!=null&&Array.isArray(R)?(R.forEach(T=>{b(this.createKey(T,k),T)}),R.length===0&&b(null,null)):b(this.createKey(R,k),R)}),s}addValueForTreeDataOrGrouping(v,u,s=[],r){var m,b,w;let d;if(u){if((m=v.childrenAfterGroup)!=null&&m.length)return;d=(w=v.getRoute())!=null?w:[(b=v.key)!=null?b:v.id]}else d=s.map(k=>this.valueSvc.getKeyForNode(k,v)),d.push(this.getValue(v));let g=(0,F.processDataPath)(d,u,this.groupAllowUnbalanced);r(this.createKey(g),g)}getValue(v){return this.filterParams.getValue(v)}extractExistingFormattedKeys(v){if(!v)return null;let u=new Map;return v.forEach((s,r)=>{u.set(this.caseFormat(r),r)}),u}}p.ClientSideValuesExtractor=D},4510:function(x,p){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.SetValueModelFilteringKeys=void 0;class M{constructor({caseFormat:F}){this.filteringKeys=null,this.filteringKeysCaseFormatted=null,this.hasNoAppliedFilteringKeys=!1,this.caseFormat=F}allFilteringKeys(){return this.filteringKeys}allFilteringKeysCaseFormatted(){return this.filteringKeysCaseFormatted}setFilteringKeys(F){this.filteringKeys=new Set(F),this.hasNoAppliedFilteringKeys=!this.filteringKeys||this.filteringKeys.size===0,this.filteringKeysCaseFormatted=new Set,this.filteringKeys.forEach(D=>this.filteringKeysCaseFormatted.add(this.caseFormat(D)))}addFilteringKey(F){this.filteringKeys==null&&(this.filteringKeys=new Set,this.filteringKeysCaseFormatted=new Set),this.filteringKeys.add(F),this.filteringKeysCaseFormatted.add(this.caseFormat(F)),this.hasNoAppliedFilteringKeys&&(this.hasNoAppliedFilteringKeys=!1)}hasCaseFormattedFilteringKey(F){return this.filteringKeysCaseFormatted.has(this.caseFormat(F))}hasFilteringKey(F){return this.filteringKeys.has(F)}reset(){this.filteringKeys=null,this.filteringKeysCaseFormatted=null,this.hasNoAppliedFilteringKeys=!1}}p.SetValueModelFilteringKeys=M},8053:function(x,p,M){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.FlatSetDisplayValueModel=void 0;let A=M(3335);class F{constructor(f,v,u,s){this.valueSvc=f,this.valueFormatter=v,this.formatter=u,this.column=s,this.displayedKeys=[]}updateDisplayedValuesToAllAvailable(f,v,u){this.displayedKeys=Array.from(u)}updateDisplayedValuesToMatchMiniFilter(f,v,u,s,r){this.displayedKeys=[];for(let d of u)if(d==null)r&&this.displayedKeys.push(d);else{let g=f(d),m=this.valueSvc.formatValue(this.column,null,g,this.valueFormatter,!1),b=this.formatter(m);s(b)&&this.displayedKeys.push(d)}}getDisplayedValueCount(){return this.displayedKeys.length}getDisplayedItem(f){return this.displayedKeys[f]}getSelectAllItem(){return A.SET_FILTER_SELECT_ALL}getAddSelectionToFilterItem(){return A.SET_FILTER_ADD_SELECTION_TO_FILTER}getDisplayedKeys(){return this.displayedKeys}forEachDisplayedKey(f){this.displayedKeys.forEach(f)}someDisplayedKey(f){return this.displayedKeys.some(f)}hasGroups(){return!1}refresh(){}}p.FlatSetDisplayValueModel=F},3335:function(x,p){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.SET_FILTER_ADD_SELECTION_TO_FILTER=p.SET_FILTER_SELECT_ALL=void 0,p.SET_FILTER_SELECT_ALL="__AG_SELECT_ALL__",p.SET_FILTER_ADD_SELECTION_TO_FILTER="__AG_ADD_SELECTION_TO_FILTER__"},3003:function(x,p){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.DEFAULT_LOCALE_TEXT=void 0,p.DEFAULT_LOCALE_TEXT={loadingOoo:"Loading...",blanks:"(Blanks)",searchOoo:"Search...",selectAll:"(Select All)",selectAllSearchResults:"(Select All Search Results)",addCurrentSelectionToFilter:"Add current selection to filter",noMatches:"No matches."}},2734:function(x,p,M){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.SetFilter=void 0;let A=M(6624),F=M(7904),D=M(3335),f=M(3003),v=M(105),u=M(5355),s=M(2270),r=M(4366);class d extends A.ProvidedFilter{wireBeans(k){this.rowGroupColsSvc=k.rowGroupColsSvc,this.valueSvc=k.valueSvc,this.dataTypeSvc=k.dataTypeSvc}constructor(){super("setFilter"),this.filterType="set",this.eMiniFilter=A.RefPlaceholder,this.eFilterLoading=A.RefPlaceholder,this.eSetFilterList=A.RefPlaceholder,this.eFilterNoMatches=A.RefPlaceholder,this.caseSensitive=!1,this.treeDataTreeList=!1,this.groupingTreeList=!1,this.hardRefreshVirtualList=!1,this.noValueFormatterSupplied=!1,this.filterModelFormatter=new u.SetFilterModelFormatter,this.updateSetFilterOnParamsChange=k=>{var z,G;this.setFilterParams=k,this.caseSensitive=!!k.caseSensitive;let R=(z=k.keyCreator)!=null?z:k.colDef.keyCreator;this.setValueFormatter(k.valueFormatter,R,!!k.treeList,!!k.colDef.refData);let T=k.column.getId().startsWith(A.GROUP_AUTO_COLUMN_ID);this.treeDataTreeList=this.gos.get("treeData")&&!!k.treeList&&T,this.groupingTreeList=!!((G=this.rowGroupColsSvc)!=null&&G.columns.length)&&!!k.treeList&&T,this.createKey=this.generateCreateKey(R,this.treeDataTreeList||this.groupingTreeList)}}postConstruct(){super.postConstruct()}updateUiVisibility(){}createBodyTemplate(){return`
            <div class="ag-set-filter">
                <div data-ref="eFilterLoading" class="ag-filter-loading ag-hidden">${this.translateForSetFilter("loadingOoo")}</div>
                <ag-input-text-field class="ag-mini-filter" data-ref="eMiniFilter"></ag-input-text-field>
                <div data-ref="eFilterNoMatches" class="ag-filter-no-matches ag-hidden">${this.translateForSetFilter("noMatches")}</div>
                <div data-ref="eSetFilterList" class="ag-set-filter-list" role="presentation"></div>
            </div>`}getAgComponents(){return[A.AgInputTextFieldSelector]}handleKeyDown(k){if(super.handleKeyDown(k),!k.defaultPrevented)switch(k.key){case A.KeyCode.SPACE:this.handleKeySpace(k);break;case A.KeyCode.ENTER:this.handleKeyEnter(k);break;case A.KeyCode.LEFT:this.handleKeyLeft(k);break;case A.KeyCode.RIGHT:this.handleKeyRight(k);break}}handleKeySpace(k){var R;(R=this.getComponentForKeyEvent(k))==null||R.toggleSelected()}handleKeyEnter(k){let{excelMode:R,readOnly:T}=this.setFilterParams;!R||T||(k.preventDefault(),this.onBtApply(!1,!1,k),this.setFilterParams.excelMode==="mac"&&this.eMiniFilter.getInputElement().select())}handleKeyLeft(k){var R;(R=this.getComponentForKeyEvent(k))==null||R.setExpanded(!1)}handleKeyRight(k){var R;(R=this.getComponentForKeyEvent(k))==null||R.setExpanded(!0)}getComponentForKeyEvent(k){if(!this.eSetFilterList.contains((0,A._getActiveDomElement)(this.beans)))return;let R=this.virtualList.getLastFocusedRow();if(R==null)return;let T=this.virtualList.getComponentAt(R);if(T==null)return;k.preventDefault();let{readOnly:z}=this.setFilterParams;if(!z)return T}getCssIdentifier(){return"set-filter"}setModel(k){return k==null&&this.valueModel.getModel()==null?(this.setMiniFilter(null),A.AgPromise.resolve()):super.setModel(k)}refresh(k){if(this.applyExcelModeOptions(k),!super.refresh(k))return!1;let R=this.setFilterParams;return["treeList","treeListPathGetter","caseSensitive","comparator","excelMode"].some(z=>k[z]!==(R==null?void 0:R[z]))||this.haveColDefParamsChanged(k)?!1:(super.updateParams(k),this.updateSetFilterOnParamsChange(k),this.updateMiniFilter(),k.suppressSelectAll!==(R==null?void 0:R.suppressSelectAll)&&this.createVirtualListModel(k),this.valueModel.updateOnParamsChange(k).then(()=>{this.refreshFilterValues()}),!0)}haveColDefParamsChanged(k){let{colDef:R,keyCreator:T}=k,{colDef:z,keyCreator:G}=this.setFilterParams,U=T!=null?T:R.keyCreator,X=G!=null?G:z==null?void 0:z.keyCreator,Q=R.filterValueGetter!==(z==null?void 0:z.filterValueGetter),oe=U!==X,le=!!this.dataTypeSvc&&!!U&&this.dataTypeSvc.getFormatValue(R.cellDataType)===U&&R.valueFormatter!==(z==null?void 0:z.valueFormatter);return Q||oe||le}setModelAndRefresh(k){return this.valueModel.setModel(k).then(()=>{this.isAlive()&&this.checkAndRefreshVirtualList()})}resetUiToDefaults(){return this.setMiniFilter(null),this.setModelAndRefresh(null)}setModelIntoUi(k){this.setMiniFilter(null);let R=k==null?null:k.values;return this.setModelAndRefresh(R)}getModelFromUi(){let k=this.valueModel.getModel();return k?{values:k,filterType:this.filterType}:null}getValueModel(){return this.valueModel}areModelsEqual(k,R){return k==null&&R==null?!0:k!=null&&R!=null&&(0,A._areEqual)(k.values,R.values)}setParams(k){var T;this.applyExcelModeOptions(k),super.setParams(k),this.updateSetFilterOnParamsChange(k);let R=(T=k.keyCreator)!=null?T:k.colDef.keyCreator;this.valueModel=new r.SetValueModel({filterParams:k,setIsLoading:z=>this.setIsLoading(z),translate:z=>this.translateForSetFilter(z),caseFormat:z=>this.caseFormat(z),createKey:this.createKey,valueFormatter:this.valueFormatter,usingComplexObjects:!!R,gos:this.gos,rowGroupColsSvc:this.rowGroupColsSvc,valueSvc:this.valueSvc,treeDataTreeList:this.treeDataTreeList,groupingTreeList:this.groupingTreeList,addManagedEventListeners:z=>this.addManagedEventListeners(z)}),this.initialiseFilterBodyUi(),this.addEventListenersForDataChanges()}onAddCurrentSelectionToFilterChange(k){this.valueModel.setAddCurrentSelectionToFilter(k)}setValueFormatter(k,R,T,z){let G=k;if(!G){if(R&&!T){(0,A._error)(249);return}this.noValueFormatterSupplied=!0,z||(G=U=>(0,A._toStringOrNull)(U.value))}this.valueFormatter=G}generateCreateKey(k,R){return R&&!k?((0,A._error)(250),()=>null):k?(T,z=null)=>{let G=this.getKeyCreatorParams(T,z);return(0,A._makeNull)(k(G))}:T=>(0,A._makeNull)((0,A._toStringOrNull)(T))}getFormattedValue(k){var z;let R=this.valueModel.getValue(k);this.noValueFormatterSupplied&&(this.treeDataTreeList||this.groupingTreeList)&&Array.isArray(R)&&(R=(0,A._last)(R));let T=this.valueSvc.formatValue(this.setFilterParams.column,null,R,this.valueFormatter,!1);return(z=T==null?(0,A._toStringOrNull)(R):T)!=null?z:this.translateForSetFilter("blanks")}applyExcelModeOptions(k){k.excelMode==="windows"?(k.buttons||(k.buttons=["apply","cancel"]),k.closeOnApply==null&&(k.closeOnApply=!0)):k.excelMode==="mac"&&(k.buttons||(k.buttons=["reset"]),k.applyMiniFilterWhileTyping==null&&(k.applyMiniFilterWhileTyping=!0),k.debounceMs==null&&(k.debounceMs=500)),k.excelMode&&k.defaultToNothingSelected&&(k.defaultToNothingSelected=!1,(0,A._warn)(207))}addEventListenersForDataChanges(){this.isValuesTakenFromGrid()&&(this.addManagedPropertyListeners(["groupAllowUnbalanced"],()=>{this.syncAfterDataChange()}),this.addManagedEventListeners({cellValueChanged:k=>{k.column===this.setFilterParams.column&&this.syncAfterDataChange()}}))}syncAfterDataChange(){return this.valueModel.refreshValues().then(()=>{this.checkAndRefreshVirtualList(),(!this.applyActive||this.areModelsEqual(this.getModel(),this.getModelFromUi()))&&this.onBtApply(!1,!0)})}setIsLoading(k){(0,A._setDisplayed)(this.eFilterLoading,k),k||(this.hardRefreshVirtualList=!0)}initialiseFilterBodyUi(){this.initVirtualList(),this.initMiniFilter()}initVirtualList(){let R=this.getLocaleTextFunc()("ariaFilterList","Filter List"),T=!!this.setFilterParams.treeList,z=this.virtualList=this.createBean(new F.VirtualList({cssIdentifier:"filter",ariaRole:T?"tree":"listbox",listName:R})),G=this.eSetFilterList;T&&G.classList.add("ag-set-filter-tree-list"),G&&G.appendChild(z.getGui());let{cellHeight:U}=this.setFilterParams;U!=null&&z.setRowHeight(U);let X=(oe,le)=>this.createSetListItem(oe,T,le);z.setComponentCreator(X);let Q=(oe,le)=>this.updateSetListItem(oe,le);z.setComponentUpdater(Q),this.createVirtualListModel(this.setFilterParams)}createVirtualListModel(k){let R;k.suppressSelectAll?R=new g(this.valueModel):R=new m(this.valueModel,()=>this.isSelectAllSelected()),k.treeList&&(R=new b(R)),this.virtualList.setModel(R)}getSelectAllLabel(){let k=this.valueModel.getMiniFilter()==null||!this.setFilterParams.excelMode?"selectAll":"selectAllSearchResults";return this.translateForSetFilter(k)}getAddSelectionToFilterLabel(){return this.translateForSetFilter("addCurrentSelectionToFilter")}createSetListItem(k,R,T){let z=this.valueModel.hasGroups(),{isSelected:G,isExpanded:U}=this.isSelectedExpanded(k),{value:X,depth:Q,isGroup:oe,hasIndeterminateExpandState:le,selectedListener:fe,expandedListener:ye}=this.newSetListItemAttributes(k),ke={focusWrapper:T,value:X,params:this.setFilterParams,translate:ze=>this.translateForSetFilter(ze),valueFormatter:this.valueFormatter,item:k,isSelected:G,isTree:R,depth:Q,groupsExist:z,isGroup:oe,isExpanded:U,hasIndeterminateExpandState:le},Ie=this.createBean(new v.SetFilterListItem(ke));return Ie.addEventListener("selectionChanged",fe),ye&&Ie.addEventListener("expandedChanged",ye),Ie}newSetTreeItemAttributes(k){var T,z,G,U,X,Q;let R=this.valueModel.hasGroups();return k.key===D.SET_FILTER_SELECT_ALL?{value:()=>this.getSelectAllLabel(),isGroup:R,depth:k.depth,hasIndeterminateExpandState:!0,selectedListener:oe=>this.onSelectAll(oe.isSelected),expandedListener:oe=>this.onExpandAll(oe.item,oe.isExpanded)}:k.key===D.SET_FILTER_ADD_SELECTION_TO_FILTER?{value:()=>this.getAddSelectionToFilterLabel(),depth:k.depth,isGroup:!1,hasIndeterminateExpandState:!1,selectedListener:oe=>{this.onAddCurrentSelectionToFilterChange(oe.isSelected)}}:k.children?{value:(G=(z=(T=this.setFilterParams).treeListFormatter)==null?void 0:z.call(T,k.treeKey,k.depth,k.parentTreeKeys))!=null?G:k.treeKey,depth:k.depth,isGroup:!0,selectedListener:oe=>this.onGroupItemSelected(oe.item,oe.isSelected),expandedListener:oe=>this.onExpandedChanged(oe.item,oe.isExpanded)}:{value:(Q=(X=(U=this.setFilterParams).treeListFormatter)==null?void 0:X.call(U,k.treeKey,k.depth,k.parentTreeKeys))!=null?Q:k.treeKey,depth:k.depth,selectedListener:oe=>this.onItemSelected(oe.item.key,oe.isSelected)}}newSetListItemAttributes(k){return this.isSetFilterModelTreeItem(k)?this.newSetTreeItemAttributes(k):k===D.SET_FILTER_SELECT_ALL?{value:()=>this.getSelectAllLabel(),selectedListener:R=>this.onSelectAll(R.isSelected)}:k===D.SET_FILTER_ADD_SELECTION_TO_FILTER?{value:()=>this.getAddSelectionToFilterLabel(),selectedListener:R=>{this.onAddCurrentSelectionToFilterChange(R.isSelected)}}:{value:this.valueModel.getValue(k),selectedListener:R=>this.onItemSelected(R.item,R.isSelected)}}updateSetListItem(k,R){let{isSelected:T,isExpanded:z}=this.isSelectedExpanded(k);R.refresh(k,T,z)}isSelectedExpanded(k){let R,T;return this.isSetFilterModelTreeItem(k)?(T=k.expanded,k.key===D.SET_FILTER_SELECT_ALL?R=this.isSelectAllSelected():k.key===D.SET_FILTER_ADD_SELECTION_TO_FILTER?R=this.valueModel.isAddCurrentSelectionToFilterChecked():k.children?R=this.areAllChildrenSelected(k):R=this.valueModel.isKeySelected(k.key)):k===D.SET_FILTER_SELECT_ALL?R=this.isSelectAllSelected():k===D.SET_FILTER_ADD_SELECTION_TO_FILTER?R=this.valueModel.isAddCurrentSelectionToFilterChecked():R=this.valueModel.isKeySelected(k),{isSelected:R,isExpanded:T}}isSetFilterModelTreeItem(k){return(k==null?void 0:k.treeKey)!==void 0}initMiniFilter(){let{eMiniFilter:k}=this,R=this.getLocaleTextFunc();k.setDisplayed(!this.setFilterParams.suppressMiniFilter),k.setValue(this.valueModel.getMiniFilter()),k.onValueChange(()=>this.onMiniFilterInput()),k.setInputAriaLabel(R("ariaSearchFilterValues","Search filter values")),this.addManagedElementListeners(k.getInputElement(),{keydown:T=>this.onMiniFilterKeyDown(T)})}updateMiniFilter(){let{eMiniFilter:k}=this;k.isDisplayed()!==!this.setFilterParams.suppressMiniFilter&&k.setDisplayed(!this.setFilterParams.suppressMiniFilter);let R=this.valueModel.getMiniFilter();k.getValue()!==R&&k.setValue(R)}afterGuiAttached(k){super.afterGuiAttached(k),this.resetExpansion(),this.refreshVirtualList();let{eMiniFilter:R}=this;R.setInputPlaceholder(this.translateForSetFilter("searchOoo")),(!k||!k.suppressFocus)&&(R.isDisplayed()?R.getFocusableElement().focus():this.virtualList.awaitStable(()=>this.virtualList.focusRow(0)))}afterGuiDetached(){super.afterGuiDetached(),this.setFilterParams.excelMode&&this.resetMiniFilter();let k=this.getModel();(this.setFilterParams.excelMode||!this.areModelsEqual(k,this.getModelFromUi()))&&(this.resetUiToActiveModel(k),this.showOrHideResults())}applyModel(k="api"){this.setFilterParams.excelMode&&k!=="rowDataUpdated"&&this.valueModel.isEverythingVisibleSelected()&&this.valueModel.selectAllMatchingMiniFilter();let R=this.valueModel.showAddCurrentSelectionToFilter()&&this.valueModel.isAddCurrentSelectionToFilterChecked();if(R&&!this.getModel())return!1;let T=super.applyModel(k),z=this.getModel();return z?(R||this.valueModel.setAppliedModelKeys(new Set),z.values.forEach(G=>{this.valueModel.addToAppliedModelKeys(G)})):R||this.valueModel.setAppliedModelKeys(null),T}isModelValid(k){return this.setFilterParams.excelMode?k==null||k.values.length>0:!0}doesFilterPass(k){if(!this.valueModel.getCaseFormattedAppliedModelKeys())return!0;if(!this.valueModel.hasAnyAppliedModelKey())return!1;let{node:R}=k;if(this.treeDataTreeList)return this.doesFilterPassForTreeData(R);if(this.groupingTreeList)return this.doesFilterPassForGrouping(R);let T=this.getValueFromNode(R);return T!=null&&Array.isArray(T)?T.length===0?this.valueModel.hasAppliedModelKey(null):T.some(z=>this.isInAppliedModel(this.createKey(z,R))):this.isInAppliedModel(this.createKey(T,R))}doesFilterPassForTreeData(k){var R,T,z;return(R=k.childrenAfterGroup)!=null&&R.length?!1:this.isInAppliedModel(this.createKey((0,s.processDataPath)((z=k.getRoute())!=null?z:[(T=k.key)!=null?T:k.id],!0,this.gos.get("groupAllowUnbalanced"))))}doesFilterPassForGrouping(k){var T,z;let R=((z=(T=this.rowGroupColsSvc)==null?void 0:T.columns)!=null?z:[]).map(G=>this.valueSvc.getKeyForNode(G,k));return R.push(this.getValueFromNode(k)),this.isInAppliedModel(this.createKey((0,s.processDataPath)(R,!1,this.gos.get("groupAllowUnbalanced"))))}isInAppliedModel(k){return this.valueModel.hasAppliedModelKey(k)}getValueFromNode(k){return this.setFilterParams.getValue(k)}getKeyCreatorParams(k,R=null){let{colDef:T,column:z,api:G,context:U}=this.setFilterParams;return{value:k,colDef:T,column:z,node:R,data:R==null?void 0:R.data,api:G,context:U}}onNewRowsLoaded(){this.isValuesTakenFromGrid()&&this.syncAfterDataChange()}isValuesTakenFromGrid(){return this.valueModel.getValuesType()===r.SetFilterModelValuesType.TAKEN_FROM_GRID_VALUES}setFilterValues(k){this.valueModel.overrideValues(k).then(()=>{this.checkAndRefreshVirtualList(),this.onUiChanged()})}resetFilterValues(){this.valueModel.setValuesType(r.SetFilterModelValuesType.TAKEN_FROM_GRID_VALUES),this.syncAfterDataChange()}refreshFilterValues(){this.valueModel.isInitialised()&&this.valueModel.refreshValues().then(()=>{this.hardRefreshVirtualList=!0,this.checkAndRefreshVirtualList(),this.onUiChanged()})}onAnyFilterChanged(){setTimeout(()=>{this.isAlive()&&this.valueModel.refreshAfterAnyFilterChanged().then(k=>{k&&(this.checkAndRefreshVirtualList(),this.showOrHideResults())})},0)}onMiniFilterInput(){if(!this.valueModel.setMiniFilter(this.eMiniFilter.getValue()))return;let{applyMiniFilterWhileTyping:k,readOnly:R}=this.setFilterParams;!R&&k?this.filterOnAllVisibleValues(!1):this.updateUiAfterMiniFilterChange()}updateUiAfterMiniFilterChange(){let{excelMode:k,readOnly:R}=this.setFilterParams;k==null||R?this.checkAndRefreshVirtualList():this.valueModel.getMiniFilter()==null?this.resetUiToActiveModel(this.getModel()):(this.valueModel.selectAllMatchingMiniFilter(!0),this.checkAndRefreshVirtualList(),this.onUiChanged()),this.showOrHideResults()}showOrHideResults(){let k=this.valueModel.getMiniFilter()!=null&&this.valueModel.getDisplayedValueCount()<1;(0,A._setDisplayed)(this.eFilterNoMatches,k),(0,A._setDisplayed)(this.eSetFilterList,!k)}resetMiniFilter(){this.eMiniFilter.setValue(null,!0),this.valueModel.setMiniFilter(null)}resetUiToActiveModel(k,R){this.setModelAndRefresh(k==null?null:k.values).then(()=>{this.onUiChanged(!1,"prevent"),R==null||R()})}handleCancelEnd(k){this.setMiniFilter(null),super.handleCancelEnd(k)}onMiniFilterKeyDown(k){let{excelMode:R,readOnly:T}=this.setFilterParams;k.key===A.KeyCode.ENTER&&!R&&!T&&this.filterOnAllVisibleValues()}filterOnAllVisibleValues(k=!0){this.valueModel.selectAllMatchingMiniFilter(!0),this.checkAndRefreshVirtualList(),this.onUiChanged(!1,k?"immediately":"debounce"),this.showOrHideResults()}focusRowIfAlive(k){k!=null&&window.setTimeout(()=>{this.isAlive()&&this.virtualList.focusRow(k)},0)}onSelectAll(k){k?this.valueModel.selectAllMatchingMiniFilter():this.valueModel.deselectAllMatchingMiniFilter(),this.refreshAfterSelection()}onGroupItemSelected(k,R){let T=z=>{z.children?z.children.forEach(G=>T(G)):this.selectItem(z.key,R)};T(k),this.refreshAfterSelection()}onItemSelected(k,R){this.selectItem(k,R),this.refreshAfterSelection()}selectItem(k,R){R?this.valueModel.selectKey(k):this.valueModel.deselectKey(k)}onExpandAll(k,R){let T=z=>{z.filterPasses&&z.available&&z.children&&(z.children.forEach(G=>T(G)),z.expanded=R)};T(k),this.refreshAfterExpansion()}onExpandedChanged(k,R){k.expanded=R,this.refreshAfterExpansion()}refreshAfterExpansion(){let k=this.virtualList.getLastFocusedRow();this.valueModel.updateDisplayedValues("expansion"),this.checkAndRefreshVirtualList(),this.focusRowIfAlive(k)}refreshAfterSelection(){let k=this.virtualList.getLastFocusedRow();this.checkAndRefreshVirtualList(),this.onUiChanged(),this.focusRowIfAlive(k)}setMiniFilter(k){this.eMiniFilter.setValue(k),this.onMiniFilterInput()}getMiniFilter(){return this.valueModel.getMiniFilter()}checkAndRefreshVirtualList(){this.virtualList.refresh(!this.hardRefreshVirtualList),this.hardRefreshVirtualList&&(this.hardRefreshVirtualList=!1)}getFilterKeys(){return this.valueModel.getKeys()}getFilterValues(){return this.valueModel.getValues()}getValues(){return this.getFilterKeys()}refreshVirtualList(){this.setFilterParams.refreshValuesOnOpen?this.refreshFilterValues():this.checkAndRefreshVirtualList()}translateForSetFilter(k){return this.getLocaleTextFunc()(k,f.DEFAULT_LOCALE_TEXT[k])}isSelectAllSelected(){if(this.setFilterParams.defaultToNothingSelected){if(this.valueModel.hasSelections()&&this.valueModel.isEverythingVisibleSelected())return!0;if(this.valueModel.isNothingVisibleSelected())return!1}else{if(this.valueModel.hasSelections()&&this.valueModel.isNothingVisibleSelected())return!1;if(this.valueModel.isEverythingVisibleSelected())return!0}}areAllChildrenSelected(k){let R=T=>{if(T.children){let z=!1,G=!1;return T.children.some(X=>{if(!X.filterPasses||!X.available)return!1;let Q=R(X);return Q===void 0?!0:(Q?z=!0:G=!0,z&&G)})?void 0:z}else return this.valueModel.isKeySelected(T.key)};return this.setFilterParams.defaultToNothingSelected?this.valueModel.hasSelections()&&R(k):R(k)}destroy(){this.virtualList=this.destroyBean(this.virtualList),super.destroy()}caseFormat(k){return k==null||typeof k!="string"||this.caseSensitive?k:k.toUpperCase()}resetExpansion(){if(!this.setFilterParams.treeList)return;let k=this.valueModel.getSelectAllItem();if(this.isSetFilterModelTreeItem(k)){let R=T=>{T.children&&(T.children.forEach(z=>R(z)),T.expanded=!1)};R(k),this.valueModel.updateDisplayedValues("expansion")}}getModelAsString(k){return this.filterModelFormatter.getModelAsString(k,this)}getPositionableElement(){return this.eSetFilterList}}p.SetFilter=d;class g{constructor(k){this.model=k}getRowCount(){return this.model.getDisplayedValueCount()}getRow(k){return this.model.getDisplayedItem(k)}areRowsEqual(k,R){return k===R}}class m{constructor(k,R){this.model=k,this.isSelectAllSelected=R}getRowCount(){let R=this.model.showAddCurrentSelectionToFilter()?2:1;return this.model.getDisplayedValueCount()+R}getRow(k){if(k===0)return this.model.getSelectAllItem();let R=this.model.showAddCurrentSelectionToFilter(),T=R?2:1;return k===1&&R?this.model.getAddSelectionToFilterItem():this.model.getDisplayedItem(k-T)}areRowsEqual(k,R){return k===R}}class b{constructor(k){this.model=k}getRowCount(){return this.model.getRowCount()}getRow(k){return this.model.getRow(k)}areRowsEqual(k,R){return k==null&&R==null?!0:k!=null&&R!=null&&k.treeKey===R.treeKey&&k.depth===R.depth}}},105:function(x,p,M){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.SetFilterListItem=void 0;let A=M(6624);class F extends A.Component{constructor(f){var v;super(f.isGroup?`
            <div class="ag-set-filter-item" aria-hidden="true">
                <span class="ag-set-filter-group-icons">
                    <span class="ag-set-filter-group-closed-icon" data-ref="eGroupClosedIcon"></span>
                    <span class="ag-set-filter-group-opened-icon" data-ref="eGroupOpenedIcon"></span>
                    <span class="ag-set-filter-group-indeterminate-icon" data-ref="eGroupIndeterminateIcon"></span>
                </span>
                <ag-checkbox data-ref="eCheckbox" class="ag-set-filter-item-checkbox"></ag-checkbox>
            </div>`:`
            <div class="ag-set-filter-item">
                <ag-checkbox data-ref="eCheckbox" class="ag-set-filter-item-checkbox"></ag-checkbox>
            </div>`,[A.AgCheckboxSelector]),this.eCheckbox=A.RefPlaceholder,this.eGroupOpenedIcon=A.RefPlaceholder,this.eGroupClosedIcon=A.RefPlaceholder,this.eGroupIndeterminateIcon=A.RefPlaceholder,this.formattedValue=null,this.focusWrapper=f.focusWrapper,this.value=f.value,this.params=f.params,this.translate=f.translate,this.valueFormatter=f.valueFormatter,this.item=f.item,this.isSelected=f.isSelected,this.isTree=f.isTree,this.depth=(v=f.depth)!=null?v:0,this.isGroup=f.isGroup,this.groupsExist=f.groupsExist,this.isExpanded=f.isExpanded,this.hasIndeterminateExpandState=f.hasIndeterminateExpandState}postConstruct(){this.tooltipFeature=this.createOptionalManagedBean(this.beans.registry.createDynamicBean("tooltipFeature",!1,{getGui:()=>this.getGui(),getColDef:()=>this.params.colDef,getColumn:()=>this.params.column,getLocation:()=>"setFilterValue",shouldDisplayTooltip:()=>{var f,v;return(v=(f=this.shouldDisplayTooltip)==null?void 0:f.call(this))!=null?v:!0},getValueFormatted:()=>this.formattedValue,getAdditionalParams:()=>this.isTree?{level:this.depth}:{}})),this.addDestroyFunc(()=>{var f;return(f=this.destroyCellRendererComponent)==null?void 0:f.call(this)}),this.render(),this.eCheckbox.setLabelEllipsis(!0).setValue(this.isSelected,!0).setDisabled(!!this.params.readOnly).getInputElement().setAttribute("tabindex","-1"),this.refreshVariableAriaLabels(),this.isTree&&(this.depth>0&&(this.addCssClass("ag-set-filter-indent-"+this.depth),this.getGui().style.setProperty("--ag-indentation-level",String(this.depth))),this.isGroup?this.setupExpansion():this.groupsExist&&this.addCssClass("ag-set-filter-add-group-indent"),(0,A._setAriaLevel)(this.getAriaElement(),this.depth+1)),this.refreshAriaChecked(),!this.params.readOnly&&this.eCheckbox.onValueChange(f=>this.onCheckboxChanged(!!f))}getFocusableElement(){return this.focusWrapper}setupExpansion(){let{eGroupClosedIcon:f,eGroupOpenedIcon:v,eGroupIndeterminateIcon:u,hasIndeterminateExpandState:s,beans:r}=this;f.appendChild((0,A._createIcon)("setFilterGroupClosed",r,null)),v.appendChild((0,A._createIcon)("setFilterGroupOpen",r,null));let d=this.onExpandOrContractClicked.bind(this);this.addManagedElementListeners(f,{click:d}),this.addManagedElementListeners(v,{click:d}),s&&(u.appendChild((0,A._createIcon)("setFilterGroupIndeterminate",r,null)),this.addManagedElementListeners(u,{click:d})),this.setExpandedIcons(),this.refreshAriaExpanded()}onExpandOrContractClicked(){this.setExpanded(!this.isExpanded)}setExpanded(f,v){if(this.isGroup&&f!==this.isExpanded){this.isExpanded=f;let u={type:"expandedChanged",isExpanded:!!f,item:this.item};v||this.dispatchLocalEvent(u),this.setExpandedIcons(),this.refreshAriaExpanded()}}setExpandedIcons(){let{isExpanded:f,hasIndeterminateExpandState:v,eGroupClosedIcon:u,eGroupOpenedIcon:s,eGroupIndeterminateIcon:r}=this;(0,A._setDisplayed)(u,v?f===!1:!f),(0,A._setDisplayed)(s,f===!0),v&&(0,A._setDisplayed)(r,f===void 0)}onCheckboxChanged(f){this.isSelected=f;let v={type:"selectionChanged",isSelected:f,item:this.item};this.dispatchLocalEvent(v),this.refreshVariableAriaLabels(),this.refreshAriaChecked()}toggleSelected(){this.params.readOnly||this.setSelected(!this.isSelected)}setSelected(f,v){this.isSelected=f,this.eCheckbox.setValue(f,v),this.refreshAriaChecked()}refreshVariableAriaLabels(){if(!this.isTree)return;let f=this.getLocaleTextFunc(),v=this.eCheckbox.getValue(),u=v===void 0?f("ariaIndeterminate","indeterminate"):v?f("ariaVisible","visible"):f("ariaHidden","hidden"),s=f("ariaToggleVisibility","Press SPACE to toggle visibility");(0,A._setAriaLabelledBy)(this.eCheckbox.getInputElement(),void 0),this.eCheckbox.setInputAriaLabel(`${s} (${u})`)}setupFixedAriaLabels(f){if(!this.isTree)return;let u=this.getLocaleTextFunc()("ariaFilterValue","Filter Value"),s=this.getAriaElement();(0,A._setAriaLabel)(s,`${f} ${u}`),(0,A._setAriaDescribedBy)(s,this.eCheckbox.getInputElement().id)}refreshAriaChecked(){let f=this.getAriaElement();(0,A._setAriaChecked)(f,this.eCheckbox.getValue())}refreshAriaExpanded(){(0,A._setAriaExpanded)(this.getAriaElement(),!!this.isExpanded)}refresh(f,v,u){var m,b;this.item=f,v!==this.isSelected&&this.setSelected(v,!0),this.setExpanded(u,!0);let{cellRendererComponent:s,cellRendererParams:r,beans:d,params:g}=this;if(this.valueFunction){let w=this.valueFunction();this.setTooltipAndCellRendererParams(w,w),s||this.renderCellWithoutCellRenderer()}if(s){let w=(0,A._getCellRendererDetails)(d.userCompFactory,g,r);if(!((b=s.refresh)==null?void 0:b.call(s,(m=w==null?void 0:w.params)!=null?m:r))){let R=s;this.renderCell(),this.destroyBean(R)}}}render(){let{params:{column:f}}=this,{value:v}=this,u=null;typeof v=="function"?(this.valueFunction=v,u=this.valueFunction(),v=u):this.isTree?u=(0,A._toStringOrNull)(v):u=this.getFormattedValue(f,v),this.formattedValue=u,this.setTooltipAndCellRendererParams(v,u),this.renderCell()}setTooltipAndCellRendererParams(f,v){var s;let u=this.gos;if(this.params.showTooltips&&(!(0,A._isShowTooltipWhenTruncated)(u)||!this.params.cellRenderer)){let r=v!=null?v:(0,A._toStringOrNull)(f);this.shouldDisplayTooltip=(0,A._getShouldDisplayTooltip)(u,()=>this.eCheckbox.getGui().querySelector(".ag-label")),(s=this.tooltipFeature)==null||s.setTooltipAndRefresh(r)}this.cellRendererParams=u.addGridCommonParams({value:f,valueFormatted:v,colDef:this.params.colDef,column:this.params.column,setTooltip:(r,d)=>{var g;u.assertModuleRegistered("Tooltip",3),this.shouldDisplayTooltip=d,(g=this.tooltipFeature)==null||g.setTooltipAndRefresh(r)}})}getFormattedValue(f,v){return this.beans.valueSvc.formatValue(f,null,v,this.valueFormatter,!1)}renderCell(){let f=(0,A._getCellRendererDetails)(this.beans.userCompFactory,this.params,this.cellRendererParams),v=f==null?void 0:f.newAgStackInstance();if(v==null){this.renderCellWithoutCellRenderer();return}v.then(u=>{u&&(this.cellRendererComponent=u,this.eCheckbox.setLabel(u.getGui()),this.destroyCellRendererComponent=()=>this.destroyBean(u))})}renderCellWithoutCellRenderer(){var s;let{valueFormatted:f,value:v}=this.cellRendererParams,u=(s=f==null?v:f)!=null?s:this.translate("blanks");typeof u!="string"&&((0,A._warn)(208),u=""),this.eCheckbox.setLabel(u),this.setupFixedAriaLabels(u)}getComponentHolder(){return this.params.column.getColDef()}}p.SetFilterListItem=F},5355:function(x,p){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.SetFilterModelFormatter=void 0;class M{getModelAsString(F,D){let{values:f}=F||D.getModel()||{},v=D.getValueModel();if(f==null||v==null)return"";let u=f.filter(d=>v.isKeyAvailable(d)),s=u.length,r=u.slice(0,10).map(d=>D.getFormattedValue(d));return`(${s}) ${r.join(",")}${s>10?",...":""}`}}p.SetFilterModelFormatter=M},9002:function(x,p,M){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.SetFilterModule=void 0;let A=M(6624),F=M(9206),D=M(7205),f=M(2734),v=M(4716);p.SetFilterModule={moduleName:"SetFilter",version:D.VERSION,userComponents:{agSetColumnFilter:f.SetFilter,agSetColumnFloatingFilter:v.SetFloatingFilterComp},icons:{setFilterGroupClosed:"tree-closed",setFilterGroupOpen:"tree-open",setFilterGroupIndeterminate:"tree-indeterminate"},dependsOn:[F.EnterpriseCoreModule,A._ColumnFilterModule]}},2270:function(x,p,M){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.processDataPath=void 0;let A=M(6624);function F(D,f,v){let u=D;return u?(u=u.map(s=>(0,A._toStringOrNull)((0,A._makeNull)(s))),!f&&v&&u.some(s=>s==null)?(0,A._last)(u)==null?null:u.filter(s=>s!=null):u):null}p.processDataPath=F},4716:function(x,p,M){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.SetFloatingFilterComp=void 0;let A=M(6624),F=M(2734),D=M(5355);class f extends A.Component{wireBeans(u){this.colNames=u.colNames}constructor(){super(`
            <div class="ag-floating-filter-input ag-set-floating-filter-input" role="presentation">
                <ag-input-text-field data-ref="eFloatingFilterText"></ag-input-text-field>
            </div>`,[A.AgInputTextFieldSelector]),this.eFloatingFilterText=A.RefPlaceholder,this.availableValuesListenerAdded=!1,this.filterModelFormatter=new D.SetFilterModelFormatter}init(u){this.params=u,this.eFloatingFilterText.setDisabled(!0).addGuiEventListener("click",()=>this.params.showParentFilter()),this.setParams(u)}setParams(u){let s=this.colNames.getDisplayNameForColumn(u.column,"header",!0),r=this.getLocaleTextFunc();this.eFloatingFilterText.setInputAriaLabel(`${s} ${r("ariaFilterInput","Filter Input")}`)}refresh(u){this.params=u,this.setParams(u)}onParentModelChanged(u){this.updateFloatingFilterText(u)}parentSetFilterInstance(u){this.params.parentFilterInstance(s=>{if(!(s instanceof F.SetFilter)){(0,A._error)(248);return}u(s)})}addAvailableValuesListener(){this.parentSetFilterInstance(u=>{let s=u.getValueModel();s&&this.addManagedListeners(s,{availableValuesChanged:()=>this.updateFloatingFilterText()})}),this.availableValuesListenerAdded=!0}updateFloatingFilterText(u){this.availableValuesListenerAdded||this.addAvailableValuesListener(),this.parentSetFilterInstance(s=>{this.eFloatingFilterText.setValue(this.filterModelFormatter.getModelAsString(u,s))})}}p.SetFloatingFilterComp=f},4366:function(x,p,M){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.SetValueModel=p.SetFilterModelValuesType=void 0;let A=M(6624),F=M(4737),D=M(4510),f=M(8053),v=M(5546);var u;(function(r){r[r.PROVIDED_LIST=0]="PROVIDED_LIST",r[r.PROVIDED_CALLBACK=1]="PROVIDED_CALLBACK",r[r.TAKEN_FROM_GRID_VALUES=2]="TAKEN_FROM_GRID_VALUES"})(u||(p.SetFilterModelValuesType=u={}));class s{constructor(d){this.localEventService=new A.LocalEventService,this.miniFilterText=null,this.addCurrentSelectionToFilter=!1,this.providedValues=null,this.allValues=new Map,this.availableKeys=new Set,this.selectedKeys=new Set,this.initialised=!1;let{usingComplexObjects:g,rowGroupColsSvc:m,valueSvc:b,treeDataTreeList:w,groupingTreeList:k,filterParams:R,gos:T,valueFormatter:z,addManagedEventListeners:G}=d,{column:U,colDef:X,textFormatter:Q,doesRowPassOtherFilter:oe,suppressSorting:le,comparator:fe,rowModel:ye,values:ke,caseSensitive:Ie,treeList:ze,treeListPathGetter:Ye,treeListFormatter:xe}=R;this.filterParams=R,this.gos=T,this.setIsLoading=d.setIsLoading,this.translate=d.translate,this.caseFormat=d.caseFormat,this.createKey=d.createKey,this.usingComplexObjects=!!d.usingComplexObjects,this.formatter=Q!=null?Q:Re=>Re!=null?Re:null,this.doesRowPassOtherFilters=oe,this.suppressSorting=le||!1,this.filteringKeys=new D.SetValueModelFilteringKeys({caseFormat:this.caseFormat});let Te=fe!=null?fe:X.comparator,Ae=!!w||!!k;this.compareByValue=!!(g&&Te||Ae||ze&&!Ye),Ae&&!Te?this.entryComparator=this.createTreeDataOrGroupingComparator():ze&&!Ye&&!Te?this.entryComparator=([Re,Oe],[Ve,Ue])=>(0,A._defaultComparator)(Oe,Ue):this.entryComparator=([Re,Oe],[Ve,Ue])=>Te(Oe,Ue),this.keyComparator=Te!=null?Te:A._defaultComparator,this.caseSensitive=!!Ie;let Ne=T.get("groupAllowUnbalanced");(0,A._isClientSideRowModel)(T,ye)&&(this.clientSideValuesExtractor=new F.ClientSideValuesExtractor(ye,this.filterParams,this.createKey,this.caseFormat,b,Ae,!!w,Ne,G,m)),ke==null?this.valuesType=u.TAKEN_FROM_GRID_VALUES:(this.valuesType=Array.isArray(ke)?u.PROVIDED_LIST:u.PROVIDED_CALLBACK,this.providedValues=ke),this.displayValueModel=ze?new v.TreeSetDisplayValueModel(this.formatter,Ye,xe,w||k):new f.FlatSetDisplayValueModel(b,z,this.formatter,U),this.updateAllValues().then(Re=>this.resetSelectionState(Re||[]))}addEventListener(d,g,m){this.localEventService.addEventListener(d,g,m)}removeEventListener(d,g,m){this.localEventService.removeEventListener(d,g,m)}updateOnParamsChange(d){return new A.AgPromise(g=>{let{values:m,textFormatter:b,suppressSorting:w,treeListFormatter:k}=d,R=this.providedValues,T=this.suppressSorting;if(this.filterParams=d,this.formatter=b!=null?b:z=>z!=null?z:null,this.suppressSorting=w||!1,this.providedValues=m!=null?m:null,this.displayValueModel instanceof v.TreeSetDisplayValueModel&&this.displayValueModel.updateOnParamsChange(k),this.providedValues!==R||this.suppressSorting!==T){!m||m.length===0?(this.valuesType=u.TAKEN_FROM_GRID_VALUES,this.providedValues=null):this.valuesType=Array.isArray(m)?u.PROVIDED_LIST:u.PROVIDED_CALLBACK;let z=this.getModel();this.updateAllValues().then(()=>{this.setModel(z).then(()=>g())})}else g()})}refreshValues(){return new A.AgPromise(d=>{this.allValuesPromise.then(()=>{let g=this.getModel();this.updateAllValues(),this.setModel(g).then(()=>d())})})}overrideValues(d){return new A.AgPromise(g=>{this.allValuesPromise.then(()=>{this.valuesType=u.PROVIDED_LIST,this.providedValues=d,this.refreshValues().then(()=>g())})})}refreshAfterAnyFilterChanged(){return this.showAvailableOnly()?this.allValuesPromise.then(d=>(this.updateAvailableKeys(d!=null?d:[],"otherFilter"),!0)):A.AgPromise.resolve(!1)}isInitialised(){return this.initialised}updateAllValues(){return this.allValuesPromise=new A.AgPromise(d=>{switch(this.valuesType){case u.TAKEN_FROM_GRID_VALUES:this.getValuesFromRowsAsync(!1).then(g=>d(this.processAllValues(g)));break;case u.PROVIDED_LIST:{d(this.processAllValues(this.uniqueValues(this.validateProvidedValues(this.providedValues))));break}case u.PROVIDED_CALLBACK:{this.setIsLoading(!0);let g=this.providedValues,{column:m,colDef:b}=this.filterParams,w=this.gos.addGridCommonParams({success:k=>{this.setIsLoading(!1),d(this.processAllValues(this.uniqueValues(this.validateProvidedValues(k))))},colDef:b,column:m});window.setTimeout(()=>g(w),0);break}}}),this.allValuesPromise.then(d=>this.updateAvailableKeys(d||[],"reload")).then(()=>this.initialised=!0),this.allValuesPromise}processAllValues(d){let g=this.sortKeys(d);return this.allValues=d!=null?d:new Map,g}validateProvidedValues(d){if(this.usingComplexObjects&&(d!=null&&d.length)){let g=d[0];g&&typeof g!="object"&&typeof g!="function"&&(this.createKey(g)==null?(0,A._warn)(209):(0,A._warn)(210))}return d}setValuesType(d){this.valuesType=d}getValuesType(){return this.valuesType}isKeyAvailable(d){return this.availableKeys.has(d)}showAvailableOnly(){return this.valuesType===u.TAKEN_FROM_GRID_VALUES}updateAvailableKeys(d,g){let m=this.showAvailableOnly()?this.sortKeys(this.getValuesFromRows(!0)):d;this.availableKeys=new Set(m),this.localEventService.dispatchEvent({type:"availableValuesChanged"}),this.updateDisplayedValues(g,d)}sortKeys(d){let g=d!=null?d:new Map;if(this.suppressSorting)return Array.from(g.keys());let m;return this.compareByValue?m=Array.from(g.entries()).sort(this.entryComparator).map(([b])=>b):m=Array.from(g.keys()).sort(this.keyComparator),this.filterParams.excelMode&&g.has(null)&&(m=m.filter(b=>b!=null),m.push(null)),m}getParamsForValuesFromRows(d=!1){if(!this.clientSideValuesExtractor)return(0,A._error)(113),null;let g=b=>!d||this.doesRowPassOtherFilters(b),m=d&&!this.caseSensitive?this.allValues:void 0;return{predicate:g,existingValues:m}}getValuesFromRows(d=!1){let g=this.getParamsForValuesFromRows(d);return g?this.clientSideValuesExtractor.extractUniqueValues(g.predicate,g.existingValues):null}getValuesFromRowsAsync(d=!1){let g=this.getParamsForValuesFromRows(d);return g?this.clientSideValuesExtractor.extractUniqueValuesAsync(g.predicate,g.existingValues):A.AgPromise.resolve(null)}setMiniFilter(d){return d=(0,A._makeNull)(d),this.miniFilterText===d?!1:(d===null&&this.setAddCurrentSelectionToFilter(!1),this.miniFilterText=d,this.updateDisplayedValues("miniFilter"),!0)}getMiniFilter(){return this.miniFilterText}updateDisplayedValues(d,g){if(d==="expansion"){this.displayValueModel.refresh();return}if(this.miniFilterText==null){this.displayValueModel.updateDisplayedValuesToAllAvailable(k=>this.getValue(k),g,this.availableKeys,d);return}let m=this.caseFormat(this.formatter(this.miniFilterText)||""),b=k=>k!=null&&this.caseFormat(k).indexOf(m)>=0,w=!!this.filterParams.excelMode&&b(this.translate("blanks"));this.displayValueModel.updateDisplayedValuesToMatchMiniFilter(k=>this.getValue(k),g,this.availableKeys,b,w,d)}getDisplayedValueCount(){return this.displayValueModel.getDisplayedValueCount()}getDisplayedItem(d){return this.displayValueModel.getDisplayedItem(d)}getSelectAllItem(){return this.displayValueModel.getSelectAllItem()}getAddSelectionToFilterItem(){return this.displayValueModel.getAddSelectionToFilterItem()}hasSelections(){return this.filterParams.defaultToNothingSelected?this.selectedKeys.size>0:this.allValues.size!==this.selectedKeys.size}getKeys(){return Array.from(this.allValues.keys())}getValues(){return Array.from(this.allValues.values())}getValue(d){return this.allValues.get(d)}setAddCurrentSelectionToFilter(d){this.addCurrentSelectionToFilter=d}isInWindowsExcelMode(){return this.filterParams.excelMode==="windows"}isAddCurrentSelectionToFilterChecked(){return this.isInWindowsExcelMode()&&this.addCurrentSelectionToFilter}showAddCurrentSelectionToFilter(){return this.isInWindowsExcelMode()&&(0,A._exists)(this.miniFilterText)&&this.miniFilterText.length>0}selectAllMatchingMiniFilter(d=!1){this.miniFilterText==null?this.selectedKeys=new Set(this.allValues.keys()):(d&&this.selectedKeys.clear(),this.displayValueModel.forEachDisplayedKey(g=>this.selectedKeys.add(g)))}deselectAllMatchingMiniFilter(){this.miniFilterText==null?this.selectedKeys.clear():this.displayValueModel.forEachDisplayedKey(d=>this.selectedKeys.delete(d))}selectKey(d){this.selectedKeys.add(d)}deselectKey(d){this.filterParams.excelMode&&this.isEverythingVisibleSelected()&&this.resetSelectionState(this.displayValueModel.getDisplayedKeys()),this.selectedKeys.delete(d)}isKeySelected(d){return this.selectedKeys.has(d)}isEverythingVisibleSelected(){return!this.displayValueModel.someDisplayedKey(d=>!this.isKeySelected(d))}isNothingVisibleSelected(){return!this.displayValueModel.someDisplayedKey(d=>this.isKeySelected(d))}getModel(){if(!this.hasSelections())return null;let d=this.isAddCurrentSelectionToFilterChecked()?this.filteringKeys.allFilteringKeys():null;if(d&&d.size>0){if(this.selectedKeys){let g=new Set([...Array.from(d),...Array.from(this.selectedKeys).filter(m=>!d.has(m))]);return Array.from(g)}return Array.from(d)}return Array.from(this.selectedKeys)}setModel(d){return this.allValuesPromise.then(g=>{if(d==null)this.resetSelectionState(g!=null?g:[]);else{this.selectedKeys.clear();let m=new Map;this.allValues.forEach((b,w)=>{m.set(this.caseFormat(w),w)}),d.forEach(b=>{let w=this.caseFormat((0,A._makeNull)(b)),k=m.get(w);k!==void 0&&this.selectKey(k)})}})}uniqueValues(d){let g=new Map,m=new Set;return(d!=null?d:[]).forEach(b=>{let w=(0,A._makeNull)(b),k=this.createKey(w),R=this.caseFormat(k);m.has(R)||(m.add(R),g.set(k,w))}),g}resetSelectionState(d){this.filterParams.defaultToNothingSelected?this.selectedKeys.clear():this.selectedKeys=new Set(d)}hasGroups(){return this.displayValueModel.hasGroups()}createTreeDataOrGroupingComparator(){return([d,g],[m,b])=>{if(g==null)return b==null?0:-1;if(b==null)return 1;for(let w=0;w<g.length;w++){if(w>=b.length)return 1;let k=(0,A._defaultComparator)(g[w],b[w]);if(k!==0)return k}return 0}}setAppliedModelKeys(d){this.filteringKeys.setFilteringKeys(d)}addToAppliedModelKeys(d){this.filteringKeys.addFilteringKey(d)}getAppliedModelKeys(){return this.filteringKeys.allFilteringKeys()}getCaseFormattedAppliedModelKeys(){return this.filteringKeys.allFilteringKeysCaseFormatted()}hasAppliedModelKey(d){return this.filteringKeys.hasCaseFormattedFilteringKey(d)}hasAnyAppliedModelKey(){return!this.filteringKeys.hasNoAppliedFilteringKeys}}p.SetValueModel=s},5546:function(x,p,M){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.TreeSetDisplayValueModel=void 0;let A=M(6624),F=M(3335),D=v=>v?[String(v.getFullYear()),String(v.getMonth()+1),String(v.getDate())]:null;class f{constructor(u,s,r,d){this.formatter=u,this.treeListPathGetter=s,this.treeListFormatter=r,this.treeDataOrGrouping=d,this.allDisplayedItemsTree=[],this.activeDisplayedItemsFlat=[],this.selectAllItem={depth:0,filterPasses:!0,available:!0,treeKey:F.SET_FILTER_SELECT_ALL,children:this.allDisplayedItemsTree,expanded:!0,key:F.SET_FILTER_SELECT_ALL,parentTreeKeys:[]},this.addSelectionToFilterItem={depth:0,filterPasses:!0,available:!0,treeKey:F.SET_FILTER_ADD_SELECTION_TO_FILTER,expanded:!0,key:F.SET_FILTER_ADD_SELECTION_TO_FILTER,parentTreeKeys:[]}}updateOnParamsChange(u){this.treeListFormatter=u}updateDisplayedValuesToAllAvailable(u,s,r,d){d==="reload"?this.generateItemTree(u,s,r):d==="otherFilter"?(this.updateAvailable(r),this.updateExpandAll()):d==="miniFilter"&&(this.resetFilter(),this.updateExpandAll()),this.flattenItems()}updateDisplayedValuesToMatchMiniFilter(u,s,r,d,g,m){m==="reload"?this.generateItemTree(u,s,r):m==="otherFilter"&&this.updateAvailable(r),this.updateFilter(d,g),this.updateExpandAll(),this.flattenItems()}generateItemTree(u,s,r){var g;this.allDisplayedItemsTree=[],this.groupsExist=!1;let d=this.getTreeListPathGetter(u,r);for(let m of s){let b=u(m),w=(g=d(b))!=null?g:[null];w.length>1&&(this.groupsExist=!0);let k=r.has(m),R=this.allDisplayedItemsTree,T,z=[];w.forEach((G,U)=>{R||(R=[],T.children=R),T=R.find(X=>{var Q;return((Q=X.treeKey)==null?void 0:Q.toUpperCase())===(G==null?void 0:G.toUpperCase())}),T||(T={treeKey:G,depth:U,filterPasses:!0,expanded:!1,available:k,parentTreeKeys:z},U===w.length-1&&(T.key=m),R.push(T)),R=T.children,z=[...z,G]})}this.updateAvailable(r),this.selectAllItem.children=this.allDisplayedItemsTree,this.selectAllItem.expanded=!1}getTreeListPathGetter(u,s){if(this.treeListPathGetter)return this.treeListPathGetter;if(this.treeDataOrGrouping)return d=>d;let r=!1;for(let d of s){let g=u(d);if(g instanceof Date){r=!0;break}else if(g!=null)break}return r?D:((0,A._warn)(211),d=>[String(d)])}flattenItems(){this.activeDisplayedItemsFlat=[];let u=s=>{s.forEach(r=>{!r.filterPasses||!r.available||(this.activeDisplayedItemsFlat.push(r),r.children&&r.expanded&&u(r.children))})};u(this.allDisplayedItemsTree)}resetFilter(){let u=s=>{s.children&&s.children.forEach(r=>{u(r)}),s.filterPasses=!0};this.allDisplayedItemsTree.forEach(s=>u(s))}updateFilter(u,s){let r=d=>d.available?d.treeKey==null?s:u(this.formatter(this.treeListFormatter?this.treeListFormatter(d.treeKey,d.depth,d.parentTreeKeys):d.treeKey)):!1;this.allDisplayedItemsTree.forEach(d=>this.recursiveItemCheck(d,!1,r,"filterPasses"))}getDisplayedValueCount(){return this.activeDisplayedItemsFlat.length}getDisplayedItem(u){return this.activeDisplayedItemsFlat[u]}getSelectAllItem(){return this.selectAllItem}getAddSelectionToFilterItem(){return this.addSelectionToFilterItem}getDisplayedKeys(){let u=[];return this.forEachDisplayedKey(s=>u.push(s)),u}forEachDisplayedKey(u){let s=(r,d)=>{r.children?(!r.expanded||!d)&&r.children.forEach(g=>{g.filterPasses&&s(g,!1)}):u(r.key)};this.activeDisplayedItemsFlat.forEach(r=>s(r,!0))}someDisplayedKey(u){let s=(r,d)=>{if(r.children){if(!r.expanded||!d)return r.children.some(g=>g.filterPasses?s(g,!1):!1)}else return u(r.key);return!1};return this.activeDisplayedItemsFlat.some(r=>s(r,!0))}hasGroups(){return this.groupsExist}refresh(){this.updateExpandAll(),this.flattenItems()}updateExpandAll(){let u=(r,d,g)=>{for(let m of r){if(!m.filterPasses||!m.available||!m.children)continue;if(d=d||!!m.expanded,g=g||!m.expanded,d&&g)return;let b=u(m.children,d,g);if(b===void 0)return;b?d=!0:g=!0}return d&&g?void 0:d},s=this.getSelectAllItem();s.expanded=u(s.children,!1,!1)}recursiveItemCheck(u,s,r,d){let g=!1;u.children&&u.children.forEach(b=>{let w=this.recursiveItemCheck(b,s||r(u),r,d);g=g||w});let m=s||g||r(u);return u[d]=m,m}updateAvailable(u){let s=r=>u.has(r.key);this.allDisplayedItemsTree.forEach(r=>this.recursiveItemCheck(r,!1,s,"available"))}}p.TreeSetDisplayValueModel=f},9172:function(x,p,M){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.AgHorizontalResize=void 0;let A=M(6624);class F extends A.Component{constructor(){super('<div class="ag-tool-panel-horizontal-resize"></div>'),this.minWidth=100,this.maxWidth=null}postConstruct(){let f=this.beans.horizontalResizeSvc.addResizeBar({eResizeBar:this.getGui(),dragStartPixels:1,onResizeStart:this.onResizeStart.bind(this),onResizing:this.onResizing.bind(this),onResizeEnd:this.onResizeEnd.bind(this)});this.addDestroyFunc(f),this.inverted=this.gos.get("enableRtl")}dispatchResizeEvent(f,v,u){this.eventSvc.dispatchEvent({type:"toolPanelSizeChanged",width:u,started:f,ended:v})}onResizeStart(){this.startingWidth=this.elementToResize.offsetWidth,this.dispatchResizeEvent(!0,!1,this.startingWidth)}onResizeEnd(f){return this.onResizing(f,!0)}onResizing(f,v=!1){let u=this.inverted?-1:1,s=Math.max(this.minWidth,Math.floor(this.startingWidth-f*u));this.maxWidth!=null&&(s=Math.min(this.maxWidth,s)),this.elementToResize.style.width=`${s}px`,this.dispatchResizeEvent(!1,v,s)}}p.AgHorizontalResize=F},911:function(x,p){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.agSideBarCSS=void 0,p.agSideBarCSS='.ag-tool-panel-wrapper{cursor:default;display:flex;overflow:hidden auto;-webkit-user-select:none;-moz-user-select:none;user-select:none;width:var(--ag-side-bar-panel-width)}.ag-select-agg-func-item{align-items:center;display:flex;flex:1 1 auto;flex-flow:row nowrap;height:100%;overflow:hidden;position:relative;text-overflow:ellipsis;white-space:nowrap;>*{flex:none}}.ag-tool-panel-horizontal-resize{cursor:ew-resize;height:100%;position:absolute;top:0;width:5px;z-index:1}.ag-side-bar{background-color:var(--ag-side-bar-background-color);display:flex;flex-direction:row-reverse;position:relative}:where(.ag-ltr) :where(.ag-side-bar-left) .ag-tool-panel-horizontal-resize{right:-3px}:where(.ag-rtl) :where(.ag-side-bar-left) .ag-tool-panel-horizontal-resize{left:-3px}:where(.ag-ltr) :where(.ag-side-bar-right) .ag-tool-panel-horizontal-resize{left:-3px}:where(.ag-rtl) :where(.ag-side-bar-right) .ag-tool-panel-horizontal-resize{right:-3px}.ag-side-bar-left{flex-direction:row;order:-1}.ag-side-buttons{background-color:var(--ag-side-button-bar-background-color);padding-top:var(--ag-side-button-bar-top-padding);position:relative}.ag-side-button{background-color:var(--ag-side-button-background-color);border-bottom:var(--ag-side-button-selected-border);border-bottom-color:transparent;border-top:var(--ag-side-button-selected-border);border-top-color:transparent;color:var(--ag-side-button-text-color);position:relative;&:before{background-color:transparent;bottom:0;content:"";display:block;position:absolute;top:0;transition:background-color var(--ag-side-button-selected-underline-transition-duration);width:var(--ag-side-button-selected-underline-width)}&:hover{background-color:var(--ag-side-button-hover-background-color);color:var(--ag-side-button-hover-text-color)}&.ag-selected{background-color:var(--ag-side-button-selected-background-color);border-bottom:var(--ag-side-button-selected-border);color:var(--ag-side-button-selected-text-color);&:where(:not(:first-of-type)){border-top:var(--ag-side-button-selected-border)}&:before{background-color:var(--ag-side-button-selected-underline-color)}}}:where(.ag-ltr) .ag-side-button{&:before{left:0}}:where(.ag-rtl) .ag-side-button{&:before{right:0}}.ag-side-button-button{align-items:center;cursor:pointer;display:flex;flex-direction:column;gap:var(--ag-spacing);position:relative;white-space:nowrap;width:100%;&:focus{box-shadow:none}}:where(.ag-ltr) .ag-side-button-button{padding:var(--ag-side-button-vertical-padding) var(--ag-side-button-right-padding) var(--ag-side-button-vertical-padding) var(--ag-side-button-left-padding)}:where(.ag-rtl) .ag-side-button-button{padding:var(--ag-side-button-vertical-padding) var(--ag-side-button-left-padding) var(--ag-side-button-vertical-padding) var(--ag-side-button-right-padding)}.ag-side-button-button:focus-visible{box-shadow:inset var(--ag-focus-shadow)}.ag-side-button-label{writing-mode:vertical-lr}@media (resolution <= 1.5x){.ag-side-button-label{font-family:"Segoe UI",var(--ag-font-family)}:where(.ag-ltr) .ag-side-button-label{transform:rotate(.05deg)}:where(.ag-rtl) .ag-side-button-label{transform:rotate(-.05deg)}}:where(.ag-ltr) .ag-side-bar-left,:where(.ag-rtl) .ag-side-bar-right{border-right:var(--ag-side-panel-border);:where(.ag-tool-panel-wrapper){border-left:var(--ag-side-panel-border)}}:where(.ag-ltr) .ag-side-bar-right,:where(.ag-rtl) .ag-side-bar-left{border-left:var(--ag-side-panel-border);:where(.ag-tool-panel-wrapper){border-right:var(--ag-side-panel-border)}}'},3814:function(x,p,M){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.AgSideBarSelector=p.AgSideBar=void 0;let A=M(6624),F=M(6242),D=M(911),f=M(7861),v=M(8124),u=M(6443);class s extends A.Component{constructor(){super(`<div class="ag-side-bar ag-unselectable">
                <ag-side-bar-buttons data-ref="sideBarButtons"></ag-side-bar-buttons>
            </div>`,[f.AgSideBarButtonsSelector]),this.sideBarButtons=A.RefPlaceholder,this.toolPanelWrappers=[],this.registerCSS(D.agSideBarCSS)}postConstruct(){var w;this.sideBarButtons.addEventListener("sideBarButtonClicked",this.onToolPanelButtonClicked.bind(this));let{beans:d,gos:g}=this,{sideBar:m}=(w=g.get("initialState"))!=null?w:{};this.setSideBarDef({sideBarDef:(0,v.parseSideBarDef)(g.get("sideBar")),sideBarState:m}),this.addManagedPropertyListener("sideBar",this.onSideBarUpdated.bind(this)),d.sideBar.comp=this;let b=this.getFocusableElement();this.createManagedBean(new A.ManagedFocusFeature(b,{onTabKeyDown:this.onTabKeyDown.bind(this),handleKeyDown:this.handleKeyDown.bind(this)})),(0,A._addFocusableContainerListener)(d,this,b)}onTabKeyDown(d){if(d.defaultPrevented)return;let{beans:g,sideBarButtons:m}=this,b=this.getGui(),w=m.getGui(),k=(0,A._getActiveDomElement)(g),R=b.querySelector(".ag-tool-panel-wrapper:not(.ag-hidden)"),T=d.target;if(!R)return(0,A._focusNextGridCoreContainer)(g,d.shiftKey,!0);if(w.contains(k)){(0,A._focusInto)(R,d.shiftKey)&&d.preventDefault();return}if(!d.shiftKey)return;let z=null;R.contains(k)?z=(0,A._findNextFocusableElement)(g,R,void 0,!0):(0,F.isTargetUnderManagedComponent)(R,T)&&d.shiftKey&&(z=(0,F.findFocusableElementBeforeTabGuard)(R,T)),z||(z=w.querySelector(".ag-selected button")),z&&z!==d.target&&(d.preventDefault(),z.focus())}handleKeyDown(d){let g=(0,A._getActiveDomElement)(this.beans),m=this.sideBarButtons;if(!m.getGui().contains(g))return;let b=m.getGui(),w=Array.prototype.slice.call(b.querySelectorAll(".ag-side-button")),k=w.findIndex(z=>z.contains(g)),R=null;switch(d.key){case A.KeyCode.LEFT:case A.KeyCode.UP:R=Math.max(0,k-1);break;case A.KeyCode.RIGHT:case A.KeyCode.DOWN:R=Math.min(k+1,w.length-1);break}if(R===null)return;let T=w[R].querySelector("button");T&&(T.focus(),d.preventDefault())}onToolPanelButtonClicked(d){let g=d.toolPanelId;this.openedItem()===g?this.openToolPanel(void 0,"sideBarButtonClicked"):this.openToolPanel(g,"sideBarButtonClicked")}clearDownUi(){this.sideBarButtons.clearButtons(),this.destroyToolPanelWrappers()}setSideBarDef({sideBarDef:d,sideBarState:g,existingToolPanelWrappers:m}){if(this.setDisplayed(!1),this.sideBar=d,d&&d.toolPanels){let b=d.toolPanels;if(this.createToolPanelsAndSideButtons(b,g,m),!this.toolPanelWrappers.length)return;let w=g?g.visible:!d.hiddenByDefault;if(this.setDisplayed(w),this.setSideBarPosition(g?g.position:d.position),w)if(g){let{openToolPanel:k}=g;k&&this.openToolPanel(k,"sideBarInitializing")}else this.openToolPanel(d.defaultToolPanel,"sideBarInitializing")}}getDef(){return this.sideBar}setSideBarPosition(d){d||(d="right"),this.position=d;let g=d==="left",m=g?"right":"left";return this.addOrRemoveCssClass("ag-side-bar-left",g),this.addOrRemoveCssClass("ag-side-bar-right",!g),this.toolPanelWrappers.forEach(b=>{b.setResizerSizerSide(m)}),this.dispatchSideBarUpdated(),this}setDisplayed(d,g){super.setDisplayed(d,g),this.dispatchSideBarUpdated()}getState(){let d={};return this.toolPanelWrappers.forEach(g=>{var m,b;d[g.getToolPanelId()]=(b=(m=g.getToolPanelInstance())==null?void 0:m.getState)==null?void 0:b.call(m)}),{visible:this.isDisplayed(),position:this.position,openToolPanel:this.openedItem(),toolPanels:d}}createToolPanelsAndSideButtons(d,g,m){var b;for(let w of d)this.createToolPanelAndSideButton(w,(b=g==null?void 0:g.toolPanels)==null?void 0:b[w.id],m==null?void 0:m[w.id])}validateDef(d){var g;return d.id==null?((0,A._warn)(212),!1):d.toolPanel==="agFiltersToolPanel"&&(g=this.beans.filterManager)!=null&&g.isAdvFilterEnabled()?((0,A._warn)(213),!1):!0}createToolPanelAndSideButton(d,g,m){if(!this.validateDef(d))return;let b;if(m)b=m;else if(b=this.createBean(new u.ToolPanelWrapper),!b.setToolPanelDef(d,{initialState:g,onStateUpdated:()=>this.dispatchSideBarUpdated()}))return;b.setDisplayed(!1);let w=b.getGui();this.appendChild(w),this.toolPanelWrappers.push(b);let k=this.sideBarButtons.addButtonComp(d);(0,A._setAriaControls)(k.eToggleButton,w)}refresh(){this.toolPanelWrappers.forEach(d=>d.refresh())}openToolPanel(d,g="api"){let m=this.openedItem();if(m===d)return;this.toolPanelWrappers.forEach(k=>{let R=d===k.getToolPanelId();k.setDisplayed(R)});let b=this.openedItem();m!==b&&(this.sideBarButtons.setActiveButton(d),this.raiseToolPanelVisibleEvent(d,m!=null?m:void 0,g))}getToolPanelInstance(d){let g=this.toolPanelWrappers.filter(m=>m.getToolPanelId()===d)[0];if(!g){(0,A._warn)(214,{key:d});return}return g.getToolPanelInstance()}raiseToolPanelVisibleEvent(d,g,m){let b=!!d&&!!g,w=this.eventSvc;g&&w.dispatchEvent({type:"toolPanelVisibleChanged",source:m,key:g,visible:!1,switchingToolPanel:b}),d&&w.dispatchEvent({type:"toolPanelVisibleChanged",source:m,key:d,visible:!0,switchingToolPanel:b})}close(d="api"){this.openToolPanel(void 0,d)}isToolPanelShowing(){return!!this.openedItem()}openedItem(){let d=null;return this.toolPanelWrappers.forEach(g=>{g.isDisplayed()&&(d=g.getToolPanelId())}),d}onSideBarUpdated(){var m;let d=(0,v.parseSideBarDef)(this.gos.get("sideBar")),g={};d&&this.sideBar&&((m=d.toolPanels)==null||m.forEach(b=>{var G,U,X;let{id:w}=b;if(!w)return;let k=(G=this.sideBar.toolPanels)==null?void 0:G.find(Q=>Q.id===w);if(!k||b.toolPanel!==k.toolPanel)return;let R=this.toolPanelWrappers.find(Q=>Q.getToolPanelId()===w);if(!R)return;let T=this.gos.addGridCommonParams(et(pe({},(U=b.toolPanelParams)!=null?U:{}),{onStateUpdated:()=>this.dispatchSideBarUpdated()}));((X=R.getToolPanelInstance())==null?void 0:X.refresh(T))===!0&&(this.toolPanelWrappers=this.toolPanelWrappers.filter(Q=>Q!==R),(0,A._removeFromParent)(R.getGui()),g[w]=R)})),this.clearDownUi(),this.setSideBarDef({sideBarDef:d,existingToolPanelWrappers:g})}dispatchSideBarUpdated(){this.eventSvc.dispatchEvent({type:"sideBarUpdated"})}destroyToolPanelWrappers(){this.toolPanelWrappers.forEach(d=>{(0,A._removeFromParent)(d.getGui()),this.destroyBean(d)}),this.toolPanelWrappers.length=0}destroy(){this.destroyToolPanelWrappers(),super.destroy()}}p.AgSideBar=s,p.AgSideBarSelector={selector:"AG-SIDE-BAR",component:s}},7861:function(x,p,M){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.AgSideBarButtonsSelector=p.AgSideBarButtons=void 0;let A=M(6624),F=M(3945);class D extends A.Component{constructor(){super('<div class="ag-side-buttons" role="tablist"></div>'),this.buttonComps=[]}postConstruct(){this.addManagedElementListeners(this.getFocusableElement(),{keydown:this.handleKeyDown.bind(this)})}handleKeyDown(v){if(!(v.key!==A.KeyCode.TAB||!v.shiftKey)){if((0,A._focusNextGridCoreContainer)(this.beans,!0)){v.preventDefault();return}(0,A._stopPropagationForAgGrid)(v)}}setActiveButton(v){this.buttonComps.forEach(u=>{u.setSelected(v===u.getToolPanelId())})}addButtonComp(v){let u=this.createBean(new F.SideBarButtonComp(v));return this.buttonComps.push(u),this.appendChild(u),u.addEventListener("toggleButtonClicked",()=>{this.dispatchLocalEvent({type:"sideBarButtonClicked",toolPanelId:v.id})}),u}clearButtons(){this.buttonComps=this.destroyBeans(this.buttonComps),(0,A._clearElement)(this.getGui()),super.destroy()}destroy(){this.clearButtons(),super.destroy()}}p.AgSideBarButtons=D,p.AgSideBarButtonsSelector={selector:"AG-SIDE-BAR-BUTTONS",component:D}},9705:function(x,p,M){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.mergeLeafPathTrees=p.isColGroupDef=void 0;let A=M(6624);function F(u){return!!u&&typeof u.children!="undefined"}p.isColGroupDef=F;function D(u){return F(u)?u.groupId:u.colId}function f(u,s,r){let d=(b,w)=>{let R=b.children.map(D).includes(D(w)),T=(0,A._last)(b.children),z=T&&D(T)!==D(w);return R&&z};if(!F(u))return!0;let g=u,m=r;if(d(g,m)||g.groupId===s&&!g.children.map(D).includes(D(m)))return g.children.push(m),!0;for(let b=g.children.length-1;b>=0&&!f(g.children[b],s,r);b--);return!1}function v(u){let s=(g,m)=>F(g)&&F(m)&&D(g)===D(m),r=(g,m)=>{if(!F(m))return g;let b=g,w=m;return w.children&&w.groupId&&f(b,w.groupId,w.children[0])||w.children.forEach(k=>r(b,k)),b},d=[];for(let g=1;g<=u.length;g++){let m=u[g-1],b=u[g];s(m,b)?u[g]=r(m,b):d.push(m)}return d}p.mergeLeafPathTrees=v},6092:function(x,p,M){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.syncLayoutWithGrid=p.toolPanelCreateColumnTree=void 0;let A=M(6624),F=M(9705);function D(u,s){let r=[],d=(m,b)=>{if((0,F.isColGroupDef)(m)){let w=m,k=typeof w.groupId!="undefined"?w.groupId:w.headerName,R=new A.AgProvidedColumnGroup(w,k,!1,b),T=[];return w.children.forEach(z=>{let G=d(z,b+1);G&&T.push(G)}),R.setChildren(T),R}else{let w=m,k=w.colId?w.colId:w.field,R=u.getColDefCol(k);return R||r.push(w),R}},g=[];return s.forEach(m=>{let b=d(m,0);b&&g.push(b)}),r.length>0&&(0,A._warn)(217,{invalidColIds:r}),g}p.toolPanelCreateColumnTree=D;function f(u,s){let r=v(u),d=(0,F.mergeLeafPathTrees)(r);s(d)}p.syncLayoutWithGrid=f;function v(u){let s=(g,m)=>{let b;if((0,A.isProvidedColumnGroup)(g))if(g.isPadding())b=m;else{let k=Object.assign({},g.getColGroupDef());k.groupId=g.getGroupId(),k.children=[m],b=k}else{let k=Object.assign({},g.getColDef());k.colId=g.getColId(),b=k}let w=g.getOriginalParent();return w?s(w,b):b};return u.getCols().filter(g=>{let m=g.getColDef();return g.isPrimary()&&!m.showRowGroup}).map(g=>s(g,g.getColDef()))}},2024:function(x,p,M){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.getSideBar=p.getToolPanelInstance=p.isToolPanelShowing=p.refreshToolPanel=p.getOpenedToolPanel=p.closeToolPanel=p.openToolPanel=p.setSideBarPosition=p.setSideBarVisible=p.isSideBarVisible=void 0;let A=M(6624);function F(b){var w,k;return(k=(w=b.sideBar)==null?void 0:w.comp.isDisplayed())!=null?k:!1}p.isSideBarVisible=F;function D(b,w){var k;(k=b.sideBar)==null||k.comp.setDisplayed(w)}p.setSideBarVisible=D;function f(b,w){var k;(k=b.sideBar)==null||k.comp.setSideBarPosition(w)}p.setSideBarPosition=f;function v(b,w){var k;(k=b.sideBar)==null||k.comp.openToolPanel(w,"api")}p.openToolPanel=v;function u(b){var w;(w=b.sideBar)==null||w.comp.close("api")}p.closeToolPanel=u;function s(b){var w,k;return(k=(w=b.sideBar)==null?void 0:w.comp.openedItem())!=null?k:null}p.getOpenedToolPanel=s;function r(b){var w;(w=b.sideBar)==null||w.comp.refresh()}p.refreshToolPanel=r;function d(b){var w,k;return(k=(w=b.sideBar)==null?void 0:w.comp.isToolPanelShowing())!=null?k:!1}p.isToolPanelShowing=d;function g(b,w){var R;let k=(R=b.sideBar)==null?void 0:R.comp.getToolPanelInstance(w);return(0,A._unwrapUserComp)(k)}p.getToolPanelInstance=g;function m(b){var w;return(w=b.sideBar)==null?void 0:w.comp.getDef()}p.getSideBar=m},3945:function(x,p,M){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.SideBarButtonComp=void 0;let A=M(6624);class F extends A.Component{constructor(f){super(),this.toolPanelDef=f,this.eToggleButton=A.RefPlaceholder,this.eIconWrapper=A.RefPlaceholder,this.eLabel=A.RefPlaceholder}getToolPanelId(){return this.toolPanelDef.id}postConstruct(){let f=this.createTemplate();this.setTemplate(f,[]),this.setLabel(),this.setIcon(),this.addManagedElementListeners(this.eToggleButton,{click:this.onButtonPressed.bind(this)}),this.eToggleButton.setAttribute("id",`ag-${this.getCompId()}-button`)}createTemplate(){return`<div class="ag-side-button" role="presentation">
                <button type="button" data-ref="eToggleButton" tabindex="-1" role="tab" aria-expanded="false" class="ag-button ag-side-button-button">
                    <div data-ref="eIconWrapper" class="ag-side-button-icon-wrapper" aria-hidden="true"></div>
                    <span data-ref="eLabel" class="ag-side-button-label"></span>
                </button>
            </div>`}setLabel(){let f=this.getLocaleTextFunc(),v=this.toolPanelDef,u=f(v.labelKey,v.labelDefault);this.eLabel.innerText=u}setIcon(){this.eIconWrapper.insertAdjacentElement("afterbegin",(0,A._createIconNoSpan)(this.toolPanelDef.iconKey,this.beans))}onButtonPressed(){this.dispatchLocalEvent({type:"toggleButtonClicked"})}setSelected(f){this.addOrRemoveCssClass("ag-selected",f),(0,A._setAriaExpanded)(this.eToggleButton,f)}}p.SideBarButtonComp=F},8124:function(x,p,M){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.parseSideBarDef=void 0;let A=M(6624),F={id:"columns",labelDefault:"Columns",labelKey:"columns",iconKey:"columnsToolPanel",toolPanel:"agColumnsToolPanel"},D={id:"filters",labelDefault:"Filters",labelKey:"filters",iconKey:"filtersToolPanel",toolPanel:"agFiltersToolPanel"},f={columns:F,filters:D};function v(s){if(!s)return;if(s===!0)return{toolPanels:[F,D],defaultToolPanel:"columns"};if(typeof s=="string")return v([s]);if(Array.isArray(s)){let d=[];return s.forEach(g=>{let m=f[g];if(!m){(0,A._warn)(215,{key:g,defaultByKey:f});return}d.push(m)}),d.length===0?void 0:{toolPanels:d,defaultToolPanel:d[0].id}}return{toolPanels:u(s.toolPanels),defaultToolPanel:s.defaultToolPanel,hiddenByDefault:s.hiddenByDefault,position:s.position}}p.parseSideBarDef=v;function u(s){let r=[];return s&&s.forEach(d=>{let g=null;if(typeof d=="string"){let m=f[d];if(!m){(0,A._warn)(215,{key:d,defaultByKey:f});return}g=m}else g=d;r.push(g)}),r}},6358:function(x,p,M){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.SideBarModule=void 0;let A=M(6624),F=M(9206),D=M(7205),f=M(2024),v=M(6191);p.SideBarModule={moduleName:"SideBar",version:D.VERSION,beans:[v.SideBarService],apiFunctions:{isSideBarVisible:f.isSideBarVisible,setSideBarVisible:f.setSideBarVisible,setSideBarPosition:f.setSideBarPosition,openToolPanel:f.openToolPanel,closeToolPanel:f.closeToolPanel,getOpenedToolPanel:f.getOpenedToolPanel,refreshToolPanel:f.refreshToolPanel,isToolPanelShowing:f.isToolPanelShowing,getToolPanelInstance:f.getToolPanelInstance,getSideBar:f.getSideBar},dependsOn:[F.EnterpriseCoreModule,A._HorizontalResizeModule]}},6191:function(x,p,M){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.SideBarService=void 0;let A=M(6624),F=M(3814);class D extends A.BeanStub{constructor(){super(...arguments),this.beanName="sideBar"}getSelector(){return F.AgSideBarSelector}}p.SideBarService=D},6443:function(x,p,M){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.ToolPanelWrapper=void 0;let A=M(6624),F=M(9172);function D(u,s,r){return u.getCompDetails(s,f,void 0,r,!0)}let f={name:"toolPanel",optionalMethods:["refresh","getState"]};class v extends A.Component{constructor(){super('<div class="ag-tool-panel-wrapper" role="tabpanel"/>')}postConstruct(){let s=this.getGui(),r=this.resizeBar=this.createManagedBean(new F.AgHorizontalResize);s.setAttribute("id",`ag-${this.getCompId()}`),r.elementToResize=s,this.appendChild(r)}getToolPanelId(){return this.toolPanelId}setToolPanelDef(s,r){let{id:d,minWidth:g,maxWidth:m,width:b}=s;this.toolPanelId=d,this.width=b;let w=D(this.beans.userCompFactory,s,r);if(w==null)return!1;let k=w.newAgStackInstance();this.params=w.params,k.then(this.setToolPanelComponent.bind(this));let R=this.resizeBar;return g!=null&&(R.minWidth=g),m!=null&&(R.maxWidth=m),!0}setToolPanelComponent(s){this.toolPanelCompInstance=s,this.appendChild(s.getGui()),this.addDestroyFunc(()=>{this.destroyBean(s)});let r=this.width;r&&(this.getGui().style.width=`${r}px`)}getToolPanelInstance(){return this.toolPanelCompInstance}setResizerSizerSide(s){let r=this.gos.get("enableRtl"),d=s==="left",g=r?d:!d;this.resizeBar.inverted=g}refresh(){var s;(s=this.toolPanelCompInstance)==null||s.refresh(this.params)}}p.ToolPanelWrapper=v},4087:function(x,p){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.sparklineCSS=void 0,p.sparklineCSS=".ag-sparkline-wrapper{height:100%;left:0;position:absolute;top:0;width:100%}.ag-sparkline-wrapper :where(canvas){position:absolute}"},2437:function(x,p,M){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.SparklineCellRenderer=p.DEFAULT_THEMES=void 0;let A=M(6624),F=M(6464);p.DEFAULT_THEMES=["ag-default","ag-material","ag-sheets","ag-polychroma","ag-vivid"];class D extends A.Component{constructor(){super(`<div class="ag-sparkline-wrapper">
            <span data-ref="eSparkline"></span>
        </div>`),this.eSparkline=A.RefPlaceholder}postConstruct(){this.addManagedPropertyListeners(["chartThemeOverrides","chartThemes"],v=>this.refresh(this.params))}init(v){this.refresh(v);let u=(0,A._observeResize)(this.beans,this.getGui(),()=>this.refresh(v));this.addDestroyFunc(()=>u())}getThemeName(){return(this.gos.get("chartThemes")||p.DEFAULT_THEMES)[0]}refresh(v){var r,d,g,m,b;this.params=v;let{clientWidth:u,clientHeight:s}=this.getGui();if(!this.sparklineInstance&&v&&u>0&&s){this.sparklineOptions=et(pe({container:this.eSparkline,width:u,height:s},v.sparklineOptions),{data:this.processData(v.value)}),(r=this.sparklineOptions.tooltip)!=null&&r.renderer?this.wrapTooltipRenderer():this.sparklineOptions.tooltip=et(pe({},this.sparklineOptions.tooltip),{renderer:k=>({content:this.createDefaultContent(k)})});let w=(d=this.sparklineOptions)==null?void 0:d.theme;return this.sparklineOptions.type==="bar"&&this.sparklineOptions.itemStyler?this.wrapItemStyler(this.sparklineOptions):(b=(m=(g=w==null?void 0:w.overrides)==null?void 0:g.bar)==null?void 0:m.series)!=null&&b.itemStyler&&this.wrapItemStyler(w.overrides.bar.series),this.updateTheme(this.sparklineOptions),this.sparklineInstance=v.createSparkline(this.sparklineOptions),!0}else if(this.sparklineInstance){let w=v==null?void 0:v.value;return this.sparklineOptions.width=u,this.sparklineOptions.height=s,this.sparklineOptions.data=this.processData(w),this.updateTheme(this.sparklineOptions),this.sparklineInstance.updateDelta(this.sparklineOptions),!0}return!1}updateTheme(v){let u=this.getThemeName();typeof v.theme=="string"||!v.theme?v.theme=u:v.theme&&(v.theme.baseTheme=u)}processData(v=[]){return v.length===0?v:v.filter(u=>u!=null)}createContext(){var v,u;return{data:(v=this.params)==null?void 0:v.data,cellData:(u=this.params)==null?void 0:u.value}}createDefaultContent(v,u){var m;let s=u==null?void 0:u.title,r=this.sparklineOptions.xKey,d=Array.isArray((m=this.sparklineOptions.data)==null?void 0:m[0]);return`${!s&&(r||d)?`${v.xValue} `:""}${v.yValue}`}wrapItemStyler(v){v.itemStyler=(0,F.wrapFn)(v.itemStyler,(u,s)=>u(et(pe({},s),{context:this.createContext()})))}wrapTooltipRenderer(){this.sparklineOptions.tooltip=et(pe({},this.sparklineOptions.tooltip),{renderer:(0,F.wrapFn)(this.sparklineOptions.tooltip.renderer,(v,u)=>{let s=v(et(pe({},u),{context:this.createContext()}));return typeof s=="string"?s:pe({content:this.createDefaultContent(u,s)},s)})})}destroy(){var v;super.destroy(),(v=this.sparklineInstance)==null||v.destroy()}}p.SparklineCellRenderer=D},2949:function(x,p,M){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.SparklinesModule=void 0;let A=M(6624),F=M(9206),D=M(7205),f=M(4087),v=M(2437),u="Sparklines";p.SparklinesModule={moduleName:u,version:D.VERSION,dependsOn:[F.EnterpriseCoreModule],validate:()=>({isValid:!1,message:(0,A._preInitErrMsg)(258)}),with:s=>(s.setup(),{moduleName:u,version:D.VERSION,dependsOn:[F.EnterpriseCoreModule],css:[f.sparklineCSS],userComponents:{agSparklineCellRenderer:{classImp:v.SparklineCellRenderer,params:{createSparkline:s.createSparkline}}},validate:()=>({isValid:!0})})}},6464:function(x,p){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.wrapFn=void 0;let M=Symbol("WrappedFunctionMarker"),A=(F,D)=>{if(F[M])return F;let f=(...v)=>D(F,...v);return f[M]=M,f};p.wrapFn=A},2875:function(x,p){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.agStatusBarCSS=void 0,p.agStatusBarCSS=".ag-status-bar{border-top:var(--ag-footer-row-border);display:flex;justify-content:space-between;line-height:1.5;overflow:hidden;padding-left:calc(var(--ag-spacing)*4);padding-right:calc(var(--ag-spacing)*4)}.ag-status-panel{display:inline-flex}.ag-status-name-value{font-weight:500;margin-left:var(--ag-spacing);margin-right:var(--ag-spacing);padding-bottom:var(--ag-widget-container-vertical-padding);padding-top:var(--ag-widget-container-vertical-padding);white-space:nowrap}.ag-status-bar-left{display:inline-flex}.ag-status-bar-center{display:inline-flex;text-align:center}.ag-status-bar-right{display:inline-flex}"},1866:function(x,p,M){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.AgStatusBarSelector=p.AgStatusBar=void 0;let A=M(6624),F=M(2875);function D(u,s,r){return u.getCompDetails(s,f,void 0,r,!0)}let f={name:"statusPanel",optionalMethods:["refresh"]};class v extends A.Component{wireBeans(s){this.userCompFactory=s.userCompFactory,this.statusBarSvc=s.statusBarSvc}constructor(){super(`<div class="ag-status-bar">
            <div data-ref="eStatusBarLeft" class="ag-status-bar-left" role="status"></div>
            <div data-ref="eStatusBarCenter" class="ag-status-bar-center" role="status"></div>
            <div data-ref="eStatusBarRight" class="ag-status-bar-right" role="status"></div>
        </div>`),this.updateQueued=!1,this.panelsPromise=A.AgPromise.resolve(),this.eStatusBarLeft=A.RefPlaceholder,this.eStatusBarCenter=A.RefPlaceholder,this.eStatusBarRight=A.RefPlaceholder,this.compDestroyFunctions={},this.registerCSS(F.agStatusBarCSS)}postConstruct(){this.processStatusPanels(new Map),this.addManagedPropertyListeners(["statusBar"],this.handleStatusBarChanged.bind(this))}processStatusPanels(s){var d;let r=(d=this.gos.get("statusBar"))==null?void 0:d.statusPanels;if(r){let g=r.filter(w=>w.align==="left"),m=r.filter(w=>w.align==="center"),b=r.filter(w=>!w.align||w.align==="right");this.panelsPromise=A.AgPromise.all([this.createAndRenderComponents(g,this.eStatusBarLeft,s),this.createAndRenderComponents(m,this.eStatusBarCenter,s),this.createAndRenderComponents(b,this.eStatusBarRight,s)])}else this.setDisplayed(!1)}handleStatusBarChanged(){this.updateQueued||(this.updateQueued=!0,this.panelsPromise.then(()=>{this.updateStatusBar(),this.updateQueued=!1}))}updateStatusBar(){var g;let s=(g=this.gos.get("statusBar"))==null?void 0:g.statusPanels,r=Array.isArray(s)&&s.length>0;this.setDisplayed(r);let d=new Map;r&&s.forEach(m=>{var k,R;let b=(k=m.key)!=null?k:m.statusPanel,w=this.statusBarSvc.getStatusPanel(b);if(w!=null&&w.refresh){let T=this.gos.addGridCommonParams((R=m.statusPanelParams)!=null?R:{});w.refresh(T)&&(d.set(b,w),delete this.compDestroyFunctions[b],(0,A._removeFromParent)(w.getGui()))}}),this.resetStatusBar(),r&&this.processStatusPanels(d)}resetStatusBar(){this.eStatusBarLeft.innerHTML="",this.eStatusBarCenter.innerHTML="",this.eStatusBarRight.innerHTML="",this.destroyComponents(),this.statusBarSvc.unregisterAllComponents()}destroy(){this.destroyComponents(),super.destroy()}destroyComponents(){Object.values(this.compDestroyFunctions).forEach(s=>s()),this.compDestroyFunctions={}}createAndRenderComponents(s,r,d){let g=[];return s.forEach(m=>{let b=m.key||m.statusPanel,w=d.get(b),k;if(w)k=A.AgPromise.resolve(w);else{let R={},T=D(this.userCompFactory,m,R);if(T==null)return;k=T.newAgStackInstance()}g.push({key:b,promise:k})}),A.AgPromise.all(g.map(m=>m.promise)).then(()=>{g.forEach(m=>{m.promise.then(b=>{let w=()=>{this.destroyBean(b)};this.isAlive()?(this.statusBarSvc.registerStatusPanel(m.key,b),r.appendChild(b.getGui()),this.compDestroyFunctions[m.key]=w):w()})})})}}p.AgStatusBar=v,p.AgStatusBarSelector={selector:"AG-STATUS-BAR",component:v}},3910:function(x,p,M){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.AgNameValueSelector=p.AgNameValue=void 0;let A=M(6624);class F extends A.Component{constructor(){super(`<div class="ag-status-name-value">
            <span data-ref="eLabel"></span>:&nbsp;
            <span data-ref="eValue" class="ag-status-name-value-value"></span>
        </div>`),this.eLabel=A.RefPlaceholder,this.eValue=A.RefPlaceholder}setLabel(f,v){this.setDisplayed(!1);let u=this.getLocaleTextFunc();this.eLabel.innerHTML=u(f,v)}setValue(f){this.eValue.innerHTML=f}}p.AgNameValue=F,p.AgNameValueSelector={selector:"AG-NAME-VALUE",component:F}},8999:function(x,p,M){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.AggregationComp=void 0;let A=M(6624),F=M(3910);function D(v,u){return typeof v!="number"?"":(0,A._formatNumberCommas)(Math.round(v*100)/100,u)}class f extends A.Component{constructor(){super(`<div class="ag-status-panel ag-status-panel-aggregations">
            <ag-name-value data-ref="avgAggregationComp"></ag-name-value>
            <ag-name-value data-ref="countAggregationComp"></ag-name-value>
            <ag-name-value data-ref="minAggregationComp"></ag-name-value>
            <ag-name-value data-ref="maxAggregationComp"></ag-name-value>
            <ag-name-value data-ref="sumAggregationComp"></ag-name-value>
        </div>`,[F.AgNameValueSelector]),this.sumAggregationComp=A.RefPlaceholder,this.countAggregationComp=A.RefPlaceholder,this.minAggregationComp=A.RefPlaceholder,this.maxAggregationComp=A.RefPlaceholder,this.avgAggregationComp=A.RefPlaceholder}postConstruct(){if(!(0,A._isClientSideRowModel)(this.gos)&&!(0,A._isServerSideRowModel)(this.gos)){(0,A._warn)(221);return}this.avgAggregationComp.setLabel("avg","Average"),this.countAggregationComp.setLabel("count","Count"),this.minAggregationComp.setLabel("min","Min"),this.maxAggregationComp.setLabel("max","Max"),this.sumAggregationComp.setLabel("sum","Sum"),this.addManagedEventListeners({cellSelectionChanged:this.onCellSelectionChanged.bind(this),modelUpdated:this.onCellSelectionChanged.bind(this)})}init(u){this.refresh(u)}refresh(u){return this.params=u,this.onCellSelectionChanged(),!0}setAggregationComponentValue(u,s,r){var g;let d=this.getAllowedAggregationValueComponent(u);(0,A._exists)(d)&&d?(d.setValue(D(s,this.getLocaleTextFunc.bind(this))),d.setDisplayed(r)):(g=this.getAggregationValueComponent(u))==null||g.setDisplayed(!1)}getAllowedAggregationValueComponent(u){let{aggFuncs:s}=this.params;return!s||s.includes(u)?this.getAggregationValueComponent(u):null}getAggregationValueComponent(u){let s=`${u}AggregationComp`;return this[s]}onCellSelectionChanged(){let u=this.beans,{rangeSvc:s,valueSvc:r,cellNavigation:d}=u,g=s==null?void 0:s.getCellRanges(),m=0,b=0,w=0,k=null,R=null,T={};if(g!=null&&g.length&&s)for(let U=0;U<g.length;U++){let X=g[U],Q=s.getRangeStartRow(X),oe=s.getRangeEndRow(X);for(;!((0,A._missing)(Q)||!Q||(0,A._isRowBefore)(oe,Q)||!Q||!X.columns);)X.columns.forEach(fe=>{if(Q===null)return;let ye=(0,A._createCellId)({rowPinned:Q.rowPinned,column:fe,rowIndex:Q.rowIndex});if(T[ye])return;T[ye]=!0;let ke=(0,A._getRowNode)(u,Q);if((0,A._missing)(ke))return;let Ie=r.getValue(fe,ke);(0,A._missing)(Ie)||Ie===""||(b++,!(typeof Ie=="object"&&"value"in Ie&&(Ie=Ie.value,Ie===""))&&(typeof Ie=="string"&&(Ie=Number(Ie)),typeof Ie=="number"&&!isNaN(Ie)&&(m+=Ie,(R===null||Ie>R)&&(R=Ie),(k===null||Ie<k)&&(k=Ie),w++)))}),Q=d.getRowBelow(Q)}let z=b>1,G=w>1;this.setAggregationComponentValue("count",b,z),this.setAggregationComponentValue("sum",m,G),this.setAggregationComponentValue("min",k,G),this.setAggregationComponentValue("max",R,G),this.setAggregationComponentValue("avg",m/w,G)}}p.AggregationComp=f},1741:function(x,p,M){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.FilteredRowsComp=void 0;let A=M(6624),F=M(3910);class D extends F.AgNameValue{postConstruct(){if(this.setLabel("filteredRows","Filtered"),!(0,A._isClientSideRowModel)(this.gos)){(0,A._warn)(222);return}this.addCssClass("ag-status-panel"),this.addCssClass("ag-status-panel-filtered-row-count"),this.setDisplayed(!0);let v=this.onDataChanged.bind(this);this.addManagedEventListeners({modelUpdated:v}),v()}onDataChanged(){let v=this.getTotalRowCountValue(),u=this.getFilteredRowCountValue();this.setValue((0,A._formatNumberCommas)(u,this.getLocaleTextFunc.bind(this))),this.setDisplayed(v!==u)}getTotalRowCountValue(){let v=0;return this.beans.rowModel.forEachNode(()=>v+=1),v}getFilteredRowCountValue(){let v=0;return this.beans.rowModel.forEachNodeAfterFilter(u=>{u.group||(v+=1)}),v}init(){}refresh(){return!0}}p.FilteredRowsComp=D},8123:function(x,p,M){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.SelectedRowsComp=void 0;let A=M(6624),F=M(3910);class D extends F.AgNameValue{postConstruct(){let v=this.gos;if(!(0,A._isClientSideRowModel)(v)&&!(0,A._isServerSideRowModel)(v)){(0,A._warn)(223);return}this.setLabel("selectedRows","Selected"),this.addCssClass("ag-status-panel"),this.addCssClass("ag-status-panel-selected-row-count"),this.onRowSelectionChanged();let u=this.onRowSelectionChanged.bind(this);this.addManagedEventListeners({modelUpdated:u,selectionChanged:u})}onRowSelectionChanged(){var u,s;let v=(s=(u=this.beans.selectionSvc)==null?void 0:u.getSelectionCount())!=null?s:0;if(v<0){this.setValue("?"),this.setDisplayed(!0);return}this.setValue((0,A._formatNumberCommas)(v,this.getLocaleTextFunc.bind(this))),this.setDisplayed(v>0)}init(){}refresh(){return!0}}p.SelectedRowsComp=D},1646:function(x,p,M){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.TotalAndFilteredRowsComp=void 0;let A=M(6624),F=M(3910);class D extends F.AgNameValue{postConstruct(){if(!(0,A._isClientSideRowModel)(this.gos)){(0,A._warn)(224);return}this.setLabel("totalAndFilteredRows","Rows"),this.addCssClass("ag-status-panel"),this.addCssClass("ag-status-panel-total-and-filtered-row-count"),this.setDisplayed(!0),this.addManagedEventListeners({modelUpdated:this.onDataChanged.bind(this)}),this.onDataChanged()}onDataChanged(){let v=this.getLocaleTextFunc.bind(this),u=(0,A._formatNumberCommas)(this.getFilteredRowCountValue(),v),s=(0,A._formatNumberCommas)(this.getTotalRowCount(),v);if(u===s)this.setValue(u);else{let r=this.getLocaleTextFunc();this.setValue(`${u} ${r("of","of")} ${s}`)}}getFilteredRowCountValue(){let v=0;return this.beans.rowModel.forEachNodeAfterFilter(u=>{u.group||v++}),v}getTotalRowCount(){let v=0;return this.beans.rowModel.forEachNode(u=>{u.group||v++}),v}init(){}refresh(){return!0}}p.TotalAndFilteredRowsComp=D},2042:function(x,p,M){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.TotalRowsComp=void 0;let A=M(6624),F=M(3910);class D extends F.AgNameValue{postConstruct(){if(this.setLabel("totalRows","Total Rows"),!(0,A._isClientSideRowModel)(this.gos)){(0,A._warn)(225);return}this.addCssClass("ag-status-panel"),this.addCssClass("ag-status-panel-total-row-count"),this.setDisplayed(!0),this.addManagedEventListeners({modelUpdated:this.onDataChanged.bind(this)}),this.onDataChanged()}onDataChanged(){this.setValue((0,A._formatNumberCommas)(this.getRowCountValue(),this.getLocaleTextFunc.bind(this)))}getRowCountValue(){let v=0;return this.beans.rowModel.forEachLeafNode(()=>v+=1),v}init(){}refresh(){return!0}}p.TotalRowsComp=D},9516:function(x,p,M){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.getStatusPanel=void 0;let A=M(6624);function F(D,f){var u;let v=(u=D.statusBarSvc)==null?void 0:u.getStatusPanel(f);return(0,A._unwrapUserComp)(v)}p.getStatusPanel=F},8450:function(x,p,M){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.StatusBarModule=void 0;let A=M(6624),F=M(9206),D=M(7205),f=M(1866),v=M(8999),u=M(1741),s=M(8123),r=M(1646),d=M(2042),g=M(9516),m=M(7947);p.StatusBarModule={moduleName:"StatusBar",version:D.VERSION,beans:[m.StatusBarService],userComponents:{agAggregationComponent:v.AggregationComp,agTotalRowCountComponent:d.TotalRowsComp,agFilteredRowCountComponent:u.FilteredRowsComp,agTotalAndFilteredRowCountComponent:r.TotalAndFilteredRowsComp,agSelectedRowCountComponent:s.SelectedRowsComp},selectors:[f.AgStatusBarSelector],apiFunctions:{getStatusPanel:g.getStatusPanel},dependsOn:[F.EnterpriseCoreModule,A._KeyboardNavigationModule]}},7947:function(x,p,M){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.StatusBarService=void 0;let A=M(6624);class F extends A.BeanStub{constructor(){super(),this.beanName="statusBarSvc",this.comps=new Map}registerStatusPanel(f,v){this.comps.set(f,v)}unregisterStatusPanel(f){this.comps.delete(f)}unregisterAllComponents(){this.comps.clear()}getStatusPanel(f){return this.comps.get(f)}destroy(){this.unregisterAllComponents(),super.destroy()}}p.StatusBarService=F},987:function(x,p,M){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.AbstractClientSideTreeNodeManager=void 0;let A=M(6624),F=M(8105),D=M(5012),f=M(2546),v=(s,r,d)=>{if(r!==d&&r!==null&&r.group&&(0,f.isTreeRowExpandedInitialized)(r)&&!s.isGroupOpenByDefault)return r.expanded;let g=s.isGroupOpenByDefault;return g?g({rowNode:d,field:d.field,key:d.key,level:d.level,rowGroupColumn:d.rowGroupColumn})==!0:s.expandByDefault===-1||d.level<s.expandByDefault};class u extends A.AbstractClientSideNodeManager{constructor(){super(...arguments),this.oldGroupDisplayColIds="",this.rowsPendingDestruction=null,this.treeRoot=null}activate(r){var d;super.activate(r),((d=this.treeRoot)!=null?d:this.treeRoot=new D.TreeNode(null,"",-1)).setRow(r)}destroy(){super.destroy(),this.treeRoot=null,this.rowsPendingDestruction=null,this.oldGroupDisplayColIds=""}deactivate(){let r=this.treeRoot;if(r){let d=r.row;d!==null&&(r.removeRow(d),(0,f.clearTreeRowFlags)(d)),this.treeDestroy(r)}this.commitDestroyedRows(),super.deactivate(),this.treeRoot=null,this.oldGroupDisplayColIds=""}treeSetRow(r,d,g){var k;let{level:m,row:b}=r;if(m<0)return!1;let w=!1;if(b!==d){let R=d.treeNode;R!==null&&R!==r&&(R.removeRow(d),R.invalidate()),b===null?(r.setRow(d),w=!0):b.data?r.addDuplicateRow(d)&&(w=!0):(r.setRow(d),this.destroyRow(b,!0),w=!0)}return!g&&!(0,f.isTreeRowUpdated)(d)&&((0,f.setTreeRowUpdated)(d),w=!0),w&&r.invalidate(),(k=this.rowsPendingDestruction)==null||k.delete(d),w}treeRemove(r,d){let{parent:g,level:m}=r;if(m<0)return;let b=!1;r.removeRow(d)&&(b=!0,g&&(g.childrenChanged=!0),this.destroyRow(d,!d.data)),b&&r.invalidate()}treeCommit(r){var k,R;let{treeRoot:d,rootNode:g}=this;if(!d||!g)return;let m=this.treeData,b={rootNode:g,changedPath:r,treeData:m,expandByDefault:this.gos.get("groupDefaultExpanded"),isGroupOpenByDefault:this.gos.getCallback("isGroupOpenByDefault")};this.treeCommitChildren(b,d,!1);let w=d.row;w&&(m&&(w.leafGroup=!1),d.childrenChanged&&d.updateChildrenAfterGroup(m)&&(0,f.markTreeRowPathChanged)(w),(0,f.isTreeRowPathChanged)(w)&&(k=b.changedPath)!=null&&k.active&&b.changedPath.addParentNode(w),(0,f.markTreeRowCommitted)(w),w.updateHasChildren()),this.commitDestroyedRows(),(R=this.beans.selectionSvc)==null||R.updateSelectableAfterGrouping(r)}treeCommitChildren(r,d,g){var m,b,w;for(;;){let k=d.dequeueInvalidated();if(k===null)break;k.parent===d&&this.treeCommitChild(r,k,g||!((b=(m=d.row)==null?void 0:m.expanded)==null||b))}d.childrenChanged||(d.childrenChanged=(r.treeData?d.size:0)!==((w=d.row.childrenAfterGroup)==null?void 0:w.length))}treeCommitChild(r,d,g){if(d.isEmptyFillerNode()){this.treeClear(d);return}if(this.treeCommitPreOrder(r,d),this.treeCommitChildren(r,d,g),d.isEmptyFillerNode()){this.treeClear(d);return}this.treeCommitPostOrder(r,d,g)}treeCommitPreOrder(r,d){let g=d.row;if(g===null?(g=this.createFillerRow(d),d.setRow(g)):(g=d.sortFirstDuplicateRow(),g.allChildrenCount===void 0&&(g.allChildrenCount=null)),r.treeData){if(g.parent=d.parent.row,d.oldRow!==g)for(let b of d.enumChildren()){let w=b.row;w!==null&&(w.parent=g)}let m=d.key;g.key!==m?(g.key=m,(0,f.setTreeRowKeyChanged)(g),this.setGroupData(g,m)):g.groupData||this.setGroupData(g,m)}else g.key=d.key,g.parent=r.rootNode}treeCommitPostOrder(r,d,g){var X,Q,oe;let m=d.parent,b=d.row,w=d.oldRow,k=r.treeData;d.childrenChanged&&d.updateChildrenAfterGroup(k)&&(0,f.markTreeRowPathChanged)(b),d.leafChildrenChanged&&d.updateAllLeafChildren();let R=!!((X=b.childrenAfterGroup)!=null&&X.length),T=R||!b.data,z=b.group;z!==T?((0,f.markTreeRowPathChanged)(b),(0,F.setRowNodeGroup)(b,this.beans,T),!T&&!b.expanded&&(0,f.setTreeRowExpandedInitialized)(b,!1)):b.hasChildren()!==R&&((0,f.markTreeRowPathChanged)(b),b.updateHasChildren()),T&&!(0,f.isTreeRowExpandedInitialized)(b)&&(b.expanded=v(r,w,b),(0,f.setTreeRowExpandedInitialized)(b,!0)),(0,f.isTreeRowUpdated)(b)&&((0,f.markTreeRowPathChanged)(m.row),(0,f.isTreeRowKeyChanged)(b)&&b.setData(b.data)),w!==b&&(d.oldRow=b,w!==null&&(z||d.size!==0)&&(0,f.markTreeRowPathChanged)(b),m.childrenChanged=!0,(0,f.markTreeRowPathChanged)(m.row)),(0,f.isTreeRowPathChanged)(b)&&(k&&((Q=r.changedPath)!=null&&Q.active)?r.changedPath.addParentNode(b):(0,f.markTreeRowPathChanged)(r.rootNode)),(0,f.markTreeRowCommitted)(b),(oe=d.duplicateRows)!=null&&oe.size&&!d.duplicateRowsWarned&&(d.duplicateRowsWarned=!0,(0,A._warn)(186,{rowId:b.id,rowData:b.data,duplicateRowsData:Array.from(d.duplicateRows).map(le=>le.data)})),g&&b.rowIndex!==null&&b.clearRowTopAndRowIndex();let G=d.getNewSourceIdx(),U=d.sourceIdx;U!==G&&(d.sourceIdx=G,U!==-1&&(m.childrenChanged=!0))}createFillerRow(r){let d=new A.RowNode(this.beans);d.key=r.key,d.group=!0,d.field=null,d.leafGroup=!1,d.rowGroupIndex=null,d.allChildrenCount=null;let g=r.level+"-"+r.key,m=r.parent;for(;m!==null;){let b=m.parent;if(b===null)break;g=`${m.level}-${m.key}-${g}`,m=b}return d.id=A._ROW_ID_PREFIX_ROW_GROUP+g,d}setGroupData(r,d){var b;let g={};r.groupData=g;let m=(b=this.beans.showRowGroupCols)==null?void 0:b.getShowRowGroupCols();if(m)for(let w of m)g[w.getColId()]=d}treeClear(r){let{parent:d,oldRow:g,row:m,level:b}=r;if(d!==null&&g!==null&&(d.childrenChanged=!0,d.row!==null&&(0,f.markTreeRowPathChanged)(d.row)),m!==null&&b>=0){let w=r.row;for(;w!==null&&r.removeRow(w);)this.destroyRow(w,!w.data),w=r.row}for(let w of r.enumChildren())this.treeClear(w);r.destroy()}treeDestroy(r){let{row:d,level:g,duplicateRows:m}=r;if(d&&(g>=0&&!d.data?this.destroyRow(d,!0):(0,f.clearTreeRowFlags)(d)),m)for(let b of m)g>=0&&!b.data?this.destroyRow(b,!0):(0,f.clearTreeRowFlags)(b);for(let b of r.enumChildren())this.treeDestroy(b);r.destroy()}destroyRow(r,d){var g;if(r.isSelected())d=!1;else if(!(0,f.isTreeRowCommitted)(r)){(0,f.clearTreeRowFlags)(r);return}if(!d){((g=this.rowsPendingDestruction)!=null?g:this.rowsPendingDestruction=new Set).add(r);return}(0,f.clearTreeRowFlags)(r),r.clearRowTopAndRowIndex(),r.groupData=null}commitDestroyedRows(){let{rowsPendingDestruction:r}=this,d=null;if(r!==null){for(let g of r)this.destroyRow(g,!0),g.isSelected()&&(d!=null?d:d=[]).push(g);this.rowsPendingDestruction=null}d&&this.deselectNodes(d)}refreshModel(r){var d,g,m,b,w;if(r.afterColumnsChanged)if(this.treeData){let k=(m=(g=(d=this.beans.showRowGroupCols)==null?void 0:d.getShowRowGroupCols())==null?void 0:g.map(R=>R.getId()).join("-"))!=null?m:"";if(this.oldGroupDisplayColIds!==k){this.oldGroupDisplayColIds=k;let R=(b=this.rootNode)==null?void 0:b.childrenAfterGroup;if(R)for(let T=0,z=(w=R.length)!=null?w:0;T<z;++T){let G=R[T],U=G.treeNode;U&&this.setGroupData(G,U.key)}}}else this.oldGroupDisplayColIds=""}}p.AbstractClientSideTreeNodeManager=u},4352:function(x,p,M){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.ClientSideChildrenTreeNodeManager=void 0;let A=M(6624),F=M(987),D=M(7084);class f extends F.AbstractClientSideTreeNodeManager{constructor(){super(...arguments),this.beanName="csrmChildrenTreeNodeSvc",this.childrenGetter=null}get treeData(){return this.gos.get("treeData")}extractRowData(){let u=this.treeRoot;return u&&Array.from(u.enumChildren(),s=>s.row.data)}destroy(){super.destroy(),this.childrenGetter=null}activate(u){let s=this.childrenGetter,r=this.gos.get("treeDataChildrenField");(!s||s.path!==r)&&(this.childrenGetter=(0,D.makeFieldPathGetter)(r)),super.activate(u)}loadNewRowData(u){let s=this.treeRoot,r=this.rootNode,d=this.childrenGetter,g=new Map,m=[];r.allLeafChildren=m,this.treeClear(s),s.setRow(r);let b=(w,k)=>{let R=g.get(k);if(R!==void 0){(0,A._error)(2,{nodeId:R.id});return}R=this.createRowNode(k,m.length),g.set(k,R),m.push(R),w=w.upsertKey(R.id),this.treeSetRow(w,R,!0);let T=d==null?void 0:d(k);if(T)for(let z=0,G=T.length;z<G;++z)b(w,T[z])};for(let w=0,k=u.length;w<k;++w)b(s,u[w]);this.treeCommit()}setImmutableRowData(u,s){let r=this.gos,d=this.treeRoot,g=this.rootNode,m=this.childrenGetter,b=(0,A._getRowIdCallback)(r),w=!r.get("suppressMaintainUnsortedOrder"),k=new Map,R=new A.ChangedPath(!1,g);u.changedPath=R;let T=u.changedRowNodes,z=g.allLeafChildren,G=[],U=[],X=!1,Q=!1,fe=w?(Ie,ze)=>{let Ye=ze==null?void 0:ze.length,xe=!0,Te=-1;for(let Ae=0;Ae<Ye;++Ae){let Ne=ye(Ie,ze[Ae]);Ne>=0&&(Ne<Te&&(xe=!1),Te=Ne)}xe||(X=!0,Ie.childrenChanged||(Ie.childrenChanged=!0,Ie.invalidate()))}:(Ie,ze)=>{for(let Ye=0,xe=ze.length;Ye<xe;++Ye)ye(Ie,ze[Ye])},ye=(Ie,ze)=>{let Ye=k.get(ze);if(Ye!==void 0)return(0,A._warn)(2,{nodeId:Ye.id}),-1;let xe=b({data:ze,level:Ie.level+1}),Te=!1;Ye=this.getRowNode(xe),Ye?Ye.data!==ze&&(T.update(Ye),Ye.updateData(ze),!Ye.selectable&&Ye.isSelected()&&U.push(Ye)):(Ye=this.createRowNode(ze,-1),T.add(Ye),Te=!0),k.set(ze,Ye);let Ae,Ne;w?(Ne=Ie.appendKey(Ye.id),Ae=Ye.sourceRowIndex,Ye.sourceRowIndex=G.push(Ye)-1):(Ne=Ie.upsertKey(Ye.id),Ae=-1),this.treeSetRow(Ne,Ye,Te)&&(Q=!0);let Re=m==null?void 0:m(ze);return Re&&fe(Ne,Re),Ae};if(fe(d,s),z)for(let Ie=0,ze=z.length;Ie<ze;++Ie){let Ye=z[Ie],xe=Ye.treeNode;if(xe){let Te=Ye.data;Te&&!k.has(Te)&&(T.remove(Ye),this.treeRemove(xe,Ye))}}if(!w){let Ie=ze=>{for(let Ye of ze.enumChildren()){let xe=Ye.row;xe&&(xe.sourceRowIndex=G.push(xe)-1,Ie(Ye))}};Ie(d)}g.allLeafChildren=G,d.allLeafChildren=G,U.length&&this.deselectNodes(U),this.treeCommit(R);let ke=g.sibling;ke&&(ke.allLeafChildren=G),(Q||X)&&(u.step="group",u.rowDataUpdated=!0,u.rowNodesOrderChanged=X)}refreshModel(u){var d,g;let{rootNode:s,treeRoot:r}=this;if(r){if((d=u.changedProps)!=null&&d.has("treeData")&&!u.newData){r.setRow(s);let m=s==null?void 0:s.allLeafChildren;if(m)for(let b=0,w=m.length;b<w;++b){let k=m[b];k.groupData=null,(g=k.treeNode)==null||g.invalidate()}this.treeCommit()}super.refreshModel(u)}}}p.ClientSideChildrenTreeNodeManager=f},4292:function(x,p,M){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.ClientSidePathTreeNodeManager=void 0;let A=M(6624),F=M(987);class D extends F.AbstractClientSideTreeNodeManager{constructor(){super(...arguments),this.beanName="csrmPathTreeNodeSvc"}loadNewRowData(v){let u=this.rootNode,s=this.treeRoot;this.treeClear(s),s.setRow(u),super.loadNewRowData(v);let r=u.allLeafChildren,d=this.gos.get("getDataPath");for(let g=0,m=r.length;g<m;++g)this.addOrUpdateRow(d,r[g],!0);this.treeCommit()}get treeData(){let v=this.gos;return v.get("treeData")&&!!v.get("getDataPath")}refreshModel(v){let u=v.changedRowNodes;u&&this.executeTransactions(u,v.changedPath,v.rowNodesOrderChanged),super.refreshModel(v)}executeTransactions(v,u,s){var b;let r=this.treeRoot;if(!r)return;r.setRow(this.rootNode);for(let w of v.removals){let k=w.treeNode;k&&this.treeRemove(k,w)}let d=v.updates,g=this.gos.get("getDataPath");for(let w of d.keys())this.addOrUpdateRow(g,w,d.get(w));let m=(b=r.row)==null?void 0:b.allLeafChildren;if(s&&m)for(let w=0,k=m.length;w<k;++w){let R=m[w].treeNode;R&&R.sourceIdx!==w&&R.invalidateOrder()}this.treeCommit(u)}addOrUpdateRow(v,u,s){let r=this.treeRoot;if(!this.treeData){this.treeSetRow(r.upsertKey(u.id),u,s);return}let d=v==null?void 0:v(u.data),g=d==null?void 0:d.length;if(!g)(0,A._warn)(185,{data:u.data});else{let m=0,b=r;do b=b.upsertKey(d[m++]);while(m<g);this.treeSetRow(b,u,s)}}}p.ClientSidePathTreeNodeManager=D},7084:function(x,p){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.makeFieldPathGetter=void 0;let M=F=>{if(typeof F!="string"||!F.length)return[];let D=F.split(".");return D.includes("__proto__")?[]:D},A=F=>{let D=M(F),f=null,v=D.length-1;return v===0?f=u=>u==null?void 0:u[F]:v>0?f=u=>{let s=u;for(let r=0;r<=v&&s!==null&&s!==void 0;++r)if(s=s[D[r]],r<v&&typeof s!="object"&&s!==void 0)return null;return s}:f=()=>{},f.path=F,f};p.makeFieldPathGetter=A},9428:function(x,p,M){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.TreeDataModule=p.SharedTreeDataModule=void 0;let A=M(9206),F=M(7032),D=M(6858),f=M(7205),v=M(4352),u=M(4292);p.SharedTreeDataModule={moduleName:"SharedTreeData",version:f.VERSION,dependsOn:[A.EnterpriseCoreModule,F.SharedAggregationModule,D.GroupColumnModule,D.StickyRowModule]},p.TreeDataModule={moduleName:"TreeData",version:f.VERSION,beans:[u.ClientSidePathTreeNodeManager,v.ClientSideChildrenTreeNodeManager],rowModels:["clientSide"],dependsOn:[p.SharedTreeDataModule,F.AggregationModule,D.ClientSideRowModelHierarchyModule]}},5012:function(x,p,M){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.TreeNode=void 0;let A=M(6624),F=(u,s)=>u.treeNode.sourceIdx-s.treeNode.sourceIdx,D=A._EmptyArray.values(),f=(u,s)=>{u.parent=null,u.treeNode=null,s?u.childrenAfterGroup=[]:(u.level=0,u.childrenAfterGroup=null,u.allLeafChildren=null)};class v{constructor(s,r,d){this.parent=s,this.key=r,this.level=d,this.children=null,this.invalidatedHead=null,this.invalidatedNext=void 0,this.row=null,this.oldRow=null,this.duplicateRows=null,this.childrenAfterGroup=A._EmptyArray,this.allLeafChildren=A._EmptyArray,this.childrenChanged=!1,this.leafChildrenChanged=!1,this.sourceIdx=-1}get size(){var s,r;return(r=(s=this.children)==null?void 0:s.size)!=null?r:0}isEmptyFillerNode(){var s,r;return!((s=this.row)!=null&&s.data)&&!((r=this.children)!=null&&r.size)}enumChildren(){var s,r;return(r=(s=this.children)==null?void 0:s.values())!=null?r:D}upsertKey(s){var d,g,m;typeof s!="string"&&(s=String(s));let r=(d=this.children)==null?void 0:d.get(s);return r||(r=new v(this,s,this.level+1),(m=(g=this.children)!=null?g:this.children=new Map)==null||m.set(r.key,r)),r}appendKey(s){var g,m;let r=this.children;typeof s!="string"&&(s=String(s));let d=r==null?void 0:r.get(s);return d?(r.delete(s),r.set(s,d)):(d=new v(this,s,this.level+1),(m=(g=this.children)!=null?g:this.children=new Map)==null||m.set(d.key,d)),d}destroy(){var d;let{row:s,parent:r}=this;r!==null&&((d=r==null?void 0:r.children)==null||d.delete(this.key),s!==null&&f(s,!0),this.parent=null)}setRow(s){var m,b,w;let{level:r,row:d,childrenAfterGroup:g}=this;if(r<0)d!==null&&d!==s&&f(d,!0);else{if(d===s)return!1;d!==null?(s!==null&&(s.allLeafChildren=(b=(m=d.allLeafChildren)!=null?m:this.allLeafChildren)!=null?b:A._EmptyArray),f(d,!1)):s!==null&&(s.allLeafChildren=(w=this.allLeafChildren)!=null?w:A._EmptyArray)}return s!==null&&(s.level=r,s.childrenAfterGroup=g,s.treeNode=this),this.row=s,!0}removeRow(s){var b,w;let{level:r,row:d,duplicateRows:g,childrenAfterGroup:m}=this;if(d===s){let k=this.popDuplicateRow();k?(this.row=k,k.childrenAfterGroup=m,r>=0&&(k.allLeafChildren=(w=(b=d.allLeafChildren)!=null?b:this.allLeafChildren)!=null?w:A._EmptyArray)):this.row=null}else{if(!(g!=null&&g.delete(s)))return!1;g.size===0&&(this.duplicateRows=null)}return f(s,r<0),!0}addDuplicateRow(s){let{level:r}=this,d=this.duplicateRows;if(d===null)d=new Set,this.duplicateRows=d;else if(d.has(s))return!1;return d.add(s),s.treeNode=this,s.level=r,r>=0&&(s.allLeafChildren=A._EmptyArray),s.childrenAfterGroup=A._EmptyArray,!0}sortFirstDuplicateRow(){var g,m;let s=this.duplicateRows,r=this.row;if(!r||!s)return r;let d=r;for(let b of s)b.sourceRowIndex<d.sourceRowIndex&&(d=b);return d!==r&&(d.childrenAfterGroup=this.childrenAfterGroup,d.allLeafChildren=(m=(g=r.allLeafChildren)!=null?g:this.allLeafChildren)!=null?m:A._EmptyArray,r.childrenAfterGroup=A._EmptyArray,r.allLeafChildren=A._EmptyArray,s.delete(d),s.add(r),this.row=d),d}popDuplicateRow(){let s=null,r=this.duplicateRows;return r!==null&&(s=r.values().next().value,s!==null&&r.delete(s)&&r.size===0&&(this.duplicateRows=null)),s}dequeueInvalidated(){var r;let s=this.invalidatedHead;return s!==null&&(this.invalidatedHead=(r=s.invalidatedNext)!=null?r:null,s.invalidatedNext=void 0),s}invalidate(){let s=this,r=this.parent;for(;r!==null&&s.invalidatedNext===void 0;)s.invalidatedNext=r.invalidatedHead,r.invalidatedHead=s,s=r,r=s.parent}invalidateOrder(){var r,d,g;let s=this.parent;s!==null&&!s.childrenChanged&&(((d=(r=this.children)==null?void 0:r.size)!=null?d:0)>1||!((g=s.row)!=null&&g.data))&&(s.childrenChanged=!0,s.invalidate())}getNewSourceIdx(){var r,d,g;let s=this.row;return s!=null&&s.data?s.sourceRowIndex:(g=(d=(r=this.childrenAfterGroup[0])==null?void 0:r.treeNode)==null?void 0:d.sourceIdx)!=null?g:this.sourceIdx}updateChildrenAfterGroup(s){var k;this.childrenChanged=!1;let r=s&&((k=this.children)==null?void 0:k.size)||0;if(r===0)return this.row.childrenAfterGroup=A._EmptyArray,this.childrenAfterGroup.length===0?!1:(this.leafChildrenChanged=!0,this.childrenAfterGroup=A._EmptyArray,!0);let d=!1,g=this.childrenAfterGroup;g===A._EmptyArray?(g=new Array(r),this.childrenAfterGroup=g,this.row.childrenAfterGroup=g,d=!0):g.length!==r&&(g.length=r,d=!0);let m=0,b=-1,w=!1;for(let R of this.enumChildren()){let T=R.getNewSourceIdx();T<b&&(w=!0),b=T,R.sourceIdx=T;let z=R.row;g[m]!==z&&(g[m]=z,d=!0),++m}return d&&(this.leafChildrenChanged=!0),w&&this.reorderChildrenList(g),d||w}reorderChildrenList(s){let r=s.length,d=this.children;s.sort(F),d.clear();for(let g=0;g<r;++g){let m=s[g].treeNode;d.set(m.key,m)}}updateAllLeafChildren(){var b,w;let{parent:s,row:r,childrenAfterGroup:d}=this;this.leafChildrenChanged=!1;let g=!1,m=d.length;if(m===0)g=((b=r.allLeafChildren)==null?void 0:b.length)!==0,r.allLeafChildren=A._EmptyArray,this.allLeafChildren=A._EmptyArray;else if(m===1&&((w=d[0].allLeafChildren)!=null&&w.length))r.allLeafChildren=d[0].allLeafChildren,this.allLeafChildren=null,g=!0;else{let k=this.allLeafChildren;(k===A._EmptyArray||k===null)&&(k=[],this.allLeafChildren=k);let R=k.length,T=0;for(let z=0;z<m;++z){let G=d[z],U=G.allLeafChildren,X=U.length;if(X)for(let Q=0;Q<X;++Q){let oe=U[Q];(T>=R||k[T]!==oe)&&(k[T]=oe,g=!0),++T}else(T>=R||k[T]!==G)&&G&&(k[T]=G,g=!0),++T}R!==T&&(k.length=T,g=!0),r.allLeafChildren!==k&&(r.allLeafChildren=k,g=!0)}g&&s&&(s.leafChildrenChanged=!0)}}p.TreeNode=v},2546:function(x,p){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.clearTreeRowFlags=p.markTreeRowCommitted=p.markTreeRowPathChanged=p.setTreeRowKeyChanged=p.setTreeRowUpdated=p.setTreeRowExpandedInitialized=p.isTreeRowPathChanged=p.isTreeRowKeyChanged=p.isTreeRowUpdated=p.isTreeRowExpandedInitialized=p.isTreeRowCommitted=void 0;let M=m=>(m.treeNodeFlags&1)!==0;p.isTreeRowCommitted=M;let A=m=>(m.treeNodeFlags&2)!==0;p.isTreeRowExpandedInitialized=A;let F=m=>(m.treeNodeFlags&4)!==0;p.isTreeRowUpdated=F;let D=m=>(m.treeNodeFlags&8)!==0;p.isTreeRowKeyChanged=D;let f=m=>(m.treeNodeFlags&16)!==0;p.isTreeRowPathChanged=f;let v=(m,b)=>{b?m.treeNodeFlags|=2:m.treeNodeFlags&=-3};p.setTreeRowExpandedInitialized=v;let u=m=>{let b=m.treeNodeFlags;b&1&&(m.treeNodeFlags=b|4)};p.setTreeRowUpdated=u;let s=m=>{let b=m.treeNodeFlags;b&1&&(m.treeNodeFlags=b|12)};p.setTreeRowKeyChanged=s;let r=m=>{m.treeNodeFlags|=16};p.markTreeRowPathChanged=r;let d=m=>{let b=m.level<0,w=m.treeNodeFlags,k=(w&1)!==0;if(m.treeNodeFlags=1|w&-29,!k||b){let R=m.childrenAfterGroup;m.childrenAfterFilter=R,m.childrenAfterAggFilter=R,m.childrenAfterSort=R}if(b){let R=m.sibling;R&&(R.childrenAfterGroup=m.childrenAfterGroup,R.childrenMapped=m.childrenMapped)}};p.markTreeRowCommitted=d;let g=m=>{m.treeNodeFlags=0};p.clearTreeRowFlags=g},7205:function(x,p){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.VERSION=void 0,p.VERSION="33.0.1"},4790:function(x,p,M){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.ViewportRowModel=void 0;let A=M(6624);class F extends A.BeanStub{constructor(){super(...arguments),this.beanName="rowModel",this.firstRow=-1,this.lastRow=-1,this.rowCount=-1,this.rowNodesByIndex={}}ensureRowHeightsValid(f,v,u,s){return!1}postConstruct(){let f=this.beans;this.rowHeight=(0,A._getRowHeightAsNumber)(f),this.addManagedEventListeners({viewportChanged:this.onViewportChanged.bind(this)}),this.addManagedPropertyListener("viewportDatasource",()=>this.updateDatasource()),this.addManagedPropertyListener("rowHeight",()=>{this.rowHeight=(0,A._getRowHeightAsNumber)(f),this.updateRowHeights()})}start(){this.updateDatasource()}isLastRowIndexKnown(){return!0}destroy(){this.destroyDatasource(),super.destroy()}destroyDatasource(){var v;let f=this.datasource;f&&((v=f.destroy)==null||v.call(f),this.beans.rowRenderer.datasourceChanged(),this.firstRow=-1,this.lastRow=-1)}updateDatasource(){let f=this.gos.get("viewportDatasource");f&&this.setViewportDatasource(f)}getPageSize(){return this.gos.get("viewportRowModelPageSize")}getBufferSize(){return this.gos.get("viewportRowModelBufferSize")}calculateFirstRow(f){let v=this.getBufferSize(),u=this.getPageSize(),s=f-v;return s<0?0:Math.floor(s/u)*u}calculateLastRow(f){if(f===-1)return f;let v=this.getBufferSize(),u=this.getPageSize(),s=f+v,r=Math.ceil(s/u)*u,d=this.rowCount-1;return Math.min(r,d)}onViewportChanged(f){var s;let v=this.calculateFirstRow(f.firstRow),u=this.calculateLastRow(f.lastRow);(this.firstRow!==v||this.lastRow!==u)&&(this.firstRow=v,this.lastRow=u,this.purgeRowsNotInViewport(),(s=this.datasource)==null||s.setViewportRange(this.firstRow,this.lastRow))}purgeRowsNotInViewport(){let f=this.rowNodesByIndex;Object.keys(f).forEach(v=>{let u=parseInt(v,10);if(u<this.firstRow||u>this.lastRow){if(this.isRowFocused(u))return;delete f[u]}})}isRowFocused(f){let v=this.beans.focusSvc.getFocusCellToUseAfterRefresh();return!v||v.rowPinned!=null?!1:v.rowIndex===f}setViewportDatasource(f){this.destroyDatasource(),this.datasource=f,this.rowCount=-1,f.init?f.init({setRowCount:this.setRowCount.bind(this),setRowData:this.setRowData.bind(this),getRow:this.getRow.bind(this)}):(0,A._warn)(226)}getType(){return"viewport"}getRow(f){return this.rowNodesByIndex[f]||(this.rowNodesByIndex[f]=this.createBlankRowNode(f)),this.rowNodesByIndex[f]}getRowNode(f){let v;return this.forEachNode(u=>{u.id===f&&(v=u)}),v}getRowCount(){return this.rowCount===-1?0:this.rowCount}getRowIndexAtPixel(f){return this.rowHeight!==0?Math.floor(f/this.rowHeight):0}getRowBounds(f){let v=this.rowHeight;return{rowHeight:v,rowTop:v*f}}updateRowHeights(){let f=this.rowHeight;this.forEachNode(v=>{v.setRowHeight(f),v.setRowTop(f*v.rowIndex)}),this.eventSvc.dispatchEvent({type:"modelUpdated",newData:!1,newPage:!1,keepRenderedRows:!0,animate:!1})}getTopLevelRowCount(){return this.getRowCount()}getTopLevelRowDisplayedIndex(f){return f}isEmpty(){return this.rowCount>0}isRowsToRender(){return this.rowCount>0}getNodesInRangeForSelection(f,v){let u=f.rowIndex,s=v.rowIndex,r=u<this.firstRow||u>this.lastRow,d=s<this.firstRow||s>this.lastRow;if(r||d)return[];let g=[],m=u<=s?u:s,b=u<=s?s:u;for(let w=m;w<=b;w++)g.push(this.rowNodesByIndex[w]);return g}forEachNode(f){let v=0;Object.keys(this.rowNodesByIndex).forEach(u=>{let s=parseInt(u,10),r=this.rowNodesByIndex[s];f(r,v),v++})}setRowData(f){let v=this.rowNodesByIndex;for(let[u,s]of Object.entries(f)){let r=parseInt(u,10);if(r>=this.firstRow&&r<=this.lastRow){let d=v[r];(0,A._missing)(d)&&(d=this.createBlankRowNode(r),v[r]=d),d.setDataAndId(s,r.toString())}}}createBlankRowNode(f){let v=new A.RowNode(this.beans),u=this.rowHeight;return v.setRowHeight(u),v.setRowTop(u*f),v.setRowIndex(f),v}setRowCount(f,v=!1){if(f===this.rowCount)return;this.rowCount=f;let u=this.eventSvc;u.dispatchEventOnce({type:"rowCountReady"}),u.dispatchEvent({type:"modelUpdated",newData:!1,newPage:!1,keepRenderedRows:v,animate:!1})}isRowPresent(f){return!!this.getRowNode(f.id)}}p.ViewportRowModel=F},7794:function(x,p,M){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.ViewportRowModelModule=void 0;let A=M(9206),F=M(7205),D=M(4790);p.ViewportRowModelModule={moduleName:"ViewportRowModel",version:F.VERSION,rowModels:["viewport"],beans:[D.ViewportRowModel],dependsOn:[A.EnterpriseCoreModule]}},7437:function(x,p,M){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.AgPillContainer=void 0;let A=M(6624),F=M(3264);class D extends A.Component{constructor(){super(`
            <div class="ag-pill-container" role="listbox"></div>
            `),this.pills=[]}init(v){this.params=v,this.refresh()}refresh(){this.clearPills();let{params:v,onPillKeyDown:u}=this,s=v.getValue();if(!Array.isArray(s))return;let r=s.length;for(let d=0;d<r;d++){let g=s[d],m=this.createBean(new F.AgPill({onButtonClick:()=>this.onPillButtonClick(m),onKeyDown:u.bind(this)})),b=m.getGui();(0,A._setAriaPosInSet)(b,d+1),(0,A._setAriaSetSize)(b,r),v.onPillMouseDown&&m.addGuiEventListener("mousedown",v.onPillMouseDown),v.announceItemFocus&&m.addGuiEventListener("focus",v.announceItemFocus),m.setText(g),m.toggleCloseButtonClass("ag-icon-cancel",!0),this.appendChild(b),this.pills.push(m)}}onNavigationKeyDown(v){let{key:u}=v;if(!this.pills.length||u!==A.KeyCode.LEFT&&u!==A.KeyCode.RIGHT)return;v.preventDefault();let{params:s,beans:r}=this,d=(0,A._getActiveDomElement)(r),g=this.getGui();if(g.contains(d)){let m=(0,A._findNextFocusableElement)(r,g,!1,u===A.KeyCode.LEFT);m?m.focus():s.eWrapper&&s.eWrapper.focus()}else{let m=(0,A._findFocusableElements)(g);m.length>0&&m[u===A.KeyCode.RIGHT?0:m.length-1].focus()}}clearPills(){let v=this.getGui();v.contains((0,A._getActiveDomElement)(this.beans))&&this.params.eWrapper&&this.params.eWrapper.focus(),(0,A._clearElement)(v),this.destroyBeans(this.pills),this.pills=[]}onPillButtonClick(v){this.deletePill(v)}onPillKeyDown(v){let u=v.key;if(u!==A.KeyCode.DELETE&&u!==A.KeyCode.BACKSPACE)return;v.preventDefault();let s=(0,A._getDocument)(this.beans),r=this.pills.findIndex(g=>g.getGui().contains(s.activeElement));if(r===-1)return;let d=this.pills[r];d&&this.deletePill(d,r)}deletePill(v,u){let s=v.getText(),r=(this.params.getValue()||[]).filter(d=>d!==s);if(this.params.setValue(r),!r.length&&this.params.eWrapper)this.params.eWrapper.focus();else if(u!=null){let d=this.pills[Math.min(u,this.pills.length-1)];d&&d.getFocusableElement().focus()}}destroy(){this.clearPills(),super.destroy()}}p.AgPillContainer=D},8775:function(x,p,M){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.AgDialog=void 0;let A=M(6624),F=M(7325);class D extends F.AgPanel{wireBeans(v){this.popupSvc=v.popupSvc}constructor(v){super(et(pe({},v),{popup:!0})),this.isMaximizable=!1,this.isMaximized=!1,this.maximizeListeners=[],this.resizeListenerDestroy=null,this.lastPosition={x:0,y:0,width:0,height:0}}postConstruct(){var m;let v=this.getGui(),{movable:u,resizable:s,maximizable:r,modal:d,postProcessPopupParams:g}=this.config;if(this.addCssClass("ag-dialog"),super.postConstruct(),g){let{type:b,eventSource:w,column:k,mouseEvent:R,rowNode:T}=g;(m=this.popupSvc)==null||m.callPostProcessPopup(b,v,w,R,k,T)}if(this.tabGuardFeature=this.createManagedBean(new A.TabGuardFeature(this)),this.tabGuardFeature.initialiseTabGuard({isFocusableContainer:!0,onFocusIn:()=>{var b;(b=this.popupSvc)==null||b.bringPopupToFront(v)},onTabKeyDown:b=>{if(d)return;let w=b.shiftKey,k=(0,A._findNextFocusableElement)(this.beans,v,!1,w);(!k||this.tabGuardFeature.getTabGuardCtrl().isTabGuard(k))&&(0,A._focusNextGridCoreContainer)(this.beans,w)&&b.preventDefault()}}),u&&this.setMovable(u),r&&this.setMaximizable(r),s&&this.setResizable(s),!this.config.modal){let b=this.beans.ctrlsSvc.get("gridCtrl");b.addFocusableContainer(this),this.addDestroyFunc(()=>b.removeFocusableContainer(this))}}setAllowFocus(v){this.tabGuardFeature.getTabGuardCtrl().setAllowFocus(v)}renderComponent(){var b;let v=this.getGui(),{alwaysOnTop:u,modal:s,title:r,afterGuiAttached:d}=this.config,g=this.getLocaleTextFunc(),m=(b=this.popupSvc)==null?void 0:b.addPopup({modal:s,eChild:v,closeOnEsc:!0,closedCallback:this.onClosed.bind(this),alwaysOnTop:u,ariaLabel:r||g("ariaLabelDialog","Dialog"),afterGuiAttached:d});m&&(this.close=m.hideFunc)}onClosed(v){var u,s;this.destroy(),(s=(u=this.config).closedCallback)==null||s.call(u,v)}toggleMaximize(){let v=this.positionableFeature.getPosition();if(this.isMaximized){let{x:u,y:s,width:r,height:d}=this.lastPosition;this.setWidth(r),this.setHeight(d),this.positionableFeature.offsetElement(u,s)}else this.lastPosition.width=this.getWidth(),this.lastPosition.height=this.getHeight(),this.lastPosition.x=v.x,this.lastPosition.y=v.y,this.positionableFeature.offsetElement(0,0),this.setHeight("100%"),this.setWidth("100%");this.isMaximized=!this.isMaximized,this.refreshMaximizeIcon()}refreshMaximizeIcon(){(0,A._setDisplayed)(this.maximizeIcon,!this.isMaximized),(0,A._setDisplayed)(this.minimizeIcon,this.isMaximized)}clearMaximizebleListeners(){this.maximizeListeners.length&&(this.maximizeListeners.forEach(v=>v()),this.maximizeListeners.length=0),this.resizeListenerDestroy&&(this.resizeListenerDestroy(),this.resizeListenerDestroy=null)}destroy(){this.maximizeButtonComp=this.destroyBean(this.maximizeButtonComp),this.clearMaximizebleListeners(),super.destroy()}setResizable(v){this.positionableFeature.setResizable(v)}setMovable(v){this.positionableFeature.setMovable(v,this.eTitleBar)}setMaximizable(v){if(!v){this.clearMaximizebleListeners(),this.maximizeButtonComp&&(this.destroyBean(this.maximizeButtonComp),this.maximizeButtonComp=this.maximizeIcon=this.minimizeIcon=void 0);return}let u=this.eTitleBar;if(!u||v===this.isMaximizable)return;let s=this.buildMaximizeAndMinimizeElements();this.refreshMaximizeIcon(),s.addManagedElementListeners(s.getGui(),{click:this.toggleMaximize.bind(this)}),this.addTitleBarButton(s,0),this.maximizeListeners.push(...this.addManagedElementListeners(u,{dblclick:this.toggleMaximize.bind(this)})),[this.resizeListenerDestroy]=this.addManagedListeners(this.positionableFeature,{resize:()=>{this.isMaximized=!1,this.refreshMaximizeIcon()}})}buildMaximizeAndMinimizeElements(){let v=this.maximizeButtonComp=this.createBean(new A.Component('<div class="ag-dialog-button"></span>')),u=v.getGui();return this.maximizeIcon=(0,A._createIconNoSpan)("maximize",this.beans),u.appendChild(this.maximizeIcon),this.maximizeIcon.classList.add("ag-panel-title-bar-button-icon"),this.minimizeIcon=(0,A._createIconNoSpan)("minimize",this.beans),u.appendChild(this.minimizeIcon),this.minimizeIcon.classList.add("ag-panel-title-bar-button-icon"),v}}p.AgDialog=D},1421:function(x,p,M){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.AgGroupComponentSelector=p.AgGroupComponent=void 0;let A=M(6624);function F(s){let r=s.cssIdentifier||"default",d=s.direction||"vertical";return`
        <div class="ag-group ag-${r}-group" role="presentation">
            <div data-ref="eToolbar" class="ag-group-toolbar ag-${r}-group-toolbar">
                <ag-checkbox data-ref="cbGroupEnabled"></ag-checkbox>
            </div>
            <div data-ref="eContainer" class="ag-group-container ag-group-container-${d} ag-${r}-group-container"></div>
        </div>
    `}class D extends A.Component{constructor(r={}){super(F(r),[A.AgCheckboxSelector]),this.params=r,this.suppressEnabledCheckbox=!0,this.suppressToggleExpandOnEnableChange=!1,this.eToolbar=A.RefPlaceholder,this.cbGroupEnabled=A.RefPlaceholder,this.eContainer=A.RefPlaceholder;let{enabled:d,items:g,suppressEnabledCheckbox:m,expanded:b,suppressToggleExpandOnEnableChange:w,useToggle:k}=r;this.cssIdentifier=r.cssIdentifier||"default",this.enabled=d!=null?d:!0,this.items=g||[],this.useToggle=k!=null?k:!1,this.alignItems=r.alignItems||"center",this.expanded=b==null?!0:b,m!=null&&(this.suppressEnabledCheckbox=m),w!=null&&(this.suppressToggleExpandOnEnableChange=w)}postConstruct(){if(this.setupTitleBar(),this.items.length){let b=this.items;this.items=[],this.addItems(b)}let r=this.getLocaleTextFunc();this.cbGroupEnabled.setLabel(r("enabled","Enabled")),this.enabled&&this.setEnabled(this.enabled,void 0,!0),this.setAlignItems(this.alignItems);let{onEnableChange:d,onExpandedChange:g,suppressOpenCloseIcons:m}=this.params;this.hideEnabledCheckbox(this.suppressEnabledCheckbox),this.hideOpenCloseIcons(m!=null?m:!1),this.refreshChildDisplay(),(0,A._setDisplayed)(this.eContainer,this.expanded),this.cbGroupEnabled.onValueChange(b=>{this.setEnabled(b,!0,this.suppressToggleExpandOnEnableChange),this.dispatchEnableChangeEvent(b)}),d!=null&&this.onEnableChange(d),g!=null&&this.onExpandedChange(g)}refreshChildDisplay(){var r;(0,A._setDisplayed)(this.eToolbar,this.expanded&&!this.suppressEnabledCheckbox),(r=this.eTitleBar)==null||r.refreshOnExpand(this.expanded)}isExpanded(){return this.expanded}setAlignItems(r){this.alignItems!==r&&this.removeCssClass(`ag-group-item-alignment-${this.alignItems}`),this.alignItems=r;let d=`ag-group-item-alignment-${this.alignItems}`;return this.addCssClass(d),this}toggleGroupExpand(r,d){var g;if((g=this.eTitleBar)!=null&&g.isSuppressCollapse()&&!this.useToggle)r=!0,d=!0;else if(r=r!=null?r:!this.expanded,this.expanded===r)return this;return this.expanded=r,this.refreshChildDisplay(),(0,A._setDisplayed)(this.eContainer,r),d||this.dispatchLocalEvent({type:r?"expanded":"collapsed"}),this}addItems(r){r.forEach(d=>this.addItem(d))}prependItem(r){this.insertItem(r,!0)}addItem(r){this.insertItem(r,!1)}insertItem(r,d){let g=this.eContainer,m=r instanceof A.Component?r.getGui():r;m.classList.add("ag-group-item",`ag-${this.cssIdentifier}-group-item`),d?(g.insertAdjacentElement("afterbegin",m),this.items.unshift(m)):(g.appendChild(m),this.items.push(m))}hideItem(r,d){let g=this.items[d];(0,A._setDisplayed)(g,!r)}getItemIndex(r){let d=r instanceof A.Component?r.getGui():r;return this.items.indexOf(d)}setTitle(r){var d;return(d=this.eTitleBar)==null||d.setTitle(r),this}addTitleBarWidget(r){var d;return(d=this.eTitleBar)==null||d.addWidget(r),this}addCssClassToTitleBar(r){var d;(d=this.eTitleBar)==null||d.addCssClass(r)}dispatchEnableChangeEvent(r){let d={type:"enableChange",enabled:r};this.dispatchLocalEvent(d)}setEnabled(r,d,g){var m;return this.enabled=r,this.refreshDisabledStyles(),g||this.toggleGroupExpand(r),d||(this.cbGroupEnabled.setValue(r),(m=this.eToggle)==null||m.setValue(r)),this}isEnabled(){return this.enabled}onEnableChange(r){return this.addManagedListeners(this,{enableChange:d=>r(d.enabled)}),this}onExpandedChange(r){return this.addManagedListeners(this,{expanded:()=>r(!0),collapsed:()=>r(!1)}),this}hideEnabledCheckbox(r){return this.suppressEnabledCheckbox=r,this.refreshChildDisplay(),this.refreshDisabledStyles(),this}hideOpenCloseIcons(r){var d;return(d=this.eTitleBar)==null||d.hideOpenCloseIcons(r),this}refreshDisabledStyles(){var d;let r=!this.enabled;this.eContainer.classList.toggle("ag-disabled",r),(d=this.eTitleBar)==null||d.refreshDisabledStyles(this.suppressEnabledCheckbox&&r),this.eContainer.classList.toggle("ag-disabled-group-container",r)}setupTitleBar(){let r=this.useToggle?this.createToggleTitleBar():this.createDefaultTitleBar();this.eToolbar.insertAdjacentElement("beforebegin",r.getGui())}createDefaultTitleBar(){let r=this.createManagedBean(new u(this.params));return this.eTitleBar=r,r.refreshOnExpand(this.expanded),this.addManagedListeners(r,{expandedChanged:d=>this.toggleGroupExpand(d.expanded)}),r}createToggleTitleBar(){var d;let r=this.createManagedBean(new A.AgToggleButton({value:this.enabled,label:this.params.title,labelAlignment:"left",labelWidth:"flex",onValueChange:g=>{this.setEnabled(g,!0),this.dispatchEnableChangeEvent(g)}}));return r.addCssClass("ag-group-title-bar"),r.addCssClass(`ag-${(d=this.params.cssIdentifier)!=null?d:"default"}-group-title-bar ag-unselectable`),this.eToggle=r,this.toggleGroupExpand(this.enabled),r}}p.AgGroupComponent=D;let f="ag-disabled-group-title-bar";function v(s){var g;let r=(g=s.cssIdentifier)!=null?g:"default",d=s.suppressKeyboardNavigation?"presentation":"role";return`
        <div class="ag-group-title-bar ag-${r}-group-title-bar ag-unselectable" role="${d}">
            <span class="ag-group-title-bar-icon ag-${r}-group-title-bar-icon" data-ref="eGroupOpenedIcon" role="presentation"></span>
            <span class="ag-group-title-bar-icon ag-${r}-group-title-bar-icon" data-ref="eGroupClosedIcon" role="presentation"></span>
            <span data-ref="eTitle" class="ag-group-title ag-${r}-group-title"></span>
        </div>
    `}class u extends A.Component{constructor(r={}){super(v(r)),this.suppressOpenCloseIcons=!1,this.suppressKeyboardNavigation=!1,this.eGroupOpenedIcon=A.RefPlaceholder,this.eGroupClosedIcon=A.RefPlaceholder,this.eTitle=A.RefPlaceholder;let{title:d,suppressOpenCloseIcons:g,suppressKeyboardNavigation:m}=r;d&&d.length>0&&(this.title=d),g!=null&&(this.suppressOpenCloseIcons=g),this.suppressKeyboardNavigation=m!=null?m:!1}postConstruct(){this.setTitle(this.title),this.hideOpenCloseIcons(this.suppressOpenCloseIcons),this.setupExpandContract()}setupExpandContract(){this.eGroupClosedIcon.appendChild((0,A._createIcon)("accordionClosed",this.beans,null)),this.eGroupOpenedIcon.appendChild((0,A._createIcon)("accordionOpen",this.beans,null)),this.addManagedElementListeners(this.getGui(),{click:()=>this.dispatchExpandChanged(),keydown:r=>{switch(r.key){case A.KeyCode.ENTER:case A.KeyCode.SPACE:r.preventDefault(),this.dispatchExpandChanged();break;case A.KeyCode.RIGHT:case A.KeyCode.LEFT:r.preventDefault(),this.dispatchExpandChanged(r.key===A.KeyCode.RIGHT);break}}})}refreshOnExpand(r){this.refreshAriaStatus(r),this.refreshOpenCloseIcons(r)}refreshAriaStatus(r){this.suppressOpenCloseIcons||(0,A._setAriaExpanded)(this.getGui(),r)}refreshOpenCloseIcons(r){let d=!this.suppressOpenCloseIcons;(0,A._setDisplayed)(this.eGroupOpenedIcon,d&&r),(0,A._setDisplayed)(this.eGroupClosedIcon,d&&!r)}isSuppressCollapse(){return this.suppressOpenCloseIcons}dispatchExpandChanged(r){let d={type:"expandedChanged",expanded:r};this.dispatchLocalEvent(d)}setTitle(r){let d=this.getGui(),g=!!r&&r.length>0;r=g?r:void 0,this.eTitle.textContent=r!=null?r:"",(0,A._setDisplayed)(d,g),r!==this.title&&(this.title=r);let m=d.classList.contains(f);return this.refreshDisabledStyles(m),this}addWidget(r){return this.getGui().appendChild(r),this}hideOpenCloseIcons(r){return this.suppressOpenCloseIcons=r,r&&this.dispatchExpandChanged(!0),this}refreshDisabledStyles(r){let d=this.getGui();r?(d.classList.add(f),d.removeAttribute("tabindex")):(d.classList.remove(f),typeof this.title=="string"&&!this.suppressKeyboardNavigation?d.setAttribute("tabindex","0"):d.removeAttribute("tabindex"))}}p.AgGroupComponentSelector={selector:"AG-GROUP-COMPONENT",component:D}},7040:function(x,p,M){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.AgMenuItemComponent=void 0;let A=M(6624),F=M(9476),D=M(568);function f(s,r,d){return s.getCompDetails(r,v,"agMenuItem",d,!0)}let v={name:"menuItem",optionalMethods:["setActive","select","setExpanded","configureDefaults"]};class u extends A.BeanStub{constructor(){super(...arguments),this.ACTIVATION_DELAY=80,this.isActive=!1,this.subMenuIsOpen=!1,this.subMenuIsOpening=!1,this.suppressRootStyles=!0,this.suppressAria=!0,this.suppressFocus=!0}wireBeans(r){this.popupSvc=r.popupSvc,this.userCompFactory=r.userCompFactory,this.registry=r.registry}init(r){var R,T,z;let{menuItemDef:d,isAnotherSubMenuOpen:g,level:m,childComponent:b,contextParams:w}=r;this.params=r.menuItemDef,this.level=m,this.isAnotherSubMenuOpen=g,this.childComponent=b,this.contextParams=w,this.cssClassPrefix=(T=(R=this.params.menuItemParams)==null?void 0:R.cssClassPrefix)!=null?T:"ag-menu-option";let k=f(this.userCompFactory,this.params,et(pe({},d),{level:m,isAnotherSubMenuOpen:g,openSubMenu:G=>this.openSubMenu(G),closeSubMenu:()=>this.closeSubMenu(),closeMenu:G=>this.closeMenu(G),updateTooltip:(G,U)=>this.refreshTooltip(G,U),onItemActivated:()=>this.onItemActivated()}));return(z=k==null?void 0:k.newAgStackInstance().then(G=>{var X;this.menuItemComp=G;let U=(X=G.configureDefaults)==null?void 0:X.call(G);U&&this.configureDefaults(U===!0?void 0:U)}))!=null?z:A.AgPromise.resolve()}addListeners(r,d){d!=null&&d.suppressClick||this.addManagedElementListeners(r,{click:g=>this.onItemSelected(g)}),d!=null&&d.suppressKeyboardSelect||this.addManagedElementListeners(r,{keydown:g=>{(g.key===A.KeyCode.ENTER||g.key===A.KeyCode.SPACE)&&(g.preventDefault(),this.onItemSelected(g))}}),d!=null&&d.suppressMouseDown||this.addManagedElementListeners(r,{mousedown:g=>{g.stopPropagation(),g.preventDefault()}}),d!=null&&d.suppressMouseOver||this.addManagedElementListeners(r,{mouseenter:()=>this.onMouseEnter(),mouseleave:()=>this.onMouseLeave()})}isDisabled(){return!!this.params.disabled}openSubMenu(r=!1,d){var z,G;if(this.closeSubMenu(),!this.params.subMenu)return;this.subMenuIsOpening=!0;let g=(0,A._loadTemplate)('<div class="ag-menu" role="presentation"></div>');this.eSubMenuGui=g;let m,b=()=>{this.subMenuIsOpening=!1};if(this.childComponent){let U=this.createBean(new D.AgMenuPanel(this.childComponent));U.setParentComponent(this);let X=U.getGui(),Q="mouseenter",oe=()=>this.cancelDeactivate();X.addEventListener(Q,oe),m=()=>X.removeEventListener(Q,oe),g.appendChild(X),this.childComponent.afterGuiAttached&&(b=()=>{this.childComponent.afterGuiAttached(),this.subMenuIsOpening=!1})}else if(this.params.subMenu){let U=this.createBean(new F.AgMenuList(this.level+1,this.contextParams));U.setParentComponent(this),U.addMenuItems(this.params.subMenu),g.appendChild(U.getGui()),this.addManagedListeners(U,{closeMenu:X=>this.dispatchLocalEvent(X)}),U.addGuiEventListener("mouseenter",()=>this.cancelDeactivate()),m=()=>this.destroyBean(U),r&&(b=()=>{U.activateFirstItem(),this.subMenuIsOpening=!1})}let{popupSvc:w}=this,k=()=>{let U=this.eGui;w==null||w.positionPopupForMenu({eventSource:U,ePopup:g});let{column:X,node:Q}=this.contextParams;w==null||w.callPostProcessPopup("subMenu",g,U,d instanceof MouseEvent?d:void 0,X,Q)},R=this.getLocaleTextFunc(),T=w==null?void 0:w.addPopup({modal:!0,eChild:g,positionCallback:k,anchorToElement:this.eGui,ariaLabel:R("ariaLabelSubMenu","SubMenu"),afterGuiAttached:b});this.subMenuIsOpen=!0,this.setAriaExpanded(!0),this.hideSubMenu=()=>{var U,X;T&&T.hideFunc(),this.subMenuIsOpen=!1,this.setAriaExpanded(!1),m(),(X=(U=this.menuItemComp).setExpanded)==null||X.call(U,!1),this.eSubMenuGui=void 0},(G=(z=this.menuItemComp).setExpanded)==null||G.call(z,!0)}setAriaExpanded(r){this.suppressAria||(0,A._setAriaExpanded)(this.eGui,r)}closeSubMenu(){this.hideSubMenu&&(this.hideSubMenu(),this.hideSubMenu=null,this.setAriaExpanded(!1))}isSubMenuOpen(){return this.subMenuIsOpen}isSubMenuOpening(){return this.subMenuIsOpening}activate(r){var d,g;this.cancelActivate(),!this.params.disabled&&(this.isActive=!0,this.suppressRootStyles||this.eGui.classList.add(`${this.cssClassPrefix}-active`),(g=(d=this.menuItemComp).setActive)==null||g.call(d,!0),this.suppressFocus||this.eGui.focus({preventScroll:!0}),r&&this.params.subMenu&&window.setTimeout(()=>{this.isAlive()&&this.isActive&&this.openSubMenu()},300),this.onItemActivated())}deactivate(){var r,d;this.cancelDeactivate(),this.suppressRootStyles||this.eGui.classList.remove(`${this.cssClassPrefix}-active`),(d=(r=this.menuItemComp).setActive)==null||d.call(r,!1),this.isActive=!1,this.subMenuIsOpen&&this.hideSubMenu()}getGui(){return this.menuItemComp.getGui()}getParentComponent(){return this.parentComponent}setParentComponent(r){this.parentComponent=r}getSubMenuGui(){return this.eSubMenuGui}onItemSelected(r){var d,g;(g=(d=this.menuItemComp).select)==null||g.call(d),this.params.action?this.beans.frameworkOverrides.wrapOutgoing(()=>this.params.action(this.gos.addGridCommonParams(pe({},this.contextParams)))):this.openSubMenu(r&&r.type==="keydown",r),!(this.params.subMenu&&!this.params.action||this.params.suppressCloseOnSelect)&&this.closeMenu(r)}closeMenu(r){let d={type:"closeMenu"};r&&(r instanceof MouseEvent?d.mouseEvent=r:d.keyboardEvent=r),this.dispatchLocalEvent(d)}onItemActivated(){let r={type:"menuItemActivated",menuItem:this};this.dispatchLocalEvent(r)}cancelActivate(){this.activateTimeoutId&&(window.clearTimeout(this.activateTimeoutId),this.activateTimeoutId=0)}cancelDeactivate(){this.deactivateTimeoutId&&(window.clearTimeout(this.deactivateTimeoutId),this.deactivateTimeoutId=0)}onMouseEnter(){this.cancelDeactivate(),this.isAnotherSubMenuOpen()?this.activateTimeoutId=window.setTimeout(()=>this.activate(!0),this.ACTIVATION_DELAY):this.activate(!0)}onMouseLeave(){this.cancelActivate(),this.isSubMenuOpen()?this.deactivateTimeoutId=window.setTimeout(()=>this.deactivate(),this.ACTIVATION_DELAY):this.deactivate()}configureDefaults(r){var T,z,G;if(!this.menuItemComp){setTimeout(()=>this.configureDefaults(r));return}let d=this.menuItemComp.getGui(),{suppressRootStyles:g,suppressTooltip:m,suppressAria:b,suppressTabIndex:w,suppressFocus:k}=r||{},R=(z=(T=this.menuItemComp).getRootElement)==null?void 0:z.call(T);R&&(g||d.classList.add("ag-menu-option-custom"),d=R),this.eGui=d,this.suppressRootStyles=!!g,this.suppressRootStyles||(d.classList.add(this.cssClassPrefix),(G=this.params.cssClasses)==null||G.forEach(U=>d.classList.add(U)),this.params.disabled&&d.classList.add(`${this.cssClassPrefix}-disabled`)),m||this.refreshTooltip(this.params.tooltip),this.suppressAria=!!b,this.suppressAria||((0,A._setAriaRole)(d,"treeitem"),(0,A._setAriaLevel)(d,this.level+1),this.params.disabled&&(0,A._setAriaDisabled)(d,!0)),w||d.setAttribute("tabindex","-1"),this.params.disabled||this.addListeners(d,r),this.suppressFocus=!!k}refreshTooltip(r,d){if(this.tooltip=r,this.tooltipFeature=this.destroyBean(this.tooltipFeature),!r||!this.menuItemComp)return;let g=this.registry.createDynamicBean("tooltipFeature",!1,{getGui:()=>this.getGui(),getTooltipValue:()=>this.tooltip,getLocation:()=>"menu",shouldDisplayTooltip:d});g&&(this.tooltipFeature=this.createBean(g))}destroy(){var r,d;this.tooltipFeature=this.destroyBean(this.tooltipFeature),(d=(r=this.menuItemComp)==null?void 0:r.destroy)==null||d.call(r),super.destroy()}}p.AgMenuItemComponent=u},3360:function(x,p,M){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.AgMenuItemRenderer=void 0;let A=M(6624);class F extends A.Component{constructor(){super(),this.setTemplate("<div></div>")}init(f){var v;this.params=f,this.cssClassPrefix=(v=this.params.cssClassPrefix)!=null?v:"ag-menu-option",this.addAriaAttributes(),this.addIcon(),this.addName(),this.addShortcut(),this.addSubMenu()}configureDefaults(){return!0}addAriaAttributes(){let{checked:f,subMenu:v}=this.params,u=this.getGui();f&&(0,A._setAriaChecked)(u,f),v&&(0,A._setAriaExpanded)(u,!1)}addIcon(){if(this.params.isCompact)return;let f=(0,A._loadTemplate)(`<span data-ref="eIcon" class="${this.getClassName("part")} ${this.getClassName("icon")}" role="presentation"></span>`),{checked:v,icon:u}=this.params;v?f.appendChild((0,A._createIconNoSpan)("check",this.beans)):u&&((0,A._isNodeOrElement)(u)?f.appendChild(u):typeof u=="string"?f.innerHTML=u:(0,A._warn)(227)),this.getGui().appendChild(f)}addName(){let f=(0,A._loadTemplate)(`<span data-ref="eName" class="${this.getClassName("part")} ${this.getClassName("text")}">${this.params.name||""}</span>`);this.getGui().appendChild(f)}addShortcut(){if(this.params.isCompact)return;let f=(0,A._loadTemplate)(`<span data-ref="eShortcut" class="${this.getClassName("part")} ${this.getClassName("shortcut")}">${this.params.shortcut||""}</span>`);this.getGui().appendChild(f)}addSubMenu(){let f=(0,A._loadTemplate)(`<span data-ref="ePopupPointer" class="${this.getClassName("part")} ${this.getClassName("popup-pointer")}"></span>`),v=this.getGui();if(this.params.subMenu){let u=this.gos.get("enableRtl")?"subMenuOpenRtl":"subMenuOpen";f.appendChild((0,A._createIconNoSpan)(u,this.beans))}v.appendChild(f)}getClassName(f){return`${this.cssClassPrefix}-${f}`}}p.AgMenuItemRenderer=F},9476:function(x,p,M){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.AgMenuList=void 0;let A=M(6624),F=M(7040);class D extends A.TabGuardComp{constructor(v=0,u){super('<div class="ag-menu-list" role="tree"></div>'),this.level=v,this.menuItems=[],this.params=u!=null?u:{column:null,node:null,value:null}}postConstruct(){this.initialiseTabGuard({onTabKeyDown:v=>this.onTabKeyDown(v),handleKeyDown:v=>this.handleKeyDown(v),onFocusIn:v=>this.handleFocusIn(v),onFocusOut:v=>this.handleFocusOut(v)})}onTabKeyDown(v){let u=this.getParentComponent(),s=u&&u.getGui();s&&s.classList.contains("ag-focus-managed")||v.preventDefault(),v.shiftKey&&this.closeIfIsChild(v)}handleKeyDown(v){switch(v.key){case A.KeyCode.UP:case A.KeyCode.RIGHT:case A.KeyCode.DOWN:case A.KeyCode.LEFT:v.preventDefault(),this.handleNavKey(v.key);break;case A.KeyCode.ESCAPE:this.closeIfIsChild()&&(0,A._stopPropagationForAgGrid)(v);break}}handleFocusIn(v){var s,r;let u=v.relatedTarget;!this.tabGuardFeature.getTabGuardCtrl().isTabGuard(u)&&(this.getGui().contains(u)||(r=(s=this.activeMenuItem)==null?void 0:s.getSubMenuGui())!=null&&r.contains(u))||(this.activeMenuItem?this.activeMenuItem.activate():this.activateFirstItem())}handleFocusOut(v){var s;let u=v.relatedTarget;!this.activeMenuItem||this.getGui().contains(u)||(s=this.activeMenuItem.getSubMenuGui())!=null&&s.contains(u)||this.activeMenuItem.isSubMenuOpening()||this.activeMenuItem.deactivate()}clearActiveItem(){this.activeMenuItem&&(this.activeMenuItem.deactivate(),this.activeMenuItem=null)}addMenuItems(v){v!=null&&A.AgPromise.all(v.map(u=>u==="separator"?A.AgPromise.resolve({eGui:this.createSeparator()}):typeof u=="string"?((0,A._warn)(228,{menuItemOrString:u}),A.AgPromise.resolve({eGui:null})):this.addItem(u))).then(u=>{(u!=null?u:[]).forEach(s=>{s!=null&&s.eGui&&(this.appendChild(s.eGui),s.comp&&this.menuItems.push(s.comp))})})}addItem(v){let u=this.createManagedBean(new F.AgMenuItemComponent);return u.init({menuItemDef:v,isAnotherSubMenuOpen:()=>this.menuItems.some(s=>s.isSubMenuOpen()),level:this.level,contextParams:this.params}).then(()=>(u.setParentComponent(this),this.addManagedListeners(u,{closeMenu:s=>{this.dispatchLocalEvent(s)},menuItemActivated:s=>{this.activeMenuItem&&this.activeMenuItem!==s.menuItem&&this.activeMenuItem.deactivate(),this.activeMenuItem=s.menuItem}}),{comp:u,eGui:u.getGui()}))}activateFirstItem(){let v=this.menuItems.filter(u=>!u.isDisabled())[0];v&&v.activate()}createSeparator(){let v=`
            <div class="ag-menu-separator" aria-hidden="true">
                <div class="ag-menu-separator-part"></div>
                <div class="ag-menu-separator-part"></div>
                <div class="ag-menu-separator-part"></div>
                <div class="ag-menu-separator-part"></div>
            </div>`;return(0,A._loadTemplate)(v)}handleNavKey(v){switch(v){case A.KeyCode.UP:case A.KeyCode.DOWN:{let s=this.findNextItem(v===A.KeyCode.UP);s&&s!==this.activeMenuItem&&s.activate();return}}let u=this.gos.get("enableRtl")?A.KeyCode.RIGHT:A.KeyCode.LEFT;v===u?this.closeIfIsChild():this.openChild()}closeIfIsChild(v){let u=this.getParentComponent();return u&&u instanceof F.AgMenuItemComponent?(v&&v.preventDefault(),u.closeSubMenu(),u.getGui().focus(),!0):!1}openChild(){this.activeMenuItem&&this.activeMenuItem.openSubMenu(!0)}findNextItem(v){let u=this.menuItems.filter(d=>!d.isDisabled());if(!u.length)return;if(!this.activeMenuItem)return v?(0,A._last)(u):u[0];v&&u.reverse();let s,r=!1;for(let d=0;d<u.length;d++){let g=u[d];if(!r){g===this.activeMenuItem&&(r=!0);continue}s=g;break}return r&&!s?u[0]:s||this.activeMenuItem}destroy(){this.clearActiveItem(),super.destroy()}}p.AgMenuList=D},568:function(x,p,M){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.AgMenuPanel=void 0;let A=M(6624);class F extends A.TabGuardComp{constructor(f){super(),this.setTemplateFromElement(f.getGui(),void 0,void 0,!0)}postConstruct(){this.initialiseTabGuard({onTabKeyDown:f=>this.onTabKeyDown(f),handleKeyDown:f=>this.handleKeyDown(f)})}handleKeyDown(f){f.key===A.KeyCode.ESCAPE&&this.closePanel()}onTabKeyDown(f){f.defaultPrevented||(this.closePanel(),f.preventDefault())}closePanel(){let f=this.parentComponent;f.closeSubMenu(),setTimeout(()=>f.getGui().focus(),0)}}p.AgMenuPanel=F},7088:function(x,p){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.agPanelCSS=void 0,p.agPanelCSS=".ag-panel{background-color:var(--ag-panel-background-color);display:flex;flex-direction:column;overflow:hidden;position:relative}.ag-dialog{border:var(--ag-dialog-border);border-radius:var(--ag-border-radius);box-shadow:var(--ag-dialog-shadow);position:absolute}.ag-panel-title-bar{align-items:center;background-color:var(--ag-panel-title-bar-background-color);border-bottom:var(--ag-panel-title-bar-border);color:var(--ag-header-text-color);cursor:default;display:flex;flex:none;height:var(--ag-header-height);padding:var(--ag-spacing) var(--ag-cell-horizontal-padding)}.ag-panel-title-bar-button{cursor:pointer}:where(.ag-ltr) .ag-panel-title-bar-button{margin-left:calc(var(--ag-spacing)*2);margin-right:var(--ag-spacing)}:where(.ag-rtl) .ag-panel-title-bar-button{margin-left:var(--ag-spacing);margin-right:calc(var(--ag-spacing)*2)}.ag-panel-title-bar-title{color:var(--ag-header-text-color);flex:1 1 auto;font-weight:500}.ag-panel-title-bar-buttons{display:flex}.ag-panel-content-wrapper{display:flex;flex:1 1 auto;overflow:hidden;position:relative}:where(.ag-dragging-fill-handle) .ag-dialog,:where(.ag-dragging-range-handle) .ag-dialog{opacity:.7;pointer-events:none}"},7325:function(x,p,M){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.AgPanel=void 0;let A=M(6624),F=M(7088);function D(u){let s=u.cssIdentifier||"default";return`<div class="ag-panel ag-${s}-panel" tabindex="-1">
        <div data-ref="eTitleBar" class="ag-panel-title-bar ag-${s}-panel-title-bar ag-unselectable">
            <span data-ref="eTitle" class="ag-panel-title-bar-title ag-${s}-panel-title-bar-title"></span>
            <div data-ref="eTitleBarButtons" class="ag-panel-title-bar-buttons ag-${s}-panel-title-bar-buttons"></div>
        </div>
        <div data-ref="eContentWrapper" class="ag-panel-content-wrapper ag-${s}-panel-content-wrapper"></div>
    </div>`}let f='<div class="ag-button"></div>';class v extends A.Component{constructor(s){super(D(s)),this.config=s,this.closable=!0,this.eContentWrapper=A.RefPlaceholder,this.eTitleBar=A.RefPlaceholder,this.eTitleBarButtons=A.RefPlaceholder,this.eTitle=A.RefPlaceholder,this.registerCSS(F.agPanelCSS)}postConstruct(){let{component:s,closable:r,hideTitleBar:d,title:g,minWidth:m=250,width:b,minHeight:w=250,height:k,centered:R,popup:T,x:z,y:G}=this.config;this.positionableFeature=new A.PositionableFeature(this.getGui(),{minWidth:m,width:b,minHeight:w,height:k,centered:R,x:z,y:G,popup:T,calculateTopBuffer:()=>this.positionableFeature.getHeight()-this.getBodyHeight()}),this.createManagedBean(this.positionableFeature);let U=this.getGui();s&&this.setBodyComponent(s),d?(0,A._setDisplayed)(this.eTitleBar,!1):(g&&this.setTitle(g),this.setClosable(r!=null?r:this.closable)),this.addManagedElementListeners(this.eTitleBar,{mousedown:X=>{if(U.contains(X.relatedTarget)||U.contains((0,A._getActiveDomElement)(this.beans))||this.eTitleBarButtons.contains(X.target)){X.preventDefault();return}let Q=this.eContentWrapper.querySelector("button, [href], input, select, textarea, [tabindex]");Q&&Q.focus()}}),!(T&&this.positionableFeature.isPositioned())&&(this.renderComponent&&this.renderComponent(),this.positionableFeature.initialisePosition(),this.eContentWrapper.style.height="0")}renderComponent(){let s=this.getGui();s.focus(),this.close=()=>{s.parentElement.removeChild(s),this.destroy()}}getHeight(){return this.positionableFeature.getHeight()}setHeight(s){this.positionableFeature.setHeight(s)}getWidth(){return this.positionableFeature.getWidth()}setWidth(s){this.positionableFeature.setWidth(s)}setClosable(s){if(s!==this.closable&&(this.closable=s),s){let r=this.closeButtonComp=new A.Component(f);this.createBean(r);let d=r.getGui(),g=(0,A._createIconNoSpan)("close",this.beans);g.classList.add("ag-panel-title-bar-button-icon"),d.appendChild(g),this.addTitleBarButton(r),r.addManagedElementListeners(d,{click:this.onBtClose.bind(this)})}else if(this.closeButtonComp){let r=this.closeButtonComp.getGui();r.parentElement.removeChild(r),this.closeButtonComp=this.destroyBean(this.closeButtonComp)}}setBodyComponent(s){s.setParentComponent(this),this.eContentWrapper.appendChild(s.getGui())}addTitleBarButton(s,r){let d=this.eTitleBarButtons,g=d.children,m=g.length;r==null&&(r=m),r=Math.max(0,Math.min(r,m)),s.addCssClass("ag-panel-title-bar-button");let b=s.getGui();r===0?d.insertAdjacentElement("afterbegin",b):r===m?d.insertAdjacentElement("beforeend",b):g[r-1].insertAdjacentElement("afterend",b),s.setParentComponent(this)}getBodyHeight(){return(0,A._getInnerHeight)(this.eContentWrapper)}getBodyWidth(){return(0,A._getInnerWidth)(this.eContentWrapper)}setTitle(s){this.eTitle.innerText=s}onBtClose(){this.close()}destroy(){this.closeButtonComp&&(this.closeButtonComp=this.destroyBean(this.closeButtonComp));let s=this.getGui();s&&(0,A._isVisible)(s)&&this.close(),super.destroy()}}p.AgPanel=v},3264:function(x,p,M){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.AgPill=void 0;let A=M(6624),F=M(6624);class D extends F.Component{constructor(v){super(`
            <div class="ag-pill" role="option">
                <span class="ag-pill-text" data-ref="eText"></span>
                <span class="ag-button ag-pill-button" data-ref="eButton" role="presentation"></span>
            </div>
        `),this.config=v,this.eText=A.RefPlaceholder,this.eButton=A.RefPlaceholder}postConstruct(){let{config:v,eButton:u}=this,{onKeyDown:s,onButtonClick:r}=v;this.getGui().setAttribute("tabindex",String(this.gos.get("tabIndex"))),this.addGuiEventListener("focus",()=>{this.eButton.focus()}),s&&this.addGuiEventListener("keydown",s),r&&this.addManagedElementListeners(u,{click:r})}toggleCloseButtonClass(v,u){this.eButton.classList.toggle(v,u)}setText(v){this.eText.textContent=v}getText(){return this.eText.textContent}}p.AgPill=D},7720:function(x,p){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.agRichSelectCSS=void 0,p.agRichSelectCSS=".ag-rich-select{cursor:default;height:100%}.ag-rich-select-value{align-items:center;background-color:var(--ag-input-background-color);display:flex;height:100%;padding:var(--ag-spacing);:where(.ag-picker-field-display){overflow:hidden;text-overflow:ellipsis;&:where(.ag-display-as-placeholder){opacity:.5}}}.ag-rich-select-list{background-color:var(--ag-input-background-color);border:var(--ag-input-border);border-radius:var(--ag-input-border-radius);box-shadow:var(--ag-dropdown-shadow);height:auto;position:relative;width:100%;:where(.ag-loading-text){padding:var(--ag-widget-container-vertical-padding) var(--ag-widget-container-horizontal-padding)}}.ag-rich-select-row{align-items:center;display:flex;flex:1 1 auto;height:100%;overflow:hidden;padding:0 var(--ag-spacing);white-space:nowrap}.ag-rich-select-row-selected{background-color:var(--ag-selected-row-background-color)}.ag-rich-select-row-highlighted,.ag-rich-select-row:hover{background-image:linear-gradient(var(--ag-row-hover-color),var(--ag-row-hover-color))}.ag-rich-select-row-text-highlight{font-weight:700}.ag-rich-select-field-input{flex:1 1 auto;:where(.ag-input-field-input){border:none!important;box-shadow:none!important;padding:0!important;text-overflow:ellipsis;&::-moz-placeholder{opacity:.8}&::placeholder{opacity:.8}}}:where(.ag-ltr) .ag-rich-select-field-input{left:var(--ag-spacing)}:where(.ag-rtl) .ag-rich-select-field-input{right:var(--ag-spacing)}:where(.ag-popup-editor) .ag-rich-select-value{height:var(--ag-row-height);min-width:200px}.ag-rich-select-virtual-list-item{cursor:default;height:var(--ag-list-item-height)}.ag-pill-container{display:flex;flex-wrap:nowrap;gap:.25rem}.ag-pill{align-items:center;background:var(--ag-select-cell-background-color);border:var(--ag-select-cell-border);border-radius:var(--ag-border-radius);display:flex;padding:0 .25rem;white-space:nowrap}.ag-pill-button{border:none;padding:0;&:hover{color:var(--ag-accent-color);cursor:pointer}}:where(.ag-ltr) .ag-pill-button{margin-left:var(--ag-spacing)}:where(.ag-rtl) .ag-pill-button{margin-right:var(--ag-spacing)}"},2005:function(x,p,M){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.AgRichSelect=void 0;let A=M(6624),F=M(7437),D=M(7720),f=M(5805);class v extends A.AgPickerField{wireBeans(s){this.userCompFactory=s.userCompFactory,this.ariaAnnounce=s.ariaAnnounce,this.registry=s.registry}constructor(s){var m,b;super(et(pe({pickerAriaLabelKey:"ariaLabelRichSelectField",pickerAriaLabelValue:"Rich Select Field",pickerType:"ag-list",className:"ag-rich-select",pickerIcon:"richSelectOpen",ariaRole:"combobox",template:(m=s==null?void 0:s.template)!=null?m:`
            <div class="ag-picker-field" role="presentation">
                <div data-ref="eLabel"></div>
                <div data-ref="eWrapper" class="ag-wrapper ag-picker-field-wrapper ag-rich-select-value ag-picker-collapsed">
                    <span data-ref="eDisplayField" class="ag-picker-field-display"></span>
                    <ag-input-text-field data-ref="eInput" class="ag-rich-select-field-input"></ag-input-text-field>
                    <span data-ref="eDeselect" class="ag-rich-select-deselect-button ag-picker-field-icon" role="presentation"></span>
                    <span data-ref="eIcon" class="ag-picker-field-icon" aria-hidden="true"></span>
                </div>
            </div>`,agComponents:[A.AgInputTextFieldSelector],modalPicker:!1},s),{maxPickerHeight:(b=s==null?void 0:s.maxPickerHeight)!=null?b:"calc(var(--ag-row-height) * 6.5)"})),this.searchString="",this.searchStringCreator=null,this.eInput=A.RefPlaceholder,this.eDeselect=A.RefPlaceholder,this.skipWrapperAnnouncement=!1;let{value:r,valueList:d,searchStringCreator:g}=s||{};r!==void 0&&(this.value=r),d!=null&&(this.values=d),g&&(this.searchStringCreator=g),this.registerCSS(D.agRichSelectCSS)}postConstruct(){this.tooltipFeature=this.createOptionalManagedBean(this.registry.createDynamicBean("tooltipFeature",!1,{getGui:()=>this.getGui(),shouldDisplayTooltip:()=>{var m,b;return(b=(m=this.shouldDisplayTooltip)==null?void 0:m.call(this))!=null?b:!0}})),super.postConstruct(),this.createListComponent(),this.eDeselect.appendChild((0,A._createIconNoSpan)("richSelectRemove",this.beans));let{allowTyping:s,placeholder:r,suppressDeselectAll:d}=this.config;this.eDeselect.classList.add("ag-hidden"),s?(this.eInput.setAutoComplete(!1).setInputPlaceholder(r),this.eDisplayField.classList.add("ag-hidden")):this.eInput.setDisplayed(!1),this.setupAriaProperties();let{searchDebounceDelay:g=300}=this.config;this.clearSearchString=(0,A._debounce)(this,this.clearSearchString.bind(this),g),this.renderSelectedValue(),s&&this.eInput.onValueChange(m=>this.searchTextFromString(m)),this.addManagedElementListeners(this.eWrapper,{focus:this.onWrapperFocus.bind(this)}),this.addManagedElementListeners(this.eWrapper,{focusout:this.onWrapperFocusOut.bind(this)}),d||this.addManagedElementListeners(this.eDeselect,{mousedown:this.onDeselectAllMouseDown.bind(this),click:this.onDeselectAllClick.bind(this)})}setupAriaProperties(){let{eWrapper:s,gos:r}=this;s.tabIndex=r.get("tabIndex");let d=this.getLocaleTextFunc();this.ariaDeleteSelection=d("ariaLabelRichSelectDeleteSelection","Press DELETE to deselect item"),this.ariaDeselectAllItems=d("ariaLabelRichSelectDeselectAllItems","Press DELETE to deselect all items"),this.ariaToggleSelection=d("ariaLabelRichSelectToggleSelection","Press SPACE to toggle selection")}createListComponent(){this.listComponent=this.createBean(new f.AgRichSelectList(this.config,this.eWrapper,()=>this.searchString)),this.listComponent.setParentComponent(this),this.addManagedListeners(this.listComponent,{richSelectListRowSelected:s=>{this.onListValueSelected(s.value,s.fromEnterKey)}})}renderSelectedValue(){var X;let{value:s,eDisplayField:r,config:d,gos:g}=this,{allowTyping:m,cellRenderer:b,initialInputValue:w,multiSelect:k,suppressDeselectAll:R,suppressMultiSelectPillRenderer:T}=d,z=this.config.valueFormatter?this.config.valueFormatter(s):s;if(m){this.eInput.setValue(w!=null?w:z);return}if(k&&!R){let Q=s==null||Array.isArray(s)&&s.length===0;this.eDeselect.classList.toggle("ag-hidden",Q)}let G;if(k&&!T){this.createOrUpdatePillContainer(r);return}b&&(G=(0,A._getEditorRendererDetails)(this.userCompFactory,d,{value:s,valueFormatted:z,getValue:()=>this.getValue(),setValue:Q=>{this.setValue(Q,!0)},setTooltip:(Q,oe)=>{var le;g.assertModuleRegistered("Tooltip",3),this.shouldDisplayTooltip=oe,(le=this.tooltipFeature)==null||le.setTooltipAndRefresh(Q)}}));let U;if(G&&(U=G.newAgStackInstance()),U)(0,A._clearElement)(r),(0,A._bindCellRendererToHtmlElement)(U,r),U.then(Q=>{this.addDestroyFunc(()=>this.destroyBean(Q))});else{if((0,A._exists)(this.value))r.innerText=z,r.classList.remove("ag-display-as-placeholder");else{let{placeholder:Q}=d;(0,A._exists)(Q)?(r.innerHTML=`${(0,A._escapeString)(Q)}`,r.classList.add("ag-display-as-placeholder")):(0,A._clearElement)(r)}this.shouldDisplayTooltip=(0,A._shouldDisplayTooltip)(()=>this.eDisplayField),(X=this.tooltipFeature)==null||X.setTooltipAndRefresh(z!=null?z:null)}}createPickerComponent(){let{values:s}=this;return s&&this.setValueList({valueList:s}),this.listComponent}setSearchStringCreator(s){this.searchStringCreator=s}setValueList(s){let{valueList:r,refresh:d}=s;!this.listComponent||this.listComponent.getCurrentList()===r||(this.listComponent.setCurrentList(r),d&&(this.values?this.listComponent.refresh(!0):(this.values=r,this.isPickerDisplayed&&(this.listComponent.selectValue(this.value)||this.listComponent.refresh())),this.alignPickerToComponent()))}showPicker(){super.showPicker();let{listComponent:s,value:r}=this;if(!s)return;let d=null;this.value!=null&&(s.selectValue(this.value),d=s.getIndicesForValues(Array.isArray(r)?r:[r])[0]),d!=null?s.highlightIndex(d):s.refresh(),this.displayOrHidePicker()}beforeHidePicker(){super.beforeHidePicker()}createOrUpdatePillContainer(s){if(!this.pillContainer){let r=this.pillContainer=this.createBean(new F.AgPillContainer);this.addDestroyFunc(()=>{this.destroyBean(this.pillContainer),this.pillContainer=null}),(0,A._clearElement)(s),s.appendChild(r.getGui()),r.init({eWrapper:this.eWrapper,onPillMouseDown:d=>{d.stopImmediatePropagation()},announceItemFocus:()=>{this.announceAriaValue(this.ariaDeleteSelection)},getValue:()=>this.getValue(),setValue:d=>this.setValue(d,!0)})}this.doWhileBlockingAnnouncement(()=>{var r;return(r=this.pillContainer)==null?void 0:r.refresh()})}doWhileBlockingAnnouncement(s){this.skipWrapperAnnouncement=!0,s(),this.skipWrapperAnnouncement=!1}onWrapperFocus(){let{eInput:s,config:r}=this,{allowTyping:d,multiSelect:g,suppressDeselectAll:m}=r;if(d){let b=s.getFocusableElement();b.focus(),b.select()}else g&&!m&&!this.skipWrapperAnnouncement&&this.announceAriaValue(this.ariaDeselectAllItems)}onWrapperFocusOut(s){this.eWrapper.contains(s.relatedTarget)||this.hidePicker()}onDeselectAllMouseDown(s){s.stopImmediatePropagation()}onDeselectAllClick(){this.setValue([],!0)}buildSearchStringFromKeyboardEvent(s){let{key:r}=s;if(r===A.KeyCode.BACKSPACE)this.searchString=this.searchString.slice(0,-1),r="";else if(!(0,A._isEventFromPrintableCharacter)(s))return;s.preventDefault(),this.searchTextFromCharacter(r)}searchTextFromCharacter(s){this.searchString+=s,this.runSearch(),this.clearSearchString()}searchTextFromString(s){s==null&&(s=""),this.searchString=s,this.runSearch()}buildSearchStrings(s){let{valueFormatter:r=g=>g}=this.config,d;return typeof s[0]=="number"||typeof s[0]=="string"?d=s.map(g=>r(g)):typeof s[0]=="object"&&this.searchStringCreator&&(d=this.searchStringCreator(s)),d}filterListModel(s){let{filterList:r}=this.config;r&&this.setValueList({valueList:s,refresh:!0})}runSearch(){var T,z,G,U,X;if(!this.listComponent)return;let{values:s}=this,r=this.buildSearchStrings(s);if(!r){this.listComponent.highlightIndex(-1);return}let{suggestions:d,filteredValues:g}=this.getSuggestionsAndFilteredValues(this.searchString,r),{filterList:m,highlightMatch:b,searchType:w="fuzzy"}=this.config,k=g.length,R=!!(m&&this.searchString!=="");if(this.filterListModel(R?g:s),d.length){let Q=R?0:r.indexOf(d[0]);(T=this.listComponent)==null||T.highlightIndex(Q)}else if((z=this.listComponent)==null||z.highlightIndex(-1),!R||k)(G=this.listComponent)==null||G.ensureIndexVisible(0);else if(R){this.getAriaElement().removeAttribute("data-active-option");let Q=(U=this.listComponent)==null?void 0:U.getAriaElement();Q&&(0,A._setAriaActiveDescendant)(Q,null)}b&&w!=="fuzzy"&&((X=this.listComponent)==null||X.highlightFilterMatch(this.searchString)),this.displayOrHidePicker()}getSuggestionsAndFilteredValues(s,r){let d=[],g=[];if(!s.length)return{suggestions:d,filteredValues:g};let{searchType:m="fuzzy",filterList:b}=this.config;if(m==="fuzzy"){let w=(0,A._fuzzySuggestions)({inputValue:s,allSuggestions:r,hideIrrelevant:!0,addSequentialWeight:!0});d=w.values;let k=w.indices;if(b&&k.length)for(let R=0;R<k.length;R++)g.push(this.values[k[R]])}else d=r.filter((w,k)=>{let R=w.toLocaleLowerCase(),T=this.searchString.toLocaleLowerCase(),z=m==="match"?R.startsWith(T):R.indexOf(T)!==-1;return b&&z&&g.push(this.values[k]),z});return{suggestions:d,filteredValues:g}}displayOrHidePicker(){if(!this.listComponent)return;let s=this.listComponent.getGui(),r=this.listComponent.getCurrentList(),d=r?r.length===0:!1;s.classList.toggle("ag-hidden",d)}clearSearchString(){this.searchString=""}setValue(s,r,d,g){var b,w;if(this.value===s)return this;let m=Array.isArray(s);if(s!=null){if(!m){let k=(b=this.listComponent)==null?void 0:b.getCurrentList();if((k?k.indexOf(s):-1)===-1)return this}d||(w=this.listComponent)==null||w.selectValue(s)}return super.setValue(s,r),g||this.renderSelectedValue(),this}onNavigationKeyDown(s,r,d){var m;s.preventDefault();let g=r===A.KeyCode.DOWN;if(!this.isPickerDisplayed&&g){this.showPicker();return}(m=this.listComponent)==null||m.onNavigationKeyDown(r,d)}onEnterKeyDown(s){var r;if(this.isPickerDisplayed&&(s.preventDefault(),(r=this.listComponent)!=null&&r.getCurrentList())){let d=this.listComponent.getLastItemHovered();this.config.multiSelect||d==null?this.dispatchPickerEventAndHidePicker(this.value,!0):this.onListValueSelected(new Set([d]),!0)}}onDeleteKeyDown(s){let{eWrapper:r,beans:d}=this;(0,A._getActiveDomElement)(d)===r&&(s.preventDefault(),this.setValue([],!0))}onTabKeyDown(){let{config:s,isPickerDisplayed:r,listComponent:d}=this,{multiSelect:g}=s;if(!(!r||!d)){if(g){let m=this.getValueFromSet(d.getSelectedItems());m&&this.setValue(m,!1,!0,!0)}else this.setValue(d.getLastItemHovered(),!1,!0);this.hidePicker()}}getValueFromSet(s){let{multiSelect:r}=this.config,d=null;for(let g of s){if(s.size===1&&!r){d=g;break}d||(d=[]),d.push(g)}return Array.isArray(d)&&d.sort(),d}onListValueSelected(s,r){let d=this.getValueFromSet(s);this.setValue(d,!1,!0),this.config.multiSelect||this.dispatchPickerEventAndHidePicker(d,r)}dispatchPickerEventAndHidePicker(s,r){let d={type:"fieldPickerValueSelected",fromEnterKey:r,value:s};this.dispatchLocalEvent(d),this.hidePicker()}getFocusableElement(){let{allowTyping:s}=this.config;return s?this.eInput.getFocusableElement():super.getFocusableElement()}onKeyDown(s){var T;let{key:r}=s,{isPickerDisplayed:d,config:g,listComponent:m,pickerComponent:b}=this,{allowTyping:w,multiSelect:k,suppressDeselectAll:R}=g;switch(r){case A.KeyCode.LEFT:case A.KeyCode.RIGHT:(!w||this.pillContainer)&&(s.preventDefault(),this.pillContainer&&((T=this.listComponent)==null||T.highlightIndex(-1),this.pillContainer.onNavigationKeyDown(s)));break;case A.KeyCode.PAGE_HOME:case A.KeyCode.PAGE_END:if(w){s.preventDefault();let z=this.eInput.getInputElement(),G=r===A.KeyCode.PAGE_HOME?0:z.value.length;z.setSelectionRange(G,G);break}case A.KeyCode.PAGE_UP:case A.KeyCode.PAGE_DOWN:s.preventDefault(),b&&(m==null||m.navigateToPage(r));break;case A.KeyCode.DOWN:case A.KeyCode.UP:this.onNavigationKeyDown(s,r,()=>{k&&(this.doWhileBlockingAnnouncement(()=>this.eWrapper.focus()),this.announceAriaValue(this.ariaToggleSelection))});break;case A.KeyCode.ESCAPE:d&&((0,A._isVisible)(this.listComponent.getGui())&&(s.preventDefault(),(0,A._stopPropagationForAgGrid)(s)),this.hidePicker());break;case A.KeyCode.ENTER:this.onEnterKeyDown(s);break;case A.KeyCode.SPACE:if(d&&k&&m){s.preventDefault();let z=m.getLastItemHovered();z&&m.toggleListItemSelection(z)}break;case A.KeyCode.TAB:this.onTabKeyDown();break;case A.KeyCode.DELETE:k&&!R&&this.onDeleteKeyDown(s);break;default:w||this.buildSearchStringFromKeyboardEvent(s)}}announceAriaValue(s){var r;(r=this.ariaAnnounce)==null||r.announceValue(s,"richSelect")}destroy(){this.listComponent&&(this.listComponent=this.destroyBean(this.listComponent)),super.destroy()}}p.AgRichSelect=v},5805:function(x,p,M){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.AgRichSelectList=void 0;let A=M(6624),F=M(7793),D=M(7904),f="ag-rich-select-list",v="ag-rich-select-row";class u extends D.VirtualList{constructor(r,d,g){super({cssIdentifier:"rich-select"}),this.params=r,this.richSelectWrapper=d,this.getSearchString=g,this.lastRowHovered=-1,this.selectedItems=new Set,this.params=r,this.setComponentCreator(this.createRowComponent.bind(this)),this.setComponentUpdater(()=>{})}postConstruct(){super.postConstruct(),this.createLoadingElement();let{cellRowHeight:r,pickerAriaLabelKey:d,pickerAriaLabelValue:g}=this.params;r&&this.setRowHeight(r);let m=this.getGui(),b=this.getAriaElement();this.addManagedListeners(m,{mousemove:this.onMouseMove.bind(this),mouseout:this.onMouseOut.bind(this),mousedown:this.onMouseDown.bind(this),click:this.onClick.bind(this)}),m.classList.add(f);let w=`${f}-${this.getCompId()}`;b.setAttribute("id",w);let R=this.getLocaleTextFunc()(d,g);(0,A._setAriaLabel)(b,R),(0,A._setAriaControls)(this.richSelectWrapper,b)}navigateToPage(r){let d=super.navigateToPage(r,this.lastRowHovered);return d!=null&&(0,A._requestAnimationFrame)(this.beans,()=>{if(!this.isAlive())return null;this.highlightIndex(d)}),d}drawVirtualRows(r){super.drawVirtualRows(r),this.refreshSelectedItems()}highlightFilterMatch(r){this.forEachRenderedRow(d=>{d.highlightString(r)})}onNavigationKeyDown(r,d){(0,A._requestAnimationFrame)(this.beans,()=>{if(!this.currentList||!this.isAlive())return;let g=this.currentList.length,m=this.lastRowHovered,b=r===A.KeyCode.DOWN?1:-1,w=Math.min(Math.max(m===-1?0:m+b,0),g-1);this.highlightIndex(w),d()})}selectValue(r){var m,b;if(!this.currentList)return this.eLoading&&this.appendChild(this.eLoading),!1;if((m=this.eLoading)!=null&&m.offsetParent&&((b=this.eLoading.parentElement)==null||b.removeChild(this.eLoading)),r==null)return!1;let d=this.getIndicesForValues(r),g=d.length>0;return g&&(this.refresh(),this.ensureIndexVisible(d[0]),this.refresh(!0)),this.selectListItems(Array.isArray(r)?r:[r]),g}selectListItems(r,d=!1){d||this.selectedItems.clear();for(let g=0;g<r.length;g++){let m=r[g];this.selectedItems.has(m)||this.selectedItems.add(m)}this.refreshSelectedItems()}getCurrentList(){return this.currentList}setCurrentList(r){this.currentList=r,this.setModel({getRowCount:()=>r.length,getRow:d=>r[d],areRowsEqual:(d,g)=>d===g})}getSelectedItems(){return this.selectedItems}getLastItemHovered(){return this.currentList[this.lastRowHovered]}highlightIndex(r,d){this.currentList&&(r<0||r>=this.currentList.length?this.lastRowHovered=-1:(this.lastRowHovered=r,this.ensureIndexVisible(r,!d)&&!d&&this.refresh(!0)),this.forEachRenderedRow((g,m)=>{let b=r===m;if(g.toggleHighlighted(b),b){let w=`${v}-${g.getCompId()}`;(0,A._setAriaActiveDescendant)(this.richSelectWrapper,w),this.richSelectWrapper.setAttribute("data-active-option",w)}}))}getIndicesForValues(r){let{currentList:d}=this;if(!d||d.length===0||r==null)return[];if(Array.isArray(r)||(r=[r]),r.length===0)return[];let g=[];for(let m=0;m<r.length;m++){let b=d.indexOf(r[m]);b>=0&&g.push(b)}return g}toggleListItemSelection(r){this.selectedItems.has(r)?this.selectedItems.delete(r):this.selectedItems.add(r),this.refreshSelectedItems(),this.dispatchValueSelected()}refreshSelectedItems(){this.forEachRenderedRow(r=>{let d=this.selectedItems.has(r.getValue());r.updateSelected(d)})}createLoadingElement(){let r=(0,A._getDocument)(this.beans),d=this.getLocaleTextFunc(),g=r.createElement("div");g.classList.add("ag-loading-text"),g.innerText=d("loadingOoo","Loading..."),this.eLoading=g}createRowComponent(r,d){let g=new F.RichSelectRow(this.params);d.setAttribute("id",`${v}-${g.getCompId()}`),g.setParentComponent(this),this.createBean(g),g.setState(r);let{highlightMatch:m,searchType:b="fuzzy"}=this.params;return m&&b!=="fuzzy"&&g.highlightString(this.getSearchString()),g}getRowForMouseEvent(r){let g=this.getGui().getBoundingClientRect(),m=this.getScrollTop(),b=r.clientY-g.top+m;return Math.floor(b/this.getRowHeight())}onMouseMove(r){let d=this.getRowForMouseEvent(r);d!==-1&&d!=this.lastRowHovered&&(this.lastRowHovered=d,this.highlightIndex(d,!0))}onMouseDown(r){r.preventDefault()}onMouseOut(r){this.getGui().contains(r.relatedTarget)||this.highlightIndex(-1)}onClick(r){let{multiSelect:d}=this.params;if(!this.currentList)return;let g=this.getRowForMouseEvent(r),m=this.currentList[g];d?this.toggleListItemSelection(m):(this.selectListItems([m]),this.dispatchValueSelected())}dispatchValueSelected(){this.dispatchLocalEvent({type:"richSelectListRowSelected",fromEnterKey:!1,value:this.selectedItems})}destroy(){super.destroy(),this.eLoading=void 0}}p.AgRichSelectList=u},7793:function(x,p,M){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.RichSelectRow=void 0;let A=M(6624);class F extends A.Component{wireBeans(f){this.userCompFactory=f.userCompFactory,this.registry=f.registry}constructor(f){super('<div class="ag-rich-select-row" role="presentation"></div>'),this.params=f}postConstruct(){this.tooltipFeature=this.createOptionalManagedBean(this.registry.createDynamicBean("tooltipFeature",!1,{getGui:()=>this.getGui(),shouldDisplayTooltip:()=>{var f,v;return(v=(f=this.shouldDisplayTooltip)==null?void 0:f.call(this))!=null?v:!0}}))}setState(f){let v="",{params:u}=this;u.valueFormatter&&(v=u.valueFormatter(f)),this.populateWithRenderer(f,v)||this.populateWithoutRenderer(f,v),this.value=f}highlightString(f){let{parsedValue:v}=this;if(this.params.cellRenderer||!(0,A._exists)(v))return;let u=(0,A._exists)(f);if(u){let s=v==null?void 0:v.toLocaleLowerCase().indexOf(f.toLocaleLowerCase());if(s>=0){let r=s+f.length,d=(0,A._escapeString)(v.slice(0,s),!0),g=(0,A._escapeString)(v.slice(s,r),!0),m=(0,A._escapeString)(v.slice(r));this.renderValueWithoutRenderer(`${d}<span class="ag-rich-select-row-text-highlight">${g}</span>${m}`)}else u=!1}u||this.renderValueWithoutRenderer(v)}updateSelected(f){let v=this.getGui();(0,A._setAriaSelected)(v.parentElement,f),this.addOrRemoveCssClass("ag-rich-select-row-selected",f)}getValue(){return this.value}toggleHighlighted(f){this.addOrRemoveCssClass("ag-rich-select-row-highlighted",f)}populateWithoutRenderer(f,v){var g;let u=(0,A._getDocument)(this.beans),s=this.getGui(),r=u.createElement("span");r.style.overflow="hidden",r.style.textOverflow="ellipsis";let d=(0,A._escapeString)((0,A._exists)(v)?v:f,!0);this.parsedValue=(0,A._exists)(d)?d:null,s.appendChild(r),this.renderValueWithoutRenderer(d),this.shouldDisplayTooltip=(0,A._shouldDisplayTooltip)(()=>r),(g=this.tooltipFeature)==null||g.setTooltipAndRefresh(this.parsedValue)}renderValueWithoutRenderer(f){let v=this.getGui().querySelector("span");v&&(v.innerHTML=(0,A._exists)(f)?f:"&nbsp;")}populateWithRenderer(f,v){var r;let u,s;if(this.params.cellRenderer){let d=(r=this.getParentComponent())==null?void 0:r.getParentComponent();s=(0,A._getEditorRendererDetails)(this.userCompFactory,this.params,{value:f,valueFormatted:v,getValue:()=>d==null?void 0:d.getValue(),setValue:g=>{d==null||d.setValue(g,!0)},setTooltip:(g,m)=>{var b;this.gos.assertModuleRegistered("Tooltip",3),this.shouldDisplayTooltip=m,(b=this.tooltipFeature)==null||b.setTooltipAndRefresh(g)}})}return s&&(u=s.newAgStackInstance()),u&&(0,A._bindCellRendererToHtmlElement)(u,this.getGui()),u?(u.then(d=>{this.addDestroyFunc(()=>{this.destroyBean(d)})}),!0):!1}}p.RichSelectRow=F},7685:function(x,p){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.menuCSS=void 0,p.menuCSS='.ag-menu-list{cursor:default;display:table;padding:var(--ag-spacing) 0;width:100%}.ag-menu-option,.ag-menu-separator{display:table-row}.ag-menu-option-part,.ag-menu-separator-part{display:table-cell;vertical-align:middle}.ag-menu-option{cursor:pointer;font-weight:500}:where(.ag-ltr) :where(.ag-menu-option-popup-pointer) .ag-icon{text-align:right}:where(.ag-rtl) :where(.ag-menu-option-popup-pointer) .ag-icon{text-align:left}.ag-menu-option-text{white-space:nowrap}.ag-menu-option-custom{display:contents}.ag-compact-menu-option{display:flex;flex-wrap:nowrap;width:100%}.ag-compact-menu-option-text{flex:1 1 auto;white-space:nowrap}.ag-menu-separator{height:calc(var(--ag-spacing)*2 + 1px)}.ag-menu-separator-part:after{border-top:1px solid var(--ag-menu-separator-color);content:"";display:block}.ag-compact-menu-option-active,.ag-menu-option-active{background-color:var(--ag-row-hover-color)}.ag-compact-menu-option-part,.ag-menu-option-part{line-height:var(--ag-icon-size);padding:calc(var(--ag-spacing) + 2px) 0}.ag-compact-menu-option-disabled,.ag-menu-option-disabled{cursor:not-allowed;opacity:.5}.ag-compact-menu-option-icon,.ag-menu-option-icon{width:var(--ag-icon-size)}:where(.ag-ltr) .ag-compact-menu-option-icon,:where(.ag-ltr) .ag-menu-option-icon{padding-left:calc(var(--ag-spacing)*2)}:where(.ag-rtl) .ag-compact-menu-option-icon,:where(.ag-rtl) .ag-menu-option-icon{padding-right:calc(var(--ag-spacing)*2)}.ag-compact-menu-option-text,.ag-menu-option-text{padding-left:calc(var(--ag-spacing)*2);padding-right:calc(var(--ag-spacing)*2)}:where(.ag-ltr) .ag-compact-menu-option-shortcut,:where(.ag-ltr) .ag-menu-option-shortcut{padding-right:var(--ag-spacing)}:where(.ag-rtl) .ag-compact-menu-option-shortcut,:where(.ag-rtl) .ag-menu-option-shortcut{padding-left:var(--ag-spacing)}:where(.ag-ltr) .ag-compact-menu-option-popup-pointer,:where(.ag-ltr) .ag-menu-option-popup-pointer{padding-right:var(--ag-spacing)}:where(.ag-rtl) .ag-compact-menu-option-popup-pointer,:where(.ag-rtl) .ag-menu-option-popup-pointer{padding-left:var(--ag-spacing)}.ag-menu-column-select-wrapper{height:265px;overflow:auto;:where(.ag-column-select){height:100%}}.ag-menu:where(.ag-tabs){min-width:290px}.ag-context-menu-loading-icon{pointer-events:none;position:absolute}'},3375:function(x,p,M){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.MenuItemModule=void 0;let A=M(7205),F=M(3360),D=M(7685);p.MenuItemModule={moduleName:"MenuItem",version:A.VERSION,userComponents:{agMenuItem:F.AgMenuItemRenderer},icons:{check:"tick",subMenuOpen:"small-right",subMenuOpenRtl:"small-left"},css:[D.menuCSS]}},3173:function(x,p,M){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.PillDragComp=void 0;let A=M(6624);class F extends A.Component{constructor(f,v,u,s,r){super(),this.dragSourceDropTarget=f,this.ghost=v,this.horizontal=u,this.template=s,this.agComponents=r,this.eText=A.RefPlaceholder,this.eDragHandle=A.RefPlaceholder,this.eButton=A.RefPlaceholder}postConstruct(){var d;this.setTemplate((d=this.template)!=null?d:`
            <span role="option">
              <span data-ref="eDragHandle" class="ag-drag-handle ag-column-drop-cell-drag-handle" role="presentation"></span>
              <span data-ref="eText" class="ag-column-drop-cell-text" aria-hidden="true"></span>
              <span data-ref="eButton" class="ag-column-drop-cell-button" role="presentation"></span>
            </span>`,this.agComponents);let f=this.getGui(),{beans:v,eDragHandle:u,eText:s,eButton:r}=this;this.addElementClasses(f),this.addElementClasses(u,"drag-handle"),this.addElementClasses(s,"text"),this.addElementClasses(r,"button"),u.appendChild((0,A._createIconNoSpan)("columnDrag",v)),r.appendChild((0,A._createIconNoSpan)("cancel",v)),this.tooltipFeature=this.createOptionalManagedBean(v.registry.createDynamicBean("tooltipFeature",!1,{getGui:()=>this.getGui()})),this.setupComponents(),!this.ghost&&this.isDraggable()&&this.addDragSource(),this.setupAria(),this.setupTooltip(),this.activateTabIndex(),this.refreshDraggable()}isDraggable(){return!0}refreshDraggable(){this.eDragHandle.classList.toggle("ag-column-select-column-readonly",!this.isDraggable())}setupAria(){let f=this.getLocaleTextFunc(),v=[this.getAriaDisplayName()];this.addAdditionalAriaInstructions(v,f),(0,A._setAriaLabel)(this.getGui(),v.join(". "))}addAdditionalAriaInstructions(f,v){if(this.isRemovable()){let u=v("ariaDropZoneColumnComponentDescription","Press DELETE to remove");f.push(u)}}setupTooltip(){let f=()=>{var v;return(v=this.tooltipFeature)==null?void 0:v.setTooltipAndRefresh(this.getTooltip())};f(),this.addManagedEventListeners({newColumnsLoaded:f})}getDragSourceId(){}getDefaultIconName(){return"notAllowed"}addDragSource(){let{beans:{dragAndDrop:f},eDragHandle:v}=this,u=this.createGetDragItem(),s=this.getDefaultIconName(),r={type:this.getDragSourceType(),sourceId:this.getDragSourceId(),eElement:v,getDefaultIconName:()=>s,getDragItem:u,dragItemName:this.getDisplayName()};f==null||f.addDragSource(r,!0),this.addDestroyFunc(()=>f==null?void 0:f.removeDragSource(r))}setupComponents(){this.setTextValue(),this.setupRemove(),this.ghost&&this.addCssClass("ag-column-drop-cell-ghost")}isRemovable(){return!0}refreshRemove(){(0,A._setDisplayed)(this.eButton,this.isRemovable())}setupRemove(){this.refreshRemove();let f={type:"columnRemove"};this.addGuiEventListener("keydown",u=>this.onKeyDown(u)),this.addManagedElementListeners(this.eButton,{click:u=>{this.dispatchLocalEvent(f),u.stopPropagation()}});let v=new A.TouchListener(this.eButton);this.addManagedListeners(v,{tap:()=>this.dispatchLocalEvent(f)}),this.addDestroyFunc(v.destroy.bind(v))}onKeyDown(f){f.key===A.KeyCode.DELETE&&this.isRemovable()&&(f.preventDefault(),this.dispatchLocalEvent({type:"columnRemove"}))}getDisplayValue(){return this.getDisplayName()}setTextValue(){let f=this.getDisplayValue(),v=(0,A._escapeString)(f);this.eText.innerHTML=v}addElementClasses(f,v){v=v?`-${v}`:"";let u=this.horizontal?"horizontal":"vertical";f.classList.add(`ag-column-drop-cell${v}`,`ag-column-drop-${u}-cell${v}`)}destroy(){super.destroy(),this.dragSourceDropTarget=null}}p.PillDragComp=F},7496:function(x,p){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.pillDropZonePanelCSS=void 0,p.pillDropZonePanelCSS=".ag-column-drop{align-items:center;display:inline-flex;overflow:auto;position:relative;width:100%}.ag-column-drop-list{align-items:center;display:flex}.ag-column-drop-cell{align-items:center;background-color:var(--ag-column-drop-cell-background-color);border:var(--ag-column-drop-cell-border);border-radius:500px;color:var(--ag-column-drop-cell-text-color);display:flex;padding:calc(var(--ag-spacing)*.25);position:relative;&:focus-visible{box-shadow:var(--ag-focus-shadow)}:where(.ag-drag-handle){color:var(--ag-column-drop-cell-drag-handle-color)}}:where(.ag-ltr) .ag-column-drop-cell{padding-left:calc(var(--ag-spacing)*.75)}:where(.ag-rtl) .ag-column-drop-cell{padding-right:calc(var(--ag-spacing)*.75)}.ag-column-drop-cell-text{flex:1 1 auto;margin:0 var(--ag-spacing);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ag-column-drop-vertical{align-items:stretch;display:flex;flex-direction:column;min-height:75px;overflow:hidden}.ag-column-drop-vertical-title-bar{align-items:center;display:flex;flex:none;padding:var(--ag-widget-container-vertical-padding) calc(var(--ag-spacing)*2) 0}.ag-column-drop-vertical-list{align-items:stretch;flex-direction:column;flex-grow:1;overflow-x:auto;padding-bottom:var(--ag-spacing);padding-left:var(--ag-spacing);padding-right:var(--ag-spacing);position:relative;>*{flex:none}}:where(.ag-column-drop-empty) .ag-column-drop-vertical-list{overflow:hidden}.ag-column-drop-vertical-empty-message{align-items:center;border:1px dashed;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}.ag-column-drop-cell-button{cursor:pointer;min-width:0;opacity:.75;&:hover{opacity:1}}.ag-column-drop-wrapper{display:flex}.ag-column-drop-horizontal-half-width{width:50%!important}.ag-column-drop-cell-ghost{opacity:.5}.ag-column-drop-horizontal{background-color:var(--ag-header-background-color);border-bottom:var(--ag-header-row-border);gap:var(--ag-cell-widget-spacing);height:var(--ag-header-height);overflow:hidden;white-space:nowrap}:where(.ag-ltr) .ag-column-drop-horizontal{padding-left:var(--ag-cell-horizontal-padding)}:where(.ag-rtl) .ag-column-drop-horizontal{padding-right:var(--ag-cell-horizontal-padding)}.ag-column-drop-horizontal-list{gap:var(--ag-cell-widget-spacing)}.ag-column-drop-vertical-cell{margin-top:var(--ag-spacing)}:where(.ag-ltr) .ag-column-drop-vertical-icon{margin-right:var(--ag-widget-horizontal-spacing)}:where(.ag-rtl) .ag-column-drop-vertical-icon{margin-left:var(--ag-widget-horizontal-spacing)}.ag-select-agg-func-popup{background:var(--ag-background-color);border:1px solid var(--ag-border-color);border-radius:var(--ag-border-radius);box-shadow:var(--ag-dropdown-shadow);height:calc(var(--ag-spacing)*5*3.5);padding:0;position:absolute}.ag-select-agg-func-virtual-list-item{cursor:default;&:hover{background-color:var(--ag-selected-row-background-color)}}:where(.ag-ltr) .ag-select-agg-func-virtual-list-item{padding-left:calc(var(--ag-spacing)*2)}:where(.ag-rtl) .ag-select-agg-func-virtual-list-item{padding-right:calc(var(--ag-spacing)*2)}:where(.ag-ltr) .ag-column-drop-horizontal-half-width:where(:not(:last-child)){border-right:1px solid var(--ag-border-color)}:where(.ag-rtl) .ag-column-drop-horizontal-half-width:where(:not(:last-child)){border-left:1px solid var(--ag-border-color)}"},9733:function(x,p,M){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.PillDropZonePanel=void 0;let A=M(6624),F=M(7496);function D(v,u,s){v==null||u==null||v.splice(s,0,...u)}class f extends A.Component{constructor(u){super('<div class="ag-unselectable" role="presentation"></div>'),this.horizontal=u,this.state="notDragging",this.guiDestroyFunctions=[],this.childPillComponents=[],this.resizeEnabled=!1,this.addElementClasses(this.getGui()),this.ePillDropList=document.createElement("div"),this.addElementClasses(this.ePillDropList,"list"),(0,A._setAriaRole)(this.ePillDropList,"listbox"),this.registerCSS(F.pillDropZonePanelCSS)}toggleResizable(u){this.positionableFeature.setResizable(u?{bottom:!0}:!1),this.resizeEnabled=u}isSourceEventFromTarget(u){let{dropZoneTarget:s,dragSource:r}=u;return s.contains(r.eElement)}destroy(){this.destroyGui(),super.destroy()}destroyGui(){this.guiDestroyFunctions.forEach(u=>u()),this.guiDestroyFunctions.length=0,this.childPillComponents.length=0,(0,A._clearElement)(this.getGui()),(0,A._clearElement)(this.ePillDropList)}init(u){this.params=u!=null?u:{},this.createManagedBean(new A.ManagedFocusFeature(this.getFocusableElement(),{onTabKeyDown:this.onTabKeyDown.bind(this),handleKeyDown:this.onKeyDown.bind(this)})),this.setupDropTarget(),this.positionableFeature=new A.PositionableFeature(this.getGui()),this.createManagedBean(this.positionableFeature),this.refreshGui(),(0,A._setAriaLabel)(this.ePillDropList,this.getAriaLabel())}onTabKeyDown(u){let s=(0,A._findFocusableElements)(this.getFocusableElement(),null,!0),r=s.length;if(r===0)return;let{shiftKey:d}=u,g=(0,A._getActiveDomElement)(this.beans),m=g===s[0],b=g===(0,A._last)(s);r===1||m&&d||b&&!d||s[d?0:r-1].focus()}onKeyDown(u){let{key:s}=u,r=!this.horizontal,d=s===A.KeyCode.DOWN,g=s===A.KeyCode.UP;if(!r){let b=this.gos.get("enableRtl");d=!b&&s===A.KeyCode.RIGHT||b&&s===A.KeyCode.LEFT,g=!b&&s===A.KeyCode.LEFT||b&&s===A.KeyCode.RIGHT}if(!d&&!g)return;let m=(0,A._findNextFocusableElement)(this.beans,this.getFocusableElement(),!1,g);m&&(u.preventDefault(),m.focus())}addElementClasses(u,s){s=s?`-${s}`:"";let r=this.horizontal?"horizontal":"vertical";u.classList.add(`ag-column-drop${s}`,`ag-column-drop-${r}${s}`)}setupDropTarget(){var u;this.dropTarget={getContainer:this.getGui.bind(this),getIconName:this.getIconName.bind(this),onDragging:this.onDragging.bind(this),onDragEnter:this.onDragEnter.bind(this),onDragLeave:this.onDragLeave.bind(this),onDragStop:this.onDragStop.bind(this),onDragCancel:this.onDragCancel.bind(this),isInterestedIn:this.isInterestedIn.bind(this)},(u=this.beans.dragAndDrop)==null||u.addDropTarget(this.dropTarget)}minimumAllowedNewInsertIndex(){return 0}checkInsertIndex(u){let s=this.getNewInsertIndex(u);if(s<0)return!1;let r=this.minimumAllowedNewInsertIndex(),d=Math.max(r,s),g=d!==this.insertIndex;return g&&(this.insertIndex=d),g}getNewInsertIndex(u){let s=u.event,r=this.horizontal?s.clientX:s.clientY,d=this.childPillComponents.map(m=>m.getGui().getBoundingClientRect()),g=d.findIndex(m=>this.horizontal?m.right>r&&m.left<r:m.top<r&&m.bottom>r);if(g===-1){let m=this.gos.get("enableRtl");return d.every(k=>r>(this.horizontal?k.right:k.bottom))?m&&this.horizontal?0:this.childPillComponents.length:d.every(k=>r<(this.horizontal?k.left:k.top))?m&&this.horizontal?this.childPillComponents.length:0:this.insertIndex}return this.insertIndex<=g?g+1:g}checkDragStartedBySelf(u){this.state==="notDragging"&&(this.state="rearrangeItems",this.potentialDndItems=this.getItems(u.dragSource.getDragItem()),this.refreshGui(),this.checkInsertIndex(u),this.refreshGui())}onDragging(u){this.checkDragStartedBySelf(u),this.checkInsertIndex(u)&&this.refreshGui()}handleDragEnterEnd(u){}onDragEnter(u){let s=this.getItems(u.dragSource.getDragItem());this.state="newItemsIn";let r=s.filter(g=>this.isItemDroppable(g,u)),d=r.every(g=>this.childPillComponents.map(m=>m.getItem()).indexOf(g)!==-1);if(r.length!==0){if(this.potentialDndItems=r,d){this.state="notDragging";return}this.handleDragEnterEnd(u),this.checkInsertIndex(u),this.refreshGui()}}isPotentialDndItems(){var u;return!!((u=this.potentialDndItems)!=null&&u.length)}handleDragLeaveEnd(u){}onDragLeave(u){if(this.state==="rearrangeItems"){let s=this.getItems(u.dragSource.getDragItem());this.removeItems(s)}this.isPotentialDndItems()&&(this.handleDragLeaveEnd(u),this.potentialDndItems=[],this.refreshGui()),this.state="notDragging"}onDragCancel(u){this.isPotentialDndItems()&&(this.state==="newItemsIn"&&this.handleDragLeaveEnd(u),this.potentialDndItems=[],this.refreshGui()),this.state="notDragging"}onDragStop(){this.isPotentialDndItems()&&(this.state==="newItemsIn"?this.addItems(this.potentialDndItems):this.rearrangeItems(this.potentialDndItems),this.potentialDndItems=[],this.refreshGui()),this.state="notDragging"}removeItems(u){let s=this.getExistingItems().filter(r=>!u.includes(r));this.updateItems(s)}addItems(u){if(!u)return;let s=this.getExistingItems().slice(),r=u.filter(d=>s.indexOf(d)<0);D(s,r,this.insertIndex),this.updateItems(s)}addItem(u){this.insertIndex=this.getExistingItems().length,this.addItems([u]),this.refreshGui()}rearrangeItems(u){let s=this.getNonGhostItems().slice();return D(s,u,this.insertIndex),(0,A._areEqual)(s,this.getExistingItems())?!1:(this.updateItems(s),!0)}refreshGui(){let u=this.ePillDropList.scrollTop,s=this.resizeEnabled,r=this.getFocusedItem(),{eGridDiv:d}=this.beans,g=(0,A._findNextFocusableElement)(this.beans,d);g||(g=(0,A._findNextFocusableElement)(this.beans,d,!1,!0)),this.toggleResizable(!1),this.destroyGui(),this.addIconAndTitleToGui(),this.addEmptyMessageToGui(),this.addItemsToGui(),this.horizontal||(this.ePillDropList.scrollTop=u),s&&this.toggleResizable(s),(0,A._isKeyboardMode)()&&this.restoreFocus(r,g)}getFocusedItem(){let u=this.getGui(),s=(0,A._getActiveDomElement)(this.beans);return u.contains(s)?Array.from(u.querySelectorAll(".ag-column-drop-cell")).indexOf(s):-1}restoreFocus(u,s){let r=this.getGui(),d=Array.from(r.querySelectorAll(".ag-column-drop-cell"));if(u===-1)return;d.length===0&&s.focus();let g=Math.min(d.length-1,u),m=d[g];m&&m.focus()}focusList(u){let s=u?this.childPillComponents.length-1:0;this.restoreFocus(s,this.getFocusableElement())}getNonGhostItems(){let u=this.getExistingItems();return this.isPotentialDndItems()?u.filter(s=>!this.potentialDndItems.includes(s)):u}addItemsToGui(){let s=this.getNonGhostItems().map(r=>this.createItemComponent(r,!1));if(this.isPotentialDndItems()){let r=this.potentialDndItems.map(d=>this.createItemComponent(d,!0));this.insertIndex>=s.length?s.push(...r):s.splice(this.insertIndex,0,...r)}this.appendChild(this.ePillDropList),s.forEach((r,d)=>{d>0&&this.addArrow(this.ePillDropList),this.ePillDropList.appendChild(r.getGui())}),this.addAriaLabelsToComponents()}addAriaLabelsToComponents(){this.childPillComponents.forEach((u,s)=>{let r=u.getGui();(0,A._setAriaPosInSet)(r,s+1),(0,A._setAriaSetSize)(r,this.childPillComponents.length)})}createItemComponent(u,s){let r=this.createPillComponent(u,this.dropTarget,s,this.horizontal);return r.addEventListener("columnRemove",this.removeItems.bind(this,[u])),this.createBean(r),this.guiDestroyFunctions.push(()=>this.destroyBean(r)),s||this.childPillComponents.push(r),r}addIconAndTitleToGui(){let{title:u,icon:s}=this.params;if(!u||!s)return;let r=document.createElement("div");if((0,A._setAriaHidden)(r,!0),this.addElementClasses(r,"title-bar"),this.addElementClasses(s,"icon"),this.addOrRemoveCssClass("ag-column-drop-empty",this.isExistingItemsEmpty()),r.appendChild(s),!this.horizontal){let d=document.createElement("span");this.addElementClasses(d,"title"),d.innerHTML=u,r.appendChild(d)}this.appendChild(r)}isExistingItemsEmpty(){return this.getExistingItems().length===0}addEmptyMessageToGui(){let{emptyMessage:u}=this.params;if(!u||!this.isExistingItemsEmpty()||this.isPotentialDndItems())return;let s=document.createElement("span");s.innerHTML=u,this.addElementClasses(s,"empty-message"),this.ePillDropList.appendChild(s)}addArrow(u){if(this.horizontal){let s=this.gos.get("enableRtl"),r=(0,A._createIconNoSpan)(s?"panelDelimiterRtl":"panelDelimiter",this.beans);this.addElementClasses(r,"cell-separator"),u.appendChild(r)}}}p.PillDropZonePanel=f},5875:function(x,p,M){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.TabbedLayout=void 0;let A=M(6624),F=M(6242);function D(v){return`<div class="ag-tabs ${v}">
        <div data-ref="eHeader"></div>
        <div data-ref="eBody" role="presentation" class="ag-tabs-body ${v?`${v}-body`:""}"></div>
    </div>`}class f extends A.TabGuardComp{constructor(u){super(D(u.cssClass)),this.eHeader=A.RefPlaceholder,this.eBody=A.RefPlaceholder,this.items=[],this.tabbedItemScrollMap=new Map,this.params=u}postConstruct(){this.setupHeader(),this.params.items&&this.params.items.forEach(u=>this.addItem(u)),this.initialiseTabGuard({onTabKeyDown:this.onTabKeyDown.bind(this),handleKeyDown:this.handleKeyDown.bind(this),focusInnerElement:this.focusInnerElement.bind(this),focusTrapActive:!0}),this.addDestroyFunc(()=>{var u,s,r;return(r=(s=(u=this.activeItem)==null?void 0:u.tabbedItem)==null?void 0:s.afterDetachedCallback)==null?void 0:r.call(s)})}setupHeader(){let{enableCloseButton:u,cssClass:s}=this.params,r=(d,g)=>{d.classList.add(`ag-tabs-${g}`),s&&d.classList.add(`${s}-${g}`)};u?(this.setupCloseButton(r),this.eTabHeader=(0,A._getDocument)(this.beans).createElement("div"),r(this.eHeader,"header-wrapper"),(0,A._setAriaRole)(this.eHeader,"presentation"),this.eHeader.appendChild(this.eTabHeader)):this.eTabHeader=this.eHeader,(0,A._setAriaRole)(this.eTabHeader,"tablist"),r(this.eTabHeader,"header")}setupCloseButton(u){let s=(0,A._getDocument)(this.beans),r=s.createElement("button");u(r,"close-button");let d=(0,A._createIconNoSpan)("close",this.beans);(0,A._setAriaLabel)(r,this.params.closeButtonAriaLabel),r.appendChild(d),this.addManagedElementListeners(r,{click:()=>{var m,b;return(b=(m=this.params).onCloseClicked)==null?void 0:b.call(m)}});let g=s.createElement("div");u(g,"close-button-wrapper"),(0,A._setAriaRole)(g,"presentation"),g.appendChild(r),this.eHeader.appendChild(g),this.eCloseButton=r}handleKeyDown(u){switch(u.key){case A.KeyCode.RIGHT:case A.KeyCode.LEFT:{if(!this.eTabHeader.contains((0,A._getActiveDomElement)(this.beans)))return;let s=u.key===A.KeyCode.RIGHT,r=this.gos.get("enableRtl"),d=this.items.indexOf(this.activeItem),g=s!==r?Math.min(d+1,this.items.length-1):Math.max(d-1,0);if(d===g)return;u.preventDefault();let m=this.items[g];this.showItemWrapper(m),m.eHeaderButton.focus();break}case A.KeyCode.UP:case A.KeyCode.DOWN:u.stopPropagation();break}}onTabKeyDown(u){var G,U,X,Q;if(u.defaultPrevented)return;let{beans:s,eHeader:r,eBody:d,activeItem:g,params:m}=this,{suppressTrapFocus:b,enableCloseButton:w}=m,k=(0,A._getActiveDomElement)(s),R=u.target,T=u.shiftKey;if(r.contains(k)){u.preventDefault(),w&&T&&!((G=this.eCloseButton)!=null&&G.contains(k))?(U=this.eCloseButton)==null||U.focus():b&&T?(X=(0,F.findFocusableElementBeforeTabGuard)((0,A._getDocument)(s).body,R))==null||X.focus():this.focusBody(u.shiftKey);return}let z=null;if((0,F.isTargetUnderManagedComponent)(d,R)&&(T&&(z=(0,F.findFocusableElementBeforeTabGuard)(d,R)),!z&&!b&&(z=g.eHeaderButton)),!z&&d.contains(k)&&(z=(0,A._findNextFocusableElement)(s,d,!1,T),!z)){b&&!T?this.forceFocusOutOfContainer(T):w&&!T?(u.preventDefault(),(Q=this.eCloseButton)==null||Q.focus()):(u.preventDefault(),this.focusHeader());return}z&&(u.preventDefault(),z.focus())}focusInnerElement(u){u?this.focusBody(!0):this.focusHeader()}focusHeader(u){this.activeItem.eHeaderButton.focus({preventScroll:u})}focusBody(u){(0,A._focusInto)(this.eBody,u)}setAfterAttachedParams(u){this.afterAttachedParams=u}showFirstItem(){this.items.length>0&&this.showItemWrapper(this.items[0])}addItem(u){let s=document.createElement("span");(0,A._setAriaRole)(s,"tab"),s.setAttribute("tabindex","-1"),s.appendChild(u.title),s.classList.add("ag-tab"),this.eTabHeader.appendChild(s),(0,A._setAriaLabel)(s,u.titleLabel);let r={tabbedItem:u,eHeaderButton:s};this.items.push(r),s.addEventListener("click",this.showItemWrapper.bind(this,r))}showItem(u){let s=this.items.find(r=>r.tabbedItem===u);s&&this.showItemWrapper(s)}showItemWrapper(u){var d,g,m,b,w,k;let{tabbedItem:s,eHeaderButton:r}=u;if((g=(d=this.params).onItemClicked)==null||g.call(d,{item:s}),this.activeItem===u){(b=(m=this.params).onActiveItemClicked)==null||b.call(m);return}this.lastScrollListener&&(this.lastScrollListener=this.lastScrollListener()),(0,A._clearElement)(this.eBody),s.bodyPromise.then(R=>{this.eBody.appendChild(R);let T=!(0,A._isKeyboardMode)();if(this.params.suppressFocusBodyOnOpen||(0,A._focusInto)(this.eBody,!1,T),s.afterAttachedCallback&&s.afterAttachedCallback(this.afterAttachedParams),this.params.keepScrollPosition){let z=s.getScrollableContainer&&s.getScrollableContainer()||R;[this.lastScrollListener]=this.addManagedElementListeners(z,{scroll:()=>{this.tabbedItemScrollMap.set(s.name,z.scrollTop)}});let G=this.tabbedItemScrollMap.get(s.name);G!==void 0&&setTimeout(()=>{z.scrollTop=G},0)}}),this.activeItem&&(this.activeItem.eHeaderButton.classList.remove("ag-tab-selected"),(k=(w=this.activeItem.tabbedItem).afterDetachedCallback)==null||k.call(w)),r.classList.add("ag-tab-selected"),this.activeItem=u}}p.TabbedLayout=f},7904:function(x,p,M){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.VirtualList=void 0;let A=M(6624);function F(f){return`<div class="ag-virtual-list-viewport ag-${f}-virtual-list-viewport" role="presentation">
            <div class="ag-virtual-list-container ag-${f}-virtual-list-container" data-ref="eContainer"></div>
        </div>`}class D extends A.TabGuardComp{wireBeans(v){this.environment=v.environment}constructor(v){super(F((v==null?void 0:v.cssIdentifier)||"default")),this.renderedRows=new Map,this.rowHeight=20,this.pageSize=-1,this.isScrolling=!1,this.isHeightFromTheme=!0,this.eContainer=A.RefPlaceholder,this.awaitStableCallbacks=[];let{cssIdentifier:u="default",ariaRole:s="listbox",listName:r}=v||{};this.cssIdentifier=u,this.ariaRole=s,this.listName=r}postConstruct(){this.addScrollListener(),this.rowHeight=this.getItemHeight(),this.addResizeObserver(),this.initialiseTabGuard({onFocusIn:v=>this.onFocusIn(v),onFocusOut:v=>this.onFocusOut(v),focusInnerElement:v=>this.focusInnerElement(v),onTabKeyDown:v=>this.onTabKeyDown(v),handleKeyDown:v=>this.handleKeyDown(v)}),this.setAriaProperties(),this.addManagedEventListeners({gridStylesChanged:this.onGridStylesChanged.bind(this)})}onGridStylesChanged(v){v.listItemHeightChanged&&(this.rowHeight=this.getItemHeight(),this.refresh())}setAriaProperties(){let u=this.getLocaleTextFunc()("ariaDefaultListName",this.listName||"List"),s=this.eContainer;(0,A._setAriaRole)(s,this.ariaRole),(0,A._setAriaLabel)(s,u)}addResizeObserver(){let v=()=>(0,A._requestAnimationFrame)(this.beans,()=>this.drawVirtualRows()),u=(0,A._observeResize)(this.beans,this.getGui(),v);this.addDestroyFunc(u)}focusInnerElement(v){this.focusRow(v?this.model.getRowCount()-1:0)}onFocusIn(v){let u=v.target;u.classList.contains("ag-virtual-list-item")&&(this.lastFocusedRowIndex=(0,A._getAriaPosInSet)(u)-1)}onFocusOut(v){this.getFocusableElement().contains(v.relatedTarget)||(this.lastFocusedRowIndex=null)}handleKeyDown(v){switch(v.key){case A.KeyCode.UP:case A.KeyCode.DOWN:v.preventDefault(),this.navigate(v.key===A.KeyCode.UP);break;case A.KeyCode.PAGE_HOME:case A.KeyCode.PAGE_END:case A.KeyCode.PAGE_UP:case A.KeyCode.PAGE_DOWN:this.navigateToPage(v.key)!==null&&v.preventDefault();break}}onTabKeyDown(v){(0,A._stopPropagationForAgGrid)(v),this.forceFocusOutOfContainer(v.shiftKey)}navigate(v){if(this.lastFocusedRowIndex==null)return;let u=this.lastFocusedRowIndex+(v?-1:1);u<0||u>=this.model.getRowCount()||this.focusRow(u)}navigateToPage(v,u="focused"){let s=!1;u==="focused"&&(u=this.getLastFocusedRow(),s=!0);let r=this.model.getRowCount()-1,d=-1;return v===A.KeyCode.PAGE_HOME?d=0:v===A.KeyCode.PAGE_END?d=r:v===A.KeyCode.PAGE_DOWN?d=Math.min(u+this.pageSize,r):v===A.KeyCode.PAGE_UP&&(d=Math.max(u-this.pageSize,0)),d===-1?null:(s?this.focusRow(d):this.ensureIndexVisible(d),d)}getLastFocusedRow(){return this.lastFocusedRowIndex}focusRow(v){this.isScrolling||(this.isScrolling=!0,this.ensureIndexVisible(v),(0,A._requestAnimationFrame)(this.beans,()=>{if(this.isScrolling=!1,!this.isAlive())return;let u=this.renderedRows.get(v);u&&u.eDiv.focus()}))}getComponentAt(v){let u=this.renderedRows.get(v);return u&&u.rowComponent}forEachRenderedRow(v){this.renderedRows.forEach((u,s)=>v(u.rowComponent,s))}getItemHeight(){return this.isHeightFromTheme?this.environment.getDefaultListItemHeight():this.rowHeight}ensureIndexVisible(v,u=!0){let s=this.model.getRowCount();if(typeof v!="number"||v<0||v>=s)return(0,A._warn)(229,{index:v}),!1;let r=v*this.rowHeight,d=r+this.rowHeight,g=this.getGui(),m=g.scrollTop,b=g.offsetHeight,w=m+b,k=u?0:this.rowHeight,R=m>r+k,T=w<d-k;if(R)return g.scrollTop=r,!0;if(T){let z=d-b;return g.scrollTop=z,!0}return!1}setComponentCreator(v){this.componentCreator=v}setComponentUpdater(v){this.componentUpdater=v}getRowHeight(){return this.rowHeight}getScrollTop(){return this.getGui().scrollTop}setRowHeight(v){this.isHeightFromTheme=!1,this.rowHeight=v,this.refresh()}refresh(v){if(this.model==null||!this.isAlive())return;let u=this.model.getRowCount();this.eContainer.style.height=`${u*this.rowHeight}px`,this.awaitStable(()=>{this.isAlive()&&(this.canSoftRefresh(v)?this.drawVirtualRows(!0):(this.clearVirtualRows(),this.drawVirtualRows()))})}awaitStable(v){if(this.awaitStableCallbacks.push(v),this.awaitStableCallbacks.length>1)return;let u=this.model.getRowCount();(0,A._waitUntil)(()=>this.eContainer.clientHeight>=u*this.rowHeight,()=>{if(!this.isAlive())return;let s=this.awaitStableCallbacks;this.awaitStableCallbacks=[],s.forEach(r=>r())})}canSoftRefresh(v){return!!(v&&this.renderedRows.size&&typeof this.model.areRowsEqual=="function"&&this.componentUpdater)}clearVirtualRows(){this.renderedRows.forEach((v,u)=>this.removeRow(u))}drawVirtualRows(v){if(!this.isAlive()||!this.model)return;let u=this.getGui(),s=u.scrollTop,r=s+u.offsetHeight,d=Math.floor(s/this.rowHeight),g=Math.floor(r/this.rowHeight);this.pageSize=Math.floor((r-s)/this.rowHeight),this.ensureRowsRendered(d,g,v)}ensureRowsRendered(v,u,s){this.renderedRows.forEach((r,d)=>{(d<v||d>u)&&d!==this.lastFocusedRowIndex&&this.removeRow(d)}),s&&this.refreshRows();for(let r=v;r<=u;r++)this.renderedRows.has(r)||r<this.model.getRowCount()&&this.insertRow(r)}insertRow(v){let u=this.model.getRow(v),s=document.createElement("div");s.classList.add("ag-virtual-list-item",`ag-${this.cssIdentifier}-virtual-list-item`),(0,A._setAriaRole)(s,this.ariaRole==="tree"?"treeitem":"option"),(0,A._setAriaSetSize)(s,this.model.getRowCount()),(0,A._setAriaPosInSet)(s,v+1),s.setAttribute("tabindex","-1"),s.style.height=`${this.rowHeight}px`,s.style.top=`${this.rowHeight*v}px`;let r=this.componentCreator(u,s);r.addGuiEventListener("focusin",()=>this.lastFocusedRowIndex=v),s.appendChild(r.getGui()),this.renderedRows.has(v-1)?this.renderedRows.get(v-1).eDiv.insertAdjacentElement("afterend",s):this.renderedRows.has(v+1)?this.renderedRows.get(v+1).eDiv.insertAdjacentElement("beforebegin",s):this.eContainer.appendChild(s),this.renderedRows.set(v,{rowComponent:r,eDiv:s,value:u})}removeRow(v){let u=this.renderedRows.get(v);this.eContainer.removeChild(u.eDiv),this.destroyBean(u.rowComponent),this.renderedRows.delete(v)}refreshRows(){let v=this.model.getRowCount();this.renderedRows.forEach((u,s)=>{var r,d;if(s>=v)this.removeRow(s);else{let g=this.model.getRow(s);(d=(r=this.model).areRowsEqual)!=null&&d.call(r,u.value,g)?this.componentUpdater(g,u.rowComponent):this.removeRow(s)}})}addScrollListener(){this.addGuiEventListener("scroll",()=>this.drawVirtualRows(),{passive:!0})}setModel(v){this.model=v}getAriaElement(){return this.eContainer}destroy(){this.isAlive()&&(this.clearVirtualRows(),this.awaitStableCallbacks.length=0,super.destroy())}}p.VirtualList=D},6624:function(x){var tR,_k;var p=Object.defineProperty,M=Object.getOwnPropertyDescriptor,A=Object.getOwnPropertyNames,F=Object.prototype.hasOwnProperty,D=(i,o)=>{for(var C in o)p(i,C,{get:o[C],enumerable:!0})},f=(i,o,C,P)=>{if(o&&typeof o=="object"||typeof o=="function")for(let B of A(o))!F.call(i,B)&&B!==C&&p(i,B,{get:()=>o[B],enumerable:!(P=M(o,B))||P.enumerable});return i},v=i=>f(p({},"__esModule",{value:!0}),i),u={};D(u,{ALWAYS_SYNC_GLOBAL_EVENTS:()=>Ud,AbstractClientSideNodeManager:()=>bp,AgAbstractInputField:()=>ld,AgAbstractLabel:()=>FI,AgCheckbox:()=>pb,AgCheckboxSelector:()=>ao,AgColumn:()=>gl,AgColumnGroup:()=>ZA,AgInputDateField:()=>BI,AgInputNumberField:()=>bv,AgInputNumberFieldSelector:()=>Ql,AgInputTextArea:()=>Cp,AgInputTextField:()=>Bd,AgInputTextFieldSelector:()=>Gm,AgPickerField:()=>uD,AgPromise:()=>js,AgProvidedColumnGroup:()=>Ic,AgRadioButton:()=>_x,AgSelect:()=>Nx,AgSelectSelector:()=>hg,AgToggleButton:()=>Au,AgToggleButtonSelector:()=>yv,AlignedGridsModule:()=>S1,AllCommunityModule:()=>rC,AutoScrollService:()=>Lm,BaseColsService:()=>fa,BaseComponentWrapper:()=>vS,BaseCreator:()=>jv,BaseGridSerializingSession:()=>jb,BaseSelectionService:()=>mb,BeanStub:()=>ei,CellApiModule:()=>RM,CellRangeType:()=>D0,CellStyleModule:()=>oC,ChangedPath:()=>Kd,CheckboxEditorModule:()=>ak,ClientSideRowModelApiModule:()=>Nu,ClientSideRowModelModule:()=>vk,ColumnApiModule:()=>Lh,ColumnAutoSizeModule:()=>$T,ColumnHoverModule:()=>Ok,ColumnKeyCreator:()=>i0,Component:()=>On,CssClassManager:()=>ag,CsvExportModule:()=>k1,CustomEditorModule:()=>rk,CustomFilterModule:()=>QM,DateEditorModule:()=>nk,DateFilterModule:()=>h1,DragAndDropModule:()=>vb,DragSourceType:()=>Pm,EventApiModule:()=>Xp,ExternalFilterModule:()=>TT,FakeHScrollComp:()=>Rx,FakeVScrollComp:()=>hn,FilterWrapperComp:()=>_m,GROUP_AUTO_COLUMN_ID:()=>vu,GridBodyCtrl:()=>Tx,GridCoreCreator:()=>e1,GridCtrl:()=>jx,GridHeaderCtrl:()=>ku,GridStateModule:()=>Mk,GroupInstanceIdCreator:()=>ys,HeaderRowContainerCtrl:()=>Vr,HighlightChangesModule:()=>xk,InfiniteRowModelModule:()=>kf,KeyCode:()=>Qt,LargeTextEditorModule:()=>ok,LocalEventService:()=>s,LocaleModule:()=>QS,LocaleService:()=>OM,ManagedFocusFeature:()=>Eh,ModuleRegistry:()=>_n,NumberEditorModule:()=>lc,NumberFilterModule:()=>Gp,PaginationModule:()=>Qd,PinnedRowModule:()=>Rk,PopupComponent:()=>Sv,PositionableFeature:()=>QA,ProvidedFilter:()=>Ax,QuickFilterModule:()=>IT,RefPlaceholder:()=>Ri,RenderApiModule:()=>Yp,RowApiModule:()=>Bu,RowAutoHeightModule:()=>Tf,RowContainerCtrl:()=>cg,RowDragModule:()=>L0,RowNode:()=>Xo,RowSelectionModule:()=>Fg,RowStyleModule:()=>ZS,ScrollApiModule:()=>Kp,SelectEditorModule:()=>Qb,ServerSideTransactionResultStatus:()=>$l,TabGuardClassNames:()=>zx,TabGuardComp:()=>Bx,TabGuardCtrl:()=>Cv,TabGuardFeature:()=>hD,TextEditorModule:()=>qr,TextFilterModule:()=>DS,TooltipFeature:()=>Du,TooltipModule:()=>_1,TouchListener:()=>qs,UndoRedoEditModule:()=>mn,ValidationModule:()=>CS,ValueCacheModule:()=>ZD,VanillaFrameworkOverrides:()=>E0,_ALL_EVENTS:()=>LM,_ALL_GRID_OPTIONS:()=>FM,_BOOLEAN_MIXED_GRID_OPTIONS:()=>kg,_ColumnFilterModule:()=>rc,_ColumnGroupModule:()=>H0,_ColumnMoveModule:()=>YI,_CsrmSsrmSharedApiModule:()=>C1,_DragModule:()=>yD,_EditCoreModule:()=>Fu,_EmptyArray:()=>Ta,_EmptyBean:()=>Ch,_FOCUS_MANAGED_CLASS:()=>JA,_FilterCoreModule:()=>_u,_FilterValueModule:()=>hr,_HorizontalResizeModule:()=>kv,_KeyboardNavigationModule:()=>VD,_PUBLIC_EVENTS:()=>t1,_PopupModule:()=>Eg,_ROW_ID_PREFIX_ROW_GROUP:()=>ib,_SharedDragAndDropModule:()=>yb,_SharedExportModule:()=>Mf,_SharedMenuModule:()=>Ms,_SharedRowSelectionModule:()=>y1,_SortModule:()=>IM,_SsrmInfiniteSharedApiModule:()=>OS,_addColumnDefaultAndTypes:()=>ov,_addFocusableContainerListener:()=>pa,_anchorElementToMouseMoveEvent:()=>Sm,_applyColumnState:()=>td,_areCellsEqual:()=>Ki,_areColIdsEqual:()=>Rn,_areEqual:()=>tg,_asThemeImpl:()=>hd,_bindCellRendererToHtmlElement:()=>Lo,_canSkipShowingRowGroup:()=>tv,_clearElement:()=>Ke,_columnsMatch:()=>cr,_combineAttributesAndGridOptions:()=>ho,_convertColumnEventSourceType:()=>ml,_createCellId:()=>tb,_createColumnTree:()=>Gs,_createGlobalRowEvent:()=>nb,_createIcon:()=>sd,_createIconNoSpan:()=>za,_debounce:()=>zr,_defaultComparator:()=>Td,_destroyColumnTree:()=>Am,_doOnce:()=>kc,_downloadFile:()=>a1,_errMsg:()=>ar,_error:()=>Ea,_escapeString:()=>ql,_exists:()=>Ai,_findFocusableElements:()=>sg,_findNextFocusableElement:()=>mi,_findTabbableParent:()=>Wn,_focusGridInnerElement:()=>ns,_focusInto:()=>Cu,_focusNextGridCoreContainer:()=>Cs,_formatNumberCommas:()=>cf,_fuzzySuggestions:()=>pd,_getAbsoluteHeight:()=>$t,_getAbsoluteWidth:()=>nn,_getActiveDomElement:()=>Fa,_getAriaPosInSet:()=>T,_getCallbackForEvent:()=>un,_getCellByPosition:()=>Eo,_getCellCtrlForEventTarget:()=>Jy,_getCellPositionForEvent:()=>Ss,_getCellRendererDetails:()=>Yy,_getCheckboxLocation:()=>Wa,_getCheckboxes:()=>ed,_getClientSideRowModel:()=>qd,_getColumnsFromTree:()=>av,_getDefaultFloatingFilterType:()=>tD,_getDocument:()=>Ao,_getEditorRendererDetails:()=>UA,_getFillHandle:()=>JC,_getFilterDetails:()=>yu,_getFloatingFilterCompDetails:()=>yx,_getFloatingFiltersHeight:()=>va,_getGlobalGridOption:()=>Js,_getGrandTotalRow:()=>IP,_getGridRegisteredModules:()=>ha,_getGroupAggFiltering:()=>wm,_getGroupSelection:()=>gh,_getGroupSelectsDescendants:()=>By,_getGroupTotalRowCallback:()=>TP,_getHeaderCheckbox:()=>Hl,_getHeaderClassesFromColDef:()=>Ka,_getHeaderRowCount:()=>x0,_getInnerCellRendererDetails:()=>px,_getInnerHeight:()=>$n,_getInnerWidth:()=>to,_getIsRowSelectable:()=>up,_getLocaleTextFunc:()=>d,_getMaxConcurrentDatasourceRequests:()=>ox,_getNormalisedMousePosition:()=>h0,_getPageBody:()=>zy,_getRootNode:()=>Jf,_getRowContainerOptions:()=>fv,_getRowHeightAsNumber:()=>hh,_getRowHeightForNode:()=>uh,_getRowIdCallback:()=>ev,_getRowNode:()=>hv,_getRowSelectionMode:()=>Uo,_getServerSideRowModel:()=>mS,_getShouldDisplayTooltip:()=>or,_getSuppressMultiRanges:()=>rx,_getToolPanelClassesFromColDef:()=>d0,_isAnimateRows:()=>jn,_isCellSelectionEnabled:()=>Dr,_isClientSideRowModel:()=>_o,_isColumnMenuAnchoringEnabled:()=>Wl,_isColumnsSortingCoupledToGroup:()=>hl,_isDomLayout:()=>Fo,_isElementInEventPath:()=>Vn,_isEventFromPrintableCharacter:()=>Cl,_isGetRowHeightFunction:()=>Ns,_isGroupMultiAutoColumn:()=>pI,_isGroupRowsSticky:()=>Hi,_isGroupUseEntireRow:()=>ax,_isIOSUserAgent:()=>Tn,_isKeyboardMode:()=>hi,_isLegacyMenuEnabled:()=>mr,_isMultiRowSelection:()=>Mm,_isNodeOrElement:()=>xc,_isNothingFocused:()=>Ui,_isPromise:()=>Ul,_isRowBefore:()=>g0,_isRowSelection:()=>Ec,_isSameRow:()=>aa,_isServerSideRowModel:()=>Jc,_isShowTooltipWhenTruncated:()=>rs,_isStopPropagationForAgGrid:()=>Zi,_isUsingNewCellSelectionAPI:()=>QC,_isUsingNewRowSelectionAPI:()=>$C,_isVisible:()=>ht,_jsonEquals:()=>Id,_last:()=>Sa,_loadTemplate:()=>Gt,_makeNull:()=>cl,_mergeDeep:()=>Ko,_missing:()=>Qn,_observeResize:()=>Qr,_parseDateTimeFromString:()=>Jl,_preInitErrMsg:()=>Dc,_processOnChange:()=>fu,_radioCssClass:()=>rn,_removeAriaExpanded:()=>Ye,_removeAriaSort:()=>tt,_removeFromArray:()=>qo,_removeFromParent:()=>pt,_requestAnimationFrame:()=>pp,_resetColumnState:()=>hp,_serialiseDate:()=>os,_setAriaActiveDescendant:()=>Ie,_setAriaChecked:()=>ut,_setAriaColCount:()=>Oe,_setAriaColIndex:()=>Ve,_setAriaColSpan:()=>Ue,_setAriaControls:()=>Mt,_setAriaDescribedBy:()=>X,_setAriaDisabled:()=>ye,_setAriaExpanded:()=>ze,_setAriaHidden:()=>ke,_setAriaLabel:()=>G,_setAriaLabelledBy:()=>U,_setAriaLevel:()=>fe,_setAriaPosInSet:()=>Te,_setAriaRole:()=>k,_setAriaRowCount:()=>Ne,_setAriaRowIndex:()=>Re,_setAriaSelected:()=>at,_setAriaSetSize:()=>xe,_setAriaSort:()=>Ee,_setColMenuVisible:()=>as,_setDisabled:()=>la,_setDisplayed:()=>Un,_setFixedWidth:()=>Cn,_setVisible:()=>Ls,_shouldDisplayTooltip:()=>Vm,_shouldUpdateColVisibilityAfterGroup:()=>_A,_stopPropagationForAgGrid:()=>Br,_toStringOrNull:()=>Oo,_unwrapUserComp:()=>xh,_updateColsMap:()=>es,_updateColumnState:()=>cx,_waitUntil:()=>Fs,_warn:()=>pi,_warnOnce:()=>Jr,checkboxStyleDefault:()=>Db,colorSchemeDark:()=>lT,colorSchemeDarkBlue:()=>Cg,colorSchemeDarkWarm:()=>hM,colorSchemeLight:()=>uM,colorSchemeLightCold:()=>Ib,colorSchemeLightWarm:()=>Eb,colorSchemeVariable:()=>Fv,createGrid:()=>bL,createPart:()=>To,createTheme:()=>Ab,iconOverrides:()=>pM,iconSetAlpine:()=>Ep,iconSetMaterial:()=>uL,iconSetQuartz:()=>wg,iconSetQuartzBold:()=>Nv,iconSetQuartzLight:()=>vM,iconSetQuartzRegular:()=>FD,inputStyleBase:()=>ND,inputStyleBordered:()=>tS,inputStyleUnderlined:()=>zD,isColumn:()=>na,isColumnGroup:()=>Io,isColumnGroupAutoCol:()=>Yo,isColumnSelectionCol:()=>Tc,isProvidedColumnGroup:()=>Bs,provideGlobalGridOptions:()=>sf,tabStyleAlpine:()=>$m,tabStyleBase:()=>BD,tabStyleMaterial:()=>Zm,tabStyleQuartz:()=>Ru,tabStyleRolodex:()=>Fh,themeAlpine:()=>nS,themeBalham:()=>Ip,themeQuartz:()=>Pu}),x.exports=v(u);var 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(i){this.frameworkOverrides=i}getListeners(i,o,C){let P=o?this.allAsyncListeners:this.allSyncListeners,B=P.get(i);return!B&&C&&(B=new Set,P.set(i,B)),B}noRegisteredListenersExist(){return this.allSyncListeners.size===0&&this.allAsyncListeners.size===0&&this.globalSyncListeners.size===0&&this.globalAsyncListeners.size===0}addEventListener(i,o,C=!1){this.getListeners(i,C,!0).add(o)}removeEventListener(i,o,C=!1){let P=this.getListeners(i,C,!1);P&&(P.delete(o),P.size===0&&(C?this.allAsyncListeners:this.allSyncListeners).delete(i))}addGlobalListener(i,o=!1){(o?this.globalAsyncListeners:this.globalSyncListeners).add(i)}removeGlobalListener(i,o=!1){(o?this.globalAsyncListeners:this.globalSyncListeners).delete(i)}dispatchEvent(i){let o=i;this.dispatchToListeners(o,!0),this.dispatchToListeners(o,!1),this.firedEvents[o.type]=!0}dispatchEventOnce(i){this.firedEvents[i.type]||this.dispatchEvent(i)}dispatchToListeners(i,o){var ie;let C=i.type;if(o&&"event"in i){let ue=i.event;ue instanceof Event&&(i.eventPath=ue.composedPath())}let P=(ue,De)=>ue.forEach(_e=>{if(!De.has(_e))return;let Be=this.frameworkOverrides?()=>this.frameworkOverrides.wrapIncoming(()=>_e(i)):()=>_e(i);o?this.dispatchAsync(Be):Be()}),B=(ie=this.getListeners(C,o,!1))!=null?ie:new Set,W=new Set(B);W.size>0&&P(W,B),new Set(o?this.globalAsyncListeners:this.globalSyncListeners).forEach(ue=>{let De=this.frameworkOverrides?()=>this.frameworkOverrides.wrapIncoming(()=>ue(C,i)):()=>ue(C,i);o?this.dispatchAsync(De):De()})}dispatchAsync(i){if(this.asyncFunctionsQueue.push(i),!this.scheduled){let o=()=>{window.setTimeout(this.flushAsyncQueue.bind(this),0)};this.frameworkOverrides?this.frameworkOverrides.wrapIncoming(o):o(),this.scheduled=!0}}flushAsyncQueue(){this.scheduled=!1;let i=this.asyncFunctionsQueue.slice();this.asyncFunctionsQueue=[],i.forEach(o=>o())}};function r(i,o){return o}function d(i){var o;return(o=i==null?void 0:i.getLocaleTextFunc())!=null?o:r}function g(i,o,C){C==null||typeof C=="string"&&C==""?b(i,o):m(i,o,C)}function m(i,o,C){i.setAttribute(w(o),C.toString())}function b(i,o){i.removeAttribute(w(o))}function w(i){return`aria-${i}`}function k(i,o){o?i.setAttribute("role",o):i.removeAttribute("role")}function R(i){let o;return i==="asc"?o="ascending":i==="desc"?o="descending":i==="mixed"?o="other":o="none",o}function T(i){return parseInt(i.getAttribute("aria-posinset"),10)}function z(i){return i.getAttribute("aria-label")}function G(i,o){g(i,"label",o)}function U(i,o){g(i,"labelledby",o)}function X(i,o){g(i,"describedby",o)}function Q(i,o){g(i,"live",o)}function oe(i,o){g(i,"atomic",o)}function le(i,o){g(i,"relevant",o)}function fe(i,o){g(i,"level",o)}function ye(i,o){g(i,"disabled",o)}function ke(i,o){g(i,"hidden",o)}function Ie(i,o){g(i,"activedescendant",o)}function ze(i,o){m(i,"expanded",o)}function Ye(i){b(i,"expanded")}function xe(i,o){m(i,"setsize",o)}function Te(i,o){m(i,"posinset",o)}function Ae(i,o){m(i,"multiselectable",o)}function Ne(i,o){m(i,"rowcount",o)}function Re(i,o){m(i,"rowindex",o)}function Oe(i,o){m(i,"colcount",o)}function Ve(i,o){m(i,"colindex",o)}function Ue(i,o){m(i,"colspan",o)}function Ee(i,o){m(i,"sort",o)}function tt(i){b(i,"sort")}function at(i,o){g(i,"selected",o)}function ut(i,o){m(i,"checked",o===void 0?"mixed":o)}function Mt(i,o){g(i,"controls",o.id),U(o,i.id)}function St(i,o){return o===void 0?i("ariaIndeterminate","indeterminate"):o===!0?i("ariaChecked","checked"):i("ariaUnchecked","unchecked")}var ft,kt,Et,Yt,Tt,Ft,Bt,Xt;function ii(){return ft===void 0&&(ft=/^((?!chrome|android).)*safari/i.test(navigator.userAgent)),ft}function Ci(){if(kt===void 0){let i=window;kt=!!i.chrome&&(!!i.chrome.webstore||!!i.chrome.runtime)||/Chrome/.test(navigator.userAgent)&&/Google Inc/.test(navigator.vendor)}return kt}function _i(){return Et===void 0&&(Et=/(firefox)/i.test(navigator.userAgent)),Et}function yn(){return Yt===void 0&&(Yt=/(Mac|iPhone|iPod|iPad)/i.test(navigator.platform)),Yt}function Tn(){return Tt===void 0&&(Tt=/iPad|iPhone|iPod/.test(navigator.platform)||navigator.platform==="MacIntel"&&navigator.maxTouchPoints>1),Tt}function ma(i){if(!i)return null;let o=i.tabIndex,C=i.getAttribute("tabIndex");return o===-1&&(C===null||C===""&&!_i())?null:o.toString()}function Ho(){if(Xt!==void 0)return Xt;if(!document.body)return-1;let i=1e6,o=_i()?6e6:1e9,C=document.createElement("div");for(document.body.appendChild(C);;){let P=i*2;if(C.style.height=P+"px",P>o||C.clientHeight!==P)break;i=P}return document.body.removeChild(C),Xt=i,i}function Ar(){return Bt==null&&ll(),Bt}function ll(){let i=document.body,o=document.createElement("div");o.style.width=o.style.height="100px",o.style.opacity="0",o.style.overflow="scroll",o.style.msOverflowStyle="scrollbar",o.style.position="absolute",i.appendChild(o);let C=o.offsetWidth-o.clientWidth;C===0&&o.clientWidth===0&&(C=null),o.parentNode&&o.parentNode.removeChild(o),C!=null&&(Bt=C,Ft=C===0)}function eo(){return Ft==null&&ll(),Ft}var Nr;function rn(i,o,C){let P=i.parentElement,B=P&&P.firstChild;for(;B;)o&&B.classList.toggle(o,B===i),C&&B.classList.toggle(C,B!==i),B=B.nextSibling}var Wo="[tabindex], input, select, button, textarea, [href]",Mo="[disabled], .ag-disabled:not(.ag-button), .ag-disabled *";function Ps(i){let o=Element.prototype.matches||Element.prototype.msMatchesSelector,C="input, select, button, textarea",P=o.call(i,C),B=o.call(i,Mo),W=ht(i);return P&&!B&&W}function Un(i,o,C={}){let{skipAriaHidden:P}=C;i.classList.toggle("ag-hidden",!o),P||ke(i,!o)}function Ls(i,o,C={}){let{skipAriaHidden:P}=C;i.classList.toggle("ag-invisible",!o),P||ke(i,!o)}function la(i,o){let C="disabled",P=o?B=>B.setAttribute(C,""):B=>B.removeAttribute(C);P(i),Qh(i.querySelectorAll("input"),B=>P(B))}function uo(i,o,C){let P=0;for(;i;){if(i.classList.contains(o))return!0;if(i=i.parentElement,typeof C=="number"){if(++P>C)break}else if(i===C)break}return!1}function ka(i){let{height:o,width:C,borderTopWidth:P,borderRightWidth:B,borderBottomWidth:W,borderLeftWidth:$,paddingTop:ie,paddingRight:ue,paddingBottom:De,paddingLeft:_e,marginTop:Be,marginRight:Qe,marginBottom:st,marginLeft:Ct,boxSizing:Ot}=window.getComputedStyle(i);return{height:parseFloat(o||"0"),width:parseFloat(C||"0"),borderTopWidth:parseFloat(P||"0"),borderRightWidth:parseFloat(B||"0"),borderBottomWidth:parseFloat(W||"0"),borderLeftWidth:parseFloat($||"0"),paddingTop:parseFloat(ie||"0"),paddingRight:parseFloat(ue||"0"),paddingBottom:parseFloat(De||"0"),paddingLeft:parseFloat(_e||"0"),marginTop:parseFloat(Be||"0"),marginRight:parseFloat(Qe||"0"),marginBottom:parseFloat(st||"0"),marginLeft:parseFloat(Ct||"0"),boxSizing:Ot}}function $n(i){let o=ka(i);return o.boxSizing==="border-box"?o.height-o.paddingTop-o.paddingBottom:o.height}function to(i){let o=ka(i);return o.boxSizing==="border-box"?o.width-o.paddingLeft-o.paddingRight:o.width}function $t(i){let{height:o,marginBottom:C,marginTop:P}=ka(i);return Math.floor(o+C+P)}function nn(i){let{width:o,marginLeft:C,marginRight:P}=ka(i);return Math.floor(o+C+P)}function bn(i){let o=i.getBoundingClientRect(),{borderTopWidth:C,borderLeftWidth:P,borderRightWidth:B,borderBottomWidth:W}=ka(i);return{top:o.top+(C||0),left:o.left+(P||0),right:o.right+(B||0),bottom:o.bottom+(W||0)}}function zi(){if(typeof Nr=="boolean")return Nr;let i=document.createElement("div");return i.style.direction="rtl",i.style.width="1px",i.style.height="1px",i.style.position="fixed",i.style.top="0px",i.style.overflow="hidden",i.dir="rtl",i.innerHTML=`<div style="width: 2px">
            <span style="display: inline-block; width: 1px"></span>
            <span style="display: inline-block; width: 1px"></span>
        </div>`,document.body.appendChild(i),i.scrollLeft=1,Nr=Math.floor(i.scrollLeft)===0,document.body.removeChild(i),Nr}function En(i,o){let C=i.scrollLeft;return o&&(C=Math.abs(C),Ci()&&!zi()&&(C=i.scrollWidth-i.getBoundingClientRect().width-C)),C}function Yn(i,o,C){C&&(zi()?o*=-1:(ii()||Ci())&&(o=i.scrollWidth-i.getBoundingClientRect().width-o)),i.scrollLeft=o}function Ke(i){for(;i&&i.firstChild;)i.removeChild(i.firstChild)}function pt(i){i&&i.parentNode&&i.parentNode.removeChild(i)}function ct(i){return!!i.offsetParent}function ht(i){let o=i;return o.checkVisibility?o.checkVisibility({checkVisibilityCSS:!0}):!(!ct(i)||window.getComputedStyle(i).visibility!=="visible")}function Gt(i){let o=document.createElement("div");return o.innerHTML=(i||"").trim(),o.firstChild}function _t(i,o,C){C&&C.nextSibling===o||(C?C.nextSibling?i.insertBefore(o,C.nextSibling):i.appendChild(o):i.firstChild&&i.firstChild!==o&&i.insertAdjacentElement("afterbegin",o))}function ni(i,o){for(let C=0;C<o.length;C++){let P=o[C],B=i.children[C];B!==P&&i.insertBefore(P,B)}}function Bi(i,o,C){C?C.insertAdjacentElement("afterend",o):i.firstChild?i.insertAdjacentElement("afterbegin",o):i.appendChild(o)}function xi(i){return i.replace(/[A-Z]/g,o=>`-${o.toLocaleLowerCase()}`)}function Ti(i,o){if(o)for(let[C,P]of Object.entries(o)){if(!C||!C.length||P==null)continue;let B=xi(C),W=P.toString(),$=W.replace(/\s*!important/g,""),ie=$.length!=W.length?"important":void 0;i.style.setProperty(B,$,ie)}}function Oi(i){return i.clientWidth<i.scrollWidth}function xn(i){return i.clientHeight<i.scrollHeight}function an(i,o){o==="flex"?(i.style.removeProperty("width"),i.style.removeProperty("minWidth"),i.style.removeProperty("maxWidth"),i.style.flex="1 1 auto"):Cn(i,o)}function Cn(i,o){o=ko(o),i.style.width=o.toString(),i.style.maxWidth=o.toString(),i.style.minWidth=o.toString()}function Wi(i,o){o=ko(o),i.style.height=o.toString(),i.style.maxHeight=o.toString(),i.style.minHeight=o.toString()}function ko(i){return typeof i=="number"?`${i}px`:i}function xc(i){return i instanceof Node||i instanceof HTMLElement}function Os(i){if(i==null)return[];let o=[];return Qh(i,C=>o.push(C)),o}function pr(i,o){if(i)for(let C=0;C<i.length;C++){let P=i[C];o(P.name,P.value)}}function $r(i,o,C){C==null||C===""?i.removeAttribute(o):i.setAttribute(o,C.toString())}function Qh(i,o){if(i!=null)for(let C=0;C<i.length;C++)o(i[C])}function Lo(i,o){i.then(C=>{let P=C.getGui();P!=null&&(typeof P=="object"?o.appendChild(P):o.innerHTML=P)})}function Qr(i,o,C){let B=ZC(i).ResizeObserver,W=B?new B(C):null;return W==null||W.observe(o),()=>W==null?void 0:W.disconnect()}function cl(i){return i==null||i===""?null:i}function Ai(i){return i!=null&&i!==""}function Qn(i){return!Ai(i)}function Oo(i){return i!=null&&typeof i.toString=="function"?i.toString():null}function Id(i,o){let C=i?JSON.stringify(i):null,P=o?JSON.stringify(o):null;return C===P}function Td(i,o,C=!1){let P=i==null,B=o==null;if(i&&i.toNumber&&(i=i.toNumber()),o&&o.toNumber&&(o=o.toNumber()),P&&B)return 0;if(P)return-1;if(B)return 1;function W($,ie){return $>ie?1:$<ie?-1:0}if(typeof i!="string"||!C)return W(i,o);try{return i.localeCompare(o)}catch($){return W(i,o)}}var Jh="https://www.ag-grid.com",Mc={};function kc(i,o){Mc[o]||(i(),Mc[o]=!0)}function _s(i,o,...C){i.get("debug")&&console.log("AG Grid: "+o,...C)}function Jr(i,...o){kc(()=>console.warn("AG Grid: "+i,...o),i+(o==null?void 0:o.join("")))}function Vl(i,...o){kc(()=>console.error("AG Grid: "+i,...o),i+(o==null?void 0:o.join("")))}var Oy=[],qC=!1;function $f(i){Oy.push(i),!qC&&(qC=!0,window.setTimeout(()=>{let o=Oy.slice();Oy.length=0,qC=!1,o.forEach(C=>C())},0))}function zr(i,o,C){let P;return function(...B){let W=this;window.clearTimeout(P),P=window.setTimeout(function(){i.isAlive()&&o.apply(W,B)},C)}}function _y(i,o){let C=0;return function(...P){let B=this,W=new Date().getTime();W-C<o||(C=W,i.apply(B,P))}}function Fs(i,o,C=100,P){let B=new Date().getTime(),W=null,$=!1,ie=()=>{let ue=new Date().getTime()-B>C;(i()||ue)&&(o(),$=!0,W!=null&&(window.clearInterval(W),W=null),ue&&P&&Jr(P))};ie(),$||(W=window.setInterval(ie,10))}var yi="33.0.1",Rd=2e3,ix=100,Fy="_version_",sp=null,YC=!1,bm=`${Jh}/javascript-data-grid`;function Ny(i){sp=i}function Pi(i){bm=i}function ps(i,o,C){var P;return(P=sp==null?void 0:sp.getConsoleMessage(i,o))!=null?P:[Ac(i,o,C)]}function mu(i,o,C,P){YC||i(`error #${o}`,...ps(o,C,P))}function io(i){if(!i)return String(i);let o={};for(let C of Object.keys(i))typeof i[C]!="object"&&typeof i[C]!="function"&&(o[C]=i[C]);return JSON.stringify(o)}function lp(i){let o=i;return i instanceof Error?o=i.toString():typeof i=="object"&&(o=io(i)),o}function dl(i){return i===void 0?"undefined":i===null?"null":i}function eg(i,o){return`${i}?${o.toString()}`}function XC(i,o,C){let P=Array.from(o.entries()).sort((W,$)=>$[1].length-W[1].length),B=eg(i,o);for(let[W,$]of P){if(W===Fy)continue;let ie=B.length-C;if(ie<=0)break;let ue="...",De=ie+ue.length,_e=$.length-De>ix?$.slice(0,$.length-De)+ue:$.slice(0,ix)+ue;o.set(W,_e),B=eg(i,o)}return B}function Qf(i,o){let C=new URLSearchParams;C.append(Fy,yi),o&&Object.entries(o).forEach(([W,$])=>{C.append(W,lp($))});let P=`${bm}/errors/${i}`,B=eg(P,C);return B.length<=Rd?B:XC(P,C,Rd)}var Ac=(i,o,C)=>{let P=Qf(i,o);return`${C?C+` 
`:""}Visit ${P}${C?"":` 
  Alternatively register the ValidationModule to see the full message in the console.`}`};function pi(...i){mu(Jr,i[0],i[1])}function Ea(...i){mu(Vl,i[0],i[1])}function cp(i,o,C){mu(Vl,i,o,C)}function dp(i,o){let C=o[0];return`error #${C} `+ps(C,o[1],i).join(" ")}function ar(...i){return dp(void 0,i)}function Dc(...i){return dp(`
`,i)}function ul(i,o){return i.get("rowModelType")===o}function _o(i,o){return ul(i,"clientSide")}function Jc(i,o){return ul(i,"serverSide")}function Fo(i,o){return i.get("domLayout")===o}function Ec(i){return Uo(i)!==void 0}function Ns(i){return typeof i.get("getRowHeight")=="function"}function EP(i,o){return o?!i.get("enableStrictPivotColumnOrder"):i.get("maintainColumnOrder")}function uh(i,o,C=!1,P){let{gos:B,environment:W}=i;if(P==null&&(P=W.getDefaultRowHeight()),Ns(B)){if(C)return{height:P,estimated:!0};let ue={node:o,data:o.data},De=B.getCallback("getRowHeight")(ue);if(zs(De))return De===0&&pi(23),{height:Math.max(1,De),estimated:!1}}if(o.detail&&B.get("masterDetail"))return Gn(B);let $=B.get("rowHeight");return{height:$&&zs($)?$:P,estimated:!1}}function Gn(i){if(i.get("detailRowAutoHeight"))return{height:1,estimated:!1};let o=i.get("detailRowHeight");return zs(o)?{height:o,estimated:!1}:{height:300,estimated:!1}}function hh(i){let{environment:o,gos:C}=i,P=C.get("rowHeight");if(!P||Qn(P))return o.getDefaultRowHeight();let B=o.refreshRowHeightVariable();return B!==-1?B:(pi(24),o.getDefaultRowHeight())}function zs(i){return!isNaN(i)&&typeof i=="number"&&isFinite(i)}function Cm(i,o,C){let P=o[i.getDomDataKey()];return P?P[C]:void 0}function Pd(i,o,C,P){let B=i.getDomDataKey(),W=o[B];Qn(W)&&(W={},o[B]=W),W[C]=P}function Ao(i){let{gos:o,eGridDiv:C}=i,P=null,B=o.get("getDocument");return B&&Ai(B)?P=B():C&&(P=C.ownerDocument),P&&Ai(P)?P:document}function ZC(i){return Ao(i).defaultView||window}function Jf(i){return i.eGridDiv.getRootNode()}function Fa(i){return Jf(i).activeElement}function zy(i){let o=null,C=null;try{o=Ao(i).fullscreenElement}catch(P){}finally{o||(o=Jf(i));let P=o.querySelector("body");P?C=P:o instanceof ShadowRoot?C=o:o instanceof Document?C=o==null?void 0:o.documentElement:C=o}return C}function nx(i){var C;let o=zy(i);return(C=o==null?void 0:o.clientWidth)!=null?C:window.innerHeight||-1}function zn(i){var C;let o=zy(i);return(C=o==null?void 0:o.clientHeight)!=null?C:window.innerHeight||-1}function Sm(i,o,C){let B=i.getBoundingClientRect().height,W=nx(C)-2,$=zn(C)-2;if(!i.offsetParent)return;let ue=bn(i.offsetParent),{clientY:De,clientX:_e}=o,Be=De-ue.top-B/2,Qe=_e-ue.left-10,st=Ao(C),Ct=st.defaultView||window,Ot=Ct.pageYOffset||st.documentElement.scrollTop,Pt=Ct.pageXOffset||st.documentElement.scrollLeft;W>0&&Qe+i.clientWidth>W+Pt&&(Qe=W+Pt-i.clientWidth),Qe<0&&(Qe=0),$>0&&Be+i.clientHeight>$+Ot&&(Be=$+Ot-i.clientHeight),Be<0&&(Be=0),i.style.left=`${Qe}px`,i.style.top=`${Be}px`}function Ui(i){let o=Ao(i),C=Fa(i);return C===null||C===o.body}function jn(i){return i.get("ensureDomOrder")?!1:i.get("animateRows")}function Hi(i){return!(i.get("paginateChildRows")||i.get("groupHideOpenParents")||Fo(i,"print"))}function hl(i){let o=i.get("autoGroupColumnDef");return!(o!=null&&o.comparator)&&!i.get("treeData")}function wm(i){let o=i.get("groupAggFiltering");if(typeof o=="function")return i.getCallback("groupAggFiltering");if(o===!0)return()=>!0}function IP(i){return i.get("grandTotalRow")}function TP(i){let o=i.get("groupTotalRow");return typeof o=="function"?i.getCallback("groupTotalRow"):()=>o!=null?o:void 0}function pI(i){return i.exists("groupDisplayType")?i.get("groupDisplayType")==="multipleColumns":i.get("groupHideOpenParents")}function ax(i,o){return o?!1:i.get("groupDisplayType")==="groupRows"}function ev(i){let o=i.getCallback("getRowId");return o===void 0?o:C=>{let P=o(C);return typeof P!="string"&&(pi(25,{id:P}),P=String(P)),P}}function tv(i,o){let C=i.get("groupHideParentOfSingleChild");return!!(C===!0||C==="leafGroupsOnly"&&o.leafGroup||i.get("groupRemoveSingleChildren")||i.get("groupRemoveLowestSingleChildren")&&o.leafGroup)}function ox(i){let o=i.get("maxConcurrentDatasourceRequests");return o>0?o:void 0}function _A(i,o){let C=i.get("suppressGroupChangesColumnVisibility");if(C===!0||o&&C==="suppressHideOnGroup"||!o&&C==="suppressShowOnUngroup")return!1;let P=i.get("suppressRowGroupHidesColumns");if(o&&P===!0)return!1;let B=i.get("suppressMakeColumnVisibleAfterUnGroup");return!(!o&&B===!0)}function ed(i){var o;return(o=i==null?void 0:i.checkboxes)!=null?o:!0}function Hl(i){var o;return(i==null?void 0:i.mode)==="multiRow"&&((o=i.headerCheckbox)!=null?o:!0)}function Wa(i){var o;if(typeof i=="object")return(o=i.checkboxLocation)!=null?o:"selectionColumn"}function xm(i){var o;return(o=i==null?void 0:i.hideDisabledCheckboxes)!=null?o:!1}function $C(i){return typeof i.get("rowSelection")!="string"}function QC(i){return i.get("cellSelection")!==void 0}function rx(i){var P;let o=i.get("cellSelection");return o!==void 0?typeof o!="boolean"&&(P=o==null?void 0:o.suppressMultiRanges)!=null?P:!1:i.get("suppressMultiRangeSelection")}function Dr(i){let o=i.get("cellSelection");return o!==void 0?!!o:i.get("enableRangeSelection")}function JC(i){var P;let o=i.get("cellSelection");return o!==void 0?typeof o!="boolean"&&((P=o.handle)==null?void 0:P.mode)==="fill"?o.handle:void 0:{mode:"fill",setFillValue:i.get("fillOperation"),direction:i.get("fillHandleDirection"),suppressClearOnFillReduction:i.get("suppressClearOnFillReduction")}}function mI(i){var C,P;let o=(C=i.get("rowSelection"))!=null?C:"single";if(typeof o=="string"){let B=i.get("suppressRowClickSelection"),W=i.get("suppressRowDeselection");return B&&W?!1:B?"enableDeselection":W?"enableSelection":!0}return(o.mode==="singleRow"||o.mode==="multiRow")&&(P=o.enableClickSelection)!=null?P:!1}function fI(i){let o=mI(i);return o===!0||o==="enableSelection"}function ms(i){let o=mI(i);return o===!0||o==="enableDeselection"}function up(i){let o=i.get("rowSelection");return typeof o=="string"?i.get("isRowSelectable"):o==null?void 0:o.isRowSelectable}function Uo(i){let o=i.get("rowSelection");if(typeof o=="string")switch(o){case"multiple":return"multiRow";case"single":return"singleRow";default:return}switch(o==null?void 0:o.mode){case"multiRow":case"singleRow":return o.mode;default:return}}function Mm(i){return Uo(i)==="multiRow"}function e0(i){var C;let o=i.get("rowSelection");return typeof o=="string"?i.get("rowMultiSelectWithClick"):(C=o==null?void 0:o.enableSelectionWithoutKeys)!=null?C:!1}function gh(i){let o=i.get("rowSelection");if(typeof o=="string"){let C=i.get("groupSelectsChildren"),P=i.get("groupSelectsFiltered");return C&&P?"filteredDescendants":C?"descendants":"self"}return(o==null?void 0:o.mode)==="multiRow"?o.groupSelects:void 0}function FA(i,o=!0){let C=i.get("rowSelection");return typeof C!="object"?o?"all":void 0:C.mode==="multiRow"?C.selectAll:"all"}function By(i){let o=gh(i);return o==="descendants"||o==="filteredDescendants"}function iv(i){return i.isModuleRegistered("SetFilter")&&!i.get("suppressSetFilterByDefault")}function mr(i){return i.get("columnMenu")==="legacy"}function Wl(i){return!mr(i)}function un(i){return!i||i.length<2?i:"on"+i[0].toUpperCase()+i.substring(1)}function ho(i,o,C){typeof i!="object"&&(i={});let P=pe({},i);return C.forEach(B=>{let W=o[B];typeof W!="undefined"&&(P[B]=W)}),P}function fu(i,o){if(!i)return;let C={},P=!1;if(Object.keys(i).forEach($=>{C[$]=i[$],P=!0}),!P)return;let B={type:"gridOptionsChanged",options:C};o.dispatchEvent(B);let W=pe({type:"componentStateChanged"},C);o.dispatchEvent(W)}var Je="__ag_Grid_Stop_Propagation",Ld=["touchstart","touchend","touchmove","touchcancel","scroll"],km=["wheel"],Gi={};function Br(i){i[Je]=!0}function Zi(i){return i[Je]===!0}var no=(()=>{let i={select:"input",change:"input",submit:"form",reset:"form",error:"img",load:"img",abort:"img"};return C=>{if(typeof Gi[C]=="boolean")return Gi[C];let P=document.createElement(i[C]||"div");return C="on"+C,Gi[C]=C in P}})();function ui(i,o,C){let P=o;for(;P;){let B=Cm(i,P,C);if(B)return B;P=P.parentElement}return null}function Vn(i,o){return!o||!i?!1:t0(o).indexOf(i)>=0}function Na(i){let o=[],C=i.target;for(;C;)o.push(C),C=C.parentElement;return o}function t0(i){let o=i;return o.path?o.path:o.composedPath?o.composedPath():Na(o)}function Fi(i,o,C,P){let B=Ia(C),W;B!=null&&(W={passive:B}),i&&i.addEventListener&&i.addEventListener(o,C,P,W)}var Ia=i=>{let o=Ld.includes(i),C=km.includes(i);if(o)return!0;if(C)return!1},ei=class{constructor(){this.destroyFunctions=[],this.destroyed=!1,this.__v_skip=!0,this.propertyListenerId=0,this.lastChangeSetIdLookup={},this.isAlive=()=>!this.destroyed}preWireBeans(i){this.beans=i,this.stubContext=i.context,this.eventSvc=i.eventSvc,this.gos=i.gos}destroy(){let{destroyFunctions:i}=this;for(let o=0;o<i.length;o++)i[o]();i.length=0,this.destroyed=!0,this.dispatchLocalEvent({type:"destroyed"})}addEventListener(i,o,C){this.localEventService||(this.localEventService=new s),this.localEventService.addEventListener(i,o,C)}removeEventListener(i,o,C){var P;(P=this.localEventService)==null||P.removeEventListener(i,o,C)}dispatchLocalEvent(i){var o;(o=this.localEventService)==null||o.dispatchEvent(i)}addManagedElementListeners(i,o){return this._setupListeners(i,o)}addManagedEventListeners(i){return this._setupListeners(this.eventSvc,i)}addManagedListeners(i,o){return this._setupListeners(i,o)}_setupListeners(i,o){let C=[];for(let P of Object.keys(o)){let B=o[P];B&&C.push(this._setupListener(i,P,B))}return C}_setupListener(i,o,C){if(this.destroyed)return()=>null;i instanceof HTMLElement?Fi(this.beans.frameworkOverrides,i,o,C):i.addEventListener(o,C);let P=()=>(i.removeEventListener(o,C),null);return this.destroyFunctions.push(P),()=>(P(),this.destroyFunctions=this.destroyFunctions.filter(B=>B!==P),null)}setupGridOptionListener(i,o){let{gos:C}=this;C.addPropertyEventListener(i,o);let P=()=>(C.removePropertyEventListener(i,o),null);return this.destroyFunctions.push(P),()=>(P(),this.destroyFunctions=this.destroyFunctions.filter(B=>B!==P),null)}addManagedPropertyListener(i,o){return this.destroyed?()=>null:this.setupGridOptionListener(i,o)}addManagedPropertyListeners(i,o){if(this.destroyed)return;let C=i.join("-")+this.propertyListenerId++,P=B=>{if(B.changeSet){if(B.changeSet&&B.changeSet.id===this.lastChangeSetIdLookup[C])return;this.lastChangeSetIdLookup[C]=B.changeSet.id}let W={type:"gridPropertyChanged",changeSet:B.changeSet,source:B.source};o(W)};i.forEach(B=>this.setupGridOptionListener(B,P))}getLocaleTextFunc(){return d(this.beans.localeSvc)}addDestroyFunc(i){this.isAlive()?this.destroyFunctions.push(i):i()}createOptionalManagedBean(i,o){return i?this.createManagedBean(i,o):void 0}createManagedBean(i,o){let C=this.createBean(i,o);return this.addDestroyFunc(this.destroyBean.bind(this,i,o)),C}createBean(i,o,C){return(o||this.stubContext).createBean(i,C)}destroyBean(i,o){return(o||this.stubContext).destroyBean(i)}destroyBeans(i,o){return(o||this.stubContext).destroyBeans(i)}},nv=new Set(["__proto__","constructor","prototype"]);function Hn(i,o){if(i!=null){if(Array.isArray(i)){for(let C=0;C<i.length;C++)o(C.toString(),i[C]);return}for(let[C,P]of Object.entries(i))o(C,P)}}function Ko(i,o,C=!0,P=!1){Ai(o)&&Hn(o,(B,W)=>{if(nv.has(B))return;let $=i[B];$!==W&&(P&&$==null&&W!=null&&typeof W=="object"&&W.constructor===Object&&($={},i[B]=$),Gy(W)&&Gy($)&&!Array.isArray($)?Ko($,W,C,P):(C||W!==void 0)&&(i[B]=W))})}function ph(i,o,C){if(!o||!i)return;if(!C)return i[o];let P=o.split("."),B=i;for(let W=0;W<P.length;W++){if(B==null)return;B=B[P[W]]}return B}function Gy(i){return typeof i=="object"&&i!==null}var ia={resizable:!0,sortable:!0},jy=0;function NA(){return jy++}function na(i){return i instanceof gl}var gl=class extends ei{constructor(i,o,C,P){super(),this.colDef=i,this.userProvidedColDef=o,this.colId=C,this.primary=P,this.isColumn=!0,this.instanceId=NA(),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}getInstanceId(){return this.instanceId}setState(){let{colDef:i,beans:{sortSvc:o,pinnedCols:C,colFlex:P}}=this;o==null||o.initCol(this);let B=i.hide;B!==void 0?this.visible=!B:this.visible=!i.initialHide,C==null||C.initCol(this),P==null||P.initCol(this)}setColDef(i,o,C){this.colDef=i,this.userProvidedColDef=o,this.initMinAndMaxWidths(),this.initDotNotation(),this.initTooltip(),this.dispatchColEvent("colDefChanged",C)}getUserProvidedColDef(){return this.userProvidedColDef}getParent(){return this.parent}getOriginalParent(){return this.originalParent}postConstruct(){this.setState(),this.initMinAndMaxWidths(),this.resetActualWidth("gridInitializing"),this.initDotNotation(),this.initTooltip()}initDotNotation(){let{gos:i,colDef:{field:o,tooltipField:C}}=this,P=i.get("suppressFieldDotNotation");this.fieldContainsDots=Ai(o)&&o.indexOf(".")>=0&&!P,this.tooltipFieldContainsDots=Ai(C)&&C.indexOf(".")>=0&&!P}initMinAndMaxWidths(){var o,C;let i=this.colDef;this.minWidth=(o=i.minWidth)!=null?o:this.beans.environment.getDefaultColumnMinWidth(),this.maxWidth=(C=i.maxWidth)!=null?C:Number.MAX_SAFE_INTEGER}initTooltip(){var i;(i=this.beans.tooltipSvc)==null||i.initCol(this)}resetActualWidth(i){let o=this.calculateColInitialWidth(this.colDef);this.setActualWidth(o,i,!0)}calculateColInitialWidth(i){let o,C=i.width,P=i.initialWidth;return C!=null?o=C:P!=null?o=P:o=200,Math.max(Math.min(o,this.maxWidth),this.minWidth)}isEmptyGroup(){return!1}isRowGroupDisplayed(i){var o,C;return(C=(o=this.beans.showRowGroupCols)==null?void 0:o.isRowGroupDisplayed(this,i))!=null?C:!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(i,o){var P,B,W,$;this.frameworkEventListenerService=(B=(P=this.beans.frameworkOverrides).createLocalEventListenerWrapper)==null?void 0:B.call(P,this.frameworkEventListenerService,this.colEventSvc);let C=($=(W=this.frameworkEventListenerService)==null?void 0:W.wrap(o))!=null?$:o;this.colEventSvc.addEventListener(i,C)}removeEventListener(i,o){var P,B;let C=(B=(P=this.frameworkEventListenerService)==null?void 0:P.unwrap(o))!=null?B:o;this.colEventSvc.removeEventListener(i,C)}createColumnFunctionCallbackParams(i){return this.gos.addGridCommonParams({node:i,data:i.data,column:this,colDef:this.colDef})}isSuppressNavigable(i){var o,C;return(C=(o=this.beans.cellNavigation)==null?void 0:o.isSuppressNavigable(this,i))!=null?C:!1}isCellEditable(i){var o,C;return(C=(o=this.beans.editSvc)==null?void 0:o.isCellEditable(this,i))!=null?C:!1}isSuppressFillHandle(){return!!this.colDef.suppressFillHandle}isAutoHeight(){return!!this.colDef.autoHeight}isAutoHeaderHeight(){return!!this.colDef.autoHeaderHeight}isRowDrag(i){return this.isColumnFunc(i,this.colDef.rowDrag)}isDndSource(i){return this.isColumnFunc(i,this.colDef.dndSource)}isCellCheckboxSelection(i){var o,C;return(C=(o=this.beans.selectionSvc)==null?void 0:o.isCellCheckboxSelection(this,i))!=null?C:!1}isSuppressPaste(i){var o,C;return this.isColumnFunc(i,(C=(o=this.colDef)==null?void 0:o.suppressPaste)!=null?C:null)}isResizable(){return!!this.getColDefValue("resizable")}getColDefValue(i){var o;return(o=this.colDef[i])!=null?o:ia[i]}isColumnFunc(i,o){if(typeof o=="boolean")return o;if(typeof o=="function"){let C=this.createColumnFunctionCallbackParams(i);return o(C)}return!1}createColumnEvent(i,o){return this.gos.addGridCommonParams({type:i,column:this,columns:[this],source:o})}isMoving(){return this.moving}getSort(){return this.sort}isSortable(){return!!this.getColDefValue("sortable")}isSortAscending(){return this.sort==="asc"}isSortDescending(){return this.sort==="desc"}isSortNone(){return Qn(this.sort)}isSorting(){return Ai(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(i,o){this.oldLeft=this.left,this.left!==i&&(this.left=i,this.dispatchColEvent("leftChanged",o))}isFilterActive(){return this.filterActive}isHovered(){var i;return pi(261),!!((i=this.beans.colHover)!=null&&i.isHovered(this))}setFirstRightPinned(i,o){this.firstRightPinned!==i&&(this.firstRightPinned=i,this.dispatchColEvent("firstRightPinnedChanged",o))}setLastLeftPinned(i,o){this.lastLeftPinned!==i&&(this.lastLeftPinned=i,this.dispatchColEvent("lastLeftPinnedChanged",o))}isFirstRightPinned(){return this.firstRightPinned}isLastLeftPinned(){return this.lastLeftPinned}isPinned(){return this.pinned==="left"||this.pinned==="right"}isPinnedLeft(){return this.pinned==="left"}isPinnedRight(){return this.pinned==="right"}getPinned(){return this.pinned}setVisible(i,o){let C=i===!0;this.visible!==C&&(this.visible=C,this.dispatchColEvent("visibleChanged",o)),this.dispatchStateUpdatedEvent("hide")}isVisible(){return this.visible}isSpanHeaderHeight(){return!this.getColDef().suppressSpanHeaderHeight}getColumnGroupPaddingInfo(){let i=this.getParent();if(!i||!i.isPadding())return{numberOfParents:0,isSpanningTotal:!1};let o=i.getPaddingLevel()+1,C=!0;for(;i;){if(!i.isPadding()){C=!1;break}i=i.getParent()}return{numberOfParents:o,isSpanningTotal:C}}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(i){let o=i!==this.autoHeaderHeight;return this.autoHeaderHeight=i,o}createBaseColDefParams(i){return this.gos.addGridCommonParams({node:i,data:i.data,colDef:this.colDef,column:this})}getColSpan(i){if(Qn(this.colDef.colSpan))return 1;let o=this.createBaseColDefParams(i),C=this.colDef.colSpan(o);return Math.max(C,1)}getRowSpan(i){if(Qn(this.colDef.rowSpan))return 1;let o=this.createBaseColDefParams(i),C=this.colDef.rowSpan(o);return Math.max(C,1)}setActualWidth(i,o,C=!1){i=Math.max(i,this.minWidth),i=Math.min(i,this.maxWidth),this.actualWidth!==i&&(this.actualWidth=i,this.flex&&o!=="flex"&&o!=="gridInitializing"&&(this.flex=null),C||this.fireColumnWidthChangedEvent(o)),this.dispatchStateUpdatedEvent("width")}fireColumnWidthChangedEvent(i){this.dispatchColEvent("widthChanged",i)}isGreaterThanMax(i){return i>this.maxWidth}getMinWidth(){return this.minWidth}getMaxWidth(){return this.maxWidth}getFlex(){return this.flex}isRowGroupActive(){return this.rowGroupActive}isPivotActive(){return this.pivotActive}isAnyFunctionActive(){return this.isPivotActive()||this.isRowGroupActive()||this.isValueActive()}isAnyFunctionAllowed(){return this.isAllowPivot()||this.isAllowRowGroup()||this.isAllowValue()}isValueActive(){return this.aggregationActive}isAllowPivot(){return this.colDef.enablePivot===!0}isAllowValue(){return this.colDef.enableValue===!0}isAllowRowGroup(){return this.colDef.enableRowGroup===!0}dispatchColEvent(i,o,C){let P=this.createColumnEvent(i,o);C&&Ko(P,C),this.colEventSvc.dispatchEvent(P)}dispatchStateUpdatedEvent(i){this.colEventSvc.dispatchEvent({type:"columnStateUpdated",key:i})}};function Bs(i){return i instanceof Ic}var Ic=class extends ei{constructor(i,o,C,P){super(),this.colGroupDef=i,this.groupId=o,this.padding=C,this.level=P,this.isColumn=!1,this.expandable=!1,this.instanceId=NA(),this.expandableListenerRemoveCallback=null,this.expanded=!!(i!=null&&i.openByDefault)}destroy(){this.expandableListenerRemoveCallback&&this.reset(null,void 0),super.destroy()}reset(i,o){this.colGroupDef=i,this.level=o,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(i=>i.isVisible()):!1}isPadding(){return this.padding}setExpanded(i){this.expanded=i===void 0?!1:i,this.dispatchLocalEvent({type:"expandedChanged"})}isExpandable(){return this.expandable}isExpanded(){return this.expanded}getGroupId(){return this.groupId}getId(){return this.getGroupId()}setChildren(i){this.children=i}getChildren(){return this.children}getColGroupDef(){return this.colGroupDef}getLeafColumns(){let i=[];return this.addLeafColumns(i),i}addLeafColumns(i){this.children&&this.children.forEach(o=>{na(o)?i.push(o):Bs(o)&&o.addLeafColumns(i)})}getColumnGroupShow(){let i=this.colGroupDef;if(i)return i.columnGroupShow}setupExpandable(){this.setExpandable(),this.expandableListenerRemoveCallback&&this.expandableListenerRemoveCallback();let i=this.onColumnVisibilityChanged.bind(this);this.getLeafColumns().forEach(o=>o.addEventListener("visibleChanged",i)),this.expandableListenerRemoveCallback=()=>{this.getLeafColumns().forEach(o=>o.removeEventListener("visibleChanged",i)),this.expandableListenerRemoveCallback=null}}setExpandable(){if(this.isPadding())return;let i=!1,o=!1,C=!1,P=this.findChildrenRemovingPadding();for(let W=0,$=P.length;W<$;W++){let ie=P[W];if(!ie.isVisible())continue;let ue=ie.getColumnGroupShow();ue==="open"?(i=!0,C=!0):ue==="closed"?(o=!0,C=!0):(i=!0,o=!0)}let B=i&&o&&C;this.expandable!==B&&(this.expandable=B,this.dispatchLocalEvent({type:"expandableChanged"}))}findChildrenRemovingPadding(){let i=[],o=C=>{C.forEach(P=>{Bs(P)&&P.isPadding()?o(P.children):i.push(P)})};return o(this.children),i}onColumnVisibilityChanged(){this.setExpandable()}},Vy={numericColumn:{headerClass:"ag-right-aligned-header",cellClass:"ag-right-aligned-cell"},rightAligned:{headerClass:"ag-right-aligned-header",cellClass:"ag-right-aligned-cell"}},i0=class{constructor(){this.existingKeys={}}addExistingKeys(i){for(let o=0;o<i.length;o++)this.existingKeys[i[o]]=!0}getUniqueKey(i,o){i=Oo(i);let C=0;for(;;){let P=i!=null?i:o;if(P?C!==0&&(P+="_"+C):P=C,!this.existingKeys[P])return this.existingKeys[P]=!0,String(P);C++}}},Ta=Object.freeze([]);function Sa(i){if(i!=null&&i.length)return i[i.length-1]}function tg(i,o,C){return i==null&&o==null?!0:i!=null&&o!=null&&i.length===o.length&&i.every((P,B)=>C?C(P,o[B]):o[B]===P)}function vI(i){return i.sort((o,C)=>o-C)}function qo(i,o){let C=i.indexOf(o);C>=0&&i.splice(C,1)}function n0(i,o,C){for(let P=0;P<o.length;P++)qo(i,o[P]);for(let P=o.length-1;P>=0;P--)i.splice(C,0,o[P])}function mh(i,o){let C=[],P=[],B=[];return i.forEach($=>{let ie=$.getColDef().lockPosition;ie==="right"?B.push($):ie==="left"||ie===!0?C.push($):P.push($)}),o.get("enableRtl")?[...B,...P,...C]:[...C,...P,...B]}function fh(i,o){let C=!0;return fl(null,o,P=>{if(!Bs(P))return;let B=P,W=B.getColGroupDef();if(!(W&&W.marryChildren))return;let ie=[];B.getLeafColumns().forEach(Qe=>{let st=i.indexOf(Qe);ie.push(st)});let ue=Math.max.apply(Math,ie),De=Math.min.apply(Math,ie),_e=ue-De,Be=B.getLeafColumns().length-1;_e>Be&&(C=!1)}),C}function Hy(i,o){if(!i||i.length==0)return;let C=o(i[0]);for(let P=1;P<i.length;P++)if(C!==o(i[P]))return;return C}function a0(i,o,C){if(!o.length)return;let P=o.length===1?o[0]:null,B=Hy(o,W=>W.getPinned());i.dispatchEvent({type:"columnPinned",pinned:B!=null?B:null,columns:o,column:P,source:C})}function Wy(i,o,C){if(!o.length)return;let P=o.length===1?o[0]:null,B=Hy(o,W=>W.isVisible());i.dispatchEvent({type:"columnVisible",visible:B,columns:o,column:P,source:C})}function yI(i,o,C,P){i.dispatchEvent({type:o,columns:C,column:C&&C.length==1?C[0]:null,source:P})}function ig(i,o,C,P,B=null){o!=null&&o.length&&i.dispatchEvent({type:"columnResized",columns:o,column:o.length===1?o[0]:null,flexColumns:B,finished:C,source:P})}function td(i,o,C){var ai,Mi;let{colModel:P,rowGroupColsSvc:B,pivotColsSvc:W,autoColSvc:$,selectionColSvc:ie,colAnimation:ue,visibleCols:De,pivotResultCols:_e,environment:Be,valueColsSvc:Qe,eventSvc:st,gos:Ct}=i,Ot=P.getColDefCols()||[];if(!(Ot!=null&&Ot.length))return!1;if(o!=null&&o.state&&!o.state.forEach)return pi(32),!1;let Pt=(qi,Fn,Xn,Ga,ba)=>{var ja;if(!qi)return;let Qa=go(Fn,o.defaultState),gn=Qa("flex").value1;if(Uy(i,qi,Qa("hide").value1,Qa("sort").value1,Qa("sortIndex").value1,Qa("pinned").value1,gn,C),gn==null){let Lr=Qa("width").value1;if(Lr!=null){let Va=(ja=qi.getColDef().minWidth)!=null?ja:Be.getDefaultColumnMinWidth();Va!=null&&Lr>=Va&&qi.setActualWidth(Lr,C)}}ba||!qi.isPrimary()||(Qe==null||Qe.syncColumnWithState(qi,C,Qa),B==null||B.syncColumnWithState(qi,C,Qa,Xn),W==null||W.syncColumnWithState(qi,C,Qa,Ga))},Kt=(qi,Fn,Xn)=>{var sC,ju,Sd,Zp;let Ga=ng(i,C),ba=Fn.slice(),Qa={},gn={},ja=[],Lr=[],Va=[],uc=0,Fk=(sC=B==null?void 0:B.columns.slice())!=null?sC:[],PL=(ju=W==null?void 0:W.columns.slice())!=null?ju:[];qi.forEach(Or=>{let Vu=Or.colId;if(Vu.startsWith(vu)){ja.push(Or),Va.push(Or);return}if(Tc(Vu)){Lr.push(Or),Va.push(Or);return}let jc=Xn(Vu);jc?(Pt(jc,Or,Qa,gn,!1),qo(ba,jc)):(Va.push(Or),uc+=1)});let JS=Or=>Pt(Or,null,Qa,gn,!1);ba.forEach(JS),B==null||B.sortColumns(Do.bind(B,Qa,Fk)),W==null||W.sortColumns(Do.bind(W,gn,PL)),P.refreshCols(!1);let ew=(Or,Vu,lC=[])=>{Vu.forEach(jc=>{let iy=Or(jc.colId);qo(lC,iy),Pt(iy,jc,null,null,!0)}),lC.forEach(JS)};return ew(Or=>{var Vu;return(Vu=$==null?void 0:$.getAutoCol(Or))!=null?Vu:null},ja,(Sd=$==null?void 0:$.getAutoCols())==null?void 0:Sd.slice()),ew(Or=>{var Vu;return(Vu=ie==null?void 0:ie.getSelectionCol(Or))!=null?Vu:null},Lr,(Zp=ie==null?void 0:ie.getSelectionCols())==null?void 0:Zp.slice()),sx(o,P,Ct),De.refresh(C),st.dispatchEvent({type:"columnEverythingChanged",source:C}),Ga(),{unmatchedAndAutoStates:Va,unmatchedCount:uc}};ue==null||ue.start();let{unmatchedAndAutoStates:ti,unmatchedCount:Jt}=Kt(o.state||[],Ot,qi=>P.getColDefCol(qi));if(ti.length>0||Ai(o.defaultState)){let qi=(Mi=(ai=_e==null?void 0:_e.getPivotResultCols())==null?void 0:ai.list)!=null?Mi:[];Jt=Kt(ti,qi,Fn=>{var Xn;return(Xn=_e==null?void 0:_e.getPivotResultCol(Fn))!=null?Xn:null}).unmatchedCount}return ue==null||ue.finish(),Jt===0}function hp(i,o){let{colModel:C,autoColSvc:P}=i,B=C.getColDefCols();if(!(B!=null&&B.length))return;let W=C.getColDefColTree(),$=av(W),ie=[],ue=1e3,De=1e3,_e=[],Be=P==null?void 0:P.getAutoCols();Be&&(_e=_e.concat(Be)),$&&(_e=_e.concat($)),_e.forEach(Qe=>{let st=o0(Qe);Qn(st.rowGroupIndex)&&st.rowGroup&&(st.rowGroupIndex=ue++),Qn(st.pivotIndex)&&st.pivot&&(st.pivotIndex=De++),ie.push(st)}),td(i,{state:ie,applyOrder:!0},o)}function ng(i,o){var Be,Qe,st;let{rowGroupColsSvc:C,pivotColsSvc:P,valueColsSvc:B,colModel:W,sortSvc:$,eventSvc:ie}=i,ue={rowGroupColumns:(Be=C==null?void 0:C.columns.slice())!=null?Be:[],pivotColumns:(Qe=P==null?void 0:P.columns.slice())!=null?Qe:[],valueColumns:(st=B==null?void 0:B.columns.slice())!=null?st:[]},De=wa(i),_e={};return De.forEach(Ct=>{_e[Ct.colId]=Ct}),()=>{var ba,Qa;let Ct=W.getAllCols(),Ot=(gn,ja,Lr,Va)=>{let uc=ja.map(Va),Fk=Lr.map(Va);if(tg(uc,Fk))return;let JS=new Set(ja);Lr.forEach(sC=>{JS.delete(sC)||JS.add(sC)});let ew=[...JS];ie.dispatchEvent({type:gn,columns:ew,column:ew.length===1?ew[0]:null,source:o})},Pt=gn=>{let ja=[];return Ct.forEach(Lr=>{let Va=_e[Lr.getColId()];Va&&gn(Va,Lr)&&ja.push(Lr)}),ja},Kt=gn=>gn.getColId();Ot("columnRowGroupChanged",ue.rowGroupColumns,(ba=C==null?void 0:C.columns)!=null?ba:[],Kt),Ot("columnPivotChanged",ue.pivotColumns,(Qa=P==null?void 0:P.columns)!=null?Qa:[],Kt);let Jt=Pt((gn,ja)=>{let Lr=gn.aggFunc!=null,Va=Lr!=ja.isValueActive(),uc=Lr&&gn.aggFunc!=ja.getAggFunc();return Va||uc});Jt.length>0&&yI(ie,"columnValueChanged",Jt,o),ig(ie,Pt((gn,ja)=>gn.width!=ja.getActualWidth()),!0,o),a0(ie,Pt((gn,ja)=>gn.pinned!=ja.getPinned()),o),Wy(ie,Pt((gn,ja)=>gn.hide==ja.isVisible()),o);let Xn=Pt((gn,ja)=>gn.sort!=ja.getSort()||gn.sortIndex!=ja.getSortIndex());Xn.length>0&&($==null||$.dispatchSortChangedEvents(o,Xn));let Ga=wa(i);bI(De,Ga,o,W,ie)}}function wa(i){let{colModel:o,rowGroupColsSvc:C,pivotColsSvc:P}=i,B=o.getColDefCols();if(Qn(B)||!o.isAlive())return[];let W=o.getAllCols(),$=C==null?void 0:C.columns,ie=P==null?void 0:P.columns,ue=Be=>{var ti;let Qe=Be.isRowGroupActive()&&$?$.indexOf(Be):null,st=Be.isPivotActive()&&ie?ie.indexOf(Be):null,Ct=Be.isValueActive()?Be.getAggFunc():null,Ot=Be.getSort()!=null?Be.getSort():null,Pt=Be.getSortIndex()!=null?Be.getSortIndex():null;return{colId:Be.getColId(),width:Be.getActualWidth(),hide:!Be.isVisible(),pinned:Be.getPinned(),sort:Ot,sortIndex:Pt,aggFunc:Ct,rowGroup:Be.isRowGroupActive(),rowGroupIndex:Qe,pivot:Be.isPivotActive(),pivotIndex:st,flex:(ti=Be.getFlex())!=null?ti:null}},De=W.map(Be=>ue(Be)),_e=new Map(o.getCols().map((Be,Qe)=>[Be.getColId(),Qe]));return De.sort((Be,Qe)=>{let st=_e.has(Be.colId)?_e.get(Be.colId):-1,Ct=_e.has(Qe.colId)?_e.get(Qe.colId):-1;return st-Ct}),De}function o0(i){let o=(Ct,Ot)=>Ct!=null?Ct:Ot!=null?Ot:null,C=i.getColDef(),P=o(C.sort,C.initialSort),B=o(C.sortIndex,C.initialSortIndex),W=o(C.hide,C.initialHide),$=o(C.pinned,C.initialPinned),ie=o(C.width,C.initialWidth),ue=o(C.flex,C.initialFlex),De=o(C.rowGroupIndex,C.initialRowGroupIndex),_e=o(C.rowGroup,C.initialRowGroup);De==null&&(_e==null||_e==!1)&&(De=null,_e=null);let Be=o(C.pivotIndex,C.initialPivotIndex),Qe=o(C.pivot,C.initialPivot);Be==null&&(Qe==null||Qe==!1)&&(Be=null,Qe=null);let st=o(C.aggFunc,C.initialAggFunc);return{colId:i.getColId(),sort:P,sortIndex:B,hide:W,pinned:$,width:ie,flex:ue,rowGroup:_e,rowGroupIndex:De,pivot:Qe,pivotIndex:Be,aggFunc:st}}function sx(i,o,C){if(!i.applyOrder||!i.state)return;let P=[];i.state.forEach(B=>{B.colId!=null&&P.push(B.colId)}),xa(o.cols,P,o,C)}function xa(i,o,C,P){if(i==null)return;let B=[],W={};o.forEach(ie=>{if(W[ie])return;let ue=i.map[ie];ue&&(B.push(ue),W[ie]=!0)});let $=0;if(i.list.forEach(ie=>{let ue=ie.getColId();if(W[ue]!=null)return;ue.startsWith(vu)?B.splice($++,0,ie):B.push(ie)}),B=mh(B,P),!fh(B,C.getColTree())){pi(39);return}i.list=B}function bI(i,o,C,P,B){let W={};o.forEach(_e=>W[_e.colId]=_e);let $={};i.forEach(_e=>{W[_e.colId]&&($[_e.colId]=!0)});let ie=i.filter(_e=>$[_e.colId]),ue=o.filter(_e=>$[_e.colId]),De=[];ue.forEach((_e,Be)=>{let Qe=ie&&ie[Be];if(Qe&&Qe.colId!==_e.colId){let st=P.getCol(Qe.colId);st&&De.push(st)}}),De.length&&B.dispatchEvent({type:"columnMoved",columns:De,column:De.length===1?De[0]:null,finished:!0,source:C})}var Do=(i,o,C,P)=>{let B=i[C.getId()],W=i[P.getId()],$=B!=null,ie=W!=null;if($&&ie)return B-W;if($)return-1;if(ie)return 1;let ue=o.indexOf(C),De=o.indexOf(P),_e=ue>=0,Be=De>=0;return _e&&Be?ue-De:_e?-1:1},vh="ag-Grid-SelectionColumn",RP=class extends ei{constructor(){super(...arguments),this.beanName="selectionColSvc"}postConstruct(){this.addManagedPropertyListener("rowSelection",i=>{this.onSelectionOptionsChanged(i.currentValue,i.previousValue,ml(i.source))})}addSelectionCols(i){let o=this.selectionCols;o!=null&&(i.list=o.list.concat(i.list),i.tree=o.tree.concat(i.tree),es(i))}createSelectionCols(i,o){var Qe,st,Ct,Ot,Pt,Kt;let C=()=>{var ti;Am(this.beans,(ti=this.selectionCols)==null?void 0:ti.tree),this.selectionCols=null},P=i.treeDepth,W=((st=(Qe=this.selectionCols)==null?void 0:Qe.treeDepth)!=null?st:-1)==P,$=this.generateSelectionCols();if(Rn($,(Ot=(Ct=this.selectionCols)==null?void 0:Ct.list)!=null?Ot:[])&&W)return;C();let{colGroupSvc:ue}=this.beans,De=(Pt=ue==null?void 0:ue.findDepth(i.tree))!=null?Pt:0,_e=(Kt=ue==null?void 0:ue.balanceTreeForAutoCols($,De))!=null?Kt:[];this.selectionCols={list:$,tree:_e,treeDepth:De,map:{}},o(ti=>{if(!ti)return null;let Jt=ti.filter(ai=>!Tc(ai));return[...$,...Jt]})}isSelectionColumnEnabled(){var $,ie,ue;let{gos:i,beans:o}=this,C=i.get("rowSelection");if(typeof C!="object"||!Ec(i))return!1;let P=((ue=(ie=($=o.autoColSvc)==null?void 0:$.getAutoCols())==null?void 0:ie.length)!=null?ue:0)>0;if(C.checkboxLocation==="autoGroupColumn"&&P)return!1;let B=!!ed(C),W=Hl(C);return B||W}generateSelectionCols(){if(!this.isSelectionColumnEnabled())return[];let{gos:i,validation:o}=this.beans,C=i.get("selectionColumnDef"),P=i.get("enableRtl"),B=et(pe({width:50,resizable:!1,suppressHeaderMenuButton:!0,sortable:!1,suppressMovable:!0,lockPosition:P?"right":"left",comparator(ie,ue,De,_e){let Be=De.isSelected(),Qe=_e.isSelected();return Be===Qe?0:Be?1:-1},editable:!1,suppressFillHandle:!0},C),{colId:vh}),W=B.colId;o==null||o.validateColDef(B,W,!0);let $=new gl(B,null,W,!1);return this.createBean($),[$]}putSelectionColsFirstInList(i,o){if(!o)return null;let C=o.filter(P=>!Tc(P));return[...i,...C]}getSelectionCol(i){var o,C;return(C=(o=this.selectionCols)==null?void 0:o.list.find(P=>cr(P,i)))!=null?C:null}getSelectionCols(){var i,o;return(o=(i=this.selectionCols)==null?void 0:i.list)!=null?o:null}onSelectionOptionsChanged(i,o,C){let P=o&&typeof o!="string"?ed(o):void 0,B=i&&typeof i!="string"?ed(i):void 0,W=P!==B,$=o&&typeof o!="string"?Hl(o):void 0,ie=i&&typeof i!="string"?Hl(i):void 0,ue=$!==ie,De=Wa(i),_e=Wa(o);(W||ue||De!==_e)&&this.beans.colModel.refreshAll(C)}destroy(){var i;Am(this.beans,(i=this.selectionCols)==null?void 0:i.tree),super.destroy()}refreshVisibility(i){var P;if(!this.isSelectionColumnEnabled())return;let o=this.beans,C=(P=o.visibleCols.getAllTrees())!=null?P:[];if(C.length!==0){if(!C.some(pl)){let B=wa(o).find(W=>Tc(W.colId));B&&td(o,{state:[{colId:B.colId,hide:!B.hide}]},i)}if(C.length===1){let B=C[0],W=fs(B);if(!W)return;td(o,{state:[{colId:W.getColId(),hide:!0}]},i)}}}},pl=i=>{var o,C;return i.isColumn?Tc(i):(C=(o=i.getChildren())==null?void 0:o.some(pl))!=null?C:!1};function fs(i){var C;if(i.isColumn)return Tc(i)?i:null;let o=(C=i.getChildren())!=null?C:[];for(let P of o){let B=fs(P);if(B)return B}return null}var vu="ag-Grid-AutoColumn";function av(i){let o=[],C=P=>{for(let B=0;B<P.length;B++){let W=P[B];na(W)?o.push(W):Bs(W)&&C(W.getChildren())}};return C(i),o}function yh(i){return i.reduce((o,C)=>o+C.getActualWidth(),0)}function Am(i,o,C){let P={};if(!o)return;fl(null,o,W=>{P[W.getInstanceId()]=W}),C&&fl(null,C,W=>{P[W.getInstanceId()]=null});let B=Object.values(P).filter(W=>W!=null);i.context.destroyBeans(B)}function Yo(i){return i.getId().startsWith(vu)}function Tc(i){var C;let o=typeof i=="string"?i:"getColId"in i?i.getColId():i.colId;return(C=o==null?void 0:o.startsWith(vh))!=null?C:!1}function Di(i){let o=[];return i instanceof Array?o=i:typeof i=="string"&&(o=i.split(",")),o}function Rn(i,o){return tg(i,o,(C,P)=>C.getColId()===P.getColId())}function es(i){i.map={},i.list.forEach(o=>i.map[o.getId()]=o)}function ml(i){return i==="gridOptionsUpdated"?"gridOptionsChanged":i}function cr(i,o){let C=i===o,P=i.getColDef()===o,B=i.getColId()==o;return C||P||B}var go=(i,o)=>(C,P)=>{let B={value1:void 0,value2:void 0},W=!1;return i&&(i[C]!==void 0&&(B.value1=i[C],W=!0),Ai(P)&&i[P]!==void 0&&(B.value2=i[P],W=!0)),!W&&o&&(o[C]!==void 0&&(B.value1=o[C]),Ai(P)&&o[P]!==void 0&&(B.value2=o[P])),B};function Gs(i,o=null,C,P,B){var Ct;let W=new i0,{existingCols:$,existingGroups:ie,existingColKeys:ue}=gp(P);W.addExistingKeys(ue);let De=lx(i,o,0,C,$,W,ie,B),{colGroupSvc:_e}=i,Be=(Ct=_e==null?void 0:_e.findMaxDepth(De,0))!=null?Ct:0,Qe=_e?_e.balanceColumnTree(De,0,Be,W):De;return fl(null,Qe,(Ot,Pt)=>{Bs(Ot)&&Ot.setupExpandable(),Ot.originalParent=Pt}),{columnTree:Qe,treeDept:Be}}function gp(i){let o=[],C=[],P=[];return i&&fl(null,i,B=>{if(Bs(B)){let W=B;C.push(W)}else{let W=B;P.push(W.getId()),o.push(W)}}),{existingCols:o,existingGroups:C,existingColKeys:P}}function lx(i,o,C,P,B,W,$,ie){if(!o)return[];let{colGroupSvc:ue}=i,De=new Array(o.length);for(let _e=0;_e<De.length;_e++){let Be=o[_e];ue&&ts(Be)?De[_e]=ue.createProvidedColumnGroup(P,Be,C,B,W,$,ie):De[_e]=bh(i,P,Be,B,W,ie)}return De}function bh(i,o,C,P,B,W){var ue;let $=dx(C,P);$&&(P==null||P.splice($.idx,1));let ie=$==null?void 0:$.column;if(ie){let De=ov(i,C,ie.getColId());ie.setColDef(De,C,W),cx(i,ie,De,W)}else{let De=B.getUniqueKey(C.colId,C.field),_e=ov(i,C,De);ie=new gl(_e,C,De,o),i.context.createBean(ie)}return(ue=i.dataTypeSvc)==null||ue.addColumnListeners(ie),ie}function Uy(i,o,C,P,B,W,$,ie){let{sortSvc:ue,pinnedCols:De,colFlex:_e}=i;C!==void 0&&o.setVisible(!C,ie),ue&&(ue.updateColSort(o,P,ie),B!==void 0&&ue.setColSortIndex(o,B)),W!==void 0&&(De==null||De.setColPinned(o,W)),$!==void 0&&(_e==null||_e.setColFlex(o,$))}function cx(i,o,C,P){Uy(i,o,C.hide,C.sort,C.sortIndex,C.pinned,C.flex,P);let B=o.getFlex();if(!(B!=null&&B>0))if(C.width!=null)o.setActualWidth(C.width,P);else{let W=o.getActualWidth();o.setActualWidth(W,P)}}function dx(i,o){if(o)for(let C=0;C<o.length;C++){let P=o[C].getUserProvidedColDef();if(!P)continue;if(i.colId!=null){if(o[C].getId()===i.colId)return{idx:C,column:o[C]};continue}if(i.field!=null){if(P.field===i.field)return{idx:C,column:o[C]};continue}if(P===i)return{idx:C,column:o[C]}}}function ov(i,o,C,P){let{gos:B,dataTypeSvc:W,validation:$}=i,ie={},ue=B.get("defaultColDef");Ko(ie,ue,!1,!0);let De=CI(i,ie,o,C);De&&zA(i,De,ie),Ko(ie,o,!1,!0);let _e=B.get("autoGroupColumnDef"),Be=hl(B);return o.rowGroup&&_e&&Be&&Ko(ie,{sort:_e.sort,initialSort:_e.initialSort},!1,!0),W==null||W.validateColDef(ie),$==null||$.validateColDef(ie,C,P),ie}function CI(i,o,C,P){var $,ie,ue;let B=($=i.dataTypeSvc)==null?void 0:$.updateColDefAndGetColumnType(o,C,P),W=(ue=(ie=C.type)!=null?ie:B)!=null?ue:o.type;return o.type=W,W?Di(W):void 0}function zA(i,o,C){if(!o.length)return;let P=Object.assign({},Vy),B=i.gos.get("columnTypes")||{};for(let[W,$]of Object.entries(B))W in P?pi(34,{key:W}):($.type&&pi(35),P[W]=$);o.forEach(W=>{let $=P[W.trim()];$?Ko(C,$,!1,!0):pi(36,{t:W})})}function ts(i){return i.children!==void 0}function fl(i,o,C){if(o)for(let P=0;P<o.length;P++){let B=o[P];Bs(B)&&fl(B,B.getChildren(),C),C(B,i)}}var vs=class extends ei{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"],i=>this.refreshAll(ml(i.source))),this.addManagedPropertyListeners(["defaultColDef","defaultColGroupDef","columnTypes","suppressFieldDotNotation"],i=>this.recreateColumnDefs(ml(i.source))),this.addManagedPropertyListener("pivotMode",i=>this.setPivotMode(this.gos.get("pivotMode"),ml(i.source)))}createColsFromColDefs(i){var ti,Jt,ai;let{beans:o}=this,{valueCache:C,colAutosize:P,rowGroupColsSvc:B,pivotColsSvc:W,valueColsSvc:$,visibleCols:ie,colViewport:ue,eventSvc:De}=o,_e=this.colDefs?ng(o,i):void 0;C==null||C.expire();let Be=(ti=this.colDefCols)==null?void 0:ti.list,Qe=(Jt=this.colDefCols)==null?void 0:Jt.tree,st=Gs(o,this.colDefs,!0,Qe,i);Am(o,(ai=this.colDefCols)==null?void 0:ai.tree,st.columnTree);let Ct=st.columnTree,Ot=st.treeDept,Pt=av(Ct),Kt={};Pt.forEach(Mi=>Kt[Mi.getId()]=Mi),this.colDefCols={tree:Ct,treeDepth:Ot,list:Pt,map:Kt},B==null||B.extractCols(i,Be),W==null||W.extractCols(i,Be),$==null||$.extractCols(i,Be),this.ready=!0,this.refreshCols(!0),ie.refresh(i),ue.checkViewportColumns(),De.dispatchEvent({type:"columnEverythingChanged",source:i}),_e&&(this.changeEventsDispatching=!0,_e(),this.changeEventsDispatching=!1),De.dispatchEvent({type:"newColumnsLoaded",source:i}),i==="gridInitializing"&&(P==null||P.applyAutosizeStrategy())}refreshCols(i){var Ct;if(!this.colDefCols)return;let o=(Ct=this.cols)==null?void 0:Ct.tree;this.saveColOrder();let{autoColSvc:C,selectionColSvc:P,quickFilter:B,pivotResultCols:W,showRowGroupCols:$,rowAutoHeight:ie,visibleCols:ue,colViewport:De,eventSvc:_e}=this.beans,Be=this.selectCols(W,this.colDefCols);C==null||C.createAutoCols(Be,Ot=>{this.lastOrder=Ot(this.lastOrder),this.lastPivotOrder=Ot(this.lastPivotOrder)}),C==null||C.addAutoCols(Be),P==null||P.createSelectionCols(Be,Ot=>{var Pt,Kt;this.lastOrder=(Pt=Ot(this.lastOrder))!=null?Pt:null,this.lastPivotOrder=(Kt=Ot(this.lastPivotOrder))!=null?Kt:null}),P==null||P.addSelectionCols(Be);let Qe=EP(this.gos,this.showingPivotResult);(!i||Qe)&&this.restoreColOrder(Be),this.positionLockedCols(Be),$==null||$.refresh(),B==null||B.refreshCols(),this.setColSpanActive(),ie==null||ie.setAutoHeightActive(Be),ue.clear(),De.clear(),!tg(o,this.cols.tree)&&_e.dispatchEvent({type:"gridColumnsChanged"})}selectCols(i,o){var ie;let C=(ie=i==null?void 0:i.getPivotResultCols())!=null?ie:null;this.showingPivotResult=C!=null;let{map:P,list:B,tree:W,treeDepth:$}=C!=null?C:o;return this.cols={list:B.slice(),map:pe({},P),tree:W.slice(),treeDepth:$},C&&(C.list.some(De=>{var _e;return((_e=this.cols)==null?void 0:_e.map[De.getColId()])!==void 0})||(this.lastPivotOrder=null)),this.cols}getColsToShow(){var P;if(!this.cols)return[];let i=this.isPivotMode()&&!this.showingPivotResult,o=(P=this.beans.valueColsSvc)==null?void 0:P.columns;return this.cols.list.filter(B=>{let W=Yo(B);if(i){let $=o==null?void 0:o.includes(B);return W||$}else return W||B.isVisible()})}refreshAll(i){this.ready&&(this.refreshCols(!1),this.beans.visibleCols.refresh(i))}setColsVisible(i,o=!1,C){td(this.beans,{state:i.map(P=>({colId:typeof P=="string"?P:P.getColId(),hide:!o}))},C)}restoreColOrder(i){let o=this.showingPivotResult?this.lastPivotOrder:this.lastOrder;if(!o)return;let C=new Map(o.map((De,_e)=>[De,_e]));if(!i.list.some(De=>C.has(De)))return;let B=new Map(i.list.map(De=>[De,!0])),W=o.filter(De=>B.has(De)),$=new Map(W.map(De=>[De,!0])),ie=i.list.filter(De=>!$.has(De)),ue=W.slice();ie.forEach(De=>{let _e=De.getOriginalParent();if(!_e){ue.push(De);return}let Be=[];for(;!Be.length&&_e;)_e.getLeafColumns().forEach(Ot=>{let Pt=ue.indexOf(Ot)>=0,Kt=Be.indexOf(Ot)<0;Pt&&Kt&&Be.push(Ot)}),_e=_e.getOriginalParent();if(!Be.length){ue.push(De);return}let Qe=Be.map(Ct=>ue.indexOf(Ct)),st=Math.max(...Qe);ue.splice(st+1,0,De)}),i.list=ue}positionLockedCols(i){i.list=mh(i.list,this.gos)}saveColOrder(){var i,o,C,P;this.showingPivotResult?this.lastPivotOrder=(o=(i=this.cols)==null?void 0:i.list)!=null?o:null:this.lastOrder=(P=(C=this.cols)==null?void 0:C.list)!=null?P:null}getColumnDefs(){var i,o,C;return this.colDefCols?(C=this.beans.colDefFactory)==null?void 0:C.getColumnDefs(this.colDefCols.list,this.showingPivotResult,this.lastOrder,(o=(i=this.cols)==null?void 0:i.list)!=null?o:[]):void 0}setColSpanActive(){var i;this.colSpanActive=!!((i=this.cols)!=null&&i.list.some(o=>o.getColDef().colSpan!=null))}isPivotMode(){return this.pivotMode}setPivotMode(i,o){if(i===this.pivotMode||(this.pivotMode=i,!this.ready))return;this.refreshCols(!1);let{visibleCols:C,eventSvc:P}=this.beans;C.refresh(o),P.dispatchEvent({type:"columnPivotModeChanged"})}isPivotActive(){var o;let i=(o=this.beans.pivotColsSvc)==null?void 0:o.columns;return this.pivotMode&&!!(i!=null&&i.length)}recreateColumnDefs(i){var o;this.cols&&((o=this.beans.autoColSvc)==null||o.updateAutoCols(i),this.createColsFromColDefs(i))}setColumnDefs(i,o){this.colDefs=i,this.createColsFromColDefs(o)}destroy(){var i;Am(this.beans,(i=this.colDefCols)==null?void 0:i.tree),super.destroy()}getColTree(){var i,o;return(o=(i=this.cols)==null?void 0:i.tree)!=null?o:[]}getColDefColTree(){var i,o;return(o=(i=this.colDefCols)==null?void 0:i.tree)!=null?o:[]}getColDefCols(){var i,o;return(o=(i=this.colDefCols)==null?void 0:i.list)!=null?o:null}getCols(){var i,o;return(o=(i=this.cols)==null?void 0:i.list)!=null?o:[]}getAllCols(){var B,W,$,ie,ue,De,_e;let{pivotResultCols:i,autoColSvc:o,selectionColSvc:C}=this.beans,P=(B=i==null?void 0:i.getPivotResultCols())==null?void 0:B.list;return[($=(W=this.colDefCols)==null?void 0:W.list)!=null?$:[],(ue=(ie=o==null?void 0:o.autoCols)==null?void 0:ie.list)!=null?ue:[],(_e=(De=C==null?void 0:C.selectionCols)==null?void 0:De.list)!=null?_e:[],P!=null?P:[]].flat()}getColsForKeys(i){return i?i.map(o=>this.getCol(o)).filter(o=>o!=null):[]}getColDefCol(i){var o;return(o=this.colDefCols)!=null&&o.list?this.getColFromCollection(i,this.colDefCols):null}getCol(i){return i==null?null:this.getColFromCollection(i,this.cols)}getColFromCollection(i,o){var B,W;if(o==null)return null;let{map:C,list:P}=o;if(typeof i=="string"&&C[i])return C[i];for(let $=0;$<P.length;$++)if(cr(P[$],i))return P[$];return(W=(B=this.beans.autoColSvc)==null?void 0:B.getAutoCol(i))!=null?W:null}},fa=class extends ei{constructor(){super(...arguments),this.dispatchColumnChangedEvent=yI,this.columns=[]}wireBeans(i){this.colModel=i.colModel,this.aggFuncSvc=i.aggFuncSvc,this.visibleCols=i.visibleCols}sortColumns(i){this.columns.sort(i)}setColumns(i,o){this.setColList(i,this.columns,this.eventName,!0,!0,this.columnProcessors.set,o)}addColumns(i,o){this.updateColList(i,this.columns,!0,!0,this.columnProcessors.add,this.eventName,o)}removeColumns(i,o){this.updateColList(i,this.columns,!1,!0,this.columnProcessors.remove,this.eventName,o)}setColList(i=[],o,C,P,B,W,$){let ie=this.colModel.getCols();if(!ie||ie.length===0)return;let ue=new Map;o.forEach((_e,Be)=>ue.set(_e,Be)),o.length=0,Ai(i)&&i.forEach(_e=>{let Be=this.colModel.getColDefCol(_e);Be&&o.push(Be)}),o.forEach((_e,Be)=>{let Qe=ue.get(_e);if(Qe===void 0){ue.set(_e,0);return}P&&Qe!==Be||ue.delete(_e)}),(this.colModel.getColDefCols()||[]).forEach(_e=>{let Be=o.indexOf(_e)>=0;W(_e,Be,$)}),B&&this.colModel.refreshCols(!1),this.visibleCols.refresh($),this.dispatchColumnChangedEvent(this.eventSvc,C,[...ue.keys()],$)}updateColList(i=[],o,C,P,B,W,$){if(!i||i.length===0)return;let ie=!1,ue=new Set;if(i.forEach(_e=>{if(!_e)return;let Be=this.colModel.getColDefCol(_e);if(Be){if(ue.add(Be),C){if(o.indexOf(Be)>=0)return;o.push(Be)}else{let Qe=o.indexOf(Be);if(Qe<0)return;for(let st=Qe+1;st<o.length;st++)ue.add(o[st]);qo(o,Be)}B(Be,C,$),ie=!0}}),!ie)return;P&&this.colModel.refreshCols(!1),this.visibleCols.refresh($);let De=Array.from(ue);this.eventSvc.dispatchEvent({type:W,columns:De,column:De.length===1?De[0]:null,source:$})}extractCols(i,o=[]){let C=this.columns,P=[],B=[],{setFlagFunc:W,getIndexFunc:$,getInitialIndexFunc:ie,getValueFunc:ue,getInitialValueFunc:De}=this.columnExtractors;(this.colModel.getColDefCols()||[]).forEach(st=>{let Ct=o.indexOf(st)<0,Ot=st.getColDef(),Pt=ue(Ot),Kt=De(Ot),ti=$(Ot),Jt=ie(Ot),ai;Pt!==void 0?ai=Pt:ti!==void 0?ti===null?ai=!1:ai=ti>=0:Ct?Kt!==void 0?ai=Kt:Jt!==void 0?ai=Jt!=null&&Jt>=0:ai=!1:ai=C.indexOf(st)>=0,ai&&((Ct?ti!=null||Jt!=null:ti!=null)?P.push(st):B.push(st))});let Be=st=>{let Ct=$(st.getColDef()),Ot=ie(st.getColDef());return Ct!=null?Ct:Ot};P.sort((st,Ct)=>{let Ot=Be(st),Pt=Be(Ct);return Ot===Pt?0:Ot<Pt?-1:1});let Qe=[].concat(P);return C.forEach(st=>{B.indexOf(st)>=0&&Qe.push(st)}),B.forEach(st=>{Qe.indexOf(st)<0&&Qe.push(st)}),C.forEach(st=>{Qe.indexOf(st)<0&&W(st,!1,i)}),Qe.forEach(st=>{C.indexOf(st)<0&&W(st,!0,i)}),this.columns=Qe}restoreColumnOrder(i,o){let C=this.columns,P=this.colModel.getColDefCols();if(!C.length||!P)return i;let B=Object.keys(o),W=new Set(B),$=new Set(B),ie=new Set(C.map(Jt=>{let ai=Jt.getColId();return $.delete(ai),ai}).concat(B)),ue=[],De={},_e=0;for(let Jt=0;Jt<P.length;Jt++){let ai=P[Jt].getColId();ie.has(ai)&&(ue.push(ai),De[ai]=_e++)}let Be=1e3,Qe=!1,st=0,Ct=this.columnOrdering.enableProp,Ot=this.columnOrdering.initialEnableProp,Pt=this.columnOrdering.indexProp,Kt=this.columnOrdering.initialIndexProp,ti=Jt=>{let ai=De[Jt];for(let Mi=st;Mi<ai;Mi++){let qi=ue[Mi];$.has(qi)&&(o[qi][Pt]=Be++,$.delete(qi))}st=ai};return C.forEach(Jt=>{let ai=Jt.getColId();if(W.has(ai))ti(ai),o[ai][Pt]=Be++;else{let Mi=Jt.getColDef();(Mi[Pt]===null||Mi[Pt]===void 0&&Mi[Kt]==null)&&(Qe||(Mi[Ct]||Mi[Ct]===void 0&&Mi[Ot]?ti(ai):($.forEach(Xn=>{o[Xn][Pt]=Be+De[Xn]}),Be+=ue.length,Qe=!0)),i[ai]||(i[ai]={colId:ai}),i[ai][Pt]=Be++)}}),i}},ys=class{constructor(){this.existingIds={}}getInstanceIdForKey(i){let o=this.existingIds[i],C;return typeof o!="number"?C=0:C=o+1,this.existingIds[i]=C,C}},Ch=class extends ei{};function Sh(i,o,C){return C&&i.addDestroyFunc(()=>o.destroyBean(C)),C!=null?C:i}var ag=class{constructor(i){this.cssClassStates={},this.getGui=i}addCssClass(i){this.addOrRemoveCssClass(i,!0)}removeCssClass(i){this.addOrRemoveCssClass(i,!1)}containsCssClass(i){let o=this.getGui();return o?o.classList.contains(i):!1}addOrRemoveCssClass(i,o){if(!i)return;if(i.indexOf(" ")>=0){let P=(i||"").split(" ");if(P.length>1){P.forEach(B=>this.addOrRemoveCssClass(B,o));return}}if(this.cssClassStates[i]!==o&&i.length){let P=this.getGui();P&&P.classList.toggle(i,o),this.cssClassStates[i]=o}}},wh=0,Ri=null,On=class extends ei{constructor(i,o){super(),this.suppressDataRefValidation=!1,this.displayed=!0,this.visible=!0,this.compId=wh++,this.cssClassManager=new ag(()=>this.eGui),this.componentSelectors=new Map((o!=null?o:[]).map(C=>[C.selector,C])),i&&this.setTemplate(i)}preConstruct(){var o,C,P;this.wireTemplate(this.getGui());let i="component-"+((C=(o=Object.getPrototypeOf(this))==null?void 0:o.constructor)==null?void 0:C.name);(P=this.css)==null||P.forEach(B=>this.beans.environment.addGlobalCSS(B,i))}wireTemplate(i,o){i&&this.gos&&(this.applyElementsToComponent(i),this.createChildComponentsFromTags(i,o))}getCompId(){return this.compId}getDataRefAttribute(i){return i.getAttribute?i.getAttribute("data-ref"):null}applyElementsToComponent(i,o,C,P=null){if(o===void 0&&(o=this.getDataRefAttribute(i)),o){let B=this[o];if(B===Ri)this[o]=P!=null?P:i;else{let W=C&&C[o];if(!this.suppressDataRefValidation&&!W)throw new Error(`data-ref: ${o} on ${this.constructor.name} with ${B}`)}}}createChildComponentsFromTags(i,o){Os(i.childNodes).forEach(P=>{if(!(P instanceof HTMLElement))return;let B=this.createComponentFromElement(P,W=>{W.getGui()&&this.copyAttributesFromNode(P,W.getGui())},o);if(B){if(B.addItems&&P.children.length){this.createChildComponentsFromTags(P,o);let W=Array.prototype.slice.call(P.children);B.addItems(W)}this.swapComponentForNode(B,i,P)}else P.childNodes&&this.createChildComponentsFromTags(P,o)})}createComponentFromElement(i,o,C){let P=i.nodeName,B=this.getDataRefAttribute(i),W=P.indexOf("AG-")===0,$=W?this.componentSelectors.get(P):null,ie=null;if($){let ue=C&&B?C[B]:void 0;ie=new $.component(ue),ie.setParentComponent(this),this.createBean(ie,null,o)}else if(W)throw new Error(`selector: ${P}`);return this.applyElementsToComponent(i,B,C,ie),ie}copyAttributesFromNode(i,o){pr(i.attributes,(C,P)=>o.setAttribute(C,P))}swapComponentForNode(i,o,C){let P=i.getGui();o.replaceChild(P,C),o.insertBefore(document.createComment(C.nodeName),P),this.addDestroyFunc(this.destroyBean.bind(this,i))}activateTabIndex(i){let o=this.gos.get("tabIndex");i||(i=[]),i.length||i.push(this.getGui()),i.forEach(C=>C.setAttribute("tabindex",o.toString()))}setTemplate(i,o,C){let P=Gt(i);this.setTemplateFromElement(P,o,C)}setTemplateFromElement(i,o,C,P=!1){if(this.eGui=i,this.suppressDataRefValidation=P,o)for(let B=0;B<o.length;B++){let W=o[B];this.componentSelectors.set(W.selector,W)}this.wireTemplate(i,C)}getGui(){return this.eGui}getFocusableElement(){return this.eGui}getAriaElement(){return this.getFocusableElement()}setParentComponent(i){this.parentComponent=i}getParentComponent(){return this.parentComponent}setGui(i){this.eGui=i}queryForHtmlElement(i){return this.eGui.querySelector(i)}getContainerAndElement(i,o){let C=o;return i==null?null:(C||(C=this.eGui),xc(i)?{element:i,parent:C}:{element:i.getGui(),parent:C})}prependChild(i,o){let{element:C,parent:P}=this.getContainerAndElement(i,o)||{};!C||!P||P.insertAdjacentElement("afterbegin",C)}appendChild(i,o){let{element:C,parent:P}=this.getContainerAndElement(i,o)||{};!C||!P||P.appendChild(C)}isDisplayed(){return this.displayed}setVisible(i,o={}){if(i!==this.visible){this.visible=i;let{skipAriaHidden:C}=o;Ls(this.eGui,i,{skipAriaHidden:C})}}setDisplayed(i,o={}){if(i!==this.displayed){this.displayed=i;let{skipAriaHidden:C}=o;Un(this.eGui,i,{skipAriaHidden:C});let P={type:"displayChanged",visible:this.displayed};this.dispatchLocalEvent(P)}}destroy(){this.parentComponent&&(this.parentComponent=void 0),super.destroy()}addGuiEventListener(i,o,C){this.eGui.addEventListener(i,o,C),this.addDestroyFunc(()=>this.eGui.removeEventListener(i,o))}addCssClass(i){this.cssClassManager.addCssClass(i)}removeCssClass(i){this.cssClassManager.removeCssClass(i)}containsCssClass(i){return this.cssClassManager.containsCssClass(i)}addOrRemoveCssClass(i,o){this.cssClassManager.addOrRemoveCssClass(i,o)}registerCSS(i){this.css||(this.css=[]),this.css.push(i)}};function Ul(i){return typeof i.then=="function"}var js=class EO{constructor(o){this.status=0,this.resolution=null,this.waiters=[],o(C=>this.onDone(C),C=>this.onReject(C))}static all(o){return o.length?new EO(C=>{let P=o.length,B=new Array(P);o.forEach((W,$)=>{W.then(ie=>{B[$]=ie,P--,P===0&&C(B)})})}):EO.resolve()}static resolve(o=null){return new EO(C=>C(o))}then(o){return new EO(C=>{this.status===1?C(o(this.resolution)):this.waiters.push(P=>C(o(P)))})}onDone(o){this.status=1,this.resolution=o,this.waiters.forEach(C=>C(o))}onReject(o){}};function r0(i){return i?i.prototype&&"getGui"in i.prototype:!1}function Ky(i,o,C,P){let{name:B}=C,W,$,ie,ue,De,_e;if(o){let Be=o,Qe=Be[B+"Selector"],st=Qe?Qe(P):null,Ct=Ot=>{typeof Ot=="string"?W=Ot:Ot!=null&&Ot!==!0&&(i.isFrameworkComponent(Ot)?ie=Ot:$=Ot)};st?(Ct(st.component),ue=st.params,De=st.popup,_e=st.popupPosition):Ct(Be[B])}return{compName:W,jsComp:$,fwComp:ie,paramsFromSelector:ue,popupFromSelector:De,popupPositionFromSelector:_e}}var ux=class extends ei{constructor(){super(...arguments),this.beanName="userCompFactory"}wireBeans(i){this.agCompUtils=i.agCompUtils,this.registry=i.registry,this.frameworkCompWrapper=i.frameworkCompWrapper,this.gridOptions=i.gridOptions}getCompDetailsFromGridOptions(i,o,C,P=!1){return this.getCompDetails(this.gridOptions,i,o,C,P)}getCompDetails(i,o,C,P,B=!1){var ti;let{name:W,cellRenderer:$}=o,{compName:ie,jsComp:ue,fwComp:De,paramsFromSelector:_e,popupFromSelector:Be,popupPositionFromSelector:Qe}=Ky(this.beans.frameworkOverrides,i,o,P),st,Ct=Jt=>{let ai=this.registry.getUserComponent(W,Jt);ai&&(ue=ai.componentFromFramework?void 0:ai.component,De=ai.componentFromFramework?ai.component:void 0,st=ai.params)};if(ie!=null&&Ct(ie),ue==null&&De==null&&C!=null&&Ct(C),ue&&$&&!r0(ue)&&(ue=(ti=this.agCompUtils)==null?void 0:ti.adaptFunction(o,ue)),!ue&&!De){let{validation:Jt}=this.beans;B&&(ie!==C||!C)?ie?Jt!=null&&Jt.isProvidedUserComp(ie)||Ea(50,{compName:ie}):C?Jt||Ea(260,et(pe({},this.gos.getModuleErrorParams()),{propName:W,compName:C})):Ea(216,{name:W}):C&&!Jt&&Ea(146,{comp:C});return}let Ot=this.mergeParams(i,o,P,_e,st),Pt=ue==null,Kt=ue!=null?ue:De;return{componentFromFramework:Pt,componentClass:Kt,params:Ot,type:o,popupFromSelector:Be,popupPositionFromSelector:Qe,newAgStackInstance:()=>this.newAgStackInstance(Kt,Pt,Ot,o)}}newAgStackInstance(i,o,C,P){var ie;let B=!o,W;B?W=new i:W=this.frameworkCompWrapper.wrap(i,P.mandatoryMethods,P.optionalMethods,P),this.createBean(W);let $=(ie=W.init)==null?void 0:ie.call(W,C);return $==null?js.resolve(W):$.then(()=>W)}mergeParams(i,o,C,P=null,B){let W=this.gos.getGridCommonParams();Ko(W,C),B&&Ko(W,B);let $=i,ie=$&&$[o.name+"Params"];if(typeof ie=="function"){let ue=ie(C);Ko(W,ue)}else typeof ie=="object"&&Ko(W,ie);return Ko(W,P),W}},SI={name:"dateComponent",mandatoryMethods:["getDate","setDate"],optionalMethods:["afterGuiAttached","setInputPlaceholder","setInputAriaLabel","setDisabled","refresh"]},BA={name:"dragAndDropImageComponent",mandatoryMethods:["setIcon","setLabel"]},hx={name:"headerComponent",optionalMethods:["refresh"]},Dm={name:"innerHeaderComponent"},GA={name:"innerHeaderGroupComponent"},wI={name:"headerGroupComponent"},xI={name:"innerRenderer",cellRenderer:!0,optionalMethods:["afterGuiAttached"]},jA={name:"cellRenderer",optionalMethods:["refresh","afterGuiAttached"],cellRenderer:!0},Em={name:"cellRenderer",optionalMethods:["refresh","afterGuiAttached"]},s0={name:"loadingCellRenderer",cellRenderer:!0},VA={name:"cellEditor",mandatoryMethods:["getValue"],optionalMethods:["isPopup","isCancelBeforeStart","isCancelAfterEnd","getPopupPosition","focusIn","focusOut","afterGuiAttached","refresh"]},l0={name:"loadingOverlayComponent",optionalMethods:["refresh"]},Vs={name:"noRowsOverlayComponent",optionalMethods:["refresh"]},HA={name:"tooltipComponent"},gx={name:"filter",mandatoryMethods:["isFilterActive","doesFilterPass","getModel","setModel"],optionalMethods:["afterGuiAttached","afterGuiDetached","onNewRowsLoaded","getModelAsString","onFloatingFilterChanged","onAnyFilterChanged","refresh"]},qy={name:"floatingFilterComponent",mandatoryMethods:["onParentModelChanged"],optionalMethods:["afterGuiAttached","refresh"]},c0={name:"fullWidthCellRenderer",optionalMethods:["refresh","afterGuiAttached"],cellRenderer:!0},vl={name:"loadingCellRenderer",cellRenderer:!0},og={name:"groupRowRenderer",optionalMethods:["afterGuiAttached"],cellRenderer:!0},Im={name:"detailCellRenderer",optionalMethods:["refresh"],cellRenderer:!0};function rv(i,o){return i.getCompDetailsFromGridOptions(BA,"agDragAndDropImage",o,!0)}function px(i,o,C){return i.getCompDetails(o,xI,void 0,C)}function Tm(i,o,C){return i.getCompDetails(o,hx,"agColumnHeader",C)}function mx(i,o,C){return i.getCompDetails(o,Dm,void 0,C)}function Rm(i,o){let C=o.columnGroup.getColGroupDef();return i.getCompDetails(C,wI,"agColumnGroupHeader",o)}function fr(i,o,C){return i.getCompDetails(o,GA,void 0,C)}function fx(i,o){return i.getCompDetailsFromGridOptions(c0,void 0,o,!0)}function vx(i,o){return i.getCompDetailsFromGridOptions(vl,"agLoadingCellRenderer",o,!0)}function WA(i,o){return i.getCompDetailsFromGridOptions(og,"agGroupRowRenderer",o,!0)}function Mn(i,o){return i.getCompDetailsFromGridOptions(Im,"agDetailCellRenderer",o,!0)}function Yy(i,o,C){return i.getCompDetails(o,jA,void 0,C)}function UA(i,o,C){return i.getCompDetails(o,Em,void 0,C)}function yl(i,o,C){return i.getCompDetails(o,s0,"agSkeletonCellRenderer",C,!0)}function sv(i,o,C){return i.getCompDetails(o,VA,"agCellEditor",C,!0)}function yu(i,o,C,P){return i.getCompDetails(o,gx,P,C,!0)}function bs(i,o){return i.getCompDetailsFromGridOptions(SI,"agDateInput",o,!0)}function ca(i,o){return i.getCompDetailsFromGridOptions(l0,"agLoadingOverlay",o,!0)}function Aa(i,o){return i.getCompDetailsFromGridOptions(Vs,"agNoRowsOverlay",o,!0)}function lv(i,o){return i.getCompDetails(o.colDef,HA,"agTooltipComponent",o,!0)}function yx(i,o,C,P){return i.getCompDetails(o,qy,P,C)}function bx(i,o){return Ky(i,o,gx)}function Cx(i,o,C){return i.mergeParams(o,gx,C)}function xh(i){let o=i;return o!=null&&o.getFrameworkComponentInstance!=null?o.getFrameworkComponentInstance():i}var Sx=new Set,cv={},is={},Xy,wx=!1;function xx(i){let[o,C]=i.version.split(".")||[],[P,B]=Xy.split(".")||[];return o===P&&C===B}function PP(i){Xy||(Xy=i.version);let o=C=>`You are using incompatible versions of AG Grid modules. Major and minor versions should always match across modules. ${C} Please update all modules to the same version.`;if(i.version?xx(i)||Vl(o(`'${i.moduleName}' is version ${i.version} but the other modules are version ${Xy}.`)):Vl(o(`'${i.moduleName}' is incompatible.`)),i.validate){let C=i.validate();C.isValid||Vl(`${C.message}`)}}function Zy(i,o){var B;PP(i);let C=(B=i.rowModels)!=null?B:["all"];Sx.add(i);let P;o!==void 0?(wx=!0,is[o]===void 0&&(is[o]={}),P=is[o]):P=cv,C.forEach(W=>{P[W]===void 0&&(P[W]={}),P[W][i.moduleName]=i}),i.dependsOn&&i.dependsOn.forEach(W=>Zy(W,o))}function LP(i){delete is[i]}function Ua(i,o,C){let P=B=>{var W,$,ie;return!!((W=cv[B])!=null&&W[i])||!!((ie=($=is[o])==null?void 0:$[B])!=null&&ie[i])};return P(C)||P("all")}function No(){return wx}function dr(i,o){var P,B,W,$,ie;let C=(P=is[i])!=null?P:{};return[...Object.values((B=cv.all)!=null?B:{}),...Object.values((W=C.all)!=null?W:{}),...Object.values(($=cv[o])!=null?$:{}),...Object.values((ie=C[o])!=null?ie:{})]}function bu(){return new Set(Sx)}function ha(i,o){var P,B,W;let C=(P=is[i])!=null?P:{};return[...Object.values((B=C.all)!=null?B:{}),...Object.values((W=C[o])!=null?W:{})]}var _n=class{static register(i){Zy(i,void 0)}static registerModules(i){i.forEach(o=>Zy(o,void 0))}},rg=class{constructor(i){this.beans={},this.createdBeans=[],this.destroyed=!1,!(!i||!i.beanClasses)&&(this.beanDestroyComparator=i.beanDestroyComparator,this.init(i))}init(i){var o;Object.entries(i.providedBeanInstances).forEach(([C,P])=>{this.beans[C]=P}),i.beanClasses.forEach(C=>{let P=new C;P.beanName?this.beans[P.beanName]=P:console.error(`Bean ${C.name} is missing beanName`),this.createdBeans.push(P)}),(o=i.derivedBeans)==null||o.forEach(C=>{let{beanName:P,bean:B}=C(this);this.beans[P]=B,this.createdBeans.push(B)}),i.beanInitComparator&&this.createdBeans.sort(i.beanInitComparator),this.initBeans(this.createdBeans)}getBeanInstances(){return Object.values(this.beans)}createBean(i,o){if(!i)throw Error("null bean");return this.initBeans([i],o),i}initBeans(i,o){i.forEach(C=>{var P,B;(P=C.preWireBeans)==null||P.call(C,this.beans),(B=C.wireBeans)==null||B.call(C,this.beans)}),i.forEach(C=>{var P;return(P=C.preConstruct)==null?void 0:P.call(C)}),o&&i.forEach(o),i.forEach(C=>{var P;return(P=C.postConstruct)==null?void 0:P.call(C)})}getBeans(){return this.beans}getBean(i){return this.beans[i]}destroy(){if(this.destroyed)return;this.destroyed=!0;let i=this.getBeanInstances();this.beanDestroyComparator&&i.sort(this.beanDestroyComparator),this.destroyBeans(i),this.beans={},this.createdBeans=[]}destroyBean(i){var o;(o=i==null?void 0:i.destroy)==null||o.call(i)}destroyBeans(i){if(i)for(let o=0;o<i.length;o++)this.destroyBean(i[o]);return[]}isDestroyed(){return this.destroyed}},ga=class extends rg{init(i){this.gridId=i.gridId,this.beans.context=this,this.destroyCallback=i.destroyCallback,super.init(i)}destroy(){var i;super.destroy(),LP(this.gridId),(i=this.destroyCallback)==null||i.call(this)}getGridId(){return this.gridId}},$e="ag-column-first",zo="ag-column-last";function Ka(i,o,C,P){return Qn(i)?[]:KA(i.headerClass,i,o,C,P)}function d0(i,o,C,P){return Qn(i)?[]:KA(i.toolPanelClass,i,o,C,P)}function $y(i,o,C){i.addOrRemoveCssClass($e,C.isColAtEdge(o,"first")),i.addOrRemoveCssClass(zo,C.isColAtEdge(o,"last"))}function OP(i,o,C,P){return o.addGridCommonParams({colDef:i,column:C,columnGroup:P})}function KA(i,o,C,P,B){if(Qn(i))return[];let W;if(typeof i=="function"){let $=OP(o,C,P,B);W=i($)}else W=i;return typeof W=="string"?[W]:Array.isArray(W)?[...W]:[]}function pp(i,o){let C=ZC(i);C.requestAnimationFrame?C.requestAnimationFrame(o):C.webkitRequestAnimationFrame?C.webkitRequestAnimationFrame(o):C.setTimeout(o,0)}var qA=class extends ei{constructor(){super(...arguments),this.beanName="animationFrameSvc",this.createTasksP1={list:[],sorted:!1},this.createTasksP2={list:[],sorted:!1},this.destroyTasks=[],this.ticking=!1,this.scrollGoingDown=!0,this.lastPage=0,this.lastScrollTop=0,this.taskCount=0,this.cancelledTasks=new Set}setScrollTop(i){var B;let{gos:o,pagination:C}=this.beans,P=o.get("pagination");if(this.scrollGoingDown=i>=this.lastScrollTop,P&&i===0){let W=(B=C==null?void 0:C.getCurrentPage())!=null?B:0;W!==this.lastPage&&(this.lastPage=W,this.scrollGoingDown=!0)}this.lastScrollTop=i}postConstruct(){this.active=!this.gos.get("suppressAnimationFrame")}verifyAnimationFrameOn(i){this.active===!1&&pi(92,{methodName:i})}createTask(i,o,C){this.verifyAnimationFrameOn(C);let P={task:i,index:o,createOrder:++this.taskCount};this.addTaskToList(this[C],P),this.schedule()}cancelTask(i){this.cancelledTasks.add(i)}addTaskToList(i,o){i.list.push(o),i.sorted=!1}sortTaskList(i){if(i.sorted)return;let o=this.scrollGoingDown?1:-1;i.list.sort((C,P)=>C.index!==P.index?o*(P.index-C.index):P.createOrder-C.createOrder),i.sorted=!0}addDestroyTask(i){this.verifyAnimationFrameOn("createTasksP3"),this.destroyTasks.push(i),this.schedule()}executeFrame(i){this.verifyAnimationFrameOn("executeFrame");let o=this.createTasksP1,C=o.list,P=this.createTasksP2,B=P.list,W=this.destroyTasks,$=new Date().getTime(),ie=new Date().getTime()-$,ue=i<=0,De=this.beans.ctrlsSvc.getScrollFeature();for(;ue||ie<i;){if(!De.scrollGridIfNeeded()){let Be;if(C.length)this.sortTaskList(o),Be=C.pop().task;else if(B.length)this.sortTaskList(P),Be=B.pop().task;else if(W.length)Be=W.pop();else{this.cancelledTasks.clear();break}this.cancelledTasks.has(Be)||Be()}ie=new Date().getTime()-$}C.length||B.length||W.length?this.requestFrame():this.ticking=!1}flushAllFrames(){this.active&&this.executeFrame(-1)}schedule(){this.active&&(this.ticking||(this.ticking=!0,this.requestFrame()))}requestFrame(){let i=this.executeFrame.bind(this,60);pp(this.beans,i)}isQueueEmpty(){return!this.ticking}},Qt={BACKSPACE:"Backspace",TAB:"Tab",ENTER:"Enter",ESCAPE:"Escape",SPACE:" ",LEFT:"ArrowLeft",UP:"ArrowUp",RIGHT:"ArrowRight",DOWN:"ArrowDown",DELETE:"Delete",F2:"F2",PAGE_UP:"PageUp",PAGE_DOWN:"PageDown",PAGE_HOME:"Home",PAGE_END:"End",A:"KeyA",C:"KeyC",D:"KeyD",V:"KeyV",X:"KeyX",Y:"KeyY",Z:"KeyZ"},bl=!1,Mh=0;function Yi(i){Mh>0||(i.addEventListener("keydown",Ji),i.addEventListener("mousedown",Ji))}function u0(i){Mh>0||(i.removeEventListener("keydown",Ji),i.removeEventListener("mousedown",Ji))}function Ji(i){let o=bl,C=i.type==="keydown";C&&(i.ctrlKey||i.metaKey||i.altKey)||o!==C&&(bl=C)}function Kl(i){let o=Ao(i);return Yi(o),Mh++,()=>{Mh--,u0(o)}}function hi(){return bl}function pa(i,o,C){o.addManagedElementListeners(C,{keydown:P=>{if(!P.defaultPrevented&&P.key===Qt.TAB){let B=P.shiftKey;mi(i,C,!1,B)||Cs(i,B)&&P.preventDefault()}}})}function sg(i,o,C=!1){let P=Wo,B=Mo;o&&(B+=", "+o),C&&(B+=', [tabindex="-1"]');let W=Array.prototype.slice.apply(i.querySelectorAll(P)).filter(ue=>ht(ue)),$=Array.prototype.slice.apply(i.querySelectorAll(B));return $.length?((ue,De)=>ue.filter(_e=>De.indexOf(_e)===-1))(W,$):W}function Cu(i,o=!1,C=!1){let P=sg(i,null,C),B=o?Sa(P):P[0];return B?(B.focus({preventScroll:!0}),!0):!1}function mi(i,o,C,P){let B=sg(o,C?':not([tabindex="-1"])':null),W=Fa(i),$;C?$=B.findIndex(ue=>ue.contains(W)):$=B.indexOf(W);let ie=$+(P?-1:1);return ie<0||ie>=B.length?null:B[ie]}function Wn(i,o=5){let C=0;for(;i&&ma(i)===null&&++C<=o;)i=i.parentElement;return ma(i)===null?null:i}function ns(i,o){return i.ctrlsSvc.get("gridCtrl").focusInnerElement(o)}function kh(i){var o;return i.gos.get("suppressHeaderFocus")||!!((o=i.overlays)!=null&&o.isExclusive())}function Od(i){var o;return i.gos.get("suppressCellFocus")||!!((o=i.overlays)!=null&&o.isExclusive())}function Cs(i,o,C=!1){let P=i.ctrlsSvc.get("gridCtrl");return!C&&P.focusNextInnerContainer(o)?!0:((C||!o&&!P.isDetailGrid())&&P.forceFocusOutOfContainer(o),!1)}var dv=/[&<>"']/g,po={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"};function ql(i,o){if(i==null)return null;let C=i.toString().toString();return o?C:C.replace(dv,P=>po[P])}function Yl(i,o=!1){return i===Qt.DELETE?!0:!o&&i===Qt.BACKSPACE?yn():!1}var Gr=class extends ei{constructor(i,o,C,P){super(),this.cellCtrl=i,this.rowNode=C,this.rowCtrl=P,this.beans=o}setComp(i){this.eGui=i}onKeyDown(i){let o=i.key;switch(o){case Qt.ENTER:this.onEnterKeyDown(i);break;case Qt.F2:this.onF2KeyDown(i);break;case Qt.ESCAPE:this.onEscapeKeyDown(i);break;case Qt.TAB:this.onTabKeyDown(i);break;case Qt.BACKSPACE:case Qt.DELETE:this.onBackspaceOrDeleteKeyDown(o,i);break;case Qt.DOWN:case Qt.UP:case Qt.RIGHT:case Qt.LEFT:this.onNavigationKeyDown(i,o);break}}onNavigationKeyDown(i,o){var C;this.cellCtrl.editing||(i.shiftKey&&this.cellCtrl.isRangeSelectionEnabled()?this.onShiftRangeSelect(i):(C=this.beans.navigation)==null||C.navigateToNextCell(i,o,this.cellCtrl.cellPosition,!0),i.preventDefault())}onShiftRangeSelect(i){let{rangeSvc:o,navigation:C}=this.beans;if(!o)return;let P=o.extendLatestRangeInDirection(i);P&&(C==null||C.ensureCellVisible(P))}onTabKeyDown(i){var o;(o=this.beans.navigation)==null||o.onTabKeyDown(this.cellCtrl,i)}onBackspaceOrDeleteKeyDown(i,o){var ue;let{cellCtrl:C,beans:P,rowNode:B}=this,{gos:W,rangeSvc:$,eventSvc:ie}=P;if(!C.editing){if(ie.dispatchEvent({type:"keyShortcutChangedCellStart"}),Yl(i,W.get("enableCellEditingOnBackspace"))){if($&&Dr(W))$.clearCellRangeCellValues({dispatchWrapperEvents:!0,wrapperEventSource:"deleteKey"});else if(C.isCellEditable()){let{column:De}=C,_e=this.beans.valueSvc.getDeleteValue(De,B);B.setDataValue(De,_e,"cellClear")}}else(ue=P.editSvc)==null||ue.startRowOrCellEdit(C,i,o);ie.dispatchEvent({type:"keyShortcutChangedCellEnd"})}}onEnterKeyDown(i){var P,B;let{cellCtrl:o,beans:C}=this;if(o.editing||this.rowCtrl.editing)o.stopEditingAndFocus(!1,i.shiftKey);else if(C.gos.get("enterNavigatesVertically")){let W=i.shiftKey?Qt.UP:Qt.DOWN;(P=C.navigation)==null||P.navigateToNextCell(null,W,o.cellPosition,!1)}else(B=C.editSvc)==null||B.startRowOrCellEdit(o,Qt.ENTER,i),o.editing&&i.preventDefault()}onF2KeyDown(i){var P;let{cellCtrl:o,beans:C}=this;o.editing||(P=C.editSvc)==null||P.startRowOrCellEdit(o,Qt.F2,i)}onEscapeKeyDown(i){var P;let{cellCtrl:o,beans:C}=this;o.editing&&((P=C.editSvc)==null||P.stopRowOrCellEdit(o,!0),o.focusCell(!0))}processCharacter(i){var B;if(i.target!==this.eGui||this.cellCtrl.editing)return;let P=i.key;P===Qt.SPACE?this.onSpaceKeyDown(i):(B=this.beans.editSvc)!=null&&B.startRowOrCellEdit(this.cellCtrl,P,i)&&i.preventDefault()}onSpaceKeyDown(i){var C;let{gos:o}=this.beans;!this.cellCtrl.editing&&Ec(o)&&((C=this.beans.selectionSvc)==null||C.handleSelectionEvent(i,this.rowNode,"spaceKey")),i.preventDefault()}destroy(){super.destroy()}},Ra=class extends ei{constructor(i,o,C){super(),this.cellCtrl=i,this.column=C,this.beans=o}onMouseEvent(i,o){if(!Zi(o))switch(i){case"click":this.onCellClicked(o);break;case"mousedown":case"touchstart":this.onMouseDown(o);break;case"dblclick":this.onCellDoubleClicked(o);break;case"mouseout":this.onMouseOut(o);break;case"mouseover":this.onMouseOver(o);break}}onCellClicked(i){var De;if((De=this.beans.touchSvc)!=null&&De.handleCellDoubleClick(this,i))return;let{eventSvc:o,rangeSvc:C,gos:P,editSvc:B}=this.beans,W=i.ctrlKey||i.metaKey;C&&W&&C.getCellRangeCount(this.cellCtrl.cellPosition)>1&&C.intersectLastRange(!0);let $=this.cellCtrl.createEvent(i,"cellClicked");o.dispatchEvent($);let ie=this.column.getColDef();ie.onCellClicked&&window.setTimeout(()=>{this.beans.frameworkOverrides.wrapOutgoing(()=>{ie.onCellClicked($)})},0),(P.get("singleClickEdit")||ie.singleClickEdit)&&!P.get("suppressClickEdit")&&!(i.shiftKey&&(C==null?void 0:C.getCellRanges().length)!=0)&&(B==null||B.startRowOrCellEdit(this.cellCtrl))}onCellDoubleClicked(i){let{column:o,beans:C,cellCtrl:P}=this,{eventSvc:B,frameworkOverrides:W,gos:$,editSvc:ie}=C,ue=o.getColDef(),De=P.createEvent(i,"cellDoubleClicked");B.dispatchEvent(De),typeof ue.onCellDoubleClicked=="function"&&window.setTimeout(()=>{W.wrapOutgoing(()=>{ue.onCellDoubleClicked(De)})},0),!$.get("singleClickEdit")&&!$.get("suppressClickEdit")&&(ie==null||ie.startRowOrCellEdit(P,null,i))}onMouseDown(i){let{ctrlKey:o,metaKey:C,shiftKey:P}=i,B=i.target,{cellCtrl:W,beans:$}=this,{eventSvc:ie,rangeSvc:ue,focusSvc:De,gos:_e}=$;if(this.isRightClickInExistingRange(i))return;let Be=ue&&!ue.isEmpty(),Qe=this.containsWidget(B),{cellPosition:st}=W;if(!P||!Be){let Ot=_e.get("enableCellTextSelection")&&i.defaultPrevented,Pt=(ii()||Ot)&&!W.editing&&!Ps(B)&&!Qe;W.focusCell(Pt)}if(P&&Be&&!De.isCellFocused(st)){i.preventDefault();let Ct=De.getFocusedCell();if(Ct){let{column:Ot,rowIndex:Pt,rowPinned:Kt}=Ct,ti=$.rowRenderer.getRowByPosition({rowIndex:Pt,rowPinned:Kt}),Jt=ti==null?void 0:ti.getCellCtrl(Ot);Jt!=null&&Jt.editing&&Jt.stopEditing(),De.setFocusedCell({column:Ot,rowIndex:Pt,rowPinned:Kt,forceBrowserFocus:!0,preventScrollOnBrowserFocus:!0})}}if(!Qe){if(ue)if(P)ue.extendLatestRangeToCell(st);else{let Ct=o||C;ue.setRangeToCell(st,Ct)}ie.dispatchEvent(this.cellCtrl.createEvent(i,"cellMouseDown"))}}isRightClickInExistingRange(i){let{rangeSvc:o}=this.beans;if(o){let C=o.isCellInAnyRange(this.cellCtrl.cellPosition),P=i.button===2||i.ctrlKey&&this.beans.gos.get("allowContextMenuWithControlKey");if(C&&P)return!0}return!1}containsWidget(i){return uo(i,"ag-selection-checkbox",3)||uo(i,"ag-drag-handle",3)}onMouseOut(i){if(this.mouseStayingInsideCell(i))return;let{eventSvc:o,colHover:C}=this.beans;o.dispatchEvent(this.cellCtrl.createEvent(i,"cellMouseOut")),C==null||C.clearMouseOver()}onMouseOver(i){if(this.mouseStayingInsideCell(i))return;let{eventSvc:o,colHover:C}=this.beans;o.dispatchEvent(this.cellCtrl.createEvent(i,"cellMouseOver")),C==null||C.setMouseOver([this.column])}mouseStayingInsideCell(i){if(!i.target||!i.relatedTarget)return!1;let{eGui:o}=this.cellCtrl,C=o.contains(i.target),P=o.contains(i.relatedTarget);return C&&P}destroy(){super.destroy()}},Hs=class extends ei{constructor(i,o){super(),this.cellCtrl=i,this.beans=o,this.column=i.column,this.rowNode=i.rowNode}setupRowSpan(){this.rowSpan=this.column.getRowSpan(this.rowNode),this.addManagedListeners(this.beans.eventSvc,{newColumnsLoaded:()=>this.onNewColumnsLoaded()})}setComp(i){this.eGui=i,this.setupColSpan(),this.setupRowSpan(),this.onLeftChanged(),this.onWidthChanged(),this.applyRowSpan()}onNewColumnsLoaded(){let i=this.column.getRowSpan(this.rowNode);this.rowSpan!==i&&(this.rowSpan=i,this.applyRowSpan(!0))}onDisplayColumnsChanged(){let i=this.getColSpanningList();tg(this.colsSpanning,i)||(this.colsSpanning=i,this.onWidthChanged(),this.onLeftChanged())}setupColSpan(){this.column.getColDef().colSpan!=null&&(this.colsSpanning=this.getColSpanningList(),this.addManagedListeners(this.beans.eventSvc,{displayedColumnsChanged:this.onDisplayColumnsChanged.bind(this),displayedColumnsWidthChanged:this.onWidthChanged.bind(this)}))}onWidthChanged(){if(!this.eGui)return;let i=this.getCellWidth();this.eGui.style.width=`${i}px`}getCellWidth(){return this.colsSpanning?this.colsSpanning.reduce((i,o)=>i+o.getActualWidth(),0):this.column.getActualWidth()}getColSpanningList(){let{column:i,rowNode:o}=this,C=i.getColSpan(o),P=[];if(C===1)P.push(i);else{let B=i,W=i.getPinned();for(let $=0;B&&$<C&&(P.push(B),B=this.beans.visibleCols.getColAfter(B),!(!B||Qn(B)||W!==B.getPinned()));$++);}return P}onLeftChanged(){if(!this.eGui)return;let i=this.modifyLeftForPrintLayout(this.getCellLeft());this.eGui.style.left=i+"px"}getCellLeft(){let i;return this.beans.gos.get("enableRtl")&&this.colsSpanning?i=Sa(this.colsSpanning):i=this.column,i.getLeft()}modifyLeftForPrintLayout(i){if(!this.cellCtrl.printLayout||this.column.getPinned()==="left")return i;let{visibleCols:o}=this.beans,C=o.getColsLeftWidth();if(this.column.getPinned()==="right"){let P=o.bodyWidth;return C+P+(i||0)}return C+(i||0)}applyRowSpan(i){if(this.rowSpan===1&&!i)return;let C=hh(this.beans)*this.rowSpan;this.eGui.style.height=`${C}px`,this.eGui.style.zIndex="1"}destroy(){super.destroy()}},MI="ag-cell",Qy="ag-cell-auto-height",YA="ag-cell-normal-height",kI="ag-cell-focus",Mx="ag-cell-first-right-pinned",AI="ag-cell-last-left-pinned",DI="ag-cell-not-inline-editing",EI="ag-cell-wrap-text",_d="cellCtrl";function Jy(i,o){return ui(i,o,_d)}var id=0,nd=class extends ei{constructor(i,o,C,P){super(),this.column=i,this.rowNode=o,this.rowCtrl=P,this.rangeFeature=void 0,this.positionFeature=void 0,this.customStyleFeature=void 0,this.tooltipFeature=void 0,this.mouseListener=void 0,this.keyboardListener=void 0,this.suppressRefreshCell=!1,this.onCompAttachedFuncs=[],this.onEditorAttachedFuncs=[],this.beans=C,this.instanceId=i.getId()+"-"+id++,this.colIdSanitised=ql(this.column.getId()),this.createCellPosition(),this.updateAndFormatValue(!1)}shouldRestoreFocus(){return this.beans.focusSvc.shouldRestoreFocus(this.cellPosition)}onFocusOut(){this.beans.focusSvc.clearRestoreFocus()}addFeatures(){var P;let{beans:i}=this;this.positionFeature=new Hs(this,i),this.customStyleFeature=(P=i.cellStyles)==null?void 0:P.createCellCustomStyleFeature(this,i),this.mouseListener=new Ra(this,i,this.column),this.keyboardListener=new Gr(this,i,this.rowNode,this.rowCtrl),this.column.isTooltipEnabled()&&this.enableTooltipFeature();let{rangeSvc:o}=i;o&&Dr(i.gos)&&(this.rangeFeature=o.createCellRangeFeature(i,this))}removeFeatures(){let i=this.beans.context;this.positionFeature=i.destroyBean(this.positionFeature),this.customStyleFeature=i.destroyBean(this.customStyleFeature),this.mouseListener=i.destroyBean(this.mouseListener),this.keyboardListener=i.destroyBean(this.keyboardListener),this.rangeFeature=i.destroyBean(this.rangeFeature),this.disableTooltipFeature()}enableTooltipFeature(i,o){var C;this.tooltipFeature=(C=this.beans.tooltipSvc)==null?void 0:C.enableCellTooltipFeature(this,i,o)}disableTooltipFeature(){this.tooltipFeature=this.beans.context.destroyBean(this.tooltipFeature)}setComp(i,o,C,P,B,W){var $,ie,ue,De,_e;this.comp=i,this.eGui=o,this.printLayout=P,W!=null||(W=this),this.addDomData(W),this.addFeatures(),W.addDestroyFunc(()=>this.removeFeatures()),this.onSuppressCellFocusChanged(this.beans.gos.get("suppressCellFocus")),this.onCellFocused(this.focusEventToRestore),this.applyStaticCssClasses(),this.setWrapText(),this.onFirstRightPinnedChanged(),this.onLastLeftPinnedChanged(),this.onColumnHover(),this.setupControlComps(),this.setupAutoHeight(C,W),this.refreshFirstAndLastStyles(),this.refreshAriaColIndex(),($=this.positionFeature)==null||$.setComp(o),(ie=this.customStyleFeature)==null||ie.setComp(i),(ue=this.tooltipFeature)==null||ue.refreshTooltip(),(De=this.keyboardListener)==null||De.setComp(this.eGui),this.rangeFeature&&this.rangeFeature.setComp(i,o),B&&this.isCellEditable()?(_e=this.beans.editSvc)==null||_e.startEditing(this):this.showValue(),this.onCompAttachedFuncs.length&&(this.onCompAttachedFuncs.forEach(Be=>Be()),this.onCompAttachedFuncs=[])}setupAutoHeight(i,o){var C;this.isAutoHeight=this.column.isAutoHeight(),!(!this.isAutoHeight||!i)&&((C=this.beans.rowAutoHeight)==null||C.setupCellAutoHeight(this,i,o))}getCellAriaRole(){var i;return(i=this.column.getColDef().cellAriaRole)!=null?i:"gridcell"}isCellRenderer(){let i=this.column.getColDef();return i.cellRenderer!=null||i.cellRendererSelector!=null}getValueToDisplay(){var i;return(i=this.valueFormatted)!=null?i:this.value}showValue(i=!1){var De;let{beans:o,column:C,rowNode:P,rangeFeature:B}=this,{userCompFactory:W}=o,$=this.getValueToDisplay(),ie;if(P.stub&&((De=P.groupData)==null?void 0:De[C.getId()])==null){let _e=this.createCellRendererParams();ie=yl(W,C.getColDef(),_e)}else if(this.isCellRenderer()){let _e=this.createCellRendererParams();ie=Yy(W,C.getColDef(),_e)}this.comp.setRenderDetails(ie,$,i),B&&pp(o,()=>B==null?void 0:B.refreshHandle())}setupControlComps(){let i=this.column.getColDef();this.includeSelection=this.isIncludeControl(this.isCheckboxSelection(i)),this.includeRowDrag=this.isIncludeControl(i.rowDrag),this.includeDndSource=this.isIncludeControl(i.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(i){return this.rowNode.rowPinned!=null?!1:typeof i=="function"||i===!0}isCheckboxSelection(i){let{rowSelection:o}=this.beans.gridOptions;return i.checkboxSelection||Tc(this.column)&&o&&typeof o!="string"&&ed(o)}refreshShouldDestroy(){let i=this.column.getColDef(),o=this.includeSelection!=this.isIncludeControl(this.isCheckboxSelection(i)),C=this.includeRowDrag!=this.isIncludeControl(i.rowDrag),P=this.includeDndSource!=this.isIncludeControl(i.dndSource),B=this.isAutoHeight!=this.column.isAutoHeight();return o||C||P||B}onPopupEditorClosed(){this.editing&&this.stopEditingAndFocus()}stopEditing(i=!1){var o,C;return(C=(o=this.beans.editSvc)==null?void 0:o.stopEditing(this,i))!=null?C:!1}createCellRendererParams(){let{value:i,valueFormatted:o,column:C,rowNode:P,comp:B,eGui:W,beans:{valueSvc:$,gos:ie}}=this;return ie.addGridCommonParams({value:i,valueFormatted:o,getValue:()=>$.getValueForDisplay(C,P),setValue:De=>$.setValue(P,C,De),formatValue:this.formatValue.bind(this),data:P.data,node:P,pinned:C.getPinned(),colDef:C.getColDef(),column:C,refreshCell:this.refreshCell.bind(this),eGridCell:W,eParentOfValue:B.getParentOfValue(),registerRowDragger:(De,_e,Be,Qe)=>this.registerRowDragger(De,_e,Qe),setTooltip:(De,_e)=>{var Be;ie.assertModuleRegistered("Tooltip",3),this.tooltipFeature&&this.disableTooltipFeature(),this.enableTooltipFeature(De,_e),(Be=this.tooltipFeature)==null||Be.refreshTooltip()}})}onCellChanged(i){i.column===this.column&&this.refreshCell({})}refreshOrDestroyCell(i){var o;this.refreshShouldDestroy()?(o=this.rowCtrl)==null||o.recreateCell(this):this.refreshCell(i)}refreshCell(i){var De,_e,Be,Qe,st,Ct;if(this.suppressRefreshCell||this.editing)return;let o=this.column.getColDef(),C=i!=null&&!!i.newData,P=i!=null&&!!i.suppressFlash,B=o.field==null&&o.valueGetter==null&&o.showRowGroup==null,W=i&&i.forceRefresh||B||C,$=!!this.comp,ie=this.updateAndFormatValue($),ue=W||ie;if($){if(ue){this.showValue(C);let Ot=(De=this.beans.filterManager)==null?void 0:De.isSuppressFlashingCellsBecauseFiltering();!P&&!Ot&&o.enableCellChangeFlash&&((_e=this.beans.cellFlashSvc)==null||_e.flashCell(this)),(Be=this.customStyleFeature)==null||Be.applyUserStyles(),(Qe=this.customStyleFeature)==null||Qe.applyClassesFromColDef()}(st=this.tooltipFeature)==null||st.refreshTooltip(),(Ct=this.customStyleFeature)==null||Ct.applyCellClassRules()}}stopEditingAndFocus(i=!1,o=!1){var C;(C=this.beans.editSvc)==null||C.stopEditingAndFocus(this,i,o)}isCellEditable(){return this.column.isCellEditable(this.rowNode)}formatValue(i){var o;return(o=this.callValueFormatter(i))!=null?o:i}callValueFormatter(i){return this.beans.valueSvc.formatValue(this.column,this.rowNode,i)}updateAndFormatValue(i){let o=this.value,C=this.valueFormatted;return this.value=this.beans.valueSvc.getValueForDisplay(this.column,this.rowNode),this.valueFormatted=this.callValueFormatter(this.value),i?!this.valuesAreEqual(o,this.value)||this.valueFormatted!=C:!0}valuesAreEqual(i,o){let C=this.column.getColDef();return C.equals?C.equals(i,o):i===o}addDomData(i){let o=this.eGui;Pd(this.beans.gos,o,_d,this),i.addDestroyFunc(()=>Pd(this.beans.gos,o,_d,null))}createEvent(i,o){let{rowNode:C,column:P,value:B}=this;return this.beans.gos.addGridCommonParams({type:o,node:C,data:C.data,value:B,column:P,colDef:P.getColDef(),rowPinned:C.rowPinned,event:i,rowIndex:C.rowIndex})}processCharacter(i){var o;(o=this.keyboardListener)==null||o.processCharacter(i)}onKeyDown(i){var o;(o=this.keyboardListener)==null||o.onKeyDown(i)}onMouseEvent(i,o){var C;(C=this.mouseListener)==null||C.onMouseEvent(i,o)}getColSpanningList(){return this.positionFeature.getColSpanningList()}onLeftChanged(){var i;this.comp&&((i=this.positionFeature)==null||i.onLeftChanged())}onDisplayedColumnsChanged(){this.eGui&&(this.refreshAriaColIndex(),this.refreshFirstAndLastStyles())}refreshFirstAndLastStyles(){let{comp:i,column:o,beans:C}=this;$y(i,o,C.visibleCols)}refreshAriaColIndex(){let i=this.beans.visibleCols.getAriaColIndex(this.column);Ve(this.eGui,i)}onWidthChanged(){var i;return(i=this.positionFeature)==null?void 0:i.onWidthChanged()}getRowPosition(){let{rowIndex:i,rowPinned:o}=this.cellPosition;return{rowIndex:i,rowPinned:o}}updateRangeBordersIfRangeCount(){var i;this.comp&&((i=this.rangeFeature)==null||i.updateRangeBordersIfRangeCount())}onCellSelectionChanged(){var i;this.comp&&((i=this.rangeFeature)==null||i.onCellSelectionChanged())}isRangeSelectionEnabled(){return this.rangeFeature!=null}focusCell(i=!1){this.beans.focusSvc.setFocusedCell({rowIndex:this.cellPosition.rowIndex,column:this.column,rowPinned:this.rowNode.rowPinned,forceBrowserFocus:i})}onRowIndexChanged(){var i;this.createCellPosition(),this.onCellFocused(),(i=this.rangeFeature)==null||i.onCellSelectionChanged()}onSuppressCellFocusChanged(i){this.eGui&&$r(this.eGui,"tabindex",i?void 0:-1)}onFirstRightPinnedChanged(){if(!this.comp)return;let i=this.column.isFirstRightPinned();this.comp.addOrRemoveCssClass(Mx,i)}onLastLeftPinnedChanged(){if(!this.comp)return;let i=this.column.isLastLeftPinned();this.comp.addOrRemoveCssClass(AI,i)}onCellFocused(i){var B;let{beans:o}=this;if(Od(o))return;let C=o.focusSvc.isCellFocused(this.cellPosition);if(!this.comp){C&&(i!=null&&i.forceBrowserFocus)&&(this.focusEventToRestore=i);return}if(this.focusEventToRestore=void 0,this.comp.addOrRemoveCssClass(kI,C),C&&i&&i.forceBrowserFocus){let W=this.comp.getFocusableElement();if(this.editing){let $=sg(W,null,!0);$.length&&(W=$[0])}W.focus({preventScroll:!!i.preventScrollOnBrowserFocus})}let P=o.gos.get("editType")==="fullRow";!C&&!P&&this.editing&&((B=o.editSvc)==null||B.stopRowOrCellEdit(this)),C&&this.rowCtrl.announceDescription()}createCellPosition(){let{rowIndex:i,rowPinned:o}=this.rowNode;this.cellPosition={rowIndex:i,rowPinned:cl(o),column:this.column}}setInlineEditingCss(){var i;(i=this.beans.editSvc)==null||i.setInlineEditingCss(this.rowCtrl)}applyStaticCssClasses(){let{comp:i}=this;i.addOrRemoveCssClass(MI,!0),i.addOrRemoveCssClass(DI,!0);let o=this.column.isAutoHeight()==!0;i.addOrRemoveCssClass(Qy,o),i.addOrRemoveCssClass(YA,!o)}onColumnHover(){var i;(i=this.beans.colHover)==null||i.onCellColumnHover(this.column,this.comp)}onColDefChanged(){var i;this.comp&&(this.column.isTooltipEnabled()?(this.disableTooltipFeature(),this.enableTooltipFeature()):this.disableTooltipFeature(),this.setWrapText(),this.editing?(i=this.beans.editSvc)==null||i.handleColDefChanged(this):this.refreshOrDestroyCell({forceRefresh:!0,suppressFlash:!0}))}setWrapText(){let i=this.column.getColDef().wrapText==!0;this.comp.addOrRemoveCssClass(EI,i)}dispatchCellContextMenuEvent(i){let o=this.column.getColDef(),C=this.createEvent(i,"cellContextMenu"),{beans:P}=this;P.eventSvc.dispatchEvent(C),o.onCellContextMenu&&window.setTimeout(()=>{P.frameworkOverrides.wrapOutgoing(()=>{o.onCellContextMenu(C)})},0)}getCellRenderer(){var i,o;return(o=(i=this.comp)==null?void 0:i.getCellRenderer())!=null?o:null}destroy(){this.onCompAttachedFuncs=[],this.onEditorAttachedFuncs=[],super.destroy()}createSelectionCheckbox(){var o;let i=(o=this.beans.selectionSvc)==null?void 0:o.createCheckboxSelectionComponent();if(i)return this.beans.context.createBean(i),i.init({rowNode:this.rowNode,column:this.column}),i}createDndSource(){let i=this.beans.registry.createDynamicBean("dndSourceComp",!1,this.rowNode,this.column,this.eGui);return i&&this.beans.context.createBean(i),i}registerRowDragger(i,o,C){if(this.customRowDragComp){this.customRowDragComp.setDragElement(i,o);return}let P=this.createRowDragComp(i,o,C);P&&(this.customRowDragComp=P,this.addDestroyFunc(()=>{this.beans.context.destroyBean(P),this.customRowDragComp=null}))}createRowDragComp(i,o,C){var B;let P=(B=this.beans.rowDragSvc)==null?void 0:B.createRowDragCompForCell(this.rowNode,this.column,()=>this.value,i,o,C);if(P)return this.beans.context.createBean(P),P}cellEditorAttached(){this.onEditorAttachedFuncs.forEach(i=>i()),this.onEditorAttachedFuncs=[]}},uv="__ag_grid_instance";function eb(i,o){o[uv]=i.gridInstanceId}function ad(i,o){return kx(i,o.target)}function kx(i,o){let C=o;for(;C;){let P=C[uv];if(Ai(P))return P===i.gridInstanceId;C=C.parentElement}return!1}function Ss(i,o){var C,P;return(P=(C=Jy(i,o.target))==null?void 0:C.cellPosition)!=null?P:null}function h0(i,o){let C=Fo(i.gos,"normal"),P=o,B,W;if(P.clientX!=null||P.clientY!=null?(B=P.clientX,W=P.clientY):(B=P.x,W=P.y),C){let $=i.ctrlsSvc.getScrollFeature(),ie=$.getVScrollPosition(),ue=$.getHScrollPosition();B+=ue.left,W+=ie.top}return{x:B,y:W}}var Pm=(i=>(i[i.ToolPanel=0]="ToolPanel",i[i.HeaderCell=1]="HeaderCell",i[i.RowDrag=2]="RowDrag",i[i.ChartPanel=3]="ChartPanel",i[i.AdvancedFilterBuilder=4]="AdvancedFilterBuilder",i))(Pm||{}),Ah=class extends ei{constructor(){super(...arguments),this.beanName="dragAndDrop",this.dragSourceAndParamsList=[],this.dropTargets=[]}wireBeans(i){this.ctrlsSvc=i.ctrlsSvc,this.dragSvc=i.dragSvc,this.environment=i.environment,this.userCompFactory=i.userCompFactory}addDragSource(i,o=!1){let C={eElement:i.eElement,dragStartPixels:i.dragStartPixels,onDragStart:this.onDragStart.bind(this,i),onDragStop:this.onDragStop.bind(this),onDragging:this.onDragging.bind(this),onDragCancel:this.onDragCancel.bind(this),includeTouch:o};this.dragSourceAndParamsList.push({params:C,dragSource:i}),this.dragSvc.addDragSource(C)}getDragAndDropImageComponent(){let{dragAndDropImageComp:i}=this;return!i||!i.comp?null:i.comp}removeDragSource(i){let{dragSourceAndParamsList:o,dragSvc:C}=this,P=o.find(B=>B.dragSource===i);P&&(C.removeDragSource(P.params),qo(o,P))}destroy(){let{dragSourceAndParamsList:i,dragSvc:o,dropTargets:C}=this;i.forEach(P=>o.removeDragSource(P.params)),i.length=0,C.length=0,this.clearDragAndDropProperties(),super.destroy()}nudge(){this.dragging&&this.onDragging(this.eventLastTime,!0)}onDragStart(i,o){var C;this.dragging=!0,this.dragSource=i,this.eventLastTime=o,this.dragItem=i.getDragItem(),(C=i.onDragStarted)==null||C.call(i),this.createDragAndDropImageComponent()}onDragStop(i){var C,P;(P=(C=this.dragSource)==null?void 0:C.onDragStopped)==null||P.call(C);let{lastDropTarget:o}=this;if(o!=null&&o.onDragStop){let B=this.createDropTargetEvent(o,i,null,null,!1);o.onDragStop(B)}this.clearDragAndDropProperties()}onDragCancel(){var C;let{dragSource:i,lastDropTarget:o}=this;(C=i==null?void 0:i.onDragCancelled)==null||C.call(i),o!=null&&o.onDragCancel&&o.onDragCancel(this.createDropTargetEvent(o,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(i,o=!1){var _e,Be;let C=this.getHorizontalDirection(i),P=this.getVerticalDirection(i);this.eventLastTime=i,this.positionDragAndDropImageComp(i);let B=this.dropTargets.filter(Qe=>this.isMouseOnDropTarget(i,Qe)),W=this.findCurrentDropTarget(i,B),{lastDropTarget:$,dragSource:ie,dragAndDropImageComp:ue,dragItem:De}=this;if(W!==$){if(this.leaveLastTargetIfExists(i,C,P,o),$!==null&&W===null&&((_e=ie==null?void 0:ie.onGridExit)==null||_e.call(ie,De)),$===null&&W!==null&&((Be=ie==null?void 0:ie.onGridEnter)==null||Be.call(ie,De)),this.enterDragTargetIfExists(W,i,C,P,o),W&&ue){let{comp:Qe,promise:st}=ue;Qe?Qe.setIcon(W.getIconName?W.getIconName():null,!1):st.then(Ct=>{Ct&&Ct.setIcon(W.getIconName?W.getIconName():null,!1)})}this.lastDropTarget=W}else if(W&&W.onDragging){let Qe=this.createDropTargetEvent(W,i,C,P,o);W.onDragging(Qe)}}getAllContainersFromDropTarget(i){let o=i.getSecondaryContainers?i.getSecondaryContainers():null,C=[[i.getContainer()]];return o?C.concat(o):C}isMouseOnDropTarget(i,o){let C=this.getAllContainersFromDropTarget(o),P=!1,B=(ie,ue)=>{for(let De of ue){let{width:_e,height:Be,left:Qe,right:st,top:Ct,bottom:Ot}=De.getBoundingClientRect();if(_e===0||Be===0)return!1;let Pt=ie.clientX>=Qe&&ie.clientX<st,Kt=ie.clientY>=Ct&&ie.clientY<Ot;if(!Pt||!Kt)return!1}return!0};for(let ie of C)if(B(i,ie)){P=!0;break}let{eElement:W,type:$}=this.dragSource;return o.targetContainsSource&&!o.getContainer().contains(W)?!1:P&&o.isInterestedIn($,W)}findCurrentDropTarget(i,o){let C=o.length;if(C===0)return null;if(C===1)return o[0];let B=Jf(this.beans).elementsFromPoint(i.clientX,i.clientY);for(let W of B)for(let $ of o)if(this.getAllContainersFromDropTarget($).flatMap(ue=>ue).indexOf(W)!==-1)return $;return null}enterDragTargetIfExists(i,o,C,P,B){if(i&&i.onDragEnter){let W=this.createDropTargetEvent(i,o,C,P,B);i.onDragEnter(W)}}leaveLastTargetIfExists(i,o,C,P){let{lastDropTarget:B}=this;if(!B)return;if(B.onDragLeave){let $=this.createDropTargetEvent(B,i,o,C,P);B.onDragLeave($)}let W=this.getDragAndDropImageComponent();W&&W.setIcon(null,!1)}addDropTarget(i){this.dropTargets.push(i)}removeDropTarget(i){this.dropTargets=this.dropTargets.filter(o=>o.getContainer()!==i.getContainer())}hasExternalDropZones(){return this.dropTargets.some(i=>i.external)}findExternalZone(i){return this.dropTargets.filter(C=>C.external).find(C=>C.getContainer()===i.getContainer())||null}isDropZoneWithinThisGrid(i){let C=this.ctrlsSvc.getGridBodyCtrl().eGridBody,{dropZoneTarget:P}=i;return C.contains(P)}getHorizontalDirection(i){var P;let o=(P=this.eventLastTime)==null?void 0:P.clientX,C=i.clientX;return o===C?null:o>C?"left":"right"}getVerticalDirection(i){var P;let o=(P=this.eventLastTime)==null?void 0:P.clientY,C=i.clientY;return o===C?null:o>C?"up":"down"}createDropTargetEvent(i,o,C,P,B){let W=i.getContainer(),$=W.getBoundingClientRect(),{dragItem:ie,dragSource:ue,gos:De}=this,_e=o.clientX-$.left,Be=o.clientY-$.top;return De.addGridCommonParams({event:o,x:_e,y:Be,vDirection:P,hDirection:C,dragSource:ue,fromNudge:B,dragItem:ie,dropZoneTarget:W})}positionDragAndDropImageComp(i){let o=this.getDragAndDropImageComponent();o&&Sm(o.getGui(),i,this.beans)}removeDragAndDropImageComponent(){var o;let{dragAndDropImageComp:i}=this;if(i){let{comp:C}=i;if(C){let P=C.getGui();(o=this.dragAndDropImageParent)==null||o.removeChild(P),this.destroyBean(C)}}this.dragAndDropImageComp=null}createDragAndDropImageComponent(){let{dragSource:i}=this;if(!i)return;let o=rv(this.userCompFactory,{dragSource:i});if(!o)return;let C=o.newAgStackInstance();this.dragAndDropImageComp={promise:C},C.then(P=>{!P||!this.isAlive()||(this.processDragAndDropImageComponent(P),this.dragAndDropImageComp.comp=P)})}processDragAndDropImageComponent(i){let{dragSource:o,environment:C}=this;if(!o)return;let P=i.getGui();P.style.setProperty("position","absolute"),P.style.setProperty("z-index","9999"),eb(this.gos,P),C.applyThemeClasses(P),i.setIcon(null,!1);let{dragItemName:B}=o;typeof B=="function"&&(B=B()),i.setLabel(B||""),P.style.top="20px",P.style.left="20px";let W=zy(this.beans);this.dragAndDropImageParent=W,W?W.appendChild(P):pi(54)}registerGridDropTarget(i,o){let C={getContainer:i,isInterestedIn:P=>P===1||P===0,getIconName:()=>"notAllowed"};this.addDropTarget(C),o.addDestroyFunc(()=>this.removeDropTarget(C))}},Lm=class{constructor(i){this.tickingInterval=null,this.onScrollCallback=null,this.scrollContainer=i.scrollContainer,this.scrollHorizontally=i.scrollAxis.indexOf("x")!==-1,this.scrollVertically=i.scrollAxis.indexOf("y")!==-1,this.scrollByTick=i.scrollByTick!=null?i.scrollByTick:20,i.onScrollCallback&&(this.onScrollCallback=i.onScrollCallback),this.scrollVertically&&(this.getVerticalPosition=i.getVerticalPosition,this.setVerticalPosition=i.setVerticalPosition),this.scrollHorizontally&&(this.getHorizontalPosition=i.getHorizontalPosition,this.setHorizontalPosition=i.setHorizontalPosition),this.shouldSkipVerticalScroll=i.shouldSkipVerticalScroll||(()=>!1),this.shouldSkipHorizontalScroll=i.shouldSkipHorizontalScroll||(()=>!1)}check(i,o=!1){let C=o||this.shouldSkipVerticalScroll();if(C&&this.shouldSkipHorizontalScroll())return;let P=this.scrollContainer.getBoundingClientRect(),B=this.scrollByTick;this.tickLeft=i.clientX<P.left+B,this.tickRight=i.clientX>P.right-B,this.tickUp=i.clientY<P.top+B&&!C,this.tickDown=i.clientY>P.bottom-B&&!C,this.tickLeft||this.tickRight||this.tickUp||this.tickDown?this.ensureTickingStarted():this.ensureCleared()}ensureTickingStarted(){this.tickingInterval===null&&(this.tickingInterval=window.setInterval(this.doTick.bind(this),100),this.tickCount=0)}doTick(){this.tickCount++;let i=this.tickCount>20?200:this.tickCount>10?80:40;if(this.scrollVertically){let o=this.getVerticalPosition();this.tickUp&&this.setVerticalPosition(o-i),this.tickDown&&this.setVerticalPosition(o+i)}if(this.scrollHorizontally){let o=this.getHorizontalPosition();this.tickLeft&&this.setHorizontalPosition(o-i),this.tickRight&&this.setHorizontalPosition(o+i)}this.onScrollCallback&&this.onScrollCallback()}ensureCleared(){this.tickingInterval&&(window.clearInterval(this.tickingInterval),this.tickingInterval=null)}};function tb(i){let{rowIndex:o,rowPinned:C,column:P}=i;return`${o}.${C==null?"null":C}.${P.getId()}`}function Ki(i,o){let C=i.column===o.column,P=i.rowPinned===o.rowPinned,B=i.rowIndex===o.rowIndex;return C&&P&&B}function g0(i,o){switch(i.rowPinned){case"top":if(o.rowPinned!=="top")return!0;break;case"bottom":if(o.rowPinned!=="bottom")return!1;break;default:if(Ai(o.rowPinned))return o.rowPinned!=="top";break}return i.rowIndex<o.rowIndex}function aa(i,o){return!i&&!o?!0:i&&!o||!i&&o?!1:i.rowIndex===o.rowIndex&&i.rowPinned==o.rowPinned}function Xl(i){let o=0,C,{pinnedRowModel:P,rowModel:B,pageBounds:W}=i;return P!=null&&P.getPinnedTopRowCount()?C="top":B.getRowCount()?(C=null,o=W.getFirstRow()):P!=null&&P.getPinnedBottomRowCount()&&(C="bottom"),C===void 0?null:{rowIndex:o,rowPinned:C}}function mp(i){let o,C=null,{pinnedRowModel:P,pageBounds:B}=i,W=P==null?void 0:P.getPinnedBottomRowCount(),$=P==null?void 0:P.getPinnedTopRowCount();return W?(C="bottom",o=W-1):i.rowModel.getRowCount()?(C=null,o=B.getLastRow()):$&&(C="top",o=$-1),o===void 0?null:{rowIndex:o,rowPinned:C}}function hv(i,o){var C,P;switch(o.rowPinned){case"top":return(C=i.pinnedRowModel)==null?void 0:C.getPinnedTopRow(o.rowIndex);case"bottom":return(P=i.pinnedRowModel)==null?void 0:P.getPinnedBottomRow(o.rowIndex);default:return i.rowModel.getRow(o.rowIndex)}}function Eo(i,o){let C=i.rowRenderer.getRowByPosition(o);return C?C.getCellCtrl(o.column):null}var Om=class extends ei{constructor(i){super(),this.eContainer=i}postConstruct(){let{rowModel:i,gos:o,ctrlsSvc:C}=this.beans;_o(o,i)&&(this.clientSideRowModel=i),C.whenReady(this,P=>{let B=P.gridBodyCtrl;this.autoScrollService=new Lm({scrollContainer:B.eBodyViewport,scrollAxis:"y",getVerticalPosition:()=>B.scrollFeature.getVScrollPosition().top,setVerticalPosition:W=>B.scrollFeature.setVerticalScrollPosition(W),onScrollCallback:()=>{this.onDragging(this.lastDraggingEvent)}})})}getContainer(){return this.eContainer}isInterestedIn(i){return i===2}getIconName(){return this.gos.get("rowDragManaged")&&this.shouldPreventRowMove()?"notAllowed":"move"}shouldPreventRowMove(){var $;let{rowGroupColsSvc:i,filterManager:o,sortSvc:C}=this.beans;return!!((($=i==null?void 0:i.columns)!=null?$:[]).length||(o==null?void 0:o.isAnyFilterPresent())||(C==null?void 0:C.isSortActive()))}getRowNodes(i){var P,B;if(!this.isFromThisGrid(i))return i.dragItem.rowNodes||[];let o=i.dragItem.rowNode;if(this.gos.get("rowDragMultiRow")){let W=[...(B=(P=this.beans.selectionSvc)==null?void 0:P.getSelectedNodes())!=null?B:[]].sort(($,ie)=>$.rowIndex==null||ie.rowIndex==null?0:this.getRowIndexNumber($)-this.getRowIndexNumber(ie));if(W.indexOf(o)!==-1)return W}return[o]}onDragEnter(i){i.dragItem.rowNodes=this.getRowNodes(i),this.dispatchGridEvent("rowDragEnter",i),this.getRowNodes(i).forEach(o=>{this.setRowNodeDragging(o,!0)}),this.onEnterOrDragging(i)}onDragging(i){this.onEnterOrDragging(i)}isFromThisGrid(i){let{dragSourceDomDataKey:o}=i.dragSource;return o===this.gos.getDomDataKey()}onEnterOrDragging(i){this.dispatchGridEvent("rowDragMove",i),this.lastDraggingEvent=i;let o=h0(this.beans,i).y;this.gos.get("rowDragManaged")&&this.doManagedDrag(i,o),this.autoScrollService.check(i.event)}doManagedDrag(i,o){let{dragAndDrop:C,gos:P}=this.beans,B=this.isFromThisGrid(i),W=P.get("rowDragManaged"),$=i.dragItem.rowNodes;W&&this.shouldPreventRowMove()||(P.get("suppressMoveWhenRowDragging")||!B?C.isDropZoneWithinThisGrid(i)&&this.clientSideRowModel.highlightRowAtPixel($[0],o):this.moveRows($,o))}getRowIndexNumber(i){let o=i.getRowIndexString();return parseInt(Sa(o.split("-")),10)}moveRowAndClearHighlight(i){let o=this.clientSideRowModel,C=o.getLastHighlightedRowNode(),P=C&&C.highlighted==="Below",B=h0(this.beans,i).y,W=i.dragItem.rowNodes,$=P?1:0;if(this.isFromThisGrid(i))W.forEach(ie=>{ie.rowTop<B&&($-=1)}),this.moveRows(W,B,$);else{let ie=ev(this.gos),ue=o.getRowIndexAtPixel(B)+1;o.getHighlightPosition(B)==="Above"&&ue--,o.updateRowData({add:W.filter(De=>{var _e;return!o.getRowNode((_e=ie==null?void 0:ie({data:De.data,level:0,rowPinned:De.rowPinned}))!=null?_e:De.data.id)}).map(De=>De.data),addIndex:ue})}this.clearRowHighlight()}clearRowHighlight(){this.clientSideRowModel.highlightRowAtPixel(null)}moveRows(i,o,C=0){let P=this.beans.focusSvc,B=P.getFocusedCell(),W=B&&Eo(this.beans,B);this.clientSideRowModel.ensureRowsAtPixel(i,o,C)&&(W?W.focusCell():P.clearFocusedCell())}addRowDropZone(i){if(!i.getContainer()){pi(55);return}let o=this.beans.dragAndDrop;if(o.findExternalZone(i)){pi(56);return}let C={getContainer:i.getContainer};i.fromGrid?C=i:(i.onDragEnter&&(C.onDragEnter=B=>{i.onDragEnter(this.draggingToRowDragEvent("rowDragEnter",B))}),i.onDragLeave&&(C.onDragLeave=B=>{i.onDragLeave(this.draggingToRowDragEvent("rowDragLeave",B))}),i.onDragging&&(C.onDragging=B=>{i.onDragging(this.draggingToRowDragEvent("rowDragMove",B))}),i.onDragStop&&(C.onDragStop=B=>{i.onDragStop(this.draggingToRowDragEvent("rowDragEnd",B))}),i.onDragCancel&&(C.onDragCancel=B=>{i.onDragCancel(this.draggingToRowDragEvent("rowDragCancel",B))}));let P=pe({isInterestedIn:B=>B===2,getIconName:()=>"move",external:!0},C);o.addDropTarget(P),this.addDestroyFunc(()=>o.removeDropTarget(P))}getRowDropZone(i){let o=this.getContainer.bind(this),C=this.onDragEnter.bind(this),P=this.onDragLeave.bind(this),B=this.onDragging.bind(this),W=this.onDragStop.bind(this),$=this.onDragCancel.bind(this),ie;return i?ie={getContainer:o,onDragEnter:i.onDragEnter?ue=>{C(ue),i.onDragEnter(this.draggingToRowDragEvent("rowDragEnter",ue))}:C,onDragLeave:i.onDragLeave?ue=>{P(ue),i.onDragLeave(this.draggingToRowDragEvent("rowDragLeave",ue))}:P,onDragging:i.onDragging?ue=>{B(ue),i.onDragging(this.draggingToRowDragEvent("rowDragMove",ue))}:B,onDragStop:i.onDragStop?ue=>{W(ue),i.onDragStop(this.draggingToRowDragEvent("rowDragEnd",ue))}:W,onDragCancel:i.onDragCancel?ue=>{$(ue),i.onDragCancel(this.draggingToRowDragEvent("rowDragCancel",ue))}:$,fromGrid:!0}:ie={getContainer:o,onDragEnter:C,onDragLeave:P,onDragging:B,onDragStop:W,onDragCancel:$,fromGrid:!0},ie}draggingToRowDragEvent(i,o){let C=this.beans,{pageBounds:P,rowModel:B,gos:W}=C,$=h0(C,o).y,ie=$>P.getCurrentPageHeight(),ue=-1,De;return ie||(ue=B.getRowIndexAtPixel($),De=B.getRow(ue)),W.addGridCommonParams({type:i,event:o.event,node:o.dragItem.rowNode,nodes:o.dragItem.rowNodes,overIndex:ue,overNode:De,y:$,vDirection:o.vDirection})}dispatchGridEvent(i,o){let C=this.draggingToRowDragEvent(i,o);this.eventSvc.dispatchEvent(C)}onDragLeave(i){this.dispatchGridEvent("rowDragLeave",i),this.stopDragging(i),this.gos.get("rowDragManaged")&&this.clearRowHighlight()}onDragStop(i){this.dispatchGridEvent("rowDragEnd",i),this.stopDragging(i);let{dragAndDrop:o,gos:C}=this.beans;C.get("rowDragManaged")&&(C.get("suppressMoveWhenRowDragging")||!this.isFromThisGrid(i))&&o.isDropZoneWithinThisGrid(i)&&this.moveRowAndClearHighlight(i)}onDragCancel(i){this.dispatchGridEvent("rowDragCancel",i),this.stopDragging(i);let{dragAndDrop:o,gos:C}=this.beans;C.get("rowDragManaged")&&(C.get("suppressMoveWhenRowDragging")||!this.isFromThisGrid(i))&&o.isDropZoneWithinThisGrid(i)&&this.clearRowHighlight()}stopDragging(i){this.autoScrollService.ensureCleared(),this.getRowNodes(i).forEach(o=>{this.setRowNodeDragging(o,!1)})}setRowNodeDragging(i,o){i.dragging!==o&&(i.dragging=o,i.dispatchRowEvent("draggingChanged"))}};function p0(i,o,C){if(C===0)return!1;let P=Math.abs(i.clientX-o.clientX),B=Math.abs(i.clientY-o.clientY);return Math.max(P,B)<=C}var XA=class extends ei{constructor(){super(...arguments),this.beanName="dragSvc",this.dragEndFunctions=[],this.dragSources=[]}destroy(){let{dragSources:i}=this;i.forEach(this.removeListener.bind(this)),i.length=0,super.destroy()}removeListener(i){let o=i.dragSource.eElement,C=i.mouseDownListener;if(o.removeEventListener("mousedown",C),i.touchEnabled){let P=i.touchStartListener;o.removeEventListener("touchstart",P,{passive:!0})}}removeDragSource(i){let{dragSources:o}=this,C=o.find(P=>P.dragSource===i);C&&(this.removeListener(C),qo(o,C))}addDragSource(i){let o=this.onMouseDown.bind(this,i),{eElement:C,includeTouch:P,stopPropagationForTouch:B}=i;C.addEventListener("mousedown",o);let W=null,$=this.gos.get("suppressTouch");P&&!$&&(W=ie=>{Ps(ie.target)||(B&&ie.stopPropagation(),this.onTouchStart(i,ie))},C.addEventListener("touchstart",W,{passive:!1})),this.dragSources.push({dragSource:i,mouseDownListener:o,touchStartListener:W,touchEnabled:!!P})}onTouchStart(i,o){this.currentDragParams=i,this.dragging=!1;let C=o.touches[0];this.touchLastTime=C,this.touchStart=C;let P=ue=>this.onTouchMove(ue,i.eElement),B=ue=>this.onTouchUp(ue,i.eElement),W=ue=>{ue.cancelable&&ue.preventDefault()},$=o.target,ie=[{target:Jf(this.beans),type:"touchmove",listener:W,options:{passive:!1}},{target:$,type:"touchmove",listener:P,options:{passive:!0}},{target:$,type:"touchend",listener:B,options:{passive:!0}},{target:$,type:"touchcancel",listener:B,options:{passive:!0}}];this.addTemporaryEvents(ie),i.dragStartPixels===0&&this.onCommonMove(C,this.touchStart,i.eElement)}onMouseDown(i,o){let C=o;if(i.skipMouseEvent&&i.skipMouseEvent(o)||C._alreadyProcessedByDragService||(C._alreadyProcessedByDragService=!0,o.button!==0))return;this.shouldPreventMouseEvent(o)&&o.preventDefault(),this.currentDragParams=i,this.dragging=!1,this.mouseStartEvent=o,this.startTarget=o.target;let P=De=>this.onMouseMove(De,i.eElement),B=De=>this.onMouseUp(De,i.eElement),W=De=>De.preventDefault(),$=De=>{De.key===Qt.ESCAPE&&this.cancelDrag(i.eElement)},ie=Jf(this.beans),ue=[{target:ie,type:"mousemove",listener:P},{target:ie,type:"mouseup",listener:B},{target:ie,type:"contextmenu",listener:W},{target:ie,type:"keydown",listener:$}];this.addTemporaryEvents(ue),i.dragStartPixels===0&&this.onMouseMove(o,i.eElement)}addTemporaryEvents(i){i.forEach(o=>{let{target:C,type:P,listener:B,options:W}=o;C.addEventListener(P,B,W)}),this.dragEndFunctions.push(()=>{i.forEach(o=>{let{target:C,type:P,listener:B,options:W}=o;C.removeEventListener(P,B,W)})})}isEventNearStartEvent(i,o){let{dragStartPixels:C}=this.currentDragParams,P=Ai(C)?C:4;return p0(i,o,P)}getFirstActiveTouch(i){for(let o=0;o<i.length;o++)if(i[o].identifier===this.touchStart.identifier)return i[o];return null}onCommonMove(i,o,C){var P;if(!this.dragging){if(this.isEventNearStartEvent(i,o))return;if(this.dragging=!0,this.eventSvc.dispatchEvent({type:"dragStarted",target:C}),this.currentDragParams.onDragStart(o),!this.currentDragParams){this.dragging=!1;return}this.currentDragParams.onDragging(o)}(P=this.currentDragParams)==null||P.onDragging(i)}onTouchMove(i,o){let C=this.getFirstActiveTouch(i.touches);C&&this.onCommonMove(C,this.touchStart,o)}onMouseMove(i,o){var C;ii()&&((C=Ao(this.beans).getSelection())==null||C.removeAllRanges()),this.shouldPreventMouseEvent(i)&&i.preventDefault(),this.onCommonMove(i,this.mouseStartEvent,o)}shouldPreventMouseEvent(i){let{gos:o}=this,C=o.get("enableCellTextSelection"),P=i.type==="mousemove",B=W=>{let $=W.target,ie=$==null?void 0:$.tagName.toLocaleLowerCase();return!!(ie!=null&&ie.match("^a$|textarea|input|select|button"))};return C&&P&&i.cancelable&&ad(o,i)&&!B(i)}onTouchUp(i,o){let C=this.getFirstActiveTouch(i.changedTouches);C||(C=this.touchLastTime),this.onUpCommon(C,o)}onMouseUp(i,o){this.onUpCommon(i,o)}onUpCommon(i,o){this.dragging&&(this.dragging=!1,this.currentDragParams.onDragStop(i),this.eventSvc.dispatchEvent({type:"dragStopped",target:o})),this.resetDragProperties()}cancelDrag(i){var o,C;this.eventSvc.dispatchEvent({type:"dragCancelled",target:i}),(C=(o=this.currentDragParams)==null?void 0:o.onDragCancel)==null||C.call(o),this.resetDragProperties()}resetDragProperties(){this.mouseStartEvent=null,this.startTarget=null,this.touchStart=null,this.touchLastTime=null,this.currentDragParams=null;let{dragEndFunctions:i}=this;i.forEach(o=>o()),i.length=0}};function gv(i,o){return i+"_"+o}function Io(i){return i instanceof ZA}var ZA=class extends ei{constructor(i,o,C,P){super(),this.providedColumnGroup=i,this.groupId=o,this.partId=C,this.pinned=P,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 gv(this.groupId,this.partId)}isEmptyGroup(){return this.displayedChildren.length===0}isMoving(){let i=this.getProvidedColumnGroup().getLeafColumns();return!i||i.length===0?!1:i.every(o=>o.isMoving())}checkLeft(){if(this.displayedChildren.forEach(i=>{Io(i)&&i.checkLeft()}),this.displayedChildren.length>0)if(this.gos.get("enableRtl")){let o=Sa(this.displayedChildren).getLeft();this.setLeft(o)}else{let i=this.displayedChildren[0].getLeft();this.setLeft(i)}else this.setLeft(null)}getLeft(){return this.left}getOldLeft(){return this.oldLeft}setLeft(i){this.oldLeft=this.left,this.left!==i&&(this.left=i,this.dispatchLocalEvent({type:"leftChanged"}))}getPinned(){return this.pinned}getGroupId(){return this.groupId}getPartId(){return this.partId}getActualWidth(){var o;let i=0;return(o=this.displayedChildren)==null||o.forEach(C=>{i+=C.getActualWidth()}),i}isResizable(){if(!this.displayedChildren)return!1;let i=!1;return this.displayedChildren.forEach(o=>{o.isResizable()&&(i=!0)}),i}getMinWidth(){let i=0;return this.displayedChildren.forEach(o=>{i+=o.getMinWidth()}),i}addChild(i){this.children||(this.children=[]),this.children.push(i)}getDisplayedChildren(){return this.displayedChildren}getLeafColumns(){let i=[];return this.addLeafColumns(i),i}getDisplayedLeafColumns(){let i=[];return this.addDisplayedLeafColumns(i),i}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(i){this.providedColumnGroup.setExpanded(i)}isAutoHeaderHeight(){var i;return!!((i=this.getColGroupDef())!=null&&i.autoHeaderHeight)}getAutoHeaderHeight(){return this.autoHeaderHeight}setAutoHeaderHeight(i){let o=i!==this.autoHeaderHeight;return this.autoHeaderHeight=i,o}addDisplayedLeafColumns(i){this.displayedChildren.forEach(o=>{na(o)?i.push(o):Io(o)&&o.addDisplayedLeafColumns(i)})}addLeafColumns(i){this.children.forEach(o=>{na(o)?i.push(o):Io(o)&&o.addLeafColumns(i)})}getChildren(){return this.children}getColumnGroupShow(){return this.providedColumnGroup.getColumnGroupShow()}getProvidedColumnGroup(){return this.providedColumnGroup}getPaddingLevel(){let i=this.getParent();return!this.isPadding()||!i||!i.isPadding()?0:1+i.getPaddingLevel()}calculateDisplayedColumns(){this.displayedChildren=[];let i=this;for(;i!=null&&i.isPadding();)i=i.getParent();if(!(i?i.getProvidedColumnGroup().isExpandable():!1)){this.displayedChildren=this.children,this.dispatchLocalEvent({type:"displayedChildrenChanged"});return}this.children.forEach(C=>{if(Io(C)&&(!C.displayedChildren||!C.displayedChildren.length))return;switch(C.getColumnGroupShow()){case"open":i.getProvidedColumnGroup().isExpanded()&&this.displayedChildren.push(C);break;case"closed":i.getProvidedColumnGroup().isExpanded()||this.displayedChildren.push(C);break;default:this.displayedChildren.push(C);break}}),this.dispatchLocalEvent({type:"displayedChildrenChanged"})}},ib="row-group-",m0="t-",mo="b-",Dh=0,Xo=class{constructor(i){this.master=!1,this.detail=void 0,this.rowIndex=null,this.key=null,this.sourceRowIndex=-1,this.childrenMapped={},this.treeNode=null,this.treeNodeFlags=0,this.displayed=!1,this.rowTop=null,this.oldRowTop=null,this.selectable=!0,this.__objectId=Dh++,this.alreadyRendered=!1,this.highlighted=null,this.hovered=!1,this.__selected=!1,this.beans=i}setData(i){this.setDataCommon(i,!1)}updateData(i){this.setDataCommon(i,!0)}setDataCommon(i,o){var B,W,$;let C=this.data;this.data=i,(B=this.beans.valueCache)==null||B.onDataChanged(),this.updateDataOnDetailNode(),(W=this.beans.selectionSvc)==null||W.updateRowSelectable(this),this.resetQuickFilterAggregateText();let P=this.createDataChangedEvent(i,C,o);($=this.__localEventService)==null||$.dispatchEvent(P)}updateDataOnDetailNode(){this.detailNode&&(this.detailNode.data=this.data)}createDataChangedEvent(i,o,C){return{type:"dataChanged",node:this,oldData:o,newData:i,update:C}}getRowIndexString(){return this.rowIndex==null?(Ea(13),null):this.rowPinned==="top"?m0+this.rowIndex:this.rowPinned==="bottom"?mo+this.rowIndex:this.rowIndex.toString()}setDataAndId(i,o){var $,ie;let{selectionSvc:C}=this.beans,P=($=C==null?void 0:C.createDaemonNode)==null?void 0:$.call(C,this),B=this.data;this.data=i,this.updateDataOnDetailNode(),this.setId(o),C&&(C.updateRowSelectable(this),C.syncInRowNode(this,P));let W=this.createDataChangedEvent(i,B,!1);(ie=this.__localEventService)==null||ie.dispatchEvent(W)}setId(i){var C,P;let o=ev(this.beans.gos);if(o)if(this.data){let B=(P=(C=this.parent)==null?void 0:C.getRoute())!=null?P:[];this.id=o({data:this.data,parentKeys:B.length>0?B:void 0,level:this.level,rowPinned:this.rowPinned}),this.id.startsWith(ib)&&Ea(14,{groupPrefix:ib})}else this.id=void 0;else this.id=i}setRowTop(i){this.oldRowTop=this.rowTop,this.rowTop!==i&&(this.rowTop=i,this.dispatchRowEvent("topChanged"),this.setDisplayed(i!==null))}clearRowTopAndRowIndex(){this.oldRowTop=null,this.setRowTop(null),this.setRowIndex(null)}setHovered(i){this.hovered=i}isHovered(){return this.hovered}setRowHeight(i,o=!1){this.rowHeight=i,this.rowHeightEstimated=o,this.dispatchRowEvent("heightChanged")}setExpanded(i,o,C){var P;(P=this.beans.expansionSvc)==null||P.setExpanded(this,i,o,C)}setDataValue(i,o,C){var _e;let{colModel:P,valueSvc:B,gos:W,selectionSvc:$}=this.beans,ie=typeof i!="string"?i:(_e=P.getCol(i))!=null?_e:P.getColDefCol(i);if(!ie)return!1;let ue=B.getValueForDisplay(ie,this);if(W.get("readOnlyEdit")){let{beans:{eventSvc:Be},data:Qe,rowIndex:st,rowPinned:Ct}=this;return Be.dispatchEvent({type:"cellEditRequest",event:null,rowIndex:st,rowPinned:Ct,column:ie,colDef:ie.colDef,data:Qe,node:this,oldValue:ue,newValue:o,value:o,source:C}),!1}let De=B.setValue(this,ie,o,C);return this.dispatchCellChangedEvent(ie,o,ue),$==null||$.updateRowSelectable(this),De}updateHasChildren(){let i=this.group&&!this.footer||this.childrenAfterGroup&&this.childrenAfterGroup.length>0,{rowChildrenSvc:o}=this.beans;o&&(i=o.getHasChildrenValue(this)),i!==this.__hasChildren&&(this.__hasChildren=!!i,this.dispatchRowEvent("hasChildrenChanged"))}hasChildren(){return this.__hasChildren==null&&this.updateHasChildren(),this.__hasChildren}dispatchCellChangedEvent(i,o,C){var B;let P={type:"cellChanged",node:this,column:i,newValue:o,oldValue:C};(B=this.__localEventService)==null||B.dispatchEvent(P)}resetQuickFilterAggregateText(){this.quickFilterAggregateText=null}isExpandable(){var i,o;return(o=(i=this.beans.expansionSvc)==null?void 0:i.isExpandable(this))!=null?o:!1}isSelected(){return this.footer?this.sibling.isSelected():this.__selected}depthFirstSearch(i){var o;(o=this.childrenAfterGroup)==null||o.forEach(C=>C.depthFirstSearch(i)),i(this)}dispatchRowEvent(i){var o;(o=this.__localEventService)==null||o.dispatchEvent({type:i,node:this})}setSelected(i,o=!1,C="api"){var P;(P=this.beans.selectionSvc)==null||P.setNodesSelected({nodes:[this],newValue:i,clearSelection:o,source:C})}isRowPinned(){return!!this.rowPinned}addEventListener(i,o){var P,B,W,$,ie;(P=this.beans.validation)==null||P.checkRowEvents(i),this.__localEventService||(this.__localEventService=new s),this.frameworkEventListenerService=(W=(B=this.beans.frameworkOverrides).createLocalEventListenerWrapper)==null?void 0:W.call(B,this.frameworkEventListenerService,this.__localEventService);let C=(ie=($=this.frameworkEventListenerService)==null?void 0:$.wrap(o))!=null?ie:o;this.__localEventService.addEventListener(i,C)}removeEventListener(i,o){var P,B;if(!this.__localEventService)return;let C=(B=(P=this.frameworkEventListenerService)==null?void 0:P.unwrap(o))!=null?B:o;this.__localEventService.removeEventListener(i,C),this.__localEventService.noRegisteredListenersExist()&&(this.__localEventService=null)}isFullWidthCell(){if(pi(61),this.detail)return!0;let i=this.beans.gos.getCallback("isFullWidthRow");return i?i({rowNode:this}):!1}getRoute(){if(this.level===-1)return[];if(this.key==null)return;let i=[],o=this;for(;o&&o.key!=null;)i.push(o.key),o=o.parent;return i.reverse()}setFirstChild(i){this.firstChild!==i&&(this.firstChild=i,this.dispatchRowEvent("firstChildChanged"))}setDisplayed(i){this.displayed!==i&&(this.displayed=i,this.dispatchRowEvent("displayedChanged"))}setRowIndex(i){this.rowIndex!==i&&(this.rowIndex=i,this.dispatchRowEvent("rowIndexChanged"))}setAllChildrenCount(i){this.allChildrenCount!==i&&(this.allChildrenCount=i,this.dispatchRowEvent("allChildrenCountChanged"))}setUiLevel(i){this.uiLevel!==i&&(this.uiLevel=i,this.dispatchRowEvent("uiLevelChanged"))}};function nb(i,o,C){return o.addGridCommonParams({type:C,node:i,data:i.data,rowIndex:i.rowIndex,rowPinned:i.rowPinned})}var _m=class extends On{constructor(i,o){super('<div class="ag-filter"></div>'),this.column=i,this.source=o,this.filterWrapper=null}postConstruct(){this.createFilter(!0),this.addManagedEventListeners({filterDestroyed:this.onFilterDestroyed.bind(this)})}hasFilter(){return!!this.filterWrapper}getFilter(){var i,o;return(o=(i=this.filterWrapper)==null?void 0:i.filterPromise)!=null?o:null}afterInit(){var i,o,C;return(C=(o=(i=this.filterWrapper)==null?void 0:i.filterPromise)==null?void 0:o.then(()=>{}))!=null?C:js.resolve()}afterGuiAttached(i){var o,C;(C=(o=this.filterWrapper)==null?void 0:o.filterPromise)==null||C.then(P=>{var B;(B=P==null?void 0:P.afterGuiAttached)==null||B.call(P,i)})}afterGuiDetached(){var i,o;(o=(i=this.filterWrapper)==null?void 0:i.filterPromise)==null||o.then(C=>{var P;(P=C==null?void 0:C.afterGuiDetached)==null||P.call(C)})}createFilter(i){var P,B,W;let{column:o,source:C}=this;this.filterWrapper=(B=(P=this.beans.filterManager)==null?void 0:P.getOrCreateFilterWrapper(o))!=null?B:null,(W=this.filterWrapper)!=null&&W.filterPromise&&this.filterWrapper.filterPromise.then($=>{let ie=$.getGui();Ai(ie)||pi(69,{guiFromFilter:ie}),this.appendChild(ie),i&&this.eventSvc.dispatchEvent({type:"filterOpened",column:o,source:C,eGui:this.getGui()})})}onFilterDestroyed(i){(i.source==="api"||i.source==="paramsUpdated")&&i.column.getId()===this.column.getId()&&this.beans.colModel.getColDefCol(this.column)&&(Ke(this.getGui()),this.createFilter())}destroy(){this.filterWrapper=null,super.destroy()}},od="ag-resizer-wrapper",Su=(i,o)=>`<div data-ref="${i}Resizer" class="ag-resizer ag-resizer-${o}"></div>`,$A=`<div class="${od}">
        ${Su("eTopLeft","topLeft")}
        ${Su("eTop","top")}
        ${Su("eTopRight","topRight")}
        ${Su("eRight","right")}
        ${Su("eBottomRight","bottomRight")}
        ${Su("eBottom","bottom")}
        ${Su("eBottomLeft","bottomLeft")}
        ${Su("eLeft","left")}
    </div>`,QA=class extends ei{constructor(i,o){super(),this.element=i,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},o)}wireBeans(i){this.popupSvc=i.popupSvc,this.dragSvc=i.dragSvc}center(){let{clientHeight:i,clientWidth:o}=this.offsetParent,C=o/2-this.getWidth()/2,P=i/2-this.getHeight()/2;this.offsetElement(C,P)}initialisePosition(){if(this.positioned)return;let{centered:i,forcePopupParentAsOffsetParent:o,minWidth:C,width:P,minHeight:B,height:W,x:$,y:ie}=this.config;this.offsetParent||this.setOffsetParent();let ue=0,De=0,_e=ht(this.element);if(_e){let Be=this.findBoundaryElement(),Qe=window.getComputedStyle(Be);if(Qe.minWidth!=null){let st=Be.offsetWidth-this.element.offsetWidth;De=parseInt(Qe.minWidth,10)-st}if(Qe.minHeight!=null){let st=Be.offsetHeight-this.element.offsetHeight;ue=parseInt(Qe.minHeight,10)-st}}if(this.minHeight=B||ue,this.minWidth=C||De,P&&this.setWidth(P),W&&this.setHeight(W),(!P||!W)&&this.refreshSize(),i)this.center();else if($||ie)this.offsetElement($,ie);else if(_e&&o){let Be=this.boundaryEl,Qe=!0;if(Be||(Be=this.findBoundaryElement(),Qe=!1),Be){let st=parseFloat(Be.style.top),Ct=parseFloat(Be.style.left);Qe?this.offsetElement(isNaN(Ct)?0:Ct,isNaN(st)?0:st):this.setPosition(Ct,st)}}this.positioned=!!this.offsetParent}isPositioned(){return this.positioned}getPosition(){return this.position}setMovable(i,o){var P,B;if(!this.config.popup||i===this.movable)return;this.movable=i;let C=this.moveElementDragListener||{eElement:o,onDragStart:this.onMoveStart.bind(this),onDragging:this.onMove.bind(this),onDragStop:this.onMoveEnd.bind(this)};i?((P=this.dragSvc)==null||P.addDragSource(C),this.moveElementDragListener=C):((B=this.dragSvc)==null||B.removeDragSource(C),this.moveElementDragListener=void 0)}setResizable(i){if(this.clearResizeListeners(),i?this.addResizers():this.removeResizers(),typeof i=="boolean"){if(i===!1)return;i={topLeft:i,top:i,topRight:i,right:i,bottomRight:i,bottom:i,bottomLeft:i,left:i}}Object.keys(i).forEach(o=>{var $;let P=!!i[o],B=this.getResizerElement(o),W={dragStartPixels:0,eElement:B,onDragStart:ie=>this.onResizeStart(ie,o),onDragging:this.onResize.bind(this),onDragStop:ie=>this.onResizeEnd(ie,o)};(P||!this.isAlive()&&!P)&&(P?(($=this.dragSvc)==null||$.addDragSource(W),this.resizeListeners.push(W),B.style.pointerEvents="all"):B.style.pointerEvents="none",this.resizable[o]=P)})}removeSizeFromEl(){this.element.style.removeProperty("height"),this.element.style.removeProperty("width"),this.element.style.removeProperty("flex")}restoreLastSize(){this.element.style.flex="0 0 auto";let{height:i,width:o}=this.lastSize;o!==-1&&(this.element.style.width=`${o}px`),i!==-1&&(this.element.style.height=`${i}px`)}getHeight(){return this.element.offsetHeight}setHeight(i){let{popup:o}=this.config,C=this.element,P=!1;if(typeof i=="string"&&i.indexOf("%")!==-1)Wi(C,i),i=$t(C),P=!0;else if(i=Math.max(this.minHeight,i),this.positioned){let B=this.getAvailableHeight();B&&i>B&&(i=B)}this.getHeight()!==i&&(P?(C.style.maxHeight="unset",C.style.minHeight="unset"):o?Wi(C,i):(C.style.height=`${i}px`,C.style.flex="0 0 auto",this.lastSize.height=typeof i=="number"?i:parseFloat(i)))}getAvailableHeight(){let{popup:i,forcePopupParentAsOffsetParent:o}=this.config;this.positioned||this.initialisePosition();let{clientHeight:C}=this.offsetParent;if(!C)return null;let P=this.element.getBoundingClientRect(),B=this.offsetParent.getBoundingClientRect(),W=i?this.position.y:P.top,$=i?0:B.top,ie=0;if(o){let De=this.element.parentElement;if(De){let{bottom:_e}=De.getBoundingClientRect();ie=_e-P.bottom}}return C+$-W-ie}getWidth(){return this.element.offsetWidth}setWidth(i){let o=this.element,{popup:C}=this.config,P=!1;if(typeof i=="string"&&i.indexOf("%")!==-1)Cn(o,i),i=nn(o),P=!0;else if(this.positioned){i=Math.max(this.minWidth,i);let{clientWidth:B}=this.offsetParent,W=C?this.position.x:this.element.getBoundingClientRect().left;B&&i+W>B&&(i=B-W)}this.getWidth()!==i&&(P?(o.style.maxWidth="unset",o.style.minWidth="unset"):this.config.popup?Cn(o,i):(o.style.width=`${i}px`,o.style.flex=" unset",this.lastSize.width=typeof i=="number"?i:parseFloat(i)))}offsetElement(i=0,o=0){var B;let{forcePopupParentAsOffsetParent:C}=this.config,P=C?this.boundaryEl:this.element;P&&((B=this.popupSvc)==null||B.positionPopup({ePopup:P,keepWithinBounds:!0,skipObserver:this.movable||this.isResizable(),updatePosition:()=>({x:i,y:o})}),this.setPosition(parseFloat(P.style.left),parseFloat(P.style.top)))}constrainSizeToAvailableHeight(i){var C;if(!this.config.forcePopupParentAsOffsetParent)return;let o=()=>{let P=this.getAvailableHeight();this.element.style.setProperty("max-height",`${P}px`)};i&&this.popupSvc?this.resizeObserverSubscriber=Qr(this.beans,(C=this.popupSvc)==null?void 0:C.getPopupParent(),o):(this.element.style.removeProperty("max-height"),this.resizeObserverSubscriber&&(this.resizeObserverSubscriber(),this.resizeObserverSubscriber=void 0))}setPosition(i,o){this.position.x=i,this.position.y=o}updateDragStartPosition(i,o){this.dragStartPosition={x:i,y:o}}calculateMouseMovement(i){let{e:o,isLeft:C,isTop:P,anywhereWithin:B,topBuffer:W}=i,$=o.clientX-this.dragStartPosition.x,ie=o.clientY-this.dragStartPosition.y,ue=this.shouldSkipX(o,!!C,!!B,$)?0:$,De=this.shouldSkipY(o,!!P,W,ie)?0:ie;return{movementX:ue,movementY:De}}shouldSkipX(i,o,C,P){let B=this.element.getBoundingClientRect(),W=this.offsetParent.getBoundingClientRect(),$=this.boundaryEl.getBoundingClientRect(),ie=this.config.popup?this.position.x:B.left,ue=ie<=0&&W.left>=i.clientX||W.right<=i.clientX&&W.right<=$.right;return ue?!0:(o?ue=P<0&&i.clientX>ie+W.left||P>0&&i.clientX<ie+W.left:C?ue=P<0&&i.clientX>$.right||P>0&&i.clientX<ie+W.left:ue=P<0&&i.clientX>$.right||P>0&&i.clientX<$.right,ue)}shouldSkipY(i,o,C=0,P){let B=this.element.getBoundingClientRect(),W=this.offsetParent.getBoundingClientRect(),$=this.boundaryEl.getBoundingClientRect(),ie=this.config.popup?this.position.y:B.top,ue=ie<=0&&W.top>=i.clientY||W.bottom<=i.clientY&&W.bottom<=$.bottom;return ue?!0:(o?ue=P<0&&i.clientY>ie+W.top+C||P>0&&i.clientY<ie+W.top:ue=P<0&&i.clientY>$.bottom||P>0&&i.clientY<$.bottom,ue)}createResizeMap(){let i=this.element;this.resizerMap={topLeft:{element:i.querySelector("[data-ref=eTopLeftResizer]")},top:{element:i.querySelector("[data-ref=eTopResizer]")},topRight:{element:i.querySelector("[data-ref=eTopRightResizer]")},right:{element:i.querySelector("[data-ref=eRightResizer]")},bottomRight:{element:i.querySelector("[data-ref=eBottomRightResizer]")},bottom:{element:i.querySelector("[data-ref=eBottomResizer]")},bottomLeft:{element:i.querySelector("[data-ref=eBottomLeftResizer]")},left:{element:i.querySelector("[data-ref=eLeftResizer]")}}}addResizers(){if(this.resizersAdded)return;let i=this.element;if(!i)return;let C=new DOMParser().parseFromString($A,"text/html").body;i.appendChild(C.firstChild),this.createResizeMap(),this.resizersAdded=!0}removeResizers(){this.resizerMap=void 0;let i=this.element.querySelector(`.${od}`);i&&this.element.removeChild(i),this.resizersAdded=!1}getResizerElement(i){return this.resizerMap[i].element}onResizeStart(i,o){this.boundaryEl=this.findBoundaryElement(),this.positioned||this.initialisePosition(),this.currentResizer={isTop:!!o.match(/top/i),isRight:!!o.match(/right/i),isBottom:!!o.match(/bottom/i),isLeft:!!o.match(/left/i)},this.element.classList.add("ag-resizing"),this.resizerMap[o].element.classList.add("ag-active");let{popup:C,forcePopupParentAsOffsetParent:P}=this.config;!C&&!P&&this.applySizeToSiblings(this.currentResizer.isBottom||this.currentResizer.isTop),this.isResizing=!0,this.updateDragStartPosition(i.clientX,i.clientY)}getSiblings(){let o=this.element.parentElement;return o?Array.prototype.slice.call(o.children).filter(C=>!C.classList.contains("ag-hidden")):null}getMinSizeOfSiblings(){let i=this.getSiblings()||[],o=0,C=0;for(let P=0;P<i.length;P++){let B=i[P],W=!!B.style.flex&&B.style.flex!=="0 0 auto";if(B===this.element)continue;let $=this.minHeight||0,ie=this.minWidth||0;if(W){let ue=window.getComputedStyle(B);ue.minHeight&&($=parseInt(ue.minHeight,10)),ue.minWidth&&(ie=parseInt(ue.minWidth,10))}else $=B.offsetHeight,ie=B.offsetWidth;o+=$,C+=ie}return{height:o,width:C}}applySizeToSiblings(i){let o=null,C=this.getSiblings();if(C){for(let P=0;P<C.length;P++){let B=C[P];B!==o&&(i?B.style.height=`${B.offsetHeight}px`:B.style.width=`${B.offsetWidth}px`,B.style.flex="0 0 auto",B===this.element&&(o=C[P+1]))}o&&(o.style.removeProperty("height"),o.style.removeProperty("min-height"),o.style.removeProperty("max-height"),o.style.flex="1 1 auto")}}isResizable(){return Object.values(this.resizable).some(i=>i)}onResize(i){if(!this.isResizing||!this.currentResizer)return;let{popup:o,forcePopupParentAsOffsetParent:C}=this.config,{isTop:P,isRight:B,isBottom:W,isLeft:$}=this.currentResizer,ie=B||$,ue=W||P,{movementX:De,movementY:_e}=this.calculateMouseMovement({e:i,isLeft:$,isTop:P}),Be=this.position.x,Qe=this.position.y,st=0,Ct=0;if(ie&&De){let Ot=$?-1:1,Pt=this.getWidth(),Kt=Pt+De*Ot,ti=!1;$&&(st=Pt-Kt,(Be+st<=0||Kt<=this.minWidth)&&(ti=!0,st=0)),ti||this.setWidth(Kt)}if(ue&&_e){let Ot=P?-1:1,Pt=this.getHeight(),Kt=Pt+_e*Ot,ti=!1;P?(Ct=Pt-Kt,(Qe+Ct<=0||Kt<=this.minHeight)&&(ti=!0,Ct=0)):!this.config.popup&&!this.config.forcePopupParentAsOffsetParent&&Pt<Kt&&this.getMinSizeOfSiblings().height+Kt>this.element.parentElement.offsetHeight&&(ti=!0),ti||this.setHeight(Kt)}this.updateDragStartPosition(i.clientX,i.clientY),((o||C)&&st||Ct)&&this.offsetElement(Be+st,Qe+Ct)}onResizeEnd(i,o){this.isResizing=!1,this.currentResizer=null,this.boundaryEl=null,this.element.classList.remove("ag-resizing"),this.resizerMap[o].element.classList.remove("ag-active"),this.dispatchLocalEvent({type:"resize"})}refreshSize(){let i=this.element;this.config.popup&&(this.config.width||this.setWidth(i.offsetWidth),this.config.height||this.setHeight(i.offsetHeight))}onMoveStart(i){this.boundaryEl=this.findBoundaryElement(),this.positioned||this.initialisePosition(),this.isMoving=!0,this.element.classList.add("ag-moving"),this.updateDragStartPosition(i.clientX,i.clientY)}onMove(i){if(!this.isMoving)return;let{x:o,y:C}=this.position,P;this.config.calculateTopBuffer&&(P=this.config.calculateTopBuffer());let{movementX:B,movementY:W}=this.calculateMouseMovement({e:i,isTop:!0,anywhereWithin:!0,topBuffer:P});this.offsetElement(o+B,C+W),this.updateDragStartPosition(i.clientX,i.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 i=this.element;for(;i;){if(window.getComputedStyle(i).position!=="static")return i;i=i.parentElement}return this.element}clearResizeListeners(){var i;for(;this.resizeListeners.length;){let o=this.resizeListeners.pop();(i=this.dragSvc)==null||i.removeDragSource(o)}}destroy(){var i;super.destroy(),this.moveElementDragListener&&((i=this.dragSvc)==null||i.removeDragSource(this.moveElementDragListener)),this.constrainSizeToAvailableHeight(!1),this.clearResizeListeners(),this.removeResizers()}},JA="ag-focus-managed",Eh=class extends ei{constructor(i,o={}){super(),this.eFocusable=i,this.callbacks=o,this.callbacks=pe({shouldStopEventPropagation:()=>!1,onTabKeyDown:C=>{if(C.defaultPrevented)return;let P=mi(this.beans,this.eFocusable,!1,C.shiftKey);P&&(P.focus(),C.preventDefault())}},o)}postConstruct(){let{eFocusable:i,callbacks:{onFocusIn:o,onFocusOut:C}}=this;i.classList.add(JA),this.addKeyDownListeners(i),o&&this.addManagedElementListeners(i,{focusin:o}),C&&this.addManagedElementListeners(i,{focusout:C})}addKeyDownListeners(i){this.addManagedElementListeners(i,{keydown:o=>{if(o.defaultPrevented||Zi(o))return;let{callbacks:C}=this;if(C.shouldStopEventPropagation(o)){Br(o);return}o.key===Qt.TAB?C.onTabKeyDown(o):C.handleKeyDown&&C.handleKeyDown(o)}})}},eD={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"};function f0(i,o){let{debounceMs:C}=i;return Fm(i)?(C!=null&&pi(71),0):C!=null?C:o}function Fm(i){var o,C;return((C=(o=i.buttons)==null?void 0:o.indexOf("apply"))!=null?C:-1)>=0}var Ax=class extends On{constructor(i){super(),this.filterNameKey=i,this.applyActive=!1,this.hidePopup=null,this.debouncePending=!1,this.appliedModel=null,this.eFilterBody=Ri,this.buttonListeners=[],this.defaultDebounceMs=0}postConstruct(){this.resetTemplate(),this.createManagedBean(new Eh(this.getFocusableElement(),{handleKeyDown:this.handleKeyDown.bind(this)})),this.positionableFeature=new QA(this.getPositionableElement(),{forcePopupParentAsOffsetParent:!0}),this.createBean(this.positionableFeature)}handleKeyDown(i){}getFilterTitle(){return this.translate(this.filterNameKey)}isFilterActive(){return!!this.appliedModel}resetTemplate(i){let o=this.getGui();o&&o.removeEventListener("submit",this.onFormSubmit);let C=`
            <form class="ag-filter-wrapper">
                <div class="ag-filter-body-wrapper ag-${this.getCssIdentifier()}-body-wrapper" data-ref="eFilterBody">
                    ${this.createBodyTemplate()}
                </div>
            </form>`;this.setTemplate(C,this.getAgComponents(),i),o=this.getGui(),o==null||o.addEventListener("submit",this.onFormSubmit)}isReadOnly(){return!!this.params.readOnly}init(i){this.setParams(i),this.resetUiToDefaults(!0).then(()=>{this.updateUiVisibility(),this.setupOnBtApplyDebounce()})}setParams(i){this.params=i,this.applyActive=Fm(i),this.resetButtonsPanel(i)}updateParams(i){this.params=i,this.applyActive=Fm(i),this.resetUiToActiveModel(this.getModel(),()=>{this.updateUiVisibility(),this.setupOnBtApplyDebounce()})}resetButtonsPanel(i,o){let{buttons:C,readOnly:P}=o!=null?o:{},{buttons:B,readOnly:W}=i;if(P===W&&Id(C,B))return;let $=B&&B.length>0&&!this.isReadOnly();if(this.eButtonsPanel?(Ke(this.eButtonsPanel),this.buttonListeners.forEach(De=>De()),this.buttonListeners=[]):$&&(this.eButtonsPanel=document.createElement("div"),this.eButtonsPanel.classList.add("ag-filter-apply-panel")),!$){this.eButtonsPanel&&pt(this.eButtonsPanel);return}let ie=document.createDocumentFragment(),ue=De=>{let _e,Be=De?this.translate(`${De}Filter`):void 0;switch(De){case"apply":_e=Ct=>this.onBtApply(!1,!1,Ct);break;case"clear":_e=()=>this.onBtClear();break;case"reset":_e=()=>this.onBtReset();break;case"cancel":_e=Ct=>{this.onBtCancel(Ct)};break;default:pi(75);return}let st=Gt(`<button
                    type="${De==="apply"?"submit":"button"}"
                    data-ref="${De}FilterButton"
                    class="ag-button ag-standard-button ag-filter-apply-panel-button"
                >${Be}
                </button>`);this.buttonListeners.push(...this.addManagedElementListeners(st,{click:_e})),ie.append(st)};B.forEach(De=>ue(De)),this.eButtonsPanel.append(ie),this.getGui().appendChild(this.eButtonsPanel)}setupOnBtApplyDebounce(){let i=f0(this.params,this.defaultDebounceMs),o=zr(this,this.checkApplyDebounce.bind(this),i);this.onBtApplyDebounce=()=>{this.debouncePending=!0,o()}}checkApplyDebounce(){this.debouncePending&&(this.debouncePending=!1,this.onBtApply())}getModel(){var i;return(i=this.appliedModel)!=null?i:null}setModel(i){return(i!=null?this.setModelIntoUi(i):this.resetUiToDefaults()).then(()=>{this.updateUiVisibility(),this.applyModel("api")})}onBtCancel(i){this.resetUiToActiveModel(this.getModel(),()=>{this.handleCancelEnd(i)})}handleCancelEnd(i){this.params.closeOnApply&&this.close(i)}resetUiToActiveModel(i,o){let C=()=>{this.onUiChanged(!1,"prevent"),o==null||o()};i!=null?this.setModelIntoUi(i).then(C):this.resetUiToDefaults().then(C)}onBtClear(){this.resetUiToDefaults().then(()=>this.onUiChanged())}onBtReset(){this.onBtClear(),this.onBtApply()}applyModel(i="api"){let o=this.getModelFromUi();if(!this.isModelValid(o))return!1;let C=this.appliedModel;return this.appliedModel=o,!this.areModelsEqual(C,o)}isModelValid(i){return!0}onFormSubmit(i){i.preventDefault()}onBtApply(i=!1,o=!1,C){if(C&&C.preventDefault(),this.applyModel(o?"rowDataUpdated":"ui")){let B="columnFilter";this.params.filterChangedCallback({afterFloatingFilter:i,afterDataChange:o,source:B})}let{closeOnApply:P}=this.params;P&&this.applyActive&&!i&&!o&&this.close(C)}onNewRowsLoaded(){}close(i){if(!this.hidePopup)return;let o=i,C=o&&o.key,P;(C==="Enter"||C==="Space")&&(P={keyboardEvent:o}),this.hidePopup(P),this.hidePopup=null}onUiChanged(i=!1,o){if(this.updateUiVisibility(),this.params.filterModifiedCallback(),this.applyActive&&!this.isReadOnly()){let C=this.isModelValid(this.getModelFromUi()),P=this.queryForHtmlElement('[data-ref="applyFilterButton"]');P&&la(P,!C)}i&&!o||o==="immediately"?this.onBtApply(i):(!this.applyActive&&!o||o==="debounce")&&this.onBtApplyDebounce()}afterGuiAttached(i){i&&(this.hidePopup=i.hidePopup),this.refreshFilterResizer(i==null?void 0:i.container)}refreshFilterResizer(i){let{positionableFeature:o,gos:C}=this;if(!o||i==="toolPanel")return;i==="floatingFilter"||i==="columnFilter"?(o.restoreLastSize(),o.setResizable(C.get("enableRtl")?{bottom:!0,bottomLeft:!0,left:!0}:{bottom:!0,bottomRight:!0,right:!0})):(o.removeSizeFromEl(),o.setResizable(!1)),o.constrainSizeToAvailableHeight(!0)}afterGuiDetached(){var i;this.checkApplyDebounce(),(i=this.positionableFeature)==null||i.constrainSizeToAvailableHeight(!1)}refresh(i){let o=this.params;return this.params=i,this.resetButtonsPanel(i,o),!0}destroy(){let i=this.getGui();i&&i.removeEventListener("submit",this.onFormSubmit),this.hidePopup=null,this.positionableFeature&&(this.positionableFeature=this.destroyBean(this.positionableFeature)),this.appliedModel=null,super.destroy()}translate(i){return this.getLocaleTextFunc()(i,eD[i])}getCellValue(i){return this.params.getValue(i)}getPositionableElement(){return this.eFilterBody}};function tD(i,o,C){if(o==null)return null;let P=null,{compName:B,jsComp:W,fwComp:$}=bx(i,o);return B?P={agSetColumnFilter:"agSetColumnFloatingFilter",agMultiColumnFilter:"agMultiColumnFloatingFilter",agGroupColumnFilter:"agGroupColumnFloatingFilter",agNumberColumnFilter:"agNumberColumnFloatingFilter",agDateColumnFilter:"agDateColumnFloatingFilter",agTextColumnFilter:"agTextColumnFloatingFilter"}[B]:W==null&&$==null&&o.filter===!0&&(P=C()),P}var Fd={AUTO_HEIGHT:"ag-layout-auto-height",NORMAL:"ag-layout-normal",PRINT:"ag-layout-print"},ab=class extends ei{constructor(i){super(),this.view=i}postConstruct(){this.addManagedPropertyListener("domLayout",this.updateLayoutClasses.bind(this)),this.updateLayoutClasses()}updateLayoutClasses(){let i=this.gos.get("domLayout"),o={autoHeight:i==="autoHeight",normal:i==="normal",print:i==="print"},C=o.autoHeight?Fd.AUTO_HEIGHT:o.print?Fd.PRINT:Fd.NORMAL;this.view.updateLayoutClasses(C,o)}},Nd="Viewport",ob="fakeVScrollComp",iD=["fakeHScrollComp","centerHeader","topCenter","bottomCenter","stickyTopCenter","stickyBottomCenter"],v0=class extends ei{constructor(i){super(),this.lastScrollSource=[null,null],this.scrollLeft=-1,this.nextScrollTop=-1,this.scrollTop=-1,this.lastOffsetHeight=-1,this.lastScrollTop=-1,this.scrollTimer=0,this.needsRefreshedScrollPosition=!0,this.eBodyViewport=i,this.resetLastHScrollDebounced=zr(this,()=>this.lastScrollSource[1]=null,500),this.resetLastVScrollDebounced=zr(this,()=>this.lastScrollSource[0]=null,500)}wireBeans(i){this.ctrlsSvc=i.ctrlsSvc,this.animationFrameSvc=i.animationFrameSvc,this.visibleCols=i.visibleCols}destroy(){super.destroy(),window.clearTimeout(this.scrollTimer)}postConstruct(){this.enableRtl=this.gos.get("enableRtl");let i=this.requireUpdatedScrollPosition.bind(this);this.addManagedEventListeners({displayedColumnsWidthChanged:this.onDisplayedColumnsWidthChanged.bind(this),gridSizeChanged:i}),this.addManagedElementListeners(this.eBodyViewport,{scroll:i}),this.ctrlsSvc.whenReady(this,o=>{this.centerRowsCtrl=o.center,this.onDisplayedColumnsWidthChanged(),this.addScrollListener()})}requireUpdatedScrollPosition(){this.needsRefreshedScrollPosition=!0}addScrollListener(){this.addHorizontalScrollListeners(),this.addVerticalScrollListeners()}addHorizontalScrollListeners(){this.addManagedElementListeners(this.centerRowsCtrl.eViewport,{scroll:this.onHScroll.bind(this,Nd)});for(let i of iD){let o=this.ctrlsSvc.get(i);this.registerScrollPartner(o,this.onHScroll.bind(this,i))}}addVerticalScrollListeners(){let i=this.ctrlsSvc.get("fakeVScrollComp"),o=this.gos.get("debounceVerticalScrollbar"),C=o?zr(this,this.onVScroll.bind(this,Nd),100):this.onVScroll.bind(this,Nd),P=o?zr(this,this.onVScroll.bind(this,ob),100):this.onVScroll.bind(this,ob);this.addManagedElementListeners(this.eBodyViewport,{scroll:C}),this.registerScrollPartner(i,P)}registerScrollPartner(i,o){i.onScrollCallback(o)}onDisplayedColumnsWidthChanged(){this.enableRtl&&this.horizontallyScrollHeaderCenterAndFloatingCenter()}horizontallyScrollHeaderCenterAndFloatingCenter(i){this.centerRowsCtrl!=null&&(i===void 0&&(i=this.centerRowsCtrl.getCenterViewportScrollLeft()),this.setScrollLeftForAllContainersExceptCurrent(Math.abs(i)))}setScrollLeftForAllContainersExceptCurrent(i){for(let o of[...iD,Nd]){if(this.lastScrollSource[1]===o)continue;let C=this.getViewportForSource(o);Yn(C,i,this.enableRtl)}}getViewportForSource(i){return i===Nd?this.centerRowsCtrl.eViewport:this.ctrlsSvc.get(i).eViewport}isControllingScroll(i,o){return this.lastScrollSource[o]==null?(o===0?this.lastScrollSource[0]=i:this.lastScrollSource[1]=i,!0):this.lastScrollSource[o]===i}onHScroll(i){if(!this.isControllingScroll(i,1))return;let o=this.centerRowsCtrl.eViewport,{scrollLeft:C}=o;if(this.shouldBlockScrollUpdate(1,C,!0))return;let P=En(this.getViewportForSource(i),this.enableRtl);this.doHorizontalScroll(P),this.resetLastHScrollDebounced()}onVScroll(i){if(!this.isControllingScroll(i,0))return;let o;if(i===Nd?o=this.eBodyViewport.scrollTop:o=this.ctrlsSvc.get("fakeVScrollComp").getScrollPosition(),this.shouldBlockScrollUpdate(0,o,!0))return;let{animationFrameSvc:C}=this;C==null||C.setScrollTop(o),this.nextScrollTop=o,i===Nd?this.ctrlsSvc.get("fakeVScrollComp").setScrollPosition(o):this.eBodyViewport.scrollTop=o,!C||this.gos.get("suppressAnimationFrame")?this.scrollGridIfNeeded():C.schedule(),this.resetLastVScrollDebounced()}doHorizontalScroll(i){let o=this.ctrlsSvc.get("fakeHScrollComp").getScrollPosition();this.scrollLeft===i&&i===o||(this.scrollLeft=i,this.fireScrollEvent(1),this.horizontallyScrollHeaderCenterAndFloatingCenter(i),this.centerRowsCtrl.onHorizontalViewportChanged(!0))}fireScrollEvent(i){let o={type:"bodyScroll",direction:i===1?"horizontal":"vertical",left:this.scrollLeft,top:this.scrollTop};this.eventSvc.dispatchEvent(o),window.clearTimeout(this.scrollTimer),this.scrollTimer=window.setTimeout(()=>{this.scrollTimer=0,this.eventSvc.dispatchEvent(et(pe({},o),{type:"bodyScrollEnd"}))},100)}shouldBlockScrollUpdate(i,o,C=!1){return C&&!Tn()?!1:i===0?this.shouldBlockVerticalScroll(o):this.shouldBlockHorizontalScroll(o)}shouldBlockVerticalScroll(i){let o=$n(this.eBodyViewport),{scrollHeight:C}=this.eBodyViewport;return i<0||i+o>C}shouldBlockHorizontalScroll(i){let o=this.centerRowsCtrl.getCenterWidth(),{scrollWidth:C}=this.centerRowsCtrl.eViewport;if(this.enableRtl&&zi()){if(i>0)return!0}else if(i<0)return!0;return Math.abs(i)+o>C}redrawRowsAfterScroll(){this.fireScrollEvent(0)}checkScrollLeft(){this.scrollLeft!==this.centerRowsCtrl.getCenterViewportScrollLeft()&&this.onHScroll(Nd)}scrollGridIfNeeded(){let i=this.scrollTop!=this.nextScrollTop;return i&&(this.scrollTop=this.nextScrollTop,this.redrawRowsAfterScroll()),i}setHorizontalScrollPosition(i,o=!1){let P=this.centerRowsCtrl.eViewport.scrollWidth-this.centerRowsCtrl.getCenterWidth();!o&&this.shouldBlockScrollUpdate(1,i)&&(this.enableRtl&&zi()?i=i>0?0:P:i=Math.min(Math.max(i,0),P)),Yn(this.centerRowsCtrl.eViewport,Math.abs(i),this.enableRtl),this.doHorizontalScroll(i)}setVerticalScrollPosition(i){this.eBodyViewport.scrollTop=i}getVScrollPosition(){if(!this.needsRefreshedScrollPosition){let{lastOffsetHeight:C,lastScrollTop:P}=this;return{top:P,bottom:P+C}}this.needsRefreshedScrollPosition=!1;let{scrollTop:i,offsetHeight:o}=this.eBodyViewport;return this.lastScrollTop=i,this.lastOffsetHeight=o,{top:i,bottom:i+o}}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.centerRowsCtrl.isHorizontalScrollShowing()}scrollHorizontally(i){let o=this.centerRowsCtrl.eViewport.scrollLeft;return this.setHorizontalScrollPosition(o+i),this.centerRowsCtrl.eViewport.scrollLeft-o}scrollToTop(){this.eBodyViewport.scrollTop=0}ensureNodeVisible(i,o=null){let{rowModel:C}=this.beans,P=C.getRowCount(),B=-1;for(let W=0;W<P;W++){let $=C.getRow(W);if(typeof i=="function"){if($&&i($)){B=W;break}}else if(i===$||i===$.data){B=W;break}}B>=0&&this.ensureIndexVisible(B,o)}ensureIndexVisible(i,o){if(Fo(this.gos,"print"))return;let{rowModel:C}=this.beans,P=C.getRowCount();if(typeof i!="number"||i<0||i>=P){pi(88,{index:i});return}let W=this.gos.get("pagination")&&!this.gos.get("suppressPaginationPanel"),{frameworkOverrides:$,pagination:ie,pageBounds:ue,rowContainerHeight:De,rowRenderer:_e}=this.beans;$.wrapIncoming(()=>{var Pt;W||ie==null||ie.goToPageWithIndex(i);let Be=this.ctrlsSvc.getGridBodyCtrl(),Qe=Be.stickyTopHeight,st=Be.stickyBottomHeight,Ct=C.getRow(i),Ot;do{let Kt=Ct.rowTop,ti=Ct.rowHeight,Jt=ue.getPixelOffset(),ai=Ct.rowTop-Jt,Mi=ai+Ct.rowHeight,qi=this.getVScrollPosition(),Fn=De.divStretchOffset,Xn=qi.top+Fn,Ga=qi.bottom+Fn,ba=Ga-Xn,Qa=De.getScrollPositionForPixel(ai),gn=De.getScrollPositionForPixel(Mi-ba),ja=Math.min((Qa+gn)/2,ai),Lr=Xn+Qe>ai,Va=Ga-st<Mi,uc=null;o==="top"?uc=Qa:o==="bottom"?uc=gn:o==="middle"?uc=ja:Lr?uc=Qa-Qe:Va&&(uc=gn+st),uc!==null&&(this.setVerticalScrollPosition(uc),_e.redraw({afterScroll:!0})),Ot=Kt!==Ct.rowTop||ti!==Ct.rowHeight}while(Ot);(Pt=this.animationFrameSvc)==null||Pt.flushAllFrames()})}ensureColumnVisible(i,o="auto"){let{colModel:C,frameworkOverrides:P}=this.beans,B=C.getCol(i);if(!B||B.isPinned()||!this.visibleCols.isColDisplayed(B))return;let W=this.getPositionedHorizontalScroll(B,o);P.wrapIncoming(()=>{var $;W!==null&&this.centerRowsCtrl.setCenterViewportScrollLeft(W),this.centerRowsCtrl.onHorizontalViewportChanged(),($=this.animationFrameSvc)==null||$.flushAllFrames()})}getPositionedHorizontalScroll(i,o){let{columnBeforeStart:C,columnAfterEnd:P}=this.isColumnOutsideViewport(i),B=this.centerRowsCtrl.getCenterWidth()<i.getActualWidth(),W=this.centerRowsCtrl.getCenterWidth(),$=this.enableRtl,ie=($?C:P)||B,ue=$?P:C;o!=="auto"&&(ie=o==="start",ue=o==="end");let De=o==="middle";if(ie||ue||De){let{colLeft:_e,colMiddle:Be,colRight:Qe}=this.getColumnBounds(i);return De?Be-W/2:ie?$?Qe:_e:$?_e-W:Qe-W}return null}isColumnOutsideViewport(i){let{start:o,end:C}=this.getViewportBounds(),{colLeft:P,colRight:B}=this.getColumnBounds(i),W=this.enableRtl,$=W?o>B:C<B,ie=W?C<P:o>P;return{columnBeforeStart:$,columnAfterEnd:ie}}getColumnBounds(i){let o=this.enableRtl,C=this.visibleCols.bodyWidth,P=i.getActualWidth(),B=i.getLeft(),W=o?-1:1,$=o?C-B:B,ie=$+P*W,ue=$+P/2*W;return{colLeft:$,colMiddle:ue,colRight:ie}}getViewportBounds(){let i=this.centerRowsCtrl.getCenterWidth(),o=this.centerRowsCtrl.getCenterViewportScrollLeft(),C=o,P=i+o;return{start:C,end:P,width:i}}},Nm=class extends ei{constructor(i,o=!1){super(),this.callback=i,this.addSpacer=o}postConstruct(){let i=this.setWidth.bind(this);this.addManagedPropertyListener("domLayout",i),this.addManagedEventListeners({columnContainerWidthChanged:i,displayedColumnsChanged:i,leftPinnedWidthChanged:i}),this.addSpacer&&this.addManagedEventListeners({rightPinnedWidthChanged:i,scrollVisibilityChanged:i,scrollbarWidthChanged:i}),this.setWidth()}setWidth(){let i=Fo(this.gos,"print"),{visibleCols:o,scrollVisibleSvc:C}=this.beans,P=o.bodyWidth,B=o.getColsLeftWidth(),W=o.getDisplayedColumnsRightWidth(),$;i?$=P+B+W:($=P,this.addSpacer&&(this.gos.get("enableRtl")?B:W)===0&&C.verticalScrollShowing&&($+=C.getScrollbarWidth())),this.callback($)}},_P=class extends ei{constructor(i){super(),this.centerContainerCtrl=i}wireBeans(i){this.scrollVisibleSvc=i.scrollVisibleSvc}postConstruct(){this.beans.ctrlsSvc.whenReady(this,i=>{this.gridBodyCtrl=i.gridBodyCtrl,this.listenForResize()}),this.addManagedEventListeners({scrollbarWidthChanged:this.onScrollbarWidthChanged.bind(this)}),this.addManagedPropertyListeners(["alwaysShowHorizontalScroll","alwaysShowVerticalScroll"],()=>{this.checkViewportAndScrolls()})}listenForResize(){let{beans:i,centerContainerCtrl:o,gridBodyCtrl:C}=this,P=()=>{pp(i,()=>{this.onCenterViewportResized()})};o.registerViewportResizeListener(P),C.registerBodyViewportResizeListener(P)}onScrollbarWidthChanged(){this.checkViewportAndScrolls()}onCenterViewportResized(){if(this.scrollVisibleSvc.updateScrollGap(),this.centerContainerCtrl.isViewportInTheDOMTree()){let{pinnedCols:i,colFlex:o}=this.beans;i==null||i.keepPinnedColumnsNarrowerThanViewport(),this.checkViewportAndScrolls();let C=this.centerContainerCtrl.getCenterWidth();C!==this.centerWidth&&(this.centerWidth=C,o==null||o.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(){let i=this.gridBodyCtrl.eBodyViewport,o=$n(i);this.bodyHeight!==o&&(this.bodyHeight=o,this.eventSvc.dispatchEvent({type:"bodyHeightChanged"}))}updateScrollVisibleService(){this.updateScrollVisibleServiceImpl(),setTimeout(this.updateScrollVisibleServiceImpl.bind(this),500)}updateScrollVisibleServiceImpl(){let i={horizontalScrollShowing:this.centerContainerCtrl.isHorizontalScrollShowing(),verticalScrollShowing:this.gridBodyCtrl.isVerticalScrollShowing()};this.scrollVisibleSvc.setScrollsVisible(i)}onHorizontalViewportChanged(){let i=this.centerContainerCtrl.getCenterWidth(),o=this.centerContainerCtrl.getViewportScrollLeft();this.beans.colViewport.setScrollPosition(i,o)}};function y0(i,o,C,P,B,W){if(C==null&&o==null)return;let $={},ie={},ue=(De,_e)=>{De.split(" ").forEach(Be=>{Be.trim()!=""&&_e(Be)})};if(C){let De=Object.keys(C);for(let _e=0;_e<De.length;_e++){let Be=De[_e],Qe=C[Be],st;typeof Qe=="string"?st=i?i.evaluate(Qe,P):!0:typeof Qe=="function"&&(st=Qe(P)),ue(Be,Ct=>{st?$[Ct]=!0:ie[Ct]=!0})}}o&&W&&Object.keys(o).forEach(De=>ue(De,_e=>{$[_e]||(ie[_e]=!0)})),W&&Object.keys(ie).forEach(W),Object.keys($).forEach(B)}function Zo(i){if(i.group)return i.level;let o=i.parent;return o?o.level+1:0}var pv=class extends ei{constructor(){super(...arguments),this.beanName="rowStyleSvc"}processClassesFromGridOptions(i,o){let C=this.gos,P=$=>{typeof $=="string"?i.push($):Array.isArray($)&&$.forEach(ie=>i.push(ie))},B=C.get("rowClass");B&&P(B);let W=C.getCallback("getRowClass");if(W){let $={data:o.data,node:o,rowIndex:o.rowIndex},ie=W($);P(ie)}}preProcessRowClassRules(i,o){this.processRowClassRules(o,C=>{i.push(C)},()=>{})}processRowClassRules(i,o,C){let{gos:P,expressionSvc:B}=this.beans,W=P.addGridCommonParams({data:i.data,node:i,rowIndex:i.rowIndex});y0(B,void 0,P.get("rowClassRules"),W,o,C)}processStylesFromGridOptions(i){let o=this.gos,C=o.get("rowStyle"),P=o.getCallback("getRowStyle"),B;if(P){let W={data:i.data,node:i,rowIndex:i.rowIndex};B=P(W)}if(B||C)return Object.assign({},C,B)}},Dx=0,wu="renderedRow",b0=class extends ei{constructor(i,o,C,P,B){var W,$;super(),this.rowNode=i,this.useAnimationFrameForCreate=P,this.printLayout=B,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=o,this.gos=o.gos,this.paginationPage=($=(W=o.pagination)==null?void 0:W.getCurrentPage())!=null?$:0,this.suppressRowTransform=this.gos.get("suppressRowTransform"),this.instanceId=i.id+"-"+Dx++,this.rowId=ql(i.id),this.initRowBusinessKey(),this.rowFocused=o.focusSvc.isRowFocused(this.rowNode.rowIndex,this.rowNode.rowPinned),this.rowLevel=Zo(this.rowNode),this.setRowType(),this.setAnimateFlags(C),this.rowStyles=this.processStylesFromGridOptions(),this.addListeners()}initRowBusinessKey(){this.businessKeyForNodeFunc=this.gos.get("getBusinessKeyForNode"),this.updateRowBusinessKey()}updateRowBusinessKey(){if(typeof this.businessKeyForNodeFunc!="function")return;let i=this.businessKeyForNodeFunc(this.rowNode);this.businessKey=ql(i)}updateGui(i,o){i==="left"?this.leftGui=o:i==="right"?this.rightGui=o:i==="fullWidth"?this.fullWidthGui=o:this.centerGui=o}setComp(i,o,C,P){P=Sh(this,this.beans.context,P);let B={rowComp:i,element:o,containerType:C,compBean:P};this.allRowGuis.push(B),this.updateGui(C,B),this.initialiseRowComp(B),this.rowType!=="FullWidthLoading"&&!this.rowNode.rowPinned&&this.beans.rowRenderer.dispatchFirstDataRenderedEvent()}unsetComp(i){this.allRowGuis=this.allRowGuis.filter(o=>o.containerType!==i),this.updateGui(i,void 0)}isCacheable(){return this.rowType==="FullWidthDetail"&&this.gos.get("keepDetailRows")}setCached(i){let o=i?"none":"";this.allRowGuis.forEach(C=>C.element.style.display=o)}initialiseRowComp(i){var B;let o=this.gos;this.onSuppressCellFocusChanged(this.beans.gos.get("suppressCellFocus")),this.listenOnDomOrder(i),(B=this.beans.rowAutoHeight)==null||B.checkAutoHeights(this.rowNode),this.onRowHeightChanged(i),this.updateRowIndexes(i),this.setFocusedClasses(i),this.setStylesFromGridOptions(!1,i),Ec(o)&&this.rowNode.selectable&&this.onRowSelected(i),this.updateColumnLists(!this.useAnimationFrameForCreate);let C=i.rowComp;this.getInitialRowClasses(i.containerType).forEach(W=>C.addOrRemoveCssClass(W,!0)),this.executeSlideAndFadeAnimations(i),this.rowNode.group&&ze(i.element,this.rowNode.expanded==!0),this.setRowCompRowId(C),this.setRowCompRowBusinessKey(C),Pd(o,i.element,wu,this),i.compBean.addDestroyFunc(()=>Pd(o,i.element,wu,null)),this.useAnimationFrameForCreate?this.beans.animationFrameSvc.createTask(this.addHoverFunctionality.bind(this,i),this.rowNode.rowIndex,"createTasksP2"):this.addHoverFunctionality(i),this.isFullWidth()&&this.setupFullWidth(i),o.get("rowDragEntireRow")&&this.addRowDraggerToRow(i),this.useAnimationFrameForCreate&&this.beans.animationFrameSvc.addDestroyTask(()=>{this.isAlive()&&i.rowComp.addOrRemoveCssClass("ag-after-created",!0)}),this.executeProcessRowPostCreateFunc()}setRowCompRowBusinessKey(i){this.businessKey!=null&&i.setRowBusinessKey(this.businessKey)}setRowCompRowId(i){let o=ql(this.rowNode.id);this.rowId=o,o!=null&&i.setRowId(o)}executeSlideAndFadeAnimations(i){let{containerType:o}=i;this.slideInAnimation[o]&&($f(()=>{this.onTopChanged()}),this.slideInAnimation[o]=!1),this.fadeInAnimation[o]&&($f(()=>{i.rowComp.addOrRemoveCssClass("ag-opacity-zero",!1)}),this.fadeInAnimation[o]=!1)}addRowDraggerToRow(i){var P;let o=(P=this.beans.rowDragSvc)==null?void 0:P.createRowDragCompForRow(this.rowNode,i.element);if(!o)return;let C=this.createBean(o,this.beans.context);this.rowDragComps.push(C),i.compBean.addDestroyFunc(()=>{this.rowDragComps=this.rowDragComps.filter(B=>B!==C),this.destroyBean(C,this.beans.context)})}setupFullWidth(i){let o=this.getPinnedForContainer(i.containerType),C=this.createFullWidthCompDetails(i.element,o);i.rowComp.showFullWidth(C)}getFullWidthCellRenderers(){var i,o;return this.gos.get("embedFullWidthRows")?this.allRowGuis.map(C=>{var P;return(P=C==null?void 0:C.rowComp)==null?void 0:P.getFullWidthCellRenderer()}):[(o=(i=this.fullWidthGui)==null?void 0:i.rowComp)==null?void 0:o.getFullWidthCellRenderer()]}executeProcessRowPostCreateFunc(){let i=this.gos.getCallback("processRowPostCreate");if(!i||!this.areAllContainersReady())return;let o={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)};i(o)}areAllContainersReady(){let{leftGui:i,centerGui:o,rightGui:C,beans:{visibleCols:P}}=this,B=!!i||!P.isPinningLeft(),W=!!o,$=!!C||!P.isPinningRight();return B&&W&&$}isNodeFullWidthCell(){if(this.rowNode.detail)return!0;let i=this.beans.gos.getCallback("isFullWidthRow");return i?i({rowNode:this.rowNode}):!1}setRowType(){let i=this.rowNode.stub&&!this.gos.get("suppressServerSideFullWidthLoadingRow")&&!this.gos.get("groupHideOpenParents"),o=this.isNodeFullWidthCell(),C=this.gos.get("masterDetail")&&this.rowNode.detail,P=this.beans.colModel.isPivotMode(),W=!!this.rowNode.group&&!this.rowNode.footer&&ax(this.gos,P);i?this.rowType="FullWidthLoading":C?this.rowType="FullWidthDetail":o?this.rowType="FullWidth":W?this.rowType="FullWidthGroup":this.rowType="Normal"}updateColumnLists(i=!1,o=!1){if(this.isFullWidth())return;let{animationFrameSvc:C}=this.beans;if(!C||i||this.gos.get("suppressAnimationFrame")||this.printLayout){this.updateColumnListsImpl(o);return}this.updateColumnListsPending||(C.createTask(()=>{this.active&&this.updateColumnListsImpl(!0)},this.rowNode.rowIndex,"createTasksP1"),this.updateColumnListsPending=!0)}createCellCtrls(i,o,C=null){let P={list:[],map:{}},B=(W,$)=>{P.list.push($),P.map[W]=$};return o.forEach(W=>{let $=W.getInstanceId(),ie=i.map[$];ie||(ie=new nd(W,this.rowNode,this.beans,this)),B($,ie)}),i.list.forEach(W=>{let $=W.column.getInstanceId();if(P.map[$]!=null)return;if(!this.isCellEligibleToBeRemoved(W,C)){B($,W);return}W.destroy()}),P}updateColumnListsImpl(i){this.updateColumnListsPending=!1,this.createAllCellCtrls(),this.setCellCtrls(i)}setCellCtrls(i){this.allRowGuis.forEach(o=>{let C=this.getCellCtrlsForContainer(o.containerType);o.rowComp.setCellCtrls(C,i)})}getCellCtrlsForContainer(i){switch(i){case"left":return this.leftCellCtrls.list;case"right":return this.rightCellCtrls.list;case"fullWidth":return[];case"center":return this.centerCellCtrls.list}}createAllCellCtrls(){let i=this.beans.colViewport,o=this.beans.visibleCols;if(this.printLayout)this.centerCellCtrls=this.createCellCtrls(this.centerCellCtrls,o.allCols),this.leftCellCtrls={list:[],map:{}},this.rightCellCtrls={list:[],map:{}};else{let C=i.getColsWithinViewport(this.rowNode);this.centerCellCtrls=this.createCellCtrls(this.centerCellCtrls,C);let P=o.getLeftColsForRow(this.rowNode);this.leftCellCtrls=this.createCellCtrls(this.leftCellCtrls,P,"left");let B=o.getRightColsForRow(this.rowNode);this.rightCellCtrls=this.createCellCtrls(this.rightCellCtrls,B,"right")}}isCellEligibleToBeRemoved(i,o){let{column:B}=i;if(B.getPinned()!=o)return!0;let{editing:W,cellPosition:$}=i,{focusSvc:ie,visibleCols:ue}=this.beans,De=ie.isCellFocused($);return W||De?!(ue.allCols.indexOf(B)>=0):!0}getDomOrder(){return this.gos.get("ensureDomOrder")||Fo(this.gos,"print")}listenOnDomOrder(i){let o=()=>{i.rowComp.setDomOrder(this.getDomOrder())};i.compBean.addManagedPropertyListeners(["domLayout","ensureDomOrder"],o)}setAnimateFlags(i){if(this.rowNode.sticky||!i)return;let o=Ai(this.rowNode.oldRowTop),{visibleCols:C}=this.beans,P=C.isPinningLeft(),B=C.isPinningRight();if(o){let{slideInAnimation:W}=this;if(this.isFullWidth()&&!this.gos.get("embedFullWidthRows")){W.fullWidth=!0;return}W.center=!0,W.left=P,W.right=B}else{let{fadeInAnimation:W}=this;if(this.isFullWidth()&&!this.gos.get("embedFullWidthRows")){W.fullWidth=!0;return}W.center=!0,W.left=P,W.right=B}}isFullWidth(){return this.rowType!=="Normal"}refreshFullWidth(){let i=($,ie)=>$?$.rowComp.refreshFullWidth(()=>this.createFullWidthCompDetails($.element,ie).params):!0,o=i(this.fullWidthGui,null),C=i(this.centerGui,null),P=i(this.leftGui,"left"),B=i(this.rightGui,"right");return o&&C&&P&&B}addListeners(){var i,o;this.addManagedListeners(this.rowNode,pe({heightChanged:()=>this.onRowHeightChanged(),rowSelected:()=>this.onRowSelected(),rowIndexChanged:this.onRowIndexChanged.bind(this),topChanged:this.onTopChanged.bind(this)},(o=(i=this.beans.expansionSvc)==null?void 0:i.getRowExpandedListeners(this))!=null?o:{})),this.rowNode.detail&&this.addManagedListeners(this.rowNode.parent,{dataChanged:this.onRowNodeDataChanged.bind(this)}),this.addManagedListeners(this.rowNode,{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)}),this.addManagedListeners(this.beans.eventSvc,{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()}),this.addDestroyFunc(()=>{this.rowDragComps=this.destroyBeans(this.rowDragComps,this.beans.context),this.tooltipFeature=this.destroyBean(this.tooltipFeature,this.beans.context)}),this.addManagedPropertyListeners(["rowStyle","getRowStyle","rowClass","getRowClass","rowClassRules"],this.postProcessCss.bind(this)),this.addManagedPropertyListener("rowDragEntireRow",()=>{if(this.gos.get("rowDragEntireRow")){this.allRowGuis.forEach(P=>{this.addRowDraggerToRow(P)});return}this.rowDragComps=this.destroyBeans(this.rowDragComps,this.beans.context)}),this.addListenersForCellComps()}addListenersForCellComps(){this.addManagedListeners(this.rowNode,{rowIndexChanged:()=>{this.getAllCellCtrls().forEach(i=>i.onRowIndexChanged())},cellChanged:i=>{this.getAllCellCtrls().forEach(o=>o.onCellChanged(i))}})}onRowNodeDataChanged(i){if(this.isFullWidth()!==!!this.isNodeFullWidthCell()){this.beans.rowRenderer.redrawRow(this.rowNode);return}if(this.isFullWidth()){this.refreshFullWidth()||this.beans.rowRenderer.redrawRow(this.rowNode);return}this.getAllCellCtrls().forEach(C=>C.refreshCell({suppressFlash:!i.update,newData:!i.update})),this.allRowGuis.forEach(C=>{this.setRowCompRowId(C.rowComp),this.updateRowBusinessKey(),this.setRowCompRowBusinessKey(C.rowComp)}),this.onRowSelected(),this.postProcessCss()}postProcessCss(){this.setStylesFromGridOptions(!0),this.postProcessClassesFromGridOptions(),this.postProcessRowClassRules(),this.postProcessRowDragging()}onRowNodeHighlightChanged(){let i=this.rowNode.highlighted;this.allRowGuis.forEach(o=>{let C=i==="Above",P=i==="Below";o.rowComp.addOrRemoveCssClass("ag-row-highlight-above",C),o.rowComp.addOrRemoveCssClass("ag-row-highlight-below",P)})}postProcessRowDragging(){let i=this.rowNode.dragging;this.allRowGuis.forEach(o=>o.rowComp.addOrRemoveCssClass("ag-row-dragging",i))}onDisplayedColumnsChanged(){var i;this.updateColumnLists(!0),(i=this.beans.rowAutoHeight)==null||i.checkAutoHeights(this.rowNode)}onVirtualColumnsChanged(){this.updateColumnLists(!1,!0)}getRowPosition(){return{rowPinned:cl(this.rowNode.rowPinned),rowIndex:this.rowNode.rowIndex}}findFullWidthRowGui(i){return this.allRowGuis.find(o=>o.element.contains(i))}onKeyboardNavigate(i){var De;let o=this.findFullWidthRowGui(i.target);if(!((o?o.element:null)===i.target))return;let B=this.rowNode,{focusSvc:W,navigation:$}=this.beans,ie=W.getFocusedCell(),ue={rowIndex:B.rowIndex,rowPinned:B.rowPinned,column:(De=ie==null?void 0:ie.column)!=null?De:this.getColumnForFullWidth(o)};$==null||$.navigateToNextCell(i,i.key,ue,!0),i.preventDefault()}onTabKeyDown(i){var ie;if(i.defaultPrevented||Zi(i))return;let o=this.allRowGuis.find(ue=>ue.element.contains(i.target)),C=o?o.element:null,P=C===i.target,B=Fa(this.beans),W=!1;C&&B&&(W=C.contains(B)&&B.classList.contains("ag-cell"));let $=null;!P&&!W&&($=mi(this.beans,C,!1,i.shiftKey)),(this.isFullWidth()&&P||!$)&&((ie=this.beans.navigation)==null||ie.onTabKeyDown(this,i))}getFullWidthElement(){return this.fullWidthGui?this.fullWidthGui.element:null}getRowYPosition(){var o;let i=(o=this.allRowGuis.find(C=>ht(C.element)))==null?void 0:o.element;return i?i.getBoundingClientRect().top:0}onSuppressCellFocusChanged(i){let o=this.isFullWidth()&&i?void 0:-1;this.allRowGuis.forEach(C=>{$r(C.element,"tabindex",o)})}onFullWidthRowFocused(i){var B;let o=this.rowNode,C=i?this.isFullWidth()&&i.rowIndex===o.rowIndex&&i.rowPinned==o.rowPinned:!1,P=this.fullWidthGui?this.fullWidthGui.element:(B=this.centerGui)==null?void 0:B.element;P&&(P.classList.toggle("ag-full-width-focus",C),C&&(i!=null&&i.forceBrowserFocus)&&P.focus({preventScroll:!0}))}recreateCell(i){this.centerCellCtrls=this.removeCellCtrl(this.centerCellCtrls,i),this.leftCellCtrls=this.removeCellCtrl(this.leftCellCtrls,i),this.rightCellCtrls=this.removeCellCtrl(this.rightCellCtrls,i),i.destroy(),this.updateColumnLists()}removeCellCtrl(i,o){let C={list:[],map:{}};return i.list.forEach(P=>{P!==o&&(C.list.push(P),C.map[P.column.getInstanceId()]=P)}),C}onMouseEvent(i,o){switch(i){case"dblclick":this.onRowDblClick(o);break;case"click":this.onRowClick(o);break;case"touchstart":case"mousedown":this.onRowMouseDown(o);break}}createRowEvent(i,o){let{rowNode:C}=this;return this.gos.addGridCommonParams({type:i,node:C,data:C.data,rowIndex:C.rowIndex,rowPinned:C.rowPinned,event:o})}createRowEventWithSource(i,o){let C=this.createRowEvent(i,o);return C.source=this,C}onRowDblClick(i){Zi(i)||this.beans.eventSvc.dispatchEvent(this.createRowEventWithSource("rowDoubleClicked",i))}getColumnForFullWidth(i){let{visibleCols:o}=this.beans;switch(i==null?void 0:i.containerType){case"center":return o.centerCols[0];case"left":return o.leftCols[0];case"right":return o.rightCols[0];default:return o.allCols[0]}}onRowMouseDown(i){if(this.lastMouseDownOnDragger=uo(i.target,"ag-row-drag",3),!this.isFullWidth())return;let o=this.rowNode,{rangeSvc:C,focusSvc:P}=this.beans;C==null||C.removeAllCellRanges();let B=this.findFullWidthRowGui(i.target),W=B==null?void 0:B.element,$=i.target,ie=!0;W&&W.contains($)&&Ps($)&&(ie=!1),P.setFocusedCell({rowIndex:o.rowIndex,column:this.getColumnForFullWidth(B),rowPinned:o.rowPinned,forceBrowserFocus:ie})}onRowClick(i){if(Zi(i)||this.lastMouseDownOnDragger)return;let{eventSvc:C,selectionSvc:P}=this.beans;C.dispatchEvent(this.createRowEventWithSource("rowClicked",i)),P==null||P.handleSelectionEvent(i,this.rowNode,"rowClicked")}setupDetailRowAutoHeight(i){var o;this.rowType==="FullWidthDetail"&&((o=this.beans.masterDetailSvc)==null||o.setupDetailRowAutoHeight(this,i))}createFullWidthCompDetails(i,o){let{gos:C,rowNode:P}=this,B=C.addGridCommonParams({fullWidth:!0,data:P.data,node:P,value:P.key,valueFormatted:P.key,eGridCell:i,eParentOfValue:i,pinned:o,addRenderedRowListener:this.addEventListener.bind(this),registerRowDragger:($,ie,ue,De)=>this.addFullWidthRowDragging($,ie,ue,De),setTooltip:($,ie)=>{C.assertModuleRegistered("Tooltip",3),this.refreshRowTooltip($,ie)}}),W=this.beans.userCompFactory;switch(this.rowType){case"FullWidthDetail":return Mn(W,B);case"FullWidthGroup":return WA(W,B);case"FullWidthLoading":return vx(W,B);default:return fx(W,B)}}refreshRowTooltip(i,o){var C;this.fullWidthGui&&(this.tooltipFeature=(C=this.beans.tooltipSvc)==null?void 0:C.refreshRowTooltip(this.tooltipFeature,this,i,o))}addFullWidthRowDragging(i,o,C="",P){let{rowDragSvc:B,context:W}=this.beans;if(!B||!this.isFullWidth())return;let $=B.createRowDragComp(()=>C,this.rowNode,void 0,i,o,P);this.createBean($,W),this.addDestroyFunc(()=>{this.destroyBean($,W)})}onUiLevelChanged(){let i=Zo(this.rowNode);if(this.rowLevel!=i){let o="ag-row-level-"+i,C="ag-row-level-"+this.rowLevel;this.allRowGuis.forEach(P=>{P.rowComp.addOrRemoveCssClass(o,!0),P.rowComp.addOrRemoveCssClass(C,!1)})}this.rowLevel=i}isFirstRowOnPage(){return this.rowNode.rowIndex===this.beans.pageBounds.getFirstRow()}isLastRowOnPage(){return this.rowNode.rowIndex===this.beans.pageBounds.getLastRow()}refreshFirstAndLastRowStyles(){let i=this.isFirstRowOnPage(),o=this.isLastRowOnPage();this.firstRowOnPage!==i&&(this.firstRowOnPage=i,this.allRowGuis.forEach(C=>C.rowComp.addOrRemoveCssClass("ag-row-first",i))),this.lastRowOnPage!==o&&(this.lastRowOnPage=o,this.allRowGuis.forEach(C=>C.rowComp.addOrRemoveCssClass("ag-row-last",o)))}getAllCellCtrls(){return this.leftCellCtrls.list.length===0&&this.rightCellCtrls.list.length===0?this.centerCellCtrls.list:[...this.centerCellCtrls.list,...this.leftCellCtrls.list,...this.rightCellCtrls.list]}postProcessClassesFromGridOptions(){var o;let i=[];(o=this.beans.rowStyleSvc)==null||o.processClassesFromGridOptions(i,this.rowNode),i.length&&i.forEach(C=>{this.allRowGuis.forEach(P=>P.rowComp.addOrRemoveCssClass(C,!0))})}postProcessRowClassRules(){var i;(i=this.beans.rowStyleSvc)==null||i.processRowClassRules(this.rowNode,o=>{this.allRowGuis.forEach(C=>C.rowComp.addOrRemoveCssClass(o,!0))},o=>{this.allRowGuis.forEach(C=>C.rowComp.addOrRemoveCssClass(o,!1))})}setStylesFromGridOptions(i,o){i&&(this.rowStyles=this.processStylesFromGridOptions()),this.forEachGui(o,C=>C.rowComp.setUserStyles(this.rowStyles))}getPinnedForContainer(i){return i==="left"||i==="right"?i:null}getInitialRowClasses(i){var ie;let o=this.getPinnedForContainer(i),C=this.isFullWidth(),{rowNode:P,beans:B}=this,W=[];W.push("ag-row"),W.push(this.rowFocused?"ag-row-focus":"ag-row-no-focus"),this.fadeInAnimation[i]&&W.push("ag-opacity-zero"),W.push(P.rowIndex%2===0?"ag-row-even":"ag-row-odd"),P.isRowPinned()&&W.push("ag-row-pinned"),P.isSelected()&&W.push("ag-row-selected"),P.footer&&W.push("ag-row-footer"),W.push("ag-row-level-"+this.rowLevel),P.stub&&W.push("ag-row-loading"),C&&W.push("ag-full-width-row"),(ie=B.expansionSvc)==null||ie.addExpandedCss(W,P),P.dragging&&W.push("ag-row-dragging");let{rowStyleSvc:$}=B;return $&&($.processClassesFromGridOptions(W,P),$.preProcessRowClassRules(W,P)),W.push(this.printLayout?"ag-row-position-relative":"ag-row-position-absolute"),this.isFirstRowOnPage()&&W.push("ag-row-first"),this.isLastRowOnPage()&&W.push("ag-row-last"),C&&(o==="left"&&W.push("ag-cell-last-left-pinned"),o==="right"&&W.push("ag-cell-first-right-pinned")),W}processStylesFromGridOptions(){var i,o;return(o=(i=this.beans.rowStyleSvc)==null?void 0:i.processStylesFromGridOptions(this.rowNode))!=null?o:this.emptyStyle}onRowSelected(i){var o;(o=this.beans.selectionSvc)==null||o.onRowCtrlSelected(this,C=>{(C===this.centerGui||C===this.fullWidthGui)&&this.announceDescription()},i)}announceDescription(){var i;(i=this.beans.selectionSvc)==null||i.announceAriaRowSelection(this.rowNode)}addHoverFunctionality(i){if(!this.active)return;let{element:o,compBean:C}=i,{rowNode:P,beans:B,gos:W}=this;C.addManagedListeners(o,{mouseenter:()=>P.dispatchRowEvent("mouseEnter"),mouseleave:()=>P.dispatchRowEvent("mouseLeave")}),C.addManagedListeners(P,{mouseEnter:()=>{var $;!(($=B.dragSvc)!=null&&$.dragging)&&!W.get("suppressRowHoverHighlight")&&(o.classList.add("ag-row-hover"),P.setHovered(!0))},mouseLeave:()=>{o.classList.remove("ag-row-hover"),P.setHovered(!1)}})}roundRowTopToBounds(i){let o=this.beans.ctrlsSvc.getScrollFeature().getApproximateVScollPosition(),C=this.applyPaginationOffset(o.top,!0)-100,P=this.applyPaginationOffset(o.bottom,!0)+100;return Math.min(Math.max(C,i),P)}forEachGui(i,o){i?o(i):this.allRowGuis.forEach(o)}onRowHeightChanged(i){if(this.rowNode.rowHeight==null)return;let o=this.rowNode.rowHeight,C=this.beans.environment.getDefaultRowHeight(),B=Ns(this.gos)?uh(this.beans,this.rowNode).height:void 0,W=B?`${Math.min(C,B)-2}px`:void 0;this.forEachGui(i,$=>{$.element.style.height=`${o}px`,W&&$.element.style.setProperty("--ag-line-height",W)})}destroyFirstPass(i=!1){this.active=!1;let{rowNode:o}=this;if(!i&&jn(this.gos)&&!o.sticky)if(o.rowTop!=null){let B=this.roundRowTopToBounds(o.rowTop);this.setRowTop(B)}else this.allRowGuis.forEach(B=>B.rowComp.addOrRemoveCssClass("ag-opacity-zero",!0));o.setHovered(!1);let C=this.createRowEvent("virtualRowRemoved");this.dispatchLocalEvent(C),this.beans.eventSvc.dispatchEvent(C),super.destroy()}destroySecondPass(){var o;this.allRowGuis.length=0,(o=this.beans.editSvc)==null||o.stopRowEditing(this);let i=C=>(C.list.forEach(P=>P.destroy()),{list:[],map:{}});this.centerCellCtrls=i(this.centerCellCtrls),this.leftCellCtrls=i(this.leftCellCtrls),this.rightCellCtrls=i(this.rightCellCtrls)}setFocusedClasses(i){this.forEachGui(i,o=>{o.rowComp.addOrRemoveCssClass("ag-row-focus",this.rowFocused),o.rowComp.addOrRemoveCssClass("ag-row-no-focus",!this.rowFocused)})}onCellFocusChanged(){let{focusSvc:i,editSvc:o}=this.beans,C=i.isRowFocused(this.rowNode.rowIndex,this.rowNode.rowPinned);C!==this.rowFocused&&(this.rowFocused=C,this.setFocusedClasses()),!C&&this.editing&&(o==null||o.stopRowEditing(this,!1))}onPaginationChanged(){var o,C;let i=(C=(o=this.beans.pagination)==null?void 0:o.getCurrentPage())!=null?C:0;this.paginationPage!==i&&(this.paginationPage=i,this.onTopChanged()),this.refreshFirstAndLastRowStyles()}onTopChanged(){this.setRowTop(this.rowNode.rowTop)}onPaginationPixelOffsetChanged(){this.onTopChanged()}applyPaginationOffset(i,o=!1){if(this.rowNode.isRowPinned()||this.rowNode.sticky)return i;let C=this.beans.pageBounds.getPixelOffset();return i+C*(o?1:-1)}setRowTop(i){if(!this.printLayout&&Ai(i)){let o=this.applyPaginationOffset(i),B=`${this.rowNode.isRowPinned()||this.rowNode.sticky?o:this.beans.rowContainerHeight.getRealPixelPosition(o)}px`;this.setRowTopStyle(B)}}getInitialRowTop(i){return this.suppressRowTransform?this.getInitialRowTopShared(i):void 0}getInitialTransform(i){return this.suppressRowTransform?void 0:`translateY(${this.getInitialRowTopShared(i)})`}getInitialRowTopShared(i){if(this.printLayout)return"";let o=this.rowNode,C;if(o.sticky)C=o.stickyRowTop;else{let P=this.slideInAnimation[i]?this.roundRowTopToBounds(o.oldRowTop):o.rowTop,B=this.applyPaginationOffset(P);C=o.isRowPinned()?B:this.beans.rowContainerHeight.getRealPixelPosition(B)}return C+"px"}setRowTopStyle(i){this.allRowGuis.forEach(o=>this.suppressRowTransform?o.rowComp.setTop(i):o.rowComp.setTransform(`translateY(${i})`))}getCellCtrl(i,o=!1){let C=null;return this.getAllCellCtrls().forEach(P=>{P.column==i&&(C=P)}),C!=null||o||this.getAllCellCtrls().forEach(P=>{P.getColSpanningList().indexOf(i)>=0&&(C=P)}),C}onRowIndexChanged(){this.rowNode.rowIndex!=null&&(this.onCellFocusChanged(),this.updateRowIndexes(),this.postProcessCss())}updateRowIndexes(i){var W,$,ie,ue;let o=this.rowNode.getRowIndexString();if(o===null)return;let C=(($=(W=this.beans.ctrlsSvc.getHeaderRowContainerCtrl())==null?void 0:W.getRowCount())!=null?$:0)+((ue=(ie=this.beans.filterManager)==null?void 0:ie.getHeaderRowCount())!=null?ue:0),P=this.rowNode.rowIndex%2===0,B=C+this.rowNode.rowIndex+1;this.forEachGui(i,De=>{De.rowComp.setRowIndex(o),De.rowComp.addOrRemoveCssClass("ag-row-even",P),De.rowComp.addOrRemoveCssClass("ag-row-odd",!P),Re(De.element,B)})}};function Cl(i){var C;return i.altKey||i.ctrlKey||i.metaKey?!1:((C=i.key)==null?void 0:C.length)===1}function Ws(i,o,C,P,B){let W=P?P.getColDef().suppressKeyboardEvent:void 0;if(!W)return!1;let $=i.addGridCommonParams({event:o,editing:B,column:P,node:C,data:C.data,colDef:P.getColDef()});return!!(W&&W($))}var nD=65,II=67,FP=86,C0=68,lg=90,aD=89;function NP(i){let{keyCode:o}=i,C;switch(o){case nD:C=Qt.A;break;case II:C=Qt.C;break;case FP:C=Qt.V;break;case C0:C=Qt.D;break;case lg:C=Qt.Z;break;case aD:C=Qt.Y;break;default:C=i.code}return C}var TI=class extends ei{constructor(i){super(),this.element=i}postConstruct(){var i;this.addKeyboardListeners(),this.addMouseListeners(),(i=this.beans.touchSvc)==null||i.mockRowContextMenu(this)}addKeyboardListeners(){let i="keydown",o=this.processKeyboardEvent.bind(this,i);this.addManagedElementListeners(this.element,{[i]:o})}addMouseListeners(){["dblclick","contextmenu","mouseover","mouseout","click",no("touchstart")?"touchstart":"mousedown"].forEach(C=>{let P=this.processMouseEvent.bind(this,C);this.addManagedElementListeners(this.element,{[C]:P})})}processMouseEvent(i,o){var B;if(!ad(this.gos,o)||Zi(o))return;let{cellCtrl:C,rowCtrl:P}=this.getControlsForEventTarget(o.target);i==="contextmenu"?(B=this.beans.contextMenuSvc)==null||B.handleContextMenuMouseEvent(o,void 0,P,C):(C&&C.onMouseEvent(i,o),P&&P.onMouseEvent(i,o))}getControlsForEventTarget(i){let{gos:o}=this;return{cellCtrl:Jy(o,i),rowCtrl:ui(o,i,wu)}}processKeyboardEvent(i,o){let{cellCtrl:C,rowCtrl:P}=this.getControlsForEventTarget(o.target);o.defaultPrevented||(C?this.processCellKeyboardEvent(C,i,o):P&&P.isFullWidth()&&this.processFullWidthRowKeyboardEvent(P,i,o))}processCellKeyboardEvent(i,o,C){var ie;let{rowNode:P,column:B,editing:W}=i;!Ws(this.gos,C,P,B,W)&&o==="keydown"&&(!W&&((ie=this.beans.navigation)!=null&&ie.handlePageScrollingKey(C))||i.onKeyDown(C),this.doGridOperations(C,i.editing),Cl(C)&&i.processCharacter(C)),o==="keydown"&&this.eventSvc.dispatchEvent(i.createEvent(C,"cellKeyDown"))}processFullWidthRowKeyboardEvent(i,o,C){let{rowNode:P}=i,{focusSvc:B,navigation:W}=this.beans,$=B.getFocusedCell(),ie=$&&$.column;if(!Ws(this.gos,C,P,ie,!1)){let De=C.key;if(o==="keydown")switch(De){case Qt.PAGE_HOME:case Qt.PAGE_END:case Qt.PAGE_UP:case Qt.PAGE_DOWN:W==null||W.handlePageScrollingKey(C,!0);break;case Qt.UP:case Qt.DOWN:i.onKeyboardNavigate(C);break;case Qt.TAB:i.onTabKeyDown(C);break;default:}}o==="keydown"&&this.eventSvc.dispatchEvent(i.createRowEvent("cellKeyDown",C))}doGridOperations(i,o){if(!i.ctrlKey&&!i.metaKey||o||!ad(this.gos,i))return;let C=NP(i),{clipboardSvc:P,undoRedo:B}=this.beans;if(C===Qt.A)return this.onCtrlAndA(i);if(C===Qt.C)return this.onCtrlAndC(P,i);if(C===Qt.D)return this.onCtrlAndD(P,i);if(C===Qt.V)return this.onCtrlAndV(P,i);if(C===Qt.X)return this.onCtrlAndX(P,i);if(C===Qt.Y)return this.onCtrlAndY(B);if(C===Qt.Z)return this.onCtrlAndZ(B,i)}onCtrlAndA(i){var ie,ue,De;let{beans:{pinnedRowModel:o,rowModel:C,visibleCols:P,rangeSvc:B,selectionSvc:W},gos:$}=this;if(B&&Dr($)&&C.isRowsToRender()){let[_e,Be]=[(ie=o==null?void 0:o.isEmpty("top"))!=null?ie:!0,(ue=o==null?void 0:o.isEmpty("bottom"))!=null?ue:!0],Qe=_e?null:"top",st,Ct;Be?(st=null,Ct=C.getRowCount()-1):(st="bottom",Ct=(De=o==null?void 0:o.getPinnedBottomRowCount())!=null?De:0-1);let Ot=P.allCols;if(!(Ot!=null&&Ot.length))return;B.setCellRange({rowStartIndex:0,rowStartPinned:Qe,rowEndIndex:Ct,rowEndPinned:st,columnStart:Ot[0],columnEnd:Sa(Ot)})}else W&&(W==null||W.selectAllRowNodes({source:"keyboardSelectAll",selectAll:FA($)}));i.preventDefault()}onCtrlAndC(i,o){if(!i||this.gos.get("enableCellTextSelection"))return;let{cellCtrl:C,rowCtrl:P}=this.getControlsForEventTarget(o.target);C!=null&&C.editing||P!=null&&P.editing||(o.preventDefault(),i.copyToClipboard())}onCtrlAndX(i,o){if(!i||this.gos.get("enableCellTextSelection")||this.gos.get("suppressCutToClipboard"))return;let{cellCtrl:C,rowCtrl:P}=this.getControlsForEventTarget(o.target);C!=null&&C.editing||P!=null&&P.editing||(o.preventDefault(),i.cutToClipboard(void 0,"ui"))}onCtrlAndV(i,o){let{cellCtrl:C,rowCtrl:P}=this.getControlsForEventTarget(o.target);C!=null&&C.editing||P!=null&&P.editing||i&&!this.gos.get("suppressClipboardPaste")&&i.pasteFromClipboard()}onCtrlAndD(i,o){i&&!this.gos.get("suppressClipboardPaste")&&i.copyRangeDown(),o.preventDefault()}onCtrlAndZ(i,o){!this.gos.get("undoRedoCellEditing")||!i||(o.preventDefault(),o.shiftKey?i.redo("ui"):i.undo("ui"))}onCtrlAndY(i){i==null||i.redo("ui")}},Ex=class extends ei{constructor(i,o){super(),this.eContainer=i,this.eViewport=o}postConstruct(){this.addManagedEventListeners({rowContainerHeightChanged:this.onHeightChanged.bind(this,this.beans.rowContainerHeight)})}onHeightChanged(i){let o=i.uiContainerHeight,C=o!=null?`${o}px`:"";this.eContainer.style.height=C,this.eViewport&&(this.eViewport.style.height=C)}},S0=i=>i.topRowCtrls,mv=i=>i.getStickyTopRowCtrls(),rb=i=>i.getStickyBottomRowCtrls(),fp=i=>i.bottomRowCtrls,Rc=i=>i.allRowCtrls,sb={center:{type:"center",container:"ag-center-cols-container",viewport:"ag-center-cols-viewport",getRowCtrls:Rc},left:{type:"left",container:"ag-pinned-left-cols-container",pinnedType:"left",getRowCtrls:Rc},right:{type:"right",container:"ag-pinned-right-cols-container",pinnedType:"right",getRowCtrls:Rc},fullWidth:{type:"fullWidth",container:"ag-full-width-container",fullWidth:!0,getRowCtrls:Rc},topCenter:{type:"center",container:"ag-floating-top-container",viewport:"ag-floating-top-viewport",getRowCtrls:S0},topLeft:{type:"left",container:"ag-pinned-left-floating-top",pinnedType:"left",getRowCtrls:S0},topRight:{type:"right",container:"ag-pinned-right-floating-top",pinnedType:"right",getRowCtrls:S0},topFullWidth:{type:"fullWidth",container:"ag-floating-top-full-width-container",fullWidth:!0,getRowCtrls:S0},stickyTopCenter:{type:"center",container:"ag-sticky-top-container",viewport:"ag-sticky-top-viewport",getRowCtrls:mv},stickyTopLeft:{type:"left",container:"ag-pinned-left-sticky-top",pinnedType:"left",getRowCtrls:mv},stickyTopRight:{type:"right",container:"ag-pinned-right-sticky-top",pinnedType:"right",getRowCtrls:mv},stickyTopFullWidth:{type:"fullWidth",container:"ag-sticky-top-full-width-container",fullWidth:!0,getRowCtrls:mv},stickyBottomCenter:{type:"center",container:"ag-sticky-bottom-container",viewport:"ag-sticky-bottom-viewport",getRowCtrls:rb},stickyBottomLeft:{type:"left",container:"ag-pinned-left-sticky-bottom",pinnedType:"left",getRowCtrls:rb},stickyBottomRight:{type:"right",container:"ag-pinned-right-sticky-bottom",pinnedType:"right",getRowCtrls:rb},stickyBottomFullWidth:{type:"fullWidth",container:"ag-sticky-bottom-full-width-container",fullWidth:!0,getRowCtrls:rb},bottomCenter:{type:"center",container:"ag-floating-bottom-container",viewport:"ag-floating-bottom-viewport",getRowCtrls:fp},bottomLeft:{type:"left",container:"ag-pinned-left-floating-bottom",pinnedType:"left",getRowCtrls:fp},bottomRight:{type:"right",container:"ag-pinned-right-floating-bottom",pinnedType:"right",getRowCtrls:fp},bottomFullWidth:{type:"fullWidth",container:"ag-floating-bottom-full-width-container",fullWidth:!0,getRowCtrls:fp}};function fv(i){return sb[i]}var zP=["topCenter","topLeft","topRight"],lb=["bottomCenter","bottomLeft","bottomRight"],oD=["center","left","right"],Ix=["center","left","right","fullWidth"],xu=["stickyTopCenter","stickyBottomCenter","center","topCenter","bottomCenter"],rD=["left","bottomLeft","topLeft","stickyTopLeft","stickyBottomLeft"],rd=["right","bottomRight","topRight","stickyTopRight","stickyBottomRight"],jr=["stickyTopCenter","stickyTopLeft","stickyTopRight"],vv=["stickyBottomCenter","stickyBottomLeft","stickyBottomRight"],Mu=[...jr,"stickyTopFullWidth",...vv,"stickyBottomFullWidth"],zd=[...zP,...lb,...oD,...jr,...vv],cg=class extends ei{constructor(i){super(),this.name=i,this.visible=!0,this.EMPTY_CTRLS=[],this.options=fv(i)}postConstruct(){this.enableRtl=this.gos.get("enableRtl"),this.forContainers(["center"],()=>{this.viewportSizeFeature=this.createManagedBean(new _P(this)),this.addManagedEventListeners({stickyTopOffsetChanged:this.onStickyTopOffsetChanged.bind(this)})})}onStickyTopOffsetChanged(i){this.comp.setOffsetTop(`${i.offset}px`)}registerWithCtrlsService(){this.options.fullWidth||this.beans.ctrlsSvc.register(this.name,this)}forContainers(i,o){i.indexOf(this.name)>=0&&o()}setComp(i,o,C){this.comp=i,this.eContainer=o,this.eViewport=C,this.createManagedBean(new TI(this.eContainer)),this.addPreventScrollWhileDragging(),this.listenOnDomOrder();let{pinnedCols:P,rangeSvc:B}=this.beans,W=()=>this.onPinnedWidthChanged();this.forContainers(rD,()=>{this.pinnedWidthFeature=this.createOptionalManagedBean(P==null?void 0:P.createPinnedWidthFeature(this.eContainer,!0)),this.addManagedEventListeners({leftPinnedWidthChanged:W})}),this.forContainers(rd,()=>{this.pinnedWidthFeature=this.createOptionalManagedBean(P==null?void 0:P.createPinnedWidthFeature(this.eContainer,!1)),this.addManagedEventListeners({rightPinnedWidthChanged:W})}),this.forContainers(Ix,()=>this.createManagedBean(new Ex(this.eContainer,this.name==="center"?C:void 0))),B&&this.forContainers(zd,()=>this.createManagedBean(B.createDragListenerFeature(this.eContainer))),this.forContainers(xu,()=>this.createManagedBean(new Nm($=>this.comp.setContainerWidth(`${$}px`)))),this.visible=this.isContainerVisible(),this.addListeners(),this.registerWithCtrlsService()}onScrollCallback(i){this.addManagedElementListeners(this.eViewport,{scroll:i})}addListeners(){this.addManagedEventListeners({displayedColumnsChanged:this.onDisplayedColumnsChanged.bind(this),displayedColumnsWidthChanged:this.onDisplayedColumnsChanged.bind(this),displayedRowsChanged:i=>this.onDisplayedRowsChanged(i.afterScroll)}),this.onDisplayedColumnsChanged(),this.onDisplayedRowsChanged()}listenOnDomOrder(){if(Mu.indexOf(this.name)>=0){this.comp.setDomOrder(!0);return}let o=()=>{let C=this.gos.get("ensureDomOrder"),P=Fo(this.gos,"print");this.comp.setDomOrder(C||P)};this.addManagedPropertyListener("domLayout",o),o()}onDisplayedColumnsChanged(){this.forContainers(["center"],()=>this.onHorizontalViewportChanged())}addPreventScrollWhileDragging(){let{dragSvc:i}=this.beans;if(!i)return;let o=C=>{i.dragging&&C.cancelable&&C.preventDefault()};this.eContainer.addEventListener("touchmove",o,{passive:!1}),this.addDestroyFunc(()=>this.eContainer.removeEventListener("touchmove",o))}onHorizontalViewportChanged(i=!1){let o=this.getCenterWidth(),C=this.getCenterViewportScrollLeft();this.beans.colViewport.setScrollPosition(o,C,i)}hasHorizontalScrollGap(){return this.eContainer.clientWidth-this.eViewport.clientWidth<0}hasVerticalScrollGap(){return this.eContainer.clientHeight-this.eViewport.clientHeight<0}getCenterWidth(){return to(this.eViewport)}getCenterViewportScrollLeft(){return En(this.eViewport,this.enableRtl)}registerViewportResizeListener(i){let o=Qr(this.beans,this.eViewport,i);this.addDestroyFunc(()=>o())}isViewportInTheDOMTree(){return ct(this.eViewport)}getViewportScrollLeft(){return En(this.eViewport,this.enableRtl)}isHorizontalScrollShowing(){return this.gos.get("alwaysShowHorizontalScroll")||Oi(this.eViewport)}setHorizontalScroll(i){this.comp.setHorizontalScroll(i)}getHScrollPosition(){return{left:this.eViewport.scrollLeft,right:this.eViewport.scrollLeft+this.eViewport.offsetWidth}}setCenterViewportScrollLeft(i){Yn(this.eViewport,i,this.enableRtl)}isContainerVisible(){return!(this.options.pinnedType!=null)||!!this.pinnedWidthFeature&&this.pinnedWidthFeature.getWidth()>0}onPinnedWidthChanged(){let i=this.isContainerVisible();this.visible!=i&&(this.visible=i,this.onDisplayedRowsChanged())}onDisplayedRowsChanged(i=!1){let o=this.options.getRowCtrls(this.beans.rowRenderer);if(!this.visible||o.length===0){this.comp.setRowCtrls({rowCtrls:this.EMPTY_CTRLS});return}let C=Fo(this.gos,"print"),B=this.gos.get("embedFullWidthRows")||C,W=o.filter($=>{let ie=$.isFullWidth();return this.options.fullWidth?!B&&ie:B||!ie});this.comp.setRowCtrls({rowCtrls:W,useFlushSync:i})}},cb="ag-force-vertical-scroll",vr="ag-selectable",Zl="ag-column-moving",Tx=class extends ei{constructor(){super(...arguments),this.stickyTopHeight=0,this.stickyBottomHeight=0}wireBeans(i){this.ctrlsSvc=i.ctrlsSvc,this.colModel=i.colModel,this.scrollVisibleSvc=i.scrollVisibleSvc,this.pinnedRowModel=i.pinnedRowModel,this.filterManager=i.filterManager,this.rowGroupColsSvc=i.rowGroupColsSvc}setComp(i,o,C,P,B,W,$){var ie,ue;this.comp=i,this.eGridBody=o,this.eBodyViewport=C,this.eTop=P,this.eBottom=B,this.eStickyTop=W,this.eStickyBottom=$,this.eCenterColsViewport=C.querySelector(`.${fv("center").viewport}`),this.eFullWidthContainer=C.querySelector(`.${fv("fullWidth").container}`),this.eStickyTopFullWidthContainer=W.querySelector(`.${fv("stickyTopFullWidth").container}`),this.eStickyBottomFullWidthContainer=$.querySelector(`.${fv("stickyBottomFullWidth").container}`),this.setCellTextSelection(this.gos.get("enableCellTextSelection")),this.addManagedPropertyListener("enableCellTextSelection",De=>this.setCellTextSelection(De.currentValue)),this.createManagedBean(new ab(this.comp)),this.scrollFeature=this.createManagedBean(new v0(this.eBodyViewport)),(ie=this.beans.rowDragSvc)==null||ie.setupRowDrag(this.eBodyViewport,this),this.setupRowAnimationCssClass(),this.addEventListeners(),this.addFocusListeners([P,C,B,W,$]),this.setGridRootRole(),this.onGridColumnsChanged(),this.addBodyViewportListener(),this.setFloatingHeights(),this.disableBrowserDragging(),this.addStopEditingWhenGridLosesFocus(),this.updateScrollingClasses(),(ue=this.filterManager)==null||ue.setupAdvFilterHeaderComp(P),this.ctrlsSvc.register("gridBodyCtrl",this)}addEventListeners(){let i=this.setFloatingHeights.bind(this),o=this.setGridRootRole.bind(this);this.addManagedEventListeners({gridColumnsChanged:this.onGridColumnsChanged.bind(this),scrollVisibilityChanged:this.onScrollVisibilityChanged.bind(this),scrollGapChanged:this.updateScrollingClasses.bind(this),pinnedRowDataChanged:i,pinnedHeightChanged:i,headerHeightChanged:this.setStickyTopOffsetTop.bind(this),columnRowGroupChanged:o,columnPivotChanged:o}),this.addManagedPropertyListener("treeData",o)}onGridColumnsChanged(){let i=this.beans.colModel.getCols();this.comp.setColumnCount(i.length)}onScrollVisibilityChanged(){let{scrollVisibleSvc:i}=this,o=i.verticalScrollShowing;this.setVerticalScrollPaddingVisible(o),this.setStickyWidth(o),this.setStickyBottomOffsetBottom();let C=o&&i.getScrollbarWidth()||0,P=eo()?16:0,B=`calc(100% + ${C+P}px)`;pp(this.beans,()=>this.comp.setBodyViewportWidth(B)),this.updateScrollingClasses()}setGridRootRole(){let{rowGroupColsSvc:i,colModel:o}=this,C=this.gos.get("treeData");if(!C){let P=o.isPivotMode();C=(i?i.columns.length:0)>=(P?2:1)}this.comp.setGridRootRole(C?"treegrid":"grid")}addFocusListeners(i){i.forEach(o=>{this.addManagedElementListeners(o,{focusin:C=>{let{target:P}=C,B=uo(P,"ag-root",o);o.classList.toggle("ag-has-focus",!B)},focusout:C=>{let{target:P,relatedTarget:B}=C,W=o.contains(B),$=uo(B,"ag-root",o);uo(P,"ag-root",o)||(!W||$)&&o.classList.remove("ag-has-focus")}})})}setColumnMovingCss(i){this.comp.setColumnMovingCss(Zl,i)}setCellTextSelection(i=!1){this.comp.setCellSelectableCss(vr,i)}updateScrollingClasses(){let{eGridBody:{classList:i},scrollVisibleSvc:o}=this;i.toggle("ag-body-vertical-content-no-gap",!o.verticalScrollGap),i.toggle("ag-body-horizontal-content-no-gap",!o.horizontalScrollGap)}disableBrowserDragging(){this.addManagedElementListeners(this.eGridBody,{dragstart:i=>{if(i.target instanceof HTMLImageElement)return i.preventDefault(),!1}})}addStopEditingWhenGridLosesFocus(){var i;(i=this.beans.editSvc)==null||i.addStopEditingWhenGridLosesFocus([this.eBodyViewport,this.eBottom,this.eTop,this.eStickyTop,this.eStickyBottom])}updateRowCount(){var B,W,$,ie;let i=((W=(B=this.ctrlsSvc.getHeaderRowContainerCtrl())==null?void 0:B.getRowCount())!=null?W:0)+((ie=($=this.filterManager)==null?void 0:$.getHeaderRowCount())!=null?ie:0),{rowModel:o}=this.beans,C=o.isLastRowIndexKnown()?o.getRowCount():-1,P=C===-1?-1:i+C;this.comp.setRowCount(P)}registerBodyViewportResizeListener(i){this.comp.registerBodyViewportResizeListener(i)}setVerticalScrollPaddingVisible(i){let o=i?"scroll":"hidden";this.comp.setPinnedTopBottomOverflowY(o)}isVerticalScrollShowing(){let i=this.gos.get("alwaysShowVerticalScroll"),o=i?cb:null,C=Fo(this.gos,"normal");return this.comp.setAlwaysVerticalScrollClass(o,i),i||C&&xn(this.eBodyViewport)}setupRowAnimationCssClass(){let{rowContainerHeight:i,environment:o}=this.beans,C=o.sizesMeasured,P=()=>{let B=C&&jn(this.gos)&&!i.stretching,W=B?"ag-row-animation":"ag-row-no-animation";this.comp.setRowAnimationCssOnBodyViewport(W,B)};P(),this.addManagedEventListeners({heightScaleChanged:P}),this.addManagedPropertyListener("animateRows",P),this.addManagedEventListeners({gridStylesChanged:()=>{!C&&o.sizesMeasured&&(C=!0,P())}})}addBodyViewportListener(){let{popupSvc:i,touchSvc:o}=this.beans,C=this.onBodyViewportContextMenu.bind(this);this.addManagedElementListeners(this.eBodyViewport,{contextmenu:C}),o==null||o.mockBodyContextMenu(this,C),this.addManagedElementListeners(this.eBodyViewport,{wheel:this.onBodyViewportWheel.bind(this,i)}),this.addManagedElementListeners(this.eStickyTop,{wheel:this.onStickyWheel.bind(this)}),this.addManagedElementListeners(this.eStickyBottom,{wheel:this.onStickyWheel.bind(this)}),this.addFullWidthContainerWheelListener()}addFullWidthContainerWheelListener(){this.addManagedElementListeners(this.eFullWidthContainer,{wheel:i=>this.onFullWidthContainerWheel(i)})}onFullWidthContainerWheel(i){let{deltaX:o,deltaY:C,shiftKey:P}=i;(P||Math.abs(o)>Math.abs(C))&&ad(this.gos,i)&&this.scrollGridBodyToMatchEvent(i)}onStickyWheel(i){let{deltaX:o,deltaY:C,shiftKey:P}=i,B=P||Math.abs(o)>Math.abs(C),W=i.target;B?(this.eStickyTopFullWidthContainer.contains(W)||this.eStickyBottomFullWidthContainer.contains(W))&&this.scrollGridBodyToMatchEvent(i):(i.preventDefault(),this.scrollVertically(C))}scrollGridBodyToMatchEvent(i){let{deltaX:o,deltaY:C}=i;i.preventDefault(),this.eCenterColsViewport.scrollBy({left:o||C})}onBodyViewportContextMenu(i,o,C){var B;if(!i&&!C)return;this.gos.get("preventDefaultOnContextMenu")&&(i||C).preventDefault();let{target:P}=i||o;(P===this.eBodyViewport||P===this.ctrlsSvc.get("center").eViewport)&&((B=this.beans.contextMenuSvc)==null||B.showContextMenu({mouseEvent:i,touchEvent:C,value:null,anchorToElement:this.eGridBody}))}onBodyViewportWheel(i,o){this.gos.get("suppressScrollWhenPopupsAreOpen")&&i!=null&&i.hasAnchoredPopup()&&o.preventDefault()}scrollVertically(i){let o=this.eBodyViewport.scrollTop;return this.scrollFeature.setVerticalScrollPosition(o+i),this.eBodyViewport.scrollTop-o}setFloatingHeights(){var P,B;let{pinnedRowModel:i}=this,o=(P=i==null?void 0:i.getPinnedTopTotalHeight())!=null?P:0,C=(B=i==null?void 0:i.getPinnedBottomTotalHeight())!=null?B:0;this.comp.setTopHeight(o),this.comp.setBottomHeight(C),this.comp.setTopDisplay(o?"inherit":"none"),this.comp.setBottomDisplay(C?"inherit":"none"),this.setStickyTopOffsetTop(),this.setStickyBottomOffsetBottom()}setStickyTopHeight(i=0){this.comp.setStickyTopHeight(`${i}px`),this.stickyTopHeight=i}setStickyBottomHeight(i=0){this.comp.setStickyBottomHeight(`${i}px`),this.stickyBottomHeight=i}setStickyWidth(i){if(!i)this.comp.setStickyTopWidth("100%"),this.comp.setStickyBottomWidth("100%");else{let o=this.scrollVisibleSvc.getScrollbarWidth();this.comp.setStickyTopWidth(`calc(100% - ${o}px)`),this.comp.setStickyBottomWidth(`calc(100% - ${o}px)`)}}setStickyTopOffsetTop(){var B,W,$,ie;let o=this.ctrlsSvc.get("gridHeaderCtrl").headerHeight+((W=(B=this.filterManager)==null?void 0:B.getHeaderHeight())!=null?W:0),C=(ie=($=this.pinnedRowModel)==null?void 0:$.getPinnedTopTotalHeight())!=null?ie:0,P=0;o>0&&(P+=o),C>0&&(P+=C),P>0&&(P+=1),this.comp.setStickyTopTop(`${P}px`)}setStickyBottomOffsetBottom(){var ie;let{pinnedRowModel:i,scrollVisibleSvc:o,comp:C}=this,P=(ie=i==null?void 0:i.getPinnedBottomTotalHeight())!=null?ie:0,W=o.horizontalScrollShowing&&o.getScrollbarWidth()||0,$=P+W;C.setStickyBottomBottom(`${$}px`)}},db=class extends On{constructor(i,o){super(),this.direction=o,this.eViewport=Ri,this.eContainer=Ri,this.hideTimeout=0,this.setTemplate(i)}postConstruct(){this.addManagedEventListeners({scrollVisibilityChanged:this.onScrollVisibilityChanged.bind(this)}),this.onScrollVisibilityChanged(),this.addOrRemoveCssClass("ag-apple-scrollbar",yn()||Tn())}destroy(){super.destroy(),window.clearTimeout(this.hideTimeout)}initialiseInvisibleScrollbar(){this.invisibleScrollbar===void 0&&(this.invisibleScrollbar=eo(),this.invisibleScrollbar&&(this.hideAndShowInvisibleScrollAsNeeded(),this.addActiveListenerToggles()))}addActiveListenerToggles(){let i=this.getGui(),o=()=>this.addOrRemoveCssClass("ag-scrollbar-active",!0),C=()=>this.addOrRemoveCssClass("ag-scrollbar-active",!1);this.addManagedListeners(i,{mouseenter:o,mousedown:o,touchstart:o,mouseleave:C,touchend:C})}onScrollVisibilityChanged(){this.invisibleScrollbar===void 0&&this.initialiseInvisibleScrollbar(),pp(this.beans,()=>this.setScrollVisible())}hideAndShowInvisibleScrollAsNeeded(){this.addManagedEventListeners({bodyScroll:i=>{i.direction===this.direction&&(this.hideTimeout&&(window.clearTimeout(this.hideTimeout),this.hideTimeout=0),this.addOrRemoveCssClass("ag-scrollbar-scrolling",!0))},bodyScrollEnd:()=>{this.hideTimeout=window.setTimeout(()=>{this.addOrRemoveCssClass("ag-scrollbar-scrolling",!1),this.hideTimeout=0},400)}})}attemptSettingScrollPosition(i){let o=this.eViewport;Fs(()=>ht(o),()=>this.setScrollPosition(i),100)}onScrollCallback(i){this.addManagedElementListeners(this.eViewport,{scroll:i})}},Rx=class extends db{constructor(){super(`<div class="ag-body-horizontal-scroll" aria-hidden="true">
            <div class="ag-horizontal-left-spacer" data-ref="eLeftSpacer"></div>
            <div class="ag-body-horizontal-scroll-viewport" data-ref="eViewport">
                <div class="ag-body-horizontal-scroll-container" data-ref="eContainer"></div>
            </div>
            <div class="ag-horizontal-right-spacer" data-ref="eRightSpacer"></div>
        </div>`,"horizontal"),this.eLeftSpacer=Ri,this.eRightSpacer=Ri,this.setScrollVisibleDebounce=0}wireBeans(i){this.visibleCols=i.visibleCols,this.scrollVisibleSvc=i.scrollVisibleSvc}postConstruct(){super.postConstruct();let i=this.setFakeHScrollSpacerWidths.bind(this);this.addManagedEventListeners({displayedColumnsChanged:i,displayedColumnsWidthChanged:i,pinnedRowDataChanged:this.refreshCompBottom.bind(this)}),this.addManagedPropertyListener("domLayout",i),this.beans.ctrlsSvc.register("fakeHScrollComp",this),this.createManagedBean(new Nm(o=>this.eContainer.style.width=`${o}px`)),this.addManagedPropertyListeners(["suppressHorizontalScroll"],this.onScrollVisibilityChanged.bind(this))}destroy(){window.clearTimeout(this.setScrollVisibleDebounce),super.destroy()}initialiseInvisibleScrollbar(){this.invisibleScrollbar===void 0&&(this.enableRtl=this.gos.get("enableRtl"),super.initialiseInvisibleScrollbar(),this.invisibleScrollbar&&this.refreshCompBottom())}refreshCompBottom(){var o,C;if(!this.invisibleScrollbar)return;let i=(C=(o=this.beans.pinnedRowModel)==null?void 0:o.getPinnedBottomTotalHeight())!=null?C:0;this.getGui().style.bottom=`${i}px`}onScrollVisibilityChanged(){super.onScrollVisibilityChanged(),this.setFakeHScrollSpacerWidths()}setFakeHScrollSpacerWidths(){let i=this.scrollVisibleSvc.verticalScrollShowing,o=this.visibleCols.getDisplayedColumnsRightWidth(),C=!this.enableRtl&&i,P=this.scrollVisibleSvc.getScrollbarWidth();C&&(o+=P),Cn(this.eRightSpacer,o),this.eRightSpacer.classList.toggle("ag-scroller-corner",o<=P);let B=this.visibleCols.getColsLeftWidth();this.enableRtl&&i&&(B+=P),Cn(this.eLeftSpacer,B),this.eLeftSpacer.classList.toggle("ag-scroller-corner",B<=P)}setScrollVisible(){let i=this.scrollVisibleSvc.horizontalScrollShowing,o=this.invisibleScrollbar,C=this.gos.get("suppressHorizontalScroll"),P=i&&this.scrollVisibleSvc.getScrollbarWidth()||0,W=C?0:P===0&&o?16:P,$=()=>{this.setScrollVisibleDebounce=0,this.addOrRemoveCssClass("ag-scrollbar-invisible",o),Wi(this.getGui(),W),Wi(this.eViewport,W),Wi(this.eContainer,W),this.setDisplayed(i,{skipAriaHidden:!0})};window.clearTimeout(this.setScrollVisibleDebounce),i?this.setScrollVisibleDebounce=window.setTimeout($,100):$()}getScrollPosition(){return En(this.eViewport,this.enableRtl)}setScrollPosition(i){ht(this.eViewport)||this.attemptSettingScrollPosition(i),Yn(this.eViewport,i,this.enableRtl)}},w0={selector:"AG-FAKE-HORIZONTAL-SCROLL",component:Rx},hn=class extends db{constructor(){super(`<div class="ag-body-vertical-scroll" aria-hidden="true">
            <div class="ag-body-vertical-scroll-viewport" data-ref="eViewport">
                <div class="ag-body-vertical-scroll-container" data-ref="eContainer"></div>
            </div>
        </div>`,"vertical")}postConstruct(){super.postConstruct(),this.createManagedBean(new Ex(this.eContainer));let{ctrlsSvc:i}=this.beans;i.register("fakeVScrollComp",this),this.addManagedEventListeners({rowContainerHeightChanged:this.onRowContainerHeightChanged.bind(this,i)})}setScrollVisible(){let{scrollVisibleSvc:i}=this.beans,o=i.verticalScrollShowing,C=this.invisibleScrollbar,P=o&&i.getScrollbarWidth()||0,B=P===0&&C?16:P;this.addOrRemoveCssClass("ag-scrollbar-invisible",C),Cn(this.getGui(),B),Cn(this.eViewport,B),Cn(this.eContainer,B),this.setDisplayed(o,{skipAriaHidden:!0})}onRowContainerHeightChanged(i){let C=i.getGridBodyCtrl().eBodyViewport,P=this.getScrollPosition(),B=C.scrollTop;P!=B&&this.setScrollPosition(B,!0)}getScrollPosition(){return this.eViewport.scrollTop}setScrollPosition(i,o){!o&&!ht(this.eViewport)&&this.attemptSettingScrollPosition(i),this.eViewport.scrollTop=i}},RI={selector:"AG-FAKE-VERTICAL-SCROLL",component:hn};function x0(i){return i.cols?i.cols.treeDepth+1:-1}function qa(i){var o,C;return(C=(o=i.ctrlsSvc.getHeaderRowContainerCtrl())==null?void 0:o.getRowCount())!=null?C:0}function dg(i){let o=[],C=i.ctrlsSvc.getHeaderRowContainerCtrls();for(let P of C){if(!P)continue;let B=P.getGroupRowCount()||0;for(let W=0;W<B;W++){let $=P.getGroupRowCtrlAtIndex(W),ie=o[W];if($){let ue=$o(i,$);(ie==null||ue>ie)&&(o[W]=ue)}}}return o}function $o(i,o){let C=i.colModel.isPivotMode()?sD(i):vp(i),P=0,B=o.getHeaderCtrls();for(let W of B){let{column:$}=W;if($.isAutoHeaderHeight()){let ie=$.getAutoHeaderHeight();ie!=null&&ie>P&&(P=ie)}}return Math.max(C,P)}function yr(i){let o=i.colModel.isPivotMode()?M0(i):Da(i),P=i.visibleCols.allCols.filter(B=>B.isAutoHeaderHeight()).map(B=>B.getAutoHeaderHeight()||0);return Math.max(o,...P)}function Da(i){var o;return(o=i.gos.get("headerHeight"))!=null?o:i.environment.getDefaultHeaderHeight()}function va(i){var o;return(o=i.gos.get("floatingFiltersHeight"))!=null?o:Da(i)}function vp(i){var o;return(o=i.gos.get("groupHeaderHeight"))!=null?o:Da(i)}function M0(i){var o;return(o=i.gos.get("pivotHeaderHeight"))!=null?o:Da(i)}function sD(i){var o;return(o=i.gos.get("pivotGroupHeaderHeight"))!=null?o:vp(i)}var ku=class extends ei{setComp(i,o,C){this.comp=i,this.eGui=o;let{beans:P}=this,{headerNavigation:B,touchSvc:W,ctrlsSvc:$}=P;B&&this.createManagedBean(new Eh(C,{onTabKeyDown:this.onTabKeyDown.bind(this),handleKeyDown:this.handleKeyDown.bind(this),onFocusOut:this.onFocusOut.bind(this)})),this.addManagedEventListeners({columnPivotModeChanged:this.onPivotModeChanged.bind(this,P),displayedColumnsChanged:this.onDisplayedColumnsChanged.bind(this,P)}),this.onPivotModeChanged(P),this.setupHeaderHeight();let ie=this.onHeaderContextMenu.bind(this);this.addManagedElementListeners(this.eGui,{contextmenu:ie}),W==null||W.mockHeaderContextMenu(this,ie),$.register("gridHeaderCtrl",this)}setupHeaderHeight(){let i=this.setHeaderHeight.bind(this);i(),this.addManagedPropertyListeners(["headerHeight","pivotHeaderHeight","groupHeaderHeight","pivotGroupHeaderHeight","floatingFiltersHeight"],i),this.addManagedEventListeners({displayedColumnsChanged:i,columnHeaderHeightChanged:i,columnGroupHeaderHeightChanged:()=>pp(this.beans,()=>i()),gridStylesChanged:i,advancedFilterEnabledChanged:i})}setHeaderHeight(){var W;let{beans:i}=this,o=0,C=dg(i).reduce(($,ie)=>$+ie,0),P=yr(i);if((W=i.filterManager)!=null&&W.hasFloatingFilters()&&(o+=va(i)),o+=C,o+=P,this.headerHeight===o)return;this.headerHeight=o;let B=`${o+1}px`;this.comp.setHeightAndMinHeight(B),this.eventSvc.dispatchEvent({type:"headerHeightChanged"})}onPivotModeChanged(i){let o=i.colModel.isPivotMode();this.comp.addOrRemoveCssClass("ag-pivot-on",o),this.comp.addOrRemoveCssClass("ag-pivot-off",!o)}onDisplayedColumnsChanged(i){let C=i.visibleCols.allCols.some(P=>P.isSpanHeaderHeight());this.comp.addOrRemoveCssClass("ag-header-allow-overflow",C)}onTabKeyDown(i){let o=this.gos.get("enableRtl"),C=i.shiftKey,P=C!==o?"LEFT":"RIGHT",{beans:B}=this,{headerNavigation:W,focusSvc:$}=B;(W.navigateHorizontally(P,!0,i)||!C&&$.focusOverlay(!1)||Cs(B,C,!0))&&i.preventDefault()}handleKeyDown(i){let o=null,{headerNavigation:C}=this.beans;switch(i.key){case Qt.LEFT:o="LEFT";case Qt.RIGHT:{Ai(o)||(o="RIGHT"),C.navigateHorizontally(o,!1,i)&&i.preventDefault();break}case Qt.UP:o="UP";case Qt.DOWN:{Ai(o)||(o="DOWN"),C.navigateVertically(o,null,i)&&i.preventDefault();break}default:return}}onFocusOut(i){let{relatedTarget:o}=i,{eGui:C,beans:P}=this;!o&&C.contains(Fa(P))||C.contains(o)||(P.focusSvc.focusedHeader=null)}onHeaderContextMenu(i,o,C){var $;let{menuSvc:P,ctrlsSvc:B}=this.beans;if(!i&&!C||!(P!=null&&P.isHeaderContextMenuEnabled()))return;let{target:W}=i!=null?i:o;(W===this.eGui||W===(($=B.getHeaderRowContainerCtrl())==null?void 0:$.eViewport))&&P.showHeaderContextMenu(void 0,i,C)}},zm=class extends On{constructor(i,o){super(i),this.ctrl=o}getCtrl(){return this.ctrl}},PI=class extends zm{constructor(i){super(`<div class="ag-header-cell" role="columnheader">
            <div data-ref="eResize" class="ag-header-cell-resize" role="presentation"></div>
            <div data-ref="eHeaderCompWrapper" class="ag-header-cell-comp-wrapper" role="presentation"></div>
        </div>`,i),this.eResize=Ri,this.eHeaderCompWrapper=Ri,this.headerCompVersion=0}postConstruct(){let i=this.getGui();((B,W)=>{W!=null&&W!=""?i.setAttribute(B,W):i.removeAttribute(B)})("col-id",this.ctrl.column.getColId());let C={setWidth:B=>i.style.width=B,addOrRemoveCssClass:(B,W)=>this.addOrRemoveCssClass(B,W),setAriaSort:B=>B?Ee(i,B):tt(i),setUserCompDetails:B=>this.setUserCompDetails(B),getUserCompInstance:()=>this.headerComp};this.ctrl.setComp(C,this.getGui(),this.eResize,this.eHeaderCompWrapper,void 0);let P=this.ctrl.getSelectAllGui();P&&this.eResize.insertAdjacentElement("afterend",P)}destroy(){this.destroyHeaderComp(),super.destroy()}destroyHeaderComp(){this.headerComp&&(this.eHeaderCompWrapper.removeChild(this.headerCompGui),this.headerComp=this.destroyBean(this.headerComp),this.headerCompGui=void 0)}setUserCompDetails(i){this.headerCompVersion++;let o=this.headerCompVersion;i.newAgStackInstance().then(C=>this.afterCompCreated(o,C))}afterCompCreated(i,o){if(i!=this.headerCompVersion||!this.isAlive()){this.destroyBean(o);return}this.destroyHeaderComp(),this.headerComp=o,this.headerCompGui=o.getGui(),this.eHeaderCompWrapper.appendChild(this.headerCompGui),this.ctrl.setDragSource(this.getGui())}},BP=class extends zm{constructor(i){super(`<div class="ag-header-group-cell" role="columnheader">
            <div data-ref="eHeaderCompWrapper" class="ag-header-cell-comp-wrapper" role="presentation"></div>
            <div data-ref="eResize" class="ag-header-cell-resize" role="presentation"></div>
        </div>`,i),this.eResize=Ri,this.eHeaderCompWrapper=Ri}postConstruct(){let i=this.getGui(),o=(P,B)=>B!=null?i.setAttribute(P,B):i.removeAttribute(P);i.setAttribute("col-id",this.ctrl.column.getUniqueId());let C={addOrRemoveCssClass:(P,B)=>this.addOrRemoveCssClass(P,B),setHeaderWrapperHidden:P=>{P?this.eHeaderCompWrapper.style.setProperty("display","none"):this.eHeaderCompWrapper.style.removeProperty("display")},setHeaderWrapperMaxHeight:P=>{P!=null?this.eHeaderCompWrapper.style.setProperty("max-height",`${P}px`):this.eHeaderCompWrapper.style.removeProperty("max-height"),this.eHeaderCompWrapper.classList.toggle("ag-header-cell-comp-wrapper-limited-height",P!=null)},setResizableDisplayed:P=>Un(this.eResize,P),setWidth:P=>i.style.width=P,setAriaExpanded:P=>o("aria-expanded",P),setUserCompDetails:P=>this.setUserCompDetails(P),getUserCompInstance:()=>this.headerGroupComp};this.ctrl.setComp(C,i,this.eResize,this.eHeaderCompWrapper,void 0)}setUserCompDetails(i){i.newAgStackInstance().then(o=>this.afterHeaderCompCreated(o))}afterHeaderCompCreated(i){let o=()=>this.destroyBean(i);if(!this.isAlive()){o();return}let C=this.getGui(),P=i.getGui();this.eHeaderCompWrapper.appendChild(P),this.addDestroyFunc(o),this.headerGroupComp=i,this.ctrl.setDragSource(C)}addOrRemoveHeaderWrapperStyle(i,o){let{eHeaderCompWrapper:C}=this;o?C.style.setProperty(i,o):C.style.removeProperty(i)}},LI=class extends zm{constructor(i){super(`<div class="ag-header-cell ag-floating-filter" role="gridcell">
            <div data-ref="eFloatingFilterBody" role="presentation"></div>
            <div class="ag-floating-filter-button ag-hidden" data-ref="eButtonWrapper" role="presentation">
                <button type="button" class="ag-button ag-floating-filter-button-button" data-ref="eButtonShowMainFilter" tabindex="-1"></button>
            </div>
        </div>`,i),this.eFloatingFilterBody=Ri,this.eButtonWrapper=Ri,this.eButtonShowMainFilter=Ri}postConstruct(){let i=this.getGui(),o={addOrRemoveCssClass:(C,P)=>this.addOrRemoveCssClass(C,P),addOrRemoveBodyCssClass:(C,P)=>this.eFloatingFilterBody.classList.toggle(C,P),setButtonWrapperDisplayed:C=>Un(this.eButtonWrapper,C),setCompDetails:C=>this.setCompDetails(C),getFloatingFilterComp:()=>this.compPromise,setWidth:C=>i.style.width=C,setMenuIcon:C=>this.eButtonShowMainFilter.appendChild(C)};this.ctrl.setComp(o,i,this.eButtonShowMainFilter,this.eFloatingFilterBody,void 0)}setCompDetails(i){if(!i){this.destroyFloatingFilterComp(),this.compPromise=null;return}this.compPromise=i.newAgStackInstance(),this.compPromise.then(o=>this.afterCompCreated(o))}destroy(){this.destroyFloatingFilterComp(),super.destroy()}destroyFloatingFilterComp(){this.floatingFilterComp&&(this.eFloatingFilterBody.removeChild(this.floatingFilterComp.getGui()),this.floatingFilterComp=this.destroyBean(this.floatingFilterComp))}afterCompCreated(i){if(i){if(!this.isAlive()){this.destroyBean(i);return}this.destroyFloatingFilterComp(),this.floatingFilterComp=i,this.eFloatingFilterBody.appendChild(i.getGui()),i.afterGuiAttached&&i.afterGuiAttached()}}},yp=class extends On{constructor(i){super(),this.headerComps={},this.ctrl=i,this.setTemplate(`<div class="${this.ctrl.headerRowClass}" role="row"></div>`)}postConstruct(){Re(this.getGui(),this.ctrl.getAriaRowIndex());let i={setHeight:o=>this.getGui().style.height=o,setTop:o=>this.getGui().style.top=o,setHeaderCtrls:(o,C)=>this.setHeaderCtrls(o,C),setWidth:o=>this.getGui().style.width=o};this.ctrl.setComp(i,void 0)}destroy(){this.setHeaderCtrls([],!1),super.destroy()}setHeaderCtrls(i,o){if(!this.isAlive())return;let C=this.headerComps;if(this.headerComps={},i.forEach(P=>{let B=P.instanceId,W=C[B];delete C[B],W==null&&(W=this.createHeaderComp(P),this.getGui().appendChild(W.getGui())),this.headerComps[B]=W}),Object.values(C).forEach(P=>{this.getGui().removeChild(P.getGui()),this.destroyBean(P)}),o){let P=Object.values(this.headerComps);P.sort((W,$)=>{let ie=W.getCtrl().column.getLeft(),ue=$.getCtrl().column.getLeft();return ie-ue});let B=P.map(W=>W.getGui());ni(this.getGui(),B)}}createHeaderComp(i){let o;switch(this.ctrl.type){case"group":o=new BP(i);break;case"filter":o=new LI(i);break;default:o=new PI(i);break}return this.createBean(o),o.setParentComponent(this),o}},ub=class extends ei{constructor(i,o,C,P){super(),this.columnOrGroup=i,this.eCell=o,this.colsSpanning=P,this.columnOrGroup=i,this.ariaEl=o.querySelector("[role=columnheader]")||o,this.beans=C}setColsSpanning(i){this.colsSpanning=i,this.onLeftChanged()}getColumnOrGroup(){let{beans:i,colsSpanning:o}=this;return i.gos.get("enableRtl")&&o?Sa(o):this.columnOrGroup}postConstruct(){let i=this.onLeftChanged.bind(this);this.addManagedListeners(this.columnOrGroup,{leftChanged:i}),this.setLeftFirstTime(),this.addManagedEventListeners({displayedColumnsWidthChanged:i}),this.addManagedPropertyListener("domLayout",i)}setLeftFirstTime(){let{gos:i,colAnimation:o}=this.beans,C=i.get("suppressColumnMoveAnimation"),P=Ai(this.columnOrGroup.getOldLeft());(o==null?void 0:o.isActive())&&P&&!C?this.animateInLeft():this.onLeftChanged()}animateInLeft(){let i=this.getColumnOrGroup(),o=this.modifyLeftForPrintLayout(i,i.getOldLeft()),C=this.modifyLeftForPrintLayout(i,i.getLeft());this.setLeft(o),this.actualLeft=C,this.beans.colAnimation.executeNextVMTurn(()=>{this.actualLeft===C&&this.setLeft(C)})}onLeftChanged(){let i=this.getColumnOrGroup(),o=i.getLeft();this.actualLeft=this.modifyLeftForPrintLayout(i,o),this.setLeft(this.actualLeft)}modifyLeftForPrintLayout(i,o){let{gos:C,visibleCols:P}=this.beans;if(!Fo(C,"print")||i.getPinned()==="left")return o;let W=P.getColsLeftWidth();if(i.getPinned()==="right"){let $=P.bodyWidth;return W+$+o}return W+o}setLeft(i){if(Ai(i)&&(this.eCell.style.left=`${i}px`),Io(this.columnOrGroup)){let o=this.columnOrGroup.getLeafColumns();if(!o.length)return;o.length>1&&Ue(this.ariaEl,o.length)}}},Ih=0,Px="headerCtrl",oa=class extends ei{constructor(i,o){super(),this.column=i,this.rowCtrl=o,this.resizeToggleTimeout=0,this.resizeMultiplier=1,this.resizeFeature=null,this.lastFocusEvent=null,this.dragSource=null,this.instanceId=i.getUniqueId()+"-"+Ih++}postConstruct(){let i=this.refreshTabIndex.bind(this);this.addManagedPropertyListeners(["suppressHeaderFocus"],i),this.addManagedEventListeners({overlayExclusiveChanged:i})}shouldStopEventPropagation(i){let{headerRowIndex:o,column:C}=this.beans.focusSvc.focusedHeader,P=C.getDefinition(),B=P&&P.suppressHeaderKeyboardEvent;if(!Ai(B))return!1;let W=this.gos.addGridCommonParams({colDef:P,column:C,headerRowIndex:o,event:i});return!!B(W)}getWrapperHasFocus(){return Fa(this.beans)===this.eGui}setGui(i,o){this.eGui=i,this.addDomData(o),o.addManagedListeners(this.beans.eventSvc,{displayedColumnsChanged:this.onDisplayedColumnsChanged.bind(this)}),o.addManagedElementListeners(this.eGui,{focus:this.onGuiFocus.bind(this)}),this.onDisplayedColumnsChanged(),this.refreshTabIndex()}onGuiFocus(){this.eventSvc.dispatchEvent({type:"headerFocused",column:this.column})}setupAutoHeight(i){let{wrapperElement:o,checkMeasuringCallback:C,compBean:P}=i,{beans:B}=this,W=Be=>{if(!this.isAlive()||!P.isAlive())return;let{paddingTop:Qe,paddingBottom:st,borderBottomWidth:Ct,borderTopWidth:Ot}=ka(this.eGui),Pt=Qe+st+Ct+Ot,ti=o.offsetHeight+Pt;if(Be<5){let Jt=Ao(B),ai=!Jt||!Jt.contains(o),Mi=ti==0;if(ai||Mi){pp(B,()=>W(Be+1));return}}this.setColHeaderHeight(this.column,ti)},$=!1,ie,ue=()=>{let Be=this.column.isAutoHeaderHeight();Be&&!$&&De(),!Be&&$&&_e()},De=()=>{$=!0,W(0),this.comp.addOrRemoveCssClass("ag-header-cell-auto-height",!0),ie=Qr(this.beans,o,()=>W(0))},_e=()=>{$=!1,ie&&ie(),this.comp.addOrRemoveCssClass("ag-header-cell-auto-height",!1),ie=void 0};ue(),P.addDestroyFunc(()=>_e()),P.addManagedListeners(this.column,{widthChanged:()=>$&&W(0)}),P.addManagedEventListeners({sortChanged:()=>{$&&window.setTimeout(()=>W(0))}}),C&&C(ue)}onDisplayedColumnsChanged(){let{comp:i,column:o,beans:C,eGui:P}=this;!i||!o||!P||($y(i,o,C.visibleCols),Ve(P,C.visibleCols.getAriaColIndex(o)))}addResizeAndMoveKeyboardListeners(i){i.addManagedListeners(this.eGui,{keydown:this.onGuiKeyDown.bind(this),keyup:this.onGuiKeyUp.bind(this)})}refreshTabIndex(){let i=kh(this.beans);this.eGui&&$r(this.eGui,"tabindex",i?null:"-1")}onGuiKeyDown(i){var W;let o=Fa(this.beans),C=i.key===Qt.LEFT||i.key===Qt.RIGHT;if(this.isResizing&&(i.preventDefault(),i.stopImmediatePropagation()),o!==this.eGui||!i.shiftKey&&!i.altKey||((this.isResizing||C)&&(i.preventDefault(),i.stopImmediatePropagation()),!C))return;let B=i.key===Qt.LEFT!==this.gos.get("enableRtl")?"left":"right";if(i.altKey){this.isResizing=!0,this.resizeMultiplier+=1;let $=this.getViewportAdjustedResizeDiff(i);this.resizeHeader($,i.shiftKey),(W=this.resizeFeature)==null||W.toggleColumnResizing(!0)}else this.moveHeader(B)}moveHeader(i){var o;(o=this.beans.colMoves)==null||o.moveHeader(i,this.eGui,this.column,this.rowCtrl.pinned,this)}getViewportAdjustedResizeDiff(i){let o=this.getResizeDiff(i),{pinnedCols:C}=this.beans;return C?C.getHeaderResizeDiff(o,this.column):o}getResizeDiff(i){let{gos:o,column:C}=this,P=i.key===Qt.LEFT!==o.get("enableRtl"),B=C.getPinned(),W=o.get("enableRtl");return B&&W!==(B==="right")&&(P=!P),(P?-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(()=>{var i;(i=this.resizeFeature)==null||i.toggleColumnResizing(!1)},150))}handleKeyDown(i){let o=this.getWrapperHasFocus();switch(i.key){case Qt.PAGE_DOWN:case Qt.PAGE_UP:case Qt.PAGE_HOME:case Qt.PAGE_END:o&&i.preventDefault()}}addDomData(i){let o=Px,{eGui:C,gos:P}=this;Pd(P,C,o,this),i.addDestroyFunc(()=>Pd(P,C,o,null))}focus(i){let{eGui:o}=this;return o?(this.lastFocusEvent=i||null,o.focus(),!0):!1}focusThis(){this.beans.focusSvc.focusedHeader={headerRowIndex:this.rowCtrl.rowIndex,column:this.column}}removeDragSource(){var i;this.dragSource&&((i=this.beans.dragAndDrop)==null||i.removeDragSource(this.dragSource),this.dragSource=null)}handleContextMenuMouseEvent(i,o,C){let P=i!=null?i:o,{menuSvc:B,gos:W}=this.beans;W.get("preventDefaultOnContextMenu")&&P.preventDefault(),B!=null&&B.isHeaderContextMenuEnabled(C)&&B.showHeaderContextMenu(C,i,o),this.dispatchColumnMouseEvent("columnHeaderContextMenu",C)}dispatchColumnMouseEvent(i,o){this.eventSvc.dispatchEvent({type:i,column:o})}setColHeaderHeight(i,o){if(!i.setAutoHeaderHeight(o))return;let{eventSvc:C}=this;i.isColumn?C.dispatchEvent({type:"columnHeaderHeightChanged",column:i,columns:[i],source:"autosizeColumnHeaderHeight"}):C.dispatchEvent({type:"columnGroupHeaderHeightChanged",columnGroup:i,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}},Lx=class extends oa{constructor(){super(...arguments),this.refreshFunctions={},this.userHeaderClasses=new Set,this.ariaDescriptionProperties=new Map}setComp(i,o,C,P,B){this.comp=i;let{colResize:W,context:$,colHover:ie}=this.beans,ue=Sh(this,$,B);this.setGui(o,ue),this.updateState(),this.setupWidth(ue),this.setupMovingCss(ue),this.setupMenuClass(ue),this.setupSortableClass(ue),this.setupWrapTextClass(),this.refreshSpanHeaderHeight(),this.setupAutoHeight({wrapperElement:P,checkMeasuringCallback:_e=>this.setRefreshFunction("measuring",_e),compBean:ue}),this.addColumnHoverListener(ue),this.setupFilterClass(ue),this.setupClassesFromColDef(),this.setupTooltip(),this.addActiveHeaderMouseListeners(ue),this.setupSelectAll(ue),this.setupUserComp(),this.refreshAria(),W?this.resizeFeature=ue.createManagedBean(W.createResizeFeature(this.rowCtrl.pinned,this.column,C,i,this)):Un(C,!1),ie==null||ie.createHoverFeature(ue,[this.column],o),ue.createManagedBean(new ub(this.column,o,this.beans)),ue.createManagedBean(new Eh(o,{shouldStopEventPropagation:_e=>this.shouldStopEventPropagation(_e),onTabKeyDown:()=>null,handleKeyDown:this.handleKeyDown.bind(this),onFocusIn:this.onFocusIn.bind(this),onFocusOut:this.onFocusOut.bind(this)})),this.addResizeAndMoveKeyboardListeners(ue),ue.addManagedPropertyListeners(["suppressMovableColumns","suppressMenuHide","suppressAggFuncInHeader"],()=>this.refresh()),ue.addManagedListeners(this.column,{colDefChanged:()=>this.refresh()}),ue.addManagedListeners(this.column,{headerHighlightChanged:this.onHeaderHighlightChanged.bind(this)});let De=()=>this.checkDisplayName();ue.addManagedEventListeners({columnValueChanged:De,columnRowGroupChanged:De,columnPivotChanged:De,headerHeightChanged:this.onHeaderHeightChanged.bind(this)}),ue.addDestroyFunc(()=>{this.refreshFunctions={},this.selectAllFeature=null,this.dragSourceElement=void 0,this.userCompDetails=null,this.userHeaderClasses.clear(),this.ariaDescriptionProperties.clear(),this.clearComponent()})}resizeHeader(i,o){var C;(C=this.beans.colResize)==null||C.resizeHeader(this.column,i,o)}setupUserComp(){let i=this.lookupUserCompDetails();i&&this.setCompDetails(i)}setCompDetails(i){this.userCompDetails=i,this.comp.setUserCompDetails(i)}lookupUserCompDetails(){let i=this.createParams(),o=this.column.getColDef();return Tm(this.beans.userCompFactory,o,i)}createParams(){let{menuSvc:i,sortSvc:o,colFilter:C,gos:P}=this.beans;return P.addGridCommonParams({column:this.column,displayName:this.displayName,enableSorting:this.column.isSortable(),enableMenu:this.menuEnabled,enableFilterButton:this.openFilterEnabled&&!!(i!=null&&i.isHeaderFilterButtonEnabled(this.column)),enableFilterIcon:!!C&&(!this.openFilterEnabled||mr(this.gos)),showColumnMenu:W=>{i==null||i.showColumnMenu({column:this.column,buttonElement:W,positionBy:"button"})},showColumnMenuAfterMouseClick:W=>{i==null||i.showColumnMenu({column:this.column,mouseEvent:W,positionBy:"mouse"})},showFilter:W=>{i==null||i.showFilterMenu({column:this.column,buttonElement:W,containerType:"columnFilter",positionBy:"button"})},progressSort:W=>{o==null||o.progressSort(this.column,!!W,"uiColumnSorted")},setSort:(W,$)=>{o==null||o.setSortForColumn(this.column,W,!!$,"uiColumnSorted")},eGridHeader:this.eGui,setTooltip:(W,$)=>{P.assertModuleRegistered("Tooltip",3),this.setupTooltip(W,$)}})}setupSelectAll(i){let{selectionSvc:o}=this.beans;o&&(this.selectAllFeature=i.createManagedBean(o.createSelectAllFeature(this.column)),this.selectAllFeature.setComp(this))}getSelectAllGui(){var i;return(i=this.selectAllFeature)==null?void 0:i.getCheckboxGui()}handleKeyDown(i){var o;super.handleKeyDown(i),i.key===Qt.SPACE&&((o=this.selectAllFeature)==null||o.onSpaceKeyDown(i)),i.key===Qt.ENTER&&this.onEnterKeyDown(i),i.key===Qt.DOWN&&i.altKey&&this.showMenuOnKeyPress(i,!1)}onEnterKeyDown(i){var o;i.ctrlKey||i.metaKey?this.showMenuOnKeyPress(i,!0):this.sortable&&((o=this.beans.sortSvc)==null||o.progressSort(this.column,i.shiftKey,"uiColumnSorted"))}showMenuOnKeyPress(i,o){let C=this.comp.getUserCompInstance();k0(C)&&C.onMenuKeyboardShortcut(o)&&i.preventDefault()}onFocusIn(i){this.eGui.contains(i.relatedTarget)||(this.focusThis(),this.announceAriaDescription()),hi()&&this.setActiveHeader(!0)}onFocusOut(i){this.eGui.contains(i.relatedTarget)||this.setActiveHeader(!1)}setupTooltip(i,o){var C;this.tooltipFeature=(C=this.beans.tooltipSvc)==null?void 0:C.setupHeaderTooltip(this.tooltipFeature,this,i,o)}setupClassesFromColDef(){let i=()=>{let o=this.column.getColDef(),C=Ka(o,this.gos,this.column,null),P=this.userHeaderClasses;this.userHeaderClasses=new Set(C),C.forEach(B=>{P.has(B)?P.delete(B):this.comp.addOrRemoveCssClass(B,!0)}),P.forEach(B=>this.comp.addOrRemoveCssClass(B,!1))};this.setRefreshFunction("headerClasses",i),i()}setDragSource(i){var o,C;this.dragSourceElement=i,this.removeDragSource(),!(!i||!this.draggable)&&(this.dragSource=(C=(o=this.beans.colMoves)==null?void 0:o.setDragSourceForHeader(i,this.column,this.displayName))!=null?C:null)}updateState(){let{menuSvc:i}=this.beans;this.menuEnabled=!!(i!=null&&i.isColumnMenuInHeaderEnabled(this.column)),this.openFilterEnabled=!!(i!=null&&i.isFilterMenuInHeaderEnabled(this.column)),this.sortable=this.column.isSortable(),this.displayName=this.calculateDisplayName(),this.draggable=this.workOutDraggable()}setRefreshFunction(i,o){this.refreshFunctions[i]=o}refresh(){this.updateState(),this.refreshHeaderComp(),this.refreshAria(),Object.values(this.refreshFunctions).forEach(i=>i())}refreshHeaderComp(){let i=this.lookupUserCompDetails();if(!i)return;(this.comp.getUserCompInstance()!=null&&this.userCompDetails.componentClass==i.componentClass?this.attemptHeaderCompRefresh(i.params):!1)?this.setDragSource(this.dragSourceElement):this.setCompDetails(i)}attemptHeaderCompRefresh(i){let o=this.comp.getUserCompInstance();return!o||!o.refresh?!1:o.refresh(i)}calculateDisplayName(){return this.beans.colNames.getDisplayNameForColumn(this.column,"header",!0)}checkDisplayName(){this.displayName!==this.calculateDisplayName()&&this.refresh()}workOutDraggable(){let i=this.column.getColDef();return!!(!this.gos.get("suppressMovableColumns")&&!i.suppressMovable&&!i.lockPosition)||!!i.enableRowGroup||!!i.enablePivot}setupWidth(i){let o=()=>{let C=this.column.getActualWidth();this.comp.setWidth(`${C}px`)};i.addManagedListeners(this.column,{widthChanged:o}),o()}setupMovingCss(i){let o=()=>{this.comp.addOrRemoveCssClass("ag-header-cell-moving",this.column.isMoving())};i.addManagedListeners(this.column,{movingChanged:o}),o()}setupMenuClass(i){let o=()=>{this.comp.addOrRemoveCssClass("ag-column-menu-visible",this.column.isMenuVisible())};i.addManagedListeners(this.column,{menuVisibleChanged:o}),o()}setupSortableClass(i){let o=()=>{this.comp.addOrRemoveCssClass("ag-header-cell-sortable",!!this.sortable)};o(),this.setRefreshFunction("updateSortable",o),i.addManagedEventListeners({sortChanged:this.refreshAriaSort.bind(this)})}setupFilterClass(i){let o=()=>{let C=this.column.isFilterActive();this.comp.addOrRemoveCssClass("ag-header-cell-filtered",C),this.refreshAria()};i.addManagedListeners(this.column,{filterActiveChanged:o}),o()}setupWrapTextClass(){let i=()=>{let o=!!this.column.getColDef().wrapHeaderText;this.comp.addOrRemoveCssClass("ag-header-cell-wrap-text",o)};i(),this.setRefreshFunction("wrapText",i)}onHeaderHighlightChanged(){let i=this.column.getHighlighted(),o=i===0,C=i===1;this.comp.addOrRemoveCssClass("ag-header-highlight-before",o),this.comp.addOrRemoveCssClass("ag-header-highlight-after",C)}onDisplayedColumnsChanged(){super.onDisplayedColumnsChanged(),this.isAlive()&&this.onHeaderHeightChanged()}onHeaderHeightChanged(){this.refreshSpanHeaderHeight()}refreshSpanHeaderHeight(){let{eGui:i,column:o,comp:C,beans:P}=this,B=dg(this.beans),W=B.reduce((_e,Be)=>_e+=Be,0)===0;if(C.addOrRemoveCssClass("ag-header-parent-hidden",W),!o.isSpanHeaderHeight()){i.style.removeProperty("top"),i.style.removeProperty("height"),C.addOrRemoveCssClass("ag-header-span-height",!1),C.addOrRemoveCssClass("ag-header-span-total",!1);return}let{numberOfParents:$,isSpanningTotal:ie}=this.column.getColumnGroupPaddingInfo();C.addOrRemoveCssClass("ag-header-span-height",$>0);let ue=yr(P);if($===0){C.addOrRemoveCssClass("ag-header-span-total",!1),i.style.setProperty("top","0px"),i.style.setProperty("height",`${ue}px`);return}C.addOrRemoveCssClass("ag-header-span-total",ie);let De=0;for(let _e=0;_e<$;_e++)De+=B[B.length-1-_e];i.style.setProperty("top",`${-De}px`),i.style.setProperty("height",`${ue+De}px`)}refreshAriaSort(){var i;if(this.sortable){let o=this.getLocaleTextFunc(),C=((i=this.beans.sortSvc)==null?void 0:i.getDisplaySortForColumn(this.column))||null;this.comp.setAriaSort(R(C)),this.setAriaDescriptionProperty("sort",o("ariaSortableColumn","Press ENTER to sort"))}else this.comp.setAriaSort(),this.setAriaDescriptionProperty("sort",null)}refreshAriaMenu(){if(this.menuEnabled){let i=this.getLocaleTextFunc();this.setAriaDescriptionProperty("menu",i("ariaMenuColumn","Press ALT DOWN to open column menu"))}else this.setAriaDescriptionProperty("menu",null)}refreshAriaFilterButton(){if(this.openFilterEnabled&&!mr(this.gos)){let i=this.getLocaleTextFunc();this.setAriaDescriptionProperty("filterButton",i("ariaFilterColumn","Press CTRL ENTER to open filter"))}else this.setAriaDescriptionProperty("filterButton",null)}refreshAriaFiltered(){let i=this.getLocaleTextFunc();this.column.isFilterActive()?this.setAriaDescriptionProperty("filter",i("ariaColumnFiltered","Column Filtered")):this.setAriaDescriptionProperty("filter",null)}setAriaDescriptionProperty(i,o){o!=null?this.ariaDescriptionProperties.set(i,o):this.ariaDescriptionProperties.delete(i)}announceAriaDescription(){var o;if(!this.eGui.contains(Fa(this.beans)))return;let i=Array.from(this.ariaDescriptionProperties.keys()).sort((C,P)=>C==="filter"?-1:P.charCodeAt(0)-C.charCodeAt(0)).map(C=>this.ariaDescriptionProperties.get(C)).join(". ");(o=this.beans.ariaAnnounce)==null||o.announceValue(i,"columnHeader")}refreshAria(){this.refreshAriaSort(),this.refreshAriaMenu(),this.refreshAriaFilterButton(),this.refreshAriaFiltered()}addColumnHoverListener(i){var o;(o=this.beans.colHover)==null||o.addHeaderColumnHoverListener(i,this.comp,this.column)}addActiveHeaderMouseListeners(i){let o=B=>this.handleMouseOverChange(B.type==="mouseenter"),C=()=>this.dispatchColumnMouseEvent("columnHeaderClicked",this.column),P=B=>this.handleContextMenuMouseEvent(B,void 0,this.column);i.addManagedListeners(this.eGui,{mouseenter:o,mouseleave:o,click:C,contextmenu:P})}handleMouseOverChange(i){this.setActiveHeader(i),this.eventSvc.dispatchEvent({type:i?"columnHeaderMouseOver":"columnHeaderMouseLeave",column:this.column})}setActiveHeader(i){this.comp.addOrRemoveCssClass("ag-header-active",i)}getAnchorElementForMenu(i){let o=this.comp.getUserCompInstance();return k0(o)?o.getAnchorElementForMenu(i):this.eGui}destroy(){this.tooltipFeature=this.destroyBean(this.tooltipFeature),super.destroy()}};function k0(i){return typeof i.getAnchorElementForMenu=="function"&&typeof i.onMenuKeyboardShortcut=="function"}var OI=0,Pa=class extends ei{constructor(i,o,C){super(),this.rowIndex=i,this.pinned=o,this.type=C,this.instanceId=OI++;let P=C=="group"?"ag-header-row-column-group":C=="filter"?"ag-header-row-column-filter":"ag-header-row-column";this.headerRowClass=`ag-header-row ${P}`}postConstruct(){this.isPrintLayout=Fo(this.gos,"print"),this.isEnsureDomOrder=this.gos.get("ensureDomOrder")}areCellsRendered(){return this.comp?this.getHeaderCellCtrls().every(i=>i.eGui!=null):!1}setComp(i,o,C=!0){this.comp=i,o=Sh(this,this.beans.context,o),C&&(this.onRowHeightChanged(),this.onVirtualColumnsChanged()),this.setWidth(),this.addEventListeners(o)}getAriaRowIndex(){return this.rowIndex+1}addEventListeners(i){let o=this.onRowHeightChanged.bind(this);i.addManagedEventListeners({columnResized:this.setWidth.bind(this),displayedColumnsChanged:this.onDisplayedColumnsChanged.bind(this),virtualColumnsChanged:C=>this.onVirtualColumnsChanged(C.afterScroll),columnGroupHeaderHeightChanged:o,columnHeaderHeightChanged:o,gridStylesChanged:o,advancedFilterEnabledChanged:o}),i.addManagedPropertyListener("domLayout",this.onDisplayedColumnsChanged.bind(this)),i.addManagedPropertyListener("ensureDomOrder",C=>this.isEnsureDomOrder=C.currentValue),i.addManagedPropertyListeners(["headerHeight","pivotHeaderHeight","groupHeaderHeight","pivotGroupHeaderHeight","floatingFiltersHeight"],o)}getHeaderCellCtrl(i){if(this.headerCellCtrls){for(let o of this.headerCellCtrls.values())if(o.column===i)return o}}onDisplayedColumnsChanged(){this.isPrintLayout=Fo(this.gos,"print"),this.onVirtualColumnsChanged(),this.setWidth(),this.onRowHeightChanged()}setWidth(){let i=this.getWidthForRow();this.comp.setWidth(`${i}px`)}getWidthForRow(){let{visibleCols:i}=this.beans;return this.isPrintLayout?this.pinned!=null?0:i.getContainerWidth("right")+i.getContainerWidth("left")+i.getContainerWidth(null):i.getContainerWidth(this.pinned)}onRowHeightChanged(){let{topOffset:i,rowHeight:o}=this.getTopAndHeight();this.comp.setTop(i+"px"),this.comp.setHeight(o+"px")}getTopAndHeight(){let{filterManager:i}=this.beans,o=[],C=dg(this.beans),P=yr(this.beans);o.push(...C),o.push(P),i!=null&&i.hasFloatingFilters()&&o.push(va(this.beans));let B=0;for(let $=0;$<this.rowIndex;$++)B+=o[$];let W=o[this.rowIndex];return{topOffset:B,rowHeight:W}}onVirtualColumnsChanged(i=!1){let o=this.getHeaderCtrls(),C=this.isEnsureDomOrder||this.isPrintLayout;this.comp.setHeaderCtrls(o,C,i)}getHeaderCtrls(){let i=this.headerCellCtrls;this.headerCellCtrls=new Map;let o=this.getColumnsInViewport();for(let P of o)this.recycleAndCreateHeaderCtrls(P,i);let C=P=>{let{focusSvc:B,visibleCols:W}=this.beans;return B.isHeaderWrapperFocused(P)?W.isVisible(P.column):!1};if(i)for(let[P,B]of i)C(B)?this.headerCellCtrls.set(P,B):this.destroyBean(B);return this.getHeaderCellCtrls()}getHeaderCellCtrls(){var i,o;return Array.from((o=(i=this.headerCellCtrls)==null?void 0:i.values())!=null?o:[])}recycleAndCreateHeaderCtrls(i,o){if(!this.headerCellCtrls||i.isEmptyGroup())return;let C=i.getUniqueId(),P;if(o&&(P=o.get(C),o.delete(C)),P&&P.column!=i&&(this.destroyBean(P),P=void 0),P==null)switch(this.type){case"filter":{P=this.createBean(this.beans.registry.createDynamicBean("headerFilterCellCtrl",!0,i,this));break}case"group":P=this.createBean(this.beans.registry.createDynamicBean("headerGroupCellCtrl",!0,i,this));break;default:P=this.createBean(new Lx(i,this));break}this.headerCellCtrls.set(C,P)}getColumnsInViewport(){return this.isPrintLayout?this.getColumnsInViewportPrintLayout():this.getColumnsInViewportNormalLayout()}getColumnsInViewportPrintLayout(){if(this.pinned!=null)return[];let i=[],o=this.getActualDepth(),{colViewport:C}=this.beans;return["left",null,"right"].forEach(P=>{let B=C.getHeadersToRender(P,o);i=i.concat(B)}),i}getActualDepth(){return this.type=="filter"?this.rowIndex-1:this.rowIndex}getColumnsInViewportNormalLayout(){return this.beans.colViewport.getHeadersToRender(this.pinned,this.getActualDepth())}findHeaderCellCtrl(i){if(!this.headerCellCtrls)return;let o=this.getHeaderCellCtrls(),C;return typeof i=="function"?C=o.find(i):C=o.find(P=>P.column==i),C}focusHeader(i,o){let C=this.findHeaderCellCtrl(i);return C?C.focus(o):!1}destroy(){var i;(i=this.headerCellCtrls)==null||i.forEach(o=>{this.destroyBean(o)}),this.headerCellCtrls=void 0,super.destroy()}},Vr=class extends ei{constructor(i){super(),this.pinned=i,this.hidden=!1,this.includeFloatingFilter=!1,this.groupsRowCtrls=[]}setComp(i,o){this.comp=i,this.eViewport=o;let{pinnedCols:C,ctrlsSvc:P,colModel:B,colMoves:W,filterManager:$}=this.beans;this.setupCenterWidth(),C==null||C.setupHeaderPinnedWidth(this),this.setupDragAndDrop(W,this.eViewport);let ie=this.onDisplayedColumnsChanged.bind(this,$);this.addManagedEventListeners({gridColumnsChanged:this.onGridColumnsChanged.bind(this),displayedColumnsChanged:ie,advancedFilterEnabledChanged:ie});let ue=`${typeof this.pinned=="string"?this.pinned:"center"}Header`;P.register(ue,this),B.ready&&this.refresh()}getAllCtrls(){let i=[...this.groupsRowCtrls];return this.columnsRowCtrl&&i.push(this.columnsRowCtrl),this.filtersRowCtrl&&i.push(this.filtersRowCtrl),i}refresh(i=!1){let{focusSvc:o,colModel:C,filterManager:P}=this.beans,B=0,W=o.getFocusHeaderToUseAfterRefresh(),$=()=>{let _e=x0(C)-1;this.groupsRowCtrls=this.destroyBeans(this.groupsRowCtrls);for(let Be=0;Be<_e;Be++){let Qe=this.createBean(new Pa(B++,this.pinned,"group"));this.groupsRowCtrls.push(Qe)}},ie=()=>{let _e=B++,Be=!this.hidden&&(this.columnsRowCtrl==null||!i||this.columnsRowCtrl.rowIndex!==_e);(Be||this.hidden)&&(this.columnsRowCtrl=this.destroyBean(this.columnsRowCtrl)),Be&&(this.columnsRowCtrl=this.createBean(new Pa(_e,this.pinned,"column")))},ue=()=>{this.includeFloatingFilter=!!(P!=null&&P.hasFloatingFilters())&&!this.hidden;let _e=()=>{this.filtersRowCtrl=this.destroyBean(this.filtersRowCtrl)};if(!this.includeFloatingFilter){_e();return}let Be=B++;if(this.filtersRowCtrl){let Qe=this.filtersRowCtrl.rowIndex!==Be;(!i||Qe)&&_e()}this.filtersRowCtrl||(this.filtersRowCtrl=this.createBean(new Pa(Be,this.pinned,"filter")))};$(),ie(),ue();let De=this.getAllCtrls();this.comp.setCtrls(De),this.restoreFocusOnHeader(o,W)}getHeaderCtrlForColumn(i){var o;if(na(i))return(o=this.columnsRowCtrl)==null?void 0:o.getHeaderCellCtrl(i);if(this.groupsRowCtrls.length!==0)for(let C=0;C<this.groupsRowCtrls.length;C++){let P=this.groupsRowCtrls[C].getHeaderCellCtrl(i);if(P)return P}}getHtmlElementForColumnHeader(i){var o,C;return(C=(o=this.getHeaderCtrlForColumn(i))==null?void 0:o.eGui)!=null?C:null}getRowType(i){var o;return(o=this.getAllCtrls()[i])==null?void 0:o.type}focusHeader(i,o,C){let B=this.getAllCtrls()[i];return B?B.focusHeader(o,C):!1}getGroupRowCount(){return this.groupsRowCtrls.length}getGroupRowCtrlAtIndex(i){return this.groupsRowCtrls[i]}getRowCount(){return this.groupsRowCtrls.length+(this.columnsRowCtrl?1:0)+(this.filtersRowCtrl?1:0)}setHorizontalScroll(i){this.comp.setViewportScrollLeft(i)}onScrollCallback(i){this.addManagedElementListeners(this.eViewport,{scroll:i})}destroy(){this.filtersRowCtrl=this.destroyBean(this.filtersRowCtrl),this.columnsRowCtrl=this.destroyBean(this.columnsRowCtrl),this.groupsRowCtrls=this.destroyBeans(this.groupsRowCtrls),super.destroy()}setupDragAndDrop(i,o){let C=i==null?void 0:i.createBodyDropTarget(this.pinned,o);C&&this.createManagedBean(C)}restoreFocusOnHeader(i,o){if(!o)return;let{column:C}=o;C.getPinned()==this.pinned&&i.focusHeaderPosition({headerPosition:o})}onGridColumnsChanged(){this.refresh(!0)}onDisplayedColumnsChanged(i){let o=!!(i!=null&&i.hasFloatingFilters())&&!this.hidden;this.includeFloatingFilter!==o&&this.refresh(!0)}setupCenterWidth(){this.pinned==null&&this.createManagedBean(new Nm(i=>this.comp.setCenterWidth(`${i}px`),!0))}},Er=class extends ei{constructor(){super(...arguments),this.beanName="menuSvc"}postConstruct(){let{enterpriseMenuFactory:i,filterMenuFactory:o}=this.beans;this.activeMenuFactory=i!=null?i:o}showColumnMenu(i){this.showColumnMenuCommon(this.activeMenuFactory,i,"columnMenu")}showFilterMenu(i){let{enterpriseMenuFactory:o,filterMenuFactory:C}=this.beans,P=o&&mr(this.gos)?o:C;this.showColumnMenuCommon(P,i,i.containerType,!0)}showHeaderContextMenu(i,o,C){var P;(P=this.activeMenuFactory)==null||P.showMenuAfterContextMenuEvent(i,o,C)}hidePopupMenu(){var i,o;(i=this.beans.contextMenuSvc)==null||i.hideActiveMenu(),(o=this.activeMenuFactory)==null||o.hideActiveMenu()}isColumnMenuInHeaderEnabled(i){var C;let{suppressHeaderMenuButton:o}=i.getColDef();return!o&&!!((C=this.activeMenuFactory)!=null&&C.isMenuEnabled(i))&&(mr(this.gos)||!!this.beans.enterpriseMenuFactory)}isFilterMenuInHeaderEnabled(i){var o;return!i.getColDef().suppressHeaderFilterButton&&!!((o=this.beans.filterManager)!=null&&o.isFilterAllowed(i))}isHeaderContextMenuEnabled(i){let o=i&&na(i)?i.getColDef():i==null?void 0:i.getColGroupDef();return!(o!=null&&o.suppressHeaderContextMenu)&&this.gos.get("columnMenu")==="new"}isHeaderMenuButtonAlwaysShowEnabled(){return this.isSuppressMenuHide()}isHeaderMenuButtonEnabled(){let i=!this.isSuppressMenuHide();return!(Tn()&&i)}isHeaderFilterButtonEnabled(i){return this.isFilterMenuInHeaderEnabled(i)&&!mr(this.gos)&&!this.isFloatingFilterButtonDisplayed(i)}isFilterMenuItemEnabled(i){var o;return!!((o=this.beans.filterManager)!=null&&o.isFilterAllowed(i))&&!mr(this.gos)&&!this.isFilterMenuInHeaderEnabled(i)&&!this.isFloatingFilterButtonDisplayed(i)}isFloatingFilterButtonEnabled(i){return!i.getColDef().suppressFloatingFilterButton}isFloatingFilterButtonDisplayed(i){return!!i.getColDef().floatingFilter&&this.isFloatingFilterButtonEnabled(i)}isSuppressMenuHide(){let i=this.gos,o=i.get("suppressMenuHide");return mr(i)?i.exists("suppressMenuHide")?o:!1:o}showColumnMenuCommon(i,o,C,P){let{positionBy:B}=o,W=o.column;if(B==="button"){let{buttonElement:$}=o;i==null||i.showMenuAfterButtonClick(W,$,C,P)}else if(B==="mouse"){let{mouseEvent:$}=o;i==null||i.showMenuAfterMouseEvent(W,$,C,P)}else if(W){let $=this.beans,ie=$.ctrlsSvc;ie.getScrollFeature().ensureColumnVisible(W,"auto"),pp($,()=>{var De;let ue=(De=ie.getHeaderRowContainerCtrl(W.getPinned()))==null?void 0:De.getHeaderCtrlForColumn(W);ue&&(i==null||i.showMenuAfterButtonClick(W,ue.getAnchorElementForMenu(P),C,!0))})}}};function as(i,o,C){i.menuVisible!==o&&(i.menuVisible=o,i.dispatchColEvent("menuVisibleChanged",C))}var da=class extends On{constructor(){super()}},Ox=class extends da{init(){var o;let i=cl((o=this.gos.get("overlayLoadingTemplate"))==null?void 0:o.trim());if(this.setTemplate(i!=null?i:'<span aria-live="polite" aria-atomic="true" class="ag-overlay-loading-center"></span>'),!i){let C=this.getLocaleTextFunc();setTimeout(()=>{this.getGui().textContent=C("loadingOoo","Loading...")})}}},hb=class extends da{init(){var o;let i=cl((o=this.gos.get("overlayNoRowsTemplate"))==null?void 0:o.trim());if(this.setTemplate(i!=null?i:'<span class="ag-overlay-no-rows-center"></span>'),!i){let C=this.getLocaleTextFunc();setTimeout(()=>{this.getGui().textContent=C("noRowsToShow","No Rows To Show")})}}};function sd(i,o,C){let P=za(i,o,C);if(P){let{className:W}=P;if(typeof W=="string"&&W.indexOf("ag-icon")>-1||typeof W=="object"&&W["ag-icon"])return P}let B=document.createElement("span");return B.appendChild(P),B}function za(i,o,C){var W;let P=null;i==="smallDown"?pi(262):i==="smallLeft"?pi(263):i==="smallRight"&&pi(264);let B=C&&C.getColDef().icons;if(B&&(P=B[i]),o.gos&&!P){let $=o.gos.get("icons");$&&(P=$[i])}if(P){let $;if(typeof P=="function")$=P();else if(typeof P=="string")$=P;else{pi(38,{iconName:i});return}if(typeof $=="string")return Gt($);if(xc($))return $;pi(133,{iconName:i});return}else{let $=document.createElement("span"),ie=o.registry.getIcon(i);ie||(W=o.validation)==null||W.validateIcon(i);let ue=ie!=null?ie:i;return $.setAttribute("class",`ag-icon ag-icon-${ue}`),$.setAttribute("unselectable","on"),k($,"presentation"),$}}var _I=".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}",GP=class extends On{constructor(){super(),this.dragSource=null,this.eIcon=Ri,this.eLabel=Ri,this.registerCSS(_I)}postConstruct(){let i=o=>sd(o,this.beans,null);this.dropIconMap={pinned:i("columnMovePin"),hide:i("columnMoveHide"),move:i("columnMoveMove"),left:i("columnMoveLeft"),right:i("columnMoveRight"),group:i("columnMoveGroup"),aggregate:i("columnMoveValue"),pivot:i("columnMovePivot"),notAllowed:i("dropNotAllowed")}}init(i){this.dragSource=i.dragSource,this.setTemplate(`<div class="ag-dnd-ghost ag-unselectable">
                <span data-ref="eIcon" class="ag-dnd-ghost-icon ag-shake-left-to-right"></span>
                <div data-ref="eLabel" class="ag-dnd-ghost-label"></div>
            </div>`)}destroy(){this.dragSource=null,super.destroy()}setIcon(i,o){let{eIcon:C,dragSource:P,dropIconMap:B,gos:W}=this;Ke(C);let $=null;i||(i=P!=null&&P.getDefaultIconName?P.getDefaultIconName():"notAllowed"),$=B[i],C.classList.toggle("ag-shake-left-to-right",o),!($===B.hide&&W.get("suppressDragLeaveHidesColumns"))&&$&&C.appendChild($)}setLabel(i){this.eLabel.textContent=ql(i)}},gb=".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)}",FI=class extends On{constructor(i,o,C){super(o,C),this.labelSeparator="",this.labelAlignment="left",this.disabled=!1,this.label="",this.config=i||{},this.registerCSS(gb)}postConstruct(){this.addCssClass("ag-labeled"),this.eLabel.classList.add("ag-label");let{labelSeparator:i,label:o,labelWidth:C,labelAlignment:P,disabled:B}=this.config;B!=null&&this.setDisabled(B),i!=null&&this.setLabelSeparator(i),o!=null&&this.setLabel(o),C!=null&&this.setLabelWidth(C),this.setLabelAlignment(P||this.labelAlignment),this.refreshLabel()}refreshLabel(){let{label:i,eLabel:o}=this;Ke(o),typeof i=="string"?o.innerText=i+this.labelSeparator:i&&o.appendChild(i),i===""?(Un(o,!1),k(o,"presentation")):(Un(o,!0),k(o,null))}setLabelSeparator(i){return this.labelSeparator===i?this:(this.labelSeparator=i,this.label!=null&&this.refreshLabel(),this)}getLabelId(){let i=this.eLabel;return i.id=i.id||`ag-${this.getCompId()}-label`,i.id}getLabel(){return this.label}setLabel(i){return this.label===i?this:(this.label=i,this.refreshLabel(),this)}setLabelAlignment(i){let C=this.getGui().classList;return C.toggle("ag-label-align-left",i==="left"),C.toggle("ag-label-align-right",i==="right"),C.toggle("ag-label-align-top",i==="top"),this}setLabelEllipsis(i){return this.eLabel.classList.toggle("ag-label-ellipsis",i),this}setLabelWidth(i){return this.label==null?this:(an(this.eLabel,i),this)}setDisabled(i){i=!!i;let o=this.getGui();return la(o,i),o.classList.toggle("ag-disabled",i),this.disabled=i,this}isDisabled(){return!!this.disabled}},lD=class extends FI{constructor(i,o,C,P){super(i,o,C),this.className=P}postConstruct(){super.postConstruct();let{width:i,value:o,onValueChange:C}=this.config;i!=null&&this.setWidth(i),o!=null&&this.setValue(o),C!=null&&this.onValueChange(C),this.className&&this.addCssClass(this.className),this.refreshAriaLabelledBy()}setLabel(i){return super.setLabel(i),this.refreshAriaLabelledBy(),this}refreshAriaLabelledBy(){let i=this.getAriaElement(),o=this.getLabelId(),C=this.getLabel();C==null||C==""||z(i)!==null?U(i,""):U(i,o!=null?o:"")}setAriaLabel(i){return G(this.getAriaElement(),i),this.refreshAriaLabelledBy(),this}onValueChange(i){return this.addManagedListeners(this,{fieldValueChanged:()=>i(this.getValue())}),this}getWidth(){return this.getGui().clientWidth}setWidth(i){return Cn(this.getGui(),i),this}getPreviousValue(){return this.previousValue}getValue(){return this.value}setValue(i,o){return this.value===i?this:(this.previousValue=this.value,this.value=i,o||this.dispatchLocalEvent({type:"fieldValueChanged"}),this)}},ld=class extends lD{constructor(i,o,C="text",P="input"){var B;super(i,(B=i==null?void 0:i.template)!=null?B:`
            <div role="presentation">
                <div data-ref="eLabel" class="ag-input-field-label"></div>
                <div data-ref="eWrapper" class="ag-wrapper ag-input-wrapper" role="presentation">
                    <${P} data-ref="eInput" class="ag-input-field-input"></${P}>
                </div>
            </div>`,[],o),this.inputType=C,this.displayFieldTag=P,this.eLabel=Ri,this.eWrapper=Ri,this.eInput=Ri}postConstruct(){super.postConstruct(),this.setInputType();let{eLabel:i,eWrapper:o,eInput:C,className:P}=this;i.classList.add(`${P}-label`),o.classList.add(`${P}-input-wrapper`),C.classList.add(`${P}-input`),this.addCssClass("ag-input-field"),C.id=C.id||`ag-${this.getCompId()}-input`;let{inputName:B,inputWidth:W}=this.config;B!=null&&this.setInputName(B),W!=null&&this.setInputWidth(W),this.addInputListeners(),this.activateTabIndex([C])}addInputListeners(){this.addManagedElementListeners(this.eInput,{input:i=>this.setValue(i.target.value)})}setInputType(){this.displayFieldTag==="input"&&this.eInput.setAttribute("type",this.inputType)}getInputElement(){return this.eInput}setInputWidth(i){return an(this.eWrapper,i),this}setInputName(i){return this.getInputElement().setAttribute("name",i),this}getFocusableElement(){return this.eInput}setMaxLength(i){let o=this.eInput;return o.maxLength=i,this}setInputPlaceholder(i){return $r(this.eInput,"placeholder",i),this}setInputAriaLabel(i){return G(this.eInput,i),this.refreshAriaLabelledBy(),this}setDisabled(i){return la(this.eInput,i),super.setDisabled(i)}setAutoComplete(i){if(i===!0)$r(this.eInput,"autocomplete",null);else{let o=typeof i=="string"?i:"off";$r(this.eInput,"autocomplete",o)}return this}},pb=class extends ld{constructor(i,o="ag-checkbox",C="checkbox"){super(i,o,C),this.labelAlignment="right",this.selected=!1,this.readOnly=!1,this.passive=!1}postConstruct(){super.postConstruct();let{readOnly:i,passive:o}=this.config;typeof i=="boolean"&&this.setReadOnly(i),typeof o=="boolean"&&this.setPassive(o)}addInputListeners(){this.addManagedElementListeners(this.eInput,{click:this.onCheckboxClick.bind(this)}),this.addManagedElementListeners(this.eLabel,{click:this.toggle.bind(this)})}getNextValue(){return this.selected===void 0?!0:!this.selected}setPassive(i){this.passive=i}isReadOnly(){return this.readOnly}setReadOnly(i){this.eWrapper.classList.toggle("ag-disabled",i),this.eInput.disabled=i,this.readOnly=i}setDisabled(i){return this.eWrapper.classList.toggle("ag-disabled",i),super.setDisabled(i)}toggle(){if(this.eInput.disabled)return;let i=this.isSelected(),o=this.getNextValue();this.passive?this.dispatchChange(o,i):this.setValue(o)}getValue(){return this.isSelected()}setValue(i,o){return this.refreshSelectedClass(i),this.setSelected(i,o),this}setName(i){let o=this.getInputElement();return o.name=i,this}isSelected(){return this.selected}setSelected(i,o){if(this.isSelected()===i)return;this.previousValue=this.isSelected(),i=this.selected=typeof i=="boolean"?i:void 0;let C=this.eInput;C.checked=i,C.indeterminate=i===void 0,o||this.dispatchChange(this.selected,this.previousValue)}dispatchChange(i,o,C){this.dispatchLocalEvent({type:"fieldValueChanged",selected:i,previousValue:o,event:C});let P=this.getInputElement();this.eventSvc.dispatchEvent({type:"checkboxChanged",id:P.id,name:P.name,selected:i,previousValue:o})}onCheckboxClick(i){if(this.passive||this.eInput.disabled)return;let o=this.isSelected(),C=this.selected=i.target.checked;this.refreshSelectedClass(C),this.dispatchChange(C,o,i)}refreshSelectedClass(i){let o=this.eWrapper.classList;o.toggle("ag-checked",i===!0),o.toggle("ag-indeterminate",i==null)}},ao={selector:"AG-CHECKBOX",component:pb},Bm=".ag-checkbox-cell{height:100%}",fo=class extends On{constructor(){super(`
            <div class="ag-cell-wrapper ag-checkbox-cell" role="presentation">
                <ag-checkbox role="presentation" data-ref="eCheckbox"></ag-checkbox>
            </div>`,[ao]),this.eCheckbox=Ri,this.registerCSS(Bm)}init(i){this.refresh(i);let{eCheckbox:o,beans:C}=this,P=o.getInputElement();P.setAttribute("tabindex","-1"),Q(P,"polite"),this.addManagedListeners(P,{click:B=>{if(Br(B),o.isDisabled())return;let W=o.getValue();this.onCheckboxChanged(W)},dblclick:B=>{Br(B)}}),this.addManagedElementListeners(i.eGridCell,{keydown:B=>{if(B.key===Qt.SPACE&&!o.isDisabled()){i.eGridCell===Fa(C)&&o.toggle();let W=o.getValue();this.onCheckboxChanged(W),B.preventDefault()}}})}refresh(i){return this.params=i,this.updateCheckbox(i),!0}updateCheckbox(i){var Be;let o,C=!0,{value:P,column:B,node:W}=i;if(W.group&&B)if(typeof P=="boolean")o=P;else{let Qe=B.getColId();Qe.startsWith(vu)?o=P==null||P===""?void 0:P==="true":W.aggData&&W.aggData[Qe]!==void 0?o=P!=null?P:void 0:C=!1}else o=P!=null?P:void 0;let{eCheckbox:$}=this;if(!C){$.setDisplayed(!1);return}$.setValue(o);let ie=(Be=i.disabled)!=null?Be:!(B!=null&&B.isCellEditable(W));$.setDisabled(ie);let ue=this.getLocaleTextFunc(),De=St(ue,o),_e=ie?De:`${ue("ariaToggleCellValue","Press SPACE to toggle cell value")} (${De})`;$.setInputAriaLabel(_e)}onCheckboxChanged(i){let{eventSvc:o,params:C}=this,{column:P,node:B,value:W}=C,$={column:P,colDef:P.getColDef(),data:B.data,node:B,rowIndex:B.rowIndex,rowPinned:B.rowPinned,value:W};o.dispatchEvent(pe({type:"cellEditingStarted"},$));let ie=B.setDataValue(P,i,"edit");o.dispatchEvent(et(pe({type:"cellEditingStopped"},$),{oldValue:W,newValue:i,valueChanged:ie})),ie||this.updateCheckbox(C)}},br="ROOT_NODE_ID",bp=class extends ei{constructor(){super(...arguments),this.nextId=0,this.allNodesMap={},this.rootNode=null}get treeData(){return!1}getRowNode(i){return this.allNodesMap[i]}extractRowData(){var i,o;return(o=(i=this.rootNode)==null?void 0:i.allLeafChildren)==null?void 0:o.map(C=>C.data)}activate(i){this.rootNode=i,i.group=!0,i.level=-1,i.id=br,i.allLeafChildren=[],i.childrenAfterGroup=[],i.childrenAfterSort=[],i.childrenAfterAggFilter=[],i.childrenAfterFilter=[],this.updateRootSiblingArrays(i)}deactivate(){this.rootNode&&(this.allNodesMap={},this.rootNode=null)}destroy(){super.destroy(),this.allNodesMap={},this.rootNode=null}setNewRowData(i){let o=this.rootNode;o&&(this.dispatchRowDataUpdateStartedEvent(i),o.childrenAfterFilter=null,o.childrenAfterGroup=null,o.childrenAfterAggFilter=null,o.childrenAfterSort=null,o.childrenMapped=null,o.updateHasChildren(),this.allNodesMap={},this.nextId=0,this.loadNewRowData(i),this.updateRootSiblingArrays(o))}updateRootSiblingArrays(i){let o=i.sibling;o&&(o.childrenAfterFilter=i.childrenAfterFilter,o.childrenAfterGroup=i.childrenAfterGroup,o.childrenAfterAggFilter=i.childrenAfterAggFilter,o.childrenAfterSort=i.childrenAfterSort,o.childrenMapped=i.childrenMapped,o.allLeafChildren=i.allLeafChildren)}loadNewRowData(i){var o;this.rootNode.allLeafChildren=(o=i==null?void 0:i.map((C,P)=>this.createRowNode(C,P)))!=null?o:[]}setImmutableRowData(i,o){let C=this.createTransactionForRowData(o),P=this.updateRowData(C,i.changedRowNodes),B=!1;this.gos.get("suppressMaintainUnsortedOrder")||(B=this.updateRowOrderFromRowData(o));let{rowNodeTransaction:W,rowsInserted:$}=P,{add:ie,remove:ue,update:De}=W;($||B||ie.length||ue.length||De.length)&&(i.step="group",i.rowDataUpdated=!0,i.rowNodeTransactions=[W],i.rowNodesOrderChanged=$||B)}updateRowData(i,o){this.dispatchRowDataUpdateStartedEvent(i.add);let C={changedRowNodes:o,rowNodeTransaction:{remove:[],update:[],add:[]},rowsInserted:!1},P=[],B=ev(this.gos);return this.executeRemove(B,i,C,P),this.executeUpdate(B,i,C,P),this.executeAdd(i,C),this.deselectNodes(P),C}createTransactionForRowData(i){let o=ev(this.gos),C=pe({},this.allNodesMap),P=[],B=[],W=[];Ai(i)&&i.forEach($=>{let ie=o({data:$,level:0}),ue=C[ie];ue?(ue.data!==$&&B.push($),C[ie]=void 0):W.push($)});for(let $ of Object.values(C))$&&P.push($.data);return{remove:P,update:B,add:W}}updateRowOrderFromRowData(i){var $,ie;let o=($=this.rootNode)==null?void 0:$.allLeafChildren,C=(ie=o==null?void 0:o.length)!=null?ie:0,P=new Map,B=-1,W=-1;for(let ue=0;ue<C;++ue){let De=o[ue],_e=De.data;_e!==i[ue]&&(W<0&&(B=ue),W=ue,P.set(_e,De))}if(B<0)return!1;for(let ue=B;ue<=W;++ue){let De=P.get(i[ue]);De!==void 0&&(o[ue]=De,De.sourceRowIndex=ue)}return!0}executeAdd(i,o){let C=i.add;if(!(C!=null&&C.length))return;let P=this.rootNode.allLeafChildren,B=P.length;if(typeof i.addIndex=="number"&&(B=this.sanitizeAddIndex(i.addIndex),B>0&&this.gos.get("treeData")&&this.gos.get("getDataPath")))for(let Be=0;Be<P.length;Be++){let Qe=P[Be];if((Qe==null?void 0:Qe.rowIndex)==B-1){B=Be+1;break}}let W=C.length,$=o.changedRowNodes,ie=new Array(W);for(let _e=0;_e<W;_e++){let Be=this.createRowNode(C[_e],B+_e);$.add(Be),ie[_e]=Be}let ue=this.rootNode;if(B<P.length){let _e=P.slice(0,B),Be=P.slice(B,P.length),Qe=_e.length+ie.length;for(let st=0,Ct=Be.length;st<Ct;++st)Be[st].sourceRowIndex=Qe+st;P=[..._e,...ie,...Be],o.rowsInserted=!0}else P=P.concat(ie);ue.allLeafChildren=P;let De=ue.sibling;De&&(De.allLeafChildren=P),o.rowNodeTransaction.add=ie}executeRemove(i,o,{changedRowNodes:C,rowNodeTransaction:P},B){var De,_e,Be;let{remove:W}=o;if(!(W!=null&&W.length))return;let $={};W.forEach(Qe=>{let st=this.lookupRowNode(i,Qe);st&&(st.isSelected()&&B.push(st),st.clearRowTopAndRowIndex(),$[st.id]=!0,delete this.allNodesMap[st.id],P.remove.push(st),C.remove(st))});let ie=this.rootNode;ie.allLeafChildren=(_e=(De=ie.allLeafChildren)==null?void 0:De.filter(Qe=>!$[Qe.id]))!=null?_e:null,(Be=ie.allLeafChildren)==null||Be.forEach((Qe,st)=>{Qe.sourceRowIndex=st});let ue=ie.sibling;ue&&(ue.allLeafChildren=ie.allLeafChildren)}executeUpdate(i,o,{changedRowNodes:C,rowNodeTransaction:P},B){let{update:W}=o;W!=null&&W.length&&W.forEach($=>{let ie=this.lookupRowNode(i,$);ie&&(ie.updateData($),!ie.selectable&&ie.isSelected()&&B.push(ie),P.update.push(ie),C.update(ie))})}dispatchRowDataUpdateStartedEvent(i){this.eventSvc.dispatchEvent({type:"rowDataUpdateStarted",firstRowData:i!=null&&i.length?i[0]:null})}deselectNodes(i){var B;let o="rowDataChanged",C=this.beans.selectionSvc,P=i.length>0;P&&(C==null||C.setNodesSelected({newValue:!1,nodes:i,suppressFinishActions:!0,source:o})),(B=C==null?void 0:C.updateGroupsFromChildrenSelections)==null||B.call(C,o),P&&this.eventSvc.dispatchEvent({type:"selectionChanged",source:o})}sanitizeAddIndex(i){var C,P;let o=(P=(C=this.rootNode.allLeafChildren)==null?void 0:C.length)!=null?P:0;return i<0||i>=o||Number.isNaN(i)?o:Math.ceil(i)}createRowNode(i,o){let C=new Xo(this.beans);return C.parent=this.rootNode,C.level=0,C.group=!1,C.expanded=!1,C.sourceRowIndex=o,C.setDataAndId(i,String(this.nextId)),this.allNodesMap[C.id]&&pi(2,{nodeId:C.id}),this.allNodesMap[C.id]=C,this.nextId++,C}lookupRowNode(i,o){var P,B;let C;if(i){let W=i({data:o,level:0});if(C=this.allNodesMap[W],!C)return Ea(4,{id:W}),null}else if(C=(B=(P=this.rootNode)==null?void 0:P.allLeafChildren)==null?void 0:B.find(W=>W.data===o),!C)return Ea(5,{data:o}),null;return C||null}},$l=(i=>(i.Applied="Applied",i.StoreNotFound="StoreNotFound",i.StoreLoading="StoreLoading",i.StoreWaitingToLoad="StoreWaitingToLoad",i.StoreLoadingFailed="StoreLoadingFailed",i.StoreWrongType="StoreWrongType",i.Cancelled="Cancelled",i.StoreNotStarted="StoreNotStarted",i))($l||{}),jP=class extends On{constructor(){super(`
            <div class="ag-selection-checkbox" role="presentation">
                <ag-checkbox role="presentation" data-ref="eCheckbox"></ag-checkbox>
            </div>`,[ao]),this.eCheckbox=Ri}postConstruct(){this.eCheckbox.setPassive(!0)}getCheckboxId(){return this.eCheckbox.getInputElement().id}onDataChanged(){this.onSelectionChanged()}onSelectableChanged(){this.showOrHideSelect()}onSelectionChanged(){let i=this.getLocaleTextFunc(),{rowNode:o,eCheckbox:C}=this,P=o.isSelected(),B=St(i,P),[W,$]=o.selectable?["ariaRowToggleSelection","Press Space to toggle row selection"]:["ariaRowSelectionDisabled","Row Selection is disabled for this row"],ie=i(W,$);C.setValue(P,!0),C.setInputAriaLabel(`${ie} (${B})`)}init(i){if(this.rowNode=i.rowNode,this.column=i.column,this.overrides=i.overrides,this.onSelectionChanged(),this.addManagedListeners(this.eCheckbox.getInputElement(),{dblclick:Br,click:P=>{var B;Br(P),(B=this.beans.selectionSvc)==null||B.handleSelectionEvent(P,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:P,previousValue:B})=>{let W=typeof P=="object"?xm(P):void 0,$=typeof B=="object"?xm(B):void 0;W!==$&&this.onSelectableChanged()}),up(this.gos)||typeof this.getIsVisible()=="function"){let P=this.showOrHideSelect.bind(this);this.addManagedEventListeners({displayedColumnsChanged:P}),this.addManagedListeners(this.rowNode,{dataChanged:P,cellChanged:P}),this.showOrHideSelect()}this.eCheckbox.getInputElement().setAttribute("tabindex","-1")}showOrHideSelect(){let{column:i,rowNode:o,overrides:C,gos:P}=this,B=o.selectable,W=this.getIsVisible();if(B)if(typeof W=="function"){let ue=C==null?void 0:C.callbackParams;if(!i)B=W(et(pe({},ue),{node:o,data:o.data}));else{let De=i.createColumnFunctionCallbackParams(o);B=W(pe(pe({},ue),De))}}else B=W!=null?W:!1;let $=P.get("rowSelection");if($&&typeof $!="string"?!xm($):i==null?void 0:i.getColDef().showDisabledCheckboxes){this.eCheckbox.setDisabled(!B),this.setVisible(!0),this.setDisplayed(!0);return}if(C!=null&&C.removeHidden){this.setDisplayed(B);return}this.setVisible(B)}getIsVisible(){var C,P;let i=this.overrides;if(i)return i.isVisible;let o=this.gos.get("rowSelection");return o&&typeof o!="string"?ed(o):(P=(C=this.column)==null?void 0:C.getColDef())==null?void 0:P.checkboxSelection}},cD=class{constructor(i){this.rootId=null,this.endId=null,this.cachedRange=[],this.rowModel=i}reset(){this.rootId=null,this.endId=null,this.cachedRange.length=0}setRoot(i){this.rootId=i.id,this.endId=null,this.cachedRange.length=0}setEndRange(i){this.endId=i.id,this.cachedRange.length=0}getRange(){var i;if(this.cachedRange.length===0){let o=this.getRoot(),C=this.getEnd();if(o==null||C==null)return this.cachedRange;this.cachedRange=(i=this.rowModel.getNodesInRangeForSelection(o,C))!=null?i:[]}return this.cachedRange}isInRange(i){return this.rootId===null?!1:this.getRange().some(o=>o.id===i.id)}getRoot(){var i;return this.rootId&&(i=this.rowModel.getRowNode(this.rootId))!=null?i:null}getEnd(){var i;return this.endId&&(i=this.rowModel.getRowNode(this.endId))!=null?i:null}truncate(i){let o=this.getRange();if(o.length===0)return{keep:[],discard:[]};let C=o[0].id===this.rootId,P=o.findIndex(B=>B.id===i.id);if(P>-1){let B=o.slice(0,P),W=o.slice(P+1);return this.setEndRange(i),C?{keep:B,discard:W}:{keep:W,discard:B}}else return{keep:o,discard:[]}}extend(i,o=!1){let C=this.getRoot();if(C==null){let B=this.getRange().slice();return o&&i.depthFirstSearch(W=>!W.group&&B.push(W)),B.push(i),this.setRoot(i),{keep:B,discard:[]}}let P=this.rowModel.getNodesInRangeForSelection(C,i);if(!P)return this.setRoot(i),{keep:[i],discard:[]};if(P.find(B=>B.id===this.endId))return this.setEndRange(i),{keep:this.getRange(),discard:[]};{let B=this.getRange().slice();return this.setEndRange(i),{keep:this.getRange(),discard:B}}}},Th=class extends ei{constructor(i){super(),this.column=i,this.cbSelectAllVisible=!1,this.processingEventFromCheckbox=!1}onSpaceKeyDown(i){let o=this.cbSelectAll;o.isDisplayed()&&!o.getGui().contains(Fa(this.beans))&&(i.preventDefault(),o.setValue(!o.getValue()))}getCheckboxGui(){return this.cbSelectAll.getGui()}setComp(i){this.headerCellCtrl=i;let o=this.createManagedBean(new pb);this.cbSelectAll=o,o.addCssClass("ag-header-select-all"),k(o.getGui(),"presentation"),this.showOrHideSelectAll(),this.addManagedEventListeners({newColumnsLoaded:this.showOrHideSelectAll.bind(this),displayedColumnsChanged:this.onDisplayedColumnsChanged.bind(this),selectionChanged:this.onSelectionChanged.bind(this),paginationChanged:this.onSelectionChanged.bind(this),modelUpdated:this.onModelChanged.bind(this)}),this.addManagedListeners(o,{fieldValueChanged:this.onCbSelectAll.bind(this)}),o.getInputElement().setAttribute("tabindex","-1"),this.refreshSelectAllLabel()}onDisplayedColumnsChanged(){this.isAlive()&&this.showOrHideSelectAll()}showOrHideSelectAll(){let i=this.isCheckboxSelection();this.cbSelectAllVisible=i,this.cbSelectAll.setDisplayed(i),i&&(this.checkRightRowModelType("selectAllCheckbox"),this.checkSelectionType("selectAllCheckbox"),this.updateStateOfCheckbox()),this.refreshSelectAllLabel()}onModelChanged(){this.cbSelectAllVisible&&this.updateStateOfCheckbox()}onSelectionChanged(){this.cbSelectAllVisible&&this.updateStateOfCheckbox()}updateStateOfCheckbox(){if(this.processingEventFromCheckbox)return;this.processingEventFromCheckbox=!0;let i=this.getSelectAllMode(),o=this.beans.selectionSvc,C=this.cbSelectAll,P=o.getSelectAllState(i);C.setValue(P);let B=o.hasNodesToSelect(i);C.setDisabled(!B),this.refreshSelectAllLabel(),this.processingEventFromCheckbox=!1}refreshSelectAllLabel(){let i=this.getLocaleTextFunc(),{headerCellCtrl:o,cbSelectAll:C,cbSelectAllVisible:P}=this,W=C.getValue()?i("ariaChecked","checked"):i("ariaUnchecked","unchecked"),$=i("ariaRowSelectAll","Press Space to toggle all rows selection");o.setAriaDescriptionProperty("selectAll",P?`${$} (${W})`:null),C.setInputAriaLabel(i("ariaHeaderSelection","Column with Header Selection")),o.announceAriaDescription()}checkSelectionType(i){return Mm(this.gos)?!0:(pi(128,{feature:i}),!1)}checkRightRowModelType(i){let{gos:o,rowModel:C}=this.beans;return _o(o)||Jc(o)?!0:(pi(129,{feature:i,rowModel:C.getType()}),!1)}onCbSelectAll(){if(this.processingEventFromCheckbox||!this.cbSelectAllVisible)return;let i=this.cbSelectAll.getValue(),o=this.getSelectAllMode(),C="uiSelectAll";o==="currentPage"?C="uiSelectAllCurrentPage":o==="filtered"&&(C="uiSelectAllFiltered");let P={source:C,selectAll:o},B=this.beans.selectionSvc;i?B.selectAllRowNodes(P):B.deselectAllRowNodes(P)}isCheckboxSelection(){var De;let{column:i,gos:o,beans:C}=this,P=o.get("rowSelection"),B=i.getColDef(),{headerCheckboxSelection:W}=B,$=!1,ie=typeof P=="object";if(ie){let _e=Tc(i),Be=Yo(i);(Wa(P)==="autoGroupColumn"&&Be||_e&&((De=C.selectionColSvc)!=null&&De.isSelectionColumnEnabled()))&&($=Hl(P))}else typeof W=="function"?$=W(o.addGridCommonParams({column:i,colDef:B})):$=!!W;let ue=ie?"headerCheckbox":"headerCheckboxSelection";return $&&this.checkRightRowModelType(ue)&&this.checkSelectionType(ue)}getSelectAllMode(){let i=FA(this.gos,!1);if(i)return i;let{headerCheckboxSelectionCurrentPageOnly:o,headerCheckboxSelectionFilteredOnly:C}=this.column.getColDef();return o?"currentPage":C?"filtered":"all"}},mb=class extends ei{postConstruct(){let{gos:i,beans:o}=this;this.selectionCtx=new cD(o.rowModel),this.addManagedPropertyListeners(["isRowSelectable","rowSelection"],()=>{let C=up(i);C!==this.isRowSelectable&&(this.isRowSelectable=C,this.updateSelectable())}),this.isRowSelectable=up(i)}destroy(){super.destroy(),this.selectionCtx.reset()}createCheckboxSelectionComponent(){return new jP}createSelectAllFeature(i){return new Th(i)}isMultiSelect(){return Mm(this.gos)}onRowCtrlSelected(i,o,C){let P=!!i.rowNode.isSelected();i.forEachGui(C,B=>{B.rowComp.addOrRemoveCssClass("ag-row-selected",P);let W=B.element;at(W,P),W.contains(Fa(this.beans))&&o(B)})}announceAriaRowSelection(i){var B;if(this.isRowSelectionBlocked(i))return;let o=i.isSelected();if(o&&!ms(this.gos))return;let P=this.getLocaleTextFunc()(o?"ariaRowDeselect":"ariaRowSelect",`Press SPACE to ${o?"deselect":"select"} this row`);(B=this.beans.ariaAnnounce)==null||B.announceValue(P,"rowSelection")}dispatchSelectionChanged(i){this.eventSvc.dispatchEvent({type:"selectionChanged",source:i})}isRowSelectionBlocked(i){return!i.selectable||!!i.rowPinned||!Ec(this.gos)}updateRowSelectable(i,o){var P,B;let C=(B=(P=this.isRowSelectable)==null?void 0:P.call(this,i))!=null?B:!0;return this.setRowSelectable(i,C,o),C}setRowSelectable(i,o,C){if(i.selectable!==o){if(i.selectable=o,i.dispatchRowEvent("selectableChanged"),C)return;if(By(this.gos)){let B=this.calculateSelectedFromChildren(i);this.setNodesSelected({nodes:[i],newValue:B!=null?B:!1,source:"selectableChanged"});return}i.isSelected()&&!i.selectable&&this.setNodesSelected({nodes:[i],newValue:!1,source:"selectableChanged"})}}calculateSelectedFromChildren(i){var P;let o=!1,C=!1;if(!((P=i.childrenAfterGroup)!=null&&P.length))return i.selectable?i.__selected:null;for(let B=0;B<i.childrenAfterGroup.length;B++){let W=i.childrenAfterGroup[B],$=W.isSelected();if(!W.selectable){let ie=this.calculateSelectedFromChildren(W);if(ie===null)continue;$=ie}switch($){case!0:o=!0;break;case!1:C=!0;break;default:return}}if(!(o&&C))return o?!0:C?!1:i.selectable?i.__selected:null}selectRowNode(i,o,C,P="api"){let B=!i.selectable&&o,W=i.__selected===o;if(B||W)return!1;i.__selected=o,i.dispatchRowEvent("rowSelected");let $=i.sibling;return $&&$.footer&&$.__localEventService&&$.dispatchRowEvent("rowSelected"),this.eventSvc.dispatchEvent(et(pe({},nb(i,this.gos,"rowSelected")),{event:C||null,source:P})),!0}isCellCheckboxSelection(i,o){let C=this.gos.get("rowSelection");if(C&&typeof C!="string"){let P=Tc(i)&&ed(C);return i.isColumnFunc(o,P)}else return i.isColumnFunc(o,i.colDef.checkboxSelection)}inferNodeSelections(i,o,C,P){let{gos:B,selectionCtx:W}=this,$=i.isSelected(),ie=By(B),ue=fI(B),De=ms(B),_e=P==="rowClicked";if(_e&&ie&&i.group||_e&&!(ue||De))return null;if(o&&C&&this.isMultiSelect()){let Be=W.getRoot();if(Be)if(Be.isSelected()){let Qe=W.isInRange(i)?W.truncate(i):W.extend(i,ie);return{deselect:Qe.discard,select:Qe.keep,reset:!1}}else{let Qe=W.extend(i,ie);return{select:[],deselect:Qe.keep,reset:!1}}else return null}else if(o&&this.isMultiSelect()){let Be=W.getRoot(),Qe=W.isInRange(i)?W.truncate(i):W.extend(i,ie);return{select:Qe.keep,deselect:Qe.discard,reset:!!(Be&&!Be.isSelected())}}else{if(C)return W.setRoot(i),_e&&$&&!De?null:{node:i,newValue:!$,clearSelection:!this.isMultiSelect()};{W.setRoot(i);let Be=e0(B),Qe=gh(B)==="filteredDescendants",st=_e&&(!Be||!ue);if(Qe&&$===void 0&&_o(B))return{node:i,newValue:!1,clearSelection:!this.isMultiSelect()||st};if(_e){let Ct=$?!Be:ue;return Ct===$?null:{node:i,newValue:Ct,clearSelection:!this.isMultiSelect()||st}}return{node:i,newValue:!$,clearSelection:!this.isMultiSelect()||st}}}}},_x=class extends pb{constructor(i){super(i,"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(i){let o=this.eInput;i.selected&&i.name&&o.name&&o.name===i.name&&i.id&&o.id!==i.id&&this.setValue(!1,!0)}},NI='.ag-toggle-button{flex:none;min-width:unset;width:unset}.ag-toggle-button-input-wrapper{background-color:var(--ag-toggle-button-off-background-color);border-radius:calc(var(--ag-toggle-button-height)*.5);flex:none;height:var(--ag-toggle-button-height);max-width:var(--ag-toggle-button-width);min-width:var(--ag-toggle-button-width);position:relative;transition:background-color .1s;:where(.ag-toggle-button-input){-webkit-appearance:none;-moz-appearance:none;appearance:none;cursor:pointer;display:block;height:var(--ag-toggle-button-height);margin:0;max-width:var(--ag-toggle-button-width);min-width:var(--ag-toggle-button-width);opacity:0}&:before{background-color:var(--ag-toggle-button-switch-background-color);border-radius:100%;content:"";display:block;height:calc(var(--ag-toggle-button-height) - var(--ag-toggle-button-switch-inset)*2);left:var(--ag-toggle-button-switch-inset);pointer-events:none;position:absolute;top:var(--ag-toggle-button-switch-inset);transition:left .1s;width:calc(var(--ag-toggle-button-height) - var(--ag-toggle-button-switch-inset)*2)}&.ag-checked{background-color:var(--ag-toggle-button-on-background-color);&:before{left:calc(100% - var(--ag-toggle-button-height) + var(--ag-toggle-button-switch-inset))}}&:focus-within{box-shadow:var(--ag-focus-shadow)}&.ag-disabled{opacity:.5}}',Au=class extends pb{constructor(i){super(i,"ag-toggle-button"),this.registerCSS(NI)}setValue(i,o){return super.setValue(i,o),this.addOrRemoveCssClass("ag-selected",this.getValue()),this}},yv={selector:"AG-TOGGLE-BUTTON",component:Au},Bd=class extends ld{constructor(i,o="ag-text-field",C="text"){super(i,o,C)}postConstruct(){super.postConstruct(),this.config.allowedCharPattern&&this.preventDisallowedCharacters()}setValue(i,o){let C=this.eInput;return C.value!==i&&(C.value=Ai(i)?i:""),super.setValue(i,o)}setStartValue(i){this.setValue(i,!0)}preventDisallowedCharacters(){let i=new RegExp(`[${this.config.allowedCharPattern}]`),o=C=>{Cl(C)&&C.key&&!i.test(C.key)&&C.preventDefault()};this.addManagedListeners(this.eInput,{keydown:o,paste:C=>{var B;let P=(B=C.clipboardData)==null?void 0:B.getData("text");P&&P.split("").some(W=>!i.test(W))&&C.preventDefault()}})}},Gm={selector:"AG-INPUT-TEXT-FIELD",component:Bd},Cp=class extends ld{constructor(i){super(i,"ag-text-area",null,"textarea")}setValue(i,o){let C=super.setValue(i,o);return this.eInput.value=i,C}setCols(i){return this.eInput.cols=i,this}setRows(i){return this.eInput.rows=i,this}},zI={selector:"AG-INPUT-TEXT-AREA",component:Cp},bv=class extends Bd{constructor(i){super(i,"ag-number-field","number")}postConstruct(){super.postConstruct();let i=this.eInput;this.addManagedListeners(i,{blur:()=>{let W=parseFloat(i.value),$=isNaN(W)?"":this.normalizeValue(W.toString());this.value!==$&&this.setValue($)},wheel:this.onWheel.bind(this)}),i.step="any";let{precision:o,min:C,max:P,step:B}=this.config;typeof o=="number"&&this.setPrecision(o),typeof C=="number"&&this.setMin(C),typeof P=="number"&&this.setMax(P),typeof B=="number"&&this.setStep(B)}onWheel(i){Fa(this.beans)===this.eInput&&i.preventDefault()}normalizeValue(i){if(i==="")return"";this.precision!=null&&(i=this.adjustPrecision(i));let o=parseFloat(i),{min:C,max:P}=this;return C!=null&&o<C?i=C.toString():P!=null&&o>P&&(i=P.toString()),i}adjustPrecision(i,o){let C=this.precision;if(C==null)return i;if(o){let B=parseFloat(i).toFixed(C);return parseFloat(B).toString()}let P=String(i).split(".");if(P.length>1){if(P[1].length<=C)return i;if(C>0)return`${P[0]}.${P[1].slice(0,C)}`}return P[0]}setMin(i){return this.min===i?this:(this.min=i,$r(this.eInput,"min",i),this)}setMax(i){return this.max===i?this:(this.max=i,$r(this.eInput,"max",i),this)}setPrecision(i){return this.precision=i,this}setStep(i){return this.step===i?this:(this.step=i,$r(this.eInput,"step",i),this)}setValue(i,o){return this.setValueOrInputValue(C=>super.setValue(C,o),()=>this,i)}setStartValue(i){return this.setValueOrInputValue(o=>super.setValue(o,!0),o=>{this.eInput.value=o},i)}setValueOrInputValue(i,o,C){if(Ai(C)){let P=this.isScientificNotation(C);if(P&&this.eInput.validity.valid)return i(C);if(!P){C=this.adjustPrecision(C);let B=this.normalizeValue(C);P=C!=B}if(P)return o(C)}return i(C)}getValue(){let i=this.eInput;if(!i.validity.valid)return;let o=i.value;return this.isScientificNotation(o)?this.adjustPrecision(o,!0):super.getValue()}isScientificNotation(i){return typeof i=="string"&&i.includes("e")}},Ql={selector:"AG-INPUT-NUMBER-FIELD",component:bv};function Us(i,o){return i.toString().padStart(o,"0")}function os(i,o=!0,C="-"){if(!i)return null;let P=[i.getFullYear(),i.getMonth()+1,i.getDate()].map(B=>Us(B,2)).join(C);return o&&(P+=" "+[i.getHours(),i.getMinutes(),i.getSeconds()].map(B=>Us(B,2)).join(":")),P}var Ks=i=>{if(i>3&&i<21)return"th";switch(i%10){case 1:return"st";case 2:return"nd";case 3:return"rd"}return"th"};function Gd(i,o="YYYY-MM-DD"){let C=Us(i.getFullYear(),4),P=["January","February","March","April","May","June","July","August","September","October","November","December"],B=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],W={YYYY:()=>C.slice(C.length-4,C.length),YY:()=>C.slice(C.length-2,C.length),Y:()=>`${i.getFullYear()}`,MMMM:()=>P[i.getMonth()],MMM:()=>P[i.getMonth()].slice(0,3),MM:()=>Us(i.getMonth()+1,2),Mo:()=>`${i.getMonth()+1}${Ks(i.getMonth()+1)}`,M:()=>`${i.getMonth()+1}`,Do:()=>`${i.getDate()}${Ks(i.getDate())}`,DD:()=>Us(i.getDate(),2),D:()=>`${i.getDate()}`,dddd:()=>B[i.getDay()],ddd:()=>B[i.getDay()].slice(0,3),dd:()=>B[i.getDay()].slice(0,2),do:()=>`${i.getDay()}${Ks(i.getDay())}`,d:()=>`${i.getDay()}`},$=new RegExp(Object.keys(W).join("|"),"g");return o.replace($,ie=>ie in W?W[ie]():ie)}function Jl(i){if(!i)return null;let[o,C]=i.split(" ");if(!o)return null;let P=o.split("-").map(Be=>parseInt(Be,10));if(P.filter(Be=>!isNaN(Be)).length!==3)return null;let[B,W,$]=P,ie=new Date(B,W-1,$);if(ie.getFullYear()!==B||ie.getMonth()!==W-1||ie.getDate()!==$)return null;if(!C||C==="00:00:00")return ie;let[ue,De,_e]=C.split(":").map(Be=>parseInt(Be,10));return ue>=0&&ue<24&&ie.setHours(ue),De>=0&&De<60&&ie.setMinutes(De),_e>=0&&_e<60&&ie.setSeconds(_e),ie}var BI=class extends Bd{constructor(i){super(i,"ag-date-field","date")}postConstruct(){super.postConstruct();let i=ii();this.addManagedListeners(this.eInput,{wheel:this.onWheel.bind(this),mousedown:()=>{this.isDisabled()||i||this.eInput.focus()}}),this.eInput.step="any"}onWheel(i){Fa(this.beans)===this.eInput&&i.preventDefault()}setMin(i){var C;let o=i instanceof Date?(C=os(i!=null?i:null,!1))!=null?C:void 0:i;return this.min===o?this:(this.min=o,$r(this.eInput,"min",o),this)}setMax(i){var C;let o=i instanceof Date?(C=os(i!=null?i:null,!1))!=null?C:void 0:i;return this.max===o?this:(this.max=o,$r(this.eInput,"max",o),this)}setStep(i){return this.step===i?this:(this.step=i,$r(this.eInput,"step",i),this)}getDate(){var i;if(this.eInput.validity.valid)return(i=Jl(this.getValue()))!=null?i:void 0}setDate(i,o){this.setValue(os(i!=null?i:null,!1),o)}},A0={selector:"AG-INPUT-DATE-FIELD",component:BI},GI=1e3,ug=1e3,Fx=100,Bo,jm=!1,cd=class extends ei{constructor(i,o){super(),this.tooltipCtrl=i,this.getTooltipValue=o,this.interactionEnabled=!1,this.isInteractingWithTooltip=!1,this.state=0,this.tooltipInstanceCount=0,this.tooltipMouseTrack=!1}wireBeans(i){this.popupSvc=i.popupSvc,this.userCompFactory=i.userCompFactory}postConstruct(){this.gos.get("tooltipInteraction")&&(this.interactionEnabled=!0),this.tooltipTrigger=this.getTooltipTrigger(),this.tooltipMouseTrack=this.gos.get("tooltipMouseTrack");let i=this.tooltipCtrl.getGui();this.tooltipTrigger===0&&this.addManagedListeners(i,{mouseenter:this.onMouseEnter.bind(this),mouseleave:this.onMouseLeave.bind(this)}),this.tooltipTrigger===1&&this.addManagedListeners(i,{focusin:this.onFocusIn.bind(this),focusout:this.onFocusOut.bind(this)}),this.addManagedListeners(i,{mousemove:this.onMouseMove.bind(this)}),this.interactionEnabled||this.addManagedListeners(i,{mousedown:this.onMouseDown.bind(this),keydown:this.onKeyDown.bind(this)})}getGridOptionsTooltipDelay(i){let o=this.gos.get(i);return Math.max(200,o)}getTooltipDelay(i){var o,C,P,B,W,$;return i==="show"?(P=(C=(o=this.tooltipCtrl).getTooltipShowDelayOverride)==null?void 0:C.call(o))!=null?P:this.getGridOptionsTooltipDelay("tooltipShowDelay"):($=(W=(B=this.tooltipCtrl).getTooltipHideDelayOverride)==null?void 0:W.call(B))!=null?$:this.getGridOptionsTooltipDelay("tooltipHideDelay")}destroy(){this.setToDoNothing(),super.destroy()}getTooltipTrigger(){let i=this.gos.get("tooltipTrigger");return!i||i==="hover"?0:1}onMouseEnter(i){this.interactionEnabled&&this.interactiveTooltipTimeoutId&&(this.unlockService(),this.startHideTimeout()),!Tn()&&(jm?this.showTooltipTimeoutId=window.setTimeout(()=>{this.prepareToShowTooltip(i)},Fx):this.prepareToShowTooltip(i))}onMouseMove(i){this.lastMouseEvent&&(this.lastMouseEvent=i),this.tooltipMouseTrack&&this.state===2&&this.tooltipComp&&this.positionTooltip()}onMouseDown(){this.setToDoNothing()}onMouseLeave(){this.interactionEnabled?this.lockService():this.setToDoNothing()}onFocusIn(){this.prepareToShowTooltip()}onFocusOut(i){var B;let o=i.relatedTarget,C=this.tooltipCtrl.getGui(),P=(B=this.tooltipComp)==null?void 0:B.getGui();this.isInteractingWithTooltip||C.contains(o)||this.interactionEnabled&&(P!=null&&P.contains(o))||this.setToDoNothing()}onKeyDown(){this.isInteractingWithTooltip&&(this.isInteractingWithTooltip=!1),this.setToDoNothing()}prepareToShowTooltip(i){if(this.state!=0||jm)return;let o=0;i&&(o=this.isLastTooltipHiddenRecently()?200:this.getTooltipDelay("show")),this.lastMouseEvent=i||null,this.showTooltipTimeoutId=window.setTimeout(this.showTooltip.bind(this),o),this.state=1}isLastTooltipHiddenRecently(){return new Date().getTime()-Bo<GI}setToDoNothing(i){!i&&this.state===2&&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(){var $,ie,ue,De,_e,Be,Qe,st,Ct;let i=this.getTooltipValue(),o=this.tooltipCtrl;if(!Ai(i)||o.shouldDisplayTooltip&&!o.shouldDisplayTooltip()){this.setToDoNothing();return}let C=($=o.getRowNode)==null?void 0:$.call(o),P=pe({location:(ue=(ie=o.getLocation)==null?void 0:ie.call(o))!=null?ue:"UNKNOWN",colDef:(De=o.getColDef)==null?void 0:De.call(o),column:(_e=o.getColumn)==null?void 0:_e.call(o),rowIndex:(Be=o.getRowIndex)==null?void 0:Be.call(o),node:C,data:C==null?void 0:C.data,value:i,valueFormatted:(Qe=o.getValueFormatted)==null?void 0:Qe.call(o),hideTooltipCallback:()=>this.hideTooltip(!0)},(Ct=(st=o.getAdditionalParams)==null?void 0:st.call(o))!=null?Ct:{});this.state=2,this.tooltipInstanceCount++;let B=this.newTooltipComponentCallback.bind(this,this.tooltipInstanceCount),W=lv(this.userCompFactory,P);W==null||W.newAgStackInstance().then(B)}hideTooltip(i){!i&&this.isInteractingWithTooltip||(this.tooltipComp&&(this.destroyTooltipComp(),Bo=new Date().getTime()),this.eventSvc.dispatchEvent({type:"tooltipHide",parentGui:this.tooltipCtrl.getGui()}),i&&(this.isInteractingWithTooltip=!1),this.setToDoNothing(!0))}newTooltipComponentCallback(i,o){var $;if(this.state!==2||this.tooltipInstanceCount!==i){this.destroyBean(o);return}let P=o.getGui();this.tooltipComp=o,P.classList.contains("ag-tooltip")||P.classList.add("ag-tooltip-custom"),this.tooltipTrigger===0&&P.classList.add("ag-tooltip-animate"),this.interactionEnabled&&P.classList.add("ag-tooltip-interactive");let B=this.getLocaleTextFunc(),W=($=this.popupSvc)==null?void 0:$.addPopup({eChild:P,ariaLabel:B("ariaLabelTooltip","Tooltip")});if(W&&(this.tooltipPopupDestroyFunc=W.hideFunc),this.positionTooltip(),this.tooltipTrigger===1){let ie=()=>this.setToDoNothing();[this.onBodyScrollEventCallback,this.onColumnMovedEventCallback]=this.addManagedEventListeners({bodyScroll:ie,columnMoved:ie})}this.interactionEnabled&&([this.tooltipMouseEnterListener,this.tooltipMouseLeaveListener]=this.addManagedElementListeners(P,{mouseenter:this.onTooltipMouseEnter.bind(this),mouseleave:this.onTooltipMouseLeave.bind(this)}),[this.onDocumentKeyDownCallback]=this.addManagedElementListeners(Ao(this.beans),{keydown:ie=>{P.contains(ie==null?void 0:ie.target)||this.onKeyDown()}}),this.tooltipTrigger===1&&([this.tooltipFocusInListener,this.tooltipFocusOutListener]=this.addManagedElementListeners(P,{focusin:this.onTooltipFocusIn.bind(this),focusout:this.onTooltipFocusOut.bind(this)}))),this.eventSvc.dispatchEvent({type:"tooltipShow",tooltipGui:P,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(){var C;let i=(C=this.tooltipComp)==null?void 0:C.getGui(),o=Fa(this.beans);return!!i&&i.contains(o)}onTooltipFocusOut(i){let o=this.tooltipCtrl.getGui();this.isTooltipFocused()||(this.isInteractingWithTooltip=!1,o.contains(i.relatedTarget)?this.startHideTimeout():this.hideTooltip())}positionTooltip(){var o,C;let i={type:"tooltip",ePopup:this.tooltipComp.getGui(),nudgeY:18,skipObserver:this.tooltipMouseTrack};this.lastMouseEvent?(o=this.popupSvc)==null||o.positionPopupUnderMouseEvent(et(pe({},i),{mouseEvent:this.lastMouseEvent})):(C=this.popupSvc)==null||C.positionPopupByComponent(et(pe({},i),{eventSource:this.tooltipCtrl.getGui(),position:"under",keepWithinBounds:!0,nudgeY:5}))}destroyTooltipComp(){this.tooltipComp.getGui().classList.add("ag-tooltip-hiding");let i=this.tooltipPopupDestroyFunc,o=this.tooltipComp,C=this.tooltipTrigger===0?ug:0;window.setTimeout(()=>{i(),this.destroyBean(o)},C),this.clearTooltipListeners(),this.tooltipPopupDestroyFunc=void 0,this.tooltipComp=void 0}clearTooltipListeners(){[this.tooltipMouseEnterListener,this.tooltipMouseLeaveListener,this.tooltipFocusInListener,this.tooltipFocusOutListener].forEach(i=>{i&&i()}),this.tooltipMouseEnterListener=this.tooltipMouseLeaveListener=this.tooltipFocusInListener=this.tooltipFocusOutListener=null}lockService(){jm=!0,this.interactiveTooltipTimeoutId=window.setTimeout(()=>{this.unlockService(),this.setToDoNothing()},Fx)}unlockService(){jm=!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 rs(i){return i.get("tooltipShowMode")==="whenTruncated"}function or(i,o){return rs(i)?Vm(o):void 0}function Vm(i){return()=>{let o=i();return o?o.scrollWidth>o.clientWidth:!0}}var Du=class extends ei{constructor(i,o){super(),this.ctrl=i,o&&(this.beans=o)}postConstruct(){this.refreshTooltip()}setBrowserTooltip(i){let o="title",C=this.ctrl.getGui();C&&(i!=null&&i!=""?C.setAttribute(o,i):C.removeAttribute(o))}updateTooltipText(){let{getTooltipValue:i}=this.ctrl;i&&(this.tooltip=i())}createTooltipFeatureIfNeeded(){this.tooltipManager==null&&(this.tooltipManager=this.createBean(new cd(this.ctrl,()=>this.tooltip),this.beans.context))}setTooltipAndRefresh(i){this.tooltip=i,this.refreshTooltip()}refreshTooltip(){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(null),this.createTooltipFeatureIfNeeded())}destroy(){this.tooltipManager=this.destroyBean(this.tooltipManager,this.beans.context),super.destroy()}},Pc=class extends On{constructor(i="default",o=!1){super(`<div class="ag-list ag-${i}-list" role="listbox"></div>`),this.cssIdentifier=i,this.unFocusable=o,this.activeClass="ag-active-item",this.options=[],this.itemEls=[]}postConstruct(){let i=this.getGui();this.addManagedElementListeners(i,{mouseleave:()=>this.clearHighlighted()}),!this.unFocusable&&this.addManagedElementListeners(i,{keydown:this.handleKeyDown.bind(this)})}handleKeyDown(i){let o=i.key;switch(o){case Qt.ENTER:if(!this.highlightedEl)this.setValue(this.getValue());else{let C=this.itemEls.indexOf(this.highlightedEl);this.setValueByIndex(C)}break;case Qt.DOWN:case Qt.UP:i.preventDefault(),this.navigate(o);break;case Qt.PAGE_DOWN:case Qt.PAGE_UP:case Qt.PAGE_HOME:case Qt.PAGE_END:i.preventDefault(),this.navigateToPage(o);break}}navigate(i){let o=i===Qt.DOWN,C,{itemEls:P,highlightedEl:B}=this;if(!B)C=P[o?0:P.length-1];else{let $=P.indexOf(B)+(o?1:-1);$=Math.min(Math.max($,0),P.length-1),C=P[$]}this.highlightItem(C)}navigateToPage(i){let{itemEls:o,highlightedEl:C}=this;if(!C||o.length===0)return;let P=o.indexOf(C),B=this.options.length-1,W=o[0].clientHeight,$=Math.floor(this.getGui().clientHeight/W),ie=-1;i===Qt.PAGE_HOME?ie=0:i===Qt.PAGE_END?ie=B:i===Qt.PAGE_DOWN?ie=Math.min(P+$,B):i===Qt.PAGE_UP&&(ie=Math.max(P-$,0)),ie!==-1&&this.highlightItem(o[ie])}addOptions(i){return i.forEach(o=>this.addOption(o)),this}addOption(i){let{value:o,text:C}=i,P=C||o;return this.options.push({value:o,text:P}),this.renderOption(o,P),this.updateIndices(),this}clearOptions(){this.options=[],this.reset(!0),this.itemEls.forEach(i=>{pt(i)}),this.itemEls=[]}updateIndices(){let i=this.getGui().querySelectorAll(".ag-list-item");i.forEach((o,C)=>{Te(o,C+1),xe(o,i.length)})}renderOption(i,o){let C=Ao(this.beans),P=C.createElement("div");k(P,"option"),P.classList.add("ag-list-item",`ag-${this.cssIdentifier}-list-item`);let B=C.createElement("span");P.appendChild(B),B.textContent=o,this.unFocusable||(P.tabIndex=-1),this.itemEls.push(P),this.addManagedListeners(P,{mouseover:()=>this.highlightItem(P),mousedown:W=>{W.preventDefault(),W.stopPropagation(),this.setValue(i)}}),this.createOptionalManagedBean(this.beans.registry.createDynamicBean("tooltipFeature",!1,{getTooltipValue:()=>o,getGui:()=>P,getLocation:()=>"UNKNOWN",shouldDisplayTooltip:()=>B.scrollWidth>B.clientWidth})),this.getGui().appendChild(P)}setValue(i,o){if(this.value===i)return this.fireItemSelected(),this;if(i==null)return this.reset(o),this;let C=this.options.findIndex(P=>P.value===i);if(C!==-1){let P=this.options[C];this.value=P.value,this.displayValue=P.text,this.highlightItem(this.itemEls[C]),o||this.fireChangeEvent()}return this}setValueByIndex(i){return this.setValue(this.options[i].value)}getValue(){return this.value}getDisplayValue(){return this.displayValue}refreshHighlighted(){this.clearHighlighted();let i=this.options.findIndex(o=>o.value===this.value);i!==-1&&this.highlightItem(this.itemEls[i])}reset(i){this.value=null,this.displayValue=null,this.clearHighlighted(),i||this.fireChangeEvent()}highlightItem(i){if(!ht(i))return;this.clearHighlighted(),this.highlightedEl=i,i.classList.add(this.activeClass),at(i,!0);let o=this.getGui(),{scrollTop:C,clientHeight:P}=o,{offsetTop:B,offsetHeight:W}=i;(B+W>C+P||B<C)&&i.scrollIntoView({block:"nearest"}),this.unFocusable||i.focus()}clearHighlighted(){let i=this.highlightedEl;!i||!ht(i)||(i.classList.remove(this.activeClass),at(i,!1),this.highlightedEl=null)}fireChangeEvent(){this.dispatchLocalEvent({type:"fieldValueChanged"}),this.fireItemSelected()}fireItemSelected(){this.dispatchLocalEvent({type:"selectedItem"})}},dD=".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-background-color);border:var(--ag-input-border);border-radius:5px;min-height:max(var(--ag-list-item-height),calc(var(--ag-spacing)*4));overflow:hidden;&:disabled{opacity:.5}&.ag-picker-has-focus,&:focus-within{border:var(--ag-input-focus-border);box-shadow:var(--ag-focus-shadow)}}.ag-picker-field-button{background-color:var(--ag-background-color)}",uD=class extends lD{constructor(i){if(super(i,(i==null?void 0:i.template)||`
            <div class="ag-picker-field" role="presentation">
                <div data-ref="eLabel"></div>
                <div data-ref="eWrapper" class="ag-wrapper ag-picker-field-wrapper ag-picker-collapsed">
                    <div data-ref="eDisplayField" class="ag-picker-field-display"></div>
                    <div data-ref="eIcon" class="ag-picker-field-icon" aria-hidden="true"></div>
                </div>
            </div>`,(i==null?void 0:i.agComponents)||[],i==null?void 0:i.className),this.isPickerDisplayed=!1,this.skipClick=!1,this.pickerGap=4,this.hideCurrentPicker=null,this.eLabel=Ri,this.eWrapper=Ri,this.eDisplayField=Ri,this.eIcon=Ri,this.registerCSS(dD),this.ariaRole=i==null?void 0:i.ariaRole,this.onPickerFocusIn=this.onPickerFocusIn.bind(this),this.onPickerFocusOut=this.onPickerFocusOut.bind(this),!i)return;let{pickerGap:o,maxPickerHeight:C,variableWidth:P,minPickerWidth:B,maxPickerWidth:W}=i;o!=null&&(this.pickerGap=o),this.variableWidth=!!P,C!=null&&this.setPickerMaxHeight(C),B!=null&&this.setPickerMinWidth(B),W!=null&&this.setPickerMaxWidth(W)}postConstruct(){super.postConstruct(),this.setupAria();let i=`ag-${this.getCompId()}-display`;this.eDisplayField.setAttribute("id",i);let o=this.getAriaElement();this.addManagedElementListeners(o,{keydown:this.onKeyDown.bind(this)}),this.addManagedElementListeners(this.eLabel,{mousedown:this.onLabelOrWrapperMouseDown.bind(this)}),this.addManagedElementListeners(this.eWrapper,{mousedown:this.onLabelOrWrapperMouseDown.bind(this)});let{pickerIcon:C,inputWidth:P}=this.config;if(C){let B=za(C,this.beans);B&&this.eIcon.appendChild(B)}P!=null&&this.setInputWidth(P)}setupAria(){let i=this.getAriaElement();i.setAttribute("tabindex",this.gos.get("tabIndex").toString()),ze(i,!1),this.ariaRole&&k(i,this.ariaRole)}onLabelOrWrapperMouseDown(i){if(i){let o=this.getFocusableElement();if(o!==this.eWrapper&&(i==null?void 0:i.target)===o)return;i.preventDefault(),this.getFocusableElement().focus()}if(this.skipClick){this.skipClick=!1;return}this.isDisabled()||(this.isPickerDisplayed?this.hidePicker():this.showPicker())}onKeyDown(i){switch(i.key){case Qt.UP:case Qt.DOWN:case Qt.ENTER:case Qt.SPACE:i.preventDefault(),this.onLabelOrWrapperMouseDown();break;case Qt.ESCAPE:this.isPickerDisplayed&&(i.preventDefault(),i.stopPropagation(),this.hideCurrentPicker&&this.hideCurrentPicker());break}}showPicker(){this.isPickerDisplayed=!0,this.pickerComponent||(this.pickerComponent=this.createPickerComponent());let i=this.pickerComponent.getGui();i.addEventListener("focusin",this.onPickerFocusIn),i.addEventListener("focusout",this.onPickerFocusOut),this.hideCurrentPicker=this.renderAndPositionPicker(),this.toggleExpandedStyles(!0)}renderAndPositionPicker(){let i=this.pickerComponent.getGui();this.gos.get("suppressScrollWhenPopupsAreOpen")||([this.destroyMouseWheelFunc]=this.addManagedEventListeners({bodyScroll:()=>{this.hidePicker()}}));let o=this.getLocaleTextFunc(),{config:{pickerAriaLabelKey:C,pickerAriaLabelValue:P,modalPicker:B=!0},maxPickerHeight:W,minPickerWidth:$,maxPickerWidth:ie,variableWidth:ue,beans:De,eWrapper:_e}=this,Be={modal:B,eChild:i,closeOnEsc:!0,closedCallback:()=>{let Ot=Ui(De);this.beforeHidePicker(),Ot&&this.isAlive()&&this.getFocusableElement().focus()},ariaLabel:o(C,P),anchorToElement:_e};i.style.position="absolute";let Qe=De.popupSvc,st=Qe.addPopup(Be);ue?($&&(i.style.minWidth=$),i.style.width=ko(nn(_e)),ie&&(i.style.maxWidth=ie)):an(i,ie!=null?ie:nn(_e));let Ct=W!=null?W:`${$n(Qe.getPopupParent())}px`;return i.style.setProperty("max-height",Ct),this.alignPickerToComponent(),st.hideFunc}alignPickerToComponent(){if(!this.pickerComponent)return;let{pickerGap:i,config:{pickerType:o},beans:{popupSvc:C,gos:P},eWrapper:B,pickerComponent:W}=this,$=P.get("enableRtl")?"right":"left";C.positionPopupByComponent({type:o,eventSource:B,ePopup:W.getGui(),position:"under",alignSide:$,keepWithinBounds:!0,nudgeY:i})}beforeHidePicker(){this.destroyMouseWheelFunc&&(this.destroyMouseWheelFunc(),this.destroyMouseWheelFunc=void 0),this.toggleExpandedStyles(!1);let i=this.pickerComponent.getGui();i.removeEventListener("focusin",this.onPickerFocusIn),i.removeEventListener("focusout",this.onPickerFocusOut),this.isPickerDisplayed=!1,this.pickerComponent=void 0,this.hideCurrentPicker=null}toggleExpandedStyles(i){if(!this.isAlive())return;let o=this.getAriaElement();ze(o,i);let C=this.eWrapper.classList;C.toggle("ag-picker-expanded",i),C.toggle("ag-picker-collapsed",!i)}onPickerFocusIn(){this.togglePickerHasFocus(!0)}onPickerFocusOut(i){var o;(o=this.pickerComponent)!=null&&o.getGui().contains(i.relatedTarget)||this.togglePickerHasFocus(!1)}togglePickerHasFocus(i){this.pickerComponent&&this.eWrapper.classList.toggle("ag-picker-has-focus",i)}hidePicker(){var i;(i=this.hideCurrentPicker)==null||i.call(this)}setInputWidth(i){return an(this.eWrapper,i),this}getFocusableElement(){return this.eWrapper}setPickerGap(i){return this.pickerGap=i,this}setPickerMinWidth(i){return typeof i=="number"&&(i=`${i}px`),this.minPickerWidth=i==null?void 0:i,this}setPickerMaxWidth(i){return typeof i=="number"&&(i=`${i}px`),this.maxPickerWidth=i==null?void 0:i,this}setPickerMaxHeight(i){return typeof i=="number"&&(i=`${i}px`),this.maxPickerHeight=i==null?void 0:i,this}destroy(){this.hidePicker(),super.destroy()}},VP=".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)}}",Nx=class extends uD{constructor(i){super(pe({pickerAriaLabelKey:"ariaLabelSelectField",pickerAriaLabelValue:"Select Field",pickerType:"ag-list",className:"ag-select",pickerIcon:"selectOpen",ariaRole:"combobox"},i)),this.registerCSS(VP)}postConstruct(){this.tooltipFeature=this.createOptionalManagedBean(this.beans.registry.createDynamicBean("tooltipFeature",!1,{shouldDisplayTooltip:Vm(()=>this.eDisplayField),getGui:()=>this.getGui()})),super.postConstruct(),this.createListComponent(),this.eWrapper.tabIndex=this.gos.get("tabIndex");let{options:i,value:o,placeholder:C}=this.config;i!=null&&this.addOptions(i),o!=null&&this.setValue(o,!0),C&&o==null&&(this.eDisplayField.textContent=C),this.addManagedElementListeners(this.eWrapper,{focusout:this.onWrapperFocusOut.bind(this)})}onWrapperFocusOut(i){this.eWrapper.contains(i.relatedTarget)||this.hidePicker()}createListComponent(){let i=this.createBean(new Pc("select",!0));this.listComponent=i,i.setParentComponent(this);let o=i.getAriaElement(),C=`ag-select-list-${i.getCompId()}`;o.setAttribute("id",C),Mt(this.getAriaElement(),o),i.addManagedListeners(i,{selectedItem:()=>{this.hidePicker(),this.dispatchLocalEvent({type:"selectedItem"})}}),i.addManagedListeners(i,{fieldValueChanged:()=>{this.listComponent&&(this.setValue(this.listComponent.getValue(),!1,!0),this.hidePicker())}})}createPickerComponent(){return this.listComponent}onKeyDown(i){var C;let{key:o}=i;switch(o===Qt.TAB&&this.hidePicker(),o){case Qt.ENTER:case Qt.UP:case Qt.DOWN:case Qt.PAGE_UP:case Qt.PAGE_DOWN:case Qt.PAGE_HOME:case Qt.PAGE_END:i.preventDefault(),this.isPickerDisplayed?(C=this.listComponent)==null||C.handleKeyDown(i):super.onKeyDown(i);break;case Qt.ESCAPE:super.onKeyDown(i);break;case Qt.SPACE:this.isPickerDisplayed?i.preventDefault():super.onKeyDown(i);break}}showPicker(){let i=this.listComponent;i&&(super.showPicker(),i.refreshHighlighted())}addOptions(i){return i.forEach(o=>this.addOption(o)),this}addOption(i){return this.listComponent.addOption(i),this}clearOptions(){var i;return(i=this.listComponent)==null||i.clearOptions(),this}setValue(i,o,C){let{listComponent:P,config:{placeholder:B},eDisplayField:W,tooltipFeature:$}=this;if(this.value===i||!P)return this;if(C||P.setValue(i,!0),P.getValue()===this.getValue())return this;let ue=P.getDisplayValue();return ue==null&&B&&(ue=B),W.textContent=ue,$==null||$.setTooltipAndRefresh(ue!=null?ue:null),super.setValue(i,o)}destroy(){this.listComponent=this.destroyBean(this.listComponent),super.destroy()}},hg={selector:"AG-SELECT",component:Nx},zx={TAB_GUARD:"ag-tab-guard",TAB_GUARD_TOP:"ag-tab-guard-top",TAB_GUARD_BOTTOM:"ag-tab-guard-bottom"},Cv=class extends ei{constructor(i){super(),this.skipTabGuardFocus=!1,this.forcingFocusOut=!1,this.allowFocus=!1;let{comp:o,eTopGuard:C,eBottomGuard:P,focusTrapActive:B,forceFocusOutWhenTabGuardsAreEmpty:W,isFocusableContainer:$,focusInnerElement:ie,onFocusIn:ue,onFocusOut:De,shouldStopEventPropagation:_e,onTabKeyDown:Be,handleKeyDown:Qe,eFocusableElement:st}=i;this.comp=o,this.eTopGuard=C,this.eBottomGuard=P,this.providedFocusInnerElement=ie,this.eFocusableElement=st,this.focusTrapActive=!!B,this.forceFocusOutWhenTabGuardsAreEmpty=!!W,this.isFocusableContainer=!!$,this.providedFocusIn=ue,this.providedFocusOut=De,this.providedShouldStopEventPropagation=_e,this.providedOnTabKeyDown=Be,this.providedHandleKeyDown=Qe}postConstruct(){this.createManagedBean(new Eh(this.eFocusableElement,{shouldStopEventPropagation:()=>this.shouldStopEventPropagation(),onTabKeyDown:i=>this.onTabKeyDown(i),handleKeyDown:i=>this.handleKeyDown(i),onFocusIn:i=>this.onFocusIn(i),onFocusOut:i=>this.onFocusOut(i)})),this.activateTabGuards(),[this.eTopGuard,this.eBottomGuard].forEach(i=>this.addManagedElementListeners(i,{focus:this.onFocus.bind(this)}))}handleKeyDown(i){this.providedHandleKeyDown&&this.providedHandleKeyDown(i)}tabGuardsAreActive(){return!!this.eTopGuard&&this.eTopGuard.hasAttribute("tabIndex")}shouldStopEventPropagation(){return this.providedShouldStopEventPropagation?this.providedShouldStopEventPropagation():!1}activateTabGuards(){if(this.forcingFocusOut)return;let i=this.gos.get("tabIndex");this.comp.setTabIndex(i.toString())}deactivateTabGuards(){this.comp.setTabIndex()}onFocus(i){if(this.isFocusableContainer&&!this.eFocusableElement.contains(i.relatedTarget)&&!this.allowFocus){this.findNextElementOutsideAndFocus(i.target===this.eBottomGuard);return}if(this.skipTabGuardFocus){this.skipTabGuardFocus=!1;return}if(this.forceFocusOutWhenTabGuardsAreEmpty&&sg(this.eFocusableElement,".ag-tab-guard").length===0){this.findNextElementOutsideAndFocus(i.target===this.eBottomGuard);return}if(this.isFocusableContainer&&this.eFocusableElement.contains(i.relatedTarget))return;let o=i.target===this.eBottomGuard;this.providedFocusInnerElement?this.providedFocusInnerElement(o):this.focusInnerElement(o)}findNextElementOutsideAndFocus(i){var ue;let o=Ao(this.beans),C=sg(o.body,null,!0),P=C.indexOf(i?this.eTopGuard:this.eBottomGuard);if(P===-1)return;let B,W;i?(B=0,W=P):(B=P+1,W=C.length);let $=C.slice(B,W),ie=this.gos.get("tabIndex");$.sort((De,_e)=>{let Be=parseInt(De.getAttribute("tabindex")||"0"),Qe=parseInt(_e.getAttribute("tabindex")||"0");return Qe===ie?1:Be===ie?-1:Be===0?1:Qe===0?-1:Be-Qe}),(ue=$[i?$.length-1:0])==null||ue.focus()}onFocusIn(i){this.focusTrapActive||this.forcingFocusOut||(this.providedFocusIn&&this.providedFocusIn(i),this.isFocusableContainer||this.deactivateTabGuards())}onFocusOut(i){this.focusTrapActive||(this.providedFocusOut&&this.providedFocusOut(i),this.eFocusableElement.contains(i.relatedTarget)||this.activateTabGuards())}onTabKeyDown(i){if(this.providedOnTabKeyDown){this.providedOnTabKeyDown(i);return}if(this.focusTrapActive||i.defaultPrevented)return;let o=this.tabGuardsAreActive();o&&this.deactivateTabGuards();let C=this.getNextFocusableElement(i.shiftKey);o&&setTimeout(()=>this.activateTabGuards(),0),C&&(C.focus(),i.preventDefault())}focusInnerElement(i=!1){let o=sg(this.eFocusableElement);this.tabGuardsAreActive()&&(o.splice(0,1),o.splice(o.length-1,1)),o.length&&o[i?o.length-1:0].focus({preventScroll:!0})}getNextFocusableElement(i){return mi(this.beans,this.eFocusableElement,!1,i)}forceFocusOutOfContainer(i=!1){if(this.forcingFocusOut)return;let o=i?this.eTopGuard:this.eBottomGuard;this.activateTabGuards(),this.skipTabGuardFocus=!0,this.forcingFocusOut=!0,o.focus(),window.setTimeout(()=>{this.forcingFocusOut=!1,this.activateTabGuards()})}isTabGuard(i,o){return i===this.eTopGuard&&!o||i===this.eBottomGuard&&(o!=null?o:!0)}setAllowFocus(i){this.allowFocus=i}},hD=class extends ei{constructor(i){super(),this.comp=i}initialiseTabGuard(i){this.eTopGuard=this.createTabGuard("top"),this.eBottomGuard=this.createTabGuard("bottom"),this.eFocusableElement=this.comp.getFocusableElement();let{eTopGuard:o,eBottomGuard:C,eFocusableElement:P}=this,B=[o,C],W={setTabIndex:Ot=>{B.forEach(Pt=>Ot!=null?Pt.setAttribute("tabindex",Ot):Pt.removeAttribute("tabindex"))}};this.addTabGuards(o,C);let{focusTrapActive:$=!1,onFocusIn:ie,onFocusOut:ue,focusInnerElement:De,handleKeyDown:_e,onTabKeyDown:Be,shouldStopEventPropagation:Qe,forceFocusOutWhenTabGuardsAreEmpty:st,isFocusableContainer:Ct}=i;this.tabGuardCtrl=this.createManagedBean(new Cv({comp:W,focusTrapActive:$,eTopGuard:o,eBottomGuard:C,eFocusableElement:P,onFocusIn:ie,onFocusOut:ue,focusInnerElement:De,handleKeyDown:_e,onTabKeyDown:Be,shouldStopEventPropagation:Qe,forceFocusOutWhenTabGuardsAreEmpty:st,isFocusableContainer:Ct}))}getTabGuardCtrl(){return this.tabGuardCtrl}createTabGuard(i){let o=Ao(this.beans).createElement("div"),C=i==="top"?zx.TAB_GUARD_TOP:zx.TAB_GUARD_BOTTOM;return o.classList.add(zx.TAB_GUARD,C),k(o,"presentation"),o}addTabGuards(i,o){let C=this.eFocusableElement;C.insertAdjacentElement("afterbegin",i),C.insertAdjacentElement("beforeend",o)}removeAllChildrenExceptTabGuards(){let i=[this.eTopGuard,this.eBottomGuard];Ke(this.comp.getFocusableElement()),this.addTabGuards(...i)}forceFocusOutOfContainer(i=!1){this.tabGuardCtrl.forceFocusOutOfContainer(i)}appendChild(i,o,C){xc(o)||(o=o.getGui());let{eBottomGuard:P}=this;P?P.insertAdjacentElement("beforebegin",o):i(o,C)}},Bx=class extends On{initialiseTabGuard(i){this.tabGuardFeature=this.createManagedBean(new hD(this)),this.tabGuardFeature.initialiseTabGuard(i)}forceFocusOutOfContainer(i=!1){this.tabGuardFeature.forceFocusOutOfContainer(i)}appendChild(i,o){this.tabGuardFeature.appendChild(super.appendChild.bind(this),i,o)}},Sv=class extends On{isPopup(){return!0}setParentComponent(i){i.addCssClass("ag-has-popup"),super.setParentComponent(i)}destroy(){let i=this.parentComponent;i&&i.isAlive()&&i.getGui().classList.remove("ag-has-popup"),super.destroy()}},qs=class{constructor(i,o=!1){this.DOUBLE_TAP_MILLIS=500,this.destroyFuncs=[],this.touching=!1,this.localEventService=new s,this.preventMouseClick=o;let C=this.onTouchStart.bind(this),P=this.onTouchMove.bind(this),B=this.onTouchEnd.bind(this);i.addEventListener("touchstart",C,{passive:!0}),i.addEventListener("touchmove",P,{passive:!0}),i.addEventListener("touchend",B,{passive:!1}),this.destroyFuncs.push(()=>{i.removeEventListener("touchstart",C,{passive:!0}),i.removeEventListener("touchmove",P,{passive:!0}),i.removeEventListener("touchend",B,{passive:!1})})}getActiveTouch(i){for(let o=0;o<i.length;o++)if(i[o].identifier===this.touchStart.identifier)return i[o];return null}addEventListener(i,o){this.localEventService.addEventListener(i,o)}removeEventListener(i,o){this.localEventService.removeEventListener(i,o)}onTouchStart(i){if(this.touching)return;this.touchStart=i.touches[0],this.touching=!0,this.moved=!1;let o=this.touchStart;window.setTimeout(()=>{let C=this.touchStart===o;if(this.touching&&C&&!this.moved){this.moved=!0;let P={type:"longTap",touchStart:this.touchStart,touchEvent:i};this.localEventService.dispatchEvent(P)}},500)}onTouchMove(i){if(!this.touching)return;let o=this.getActiveTouch(i.touches);if(!o)return;!p0(o,this.touchStart,4)&&(this.moved=!0)}onTouchEnd(i){if(this.touching){if(!this.moved){let o={type:"tap",touchStart:this.touchStart};this.localEventService.dispatchEvent(o),this.checkForDoubleTap()}this.preventMouseClick&&i.cancelable&&i.preventDefault(),this.touching=!1}}checkForDoubleTap(){let i=new Date().getTime();if(this.lastTapTime&&this.lastTapTime>0)if(i-this.lastTapTime>this.DOUBLE_TAP_MILLIS){let C={type:"doubleTap",touchStart:this.touchStart};this.localEventService.dispatchEvent(C),this.lastTapTime=null}else this.lastTapTime=i;else this.lastTapTime=i}destroy(){this.destroyFuncs.forEach(i=>i())}},D0=(i=>(i[i.VALUE=0]="VALUE",i[i.DIMENSION=1]="DIMENSION",i))(D0||{}),E0=class{constructor(i="javascript"){this.frameworkName=i,this.renderingEngine="vanilla",this.wrapIncoming=o=>o(),this.wrapOutgoing=o=>o(),this.baseDocLink=`${Jh}/${this.frameworkName}-data-grid`,Pi(this.baseDocLink)}setInterval(i,o){return new js(C=>{C(window.setInterval(i,o))})}addEventListener(i,o,C,P){let B={};if(typeof P=="object"?B=P:typeof P=="boolean"&&(B={capture:P}),B.passive==null){let W=Ia(o);W!=null&&(B.passive=W)}i.addEventListener(o,C,B)}frameworkComponent(i){return null}isFrameworkComponent(i){return!1}getDocLink(i){return`${this.baseDocLink}${i?`/${i}`:""}`}};function jI(i){return{beanName:"gridApi",bean:i.getBean("apiFunctionSvc").api}}var I0=["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","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"],Rh=Object.fromEntries(I0.map((i,o)=>[i,o]));function gg(i,o){var B,W;let C=(B=i.beanName?Rh[i.beanName]:void 0)!=null?B:Number.MAX_SAFE_INTEGER,P=(W=o.beanName?Rh[o.beanName]:void 0)!=null?W:Number.MAX_SAFE_INTEGER;return C-P}function gD(i,o){return(i==null?void 0:i.beanName)==="gridDestroySvc"?-1:0}var Sl='<div class="ag-pinned-left-header" role="rowgroup"></div>',HP='<div class="ag-pinned-right-header" role="rowgroup"></div>',T0=`<div class="ag-header-viewport" role="presentation">
        <div class="ag-header-container" data-ref="eCenterContainer" role="rowgroup"></div>
    </div>`,pg=class extends On{constructor(i){super(),this.eCenterContainer=Ri,this.headerRowComps={},this.rowCompsList=[],this.pinned=i}postConstruct(){this.selectAndSetTemplate();let i={setDisplayed:C=>this.setDisplayed(C),setCtrls:C=>this.setCtrls(C),setCenterWidth:C=>this.eCenterContainer.style.width=C,setViewportScrollLeft:C=>this.getGui().scrollLeft=C,setPinnedContainerWidth:C=>{let P=this.getGui();P.style.width=C,P.style.maxWidth=C,P.style.minWidth=C}};this.createManagedBean(new Vr(this.pinned)).setComp(i,this.getGui())}selectAndSetTemplate(){let i=this.pinned=="left",o=this.pinned=="right",C=i?Sl:o?HP:T0;this.setTemplate(C),this.eRowContainer=this.eCenterContainer!==Ri?this.eCenterContainer:this.getGui()}destroy(){this.setCtrls([]),super.destroy()}destroyRowComp(i){this.destroyBean(i),this.eRowContainer.removeChild(i.getGui())}setCtrls(i){let o=this.headerRowComps;this.headerRowComps={},this.rowCompsList=[];let C,P=B=>{let W=B.getGui();W.parentElement!=this.eRowContainer&&this.eRowContainer.appendChild(W),C&&_t(this.eRowContainer,W,C),C=W};i.forEach(B=>{let W=B.instanceId,$=o[W];delete o[W];let ie=$||this.createBean(new yp(B));this.headerRowComps[W]=ie,this.rowCompsList.push(ie),P(ie)}),Object.values(o).forEach(B=>this.destroyRowComp(B))}},R0=class extends On{constructor(){super('<div class="ag-header" role="presentation"/>')}postConstruct(){let i={addOrRemoveCssClass:(P,B)=>this.addOrRemoveCssClass(P,B),setHeightAndMinHeight:P=>{this.getGui().style.height=P,this.getGui().style.minHeight=P}};this.createManagedBean(new ku).setComp(i,this.getGui(),this.getFocusableElement());let C=P=>{this.createManagedBean(P),this.appendChild(P)};C(new pg("left")),C(new pg(null)),C(new pg("right"))}},Gx={selector:"AG-HEADER-ROOT",component:R0},P0=class extends On{constructor(i,o,C,P,B){super(),this.cellCtrl=o,this.rendererVersion=0,this.editorVersion=0,this.beans=i,this.column=o.column,this.rowNode=o.rowNode,this.eRow=P;let W=document.createElement("div");W.setAttribute("comp-id",`${this.getCompId()}`),this.setTemplateFromElement(W);let $=this.getGui();this.forceWrapper=o.isForceWrapper(),this.refreshWrapper(!1),k($,o.getCellAriaRole()),$.setAttribute("col-id",o.colIdSanitised);let ie={addOrRemoveCssClass:(ue,De)=>this.addOrRemoveCssClass(ue,De),setUserStyles:ue=>Ti($,ue),getFocusableElement:()=>this.getFocusableElement(),setIncludeSelection:ue=>this.includeSelection=ue,setIncludeRowDrag:ue=>this.includeRowDrag=ue,setIncludeDndSource:ue=>this.includeDndSource=ue,setRenderDetails:(ue,De,_e)=>this.setRenderDetails(ue,De,_e),setEditDetails:(ue,De,_e)=>this.setEditDetails(ue,De,_e),getCellEditor:()=>this.cellEditor||null,getCellRenderer:()=>this.cellRenderer||null,getParentOfValue:()=>this.getParentOfValue()};o.setComp(ie,this.getGui(),this.eCellWrapper,C,B,void 0)}getParentOfValue(){return this.eCellValue?this.eCellValue:this.eCellWrapper?this.eCellWrapper:this.getGui()}setRenderDetails(i,o,C){if(this.cellEditor&&!this.cellEditorPopupWrapper)return;this.firstRender=this.firstRender==null;let B=this.refreshWrapper(!1);this.refreshEditStyles(!1),i?!(C||B)&&this.refreshCellRenderer(i)||(this.destroyRenderer(),this.createCellRendererInstance(i)):(this.destroyRenderer(),this.insertValueWithoutCellRenderer(o))}setEditDetails(i,o,C){i?this.createCellEditorInstance(i,o,C):this.destroyEditor()}removeControls(){this.checkboxSelectionComp=this.beans.context.destroyBean(this.checkboxSelectionComp),this.dndSourceComp=this.beans.context.destroyBean(this.dndSourceComp),this.rowDraggingComp=this.beans.context.destroyBean(this.rowDraggingComp)}refreshWrapper(i){let o=this.includeRowDrag||this.includeDndSource||this.includeSelection,C=o||this.forceWrapper,P=C&&this.eCellWrapper==null;if(P){let De=document.createElement("div");De.setAttribute("role","presentation"),De.setAttribute("class","ag-cell-wrapper"),this.eCellWrapper=De,this.getGui().appendChild(this.eCellWrapper)}let B=!C&&this.eCellWrapper!=null;B&&(pt(this.eCellWrapper),this.eCellWrapper=void 0),this.addOrRemoveCssClass("ag-cell-value",!C);let W=!i&&C,$=W&&this.eCellValue==null;if($){let De=document.createElement("span");De.setAttribute("role","presentation"),De.setAttribute("class","ag-cell-value"),this.eCellValue=De,this.eCellWrapper.appendChild(this.eCellValue)}let ie=!W&&this.eCellValue!=null;ie&&(pt(this.eCellValue),this.eCellValue=void 0);let ue=P||B||$||ie;return ue&&this.removeControls(),i||o&&this.addControls(),ue}addControls(){this.includeRowDrag&&this.rowDraggingComp==null&&(this.rowDraggingComp=this.cellCtrl.createRowDragComp(),this.rowDraggingComp&&this.eCellWrapper.insertBefore(this.rowDraggingComp.getGui(),this.eCellValue)),this.includeDndSource&&this.dndSourceComp==null&&(this.dndSourceComp=this.cellCtrl.createDndSource(),this.dndSourceComp&&this.eCellWrapper.insertBefore(this.dndSourceComp.getGui(),this.eCellValue)),this.includeSelection&&this.checkboxSelectionComp==null&&(this.checkboxSelectionComp=this.cellCtrl.createSelectionCheckbox(),this.checkboxSelectionComp&&this.eCellWrapper.insertBefore(this.checkboxSelectionComp.getGui(),this.eCellValue))}createCellEditorInstance(i,o,C){let P=this.editorVersion,B=i.newAgStackInstance(),{params:W}=i;B.then(ie=>this.afterCellEditorCreated(P,ie,W,o,C)),Qn(this.cellEditor)&&W.cellStartedEdit&&this.cellCtrl.focusCell(!0)}insertValueWithoutCellRenderer(i){let o=this.getParentOfValue();Ke(o);let C=i!=null?ql(i,!0):null;C!=null&&(o.textContent=C)}destroyEditorAndRenderer(){this.destroyRenderer(),this.destroyEditor()}destroyRenderer(){let{context:i}=this.beans;this.cellRenderer=i.destroyBean(this.cellRenderer),pt(this.cellRendererGui),this.cellRendererGui=null,this.rendererVersion++}destroyEditor(){let{context:i}=this.beans;this.hideEditorPopup&&this.hideEditorPopup(),this.hideEditorPopup=void 0,this.cellEditor=i.destroyBean(this.cellEditor),this.cellEditorPopupWrapper=i.destroyBean(this.cellEditorPopupWrapper),pt(this.cellEditorGui),this.cellEditorGui=null,this.editorVersion++}refreshCellRenderer(i){if(this.cellRenderer==null||this.cellRenderer.refresh==null||this.cellRendererClass!==i.componentClass)return!1;let o=this.cellRenderer.refresh(i.params);return o===!0||o===void 0}createCellRendererInstance(i){let C=!this.beans.gos.get("suppressAnimationFrame")&&this.beans.animationFrameSvc,P=this.rendererVersion,{componentClass:B}=i,W=()=>{if(this.rendererVersion!==P||!this.isAlive())return;let ie=i.newAgStackInstance(),ue=this.afterCellRendererCreated.bind(this,P,B);ie&&ie.then(ue)};C&&this.firstRender?this.beans.animationFrameSvc.createTask(W,this.rowNode.rowIndex,"createTasksP2"):W()}afterCellRendererCreated(i,o,C){if(!this.isAlive()||i!==this.rendererVersion){this.beans.context.destroyBean(C);return}if(this.cellRenderer=C,this.cellRendererClass=o,this.cellRendererGui=this.cellRenderer.getGui(),this.cellRendererGui!=null){let B=this.getParentOfValue();Ke(B),B.appendChild(this.cellRendererGui)}}afterCellEditorCreated(i,o,C,P,B){if(i!==this.editorVersion){this.beans.context.destroyBean(o);return}if(o.isCancelBeforeStart&&o.isCancelBeforeStart()){this.beans.context.destroyBean(o),this.cellCtrl.stopEditing(!0);return}if(!o.getGui){pi(97,{colId:this.column.getId()}),this.beans.context.destroyBean(o);return}this.cellEditor=o,this.cellEditorGui=o.getGui();let ie=P||o.isPopup!==void 0&&o.isPopup();ie?this.addPopupCellEditor(C,B):this.addInCellEditor(),this.refreshEditStyles(!0,ie),o.afterGuiAttached&&o.afterGuiAttached(),this.cellCtrl.cellEditorAttached()}refreshEditStyles(i,o){this.addOrRemoveCssClass("ag-cell-inline-editing",i&&!o),this.addOrRemoveCssClass("ag-cell-popup-editing",i&&!!o),this.addOrRemoveCssClass("ag-cell-not-inline-editing",!i||!!o),this.cellCtrl.setInlineEditingCss()}addInCellEditor(){let i=this.getGui();i.contains(Fa(this.beans))&&i.focus(),this.destroyRenderer(),this.refreshWrapper(!0),this.clearParentOfValue(),this.cellEditorGui&&this.getParentOfValue().appendChild(this.cellEditorGui)}addPopupCellEditor(i,o){var Qe,st;this.beans.gos.get("editType")==="fullRow"&&pi(98);let C=this.cellEditor;this.cellEditorPopupWrapper=this.beans.context.createBean(this.beans.editSvc.createPopupEditorWrapper(i));let P=this.cellEditorPopupWrapper.getGui();this.cellEditorGui&&P.appendChild(this.cellEditorGui);let B=this.beans.popupSvc,W=this.beans.gos.get("stopEditingWhenCellsLoseFocus"),$=o!=null?o:(st=(Qe=C.getPopupPosition)==null?void 0:Qe.call(C))!=null?st:"over",ie=this.beans.gos.get("enableRtl"),ue={ePopup:P,column:this.column,rowNode:this.rowNode,type:"popupCellEditor",eventSource:this.getGui(),position:$,alignSide:ie?"right":"left",keepWithinBounds:!0},De=B.positionPopupByComponent.bind(B,ue),_e=d(this.beans.localeSvc),Be=B.addPopup({modal:W,eChild:P,closeOnEsc:!0,closedCallback:()=>{this.cellCtrl.onPopupEditorClosed()},anchorToElement:this.getGui(),positionCallback:De,ariaLabel:_e("ariaLabelCellEditor","Cell Editor")});Be&&(this.hideEditorPopup=Be.hideFunc)}detach(){this.eRow.removeChild(this.getGui())}destroy(){this.cellCtrl.stopEditing(),this.destroyEditorAndRenderer(),this.removeControls(),super.destroy()}clearParentOfValue(){let i=this.getGui();i.contains(Fa(this.beans))&&i.focus({preventScroll:!0}),Ke(this.getParentOfValue())}},Lc=class extends On{constructor(i,o,C){super(),this.cellComps={},this.beans=o,this.rowCtrl=i;let P=document.createElement("div");P.setAttribute("comp-id",`${this.getCompId()}`),P.setAttribute("style",this.getInitialStyle(C)),this.setTemplateFromElement(P);let B=this.getGui(),W=B.style;this.domOrder=this.rowCtrl.getDomOrder(),k(B,"row");let $={setDomOrder:ie=>this.domOrder=ie,setCellCtrls:ie=>this.setCellCtrls(ie),showFullWidth:ie=>this.showFullWidth(ie),getFullWidthCellRenderer:()=>this.fullWidthCellRenderer,addOrRemoveCssClass:(ie,ue)=>this.addOrRemoveCssClass(ie,ue),setUserStyles:ie=>Ti(B,ie),setTop:ie=>W.top=ie,setTransform:ie=>W.transform=ie,setRowIndex:ie=>B.setAttribute("row-index",ie),setRowId:ie=>B.setAttribute("row-id",ie),setRowBusinessKey:ie=>B.setAttribute("row-business-key",ie),refreshFullWidth:ie=>{var ue,De,_e;return(_e=(De=(ue=this.fullWidthCellRenderer)==null?void 0:ue.refresh)==null?void 0:De.call(ue,ie()))!=null?_e:!1}};i.setComp($,this.getGui(),C,void 0),this.addDestroyFunc(()=>{i.unsetComp(C)})}getInitialStyle(i){let o=this.rowCtrl.getInitialTransform(i);return o?`transform: ${o}`:`top: ${this.rowCtrl.getInitialRowTop(i)}`}showFullWidth(i){let o=P=>{if(this.isAlive()){let B=P.getGui();this.getGui().appendChild(B),this.rowCtrl.setupDetailRowAutoHeight(B),this.setFullWidthRowComp(P)}else this.beans.context.destroyBean(P)};i.newAgStackInstance().then(o)}setCellCtrls(i){let o=Object.assign({},this.cellComps);i.forEach(P=>{let B=P.instanceId;this.cellComps[B]==null?this.newCellComp(P):o[B]=null});let C=Object.values(o).filter(P=>P!=null);this.destroyCells(C),this.ensureDomOrder(i)}ensureDomOrder(i){if(!this.domOrder)return;let o=[];i.forEach(C=>{let P=this.cellComps[C.instanceId];P&&o.push(P.getGui())}),ni(this.getGui(),o)}newCellComp(i){let o=new P0(this.beans,i,this.rowCtrl.printLayout,this.getGui(),this.rowCtrl.editing);this.cellComps[i.instanceId]=o,this.getGui().appendChild(o.getGui())}destroy(){super.destroy(),this.destroyAllCells()}destroyAllCells(){let i=Object.values(this.cellComps).filter(o=>o!=null);this.destroyCells(i)}setFullWidthRowComp(i){this.fullWidthCellRenderer=i,this.addDestroyFunc(()=>{this.fullWidthCellRenderer=this.beans.context.destroyBean(this.fullWidthCellRenderer)})}destroyCells(i){i.forEach(o=>{if(!o)return;let C=o.cellCtrl.instanceId;this.cellComps[C]===o&&(o.detach(),o.destroy(),this.cellComps[C]=null)})}};function Ir(i){let o;return i.type==="center"?o=`<div class="${i.viewport}" data-ref="eViewport" role="presentation">
                <div class="${i.container}" data-ref="eContainer"></div>
            </div>`:o=`<div class="${i.container}" data-ref="eContainer"></div>`,o}var WP=class extends On{constructor(i){super(),this.eViewport=Ri,this.eContainer=Ri,this.rowComps={},this.name=i==null?void 0:i.name,this.options=fv(this.name),this.setTemplate(Ir(this.options))}postConstruct(){let i={setHorizontalScroll:C=>this.eViewport.scrollLeft=C,setViewportHeight:C=>this.eViewport.style.height=C,setRowCtrls:({rowCtrls:C})=>this.setRowCtrls(C),setDomOrder:C=>{this.domOrder=C},setContainerWidth:C=>this.eContainer.style.width=C,setOffsetTop:C=>this.eContainer.style.transform=`translateY(${C})`};this.createManagedBean(new cg(this.name)).setComp(i,this.eContainer,this.eViewport)}destroy(){this.setRowCtrls([]),super.destroy()}setRowCtrls(i){let o=pe({},this.rowComps);this.rowComps={},this.lastPlacedElement=null;let C=P=>{let B=P.instanceId,W=o[B];if(W)this.rowComps[B]=W,delete o[B],this.ensureDomOrder(W.getGui());else{if(!P.rowNode.displayed)return;let $=new Lc(P,this.beans,this.options.type);this.rowComps[B]=$,this.appendRow($.getGui())}};i.forEach(C),Object.values(o).forEach(P=>{this.eContainer.removeChild(P.getGui()),P.destroy()}),k(this.eContainer,"rowgroup")}appendRow(i){this.domOrder?Bi(this.eContainer,i,this.lastPlacedElement):this.eContainer.appendChild(i),this.lastPlacedElement=i}ensureDomOrder(i){this.domOrder&&(_t(this.eContainer,i,this.lastPlacedElement),this.lastPlacedElement=i)}},ws={selector:"AG-ROW-CONTAINER",component:WP};function Ys(i,o){return o.map(C=>{let P=`e${C[0].toUpperCase()+C.substring(1)}RowContainer`;return i[P]={name:C},`<ag-row-container name="${C}" data-ref="${P}"></ag-row-container>`}).join("")}function wv(i){let o={},C=`<div class="ag-root ag-unselectable" data-ref="eGridRoot">
        <ag-header-root></ag-header-root>
        <div class="ag-floating-top" data-ref="eTop" role="presentation">
            ${Ys(o,["topLeft","topCenter","topRight","topFullWidth"])}
        </div>
        <div class="ag-body" data-ref="eBody" role="presentation">
            <div class="ag-body-viewport" data-ref="eBodyViewport" role="presentation">
            ${Ys(o,["left","center","right","fullWidth"])}
            </div>
            <ag-fake-vertical-scroll></ag-fake-vertical-scroll>
        </div>
        <div class="ag-sticky-top" data-ref="eStickyTop" role="presentation">
            ${Ys(o,["stickyTopLeft","stickyTopCenter","stickyTopRight","stickyTopFullWidth"])}
        </div>
        <div class="ag-sticky-bottom" data-ref="eStickyBottom" role="presentation">
            ${Ys(o,["stickyBottomLeft","stickyBottomCenter","stickyBottomRight","stickyBottomFullWidth"])}
        </div>
        <div class="ag-floating-bottom" data-ref="eBottom" role="presentation">
            ${Ys(o,["bottomLeft","bottomCenter","bottomRight","bottomFullWidth"])}
        </div>
        <ag-fake-horizontal-scroll></ag-fake-horizontal-scroll>
        ${i?"<ag-overlay-wrapper></ag-overlay-wrapper>":""}
    </div>`;return{paramsMap:o,template:C}}var Oc=class extends On{constructor(){super(...arguments),this.eGridRoot=Ri,this.eBodyViewport=Ri,this.eStickyTop=Ri,this.eStickyBottom=Ri,this.eTop=Ri,this.eBottom=Ri,this.eBody=Ri}postConstruct(){let{overlays:i,rangeSvc:o}=this.beans,C=i==null?void 0:i.getOverlayWrapperSelector(),{paramsMap:P,template:B}=wv(!!C);this.setTemplate(B,[...C?[C]:[],w0,RI,Gx,ws],P);let W=(ie,ue)=>{let De=`${ie}px`;ue.style.minHeight=De,ue.style.height=De},$={setRowAnimationCssOnBodyViewport:(ie,ue)=>this.setRowAnimationCssOnBodyViewport(ie,ue),setColumnCount:ie=>Oe(this.getGui(),ie),setRowCount:ie=>Ne(this.getGui(),ie),setTopHeight:ie=>W(ie,this.eTop),setBottomHeight:ie=>W(ie,this.eBottom),setTopDisplay:ie=>this.eTop.style.display=ie,setBottomDisplay:ie=>this.eBottom.style.display=ie,setStickyTopHeight:ie=>this.eStickyTop.style.height=ie,setStickyTopTop:ie=>this.eStickyTop.style.top=ie,setStickyTopWidth:ie=>this.eStickyTop.style.width=ie,setStickyBottomHeight:ie=>{this.eStickyBottom.style.height=ie,this.eStickyBottom.classList.toggle("ag-hidden",ie==="0px")},setStickyBottomBottom:ie=>this.eStickyBottom.style.bottom=ie,setStickyBottomWidth:ie=>this.eStickyBottom.style.width=ie,setColumnMovingCss:(ie,ue)=>this.addOrRemoveCssClass(ie,ue),updateLayoutClasses:(ie,ue)=>{[this.eBodyViewport.classList,this.eBody.classList].forEach(_e=>{_e.toggle(Fd.AUTO_HEIGHT,ue.autoHeight),_e.toggle(Fd.NORMAL,ue.normal),_e.toggle(Fd.PRINT,ue.print)}),this.addOrRemoveCssClass(Fd.AUTO_HEIGHT,ue.autoHeight),this.addOrRemoveCssClass(Fd.NORMAL,ue.normal),this.addOrRemoveCssClass(Fd.PRINT,ue.print)},setAlwaysVerticalScrollClass:(ie,ue)=>this.eBodyViewport.classList.toggle(cb,ue),registerBodyViewportResizeListener:ie=>{let ue=Qr(this.beans,this.eBodyViewport,ie);this.addDestroyFunc(()=>ue())},setPinnedTopBottomOverflowY:ie=>this.eTop.style.overflowY=this.eBottom.style.overflowY=ie,setCellSelectableCss:(ie,ue)=>{[this.eTop,this.eBodyViewport,this.eBottom].forEach(De=>De.classList.toggle(ie,ue))},setBodyViewportWidth:ie=>this.eBodyViewport.style.width=ie,setGridRootRole:ie=>k(this.eGridRoot,ie)};this.ctrl=this.createManagedBean(new Tx),this.ctrl.setComp($,this.getGui(),this.eBodyViewport,this.eTop,this.eBottom,this.eStickyTop,this.eStickyBottom),(o&&Dr(this.gos)||Mm(this.gos))&&Ae(this.getGui(),!0)}setRowAnimationCssOnBodyViewport(i,o){let C=this.eBodyViewport.classList;C.toggle("ag-row-animation",o),C.toggle("ag-row-no-animation",!o)}},VI={selector:"AG-GRID-BODY",component:Oc},jx=class extends ei{constructor(){super(...arguments),this.additionalFocusableContainers=new Set}setComp(i,o,C){this.view=i,this.eGridHostDiv=o,this.eGui=C,this.eGui.setAttribute("grid-id",this.beans.context.getGridId());let{dragAndDrop:P,ctrlsSvc:B}=this.beans;P==null||P.registerGridDropTarget(()=>this.eGui,this),eb(this.gos,o),this.createManagedBean(new ab(this.view)),this.view.setRtlClass(this.gos.get("enableRtl")?"ag-rtl":"ag-ltr");let W=Qr(this.beans,this.eGridHostDiv,this.onGridSizeChanged.bind(this));this.addDestroyFunc(()=>W()),B.register("gridCtrl",this)}isDetailGrid(){var o;let i=Wn(this.getGui());return((o=i==null?void 0:i.getAttribute("row-id"))==null?void 0:o.startsWith("detail"))||!1}getOptionalSelectors(){var o,C,P,B;let i=this.beans;return{paginationSelector:(o=i.pagination)==null?void 0:o.getPaginationSelector(),gridHeaderDropZonesSelector:i.registry.getSelector("AG-GRID-HEADER-DROP-ZONES"),sideBarSelector:(C=i.sideBar)==null?void 0:C.getSelector(),statusBarSelector:(P=i.registry)==null?void 0:P.getSelector("AG-STATUS-BAR"),watermarkSelector:(B=i.licenseManager)==null?void 0:B.getWatermarkSelector()}}onGridSizeChanged(){this.eventSvc.dispatchEvent({type:"gridSizeChanged",clientWidth:this.eGridHostDiv.clientWidth,clientHeight:this.eGridHostDiv.clientHeight})}destroyGridUi(){this.view.destroyGridUi()}getGui(){return this.eGui}setResizeCursor(i){this.view.setCursor(i?"ew-resize":null)}disableUserSelect(i){this.view.setUserSelect(i?"none":null)}focusNextInnerContainer(i){let o=this.getFocusableContainers(),{indexWithFocus:C,nextIndex:P}=this.getNextFocusableIndex(o,i);if(P<0||P>=o.length)return!1;if(P===0){if(C>0){let{visibleCols:B,focusSvc:W}=this.beans,$=B.allCols,ie=Sa($);if(W.focusGridView(ie,!0))return!0}return!1}return this.focusContainer(o[P],i)}focusInnerElement(i){let o=this.gos.getCallback("focusGridInnerElement");if(o&&o({fromBottom:!!i}))return!0;let C=this.getFocusableContainers(),{focusSvc:P,visibleCols:B}=this.beans,W=B.allCols;if(i){if(C.length>1)return this.focusContainer(Sa(C),!0);let $=Sa(W);if(P.focusGridView($,!0))return!0}if(this.gos.get("headerHeight")===0||kh(this.beans)){if(P.focusGridView(W[0]))return!0;for(let $=1;$<C.length;$++)if(Cu(C[$].getGui()))return!0;return!1}return P.focusFirstHeader()}forceFocusOutOfContainer(i=!1){this.view.forceFocusOutOfContainer(i)}addFocusableContainer(i){this.additionalFocusableContainers.add(i)}removeFocusableContainer(i){this.additionalFocusableContainers.delete(i)}allowFocusForNextCoreContainer(i){var W;let o=this.view.getFocusableContainers(),{nextIndex:C,indexWithFocus:P}=this.getNextFocusableIndex(o,i);if(P===-1||C<0||C>=o.length)return;let B=o[C];(W=B.setAllowFocus)==null||W.call(B,!0),setTimeout(()=>{var $;($=B.setAllowFocus)==null||$.call(B,!1)})}getNextFocusableIndex(i,o){let C=Fa(this.beans),P=i.findIndex(W=>W.getGui().contains(C)),B=P+(o?-1:1);return{indexWithFocus:P,nextIndex:B}}focusContainer(i,o){var P,B;(P=i.setAllowFocus)==null||P.call(i,!0);let C=Cu(i.getGui(),o);return(B=i.setAllowFocus)==null||B.call(i,!1),C}getFocusableContainers(){return[...this.view.getFocusableContainers(),...this.additionalFocusableContainers]}destroy(){this.additionalFocusableContainers.clear(),super.destroy()}},Vx=class extends Bx{constructor(i){super(),this.gridBody=Ri,this.sideBar=Ri,this.pagination=Ri,this.rootWrapperBody=Ri,this.eGridDiv=i}postConstruct(){let i={destroyGridUi:()=>this.destroyBean(this),setRtlClass:W=>this.addCssClass(W),forceFocusOutOfContainer:this.forceFocusOutOfContainer.bind(this),updateLayoutClasses:this.updateLayoutClasses.bind(this),getFocusableContainers:this.getFocusableContainers.bind(this),setUserSelect:W=>{this.getGui().style.userSelect=W!=null?W:"",this.getGui().style.webkitUserSelect=W!=null?W:""},setCursor:W=>{this.getGui().style.cursor=W!=null?W:""}},o=this.createManagedBean(new jx),C=o.getOptionalSelectors(),P=this.createTemplate(C),B=[VI,...Object.values(C).filter(W=>!!W)];this.setTemplate(P,B),o.setComp(i,this.eGridDiv,this.getGui()),this.insertGridIntoDom(),this.initialiseTabGuard({onTabKeyDown:()=>{},focusInnerElement:W=>o.focusInnerElement(W),forceFocusOutWhenTabGuardsAreEmpty:!0})}insertGridIntoDom(){let i=this.getGui();this.eGridDiv.appendChild(i),this.addDestroyFunc(()=>{this.eGridDiv.removeChild(i),_s(this.gos,"Grid removed from DOM")})}updateLayoutClasses(i,o){let C=this.rootWrapperBody.classList,{AUTO_HEIGHT:P,NORMAL:B,PRINT:W}=Fd,{autoHeight:$,normal:ie,print:ue}=o;C.toggle(P,$),C.toggle(B,ie),C.toggle(W,ue),this.addOrRemoveCssClass(P,$),this.addOrRemoveCssClass(B,ie),this.addOrRemoveCssClass(W,ue)}createTemplate(i){let o=i.gridHeaderDropZonesSelector?"<ag-grid-header-drop-zones></ag-grid-header-drop-zones>":"",C=i.sideBarSelector?'<ag-side-bar data-ref="sideBar"></ag-side-bar>':"",P=i.statusBarSelector?"<ag-status-bar></ag-status-bar>":"",B=i.watermarkSelector?"<ag-watermark></ag-watermark>":"",W=i.paginationSelector?'<ag-pagination data-ref="pagination"></ag-pagination>':"";return`<div class="ag-root-wrapper" role="presentation">
                ${o}
                <div class="ag-root-wrapper-body" data-ref="rootWrapperBody" role="presentation">
                    <ag-grid-body data-ref="gridBody"></ag-grid-body>
                    ${C}
                </div>
                ${P}
                ${W}
                ${B}
            </div>`}getFocusableElement(){return this.rootWrapperBody}forceFocusOutOfContainer(i=!1){var o;if(!i&&((o=this.pagination)!=null&&o.isDisplayed())){this.pagination.forceFocusOutOfContainer(i);return}super.forceFocusOutOfContainer(i)}getFocusableContainers(){let i=[this.gridBody];return[this.sideBar,this.pagination].forEach(o=>{o&&i.push(o)}),i.filter(o=>ht(o.getGui()))}},In=(i,o)=>{for(let C of Object.keys(o))o[C]=i;return o},Hx=pe(pe(pe(pe(pe(pe(pe(pe(pe(pe(pe(pe(pe(pe(pe(pe(pe(pe(pe(pe(pe(pe(pe(pe(pe(pe(pe(pe(pe(pe(pe(pe(pe(pe(pe(pe(pe(pe(pe(pe(pe(pe(pe(pe(pe(pe(pe({dispatchEvent:"CommunityCore"},In("CommunityCore",{destroy:0,getGridId:0,getGridOption:0,isDestroyed:0,setGridOption:0,updateGridOptions:0})),In("GridState",{getState:0})),In("SharedRowSelection",{setNodesSelected:0,selectAll:0,deselectAll:0,selectAllFiltered:0,deselectAllFiltered:0,selectAllOnCurrentPage:0,deselectAllOnCurrentPage:0,getSelectedNodes:0,getSelectedRows:0})),In("RowApi",{redrawRows:0,setRowNodeExpanded:0,getRowNode:0,addRenderedRowListener:0,getRenderedNodes:0,forEachNode:0,getFirstDisplayedRowIndex:0,getLastDisplayedRowIndex:0,getDisplayedRowAtIndex:0,getDisplayedRowCount:0})),In("ScrollApi",{getVerticalPixelRange:0,getHorizontalPixelRange:0,ensureColumnVisible:0,ensureIndexVisible:0,ensureNodeVisible:0})),In("KeyboardNavigation",{getFocusedCell:0,clearFocusedCell:0,setFocusedCell:0,tabToNextCell:0,tabToPreviousCell:0,setFocusedHeader:0})),In("EventApi",{addEventListener:0,addGlobalListener:0,removeEventListener:0,removeGlobalListener:0})),In("ValueCache",{expireValueCache:0})),In("CellApi",{getCellValue:0})),In("SharedMenu",{showColumnMenu:0,hidePopupMenu:0})),In("Sort",{onSortChanged:0})),In("PinnedRow",{getPinnedTopRowCount:0,getPinnedBottomRowCount:0,getPinnedTopRow:0,getPinnedBottomRow:0})),In("Overlay",{showLoadingOverlay:0,showNoRowsOverlay:0,hideOverlay:0})),In("RenderApi",{setGridAriaProperty:0,refreshCells:0,refreshHeader:0,isAnimationFrameQueueEmpty:0,flushAllAnimationFrames:0,getSizesForCurrentTheme:0,getCellRendererInstances:0})),In("HighlightChanges",{flashCells:0})),In("RowDrag",{addRowDropZone:0,removeRowDropZone:0,getRowDropZoneParams:0})),In("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})),In("ColumnAutoSize",{sizeColumnsToFit:0,autoSizeColumns:0,autoSizeAllColumns:0})),In("ColumnGroup",{setColumnGroupOpened:0,getColumnGroup:0,getProvidedColumnGroup:0,getDisplayNameForColumnGroup:0,getColumnGroupState:0,setColumnGroupState:0,resetColumnGroupState:0,getLeftDisplayedColumnGroups:0,getCenterDisplayedColumnGroups:0,getRightDisplayedColumnGroups:0,getAllDisplayedColumnGroups:0})),In("ColumnMove",{moveColumnByIndex:0,moveColumns:0})),In("ColumnResize",{setColumnWidths:0})),In("ColumnHover",{isColumnHovered:0})),In("EditCore",{getCellEditorInstances:0,getEditingCells:0,stopEditing:0,startEditingCell:0})),In("UndoRedoEdit",{undoCellEditing:0,redoCellEditing:0,getCurrentUndoSize:0,getCurrentRedoSize:0})),In("FilterCore",{isAnyFilterPresent:0,onFilterChanged:0})),In("ColumnFilter",{isColumnFilterPresent:0,getColumnFilterInstance:0,destroyFilter:0,setFilterModel:0,getFilterModel:0,getColumnFilterModel:0,setColumnFilterModel:0,showColumnFilter:0})),In("QuickFilter",{isQuickFilterPresent:0,getQuickFilter:0,resetQuickFilter:0})),In("Pagination",{paginationIsLastPageFound:0,paginationGetPageSize:0,paginationGetCurrentPage:0,paginationGetTotalPages:0,paginationGetRowCount:0,paginationGoToNextPage:0,paginationGoToPreviousPage:0,paginationGoToFirstPage:0,paginationGoToLastPage:0,paginationGoToPage:0})),In("CsrmSsrmSharedApi",{expandAll:0,collapseAll:0,onRowHeightChanged:0})),In("SsrmInfiniteSharedApi",{setRowCount:0,getCacheBlockState:0,isLastRowIndexKnown:0})),In("ClientSideRowModelApi",{onGroupExpandedOrCollapsed:0,refreshClientSideRowModel:0,isRowDataEmpty:0,forEachLeafNode:0,forEachNodeAfterFilter:0,forEachNodeAfterFilterAndSort:0,resetRowHeights:0,applyTransaction:0,applyTransactionAsync:0,flushAsyncTransactions:0,getBestCostNodeSelection:0})),In("CsvExport",{getDataAsCsv:0,exportDataAsCsv:0})),In("InfiniteRowModel",{refreshInfiniteCache:0,purgeInfiniteCache:0,getInfiniteRowCount:0})),In("AdvancedFilter",{getAdvancedFilterModel:0,setAdvancedFilterModel:0,showAdvancedFilterBuilder:0,hideAdvancedFilterBuilder:0})),In("IntegratedCharts",{getChartModels:0,getChartRef:0,getChartImageDataURL:0,downloadChart:0,openChartToolPanel:0,closeChartToolPanel:0,createRangeChart:0,createPivotChart:0,createCrossFilterChart:0,updateChart:0,restoreChart:0})),In("Clipboard",{copyToClipboard:0,cutToClipboard:0,copySelectedRowsToClipboard:0,copySelectedRangeToClipboard:0,copySelectedRangeDown:0,pasteFromClipboard:0})),In("ExcelExport",{getDataAsExcel:0,exportDataAsExcel:0,getSheetDataForExcel:0,getMultipleSheetsAsExcel:0,exportMultipleSheetsAsExcel:0})),In("SharedMasterDetail",{addDetailGridInfo:0,removeDetailGridInfo:0,getDetailGridInfo:0,forEachDetailGridInfo:0})),In("ContextMenu",{showContextMenu:0})),In("ColumnMenu",{showColumnChooser:0,hideColumnChooser:0})),In("CellSelection",{getCellRanges:0,addCellRange:0,clearRangeSelection:0,clearCellSelection:0})),In("SharedRowGrouping",{setRowGroupColumns:0,removeRowGroupColumns:0,addRowGroupColumns:0,getRowGroupColumns:0,moveRowGroupColumn:0})),In("SharedAggregation",{addAggFuncs:0,clearAggFuncs:0,setColumnAggFunc:0})),In("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})),In("ServerSideRowModelApi",{getServerSideSelectionState:0,setServerSideSelectionState:0,applyServerSideTransaction:0,applyServerSideTransactionAsync:0,applyServerSideRowData:0,retryServerSideLoads:0,flushServerSideAsyncTransactions:0,refreshServerSide:0,getServerSideGroupLevelState:0})),In("SideBar",{isSideBarVisible:0,setSideBarVisible:0,setSideBarPosition:0,openToolPanel:0,closeToolPanel:0,getOpenedToolPanel:0,refreshToolPanel:0,isToolPanelShowing:0,getToolPanelInstance:0,getSideBar:0})),In("StatusBar",{getStatusPanel:0})),fb={isDestroyed:()=>!0,destroy(){},preConstruct(){},postConstruct(){},preWireBeans(){},wireBeans(){}},Sp=(i,o)=>i.eventSvc.dispatchEvent(o),Wx=class{};Reflect.defineProperty(Wx,"name",{value:"GridApi"});var xv=class extends ei{constructor(){super(),this.beanName="apiFunctionSvc",this.api=new Wx,this.fns=et(pe({},fb),{dispatchEvent:Sp}),this.preDestroyLink="";let{api:i}=this;for(let o of Object.keys(Hx))i[o]=this.makeApi(o)[o]}postConstruct(){this.preDestroyLink=this.beans.frameworkOverrides.getDocLink("grid-lifecycle/#grid-pre-destroyed")}addFunction(i,o){var B,W;let{fns:C,beans:P}=this;C!==fb&&(C[i]=(W=(B=P==null?void 0:P.validation)==null?void 0:B.validateApiFunction(i,o))!=null?W:o)}makeApi(i){return{[i]:(...o)=>{let{beans:C,fns:{[i]:P}}=this;return P?P(C,...o):this.apiNotFound(i)}}}apiNotFound(i){let{beans:o,gos:C,preDestroyLink:P}=this;if(!o)pi(26,{fnName:i,preDestroyLink:P});else{let B=Hx[i];C.assertModuleRegistered(B,`api.${i}`)&&pi(27,{fnName:i,module:B})}}destroy(){super.destroy(),this.fns=fb,this.beans=null}};function Ux(i){return i.context.getGridId()}function pD(i){i.gridDestroySvc.destroy()}function Mv(i){return i.gridDestroySvc.destroyCalled}function mD(i,o){return i.gos.get(o)}function vo(i,o,C){wp(i,{[o]:C})}function wp(i,o){i.gos.updateGridOptions({options:o})}var _c=class extends On{constructor(i,o,C){super('<div class="ag-drag-handle ag-row-drag" draggable="true"></div>'),this.rowNode=i,this.column=o,this.eCell=C}postConstruct(){this.getGui().appendChild(za("rowDrag",this.beans,null)),this.addGuiEventListener("mousedown",o=>{o.stopPropagation()}),this.addDragSource(),this.checkVisibility()}addDragSource(){this.addGuiEventListener("dragstart",this.onDragStart.bind(this))}onDragStart(i){let{rowNode:o,column:C,eCell:P,gos:B}=this,W=C.getColDef().dndSourceOnRowDrag,$=i.dataTransfer;if($.setDragImage(P,0,0),W){let ie=B.addGridCommonParams({rowNode:o,dragEvent:i});W(ie)}else try{let ie=JSON.stringify(o.data);$.setData("application/json",ie),$.setData("text/plain",ie)}catch(ie){}}checkVisibility(){let i=this.column.isDndSource(this.rowNode);this.setDisplayed(i)}};function fD(i,o){var C,P;(P=(C=i.rowDragSvc)==null?void 0:C.rowDragFeature)==null||P.addRowDropZone(o)}function Hm(i,o){var P,B;let C=(P=i.dragAndDrop)==null?void 0:P.findExternalZone(o);C&&((B=i.dragAndDrop)==null||B.removeDropTarget(C))}function HI(i,o){var C,P;return(P=(C=i.rowDragSvc)==null?void 0:C.rowDragFeature)==null?void 0:P.getRowDropZone(o)}var WI=class extends ei{constructor(){super(...arguments),this.beanName="horizontalResizeSvc"}addResizeBar(i){let o={dragStartPixels:i.dragStartPixels||0,eElement:i.eResizeBar,onDragStart:this.onDragStart.bind(this,i),onDragStop:this.onDragStop.bind(this,i),onDragging:this.onDragging.bind(this,i),onDragCancel:this.onDragStop.bind(this,i),includeTouch:!0,stopPropagationForTouch:!0},{dragSvc:C}=this.beans;return C.addDragSource(o),()=>C.removeDragSource(o)}onDragStart(i,o){this.dragStartX=o.clientX,this.setResizeIcons();let C=o instanceof MouseEvent&&o.shiftKey===!0;i.onResizeStart(C)}setResizeIcons(){let i=this.beans.ctrlsSvc.get("gridCtrl");i.setResizeCursor(!0),i.disableUserSelect(!0)}onDragStop(i){i.onResizeEnd(this.resizeAmount),this.resetIcons()}resetIcons(){let i=this.beans.ctrlsSvc.get("gridCtrl");i.setResizeCursor(!1),i.disableUserSelect(!1)}onDragging(i,o){this.resizeAmount=o.clientX-this.dragStartX,i.onResizing(this.resizeAmount)}},vD=class extends On{constructor(i,o,C,P,B,W){super(),this.cellValueFn=i,this.rowNode=o,this.column=C,this.customGui=P,this.dragStartPixels=B,this.suppressVisibilityChange=W,this.dragSource=null}isCustomGui(){return this.customGui!=null}postConstruct(){let{beans:i,rowNode:o,column:C,gos:P}=this;if(this.customGui?this.setDragElement(this.customGui,this.dragStartPixels):(this.setTemplate('<div class="ag-drag-handle ag-row-drag" aria-hidden="true"></div>'),this.getGui().appendChild(za("rowDrag",i,null)),this.addDragSource()),!this.suppressVisibilityChange){let B=P.get("rowDragManaged")?new jd(this,o,C):new Hr(this,o,C);this.createManagedBean(B,this.beans.context)}}setDragElement(i,o){this.setTemplateFromElement(i,void 0,void 0,!0),this.addDragSource(o)}getSelectedNodes(){var P,B;let i=this.rowNode;if(!this.gos.get("rowDragMultiRow"))return[i];let C=(B=(P=this.beans.selectionSvc)==null?void 0:P.getSelectedNodes())!=null?B:[];return C.indexOf(i)!==-1?C:[i]}getDragItem(){let{column:i,rowNode:o}=this;return{rowNode:o,rowNodes:this.getSelectedNodes(),columns:i?[i]:void 0,defaultTextValue:this.cellValueFn()}}getRowDragText(i){if(i){let o=i.getColDef();if(o.rowDragText)return o.rowDragText}return this.gos.get("rowDragText")}addDragSource(i=4){this.dragSource&&this.removeDragSource();let o=this.getGui();this.gos.get("enableCellTextSelection")&&(this.removeMouseDownListener(),this.mouseDownListener=this.addManagedElementListeners(o,{mousedown:P=>{P==null||P.preventDefault()}})[0]);let C=this.getLocaleTextFunc();this.dragSource={type:2,eElement:o,dragItemName:()=>{var $;let P=this.getDragItem(),B=(($=P.rowNodes)==null?void 0:$.length)||1,W=this.getRowDragText(this.column);return W?W(P,B):B===1?this.cellValueFn():`${B} ${C("rowDragRows","rows")}`},getDragItem:()=>this.getDragItem(),dragStartPixels:i,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)}},Kx=class extends ei{constructor(i,o,C){super(),this.parent=i,this.rowNode=o,this.column=C}setDisplayedOrVisible(i){let o={skipAriaHidden:!0};if(i)this.parent.setDisplayed(!1,o);else{let C=!0,P=!1,{column:B,rowNode:W,parent:$}=this;B&&(C=B.isRowDrag(W)||$.isCustomGui(),P=typeof B.getColDef().rowDrag=="function"),P?($.setDisplayed(!0,o),$.setVisible(C,o)):($.setDisplayed(C,o),$.setVisible(!0,o))}}},Hr=class extends Kx{postConstruct(){this.addManagedPropertyListener("suppressRowDrag",this.onSuppressRowDrag.bind(this));let i=this.workOutVisibility.bind(this);this.addManagedListeners(this.rowNode,{dataChanged:i,cellChanged:i}),this.addManagedListeners(this.beans.eventSvc,{newColumnsLoaded:i}),this.workOutVisibility()}onSuppressRowDrag(){this.workOutVisibility()}workOutVisibility(){let i=this.gos.get("suppressRowDrag");this.setDisplayedOrVisible(i)}},jd=class extends Kx{postConstruct(){let i=this.workOutVisibility.bind(this);this.addManagedListeners(this.beans.eventSvc,{sortChanged:i,filterChanged:i,columnRowGroupChanged:i,newColumnsLoaded:i}),this.addManagedListeners(this.rowNode,{dataChanged:i,cellChanged:i}),this.addManagedPropertyListener("suppressRowDrag",this.onSuppressRowDrag.bind(this)),this.workOutVisibility()}onSuppressRowDrag(){this.workOutVisibility()}workOutVisibility(){let{rowDragSvc:i,dragAndDrop:o,gos:C}=this.beans,P=i.rowDragFeature,B=P&&P.shouldPreventRowMove(),W=C.get("suppressRowDrag"),$=o.hasExternalDropZones(),ie=B&&!$||W;this.setDisplayedOrVisible(ie)}},UP=class extends ei{constructor(){super(...arguments),this.beanName="rowDragSvc"}setupRowDrag(i,o){let C=o.createManagedBean(new Om(i)),P=this.beans.dragAndDrop;P.addDropTarget(C),o.addDestroyFunc(()=>P.removeDropTarget(C)),this.rowDragFeature=C}createRowDragComp(i,o,C,P,B,W){return new vD(i,o,C,P,B,W)}createRowDragCompForRow(i,o){if(Dr(this.gos))return;let C=this.getLocaleTextFunc();return this.createRowDragComp(()=>`1 ${C("rowDragRow","row")}`,i,void 0,o,void 0,!0)}createRowDragCompForCell(i,o,C,P,B,W){let $=this.gos;return $.get("rowDragManaged")&&(!_o($)||$.get("pagination"))?void 0:this.createRowDragComp(C,i,o,P,B,W)}},yD={moduleName:"Drag",version:yi,beans:[XA]},vb={moduleName:"DragAndDrop",version:yi,dynamicBeans:{dndSourceComp:_c},icons:{rowDrag:"grip"}},yb={moduleName:"SharedDragAndDrop",version:yi,beans:[Ah],dependsOn:[yD],userComponents:{agDragAndDropImage:GP},icons:{columnMovePin:"pin",columnMoveHide:"eye-slash",columnMoveMove:"arrows",columnMoveLeft:"left",columnMoveRight:"right",columnMoveGroup:"group",columnMoveValue:"aggregation",columnMovePivot:"pivot",dropNotAllowed:"not-allowed",rowDrag:"grip"}},L0={moduleName:"RowDrag",version:yi,beans:[UP],apiFunctions:{addRowDropZone:fD,removeRowDropZone:Hm,getRowDropZoneParams:HI},dependsOn:[yb]},kv={moduleName:"HorizontalResize",version:yi,beans:[WI],dependsOn:[yD]},O0=":where(.ag-ltr) :where(.ag-column-moving){.ag-cell,.ag-header-cell{transition:left .2s}.ag-header-group-cell{transition:left .2s,width .2s}}:where(.ag-rtl) :where(.ag-column-moving){.ag-cell,.ag-header-cell{transition:right .2s}.ag-header-group-cell{transition:right .2s,width .2s}}",qx=class extends ei{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,i=>this.gridBodyCtrl=i.gridBodyCtrl)}isActive(){return this.active&&!this.suppressAnimation}setSuppressAnimation(i){this.suppressAnimation=i}start(){if(this.active)return;let{gos:i}=this;i.get("suppressColumnMoveAnimation")||i.get("enableRtl")||(this.ensureAnimationCssClassPresent(),this.active=!0,this.activeNext=!0)}finish(){this.active&&this.flush(()=>this.activeNext=!1,()=>this.active=!1)}executeNextVMTurn(i){this.activeNext?this.executeNextFuncs.push(i):i()}executeLaterVMTurn(i){this.active?this.executeLaterFuncs.push(i):i()}ensureAnimationCssClassPresent(){this.animationThreadCount++;let i=this.animationThreadCount,{gridBodyCtrl:o}=this;o.setColumnMovingCss(!0),this.executeLaterFuncs.push(()=>{this.animationThreadCount===i&&o.setColumnMovingCss(!1)})}flush(i,o){let{executeNextFuncs:C,executeLaterFuncs:P}=this;if(C.length===0&&P.length===0){i(),o();return}let B=W=>{for(;W.length;){let $=W.pop();$&&$()}};this.beans.frameworkOverrides.wrapIncoming(()=>{window.setTimeout(()=>{i(),B(C)},0),window.setTimeout(()=>{o(),B(P)},200)})}};function Av(i,o,C){var P;(P=i.colMoves)==null||P.moveColumnByIndex(o,C,"api")}function Yx(i,o,C){var P;(P=i.colMoves)==null||P.moveColumns(o,C,"api")}var bD=class extends ei{constructor(i){super(),this.pinned=i,this.columnsToAggregate=[],this.columnsToGroup=[],this.columnsToPivot=[]}onDragEnter(i){if(this.clearColumnsList(),this.gos.get("functionsReadOnly"))return;let o=i.dragItem.columns;o&&o.forEach(C=>{C.isPrimary()&&(C.isAnyFunctionActive()||(C.isAllowValue()?this.columnsToAggregate.push(C):C.isAllowRowGroup()?this.columnsToGroup.push(C):C.isAllowPivot()&&this.columnsToPivot.push(C)))})}getIconName(){return this.columnsToAggregate.length+this.columnsToGroup.length+this.columnsToPivot.length>0?this.pinned?"pinned":"move":null}onDragLeave(i){this.clearColumnsList()}clearColumnsList(){this.columnsToAggregate.length=0,this.columnsToGroup.length=0,this.columnsToPivot.length=0}onDragging(i){}onDragStop(i){let{valueColsSvc:o,rowGroupColsSvc:C,pivotColsSvc:P}=this.beans;this.columnsToAggregate.length>0&&(o==null||o.addColumns(this.columnsToAggregate,"toolPanelDragAndDrop")),this.columnsToGroup.length>0&&(C==null||C.addColumns(this.columnsToGroup,"toolPanelDragAndDrop")),this.columnsToPivot.length>0&&(P==null||P.addColumns(this.columnsToPivot,"toolPanelDragAndDrop"))}onDragCancel(){this.clearColumnsList()}};function UI(i,o){!o||o.length<=1||o.filter(P=>i.indexOf(P)<0).length>0||o.sort((P,B)=>{let W=i.indexOf(P),$=i.indexOf(B);return W-$})}function Xx(i){let{isFromHeader:o,fromLeft:C,xPosition:P,fromEnter:B,fakeEvent:W,pinned:$,gos:ie,colModel:ue,colMoves:De,visibleCols:_e}=i,{allMovingColumns:Be}=i;if(o){let Mi=[];Be.forEach(qi=>{var Ga;let Fn=null,Xn=qi.getParent();for(;Xn!=null&&Xn.getDisplayedLeafColumns().length===1;)Fn=Xn,Xn=Xn.getParent();Fn!=null?(!!((Ga=Fn.getColGroupDef())!=null&&Ga.marryChildren)?Fn.getProvidedColumnGroup().getLeafColumns():Fn.getLeafColumns()).forEach(gn=>{Mi.includes(gn)||Mi.push(gn)}):Mi.includes(qi)||Mi.push(qi)}),Be=Mi}let Qe=Be.slice();UI(ue.getCols(),Qe);let st=Jx({movingCols:Qe,draggingRight:C,xPosition:P,pinned:$,gos:ie,colModel:ue,visibleCols:_e}),Ct=Zx(Qe,ue);if(st.length===0)return;let Ot=st[0],Pt=Ct!==null&&!B;if(o&&(Pt=Ct!==null),Pt&&!W&&(!C&&Ot>=Ct||C&&Ot<=Ct))return;let Kt=_e.allCols,ti=[],Jt=null;for(let Mi=0;Mi<st.length;Mi++){let qi=st[Mi],Fn=De.getProposedColumnOrder(Qe,qi);if(!De.doesOrderPassRules(Fn))continue;let Xn=Fn.filter(ba=>Kt.includes(ba));if(Jt===null)Jt=Xn;else if(!tg(Xn,Jt))break;let Ga=$x(Fn);ti.push({move:qi,fragCount:Ga})}if(ti.length===0)return;ti.sort((Mi,qi)=>Mi.fragCount-qi.fragCount);let ai=ti[0].move;if(!(ai>ue.getCols().length-Be.length))return{columns:Be,toIndex:ai}}function bb(i){let{columns:o,toIndex:C}=Xx(i)||{},{finished:P,colMoves:B}=i;return!o||C==null?null:(B.moveColumns(o,C,"uiColumnMoved",P),P?null:{columns:o,toIndex:C})}function Zx(i,o){let C=o.getCols(),P=vI(i.map(ue=>C.indexOf(ue))),B=P[0];return Sa(P)-B!==P.length-1?null:B}function $x(i){function o(P){let B=[],W=P.getOriginalParent();for(;W!=null;)B.push(W),W=W.getOriginalParent();return B}let C=0;for(let P=0;P<i.length-1;P++){let B=o(i[P]),W=o(i[P+1]);[B,W]=B.length>W.length?[B,W]:[W,B],B.forEach($=>{W.indexOf($)===-1&&C++})}return C}function Qx(i,o){switch(o){case"left":return i.leftCols;case"right":return i.rightCols;default:return i.centerCols}}function Jx(i){let{movingCols:o,draggingRight:C,xPosition:P,pinned:B,gos:W,colModel:$,visibleCols:ie}=i;if(W.get("suppressMovableColumns")||o.some(Jt=>Jt.getColDef().suppressMovable))return[];let De=Qx(ie,B),_e=$.getCols(),Be=De.filter(Jt=>o.includes(Jt)),Qe=De.filter(Jt=>!o.includes(Jt)),st=_e.filter(Jt=>!o.includes(Jt)),Ct=0,Ot=P;if(C){let Jt=0;Be.forEach(ai=>Jt+=ai.getActualWidth()),Ot-=Jt}if(Ot>0){for(let Jt=0;Jt<Qe.length;Jt++){let ai=Qe[Jt];if(Ot-=ai.getActualWidth(),Ot<0)break;Ct++}C&&Ct++}let Pt;if(Ct>0){let Jt=Qe[Ct-1];Pt=st.indexOf(Jt)+1}else Pt=st.indexOf(Qe[0]),Pt===-1&&(Pt=0);let Kt=[Pt],ti=(Jt,ai)=>Jt-ai;if(C){let Jt=Pt+1,ai=_e.length-1;for(;Jt<=ai;)Kt.push(Jt),Jt++;Kt.sort(ti)}else{let Jt=Pt,ai=_e.length-1,Mi=_e[Jt];for(;Jt<=ai&&De.indexOf(Mi)<0;)Jt++,Kt.push(Jt),Mi=_e[Jt];Jt=Pt-1;let qi=0;for(;Jt>=qi;)Kt.push(Jt),Jt--;Kt.sort(ti).reverse()}return Kt}function _0(i){var De;let{pinned:o,fromKeyboard:C,gos:P,ctrlsSvc:B,useHeaderRow:W,skipScrollPadding:$}=i,ie=(De=B.getHeaderRowContainerCtrl(o))==null?void 0:De.eViewport,{x:ue}=i;return ie?(C&&(ue-=ie.getBoundingClientRect().left),P.get("enableRtl")&&(W&&(ie=ie.querySelector(".ag-header-row")),ue=ie.clientWidth-ue),o==null&&!$&&(ue+=B.get("center").getCenterViewportScrollLeft()),ue):0}function F0(i,o){for(let C of i)C.moving=o,C.dispatchColEvent("movingChanged","uiColumnMoved")}var N0=7,z0=100,Cb=z0/2,CD=5,eM=100,ec=class extends ei{constructor(i){super(),this.pinned=i,this.needToMoveLeft=!1,this.needToMoveRight=!1,this.lastMovedInfo=null,this.isCenterContainer=!Ai(i)}postConstruct(){this.beans.ctrlsSvc.whenReady(this,i=>{this.gridBodyCon=i.gridBodyCtrl})}getIconName(){var P;let{pinned:i,lastDraggingEvent:o}=this,C=(P=o==null?void 0:o.dragItem.columns)!=null?P:[];for(let B of C){let W=B.getPinned();if(B.getColDef().lockPinned){if(W==i)return"move";continue}if(W===i||!i)return"move";if(!W&&i)return"pinned"}return"notAllowed"}onDragEnter(i){let o=i.dragItem,C=o.columns;if(i.dragSource.type===0)this.setColumnsVisible(C,!0,"uiColumnDragged");else{let B=o.visibleState,W=(C||[]).filter($=>B[$.getId()]);this.setColumnsVisible(W,!0,"uiColumnDragged")}this.gos.get("suppressMoveWhenColumnDragging")||this.attemptToPinColumns(C,this.pinned),this.onDragging(i,!0,!0)}onDragging(i=this.lastDraggingEvent,o=!1,C=!1,P=!1){let{gos:B,ctrlsSvc:W}=this.beans,$=B.get("suppressMoveWhenColumnDragging");if(P&&!$){this.finishColumnMoving();return}if(this.lastDraggingEvent=i,!i||!P&&Qn(i.hDirection))return;let ie=_0({x:i.x,pinned:this.pinned,gos:B,ctrlsSvc:W});o||this.checkCenterForScrolling(ie),$?this.handleColumnDragWhileSuppressingMovement(i,o,C,ie,P):this.handleColumnDragWhileAllowingMovement(i,o,C,ie,P)}onDragLeave(){this.ensureIntervalCleared(),this.clearHighlighted(),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(i,o,C){if(!i)return;let P=i.filter(B=>!B.getColDef().lockVisible);this.beans.colModel.setColsVisible(P,o,C)}finishColumnMoving(){this.clearHighlighted();let i=this.lastMovedInfo;if(!i)return;let{columns:o,toIndex:C}=i;this.beans.colMoves.moveColumns(o,C,"uiColumnMoved",!0)}handleColumnDragWhileSuppressingMovement(i,o,C,P,B){let W=this.getAllMovingColumns(i,!0);if(B){let $=this.isAttemptingToPin(W);$&&this.attemptToPinColumns(W,void 0,!0);let{fromLeft:ie,xPosition:ue}=this.getNormalisedXPositionInfo(W,$)||{};if(ie==null||ue==null){this.finishColumnMoving();return}this.moveColumnsAfterHighlight({allMovingColumns:W,xPosition:ue,fromEnter:o,fakeEvent:C,fromLeft:ie})}else{if(!this.beans.dragAndDrop.isDropZoneWithinThisGrid(i))return;this.highlightHoveredColumn(W,P)}}handleColumnDragWhileAllowingMovement(i,o,C,P,B){let W=this.getAllMovingColumns(i),$=this.normaliseDirection(i.hDirection)==="right",ie=i.dragSource.type===1,ue=this.getMoveColumnParams({allMovingColumns:W,isFromHeader:ie,xPosition:P,fromLeft:$,fromEnter:o,fakeEvent:C}),De=bb(et(pe({},ue),{finished:B}));De&&(this.lastMovedInfo=De)}getAllMovingColumns(i,o=!1){let C=i.dragSource.getDragItem(),P=null;o?(P=C.columnsInSplit,P||(P=C.columns)):P=C.columns;let B=W=>W.getColDef().lockPinned?W.getPinned()==this.pinned:!0;return P?P.filter(B):[]}getMoveColumnParams(i){let{allMovingColumns:o,isFromHeader:C,xPosition:P,fromLeft:B,fromEnter:W,fakeEvent:$}=i,{gos:ie,colModel:ue,colMoves:De,visibleCols:_e}=this.beans;return{allMovingColumns:o,isFromHeader:C,fromLeft:B,xPosition:P,pinned:this.pinned,fromEnter:W,fakeEvent:$,gos:ie,colModel:ue,colMoves:De,visibleCols:_e}}highlightHoveredColumn(i,o){var _e;let{gos:C,colModel:P}=this.beans,B=C.get("enableRtl"),W=P.getCols().filter(Be=>Be.isVisible()&&Be.getPinned()===this.pinned),$=null,ie=null,ue=null;for(let Be of W){if(ie=Be.getActualWidth(),$=this.getNormalisedColumnLeft(Be,0,B),$!=null){let Qe=$+ie;if($<=o&&Qe>=o){ue=Be;break}}$=null,ie=null}if(ue)i.indexOf(ue)!==-1&&(ue=null);else{for(let Be=W.length-1;Be>=0;Be--){let Qe=W[Be],st=W[Be].getParent();if(!st){ue=Qe;break}let Ct=st==null?void 0:st.getDisplayedLeafColumns();if(Ct.length){ue=Sa(Ct);break}}if(!ue)return;$=this.getNormalisedColumnLeft(ue,0,B),ie=ue.getActualWidth()}if(((_e=this.lastHighlightedColumn)==null?void 0:_e.column)!==ue&&this.clearHighlighted(),ue==null||$==null||ie==null)return;let De;o-$<ie/2!==B?De=0:De=1,Xs(ue,De),this.lastHighlightedColumn={column:ue,position:De}}getNormalisedXPositionInfo(i,o){let{gos:C,visibleCols:P}=this.beans,B=C.get("enableRtl"),{firstMovingCol:W,column:$,position:ie}=this.getColumnMoveAndTargetInfo(i,o,B);if(!W||!$||ie==null)return;let ue=P.allCols,De=ue.indexOf(W),_e=ue.indexOf($),Be=ie===0!==B,Qe=De<_e||De===_e&&!Be,st=0;if(Be?Qe&&(st-=1):Qe||(st+=1),_e+st===De)return;let Ct=ue[_e+st];if(!Ct)return;let Ot=this.getNormalisedColumnLeft(Ct,20,B);return{fromLeft:Qe,xPosition:Ot}}getColumnMoveAndTargetInfo(i,o,C){let P=this.lastHighlightedColumn||{},{firstMovingCol:B,lastMovingCol:W}=KP(i);if(!B||!W||P.column||!o)return pe({firstMovingCol:B},P);let ie=this.getPinDirection()==="left";return{firstMovingCol:B,position:ie?1:0,column:ie!==C?B:W}}normaliseDirection(i){if(this.gos.get("enableRtl"))switch(i){case"left":return"right";case"right":return"left"}return i}getNormalisedColumnLeft(i,o,C){let{gos:P,ctrlsSvc:B}=this.beans,W=i.getLeft();if(W==null)return null;let $=i.getActualWidth();return _0({x:C?W+$-o:W+o,pinned:i.getPinned(),useHeaderRow:C,skipScrollPadding:!0,gos:P,ctrlsSvc:B})}isAttemptingToPin(i){let o=this.needToMoveLeft||this.needToMoveRight,C=this.failedMoveAttempts>N0;return o&&C||i.some(P=>P.getPinned()!==this.pinned)}moveColumnsAfterHighlight(i){let{allMovingColumns:o,xPosition:C,fromEnter:P,fakeEvent:B,fromLeft:W}=i,$=this.getMoveColumnParams({allMovingColumns:o,isFromHeader:!0,xPosition:C,fromLeft:W,fromEnter:P,fakeEvent:B}),{columns:ie,toIndex:ue}=Xx($)||{};ie&&ue!=null&&(this.lastMovedInfo={columns:ie,toIndex:ue}),this.finishColumnMoving()}clearHighlighted(){let{lastHighlightedColumn:i}=this;i&&(Xs(i.column,null),this.lastHighlightedColumn=null)}checkCenterForScrolling(i){if(!this.isCenterContainer)return;let o=this.beans.ctrlsSvc.get("center"),C=o.getCenterViewportScrollLeft(),P=C+o.getCenterWidth(),B,W;this.gos.get("enableRtl")?(B=i<C+Cb,W=i>P-Cb):(W=i<C+Cb,B=i>P-Cb),this.needToMoveRight=B,this.needToMoveLeft=W,W||B?this.ensureIntervalStarted():this.ensureIntervalCleared()}ensureIntervalStarted(){var i;this.movingIntervalId||(this.intervalCount=0,this.failedMoveAttempts=0,this.movingIntervalId=window.setInterval(this.moveInterval.bind(this),eM),(i=this.beans.dragAndDrop.getDragAndDropImageComponent())==null||i.setIcon(this.needToMoveLeft?"left":"right",!0))}ensureIntervalCleared(){var i;this.movingIntervalId&&(window.clearInterval(this.movingIntervalId),this.movingIntervalId=null,this.failedMoveAttempts=0,(i=this.beans.dragAndDrop.getDragAndDropImageComponent())==null||i.setIcon(this.getIconName(),!1))}moveInterval(){var P,B;let i;this.intervalCount++,i=10+this.intervalCount*CD,i>z0&&(i=z0);let o=null,C=this.gridBodyCon.scrollFeature;if(this.needToMoveLeft?o=C.scrollHorizontally(-i):this.needToMoveRight&&(o=C.scrollHorizontally(i)),o!==0)this.onDragging(this.lastDraggingEvent),this.failedMoveAttempts=0;else{this.failedMoveAttempts++;let{pinnedCols:W,dragAndDrop:$,gos:ie}=this.beans;if(this.failedMoveAttempts<=N0+1||!W)return;if((P=$.getDragAndDropImageComponent())==null||P.setIcon("pinned",!1),!ie.get("suppressMoveWhenColumnDragging")){let ue=(B=this.lastDraggingEvent)==null?void 0:B.dragItem.columns;this.attemptToPinColumns(ue,void 0,!0)}}}getPinDirection(){if(this.needToMoveLeft||this.pinned==="left")return"left";if(this.needToMoveRight||this.pinned==="right")return"right"}attemptToPinColumns(i,o,C=!1){let P=(i||[]).filter($=>!$.getColDef().lockPinned);if(!P.length)return 0;C&&(o=this.getPinDirection());let{pinnedCols:B,dragAndDrop:W}=this.beans;return B==null||B.setColsPinned(P,o,"uiColumnDragged"),C&&W.nudge(),P.length}destroy(){super.destroy(),this.lastDraggingEvent=null,this.clearHighlighted(),this.lastMovedInfo=null}};function Xs(i,o){i.highlighted!==o&&(i.highlighted=o,i.dispatchColEvent("headerHighlightChanged","uiColumnMoved"))}function KP(i){let o=i.length,C,P;for(let B=0;B<=o;B++){if(!C){let W=i[B];W.getLeft()!=null&&(C=W)}if(!P){let W=i[o-1-B];W.getLeft()!=null&&(P=W)}if(C&&P)break}return{firstMovingCol:C,lastMovingCol:P}}var SD=class extends ei{constructor(i,o){super(),this.pinned=i,this.eContainer=o}postConstruct(){let{ctrlsSvc:i,dragAndDrop:o}=this.beans,C=this.pinned;i.whenReady(this,P=>{let B,W=P.gridBodyCtrl.eBodyViewport;switch(C){case"left":B=[[W,P.left.eContainer],[P.bottomLeft.eContainer],[P.topLeft.eContainer]];break;case"right":B=[[W,P.right.eContainer],[P.bottomRight.eContainer],[P.topRight.eContainer]];break;default:B=[[W,P.center.eViewport],[P.bottomCenter.eViewport],[P.topCenter.eViewport]];break}this.eSecondaryContainers=B}),this.moveColumnFeature=this.createManagedBean(new ec(C)),this.bodyDropPivotTarget=this.createManagedBean(new bD(C)),o.addDropTarget(this),this.addDestroyFunc(()=>o.removeDropTarget(this))}isInterestedIn(i){return i===1||i===0&&this.gos.get("allowDragFromColumnsToolPanel")}getSecondaryContainers(){return this.eSecondaryContainers}getContainer(){return this.eContainer}getIconName(){return this.currentDropListener.getIconName()}isDropColumnInPivotMode(i){return this.beans.colModel.isPivotMode()&&i.dragSource.type===0}onDragEnter(i){this.currentDropListener=this.isDropColumnInPivotMode(i)?this.bodyDropPivotTarget:this.moveColumnFeature,this.currentDropListener.onDragEnter(i)}onDragLeave(i){this.currentDropListener.onDragLeave(i)}onDragging(i){this.currentDropListener.onDragging(i)}onDragStop(i){this.currentDropListener.onDragStop(i)}onDragCancel(){this.currentDropListener.onDragCancel()}},Wm=class extends ei{constructor(){super(...arguments),this.beanName="colMoves"}moveColumnByIndex(i,o,C){let P=this.beans.colModel.getCols();if(!P)return;let B=P[i];this.moveColumns([B],o,C)}moveColumns(i,o,C,P=!0){let{colModel:B,colAnimation:W,visibleCols:$,eventSvc:ie}=this.beans,ue=B.getCols();if(!ue)return;if(o>ue.length-i.length){pi(30,{toIndex:o});return}W==null||W.start();let De=B.getColsForKeys(i);this.doesMovePassRules(De,o)&&(n0(B.getCols(),De,o),$.refresh(C),ie.dispatchEvent({type:"columnMoved",columns:De,column:De.length===1?De[0]:null,toIndex:o,finished:P,source:C})),W==null||W.finish()}doesMovePassRules(i,o){let C=this.getProposedColumnOrder(i,o);return this.doesOrderPassRules(C)}doesOrderPassRules(i){let{colModel:o,gos:C}=this.beans;return!(!fh(i,o.getColTree())||!(B=>{let W=De=>De?De==="left"||De===!0?-1:1:0,$=C.get("enableRtl"),ie=$?1:-1,ue=!0;return B.forEach(De=>{let _e=W(De.getColDef().lockPosition);$?_e>ie&&(ue=!1):_e<ie&&(ue=!1),ie=_e}),ue})(i))}getProposedColumnOrder(i,o){let P=this.beans.colModel.getCols().slice();return n0(P,i,o),P}createBodyDropTarget(i,o){return new SD(i,o)}moveHeader(i,o,C,P,B){let{ctrlsSvc:W,gos:$,colModel:ie,visibleCols:ue,focusSvc:De}=this.beans,_e=o.getBoundingClientRect(),Be=_e.left,Qe=Io(C),st=Qe?_e.width:C.getActualWidth(),Ct=i==="left"!==$.get("enableRtl"),Ot=_0({x:Ct?Be-20:Be+st+20,pinned:P,fromKeyboard:!0,gos:$,ctrlsSvc:W}),Pt=De.focusedHeader;bb({allMovingColumns:Qe?C.getLeafColumns():[C],isFromHeader:!0,fromLeft:i==="right",xPosition:Ot,pinned:P,fromEnter:!1,fakeEvent:!1,gos:$,colModel:ie,colMoves:this,visibleCols:ue,finished:!0});let Kt;if(Qe){let ti=C.getDisplayedLeafColumns();Kt=Ct?ti[0]:Sa(ti)}else Kt=C;if(W.getScrollFeature().ensureColumnVisible(Kt,"auto"),(!B.isAlive()||$.get("ensureDomOrder"))&&Pt){let ti;if(Qe){let Jt=C.getGroupId(),ai=C.getLeafColumns();if(!ai.length)return;let Mi=ai[0].getParent();if(!Mi)return;ti=KI(Mi,Jt)}else ti=C;ti&&De.focusHeaderPosition({headerPosition:et(pe({},Pt),{column:ti})})}}setDragSourceForHeader(i,o,C){let{gos:P,colModel:B,dragAndDrop:W,visibleCols:$}=this.beans,ie=!P.get("suppressDragLeaveHidesColumns"),ue=Io(o),De=ue?o.getProvidedColumnGroup().getLeafColumns():[o],Be={type:1,eElement:i,getDefaultIconName:()=>ie?"hide":"notAllowed",getDragItem:ue?()=>B0(o,$.allCols):()=>qI(o),dragItemName:C,onDragStarted:()=>{ie=!P.get("suppressDragLeaveHidesColumns"),F0(De,!0)},onDragStopped:()=>F0(De,!1),onDragCancelled:()=>F0(De,!1),onGridEnter:Qe=>{if(ie){let{columns:st=[],visibleState:Ct}=Qe!=null?Qe:{},Ot=ue?Kt=>!Ct||Ct[Kt.getColId()]:()=>!0,Pt=st.filter(Kt=>!Kt.getColDef().lockVisible&&Ot(Kt));B.setColsVisible(Pt,!0,"uiColumnMoved")}},onGridExit:Qe=>{var st;if(ie){let Ct=((st=Qe==null?void 0:Qe.columns)==null?void 0:st.filter(Ot=>!Ot.getColDef().lockVisible))||[];B.setColsVisible(Ct,!1,"uiColumnMoved")}}};return W.addDragSource(Be,!0),Be}};function KI(i,o){for(;i;){if(i.getGroupId()===o)return i;i=i.getParent()}}function qI(i){let o={};return o[i.getId()]=i.isVisible(),{columns:[i],visibleState:o}}function B0(i,o){let C=i.getProvidedColumnGroup().getLeafColumns(),P={};C.forEach(ie=>P[ie.getId()]=ie.isVisible());let B=[];o.forEach(ie=>{C.indexOf(ie)>=0&&(B.push(ie),qo(C,ie))}),C.forEach(ie=>B.push(ie));let W=[],$=i.getLeafColumns();for(let ie of B)$.indexOf(ie)!==-1&&W.push(ie);return{columns:B,columnsInSplit:W,visibleState:P}}var YI={moduleName:"ColumnMove",version:yi,beans:[Wm,qx],apiFunctions:{moveColumnByIndex:Av,moveColumns:Yx},dependsOn:[yb],css:[O0]},Um=class extends ei{constructor(){super(...arguments),this.beanName="autoWidthCalc"}postConstruct(){this.beans.ctrlsSvc.whenReady(this,i=>{this.centerRowContainerCtrl=i.center})}getPreferredWidthForColumn(i,o){let C=this.getHeaderCellForColumn(i);if(!C)return-1;let P=this.beans.rowRenderer.getAllCellsNotSpanningForColumn(i);return o||P.push(C),this.addElementsToContainerAndGetWidth(P)}getPreferredWidthForColumnGroup(i){let o=this.getHeaderCellForColumn(i);return o?this.addElementsToContainerAndGetWidth([o]):-1}addElementsToContainerAndGetWidth(i){let o=document.createElement("form");o.style.position="fixed";let C=this.centerRowContainerCtrl.eContainer;i.forEach(W=>this.cloneItemIntoDummy(W,o)),C.appendChild(o);let P=o.offsetWidth;C.removeChild(o);let B=this.gos.get("autoSizePadding");return P+B}getHeaderCellForColumn(i){let o=null;return this.beans.ctrlsSvc.getHeaderRowContainerCtrls().forEach(C=>{let P=C.getHtmlElementForColumnHeader(i);P!=null&&(o=P)}),o}cloneItemIntoDummy(i,o){let C=i.cloneNode(!0);C.style.width="",C.style.position="static",C.style.left="";let P=document.createElement("div"),B=P.classList;["ag-header-cell","ag-header-group-cell"].some(ie=>C.classList.contains(ie))?(B.add("ag-header","ag-header-row"),P.style.position="static"):B.add("ag-row");let $=i.parentElement;for(;$;){if(["ag-header-row","ag-row"].some(ue=>$.classList.contains(ue))){for(let ue=0;ue<$.classList.length;ue++){let De=$.classList[ue];De!="ag-row-position-absolute"&&B.add(De)}break}$=$.parentElement}P.appendChild(C),o.appendChild(P)}},Sb={moduleName:"AutoWidth",version:yi,beans:[Um]};function qP(i,o,C=!0,P="api"){var B;(B=i.colResize)==null||B.setColumnWidths(o,!1,C,P)}var YP=class extends ei{constructor(i,o,C,P){super(),this.comp=i,this.eResize=o,this.pinned=C,this.columnGroup=P}postConstruct(){if(!this.columnGroup.isResizable()){this.comp.setResizableDisplayed(!1);return}let{horizontalResizeSvc:i,gos:o,colAutosize:C}=this.beans,P=i.addResizeBar({eResizeBar:this.eResize,onResizeStart:this.onResizeStart.bind(this),onResizing:this.onResizing.bind(this,!1),onResizeEnd:this.onResizing.bind(this,!0)});this.addDestroyFunc(P),!o.get("suppressAutoSize")&&C&&this.addDestroyFunc(C.addColumnGroupResize(this.eResize,this.columnGroup,()=>this.resizeLeafColumnsToFit("uiColumnResized")))}onResizeStart(i){let{columnsToResize:o,resizeStartWidth:C,resizeRatios:P,groupAfterColumns:B,groupAfterStartWidth:W,groupAfterRatios:$}=this.getInitialValues(i);this.resizeCols=o,this.resizeStartWidth=C,this.resizeRatios=P,this.resizeTakeFromCols=B,this.resizeTakeFromStartWidth=W,this.resizeTakeFromRatios=$,this.toggleColumnResizing(!0)}onResizing(i,o,C="uiColumnResized"){let P=this.normaliseDragChange(o),B=this.resizeStartWidth+P;this.resizeColumnsFromLocalValues(B,C,i)}getInitialValues(i){var ue,De;let o=_e=>_e.reduce((Be,Qe)=>Be+Qe.getActualWidth(),0),C=(_e,Be)=>_e.map(Qe=>Qe.getActualWidth()/Be),P=this.getColumnsToResize(),B=o(P),W=C(P,B),$={columnsToResize:P,resizeStartWidth:B,resizeRatios:W},ie=null;if(i&&(ie=(De=(ue=this.beans.colGroupSvc)==null?void 0:ue.getGroupAtDirection(this.columnGroup,"After"))!=null?De:null),ie){let _e=ie.getDisplayedLeafColumns(),Be=$.groupAfterColumns=_e.filter(st=>st.isResizable()),Qe=$.groupAfterStartWidth=o(Be);$.groupAfterRatios=C(Be,Qe)}else $.groupAfterColumns=void 0,$.groupAfterStartWidth=void 0,$.groupAfterRatios=void 0;return $}resizeLeafColumnsToFit(i){let o=this.beans.autoWidthCalc.getPreferredWidthForColumnGroup(this.columnGroup),C=this.getInitialValues();o>C.resizeStartWidth&&this.resizeColumns(C,o,i,!0)}resizeColumnsFromLocalValues(i,o,C=!0){if(!this.resizeCols||!this.resizeRatios)return;let P={columnsToResize:this.resizeCols,resizeStartWidth:this.resizeStartWidth,resizeRatios:this.resizeRatios,groupAfterColumns:this.resizeTakeFromCols,groupAfterStartWidth:this.resizeTakeFromStartWidth,groupAfterRatios:this.resizeTakeFromRatios};this.resizeColumns(P,i,o,C)}resizeColumns(i,o,C,P=!0){var Be;let{columnsToResize:B,resizeStartWidth:W,resizeRatios:$,groupAfterColumns:ie,groupAfterStartWidth:ue,groupAfterRatios:De}=i,_e=[];if(_e.push({columns:B,ratios:$,width:o}),ie){let Qe=o-W;_e.push({columns:ie,ratios:De,width:ue-Qe})}(Be=this.beans.colResize)==null||Be.resizeColumnSets({resizeSets:_e,finished:P,source:C}),P&&this.toggleColumnResizing(!1)}toggleColumnResizing(i){this.comp.addOrRemoveCssClass("ag-column-resizing",i)}getColumnsToResize(){return this.columnGroup.getDisplayedLeafColumns().filter(o=>o.isResizable())}normaliseDragChange(i){let o=i;return this.gos.get("enableRtl")?this.pinned!=="left"&&(o*=-1):this.pinned==="right"&&(o*=-1),o}destroy(){super.destroy(),this.resizeCols=void 0,this.resizeRatios=void 0,this.resizeTakeFromCols=void 0,this.resizeTakeFromRatios=void 0}},G0=class extends ei{constructor(i,o,C,P,B){super(),this.pinned=i,this.column=o,this.eResize=C,this.comp=P,this.ctrl=B}postConstruct(){let i=[],o,C,P=()=>{if(Un(this.eResize,o),!o)return;let{horizontalResizeSvc:$,colAutosize:ie}=this.beans,ue=$.addResizeBar({eResizeBar:this.eResize,onResizeStart:this.onResizeStart.bind(this),onResizing:this.onResizing.bind(this,!1),onResizeEnd:this.onResizing.bind(this,!0)});i.push(ue),C&&ie&&i.push(ie.addColumnAutosize(this.eResize,this.column))},B=()=>{i.forEach($=>$()),i.length=0},W=()=>{let $=this.column.isResizable(),ie=!this.gos.get("suppressAutoSize")&&!this.column.getColDef().suppressAutoSize;($!==o||ie!==C)&&(o=$,C=ie,B(),P())};W(),this.addDestroyFunc(B),this.ctrl.setRefreshFunction("resize",W)}onResizing(i,o){var Qe,st;let{column:C,lastResizeAmount:P,resizeStartWidth:B,beans:W}=this,$=this.normaliseResizeAmount(o),ie=B+$,ue=[{key:C,newWidth:ie}],{pinnedCols:De,ctrlsSvc:_e,colResize:Be}=W;if(this.column.getPinned()){let Ct=(Qe=De==null?void 0:De.leftWidth)!=null?Qe:0,Ot=(st=De==null?void 0:De.rightWidth)!=null?st:0,Pt=to(_e.getGridBodyCtrl().eBodyViewport)-50;if(Ct+Ot+($-P)>Pt)return}this.lastResizeAmount=$,Be==null||Be.setColumnWidths(ue,this.resizeWithShiftKey,i,"uiColumnResized"),i&&this.toggleColumnResizing(!1)}onResizeStart(i){this.resizeStartWidth=this.column.getActualWidth(),this.lastResizeAmount=0,this.resizeWithShiftKey=i,this.toggleColumnResizing(!0)}toggleColumnResizing(i){this.comp.addOrRemoveCssClass("ag-column-resizing",i)}normaliseResizeAmount(i){let o=i,C=this.pinned!=="left",P=this.pinned==="right";return this.gos.get("enableRtl")?C&&(o*=-1):P&&(o*=-1),o}},XI=class extends ei{constructor(){super(...arguments),this.beanName="colResize"}setColumnWidths(i,o,C,P){let B=[],{colModel:W,gos:$,visibleCols:ie}=this.beans;i.forEach(ue=>{let De=W.getColDefCol(ue.key)||W.getCol(ue.key);if(!De)return;if(B.push({width:ue.newWidth,ratios:[1],columns:[De]}),$.get("colResizeDefault")==="shift"&&(o=!o),o){let Be=ie.getColAfter(De);if(!Be)return;let Qe=De.getActualWidth()-ue.newWidth,st=Be.getActualWidth()+Qe;B.push({width:st,ratios:[1],columns:[Be]})}}),B.length!==0&&this.resizeColumnSets({resizeSets:B,finished:C,source:P})}resizeColumnSets(i){var _e;let{resizeSets:o,finished:C,source:P}=i;if(!(!o||o.every(Be=>ZI(Be)))){if(C){let Be=o&&o.length>0?o[0].columns:null;ig(this.eventSvc,Be,C,P)}return}let W=[],$=[];o.forEach(Be=>{let{width:Qe,columns:st,ratios:Ct}=Be,Ot={},Pt={};st.forEach(Jt=>$.push(Jt));let Kt=!0,ti=0;for(;Kt;){if(ti++,ti>1e3){Ea(31);break}Kt=!1;let Jt=[],ai=0,Mi=Qe;st.forEach((Fn,Xn)=>{if(Pt[Fn.getId()])Mi-=Ot[Fn.getId()];else{Jt.push(Fn);let ba=Ct[Xn];ai+=ba}});let qi=1/ai;Jt.forEach((Fn,Xn)=>{let Ga=Xn===Jt.length-1,ba;Ga?ba=Mi:(ba=Math.round(Ct[Xn]*Qe*qi),Mi-=ba);let Qa=Fn.getMinWidth(),gn=Fn.getMaxWidth();ba<Qa?(ba=Qa,Pt[Fn.getId()]=!0,Kt=!0):gn>0&&ba>gn&&(ba=gn,Pt[Fn.getId()]=!0,Kt=!0),Ot[Fn.getId()]=ba})}st.forEach(Jt=>{let ai=Ot[Jt.getId()];Jt.getActualWidth()!==ai&&(Jt.setActualWidth(ai,P),W.push(Jt))})});let ie=W.length>0,ue=[];if(ie){let{colFlex:Be,visibleCols:Qe,colViewport:st}=this.beans;ue=(_e=Be==null?void 0:Be.refreshFlexedColumns({resizingCols:$,skipSetLeft:!0}))!=null?_e:[],Qe.setLeftValues(P),Qe.updateBodyWidths(),st.checkViewportColumns()}let De=$.concat(ue);(ie||C)&&ig(this.eventSvc,De,C,P,ue)}resizeHeader(i,o,C){if(!i.isResizable())return;let P=i.getActualWidth(),B=i.getMinWidth(),W=i.getMaxWidth(),$=Math.min(Math.max(P+o,B),W);this.setColumnWidths([{key:i,newWidth:$}],C,!0,"uiColumnResized")}createResizeFeature(i,o,C,P,B){return new G0(i,o,C,P,B)}createGroupResizeFeature(i,o,C,P){return new YP(i,o,C,P)}};function ZI(i){let{columns:o,width:C}=i,P=0,B=0,W=!0;o.forEach(ue=>{let De=ue.getMinWidth();P+=De||0;let _e=ue.getMaxWidth();_e>0?B+=_e:W=!1});let $=C>=P,ie=!W||C<=B;return $&&ie}var XP={moduleName:"ColumnResize",version:yi,beans:[XI],apiFunctions:{setColumnWidths:qP},dependsOn:[kv,Sb]},wD=class extends ei{constructor(i,o){super(),this.removeChildListenersFuncs=[],this.columnGroup=o,this.comp=i}postConstruct(){this.addListenersToChildrenColumns(),this.addManagedListeners(this.columnGroup,{displayedChildrenChanged:this.onDisplayedChildrenChanged.bind(this)}),this.onWidthChanged(),this.addDestroyFunc(this.removeListenersOnChildrenColumns.bind(this))}addListenersToChildrenColumns(){this.removeListenersOnChildrenColumns();let i=this.onWidthChanged.bind(this);this.columnGroup.getLeafColumns().forEach(o=>{o.addEventListener("widthChanged",i),o.addEventListener("visibleChanged",i),this.removeChildListenersFuncs.push(()=>{o.removeEventListener("widthChanged",i),o.removeEventListener("visibleChanged",i)})})}removeListenersOnChildrenColumns(){this.removeChildListenersFuncs.forEach(i=>i()),this.removeChildListenersFuncs=[]}onDisplayedChildrenChanged(){this.addListenersToChildrenColumns(),this.onWidthChanged()}onWidthChanged(){let i=this.columnGroup.getActualWidth();this.comp.setWidth(`${i}px`),this.comp.addOrRemoveCssClass("ag-hidden",i===0)}},ZP=class extends oa{constructor(){super(...arguments),this.onSuppressColMoveChange=()=>{!this.isAlive()||this.isSuppressMoving()?this.removeDragSource():this.dragSource||this.setDragSource(this.eGui)}}setComp(i,o,C,P,B){let{column:W,beans:$}=this,{context:ie,colNames:ue,colHover:De,colResize:_e}=$;this.comp=i,B=Sh(this,ie,B),this.setGui(o,B),this.displayName=ue.getDisplayNameForColumnGroup(W,"header"),this.addClasses(),this.setupMovingCss(B),this.setupExpandable(B),this.setupTooltip(),this.setupAutoHeight({wrapperElement:P,compBean:B}),this.setupUserComp(),this.addHeaderMouseListeners(B),this.addManagedPropertyListener("groupHeaderHeight",this.refreshMaxHeaderHeight.bind(this)),this.refreshMaxHeaderHeight();let Be=this.rowCtrl.pinned,Qe=W.getProvidedColumnGroup().getLeafColumns();De==null||De.createHoverFeature(B,Qe,o),B.createManagedBean(new ub(W,o,$)),B.createManagedBean(new wD(i,W)),_e?this.resizeFeature=B.createManagedBean(_e.createGroupResizeFeature(i,C,Be,W)):i.setResizableDisplayed(!1),B.createManagedBean(new Eh(o,{shouldStopEventPropagation:this.shouldStopEventPropagation.bind(this),onTabKeyDown:()=>{},handleKeyDown:this.handleKeyDown.bind(this),onFocusIn:this.onFocusIn.bind(this)})),this.addHighlightListeners(B,Qe),B.addManagedPropertyListener("suppressMovableColumns",this.onSuppressColMoveChange),this.addResizeAndMoveKeyboardListeners(B),B.addDestroyFunc(()=>this.clearComponent())}refreshMaxHeaderHeight(){let{gos:i,comp:o}=this,C=i.get("groupHeaderHeight");C!=null?C===0?o.setHeaderWrapperHidden(!0):o.setHeaderWrapperMaxHeight(C):(o.setHeaderWrapperHidden(!1),o.setHeaderWrapperMaxHeight(null))}addHighlightListeners(i,o){if(this.beans.gos.get("suppressMoveWhenColumnDragging"))for(let C of o)i.addManagedListeners(C,{headerHighlightChanged:this.onLeafColumnHighlightChanged.bind(this,C)})}onLeafColumnHighlightChanged(i){let o=this.column.getDisplayedLeafColumns(),C=o[0]===i,P=Sa(o)===i;if(!C&&!P)return;let B=i.getHighlighted(),W=!!this.rowCtrl.findHeaderCellCtrl(ue=>ue.column.isMoving()),$=!1,ie=!1;if(W){let ue=this.beans.gos.get("enableRtl"),De=B===1,_e=B===0;C&&(ue?ie=De:$=_e),P&&(ue?$=_e:ie=De)}this.comp.addOrRemoveCssClass("ag-header-highlight-before",$),this.comp.addOrRemoveCssClass("ag-header-highlight-after",ie)}resizeHeader(i,o){let{resizeFeature:C}=this;if(!C)return;let P=C.getInitialValues(o);C.resizeColumns(P,P.resizeStartWidth+i,"uiColumnResized",!0)}resizeLeafColumnsToFit(i){var o;(o=this.resizeFeature)==null||o.resizeLeafColumnsToFit(i)}setupUserComp(){let{colGroupSvc:i,userCompFactory:o,gos:C}=this.beans,P=C.addGridCommonParams({displayName:this.displayName,columnGroup:this.column,setExpanded:W=>{i.setColumnGroupOpened(this.column.getProvidedColumnGroup(),W,"gridInitializing")},setTooltip:(W,$)=>{C.assertModuleRegistered("Tooltip",3),this.setupTooltip(W,$)}}),B=Rm(o,P);B&&this.comp.setUserCompDetails(B)}addHeaderMouseListeners(i){let o=B=>this.handleMouseOverChange(B.type==="mouseenter"),C=()=>this.dispatchColumnMouseEvent("columnHeaderClicked",this.column.getProvidedColumnGroup()),P=B=>this.handleContextMenuMouseEvent(B,void 0,this.column.getProvidedColumnGroup());i.addManagedListeners(this.eGui,{mouseenter:o,mouseleave:o,click:C,contextmenu:P})}handleMouseOverChange(i){this.eventSvc.dispatchEvent({type:i?"columnHeaderMouseOver":"columnHeaderMouseLeave",column:this.column.getProvidedColumnGroup()})}setupTooltip(i,o){var C;this.tooltipFeature=(C=this.beans.tooltipSvc)==null?void 0:C.setupHeaderGroupTooltip(this.tooltipFeature,this,i,o)}setupExpandable(i){let o=this.column.getProvidedColumnGroup();this.refreshExpanded();let C=this.refreshExpanded.bind(this);i.addManagedListeners(o,{expandedChanged:C,expandableChanged:C})}refreshExpanded(){let{column:i}=this;this.expandable=i.isExpandable();let o=i.isExpanded();this.expandable?this.comp.setAriaExpanded(o?"true":"false"):this.comp.setAriaExpanded(void 0)}addClasses(){let{column:i}=this,o=i.getColGroupDef(),C=Ka(o,this.gos,null,i);i.isPadding()?(C.push("ag-header-group-cell-no-group"),i.getLeafColumns().every(B=>B.isSpanHeaderHeight())&&C.push("ag-header-span-height")):(C.push("ag-header-group-cell-with-group"),o!=null&&o.wrapHeaderText&&C.push("ag-header-cell-wrap-text")),C.forEach(P=>this.comp.addOrRemoveCssClass(P,!0))}setupMovingCss(i){let{column:o}=this,P=o.getProvidedColumnGroup().getLeafColumns(),B=()=>this.comp.addOrRemoveCssClass("ag-header-cell-moving",o.isMoving());P.forEach(W=>{i.addManagedListeners(W,{movingChanged:B})}),B()}onFocusIn(i){this.eGui.contains(i.relatedTarget)||this.focusThis()}handleKeyDown(i){super.handleKeyDown(i);let o=this.getWrapperHasFocus();if(!(!this.expandable||!o)&&i.key===Qt.ENTER){let C=this.column,P=!C.isExpanded();this.beans.colGroupSvc.setColumnGroupOpened(C.getProvidedColumnGroup(),P,"uiColumnExpanded")}}setDragSource(i){var o,C;!this.isAlive()||this.isSuppressMoving()||(this.removeDragSource(),i&&(this.dragSource=(C=(o=this.beans.colMoves)==null?void 0:o.setDragSourceForHeader(i,this.column,this.displayName))!=null?C:null))}isSuppressMoving(){return this.gos.get("suppressMovableColumns")||this.column.getLeafColumns().some(i=>i.getColDef().suppressMovable||i.getColDef().lockPosition)}destroy(){this.tooltipFeature=this.destroyBean(this.tooltipFeature),super.destroy()}};function $P(i,o,C){var P;(P=i.colGroupSvc)==null||P.setColumnGroupOpened(o,C,"api")}function QP(i,o,C){var P,B;return(B=(P=i.colGroupSvc)==null?void 0:P.getColumnGroup(o,C))!=null?B:null}function xD(i,o){var C,P;return(P=(C=i.colGroupSvc)==null?void 0:C.getProvidedColGroup(o))!=null?P:null}function JP(i,o,C){return i.colNames.getDisplayNameForColumnGroup(o,C)||""}function eL(i){var o,C;return(C=(o=i.colGroupSvc)==null?void 0:o.getColumnGroupState())!=null?C:[]}function tL(i,o){var C;(C=i.colGroupSvc)==null||C.setColumnGroupState(o,"api")}function $I(i){var o;(o=i.colGroupSvc)==null||o.resetColumnGroupState("api")}function j0(i){return i.visibleCols.treeLeft}function QI(i){return i.visibleCols.treeCenter}function iL(i){return i.visibleCols.treeRight}function MD(i){return i.visibleCols.getAllTrees()}function nL(i,o){for(let C=0;C<o.length;C++){let P=i.indexOf(o[C]);P>=0&&(i[P]=i[i.length-1],i.pop())}}var JI=class extends ei{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(i,o=!1){var ie;let{colModel:C,colGroupSvc:P,colViewport:B}=this.beans;o||this.buildTrees(C,P),P==null||P.updateOpenClosedVisibility();let W=V0(this.treeLeft);this.leftCols=W,this.centerCols=V0(this.treeCenter);let $=V0(this.treeRight);this.rightCols=$,this.joinColsAriaOrder(C),this.joinCols(),this.setLeftValues(i),this.autoHeightCols=this.allCols.filter(ue=>ue.isAutoHeight()),(ie=this.beans.colFlex)==null||ie.refreshFlexedColumns(),this.updateBodyWidths(),B.checkViewportColumns(!1),this.setFirstRightAndLastLeftPinned(C,W,$,i),this.eventSvc.dispatchEvent({type:"displayedColumnsChanged",source:i})}updateBodyWidths(){let i=yh(this.centerCols),o=yh(this.leftCols),C=yh(this.rightCols);this.isBodyWidthDirty=this.bodyWidth!==i,(this.bodyWidth!==i||this.leftWidth!==o||this.rightWidth!==C)&&(this.bodyWidth=i,this.leftWidth=o,this.rightWidth=C,this.eventSvc.dispatchEvent({type:"columnContainerWidthChanged"}),this.eventSvc.dispatchEvent({type:"displayedColumnsWidthChanged"}))}setLeftValues(i){this.setLeftValuesOfCols(i),this.setLeftValuesOfGroups()}setFirstRightAndLastLeftPinned(i,o,C,P){let B,W;this.gos.get("enableRtl")?(B=o?o[0]:null,W=C?Sa(C):null):(B=o?Sa(o):null,W=C?C[0]:null),i.getCols().forEach($=>{$.setLastLeftPinned($===B,P),$.setFirstRightPinned($===W,P)})}buildTrees(i,o){let C=i.getColsToShow(),P=C.filter(ue=>ue.getPinned()=="left"),B=C.filter(ue=>ue.getPinned()=="right"),W=C.filter(ue=>ue.getPinned()!="left"&&ue.getPinned()!="right"),$=new ys,ie=ue=>o?o.createColumnGroups(ue):ue.columns;this.treeLeft=ie({columns:P,idCreator:$,pinned:"left",oldDisplayedGroups:this.treeLeft}),this.treeRight=ie({columns:B,idCreator:$,pinned:"right",oldDisplayedGroups:this.treeRight}),this.treeCenter=ie({columns:W,idCreator:$,pinned:null,oldDisplayedGroups:this.treeCenter}),this.updateColsAndGroupsMap()}clear(){this.leftCols=[],this.rightCols=[],this.centerCols=[],this.allCols=[],this.ariaOrderColumns=[]}joinColsAriaOrder(i){let o=i.getCols(),C=[],P=[],B=[];for(let W of o){let $=W.getPinned();$?$===!0||$==="left"?C.push(W):B.push(W):P.push(W)}this.ariaOrderColumns=C.concat(P).concat(B)}getAriaColIndex(i){let o;return Io(i)?o=i.getLeafColumns()[0]:o=i,this.ariaOrderColumns.indexOf(o)+1}setLeftValuesOfGroups(){[this.treeLeft,this.treeRight,this.treeCenter].forEach(i=>{i.forEach(o=>{Io(o)&&o.checkLeft()})})}setLeftValuesOfCols(i){let{colModel:o}=this.beans;if(!o.getColDefCols())return;let P=o.getCols().slice(0),B=this.gos.get("enableRtl");[this.leftCols,this.rightCols,this.centerCols].forEach(W=>{if(B){let $=yh(W);W.forEach(ie=>{$-=ie.getActualWidth(),ie.setLeft($,i)})}else{let $=0;W.forEach(ie=>{ie.setLeft($,i),$+=ie.getActualWidth()})}nL(P,W)}),P.forEach(W=>{W.setLeft(null,i)})}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(i){return this.allCols.indexOf(i)>=0}getLeftColsForRow(i){let{leftCols:o,beans:{colModel:C}}=this;return C.colSpanActive?this.getColsForRow(i,o):o}getRightColsForRow(i){let{rightCols:o,beans:{colModel:C}}=this;return C.colSpanActive?this.getColsForRow(i,o):o}getColsForRow(i,o,C,P){let B=[],W=null;for(let $=0;$<o.length;$++){let ie=o[$],ue=o.length-$,De=Math.min(ie.getColSpan(i),ue),_e=[ie];if(De>1){let Qe=De-1;for(let st=1;st<=Qe;st++)_e.push(o[$+st]);$+=Qe}let Be;C?(Be=!1,_e.forEach(Qe=>{C(Qe)&&(Be=!0)})):Be=!0,Be&&(B.length===0&&W&&(P&&P(ie))&&B.push(W),B.push(ie)),W=ie}return B}getContainerWidth(i){switch(i){case"left":return this.leftWidth;case"right":return this.rightWidth;default:return this.bodyWidth}}getColBefore(i){let o=this.allCols,C=o.indexOf(i);return C>0?o[C-1]:null}isPinningLeft(){return this.leftCols.length>0}isPinningRight(){return this.rightCols.length>0}updateColsAndGroupsMap(){this.colsAndGroupsMap={};let i=o=>{this.colsAndGroupsMap[o.getUniqueId()]=o};xp(this.treeCenter,!1,i),xp(this.treeLeft,!1,i),xp(this.treeRight,!1,i)}isVisible(i){return this.colsAndGroupsMap[i.getUniqueId()]===i}getFirstColumn(){let i=this.gos.get("enableRtl"),o=["leftCols","centerCols","rightCols"];i&&o.reverse();for(let C=0;C<o.length;C++){let P=this[o[C]];if(P.length)return i?Sa(P):P[0]}return null}getColAfter(i){let o=this.allCols,C=o.indexOf(i);return C<o.length-1?o[C+1]:null}getColsLeftWidth(){return yh(this.leftCols)}getDisplayedColumnsRightWidth(){return yh(this.rightCols)}isColAtEdge(i,o){let C=this.allCols;if(!C.length)return!1;let P=o==="first",B;if(Io(i)){let W=i.getDisplayedLeafColumns();if(!W.length)return!1;B=P?W[0]:Sa(W)}else B=i;return(P?C[0]:Sa(C))===B}};function xp(i,o,C){if(i)for(let P=0;P<i.length;P++){let B=i[P];if(Io(B)){let W=o?B.getDisplayedChildren():B.getChildren();xp(W,o,C)}C(B)}}function V0(i){let o=[];return xp(i,!0,C=>{na(C)&&o.push(C)}),o}var Km=class extends ei{constructor(){super(...arguments),this.beanName="colGroupSvc"}getColumnGroupState(){let i=[],o=this.beans.colModel.getColTree();return fl(null,o,C=>{Bs(C)&&i.push({groupId:C.getGroupId(),open:C.isExpanded()})}),i}resetColumnGroupState(i){let o=this.beans.colModel.getColDefColTree();if(!o)return;let C=[];fl(null,o,P=>{if(Bs(P)){let B=P.getColGroupDef(),W={groupId:P.getGroupId(),open:B?B.openByDefault:void 0};C.push(W)}}),this.setColumnGroupState(C,i)}setColumnGroupState(i,o){let{colModel:C,colAnimation:P,visibleCols:B,eventSvc:W}=this.beans;if(!C.getColTree())return;P==null||P.start();let ie=[];i.forEach(ue=>{let De=ue.groupId,_e=ue.open,Be=this.getProvidedColGroup(De);Be&&Be.isExpanded()!==_e&&(Be.setExpanded(_e),ie.push(Be))}),B.refresh(o,!0),ie.length&&W.dispatchEvent({type:"columnGroupOpened",columnGroup:ie.length===1?ie[0]:void 0,columnGroups:ie}),P==null||P.finish()}setColumnGroupOpened(i,o,C){let P;Bs(i)?P=i.getId():P=i||"",this.setColumnGroupState([{groupId:P,open:o}],C)}getProvidedColGroup(i){let o=null;return fl(null,this.beans.colModel.getColTree(),C=>{Bs(C)&&C.getId()===i&&(o=C)}),o}getGroupAtDirection(i,o){let C=i.getProvidedColumnGroup().getLevel()+i.getPaddingLevel(),P=i.getDisplayedLeafColumns(),B=o==="After"?Sa(P):P[0],W=`getCol${o}`;for(;;){let $=this.beans.visibleCols[W](B);if(!$)return null;let ie=this.getColGroupAtLevel($,C);if(ie!==i)return ie}}getColGroupAtLevel(i,o){let C=i.getParent(),P,B;for(;P=C.getProvidedColumnGroup().getLevel(),B=C.getPaddingLevel(),!(P+B<=o);)C=C.getParent();return C}updateOpenClosedVisibility(){let i=this.beans.visibleCols.getAllTrees();xp(i,!1,o=>{Io(o)&&o.calculateDisplayedColumns()})}getColumnGroup(i,o){if(!i)return null;if(Io(i))return i;let C=this.beans.visibleCols.getAllTrees(),P=typeof o=="number",B=null;return xp(C,!1,W=>{if(Io(W)){let $=W,ie;P?ie=i===$.getGroupId()&&o===$.getPartId():ie=i===$.getGroupId(),ie&&(B=$)}}),B}createColumnGroups(i){let{columns:o,idCreator:C,pinned:P,oldDisplayedGroups:B,isStandaloneStructure:W}=i,$=this.mapOldGroupsById(B),ie=[],ue=o;for(;ue.length;){let De=ue;ue=[];let _e=0,Be=Qe=>{let st=_e;_e=Qe;let Ct=De[st],Pt=(Io(Ct)?Ct.getProvidedColumnGroup():Ct).getOriginalParent();if(Pt==null){for(let ti=st;ti<Qe;ti++)ie.push(De[ti]);return}let Kt=this.createColumnGroup(Pt,C,$,P,W);for(let ti=st;ti<Qe;ti++)Kt.addChild(De[ti]);ue.push(Kt)};for(let Qe=1;Qe<De.length;Qe++){let st=De[Qe],Ot=(Io(st)?st.getProvidedColumnGroup():st).getOriginalParent(),Pt=De[_e],ti=(Io(Pt)?Pt.getProvidedColumnGroup():Pt).getOriginalParent();Ot!==ti&&Be(Qe)}_e<De.length&&Be(De.length)}return W||this.setupParentsIntoCols(ie,null),ie}createProvidedColumnGroup(i,o,C,P,B,W,$){let ie=B.getUniqueKey(o.groupId||null,null),ue=this.createMergedColGroupDef(o,ie),De=new Ic(ue,ie,!1,C);this.createBean(De);let _e=this.findExistingGroup(o,W);_e&&W.splice(_e.idx,1);let Be=_e==null?void 0:_e.group;Be&&De.setExpanded(Be.isExpanded());let Qe=lx(this.beans,ue.children,C+1,i,P,B,W,$);return De.setChildren(Qe),De}balanceColumnTree(i,o,C,P){let B=[];for(let W=0;W<i.length;W++){let $=i[W];if(Bs($)){let ie=$,ue=this.balanceColumnTree(ie.getChildren(),o+1,C,P);ie.setChildren(ue),B.push(ie)}else{let ie,ue;for(let De=C-1;De>=o;De--){let _e=P.getUniqueKey(null,null),Be=this.createMergedColGroupDef(null,_e),Qe=new Ic(Be,_e,!0,o);this.createBean(Qe),ue&&ue.setChildren([Qe]),ue=Qe,ie||(ie=ue)}if(ie&&ue)if(B.push(ie),i.some(_e=>Bs(_e))){ue.setChildren([$]);continue}else{ue.setChildren(i);break}B.push($)}}return B}findDepth(i){let o=0,C=i;for(;C&&C[0]&&Bs(C[0]);)o++,C=C[0].getChildren();return o}findMaxDepth(i,o){let C=o;for(let P=0;P<i.length;P++){let B=i[P];if(Bs(B)){let W=B,$=this.findMaxDepth(W.getChildren(),o+1);C<$&&(C=$)}}return C}balanceTreeForAutoCols(i,o){let C=[];return i.forEach(P=>{let B=P;for(let W=o-1;W>=0;W--){let $=new Ic(null,`FAKE_PATH_${P.getId()}}_${W}`,!0,W);this.createBean($),$.setChildren([B]),B.originalParent=$,B=$}o===0&&(P.originalParent=null),C.push(B)}),C}createMergedColGroupDef(i,o){let C={},{gos:P,validation:B}=this.beans;return Object.assign(C,P.get("defaultColGroupDef")),Object.assign(C,i),B==null||B.validateColDef(C,o),C}findExistingGroup(i,o){if(i.groupId!=null)for(let P=0;P<o.length;P++){let B=o[P];if(B.getColGroupDef()&&B.getId()===i.groupId)return{idx:P,group:B}}}createColumnGroup(i,o,C,P,B){let W=i.getGroupId(),$=o.getInstanceIdForKey(W),ie=gv(W,$),ue=C[ie];return ue&&ue.getProvidedColumnGroup()!==i&&(ue=null),Ai(ue)?ue.reset():(ue=new ZA(i,W,$,P),B||this.createBean(ue)),ue}mapOldGroupsById(i){let o={},C=P=>{P.forEach(B=>{if(Io(B)){let W=B;o[B.getUniqueId()]=W,C(W.getChildren())}})};return i&&C(i),o}setupParentsIntoCols(i,o){i.forEach(C=>{if(C.parent=o,Io(C)){let P=C;this.setupParentsIntoCols(P.getChildren(),P)}})}},H0={moduleName:"ColumnGroup",version:yi,dynamicBeans:{headerGroupCellCtrl:ZP},beans:[Km],apiFunctions:{getAllDisplayedColumnGroups:MD,getCenterDisplayedColumnGroups:QI,getColumnGroup:QP,getColumnGroupState:eL,getDisplayNameForColumnGroup:JP,getLeftDisplayedColumnGroups:j0,getProvidedColumnGroup:xD,getRightDisplayedColumnGroups:iL,resetColumnGroupState:$I,setColumnGroupOpened:$P,setColumnGroupState:tL}},Go={moduleName:"CheckboxCellRenderer",version:yi,userComponents:{agCheckboxCellRenderer:fo}};function Mp(i,o){let C=i.colModel.getColDefCol(o);return C?C.getColDef():null}function mg(i){return i.colModel.getColumnDefs()}function fg(i,o,C){return i.colNames.getDisplayNameForColumn(o,C)||""}function Dv(i,o){return i.colModel.getColDefCol(o)}function kD(i){return i.colModel.getColDefCols()}function Eu(i,o){return td(i,o,"api")}function eT(i){return wa(i)}function tc(i){hp(i,"api")}function AD(i){return i.visibleCols.isPinningLeft()||i.visibleCols.isPinningRight()}function wb(i){return i.visibleCols.isPinningLeft()}function W0(i){return i.visibleCols.isPinningRight()}function xb(i,o){return i.visibleCols.getColAfter(o)}function DD(i,o){return i.visibleCols.getColBefore(o)}function tT(i,o,C){i.colModel.setColsVisible(o,C,"api")}function U0(i,o,C){var P;(P=i.pinnedCols)==null||P.setColsPinned(o,C,"api")}function iT(i){return i.colModel.getCols()}function ED(i){return i.visibleCols.leftCols}function ID(i){return i.visibleCols.centerCols}function tM(i){return i.visibleCols.rightCols}function Zs(i){return i.visibleCols.allCols}function kp(i){return i.colViewport.getViewportColumns()}function K0(i,o){if(!i)return;let C=i,P={};return Object.keys(C).forEach(B=>{if(o&&o.indexOf(B)>=0||nv.has(B))return;let W=C[B];typeof W=="object"&&W!==null&&W.constructor===Object?P[B]=K0(W):P[B]=W}),P}var vg=class extends ei{constructor(){super(...arguments),this.beanName="colDefFactory"}wireBeans(i){this.rowGroupColsSvc=i.rowGroupColsSvc,this.pivotColsSvc=i.pivotColsSvc}getColumnDefs(i,o,C,P){var ie,ue;let B=i.slice();o?B.sort((De,_e)=>C.indexOf(De)-C.indexOf(_e)):C&&B.sort((De,_e)=>P.indexOf(De)-P.indexOf(_e));let W=(ie=this.rowGroupColsSvc)==null?void 0:ie.columns,$=(ue=this.pivotColsSvc)==null?void 0:ue.columns;return this.buildColumnDefs(B,W,$)}buildColumnDefs(i,o=[],C=[]){let P=[],B={};return i.forEach(W=>{let $=this.createDefFromColumn(W,o,C),ie=!0,ue=$,De=W.getOriginalParent(),_e=null;for(;De;){let Be=null;if(De.isPadding()){De=De.getOriginalParent();continue}let Qe=B[De.getGroupId()];if(Qe){Qe.children.push(ue),ie=!1;break}if(Be=this.createDefFromGroup(De),Be&&(Be.children=[ue],B[Be.groupId]=Be,ue=Be,De=De.getOriginalParent()),De!=null&&_e===De){ie=!1;break}_e=De}ie&&P.push(ue)}),P}createDefFromGroup(i){let o=K0(i.getColGroupDef(),["children"]);return o&&(o.groupId=i.getGroupId()),o}createDefFromColumn(i,o,C){let P=K0(i.getColDef());return P.colId=i.getColId(),P.width=i.getActualWidth(),P.rowGroup=i.isRowGroupActive(),P.rowGroupIndex=i.isRowGroupActive()?o.indexOf(i):null,P.pivot=i.isPivotActive(),P.pivotIndex=i.isPivotActive()?C.indexOf(i):null,P.aggFunc=i.isValueActive()?i.getAggFunc():null,P.hide=i.isVisible()?void 0:!0,P.pinned=i.isPinned()?i.getPinned():null,P.sort=i.getSort()?i.getSort():null,P.sortIndex=i.getSortIndex()!=null?i.getSortIndex():null,P}},aL=class extends ei{constructor(){super(...arguments),this.beanName="colFlex"}refreshFlexedColumns(i={}){let o=i.source?i.source:"flex";i.viewportWidth!=null&&(this.flexViewportWidth=i.viewportWidth);let C=this.flexViewportWidth;if(!C)return[];let{visibleCols:P}=this.beans,B=P.centerCols,W=-1;if(i.resizingCols){let Ct=new Set(i.resizingCols);for(let Ot=B.length-1;Ot>=0;Ot--)if(Ct.has(B[Ot])){W=Ot;break}}let $=!1,ie=B.map((Ct,Ot)=>{let Pt=Ct.getFlex(),Kt=Pt!=null&&Pt>0&&Ot>W;return $||($=Kt),{col:Ct,isFlex:Kt,flex:Math.max(0,Pt!=null?Pt:0),initialSize:Ct.getActualWidth(),min:Ct.getMinWidth(),max:Ct.getMaxWidth(),targetSize:0}});if(!$)return[];let ue=ie.length,De=ie.reduce((Ct,Ot)=>Ct+Ot.flex,0),_e=C,Be=(Ct,Ot)=>{Ct.frozenSize=Ot,Ct.col.setActualWidth(Ot,o),_e-=Ot,De-=Ct.flex,ue-=1},Qe=Ct=>Ct.frozenSize!=null;for(let Ct of ie)Ct.isFlex||Be(Ct,Ct.initialSize);for(;ue>0;){let Ct=Math.round(De<1?_e*De:_e),Ot,Pt=0,Kt=0;for(let ai of ie){if(Qe(ai))continue;Ot=ai,Kt+=Ct*(ai.flex/De);let Mi=Kt-Pt,qi=Math.round(Mi);ai.targetSize=qi,Pt+=qi}Ot&&(Ot.targetSize+=Ct-Pt);let ti=0;for(let ai of ie){if(Qe(ai))continue;let Mi=ai.targetSize,qi=Math.min(Math.max(Mi,ai.min),ai.max);ti+=qi-Mi,ai.violationType=qi===Mi?void 0:qi<Mi?"max":"min",ai.targetSize=qi}let Jt=ti===0?"all":ti>0?"min":"max";for(let ai of ie)Qe(ai)||(Jt==="all"||ai.violationType===Jt)&&Be(ai,ai.targetSize)}i.skipSetLeft||P.setLeftValues(o),i.updateBodyWidths&&P.updateBodyWidths();let st=ie.filter(Ct=>Ct.isFlex&&!Ct.violationType).map(Ct=>Ct.col);if(i.fireResizedEvent){let Ct=ie.filter(Pt=>Pt.initialSize!==Pt.frozenSize).map(Pt=>Pt.col),Ot=ie.filter(Pt=>Pt.flex).map(Pt=>Pt.col);ig(this.eventSvc,Ct,!0,o,Ot)}return st}initCol(i){let{flex:o,initialFlex:C}=i.colDef;o!==void 0?i.flex=o:C!==void 0&&(i.flex=C)}setColFlex(i,o){i.flex=o!=null?o:null,i.dispatchStateUpdatedEvent("flex")}},iM=class extends ei{constructor(){super(...arguments),this.beanName="dataTypeSvc",this.dataTypeDefinitions={},this.isPendingInference=!1,this.isColumnTypeOverrideInDataTypeDefinitions=!1,this.columnStateUpdatesPendingInference={},this.columnStateUpdateListenerDestroyFuncs=[]}wireBeans(i){this.colModel=i.colModel}postConstruct(){this.processDataTypeDefinitions(),this.addManagedPropertyListener("dataTypeDefinitions",i=>{this.processDataTypeDefinitions(),this.colModel.recreateColumnDefs(ml(i.source))})}processDataTypeDefinitions(){var $;let i=this.getDefaultDataTypes(),o={};this.dataTypeDefinitions=o;let C={};this.formatValueFuncs=C;let P=ie=>ue=>{let{column:De,node:_e,value:Be}=ue,Qe=De.getColDef().valueFormatter;return Qe===ie.groupSafeValueFormatter&&(Qe=ie.valueFormatter),this.beans.valueSvc.formatValue(De,_e,Be,Qe)};Object.entries(i).forEach(([ie,ue])=>{let De=et(pe({},ue),{groupSafeValueFormatter:qm(ue,this.gos)});o[ie]=De,C[ie]=P(De)});let B=($=this.gos.get("dataTypeDefinitions"))!=null?$:{},W={};this.dataTypeMatchers=W,Object.entries(B).forEach(([ie,ue])=>{let De=this.processDataTypeDefinition(ue,B,[ie],i);De&&(o[ie]=De,ue.dataTypeMatcher&&(W[ie]=ue.dataTypeMatcher),C[ie]=P(De))}),this.checkObjectValueHandlers(i),["dateString","text","number","boolean","date"].forEach(ie=>{let ue=W[ie];ue&&delete W[ie],W[ie]=ue!=null?ue:i[ie].dataTypeMatcher})}processDataTypeDefinition(i,o,C,P){let B,W=i.extendsDataType;if(i.columnTypes&&(this.isColumnTypeOverrideInDataTypeDefinitions=!0),i.extendsDataType===i.baseDataType){let $=P[W],ie=o[W];if($&&ie&&($=ie),!Ev(i,$,W))return;B=Ap($,i)}else{if(C.includes(W)){pi(44);return}let $=o[W];if(!Ev(i,$,W))return;let ie=this.processDataTypeDefinition($,o,[...C,W],P);if(!ie)return;B=Ap(ie,i)}return et(pe({},B),{groupSafeValueFormatter:qm(B,this.gos)})}updateColDefAndGetColumnType(i,o,C){let{cellDataType:P}=o,{field:B}=o;if(P===void 0&&(P=i.cellDataType),(P==null||P===!0)&&(P=this.canInferCellDataType(i,o)?this.inferCellDataType(B,C):!1),!P){i.cellDataType=!1;return}let W=this.dataTypeDefinitions[P];if(!W){pi(47,{cellDataType:P});return}return i.cellDataType=P,W.groupSafeValueFormatter&&(i.valueFormatter=W.groupSafeValueFormatter),W.valueParser&&(i.valueParser=W.valueParser),W.suppressDefaultProperties||this.setColDefPropertiesForBaseDataType(i,P,W,C),W.columnTypes}addColumnListeners(i){if(!this.isPendingInference)return;let o=this.columnStateUpdatesPendingInference[i.getColId()];if(!o)return;let C=P=>{o.add(P.key)};i.addEventListener("columnStateUpdated",C),this.columnStateUpdateListenerDestroyFuncs.push(()=>i.removeEventListener("columnStateUpdated",C))}canInferCellDataType(i,o){var W;let{gos:C}=this;if(!_o(C))return!1;let P={cellRenderer:!0,valueGetter:!0,valueParser:!0,refData:!0};if(Ym(o,P))return!1;let B=o.type===null?i.type:o.type;if(B){let $=(W=C.get("columnTypes"))!=null?W:{};if(Di(B).some(ue=>{let De=$[ue.trim()];return De&&Ym(De,P)}))return!1}return!Ym(i,P)}inferCellDataType(i,o){var W;if(!i)return;let C,P=this.getInitialData();if(P){let $=i.indexOf(".")>=0&&!this.gos.get("suppressFieldDotNotation");C=ph(P,i,$)}else this.initWaitForRowData(o);if(C==null)return;let[B]=(W=Object.entries(this.dataTypeMatchers).find(([$,ie])=>ie(C)))!=null?W:["object"];return B}getInitialData(){var o;let i=this.gos.get("rowData");if(i!=null&&i.length)return i[0];if(this.initialData)return this.initialData;{let C=(o=this.beans.rowModel.rootNode)==null?void 0:o.allLeafChildren;if(C!=null&&C.length)return C[0].data}return null}initWaitForRowData(i){if(this.columnStateUpdatesPendingInference[i]=new Set,this.isPendingInference)return;this.isPendingInference=!0;let o=this.isColumnTypeOverrideInDataTypeDefinitions,{colAutosize:C,eventSvc:P}=this.beans;o&&C&&(C.shouldQueueResizeOperations=!0);let[B]=this.addManagedEventListeners({rowDataUpdateStarted:W=>{let{firstRowData:$}=W;$&&(B==null||B(),this.isPendingInference=!1,this.processColumnsPendingInference($,o),this.columnStateUpdatesPendingInference={},o&&(C==null||C.processResizeOperations()),P.dispatchEvent({type:"dataTypesInferred"}))}})}processColumnsPendingInference(i,o){this.initialData=i;let C=[];this.destroyColumnStateUpdateListeners();let P={},B={};Object.entries(this.columnStateUpdatesPendingInference).forEach(([W,$])=>{let ie=this.colModel.getCol(W);if(!ie)return;let ue=ie.getColDef();if(!this.resetColDefIntoCol(ie,"cellDataTypeInferred"))return;let De=ie.getColDef();if(o&&De.type&&De.type!==ue.type){let _e=q0(ie,$);_e.rowGroup&&_e.rowGroupIndex==null&&(P[W]=_e),_e.pivot&&_e.pivotIndex==null&&(B[W]=_e),C.push(_e)}}),o&&C.push(...this.generateColumnStateForRowGroupAndPivotIndexes(P,B)),C.length&&td(this.beans,{state:C},"cellDataTypeInferred"),this.initialData=null}generateColumnStateForRowGroupAndPivotIndexes(i,o){let C={},{rowGroupColsSvc:P,pivotColsSvc:B}=this.beans;return P==null||P.restoreColumnOrder(C,i),B==null||B.restoreColumnOrder(C,o),Object.values(C)}resetColDefIntoCol(i,o){let C=i.getUserProvidedColDef();if(!C)return!1;let P=ov(this.beans,C,i.getColId());return i.setColDef(P,C,o),!0}checkObjectValueHandlers(i){let o=this.dataTypeDefinitions.object,C=i.object;this.hasObjectValueParser=o.valueParser!==C.valueParser,this.hasObjectValueFormatter=o.valueFormatter!==C.valueFormatter}getDateStringTypeDefinition(i){var C;let{dateString:o}=this.dataTypeDefinitions;return i&&(C=this.getDataTypeDefinition(i))!=null?C:o}getDateParserFunction(i){return this.getDateStringTypeDefinition(i).dateParser}getDateFormatterFunction(i){return this.getDateStringTypeDefinition(i).dateFormatter}getDataTypeDefinition(i){let o=i.getColDef();if(o.cellDataType)return this.dataTypeDefinitions[o.cellDataType]}getBaseDataType(i){var o;return(o=this.getDataTypeDefinition(i))==null?void 0:o.baseDataType}checkType(i,o){var P;if(o==null)return!0;let C=(P=this.getDataTypeDefinition(i))==null?void 0:P.dataTypeMatcher;return C?C(o):!0}validateColDef(i){let o=C=>pi(48,{property:C});if(i.cellDataType==="object"){let{object:C}=this.dataTypeDefinitions;i.valueFormatter===C.groupSafeValueFormatter&&!this.hasObjectValueFormatter&&o("Formatter"),i.editable&&i.valueParser===C.valueParser&&!this.hasObjectValueParser&&o("Parser")}}getFormatValue(i){return this.formatValueFuncs[i]}isColPendingInference(i){return this.isPendingInference&&!!this.columnStateUpdatesPendingInference[i]}setColDefPropertiesForBaseDataType(i,o,C,P){var W;let B=this.formatValueFuncs[o];switch(C.baseDataType){case"number":{i.cellEditor="agNumberCellEditor";break}case"boolean":{i.cellEditor="agCheckboxCellEditor",i.cellRenderer="agCheckboxCellRenderer",i.suppressKeyboardEvent=$=>!!$.colDef.editable&&$.event.key===Qt.SPACE;break}case"date":{i.cellEditor="agDateCellEditor",i.keyCreator=B;break}case"dateString":{i.cellEditor="agDateStringCellEditor",i.keyCreator=B;break}case"object":{i.cellEditorParams={useFormatter:!0},i.comparator=($,ie)=>{let ue=this.colModel.getColDefCol(P),De=ue==null?void 0:ue.getColDef();if(!ue||!De)return 0;let _e=$==null?"":B({column:ue,node:null,value:$}),Be=ie==null?"":B({column:ue,node:null,value:ie});return _e===Be?0:_e>Be?1:-1},i.keyCreator=B;break}}(W=this.beans.filterManager)==null||W.setColDefPropertiesForDataType(i,C,B)}getDefaultDataTypes(){let i=C=>!!C.match("^\\d{4}-\\d{2}-\\d{2}$"),o=this.getLocaleTextFunc();return{number:{baseDataType:"number",valueParser:C=>{var P,B;return((B=(P=C.newValue)==null?void 0:P.trim)==null?void 0:B.call(P))===""?null:Number(C.newValue)},valueFormatter:C=>C.value==null?"":typeof C.value!="number"||isNaN(C.value)?o("invalidNumber","Invalid Number"):String(C.value),dataTypeMatcher:C=>typeof C=="number"},text:{baseDataType:"text",valueParser:C=>C.newValue===""?null:Oo(C.newValue),dataTypeMatcher:C=>typeof C=="string"},boolean:{baseDataType:"boolean",valueParser:C=>{var P,B;return C.newValue==null?C.newValue:((B=(P=C.newValue)==null?void 0:P.trim)==null?void 0:B.call(P))===""?null:String(C.newValue).toLowerCase()==="true"},valueFormatter:C=>C.value==null?"":String(C.value),dataTypeMatcher:C=>typeof C=="boolean"},date:{baseDataType:"date",valueParser:C=>Jl(C.newValue==null?null:String(C.newValue)),valueFormatter:C=>{var P;return C.value==null?"":!(C.value instanceof Date)||isNaN(C.value.getTime())?o("invalidDate","Invalid Date"):(P=os(C.value,!1))!=null?P:""},dataTypeMatcher:C=>C instanceof Date},dateString:{baseDataType:"dateString",dateParser:C=>{var P;return(P=Jl(C))!=null?P:void 0},dateFormatter:C=>{var P;return(P=os(C!=null?C:null,!1))!=null?P:void 0},valueParser:C=>i(String(C.newValue))?C.newValue:null,valueFormatter:C=>i(String(C.value))?C.value:"",dataTypeMatcher:C=>typeof C=="string"&&i(C)},object:{baseDataType:"object",valueParser:()=>null,valueFormatter:C=>{var P;return(P=Oo(C.value))!=null?P:""}}}}destroyColumnStateUpdateListeners(){this.columnStateUpdateListenerDestroyFuncs.forEach(i=>i()),this.columnStateUpdateListenerDestroyFuncs=[]}destroy(){this.dataTypeDefinitions={},this.dataTypeMatchers={},this.formatValueFuncs={},this.columnStateUpdatesPendingInference={},this.destroyColumnStateUpdateListeners(),super.destroy()}};function Ap(i,o){let C=pe(pe({},i),o);return i.columnTypes&&o.columnTypes&&o.appendColumnTypes&&(C.columnTypes=[...Di(i.columnTypes),...Di(o.columnTypes)]),C}function Ev(i,o,C){return o?o.baseDataType!==i.baseDataType?(pi(46),!1):!0:(pi(45,{parentCellDataType:C}),!1)}function qm(i,o){if(i.valueFormatter)return C=>{var P,B,W;if((P=C.node)!=null&&P.group){let $=((B=C.colDef.pivotValueColumn)!=null?B:C.column).getAggFunc();if($){if($==="first"||$==="last")return i.valueFormatter(C);if(i.baseDataType==="number"&&$!=="count"){if(typeof C.value=="number")return i.valueFormatter(C);if(typeof C.value=="object"){if(!C.value)return;if("toNumber"in C.value)return i.valueFormatter(et(pe({},C),{value:C.value.toNumber()}));if("value"in C.value)return i.valueFormatter(et(pe({},C),{value:C.value.value}))}}return}if(o.get("groupDisplayType")==="groupRows"&&!o.get("treeData"))return}else if(o.get("groupHideOpenParents")&&C.column.isRowGroupActive()&&typeof C.value=="string"&&!((W=i.dataTypeMatcher)!=null&&W.call(i,C.value)))return;return i.valueFormatter(C)}}function Iv(i,o,C,P){if(!o[C])return!1;let B=i[C];return B===null?(o[C]=!1,!1):P===void 0?!!B:B===P}function Ym(i,o){return[["cellRenderer","agSparklineCellRenderer"],["valueGetter",void 0],["valueParser",void 0],["refData",void 0]].some(([C,P])=>Iv(i,o,C,P))}function q0(i,o){let C=o0(i);return o.forEach(P=>{delete C[P],P==="rowGroup"?delete C.rowGroupIndex:P==="pivot"&&delete C.pivotIndex}),C}var TD={moduleName:"DataType",version:yi,beans:[iM],dependsOn:[Go]},Ph={moduleName:"ColumnFlex",version:yi,beans:[aL]},Lh={moduleName:"ColumnApi",version:yi,beans:[vg],apiFunctions:{getColumnDef:Mp,getDisplayNameForColumn:fg,getColumn:Dv,getColumns:kD,applyColumnState:Eu,getColumnState:eT,resetColumnState:tc,isPinning:AD,isPinningLeft:wb,isPinningRight:W0,getDisplayedColAfter:xb,getDisplayedColBefore:DD,setColumnsVisible:tT,setColumnsPinned:U0,getAllGridColumns:iT,getDisplayedLeftColumns:ED,getDisplayedCenterColumns:ID,getDisplayedRightColumns:tM,getAllDisplayedColumns:Zs,getAllDisplayedVirtualColumns:kp,getColumnDefs:mg}};function RD(i){if(!i||i==null)return null;let o=/([a-z])([A-Z])/g,C=/([A-Z]+)([A-Z])([a-z])/g;return i.replace(o,"$1 $2").replace(C,"$1 $2$3").replace(/\./g," ").split(" ").map(B=>B.substring(0,1).toUpperCase()+(B.length>1?B.substring(1,B.length):"")).join(" ")}var nM=class extends ei{constructor(){super(...arguments),this.beanName="colNames"}getDisplayNameForColumn(i,o,C=!1){if(!i)return null;let P=this.getHeaderName(i.getColDef(),i,null,null,o),{aggColNameSvc:B}=this.beans;return C&&B?B.getHeaderName(i,P):P}getDisplayNameForProvidedColumnGroup(i,o,C){let P=o==null?void 0:o.getColGroupDef();return P?this.getHeaderName(P,null,i,o,C):null}getDisplayNameForColumnGroup(i,o){return this.getDisplayNameForProvidedColumnGroup(i,i.getProvidedColumnGroup(),o)}getHeaderName(i,o,C,P,B){var $,ie;let W=i.headerValueGetter;if(W){let ue=this.gos.addGridCommonParams({colDef:i,column:o,columnGroup:C,providedColumnGroup:P,location:B});return typeof W=="function"?W(ue):typeof W=="string"?(ie=($=this.beans.expressionSvc)==null?void 0:$.evaluate(W,ue))!=null?ie:null:""}else{if(i.headerName!=null)return i.headerName;if(i.field)return RD(i.field)}return""}},oL=class extends ei{constructor(){super(...arguments),this.beanName="colViewport",this.colsWithinViewport=[],this.headerColsWithinViewport=[],this.colsWithinViewportHash="",this.rowsOfHeadersToRenderLeft={},this.rowsOfHeadersToRenderRight={},this.rowsOfHeadersToRenderCenter={}}wireBeans(i){this.visibleCols=i.visibleCols,this.colModel=i.colModel}postConstruct(){this.suppressColumnVirtualisation=this.gos.get("suppressColumnVirtualisation")}setScrollPosition(i,o,C=!1){let{visibleCols:P}=this,B=P.isBodyWidthDirty;if(!(i===this.scrollWidth&&o===this.scrollPosition&&!B)){if(this.scrollWidth=i,this.scrollPosition=o,P.isBodyWidthDirty=!0,this.gos.get("enableRtl")){let $=P.bodyWidth;this.viewportLeft=$-o-i,this.viewportRight=$-o}else this.viewportLeft=o,this.viewportRight=i+o;this.colModel.ready&&this.checkViewportColumns(C)}}getHeadersToRender(i,o){let C;switch(i){case"left":C=this.rowsOfHeadersToRenderLeft[o];break;case"right":C=this.rowsOfHeadersToRenderRight[o];break;default:C=this.rowsOfHeadersToRenderCenter[o];break}return C||[]}extractViewportColumns(){let i=this.visibleCols.centerCols;this.isColumnVirtualisationSuppressed()?(this.colsWithinViewport=i,this.headerColsWithinViewport=i):(this.colsWithinViewport=i.filter(this.isColumnInRowViewport.bind(this)),this.headerColsWithinViewport=i.filter(this.isColumnInHeaderViewport.bind(this)))}isColumnVirtualisationSuppressed(){return this.suppressColumnVirtualisation||this.viewportRight===0}clear(i){this.rowsOfHeadersToRenderLeft={},this.rowsOfHeadersToRenderRight={},this.rowsOfHeadersToRenderCenter={},i||(this.colsWithinViewportHash="")}isColumnInHeaderViewport(i){return i.isAutoHeaderHeight()||Qo(i)?!0:this.isColumnInRowViewport(i)}isColumnInRowViewport(i){if(i.isAutoHeight())return!0;let o=i.getLeft()||0,C=o+i.getActualWidth(),P=this.viewportLeft-200,B=this.viewportRight+200,W=o<P&&C<P,$=o>B&&C>B;return!W&&!$}getViewportColumns(){let{leftCols:i,rightCols:o}=this.visibleCols;return this.colsWithinViewport.concat(i).concat(o)}getColsWithinViewport(i){if(!this.colModel.colSpanActive)return this.colsWithinViewport;let o=W=>{let $=W.getLeft();return Ai($)&&$>this.viewportLeft},C=this.isColumnVirtualisationSuppressed()?void 0:this.isColumnInRowViewport.bind(this),{visibleCols:P}=this,B=P.centerCols;return P.getColsForRow(i,B,C,o)}checkViewportColumns(i=!1){this.extractViewport()&&this.eventSvc.dispatchEvent({type:"virtualColumnsChanged",afterScroll:i})}calculateHeaderRows(){this.clear(!0);let i={},{leftCols:o,rightCols:C,treeLeft:P,treeRight:B,treeCenter:W}=this.visibleCols;this.headerColsWithinViewport.concat(o).concat(C).forEach(ue=>i[ue.getId()]=!0);let ie=(ue,De,_e)=>{let Be=!1;for(let Qe=0;Qe<ue.length;Qe++){let st=ue[Qe],Ct=!1;if(na(st))Ct=i[st.getId()]===!0;else{let Pt=st.getDisplayedChildren();Pt&&(Ct=ie(Pt,De,_e+1))}Ct&&(Be=!0,De[_e]||(De[_e]=[]),De[_e].push(st))}return Be};ie(P,this.rowsOfHeadersToRenderLeft,0),ie(B,this.rowsOfHeadersToRenderRight,0),ie(W,this.rowsOfHeadersToRenderCenter,0)}extractViewport(){let i=P=>`${P.getId()}-${P.getPinned()||"normal"}`;this.extractViewportColumns();let o=this.getViewportColumns().map(i).join("#"),C=this.colsWithinViewportHash!==o;return C&&(this.colsWithinViewportHash=o,this.calculateHeaderRows()),C}};function Qo(i){for(;i;){if(i.isAutoHeaderHeight())return!0;i=i.getParent()}return!1}var nT=class extends ei{constructor(){super(...arguments),this.beanName="agCompUtils"}adaptFunction(i,o){if(!i.cellRenderer)return null;class C{refresh(){return!1}getGui(){return this.eGui}init(B){let W=o(B),$=typeof W;if($==="string"||$==="number"||$==="boolean"){this.eGui=Gt("<span>"+W+"</span>");return}if(W==null){this.eGui=Gt("<span></span>");return}this.eGui=W}}return C}},Y0={moduleName:"CellRendererFunction",version:yi,beans:[nT]},aT=class extends ei{constructor(){super(...arguments),this.beanName="registry",this.agGridDefaults={},this.agGridDefaultParams={},this.jsComps={},this.dynamicBeans={},this.selectors={},this.icons={}}postConstruct(){let i=this.gos.get("components");i!=null&&Object.entries(i).forEach(([o,C])=>{this.jsComps[o]=C})}registerModule(i){let{icons:o,userComponents:C,dynamicBeans:P,selectors:B}=i;if(C){let W=($,ie,ue)=>{this.agGridDefaults[$]=ie,ue&&(this.agGridDefaultParams[$]=ue)};for(let $ of Object.keys(C)){let ie=C[$];typeof ie=="object"?W($,ie.classImp,ie.params):W($,ie)}}if(P)for(let W of Object.keys(P))this.dynamicBeans[W]=P[W];if(B==null||B.forEach(W=>{this.selectors[W.selector]=W}),o)for(let W of Object.keys(o))this.icons[W]=o[W]}getUserComponent(i,o){var ie;let C=(ue,De,_e)=>({componentFromFramework:De,component:ue,params:_e}),{frameworkOverrides:P}=this.beans,B=P.frameworkComponent(o,this.gos.get("components"));if(B!=null)return C(B,!0);let W=this.jsComps[o];if(W){let ue=P.isFrameworkComponent(W);return C(W,ue)}let $=this.agGridDefaults[o];return $?C($,!1,this.agGridDefaultParams[o]):((ie=this.beans.validation)==null||ie.missingUserComponent(i,o,this.agGridDefaults,this.jsComps),null)}createDynamicBean(i,o,...C){let P=this.dynamicBeans[i];if(P==null){if(o)throw new Error(ar(256));return}return new P(...C)}getSelector(i){return this.selectors[i]}getIcon(i){return this.icons[i]}},Wr=23,X0=class extends ei{constructor(){super(...arguments),this.beanName="ctrlsSvc",this.params={},this.ready=!1,this.readyCallbacks=[]}postConstruct(){var i,o,C;this.addEventListener("ready",()=>{this.updateReady(),this.ready&&(this.readyCallbacks.forEach(P=>P(this.params)),this.readyCallbacks.length=0)},(C=(o=(i=this.beans.frameworkOverrides).runWhenReadyAsync)==null?void 0:o.call(i))!=null?C:!1)}updateReady(){let i=Object.values(this.params);this.ready=i.length===Wr&&i.every(o=>{var C;return(C=o==null?void 0:o.isAlive())!=null?C:!1})}whenReady(i,o){this.ready?o(this.params):this.readyCallbacks.push(o),i.addDestroyFunc(()=>{let C=this.readyCallbacks.indexOf(o);C>=0&&this.readyCallbacks.splice(C,1)})}register(i,o){this.params[i]=o,this.updateReady(),this.ready&&this.dispatchLocalEvent({type:"ready"}),o.addDestroyFunc(()=>{this.updateReady()})}get(i){return this.params[i]}getGridBodyCtrl(){return this.params.gridBodyCtrl}getHeaderRowContainerCtrls(){let{leftHeader:i,centerHeader:o,rightHeader:C}=this.params;return[i,C,o]}getHeaderRowContainerCtrl(i){let o=this.params;switch(i){case"left":return o.leftHeader;case"right":return o.rightHeader;default:return o.centerHeader}}getScrollFeature(){return this.getGridBodyCtrl().scrollFeature}},rL=':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}}: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-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-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-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-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{border-bottom:var(--ag-pinned-row-border)}.ag-floating-bottom,.ag-floating-top{display:flex;overflow:hidden;position:relative;white-space:nowrap;width:100%}.ag-floating-bottom{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%}.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{background-color:var(--ag-background-color);border-bottom:var(--ag-row-border);color:var(--ag-cell-text-color);font-family:var(--ag-cell-font-family);font-size:var(--ag-data-font-size);height:var(--ag-row-height);white-space:nowrap;width:100%;--ag-internal-content-line-height:calc(min(var(--ag-row-height), var(--ag-line-height, 1000px)) - var(--ag-internal-row-border-width, 1px))}: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)}: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-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-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}: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{background-color:var(--ag-range-selection-border-color);content:"";height:1px;position:absolute;width:calc(100% - 1px)}:where(.ag-ltr) .ag-row-highlight-above:after,:where(.ag-ltr) .ag-row-highlight-below:after{left:1px}:where(.ag-rtl) .ag-row-highlight-above:after,:where(.ag-rtl) .ag-row-highlight-below:after{right:1px}.ag-row-highlight-above:after{top:0}.ag-row-highlight-below:after{bottom:0}.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-hover.ag-full-width-row.ag-row-group>*{position:relative}.ag-column-hover{background-color:var(--ag-column-hover-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{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%}}: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;&: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-background-color);border:var(--ag-input-border);border-radius:var(--ag-border-radius);cursor:pointer;font-family:inherit;padding:var(--ag-spacing) calc(var(--ag-spacing)*2);&:hover{background-color:var(--ag-row-hover-color)}&:active{border-color:var(--ag-accent-color)}&:disabled{background-color:var(--ag-input-disabled-background-color);border:var(--ag-input-disabled-border);color:var(--ag-input-disabled-text-color)}}.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-background-color);border:var(--ag-input-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}.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{&:hover{background-color:var(--ag-icon-button-hover-color);border-radius:1px;box-shadow:0 0 0 4px var(--ag-icon-button-hover-color)}}.ag-filter-active{--ag-icon-button-hover-color:color-mix(in srgb,transparent,var(--ag-accent-color) 28%);background-color:color-mix(in srgb,transparent,var(--ag-accent-color) 14%);border-radius:1px;outline:solid 4px color-mix(in srgb,transparent,var(--ag-accent-color) 14%);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")}}: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{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{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;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;height:5px;left:0;width:5px}&.ag-resizer-left{bottom:5px;cursor:ew-resize;left:0;top:5px;width:5px}}:where(.ag-ltr) :where(.ag-resizer){&.ag-resizer-topLeft{cursor:nwse-resize}&.ag-resizer-topRight{cursor:nesw-resize}&.ag-resizer-bottomRight{cursor:nwse-resize}&.ag-resizer-bottomLeft{cursor:nesw-resize}}:where(.ag-rtl) :where(.ag-resizer){&.ag-resizer-topLeft{cursor:nesw-resize}&.ag-resizer-topRight{cursor:nwse-resize}&.ag-resizer-bottomRight{cursor:nesw-resize}&.ag-resizer-bottomLeft{cursor:nwse-resize}}',Z0=typeof window!="object"||!((_k=(tR=window==null?void 0:window.document)==null?void 0:tR.fonts)!=null&&_k.forEach),$0=new WeakMap,Tv=(i,o,C)=>{if(Z0)return;let P=o.getRootNode()===document?document.head:o,B=$0.get(P);if(B||(B={css:new Set},$0.set(P,B)),B.css.has(i))return;let W=document.createElement("style");W.dataset.agGlobalCss=C,W.textContent=i,B.last?B.last.insertAdjacentElement("afterend",W):P.insertBefore(W,P.querySelector(":not(title, meta)")),B.css.add(i),B.last=W},aM=i=>{Tv(rL,i,"core"),Array.from(bu()).sort((o,C)=>o.moduleName.localeCompare(C.moduleName)).forEach(o=>{var C;return(C=o.css)==null?void 0:C.forEach(P=>Tv(P,i,`module-${o.moduleName}`))})},oM=new Set,rM=i=>{oM.add(i)},Oh=i=>{if(oM.delete(i),oM.size===0){$0=new WeakMap;for(let o of document.head.querySelectorAll("style[data-ag-global-css]"))o.remove()}},To=i=>new sM(i),Fc="$default",Rv=0,sM=class{constructor({feature:i,params:o,modeParams:C={},css:P,cssImports:B}){var W;this.feature=i,this.css=P,this.cssImports=B,this.modeParams=pe({[Fc]:pe(pe({},(W=C[Fc])!=null?W:{}),o!=null?o:{})},C)}use(i){var C,P;let o=this._inject;if(o==null){let{css:B}=this;if(B){let W=`ag-theme-${(C=this.feature)!=null?C:"part"}-${++Rv}`;typeof B=="function"&&(B=B()),B=`:where(.${W}) {
${B}
}
`;for(let $ of(P=this.cssImports)!=null?P:[])B=`@import url(${JSON.stringify($)});
${B}`;o={css:B,class:W}}else o=!1;this._inject=o}return o&&i&&Tv(o.css,i,o.class),o?o.class:!1}},lM=i=>i.replace(/[A-Z]/g,o=>`-${o}`).toLowerCase(),Mb=i=>`--ag-${lM(i)}`,Iu=i=>`var(${Mb(i)})`,_h=(i,o,C)=>Math.max(o,Math.min(C,i)),yg=i=>{let o=new Map;return C=>{let P=C;return o.has(P)||o.set(P,i(C)),o.get(P)}},ss=i=>({ref:"accentColor",mix:i}),ur=i=>({ref:"foregroundColor",mix:i}),wl=i=>({ref:"foregroundColor",mix:i,onto:"backgroundColor"}),cM={ref:"foregroundColor"},$s={ref:"accentColor"},dd={backgroundColor:"#fff",foregroundColor:"#181d1f",borderColor:ur(.15),chromeBackgroundColor:wl(.02),browserColorScheme:"light"},oT=et(pe({},dd),{textColor:cM,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:{ref:"backgroundColor"},sideButtonSelectedTextColor:{ref:"sideButtonTextColor"},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:"backgroundColor"},headerCellBackgroundTransitionDuration:"0.2s",cellTextColor:{ref:"textColor"},subtleTextColor:{ref:"textColor",mix:.5},rangeSelectionBorderStyle:"solid",rangeSelectionBorderColor:$s,rangeSelectionBackgroundColor:ss(.2),rangeSelectionChartBackgroundColor:"#0058FF1A",rangeSelectionChartCategoryBackgroundColor:"#00FF841A",rangeSelectionHighlightColor:ss(.5),rowHoverColor:ss(.08),columnHoverColor:ss(.05),selectedRowBackgroundColor:ss(.12),modalOverlayBackgroundColor:{ref:"backgroundColor",mix:.66},oddRowBackgroundColor:{ref:"backgroundColor"},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,popupShadow:"0 0 16px #00000026",cardShadow:"0 1px 4px 1px #00000018",dropdownShadow:{ref:"cardShadow"},dragAndDropImageBackgroundColor:{ref:"backgroundColor"},dragAndDropImageBorder:!0,dragAndDropImageShadow:{ref:"popupShadow"},dragHandleColor:ur(.7),focusShadow:{spread:3,color:ss(.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:"iconSize + widgetVerticalSpacing"},iconSize:16,toggleButtonWidth:28,toggleButtonHeight:18,toggleButtonOnBackgroundColor:$s,toggleButtonOffBackgroundColor:wl(.3),toggleButtonSwitchBackgroundColor:{ref:"backgroundColor"},toggleButtonSwitchInset:2,menuBorder:{color:ur(.2)},menuBackgroundColor:wl(.03),menuTextColor:wl(.95),menuShadow:{ref:"popupShadow"},menuSeparatorColor:{ref:"borderColor"},setFilterIndentSize:{ref:"iconSize"},chartMenuPanelWidth:260,chartMenuLabelColor:ur(.8),iconButtonHoverColor:ur(.1),dialogShadow:{ref:"popupShadow"},cellEditingBorder:{color:$s},cellEditingShadow:{ref:"cardShadow"},dialogBorder:{color:ur(.2)},panelBackgroundColor:{ref:"backgroundColor"},panelTitleBarBackgroundColor:{ref:"headerBackgroundColor"},panelTitleBarBorder:!0,columnSelectIndentSize:{ref:"iconSize"},toolPanelSeparatorBorder:!0,tooltipBackgroundColor:{ref:"chromeBackgroundColor"},tooltipTextColor:{ref:"textColor"},tooltipBorder:!0,columnDropCellBackgroundColor:ur(.07),columnDropCellTextColor:{ref:"textColor"},columnDropCellDragHandleColor:{ref:"textColor"},columnDropCellBorder:{color:ur(.13)},selectCellBackgroundColor:ur(.07),selectCellBorder:{color:ur(.13)},advancedFilterBuilderButtonBarBorder:!0,advancedFilterBuilderIndentSize:{calc:"spacing * 2 + iconSize"},advancedFilterBuilderJoinPillColor:"#f08e8d",advancedFilterBuilderColumnPillColor:"#a6e194",advancedFilterBuilderOptionPillColor:"#f3c08b",advancedFilterBuilderValuePillColor:"#85c0e4",filterToolPanelGroupIndent:{ref:"spacing"},iconButtonHoverBackgroundColor:ur(.1),rowLoadingSkeletonEffectColor:ur(.15)}),Xm=["colorScheme","color","length","scale","borderStyle","border","shadow","image","fontFamily","fontWeight","duration"],kb=yg(i=>{var o;return i=i.toLowerCase(),(o=Xm.find(C=>i.endsWith(C.toLowerCase())))!=null?o:"length"}),Pv=i=>typeof i=="string"?i:typeof i=="number"?String(i):!1,Q0=i=>{if(typeof i=="string")return i;if(i&&"ref"in i){let o=Iu(i.ref);return i.mix==null?o:`color-mix(in srgb, ${i.onto?Iu(i.onto):"transparent"}, ${o} ${_h(i.mix*100,0,100)}%)`}return!1},sL=Pv,Tu=i=>typeof i=="string"?i:typeof i=="number"?`${i}px`:i&&"calc"in i?`calc(${i.calc.replace(/ ?[*/+] ?/g," $& ").replace(/-?[a-z][a-z0-9]*\b(?![-(])/gi,C=>C[0]==="-"?C:` ${Iu(C)} `)})`:i&&"ref"in i?Iu(i.ref):!1,J0=Pv,Lv=(i,o)=>{var C,P,B;return typeof i=="string"?i:i===!0?"solid 1px var(--ag-border-color)":i===!1?o==="columnBorder"?"solid 1px transparent":"none":i&&"ref"in i?Iu(i.ref):PD((C=i.style)!=null?C:"solid")+" "+Tu((P=i.width)!=null?P:1)+" "+Q0((B=i.color)!=null?B:{ref:"borderColor"})},lL=i=>{var o,C,P,B,W;return typeof i=="string"?i:i===!1?"none":i&&"ref"in i?Iu(i.ref):[Tu((o=i.offsetX)!=null?o:0),Tu((C=i.offsetY)!=null?C:0),Tu((P=i.radius)!=null?P:0),Tu((B=i.spread)!=null?B:0),Q0((W=i.color)!=null?W:{ref:"foregroundColor"})].join(" ")},PD=Pv,LD=i=>typeof i=="string"?Vd(i):i&&"googleFont"in i?LD(i.googleFont):i&&"ref"in i?Iu(i.ref):Array.isArray(i)?i.map(o=>(typeof o=="object"&&"googleFont"in o&&(o=o.googleFont),Vd(o))).join(", "):!1,Vd=i=>/^[\w-]+$/.test(i)?i:JSON.stringify(i),rT=Pv,ud=i=>typeof i=="string"?i:i&&"url"in i?`url(${JSON.stringify(i.url)})`:i&&"svg"in i?ud({url:`data:image/svg+xml,${encodeURIComponent(i.svg)}`}):i&&"ref"in i?Iu(i.ref):!1,yo=(i,o)=>typeof i=="string"?i:typeof i=="number"?(i>=10&&Ea(104,{value:i,param:o}),`${i}s`):i&&"ref"in i?Iu(i.ref):!1,bg={color:Q0,colorScheme:sL,length:Tu,scale:J0,border:Lv,borderStyle:PD,shadow:lL,image:ud,fontFamily:LD,fontWeight:rT,duration:yo},Ov=(i,o)=>{let C=kb(i);return bg[C](o,i)},hd=i=>{if(!(i instanceof _v))throw new Error("theme is not an object created by createTheme");return i},Ab=()=>new _v,_v=class YX{constructor(o=[]){this.parts=o}withPart(o){return typeof o=="function"&&(o=o()),o instanceof sM?new YX([...this.parts,o]):(cp(259,{part:o},"Invalid part"),this)}withoutPart(o){return this.withPart(To({feature:o}))}withParams(o,C=Fc){return this.withPart(To({modeParams:{[C]:o}}))}_startUse({container:o,loadThemeGoogleFonts:C}){if(Z0)return;Dp(),aM(o);let P=Pn(this);if(P.length>0)for(let B of P)C&&cL(B);for(let B of this.parts)B.use(o)}_getCssClass(){var o;return(o=this._cssClassCache)!=null?o:this._cssClassCache=Ur(this.parts).map(C=>C.use()).filter(Boolean).join(" ")}_getModeParams(){var C;let o=this._paramsCache;if(!o){let P={[Fc]:pe({},oT)};for(let B of Ur(this.parts))for(let[W,$]of Object.entries(B.modeParams))if($){let ie=(C=P[W])!=null?C:P[W]={},ue=new Set;for(let[De,_e]of Object.entries($))_e!==void 0&&(ie[De]=_e,ue.add(De));if(W===Fc){for(let[De,_e]of Object.entries(P))if(De!==Fc)for(let Be of ue)delete _e[Be]}}this._paramsCache=o=P}return o}_getPerGridCss(o){let C="##SELECTOR##",P=this._paramsCssCache;if(!P){let B="",W="";for(let[ie,ue]of Object.entries(this._getModeParams())){if(ie!==Fc){let _e=`:where([data-ag-theme-mode="${typeof CSS=="object"?CSS.escape(ie):ie}"]) & {
`;B+=_e,W+=_e}for(let[De,_e]of Object.entries(ue)){let Be=Ov(De,_e);if(Be===!1)Ea(107,{key:De,value:_e});else{let Qe=Mb(De),st=Qe.replace("--ag-","--ag-inherited-");B+=`	${Qe}: var(${st}, ${Be});
`,W+=`	${st}: var(${Qe});
`}}ie!==Fc&&(B+=`}
`,W+=`}
`)}let $=`${C} {
${B}}
`;$+=`:has(> ${C}):not(${C}) {
${W}}
`,this._paramsCssCache=P=$}return P.replaceAll(C,`:where(.${o})`)}},Ur=i=>{let o=new Map;for(let P of i)o.set(P.feature,P);let C=[];for(let P of i)(!P.feature||o.get(P.feature)===P)&&C.push(P);return C},Pn=i=>{let o=new Set,C=W=>{if(Array.isArray(W))W.forEach(C);else{let $=W==null?void 0:W.googleFont;typeof $=="string"&&o.add($)}};return Object.values(i._getModeParams()).flatMap(W=>Object.values(W)).forEach(C),Array.from(o).sort()},ic=!1,Dp=()=>{if(!ic){ic=!0;for(let i of Array.from(document.head.querySelectorAll('style[data-ag-scope="legacy"]')))i.remove()}},sT=new Set,cL=async i=>{sT.add(i);let o=`@import url('https://${dL}/css2?family=${encodeURIComponent(i)}:wght@100;200;300;400;500;600;700;800;900&display=swap');
`;Tv(o,document.head,`googleFont:${i}`)},dL="fonts.googleapis.com",dM='.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-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)}}',Db=To({feature:"checkboxStyle",params:{checkboxBorderWidth:1,checkboxBorderRadius:{ref:"borderRadius"},checkboxUncheckedBackgroundColor:{ref:"backgroundColor"},checkboxUncheckedBorderColor:wl(.3),checkboxCheckedBackgroundColor:$s,checkboxCheckedBorderColor:$s,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:{ref:"backgroundColor"},checkboxIndeterminateBackgroundColor:wl(.3),checkboxIndeterminateBorderColor:wl(.3),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:{ref:"backgroundColor"},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:dM}),uM=To({feature:"colorScheme",params:dd}),Eb=To({feature:"colorScheme",params:et(pe({},dd),{foregroundColor:"#000000de",borderColor:"#60300026",chromeBackgroundColor:"#60300005"})}),Ib=To({feature:"colorScheme",params:et(pe({},dd),{foregroundColor:"#000",chromeBackgroundColor:"#f3f8f8"})}),eS=et(pe({},dd),{backgroundColor:"hsl(217, 0%, 17%)",foregroundColor:"#FFF",chromeBackgroundColor:wl(.05),rowHoverColor:ss(.15),selectedRowBackgroundColor:ss(.2),menuBackgroundColor:wl(.1),browserColorScheme:"dark",popupShadow:"0 0px 20px #000A",cardShadow:"0 1px 4px 1px #000A",advancedFilterBuilderJoinPillColor:"#7a3a37",advancedFilterBuilderColumnPillColor:"#355f2d",advancedFilterBuilderOptionPillColor:"#5a3168",advancedFilterBuilderValuePillColor:"#374c86",checkboxUncheckedBorderColor:wl(.4),toggleButtonOffBackgroundColor:wl(.4)}),lT=To({feature:"colorScheme",params:eS}),hM=To({feature:"colorScheme",params:{backgroundColor:"hsl(29, 10%, 17%)",foregroundColor:"#FFF",browserColorScheme:"dark"}}),Qs=et(pe({},eS),{backgroundColor:"#1f2836"}),Cg=To({feature:"colorScheme",params:Qs}),Fv=To({feature:"colorScheme",params:dd,modeParams:{light:dd,dark:eS,"dark-blue":Qs}}),Sg=':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;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)}',gM=`.ag-icon-aggregation:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' xml:space='preserve' style='fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2' viewBox='0 0 32 32'%3E%3Cpath d='M24 6H8v2l8 8-8 8v2h16v-2H11l8-8-8-8h13z' style='fill-rule:nonzero'/%3E%3C/svg%3E")}.ag-icon-arrows:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' xml:space='preserve' style='fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2' viewBox='0 0 32 32'%3E%3Cpath d='M7.515 11.171 2.687 16l4.828 4.829-1.414 1.414L-.142 16l6.243-6.243zm16.97 0 1.414-1.414L32.142 16l-6.243 6.243-1.414-1.414L29.313 16zM16.028 13.2l2.829 2.828-2.829 2.829-2.828-2.829zm-4.857 11.285L16 29.313l4.829-4.828 1.414 1.414L16 32.142l-6.243-6.243zm0-16.97L9.757 6.101 16-.142l6.243 6.243-1.414 1.414L16 2.687z' style='fill-rule:nonzero'/%3E%3C/svg%3E")}.ag-icon-asc:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' xml:space='preserve' style='fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2' viewBox='0 0 32 32'%3E%3Cpath d='m5.333 16 1.88 1.88 7.453-7.44v16.227h2.667V10.44l7.44 7.453L26.666 16 15.999 5.333 5.332 16z' style='fill-rule:nonzero'/%3E%3C/svg%3E")}.ag-icon-cancel:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' xml:space='preserve' style='fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2' viewBox='0 0 32 32'%3E%3Cpath d='M16 2.667A13.32 13.32 0 0 0 2.667 16c0 7.373 5.96 13.333 13.333 13.333S29.333 23.373 29.333 16 23.373 2.667 16 2.667m6.667 18.12-1.88 1.88L16 17.88l-4.787 4.787-1.88-1.88L14.12 16l-4.787-4.787 1.88-1.88L16 14.12l4.787-4.787 1.88 1.88L17.88 16z' style='fill-rule:nonzero'/%3E%3C/svg%3E")}.ag-icon-chart:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ctitle%3Echart%3C/title%3E%3Cg fill='%23000' fill-rule='nonzero'%3E%3Cpath d='M14 7h4v18h-4zM8 17h4v8H8zM20 13h4v12h-4z'/%3E%3C/g%3E%3C/svg%3E")}.ag-icon-color-picker:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' xml:space='preserve' style='fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2' viewBox='0 0 32 32'%3E%3Cpath d='M23.907 17.587 10.574 4.254l-1.88 1.88 3.173 3.173-8.28 8.28 10.16 10.16zm-16.547 0 6.387-6.387 6.387 6.387zm18.387 2s-2.667 2.893-2.667 4.667c0 1.467 1.2 2.667 2.667 2.667s2.667-1.2 2.667-2.667c0-1.773-2.667-4.667-2.667-4.667' style='fill-rule:nonzero'/%3E%3C/svg%3E")}.ag-icon-columns:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' xml:space='preserve' style='fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2' viewBox='0 0 32 32'%3E%3Cpath d='M26 25H6V7h20zM12 11H8v12h4zm6 0h-4v12h4zm6 12V11h-4v12z' style='fill-rule:nonzero' transform='translate(0 -1)'/%3E%3C/svg%3E")}.ag-icon-contracted:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' xml:space='preserve' style='fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2' viewBox='0 0 32 32'%3E%3Cpath d='m12 6 10 10-10 10-2-2 8-8-8-8z'/%3E%3C/svg%3E")}.ag-icon-copy:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' xml:space='preserve' style='fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2' viewBox='0 0 32 32'%3E%3Cpath d='M22 1.333H6A2.675 2.675 0 0 0 3.333 4v18.667H6V4h16zm4 5.334H11.333a2.675 2.675 0 0 0-2.667 2.667v18.667c0 1.467 1.2 2.667 2.667 2.667H26c1.467 0 2.667-1.2 2.667-2.667V9.334c0-1.467-1.2-2.667-2.667-2.667M26 28H11.333V9.333H26z' style='fill-rule:nonzero'/%3E%3C/svg%3E")}.ag-icon-cross:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' xml:space='preserve' style='fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2' viewBox='0 0 32 32'%3E%3Cpath d='M15.984 13.894 27.05 2.828l2.122 2.122-11.066 11.066 11.066 11.066-2.122 2.12-11.066-11.066L4.918 29.202l-2.12-2.12 11.066-11.066L2.798 4.95l2.12-2.122z'/%3E%3C/svg%3E")}.ag-icon-csv:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' xml:space='preserve' style='fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2' viewBox='0 0 32 32'%3E%3Cpath d='M384 131.9c-7.753-8.433-110.425-128.473-114.9-133L48-.1C21.5 0 0 21.5 0 48v416c0 26.5 21.5 48 48 48h288c26.5 0 48-21.5 48-48zm-35.9 2.1H257V27.9zM30 479V27h200l1 105c0 13.3-1.3 29 12 29h111l1 318z' style='fill-rule:nonzero' transform='matrix(.06285 0 0 .06285 3.934 -.054)'/%3E%3Cpath d='M.688-.226a.2.2 0 0 1-.017.074.28.28 0 0 1-.145.14.412.412 0 0 1-.234.013.28.28 0 0 1-.202-.168.468.468 0 0 1-.04-.19q0-.086.025-.155a.319.319 0 0 1 .182-.191.4.4 0 0 1 .134-.025q.087 0 .155.035a.3.3 0 0 1 .104.085.17.17 0 0 1 .036.097.06.06 0 0 1-.018.044.06.06 0 0 1-.042.019.06.06 0 0 1-.042-.013.2.2 0 0 1-.031-.046.2.2 0 0 0-.066-.079.16.16 0 0 0-.095-.027.17.17 0 0 0-.142.068.3.3 0 0 0-.053.193.4.4 0 0 0 .023.139.2.2 0 0 0 .067.083.2.2 0 0 0 .1.027q.063 0 .106-.031a.2.2 0 0 0 .065-.091.2.2 0 0 1 .023-.046q.014-.018.044-.018a.06.06 0 0 1 .044.018.06.06 0 0 1 .019.045' style='fill-rule:nonzero' transform='matrix(8.39799 0 0 12.455 7.122 25.977)'/%3E%3Cpath d='M.622-.215a.2.2 0 0 1-.033.117.23.23 0 0 1-.098.081.4.4 0 0 1-.153.029.34.34 0 0 1-.175-.04.23.23 0 0 1-.079-.077.17.17 0 0 1-.031-.093q0-.027.019-.045a.06.06 0 0 1 .046-.019.06.06 0 0 1 .039.014.1.1 0 0 1 .027.044.3.3 0 0 0 .03.057q.015.023.044.038.03.015.076.015.065 0 .105-.03a.09.09 0 0 0 .04-.075.08.08 0 0 0-.022-.058.14.14 0 0 0-.056-.034 1 1 0 0 0-.092-.025.7.7 0 0 1-.129-.042.2.2 0 0 1-.083-.066.17.17 0 0 1-.03-.104q0-.058.032-.105a.2.2 0 0 1 .093-.07.4.4 0 0 1 .144-.025q.066 0 .114.016a.3.3 0 0 1 .08.044.2.2 0 0 1 .046.057q.015.03.015.058a.07.07 0 0 1-.018.046.06.06 0 0 1-.046.021q-.025 0-.038-.012a.2.2 0 0 1-.028-.041.2.2 0 0 0-.047-.063Q.387-.625.326-.625a.15.15 0 0 0-.09.025q-.035.024-.035.059 0 .021.012.037a.1.1 0 0 0 .032.027.4.4 0 0 0 .111.036q.06.015.11.031.048.018.083.042a.2.2 0 0 1 .054.062.2.2 0 0 1 .019.091' style='fill-rule:nonzero' transform='matrix(8.39799 0 0 12.455 13.339 25.977)'/%3E%3Cpath d='m.184-.633.162.48.163-.483q.013-.038.019-.053a.062.062 0 0 1 .061-.039q.018 0 .034.009a.1.1 0 0 1 .025.025q.009.015.009.031L.654-.64l-.007.025-.009.024-.173.468-.019.051a.2.2 0 0 1-.021.042.1.1 0 0 1-.033.03.1.1 0 0 1-.049.012.1.1 0 0 1-.05-.011A.1.1 0 0 1 .26-.03a.2.2 0 0 1-.021-.042L.22-.123.05-.587.041-.612.033-.638.03-.662q0-.025.02-.046a.07.07 0 0 1 .05-.02q.037 0 .053.023.015.023.031.072' style='fill-rule:nonzero' transform='matrix(8.39799 0 0 12.455 18.94 25.977)'/%3E%3C/svg%3E")}.ag-icon-cut:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' xml:space='preserve' style='fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2' viewBox='0 0 32 32'%3E%3Cpath d='M13.775 15.198 3.835 2.945a1.501 1.501 0 0 1 2.33-1.89l14.997 18.488A6.003 6.003 0 0 1 29.657 25c0 3.311-2.688 6-6 6s-6-2.689-6-6c0-1.335.437-2.569 1.176-3.566l-3.127-3.855-3.001 3.7A5.97 5.97 0 0 1 14 25c0 3.311-2.689 6-6 6s-6-2.689-6-6a6.003 6.003 0 0 1 8.315-5.536zm9.882 6.702a3.1 3.1 0 0 0-3.1 3.1c0 1.711 1.389 3.1 3.1 3.1s3.1-1.389 3.1-3.1-1.389-3.1-3.1-3.1M8 21.95a3.05 3.05 0 1 0 .001 6.101A3.05 3.05 0 0 0 8 21.95m9.63-11.505 1.932 2.381 8.015-9.881a1.5 1.5 0 0 0-2.329-1.89z' style='fill-rule:nonzero'/%3E%3C/svg%3E")}.ag-icon-desc:before,.ag-icon-down:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' xml:space='preserve' style='fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2' viewBox='0 0 32 32'%3E%3Cpath d='m26.667 16-1.88-1.88-7.453 7.44V5.333h-2.667V21.56l-7.44-7.453L5.334 16l10.667 10.667z' style='fill-rule:nonzero'/%3E%3C/svg%3E")}.ag-icon-excel:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' xml:space='preserve' style='fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2' viewBox='0 0 32 32'%3E%3Cpath d='M384 131.9c-7.753-8.433-110.425-128.473-114.9-133L48-.1C21.5 0 0 21.5 0 48v416c0 26.5 21.5 48 48 48h288c26.5 0 48-21.5 48-48zm-35.9 2.1H257V27.9zM30 479V27h200l1 105c0 13.3-1.3 29 12 29h111l1 318z' style='fill-rule:nonzero' transform='matrix(.06285 0 0 .06285 3.934 -.054)'/%3E%3Cpath d='m.052-.139.16-.234-.135-.208a.4.4 0 0 1-.028-.052.1.1 0 0 1-.01-.042.05.05 0 0 1 .018-.037.07.07 0 0 1 .045-.016q.03 0 .047.018a1 1 0 0 1 .047.066l.107.174.115-.174.024-.038.019-.026.021-.015a.1.1 0 0 1 .027-.005.06.06 0 0 1 .044.016.05.05 0 0 1 .018.039q0 .033-.038.089l-.141.211.152.234a.3.3 0 0 1 .03.051.1.1 0 0 1 .009.038.1.1 0 0 1-.008.031.1.1 0 0 1-.024.023.1.1 0 0 1-.034.008.1.1 0 0 1-.035-.008.1.1 0 0 1-.023-.022L.427-.067.301-.265l-.134.204-.022.034-.016.019a.1.1 0 0 1-.022.015.1.1 0 0 1-.03.005.06.06 0 0 1-.044-.016.06.06 0 0 1-.017-.047q0-.036.036-.088' style='fill-rule:nonzero' transform='matrix(17.82892 0 0 16.50777 10.371 25.928)'/%3E%3C/svg%3E")}.ag-icon-expanded:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' xml:space='preserve' style='fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2' viewBox='0 0 32 32'%3E%3Cpath d='M20 26 10 16 20 6l2 2-8 8 8 8z'/%3E%3C/svg%3E")}.ag-icon-eye-slash:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ctitle%3Eeye-slash%3C/title%3E%3Cpath fill='%23000' fill-rule='nonzero' d='M8.95 10.364 7 8.414 8.414 7l2.32 2.32A13.2 13.2 0 0 1 16.5 8c5.608 0 10.542 3.515 12.381 8.667L29 17l-.119.333a13 13 0 0 1-4.255 5.879l1.466 1.466-1.414 1.414-1.754-1.753A13.2 13.2 0 0 1 16.5 26c-5.608 0-10.542-3.515-12.381-8.667L4 17l.119-.333a13 13 0 0 1 4.83-6.303m1.445 1.445A11.02 11.02 0 0 0 6.148 17c1.646 4.177 5.728 7 10.352 7 1.76 0 3.441-.409 4.94-1.146l-1.878-1.878A5.06 5.06 0 0 1 16.5 22c-2.789 0-5.05-2.239-5.05-5 0-1.158.398-2.223 1.065-3.07zm1.855-.974 1.794 1.795A5.07 5.07 0 0 1 16.5 12c2.789 0 5.05 2.239 5.05 5 0 .9-.24 1.745-.661 2.474l2.305 2.306A11 11 0 0 0 26.852 17c-1.646-4.177-5.728-7-10.352-7-1.495 0-2.933.295-4.25.835'/%3E%3C/svg%3E")}.ag-icon-eye:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' xml:space='preserve' style='fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2' viewBox='0 0 32 32'%3E%3Cpath d='M16.5 23c4.624 0 8.706-2.823 10.352-7-1.646-4.177-5.728-7-10.352-7s-8.706 2.823-10.352 7c1.646 4.177 5.728 7 10.352 7M4.119 15.667C5.958 10.515 10.892 7 16.5 7s10.542 3.515 12.381 8.667L29 16l-.119.333C27.042 21.485 22.108 25 16.5 25S5.958 21.485 4.119 16.333L4 16zM16.5 21c2.789 0 5.049-2.239 5.049-5s-2.26-5-5.049-5-5.049 2.239-5.049 5 2.26 5 5.049 5' style='fill-rule:nonzero'/%3E%3C/svg%3E")}.ag-icon-filter:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' xml:space='preserve' style='fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2' viewBox='0 0 32 32'%3E%3Cpath d='m28 8-8 8v5l-6 6V16L6 8V6h22zM9 8l7 7v7l2-2v-5l7-7z' style='fill-rule:nonzero'/%3E%3C/svg%3E")}.ag-icon-first:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' xml:space='preserve' style='fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2' viewBox='0 0 32 32'%3E%3Cpath d='M24.273 22.12 18.153 16l6.12-6.12L22.393 8l-8 8 8 8zM7.727 8h2.667v16H7.727z' style='fill-rule:nonzero'/%3E%3C/svg%3E")}.ag-icon-group:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' xml:space='preserve' style='fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2' viewBox='0 0 32 32'%3E%3Cpath d='M14 7v1H9V7zm0-3v1H5.001V4zm-7 7H5v-1h2zm0-3H5V7h2zM3 5H1V4h2zm11 5v1H9v-1zm-7 4H5v-1h2zm7-1v1H9v-1z' style='fill-rule:nonzero' transform='matrix(2 0 0 2 0 -2)'/%3E%3C/svg%3E")}.ag-icon-last:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' xml:space='preserve' style='fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2' viewBox='0 0 32 32'%3E%3Cpath d='m7.727 9.88 6.12 6.12-6.12 6.12L9.607 24l8-8-8-8zM21.607 8h2.667v16h-2.667z' style='fill-rule:nonzero'/%3E%3C/svg%3E")}.ag-icon-left:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' xml:space='preserve' style='fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2' viewBox='0 0 32 32'%3E%3Cpath d='M26.667 14.667H10.44l7.453-7.453L16 5.334 5.333 16.001 16 26.668l1.88-1.88-7.44-7.453h16.227z' style='fill-rule:nonzero'/%3E%3C/svg%3E")}.ag-icon-linked:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' xml:space='preserve' style='fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2' viewBox='0 0 32 32'%3E%3Cpath d='M5.2 16a4.136 4.136 0 0 1 4.133-4.133h5.333V9.334H9.333a6.67 6.67 0 0 0-6.667 6.667 6.67 6.67 0 0 0 6.667 6.667h5.333v-2.533H9.333A4.136 4.136 0 0 1 5.2 16.002zm5.467 1.333h10.667v-2.667H10.667zm12-8h-5.333v2.533h5.333a4.136 4.136 0 0 1 4.133 4.133 4.136 4.136 0 0 1-4.133 4.133h-5.333v2.533h5.333a6.67 6.67 0 0 0 6.667-6.667 6.67 6.67 0 0 0-6.667-6.667z' style='fill-rule:nonzero'/%3E%3C/svg%3E")}.ag-icon-loading:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' xml:space='preserve' style='fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2' viewBox='0 0 32 32'%3E%3Cpath d='M17 29h-2v-8h2zm-3.586-9L7 26.414 5.586 25 12 18.586zm13 5L25 26.414 18.586 20 20 18.586zM29 17h-8v-2h8zm-18 0H3v-2h8zm2.414-5L12 13.414 5.586 7 7 5.586zm13-5L20 13.414 18.586 12 25 5.586zM17 11h-2V3h2z' style='fill-rule:nonzero' transform='translate(-3.692 -3.692)scale(1.23077)'/%3E%3C/svg%3E")}.ag-icon-maximize:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' xml:space='preserve' style='fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2' viewBox='0 0 32 32'%3E%3Cpath d='M14 30H2V18h2.828v7.05l8.254-8.252 2.12 2.12-8.252 8.254H14zm4-28h12v12h-2.828V6.95l-8.254 8.252-2.12-2.12 8.252-8.254H18z'/%3E%3C/svg%3E")}.ag-icon-menu:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' xml:space='preserve' style='fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2' viewBox='0 0 32 32'%3E%3Cpath d='M20 13H0v-2h20zm0-6H0V5h20zm0-6H0v-2h20z' style='fill-rule:nonzero' transform='translate(6 9)'/%3E%3C/svg%3E")}.ag-icon-menu-alt:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' fill='none' viewBox='0 0 32 32'%3E%3Cpath fill='%23000' d='M16 19a3 3 0 1 0 0-6 3 3 0 0 0 0 6M16 11a3 3 0 1 0 0-6 3 3 0 0 0 0 6M16 27a3 3 0 1 0 0-6 3 3 0 0 0 0 6'/%3E%3C/svg%3E")}.ag-icon-minimize:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' xml:space='preserve' style='fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2' viewBox='0 0 32 32'%3E%3Cpath d='M2 18h12v12h-2.828v-7.05l-8.254 8.252-2.12-2.12 8.252-8.254H2zm28-4H18V2h2.828v7.05L29.082.798l2.12 2.12-8.252 8.254H30z'/%3E%3C/svg%3E")}.ag-icon-minus:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' xml:space='preserve' style='fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2' viewBox='0 0 32 32'%3E%3Cpath d='M6.572 6.572a13.32 13.32 0 0 0 0 18.856 13.32 13.32 0 0 0 18.856 0 13.32 13.32 0 0 0 0-18.856 13.32 13.32 0 0 0-18.856 0m17.527 8.099v2.658H7.901v-2.658z' style='fill-rule:nonzero'/%3E%3C/svg%3E")}.ag-icon-next:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' xml:space='preserve' style='fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2' viewBox='0 0 32 32'%3E%3Cpath d='M10.94 6 9.06 7.88 17.167 16 9.06 24.12 10.94 26l10-10z' style='fill-rule:nonzero' transform='translate(1)'/%3E%3C/svg%3E")}.ag-icon-none:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ctitle%3Enone%3C/title%3E%3Cg fill='%23000' fill-rule='nonzero'%3E%3Cpath d='M23.708 14.645 16 6.939l-7.708 7.706 1.416 1.416L16 9.767l6.292 6.294zM23.708 20.355 16 28.061l-7.708-7.706 1.416-1.416L16 25.233l6.292-6.294z'/%3E%3C/g%3E%3C/svg%3E")}.ag-icon-not-allowed:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' xml:space='preserve' style='fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2' viewBox='0 0 32 32'%3E%3Cpath d='M16 2.667C8.64 2.667 2.667 8.64 2.667 16S8.64 29.333 16 29.333 29.333 23.36 29.333 16 23.36 2.667 16 2.667M5.333 16c0-5.893 4.773-10.667 10.667-10.667 2.467 0 4.733.84 6.533 2.253L7.586 22.533A10.54 10.54 0 0 1 5.333 16M16 26.667c-2.467 0-4.733-.84-6.533-2.253L24.414 9.467A10.54 10.54 0 0 1 26.667 16c0 5.893-4.773 10.667-10.667 10.667' style='fill-rule:nonzero'/%3E%3C/svg%3E")}.ag-icon-paste:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' xml:space='preserve' style='fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2' viewBox='0 0 32 32'%3E%3Cpath d='M25.334 4H19.76C19.2 2.453 17.733 1.333 16 1.333S12.8 2.453 12.24 4H6.667A2.675 2.675 0 0 0 4 6.667V28c0 1.467 1.2 2.667 2.667 2.667h18.667c1.467 0 2.667-1.2 2.667-2.667V6.667C28.001 5.2 26.801 4 25.334 4M16 4c.733 0 1.333.6 1.333 1.333s-.6 1.333-1.333 1.333-1.333-.6-1.333-1.333S15.267 4 16 4m9.333 24H6.666V6.667h2.667v4h13.333v-4h2.667z' style='fill-rule:nonzero'/%3E%3C/svg%3E")}.ag-icon-pin:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' xml:space='preserve' style='fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2' viewBox='0 0 32 32'%3E%3Cpath d='m10.78 19.777-4.668-4.666s.032-1 .67-1.87c1.366-1.86 4.052-1.96 6.056-1.572l3.158-3.108c-.7-2.342 3.352-5.046 3.352-5.046l9.166 9.168q-.334.447-.67.894c-1.074 1.426-2.538 2.63-4.272 2.338l-3.32 3.218c.046.344.042.03.118 1.152.144 2.13-.64 4.324-2.632 5.34l-.746.364-4.798-4.798-7.292 7.294-1.416-1.416zm8.24-13.672c-.688.568-1.416 1.45-1.024 2.072l.49.722-4.986 4.988c-1.988-.506-4.346-.636-5.156.614l9.02 9.032q.14-.099.272-.21c1.226-1.08.764-3.04.498-4.9l4.79-4.79s1.47.938 2.936-.776l-6.79-6.79q-.026.019-.05.038' style='fill-rule:nonzero'/%3E%3C/svg%3E")}.ag-icon-pivot:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' xml:space='preserve' style='fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2' viewBox='0 0 32 32'%3E%3Cpath d='M25.128 2.002c2.56.096 4.772 2.292 4.87 4.87a712 712 0 0 1 0 18.256c-.096 2.56-2.292 4.772-4.87 4.87a712 712 0 0 1-18.256 0c-2.558-.096-4.772-2.29-4.87-4.87a712 712 0 0 1 0-18.256c.096-2.56 2.292-4.772 4.87-4.87a712 712 0 0 1 18.256 0m2.966 7.954H9.892v18.136c5.086.13 10.18.098 15.264-.096 1.48-.094 2.746-1.35 2.84-2.84.192-5.064.226-10.134.098-15.2M3.968 24.1q.015.528.036 1.056c.094 1.484 1.354 2.746 2.84 2.84l1.012.036V24.1zM22 15.414l-.292.294-1.416-1.416L23 11.586l2.708 2.706-1.416 1.416-.292-.294v3.592c-.032 2.604-2.246 4.892-4.872 4.992L15.414 24l.294.292-1.416 1.416L11.586 23l2.706-2.708 1.416 1.416-.322.32c3.372.03 6.578-.164 6.614-3.034zM3.88 18.038c.002 1.346.012 2.694.038 4.04h3.938v-4.04zm.05-6.062a681 681 0 0 0-.044 4.042h3.97v-4.042zm5.962-7.99Q8.449 3.999 7.006 4c-1.57.02-2.946 1.348-3.004 2.922q-.02 1.517-.042 3.034h3.896v-2.02h2.036zm14.244-.016v3.966h3.898q-.017-.546-.038-1.092c-.094-1.48-1.35-2.746-2.84-2.84q-.51-.019-1.02-.034m-8.14-.054q-2.035.022-4.07.048v3.972h4.07zm6.106.008a213 213 0 0 0-4.07-.022v4.034h4.07z' style='fill-rule:nonzero'/%3E%3C/svg%3E")}.ag-icon-plus:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' xml:space='preserve' style='fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2' viewBox='0 0 32 32'%3E%3Cpath d='M6.572 6.572a13.32 13.32 0 0 0 0 18.856 13.32 13.32 0 0 0 18.856 0 13.32 13.32 0 0 0 0-18.856 13.32 13.32 0 0 0-18.856 0m17.527 8.099v2.658h-6.77v6.77h-2.658v-6.77h-6.77v-2.658h6.77v-6.77h2.658v6.77z' style='fill-rule:nonzero'/%3E%3C/svg%3E")}.ag-icon-previous:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' xml:space='preserve' style='fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2' viewBox='0 0 32 32'%3E%3Cpath d='M21.94 7.88 20.06 6l-10 10 10 10 1.88-1.88L13.833 16z' style='fill-rule:nonzero'/%3E%3C/svg%3E")}.ag-icon-right:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' xml:space='preserve' style='fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2' viewBox='0 0 32 32'%3E%3Cpath d='m16 5.333-1.88 1.88 7.44 7.453H5.333v2.667H21.56l-7.44 7.453 1.88 1.88 10.667-10.667L16 5.332z' style='fill-rule:nonzero'/%3E%3C/svg%3E")}.ag-icon-save:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' xml:space='preserve' style='fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2' viewBox='0 0 32 32'%3E%3Cpath d='M15.708 2.355 8 10.061.292 2.355 1.708.939 8 7.233 14.292.939z' style='fill-rule:nonzero' transform='translate(8 14)'/%3E%3Cpath d='M5 26h22v2H5zM15 4h2v18h-2z'/%3E%3C/svg%3E")}.ag-icon-small-down:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' xml:space='preserve' style='fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2' viewBox='0 0 32 32'%3E%3Cpath d='M7.334 10.667 16 21.334l8.667-10.667z' style='fill-rule:nonzero'/%3E%3C/svg%3E")}.ag-icon-small-left:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' xml:space='preserve' style='fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2' viewBox='0 0 32 32'%3E%3Cpath d='M21.333 7.334 10.666 16l10.667 8.667z' style='fill-rule:nonzero'/%3E%3C/svg%3E")}.ag-icon-small-right:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' xml:space='preserve' style='fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2' viewBox='0 0 32 32'%3E%3Cpath d='M10.667 24.666 21.334 16 10.667 7.333z' style='fill-rule:nonzero'/%3E%3C/svg%3E")}.ag-icon-small-up:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' xml:space='preserve' style='fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2' viewBox='0 0 32 32'%3E%3Cpath d='M7.334 21.333 16 10.666l8.667 10.667z' style='fill-rule:nonzero'/%3E%3C/svg%3E")}.ag-icon-tick:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' xml:space='preserve' style='fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2' viewBox='0 0 32 32'%3E%3Cpath d='M11.586 22.96 27.718 6.828 29.84 8.95 11.586 27.202 2.4 18.016l2.12-2.122z'/%3E%3C/svg%3E")}.ag-icon-tree-closed:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' xml:space='preserve' style='fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2' viewBox='0 0 32 32'%3E%3Cpath d='m11.94 6-1.88 1.88L18.167 16l-8.107 8.12L11.94 26l10-10z' style='fill-rule:nonzero'/%3E%3C/svg%3E")}.ag-icon-tree-indeterminate:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' xml:space='preserve' style='fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2' viewBox='0 0 32 32'%3E%3Cpath d='M6 13.5h20v3H6z'/%3E%3C/svg%3E")}.ag-icon-tree-open:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' xml:space='preserve' style='fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2' viewBox='0 0 32 32'%3E%3Cpath d='M24.12 9.06 16 17.167 7.88 9.06 6 10.94l10 10 10-10z' style='fill-rule:nonzero' transform='translate(0 1)'/%3E%3C/svg%3E")}.ag-icon-unlinked:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' xml:space='preserve' style='fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2' viewBox='0 0 32 32'%3E%3Cpath d='M22.667 9.333h-5.333v2.533h5.333a4.136 4.136 0 0 1 4.133 4.133c0 1.907-1.307 3.507-3.08 3.973l1.947 1.947c2.173-1.107 3.667-3.32 3.667-5.92a6.67 6.67 0 0 0-6.667-6.667zm-1.334 5.334h-2.92l2.667 2.667h.253zM2.667 5.693 6.814 9.84A6.65 6.65 0 0 0 2.667 16a6.67 6.67 0 0 0 6.667 6.667h5.333v-2.533H9.334a4.136 4.136 0 0 1-4.133-4.133c0-2.12 1.613-3.867 3.68-4.093l2.76 2.76h-.973v2.667h3.64l3.027 3.027v2.307h2.307l5.347 5.333 1.68-1.68L4.362 4.002 2.669 5.695z' style='fill-rule:nonzero'/%3E%3C/svg%3E")}.ag-icon-up:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' xml:space='preserve' style='fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2' viewBox='0 0 32 32'%3E%3Cpath d='m5.333 16 1.88 1.88 7.453-7.44v16.227h2.667V10.44l7.44 7.453L26.666 16 15.999 5.333 5.332 16z' style='fill-rule:nonzero'/%3E%3C/svg%3E")}.ag-icon-grip:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' xml:space='preserve' style='fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2' viewBox='0 0 32 32'%3E%3Cpath d='M8 24H6v-4h2zm6 0h-2v-4h2zm6 0h-2v-4h2zm6 0h-2v-4h2zM8 18H6v-4h2zm6 0h-2v-4h2zm6 0h-2v-4h2zm6 0h-2v-4h2zM8 12H6V8h2zm6 0h-2V8h2zm6 0h-2V8h2zm6 0h-2V8h2z' style='fill-rule:nonzero'/%3E%3C/svg%3E")}.ag-icon-settings:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' fill='none' viewBox='0 0 32 32'%3E%3Cpath fill='%23000' d='M30 8h-4.1c-.5-2.3-2.5-4-4.9-4s-4.4 1.7-4.9 4H2v2h14.1c.5 2.3 2.5 4 4.9 4s4.4-1.7 4.9-4H30zm-9 4c-1.7 0-3-1.3-3-3s1.3-3 3-3 3 1.3 3 3-1.3 3-3 3M2 24h4.1c.5 2.3 2.5 4 4.9 4s4.4-1.7 4.9-4H30v-2H15.9c-.5-2.3-2.5-4-4.9-4s-4.4 1.7-4.9 4H2zm9-4c1.7 0 3 1.3 3 3s-1.3 3-3 3-3-1.3-3-3 1.3-3 3-3'/%3E%3C/svg%3E")}`,Ep=To({feature:"iconSet",css:()=>Sg+gM}),OD=`.ag-icon-aggregation:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ctitle%3Eaggregation%3C/title%3E%3Cpath d='M24 5.333H8V8l8.667 8L8 24v2.667h16v-4h-9.333L21.334 16l-6.667-6.667H24z'/%3E%3C/svg%3E")}.ag-icon-arrows:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ctitle%3Earrows%3C/title%3E%3Cpath d='M13.333 11.556h5.333V8h3.556L16 1.778 9.778 8h3.556zm-1.777 1.777H8V9.777l-6.222 6.222L8 22.221v-3.556h3.556zM30.222 16 24 9.778v3.556h-3.556v5.333H24v3.556l6.222-6.222zm-11.555 4.444h-5.333V24H9.778L16 30.222 22.222 24h-3.556z'/%3E%3C/svg%3E")}.ag-icon-asc:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ctitle%3Easc%3C/title%3E%3Cpath d='m5.333 16 1.88 1.88 7.453-7.44v16.227h2.667V10.44l7.44 7.453L26.666 16 15.999 5.333z'/%3E%3C/svg%3E")}.ag-icon-cancel:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ctitle%3Ecancel%3C/title%3E%3Cpath d='M16 2.667C8.627 2.667 2.667 8.627 2.667 16S8.627 29.333 16 29.333 29.333 23.373 29.333 16 23.373 2.667 16 2.667m6.667 18.12-1.88 1.88L16 17.88l-4.787 4.787-1.88-1.88L14.12 16l-4.787-4.787 1.88-1.88L16 14.12l4.787-4.787 1.88 1.88L17.88 16z'/%3E%3C/svg%3E")}.ag-icon-chart:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ctitle%3Echart%3C/title%3E%3Cpath d='M6.667 12.267h4v13.067h-4zm7.466-5.6h3.733v18.667h-3.733zM21.6 17.333h3.733v8H21.6z'/%3E%3C/svg%3E")}.ag-icon-color-picker:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ctitle%3Ecolor-picker%3C/title%3E%3Cpath d='M23.907 17.587 10.574 4.254l-1.88 1.88 3.173 3.173-8.28 8.28 10.16 10.16zm-16.547 0 6.387-6.387 6.387 6.387H7.361zm18.387 2s-2.667 2.893-2.667 4.667c0 1.467 1.2 2.667 2.667 2.667s2.667-1.2 2.667-2.667c0-1.773-2.667-4.667-2.667-4.667'/%3E%3C/svg%3E")}.ag-icon-columns:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ctitle%3Ecolumns%3C/title%3E%3Cpath d='M5.333 10.667h5.333V5.334H5.333zm8 16h5.333v-5.333h-5.333zm-8 0h5.333v-5.333H5.333zm0-8h5.333v-5.333H5.333zm8 0h5.333v-5.333h-5.333zm8-13.334v5.333h5.333V5.333zm-8 5.334h5.333V5.334h-5.333zm8 8h5.333v-5.333h-5.333zm0 8h5.333v-5.333h-5.333z'/%3E%3C/svg%3E")}.ag-icon-contracted:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ctitle%3Econtracted%3C/title%3E%3Cpath d='m12.94 8-1.88 1.88L17.167 16l-6.107 6.12L12.94 24l8-8z'/%3E%3C/svg%3E")}.ag-icon-copy:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ctitle%3Ecopy%3C/title%3E%3Cpath d='M22 1.333H6A2.675 2.675 0 0 0 3.333 4v18.667H6V4h16zm4 5.334H11.333a2.675 2.675 0 0 0-2.667 2.667v18.667c0 1.467 1.2 2.667 2.667 2.667H26c1.467 0 2.667-1.2 2.667-2.667V9.334c0-1.467-1.2-2.667-2.667-2.667M26 28H11.333V9.333H26z'/%3E%3C/svg%3E")}.ag-icon-cross:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ctitle%3Ecross%3C/title%3E%3Cpath d='m25.333 8.547-1.88-1.88L16 14.12 8.547 6.667l-1.88 1.88L14.12 16l-7.453 7.453 1.88 1.88L16 17.88l7.453 7.453 1.88-1.88L17.88 16z'/%3E%3C/svg%3E")}.ag-icon-csv:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' xml:space='preserve' style='fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2' viewBox='0 0 32 32'%3E%3Cpath d='M384 131.9c-7.753-8.433-110.425-128.473-114.9-133L48-.1C21.5 0 0 21.5 0 48v416c0 26.5 21.5 48 48 48h288c26.5 0 48-21.5 48-48zm-35.9 2.1H257V27.9zM30 479V27h200l1 105c0 13.3-1.3 29 12 29h111l1 318z' style='fill-rule:nonzero' transform='matrix(.06285 0 0 .06285 3.934 -.054)'/%3E%3Cpath d='M.688-.226a.2.2 0 0 1-.017.074.28.28 0 0 1-.145.14.412.412 0 0 1-.234.013.28.28 0 0 1-.202-.168.468.468 0 0 1-.04-.19q0-.086.025-.155a.319.319 0 0 1 .182-.191.4.4 0 0 1 .134-.025q.087 0 .155.035a.3.3 0 0 1 .104.085.17.17 0 0 1 .036.097.06.06 0 0 1-.018.044.06.06 0 0 1-.042.019.06.06 0 0 1-.042-.013.2.2 0 0 1-.031-.046.2.2 0 0 0-.066-.079.16.16 0 0 0-.095-.027.17.17 0 0 0-.142.068.3.3 0 0 0-.053.193.4.4 0 0 0 .023.139.2.2 0 0 0 .067.083.2.2 0 0 0 .1.027q.063 0 .106-.031a.2.2 0 0 0 .065-.091.2.2 0 0 1 .023-.046q.014-.018.044-.018a.06.06 0 0 1 .044.018.06.06 0 0 1 .019.045' style='fill-rule:nonzero' transform='matrix(8.39799 0 0 12.455 7.122 25.977)'/%3E%3Cpath d='M.622-.215a.2.2 0 0 1-.033.117.23.23 0 0 1-.098.081.4.4 0 0 1-.153.029.34.34 0 0 1-.175-.04.23.23 0 0 1-.079-.077.17.17 0 0 1-.031-.093q0-.027.019-.045a.06.06 0 0 1 .046-.019.06.06 0 0 1 .039.014.1.1 0 0 1 .027.044.3.3 0 0 0 .03.057q.015.023.044.038.03.015.076.015.065 0 .105-.03a.09.09 0 0 0 .04-.075.08.08 0 0 0-.022-.058.14.14 0 0 0-.056-.034 1 1 0 0 0-.092-.025.7.7 0 0 1-.129-.042.2.2 0 0 1-.083-.066.17.17 0 0 1-.03-.104q0-.058.032-.105a.2.2 0 0 1 .093-.07.4.4 0 0 1 .144-.025q.066 0 .114.016a.3.3 0 0 1 .08.044.2.2 0 0 1 .046.057q.015.03.015.058a.07.07 0 0 1-.018.046.06.06 0 0 1-.046.021q-.025 0-.038-.012a.2.2 0 0 1-.028-.041.2.2 0 0 0-.047-.063Q.387-.625.326-.625a.15.15 0 0 0-.09.025q-.035.024-.035.059 0 .021.012.037a.1.1 0 0 0 .032.027.4.4 0 0 0 .111.036q.06.015.11.031.048.018.083.042a.2.2 0 0 1 .054.062.2.2 0 0 1 .019.091' style='fill-rule:nonzero' transform='matrix(8.39799 0 0 12.455 13.339 25.977)'/%3E%3Cpath d='m.184-.633.162.48.163-.483q.013-.038.019-.053a.062.062 0 0 1 .061-.039q.018 0 .034.009a.1.1 0 0 1 .025.025q.009.015.009.031L.654-.64l-.007.025-.009.024-.173.468-.019.051a.2.2 0 0 1-.021.042.1.1 0 0 1-.033.03.1.1 0 0 1-.049.012.1.1 0 0 1-.05-.011A.1.1 0 0 1 .26-.03a.2.2 0 0 1-.021-.042L.22-.123.05-.587.041-.612.033-.638.03-.662q0-.025.02-.046a.07.07 0 0 1 .05-.02q.037 0 .053.023.015.023.031.072' style='fill-rule:nonzero' transform='matrix(8.39799 0 0 12.455 18.94 25.977)'/%3E%3C/svg%3E")}.ag-icon-cut:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' xml:space='preserve' style='fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2' viewBox='0 0 32 32'%3E%3Cpath d='m19 3-6 6 2 2 7-7V3m-10 9.5a.503.503 0 0 1-.5-.5c0-.274.226-.5.5-.5s.5.226.5.5-.226.5-.5.5M6 20c-1.097 0-2-.903-2-2a2 2 0 0 1 2-2c1.097 0 2 .903 2 2a2 2 0 0 1-2 2M6 8c-1.097 0-2-.903-2-2a2 2 0 0 1 2-2c1.097 0 2 .903 2 2a2 2 0 0 1-2 2m3.64-.36c.23-.5.36-1.05.36-1.64 0-2.194-1.806-4-4-4S2 3.806 2 6s1.806 4 4 4c.59 0 1.14-.13 1.64-.36L10 12l-2.36 2.36C7.14 14.13 6.59 14 6 14c-2.194 0-4 1.806-4 4s1.806 4 4 4 4-1.806 4-4c0-.59-.13-1.14-.36-1.64L12 14l7 7h3v-1z' style='fill-rule:nonzero' transform='translate(4 4)'/%3E%3C/svg%3E")}.ag-icon-desc:before,.ag-icon-down:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ctitle%3Edesc%3C/title%3E%3Cpath d='m26.667 16-1.88-1.88-7.453 7.44V5.333h-2.667V21.56l-7.44-7.453L5.334 16l10.667 10.667L26.668 16z'/%3E%3C/svg%3E")}.ag-icon-excel:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' xml:space='preserve' style='fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2' viewBox='0 0 32 32'%3E%3Cpath d='M384 131.9c-7.753-8.433-110.425-128.473-114.9-133L48-.1C21.5 0 0 21.5 0 48v416c0 26.5 21.5 48 48 48h288c26.5 0 48-21.5 48-48zm-35.9 2.1H257V27.9zM30 479V27h200l1 105c0 13.3-1.3 29 12 29h111l1 318z' style='fill-rule:nonzero' transform='matrix(.06285 0 0 .06285 3.934 -.054)'/%3E%3Cpath d='m.052-.139.16-.234-.135-.208a.4.4 0 0 1-.028-.052.1.1 0 0 1-.01-.042.05.05 0 0 1 .018-.037.07.07 0 0 1 .045-.016q.03 0 .047.018a1 1 0 0 1 .047.066l.107.174.115-.174.024-.038.019-.026.021-.015a.1.1 0 0 1 .027-.005.06.06 0 0 1 .044.016.05.05 0 0 1 .018.039q0 .033-.038.089l-.141.211.152.234a.3.3 0 0 1 .03.051.1.1 0 0 1 .009.038.1.1 0 0 1-.008.031.1.1 0 0 1-.024.023.1.1 0 0 1-.034.008.1.1 0 0 1-.035-.008.1.1 0 0 1-.023-.022L.427-.067.301-.265l-.134.204-.022.034-.016.019a.1.1 0 0 1-.022.015.1.1 0 0 1-.03.005.06.06 0 0 1-.044-.016.06.06 0 0 1-.017-.047q0-.036.036-.088' style='fill-rule:nonzero' transform='matrix(17.82892 0 0 16.50777 10.371 25.928)'/%3E%3C/svg%3E")}.ag-icon-expanded:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ctitle%3Eexpanded%3C/title%3E%3Cpath d='M20.94 9.88 19.06 8l-8 8 8 8 1.88-1.88L14.833 16z'/%3E%3C/svg%3E")}.ag-icon-eye-slash:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ctitle%3Eeye-slash%3C/title%3E%3Cpath d='M21.106 15.088A5.19 5.19 0 0 0 16 10.814a5.17 5.17 0 0 0-3.668 1.522L9.866 9.868a12.2 12.2 0 0 1 6.133-1.646c5.186 0 9.614 3.225 11.408 7.778a12.34 12.34 0 0 1-5.276 6.133l-2.468-2.466a5.17 5.17 0 0 0 1.449-2.802h-2.123c-.148.508-.42.964-.782 1.33l-1.33-1.33h-2.514l2.196 2.196q-.272.049-.56.05a3.11 3.11 0 0 1-2.99-2.245h-2.123a5.19 5.19 0 0 0 7.3 3.836l2.247 2.247a12.2 12.2 0 0 1-4.434.828c-5.186 0-9.614-3.225-11.408-7.778a12.3 12.3 0 0 1 3.781-5.111l2.924 2.924a5.1 5.1 0 0 0-.404 1.275h4.206l-1.296-1.296a3.1 3.1 0 0 1 2.196-.903c1.404 0 2.587.924 2.976 2.199h2.13z'/%3E%3C/svg%3E")}.ag-icon-eye:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ctitle%3Eeye%3C/title%3E%3Cpath d='M16 8.222c-5.186 0-9.614 3.225-11.408 7.778 1.794 4.553 6.222 7.778 11.408 7.778S25.614 20.553 27.408 16C25.614 11.447 21.186 8.222 16 8.222m0 12.964c-2.862 0-5.186-2.324-5.186-5.186s2.324-5.186 5.186-5.186 5.186 2.324 5.186 5.186-2.324 5.186-5.186 5.186m0-8.297c-1.721 0-3.111 1.39-3.111 3.111s1.39 3.111 3.111 3.111 3.111-1.39 3.111-3.111-1.39-3.111-3.111-3.111'/%3E%3C/svg%3E")}.ag-icon-filter:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ctitle%3Efilter%3C/title%3E%3Cpath d='M13.333 24h5.333v-2.667h-5.333zM4 8v2.667h24V8zm4 9.333h16v-2.667H8z'/%3E%3C/svg%3E")}.ag-icon-first:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ctitle%3Efirst%3C/title%3E%3Cpath d='M24.273 22.12 18.153 16l6.12-6.12L22.393 8l-8 8 8 8zM7.727 8h2.667v16H7.727z'/%3E%3C/svg%3E")}.ag-icon-group:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ctitle%3Egroup%3C/title%3E%3Cpath d='M18.667 21.333h8.889A3.555 3.555 0 0 1 24 24.889h-5.333zm8.888-7.111v3.556h-8.889v-3.556zM24 7.111a3.555 3.555 0 0 1 3.556 3.556h-16V7.111zm-8.889 17.778h-3.556v-3.556h3.556zm0-7.111h-3.556v-3.556h3.556zM8 10.667H4.444A3.555 3.555 0 0 1 8 7.111z'/%3E%3C/svg%3E")}.ag-icon-last:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ctitle%3Elast%3C/title%3E%3Cpath d='m7.727 9.88 6.12 6.12-6.12 6.12L9.607 24l8-8-8-8zM21.607 8h2.667v16h-2.667z'/%3E%3C/svg%3E")}.ag-icon-left:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ctitle%3Eleft%3C/title%3E%3Cpath d='M26.667 14.667H10.44l7.453-7.453L16 5.334 5.333 16.001 16 26.668l1.88-1.88-7.44-7.453h16.227v-2.667z'/%3E%3C/svg%3E")}.ag-icon-linked:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ctitle%3Elinked%3C/title%3E%3Cpath d='M5.2 16a4.136 4.136 0 0 1 4.133-4.133h5.333V9.334H9.333c-3.68 0-6.667 2.987-6.667 6.667s2.987 6.667 6.667 6.667h5.333v-2.533H9.333A4.136 4.136 0 0 1 5.2 16.002zm5.467 1.333h10.667v-2.667H10.667zm12-8h-5.333v2.533h5.333c2.28 0 4.133 1.853 4.133 4.133s-1.853 4.133-4.133 4.133h-5.333v2.533h5.333c3.68 0 6.667-2.987 6.667-6.667s-2.987-6.667-6.667-6.667z'/%3E%3C/svg%3E")}.ag-icon-loading:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ctitle%3Eloading%3C/title%3E%3Cpath d='m17.778 11.708 3.25-3.251 2.516 2.516-3.251 3.25h4.597v3.556h-4.597l3.251 3.25-2.516 2.516-3.25-3.251v4.597h-3.556v-4.597l-3.25 3.251-2.516-2.516 3.251-3.25H7.11v-3.556h4.597l-3.251-3.25 2.516-2.516 3.25 3.251V7.111h3.556zm-3.251 7.847h2.944l2.084-2.084v-2.944l-2.084-2.084h-2.944l-2.084 2.084v2.944z'/%3E%3C/svg%3E")}.ag-icon-maximize:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ctitle%3Emaximize%3C/title%3E%3Cpath d='M4 4h24v2.667H4z'/%3E%3C/svg%3E")}.ag-icon-menu:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ctitle%3Emenu%3C/title%3E%3Cpath d='M4 24h24v-2.667H4zm0-6.667h24v-2.667H4zM4 8v2.667h24V8z'/%3E%3C/svg%3E")}.ag-icon-menu-alt:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' fill='none' viewBox='0 0 32 32'%3E%3Cpath fill='%23000' d='M16 26.667a2.57 2.57 0 0 1-1.883-.784A2.57 2.57 0 0 1 13.333 24q0-1.1.784-1.883A2.57 2.57 0 0 1 16 21.333q1.1 0 1.883.784.784.783.784 1.883t-.784 1.883a2.57 2.57 0 0 1-1.883.784m0-8a2.57 2.57 0 0 1-1.883-.784A2.57 2.57 0 0 1 13.333 16q0-1.1.784-1.883A2.57 2.57 0 0 1 16 13.333q1.1 0 1.883.784.784.783.784 1.883t-.784 1.883a2.57 2.57 0 0 1-1.883.784m0-8a2.57 2.57 0 0 1-1.883-.784A2.57 2.57 0 0 1 13.333 8q0-1.1.784-1.883A2.57 2.57 0 0 1 16 5.333q1.1 0 1.883.784.784.783.784 1.883t-.784 1.883a2.57 2.57 0 0 1-1.883.784'/%3E%3C/svg%3E")}.ag-icon-minimize:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ctitle%3Eminimize%3C/title%3E%3Cpath d='M8 25.333h16V28H8z'/%3E%3C/svg%3E")}.ag-icon-minus:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' xml:space='preserve' style='fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2' viewBox='0 0 32 32'%3E%3Cpath d='M6.572 6.572a13.32 13.32 0 0 0 0 18.856 13.32 13.32 0 0 0 18.856 0 13.32 13.32 0 0 0 0-18.856 13.32 13.32 0 0 0-18.856 0m17.527 8.099v2.658H7.901v-2.658z' style='fill-rule:nonzero'/%3E%3C/svg%3E")}.ag-icon-next:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ctitle%3Enext%3C/title%3E%3Cpath d='m12.94 8-1.88 1.88L17.167 16l-6.107 6.12L12.94 24l8-8z'/%3E%3C/svg%3E")}.ag-icon-none:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ctitle%3Enone%3C/title%3E%3Cpath d='M4 24h16v-2.667H4zM4 8v2.667h24V8zm0 9.333h24v-2.667H4z'/%3E%3C/svg%3E")}.ag-icon-not-allowed:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ctitle%3Enot-allowed%3C/title%3E%3Cpath d='M16 2.667C8.64 2.667 2.667 8.64 2.667 16S8.64 29.333 16 29.333 29.333 23.36 29.333 16 23.36 2.667 16 2.667M5.333 16c0-5.893 4.773-10.667 10.667-10.667 2.467 0 4.733.84 6.533 2.253L7.586 22.533A10.54 10.54 0 0 1 5.333 16M16 26.667c-2.467 0-4.733-.84-6.533-2.253L24.414 9.467A10.54 10.54 0 0 1 26.667 16c0 5.893-4.773 10.667-10.667 10.667'/%3E%3C/svg%3E")}.ag-icon-paste:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ctitle%3Epaste%3C/title%3E%3Cpath d='M25.333 4H19.76C19.2 2.453 17.733 1.333 16 1.333S12.8 2.453 12.24 4H6.667A2.675 2.675 0 0 0 4 6.667V28c0 1.467 1.2 2.667 2.667 2.667h18.667c1.467 0 2.667-1.2 2.667-2.667V6.667C28.001 5.2 26.801 4 25.334 4zM16 4c.733 0 1.333.6 1.333 1.333s-.6 1.333-1.333 1.333-1.333-.6-1.333-1.333S15.267 4 16 4m9.333 24H6.666V6.667h2.667v4h13.333v-4h2.667z'/%3E%3C/svg%3E")}.ag-icon-pin:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ctitle%3Epin%3C/title%3E%3Cpath d='m11.106 22.093-4.444 4.444-1.259-1.259 4.444-4.444zm5.872-16.63 9.618 9.62-.962.962-.962-.962-7.694 3.847 1.924 1.924-2.74 2.74-7.696-7.696 2.741-2.74 1.924 1.925 3.847-7.696-.962-.962z'/%3E%3C/svg%3E")}.ag-icon-pivot:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ctitle%3Epivot%3C/title%3E%3Cpath d='M26.667 30.223H5.334a3.556 3.556 0 0 1-3.556-3.556V5.334a3.556 3.556 0 0 1 3.556-3.556h21.333a3.556 3.556 0 0 1 3.556 3.556v21.333a3.556 3.556 0 0 1-3.556 3.556m-16-8.89H5.334v5.333h5.333zm16-7.11H12.444v12.444h14.223zm-9.15 6.85-2.039 2.037 2.039 2.039-1.257 1.257-3.295-3.296 3.295-3.295q.63.628 1.257 1.257zm-6.85-6.85H5.334v5.333h5.333zm15.74 3.816-1.257 1.256-2.039-2.037-2.037 2.037-1.257-1.256 3.295-3.296zM10.667 5.333H5.334v5.333h5.333zm8.889 0h-7.112v5.333h7.112zm7.111 0h-5.333v5.333h5.333z'/%3E%3C/svg%3E")}.ag-icon-plus:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' xml:space='preserve' style='fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2' viewBox='0 0 32 32'%3E%3Cpath d='M6.572 6.572a13.32 13.32 0 0 0 0 18.856 13.32 13.32 0 0 0 18.856 0 13.32 13.32 0 0 0 0-18.856 13.32 13.32 0 0 0-18.856 0m17.527 8.099v2.658h-6.77v6.77h-2.658v-6.77h-6.77v-2.658h6.77v-6.77h2.658v6.77z' style='fill-rule:nonzero'/%3E%3C/svg%3E")}.ag-icon-previous:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ctitle%3Eprevious%3C/title%3E%3Cpath d='M20.94 9.88 19.06 8l-8 8 8 8 1.88-1.88L14.833 16z'/%3E%3C/svg%3E")}.ag-icon-right:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ctitle%3Eright%3C/title%3E%3Cpath d='m16 5.333-1.88 1.88 7.44 7.453H5.333v2.667H21.56l-7.44 7.453 1.88 1.88 10.667-10.667L16 5.332z'/%3E%3C/svg%3E")}.ag-icon-save:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ctitle%3Esave%3C/title%3E%3Cpath d='M25.333 16v9.333H6.666V16H3.999v9.333C3.999 26.8 5.199 28 6.666 28h18.667C26.8 28 28 26.8 28 25.333V16zm-8 .893 3.453-3.44 1.88 1.88L15.999 22l-6.667-6.667 1.88-1.88 3.453 3.44V4h2.667v12.893z'/%3E%3C/svg%3E")}.ag-icon-small-down:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ctitle%3Esmall-down%3C/title%3E%3Cpath d='M9.333 12.667 16 19.334l6.667-6.667H9.334z'/%3E%3C/svg%3E")}.ag-icon-small-left:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ctitle%3Esmall-left%3C/title%3E%3Cpath d='M19.333 9.333 12.666 16l6.667 6.667V9.334z'/%3E%3C/svg%3E")}.ag-icon-small-right:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ctitle%3Esmall-right%3C/title%3E%3Cpath d='M12.667 22.667 19.334 16l-6.667-6.667v13.333z'/%3E%3C/svg%3E")}.ag-icon-small-up:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ctitle%3Esmall-up%3C/title%3E%3Cpath d='M9.333 19.333 16 12.666l6.667 6.667H9.334z'/%3E%3C/svg%3E")}.ag-icon-tick:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ctitle%3Etick%3C/title%3E%3Cpath d='m11.727 21.167-5.56-5.56-1.893 1.88 7.453 7.453 16-16-1.88-1.88z'/%3E%3C/svg%3E")}.ag-icon-tree-closed:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ctitle%3Etree-closed%3C/title%3E%3Cpath d='m12.94 8-1.88 1.88L17.167 16l-6.107 6.12L12.94 24l8-8z'/%3E%3C/svg%3E")}.ag-icon-tree-indeterminate:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ctitle%3Etree-indeterminate%3C/title%3E%3Cpath d='M6.667 14.667h18.667v2.667H6.667z'/%3E%3C/svg%3E")}.ag-icon-tree-open:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ctitle%3Etree-open%3C/title%3E%3Cpath d='M22.12 11.06 16 17.167 9.88 11.06 8 12.94l8 8 8-8z'/%3E%3C/svg%3E")}.ag-icon-unlinked:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ctitle%3Eunlinked%3C/title%3E%3Cpath d='M22.667 9.333h-5.333v2.533h5.333a4.136 4.136 0 0 1 4.133 4.133c0 1.907-1.307 3.507-3.08 3.973l1.947 1.947c2.173-1.107 3.667-3.32 3.667-5.92a6.67 6.67 0 0 0-6.667-6.667zm-1.334 5.334h-2.92l2.667 2.667h.253zM2.667 5.693 6.814 9.84A6.65 6.65 0 0 0 2.667 16a6.67 6.67 0 0 0 6.667 6.667h5.333v-2.533H9.334a4.136 4.136 0 0 1-4.133-4.133c0-2.12 1.613-3.867 3.68-4.093l2.76 2.76h-.973v2.667h3.64l3.027 3.027v2.307h2.307l5.347 5.333 1.68-1.68L4.362 4.002 2.669 5.695z'/%3E%3C/svg%3E")}.ag-icon-up:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ctitle%3Easc%3C/title%3E%3Cpath d='m5.333 16 1.88 1.88 7.453-7.44v16.227h2.667V10.44l7.44 7.453L26.666 16 15.999 5.333z'/%3E%3C/svg%3E")}.ag-icon-grip:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ctitle%3Egrip%3C/title%3E%3Cpath d='M26.667 12H5.334v2.667h21.333zM5.333 20h21.333v-2.667H5.333z'/%3E%3C/svg%3E")}.ag-icon-settings:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' fill='none' viewBox='0 0 32 32'%3E%3Cpath fill='%23000' d='M30 8h-4.1c-.5-2.3-2.5-4-4.9-4s-4.4 1.7-4.9 4H2v2h14.1c.5 2.3 2.5 4 4.9 4s4.4-1.7 4.9-4H30zm-9 4c-1.7 0-3-1.3-3-3s1.3-3 3-3 3 1.3 3 3-1.3 3-3 3M2 24h4.1c.5 2.3 2.5 4 4.9 4s4.4-1.7 4.9-4H30v-2H15.9c-.5-2.3-2.5-4-4.9-4s-4.4 1.7-4.9 4H2zm9-4c1.7 0 3 1.3 3 3s-1.3 3-3 3-3-1.3-3-3 1.3-3 3-3'/%3E%3C/svg%3E")}`,uL=To({feature:"iconSet",css:()=>Sg+OD}),pM=i=>{let o=[Sg];if(i.type==="image"){let{icons:C,mask:P}=i;for(let[B,W]of Object.entries(C)){let $=ud(W);P?o.push(`.ag-icon-${B}::before { mask-image: ${$}; }`):o.push(`.ag-icon-${B}::before { background-image: ${$}; ${mM} }`)}}if(i.type==="font"){let{family:C,weight:P,color:B,icons:W}=i,$=mM;C&&($+=` font-family: ${LD(C)};`),P&&($+=` font-weight: ${rT(P)};`),B&&($+=` color: ${Q0(B)};`);for(let[ie,ue]of Object.entries(W))o.push(`.ag-icon-${ie}::before { content: ${JSON.stringify(ue)}; ${$} }`)}return To({css:o.join(`;
`),cssImports:i.cssImports})},mM="background-color: unset; mask-image: unset; -webkit-mask-image: unset;",cT={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"/>'},Tb={"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>'},_D=(i={})=>{let o=Sg;for(let C of[...Object.keys(cT),...Object.keys(Tb)]){let P=fM(C,i.strokeWidth);o+=`.ag-icon-${C}::before { mask-image: url('data:image/svg+xml,${encodeURIComponent(P)}'); }
`}return o},fM=(i,o=1.5)=>{let C=Tb[i];if(C)return C;let P=cT[i];if(!P)throw new Error(`Missing icon data for ${i}`);return`<svg xmlns="http://www.w3.org/2000/svg" class="ag-icon" fill="none" stroke-linecap="round" stroke-linejoin="round" stroke="black" stroke-width="${o}" viewBox="0 0 24 24"><style>* { vector-effect: non-scaling-stroke; }</style>`+P+"</svg>"},wg=(i={})=>To({feature:"iconSet",css:()=>_D(i)}),vM=wg({strokeWidth:1}),FD=wg(),Nv=wg({strokeWidth:2}),Rb=':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}}:where(input.ag-input-field-input:not([type]),input.ag-input-field-input[type=text],input.ag-input-field-input[type=number],input.ag-input-field-input[type=tel],input.ag-input-field-input[type=date],input.ag-input-field-input[type=datetime-local],textarea.ag-input-field-input){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) :where(input.ag-input-field-input:not([type]),input.ag-input-field-input[type=text],input.ag-input-field-input[type=number],input.ag-input-field-input[type=tel],input.ag-input-field-input[type=date],input.ag-input-field-input[type=datetime-local],textarea.ag-input-field-input){padding-left:var(--ag-input-padding-start)}:where(.ag-rtl) :where(input.ag-input-field-input:not([type]),input.ag-input-field-input[type=text],input.ag-input-field-input[type=number],input.ag-input-field-input[type=tel],input.ag-input-field-input[type=date],input.ag-input-field-input[type=datetime-local],textarea.ag-input-field-input){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-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-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-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)}}',Hd=":where(input.ag-input-field-input:not([type]),input.ag-input-field-input[type=text],input.ag-input-field-input[type=number],input.ag-input-field-input[type=tel],input.ag-input-field-input[type=date],input.ag-input-field-input[type=datetime-local],textarea.ag-input-field-input){&:focus{box-shadow:var(--ag-focus-shadow)}}",zv=":where(input.ag-input-field-input:not([type]),input.ag-input-field-input[type=text],input.ag-input-field-input[type=number],input.ag-input-field-input[type=tel],input.ag-input-field-input[type=date],input.ag-input-field-input[type=datetime-local],textarea.ag-input-field-input){border-left:none;border-right:none;border-top:none}",Pb={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"}},ND=To({feature:"inputStyle",params:Pb,css:Rb}),tS=To({feature:"inputStyle",params:et(pe({},Pb),{inputBackgroundColor:{ref:"backgroundColor"},inputBorder:!0,inputBorderRadius:{ref:"borderRadius"},inputPaddingStart:{ref:"spacing"},inputFocusBorder:{color:$s},inputFocusShadow:{ref:"focusShadow"},inputDisabledBackgroundColor:wl(.06),inputDisabledTextColor:{ref:"textColor",mix:.5},inputInvalidBorder:{color:{ref:"invalidColor"}}}),css:()=>Rb+Hd}),zD=To({feature:"inputStyle",params:et(pe({},Pb),{inputBorder:{width:2,color:ur(.3)},inputPaddingStart:{ref:"spacing"},inputFocusBorder:"solid 2px var(--ag-accent-color)",inputDisabledTextColor:{ref:"textColor",mix:.5},inputDisabledBorder:"solid 1px var(--ag-border-color)",inputInvalidBorder:{width:2,color:{ref:"invalidColor",mix:.3}}}),css:()=>Rb+zv}),iS='.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:1px solid var(--ag-border-color)}:where(.ag-rtl) .ag-tabs-close-button-wrapper{border-left:1px solid 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)}}}',xl=".ag-tab{border-left:var(--ag-tab-selected-border-width) solid transparent;border-right:var(--ag-tab-selected-border-width) solid transparent;border-top:var(--ag-tab-selected-border-width) solid transparent;flex:0;&.ag-tab-selected{border-left-color:var(--ag-tab-selected-border-color);border-right-color:var(--ag-tab-selected-border-color);border-top-color:var(--ag-tab-selected-border-color);margin-bottom:-1px;padding-bottom:calc(var(--ag-tab-bottom-padding) + 1px)}}",Lb={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:1,tabSelectedBorderColor:"transparent",tabSelectedUnderlineColor:"transparent",tabSelectedUnderlineWidth:0,tabSelectedUnderlineTransitionDuration:0,tabBarBorder:!1},BD=To({feature:"tabStyle",params:Lb,css:iS}),Ru=To({feature:"tabStyle",params:et(pe({},Lb),{tabBarBorder:!0,tabBarBackgroundColor:ur(.05),tabTextColor:{ref:"textColor",mix:.7},tabSelectedTextColor:{ref:"textColor"},tabHoverTextColor:{ref:"textColor"},tabSelectedBorderColor:{ref:"borderColor"},tabSelectedBackgroundColor:{ref:"backgroundColor"}}),css:iS}),Zm=To({feature:"tabStyle",params:et(pe({},Lb),{tabBarBackgroundColor:{ref:"chromeBackgroundColor"},tabSelectedUnderlineColor:{ref:"primaryColor"},tabSelectedUnderlineWidth:2,tabSelectedUnderlineTransitionDuration:0}),css:iS}),$m=To({feature:"tabStyle",params:et(pe({},Lb),{tabBarBorder:!0,tabBarBackgroundColor:{ref:"chromeBackgroundColor"},tabHoverTextColor:$s,tabSelectedTextColor:$s,tabSelectedUnderlineColor:$s,tabSelectedUnderlineWidth:2,tabSelectedUnderlineTransitionDuration:"0.3s"}),css:iS}),Fh=To({feature:"tabStyle",params:et(pe({},Lb),{tabBarBackgroundColor:{ref:"chromeBackgroundColor"},tabBarHorizontalPadding:{ref:"spacing"},tabBarTopPadding:{ref:"spacing"},tabBarBorder:!0,tabHorizontalPadding:{calc:"spacing * 2"},tabTopPadding:{ref:"spacing"},tabBottomPadding:{ref:"spacing"},tabSpacing:{ref:"spacing"},tabSelectedBorderColor:{ref:"borderColor"},tabSelectedBackgroundColor:{ref:"backgroundColor"}}),css:()=>iS+xl}),Pu=Ab().withPart(Db).withPart(Fv).withPart(FD).withPart(Ru).withPart(()=>tS).withParams({fontFamily:[{googleFont:"IBM Plex Sans"},"-apple-system","BlinkMacSystemFont","Segoe UI","Roboto","Oxygen-Sans","Ubuntu"]}),nS=Ab().withPart(Db).withPart(Fv).withPart(Ep).withPart($m).withPart(tS).withParams({accentColor:"#2196f3",selectedRowBackgroundColor:ss(.3),inputFocusBorder:{color:ss(.4)},fontSize:13,dataFontSize:14,headerFontWeight:700,borderRadius:3,wrapperBorderRadius:3,tabSelectedUnderlineColor:$s,tabSelectedBorderWidth:2,tabSelectedUnderlineTransitionDuration:.3}),Ip=Ab().withPart(Db).withPart(Fv).withPart(Ep).withPart(Fh).withPart(tS).withParams({spacing:4,borderRadius:2,wrapperBorderRadius:2,headerColumnResizeHandleColor:"transparent",headerColumnBorder:!0,headerColumnBorderHeight:"50%",oddRowBackgroundColor:{ref:"chromeBackgroundColor",mix:.5},headerTextColor:ur(.5),fontSize:12,headerFontWeight:"bold"}),aS={cssName:"--ag-row-height",changeKey:"rowHeightChanged",defaultValue:42},yM={cssName:"--ag-header-height",changeKey:"headerHeightChanged",defaultValue:48},bM={cssName:"--ag-list-item-height",changeKey:"listItemHeightChanged",defaultValue:24},CM={cssName:"--ag-row-border",changeKey:"rowBorderWidthChanged",defaultValue:1,border:!0},hL=0,Tp=class extends ei{constructor(){super(...arguments),this.beanName="environment",this.sizeEls=new Map,this.lastKnownValues=new Map,this.sizesMeasured=!1,this.paramsClass=`ag-theme-params-${++hL}`,this.globalCSS=[]}wireBeans(i){this.eGridDiv=i.eGridDiv}postConstruct(){this.addManagedPropertyListener("theme",()=>this.handleThemeGridOptionChange()),this.handleThemeGridOptionChange(),this.addManagedPropertyListener("rowHeight",()=>this.refreshRowHeightVariable()),this.getSizeEl(aS),this.getSizeEl(yM),this.getSizeEl(bM),this.getSizeEl(CM),this.refreshRowBorderWidthVariable(),this.addDestroyFunc(()=>Oh(this))}getDefaultRowHeight(){return this.getCSSVariablePixelValue(aS)}getDefaultHeaderHeight(){return this.getCSSVariablePixelValue(yM)}getDefaultColumnMinWidth(){return Math.min(36,this.getDefaultRowHeight())}getDefaultListItemHeight(){return this.getCSSVariablePixelValue(bM)}getRowBorderWidth(){return this.getCSSVariablePixelValue(CM)}applyThemeClasses(i){let{gridTheme:o}=this,C="";if(o)C=`${this.paramsClass} ${o._getCssClass()}`;else{let P=this.eGridDiv;for(;P;){for(let B of Array.from(P.classList))B.startsWith("ag-theme-")&&(C=C?`${C} ${B}`:B);P=P.parentElement}}for(let P of Array.from(i.classList))P.startsWith("ag-theme-")&&i.classList.remove(P);if(C){let P=i.className;i.className=P+(P?" ":"")+C}}refreshRowHeightVariable(){let{eGridDiv:i}=this,o=i.style.getPropertyValue("--ag-line-height").trim(),C=this.gos.get("rowHeight");if(C==null||isNaN(C)||!isFinite(C))return o!==null&&i.style.setProperty("--ag-line-height",null),-1;let P=`${C}px`;return o!=P?(i.style.setProperty("--ag-line-height",P),C):o!=""?parseFloat(o):-1}addGlobalCSS(i,o){this.gridTheme?Tv(i,this.eGridDiv,o):this.globalCSS.push([i,o])}getCSSVariablePixelValue(i){let o=this.lastKnownValues.get(i);if(o!=null)return o;let C=this.measureSizeEl(i);return C==="detached"||C==="no-styles"?i.defaultValue:(this.lastKnownValues.set(i,C),C)}measureSizeEl(i){let o=this.getSizeEl(i);if(o.offsetParent==null)return"detached";let C=o.offsetWidth;return C===Ob?"no-styles":(this.sizesMeasured=!0,C)}getMeasurementContainer(){let i=this.eMeasurementContainer;return i||(i=this.eMeasurementContainer=document.createElement("div"),i.className="ag-measurement-container",this.eGridDiv.appendChild(i)),i}getSizeEl(i){let o=this.sizeEls.get(i);if(o)return o;let C=this.getMeasurementContainer();o=document.createElement("div");let{border:P}=i;P?(o.className="ag-measurement-element-border",o.style.setProperty("--ag-internal-measurement-border",`var(${i.cssName}, solid ${Ob}px`)):o.style.width=`var(${i.cssName}, ${Ob}px)`,C.appendChild(o),this.sizeEls.set(i,o);let B=this.measureSizeEl(i);B==="no-styles"&&pi(9,{variable:i});let W=Qr(this.beans,o,()=>{let $=this.measureSizeEl(i);$==="detached"||$==="no-styles"||(this.lastKnownValues.set(i,$),$!==B&&(B=$,this.fireGridStylesChangedEvent(i.changeKey)))});return this.addDestroyFunc(()=>W()),o}fireGridStylesChangedEvent(i){i==="rowBorderWidthChanged"&&this.refreshRowBorderWidthVariable(),this.eventSvc.dispatchEvent({type:"gridStylesChanged",[i]:!0})}refreshRowBorderWidthVariable(){let i=this.getCSSVariablePixelValue(CM);this.eGridDiv.style.setProperty("--ag-internal-row-border-width",`${i}px`)}handleThemeGridOptionChange(){let{gos:i,eGridDiv:o,globalCSS:C,gridTheme:P}=this,B=i.get("theme"),W;if(B==="legacy")W=void 0;else{let $=B!=null?B:Pu;$ instanceof _v?W=$:Ea(240,{theme:$})}if(W!==P){if(W){rM(this),aM(o);for(let[ie,ue]of C)Tv(ie,o,ue);C.length=0}this.gridTheme=W,W==null||W._startUse({loadThemeGoogleFonts:i.get("loadThemeGoogleFonts"),container:o});let $=this.eParamsStyle;$||($=this.eParamsStyle=document.createElement("style"),o.appendChild($)),Z0||($.textContent=(W==null?void 0:W._getPerGridCss(this.paramsClass))||""),this.applyThemeClasses(o),this.fireGridStylesChangedEvent("themeChanged")}W&&getComputedStyle(this.getMeasurementContainer()).getPropertyValue("--ag-legacy-styles-loaded")&&Ea(B?106:239)}},Ob=15538,SM=class extends ei{constructor(){super(...arguments),this.beanName="eventSvc",this.globalEventService=new s}postConstruct(){let{globalListener:i,globalSyncListener:o}=this.beans;i&&this.addGlobalListener(i,!0),o&&this.addGlobalListener(o,!1)}addEventListener(i,o,C){this.globalEventService.addEventListener(i,o,C)}removeEventListener(i,o,C){this.globalEventService.removeEventListener(i,o,C)}addGlobalListener(i,o=!1){this.globalEventService.addGlobalListener(i,o)}removeGlobalListener(i,o=!1){this.globalEventService.removeGlobalListener(i,o)}dispatchLocalEvent(){}dispatchEvent(i){this.globalEventService.dispatchEvent(this.gos.addGridCommonParams(i))}dispatchEventOnce(i){this.globalEventService.dispatchEventOnce(this.gos.addGridCommonParams(i))}};function oS(i){return i?i.getLeafColumns().some(o=>o.isSpanHeaderHeight()):!1}function wM(i,o){let C;if(Io(i)&&oS(i)&&i.isPadding()){let P=i;C=P.getLeafColumns()[0];let B=C;for(;B!==P;)o++,B=B.getParent()}return{column:C||i,headerRowIndex:o}}var dT=class extends ei{constructor(){super(...arguments),this.beanName="headerNavigation",this.currentHeaderRowWithoutSpan=-1}postConstruct(){let i=this.beans;i.ctrlsSvc.whenReady(this,C=>{this.gridBodyCon=C.gridBodyCtrl});let o=Ao(i);this.addManagedElementListeners(o,{mousedown:()=>{this.currentHeaderRowWithoutSpan=-1}})}getHeaderPositionForColumn(i,o){var st;let C,{colModel:P,colGroupSvc:B,ctrlsSvc:W}=this.beans;if(typeof i=="string"?(C=P.getCol(i),C||(C=(st=B==null?void 0:B.getColumnGroup(i))!=null?st:null)):C=i,!C)return null;let $=W.getHeaderRowContainerCtrl(),ie=$==null?void 0:$.getAllCtrls(),ue=Sa(ie||[]).type==="filter",De=qa(this.beans)-1,_e=-1,Be=C;for(;Be;)_e++,Be=Be.getParent();let Qe=_e;return o&&ue&&Qe===De-1&&Qe++,Qe===-1?null:{headerRowIndex:Qe,column:C}}navigateVertically(i,o,C){let P=this.beans.focusSvc;if(o||(o=P.focusedHeader),!o)return!1;let{headerRowIndex:B}=o,W=o.column,$=qa(this.beans),ie=i==="UP",ue=this.getHeaderRowType(B),{headerRowIndex:De,column:_e,headerRowIndexWithoutSpan:Be}=ie?gL(ue,W,B):rS(ue,W,B),Qe=!1;return De<0&&(De=0,_e=W,Qe=!0),De>=$?(De=-1,this.currentHeaderRowWithoutSpan=-1):Be!==void 0&&(this.currentHeaderRowWithoutSpan=Be),!Qe&&!_e?!1:P.focusHeaderPosition({headerPosition:{headerRowIndex:De,column:_e},allowUserOverride:!0,event:C})}navigateHorizontally(i,o=!1,C){let{focusSvc:P,gos:B}=this.beans,W=P.focusedHeader,$,ie;if(this.currentHeaderRowWithoutSpan!==-1?W.headerRowIndex=this.currentHeaderRowWithoutSpan:this.currentHeaderRowWithoutSpan=W.headerRowIndex,i==="LEFT"!==B.get("enableRtl")?(ie="Before",$=this.findHeader(W,ie)):(ie="After",$=this.findHeader(W,ie)),$||!o)return P.focusHeaderPosition({headerPosition:$,direction:ie,fromTab:o,allowUserOverride:!0,event:C});if(o){let ue=B.getCallback("tabToNextHeader");if(ue)return P.focusHeaderPositionFromUserFunc({userFunc:ue,headerPosition:$,direction:ie})}return this.focusNextHeaderRow(W,ie,C)}focusNextHeaderRow(i,o,C){let P=i.headerRowIndex,B=null,W,$=this.beans;if(o==="Before"?P>0&&(W=P-1,this.currentHeaderRowWithoutSpan-=1,B=this.findColAtEdgeForHeaderRow(W,"end")):(W=P+1,this.currentHeaderRowWithoutSpan<qa($)?this.currentHeaderRowWithoutSpan+=1:this.currentHeaderRowWithoutSpan=-1,B=this.findColAtEdgeForHeaderRow(W,"start")),!B)return!1;let{column:ie,headerRowIndex:ue}=wM(B.column,B==null?void 0:B.headerRowIndex);return $.focusSvc.focusHeaderPosition({headerPosition:{column:ie,headerRowIndex:ue},direction:o,fromTab:!0,allowUserOverride:!0,event:C})}scrollToColumn(i,o="After"){if(i.getPinned())return;let C;if(Io(i)){let P=i.getDisplayedLeafColumns();C=o==="Before"?Sa(P):P[0]}else C=i;this.gridBodyCon.scrollFeature.ensureColumnVisible(C)}findHeader(i,o){var De;let C,P,{colGroupSvc:B,visibleCols:W}=this.beans;if(Io(i.column)?C=(De=B==null?void 0:B.getGroupAtDirection(i.column,o))!=null?De:void 0:(P=`getCol${o}`,C=W[P](i.column)),!C)return;let{headerRowIndex:$}=i;if(this.getHeaderRowType($)!=="filter"){let _e=[C];for(;C.getParent();)C=C.getParent(),_e.push(C);C=_e[Math.max(0,_e.length-1-$)]}let{column:ie,headerRowIndex:ue}=wM(C,$);return{column:ie,headerRowIndex:ue}}getHeaderRowType(i){let o=this.beans.ctrlsSvc.getHeaderRowContainerCtrl();if(o)return o.getRowType(i)}findColAtEdgeForHeaderRow(i,o){let{visibleCols:C,ctrlsSvc:P,colGroupSvc:B}=this.beans,W=C.allCols,$=W[o==="start"?0:W.length-1];if(!$)return;let ie=P.getHeaderRowContainerCtrl($.getPinned()),ue=ie==null?void 0:ie.getRowType(i);if(ue=="group"){let De=B==null?void 0:B.getColGroupAtLevel($,i);return{headerRowIndex:i,column:De}}return{headerRowIndex:ue==null?-1:i,column:$}}};function gL(i,o,C){let P=i==="filter",B=i==="column",W=P?o:o.getParent(),$=C-1,ie=$;if(B&&oS(o.getParent())){for(;W&&W.isPadding();)W=W.getParent(),$--;ie=$,$<0&&(W=o,$=C,ie=void 0)}return{column:W,headerRowIndex:$,headerRowIndexWithoutSpan:ie}}function rS(i,o,C,P="After"){let B=o,W=C+1,$=W;if(i==="group"){let ie=o.getDisplayedLeafColumns(),ue=P==="After"?ie[0]:Sa(ie),De=[],_e=ue;for(;_e.getParent()!==o;)_e=_e.getParent(),De.push(_e);if(B=ue,ue.isSpanHeaderHeight())for(let Be=De.length-1;Be>=0;Be--){let Qe=De[Be];if(!Qe.isPadding()){B=Qe;break}W++}else B=Sa(De),B||(B=ue)}return{column:B,headerRowIndex:W,headerRowIndexWithoutSpan:$}}var Wd=class extends ei{constructor(){super(...arguments),this.beanName="focusSvc"}wireBeans(i){this.colModel=i.colModel,this.visibleCols=i.visibleCols,this.rowRenderer=i.rowRenderer,this.navigation=i.navigation,this.filterManager=i.filterManager,this.overlays=i.overlays}postConstruct(){let i=this.clearFocusedCell.bind(this);this.addManagedEventListeners({columnPivotModeChanged:i,newColumnsLoaded:this.onColumnEverythingChanged.bind(this),columnGroupOpened:i,columnRowGroupChanged:i}),this.addDestroyFunc(Kl(this.beans))}onColumnEverythingChanged(){if(!this.focusedCell)return;let i=this.focusedCell.column,o=this.colModel.getCol(i.getId());i!==o&&this.clearFocusedCell()}getFocusCellToUseAfterRefresh(){return this.gos.get("suppressFocusAfterRefresh")||!this.focusedCell||this.isDomDataMissingInHierarchy(Fa(this.beans),wu)?null:this.focusedCell}getFocusHeaderToUseAfterRefresh(){return this.gos.get("suppressFocusAfterRefresh")||!this.focusedHeader||this.isDomDataMissingInHierarchy(Fa(this.beans),Px)?null:this.focusedHeader}isDomDataMissingInHierarchy(i,o){let C=i;for(;C;){if(Cm(this.gos,C,o))return!1;C=C.parentNode}return!0}getFocusedCell(){return this.focusedCell}shouldRestoreFocus(i){return this.isCellRestoreFocused(i)?(setTimeout(()=>{this.restoredFocusedCell=null},0),!0):!1}clearRestoreFocus(){this.restoredFocusedCell=null,this.awaitRestoreFocusedCell=!1}restoreFocusedCell(i,o){this.awaitRestoreFocusedCell=!0,setTimeout(()=>{this.awaitRestoreFocusedCell&&(this.setRestoreFocusedCell(i),o())})}isCellRestoreFocused(i){return this.restoredFocusedCell==null?!1:Ki(i,this.restoredFocusedCell)}setRestoreFocusedCell(i){this.beans.frameworkOverrides.renderingEngine==="react"&&(this.restoredFocusedCell=i)}getFocusEventParams(i){let{rowIndex:o,rowPinned:C,column:P}=i,B={rowIndex:o,rowPinned:C,column:P,isFullWidthCell:!1},W=this.rowRenderer.getRowByPosition({rowIndex:o,rowPinned:C});return W&&(B.isFullWidthCell=W.isFullWidth()),B}clearFocusedCell(){if(this.restoredFocusedCell=null,this.focusedCell==null)return;let i=this.getFocusEventParams(this.focusedCell);this.focusedCell=null,this.eventSvc.dispatchEvent(pe({type:"cellFocusCleared"},i))}setFocusedCell(i){let{column:o,rowIndex:C,rowPinned:P,forceBrowserFocus:B=!1,preventScrollOnBrowserFocus:W=!1}=i,$=this.colModel.getCol(o);if(!$){this.focusedCell=null;return}this.focusedCell={rowIndex:C,rowPinned:cl(P),column:$},this.eventSvc.dispatchEvent(et(pe({type:"cellFocused"},this.getFocusEventParams(this.focusedCell)),{forceBrowserFocus:B,preventScrollOnBrowserFocus:W}))}isCellFocused(i){return this.focusedCell==null?!1:Ki(i,this.focusedCell)}isRowNodeFocused(i){return this.isRowFocused(i.rowIndex,i.rowPinned)}isHeaderWrapperFocused(i){if(this.focusedHeader==null)return!1;let{column:o,rowCtrl:{rowIndex:C,pinned:P}}=i,{column:B,headerRowIndex:W}=this.focusedHeader;return o===B&&C===W&&P==B.getPinned()}focusHeaderPosition(i){var ue;if(kh(this.beans))return!1;let{direction:o,fromTab:C,allowUserOverride:P,event:B,fromCell:W,rowWithoutSpanValue:$}=i,{headerPosition:ie}=i;if(W&&((ue=this.filterManager)!=null&&ue.isAdvFilterHeaderActive()))return this.focusAdvancedFilter(ie);if(P){let De=this.focusedHeader,_e=qa(this.beans);if(C){let Be=this.gos.getCallback("tabToNextHeader");Be&&(ie=this.getHeaderPositionFromUserFunc({userFunc:Be,direction:o,currentPosition:De,headerPosition:ie,headerRowCount:_e}))}else{let Be=this.gos.getCallback("navigateToNextHeader");if(Be&&B){let Qe={key:B.key,previousHeaderPosition:De,nextHeaderPosition:ie,headerRowCount:_e,event:B};ie=Be(Qe)}}}return ie?this.focusProvidedHeaderPosition({headerPosition:ie,direction:o,event:B,fromCell:W,rowWithoutSpanValue:$}):!1}focusHeaderPositionFromUserFunc(i){if(kh(this.beans))return!1;let{userFunc:o,headerPosition:C,direction:P,event:B}=i,W=this.focusedHeader,$=qa(this.beans),ie=this.getHeaderPositionFromUserFunc({userFunc:o,direction:P,currentPosition:W,headerPosition:C,headerRowCount:$});return!!ie&&this.focusProvidedHeaderPosition({headerPosition:ie,direction:P,event:B})}getHeaderPositionFromUserFunc(i){let{userFunc:o,direction:C,currentPosition:P,headerPosition:B,headerRowCount:W}=i,ie=o({backwards:C==="Before",previousHeaderPosition:P,nextHeaderPosition:B,headerRowCount:W});return ie===!0?P:ie===!1?null:ie}focusProvidedHeaderPosition(i){let{headerPosition:o,direction:C,fromCell:P,rowWithoutSpanValue:B,event:W}=i,{column:$,headerRowIndex:ie}=o,{filterManager:ue,ctrlsSvc:De,headerNavigation:_e}=this.beans;if(ie===-1)return ue!=null&&ue.isAdvFilterHeaderActive()?this.focusAdvancedFilter(o):this.focusGridView($);_e==null||_e.scrollToColumn($,C);let Be=De.getHeaderRowContainerCtrl($.getPinned()),Qe=(Be==null?void 0:Be.focusHeader(o.headerRowIndex,$,W))||!1;return _e&&Qe&&(B!=null||P)&&(_e.currentHeaderRowWithoutSpan=B!=null?B:-1),Qe}focusFirstHeader(){var P;if((P=this.overlays)!=null&&P.isExclusive()&&this.focusOverlay())return!0;let i=this.visibleCols.allCols[0];if(!i)return!1;let{colGroupSvc:o}=this.beans;o&&i.getParent()&&(i=o.getColGroupAtLevel(i,0));let C=wM(i,0);return this.focusHeaderPosition({headerPosition:C,rowWithoutSpanValue:0})}focusLastHeader(i){var P;if((P=this.overlays)!=null&&P.isExclusive()&&this.focusOverlay(!0))return!0;let o=qa(this.beans)-1,C=Sa(this.visibleCols.allCols);return this.focusHeaderPosition({headerPosition:{headerRowIndex:o,column:C},rowWithoutSpanValue:-1,event:i})}focusPreviousFromFirstCell(i){var o;return(o=this.filterManager)!=null&&o.isAdvFilterHeaderActive()?this.focusAdvancedFilter(null):this.focusLastHeader(i)}isAnyCellFocused(){return!!this.focusedCell}isRowFocused(i,o){return this.focusedCell==null?!1:this.focusedCell.rowIndex===i&&this.focusedCell.rowPinned===cl(o)}focusOverlay(i){var C,P;let o=((C=this.overlays)==null?void 0:C.isVisible())&&((P=this.overlays.eWrapper)==null?void 0:P.getGui());return!!o&&Cu(o,i)}focusGridView(i,o=!1,C=!0){var B,W,$,ie,ue;if((B=this.overlays)!=null&&B.isExclusive())return C&&this.focusOverlay(o);if(Od(this.beans))return o&&!kh(this.beans)?this.focusLastHeader():C&&this.focusOverlay(o)?!0:Cs(this.beans,!1);let P=o?mp(this.beans):Xl(this.beans);if(P){let{rowIndex:De,rowPinned:_e}=P;if(i!=null||(i=(W=this.focusedHeader)==null?void 0:W.column),i&&De!==void 0&&De!==null){if(($=this.navigation)==null||$.ensureCellVisible({rowIndex:De,column:i,rowPinned:_e}),o){let Be=this.rowRenderer.getRowByPosition(P);if(Be!=null&&Be.isFullWidth()&&((ie=this.navigation)!=null&&ie.tryToFocusFullWidthRow(P,o)))return!0}return this.setFocusedCell({rowIndex:De,column:i,rowPinned:cl(_e),forceBrowserFocus:!0}),(ue=this.beans.rangeSvc)==null||ue.setRangeToCell({rowIndex:De,rowPinned:_e,column:i}),!0}}return!!(C&&this.focusOverlay(o)||o&&this.focusLastHeader())}focusAdvancedFilter(i){var o,C;return this.advFilterFocusColumn=i==null?void 0:i.column,(C=(o=this.beans.advancedFilter)==null?void 0:o.getCtrl().focusHeaderComp())!=null?C:!1}focusNextFromAdvancedFilter(i,o){var P,B;let C=(B=o?void 0:this.advFilterFocusColumn)!=null?B:(P=this.visibleCols.allCols)==null?void 0:P[0];return i?this.focusHeaderPosition({headerPosition:{column:C,headerRowIndex:qa(this.beans)-1}}):this.focusGridView(C)}clearAdvancedFilterColumn(){this.advFilterFocusColumn=void 0}},Qm=class extends ei{constructor(){super(...arguments),this.beanName="scrollVisibleSvc"}wireBeans(i){this.ctrlsSvc=i.ctrlsSvc,this.colAnimation=i.colAnimation}postConstruct(){this.getScrollbarWidth(),this.addManagedEventListeners({displayedColumnsChanged:this.updateScrollVisible.bind(this),displayedColumnsWidthChanged:this.updateScrollVisible.bind(this)})}updateScrollVisible(){let{colAnimation:i}=this;i!=null&&i.isActive()?i.executeLaterVMTurn(()=>{i.executeLaterVMTurn(()=>this.updateScrollVisibleImpl())}):this.updateScrollVisibleImpl()}updateScrollVisibleImpl(){var C;let i=this.ctrlsSvc.get("center");if(!i||(C=this.colAnimation)!=null&&C.isActive())return;let o={horizontalScrollShowing:i.isHorizontalScrollShowing(),verticalScrollShowing:this.verticalScrollShowing};this.setScrollsVisible(o),this.updateScrollGap()}updateScrollGap(){let i=this.ctrlsSvc.get("center"),o=i.hasHorizontalScrollGap(),C=i.hasVerticalScrollGap();(this.horizontalScrollGap!==o||this.verticalScrollGap!==C)&&(this.horizontalScrollGap=o,this.verticalScrollGap=C,this.eventSvc.dispatchEvent({type:"scrollGapChanged"}))}setScrollsVisible(i){(this.horizontalScrollShowing!==i.horizontalScrollShowing||this.verticalScrollShowing!==i.verticalScrollShowing)&&(this.horizontalScrollShowing=i.horizontalScrollShowing,this.verticalScrollShowing=i.verticalScrollShowing,this.eventSvc.dispatchEvent({type:"scrollVisibilityChanged"}))}getScrollbarWidth(){if(this.scrollbarWidth==null){let i=this.gos.get("scrollbarWidth"),C=typeof i=="number"&&i>=0?i:Ar();C!=null&&(this.scrollbarWidth=C,this.eventSvc.dispatchEvent({type:"scrollbarWidthChanged"}))}return this.scrollbarWidth}},xs=class extends ei{constructor(){super(...arguments),this.beanName="gridDestroySvc",this.destroyCalled=!1}destroy(){var P,B;if(this.destroyCalled)return;let{stateSvc:i,ctrlsSvc:o,context:C}=this.beans;this.eventSvc.dispatchEvent({type:"gridPreDestroyed",state:(P=i==null?void 0:i.getState())!=null?P:{}}),this.destroyCalled=!0,(B=o.get("gridCtrl"))==null||B.destroyGridUi(),C.destroy(),super.destroy()}},Ud=new Set(["gridPreDestroyed","fillStart","pasteStart"]),GD={suppressContextMenu:!1,preventDefaultOnContextMenu:!1,allowContextMenuWithControlKey:!1,suppressMenuHide:!0,enableBrowserTooltips:!1,tooltipTrigger:"hover",tooltipShowDelay:2e3,tooltipHideDelay:1e4,tooltipMouseTrack:!1,tooltipShowMode:"standard",tooltipInteraction:!1,copyHeadersToClipboard:!1,copyGroupHeadersToClipboard:!1,clipboardDelimiter:"	",suppressCopyRowsToClipboard:!1,suppressCopySingleCellRanges:!1,suppressLastEmptyLineOnPaste:!1,suppressClipboardPaste:!1,suppressClipboardApi:!1,suppressCutToClipboard:!1,maintainColumnOrder:!1,enableStrictPivotColumnOrder:!1,suppressFieldDotNotation:!1,allowDragFromColumnsToolPanel:!1,suppressMovableColumns:!1,suppressColumnMoveAnimation:!1,suppressMoveWhenColumnDragging:!1,suppressDragLeaveHidesColumns:!1,suppressRowGroupHidesColumns:!1,suppressAutoSize:!1,autoSizePadding:20,skipHeaderOnAutoSize:!1,singleClickEdit:!1,suppressClickEdit:!1,readOnlyEdit:!1,stopEditingWhenCellsLoseFocus:!1,enterNavigatesVertically:!1,enterNavigatesVerticallyAfterEdit:!1,enableCellEditingOnBackspace:!1,undoRedoCellEditing:!1,undoRedoCellEditingLimit:10,suppressCsvExport:!1,suppressExcelExport:!1,cacheQuickFilter:!1,includeHiddenColumnsInQuickFilter:!1,excludeChildrenWhenTreeDataFiltering:!1,enableAdvancedFilter:!1,includeHiddenColumnsInAdvancedFilter:!1,enableCharts:!1,masterDetail:!1,keepDetailRows:!1,keepDetailRowsCount:10,detailRowAutoHeight:!1,tabIndex:0,rowBuffer:10,valueCache:!1,valueCacheNeverExpires:!1,enableCellExpressions:!1,suppressTouch:!1,suppressFocusAfterRefresh:!1,suppressBrowserResizeObserver:!1,suppressPropertyNamesCheck:!1,suppressChangeDetection:!1,debug:!1,suppressLoadingOverlay:!1,suppressNoRowsOverlay:!1,pagination:!1,paginationPageSize:100,paginationPageSizeSelector:!0,paginationAutoPageSize:!1,paginateChildRows:!1,suppressPaginationPanel:!1,pivotMode:!1,pivotPanelShow:"never",pivotDefaultExpanded:0,pivotSuppressAutoColumn:!1,suppressExpandablePivotGroups:!1,functionsReadOnly:!1,suppressAggFuncInHeader:!1,alwaysAggregateAtRootLevel:!1,aggregateOnlyChangedColumns:!1,suppressAggFilteredOnly:!1,removePivotHeaderRowWhenSingleValueColumn:!1,animateRows:!0,cellFlashDuration:500,cellFadeDuration:1e3,allowShowChangeAfterFilter:!1,domLayout:"normal",ensureDomOrder:!1,enableRtl:!1,suppressColumnVirtualisation:!1,suppressMaxRenderedRowRestriction:!1,suppressRowVirtualisation:!1,rowDragManaged:!1,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},uT=0,hT=0,xM=class extends ei{constructor(){super(...arguments),this.beanName="gos",this.domDataKey="__AG_"+Math.random().toString(),this.gridInstanceId=hT++,this.propEventSvc=new s,this.globalEventHandlerFactory=i=>(o,C)=>{if(!this.isAlive())return;let P=Ud.has(o);if(P&&!i||!P&&i)return;let B=un(o),W=this.gridOptions[B];typeof W=="function"&&this.beans.frameworkOverrides.wrapOutgoing(()=>{W(C)})}}wireBeans(i){this.gridOptions=i.gridOptions,this.validation=i.validation,this.api=i.gridApi,this.gridId=i.context.getGridId()}get gridOptionsContext(){return this.gridOptions.context}postConstruct(){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:i})=>{this.updateGridOptions({options:i,force:!0,source:"gridOptionsUpdated"})}})}get(i){var o;return(o=this.gridOptions[i])!=null?o:GD[i]}getCallback(i){return this.mergeGridCommonParams(this.gridOptions[i])}exists(i){return Ai(this.gridOptions[i])}mergeGridCommonParams(i){return i&&(C=>i(this.addGridCommonParams(C)))}updateGridOptions({options:i,force:o,source:C="api"}){let P={id:uT++,properties:[]},B=[],{gridOptions:W,validation:$}=this;Object.entries(i).forEach(([ie,ue])=>{$==null||$.warnOnInitialPropertyUpdate(C,ie);let De=o||typeof ue=="object"&&C==="api",_e=W[ie];if(De||_e!==ue){W[ie]=ue;let Be={type:ie,currentValue:ue,previousValue:_e,changeSet:P,source:C};B.push(Be)}}),$==null||$.processGridOptions(this.gridOptions),P.properties=B.map(ie=>ie.type),B.forEach(ie=>{_s(this,`Updated property ${ie.type} from`,ie.previousValue," to ",ie.currentValue),this.propEventSvc.dispatchEvent(ie)})}addPropertyEventListener(i,o){this.propEventSvc.addEventListener(i,o)}removePropertyEventListener(i,o){this.propEventSvc.removeEventListener(i,o)}getDomDataKey(){return this.domDataKey}getGridCommonParams(){return{api:this.api,context:this.gridOptionsContext}}addGridCommonParams(i){let o=i;return o.api=this.api,o.context=this.gridOptionsContext,o}assertModuleRegistered(i,o){let C=Array.isArray(i)?i.some(P=>this.isModuleRegistered(P)):this.isModuleRegistered(i);return C||Ea(200,et(pe({},this.getModuleErrorParams()),{moduleName:i,reasonOrId:o})),C}getModuleErrorParams(){return{gridId:this.gridId,gridScoped:No(),rowModelType:this.get("rowModelType")}}isModuleRegistered(i){return Ua(i,this.gridId,this.get("rowModelType"))}};function MM(i){return`<div class="ag-cell-label-container" role="presentation">
        <span data-ref="eMenu" class="ag-header-icon ag-header-cell-menu-button" aria-hidden="true"></span>
        <span data-ref="eFilterButton" class="ag-header-icon ag-header-cell-filter-button" aria-hidden="true"></span>
        <div data-ref="eLabel" class="ag-header-cell-label" role="presentation">
            <span data-ref="eText" class="ag-header-cell-text"></span>
            <span data-ref="eFilter" class="ag-header-icon ag-header-label-icon ag-filter-icon" aria-hidden="true"></span>
            ${i?'<ag-sort-indicator data-ref="eSortIndicator"></ag-sort-indicator>':""}
        </div>
    </div>`}var Rp=class extends On{constructor(){super(...arguments),this.eFilter=Ri,this.eFilterButton=Ri,this.eSortIndicator=Ri,this.eMenu=Ri,this.eLabel=Ri,this.eText=Ri,this.eSortOrder=Ri,this.eSortAsc=Ri,this.eSortDesc=Ri,this.eSortMixed=Ri,this.eSortNone=Ri,this.isLoadingInnerComponent=!1}refresh(i){let o=this.params;return this.params=i,this.workOutTemplate()!=this.currentTemplate||this.workOutShowMenu()!=this.currentShowMenu||i.enableSorting!=this.currentSort||this.currentSuppressMenuHide!=null&&this.shouldSuppressMenuHide()!=this.currentSuppressMenuHide||o.enableFilterButton!=i.enableFilterButton||o.enableFilterIcon!=i.enableFilterIcon?!1:(this.setDisplayName(i),!0)}workOutTemplate(){var P;let{params:i,beans:o}=this,C=(P=i.template)!=null?P:MM(!!o.sortSvc);return C!=null&&C.trim?C.trim():C}init(i){this.params=i;let{sortSvc:o,touchSvc:C,userCompFactory:P}=this.beans;this.currentTemplate=this.workOutTemplate(),this.setTemplate(this.currentTemplate,o?[o.getSortIndicatorSelector()]:void 0),C==null||C.setupForHeader(this),this.setMenu(),this.setupSort(),this.setupFilterIcon(),this.setupFilterButton(),this.workOutInnerHeaderComponent(P,i),this.setDisplayName(i)}workOutInnerHeaderComponent(i,o){let C=mx(i,o,o);C&&(this.isLoadingInnerComponent=!0,C.newAgStackInstance().then(P=>{this.isLoadingInnerComponent=!1,P&&(this.isAlive()?(this.innerHeaderComponent=P,this.eText.appendChild(P.getGui())):this.destroyBean(P))}))}setDisplayName(i){let{displayName:o}=i,C=this.currentDisplayName;if(this.currentDisplayName=o,C===o||this.innerHeaderComponent||this.isLoadingInnerComponent)return;let P=ql(o,!0);this.eText.innerText=P}addInIcon(i,o,C){if(o==null)return;let P=za(i,this.beans,C);P&&o.appendChild(P)}workOutShowMenu(){var i;return this.params.enableMenu&&!!((i=this.beans.menuSvc)!=null&&i.isHeaderMenuButtonEnabled())}shouldSuppressMenuHide(){var i;return!!((i=this.beans.menuSvc)!=null&&i.isHeaderMenuButtonAlwaysShowEnabled())}setMenu(){if(!this.eMenu)return;if(this.currentShowMenu=this.workOutShowMenu(),!this.currentShowMenu){pt(this.eMenu),this.eMenu=void 0;return}let{gos:i,eMenu:o,params:C,currentSuppressMenuHide:P}=this,B=mr(i);this.addInIcon(B?"menu":"menuAlt",o,C.column),o.classList.toggle("ag-header-menu-icon",!B),this.currentSuppressMenuHide=this.shouldSuppressMenuHide(),this.addManagedElementListeners(o,{click:()=>C.showColumnMenu(o)}),o.classList.toggle("ag-header-menu-always-show",P)}onMenuKeyboardShortcut(i){var ue,De,_e;let{params:o,gos:C,beans:P,eMenu:B,eFilterButton:W}=this,$=o.column,ie=mr(C);if(i&&!ie){if((ue=P.menuSvc)!=null&&ue.isFilterMenuInHeaderEnabled($))return o.showFilter((De=W!=null?W:B)!=null?De:this.getGui()),!0}else if(o.enableMenu)return o.showColumnMenu((_e=B!=null?B:W)!=null?_e:this.getGui()),!0;return!1}setupSort(){let{sortSvc:i}=this.beans;if(!i)return;let{enableSorting:o,column:C}=this.params;if(this.currentSort=o,!this.eSortIndicator){this.eSortIndicator=this.createBean(i.createSortIndicator(!0));let{eSortIndicator:P,eSortOrder:B,eSortAsc:W,eSortDesc:$,eSortMixed:ie,eSortNone:ue}=this;P.attachCustomElements(B,W,$,ie,ue)}this.eSortIndicator.setupSort(C),this.currentSort&&i.setupHeader(this,C,this.eLabel)}setupFilterIcon(){let{eFilter:i,params:o}=this;i&&this.configureFilter(o.enableFilterIcon,i,this.onFilterChangedIcon.bind(this),"filterActive")}setupFilterButton(){let{eFilterButton:i,params:o}=this;if(!i)return;this.configureFilter(o.enableFilterButton,i,this.onFilterChangedButton.bind(this),"filter")?this.addManagedElementListeners(i,{click:()=>o.showFilter(i)}):this.eFilterButton=void 0}configureFilter(i,o,C,P){if(!i)return pt(o),!1;let B=this.params.column;return this.addInIcon(P,o,B),this.addManagedListeners(B,{filterChanged:C}),C(),!0}onFilterChangedIcon(){let i=this.params.column.isFilterActive();Un(this.eFilter,i,{skipAriaHidden:!0})}onFilterChangedButton(){let i=this.params.column.isFilterActive();this.eFilterButton.classList.toggle("ag-filter-active",i)}getAnchorElementForMenu(i){var P,B;let{eFilterButton:o,eMenu:C}=this;return i?(P=o!=null?o:C)!=null?P:this.getGui():(B=C!=null?C:o)!=null?B:this.getGui()}destroy(){super.destroy(),this.innerHeaderComponent&&(this.destroyBean(this.innerHeaderComponent),this.innerHeaderComponent=void 0)}},sS=class extends On{constructor(){super(`<div class="ag-header-group-cell-label" role="presentation">
            <span data-ref="agLabel" class="ag-header-group-text" role="presentation"></span>
            <span data-ref="agOpened" class="ag-header-icon ag-header-expand-icon ag-header-expand-icon-expanded"></span>
            <span data-ref="agClosed" class="ag-header-icon ag-header-expand-icon ag-header-expand-icon-collapsed"></span>
        </div>`),this.agOpened=Ri,this.agClosed=Ri,this.agLabel=Ri,this.isLoadingInnerComponent=!1}init(i){let{userCompFactory:o}=this.beans;this.params=i,this.checkWarnings(),this.workOutInnerHeaderGroupComponent(o,i),this.setupLabel(i),this.addGroupExpandIcon(i),this.setupExpandIcons()}checkWarnings(){this.params.template&&pi(89)}workOutInnerHeaderGroupComponent(i,o){let C=fr(i,o,o);C&&(this.isLoadingInnerComponent=!0,C.newAgStackInstance().then(P=>{this.isLoadingInnerComponent=!1,P&&(this.isAlive()?(this.innerHeaderGroupComponent=P,this.agLabel.appendChild(P.getGui())):this.destroyBean(P))}))}setupExpandIcons(){let{agOpened:i,agClosed:o,params:{columnGroup:C},beans:P}=this;this.addInIcon("columnGroupOpened",i),this.addInIcon("columnGroupClosed",o);let B=ue=>{if(Zi(ue))return;let De=!C.isExpanded();P.colGroupSvc.setColumnGroupOpened(C.getProvidedColumnGroup(),De,"uiColumnExpanded")};this.addTouchAndClickListeners(P,o,B),this.addTouchAndClickListeners(P,i,B);let W=ue=>{Br(ue)};this.addManagedElementListeners(o,{dblclick:W}),this.addManagedElementListeners(i,{dblclick:W}),this.addManagedElementListeners(this.getGui(),{dblclick:B}),this.updateIconVisibility();let $=C.getProvidedColumnGroup(),ie=this.updateIconVisibility.bind(this);this.addManagedListeners($,{expandedChanged:ie,expandableChanged:ie})}addTouchAndClickListeners(i,o,C){var P;(P=i.touchSvc)==null||P.setupForHeaderGroup(this,o,C),this.addManagedElementListeners(o,{click:C})}updateIconVisibility(){let{agOpened:i,agClosed:o,params:{columnGroup:C}}=this;if(C.isExpandable()){let P=C.isExpanded();Un(i,P),Un(o,!P)}else Un(i,!1),Un(o,!1)}addInIcon(i,o){let C=za(i,this.beans,null);C&&o.appendChild(C)}addGroupExpandIcon(i){if(!i.columnGroup.isExpandable()){let{agOpened:o,agClosed:C}=this;Un(o,!1),Un(C,!1);return}}setupLabel(i){var B;let{displayName:o,columnGroup:C}=i,P=this.innerHeaderGroupComponent||this.isLoadingInnerComponent;if(Ai(o)&&!P){let W=ql(o,!0);this.agLabel.textContent=W}this.addOrRemoveCssClass("ag-sticky-label",!((B=C.getColGroupDef())!=null&&B.suppressStickyLabel))}destroy(){super.destroy(),this.innerHeaderGroupComponent&&(this.destroyBean(this.innerHeaderGroupComponent),this.innerHeaderGroupComponent=void 0)}},gT={moduleName:"ColumnHeaderComp",version:yi,userComponents:{agColumnHeader:Rp},icons:{menu:"menu",menuAlt:"menu-alt"}},kM={moduleName:"ColumnGroupHeaderComp",version:yi,userComponents:{agColumnGroupHeader:sS},icons:{columnGroupOpened:"expanded",columnGroupClosed:"contracted"}},_b={moduleName:"AnimationFrame",version:yi,beans:[qA]},gd=class extends ei{constructor(){super(...arguments),this.beanName="touchSvc"}mockBodyContextMenu(i,o){this.mockContextMenu(i,i.eBodyViewport,o)}mockHeaderContextMenu(i,o){this.mockContextMenu(i,i.eGui,o)}mockRowContextMenu(i){if(!Tn())return;let o=(C,P,B)=>{var ie,ue;let{rowCtrl:W,cellCtrl:$}=i.getControlsForEventTarget((ie=B==null?void 0:B.target)!=null?ie:null);(ue=this.beans.contextMenuSvc)==null||ue.handleContextMenuMouseEvent(void 0,B,W,$)};this.mockContextMenu(i,i.element,o)}handleCellDoubleClick(i,o){return(()=>{if(!Tn()||no("dblclick"))return!1;let P=new Date().getTime(),B=P-i.lastIPadMouseClickEvent<200;return i.lastIPadMouseClickEvent=P,B})()?(i.onCellDoubleClicked(o),o.preventDefault(),!0):!1}setupForHeader(i){let{gos:o,sortSvc:C}=this.beans;if(o.get("suppressTouch"))return;let{params:P,eMenu:B,eFilterButton:W}=i,$=new qs(i.getGui(),!0),ie=i.shouldSuppressMenuHide(),ue=ie&&Ai(B),De=ue?new qs(B,!0):$;if(P.enableMenu){let _e=ue?"tap":"longTap",Be=Qe=>P.showColumnMenuAfterMouseClick(Qe.touchStart);i.addManagedListeners(De,{[_e]:Be})}if(P.enableSorting){let _e=Be=>{let Qe=Be.touchStart.target;ie&&(B!=null&&B.contains(Qe)||W!=null&&W.contains(Qe))||C==null||C.progressSort(P.column,!1,"uiColumnSorted")};i.addManagedListeners($,{tap:_e})}if(P.enableFilterButton&&W){let _e=new qs(W,!0);i.addManagedListeners(_e,{tap:()=>P.showFilter(W)}),i.addDestroyFunc(()=>_e.destroy())}i.addDestroyFunc(()=>$.destroy()),ue&&i.addDestroyFunc(()=>De.destroy())}setupForHeaderGroup(i,o,C){let P=new qs(o,!0);i.addManagedListeners(P,{tap:C}),i.addDestroyFunc(()=>P.destroy())}mockContextMenu(i,o,C){if(!Tn())return;let P=new qs(o),B=W=>{C(void 0,W.touchStart,W.touchEvent)};i.addManagedListeners(P,{longTap:B}),i.addDestroyFunc(()=>P.destroy())}},xg={moduleName:"Touch",version:yi,beans:[gd]},Pp=class extends ei{constructor(){super(...arguments),this.beanName="cellNavigation"}getNextCellToFocus(i,o,C=!1){return C?this.getNextCellToFocusWithCtrlPressed(i,o):this.getNextCellToFocusWithoutCtrlPressed(i,o)}getNextCellToFocusWithCtrlPressed(i,o){let C=i===Qt.UP,P=i===Qt.DOWN,B=i===Qt.LEFT,W,$,{pageBounds:ie,gos:ue,visibleCols:De}=this.beans;if(C||P)$=C?ie.getFirstRow():ie.getLastRow(),W=o.column;else{let _e=De.allCols,Be=ue.get("enableRtl");$=o.rowIndex,W=B!==Be?_e[0]:Sa(_e)}return{rowIndex:$,rowPinned:null,column:W}}getNextCellToFocusWithoutCtrlPressed(i,o){let C=o,P=!1;for(;!P;){switch(i){case Qt.UP:C=this.getCellAbove(C);break;case Qt.DOWN:C=this.getCellBelow(C);break;case Qt.RIGHT:C=this.gos.get("enableRtl")?this.getCellToLeft(C):this.getCellToRight(C);break;case Qt.LEFT:C=this.gos.get("enableRtl")?this.getCellToRight(C):this.getCellToLeft(C);break;default:C=null,pi(8,{key:i});break}C?P=this.isCellGoodToFocusOn(C):P=!0}return C}isCellGoodToFocusOn(i){let o=i.column,C,{pinnedRowModel:P,rowModel:B}=this.beans;switch(i.rowPinned){case"top":C=P==null?void 0:P.getPinnedTopRow(i.rowIndex);break;case"bottom":C=P==null?void 0:P.getPinnedBottomRow(i.rowIndex);break;default:C=B.getRow(i.rowIndex);break}return C?!this.isSuppressNavigable(o,C):!1}getCellToLeft(i){if(!i)return null;let o=this.beans.visibleCols.getColBefore(i.column);return o?{rowIndex:i.rowIndex,column:o,rowPinned:i.rowPinned}:null}getCellToRight(i){if(!i)return null;let o=this.beans.visibleCols.getColAfter(i.column);return o?{rowIndex:i.rowIndex,column:o,rowPinned:i.rowPinned}:null}getRowBelow(i){let o=i.rowIndex,C=i.rowPinned,P=!1,{pageBounds:B,pinnedRowModel:W,rowModel:$}=this.beans;if(this.isLastRowInContainer(i))switch(C){case"bottom":return null;case"top":return $.isRowsToRender()?{rowIndex:B.getFirstRow(),rowPinned:null}:W!=null&&W.isRowsToRender("bottom")?{rowIndex:0,rowPinned:"bottom"}:null;default:return W!=null&&W.isRowsToRender("bottom")?{rowIndex:0,rowPinned:"bottom"}:null}else C&&(P=!0);let ie=$.getRow(i.rowIndex),ue=P?void 0:this.getNextStickyPosition(ie);return ue||{rowIndex:o+1,rowPinned:C}}getNextStickyPosition(i,o){let{gos:C,rowRenderer:P}=this.beans;if(!Hi(C)||!i||!i.sticky)return;let B=P.getStickyTopRowCtrls().some(De=>De.rowNode.rowIndex===i.rowIndex),W=[];B?W=[...P.getStickyTopRowCtrls()].sort((De,_e)=>De.rowNode.rowIndex-_e.rowNode.rowIndex):W=[...P.getStickyBottomRowCtrls()].sort((De,_e)=>_e.rowNode.rowIndex-De.rowNode.rowIndex);let $=o?-1:1,ie=W.findIndex(De=>De.rowNode.rowIndex===i.rowIndex),ue=W[ie+$];if(ue)return{rowIndex:ue.rowNode.rowIndex,rowPinned:null}}getCellBelow(i){if(!i)return null;let o=this.getRowBelow(i);return o?{rowIndex:o.rowIndex,column:i.column,rowPinned:o.rowPinned}:null}isLastRowInContainer(i){var $,ie;let o=i.rowPinned,C=i.rowIndex,{pinnedRowModel:P,pageBounds:B}=this.beans;return o==="top"?(($=P==null?void 0:P.getPinnedTopRowCount())!=null?$:-1)<=C:o==="bottom"?((ie=P==null?void 0:P.getPinnedBottomRowCount())!=null?ie:-1)<=C:B.getLastRow()<=C}getRowAbove(i){let o=i.rowIndex,C=i.rowPinned,{pageBounds:P,pinnedRowModel:B,rowModel:W}=this.beans,$=C?o===0:o===P.getFirstRow(),ie=!1,ue=()=>{var Qe;return{rowIndex:(Qe=B==null?void 0:B.getPinnedTopRowCount())!=null?Qe:-1,rowPinned:"top"}};if($)return C==="top"?null:C&&W.isRowsToRender()?{rowIndex:P.getLastRow(),rowPinned:null}:B!=null&&B.isRowsToRender("top")?ue():null;C&&(ie=!0);let De=W.getRow(i.rowIndex),_e=ie?void 0:this.getNextStickyPosition(De,!0);return _e||{rowIndex:o-1,rowPinned:C}}getCellAbove(i){if(!i)return null;let o=this.getRowAbove({rowIndex:i.rowIndex,rowPinned:i.rowPinned});return o?{rowIndex:o.rowIndex,column:i.column,rowPinned:o.rowPinned}:null}getNextTabbedCell(i,o){return o?this.getNextTabbedCellBackwards(i):this.getNextTabbedCellForwards(i)}getNextTabbedCellForwards(i){var ie;let{visibleCols:o,pagination:C}=this.beans,P=o.allCols,B=i.rowIndex,W=i.rowPinned,$=o.getColAfter(i.column);if(!$){$=P[0];let ue=this.getRowBelow(i);if(Qn(ue)||!ue.rowPinned&&!((ie=C==null?void 0:C.isRowInPage(ue))==null||ie))return null;B=ue?ue.rowIndex:null,W=ue?ue.rowPinned:null}return{rowIndex:B,column:$,rowPinned:W}}getNextTabbedCellBackwards(i){var ie;let{visibleCols:o,pagination:C}=this.beans,P=o.allCols,B=i.rowIndex,W=i.rowPinned,$=o.getColBefore(i.column);if(!$){$=Sa(P);let ue=this.getRowAbove({rowIndex:i.rowIndex,rowPinned:i.rowPinned});if(Qn(ue)||!ue.rowPinned&&!((ie=C==null?void 0:C.isRowInPage(ue))==null||ie))return null;B=ue?ue.rowIndex:null,W=ue?ue.rowPinned:null}return{rowIndex:B,column:$,rowPinned:W}}isSuppressNavigable(i,o){let{suppressNavigable:C}=i.colDef;if(typeof C=="boolean")return C;if(typeof C=="function"){let P=i.createColumnFunctionCallbackParams(o);return C(P)}return!1}};function AM(i){return i.focusSvc.getFocusedCell()}function Lp(i){return i.focusSvc.clearFocusedCell()}function lS(i,o,C,P){i.focusSvc.setFocusedCell({rowIndex:o,column:C,rowPinned:P,forceBrowserFocus:!0})}function Jm(i,o){var C,P;return(P=(C=i.navigation)==null?void 0:C.tabToNextCell(!1,o))!=null?P:!1}function jD(i,o){var C,P;return(P=(C=i.navigation)==null?void 0:C.tabToNextCell(!0,o))!=null?P:!1}function Fb(i,o,C=!1){var B;let P=(B=i.headerNavigation)==null?void 0:B.getHeaderPositionForColumn(o,C);P&&i.focusSvc.focusHeaderPosition({headerPosition:P})}var pT=class extends ei{constructor(){super(),this.beanName="navigation",this.onPageDown=_y(this.onPageDown,100),this.onPageUp=_y(this.onPageUp,100)}postConstruct(){this.beans.ctrlsSvc.whenReady(this,i=>{this.gridBodyCon=i.gridBodyCtrl})}handlePageScrollingKey(i,o=!1){let C=i.key,P=i.altKey,B=i.ctrlKey||i.metaKey,W=!!this.beans.rangeSvc&&i.shiftKey,$=Ss(this.gos,i),ie=!1;switch(C){case Qt.PAGE_HOME:case Qt.PAGE_END:!B&&!P&&(this.onHomeOrEndKey(C),ie=!0);break;case Qt.LEFT:case Qt.RIGHT:case Qt.UP:case Qt.DOWN:if(!$)return!1;B&&!P&&!W&&(this.onCtrlUpDownLeftRight(C,$),ie=!0);break;case Qt.PAGE_DOWN:case Qt.PAGE_UP:!B&&!P&&(ie=this.handlePageUpDown(C,$,o));break}return ie&&i.preventDefault(),ie}handlePageUpDown(i,o,C){return C&&(o=this.beans.focusSvc.getFocusedCell()),o?(i===Qt.PAGE_UP?this.onPageUp(o):this.onPageDown(o),!0):!1}navigateTo(i){let{scrollIndex:o,scrollType:C,scrollColumn:P,focusIndex:B,focusColumn:W}=i,{scrollFeature:$}=this.gridBodyCon;Ai(P)&&!P.isPinned()&&$.ensureColumnVisible(P),Ai(o)&&$.ensureIndexVisible(o,C),i.isAsync||$.ensureIndexVisible(B);let{focusSvc:ie,rangeSvc:ue}=this.beans;ie.setFocusedCell({rowIndex:B,column:W,rowPinned:null,forceBrowserFocus:!0}),ue==null||ue.setRangeToCell({rowIndex:B,rowPinned:null,column:W})}onPageDown(i){let o=this.beans,C=Bv(o),P=this.getViewportHeight(),{pageBounds:B,rowModel:W,rowAutoHeight:$}=o,ie=B.getPixelOffset(),ue=C.top+P,De=W.getRowIndexAtPixel(ue+ie);$!=null&&$.active?this.navigateToNextPageWithAutoHeight(i,De):this.navigateToNextPage(i,De)}onPageUp(i){let o=this.beans,C=Bv(o),{pageBounds:P,rowModel:B,rowAutoHeight:W}=o,$=P.getPixelOffset(),ie=C.top,ue=B.getRowIndexAtPixel(ie+$);W!=null&&W.active?this.navigateToNextPageWithAutoHeight(i,ue,!0):this.navigateToNextPage(i,ue,!0)}navigateToNextPage(i,o,C=!1){let{pageBounds:P,rowModel:B}=this.beans,W=this.getViewportHeight(),$=P.getFirstRow(),ie=P.getLastRow(),ue=P.getPixelOffset(),De=B.getRow(i.rowIndex),_e=C?(De==null?void 0:De.rowHeight)-W-ue:W-ue,Be=(De==null?void 0:De.rowTop)+_e,Qe=B.getRowIndexAtPixel(Be+ue);if(Qe===i.rowIndex){let Ct=C?-1:1;o=Qe=i.rowIndex+Ct}let st;C?(st="bottom",Qe<$&&(Qe=$),o<$&&(o=$)):(st="top",Qe>ie&&(Qe=ie),o>ie&&(o=ie)),this.isRowTallerThanView(B.getRow(Qe))&&(o=Qe,st="top"),this.navigateTo({scrollIndex:o,scrollType:st,scrollColumn:null,focusIndex:Qe,focusColumn:i.column})}navigateToNextPageWithAutoHeight(i,o,C=!1){this.navigateTo({scrollIndex:o,scrollType:C?"bottom":"top",scrollColumn:null,focusIndex:o,focusColumn:i.column}),setTimeout(()=>{let P=this.getNextFocusIndexForAutoHeight(i,C);this.navigateTo({scrollIndex:o,scrollType:C?"bottom":"top",scrollColumn:null,focusIndex:P,focusColumn:i.column,isAsync:!0})},50)}getNextFocusIndexForAutoHeight(i,o=!1){var De;let C=o?-1:1,P=this.getViewportHeight(),{pageBounds:B,rowModel:W}=this.beans,$=B.getLastRow(),ie=0,ue=i.rowIndex;for(;ue>=0&&ue<=$;){let _e=W.getRow(ue);if(_e){let Be=(De=_e.rowHeight)!=null?De:0;if(ie+Be>P)break;ie+=Be}ue+=C}return Math.max(0,Math.min(ue,$))}getViewportHeight(){let i=this.beans,o=Bv(i),C=this.beans.scrollVisibleSvc.getScrollbarWidth(),P=o.bottom-o.top;return i.ctrlsSvc.get("center").isHorizontalScrollShowing()&&(P-=C),P}isRowTallerThanView(i){if(!i)return!1;let o=i.rowHeight;return typeof o!="number"?!1:o>this.getViewportHeight()}onCtrlUpDownLeftRight(i,o){let C=this.beans.cellNavigation.getNextCellToFocus(i,o,!0),{rowIndex:P}=C,B=C.column;this.navigateTo({scrollIndex:P,scrollType:null,scrollColumn:B,focusIndex:P,focusColumn:B})}onHomeOrEndKey(i){let o=i===Qt.PAGE_HOME,{visibleCols:C,pageBounds:P}=this.beans,B=C.allCols,W=o?B[0]:Sa(B),$=o?P.getFirstRow():P.getLastRow();this.navigateTo({scrollIndex:$,scrollType:null,scrollColumn:W,focusIndex:$,focusColumn:W})}onTabKeyDown(i,o){let C=o.shiftKey,P=this.tabToNextCellCommon(i,C,o),B=this.beans,{ctrlsSvc:W,pageBounds:$,focusSvc:ie,gos:ue}=B;if(P!==!1){P?o.preventDefault():P===null&&W.get("gridCtrl").allowFocusForNextCoreContainer(C);return}if(C){let{rowIndex:De,rowPinned:_e}=i.getRowPosition();(_e?De===0:De===$.getFirstRow())&&(ue.get("headerHeight")===0||kh(B)?Cs(B,!0,!0):(o.preventDefault(),ie.focusPreviousFromFirstCell(o)))}else i instanceof nd&&i.focusCell(!0),(!C&&ie.focusOverlay(!1)||Cs(B,C))&&o.preventDefault()}tabToNextCell(i,o){let C=this.beans,{focusSvc:P,rowRenderer:B}=C,W=P.getFocusedCell();if(!W)return!1;let $=Eo(C,W);return!$&&($=B.getRowByPosition(W),!$||!$.isFullWidth())?!1:!!this.tabToNextCellCommon($,i,o)}tabToNextCellCommon(i,o,C){let P=i.editing;if(!P&&i instanceof nd){let $=i.rowCtrl;$&&(P=$.editing)}let B;return P?this.gos.get("editType")==="fullRow"?B=this.moveToNextEditingRow(i,o,C):B=this.moveToNextEditingCell(i,o,C):B=this.moveToNextCellNotEditing(i,o),B===null?B:B||!!this.beans.focusSvc.focusedHeader}moveToNextEditingCell(i,o,C=null){var W;let P=i.cellPosition;i.eGui.focus(),i.stopEditing();let B=this.findNextCellToFocusOn(P,o,!0);return B===!1?null:B==null?!1:((W=this.beans.editSvc)==null||W.startEditing(B,null,!0,C),B.focusCell(!1),!0)}moveToNextEditingRow(i,o,C=null){let P=i.cellPosition,B=this.findNextCellToFocusOn(P,o,!0);if(B===!1)return null;if(B==null)return!1;let W=B.cellPosition,$=this.isCellEditable(P),ie=this.isCellEditable(W),ue=W&&P.rowIndex===W.rowIndex&&P.rowPinned===W.rowPinned,{editSvc:De,rowEditSvc:_e}=this.beans;if($&&(De==null||De.setFocusOutOnEditor(i)),!ue){let Be=i.rowCtrl;De==null||De.stopRowEditing(Be);let Qe=B.rowCtrl;_e==null||_e.startEditing(Qe,void 0,void 0,C)}return ie?(De==null||De.setFocusInOnEditor(B),B.focusCell()):B.focusCell(!0),!0}moveToNextCellNotEditing(i,o){let C=this.beans.visibleCols.allCols,P;i instanceof b0?P=et(pe({},i.getRowPosition()),{column:o?C[0]:Sa(C)}):P=i.cellPosition;let B=this.findNextCellToFocusOn(P,o,!1);if(B===!1)return null;if(B instanceof nd)B.focusCell(!0);else if(B)return this.tryToFocusFullWidthRow(B.getRowPosition(),o);return Ai(B)}findNextCellToFocusOn(i,o,C){let P=i,B=this.beans,{cellNavigation:W,gos:$,focusSvc:ie,rowRenderer:ue,rangeSvc:De}=B;for(;;){i!==P&&(i=P),o||(P=this.getLastCellOfColSpan(P)),P=W.getNextTabbedCell(P,o);let _e=$.getCallback("tabToNextCell");if(Ai(_e)){let Ct=_e({backwards:o,editing:C,previousCellPosition:i,nextCellPosition:P||null});if(Ct===!0)P=i;else{if(Ct===!1)return!1;P={rowIndex:Ct.rowIndex,column:Ct.column,rowPinned:Ct.rowPinned}}}if(!P)return null;if(P.rowIndex<0){let st=qa(B);return ie.focusHeaderPosition({headerPosition:{headerRowIndex:st+P.rowIndex,column:P.column},fromCell:!0}),null}let Be=$.get("editType")==="fullRow";if(C&&!Be&&!this.isCellEditable(P))continue;this.ensureCellVisible(P);let Qe=Eo(B,P);if(!Qe){let st=ue.getRowByPosition(P);if(!st||!st.isFullWidth()||C)continue;return st}if(!W.isSuppressNavigable(Qe.column,Qe.rowNode))return De==null||De.setRangeToCell(P),Qe}}isCellEditable(i){let o=this.lookupRowNodeForCell(i);return o?i.column.isCellEditable(o):!1}lookupRowNodeForCell({rowIndex:i,rowPinned:o}){let{pinnedRowModel:C,rowModel:P}=this.beans;return o==="top"?C==null?void 0:C.getPinnedTopRow(i):o==="bottom"?C==null?void 0:C.getPinnedBottomRow(i):P.getRow(i)}navigateToNextCell(i,o,C,P){let B=C,W=!1,$=this.beans,{cellNavigation:ie,focusSvc:ue,gos:De}=$;for(;B&&(B===C||!this.isValidNavigateCell(B));)De.get("enableRtl")?o===Qt.LEFT&&(B=this.getLastCellOfColSpan(B)):o===Qt.RIGHT&&(B=this.getLastCellOfColSpan(B)),B=ie.getNextCellToFocus(o,B),W=Qn(B);if(W&&i&&i.key===Qt.UP&&(B={rowIndex:-1,rowPinned:null,column:C.column}),P){let Be=De.getCallback("navigateToNextCell");if(Ai(Be)){let st=Be({key:o,previousCellPosition:C,nextCellPosition:B||null,event:i});Ai(st)?B={rowPinned:st.rowPinned,rowIndex:st.rowIndex,column:st.column}:B=null}}if(!B)return;if(B.rowIndex<0){let Be=qa($);ue.focusHeaderPosition({headerPosition:{headerRowIndex:Be+B.rowIndex,column:C.column},event:i||void 0,fromCell:!0});return}let _e=this.getNormalisedPosition(B);_e?this.focusPosition(_e):this.tryToFocusFullWidthRow(B)}getNormalisedPosition(i){this.ensureCellVisible(i);let o=Eo(this.beans,i);return o?(i=o.cellPosition,this.ensureCellVisible(i),i):null}tryToFocusFullWidthRow(i,o){let{visibleCols:C,rowRenderer:P,focusSvc:B,eventSvc:W}=this.beans,$=C.allCols,ie=P.getRowByPosition(i);if(!ie||!ie.isFullWidth())return!1;let ue=B.getFocusedCell(),De={rowIndex:i.rowIndex,rowPinned:i.rowPinned,column:i.column||(o?Sa($):$[0])};this.focusPosition(De);let _e=o==null?ue!=null&&g0(De,ue):o;return W.dispatchEvent({type:"fullWidthRowFocused",rowIndex:De.rowIndex,rowPinned:De.rowPinned,column:De.column,isFullWidthCell:!0,fromBelow:_e}),!0}focusPosition(i){let{focusSvc:o,rangeSvc:C}=this.beans;o.setFocusedCell({rowIndex:i.rowIndex,column:i.column,rowPinned:i.rowPinned,forceBrowserFocus:!0}),C==null||C.setRangeToCell(i)}isValidNavigateCell(i){return!!hv(this.beans,i)}getLastCellOfColSpan(i){let o=Eo(this.beans,i);if(!o)return i;let C=o.getColSpanningList();return C.length===1?i:{rowIndex:i.rowIndex,column:Sa(C),rowPinned:i.rowPinned}}ensureCellVisible(i){let o=Hi(this.gos),C=this.beans.rowModel.getRow(i.rowIndex),P=o&&(C==null?void 0:C.sticky),{scrollFeature:B}=this.gridBodyCon;!P&&Qn(i.rowPinned)&&B.ensureIndexVisible(i.rowIndex),i.column.isPinned()||B.ensureColumnVisible(i.column)}};function Bv(i){return i.ctrlsSvc.getScrollFeature().getVScrollPosition()}var VD={moduleName:"KeyboardNavigation",version:yi,beans:[pT,Pp,dT],apiFunctions:{getFocusedCell:AM,clearFocusedCell:Lp,setFocusedCell:lS,setFocusedHeader:Fb,tabToNextCell:Jm,tabToPreviousCell:jD}},DM=class extends ei{constructor(){super(...arguments),this.beanName="pageBoundsListener"}postConstruct(){this.addManagedEventListeners({modelUpdated:this.onModelUpdated.bind(this),recalculateRowBounds:this.calculatePages.bind(this)}),this.onModelUpdated()}onModelUpdated(i){var o,C,P,B,W;this.calculatePages(),this.eventSvc.dispatchEvent({type:"paginationChanged",animate:(o=i==null?void 0:i.animate)!=null?o:!1,newData:(C=i==null?void 0:i.newData)!=null?C:!1,newPage:(P=i==null?void 0:i.newPage)!=null?P:!1,newPageSize:(B=i==null?void 0:i.newPageSize)!=null?B:!1,keepRenderedRows:(W=i==null?void 0:i.keepRenderedRows)!=null?W:!1})}calculatePages(){let{pageBounds:i,pagination:o,rowModel:C}=this.beans;o?o.calculatePages():i.calculateBounds(0,C.getRowCount()-1)}},pL=class extends ei{constructor(){super(...arguments),this.beanName="pageBounds",this.pixelOffset=0}getFirstRow(){var i,o;return(o=(i=this.topRowBounds)==null?void 0:i.rowIndex)!=null?o:-1}getLastRow(){var i,o;return(o=(i=this.bottomRowBounds)==null?void 0:i.rowIndex)!=null?o:-1}getCurrentPageHeight(){let{topRowBounds:i,bottomRowBounds:o}=this;return!i||!o?0:Math.max(o.rowTop+o.rowHeight-i.rowTop,0)}getCurrentPagePixelRange(){var B;let{topRowBounds:i,bottomRowBounds:o}=this,C=(B=i==null?void 0:i.rowTop)!=null?B:0,P=o?o.rowTop+o.rowHeight:0;return{pageFirstPixel:C,pageLastPixel:P}}calculateBounds(i,o){let{rowModel:C}=this.beans,P=C.getRowBounds(i);P&&(P.rowIndex=i),this.topRowBounds=P;let B=C.getRowBounds(o);B&&(B.rowIndex=o),this.bottomRowBounds=B,this.calculatePixelOffset()}getPixelOffset(){return this.pixelOffset}calculatePixelOffset(){var o,C;let i=(C=(o=this.topRowBounds)==null?void 0:o.rowTop)!=null?C:0;this.pixelOffset!==i&&(this.pixelOffset=i,this.eventSvc.dispatchEvent({type:"paginationPixelOffsetChanged"}))}},mL=".ag-pinned-left-floating-bottom,.ag-pinned-left-floating-top,.ag-pinned-right-floating-bottom,.ag-pinned-right-floating-top{display:inline-block;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}",fL=class extends ei{constructor(i,o){super(),this.element=i,this.isLeft=o,this.getWidth=o?()=>this.beans.pinnedCols.leftWidth:()=>this.beans.pinnedCols.rightWidth}postConstruct(){this.addManagedEventListeners({[`${this.isLeft?"left":"right"}PinnedWidthChanged`]:this.onPinnedWidthChanged.bind(this)})}onPinnedWidthChanged(){let i=this.getWidth(),o=i>0;Un(this.element,o),Cn(this.element,i)}},ef=class extends ei{constructor(){super(...arguments),this.beanName="pinnedCols"}postConstruct(){this.beans.ctrlsSvc.whenReady(this,o=>{this.gridBodyCtrl=o.gridBodyCtrl});let i=this.checkContainerWidths.bind(this);this.addManagedEventListeners({displayedColumnsChanged:i,displayedColumnsWidthChanged:i}),this.addManagedPropertyListener("domLayout",i)}checkContainerWidths(){let{gos:i,visibleCols:o,eventSvc:C}=this.beans,P=Fo(i,"print"),B=P?0:o.getColsLeftWidth(),W=P?0:o.getDisplayedColumnsRightWidth();B!=this.leftWidth&&(this.leftWidth=B,C.dispatchEvent({type:"leftPinnedWidthChanged"})),W!=this.rightWidth&&(this.rightWidth=W,C.dispatchEvent({type:"rightPinnedWidthChanged"}))}keepPinnedColumnsNarrowerThanViewport(){let i=this.gridBodyCtrl.eBodyViewport,o=to(i);if(o<=50)return;let C=this.getPinnedColumnsOverflowingViewport(o-50),P=this.gos.getCallback("processUnpinnedColumns");C.length&&(P&&(C=P({columns:C,viewportWidth:o})),this.setColsPinned(C,null,"viewportSizeFeature"))}createPinnedWidthFeature(i,o){return new fL(i,o)}setColsPinned(i,o,C){let{colModel:P,colAnimation:B,visibleCols:W,gos:$}=this.beans;if(!P.cols||!(i!=null&&i.length))return;if(Fo($,"print")){pi(37);return}B==null||B.start();let ie;o===!0||o==="left"?ie="left":o==="right"?ie="right":ie=null;let ue=[];i.forEach(De=>{if(!De)return;let _e=P.getCol(De);_e&&_e.getPinned()!==ie&&(this.setColPinned(_e,ie),ue.push(_e))}),ue.length&&(W.refresh(C),a0(this.eventSvc,ue,C)),B==null||B.finish()}initCol(i){let{pinned:o,initialPinned:C}=i.colDef;o!==void 0?this.setColPinned(i,o):this.setColPinned(i,C)}setColPinned(i,o){o===!0||o==="left"?i.pinned="left":o==="right"?i.pinned="right":i.pinned=null,i.dispatchStateUpdatedEvent("pinned")}setupHeaderPinnedWidth(i){let{scrollVisibleSvc:o}=this.beans;if(i.pinned==null)return;let C=i.pinned==="left",P=i.pinned==="right";i.hidden=!0;let B=()=>{let W=C?this.leftWidth:this.rightWidth;if(W==null)return;let $=W==0,ie=i.hidden!==$,ue=this.gos.get("enableRtl"),De=o.getScrollbarWidth(),Be=o.verticalScrollShowing&&(ue&&C||!ue&&P)?W+De:W;i.comp.setPinnedContainerWidth(`${Be}px`),i.comp.setDisplayed(!$),ie&&(i.hidden=$,i.refresh())};i.addManagedEventListeners({leftPinnedWidthChanged:B,rightPinnedWidthChanged:B,scrollVisibilityChanged:B,scrollbarWidthChanged:B})}getHeaderResizeDiff(i,o){if(o.getPinned()){let{leftWidth:P,rightWidth:B}=this,W=to(this.beans.ctrlsSvc.getGridBodyCtrl().eBodyViewport)-50;if(P+B+i>W)if(W>P+B)i=W-P-B;else return 0}return i}getPinnedColumnsOverflowingViewport(i){var Qe,st;let o=(Qe=this.rightWidth)!=null?Qe:0,C=(st=this.leftWidth)!=null?st:0,P=o+C;if(P<i)return[];let{visibleCols:B}=this.beans,W=[...B.leftCols],$=[...B.rightCols],ie=0,ue=0,De=0,_e=[],Be=P-De-i;for(;(ue<W.length||ie<$.length)&&Be>0;){if(ie<$.length){let Ct=$[ie++];Be-=Ct.getActualWidth(),_e.push(Ct)}if(ue<W.length&&Be>0){let Ct=W[ue++];Be-=Ct.getActualWidth(),_e.push(Ct)}}return _e}},cS={moduleName:"PinnedColumn",version:yi,beans:[ef],css:[mL]},Ml=class extends ei{constructor(){super(),this.beanName="ariaAnnounce",this.descriptionContainer=null,this.pendingAnnouncements=new Map,this.lastAnnouncement="",this.updateAnnouncement=zr(this,this.updateAnnouncement.bind(this),200)}postConstruct(){let i=this.beans,o=Ao(i),C=this.descriptionContainer=o.createElement("div");C.classList.add("ag-aria-description-container"),Q(C,"polite"),le(C,"additions text"),oe(C,!0),i.eGridDiv.appendChild(C)}announceValue(i,o){this.pendingAnnouncements.set(o,i),this.updateAnnouncement()}updateAnnouncement(){if(!this.descriptionContainer)return;let i=Array.from(this.pendingAnnouncements.values()).join(". ");this.pendingAnnouncements.clear(),this.descriptionContainer.textContent="",setTimeout(()=>{if(this.isAlive()&&this.descriptionContainer){let o=i;this.lastAnnouncement===o&&(o=`${o}.`),this.lastAnnouncement=o,this.descriptionContainer.textContent=o}},50)}destroy(){var o;super.destroy();let{descriptionContainer:i}=this;i&&(Ke(i),(o=i.parentElement)==null||o.removeChild(i)),this.descriptionContainer=null,this.pendingAnnouncements.clear()}},dS={moduleName:"Aria",version:yi,beans:[Ml]};function vL(i){var o;(o=i.overlays)==null||o.showLoadingOverlay()}function HD(i){var o;(o=i.overlays)==null||o.showNoRowsOverlay()}function mT(i){var o;(o=i.overlays)==null||o.hideOverlay()}var WD=".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:1px solid var(--ag-border-color);border-radius:var(--ag-border-radius);box-shadow:var(--ag-popup-shadow);padding:var(--ag-spacing)}",Gv=class extends On{constructor(){super(`
            <div class="ag-overlay" role="presentation">
                <div class="ag-overlay-panel" role="presentation">
                    <div class="ag-overlay-wrapper" data-ref="eOverlayWrapper" role="presentation"></div>
                </div>
            </div>`),this.eOverlayWrapper=Ri,this.activePromise=null,this.activeOverlay=null,this.updateListenerDestroyFunc=null,this.activeCssClass=null,this.elToFocusAfter=null,this.registerCSS(WD)}handleKeyDown(i){if(i.key!==Qt.TAB||i.defaultPrevented||Zi(i))return;let o=this.beans;if(mi(o,this.eOverlayWrapper,!1,i.shiftKey))return;let P=!1;i.shiftKey?P=o.focusSvc.focusGridView(Sa(o.visibleCols.allCols),!0,!1):P=Cs(o,!1),P&&i.preventDefault()}updateLayoutClasses(i,o){let C=this.eOverlayWrapper.classList,{AUTO_HEIGHT:P,NORMAL:B,PRINT:W}=Fd;C.toggle(P,o.autoHeight),C.toggle(B,o.normal),C.toggle(W,o.print)}postConstruct(){this.createManagedBean(new ab(this)),this.setDisplayed(!1,{skipAriaHidden:!0}),this.beans.overlays.setOverlayWrapperComp(this),this.addManagedElementListeners(this.getFocusableElement(),{keydown:this.handleKeyDown.bind(this)})}setWrapperTypeClass(i){let o=this.eOverlayWrapper.classList;this.activeCssClass&&o.toggle(this.activeCssClass,!1),this.activeCssClass=i,o.toggle(i,!0)}showOverlay(i,o,C,P){if(this.setWrapperTypeClass(o),this.destroyActiveOverlay(),this.elToFocusAfter=null,this.activePromise=i,!!i){if(this.setDisplayed(!0,{skipAriaHidden:!0}),C&&this.isGridFocused()){let B=Fa(this.beans);B&&!Ui(this.beans)&&(this.elToFocusAfter=B)}i.then(B=>{if(this.activePromise!==i){this.activeOverlay!==B&&(this.destroyBean(B),B=null);return}if(this.activePromise=null,!!B){if(this.activeOverlay!==B&&(this.eOverlayWrapper.appendChild(B.getGui()),this.activeOverlay=B,P)){let W=B;this.updateListenerDestroyFunc=this.addManagedPropertyListener(P,({currentValue:$})=>{var ie;(ie=W.refresh)==null||ie.call(W,this.gos.addGridCommonParams(pe({},$!=null?$:{})))})}C&&this.isGridFocused()&&Cu(this.eOverlayWrapper)}})}}updateOverlayWrapperPaddingTop(i){this.eOverlayWrapper.style.setProperty("padding-top",`${i}px`)}destroyActiveOverlay(){var P;this.activePromise=null;let i=this.activeOverlay;if(!i)return;let o=this.elToFocusAfter;this.activeOverlay=null,this.elToFocusAfter=null,o&&!this.isGridFocused()&&(o=null);let C=this.updateListenerDestroyFunc;C&&(C(),this.updateListenerDestroyFunc=null),this.destroyBean(i),Ke(this.eOverlayWrapper),(P=o==null?void 0:o.focus)==null||P.call(o,{preventScroll:!0})}hideOverlay(){this.destroyActiveOverlay(),this.setDisplayed(!1,{skipAriaHidden:!0})}isGridFocused(){let i=Fa(this.beans);return!!i&&this.beans.eGridDiv.contains(i)}destroy(){this.elToFocusAfter=null,this.destroyActiveOverlay(),this.beans.overlays.setOverlayWrapperComp(void 0),super.destroy()}},uS={selector:"AG-OVERLAY-WRAPPER",component:Gv},UD=class extends ei{constructor(){super(...arguments),this.beanName="overlays",this.state=0,this.showInitialOverlay=!0,this.wrapperPadding=0}postConstruct(){this.isClientSide=_o(this.gos);let i=()=>this.updateOverlayVisibility();this.addManagedEventListeners({newColumnsLoaded:i,rowDataUpdated:i,gridSizeChanged:this.refreshWrapperPadding.bind(this),rowCountReady:()=>{this.showInitialOverlay=!1,this.updateOverlayVisibility()}}),this.addManagedPropertyListener("loading",i)}setOverlayWrapperComp(i){this.eWrapper=i,this.updateOverlayVisibility()}isVisible(){return this.state!==0&&!!this.eWrapper}isExclusive(){return this.state===1&&!!this.eWrapper}showLoadingOverlay(){this.showInitialOverlay=!1;let i=this.gos,o=i.get("loading");!o&&(o!==void 0||i.get("suppressLoadingOverlay"))||this.doShowLoadingOverlay()}showNoRowsOverlay(){this.showInitialOverlay=!1;let i=this.gos;i.get("loading")||i.get("suppressNoRowsOverlay")||this.doShowNoRowsOverlay()}hideOverlay(){if(this.showInitialOverlay=!1,this.gos.get("loading")){pi(99);return}this.doHideOverlay()}getOverlayWrapperSelector(){return uS}getOverlayWrapperCompClass(){return Gv}updateOverlayVisibility(){if(!this.eWrapper){this.state=0;return}let{state:i,isClientSide:o,beans:{gos:C,colModel:P,rowModel:B}}=this,W=this.gos.get("loading");W!==void 0&&(this.showInitialOverlay=!1),this.showInitialOverlay&&W===void 0&&!C.get("suppressLoadingOverlay")&&(W=!C.get("columnDefs")||!P.ready||!C.get("rowData")&&o),W?i!==1&&this.doShowLoadingOverlay():(this.showInitialOverlay=!1,B.isEmpty()&&!C.get("suppressNoRowsOverlay")&&o?i!==2&&this.doShowNoRowsOverlay():i!==0&&this.doHideOverlay())}doShowLoadingOverlay(){this.eWrapper&&(this.state=1,this.showOverlay(ca(this.beans.userCompFactory,{}),"ag-overlay-loading-wrapper","loadingOverlayComponentParams"),this.updateExclusive())}doShowNoRowsOverlay(){this.eWrapper&&(this.state=2,this.showOverlay(Aa(this.beans.userCompFactory,{}),"ag-overlay-no-rows-wrapper","noRowsOverlayComponentParams"),this.updateExclusive())}doHideOverlay(){this.eWrapper&&(this.state=0,this.eWrapper.hideOverlay(),this.updateExclusive())}showOverlay(i,o,C){var B,W;let P=(B=i==null?void 0:i.newAgStackInstance())!=null?B:null;(W=this.eWrapper)==null||W.showOverlay(P,o,this.isExclusive(),C),this.refreshWrapperPadding()}updateExclusive(){let i=this.exclusive;this.exclusive=this.isExclusive(),this.exclusive!==i&&this.eventSvc.dispatchEvent({type:"overlayExclusiveChanged"})}refreshWrapperPadding(){let i=this.eWrapper;if(!i)return;let o=0;if(this.state===2){let C=this.beans.ctrlsSvc.get("gridHeaderCtrl");o=(C==null?void 0:C.headerHeight)||0}else this.wrapperPadding!==0&&(o=0);this.wrapperPadding!==o&&(this.wrapperPadding=o,i.updateOverlayWrapperPaddingTop(o))}},fT={moduleName:"Overlay",version:yi,userComponents:{agLoadingOverlay:Ox,agNoRowsOverlay:hb},apiFunctions:{showLoadingOverlay:vL,showNoRowsOverlay:HD,hideOverlay:mT},beans:[UD]},KD=class extends ei{constructor(){super(...arguments),this.beanName="rowContainerHeight",this.scrollY=0,this.uiBodyHeight=0}postConstruct(){this.addManagedEventListeners({bodyHeightChanged:this.updateOffset.bind(this)}),this.maxDivHeight=Ho(),_s(this.gos,"RowContainerHeightService - maxDivHeight = "+this.maxDivHeight)}updateOffset(){if(!this.stretching)return;let i=this.beans.ctrlsSvc.getScrollFeature().getVScrollPosition().top,o=this.getUiBodyHeight();(i!==this.scrollY||o!==this.uiBodyHeight)&&(this.scrollY=i,this.uiBodyHeight=o,this.calculateOffset())}calculateOffset(){this.setUiContainerHeight(this.maxDivHeight),this.pixelsToShave=this.modelHeight-this.uiContainerHeight,this.maxScrollY=this.uiContainerHeight-this.uiBodyHeight;let i=this.scrollY/this.maxScrollY,o=i*this.pixelsToShave;_s(this.gos,`RowContainerHeightService - Div Stretch Offset = ${o} (${this.pixelsToShave} * ${i})`),this.setDivStretchOffset(o)}setUiContainerHeight(i){i!==this.uiContainerHeight&&(this.uiContainerHeight=i,this.eventSvc.dispatchEvent({type:"rowContainerHeightChanged"}))}clearOffset(){this.setUiContainerHeight(this.modelHeight),this.pixelsToShave=0,this.setDivStretchOffset(0)}setDivStretchOffset(i){let o=typeof i=="number"?Math.floor(i):null;this.divStretchOffset!==o&&(this.divStretchOffset=o,this.eventSvc.dispatchEvent({type:"heightScaleChanged"}))}setModelHeight(i){this.modelHeight=i,this.stretching=i!=null&&this.maxDivHeight>0&&i>this.maxDivHeight,this.stretching?this.calculateOffset():this.clearOffset()}getRealPixelPosition(i){return i-this.divStretchOffset}getUiBodyHeight(){let i=this.beans.ctrlsSvc.getScrollFeature().getVScrollPosition();return i.bottom-i.top}getScrollPositionForPixel(i){if(this.pixelsToShave<=0)return i;let o=this.modelHeight-this.getUiBodyHeight(),C=i/o;return this.maxScrollY*C}},yL=400,qD=class extends ei{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=()=>{let i=()=>{this.getAllCellCtrls().forEach(W=>W.onCellSelectionChanged())},o=()=>{this.getAllCellCtrls().forEach(W=>W.updateRangeBordersIfRangeCount())},C=()=>{this.eventSvc.addEventListener("cellSelectionChanged",i),this.eventSvc.addEventListener("columnMoved",o),this.eventSvc.addEventListener("columnPinned",o),this.eventSvc.addEventListener("columnVisible",o)},P=()=>{this.eventSvc.removeEventListener("cellSelectionChanged",i),this.eventSvc.removeEventListener("columnMoved",o),this.eventSvc.removeEventListener("columnPinned",o),this.eventSvc.removeEventListener("columnVisible",o)};this.addDestroyFunc(()=>P()),this.addManagedPropertyListeners(["enableRangeSelection","cellSelection"],()=>{Dr(this.gos)?C():P()}),Dr(this.gos)&&C()}}wireBeans(i){this.pageBounds=i.pageBounds,this.colModel=i.colModel,this.pinnedRowModel=i.pinnedRowModel,this.rowModel=i.rowModel,this.focusSvc=i.focusSvc,this.rowContainerHeight=i.rowContainerHeight,this.ctrlsSvc=i.ctrlsSvc}postConstruct(){this.ctrlsSvc.whenReady(this,i=>{this.gridBodyCtrl=i.gridBodyCtrl,this.initialise()})}initialise(){this.addManagedEventListeners({paginationChanged:this.onPageLoaded.bind(this),pinnedRowDataChanged:this.onPinnedRowDataChanged.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",C=>this.onSuppressCellFocusChanged(C.currentValue)),this.addManagedPropertyListeners(["groupSuppressBlankHeader","getBusinessKeyForNode","fullWidthCellRenderer","fullWidthCellRendererParams","suppressStickyTotalRow","groupRowRenderer","groupRowRendererParams","loadingCellRenderer","loadingCellRendererParams","detailCellRenderer","detailCellRendererParams","enableRangeSelection","enableCellTextSelection"],()=>this.redrawRows()),this.addManagedPropertyListener("cellSelection",({currentValue:C,previousValue:P})=>{(!P&&C||P&&!C)&&this.redrawRows()});let{stickyRowSvc:i,gos:o}=this.beans;if(i)this.stickyRowFeature=i.createStickyRowFeature(this,this.createRowCon.bind(this),this.destroyRowCtrls.bind(this));else{let C=this.gridBodyCtrl;C.setStickyTopHeight(0),C.setStickyBottomHeight(0)}this.registerCellEventListeners(),this.initialiseCache(),this.printLayout=Fo(o,"print"),this.embedFullWidthRows=this.printLayout||o.get("embedFullWidthRows"),this.redrawAfterModelUpdate()}initialiseCache(){if(this.gos.get("keepDetailRows")){let i=this.getKeepDetailRowsCount(),o=i!=null?i:3;this.cachedRowCtrls=new vT(o)}}getKeepDetailRowsCount(){return this.gos.get("keepDetailRowsCount")}getStickyTopRowCtrls(){var i,o;return(o=(i=this.stickyRowFeature)==null?void 0:i.stickyTopRowCtrls)!=null?o:[]}getStickyBottomRowCtrls(){var i,o;return(o=(i=this.stickyRowFeature)==null?void 0:i.stickyBottomRowCtrls)!=null?o:[]}updateAllRowCtrls(){var P,B;let i=Object.values(this.rowCtrlsByRowIndex),o=Object.values(this.zombieRowCtrls),C=(B=(P=this.cachedRowCtrls)==null?void 0:P.getEntries())!=null?B:[];o.length>0||C.length>0?this.allRowCtrls=[...i,...o,...C]:this.allRowCtrls=i}onCellFocusChanged(i){this.getAllCellCtrls().forEach(o=>o.onCellFocused(i)),this.getFullWidthRowCtrls().forEach(o=>o.onFullWidthRowFocused(i))}onSuppressCellFocusChanged(i){this.getAllCellCtrls().forEach(o=>o.onSuppressCellFocusChanged(i)),this.getFullWidthRowCtrls().forEach(o=>o.onSuppressCellFocusChanged(i))}registerCellEventListeners(){this.addManagedEventListeners({cellFocused:i=>{this.onCellFocusChanged(i)},cellFocusCleared:()=>this.onCellFocusChanged(),flashCells:i=>{let{cellFlashSvc:o}=this.beans;o&&this.getAllCellCtrls().forEach(C=>o.onFlashCells(C,i))},columnHoverChanged:()=>{this.getAllCellCtrls().forEach(i=>i.onColumnHover())},displayedColumnsChanged:()=>{this.getAllCellCtrls().forEach(i=>i.onDisplayedColumnsChanged())},displayedColumnsWidthChanged:()=>{this.printLayout&&this.getAllCellCtrls().forEach(i=>i.onLeftChanged())}}),this.setupRangeSelectionListeners(),this.refreshListenersToColumnsForCellComps(),this.addManagedEventListeners({gridColumnsChanged:this.refreshListenersToColumnsForCellComps.bind(this)}),this.addDestroyFunc(this.removeGridColumnListeners.bind(this))}removeGridColumnListeners(){this.destroyFuncsForColumnListeners.forEach(i=>i()),this.destroyFuncsForColumnListeners.length=0}refreshListenersToColumnsForCellComps(){this.removeGridColumnListeners(),this.colModel.getCols().forEach(o=>{let C=ue=>{this.getAllCellCtrls().forEach(De=>{De.column===o&&ue(De)})},P=()=>{C(ue=>ue.onLeftChanged())},B=()=>{C(ue=>ue.onWidthChanged())},W=()=>{C(ue=>ue.onFirstRightPinnedChanged())},$=()=>{C(ue=>ue.onLastLeftPinnedChanged())},ie=()=>{C(ue=>ue.onColDefChanged())};o.addEventListener("leftChanged",P),o.addEventListener("widthChanged",B),o.addEventListener("firstRightPinnedChanged",W),o.addEventListener("lastLeftPinnedChanged",$),o.addEventListener("colDefChanged",ie),this.destroyFuncsForColumnListeners.push(()=>{o.removeEventListener("leftChanged",P),o.removeEventListener("widthChanged",B),o.removeEventListener("firstRightPinnedChanged",W),o.removeEventListener("lastLeftPinnedChanged",$),o.removeEventListener("colDefChanged",ie)})})}onDomLayoutChanged(){let i=Fo(this.gos,"print"),o=i||this.gos.get("embedFullWidthRows"),C=o!==this.embedFullWidthRows||this.printLayout!==i;this.printLayout=i,this.embedFullWidthRows=o,C&&this.redrawAfterModelUpdate({domLayoutChanged:!0})}datasourceChanged(){this.firstRenderedRow=0,this.lastRenderedRow=-1;let i=Object.keys(this.rowCtrlsByRowIndex);this.removeRowCtrls(i)}onPageLoaded(i){let o={recycleRows:i.keepRenderedRows,animate:i.animate,newData:i.newData,newPage:i.newPage,onlyBody:!0};this.redrawAfterModelUpdate(o)}getAllCellsNotSpanningForColumn(i){let o=[];return this.getAllRowCtrls().forEach(C=>{var B;let P=(B=C.getCellCtrl(i,!0))==null?void 0:B.eGui;P&&o.push(P)}),o}refreshFloatingRowComps(){this.refreshFloatingRows(this.topRowCtrls,"top"),this.refreshFloatingRows(this.bottomRowCtrls,"bottom")}refreshFloatingRows(i,o){var ie;let{pinnedRowModel:C,beans:P,printLayout:B}=this,W=Object.fromEntries(i.map(ue=>[ue.rowNode.id,ue]));C==null||C.forEachPinnedRow(o,(ue,De)=>{let _e=i[De];_e&&C.getPinnedRowById(_e.rowNode.id,o)===void 0&&(_e.destroyFirstPass(),_e.destroySecondPass()),ue.id in W?(i[De]=W[ue.id],delete W[ue.id]):i[De]=new b0(ue,P,!1,!1,B)});let $=(ie=o==="top"?C==null?void 0:C.getPinnedTopRowCount():C==null?void 0:C.getPinnedBottomRowCount())!=null?ie:0;i.length=$}onPinnedRowDataChanged(){let i={recycleRows:!0};this.redrawAfterModelUpdate(i)}redrawRow(i,o=!1){var C,P;if(i.sticky)(C=this.stickyRowFeature)==null||C.refreshStickyNode(i);else if((P=this.cachedRowCtrls)!=null&&P.has(i)){this.cachedRowCtrls.removeRow(i);return}else{let B=W=>{let $=W[i.rowIndex];$&&$.rowNode===i&&($.destroyFirstPass(),$.destroySecondPass(),W[i.rowIndex]=this.createRowCon(i,!1,!1))};switch(i.rowPinned){case"top":B(this.topRowCtrls);break;case"bottom":B(this.bottomRowCtrls);break;default:B(this.rowCtrlsByRowIndex),this.updateAllRowCtrls()}}o||this.dispatchDisplayedRowsChanged(!1)}redrawRows(i){if(i!=null){i==null||i.forEach(C=>this.redrawRow(C,!0)),this.dispatchDisplayedRowsChanged(!1);return}this.redrawAfterModelUpdate()}getCellToRestoreFocusToAfterRefresh(i){let o=i!=null&&i.suppressKeepFocus?null:this.focusSvc.getFocusCellToUseAfterRefresh();if(o==null)return null;let C=Fa(this.beans),P=Cm(this.gos,C,_d),B=Cm(this.gos,C,wu);return P||B?o:null}redrawAfterModelUpdate(i={}){this.getLockOnRefresh();let o=this.getCellToRestoreFocusToAfterRefresh(i);this.updateContainerHeights(),this.scrollToTopIfNewData(i);let C=!i.domLayoutChanged&&!!i.recycleRows,P=i.animate&&jn(this.gos),B=C?this.getRowsToRecycle():null;C||this.removeAllRowComps(),this.workOutFirstAndLastRowsToRender();let{stickyRowFeature:W}=this;if(W){W.checkStickyRows();let $=W.extraTopHeight+W.extraBottomHeight;$&&this.updateContainerHeights($)}this.recycleRows(B,P),this.gridBodyCtrl.updateRowCount(),i.onlyBody||this.refreshFloatingRowComps(),this.dispatchDisplayedRowsChanged(),o!=null&&this.restoreFocusedCell(o),this.releaseLockOnRefresh()}scrollToTopIfNewData(i){var P;let o=i.newData||i.newPage,C=this.gos.get("suppressScrollOnNewData");o&&!C&&(this.gridBodyCtrl.scrollFeature.scrollToTop(),(P=this.stickyRowFeature)==null||P.resetOffsets())}updateContainerHeights(i=0){let{rowContainerHeight:o}=this;if(this.printLayout){o.setModelHeight(null);return}let C=this.pageBounds.getCurrentPageHeight();C===0&&(C=1),o.setModelHeight(C+i)}getLockOnRefresh(){var i,o;if(this.refreshInProgress)throw new Error(ar(252));this.refreshInProgress=!0,(o=(i=this.beans.frameworkOverrides).getLockOnRefresh)==null||o.call(i)}releaseLockOnRefresh(){var i,o;this.refreshInProgress=!1,(o=(i=this.beans.frameworkOverrides).releaseLockOnRefresh)==null||o.call(i)}isRefreshInProgress(){return this.refreshInProgress}restoreFocusedCell(i){i&&this.focusSvc.restoreFocusedCell(i,()=>{this.onCellFocusChanged(this.gos.addGridCommonParams({rowIndex:i.rowIndex,column:i.column,rowPinned:i.rowPinned,forceBrowserFocus:!0,preventScrollOnBrowserFocus:!0,type:"cellFocused"}))})}getAllCellCtrls(){let i=[],o=this.getAllRowCtrls(),C=o.length;for(let P=0;P<C;P++){let B=o[P].getAllCellCtrls(),W=B.length;for(let $=0;$<W;$++)i.push(B[$])}return i}getAllRowCtrls(){let i=this.getStickyTopRowCtrls(),o=this.getStickyBottomRowCtrls();return[...this.topRowCtrls,...this.bottomRowCtrls,...i,...o,...Object.values(this.rowCtrlsByRowIndex)]}addRenderedRowListener(i,o,C){let P=this.rowCtrlsByRowIndex[o];P&&P.addEventListener(i,C)}refreshCells(i={}){let o={forceRefresh:i.force,newData:!1,suppressFlash:i.suppressFlash};for(let C of this.getCellCtrls(i.rowNodes,i.columns))C.refreshOrDestroyCell(o);this.refreshFullWidth(i.rowNodes)}refreshFullWidth(i){if(!i)return;let o=null;this.stickyRowFeature&&(o=this.getCellToRestoreFocusToAfterRefresh()||null);for(let C of this.getRowCtrls(i)){if(!C.isFullWidth())continue;C.refreshFullWidth()||this.redrawRow(C.rowNode,!0)}this.dispatchDisplayedRowsChanged(!1),o&&this.restoreFocusedCell(o)}getRowCtrls(i){let o=kl(i),C=this.getAllRowCtrls();return!i||!o?C:C.filter(P=>{let B=P.rowNode;return Jn(B,o)})}getCellCtrls(i,o){let C;Ai(o)&&(C={},o.forEach(B=>{let W=this.colModel.getCol(B);Ai(W)&&(C[W.getId()]=!0)}));let P=[];return this.getRowCtrls(i).forEach(B=>{B.getAllCellCtrls().forEach(W=>{let $=W.column.getId();C&&!C[$]||P.push(W)})}),P}destroy(){this.removeAllRowComps(!0),super.destroy()}removeAllRowComps(i=!1){var C;let o=Object.keys(this.rowCtrlsByRowIndex);this.removeRowCtrls(o,i),(C=this.stickyRowFeature)==null||C.destroyStickyCtrls()}getRowsToRecycle(){let i=[];for(let[C,P]of Object.entries(this.rowCtrlsByRowIndex))P.rowNode.id==null&&i.push(C);this.removeRowCtrls(i);let o={};for(let C of Object.values(this.rowCtrlsByRowIndex)){let P=C.rowNode;o[P.id]=C}return this.rowCtrlsByRowIndex={},o}removeRowCtrls(i,o=!1){i.forEach(C=>{let P=this.rowCtrlsByRowIndex[C];P&&(P.destroyFirstPass(o),P.destroySecondPass()),delete this.rowCtrlsByRowIndex[C]})}onBodyScroll(i){i.direction==="vertical"&&this.redraw({afterScroll:!0})}redraw(i={}){var ue;let{afterScroll:o}=i,C,P=this.stickyRowFeature;P&&(C=this.getCellToRestoreFocusToAfterRefresh()||void 0);let B=this.firstRenderedRow,W=this.lastRenderedRow;this.workOutFirstAndLastRowsToRender();let $=!1;if(P){$=P.checkStickyRows();let De=P.extraTopHeight+P.extraBottomHeight;De&&this.updateContainerHeights(De)}let ie=this.firstRenderedRow!==B||this.lastRenderedRow!==W;if(!(o&&!$&&!ie)&&(this.getLockOnRefresh(),this.recycleRows(null,!1,o),this.releaseLockOnRefresh(),this.dispatchDisplayedRowsChanged(o&&!$),C!=null)){let De=this.getCellToRestoreFocusToAfterRefresh();C!=null&&De==null&&((ue=this.beans.animationFrameSvc)==null||ue.flushAllFrames(),this.restoreFocusedCell(C))}}removeRowCompsNotToDraw(i,o){let C={};i.forEach(W=>C[W]=!0);let B=Object.keys(this.rowCtrlsByRowIndex).filter(W=>!C[W]);this.removeRowCtrls(B,o)}calculateIndexesToDraw(i){let o=[];for(let B=this.firstRenderedRow;B<=this.lastRenderedRow;B++)o.push(B);let C=B=>{let W=B.rowNode.rowIndex;W!=null&&(W<this.firstRenderedRow||W>this.lastRenderedRow)&&this.doNotUnVirtualiseRow(B)&&o.push(W)};for(let B of Object.values(this.rowCtrlsByRowIndex))C(B);if(i)for(let B of Object.values(i))C(B);o.sort((B,W)=>B-W);let P=[];for(let B=0;B<o.length;B++){let W=o[B],$=this.rowModel.getRow(W);$&&!$.sticky&&P.push(W)}return P}recycleRows(i,o=!1,C=!1){let P=this.calculateIndexesToDraw(i);(this.printLayout||C)&&(o=!1),this.removeRowCompsNotToDraw(P,!o);let B=[];if(P.forEach(W=>{let $=this.createOrUpdateRowCtrl(W,i,o,C);Ai($)&&B.push($)}),i){let{animationFrameSvc:W}=this.beans;W&&C&&!this.gos.get("suppressAnimationFrame")&&!this.printLayout?W.addDestroyTask(()=>{this.destroyRowCtrls(i,o),this.updateAllRowCtrls(),this.dispatchDisplayedRowsChanged()}):this.destroyRowCtrls(i,o)}this.updateAllRowCtrls()}dispatchDisplayedRowsChanged(i=!1){this.eventSvc.dispatchEvent({type:"displayedRowsChanged",afterScroll:i})}onDisplayedColumnsChanged(){let{visibleCols:i}=this.beans,o=i.isPinningLeft(),C=i.isPinningRight();(this.pinningLeft!==o||C!==this.pinningRight)&&(this.pinningLeft=o,this.pinningRight=C,this.embedFullWidthRows&&this.redrawFullWidthEmbeddedRows())}redrawFullWidthEmbeddedRows(){let i=[];this.getFullWidthRowCtrls().forEach(o=>{let C=o.rowNode.rowIndex;i.push(C.toString())}),this.refreshFloatingRowComps(),this.removeRowCtrls(i),this.redraw({afterScroll:!0})}getFullWidthRowCtrls(i){let o=kl(i);return this.getAllRowCtrls().filter(C=>{if(!C.isFullWidth())return!1;let P=C.rowNode;return!(o!=null&&!Jn(P,o))})}createOrUpdateRowCtrl(i,o,C,P){let B,W=this.rowCtrlsByRowIndex[i];if(W||(B=this.rowModel.getRow(i),Ai(B)&&Ai(o)&&o[B.id]&&B.alreadyRendered&&(W=o[B.id],o[B.id]=null)),!W)if(B||(B=this.rowModel.getRow(i)),Ai(B))W=this.createRowCon(B,C,P);else return;return B&&(B.alreadyRendered=!0),this.rowCtrlsByRowIndex[i]=W,W}destroyRowCtrls(i,o){let C=[];if(i){for(let P of Object.values(i))if(P){if(this.cachedRowCtrls&&P.isCacheable()){this.cachedRowCtrls.addRow(P);continue}if(P.destroyFirstPass(!o),o){let B=P.instanceId;this.zombieRowCtrls[B]=P,C.push(()=>{P.destroySecondPass(),delete this.zombieRowCtrls[B]})}else P.destroySecondPass()}}o&&(C.push(()=>{this.updateAllRowCtrls(),this.dispatchDisplayedRowsChanged()}),window.setTimeout(()=>C.forEach(P=>P()),yL))}getRowBuffer(){return this.gos.get("rowBuffer")}getRowBufferInPixels(){let i=this.getRowBuffer(),o=hh(this.beans);return i*o}workOutFirstAndLastRowsToRender(){let{rowContainerHeight:i,pageBounds:o,rowModel:C}=this;i.updateOffset();let P,B;if(!C.isRowsToRender())P=0,B=-1;else if(this.printLayout)this.beans.environment.refreshRowHeightVariable(),P=o.getFirstRow(),B=o.getLastRow();else{let _e=this.getRowBufferInPixels(),Be=this.ctrlsSvc.getScrollFeature(),Qe=this.gos.get("suppressRowVirtualisation"),st=!1,Ct,Ot;do{let ai=o.getPixelOffset(),{pageFirstPixel:Mi,pageLastPixel:qi}=o.getCurrentPagePixelRange(),Fn=i.divStretchOffset,Xn=Be.getVScrollPosition(),Ga=Xn.top,ba=Xn.bottom;Qe?(Ct=Mi+Fn,Ot=qi+Fn):(Ct=Math.max(Ga+ai-_e,Mi)+Fn,Ot=Math.min(ba+ai+_e,qi)+Fn),this.firstVisibleVPixel=Math.max(Ga+ai,Mi)+Fn,this.lastVisibleVPixel=Math.min(ba+ai,qi)+Fn,st=this.ensureAllRowsInRangeHaveHeightsCalculated(Ct,Ot)}while(st);let Pt=C.getRowIndexAtPixel(Ct),Kt=C.getRowIndexAtPixel(Ot),ti=o.getFirstRow(),Jt=o.getLastRow();Pt<ti&&(Pt=ti),Kt>Jt&&(Kt=Jt),P=Pt,B=Kt}let W=Fo(this.gos,"normal"),$=this.gos.get("suppressMaxRenderedRowRestriction"),ie=Math.max(this.getRowBuffer(),500);W&&!$&&B-P>ie&&(B=P+ie);let ue=P!==this.firstRenderedRow,De=B!==this.lastRenderedRow;(ue||De)&&(this.firstRenderedRow=P,this.lastRenderedRow=B,this.eventSvc.dispatchEvent({type:"viewportChanged",firstRow:P,lastRow:B}))}dispatchFirstDataRenderedEvent(){this.dataFirstRenderedFired||(this.dataFirstRenderedFired=!0,window.requestAnimationFrame(()=>{this.beans.eventSvc.dispatchEvent({type:"firstDataRendered",firstRow:this.firstRenderedRow,lastRow:this.lastRenderedRow})}))}ensureAllRowsInRangeHaveHeightsCalculated(i,o){var ie,ue;let C=(ie=this.pinnedRowModel)==null?void 0:ie.ensureRowHeightsValid(),P=(ue=this.stickyRowFeature)==null?void 0:ue.ensureRowHeightsValid(),{pageBounds:B,rowModel:W}=this,$=W.ensureRowHeightsValid(i,o,B.getFirstRow(),B.getLastRow());return($||P)&&this.eventSvc.dispatchEvent({type:"recalculateRowBounds"}),P||$||C?(this.updateContainerHeights(),!0):!1}doNotUnVirtualiseRow(i){let P=i.rowNode,B=this.focusSvc.isRowNodeFocused(P),W=i.editing,$=P.detail;return B||W||$?!!this.isRowPresent(P):!1}isRowPresent(i){var o,C;return this.rowModel.isRowPresent(i)?(C=(o=this.beans.pagination)==null?void 0:o.isRowPresent(i))!=null?C:!0:!1}createRowCon(i,o,C){var ie,ue;let P=(ue=(ie=this.cachedRowCtrls)==null?void 0:ie.getRow(i))!=null?ue:null;if(P)return P;let B=this.gos.get("suppressAnimationFrame"),W=C&&!B&&!this.printLayout&&!!this.beans.animationFrameSvc;return new b0(i,this.beans,o,W,this.printLayout)}getRenderedNodes(){let i=this.rowCtrlsByRowIndex;return Object.values(i).map(o=>o.rowNode)}getRowByPosition(i){let o,{rowIndex:C}=i;switch(i.rowPinned){case"top":o=this.topRowCtrls[C];break;case"bottom":o=this.bottomRowCtrls[C];break;default:o=this.rowCtrlsByRowIndex[C],o||(o=this.getStickyTopRowCtrls().find(P=>P.rowNode.rowIndex===C)||null,o||(o=this.getStickyBottomRowCtrls().find(P=>P.rowNode.rowIndex===C)||null));break}return o}isRangeInRenderedViewport(i,o){if(i==null||o==null)return!1;let P=i>this.lastRenderedRow;return!(o<this.firstRenderedRow)&&!P}},vT=class{constructor(i){this.entriesMap={},this.entriesList=[],this.maxCount=i}addRow(i){if(this.entriesMap[i.rowNode.id]=i,this.entriesList.push(i),i.setCached(!0),this.entriesList.length>this.maxCount){let o=this.entriesList[0];o.destroyFirstPass(),o.destroySecondPass(),this.removeFromCache(o)}}getRow(i){if(i==null||i.id==null)return null;let o=this.entriesMap[i.id];return o?(this.removeFromCache(o),o.setCached(!1),o.rowNode!=i?null:o):null}has(i){return this.entriesMap[i.id]!=null}removeRow(i){let o=i.id,C=this.entriesMap[o];delete this.entriesMap[o],qo(this.entriesList,C)}removeFromCache(i){let o=i.rowNode.id;delete this.entriesMap[o],qo(this.entriesList,i)}getEntries(){return this.entriesList}};function kl(i){if(!i)return;let o={top:{},bottom:{},normal:{}};return i.forEach(C=>{let P=C.id;switch(C.rowPinned){case"top":o.top[P]=C;break;case"bottom":o.bottom[P]=C;break;default:o.normal[P]=C;break}}),o}function Jn(i,o){let C=i.id;switch(i.rowPinned){case"top":return o.top[C]!=null;case"bottom":return o.bottom[C]!=null;default:return o.normal[C]!=null}}var hS=class extends ei{constructor(){super(...arguments),this.beanName="rowNodeSorter"}postConstruct(){let{gos:i}=this;this.isAccentedSort=i.get("accentedSort"),this.primaryColumnsSortGroups=hl(i),this.addManagedPropertyListener("accentedSort",o=>this.isAccentedSort=o.currentValue),this.addManagedPropertyListener("autoGroupColumnDef",()=>this.primaryColumnsSortGroups=hl(i))}doFullSort(i,o){let C=i.map((P,B)=>({currentPos:B,rowNode:P}));return C.sort(this.compareRowNodes.bind(this,o)),C.map(P=>P.rowNode)}compareRowNodes(i,o,C){let P=o.rowNode,B=C.rowNode;for(let W=0,$=i.length;W<$;W++){let ie=i[W],ue=ie.sort==="desc",De=this.getValue(P,ie.column),_e=this.getValue(B,ie.column),Be,Qe=this.getComparator(ie,P);if(Qe?Be=Qe(De,_e,P,B,ue):Be=Td(De,_e,this.isAccentedSort),!isNaN(Be)&&Be!==0)return ie.sort==="asc"?Be:Be*-1}return o.currentPos-C.currentPos}getComparator(i,o){let C=i.column,P=C.getColDef().comparator;if(P!=null)return P;if(!C.getColDef().showRowGroup)return;let B=!o.group&&C.getColDef().field;if(!B)return;let W=this.beans.colModel.getColDefCol(B);if(W)return W.getColDef().comparator}getValue(i,o){var ie,ue;let{valueSvc:C,colModel:P,showRowGroupCols:B,gos:W}=this.beans;if(!this.primaryColumnsSortGroups)return C.getValue(o,i,!1);if(i.rowGroupColumn===o){if(ax(W,P.isPivotActive())){let Be=(ie=i.allLeafChildren)==null?void 0:ie[0];return Be?C.getValue(o,Be,!1):void 0}let _e=B==null?void 0:B.getShowRowGroupCol(o.getId());return _e?(ue=i.groupData)==null?void 0:ue[_e.getId()]:void 0}if(!(i.group&&o.getColDef().showRowGroup))return C.getValue(o,i,!1)}};function gS(i){var o;(o=i.sortSvc)==null||o.onSortChanged("api")}function Op(i,o){return`<span data-ref="eSort${i}" class="ag-sort-indicator-icon ag-sort-${o} ag-hidden" aria-hidden="true"></span>`}var _p=`<span class="ag-sort-indicator-container">
        ${Op("Order","order")}
        ${Op("Asc","ascending-icon")}
        ${Op("Desc","descending-icon")}
        ${Op("Mixed","mixed-icon")}
        ${Op("None","none-icon")}
    </span>`,tf=class extends On{constructor(i){super(),this.eSortOrder=Ri,this.eSortAsc=Ri,this.eSortDesc=Ri,this.eSortMixed=Ri,this.eSortNone=Ri,i||this.setTemplate(_p)}attachCustomElements(i,o,C,P,B){this.eSortOrder=i,this.eSortAsc=o,this.eSortDesc=C,this.eSortMixed=P,this.eSortNone=B}setupSort(i,o=!1){if(this.column=i,this.suppressOrder=o,this.setupMultiSortIndicator(),!i.isSortable()&&!i.getColDef().showRowGroup)return;this.addInIcon("sortAscending",this.eSortAsc,i),this.addInIcon("sortDescending",this.eSortDesc,i),this.addInIcon("sortUnSort",this.eSortNone,i);let C=this.updateIcons.bind(this),P=this.onSortChanged.bind(this);this.addManagedPropertyListener("unSortIcon",C),this.addManagedEventListeners({newColumnsLoaded:C,sortChanged:P,columnRowGroupChanged:P}),this.onSortChanged()}addInIcon(i,o,C){if(o==null)return;let P=za(i,this.beans,C);P&&o.appendChild(P)}onSortChanged(){this.updateIcons(),this.suppressOrder||this.updateSortOrder()}updateIcons(){let{eSortAsc:i,eSortDesc:o,eSortNone:C,column:P,gos:B,beans:W}=this,$=W.sortSvc.getDisplaySortForColumn(P);if(i&&Un(i,$==="asc",{skipAriaHidden:!0}),o&&Un(o,$==="desc",{skipAriaHidden:!0}),C){let ie=!P.getColDef().unSortIcon&&!B.get("unSortIcon"),ue=$==null;Un(C,!ie&&ue,{skipAriaHidden:!0})}}setupMultiSortIndicator(){let{eSortMixed:i,column:o,gos:C}=this;this.addInIcon("sortUnSort",i,o);let P=o.getColDef().showRowGroup;hl(C)&&P&&(this.addManagedEventListeners({sortChanged:this.updateMultiSortIndicator.bind(this),columnRowGroupChanged:this.updateMultiSortIndicator.bind(this)}),this.updateMultiSortIndicator())}updateMultiSortIndicator(){let{eSortMixed:i,beans:o,column:C}=this;if(i){let P=o.sortSvc.getDisplaySortForColumn(C)==="mixed";Un(i,P,{skipAriaHidden:!0})}}updateSortOrder(){var ie;let{eSortOrder:i,column:o,beans:{sortSvc:C}}=this;if(!i)return;let P=C.getColumnsWithSortingOrdered(),B=(ie=C.getDisplaySortIndexForColumn(o))!=null?ie:-1,W=P.some(ue=>{var De;return(De=C.getDisplaySortIndexForColumn(ue))!=null?De:-1>=1}),$=B>=0&&W;Un(i,$,{skipAriaHidden:!0}),B>=0?i.textContent=(B+1).toString():Ke(i)}},yT={selector:"AG-SORT-INDICATOR",component:tf},Nb=["asc","desc",null],EM=class extends ei{constructor(){super(...arguments),this.beanName="sortSvc"}progressSort(i,o,C){let P=this.getNextSortDirection(i);this.setSortForColumn(i,P,o,C)}progressSortFromEvent(i,o){let P=this.gos.get("multiSortKey")==="ctrl"?o.ctrlKey||o.metaKey:o.shiftKey;this.progressSort(i,P,"uiColumnSorted")}setSortForColumn(i,o,C,P){var _e;o!=="asc"&&o!=="desc"&&(o=null);let{gos:B,showRowGroupCols:W}=this.beans,$=hl(B),ie=[i];if($&&i.getColDef().showRowGroup){let Be=(_e=W==null?void 0:W.getSourceColumnsForGroupColumn)==null?void 0:_e.call(W,i),Qe=Be==null?void 0:Be.filter(st=>st.isSortable());Qe&&(ie=[i,...Qe])}ie.forEach(Be=>this.setColSort(Be,o,P));let ue=(C||B.get("alwaysMultiSort"))&&!B.get("suppressMultiSort"),De=[];if(!ue){let Be=this.clearSortBarTheseColumns(ie,P);De.push(...Be)}this.updateSortIndex(i),De.push(...ie),this.dispatchSortChangedEvents(P,De)}updateSortIndex(i){let{gos:o,colModel:C,showRowGroupCols:P}=this.beans,B=hl(o),W=P==null?void 0:P.getShowRowGroupCol(i.getId()),$=B&&W||i,ie=this.getColumnsWithSortingOrdered();C.getAllCols().forEach(_e=>this.setColSortIndex(_e,null));let ue=ie.filter(_e=>B&&_e.getColDef().showRowGroup?!1:_e!==$);($.getSort()?[...ue,$]:ue).forEach((_e,Be)=>this.setColSortIndex(_e,Be))}onSortChanged(i,o){this.dispatchSortChangedEvents(i,o)}isSortActive(){let o=this.beans.colModel.getAllCols().filter(C=>!!C.getSort());return o&&o.length>0}dispatchSortChangedEvents(i,o){let C={type:"sortChanged",source:i};o&&(C.columns=o),this.eventSvc.dispatchEvent(C)}clearSortBarTheseColumns(i,o){let C=[];return this.beans.colModel.getAllCols().forEach(P=>{i.includes(P)||(P.getSort()&&C.push(P),this.setColSort(P,void 0,o))}),C}getNextSortDirection(i){var W,$;let o=($=(W=i.getColDef().sortingOrder)!=null?W:this.gos.get("sortingOrder"))!=null?$:Nb,C=o.indexOf(i.getSort()),P=C<0,B=C==o.length-1;return P||B?o[0]:o[C+1]}getIndexedSortMap(){var De;let{gos:i,colModel:o,showRowGroupCols:C,rowGroupColsSvc:P}=this.beans,B=o.getAllCols().filter(_e=>!!_e.getSort());if(o.isPivotMode()){let _e=hl(i);B=B.filter(Be=>{let Qe=!!Be.getAggFunc(),st=!Be.isPrimary(),Ct=_e?C==null?void 0:C.getShowRowGroupCol(Be.getId()):Be.getColDef().showRowGroup;return Qe||st||Ct})}let W=(De=P==null?void 0:P.columns.filter(_e=>!!_e.getSort()))!=null?De:[],$={};B.forEach((_e,Be)=>$[_e.getId()]=Be),B.sort((_e,Be)=>{let Qe=_e.getSortIndex(),st=Be.getSortIndex();if(Qe!=null&&st!=null)return Qe-st;if(Qe==null&&st==null){let Ct=$[_e.getId()],Ot=$[Be.getId()];return Ct>Ot?1:-1}else return st==null?-1:1});let ie=hl(i)&&!!W.length;ie&&(B=[...new Set(B.map(_e=>{var Be;return(Be=C==null?void 0:C.getShowRowGroupCol(_e.getId()))!=null?Be:_e}))]);let ue=new Map;return B.forEach((_e,Be)=>ue.set(_e,Be)),ie&&W.forEach(_e=>{let Be=C.getShowRowGroupCol(_e.getId());ue.set(_e,ue.get(Be))}),ue}getColumnsWithSortingOrdered(){return[...this.getIndexedSortMap().entries()].sort(([i,o],[C,P])=>o-P).map(([i])=>i)}getSortModel(){return this.getColumnsWithSortingOrdered().filter(i=>i.getSort()).map(i=>({sort:i.getSort(),colId:i.getId()}))}getSortOptions(){return this.getColumnsWithSortingOrdered().filter(i=>i.getSort()).map(i=>({sort:i.getSort(),column:i}))}canColumnDisplayMixedSort(i){let o=hl(this.gos),C=!!i.getColDef().showRowGroup;return o&&C}getDisplaySortForColumn(i){var $;let o=($=this.beans.showRowGroupCols)==null?void 0:$.getSourceColumnsForGroupColumn(i);if(!this.canColumnDisplayMixedSort(i)||!(o!=null&&o.length))return i.getSort();let P=i.getColDef().field!=null||!!i.getColDef().valueGetter?[i,...o]:o,B=P[0].getSort();return P.every(ie=>ie.getSort()==B)?B:"mixed"}getDisplaySortIndexForColumn(i){return this.getIndexedSortMap().get(i)}setupHeader(i,o,C){let P=0;i.addManagedListeners(o,{movingChanged:()=>{P=new Date().getTime()}}),C&&i.addManagedElementListeners(C,{click:W=>{let $=o.isMoving(),ue=new Date().getTime()-P<50;$||ue||this.progressSortFromEvent(o,W)}});let B=()=>{var $;let W=o.getSort();if(i.addOrRemoveCssClass("ag-header-cell-sorted-asc",W==="asc"),i.addOrRemoveCssClass("ag-header-cell-sorted-desc",W==="desc"),i.addOrRemoveCssClass("ag-header-cell-sorted-none",!W),o.getColDef().showRowGroup){let ie=($=this.beans.showRowGroupCols)==null?void 0:$.getSourceColumnsForGroupColumn(o),De=!(ie==null?void 0:ie.every(_e=>o.getSort()==_e.getSort()));i.addOrRemoveCssClass("ag-header-cell-sorted-mixed",De)}};i.addManagedEventListeners({sortChanged:B,columnRowGroupChanged:B})}initCol(i){let{sort:o,initialSort:C,sortIndex:P,initialSortIndex:B}=i.colDef;o!==void 0?(o==="asc"||o==="desc")&&(i.sort=o):(C==="asc"||C==="desc")&&(i.sort=C),P!==void 0?P!==null&&(i.sortIndex=P):B!==null&&(i.sortIndex=B)}updateColSort(i,o,C){o!==void 0&&(o==="desc"||o==="asc"?this.setColSort(i,o,C):this.setColSort(i,void 0,C))}setColSort(i,o,C){i.sort!==o&&(i.sort=o,i.dispatchColEvent("sortChanged",C)),i.dispatchStateUpdatedEvent("sort")}setColSortIndex(i,o){i.sortIndex=o,i.dispatchStateUpdatedEvent("sortIndex")}createSortIndicator(i){return new tf(i)}getSortIndicatorSelector(){return yT}},IM={moduleName:"Sort",version:yi,beans:[EM,hS],apiFunctions:{onSortChanged:gS},userComponents:{agSortIndicator:tf},icons:{sortAscending:"asc",sortDescending:"desc",sortUnSort:"none"}},TM=class extends ei{constructor(){super(...arguments),this.beanName="syncSvc",this.waitingForColumns=!1}postConstruct(){this.addManagedPropertyListener("columnDefs",i=>this.setColumnDefs(i))}start(){this.beans.ctrlsSvc.whenReady(this,()=>{let i=this.gos.get("columnDefs");i?this.setColumnsAndData(i):this.waitingForColumns=!0,this.gridReady()})}setColumnsAndData(i){let{colModel:o,rowModel:C}=this.beans;o.setColumnDefs(i!=null?i:[],"gridInitializing"),C.start()}gridReady(){let{eventSvc:i,gos:o}=this;i.dispatchEvent({type:"gridReady"}),_s(o,`initialised successfully, enterprise = ${o.isModuleRegistered("EnterpriseCore")}`)}setColumnDefs(i){let o=this.gos.get("columnDefs");if(o){if(this.waitingForColumns){this.waitingForColumns=!1,this.setColumnsAndData(o);return}this.beans.colModel.setColumnDefs(o,ml(i.source))}}};function zb(i){var o;(o=i.valueCache)==null||o.expire()}function YD(i,o){var ie;let{colKey:C,rowNode:P,useFormatter:B}=o,W=(ie=i.colModel.getColDefCol(C))!=null?ie:i.colModel.getCol(C);if(Qn(W))return null;let $=i.valueSvc.getValueForDisplay(W,P);if(B){let ue=i.valueSvc.formatValue(W,P,$);return ue!=null?ue:ql($,!0)}return $}var Kd=class{constructor(i,o){this.active=!0,this.nodeIdsToColumns={},this.mapToItems={},this.keepingColumns=i,this.pathRoot={rowNode:o,children:null},this.mapToItems[o.id]=this.pathRoot}depthFirstSearchChangedPath(i,o){let{rowNode:C,children:P}=i;if(P)for(let B=0;B<P.length;++B)this.depthFirstSearchChangedPath(P[B],o);o(C)}depthFirstSearchEverything(i,o,C){let P=i.childrenAfterGroup;if(P)for(let B=0,W=P.length;B<W;++B){let $=P[B];$.childrenAfterGroup?this.depthFirstSearchEverything($,o,C):C&&o($)}o(i)}forEachChangedNodeDepthFirst(i,o=!1,C=!1){this.active&&!C?this.depthFirstSearchChangedPath(this.pathRoot,i):this.depthFirstSearchEverything(this.pathRoot.rowNode,i,o)}executeFromRootNode(i){i(this.pathRoot.rowNode)}createPathItems(i){let o=i,C=0;for(;!this.mapToItems[o.id];){let P={rowNode:o,children:null};this.mapToItems[o.id]=P,C++,o=o.parent}return C}populateColumnsMap(i,o){if(!this.keepingColumns||!o)return;let C=i;for(;C;)this.nodeIdsToColumns[C.id]||(this.nodeIdsToColumns[C.id]={}),o.forEach(P=>this.nodeIdsToColumns[C.id][P.getId()]=!0),C=C.parent}linkPathItems(i,o){let C=i;for(let P=0;P<o;P++){let B=this.mapToItems[C.id],W=this.mapToItems[C.parent.id];W.children||(W.children=[]),W.children.push(B),C=C.parent}}addParentNode(i,o){if(!i||i.isRowPinned())return;let C=this.createPathItems(i);this.linkPathItems(i,C),this.populateColumnsMap(i,o)}canSkip(i){return this.active&&!this.mapToItems[i.id]}getValueColumnsForNode(i,o){if(!this.keepingColumns)return o;let C=this.nodeIdsToColumns[i.id];return o.filter(B=>C[B.getId()])}getNotValueColumnsForNode(i,o){if(!this.keepingColumns)return null;let C=this.nodeIdsToColumns[i.id];return o.filter(B=>!C[B.getId()])}},nf="paste",Mg=class extends ei{constructor(){super(...arguments),this.beanName="changeDetectionSvc",this.clientSideRowModel=null}postConstruct(){let{gos:i,rowModel:o}=this.beans;_o(i,o)&&(this.clientSideRowModel=o),this.addManagedEventListeners({cellValueChanged:this.onCellValueChanged.bind(this)})}onCellValueChanged(i){let{gos:o,rowRenderer:C}=this.beans;if(i.source===nf||o.get("suppressChangeDetection"))return;let P=i.node,B=[P],W=this.clientSideRowModel,$=W==null?void 0:W.rootNode;if($&&!P.isRowPinned()){let ie=o.get("aggregateOnlyChangedColumns"),ue=new Kd(ie,$);ue.addParentNode(P.parent,[i.column]),W.doAggregate(ue),ue.forEachChangedNodeDepthFirst(De=>{B.push(De)})}C.refreshCells({rowNodes:B})}},XD=class extends ei{constructor(){super(...arguments),this.beanName="expressionSvc",this.cache={}}evaluate(i,o){if(typeof i=="string")return this.evaluateExpression(i,o);Ea(15,{expression:i})}evaluateExpression(i,o){try{return this.createExpressionFunction(i)(o.value,o.context,o.oldValue,o.newValue,o.value,o.node,o.data,o.colDef,o.rowIndex,o.api,o.getValue,o.column,o.columnGroup)}catch(C){return Ea(16,{expression:i,params:o,e:C}),null}}createExpressionFunction(i){let o=this.cache;if(o[i])return o[i];let C=this.createFunctionBody(i),P=new Function("x, ctx, oldValue, newValue, value, node, data, colDef, rowIndex, api, getValue, column, columnGroup",C);return o[i]=P,P}createFunctionBody(i){return i.indexOf("return")>=0?i:"return "+i+";"}},af=class extends ei{constructor(){super(...arguments),this.beanName="valueCache",this.cacheVersion=0}postConstruct(){let i=this.gos;this.active=i.get("valueCache"),this.neverExpires=i.get("valueCacheNeverExpires")}onDataChanged(){this.neverExpires||this.expire()}expire(){this.cacheVersion++}setValue(i,o,C){if(this.active){let P=this.cacheVersion;i.__cacheVersion!==P&&(i.__cacheVersion=P,i.__cacheData={}),i.__cacheData[o]=C}}getValue(i,o){if(!(!this.active||i.__cacheVersion!==this.cacheVersion))return i.__cacheData[o]}},ZD={moduleName:"ValueCache",version:yi,beans:[af],apiFunctions:{expireValueCache:zb}},$D={moduleName:"Expression",version:yi,beans:[XD]},QD={moduleName:"ChangeDetection",version:yi,beans:[Mg]},RM={moduleName:"CellApi",version:yi,apiFunctions:{getCellValue:YD}},JD=class extends ei{constructor(){super(...arguments),this.beanName="valueSvc",this.initialised=!1,this.isSsrm=!1}wireBeans(i){this.expressionSvc=i.expressionSvc,this.colModel=i.colModel,this.valueCache=i.valueCache,this.dataTypeSvc=i.dataTypeSvc}postConstruct(){this.initialised||this.init()}init(){this.executeValueGetter=this.valueCache?this.executeValueGetterWithValueCache.bind(this):this.executeValueGetterWithoutValueCache.bind(this),this.isSsrm=Jc(this.gos),this.cellExpressions=this.gos.get("enableCellExpressions"),this.isTreeData=this.gos.get("treeData"),this.initialised=!0;let i=o=>this.callColumnCellValueChangedHandler(o);this.eventSvc.addEventListener("cellValueChanged",i,!0),this.addDestroyFunc(()=>this.eventSvc.removeEventListener("cellValueChanged",i,!0)),this.addManagedPropertyListener("treeData",o=>this.isTreeData=o.currentValue)}getValueForDisplay(i,o){let C=o.leafGroup&&this.colModel.isPivotMode(),P=o.group&&o.expanded&&!o.footer&&!C,B=this.gos.get("groupSuppressBlankHeader");if(!P||B)return this.getValue(i,o);let W=!1,$=this.gos.get("groupTotalRow");typeof $!="function"?W=!!$:W=!!this.gos.getCallback("groupTotalRow")({node:this});let ie=P&&W;return this.getValue(i,o,ie)}getValue(i,o,C=!1){if(this.initialised||this.init(),!o)return;let P=i.getColDef(),B=P.field,W=i.getColId(),$=o.data,ie,ue=o.groupData&&o.groupData[W]!==void 0,De=!C&&o.aggData&&o.aggData[W]!==void 0,_e=this.isSsrm&&C&&!!i.getColDef().aggFunc,Be=this.isSsrm&&o.footer&&o.field&&(i.getColDef().showRowGroup===!0||i.getColDef().showRowGroup===o.field);if(this.isTreeData&&De?ie=o.aggData[W]:this.isTreeData&&P.valueGetter?ie=this.executeValueGetter(P.valueGetter,$,i,o):this.isTreeData&&B&&$?ie=ph($,B,i.isFieldContainsDots()):ue?ie=o.groupData[W]:De?ie=o.aggData[W]:P.valueGetter?ie=this.executeValueGetter(P.valueGetter,$,i,o):Be?ie=ph($,o.field,i.isFieldContainsDots()):B&&$&&!_e&&(ie=ph($,B,i.isFieldContainsDots())),this.cellExpressions&&typeof ie=="string"&&ie.indexOf("=")===0){let Qe=ie.substring(1);ie=this.executeValueGetter(Qe,$,i,o)}if(ie==null){let Qe=this.getOpenedGroup(o,i);if(Qe!=null)return Qe}return ie}parseValue(i,o,C,P){var $;let B=i.getColDef(),W=B.valueParser;if(Ai(W)){let ie=this.gos.addGridCommonParams({node:o,data:o==null?void 0:o.data,oldValue:P,newValue:C,colDef:B,column:i});return typeof W=="function"?W(ie):($=this.expressionSvc)==null?void 0:$.evaluate(W,ie)}return C}getDeleteValue(i,o){var C;return Ai(i.getColDef().valueParser)&&(C=this.parseValue(i,o,"",this.getValueForDisplay(i,o)))!=null?C:null}formatValue(i,o,C,P,B=!0){let W=null,$,ie=i.getColDef();if(P?$=P:B&&($=ie.valueFormatter),$){let ue=this.gos.addGridCommonParams({value:C,node:o,data:o?o.data:null,colDef:ie,column:i});typeof $=="function"?W=$(ue):W=this.expressionSvc?this.expressionSvc.evaluate($,ue):null}else if(ie.refData)return ie.refData[C]||"";return W==null&&Array.isArray(C)&&(W=C.join(", ")),W}getOpenedGroup(i,o){if(!this.gos.get("showOpenedGroup")||!o.getColDef().showRowGroup)return;let P=o.getColDef().showRowGroup,B=i.parent;for(;B!=null;){if(B.rowGroupColumn&&(P===!0||P===B.rowGroupColumn.getColId()))return B.key;B=B.parent}}setValue(i,o,C,P){var _e,Be;let B=this.colModel.getColDefCol(o);if(!i||!B)return!1;Qn(i.data)&&(i.data={});let{field:W,valueSetter:$}=B.getColDef();if(Qn(W)&&Qn($))return pi(17),!1;if(this.dataTypeSvc&&!this.dataTypeSvc.checkType(B,C))return pi(135),!1;let ie=this.gos.addGridCommonParams({node:i,data:i.data,oldValue:this.getValue(B,i),newValue:C,colDef:B.getColDef(),column:B});ie.newValue=C;let ue;if(Ai($)?typeof $=="function"?ue=$(ie):ue=(_e=this.expressionSvc)==null?void 0:_e.evaluate($,ie):ue=this.setValueUsingField(i.data,W,C,B.isFieldContainsDots()),ue===void 0&&(ue=!0),!ue)return!1;i.resetQuickFilterAggregateText(),(Be=this.valueCache)==null||Be.onDataChanged();let De=this.getValue(B,i);return this.eventSvc.dispatchEvent({type:"cellValueChanged",event:null,rowIndex:i.rowIndex,rowPinned:i.rowPinned,column:ie.column,colDef:ie.colDef,data:i.data,node:i,oldValue:ie.oldValue,newValue:De,value:De,source:P}),!0}callColumnCellValueChangedHandler(i){let o=i.colDef.onCellValueChanged;typeof o=="function"&&this.beans.frameworkOverrides.wrapOutgoing(()=>{o({node:i.node,data:i.data,oldValue:i.oldValue,newValue:i.newValue,colDef:i.colDef,column:i.column,api:i.api,context:i.context})})}setValueUsingField(i,o,C,P){if(!o)return!1;let B=!1;if(!P)B=i[o]===C,B||(i[o]=C);else{let W=o.split("."),$=i;for(;W.length>0&&$;){let ie=W.shift();W.length===0?(B=$[ie]===C,B||($[ie]=C)):$=$[ie]}}return!B}executeValueGetterWithValueCache(i,o,C,P){let B=C.getColId(),W=this.valueCache.getValue(P,B);if(W!==void 0)return W;let $=this.executeValueGetterWithoutValueCache(i,o,C,P);return this.valueCache.setValue(P,B,$),$}executeValueGetterWithoutValueCache(i,o,C,P){var $;let B=this.gos.addGridCommonParams({data:o,node:P,column:C,colDef:C.getColDef(),getValue:this.getValueCallback.bind(this,P)}),W;return typeof i=="function"?W=i(B):W=($=this.expressionSvc)==null?void 0:$.evaluate(i,B),W}getValueCallback(i,o){let C=this.colModel.getColDefCol(o);return C?this.getValue(C,i):null}getKeyForNode(i,o){let C=this.getValue(i,o),P=i.getColDef().keyCreator,B=C;if(P){let W=this.gos.addGridCommonParams({value:C,colDef:i.getColDef(),column:i,node:o,data:o.data});B=P(W)}return typeof B=="string"||B==null||(B=String(B),B==="[object Object]"&&pi(121)),B}},of={moduleName:"CommunityCore",version:yi,beans:[xs,xv,aT,ux,KD,JI,SM,xM,vs,pL,DM,qD,JD,Wd,Tp,Qm,X0,TM,nM,oL],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:Ux,destroy:pD,isDestroyed:Mv,getGridOption:mD,setGridOption:vo,updateGridOptions:wp},dependsOn:[TD,YI,XP,IM,gT,H0,kM,fT,QD,_b,VD,cS,dS,xg,Y0,Ph,$D]},Bb=class sI{static applyGlobalGridOptions(o){if(!sI.gridOptions)return pe({},o);let C={};return Ko(C,sI.gridOptions,!0,!0),sI.mergeStrategy==="deep"?Ko(C,o,!0,!0):C=pe(pe({},C),o),sI.gridOptions.context&&(C.context=sI.gridOptions.context),o.context&&(sI.mergeStrategy==="deep"&&C.context&&Ko(o.context,C.context,!0,!0),C.context=o.context),C}};Bb.gridOptions=void 0,Bb.mergeStrategy="shallow";var rf=Bb;function sf(i,o="shallow"){rf.gridOptions=i,rf.mergeStrategy=o}function Js(i){var o;return(o=rf.gridOptions)==null?void 0:o[i]}function bL(i,o,C){if(!o)return Ea(11),{};let P=C,B;if(!(P!=null&&P.setThemeOnGridDiv)){let $=document.createElement("div");$.style.height="100%",i.appendChild($),i=$,B=()=>i.remove()}return new e1().create(i,o,$=>{let ie=new Vx(i);$.createBean(ie)},void 0,C,B)}var bT=1,e1=class{create(i,o,C,P,B,W){var Ct,Ot;let $=rf.applyGlobalGridOptions(o),ie=(Ct=$.gridId)!=null?Ct:String(bT++),ue=(Ot=$.rowModelType)!=null?Ot:"clientSide",De=this.getRegisteredModules(B,ie,ue),_e=this.createBeansList(ue,De,ie),Be=this.createProvidedBeans(i,$,B);if(!_e)return;let Qe={providedBeanInstances:Be,beanClasses:_e,gridId:ie,beanInitComparator:gg,beanDestroyComparator:gD,derivedBeans:[jI],destroyCallback:W},st=new ga(Qe);return this.registerModuleFeatures(st,De),C(st),st.getBean("syncSvc").start(),P&&P(st),st.getBean("gridApi")}getRegisteredModules(i,o,C){var P;return Zy(of,void 0),(P=i==null?void 0:i.modules)==null||P.forEach(B=>Zy(B,o)),dr(o,C)}registerModuleFeatures(i,o){let C=i.getBean("registry"),P=i.getBean("apiFunctionSvc");o.forEach(B=>{C.registerModule(B);let W=B.apiFunctions;W&&Object.keys(W).forEach(ie=>{P==null||P.addFunction(ie,W[ie])})})}createProvidedBeans(i,o,C){let P=C?C.frameworkOverrides:null;Qn(P)&&(P=new E0);let B={gridOptions:o,eGridDiv:i,globalListener:C?C.globalListener:null,globalSyncListener:C?C.globalSyncListener:null,frameworkOverrides:P};return C&&C.providedBeanInstances&&Object.assign(B,C.providedBeanInstances),B}createBeansList(i,o,C){let B={clientSide:"ClientSideRowModel",infinite:"InfiniteRowModel",serverSide:"ServerSideRowModel",viewport:"ViewportRowModel"}[i];if(!B){cp(201,{rowModelType:i},`Unknown rowModelType ${i}.`);return}if(!Ua(B,C,i)){cp(200,{reasonOrId:`rowModelType = '${i}'`,moduleName:B,gridScoped:No(),gridId:C,rowModelType:i},`Missing module ${B}Module for rowModelType ${i}. 
If upgrading from before v33, see ${bm}/upgrading-to-ag-grid-33/#changes-to-modules/`);return}let W=new Set;return o.forEach($=>{var ie;return(ie=$.beans)==null?void 0:ie.forEach(ue=>W.add(ue))}),Array.from(W)}};function qd(i){let o=i.rowModel;return o.getType()==="clientSide"?o:void 0}function pS(i){let o=i.rowModel;return o.getType()==="infinite"?o:void 0}function mS(i){let o=i.rowModel;return o.getType()==="serverSide"?o:void 0}var t1=["columnEverythingChanged","newColumnsLoaded","columnPivotModeChanged","pivotMaxColumnsExceeded","columnRowGroupChanged","expandOrCollapseAll","columnPivotChanged","gridColumnsChanged","columnValueChanged","columnMoved","columnVisible","columnPinned","columnGroupOpened","columnResized","displayedColumnsChanged","virtualColumnsChanged","columnHeaderMouseOver","columnHeaderMouseLeave","columnHeaderClicked","columnHeaderContextMenu","asyncTransactionsFlushed","rowGroupOpened","rowDataUpdated","pinnedRowDataChanged","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","filterOpened","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"],PM=["scrollbarWidthChanged","keyShortcutChangedCellStart","keyShortcutChangedCellEnd","pinnedHeightChanged","cellFocusCleared","fullWidthRowFocused","checkboxChanged","heightScaleChanged","suppressMovableColumns","suppressMenuHide","suppressFieldDotNotation","columnPanelItemDragStart","columnPanelItemDragEnd","bodyHeightChanged","columnContainerWidthChanged","displayedColumnsWidthChanged","scrollVisibilityChanged","scrollGapChanged","columnHoverChanged","flashCells","paginationPixelOffsetChanged","displayedRowsChanged","leftPinnedWidthChanged","rightPinnedWidthChanged","rowContainerHeightChanged","headerHeightChanged","columnGroupHeaderHeightChanged","columnHeaderHeightChanged","gridStylesChanged","storeUpdated","filterDestroyed","rowDataUpdateStarted","rowCountReady","advancedFilterEnabledChanged","dataTypesInferred","fieldValueChanged","fieldPickerValueSelected","richSelectListRowSelected","sideBarUpdated","alignedGridScroll","alignedGridColumn","gridOptionsChanged","chartTitleEdit","recalculateRowBounds","stickyTopOffsetChanged","overlayExclusiveChanged","beforeRefreshModel"],LM=[...t1,...PM],OM=class extends ei{constructor(){super(...arguments),this.beanName="localeSvc"}getLocaleTextFunc(){let i=this.gos,o=i.getCallback("getLocaleText");if(o)return(P,B,W)=>o({key:P,defaultValue:B,variableValues:W});let C=i.get("localeText");return(P,B,W)=>{let $=C&&C[P];if($&&W&&W.length){let ie=0;for(;!(ie>=W.length||$.indexOf("${variable}")===-1);)$=$.replace("${variable}",W[ie++])}return $!=null?$:B}}},CL=["overlayLoadingTemplate","overlayNoRowsTemplate","gridId","quickFilterText","rowModelType","editType","domLayout","clipboardDelimiter","rowGroupPanelShow","multiSortKey","pivotColumnGroupTotals","pivotRowTotals","pivotPanelShow","fillHandleDirection","groupDisplayType","treeDataDisplayType","colResizeDefault","tooltipTrigger","serverSidePivotResultFieldSeparator","columnMenu","tooltipShowMode","grandTotalRow"],SL=["components","rowStyle","context","autoGroupColumnDef","localeText","icons","datasource","dragAndDropImageComponentParams","serverSideDatasource","viewportDatasource","groupRowRendererParams","aggFuncs","fullWidthCellRendererParams","defaultColGroupDef","defaultColDef","defaultCsvExportParams","defaultExcelExportParams","columnTypes","rowClassRules","detailCellRendererParams","loadingCellRendererParams","loadingOverlayComponentParams","noRowsOverlayComponentParams","popupParent","statusBar","chartThemeOverrides","customChartThemes","chartToolPanelsDef","dataTypeDefinitions","advancedFilterParent","advancedFilterBuilderParams","initialState","autoSizeStrategy","selectionColumnDef"],Lu=["sortingOrder","alignedGrids","rowData","columnDefs","excelStyles","pinnedTopRowData","pinnedBottomRowData","chartThemes","rowClass","paginationPageSizeSelector"],Gb=["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"],_M=["theme","rowSelection"],kg=["cellSelection","sideBar","suppressGroupChangesColumnVisibility","groupAggFiltering","suppressStickyTotalRow","groupHideParentOfSingleChild"],fS=["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","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"],i1=["doesExternalFilterPass","processPivotResultColDef","processPivotResultColGroupDef","getBusinessKeyForNode","isRowSelectable","rowDragText","groupRowRenderer","dragAndDropImageComponent","fullWidthCellRenderer","loadingCellRenderer","loadingOverlayComponent","noRowsOverlayComponent","detailCellRenderer","quickFilterParser","quickFilterMatcher","getLocaleText","isExternalFilterPresent","getRowHeight","getRowClass","getRowStyle","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"],FM=[...Lu,...SL,...CL,...Gb,...i1,...fS,...kg,..._M],vS=class{wrap(i,o,C,P){let B=this.createWrapper(i,P);return o==null||o.forEach(W=>{this.createMethod(B,W,!0)}),C==null||C.forEach(W=>{this.createMethod(B,W,!1)}),B}createMethod(i,o,C){i.addMethod(o,this.createMethodProxy(i,o,C))}createMethodProxy(i,o,C){return function(){return i.hasMethod(o)?i.callMethod(o,arguments):(C&&pi(49,{methodName:o}),null)}}},n1=class extends Sv{constructor(){super('<div class="ag-tooltip"></div>')}init(i){let{value:o}=i;this.getGui().textContent=ql(o,!0)}};function pd(i){let{inputValue:o,allSuggestions:C,hideIrrelevant:P,filterByPercentageOfBestMatch:B,addSequentialWeight:W}=i,$=C.map((De,_e)=>({value:De,relevance:CT(o.toLowerCase(),De.toLocaleLowerCase(),W),idx:_e}));if($.sort((De,_e)=>_e.relevance-De.relevance),P&&($=$.filter(De=>De.relevance!==0)),$.length>0&&B&&B>0){let _e=$[0].relevance*B;$=$.filter(Be=>_e-Be.relevance<0)}let ie=[],ue=[];for(let De of $)ie.push(De.value),ue.push(De.idx);return{values:ie,indices:ue}}function lf(i){let o=[],C=i.length;for(let P=1;P<=C;P++)for(let B=0;B<=C-P;B++){let W=B+P-1;o.push(i.slice(B,W+1))}return o}function CT(i,o,C=!1){let P=i.replace(/\s/g,""),B=o.replace(/\s/g,""),W=P.length,$=B.length,ie=new Array(W+1).fill(null).map(()=>new Array($+1).fill(0));for(let Be=0;Be<=W;Be+=1)ie[Be][0]=Be;for(let Be=0;Be<=$;Be+=1)ie[0][Be]=Be;for(let Be=1;Be<=W;Be++)for(let Qe=1;Qe<=$;Qe++)P[Be-1]===B[Qe-1]?ie[Be][Qe]=ie[Be-1][Qe-1]:ie[Be][Qe]=1+Math.min(ie[Be][Qe-1],Math.min(ie[Be-1][Qe],ie[Be-1][Qe-1]));let ue=ie[W][$],_e=Math.max(W,$)-ue;if(C){let Be=lf(P);for(let Qe=0;Qe<Be.length;Qe++){let st=Be[Qe];B.indexOf(st)!==-1&&(_e+=1,_e*=st.length)}}return _e}function cf(i,o){if(typeof i!="number")return"";let C=o(),P=C("thousandSeparator",","),B=C("decimalSeparator",".");return i.toString().replace(".",B).replace(/(\d)(?=(\d{3})+(?!\d))/g,`$1${P}`)}var jv=class extends ei{getFileName(i){let o=this.getDefaultFileExtension();return(i==null||!i.length)&&(i=this.getDefaultFileName()),i.indexOf(".")===-1?`${i}.${o}`:i}getData(i){let o=this.createSerializingSession(i);return this.beans.gridSerializer.serialize(o,i)}getDefaultFileName(){return`export.${this.getDefaultFileExtension()}`}},jb=class{constructor(i){this.groupColumns=[];let{colModel:o,rowGroupColsSvc:C,colNames:P,valueSvc:B,gos:W,processCellCallback:$,processHeaderCallback:ie,processGroupHeaderCallback:ue,processRowGroupCallback:De}=i;this.colModel=o,this.rowGroupColsSvc=C,this.colNames=P,this.valueSvc=B,this.gos=W,this.processCellCallback=$,this.processHeaderCallback=ie,this.processGroupHeaderCallback=ue,this.processRowGroupCallback=De}prepare(i){this.groupColumns=i.filter(o=>!!o.getColDef().showRowGroup)}extractHeaderValue(i){let o=this.getHeaderName(this.processHeaderCallback,i);return o!=null?o:""}extractRowCellValue(i,o,C,P,B){let $=(!this.gos.get("groupHideOpenParents")||B.footer)&&this.shouldRenderGroupSummaryCell(B,i,o)?this.createValueForGroupNode(i,B):this.valueSvc.getValue(i,B);return this.processCell({accumulatedRowIndex:C,rowNode:B,column:i,value:$,processCellCallback:this.processCellCallback,type:P})}shouldRenderGroupSummaryCell(i,o,C){var $,ie;if(!(i&&i.group))return!1;if(this.groupColumns.indexOf(o)!==-1){if((($=i.groupData)==null?void 0:$[o.getId()])!==void 0||Jc(this.gos)&&i.group)return!0;if(i.footer&&i.level===-1){let ue=o.getColDef();return ue==null||ue.showRowGroup===!0||ue.showRowGroup===((ie=this.rowGroupColsSvc)==null?void 0:ie.columns[0].getId())}}let W=ax(this.gos,this.colModel.isPivotMode());return C===0&&W}getHeaderName(i,o){return i?i(this.gos.addGridCommonParams({column:o})):this.colNames.getDisplayNameForColumn(o,"csv",!0)}createValueForGroupNode(i,o){if(this.processRowGroupCallback)return this.processRowGroupCallback(this.gos.addGridCommonParams({column:i,node:o}));let C=this.gos.get("treeData"),P=ie=>{var De,_e;if(C)return ie.key;let ue=(De=ie.groupData)==null?void 0:De[i.getId()];return!ue||!ie.rowGroupColumn||ie.rowGroupColumn.getColDef().useValueFormatterForExport===!1?ue:(_e=this.valueSvc.formatValue(ie.rowGroupColumn,ie,ue))!=null?_e:ue},B=o.footer,W=[P(o)];if(!pI(this.gos))for(;o.parent;)o=o.parent,W.push(P(o));let $=W.reverse().join(" -> ");return B?`Total ${$}`:$}processCell(i){var ie;let{accumulatedRowIndex:o,rowNode:C,column:P,value:B,processCellCallback:W,type:$}=i;return W?{value:(ie=W(this.gos.addGridCommonParams({accumulatedRowIndex:o,column:P,node:C,value:B,type:$,parseValue:ue=>this.valueSvc.parseValue(P,C,ue,this.valueSvc.getValue(P,C)),formatValue:ue=>{var De;return(De=this.valueSvc.formatValue(P,C,ue))!=null?De:ue}})))!=null?ie:""}:P.getColDef().useValueFormatterForExport!==!1?{value:B!=null?B:"",valueFormatted:this.valueSvc.formatValue(P,C,B)}:{value:B!=null?B:""}}};function a1(i,o){let C=document.defaultView||window;if(!C){pi(52);return}let P=document.createElement("a"),B=C.URL.createObjectURL(o);P.setAttribute("href",B),P.setAttribute("download",i),P.style.display="none",document.body.appendChild(P),P.dispatchEvent(new MouseEvent("click",{bubbles:!1,cancelable:!0,view:C})),document.body.removeChild(P),C.setTimeout(()=>{C.URL.revokeObjectURL(B)},0)}var NM={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,columnMenu:!0,suppressSetFilterByDefault:!0,getDataPath:!0},Al="clientSide",oo="serverSide",Nh="infinite",yS={onGroupExpandedOrCollapsed:[Al],refreshClientSideRowModel:[Al],isRowDataEmpty:[Al],forEachLeafNode:[Al],forEachNodeAfterFilter:[Al],forEachNodeAfterFilterAndSort:[Al],resetRowHeights:[Al],applyTransaction:[Al],applyTransactionAsync:[Al],flushAsyncTransactions:[Al],getBestCostNodeSelection:[Al],getServerSideSelectionState:[oo],setServerSideSelectionState:[oo],applyServerSideTransaction:[oo],applyServerSideTransactionAsync:[oo],applyServerSideRowData:[oo],retryServerSideLoads:[oo],flushServerSideAsyncTransactions:[oo],refreshServerSide:[oo],getServerSideGroupLevelState:[oo],refreshInfiniteCache:[Nh],purgeInfiniteCache:[Nh],getInfiniteRowCount:[Nh],isLastRowIndexKnown:[Nh,oo],expandAll:[Al,oo],collapseAll:[Al,oo],onRowHeightChanged:[Al,oo],setRowCount:[Nh,oo],getCacheBlockState:[Nh,oo]},ST={showLoadingOverlay:{version:"v32",message:'`showLoadingOverlay` is deprecated. Use the grid option "loading"=true instead or setGridOption("loading", true).'},clearRangeSelection:{version:"v32.2",message:"Use `clearCellSelection` instead."},getInfiniteRowCount:{version:"v32.2",old:"getInfiniteRowCount()",new:"getDisplayedRowCount()"},selectAllFiltered:{version:"v33",old:"selectAllFiltered()",new:'selectAll("filtered")'},deselectAllFiltered:{version:"v33",old:"deselectAllFiltered()",new:'deselectAll("filtered")'},selectAllOnCurrentPage:{version:"v33",old:"selectAllOnCurrentPage()",new:'selectAll("currentPage")'},deselectAllOnCurrentPage:{version:"v33",old:"deselectAllOnCurrentPage()",new:'deselectAll("currentPage")'}};function zM(i,o,C){let P=ST[i];if(P){let{version:W,new:$,old:ie,message:ue}=P,De=ie!=null?ie:i;return(..._e)=>{let Be=$?`Please use ${$} instead. `:"";return Jr(`Since ${W} api.${De} is deprecated. ${Be}${ue!=null?ue:""}`),o.apply(o,_e)}}let B=yS[i];return B?(...W)=>{let $=C.rowModel.getType();if(!B.includes($)){Vl(`api.${i} can only be called when gridOptions.rowModelType is ${B.join(" or ")}`);return}return o.apply(o,W)}:o}var wT={AdvancedFilter:1,AllEnterprise:1,CellSelection:1,Clipboard:1,ColumnMenu:1,ColumnsToolPanel:1,ContextMenu:1,ExcelExport:1,FiltersToolPanel:1,GridCharts:1,IntegratedCharts:1,GroupFilter:1,MasterDetail:1,Menu:1,MultiFilter:1,Pivot:1,RangeSelection:1,RichSelect:1,RowGrouping:1,RowGroupingPanel:1,ServerSideRowModelApi:1,ServerSideRowModel:1,SetFilter:1,SideBar:1,Sparklines:1,StatusBar:1,TreeData:1,ViewportRowModel:1},BM=["TextFilter","NumberFilter","DateFilter","SetFilter","MultiFilter","GroupFilter","CustomFilter"],wL={EditCore:["TextEditor","NumberEditor","DateEditor","CheckboxEditor","LargeTextEditor","SelectEditor","RichSelect","CustomEditor"],CheckboxCellRenderer:["AllCommunity"],ClientSideRowModelHierarchy:["RowGrouping","Pivot","TreeData"],ColumnFilter:BM,ColumnGroupHeaderComp:["AllCommunity"],ColumnGroup:["AllCommunity"],ColumnHeaderComp:["AllCommunity"],ColumnMove:["AllCommunity"],ColumnResize:["AllCommunity"],CommunityCore:["AllCommunity"],CsrmSsrmSharedApi:["ClientSideRowModelApi","ServerSideRowModelApi"],EnterpriseCore:["AllEnterprise"],FilterCore:[...BM,"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:[...BM,"ColumnMenu","ContextMenu"],SharedPivot:["Pivot","ServerSideRowModel"],SharedRowGrouping:["RowGrouping","ServerSideRowModel"],SharedRowSelection:["RowSelection","ServerSideRowModel"],SkeletonCellRenderer:["ServerSideRowModel"],Sort:["AllCommunity"],SsrmInfiniteSharedApi:["InfiniteRowModel","ServerSideRowModelApi"],SharedTreeData:["TreeData","ServerSideRowModel"]},xT={InfiniteRowModel:"infinite",ClientSideRowModelApi:"clientSide",ClientSideRowModel:"clientSide",ServerSideRowModelApi:"serverSide",ServerSideRowModel:"serverSide",ViewportRowModel:"viewport"};function Vb(i,o){let C=[];return(Array.isArray(i)?i:[i]).forEach(P=>{let B=wL[P];B?B.forEach(W=>{let $=xT[W];(!$||$===o)&&C.push(W)}):C.push(P)}),C}var md={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",agAggregationComponent:"StatusBar",agSelectedRowCountComponent:"StatusBar",agTotalRowCountComponent:"StatusBar",agFilteredRowCountComponent:"StatusBar",agTotalAndFilteredRowCountComponent:"StatusBar"},bS=i=>`import { ModuleRegistry } from 'ag-grid-community'; 
${i.map(C=>`import { ${zh(C)} } from '${wT[C]?"ag-grid-enterprise":"ag-grid-community"}';`).join(` 
`)} 

ModuleRegistry.registerModules([ ${i.map(zh).join(", ")} ]); 

For more info see: ${bm}/modules/`;function zh(i){return`${i}Module`}var GM=({reasonOrId:i,moduleName:o,gridScoped:C,gridId:P,rowModelType:B,additionalText:W})=>{let $=Vb(o,B);return`Unable to use ${typeof i=="string"?i:Vv[i]} as ${$.length>1?"one of "+$.map(zh).join(", "):zh($[0])} is not registered${C?" for gridId: "+P:""}. Check if you have registered the module:
${bS($)}`+(W?` 

${W}`:"")},jM=i=>`${i} must be initialised with an AG Charts module. One of 'AgChartsCommunityModule' / 'AgChartsEnterpriseModule'.

import { AgChartsEnterpriseModule } from 'ag-charts-enterprise';
import { ModuleRegistry } from 'ag-grid-community';
import { ${i} } from 'ag-grid-enterprise';
    
ModuleRegistry.registerModules([${i}.with(AgChartsEnterpriseModule)]);
    `,df=i=>`AG Grid: Unable to use the Clipboard API (navigator.clipboard.${i}()). 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.`,Ag={1:()=>"`rowData` must be an array",2:({nodeId:i})=>`Duplicate node id '${i}' 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:i})=>`Could not find row id=${i}, data item was not found for this id`,5:({data:i})=>["Could not find data item as object was not found.",i," 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:i})=>`Unknown key for navigation ${i}`,9:({variable:i})=>`No value for ${i.cssName}. This usually means that the grid has been initialised before styles have been loaded. The default value of ${i.defaultValue} will be used and updated when styles load.`,10:({eventType:i})=>`As of v33, the '${i}' event is deprecated. Use the global 'modelUpdated' event to determine when row children have changed.`,11:()=>"No gridOptions provided to createGrid",12:({colKey:i})=>["column ",i," 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:i})=>`Row IDs cannot start with ${i}, this is a reserved prefix for AG Grid's row grouping feature.`,15:({expression:i})=>["value should be either a string or a function",i],16:({expression:i,params:o,e:C})=>["Processing of the expression failed","Expression = ",i,"Params = ",o,"Exception = ",C],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:
                     "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:i})=>`${i} 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:i})=>["The getRowId callback must return a string. The ID ",i," is being cast to a string."],26:({fnName:i,preDestroyLink:o})=>`Grid API function ${i}() cannot be called as the grid has been destroyed.
 Either clear local references to the grid api, when it is destroyed, or check gridApi.isDestroyed() to avoid calling methods against a destroyed grid.
 To run logic when the grid is about to be destroyed use the gridPreDestroy event. See: ${o}`,27:({fnName:i,module:o})=>`API function '${i}' not registered to module '${o}'`,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:i})=>["tried to insert columns in invalid location, toIndex = ",i,"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:i})=>`the column type '${i}' 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:i})=>"colDef.type '"+i+"' does not correspond to defined gridOptions.columnTypes",37:()=>"Changing the column pinning status is not allowed with domLayout='print'",38:({iconName:i})=>`provided icon '${i}' 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:i,method:o})=>`${i}
${df(o)}`,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:i})=>`As of v33, icon '${i}' is deprecated. Use the icon CSS name instead.`,44:()=>'Data type definition hierarchies (via the "extendsDataType" property) cannot contain circular references.',45:({parentCellDataType:i})=>`The data type definition ${i} does not exist.`,46:()=>'The "baseDataType" property of a data type definition must match that of its parent.',47:({cellDataType:i})=>`Missing data type definition - "${i}"`,48:({property:i})=>`Cell data type is "object" but no Value ${i} has been provided. Please either provide an object data type definition with a Value ${i}, or set "colDef.value${i}"`,49:({methodName:i})=>`Framework component is missing the method ${i}()`,50:({compName:i})=>`Could not find component ${i}, 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:i})=>`setFilterModel() - no column found for colId: ${i}`,63:({colId:i})=>`setFilterModel() - unable to fully apply model, filtering disabled for colId: ${i}`,64:({colId:i})=>`setFilterModel() - unable to fully apply model, unable to create filter for colId: ${i}`,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:i})=>`getGui method from filter returned ${i}; it should be a DOM element.`,70:({newFilter:i})=>`Grid option quickFilterText only supports string inputs, received: ${typeof i}`,71:()=>"debounceMs is ignored when apply button is present",72:({keys:i})=>["ignoring FilterOptionDef as it doesn't contain one of ",i],73:()=>"invalid FilterOptionDef supplied as it doesn't contain a 'displayKey'",74:()=>"no filter options for filter",75:()=>"Unknown button type specified",76:({filterModelType:i})=>['Unexpected type of filter "',i,'", 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:i})=>`DateFilter ${i} 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:i})=>`Invalid row index for ensureIndexVisible: ${i}`,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:({methodName:i})=>`AnimationFrameService.${i} called but animation frames are off`,93:()=>"cannot add multiple ranges when `cellSelection.suppressMultiRanges = true`",94:({paginationPageSizeOption:i,pageSizeSet:o,pageSizesSet:C,pageSizeOptions:P})=>`'paginationPageSize=${i}'${o?"":" (default value)"}, but ${i} is not included in${C?"":" the default"} paginationPageSizeSelector=[${P.join(", ")}].`,95:({paginationPageSizeOption:i,paginationPageSizeSelector:o})=>`Either set '${o}' to an array that includes ${i} or to 'false' to disable the page size selector.`,96:({id:i,data:o})=>["Duplicate ID",i,"found for pinned row with data",o,"When `getRowId` is defined, it must return unique IDs for all pinned rows. Use the `rowPinned` parameter."],97:({colId:i})=>`cellEditor for column ${i} 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.",100:({rowModelType:i})=>`selectAll only available when rowModelType='clientSide', ie not ${i}`,101:({propertyName:i,componentName:o,agGridDefaults:C,jsComps:P})=>{let B=[],W=[...Object.keys(C).filter(ie=>!["agCellEditor","agGroupRowRenderer","agSortIndicator"].includes(ie)),...Object.keys(P)],$=pd({inputValue:o,allSuggestions:W,hideIrrelevant:!0,filterByPercentageOfBestMatch:.8}).values;return B.push(`Could not find '${o}' component. It was configured as "${i}: '${o}'" but it wasn't found in the list of registered components.
`),$.length>0&&B.push(`         Did you mean: [${$.slice(0,3)}]?
`),B.push("If using a custom component check it has been registered correctly."),B},102:()=>"selecting just 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:i,param:o})=>`Numeric value ${i} passed to ${o} param will be interpreted as ${i} seconds. If this is intentional use "${i}s" to silence this warning.`,105:({e:i})=>["chart rendering failed",i],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: ${bm}/theming-migration/`,107:({key:i,value:o})=>`Invalid value for theme param ${i} - ${o}`,108:({e:i})=>["chart update failed",i],109:({aggFuncOrString:i})=>`unrecognised aggregation function ${i}`,110:()=>"groupHideOpenParents only works when specifying specific columns for colDef.showRowGroup",111:()=>"Invalid selection state. When `groupSelectsChildren` 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:i})=>`Could not find component with name of ${i}. Is it in Vue.components?`,115:()=>"The provided selection state should be an object.",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:i})=>`Unable to update chart. No active chart found with ID: ${i}.`,126:()=>"unable to restore chart as no chart model is provided",127:({allRange:i})=>`unable to create chart as ${i?"there are no columns in the grid":"no range is selected"}.`,128:({feature:i})=>`${i} is only available if using 'multiRow' selection mode.`,129:({feature:i,rowModel:o})=>`${i} is only available if using 'clientSide' or 'serverSide' rowModelType, you are using ${o}.`,130:()=>'cannot multi select unless selection mode is "multiRow"',131:()=>"cannot range select while selecting multiple rows",132:()=>"Row selection features are not available unless `rowSelection` is enabled.",133:({iconName:i})=>`icon '${i}' function should return back a string or a dom object`,134:({iconName:i})=>`Did not find icon '${i}'`,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:i,currentChartType:o})=>`Unable to update chart as a '${i}' update type is not permitted on a ${o}.`,138:({chartType:i})=>`invalid chart type supplied: ${i}`,139:({customThemeName:i})=>`a custom chart theme with the name ${i} has been supplied but not added to the 'chartThemes' list`,140:({name:i})=>`no stock theme exists with the name '${i}' 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:i})=>`'${i}' is not a valid Chart Tool Panel name`,144:({type:i})=>`Invalid charts data panel group name supplied: '${i}'`,145:({group:i})=>`As of v32, only one charts customize panel group can be expanded at a time. '${i}' will not be expanded.`,146:({comp:i})=>`Unable to instantiate component '${i}' as its module hasn't been loaded. Add 'ValidationModule' to see which module is required.`,147:({group:i})=>`Invalid charts customize panel group name supplied: '${i}'`,148:({group:i})=>`invalid chartGroupsDef config '${i}'`,149:({group:i,chartType:o})=>`invalid chartGroupsDef config '${i}.${o}'`,150:()=>"'seriesChartTypes' are required when the 'customCombo' chart type is specified.",151:({chartType:i})=>`invalid chartType '${i}' supplied in 'seriesChartTypes', converting to 'line' instead.`,152:({colId:i})=>`no 'seriesChartType' found for colId = '${i}', defaulting to 'line'.`,153:({chartDataType:i})=>`unexpected chartDataType value '${i}' supplied, instead use 'category', 'series' or 'excluded'`,154:({colId:i})=>`cross filtering requires a 'agSetColumnFilter' or 'agMultiColumnFilter' to be defined on the column with id: ${i}`,155:({option:i})=>`'${i}' is not a valid Chart Toolbar Option`,156:({panel:i})=>`Invalid panel in chartToolPanelsDef.panels: '${i}'`,157:({unrecognisedGroupIds:i})=>["unable to find group(s) for supplied groupIds:",i],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:i,dataType:o})=>`Unrecognized data type for excel export [${i}.dataType=${o}]`,163:({featureName:i})=>`Excel table export does not work with ${i}. The exported Excel file will not contain any Excel tables.
 Please turn off ${i} 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:i})=>["unable to find groups for these supplied groupIds:",i],167:({unrecognisedColIds:i})=>["unable to find columns for these supplied colIds:",i],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:i})=>`invalid cellRendererParams.refreshStrategy = ${i} 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:i})=>`invalid chartGroupsDef config '${i}'`,174:({group:i,chartType:o})=>`invalid chartGroupsDef config '${i}.${o}'`,175:({menuTabName:i,itemsToConsider:o})=>[`Trying to render an invalid menu item '${i}'. Check that your 'menuTabs' contains one of `,o],176:({key:i})=>`unknown menu item type ${i}`,177:()=>"valid values for fillHandleDirection are 'x', 'y' and 'xy'. Default to 'xy'.",178:({colId:i})=>`column ${i} 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:i,childNodeData:o})=>["duplicate group keys for row data, keys should be unique",[i,o]],185:({data:i})=>["getDataPath() should not return an empty path",[i]],186:({rowId:i,rowData:o,duplicateRowsData:C})=>["duplicate group keys for row data, keys should be unique",i,o,...C],187:({rowId:i,firstData:o,secondData:C})=>[`Duplicate node id ${i}. Row IDs are provided via the getRowId() callback. Please modify the getRowId() callback code to provide unique row id values.`,"first instance",o,"second instance",C],188:()=>"getRowId callback must be provided for Server Side Row Model selection to work correctly.",189:({startRow:i})=>`invalid value ${i} for startRow, the value should be >= 0`,190:({rowGroupId:i,data:o})=>["null and undefined values are not allowed for server side row model keys",i?`column = ${i}`:"","data is ",o],191:()=>"cannot multi select unless selection mode is 'multiRow'",192:()=>"cannot use range selection when multi selecting rows",193:()=>"cannot multi select unless selection mode is 'multiRow'",194:({method:i})=>`calling gridApi.${i}() is only possible when using rowModelType=\`clientSide\`.`,195:({justCurrentPage:i})=>`selecting just ${i?"current page":"filtered"} only works when gridOptions.rowModelType='clientSide'`,196:({key:i})=>`Provided ids must be of string type. Invalid id provided: ${i}`,197:()=>"`toggledNodes` must be an array of string ids.",198:()=>"cannot multi select unless selection mode is 'multiRow'",199:()=>"getSelectedNodes and getSelectedRows functions cannot be used with select all functionality with the server-side row model. Use `api.getServerSideSelectionState()` instead.",200:GM,201:({rowModelType:i})=>`Could not find row model for rowModelType = ${i}`,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:i})=>`Unable to display rows as duplicate row ids (${i}) 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 ${bm}/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:i})=>`unable to lookup Tool Panel as invalid key supplied: ${i}`,215:({key:i,defaultByKey:o})=>`the key ${i} is not a valid key for specifying a tool panel, valid keys are: ${Object.keys(o).join(",")}`,216:({name:i})=>`Missing component for '${i}'`,217:({invalidColIds:i})=>["unable to find grid columns for the supplied colDef(s):",i],218:({property:i,defaultOffset:o})=>`${i} must be a number, the value you provided is not a valid number. Using the default of ${o}px.`,219:({property:i})=>`Property ${i} does not exist on the target object.`,220:({lineDash:i})=>`'${i}' 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:i})=>`unrecognised menu item ${i}`,229:({index:i})=>["invalid row index for ensureIndexVisible: ",i],230:()=>"detailCellRendererParams.template is not supported by AG Grid React. To change the template, provide a Custom Detail Cell Renderer. See https://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:i})=>`Framework component is missing the method ${i}()`,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:i})=>`theme grid option must be a Theming API theme object or the string "legacy", received: ${i}`,241:()=>"cannot select multiple rows when rowSelection.mode is set to 'singleRow'",242:()=>"cannot select multiple rows when using rangeSelect",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. 
Please rebuild the selection state and reapply it.`,248:()=>"SetFloatingFilter expects SetFilter as its parent",249:()=>"Must supply a Value Formatter in Set Filter params when using a Key Creator",250:()=>"Must supply a Key Creator in Set Filter params when `treeList = true` on a group column, and Tree Data or Row Grouping is enabled.",251:({chartType:i})=>`AG Grid: Unable to create chart as an invalid chartType = '${i}' was supplied.`,252:()=>`cannot get grid to draw rows when it is in the middle of drawing rows. 
Your code probably called a grid API method while the grid was in the render stage. 
To overcome this, put the API call into a timeout, e.g. instead of api.redrawRows(), call setTimeout(function() { api.redrawRows(); }, 0). 
To see what part of your code that caused the refresh check this stacktrace.`,253:({version:i})=>["Illegal version string: ",i],254:()=>"Cannot create chart: no chart themes available.",255:({point:i})=>`Lone surrogate U+${i.toString(16).toUpperCase()} is not a scalar value`,256:()=>"Unable to initialise. See validation error, or load ValidationModule if missing.",257:()=>jM("IntegratedChartsModule"),258:()=>jM("SparklinesModule"),259:({part:i})=>`the argument to theme.withPart must be a Theming API part object, received: ${i}`,260:({propName:i,compName:o,gridScoped:C,gridId:P,rowModelType:B})=>GM({reasonOrId:`AG Grid '${i}' component: ${o}`,moduleName:md[o],gridId:P,gridScoped:C,rowModelType:B}),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'};function uf(i,o){let C=Ag[i];if(!C)return[`Missing error text for error id ${i}!`];let P=C(o),W=`
See ${Qf(i,o)}`;return Array.isArray(P)?P.concat(W):[P,W]}var Vv={1:"Charting Aggregation",2:"pivotResultFields",3:"setTooltip"},o1=()=>({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."}}),Fp=()=>({aggFunc:{module:"SharedAggregation"},autoHeight:{supportedRowModels:["clientSide","serverSide"],module:"RowAutoHeight"},cellClass:{module:"CellStyle"},cellClassRules:{module:"CellStyle"},cellEditor:({cellEditor:i,editable:o})=>{if(!o)return null;if(typeof i=="string"){let C=md[i];if(C)return{module:C}}return{module:"CustomEditor"}},cellRenderer:({cellRenderer:i})=>{if(typeof i!="string")return null;let o=md[i];return o?{module:o}:null},cellRendererParams:{validate:i=>(i.rowGroup!=null||i.rowGroupIndex!=null||i.cellRenderer==="agGroupCellRenderer")&&"checkbox"in i.cellRendererParams?'Since v33.0, `cellRendererParams.checkbox` has been deprecated. Use `rowSelection.checkboxLocation = "autoGroupColumn"` instead.':null},cellStyle:{module:"CellStyle"},children:()=>Yd(),columnChooserParams:{module:"ColumnMenu"},contextMenuItems:{module:"ContextMenu"},dndSource:{module:"DragAndDrop"},dndSourceOnRowDrag:{module:"DragAndDrop"},editable:({editable:i,cellEditor:o})=>i&&!o?{module:"TextEditor"}:null,enableCellChangeFlash:{module:"HighlightChanges"},enablePivot:{module:"SharedPivot"},enableRowGroup:{module:"SharedRowGrouping"},enableValue:{module:"SharedAggregation"},filter:({filter:i})=>{if(i&&typeof i!="string"&&typeof i!="boolean")return{module:"CustomFilter"};if(typeof i=="string"){let o=md[i];if(o)return{module:o}}return{module:"ColumnFilter"}},floatingFilter:{module:"ColumnFilter"},headerCheckboxSelection:{supportedRowModels:["clientSide","serverSide"],validate:(i,{rowSelection:o})=>o==="multiple"?null:"headerCheckboxSelection is only supported with rowSelection=multiple"},headerCheckboxSelectionCurrentPageOnly:{supportedRowModels:["clientSide"],validate:(i,{rowSelection:o})=>o==="multiple"?null:"headerCheckboxSelectionCurrentPageOnly is only supported with rowSelection=multiple"},headerCheckboxSelectionFilteredOnly:{supportedRowModels:["clientSide"],validate:(i,{rowSelection:o})=>o==="multiple"?null:"headerCheckboxSelectionFilteredOnly is only supported with rowSelection=multiple"},headerTooltip:{module:"Tooltip"},headerValueGetter:{validate:i=>{let o=i.headerValueGetter;return typeof o=="function"||typeof o=="string"?null:"headerValueGetter must be a function or a valid string expression"}},icons:{validate:({icons:i})=>{if(i){if(i.smallDown)return ar(262);if(i.smallLeft)return ar(263);if(i.smallRight)return ar(264)}return null}},mainMenuItems:{module:"ColumnMenu"},menuTabs:i=>{var C;let o=["columnsMenuTab","generalMenuTab"];return(C=i.menuTabs)!=null&&C.some(P=>o.includes(P))?{module:"ColumnMenu"}:null},pivot:{module:"SharedPivot"},pivotIndex:{module:"SharedPivot"},rowDrag:{module:"RowDrag"},rowGroup:{module:"SharedRowGrouping"},rowGroupIndex:{module:"SharedRowGrouping"},sortingOrder:{validate:i=>{let o=i.sortingOrder;if(Array.isArray(o)&&o.length>0){let C=o.filter(P=>!Nb.includes(P));if(C.length>0)return`sortingOrder must be an array with elements from [${Nb.map(dl).join()}], currently it includes [${C.map(dl).join()}]`}else if(!Array.isArray(o)||o.length<=0)return`sortingOrder must be an array with at least one element, currently it's ${o}`;return null}},tooltipField:{module:"Tooltip"},tooltipValueGetter:{module:"Tooltip"},type:{validate:i=>{let o=i.type;return o instanceof Array?o.some(P=>typeof P!="string")?"if colDef.type is supplied an array it should be of type 'string[]'":null:typeof o=="string"?null:"colDef.type should be of type 'string' | 'string[]'"}},rowSpan:{validate:(i,{suppressRowTransform:o})=>o?null:"colDef.rowSpan requires suppressRowTransform to be enabled."}}),r1={headerName:void 0,columnGroupShow: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,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},Dg=()=>Object.keys(r1),Yd=()=>({objectName:"colDef",allProperties:Dg(),docsUrl:"column-properties/",deprecations:o1(),validations:Fp()}),nc=()=>({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."}});function Bh(i,o,C,P=Number.MAX_VALUE){return typeof o=="number"||o==null?o==null||o>=C&&o<=P?null:P===Number.MAX_VALUE?`${i}: value should be greater than or equal to ${C}`:`${i}: value should be between ${C} and ${P}`:`${i}: value should be a number`}var s1=()=>{let i={alignedGrids:{module:"AlignedGrids"},allowContextMenuWithControlKey:{module:"ContextMenu"},autoSizePadding:{validate({autoSizePadding:C}){return Bh("autoSizePadding",C,0)}},autoSizeStrategy:{module:"ColumnAutoSize"},cacheBlockSize:{supportedRowModels:["serverSide","infinite"],validate({cacheBlockSize:C}){return Bh("cacheBlockSize",C,1)}},cacheOverflowSize:{validate({cacheOverflowSize:C}){return Bh("cacheOverflowSize",C,1)}},cellSelection:{module:"CellSelection"},columnHoverHighlight:{module:"ColumnHover"},datasource:{supportedRowModels:["infinite"],module:"InfiniteRowModel"},doesExternalFilterPass:{module:"ExternalFilter"},domLayout:{validate:C=>{let P=C.domLayout,B=["autoHeight","normal","print"];return P&&!B.includes(P)?`domLayout must be one of [${B.join()}], currently it's ${P}`:null}},editType:{module:"EditCore"},enableAdvancedFilter:{module:"AdvancedFilter"},enableCharts:{module:"IntegratedCharts"},enableFillHandle:{dependencies:{enableRangeSelection:{required:[!0]}}},enableRangeHandle:{dependencies:{enableRangeSelection:{required:[!0]}}},enableRangeSelection:{module:"CellSelection",dependencies:{rowDragEntireRow:{required:[!1,void 0]}}},getContextMenuItems:{module:"ContextMenu"},getLocaleText:{module:"Locale"},getMainMenuItems:{module:"ColumnMenu"},getRowClass:{module:"RowStyle"},getRowStyle:{module:"RowStyle"},grandTotalRow:{module:"SharedRowGrouping"},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:C})=>{if(C){if(C.smallDown)return ar(262);if(C.smallLeft)return ar(263);if(C.smallRight)return ar(264)}return null}},infiniteInitialRowCount:{validate({infiniteInitialRowCount:C}){return Bh("infiniteInitialRowCount",C,1)}},initialGroupOrderComparator:{supportedRowModels:["clientSide"]},initialState:{module:"GridState"},isExternalFilterPresent:{module:"ExternalFilter"},keepDetailRowsCount:{validate({keepDetailRowsCount:C}){return Bh("keepDetailRowsCount",C,1)}},localeText:{module:"Locale"},masterDetail:{module:"SharedMasterDetail"},pagination:{module:"Pagination"},paginationPageSize:{validate({paginationPageSize:C}){return Bh("paginationPageSize",C,1)}},paginationPageSizeSelector:{validate:C=>{let P=C.paginationPageSizeSelector;return typeof P=="boolean"||P==null||P.length?null:`'paginationPageSizeSelector' cannot be an empty array.
                    If you want to hide the page size selector, set paginationPageSizeSelector to false.`}},pinnedTopRowData:{module:"PinnedRow"},pinnedBottomRowData:{module:"PinnedRow"},pivotMode:{dependencies:{treeData:{required:[!1,void 0],reason:"Pivot Mode is not supported with Tree Data."}},module:"SharedPivot"},pivotPanelShow:{module:"RowGroupingPanel"},quickFilterText:{supportedRowModels:["clientSide"],module:"QuickFilter"},rowBuffer:{validate({rowBuffer:C}){return Bh("rowBuffer",C,0)}},rowClass:{validate:C=>typeof C.rowClass=="function"?"rowClass should not be a function, please use getRowClass instead":null,module:"RowStyle"},rowClassRules:{module:"RowStyle"},rowData:{supportedRowModels:["clientSide"],module:"ClientSideRowModel"},rowDragManaged:{supportedRowModels:["clientSide"],dependencies:{treeData:{required:[!1,void 0]},pagination:{required:[!1,void 0]}},module:"RowDrag"},rowGroupPanelShow:{module:"RowGroupingPanel"},rowSelection:{validate({rowSelection:C}){return C&&typeof C=="string"?'As of version 32.2.1, using `rowSelection` with the values "single" or "multiple" has been deprecated. Use the object value instead.':C&&typeof C!="object"?"Expected `RowSelectionOptions` object for the `rowSelection` property.":C&&C.mode!=="multiRow"&&C.mode!=="singleRow"?`Selection mode "${C.mode}" is invalid. Use one of 'singleRow' or 'multiRow'.`:null},module:"SharedRowSelection"},rowStyle:{validate:C=>{let P=C.rowStyle;return P&&typeof P=="function"?"rowStyle should be an object of key/value styles, not be a function, use getRowStyle() instead":null},module:"RowStyle"},serverSideDatasource:{supportedRowModels:["serverSide"],module:"ServerSideRowModel"},serverSideInitialRowCount:{supportedRowModels:["serverSide"],validate({serverSideInitialRowCount:C}){return Bh("serverSideInitialRowCount",C,1)}},serverSideOnlyRefreshFilteredGroups:{supportedRowModels:["serverSide"]},serverSideSortAllLevels:{supportedRowModels:["serverSide"]},sideBar:{module:"SideBar"},sortingOrder:{validate:C=>{let P=C.sortingOrder;if(Array.isArray(P)&&P.length>0){let B=P.filter(W=>!Nb.includes(W));if(B.length>0)return`sortingOrder must be an array with elements from [${Nb.map(dl).join()}], currently it includes [${B.map(dl).join()}]`}else if(!Array.isArray(P)||P.length<=0)return`sortingOrder must be an array with at least one element, currently it's ${P}`;return null}},statusBar:{module:"StatusBar"},tooltipHideDelay:{validate:C=>C.tooltipHideDelay&&C.tooltipHideDelay<0?"tooltipHideDelay should not be lower than 0":null},tooltipShowDelay:{validate:C=>C.tooltipShowDelay&&C.tooltipShowDelay<0?"tooltipShowDelay should not be lower than 0":null},treeData:{supportedRowModels:["clientSide","serverSide"],module:"SharedTreeData",validate:C=>{var B;let P=(B=C.rowModelType)!=null?B:"clientSide";switch(P){case"clientSide":{let W=`treeData requires 'getDataPath' in the ${P} row model.`;return C.treeDataChildrenField||C.getDataPath?null:W}case"serverSide":{let W=`treeData requires 'isServerSideGroup' and 'getServerSideGroupKey' in the ${P} row model.`;return C.isServerSideGroup&&C.getServerSideGroupKey?null:W}}return null}},treeDataChildrenField:{module:"SharedTreeData"},undoRedoCellEditing:{module:"UndoRedoEdit"},valueCache:{module:"ValueCache"},viewportDatasource:{supportedRowModels:["viewport"],module:"ViewportRowModel"},viewportRowModelBufferSize:{validate({viewportRowModelBufferSize:C}){return Bh("viewportRowModelBufferSize",C,0)}},viewportRowModelPageSize:{validate({viewportRowModelPageSize:C}){return Bh("viewportRowModelPageSize",C,1)}},rowDragEntireRow:{dependencies:{cellSelection:{required:[void 0]}}}},o={};return fS.forEach(C=>{o[C]={expectedType:"boolean"}}),Gb.forEach(C=>{o[C]={expectedType:"number"}}),Ko(o,i),o},MT=()=>({objectName:"gridOptions",allProperties:[...FM,...LM.map(i=>un(i))],propertyExceptions:["api","treeDataChildrenField"],docsUrl:"grid-options/",deprecations:nc(),validations:s1()}),VM={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,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},kT={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",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",groupContracted:"GroupCellRenderer",groupExpanded:"GroupCellRenderer",setFilterGroupClosed:"SetFilter",setFilterGroupOpen:"SetFilter",setFilterGroupIndeterminate:"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"},AT=new Set(["colorPicker","smallUp","checkboxChecked","checkboxIndeterminate","checkboxUnchecked","radioButtonOn","radioButtonOff","smallDown","smallLeft","smallRight"]),DT={pinSubMenu:"PinnedColumn",pinLeft:"PinnedColumn",pinRight:"PinnedColumn",clearPinned:"PinnedColumn",valueAggSubMenu:"SharedAggregation",autoSizeThis:"ColumnAutoSize",autoSizeAll:"ColumnAutoSize",rowGroup:"SharedRowGrouping",rowUnGroup:"SharedRowGrouping",resetColumns:"CommunityCore",expandAll:["ClientSideRowModelHierarchy","ServerSideRowModel"],contractAll:["ClientSideRowModelHierarchy","ServerSideRowModel"],copy:"Clipboard",copyWithHeaders:"Clipboard",copyWithGroupHeaders:"Clipboard",cut:"Clipboard",paste:"Clipboard",export:["CsvExport","ExcelExport"],csvExport:"CsvExport",excelExport:"ExcelExport",separator:"CommunityCore",pivotChart:"IntegratedCharts",chartRange:"IntegratedCharts",columnFilter:"ColumnFilter",columnChooser:"ColumnMenu",sortAscending:"Sort",sortDescending:"Sort",sortUnSort:"Sort"},l1=class extends ei{constructor(){super(...arguments),this.beanName="validation"}wireBeans(i){this.gridOptions=i.gridOptions,Ny(this)}postConstruct(){this.processGridOptions(this.gridOptions)}warnOnInitialPropertyUpdate(i,o){i==="api"&&NM[o]&&pi(22,{key:o})}processGridOptions(i){this.processOptions(i,MT())}validateApiFunction(i,o){return zM(i,o,this.beans)}missingUserComponent(i,o,C,P){let B=md[o];B?this.gos.assertModuleRegistered(B,`AG Grid '${i}' component: ${o}`):pi(101,{propertyName:i,componentName:o,agGridDefaults:C,jsComps:P})}checkRowEvents(i){c1.has(i)&&pi(10,{eventType:i})}validateIcon(i){if(AT.has(i)&&pi(43,{iconName:i}),VM[i])return;let o=kT[i];if(o){Ea(200,{reasonOrId:`icon '${i}'`,moduleName:o,gridScoped:No(),gridId:this.beans.context.getGridId(),rowModelType:this.gos.get("rowModelType"),additionalText:"Alternatively, use the CSS icon name directly."});return}pi(134,{iconName:i})}validateMenuItem(i){let o=DT[i];o&&this.gos.assertModuleRegistered(o,`menu item '${i}'`)}isProvidedUserComp(i){return!!md[i]}validateColDef(i,o,C){var P;(C||!((P=this.beans.dataTypeSvc)!=null&&P.isColPendingInference(o)))&&this.processOptions(i,Yd())}processOptions(i,o){let{validations:C,deprecations:P,allProperties:B,propertyExceptions:W,objectName:$,docsUrl:ie}=o;B&&this.gridOptions.suppressPropertyNamesCheck!==!0&&this.checkProperties(i,[...W!=null?W:[],...Object.keys(P)],B,$,ie);let ue=new Set,De=Be=>{let Qe=C[Be];if(Qe)if(typeof Qe=="function"){let st=Qe(i,this.gridOptions,this.beans);if(!st)return;if("objectName"in st){let Ct=i[Be];if(Array.isArray(Ct)){Ct.forEach(Ot=>{this.processOptions(Ot,st)});return}this.processOptions(i[Be],st);return}return st}else return Qe;else return};Object.keys(i).forEach(Be=>{var ai;let Qe=P[Be];if(Qe){let{message:Mi,version:qi}=Qe;ue.add(`As of v${qi}, ${String(Be)} is deprecated. ${Mi!=null?Mi:""}`)}let st=i[Be];if(st==null||st===!1)return;let Ct=De(Be);if(!Ct)return;let{module:Ot,dependencies:Pt,validate:Kt,supportedRowModels:ti,expectedType:Jt}=Ct;if(Jt){let Mi=typeof st;if(Mi!==Jt){ue.add(`${String(Be)} should be of type '${Jt}' but received '${Mi}' (${st}).`);return}}if(ti){let Mi=(ai=this.gridOptions.rowModelType)!=null?ai:"clientSide";if(!ti.includes(Mi)){ue.add(`${String(Be)} is not supported with the '${Mi}' row model. It is only valid with: ${ti.join(", ")}.`);return}}if(Ot){let Mi=Array.isArray(Ot)?Ot:[Ot],qi=!0;if(Mi.forEach(Fn=>{this.gos.assertModuleRegistered(Fn,String(Be))||(qi=!1)}),!qi)return}if(Pt){let Mi=this.checkForRequiredDependencies(Be,Pt,i);if(Mi){ue.add(Mi);return}}if(Kt){let Mi=Kt(i,this.gridOptions,this.beans);if(Mi){ue.add(Mi);return}}}),ue.size>0&&ue.forEach(Be=>{Jr(Be)})}checkForRequiredDependencies(i,o,C){let B=Object.entries(o).filter(([W,$])=>{let ie=C[W];return!$.required.includes(ie)});return B.length===0?null:B.map(([W,$])=>{var ie;return`'${String(i)}' requires '${W}' to be one of [${$.required.map(ue=>ue===null?"null":ue===void 0?"undefined":ue).join(", ")}]. ${(ie=$.reason)!=null?ie:""}`}).join(`
           `)}checkProperties(i,o,C,P,B){let W=["__ob__","__v_skip","__metadata__"],$=Hb(Object.getOwnPropertyNames(i),[...W,...o,...C],C);if(Object.entries($).forEach(([ie,ue])=>{let De=`invalid ${P} property '${ie}' did you mean any of these: ${ue.slice(0,8).join(", ")}.`;C.includes("context")&&(De+=`
If you are trying to annotate ${P} with application data, use the '${P}.context' property instead.`),Jr(De)}),Object.keys($).length>0&&B){let ie=this.beans.frameworkOverrides.getDocLink(B);Jr(`to see all the valid ${P} properties please check: ${ie}`)}}getConsoleMessage(i,o){return uf(i,o)}};function Hb(i,o,C){let P={},B=i.filter(W=>!o.some($=>$===W));return B.length>0&&B.forEach(W=>P[W]=pd({inputValue:W,allSuggestions:C}).values),P}var c1=new Set(["firstChildChanged","lastChildChanged","childIndexChanged"]),CS={moduleName:"Validation",version:yi,beans:[l1]};function Jo(i){i.sibling&&(i.sibling.childrenAfterFilter=i.childrenAfterFilter)}var jo=class extends ei{constructor(){super(...arguments),this.beanName="filterStage",this.refreshProps=new Set(["excludeChildrenWhenTreeDataFiltering"]),this.step="filter"}wireBeans(i){this.filterManager=i.filterManager}execute(i){let{changedPath:o}=i;this.filter(o)}filter(i){var C;let o=!!((C=this.filterManager)!=null&&C.isChildFilterPresent());this.filterNodes(o,i)}filterNodes(i,o){let C=(P,B)=>{P.hasChildren()&&i&&!B?P.childrenAfterFilter=P.childrenAfterGroup.filter(W=>{let $=W.childrenAfterFilter&&W.childrenAfterFilter.length>0,ie=W.data&&this.filterManager.doesRowPassFilter({rowNode:W});return $||ie}):P.childrenAfterFilter=P.childrenAfterGroup,Jo(P)};if(this.doingTreeDataFiltering()){let P=(W,$)=>{if(W.childrenAfterGroup)for(let ie=0;ie<W.childrenAfterGroup.length;ie++){let ue=W.childrenAfterGroup[ie],De=$||this.filterManager.doesRowPassFilter({rowNode:ue});ue.childrenAfterGroup?P(W.childrenAfterGroup[ie],De):C(ue,De)}C(W,$)},B=W=>P(W,!1);o.executeFromRootNode(B)}else{let P=B=>C(B,!1);o.forEachChangedNodeDepthFirst(P,!0)}}doingTreeDataFiltering(){return this.gos.get("treeData")&&!this.gos.get("excludeChildrenWhenTreeDataFiltering")}},HM=class extends oa{constructor(){super(...arguments),this.iconCreated=!1}setComp(i,o,C,P,B){this.comp=i;let W=Sh(this,this.beans.context,B);this.eButtonShowMainFilter=C,this.eFloatingFilterBody=P,this.setGui(o,W),this.setupActive(),this.setupWidth(W),this.setupLeft(W),this.setupHover(W),this.setupFocus(W),this.setupAria(),this.setupFilterButton(),this.setupUserComp(),this.setupSyncWithFilter(W),this.setupUi(),W.addManagedElementListeners(this.eButtonShowMainFilter,{click:this.showParentFilter.bind(this)}),this.setupFilterChangedListener(W),W.addManagedListeners(this.column,{colDefChanged:()=>this.onColDefChanged(W)}),W.addDestroyFunc(()=>{this.eButtonShowMainFilter=null,this.eFloatingFilterBody=null,this.userCompDetails=null,this.clearComponent()})}resizeHeader(){}moveHeader(){}setupActive(){let i=this.column.getColDef(),o=!!i.filter,C=!!i.floatingFilter;this.active=o&&C}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;let i=za("filter",this.beans,this.column);i&&(this.iconCreated=!0,this.eButtonShowMainFilter.appendChild(i))}setupFocus(i){i.createManagedBean(new Eh(this.eGui,{shouldStopEventPropagation:this.shouldStopEventPropagation.bind(this),onTabKeyDown:this.onTabKeyDown.bind(this),handleKeyDown:this.handleKeyDown.bind(this),onFocusIn:this.onFocusIn.bind(this)}))}setupAria(){let i=this.getLocaleTextFunc();G(this.eButtonShowMainFilter,i("ariaFilterMenuOpen","Open Filter Menu"))}onTabKeyDown(i){var $;let{beans:o}=this;if(Fa(o)===this.eGui)return;let B=mi(o,this.eGui,null,i.shiftKey);if(B){($=o.headerNavigation)==null||$.scrollToColumn(this.column),i.preventDefault(),B.focus();return}let W=this.findNextColumnWithFloatingFilter(i.shiftKey);W&&o.focusSvc.focusHeaderPosition({headerPosition:{headerRowIndex:this.rowCtrl.rowIndex,column:W},event:i})&&i.preventDefault()}findNextColumnWithFloatingFilter(i){let o=this.beans.visibleCols,C=this.column;do if(C=i?o.getColBefore(C):o.getColAfter(C),!C)break;while(!C.getColDef().filter||!C.getColDef().floatingFilter);return C}handleKeyDown(i){super.handleKeyDown(i);let o=this.getWrapperHasFocus();switch(i.key){case Qt.UP:case Qt.DOWN:o||i.preventDefault();case Qt.LEFT:case Qt.RIGHT:if(o)return;i.stopPropagation();case Qt.ENTER:o&&Cu(this.eGui)&&i.preventDefault();break;case Qt.ESCAPE:o||this.eGui.focus()}}onFocusIn(i){if(this.eGui.contains(i.relatedTarget))return;let C=!!i.relatedTarget&&!i.relatedTarget.classList.contains("ag-floating-filter"),P=!!i.relatedTarget&&uo(i.relatedTarget,"ag-floating-filter");if(C&&P&&i.target===this.eGui){let B=this.lastFocusEvent,W=!!(B&&B.key===Qt.TAB);if(B&&W){let $=B.shiftKey;Cu(this.eGui,$)}}this.focusThis()}setupHover(i){var o;(o=this.beans.colHover)==null||o.addHeaderFilterColumnHoverListener(i,this.comp,this.column,this.eGui)}setupLeft(i){let o=new ub(this.column,this.eGui,this.beans);i.createManagedBean(o)}setupFilterButton(){var i;this.suppressFilterButton=!((i=this.beans.menuSvc)!=null&&i.isFloatingFilterButtonEnabled(this.column)),this.highlightFilterButtonWhenActive=!mr(this.gos)}setupUserComp(){var o;if(!this.active)return;let i=(o=this.beans.filterManager)==null?void 0:o.getFloatingFilterCompDetails(this.column,()=>this.showParentFilter());i&&this.setCompDetails(i)}setCompDetails(i){this.userCompDetails=i,this.comp.setCompDetails(i)}showParentFilter(){var o;let i=this.suppressFilterButton?this.eFloatingFilterBody:this.eButtonShowMainFilter;(o=this.beans.menuSvc)==null||o.showFilterMenu({column:this.column,buttonElement:i,containerType:"floatingFilter",positionBy:"button"})}setupSyncWithFilter(i){if(!this.active)return;let{filterManager:o}=this.beans,C=P=>{if((P==null?void 0:P.source)==="filterDestroyed"&&!this.isAlive())return;let B=this.comp.getFloatingFilterComp();B&&B.then(W=>{var $;if(W){let ie=o==null?void 0:o.getCurrentFloatingFilterParentModel(this.column),ue=P?et(pe({},P),{columns:($=P.columns)!=null?$:[],source:P.source==="api"?"api":"columnFilter"}):null;W.onParentModelChanged(ie,ue)}})};[this.destroySyncListener]=i.addManagedListeners(this.column,{filterChanged:C}),o!=null&&o.isFilterActive(this.column)&&C(null)}setupWidth(i){let o=()=>{let C=`${this.column.getActualWidth()}px`;this.comp.setWidth(C)};i.addManagedListeners(this.column,{widthChanged:o}),o()}setupFilterChangedListener(i){this.active&&([this.destroyFilterChangedListener]=i.addManagedListeners(this.column,{filterChanged:this.updateFilterButton.bind(this)}),this.updateFilterButton())}updateFilterButton(){var i;if(!this.suppressFilterButton&&this.comp){let o=!!((i=this.beans.filterManager)!=null&&i.isFilterAllowed(this.column));this.comp.setButtonWrapperDisplayed(o),this.highlightFilterButtonWhenActive&&o&&this.eButtonShowMainFilter.classList.toggle("ag-filter-active",this.column.isFilterActive())}}onColDefChanged(i){var W;let o=this.active;this.setupActive();let C=!o&&this.active;o&&!this.active&&(this.destroySyncListener(),this.destroyFilterChangedListener());let P=this.active?(W=this.beans.filterManager)==null?void 0:W.getFloatingFilterCompDetails(this.column,()=>this.showParentFilter()):null,B=this.comp.getFloatingFilterComp();!B||!P?this.updateCompDetails(i,P,C):B.then($=>{var ie,ue;!$||(ue=this.beans.filterManager)!=null&&ue.areFilterCompsDifferent((ie=this.userCompDetails)!=null?ie:null,P)?this.updateCompDetails(i,P,C):this.updateFloatingFilterParams(P)})}updateCompDetails(i,o,C){this.isAlive()&&(this.setCompDetails(o),this.setupFilterButton(),this.setupUi(),C&&(this.setupSyncWithFilter(i),this.setupFilterChangedListener(i)))}updateFloatingFilterParams(i){var C;if(!i)return;let o=i.params;(C=this.comp.getFloatingFilterComp())==null||C.then(P=>{P!=null&&P.refresh&&typeof P.refresh=="function"&&P.refresh(o)})}addResizeAndMoveKeyboardListeners(){}destroy(){super.destroy(),this.destroySyncListener=null,this.destroyFilterChangedListener=null}};function fd(i,o){var P;let C=i.colModel.getCol(o);if(!C){Ea(12,{colKey:o});return}(P=i.menuSvc)==null||P.showColumnMenu({column:C,positionBy:"auto"})}function vd(i){var o;(o=i.menuSvc)==null||o.hidePopupMenu()}var Ms={moduleName:"SharedMenu",version:yi,beans:[Er],apiFunctions:{showColumnMenu:fd,hidePopupMenu:vd}},Wb=0,Ub=200,SS=class extends ei{constructor(){super(...arguments),this.beanName="popupSvc",this.popupList=[]}postConstruct(){this.beans.ctrlsSvc.whenReady(this,i=>{this.gridCtrl=i.gridCtrl}),this.addManagedEventListeners({gridStylesChanged:this.handleThemeChange.bind(this)})}getPopupParent(){let i=this.gos.get("popupParent");return i||this.gridCtrl.getGui()}positionPopupForMenu(i){let{eventSource:o,ePopup:C}=i,P=this.getPopupIndex(C);if(P!==-1){let st=this.popupList[P];st.alignedToElement=o}let B=o.getBoundingClientRect(),W=this.getParentRect(),$=this.keepXYWithinBounds(C,B.top-W.top,0),ie=C.clientWidth>0?C.clientWidth:200;C.style.minWidth=`${ie}px`;let De=W.right-W.left-ie,_e;this.gos.get("enableRtl")?(_e=Qe(),_e<0&&(_e=Be(),this.setAlignedStyles(C,"left")),_e>De&&(_e=0,this.setAlignedStyles(C,"right"))):(_e=Be(),_e>De&&(_e=Qe(),this.setAlignedStyles(C,"right")),_e<0&&(_e=0,this.setAlignedStyles(C,"left"))),C.style.left=`${_e}px`,C.style.top=`${$}px`;function Be(){return B.right-W.left-2}function Qe(){return B.left-W.left-ie}}positionPopupUnderMouseEvent(i){let{ePopup:o,nudgeX:C,nudgeY:P,skipObserver:B}=i;this.positionPopup({ePopup:o,nudgeX:C,nudgeY:P,keepWithinBounds:!0,skipObserver:B,updatePosition:()=>this.calculatePointerAlign(i.mouseEvent),postProcessCallback:()=>this.callPostProcessPopup(i.type,i.ePopup,null,i.mouseEvent,i.column,i.rowNode)})}calculatePointerAlign(i){let o=this.getParentRect();return{x:i.clientX-o.left,y:i.clientY-o.top}}positionPopupByComponent(i){let{ePopup:o,nudgeX:C,nudgeY:P,keepWithinBounds:B,eventSource:W,alignSide:$="left",position:ie="over",column:ue,rowNode:De,type:_e}=i,Be=W.getBoundingClientRect(),Qe=this.getParentRect(),st=this.getPopupIndex(o);if(st!==-1){let Ot=this.popupList[st];Ot.alignedToElement=W}let Ct=()=>{let Ot=Be.left-Qe.left;$==="right"&&(Ot-=o.offsetWidth-Be.width);let Pt;return ie==="over"?(Pt=Be.top-Qe.top,this.setAlignedStyles(o,"over")):(this.setAlignedStyles(o,"under"),this.shouldRenderUnderOrAbove(o,Be,Qe,i.nudgeY||0)==="under"?Pt=Be.top-Qe.top+Be.height:Pt=Be.top-o.offsetHeight-(P||0)*2-Qe.top),{x:Ot,y:Pt}};this.positionPopup({ePopup:o,nudgeX:C,nudgeY:P,keepWithinBounds:B,updatePosition:Ct,postProcessCallback:()=>this.callPostProcessPopup(_e,o,W,null,ue,De)})}shouldRenderUnderOrAbove(i,o,C,P){let B=C.bottom-o.bottom,W=o.top-C.top,$=i.offsetHeight+P;return B>$?"under":W>$||W>B?"above":"under"}setAlignedStyles(i,o){let C=this.getPopupIndex(i);if(C===-1)return;let P=this.popupList[C],{alignedToElement:B}=P;!B||(["right","left","over","above","under"].forEach($=>{B.classList.remove(`ag-has-popup-positioned-${$}`),i.classList.remove(`ag-popup-positioned-${$}`)}),!o)||(B.classList.add(`ag-has-popup-positioned-${o}`),i.classList.add(`ag-popup-positioned-${o}`))}callPostProcessPopup(i,o,C,P,B,W){let $=this.gos.getCallback("postProcessPopup");$&&$({column:B,rowNode:W,ePopup:o,type:i,eventSource:C,mouseEvent:P})}positionPopup(i){let{ePopup:o,keepWithinBounds:C,nudgeX:P,nudgeY:B,skipObserver:W,updatePosition:$}=i,ie={width:0,height:0},ue=(De=!1)=>{let{x:_e,y:Be}=$();De&&o.clientWidth===ie.width&&o.clientHeight===ie.height||(ie.width=o.clientWidth,ie.height=o.clientHeight,P&&(_e+=P),B&&(Be+=B),C&&(_e=this.keepXYWithinBounds(o,_e,1),Be=this.keepXYWithinBounds(o,Be,0)),o.style.left=`${_e}px`,o.style.top=`${Be}px`,i.postProcessCallback&&i.postProcessCallback())};if(ue(),!W){let De=Qr(this.beans,o,()=>ue(!0));setTimeout(()=>De(),Ub)}}getActivePopups(){return this.popupList.map(i=>i.element)}getParentRect(){let i=Ao(this.beans),o=this.getPopupParent();return o===i.body?o=i.documentElement:getComputedStyle(o).position==="static"&&(o=o.offsetParent),bn(o)}keepXYWithinBounds(i,o,C){let P=C===0,B=P?"clientHeight":"clientWidth",W=P?"top":"left",$=P?"height":"width",ie=P?"scrollTop":"scrollLeft",ue=Ao(this.beans),De=ue.documentElement,_e=this.getPopupParent(),Be=i.getBoundingClientRect(),Qe=_e.getBoundingClientRect(),st=ue.documentElement.getBoundingClientRect(),Ct=_e===ue.body,Ot=Math.ceil(Be[$]),Kt=Ct?(P?$t:nn)(De)+De[ie]:_e[B];Ct&&(Kt-=Math.abs(st[W]-Qe[W]));let ti=Kt-Ot;return Math.min(Math.max(o,0),Math.abs(ti))}addPopup(i){let o=Ao(this.beans),{eChild:C,ariaLabel:P,alwaysOnTop:B,positionCallback:W,anchorToElement:$}=i;if(!o)return pi(122),{hideFunc:()=>{}};let ie=this.getPopupIndex(C);if(ie!==-1)return{hideFunc:this.popupList[ie].hideFunc};this.initialisePopupPosition(C);let ue=this.createPopupWrapper(C,P,!!B),De=this.addEventListenersToPopup(et(pe({},i),{wrapperEl:ue}));return W&&W(),this.addPopupToPopupList(C,ue,De,$),{hideFunc:De}}initialisePopupPosition(i){let C=this.getPopupParent().getBoundingClientRect();Ai(i.style.top)||(i.style.top=`${C.top*-1}px`),Ai(i.style.left)||(i.style.left=`${C.left*-1}px`)}createPopupWrapper(i,o,C){let P=this.getPopupParent(),B=document.createElement("div"),{environment:W,gos:$}=this.beans;return W.applyThemeClasses(B),B.classList.add("ag-popup"),i.classList.add($.get("enableRtl")?"ag-rtl":"ag-ltr","ag-popup-child"),i.hasAttribute("role")||k(i,"dialog"),G(i,o),B.appendChild(i),P.appendChild(B),C?this.setAlwaysOnTop(i,!0):this.bringPopupToFront(i),B}handleThemeChange(i){if(i.themeChanged){let o=this.beans.environment;for(let C of this.popupList)o.applyThemeClasses(C.wrapper)}}addEventListenersToPopup(i){let o=this.beans,C=Ao(o),P=this.getPopupParent(),{wrapperEl:B,eChild:W,closedCallback:$,afterGuiAttached:ie,closeOnEsc:ue,modal:De}=i,_e=!1,Be=Ot=>{if(!B.contains(Fa(o)))return;Ot.key===Qt.ESCAPE&&!Zi(Ot)&&Ct({keyboardEvent:Ot})},Qe=Ot=>Ct({mouseEvent:Ot}),st=Ot=>Ct({touchEvent:Ot}),Ct=(Ot={})=>{let{mouseEvent:Pt,touchEvent:Kt,keyboardEvent:ti,forceHide:Jt}=Ot;!Jt&&(this.isEventFromCurrentPopup({mouseEvent:Pt,touchEvent:Kt},W)||_e)||(_e=!0,P.removeChild(B),C.removeEventListener("keydown",Be),C.removeEventListener("mousedown",Qe),C.removeEventListener("touchstart",st),C.removeEventListener("contextmenu",Qe),this.eventSvc.removeEventListener("dragStarted",Qe),$&&$(Pt||Kt||ti),this.removePopupFromPopupList(W))};return ie&&ie({hidePopup:Ct}),window.setTimeout(()=>{ue&&C.addEventListener("keydown",Be),De&&(C.addEventListener("mousedown",Qe),this.eventSvc.addEventListener("dragStarted",Qe),C.addEventListener("touchstart",st),C.addEventListener("contextmenu",Qe))},0),Ct}addPopupToPopupList(i,o,C,P){this.popupList.push({element:i,wrapper:o,hideFunc:C,instanceId:Wb++,isAnchored:!!P}),P&&this.setPopupPositionRelatedToElement(i,P)}getPopupIndex(i){return this.popupList.findIndex(o=>o.element===i)}setPopupPositionRelatedToElement(i,o){let C=this.getPopupIndex(i);if(C===-1)return;let P=this.popupList[C];if(P.stopAnchoringPromise&&P.stopAnchoringPromise.then(W=>W&&W()),P.stopAnchoringPromise=void 0,P.isAnchored=!1,!o)return;let B=this.keepPopupPositionedRelativeTo({element:o,ePopup:i,hidePopup:P.hideFunc});return P.stopAnchoringPromise=B,P.isAnchored=!0,B}removePopupFromPopupList(i){this.setAlignedStyles(i,null),this.setPopupPositionRelatedToElement(i,null),this.popupList=this.popupList.filter(o=>o.element!==i)}keepPopupPositionedRelativeTo(i){let o=this.getPopupParent(),C=o.getBoundingClientRect(),{element:P,ePopup:B}=i,W=P.getBoundingClientRect(),$=Be=>parseInt(Be.substring(0,Be.length-1),10),ie=(Be,Qe)=>{let st=C[Be]-W[Be],Ct=$(B.style[Be]);return{initialDiff:st,lastDiff:st,initial:Ct,last:Ct,direction:Qe}},ue=ie("top",0),De=ie("left",1),_e=this.beans.frameworkOverrides;return new js(Be=>{_e.wrapIncoming(()=>{_e.setInterval(()=>{let Qe=o.getBoundingClientRect(),st=P.getBoundingClientRect();if(st.top==0&&st.left==0&&st.height==0&&st.width==0){i.hidePopup();return}let Ot=(Pt,Kt)=>{let ti=$(B.style[Kt]);Pt.last!==ti&&(Pt.initial=ti,Pt.last=ti);let Jt=Qe[Kt]-st[Kt];if(Jt!=Pt.lastDiff){let ai=this.keepXYWithinBounds(B,Pt.initial+Pt.initialDiff-Jt,Pt.direction);B.style[Kt]=`${ai}px`,Pt.last=ai}Pt.lastDiff=Jt};Ot(ue,"top"),Ot(De,"left")},200).then(Qe=>{Be(()=>{Qe!=null&&window.clearInterval(Qe)})})},"popupPositioning")})}hasAnchoredPopup(){return this.popupList.some(i=>i.isAnchored)}isEventFromCurrentPopup(i,o){let{mouseEvent:C,touchEvent:P}=i,B=C||P;if(!B)return!1;let W=this.getPopupIndex(o);if(W===-1)return!1;for(let $=W;$<this.popupList.length;$++){let ie=this.popupList[$];if(Vn(ie.element,B))return!0}return this.isElementWithinCustomPopup(B.target)}isElementWithinCustomPopup(i){let o=Ao(this.beans);for(;i&&i!==o.body;){if(i.classList.contains("ag-custom-component-popup")||i.parentElement===null)return!0;i=i.parentElement}return!1}getWrapper(i){for(;!i.classList.contains("ag-popup")&&i.parentElement;)i=i.parentElement;return i.classList.contains("ag-popup")?i:null}setAlwaysOnTop(i,o){let C=this.getWrapper(i);C&&(C.classList.toggle("ag-always-on-top",!!o),o&&this.bringPopupToFront(C))}bringPopupToFront(i){let o=this.getPopupParent(),C=Array.prototype.slice.call(o.querySelectorAll(".ag-popup")),P=C.length,B=this.getWrapper(i);if(!B||P<=1||!o.contains(i))return;let W=[],$=[];for(let Qe of C)Qe!==B&&(Qe.classList.contains("ag-always-on-top")?$.push(Qe):W.push(Qe));let ie=[],ue=$.length,Be=B.classList.contains("ag-always-on-top")||!ue?[...W,...$,B]:[...W,B,...$];for(let Qe=0;Qe<=P;Qe++){let st=Be[Qe];if(C[Qe]===Be[Qe]||st===B)continue;st.querySelectorAll("div").forEach(Ot=>{Ot.scrollTop!==0&&ie.push([Ot,Ot.scrollTop])}),Qe===0?o.insertAdjacentElement("afterbegin",st):Be[Qe-1].insertAdjacentElement("afterend",st)}for(;ie.length;){let Qe=ie.pop();Qe[0].scrollTop=Qe[1]}}},Eg={moduleName:"Popup",version:yi,beans:[SS]},Dl=".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%}.ag-floating-filter-input{align-items:center;display:flex;width:100%;>*{flex:1 1 auto}:where(.ag-input-field-input[type=date]){width:1px}}.ag-floating-filter-button{display:flex;flex:none}.ag-set-floating-filter-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{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:1px solid var(--menu-separator-color)}:where(.ag-filter-select) .ag-picker-field-wrapper{width:0}.ag-filter-condition-operator{height:17px}:where(.ag-ltr) .ag-filter-condition-operator-or{margin-left:calc(var(--ag-spacing)*2)}:where(.ag-rtl) .ag-filter-condition-operator-or{margin-right:calc(var(--ag-spacing)*2)}.ag-set-filter-select-all{padding-top:var(--ag-widget-container-vertical-padding)}.ag-filter-no-matches,.ag-set-filter-list{height:calc(var(--ag-list-item-height)*6)}.ag-filter-no-matches{padding:var(--ag-widget-container-vertical-padding) var(--ag-widget-container-horizontal-padding)}.ag-set-filter-tree-list{height:calc(var(--ag-list-item-height)*10)}.ag-set-filter-filter{margin-left:var(--ag-widget-container-horizontal-padding);margin-right:var(--ag-widget-container-horizontal-padding);margin-top:var(--ag-widget-container-vertical-padding)}.ag-filter-to{margin-top:var(--ag-widget-vertical-spacing)}.ag-mini-filter{margin:var(--ag-widget-container-vertical-padding) var(--ag-widget-container-horizontal-padding)}:where(.ag-ltr) .ag-set-filter-add-group-indent{margin-left:calc(var(--ag-icon-size) + var(--ag-widget-container-horizontal-padding))}:where(.ag-rtl) .ag-set-filter-add-group-indent{margin-right:calc(var(--ag-icon-size) + var(--ag-widget-container-horizontal-padding))}:where(.ag-filter-menu) .ag-set-filter-list{min-width:200px}.ag-filter-virtual-list-item:focus-visible{box-shadow:inset var(--ag-focus-shadow)}.ag-filter-apply-panel{display:flex;justify-content:flex-end;overflow:hidden;padding:var(--ag-widget-vertical-spacing) var(--ag-widget-container-horizontal-padding) var(--ag-widget-container-vertical-padding)}.ag-filter-apply-panel-button{line-height:1.5}:where(.ag-ltr) .ag-filter-apply-panel-button{margin-left:calc(var(--ag-spacing)*2)}:where(.ag-rtl) .ag-filter-apply-panel-button{margin-right:calc(var(--ag-spacing)*2)}.ag-simple-filter-body-wrapper{display:flex;flex-direction:column;min-height:calc(var(--ag-list-item-height) + var(--ag-widget-container-vertical-padding) + var(--ag-widget-vertical-spacing));overflow-y:auto;padding:var(--ag-widget-container-vertical-padding) var(--ag-widget-container-horizontal-padding);padding-bottom:calc(var(--ag-widget-container-vertical-padding) - var(--ag-widget-vertical-spacing));&>*{margin-bottom:var(--ag-widget-vertical-spacing)}:where(.ag-resizer-wrapper){margin:0}}.ag-multi-filter-menu-item{margin:var(--ag-spacing) 0}.ag-multi-filter-group-title-bar{background-color:transparent;color:var(--ag-header-text-color);font-weight:500;padding:calc(var(--ag-spacing)*1.5) var(--ag-spacing)}.ag-group-filter-field-select-wrapper{display:flex;flex-direction:column;gap:var(--ag-widget-vertical-spacing);padding:var(--ag-widget-container-vertical-padding) var(--ag-widget-container-horizontal-padding)}";function Ig(i){let o=i.filterManager;return!!(o!=null&&o.isColumnFilterPresent())||!!(o!=null&&o.isAggregateFilterPresent())}function wS(i,o){var C,P;return(P=(C=i.filterManager)==null?void 0:C.getColumnFilterInstance(o))!=null?P:Promise.resolve(void 0)}function Xd(i,o){var P;let C=i.colModel.getColDefCol(o);if(C)return(P=i.filterManager)==null?void 0:P.destroyFilter(C,"api")}function Np(i,o){i.frameworkOverrides.wrapIncoming(()=>{var C;return(C=i.filterManager)==null?void 0:C.setFilterModel(o)})}function hf(i){var o,C;return(C=(o=i.filterManager)==null?void 0:o.getFilterModel())!=null?C:{}}function WM(i,o){var C,P;return(P=(C=i.filterManager)==null?void 0:C.getColumnFilterModel(o))!=null?P:null}function Kb(i,o,C){var P,B;return(B=(P=i.filterManager)==null?void 0:P.setColumnFilterModel(o,C))!=null?B:Promise.resolve()}function zp(i,o){var P;let C=i.colModel.getCol(o);if(!C){Ea(12,{colKey:o});return}(P=i.menuSvc)==null||P.showFilterMenu({column:C,containerType:"columnFilter",positionBy:"auto"})}var Hv={january:"January",february:"February",march:"March",april:"April",may:"May",june:"June",july:"July",august:"August",september:"September",october:"October",november:"November",december:"December"},ac=["january","february","march","april","may","june","july","august","september","october","november","december"];function gf(i,o){return i==null?-1:o==null?1:parseFloat(i)-parseFloat(o)}var qb=class extends ei{constructor(){super(...arguments),this.beanName="colFilter",this.allColumnFilters=new Map,this.allColumnListeners=new Map,this.activeAggregateFilters=[],this.activeColumnFilters=[],this.processingFilterChange=!1,this.filterModelUpdateQueue=[],this.columnFilterModelUpdateQueue=[]}postConstruct(){var i,o,C;this.addManagedEventListeners({gridColumnsChanged:this.onColumnsChanged.bind(this),beforeRefreshModel:({params:P})=>{var B;(P.rowDataUpdated||(B=P.changedProps)!=null&&B.has("treeData"))&&this.onNewRowsLoaded("rowDataUpdated")},dataTypesInferred:this.processFilterModelUpdateQueue.bind(this)}),this.initialFilterModel=pe({},(C=(o=(i=this.gos.get("initialState"))==null?void 0:i.filter)==null?void 0:o.filterModel)!=null?C:{})}setFilterModel(i,o="api"){let{colModel:C,dataTypeSvc:P,filterManager:B}=this.beans;if(P!=null&&P.isPendingInference){this.filterModelUpdateQueue.push({model:i,source:o});return}let W=[],$=this.getFilterModel(!0);if(i){let ie=new Set(Object.keys(i));this.allColumnFilters.forEach((ue,De)=>{let _e=i[De];W.push(Wv(ue.filterPromise,_e)),ie.delete(De)}),ie.forEach(ue=>{let De=C.getColDefCol(ue)||C.getCol(ue);if(!De){pi(62,{colId:ue});return}if(!De.isFilterAllowed()){pi(63,{colId:ue});return}let _e=this.getOrCreateFilterWrapper(De);if(!_e){pi(64,{colId:ue});return}W.push(Wv(_e.filterPromise,i[ue]))})}else this.allColumnFilters.forEach(ie=>{W.push(Wv(ie.filterPromise,null))});js.all(W).then(()=>{let ie=this.getFilterModel(!0),ue=[];this.allColumnFilters.forEach((De,_e)=>{let Be=$?$[_e]:null,Qe=ie?ie[_e]:null;Id(Be,Qe)||ue.push(De.column)}),ue.length>0&&(B==null||B.onFilterChanged({columns:ue,source:o}))})}getFilterModel(i){let o={},{allColumnFilters:C,initialFilterModel:P,beans:{colModel:B}}=this;return C.forEach((W,$)=>{let ie=this.getModelFromFilterWrapper(W);Ai(ie)&&(o[$]=ie)}),i||Object.entries(P).forEach(([W,$])=>{var ie;Ai($)&&!C.has(W)&&((ie=B.getCol(W))!=null&&ie.isFilterAllowed())&&(o[W]=$)}),o}getModelFromFilterWrapper(i){let{filter:o}=i;return o?typeof o.getModel!="function"?(pi(66),null):o.getModel():this.getModelFromInitialState(i.column)}getModelFromInitialState(i){var o;return(o=this.initialFilterModel[i.getColId()])!=null?o:null}isColumnFilterPresent(){return this.activeColumnFilters.length>0}isAggregateFilterPresent(){return!!this.activeAggregateFilters.length}disableColumnFilters(){let{allColumnFilters:i}=this;return i.size?(i.forEach(o=>this.disposeFilterWrapper(o,"advancedFilterEnabled")),!0):!1}doAggregateFiltersPass(i,o){return this.doColumnFiltersPass(i,o,!0)}updateActiveFilters(){let i=ie=>ie?ie.isFilterActive?ie.isFilterActive():(pi(67),!1):!1,{colModel:o,gos:C}=this.beans,P=!!wm(C),B=ie=>{if(!ie.isPrimary())return!0;let De=!o.isPivotActive();return!ie.isValueActive()||!De?!1:o.isPivotMode()?!0:P},W=[],$=[];return this.forEachColumnFilter((ie,ue)=>{i(ie)&&(B(ue.column)?W.push(ie):$.push(ie))}).then(()=>{this.activeAggregateFilters=W,this.activeColumnFilters=$})}updateFilterFlagInColumns(i,o){return this.forEachColumnFilter((C,P)=>this.setColFilterActive(P.column,C.isFilterActive(),i,o))}forEachColumnFilter(i){let o=[];return this.allColumnFilters.forEach(C=>{let P=C.filterPromise;P&&o.push(P.then(B=>i(B,C)))}),js.all(o)}doColumnFiltersPass(i,o,C){let{data:P,aggData:B}=i,W=C?this.activeAggregateFilters:this.activeColumnFilters,$=C?B:P;for(let ie=0;ie<W.length;ie++){let ue=W[ie];if(!(ue==null||ue===o)){if(typeof ue.doesFilterPass!="function"){Ea(91);continue}if(!ue.doesFilterPass({node:i,data:$}))return!1}}return!0}callOnFilterChangedOutsideRenderCycle(i){let{rowRenderer:o,filterManager:C}=this.beans,P=()=>{this.isAlive()&&(C==null||C.onFilterChanged(i))};o.isRefreshInProgress()?setTimeout(P,0):P()}updateBeforeFilterChanged(i={}){let{filterInstance:o,additionalEventAttributes:C}=i;return this.updateDependentFilters(),this.updateActiveFilters().then(()=>this.updateFilterFlagInColumns("filterChanged",C).then(()=>{this.allColumnFilters.forEach(P=>{P.filterPromise&&P.filterPromise.then(B=>{B&&B!==o&&B.onAnyFilterChanged&&B.onAnyFilterChanged()})}),this.processingFilterChange=!0}))}updateAfterFilterChanged(){this.processingFilterChange=!1}isSuppressFlashingCellsBecauseFiltering(){var o;return!((o=this.gos.get("allowShowChangeAfterFilter"))!=null?o:!1)&&this.processingFilterChange}onNewRowsLoaded(i){this.forEachColumnFilter(o=>{var C;(C=o.onNewRowsLoaded)==null||C.call(o)}).then(()=>this.updateFilterFlagInColumns(i,{afterDataChange:!0})).then(()=>this.updateActiveFilters())}createGetValue(i){let{filterValueSvc:o,colModel:C}=this.beans;return(P,B)=>{let W=B?C.getCol(B):i;return W?o.getValue(W,P):void 0}}isFilterActive(i){var C;let{filter:o}=(C=this.cachedFilter(i))!=null?C:{};return o?o.isFilterActive():this.getModelFromInitialState(i)!=null}getOrCreateFilterWrapper(i){if(!i.isFilterAllowed())return null;let o=this.cachedFilter(i);return o||(o=this.createFilterWrapper(i),this.setColumnFilterWrapper(i,o)),o}cachedFilter(i){return this.allColumnFilters.get(i.getColId())}getDefaultFilter(i){let o,{gos:C,dataTypeSvc:P}=this.beans;if(iv(C))o="agSetColumnFilter";else{let B=P==null?void 0:P.getBaseDataType(i);B==="number"?o="agNumberColumnFilter":B==="date"||B==="dateString"?o="agDateColumnFilter":o="agTextColumnFilter"}return o}getDefaultFloatingFilter(i){let o,{gos:C,dataTypeSvc:P}=this.beans;if(iv(C))o="agSetColumnFloatingFilter";else{let B=P==null?void 0:P.getBaseDataType(i);B==="number"?o="agNumberColumnFloatingFilter":B==="date"||B==="dateString"?o="agDateColumnFloatingFilter":o="agTextColumnFloatingFilter"}return o}createFilterInstance(i,o){let C=this.getDefaultFilter(i),P=i.getColDef(),B,W=et(pe({},this.createFilterParams(i,P)),{filterModifiedCallback:()=>this.filterModifiedCallbackFactory(B,i)(),filterChangedCallback:ie=>this.filterChangedCallbackFactory(B,i)(ie),doesRowPassOtherFilter:ie=>{var ue,De;return(De=(ue=this.beans.filterManager)==null?void 0:ue.doesRowPassOtherFilters(B,ie))!=null?De:!0}}),$=yu(this.beans.userCompFactory,P,W,C);return $?{filterPromise:()=>{let ie=$.newAgStackInstance();return ie.then(ue=>{B=ue,o&&(o.filter=ue!=null?ue:void 0)}),ie},compDetails:$}:{filterPromise:null,compDetails:null}}createFilterParams(i,o){return this.gos.addGridCommonParams({column:i,colDef:o,rowModel:this.beans.rowModel,filterChangedCallback:()=>{},filterModifiedCallback:()=>{},getValue:this.createGetValue(i),doesRowPassOtherFilter:()=>!0})}createFilterWrapper(i){var B;let o={column:i,filterPromise:null,compDetails:null},{filterPromise:C,compDetails:P}=this.createFilterInstance(i,o);return o.filterPromise=(B=C==null?void 0:C())!=null?B:null,o.compDetails=P,o}onColumnsChanged(){let i=[],{colModel:o,filterManager:C}=this.beans;this.allColumnFilters.forEach((B,W)=>{let $;B.column.isPrimary()?$=o.getColDefCol(W):$=o.getCol(W),!($&&$===B.column)&&(i.push(B.column),this.disposeFilterWrapper(B,"columnChanged"),this.disposeColumnListener(W))});let P=i.every(B=>B.getColDef().filter==="agGroupColumnFilter");i.length>0&&!P?C==null||C.onFilterChanged({columns:i,source:"api"}):this.updateDependentFilters()}updateDependentFilters(){var i,o;(o=(i=this.beans.autoColSvc)==null?void 0:i.getAutoCols())==null||o.forEach(C=>{C.getColDef().filter==="agGroupColumnFilter"&&this.getOrCreateFilterWrapper(C)})}isFilterAllowed(i){var P;if(!i.isFilterAllowed())return!1;let{filter:C}=(P=this.allColumnFilters.get(i.getColId()))!=null?P:{};return C&&typeof(C==null?void 0:C.isFilterAllowed)=="function"?C.isFilterAllowed():!0}getFloatingFilterCompDetails(i,o){let C=_e=>{var Qe;let Be=(Qe=this.getOrCreateFilterWrapper(i))==null?void 0:Qe.filterPromise;Be!=null&&Be.then(st=>{_e(xh(st))})},P=i.getColDef(),B=et(pe({},this.createFilterParams(i,P)),{filterChangedCallback:()=>C(_e=>this.filterChangedCallbackFactory(_e,i)())}),{userCompFactory:W,frameworkOverrides:$}=this.beans,ie=Cx(W,P,B),ue=tD($,P,()=>this.getDefaultFloatingFilter(i));return ue==null&&(ue="agReadOnlyFloatingFilter"),yx(W,P,{column:i,filterParams:ie,currentParentModel:()=>this.getCurrentFloatingFilterParentModel(i),parentFilterInstance:C,showParentFilter:o},ue)}getCurrentFloatingFilterParentModel(i){var o;return this.getModelFromFilterWrapper((o=this.cachedFilter(i))!=null?o:{column:i})}destroyFilter(i,o="api"){var B;let C=i.getColId(),P=this.allColumnFilters.get(C);this.disposeColumnListener(C),delete this.initialFilterModel[C],P&&(this.disposeFilterWrapper(P,o),(B=this.beans.filterManager)==null||B.onFilterChanged({columns:[i],source:"api"}))}disposeColumnListener(i){let o=this.allColumnListeners.get(i);o&&(this.allColumnListeners.delete(i),o())}disposeFilterWrapper(i,o){var C;(C=i.filterPromise)==null||C.then(P=>{this.destroyBean(P),this.setColFilterActive(i.column,!1,"filterDestroyed"),this.allColumnFilters.delete(i.column.getColId()),this.eventSvc.dispatchEvent({type:"filterDestroyed",source:o,column:i.column})})}filterModifiedCallbackFactory(i,o){return()=>{this.eventSvc.dispatchEvent({type:"filterModified",column:o,filterInstance:i})}}filterChangedCallbackFactory(i,o){return C=>{var W;let P=(W=C==null?void 0:C.source)!=null?W:"columnFilter",B={filter:i,additionalEventAttributes:C,columns:[o],source:P};this.callOnFilterChangedOutsideRenderCycle(B)}}checkDestroyFilter(i){let o=this.allColumnFilters.get(i);if(!o)return;let C=o.column,{compDetails:P}=C.isFilterAllowed()?this.createFilterInstance(C):{compDetails:null};if(this.areFilterCompsDifferent(o.compDetails,P)){this.destroyFilter(C,"paramsUpdated");return}let B=C.getColDef().filterParams;if(!o.filterPromise){this.destroyFilter(C,"paramsUpdated");return}o.filterPromise.then(W=>{(W!=null&&W.refresh?W.refresh(pe(et(pe({},this.createFilterParams(C,C.getColDef())),{filterModifiedCallback:this.filterModifiedCallbackFactory(W,C),filterChangedCallback:this.filterChangedCallbackFactory(W,C),doesRowPassOtherFilter:ie=>{var ue,De;return(De=(ue=this.beans.filterManager)==null?void 0:ue.doesRowPassOtherFilters(W,ie))!=null?De:!0}}),B)):!0)===!1&&this.destroyFilter(C,"paramsUpdated")})}setColumnFilterWrapper(i,o){let C=i.getColId();this.allColumnFilters.set(C,o),this.allColumnListeners.set(C,this.addManagedListeners(i,{colDefChanged:()=>this.checkDestroyFilter(C)})[0])}areFilterCompsDifferent(i,o){if(!o||!i)return!0;let{componentClass:C}=i,{componentClass:P}=o;return!(C===P||(C==null?void 0:C.render)&&(P==null?void 0:P.render)&&C.render===P.render)}hasFloatingFilters(){return this.beans.colModel.getCols().some(o=>o.getColDef().floatingFilter)}getColumnFilterInstance(i){return new Promise(o=>{this.getFilterInstanceImpl(i).then(C=>{o(xh(C))})})}getFilterInstanceImpl(i){var P;let o=this.beans.colModel.getColDefCol(i);if(!o)return js.resolve(void 0);let C=(P=this.getOrCreateFilterWrapper(o))==null?void 0:P.filterPromise;return C!=null?C:js.resolve(null)}processFilterModelUpdateQueue(){this.filterModelUpdateQueue.forEach(({model:i,source:o})=>this.setFilterModel(i,o)),this.filterModelUpdateQueue=[],this.columnFilterModelUpdateQueue.forEach(({key:i,model:o,resolve:C})=>{this.setColumnFilterModel(i,o).then(()=>C())}),this.columnFilterModelUpdateQueue=[]}getColumnFilterModel(i){let o=this.getFilterWrapper(i);return o?this.getModelFromFilterWrapper(o):null}setColumnFilterModel(i,o){let{colModel:C,dataTypeSvc:P}=this.beans;if(P!=null&&P.isPendingInference){let ie=()=>{},ue=new Promise(De=>{ie=De});return this.columnFilterModelUpdateQueue.push({key:i,model:o,resolve:ie}),ue}let B=C.getColDefCol(i),W=B?this.getOrCreateFilterWrapper(B):null;return W?(ie=>new Promise(ue=>{ie.then(De=>ue(De))}))(Wv(W.filterPromise,o)):Promise.resolve()}getFilterWrapper(i){var C;let o=this.beans.colModel.getColDefCol(i);return o&&(C=this.cachedFilter(o))!=null?C:null}setColDefPropertiesForDataType(i,o,C){let P=iv(this.gos),B=this.getLocaleTextFunc(),W=$=>{let{filterParams:ie}=i;i.filterParams=typeof ie=="object"?pe(pe({},ie),$):$};switch(o.baseDataType){case"number":{P&&W({comparator:gf});break}case"boolean":{W(P?{valueFormatter:$=>Ai($.value)?B(String($.value),$.value?"True":"False"):B("blanks","(Blanks)")}:{maxNumConditions:1,debounceMs:0,filterOptions:["empty",{displayKey:"true",displayName:"True",predicate:($,ie)=>ie,numberOfInputs:0},{displayKey:"false",displayName:"False",predicate:($,ie)=>ie===!1,numberOfInputs:0}]});break}case"date":{P&&W({valueFormatter:$=>{let ie=C($);return Ai(ie)?ie:B("blanks","(Blanks)")},treeList:!0,treeListFormatter:($,ie)=>{if(ie===1&&$!=null){let ue=ac[Number($)-1];return B(ue,Hv[ue])}return $!=null?$:B("blanks","(Blanks)")}});break}case"dateString":{let $=o.dateParser;W(P?{valueFormatter:ie=>{let ue=C(ie);return Ai(ue)?ue:B("blanks","(Blanks)")},treeList:!0,treeListPathGetter:ie=>{let ue=$(ie!=null?ie:void 0);return ue?[String(ue.getFullYear()),String(ue.getMonth()+1),String(ue.getDate())]:null},treeListFormatter:(ie,ue)=>{if(ue===1&&ie!=null){let De=ac[Number(ie)-1];return B(De,Hv[De])}return ie!=null?ie:B("blanks","(Blanks)")}}:{comparator:(ie,ue)=>{let De=$(ue);return ue==null||De<ie?-1:De>ie?1:0}});break}case"object":{P?W({valueFormatter:$=>{let ie=C($);return Ai(ie)?ie:B("blanks","(Blanks)")}}):i.filterValueGetter=$=>C({column:$.column,node:$.node,value:this.beans.valueSvc.getValue($.column,$.node)});break}}}setColFilterActive(i,o,C,P){i.filterActive!==o&&(i.filterActive=o,i.dispatchColEvent("filterActiveChanged",C)),i.dispatchColEvent("filterChanged",C,P)}destroy(){super.destroy(),this.allColumnFilters.forEach(i=>this.disposeFilterWrapper(i,"gridDestroyed")),this.allColumnListeners.clear()}};function Wv(i,o){return i?new js(C=>{i.then(P=>{typeof P.setModel!="function"&&(pi(65),C()),(P.setModel(o)||js.resolve()).then(()=>C())})}):js.resolve()}function UM(i){var o;return!!((o=i.filterManager)!=null&&o.isAnyFilterPresent())}function Ou(i,o="api"){var C;(C=i.filterManager)==null||C.onFilterChanged({source:o})}var pf=class extends ei{constructor(){super(...arguments),this.beanName="filterManager",this.advFilterModelUpdateQueue=[]}wireBeans(i){this.quickFilter=i.quickFilter,this.advancedFilter=i.advancedFilter,this.colFilter=i.colFilter}postConstruct(){let i=this.refreshFiltersForAggregations.bind(this),o=this.updateAdvFilterColumns.bind(this);this.addManagedEventListeners({columnValueChanged:i,columnPivotChanged:i,columnPivotModeChanged:i,newColumnsLoaded:o,columnVisible:o,advancedFilterEnabledChanged:({enabled:P})=>this.onAdvFilterEnabledChanged(P),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"})});let{gos:C}=this;this.alwaysPassFilter=C.get("alwaysPassFilter"),this.addManagedPropertyListener("alwaysPassFilter",()=>{this.alwaysPassFilter=C.get("alwaysPassFilter"),this.onFilterChanged({source:"api"})})}isExternalFilterPresentCallback(){let i=this.gos.getCallback("isExternalFilterPresent");return typeof i=="function"&&i({})}doesExternalFilterPass(i){let o=this.gos.get("doesExternalFilterPass");return typeof o=="function"&&o(i)}setFilterModel(i,o="api"){var C;if(this.isAdvFilterEnabled()){this.warnAdvFilters();return}(C=this.colFilter)==null||C.setFilterModel(i,o)}getFilterModel(){var i,o;return(o=(i=this.colFilter)==null?void 0:i.getFilterModel())!=null?o:{}}isColumnFilterPresent(){var i;return!!((i=this.colFilter)!=null&&i.isColumnFilterPresent())}isAggregateFilterPresent(){var i;return!!((i=this.colFilter)!=null&&i.isAggregateFilterPresent())}isChildFilterPresent(){return this.isColumnFilterPresent()||this.isQuickFilterPresent()||this.externalFilterPresent||this.isAdvFilterPresent()}isAnyFilterPresent(){return this.isChildFilterPresent()||this.isAggregateFilterPresent()}isAdvFilterPresent(){return this.isAdvFilterEnabled()&&this.advancedFilter.isFilterPresent()}onAdvFilterEnabledChanged(i){var o,C;i?(o=this.colFilter)!=null&&o.disableColumnFilters()&&this.onFilterChanged({source:"advancedFilter"}):(C=this.advancedFilter)!=null&&C.isFilterPresent()&&(this.advancedFilter.setModel(null),this.onFilterChanged({source:"advancedFilter"}))}isAdvFilterEnabled(){var i;return!!((i=this.advancedFilter)!=null&&i.isEnabled())}isAdvFilterHeaderActive(){return this.isAdvFilterEnabled()&&this.advancedFilter.isHeaderActive()}resetQuickFilterCache(){var i;(i=this.quickFilter)==null||i.resetCache()}refreshFiltersForAggregations(){wm(this.gos)&&this.onFilterChanged()}onFilterChanged(i={}){let{source:o,additionalEventAttributes:C,columns:P=[]}=i;this.externalFilterPresent=this.isExternalFilterPresentCallback(),(this.colFilter?this.colFilter.updateBeforeFilterChanged(i):js.resolve()).then(()=>{var W;let B={source:o,type:"filterChanged",columns:P};C&&Ko(B,C),this.eventSvc.dispatchEvent(B),(W=this.colFilter)==null||W.updateAfterFilterChanged()})}isSuppressFlashingCellsBecauseFiltering(){var i;return!!((i=this.colFilter)!=null&&i.isSuppressFlashingCellsBecauseFiltering())}isQuickFilterPresent(){var i;return!!((i=this.quickFilter)!=null&&i.isFilterPresent())}updateAggFiltering(){this.aggFiltering=!!wm(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(i,o){return this.doesRowPassFilter({rowNode:o,filterInstanceToSkip:i})}doesRowPassAggregateFilters(i){var C;let{rowNode:o}=i;return(C=this.alwaysPassFilter)!=null&&C.call(this,o)?!0:!(this.isAggregateQuickFilterPresent()&&!this.quickFilter.doesRowPass(o)||this.isAggregateFilterPresent()&&!this.colFilter.doAggregateFiltersPass(o,i.filterInstanceToSkip))}doesRowPassFilter(i){var C;let{rowNode:o}=i;return(C=this.alwaysPassFilter)!=null&&C.call(this,o)?!0:!(this.isNonAggregateQuickFilterPresent()&&!this.quickFilter.doesRowPass(o)||this.externalFilterPresent&&!this.doesExternalFilterPass(o)||this.isColumnFilterPresent()&&!this.colFilter.doColumnFiltersPass(o,i.filterInstanceToSkip)||this.isAdvFilterPresent()&&!this.advancedFilter.doesFilterPass(o))}isFilterActive(i){var o;return!!((o=this.colFilter)!=null&&o.isFilterActive(i))}getOrCreateFilterWrapper(i){var o,C;return(C=(o=this.colFilter)==null?void 0:o.getOrCreateFilterWrapper(i))!=null?C:null}getDefaultFloatingFilter(i){return this.colFilter.getDefaultFloatingFilter(i)}createFilterParams(i,o){return this.colFilter.createFilterParams(i,o)}isFilterAllowed(i){var o;return this.isAdvFilterEnabled()?!1:!!((o=this.colFilter)!=null&&o.isFilterAllowed(i))}getFloatingFilterCompDetails(i,o){var C;return(C=this.colFilter)==null?void 0:C.getFloatingFilterCompDetails(i,o)}getCurrentFloatingFilterParentModel(i){var o;return(o=this.colFilter)==null?void 0:o.getCurrentFloatingFilterParentModel(i)}destroyFilter(i,o="api"){var C;(C=this.colFilter)==null||C.destroyFilter(i,o)}areFilterCompsDifferent(i,o){var C;return!!((C=this.colFilter)!=null&&C.areFilterCompsDifferent(i,o))}getAdvFilterModel(){return this.isAdvFilterEnabled()?this.advancedFilter.getModel():null}setAdvFilterModel(i){var o;if(this.isAdvFilterEnabled()){if((o=this.beans.dataTypeSvc)!=null&&o.isPendingInference){this.advFilterModelUpdateQueue.push(i);return}this.advancedFilter.setModel(i!=null?i:null),this.onFilterChanged({source:"advancedFilter"})}}toggleAdvFilterBuilder(i,o){this.isAdvFilterEnabled()&&this.advancedFilter.getCtrl().toggleFilterBuilder({source:o,force:i})}updateAdvFilterColumns(){this.isAdvFilterEnabled()&&this.advancedFilter.updateValidity()&&this.onFilterChanged({source:"advancedFilter"})}hasFloatingFilters(){var i;return this.isAdvFilterEnabled()?!1:!!((i=this.colFilter)!=null&&i.hasFloatingFilters())}getColumnFilterInstance(i){var o,C;return this.isAdvFilterEnabled()?(this.warnAdvFilters(),Promise.resolve(void 0)):(C=(o=this.colFilter)==null?void 0:o.getColumnFilterInstance(i))!=null?C:Promise.resolve(void 0)}warnAdvFilters(){pi(68)}setupAdvFilterHeaderComp(i){var o;(o=this.advancedFilter)==null||o.getCtrl().setupHeaderComp(i)}getHeaderRowCount(){return this.isAdvFilterHeaderActive()?1:0}getHeaderHeight(){return this.isAdvFilterHeaderActive()?this.advancedFilter.getCtrl().getHeaderHeight():0}processFilterModelUpdateQueue(){this.advFilterModelUpdateQueue.forEach(i=>this.setAdvFilterModel(i)),this.advFilterModelUpdateQueue=[]}getColumnFilterModel(i){var o;return(o=this.colFilter)==null?void 0:o.getColumnFilterModel(i)}setColumnFilterModel(i,o){var C,P;return this.isAdvFilterEnabled()?(this.warnAdvFilters(),Promise.resolve()):(P=(C=this.colFilter)==null?void 0:C.setColumnFilterModel(i,o))!=null?P:Promise.resolve()}setColDefPropertiesForDataType(i,o,C){var P;(P=this.colFilter)==null||P.setColDefPropertiesForDataType(i,o,C)}},d1=class extends ei{constructor(){super(...arguments),this.beanName="filterMenuFactory"}wireBeans(i){this.popupSvc=i.popupSvc}hideActiveMenu(){var i;(i=this.hidePopup)==null||i.call(this)}showMenuAfterMouseEvent(i,o,C){this.showPopup(i,P=>{var B;(B=this.popupSvc)==null||B.positionPopupUnderMouseEvent({column:i,type:C,mouseEvent:o,ePopup:P})},C,o.target,mr(this.gos))}showMenuAfterButtonClick(i,o,C){let P=-1,B="left",W=mr(this.gos);!W&&this.gos.get("enableRtl")&&(P=1,B="right");let $=W?void 0:4*P,ie=W?void 0:4;this.showPopup(i,ue=>{var De;(De=this.popupSvc)==null||De.positionPopupByComponent({type:C,eventSource:o,ePopup:ue,nudgeX:$,nudgeY:ie,alignSide:B,keepWithinBounds:!0,position:"under",column:i})},C,o,W)}showPopup(i,o,C,P,B){var Ct;let W=i?this.createBean(new _m(i,"COLUMN_MENU")):void 0;if(this.activeMenu=W,!(W!=null&&W.hasFilter())||!i){Ea(57);return}let $=document.createElement("div");k($,"presentation"),$.classList.add("ag-menu"),B||$.classList.add("ag-filter-menu"),[this.tabListener]=this.addManagedElementListeners($,{keydown:Ot=>this.trapFocusWithin(Ot,$)}),$.appendChild(W==null?void 0:W.getGui());let ie,ue=()=>W==null?void 0:W.afterGuiDetached(),De=Wl(this.gos)?P!=null?P:this.beans.ctrlsSvc.getGridBodyCtrl().eGridBody:void 0,_e=Ot=>{as(i,!1,"contextMenu");let Pt=Ot instanceof KeyboardEvent;if(this.tabListener&&(this.tabListener=this.tabListener()),Pt&&P&&ht(P)){let Kt=Wn(P);Kt==null||Kt.focus({preventScroll:!0})}ue(),this.destroyBean(this.activeMenu),this.dispatchVisibleChangedEvent(!1,C,i)},Be=this.getLocaleTextFunc(),Qe=B&&C!=="columnFilter"?Be("ariaLabelColumnMenu","Column Menu"):Be("ariaLabelColumnFilter","Column Filter"),st=(Ct=this.popupSvc)==null?void 0:Ct.addPopup({modal:!0,eChild:$,closeOnEsc:!0,closedCallback:_e,positionCallback:()=>o($),anchorToElement:De,ariaLabel:Qe});st&&(this.hidePopup=ie=st.hideFunc),W.afterInit().then(()=>{o($),W.afterGuiAttached({container:C,hidePopup:ie})}),as(i,!0,"contextMenu"),this.dispatchVisibleChangedEvent(!0,C,i)}trapFocusWithin(i,o){i.key!==Qt.TAB||i.defaultPrevented||mi(this.beans,o,!1,i.shiftKey)||(i.preventDefault(),Cu(o,i.shiftKey))}dispatchVisibleChangedEvent(i,o,C){this.eventSvc.dispatchEvent({type:"columnMenuVisibleChanged",visible:i,switchingTab:!1,key:o,column:C!=null?C:null,columnGroup:null})}isMenuEnabled(i){var o;return i.isFilterAllowed()&&((o=i.getColDef().menuTabs)!=null?o:["filterMenuTab"]).includes("filterMenuTab")}showMenuAfterContextMenuEvent(){}destroy(){this.destroyBean(this.activeMenu),super.destroy()}},Tg=class extends ei{constructor(){super(...arguments),this.beanName="filterValueSvc"}getValue(i,o){if(!o)return;let C=i.getColDef(),{filterValueGetter:P}=C;return P?this.executeFilterValueGetter(P,o.data,i,o,C):this.beans.valueSvc.getValue(i,o)}executeFilterValueGetter(i,o,C,P,B){let{expressionSvc:W,valueSvc:$}=this.beans,ie=this.gos.addGridCommonParams({data:o,node:P,column:C,colDef:B,getValue:$.getValueCallback.bind(this,P)});return typeof i=="function"?i(ie):W==null?void 0:W.evaluate(i,ie)}},KM=class extends On{constructor(){super(`
            <div class="ag-floating-filter-input" role="presentation">
                <ag-input-text-field data-ref="eFloatingFilterText"></ag-input-text-field>
            </div>`,[Gm]),this.eFloatingFilterText=Ri}init(i){this.params=i;let o=this.beans.colNames.getDisplayNameForColumn(i.column,"header",!0);this.eFloatingFilterText.setDisabled(!0).setInputAriaLabel(`${o} ${this.getLocaleTextFunc()("ariaFilterInput","Filter Input")}`)}onParentModelChanged(i){if(i==null){this.eFloatingFilterText.setValue("");return}this.params.parentFilterInstance(o=>{if(o.getModelAsString){let C=o.getModelAsString(i);this.eFloatingFilterText.setValue(C)}})}refresh(i){this.init(i)}},Nc=class{constructor(){this.customFilterOptions={}}init(i,o){this.filterOptions=i.filterOptions||o,this.mapCustomOptions(),this.selectDefaultItem(i)}mapCustomOptions(){let{filterOptions:i}=this;i&&i.forEach(o=>{if(typeof o=="string")return;let C=[["displayKey"],["displayName"],["predicate","test"]],P=B=>B.some(W=>o[W]!=null)?!0:(pi(72,{keys:B}),!1);if(!C.every(P)){this.filterOptions=i.filter(B=>B===o)||[];return}this.customFilterOptions[o.displayKey]=o})}selectDefaultItem(i){let{filterOptions:o}=this;if(i.defaultOption)this.defaultOption=i.defaultOption;else if(o.length>=1){let C=o[0];typeof C=="string"?this.defaultOption=C:C.displayKey?this.defaultOption=C.displayKey:pi(73)}else pi(74)}getCustomOption(i){return this.customFilterOptions[i]}};function mf(i,o,C){return C==null?i.splice(o):i.splice(o,C)}function zc(i){return i==null||typeof i=="string"&&i.trim().length===0}function Rg(i){return i==="AND"||i==="OR"?i:"AND"}function qM(i,o,C){if(i==null)return;let{predicate:P}=i;if(P!=null&&!o.some(B=>B==null))return P(o,C)}function YM(i,o){let C=i.length;return C>o&&(i.splice(o),pi(78),C=o),C}var Bc=class extends Ax{constructor(){super(...arguments),this.eTypes=[],this.eJoinOperatorPanels=[],this.eJoinOperatorsAnd=[],this.eJoinOperatorsOr=[],this.eConditionBodies=[],this.listener=()=>this.onUiChanged(),this.lastUiCompletePosition=null,this.joinOperatorId=0}getNumberOfInputs(i){let o=this.optionsFactory.getCustomOption(i);if(o){let{numberOfInputs:P}=o;return P!=null?P:1}return i&&["empty","notBlank","blank"].indexOf(i)>=0?0:i==="inRange"?2:1}onFloatingFilterChanged(i,o){this.setTypeFromFloatingFilter(i),this.setValueFromFloatingFilter(o),this.onUiChanged(!0)}setTypeFromFloatingFilter(i){this.eTypes.forEach((o,C)=>{let P=C===0?i:this.optionsFactory.defaultOption;o.setValue(P,!0)})}getModelFromUi(){let i=this.getUiCompleteConditions();return i.length===0?null:this.maxNumConditions>1&&i.length>1?{filterType:this.filterType,operator:this.getJoinOperator(),conditions:i}:i[0]}getConditionTypes(){return this.eTypes.map(i=>i.getValue())}getConditionType(i){return this.eTypes[i].getValue()}getJoinOperator(){let{eJoinOperatorsOr:i,defaultJoinOperator:o}=this;return i.length===0?o:i[0].getValue()===!0?"OR":"AND"}areModelsEqual(i,o){if(!i&&!o)return!0;if(!i&&o||i&&!o)return!1;let C=!i.operator,P=!o.operator;if(!C&&P||C&&!P)return!1;let W;if(C){let $=i,ie=o;W=this.areSimpleModelsEqual($,ie)}else{let $=i,ie=o;W=$.operator===ie.operator&&tg($.conditions,ie.conditions,(ue,De)=>this.areSimpleModelsEqual(ue,De))}return W}shouldRefresh(i){var W,$,ie;let o=this.getModel(),C=o?(W=o.conditions)!=null?W:[o]:null,P=(ie=($=i.filterOptions)==null?void 0:$.map(ue=>typeof ue=="string"?ue:ue.displayKey))!=null?ie:this.getDefaultFilterOptions();return!(!(!C||C.every(ue=>P.find(De=>De===ue.type)!==void 0))||typeof i.maxNumConditions=="number"&&C&&C.length>i.maxNumConditions)}refresh(i){return!this.shouldRefresh(i)||!super.refresh(i)?!1:(this.setParams(i),this.removeConditionsAndOperators(0),this.createOption(),this.setModel(this.getModel()),!0)}setModelIntoUi(i){if(i.operator){let C=i,P=C.conditions;P==null&&(P=[],pi(77));let B=YM(P,this.maxNumConditions),W=this.getNumConditions();if(B<W)this.removeConditionsAndOperators(B);else if(B>W)for(let ie=W;ie<B;ie++)this.createJoinOperatorPanel(),this.createOption();let $=C.operator==="OR";this.eJoinOperatorsAnd.forEach(ie=>ie.setValue(!$,!0)),this.eJoinOperatorsOr.forEach(ie=>ie.setValue($,!0)),P.forEach((ie,ue)=>{this.eTypes[ue].setValue(ie.type,!0),this.setConditionIntoUi(ie,ue)})}else{let C=i;this.getNumConditions()>1&&this.removeConditionsAndOperators(1),this.eTypes[0].setValue(C.type,!0),this.setConditionIntoUi(C,0)}return this.lastUiCompletePosition=this.getNumConditions()-1,this.createMissingConditionsAndOperators(),this.onUiChanged(),js.resolve()}doesFilterPass(i){var W;let o=this.getModel();if(o==null)return!0;let{operator:C}=o,P=[];if(C){let $=o;P.push(...(W=$.conditions)!=null?W:[])}else P.push(o);return P[C&&C==="OR"?"some":"every"]($=>this.individualConditionPasses(i,$))}setParams(i){super.setParams(i),this.setNumConditions(i),this.defaultJoinOperator=Rg(i.defaultJoinOperator),this.filterPlaceholder=i.filterPlaceholder,this.optionsFactory=new Nc,this.optionsFactory.init(i,this.getDefaultFilterOptions()),this.createFilterListOptions(),this.createOption(),this.createMissingConditionsAndOperators(),this.isReadOnly()&&this.eFilterBody.setAttribute("tabindex","-1")}setNumConditions(i){var P,B;let o=(P=i.maxNumConditions)!=null?P:2;o<1&&(pi(79),o=1),this.maxNumConditions=o;let C=(B=i.numAlwaysVisibleConditions)!=null?B:1;C<1&&(pi(80),C=1),C>o&&(pi(81),C=o),this.numAlwaysVisibleConditions=C}createOption(){let i=this.createManagedBean(new Nx);this.eTypes.push(i),i.addCssClass("ag-filter-select"),this.eFilterBody.appendChild(i.getGui());let o=this.createValueElement();this.eConditionBodies.push(o),this.eFilterBody.appendChild(o),this.putOptionsIntoDropdown(i),this.resetType(i);let C=this.getNumConditions()-1;this.forEachPositionInput(C,P=>this.resetInput(P)),this.addChangedListeners(i,C)}createJoinOperatorPanel(){let i=document.createElement("div");this.eJoinOperatorPanels.push(i),i.classList.add("ag-filter-condition");let o=this.createJoinOperator(this.eJoinOperatorsAnd,i,"and"),C=this.createJoinOperator(this.eJoinOperatorsOr,i,"or");this.eFilterBody.appendChild(i);let P=this.eJoinOperatorPanels.length-1,B=this.joinOperatorId++;this.resetJoinOperatorAnd(o,P,B),this.resetJoinOperatorOr(C,P,B),this.isReadOnly()||(o.onValueChange(this.listener),C.onValueChange(this.listener))}createJoinOperator(i,o,C){let P=this.createManagedBean(new _x);i.push(P);let B="ag-filter-condition-operator";return P.addCssClass(B),P.addCssClass(`${B}-${C}`),o.appendChild(P.getGui()),P}createFilterListOptions(){this.filterListOptions=this.optionsFactory.filterOptions.map(i=>typeof i=="string"?this.createBoilerplateListOption(i):this.createCustomListOption(i))}putOptionsIntoDropdown(i){let{filterListOptions:o}=this;o.forEach(C=>{i.addOption(C)}),i.setDisabled(o.length<=1)}createBoilerplateListOption(i){return{value:i,text:this.translate(i)}}createCustomListOption(i){let{displayKey:o}=i,C=this.optionsFactory.getCustomOption(i.displayKey);return{value:o,text:C?this.getLocaleTextFunc()(C.displayKey,C.displayName):this.translate(o)}}createBodyTemplate(){return""}getAgComponents(){return[]}getCssIdentifier(){return"simple-filter"}updateUiVisibility(){let i=this.getJoinOperator();this.updateNumConditions(),this.updateConditionStatusesAndValues(this.lastUiCompletePosition,i)}updateNumConditions(){var C;let i=-1,o=!0;for(let P=0;P<this.getNumConditions();P++)this.isConditionUiComplete(P)?i=P:o=!1;if(this.shouldAddNewConditionAtEnd(o))this.createJoinOperatorPanel(),this.createOption();else{let P=(C=this.lastUiCompletePosition)!=null?C:this.getNumConditions()-2;if(i<P){this.removeConditionsAndOperators(P+1);let B=i+1,W=P-B;W>0&&this.removeConditionsAndOperators(B,W),this.createMissingConditionsAndOperators()}}this.lastUiCompletePosition=i}updateConditionStatusesAndValues(i,o){this.eTypes.forEach((P,B)=>{let W=this.isConditionDisabled(B,i);P.setDisabled(W||this.filterListOptions.length<=1),B===1&&(la(this.eJoinOperatorPanels[0],W),this.eJoinOperatorsAnd[0].setDisabled(W),this.eJoinOperatorsOr[0].setDisabled(W))}),this.eConditionBodies.forEach((P,B)=>{Un(P,this.isConditionBodyVisible(B))});let C=(o!=null?o:this.getJoinOperator())==="OR";this.eJoinOperatorsAnd.forEach(P=>{P.setValue(!C,!0)}),this.eJoinOperatorsOr.forEach(P=>{P.setValue(C,!0)}),this.forEachInput((P,B,W,$)=>{this.setElementDisplayed(P,B<$),this.setElementDisabled(P,this.isConditionDisabled(W,i))}),this.resetPlaceholder()}shouldAddNewConditionAtEnd(i){return i&&this.getNumConditions()<this.maxNumConditions&&!this.isReadOnly()}removeConditionsAndOperators(i,o){if(i>=this.getNumConditions())return;let{eTypes:C,eConditionBodies:P,eJoinOperatorPanels:B,eJoinOperatorsAnd:W,eJoinOperatorsOr:$}=this;this.removeComponents(C,i,o),this.removeElements(P,i,o),this.removeValueElements(i,o);let ie=Math.max(i-1,0);this.removeElements(B,ie,o),this.removeComponents(W,ie,o),this.removeComponents($,ie,o)}removeElements(i,o,C){mf(i,o,C).forEach(B=>pt(B))}removeComponents(i,o,C){mf(i,o,C).forEach(B=>{pt(B.getGui()),this.destroyBean(B)})}afterGuiAttached(i){var o;if(super.afterGuiAttached(i),this.resetPlaceholder(),!(i!=null&&i.suppressFocus)){let{eFilterBody:C,eTypes:P}=this,B;if(!this.isReadOnly()){let W=this.getInputs(0)[0];W instanceof ld&&this.isConditionBodyVisible(0)?B=W.getInputElement():B=(o=P[0])==null?void 0:o.getFocusableElement()}(B!=null?B:C).focus({preventScroll:!0})}}afterGuiDetached(){super.afterGuiDetached();let i=this.getModel();this.resetUiToActiveModel(i);let o=-1,C=-1,P=!1,B=this.getJoinOperator();for(let $=this.getNumConditions()-1;$>=0;$--)if(this.isConditionUiComplete($))o===-1&&(o=$,C=$);else{let ie=$>=this.numAlwaysVisibleConditions&&!this.isConditionUiComplete($-1),ue=$<o;(ie||ue)&&(this.removeConditionsAndOperators($,1),P=!0,ue&&C--)}let W=!1;this.getNumConditions()<this.numAlwaysVisibleConditions&&(this.createMissingConditionsAndOperators(),W=!0),this.shouldAddNewConditionAtEnd(C===this.getNumConditions()-1)&&(this.createJoinOperatorPanel(),this.createOption(),W=!0),W&&this.updateConditionStatusesAndValues(C,B),P&&this.updateJoinOperatorsDisabled(),this.lastUiCompletePosition=C}getPlaceholderText(i,o){let C=this.translate(i);if(typeof this.filterPlaceholder=="function"){let P=this.eTypes[o].getValue(),B=this.translate(P);C=this.filterPlaceholder({filterOptionKey:P,filterOption:B,placeholder:C})}else typeof this.filterPlaceholder=="string"&&(C=this.filterPlaceholder);return C}resetPlaceholder(){let i=this.getLocaleTextFunc();this.forEachInput((o,C,P,B)=>{if(!(o instanceof ld))return;let W=C===0&&B>1?"inRangeStart":C===0?"filterOoo":"inRangeEnd",$=C===0&&B>1?i("ariaFilterFromValue","Filter from value"):C===0?i("ariaFilterValue","Filter Value"):i("ariaFilterToValue","Filter to Value");o.setInputPlaceholder(this.getPlaceholderText(W,P)),o.setInputAriaLabel($)})}setElementValue(i,o,C){i instanceof ld&&i.setValue(o!=null?String(o):null,!0)}setElementDisplayed(i,o){i instanceof On&&Un(i.getGui(),o)}setElementDisabled(i,o){i instanceof On&&la(i.getGui(),o)}attachElementOnChange(i,o){i instanceof ld&&i.onValueChange(o)}forEachInput(i){this.getConditionTypes().forEach((o,C)=>{this.forEachPositionTypeInput(C,o,i)})}forEachPositionInput(i,o){let C=this.getConditionType(i);this.forEachPositionTypeInput(i,C,o)}forEachPositionTypeInput(i,o,C){let P=this.getNumberOfInputs(o),B=this.getInputs(i);for(let W=0;W<B.length;W++){let $=B[W];$!=null&&C($,W,i,P)}}isConditionDisabled(i,o){return this.isReadOnly()?!0:i===0?!1:i>o+1}isConditionBodyVisible(i){let o=this.getConditionType(i);return this.getNumberOfInputs(o)>0}isConditionUiComplete(i){return!(i>=this.getNumConditions()||this.getConditionType(i)==="empty"||this.getValues(i).some(C=>C==null))}getNumConditions(){return this.eTypes.length}getUiCompleteConditions(){let i=[];for(let o=0;o<this.getNumConditions();o++)this.isConditionUiComplete(o)&&i.push(this.createCondition(o));return i}createMissingConditionsAndOperators(){if(!this.isReadOnly())for(let i=this.getNumConditions();i<this.numAlwaysVisibleConditions;i++)this.createJoinOperatorPanel(),this.createOption()}resetUiToDefaults(i){return this.removeConditionsAndOperators(this.isReadOnly()?1:this.numAlwaysVisibleConditions),this.eTypes.forEach(o=>this.resetType(o)),this.eJoinOperatorsAnd.forEach((o,C)=>this.resetJoinOperatorAnd(o,C,this.joinOperatorId+C)),this.eJoinOperatorsOr.forEach((o,C)=>this.resetJoinOperatorOr(o,C,this.joinOperatorId+C)),this.joinOperatorId++,this.forEachInput(o=>this.resetInput(o)),this.resetPlaceholder(),this.createMissingConditionsAndOperators(),this.lastUiCompletePosition=null,i||this.onUiChanged(),js.resolve()}resetType(i){let C=this.getLocaleTextFunc()("ariaFilteringOperator","Filtering operator");i.setValue(this.optionsFactory.defaultOption,!0).setAriaLabel(C).setDisabled(this.isReadOnly()||this.filterListOptions.length<=1)}resetJoinOperatorAnd(i,o,C){this.resetJoinOperator(i,o,this.defaultJoinOperator==="AND",this.translate("andCondition"),C)}resetJoinOperatorOr(i,o,C){this.resetJoinOperator(i,o,this.defaultJoinOperator==="OR",this.translate("orCondition"),C)}resetJoinOperator(i,o,C,P,B){this.updateJoinOperatorDisabled(i.setValue(C,!0).setName(`ag-simple-filter-and-or-${this.getCompId()}-${B}`).setLabel(P),o)}updateJoinOperatorsDisabled(){let i=(o,C)=>this.updateJoinOperatorDisabled(o,C);this.eJoinOperatorsAnd.forEach(i),this.eJoinOperatorsOr.forEach(i)}updateJoinOperatorDisabled(i,o){i.setDisabled(this.isReadOnly()||o>0)}resetInput(i){this.setElementValue(i,null),this.setElementDisabled(i,this.isReadOnly())}setConditionIntoUi(i,o){let C=this.mapValuesFromModel(i);this.forEachInput((P,B,W)=>{W===o&&this.setElementValue(P,C[B]!=null?C[B]:null)})}setValueFromFloatingFilter(i){this.forEachInput((o,C,P)=>{this.setElementValue(o,C===0&&P===0?i:null,!0)})}addChangedListeners(i,o){this.isReadOnly()||(i.onValueChange(this.listener),this.forEachPositionInput(o,C=>{this.attachElementOnChange(C,this.listener)}))}individualConditionPasses(i,o){let C=this.getCellValue(i.node),P=this.mapValuesFromModel(o),B=this.optionsFactory.getCustomOption(o.type),W=qM(B,P,C);return W!=null?W:C==null?this.evaluateNullValue(o.type):this.evaluateNonNullValue(P,C,o,i)}hasInvalidInputs(){return!1}},XM=class extends Bc{setParams(i){super.setParams(i),this.scalarFilterParams=i}evaluateNullValue(i){let{includeBlanksInEquals:o,includeBlanksInNotEqual:C,includeBlanksInGreaterThan:P,includeBlanksInLessThan:B,includeBlanksInRange:W}=this.scalarFilterParams;switch(i){case"equals":if(o)return!0;break;case"notEqual":if(C)return!0;break;case"greaterThan":case"greaterThanOrEqual":if(P)return!0;break;case"lessThan":case"lessThanOrEqual":if(B)return!0;break;case"inRange":if(W)return!0;break;case"blank":return!0;case"notBlank":return!1}return!1}evaluateNonNullValue(i,o,C){let P=this.comparator(),B=i[0]!=null?P(i[0],o):0;switch(C.type){case"equals":return B===0;case"notEqual":return B!==0;case"greaterThan":return B>0;case"greaterThanOrEqual":return B>=0;case"lessThan":return B<0;case"lessThanOrEqual":return B<=0;case"inRange":{let W=P(i[1],o);return this.scalarFilterParams.inRangeInclusive?B>=0&&W<=0:B>0&&W<0}case"blank":return zc(o);case"notBlank":return!zc(o);default:return pi(76,{filterModelType:C.type}),!0}}},xS=class{constructor(i,o,C,P,B){this.alive=!0,this.context=i,this.eParent=P;let W=bs(o,C);W&&W.newAgStackInstance().then($=>{var De,_e;if(!this.alive){i.destroyBean($);return}if(this.dateComp=$,!$)return;P.appendChild($.getGui()),(De=$==null?void 0:$.afterGuiAttached)==null||De.call($);let{tempValue:ie,disabled:ue}=this;ie&&$.setDate(ie),ue!=null&&((_e=$.setDisabled)==null||_e.call($,ue)),B==null||B(this)})}destroy(){this.alive=!1,this.dateComp=this.context.destroyBean(this.dateComp)}getDate(){return this.dateComp?this.dateComp.getDate():this.tempValue}setDate(i){let o=this.dateComp;o?o.setDate(i):this.tempValue=i}setDisabled(i){var C;let o=this.dateComp;o?(C=o.setDisabled)==null||C.call(o,i):this.disabled=i}setDisplayed(i){Un(this.eParent,i)}setInputPlaceholder(i){var o,C;(C=(o=this.dateComp)==null?void 0:o.setInputPlaceholder)==null||C.call(o,i)}setInputAriaLabel(i){var o,C;(C=(o=this.dateComp)==null?void 0:o.setInputAriaLabel)==null||C.call(o,i)}afterGuiAttached(i){var o,C;(C=(o=this.dateComp)==null?void 0:o.afterGuiAttached)==null||C.call(o,i)}updateParams(i){var o,C;(C=(o=this.dateComp)==null?void 0:o.refresh)==null||C.call(o,i)}},Kr=["equals","notEqual","lessThan","greaterThan","inRange","blank","notBlank"],Pg=class{constructor(i,o,C){this.getLocaleTextFunc=i,this.optionsFactory=o,this.valueFormatter=C}getModelAsString(i){var P;if(!i)return null;let o=i.operator!=null,C=this.getLocaleTextFunc();if(o){let B=i,$=((P=B.conditions)!=null?P:[]).map(ue=>this.getModelAsString(ue)),ie=B.operator==="AND"?"andCondition":"orCondition";return $.join(` ${C(ie,eD[ie])} `)}else{if(i.type==="blank"||i.type==="notBlank")return C(i.type,i.type);{let B=i,W=this.optionsFactory.getCustomOption(B.type),{displayKey:$,displayName:ie,numberOfInputs:ue}=W||{};return $&&ie&&ue===0?(C($,ie),ie):this.conditionToString(B,W)}}}updateParams(i){this.optionsFactory=i.optionsFactory}formatValue(i){var C;let o=this.valueFormatter;return o?(C=o(i!=null?i:null))!=null?C:"":String(i)}},Yb=class extends Pg{constructor(i,o,C){super(o,C),this.dateFilterParams=i}conditionToString(i,o){let{type:C}=i,{numberOfInputs:P}=o||{},B=C=="inRange"||P===2,W=Jl(i.dateFrom),$=Jl(i.dateTo),ie=this.dateFilterParams.inRangeFloatingFilterDateFormat;if(B){let ue=W!==null?Gd(W,ie):"null",De=$!==null?Gd($,ie):"null";return`${ue}-${De}`}return W!=null?Gd(W,ie):`${C}`}updateParams(i){super.updateParams(i),this.dateFilterParams=i.dateFilterParams}},ff=1e3,Uv=1/0,Xb=class extends XM{constructor(){super("dateFilter"),this.eConditionPanelsFrom=[],this.eConditionPanelsTo=[],this.dateConditionFromComps=[],this.dateConditionToComps=[],this.minValidYear=ff,this.maxValidYear=Uv,this.minValidDate=null,this.maxValidDate=null,this.filterType="date"}afterGuiAttached(i){super.afterGuiAttached(i),this.dateConditionFromComps[0].afterGuiAttached(i)}mapValuesFromModel(i){let{dateFrom:o,dateTo:C,type:P}=i||{};return[o&&Jl(o)||null,C&&Jl(C)||null].slice(0,this.getNumberOfInputs(P))}comparator(){var i;return(i=this.dateFilterParams.comparator)!=null?i:ZM}setParams(i){this.dateFilterParams=i,super.setParams(i);let o=(C,P)=>{if(i[C]!=null)if(isNaN(i[C]))pi(82,{param:C});else return i[C]==null?P:Number(i[C]);return P};this.minValidYear=o("minValidYear",ff),this.maxValidYear=o("maxValidYear",Uv),this.minValidYear>this.maxValidYear&&pi(83),this.minValidDate=i.minValidDate?i.minValidDate instanceof Date?i.minValidDate:Jl(i.minValidDate):null,this.maxValidDate=i.maxValidDate?i.maxValidDate instanceof Date?i.maxValidDate:Jl(i.maxValidDate):null,this.minValidDate&&this.maxValidDate&&this.minValidDate>this.maxValidDate&&pi(84),this.filterModelFormatter=new Yb(this.dateFilterParams,this.getLocaleTextFunc.bind(this),this.optionsFactory)}createDateCompWrapper(i){let{userCompFactory:o,context:C}=this.beans,P=new xS(C,o,{onDateChanged:()=>this.onUiChanged(),filterParams:this.dateFilterParams,location:"filter"},i);return this.addDestroyFunc(()=>P.destroy()),P}setElementValue(i,o){i.setDate(o)}setElementDisplayed(i,o){i.setDisplayed(o)}setElementDisabled(i,o){i.setDisabled(o)}getDefaultFilterOptions(){return Kr}createValueElement(){let o=Ao(this.beans).createElement("div");return o.classList.add("ag-filter-body"),this.createFromToElement(o,this.eConditionPanelsFrom,this.dateConditionFromComps,"from"),this.createFromToElement(o,this.eConditionPanelsTo,this.dateConditionToComps,"to"),o}createFromToElement(i,o,C,P){let W=Ao(this.beans).createElement("div");W.classList.add(`ag-filter-${P}`),W.classList.add(`ag-filter-date-${P}`),o.push(W),i.appendChild(W),C.push(this.createDateCompWrapper(W))}removeValueElements(i,o){this.removeDateComps(this.dateConditionFromComps,i,o),this.removeDateComps(this.dateConditionToComps,i,o),mf(this.eConditionPanelsFrom,i,o),mf(this.eConditionPanelsTo,i,o)}removeDateComps(i,o,C){mf(i,o,C).forEach(B=>B.destroy())}isValidDateValue(i){if(i===null)return!1;let{minValidDate:o,maxValidDate:C,minValidYear:P,maxValidYear:B}=this;if(o){if(i<o)return!1}else if(i.getUTCFullYear()<P)return!1;if(C){if(i>C)return!1}else if(i.getUTCFullYear()>B)return!1;return!0}isConditionUiComplete(i){if(!super.isConditionUiComplete(i))return!1;let o=!0;return this.forEachInput((C,P,B,W)=>{B!==i||!o||P>=W||(o=o&&this.isValidDateValue(C.getDate()))}),o}areSimpleModelsEqual(i,o){return i.dateFrom===o.dateFrom&&i.dateTo===o.dateTo&&i.type===o.type}createCondition(i){let o=this.getConditionType(i),C={},P=this.getValues(i);return P.length>0&&(C.dateFrom=os(P[0])),P.length>1&&(C.dateTo=os(P[1])),pe({dateFrom:null,dateTo:null,filterType:this.filterType,type:o},C)}resetPlaceholder(){let i=this.getLocaleTextFunc(),o=this.translate("dateFormatOoo"),C=i("ariaFilterValue","Filter Value");this.forEachInput(P=>{P.setInputPlaceholder(o),P.setInputAriaLabel(C)})}getInputs(i){let{dateConditionFromComps:o,dateConditionToComps:C}=this;return i>=o.length?[null,null]:[o[i],C[i]]}getValues(i){let o=[];return this.forEachPositionInput(i,(C,P,B,W)=>{P<W&&o.push(C.getDate())}),o}translate(i){return i==="lessThan"?super.translate("before"):i==="greaterThan"?super.translate("after"):super.translate(i)}getModelAsString(i){var o;return(o=this.filterModelFormatter.getModelAsString(i))!=null?o:""}};function ZM(i,o){let C=o;return o==null||C<i?-1:C>i?1:0}var bo=class extends On{constructor(){super(...arguments),this.defaultDebounceMs=0}setLastTypeFromModel(i){if(!i){this.lastType=this.optionsFactory.defaultOption;return}let o=i.operator,C;o?C=i.conditions[0]:C=i,this.lastType=C.type}canWeEditAfterModelFromParentFilter(i){if(!i)return this.isTypeEditable(this.lastType);if(i.operator)return!1;let C=i;return this.isTypeEditable(C.type)}init(i){this.setSimpleParams(i,!1)}setSimpleParams(i,o=!0){let C=new Nc;this.optionsFactory=C,C.init(i.filterParams,this.getDefaultOptions());let P=C.defaultOption;o||(this.lastType=P),this.readOnly=!!i.filterParams.readOnly;let B=this.isTypeEditable(P);this.setEditable(B)}refresh(i){this.setSimpleParams(i)}hasSingleInput(i){var C;let o=(C=this.optionsFactory.getCustomOption(i))==null?void 0:C.numberOfInputs;return o==null||o==1}isTypeEditable(i){let o=["inRange","empty","blank","notBlank"];return!!i&&!this.readOnly&&this.hasSingleInput(i)&&o.indexOf(i)<0}getAriaLabel(i){return`${this.beans.colNames.getDisplayNameForColumn(i.column,"header",!0)} ${this.getLocaleTextFunc()("ariaFilterInput","Filter Input")}`}},Zb=class extends bo{constructor(){super(`
            <div class="ag-floating-filter-input" role="presentation">
                <ag-input-text-field data-ref="eReadOnlyText"></ag-input-text-field>
                <div data-ref="eDateWrapper" style="display: flex;"></div>
            </div>`,[Gm]),this.eReadOnlyText=Ri,this.eDateWrapper=Ri}getDefaultOptions(){return Kr}init(i){super.init(i),this.params=i,this.filterParams=i.filterParams,this.createDateComponent(),this.filterModelFormatter=new Yb(this.filterParams,this.getLocaleTextFunc.bind(this),this.optionsFactory);let o=this.getLocaleTextFunc();this.eReadOnlyText.setDisabled(!0).setInputAriaLabel(o("ariaDateFilterInput","Date Filter Input"))}refresh(i){super.refresh(i),this.params=i,this.filterParams=i.filterParams;let o=this.gos.addGridCommonParams(this.getDateComponentParams());this.dateComp.updateParams(o),this.filterModelFormatter.updateParams({optionsFactory:this.optionsFactory,dateFilterParams:this.filterParams}),this.updateCompOnModelChange(i.currentParentModel())}updateCompOnModelChange(i){let o=!this.readOnly&&this.canWeEditAfterModelFromParentFilter(i);if(this.setEditable(o),o){let C=i?Jl(i.dateFrom):null;this.dateComp.setDate(C),this.eReadOnlyText.setValue("")}else this.eReadOnlyText.setValue(this.filterModelFormatter.getModelAsString(i)),this.dateComp.setDate(null)}setEditable(i){Un(this.eDateWrapper,i),Un(this.eReadOnlyText.getGui(),!i)}onParentModelChanged(i,o){o!=null&&o.afterFloatingFilter||o!=null&&o.afterDataChange||(super.setLastTypeFromModel(i),this.updateCompOnModelChange(i))}onDateChanged(){let i=this.dateComp.getDate(),o=os(i);this.params.parentFilterInstance(C=>{if(C){let P=Jl(o);C.onFloatingFilterChanged(this.lastType||null,P)}})}getDateComponentParams(){let{filterParams:i,column:o}=this.params,C=f0(i,this.defaultDebounceMs);return{onDateChanged:zr(this,this.onDateChanged.bind(this),C),filterParams:o.getColDef().filterParams,location:"floatingFilter"}}createDateComponent(){let{beans:{context:i,userCompFactory:o},eDateWrapper:C}=this;this.dateComp=new xS(i,o,this.getDateComponentParams(),C,P=>{P.setInputAriaLabel(this.getAriaLabel(this.params))}),this.addDestroyFunc(()=>this.dateComp.destroy())}},Kv=class extends On{constructor(){super(`
            <div class="ag-filter-filter">
                <ag-input-text-field class="ag-date-filter" data-ref="eDateInput"></ag-input-text-field>
            </div>`,[Gm]),this.eDateInput=Ri,this.isApply=!1,this.applyOnFocusOut=!1}init(i){this.params=i,this.setParams(i);let o=this.eDateInput.getInputElement();this.addManagedListeners(o,{mouseDown:()=>{this.eDateInput.isDisabled()||this.usingSafariDatePicker||o.focus({preventScroll:!0})},input:this.handleInput.bind(this,!1),change:this.handleInput.bind(this,!0),focusout:this.handleFocusOut.bind(this)})}handleInput(i,o){if(o.target===Fa(this.beans)&&!this.eDateInput.isDisabled()){if(this.isApply){this.applyOnFocusOut=!i,i&&this.params.onDateChanged();return}i||this.params.onDateChanged()}}handleFocusOut(){this.applyOnFocusOut&&(this.applyOnFocusOut=!1,this.params.onDateChanged())}setParams(i){let o=this.eDateInput.getInputElement(),C=this.shouldUseBrowserDatePicker(i);this.usingSafariDatePicker=C&&ii(),o.type=C?"date":"text";let{minValidYear:P,maxValidYear:B,minValidDate:W,maxValidDate:$,buttons:ie}=i.filterParams||{};if(W&&P&&pi(85),$&&B&&pi(86),W&&$){let[ue,De]=[W,$].map(_e=>_e instanceof Date?_e:Jl(_e));ue&&De&&ue.getTime()>De.getTime()&&pi(87)}W?W instanceof Date?o.min=Gd(W):o.min=W:P&&(o.min=`${P}-01-01`),$?$ instanceof Date?o.max=Gd($):o.max=$:B&&(o.max=`${B}-12-31`),this.isApply=i.location==="floatingFilter"&&!!(ie!=null&&ie.includes("apply"))}refresh(i){this.params=i,this.setParams(i)}getDate(){return Jl(this.eDateInput.getValue())}setDate(i){this.eDateInput.setValue(os(i,!1))}setInputPlaceholder(i){this.eDateInput.setInputPlaceholder(i)}setInputAriaLabel(i){this.eDateInput.setAriaLabel(i)}setDisabled(i){this.eDateInput.setDisabled(i)}afterGuiAttached(i){(!i||!i.suppressFocus)&&this.eDateInput.getInputElement().focus({preventScroll:!0})}shouldUseBrowserDatePicker(i){var o,C;return(C=(o=i==null?void 0:i.filterParams)==null?void 0:o.browserDatePicker)!=null?C:!0}},Lg=["equals","notEqual","greaterThan","greaterThanOrEqual","lessThan","lessThanOrEqual","inRange","blank","notBlank"],qv=class extends Pg{conditionToString(i,o){let{numberOfInputs:C}=o||{},{filter:P,filterTo:B,type:W}=i,$=W=="inRange"||C===2,ie=this.formatValue.bind(this);return $?`${ie(P)}-${ie(B)}`:P!=null?ie(P):`${W}`}};function rr(i){let{allowedCharPattern:o}=i!=null?i:{};return o!=null?o:null}var MS=class extends XM{constructor(){super("numberFilter"),this.eValuesFrom=[],this.eValuesTo=[],this.filterType="number",this.defaultDebounceMs=500}refresh(i){return this.numberFilterParams.allowedCharPattern!==i.allowedCharPattern?!1:super.refresh(i)}mapValuesFromModel(i){let{filter:o,filterTo:C,type:P}=i||{};return[this.processValue(o),this.processValue(C)].slice(0,this.getNumberOfInputs(P))}comparator(){return(i,o)=>i===o?0:i<o?1:-1}setParams(i){this.numberFilterParams=i,super.setParams(i),this.filterModelFormatter=new qv(this.getLocaleTextFunc.bind(this),this.optionsFactory,this.numberFilterParams.numberFormatter)}getDefaultFilterOptions(){return Lg}setElementValue(i,o,C){let{numberFormatter:P}=this.numberFilterParams,B=!C&&P?P(o!=null?o:null):o;super.setElementValue(i,B)}createValueElement(){let i=rr(this.numberFilterParams),o=document.createElement("div");return o.classList.add("ag-filter-body"),k(o,"presentation"),this.createFromToElement(o,this.eValuesFrom,"from",i),this.createFromToElement(o,this.eValuesTo,"to",i),o}createFromToElement(i,o,C,P){let B=this.createManagedBean(P?new Bd({allowedCharPattern:P}):new bv);B.addCssClass(`ag-filter-${C}`),B.addCssClass("ag-filter-filter"),o.push(B),i.appendChild(B.getGui())}removeValueElements(i,o){let C=P=>this.removeComponents(P,i,o);C(this.eValuesFrom),C(this.eValuesTo)}getValues(i){let o=[];return this.forEachPositionInput(i,(C,P,B,W)=>{P<W&&o.push(this.processValue(this.stringToFloat(C.getValue())))}),o}areSimpleModelsEqual(i,o){return i.filter===o.filter&&i.filterTo===o.filterTo&&i.type===o.type}processValue(i){return i==null||isNaN(i)?null:i}stringToFloat(i){if(typeof i=="number")return i;let o=cl(i);o!=null&&o.trim()===""&&(o=null);let C=this.numberFilterParams.numberParser;return C?C(o):o==null||o.trim()==="-"?null:parseFloat(o)}createCondition(i){let o=this.getConditionType(i),C={filterType:this.filterType,type:o},P=this.getValues(i);return P.length>0&&(C.filter=P[0]),P.length>1&&(C.filterTo=P[1]),C}getInputs(i){let{eValuesFrom:o,eValuesTo:C}=this;return i>=o.length?[null,null]:[o[i],C[i]]}getModelAsString(i){var o;return(o=this.filterModelFormatter.getModelAsString(i))!=null?o:""}hasInvalidInputs(){let i=!1;return this.forEachInput(o=>{if(!o.getInputElement().validity.valid){i=!0;return}}),i}},Bp=class extends ei{constructor(i){super(),this.params=i,this.eInput=Ri,this.onValueChanged=()=>{}}setupGui(i){var P;this.eInput=this.createManagedBean(new Bd((P=this.params)==null?void 0:P.config));let o=this.eInput.getGui();i.appendChild(o);let C=B=>this.onValueChanged(B);this.addManagedListeners(o,{input:C,keydown:C})}setEditable(i){this.eInput.setDisabled(!i)}getValue(){return this.eInput.getValue()}setValue(i,o){this.eInput.setValue(i,o)}setValueChangedListener(i){this.onValueChanged=i}setParams({ariaLabel:i,autoComplete:o}){let{eInput:C}=this;C.setInputAriaLabel(i),o!==void 0&&C.setAutoComplete(o)}};function kS(i){let o=i==null?void 0:i.trim();return o===""?i:o}var AS=class extends bo{constructor(){super(...arguments),this.eFloatingFilterInputContainer=Ri,this.defaultDebounceMs=500}postConstruct(){this.setTemplate(`
            <div class="ag-floating-filter-input" role="presentation" data-ref="eFloatingFilterInputContainer"></div>
        `)}onParentModelChanged(i,o){o!=null&&o.afterFloatingFilter||o!=null&&o.afterDataChange||(this.setLastTypeFromModel(i),this.setEditable(this.canWeEditAfterModelFromParentFilter(i)),this.inputSvc.setValue(this.filterModelFormatter.getModelAsString(i)))}init(i){this.setupFloatingFilterInputService(i),super.init(i),this.setTextInputParams(i)}setupFloatingFilterInputService(i){this.inputSvc=this.createFloatingFilterInputService(i),this.inputSvc.setupGui(this.eFloatingFilterInputContainer)}setTextInputParams(i){var W;this.params=i;let o=(W=i.browserAutoComplete)!=null?W:!1,{inputSvc:C,defaultDebounceMs:P,readOnly:B}=this;if(C.setParams({ariaLabel:this.getAriaLabel(i),autoComplete:o}),this.applyActive=Fm(i.filterParams),!B){let $=f0(i.filterParams,P),ie=zr(this,this.syncUpWithParentFilter.bind(this),$);C.setValueChangedListener(ie)}}refresh(i){super.refresh(i),this.setTextInputParams(i)}recreateFloatingFilterInputService(i){let{inputSvc:o}=this,C=o.getValue();Ke(this.eFloatingFilterInputContainer),this.destroyBean(o),this.setupFloatingFilterInputService(i),o.setValue(C,!0)}syncUpWithParentFilter(i){let o=i.key===Qt.ENTER;if(this.applyActive&&!o)return;let{inputSvc:C,params:P}=this,B=C.getValue();P.filterParams.trimInput&&(B=kS(B),C.setValue(B,!0)),P.parentFilterInstance(W=>{W==null||W.onFloatingFilterChanged(this.lastType||null,B||null)})}setEditable(i){this.inputSvc.setEditable(i)}},Ma=class extends ei{constructor(){super(...arguments),this.onValueChanged=()=>{},this.numberInputActive=!0}setupGui(i){this.eNumberInput=this.createManagedBean(new bv),this.eTextInput=this.createManagedBean(new Bd),this.eTextInput.setDisabled(!0);let o=this.eNumberInput.getGui(),C=this.eTextInput.getGui();i.appendChild(o),i.appendChild(C),this.setupListeners(o,P=>this.onValueChanged(P)),this.setupListeners(C,P=>this.onValueChanged(P))}setEditable(i){this.numberInputActive=i,this.eNumberInput.setDisplayed(this.numberInputActive),this.eTextInput.setDisplayed(!this.numberInputActive)}setAutoComplete(i){this.eNumberInput.setAutoComplete(i),this.eTextInput.setAutoComplete(i)}getValue(){return this.getActiveInputElement().getValue()}setValue(i,o){this.getActiveInputElement().setValue(i,o)}getActiveInputElement(){return this.numberInputActive?this.eNumberInput:this.eTextInput}setValueChangedListener(i){this.onValueChanged=i}setupListeners(i,o){this.addManagedListeners(i,{input:o,keydown:o})}setParams(i){this.setAriaLabel(i.ariaLabel),i.autoComplete!==void 0&&this.setAutoComplete(i.autoComplete)}setAriaLabel(i){this.eNumberInput.setInputAriaLabel(i),this.eTextInput.setInputAriaLabel(i)}},vf=class extends AS{init(i){var o;super.init(i),this.filterModelFormatter=new qv(this.getLocaleTextFunc.bind(this),this.optionsFactory,(o=i.filterParams)==null?void 0:o.numberFormatter)}refresh(i){rr(i.filterParams)!==this.allowedCharPattern&&this.recreateFloatingFilterInputService(i),super.refresh(i),this.filterModelFormatter.updateParams({optionsFactory:this.optionsFactory})}getDefaultOptions(){return Lg}createFloatingFilterInputService(i){return this.allowedCharPattern=rr(i.filterParams),this.allowedCharPattern?this.createManagedBean(new Bp({config:{allowedCharPattern:this.allowedCharPattern}})):this.createManagedBean(new Ma)}},Og=["contains","notContains","equals","notEqual","startsWith","endsWith","blank","notBlank"],$M=class extends Pg{conditionToString(i,o){let{numberOfInputs:C}=o||{},{filter:P,filterTo:B,type:W}=i;return W=="inRange"||C===2?`${P}-${B}`:P!=null?`${P}`:`${W}`}},Zd=class extends Bc{constructor(){super("textFilter"),this.filterType="text",this.defaultFormatter=i=>i,this.defaultLowercaseFormatter=i=>i==null?null:i.toString().toLowerCase(),this.defaultMatcher=({filterOption:i,value:o,filterText:C})=>{if(C==null)return!1;switch(i){case"contains":return o.indexOf(C)>=0;case"notContains":return o.indexOf(C)<0;case"equals":return o===C;case"notEqual":return o!=C;case"startsWith":return o.indexOf(C)===0;case"endsWith":{let P=o.lastIndexOf(C);return P>=0&&P===o.length-C.length}default:return!1}},this.eValuesFrom=[],this.eValuesTo=[],this.defaultDebounceMs=500}setParams(i){this.textFilterParams=i,super.setParams(i),this.matcher=i.textMatcher||this.defaultMatcher,this.formatter=i.textFormatter||(i.caseSensitive?this.defaultFormatter:this.defaultLowercaseFormatter),this.filterModelFormatter=new $M(this.getLocaleTextFunc.bind(this),this.optionsFactory)}createCondition(i){let o=this.getConditionType(i),C={filterType:this.filterType,type:o},P=this.getValuesWithSideEffects(i,!0);return P.length>0&&(C.filter=P[0]),P.length>1&&(C.filterTo=P[1]),C}areSimpleModelsEqual(i,o){return i.filter===o.filter&&i.filterTo===o.filterTo&&i.type===o.type}getInputs(i){let{eValuesFrom:o,eValuesTo:C}=this;return i>=o.length?[null,null]:[o[i],C[i]]}getValues(i){return this.getValuesWithSideEffects(i,!1)}getValuesWithSideEffects(i,o){let C=[];return this.forEachPositionInput(i,(P,B,W,$)=>{var ie;if(B<$){let ue=cl(P.getValue());o&&this.textFilterParams.trimInput&&(ue=(ie=kS(ue))!=null?ie:null,P.setValue(ue,!0)),C.push(ue)}}),C}getDefaultFilterOptions(){return Og}createValueElement(){let i=document.createElement("div");return i.classList.add("ag-filter-body"),k(i,"presentation"),this.createFromToElement(i,this.eValuesFrom,"from"),this.createFromToElement(i,this.eValuesTo,"to"),i}createFromToElement(i,o,C){let P=this.createManagedBean(new Bd);P.addCssClass(`ag-filter-${C}`),P.addCssClass("ag-filter-filter"),o.push(P),i.appendChild(P.getGui())}removeValueElements(i,o){let C=P=>this.removeComponents(P,i,o);C(this.eValuesFrom),C(this.eValuesTo)}mapValuesFromModel(i){let{filter:o,filterTo:C,type:P}=i||{};return[o||null,C||null].slice(0,this.getNumberOfInputs(P))}evaluateNullValue(i){return i?["notEqual","notContains","blank"].indexOf(i)>=0:!1}evaluateNonNullValue(i,o,C,P){let B=i.map(Qe=>this.formatter(Qe))||[],W=this.formatter(o),{api:$,colDef:ie,column:ue,context:De,textFormatter:_e}=this.textFilterParams;if(C.type==="blank")return zc(o);if(C.type==="notBlank")return!zc(o);let Be={api:$,colDef:ie,column:ue,context:De,node:P.node,data:P.data,filterOption:C.type,value:W,textFormatter:_e};return B.some(Qe=>this.matcher(et(pe({},Be),{filterText:Qe})))}getModelAsString(i){var o;return(o=this.filterModelFormatter.getModelAsString(i))!=null?o:""}},ET=class extends AS{init(i){super.init(i),this.filterModelFormatter=new $M(this.getLocaleTextFunc.bind(this),this.optionsFactory)}refresh(i){super.refresh(i),this.filterModelFormatter.updateParams({optionsFactory:this.optionsFactory})}getDefaultOptions(){return Og}createFloatingFilterInputService(){return this.createManagedBean(new Bp)}};function yd(i){var o;return!!((o=i.filterManager)!=null&&o.isQuickFilterPresent())}function u1(i){return i.gos.get("quickFilterText")}function oc(i){var o;(o=i.filterManager)==null||o.resetQuickFilterCache()}var _g=class extends ei{constructor(){super(...arguments),this.beanName="quickFilter",this.quickFilter=null,this.quickFilterParts=null}postConstruct(){let i=this.resetCache.bind(this),o=this.gos;this.addManagedEventListeners({columnPivotModeChanged:i,newColumnsLoaded:i,columnRowGroupChanged:i,columnVisible:()=>{o.get("includeHiddenColumnsInQuickFilter")||this.resetCache()}}),this.addManagedPropertyListener("quickFilterText",C=>this.setFilter(C.currentValue)),this.addManagedPropertyListeners(["includeHiddenColumnsInQuickFilter","applyQuickFilterBeforePivotOrAgg"],()=>this.onColumnConfigChanged()),this.quickFilter=this.parseFilter(o.get("quickFilterText")),this.parser=o.get("quickFilterParser"),this.matcher=o.get("quickFilterMatcher"),this.setFilterParts(),this.addManagedPropertyListeners(["quickFilterMatcher","quickFilterParser"],()=>this.setParserAndMatcher())}refreshCols(){var ue,De;let{autoColSvc:i,colModel:o,gos:C,pivotResultCols:P}=this.beans,B=o.isPivotMode(),W=i==null?void 0:i.getAutoCols(),$=o.getColDefCols(),ie=(De=B&&!C.get("applyQuickFilterBeforePivotOrAgg")?(ue=P==null?void 0:P.getPivotResultCols())==null?void 0:ue.list:$)!=null?De:[];W&&(ie=ie.concat(W)),this.colsToUse=C.get("includeHiddenColumnsInQuickFilter")?ie:ie.filter(_e=>_e.isVisible()||_e.isRowGroupActive())}isFilterPresent(){return this.quickFilter!==null}doesRowPass(i){let o=this.gos.get("cacheQuickFilter");return this.matcher?this.doesRowPassMatcher(o,i):this.quickFilterParts.every(C=>o?this.doesRowPassCache(i,C):this.doesRowPassNoCache(i,C))}resetCache(){this.beans.rowModel.forEachNode(i=>i.quickFilterAggregateText=null)}setFilterParts(){let{quickFilter:i,parser:o}=this;i?this.quickFilterParts=o?o(i):i.split(" "):this.quickFilterParts=null}parseFilter(i){return Ai(i)?i.toUpperCase():null}setFilter(i){if(i!=null&&typeof i!="string"){pi(70,{newFilter:i});return}let o=this.parseFilter(i);this.quickFilter!==o&&(this.quickFilter=o,this.setFilterParts(),this.dispatchLocalEvent({type:"quickFilterChanged"}))}setParserAndMatcher(){let i=this.gos.get("quickFilterParser"),o=this.gos.get("quickFilterMatcher"),C=i!==this.parser||o!==this.matcher;this.parser=i,this.matcher=o,C&&(this.setFilterParts(),this.dispatchLocalEvent({type:"quickFilterChanged"}))}onColumnConfigChanged(){this.refreshCols(),this.resetCache(),this.isFilterPresent()&&this.dispatchLocalEvent({type:"quickFilterChanged"})}doesRowPassNoCache(i,o){return this.colsToUse.some(C=>{let P=this.getTextForColumn(C,i);return Ai(P)&&P.indexOf(o)>=0})}doesRowPassCache(i,o){return this.checkGenerateAggText(i),i.quickFilterAggregateText.indexOf(o)>=0}doesRowPassMatcher(i,o){let C;i?(this.checkGenerateAggText(o),C=o.quickFilterAggregateText):C=this.getAggText(o);let{quickFilterParts:P,matcher:B}=this;return B(P,C)}checkGenerateAggText(i){i.quickFilterAggregateText||(i.quickFilterAggregateText=this.getAggText(i))}getTextForColumn(i,o){let C=this.beans.filterValueSvc.getValue(i,o),P=i.getColDef();if(P.getQuickFilterText){let B=this.gos.addGridCommonParams({value:C,node:o,data:o.data,column:i,colDef:P});C=P.getQuickFilterText(B)}return Ai(C)?C.toString().toUpperCase():null}getAggText(i){let o=[];return this.colsToUse.forEach(C=>{let P=this.getTextForColumn(C,i);Ai(P)&&o.push(P)}),o.join(`
`)}},$b={moduleName:"ClientSideRowModelFilter",version:yi,rowModels:["clientSide"],beans:[jo]},_u={moduleName:"FilterCore",version:yi,beans:[pf],apiFunctions:{isAnyFilterPresent:UM,onFilterChanged:Ou},css:[Dl],dependsOn:[$b]},hr={moduleName:"FilterValue",version:yi,beans:[Tg]},rc={moduleName:"ColumnFilter",version:yi,beans:[qb,d1],dynamicBeans:{headerFilterCellCtrl:HM},icons:{filter:"filter",filterActive:"filter"},apiFunctions:{isColumnFilterPresent:Ig,getColumnFilterInstance:wS,destroyFilter:Xd,setFilterModel:Np,getFilterModel:hf,getColumnFilterModel:WM,setColumnFilterModel:Kb,showColumnFilter:zp},dependsOn:[_u,Eg,hr,Ms]},QM={moduleName:"CustomFilter",version:yi,userComponents:{agReadOnlyFloatingFilter:KM},dependsOn:[rc]},DS={moduleName:"TextFilter",version:yi,dependsOn:[rc],userComponents:{agTextColumnFilter:Zd,agTextColumnFloatingFilter:ET}},Gp={moduleName:"NumberFilter",version:yi,dependsOn:[rc],userComponents:{agNumberColumnFilter:MS,agNumberColumnFloatingFilter:vf}},h1={moduleName:"DateFilter",version:yi,dependsOn:[rc],userComponents:{agDateColumnFilter:Xb,agDateInput:Kv,agDateColumnFloatingFilter:Zb}},IT={moduleName:"QuickFilter",version:yi,rowModels:["clientSide"],beans:[_g],apiFunctions:{isQuickFilterPresent:yd,getQuickFilter:u1,resetQuickFilter:oc},dependsOn:[_u,hr]},TT={moduleName:"ExternalFilter",version:yi,dependsOn:[_u]},yf=class{constructor(i){this.cellValueChanges=i}},Yv=class extends yf{constructor(i,o,C,P){super(i),this.initialRange=o,this.finalRange=C,this.ranges=P}},xL=10,gr=class{constructor(i){this.actionStack=[],this.maxStackSize=i||xL,this.actionStack=new Array(this.maxStackSize)}pop(){return this.actionStack.pop()}push(i){i.cellValueChanges&&i.cellValueChanges.length>0&&(this.actionStack.length===this.maxStackSize&&this.actionStack.shift(),this.actionStack.push(i))}clear(){this.actionStack=[]}getCurrentStackSize(){return this.actionStack.length}},g1=class extends ei{constructor(){super(...arguments),this.beanName="undoRedo",this.cellValueChanges=[],this.activeCellEdit=null,this.activeRowEdit=null,this.isPasting=!1,this.isRangeInAction=!1,this.onCellValueChanged=i=>{let o={column:i.column,rowIndex:i.rowIndex,rowPinned:i.rowPinned},C=this.activeCellEdit!==null&&Ki(this.activeCellEdit,o),P=this.activeRowEdit!==null&&aa(this.activeRowEdit,o);if(!(C||P||this.isPasting||this.isRangeInAction))return;let{rowPinned:W,rowIndex:$,column:ie,oldValue:ue,value:De}=i,_e={rowPinned:W,rowIndex:$,columnId:ie.getColId(),newValue:De,oldValue:ue};this.cellValueChanges.push(_e)},this.clearStacks=()=>{this.undoStack.clear(),this.redoStack.clear()}}postConstruct(){let{gos:i,ctrlsSvc:o}=this.beans;if(!i.get("undoRedoCellEditing"))return;let C=i.get("undoRedoCellEditingLimit");if(C<=0)return;this.undoStack=new gr(C),this.redoStack=new gr(C),this.addListeners();let P=this.clearStacks.bind(this);this.addManagedEventListeners({cellValueChanged:this.onCellValueChanged.bind(this),modelUpdated:B=>{B.keepUndoRedoStack||this.clearStacks()},columnPivotModeChanged:P,newColumnsLoaded:P,columnGroupOpened:P,columnRowGroupChanged:P,columnMoved:P,columnPinned:P,columnVisible:P,rowDragEnd:P}),o.whenReady(this,B=>{this.gridBodyCtrl=B.gridBodyCtrl})}getCurrentUndoStackSize(){var i,o;return(o=(i=this.undoStack)==null?void 0:i.getCurrentStackSize())!=null?o:0}getCurrentRedoStackSize(){var i,o;return(o=(i=this.redoStack)==null?void 0:i.getCurrentStackSize())!=null?o:0}undo(i){let{eventSvc:o,undoStack:C,redoStack:P}=this;o.dispatchEvent({type:"undoStarted",source:i});let B=this.undoRedo(C,P,"initialRange","oldValue","undo");o.dispatchEvent({type:"undoEnded",source:i,operationPerformed:B})}redo(i){let{eventSvc:o,undoStack:C,redoStack:P}=this;o.dispatchEvent({type:"redoStarted",source:i});let B=this.undoRedo(P,C,"finalRange","newValue","redo");o.dispatchEvent({type:"redoEnded",source:i,operationPerformed:B})}undoRedo(i,o,C,P,B){if(!i)return!1;let W=i.pop();return!W||!W.cellValueChanges?!1:(this.processAction(W,$=>$[P],B),W instanceof Yv?this.processRange(W.ranges||[W[C]]):this.processCell(W.cellValueChanges),o.push(W),!0)}processAction(i,o,C){i.cellValueChanges.forEach(P=>{let{rowIndex:B,rowPinned:W,columnId:$}=P,ie={rowIndex:B,rowPinned:W},ue=hv(this.beans,ie);ue.displayed&&ue.setDataValue($,o(P),C)})}processRange(i){let o,C=this.beans.rangeSvc;C.removeAllCellRanges(!0),i.forEach((P,B)=>{if(!P)return;let W=P.startRow,$=P.endRow;B===i.length-1&&(o={rowPinned:W.rowPinned,rowIndex:W.rowIndex,columnId:P.startColumn.getColId()},this.setLastFocusedCell(o));let ie={rowStartIndex:W.rowIndex,rowStartPinned:W.rowPinned,rowEndIndex:$.rowIndex,rowEndPinned:$.rowPinned,columnStart:P.startColumn,columns:P.columns};C.addCellRange(ie)})}processCell(i){let o=i[0],{rowIndex:C,rowPinned:P}=o,B={rowIndex:C,rowPinned:P},W=hv(this.beans,B),$={rowPinned:o.rowPinned,rowIndex:W.rowIndex,columnId:o.columnId};this.setLastFocusedCell($)}setLastFocusedCell(i){let{rowIndex:o,columnId:C,rowPinned:P}=i,{colModel:B,focusSvc:W,rangeSvc:$}=this.beans,ie=B.getCol(C);if(!ie)return;let{scrollFeature:ue}=this.gridBodyCtrl;ue.ensureIndexVisible(o),ue.ensureColumnVisible(ie);let De={rowIndex:o,column:ie,rowPinned:P};W.setFocusedCell(et(pe({},De),{forceBrowserFocus:!0})),$==null||$.setRangeToCell(De)}addListeners(){this.addManagedEventListeners({rowEditingStarted:i=>{this.activeRowEdit={rowIndex:i.rowIndex,rowPinned:i.rowPinned}},rowEditingStopped:()=>{let i=new yf(this.cellValueChanges);this.pushActionsToUndoStack(i),this.activeRowEdit=null},cellEditingStarted:i=>{this.activeCellEdit={column:i.column,rowIndex:i.rowIndex,rowPinned:i.rowPinned}},cellEditingStopped:i=>{if(this.activeCellEdit=null,i.valueChanged&&!this.activeRowEdit&&!this.isPasting&&!this.isRangeInAction){let C=new yf(this.cellValueChanges);this.pushActionsToUndoStack(C)}},pasteStart:()=>{this.isPasting=!0},pasteEnd:()=>{let i=new yf(this.cellValueChanges);this.pushActionsToUndoStack(i),this.isPasting=!1},fillStart:()=>{this.isRangeInAction=!0},fillEnd:i=>{let o=new Yv(this.cellValueChanges,i.initialRange,i.finalRange);this.pushActionsToUndoStack(o),this.isRangeInAction=!1},keyShortcutChangedCellStart:()=>{this.isRangeInAction=!0},keyShortcutChangedCellEnd:()=>{let i,{rangeSvc:o,gos:C}=this.beans;o&&Dr(C)?i=new Yv(this.cellValueChanges,void 0,void 0,[...o.getCellRanges()]):i=new yf(this.cellValueChanges),this.pushActionsToUndoStack(i),this.isRangeInAction=!1}})}pushActionsToUndoStack(i){this.undoStack.push(i),this.cellValueChanges=[],this.redoStack.clear()}},bf=".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;width:100%}}: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)}",p1=class extends Sv{constructor(){super(`
            <div class="ag-cell-wrapper ag-cell-edit-wrapper ag-checkbox-edit">
                <ag-checkbox role="presentation" data-ref="eCheckbox"></ag-checkbox>
            </div>`,[ao]),this.eCheckbox=Ri}init(i){var B;this.params=i;let o=(B=i.value)!=null?B:void 0,C=this.eCheckbox;C.setValue(o),C.getInputElement().setAttribute("tabindex","-1"),this.setAriaLabel(o),this.addManagedListeners(C,{fieldValueChanged:W=>this.setAriaLabel(W.selected)})}getValue(){return this.eCheckbox.getValue()}focusIn(){this.eCheckbox.getFocusableElement().focus()}afterGuiAttached(){this.params.cellStartedEdit&&this.focusIn()}isPopup(){return!1}setAriaLabel(i){let o=this.getLocaleTextFunc(),C=St(o,i),P=o("ariaToggleCellValue","Press SPACE to toggle cell value");this.eCheckbox.setInputAriaLabel(`${P} (${C})`)}},Gh=class extends Sv{constructor(i){super(`
            <div class="ag-cell-edit-wrapper">
                ${i.getTemplate()}
            </div>`,i.getAgComponents()),this.cellEditorInput=i,this.eInput=Ri}init(i){this.params=i;let{cellStartedEdit:o,eventKey:C,suppressPreventDefault:P}=i,B=this.eInput;this.cellEditorInput.init(B,i);let W,$=!0;o?(this.focusAfterAttached=!0,C===Qt.BACKSPACE||C===Qt.DELETE?W="":C&&C.length===1?P?$=!1:W=C:(W=this.cellEditorInput.getStartValue(),C!==Qt.F2&&(this.highlightAllOnFocus=!0))):(this.focusAfterAttached=!1,W=this.cellEditorInput.getStartValue()),$&&W!=null&&B.setStartValue(W),this.addManagedElementListeners(B.getGui(),{keydown:ie=>{let{key:ue}=ie;(ue===Qt.PAGE_UP||ue===Qt.PAGE_DOWN)&&ie.preventDefault()}})}afterGuiAttached(){var P,B;let i=this.getLocaleTextFunc(),o=this.eInput;if(o.setInputAriaLabel(i("ariaInputEditor","Input Editor")),!this.focusAfterAttached)return;ii()||o.getFocusableElement().focus();let C=o.getInputElement();this.highlightAllOnFocus?C.select():(B=(P=this.cellEditorInput).setCaret)==null||B.call(P)}focusIn(){let i=this.eInput,o=i.getFocusableElement(),C=i.getInputElement();o.focus(),C.select()}getValue(){return this.cellEditorInput.getValue()}isPopup(){return!1}},RT=class{getTemplate(){return'<ag-input-date-field class="ag-cell-editor" data-ref="eInput"></ag-input-date-field>'}getAgComponents(){return[A0]}init(i,o){this.eInput=i,this.params=o;let{min:C,max:P,step:B}=o;C!=null&&i.setMin(C),P!=null&&i.setMax(P),B!=null&&i.setStep(B)}getValue(){let{eInput:i,params:o}=this,C=i.getDate();return!Ai(C)&&!Ai(o.value)?o.value:C!=null?C:null}getStartValue(){let{value:i}=this.params;if(i instanceof Date)return os(i,!1)}},PT=class extends Gh{constructor(){super(new RT)}},LT=class{constructor(i){this.getDataTypeService=i}getTemplate(){return'<ag-input-date-field class="ag-cell-editor" data-ref="eInput"></ag-input-date-field>'}getAgComponents(){return[A0]}init(i,o){this.eInput=i,this.params=o;let{min:C,max:P,step:B}=o;C!=null&&i.setMin(C),P!=null&&i.setMax(P),B!=null&&i.setStep(B)}getValue(){let{params:i,eInput:o}=this,C=this.formatDate(o.getDate());return!Ai(C)&&!Ai(i.value)?i.value:i.parseValue(C!=null?C:"")}getStartValue(){var i,o;return os((o=this.parseDate((i=this.params.value)!=null?i:void 0))!=null?o:null,!1)}parseDate(i){var C;let o=this.getDataTypeService();return o?o.getDateParserFunction(this.params.column)(i):(C=Jl(i))!=null?C:void 0}formatDate(i){var C;let o=this.getDataTypeService();return o?o.getDateFormatterFunction(this.params.column)(i):(C=os(i!=null?i:null,!1))!=null?C:void 0}},JM=class extends Gh{constructor(){super(new LT(()=>this.beans.dataTypeSvc))}},ES=class extends Sv{constructor(){super(`<div class="ag-large-text">
        <ag-input-text-area data-ref="eTextArea" class="ag-large-text-input"></ag-input-text-area>
        </div>`,[zI]),this.eTextArea=Ri}init(i){this.params=i,this.focusAfterAttached=i.cellStartedEdit,this.eTextArea.setMaxLength(i.maxLength||200).setCols(i.cols||60).setRows(i.rows||10),i.value!=null&&this.eTextArea.setValue(i.value.toString(),!0),this.addGuiEventListener("keydown",this.onKeyDown.bind(this)),this.activateTabIndex()}onKeyDown(i){let o=i.key;(o===Qt.LEFT||o===Qt.UP||o===Qt.RIGHT||o===Qt.DOWN||i.shiftKey&&o===Qt.ENTER)&&i.stopPropagation()}afterGuiAttached(){let i=this.getLocaleTextFunc();this.eTextArea.setInputAriaLabel(i("ariaInputEditor","Input Editor")),this.focusAfterAttached&&this.eTextArea.getFocusableElement().focus()}getValue(){let i=this.eTextArea.getValue(),o=this.params;return!Ai(i)&&!Ai(o.value)?o.value:o.parseValue(i)}},IS=class{getTemplate(){return'<ag-input-number-field class="ag-cell-editor" data-ref="eInput"></ag-input-number-field>'}getAgComponents(){return[Ql]}init(i,o){this.eInput=i,this.params=o;let{max:C,min:P,precision:B,step:W}=o;C!=null&&i.setMax(C),P!=null&&i.setMin(P),B!=null&&i.setPrecision(B),W!=null&&i.setStep(W);let $=i.getInputElement();o.preventStepping?i.addManagedElementListeners($,{keydown:this.preventStepping}):o.showStepperButtons&&$.classList.add("ag-number-field-input-stepper")}preventStepping(i){(i.key===Qt.UP||i.key===Qt.DOWN)&&i.preventDefault()}getValue(){let{eInput:i,params:o}=this,C=i.getValue();if(!Ai(C)&&!Ai(o.value))return o.value;let P=o.parseValue(C);if(P==null)return P;if(typeof P=="string"){if(P==="")return null;P=Number(P)}return isNaN(P)?null:P}getStartValue(){return this.params.value}setCaret(){ii()&&this.eInput.getInputElement().focus({preventScroll:!0})}},TS=class extends Gh{constructor(){super(new IS)}},m1=class extends Sv{constructor(){super(`<div class="ag-cell-edit-wrapper">
                <ag-select class="ag-cell-editor" data-ref="eSelect"></ag-select>
            </div>`,[hg]),this.eSelect=Ri,this.startedByEnter=!1}wireBeans(i){this.valueSvc=i.valueSvc}init(i){this.focusAfterAttached=i.cellStartedEdit;let{eSelect:o,valueSvc:C,gos:P}=this,{values:B,value:W,eventKey:$}=i;if(Qn(B)){pi(58);return}this.startedByEnter=$!=null?$===Qt.ENTER:!1;let ie=!1;B.forEach(Be=>{let Qe={value:Be},st=C.formatValue(i.column,null,Be),Ct=st!=null;Qe.text=Ct?st:Be,o.addOption(Qe),ie=ie||W===Be}),ie?o.setValue(i.value,!0):i.values.length&&o.setValue(i.values[0],!0);let{valueListGap:ue,valueListMaxWidth:De,valueListMaxHeight:_e}=i;ue!=null&&o.setPickerGap(ue),_e!=null&&o.setPickerMaxHeight(_e),De!=null&&o.setPickerMaxWidth(De),P.get("editType")!=="fullRow"&&this.addManagedListeners(this.eSelect,{selectedItem:()=>i.stopEditing()})}afterGuiAttached(){this.focusAfterAttached&&this.eSelect.getFocusableElement().focus(),this.startedByEnter&&setTimeout(()=>{this.isAlive()&&this.eSelect.showPicker()})}focusIn(){this.eSelect.getFocusableElement().focus()}getValue(){return this.eSelect.getValue()}isPopup(){return!1}},OT=class{getTemplate(){return'<ag-input-text-field class="ag-cell-editor" data-ref="eInput"></ag-input-text-field>'}getAgComponents(){return[Gm]}init(i,o){this.eInput=i,this.params=o;let C=o.maxLength;C!=null&&i.setMaxLength(C)}getValue(){let{eInput:i,params:o}=this,C=i.getValue();return!Ai(C)&&!Ai(o.value)?o.value:o.parseValue(C)}getStartValue(){let i=this.params;return i.useFormatter||i.column.getColDef().refData?i.formatValue(i.value):i.value}setCaret(){let i=this.eInput,o=i.getValue(),C=Ai(o)&&o.length||0;C&&i.getInputElement().setSelectionRange(C,C)}},Tr=class extends Gh{constructor(){super(new OT)}};function Gc(i){return i.ctrlsSvc.getScrollFeature().getVScrollPosition()}function Cf(i){return i.ctrlsSvc.getScrollFeature().getHScrollPosition()}function sc(i,o,C="auto"){i.frameworkOverrides.wrapIncoming(()=>i.ctrlsSvc.getScrollFeature().ensureColumnVisible(o,C),"ensureVisible")}function _T(i,o,C){i.frameworkOverrides.wrapIncoming(()=>i.ctrlsSvc.getScrollFeature().ensureIndexVisible(o,C),"ensureVisible")}function ML(i,o,C=null){i.frameworkOverrides.wrapIncoming(()=>i.ctrlsSvc.getScrollFeature().ensureNodeVisible(o,C),"ensureVisible")}function FT(i){var o;(o=i.undoRedo)==null||o.undo("api")}function NT(i){var o;(o=i.undoRedo)==null||o.redo("api")}function Xv(i,o={}){let C=[];return i.rowRenderer.getCellCtrls(o.rowNodes,o.columns).forEach(P=>{var W;let B=(W=P.comp)==null?void 0:W.getCellEditor();B&&C.push(xh(B))}),C}function zT(i){let o=[];return i.rowRenderer.getAllCellCtrls().forEach(C=>{if(C.editing){let{cellPosition:P}=C;o.push(P)}}),o}function ek(i,o=!1){var C;(C=i.editSvc)==null||C.stopAllEditing(o)}function f1(i,o){let C=i.colModel.getCol(o.colKey);if(!C){pi(12,{colKey:o.colKey});return}let P={rowIndex:o.rowIndex,rowPinned:o.rowPinned||null,column:C};o.rowPinned==null&&_T(i,o.rowIndex),sc(i,o.colKey);let W=Eo(i,P);if(!W)return;let{focusSvc:$,gos:ie,editSvc:ue}=i,De=()=>{let Be=Fa(i),Qe=W.eGui;return Be!==Qe&&!!(Qe!=null&&Qe.contains(Be))},_e=ie.get("stopEditingWhenCellsLoseFocus")&&De();(_e||!$.isCellFocused(P))&&$.setFocusedCell(et(pe({},P),{forceBrowserFocus:_e,preventScrollOnBrowserFocus:!0})),ue==null||ue.startRowOrCellEdit(W,o.key)}function v1(i){var o,C;return(C=(o=i.undoRedo)==null?void 0:o.getCurrentUndoStackSize())!=null?C:0}function RS(i){var o,C;return(C=(o=i.undoRedo)==null?void 0:o.getCurrentRedoStackSize())!=null?C:0}var tk=class extends Sv{constructor(i){super('<div class="ag-popup-editor" tabindex="-1"/>'),this.params=i}postConstruct(){Pd(this.gos,this.getGui(),"popupEditorWrapper",!0),this.addKeyDownListener()}addKeyDownListener(){let i=this.getGui(),o=this.params,C=P=>{Ws(this.gos,P,o.node,o.column,!0)||o.onKeyDown(P)};this.addManagedElementListeners(i,{keydown:C})}},ik=class extends ei{constructor(){super(...arguments),this.beanName="editSvc"}startEditing(i,o=null,C=!1,P=null){var De;if(!i.isCellEditable()||i.editing)return!0;if(!i.comp)return i.onCompAttachedFuncs.push(()=>{this.startEditing(i,o,C,P)}),!0;let B=this.createCellEditorParams(i,o,C),W=i.column.getColDef(),$=sv(this.beans.userCompFactory,W,B),ie=($==null?void 0:$.popupFromSelector)!=null?$.popupFromSelector:!!W.cellEditorPopup,ue=($==null?void 0:$.popupPositionFromSelector)!=null?$.popupPositionFromSelector:W.cellEditorPopupPosition;return PS(i,!0,$),i.comp.setEditDetails($,ie,ue,this.gos.get("reactiveCustomComponents")),this.eventSvc.dispatchEvent(i.createEvent(P,"cellEditingStarted")),!((De=$==null?void 0:$.params)!=null&&De.suppressPreventDefault)}stopEditing(i,o=!1){if(i.onEditorAttachedFuncs=[],!i.editing)return!1;let{comp:C,column:P,rowNode:B}=i,{newValue:W,newValueExists:$}=BT(o,C),ie=this.beans.valueSvc.getValueForDisplay(P,B),ue=!1;return $&&(ue=Sf(i,ie,W,B,P)),PS(i,!1,void 0),C.setEditDetails(),i.updateAndFormatValue(!1),i.refreshCell({forceRefresh:!0,suppressFlash:!0}),this.eventSvc.dispatchEvent(et(pe({},i.createEvent(null,"cellEditingStopped")),{oldValue:ie,newValue:W,valueChanged:ue})),ue}handleColDefChanged(i){var C;let o=(C=i.comp)==null?void 0:C.getCellEditor();if(o!=null&&o.refresh){let{eventKey:P,cellStartedEdit:B}=i.editCompDetails.params,W=this.createCellEditorParams(i,P,B),$=i.column.getColDef(),ie=sv(this.beans.userCompFactory,$,W);o.refresh(ie.params)}}setFocusOutOnEditor(i){if(!i.editing)return;let o=i.comp.getCellEditor();o&&o.focusOut&&o.focusOut()}setFocusInOnEditor(i){if(!i.editing)return;let o=i.comp,C=o.getCellEditor();C!=null&&C.focusIn?C.focusIn():(i.focusCell(!0),i.onEditorAttachedFuncs.push(()=>{var P,B;return(B=(P=o.getCellEditor())==null?void 0:P.focusIn)==null?void 0:B.call(P)}))}stopEditingAndFocus(i,o=!1,C=!1){this.stopRowOrCellEdit(i),i.focusCell(!0),o||this.navigateAfterEdit(C,i.cellPosition)}createPopupEditorWrapper(i){return new tk(i)}stopAllEditing(i=!1){this.beans.rowRenderer.getAllRowCtrls().forEach(o=>this.stopRowEditing(o,i))}stopRowEditing(i,o=!1){var W;if(i.stoppingRowEdit)return;let C=i.getAllCellCtrls(),P=i.editing;i.stoppingRowEdit=!0;let B=!1;for(let $ of C){let ie=$.stopEditing(o);P&&!o&&!B&&ie&&(B=!0)}B&&this.eventSvc.dispatchEvent(i.createRowEvent("rowValueChanged")),P&&((W=this.beans.rowEditSvc)==null||W.setEditing(i,!1)),i.stoppingRowEdit=!1}addStopEditingWhenGridLosesFocus(i){if(!this.gos.get("stopEditingWhenCellsLoseFocus"))return;let o=C=>{let P=C.relatedTarget;if(ma(P)===null){this.stopAllEditing();return}let B=i.some(W=>W.contains(P))&&kx(this.gos,P);if(!B){let W=this.beans.popupSvc;B=!!W&&(W.getActivePopups().some($=>$.contains(P))||W.isElementWithinCustomPopup(P))}B||this.stopAllEditing()};i.forEach(C=>this.addManagedElementListeners(C,{focusout:o}))}setInlineEditingCss(i){let o=i.editing||i.getAllCellCtrls().some(C=>C.editing);i.forEachGui(void 0,C=>{C.rowComp.addOrRemoveCssClass("ag-row-inline-editing",o),C.rowComp.addOrRemoveCssClass("ag-row-not-inline-editing",!o)})}isCellEditable(i,o){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 i.isColumnFunc(o,i.colDef.editable)}startRowOrCellEdit(i,o,C=null){var P,B;return i.comp?this.gos.get("editType")==="fullRow"?(B=(P=this.beans.rowEditSvc)==null?void 0:P.startEditing(i.rowCtrl,o,i))!=null?B:!0:this.startEditing(i,o,!0,C):(i.onCompAttachedFuncs.push(()=>{this.startRowOrCellEdit(i,o,C)}),!0)}stopRowOrCellEdit(i,o=!1){this.gos.get("editType")==="fullRow"?this.stopRowEditing(i.rowCtrl,o):this.stopEditing(i,o)}createCellEditorParams(i,o,C){let{column:P,rowNode:B,eGui:W,cellPosition:{rowIndex:$}}=i,{valueSvc:ie,gos:ue}=this.beans;return ue.addGridCommonParams({value:ie.getValueForDisplay(P,B),eventKey:o,column:P,colDef:P.getColDef(),rowIndex:$,node:B,data:B.data,cellStartedEdit:C,onKeyDown:i.onKeyDown.bind(i),stopEditing:i.stopEditingAndFocus.bind(i),eGridCell:W,parseValue:De=>ie.parseValue(P,B,De,i.value),formatValue:i.formatValue.bind(i)})}navigateAfterEdit(i,o){var P;if(this.gos.get("enterNavigatesVerticallyAfterEdit")){let B=i?Qt.UP:Qt.DOWN;(P=this.beans.navigation)==null||P.navigateToNextCell(null,B,o,!1)}}};function PS(i,o,C){i.editCompDetails=C,i.editing!==o&&(i.editing=o)}function BT(i,o){let C={newValueExists:!1};if(i)return C;let P=o.getCellEditor();return!P||P.isCancelAfterEnd&&P.isCancelAfterEnd()?C:{newValue:P.getValue(),newValueExists:!0}}function Sf(i,o,C,P,B){if(C===o)return!1;i.suppressRefreshCell=!0;let W=P.setDataValue(B,C,"edit");return i.suppressRefreshCell=!1,W}var Zv=class extends ei{constructor(){super(...arguments),this.beanName="rowEditSvc"}startEditing(i,o=null,C=null,P=null){if(i.editing)return!0;let B=!0,W=!1,{editSvc:$}=this.beans;return i.getAllCellCtrls().forEach(ie=>{var De;let ue=ie===C;ue?B=(De=$==null?void 0:$.startEditing(ie,o,ue,P))!=null?De:!0:$==null||$.startEditing(ie,null,ue,P),W||(W=ie.editing)}),W&&this.setEditing(i,!0),B}setEditing(i,o){i.editing=o,i.forEachGui(void 0,P=>P.rowComp.addOrRemoveCssClass("ag-row-editing",o));let C=o?i.createRowEvent("rowEditingStarted"):i.createRowEvent("rowEditingStopped");this.eventSvc.dispatchEvent(C)}},Fu={moduleName:"EditCore",version:yi,beans:[ik,Zv],apiFunctions:{getCellEditorInstances:Xv,getEditingCells:zT,stopEditing:ek,startEditingCell:f1},dependsOn:[Eg],css:[bf]},mn={moduleName:"UndoRedoEdit",version:yi,beans:[g1],apiFunctions:{undoCellEditing:FT,redoCellEditing:NT,getCurrentUndoSize:v1,getCurrentRedoSize:RS},dependsOn:[Fu]},qr={moduleName:"TextEditor",version:yi,userComponents:{agCellEditor:Tr,agTextCellEditor:Tr},dependsOn:[Fu]},lc={moduleName:"NumberEditor",version:yi,userComponents:{agNumberCellEditor:{classImp:TS,params:{suppressPreventDefault:!0}}},dependsOn:[Fu]},nk={moduleName:"DateEditor",version:yi,userComponents:{agDateCellEditor:PT,agDateStringCellEditor:JM},dependsOn:[Fu]},ak={moduleName:"CheckboxEditor",version:yi,userComponents:{agCheckboxCellEditor:p1},dependsOn:[Fu]},Qb={moduleName:"SelectEditor",version:yi,userComponents:{agSelectCellEditor:m1},dependsOn:[Fu]},ok={moduleName:"LargeTextEditor",version:yi,userComponents:{agLargeTextCellEditor:ES},dependsOn:[Fu]},rk={moduleName:"CustomEditor",version:yi,dependsOn:[Fu]};function GT(i,o){var ie;if(!o.nodes.every(ue=>ue.rowPinned?(pi(59),!1):ue.id===void 0?(pi(60),!1):!0))return;let{nodes:P,source:B,newValue:W}=o,$=P;(ie=i.selectionSvc)==null||ie.setNodesSelected({nodes:$,source:B!=null?B:"api",newValue:W})}function jT(i,o,C="apiSelectAll"){var P;(P=i.selectionSvc)==null||P.selectAllRowNodes({source:C,selectAll:o})}function sk(i,o,C="apiSelectAll"){var P;(P=i.selectionSvc)==null||P.deselectAllRowNodes({source:C,selectAll:o})}function VT(i,o="apiSelectAllFiltered"){var C;(C=i.selectionSvc)==null||C.selectAllRowNodes({source:o,selectAll:"filtered"})}function lk(i,o="apiSelectAllFiltered"){var C;(C=i.selectionSvc)==null||C.deselectAllRowNodes({source:o,selectAll:"filtered"})}function Jb(i,o="apiSelectAllCurrentPage"){var C;(C=i.selectionSvc)==null||C.selectAllRowNodes({source:o,selectAll:"currentPage"})}function wf(i,o="apiSelectAllCurrentPage"){var C;(C=i.selectionSvc)==null||C.deselectAllRowNodes({source:o,selectAll:"currentPage"})}function jp(i){var o,C;return(C=(o=i.selectionSvc)==null?void 0:o.getSelectedNodes())!=null?C:[]}function eC(i){var o,C;return(C=(o=i.selectionSvc)==null?void 0:o.getSelectedRows())!=null?C:[]}var tC=class extends mb{constructor(){super(...arguments),this.beanName="selectionSvc",this.selectedNodes=new Map}postConstruct(){super.postConstruct();let{gos:i}=this;this.mode=Uo(i),this.groupSelectsDescendants=By(i),this.groupSelectsFiltered=gh(i)==="filteredDescendants",this.addManagedPropertyListeners(["groupSelectsChildren","groupSelectsFiltered","rowSelection"],()=>{let o=By(i),C=Uo(i),P=gh(i)==="filteredDescendants";(o!==this.groupSelectsDescendants||P!==this.groupSelectsFiltered||C!==this.mode)&&(this.deselectAllRowNodes({source:"api"}),this.groupSelectsDescendants=o,this.groupSelectsFiltered=P,this.mode=C)}),this.addManagedEventListeners({rowSelected:this.onRowSelected.bind(this)})}destroy(){super.destroy(),this.resetNodes()}handleSelectionEvent(i,o,C){if(this.isRowSelectionBlocked(o))return 0;let P=this.inferNodeSelections(o,i.shiftKey,i.metaKey||i.ctrlKey,C);return P==null?0:"select"in P?(P.reset?this.resetNodes():this.selectRange(P.deselect,!1,C),this.selectRange(P.select,!0,C)):this.setNodesSelected({nodes:[P.node],newValue:P.newValue,clearSelection:P.clearSelection,event:i,source:C})}setNodesSelected({newValue:i,clearSelection:o,suppressFinishActions:C,nodes:P,event:B,source:W}){var ie;if(!Ec(this.gos)&&i)return pi(132),0;if(P.length===0)return 0;if(P.length>1&&!this.isMultiSelect())return pi(130),0;let $=0;for(let ue=0;ue<P.length;ue++){let De=P[ue],_e=De.footer?De.sibling:De,Be=this.groupSelectsFiltered&&_e.group;if(_e.rowPinned){pi(59);continue}if(_e.id===void 0){pi(60);continue}Be||this.selectRowNode(_e,i,B,W)&&$++,this.groupSelectsDescendants&&((ie=_e.childrenAfterGroup)!=null&&ie.length)&&($+=this.selectChildren(_e,i,W))}return C||(i&&(o||!this.isMultiSelect())&&($+=this.clearOtherNodes(P[0],W)),$>0&&(this.updateGroupsFromChildrenSelections(W),this.dispatchSelectionChanged(W))),$}selectRange(i,o,C){let P=0;return i.forEach(B=>{if(B.group&&this.groupSelectsDescendants)return;this.selectRowNode(B,o,void 0,C)&&P++}),P>0&&(this.updateGroupsFromChildrenSelections(C),this.dispatchSelectionChanged(C)),P}selectChildren(i,o,C){let P=this.groupSelectsFiltered?i.childrenAfterAggFilter:i.childrenAfterGroup;return P?this.setNodesSelected({newValue:o,clearSelection:!1,suppressFinishActions:!0,source:C,nodes:P}):0}getSelectedNodes(){return Array.from(this.selectedNodes.values())}getSelectedRows(){let i=[];return this.selectedNodes.forEach(o=>i.push(o.data)),i}getSelectionCount(){return this.selectedNodes.size}filterFromSelection(i){let o=new Map;this.selectedNodes.forEach((C,P)=>{i(C)&&o.set(P,C)}),this.selectedNodes=o}updateGroupsFromChildrenSelections(i,o){if(!this.groupSelectsDescendants)return!1;let{gos:C,rowModel:P}=this.beans;if(!_o(C,P))return!1;let B=P.rootNode;if(!B)return!1;o||(o=new Kd(!0,B),o.active=!1);let W=!1;return o.forEachChangedNodeDepthFirst($=>{if($!==B){let ie=this.calculateSelectedFromChildren($);W=this.selectRowNode($,ie===null?!1:ie,void 0,i)||W}}),W}clearOtherNodes(i,o){let C=new Map,P=0;return this.selectedNodes.forEach(B=>{if(B&&B.id!==i.id){let W=this.selectedNodes.get(B.id);P+=this.setNodesSelected({nodes:[W],newValue:!1,clearSelection:!1,suppressFinishActions:!0,source:o}),this.groupSelectsDescendants&&B.parent&&C.set(B.parent.id,B.parent)}}),C.forEach(B=>{let W=this.calculateSelectedFromChildren(B);this.selectRowNode(B,W===null?!1:W,void 0,o)}),P}onRowSelected(i){let o=i.node;this.groupSelectsDescendants&&o.group||(o.isSelected()?this.selectedNodes.set(o.id,o):this.selectedNodes.delete(o.id))}syncInRowNode(i,o){this.syncInOldRowNode(i,o),this.syncInNewRowNode(i)}createDaemonNode(i){if(!i.id)return;let o=new Xo(this.beans);return o.id=i.id,o.data=i.data,o.__daemon=!0,o.__selected=i.__selected,o.level=i.level,o}syncInOldRowNode(i,o){o&&i.id!==o.id&&this.selectedNodes.get(o.id)==i&&this.selectedNodes.set(o.id,o)}syncInNewRowNode(i){this.selectedNodes.has(i.id)?(i.__selected=!0,this.selectedNodes.set(i.id,i)):i.__selected=!1}reset(i){let o=this.getSelectionCount();this.resetNodes(),o&&this.dispatchSelectionChanged(i)}resetNodes(){this.selectedNodes.forEach(i=>{this.selectRowNode(i,!1)}),this.selectedNodes.clear()}getBestCostNodeSelection(){let{gos:i,rowModel:o}=this.beans;if(!_o(i,o))return;let C=o.getTopLevelNodes();if(C===null)return;let P=[];function B(W){for(let $=0,ie=W.length;$<ie;$++){let ue=W[$];ue.isSelected()?P.push(ue):ue.group&&ue.childrenAfterGroup&&B(ue.childrenAfterGroup)}}return B(C),P}isEmpty(){return this.getSelectionCount()===0}deselectAllRowNodes(i){let o=W=>this.selectRowNode(W.footer?W.sibling:W,!1,void 0,P),C=_o(this.gos),{source:P,selectAll:B}=i;if(B==="currentPage"||B==="filtered"){if(!C){Ea(102);return}this.getNodesToSelect(B).forEach(o)}else this.selectedNodes.forEach(o),this.reset(P);C&&this.groupSelectsDescendants&&this.updateGroupsFromChildrenSelections(P),this.dispatchSelectionChanged(P)}getSelectedCounts(i){let o=0,C=0,P=B=>{this.groupSelectsDescendants&&B.group||(B.isSelected()?o++:B.selectable&&C++)};return this.getNodesToSelect(i).forEach(P),{selectedCount:o,notSelectedCount:C}}getSelectAllState(i){let{selectedCount:o,notSelectedCount:C}=this.getSelectedCounts(i);return o===0&&C===0?!1:o>0&&C>0?null:o>0}hasNodesToSelect(i){return this.getNodesToSelect(i).filter(o=>o.selectable).length>0}getNodesToSelect(i){if(!this.canSelectAll())return[];let o=[];if(i==="currentPage")return this.forEachNodeOnPage(P=>{if(!P.group){o.push(P);return}if(!P.expanded&&!P.footer){let B=W=>{var $;o.push(W),($=W.childrenAfterFilter)!=null&&$.length&&W.childrenAfterFilter.forEach(B)};B(P);return}this.groupSelectsDescendants||o.push(P)}),o;let C=this.beans.rowModel;return i==="filtered"?(C.forEachNodeAfterFilter(P=>{o.push(P)}),o):(C.forEachNode(P=>{o.push(P)}),o)}forEachNodeOnPage(i){let{pageBounds:o,rowModel:C}=this.beans,P=o.getFirstRow(),B=o.getLastRow();for(let W=P;W<=B;W++){let $=C.getRow(W);$&&i($)}}selectAllRowNodes(i){let{gos:o}=this;if(!Ec(o)){pi(132);return}if($C(o)&&!Mm(o)){pi(130);return}if(!this.canSelectAll())return;let{source:C,selectAll:P}=i;this.getNodesToSelect(P).forEach(B=>{this.selectRowNode(B.footer?B.sibling:B,!0,void 0,C)}),_o(o)&&this.groupSelectsDescendants&&this.updateGroupsFromChildrenSelections(C),this.dispatchSelectionChanged(C)}getSelectionState(){let i=[];return this.selectedNodes.forEach(o=>{o!=null&&o.id&&i.push(o.id)}),i.length?i:null}setSelectionState(i,o){if(!Array.isArray(i)){Ea(103);return}let C=new Set(i),P=[];this.beans.rowModel.forEachNode(B=>{C.has(B.id)&&P.push(B)}),this.setNodesSelected({newValue:!0,nodes:P,source:o})}canSelectAll(){let{gos:i,rowModel:o}=this.beans;return _o(i)?!0:(Ea(100,{rowModelType:o.getType()}),!1)}updateSelectable(i){var ue;let{gos:o,rowModel:C}=this.beans;if(!Ec(o))return;let P="selectableChanged",B=i!==void 0,W=_o(o)&&this.groupSelectsDescendants,$=[],ie=De=>{var Be,Qe;if(B&&!De.group)return;if(W&&De.group){let st=(Qe=(Be=De.childrenAfterGroup)==null?void 0:Be.some(Ct=>Ct.selectable))!=null?Qe:!1;this.setRowSelectable(De,st,!0);return}!this.updateRowSelectable(De,!0)&&De.isSelected()&&$.push(De)};if(W){if(i===void 0){let De=C.rootNode;i=De?new Kd(!1,De):void 0}i==null||i.forEachChangedNodeDepthFirst(ie,!B,!B)}else C.forEachNode(ie);$.length&&this.setNodesSelected({nodes:$,newValue:!1,source:P}),!B&&W&&((ue=this.updateGroupsFromChildrenSelections)==null||ue.call(this,P))}updateSelectableAfterGrouping(i){var o;this.updateSelectable(i),this.groupSelectsDescendants&&((o=this.updateGroupsFromChildrenSelections)!=null&&o.call(this,"rowGroupChanged",i))&&this.eventSvc.dispatchEvent({type:"selectionChanged",source:"rowGroupChanged"})}},y1={moduleName:"SharedRowSelection",version:yi,beans:[RP],apiFunctions:{setNodesSelected:GT,selectAll:jT,deselectAll:sk,selectAllFiltered:VT,deselectAllFiltered:lk,selectAllOnCurrentPage:Jb,deselectAllOnCurrentPage:wf,getSelectedNodes:jp,getSelectedRows:eC}},Fg={moduleName:"RowSelection",version:yi,rowModels:["clientSide","infinite","viewport"],beans:[tC],dependsOn:[y1]};function cc(i){var o;(o=i.expansionSvc)==null||o.expandAll(!0)}function El(i){var o;(o=i.expansionSvc)==null||o.expandAll(!1)}function Vp(i){let o=qd(i),C=mS(i);o?o.onRowHeightChanged():C&&C.onRowHeightChanged()}function LS(i,o,C){var W;let P=mS(i);if(P){if(((W=i.rowGroupColsSvc)==null?void 0:W.columns.length)===0){if(o<0){Ea(238);return}P.setRowCount(o,C);return}Ea(28);return}let B=pS(i);if(B){B.setRowCount(o,C);return}}function ck(i){var o,C;return Jc(i.gos)?i.rowModel.getBlockStates():(C=(o=i.rowNodeBlockLoader)==null?void 0:o.getBlockState())!=null?C:{}}function b1(i){return i.rowModel.isLastRowIndexKnown()}var C1={moduleName:"CsrmSsrmSharedApi",version:yi,apiFunctions:{expandAll:cc,collapseAll:El,onRowHeightChanged:Vp}},OS={moduleName:"SsrmInfiniteSharedApi",version:yi,apiFunctions:{setRowCount:LS,getCacheBlockState:ck,isLastRowIndexKnown:b1}},dk=class extends ei{constructor(){super(...arguments),this.beanName="alignedGridsSvc",this.consuming=!1}getAlignedGridApis(){var P;let i=(P=this.gos.get("alignedGrids"))!=null?P:[],o=typeof i=="function";return typeof i=="function"&&(i=i()),i.map(B=>{var $;if(!B){Ea(18),o||Ea(20);return}if(this.isGridApi(B))return B;let W=B;return"current"in W?($=W.current)==null?void 0:$.api:(W.api||Ea(19),W.api)}).filter(B=>!!B&&!B.isDestroyed())}isGridApi(i){return!!i&&!!i.dispatchEvent}postConstruct(){let i=this.fireColumnEvent.bind(this);this.addManagedEventListeners({columnMoved:i,columnVisible:i,columnPinned:i,columnGroupOpened:i,columnResized:i,bodyScroll:this.fireScrollEvent.bind(this),alignedGridColumn:({event:o})=>this.onColumnEvent(o),alignedGridScroll:({event:o})=>this.onScrollEvent(o)})}fireEvent(i){this.consuming||this.getAlignedGridApis().forEach(o=>{o.isDestroyed()||o.dispatchEvent(i)})}onEvent(i){this.consuming=!0,i(),this.consuming=!1}fireColumnEvent(i){this.fireEvent({type:"alignedGridColumn",event:i})}fireScrollEvent(i){i.direction==="horizontal"&&this.fireEvent({type:"alignedGridScroll",event:i})}onScrollEvent(i){this.onEvent(()=>{this.beans.ctrlsSvc.getScrollFeature().setHorizontalScrollPosition(i.left,!0)})}extractDataFromEvent(i,o){let C=[];return i.columns?i.columns.forEach(P=>{C.push(o(P))}):i.column&&C.push(o(i.column)),C}getMasterColumns(i){return this.extractDataFromEvent(i,o=>o)}getColumnIds(i){return this.extractDataFromEvent(i,o=>o.getColId())}onColumnEvent(i){this.onEvent(()=>{switch(i.type){case"columnMoved":case"columnVisible":case"columnPinned":case"columnResized":{this.processColumnEvent(i);break}case"columnGroupOpened":{this.processGroupOpenedEvent(i);break}case"columnPivotChanged":pi(21);break}})}processGroupOpenedEvent(i){let{colGroupSvc:o}=this.beans;o&&i.columnGroups.forEach(C=>{let P=null;C&&(P=o.getProvidedColGroup(C.getGroupId())),!(C&&!P)&&o.setColumnGroupOpened(P,C.isExpanded(),"alignedGridChanged")})}processColumnEvent(i){var _e;let o=i.column,C=null,P=this.beans,{colResize:B,ctrlsSvc:W,colModel:$}=P;if(o&&(C=$.getColDefCol(o.getColId())),o&&!C)return;let ie=this.getMasterColumns(i);switch(i.type){case"columnMoved":{let Qe=i.api.getColumnState().map(st=>({colId:st.colId}));td(P,{state:Qe,applyOrder:!0},"alignedGridChanged")}break;case"columnVisible":{let Qe=i.api.getColumnState().map(st=>({colId:st.colId,hide:st.hide}));td(P,{state:Qe},"alignedGridChanged")}break;case"columnPinned":{let Qe=i.api.getColumnState().map(st=>({colId:st.colId,pinned:st.pinned}));td(P,{state:Qe},"alignedGridChanged")}break;case"columnResized":{let Be=i,Qe={};ie.forEach(st=>{Qe[st.getId()]={key:st.getColId(),newWidth:st.getActualWidth()}}),(_e=Be.flexColumns)==null||_e.forEach(st=>{Qe[st.getId()]&&delete Qe[st.getId()]}),B==null||B.setColumnWidths(Object.values(Qe),!1,Be.finished,"alignedGridChanged");break}}let De=W.getGridBodyCtrl().isVerticalScrollShowing();this.getAlignedGridApis().forEach(Be=>{Be.setGridOption("alwaysShowVerticalScroll",De)})}},S1={moduleName:"AlignedGrids",version:yi,beans:[dk]},uk=class extends bp{constructor(){super(...arguments),this.beanName="csrmNodeSvc"}},_S=class{constructor(){this.removals=new Set,this.updates=new Map}remove(i){this.removals.add(i),this.updates.delete(i)}update(i){this.updates.has(i)||(this.removals.delete(i),this.updates.set(i,!1))}add(i){this.removals.delete(i),this.updates.set(i,!0)}};function kL(i){if(Qn(i.childrenAfterSort))return;let o=i.childrenAfterSort;for(let C=0;C<o.length;C++){let P=o[C],B=C===0,W=C===i.childrenAfterSort.length-1;P.setFirstChild(B),P.lastChild!==W&&(P.lastChild=W,P.dispatchRowEvent("lastChildChanged")),P.childIndex!==C&&(P.childIndex=C,P.dispatchRowEvent("childIndexChanged"))}}function $v(i){i.sibling&&(i.sibling.childrenAfterSort=i.childrenAfterSort),kL(i)}var hk=class extends ei{constructor(){super(...arguments),this.beanName="sortStage",this.refreshProps=new Set(["postSortRows","groupDisplayType","accentedSort"]),this.step="sort"}execute(i){let o=this.beans,C=o.sortSvc.getSortOptions(),P=Ai(C)&&C.length>0,B=P&&!!i.changedRowNodes&&this.gos.get("deltaSort"),W=C.some(({column:$})=>hl(o.gos)?$.isPrimary()&&$.isRowGroupActive():!!$.getColDef().showRowGroup);this.sort(o,C,P,B,i.changedRowNodes,i.changedPath,W)}sort(i,o,C,P,B,W,$){let{gos:ie,colModel:ue,rowGroupColsSvc:De,groupHideOpenParentsSvc:_e,rowNodeSorter:Be}=i,Qe=ie.get("groupMaintainOrder"),st=ue.getCols().some(Kt=>Kt.isRowGroupActive()),Ct=ue.isPivotMode(),Ot=ie.getCallback("postSortRows"),Pt=Kt=>{var Mi;_e==null||_e.pullDownGroupDataForHideOpenParents(Kt.childrenAfterAggFilter,!0);let ti=Ct&&Kt.leafGroup,Jt=Qe&&st&&!Kt.leafGroup&&!$,ai;if(Jt){let qi=(Mi=De==null?void 0:De.columns)==null?void 0:Mi[Kt.level+1],Fn=(qi==null?void 0:qi.getSort())===null,Xn=Kt.childrenAfterAggFilter.slice(0);if(Kt.childrenAfterSort&&!Fn){let Ga={};Kt.childrenAfterSort.forEach((ba,Qa)=>{Ga[ba.id]=Qa}),Xn.sort((ba,Qa)=>{var gn,ja;return((gn=Ga[ba.id])!=null?gn:0)-((ja=Ga[Qa.id])!=null?ja:0)})}ai=Xn}else!C||ti?ai=Kt.childrenAfterAggFilter.slice(0):P&&B?ai=gk(Be,Kt,B,W,o):ai=Be.doFullSort(Kt.childrenAfterAggFilter,o);if(Kt.childrenAfterSort=ai,$v(Kt),Ot){let qi={nodes:Kt.childrenAfterSort};Ot(qi)}};W==null||W.forEachChangedNodeDepthFirst(Pt)}};function gk(i,o,C,P,B){let W=o.childrenAfterAggFilter,$=o.childrenAfterSort;if(!$)return i.doFullSort(W,B);let ie=new Set,ue=[],De=C.updates;for(let Be=0,Qe=W.length;Be<Qe;++Be){let st=W[Be];De.has(st)||P&&!P.canSkip(st)?ue.push({currentPos:ue.length,rowNode:st}):ie.add(st.id)}let _e=$.filter(Be=>ie.has(Be.id)).map((Be,Qe)=>({currentPos:Qe,rowNode:Be}));return ue.sort((Be,Qe)=>i.compareRowNodes(B,Be,Qe)),pk(i,B,ue,_e)}function pk(i,o,C,P){let B=[],W=0,$=0,ie=C.length,ue=P.length;for(;W<ie&&$<ue;){let De=C[W],_e=P[$],Be=i.compareRowNodes(o,De,_e),Qe;Be<0?(Qe=De,++W):(Qe=_e,++$),B.push(Qe.rowNode)}for(;W<ie;)B.push(C[W++].rowNode);for(;$<ue;)B.push(P[$++].rowNode);return B}var mk=class extends ei{constructor(){super(...arguments),this.beanName="rowModel",this.onRowHeightChanged_debounced=zr(this,this.onRowHeightChanged.bind(this),100),this.rootNode=null,this.rowsToDisplay=[],this.started=!1,this.shouldSkipSettingDataOnStart=!1,this.isRefreshingModel=!1,this.rowNodesCountReady=!1,this.rowCountReady=!1}wireBeans(i){this.colModel=i.colModel,this.valueCache=i.valueCache,this.filterStage=i.filterStage,this.sortStage=i.sortStage,this.flattenStage=i.flattenStage,this.groupStage=i.groupStage,this.aggStage=i.aggStage,this.pivotStage=i.pivotStage,this.filterAggStage=i.filterAggStage}postConstruct(){this.orderedStages=[this.groupStage,this.filterStage,this.pivotStage,this.aggStage,this.sortStage,this.filterAggStage,this.flattenStage].filter(C=>!!C);let i=this.refreshModel.bind(this,{step:"group"}),o=this.refreshModel.bind(this,{step:"group",afterColumnsChanged:!0,keepRenderedRows:!0,animate:!this.gos.get("suppressAnimationFrame")});this.addManagedEventListeners({newColumnsLoaded:o,columnRowGroupChanged:i,columnValueChanged:this.onValueChanged.bind(this),columnPivotChanged:this.refreshModel.bind(this,{step:"pivot"}),filterChanged:this.onFilterChanged.bind(this),sortChanged:this.onSortChanged.bind(this),columnPivotModeChanged:i,gridStylesChanged:this.onGridStylesChanges.bind(this),gridReady:this.onGridReady.bind(this)}),this.addPropertyListeners(),this.rootNode=new Xo(this.beans),this.initRowManager()}initRowManager(){let{gos:i,beans:o,nodeManager:C}=this,P=i.get("treeData"),B=i.get("treeDataChildrenField"),W=B||P,$;W&&($=B?o.csrmChildrenTreeNodeSvc:o.csrmPathTreeNodeSvc),$||($=o.csrmNodeSvc),C!==$&&(C==null||C.deactivate(),this.nodeManager=$),$.activate(this.rootNode)}addPropertyListeners(){let i=["treeData","treeDataChildrenField",...this.orderedStages.flatMap(({refreshProps:o})=>[...o])];this.addManagedPropertyListeners(i,o=>{var P;let C=(P=o.changeSet)==null?void 0:P.properties;C&&this.onPropChange(C)}),this.addManagedPropertyListener("rowData",()=>this.onPropChange(["rowData"])),this.addManagedPropertyListener("rowHeight",()=>this.resetRowHeights())}start(){this.started=!0,this.shouldSkipSettingDataOnStart?this.refreshModel({step:"group",newData:!0,rowDataUpdated:!0}):this.setInitialData()}setInitialData(){this.gos.get("rowData")&&(this.shouldSkipSettingDataOnStart=!0,this.onPropChange(["rowData"]))}ensureRowHeightsValid(i,o,C,P){let B,W=!1;do{B=!1;let $=this.getRowIndexAtPixel(i),ie=this.getRowIndexAtPixel(o),ue=Math.max($,C),De=Math.min(ie,P);for(let _e=ue;_e<=De;_e++){let Be=this.getRow(_e);if(Be.rowHeightEstimated){let Qe=uh(this.beans,Be);Be.setRowHeight(Qe.height),B=!0,W=!0}}B&&this.setRowTopAndRowIndex()}while(B);return W}onPropChange(i){var De,_e,Be;if(!this.rootNode)return;let o=this.gos,C=new Set(i),P={step:"nothing",changedProps:C},B=C.has("rowData"),W=C.has("treeData"),ie=C.has("treeDataChildrenField")||W&&!o.get("treeDataChildrenField"),ue;if(W&&(P.step="group"),(ie||B)&&(ue=o.get("rowData"),ue!=null&&!Array.isArray(ue)&&(ue=null,pi(1))),ie&&(B||(ue=(_e=(De=this.nodeManager)==null?void 0:De.extractRowData())!=null?_e:ue),this.initRowManager()),ue&&(!ie&&this.started&&!this.isEmpty()&&ue.length>0&&o.exists("getRowId")&&!o.get("resetRowDataOnUpdate")?(P.keepRenderedRows=!0,P.animate=!this.gos.get("suppressAnimationFrame"),P.changedRowNodes=new _S,this.nodeManager.setImmutableRowData(P,ue)):(P.step="group",P.rowDataUpdated=!0,P.newData=!0,(Be=this.beans.selectionSvc)==null||Be.reset("rowDataChanged"),this.rowNodesCountReady=!0,this.nodeManager.setNewRowData(ue))),P.step==="nothing"){for(let{refreshProps:Qe,step:st}of this.orderedStages)if(i.some(Ct=>Qe.has(Ct))){P.step=st;break}}P.step!=="nothing"&&this.refreshModel(P)}setRowTopAndRowIndex(){let{beans:i}=this,o=i.environment.getDefaultRowHeight(),C=0,P=new Set,B=Fo(this.gos,"normal"),W=this.rowsToDisplay;for(let $=0,ie=W.length;$<ie;++$){let ue=W[$];if(ue.id!=null&&P.add(ue.id),ue.rowHeight==null){let De=uh(i,ue,B,o);ue.setRowHeight(De.height,De.estimated)}ue.setRowTop(C),ue.setRowIndex($),C+=ue.rowHeight}return P}clearRowTopAndRowIndex(i,o){let C=i.active,P=W=>{W&&W.id!=null&&!o.has(W.id)&&W.clearRowTopAndRowIndex()},B=W=>{if(W!==null&&(P(W),P(W.detailNode),P(W.sibling),W.hasChildren()&&W.childrenAfterGroup)){let $=W.level==-1;C&&!$&&!W.expanded||W.childrenAfterGroup.forEach(B)}};B(this.rootNode)}ensureRowsAtPixel(i,o,C=0){var ie;let P=this.getRowIndexAtPixel(o),B=this.getRow(P),W=!this.gos.get("suppressAnimationFrame");if(B===i[0])return!1;let $=(ie=this.rootNode)==null?void 0:ie.allLeafChildren;return $?(i.forEach(ue=>{qo($,ue)}),i.forEach((ue,De)=>{$.splice(Math.max(P+C,0)+De,0,ue)}),i.forEach((ue,De)=>{ue.sourceRowIndex=De}),this.refreshModel({step:"group",keepRenderedRows:!0,animate:W,rowNodesOrderChanged:!0}),!0):!1}highlightRowAtPixel(i,o){let C=o!=null?this.getRowIndexAtPixel(o):null,P=C!=null?this.getRow(C):null;if(!P||!i||o==null){this.clearHighlightedRow();return}let B=this.getHighlightPosition(o,P),W=this.isHighlightingCurrentPosition(i,P,B),$=this.lastHighlightedRow!=null&&this.lastHighlightedRow!==P;(W||$)&&(this.clearHighlightedRow(),W)||(this.setRowNodeHighlighted(P,B),this.lastHighlightedRow=P)}setRowNodeHighlighted(i,o){i.highlighted!==o&&(i.highlighted=o,i.dispatchRowEvent("rowHighlightChanged"))}getHighlightPosition(i,o){if(!o){let B=this.getRowIndexAtPixel(i);if(o=this.getRow(B||0),!o)return"Below"}let{rowTop:C,rowHeight:P}=o;return i-C<P/2?"Above":"Below"}getLastHighlightedRowNode(){return this.lastHighlightedRow}isHighlightingCurrentPosition(i,o,C){if(i===o)return!0;let P=C==="Above"?-1:1;return this.getRow(o.rowIndex+P)===i}clearHighlightedRow(){this.lastHighlightedRow&&(this.setRowNodeHighlighted(this.lastHighlightedRow,null),this.lastHighlightedRow=null)}isLastRowIndexKnown(){return!0}getRowCount(){return this.rowsToDisplay?this.rowsToDisplay.length:0}getTopLevelRowCount(){let i=this.rootNode;if(!i||this.rowsToDisplay.length===0)return 0;if(this.rowsToDisplay&&this.rowsToDisplay[0]===i)return 1;let C=i.childrenAfterAggFilter,P=i.sibling?1:0;return(C?C.length:0)+P}getTopLevelRowDisplayedIndex(i){let{rootNode:o,rowsToDisplay:C}=this;if(!o||!C.length||C[0]===o)return i;let{childrenAfterSort:B}=o,W=ie=>{let ue=B[ie];if(this.gos.get("groupHideOpenParents"))for(;ue.expanded&&ue.childrenAfterSort&&ue.childrenAfterSort.length>0;)ue=ue.childrenAfterSort[0];return ue.rowIndex},{footerSvc:$}=this.beans;return $?$.getTopDisplayIndex(C,i,B,W):W(i)}getRowBounds(i){let o=this.rowsToDisplay[i];return o?{rowTop:o.rowTop,rowHeight:o.rowHeight}:null}onRowGroupOpened(){let i=jn(this.gos);this.refreshModel({step:"map",keepRenderedRows:!0,animate:i})}onFilterChanged(i){if(i.afterDataChange)return;let o=jn(this.gos),P=i.columns.length===0||i.columns.some(B=>B.isPrimary())?"filter":"filter_aggregates";this.refreshModel({step:P,keepRenderedRows:!0,animate:o})}onSortChanged(){let i=jn(this.gos);this.refreshModel({step:"sort",keepRenderedRows:!0,animate:i})}getType(){return"clientSide"}onValueChanged(){this.refreshModel({step:this.colModel.isPivotActive()?"pivot":"aggregate"})}createChangePath(i){let o=!(i!=null&&i.length),C=new Kd(!1,this.rootNode);return o&&(C.active=!1),C}isSuppressModelUpdateAfterUpdateTransaction(i){if(!this.gos.get("suppressModelUpdateAfterUpdateTransaction"))return!1;let o=i.rowNodeTransactions;return o?!o.some(B=>B.add!=null&&B.add.length>0||B.remove!=null&&B.remove.length>0):!1}refreshModel(i){var B,W,$;if(!this.rootNode)return;let o=i.rowNodeTransactions,C=(B=i.changedPath)!=null?B:i.changedPath=this.createChangePath(o);if(($=(W=this.nodeManager).refreshModel)==null||$.call(W,i),this.eventSvc.dispatchEvent({type:"beforeRefreshModel",params:i}),!this.started||(i.rowDataUpdated&&this.eventSvc.dispatchEvent({type:"rowDataUpdated"}),this.isRefreshingModel||this.colModel.changeEventsDispatching||this.isSuppressModelUpdateAfterUpdateTransaction(i)))return;switch(this.isRefreshingModel=!0,i.step){case"group":this.doRowGrouping(i.rowNodeTransactions,i.changedRowNodes,C,!!i.rowNodesOrderChanged,!!i.afterColumnsChanged);case"filter":this.doFilter(C);case"pivot":this.doPivot(C);case"aggregate":this.doAggregate(C);case"filter_aggregates":this.doFilterAggregates(C);case"sort":this.doSort(i.changedRowNodes,C);case"map":this.doRowsToDisplay()}let P=this.setRowTopAndRowIndex();this.clearRowTopAndRowIndex(C,P),this.isRefreshingModel=!1,this.eventSvc.dispatchEvent({type:"modelUpdated",animate:i.animate,keepRenderedRows:i.keepRenderedRows,newData:i.newData,newPage:!1,keepUndoRedoStack:i.keepUndoRedoStack})}isEmpty(){var i,o,C;return!((o=(i=this.rootNode)==null?void 0:i.allLeafChildren)!=null&&o.length)||!((C=this.colModel)!=null&&C.ready)}isRowsToRender(){return this.rowsToDisplay.length>0}getNodesInRangeForSelection(i,o){let C=!1,P=!1,B=[],W=By(this.gos);return this.forEachNodeAfterFilterAndSort($=>{if(P)return;if(C&&($===o||$===i)&&(P=!0,$.group&&W)){B.push(...$.allLeafChildren);return}if(!C){if($!==o&&$!==i)return;C=!0}if(!$.group||!W){B.push($);return}}),B}getTopLevelNodes(){var i,o;return(o=(i=this.rootNode)==null?void 0:i.childrenAfterGroup)!=null?o:null}getRow(i){return this.rowsToDisplay[i]}isRowPresent(i){return this.rowsToDisplay.indexOf(i)>=0}getRowIndexAtPixel(i){let o=this.rowsToDisplay;if(this.isEmpty()||o.length===0)return-1;let C=0,P=o.length-1;if(i<=0)return 0;if(Sa(o).rowTop<=i)return o.length-1;let W=-1,$=-1;for(;;){let ie=Math.floor((C+P)/2),ue=o[ie];if(this.isRowInPixel(ue,i)||(ue.rowTop<i?C=ie+1:ue.rowTop>i&&(P=ie-1),W===C&&$===P))return ie;W=C,$=P}}isRowInPixel(i,o){let C=i.rowTop,P=i.rowTop+i.rowHeight;return C<=o&&P>o}forEachLeafNode(i){var o,C;(C=(o=this.rootNode)==null?void 0:o.allLeafChildren)==null||C.forEach((P,B)=>i(P,B))}forEachNode(i,o=!1){var C;this.recursivelyWalkNodesAndCallback({nodes:[...((C=this.rootNode)==null?void 0:C.childrenAfterGroup)||[]],callback:i,recursionType:0,index:0,includeFooterNodes:o})}forEachNodeAfterFilter(i,o=!1){var C;this.recursivelyWalkNodesAndCallback({nodes:[...((C=this.rootNode)==null?void 0:C.childrenAfterAggFilter)||[]],callback:i,recursionType:1,index:0,includeFooterNodes:o})}forEachNodeAfterFilterAndSort(i,o=!1){var C;this.recursivelyWalkNodesAndCallback({nodes:[...((C=this.rootNode)==null?void 0:C.childrenAfterSort)||[]],callback:i,recursionType:2,index:0,includeFooterNodes:o})}forEachPivotNode(i,o=!1){let C=this.rootNode;C&&this.recursivelyWalkNodesAndCallback({nodes:[C],callback:i,recursionType:3,index:0,includeFooterNodes:o})}recursivelyWalkNodesAndCallback(i){let{nodes:o,callback:C,recursionType:P,includeFooterNodes:B}=i,{index:W}=i,{footerSvc:$}=this.beans;$==null||$.addNodes(i,o,C,B,this.rootNode,"top");for(let ie=0;ie<o.length;ie++){let ue=o[ie];if(C(ue,W++),ue.hasChildren()&&!ue.footer){let De=null;switch(P){case 0:De=ue.childrenAfterGroup;break;case 1:De=ue.childrenAfterAggFilter;break;case 2:De=ue.childrenAfterSort;break;case 3:De=ue.leafGroup?null:ue.childrenAfterSort;break}De&&(W=this.recursivelyWalkNodesAndCallback({nodes:[...De],callback:C,recursionType:P,index:W,includeFooterNodes:B}))}}return $==null||$.addNodes(i,o,C,B,this.rootNode,"bottom"),W}doAggregate(i){var C;let o=this.rootNode;o&&((C=this.aggStage)==null||C.execute({rowNode:o,changedPath:i}))}doFilterAggregates(i){let o=this.rootNode;this.filterAggStage?this.filterAggStage.execute({rowNode:o,changedPath:i}):o.childrenAfterAggFilter=o.childrenAfterFilter}doSort(i,o){let{groupHideOpenParentsSvc:C}=this.beans;this.sortStage?this.sortStage.execute({rowNode:this.rootNode,changedRowNodes:i,changedPath:o}):o.forEachChangedNodeDepthFirst(P=>{C==null||C.pullDownGroupDataForHideOpenParents(P.childrenAfterAggFilter,!0),P.childrenAfterSort=P.childrenAfterAggFilter.slice(0),$v(P)}),C==null||C.updateGroupDataForHideOpenParents(o)}doRowGrouping(i,o,C,P,B){let W=this.nodeManager.treeData,$=this.rootNode;if(!W){let ie=this.groupStage;if(ie)ie.execute({rowNode:$,changedPath:C,changedRowNodes:o,rowNodeTransactions:i,rowNodesOrderChanged:P,afterColumnsChanged:B});else{let ue=$.sibling;$.childrenAfterGroup=$.allLeafChildren,ue&&(ue.childrenAfterGroup=$.childrenAfterGroup),$.updateHasChildren()}}this.rowNodesCountReady&&(this.rowCountReady=!0,this.eventSvc.dispatchEventOnce({type:"rowCountReady"}))}doFilter(i){this.filterStage?this.filterStage.execute({rowNode:this.rootNode,changedPath:i}):i.forEachChangedNodeDepthFirst(o=>{o.childrenAfterFilter=o.childrenAfterGroup,Jo(o)},!0)}doPivot(i){var o;(o=this.pivotStage)==null||o.execute({rowNode:this.rootNode,changedPath:i})}getRowNode(i){if(typeof i=="string"&&i.indexOf(ib)==0){let C;return this.forEachNode(P=>{P.id===i&&(C=P)}),C}return this.nodeManager.getRowNode(i)}batchUpdateRowData(i,o){if(this.applyAsyncTransactionsTimeout==null){this.rowDataTransactionBatch=[];let C=this.gos.get("asyncTransactionWaitMillis");this.applyAsyncTransactionsTimeout=window.setTimeout(()=>{this.isAlive()&&this.executeBatchUpdateRowData()},C)}this.rowDataTransactionBatch.push({rowDataTransaction:i,callback:o})}flushAsyncTransactions(){this.applyAsyncTransactionsTimeout!=null&&(clearTimeout(this.applyAsyncTransactionsTimeout),this.executeBatchUpdateRowData())}executeBatchUpdateRowData(){var B,W;(B=this.valueCache)==null||B.onDataChanged();let i=[],o=[],C=new _S,P=!1;(W=this.rowDataTransactionBatch)==null||W.forEach($=>{this.rowNodesCountReady=!0;let{rowNodeTransaction:ie,rowsInserted:ue}=this.nodeManager.updateRowData($.rowDataTransaction,C);ue&&(P=!0),o.push(ie),$.callback&&i.push($.callback.bind(null,ie))}),this.commitTransactions(o,P,C),i.length>0&&window.setTimeout(()=>{i.forEach($=>$())},0),o.length>0&&this.eventSvc.dispatchEvent({type:"asyncTransactionsFlushed",results:o}),this.rowDataTransactionBatch=null,this.applyAsyncTransactionsTimeout=void 0}updateRowData(i){var B;(B=this.valueCache)==null||B.onDataChanged(),this.rowNodesCountReady=!0;let o=new _S,{rowNodeTransaction:C,rowsInserted:P}=this.nodeManager.updateRowData(i,o);return this.commitTransactions([C],P,o),C}commitTransactions(i,o,C){this.refreshModel({step:"group",rowDataUpdated:!0,rowNodeTransactions:i,rowNodesOrderChanged:o,keepRenderedRows:!0,animate:!this.gos.get("suppressAnimationFrame"),changedRowNodes:C,changedPath:this.createChangePath(i)})}doRowsToDisplay(){var P;let{flattenStage:i,rootNode:o}=this,C;if(i)C=i.execute({rowNode:o});else{C=(P=o==null?void 0:o.childrenAfterSort)!=null?P:[];for(let B of C)B.setUiLevel(0)}this.rowsToDisplay=C}onRowHeightChanged(){this.refreshModel({step:"map",keepRenderedRows:!0,keepUndoRedoStack:!0})}onRowHeightChangedDebounced(){this.onRowHeightChanged_debounced()}resetRowHeights(){let i=this.rootNode;if(!i)return;let o=this.resetRowHeightsForAllRowNodes();i.setRowHeight(i.rowHeight,!0),i.sibling&&i.sibling.setRowHeight(i.sibling.rowHeight,!0),o&&this.onRowHeightChanged()}resetRowHeightsForAllRowNodes(){let i=!1;return this.forEachNode(o=>{o.setRowHeight(o.rowHeight,!0);let C=o.detailNode;C&&C.setRowHeight(C.rowHeight,!0),o.sibling&&o.sibling.setRowHeight(o.sibling.rowHeight,!0),i=!0}),i}onGridStylesChanges(i){var o;if(i.rowHeightChanged){if((o=this.beans.rowAutoHeight)!=null&&o.active)return;this.resetRowHeights()}}onGridReady(){this.started||this.setInitialData()}isRowDataLoaded(){return this.rowCountReady}destroy(){super.destroy(),this.clearHighlightedRow(),this.started=!1,this.rootNode=null,this.nodeManager=null,this.rowDataTransactionBatch=null,this.lastHighlightedRow=null,this.orderedStages=Ta,this.rowsToDisplay=Ta}};function FS(i){var o;(o=i.expansionSvc)==null||o.onGroupExpandedOrCollapsed()}function HT(i,o){let C=qd(i);C&&((!o||o==="everything")&&(o="group"),C.refreshModel({step:o,keepRenderedRows:!0,animate:!i.gos.get("suppressAnimationFrame")}))}function NS(i){var o,C;return(C=(o=qd(i))==null?void 0:o.isEmpty())!=null?C:!0}function AL(i,o){var C;(C=qd(i))==null||C.forEachLeafNode(o)}function iC(i,o){var C;(C=qd(i))==null||C.forEachNodeAfterFilter(o)}function xf(i,o){var C;(C=qd(i))==null||C.forEachNodeAfterFilterAndSort(o)}function zS(i){var o,C;if((o=i.rowAutoHeight)!=null&&o.active){pi(3);return}(C=qd(i))==null||C.resetRowHeights()}function w1(i,o){return i.frameworkOverrides.wrapIncoming(()=>{var C;return(C=qd(i))==null?void 0:C.updateRowData(o)})}function x1(i,o,C){i.frameworkOverrides.wrapIncoming(()=>{var P;return(P=qd(i))==null?void 0:P.batchUpdateRowData(o,C)})}function La(i){i.frameworkOverrides.wrapIncoming(()=>{var o;return(o=qd(i))==null?void 0:o.flushAsyncTransactions()})}function fk(i){var o;return(o=i.selectionSvc)==null?void 0:o.getBestCostNodeSelection()}var vk={moduleName:"ClientSideRowModel",version:yi,rowModels:["clientSide"],beans:[uk,mk,hk],dependsOn:[IM]},Nu={moduleName:"ClientSideRowModelApi",version:yi,rowModels:["clientSide"],apiFunctions:{onGroupExpandedOrCollapsed:FS,refreshClientSideRowModel:HT,isRowDataEmpty:NS,forEachLeafNode:AL,forEachNodeAfterFilter:iC,forEachNodeAfterFilterAndSort:xf,resetRowHeights:zS,applyTransaction:w1,applyTransactionAsync:x1,flushAsyncTransactions:La,getBestCostNodeSelection:fk},dependsOn:[C1]},yk=class extends ei{constructor(){super(...arguments),this.beanName="gridSerializer"}wireBeans(i){this.visibleCols=i.visibleCols,this.colModel=i.colModel,this.rowModel=i.rowModel,this.pinnedRowModel=i.pinnedRowModel}serialize(i,o={}){let{allColumns:C,columnKeys:P,skipRowGroups:B}=o,W=this.getColumnsToExport(C,B,P);return[this.prepareSession(W),this.prependContent(o),this.exportColumnGroups(o,W),this.exportHeaders(o,W),this.processPinnedTopRows(o,W),this.processRows(o,W),this.processPinnedBottomRows(o,W),this.appendContent(o)].reduce(($,ie)=>ie($),i).parse()}processRow(i,o,C,P){var Ct;let B=o.shouldRowBeSkipped||(()=>!1),$=o.rowPositions!=null||!!o.onlySelected,ie=this.gos.get("groupHideOpenParents")&&!$,ue=this.colModel.isPivotMode()?P.leafGroup:!P.group,De=!!P.footer,_e=P.allChildrenCount===1&&((Ct=P.childrenAfterGroup)==null?void 0:Ct.length)===1&&tv(this.gos,P);if(!ue&&!De&&(o.skipRowGroups||_e||ie)||o.onlySelected&&!P.isSelected()||o.skipPinnedTop&&P.rowPinned==="top"||o.skipPinnedBottom&&P.rowPinned==="bottom"||P.level===-1&&!ue&&!De||B(this.gos.addGridCommonParams({node:P})))return;let st=i.onNewBodyRow(P);if(C.forEach((Ot,Pt)=>{st.onColumn(Ot,Pt,P)}),o.getCustomContentBelowRow){let Ot=o.getCustomContentBelowRow(this.gos.addGridCommonParams({node:P}));Ot&&i.addCustomContent(Ot)}}appendContent(i){return o=>{let C=i.appendContent;return C&&o.addCustomContent(C),o}}prependContent(i){return o=>{let C=i.prependContent;return C&&o.addCustomContent(C),o}}prepareSession(i){return o=>(o.prepare(i),o)}exportColumnGroups(i,o){return C=>{if(!i.skipColumnGroupHeaders){let P=new ys,{colGroupSvc:B}=this.beans,W=B?B.createColumnGroups({columns:o,idCreator:P,pinned:null,isStandaloneStructure:!0}):o;this.recursivelyAddHeaderGroups(W,C,i.processGroupHeaderCallback)}return C}}exportHeaders(i,o){return C=>{if(!i.skipColumnHeaders){let P=C.onNewHeaderRow();o.forEach((B,W)=>{P.onColumn(B,W,void 0)})}return C}}processPinnedTopRows(i,o){return C=>{var B;let P=this.processRow.bind(this,C,i,o);return i.rowPositions?i.rowPositions.filter(W=>W.rowPinned==="top").sort((W,$)=>W.rowIndex-$.rowIndex).map(W=>{var $;return($=this.pinnedRowModel)==null?void 0:$.getPinnedTopRow(W.rowIndex)}).forEach(P):(B=this.pinnedRowModel)==null||B.forEachPinnedRow("top",P),C}}processRows(i,o){return C=>{var De,_e;let P=this.rowModel,B=_o(this.gos,P),W=Jc(this.gos,P),$=!B&&i.onlySelected,ie=this.processRow.bind(this,C,i,o),{exportedRows:ue="filteredAndSorted"}=i;if(i.rowPositions)return i.rowPositions.filter(Be=>Be.rowPinned==null).sort((Be,Qe)=>Be.rowIndex-Qe.rowIndex).map(Be=>P.getRow(Be.rowIndex)).forEach(ie),C;if(this.colModel.isPivotMode())return B?P.forEachPivotNode(ie,!0):W?P.forEachNodeAfterFilterAndSort(ie,!0):P.forEachNode(ie),C;if(i.onlySelectedAllPages||$){let Be=(_e=(De=this.beans.selectionSvc)==null?void 0:De.getSelectedNodes())!=null?_e:[];this.replicateSortedOrder(Be),Be.forEach(ie)}else ue==="all"?P.forEachNode(ie):B||W?P.forEachNodeAfterFilterAndSort(ie,!0):P.forEachNode(ie);return C}}replicateSortedOrder(i){let{sortSvc:o,rowNodeSorter:C}=this.beans;if(!o||!C)return;let P=o.getSortOptions(),B=(W,$)=>{var ie,ue,De,_e;return W.rowIndex!=null&&$.rowIndex!=null?W.rowIndex-$.rowIndex:W.level===$.level?((ie=W.parent)==null?void 0:ie.id)===((ue=$.parent)==null?void 0:ue.id)?C.compareRowNodes(P,{rowNode:W,currentPos:(De=W.rowIndex)!=null?De:-1},{rowNode:$,currentPos:(_e=$.rowIndex)!=null?_e:-1}):B(W.parent,$.parent):W.level>$.level?B(W.parent,$):B(W,$.parent)};i.sort(B)}processPinnedBottomRows(i,o){return C=>{var B;let P=this.processRow.bind(this,C,i,o);return i.rowPositions?i.rowPositions.filter(W=>W.rowPinned==="bottom").sort((W,$)=>W.rowIndex-$.rowIndex).map(W=>{var $;return($=this.pinnedRowModel)==null?void 0:$.getPinnedBottomRow(W.rowIndex)}).forEach(P):(B=this.pinnedRowModel)==null||B.forEachPinnedRow("bottom",P),C}}getColumnsToExport(i=!1,o=!1,C){let{colModel:P,gos:B,visibleCols:W}=this,$=P.isPivotMode();if(C&&C.length)return P.getColsForKeys(C);let ie=B.get("treeData"),ue=[];return i&&!$?ue=P.getCols():ue=W.allCols,ue=ue.filter(De=>!Tc(De)&&(o&&!ie?!Yo(De):!0)),ue}recursivelyAddHeaderGroups(i,o,C){let P=[];i.forEach(B=>{let W=B;W.getChildren&&W.getChildren().forEach($=>P.push($))}),i.length>0&&Io(i[0])&&this.doAddHeaderHeader(o,i,C),P&&P.length>0&&this.recursivelyAddHeaderGroups(P,o,C)}doAddHeaderHeader(i,o,C){let P=i.onNewHeaderGroupingRow(),B=0;o.forEach(W=>{let $=W,ie;C?ie=C(this.gos.addGridCommonParams({columnGroup:$})):ie=this.beans.colNames.getDisplayNameForColumnGroup($,"header");let ue=$.getLeafColumns().reduce((De,_e,Be,Qe)=>{let st=Sa(De);return _e.getColumnGroupShow()==="open"?(!st||st[1]!=null)&&(st=[Be],De.push(st)):st&&st[1]==null&&(st[1]=Be-1),Be===Qe.length-1&&st&&st[1]==null&&(st[1]=Be),De},[]);P.onColumn($,ie||"",B++,$.getLeafColumns().length-1,ue)})}},Mf={moduleName:"SharedExport",version:yi,beans:[yk]},bk=`\r
`,Qv=class extends jb{constructor(i){super(i),this.isFirstLine=!0,this.result="";let{suppressQuotes:o,columnSeparator:C}=i;this.suppressQuotes=o,this.columnSeparator=C}addCustomContent(i){i&&(typeof i=="string"?(/^\s*\n/.test(i)||this.beginNewLine(),i=i.replace(/\r?\n/g,bk),this.result+=i):i.forEach(o=>{this.beginNewLine(),o.forEach((C,P)=>{P!==0&&(this.result+=this.columnSeparator),this.result+=this.putInQuotes(C.data.value||""),C.mergeAcross&&this.appendEmptyCells(C.mergeAcross)})}))}onNewHeaderGroupingRow(){return this.beginNewLine(),{onColumn:this.onNewHeaderGroupingRowColumn.bind(this)}}onNewHeaderGroupingRowColumn(i,o,C,P){C!=0&&(this.result+=this.columnSeparator),this.result+=this.putInQuotes(o),this.appendEmptyCells(P)}appendEmptyCells(i){for(let o=1;o<=i;o++)this.result+=this.columnSeparator+this.putInQuotes("")}onNewHeaderRow(){return this.beginNewLine(),{onColumn:this.onNewHeaderRowColumn.bind(this)}}onNewHeaderRowColumn(i,o){o!=0&&(this.result+=this.columnSeparator),this.result+=this.putInQuotes(this.extractHeaderValue(i))}onNewBodyRow(){return this.beginNewLine(),{onColumn:this.onNewBodyRowColumn.bind(this)}}onNewBodyRowColumn(i,o,C){var B;o!=0&&(this.result+=this.columnSeparator);let P=this.extractRowCellValue(i,o,o,"csv",C);this.result+=this.putInQuotes((B=P.valueFormatted)!=null?B:P.value)}putInQuotes(i){if(this.suppressQuotes)return i;if(i==null)return'""';let o;return typeof i=="string"?o=i:typeof i.toString=="function"?o=i.toString():(pi(53),o=""),'"'+o.replace(/"/g,'""')+'"'}parse(){return this.result}beginNewLine(){this.isFirstLine||(this.result+=bk),this.isFirstLine=!1}},M1=class extends jv{constructor(){super(...arguments),this.beanName="csvCreator"}wireBeans(i){this.colModel=i.colModel,this.colNames=i.colNames,this.rowGroupColsSvc=i.rowGroupColsSvc,this.valueSvc=i.valueSvc}getMergedParams(i){let o=this.gos.get("defaultCsvExportParams");return Object.assign({},o,i)}export(i){if(this.isExportSuppressed()){pi(51);return}let o=this.getMergedParams(i),C=this.getData(o),P=new Blob(["\uFEFF",C],{type:"text/plain"}),B=typeof o.fileName=="function"?o.fileName(this.gos.getGridCommonParams()):o.fileName;a1(this.getFileName(B),P)}exportDataAsCsv(i){this.export(i)}getDataAsCsv(i,o=!1){let C=o?Object.assign({},i):this.getMergedParams(i);return this.getData(C)}getDefaultFileExtension(){return"csv"}createSerializingSession(i){let{colModel:o,colNames:C,rowGroupColsSvc:P,valueSvc:B,gos:W}=this,{processCellCallback:$,processHeaderCallback:ie,processGroupHeaderCallback:ue,processRowGroupCallback:De,suppressQuotes:_e,columnSeparator:Be}=i;return new Qv({colModel:o,colNames:C,valueSvc:B,gos:W,processCellCallback:$||void 0,processHeaderCallback:ie||void 0,processGroupHeaderCallback:ue||void 0,processRowGroupCallback:De||void 0,suppressQuotes:_e||!1,columnSeparator:Be||",",rowGroupColsSvc:P})}isExportSuppressed(){return this.gos.get("suppressCsvExport")}};function nC(i,o){var C;return(C=i.csvCreator)==null?void 0:C.getDataAsCsv(o)}function Ck(i,o){var C;(C=i.csvCreator)==null||C.exportDataAsCsv(o)}var k1={moduleName:"CsvExport",version:yi,beans:[M1],apiFunctions:{getDataAsCsv:nC,exportDataAsCsv:Ck},dependsOn:[Mf]},WT=class extends ei{constructor(i,o,C){super(),this.id=i,this.parentCache=o,this.params=C,this.state="needsLoading",this.version=0,this.startRow=i*C.blockSize,this.endRow=this.startRow+C.blockSize}load(){this.state="loading",this.loadFromDatasource()}setStateWaitingToLoad(){this.version++,this.state="needsLoading"}pageLoadFailed(i){this.isRequestMostRecentAndLive(i)&&(this.state="failed"),this.dispatchLocalEvent({type:"loadComplete"})}pageLoaded(i,o,C){this.successCommon(i,{rowData:o,rowCount:C})}isRequestMostRecentAndLive(i){let o=i===this.version,C=this.isAlive();return o&&C}successCommon(i,o){this.dispatchLocalEvent({type:"loadComplete"}),this.isRequestMostRecentAndLive(i)&&(this.state="loaded",this.processServerResult(o))}postConstruct(){this.rowNodes=[];let{params:{blockSize:i,rowHeight:o},startRow:C,beans:P,rowNodes:B}=this;for(let W=0;W<i;W++){let $=C+W,ie=new Xo(P);ie.setRowHeight(o),ie.uiLevel=0,ie.setRowIndex($),ie.setRowTop(o*$),B.push(ie)}}getBlockStateJson(){let{id:i,startRow:o,endRow:C,state:P}=this;return{id:""+i,state:{blockNumber:i,startRow:o,endRow:C,pageStatus:P}}}setDataAndId(i,o,C){Ai(o)?i.setDataAndId(o,C.toString()):i.setDataAndId(void 0,void 0)}loadFromDatasource(){let i=this.createLoadParams();if(Qn(this.params.datasource.getRows)){pi(90);return}window.setTimeout(()=>{this.params.datasource.getRows(i)},0)}createLoadParams(){let{startRow:i,endRow:o,version:C,params:{sortModel:P,filterModel:B},gos:W}=this;return{startRow:i,endRow:o,successCallback:this.pageLoaded.bind(this,C),failCallback:this.pageLoadFailed.bind(this,C),sortModel:P,filterModel:B,context:W.getGridCommonParams().context}}forEachNode(i,o,C){this.rowNodes.forEach((P,B)=>{this.startRow+B<C&&i(P,o.value++)})}getRow(i,o=!1){o||(this.lastAccessed=this.params.lastAccessedSequence.value++);let C=i-this.startRow;return this.rowNodes[C]}processServerResult(i){let{rowNodes:o,beans:C}=this;o.forEach((B,W)=>{let $=i.rowData?i.rowData[W]:void 0;!B.id&&B.alreadyRendered&&$&&(o[W]=new Xo(C),o[W].setRowIndex(B.rowIndex),o[W].setRowTop(B.rowTop),o[W].setRowHeight(B.rowHeight),B.clearRowTopAndRowIndex()),this.setDataAndId(o[W],$,this.startRow+W)});let P=i.rowCount!=null&&i.rowCount>=0?i.rowCount:void 0;this.parentCache.pageLoaded(this,P)}destroy(){this.rowNodes.forEach(i=>{i.clearRowTopAndRowIndex()}),super.destroy()}},A1=2,UT=class extends ei{constructor(i){super(),this.params=i,this.lastRowIndexKnown=!1,this.blocks={},this.blockCount=0,this.rowCount=i.initialRowCount}getRow(i,o=!1){let C=Math.floor(i/this.params.blockSize),P=this.blocks[C];if(!P){if(o)return;P=this.createBlock(C)}return P.getRow(i)}createBlock(i){let o=this.params,C=this.createBean(new WT(i,this,o));return this.blocks[C.id]=C,this.blockCount++,this.purgeBlocksIfNeeded(C),o.rowNodeBlockLoader.addBlock(C),C}refreshCache(){if(this.blockCount==0){this.purgeCache();return}this.getBlocksInOrder().forEach(o=>o.setStateWaitingToLoad()),this.params.rowNodeBlockLoader.checkBlockToLoad()}destroy(){this.getBlocksInOrder().forEach(i=>this.destroyBlock(i)),super.destroy()}getRowCount(){return this.rowCount}isLastRowIndexKnown(){return this.lastRowIndexKnown}pageLoaded(i,o){this.isAlive()&&(_s(this.gos,`InfiniteCache - onPageLoaded: page = ${i.id}, lastRow = ${o}`),this.checkRowCount(i,o),this.onCacheUpdated())}purgeBlocksIfNeeded(i){let o=this.getBlocksInOrder().filter($=>$!=i),C=($,ie)=>ie.lastAccessed-$.lastAccessed;o.sort(C);let P=this.params.maxBlocksInCache>0,B=P?this.params.maxBlocksInCache-1:null,W=A1-1;o.forEach(($,ie)=>{let ue=$.state==="needsLoading"&&ie>=W,De=P?ie>=B:!1;if(ue||De){if(this.isBlockCurrentlyDisplayed($)||this.isBlockFocused($))return;this.removeBlockFromCache($)}})}isBlockFocused(i){let o=this.beans.focusSvc.getFocusCellToUseAfterRefresh();if(!o||o.rowPinned!=null)return!1;let{startRow:C,endRow:P}=i;return o.rowIndex>=C&&o.rowIndex<P}isBlockCurrentlyDisplayed(i){let{startRow:o,endRow:C}=i;return this.beans.rowRenderer.isRangeInRenderedViewport(o,C-1)}removeBlockFromCache(i){i&&this.destroyBlock(i)}checkRowCount(i,o){if(typeof o=="number"&&o>=0)this.rowCount=o,this.lastRowIndexKnown=!0;else if(!this.lastRowIndexKnown){let{blockSize:C,overflowSize:P}=this.params,W=(i.id+1)*C+P;this.rowCount<W&&(this.rowCount=W)}}setRowCount(i,o){this.rowCount=i,Ai(o)&&(this.lastRowIndexKnown=o),this.lastRowIndexKnown||this.rowCount%this.params.blockSize===0&&this.rowCount++,this.onCacheUpdated()}forEachNodeDeep(i){let o={value:0};this.getBlocksInOrder().forEach(C=>C.forEachNode(i,o,this.rowCount))}getBlocksInOrder(){let i=(C,P)=>C.id-P.id;return Object.values(this.blocks).sort(i)}destroyBlock(i){delete this.blocks[i.id],this.destroyBean(i),this.blockCount--,this.params.rowNodeBlockLoader.removeBlock(i)}onCacheUpdated(){this.isAlive()&&(this.destroyAllBlocksPastVirtualRowCount(),this.eventSvc.dispatchEvent({type:"storeUpdated"}))}destroyAllBlocksPastVirtualRowCount(){let i=[];this.getBlocksInOrder().forEach(o=>{o.id*this.params.blockSize>=this.rowCount&&i.push(o)}),i.length>0&&i.forEach(o=>this.destroyBlock(o))}purgeCache(){this.getBlocksInOrder().forEach(i=>this.removeBlockFromCache(i)),this.lastRowIndexKnown=!1,this.rowCount===0&&(this.rowCount=this.params.initialRowCount),this.onCacheUpdated()}getRowNodesInRange(i,o){let C=[],P=-1,B=!1,W={value:0},$=!1;return this.getBlocksInOrder().forEach(ue=>{if(!$){if(B&&P+1!==ue.id){$=!0;return}P=ue.id,ue.forEachNode(De=>{let _e=De===i||De===o;(B||_e)&&C.push(De),_e&&(B=!B)},W,this.rowCount)}}),$||B?[]:C}},el=class extends ei{constructor(){super(...arguments),this.beanName="rowModel"}getRowBounds(i){return{rowHeight:this.rowHeight,rowTop:this.rowHeight*i}}ensureRowHeightsValid(){return!1}postConstruct(){this.gos.get("rowModelType")==="infinite"&&(this.rowHeight=hh(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=hh(this.beans),this.cacheParams.rowHeight=this.rowHeight,this.updateRowHeights()})}onColumnEverything(){var o,C;let i;this.cacheParams?i=!Id(this.cacheParams.sortModel,(C=(o=this.beans.sortSvc)==null?void 0:o.getSortModel())!=null?C:[]):i=!0,i&&this.reset()}getType(){return"infinite"}setDatasource(i){this.destroyDatasource(),this.datasource=i,i&&this.reset()}isEmpty(){return!this.infiniteCache}isRowsToRender(){return!!this.infiniteCache}getNodesInRangeForSelection(i,o){var C,P;return(P=(C=this.infiniteCache)==null?void 0:C.getRowNodesInRange(i,o))!=null?P:[]}reset(){var C;if(!this.datasource)return;ev(this.gos)!=null||(C=this.beans.selectionSvc)==null||C.reset("rowDataChanged"),this.resetCache()}dispatchModelUpdatedEvent(){this.eventSvc.dispatchEvent({type:"modelUpdated",newPage:!1,newPageSize:!1,newData:!1,keepRenderedRows:!0,animate:!1})}resetCache(){var $,ie;this.destroyCache();let i=this.beans,{filterManager:o,sortSvc:C,rowNodeBlockLoader:P,eventSvc:B,gos:W}=i;this.cacheParams={datasource:this.datasource,filterModel:($=o==null?void 0:o.getFilterModel())!=null?$:{},sortModel:(ie=C==null?void 0:C.getSortModel())!=null?ie:[],rowNodeBlockLoader:P,initialRowCount:W.get("infiniteInitialRowCount"),maxBlocksInCache:W.get("maxBlocksInCache"),rowHeight:hh(i),overflowSize:W.get("cacheOverflowSize"),blockSize:W.get("cacheBlockSize"),lastAccessedSequence:{value:0}},this.infiniteCache=this.createBean(new UT(this.cacheParams)),B.dispatchEventOnce({type:"rowCountReady"}),this.dispatchModelUpdatedEvent()}updateRowHeights(){this.forEachNode(i=>{i.setRowHeight(this.rowHeight),i.setRowTop(this.rowHeight*i.rowIndex)}),this.dispatchModelUpdatedEvent()}destroyCache(){this.infiniteCache=this.destroyBean(this.infiniteCache)}getRow(i){let o=this.infiniteCache;if(o&&!(i>=o.getRowCount()))return o.getRow(i)}getRowNode(i){let o;return this.forEachNode(C=>{C.id===i&&(o=C)}),o}forEachNode(i){var o;(o=this.infiniteCache)==null||o.forEachNodeDeep(i)}getTopLevelRowCount(){return this.getRowCount()}getTopLevelRowDisplayedIndex(i){return i}getRowIndexAtPixel(i){if(this.rowHeight!==0){let o=Math.floor(i/this.rowHeight),C=this.getRowCount()-1;return o>C?C:o}return 0}getRowCount(){return this.infiniteCache?this.infiniteCache.getRowCount():0}isRowPresent(i){return!!this.getRowNode(i.id)}refreshCache(){var i;(i=this.infiniteCache)==null||i.refreshCache()}purgeCache(){var i;(i=this.infiniteCache)==null||i.purgeCache()}isLastRowIndexKnown(){var i,o;return(o=(i=this.infiniteCache)==null?void 0:i.isLastRowIndexKnown())!=null?o:!1}setRowCount(i,o){var C;(C=this.infiniteCache)==null||C.setRowCount(i,o)}};function D1(i){var o;(o=pS(i))==null||o.refreshCache()}function Jv(i){var o;(o=pS(i))==null||o.purgeCache()}function zu(i){var o;return(o=pS(i))==null?void 0:o.getRowCount()}var Il=class extends ei{constructor(){super(...arguments),this.beanName="rowNodeBlockLoader",this.activeBlockLoadsCount=0,this.blocks=[],this.active=!0}postConstruct(){this.maxConcurrentRequests=ox(this.gos);let i=this.gos.get("blockLoadDebounceMillis");i&&i>0&&(this.checkBlockToLoadDebounce=zr(this,this.performCheckBlocksToLoad.bind(this),i))}addBlock(i){this.blocks.push(i),i.addEventListener("loadComplete",this.loadComplete.bind(this)),this.checkBlockToLoad()}removeBlock(i){qo(this.blocks,i)}destroy(){super.destroy(),this.active=!1}loadComplete(){this.activeBlockLoadsCount--,this.checkBlockToLoad()}checkBlockToLoad(){this.checkBlockToLoadDebounce?this.checkBlockToLoadDebounce():this.performCheckBlocksToLoad()}performCheckBlocksToLoad(){if(!this.active)return;if(this.printCacheStatus(),this.maxConcurrentRequests!=null&&this.activeBlockLoadsCount>=this.maxConcurrentRequests){_s(this.gos,"RowNodeBlockLoader - checkBlockToLoad: max loads exceeded");return}let i=this.maxConcurrentRequests!=null?this.maxConcurrentRequests-this.activeBlockLoadsCount:1,o=this.blocks.filter(C=>C.state==="needsLoading").slice(0,i);this.activeBlockLoadsCount+=o.length,o.forEach(C=>C.load()),this.printCacheStatus()}getBlockState(){let i={};return this.blocks.forEach(o=>{let{id:C,state:P}=o.getBlockStateJson();i[C]=P}),i}printCacheStatus(){_s(this.gos,`RowNodeBlockLoader - printCacheStatus: activePageLoadsCount = ${this.activeBlockLoadsCount}, blocks = ${JSON.stringify(this.getBlockState())}`)}},kf={moduleName:"InfiniteRowModel",version:yi,rowModels:["infinite"],apiFunctions:{refreshInfiniteCache:D1,purgeInfiniteCache:Jv,getInfiniteRowCount:zu},beans:[el,Il],dependsOn:[OS]},Sk="\u2191",Hp="\u2193",Ya=class extends On{constructor(){super(),this.refreshCount=0;let i=document.createElement("span"),o=document.createElement("span");o.setAttribute("class","ag-value-change-delta");let C=document.createElement("span");C.setAttribute("class","ag-value-change-value"),i.appendChild(o),i.appendChild(C),this.setTemplateFromElement(i)}init(i){this.eValue=this.queryForHtmlElement(".ag-value-change-value"),this.eDelta=this.queryForHtmlElement(".ag-value-change-delta"),this.refresh(i,!0)}showDelta(i,o){let C=Math.abs(o),P=i.formatValue(C),B=Ai(P)?P:C,W=o>=0,$=this.eDelta;W?$.textContent=Sk+B:$.textContent=Hp+B,$.classList.toggle("ag-value-change-delta-up",W),$.classList.toggle("ag-value-change-delta-down",!W)}setTimerToRemoveDelta(){this.refreshCount++;let i=this.refreshCount;this.beans.frameworkOverrides.wrapIncoming(()=>{window.setTimeout(()=>{i===this.refreshCount&&this.hideDeltaValue()},2e3)})}hideDeltaValue(){this.eValue.classList.remove("ag-value-change-value-highlight"),Ke(this.eDelta)}refresh(i,o=!1){var ie;let{value:C,valueFormatted:P}=i,{eValue:B,lastValue:W,beans:$}=this;if(C===W||(Ai(P)?B.textContent=P:Ai(C)?B.textContent=C:Ke(B),(ie=$.filterManager)!=null&&ie.isSuppressFlashingCellsBecauseFiltering()))return!1;if(typeof C=="number"&&typeof W=="number"){let ue=C-W;this.showDelta(i,ue)}return W&&B.classList.add("ag-value-change-value-highlight"),o||this.setTimerToRemoveDelta(),this.lastValue=C,!0}},BS=".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}",wk=class extends On{constructor(){super(),this.refreshCount=0;let i=document.createElement("span"),o=document.createElement("span");o.setAttribute("class","ag-value-slide-current"),i.appendChild(o),this.setTemplateFromElement(i),this.eCurrent=this.queryForHtmlElement(".ag-value-slide-current"),this.registerCSS(BS)}init(i){this.refresh(i,!0)}addSlideAnimation(){this.refreshCount++;let i=this.refreshCount;this.ePrevious&&this.getGui().removeChild(this.ePrevious);let{beans:o,eCurrent:C}=this,P=Ao(o).createElement("span");P.setAttribute("class","ag-value-slide-previous ag-value-slide-out"),this.ePrevious=P,P.textContent=C.textContent,this.getGui().insertBefore(P,C),o.frameworkOverrides.wrapIncoming(()=>{window.setTimeout(()=>{i===this.refreshCount&&this.ePrevious.classList.add("ag-value-slide-out-end")},50),window.setTimeout(()=>{i===this.refreshCount&&(this.getGui().removeChild(this.ePrevious),this.ePrevious=null)},3e3)})}refresh(i,o=!1){var B;let C=i.value;if(Qn(C)&&(C=""),C===this.lastValue||(B=this.beans.filterManager)!=null&&B.isSuppressFlashingCellsBecauseFiltering())return!1;o||this.addSlideAnimation(),this.lastValue=C;let P=this.eCurrent;return Ai(i.valueFormatted)?P.textContent=i.valueFormatted:Ai(i.value)?P.textContent=C:Ke(P),!0}},DL=class extends ei{constructor(){super(...arguments),this.beanName="cellFlashSvc"}onFlashCells(i,o){if(!i.comp)return;let C=tb(i.cellPosition);o.cells[C]&&this.animateCell(i,"highlight")}flashCell(i,o){this.animateCell(i,"data-changed",o==null?void 0:o.flashDuration,o==null?void 0:o.fadeDuration)}animateCell(i,o,C,P){let B=i.comp;if(!B)return;let{gos:W}=this;if(C||(C=W.get("cellFlashDuration")),C===0)return;Ai(P)||(P=W.get("cellFadeDuration"));let $=`ag-cell-${o}`,ie=`ag-cell-${o}-animation`;B.addOrRemoveCssClass($,!0),B.addOrRemoveCssClass(ie,!1);let{eGui:ue}=i;this.beans.frameworkOverrides.wrapIncoming(()=>{window.setTimeout(()=>{i.isAlive()&&(B.addOrRemoveCssClass($,!1),B.addOrRemoveCssClass(ie,!0),ue.style.transition=`background-color ${P}ms`,window.setTimeout(()=>{i.isAlive()&&(B.addOrRemoveCssClass(ie,!1),ue.style.transition="")},P))},C)})}};function Rr(i,o={}){let{cellFlashSvc:C}=i;C&&i.frameworkOverrides.wrapIncoming(()=>{i.rowRenderer.getCellCtrls(o.rowNodes,o.columns).forEach(P=>C.flashCell(P,o))})}var xk={moduleName:"HighlightChanges",version:yi,beans:[DL],userComponents:{agAnimateShowChangeCellRenderer:Ya,agAnimateSlideCellRenderer:wk},apiFunctions:{flashCells:Rr}};function E1(i){var o,C;return(C=(o=i.stateSvc)==null?void 0:o.getState())!=null?C:{}}function KT(i){switch(i=pe({},i),i.version||(i.version="32.1.0"),i.version){case"32.1.0":i=ls(i)}return i}function ls(i){return i.cellSelection=EL(i,"rangeSelection"),i}function EL(i,o){if(i&&typeof i=="object")return i[o]}var GS=class extends ei{constructor(){super(...arguments),this.beanName="stateSvc",this.updateRowGroupExpansionStateTimer=0,this.suppressEvents=!0,this.queuedUpdateSources=new Set,this.dispatchStateUpdateEventDebounced=zr(this,()=>this.dispatchQueuedStateUpdateEvents(),0),this.onRowGroupOpenedDebounced=zr(this,()=>{this.updateCachedState("rowGroupExpansion",this.getRowGroupExpansionState())},0),this.onRowSelectedDebounced=zr(this,()=>{this.staleStateKeys.delete("rowSelection"),this.updateCachedState("rowSelection",this.getRowSelectionState())},0),this.staleStateKeys=new Set}postConstruct(){this.isClientSideRowModel=_o(this.gos),this.cachedState=this.getInitialState(),this.setCachedStateValue("version",yi);let i=this.suppressEventsAndDispatchInitEvent.bind(this);this.beans.ctrlsSvc.whenReady(this,()=>i(()=>this.setupStateOnGridReady()));let[o,C,P]=this.addManagedEventListeners({newColumnsLoaded:({source:B})=>{B==="gridInitializing"&&(o(),i(()=>this.setupStateOnColumnsInitialised()))},rowCountReady:()=>{C==null||C(),i(()=>this.setupStateOnRowCountReady())},firstDataRendered:()=>{P==null||P(),i(()=>this.setupStateOnFirstDataRendered())}})}destroy(){super.destroy(),clearTimeout(this.updateRowGroupExpansionStateTimer),this.queuedUpdateSources.clear()}getInitialState(){var i;return KT((i=this.gos.get("initialState"))!=null?i:{})}getState(){return this.staleStateKeys.size&&this.refreshStaleState(),this.cachedState}setupStateOnGridReady(){let i=()=>this.updateCachedState("sideBar",this.getSideBarState());i(),this.addManagedEventListeners({toolPanelVisibleChanged:i,sideBarUpdated:i})}setupStateOnColumnsInitialised(){let i=this.getInitialState();this.setColumnState(i),this.setColumnGroupState(i),this.updateColumnState(["aggregation","columnOrder","columnPinning","columnSizing","columnVisibility","pivot","pivot","rowGroup","sort"]),this.updateCachedState("columnGroup",this.getColumnGroupState());let o=C=>()=>this.updateColumnState([C]);this.addManagedEventListeners({columnValueChanged:o("aggregation"),columnMoved:o("columnOrder"),columnPinned:o("columnPinning"),columnResized:o("columnSizing"),columnVisible:o("columnVisibility"),columnPivotChanged:o("pivot"),columnPivotModeChanged:o("pivot"),columnRowGroupChanged:o("rowGroup"),sortChanged:o("sort"),newColumnsLoaded:()=>this.updateColumnState(["aggregation","columnOrder","columnPinning","columnSizing","columnVisibility","pivot","rowGroup","sort"]),columnGroupOpened:()=>this.updateCachedState("columnGroup",this.getColumnGroupState())})}setupStateOnRowCountReady(){let{filter:i,rowGroupExpansion:o,rowSelection:C,pagination:P}=this.getInitialState();i&&this.setFilterState(i),o&&this.setRowGroupExpansionState(o),C&&this.setRowSelectionState(C),P&&this.setPaginationState(P);let B=this.updateCachedState.bind(this);B("filter",this.getFilterState()),B("rowGroupExpansion",this.getRowGroupExpansionState()),B("rowSelection",this.getRowSelectionState()),B("pagination",this.getPaginationState());let W=()=>{this.updateRowGroupExpansionStateTimer=0,B("rowGroupExpansion",this.getRowGroupExpansionState())};this.addManagedEventListeners({filterChanged:()=>B("filter",this.getFilterState()),rowGroupOpened:()=>this.onRowGroupOpenedDebounced(),expandOrCollapseAll:W,columnRowGroupChanged:W,rowDataUpdated:()=>{this.gos.get("groupDefaultExpanded")!==0&&(this.updateRowGroupExpansionStateTimer||(this.updateRowGroupExpansionStateTimer=setTimeout(W)))},selectionChanged:()=>{this.staleStateKeys.add("rowSelection"),this.onRowSelectedDebounced()},paginationChanged:$=>{($.newPage||$.newPageSize)&&B("pagination",this.getPaginationState())}})}setupStateOnFirstDataRendered(){let{scroll:i,cellSelection:o,focusedCell:C,columnOrder:P}=this.getInitialState();C&&this.setFocusedCellState(C),o&&this.setCellSelectionState(o),i&&this.setScrollState(i),this.setColumnPivotState(!!(P!=null&&P.orderedColIds));let B=this.updateCachedState.bind(this);B("sideBar",this.getSideBarState()),B("focusedCell",this.getFocusedCellState());let W=this.getRangeSelectionState();B("rangeSelection",W),B("cellSelection",W),B("scroll",this.getScrollState()),this.addManagedEventListeners({cellFocused:()=>B("focusedCell",this.getFocusedCellState()),cellSelectionChanged:$=>{if($.finished){let ie=this.getRangeSelectionState();B("rangeSelection",ie),B("cellSelection",ie)}},bodyScrollEnd:()=>B("scroll",this.getScrollState())})}getColumnState(){let i=this.beans,o=i.colModel.isPivotMode(),C=[],P=[],B=[],W=[],$=[],ie=[],ue=[],De=[],_e=[],Be=0,Qe=wa(i);for(let st=0;st<Qe.length;st++){let{colId:Ct,sort:Ot,sortIndex:Pt,rowGroup:Kt,rowGroupIndex:ti,aggFunc:Jt,pivot:ai,pivotIndex:Mi,pinned:qi,hide:Fn,width:Xn,flex:Ga}=Qe[st];_e.push(Ct),Ot&&(C[Pt!=null?Pt:Be++]={colId:Ct,sort:Ot}),Kt&&(P[ti!=null?ti:0]=Ct),typeof Jt=="string"&&B.push({colId:Ct,aggFunc:Jt}),ai&&(W[Mi!=null?Mi:0]=Ct),qi&&(qi==="right"?ie:$).push(Ct),Fn&&ue.push(Ct),(Ga||Xn)&&De.push({colId:Ct,flex:Ga!=null?Ga:void 0,width:Xn})}return{sort:C.length?{sortModel:C}:void 0,rowGroup:P.length?{groupColIds:P}:void 0,aggregation:B.length?{aggregationModel:B}:void 0,pivot:W.length||o?{pivotMode:o,pivotColIds:W}:void 0,columnPinning:$.length||ie.length?{leftColIds:$,rightColIds:ie}:void 0,columnVisibility:ue.length?{hiddenColIds:ue}:void 0,columnSizing:De.length?{columnSizingModel:De}:void 0,columnOrder:_e.length?{orderedColIds:_e}:void 0}}setColumnState(i){let{sort:o,rowGroup:C,aggregation:P,pivot:B,columnPinning:W,columnVisibility:$,columnSizing:ie,columnOrder:ue,partialColumnState:De}=i,_e={},Be=Pt=>{let Kt=_e[Pt];return Kt||(Kt={colId:Pt},_e[Pt]=Kt,Kt)},Qe=De?{}:{sort:null,sortIndex:null,rowGroup:null,rowGroupIndex:null,aggFunc:null,pivot:null,pivotIndex:null,pinned:null,hide:null,flex:null};o&&(o.sortModel.forEach(({colId:Pt,sort:Kt},ti)=>{let Jt=Be(Pt);Jt.sort=Kt,Jt.sortIndex=ti}),Qe.sort=null,Qe.sortIndex=null),C&&(C.groupColIds.forEach((Pt,Kt)=>{let ti=Be(Pt);ti.rowGroup=!0,ti.rowGroupIndex=Kt}),Qe.rowGroup=null,Qe.rowGroupIndex=null),P&&(P.aggregationModel.forEach(({colId:Pt,aggFunc:Kt})=>{Be(Pt).aggFunc=Kt}),Qe.aggFunc=null),B&&(B.pivotColIds.forEach((Pt,Kt)=>{let ti=Be(Pt);ti.pivot=!0,ti.pivotIndex=Kt}),this.gos.updateGridOptions({options:{pivotMode:B.pivotMode},source:"gridInitializing"}),Qe.pivot=null,Qe.pivotIndex=null),W&&(W.leftColIds.forEach(Pt=>{Be(Pt).pinned="left"}),W.rightColIds.forEach(Pt=>{Be(Pt).pinned="right"}),Qe.pinned=null),$&&($.hiddenColIds.forEach(Pt=>{Be(Pt).hide=!0}),Qe.hide=null),ie&&(ie.columnSizingModel.forEach(({colId:Pt,flex:Kt,width:ti})=>{let Jt=Be(Pt);Jt.flex=Kt!=null?Kt:null,Jt.width=ti}),Qe.flex=null);let st=ue==null?void 0:ue.orderedColIds,Ct=!!(st!=null&&st.length),Ot=Ct?st.map(Pt=>Be(Pt)):Object.values(_e);Ot.length&&(this.columnStates=Ot,td(this.beans,{state:Ot,applyOrder:Ct,defaultState:Qe},"gridInitializing"))}setColumnPivotState(i){let o=this.columnStates;this.columnStates=void 0;let C=this.columnGroupStates;this.columnGroupStates=void 0;let P=this.beans,{pivotResultCols:B,colGroupSvc:W}=P;if(B!=null&&B.isPivotResultColsPresent()){if(o){let $=[];for(let ie of o)B.getPivotResultCol(ie.colId)&&$.push(ie);td(P,{state:$,applyOrder:i},"gridInitializing")}C&&(W==null||W.setColumnGroupState(C,"gridInitializing"))}}getColumnGroupState(){let i=this.beans.colGroupSvc;if(!i)return;let o=i.getColumnGroupState(),C=[];return o.forEach(({groupId:P,open:B})=>{B&&C.push(P)}),C.length?{openColumnGroupIds:C}:void 0}setColumnGroupState(i){var W;let o=this.beans.colGroupSvc;if(!Object.prototype.hasOwnProperty.call(i,"columnGroup")||!o)return;let C=new Set((W=i.columnGroup)==null?void 0:W.openColumnGroupIds),B=o.getColumnGroupState().map(({groupId:$})=>{let ie=C.has($);return ie&&C.delete($),{groupId:$,open:ie}});C.forEach($=>{B.push({groupId:$,open:!0})}),B.length&&(this.columnGroupStates=B),o.setColumnGroupState(B,"gridInitializing")}getFilterState(){var P;let i=this.beans.filterManager,o=i==null?void 0:i.getFilterModel();o&&Object.keys(o).length===0&&(o=void 0);let C=(P=i==null?void 0:i.getAdvFilterModel())!=null?P:void 0;return o||C?{filterModel:o,advancedFilterModel:C}:void 0}setFilterState(i){let o=this.beans.filterManager,{filterModel:C,advancedFilterModel:P}=i!=null?i:{};C&&(o==null||o.setFilterModel(C,"columnFilter")),P&&(o==null||o.setAdvFilterModel(P))}getRangeSelectionState(){var o;let i=(o=this.beans.rangeSvc)==null?void 0:o.getCellRanges().map(C=>{let{id:P,type:B,startRow:W,endRow:$,columns:ie,startColumn:ue}=C;return{id:P,type:B,startRow:W,endRow:$,colIds:ie.map(De=>De.getColId()),startColId:ue.getColId()}});return i!=null&&i.length?{cellRanges:i}:void 0}setCellSelectionState(i){let{gos:o,rangeSvc:C,colModel:P,visibleCols:B}=this.beans;if(!Dr(o)||!C)return;let W=[];i.cellRanges.forEach($=>{let ie=[];if($.colIds.forEach(De=>{let _e=P.getCol(De);_e&&ie.push(_e)}),!ie.length)return;let ue=P.getCol($.startColId);if(!ue){let De=B.allCols,_e=new Set(ie);ue=De.find(Be=>_e.has(Be))}W.push(et(pe({},$),{columns:ie,startColumn:ue}))}),C.setCellRanges(W)}getScrollState(){var P,B;if(!this.isClientSideRowModel)return;let i=this.beans.ctrlsSvc.getScrollFeature(),{left:o}=(P=i==null?void 0:i.getHScrollPosition())!=null?P:{left:0},{top:C}=(B=i==null?void 0:i.getVScrollPosition())!=null?B:{top:0};return C||o?{top:C,left:o}:void 0}setScrollState(i){if(!this.isClientSideRowModel)return;let{top:o,left:C}=i,{frameworkOverrides:P,rowRenderer:B,animationFrameSvc:W,ctrlsSvc:$}=this.beans;P.wrapIncoming(()=>{var ie;$.get("center").setCenterViewportScrollLeft(C),(ie=$.getScrollFeature())==null||ie.setVerticalScrollPosition(o),B.redraw({afterScroll:!0}),W==null||W.flushAllFrames()})}getSideBarState(){var i,o;return(o=(i=this.beans.sideBar)==null?void 0:i.comp)==null?void 0:o.getState()}getFocusedCellState(){if(!this.isClientSideRowModel)return;let i=this.beans.focusSvc.getFocusedCell();if(i){let{column:o,rowIndex:C,rowPinned:P}=i;return{colId:o.getColId(),rowIndex:C,rowPinned:P}}}setFocusedCellState(i){if(!this.isClientSideRowModel)return;let{colId:o,rowIndex:C,rowPinned:P}=i,{focusSvc:B,colModel:W}=this.beans;B.setFocusedCell({column:W.getCol(o),rowIndex:C,rowPinned:P,forceBrowserFocus:!0,preventScrollOnBrowserFocus:!0})}getPaginationState(){let{pagination:i,gos:o}=this.beans;if(!i)return;let C=i.getCurrentPage(),P=o.get("paginationAutoPageSize")?void 0:i.getPageSize();if(!(!C&&!P))return{page:C,pageSize:P}}setPaginationState(i){let{pagination:o,gos:C}=this.beans;o&&(i.pageSize&&!C.get("paginationAutoPageSize")&&o.setPageSize(i.pageSize,"initialState"),typeof i.page=="number"&&o.setPage(i.page))}getRowSelectionState(){var P;let i=this.beans.selectionSvc;if(!i)return;let o=i.getSelectionState();return!o||!Array.isArray(o)&&(o.selectAll===!1||o.selectAllChildren===!1)&&!((P=o==null?void 0:o.toggledNodes)!=null&&P.length)?void 0:o}setRowSelectionState(i){var o;(o=this.beans.selectionSvc)==null||o.setSelectionState(i,"gridInitializing")}getRowGroupExpansionState(){let{expansionSvc:i,rowModel:o}=this.beans;if(!i)return;let C=[];return o.forEachNode(({expanded:P,id:B})=>{P&&B&&C.push(B)}),C.length?{expandedRowGroupIds:C}:void 0}setRowGroupExpansionState(i){var o;(o=this.beans.expansionSvc)==null||o.expandRows(i.expandedRowGroupIds)}updateColumnState(i){let o=this.getColumnState(),C=!1,P=this.cachedState;Object.entries(o).forEach(([B,W])=>{Id(W,P[B])||(C=!0)}),this.cachedState=pe(pe({},P),o),C&&this.dispatchStateUpdateEvent(i)}updateCachedState(i,o){let C=this.cachedState[i];this.setCachedStateValue(i,o),Id(o,C)||this.dispatchStateUpdateEvent([i])}setCachedStateValue(i,o){this.cachedState=et(pe({},this.cachedState),{[i]:o})}refreshStaleState(){let i=this.staleStateKeys;i.forEach(o=>{switch(o){case"rowSelection":this.setCachedStateValue(o,this.getRowSelectionState());break}}),i.clear()}dispatchStateUpdateEvent(i){this.suppressEvents||(i.forEach(o=>this.queuedUpdateSources.add(o)),this.dispatchStateUpdateEventDebounced())}dispatchQueuedStateUpdateEvents(){let i=this.queuedUpdateSources,o=Array.from(i);i.clear(),this.eventSvc.dispatchEvent({type:"stateUpdated",sources:o,state:this.cachedState})}suppressEventsAndDispatchInitEvent(i){this.suppressEvents=!0;let o=this.beans.colAnimation;o==null||o.setSuppressAnimation(!0),i(),setTimeout(()=>{this.suppressEvents=!1,this.queuedUpdateSources.clear(),this.isAlive()&&(o==null||o.setSuppressAnimation(!1),this.dispatchStateUpdateEvent(["gridInitializing"]))})}},Mk={moduleName:"GridState",version:yi,beans:[GS],apiFunctions:{getState:E1}};function I1(i){return i.rowModel.isLastRowIndexKnown()}function sr(i){var o,C;return(C=(o=i.pagination)==null?void 0:o.getPageSize())!=null?C:100}function kk(i){var o,C;return(C=(o=i.pagination)==null?void 0:o.getCurrentPage())!=null?C:0}function qT(i){var o,C;return(C=(o=i.pagination)==null?void 0:o.getTotalPages())!=null?C:1}function YT(i){return i.pagination?i.pagination.getMasterRowCount():i.rowModel.getRowCount()}function Ak(i){var o;(o=i.pagination)==null||o.goToNextPage()}function Dk(i){var o;(o=i.pagination)==null||o.goToPreviousPage()}function $d(i){var o;(o=i.pagination)==null||o.goToFirstPage()}function jS(i){var o;(o=i.pagination)==null||o.goToLastPage()}function Yr(i,o){var C;(C=i.pagination)==null||C.goToPage(o)}var Wp=class extends ei{constructor(){super(...arguments),this.beanName="paginationAutoPageSizeSvc"}postConstruct(){this.beans.ctrlsSvc.whenReady(this,i=>{this.centerRowsCtrl=i.center;let o=this.checkPageSize.bind(this);this.addManagedEventListeners({bodyHeightChanged:o,scrollVisibilityChanged:o}),this.addManagedPropertyListener("paginationAutoPageSize",this.onPaginationAutoSizeChanged.bind(this)),this.checkPageSize()})}notActive(){return!this.gos.get("paginationAutoPageSize")||this.centerRowsCtrl==null}onPaginationAutoSizeChanged(){this.notActive()?this.beans.pagination.unsetAutoCalculatedPageSize():this.checkPageSize()}checkPageSize(){if(this.notActive())return;let i=this.centerRowsCtrl.viewportSizeFeature.getBodyHeight();if(i>0){let o=this.beans,C=()=>{let P=Math.max(hh(o),1),B=Math.floor(i/P);o.pagination.setPageSize(B,"autoCalculated")};this.isBodyRendered?zr(this,C,50)():(C(),this.isBodyRendered=!0)}else this.isBodyRendered=!1}},ks="paginationPageSizeSelector",VS=class extends On{constructor(){super('<span class="ag-paging-page-size"></span>'),this.hasEmptyOption=!1,this.handlePageSizeItemSelected=()=>{if(!this.selectPageSizeComp)return;let i=this.selectPageSizeComp.getValue();if(!i)return;let o=Number(i);isNaN(o)||o<1||o===this.pagination.getPageSize()||(this.pagination.setPageSize(o,"pageSizeSelector"),this.hasEmptyOption&&this.toggleSelectDisplay(!0),this.selectPageSizeComp.getFocusableElement().focus())}}wireBeans(i){this.pagination=i.pagination}postConstruct(){this.addManagedPropertyListener(ks,()=>{this.onPageSizeSelectorValuesChange()}),this.addManagedEventListeners({paginationChanged:i=>this.handlePaginationChanged(i)})}handlePaginationChanged(i){if(!this.selectPageSizeComp||!(i!=null&&i.newPageSize))return;let o=this.pagination.getPageSize();this.getPageSizeSelectorValues().includes(o)?this.selectPageSizeComp.setValue(o.toString()):this.hasEmptyOption?this.selectPageSizeComp.setValue(""):this.toggleSelectDisplay(!0)}toggleSelectDisplay(i){this.selectPageSizeComp&&!i&&this.reset(),i&&(this.reloadPageSizesSelector(),this.selectPageSizeComp)}reset(){Ke(this.getGui()),this.selectPageSizeComp&&(this.selectPageSizeComp=this.destroyBean(this.selectPageSizeComp))}onPageSizeSelectorValuesChange(){this.selectPageSizeComp&&this.shouldShowPageSizeSelector()&&this.reloadPageSizesSelector()}shouldShowPageSizeSelector(){return this.gos.get("pagination")&&!this.gos.get("suppressPaginationPanel")&&!this.gos.get("paginationAutoPageSize")&&this.gos.get(ks)!==!1}reloadPageSizesSelector(){let i=this.getPageSizeSelectorValues(),o=this.pagination.getPageSize(),C=!o||!i.includes(o);if(C){let B=this.gos.exists("paginationPageSize"),W=this.gos.get(ks)!==!0;pi(94,{pageSizeSet:B,pageSizesSet:W,pageSizeOptions:i,paginationPageSizeOption:o}),W||pi(95,{paginationPageSizeOption:o,paginationPageSizeSelector:ks}),i.unshift("")}let P=String(C?"":o);this.selectPageSizeComp?(tg(this.pageSizeOptions,i)||(this.selectPageSizeComp.clearOptions().addOptions(this.createPageSizeSelectOptions(i)),this.pageSizeOptions=i),this.selectPageSizeComp.setValue(P,!0)):this.createPageSizeSelectorComp(i,P),this.hasEmptyOption=C}createPageSizeSelectOptions(i){return i.map(o=>({value:String(o)}))}createPageSizeSelectorComp(i,o){let C=this.getLocaleTextFunc(),P=C("pageSizeSelectorLabel","Page Size:"),B=C("ariaPageSizeSelectorLabel","Page Size");this.selectPageSizeComp=this.createManagedBean(new Nx).addOptions(this.createPageSizeSelectOptions(i)).setValue(o).setAriaLabel(B).setLabel(P).onValueChange(()=>this.handlePageSizeItemSelected()),this.appendChild(this.selectPageSizeComp)}getPageSizeSelectorValues(){let i=[20,50,100],o=this.gos.get(ks);return!Array.isArray(o)||!(o!=null&&o.length)?i:[...o].sort((C,P)=>C-P)}destroy(){this.toggleSelectDisplay(!1),super.destroy()}},HS={selector:"AG-PAGE-SIZE-SELECTOR",component:VS},WS=".ag-paging-panel{align-items:center;border-top:var(--ag-footer-row-border);display:flex;gap:calc(var(--ag-spacing)*4);height:max(var(--ag-row-height),22px);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}",Ek=class extends Bx{constructor(){super(),this.btFirst=Ri,this.btPrevious=Ri,this.btNext=Ri,this.btLast=Ri,this.lbRecordCount=Ri,this.lbFirstRowOnPage=Ri,this.lbLastRowOnPage=Ri,this.lbCurrent=Ri,this.lbTotal=Ri,this.pageSizeComp=Ri,this.previousAndFirstButtonsDisabled=!1,this.nextButtonDisabled=!1,this.lastButtonDisabled=!1,this.areListenersSetup=!1,this.allowFocusInnerElement=!1,this.registerCSS(WS)}wireBeans(i){this.rowModel=i.rowModel,this.pagination=i.pagination,this.ariaAnnounce=i.ariaAnnounce}postConstruct(){let i=this.gos.get("enableRtl");this.setTemplate(this.getTemplate(),[HS]);let{btFirst:o,btPrevious:C,btNext:P,btLast:B}=this;this.activateTabIndex([o,C,P,B]),o.insertAdjacentElement("afterbegin",za(i?"last":"first",this.beans)),C.insertAdjacentElement("afterbegin",za(i?"next":"previous",this.beans)),P.insertAdjacentElement("afterbegin",za(i?"previous":"next",this.beans)),B.insertAdjacentElement("afterbegin",za(i?"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:W=>{this.allowFocusInnerElement?this.tabGuardFeature.getTabGuardCtrl().focusInnerElement(W):ns(this.beans,W)},forceFocusOutWhenTabGuardsAreEmpty:!0}),this.onPaginationChanged()}setAllowFocus(i){this.allowFocusInnerElement=i}onPaginationChanged(){let o=this.gos.get("pagination")&&!this.gos.get("suppressPaginationPanel");this.setDisplayed(o),o&&(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(i=>{let{el:o,fn:C}=i;this.addManagedListeners(o,{click:C,keydown:P=>{(P.key===Qt.ENTER||P.key===Qt.SPACE)&&(P.preventDefault(),C())}})}),pa(this.beans,this,this.getGui()),this.areListenersSetup=!0)}onBtFirst(){this.previousAndFirstButtonsDisabled||this.pagination.goToFirstPage()}formatNumber(i){let o=this.gos.getCallback("paginationNumberFormatter");return o?o({value:i}):cf(i,this.getLocaleTextFunc.bind(this))}getTemplate(){let i=this.getLocaleTextFunc(),o=i("page","Page"),C=i("to","to"),P=i("of","of"),B=i("firstPage","First Page"),W=i("previousPage","Previous Page"),$=i("nextPage","Next Page"),ie=i("lastPage","Last Page"),ue=this.getCompId();return`<div class="ag-paging-panel ag-unselectable" id="ag-${ue}">
                <ag-page-size-selector data-ref="pageSizeComp"></ag-page-size-selector>
                <span class="ag-paging-row-summary-panel">
                    <span id="ag-${ue}-first-row" data-ref="lbFirstRowOnPage" class="ag-paging-row-summary-panel-number"></span>
                    <span id="ag-${ue}-to">${C}</span>
                    <span id="ag-${ue}-last-row" data-ref="lbLastRowOnPage" class="ag-paging-row-summary-panel-number"></span>
                    <span id="ag-${ue}-of">${P}</span>
                    <span id="ag-${ue}-row-count" data-ref="lbRecordCount" class="ag-paging-row-summary-panel-number"></span>
                </span>
                <span class="ag-paging-page-summary-panel" role="presentation">
                    <div data-ref="btFirst" class="ag-button ag-paging-button" role="button" aria-label="${B}"></div>
                    <div data-ref="btPrevious" class="ag-button ag-paging-button" role="button" aria-label="${W}"></div>
                    <span class="ag-paging-description">
                        <span id="ag-${ue}-start-page">${o}</span>
                        <span id="ag-${ue}-start-page-number" data-ref="lbCurrent" class="ag-paging-number"></span>
                        <span id="ag-${ue}-of-page">${P}</span>
                        <span id="ag-${ue}-of-page-number" data-ref="lbTotal" class="ag-paging-number"></span>
                    </span>
                    <div data-ref="btNext" class="ag-button ag-paging-button" role="button" aria-label="${$}"></div>
                    <div data-ref="btLast" class="ag-button ag-paging-button" role="button" aria-label="${ie}"></div>
                </span>
            </div>`}onBtNext(){this.nextButtonDisabled||this.pagination.goToNextPage()}onBtPrevious(){this.previousAndFirstButtonsDisabled||this.pagination.goToPreviousPage()}onBtLast(){this.lastButtonDisabled||this.pagination.goToLastPage()}enableOrDisableButtons(){let i=this.pagination.getCurrentPage(),o=this.rowModel.isLastRowIndexKnown(),C=this.pagination.getTotalPages();this.previousAndFirstButtonsDisabled=i===0,this.toggleButtonDisabled(this.btFirst,this.previousAndFirstButtonsDisabled),this.toggleButtonDisabled(this.btPrevious,this.previousAndFirstButtonsDisabled);let P=this.isZeroPagesToDisplay(),B=i===C-1;this.nextButtonDisabled=B||P,this.lastButtonDisabled=!o||P||i===C-1,this.toggleButtonDisabled(this.btNext,this.nextButtonDisabled),this.toggleButtonDisabled(this.btLast,this.lastButtonDisabled)}toggleButtonDisabled(i,o){ye(i,o),i.classList.toggle("ag-disabled",o)}isZeroPagesToDisplay(){let i=this.rowModel.isLastRowIndexKnown(),o=this.pagination.getTotalPages();return i&&o===0}updateLabels(){let i=this.rowModel.isLastRowIndexKnown(),o=this.pagination.getTotalPages(),C=this.pagination.getMasterRowCount(),P=i?C:null;if(P===1){let ti=this.rowModel.getRow(0);if(ti&&ti.group&&!(ti.groupData||ti.aggData)){this.setTotalLabelsToZero();return}}let B=this.pagination.getCurrentPage(),W=this.pagination.getPageSize(),$,ie;this.isZeroPagesToDisplay()?$=ie=0:($=W*B+1,ie=$+W-1,i&&ie>P&&(ie=P));let ue=$+W-1,De=!i&&C<ue,_e=this.formatNumber($);this.lbFirstRowOnPage.textContent=_e;let Be,Qe=this.getLocaleTextFunc();De?Be=Qe("pageLastRowUnknown","?"):Be=this.formatNumber(ie),this.lbLastRowOnPage.textContent=Be;let Ct=o>0?B+1:0,Ot=this.formatNumber(Ct);this.lbCurrent.textContent=Ot;let Pt,Kt;if(i)Pt=this.formatNumber(o),Kt=this.formatNumber(P);else{let ti=Qe("more","more");Pt=ti,Kt=ti}this.lbTotal.textContent=Pt,this.lbRecordCount.textContent=Kt,this.announceAriaStatus(_e,Be,Kt,Ot,Pt)}announceAriaStatus(i,o,C,P,B){var Be,Qe;let W=this.getLocaleTextFunc(),$=W("page","Page"),ie=W("to","to"),ue=W("of","of"),De=`${i} ${ie} ${o} ${ue} ${C}`,_e=`${$} ${P} ${ue} ${B}`;De!==this.ariaRowStatus&&(this.ariaRowStatus=De,(Be=this.ariaAnnounce)==null||Be.announceValue(De,"paginationRow")),_e!==this.ariaPageStatus&&(this.ariaPageStatus=_e,(Qe=this.ariaAnnounce)==null||Qe.announceValue(_e,"paginationPage"))}setTotalLabelsToZero(){let i=this.formatNumber(0);this.lbFirstRowOnPage.textContent=i,this.lbCurrent.textContent=i,this.lbLastRowOnPage.textContent=i,this.lbTotal.textContent=i,this.lbRecordCount.textContent=i,this.announceAriaStatus(i,i,i,i,i)}},tl={selector:"AG-PAGINATION",component:Ek},Pr=class extends ei{constructor(){super(...arguments),this.beanName="pagination",this.currentPage=0,this.topDisplayedRowIndex=0,this.bottomDisplayedRowIndex=0,this.masterRowCount=0}postConstruct(){let i=this.gos;this.active=i.get("pagination"),this.pageSizeFromGridOptions=i.get("paginationPageSize"),this.paginateChildRows=this.isPaginateChildRows(),this.addManagedPropertyListener("pagination",this.onPaginationGridOptionChanged.bind(this)),this.addManagedPropertyListener("paginationPageSize",this.onPageSizeGridOptionChanged.bind(this))}getPaginationSelector(){return tl}isPaginateChildRows(){let i=this.gos;return i.get("groupHideParentOfSingleChild")||i.get("groupRemoveSingleChildren")||i.get("groupRemoveLowestSingleChildren")?!0:i.get("paginateChildRows")}onPaginationGridOptionChanged(){this.active=this.gos.get("pagination"),this.calculatePages(),this.dispatchPaginationChangedEvent({keepRenderedRows:!0})}onPageSizeGridOptionChanged(){this.setPageSize(this.gos.get("paginationPageSize"),"gridOptions")}goToPage(i){let o=this.currentPage;!this.active||o===i||typeof o!="number"||(this.currentPage=i,this.calculatePages(),this.dispatchPaginationChangedEvent({newPage:!0}))}isRowPresent(i){return i.rowIndex>=this.topDisplayedRowIndex&&i.rowIndex<=this.bottomDisplayedRowIndex}getPageForIndex(i){return Math.floor(i/this.pageSize)}goToPageWithIndex(i){if(!this.active)return;let o=this.getPageForIndex(i);this.goToPage(o)}isRowInPage(i){return this.active?this.getPageForIndex(i.rowIndex)===this.currentPage:!0}getCurrentPage(){return this.currentPage}goToNextPage(){this.goToPage(this.currentPage+1)}goToPreviousPage(){this.goToPage(this.currentPage-1)}goToFirstPage(){this.goToPage(0)}goToLastPage(){let i=this.beans.rowModel.getRowCount(),o=Math.floor(i/this.pageSize);this.goToPage(o)}getPageSize(){return this.pageSize}getTotalPages(){return this.totalPages}setPage(i){this.currentPage=i}get pageSize(){return Ai(this.pageSizeAutoCalculated)&&this.gos.get("paginationAutoPageSize")?this.pageSizeAutoCalculated:Ai(this.pageSizeFromPageSizeSelector)?this.pageSizeFromPageSizeSelector:Ai(this.pageSizeFromInitialState)?this.pageSizeFromInitialState:Ai(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(this.pageSizeAutoCalculated===void 0)return;let i=this.pageSizeAutoCalculated;this.pageSizeAutoCalculated=void 0,this.pageSize!==i&&(this.calculatePages(),this.dispatchPaginationChangedEvent({newPageSize:!0}))}setPageSize(i,o){let C=this.pageSize;switch(o){case"autoCalculated":this.pageSizeAutoCalculated=i;break;case"pageSizeSelector":this.pageSizeFromPageSizeSelector=i,this.currentPage!==0&&this.goToFirstPage();break;case"initialState":this.pageSizeFromInitialState=i;break;case"gridOptions":this.pageSizeFromGridOptions=i,this.pageSizeFromInitialState=void 0,this.pageSizeFromPageSizeSelector=void 0,this.currentPage!==0&&this.goToFirstPage();break}C!==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(){let i=this.totalPages;this.currentPage>=i&&(this.currentPage=i-1);let o=this.currentPage;(!isFinite(o)||isNaN(o)||o<0)&&(this.currentPage=0)}calculatePagesMasterRowsOnly(){let i=this.beans.rowModel,o=i.getTopLevelRowCount();if(this.masterRowCount=o,o<=0){this.setZeroRows();return}let C=this.pageSize,P=o-1;this.totalPages=Math.floor(P/C)+1,this.adjustCurrentPageIfInvalid();let B=this.currentPage,W=C*B,$=C*(B+1)-1;if($>P&&($=P),this.topDisplayedRowIndex=i.getTopLevelRowDisplayedIndex(W),$===P)this.bottomDisplayedRowIndex=i.getRowCount()-1;else{let ie=i.getTopLevelRowDisplayedIndex($+1);this.bottomDisplayedRowIndex=ie-1}}getMasterRowCount(){return this.masterRowCount}calculatePagesAllRows(){let i=this.beans.rowModel.getRowCount();if(this.masterRowCount=i,i===0){this.setZeroRows();return}let{pageSize:o,currentPage:C}=this,P=i-1;this.totalPages=Math.floor(P/o)+1,this.adjustCurrentPageIfInvalid(),this.topDisplayedRowIndex=o*C,this.bottomDisplayedRowIndex=o*(C+1)-1,this.bottomDisplayedRowIndex>P&&(this.bottomDisplayedRowIndex=P)}calculatedPagesNotActive(){this.setPageSize(void 0,"autoCalculated"),this.totalPages=1,this.currentPage=0,this.topDisplayedRowIndex=0,this.bottomDisplayedRowIndex=this.beans.rowModel.getRowCount()-1}dispatchPaginationChangedEvent(i){let{keepRenderedRows:o=!1,newPage:C=!1,newPageSize:P=!1}=i;this.eventSvc.dispatchEvent({type:"paginationChanged",animate:!1,newData:!1,newPage:C,newPageSize:P,keepRenderedRows:o})}},Qd={moduleName:"Pagination",version:yi,beans:[Pr,Wp],icons:{first:"first",previous:"previous",next:"next",last:"last"},apiFunctions:{paginationIsLastPageFound:I1,paginationGetPageSize:sr,paginationGetCurrentPage:kk,paginationGetTotalPages:qT,paginationGetRowCount:YT,paginationGoToNextPage:Ak,paginationGoToPreviousPage:Dk,paginationGoToFirstPage:$d,paginationGoToLastPage:jS,paginationGoToPage:Yr},dependsOn:[Eg]};function jh(i,o={}){let C=o?o.rowNodes:void 0;i.frameworkOverrides.wrapIncoming(()=>i.rowRenderer.redrawRows(C))}function Af(i,o,C,P,B){o&&(P&&o.parent&&o.parent.level!==-1&&Af(i,o.parent,C,P,B),o.setExpanded(C,void 0,B))}function US(i,o){return i.rowModel.getRowNode(o)}function Up(i,o,C,P){i.rowRenderer.addRenderedRowListener(o,C,P)}function Df(i){return i.rowRenderer.getRenderedNodes()}function Tl(i,o,C){i.rowModel.forEachNode(o,C)}function ua(i){return i.rowRenderer.firstRenderedRow}function bd(i){return i.rowRenderer.lastRenderedRow}function Ng(i,o){return i.rowModel.getRow(o)}function aC(i){return i.rowModel.getRowCount()}var Bu={moduleName:"RowApi",version:yi,apiFunctions:{redrawRows:jh,setRowNodeExpanded:Af,getRowNode:US,addRenderedRowListener:Up,getRenderedNodes:Df,forEachNode:Tl,getFirstDisplayedRowIndex:ua,getLastDisplayedRowIndex:bd,getDisplayedRowAtIndex:Ng,getDisplayedRowCount:aC}},Kp={moduleName:"ScrollApi",version:yi,apiFunctions:{getVerticalPixelRange:Gc,getHorizontalPixelRange:Cf,ensureColumnVisible:sc,ensureIndexVisible:_T,ensureNodeVisible:ML}};function qp(i,o,C){if(!o)return;let P=i.ctrlsSvc.getGridBodyCtrl().eGridBody,B=`aria-${o}`;C===null?P.removeAttribute(B):P.setAttribute(B,C)}function dc(i,o={}){i.frameworkOverrides.wrapIncoming(()=>i.rowRenderer.refreshCells(o))}function XT(i){i.frameworkOverrides.wrapIncoming(()=>i.ctrlsSvc.getHeaderRowContainerCtrls().forEach(o=>o.refresh()))}function KS(i){var o,C;return(C=(o=i.animationFrameSvc)==null?void 0:o.isQueueEmpty())!=null?C:!0}function T1(i){var o;(o=i.animationFrameSvc)==null||o.flushAllFrames()}function IL(i){return{rowHeight:hh(i),headerHeight:Da(i)}}function ey(i,o={}){var W;let C=[];if(i.rowRenderer.getCellCtrls(o.rowNodes,o.columns).forEach($=>{let ie=$.getCellRenderer();ie!=null&&C.push(xh(ie))}),(W=o.columns)!=null&&W.length)return C;let P=[],B=kl(o.rowNodes);return i.rowRenderer.getAllRowCtrls().forEach($=>{if(B&&!Jn($.rowNode,B)||!$.isFullWidth())return;let ie=$.getFullWidthCellRenderers();for(let ue=0;ue<ie.length;ue++){let De=ie[ue];De!=null&&P.push(xh(De))}}),[...P,...C]}var Yp={moduleName:"RenderApi",version:yi,apiFunctions:{setGridAriaProperty:qp,refreshCells:dc,refreshHeader:XT,isAnimationFrameQueueEmpty:KS,flushAllAnimationFrames:T1,getSizesForCurrentTheme:IL,getCellRendererInstances:ey}};function R1(i,o){var C,P;typeof o=="number"?(C=i.colAutosize)==null||C.sizeColumnsToFit(o,"api"):(P=i.colAutosize)==null||P.sizeColumnsToFitGridBody(o)}function ty(i,o,C){var P;(P=i.colAutosize)==null||P.autoSizeCols({colKeys:o,skipHeader:C,source:"api"})}function Ba(i,o){var C;(C=i.colAutosize)==null||C.autoSizeAllColumns("api",o)}var ZT=class extends ei{constructor(){super(...arguments),this.beanName="colAutosize",this.timesDelayed=0,this.shouldQueueResizeOperations=!1,this.resizeOperationQueue=[]}postConstruct(){this.addManagedEventListeners({firstDataRendered:()=>this.onFirstDataRendered()})}autoSizeCols(i){if(this.shouldQueueResizeOperations){this.pushResizeOperation(()=>this.autoSizeCols(i));return}let{colKeys:o,skipHeader:C,skipHeaderGroups:P,stopAtGroup:B,source:W="api"}=i,{animationFrameSvc:$,renderStatus:ie,colModel:ue,autoWidthCalc:De,visibleCols:_e}=this.beans;if($==null||$.flushAllFrames(),this.timesDelayed<5&&ie&&!ie.areHeaderCellsRendered()){this.timesDelayed++,setTimeout(()=>{this.isAlive()&&this.autoSizeCols(i)});return}this.timesDelayed=0;let Be=[],Qe=-1,st=C!=null?C:this.gos.get("skipHeaderOnAutoSize"),Ct=P!=null?P:st;for(;Qe!==0;){Qe=0;let Ot=[];o.forEach(Pt=>{if(!Pt)return;let Kt=ue.getCol(Pt);if(!Kt||Be.indexOf(Kt)>=0)return;let ti=De.getPreferredWidthForColumn(Kt,st);if(ti>0){let Jt=P1(Kt,ti);Kt.setActualWidth(Jt,W),Be.push(Kt),Qe++}Ot.push(Kt)}),Ot.length&&_e.refresh(W)}Ct||this.autoSizeColumnGroupsByColumns(o,W,B),ig(this.eventSvc,Be,!0,"autosizeColumns")}autoSizeColumn(i,o,C){i&&this.autoSizeCols({colKeys:[i],skipHeader:C,skipHeaderGroups:!0,source:o})}autoSizeColumnGroupsByColumns(i,o,C){let{colModel:P,ctrlsSvc:B}=this.beans,W=new Set;P.getColsForKeys(i).forEach(De=>{let _e=De.getParent();for(;_e&&_e!=C;)_e.isPadding()||W.add(_e),_e=_e.getParent()});let ie,ue=[];for(let De of W){for(let _e of B.getHeaderRowContainerCtrls())if(ie=_e.getHeaderCtrlForColumn(De),ie)break;ie&&ie.resizeLeafColumnsToFit(o)}return ue}autoSizeAllColumns(i,o){if(this.shouldQueueResizeOperations){this.pushResizeOperation(()=>this.autoSizeAllColumns(i,o));return}let C=this.beans.visibleCols.allCols;this.autoSizeCols({colKeys:C,skipHeader:o,source:i})}addColumnAutosize(i,o){let C=this.gos.get("skipHeaderOnAutoSize"),P=()=>{this.autoSizeColumn(o,"uiColumnResized",C)};i.addEventListener("dblclick",P);let B=new qs(i);return B.addEventListener("doubleTap",P),()=>{i.removeEventListener("dblclick",P),B.removeEventListener("doubleTap",P),B.destroy()}}addColumnGroupResize(i,o,C){let P=this.gos.get("skipHeaderOnAutoSize"),B=()=>{let W=[];o.getDisplayedLeafColumns().forEach(ie=>{ie.getColDef().suppressAutoSize||W.push(ie.getColId())}),W.length>0&&this.autoSizeCols({colKeys:W,skipHeader:P,stopAtGroup:o,source:"uiColumnResized"}),C()};return i.addEventListener("dblclick",B),()=>i.removeEventListener("dblclick",B)}sizeColumnsToFitGridBody(i,o){if(!this.isAlive())return;let{ctrlsSvc:C,scrollVisibleSvc:P}=this.beans,B=C.getGridBodyCtrl(),$=B.isVerticalScrollShowing()?P.getScrollbarWidth():0,ue=to(B.eGridBody)-$;if(ue>0){this.sizeColumnsToFit(ue,"sizeColumnsToFit",!1,i);return}o===void 0?window.setTimeout(()=>{this.sizeColumnsToFitGridBody(i,100)},0):o===100?window.setTimeout(()=>{this.sizeColumnsToFitGridBody(i,500)},100):o===500?window.setTimeout(()=>{this.sizeColumnsToFitGridBody(i,-1)},500):pi(29)}sizeColumnsToFit(i,o="sizeColumnsToFit",C,P){var st,Ct,Ot;if(this.shouldQueueResizeOperations){this.pushResizeOperation(()=>this.sizeColumnsToFit(i,o,C,P));return}let B={};P&&((st=P==null?void 0:P.columnLimits)==null||st.forEach(ti=>{var Jt=ti,{key:Pt}=Jt,Kt=ji(Jt,["key"]);B[typeof Pt=="string"?Pt:Pt.getColId()]=Kt}));let W=this.beans.visibleCols.allCols,$=i===yh(W);if(i<=0||!W.length||$)return;let ie=[],ue=[];W.forEach(Pt=>{Pt.getColDef().suppressSizeToFit===!0?ue.push(Pt):ie.push(Pt)});let De=ie.slice(0),_e=!1,Be=Pt=>{qo(ie,Pt),ue.push(Pt)};for(ie.forEach(Pt=>{var Mi,qi;Pt.resetActualWidth(o);let Kt=B==null?void 0:B[Pt.getId()],ti=(Mi=Kt==null?void 0:Kt.minWidth)!=null?Mi:P==null?void 0:P.defaultMinWidth,Jt=(qi=Kt==null?void 0:Kt.maxWidth)!=null?qi:P==null?void 0:P.defaultMaxWidth,ai=Pt.getActualWidth();typeof ti=="number"&&ai<ti?Pt.setActualWidth(ti,o,!0):typeof Jt=="number"&&ai>Jt&&Pt.setActualWidth(Jt,o,!0)});!_e;){_e=!0;let Pt=i-yh(ue);if(Pt<=0)ie.forEach(Kt=>{var Jt,ai;let ti=(ai=(Jt=B==null?void 0:B[Kt.getId()])==null?void 0:Jt.minWidth)!=null?ai:P==null?void 0:P.defaultMinWidth;if(typeof ti=="number"){Kt.setActualWidth(ti,o,!0);return}Kt.setActualWidth(Kt.minWidth,o)});else{let Kt=Pt/yh(ie),ti=Pt;for(let Jt=ie.length-1;Jt>=0;Jt--){let ai=ie[Jt],Mi=B==null?void 0:B[ai.getId()],qi=(Ct=Mi==null?void 0:Mi.minWidth)!=null?Ct:P==null?void 0:P.defaultMinWidth,Fn=(Ot=Mi==null?void 0:Mi.maxWidth)!=null?Ot:P==null?void 0:P.defaultMaxWidth,Xn=ai.getMinWidth(),Ga=ai.getMaxWidth(),ba=typeof qi=="number"&&qi>Xn?qi:Xn,Qa=typeof Fn=="number"&&Fn<Ga?Fn:Ga,gn=Math.round(ai.getActualWidth()*Kt);gn<ba?(gn=ba,Be(ai),_e=!1):gn>Qa?(gn=Qa,Be(ai),_e=!1):Jt===0&&(gn=ti),ai.setActualWidth(gn,o,!0),ti-=gn}}}De.forEach(Pt=>{Pt.fireColumnWidthChangedEvent(o)});let Qe=this.beans.visibleCols;Qe.setLeftValues(o),Qe.updateBodyWidths(),!C&&ig(this.eventSvc,De,!0,o)}applyAutosizeStrategy(){let i=this.gos.get("autoSizeStrategy");if(!i)return;let{type:o}=i;setTimeout(()=>{if(o==="fitGridWidth"){let{columnLimits:C,defaultMinWidth:P,defaultMaxWidth:B}=i,W=C==null?void 0:C.map(({colId:$,minWidth:ie,maxWidth:ue})=>({key:$,minWidth:ie,maxWidth:ue}));this.sizeColumnsToFitGridBody({defaultMinWidth:P,defaultMaxWidth:B,columnLimits:W})}else o==="fitProvidedWidth"&&this.sizeColumnsToFit(i.width,"sizeColumnsToFit")})}onFirstDataRendered(){let i=this.gos.get("autoSizeStrategy");if((i==null?void 0:i.type)!=="fitCellContents")return;let{colIds:o,skipHeader:C}=i;setTimeout(()=>{o?this.autoSizeCols({colKeys:o,skipHeader:C,source:"autosizeColumns"}):this.autoSizeAllColumns("autosizeColumns",C)})}processResizeOperations(){this.shouldQueueResizeOperations=!1,this.resizeOperationQueue.forEach(i=>i()),this.resizeOperationQueue=[]}pushResizeOperation(i){this.resizeOperationQueue.push(i)}destroy(){this.resizeOperationQueue.length=0,super.destroy()}};function P1(i,o){let C=i.getMinWidth();o<C&&(o=C);let P=i.getMaxWidth();return i.isGreaterThanMax(o)&&(o=P),o}var $T={moduleName:"ColumnAutoSize",version:yi,beans:[ZT],apiFunctions:{sizeColumnsToFit:R1,autoSizeColumns:ty,autoSizeAllColumns:Ba},dependsOn:[Sb]};function L1(i){var o,C;return(C=(o=i.pinnedRowModel)==null?void 0:o.getPinnedTopRowCount())!=null?C:0}function QT(i){var o,C;return(C=(o=i.pinnedRowModel)==null?void 0:o.getPinnedBottomRowCount())!=null?C:0}function Ik(i,o){var C;return(C=i.pinnedRowModel)==null?void 0:C.getPinnedTopRow(o)}function Rl(i,o){var C;return(C=i.pinnedRowModel)==null?void 0:C.getPinnedBottomRow(o)}var Gu=class extends ei{constructor(){super(...arguments),this.beanName="pinnedRowModel",this.nextId=0,this.pinnedTopRows={cache:{},order:[]},this.pinnedBottomRows={cache:{},order:[]}}postConstruct(){let i=this.gos;this.setPinnedRowData(i.get("pinnedTopRowData"),"top"),this.setPinnedRowData(i.get("pinnedBottomRowData"),"bottom"),this.addManagedPropertyListener("pinnedTopRowData",o=>this.setPinnedRowData(o.currentValue,"top")),this.addManagedPropertyListener("pinnedBottomRowData",o=>this.setPinnedRowData(o.currentValue,"bottom")),this.addManagedEventListeners({gridStylesChanged:this.onGridStylesChanges.bind(this)})}isEmpty(i){return this.getCache(i).order.length===0}isRowsToRender(i){return!this.isEmpty(i)}onGridStylesChanges(i){if(i.rowHeightChanged){let o=C=>{C.setRowHeight(C.rowHeight,!0)};If(this.pinnedBottomRows,o),If(this.pinnedTopRows,o)}}ensureRowHeightsValid(){let i=!1,o=0,C=P=>{if(P.rowHeightEstimated){let B=uh(this.beans,P);P.setRowTop(o),P.setRowHeight(B.height),o+=B.height,i=!0}};return If(this.pinnedBottomRows,C),o=0,If(this.pinnedTopRows,C),this.eventSvc.dispatchEvent({type:"pinnedHeightChanged"}),i}setPinnedRowData(i,o){this.updateNodesFromRowData(i,o),this.eventSvc.dispatchEvent({type:"pinnedRowDataChanged"})}updateNodesFromRowData(i,o){var _e;let C=this.getCache(o);if(i===void 0){C.order.length=0,C.cache={};return}let P=ev(this.gos),B=o==="top"?m0:mo,W=new Set(C.order),$=[],ie=new Set,ue=0,De=-1;for(let Be of i){let Qe=(_e=P==null?void 0:P({data:Be,level:0,rowPinned:o}))!=null?_e:B+this.nextId++;if(ie.has(Qe)){pi(96,{id:Qe,data:Be});continue}De++,ie.add(Qe),$.push(Qe);let st=Ef(C,Qe);if(st!==void 0)st.data!==Be&&st.setData(Be),ue+=this.setRowTopAndRowIndex(st,ue,De),W.delete(Qe);else{let Ct=new Xo(this.beans);Ct.id=Qe,Ct.data=Be,Ct.rowPinned=o,ue+=this.setRowTopAndRowIndex(Ct,ue,De),C.cache[Qe]=Ct,C.order.push(Qe)}}W.forEach(Be=>{var Qe;(Qe=Ef(C,Be))==null||Qe.clearRowTopAndRowIndex(),delete C.cache[Be]}),C.order=$}setRowTopAndRowIndex(i,o,C){return i.setRowTop(o),i.setRowHeight(uh(this.beans,i).height),i.setRowIndex(C),i.rowHeight}getPinnedTopTotalHeight(){return Tk(this.pinnedTopRows)}getPinnedBottomTotalHeight(){return Tk(this.pinnedBottomRows)}getPinnedTopRowCount(){return YS(this.pinnedTopRows)}getPinnedBottomRowCount(){return YS(this.pinnedBottomRows)}getPinnedTopRow(i){return qS(this.pinnedTopRows,i)}getPinnedBottomRow(i){return qS(this.pinnedBottomRows,i)}getPinnedRowById(i,o){return Ef(this.getCache(o),i)}forEachPinnedRow(i,o){return If(this.getCache(i),o)}getCache(i){return i==="top"?this.pinnedTopRows:this.pinnedBottomRows}};function Tk(i){let o=YS(i);if(o===0)return 0;let C=qS(i,o-1);return C===void 0?0:C.rowTop+C.rowHeight}function Ef(i,o){return i.cache[o]}function qS(i,o){return Ef(i,i.order[o])}function If(i,o){i.order.forEach((C,P)=>{let B=Ef(i,C);B&&o(B,P)})}function YS(i){return i.order.length}var Rk={moduleName:"PinnedRow",version:yi,beans:[Gu],apiFunctions:{getPinnedTopRowCount:L1,getPinnedBottomRowCount:QT,getPinnedTopRow:Ik,getPinnedBottomRow:Rl}},JT=class extends ei{constructor(i,o){super(),this.cellCtrl=i,this.staticClasses=[],this.beans=o,this.column=i.column}setComp(i){this.cellComp=i,this.applyUserStyles(),this.applyCellClassRules(),this.applyClassesFromColDef()}applyCellClassRules(){let{column:i,cellComp:o}=this,C=i.colDef,P=C.cellClassRules,B=this.getCellClassParams(i,C);y0(this.beans.expressionSvc,P===this.cellClassRules?void 0:this.cellClassRules,P,B,W=>o.addOrRemoveCssClass(W,!0),W=>o.addOrRemoveCssClass(W,!1)),this.cellClassRules=P}applyUserStyles(){let i=this.column,o=i.colDef,C=o.cellStyle;if(!C)return;let P;if(typeof C=="function"){let B=this.getCellClassParams(i,o);P=C(B)}else P=C;P&&this.cellComp.setUserStyles(P)}applyClassesFromColDef(){let{column:i,cellComp:o}=this,C=i.colDef,P=this.getCellClassParams(i,C);this.staticClasses.forEach(W=>o.addOrRemoveCssClass(W,!1));let B=this.beans.cellStyles.getStaticCellClasses(C,P);this.staticClasses=B,B.forEach(W=>o.addOrRemoveCssClass(W,!0))}getCellClassParams(i,o){let{value:C,rowNode:P}=this.cellCtrl;return this.beans.gos.addGridCommonParams({value:C,data:P.data,node:P,colDef:o,column:i,rowIndex:P.rowIndex})}},XS=class extends ei{constructor(){super(...arguments),this.beanName="cellStyles"}processAllCellClasses(i,o,C,P){y0(this.beans.expressionSvc,void 0,i.cellClassRules,o,C,P),this.processStaticCellClasses(i,o,C)}getStaticCellClasses(i,o){let{cellClass:C}=i;if(!C)return[];let P;return typeof C=="function"?P=C(o):P=C,typeof P=="string"&&(P=[P]),P||[]}createCellCustomStyleFeature(i,o){return new JT(i,o)}processStaticCellClasses(i,o,C){this.getStaticCellClasses(i,o).forEach(B=>{C(B)})}},oC={moduleName:"CellStyle",version:yi,beans:[XS]},ZS={moduleName:"RowStyle",version:yi,beans:[pv]};function $S(i,o){var C;return!!((C=i.colHover)!=null&&C.isHovered(o))}var Pk=class extends ei{constructor(i,o){super(),this.columns=i,this.element=o}postConstruct(){if(this.gos.get("columnHoverHighlight")){let i=this.beans.colHover;this.addManagedListeners(this.element,{mouseout:i.clearMouseOver.bind(i),mouseover:i.setMouseOver.bind(i,this.columns)})}}},O1="ag-column-hover",Lk=class extends ei{constructor(){super(...arguments),this.beanName="colHover"}setMouseOver(i){this.updateState(i)}clearMouseOver(){this.updateState(null)}isHovered(i){let o=this.selectedColumns;return!!o&&o.indexOf(i)>=0}addHeaderColumnHoverListener(i,o,C){let P=()=>{if(!this.gos.get("columnHoverHighlight"))return;let B=this.isHovered(C);o.addOrRemoveCssClass("ag-column-hover",B)};i.addManagedEventListeners({columnHoverChanged:P}),P()}onCellColumnHover(i,o){if(!o||!this.gos.get("columnHoverHighlight"))return;let C=this.isHovered(i);o.addOrRemoveCssClass(O1,C)}addHeaderFilterColumnHoverListener(i,o,C,P){this.createHoverFeature(i,[C],P);let B=()=>{if(!this.gos.get("columnHoverHighlight"))return;let W=this.isHovered(C);o.addOrRemoveCssClass("ag-column-hover",W)};i.addManagedEventListeners({columnHoverChanged:B}),B()}createHoverFeature(i,o,C){i.createManagedBean(new Pk(o,C))}updateState(i){this.selectedColumns=i,this.eventSvc.dispatchEvent({type:"columnHoverChanged"})}},Ok={moduleName:"ColumnHover",version:yi,beans:[Lk],apiFunctions:{isColumnHovered:$S}},Jd=class extends ei{constructor(){super(...arguments),this.beanName="apiEventSvc",this.syncListeners=new Map,this.asyncListeners=new Map,this.syncGlobalListeners=new Set,this.globalListenerPairs=new Map}postConstruct(){var i,o;this.wrapSvc=(o=(i=this.beans.frameworkOverrides).createGlobalEventListenerWrapper)==null?void 0:o.call(i)}addEventListener(i,o){var W,$;let C=($=(W=this.wrapSvc)==null?void 0:W.wrap(o))!=null?$:o,P=!Ud.has(i),B=P?this.asyncListeners:this.syncListeners;B.has(i)||B.set(i,new Set),B.get(i).add(C),this.eventSvc.addEventListener(i,C,P)}removeEventListener(i,o){var W,$,ie;let C=($=(W=this.wrapSvc)==null?void 0:W.unwrap(o))!=null?$:o,P=this.asyncListeners.get(i),B=!!(P!=null&&P.delete(C));B||(ie=this.syncListeners.get(i))==null||ie.delete(C),this.eventSvc.removeEventListener(i,C,B)}addGlobalListener(i){var W,$;let o=($=(W=this.wrapSvc)==null?void 0:W.wrapGlobal(i))!=null?$:i,C=(ie,ue)=>{Ud.has(ie)&&o(ie,ue)},P=(ie,ue)=>{Ud.has(ie)||o(ie,ue)};this.globalListenerPairs.set(i,{syncListener:C,asyncListener:P});let B=this.eventSvc;B.addGlobalListener(C,!1),B.addGlobalListener(P,!0)}removeGlobalListener(i){var $;let{eventSvc:o,wrapSvc:C,globalListenerPairs:P}=this,B=($=C==null?void 0:C.unwrapGlobal(i))!=null?$:i;if(P.has(B)){let{syncListener:ie,asyncListener:ue}=P.get(B);o.removeGlobalListener(ie,!1),o.removeGlobalListener(ue,!0),P.delete(i)}else this.syncGlobalListeners.delete(B),o.removeGlobalListener(B,!1)}destroyEventListeners(i,o){i.forEach((C,P)=>{C.forEach(B=>this.eventSvc.removeEventListener(P,B,o)),C.clear()}),i.clear()}destroyGlobalListeners(i,o){i.forEach(C=>this.eventSvc.removeGlobalListener(C,o)),i.clear()}destroy(){super.destroy(),this.destroyEventListeners(this.syncListeners,!1),this.destroyEventListeners(this.asyncListeners,!0),this.destroyGlobalListeners(this.syncGlobalListeners,!1);let{globalListenerPairs:i,eventSvc:o}=this;i.forEach(({syncListener:C,asyncListener:P})=>{o.removeGlobalListener(C,!1),o.removeGlobalListener(P,!0)}),i.clear()}};function fn(i,o,C){var P;(P=i.apiEventSvc)==null||P.addEventListener(o,C)}function Cd(i,o,C){var P;(P=i.apiEventSvc)==null||P.removeEventListener(o,C)}function Pl(i,o){var C;(C=i.apiEventSvc)==null||C.addGlobalListener(o)}function TL(i,o){var C;(C=i.apiEventSvc)==null||C.removeGlobalListener(o)}var Xp={moduleName:"EventApi",version:yi,apiFunctions:{addEventListener:fn,addGlobalListener:Pl,removeEventListener:Cd,removeGlobalListener:TL},beans:[Jd]},eR=".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);white-space:normal}.ag-tooltip,.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}}",RL=class extends ei{constructor(){super(...arguments),this.beanName="tooltipSvc"}setupHeaderTooltip(i,o,C,P){i&&o.destroyBean(i);let B=rs(this.gos),{column:W,eGui:$}=o,ie=W.getColDef();!P&&B&&!ie.headerComponent&&(P=Vm(()=>$.querySelector(".ag-header-cell-text")));let ue={getColumn:()=>W,getColDef:()=>W.getColDef(),getGui:()=>$,getLocation:()=>"header",getTooltipValue:()=>C!=null?C:W.getColDef().headerTooltip,shouldDisplayTooltip:P},De=this.createTooltipFeature(ue);return De&&(De=o.createBean(De),o.setRefreshFunction("tooltip",()=>De.refreshTooltip())),De}setupHeaderGroupTooltip(i,o,C,P){i&&o.destroyBean(i);let B=rs(this.gos),{column:W,eGui:$}=o,ie=W.getColGroupDef();!P&&B&&!(ie!=null&&ie.headerGroupComponent)&&(P=Vm(()=>$.querySelector(".ag-header-group-text")));let ue={getColumn:()=>W,getGui:()=>$,getLocation:()=>"headerGroup",getTooltipValue:()=>C!=null?C:ie&&ie.headerTooltip,shouldDisplayTooltip:P};ie&&(ue.getColDef=()=>ie);let De=this.createTooltipFeature(ue);return De&&o.createBean(De)}enableCellTooltipFeature(i,o,C){let{column:P,rowNode:B}=i,W=()=>{let ue=P.getColDef(),De=B.data;if(ue.tooltipField&&Ai(De))return ph(De,ue.tooltipField,P.isTooltipFieldContainsDots());let _e=ue.tooltipValueGetter;return _e?_e(this.gos.addGridCommonParams({location:"cell",colDef:P.getColDef(),column:P,rowIndex:i.cellPosition.rowIndex,node:B,data:B.data,value:i.value,valueFormatted:i.valueFormatted})):null},$=rs(this.gos);!C&&$&&!i.isCellRenderer()&&(C=Vm(()=>{let{eGui:ue}=i;return ue.children.length===0?ue:ue.querySelector(".ag-cell-value")}));let ie={getColumn:()=>P,getColDef:()=>P.getColDef(),getRowIndex:()=>i.cellPosition.rowIndex,getRowNode:()=>B,getGui:()=>i.eGui,getLocation:()=>"cell",getTooltipValue:o!=null?()=>o:W,getValueFormatted:()=>i.valueFormatted,shouldDisplayTooltip:C};return this.createTooltipFeature(ie,this.beans)}refreshRowTooltip(i,o,C,P){let B={getGui:()=>o.getFullWidthElement(),getTooltipValue:()=>C,getLocation:()=>"fullWidthRow",shouldDisplayTooltip:P},W=this.beans,$=W.context;i&&o.destroyBean(i,$);let ie=this.createTooltipFeature(B,W);return o.createBean(ie,$)}initCol(i){let{colDef:o}=i;i.tooltipEnabled=Ai(o.tooltipField)||Ai(o.tooltipValueGetter)||Ai(o.tooltipComponent)}createTooltipFeature(i,o){return this.beans.registry.createDynamicBean("tooltipFeature",!1,i,o)}},_1={moduleName:"Tooltip",version:yi,beans:[RL],dynamicBeans:{tooltipFeature:Du},userComponents:{agTooltipComponent:n1},dependsOn:[Eg],css:[eR]},QS={moduleName:"Locale",version:yi,beans:[OM]},As=class extends ei{constructor(){super(...arguments),this.beanName="rowAutoHeight",this.wasEverActive=!1}setRowAutoHeight(i,o,C){i.__autoHeights||(i.__autoHeights={}),i.__autoHeights[C.getId()]=o,o!=null&&(i.__checkAutoHeightsDebounced==null&&(i.__checkAutoHeightsDebounced=zr(this,this.doCheckAutoHeights.bind(this,i),1)),i.__checkAutoHeightsDebounced())}checkAutoHeights(i){this.wasEverActive&&this.doCheckAutoHeights(i)}doCheckAutoHeights(i){var _e;let o=i.__autoHeights;if(o==null)return;let C=!1,P=!0,B=0,{visibleCols:W,colModel:$,colViewport:ie,rowModel:ue}=this.beans;W.autoHeightCols.forEach(Be=>{let Qe=o[Be.getId()];if(Qe==null)if($.colSpanActive){let st=[];switch(Be.getPinned()){case"left":st=W.getLeftColsForRow(i);break;case"right":st=W.getRightColsForRow(i);break;case null:st=ie.getColsWithinViewport(i);break}if(st.includes(Be)){C=!0;return}Qe=-1}else{C=!0;return}else P=!1;Qe>B&&(B=Qe)}),!C&&((P||B<10)&&(B=uh(this.beans,i).height),B!=i.rowHeight&&(i.setRowHeight(B),(_e=ue.onRowHeightChangedDebounced)==null||_e.call(ue)))}setupCellAutoHeight(i,o,C){let P=o.parentElement,{rowNode:B,column:W}=i,$=this.beans,ie=uh($,B).height,ue=Be=>{if(i.editing||!i.isAlive()||!C.isAlive())return;let{paddingTop:Qe,paddingBottom:st,borderBottomWidth:Ct,borderTopWidth:Ot}=ka(P),Pt=Qe+st+Ct+Ot,ti=o.offsetHeight+Pt;if(Be<5){let ai=Ao($),Mi=!ai||!ai.contains(o),qi=ti==0;if(Mi||qi){window.setTimeout(()=>ue(Be+1),0);return}}let Jt=Math.max(ti,ie);this.setRowAutoHeight(B,Jt,W)},De=()=>ue(0);De();let _e=Qr($,o,De);C.addDestroyFunc(()=>{_e(),this.setRowAutoHeight(B,void 0,W)})}setAutoHeightActive(i){this.active=i.list.some(o=>o.isVisible()&&o.isAutoHeight()),this.active&&(this.wasEverActive=!0)}},Tf={moduleName:"RowAutoHeight",version:yi,beans:[As]},rC={moduleName:"AllCommunity",version:yi,dependsOn:[vk,k1,kf,CS,qr,lc,nk,ak,Qb,ok,rk,mn,DS,Gp,h1,QM,IT,TT,Mk,S1,Qd,Lh,Bu,Kp,Yp,$T,L0,Rk,Fg,ZD,oC,Ok,ZS,Xp,RM,xk,_1,QS,Tf,vb,Nu]}},6055:function(x){"use strict";x.exports="data:font/woff2;charset=utf-8;base64, "},8430:function(x){"use strict";x.exports="data:font/woff2;charset=utf-8;base64, "},7738:function(x){"use strict";x.exports="data:font/woff2;charset=utf-8;base64, "},9377:function(x){"use strict";x.exports="data:font/woff2;charset=utf-8;base64, "},2006:function(x){"use strict";x.exports="data:font/woff2;charset=utf-8;base64, "},2487:function(x){"use strict";x.exports="data:image/svg+xml;base64, "},7249:function(x){"use strict";x.exports="data:image/svg+xml;charset=utf-8;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxMiIgaGVpZ2h0PSIxMiIgZmlsbD0ibm9uZSIgc3Ryb2tlPSIjMDAwIiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiIHN0cm9rZS13aWR0aD0iMS41Ij48cGF0aCBkPSJNNS4zIDlhMy43IDMuNyAwIDEgMCAwLTcuNSAzLjcgMy43IDAgMCAwIDAgNy41Wk0xMC41IDEwLjUgOC4zIDguMiIvPjwvc3ZnPg=="},6080:function(x){"use strict";x.exports='data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="4" height="4"><rect x="0" y="0" width="4" height="4" fill="%23fff"/><path d="M0 0H2V4H4V2H0Z" fill="%23b2b2b2"/></svg>'},5608:function(x,p,M){"use strict";M.r(p),M.d(p,{__addDisposableResource:function(){return Ae},__assign:function(){return D},__asyncDelegator:function(){return le},__asyncGenerator:function(){return oe},__asyncValues:function(){return fe},__await:function(){return Q},__awaiter:function(){return b},__classPrivateFieldGet:function(){return Ye},__classPrivateFieldIn:function(){return Te},__classPrivateFieldSet:function(){return xe},__createBinding:function(){return k},__decorate:function(){return v},__disposeResources:function(){return Re},__esDecorate:function(){return s},__exportStar:function(){return R},__extends:function(){return F},__generator:function(){return w},__importDefault:function(){return ze},__importStar:function(){return Ie},__makeTemplateObject:function(){return ye},__metadata:function(){return m},__param:function(){return u},__propKey:function(){return d},__read:function(){return z},__rest:function(){return f},__runInitializers:function(){return r},__setFunctionName:function(){return g},__spread:function(){return G},__spreadArray:function(){return X},__spreadArrays:function(){return U},__values:function(){return T}});var A=function(Oe,Ve){return A=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(Ue,Ee){Ue.__proto__=Ee}||function(Ue,Ee){for(var tt in Ee)Object.prototype.hasOwnProperty.call(Ee,tt)&&(Ue[tt]=Ee[tt])},A(Oe,Ve)};function F(Oe,Ve){if(typeof Ve!="function"&&Ve!==null)throw new TypeError("Class extends value "+String(Ve)+" is not a constructor or null");A(Oe,Ve);function Ue(){this.constructor=Oe}Oe.prototype=Ve===null?Object.create(Ve):(Ue.prototype=Ve.prototype,new Ue)}var D=function(){return D=Object.assign||function(Ve){for(var Ue,Ee=1,tt=arguments.length;Ee<tt;Ee++){Ue=arguments[Ee];for(var at in Ue)Object.prototype.hasOwnProperty.call(Ue,at)&&(Ve[at]=Ue[at])}return Ve},D.apply(this,arguments)};function f(Oe,Ve){var Ue={};for(var Ee in Oe)Object.prototype.hasOwnProperty.call(Oe,Ee)&&Ve.indexOf(Ee)<0&&(Ue[Ee]=Oe[Ee]);if(Oe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var tt=0,Ee=Object.getOwnPropertySymbols(Oe);tt<Ee.length;tt++)Ve.indexOf(Ee[tt])<0&&Object.prototype.propertyIsEnumerable.call(Oe,Ee[tt])&&(Ue[Ee[tt]]=Oe[Ee[tt]]);return Ue}function v(Oe,Ve,Ue,Ee){var tt=arguments.length,at=tt<3?Ve:Ee===null?Ee=Object.getOwnPropertyDescriptor(Ve,Ue):Ee,ut;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")at=Reflect.decorate(Oe,Ve,Ue,Ee);else for(var Mt=Oe.length-1;Mt>=0;Mt--)(ut=Oe[Mt])&&(at=(tt<3?ut(at):tt>3?ut(Ve,Ue,at):ut(Ve,Ue))||at);return tt>3&&at&&Object.defineProperty(Ve,Ue,at),at}function u(Oe,Ve){return function(Ue,Ee){Ve(Ue,Ee,Oe)}}function s(Oe,Ve,Ue,Ee,tt,at){function ut(ii){if(ii!==void 0&&typeof ii!="function")throw new TypeError("Function expected");return ii}for(var Mt=Ee.kind,St=Mt==="getter"?"get":Mt==="setter"?"set":"value",ft=!Ve&&Oe?Ee.static?Oe:Oe.prototype:null,kt=Ve||(ft?Object.getOwnPropertyDescriptor(ft,Ee.name):{}),Et,Yt=!1,Tt=Ue.length-1;Tt>=0;Tt--){var Ft={};for(var Bt in Ee)Ft[Bt]=Bt==="access"?{}:Ee[Bt];for(var Bt in Ee.access)Ft.access[Bt]=Ee.access[Bt];Ft.addInitializer=function(ii){if(Yt)throw new TypeError("Cannot add initializers after decoration has completed");at.push(ut(ii||null))};var Xt=(0,Ue[Tt])(Mt==="accessor"?{get:kt.get,set:kt.set}:kt[St],Ft);if(Mt==="accessor"){if(Xt===void 0)continue;if(Xt===null||typeof Xt!="object")throw new TypeError("Object expected");(Et=ut(Xt.get))&&(kt.get=Et),(Et=ut(Xt.set))&&(kt.set=Et),(Et=ut(Xt.init))&&tt.unshift(Et)}else(Et=ut(Xt))&&(Mt==="field"?tt.unshift(Et):kt[St]=Et)}ft&&Object.defineProperty(ft,Ee.name,kt),Yt=!0}function r(Oe,Ve,Ue){for(var Ee=arguments.length>2,tt=0;tt<Ve.length;tt++)Ue=Ee?Ve[tt].call(Oe,Ue):Ve[tt].call(Oe);return Ee?Ue:void 0}function d(Oe){return typeof Oe=="symbol"?Oe:"".concat(Oe)}function g(Oe,Ve,Ue){return typeof Ve=="symbol"&&(Ve=Ve.description?"[".concat(Ve.description,"]"):""),Object.defineProperty(Oe,"name",{configurable:!0,value:Ue?"".concat(Ue," ",Ve):Ve})}function m(Oe,Ve){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(Oe,Ve)}function b(Oe,Ve,Ue,Ee){function tt(at){return at instanceof Ue?at:new Ue(function(ut){ut(at)})}return new(Ue||(Ue=Promise))(function(at,ut){function Mt(kt){try{ft(Ee.next(kt))}catch(Et){ut(Et)}}function St(kt){try{ft(Ee.throw(kt))}catch(Et){ut(Et)}}function ft(kt){kt.done?at(kt.value):tt(kt.value).then(Mt,St)}ft((Ee=Ee.apply(Oe,Ve||[])).next())})}function w(Oe,Ve){var Ue={label:0,sent:function(){if(at[0]&1)throw at[1];return at[1]},trys:[],ops:[]},Ee,tt,at,ut;return ut={next:Mt(0),throw:Mt(1),return:Mt(2)},typeof Symbol=="function"&&(ut[Symbol.iterator]=function(){return this}),ut;function Mt(ft){return function(kt){return St([ft,kt])}}function St(ft){if(Ee)throw new TypeError("Generator is already executing.");for(;ut&&(ut=0,ft[0]&&(Ue=0)),Ue;)try{if(Ee=1,tt&&(at=ft[0]&2?tt.return:ft[0]?tt.throw||((at=tt.return)&&at.call(tt),0):tt.next)&&!(at=at.call(tt,ft[1])).done)return at;switch(tt=0,at&&(ft=[ft[0]&2,at.value]),ft[0]){case 0:case 1:at=ft;break;case 4:return Ue.label++,{value:ft[1],done:!1};case 5:Ue.label++,tt=ft[1],ft=[0];continue;case 7:ft=Ue.ops.pop(),Ue.trys.pop();continue;default:if(at=Ue.trys,!(at=at.length>0&&at[at.length-1])&&(ft[0]===6||ft[0]===2)){Ue=0;continue}if(ft[0]===3&&(!at||ft[1]>at[0]&&ft[1]<at[3])){Ue.label=ft[1];break}if(ft[0]===6&&Ue.label<at[1]){Ue.label=at[1],at=ft;break}if(at&&Ue.label<at[2]){Ue.label=at[2],Ue.ops.push(ft);break}at[2]&&Ue.ops.pop(),Ue.trys.pop();continue}ft=Ve.call(Oe,Ue)}catch(kt){ft=[6,kt],tt=0}finally{Ee=at=0}if(ft[0]&5)throw ft[1];return{value:ft[0]?ft[1]:void 0,done:!0}}}var k=Object.create?function(Oe,Ve,Ue,Ee){Ee===void 0&&(Ee=Ue);var tt=Object.getOwnPropertyDescriptor(Ve,Ue);(!tt||("get"in tt?!Ve.__esModule:tt.writable||tt.configurable))&&(tt={enumerable:!0,get:function(){return Ve[Ue]}}),Object.defineProperty(Oe,Ee,tt)}:function(Oe,Ve,Ue,Ee){Ee===void 0&&(Ee=Ue),Oe[Ee]=Ve[Ue]};function R(Oe,Ve){for(var Ue in Oe)Ue!=="default"&&!Object.prototype.hasOwnProperty.call(Ve,Ue)&&k(Ve,Oe,Ue)}function T(Oe){var Ve=typeof Symbol=="function"&&Symbol.iterator,Ue=Ve&&Oe[Ve],Ee=0;if(Ue)return Ue.call(Oe);if(Oe&&typeof Oe.length=="number")return{next:function(){return Oe&&Ee>=Oe.length&&(Oe=void 0),{value:Oe&&Oe[Ee++],done:!Oe}}};throw new TypeError(Ve?"Object is not iterable.":"Symbol.iterator is not defined.")}function z(Oe,Ve){var Ue=typeof Symbol=="function"&&Oe[Symbol.iterator];if(!Ue)return Oe;var Ee=Ue.call(Oe),tt,at=[],ut;try{for(;(Ve===void 0||Ve-- >0)&&!(tt=Ee.next()).done;)at.push(tt.value)}catch(Mt){ut={error:Mt}}finally{try{tt&&!tt.done&&(Ue=Ee.return)&&Ue.call(Ee)}finally{if(ut)throw ut.error}}return at}function G(){for(var Oe=[],Ve=0;Ve<arguments.length;Ve++)Oe=Oe.concat(z(arguments[Ve]));return Oe}function U(){for(var Oe=0,Ve=0,Ue=arguments.length;Ve<Ue;Ve++)Oe+=arguments[Ve].length;for(var Ee=Array(Oe),tt=0,Ve=0;Ve<Ue;Ve++)for(var at=arguments[Ve],ut=0,Mt=at.length;ut<Mt;ut++,tt++)Ee[tt]=at[ut];return Ee}function X(Oe,Ve,Ue){if(Ue||arguments.length===2)for(var Ee=0,tt=Ve.length,at;Ee<tt;Ee++)(at||!(Ee in Ve))&&(at||(at=Array.prototype.slice.call(Ve,0,Ee)),at[Ee]=Ve[Ee]);return Oe.concat(at||Array.prototype.slice.call(Ve))}function Q(Oe){return this instanceof Q?(this.v=Oe,this):new Q(Oe)}function oe(Oe,Ve,Ue){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var Ee=Ue.apply(Oe,Ve||[]),tt,at=[];return tt={},ut("next"),ut("throw"),ut("return"),tt[Symbol.asyncIterator]=function(){return this},tt;function ut(Yt){Ee[Yt]&&(tt[Yt]=function(Tt){return new Promise(function(Ft,Bt){at.push([Yt,Tt,Ft,Bt])>1||Mt(Yt,Tt)})})}function Mt(Yt,Tt){try{St(Ee[Yt](Tt))}catch(Ft){Et(at[0][3],Ft)}}function St(Yt){Yt.value instanceof Q?Promise.resolve(Yt.value.v).then(ft,kt):Et(at[0][2],Yt)}function ft(Yt){Mt("next",Yt)}function kt(Yt){Mt("throw",Yt)}function Et(Yt,Tt){Yt(Tt),at.shift(),at.length&&Mt(at[0][0],at[0][1])}}function le(Oe){var Ve,Ue;return Ve={},Ee("next"),Ee("throw",function(tt){throw tt}),Ee("return"),Ve[Symbol.iterator]=function(){return this},Ve;function Ee(tt,at){Ve[tt]=Oe[tt]?function(ut){return(Ue=!Ue)?{value:Q(Oe[tt](ut)),done:!1}:at?at(ut):ut}:at}}function fe(Oe){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var Ve=Oe[Symbol.asyncIterator],Ue;return Ve?Ve.call(Oe):(Oe=typeof T=="function"?T(Oe):Oe[Symbol.iterator](),Ue={},Ee("next"),Ee("throw"),Ee("return"),Ue[Symbol.asyncIterator]=function(){return this},Ue);function Ee(at){Ue[at]=Oe[at]&&function(ut){return new Promise(function(Mt,St){ut=Oe[at](ut),tt(Mt,St,ut.done,ut.value)})}}function tt(at,ut,Mt,St){Promise.resolve(St).then(function(ft){at({value:ft,done:Mt})},ut)}}function ye(Oe,Ve){return Object.defineProperty?Object.defineProperty(Oe,"raw",{value:Ve}):Oe.raw=Ve,Oe}var ke=Object.create?function(Oe,Ve){Object.defineProperty(Oe,"default",{enumerable:!0,value:Ve})}:function(Oe,Ve){Oe.default=Ve};function Ie(Oe){if(Oe&&Oe.__esModule)return Oe;var Ve={};if(Oe!=null)for(var Ue in Oe)Ue!=="default"&&Object.prototype.hasOwnProperty.call(Oe,Ue)&&k(Ve,Oe,Ue);return ke(Ve,Oe),Ve}function ze(Oe){return Oe&&Oe.__esModule?Oe:{default:Oe}}function Ye(Oe,Ve,Ue,Ee){if(Ue==="a"&&!Ee)throw new TypeError("Private accessor was defined without a getter");if(typeof Ve=="function"?Oe!==Ve||!Ee:!Ve.has(Oe))throw new TypeError("Cannot read private member from an object whose class did not declare it");return Ue==="m"?Ee:Ue==="a"?Ee.call(Oe):Ee?Ee.value:Ve.get(Oe)}function xe(Oe,Ve,Ue,Ee,tt){if(Ee==="m")throw new TypeError("Private method is not writable");if(Ee==="a"&&!tt)throw new TypeError("Private accessor was defined without a setter");if(typeof Ve=="function"?Oe!==Ve||!tt:!Ve.has(Oe))throw new TypeError("Cannot write private member to an object whose class did not declare it");return Ee==="a"?tt.call(Oe,Ue):tt?tt.value=Ue:Ve.set(Oe,Ue),Ue}function Te(Oe,Ve){if(Ve===null||typeof Ve!="object"&&typeof Ve!="function")throw new TypeError("Cannot use 'in' operator on non-object");return typeof Oe=="function"?Ve===Oe:Oe.has(Ve)}function Ae(Oe,Ve,Ue){if(Ve!=null){if(typeof Ve!="object"&&typeof Ve!="function")throw new TypeError("Object expected.");var Ee;if(Ue){if(!Symbol.asyncDispose)throw new TypeError("Symbol.asyncDispose is not defined.");Ee=Ve[Symbol.asyncDispose]}if(Ee===void 0){if(!Symbol.dispose)throw new TypeError("Symbol.dispose is not defined.");Ee=Ve[Symbol.dispose]}if(typeof Ee!="function")throw new TypeError("Object not disposable.");Oe.stack.push({value:Ve,dispose:Ee,async:Ue})}else Ue&&Oe.stack.push({async:!0});return Ve}var Ne=typeof SuppressedError=="function"?SuppressedError:function(Oe,Ve,Ue){var Ee=new Error(Ue);return Ee.name="SuppressedError",Ee.error=Oe,Ee.suppressed=Ve,Ee};function Re(Oe){function Ve(Ee){Oe.error=Oe.hasError?new Ne(Ee,Oe.error,"An error was suppressed during disposal."):Ee,Oe.hasError=!0}function Ue(){for(;Oe.stack.length;){var Ee=Oe.stack.pop();try{var tt=Ee.dispose&&Ee.dispose.call(Ee.value);if(Ee.async)return Promise.resolve(tt).then(Ue,function(at){return Ve(at),Ue()})}catch(at){Ve(at)}}if(Oe.hasError)throw Oe.error}return Ue()}p.default={__extends:F,__assign:D,__rest:f,__decorate:v,__param:u,__metadata:m,__awaiter:b,__generator:w,__createBinding:k,__exportStar:R,__values:T,__read:z,__spread:G,__spreadArrays:U,__spreadArray:X,__await:Q,__asyncGenerator:oe,__asyncDelegator:le,__asyncValues:fe,__makeTemplateObject:ye,__importStar:Ie,__importDefault:ze,__classPrivateFieldGet:Ye,__classPrivateFieldSet:xe,__classPrivateFieldIn:Te,__addDisposableResource:Ae,__disposeResources:Re}}},ee={};function de(x){var p=ee[x];if(p!==void 0)return p.exports;var M=ee[x]={id:x,exports:{}};return ae[x](M,M.exports,de),M.exports}de.m=ae,function(){de.n=function(x){var p=x&&x.__esModule?function(){return x.default}:function(){return x};return de.d(p,{a:p}),p}}(),function(){de.d=function(x,p){for(var M in p)de.o(p,M)&&!de.o(x,M)&&Object.defineProperty(x,M,{enumerable:!0,get:p[M]})}}(),function(){de.o=function(x,p){return Object.prototype.hasOwnProperty.call(x,p)}}(),function(){de.r=function(x){typeof Symbol!="undefined"&&Symbol.toStringTag&&Object.defineProperty(x,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(x,"__esModule",{value:!0})}}(),function(){de.b=document.baseURI||self.location.href;var x={792:0}}();var ne=de(9058);return ne}()})});var vZ=yP((TO,oV)=>{(function(ae,ee){typeof TO=="object"&&typeof oV=="object"?oV.exports=ee():typeof define=="function"&&define.amd?define("agCharts",[],ee):typeof TO=="object"?TO.agCharts=ee():ae.agCharts=ee()})(TO,()=>{var ae={},ee={exports:ae};if(typeof gC=="undefined")var gC=function(c){throw new Error("Unknown module: "+c)};var de=Object.defineProperty,ne=Object.getOwnPropertyDescriptor,x=Object.getOwnPropertyNames,p=Object.prototype.hasOwnProperty,M=(l,c)=>{for(var y in c)de(l,y,{get:c[y],enumerable:!0})},A=(l,c,y,I)=>{if(c&&typeof c=="object"||typeof c=="function")for(let O of x(c))!p.call(l,O)&&O!==y&&de(l,O,{get:()=>c[O],enumerable:!(I=ne(c,O))||I.enumerable});return l},F=l=>A(de({},"__esModule",{value:!0}),l),D=(l,c,y,I)=>{for(var O=I>1?void 0:I?ne(c,y):c,j=l.length-1,H;j>=0;j--)(H=l[j])&&(O=(I?H(c,y,O):H(O))||O);return I&&O&&de(c,y,O),O},f={};M(f,{AG_CHARTS_LOCALE_EN_US:()=>v,AgCharts:()=>So,AgChartsCommunityModule:()=>sy,AgErrorBarSupportedSeriesTypes:()=>u,AgTooltipPositionType:()=>m,Marker:()=>Qs,VERSION:()=>za,_ModuleSupport:()=>rR,_Scene:()=>Qp,_Theme:()=>uC,_Util:()=>sw,_Widget:()=>hw,setupCommunityModules:()=>L1,time:()=>aD}),ee.exports=F(f);var v={ariaAnnounceHoverDatum:"${datum}",ariaAnnounceChart:"chart, ${seriesCount}[number] series",ariaAnnounceHierarchyChart:"hierarchy chart, ${caption}",ariaAnnounceGaugeChart:"gauge chart, ${caption}",ariaAnnounceHierarchyDatum:"level ${level}[number], ${count}[number] children, ${description}",ariaAnnounceFlowProportionLink:"link ${index} of ${count}, from ${from} to ${to}, ${sizeName} ${size}",ariaAnnounceFlowProportionNode:"node ${index} of ${count}, ${description}",ariaDescriptionLegendItem:"Press Space or Enter to toggle visibility",ariaLabelAddHorizontalLine:"Add Horizontal Line",ariaLabelAnnotationOptionsToolbar:"Annotation Options",ariaLabelAnnotationSettingsDialog:"Annotation Settings",ariaLabelColorPicker:"Color picker",ariaLabelFinancialCharts:"Financial Charts",ariaLabelLegend:"Legend",ariaLabelLegendPagination:"Legend Pagination",ariaLabelLegendPagePrevious:"Previous Legend Page",ariaLabelLegendPageNext:"Next Legend Page",ariaLabelLegendItem:"${label}, Legend item ${index}[number] of ${count}[number]",ariaLabelLegendItemUnknown:"Unknown legend item",ariaLabelNavigator:"Navigator",ariaLabelNavigatorRange:"Range",ariaLabelNavigatorMinimum:"Minimum",ariaLabelNavigatorMaximum:"Maximum",ariaLabelRangesToolbar:"Ranges",ariaLabelSettingsTabBar:"Settings",ariaLabelZoomToolbar:"Zoom",ariaValuePanRange:"${min}[percent] to ${max}[percent]",iconAltTextLineStyleSolid:"Solid",iconAltTextLineStyleDashed:"Long-dashed",iconAltTextLineStyleDotted:"Short-dashed",iconAltTextPositionTop:"Top",iconAltTextPositionCenter:"Center",iconAltTextPositionBottom:"Bottom",iconAltTextAlignLeft:"Left",iconAltTextAlignCenter:"Center",iconAltTextAlignRight:"Right",iconAltTextClose:"Close",overlayLoadingData:"Loading data...",overlayNoData:"No data to display",overlayNoVisibleSeries:"No visible series",overlayUnsupportedBrowser:"Incompatible browser version. Please upgrade your browser.",seriesHistogramTooltipFrequency:"Frequency",seriesHistogramTooltipSum:"${yName} (sum)",seriesHistogramTooltipCount:"${yName} (count)",seriesHistogramTooltipMean:"${yName} (mean)",toolbarSeriesTypeDropdown:"Chart Type",toolbarSeriesTypeOHLC:"OHLC",toolbarSeriesTypeHLC:"HLC",toolbarSeriesTypeHighLow:"High Low",toolbarSeriesTypeCandles:"Candles",toolbarSeriesTypeHollowCandles:"Hollow Candles",toolbarSeriesTypeLine:"Line",toolbarSeriesTypeLineWithMarkers:"Line with Markers",toolbarSeriesTypeStepLine:"Step Line",toolbarAnnotationsTrendLine:"Trend Line",toolbarAnnotationsFibonacciRetracement:"Fib Retracement",toolbarAnnotationsHorizontalLine:"Horizontal Line",toolbarAnnotationsVerticalLine:"Vertical Line",toolbarAnnotationsParallelChannel:"Parallel Channel",toolbarAnnotationsDisjointChannel:"Disjoint Channel",toolbarAnnotationsClearAll:"Clear All",toolbarAnnotationsFillColor:"Fill Color",toolbarAnnotationsLineColor:"Line Color",toolbarAnnotationsLineStyle:"Line Style",toolbarAnnotationsLineStrokeWidth:"Line Stroke Width",toolbarAnnotationsSettings:"Settings",toolbarAnnotationsTextColor:"Text Color",toolbarAnnotationsTextSize:"Text Size",toolbarAnnotationsLock:"Lock",toolbarAnnotationsUnlock:"Unlock",toolbarAnnotationsDelete:"Delete",toolbarAnnotationsDragHandle:"Drag Toolbar",toolbarAnnotationsLineAnnotations:"Trend Lines",toolbarAnnotationsFibonacciAnnotations:"Fibonacci",toolbarAnnotationsTextAnnotations:"Text Annotations",toolbarAnnotationsShapeAnnotations:"Arrows",toolbarAnnotationsMeasurerAnnotations:"Measurers",toolbarAnnotationsCallout:"Callout",toolbarAnnotationsComment:"Comment",toolbarAnnotationsNote:"Note",toolbarAnnotationsText:"Text",toolbarAnnotationsArrow:"Arrow",toolbarAnnotationsArrowUp:"Arrow Up",toolbarAnnotationsArrowDown:"Arrow Down",toolbarAnnotationsDateRange:"Date Range",toolbarAnnotationsPriceRange:"Price Range",toolbarAnnotationsDatePriceRange:"Date and Price",toolbarAnnotationsQuickDatePriceRange:"Measure",toolbarRange1Month:"1M",toolbarRange1MonthAria:"1 month",toolbarRange3Months:"3M",toolbarRange3MonthsAria:"3 months",toolbarRange6Months:"6M",toolbarRange6MonthsAria:"6 months",toolbarRangeYearToDate:"YTD",toolbarRangeYearToDateAria:"Year to date",toolbarRange1Year:"1Y",toolbarRange1YearAria:"1 year",toolbarRangeAll:"All",toolbarRangeAllAria:"All",toolbarZoomZoomOut:"Zoom out",toolbarZoomZoomIn:"Zoom in",toolbarZoomPanLeft:"Pan left",toolbarZoomPanRight:"Pan right",toolbarZoomPanStart:"Pan to the start",toolbarZoomPanEnd:"Pan to the end",toolbarZoomReset:"Reset the zoom",contextMenuDownload:"Download",contextMenuToggleSeriesVisibility:"Toggle Visibility",contextMenuToggleOtherSeries:"Toggle Other Series",contextMenuZoomToCursor:"Zoom to here",contextMenuPanToCursor:"Pan to here",dialogHeaderChannel:"Channel",dialogHeaderLine:"Line",dialogHeaderFibonacciRange:"Fib Retracement",dialogHeaderDateRange:"Date Range",dialogHeaderPriceRange:"Price Range",dialogHeaderDatePriceRange:"Date and Price",dialogHeaderText:"Text",dialogInputAlign:"Align",dialogInputColorPicker:"Color",dialogInputColorPickerAltText:"Text Color",dialogInputFillColorPicker:"Fill",dialogInputFillColorPickerAltText:"Fill Color",dialogInputExtendChannelStart:"Extend channel start",dialogInputExtendChannelEnd:"Extend channel end",dialogInputExtendLineStart:"Extend line start",dialogInputExtendLineEnd:"Extend line end",dialogInputExtendAbove:"Extend above",dialogInputExtendBelow:"Extend below",dialogInputExtendLeft:"Extend left",dialogInputExtendRight:"Extend right",dialogInputReverse:"Reverse",dialogInputShowFill:"Show Fill",dialogInputFontSize:"Size",dialogInputFontSizeAltText:"Font Size",dialogInputLineStyle:"Dash",dialogInputPosition:"Position",dialogInputStrokeWidth:"Weight",dialogInputStrokeWidthAltText:"Line Weight",dialogInputFibonacciBands:"Bands",dialogInputFibonacciBandsAltText:"Fibonacci Bands",inputTextareaPlaceholder:"Add Text",measurerDateRangeBars:"${value}[number] bars",measurerPriceRangeValue:"${value}[number]",measurerPriceRangePercent:"${value}[percent]",measurerVolume:"Vol ${value}"},u=["bar","line","scatter"],s=void 0,r=void 0;r=s;var d=void 0,g=void 0;g=d;var m=(l=>(l.POINTER="pointer",l.NODE="node",l.TOP="top",l.RIGHT="right",l.BOTTOM="bottom",l.LEFT="left",l.TOP_LEFT="top-left",l.TOP_RIGHT="top-right",l.BOTTOM_RIGHT="bottom-right",l.BOTTOM_LEFT="bottom-left",l))(m||{}),b=void 0,w=void 0;w=b;var k=void 0,R=void 0;R=k;var T={};M(T,{NODE_UPDATE_STATE_TO_PHASE_MAPPING:()=>Fs,fromToMotion:()=>yi,staticFromToMotion:()=>Rd});var z=new Map;function G(){z.clear()}function U(l){var O;let c=l.constructor,y=Object.hasOwn(c,"className")?c.className:c.name;if(!y)throw new Error(`The ${c} is missing the 'className' property.`);let I=((O=z.get(y))!=null?O:0)+1;return z.set(y,I),`${y}-${I}`}function X(){var l,c;return(c=(l=crypto.randomUUID)==null?void 0:l.call(crypto))!=null?c:Q()}function Q(){let l=new Uint8Array(16);crypto.getRandomValues(l),l[6]=l[6]&15|64,l[8]=l[8]&63|128;let c="";for(let y=0;y<l.length;y++)(y===4||y===6||y===8||y===10)&&(c+="-"),c+=l[y].toString(16).padStart(2,"0");return c}function*oe(...l){for(let c of l)yield*c}function le(l){return l!=null&&typeof l=="object"&&Symbol.iterator in l?l:[l]}var fe={containsPoint:ye,isEmpty:ke,normalize:Ie};function ye(l,c,y){return c>=l.x&&c<=l.x+l.width&&y>=l.y&&y<=l.y+l.height}function ke(l){return l==null||l.height===0||l.width===0||isNaN(l.height)||isNaN(l.width)}function Ie(l){let{x:c,y,width:I,height:O}=l;return(I==null||I>0)&&(O==null||O>0)?l:(c!=null&&I!=null&&I<0&&(I=-I,c=c-I),y!=null&&O!=null&&O<0&&(O=-O,y=y-O),{x:c,y,width:I,height:O})}var ze=Symbol("interpolate"),Ye=l=>l[ze]!=null;function xe(l,c,y,I=1/0){let O={nearest:void 0,distanceSquared:I};for(let j of y){let H=j.distanceSquared(l,c);if(H===0)return{nearest:j,distanceSquared:0};H<O.distanceSquared&&(O.nearest=j,O.distanceSquared=H)}return O}function Te(l,c,y,I=1/0){var K,Z;let{x:O=l,y:j=c}=(Z=(K=y.transformPoint)==null?void 0:K.call(y,l,c))!=null?Z:{},H={nearest:void 0,distanceSquared:I};for(let te of y.children){let{nearest:se,distanceSquared:ge}=te.nearestSquared(O,j,H.distanceSquared);if(ge===0)return{nearest:se,distanceSquared:ge};ge<H.distanceSquared&&(H.nearest=se,H.distanceSquared=ge)}return H}function Ae(l,c,y){return Math.min(y,Math.max(l,c))}function Ne(l,c){let[y,I]=Re(c);return Ae(y,l,I)}function Re(l){if(l.length===0)return[];let c=[1/0,-1/0];for(let y of l)y<c[0]&&(c[0]=y),y>c[1]&&(c[1]=y);return c}function Oe(l){let[c,y]=Re(l);return y-c}function Ve(l,c,y=1e-10){return l>=c[0]-y&&l<=c[1]+y}function Ue(l,c,y=1e-10){return Math.abs(l-c)<y}function Ee(l){return Math.sign(l)===-1||Object.is(l,-0)}function tt(l){return l%1===0}function at(l,c=2){let y=10**c;return Math.round(l*y)/y}function ut(l,c){return Math.floor(l%c+(l<0?c:0))}function Mt(l){var O,j;if(Math.floor(l)===l)return 0;let c=String(l),y=0;if(l<1e-6||l>=1e21){let H;[c,H]=c.split("e"),H!=null&&(y=Number(H))}let I=(j=(O=c.split(".")[1])==null?void 0:O.length)!=null?j:0;return Math.max(I-y,0)}var St=class MP{constructor(c,y,I,O){this.x=c,this.y=y,this.width=I,this.height=O}static fromDOMRect({x:c,y,width:I,height:O}){return new MP(c,y,I,O)}static merge(c){let y=1/0,I=1/0,O=-1/0,j=-1/0;for(let H of c)H.x<y&&(y=H.x),H.y<I&&(I=H.y),H.x+H.width>O&&(O=H.x+H.width),H.y+H.height>j&&(j=H.y+H.height);return new MP(y,I,O-y,j-I)}static nearestBox(c,y,I){return xe(c,y,I)}toDOMRect(){return{x:this.x,y:this.y,width:this.width,height:this.height,top:this.y,left:this.x,right:this.x+this.width,bottom:this.y+this.height,toJSON(){return{}}}}clone(){let{x:c,y,width:I,height:O}=this;return new MP(c,y,I,O)}equals(c){return this.x===c.x&&this.y===c.y&&this.width===c.width&&this.height===c.height}containsPoint(c,y){return fe.containsPoint(this,c,y)}containsBBox(c){let[y,I]=[this.x,this.x+this.width],[O,j]=[this.y,this.y+this.height],[H,K]=[c.x,c.x+c.width],[Z,te]=[c.y,c.y+c.height];return Math.min(y,H)===y&&Math.max(I,K)===I&&Math.min(O,Z)===O&&Math.max(j,te)===j}intersection(c){if(!this.collidesBBox(c))return;let y=Ae(c.x,this.x,c.x+c.width),I=Ae(c.y,this.y,c.y+c.height),O=Ae(c.x,this.x+this.width,c.x+c.width),j=Ae(c.y,this.y+this.height,c.y+c.height);return new MP(y,I,O-y,j-I)}collidesBBox(c){return this.x<c.x+c.width&&this.x+this.width>c.x&&this.y<c.y+c.height&&this.y+this.height>c.y}computeCenter(){return{x:this.x+this.width/2,y:this.y+this.height/2}}isFinite(){return Number.isFinite(this.x)&&Number.isFinite(this.y)&&Number.isFinite(this.width)&&Number.isFinite(this.height)}distanceSquared(c,y){if(this.containsPoint(c,y))return 0;let I=c-Ae(this.x,c,this.x+this.width),O=y-Ae(this.y,y,this.y+this.height);return I*I+O*O}shrink(c,y){if(typeof c=="number")this.applyMargin(c,y);else for(let[I,O]of Object.entries(c))this.applyMargin(O,I);return this.width<0&&(this.width=0),this.height<0&&(this.height=0),this}grow(c,y){if(typeof c=="number")this.applyMargin(-c,y);else for(let[I,O]of Object.entries(c))this.applyMargin(-O,I);return this}applyMargin(c,y){switch(y){case"top":this.y+=c;case"bottom":this.height-=c;break;case"left":this.x+=c;case"right":this.width-=c;break;case"vertical":this.y+=c,this.height-=c*2;break;case"horizontal":this.x+=c,this.width-=c*2;break;case void 0:this.x+=c,this.y+=c,this.width-=c*2,this.height-=c*2;break}}translate(c,y){return this.x+=c,this.y+=y,this}combine(c){let{x:y,y:I,width:O,height:j}=this;this.x=Math.min(y,c.x),this.y=Math.min(I,c.y),this.width=Math.max(y+O,c.x+c.width)-this.x,this.height=Math.max(I+j,c.y+c.height)-this.y}[ze](c,y){return new MP(this.x*(1-y)+c.x*y,this.y*(1-y)+c.y*y,this.width*(1-y)+c.width*y,this.height*(1-y)+c.height*y)}};St.zero=Object.freeze(new St(0,0,0,0)),St.NaN=Object.freeze(new St(NaN,NaN,NaN,NaN));var ft=St;function kt(l){return function(c,y){let I=`__${y}`;c[y]||Et(c,y,I,l)}}function Et(l,c,y,I){let{type:O="normal",changeCb:j,convertor:H,checkDirtyOnAssignment:K=!1}=I!=null?I:{},Z={type:O,changeCb:j,checkDirtyOnAssignment:K,convertor:H},te;switch(O){case"normal":te=Xt(y,Z);break;case"transform":te=ii(y);break;case"path":te=Ci(y);break}te=Bt(Ft(Yt(te,Z),Z),Z),Object.defineProperty(l,c,{set:te,get:function(){return this[y]},enumerable:!0,configurable:!0})}function Yt(l,c){let{convertor:y}=c;return y?function(I){l.call(this,y(I))}:l}var Tt=Symbol("no-change");function Ft(l,c){let{changeCb:y}=c;return y?function(I){let O=l.call(this,I);return O!==Tt&&y.call(this,this),O}:l}function Bt(l,c){let{checkDirtyOnAssignment:y}=c;return y?function(I){let O=l.call(this,I);return O!==Tt&&(I==null?void 0:I._dirty)===!0&&this.markDirty(),O}:l}function Xt(l,c){let{changeCb:y}=c;return function(I){let O=this[l];return I!==O?(this[l]=I,this.markDirty(),y==null||y(this),I):Tt}}function ii(l){return function(c){let y=this[l];return c!==y?(this[l]=c,this.markDirtyTransform(),c):Tt}}function Ci(l){return function(c){let y=this[l];return c!==y?(this[l]=c,this._dirtyPath||(this._dirtyPath=!0,this.markDirty()),c):Tt}}var _i=(l=>(l[l.All=0]="All",l[l.None=1]="None",l))(_i||{}),yn=class ZX{constructor(c){var y,I;this.serialNumber=ZX._nextSerialNumber++,this.childNodeCounts={groups:0,nonGroups:0,thisComplexity:0,complexity:0},this.id=U(this),this.pointerEvents=0,this._dirty=!0,this.dirtyZIndex=!1,this.isContainerNode=!1,this.visible=!0,this.zIndex=0,this.name=c==null?void 0:c.name,this.tag=(y=c==null?void 0:c.tag)!=null?y:NaN,this.zIndex=(I=c==null?void 0:c.zIndex)!=null?I:0}static toSVG(c,y,I){var H,K;let O=c==null?void 0:c.toSVG();if(O==null||!O.elements.length&&!((H=O.defs)!=null&&H.length))return;let j=document.createElementNS("http://www.w3.org/2000/svg","svg");if(j.setAttribute("width",String(y)),j.setAttribute("height",String(I)),j.setAttribute("viewBox",`0 0 ${y} ${I}`),(K=O.defs)!=null&&K.length){let Z=document.createElementNS("http://www.w3.org/2000/svg","defs");Z.append(...O.defs),j.append(Z)}return j.append(...O.elements),j.outerHTML}static*extractBBoxes(c,y){for(let I of c)if(!y||I.visible&&!I.transitionOut){let O=I.getBBox();O&&(yield O)}}get datum(){var c,y;return(y=this._datum)!=null?y:(c=this.parentNode)==null?void 0:c.datum}set datum(c){this._datum!==c&&(this._previousDatum=this._datum,this._datum=c)}get previousDatum(){return this._previousDatum}get layerManager(){return this._layerManager}get dirty(){return this._dirty}preRender(c=1){this.childNodeCounts.groups=0,this.childNodeCounts.nonGroups=1,this.childNodeCounts.complexity=c,this.childNodeCounts.thisComplexity=c;for(let y of this.children()){let I=y.preRender();this.childNodeCounts.groups+=I.groups,this.childNodeCounts.nonGroups+=I.nonGroups,this.childNodeCounts.complexity+=I.complexity}return this.childNodeCounts}render(c){var I,O;let{stats:y}=c;if(this._dirty=!1,c.debugNodeSearch){let j=(I=this.name)!=null?I:this.id;c.debugNodeSearch.some(H=>typeof H=="string"?H===j:H.test(j))&&(c.debugNodes[(O=this.name)!=null?O:this.id]=this)}y&&(y.nodesRendered++,y.opsPerformed+=this.childNodeCounts.thisComplexity)}_setLayerManager(c){this._layerManager=c,this._debug=c==null?void 0:c.debug;for(let y of this.children())y._setLayerManager(c)}sortChildren(c){if(this.dirtyZIndex=!1,!this.childNodes)return;let y=[...this.childNodes].sort(c);this.childNodes.clear();for(let I of y)this.childNodes.add(I)}*traverseUp(c){let y=this;for(c&&(yield y);y=y.parentNode;)yield y}*children(){if(this.childNodes)for(let c of this.childNodes)yield c}isLeaf(){var c;return!((c=this.childNodes)!=null&&c.size)}isRoot(){return!this.parentNode}append(c){var y,I;(y=this.childNodes)!=null||(this.childNodes=new Set);for(let O of le(c))(I=O.parentNode)==null||I.removeChild(O),this.childNodes.add(O),O.parentNode=this,O._setLayerManager(this.layerManager);this.invalidateCachedBBox(),this.dirtyZIndex=!0,this.markDirty()}appendChild(c){return this.append(c),c}removeChild(c){var y;return(y=this.childNodes)!=null&&y.delete(c)?(delete c.parentNode,c._setLayerManager(),this.invalidateCachedBBox(),this.dirtyZIndex=!0,this.markDirty(),!0):!1}remove(){var c,y;return(y=(c=this.parentNode)==null?void 0:c.removeChild(this))!=null?y:!1}clear(){var c;for(let y of this.children())delete y.parentNode,y._setLayerManager();(c=this.childNodes)==null||c.clear(),this.invalidateCachedBBox()}destroy(){var c;(c=this.parentNode)==null||c.removeChild(this)}setProperties(c,y){if(y)for(let I of y)this[I]=c[I];else Object.assign(this,c);return this}containsPoint(c,y){return!1}pickNode(c,y,I=!1){if(!this.visible||this.pointerEvents===1||!this.containsPoint(c,y))return;let O=[...this.children()];if(O.length>1e3)for(let j=O.length-1;j>=0;j--){let H=O[j],Z=H.containsPoint(c,y)?H.pickNode(c,y):void 0;if(Z)return Z}else if(O.length)for(let j=O.length-1;j>=0;j--){let H=O[j].pickNode(c,y);if(H)return H}else if(!this.isContainerNode)return this}invalidateCachedBBox(){var c;this.cachedBBox!=null&&(this.cachedBBox=void 0,(c=this.parentNode)==null||c.invalidateCachedBBox())}getBBox(){return this.cachedBBox==null&&(this.cachedBBox=Object.freeze(this.computeBBox())),this.cachedBBox}computeBBox(){}markDirty(){let{_dirty:c}=this;this.cachedBBox==null&&c||(this.invalidateCachedBBox(),this._dirty=!0,this.parentNode&&this.parentNode.markDirty())}markClean(){if(this._dirty){this._dirty=!1;for(let c of this.children())c.markClean()}}onZIndexChange(){let{parentNode:c}=this;c&&(c.dirtyZIndex=!0)}toSVG(){}};yn._nextSerialNumber=0,D([kt()],yn.prototype,"visible",2),D([kt({changeCb:l=>l.onZIndexChange()})],yn.prototype,"zIndex",2);var Tn=yn,ma=(l,c,y)=>l*(1-y)+c*y,Ho=l=>{let c=l<0?-1:1,y=Math.abs(l);return y<=.04045?l/12.92:c*((y+.055)/1.055)**2.4},Ar=l=>{let c=l<0?-1:1,y=Math.abs(l);return y>.0031308?c*(1.055*y**(1/2.4)-.055):12.92*l},ll=class Mr{constructor(c,y,I,O=1){this.r=Ae(0,c||0,1),this.g=Ae(0,y||0,1),this.b=Ae(0,I||0,1),this.a=Ae(0,O||0,1)}static validColorString(c){return c.indexOf("#")>=0?!!Mr.parseHex(c):c.indexOf("rgb")>=0?!!Mr.stringToRgba(c):!!Mr.nameToHex.has(c.toLowerCase())}static fromString(c){if(c.indexOf("#")>=0)return Mr.fromHexString(c);let y=Mr.nameToHex.get(c.toLowerCase());if(y)return Mr.fromHexString(y);if(c.indexOf("rgb")>=0)return Mr.fromRgbaString(c);throw new Error(`Invalid color string: '${c}'`)}static parseHex(c){c=c.replace(/ /g,"").slice(1);let y;switch(c.length){case 6:case 8:y=[];for(let I=0;I<c.length;I+=2)y.push(parseInt(`${c[I]}${c[I+1]}`,16));break;case 3:case 4:y=c.split("").map(I=>parseInt(I,16)).map(I=>I+I*16);break}if((y==null?void 0:y.length)>=3&&y.every(I=>I>=0))return y.length===3&&y.push(255),y}static fromHexString(c){let y=Mr.parseHex(c);if(y){let[I,O,j,H]=y;return new Mr(I/255,O/255,j/255,H/255)}throw new Error(`Malformed hexadecimal color string: '${c}'`)}static stringToRgba(c){let y=-1,I=-1;for(let K=0;K<c.length;K++){let Z=c[K];if(y===-1&&Z==="(")y=K;else if(Z===")"){I=K;break}}if(y===-1||I===-1)return;let j=c.substring(y+1,I).split(","),H=[];for(let K=0;K<j.length;K++){let Z=j[K],te=parseFloat(Z);if(!Number.isFinite(te))return;Z.indexOf("%")>=0?(te=Ae(0,te,100),te/=100):K===3?te=Ae(0,te,1):(te=Ae(0,te,255),te/=255),H.push(te)}return H}static fromRgbaString(c){let y=Mr.stringToRgba(c);if(y){if(y.length===3)return new Mr(y[0],y[1],y[2]);if(y.length===4)return new Mr(y[0],y[1],y[2],y[3])}throw new Error(`Malformed rgb/rgba color string: '${c}'`)}static fromArray(c){if(c.length===4)return new Mr(c[0],c[1],c[2],c[3]);if(c.length===3)return new Mr(c[0],c[1],c[2]);throw new Error("The given array should contain 3 or 4 color components (numbers).")}static fromHSB(c,y,I,O=1){let j=Mr.HSBtoRGB(c,y,I);return new Mr(j[0],j[1],j[2],O)}static fromHSL(c,y,I,O=1){let j=Mr.HSLtoRGB(c,y,I);return new Mr(j[0],j[1],j[2],O)}static fromOKLCH(c,y,I,O=1){let j=Mr.OKLCHtoRGB(c,y,I);return new Mr(j[0],j[1],j[2],O)}static padHex(c){return c.length===1?"0"+c:c}toHexString(){let c="#"+Mr.padHex(Math.round(this.r*255).toString(16))+Mr.padHex(Math.round(this.g*255).toString(16))+Mr.padHex(Math.round(this.b*255).toString(16));return this.a<1&&(c+=Mr.padHex(Math.round(this.a*255).toString(16))),c}toRgbaString(c=3){let y=[Math.round(this.r*255),Math.round(this.g*255),Math.round(this.b*255)],I=Math.pow(10,c);return this.a!==1?(y.push(Math.round(this.a*I)/I),`rgba(${y.join(", ")})`):`rgb(${y.join(", ")})`}toString(){return this.a===1?this.toHexString():this.toRgbaString()}toHSB(){return Mr.RGBtoHSB(this.r,this.g,this.b)}static RGBtoOKLCH(c,y,I){let O=Ho(c),j=Ho(y),H=Ho(I),K=Math.cbrt(.4122214708*O+.5363325363*j+.0514459929*H),Z=Math.cbrt(.2119034982*O+.6806995451*j+.1073969566*H),te=Math.cbrt(.0883024619*O+.2817188376*j+.6299787005*H),se=.2104542553*K+.793617785*Z-.0040720468*te,ge=1.9779984951*K-2.428592205*Z+.4505937099*te,Se=.0259040371*K+.7827717662*Z-.808675766*te,Ce=Math.atan2(Se,ge)*180/Math.PI,Pe=se,Ge=Math.hypot(ge,Se),We=Ce>=0?Ce:Ce+360;return[Pe,Ge,We]}static OKLCHtoRGB(c,y,I){let O=c,j=y*Math.cos(I*Math.PI/180),H=y*Math.sin(I*Math.PI/180),K=(O+.3963377774*j+.2158037573*H)**3,Z=(O-.1055613458*j-.0638541728*H)**3,te=(O-.0894841775*j-1.291485548*H)**3,se=4.0767416621*K-3.3077115913*Z+.2309699292*te,ge=-1.2684380046*K+2.6097574011*Z-.3413193965*te,Se=-.0041960863*K-.7034186147*Z+1.707614701*te,Ce=Ar(se),Pe=Ar(ge),Ge=Ar(Se);return[Ce,Pe,Ge]}static RGBtoHSL(c,y,I){let O=Math.min(c,y,I),j=Math.max(c,y,I),H=(j+O)/2,K,Z;if(j===O)K=0,Z=0;else{let te=j-O;Z=H>.5?te/(2-j-O):te/(j+O),j===c?K=(y-I)/te+(y<I?6:0):j===y?K=(I-c)/te+2:K=(c-y)/te+4,K*=360/6}return[K,Z,H]}static HSLtoRGB(c,y,I){if(c=(c%360+360)%360,y===0)return[I,I,I];let O=I<.5?I*(1+y):I+y-I*y,j=2*I-O;function H(se){return se<0&&(se+=1),se>1&&(se-=1),se<1/6?j+(O-j)*6*se:se<1/2?O:se<2/3?j+(O-j)*(2/3-se)*6:j}let K=H(c/360+1/3),Z=H(c/360),te=H(c/360-1/3);return[K,Z,te]}static RGBtoHSB(c,y,I){let O=Math.min(c,y,I),j=Math.max(c,y,I),H=j===0?0:(j-O)/j,K=0;if(O!==j){let Z=j-O,te=(j-c)/Z,se=(j-y)/Z,ge=(j-I)/Z;c===j?K=ge-se:y===j?K=2+te-ge:K=4+se-te,K/=6,K<0&&(K=K+1)}return[K*360,H,j]}static HSBtoRGB(c,y,I){c=(c%360+360)%360/360;let O=0,j=0,H=0;if(y===0)O=j=H=I;else{let K=(c-Math.floor(c))*6,Z=K-Math.floor(K),te=I*(1-y),se=I*(1-y*Z),ge=I*(1-y*(1-Z));switch(K>>0){case 0:O=I,j=ge,H=te;break;case 1:O=se,j=I,H=te;break;case 2:O=te,j=I,H=ge;break;case 3:O=te,j=se,H=I;break;case 4:O=ge,j=te,H=I;break;case 5:O=I,j=te,H=se;break}}return[O,j,H]}static mix(c,y,I){return new Mr(ma(c.r,y.r,I),ma(c.g,y.g,I),ma(c.b,y.b,I),ma(c.a,y.a,I))}};ll.nameToHex=new Map([["aliceblue","#F0F8FF"],["antiquewhite","#FAEBD7"],["aqua","#00FFFF"],["aquamarine","#7FFFD4"],["azure","#F0FFFF"],["beige","#F5F5DC"],["bisque","#FFE4C4"],["black","#000000"],["blanchedalmond","#FFEBCD"],["blue","#0000FF"],["blueviolet","#8A2BE2"],["brown","#A52A2A"],["burlywood","#DEB887"],["cadetblue","#5F9EA0"],["chartreuse","#7FFF00"],["chocolate","#D2691E"],["coral","#FF7F50"],["cornflowerblue","#6495ED"],["cornsilk","#FFF8DC"],["crimson","#DC143C"],["cyan","#00FFFF"],["darkblue","#00008B"],["darkcyan","#008B8B"],["darkgoldenrod","#B8860B"],["darkgray","#A9A9A9"],["darkgreen","#006400"],["darkgrey","#A9A9A9"],["darkkhaki","#BDB76B"],["darkmagenta","#8B008B"],["darkolivegreen","#556B2F"],["darkorange","#FF8C00"],["darkorchid","#9932CC"],["darkred","#8B0000"],["darksalmon","#E9967A"],["darkseagreen","#8FBC8F"],["darkslateblue","#483D8B"],["darkslategray","#2F4F4F"],["darkslategrey","#2F4F4F"],["darkturquoise","#00CED1"],["darkviolet","#9400D3"],["deeppink","#FF1493"],["deepskyblue","#00BFFF"],["dimgray","#696969"],["dimgrey","#696969"],["dodgerblue","#1E90FF"],["firebrick","#B22222"],["floralwhite","#FFFAF0"],["forestgreen","#228B22"],["fuchsia","#FF00FF"],["gainsboro","#DCDCDC"],["ghostwhite","#F8F8FF"],["gold","#FFD700"],["goldenrod","#DAA520"],["gray","#808080"],["green","#008000"],["greenyellow","#ADFF2F"],["grey","#808080"],["honeydew","#F0FFF0"],["hotpink","#FF69B4"],["indianred","#CD5C5C"],["indigo","#4B0082"],["ivory","#FFFFF0"],["khaki","#F0E68C"],["lavender","#E6E6FA"],["lavenderblush","#FFF0F5"],["lawngreen","#7CFC00"],["lemonchiffon","#FFFACD"],["lightblue","#ADD8E6"],["lightcoral","#F08080"],["lightcyan","#E0FFFF"],["lightgoldenrodyellow","#FAFAD2"],["lightgray","#D3D3D3"],["lightgreen","#90EE90"],["lightgrey","#D3D3D3"],["lightpink","#FFB6C1"],["lightsalmon","#FFA07A"],["lightseagreen","#20B2AA"],["lightskyblue","#87CEFA"],["lightslategray","#778899"],["lightslategrey","#778899"],["lightsteelblue","#B0C4DE"],["lightyellow","#FFFFE0"],["lime","#00FF00"],["limegreen","#32CD32"],["linen","#FAF0E6"],["magenta","#FF00FF"],["maroon","#800000"],["mediumaquamarine","#66CDAA"],["mediumblue","#0000CD"],["mediumorchid","#BA55D3"],["mediumpurple","#9370DB"],["mediumseagreen","#3CB371"],["mediumslateblue","#7B68EE"],["mediumspringgreen","#00FA9A"],["mediumturquoise","#48D1CC"],["mediumvioletred","#C71585"],["midnightblue","#191970"],["mintcream","#F5FFFA"],["mistyrose","#FFE4E1"],["moccasin","#FFE4B5"],["navajowhite","#FFDEAD"],["navy","#000080"],["oldlace","#FDF5E6"],["olive","#808000"],["olivedrab","#6B8E23"],["orange","#FFA500"],["orangered","#FF4500"],["orchid","#DA70D6"],["palegoldenrod","#EEE8AA"],["palegreen","#98FB98"],["paleturquoise","#AFEEEE"],["palevioletred","#DB7093"],["papayawhip","#FFEFD5"],["peachpuff","#FFDAB9"],["peru","#CD853F"],["pink","#FFC0CB"],["plum","#DDA0DD"],["powderblue","#B0E0E6"],["purple","#800080"],["rebeccapurple","#663399"],["red","#FF0000"],["rosybrown","#BC8F8F"],["royalblue","#4169E1"],["saddlebrown","#8B4513"],["salmon","#FA8072"],["sandybrown","#F4A460"],["seagreen","#2E8B57"],["seashell","#FFF5EE"],["sienna","#A0522D"],["silver","#C0C0C0"],["skyblue","#87CEEB"],["slateblue","#6A5ACD"],["slategray","#708090"],["slategrey","#708090"],["snow","#FFFAFA"],["springgreen","#00FF7F"],["steelblue","#4682B4"],["tan","#D2B48C"],["teal","#008080"],["thistle","#D8BFD8"],["tomato","#FF6347"],["transparent","#00000000"],["turquoise","#40E0D0"],["violet","#EE82EE"],["wheat","#F5DEB3"],["white","#FFFFFF"],["whitesmoke","#F5F5F5"],["yellow","#FFFF00"],["yellowgreen","#9ACD32"]]);var eo=ll;function Nr(l,c){return y=>Number(l)*(1-y)+Number(c)*y}function rn(l,c){if(typeof l=="string")try{l=eo.fromString(l)}catch(y){l=eo.fromArray([0,0,0])}if(typeof c=="string")try{c=eo.fromString(c)}catch(y){c=eo.fromArray([0,0,0])}return y=>eo.mix(l,c,y).toRgbaString()}var Wo=Symbol("BREAK"),Mo="__decorator_config";function Ps(l,c){Object.getOwnPropertyDescriptor(l,Mo)==null&&Object.defineProperty(l,Mo,{value:{}});let y=l[Mo],I=c.toString();if(typeof y[I]!="undefined")return y[I];let O=new WeakMap;y[I]={setters:[],getters:[],observers:[],valuesMap:O};let j=Object.getOwnPropertyDescriptor(l,c),H=j==null?void 0:j.set,K=j==null?void 0:j.get;return Object.defineProperty(l,c,{set:function(se){let{setters:ge,observers:Se}=y[I],Ce;ge.some(Pe=>Pe.length>2)&&(Ce=K?K.call(this):O.get(this));for(let Pe of ge)if(se=Pe(this,c,se,Ce),se===Wo)return;H?H.call(this,se):O.set(this,se);for(let Pe of Se)Pe(this,se,Ce)},get:function(){let se=K?K.call(this):O.get(this);for(let ge of y[I].getters)if(se=ge(this,c,se),se===Wo)return;return se},enumerable:!0,configurable:!1}),y[I]}function Un(l,c,y){return(I,O)=>{let j=Ps(I,O);j.setters.push(l),c&&j.getters.unshift(c),y&&Object.assign(j,y)}}function Ls(l){return(c,y)=>{Ps(c,y).observers.push(l)}}function la(l){return typeof l!="undefined"&&Mo in l}function uo(l){let c=new Set;for(;la(l);)c.add(l==null?void 0:l[Mo]),l=Object.getPrototypeOf(l);return Array.from(c).flatMap(y=>Object.keys(y))}function ka(l){return uo(l).reduce((c,y)=>{var I;return c[y]=(I=l[y])!=null?I:null,c},{})}function $n(l,c){let y=c.toString();for(;la(l);){let I=l[Mo];if(Object.hasOwn(I,y))return I[y];l=Object.getPrototypeOf(l)}}function to(l){return l!=null}function $t(l){return Array.isArray(l)}function nn(l){return typeof l=="boolean"}function bn(l){return l instanceof Date}function zi(l){return bn(l)&&!isNaN(Number(l))}function En(l){return l instanceof RegExp}function Yn(l){return typeof l=="function"}function Ke(l){return typeof l=="object"&&l!==null&&!$t(l)}function pt(l){return $t(l)||ct(l)}function ct(l){return typeof l=="object"&&l!==null&&Object.getPrototypeOf(l)===Object.prototype}function ht(l){return typeof l=="string"}function Gt(l){return typeof l=="number"}function _t(l){return Number.isFinite(l)}function ni(l){return typeof window!="undefined"&&l instanceof HTMLElement}function Bi(l,c){return ht(c)&&Object.keys(l).includes(c)}function xi(l,c){return Object.values(l).includes(c)}function Ti(l){return typeof l=="symbol"}function Oi(l,c){return l.type!==c}function xn(l,c){return Array.isArray(l)?!Array.isArray(c)||l.length!==c.length?!1:l.every((y,I)=>xn(y,c[I])):ct(l)?ct(c)?an(l,c,xn):!1:l===c}function an(l,c,y){for(let I of Object.keys(c))if(!(I in l))return!1;for(let I of Object.keys(l))if(!(I in c)||!y(l[I],c[I]))return!1;return!0}function Cn(...l){return Wi(...l.reverse())}function Wi(...l){var y;let c={};for(let I of l){if(!Ke(I))continue;let O=la(I)?uo(I):Object.keys(I);for(let j of O)ct(c[j])&&ct(I[j])?c[j]=Wi(c[j],I[j]):(y=c[j])!=null||(c[j]=I[j])}return c}function ko(l,...c){return c&&$t(l)?l.map(y=>Wi(y,...c)):l}function xc(l,c){return Object.entries(l).reduce((y,[I,O])=>(y[I]=c(O,I,l),y),{})}function Os(l,c){let y=pe({},l);for(let I of c)delete y[I];return y}function pr(l,c){return($t(c)?c:c.split(".")).reduce((I,O)=>I[O],l)}var $r=new Set(["__proto__","constructor","prototype"]);function Qh(l,c,y){let I=$t(c)?c.slice():c.split("."),O=I.pop();if(I.some(H=>$r.has(H)))return;let j=I.reduce((H,K)=>H[K],l);return j[O]=y,j[O]}function Lo(l,c,y){if(y===void 0)return c;for(let I of l){let O=y[I];O!==void 0&&(c[I]=O)}return c}function Qr(l){return Object.freeze(l),Object.getOwnPropertyNames(l).forEach(c=>{let y=l[c];y!==null&&(typeof y=="object"||typeof y=="function")&&!Object.isFrozen(y)&&Qr(y)}),l}var cl={};M(cl,{easeIn:()=>Qn,easeInOut:()=>Id,easeInOutQuad:()=>Mc,easeInQuad:()=>Td,easeOut:()=>Oo,easeOutQuad:()=>Jh,inverseEaseOut:()=>kc,linear:()=>Ai});var Ai=l=>l,Qn=l=>1-Math.cos(l*Math.PI/2),Oo=l=>Math.sin(l*Math.PI/2),Id=l=>-(Math.cos(l*Math.PI)-1)/2,Td=l=>l*l,Jh=l=>1-(1-l)**2,Mc=l=>l<.5?2*l*l:1-(-2*l+2)**2/2,kc=l=>2*Math.asin(l)/Math.PI,_s=.2,Jr=["initial","remove","update","add","trailing","end","none"],Vl={initial:{animationDuration:1,animationDelay:0},add:{animationDuration:.25,animationDelay:.75},remove:{animationDuration:.25,animationDelay:0},update:{animationDuration:.5,animationDelay:.25},trailing:{animationDuration:_s,animationDelay:1,skipIfNoEarlierAnimations:!0},end:{animationDelay:1+_s,animationDuration:0,skipIfNoEarlierAnimations:!0},none:{animationDuration:0,animationDelay:0}},Oy=(l=>(l.Loop="loop",l.Reverse="reverse",l))(Oy||{});function qC(l){return l.every(c=>c instanceof Tn)}function $f(l){return qC(l)?{nodes:l,selections:[]}:{nodes:[],selections:l}}function zr(l,c){return l===c?!0:Array.isArray(l)&&Array.isArray(c)?l.length===c.length&&l.every((y,I)=>zr(y,c[I])):Ye(l)&&Ye(c)?l.equals(c):ct(l)&&ct(c)?an(l,c,zr):!1}var _y=class{constructor(l){var y,I,O,j,H,K,Z;this.isComplete=!1,this.elapsed=0,this.iteration=0,this.isPlaying=!1,this.isReverse=!1,this.id=l.id,this.groupId=l.groupId,this.autoplay=(y=l.autoplay)!=null?y:!0,this.ease=(I=l.ease)!=null?I:Ai,this.phase=l.phase;let c=(O=l.duration)!=null?O:Vl[this.phase].animationDuration;this.duration=c*l.defaultDuration,this.delay=((j=l.delay)!=null?j:0)*l.defaultDuration,this.onComplete=l.onComplete,this.onPlay=l.onPlay,this.onStop=l.onStop,this.onUpdate=l.onUpdate,this.interpolate=this.createInterpolator(l.from,l.to),this.from=l.from,l.skip===!0&&((H=this.onUpdate)==null||H.call(this,l.to,!1,this),(K=this.onStop)==null||K.call(this,this),(Z=this.onComplete)==null||Z.call(this,this),this.isComplete=!0),l.collapsable!==!1&&(this.duration=this.checkCollapse(l,this.duration))}checkCollapse(l,c){return zr(l.from,l.to)?0:c}play(l=!1){var c,y;this.isPlaying||this.isComplete||(this.isPlaying=!0,(c=this.onPlay)==null||c.call(this,this),this.autoplay&&(this.autoplay=!1,l&&((y=this.onUpdate)==null||y.call(this,this.from,!0,this))))}pause(){this.isPlaying=!1}stop(){var l;this.isPlaying=!1,this.isComplete||(this.isComplete=!0,(l=this.onStop)==null||l.call(this,this))}update(l){var O,j;if(this.isComplete)return l;!this.isPlaying&&this.autoplay&&this.play(!0);let c=this.elapsed;if(this.elapsed+=l,this.delay>this.elapsed)return 0;let y=this.interpolate(this.isReverse?1-this.delta:this.delta);(O=this.onUpdate)==null||O.call(this,y,!1,this);let I=this.delay+this.duration;return this.elapsed>=I?(this.stop(),this.isComplete=!0,(j=this.onComplete)==null||j.call(this,this),l-(I-c)):0}get delta(){return this.ease(Ae(0,(this.elapsed-this.delay)/this.duration,1))}createInterpolator(l,c){if(typeof c!="object"||Ye(c))return this.interpolateValue(l,c);let y=[];for(let I of Object.keys(c)){let O=this.interpolateValue(l[I],c[I]);O!=null&&y.push([I,O])}return I=>{let O={};for(let[j,H]of y)O[j]=H(I);return O}}interpolateValue(l,c){if(!(l==null||c==null)){if(Ye(l))return y=>l[ze](c,y);try{switch(typeof l){case"number":return Nr(l,c);case"string":return rn(l,c);case"boolean":if(l===c)return()=>l;break}}catch(y){}throw new Error(`Unable to interpolate values: ${l}, ${c}`)}}},Fs={added:"add",updated:"update",removed:"remove",unknown:"initial","no-op":"none"};function yi(l,c,y,I,O,j,H){let{fromFn:K,toFn:Z,applyFn:te=(Pe,Ge)=>Pe.setProperties(Ge)}=O,{nodes:se,selections:ge}=$f(I),Se=(Pe,Ge)=>{var rt;let We,He=0,Ze=0;for(let dt of Ge){let mt=Pe[He]===dt,yt={last:Ze>=Ge.length-1,lastLive:He>=Pe.length-1,prev:Ge[Ze-1],prevFromProps:We,prevLive:Pe[He-1],next:Ge[Ze+1],nextLive:Pe[He+(mt?1:0)]},Lt=`${l}_${c}_${dt.id}`;y.stopByAnimationId(Lt);let Ht="unknown";mt?j&&H&&(Ht=ix(dt,dt.datum,j,H)):Ht="removed",dt.transitionOut=Ht==="removed";let it=K(dt,dt.datum,Ht,yt),{phase:qt,start:ri,finish:Ei,delay:Ni,duration:Vi}=it,Si=ji(it,["phase","start","finish","delay","duration"]),qe=Z(dt,dt.datum,Ht,yt),{phase:sn,start:en,finish:Nn,delay:dn,duration:ea}=qe,Sn=ji(qe,["phase","start","finish","delay","duration"]),pn=Ei==null;y.animate({id:Lt,groupId:l,phase:(rt=qt!=null?qt:sn)!=null?rt:"update",duration:Vi!=null?Vi:ea,delay:Ni!=null?Ni:dn,from:Si,to:Sn,ease:Oo,collapsable:pn,onPlay:()=>{te(dt,pe(pe(pe({},ri),en),Si))},onUpdate(ta){te(dt,ta)},onStop:()=>{te(dt,pe(pe(pe(pe(pe(pe({},ri),en),Si),Sn),Ei),Nn))}}),mt&&He++,Ze++,We=Si}},Ce=0;for(let Pe of ge){let Ge=Pe.nodes(),We=Ge.filter(He=>!Pe.isGarbage(He));Se(We,Ge),y.animate({id:`${l}_${c}_selection_${Ce}`,groupId:l,phase:"end",from:0,to:1,ease:Oo,onStop(){Pe.cleanup()}}),Ce++}Se(se,se)}function Rd(l,c,y,I,O,j,H){let{nodes:K,selections:Z}=$f(I),{start:te,finish:se,phase:ge}=H;y.animate({id:`${l}_${c}`,groupId:l,phase:ge!=null?ge:"update",from:O,to:j,ease:Oo,onPlay:()=>{if(te){for(let Se of K)Se.setProperties(te);for(let Se of Z)for(let Ce of Se.nodes())Ce.setProperties(te)}},onUpdate(Se){for(let Ce of K)Ce.setProperties(Se);for(let Ce of Z)for(let Pe of Ce.nodes())Pe.setProperties(Se)},onStop:()=>{for(let Se of K)Se.setProperties(pe(pe({},j),se));for(let Se of Z){for(let Ce of Se.nodes())Ce.setProperties(pe(pe({},j),se));Se.cleanup()}}})}function ix(l,c,y,I){let O=y(l,c);return I.added.has(O)?"added":I.removed.has(O)?"removed":"updated"}var Fy=new Map;function sp(l,c){Fy.has(c)||(Fy.set(c,!0),l())}sp.clear=()=>Fy.clear();function YC(l){return l}function bm(l,c=0,y){let{leading:I=!1,trailing:O=!0,maxWait:j=1/0}=y!=null?y:{},H,K;if(j<c)throw new Error("Value of maxWait cannot be lower than waitMs.");function Z(...te){if(I&&!K){K=Date.now(),H=setTimeout(()=>K=null,c),l(...te);return}let se=c;if(j!==1/0&&K){let ge=Date.now()-K;c>j-ge&&(se=j-ge)}clearTimeout(H),K!=null||(K=Date.now()),H=setTimeout(()=>{K=null,O&&l(...te)},se)}return Object.assign(Z,{cancel(){clearTimeout(H),K=null}})}function Ny(l,c,y){let{leading:I=!0,trailing:O=!0}=y!=null?y:{},j,H,K=!1;function Z(){O&&H?(j=setTimeout(Z,c),l(...H)):K=!1,H=null}function te(...se){K?H=se:(K=!0,j=setTimeout(Z,c),I?l(...se):H=se)}return Object.assign(te,{cancel(){clearTimeout(j),K=!1,H=null}})}var Pi={log(...l){console.log(...l)},warn(l,...c){console.warn(`AG Charts - ${l}`,...c)},error(l,...c){typeof l=="object"?console.error("AG Charts error",l,...c):console.error(`AG Charts - ${l}`,...c)},table(...l){console.table(...l)},warnOnce(l,...c){sp(()=>Pi.warn(l,...c),`Logger.warn: ${l}`)},errorOnce(l,...c){sp(()=>Pi.error(l,...c),`Logger.error: ${l}`)}},ps=(l,c)=>{let y=Symbol(String(c));l[y]=void 0,Object.defineProperty(l,c,{get(){return this[y]},set(I){this[y]!==I&&(this[y]=I,this.invalid=!0)},enumerable:!0,configurable:!1})},mu=class Qj{constructor(c,y){this.invalid=!0,this.nice=!1,this.interval=void 0,this.tickCount=Qj.defaultTickCount,this.minTickCount=0,this.maxTickCount=1/0,this.niceDomain=[],this.defaultClamp=!1,this.domain=c,this.range=y}static is(c){return c instanceof Qj}transform(c){return c}transformInvert(c){return c}calcBandwidth(c=1){let y=this.getDomain(),I=this.getPixelRange(),O=Math.abs(y[1]-y[0])/c+1,j=Math.floor(I),H=Math.min(O,j);return I/Math.max(1,H)}getDomain(){return this.nice&&(this.refresh(),this.niceDomain.length)?this.niceDomain:this.domain}convert(c,y){if(!this.domain||this.domain.length<2)return NaN;this.refresh();let I=this.getDomain().map(te=>this.transform(te)),[O,j]=I,{range:H}=this,[K,Z]=H;if(c=this.transform(c),y!=null?y:this.defaultClamp){let[te,se]=Re(I.map(Number));if(Number(c)<te)return K;if(Number(c)>se)return Z}return O===j?(K+Z)/2:c===O?K:c===j?Z:K+(Number(c)-Number(O))/(Number(j)-Number(O))*(Z-K)}invert(c,y){this.refresh();let I=this.getDomain().map(Ce=>this.transform(Ce)),[O,j]=I,{range:H}=this,[K,Z]=H,te=K>Z,se=te?Z:K,ge=te?K:Z;if(y!=null?y:this.defaultClamp){if(c<se)return te?j:O;if(c>ge)return te?O:j}let Se;return K===Z?Se=this.toDomain((Number(O)+Number(j))/2):Se=this.toDomain(Number(O)+(c-K)/(Z-K)*(Number(j)-Number(O))),this.transformInvert(Se)}refresh(){this.invalid&&(this.invalid=!1,this.update(),this.invalid&&Pi.warnOnce("Expected update to not invalidate scale"))}getPixelRange(){let[c,y]=this.range;return Math.abs(y-c)}};mu.defaultTickCount=5,mu.defaultMaxTickCount=6,D([ps],mu.prototype,"domain",2),D([ps],mu.prototype,"range",2),D([ps],mu.prototype,"nice",2),D([ps],mu.prototype,"interval",2),D([ps],mu.prototype,"tickCount",2),D([ps],mu.prototype,"minTickCount",2),D([ps],mu.prototype,"maxTickCount",2);var io=mu;function lp(l){if(l.length===0)return null;let c=1/0,y=-1/0;for(let O of l)O instanceof Date&&(O=O.getTime()),typeof O=="number"&&(O<c&&(c=O),O>y&&(y=O));let I=[c,y];return I.every(isFinite)?I:null}function dl(l,c,y){var O;let I=!1;return l.length>2&&(l=(O=lp(l))!=null?O:[NaN,NaN]),isNaN(c)||(I||(I=c>l[0]),l=[c,l[1]]),isNaN(y)||(I||(I=y<l[1]),l=[l[0],y]),l[0]>l[1]&&(l=[]),{extent:l,clipped:I}}function eg(l,c){if(l==null||c==null||l.length!==c.length)return!1;for(let y=0;y<l.length;y++)if(Array.isArray(l[y])&&Array.isArray(c[y])){if(!eg(l[y],c[y]))return!1}else if(l[y]!==c[y])return!1;return!0}function XC(l){return typeof l=="undefined"?[]:Array.isArray(l)?l:[l]}function Qf(l){return Array.from(new Set(l))}function Ac(l,c){return l.reduce((y,I)=>{var j;let O=c(I);return(j=y[O])!=null||(y[O]=[]),y[O].push(I),y},{})}function pi(l,c,y=0){if(l.length===0)return[];let I=[];for(let O=0;O<c;O++)I.push(l.at((O+y)%l.length));return I}function Ea(l,c){let y=new Map;return c.forEach((I,O)=>{y.set(I,O)}),l.sort((I,O)=>{var K,Z;let j=(K=y.get(I))!=null?K:1/0,H=(Z=y.get(O))!=null?Z:1/0;return j-H})}function cp(l,c){return l.includes(c)}var dp=1e3,ar=dp*60,Dc=ar*60,ul=Dc*24,_o=ul*7,Jc=ul*30,Fo=ul*365,Ec=class{constructor(l,c,y){this._encode=l,this._decode=c,this._rangeCallback=y}floor(l){let c=new Date(l),y=this._encode(c);return this._decode(y)}ceil(l){let c=new Date(Number(l)-1),y=this._encode(c);return this._decode(y+1)}range(l,c,y){var K;let I=(K=this._rangeCallback)==null?void 0:K.call(this,l,c),O=this._encode(y?this.floor(l):this.ceil(l)),j=this._encode(y?this.ceil(c):this.floor(c));if(j<O)return[];let H=[];for(let Z=O;Z<=j;Z++){let te=this._decode(Z);H.push(te)}return I==null||I(),H}},Ns=class extends Ec{getOffset(l,c){let y=typeof l=="number"||l instanceof Date?this._encode(new Date(l)):0;return Math.floor(y)%c}every(l,c){let y=0,I,O=l;l=Math.max(1,Math.round(l)),O!==l&&Pi.warnOnce(`interval step of [${O}] rounded to [${l}].`);let{snapTo:j="start"}=c!=null?c:{};if(typeof j=="string"){let Z=y;I=(te,se)=>{let ge=j==="start"?te:se;return y=this.getOffset(ge,l),()=>y=Z}}else typeof j=="number"?y=this.getOffset(new Date(j),l):j instanceof Date&&(y=this.getOffset(j,l));let H=Z=>{let te=this._encode(Z);return Math.floor((te-y)/l)},K=Z=>this._decode(Z*l+y);return new Ec(H,K,I)}};function EP(l){let c=l.getTimezoneOffset()*ar;return Math.floor((l.getTime()-c)/ul)}function uh(l){let c=new Date(1970,0,1);return c.setDate(c.getDate()+l),c}var Gn=new Ns(EP,uh),hh=new Date().getTimezoneOffset()*ar;function zs(l){return Math.floor((l.getTime()-hh)/Dc)}function Cm(l){return new Date(hh+l*Dc)}var Pd=new Ns(zs,Cm),Ao=new Date().getTimezoneOffset()*ar;function ZC(l){return Math.floor((l.getTime()-Ao)/ar)}function Jf(l){return new Date(Ao+l*ar)}var Fa=new Ns(ZC,Jf);function zy(l){return l.getFullYear()*12+l.getMonth()}function nx(l){let c=Math.floor(l/12),y=l-c*12;return new Date(c,y,1)}var zn=new Ns(zy,nx),Sm=new Date().getTimezoneOffset()*ar;function Ui(l){return Math.floor((l.getTime()-Sm)/dp)}function jn(l){return new Date(Sm+l*dp)}var Hi=new Ns(Ui,jn);function hl(l){let y=(7+l-4)%7;function I(j){let H=j.getTimezoneOffset()*ar;return Math.floor((j.getTime()-H)/_o-y/7)}function O(j){let H=new Date(1970,0,1);return H.setDate(H.getDate()+j*7+y),H}return new Ns(I,O)}var wm=hl(0),IP=hl(1),TP=hl(2),pI=hl(3),ax=hl(4),ev=hl(5),tv=hl(6);function ox(l){return l.getFullYear()}function _A(l){let c=new Date;return c.setFullYear(l),c.setMonth(0,1),c.setHours(0,0,0,0),c}var ed=new Ns(ox,_A),Hl={periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]};function Wa(l,c=new Date(l.getFullYear(),0,1)){let y=l.getTimezoneOffset()-c.getTimezoneOffset(),I=l.getTime()-c.getTime()+y*6e4,O=36e5*24;return Math.floor(I/O)}function xm(l,c){let I=new Date(l.getFullYear(),0,1).getDay(),O=(c-I+7)%7,j=new Date(l.getFullYear(),0,O+1);return j<=l?Math.floor(Wa(l,j)/7)+1:0}var $C=0,QC=1,rx=4;function Dr(l,c=l.getFullYear()){let I=new Date(c,0,1).getDay(),O=(rx-I+7)%7,j=new Date(c,0,O-(rx-QC)+1);return j<=l?Math.floor(Wa(l,j)/7)+1:Dr(l,c-1)}function JC(l){let c=l.getTimezoneOffset(),y=Math.abs(c);return`${c>0?"-":"+"}${ms(Math.floor(y/60),2,"0")}${ms(Math.floor(y%60),2,"0")}`}var mI={a:l=>Hl.shortDays[l.getDay()],A:l=>Hl.days[l.getDay()],b:l=>Hl.shortMonths[l.getMonth()],B:l=>Hl.months[l.getMonth()],c:"%x, %X",d:(l,c)=>ms(l.getDate(),2,c!=null?c:"0"),e:"%_d",f:(l,c)=>ms(l.getMilliseconds()*1e3,6,c!=null?c:"0"),H:(l,c)=>ms(l.getHours(),2,c!=null?c:"0"),I:(l,c)=>{let y=l.getHours()%12;return y===0?"12":ms(y,2,c!=null?c:"0")},j:(l,c)=>ms(Wa(l)+1,3,c!=null?c:"0"),m:(l,c)=>ms(l.getMonth()+1,2,c!=null?c:"0"),M:(l,c)=>ms(l.getMinutes(),2,c!=null?c:"0"),L:(l,c)=>ms(l.getMilliseconds(),3,c!=null?c:"0"),p:l=>l.getHours()<12?"AM":"PM",Q:l=>String(l.getTime()),s:l=>String(Math.floor(l.getTime()/1e3)),S:(l,c)=>ms(l.getSeconds(),2,c!=null?c:"0"),u:l=>{let c=l.getDay();return c<1&&(c+=7),String(c%7)},U:(l,c)=>ms(xm(l,$C),2,c!=null?c:"0"),V:(l,c)=>ms(Dr(l),2,c!=null?c:"0"),w:(l,c)=>ms(l.getDay(),2,c!=null?c:"0"),W:(l,c)=>ms(xm(l,QC),2,c!=null?c:"0"),x:"%-m/%-d/%Y",X:"%-I:%M:%S %p",y:(l,c)=>ms(l.getFullYear()%100,2,c!=null?c:"0"),Y:(l,c)=>ms(l.getFullYear(),4,c!=null?c:"0"),Z:l=>JC(l),"%":()=>"%"},fI={_:" ",0:"0","-":""};function ms(l,c,y){let I=String(Math.floor(l));return I.length>=c?I:`${y.repeat(c-I.length)}${I}`}function up(l){let c=[];for(;l.length>0;){let y=l.indexOf("%");if(y!==0){let K=y>0?l.substring(0,y):l;c.push(K)}if(y<0)break;let I=l[y+1],O=fI[I];O!=null&&y++;let j=l[y+1],H=mI[j];if(typeof H=="function")c.push([H,O]);else if(typeof H=="string"){let K=up(H);c.push([K,O])}else c.push(`${O!=null?O:""}${j}`);l=l.substring(y+2)}return y=>{let I=typeof y=="number"?new Date(y):y;return c.map(O=>typeof O=="string"?O:O[0](I,O[1])).join("")}}function Uo(l){return l instanceof Date?l.getTime():l}function Mm(l,c,y){let I=e0(l,c,y),O=up(I);return j=>O(j)}function e0(l=[],c=l,y=0){let I=1/0;for(let Z=1;Z<l.length;Z++)I=Math.min(I,Math.abs(l[Z]-l[Z-1]));let O=new Date(c[0]).getFullYear(),H=new Date(c.at(-1)).getFullYear()-O>0,K=isFinite(I)?gh(I,l):FA(l[0]);return iv(Math.max(K-y,0),H,l)}function gh(l,c){return l<dp?0:l<ar?1:l<Dc?2:l<ul?3:l<_o?4:l<ul*28||l<ul*31&&By(c)?5:l<Fo?6:7}function FA(l){return Hi.floor(l)<l?0:Fa.floor(l)<l?1:Pd.floor(l)<l?2:Gn.floor(l)<l?3:zn.floor(l)<l?wm.floor(l)<l?4:5:ed.floor(l)<l?6:7}function By(l){let c=new Date(l[0]).getMonth();for(let y=1;y<l.length;y++){let I=new Date(l[y]).getMonth();if(c===I)return!0;c=I}return!1}function iv(l,c,y){let I=Uo(y[0]),O=Uo(y.at(-1)),j=Math.abs(O-I),H=c||l===7,K=j===0,te=[["hour",6*Dc,14*ul,3,"%I %p"],["hour",ar,6*Dc,3,"%I:%M"],["second",1e3,6*Dc,1,":%S"],["ms",0,6*Dc,0,".%L"],["am/pm",ar,6*Dc,3,"%p"]," ",["day",ul,_o,4,"%a"],["month",K?0:_o,52*_o,5,"%b %d"],["month",5*_o,10*Fo,6,"%B"]," ",["year",H?0:Fo,1/0,7,"%Y"]].filter(Se=>{if(typeof Se=="string")return!0;let[Ce,Pe,Ge,We]=Se;return We>=l&&Pe<=j&&j<Ge}).reduce((Se,Ce)=>(typeof Ce=="string"?Se.result.push(Ce):Se.used.has(Ce[0])||(Se.result.push(Ce),Se.used.add(Ce[0])),Se),{result:[],used:new Set}).result,se=te.findIndex(Se=>typeof Se!="string"),ge=te.findLastIndex(Se=>typeof Se!="string");return te.slice(se,ge+1).map(Se=>typeof Se=="string"?Se:Se[4]).join("").replaceAll(/\s+/g," ").trim()}var mr=class $X{constructor(){this.type="band",this.invalid=!0,this.range=[0,1],this.round=!1,this.interval=void 0,this.index=new Map,this._domain=[],this._bandwidth=1,this._step=1,this._inset=1,this._rawBandwidth=1,this._paddingInner=0,this._paddingOuter=0}static is(c){return c instanceof $X}refresh(){this.invalid&&(this.invalid=!1,this.update(),this.invalid&&Pi.warnOnce("Expected update to not invalidate scale"))}set domain(c){this.index=new Map,this.invalid=!0,this._domain=[];for(let y of c){let I=Uo(y);this.getIndex(I)===void 0&&this.index.set(I,this._domain.push(y)-1)}}get domain(){return this._domain}getDomain(){return this._domain}ticks(){return this.refresh(),this._domain}convert(c){this.refresh();let y=this.getIndex(c);return y==null||y<0||y>=this.domain.length?NaN:this.ordinalRange(y)}invertNearestIndex(c){this.refresh();let{domain:y}=this;if(y.length===0)return-1;let I=0,O=y.length-1,j=1/0,H=0;for(;I<=O;){let K=(O+I)/2|0,Z=this.ordinalRange(K),te=Math.abs(Z-c);if(te===0)return K;te<j&&(j=te,H=K),Z<c?I=K+1:O=K-1}return H}invert(c){this.refresh();let y=this.invertNearestIndex(c),I=this.ordinalRange(y);return c===I?this.domain[y]:void 0}invertNearest(c){let y=this.invertNearestIndex(c);return this.domain[y]}get bandwidth(){return this.refresh(),this._bandwidth}get step(){return this.refresh(),this._step}get inset(){return this.refresh(),this._inset}get rawBandwidth(){return this.refresh(),this._rawBandwidth}set padding(c){c=Ae(0,c,1),this._paddingInner=c,this._paddingOuter=c}get padding(){return this._paddingInner}set paddingInner(c){this._paddingInner=Ae(0,c,1)}get paddingInner(){return this._paddingInner}set paddingOuter(c){this._paddingOuter=Ae(0,c,1)}get paddingOuter(){return this._paddingOuter}update(){let c=this._domain.length;if(c===0)return;let[y,I]=this.range,{_paddingInner:O}=this,{_paddingOuter:j,round:H}=this,K=I-y,Z;c===1?(O=0,Z=K*(1-j*2)):Z=K/Math.max(1,c-O+j*2);let te=H?Math.floor(Z):Z,se=y+(K-te*(c-O))/2,ge=te*(1-O);H&&(se=Math.round(se),ge=Math.round(ge)),this._step=te,this._inset=se,this._bandwidth=ge,this._rawBandwidth=Z*(1-O)}ordinalRange(c){let{_inset:y,_step:I}=this;return y+I*c}getIndex(c){return this.index.get(c instanceof Date?c.getTime():c)}};D([ps],mr.prototype,"range",2),D([ps],mr.prototype,"round",2),D([ps],mr.prototype,"interval",2);var Wl=mr,un=class{set(l){let{className:c=this.constructor.name}=this.constructor;if(typeof l!="object")return Pi.warn(`unable to set ${c} - expecting a properties object`),this;let y=new Set(Object.keys(l));for(let I of uo(this))if(y.has(I)){let O=l[I],j=this;if(fu(j[I]))if(j[I]instanceof ho){let H=j[I].reset(O);H!=null?j[I]=H:Pi.warn(`unable to set [${I}] - expecting a properties array`)}else j[I].set(O);else j[I]=O;y.delete(I)}for(let I of y)Pi.warn(`unable to set [${I}] in ${c} - property is unknown`);return this}isValid(l){return uo(this).every(c=>{let{optional:y}=$n(this,c),I=y===!0||typeof this[c]!="undefined";return I||Pi.warnOnce(`${l!=null?l:""}[${c}] is required.`),I})}toJson(){return uo(this).reduce((l,c)=>{let y=this[c];return l[c]=fu(y)?y.toJson():y,l},{})}},ho=class QX extends Array{constructor(c,...y){super(y.length);let O=(j=>{var H,K;return!!((K=(H=j==null?void 0:j.prototype)==null?void 0:H.constructor)!=null&&K.name)})(c)?j=>new c().set(j):c;Object.defineProperty(this,"itemFactory",{value:O,enumerable:!1,configurable:!1}),this.set(y)}set(c){if($t(c)){this.length=c.length;for(let y=0;y<c.length;y++)this[y]=this.itemFactory(c[y])}return this}reset(c){if(Array.isArray(c))return new QX(this.itemFactory,...c)}toJson(){return this.map(c=>{var y,I;return(I=(y=c==null?void 0:c.toJson)==null?void 0:y.call(c))!=null?I:c})}};function fu(l){return l instanceof un||l instanceof ho}function Je(l,c={}){let{optional:y=!1,property:I}=c;return Un((O,j,H)=>{var Se;let K=et(pe({},c),{target:O,property:j});if(y&&typeof H=="undefined"||l(H,K))return fu(O[j])&&!fu(H)?(O[j].set(H),O[j]):H;let Z=I!=null?I:String(j).replace(/^_*/,""),te=(Se=O.constructor.className)!=null?Se:O.constructor.name.replace(/Properties$/,""),se=vu(H),ge=50;if(se!=null&&se.length>ge){let Ce=se.length-ge;se=se.slice(0,ge)+`... (+${Ce} characters)`}return Pi.warn(`Property [${Z}] of [${te}] cannot be set to [${se}]${l.message?`; expecting ${Do(l,K)}`:""}, ignoring.`),Wo},void 0,{optional:y})}var Ld=(...l)=>{let c=[];return xa((y,I)=>(c.length=0,l.every(O=>{let j=O(y,I);return j||c.push(Do(O,I)),j})),()=>c.filter(Boolean).join(" AND "))},km=(...l)=>xa((c,y)=>l.some(I=>I(c,y)),c=>l.map(vh(c)).filter(Boolean).join(" OR ")),Gi=fs(xa((l,c)=>fu(l)||Ke(l)&&fu(c.target[c.property]),"a properties object")),Br=fs(xa(l=>Ke(l),"an object")),Zi=xa(nn,"a boolean"),no=xa(Yn,"a function"),ui=xa(ht,"a string"),Vn=pl(xa(_t,"a number")),Na=xa(l=>Gt(l)&&!isNaN(l),"a real number"),t0=xa(l=>Gt(l)&&isNaN(l),"NaN"),Fi=Vn.restrict({min:0}),Ia=Vn.restrict({min:0,max:1}),ei=km(Vn,t0),nv=RP(xa($t,"an array")),Hn=(l,c)=>xa((y,I)=>$t(y)&&y.every(O=>l(O,I)),y=>{var O;let I=(O=Do(nv,y))!=null?O:"";return typeof c=="function"?`${I} of ${c(y)}`:c?`${I} of ${c}`:I}),Ko=l=>_t(l)||zi(l),ph=l=>xa((c,y)=>!Ko(c)||!Ko(y.target[l])||c<y.target[l],`to be less than ${l}`),Gy=l=>xa((c,y)=>!Ko(c)||!Ko(y.target[l])||c>y.target[l],`to be greater than ${l}`),ia=xa(zi,"Date object"),jy=km(ia,Fi),NA="A color string can be in one of the following formats to be valid: #rgb, #rrggbb, rgb(r, g, b), rgba(r, g, b, a) or a CSS color name such as 'white', 'orange', 'cyan', etc",na=xa(l=>ht(l)&&eo.validColorString(l),`color String. ${NA}`),gl=xa(Hn(na),`color strings. ${NA}`),Bs=Hn(Zi,"boolean values"),Ic=Hn(Vn,"numbers"),Vy=Hn(ui,"strings"),i0=xa(Hn(ia),"Date objects"),Ta=xa(Hn(Gi),"objects"),Sa=wa(["butt","round","square"],"a line cap"),tg=wa(["round","bevel","miter"],"a line join"),vI=wa(["solid","dashed","dotted"],"a line style"),qo=xa(Hn(Fi),"numbers specifying the length in pixels of alternating dashes and gaps, for example, [6, 3] means dashes with a length of 6 pixels with gaps between of 3 pixels."),n0=wa(["top","right","bottom","left"],"a position"),mh=wa(["normal","italic","oblique"],"a font style"),fh=km(wa(["normal","bold","bolder","lighter"],"a font weight"),Vn.restrict({min:1,max:1e3})),Hy=wa(["never","always","hyphenate","on-space"],"a text wrap strategy"),a0=wa(["left","center","right"],"a text align"),Wy=wa(["top","middle","bottom"],"a vertical align"),yI=wa(["ellipsis","hide"],"an overflow strategy"),ig=wa(["horizontal","vertical"],"a direction"),td=wa(["inside","outside"],"a placement"),hp=km(wa(["exact","nearest"],"interaction range"),Vn),ng=wa(["top","bottom","left","right"]);function wa(l,c="a"){return xa((y,I)=>{let O=l.find(j=>{let H=typeof j=="string"?j:j.value;return y===H});if(O==null)return!1;if(typeof O!="string"&&(O.deprecated===!0||O.deprecatedTo!=null)){let j=[`Property [%s] with value '${O.value}' is deprecated.`];O.deprecatedTo&&j.push(`Use ${O.deprecatedTo} instead.`),Pi.warnOnce(j.join(" "),I.property)}return!0},`${c} keyword such as ${bI(l)}`)}var o0=km(Ld(Vn.restrict({min:1}),ph("maxSpacing")),t0),sx=km(Ld(Vn.restrict({min:1}),Gy("minSpacing")),t0);function xa(l,c){return l.message=c,l}function bI(l){let c=l.filter(I=>typeof I=="string"||I.undocumented!==!0).map(I=>`'${typeof I=="string"?I:I.value}'`);if(c.length===1)return c[0];let y=c.pop();return`${c.join(", ")} or ${y}`}function Do(l,c){return Yn(l.message)?l.message(c):l.message}function vh(l){return c=>Do(c,l)}function RP(l){return Object.assign(l,{restrict({length:c,minLength:y}={}){let I="an array";return Gt(y)&&y>0?I="a non-empty array":Gt(c)&&(I=`an array of length ${c}`),xa(O=>$t(O)&&(Gt(c)?O.length===c:!0)&&(Gt(y)?O.length>=y:!0),I)}})}function pl(l){return Object.assign(l,{restrict({min:c,max:y}={}){let I=["a number"],O=Gt(c),j=Gt(y);return O&&j?I.push(`between ${c} and ${y} inclusive`):O?I.push(`greater than or equal to ${c}`):j&&I.push(`less than or equal to ${y}`),xa(H=>_t(H)&&(O?H>=c:!0)&&(j?H<=y:!0),I.join(" "))}})}function fs(l){return Object.assign(l,{restrict(c){return xa(y=>y instanceof c,y=>{var I;return(I=Do(l,y))!=null?I:`an instance of ${c.name}`})}})}function vu(l){if(typeof l=="number"){if(isNaN(l))return"NaN";if(l===1/0)return"Infinity";if(l===-1/0)return"-Infinity"}return JSON.stringify(l)}var av=(l=>(l.X="x",l.Y="y",l))(av||{}),yh=class{constructor(){this.moduleMap=new Map}*modules(){for(let l of this.moduleMap.values())yield l.moduleInstance}addModule(l,c){if(this.moduleMap.has(l.optionsKey))throw new Error(`AG Charts - module already initialised: ${l.optionsKey}`);this.moduleMap.set(l.optionsKey,{module:l,moduleInstance:c(l)})}removeModule(l){var y;let c=ht(l)?l:l.optionsKey;(y=this.moduleMap.get(c))==null||y.moduleInstance.destroy(),this.moduleMap.delete(c)}getModule(l){var c;return(c=this.moduleMap.get(ht(l)?l:l.optionsKey))==null?void 0:c.moduleInstance}isEnabled(l){return this.moduleMap.has(ht(l)?l:l.optionsKey)}mapModules(l){return Array.from(this.moduleMap.values(),(c,y)=>l(c.moduleInstance,y))}destroy(){var l;for(let c of this.moduleMap.keys())(l=this.moduleMap.get(c))==null||l.moduleInstance.destroy();this.moduleMap.clear()}},Am={};M(Am,{resetMotion:()=>Yo});function Yo(l,c){let{nodes:y,selections:I}=$f(l);for(let O of I){for(let j of O.nodes()){let H=c(j,j.datum);j.setProperties(H)}O.cleanup()}for(let O of y){let j=c(O,O.datum);O.setProperties(j)}}function Tc(l){let c,y,I=es.exec(l);I&&([,c,l,y]=I);let O=Rn.exec(l);if(!O)throw new Error(`The number formatter is invalid: ${l}`);let[,j,H,K,Z,te,se,ge,Se,Ce,Pe]=O;return{fill:j,align:H,sign:K,symbol:Z,zero:te,width:parseInt(se),comma:ge,precision:parseInt(Se),trim:!!Ce,type:Pe,prefix:c,suffix:y}}function Di(l){let c=typeof l=="string"?Tc(l):l,{fill:y,align:I,sign:O="-",symbol:j,zero:H,width:K,comma:Z,type:te,prefix:se="",suffix:ge="",precision:Se}=c,{trim:Ce}=c,Pe=Se==null||isNaN(Se),Ge;if(!te)Ge=cr.g,Ce=!0;else if(te in cr&&te in ml)Ge=Pe?ml[te]:cr[te];else if(te in cr)Ge=cr[te];else if(te in ml)Ge=ml[te];else throw new Error(`The number formatter type is invalid: ${te}`);let We;return Se==null||Pe?We=te?6:12:We=Se,He=>{let Ze=Ge(He,We);return Ce&&(Ze=Uy(Ze)),Z&&(Ze=cx(Ze,Z)),Ze=CI(He,Ze,O),j&&j!=="#"&&(Ze=`${j}${Ze}`),j==="#"&&te==="x"&&(Ze=`0x${Ze}`),te==="s"&&(Ze=`${Ze}${dx(He)}`),(te==="%"||te==="p")&&(Ze=`${Ze}%`),K!=null&&!isNaN(K)&&(Ze=zA(Ze,K,y!=null?y:H,I)),Ze=`${se}${Ze}${ge}`,Ze}}var Rn=/^(?:(.)?([<>=^]))?([+\-( ])?([$€£¥₣₹#])?(0)?(\d+)?(,)?(?:\.(\d+))?(~)?([%a-z])?$/i,es=/^((?:[^#]|#[^{])*)#{([^}]+)}(.*)$/,ml={b:l=>bh(l).toString(2),c:l=>String.fromCharCode(l),d:l=>Math.round(Math.abs(l)).toFixed(0),o:l=>bh(l).toString(8),x:l=>bh(l).toString(16),X:l=>ml.x(l).toUpperCase(),n:l=>ml.d(l),"%":l=>`${bh(l*100).toFixed(0)}`},cr={e:(l,c)=>Math.abs(l).toExponential(c),E:(l,c)=>cr.e(l,c).toUpperCase(),f:(l,c)=>Math.abs(l).toFixed(c),F:(l,c)=>cr.f(l,c).toUpperCase(),g:(l,c)=>{if(l===0)return"0";let y=Math.abs(l),I=Math.floor(Math.log10(y));return I>=-4&&I<c?y.toFixed(c-1-I):y.toExponential(c-1)},G:(l,c)=>cr.g(l,c).toUpperCase(),n:(l,c)=>cr.g(l,c),p:(l,c)=>cr.r(l*100,c),r:(l,c)=>{if(l===0)return"0";let y=Math.abs(l),O=Math.floor(Math.log10(y))-(c-1);if(O<=0)return y.toFixed(-O);let j=10**O;return(Math.round(y/j)*j).toFixed()},s:(l,c)=>{let y=ov(l);return cr.r(l/10**y,c)},"%":(l,c)=>cr.f(l*100,c)},go=-24,Gs=24,gp={[go]:"y",[-21]:"z",[-18]:"a",[-15]:"f",[-12]:"p",[-9]:"n",[-6]:"\xB5",[-3]:"m",[0]:"",[3]:"k",[6]:"M",[9]:"G",[12]:"T",[15]:"P",[18]:"E",[21]:"Z",[Gs]:"Y"},lx="\u2212";function bh(l){return Math.floor(Math.abs(l))}function Uy(l){return l.replace(/\.0+$/,"").replace(/(\.[1-9])0+$/,"$1")}function cx(l,c){let y=l.indexOf(".");y<0&&(y=l.length);let I=l.substring(0,y).split(""),O=l.substring(y);for(let j=I.length-3;j>0;j-=3)I.splice(j,0,c);return`${I.join("")}${O}`}function dx(l){return gp[ov(l)]}function ov(l){return Ae(go,l?Math.floor(Math.log10(Math.abs(l))/3)*3:0,Gs)}function CI(l,c,y=""){if(y==="(")return l>=0?c:`(${c})`;let I=y==="+"?"+":"";return`${l>=0?I:lx}${c}`}function zA(l,c,y=" ",I=">"){let O=l;if(I===">"||!I)O=O.padStart(c,y);else if(I==="<")O=O.padEnd(c,y);else if(I==="^"){let j=Math.max(0,c-O.length),H=Math.ceil(j/2),K=Math.floor(j/2);O=O.padStart(H+O.length,y),O=O.padEnd(K+O.length,y)}return O}function ts(l){return l.getTime()}function fl(l){return new Date(l)}var vs=new Ns(ts,fl),fa=(l,c,y)=>({duration:c*y,timeInterval:l,step:y}),ys=[fa(Hi,dp,1),fa(Hi,dp,5),fa(Hi,dp,15),fa(Hi,dp,30),fa(Fa,ar,1),fa(Fa,ar,5),fa(Fa,ar,15),fa(Fa,ar,30),fa(Pd,Dc,1),fa(Pd,Dc,3),fa(Pd,Dc,6),fa(Pd,Dc,12),fa(Gn,ul,1),fa(Gn,ul,2),fa(wm,_o,1),fa(wm,_o,2),fa(wm,_o,3),fa(zn,Jc,1),fa(zn,Jc,2),fa(zn,Jc,3),fa(zn,Jc,4),fa(zn,Jc,6),fa(ed,Fo,1)],Ch=[1,2,5,10];function Sh(l,c){return Math.abs(Math.round(l)-l)<c}function ag(l,c,y,I,O){if(y<2)return[l,c];let j=Ri(l,c,y,I,O);return Number.isFinite(j)?(Sh(l/j,1e-12)||(l=Math.ceil(l/j)*j),Sh(c/j,1e-12)||(c=Math.floor(c/j)*j),js(l,c,j)):[]}function wh(l,c,y,I,O,j){let H=j!=null?j:Math.abs(c-l)/Math.max(y,1),K=0;for(let Se of ys){if(H<=Se.duration)break;K++}if(K===0){let Se=Math.max(Ri(l,c,y,I,O),1);return vs.every(Se)}else if(K===ys.length){let Se=j==null?Ri(l/Fo,c/Fo,y,I,O):1;return ed.every(Se)}let Z=ys[K-1],te=ys[K],{timeInterval:se,step:ge}=H-Z.duration<te.duration-H?Z:te;return se.every(ge)}function Ri(l,c,y,I=0,O=1/0){if(l===c)return Ae(1,I,O);if(y<1)return NaN;let j=Math.abs(c-l),H=10**Math.floor(Math.log10(j/y)),K=NaN,Z=1/0,te=!1;for(let se of Ch){let ge=Math.ceil(j/(se*H)),Se=ge>=I&&ge<=O;if(te&&!Se)continue;let Ce=Math.abs(ge-y);(Z>Ce||te!==Se)&&(te||(te=Se),Z=Ce,K=se)}return K*H}function On(l){for(let c=l.length-1;c>=0;c-=1)if(l[c]!=="0")return c+1;return 0}function Ul(l,c){let y=Tc(c!=null?c:",f");(y.precision==null||isNaN(y.precision))&&(!y.type||"eEFgGnprs".includes(y.type)?y.precision=Math.max(...l.map(O=>{if(!Number.isFinite(O))return 0;let[j,H]=O.toExponential((y.type?6:12)-1).split(/[.e]/g);return(j!=="1"&&j!=="-1"?1:0)+On(H)+1})):"f%".includes(y.type)&&(y.precision=Math.max(...l.map(O=>{if(!Number.isFinite(O)||O===0)return 0;let j=Math.floor(Math.log10(Math.abs(O))),H=y.type?6:12,K=O.toExponential(H-1).split(/[.e]/g)[1],Z=On(K);return Math.max(0,Z-j)}))));let I=Di(y);return O=>I(Number(O))}function js(l,c,y){if(!Number.isFinite(y)||y<=0)return[];let I=10**Mt(y),O=Math.min(l,c),j=Math.max(l,c),H=[];for(let K=0;;K+=1){let Z=Math.round((O+y*K)*I)/I;if(Z>j)break;H.push(Z)}return H}function r0(l,c){return l>=c?(Pi.warnOnce("the configured interval results in more than 1 item per pixel, ignoring. Supply a larger interval or omit this configuration"),!0):!1}function Ky(l,c){let y=Math.abs(c-l),I=10**Math.floor(Math.log10(y)),O=1/0,j=[l,c];for(let H of Ch){let K=H*I,Z=Math.floor(l/K)*K,te=Math.ceil(c/K)*K,se=1-y/Math.abs(te-Z);O>se&&(O=se,j=[Z,te])}return j}function ux(l,c,y,I,O){O=Math.max(O,l/(I+1)),isNaN(c)&&(c=O),isNaN(y)&&(y=l),c>y&&(c===O?c=y:y=c);let j=Math.max(1,Math.floor(l/c)),H=Math.min(j,Math.ceil(l/y)),K=Ae(H,I,j);return{minTickCount:H,maxTickCount:j,tickCount:K}}var SI=class Jj extends io{constructor(){super([1,10],[0,1]),this.type="log",this.base=10,this.baseLog=YC,this.basePow=YC,this.log=c=>Math.min(...this.domain)>=0?this.baseLog(c):-this.baseLog(-c),this.pow=c=>Math.min(...this.domain)>=0?this.basePow(c):-this.basePow(-c),this.defaultClamp=!0}toDomain(c){return c}transform(c){return Math.min(...this.domain)>=0?Math.log(c):-Math.log(-c)}transformInvert(c){return Math.min(...this.domain)>=0?Math.exp(c):-Math.exp(-c)}refresh(){this.base<=0&&(this.base=0,Pi.warnOnce("expecting a finite Number greater than to 0")),super.refresh()}update(){!this.domain||this.domain.length<2||(this.baseLog=Jj.getBaseLogMethod(this.base),this.basePow=Jj.getBasePowerMethod(this.base),this.nice&&this.updateNiceDomain())}updateNiceDomain(){let[c,y]=this.domain,I=c>y?Math.ceil:Math.floor,O=c>y?Math.floor:Math.ceil,j=this.pow(I(this.log(c))),H=this.pow(O(this.log(y)));this.niceDomain=[j,H]}ticks(){var Ce;let c=(Ce=this.tickCount)!=null?Ce:10;if(!this.domain||this.domain.length<2||c<1)return[];this.refresh();let y=this.base,[I,O]=this.getDomain(),j=Math.min(I,O),H=Math.max(I,O),K=this.log(j),Z=this.log(H);if(this.interval){let Pe=He=>He>=j&&He<=H,Ge=Math.min(Math.abs(this.interval),Math.abs(Z-K)),We=js(K,Z,Ge).map(this.pow).filter(Pe);if(!r0(We.length,this.getPixelRange()))return We}if(!tt(y)||Z-K>=c)return ag(K,Z,Math.min(Z-K,c)).map(this.pow);let te=[],se=j>0;K=Math.floor(K)-1,Z=Math.round(Z)+1;let ge=Oe(this.range)/c,Se=1/0;for(let Pe=K;Pe<=Z;Pe++){let Ge=this.convert(this.pow(Pe+1));for(let We=1;We<y;We++){let He=se?We:y-We+1,Ze=this.pow(Pe)*He,it=this.convert(Ze),qe=Math.abs(Se-it),rt=Math.abs(it-Ge),dt=qe>=ge&&rt>=ge;Ze>=j&&Ze<=H&&(We===1||dt||te.length===0)&&(te.push(Ze),Se=it)}}return te}tickFormat({specifier:c}){return c!=null||(c=this.base===10?".0e":","),ht(c)?Di(c):c}static getBaseLogMethod(c){switch(c){case 10:return Math.log10;case Math.E:return Math.log;case 2:return Math.log2;default:return y=>Math.log(y)/Math.log(c)}}static getBasePowerMethod(c){switch(c){case 10:return y=>y>=0?10**y:1/10**-y;case Math.E:return Math.exp;default:return y=>c**y}}};D([ps],SI.prototype,"base",2);var BA=SI;function hx(l,c,y){if(l>c)return;let I;for(;c>=l;){let O=Math.floor((c+l)/2);y(O)?(I=O,l=O+1):c=O-1}return I}function Dm(l,c,y){if(l>c)return;let I;for(;c>=l;){let O=Math.floor((c+l)/2);y(O)?(I=O,c=O-1):l=O+1}return I}function GA(l,c,y){if(l>c)return;let I;for(;c>=l;){let O=Math.floor((c+l)/2),j=y(O);j==null?c=O-1:(I=j,l=O+1)}return I}function wI(l,c,y){if(l>c)return;let I;for(;c>=l;){let O=Math.floor((c+l)/2),j=y(O);j==null?l=O+1:(I=j,c=O-1)}return I}function xI(l,c){return l.valueOf()-c.valueOf()}function jA(l){let c=NaN,y=[];for(let I of l){let O=I.valueOf();c!==O&&y.push(I),c=O}return y}function Em(l){let c=l.slice().sort(xI);return s0(l)==null?jA(c):c}function s0(l){if(l.length===0)return 1;let c=Number(l[l.length-1])>Number(l[0])?1:-1,y=-1/0*c;for(let I of l){let O=I.valueOf();if(Math.sign(O-y)!==c)return;y=O}return c}var VA=class Ez extends io{constructor(){super([],[0,1]),this.type="time"}toDomain(c){return new Date(c)}convert(c,y){return c instanceof Date||(c=new Date(c)),super.convert(c,y)}invert(c){return new Date(super.invert(c))}ticks(){var Z;if(!this.domain||this.domain.length<2)return[];this.refresh();let{interval:c,nice:y,tickCount:I,minTickCount:O,maxTickCount:j}=this,[H,K]=Re(this.getDomain().map(Uo));return c!=null?(Z=Ez.getTicksForInterval({start:H,stop:K,interval:c,availableRange:this.getPixelRange()}))!=null?Z:Ez.getDefaultTicks({start:H,stop:K,tickCount:I,minTickCount:O,maxTickCount:j}):y&&I===2?this.niceDomain:y&&I===1?this.niceDomain.slice(0,1):Ez.getDefaultTicks({start:H,stop:K,tickCount:I,minTickCount:O,maxTickCount:j})}static getDefaultTicks({start:c,stop:y,tickCount:I,minTickCount:O,maxTickCount:j}){let H=wh(c,y,I,O,j);return H?H.range(new Date(c),new Date(y)):[]}static getTicksForInterval({start:c,stop:y,interval:I,availableRange:O}){if(!I)return[];if(I instanceof Ec){let se=I.range(new Date(c),new Date(y));return r0(se.length,O)?void 0:se}let j=Math.abs(I);if(r0((y-c)/j,O))return;let H=ys.findLast(se=>j%se.duration===0);if(H)return H.timeInterval.every(j/(H.duration/H.step)).range(new Date(c),new Date(y));let K=new Date(c),Z=new Date(y),te=[];for(;K<=Z;)te.push(K),K=new Date(K),K.setMilliseconds(K.getMilliseconds()+j);return te}tickFormat({ticks:c,domain:y,specifier:I,formatOffset:O}){return I==null?Mm(c,y,O):up(I)}update(){!this.domain||this.domain.length<2||this.nice&&this.updateNiceDomain()}updateNiceDomain(){let[y,I]=this.domain;for(let O=0;O<4;O++){this.updateNiceDomainIteration(y,I);let[j,H]=this.niceDomain;if(Uo(y)===Uo(j)&&Uo(I)===Uo(H))break;y=j,I=H}}updateNiceDomainIteration(c,y){let I=Math.min(Uo(c),Uo(y)),O=Math.max(Uo(c),Uo(y)),j=c>y,{interval:H}=this,K;if(H instanceof Ec)K=H;else{let Z=typeof H=="number"?(O-I)/Math.max(H,1):this.tickCount;K=wh(I,O,Z,this.minTickCount,this.maxTickCount)}if(K){let Z=K.range(new Date(I),new Date(O),!0),te=j?[...Z].reverse():Z,se=te[0],ge=te.at(-1);this.niceDomain=[se,ge]}}},l0=class JX extends Wl{constructor(){super(...arguments),this.type="ordinal-time",this.tickCount=io.defaultTickCount,this.minTickCount=0,this.maxTickCount=1/0,this.interval=void 0,this._domain=[],this.sortedTimestamps=[],this.visibleRange=[0,1],this.isReversed=!1,this._values=void 0}static is(c){return c instanceof JX}setVisibleRange(c){this.visibleRange=c}set domain(c){if(c===this._values)return;this.invalid=!0;let y=s0(c),I=y==null?Em(c):c,O=y===-1,j=I.map(Uo);O&&j.reverse(),this._values=c,this._domain=I,this.isReversed=O,this.sortedTimestamps=j,this.precomputedSteps=void 0;let H=c.length<1e4?j.length:Math.ceil(j.length/16);if(H<=1)return;this.refresh();let K=new Int32Array(H),Z=j[0].valueOf(),se=j[j.length-1].valueOf()-Z;for(let ge=0;ge<K.length;ge+=1)K[ge]=this.findInterval(Z+ge/H*se);this.precomputedSteps=K}get domain(){return this._domain}ticks(){var Ce;if(!this._domain.length)return[];this.refresh();let{domain:c,isReversed:y,interval:I}=this,[O,j]=[c[0].valueOf(),c.at(-1).valueOf()],H=Math.min(O,j),K=Math.max(O,j);if(I==null)return this.getDefaultTicks(this.maxTickCount,y);let[Z,te]=this.range,se=Math.abs(te-Z),ge=(Ce=VA.getTicksForInterval({start:H,stop:K,interval:I,availableRange:se}))!=null?Ce:[],Se=-1;return ge.filter(Pe=>{let Ge=this.findInterval(Pe.valueOf()),We=Ge===Se;return Se=Ge,!We})}getDefaultTicks(c,y){let{domain:I,visibleRange:O}=this,j=[],H=Math.ceil(I.length*(O[1]-O[0])/c),K=Math.floor(H/2);for(let Z=0;Z<I.length;Z+=1){let te=I[Z],se=y?I.length-1-Z:Z;(H<=0||(se+K)%H===0)&&j.push(te)}return y&&j.reverse(),j}convert(c){this.refresh();let y=Number(c);if(y<this.sortedTimestamps[0])return NaN;let I=this.findInterval(y);return this.isReversed&&(I=this.domain.length-I-1),this.ordinalRange(I)}findInterval(c){let{sortedTimestamps:y,precomputedSteps:I}=this,O,j;if(I==null)O=0,j=y.length-1;else{let H=y[0].valueOf(),K=y[y.length-1].valueOf(),Z=Math.min((c-H)/(K-H)*I.length|0,I.length-1|0);O=I[Z],j=Z<I.length-2?I[Z+1]:y.length-1}for(;O<=j;){let H=(O+j)/2|0;if(y[H]===c)return H;y[H]<c?O=H+1:j=H-1}return O}tickFormat({ticks:c,domain:y,specifier:I}){return I==null?Mm(c,y):up(I)}invert(c){this.refresh();let{domain:y}=this,I=wI(0,y.length-1,O=>this.ordinalRange(O)>=c?y[O]:void 0);return I!=null?I:y[0]}invertNearest(c){return super.invertNearest(c)}};D([ps],l0.prototype,"tickCount",2),D([ps],l0.prototype,"minTickCount",2),D([ps],l0.prototype,"maxTickCount",2),D([ps],l0.prototype,"interval",2);var Vs=l0;function HA(l,c){return typeof l=="number"&&typeof c=="number"?l-c:typeof l=="string"&&typeof c=="string"?l.localeCompare(c):l==null&&c==null?0:l==null?-1:c==null?1:String(l).localeCompare(String(c))}var gx=[1,0,0,1,0,0];function qy(l,c,y=1e-8){return l===c||Math.abs(c-l)<y}var c0=class kP{get e(){return[...this.elements]}constructor(c=[...gx]){this.elements=c}setElements(c){let y=this.elements;return y[0]=c[0],y[1]=c[1],y[2]=c[2],y[3]=c[3],y[4]=c[4],y[5]=c[5],this}get identity(){let c=this.elements;return qy(c[0],1)&&qy(c[1],0)&&qy(c[2],0)&&qy(c[3],1)&&qy(c[4],0)&&qy(c[5],0)}AxB(c,y,I){let O=c[0]*y[0]+c[2]*y[1],j=c[1]*y[0]+c[3]*y[1],H=c[0]*y[2]+c[2]*y[3],K=c[1]*y[2]+c[3]*y[3],Z=c[0]*y[4]+c[2]*y[5]+c[4],te=c[1]*y[4]+c[3]*y[5]+c[5];I=I!=null?I:c,I[0]=O,I[1]=j,I[2]=H,I[3]=K,I[4]=Z,I[5]=te}multiplySelf(c){return this.AxB(this.elements,c.elements),this}multiply(c){let y=new Array(6);return c instanceof kP?this.AxB(this.elements,c.elements,y):this.AxB(this.elements,[c.a,c.b,c.c,c.d,c.e,c.f],y),new kP(y)}preMultiplySelf(c){return this.AxB(c.elements,this.elements,this.elements),this}inverse(){let c=this.elements,y=c[0],I=c[1],O=c[2],j=c[3],H=c[4],K=c[5],Z=1/(y*j-I*O);return y*=Z,I*=Z,O*=Z,j*=Z,new kP([j,-I,-O,y,O*K-j*H,I*H-y*K])}inverseTo(c){let y=this.elements,I=y[0],O=y[1],j=y[2],H=y[3],K=y[4],Z=y[5],te=1/(I*H-O*j);return I*=te,O*=te,j*=te,H*=te,c.setElements([H,-O,-j,I,j*Z-H*K,O*K-I*Z]),this}invertSelf(){let c=this.elements,y=c[0],I=c[1],O=c[2],j=c[3],H=c[4],K=c[5],Z=1/(y*j-I*O);return y*=Z,I*=Z,O*=Z,j*=Z,c[0]=j,c[1]=-I,c[2]=-O,c[3]=y,c[4]=O*K-j*H,c[5]=I*H-y*K,this}transformPoint(c,y){let I=this.elements;return{x:c*I[0]+y*I[2]+I[4],y:c*I[1]+y*I[3]+I[5]}}transformBBox(c,y){let I=this.elements,O=I[0],j=I[1],H=I[2],K=I[3],Z=c.width*.5,te=c.height*.5,se=c.x+Z,ge=c.y+te,Se=Math.abs(Z*O)+Math.abs(te*H),Ce=Math.abs(Z*j)+Math.abs(te*K);return y!=null||(y=new ft(0,0,0,0)),y.x=se*O+ge*H+I[4]-Se,y.y=se*j+ge*K+I[5]-Ce,y.width=Se+Se,y.height=Ce+Ce,y}toContext(c){if(this.identity)return;let y=this.elements;c.transform(y[0],y[1],y[2],y[3],y[4],y[5])}static flyweight(c){return kP.instance.setElements(c.elements)}static updateTransformMatrix(c,y,I,O,j,H,K){var rt,dt,mt,yt;let Z=y,te=I,se,ge;Z===1&&te===1?(se=0,ge=0):(se=(rt=K==null?void 0:K.scalingCenterX)!=null?rt:0,ge=(dt=K==null?void 0:K.scalingCenterY)!=null?dt:0);let Se=O,Ce=Math.cos(Se),Pe=Math.sin(Se),Ge,We;Se===0?(Ge=0,We=0):(Ge=(mt=K==null?void 0:K.rotationCenterX)!=null?mt:0,We=(yt=K==null?void 0:K.rotationCenterY)!=null?yt:0);let He=j,Ze=H,it=se*(1-Z)-Ge,qe=ge*(1-te)-We;return c.setElements([Ce*Z,Pe*Z,-Pe*te,Ce*te,Ce*it-Pe*qe+Ge+He,Pe*it+Ce*qe+We+Ze]),c}static fromContext(c){let y=c.getTransform();return new kP([y.a,y.b,y.c,y.d,y.e,y.f])}};c0.instance=new c0;var vl=c0;function og(l){return rv(l.constructor)}var Im=Symbol("isMatrixTransform");function rv(l){return l[Im]===!0}function px(l){var c,y;let I=l;if(rv(l))return l;let O=Symbol("matrix_combined_transform");class j extends I{constructor(){super(...arguments),this[y]=new vl,this._dirtyTransform=!0}markDirtyTransform(){this._dirtyTransform=!0,super.markDirty()}updateMatrix(K){}computeTransformMatrix(){this._dirtyTransform&&(this[O].setElements(gx),this.updateMatrix(this[O]),this._dirtyTransform=!1)}toParent(K){return this.computeTransformMatrix(),this[O].identity?K.clone():this[O].transformBBox(K)}toParentPoint(K,Z){return this.computeTransformMatrix(),this[O].identity?{x:K,y:Z}:this[O].transformPoint(K,Z)}fromParent(K){return this.computeTransformMatrix(),this[O].identity?K.clone():this[O].inverse().transformBBox(K)}fromParentPoint(K,Z){return this.computeTransformMatrix(),this[O].identity?{x:K,y:Z}:this[O].inverse().transformPoint(K,Z)}computeBBox(){let K=super.computeBBox();return K&&this.toParent(K)}computeBBoxWithoutTransforms(){return super.computeBBox()}pickNode(K,Z,te=!1){return te||({x:K,y:Z}=this.fromParentPoint(K,Z)),super.pickNode(K,Z)}render(K){this.computeTransformMatrix();let{ctx:Z}=K,te=this[O],se=!1;te.identity||(Z.save(),se=!0,te.toContext(Z)),super.render(K),se&&Z.restore()}toSVG(){this.computeTransformMatrix();let K=super.toSVG(),Z=this[O];if(Z.identity||K==null)return K;let te=document.createElementNS("http://www.w3.org/2000/svg","g");te.append(...K.elements);let[se,ge,Se,Ce,Pe,Ge]=Z.e;return te.setAttribute("transform",`matrix(${se} ${ge} ${Se} ${Ce} ${Pe} ${Ge})`),{elements:[te],defs:K.defs}}}return c=Im,y=O,j[c]=!0,j}function Tm(l){var c;let y=l,I=Symbol("matrix_rotation");class O extends px(y){constructor(){super(...arguments),this[c]=new vl,this.rotationCenterX=null,this.rotationCenterY=null,this.rotation=0}updateMatrix(H){super.updateMatrix(H);let{rotation:K,rotationCenterX:Z,rotationCenterY:te}=this;K!==0&&(vl.updateTransformMatrix(this[I],1,1,K,0,0,{rotationCenterX:Z,rotationCenterY:te}),H.multiplySelf(this[I]))}}return c=I,D([kt({type:"transform"})],O.prototype,"rotationCenterX",2),D([kt({type:"transform"})],O.prototype,"rotationCenterY",2),D([kt({type:"transform"})],O.prototype,"rotation",2),O}function mx(l){var c;let y=l,I=Symbol("matrix_scale");class O extends px(y){constructor(){super(...arguments),this[c]=new vl,this.scalingX=1,this.scalingY=1,this.scalingCenterX=null,this.scalingCenterY=null}updateMatrix(H){super.updateMatrix(H);let{scalingX:K,scalingY:Z,scalingCenterX:te,scalingCenterY:se}=this;K===1&&Z===1||(vl.updateTransformMatrix(this[I],K,Z,0,0,0,{scalingCenterX:te,scalingCenterY:se}),H.multiplySelf(this[I]))}}return c=I,D([kt({type:"transform"})],O.prototype,"scalingX",2),D([kt({type:"transform"})],O.prototype,"scalingY",2),D([kt({type:"transform"})],O.prototype,"scalingCenterX",2),D([kt({type:"transform"})],O.prototype,"scalingCenterY",2),O}function Rm(l){var c;let y=l,I=Symbol("matrix_translation");class O extends px(y){constructor(){super(...arguments),this[c]=new vl,this.translationX=0,this.translationY=0}updateMatrix(H){super.updateMatrix(H);let{translationX:K,translationY:Z}=this;K===0&&Z===0||(vl.updateTransformMatrix(this[I],1,1,0,K,Z),H.multiplySelf(this[I]))}}return c=I,D([kt({type:"transform"})],O.prototype,"translationX",2),D([kt({type:"transform"})],O.prototype,"translationY",2),O}var fr=class{static fromCanvas(l,c){let y=[];for(let I of l.traverseUp())og(I)&&y.unshift(I);for(let I of y)c=I.fromParent(c);return og(l)&&(c=l.fromParent(c)),c}static toCanvas(l,c){c==null?c=l.getBBox():og(l)&&(c=l.toParent(c));for(let y of l.traverseUp())og(y)&&(c=y.toParent(c));return c}static fromCanvasPoint(l,c,y){let I=[];for(let O of l.traverseUp())og(O)&&I.unshift(O);for(let O of I)({x:c,y}=O.fromParentPoint(c,y));return og(l)&&({x:c,y}=l.fromParentPoint(c,y)),{x:c,y}}static toCanvasPoint(l,c,y){og(l)&&({x:c,y}=l.toParentPoint(c,y));for(let I of l.traverseUp())og(I)&&({x:c,y}=I.toParentPoint(c,y));return{x:c,y}}},fx=(l,c)=>Math.sign(l-c);function vx(l,c){if(typeof l=="number"&&typeof c=="number")return fx(l,c);let y=typeof l=="number"?[l]:l,I=typeof c=="number"?[c]:c,O=Math.min(y.length,I.length);for(let j=0;j<O;j+=1){let H=fx(y[j],I[j]);if(H!==0)return H}return fx(y.length,I.length)}var WA=class Iz extends Tn{constructor(c){super(c),this.opacity=1,this.layer=void 0,this.renderToOffscreenCanvas=!1,this.isContainerNode=!0,this.renderToOffscreenCanvas=(c==null?void 0:c.renderToOffscreenCanvas)===!0}static is(c){return c instanceof Iz}static computeChildrenBBox(c,y=!0){return ft.merge(Tn.extractBBoxes(c,y))}static compareChildren(c,y){return vx(c.zIndex,y.zIndex)||HA(c.serialNumber,y.serialNumber)}containsPoint(c,y){return!0}computeBBox(){return Iz.computeChildrenBBox(this.children())}isDirty(c){let{resized:y}=c,{dirty:I,dirtyZIndex:O}=this;if(I||O||y)return!0;for(let j of this.children())if(j.dirty)return!0;return!1}preRender(){var y,I,O;let c=super.preRender(0);return c.groups+=1,c.nonGroups-=1,this.renderToOffscreenCanvas&&c.nonGroups>0&&this.getVisibility()?(I=this.layer)!=null||(this.layer=(y=this._layerManager)==null?void 0:y.addLayer({name:this.name})):this.layer!=null&&((O=this._layerManager)==null||O.removeLayer(this.layer),this.layer=void 0),c}render(c){var H;let{layer:y}=this,I=pe({},c);if(y==null){this.renderInContext(I),super.render(I);return}let{ctx:O,stats:j}=c;if(this.isDirty(c)){let K=O.getTransform(),{globalAlpha:Z}=O,te=y.context;I.ctx=te,y.clear(),te.save(),te.setTransform(K),te.globalAlpha=Z,this.renderInContext(I),te.restore(),(H=te.verifyDepthZero)==null||H.call(te),j&&j.layersRendered++}else this.skipRender(I),j&&j.layersSkipped++;O.save(),O.resetTransform(),y.drawImage(O),O.restore(),super.render(I)}skipRender(c){let{stats:y}=c;for(let I of this.children())I.markClean(),y&&(y.nodesSkipped+=this.childNodeCounts.groups+this.childNodeCounts.nonGroups,y.opsSkipped+=this.childNodeCounts.complexity)}applyClip(c,y){let{x:I,y:O,width:j,height:H}=y;c.beginPath(),c.rect(I,O,j,H),c.clip()}renderInContext(c){let{ctx:y,stats:I}=c;this.dirtyZIndex&&this.sortChildren(Iz.compareChildren),y.save(),y.globalAlpha*=this.opacity,this.clipRect!=null&&(this.applyClip(y,this.clipRect),c.clipBBox=fr.toCanvas(this,this.clipRect));for(let O of this.children()){if(!O.visible){O.markClean(),I&&(I.nodesSkipped+=O.childNodeCounts.nonGroups+O.childNodeCounts.groups,I.opsSkipped+=O.childNodeCounts.complexity);continue}y.save(),O.render(c),y.restore()}y.restore()}setClipRect(c){this.clipRect=c?fr.fromCanvas(this,c):void 0}setClipRectCanvasSpace(c){this.clipRect=c}_setLayerManager(c){var y;this.layer&&((y=this._layerManager)==null||y.removeLayer(this.layer),this.layer=void 0),super._setLayerManager(c)}getVisibility(){for(let c of this.traverseUp(!0))if(!c.visible)return!1;return!0}toSVG(){if(!this.visible)return;let c=[],y=[];for(let I of this.children()){let O=I.toSVG();O!=null&&(y.push(...O.elements),O.defs!=null&&c.push(...O.defs))}return{elements:y,defs:c}}};WA.className="Group",D([kt({convertor:l=>Ae(0,l,1)})],WA.prototype,"opacity",2);var Mn=WA,Yy=class extends mx(Mn){},UA=class extends Tm(Mn){},yl=class extends Rm(Mn){},sv=class extends Tm(Rm(Mn)){},yu={};typeof window!="undefined"?yu.window=window:typeof global!="undefined"&&(yu.window=global.window),typeof document!="undefined"?yu.document=document:typeof global!="undefined"&&(yu.document=global.document);function bs(l){var c;return l?(c=yu.document)==null?void 0:c[l]:yu.document}function ca(l){var c;return l?(c=yu.window)==null?void 0:c[l]:yu.window}function Aa(l,c,y){let I=bs().createElement(l);if(typeof c=="object"&&(y=c,c=void 0),c)for(let O of c.split(" "))I.classList.add(O);return y&&Object.assign(I.style,y),I}function lv(l,c){return bs().createElementNS(l,c)}function yx(l,c){let{body:y}=bs(),I=Aa("a",{display:"none"});I.href=l,I.download=c,y.appendChild(I),I.click(),setTimeout(()=>y.removeChild(I))}function bx(l){yu.document=l}function Cx(l){yu.window=l}function xh(l,c){l&&(c=fe.normalize(c),c.width==null?l.style.removeProperty("width"):l.style.width=`${c.width}px`,c.height==null?l.style.removeProperty("height"):l.style.height=`${c.height}px`,c.x==null?l.style.removeProperty("left"):l.style.left=`${c.x}px`,c.y==null?l.style.removeProperty("top"):l.style.top=`${c.y}px`)}function Sx(l){let c=parseFloat(l.style.width)||l.offsetWidth,y=parseFloat(l.style.height)||l.offsetHeight,I=parseFloat(l.style.left)||l.offsetLeft,O=parseFloat(l.style.top)||l.offsetTop;return{x:I,y:O,width:c,height:y}}function cv(l){var I;if(l.focus({preventScroll:!0}),((I=l.lastChild)==null?void 0:I.textContent)==null)return;let c=bs().createRange();c.setStart(l.lastChild,l.lastChild.textContent.length),c.setEnd(l.lastChild,l.lastChild.textContent.length);let y=ca().getSelection();y==null||y.removeAllRanges(),y==null||y.addRange(c)}var is=0;function Xy(l){return`${l!=null?l:"ag-charts-element"}-${is++}`}function wx(){let l=ca().navigator;if("scheduling"in l){let c=l.scheduling;if("isInputPending"in c)return c.isInputPending({includeContinuous:!0})}return!1}function xx(l){return`ag-charts-icon ag-charts-icon-${l}`}var PP=2e3,Zy=Date.now(),LP=()=>{let l=Date.now()-Zy;if(l>PP){let c=(Math.floor(l/100)/10).toFixed(1);Pi.log(`**** ${c}s since last log message ****`)}Zy=Date.now()},Ua={create(...l){return Object.assign((...y)=>{Ua.check(...l)&&(typeof y[0]=="function"&&(y=XC(y[0]())),LP(),Pi.log(...y))},{check:()=>Ua.check(...l)})},check(...l){return l.length===0&&l.push(!0),XC(ca("agChartsDebug")).some(y=>l.includes(y))}},No=class lI{constructor(c,y,I=!0){this.parentNode=c,this.autoCleanup=I,this.garbageBin=new Set,this._nodesMap=new Map,this._nodes=[],this.data=[],this.debug=Ua.create(!0,"scene","scene:selections"),this.nodeFactory=Object.prototype.isPrototypeOf.call(Tn,y)?()=>new y:y}static select(c,y,I=!0){return new lI(c,y,I)}static selectAll(c,y){let I=[],O=j=>{y(j)&&I.push(j);for(let H of j.children())O(H)};return O(c),I}static selectByClass(c,...y){return lI.selectAll(c,I=>y.some(O=>I instanceof O))}static selectByTag(c,y){return lI.selectAll(c,I=>I.tag===y)}createNode(c,y,I){let O=this.nodeFactory(c);return O.datum=c,y==null||y(O),I==null?this._nodes.push(O):this._nodes.splice(I,0,O),this.parentNode.appendChild(O),O}update(c,y,I){if(this.garbageBin.size>0&&this.debug("Selection - update() called with pending garbage",c),I){let O=new Map(c.map((j,H)=>[I(j),[j,H]]));for(let[j,H]of this._nodesMap.entries())if(O.has(H)){let[K]=O.get(H);j.datum=K,this.garbageBin.delete(j),O.delete(H)}else this.garbageBin.add(j);for(let[j,[H,K]]of O.entries())this._nodesMap.set(this.createNode(H,y,K),j)}else{let O=Math.max(c.length,this.data.length);for(let j=0;j<O;j++)j>=c.length?this.garbageBin.add(this._nodes[j]):j>=this._nodes.length?this.createNode(c[j],y):(this._nodes[j].datum=c[j],this.garbageBin.delete(this._nodes[j]))}return this.data=c.slice(),this.autoCleanup&&this.cleanup(),this}cleanup(){return this.garbageBin.size===0?this:(this._nodes=this._nodes.filter(c=>this.garbageBin.has(c)?(this._nodesMap.delete(c),this.garbageBin.delete(c),c.destroy(),!1):!0),this)}clear(){return this.update([]),this}isGarbage(c){return this.garbageBin.has(c)}hasGarbage(){return this.garbageBin.size>0}each(c){for(let y of this._nodes.entries())c(y[1],y[1].datum,y[0]);return this}*[Symbol.iterator](){for(let c=0;c<this._nodes.length;c++){let y=this._nodes[c];yield{node:y,datum:y.datum,index:c}}}select(c){return lI.selectAll(this.parentNode,c)}selectByClass(c){return lI.selectByClass(this.parentNode,c)}selectByTag(c){return lI.selectByTag(this.parentNode,c)}nodes(){return this._nodes}at(c){return this._nodes.at(c)}get length(){return this._nodes.length}},dr=Math.PI*2,bu=Math.PI/2;function ha(l){return l%=dr,l+=dr,l%=dr,l}function _n(l){return l%=dr,l+=dr,l!==dr&&(l%=dr),l}function rg(l){return l%=dr,l<-Math.PI?l+=dr:l>=Math.PI&&(l-=dr),l}function ga(l,c,y){let I=ha(l),O=ha(c),j=ha(y);return O<j?O<=I&&I<=j:O>j?O<=I||I<=j:!0}function $e(l){return l/180*Math.PI}function zo(l){return l/Math.PI*180}function Ka(l,c,y){y&&([l,c]=[c,l]);let I=ha(l);return(ha(c)+dr-I)%dr}function d0(l,c){return l=ha(l),c=ha(c),c-l+(l>c?dr:0)}function $y(l,c,y,I){let O=l+y*Math.cos(I),j=c+y*Math.sin(I);return{x:O,y:j}}var OP=1e-6;function KA(l,c){return d0(l,c)<OP?c:ha(l-c)+c}function pp(l,c,y=0){let O=Math.abs(c-l)>=dr?dr:ha(c-l);return l=KA(l,y),c=l+O,{startAngle:l,endAngle:c}}function qA(l){let c=ha(l);return c<=bu?c/bu:c<=Math.PI?(Math.PI-c)/bu:c<=1.5*Math.PI?(c-Math.PI)/bu:(dr-c)/bu}function Qt(l,c,y,I){let O=l-y,j=c-I;return O*O+j*j}function bl(l,c,y,I,O,j,H){if(y===O&&I===j)return Math.min(H,Qt(l,c,y,I));let K=O-y,Z=j-I,te=Math.max(0,Math.min(1,((l-y)*K+(c-I)*Z)/(K*K+Z*Z))),se=y+te*K,ge=I+te*Z;return Math.min(H,Qt(l,c,se,ge))}function Mh(l,c,y,I,O,j,H,K,Z){K&&([H,j]=[j,H]);let te=Math.atan2(c-I,l-y);if(!ga(te,j,H)){let ge=y+Math.cos(j)*O,Se=I+Math.sin(j)*O,Ce=y+Math.cos(j)*O,Pe=I+Math.sin(j)*O;return Math.min(Z,Qt(l,c,ge,Se),Qt(l,c,Ce,Pe))}let se=O-Math.sqrt(Qt(l,c,y,I));return Math.min(Z,se*se)}var Yi=l=>{let c=eo.fromString(l),[y,I,O]=eo.RGBtoOKLCH(c.r,c.g,c.b);return{l:y,c:I,h:O,a:c.a}},u0=1e-6,Ji=l=>l.c<u0||l.l<u0||l.l>1-u0,Kl=(l,c,y)=>{y=Ae(0,y,1);let I;if(Ji(l))I=c.h;else if(Ji(c))I=l.h;else{let K=l.h,Z=c.h,te=c.h-l.h;te>180?Z-=360:te<-180&&(Z+=360),I=K*(1-y)+Z*y}let O=l.c*(1-y)+c.c*y,j=l.l*(1-y)+c.l*y,H=l.a*(1-y)+c.a*y;return eo.fromOKLCH(j,O,I,H)},hi=class{constructor(){this.type="color",this.invalid=!0,this.domain=[0,1],this.range=["red","blue"],this.parsedRange=this.range.map(Yi)}update(){let{domain:l,range:c}=this;l.length<2&&(Pi.warnOnce("`colorDomain` should have at least 2 values."),l.length===0?l.push(0,1):l.length===1&&l.push(l[0]+1));for(let y=1;y<l.length;y++){let I=l[y-1],O=l[y];if(I>=O){Pi.warnOnce("`colorDomain` values should be supplied in ascending order."),l.sort((j,H)=>j-H);break}}if(c.length<l.length)for(let y=c.length;y<l.length;y++)c.push(c.length>0?c[0]:"black");this.parsedRange=this.range.map(Yi)}convert(l){this.refresh();let{domain:c,range:y,parsedRange:I}=this,O=c[0],j=c.at(-1),H=y[0],K=y[y.length-1];if(l<=O)return H;if(l>=j)return K;let Z,te;if(c.length===2){let Se=(l-O)/(j-O),Ce=1/(y.length-1);Z=y.length<=2?0:Math.min(Math.floor(Se*(y.length-1)),y.length-2),te=(Se-Z*Ce)/Ce}else{for(Z=0;Z<c.length-2&&!(l<c[Z+1]);Z++);let Se=c[Z],Ce=c[Z+1];te=(l-Se)/(Ce-Se)}let se=I[Z],ge=I[Z+1];return Kl(se,ge,te).toRgbaString()}refresh(){this.invalid&&(this.invalid=!1,this.update(),this.invalid&&Pi.warnOnce("Expected update to not invalidate scale"))}};D([ps],hi.prototype,"domain",2),D([ps],hi.prototype,"range",2);var pa=class{constructor(l,c=[],y){this.colorSpace=l,this.stops=c,this.bbox=y,this._cache=void 0}createGradient(l,c){var te;let y=(te=this.bbox)!=null?te:c;if(this._cache!=null&&this._cache.ctx===l&&this._cache.bbox.equals(y))return this._cache.gradient;let{stops:I,colorSpace:O}=this;if(I.length===0)return;if(I.length===1)return I[0].color;let j=this.createCanvasGradient(l,y);if(j==null)return;let H=O==="oklch",K=.05,Z=I[0];j.addColorStop(Z.offset,Z.color);for(let se=1;se<I.length;se+=1){let ge=I[se];if(H){let Se=new hi;Se.domain=[Z.offset,ge.offset],Se.range=[Z.color,ge.color];for(let Ce=Z.offset+K;Ce<ge.offset;Ce+=K)j.addColorStop(Ce,Se.convert(Ce))}j.addColorStop(ge.offset,ge.color),Z=ge}return"createPattern"in j&&(j=j.createPattern()),this._cache={ctx:l,bbox:y,gradient:j},j}},sg=class extends pa{constructor(l,c,y=0,I){super(l,c,I),this.angle=y}createCanvasGradient(l,c){let{angle:I}=this,O=ha($e(I+90)),j=Math.cos(O),H=Math.sin(O),K=c.width,Z=c.height,te=c.x+K*.5,se=c.y+Z*.5,ge=Math.sqrt(Z*Z+K*K)/2,Se=Math.atan2(Z,K),Ce;O<Math.PI/2?Ce=O:O<Math.PI?Ce=Math.PI-O:O<1.5*Math.PI?Ce=O-Math.PI:Ce=2*Math.PI-O;let Pe=ge*Math.abs(Math.cos(Ce-Se));return l.createLinearGradient(te+j*Pe,se+H*Pe,te-j*Pe,se-H*Pe)}},Cu=/^linear-gradient\((-?[\d.]+)deg,(.*?)\)$/i,mi=class UC extends Tn{constructor(){super(...arguments),this.fillOpacity=1,this.strokeOpacity=1,this.fill=UC.defaultStyles.fill,this.stroke=UC.defaultStyles.stroke,this.strokeWidth=UC.defaultStyles.strokeWidth,this.lineDash=UC.defaultStyles.lineDash,this.lineDashOffset=UC.defaultStyles.lineDashOffset,this.lineCap=UC.defaultStyles.lineCap,this.lineJoin=UC.defaultStyles.lineJoin,this.miterLimit=void 0,this.opacity=UC.defaultStyles.opacity,this.fillShadow=UC.defaultStyles.fillShadow}restoreOwnStyles(){let{defaultStyles:c}=this.constructor;Object.assign(this,c)}getGradient(c){let y;if(c instanceof pa)return c;if(c!=null&&c.startsWith("linear-gradient")&&(y=Cu.exec(c))){let I=parseFloat(y[1]),O=[],j=y[2],H=/(#[0-9a-f]+)|(rgba?\(.+?\))|([a-z]+)/gi,K;for(;K=H.exec(j);)O.push(K[0]);return new sg("rgb",O.map((Z,te)=>({color:Z,offset:te/(O.length-1)})),I)}else return}onFillChange(){this.fillGradient=this.getGradient(this.fill)}onStrokeChange(){this.strokeGradient=this.getGradient(this.stroke)}align(c,y){var j,H,K;let I=(K=(H=(j=this.layerManager)==null?void 0:j.canvas)==null?void 0:H.pixelRatio)!=null?K:1,O=Math.round(c*I)/I;return y==null?O:y===0?0:y<1?Math.ceil(y*I)/I:Math.round((y+c)*I)/I-O}fillStroke(c,y){this.renderFill(c,y),this.renderStroke(c,y)}renderFill(c,y){if(this.fill){let{globalAlpha:I}=c;this.applyFill(c),this.applyFillAlpha(c),this.applyShadow(c),this.executeFill(c,y),c.globalAlpha=I}c.shadowColor="rgba(0, 0, 0, 0)"}executeFill(c,y){y?c.fill(y):c.fill()}applyFill(c){var y,I,O;c.fillStyle=(O=(I=(y=this.fillGradient)==null?void 0:y.createGradient(c,this.getBBox()))!=null?I:typeof this.fill=="string"?this.fill:void 0)!=null?O:"black"}applyStroke(c){var y,I,O;c.strokeStyle=(O=(I=(y=this.strokeGradient)==null?void 0:y.createGradient(c,this.getBBox()))!=null?I:typeof this.stroke=="string"?this.stroke:void 0)!=null?O:"black"}applyFillAlpha(c){c.globalAlpha*=this.opacity*this.fillOpacity}applyShadow(c){var O,j;let y=(j=(O=this.layerManager)==null?void 0:O.canvas.pixelRatio)!=null?j:1,I=this.fillShadow;I!=null&&I.enabled&&(c.shadowColor=I.color,c.shadowOffsetX=I.xOffset*y,c.shadowOffsetY=I.yOffset*y,c.shadowBlur=I.blur*y)}renderStroke(c,y){if(this.stroke&&this.strokeWidth){let{globalAlpha:I}=c;this.applyStroke(c),c.globalAlpha*=this.opacity*this.strokeOpacity,c.lineWidth=this.strokeWidth,this.lineDash&&c.setLineDash(this.lineDash),this.lineDashOffset&&(c.lineDashOffset=this.lineDashOffset),this.lineCap&&(c.lineCap=this.lineCap),this.lineJoin&&(c.lineJoin=this.lineJoin),this.miterLimit!=null&&(c.miterLimit=this.miterLimit),this.executeStroke(c,y),c.globalAlpha=I}}executeStroke(c,y){y?c.stroke(y):c.stroke()}containsPoint(c,y){return this.isPointInPath(c,y)}applySvgFillAttributes(c){c.setAttribute("fill",typeof this.fill=="string"?this.fill:"none"),c.setAttribute("fill-opacity",String(this.fillOpacity))}applySvgStrokeAttributes(c){this.stroke!=null&&(c.setAttribute("stroke",typeof this.stroke=="string"?this.stroke:"none"),c.setAttribute("stroke-opacity",String(this.strokeOpacity)),c.setAttribute("stroke-width",String(this.strokeWidth))),this.lineDash!=null&&c.setAttribute("stroke-dasharray",this.lineDash.join(" "))}};mi.defaultStyles={fill:"black",stroke:void 0,strokeWidth:0,lineDash:void 0,lineDashOffset:0,lineCap:void 0,lineJoin:void 0,opacity:1,fillShadow:void 0},D([kt()],mi.prototype,"fillOpacity",2),D([kt()],mi.prototype,"strokeOpacity",2),D([kt({changeCb:l=>l.onFillChange()})],mi.prototype,"fill",2),D([kt({changeCb:l=>l.onStrokeChange()})],mi.prototype,"stroke",2),D([kt()],mi.prototype,"strokeWidth",2),D([kt()],mi.prototype,"lineDash",2),D([kt()],mi.prototype,"lineDashOffset",2),D([kt()],mi.prototype,"lineCap",2),D([kt()],mi.prototype,"lineJoin",2),D([kt()],mi.prototype,"miterLimit",2),D([kt({convertor:l=>Ae(0,l,1)})],mi.prototype,"opacity",2),D([kt({checkDirtyOnAssignment:!0})],mi.prototype,"fillShadow",2);var Wn=mi,ns=class extends Wn{constructor(l={}){super(l),this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.restoreOwnStyles()}set x(l){this.x1=l,this.x2=l}set y(l){this.y1=l,this.y2=l}get midPoint(){return{x:(this.x1+this.x2)/2,y:(this.y1+this.y2)/2}}computeBBox(){return new ft(Math.min(this.x1,this.x2),Math.min(this.y1,this.y2),Math.abs(this.x2-this.x1),Math.abs(this.y2-this.y1))}isPointInPath(l,c){return this.x1===this.x2||this.y1===this.y2?this.getBBox().clone().grow(this.strokeWidth/2).containsPoint(l,c):!1}distanceSquared(l,c){let{x1:y,y1:I,x2:O,y2:j}=this;return bl(l,c,y,I,O,j,1/0)}render(l){var K;let{ctx:c,devicePixelRatio:y}=l,{x1:I,y1:O,x2:j,y2:H}=this;if(I===j){let{strokeWidth:Z}=this,te=Math.round(I*y)/y+Math.trunc(Z*y)%2/(y*2);I=te,j=te}else if(O===H){let{strokeWidth:Z}=this,te=Math.round(O*y)/y+Math.trunc(Z*y)%2/(y*2);O=te,H=te}c.beginPath(),c.moveTo(I,O),c.lineTo(j,H),this.fillStroke(c),(K=this.fillShadow)==null||K.markClean(),super.render(l)}toSVG(){if(!this.visible)return;let l=document.createElementNS("http://www.w3.org/2000/svg","line");return l.setAttribute("x1",String(this.x1)),l.setAttribute("y1",String(this.y1)),l.setAttribute("x2",String(this.x2)),l.setAttribute("y2",String(this.y2)),this.applySvgStrokeAttributes(l),{elements:[l]}}};ns.className="Line",ns.defaultStyles=et(pe({},Wn.defaultStyles),{fill:void 0,strokeWidth:1}),D([kt()],ns.prototype,"x1",2),D([kt()],ns.prototype,"y1",2),D([kt()],ns.prototype,"x2",2),D([kt()],ns.prototype,"y2",2);function kh(l=0,c=0){return new OffscreenCanvas(l,c).getContext("2d")}var Od=class{constructor(l=5){this.maxCacheSize=l,this.store=new Map}get(l){if(!this.store.has(l))return;let c=this.store.get(l);return this.store.delete(l),this.store.set(l,c),c}has(l){return this.store.has(l)}set(l,c){if(this.store.set(l,c),this.store.size>this.maxCacheSize){let y=this.store.keys(),I=this.store.size-this.maxCacheSize;for(;I>0;){let O=y.next();O.done||this.store.delete(O.value),I--}}return c}clear(){this.store.clear()}},Cs=class{static measureText(l,c){return this.getMeasurer(c).measureText(l)}static measureLines(l,c){return this.getMeasurer(c).measureLines(l)}static getMeasurer(l){var I,O,j;let c=typeof l.font=="string"?l.font:po.toFontString(l.font),y=`${c}-${(I=l.textAlign)!=null?I:"start"}-${(O=l.textBaseline)!=null?O:"alphabetic"}`;return(j=this.instanceMap.get(y))!=null?j:this.createFontMeasurer(c,l,y)}static createFontMeasurer(l,c,y){var j,H;let I=kh();I.font=l,I.textAlign=(j=c.textAlign)!=null?j:"start",I.textBaseline=(H=c.textBaseline)!=null?H:"alphabetic";let O=new dv(I,c);return this.instanceMap.set(y,O),O}};Cs.instanceMap=new Od(10);var dv=class{constructor(l,c){var y;this.ctx=l,this.measureMap=new Od(100),c.textAlign&&(l.textAlign=c.textAlign),c.textBaseline&&(l.textBaseline=c.textBaseline),l.font=typeof c.font=="string"?c.font:po.toFontString(c.font),this.textMeasurer=new ql(I=>this.cachedCtxMeasureText(I),(y=c.textBaseline)!=null?y:"alphabetic")}textWidth(l,c){return this.textMeasurer.textWidth(l,c)}measureText(l){return this.textMeasurer.measureText(l)}measureLines(l){return this.textMeasurer.measureLines(l)}cachedCtxMeasureText(l){if(!this.measureMap.has(l)){let c=this.ctx.measureText(l);this.measureMap.set(l,{actualBoundingBoxAscent:c.actualBoundingBoxAscent,emHeightAscent:c.emHeightAscent,emHeightDescent:c.emHeightDescent,actualBoundingBoxDescent:c.actualBoundingBoxDescent,actualBoundingBoxLeft:c.actualBoundingBoxLeft,actualBoundingBoxRight:c.actualBoundingBoxRight,alphabeticBaseline:c.alphabeticBaseline,fontBoundingBoxAscent:c.fontBoundingBoxAscent,fontBoundingBoxDescent:c.fontBoundingBoxDescent,hangingBaseline:c.hangingBaseline,ideographicBaseline:c.ideographicBaseline,width:c.width})}return this.measureMap.get(l)}},po=class{static toFontString({fontSize:l=10,fontStyle:c,fontWeight:y,fontFamily:I,lineHeight:O}){let j="";return c&&(j+=`${c} `),y&&(j+=`${y} `),j+=`${l}px`,O&&(j+=`/${O}px`),j+=` ${I}`,j.trim()}static getLineHeight(l){return Math.ceil(l*this.defaultLineHeight)}static getVerticalModifier(l){switch(l){case"hanging":case"top":return 0;case"middle":return .5;case"alphabetic":case"bottom":case"ideographic":default:return 1}}};po.EllipsisChar="\u2026",po.defaultLineHeight=1.15,po.lineSplitter=/\r?\n/g;var ql=class{constructor(l,c="alphabetic"){this.measureTextFn=l,this.textBaseline=c,this.charMap=new Map}getMetrics(l){var y,I;let c=this.measureTextFn(l);return(y=c.fontBoundingBoxAscent)!=null||(c.fontBoundingBoxAscent=c.emHeightAscent),(I=c.fontBoundingBoxDescent)!=null||(c.fontBoundingBoxDescent=c.emHeightDescent),{width:c.width,height:c.actualBoundingBoxAscent+c.actualBoundingBoxDescent,lineHeight:c.fontBoundingBoxAscent+c.fontBoundingBoxDescent,offsetTop:c.actualBoundingBoxAscent,offsetLeft:c.actualBoundingBoxLeft}}getMultilineMetrics(l){var se,ge;let c=0,y=0,I=0,O=0,j=0,H=po.getVerticalModifier(this.textBaseline),K=[],Z=0,te=l.length;for(let Se of l){let Ce=this.measureTextFn(Se);(se=Ce.fontBoundingBoxAscent)!=null||(Ce.fontBoundingBoxAscent=Ce.emHeightAscent),(ge=Ce.fontBoundingBoxDescent)!=null||(Ce.fontBoundingBoxDescent=Ce.emHeightDescent),c<Ce.width&&(c=Ce.width),O<Ce.actualBoundingBoxLeft&&(O=Ce.actualBoundingBoxLeft),Z===0?(y+=Ce.actualBoundingBoxAscent,I+=Ce.actualBoundingBoxAscent):j+=Ce.fontBoundingBoxAscent,Z===te-1?y+=Ce.actualBoundingBoxDescent:j+=Ce.fontBoundingBoxDescent,K.push({text:Se,width:Ce.width,height:Ce.actualBoundingBoxAscent+Ce.actualBoundingBoxDescent,lineHeight:Ce.fontBoundingBoxAscent+Ce.fontBoundingBoxDescent,offsetTop:Ce.actualBoundingBoxAscent,offsetLeft:Ce.actualBoundingBoxLeft}),Z++}return y+=j,I+=j*H,{width:c,height:y,offsetTop:I,offsetLeft:O,lineMetrics:K}}textWidth(l,c){var y;if(c){let I=0;for(let O=0;O<l.length;O++)I+=this.textWidth(l.charAt(O));return I}return l.length>1?this.measureTextFn(l).width:(y=this.charMap.get(l))!=null?y:this.charWidth(l)}measureText(l){return this.getMetrics(l)}measureLines(l){let c=typeof l=="string"?l.split(po.lineSplitter):l;return this.getMultilineMetrics(c)}charWidth(l){let{width:c}=this.measureTextFn(l);return this.charMap.set(l,c),c}},Yl=class Tz extends Wn{constructor(){super(...arguments),this.x=0,this.y=0,this.lines=[],this.text=void 0,this.fontSize=10,this.fontFamily="sans-serif",this.textAlign=Tz.defaultStyles.textAlign,this.textBaseline=Tz.defaultStyles.textBaseline}onTextChange(){var c,y;this.lines=(y=(c=this.text)==null?void 0:c.split(`
`).map(I=>I.trim()))!=null?y:[]}static computeBBox(c,y,I,O){let{offsetTop:j,offsetLeft:H,width:K,height:Z}=Cs.measureLines(c,O);return new ft(y-H,I-j,K,Z)}computeBBox(){let{x:c,y,lines:I,textBaseline:O,textAlign:j}=this;return Tz.computeBBox(I,c,y,{font:this,textBaseline:O,textAlign:j})}isPointInPath(c,y){let I=this.getBBox();return I?I.containsPoint(c,y):!1}render(c){let{ctx:y,stats:I}=c;if(!this.lines.length||!this.layerManager)return I&&(I.nodesSkipped+=1),super.render(c);let{fill:O,stroke:j,strokeWidth:H}=this,{pixelRatio:K}=this.layerManager.canvas;if(y.font=po.toFontString(this),y.textAlign=this.textAlign,y.textBaseline=this.textBaseline,O){this.applyFill(y),y.globalAlpha*=this.opacity*this.fillOpacity;let{fillShadow:Z}=this;Z!=null&&Z.enabled&&(y.shadowColor=Z.color,y.shadowOffsetX=Z.xOffset*K,y.shadowOffsetY=Z.yOffset*K,y.shadowBlur=Z.blur*K),this.renderLines((te,se,ge)=>y.fillText(te,se,ge))}if(j&&H){this.applyStroke(y),y.lineWidth=H,y.globalAlpha*=this.opacity*this.strokeOpacity;let{lineDash:Z,lineDashOffset:te,lineCap:se,lineJoin:ge}=this;Z&&y.setLineDash(Z),te&&(y.lineDashOffset=te),se&&(y.lineCap=se),ge&&(y.lineJoin=ge),this.renderLines((Se,Ce,Pe)=>y.strokeText(Se,Ce,Pe))}super.render(c)}renderLines(c){var K;let{lines:y,x:I,y:O}=this,j=(K=this.lineHeight)!=null?K:po.getLineHeight(this.fontSize),H=(j-j*y.length)*po.getVerticalModifier(this.textBaseline);for(let Z of y)c(Z,I,O+H),H+=j}setFont(c){this.fontFamily=c.fontFamily,this.fontSize=c.fontSize,this.fontStyle=c.fontStyle,this.fontWeight=c.fontWeight}setAlign(c){this.textAlign=c.textAlign,this.textBaseline=c.textBaseline}toSVG(){var y,I,O,j,H,K,Z;if(!this.visible||!this.text)return;let c=document.createElementNS("http://www.w3.org/2000/svg","text");return this.applySvgFillAttributes(c),c.setAttribute("font-family",(I=(y=this.fontFamily)==null?void 0:y.split(",")[0])!=null?I:""),c.setAttribute("font-size",String(this.fontSize)),c.setAttribute("font-style",(O=this.fontStyle)!=null?O:""),c.setAttribute("font-weight",String((j=this.fontWeight)!=null?j:"")),c.setAttribute("text-anchor",{center:"middle",left:"start",right:"end",start:"start",end:"end"}[(H=this.textAlign)!=null?H:"start"]),c.setAttribute("alignment-baseline",{alphabetic:"alphabetic",top:"top",bottom:"bottom",hanging:"hanging",middle:"middle",ideographic:"ideographic"}[(K=this.textBaseline)!=null?K:"alphabetic"]),c.setAttribute("x",String(this.x)),c.setAttribute("y",String(this.y)),c.textContent=(Z=this.text)!=null?Z:"",{elements:[c]}}};Yl.className="Text",Yl.defaultStyles=et(pe({},Wn.defaultStyles),{textAlign:"start",fontStyle:void 0,fontWeight:void 0,fontSize:10,fontFamily:"sans-serif",textBaseline:"alphabetic"}),D([kt()],Yl.prototype,"x",2),D([kt()],Yl.prototype,"y",2),D([kt({changeCb:l=>l.onTextChange()})],Yl.prototype,"text",2),D([kt()],Yl.prototype,"fontStyle",2),D([kt()],Yl.prototype,"fontWeight",2),D([kt()],Yl.prototype,"fontSize",2),D([kt()],Yl.prototype,"fontFamily",2),D([kt()],Yl.prototype,"textAlign",2),D([kt()],Yl.prototype,"textBaseline",2),D([kt()],Yl.prototype,"lineHeight",2);var Gr=Yl,Ra=class extends Tm(Gr){},Hs=class extends Tm(Rm(Gr)){};function MI(l,c,y,I,O,j){if(l.size===0)return!1;let H=l.x,K=l.y;c!=null&&(H-=(c.x-.5)*l.size,K-=(c.y-.5)*l.size);let Z=H;H<y?Z=y:H>y+O&&(Z=y+O);let te=K;K<I?te=I:K>I+j&&(te=I+j);let se=H-Z,ge=K-te;return Math.sqrt(se*se+ge*ge)<=l.size*.5}function Qy(l,c,y,I,O){let j=l.x+l.width>c&&l.x<c+I,H=l.y+l.height>y&&l.y<y+O;return j&&H}function YA(l,c,y,I,O){return c+I<l.x+l.width&&c>l.x&&y>l.y&&y+O<l.y+l.height}function kI(l){return l!=null&&typeof l.point=="object"&&typeof l.label=="object"}var Mx={top:{x:0,y:-1},bottom:{x:0,y:1},left:{x:-1,y:0},right:{x:1,y:0},"top-left":{x:-1,y:-1},"top-right":{x:1,y:-1},"bottom-left":{x:-1,y:1},"bottom-right":{x:1,y:1}};function AI(l,c,y=5){var K,Z,te;let I=new Map,O=[],j=new Map([...l.entries()].map(([se,ge])=>[se,ge.toSorted((Se,Ce)=>Ce.point.size-Se.point.size)])),H=[...j.values()].flat();for(let[se,ge]of j.entries()){let Se=[];if((K=ge[0])!=null&&K.label){for(let Ce=0,Pe=ge.length;Ce<Pe;Ce++){let Ge=ge[Ce],{point:We,label:He,marker:Ze}=Ge,{text:it,width:qe,height:rt}=He,dt=We.size*.5,mt=0,yt=0;if(dt>0&&Ge.placement!=null){let Vi=Mx[Ge.placement];mt=(qe*.5+dt+y)*Vi.x,yt=(rt*.5+dt+y)*Vi.y}let Lt=We.x-qe*.5+mt-(((Z=Ze==null?void 0:Ze.center.x)!=null?Z:.5)-.5)*We.size,Ht=We.y-rt*.5+yt-(((te=Ze==null?void 0:Ze.center.y)!=null?te:.5)-.5)*We.size;if(!(!c||YA(c,Lt,Ht,qe,rt))||H.some(Vi=>{var Si;return MI(Vi.point,(Si=Vi.marker)==null?void 0:Si.center,Lt,Ht,qe,rt)})||O.some(Vi=>Qy(Vi,Lt,Ht,qe,rt)))continue;let Ni={index:Ce,text:it,x:Lt,y:Ht,width:qe,height:rt,datum:Ge};Se.push(Ni),O.push(Ni)}I.set(se,Se)}}return I}function DI(l,c=0){let y=[];for(let I=0;I<l.length;I++){let O=l[I],{point:{x:j,y:H},label:{text:K}}=O,{width:Z,height:te}=O.label;if(Z+=c,te+=c,y.some(se=>Qy(se,j,H,Z,te)))return!0;y.push({index:I,text:K,x:j,y:H,width:Z,height:te,datum:O})}return!1}function EI(l,c){let y=Math.max(l.length,c.length),I=new Set,O=new Set;for(let j=0;j<y;j++){let H=l[j],K=c[j];H!==K&&(O.has(K)?O.delete(K):K&&I.add(K),I.has(H)?I.delete(H):H&&O.add(H))}return{changed:I.size>0||O.size>0,added:I,removed:O}}var _d=new Intl.NumberFormat("en-US",{maximumFractionDigits:2,useGrouping:!1}),Jy=new Intl.NumberFormat("en-US",{style:"percent"});function id(l,c=2){return typeof l=="number"?uv(l,c):String(l!=null?l:"")}function nd(l){return Jy.format(l)}function uv(l,c){return c===2?_d.format(l):new Intl.NumberFormat("en-US",{maximumFractionDigits:c,useGrouping:!1}).format(l)}var eb="class-instance";function ad(l,c,y){if($t(c)){if(!$t(l)||l.length!==c.length||c.some((I,O)=>ad(l[O],I)!=null))return c}else if(ct(c)){if(!ct(l))return c;let I={},O=new Set([...Object.keys(l),...Object.keys(c)]);for(let j of O)if(!(l[j]===c[j]||y!=null&&y.includes(j)))if(typeof l[j]==typeof c[j]){let H=ad(l[j],c[j]);H!==null&&(I[j]=H)}else I[j]=c[j];return Object.keys(I).length?I:null}else if(l!==c)return c;return null}function kx(l,c){for(let y of Object.keys(l))if(l[y]!==(c==null?void 0:c[y]))return!1;return!0}function Ss(l,c){return $t(l)?l.map(y=>Ss(y,c)):ct(l)?h0(l,c):l instanceof Map?new Map(Ss(Array.from(l))):Pm(l)}function h0(l,c){let y={};for(let I of Object.keys(l))y[I]=c!=null&&c.has(I)?Pm(l[I]):Ss(l[I],c);return y}function Pm(l){return $t(l)?l.slice(0):ct(l)?pe({},l):bn(l)?new Date(l):En(l)?new RegExp(l.source,l.flags):l}function Ah(l,c,y,I,O){if($t(l)){c(l,I,O);let j=0;for(let H of l)Ah(H,c,y,I==null?void 0:I[j],O),j++}else if(ct(l)){c(l,I,O);for(let j of Object.keys(l)){if(y!=null&&y.has(j))continue;let H=l[j];Ah(H,c,y,I==null?void 0:I[j],O)}}}function Lm(l,c,y={}){let{path:I,matcherPath:O=I==null?void 0:I.replace(/(\[[0-9+]+])/i,"[]"),skip:j=[]}=y;if(l==null)throw new Error(`AG Charts - target is uninitialised: ${I!=null?I:"<root>"}`);if(c==null)return l;if(fu(l))return l.set(c);let H=l,K=tb(l);for(let Z of Object.keys(c)){if($r.has(Z))continue;let te=`${O?O+".":""}${Z}`;if(j.includes(te))continue;let se=c[Z],ge=`${I?I+".":""}${Z}`,Se=H.constructor,Ce=H[Z];try{let Pe=tb(Ce),Ge=tb(se);if(K===eb&&!(Z in l)){if(se===void 0)continue;Pi.warn(`unable to set [${ge}] in ${Se==null?void 0:Se.name} - property is unknown`);continue}if(Pe!=null&&Ge!=null&&Ge!==Pe&&(Pe!==eb||Ge!=="object")){Pi.warn(`unable to set [${ge}] in ${Se==null?void 0:Se.name} - can't apply type of [${Ge}], allowed types are: [${Pe}]`);continue}fu(Ce)?H[Z].set(se):Ge==="object"?(Ce==null&&(H[Z]={}),Lm(Ce!=null?Ce:H[Z],se,et(pe({},y),{path:ge,matcherPath:te}))):H[Z]=se}catch(Pe){Pi.warn(`unable to set [${ge}] in [${Se==null?void 0:Se.name}]; nested error is: ${Pe.message}`)}}return l}function tb(l){return l==null?null:ni(l)||bn(l)?"primitive":$t(l)?"array":Ke(l)?ct(l)?"object":eb:Yn(l)?"function":"primitive"}function Ki(l,c){let y=$t(l)?l:l.split(".");if(y.length===1){let[I]=y;return Un((O,j,H)=>O[I]=H,O=>O[I],c)}return Un((I,O,j)=>Qh(I,y,j),I=>pr(I,y),c)}function g0(l){return Un((c,y,I)=>c[l]=I)}function aa(l,c){return Un((y,I,O)=>y[l][c!=null?c:I]=O)}function Xl(l){let{newValue:c,oldValue:y,changeValue:I}=l;return Un((O,j,H,K)=>(H!==K&&(K!==void 0&&(y==null||y.call(O,K)),H!==void 0&&(c==null||c.call(O,H)),I==null||I.call(O,H,K)),H))}function mp(l){return Ls(l)}var hv="color: green",Eo="color: grey";function Om(){return Ls(()=>{})}function p0(l,c){let y=uo(c);if(y.length===0)return;let I=ka(l);for(let O of y)O in I&&(c[O]=I[O])}var XA=class{transitionRoot(l,c){this.parent?this.parent.transitionRoot(l,c):this.transition(l,c)}},gv=class ap extends XA{constructor(c,y,I){super(),this.defaultState=c,this.states=y,this.enterEach=I,this.debug=Ua.create(!0,"animation"),this.state=c,this.debug(`%c${this.constructor.name} | init -> ${c}`,hv)}transition(c,y){var se,ge,Se,Ce;if(!this.transitionChild(c,y)||this.state===ap.child||this.state===ap.parent)return;let O=this.state,j=this.states[this.state],H=j[c],K=`%c${this.constructor.name} | ${this.state} -> ${c} ->`;if(Array.isArray(H))H=H.find(Pe=>{if(!Pe.guard)return!0;let Ge=Pe.guard(y);return Ge||this.debug(`${K} (guarded)`,Pe.target,Eo),Ge});else if(typeof H=="object"&&!(H instanceof ap)&&H.guard&&!H.guard(y)){this.debug(`${K} (guarded)`,H.target,Eo);return}if(!H){this.debug(`${K} ${this.state}`,Eo);return}let Z=this.getDestinationState(H),te=Z===this.state?void 0:j.onExit;this.debug(`${K} ${Z}`,hv),this.state=Z,typeof H=="function"?H(y):typeof H=="object"&&!(H instanceof ap)&&((se=H.action)==null||se.call(H,y)),te==null||te(),(ge=this.enterEach)==null||ge.call(this,O,Z),Z!==O&&Z!==ap.child&&Z!==ap.parent&&((Ce=(Se=this.states[Z]).onEnter)==null||Ce.call(Se,O,y))}transitionAsync(c,y){setTimeout(()=>{this.transition(c,y)},0)}is(c){return this.state===ap.child&&this.childState?this.childState.is(c):this.state===c}resetHierarchy(){this.debug(`%c${this.constructor.name} | ${this.state} -> [resetHierarchy] -> ${this.defaultState}`,"color: green"),this.state=this.defaultState}transitionChild(c,y){var I,O;return this.state!==ap.child||!this.childState||(p0(this,this.childState),this.childState.transition(c,y),!this.childState.is(ap.parent))?!0:(this.debug(`%c${this.constructor.name} | ${this.state} -> ${c} -> ${this.defaultState}`,hv),this.state=this.defaultState,(O=(I=this.states[this.state]).onEnter)==null||O.call(I),this.childState.resetHierarchy(),!1)}getDestinationState(c){let y=this.state;return typeof c=="string"?y=c:c instanceof ap?(this.childState=c,this.childState.parent=this,y=ap.child):typeof c=="object"&&(c.target instanceof ap?(this.childState=c.target,this.childState.parent=this,y=ap.child):c.target!=null&&(y=c.target)),y}};gv.child="__child",gv.parent="__parent";var Io=gv,ZA=class extends XA{constructor(...l){super(),this.stateMachines=l;for(let c of l)c.parent=this}transition(l,c){for(let y of this.stateMachines)p0(this,y),y.transition(l,c)}transitionAsync(l,c){for(let y of this.stateMachines)p0(this,y),y.transitionAsync(l,c)}};function ib(){let l=new Map;return c=>{let y=l.get(c);return y?(l.set(c,y+1),`${c}_${y}`):(l.set(c,1),c)}}var m0=class{static wrapText(l,c){return this.wrapLines(l,c).join(`
`)}static wrapLines(l,c){let y=this.textWrap(l,c);return c.overflow==="hide"&&y.some(I=>I.endsWith(po.EllipsisChar))?[]:y}static appendEllipsis(l){return l.replace(/[.,]{1,5}$/,"")+po.EllipsisChar}static truncateLine(l,c,y,I){let O=c.textWidth(po.EllipsisChar),j=0,H=0;for(;H<l.length;H++){let K=c.textWidth(l.charAt(H));if(j+K>y)break;j+=K}if(l.length===H&&(!I||j+O<=y))return I?l+po.EllipsisChar:l;for(l=l.slice(0,H).trimEnd();l.length&&c.textWidth(l)+O>y;)l=l.slice(0,-1).trimEnd();return l+po.EllipsisChar}static textWrap(l,c){let y=l.split(po.lineSplitter),I=Cs.getMeasurer(c);if(c.textWrap==="never")return y.map(K=>this.truncateLine(K.trimEnd(),I,c.maxWidth));let O=[],j=c.textWrap==="hyphenate",H=c.textWrap==null||c.textWrap==="on-space";for(let K of y){let Z=K.trimEnd();if(Z===""){O.push(Z);continue}for(let te=0,se=0,ge=0;te<Z.length;te++){let Se=Z.charAt(te);if(se+=I.textWidth(Se),Se===" "&&(ge=te),se>c.maxWidth){if(te===0)break;let Ce=I.textWidth(Z.slice(0,te+1));if(Ce<=c.maxWidth){se=Ce;continue}if(ge){let We=this.getWordAt(Z,ge+1),He=I.textWidth(We);if(He<=c.maxWidth){O.push(Z.slice(0,ge).trimEnd()),Z=Z.slice(ge).trimStart(),te=-1,se=0,ge=0;continue}else H&&He>c.maxWidth&&O.push(Z.slice(0,ge).trimEnd(),this.truncateLine(Z.slice(ge).trimStart(),I,c.maxWidth,!0))}else H&&O.push(this.truncateLine(Z,I,c.maxWidth,!0));if(H){Z="";break}let Pe=j?"-":"",Ge=Z.slice(0,te).trim();for(;Ge.length&&I.textWidth(Ge+Pe)>c.maxWidth;)Ge=Ge.slice(0,-1).trimEnd();if(O.push(Ge+Pe),!Ge.length){Z="";break}Z=Z.slice(Ge.length).trimStart(),te=-1,se=0,ge=0}}Z&&O.push(Z)}return this.avoidOrphans(O,I,c),this.clipLines(O,I,c)}static getWordAt(l,c){let y=l.indexOf(" ",c);return y===-1?l.slice(c):l.slice(c,y)}static clipLines(l,c,y){if(!y.maxHeight)return l;let{height:I,lineMetrics:O}=c.measureLines(l);if(I<=y.maxHeight)return l;for(let j=0,H=0;j<O.length;j++){let{lineHeight:K}=O[j];if(H+=K,H>y.maxHeight){if(y.overflow==="hide")return[];let Z=l.slice(0,j||1),te=Z.pop();return Z.concat(this.truncateLine(te,c,y.maxWidth,!0))}}return l}static avoidOrphans(l,c,y){if(y.avoidOrphans===!1||l.length<2)return;let{length:I}=l,O=l[I-1],j=l[I-2];if(j.length<O.length)return;let H=j.lastIndexOf(" ");if(H===-1||H===j.indexOf(" ")||O.includes(" "))return;let K=j.slice(H+1);c.textWidth(O+K)<=y.maxWidth&&(l[I-2]=j.slice(0,H),l[I-1]=K+" "+O)}},mo=class extends un{constructor(){super(...arguments),this.id=U(this),this.node=new Ra({zIndex:1}).setProperties({textAlign:"center",pointerEvents:1}),this.enabled=!1,this.textAlign="center",this.fontSize=10,this.fontFamily="sans-serif",this.wrapping="always",this.padding=0,this.layoutStyle="block",this.truncated=!1}registerInteraction(l,c){return l.layoutManager.addListener("layout:complete",()=>this.updateA11yText(l,c))}computeTextWrap(l,c){var Z,te;let{text:y,padding:I,wrapping:O}=this,j=Math.min((Z=this.maxWidth)!=null?Z:1/0,l)-I*2,H=(te=this.maxHeight)!=null?te:c-I*2;if(!isFinite(j)&&!isFinite(H)){this.node.text=y;return}let K=m0.wrapText(y!=null?y:"",{maxWidth:j,maxHeight:H,font:this,textWrap:O});this.node.text=K,this.truncated=K.includes(po.EllipsisChar)}updateA11yText(l,c){var I,O;let{proxyInteractionService:y}=l;if(this.enabled&&this.text){let j=fr.toCanvas(this.node);if(j){let{id:H}=this;(I=this.proxyText)!=null||(this.proxyText=y.createProxyElement({type:"text",domManagerId:H,where:c})),this.proxyText.textContent=this.text,this.proxyText.setBounds(j),this.proxyText.addListener("mousemove",K=>this.handleMouseMove(l,K)),this.proxyText.addListener("mouseleave",K=>this.handleMouseLeave(l,K))}}else(O=this.proxyText)==null||O.destroy(),this.proxyText=void 0}handleMouseMove(l,c){if(c!=null&&this.enabled&&this.node.visible&&this.truncated){let{x:y,y:I}=fr.toCanvas(this.node),O=c.sourceEvent.offsetX+y,j=c.sourceEvent.offsetY+I,H={type:"hover",canvasX:O,canvasY:j};l.tooltipManager.updateTooltip(this.id,{canvasX:O,canvasY:j,lastPointerEvent:H,showArrow:!1},{title:this.text})}}handleMouseLeave(l,c){l.tooltipManager.removeTooltip(this.id)}};mo.SMALL_PADDING=10,mo.LARGE_PADDING=20,D([Je(Zi),aa("node","visible")],mo.prototype,"enabled",2),D([Je(ui,{optional:!0}),aa("node")],mo.prototype,"text",2),D([Je(a0,{optional:!0}),aa("node")],mo.prototype,"textAlign",2),D([Je(mh,{optional:!0}),aa("node")],mo.prototype,"fontStyle",2),D([Je(fh,{optional:!0}),aa("node")],mo.prototype,"fontWeight",2),D([Je(Fi),aa("node")],mo.prototype,"fontSize",2),D([Je(ui),aa("node")],mo.prototype,"fontFamily",2),D([Je(na,{optional:!0}),aa("node","fill")],mo.prototype,"color",2),D([Je(Fi,{optional:!0})],mo.prototype,"spacing",2),D([Je(Fi,{optional:!0})],mo.prototype,"maxWidth",2),D([Je(Fi,{optional:!0})],mo.prototype,"maxHeight",2),D([Je(Hy)],mo.prototype,"wrapping",2),D([Je(Fi)],mo.prototype,"padding",2),D([Je(ui)],mo.prototype,"layoutStyle",2);var Dh=class extends Wn{constructor(l={}){super(l),this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.startLine=!1,this.endLine=!1,this.isRange=!1,this.restoreOwnStyles()}computeBBox(){return new ft(this.x1,this.y1,this.x2-this.x1,this.y2-this.y1)}isPointInPath(l,c){return!1}render(l){var Ge;let{ctx:c}=l,{x1:y,y1:I,x2:O,y2:j}=this;y=this.align(y),I=this.align(I),O=this.align(O),j=this.align(j);let{fill:H,opacity:K,isRange:Z}=this;if(!!(Z&&H)){let{fillOpacity:We}=this;this.applyFill(c),c.globalAlpha=K*We,c.beginPath(),c.moveTo(y,I),c.lineTo(O,I),c.lineTo(O,j),c.lineTo(y,j),c.closePath(),c.fill()}let{stroke:se,strokeWidth:ge,startLine:Se,endLine:Ce}=this;if(!!((Se||Ce)&&se&&ge)){let{strokeOpacity:We,lineDash:He,lineDashOffset:Ze,lineCap:it,lineJoin:qe}=this;this.applyStroke(c),c.globalAlpha=K*We,c.lineWidth=ge,He&&c.setLineDash(He),Ze&&(c.lineDashOffset=Ze),it&&(c.lineCap=it),qe&&(c.lineJoin=qe),c.beginPath(),Se&&(c.moveTo(y,I),c.lineTo(O,I)),Ce&&(c.moveTo(O,j),c.lineTo(y,j)),c.stroke()}(Ge=this.fillShadow)==null||Ge.markClean(),super.render(l)}};Dh.className="Range",Dh.defaultStyles=et(pe({},Wn.defaultStyles),{strokeWidth:1}),D([kt()],Dh.prototype,"x1",2),D([kt()],Dh.prototype,"y1",2),D([kt()],Dh.prototype,"x2",2),D([kt()],Dh.prototype,"y2",2),D([kt()],Dh.prototype,"startLine",2),D([kt()],Dh.prototype,"endLine",2),D([kt()],Dh.prototype,"isRange",2);var Xo=class extends un{constructor(){super(...arguments),this.enabled=!0,this.fontSize=12,this.fontFamily="Verdana, sans-serif"}getFont(){return po.toFontString(this)}};D([Je(Zi)],Xo.prototype,"enabled",2),D([Je(na,{optional:!0})],Xo.prototype,"color",2),D([Je(mh,{optional:!0})],Xo.prototype,"fontStyle",2),D([Je(fh,{optional:!0})],Xo.prototype,"fontWeight",2),D([Je(Fi)],Xo.prototype,"fontSize",2),D([Je(ui)],Xo.prototype,"fontFamily",2),D([Je(no,{optional:!0})],Xo.prototype,"formatter",2);function nb(l){let{parallelFlipRotation:c=0,regularFlipRotation:y=0}=l,I=l.rotation?ha($e(l.rotation)):0,O=!I&&c>=0&&c<=Math.PI?-1:1,j=!I&&y>=0&&y<=Math.PI?-1:1,H=0;return l.parallel?H=O*Math.PI/2:j===-1&&(H=Math.PI),{configuredRotation:I,defaultRotation:H,parallelFlipFlag:O,regularFlipFlag:j}}function _m(l,c){return isNaN(l)?c?0:10:l}function od(l,c,y,I){return l&&!c?y*I===-1?"hanging":"bottom":"middle"}function Su(l,c,y,I,O){let j=c>0&&c<=Math.PI,H=y>0&&y<=Math.PI,K=j||H?-1:1;if(l)if(c||y){if(I*K===-1)return"end"}else return"center";else if(I*O===-1)return"end";return"start"}function $A(l,c,y,I){let O=[];for(let{tickLabel:j,translationY:H}of l){if(!j)continue;let{width:K,height:Z}=I.measureLines(j),te=new ft(c,H,K,Z),se=new ft(c,H,0,0);y.transformBBox(se,te);let{x:ge,y:Se}=te;O.push({point:{x:ge,y:Se},label:{text:j,width:K,height:Z}})}return O}function QA(l){return l!=null&&Object.hasOwn(l,"toString")&&ht(l.toString())}function JA(l){return l!=null&&Object.hasOwn(l,"valueOf")&&_t(l.valueOf())}function Eh(l){return _t(l)||zi(l)||JA(l)}function eD(l,c){return l!=null&&(!c||Eh(l))}function f0(l){return QA(l)&&Object.hasOwn(l,"id")?l.id:l}var Fm=l=>l==="value"?xa((c,y)=>y.target.type==="line",c=>c.target.type==="range"?"crossLine type 'range' to have a 'range' property instead of 'value'":"crossLine property 'type' to be 'line'"):xa((c,y)=>y.target.type==="range",c=>c.target.type==="line"?"crossLine type 'line' to have a 'value' property instead of 'range'":"crossLine property 'type' to be 'range'"),Ax=(l,c,y,I,O)=>{var Ce;let j=l==="line"&&c!==void 0,H=l==="range"&&y!==void 0;if(!j&&!H)return!0;let[K,Z]=y!=null?y:[c,void 0],te=io.is(I)||Vs.is(I),se=eD(K,te)&&!isNaN(I.convert(K)),ge=eD(Z,te)&&!isNaN(I.convert(Z));if(j&&se||H&&se&&ge)return(Ce=O==null?void 0:O())!=null?Ce:!0;let Se=["Expecting crossLine"];return H?(se||Se.push(`range start ${vu(K)}`),ge||Se.push(`${se?"":"and "}range end ${vu(Z)}`)):Se.push(`value ${vu(K)}`),Se.push("to match the axis scale domain."),Pi.warnOnce(Se.join(" ")),!1},tD={top:{xTranslationDirection:0,yTranslationDirection:-1},bottom:{xTranslationDirection:0,yTranslationDirection:1},left:{xTranslationDirection:-1,yTranslationDirection:0},right:{xTranslationDirection:1,yTranslationDirection:0},"top-left":{xTranslationDirection:1,yTranslationDirection:-1},"top-right":{xTranslationDirection:-1,yTranslationDirection:-1},"bottom-left":{xTranslationDirection:1,yTranslationDirection:1},"bottom-right":{xTranslationDirection:-1,yTranslationDirection:1},inside:{xTranslationDirection:0,yTranslationDirection:0},"inside-left":{xTranslationDirection:1,yTranslationDirection:0},"inside-right":{xTranslationDirection:-1,yTranslationDirection:0},"inside-top":{xTranslationDirection:0,yTranslationDirection:1},"inside-bottom":{xTranslationDirection:0,yTranslationDirection:-1},"inside-top-left":{xTranslationDirection:1,yTranslationDirection:1},"inside-bottom-left":{xTranslationDirection:1,yTranslationDirection:-1},"inside-top-right":{xTranslationDirection:-1,yTranslationDirection:1},"inside-bottom-right":{xTranslationDirection:-1,yTranslationDirection:-1}},Fd={top:{xTranslationDirection:1,yTranslationDirection:0},bottom:{xTranslationDirection:-1,yTranslationDirection:0},left:{xTranslationDirection:0,yTranslationDirection:-1},right:{xTranslationDirection:0,yTranslationDirection:1},"top-left":{xTranslationDirection:-1,yTranslationDirection:-1},"top-right":{xTranslationDirection:-1,yTranslationDirection:1},"bottom-left":{xTranslationDirection:1,yTranslationDirection:-1},"bottom-right":{xTranslationDirection:1,yTranslationDirection:1},inside:{xTranslationDirection:0,yTranslationDirection:0},"inside-left":{xTranslationDirection:0,yTranslationDirection:1},"inside-right":{xTranslationDirection:0,yTranslationDirection:-1},"inside-top":{xTranslationDirection:-1,yTranslationDirection:0},"inside-bottom":{xTranslationDirection:1,yTranslationDirection:0},"inside-top-left":{xTranslationDirection:-1,yTranslationDirection:1},"inside-bottom-left":{xTranslationDirection:1,yTranslationDirection:1},"inside-top-right":{xTranslationDirection:-1,yTranslationDirection:-1},"inside-bottom-right":{xTranslationDirection:1,yTranslationDirection:-1}};function ab({yDirection:l,padding:c=0,position:y="top",bbox:I}){let O=l?tD:Fd,{xTranslationDirection:j,yTranslationDirection:H}=O[y],K=j*(c+I.width/2),Z=H*(c+I.height/2);return{xTranslation:K,yTranslation:Z}}function Nd({yDirection:l,bbox:c,padding:y=0,position:I="top"}){let O={};return I.startsWith("inside")||(I==="top"&&!l?O.top=y+c.height:I==="bottom"&&!l?O.bottom=y+c.height:I==="left"&&l?O.left=y+c.width:I==="right"&&l&&(O.right=y+c.width)),O}var ob=({direction:l,xEnd:c,yStart:y,yEnd:I})=>l==="y"?{x:c/2,y}:{x:c,y:isNaN(I)?y:(y+I)/2},iD=({direction:l,xStart:c,xEnd:y,yStart:I,yEnd:O})=>l==="y"?{x:c,y:isNaN(O)?I:(I+O)/2}:{x:y/2,y:I},v0=({direction:l,xEnd:c,yStart:y,yEnd:I})=>l==="y"?{x:c,y:isNaN(I)?y:(y+I)/2}:{x:c/2,y:isNaN(I)?y:I},Nm=({direction:l,xStart:c,xEnd:y,yStart:I,yEnd:O})=>l==="y"?{x:y/2,y:isNaN(O)?I:O}:{x:c,y:isNaN(O)?I:(I+O)/2},_P=({xEnd:l,yStart:c,yEnd:y})=>({x:l/2,y:isNaN(y)?c:(c+y)/2}),y0=({direction:l,xStart:c,xEnd:y,yStart:I})=>l==="y"?{x:c/2,y:I}:{x:y,y:I},Zo=({direction:l,xStart:c,yStart:y,yEnd:I})=>l==="y"?{x:c,y:isNaN(I)?y:I}:{x:c,y},pv=({direction:l,xEnd:c,yStart:y,yEnd:I})=>l==="y"?{x:c,y}:{x:c,y:isNaN(I)?y:I},Dx=({direction:l,xStart:c,xEnd:y,yStart:I,yEnd:O})=>l==="y"?{x:y,y:isNaN(O)?I:O}:{x:c,y:isNaN(O)?I:O},wu={top:{c:ob},bottom:{c:Nm},left:{c:iD},right:{c:v0},"top-left":{c:y0},"top-right":{c:pv},"bottom-left":{c:Zo},"bottom-right":{c:Dx},inside:{c:_P},"inside-left":{c:iD},"inside-right":{c:v0},"inside-top":{c:ob},"inside-bottom":{c:Nm},"inside-top-left":{c:y0},"inside-bottom-left":{c:Zo},"inside-top-right":{c:pv},"inside-bottom-right":{c:Dx}},b0=wa(["top","left","right","bottom","top-left","top-right","bottom-left","bottom-right","inside","inside-left","inside-right","inside-top","inside-bottom","inside-top-left","inside-bottom-left","inside-top-right","inside-bottom-right"],"crossLine label position"),Cl=class extends un{constructor(){super(...arguments),this.fontSize=14,this.fontFamily="Verdana, sans-serif",this.padding=5,this.color="rgba(87, 87, 87, 1)"}};D([Je(Zi,{optional:!0})],Cl.prototype,"enabled",2),D([Je(ui,{optional:!0})],Cl.prototype,"text",2),D([Je(mh,{optional:!0})],Cl.prototype,"fontStyle",2),D([Je(fh,{optional:!0})],Cl.prototype,"fontWeight",2),D([Je(Fi)],Cl.prototype,"fontSize",2),D([Je(ui)],Cl.prototype,"fontFamily",2),D([Je(Vn)],Cl.prototype,"padding",2),D([Je(na,{optional:!0})],Cl.prototype,"color",2),D([Je(b0,{optional:!0})],Cl.prototype,"position",2),D([Je(Vn,{optional:!0})],Cl.prototype,"rotation",2),D([Je(Zi,{optional:!0})],Cl.prototype,"parallel",2);var Ws=class extends un{constructor(){super(),this.id=U(this),this.label=new Cl,this.scale=void 0,this.clippedRange=[-1/0,1/0],this.gridLength=0,this.sideFlag=-1,this.parallelFlipRotation=0,this.regularFlipRotation=0,this.direction="x",this.rangeGroup=new Mn({name:this.id}),this.lineGroup=new Mn({name:this.id}),this.labelGroup=new Mn({name:this.id}),this.crossLineRange=new Dh,this.crossLineLabel=new Hs,this.labelPoint=void 0,this.data=[],this.startLine=!1,this.endLine=!1,this.isRange=!1,this._isRange=void 0,this.lineGroup.append(this.crossLineRange),this.labelGroup.append(this.crossLineLabel),this.crossLineRange.pointerEvents=1}update(l){let{enabled:c,data:y,type:I,value:O,range:j,scale:H}=this;if(!I||!H||!c||!l||!Ax(I,O,j,H)||y.length===0){this.rangeGroup.visible=!1,this.lineGroup.visible=!1,this.labelGroup.visible=!1;return}this.rangeGroup.visible=l,this.lineGroup.visible=l,this.labelGroup.visible=l,this.updateNodes();let{isRange:K}=this;K!==this._isRange&&(K?this.rangeGroup.appendChild(this.crossLineRange):this.lineGroup.appendChild(this.crossLineRange)),this._isRange=K}calculateLayout(l,c){var mt,yt,Lt;if(!l)return;let{scale:y,gridLength:I,sideFlag:O,direction:j,label:{position:H="top"},clippedRange:K,strokeWidth:Z=0}=this;if(this.data=[],!y)return;let te=(mt=y.bandwidth)!=null?mt:0,se=(yt=y.step)!=null?yt:0,ge=(c?-1:1)*(y instanceof Wl?(se-te)/2:0),[Se,Ce]=[0,O*I],[Pe,Ge]=this.getRange(),We=Ge===void 0&&Vs.is(y)?te/2+ge:0,[He,Ze]=[Number(y.convert(Pe,!0))-ge+We,y.convert(Ge,!0)+te+ge];He=Ne(He,K),Ze=Ne(Ze,K),[Pe,Ge]=[Number(y.convert(Pe))+We,y.convert(Ge)+te];let it=(Pe===He||Ge===Ze||He!==Ze)&&Math.abs(Ze-He)>0;if(it&&He>Ze&&([He,Ze]=[Ze,He],[Pe,Ge]=[Ge,Pe]),Pe-ge>=He&&(Pe-=ge),Ge+ge<=Ze&&(Ge+=ge),this.isRange=it,this.startLine=Z>0&&Pe>=He&&Pe<=He+ge,this.endLine=Z>0&&Ge>=Ze-te-ge&&Ge<=Ze,!it&&!this.startLine&&!this.endLine||(this.data=[He,Ze],!this.label.enabled))return;let{c:qe=ob}=(Lt=wu[H])!=null?Lt:{},{x:rt,y:dt}=qe({direction:j,xStart:Se,xEnd:Ce,yStart:He,yEnd:Ze});this.labelPoint={x:rt,y:dt}}updateNodes(){this.updateRangeNode(),this.label.enabled&&(this.updateLabel(),this.positionLabel())}updateRangeNode(){var Se;let{crossLineRange:l,sideFlag:c,gridLength:y,data:I,startLine:O,endLine:j,isRange:H,fill:K,fillOpacity:Z,stroke:te,strokeWidth:se,lineDash:ge}=this;l.x1=0,l.x2=c*y,l.y1=I[0],l.y2=I[1],l.startLine=O,l.endLine=j,l.isRange=H,l.fill=K,l.fillOpacity=Z!=null?Z:1,l.stroke=te,l.strokeWidth=se!=null?se:1,l.strokeOpacity=(Se=this.strokeOpacity)!=null?Se:1,l.lineDash=ge}updateLabel(){let{crossLineLabel:l,label:c}=this;c.text&&(l.fontStyle=c.fontStyle,l.fontWeight=c.fontWeight,l.fontSize=c.fontSize,l.fontFamily=c.fontFamily,l.fill=c.color,l.text=c.text)}positionLabel(){let{crossLineLabel:l,labelPoint:{x:c=void 0,y=void 0}={},label:{parallel:I,rotation:O,position:j="top",padding:H=0},direction:K,parallelFlipRotation:Z,regularFlipRotation:te}=this;if(c===void 0||y===void 0)return;let{defaultRotation:se,configuredRotation:ge}=nb({rotation:O,parallel:I,regularFlipRotation:te,parallelFlipRotation:Z});l.rotation=se+ge,l.textBaseline="middle",l.textAlign="center";let Se=l.getBBox();if(!Se)return;let Ce=K==="y",{xTranslation:Pe,yTranslation:Ge}=ab({yDirection:Ce,padding:H,position:j,bbox:Se});l.translationX=c+Pe,l.translationY=y+Ge}getRange(){var H;let{value:l,range:c,scale:y}=this,I=io.is(y)||Vs.is(y),O=(H=c==null?void 0:c[0])!=null?H:l,j=c==null?void 0:c[1];return!I&&j===void 0&&(j=O),I&&O===j&&(j=void 0),[O,j]}computeLabelBBox(){let{label:l}=this;if(!l.enabled)return;let c=new Hs;c.fontFamily=l.fontFamily,c.fontSize=l.fontSize,c.fontStyle=l.fontStyle,c.fontWeight=l.fontWeight,c.text=l.text;let{labelPoint:{x:y=void 0,y:I=void 0}={},label:{parallel:O,rotation:j,position:H="top",padding:K=0},direction:Z,parallelFlipRotation:te,regularFlipRotation:se}=this;if(y===void 0||I===void 0)return;let{configuredRotation:ge}=nb({rotation:j,parallel:O,regularFlipRotation:se,parallelFlipRotation:te});c.rotation=ge,c.textBaseline="middle",c.textAlign="center";let Se=c.getBBox();if(!Se)return;let Ce=Z==="y",{xTranslation:Pe,yTranslation:Ge}=ab({yDirection:Ce,padding:K,position:H,bbox:Se});return c.x=y+Pe,c.y=I+Ge,c.getBBox()}calculatePadding(l){var te,se,ge,Se,Ce,Pe,Ge,We;let{isRange:c,startLine:y,endLine:I,direction:O,label:{padding:j=0,position:H="top"}}=this;if(!c&&!y&&!I)return;let K=this.computeLabelBBox();if((K==null?void 0:K.x)==null||(K==null?void 0:K.y)==null)return;let Z=Nd({yDirection:O==="y",padding:j,position:H,bbox:K});l.left=Math.max((te=l.left)!=null?te:0,(se=Z.left)!=null?se:0),l.right=Math.max((ge=l.right)!=null?ge:0,(Se=Z.right)!=null?Se:0),l.top=Math.max((Ce=l.top)!=null?Ce:0,(Pe=Z.top)!=null?Pe:0),l.bottom=Math.max((Ge=l.bottom)!=null?Ge:0,(We=Z.bottom)!=null?We:0)}};Ws.className="CrossLine",D([Je(Zi,{optional:!0})],Ws.prototype,"enabled",2),D([Je(wa(["range","line"],"a crossLine type"),{optional:!0})],Ws.prototype,"type",2),D([Je(Ld(Fm("range"),nv.restrict({length:2})),{optional:!0})],Ws.prototype,"range",2),D([Je(Fm("value"),{optional:!0})],Ws.prototype,"value",2),D([Je(na,{optional:!0})],Ws.prototype,"fill",2),D([Je(Ia,{optional:!0})],Ws.prototype,"fillOpacity",2),D([Je(na,{optional:!0})],Ws.prototype,"stroke",2),D([Je(Vn,{optional:!0})],Ws.prototype,"strokeWidth",2),D([Je(Ia,{optional:!0})],Ws.prototype,"strokeOpacity",2),D([Je(qo,{optional:!0})],Ws.prototype,"lineDash",2),D([Je(Gi)],Ws.prototype,"label",2);var nD=(l=>(l[l.CHART_BACKGROUND=0]="CHART_BACKGROUND",l[l.AXIS_GRID=1]="AXIS_GRID",l[l.AXIS=2]="AXIS",l[l.SERIES_CROSSLINE_RANGE=3]="SERIES_CROSSLINE_RANGE",l[l.SERIES_LAYER=4]="SERIES_LAYER",l[l.AXIS_FOREGROUND=5]="AXIS_FOREGROUND",l[l.SERIES_CROSSHAIR=6]="SERIES_CROSSHAIR",l[l.SERIES_CROSSLINE_LINE=7]="SERIES_CROSSLINE_LINE",l[l.SERIES_ANNOTATION=8]="SERIES_ANNOTATION",l[l.CHART_ANNOTATION=9]="CHART_ANNOTATION",l[l.CHART_ANNOTATION_FOCUSED=10]="CHART_ANNOTATION_FOCUSED",l[l.STATUS_BAR=11]="STATUS_BAR",l[l.SERIES_LABEL=12]="SERIES_LABEL",l[l.LEGEND=13]="LEGEND",l[l.NAVIGATOR=14]="NAVIGATOR",l[l.FOREGROUND=15]="FOREGROUND",l))(nD||{}),II=["stroke","lineDash"],FP=Hn(l=>Ke(l)&&Object.keys(l).every(c=>II.includes(c)),"objects with gridline style properties such as 'stroke' or 'lineDash'"),C0=class{constructor(){this.enabled=!0,this.width=1,this.style=[{stroke:void 0,lineDash:[]}]}};D([Je(Zi)],C0.prototype,"enabled",2),D([Je(Fi)],C0.prototype,"width",2),D([Je(FP)],C0.prototype,"style",2);function lg(l,c=[void 0]){return Un((y,I,O)=>c.includes(O)?Yn(l)?l(O):l:O)}var aD={};M(aD,{TimeInterval:()=>Ec,day:()=>Gn,friday:()=>ev,hour:()=>Pd,millisecond:()=>vs,minute:()=>Fa,monday:()=>IP,month:()=>zn,saturday:()=>tv,second:()=>Hi,sunday:()=>wm,thursday:()=>ax,tuesday:()=>TP,utcDay:()=>sb,utcHour:()=>rb,utcMinute:()=>Ex,utcMonth:()=>lb,utcYear:()=>xu,wednesday:()=>pI,year:()=>ed});function NP(l){return Math.floor(l.getTime()/ar)}function TI(l){return new Date(l*ar)}var Ex=new Ns(NP,TI);function S0(l){return Math.floor(l.getTime()/Dc)}function mv(l){return new Date(l*Dc)}var rb=new Ns(S0,mv);function fp(l){return Math.floor(l.getTime()/ul)}function Rc(l){let c=new Date(0);return c.setUTCDate(c.getUTCDate()+l),c.setUTCHours(0,0,0,0),c}var sb=new Ns(fp,Rc);function fv(l){return l.getUTCFullYear()*12+l.getUTCMonth()}function zP(l){let c=Math.floor(l/12),y=l-c*12;return new Date(Date.UTC(c,y,1))}var lb=new Ns(fv,zP);function oD(l){return l.getUTCFullYear()}function Ix(l){let c=new Date;return c.setUTCFullYear(l),c.setUTCMonth(0,1),c.setUTCHours(0,0,0,0),c}var xu=new Ns(oD,Ix),rD=xa(l=>_t(l)&&l>0||l instanceof Ec,"a non-zero positive Number value or, for a time axis, a Time Interval such as 'agCharts.time.month'"),rd=class extends un{constructor(){super(...arguments),this.minSpacing=NaN,this.maxSpacing=NaN}};D([Je(rD,{optional:!0})],rd.prototype,"step",2),D([Je(nv,{optional:!0})],rd.prototype,"values",2),D([Je(o0),lg(NaN)],rd.prototype,"minSpacing",2),D([Je(sx),lg(NaN)],rd.prototype,"maxSpacing",2);var jr=class extends un{constructor(){super(...arguments),this.enabled=!0,this.fontSize=12,this.fontFamily="Verdana, sans-serif",this.spacing=5,this.minSpacing=NaN,this.color="#575757",this.avoidCollisions=!0,this.mirrored=!1,this.parallel=!1}getSideFlag(){return this.mirrored?1:-1}};D([Je(Zi)],jr.prototype,"enabled",2),D([Je(mh,{optional:!0})],jr.prototype,"fontStyle",2),D([Je(fh,{optional:!0})],jr.prototype,"fontWeight",2),D([Je(Vn.restrict({min:1}))],jr.prototype,"fontSize",2),D([Je(ui)],jr.prototype,"fontFamily",2),D([Je(Fi)],jr.prototype,"spacing",2),D([Je(ei),lg(NaN)],jr.prototype,"minSpacing",2),D([Je(na,{optional:!0})],jr.prototype,"color",2),D([Je(Vn,{optional:!0})],jr.prototype,"rotation",2),D([Je(Zi)],jr.prototype,"avoidCollisions",2),D([Je(Zi)],jr.prototype,"mirrored",2),D([Je(Zi)],jr.prototype,"parallel",2),D([Je(no,{optional:!0})],jr.prototype,"itemStyler",2),D([Je(no,{optional:!0})],jr.prototype,"formatter",2),D([Je(ui,{optional:!0})],jr.prototype,"format",2);var vv=class{constructor(){this.enabled=!0,this.width=1,this.stroke=void 0}};D([Je(Zi)],vv.prototype,"enabled",2),D([Je(Fi)],vv.prototype,"width",2),D([Je(na,{optional:!0})],vv.prototype,"stroke",2);var Mu=class extends un{constructor(){super(...arguments),this.enabled=!0,this.width=1,this.size=6}};D([Je(Zi)],Mu.prototype,"enabled",2),D([Je(Fi)],Mu.prototype,"width",2),D([Je(Fi)],Mu.prototype,"size",2),D([Je(na,{optional:!0})],Mu.prototype,"stroke",2);var zd=class extends un{constructor(){super(...arguments),this.caption=new mo,this.enabled=!1,this.spacing=mo.SMALL_PADDING,this.fontSize=10,this.fontFamily="sans-serif",this.wrapping="always"}};D([Je(Zi)],zd.prototype,"enabled",2),D([Je(ui,{optional:!0})],zd.prototype,"text",2),D([Je(Fi,{optional:!0})],zd.prototype,"spacing",2),D([Je(mh,{optional:!0})],zd.prototype,"fontStyle",2),D([Je(fh,{optional:!0})],zd.prototype,"fontWeight",2),D([Je(Fi)],zd.prototype,"fontSize",2),D([Je(ui)],zd.prototype,"fontFamily",2),D([Je(na,{optional:!0})],zd.prototype,"color",2),D([Je(Hy)],zd.prototype,"wrapping",2),D([Je(no,{optional:!0})],zd.prototype,"formatter",2);function cg(l){let[c,y]=Re(l.range),I=Math.floor(c),O=Math.ceil(y);return{min:I,max:O,visible:I!==O}}var cb=Math.PI*2,vr=cb/2;function Zl(l,c){return Math.abs(c-l)<vr?c:l>c?c+cb:c-cb}function Tx(l){let c=(H,K)=>{let[Z=l.min,te=l.max]=Re(K!=null?K:[]);return H<Z||H>te};return{tick:{fromFn(H,K,Z){let te=H.y1+H.translationY,se=H.opacity;return(Z==="added"||c(H.datum.translationY,H.datum.range))&&(te=K.translationY,se=0),{y:0,translationY:te,opacity:se,phase:Fs[Z]}},toFn(H,K,Z){let te=K.translationY,se=1;return Z==="removed"&&(se=0),{y:0,translationY:te,opacity:se,finish:{y:te,translationY:0}}},applyFn(H,K){H.setProperties(K),H.visible=!c(H.y)}},line:{fromFn(H,K){var Z;return et(pe({},(Z=H.previousDatum)!=null?Z:K),{phase:Fs.updated})},toFn(H,K){return pe({},K)}},label:{fromFn(H,K,Z){var We;let te=(We=H.previousDatum)!=null?We:K,se=te.x,ge=te.y,Se=te.rotationCenterX,Ce=Math.round(H.translationY),Pe=te.rotation,Ge=H.opacity;return Z==="removed"||c(te.y,te.range)?Pe=K.rotation:(Z==="added"||c(H.datum.y,H.datum.range))&&(Ce=Math.round(te.translationY),Ge=0,Pe=K.rotation),{x:se,y:ge,rotationCenterX:Se,translationY:Ce,rotation:Pe,opacity:Ge,phase:Fs[Z]}},toFn(H,K,Z){var Ge,We;let te=K.x,se=K.y,ge=K.rotationCenterX,Se=Math.round(K.translationY),Ce=0,Pe=1;return Z==="added"?Ce=K.rotation:Z==="removed"?(Pe=0,Ce=K.rotation):Ce=Zl((We=(Ge=H.previousDatum)==null?void 0:Ge.rotation)!=null?We:K.rotation,K.rotation),{x:te,y:se,rotationCenterX:ge,translationY:Se,rotation:Ce,opacity:Pe,finish:{rotation:K.rotation}}}},group:{fromFn(H,K){let{rotation:Z,translationX:te,translationY:se}=H;return{rotation:Z,translationX:te,translationY:se,phase:Fs.updated}},toFn(H,K){let{rotation:Z,translationX:te,translationY:se}=K;return{rotation:Z,translationX:te,translationY:se}}}}}function db(){return(l,c)=>({rotation:c.rotation,rotationCenterX:c.rotationCenterX,rotationCenterY:c.rotationCenterY,translationX:c.translationX,translationY:c.translationY})}function Rx(l){let{visible:c,min:y,max:I}=l;return(O,j)=>{let H=j.translationY,K=c&&H>=y&&H<=I;return{y:H,translationY:0,opacity:1,visible:K}}}function w0(){return(l,c)=>({x:c.x,y:c.y,translationY:c.translationY,rotation:c.rotation,rotationCenterX:c.rotationCenterX})}function hn(){return(l,c)=>pe({},c)}var RI=Object.freeze({tickData:{ticks:[],rawTicks:[],labelCount:0,fractionDigits:0},combinedRotation:0,textAlign:"center",textBaseline:"bottom",labelData:[]}),x0=class extends Rm(ns){},qa=class eZ{constructor(c,y){this.moduleCtx=c,this.scale=y,this.id=U(this),this.nice=!0,this.reverse=!1,this.keys=[],this.interval=new rd,this.dataDomain={domain:[],clipped:!1},this.layoutConstraints={stacked:!0,align:"start",width:100,unit:"percent"},this.boundSeries=[],this.includeInvisibleDomains=!1,this.interactionEnabled=!0,this.axisGroup=new sv({name:`${this.id}-axis`}),this.tickLineGroup=this.axisGroup.appendChild(new Mn({name:`${this.id}-Axis-tick-lines`})),this.lineNode=this.axisGroup.appendChild(new x0({name:`${this.id}-Axis-line`})),this.tickLabelGroup=this.axisGroup.appendChild(new Mn({name:`${this.id}-Axis-tick-labels`})),this.labelGroup=new Mn({name:`${this.id}-Labels`,zIndex:8}),this.gridGroup=new sv({name:`${this.id}-Axis-grid`,zIndex:1}),this.gridLineGroup=this.gridGroup.appendChild(new Mn({name:`${this.id}-gridLines`})),this.crossLineRangeGroup=new sv({name:`${this.id}-CrossLines-Range`,zIndex:3}),this.crossLineLineGroup=new sv({name:`${this.id}-CrossLines-Line`,zIndex:7}),this.crossLineLabelGroup=new sv({name:`${this.id}-CrossLines-Label`,zIndex:12}),this.tickLineGroupSelection=No.select(this.tickLineGroup,x0,!1),this.tickLabelGroupSelection=No.select(this.tickLabelGroup,Hs,!1),this.gridLineGroupSelection=No.select(this.gridLineGroup,x0,!1),this._crossLines=[],this.line=new vv,this.tick=new Mu,this.gridLine=new C0,this.label=this.createLabel(),this.tempText=new Hs,this.tempCaption=new mo,this.defaultTickMinSpacing=eZ.defaultTickMinSpacing,this.translation={x:0,y:0},this.rotation=0,this.layout={label:{fractionDigits:0,spacing:this.label.spacing,format:this.label.format}},this.destroyFns=[],this.range=[0,1],this.visibleRange=[0,1],this.title=new zd,this.gridLength=0,this.gridPadding=0,this.seriesAreaPadding=0,this.tickGenerationResult=void 0,this._domainCalculated=!1,this.moduleMap=new yh,this.range=this.scale.range.slice(),this.crossLines.forEach(O=>this.initCrossLine(O)),this.axisGroup.appendChild(this.title.caption.node),this.animationManager=c.animationManager,this.animationState=new Io("empty",{empty:{update:{target:"ready",action:()=>this.resetSelectionNodes()},reset:"empty"},ready:{update:O=>this.animateReadyUpdate(O),resize:()=>this.resetSelectionNodes(),reset:"empty"}});let I;this.destroyFns.push(this.title.caption.registerInteraction(this.moduleCtx,"afterend"),c.layoutManager.addListener("layout:complete",O=>{I!=null&&ad(O.chart,I)!=null&&this.animationState.transition("resize"),I=pe({},O.chart)}))}get type(){var c;return(c=this.constructor.type)!=null?c:""}set crossLines(c){let{CrossLineConstructor:y}=this.constructor;this._crossLines.forEach(I=>this.detachCrossLine(I)),this._crossLines=c.map(I=>{let O=new y;return O.set(I),O}),this._crossLines.forEach(I=>{this.attachCrossLine(I),this.initCrossLine(I)})}get crossLines(){return this._crossLines}resetAnimation(c){c==="initial"&&this.animationState.transition("reset")}attachCrossLine(c){this.crossLineRangeGroup.appendChild(c.rangeGroup),this.crossLineLineGroup.appendChild(c.lineGroup),this.crossLineLabelGroup.appendChild(c.labelGroup)}detachCrossLine(c){this.crossLineRangeGroup.removeChild(c.rangeGroup),this.crossLineLineGroup.removeChild(c.lineGroup),this.crossLineLabelGroup.removeChild(c.labelGroup)}destroy(){this.moduleMap.destroy(),this.destroyFns.forEach(c=>c())}updateRange(){var K;let{range:c,visibleRange:y,scale:I}=this,O=(c[1]-c[0])/(y[1]-y[0]),j=O*y[0],H=c[0]-j;(K=I.setVisibleRange)==null||K.call(I,y),I.range=[H,H+O],this.crossLines.forEach(Z=>{Z.clippedRange=[c[0],c[1]]})}setCrossLinesVisible(c){this.crossLineRangeGroup.visible=c,this.crossLineLineGroup.visible=c,this.crossLineLabelGroup.visible=c}attachAxis(c){c.gridNode.appendChild(this.gridGroup),c.axisNode.appendChild(this.axisGroup),c.labelNode.appendChild(this.labelGroup),c.crossLineRangeNode.appendChild(this.crossLineRangeGroup),c.crossLineLineNode.appendChild(this.crossLineLineGroup),c.crossLineLabelNode.appendChild(this.crossLineLabelGroup)}detachAxis(c){c.gridNode.removeChild(this.gridGroup),c.axisNode.removeChild(this.axisGroup),c.labelNode.removeChild(this.labelGroup),c.crossLineRangeNode.removeChild(this.crossLineRangeGroup),c.crossLineLineNode.removeChild(this.crossLineLineGroup),c.crossLineLabelNode.removeChild(this.crossLineLabelGroup)}attachLabel(c){this.labelGroup.append(c)}inRange(c,y=0){let[I,O]=Re(this.range);return c>=I-y&&c<=O+y}onFormatChange(c,y,I,O){let{scale:j}=this,H=j instanceof BA;if(O&&(j!=null&&j.tickFormat))try{let K=j.tickFormat({ticks:c,specifier:O});this.labelFormatter=K,this.datumFormatter=K;return}catch(K){Pi.warnOnce(`the axis label format string ${O} is invalid. No formatting will be applied`)}this.labelFormatter=H?String:K=>id(K,y),this.datumFormatter=H?String:K=>id(K,y+1)}onGridLengthChange(c,y){y^c&&this.onGridVisibilityChange(),this.crossLines.forEach(I=>this.initCrossLine(I))}onGridVisibilityChange(){this.gridLineGroupSelection.clear()}createLabel(){return new jr}update(c=!0){if(!this.tickGenerationResult)return;this.updatePosition();let y=this.getAxisLineCoordinates(),{tickData:I,combinedRotation:O,textBaseline:j,textAlign:H}=this.tickGenerationResult,K=this.tickLabelGroupSelection.nodes().slice();if(this.updateSelections(y,I.ticks,{combinedRotation:O,textAlign:H,textBaseline:j,range:this.scale.range}),!c||this.animationManager.isSkipped())this.resetSelectionNodes();else{let ge=EI(K.map(Se=>Se.datum.tickId),I.ticks.map(Se=>Se.tickId));this.animationState.transition("update",ge)}this.tickLineGroup.visible=this.tick.enabled,this.gridLineGroup.visible=this.gridLine.enabled,this.tickLabelGroup.visible=this.label.enabled;let{enabled:Z,stroke:te,width:se}=this.line;this.lineNode.setProperties({stroke:te,strokeWidth:Z?se:0}),this.updateLabels(),this.updateGridLines(),this.updateTickLines(),this.updateTitle(!I.ticks.length),this.updateCrossLines()}getAxisLineCoordinates(){let[c,y]=Re(this.range);return{x:0,y1:c,y2:y}}getTickLineCoordinates(c){let I=this.label.getSideFlag()*this.getTickSize(),O=Math.min(0,I),j=O+Math.abs(I),H=c.translationY;return{x1:O,x2:j,y:H}}getLabelStyles(c,y){let{label:I}=this,O={color:I.color,spacing:I.spacing,fontFamily:I.fontFamily,fontSize:I.fontSize,fontStyle:I.fontStyle,fontWeight:I.fontWeight},j;I.itemStyler&&(j=this.moduleCtx.callbackCache.call(I.itemStyler,pe(pe({},c),O)));let{color:H,fontFamily:K,fontSize:Z,fontStyle:te,fontWeight:se,spacing:ge}=Wi(j,y,O);return{fill:H,fontFamily:K,fontSize:Z,fontStyle:te,fontWeight:se,spacing:ge}}getTickLabelProps(c,y){let{label:I}=this,{combinedRotation:O,textBaseline:j,textAlign:H,range:K}=y,Z=c.tickLabel,se=I.getSideFlag()*(this.getTickSize()+I.spacing+this.seriesAreaPadding),ge=Z!==""&&Z!=null;return et(pe({},this.getLabelStyles({value:c.tickLabel})),{tickId:c.tickId,rotation:O,rotationCenterX:se,translationY:c.translationY,text:Z,textAlign:H,textBaseline:j,visible:ge,x:se,y:0,range:K})}getTickSize(){return this.tick.enabled?this.tick.size:0}setTitleProps(c,y){var He;let{title:I}=this;if(!I.enabled){c.enabled=!1,c.node.visible=!1;return}c.color=I.color,c.fontFamily=I.fontFamily,c.fontSize=I.fontSize,c.fontStyle=I.fontStyle,c.fontWeight=I.fontWeight,c.enabled=I.enabled,c.wrapping=I.wrapping;let O=c.node,j=((He=I.spacing)!=null?He:0)+y.spacing,H=this.label.getSideFlag(),K=ha(this.rotation),Z=H===-1&&K>Math.PI&&K<Math.PI*2?-1:1,te=Z*H*Math.PI/2,se=Z===1?"bottom":"top",{range:ge}=this,Se=Math.floor(Z*H*(ge[0]+ge[1])/2),Ce=Math.floor(H===-1?Z*-j:-j),{callbackCache:Pe}=this.moduleCtx,{formatter:Ge=Ze=>Ze.defaultValue}=I,We=Pe.call(Ge,this.getTitleFormatterParams());c.text=We,O.setProperties({visible:!0,text:We,textBaseline:se,x:Se,y:Ce,rotation:te})}processData(){this._domainCalculated=!1}calculateLayout(c,y){var ge,Se;let{rotation:I,parallelFlipRotation:O,regularFlipRotation:j}=this.calculateRotations(),H=this.label.getSideFlag();this.updateScale({domain:c,skipDomainCalculation:this._domainCalculated}),this._domainCalculated=c==null;let K=this.processTicks(y,O,j);this.tickGenerationResult=K.tickGenerationResult;let Z=ft.merge(K.boxes),te=this.getTransformBox(Z),se=this.isAnySeriesActive();return this.crossLines.forEach(Ce=>{var Ge,We;var Pe;Ce.sideFlag=-H,Ce.direction=I===-Math.PI/2?"x":"y",Ce instanceof Ws&&((Ge=(Pe=Ce.label).parallel)!=null||(Pe.parallel=this.label.parallel)),Ce.parallelFlipRotation=O,Ce.regularFlipRotation=j,(We=Ce.calculateLayout)==null||We.call(Ce,se,this.reverse)}),{primaryTickCount:(Se=(ge=K.tickGenerationResult)==null?void 0:ge.primaryTickCount)!=null?Se:y,bbox:te}}processTicks(c,y,I){var Ze;let O=this.label.getSideFlag(),j=O*(this.getTickSize()+this.label.spacing+this.seriesAreaPadding),K=this.label.enabled||this.tick.enabled||this.gridLine.enabled?this.generateTicks({primaryTickCount:c,parallelFlipRotation:y,regularFlipRotation:I,labelX:j,sideFlag:O}):RI,{tickData:Z,combinedRotation:te,textBaseline:se,textAlign:ge}=K;this.updateLayoutState(Z.fractionDigits);let Se=[],{x:Ce,y1:Pe,y2:Ge}=this.getAxisLineCoordinates(),We=new ft(Ce+Math.min(O*this.seriesAreaPadding,0),Pe,this.seriesAreaPadding,Ge-Pe);Se.push(We),this.tick.enabled&&Z.ticks.forEach(it=>{let{x1:qe,x2:rt,y:dt}=this.getTickLineCoordinates(it),mt=new ft(qe,dt,rt-qe,0);Se.push(mt)});let{tempText:He}=this;if(this.label.enabled&&Z.ticks.forEach(it=>{let qe=this.getTickLabelProps(it,{combinedRotation:te,textAlign:ge,textBaseline:se,range:this.scale.range});if(!qe.visible)return;He.setProperties(et(pe({},qe),{translationY:Math.round(it.translationY)}));let rt=He.getBBox();rt&&Se.push(rt)}),(Ze=this.title)!=null&&Ze.enabled){let it=ft.merge(Se).width;this.setTitleProps(this.tempCaption,{spacing:it});let qe=this.tempCaption.node.getBBox();qe&&Se.push(qe)}return{tickGenerationResult:K,boxes:Se}}updateLayoutState(c){this.layout.label={fractionDigits:c,spacing:this.label.spacing,format:this.label.format}}getTransformBox(c){let y=new vl,{rotation:I,translationX:O,translationY:j}=this.getAxisTransform();return vl.updateTransformMatrix(y,1,1,I,O,j),y.transformBBox(c)}setDomain(c){this.dataDomain=this.normaliseDataDomain(c),this.reverse&&this.dataDomain.domain.reverse(),this.scale.domain=this.dataDomain.domain}updateScale(c){var O;let y=c==null?void 0:c.domain;((O=c==null?void 0:c.skipDomainCalculation)!=null?O:!1)||(y?this.setDomain(y):this.calculateDomain()),this.updateRange(),this.scale.interval=this.interval.step,io.is(this.scale)&&(this.scale.nice=this.nice,this.scale.update())}calculateRotations(){let c=$e(this.rotation),y=ha(c),I=ha(c-Math.PI/2);return{rotation:c,parallelFlipRotation:y,regularFlipRotation:I}}generateTicks({primaryTickCount:c,parallelFlipRotation:y,regularFlipRotation:I,labelX:O,sideFlag:j}){let{scale:H,interval:{minSpacing:K,maxSpacing:Z},label:{parallel:te,rotation:se,fontFamily:ge,fontSize:Se,fontStyle:Ce,fontWeight:Pe}}=this,Ge=c!==void 0,{defaultRotation:We,configuredRotation:He,parallelFlipFlag:Ze,regularFlipFlag:it}=nb({rotation:se,parallel:te,regularFlipRotation:I,parallelFlipRotation:y}),qe=He+We,rt=new vl,{maxTickCount:dt}=this.estimateTickCount(K,Z),yt=!(io.is(H)||Vs.is(H))||isNaN(dt)?10:dt,Lt=Su(te,He,0,j,it),Ht=od(te,He,j,Ze),qt=po.toFontString({fontFamily:ge,fontSize:Se,fontStyle:Ce,fontWeight:Pe}),ri=Cs.getMeasurer({font:qt}),Ei={fontFamily:ge,fontSize:Se,fontStyle:Ce,fontWeight:Pe,textBaseline:Ht,textAlign:Lt},Ni={ticks:[],rawTicks:[],fractionDigits:0,labelCount:0},Vi=0,Si=0,sn=!0,en=[],Nn=!1;for(;sn&&Vi<=yt&&!Nn;){Si=0,Lt=Su(te,He,0,j,it);let ea=this.getTickStrategies({secondaryAxis:Ge,index:Vi});for(let Sn of ea){({tickData:Ni,index:Vi,autoRotation:Si,terminate:Nn}=Sn({index:Vi,tickData:Ni,textProps:Ei,labelOverlap:sn,terminate:Nn,primaryTickCount:c}));let pn=He!==0||Si!==0,ta=qe+Si,wo=_m(this.label.minSpacing,pn);vl.updateTransformMatrix(rt,1,1,ta,0,0),Lt=Su(te,He,Si,j,it),en=$A(Ni.ticks,O,rt,ri),sn=this.label.avoidCollisions?DI(en,wo):!1}}let dn=We+He+Si;return!Ge&&Ni.rawTicks.length>0&&(c=Ni.rawTicks.length),{tickData:Ni,primaryTickCount:c,combinedRotation:dn,textBaseline:Ht,textAlign:Lt,labelData:en}}getTickStrategies({index:c,secondaryAxis:y}){let{scale:I,label:O}=this,{minSpacing:j}=this.interval,H=io.is(I)||Vs.is(I),K=O.enabled&&O.avoidCollisions,Z=!H&&c!==0&&K,te=O.autoRotate===!0&&O.rotation===void 0,se=[],ge;this.interval.values?ge=3:y?ge=1:Z?ge=2:ge=0;let Se=({index:Ce,tickData:Pe,primaryTickCount:Ge,terminate:We})=>this.createTickData(ge,Ce,Pe,We,Ge);if(se.push(Se),!H&&!isNaN(j)){let Ce=({index:Pe,tickData:Ge,primaryTickCount:We,terminate:He})=>this.createTickData(2,Pe,Ge,He,We);se.push(Ce)}if(K&&te){let Ce=({index:Pe,tickData:Ge,labelOverlap:We,terminate:He})=>{var Ze;return{index:Pe,tickData:Ge,autoRotation:We?ha($e((Ze=this.label.autoRotateAngle)!=null?Ze:0)):0,terminate:He}};se.push(Ce)}return se}createTickData(c,y,I,O,j){let{scale:H}=this,{step:K,values:Z,minSpacing:te,maxSpacing:se}=this.interval,{maxTickCount:ge,minTickCount:Se,tickCount:Ce}=this.estimateTickCount(te,se),Pe=io.is(H)||Vs.is(H),Ge=!Pe||isNaN(ge)?10:ge,We=Ze=>Pe?Math.max(Ce-Ze,Se):ge,He=K==null&&Z==null&&We(y)>Se&&(Pe||c===2);for(;y<=Ge;){let Ze=I.rawTicks;if(I=this.getTicks({tickGenerationType:c,previousTicks:Ze,minTickCount:Se,maxTickCount:ge,primaryTickCount:j,tickCount:We(y)}),y++,!He||!eg(I.rawTicks,Ze))break}return O||(O=K!=null||Z!=null),{tickData:I,index:y,autoRotation:0,terminate:O}}getTicks({tickGenerationType:c,previousTicks:y,tickCount:I,minTickCount:O,maxTickCount:j,primaryTickCount:H}){var it;let{range:K,scale:Z,visibleRange:te}=this,se=ib(),ge;switch(c){case 3:if(ge=this.interval.values,io.is(Z)){let[qe,rt]=Re(Z.getDomain().map(Number));ge=ge.filter(dt=>dt>=qe&&dt<=rt).sort((dt,mt)=>dt-mt)}break;case 1:io.is(Z)?ge=this.updateSecondaryAxisTicks(H):ge=this.createTicks(I,O,j);break;case 2:ge=this.filterTicks(y,I);break;default:ge=this.createTicks(I,O,j);break}let Se=ge.reduce((qe,rt)=>Math.max(qe,typeof rt=="number"?Mt(rt):0),0),Ce=((it=Z.bandwidth)!=null?it:0)/2,Pe=[],Ge=0,We=Math.max(0,Math.floor(te[0]*ge.length)),He=Math.min(ge.length,Math.ceil(te[1]*ge.length)),Ze=ge.slice(We,He);this.onFormatChange(Ze,Se,ge,this.label.format);for(let qe=0;qe<Ze.length;qe++){let rt=Ze[qe],dt=Z.convert(rt)+Ce;if(K.length>0&&!this.inRange(dt,.001))continue;let mt=this.formatTick(rt,We+qe,Se);Pe.push({tick:rt,tickId:se(mt),tickLabel:mt,translationY:Math.floor(dt)}),!(mt===""||mt==null)&&Ge++}return{rawTicks:ge,fractionDigits:Se,ticks:Pe,labelCount:Ge}}filterTicks(c,y){let{minSpacing:I,maxSpacing:O}=this.interval,H=!isNaN(I)||!isNaN(O)?Math.ceil(c.length/y):2;return c.filter((K,Z)=>Z%H===0)}createTicks(c,y,I){var j,H;let{scale:O}=this;return c&&(io.is(O)||Vs.is(O))&&(O.tickCount=c,O.minTickCount=y!=null?y:0,O.maxTickCount=I!=null?I:1/0),(H=(j=O.ticks)==null?void 0:j.call(O))!=null?H:[]}estimateTickCount(c,y){return ux(this.calculateRangeWithBleed(),c,y,io.defaultTickCount,this.defaultTickMinSpacing)}updateCrossLines(){let c=this.isAnySeriesActive();this.crossLines.forEach(y=>{y.update(c)})}updateTickLines(){let{tick:c,label:y}=this,I=y.getSideFlag();this.tickLineGroupSelection.each((O,j)=>{var H,K,Z;O.strokeWidth=(H=j.tickWidth)!=null?H:c.width,O.stroke=(K=j.tickStroke)!=null?K:c.stroke,O.x1=I*((Z=j.tickSize)!=null?Z:this.getTickSize()),O.x2=0})}calculateAvailableRange(){return Oe(this.range)}calculateRangeWithBleed(){return at(this.calculateAvailableRange()/Oe(this.visibleRange),2)}calculateDomain(){let{includeInvisibleDomains:c,boundSeries:y,direction:I}=this,O=c?y:y.filter(H=>H.isEnabled()),j=O.length===1?O[0].getDomain(I):O.flatMap(H=>H.getDomain(I));this.setDomain(j)}getAxisTransform(){return{rotation:$e(this.rotation),translationX:Math.floor(this.translation.x),translationY:Math.floor(this.translation.y)}}updatePosition(){let{crossLineRangeGroup:c,crossLineLineGroup:y,crossLineLabelGroup:I,axisGroup:O,gridGroup:j,translation:H}=this,{rotation:K}=this.calculateRotations(),Z=Math.floor(H.x),te=Math.floor(H.y);c.setProperties({rotation:K,translationX:Z,translationY:te}),y.setProperties({rotation:K,translationX:Z,translationY:te}),I.setProperties({rotation:K,translationX:Z,translationY:te}),j.setProperties({rotation:K,translationX:Z,translationY:te}),O.datum=this.getAxisTransform()}updateSecondaryAxisTicks(c){throw new Error("AG Charts - unexpected call to updateSecondaryAxisTicks() - check axes configuration.")}updateSelections(c,y,I){let O=H=>H.tickId,j=y.map(H=>this.getTickLabelProps(H,I));this.lineNode.datum=c,this.gridLineGroupSelection.update(this.gridLength?y:[],void 0,O),this.tickLineGroupSelection.update(y,void 0,O),this.tickLabelGroupSelection.update(j,void 0,O)}updateGridLines(){let c=this.label.getSideFlag(),{gridLine:{style:y,width:I},gridPadding:O,gridLength:j}=this;j===0||y.length===0||this.gridLineGroupSelection.each((H,K,Z)=>{let{stroke:te,lineDash:se}=y[Z%y.length];H.setProperties({x1:O,x2:-c*j+O,stroke:te,strokeWidth:I,lineDash:se})})}updateLabels(){this.label.enabled&&this.tickLabelGroupSelection.each((c,y)=>{c.setProperties(y,["fill","fontFamily","fontSize","fontStyle","fontWeight","text","textAlign","textBaseline"])})}updateTitle(c,y){let{title:I,lineNode:O,tickLineGroup:j,tickLabelGroup:H}=this;I.enabled&&!c&&y==null&&(y=Mn.computeChildrenBBox([j,H,O]).width+(this.tickLabelGroup.visible?0:this.seriesAreaPadding)),y!=null||(y=0),this.setTitleProps(I.caption,{spacing:y})}formatTick(c,y,I){let{labelFormatter:O,label:{formatter:j},moduleCtx:{callbackCache:H}}=this,K;return j?K=H.call(j,{value:c,index:y,fractionDigits:I}):O&&(K=H.call(O,c)),String(K!=null?K:c)}formatDatum(c){let{label:{formatter:y},moduleCtx:{callbackCache:I},datumFormatter:O=this.labelFormatter}=this,j;return y?j=I.call(y,{value:c,index:NaN}):O?j=I.call(O,c):$t(c)&&(j=c.filter(Boolean).join(" - ")),String(j!=null?j:c)}getScaleValueFormatter(c){if(c&&this.scale.tickFormat)try{return this.scale.tickFormat({specifier:c})}catch(y){Pi.warnOnce(`the format string ${c} is invalid, ignoring.`)}return y=>this.formatDatum(y)}getBBox(){return this.axisGroup.getBBox()}initCrossLine(c){c.scale=this.scale,c.gridLength=this.gridLength}isAnySeriesActive(){return this.boundSeries.some(c=>this.includeInvisibleDomains||c.isEnabled())}clipTickLines(c,y,I,O){this.tickLineGroup.setClipRect(new ft(c,y,I,O))}clipGrid(c,y,I,O){this.gridGroup.setClipRect(new ft(c,y,I,O))}getTitleFormatterParams(){var I;let{direction:c}=this,y=[];for(let O of this.boundSeries){let j=O.getKeys(c),H=O.getNames(c);for(let K=0;K<j.length;K++)y.push({key:j[K],name:H[K]})}return{direction:c,boundSeries:y,defaultValue:(I=this.title)==null?void 0:I.text}}normaliseDataDomain(c){return{domain:[...c],clipped:!1}}getLayoutState(){return pe({id:this.id,rect:this.getBBox(),gridPadding:this.gridPadding,seriesAreaPadding:this.seriesAreaPadding,tickSize:this.getTickSize(),direction:this.direction,domain:this.dataDomain.domain,scale:this.scale},this.layout)}getModuleMap(){return this.moduleMap}createModuleContext(){var c;return(c=this.axisContext)!=null||(this.axisContext=this.createAxisContext()),et(pe({},this.moduleCtx),{parent:this.axisContext})}createAxisContext(){let{scale:c}=this;return{axisId:this.id,scale:this.scale,direction:this.direction,continuous:io.is(c)||Vs.is(c),getCanvasBounds:()=>fr.toCanvas(this.axisGroup),seriesKeyProperties:()=>this.boundSeries.reduce((y,I)=>(I.getKeyProperties(this.direction).forEach(j=>{y.indexOf(j)<0&&y.push(j)}),y),[]),scaleValueFormatter:y=>this.getScaleValueFormatter(y),scaleInvert:Vs.is(c)?y=>{var I;return(I=c.invertNearest)==null?void 0:I.call(c,y)}:y=>{var I;return(I=c.invert)==null?void 0:I.call(c,y)},scaleInvertNearest:y=>{var I;return(I=c.invertNearest)==null?void 0:I.call(c,y)},attachLabel:y=>this.attachLabel(y),inRange:(y,I)=>this.inRange(y,I)}}animateReadyUpdate(c){let{animationManager:y}=this.moduleCtx,I=cg(this),O=Tx(I);yi(this.id,"axis-group",y,[this.axisGroup],O.group),yi(this.id,"line",y,[this.lineNode],O.line),yi(this.id,"line-paths",y,[this.gridLineGroupSelection,this.tickLineGroupSelection],O.tick,(j,H)=>H.tickId,c),yi(this.id,"tick-labels",y,[this.tickLabelGroupSelection],O.label,(j,H)=>H.tickId,c)}resetSelectionNodes(){let c=cg(this);Yo([this.axisGroup],db()),Yo([this.gridLineGroupSelection,this.tickLineGroupSelection],Rx(c)),Yo([this.tickLabelGroupSelection],w0()),Yo([this.lineNode],hn())}isReversed(){return this.reverse}};qa.defaultTickMinSpacing=50,qa.CrossLineConstructor=Ws,D([Je(Zi)],qa.prototype,"nice",2),D([Je(Zi)],qa.prototype,"reverse",2),D([Je(Vy)],qa.prototype,"keys",2),D([Je(Gi)],qa.prototype,"interval",2),D([Je(Gi)],qa.prototype,"title",2),D([mp((l,c,y)=>l.onGridLengthChange(c,y))],qa.prototype,"gridLength",2);var dg=qa,$o=class extends jr{constructor(){super(...arguments),this.autoRotateAngle=335}};D([Je(Zi,{optional:!0})],$o.prototype,"autoRotate",2),D([Je(Vn)],$o.prototype,"autoRotateAngle",2);var yr=class tZ extends dg{static is(c){return c instanceof tZ}get direction(){return this.position==="top"||this.position==="bottom"?"x":"y"}updateDirection(){switch(this.position){case"top":this.rotation=-90,this.label.mirrored=!0,this.label.parallel=!0;break;case"right":this.rotation=0,this.label.mirrored=!0,this.label.parallel=!1;break;case"bottom":this.rotation=-90,this.label.mirrored=!1,this.label.parallel=!0;break;case"left":this.rotation=0,this.label.mirrored=!1,this.label.parallel=!1;break}this.axisContext&&(this.axisContext.position=this.position,this.axisContext.direction=this.direction)}update(c){this.updateDirection(),super.update(c)}calculateLayout(c,y){return this.updateDirection(),super.calculateLayout(c,y)}createAxisContext(){return et(pe({},super.createAxisContext()),{position:this.position})}createLabel(){return new $o}};D([Je(Fi,{optional:!0})],yr.prototype,"thickness",2),D([Je(n0)],yr.prototype,"position",2);var Da=yr,va=class iZ extends Da{constructor(c,y=new Wl){super(c,y),this.groupPaddingInner=.1,this.categoryAnimatable=!0,this.includeInvisibleDomains=!0}static is(c){return c instanceof iZ}domainOrderedToNormalizedDomain(c,y){let I=-1;for(let O of c){let j=y.indexOf(O);if(j===-1)I=1/0;else{if(j<=I)return!1;I=j}}return!0}calculateDomain(){let c,y=new Set,I=!0;for(let O of this.boundSeries){if(!this.includeInvisibleDomains&&!O.isEnabled())continue;let j=O.getDomain(this.direction);y.has(j)||(y.add(j),c==null?c=this.normaliseDataDomain(j).domain:(I&&(I=this.domainOrderedToNormalizedDomain(j,c)),c=this.normaliseDataDomain([...c,...j]).domain))}c!=null||(c=[]),this.setDomain(c),this.categoryAnimatable=I}update(){super.update(),this.categoryAnimatable||this.moduleCtx.animationManager.skip()}normaliseDataDomain(c){let y=[],I=new Set;for(let O of c){let j=O instanceof Date?O.getTime():O;I.has(j)||(I.add(j),y.push(O))}return{domain:y,clipped:!1}}updateScale(c){let{paddingInner:y,paddingOuter:I}=this;if(!_t(y)||!_t(I)){let O=this.reduceBandScalePadding();y!=null||(y=O.inner),I!=null||(I=O.outer)}this.scale.paddingInner=y!=null?y:0,this.scale.paddingOuter=I!=null?I:0,super.updateScale(c)}reduceBandScalePadding(){return this.boundSeries.reduce((c,y)=>{var O;let I=(O=y.getBandScalePadding)==null?void 0:O.call(y);return I&&(c.inner>I.inner&&(c.inner=I.inner),c.outer<I.outer&&(c.outer=I.outer)),c},{inner:1/0,outer:-1/0})}};va.className="CategoryAxis",va.type="category",D([Je(Ia)],va.prototype,"groupPaddingInner",2),D([Je(Ia,{optional:!0})],va.prototype,"paddingInner",2),D([Je(Ia,{optional:!0})],va.prototype,"paddingOuter",2);var vp=va,M0=class{constructor(){this.destroyFns=[]}destroy(){for(let l of this.destroyFns)l()}},sD=class{constructor(){this.modules=[],this.dependencies=new Map,this.modulesByOptionKey=new Map}register(...l){for(let c of l){this.registerDependencies(c);let y=this.modules.find(I=>c.type===I.type&&("optionsKey"in c&&"optionsKey"in I?c.optionsKey===I.optionsKey:!0)&&c.identifier===I.identifier);if(y){if(c.packageType==="enterprise"&&y.packageType==="community"){let I=this.modules.indexOf(y);this.modules.splice(I,1,c),"optionsKey"in c&&this.modulesByOptionKey.set(c.optionsKey,c)}}else this.modules.push(c),"optionsKey"in c&&this.modulesByOptionKey.set(c.optionsKey,c)}}hasEnterpriseModules(){return this.modules.some(l=>l.packageType==="enterprise")}*byType(...l){let c=new Set,y=this.modules.filter(j=>l.includes(j.type)),I=j=>{var K;let H=this.dependencies.get(j);return(K=H==null?void 0:H.flatMap(I).concat(H))!=null?K:[]},O=[];for(let j of y){let H="optionsKey"in j?j.optionsKey:j.contextKey;if(!c.has(H)){for(let K of I(H)){if(c.has(K))continue;let Z=this.modulesByOptionKey.get(K);if(!Z){O.push(K);continue}l.includes(Z.type)&&(yield Z,c.add(K))}yield j,c.add(H)}}if(O.length>0)throw new Error(`Could not resolve module dependencies: ${O}`)}registerDependencies(l){if(l.dependencies==null||l.dependencies.length===0)return;let c="optionsKey"in l?l.optionsKey:l.contextKey;this.dependencies.set(c,l.dependencies)}},ku=new sD,zm=class{constructor(){this.queue=[]}await(l=50){return new Promise(c=>{let y=()=>{clearTimeout(O),c(!0)},O=setTimeout(()=>{let j=this.queue.indexOf(y);j<0||(this.queue.splice(j,1),c(!1))},l);this.queue.push(y)})}notify(){this.queue.splice(0).forEach(l=>l())}};function PI(){return new Promise(l=>{setTimeout(l,0)})}var BP=class{constructor(){this.available=!0,this.acquireQueue=[]}acquire(l){return new Promise(c=>{this.acquireQueue.push([l,c]),this.available&&this.dispatchNext().catch(y=>Pi.errorOnce(y))})}async acquireImmediately(l){return this.available?(await this.acquire(l),!0):!1}async waitForClearAcquireQueue(){return this.acquire(()=>Promise.resolve(void 0))}async dispatchNext(){var y,I;this.available=!1;let[l,c]=(y=this.acquireQueue.shift())!=null?y:[];for(;l;){try{await l(),c==null||c()}catch(O){Pi.error("mutex callback error",O),c==null||c()}[l,c]=(I=this.acquireQueue.shift())!=null?I:[]}this.available=!0}},LI=class{constructor(){this.eventListeners=new Map}addEventListener(l,c){if(typeof c!="function")throw new Error("AG Charts - listener must be a Function");let y=this.eventListeners.get(l);y?y.add(c):this.eventListeners.set(l,new Set([c]))}removeEventListener(l,c){var y;(y=this.eventListeners.get(l))==null||y.delete(c),this.eventListeners.size===0&&this.eventListeners.delete(l)}hasEventListener(l){return this.eventListeners.has(l)}clearEventListeners(){this.eventListeners.clear()}fireEvent(l){var c;(c=this.eventListeners.get(l.type))==null||c.forEach(y=>y(l))}},yp=class extends un{constructor(l=0,c=l,y=l,I=c){super(),this.top=l,this.right=c,this.bottom=y,this.left=I}};D([Je(Fi)],yp.prototype,"top",2),D([Je(Fi)],yp.prototype,"right",2),D([Je(Fi)],yp.prototype,"bottom",2),D([Je(Fi)],yp.prototype,"left",2);function ub(l){return Px((c,y)=>ca().requestAnimationFrame(c),l)}function Ih(l){return Px((c,y=0)=>{y===0?queueMicrotask(c):setTimeout(c,y)},l)}function Px(l,c){let y=0,I=!1,O,j,H=()=>I,K=()=>{I=!1,j==null||j(),j=void 0,O=void 0,y>0&&l(Z)},Z=()=>{let te=y;y=0,I=!0;let se=c({count:te});if(!se){K();return}se.then(K,K)};return{schedule(te){y===0&&!H()&&l(Z,te),y++},async await(){if(H())for(O==null&&(O=new Promise(te=>{j=te}));H();)await O}}}var oa=class{constructor(){this.events=new Map}on(l,c){var y;return this.events.has(l)||this.events.set(l,new Set),(y=this.events.get(l))==null||y.add(c),()=>this.off(l,c)}off(l,c){let y=this.events.get(l);y&&(y.delete(c),y.size===0&&this.events.delete(l))}emit(l,c){var y;for(let I of(y=this.events.get(l))!=null?y:[]){let O=I(c);O&&O.catch(j=>Pi.error(j))}}clear(l){l?this.events.delete(l):this.events.clear()}},Lx=(l=>(l[l.Caption=0]="Caption",l[l.Legend=1]="Legend",l[l.ToolbarLeft=2]="ToolbarLeft",l[l.ToolbarBottom=3]="ToolbarBottom",l[l.Navigator=4]="Navigator",l[l.Overlay=5]="Overlay",l))(Lx||{}),k0=class{constructor(){this.events=new oa,this.elements=new Map}addListener(l,c){return this.events.on(l,c)}registerElement(l,c){return this.elements.has(l)?this.elements.get(l).add(c):this.elements.set(l,new Set([c])),()=>{var y;return(y=this.elements.get(l))==null?void 0:y.delete(c)}}createContext(l,c){var I;let y=new OI(l,c);for(let O of Object.values(Lx))typeof O=="number"&&((I=this.elements.get(O))==null||I.forEach(j=>{var H;(H=j(y))==null||H.catch(K=>Pi.error(K))}));return y}emitLayoutComplete(l,c){var j,H;let y="layout:complete",{width:I,height:O}=l;this.events.emit(y,{type:y,axes:(j=c.axes)!=null?j:[],chart:{width:I,height:O},clipSeries:(H=c.clipSeries)!=null?H:!1,series:c.series})}},OI=class{constructor(l,c){this.width=l,this.height=c,this.layoutBox=new ft(0,0,l,c)}},Pa=class{constructor(){this.title=new mo,this.subtitle=new mo,this.footnote=new mo}positionCaptions(l){let{title:c,subtitle:y,footnote:I}=this,O=l.layoutBox.height/10;if(c.enabled){let{spacing:j=y.enabled?mo.SMALL_PADDING:mo.LARGE_PADDING}=c;this.positionCaption("top",c,l.layoutBox,O),this.shrinkLayoutByCaption("top",c,l.layoutBox,j)}y.enabled&&(this.positionCaption("top",y,l.layoutBox,O),this.shrinkLayoutByCaption("top",y,l.layoutBox,y.spacing)),I.enabled&&(this.positionCaption("bottom",I,l.layoutBox,O),this.shrinkLayoutByCaption("bottom",I,l.layoutBox,I.spacing))}positionAbsoluteCaptions(l){let{title:c,subtitle:y,footnote:I}=this,{rect:O}=l.series;for(let j of[c,y,I])if(j.layoutStyle==="overlay"){if(j.textAlign==="left")j.node.x=O.x+j.padding;else if(j.textAlign==="right"){let H=j.node.getBBox();j.node.x=O.x+O.width-H.width-j.padding}}}computeX(l,c){return l==="left"?c.x:l==="right"?c.x+c.width:c.x+c.width/2}positionCaption(l,c,y,I){let O=Math.max(po.getLineHeight(c.fontSize),I);c.node.x=this.computeX(c.textAlign,y)+c.padding,c.node.y=y.y+(l==="top"?0:y.height)+c.padding,c.node.textBaseline=l,c.computeTextWrap(y.width,O)}shrinkLayoutByCaption(l,c,y,I=0){if(c.layoutStyle==="block"){let O=c.node.getBBox();y.shrink(Math.ceil(l==="top"?O.y-y.y+O.height+I:y.y+y.height-O.y+I),l)}}};D([Je(Gi)],Pa.prototype,"title",2),D([Je(Gi)],Pa.prototype,"subtitle",2),D([Je(Gi)],Pa.prototype,"footnote",2);var Vr=["candlestick","hollow-candlestick","ohlc","line","step-line","hlc","high-low"],Er=class{constructor(l){this.chartService=l,this.mementoOriginatorKey="chartType"}createMemento(){var c,y;let l=(y=(c=this.chartService.publicApi)==null?void 0:c.getOptions())==null?void 0:y.chartType;return l==null&&(l="candlestick"),l}guardMemento(l){return l==null||ht(l)&&cp(Vr,l)}restoreMemento(l,c,y){var O;if(y==null)return;let I={chartType:y};(O=this.chartService.publicApi)==null||O.updateDelta(I).catch(j=>Pi.error("error restoring state",j))}},as=class{constructor(){this.registeredListeners=new Map}addListener(l,c){let y={symbol:Symbol(l),handler:c};return this.registeredListeners.has(l)?this.registeredListeners.get(l).push(y):this.registeredListeners.set(l,[y]),()=>this.removeListener(y.symbol)}removeListener(l){for(let[c,y]of this.registeredListeners.entries()){let I=y.findIndex(O=>O.symbol===l);if(I>=0){y.splice(I,1),y.length===0&&this.registeredListeners.delete(c);break}}}dispatch(l,...c){for(let y of this.getListenersByType(l))try{y.handler(...c)}catch(I){Pi.errorOnce(I)}}dispatchWrapHandlers(l,c,...y){for(let I of this.getListenersByType(l))try{c(I.handler,...y)}catch(O){Pi.errorOnce(O)}}getListenersByType(l){var c;return(c=this.registeredListeners.get(l))!=null?c:[]}destroy(){this.registeredListeners.clear()}},da=class{constructor(){this.listeners=new as,this.destroyFns=[]}addListener(l,c){return this.listeners.addListener(l,c)}destroy(){this.listeners.destroy(),this.destroyFns.forEach(l=>l())}},Ox=(l=>(l[l.Default=32]="Default",l[l.ZoomDrag=16]="ZoomDrag",l[l.Annotations=8]="Annotations",l[l.ContextMenu=4]="ContextMenu",l[l.Animation=2]="Animation",l[l.AnnotationsSelected=1]="AnnotationsSelected",l[l.All=63]="All",l))(Ox||{}),hb=class extends da{addListener(l,c,y=32){return super.addListener(l,I=>{this.getState()&y&&c(I)})}},sd=class{constructor(){this.destroyFns=[]}destroy(){this.destroyFns.forEach(l=>l()),this.destroyFns.length=0}setFns(l){this.destroy(),this.destroyFns=l}push(...l){this.destroyFns.push(...l)}},za="11.0.0",_I=Symbol("previous-memento-not-found"),GP=class{constructor(l){this.history=[],this.historyIndex=-1,this.originators=new Map,this.clearState=new Map,this.maxHistoryLength=100,this.debug=Ua.create(!0,"history"),this.destroyFns=new sd,this.destroyFns.setFns([l.addListener("undo",this.undo.bind(this),63),l.addListener("redo",this.redo.bind(this),63)])}destroy(){this.destroyFns.destroy()}addMementoOriginator(l){this.originators.set(l.mementoOriginatorKey,l),this.clearState.set(l.mementoOriginatorKey,l.createMemento()),this.debugEvent("History add originator:",l.mementoOriginatorKey)}clear(){this.debug("History clear:",Object.keys(this.originators)),this.history=[],this.historyIndex=-1;for(let[l,c]of this.originators.entries())this.clearState.set(l,c.createMemento())}record(l,...c){this.historyIndex<this.history.length-1&&(this.history=this.history.slice(0,this.historyIndex+1)),this.history.length>this.maxHistoryLength&&(this.history=this.history.slice(-this.maxHistoryLength));let y=new Map;for(let I of c){if(!this.originators.has(I.mementoOriginatorKey))throw new Error(`Originator [${I.mementoOriginatorKey}] has not been added to the HistoryManager.`);y.set(I.mementoOriginatorKey,I.createMemento())}this.history.push({label:l,mementos:y}),this.historyIndex=this.history.length-1,this.debugEvent(`History record: [${l}]`)}undo(){let l=this.history[this.historyIndex];if(l){for(let c of l.mementos.keys()){let y=this.findPreviousMemento(c);if(y===_I)throw new Error(`Could not find previous memento for [${c}].`);this.restoreMemento(c,y)}this.historyIndex-=1,this.debugEvent(`History undo: [${l.label}]`)}}redo(){let l=this.history[this.historyIndex+1];if(l){for(let[c,y]of l.mementos.entries())this.restoreMemento(c,y);this.historyIndex+=1,this.debugEvent(`History redo: [${l.label}]`)}}findPreviousMemento(l){for(let c=this.historyIndex-1;c>=0;c--)if(this.history[c].mementos.has(l))return this.history[c].mementos.get(l);return this.clearState.has(l)?this.clearState.get(l):_I}restoreMemento(l,c){var y;(y=this.originators.get(l))==null||y.restoreMemento(za,za,c)}debugEvent(...l){this.debug(...l,this.history.map((c,y)=>y===this.historyIndex?`** ${c.label} **`:c.label))}},gb=class eV{constructor(c){this.version=c.split("-")[0]}save(...c){let y={version:this.version};for(let I of Object.values(c))y[I.mementoOriginatorKey]=this.encode(I,I.createMemento());return y}restore(c,...y){if(typeof c!="object"){Pi.warnOnce(`Could not restore data of type [${typeof c}], expecting an object, ignoring.`);return}if(c==null){Pi.warnOnce("Could not restore data of type [null], expecting an object, ignoring.");return}if(!("version"in c)||typeof c.version!="string"){Pi.warnOnce("Could not restore data, missing [version] string in object, ignoring.");return}for(let I of y){let O=this.decode(I,c[I.mementoOriginatorKey]);if(!I.guardMemento(O)){Pi.warnOnce(`Could not restore [${I.mementoOriginatorKey}] data, value was invalid, ignoring.`,O);return}I.restoreMemento(this.version,c.version,O)}}encode(c,y){try{return JSON.parse(JSON.stringify(y,eV.encodeTypes))}catch(I){throw new Error(`Failed to encode [${c.mementoOriginatorKey}] value [${I}].`,{cause:I})}}decode(c,y){if(y==null)return y;try{return JSON.parse(JSON.stringify(y),eV.decodeTypes)}catch(I){throw new Error(`Failed to decode [${c.mementoOriginatorKey}] value [${I}].`,{cause:I})}}static encodeTypes(c,y){return bn(this[c])?{__type:"date",value:this[c].toISOString()}:y}static decodeTypes(c,y){return Ke(this[c])&&"__type"in this[c]&&this[c].__type==="date"?new Date(this[c].value):y}},FI=class{constructor(){this.caretaker=new gb(za),this.state=new Map}setState(l,c){xn(this.state.get(l.mementoOriginatorKey),c)||this.setStateAndRestore(l,c)}setStateAndRestore(l,c){this.state.set(l.mementoOriginatorKey,c),this.restoreState(l)}restoreState(l){let{caretaker:c,state:y}=this;if(!y.has(l.mementoOriginatorKey))return;let I=y.get(l.mementoOriginatorKey);c.restore({version:c.version,[l.mementoOriginatorKey]:I},l)}},lD=`.ag-charts-wrapper,.ag-charts-wrapper:after,.ag-charts-wrapper:before,.ag-charts-wrapper *,.ag-charts-wrapper *:after,.ag-charts-wrapper *:before{box-sizing:border-box}.ag-charts-wrapper{position:relative;user-select:none}.ag-charts-tab-guard{width:0%;height:0%;position:absolute;pointer-events:none}.ag-charts-canvas-center{width:100%;height:100%;position:absolute;touch-action:auto;pointer-events:auto;display:flex;align-items:var(--ag-charts-align);justify-content:var(--ag-charts-justify)}.ag-charts-canvas-container,.ag-charts-canvas{position:relative;user-select:none}.ag-charts-canvas-container>*,.ag-charts-canvas>*{display:block;pointer-events:none}.ag-charts-series-area{outline:none;pointer-events:none;position:absolute}.ag-charts-swapchain{outline:none;opacity:0;pointer-events:auto;position:absolute;width:100%;height:100%}.ag-charts-swapchain:focus-visible{opacity:1}.ag-charts-canvas-proxy,.ag-charts-canvas-overlay{inset:0;pointer-events:none;position:absolute;user-select:none}.ag-charts-canvas-overlay>*{position:absolute;pointer-events:auto}.ag-charts-theme-default,.ag-charts-theme-default-dark{--ag-charts-active-color: var(--ag-active-color, #2196f3);--ag-charts-background-color: var(--ag-background-color, #fff);--ag-charts-foreground-color: var(--ag-foreground-color, #181d1f);--ag-charts-border-color: var(--ag-border-color, #dddddd);--ag-charts-hover-color: color-mix(in srgb, var(--ag-charts-background-color), var(--ag-charts-active-color) 12%);--ag-charts-font-family: "Verdana", sans-serif;--ag-charts-font-size: var(--ag-font-size, 14px);--ag-charts-size: var(--ag-grid-size, 8px);--ag-charts-border: var(--ag-charts-border-color) var(--ag-borders, solid 1px);--ag-charts-border-critical: var(--ag-borders-critical, solid 1px);--ag-charts-floating-shadow: 0 2px 8px 0 color-mix(in srgb, black 8%, transparent);--ag-charts-layer-ui-overlay: 5;--ag-charts-layer-tooltip: 4;--ag-charts-layer-toolbar: 3;--ag-charts-layer-crosshair: 2;--ag-charts-layer-annotations: 1;--ag-charts-align: center;--ag-charts-justify: center;--ag-charts-axis-label-background-color: #474747;--ag-charts-axis-label-color: #ffffff;--ag-charts-tooltip-background-color: #fafafb;--ag-charts-tooltip-text-color: var(--ag-charts-foreground-color);--ag-charts-tooltip-border: 1px solid var(--ag-charts-border-color);--ag-charts-content-padding: 8px 12px;--ag-charts-content-gap: 8px;--ag-charts-content-compact-padding: 3px 6px;--ag-charts-tooltip-border-radius: 4px;--ag-charts-toolbar-foreground-color: var(--ag-header-foreground-color, var(--ag-charts-foreground-color));--ag-charts-toolbar-background-color: var( --ag-header-background-color, color-mix(in srgb, var(--ag-charts-background-color), var(--ag-charts-foreground-color) 2%) );--ag-charts-toolbar-shadow: var(--ag-charts-floating-shadow);--ag-charts-toolbar-size: 34px;--ag-charts-toolbar-size-small: 24px;--ag-charts-toolbar-border: var(--ag-charts-border-critical, solid 1px) var(--ag-charts-border-color);--ag-charts-toolbar-hover-color: color-mix( in srgb, var(--ag-charts-background-color), var(--ag-charts-active-color) 12% );--ag-charts-toolbar-focus-color: var(--ag-charts-active-color);--ag-charts-toolbar-active-background-color: var(--ag-charts-toolbar-hover-color);--ag-charts-toolbar-active-color: var(--ag-charts-active-color);--ag-charts-toolbar-disabled-foreground-color: var( --ag-disabled-foreground-color, color-mix(in srgb, transparent, var(--ag-charts-toolbar-foreground-color) 50%) );--ag-charts-toolbar-disabled-background-color: color-mix( in srgb, var(--ag-charts-toolbar-background-color), var(--ag-charts-toolbar-foreground-color) 6% );--ag-charts-toolbar-gap: var(--ag-charts-size);--ag-charts-toolbar-font-size: 13px;--ag-charts-toolbar-font-size-small: 12px;--ag-charts-toolbar-button-padding: 6px;--ag-charts-toolbar-button-padding-small: 1px;--ag-charts-popover-background-color: var(--ag-charts-toolbar-background-color);--ag-charts-popover-foreground-color: var(--ag-charts-toolbar-foreground-color);--ag-charts-popover-border: var(--ag-charts-toolbar-border);--ag-charts-popover-border-radius: var(--ag-border-radius, 4px);--ag-charts-popover-active-color: var(--ag-charts-toolbar-active-color);--ag-charts-popover-hover-color: var(--ag-charts-toolbar-hover-color);--ag-charts-popover-active-background-color: var(--ag-charts-toolbar-active-background-color);--ag-charts-popover-font-size: 14px;--ag-charts-popover-font-size-small: var(--ag-charts-toolbar-font-size-small);--ag-charts-popover-shadow: var(--ag-charts-floating-shadow);--ag-charts-dialog-input-group-label-color: color-mix(in srgb, transparent, var(--ag-charts-foreground-color) 55%);--ag-charts-dialog-tab-color--inactive: color-mix(in srgb, transparent, var(--ag-charts-foreground-color) 55%);--ag-charts-button-radius: var(--ag-border-radius, 4px);--ag-charts-focus-border-color: var(--ag-input-focus-border-color, var(--ag-charts-active-color));--ag-charts-focus-border: solid 1px var(--ag-charts-focus-border-color);--ag-charts-focus-border-shadow: var( --ag-input-focus-box-shadow, 0 0 0 3px color-mix(in srgb, transparent, var(--ag-input-focus-border-color, var(--ag-charts-active-color)) 20%) );--ag-charts-focus-box-shadow: var(--box-shadow), 0 0 0 2px #fff8, var(--ag-charts-focus-border-shadow);--ag-charts-icon-font-family: "agChartsDefault";--ag-charts-icon-font-weight: normal;--ag-charts-icon-font-color: color-mix(in srgb, transparent, var(--ag-charts-foreground-color), 90%);--ag-charts-icon-size: 20px;--ag-charts-input-background-color: var(--ag-charts-background-color);--ag-charts-input-background-color--hover: var(--ag-charts-hover-color);--ag-charts-input-background-color--active: var(--ag-charts-hover-color);--ag-charts-input-border-color: var(--ag-charts-border-color);--ag-charts-input-border-color--active: var(--ag-charts-active-color);--ag-charts-input-border-radius: var(--ag-border-radius, 4px);--ag-charts-input-color--active: var(--ag-charts-active-color);--ag-charts-input-focus-outline: var(--ag-charts-focus-border);--ag-charts-input-focus-box-shadow: var(--ag-charts-focus-border-shadow);--ag-charts-input-font-family: var(--ag-charts-font-family);--ag-charts-input-font-size: var(--ag-charts-font-size);--ag-charts-input-padding: 8px;--ag-charts-input-padding-large: 10px;--ag-charts-input-placeholder-color: #888888;--ag-charts-input-spacing: 8px;--ag-charts-input-transition-duration: .25s;--ag-charts-input-transition-duration--fast: .1s;--ag-charts-input-transition-timing-function: ease-out;--ag-charts-input-checkbox-background-color: #babbbc;--ag-charts-input-checkbox-background-color--checked: var(--ag-charts-active-color)}.ag-charts-theme-default-dark{--ag-charts-background-color: var(--ag-background-color, color-mix(in srgb, #fff, #182230 97%));--ag-charts-foreground-color: var(--ag-foreground-color, #fff);--ag-charts-border-color: var(--ag-border-color, rgba(255, 255, 255, .16));--ag-charts-hover-color: color-mix(in srgb, var(--ag-charts-background-color), var(--ag-charts-active-color) 18%);--ag-charts-floating-shadow: 0 2px 12px 0 color-mix(in srgb, black 33.3%, transparent);--ag-charts-axis-label-background-color: #9caebb;--ag-charts-axis-label-color: #000000;--ag-charts-tooltip-background-color: #28313e;--ag-charts-tooltip-border: 1px solid #474e59;--ag-charts-toolbar-background-color: var(--ag-header-background-color, color-mix(in srgb, #fff, #182230 93%));--ag-charts-toolbar-hover-color: color-mix( in srgb, var(--ag-charts-background-color), var(--ag-charts-active-color) 18% );--ag-charts-dialog-input-group-label-text-color: #ffffff;--ag-charts-focus-border-shadow: var( --ag-input-focus-box-shadow, 0 0 0 3px color-mix(in srgb, transparent, var(--ag-input-focus-border-color, var(--ag-charts-active-color)) 20%) );--ag-charts-input-placeholder-color: #aaaaaa}.ag-charts-icon{display:block;width:var(--ag-charts-icon-size);height:var(--ag-charts-icon-size);speak:none;speak:never;mask:var(--icon) center / contain no-repeat;background-color:currentColor;transition:background-color .25s ease-in-out}.ag-charts-icon-align-center{--icon: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjAiIGhlaWdodD0iMjAiIHZpZXdCb3g9IjAgMCAyMCAyMCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBmaWxsPSIjMDAwIiBkPSJNNyAxMGg2djFIN3pNNCA3aDEydjFINHptMSA2aDEwdjFINXoiLz48L3N2Zz4=)}.ag-charts-icon-align-left{--icon: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjAiIGhlaWdodD0iMjAiIHZpZXdCb3g9IjAgMCAyMCAyMCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBmaWxsPSIjMDAwIiBkPSJNNCAxMGg2djFINHptMC0zaDEydjFINHptMCA2aDEwdjFINHoiLz48L3N2Zz4=)}.ag-charts-icon-align-right{--icon: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjAiIGhlaWdodD0iMjAiIHZpZXdCb3g9IjAgMCAyMCAyMCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBmaWxsPSIjMDAwIiBkPSJNMTAgMTBoNnYxaC02ek00IDdoMTJ2MUg0em0yIDZoMTB2MUg2eiIvPjwvc3ZnPg==)}.ag-charts-icon-arrow-drawing{--icon: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjAiIGhlaWdodD0iMjAiIHZpZXdCb3g9IjAgMCAyMCAyMCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBmaWxsLXJ1bGU9ImV2ZW5vZGQiIGNsaXAtcnVsZT0iZXZlbm9kZCIgZD0iTTE1LjI5MyA0LjVIMTIuNXYtMUgxN3Y0aC0xVjUuMjA3bC05LjY0NiA5LjY0Ny0uNzA4LS43MDh6IiBmaWxsPSIjMDAwIi8+PHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik03IDE2YTIuNSAyLjUgMCAxIDEtNSAwIDIuNSAyLjUgMCAwIDEgNSAwbS0yLjUgMS41YTEuNSAxLjUgMCAxIDAgMC0zIDEuNSAxLjUgMCAwIDAgMCAzIiBmaWxsPSIjMDAwIi8+PC9zdmc+)}.ag-charts-icon-arrow-down-drawing{--icon: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjAiIGhlaWdodD0iMjAiIHZpZXdCb3g9IjAgMCAyMCAyMCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik02IDhMMS41IDhMMTAgMThMMTguNSA4TDE0IDhMMTQgM0w2IDNMNiA4Wk03IDRMNyA5SDMuNjYyNDRMMTAgMTYuNDU2TDE2LjMzNzYgOUwxMyA5TDEzIDRMNyA0WiIgZmlsbD0iYmxhY2siLz4KPC9zdmc+Cg==)}.ag-charts-icon-arrow-up-drawing{--icon: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjAiIGhlaWdodD0iMjAiIHZpZXdCb3g9IjAgMCAyMCAyMCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik0xNCAxMkgxOC41TDEwIDJMMS41IDEySDZMNi4wMDAwMiAxN0gxNFYxMlpNMTMgMTZWMTFIMTYuMzM3NkwxMCAzLjU0NDA1TDMuNjYyNDQgMTFIN0w3LjAwMDAyIDE2SDEzWiIgZmlsbD0iYmxhY2siLz4KPC9zdmc+Cg==)}.ag-charts-icon-callout-annotation{--icon: url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyMCIgaGVpZ2h0PSIyMCIgZmlsbD0ibm9uZSI+PHBhdGggZmlsbD0iIzAwMCIgZmlsbC1ydWxlPSJldmVub2RkIiBkPSJNMyA0LjVBMS41IDEuNSAwIDAgMSA0LjUgM2gxMUExLjUgMS41IDAgMCAxIDE3IDQuNXY4YTEuNSAxLjUgMCAwIDEtMS41IDEuNWgtNC41MTRhMjYgMjYgMCAwIDAtMi4wMTcgMS41NGwtLjMxNC4yNmMtLjU1LjQ1Ny0xLjExNS45MjYtMS43NiAxLjQtLjY2OS40OTEtMS41NjItLjAxMi0xLjU2Mi0uOFYxNEg0LjVBMS41IDEuNSAwIDAgMSAzIDEyLjV6TTQuNSA0YS41LjUgMCAwIDAtLjUuNXY4YS41LjUgMCAwIDAgLjUuNWgxLjgzM3YzLjM3MmEzNiAzNiAwIDAgMCAxLjY3OC0xLjMzOGwuMzItLjI2NWEyNiAyNiAwIDAgMSAyLjIyNS0xLjY4NWwuMTI2LS4wODRIMTUuNWEuNS41IDAgMCAwIC41LS41di04YS41LjUgMCAwIDAtLjUtLjV6IiBjbGlwLXJ1bGU9ImV2ZW5vZGQiLz48L3N2Zz4=)}.ag-charts-icon-candlestick-series{--icon: url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyMCIgaGVpZ2h0PSIyMCIgZmlsbD0ibm9uZSI+PHBhdGggZmlsbD0iIzEzMTcyMiIgZmlsbC1ydWxlPSJldmVub2RkIiBkPSJNNyAxdjNoMnYxMkg3djNINnYtM0g0VjRoMlYxek01IDVoM3YxMEg1ek0xMSAxNFY2aDJWMy4yNWgxVjZoMnY4aC0ydjIuNzVoLTFWMTR6bTEtN2gzdjZoLTN6IiBjbGlwLXJ1bGU9ImV2ZW5vZGQiLz48L3N2Zz4=)}.ag-charts-icon-close{--icon: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjAiIGhlaWdodD0iMjAiIHZpZXdCb3g9IjAgMCAyMCAyMCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBkPSJtNSA1IDEwIDEwTTUgMTUgMTUgNSIgc3Ryb2tlPSIjMDAwIi8+PC9zdmc+)}.ag-charts-icon-comment-annotation{--icon: url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyMCIgaGVpZ2h0PSIyMCIgZmlsbD0ibm9uZSI+PHBhdGggZmlsbD0iIzAwMCIgZmlsbC1ydWxlPSJldmVub2RkIiBkPSJNNy41MTMgMy45OTVhNi41IDYuNSAwIDAgMSA2LjA5OCAxMS40MWMtLjU4OC4zOTMtMS4yMTcuNTM2LTEuODI5LjU4NWExMyAxMyAwIDAgMS0xLjI3LjAxN0EyNyAyNyAwIDAgMCAxMCAxNkg0LjVhLjUuNSAwIDAgMS0uNS0uNVYxMHEwLS4yNDctLjAwNy0uNTEzYy0uMDA4LS40MTYtLjAxNi0uODU3LjAxNy0xLjI2OS4wNS0uNjEyLjE5Mi0xLjI0LjU4NS0xLjgzYTYuNSA2LjUgMCAwIDEgMi45MTgtMi4zOTNtMy41Ni42MWE1LjUgNS41IDAgMCAwLTUuNjQ2IDIuMzRjLS4yNjYuMzk3LS4zNzkuODQyLS40MiAxLjM1NC0uMDMuMzYtLjAyMi43MTgtLjAxNSAxLjEwOFE1IDkuNjg5IDUgMTB2NWg1cS4zMTEuMDAxLjU5My4wMDhjLjM5LjAwNy43NDcuMDE1IDEuMTA4LS4wMTUuNTEyLS4wNDEuOTU3LS4xNTQgMS4zNTUtLjQyYTUuNSA1LjUgMCAwIDAtMS45ODMtOS45NjciIGNsaXAtcnVsZT0iZXZlbm9kZCIvPjwvc3ZnPg==)}.ag-charts-icon-crosshair-add-line{--icon: url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyMCIgaGVpZ2h0PSIyMCIgZmlsbD0ibm9uZSI+PHBhdGggZmlsbD0iIzAwMCIgZD0iTTEwIDUuNWEuNS41IDAgMCAxIC41LjV2My41aDMuODc1YS41LjUgMCAwIDEgMCAxSDEwLjV2NC4yNWEuNS41IDAgMSAxLTEgMFYxMC41SDUuNjI1YS41LjUgMCAxIDEgMC0xSDkuNVY2YS41LjUgMCAwIDEgLjUtLjUiLz48L3N2Zz4=)}.ag-charts-icon-date-range-drawing{--icon: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjAiIGhlaWdodD0iMjAiIHZpZXdCb3g9IjAgMCAyMCAyMCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBkPSJNMiAyaDF2MTZIMnptMTUgMGgxdjE2aC0xeiIgZmlsbD0iIzE4MUQxRiIvPjxwYXRoIGQ9Ik0xMy4xNTcgMTFINXYtMWg3Ljc5M0wxMSA4LjIwN2wuNzA3LS43MDcgMy4xODIgMy4xODItMy4xODIgMy4xODItLjcwNy0uNzA3eiIgZmlsbD0iIzAwMCIvPjwvc3ZnPg==)}.ag-charts-icon-date-price-range-drawing{--icon: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjAiIGhlaWdodD0iMjAiIHZpZXdCb3g9IjAgMCAyMCAyMCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBkPSJNMyAySDJ2MTZoMXptMy41MDcgNC44OUw4LjUgNC44OTVWMTBINXYxaDMuNXY3aDF2LTdoNS4wODhsLTEuOTU3IDEuOTU3LjcwNy43MDcgMy4xODItMy4xODJMMTMuMzM4IDcuM2wtLjcwNy43MDdMMTQuNjI0IDEwSDkuNVY0LjkzMmwxLjk1NyAxLjk1Ny43MDctLjcwN0w4Ljk4MiAzIDUuOCA2LjE4MnoiIGZpbGw9IiMxODFEMUYiLz48L3N2Zz4=)}.ag-charts-icon-delete{--icon: url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyMCIgaGVpZ2h0PSIyMCIgZmlsbD0ibm9uZSI+PHBhdGggZmlsbD0iIzEzMTcyMiIgZD0iTTguNDk2IDguOTk2QS41LjUgMCAwIDEgOSA5LjQ5MnY0YS41LjUgMCAxIDEtMSAuMDA4di00YS41LjUgMCAwIDEgLjQ5Ni0uNTA0TTEyIDkuNWEuNS41IDAgMCAwLTEgMHY0YS41LjUgMCAwIDAgMSAweiIvPjxwYXRoIGZpbGw9IiMxMzE3MjIiIGZpbGwtcnVsZT0iZXZlbm9kZCIgZD0iTTYgNVYzLjVBMi41IDIuNSAwIDAgMSA4LjUgMWgzQTIuNSAyLjUgMCAwIDEgMTQgMy41VjVoMi44MzNhLjUuNSAwIDAgMSAwIDFIMTV2MTAuMjVjMCAuNDE1LS4wNjYuODYzLS4zIDEuMjIxLS4yNTcuMzk0LS42NzIuNjEyLTEuMi42MTJoLTdjLS41MjggMC0uOTQzLS4yMTgtMS4yLS42MTItLjIzNC0uMzU4LS4zLS44MDYtLjMtMS4yMjFWNkgzLjMzM2EuNS41IDAgMCAxIDAtMXptMS0xLjVBMS41IDEuNSAwIDAgMSA4LjUgMmgzQTEuNSAxLjUgMCAwIDEgMTMgMy41VjVIN3pNNiAxNi4yNVY2aDh2MTAuMjVjMCAuMzM1LS4wNTkuNTU0LS4xMzguNjc1LS4wNTUuMDg1LS4xNC4xNTgtLjM2Mi4xNThoLTdjLS4yMjIgMC0uMzA3LS4wNzMtLjM2Mi0uMTU4LS4wOC0uMTIxLS4xMzgtLjM0LS4xMzgtLjY3NSIgY2xpcC1ydWxlPSJldmVub2RkIi8+PC9zdmc+)}.ag-charts-icon-disjoint-channel,.ag-charts-icon-disjoint-channel-drawing{--icon: url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyMCIgaGVpZ2h0PSIyMCIgZmlsbD0ibm9uZSI+PHBhdGggZmlsbD0iIzEzMTcyMiIgZmlsbC1ydWxlPSJldmVub2RkIiBkPSJNMTkuMDI4IDE3LjQ2YTIuMjUgMi4yNSAwIDAgMC00LjA5Mi0xLjg1bC05LjUxMS0yLjM3OGEyLjI1IDIuMjUgMCAxIDAtLjIyNS45NzRsOS40NzUgMi4zNjlhMi4yNTEgMi4yNTEgMCAwIDAgNC4zNTMuODg2bS0xLjY2Mi0xLjk2NWExLjI1IDEuMjUgMCAxIDEtLjg4NSAyLjMzOCAxLjI1IDEuMjUgMCAwIDEgLjg4NS0yLjMzOE00LjM0MyAxMy42NjlhMS4yNSAxLjI1IDAgMSAwLTIuMzM4LS44ODUgMS4yNSAxLjI1IDAgMCAwIDIuMzM4Ljg4NU0zLjk3IDguNzY5YTIuMjUgMi4yNSAwIDAgMCAxLjQ1NS0yLjExbDkuNTExLTIuMzc4YTIuMjUgMi4yNSAwIDEgMC0uMjYtLjk2NUw1LjIgNS42ODVhMi4yNSAyLjI1IDAgMSAwLTEuMjMgMy4wODRtLjM3My0yLjU0N2ExLjI1IDEuMjUgMCAxIDEtMi4zMzguODg1IDEuMjUgMS4yNSAwIDAgMSAyLjMzOC0uODg1bTEzLjc1LTMuNDM4YTEuMjUgMS4yNSAwIDEgMS0yLjMzOC44ODUgMS4yNSAxLjI1IDAgMCAxIDIuMzM4LS44ODUiIGNsaXAtcnVsZT0iZXZlbm9kZCIvPjwvc3ZnPg==)}.ag-charts-icon-drag-handle{--icon: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjAiIGhlaWdodD0iMjAiIHZpZXdCb3g9IjAgMCAyMCAyMCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48Y2lyY2xlIGN4PSI1Ljc1IiBjeT0iNy43NSIgcj0iLjc1IiBmaWxsPSIjMDAwIiBmaWxsLW9wYWNpdHk9Ii41Ii8+PGNpcmNsZSBjeD0iOS43NSIgY3k9IjcuNzUiIHI9Ii43NSIgZmlsbD0iIzAwMCIgZmlsbC1vcGFjaXR5PSIuNSIvPjxjaXJjbGUgY3g9IjEzLjc1IiBjeT0iNy43NSIgcj0iLjc1IiBmaWxsPSIjMDAwIiBmaWxsLW9wYWNpdHk9Ii41Ii8+PGNpcmNsZSBjeD0iMTMuNzUiIGN5PSIxMS43NSIgcj0iLjc1IiBmaWxsPSIjMDAwIiBmaWxsLW9wYWNpdHk9Ii41Ii8+PGNpcmNsZSBjeD0iOS43NSIgY3k9IjExLjc1IiByPSIuNzUiIGZpbGw9IiMwMDAiIGZpbGwtb3BhY2l0eT0iLjUiLz48Y2lyY2xlIGN4PSI1Ljc1IiBjeT0iMTEuNzUiIHI9Ii43NSIgZmlsbD0iIzAwMCIgZmlsbC1vcGFjaXR5PSIuNSIvPjwvc3ZnPg==)}.ag-charts-icon-fibonacci-retracement-drawing{--icon: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjAiIGhlaWdodD0iMjAiIHZpZXdCb3g9IjAgMCAyMCAyMCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBmaWxsPSIjMDAwIiBkPSJNMiA1aDEydjFIMnoiLz48Y2lyY2xlIGN4PSIxNS43NSIgY3k9IjUuNSIgcj0iMS43NSIgc3Ryb2tlPSIjMDAwIi8+PGNpcmNsZSBjeD0iNC4yNSIgY3k9IjE0LjUiIHI9IjEuNzUiIHN0cm9rZT0iIzAwMCIvPjxwYXRoIGZpbGw9IiMwMDAiIGQ9Ik0xOCAxNUg2di0xaDEyem0wLTQuNUgydi0xaDE2eiIvPjwvc3ZnPg==)}.ag-charts-icon-fill-color{--icon: url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyMCIgaGVpZ2h0PSIyMCIgZmlsbD0ibm9uZSI+PHBhdGggZmlsbD0iIzAwMCIgZmlsbC1ydWxlPSJldmVub2RkIiBkPSJtOC4wNzEgNC4wNi0uOTI0LS45MjQuNzA3LS43MDcgNy4yODggNy4yODgtNC45NSA0Ljk1YTMuNSAzLjUgMCAwIDEtNC45NSAwbC0xLjQxNC0xLjQxNGEzLjUgMy41IDAgMCAxIDAtNC45NXptLjcwNy43MDhMNC41MzYgOS4wMWEyLjUgMi41IDAgMCAwIDAgMy41MzZMNS45NSAxMy45NmEyLjUgMi41IDAgMCAwIDMuNTM1IDBsNC4yNDMtNC4yNDN6bTYuOSA3LjIwMi0uMzQ1LjM2My0uMzQ0LS4zNjNhLjUuNSAwIDAgMSAuNjg4IDBtLS4zNDUgMS4wOGE4IDggMCAwIDAtLjI4LjMyMyA0LjMgNC4zIDAgMCAwLS40MDkuNTgyYy0uMTEzLjIwMS0uMTQ0LjMyNi0uMTQ0LjM3OGEuODMzLjgzMyAwIDAgMCAxLjY2NyAwYzAtLjA1Mi0uMDMxLS4xNzctLjE0NC0uMzc4YTQuMyA0LjMgMCAwIDAtLjQxLS41ODIgOCA4IDAgMCAwLS4yOC0uMzIybS0uMzQ0LTEuMDguMzQ0LjM2My4zNDQtLjM2My4wMDIuMDAyLjAwNC4wMDQuMDEzLjAxMmE2IDYgMCAwIDEgLjIwNi4yMDhjLjEzMS4xMzYuMzA4LjMyNy40ODUuNTQ1LjE3Ni4yMTUuMzYzLjQ2Ny41MDcuNzI0LjEzNy4yNDMuMjczLjU1My4yNzMuODY4YTEuODMzIDEuODMzIDAgMSAxLTMuNjY3IDBjMC0uMzE1LjEzNi0uNjI1LjI3My0uODY4LjE0NC0uMjU3LjMzLS41MDkuNTA3LS43MjRhOSA5IDAgMCAxIC42NDUtLjcwOGwuMDQ2LS4wNDUuMDEzLS4wMTIuMDA0LS4wMDR6IiBjbGlwLXJ1bGU9ImV2ZW5vZGQiLz48L3N2Zz4=)}.ag-charts-icon-hollow-candlestick-series{--icon: url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyMCIgaGVpZ2h0PSIyMCIgZmlsbD0ibm9uZSI+PHBhdGggZmlsbD0iIzEzMTcyMiIgZmlsbC1vcGFjaXR5PSIuMTUiIGQ9Ik01IDVoM3YxMEg1eiIvPjxwYXRoIGZpbGw9IiMxMzE3MjIiIGZpbGwtcnVsZT0iZXZlbm9kZCIgZD0iTTcgMXYzaDJ2MTJIN3YzSDZ2LTNINFY0aDJWMXpNNSA1aDN2MTBINXptNyAyaDN2NmgtM3ptLTEgN1Y2aDJWMy4yNWgxVjZoMnY4aC0ydjIuNzVoLTFWMTR6IiBjbGlwLXJ1bGU9ImV2ZW5vZGQiLz48L3N2Zz4=)}.ag-charts-icon-horizontal-line,.ag-charts-icon-horizontal-line-drawing{--icon: url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyMCIgaGVpZ2h0PSIyMCIgZmlsbD0ibm9uZSI+PHBhdGggZmlsbD0iIzEzMTcyMiIgZmlsbC1ydWxlPSJldmVub2RkIiBkPSJNLjUgOS41aDcuMzA2YTIuMjUgMi4yNSAwIDAgMSA0LjM4OCAwSDE5LjV2MWgtNy4zMDZhMi4yNSAyLjI1IDAgMCAxLTQuMzg4IDBILjV6bTkuNSAxLjc1YTEuMjUgMS4yNSAwIDEgMCAwLTIuNSAxLjI1IDEuMjUgMCAwIDAgMCAyLjUiIGNsaXAtcnVsZT0iZXZlbm9kZCIvPjwvc3ZnPg==)}.ag-charts-icon-line-color{--icon: url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyMCIgaGVpZ2h0PSIyMCIgZmlsbD0ibm9uZSI+PHBhdGggZmlsbD0iIzAwMCIgZmlsbC1ydWxlPSJldmVub2RkIiBkPSJNMTQuMjQyIDIuNzIyYy0uNjEyIDAtMS4yLjI0My0xLjYzMi42NzVsLTEuMzQzIDEuMzQ0YS41LjUgMCAwIDAtLjExMi4xMTJMNC4wNSAxMS45NTljLS4yMDcuMjA3LS4zNi40Ni0uNDQ2Ljc0di4wMDFsLS42OSAyLjc2N3YuMDAyYS44Mi44MiAwIDAgMCAxLjAyMiAxLjAyMWguMDAybDIuNjM0LS44MjJjLjI4LS4wODUuNTM0LS4yMzcuNzQtLjQ0M2w3LjEwNy03LjEwOGEuNS41IDAgMCAwIC4xMTItLjExMmwxLjM0My0xLjM0M2EyLjMwOCAyLjMwOCAwIDAgMC0xLjYzMi0zLjk0TTE0LjEyMiA3bDEuMDQ0LTEuMDQ1YTEuMzA4IDEuMzA4IDAgMSAwLTEuODQ5LTEuODVMMTIuMjcxIDUuMTV6bS0yLjU1OC0xLjE0Mi02LjgwNyA2LjgwOWEuOC44IDAgMCAwLS4xOTYuMzI1bC0uNzUgMi40NjggMi40Ny0uNzQ5YS44LjggMCAwIDAgLjMyNS0uMTk0bDYuODA4LTYuODF6IiBjbGlwLXJ1bGU9ImV2ZW5vZGQiLz48L3N2Zz4=)}.ag-charts-icon-line-series{--icon: url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyMCIgaGVpZ2h0PSIyMCIgZmlsbD0ibm9uZSI+PHBhdGggZmlsbD0iIzEzMTcyMiIgZmlsbC1ydWxlPSJldmVub2RkIiBkPSJtMTcuMzYyIDQuODczLTQuNTk0IDYuNjU0LTQuODUtMy4zMTctNC4yNTEgNi45NzctLjg1NC0uNTJMNy42MTIgNi43OWw0Ljg5OSAzLjM1IDQuMDI4LTUuODM2eiIgY2xpcC1ydWxlPSJldmVub2RkIi8+PC9zdmc+)}.ag-charts-icon-line-style-dashed{--icon: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjAiIGhlaWdodD0iMjAiIHZpZXdCb3g9IjAgMCAyMCAyMCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBmaWxsPSIjMDAwIiBkPSJNMiA5aDR2MUgyem0xMiAwaDR2MWgtNHpNOCA5aDR2MUg4eiIvPjwvc3ZnPg==)}.ag-charts-icon-line-style-dotted{--icon: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjAiIGhlaWdodD0iMjAiIHZpZXdCb3g9IjAgMCAyMCAyMCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48Y2lyY2xlIGN4PSIyLjUiIGN5PSI5LjUiIHI9Ii41IiBmaWxsPSIjMDAwIi8+PGNpcmNsZSBjeD0iNC41IiBjeT0iOS41IiByPSIuNSIgZmlsbD0iIzAwMCIvPjxjaXJjbGUgY3g9IjYuNSIgY3k9IjkuNSIgcj0iLjUiIGZpbGw9IiMwMDAiLz48Y2lyY2xlIGN4PSI4LjUiIGN5PSI5LjUiIHI9Ii41IiBmaWxsPSIjMDAwIi8+PGNpcmNsZSBjeD0iMTAuNSIgY3k9IjkuNSIgcj0iLjUiIGZpbGw9IiMwMDAiLz48Y2lyY2xlIGN4PSIxMi41IiBjeT0iOS41IiByPSIuNSIgZmlsbD0iIzAwMCIvPjxjaXJjbGUgY3g9IjE0LjUiIGN5PSI5LjUiIHI9Ii41IiBmaWxsPSIjMDAwIi8+PGNpcmNsZSBjeD0iMTYuNSIgY3k9IjkuNSIgcj0iLjUiIGZpbGw9IiMwMDAiLz48L3N2Zz4=)}.ag-charts-icon-line-style-solid{--icon: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjAiIGhlaWdodD0iMjAiIHZpZXdCb3g9IjAgMCAyMCAyMCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBmaWxsPSIjMDAwIiBkPSJNMiA5aDE2djFIMnoiLz48L3N2Zz4=)}.ag-charts-icon-line-with-markers-series{--icon: url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyMCIgaGVpZ2h0PSIyMCIgZmlsbD0ibm9uZSI+PHBhdGggZmlsbD0iIzEzMTcyMiIgZmlsbC1ydWxlPSJldmVub2RkIiBkPSJtMTguMTk4IDQuODg4LTMuNTU2IDQuOTE4YTIuMjUgMi4yNSAwIDEgMS0zLjg2Ni43NWwtMS40MzItLjlhMi4yNCAyLjI0IDAgMCAxLTIuMDA5LjQzNWwtMy44MjggNi40MjgtLjg2LS41MTJMNi40NSA5LjYyM2EyLjI1IDIuMjUgMCAxIDEgMy41MS0uNzYxbDEuMzI5LjgzNWEyLjI0IDIuMjQgMCAwIDEgMi41NTctLjQ5N2wzLjU0Mi00Ljg5OHptLTQuOTYgNS4xNTNhMS4yNSAxLjI1IDAgMSAwLS42NCAyLjQxOSAxLjI1IDEuMjUgMCAwIDAgLjY0LTIuNDE5TTkuMSA4LjMyMXEuMDY2LS4xOTIuMDY3LS40MDRhMS4yNSAxLjI1IDAgMSAwLS4wNjcuNDA0IiBjbGlwLXJ1bGU9ImV2ZW5vZGQiLz48L3N2Zz4=)}.ag-charts-icon-lock,.ag-charts-icon-locked{--icon: url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyMCIgaGVpZ2h0PSIyMCIgZmlsbD0ibm9uZSI+PHBhdGggZmlsbD0iIzAwMCIgZmlsbC1ydWxlPSJldmVub2RkIiBkPSJNMTAuMjA3IDMuNzY0YTIuODk0IDIuODk0IDAgMCAwLTIuODk1IDIuODk0VjloNS43ODlWNi42NThhMi44OTQgMi44OTQgMCAwIDAtMi44OTUtMi44OTRNMTQuMSA5VjYuNjU4YTMuODk0IDMuODk0IDAgMSAwLTcuNzg5IDB2Mi4zNDlBMi41IDIuNSAwIDAgMCA0IDExLjV2M0EyLjUgMi41IDAgMCAwIDYuNSAxN2g4YTIuNSAyLjUgMCAwIDAgMi41LTIuNXYtM0EyLjUgMi41IDAgMCAwIDE0LjUgOXpNNi41IDEwQTEuNSAxLjUgMCAwIDAgNSAxMS41djNBMS41IDEuNSAwIDAgMCA2LjUgMTZoOGExLjUgMS41IDAgMCAwIDEuNS0xLjV2LTNhMS41IDEuNSAwIDAgMC0xLjUtMS41eiIgY2xpcC1ydWxlPSJldmVub2RkIi8+PC9zdmc+)}.ag-charts-icon-measurer-drawing{--icon: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjAiIGhlaWdodD0iMjAiIHZpZXdCb3g9IjAgMCAyMCAyMCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBmaWxsLXJ1bGU9ImV2ZW5vZGQiIGNsaXAtcnVsZT0iZXZlbm9kZCIgZD0ibTQuNDYxIDEyLjcxIDEuNTMyLTEuNTMxIDEuNDE0IDEuNDE0LjcwNy0uNzA3TDYuNyAxMC40NzJsMS41MzItMS41MzMgMiAyIC43MDctLjcwNy0yLTIgNi4wMS02LjAxIDIuODMgMi44MjhMNS4wNSAxNy43NzggMi4yMjIgMTQuOTVsMS41MzItMS41MzIgMS40MTQgMS40MTQuNzA3LS43MDd6TS44MDggMTQuOTVsLjcwNy0uNzA3TDE0LjI0MyAxLjUxNWwuNzA3LS43MDcuNzA3LjcwNyAyLjgyOCAyLjgyOC43MDcuNzA3LS43MDcuNzA3TDUuNzU3IDE4LjQ4NWwtLjcwNy43MDctLjcwNy0uNzA3LTIuODI4LTIuODI4em0xMS4wNzgtNi44MzVMMTAuNDcgNi43bC43MDctLjcwNyAxLjQxNSAxLjQxNHptLjgyNC0zLjY1NCAxIDEgLjcwOC0uNzA3LTEtMXoiIGZpbGw9IiMxODFEMUYiLz48L3N2Zz4=)}.ag-charts-icon-note-annotation{--icon: url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyMCIgaGVpZ2h0PSIyMCIgZmlsbD0ibm9uZSI+PHBhdGggZmlsbD0iIzAwMCIgZmlsbC1ydWxlPSJldmVub2RkIiBkPSJNMyA0LjVBMS41IDEuNSAwIDAgMSA0LjUgM2gxMUExLjUgMS41IDAgMCAxIDE3IDQuNXY4YTEuNSAxLjUgMCAwIDEtMS41IDEuNWgtMy4yMWwtMS40NjkgMi41N2ExIDEgMCAwIDEtMS42ODIuMDg1TDcuMjQzIDE0SDQuNUExLjUgMS41IDAgMCAxIDMgMTIuNXpNNC41IDRhLjUuNSAwIDAgMC0uNS41djhhLjUuNSAwIDAgMCAuNS41aDMuMjU3bDIuMTk2IDMuMDc0TDExLjcxIDEzaDMuNzlhLjUuNSAwIDAgMCAuNS0uNXYtOGEuNS41IDAgMCAwLS41LS41eiIgY2xpcC1ydWxlPSJldmVub2RkIi8+PHBhdGggZmlsbD0iIzAwMCIgZmlsbC1ydWxlPSJldmVub2RkIiBkPSJNNi41IDYuNUEuNS41IDAgMCAxIDcgNmg2YS41LjUgMCAwIDEgMCAxSDdhLjUuNSAwIDAgMS0uNS0uNU02LjUgOS41QS41LjUgMCAwIDEgNyA5aDZhLjUuNSAwIDAgMSAwIDFIN2EuNS41IDAgMCAxLS41LS41IiBjbGlwLXJ1bGU9ImV2ZW5vZGQiLz48L3N2Zz4=)}.ag-charts-icon-ohlc-series{--icon: url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyMCIgaGVpZ2h0PSIyMCIgZmlsbD0ibm9uZSI+PHBhdGggZmlsbD0iIzEzMTcyMiIgZD0iTTEzIDExaC0zdi0xaDNWM2gxdjJoNHYxaC00djExaC0xek02IDE3di0yaDN2LTFINlY0SDV2MUgydjFoM3YxMXoiLz48L3N2Zz4=)}.ag-charts-icon-pan-end{--icon: url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyMCIgaGVpZ2h0PSIyMCIgZmlsbD0ibm9uZSI+PHBhdGggZmlsbD0iIzAwMCIgZD0ibTYuNjQ2IDEzLjgxMy0uMzUzLjM1NC43MDcuNzA3LjM1NC0uMzU0ek0xMS4xNjYgMTBsLjM1NC4zNTQuMzU0LS4zNTQtLjM1NC0uMzU0ek03LjM1NSA1LjQ4IDcgNS4xMjZsLS43MDcuNzA3LjM1My4zNTR6bTAgOS4wNCA0LjE2Ni00LjE2Ni0uNzA3LS43MDgtNC4xNjcgNC4xNjd6bTQuMTY2LTQuODc0TDcuMzU0IDUuNDhsLS43MDguNzA3IDQuMTY3IDQuMTY3ek0xMy4wODMgNXYxMGgxVjV6Ii8+PC9zdmc+)}.ag-charts-icon-pan-left{--icon: url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyMCIgaGVpZ2h0PSIyMCIgZmlsbD0ibm9uZSI+PHBhdGggZmlsbD0iIzAwMCIgZmlsbC1ydWxlPSJldmVub2RkIiBkPSJNMTIuNzkgNS44MzMgOC42MjUgMTBsNC4xNjYgNC4xNjctLjcwNy43MDdMNy4yMSAxMGw0Ljg3My00Ljg3NHoiIGNsaXAtcnVsZT0iZXZlbm9kZCIvPjwvc3ZnPg==)}.ag-charts-icon-pan-right{--icon: url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyMCIgaGVpZ2h0PSIyMCIgZmlsbD0ibm9uZSI+PHBhdGggZmlsbD0iIzAwMCIgZmlsbC1ydWxlPSJldmVub2RkIiBkPSJNNy4yMSAxNC4xNjcgMTEuMzc2IDEwIDcuMjEgNS44MzNsLjcwNy0uNzA3TDEyLjc5IDEwbC00Ljg3MyA0Ljg3NHoiIGNsaXAtcnVsZT0iZXZlbm9kZCIvPjwvc3ZnPg==)}.ag-charts-icon-pan-start{--icon: url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyMCIgaGVpZ2h0PSIyMCIgZmlsbD0ibm9uZSI+PHBhdGggZmlsbD0iIzAwMCIgZD0iTTYgNXYxMGgxVjV6TTkuNjI0IDEwbDQuMTY2LTQuMTY3LS43MDctLjcwN0w4LjIxIDEwbDQuODc0IDQuODc0LjcwNy0uNzA3eiIvPjwvc3ZnPg==)}.ag-charts-icon-parallel-channel,.ag-charts-icon-parallel-channel-drawing{--icon: url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyMCIgaGVpZ2h0PSIyMCIgZmlsbD0ibm9uZSI+PHBhdGggZmlsbD0iIzEzMTcyMiIgZmlsbC1ydWxlPSJldmVub2RkIiBkPSJNMTcuNzIgNS4zMzFBMi4yNSAyLjI1IDAgMSAwIDE0LjcwNSAzLjZsLTkuNDkgNC41NjJhMi4yNSAyLjI1IDAgMSAwIC4yMDkgMS4wMWw5LjY2Mi00LjY0NmEyLjI1IDIuMjUgMCAwIDAgMi42MzQuODA1bS4zNzMtMi41NDdhMS4yNSAxLjI1IDAgMSAxLTIuMzM4Ljg4NSAxLjI1IDEuMjUgMCAwIDEgMi4zMzgtLjg4NU00LjM0MyA4LjY3YTEuMjUgMS4yNSAwIDEgMS0yLjMzOC44ODUgMS4yNSAxLjI1IDAgMCAxIDIuMzM4LS44ODVNNS4zMDcgMTYuNzI4YTIuMjUgMi4yNSAwIDEgMS0uNTI1LS44NThsOS45MjMtNC43N2EyLjI1IDIuMjUgMCAxIDEgLjM4MS45MjZ6bS0uOTY0LjI3NGExLjI1IDEuMjUgMCAxIDEtMi4zMzguODg1IDEuMjUgMS4yNSAwIDAgMSAyLjMzOC0uODg1bTEzLjAyMy01LjEwNmExLjI1IDEuMjUgMCAxIDAtLjg4NS0yLjMzOSAxLjI1IDEuMjUgMCAwIDAgLjg4NSAyLjMzOSIgY2xpcC1ydWxlPSJldmVub2RkIi8+PC9zdmc+)}.ag-charts-icon-position-bottom{--icon: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjAiIGhlaWdodD0iMjAiIHZpZXdCb3g9IjAgMCAyMCAyMCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBmaWxsPSIjMDAwIiBmaWxsLW9wYWNpdHk9Ii4yNSIgZD0iTTMgMTBoMTR2MUgzem0zLTNoOHYxSDZ6Ii8+PHBhdGggZmlsbD0iIzAwMCIgZD0iTTYgMTNoOHYxSDZ6Ii8+PC9zdmc+)}.ag-charts-icon-position-center{--icon: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjAiIGhlaWdodD0iMjAiIHZpZXdCb3g9IjAgMCAyMCAyMCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBmaWxsPSIjMDAwIiBkPSJNMyAxMGgxNHYxSDN6Ii8+PHBhdGggZmlsbD0iIzAwMCIgZmlsbC1vcGFjaXR5PSIuMjUiIGQ9Ik02IDdoOHYxSDZ6bTAgNmg4djFINnoiLz48L3N2Zz4=)}.ag-charts-icon-position-top{--icon: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjAiIGhlaWdodD0iMjAiIHZpZXdCb3g9IjAgMCAyMCAyMCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBmaWxsPSIjMDAwIiBmaWxsLW9wYWNpdHk9Ii4yNSIgZD0iTTMgMTBoMTR2MUgzeiIvPjxwYXRoIGZpbGw9IiMwMDAiIGQ9Ik02IDdoOHYxSDZ6Ii8+PHBhdGggZmlsbD0iIzAwMCIgZmlsbC1vcGFjaXR5PSIuMjUiIGQ9Ik02IDEzaDh2MUg2eiIvPjwvc3ZnPg==)}.ag-charts-icon-price-label-annotation{--icon: url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyMCIgaGVpZ2h0PSIyMCIgZmlsbD0ibm9uZSI+PHBhdGggZmlsbD0iIzAwMCIgZmlsbC1ydWxlPSJldmVub2RkIiBkPSJNNC41IDNBMS41IDEuNSAwIDAgMCAzIDQuNVYxM2ExLjUgMS41IDAgMCAwIDEuNSAxLjVoLjgzM3YuMDU3Yy4yNDItLjI5OS41OTctLjUwMyAxLS41NDhWMTMuNUg0LjVBLjUuNSAwIDAgMSA0IDEzVjQuNWEuNS41IDAgMCAxIC41LS41aDExYS41LjUgMCAwIDEgLjUuNXY4YS41LjUgMCAwIDEtLjUuNWgtNC44MThsLS4xMjYuMDg0YTI2IDI2IDAgMCAwLTIuMjI1IDEuNjg1bC0uMzIuMjY1LS4wNjguMDU2YTEuNSAxLjUgMCAwIDEtMi42MDkgMS4zNTRjLjAzMy43NjMuOTA1IDEuMjM4IDEuNTYuNzU2LjY0Ni0uNDc0IDEuMjEtLjk0MyAxLjc2MS0xLjRsLjMxMy0uMjZBMjYgMjYgMCAwIDEgMTAuOTg2IDE0SDE1LjVhMS41IDEuNSAwIDAgMCAxLjUtMS41di04QTEuNSAxLjUgMCAwIDAgMTUuNSAzeiIgY2xpcC1ydWxlPSJldmVub2RkIi8+PHBhdGggZmlsbD0iIzEzMTcyMiIgZmlsbC1ydWxlPSJldmVub2RkIiBkPSJNOC43MTYgMTQuODE1YTIuMjUgMi4yNSAwIDEgMS00LjIxIDEuNTkzIDIuMjUgMi4yNSAwIDAgMSA0LjIxLTEuNTkzbS0xLjY2MiAxLjk2NmExLjI1IDEuMjUgMCAxIDAtLjg4NS0yLjMzOSAxLjI1IDEuMjUgMCAwIDAgLjg4NSAyLjMzOSIgY2xpcC1ydWxlPSJldmVub2RkIi8+PC9zdmc+)}.ag-charts-icon-price-range-drawing{--icon: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjAiIGhlaWdodD0iMjAiIHZpZXdCb3g9IjAgMCAyMCAyMCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBkPSJNOS4wNDYgMTVWNS44NzdoLjk0MlYxNXoiIGZpbGw9IiMxODFEMUYiLz48cGF0aCBkPSJNOS4wNDYgMTVWNS44NzdoLjk0MlYxNXoiIGZpbGw9IiMxODFEMUYiLz48cGF0aCBkPSJNOS41IDYuMjI4IDcuMTY3IDguMzc2IDYuNSA3Ljc2MiA5LjUgNWwzIDIuNzYyLS42NjcuNjE0eiIgZmlsbD0iIzAwMCIvPjxwYXRoIGQ9Ik0yIDE4di0xaDE2djF6TTIgM1YyaDE2djF6IiBmaWxsPSIjMTgxRDFGIi8+PC9zdmc+)}.ag-charts-icon-reset{--icon: url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyMCIgaGVpZ2h0PSIyMCIgZmlsbD0ibm9uZSI+PHBhdGggZmlsbD0iIzAwMCIgZmlsbC1ydWxlPSJldmVub2RkIiBkPSJNMTIuMDQgNC40NDVhNS44MSA1LjgxIDAgMCAwLTcuMjU3IDIuNDUzLjUuNSAwIDAgMS0uODY1LS41MDJBNi44MSA2LjgxIDAgMSAxIDMgOS44MTNhLjUuNSAwIDAgMSAxIDAgNS44MSA1LjgxIDAgMSAwIDguMDQtNS4zNjgiIGNsaXAtcnVsZT0iZXZlbm9kZCIvPjxwYXRoIGZpbGw9IiMwMDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIgZD0iTTQuMjg5IDMuMDAyYS41LjUgMCAwIDEgLjUuNXYyLjY1NWgyLjY1NWEuNS41IDAgMCAxIDAgMUg0LjI5YS41LjUgMCAwIDEtLjUtLjVWMy41MDJhLjUuNSAwIDAgMSAuNS0uNSIgY2xpcC1ydWxlPSJldmVub2RkIi8+PC9zdmc+)}.ag-charts-icon-settings{--icon: url(data:image/svg+xml;base64,PHN2ZyB2aWV3Qm94PSIwIDAgMjAgMjAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sOnNwYWNlPSJwcmVzZXJ2ZSIgc3R5bGU9ImZpbGwtcnVsZTpldmVub2RkIj48cGF0aCBkPSJNMTAgMTNhMyAzIDAgMSAwIDAtNiAzIDMgMCAwIDAgMCA2bTAtMWEyIDIgMCAxIDEtLjAwMS0zLjk5OUEyIDIgMCAwIDEgMTAgMTIiLz48cGF0aCBkPSJNMi4zMSAxNC4zNDVjLS44MTctMS40OTEuMDI3LTIuNDk5LjQ3NC0yLjg2NS41MzEtLjQzNC45NjktLjM2NS45NzItMS40OC0uMDAzLTEuMTE1LS40NDEtMS4wNDYtLjk3Mi0xLjQ4MS0uNDU0LS4zNzEtMS4zMTctMS40MDUtLjQzNC0yLjkzNmwuMDA1LS4wMDljLjg4NC0xLjUyIDIuMjA3LTEuMjkgMi43NTUtMS4wODMuNjQxLjI0My44MDEuNjU2IDEuNzY4LjEwMS45NjQtLjU2LjY4Ni0uOTA0Ljc5Ni0xLjU4Mi4wOTQtLjU3OC41NTktMS44NDMgMi4zMjYtMS44NDNoLjAxYzEuNzU5LjAwNSAyLjIyMiAxLjI2NiAyLjMxNiAxLjg0My4xMS42NzgtLjE2OCAxLjAyMi43OTYgMS41ODIuOTY3LjU1NSAxLjEyNy4xNDIgMS43NjgtLjEwMS41NDktLjIwOCAxLjg3Ni0uNDM4IDIuNzYgMS4wOTJzLjAyIDIuNTY1LS40MzQgMi45MzZjLS41MzEuNDM1LS45NjkuMzY2LS45NzIgMS40ODEuMDAzIDEuMTE1LjQ0MSAxLjA0Ni45NzIgMS40OC40NTQuMzcyIDEuMzE3IDEuNDA2LjQzNCAyLjkzN2wtLjAwNS4wMDljLS44ODQgMS41Mi0yLjIwNyAxLjI5LTIuNzU1IDEuMDgzLS42NDEtLjI0My0uODAxLS42NTYtMS43NjgtLjEwMS0uOTY0LjU2LS42ODYuOTA0LS43OTYgMS41ODEtLjA5NC41NzktLjU1OSAxLjg0NC0yLjMyNiAxLjg0NGgtLjAxYy0xLjc1OS0uMDA1LTIuMjIyLTEuMjY2LTIuMzE2LTEuODQ0LS4xMS0uNjc3LjE2OC0xLjAyMS0uNzk2LTEuNTgxLS45NjctLjU1NS0xLjEyNy0uMTQyLTEuNzY4LjEwMS0uNTQ5LjIwOC0xLjg3Ni40MzgtMi43Ni0xLjA5MmwtLjAyLS4wMzZ6TTkuOTg0IDIuMTYySDEwYzEuMzU1IDAgMS4zNDIgMS4wMzkgMS4zNTMgMS40MjUuMDA4LjMxMi4wNCAxLjE2IDEuMjU5IDEuODcybC4wMTUuMDA4YzEuMjI1LjcgMS45NzYuMzA0IDIuMjUxLjE1NS4zMzctLjE4MyAxLjIyNi0uNzExIDEuOTAyLjQ0NWwuMDA4LjAxNGMuNjc4IDEuMTczLS4yMjkgMS42ODItLjU1OCAxLjg4NC0uMjY2LjE2My0uOTg0LjYxNS0uOTkxIDIuMDI3di4wMTZjLjAwNyAxLjQxMi43MjUgMS44NjQuOTkxIDIuMDI3LjMyOC4yMDEgMS4yMjkuNzA3LjU2NiAxLjg3bC0uMDA4LjAxNGMtLjY3NyAxLjE3NC0xLjU3MS42NDMtMS45MS40NTktLjI3NS0uMTQ5LTEuMDI2LS41NDUtMi4yNTEuMTU0bC0uMDE1LjAwOWMtMS4yMTkuNzEyLTEuMjUxIDEuNTYtMS4yNTkgMS44NzItLjAxMS4zODYuMDAyIDEuNDI1LTEuMzUzIDEuNDI1cy0xLjM0Mi0xLjAzOS0xLjM1My0xLjQyNWMtLjAwOC0uMzEyLS4wNC0xLjE2LTEuMjU5LTEuODcybC0uMDE1LS4wMDljLTEuMjI1LS42OTktMS45NzYtLjMwMy0yLjI1MS0uMTU0LS4zMzYuMTgzLTEuMjE5LjcwNi0xLjg5NC0uNDMybC0uMDE2LS4wMjdjLS42NzgtMS4xNzQuMjI5LTEuNjgyLjU1OC0xLjg4NC4yNjYtLjE2My45ODQtLjYxNS45OTEtMi4wMjd2LS4wMTZjLS4wMDctMS40MTItLjcyNS0xLjg2NC0uOTkxLTIuMDI3LS4zMjgtLjIwMS0xLjIyOS0uNzA3LS41NjYtMS44N2wuMDA4LS4wMTRjLjY3Ny0xLjE3NCAxLjU3MS0uNjQzIDEuOTEtLjQ1OS4yNzUuMTQ5IDEuMDI2LjU0NSAyLjI1MS0uMTU1bC4wMTUtLjAwOGMxLjIxOS0uNzEyIDEuMjUxLTEuNTYgMS4yNTktMS44NzIuMDEtLjM4NC0uMDAyLTEuNDE3IDEuMzM3LTEuNDI1Ii8+PC9zdmc+)}.ag-charts-icon-step-line-series{--icon: url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyMCIgaGVpZ2h0PSIyMCIgZmlsbD0ibm9uZSI+PHBhdGggZmlsbD0iIzE4MUQxRiIgZmlsbC1ydWxlPSJldmVub2RkIiBkPSJNNiA0aDV2OGgzVjhoNXYxaC00djRoLTVWNUg3djEwSDJ2LTFoNHoiIGNsaXAtcnVsZT0iZXZlbm9kZCIvPjwvc3ZnPg==)}.ag-charts-icon-text-annotation{--icon: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjAiIGhlaWdodD0iMjAiIHZpZXdCb3g9IjAgMCAyMCAyMCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik00IDRIMTZWN0gxNVY1SDEwLjVWMTVIMTRWMTZINlYxNUg5LjVWNUg1VjdINFY0WiIgZmlsbD0iYmxhY2siLz4KPC9zdmc+Cg==)}.ag-charts-icon-trend-line,.ag-charts-icon-trend-line-drawing{--icon: url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyMCIgaGVpZ2h0PSIyMCIgZmlsbD0ibm9uZSI+PHBhdGggZmlsbD0iIzEzMTcyMiIgZmlsbC1ydWxlPSJldmVub2RkIiBkPSJNNS4zMTQgMTAuOTM4YTIuMjUgMi4yNSAwIDEgMSAuMDEtMWg5LjM1MmEyLjI1IDIuMjUgMCAxIDEgLjAxIDF6bS0yLjE4OS43MjlhMS4yNSAxLjI1IDAgMSAwIDAtMi41IDEuMjUgMS4yNSAwIDAgMCAwIDIuNW0xMy43NSAwYTEuMjUgMS4yNSAwIDEgMCAwLTIuNSAxLjI1IDEuMjUgMCAwIDAgMCAyLjUiIGNsaXAtcnVsZT0iZXZlbm9kZCIvPjwvc3ZnPg==)}.ag-charts-icon-unlock,.ag-charts-icon-unlocked{--icon: url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyMCIgaGVpZ2h0PSIyMCIgZmlsbD0ibm9uZSI+PHBhdGggZmlsbD0iIzAwMCIgZmlsbC1ydWxlPSJldmVub2RkIiBkPSJNMTAuNjUxIDMuNWEyLjg5NCAyLjg5NCAwIDAgMC0yLjg5NCAyLjg5NFY5SDE0LjVhMi41IDIuNSAwIDAgMSAyLjUgMi41djNhMi41IDIuNSAwIDAgMS0yLjUgMi41aC04QTIuNSAyLjUgMCAwIDEgNCAxNC41di0zQTIuNSAyLjUgMCAwIDEgNi41IDloLjI1N1Y2LjM5NGEzLjg5NCAzLjg5NCAwIDEgMSA3Ljc4OSAwIC41LjUgMCAwIDEtMSAwQTIuODk0IDIuODk0IDAgMCAwIDEwLjY1IDMuNU02LjUgMTBBMS41IDEuNSAwIDAgMCA1IDExLjV2M0ExLjUgMS41IDAgMCAwIDYuNSAxNmg4YTEuNSAxLjUgMCAwIDAgMS41LTEuNXYtM2ExLjUgMS41IDAgMCAwLTEuNS0xLjV6IiBjbGlwLXJ1bGU9ImV2ZW5vZGQiLz48L3N2Zz4=)}.ag-charts-icon-vertical-line,.ag-charts-icon-vertical-line-drawing{--icon: url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyMCIgaGVpZ2h0PSIyMCIgZmlsbD0ibm9uZSI+PHBhdGggZmlsbD0iIzEzMTcyMiIgZmlsbC1ydWxlPSJldmVub2RkIiBkPSJNMTAuNSA3LjgwNmEyLjI1IDIuMjUgMCAwIDEgMCA0LjM4OFYxOS41aC0xdi03LjMwNmEyLjI1IDIuMjUgMCAwIDEgMC00LjM4OFYuNWgxem0tLjUuOTQ0YTEuMjUgMS4yNSAwIDEgMSAwIDIuNSAxLjI1IDEuMjUgMCAwIDEgMC0yLjUiIGNsaXAtcnVsZT0iZXZlbm9kZCIvPjwvc3ZnPg==)}.ag-charts-icon-zoom-in{--icon: url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyMCIgaGVpZ2h0PSIyMCIgZmlsbD0ibm9uZSI+PHBhdGggZmlsbD0iIzAwMCIgZD0iTTEwIDUuNWEuNS41IDAgMCAxIC41LjV2My41aDMuODc1YS41LjUgMCAwIDEgMCAxSDEwLjV2NC4yNWEuNS41IDAgMSAxLTEgMFYxMC41SDUuNjI1YS41LjUgMCAxIDEgMC0xSDkuNVY2YS41LjUgMCAwIDEgLjUtLjUiLz48L3N2Zz4=)}.ag-charts-icon-zoom-out{--icon: url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyMCIgaGVpZ2h0PSIyMCIgZmlsbD0ibm9uZSI+PHBhdGggZmlsbD0iIzAwMCIgZmlsbC1ydWxlPSJldmVub2RkIiBkPSJNNS41IDEwYS41LjUgMCAwIDEgLjUtLjVoOGEuNS41IDAgMCAxIDAgMUg2YS41LjUgMCAwIDEtLjUtLjUiIGNsaXAtcnVsZT0iZXZlbm9kZCIvPjwvc3ZnPg==)}.ag-charts-icon-high-low-series{--icon: url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyMCIgaGVpZ2h0PSIyMCIgZmlsbD0ibm9uZSI+PHBhdGggZmlsbD0iIzEzMTcyMiIgZmlsbC1ydWxlPSJldmVub2RkIiBkPSJNNyA0aDJ2MTJINFY0aDNNNSA1aDN2MTBINXpNMTEgMTRWNmg1djhoLTVtMS03aDN2NmgtM3oiIGNsaXAtcnVsZT0iZXZlbm9kZCIvPjwvc3ZnPg==)}.ag-charts-icon-hlc-series{--icon: url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyMCIgaGVpZ2h0PSIyMCIgZmlsbD0ibm9uZSI+PHBhdGggZmlsbD0iIzEzMTcyMiIgZmlsbC1ydWxlPSJldmVub2RkIiBkPSJtMTguMTYzIDEuODM3LTUuMzM0IDExLjYyMUw2Ljk1NyA4LjEybC00LjE5OSA5LjYyMi0uOTE2LS40IDQuNzU2LTEwLjlMMTIuNDkgMTEuOCAxNy4yNTQgMS40MnoiIGNsaXAtcnVsZT0iZXZlbm9kZCIvPjxwYXRoIGZpbGw9IiMwMDAiIGZpbGwtb3BhY2l0eT0iLjQiIGZpbGwtcnVsZT0iZXZlbm9kZCIgZD0iTTUuODI1IDIuNzA0LjU1IDEzLjc4NWwuOTAyLjQzIDQuNzI0LTkuOTE5IDYuMDM0IDUuMDI5IDMuMjU1LTguMTQtLjkyOC0uMzctMi43NDUgNi44NnptNy44NTIgMTQuNjM2IDUuNzgtMTMuMTM5LS45MTUtLjQwMi01LjIxOSAxMS44Ni02LjAwNS01LjUwNC0zLjI3OCA3LjY0OC45Mi4zOTQgMi43MjItNi4zNTJ6IiBjbGlwLXJ1bGU9ImV2ZW5vZGQiLz48L3N2Zz4=)}.ag-charts-icon-zoom-in-alt{--icon: url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNCIgaGVpZ2h0PSIyNCIgdmlld0JveD0iMCAwIDI0IDI0IiBmaWxsPSJub25lIiBzdHJva2U9ImN1cnJlbnRDb2xvciIgc3Ryb2tlLXdpZHRoPSIyIiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiIGNsYXNzPSJsdWNpZGUgbHVjaWRlLXpvb20taW4iPjxjaXJjbGUgY3g9IjExIiBjeT0iMTEiIHI9IjgiLz48bGluZSB4MT0iMjEiIHgyPSIxNi42NSIgeTE9IjIxIiB5Mj0iMTYuNjUiLz48bGluZSB4MT0iMTEiIHgyPSIxMSIgeTE9IjgiIHkyPSIxNCIvPjxsaW5lIHgxPSI4IiB4Mj0iMTQiIHkxPSIxMSIgeTI9IjExIi8+PC9zdmc+)}.ag-charts-icon-zoom-out-alt{--icon: url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNCIgaGVpZ2h0PSIyNCIgdmlld0JveD0iMCAwIDI0IDI0IiBmaWxsPSJub25lIiBzdHJva2U9ImN1cnJlbnRDb2xvciIgc3Ryb2tlLXdpZHRoPSIyIiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiIGNsYXNzPSJsdWNpZGUgbHVjaWRlLXpvb20tb3V0Ij48Y2lyY2xlIGN4PSIxMSIgY3k9IjExIiByPSI4Ii8+PGxpbmUgeDE9IjIxIiB4Mj0iMTYuNjUiIHkxPSIyMSIgeTI9IjE2LjY1Ii8+PGxpbmUgeDE9IjgiIHgyPSIxNCIgeTE9IjExIiB5Mj0iMTEiLz48L3N2Zz4=)}.ag-charts-input{--input-layer-active: 1;--input-layer-focus: 2;color:inherit;font-family:var(--ag-charts-input-font-family);font-size:var(--ag-charts-input-font-size);transition-duration:var(--ag-charts-input-transition-duration);transition-property:none;transition-timing-function:var(--ag-charts-input-transition-timing-function)}.ag-charts-input:focus-visible{outline:var(--ag-charts-input-focus-outline);box-shadow:var(--ag-charts-input-focus-box-shadow);z-index:var(--input-layer-focus)}.ag-charts-button{background:var(--ag-charts-input-background-color);border:1px solid var(--ag-charts-input-border-color);border-radius:var(--ag-charts-input-border-radius);cursor:pointer;padding:var(--ag-charts-input-padding);transition-property:background,border-color}.ag-charts-button:hover{background:var(--ag-charts-input-background-color--hover)}.ag-charts-button:has(.ag-charts-icon){padding:2px}.ag-charts-checkbox{appearance:none;background:var(--ag-charts-input-checkbox-background-color);border-radius:9px;cursor:pointer;height:18px;margin:0;transition-duration:var(--ag-charts-input-transition-duration--fast);transition-property:margin;width:29px}.ag-charts-checkbox:before{display:block;background:var(--ag-charts-input-background-color);border-radius:7px;content:" ";height:14px;margin:2px;transition-duration:var(--ag-charts-input-transition-duration--fast);transition-property:margin;transition-timing-function:var(--ag-charts-input-transition-easing);width:14px}.ag-charts-checkbox:checked{background:var(--ag-charts-input-checkbox-background-color--checked)}.ag-charts-checkbox:checked:before{margin-left:13px}.ag-charts-select{background:var(--ag-charts-input-background-color);border:1px solid var(--ag-charts-input-border-color);border-radius:var(--ag-charts-input-border-radius);padding:3px 2px 4px;font-size:inherit}.ag-charts-textarea{--line-height: 1.38;background:var(--ag-charts-input-background-color);border:1px solid var(--ag-charts-input-border-color);border-radius:var(--ag-charts-input-border-radius);line-height:var(--line-height);font-family:var(--ag-charts-input-font-family);font-size:var(--ag-charts-input-font-size);padding:var(--ag-charts-input-padding-large) var(--ag-charts-input-padding)}.ag-charts-textarea[placeholder]:empty:before{color:var(--ag-charts-input-placeholder);content:attr(placeholder)}.ag-charts-proxy-container{pointer-events:none;position:absolute}.ag-charts-proxy-elem{-webkit-appearance:none;appearance:none;background:none;border:none;color:#0000;overflow:hidden;pointer-events:auto;position:absolute}.ag-charts-proxy-elem::-moz-range-thumb,.ag-charts-proxy-elem::-moz-range-track{opacity:0}.ag-charts-proxy-elem::-webkit-slider-runnable-track,.ag-charts-proxy-elem::-webkit-slider-thumb{opacity:0}.ag-charts-proxy-elem:focus-visible{outline:var(--ag-charts-focus-border);box-shadow:var(--ag-charts-focus-border-shadow)}.ag-charts-focus-indicator{position:absolute;display:block;pointer-events:none;user-select:none;width:100%;height:100%}.ag-charts-focus-indicator>div{position:absolute;outline:var(--ag-charts-focus-border);outline-width:2px;box-shadow:var(--ag-charts-focus-border-shadow)}.ag-charts-focus-indicator>svg{width:100%;height:100%;fill:none;stroke:var(--ag-charts-focus-border-color);stroke-width:2px}.ag-charts-overlay{color:#181d1f;pointer-events:none}.ag-charts-overlay.ag-charts-dark-overlay{color:#fff}.ag-charts-overlay--loading{color:#8c8c8c}.ag-charts-overlay__loading-background{background:#fff;pointer-events:none}.ag-charts-overlay.ag-charts-dark-overlay .ag-charts-overlay__loading-background{background:#192232}.ag-charts-tooltip{position:fixed;inset:unset;margin:0;padding:0;overflow:visible;width:max-content;max-width:100%;font:12px Verdana,sans-serif;color:var(--ag-charts-tooltip-text-color);background:var(--ag-charts-tooltip-background-color);border:var(--ag-charts-tooltip-border);border-radius:var(--ag-charts-tooltip-border-radius);box-shadow:0 4px 8px #00000014}.ag-charts-tooltip--compact{--ag-charts-content-padding: var(--ag-charts-content-compact-padding)}.ag-charts-tooltip--arrow:before{--tooltip-arrow-size: 8px;content:"";position:absolute;top:100%;left:50%;margin:0 auto;transform:translate(-50%) translateY(calc(var(--tooltip-arrow-size) * -.5)) rotate(45deg);display:block;width:var(--tooltip-arrow-size);height:var(--tooltip-arrow-size);border:inherit;background:inherit;border-top:none;border-left:none;clip-path:polygon(0 100%,100% 0,100% 100%)}.ag-charts-tooltip--no-interaction{pointer-events:none;user-select:none}.ag-charts-tooltip--wrap-always{overflow-wrap:break-word;word-break:break-word;hyphens:none}.ag-charts-tooltip--wrap-hyphenate{overflow-wrap:break-word;word-break:break-word;hyphens:auto}.ag-charts-tooltip--wrap-on-space{overflow-wrap:normal;word-break:normal}.ag-charts-tooltip--wrap-never{white-space:nowrap}.ag-charts-tooltip-heading,.ag-charts-tooltip-title,.ag-charts-tooltip-label,.ag-charts-tooltip-value{overflow:hidden;text-overflow:ellipsis}.ag-charts-tooltip-content{display:grid;grid:auto-flow minmax(1em,auto) / 1fr;padding:var(--ag-charts-content-padding);gap:var(--ag-charts-content-gap)}.ag-charts-tooltip-content:has(.ag-charts-tooltip-symbol){grid:auto-flow minmax(1em,auto) / auto 1fr}.ag-charts-tooltip-heading{grid-column:1 / -1}.ag-charts-tooltip-symbol{grid-column:1 / 2;align-self:center}.ag-charts-tooltip-symbol svg{display:block}.ag-charts-tooltip-title{grid-column:-2 / -1}.ag-charts-tooltip-row{grid-column:1 / -1;display:flex;gap:16px;align-items:baseline;justify-content:space-between;overflow:hidden}.ag-charts-tooltip-row--inline{grid-column:-2 / -1}.ag-charts-tooltip-label{flex:1;min-width:0}.ag-charts-tooltip-value{min-width:0}.ag-charts-popover{position:absolute;border:var(--ag-charts-popover-border);border-radius:var(--ag-charts-popover-border-radius);background:var(--ag-charts-popover-background-color);color:var(--ag-charts-popover-foreground-color);font-family:var(--ag-charts-font-family);font-size:var(--ag-charts-popover-font-size);box-shadow:var(--ag-charts-popover-shadow);z-index:var(--ag-charts-layer-ui-overlay)}.ag-charts-menu{--item-padding: 6px 12px;--icon-color: var(--ag-charts-popover-foreground-color);display:grid;grid:auto-flow auto / 1fr;column-gap:12px;font-size:var(--ag-charts-popover-font-size-small)}.ag-charts-menu:has(.ag-charts-menu__icon,.ag-charts-menu__row--stroke-width-visible){grid:auto-flow auto / auto 1fr}.ag-charts-menu__row--stroke-width-visible:before{content:"";height:var(--strokeWidth);width:12px;background:var(--icon-color)}.ag-charts-menu__row--stroke-width-visible[aria-disabled=true]:before{filter:grayscale(1);opacity:.5}.ag-charts-menu__row{display:grid;grid-column:1 / -1;grid-template-columns:subgrid;align-items:center;padding:var(--item-padding)}.ag-charts-menu__row:not(.ag-charts-menu__row--active){cursor:pointer}.ag-charts-menu__row:first-child{border-top-left-radius:inherit;border-top-right-radius:inherit}.ag-charts-menu__row:last-child{border-bottom-left-radius:inherit;border-bottom-right-radius:inherit}.ag-charts-menu__row:focus{background:var(--ag-charts-popover-hover-color)}.ag-charts-menu__row:focus-visible{outline:var(--ag-charts-focus-border);box-shadow:var(--ag-charts-focus-border-shadow);z-index:calc(var(--ag-charts-layer-ui-overlay) + 1)}.ag-charts-menu__row--active{--icon-color: var(--ag-charts-popover-active-color);background:var(--ag-charts-popover-active-background-color);color:var(--ag-charts-popover-active-color)}.ag-charts-menu__label{grid-column:-1 / span 1}.ag-charts-toolbar{align-items:center;display:flex;flex-wrap:nowrap;position:absolute}.ag-charts-toolbar__button{align-items:center;background:var(--ag-charts-toolbar-background-color);border:var(--ag-charts-toolbar-border);color:var(--ag-charts-toolbar-foreground-color);cursor:pointer;display:flex;font:var(--ag-charts-toolbar-font-size) var(--ag-charts-font-family);justify-content:center;min-height:var(--ag-charts-toolbar-size);min-width:var(--ag-charts-toolbar-size);padding:var(--ag-charts-toolbar-button-padding);position:relative;transition:background-color .25s ease-in-out,border-color .25s ease-in-out,color .25s ease-in-out;white-space:nowrap}.ag-charts-toolbar__button:hover{background:var(--ag-charts-toolbar-hover-color);z-index:1}.ag-charts-toolbar__button:focus-visible{outline:var(--ag-charts-focus-border);box-shadow:var(--ag-charts-focus-border-shadow);z-index:calc(var(--ag-charts-layer-ui-overlay) + 1)}.ag-charts-toolbar__button--active{background:var(--ag-charts-toolbar-active-background-color);border-color:var(--ag-charts-toolbar-active-color);color:var(--ag-charts-toolbar-active-color);z-index:2}.ag-charts-toolbar__button[aria-disabled=true]{background:var(--ag-charts-toolbar-disabled-background-color);color:var(--ag-charts-toolbar-disabled-foreground-color);cursor:default}.ag-charts-toolbar--horizontal{flex-direction:row;.ag-charts-toolbar__button{margin:0 0 0 -1px}.ag-charts-toolbar__button--first{border-bottom-left-radius:var(--ag-charts-button-radius);border-top-left-radius:var(--ag-charts-button-radius);margin:0}.ag-charts-toolbar__button--last{border-bottom-right-radius:var(--ag-charts-button-radius);border-top-right-radius:var(--ag-charts-button-radius)}}.ag-charts-toolbar--vertical{flex-direction:column;.ag-charts-toolbar__button{margin:-1px 0 0;max-width:100%}.ag-charts-toolbar__button--first{border-top-left-radius:var(--ag-charts-button-radius);border-top-right-radius:var(--ag-charts-button-radius);margin:0}.ag-charts-toolbar__button--last{border-bottom-left-radius:var(--ag-charts-button-radius);border-bottom-right-radius:var(--ag-charts-button-radius)}}.ag-charts-toolbar__icon+.ag-charts-toolbar__label{margin-left:var(--ag-charts-toolbar-gap)}.ag-charts-toolbar__icon,.ag-charts-toolbar__label{pointer-events:none}.ag-charts-floating-toolbar{border:none;display:flex;.ag-charts-toolbar{align-items:unset;position:unset}}.ag-charts-floating-toolbar__drag-handle{align-items:center;background:var(--ag-charts-toolbar-background-color);border:var(--ag-charts-toolbar-border);border-bottom-left-radius:var(--ag-charts-button-radius);border-top-left-radius:var(--ag-charts-button-radius);cursor:grab;display:flex;justify-content:center;min-width:24px;padding-left:0;padding-right:0}.ag-charts-floating-toolbar__drag-handle--dragging{cursor:grabbing}
`;function ld(l){return l==="true"}function pb(l){return Number(l)}function ao(l){return l}var Bm={role:ao,"aria-checked":ld,"aria-controls":ao,"aria-describedby":ao,"aria-disabled":ld,"aria-expanded":ld,"aria-haspopup":ld,"aria-hidden":ld,"aria-label":ao,"aria-labelledby":ao,"aria-live":ao,"aria-orientation":ao,"aria-selected":ld,"data-preventdefault":ld,class:ao,id:ao,tabindex:pb,title:ao,placeholder:ao};function fo(l,c,y){y==null||y===""||y===""?l==null||l.removeAttribute(c):l==null||l.setAttribute(c,y.toString())}function br(l,c){if(c!=null)for(let[y,I]of Object.entries(c))y!=="class"&&fo(l,y,I)}function bp(l,c,y){var O,j;if(!(l instanceof HTMLElement))return;let I=l.getAttribute(c);return I===null?y:(j=(O=Bm[c])==null?void 0:O.call(Bm,I))!=null?j:void 0}function $l(l,c,y){l!=null&&(y==null?l.style.removeProperty(c):l.style.setProperty(c,y.toString()))}function jP(l,c){for(let[y,I]of Object.entries(c))$l(l,y,I)}var cD=class Rz{constructor(c,y,I){this.element=c,this.topTabGuard=y,this.bottomTabGuard=I,this.destroyFns=[],this.guardTabIndex=0,this.hasFocus=!1,this.initTabGuard(this.topTabGuard,O=>this.onTab(O,!1)),this.initTabGuard(this.bottomTabGuard,O=>this.onTab(O,!0)),this.element.addEventListener("focus",()=>this.onFocus(),{capture:!0}),this.element.addEventListener("blur",O=>this.onBlur(O),{capture:!0})}set tabIndex(c){this.guardTabIndex=c,this.guardTabIndex===0?this.setGuardIndices(void 0):this.hasFocus||this.setGuardIndices(this.guardTabIndex)}destroy(){for(let c of this.destroyFns)c();this.destroyFns.length=0}initTabGuard(c,y){let I=()=>y(c);c.addEventListener("focus",I),this.destroyFns.push(()=>c.removeEventListener("focus",I))}setGuardIndices(c){let y=c;fo(this.topTabGuard,"tabindex",y),fo(this.bottomTabGuard,"tabindex",y)}onFocus(){this.hasFocus=!0,this.guardTabIndex!==0&&this.setGuardIndices(0)}onBlur({relatedTarget:c}){let{topTabGuard:y,bottomTabGuard:I}=this;this.hasFocus=!1,this.guardTabIndex!==0&&c!==y&&c!==I&&this.setGuardIndices(this.guardTabIndex)}onTab(c,y){if(this.guardTabIndex!==0){let I;c.tabIndex===0?(I=this.findExitTarget(!y),this.setGuardIndices(this.guardTabIndex)):I=this.findEnterTarget(y),I==null||I.focus()}}static queryFocusable(c,y){let I=ca();return Array.from(c.querySelectorAll(y)).filter(O=>{if(O instanceof HTMLElement){let j=I.getComputedStyle(O);return j.display!=="none"&&j.visibility!=="none"}return!1})}findEnterTarget(c){let y=Rz.queryFocusable(this.element,'[tabindex="0"]'),I=c?y.length-1:0;return y[I]}findExitTarget(c){let y=Rz.queryFocusable(bs(),"[tabindex]").filter(j=>j.tabIndex>0).sort((j,H)=>j.tabIndex-H.tabIndex),{before:I,after:O}=Rz.findBeforeAndAfter(y,this.guardTabIndex);return c?I:O}static findBeforeAndAfter(c,y){let I=0,O=c.length-1,j,H;for(;I<=O;){let K=Math.floor((I+O)/2),Z=c[K].tabIndex;if(Z===y){j=c[K-1]||void 0,H=c[K+1]||void 0;break}else Z<y?(j=c[K],I=K+1):(H=c[K],O=K-1)}return{before:j,after:H}}};function Th(l,c,y,I){c.addEventListener(y,I);let O=()=>c.removeEventListener(y,I);return l.push(O),O}function mb(l,c,y){Th(l,c,"keydown",I=>{I.key==="Escape"&&y(I)})}function _x(l,c,y){let I=Th(l,window,"mousedown",O=>{[0,2].includes(O.button)&&!NI(c,O)&&(y(),I())});return I}function NI(l,c){if(c.target instanceof Element){let{x:y,y:I,width:O,height:j}=l.getBoundingClientRect(),{clientX:H,clientY:K}=c;return H>=y&&K>=I&&H<=y+O&&K<=I+j}return!1}function Au(l){return!(l.shiftKey||l.altKey||l.ctrlKey||l.metaKey)}function yv(l,c,...y){return Au(l)&&(l.key===c||y.some(I=>l.key===I))}function Bd(l,c,y,I){y&&Th(l,c,"keydown",O=>{yv(O,I)&&y.focus()})}function Gm(l,c,y,I,O,j){Bd(l,c,O,j),Bd(l,c,y,I),Th(l,c,"keydown",H=>{yv(H,I,j)&&H.preventDefault()})}var Cp={horizontal:{nextKey:"ArrowRight",prevKey:"ArrowLeft"},vertical:{nextKey:"ArrowDown",prevKey:"ArrowUp"}};function zI(l){return l.toolbar.role="toolbar",l.toolbar.ariaOrientation=l.orientation,l.toolbar.ariaHidden=(l.buttons.length===0).toString(),bv(l)}function bv(l){let{orientation:c,buttons:y,wrapAround:I=!1,onEscape:O,onFocus:j,onBlur:H}=l,{nextKey:K,prevKey:Z}=Cp[c],te=Ce=>{Ce.target&&"tabIndex"in Ce.target&&(y.forEach(Pe=>Pe.tabIndex=-1),Ce.target.tabIndex=0)},[se,ge]=I?[y.length,y.length]:[0,1/0],Se=[];for(let Ce=0;Ce<y.length;Ce++){let Pe=y[(se+Ce-1)%ge],Ge=y[Ce],We=y[(se+Ce+1)%ge];Th(Se,Ge,"focus",te),j&&Th(Se,Ge,"focus",j),H&&Th(Se,Ge,"blur",H),O&&mb(Se,Ge,O),Gm(Se,Ge,We,K,Pe,Z),Ge.tabIndex=Ce===0?0:-1}return Se}var Ql=class{constructor(l,c,y){this.lastFocus=c,this.closeCallback=y,this.destroyFns=[],this.destroyFns.push(_x(this.destroyFns,l,()=>this.close(!0)))}close(l){this.destroyFns.forEach(c=>c()),this.destroyFns.length=0,this.closeCallback(),this.finishClosing(l)}finishClosing(l){var c;this.destroyFns.forEach(y=>y()),this.destroyFns.length=0,fo(this.lastFocus,"aria-expanded",!1),l||(c=this.lastFocus)==null||c.focus({preventScroll:!0}),this.lastFocus=void 0}};function Us(l){var Ce;let{sourceEvent:c,orientation:y,menu:I,buttons:O,closeCallback:j,autoCloseOnBlur:H=!1}=l,{nextKey:K,prevKey:Z}=Cp[y],te=Gd(c);fo(te,"aria-expanded",!0);let se=new Ql(I,te,j),ge=()=>se.close(),{destroyFns:Se}=se;if(I.role="menu",I.ariaOrientation=y,Se.push(...bv({orientation:y,buttons:O,onEscape:ge,wrapAround:!0})),I.tabIndex=-1,mb(Se,I,ge),Th(Se,I,"keydown",Pe=>{var Ge;Pe.target===I&&(Pe.key===K||Pe.key===Z)&&(Pe.preventDefault(),(Ge=O[0])==null||Ge.focus())}),H){let Pe=Ge=>{!O.includes(Ge.relatedTarget)&&ge()};for(let Ge of O)Th(Se,Ge,"blur",Pe)}return(Ce=O[0])==null||Ce.focus({preventScroll:!0}),se}function os(l,c){return y=>{if(l.ariaDisabled==="true")return y.preventDefault();c(y)}}function Ks(l){return"button"in l?l.button===0:Au(l)&&(l.code==="Space"||l.key==="Enter")}function Gd(l){if((l==null?void 0:l.target)instanceof HTMLElement&&"tabindex"in l.target.attributes)return l.target}function Jl(l){let c=y=>{if(y.defaultPrevented)return;bp(y.target,"data-preventdefault",!0)&&yv(y,"ArrowRight","ArrowLeft","ArrowDown","ArrowUp")&&y.preventDefault()};return l.addEventListener("keydown",c),()=>l.removeEventListener("keydown",c)}var BI=class{constructor(){var l;this.elements=new Map,this.documentReady=!1,this.queuedObserveRequests=[],this.onLoad=()=>{this.documentReady=!0,this.queuedObserveRequests.forEach(([c,y])=>this.observe(c,y)),this.queuedObserveRequests=[]},typeof ResizeObserver!="undefined"&&(this.resizeObserver=new ResizeObserver(c=>{for(let{target:y,contentRect:{width:I,height:O}}of c){let j=this.elements.get(y);this.checkSize(j,y,I,O)}}),this.documentReady=bs("readyState")==="complete",this.documentReady||(l=ca())==null||l.addEventListener("load",this.onLoad))}destroy(){var l,c;(l=ca())==null||l.removeEventListener("load",this.onLoad),(c=this.resizeObserver)==null||c.disconnect(),this.resizeObserver=null}checkSize(l,c,y,I){var O,j;l&&(y!==((O=l.size)==null?void 0:O.width)||I!==((j=l.size)==null?void 0:j.height))&&(l.size={width:y,height:I},l.cb(l.size,c))}observe(l,c){var I;if(!this.documentReady){this.queuedObserveRequests.push([l,c]);return}this.elements.has(l)?this.removeFromQueue(l):(I=this.resizeObserver)==null||I.observe(l);let y={cb:c};this.elements.set(l,y)}unobserve(l){var c;(c=this.resizeObserver)==null||c.unobserve(l),this.elements.delete(l),this.removeFromQueue(l),this.elements.size||this.destroy()}removeFromQueue(l){this.queuedObserveRequests=this.queuedObserveRequests.filter(([c])=>c!==l)}},A0='<div role="presentation" class="ag-charts-wrapper ag-charts-styles" data-ag-charts><div role="presentation" class="ag-charts-canvas-center"><div role="presentation" class="ag-charts-canvas-container"><div role="presentation" class="ag-charts-canvas" aria-hidden="true"></div><div role="figure" class="ag-charts-canvas-proxy"><div role="presentation" class="ag-charts-series-area"></div></div><div role="presentation" class="ag-charts-canvas-overlay"></div></div></div></div>',GI=["styles","canvas","canvas-center","canvas-container","canvas-overlay","canvas-proxy","series-area"],ug=new Map([["styles",{childElementType:"style"}],["canvas",{childElementType:"canvas"}],["canvas-proxy",{childElementType:"div"}],["canvas-overlay",{childElementType:"div"}],["canvas-center",{childElementType:"div"}],["series-area",{childElementType:"div"}]]);function Fx(l,c){if(typeof IntersectionObserver=="undefined")return;let y=new IntersectionObserver(I=>{for(let O of I)O.target===l&&c(O.intersectionRatio)},{root:l});return y.observe(l),y}var Bo={x:0,y:0,width:0,height:0,top:0,bottom:0,left:0,right:0,toJSON(){return Bo}};function jm(l,c){let y=Aa("div");return y.className="ag-charts-tab-guard",l.insertAdjacentElement(c,y),y}var cd=class extends da{constructor(l,c){super(),this.styles=new Map,this.container=void 0,this.containerSize=void 0,this.sizeMonitor=new BI;let y=Aa("div");y.innerHTML=A0,this.element=y.children.item(0),this.styleRootElement=c,this.rootElements=GI.reduce((K,Z)=>{let te=`ag-charts-${Z}`,se=this.element.classList.contains(te)?this.element:this.element.querySelector(`.${te}`);if(!se)throw new Error(`AG Charts - unable to find DOM element ${te}`);return K[Z]={element:se,children:new Map,listeners:[]},K},{});let I=!1;this.observer=Fx(this.element,K=>{K===0&&!I&&this.listeners.dispatch("hidden",{type:"hidden"}),I=K===0}),this.setSizeOptions(),this.addStyles("ag-charts-community",lD),l&&this.setContainer(l),this.destroyFns.push(Jl(this.element));let O=this.element.querySelector(".ag-charts-canvas-center");if(O==null)throw new Error("Error initializing tab guards");let j=jm(O,"beforebegin"),H=jm(O,"afterend");this.tabGuards=new cD(O,j,H)}destroy(){var l;super.destroy(),(l=this.observer)==null||l.unobserve(this.element),this.container&&this.sizeMonitor.unobserve(this.container),Object.values(this.rootElements).forEach(c=>{c.children.forEach(y=>y.remove()),c.element.remove()}),this.element.remove()}setSizeOptions(l=300,c=300,y,I){let{style:O}=this.element;O.width=`${y!=null?y:l}px`,O.height=`${I!=null?I:c}px`}updateContainerSize(){var c,y,I,O;let{style:l}=this.rootElements["canvas-center"].element;l.width=`${(y=(c=this.containerSize)==null?void 0:c.width)!=null?y:0}px`,l.height=`${(O=(I=this.containerSize)==null?void 0:I.height)!=null?O:0}px`}setTabGuardIndex(l){this.tabGuards.tabIndex=l}setContainer(l){if(l===this.container)return;if(this.container&&(this.container.removeChild(this.element),this.sizeMonitor.unobserve(this.container)),!(this.getShadowDocumentRoot(l)!=null))for(let y of this.rootElements.styles.children.keys())this.removeChild("styles",y);this.container=l;for(let[y,I]of this.styles)this.addStyles(y,I);l.appendChild(this.element),this.sizeMonitor.observe(l,y=>{this.containerSize=y,this.updateContainerSize(),this.listeners.dispatch("resize",{type:"resize"})}),this.listeners.dispatch("container-changed",{type:"container-changed"})}setThemeClass(l){let c="ag-charts-theme-";this.element.classList.forEach(y=>{y.startsWith(c)&&y!==l&&this.element.classList.remove(y)}),this.element.classList.add(l)}updateCanvasLabel(l){fo(this.rootElements["canvas-proxy"].element,"aria-label",l)}getEventElement(l,c){return["focus","blur","keydown","keyup"].includes(c)?this.rootElements["series-area"].element:l}addEventListener(l,c,y){this.getEventElement(this.element,l).addEventListener(l,c,y)}removeEventListener(l,c,y){this.getEventElement(this.element,l).removeEventListener(l,c,y)}getBoundingClientRect(){return this.rootElements.canvas.element.getBoundingClientRect()}getOverlayClientRect(){var I,O;let l=ca(),c=new ft(0,0,l.innerWidth,l.innerHeight),y=this.getRawOverlayClientRect();return(O=(I=c.intersection(y))==null?void 0:I.toDOMRect())!=null?O:Bo}getRawOverlayClientRect(){var O,j;let l=this.element;for(;l!=null;){let H=(O=l.computedStyleMap)==null?void 0:O.call(l),K=(j=H==null?void 0:H.get("overflow-y"))==null?void 0:j.toString();if(K==="auto"||K==="scroll")return ft.fromDOMRect(l.getBoundingClientRect());l=l.parentElement}let c=this.getShadowDocumentRoot();if(c!=null)return ft.fromDOMRect(c.getBoundingClientRect());let{innerWidth:y,innerHeight:I}=ca();return new ft(0,0,y,I)}getShadowDocumentRoot(l=this.container){var y,I;let c=(I=(y=l==null?void 0:l.ownerDocument)==null?void 0:y.body)!=null?I:bs("body");for(;l!=null;){if(l===c)return;if(l.parentNode instanceof DocumentFragment)return l;l=l.parentNode}return this.container}getParent(l){return this.rootElements[l].element}getChildBoundingClientRect(l){let{children:c}=this.rootElements[l],y=[];for(let I of c.values())y.push(ft.fromDOMRect(I.getBoundingClientRect()));return ft.merge(y)}calculateCanvasPosition(l){var H;let c=0,y=0,{x:I=0,y:O=0}=(H=this.getChildBoundingClientRect("canvas"))!=null?H:{},j=l.getBoundingClientRect();return c=j.x-I,y=j.y-O,{x:c,y}}isManagedChildDOMElement(l,c,y){let{children:I}=this.rootElements[c],O=I==null?void 0:I.get(y);return O!=null&&l.contains(O)}contains(l,c){return c==null?this.element.contains(l):this.rootElements[c].element.contains(l)}addStyles(l,c){let y="data-ag-charts";if(this.styles.set(l,c),this.container==null)return;let I=H=>H.getAttribute(y)===l,O=H=>{let K=new Set(["TITLE","META"]),Z=!0,te;for(let ge of H.children){if(Z&&K.has(ge.tagName)){te=ge;continue}if(Z=!1,I(ge))return;ge.hasAttribute(y)&&(te=ge)}let se=Aa("style");return te!=null?H.insertBefore(se,te.nextSibling):H.prepend(se),se},j;this.styleRootElement?j=O(this.styleRootElement):this.getShadowDocumentRoot(this.container)!=null?j=this.addChild("styles",l):j=O(bs("head")),!(j==null||I(j))&&(j.setAttribute(y,l),j.innerHTML=c)}removeStyles(l){this.removeChild("styles",l)}updateCursor(l){this.element.style.cursor=l}getCursor(){return this.element.style.cursor}addChild(l,c,y,I){var te;let{element:O,children:j,listeners:H}=this.rootElements[l];if(!j)throw new Error("AG Charts - unable to create DOM elements after destroy()");if(j.has(c))return j.get(c);let{childElementType:K="div"}=(te=ug.get(l))!=null?te:{};if(y&&y.tagName.toLowerCase()!==K.toLowerCase())throw new Error("AG Charts - mismatching DOM element type");let Z=y!=null?y:Aa(K);for(let[se,ge,Se]of H)Z.addEventListener(se,ge,Se);if(j.set(c,Z),I){let se=O.querySelector(I.query);if(se==null)throw new Error(`AG Charts - addChild query failed ${I.query}`);se.insertAdjacentElement(I.where,Z)}else O==null||O.appendChild(Z);return Z}removeChild(l,c){var I;let{children:y}=this.rootElements[l];y&&((I=y.get(c))==null||I.remove(),y.delete(c))}incrementDataCounter(l){var y;let{dataset:c}=this.element;(y=c[l])!=null||(c[l]="0"),c[l]=String(Number(c[l])+1)}setDataBoolean(l,c){this.element.dataset[l]=String(c)}},rs=["blur","change","contextmenu","focus","keydown","keyup","click","dblclick","mouseenter","mousemove","mouseleave","wheel"];function or(l,c){let{offsetX:y,offsetY:I,clientX:O,clientY:j}=c;return{type:l,offsetX:y,offsetY:I,clientX:O,clientY:j,sourceEvent:c}}var Vm={blur:l=>({type:"blur",sourceEvent:l}),change:l=>({type:"change",sourceEvent:l}),contextmenu:l=>or("contextmenu",l),focus:l=>({type:"focus",sourceEvent:l}),keydown:l=>({type:"keydown",sourceEvent:l}),keyup:l=>({type:"keyup",sourceEvent:l}),click:l=>or("click",l),dblclick:l=>or("dblclick",l),mouseenter:l=>or("mouseenter",l),mousemove:l=>or("mousemove",l),mouseleave:l=>or("mouseleave",l),wheel:l=>{let{offsetX:c,offsetY:y,clientX:I,clientY:O,deltaX:j,deltaY:H}=l;return{type:"wheel",offsetX:c,offsetY:y,clientX:I,clientY:O,deltaX:j,deltaY:H,sourceEvent:l}}},Du=class{static alloc(l,c){return Vm[l](c)}static isHTMLEvent(l){return rs.includes(l)}},Pc=class{constructor(){this.maps={}}lazyGetMap(l){let c=this.maps[l];return c===void 0&&(c=new Map,this.maps[l]=c),c}add(l,c,y){let I=this.lazyGetMap(l);if(I.has(y))throw new Error("AG Charts - duplicate add(handler)");let O=j=>{let H=Du.alloc(l,j);y(H,c)};c.getElement().addEventListener(l,O),I.set(y,O)}remove(l,c,y){let I=this.lazyGetMap(l),O=I.get(y);O&&c.getElement().removeEventListener(l,O),I.delete(y)}destroy(l){for(let c of Object.keys(this.maps))this.typedDestroy(c,l)}typedDestroy(l,c){let y=this.maps[l];if(y!=null)for(let[I,O]of y.entries())c.getElement().removeEventListener(l,O)}};function dD(l,c,y){let I=y.pageX-c.pageX,O=y.pageY-c.pageY;return{type:l,offsetX:c.offsetX+I,offsetY:c.offsetY+O,clientX:y.clientX,clientY:y.clientY,originDeltaX:I,originDeltaY:O,sourceEvent:y}}function uD(l,c,y){if(l.globalDragCallbacks!=null)return;let I=ca(),O=K=>{K.stopPropagation(),K.stopImmediatePropagation()},j=K=>{var Z;K.stopPropagation(),K.stopImmediatePropagation(),(Z=l.globalDragCallbacks)==null||Z.move(K)},H=K=>{var Z;K.button===0&&(K.stopPropagation(),K.stopImmediatePropagation(),I.removeEventListener("mousedown",O,{capture:!0}),I.removeEventListener("mouseenter",O,{capture:!0}),I.removeEventListener("mouseleave",O,{capture:!0}),I.removeEventListener("mouseout",O,{capture:!0}),I.removeEventListener("mouseover",O,{capture:!0}),I.removeEventListener("mousemove",j,{capture:!0}),I.removeEventListener("mouseup",H,{capture:!0}),(Z=l.globalDragCallbacks)==null||Z.up(K),l.globalDragCallbacks=void 0)};I.addEventListener("mousedown",O,{capture:!0}),I.addEventListener("mouseenter",O,{capture:!0}),I.addEventListener("mouseleave",O,{capture:!0}),I.addEventListener("mouseout",O,{capture:!0}),I.addEventListener("mouseover",O,{capture:!0}),I.addEventListener("mousemove",j,{capture:!0}),I.addEventListener("mouseup",H,{capture:!0}),l.globalDragCallbacks=c,l.globalDragCallbacks.down(y)}var VP=class Pz{destroy(){var c;(c=this.dragTriggerRemovers)==null||c.forEach(y=>y()),this.dragTriggerRemovers=void 0,this.dragStartListeners=void 0,this.dragMoveListeners=void 0,this.dragEndListeners=void 0,Pz.globalDragCallbacks===this.localDragCallbacks&&(Pz.globalDragCallbacks=void 0)}add(c,y,I){var O,j,H;switch(c){case"drag-start":{(O=this.dragStartListeners)!=null||(this.dragStartListeners=[]),this.dragStartListeners.push(I),this.registerDragTrigger(y,I);break}case"drag-move":{(j=this.dragMoveListeners)!=null||(this.dragMoveListeners=[]),this.dragMoveListeners.push(I);break}case"drag-end":{(H=this.dragEndListeners)!=null||(this.dragEndListeners=[]),this.dragEndListeners.push(I);break}}}remove(c,y,I){switch(c){case"drag-start":return this.removeHandler(this.dragStartListeners,I);case"drag-move":return this.removeHandler(this.dragMoveListeners,I);case"drag-end":return this.removeHandler(this.dragEndListeners,I)}}removeHandler(c,y){let I=c==null?void 0:c.indexOf(y);I!==void 0&&(c==null||c.splice(I,1))}registerDragTrigger(c,y){var O;let I=j=>j.button===0&&this.startDrag(c,j);c.getElement().addEventListener("mousedown",I),(O=this.dragTriggerRemovers)!=null||(this.dragTriggerRemovers=new Map),this.dragTriggerRemovers.set(y,()=>c.getElement().removeEventListener("mousedown",I))}startDrag(c,y){let I={pageX:NaN,pageY:NaN,offsetX:NaN,offsetY:NaN};Lo(["pageX","pageY","offsetX","offsetY"],I,y);let O={down:j=>{this.localDragCallbacks=O;let H=dD("drag-start",I,j);this.dispatch("drag-start",c,H)},move:j=>{let H=dD("drag-move",I,j);this.dispatch("drag-move",c,H)},up:j=>{let H=dD("drag-end",I,j);this.dispatch("drag-end",c,H),this.endDrag(c,H)}};uD(Pz,O,y)}endDrag(c,{sourceEvent:y,clientX:I,clientY:O}){var K;let j=c.getElement(),H=j.getBoundingClientRect();fe.containsPoint(H,I,O)||(j.dispatchEvent(new MouseEvent("mouseleave",y)),(K=y.target)==null||K.dispatchEvent(new MouseEvent("mouseenter",y)))}dispatch(c,y,I){var O,j,H;switch(c){case"drag-start":return(O=this.dragStartListeners)==null?void 0:O.forEach(K=>K(I,y));case"drag-move":return(j=this.dragMoveListeners)==null?void 0:j.forEach(K=>K(I,y));case"drag-end":return(H=this.dragEndListeners)==null?void 0:H.forEach(K=>K(I,y))}}},Nx=class{constructor(l){this.elem=l}setBounds(l){var c;xh((c=this.elemContainer)!=null?c:this.elem,l)}getBounds(){var l;return Sx((l=this.elemContainer)!=null?l:this.elem)}static setElementContainer(l,c){let y=l.getBounds();xh(c,y),jP(l.elem,{width:"100%",height:"100%"}),l.elem.remove(),l.elemContainer=c,l.elemContainer.replaceChildren(l.elem)}},hg=class extends Nx{constructor(l){super(l),this.elem=l,this.index=NaN,this.children=[]}getElement(){return this.elem}get clientWidth(){return this.elem.clientWidth}get clientHeight(){return this.elem.clientHeight}destroy(){var l,c,y,I;(l=this.parent)==null||l.removeChild(this),this.children.forEach(O=>{O.parent=void 0,O.destroy()}),this.children.length=0,this.destructor(),this.elem.remove(),(c=this.elemContainer)==null||c.remove(),(y=this.internalListener)==null||y.destroy(),(I=this.htmlListener)==null||I.destroy(this)}setHidden(l){$l(this.elem,"display",l?"none":void 0)}isHidden(){var l,c;return((c=(l=ca())==null?void 0:l.getComputedStyle)==null?void 0:c.call(l,this.elem).display)==="none"}setCursor(l){$l(this.elem,"cursor",l)}setTextContent(l){this.elem.textContent=l!=null?l:null}setAriaDescribedBy(l){fo(this.elem,"aria-describedby",l)}setAriaHidden(l){fo(this.elem,"aria-hidden",l)}setAriaLabel(l){fo(this.elem,"aria-label",l)}setInnerHTML(l){this.elem.innerHTML=l}isDisabled(){return bp(this.elem,"aria-disabled",!1)}parseFloat(l){return l===""?0:parseFloat(l)}cssLeft(){return this.parseFloat(this.elem.style.left)}cssTop(){return this.parseFloat(this.elem.style.top)}focus(){this.elem.focus()}setPreventsDefault(l){fo(this.elem,"data-preventdefault",l)}setTabIndex(l){fo(this.elem,"tabindex",l)}addChild(l){this.addChildToDOM(l,this.getBefore(l)),this.children.push(l),l.index=this.children.length-1,l.parent=this,this.onChildAdded(l)}removeChild(l){let c=this.children.findIndex(y=>y===l);this.children.splice(c,1),this.removeChildFromDOM(l),this.onChildRemoved(l)}addClass(...l){this.elem.classList.add(...l)}removeClass(...l){this.elem.classList.remove(...l)}toggleClass(l,c){this.elem.classList.toggle(l,c)}appendOrInsert(l,c){c?c.getElement().insertAdjacentElement("beforebegin",l):this.elem.appendChild(l)}addChildToDOM(l,c){this.appendOrInsert(l.getElement(),c)}removeChildFromDOM(l){this.elem.removeChild(l.getElement())}onChildAdded(l){}onChildRemoved(l){}getBefore({domIndex:l}){if(l!==void 0)return this.children.filter(c=>c.domIndex!==void 0&&c.domIndex>l).reduce((c,y)=>!c||y.domIndex<c.domIndex?y:c,void 0)}addListener(l,c){var y,I;Du.isHTMLEvent(l)?((y=this.htmlListener)!=null||(this.htmlListener=new Pc),this.htmlListener.add(l,this,c)):((I=this.internalListener)!=null||(this.internalListener=new VP),this.internalListener.add(l,this,c))}removeListener(l,c){var y,I;Du.isHTMLEvent(l)?(y=this.htmlListener)==null||y.remove(l,this,c):this.htmlListener!=null&&((I=this.internalListener)==null||I.remove(l,this,c))}},zx=class extends hg{constructor(){super(bs().createElement("div")),this.textElement=lv("http://www.w3.org/2000/svg","text"),this.textElement.role="presentation",this.svgElement=lv("http://www.w3.org/2000/svg","svg"),this.svgElement.appendChild(this.textElement),this.svgElement.style.width="100%",this.svgElement.style.opacity="0",this.svgElement.role="presentation",this.elem.appendChild(this.svgElement),this.elem.role="presentation"}set textContent(l){var I;this.textElement.textContent=l;let c=this.textElement,y=(I=c.getBBox)==null?void 0:I.call(c);y&&this.svgElement.setAttribute("viewBox",`${y.x} ${y.y} ${y.width} ${y.height}`)}get textContent(){return this.textElement.textContent}destructor(){}},Cv=class extends hg{constructor(){super(bs().createElement("button")),this.setEnabled(!0)}destructor(){}setEnabled(l){fo(this.elem,"aria-disabled",!l),$l(this.elem,"pointer-events",l?void 0:"none")}addListener(l,c){return super.addListener(l,(y,I)=>{(l==="click"||l==="dblclick")&&this.isDisabled()||c(y,I)})}},hD=class extends hg{constructor(){super(bs().createElement("div")),fo(this.elem,"role","group")}destructor(){}},Bx=class extends hg{constructor(l,c){super(bs().createElement("div")),this.focusedChildIndex=0,this.onChildFocus=(y,I)=>{let O=this.children[this.focusedChildIndex];this.focusedChildIndex=I.index,O==null||O.setTabIndex(-1),I.setTabIndex(0)},this.onChildKeyDown=(y,I)=>{var Z;let O=this.orientation,[j,H]=O==="both"?[Cp.horizontal,Cp.vertical]:[Cp[O],void 0],K=-1;if(Au(y.sourceEvent)){let te=y.sourceEvent.key;te===j.nextKey||te===(H==null?void 0:H.nextKey)?K=I.index+1:(te===j.prevKey||te===(H==null?void 0:H.prevKey))&&(K=I.index-1)}(Z=this.children[K])==null||Z.focus()},this.orientation=l,fo(this.elem,"role",c)}get orientation(){var l;return(l=bp(this.elem,"aria-orientation"))!=null?l:"both"}set orientation(l){fo(this.elem,"aria-orientation",l!=="both"?l:void 0)}focus(){var l;(l=this.children[this.focusedChildIndex])==null||l.focus()}onChildAdded(l){l.addListener("focus",this.onChildFocus),l.addListener("keydown",this.onChildKeyDown),l.setTabIndex(this.children.length===1?0:-1)}onChildRemoved(l){l.removeListener("focus",this.onChildFocus),l.removeListener("keydown",this.onChildKeyDown)}},Sv=class extends Bx{constructor(){super("both","list"),this.setHidden(!0)}destructor(){this.children.forEach(l=>l.getElement().parentElement.remove())}addChildToDOM(l,c){let y=bs().createElement("div");fo(y,"role","listitem"),$l(y,"position","absolute"),hg.setElementContainer(l,y),this.appendOrInsert(y,c),this.setHidden(!1)}removeChildFromDOM(l){l.getElement().parentElement.remove(),this.setHidden(this.children.length===0)}setHidden(l){this.children.length===0&&(l=!0),super.setHidden(l)}},qs=class extends hg{constructor(l){super(l)}destructor(){}},D0=class IO extends hg{constructor(){super(bs().createElement("input")),this._step=IO.STEP_ONE,this.orientation="both"}get step(){return this._step}set step(c){this._step=c,this.getElement().step=c.attributeValue}get keyboardStep(){var c,y;return(y=(c=this._keyboardStep)==null?void 0:c.step)!=null?y:this._step}set keyboardStep(c){var y;if(c!==((y=this._keyboardStep)==null?void 0:y.step)&&(this._keyboardStep!==void 0&&(this.removeListener("keydown",this._keyboardStep.onKeyDown),this.removeListener("keyup",this._keyboardStep.onKeyUp),this.removeListener("blur",this._keyboardStep.onBlur),this._keyboardStep=void 0),c!==void 0)){let I=()=>this.getElement().step=c.attributeValue,O=()=>this.getElement().step=this._step.attributeValue;this._keyboardStep={step:c,onKeyDown:I,onKeyUp:O,onBlur:O},this.addListener("keydown",this._keyboardStep.onKeyDown),this.addListener("keyup",this._keyboardStep.onKeyUp),this.addListener("blur",this._keyboardStep.onBlur)}}get orientation(){var c;return(c=bp(this.elem,"aria-orientation"))!=null?c:"both"}set orientation(c){fo(this.elem,"aria-orientation",c!=="both"?c:void 0),IO.registerDefaultPreventers(this,c)}destructor(){}clampValueRatio(c,y){let I=this.getValueRatio(),O=Ae(c,I,y);return O!==I&&this.setValueRatio(O),O}setValueRatio(c,y){let{divider:I}=this.step,O=Math.round(c*1e4)/I,{ariaValueText:j=nd(O/I)}=y!=null?y:{},H=this.getElement();H.value=`${O}`,H.ariaValueText=j}getValueRatio(){return parseFloat(this.getElement().value)/this.step.divider}static registerDefaultPreventers(c,y){y==="both"?c.removeListener("keydown",IO.onKeyDown):c.addListener("keydown",IO.onKeyDown)}static onKeyDown(c,y){let I=[],{orientation:O}=y;O==="horizontal"?I=["ArrowUp","ArrowDown"]:O==="vertical"&&(I=["ArrowLeft","ArrowRight"]),I.includes(c.sourceEvent.code)&&c.sourceEvent.preventDefault()}};D0.STEP_ONE={attributeValue:"1",divider:1},D0.STEP_HUNDRETH={attributeValue:"0.01",divider:100};var E0=D0,jI=class extends Cv{constructor(){super(),fo(this.elem,"role","switch"),this.setChecked(!1)}setChecked(l){fo(this.elem,"aria-checked",l)}},I0=class extends Bx{constructor(l="horizontal"){super(l,"toolbar")}destructor(){}};function Rh(l,c){var y;return((y=c.params)==null?void 0:y.type)===l}function gg(l){if(l==="button")return new Cv;if(l==="slider")return new E0;if(l==="toolbar")return new I0;if(l==="group")return new hD;if(l==="list")return new Sv;if(l==="region")return new qs(Aa("div"));if(l==="text")return new zx;if(l==="listswitch")return new jI;throw Error("AG Charts - error allocating meta")}function gD(l){let c={params:l,result:void 0};return c.result=gg(c.params.type),c}var Sl=class{constructor(l,c){this.localeManager=l,this.domManager=c,this.destroyFns=[]}destroy(){this.destroyFns.forEach(l=>l())}addLocalisation(l){l(),this.destroyFns.push(this.localeManager.addListener("locale-changed",l))}createProxyContainer(l){let c=gD(l),{params:y,result:I}=c,O=I.getElement();return this.domManager.addChild("canvas-proxy",y.domManagerId,O),O.classList.add(...y.classList,"ag-charts-proxy-container"),O.role=y.type,"ariaOrientation"in y&&(O.ariaOrientation=y.ariaOrientation),Rh("toolbar",c)&&(c.result.orientation=c.params.orientation),this.addLocalisation(()=>{O.ariaLabel=this.localeManager.t(y.ariaLabel.id,y.ariaLabel.params)}),I}createProxyElement(l){let c=gD(l);if(Rh("button",c)){let{params:y,result:I}=c,O=I.getElement();if(this.initInteract(y,I),typeof y.textContent=="string")O.textContent=y.textContent;else{let{textContent:j}=y;this.addLocalisation(()=>{O.textContent=this.localeManager.t(j.id,j.params)})}this.setParent(c.params,c.result)}if(Rh("slider",c)){let{params:y,result:I}=c,O=I.getElement();this.initInteract(y,I),O.type="range",O.role="presentation",O.style.margin="0px",this.addLocalisation(()=>{O.ariaLabel=this.localeManager.t(y.ariaLabel.id,y.ariaLabel.params)}),this.setParent(c.params,c.result)}if(Rh("text",c)){let{params:y,result:I}=c;this.initElement(y,I),this.setParent(c.params,c.result)}if(Rh("listswitch",c)){let{params:y,result:I}=c;this.initInteract(y,I),I.setTextContent(y.textContent),I.setChecked(y.ariaChecked),I.setAriaDescribedBy(y.ariaDescribedBy),this.setParent(c.params,c.result)}if(Rh("region",c)){let{params:y,result:I}=c,O=I.getElement();this.initInteract(y,I),O.role="region",this.setParent(c.params,c.result)}return c.result}initElement(l,c){let y=c.getElement();return fo(y,"id",l.id),$l(y,"cursor",l.cursor),y.classList.toggle("ag-charts-proxy-elem",!0),y}initInteract(l,c){let{tabIndex:y,domIndex:I}=l,O=this.initElement(l,c);y!==void 0&&(O.tabIndex=y),I!==void 0&&(c.domIndex=I)}setParent(l,c){var y;if("parent"in l)(y=l.parent)==null||y.addChild(c);else{let I={where:l.where,query:".ag-charts-series-area"};this.domManager.addChild("canvas-proxy",l.domManagerId,c.getElement(),I)}}},HP=/\$\{(\w+)}(?:\[(\w+)])?/gi,T0={number:new Intl.NumberFormat("en-US"),percent:new Intl.NumberFormat("en-US",{style:"percent",minimumFractionDigits:2,maximumFractionDigits:2}),date:new Intl.DateTimeFormat("en-US",{dateStyle:"full"}),time:new Intl.DateTimeFormat("en-US",{timeStyle:"full"}),datetime:new Intl.DateTimeFormat("en-US",{dateStyle:"full",timeStyle:"full"})},pg=({defaultValue:l,variables:c})=>l==null?void 0:l.replaceAll(HP,(y,I,O)=>{let j=c[I],H=O!=null?T0[O]:null;return O!=null&&H==null&&Pi.warnOnce(`Format style [${O}] is not supported`),H!=null?H.format(j):typeof j=="number"?T0.number.format(j):j instanceof Date?T0.datetime.format(j):String(j)}),R0=class extends as{constructor(){super(...arguments),this.localeText=void 0,this.getLocaleText=void 0}setLocaleText(l){this.localeText!==l&&(this.localeText=l,this.dispatch("locale-changed"))}setLocaleTextFormatter(l){this.getLocaleText=l,this.getLocaleText!==l&&(this.getLocaleText=l,this.dispatch("locale-changed"))}t(l,c={}){var j,H;let{localeText:y=v,getLocaleText:I}=this,O=y[l];return(H=(j=I==null?void 0:I({key:l,defaultValue:O,variables:c}))!=null?j:pg({key:l,defaultValue:O,variables:c}))!=null?H:l}};function Gx({context:l,pixelRatio:c,width:y,height:I}){l.save(),l.setTransform(c,0,0,c,0,0),l.clearRect(0,0,y,I),l.restore()}function P0(l){if(Ua.check("canvas")){let c=l.save.bind(l),y=l.restore.bind(l),I=0;Object.assign(l,{save(){c(),I++},restore(){if(I===0)throw new Error("AG Charts - Unable to restore() past depth 0");y(),I--},verifyDepthZero(){if(I!==0)throw new Error(`AG Charts - Save/restore depth is non-zero: ${I}`)}})}}var Lc=class{constructor(l){this.enabled=!0,this.width=600,this.height=300;let{width:c,height:y,pixelRatio:I,canvasElement:O,willReadFrequently:j=!1}=l;this.pixelRatio=I!=null?I:ca("devicePixelRatio"),this.element=O!=null?O:Aa("canvas"),this.element.style.display="block",this.element.style.width=(c!=null?c:this.width)+"px",this.element.style.height=(y!=null?y:this.height)+"px",this.element.width=Math.round((c!=null?c:this.width)*this.pixelRatio),this.element.height=Math.round((y!=null?y:this.height)*this.pixelRatio),this.context=this.element.getContext("2d",{willReadFrequently:j}),this.onEnabledChange(),this.resize(c!=null?c:0,y!=null?y:0),P0(this.context)}drawImage(l,c=0,y=0){return l.drawImage(this.context.canvas,c,y)}toDataURL(l){return this.element.toDataURL(l)}resize(l,c){if(!(l>0&&c>0))return;let{element:y,context:I,pixelRatio:O}=this;y.width=Math.round(l*O),y.height=Math.round(c*O),I.setTransform(O,0,0,O,0,0),y.style.width=l+"px",y.style.height=c+"px",this.width=l,this.height=c}clear(){Gx(this)}destroy(){this.element.remove(),this.element.width=0,this.element.height=0,this.context.clearRect(0,0,0,0),Object.freeze(this)}onEnabledChange(){this.element&&(this.element.style.display=this.enabled?"":"none")}};D([mp(l=>l.onEnabledChange())],Lc.prototype,"enabled",2);var Ir=class{constructor(l){this.width=600,this.height=300;let{width:c,height:y,pixelRatio:I,willReadFrequently:O=!1}=l;this.pixelRatio=I!=null?I:ca("devicePixelRatio"),this.canvas=new OffscreenCanvas(c!=null?c:this.width,y!=null?y:this.height),this.context=this.canvas.getContext("2d",{willReadFrequently:O}),this.resize(c!=null?c:0,y!=null?y:0),P0(this.context)}drawImage(l,c=0,y=0){return l.drawImage(this.context.canvas,c,y)}resize(l,c){if(!(l>0&&c>0))return;let{canvas:y,context:I,pixelRatio:O}=this;y.width=Math.round(l*O),y.height=Math.round(c*O),I.setTransform(O,0,0,O,0,0),this.width=l,this.height=c}clear(){Gx(this)}destroy(){this.canvas.width=0,this.canvas.height=0,this.context.clearRect(0,0,0,0),this.canvas=null,this.context=null,Object.freeze(this)}},WP=class{constructor(l){this.canvas=l,this.debug=Ua.create(!0,"scene"),this.layersMap=new Map,this.nextLayerId=0}get size(){return this.layersMap.size}resize(l,c){this.canvas.resize(l,c),this.layersMap.forEach(({canvas:y})=>y.resize(l,c))}addLayer(l){let{width:c,height:y,pixelRatio:I}=this.canvas,{name:O}=l,j=new Ir({width:c,height:y,pixelRatio:I});return this.layersMap.set(j,{id:this.nextLayerId++,name:O,canvas:j}),this.debug("Scene.addLayer() - layers",this.layersMap),j}removeLayer(l){this.layersMap.has(l)&&(this.layersMap.delete(l),l.destroy(),this.debug("Scene.removeLayer() -  layers",this.layersMap))}clear(){for(let l of this.layersMap.values())l.canvas.destroy();this.layersMap.clear()}},ws=class nZ{constructor(){this.offscreenCanvas=new OffscreenCanvas(1,1),nZ.offscreenCanvasCount++;let c=this.offscreenCanvas.getContext("2d");if(c==null)throw new TypeError("AG Charts - invalid 2d context");this.renderCtx={ctx:c,devicePixelRatio:1,resized:!1,debugNodes:{}}}resize({spritePixelRatio:c,spriteWidth:y,spriteHeight:I}){this.offscreenCanvas.width=Math.max(y,0)*c,this.offscreenCanvas.height=Math.max(I,0)*c}renderSprite(c,y){c=le(c);let{renderCtx:I,renderCtx:{ctx:O},offscreenCanvas:j}=this,{scale:H=1,translateX:K=0,translateY:Z=0}=y!=null?y:{};O.save(),O.resetTransform(),O.clearRect(0,0,j.width,j.height),O.beginPath(),O.setTransform(H,0,0,H,K,Z);for(let te of c)te.preRender(),te.render(I);return O.closePath(),O.restore(),j.transferToImageBitmap()}};ws.offscreenCanvasCount=0;var Ys=ws;function wv(l){for(let c of["B","KB","MB","GB"]){if(l<1536)return`${l.toFixed(1)}${c}`;l/=1024}return`${l.toFixed(1)}TB}`}function Oc(){if(!("memory"in performance))return;let{totalJSHeapSize:l,usedJSHeapSize:c,jsHeapSizeLimit:y}=performance.memory,I=[];for(let O of[c,l,y])typeof O=="number"&&I.push(wv(O));return`Heap ${I.join(" / ")}`}function VI(l,c,y,I,O={},j=ft.zero){if(!Ua.check("scene:stats","scene:stats:verbose"))return;let{layersRendered:H=0,layersSkipped:K=0,nodesRendered:Z=0,nodesSkipped:te=0,opsPerformed:se=0,opsSkipped:ge=0}=I!=null?I:{},Se=performance.now(),Ht=c,{start:Ce}=Ht,Pe=ji(Ht,["start"]),Ge=Object.entries(Pe).map(([qt,ri])=>Ux(qt,ri)).filter(qt=>qt!=null).join(" + "),We=Object.entries(O).map(([qt,ri])=>`${qt}: ${JSON.stringify(ri)}`).join(" ; "),He=Ua.check("scene:stats:verbose"),Ze=Oc(),it=[`${Ux("\u23F1\uFE0F",Ce,Se)} (${Ge})`,`${We}`,`Layers: ${He?xv(H,K):l.size}; Sprites: ${Ys.offscreenCanvasCount}`,He?`Nodes: ${xv(Z,te)}`:null,He?`Ops: ${xv(se,ge)}`:null,He&&Ze?Ze:null].filter(ht),qe=new ql(qt=>y.measureText(qt)),rt=new Map(it.map(qt=>[qt,qe.measureLines(qt)])),dt=Math.max(...Array.from(rt.values(),qt=>qt.width)),mt=pD(rt.values(),qt=>qt.height),yt=2+j.x;y.save(),y.fillStyle="white",y.fillRect(yt,0,dt,mt),y.fillStyle="black";let Lt=0;for(let[qt,ri]of rt.entries())Lt+=ri.height,y.fillText(qt,yt,Lt);y.restore()}function jx(l){let c=XC(ca("agChartsSceneDebug")),y=[];for(let I of c)I==="layout"?y.push("seriesRoot","legend","root",/.*Axis-\d+-axis.*/):y.push(I);l.debugNodeSearch=y}function Vx(l,c){l.save();for(let[y,I]of Object.entries(c)){let O=fr.toCanvas(I);if(!O){Pi.log(`Scene.render() - no bbox for debugged node [${y}].`);continue}l.globalAlpha=.8,l.strokeStyle="red",l.lineWidth=1,l.strokeRect(O.x,O.y,O.width,O.height),l.fillStyle="red",l.strokeStyle="white",l.font="16px sans-serif",l.textBaseline="top",l.textAlign="left",l.lineWidth=2,l.strokeText(y,O.x,O.y,O.width),l.fillText(y,O.x,O.y,O.width)}l.restore()}var In=new Set,Hx=new Set(["gradient","zIndex","clipRect","cachedBBox","childNodeCounts","path","__zIndex","name","__scalingCenterX","__scalingCenterY","__rotationCenterX","__rotationCenterY","_previousDatum","__fill","__lineDash","borderPath","borderClipPath","_clipPath"]);function fb(l){let c=ji(l,[]);for(let y of Object.keys(c))Hx.has(y)||typeof c[y]!="number"&&typeof c[y]!="string"&&typeof c[y]!="boolean"&&(In.add(y),delete c[y]);return c}function Sp(l,c){var I;if(!Ua.check(!0,"scene"))return{};let y=0;return pe({node:c==="json"?fb(l):l,name:(I=l.name)!=null?I:l.id,dirty:l.dirty},Array.from(l.children(),O=>Sp(O,c)).reduce((O,j)=>{let{name:H}=j,{node:{visible:K,opacity:Z,zIndex:te,translationX:se,translationY:ge,rotation:Se,scalingX:Ce,scalingY:Pe},node:Ge}=j;(!K||Z<=0)&&(H=`(${H})`),Mn.is(Ge)&&Ge.renderToOffscreenCanvas&&(H=`*${H}*`);let We=Array.isArray(te)?`(${te.join(", ")})`:te,He=[`${(y++).toString().padStart(3,"0")}|`,`${H!=null?H:"<unknown>"}`,`z: ${We}`,se&&`x: ${se}`,ge&&`y: ${ge}`,Se&&`r: ${Se}`,Ce!=null&&Ce!==1&&`sx: ${Ce}`,Pe!=null&&Pe!==1&&`sy: ${Pe}`].filter(qe=>!!qe).join(" "),Ze=He,it=1;for(;O[Ze]!=null&&it<100;)Ze=`${He} (${it++})`;return O[Ze]=j,O},{}))}function Wx(l){var O;if(!l.dirty)return{dirtyTree:{},paths:[]};let c=Array.from(l.children(),j=>Wx(j)).filter(j=>j.paths.length>0),y=Mn.is(l)&&(O=l.name)!=null?O:l.id,I=c.length?c.flatMap(j=>j.paths).map(j=>`${y}.${j}`):[y];return{dirtyTree:pe({name:y,node:l,dirty:l.dirty},c.map(j=>j.dirtyTree).filter(j=>j.dirty!=null).reduce((j,H)=>{var K;return j[(K=H.name)!=null?K:"<unknown>"]=H,j},{})),paths:I}}function xv(l,c){let y=l+c;return`${l} / ${y} (${Math.round(100*l/y)}%)`}function Ux(l,c,y){let I=y!=null?y-c:c;return`${l}: ${Math.round(I*100)/100}ms`}function pD(l,c){let y=0;for(let I of l)y+=c(I);return y}var Mv=class{constructor(l){this.debug=Ua.create(!0,"scene"),this.id=U(this),this.root=null,this.pendingSize=null,this.isDirty=!1,this.canvas=new Lc(l),this.layersManager=new WP(this.canvas)}get width(){var l,c;return(c=(l=this.pendingSize)==null?void 0:l[0])!=null?c:this.canvas.width}get height(){var l,c;return(c=(l=this.pendingSize)==null?void 0:l[1])!=null?c:this.canvas.height}setContainer(l){var y;let{element:c}=this.canvas;return(y=c.parentElement)==null||y.removeChild(c),l.appendChild(c),this}setRoot(l){var c;return this.root===l?this:(this.isDirty=!0,(c=this.root)==null||c._setLayerManager(),this.root=l,l&&(l.visible=!0,l._setLayerManager(this.layersManager)),this)}clear(){this.canvas.clear()}attachNode(l){return this.appendChild(l),()=>this.removeChild(l)}appendChild(l){var c;return(c=this.root)==null||c.appendChild(l),this}removeChild(l){var c;return(c=this.root)==null||c.removeChild(l),this}download(l,c){var y;yx(this.canvas.toDataURL(c),(y=l==null?void 0:l.trim())!=null?y:"image")}getDataURL(l){return this.canvas.toDataURL(l)}resize(l,c){return l=Math.round(l),c=Math.round(c),l>0&&c>0&&(l!==this.width||c!==this.height)?(this.pendingSize=[l,c],this.isDirty=!0,!0):!1}render(l){var ge,Se;let{debugSplitTimes:c={start:performance.now()},extraDebugStats:y,seriesRect:I}=l!=null?l:{},{canvas:O,canvas:{context:j}={},root:H,pendingSize:K}=this;if(!j)return;let Z=performance.now();if(K&&(this.layersManager.resize(...K),this.pendingSize=null),H&&!H.visible){this.isDirty=!1;return}if((H==null?void 0:H.dirty)===!1&&!this.isDirty){this.debug.check()&&this.debug("Scene.render() - no-op",{tree:Sp(H,"console")}),VI(this.layersManager,c,j,void 0,y,I);return}let te={ctx:j,devicePixelRatio:(ge=this.canvas.pixelRatio)!=null?ge:1,resized:!!K,debugNodes:{}};Ua.check("scene:stats:verbose")&&(te.stats={layersRendered:0,layersSkipped:0,nodesRendered:0,nodesSkipped:0,opsPerformed:0,opsSkipped:0}),jx(te);let se=!1;if((H==null?void 0:H.dirty)!==!1&&(se=!0,O.clear()),H&&Ua.check("scene:dirtyTree")){let{dirtyTree:Ce,paths:Pe}=Wx(H);Ua.create("scene:dirtyTree")("Scene.render() - dirtyTree",{dirtyTree:Ce,paths:Pe})}if(H&&se){if(H.visible&&H.preRender(),this.debug.check()){let Ce=Sp(H,"console");this.debug("Scene.render() - before",{canvasCleared:se,tree:Ce})}H.visible&&(j.save(),H.render(te),j.restore())}c["\u270D\uFE0F"]=performance.now()-Z,(Se=j.verifyDepthZero)==null||Se.call(j),this.isDirty=!1,VI(this.layersManager,c,j,te.stats,y,I),Vx(j,te.debugNodes),H&&this.debug.check()&&this.debug("Scene.render() - after",{tree:Sp(H,"console"),canvasCleared:se})}toSVG(){let{root:l,width:c,height:y}=this;if(l!=null)return Tn.toSVG(l,c,y)}strip(){let{context:l,pixelRatio:c}=this.canvas;l.setTransform(c,0,0,c,0,0),this.layersManager.clear(),this.setRoot(null),this.isDirty=!1}destroy(){this.strip(),this.canvas.destroy(),Object.assign(this,{canvas:void 0})}};Mv.className="Scene";var mD=class{constructor(){this.cache=new WeakMap}call(l,...c){let y,I=this.cache.get(l);try{y=JSON.stringify(c)}catch(O){return this.invoke(l,c,I)}return I==null&&(I=new Map,this.cache.set(l,I)),I.has(y)?I.get(y):this.invoke(l,c,I,y)}invoke(l,c,y,I){try{let O=l(...c);return y&&I!=null&&y.set(I,O),O}catch(O){Pi.warnOnce("User callback errored, ignoring",O);return}}invalidateCache(){this.cache=new WeakMap}},vo=class extends da{constructor(l){super(),this.annotationRoot=l,this.mementoOriginatorKey="annotations",this.annotations=[]}createMemento(){return this.annotations}guardMemento(l){return l==null||$t(l)}restoreMemento(l,c,y){this.annotations=this.cleanData(y!=null?y:[]).map(I=>{let O=this.getAnnotationTypeStyles(I.type);return Wi(I,O)}),this.listeners.dispatch("restore-annotations",{type:"restore-annotations",annotations:this.annotations})}updateData(l){this.annotations=this.cleanData(l!=null?l:[])}attachNode(l){return this.annotationRoot.append(l),()=>{var c;return(c=this.annotationRoot)==null||c.removeChild(l),this}}setAnnotationStyles(l){this.styles=l}getAnnotationTypeStyles(l){var c;return(c=this.styles)==null?void 0:c[l]}cleanData(l){for(let c of l)"textAlign"in c&&delete c.textAlign;return l}},wp=class{constructor(l){this.sceneRoot=l,this.axes=new Map,this.axisGridGroup=new Mn({name:"Axes-Grids",zIndex:1}),this.axisGroup=new Mn({name:"Axes",zIndex:2}),this.axisLabelGroup=new Mn({name:"Axes-Labels",zIndex:12}),this.axisCrosslineRangeGroup=new Mn({name:"Axes-Crosslines-Range",zIndex:3}),this.axisCrosslineLineGroup=new Mn({name:"Axes-Crosslines-Line",zIndex:7}),this.axisCrosslineLabelGroup=new Mn({name:"Axes-Crosslines-Label",zIndex:12}),this.sceneRoot.appendChild(this.axisGroup),this.sceneRoot.appendChild(this.axisGridGroup),this.sceneRoot.appendChild(this.axisLabelGroup),this.sceneRoot.appendChild(this.axisCrosslineRangeGroup),this.sceneRoot.appendChild(this.axisCrosslineLineGroup),this.sceneRoot.appendChild(this.axisCrosslineLabelGroup)}updateAxes(l,c){var I;let y={axisNode:this.axisGroup,gridNode:this.axisGridGroup,labelNode:this.axisLabelGroup,crossLineRangeNode:this.axisCrosslineRangeGroup,crossLineLineNode:this.axisCrosslineLineGroup,crossLineLabelNode:this.axisCrosslineLabelGroup};for(let O of l)c.includes(O)||(O.detachAxis(y),O.destroy());for(let O of c)l!=null&&l.includes(O)||O.attachAxis(y);this.axes.clear();for(let O of c){let j=O.createAxisContext();this.axes.has(j.direction)?(I=this.axes.get(j.direction))==null||I.push(j):this.axes.set(j.direction,[j])}}getAxisContext(l){var c;return(c=this.axes.get(l))!=null?c:[]}destroy(){this.axes.clear(),this.sceneRoot.removeChild(this.axisGroup),this.sceneRoot.removeChild(this.axisGridGroup)}},_c=class extends as{constructor(l){super(),this.animationManager=l,this.dispatchOnlyLatest=!0,this.dispatchThrottle=0,this.requestThrottle=300,this.isLoadingInitialData=!1,this.isLoadingData=!1,this.freshRequests=[],this.requestCounter=0,this.debug=Ua.create(!0,"data-model","data-source"),this.throttledFetch=this.createThrottledFetch(this.requestThrottle),this.throttledDispatch=this.createThrottledDispatch(this.dispatchThrottle)}updateCallback(l){typeof l=="function"&&(this.debug("DataService - updated data source callback"),this.dataSourceCallback=l,this.isLoadingInitialData=!0,this.animationManager.skip(),this.dispatch("data-source-change"))}clearCallback(){this.dataSourceCallback=void 0}load(l){this.isLoadingData=!0,this.throttledFetch(l)}isLazy(){return this.dataSourceCallback!=null}isLoading(){return this.isLazy()&&(this.isLoadingInitialData||this.isLoadingData)}createThrottledFetch(l){return Ny(c=>this.fetch(c).catch(y=>Pi.error("callback failed",y)),l,{leading:!1,trailing:!0})}createThrottledDispatch(l){return Ny((c,y)=>{this.debug(`DataService - dispatching 'data-load' | ${c}`),this.dispatch("data-load",{type:"data-load",data:y})},l,{leading:!0,trailing:!0})}async fetch(l){if(!this.dataSourceCallback)throw new Error("DataService - [dataSource.getData] callback not initialised");let c=performance.now(),y=this.requestCounter++;this.debug(`DataService - requesting | ${y}`),this.freshRequests.push(y);let I;try{I=await this.dataSourceCallback(l),this.debug(`DataService - response | ${performance.now()-c}ms | ${y}`)}catch(j){this.debug(`DataService - request failed | ${y}`),Pi.errorOnce(`DataService - request failed | [${j}]`)}this.isLoadingInitialData=!1;let O=this.freshRequests.findIndex(j=>j===y);if(O===-1||this.dispatchOnlyLatest&&O!==this.freshRequests.length-1){this.debug(`DataService - discarding stale request | ${y}`);return}this.freshRequests=this.freshRequests.slice(O+1),this.freshRequests.length===0&&(this.isLoadingData=!1),Array.isArray(I)?this.throttledDispatch(y,I):this.dispatch("data-error")}};D([Xl({newValue(l){this.throttledDispatch=this.createThrottledDispatch(l)}})],_c.prototype,"dispatchThrottle",2),D([Xl({newValue(l){this.throttledFetch=this.createThrottledFetch(l)}})],_c.prototype,"requestThrottle",2);var fD=class{constructor(l){this.maxAnimationTime=l,this.debug=Ua.create(!0,"animation"),this.controllers=new Map,this.stoppedCbs=new Set,this.currentPhase=0,this.phases=new Map(Jr.map(c=>[c,[]])),this.skipAnimations=!1,this.animationTimeConsumed=0,this.isReady=!1}get size(){return this.controllers.size}get consumedTimeMs(){return this.animationTimeConsumed}isActive(){return this.controllers.size>0}getActiveControllers(){var l;return(l=this.phases.get(Jr[this.currentPhase]))!=null?l:[]}checkOverlappingId(l){l!=null&&this.controllers.has(l)&&(this.controllers.get(l).stop(),this.debug(`Skipping animation batch due to update of existing animation: ${l}`),this.skip())}addAnimation(l){var y;if(l.isComplete)return;if(Jr.indexOf(l.phase)<this.currentPhase){this.debug("Skipping animation due to being for an earlier phase",l.id),l.stop();return}this.controllers.set(l.id,l),(y=this.phases.get(l.phase))==null||y.push(l)}removeAnimation(l){this.controllers.delete(l.id);let c=this.phases.get(l.phase),y=c==null?void 0:c.indexOf(l);y!=null&&y>=0&&(c==null||c.splice(y,1))}progress(l){if(!this.isReady)return;let c=l===0?.01:l,y=()=>{let te=Jr[this.currentPhase];return{phaseControllers:[...this.getActiveControllers()],phase:te,phaseMeta:Vl[te]}},{phase:I,phaseControllers:O,phaseMeta:j}=y(),H=()=>Jr[this.currentPhase]==null,K=()=>{for({phase:I,phaseControllers:O,phaseMeta:j}=y();!H()&&O.length===0;)this.currentPhase++,{phase:I,phaseControllers:O,phaseMeta:j}=y(),this.debug(`AnimationBatch - phase changing to ${I}`,{unusedTime:c},O)},Z=this.controllers.size;this.debug(`AnimationBatch - ${l}ms; phase ${I} with ${O==null?void 0:O.length} of ${Z}`);do{let te=c,se=j.skipIfNoEarlierAnimations&&this.animationTimeConsumed===0,ge=0;for(let Se of O)se?Se.stop():c=Math.min(Se.update(te),c),Se.isComplete&&(ge++,this.removeAnimation(Se));this.animationTimeConsumed+=te-c,this.debug(`AnimationBatch - updated ${O.length} controllers; ${ge} completed`),this.debug(`AnimationBatch - animationTimeConsumed: ${this.animationTimeConsumed}`),K()}while(c>0&&!H());this.animationTimeConsumed>this.maxAnimationTime&&(this.debug("Animation batch exceeded max animation time, skipping",[...this.controllers]),this.stop())}ready(){if(this.isReady)return;this.isReady=!0,this.debug(`AnimationBatch - ready; skipped: ${this.skipAnimations}`,[...this.controllers]);let l=!0;for(let[,c]of this.controllers)if(c.duration>0&&Vl[c.phase].skipIfNoEarlierAnimations!==!0){l=!1;break}if(!l)for(let[,c]of this.controllers)c.autoplay&&c.play(!0)}skip(l=!0){if(this.skipAnimations===!1&&l===!0){for(let c of this.controllers.values())c.stop();this.controllers.clear()}this.skipAnimations=l}play(){for(let l of this.controllers.values())l.play()}pause(){for(let l of this.controllers.values())l.pause()}stop(){for(let l of this.controllers.values())try{l.stop(),this.removeAnimation(l)}catch(c){Pi.error("Error during animation stop",c)}this.dispatchStopped()}stopByAnimationId(l){if(l!=null&&this.controllers.has(l)){let c=this.controllers.get(l);c&&(c.stop(),this.removeAnimation(c))}}stopByAnimationGroupId(l){for(let c of this.controllers.values())c.groupId===l&&this.stopByAnimationId(c.id)}dispatchStopped(){this.stoppedCbs.forEach(l=>l()),this.stoppedCbs.clear()}isSkipped(){return this.skipAnimations}destroy(){this.stop(),this.controllers.clear()}};function Hm(l){let c=et(pe({},l),{preventDefault(){var y;(y=c.sourceEvent)==null||y.preventDefault()}});return c}function HI(l,c){l.dispatchWrapHandlers(c.type,(y,I)=>y(I),Hm(c))}var WI=["click","dblclick","contextmenu","hover","leave","enter","page-left","wheel"],vD=["keydown","keyup"],Kx=["mousemove","mouseup"],Hr=["pagehide","mousemove","mouseup"],jd=["click","dblclick","contextmenu","mousedown","mouseleave","mouseenter","touchstart","touchmove","touchend","touchcancel","wheel","keydown","keyup"];function UP(l){return WI.includes(l)}function yD(l){return vD.includes(l)}var vb=class Lz extends hb{constructor(c,y){super(),this.keyboardOptions=c,this.domManager=y,this.debug=Ua.create(!0,"interaction"),this.eventHandler=I=>this.processEvent(I),this.clickHistory=[{offsetX:NaN,offsetY:NaN,type:"mousedown"}],this.dblclickHistory=[{offsetX:NaN,offsetY:NaN,type:"mousedown"},{offsetX:NaN,offsetY:NaN,type:"mouseup"},{offsetX:NaN,offsetY:NaN,type:"mousedown"}],this.stateQueue=34,this.rootElement=this.domManager.getShadowDocumentRoot();for(let I of jd)I.startsWith("touch")||I==="wheel"?this.domManager.addEventListener(I,this.eventHandler,{passive:!1}):this.domManager.addEventListener(I,this.eventHandler);for(let I of Hr)ca().addEventListener(I,this.eventHandler);this.containerChanged(!0),this.domManager.addListener("container-changed",()=>this.containerChanged())}containerChanged(c=!1){var I,O;let y=this.domManager.getShadowDocumentRoot();if(!(!c&&y===this.rootElement)){for(let j of Kx)(I=this.rootElement)==null||I.removeEventListener(j,this.eventHandler);this.rootElement=y,this.debug("[InteractionManager] Switching rootElement to:",this.rootElement);for(let j of Kx)(O=this.rootElement)==null||O.addEventListener(j,this.eventHandler)}}destroy(){var c;super.destroy();for(let y of Hr)ca().removeEventListener(y,this.eventHandler);for(let y of Kx)(c=this.rootElement)==null||c.removeEventListener(y,this.eventHandler);for(let y of jd)this.domManager.removeEventListener(y,this.eventHandler);this.domManager.removeStyles("interactionManager")}pushState(c){this.stateQueue|=c}popState(c){this.stateQueue&=~c}getState(){return this.stateQueue&-this.stateQueue}processEvent(c){this.debug("Received raw event",c);let y=this.decideInteractionEventTypes(c);y!=null&&!Array.isArray(y)&&(y=[y]);for(let I of y!=null?y:[])this.dispatchEvent(c,I)}dispatchEvent(c,y){if(UP(y)){this.dispatchPointerEvent(c,y);return}let{relatedElement:I,targetElement:O}=this.extractElements(c);if(yD(y)){let j=c;this.dispatchTypedEvent(this.listeners,{type:y,sourceEvent:j,relatedElement:I,targetElement:O})}}dispatchTypedEvent(c,y){let I=Hm(y);this.debug("Dispatching typed event",I,this.getState()),c.dispatchWrapHandlers(y.type,(O,j)=>O(j),I)}extractElements(c){let y,I;return"relatedTarget"in c&&c.relatedTarget instanceof HTMLElement&&(y=c.relatedTarget),"target"in c&&c.target instanceof HTMLElement&&(I=c.target),{relatedElement:y,targetElement:I}}dispatchPointerEvent(c,y){let I=this.calculateCoordinates(c);if(I==null)return;let O=this.buildPointerEvent(pe({type:y,event:c},I));this.debug("Dispatching pointer event",O,this.getState()),HI(this.listeners,O)}getEventHTMLTarget(c){if(c.target instanceof HTMLElement)return c.target;if(c.currentTarget instanceof HTMLElement)return c.currentTarget}recordDown(c){c instanceof MouseEvent&&(Lo(["offsetX","offsetY"],this.clickHistory[0],c),Lo(["offsetX","offsetY"],this.dblclickHistory[2],this.dblclickHistory[0]),Lo(["offsetX","offsetY"],this.dblclickHistory[0],c))}recordUp(c){c instanceof MouseEvent&&Lo(["offsetX","offsetY"],this.dblclickHistory[1],c)}decideInteractionEventTypes(c){switch(c.type){case"keydown":case"keyup":return this.keyboardOptions.enabled?c.type:void 0;case"click":case"dblclick":return c.type;case"contextmenu":case"wheel":return c.type;case"touchstart":case"mousedown":if(!this.isEventOverElement(c))return;this.recordDown(c);return;case"touchmove":case"mousemove":return this.isEventOverElement(c)?"hover":void 0;case"mouseup":case"touchend":if(!this.isEventOverElement(c))return;this.recordUp(c);return;case"mouseleave":case"touchcancel":return"leave";case"mouseenter":return"enter";case"pagehide":return"page-left"}}isEventOverElement(c){return c.target instanceof HTMLElement&&this.domManager.contains(c.target)}calculateCoordinates(c){var y;if(c instanceof MouseEvent)return this.getMouseEventCoords(c);if(typeof TouchEvent!="undefined"&&c instanceof TouchEvent){let I=(y=c.touches[0])!=null?y:c.changedTouches[0],{clientX:O,clientY:j,pageX:H,pageY:K}=I;return et(pe({},Lz.NULL_COORDS),{clientX:O,clientY:j,pageX:H,pageY:K})}else if(c instanceof PageTransitionEvent)return c.persisted?void 0:Lz.NULL_COORDS}getMouseEventCoords(c){let{clientX:y,clientY:I,pageX:O,pageY:j}=c,{offsetX:H,offsetY:K}=c,Z=this.getEventHTMLTarget(c),{x:te=0,y:se=0}=Z?this.domManager.calculateCanvasPosition(Z):{};return H+=te,K+=se,{clientX:y,clientY:I,pageX:O,pageY:j,offsetX:H,offsetY:K}}static isWheelEvent(c){return c.type==="wheel"}static getWheelDeltas(c){let[y,I]=[NaN,NaN];if(this.isWheelEvent(c)){let O=c.deltaMode===0?.01:1;y=c.deltaX*O,I=c.deltaY*O}return{deltaX:y,deltaY:I}}buildPointerEvent(c){var He,Ze,it;let{type:y,event:I,clientX:O,clientY:j}=c,{offsetX:H,offsetY:K,pageX:Z,pageY:te}=c;if(!_t(H)||!_t(K)){let qe=this.domManager.getBoundingClientRect();H=O-qe.left,K=j-qe.top}if(!_t(Z)||!_t(te)){let qe=(He=this.rootElement)==null?void 0:He.getBoundingClientRect();Z=O-((Ze=qe==null?void 0:qe.left)!=null?Ze:0),te=j-((it=qe==null?void 0:qe.top)!=null?it:0)}let{deltaX:se,deltaY:ge}=Lz.getWheelDeltas(I),Se=[];I.type==="click"?Se=this.clickHistory:I.type==="dblclick"&&(Se=this.dblclickHistory);let{relatedElement:Ce,targetElement:Pe}=this.extractElements(I),Ge="button"in I?Number(I.button):0,We={type:y,offsetX:H,offsetY:K,pageX:Z,pageY:te,deltaX:se,deltaY:ge,button:Ge,pointerHistory:Se,sourceEvent:I,relatedElement:Ce,targetElement:Pe};return this.debug("InteractionManager - builtEvent: ",We,this.getState()),We}};vb.NULL_COORDS={clientX:-1/0,clientY:-1/0,pageX:-1/0,pageY:-1/0,offsetX:-1/0,offsetY:-1/0};var yb=vb;function L0(l){return l==null?!0:!isNaN(l)&&l>=0&&l<=2}var kv=class{constructor(l,c){this.interactionManager=l,this.chartUpdateMutex=c,this.defaultDuration=1e3,this.batch=new fD(this.defaultDuration*1.5),this.debug=Ua.create(!0,"animation"),this.events=new oa,this.rafAvailable=typeof requestAnimationFrame!="undefined",this.isPlaying=!0,this.requestId=null,this.skipAnimations=!0,this.currentAnonymousAnimationId=0}addListener(l,c){return this.events.on(l,c)}animate(l){let c=this.batch;try{c.checkOverlappingId(l.id)}catch(K){this.failsafeOnError(K);return}let{id:y}=l;y==null&&(y=`__${this.currentAnonymousAnimationId}`,this.currentAnonymousAnimationId+=1);let I=this.isSkipped()||l.phase==="none";I&&this.debug("AnimationManager - skipping animation");let{delay:O,duration:j}=l;if(!L0(O))throw new Error(`Animation delay of ${O} is unsupported (${y})`);if(!L0(j))throw new Error(`Animation duration of ${j} is unsupported (${y})`);let H=new _y(et(pe({},l),{id:y,skip:I,autoplay:this.isPlaying?l.autoplay:!1,phase:l.phase,defaultDuration:this.defaultDuration}));if(!this.forceTimeJump(H,this.defaultDuration))return this.batch.addAnimation(H),H}play(){if(!this.isPlaying){this.isPlaying=!0,this.debug("AnimationManager.play()");try{this.batch.play()}catch(l){this.failsafeOnError(l)}this.requestAnimation()}}pause(){if(this.isPlaying){this.isPlaying=!1,this.cancelAnimation(),this.debug("AnimationManager.pause()");try{this.batch.pause()}catch(l){this.failsafeOnError(l)}}}stop(){this.isPlaying=!1,this.cancelAnimation(),this.debug("AnimationManager.stop()"),this.batch.stop()}stopByAnimationId(l){try{this.batch.stopByAnimationId(l)}catch(c){this.failsafeOnError(c)}}stopByAnimationGroupId(l){try{this.batch.stopByAnimationGroupId(l)}catch(c){this.failsafeOnError(c)}}reset(){this.isPlaying?(this.stop(),this.play()):this.stop()}skip(l=!0){this.skipAnimations=l}isSkipped(){return!this.rafAvailable||this.skipAnimations||this.batch.isSkipped()}isActive(){return this.isPlaying&&this.batch.isActive()}skipCurrentBatch(){this.debug.check()&&this.debug("AnimationManager - skipCurrentBatch()",{stack:new Error().stack}),this.batch.skip()}isSkippingFrames(){return!0}scheduleAnimationFrame(l){this.requestId=ca().requestAnimationFrame(c=>{l(c).catch(y=>Pi.error(y))})}forceTimeJump(l,c){return!1}requestAnimation(){if(!this.rafAvailable||!this.batch.isActive()||this.requestId!==null)return;let l,c=async y=>{let I=()=>{let O=y-(l!=null?l:y);l=y,this.debug("AnimationManager - onAnimationFrame()",{controllersCount:this.batch.size,deltaTime:O}),this.interactionManager.pushState(2);try{this.batch.progress(O)}catch(j){this.failsafeOnError(j)}this.events.emit("animation-frame",{type:"animation-frame",deltaMs:O})};this.isSkippingFrames()?await this.chartUpdateMutex.acquireImmediately(I):await this.chartUpdateMutex.acquire(I),this.batch.isActive()?this.scheduleAnimationFrame(c):(this.batch.stop(),this.events.emit("animation-stop",{type:"animation-stop",deltaMs:this.batch.consumedTimeMs}))};this.events.emit("animation-start",{type:"animation-start",deltaMs:0}),this.scheduleAnimationFrame(c)}cancelAnimation(){this.requestId!==null&&(cancelAnimationFrame(this.requestId),this.requestId=null,this.startBatch())}failsafeOnError(l,c=!0){Pi.error("Error during animation, skipping animations",l),c&&this.cancelAnimation()}startBatch(l){this.debug(`AnimationManager - startBatch() with skipAnimations=${l}.`),this.reset(),this.batch.destroy(),this.batch=new fD(this.defaultDuration*1.5),l===!0&&this.batch.skip()}endBatch(){this.batch.isActive()?(this.batch.ready(),this.requestAnimation()):(this.interactionManager.popState(2),this.batch.isSkipped()&&this.batch.skip(!1))}onBatchStop(l){this.batch.stoppedCbs.add(l)}destroy(){this.stop(),this.events.clear()}},O0=class extends da{legendItemClick(l,c,y,I,O){let j={type:"legend-item-click",legendType:l,series:c,itemId:y,enabled:I,legendItemName:O};this.listeners.dispatch("legend-item-click",j)}legendItemDoubleClick(l,c,y,I,O,j){let H={type:"legend-item-double-click",legendType:l,series:c,itemId:y,enabled:I,legendItemName:j,numVisibleItems:O};this.listeners.dispatch("legend-item-double-click",H)}axisHover(l,c){let y={type:"axis-hover",axisId:l,direction:c};this.listeners.dispatch("axis-hover",y)}},qx=class{constructor(){this.defaultActions=[],this.disabledActions=new Set,this.hiddenActions=new Set,this.listeners=new as}static check(l,c){return c.type===l}static checkCallback(l,c,y){return l===c}dispatchContext(l,c,y,I){var K,Z;let{sourceEvent:O}=c,j=(K=I==null?void 0:I.x)!=null?K:c.canvasX,H=(Z=I==null?void 0:I.y)!=null?Z:c.canvasY;O.stopPropagation(),this.listeners.dispatch("",Hm({type:l,x:j,y:H,context:y,sourceEvent:O}))}addListener(l){return this.listeners.addListener("",l)}filterActions(l){return this.defaultActions.filter(c=>c.id&&!this.hiddenActions.has(c.id)&&["all",l].includes(c.type))}registerDefaultAction(l){let c=l.id!=null&&!this.defaultActions.some(({id:y})=>y===l.id);return c&&this.defaultActions.push(l),()=>{let y=c?this.defaultActions.findIndex(({id:I})=>I===l.id):-1;y!==-1&&this.defaultActions.splice(y,1)}}enableAction(l){this.disabledActions.delete(l)}disableAction(l){this.disabledActions.add(l)}showAction(l){this.hiddenActions.add(l)}hideAction(l){this.hiddenActions.delete(l)}isDisabled(l){return this.disabledActions.has(l)}},Av=class extends Map{constructor(l,c){super(),this.defaultValue=l,this.defaultState=c}set(l,c){return this.delete(l),typeof c!="undefined"&&super.set(l,c),this}stateId(){var l;return(l=Array.from(this.keys()).pop())!=null?l:this.defaultState}stateValue(){var l;return(l=Array.from(this.values()).pop())!=null?l:this.defaultValue}},Yx=(l=>(l.Auto="auto",l.Default="default",l.Grab="grab",l.Grabbing="grabbing",l.Move="move",l.NotAllowed="not-allowed",l.Pointer="pointer",l.EWResize="ew-resize",l.NSResize="ns-resize",l.ZoomIn="zoom-in",l.ZoomOut="zoom-out",l))(Yx||{}),bD=class{constructor(l){this.domManager=l,this.stateTracker=new Av("default")}updateCursor(l,c){this.stateTracker.set(l,c),this.domManager.updateCursor(this.stateTracker.stateValue())}getCursor(){return this.domManager.getCursor()}};function UI(l,c){let y=l.screenX-c.screenX,I=l.screenY-c.screenY;return y*y+I*I}function Xx(l,c){return Math.sqrt(UI(l,c))}var bb=1,Zx=class extends da{constructor(l){super(),this.domManager=l,this.touchstart=c=>this.onTouchStart(c),this.touchmove=c=>this.onTouchMove(c),this.touchend=c=>this.onTouchEnd(c),this.touchcancel=c=>this.onTouchCancel(c),this.pinch={finger1:{identifier:NaN,screenX:NaN,screenY:NaN},finger2:{identifier:NaN,screenX:NaN,screenY:NaN},origin:{x:NaN,y:NaN},distance:NaN,status:0},this.domManager.addEventListener("touchstart",this.touchstart,{passive:!0}),this.domManager.addEventListener("touchmove",this.touchmove,{passive:!1}),this.domManager.addEventListener("touchend",this.touchend),this.domManager.addEventListener("touchcancel",this.touchcancel)}destroy(){this.domManager.removeEventListener("touchstart",this.touchstart),this.domManager.removeEventListener("touchmove",this.touchmove),this.domManager.removeEventListener("touchend",this.touchend),this.domManager.removeEventListener("touchcancel",this.touchcancel)}findPinchTouches(l){let{touches:c}=l,{finger1:y,finger2:I}=this.pinch;if(this.pinch.status!==0&&c.length===2){if(c[0].identifier===y.identifier&&c[1].identifier===I.identifier)return[c[0],c[1]];if(c[0].identifier===I.identifier&&c[1].identifier===y.identifier)return[c[1],c[0]]}}copyTouchData(l){let c=["identifier","screenX","screenY"];Lo(c,this.pinch.finger1,l.touches[0]),Lo(c,this.pinch.finger2,l.touches[1]),this.pinch.distance=Xx(this.pinch.finger1,this.pinch.finger2)}dispatchPinchEvent(l,c,y){let{finger1:I,finger2:O,origin:j}=this.pinch;this.listeners.dispatch(l,Hm({sourceEvent:y,type:l,finger1:I,finger2:O,deltaDistance:c,origin:j}))}onTouchStart(l){this.stopPinchTracking(l);let{pinch:c}=this;l.touches.length===2&&(c.status=1,this.copyTouchData(l),c.origin.x=(l.touches[0].clientX+l.touches[1].clientX)/2,c.origin.y=(l.touches[0].clientY+l.touches[1].clientY)/2)}onTouchMove(l){let c=this.findPinchTouches(l);if(c!==void 0){let[y,I]=c,{pinch:O}=this,j=Xx(y,I),H=j-O.distance;O.status===1?Math.abs(H)>bb&&(O.status=2,this.copyTouchData(l),this.dispatchPinchEvent("pinch-start",0,l)):O.status===2?(O.distance=j,this.copyTouchData(l),this.dispatchPinchEvent("pinch-move",H,l)):Pi.error(`unexpected pinch.status: ${O.status}`)}}onTouchEnd(l){this.stopPinchTracking(l)}onTouchCancel(l){this.stopPinchTracking(l)}stopPinchTracking(l){let{pinch:c}=this;c.status===2&&this.dispatchPinchEvent("pinch-end",0,l),this.pinch.status=0}},$x=class extends da{constructor(){super(...arguments),this.highlightStates=new Av}updateHighlight(l,c){let{activeHighlight:y}=this;this.highlightStates.set(l,c),this.activeHighlight=this.highlightStates.stateValue(),this.isEqual(this.activeHighlight,y)||this.listeners.dispatch("highlight-change",{type:"highlight-change",currentHighlight:this.activeHighlight,previousHighlight:y,callerId:l})}getActiveHighlight(){return this.activeHighlight}isEqual(l,c){return l===c||l!=null&&c!=null&&(l==null?void 0:l.series)===(c==null?void 0:c.series)&&(l==null?void 0:l.itemId)===(c==null?void 0:c.itemId)&&(l==null?void 0:l.datum)===(c==null?void 0:c.datum)}},Qx=class extends hb{constructor(l,c){super(),this.interactionManager=l,this.previousInputDevice="keyboard";let y=c.getRegion("series"),I=41;this.destroyFns.push(l.addListener("click",()=>this.onClick(),I),l.addListener("hover",()=>this.onMouse(),I),l.addListener("wheel",()=>this.onClick(),I),l.addListener("keydown",O=>this.onKeyDown(O),63),y.addListener("drag-start",()=>this.onClick(),I))}getState(){return this.interactionManager.getState()}destroy(){super.destroy()}onClick(){var l;(l=this.focusIndicator)==null||l.overrideFocusVisible(!1),this.previousInputDevice="mouse"}onMouse(){this.previousInputDevice="mouse"}onKeyDown(l){var Z,te,se,ge;let c=this.getState(),{key:y,code:I,altKey:O,shiftKey:j,metaKey:H,ctrlKey:K}=l.sourceEvent;if(K||H){if(y==="y"||y==="z"&&j)return(Z=this.focusIndicator)==null||Z.overrideFocusVisible(this.previousInputDevice==="keyboard"),this.dispatch("redo",0,l);if(y==="z")return(te=this.focusIndicator)==null||te.overrideFocusVisible(this.previousInputDevice==="keyboard"),this.dispatch("undo",0,l)}if(c&9){(se=this.focusIndicator)==null||se.overrideFocusVisible(!1);return}switch(y){case"+":return this.dispatch("nav-zoom",1,l);case"-":return this.dispatch("nav-zoom",-1,l)}if(!(O||j||H||K))switch((ge=this.focusIndicator)==null||ge.overrideFocusVisible(!0),I){case"ArrowDown":return this.dispatch("nav-vert",1,l);case"ArrowUp":return this.dispatch("nav-vert",-1,l);case"ArrowLeft":return this.dispatch("nav-hori",-1,l);case"ArrowRight":return this.dispatch("nav-hori",1,l);case"ZoomIn":case"Add":return this.dispatch("nav-zoom",1,l);case"ZoomOut":case"Substract":return this.dispatch("nav-zoom",-1,l);case"Space":case"Enter":return this.dispatch("submit",0,l)}}dispatch(l,c,y){let{previousInputDevice:I}=this;HI(this.listeners,{type:l,delta:c,sourceEvent:y,previousInputDevice:I});let O=["redo","undo","nav-zoom"];y.type==="keydown"&&!O.includes(l)&&(this.previousInputDevice="keyboard")}},Jx=class extends as{},_0=300,F0=3;function N0(l,c,y,I,O=32){var j;return(j=l==null?void 0:l.addListener(y,H=>{c.getState()&O&&I(H)}))!=null?j:()=>{}}function z0(l){if(l==null||!(l instanceof HTMLElement))return;let c=l;for(;c!=null&&!(c!=null&&c.classList.contains("ag-charts-wrapper"));){if(c.classList.contains("ag-charts-tooltip"))return c;c=c.parentElement}}function Cb(l){var j,H;let{sourceEvent:c}=l,{className:y,classList:I,ariaHidden:O}=(H=(j=l.sourceEvent)==null?void 0:j.target)!=null?H:{};return y==="ag-charts-proxy-elem"||!(I instanceof DOMTokenList)?"leave":I.contains("ag-charts-annotations__axis-button-icon")||y==="ag-charts-swapchain"||y==="ag-charts-canvas-container"||y==="ag-charts-canvas-proxy"||(c==null?void 0:c.target)instanceof HTMLCanvasElement?"none":z0(c.target)&&O!=="true"?"wait":"leave"}var CD=class{constructor(l){this.interactionManager=l,this.debug=Ua.create(!0,"region"),this.regions={root:{properties:{name:"root"},listeners:new Jx},series:{properties:{name:"series"},listeners:new Jx}},this.destroyFns=[],this.allRegionsListeners=new Jx,this.isDragMoving=!1,this.blockNextClickEvent=!1,this.processPointerEvent=c=>{let y=Cb(c),{current:I}=this,O=I;if(!this.isDragMoving&&this.deferredDragStart==null)switch(y){case"wait":return;case"none":O=this.pickRegion(c);break;case"leave":O=void 0;break}let j=O;I!==void 0&&(j==null?void 0:j.properties.name)!==I.properties.name&&this.dispatch(I,c,"leave"),j!==void 0&&j.properties.name!==(I==null?void 0:I.properties.name)&&this.dispatch(O,c,"enter"),j!==void 0&&this.dispatch(O,c),this.current=O}}destroy(){this.destroyFns.forEach(l=>l()),this.current=void 0,this.regions.root.listeners.destroy(),this.regions.series.listeners.destroy()}initRegions(l,c){this.regions.root.properties.widget=l,this.regions.series.properties.widget=c,l.addListener("wheel",this.processPointerEvent),l.addListener("contextmenu",this.processPointerEvent),l.addListener("click",this.processPointerEvent),l.addListener("dblclick",this.processPointerEvent),l.addListener("mouseenter",this.processPointerEvent),l.addListener("mousemove",this.processPointerEvent),l.addListener("mouseleave",this.processPointerEvent),l.addListener("drag-start",this.processPointerEvent),l.addListener("drag-move",this.processPointerEvent),l.addListener("drag-end",this.processPointerEvent)}getRegion(l){return this.makeObserver(this.regions[l])}listenAll(l,c,y=32){return N0(this.allRegionsListeners,this.interactionManager,l,c,y)}makeObserver(l){let{interactionManager:c}=this;class y{addListener(O,j,H=32){return N0(l==null?void 0:l.listeners,c,O,j,H)}}return new y}widgetEventTypeToRegionEventType(l,c){return c!==void 0?c:{contextmenu:"contextmenu",click:"click",dblclick:"dblclick",mouseenter:"enter",mousemove:"hover",mouseleave:"leave",wheel:"wheel","drag-start":"drag-start","drag-move":"drag","drag-end":"drag-end"}[l.type]}computeEventOffsets(l,c,y){let{deltaX:I,deltaY:O}=yb.getWheelDeltas(y.sourceEvent);if("mockRegion"in y.sourceEvent){let K=y.sourceEvent.mockRegion;if(K)return pe({deltaX:I,deltaY:O},K)}let j=c.getElement().getBoundingClientRect(),H=l.getElement().getBoundingClientRect();return{canvasX:y.clientX-j.x,canvasY:y.clientY-j.y,regionX:y.clientX-H.x,regionY:y.clientY-H.y,deltaX:I,deltaY:O}}dispatch(l,c,y){var H;let{widget:I}=(H=l==null?void 0:l.properties)!=null?H:{},{widget:O}=this.regions.root.properties;if(l==null||I==null||O==null)return;let j=Hm(et(pe({},this.computeEventOffsets(I,O,c)),{sourceEvent:c.sourceEvent,type:this.widgetEventTypeToRegionEventType(c,y),region:l.properties.name,timestamp:Date.now()}));switch(j.type){case"drag-start":{this.deferredDragStart=j;break}case"drag":{if(this.deferredDragStart)if(this.canStartDrag(j))this.dispatchEvent(l,this.deferredDragStart);else return;this.dispatchEvent(l,j),this.deferredDragStart=void 0,this.isDragMoving=!0,this.blockNextClickEvent=!0;break}case"drag-end":{this.isDragMoving&&this.dispatchEvent(l,j),this.deferredDragStart=void 0,this.isDragMoving=!1;break}case"click":{this.blockNextClickEvent||this.dispatchEvent(l,j),this.blockNextClickEvent=!1;break}case"leave":case"enter":(!this.isDragMoving||this.deferredDragStart!=null)&&this.dispatchEvent(l,j);break;case"hover":{this.blockNextClickEvent=!1,this.dispatchEvent(l,j);break}default:{this.dispatchEvent(l,j);break}}}dispatchEvent(l,c){this.debug("Dispatching region event: ",c),this.allRegionsListeners.dispatch(c.type,c),l.listeners.dispatch(c.type,c)}pickRegion({sourceEvent:l}){var c,y;return"mockRegion"in l&&l.mockRegion?l.mockRegion.region==="series"?this.regions.series:this.regions.root:l.target==((y=(c=this.regions.root)==null?void 0:c.properties.widget)==null?void 0:y.getElement())?this.regions.root:this.regions.series}canStartDrag(l){return this.deferredDragStart?l.timestamp-this.deferredDragStart.timestamp>_0?!0:Math.abs(l.canvasX-this.deferredDragStart.canvasX)+Math.abs(l.canvasY-this.deferredDragStart.canvasY)>F0:!1}};function eM(l){var y,I,O,j,H;let c=(H=(I=(y=l.yBar)==null?void 0:y.upperPoint)!=null?I:l.midPoint)!=null?H:(j=(O=l.series).datumMidPoint)==null?void 0:j.call(O,l);if(c){let{x:K,y:Z}=fr.toCanvasPoint(l.series.contentGroup,c.x,c.y);return{canvasX:Math.round(K),canvasY:Math.round(Z)}}}var ec=class{constructor(l,c){this.domManager=l,this.tooltip=c,this.stateTracker=new Av,this.suppressState=new Av(!1),this.appliedState=null,c.setup(l),l.addListener("hidden",()=>this.tooltip.hide())}updateTooltip(l,c,y){var I;this.tooltip.enabled&&(y!=null||(y=(I=this.stateTracker.get(l))==null?void 0:I.content),this.stateTracker.set(l,{content:y,meta:c}),this.applyStates())}removeTooltip(l){this.tooltip.enabled&&(this.stateTracker.delete(l),this.applyStates())}suppressTooltip(l){this.suppressState.set(l,!0)}unsuppressTooltip(l){this.suppressState.delete(l)}getTooltipMeta(l){var c;return(c=this.stateTracker.get(l))==null?void 0:c.meta}destroy(){this.domManager.removeStyles("tooltip")}applyStates(){var O;let l=this.stateTracker.stateId(),c=l?this.stateTracker.get(l):null;if(this.suppressState.stateValue()||(c==null?void 0:c.meta)==null||(c==null?void 0:c.content)==null){this.appliedState=null,this.tooltip.hide();return}let y=this.domManager.getBoundingClientRect(),I=this.tooltip.bounds==="extended"?this.domManager.getOverlayClientRect():y;if(((O=this.appliedState)==null?void 0:O.content)===(c==null?void 0:c.content)){let j=this.tooltip.isVisible();this.tooltip.show(I,y,c==null?void 0:c.meta,null,j)}else this.tooltip.show(I,y,c==null?void 0:c.meta,c==null?void 0:c.content);this.appliedState=c}static makeTooltipMeta(l,c){var K,Z;let{canvasX:y,canvasY:I}=l,O=c.series.properties.tooltip,j={canvasX:y,canvasY:I,enableInteraction:(Z=(K=O.interaction)==null?void 0:K.enabled)!=null?Z:!1,lastPointerEvent:{type:l.type,canvasX:y,canvasY:I},showArrow:O.showArrow,position:{type:O.position.type,xOffset:O.position.xOffset,yOffset:O.position.yOffset}},H=eM(c);return(O.position.type==="node"||O.position.type==="sparkline")&&H?et(pe({},j),{canvasX:H.canvasX,canvasY:H.canvasY}):j}},Xs={bottomCenter:qI,center:KI,clone:Sb,end:SD,from:qP,height:YI,round:Um,start:KP,topCenter:Wm,origin:YP,width:B0};function KP(l){return{x:l.x1,y:l.y1}}function SD(l){return{x:l.x2,y:l.y2}}function Wm(l){return{x:(l.x1+l.x2)/2,y:Math.min(l.y1,l.y2)}}function KI(l){return{x:(l.x1+l.x2)/2,y:(l.y1+l.y2)/2}}function qI(l){return{x:(l.x1+l.x2)/2,y:Math.max(l.y1,l.y2)}}function B0(l){return Math.abs(l.x2-l.x1)}function YI(l){return Math.abs(l.y2-l.y1)}function Um(l){return{x1:Math.round(l.x1),y1:Math.round(l.y1),x2:Math.round(l.x2),y2:Math.round(l.y2)}}function Sb(l){return{x1:l.x1,y1:l.y1,x2:l.x2,y2:l.y2}}function qP(l,c,y,I){if(typeof l=="number")return{x1:l,y1:c,x2:y,y2:I};if("width"in l)return{x1:l.x,y1:l.y,x2:l.x+l.width,y2:l.y+l.height};throw new Error(`Values can not be converted into a vector4: [${JSON.stringify(l)}] [${c}] [${y}] [${I}]`)}function YP(){return{x1:0,y1:0,x2:0,y2:0}}function G0(l,c,y,I,O){return c+(I-c)*((O-l)/(y-l))}function XI(l,c,y,I,O){return l+(O-c)*((y-l)/(I-c))}function ZI(l,c,y){return[XI(l,y.min,c,y.max,0),XI(l,y.min,c,y.max,1)]}function XP(l,c,y){let[I,O]=ZI(l.x1,l.x2,c),[j,H]=ZI(l.y1,l.y2,y);return{x1:I,x2:O,y1:j,y2:H}}function wD(l,c,y,I,O,j){if(y<=O&&j<=I)return y;let H=O-y,K=j-I,Z=Math.abs(H)<Math.abs(K)?H:K;return Ae(l,y+Z,c)}function ZP(l,c,y){let{x:I={min:0,max:1},y:O={min:0,max:1}}=c,j=Xs.from(y),H=Xs.from(l),K=XP(H,I,O),Z=wD(K.x1,K.x2,H.x1,H.x2,j.x1,j.x2),te=wD(K.y1,K.y2,H.y1,H.y2,j.y1,j.y2);return{x:{min:G0(H.x1,I.min,H.x2,I.max,Z),max:G0(H.x1,I.min,H.x2,I.max,Z+l.width)},y:{min:G0(H.y1,O.min,H.y2,O.max,te),max:G0(H.y1,O.min,H.y2,O.max,te+l.height)}}}var $P=["rangeX","rangeY","ratioX","ratioY","autoScaleYAxis"],QP=class{constructor(){this.enabled=!1,this.padding=0,this.manuallyAdjusted=!1}},xD=class extends da{constructor(){super(...arguments),this.mementoOriginatorKey="zoom",this.axisZoomManagers=new Map,this.state=new Av(void 0,"initial"),this.axes=[],this.didLayoutAxes=!1,this.autoScaleYAxis=new QP,this.lastRestoredState=void 0,this.independentAxes=!1,this.navigatorModule=!1,this.zoomModule=!1,this.pendingMemento=void 0}addLayoutListeners(l){this.destroyFns.push(l.addListener("layout:complete",()=>{let{pendingMemento:c}=this,y=!this.didLayoutAxes;this.didLayoutAxes=!0,c?this.restoreMemento(c.version,c.mementoVersion,c.memento):y&&this.autoScaleYZoom("zoom-manager")}))}createMemento(){let l=this.getDefinedZoom(),c={rangeX:this.getRangeDirection(l.x,"x"),rangeY:this.getRangeDirection(l.y,"y"),ratioX:{start:l.x.min,end:l.x.max},ratioY:{start:l.y.min,end:l.y.max}};return this.autoScaleYAxis.enabled&&(c.autoScaleYAxis=!this.autoScaleYAxis.manuallyAdjusted),c}guardMemento(l){if(l==null)return!0;if(!Ke(l))return!1;for(let c of Object.keys(l))if(!cp($P,c))return!1;return!0}restoreMemento(l,c,y){var K,Z,te,se,ge,Se;let{independentAxes:I}=this;if(!this.axes||!this.didLayoutAxes){this.pendingMemento={version:l,mementoVersion:c,memento:y};return}this.pendingMemento=void 0;let O=this.getDefinedZoom();if(y!=null&&y.rangeX?O.x=(K=this.rangeToRatio(y.rangeX,"x"))!=null?K:{min:0,max:1}:y!=null&&y.ratioX?O.x={min:(Z=y.ratioX.start)!=null?Z:0,max:(te=y.ratioX.end)!=null?te:1}:O.x={min:0,max:1},(!this.navigatorModule||this.zoomModule)&&(y!=null&&y.rangeY?O.y=(se=this.rangeToRatio(y.rangeY,"y"))!=null?se:{min:0,max:1}:y!=null&&y.ratioY?O.y={min:(ge=y.ratioY.start)!=null?ge:0,max:(Se=y.ratioY.end)!=null?Se:1}:O.y={min:0,max:1}),(y==null?void 0:y.autoScaleYAxis)!=null&&(this.autoScaleYAxis.manuallyAdjusted=!y.autoScaleYAxis),this.lastRestoredState=O,I!==!0){this.updateZoom("zoom-manager",O);return}let j=this.getPrimaryAxis("x"),H=this.getPrimaryAxis("y");for(let Ce of[j,H])Ce&&this.updateAxisZoom("zoom-manager",Ce.id,O[Ce.direction])}updateAxes(l){var y;this.axes=l;let c=new Map(l.map(I=>[I.id,this.axisZoomManagers.get(I.id)]));this.axisZoomManagers.clear();for(let I of l)this.axisZoomManagers.set(I.id,(y=c.get(I.id))!=null?y:new JP(I));this.state.size>0&&l.length>0&&this.updateZoom(this.state.stateId(),this.state.stateValue())}setIndependentAxes(l=!0){this.independentAxes=l}setAutoScaleYAxis(l,c){this.autoScaleYAxis.enabled=l,this.autoScaleYAxis.padding=c}setNavigatorEnabled(l=!0){this.navigatorModule=l}setZoomModuleEnabled(l=!0){this.zoomModule=l}isZoomEnabled(){return this.zoomModule}updateZoom(l,c){if(this.axisZoomManagers.size===0){let y=this.state.stateId();(y==="initial"||y===l)&&this.state.set(l,c);return}this.state.set(l,c),this.axisZoomManagers.forEach(y=>{y.updateZoom(l,c==null?void 0:c[y.getDirection()])}),this.applyChanges(l)}updateAxisZoom(l,c,y){var I;(I=this.axisZoomManagers.get(c))==null||I.updateZoom(l,y),this.applyChanges(l)}resetZoom(l){var y,I,O,j,H,K,Z,te;this.autoScaleYAxis.manuallyAdjusted=!1;let c=this.getRestoredZoom();this.updateZoom(l,{x:{min:(I=(y=c==null?void 0:c.x)==null?void 0:y.min)!=null?I:0,max:(j=(O=c==null?void 0:c.x)==null?void 0:O.max)!=null?j:1},y:{min:(K=(H=c==null?void 0:c.y)==null?void 0:H.min)!=null?K:0,max:(te=(Z=c==null?void 0:c.y)==null?void 0:Z.max)!=null?te:1}})}resetAxisZoom(l,c){var O,j;let y=this.axisZoomManagers.get(c),I=y==null?void 0:y.getDirection();I!=null&&(I==="y"&&(this.autoScaleYAxis.manuallyAdjusted=!1),this.updateAxisZoom(l,c,(j=(O=this.getRestoredZoom())==null?void 0:O[I])!=null?j:{min:0,max:1}))}setAxisManuallyAdjusted(l,c){var I;((I=this.axisZoomManagers.get(c))==null?void 0:I.getDirection())==="y"&&(this.autoScaleYAxis.manuallyAdjusted=!0)}updatePrimaryAxisZoom(l,c,y){let I=this.getPrimaryAxis(c);I&&this.updateAxisZoom(l,I.id,y)}panToBBox(l,c,y){let I=this.getZoom();if(I===void 0||!I.x&&!I.y)return;if(!(c.width>0&&c.height>0&&Math.abs(y.width)<=Math.abs(c.width)&&Math.abs(y.height)<=Math.abs(c.height))){Pi.warnOnce("cannot pan to target BBox - chart too small?");return}let j=ZP(c,I,y);this.independentAxes?(this.updatePrimaryAxisZoom(l,"x",j.x),this.updatePrimaryAxisZoom(l,"y",j.y)):this.updateZoom(l,j)}fireZoomPanStartEvent(l){this.listeners.dispatch("zoom-pan-start",{type:"zoom-pan-start",callerId:l})}extendToEnd(l,c,y){return this.extendWith(l,c,I=>Number(I)-y)}extendWith(l,c,y){let I=this.getPrimaryAxis(c);if(!I)return;let O=this.getDomainExtents(I);if(!O)return;let[,j]=O,H=y(j),K=this.rangeToRatio({start:H,end:j},c);K&&this.updateZoom(l,{[c]:K})}updateWith(l,c,y){let I=this.getPrimaryAxis(c);if(!I)return;let O=this.getDomainExtents(I);if(!O)return;let[j,H]=O;[j,H]=y(j,H);let K=this.rangeToRatio({start:j,end:H},c);K&&this.updateZoom(l,{[c]:K})}getZoom(){let l,c;if(this.axisZoomManagers.forEach(y=>{y.getDirection()==="x"?l!=null||(l=y.getZoom()):y.getDirection()==="y"&&(c!=null||(c=y.getZoom()))}),l||c)return{x:l,y:c}}getAxisZoom(l){var c,y;return(y=(c=this.axisZoomManagers.get(l))==null?void 0:c.getZoom())!=null?y:{min:0,max:1}}getAxisZooms(){let l={};for(let[c,y]of this.axisZoomManagers.entries())l[c]={direction:y.getDirection(),zoom:y.getZoom()};return l}getRestoredZoom(){return this.lastRestoredState}autoScaleYZoom(l,c=!0){let{independentAxes:y,autoScaleYAxis:I}=this,O=this.getZoom();if((O==null?void 0:O.x)==null||!I.enabled||I.manuallyAdjusted)return;let{padding:j}=I,H=y?this.primaryAxisZoom("y",O.x,{padding:j}):this.combinedAxisZoom("y",O.x,{padding:j});if(H!=null){if(y){let K=this.getPrimaryAxis("y"),Z=K==null?void 0:this.axisZoomManagers.get(K.id);Z==null||Z.updateZoom("zoom-manager",H)}else for(let K of this.axisZoomManagers.values())K.getDirection()==="y"&&K.updateZoom("zoom-manager",H);c&&this.applyChanges(l)}}applyChanges(l){if(this.autoScaleYZoom(l,!1),!Array.from(this.axisZoomManagers.values(),I=>I.applyChanges()).includes(!0))return;let y={};for(let[I,O]of this.axisZoomManagers.entries())y[I]=O.getZoom();this.listeners.dispatch("zoom-change",et(pe({type:"zoom-change"},this.getZoom()),{axes:y,callerId:l}))}getRangeDirection(l,c){var Z,te,se,ge,Se,Ce,Pe,Ge;let y=this.getPrimaryAxis(c);if(!y||!io.is(y.scale)&&!Vs.is(y.scale))return;let I=this.getDomainPixelExtents(y);if(!I)return;let[O,j]=I,H,K;return O<=j?(H=(te=(Z=y.scale).invert)==null?void 0:te.call(Z,0),K=(ge=(se=y.scale).invert)==null?void 0:ge.call(se,O+(j-O)*l.max)):(H=(Ce=(Se=y.scale).invert)==null?void 0:Ce.call(Se,O-(O-j)*l.min),K=(Ge=(Pe=y.scale).invert)==null?void 0:Ge.call(Pe,0)),{start:H,end:K}}rangeToRatio(l,c){var ge,Se,Ce,Pe;let y=this.getPrimaryAxis(c);if(!y)return;let I=this.getDomainPixelExtents(y);if(!I)return;let[O,j]=I,H=l.start==null?O:(Se=(ge=y.scale).convert)==null?void 0:Se.call(ge,l.start),K=l.end==null?j:(Pe=(Ce=y.scale).convert)==null?void 0:Pe.call(Ce,l.end);if(!_t(H)||!_t(K))return;let Z=j-O,te=Math.abs((H-O)/Z),se=Math.abs((K-O)/Z);return{min:te,max:se}}getPrimaryAxis(l){var c;return(c=this.axes)==null?void 0:c.find(y=>y.direction===l)}getDomainExtents(l){var O,j;let c=(j=(O=l.scale).getDomain)==null?void 0:j.call(O),y=c==null?void 0:c.at(0),I=c==null?void 0:c.at(-1);if(!(y==null||I==null))return[y,I]}getDomainPixelExtents(l){var O,j,H,K,Z,te;let c=(j=(O=l.scale).getDomain)==null?void 0:j.call(O),y=(K=(H=l.scale).convert)==null?void 0:K.call(H,c==null?void 0:c.at(0)),I=(te=(Z=l.scale).convert)==null?void 0:te.call(Z,c==null?void 0:c.at(-1));if(!(!_t(y)||!_t(I)))return[y,I]}getDefinedZoom(){var c,y,I,O,j,H,K,Z;let l=this.getZoom();return{x:{min:(y=(c=l==null?void 0:l.x)==null?void 0:c.min)!=null?y:0,max:(O=(I=l==null?void 0:l.x)==null?void 0:I.max)!=null?O:1},y:{min:(H=(j=l==null?void 0:l.y)==null?void 0:j.min)!=null?H:0,max:(Z=(K=l==null?void 0:l.y)==null?void 0:K.max)!=null?Z:1}}}zoomBounds(l,c,y,I){let O=l.scale,j=O.range;O.range=[0,1];let[H,K]=Re(c.scale.domain),Z=1,te=!1,se=0,ge=!1;for(let Pe of c.boundSeries){let[Ge,We]=Pe.getRange("y",[y.min,y.max]),He=(Ge-H)/(K-H),Ze=(We-H)/(K-H);if([He,Ze]=Re([He,Ze]),!Number.isFinite(He)||!Number.isFinite(Ze))continue;let{connectsToYAxis:it}=Pe;He<Z&&(Z=He,te=!it||Ge<0),Ze>se&&(se=Ze,ge=!it||We>0)}O.range=j;let Se=(te?I:0)+(ge?I:0),Ce=(se-Z)*(1+Se);if(!(Ce<=0||Ce>=1)){if(te&&ge){let Pe=(se+Z)/2;Z=Pe-Ce/2,se=Pe+Ce/2}else!te&&ge?se=Z+Ce:te&&!ge&&(Z=se-Ce);return Z<0?(se+=-Z,Z=0):se>1&&(Z-=se-1,se=1),{min:Z,max:se}}}primaryAxisZoom(l,c,{padding:y=0}={}){let I=l==="x"?"y":"x",O=this.getPrimaryAxis(I),j=this.getPrimaryAxis(l);if(!(O==null||j==null))return this.zoomBounds(O,j,c,y)}combinedAxisZoom(l,c,{padding:y=0}={}){let I=l==="x"?"y":"x",O=new Map;for(let K of this.axes)if(K.direction===I)for(let Z of K.boundSeries)O.set(Z,K);let j=1,H=0;for(let K of this.axes)if(K.direction===l)for(let Z of K.boundSeries){let te=O.get(Z);if(te==null)continue;let se=this.zoomBounds(te,K,c,y);if(se==null)return;j=Math.min(j,se.min),H=Math.max(H,se.max)}if(!(j>H))return{min:j,max:H}}},JP=class{constructor(l){this.axis=l;let[c=0,y=1]=l.visibleRange;this.state=new Av({min:c,max:y}),this.currentZoom=this.state.stateValue()}getDirection(){return this.axis.direction}updateZoom(l,c){this.state.set(l,c)}getZoom(){return Ss(this.state.stateValue())}hasChanges(){let l=this.currentZoom,c=this.state.stateValue();return l.min!==c.min||l.max!==c.max}applyChanges(){let l=this.hasChanges();return this.currentZoom=this.state.stateValue(),l}},eL=class{constructor(){this.labelData=new Map}updateLabels(l,c,y=ft.zero){var H,K;let I={x:-c.left,y:-c.top,width:y.width+c.left+c.right,height:y.height+c.top+c.bottom},O=new Set(l.map(Z=>Z.id));for(let Z of this.labelData.keys())O.has(Z)||this.labelData.delete(Z);for(let Z of l){let te=Z.getLabelData();te.every(kI)&&this.labelData.set(Z.id,te)}let j=AI(this.labelData,I,5);for(let Z of l)(K=Z.updatePlacedLabelData)==null||K.call(Z,(H=j.get(Z.id))!=null?H:[])}},tL=class extends da{constructor(l){super(),this.chartService=l,this.mementoOriginatorKey="legend",this.legendDataMap=new Map}createMemento(){return this.getData().filter(({hideInLegend:l,isFixed:c})=>!l&&!c).map(({enabled:l,seriesId:c,itemId:y,legendItemName:I})=>({visible:l,seriesId:c,itemId:y,legendItemName:I}))}guardMemento(l){return l==null||$t(l)}restoreMemento(l,c,y){y==null||y.forEach(I=>{var H;let{seriesId:O,data:j}=(H=this.getRestoredData(I))!=null?H:{};!O||!j||this.updateData(O,j)}),this.update()}getRestoredData(l){var j,H;let{seriesId:c,itemId:y,legendItemName:I,visible:O}=l;if(c){let Z=((j=this.legendDataMap.get(c))!=null?j:[]).map(te=>{let se=te.seriesId===c&&(!y||te.itemId===y);return se&&te.isFixed&&this.warnFixed(te.seriesId,te.itemId),!te.isFixed&&se?et(pe({},te),{enabled:O}):te});return{seriesId:c,data:Z}}if(!(y==null&&I==null))for(let K of this.getData()){if(y!=null&&K.itemId!==y||I!=null&&K.legendItemName!==I)continue;if(K.isFixed){this.warnFixed(K.seriesId,y);return}let Z=((H=this.legendDataMap.get(K.seriesId))!=null?H:[]).map(te=>te.itemId===y||te.legendItemName===I?et(pe({},te),{enabled:O}):te);return{seriesId:K.seriesId,data:Z}}}warnFixed(l,c){Pi.warnOnce(`The legend item with seriesId [${l}] and itemId [${c}] is not configurable, this series item cannot be toggled through the legend.`)}update(l){this.listeners.dispatch("legend-change",{type:"legend-change",legendData:l!=null?l:this.getData()})}updateData(l,c=[]){this.legendDataMap.set(l,c)}clearData(){this.legendDataMap.clear()}toggleItem({enabled:l,seriesId:c,itemId:y,legendItemName:I}){if(I){this.getData().forEach(K=>{var te;let Z=((te=this.legendDataMap.get(K.seriesId))!=null?te:[]).map(se=>se.legendItemName===I?et(pe({},se),{enabled:l}):se);this.updateData(K.seriesId,Z)});return}let O=this.getData(c),j=O.length===1,H=O.map(K=>y==null&&j||K.itemId===y?et(pe({},K),{enabled:l}):K);this.updateData(c,H)}getData(l){var c;return l?(c=this.legendDataMap.get(l))!=null?c:[]:[...this.legendDataMap].reduce((y,[I,O])=>y.concat(O),[])}getDatum({seriesId:l,itemId:c}={}){return this.getData(l).find(y=>y.itemId===c)}getSeriesEnabled(l){let c=this.getData(l);if(c.length>0)return c.some(y=>y.enabled)}getItemEnabled({seriesId:l,itemId:c}={}){var y,I;return(I=(y=this.getDatum({seriesId:l,itemId:c}))==null?void 0:y.enabled)!=null?I:!0}},$I=class{constructor(){this.groups={}}registerSeries({internalId:l,seriesGrouping:c,visible:y,type:I}){var j;var O;c&&((j=(O=this.groups)[I])!=null||(O[I]={}),this.groups[I][l]={grouping:c,visible:y})}updateSeries({internalId:l,seriesGrouping:c,visible:y,type:I}){var j;if(!c)return;let O=(j=this.groups[I])==null?void 0:j[l];O&&(O.grouping=c,O.visible=y)}deregisterSeries({internalId:l,type:c}){this.groups[c]&&delete this.groups[c][l],this.groups[c]&&Object.keys(this.groups[c]).length===0&&delete this.groups[c]}getVisiblePeerGroupIndex({type:l,seriesGrouping:c,visible:y}){var H;if(!c)return{visibleGroupCount:y?1:0,visibleSameStackCount:y?1:0,index:0};let I=new Set,O=new Set;for(let K of Object.values((H=this.groups[l])!=null?H:{}))K.visible&&(I.add(K.grouping.groupIndex),K.grouping.groupIndex===c.groupIndex&&O.add(K.grouping.stackIndex));let j=Array.from(I);return j.sort((K,Z)=>K-Z),{visibleGroupCount:j.length,visibleSameStackCount:O.size,index:j.indexOf(c.groupIndex)}}},j0=(l=>(l[l.FULL=0]="FULL",l[l.UPDATE_DATA=1]="UPDATE_DATA",l[l.PROCESS_DATA=2]="PROCESS_DATA",l[l.PERFORM_LAYOUT=3]="PERFORM_LAYOUT",l[l.SERIES_UPDATE=4]="SERIES_UPDATE",l[l.PRE_SCENE_RENDER=5]="PRE_SCENE_RENDER",l[l.SCENE_RENDER=6]="SCENE_RENDER",l[l.NONE=7]="NONE",l))(j0||{}),QI=class extends as{constructor(l){super(),this.updateCallback=l}update(l=0,c){this.updateCallback(l,c)}dispatchUpdateComplete(l){this.dispatch("update-complete",{type:"update-complete",minRect:l==null?void 0:l.minRect,minVisibleRect:l==null?void 0:l.minVisibleRect})}dispatchPreDomUpdate(){this.dispatch("pre-dom-update",{type:"pre-dom-update"})}dispatchPreSceneRender(l){this.dispatch("pre-scene-render",pe({type:"pre-scene-render"},l))}},iL=class{constructor(l,c){this.callbackCache=new mD,this.chartEventManager=new O0,this.highlightManager=new $x,this.layoutManager=new k0,this.localeManager=new R0,this.seriesStateManager=new $I,this.stateManager=new FI,this.zoomManager=new xD,this.seriesLabelLayoutManager=new eL,this.contextModules=[];let{scene:y,root:I,syncManager:O,container:j,updateCallback:H,updateMutex:K,pixelRatio:Z,styleContainer:te,chartType:se}=c;this.chartService=l,this.syncManager=O,this.domManager=new cd(j,te);let ge=this.domManager.addChild("canvas","scene-canvas",y==null?void 0:y.canvas.element);this.scene=y!=null?y:new Mv({pixelRatio:Z,canvasElement:ge}),this.scene.setRoot(I),this.axisManager=new wp(I),this.legendManager=new tL(this.chartService),this.annotationManager=new vo(l.annotationRoot),this.chartTypeOriginator=new Er(l),this.cursorManager=new bD(this.domManager),this.interactionManager=new yb(l.keyboard,this.domManager),this.regionManager=new CD(this.interactionManager),this.keyNavManager=new Qx(this.interactionManager,this.regionManager),this.contextMenuRegistry=new qx,this.gestureDetector=new Zx(this.domManager),this.updateService=new QI(H),this.proxyInteractionService=new Sl(this.localeManager,this.domManager),this.historyManager=new GP(this.keyNavManager),this.animationManager=new kv(this.interactionManager,K),this.dataService=new _c(this.animationManager),this.tooltipManager=new ec(this.domManager,l.tooltip),this.zoomManager.addLayoutListeners(this.layoutManager);for(let Se of ku.byType("context")){if(!Se.chartTypes.includes(se))continue;let Ce=Se.moduleFactory(this);this.contextModules.push(Ce),this[Se.contextKey]=Ce}}destroy(){this.animationManager.destroy(),this.highlightManager.destroy(),this.axisManager.destroy(),this.callbackCache.invalidateCache(),this.chartEventManager.destroy(),this.domManager.destroy(),this.highlightManager.destroy(),this.keyNavManager.destroy(),this.regionManager.destroy(),this.interactionManager.destroy(),this.proxyInteractionService.destroy(),this.syncManager.destroy(),this.tooltipManager.destroy(),this.zoomManager.destroy(),this.contextModules.forEach(l=>l.destroy())}},MD=class extends un{constructor(){super(...arguments),this.range="tooltip"}};D([Je(wa(["tooltip","node"],"a range"))],MD.prototype,"range",2);function nL(l,c){if(l.size!==c.size)return!1;for(let y of l)if(!c.has(y))return!1;return!0}function JI(l,c){if(l==null||c==null)return l===c;if(l.size!==c.size)return!1;for(let[y,I]of l){let O=c.get(y);if(O==null||!nL(I,O))return!1}return!0}function xp(l,c){if(l.length!==c.length)return!1;for(let O=0;O<l.length;O+=1){let y=l[O],{idsMap:j}=y,H=ji(y,["idsMap"]),I=c[O],{idsMap:K}=I,Z=ji(I,["idsMap"]);if(!xn(H,Z)||!JI(j,K))return!1}return!0}function V0(l,c){let H=l,{props:y}=H,I=ji(H,["props"]),K=c,{props:O}=K,j=ji(K,["props"]);return xn(I,j)&&xp(y,O)}function Km(l,c,y,I){return c===l.data&&eg(y,l.ids)&&V0(I,l.opts)}var H0=class aZ{constructor(){this.domain=new Set}static is(c){return c instanceof aZ}extend(c){this.domain.add(c)}getDomain(){return Array.from(this.domain)}},Go=class oZ{constructor(){this.domain=[1/0,-1/0]}static is(c){return c instanceof oZ}static extendDomain(c,y=[1/0,-1/0]){for(let I of c)typeof I=="number"&&(y[0]>I&&(y[0]=I),y[1]<I&&(y[1]=I));return y}extend(c){this.domain[0]>c&&(this.domain[0]=c),this.domain[1]<c&&(this.domain[1]=c)}getDomain(){return[...this.domain]}},Mp=0,mg=1,fg=2,Dv=class{constructor(l){let c=l.reduce((j,H)=>Math.max(j,H.length),0),I=1<<32-Math.clz32(c);c===I/2&&(I=I>>>1),this.maxLevelSize=I;let O=new Float64Array((I*2-1)*2).fill(NaN);for(let j of l)for(let H=0;H<j.length;H+=1){let K=Number(j[H]),Z=I+H-1,te=(Z*fg|0)+Mp,se=(Z*fg|0)+mg,ge=O[te],Se=O[se];(!Number.isFinite(ge)||K<ge)&&(O[te]=K),(!Number.isFinite(Se)||K>Se)&&(O[se]=K)}for(let j=I/2|0;j>=1;j=j/2|0){let H=j-1|0,K=H+j|0;for(let Z=0;Z<j;Z+=1){let te=H+Z,se=K+Z*2,ge=se+1,Se=O[(se*fg|0)+Mp],Ce=O[(ge*fg|0)+Mp];O[(te*fg|0)+Mp]=!Number.isFinite(Ce)||Se<Ce?Se:Ce;let Pe=O[(se*fg|0)+mg],Ge=O[(ge*fg|0)+mg];O[(te*fg|0)+mg]=!Number.isFinite(Ge)||Pe>Ge?Pe:Ge}}this.buffer=O}computeRangeInto(l,c,y,I,O,j,H){let K=O+j-1;if(K<c||O>y)return H;if(O>=c&&K<=y){let Z=l[(I*fg|0)+Mp],te=l[(I*fg|0)+mg];Number.isFinite(Z)&&(H[0]=Math.min(H[0],Z)),Number.isFinite(te)&&(H[1]=Math.max(H[1],te))}else j>1&&(I=I*2|0,j=j/2|0,this.computeRangeInto(l,c,y,I+1|0,O,j,H),this.computeRangeInto(l,c,y,I+2|0,O+j,j,H));return H}rangeBetween(l,c){let{maxLevelSize:y,buffer:I}=this,O=[1/0,-1/0];return this.computeRangeInto(I,l,c,0,0,y,O),O}get range(){let{buffer:l}=this;return[l[Mp],l[mg]]}},kD=Symbol("domain-ranges");function Eu(l){return l.map(c=>Ke(c)?JSON.stringify(c):c).join("-")}function eT(l){return Number.isInteger(l)?l:Math.abs(l)>1e4?Math.trunc(l):Math.round(l*1e4)/1e4}function tc(l){let c=l==null?void 0:l.map(Number);return c!=null&&c.every(Number.isFinite)?c:[]}function AD(l,c){var y;return(y=c==null?void 0:c.get(l.id))!=null?y:0}var wb=Symbol("invalid");function W0(l,c){let y=[];for(let I=0;I<l;I+=1)y[I]=c;return y}function xb(l,c){let y=[];for(let I of l){let O=I[c];if(O==null)return;y.push(O)}return y}function DD(l){let c=[],y=0,I,O=new RegExp(`((?:(?:^|\\.)\\s*\\w+|\\[\\s*(?:'(?:[^']|(?<!\\\\)\\\\')*'|"(?:[^"]|(?<!\\\\)\\\\")*"|-?\\d+)\\s*\\])\\s*)`,"g");for(;I=O.exec(l);){if(I.index!==y)return;y=I.index+I[0].length;let j=I[1].trim();if(j.startsWith("."))c.push(j.slice(1).trim());else if(j.startsWith("[")){let H=j.slice(1,-1).trim();H.startsWith("'")?c.push(H.slice(1,-1).replace(new RegExp("(?<!\\\\)\\\\'","g"),"'")):H.startsWith('"')?c.push(H.slice(1,-1).replace(new RegExp('(?<!\\\\)\\\\"',"g"),'"')):c.push(H)}else c.push(j)}if(y===l.length)return c}function tT(l){return c=>{let y=c;for(let I of l)y=y[I];return y}}var U0=class{constructor(l,c="standalone",y=!1){this.opts=l,this.mode=c,this.suppressFieldDotNotation=y,this.debug=Ua.create(!0,"data-model"),this.scopeCache=new Map,this.keys=[],this.values=[],this.aggregates=[],this.groupProcessors=[],this.propertyProcessors=[],this.reducers=[],this.processors=[];let I=!0;for(let j of l.props){if(j.type==="key"&&!I)throw new Error("AG Charts - internal config error: keys must come before values.");j.type==="value"&&I&&(I=!1)}let O=({matchGroupIds:j=[]})=>{for(let H of j)if(this.values.every(K=>K.groupId!==H))throw new Error(`AG Charts - internal config error: matchGroupIds properties must match defined groups (${H}).`)};for(let j of l.props)switch(j.type){case"key":this.keys.push(et(pe({},j),{index:this.keys.length,missing:new Map}));break;case"value":if(j.property==null)throw new Error(`AG Charts - internal config error: no properties specified for value definitions: ${JSON.stringify(j)}`);this.values.push(et(pe({},j),{index:this.values.length,missing:new Map}));break;case"aggregate":O(j),this.aggregates.push(et(pe({},j),{index:this.aggregates.length}));break;case"group-value-processor":O(j),this.groupProcessors.push(et(pe({},j),{index:this.groupProcessors.length}));break;case"property-value-processor":this.propertyProcessors.push(et(pe({},j),{index:this.propertyProcessors.length}));break;case"reducer":this.reducers.push(et(pe({},j),{index:this.reducers.length}));break;case"processor":this.processors.push(et(pe({},j),{index:this.processors.length}));break}}resolveProcessedDataDefById(l,c){var I;let y=(I=this.scopeCache.get(l.id))==null?void 0:I.get(c);if(!y)throw new Error(`AG Charts - didn't find property definition for [${c}, ${l.id}]`);return{index:y.index,def:y}}resolveProcessedDataIndexById(l,c){return this.resolveProcessedDataDefById(l,c).index}resolveProcessedDataDefsByIds(l,c){return c.map(y=>[y,this.resolveProcessedDataDefById(l,y)])}resolveKeysById(l,c,y){let I=this.resolveProcessedDataIndexById(l,c),O=y.keys[I];if(O==null)throw new Error(`AG Charts - didn't find keys for [${c}, ${l.id}]`);return O}resolveColumnById(l,c,y){var j;let I=this.resolveProcessedDataIndexById(l,c),O=(j=y.columns)==null?void 0:j[I];if(O==null)throw new Error(`AG Charts - didn't find column for [${c}, ${l.id}]`);return O}resolveProcessedDataDefsValues(l,{keys:c,values:y}){let I={};for(let[O,{index:j,def:H}]of l){let K=H.type==="key"?c:y;I[O]=K[j]}return I}getDomain(l,c,y,I){var j;let O=this.getDomainsByType(y!=null?y:"value",I);return(j=O==null?void 0:O[this.resolveProcessedDataIndexById(l,c)])!=null?j:[]}getDomainBetweenRange(l,c,[y,I],O){let j=c.map(te=>this.resolveProcessedDataIndexById(l,te)),H=j.join(":"),K=O[kD],Z=K.get(H);if(Z==null){let te=j.map(se=>O.columns[se]);Z=new Dv(te),K.set(H,Z)}return Z.rangeBetween(y,I)}getDomainsByType(l,c){switch(l){case"key":return c.domain.keys;case"value":return c.domain.values;case"aggregate":return c.domain.aggValues;case"group-value-processor":return c.domain.groups;default:return null}}processData(l,c){let{opts:{groupByKeys:y,groupByFn:I},aggregates:O,groupProcessors:j,reducers:H,processors:K,propertyProcessors:Z}=this,te=performance.now();if(y&&this.keys.length===0)return;let se=this.extractData(l,c);y?se=this.groupData(se):I&&(se=this.groupData(se,I(se))),j.length>0&&this.postProcessGroups(se),O.length>0&&this.aggregateData(se),Z.length>0&&this.postProcessProperties(se),H.length>0&&this.reduceData(se),K.length>0&&this.postProcessData(se),this.warnDataMissingProperties(l);let ge=performance.now();return se.time=ge-te,this.debug.check()&&iT(se),this.processScopeCache(),se}warnDataMissingProperties(l){if(l.length!==0)for(let c of oe(this.keys,this.values))for(let[y,I]of c.missing){if(I<l.length)continue;let O=y==null?"":` for ${y}`;Pi.warnOnce(`the key '${c.property}' was not found in any data element${O}.`)}}processScopeCache(){var l;this.scopeCache.clear();for(let c of oe(this.keys,this.values,this.aggregates))if(c.idsMap)for(let[y,I]of c.idsMap)for(let O of I)if(!this.scopeCache.has(y))this.scopeCache.set(y,new Map([[O,c]]));else{if((l=this.scopeCache.get(y))!=null&&l.has(O))throw new Error("duplicate definition ids on the same scope are not allowed.");this.scopeCache.get(y).set(O,c)}}valueGroupIdxLookup({matchGroupIds:l}){let c=[];for(let[y,I]of this.values.entries())(!l||I.groupId&&l.includes(I.groupId))&&c.push(y);return c}valueIdxLookup(l,c){let y=l==null||l.length===0,I=typeof c=="string"?c:c.id,O=H=>{if(H.idsMap){for(let[K,Z]of H.idsMap)if(l!=null&&l.includes(K)&&Z.has(I))return!0}return!1},j=this.values.reduce((H,K,Z)=>((K.scopes==null||y&&!K.scopes.length||K.scopes.some(se=>l==null?void 0:l.includes(se)))&&(K.property===I||K.id===I||O(K))&&H.push(Z),H),[]);if(j.length===0)throw new Error(`AG Charts - configuration error, unknown property ${JSON.stringify(c)} in scope(s) ${JSON.stringify(l)}`);return j}extractData(l,c){let{dataDomain:y,processValue:I,scopes:O,allScopesHaveSameDefs:j}=this.initDataDomainProcessor(),H=new Map(c==null?void 0:c.map(Ze=>[Ze.id,Ze])),{keys:K,values:Z}=this,te=l.length,se=0,ge,Se,Ce=K.map(Ze=>{let{invalidValue:it}=Ze;return l.map((qe,rt)=>{let dt=I(Ze,qe,rt);return dt!==wb?dt:(ge!=null||(ge=W0(te,!1)),ge[rt]=!0,Se!=null||(Se=W0(te,!1)),Se[rt]=!0,it)})}),Pe,Ge=(Ze,it)=>{Pe!=null||(Pe=new Map);let qe=Pe.get(Ze);qe==null&&(qe=W0(te,!1),Pe.set(Ze,qe)),qe[it]=!0,Se!=null||(Se=W0(te,!1)),Se[it]=!0},We=[];Z.forEach(Ze=>{let{invalidValue:it}=Ze,qe=We.length>0?We[We.length-1]:void 0,rt=l.map((dt,mt)=>{var Ht,qt;let yt=(ge==null?void 0:ge[mt])===!0,Lt=qe==null?void 0:qe[mt];for(let ri of(Ht=Ze.scopes)!=null?Ht:O){let Ei=H.get(ri),Ni=(qt=Ei==null?void 0:Ei.data[mt])!=null?qt:dt;Lt=I(Ze,Ni,mt,Lt,ri),(yt||Lt===wb)&&Ge(ri,mt)}return yt?it:Lt===wb?(se+=1,it):Lt});We.push(rt)});let He=Ze=>{let it=y.get(Ze),qe=it.getDomain();return Go.is(it)&&qe[0]>qe[1]?[]:qe};return{type:"ungrouped",input:{count:l.length},rawData:l,rawDataSources:c!=null?new Map(c.map(Ze=>[Ze.id,Ze.data])):void 0,aggregation:void 0,keys:Ce,columns:We,invalidKeys:ge,invalidDataScopes:Pe,invalidData:Se,domain:{keys:K.map(He),values:Z.map(He)},defs:{allScopesHaveSameDefs:j,keys:K,values:Z},partialValidDataCount:se,time:0,[kD]:new Map}}groupData(l,c){var se;let y=new Map,{rawData:I,keys:O,invalidKeys:j,invalidDataScopes:H,invalidData:K}=l;for(let ge=0;ge<I.length;ge+=1){let Se=I[ge],Ce=xb(O,ge);if(Ce==null||Ce.length===0)continue;let Pe=(se=c==null?void 0:c({index:ge,keys:Ce,values:void 0,aggValues:void 0,datum:Se,validScopes:void 0}))!=null?se:Ce,Ge=Eu(Pe);if((j==null?void 0:j[ge])===!0)continue;let We;if(H!=null&&(K==null?void 0:K[ge])===!0&&(We=new Set,H.forEach((Ze,it)=>{Ze[ge]===!1&&We.add(it)}),We.size===0))continue;let He=y.get(Ge);if(He!=null){if(He.datumIndices.push(ge),We!=null&&He.validScopes!=null)for(let Ze of He.validScopes)We.has(Ze)||He.validScopes.delete(Ze)}else y.set(Ge,{keys:Pe,datumIndices:[ge],validScopes:We})}let Z=[],te=[];for(let{keys:ge,datumIndices:Se,validScopes:Ce}of y.values())(Ce==null?void 0:Ce.size)!==0&&(Z.push(ge),te.push({datumIndices:Se,keys:ge,aggregation:[],validScopes:Ce}));return et(pe({},l),{type:"grouped",domain:et(pe({},l.domain),{groups:Z}),groups:te})}aggregateData(l){var j,H,K,Z,te,se,ge;let c=this.aggregates.map(()=>[1/0,-1/0]);l.domain.aggValues=c;let{keys:y,columns:I,rawData:O}=l;if(l.type==="ungrouped"){let Se=O.map((Ce,Pe)=>{var We,He,Ze,it,qe,rt;let Ge=[];for(let[dt,mt]of this.aggregates.entries()){let yt=this.valueGroupIdxLookup(mt),Lt=(He=(We=mt.groupAggregateFunction)==null?void 0:We.call(mt))!=null?He:[1/0,-1/0],Ht=yt.map(Ni=>I[Ni][Pe]),qt=xb(y,Pe),ri=qt!=null?mt.aggregateFunction(Ht,qt):void 0;ri&&(Lt=(it=(Ze=mt.groupAggregateFunction)==null?void 0:Ze.call(mt,ri,Lt))!=null?it:Go.extendDomain(ri,Lt));let Ei=((rt=(qe=mt.finalFunction)==null?void 0:qe.call(mt,Lt))!=null?rt:Lt).map(Ni=>eT(Ni));Ge[dt]=Ei,Go.extendDomain(Ei,c[dt])}return Ge});l.aggregation=Se}else for(let[Se,Ce]of this.aggregates.entries()){let Pe=this.valueGroupIdxLookup(Ce);for(let Ge of l.groups){if((j=Ge.aggregation)!=null||(Ge.aggregation=[]),Ge.validScopes!=null)continue;let We=Ge.keys,He=(K=(H=Ce.groupAggregateFunction)==null?void 0:H.call(Ce))!=null?K:[1/0,-1/0];for(let it of Ge.datumIndices){let qe=Pe.map(dt=>I[dt][it]),rt=Ce.aggregateFunction(qe,We);rt&&(He=(te=(Z=Ce.groupAggregateFunction)==null?void 0:Z.call(Ce,rt,He))!=null?te:Go.extendDomain(rt,He))}let Ze=((ge=(se=Ce.finalFunction)==null?void 0:se.call(Ce,He))!=null?ge:He).map(it=>eT(it));Ge.aggregation[Se]=Ze,Go.extendDomain(Ze,c[Se])}}}postProcessGroups(l){let{groupProcessors:c}=this,{rawData:y,columns:I,invalidData:O}=l;for(let j of c){let H=this.valueGroupIdxLookup(j),K=j.adjust()();for(let Z=0;Z<y.length;Z+=1)(O==null?void 0:O[Z])!==!0&&K(I,H,Z);for(let Z of H){let se=this.values[Z].valueType==="category",ge=I[Z],Se=se?new H0:new Go;for(let Ce=0;Ce<y.length;Ce+=1)(O==null?void 0:O[Ce])!==!0&&Se.extend(ge[Ce]);l.domain.values[Z]=Se.getDomain()}}}postProcessProperties(l){for(let{adjust:c,property:y,scopes:I}of this.propertyProcessors)for(let O of this.valueIdxLookup(I,y))c()(l,O)}reduceData(l){var c,y;(c=l.reduced)!=null||(l.reduced={});for(let I of this.reducers){let O=I.reducer(),j=I.initialValue,{rawData:H,keys:K,columns:Z}=l;if(l.type==="grouped")for(let te of l.groups)(!te.validScopes||(y=I.scopes)!=null&&y.some(se=>{var ge;return(ge=te.validScopes)==null?void 0:ge.has(se)}))&&(j=O(j,{index:te.datumIndices,keys:te.datumIndices.flatMap(se=>K.map(ge=>ge[se])),values:te.datumIndices.map(se=>Z[se]),datum:te.datumIndices.map(se=>H[se])}));else for(let te=0;te<H.length;te+=1)j=O(j,{index:[te],keys:K.map(se=>se[te]),values:[Z[te]],datum:[H[te]]});l.reduced[I.property]=j}}postProcessData(l){var c;(c=l.reduced)!=null||(l.reduced={});for(let y of this.processors)l.reduced[y.property]=y.calculate(l,l.reduced[y.property])}initDataDomainProcessor(){let{keys:l,values:c}=this,y=new Set;for(let te of c)if(te.scopes)for(let se of te.scopes)y.add(se);let I=new Map,O=new Map,j=!0,H=()=>{var te;for(let se of oe(l,c))se.valueType==="category"?I.set(se,new H0):(I.set(se,new Go),j&&(j=((te=se.scopes)!=null?te:[]).length===y.size))};H();let K=this.buildAccessors(oe(l,c));return{dataDomain:I,processValue:(te,se,ge,Se,Ce)=>{var He,Ze,it,qe;let Pe,Ge;if(K.has(te.property)){try{Ge=K.get(te.property)(se)}catch(rt){}Pe=Ge!=null}else Pe=te.property in se,Ge=Pe?se[te.property]:te.missingValue;te.forceValue!=null&&(Ge=Pe&&Ee(Ge)?-1*te.forceValue:te.forceValue,Pe=!0);let We="missingValue"in te;if(!Pe&&!We){let rt=(He=te.missing.get(Ce))!=null?He:0;te.missing.set(Ce,rt+1)}if(I.has(te)||H(),Pe&&((Ze=te.validation)==null?void 0:Ze.call(te,Ge,se,ge))===!1)if("invalidValue"in te)Ge=te.invalidValue;else return this.mode!=="integrated"&&Pi.warnOnce(`invalid value of type [${typeof Ge}] for [${te.scopes} / ${te.id}] ignored:`,`[${Ge}]`),wb;return te.processor&&(O.has(te)||O.set(te,te.processor()),Ge=(it=O.get(te))==null?void 0:it(Ge,Se===wb?void 0:Se)),(qe=I.get(te))==null||qe.extend(Ge),Ge},initDataDomain:H,scopes:y,allScopesHaveSameDefs:j}}buildAccessors(l){let c=new Map;if(this.suppressFieldDotNotation)return c;for(let y of l){if(!(y.property.includes(".")||y.property.includes("[")))continue;let O=DD(y.property);if(O==null){Pi.warnOnce("Invalid property path [%s]",y.property);continue}let j=tT(O);c.set(y.property,j)}return c}};function iT(l){var y,I;let c=(O,j)=>{j.length>0&&(Pi.log(`DataModel.processData() - ${O}`),Pi.table(j))};Pi.log("DataModel.processData() - processedData",l),c("Key Domains",l.domain.keys),c("Group Domains",(y=l.domain.groups)!=null?y:[]),c("Value Domains",l.domain.values),c("Aggregate Domains",(I=l.domain.aggValues)!=null?I:[])}var ED=class Zw{constructor(c,y){this.mode=c,this.suppressFieldDotNotation=y,this.debug=Ua.create(!0,"data-model"),this.requested=[],this.status="setup"}async request(c,y,I){if(this.status!=="setup")throw new Error("AG Charts - data request after data setup phase.");return new Promise((O,j)=>{this.requested.push({id:c,opts:I,data:y,resolve:O,reject:j})})}execute(c){if(this.status!=="setup")throw new Error("AG Charts - data request after data setup phase.");this.status="executed",this.debug("DataController.execute() - requested",this.requested);let y=this.validateRequests(this.requested);this.debug("DataController.execute() - validated",y);let I=this.mergeRequested(y);this.debug("DataController.execute() - merged",I),this.debug.check()&&(ca().processedData=[]);let O=[];for(let{data:j,ids:H,opts:K,resolves:Z,rejects:te}of I){let se=c==null?void 0:c.find(Ce=>Km(Ce,j,H,K)),ge,Se;if(se==null)try{ge=new U0(K,this.mode,this.suppressFieldDotNotation),Se=ge.processData(j,y)}catch(Ce){te.forEach(Pe=>Pe(Ce));continue}else({dataModel:ge,processedData:Se}=se);O.push({opts:K,data:j,ids:H,dataModel:ge,processedData:Se}),this.debug.check()&&ca("processedData").push(Se),(Se==null?void 0:Se.partialValidDataCount)===0?Z.forEach(Ce=>Ce({dataModel:ge,processedData:Se})):Se?this.splitResult(ge,Se,H,Z):te.forEach(Ce=>Ce(new Error("AG Charts - no processed data generated")))}return O}validateRequests(c){let y=[];for(let[I,O]of c.entries())I>0&&O.data.length!==c[0].data.length&&O.opts.groupByData===!1?O.reject(new Error("all series[].data arrays must be of the same length and have matching keys.")):y.push(O);return y}mergeRequested(c){let y=[];for(let I of c){let O=y.find(Zw.groupMatch(I));O?O.push(I):y.push([I])}return y.map(Zw.mergeRequests)}splitResult(c,y,I,O){for(let j=0;j<I.length;j++){let H=O[j];H({dataModel:c,processedData:y})}}static groupMatch({data:c,opts:y}){function I(te){return te.filter(se=>se.type==="key").map(se=>se.property).join(";")}let{groupByData:O,groupByKeys:j=!1,groupByFn:H,props:K}=y,Z=I(K);return([te])=>{var se;return(O===!1||te.data===c)&&((se=te.opts.groupByKeys)!=null?se:!1)===j&&te.opts.groupByFn===H&&I(te.opts.props)===Z}}static mergeRequests(c){return c.reduce((y,te)=>{var{id:I,data:O,resolve:j,reject:H,opts:se}=te,ge=se,{props:K}=ge,Z=ji(ge,["props"]);var Se,Ce,Pe,Ge,We;y.ids.push(I),y.rejects.push(H),y.resolves.push(j),(Se=y.data)!=null||(y.data=O),(Ce=y.opts)!=null||(y.opts=et(pe({},Z),{props:[]}));for(let He of K){let Ze=et(pe({},He),{scopes:[I]});Zw.createIdsMap(I,Ze);let it=y.opts.props.find(qe=>qe.type===Ze.type&&Zw.deepEqual(qe,Ze));if(!it){y.opts.props.push(Ze);continue}(Pe=it.scopes)!=null||(it.scopes=[]),it.scopes.push(...(Ge=Ze.scopes)!=null?Ge:[]),(it.type==="key"||it.type==="value")&&((We=Ze.idsMap)!=null&&We.size)&&Zw.mergeIdsMap(Ze.idsMap,it.idsMap)}return y},{ids:[],rejects:[],resolves:[],data:null,opts:null})}static mergeIdsMap(c,y){for(let[I,O]of c){let j=y.get(I);if(j==null)y.set(I,new Set(O));else for(let H of O)j.add(H)}}static createIdsMap(c,y){var I;y.id!=null&&((I=y.idsMap)!=null||(y.idsMap=new Map),y.idsMap.has(c)?y.idsMap.get(c).add(y.id):y.idsMap.set(c,new Set([y.id])))}static deepEqual(c,y){if(c===y)return!0;if(c&&y&&typeof c=="object"&&typeof y=="object"){if(c.constructor!==y.constructor)return!1;let I,O;if(Array.isArray(c)){if(O=c.length,O!==y.length)return!1;for(I=O-1;I>=0;I--)if(!Zw.deepEqual(c[I],y[I]))return!1;return!0}let j=Object.keys(c);if(O=j.length,O!==Object.keys(y).length)return!1;for(I=O-1;I>=0;I--){let H=j[I];if(!Zw.skipKeys.has(H)&&(!Object.hasOwn(y,H)||!Zw.deepEqual(c[H],y[H])))return!1}return!0}return!1}};ED.skipKeys=new Set(["id","idsMap","type","scopes"]);var ID=ED,tM=class{constructor(){this.axesMap=new Map,this.hidden=new Set,this.themeTemplates=new Map}register(l,c){this.axesMap.set(l,c.moduleFactory),c.themeTemplate&&this.setThemeTemplate(l,c.themeTemplate),c.hidden&&this.hidden.add(l)}create(l,c){let y=this.axesMap.get(l);if(y)return y(c);throw new Error(`AG Charts - unknown axis type: ${l}`)}has(l){return this.axesMap.has(l)}keys(){return this.axesMap.keys()}publicKeys(){return[...this.keys()].filter(l=>!this.hidden.has(l))}setThemeTemplate(l,c){return this.themeTemplates.set(l,c),this}getThemeTemplate(l){return this.themeTemplates.get(l)}},Zs=new tM,kp=[{type:"root",optionsKey:"animation",chartTypes:["cartesian","polar","hierarchy","topology","flow-proportion","standalone","gauge"]},{type:"root",optionsKey:"annotations",chartTypes:["cartesian"]},{type:"root",optionsKey:"background",chartTypes:["cartesian","polar","hierarchy","topology","flow-proportion","standalone","gauge"],optionsInnerKey:"image"},{type:"root",optionsKey:"foreground",chartTypes:["cartesian","polar","hierarchy","topology","flow-proportion","standalone","gauge"],optionsInnerKey:"image"},{type:"root",optionsKey:"chartToolbar",chartTypes:["cartesian"]},{type:"root",optionsKey:"contextMenu",chartTypes:["cartesian","polar","hierarchy","topology","flow-proportion","standalone","gauge"]},{type:"root",optionsKey:"statusBar",chartTypes:["cartesian"],identifier:"status-bar"},{type:"root",optionsKey:"dataSource",chartTypes:["cartesian","polar","hierarchy","topology","flow-proportion","standalone","gauge"]},{type:"root",optionsKey:"sync",chartTypes:["cartesian"]},{type:"root",optionsKey:"zoom",chartTypes:["cartesian","topology"]},{type:"root",optionsKey:"ranges",chartTypes:["cartesian"]},{type:"legend",optionsKey:"gradientLegend",chartTypes:["cartesian","polar","hierarchy","topology","flow-proportion","standalone","gauge"],identifier:"gradient"},{type:"root",optionsKey:"navigator",chartTypes:["cartesian"]},{type:"axis",optionsKey:"axes[]",chartTypes:["polar"],identifier:"angle-category"},{type:"axis",optionsKey:"axes[]",chartTypes:["polar"],identifier:"angle-number"},{type:"axis",optionsKey:"axes[]",chartTypes:["polar"],identifier:"radius-category"},{type:"axis",optionsKey:"axes[]",chartTypes:["polar"],identifier:"radius-number"},{type:"series",optionsKey:"series[]",chartTypes:["cartesian"],identifier:"bar",community:!0},{type:"series",optionsKey:"series[]",chartTypes:["cartesian"],identifier:"line",community:!0},{type:"axis",optionsKey:"axes[]",chartTypes:["cartesian"],identifier:"ordinal-time"},{type:"axis-option",optionsKey:"crosshair",chartTypes:["cartesian"]},{type:"series",optionsKey:"series[]",chartTypes:["cartesian"],identifier:"box-plot"},{type:"series",optionsKey:"series[]",chartTypes:["cartesian"],identifier:"candlestick"},{type:"series",optionsKey:"series[]",chartTypes:["cartesian"],identifier:"cone-funnel"},{type:"series",optionsKey:"series[]",chartTypes:["cartesian"],identifier:"funnel"},{type:"series",optionsKey:"series[]",chartTypes:["cartesian"],identifier:"ohlc"},{type:"series",optionsKey:"series[]",chartTypes:["cartesian"],identifier:"heatmap"},{type:"series",optionsKey:"series[]",chartTypes:["cartesian"],identifier:"range-area"},{type:"series",optionsKey:"series[]",chartTypes:["cartesian"],identifier:"range-bar"},{type:"series",optionsKey:"series[]",chartTypes:["cartesian"],identifier:"waterfall"},{type:"series",optionsKey:"series[]",chartTypes:["polar"],identifier:"nightingale"},{type:"series",optionsKey:"series[]",chartTypes:["polar"],identifier:"radar-area"},{type:"series",optionsKey:"series[]",chartTypes:["polar"],identifier:"radar-line"},{type:"series",optionsKey:"series[]",chartTypes:["polar"],identifier:"radial-bar"},{type:"series",optionsKey:"series[]",chartTypes:["polar"],identifier:"radial-column"},{type:"series",optionsKey:"series[]",chartTypes:["hierarchy"],identifier:"sunburst"},{type:"series",optionsKey:"series[]",chartTypes:["hierarchy"],identifier:"treemap"},{type:"series",optionsKey:"series[]",chartTypes:["topology"],identifier:"map-shape"},{type:"series",optionsKey:"series[]",chartTypes:["topology"],identifier:"map-line"},{type:"series",optionsKey:"series[]",chartTypes:["topology"],identifier:"map-marker"},{type:"series",optionsKey:"series[]",chartTypes:["topology"],identifier:"map-shape-background"},{type:"series",optionsKey:"series[]",chartTypes:["topology"],identifier:"map-line-background"},{type:"series",optionsKey:"series[]",chartTypes:["flow-proportion"],identifier:"chord"},{type:"series",optionsKey:"series[]",chartTypes:["flow-proportion"],identifier:"sankey"},{type:"series",optionsKey:"series[]",chartTypes:["standalone"],identifier:"pyramid"},{type:"series",optionsKey:"series[]",chartTypes:["gauge"],identifier:"linear-gauge"},{type:"series",optionsKey:"series[]",chartTypes:["gauge"],identifier:"radial-gauge"},{type:"series-option",optionsKey:"errorBar",chartTypes:["cartesian"],identifier:"error-bars"},{type:"context",contextKey:"sharedToolbar",chartTypes:["cartesian"]}];function K0(l){return kp.some(c=>c.type==="series"&&c.identifier===l)}function vg(l){var c;return(c=kp.find(y=>y.type==="series"&&y.identifier===l))==null?void 0:c.chartTypes}function aL(l){var y;return((y=vg(l))==null?void 0:y.find(I=>I==="cartesian"))==="cartesian"}function iM(l){var y;return((y=vg(l))==null?void 0:y.find(I=>I==="polar"))==="polar"}function Ap(l){var y;return((y=vg(l))==null?void 0:y.find(I=>I==="hierarchy"))==="hierarchy"}function Ev(l){var y;return((y=vg(l))==null?void 0:y.find(I=>I==="topology"))==="topology"}function qm(l){var y;return((y=vg(l))==null?void 0:y.find(I=>I==="flow-proportion"))==="flow-proportion"}function Iv(l){var y;return((y=vg(l))==null?void 0:y.find(I=>I==="standalone"))==="standalone"}function Ym(l){var y;return((y=vg(l))==null?void 0:y.find(I=>I==="gauge"))==="gauge"}function q0(l){return l.packageType==="enterprise"}function TD(l){var y;if(!q0(l))throw new Error("AG Charts - internal configuration error, only enterprise modules need verification.");let c=kp.find(I=>I.type===l.type&&("optionsKey"in I&&"optionsKey"in l?I.optionsKey===l.optionsKey:!0)&&("contextKey"in I&&"contextKey"in l?I.contextKey===l.contextKey:!0)&&I.identifier===l.identifier&&l.chartTypes.every(O=>I.chartTypes.includes(O)));return c&&((y=c.useCount)!=null||(c.useCount=0),c.useCount++),c!=null}function Ph(){return kp.filter(({useCount:l})=>l==null||l===0)}var Lh=class{constructor(){this.legendMap=new Map,this.themeTemplates=new Map}register(l,{optionsKey:c,moduleFactory:y,themeTemplate:I}){this.legendMap.set(l,{optionsKey:c,moduleFactory:y}),this.themeTemplates.set(c,I)}create(l,c){var I;let y=(I=this.legendMap.get(l))==null?void 0:I.moduleFactory;if(y)return y(c);throw new Error(`AG Charts - unknown legend type: ${l}`)}getThemeTemplates(){return Object.fromEntries(this.themeTemplates)}getKeys(){return Array.from(this.legendMap.entries()).reduce((l,[c,y])=>(l[c]=y.optionsKey,l),{})}},RD=new Lh,nM=class extends Map{get(l){var c;return(c=super.get(l))!=null?c:"unknown"}isCartesian(l){return this.get(l)==="cartesian"}isPolar(l){return this.get(l)==="polar"}isHierarchy(l){return this.get(l)==="hierarchy"}isTopology(l){return this.get(l)==="topology"}isFlowProportion(l){return this.get(l)==="flow-proportion"}isStandalone(l){return this.get(l)==="standalone"}isGauge(l){return this.get(l)==="gauge"}get seriesTypes(){return Array.from(this.keys())}get cartesianTypes(){return this.seriesTypes.filter(l=>this.isCartesian(l))}get polarTypes(){return this.seriesTypes.filter(l=>this.isPolar(l))}get hierarchyTypes(){return this.seriesTypes.filter(l=>this.isHierarchy(l))}get topologyTypes(){return this.seriesTypes.filter(l=>this.isTopology(l))}get flowProportionTypes(){return this.seriesTypes.filter(l=>this.isFlowProportion(l))}get standaloneTypes(){return this.seriesTypes.filter(l=>this.isStandalone(l))}get gaugeTypes(){return this.seriesTypes.filter(l=>this.isGauge(l))}},oL=class extends Map{set(l,c){return super.set(l,Wi(c,this.get(l)))}},Qo=new nM,nT=new nM,Y0=new oL,aT=class{constructor(){this.seriesMap=new Map,this.themeTemplates=new Map}register(l,{chartTypes:[c],moduleFactory:y,tooltipDefaults:I,defaultAxes:O,themeTemplate:j,paletteFactory:H,solo:K,stackable:Z,groupable:te,stackedByDefault:se,hidden:ge}){this.setThemeTemplate(l,j),this.seriesMap.set(l,{moduleFactory:y,tooltipDefaults:I,defaultAxes:O,paletteFactory:H,solo:K,stackable:Z,groupable:te,stackedByDefault:se}),Qo.set(l,c),ge||nT.set(l,c)}create(l,c){var I;let y=(I=this.seriesMap.get(l))==null?void 0:I.moduleFactory;if(y)return y(c);throw new Error(`AG Charts - unknown series type: ${l}`)}cloneDefaultAxes(l,c){var O;let y=(O=this.seriesMap.get(l))==null?void 0:O.defaultAxes;if(y==null)return null;let I=typeof y=="function"?y(c):y;return{axes:Ss(I)}}setThemeTemplate(l,c){let y=this.themeTemplates.get(l);this.themeTemplates.set(l,Wi(c,y))}getThemeTemplate(l){return this.themeTemplates.get(l)}getPaletteFactory(l){var c;return(c=this.seriesMap.get(l))==null?void 0:c.paletteFactory}getTooltipDefauls(l){var c;return(c=this.seriesMap.get(l))==null?void 0:c.tooltipDefaults}isSolo(l){var c,y;return(y=(c=this.seriesMap.get(l))==null?void 0:c.solo)!=null?y:!1}isGroupable(l){var c,y;return(y=(c=this.seriesMap.get(l))==null?void 0:c.groupable)!=null?y:!1}isStackable(l){var c,y;return(y=(c=this.seriesMap.get(l))==null?void 0:c.stackable)!=null?y:!1}isStackedByDefault(l){var c,y;return(y=(c=this.seriesMap.get(l))==null?void 0:c.stackedByDefault)!=null?y:!1}},Wr=new aT,X0=class cI extends da{constructor(c){super(),this.chart=c}subscribe(c=cI.DEFAULT_GROUP){let y=this.get(c);return y||(y=new Set,cI.chartsGroups.set(c,y)),y.add(this.chart),this}unsubscribe(c=cI.DEFAULT_GROUP){var y;return(y=this.get(c))==null||y.delete(this.chart),this}getChart(){return this.chart}getGroup(c=cI.DEFAULT_GROUP){let y=this.get(c);return y?Array.from(y):[]}getGroupSiblings(c=cI.DEFAULT_GROUP){return this.getGroup(c).filter(y=>y!==this.chart)}get(c){return cI.chartsGroups.get(c)}};X0.chartsGroups=new Map,X0.DEFAULT_GROUP=Symbol("sync-group-default");var rL=X0,Z0=class extends un{constructor(){super(...arguments),this.enabled=!1}};D([Je(Zi)],Z0.prototype,"enabled",2),D([Je(Vn)],Z0.prototype,"tabIndex",2);var $0=["top","right","bottom","left"];function Tv(l){return typeof l=="string"&&$0.includes(l)}function aM(l){let c=[],y=[],I=[...$0];for(let O of l)O instanceof Da&&(Tv(O.position)?y.push(O.position):c.push(O));for(let O of c){let j;do j=I.pop();while(j&&y.includes(j));if(j==null)break;O.position=j}}var oM=["direction","xKey","yKey","sizeKey","angleKey","radiusKey","normalizedTo"];function rM(l,c,y){var te,se,ge,Se;let I=(Ce,Pe,Ge)=>{let We=[Ce];for(let He of oM)He in Pe&&Pe[He]!=null&&We.push(`${He}=${Pe[He]}`);return Ge!=null&&Ge.seriesGrouping&&We.push(`seriesGrouping.groupId=${Ge==null?void 0:Ge.seriesGrouping.groupId}`),We.join(";")},O=new Map,j=0;for(let Ce of l){let Pe=I(Ce.type,Ce.properties,y==null?void 0:y[j]);O.has(Pe)||O.set(Pe,[]),(te=O.get(Pe))==null||te.push([Ce,j++])}let H=new Map;j=0;for(let Ce of c){let Pe=I(Ce.type,Ce,Ce);H.has(Pe)||H.set(Pe,[]),(se=H.get(Pe))==null||se.push([Ce,j++])}if(![...O.keys()].some(Ce=>H.has(Ce)))return{status:"no-overlap",oldKeys:O.keys(),newKeys:H.keys()};let Z=[];for(let[Ce,Pe]of H.entries())for(let[Ge,We]of Pe){let He=O.get(Ce);if(He==null||He.length<1){Z.push({opts:Ge,targetIdx:We,idx:We,status:"add"}),O.delete(Ce);continue}let[Ze,it]=He.shift(),qe=(ge=y==null?void 0:y[it])!=null?ge:{},rt=ad(qe,Ge!=null?Ge:{}),{groupIndex:dt,stackIndex:mt}=(Se=rt==null?void 0:rt.seriesGrouping)!=null?Se:{};dt!=null||mt!=null?Z.push({opts:Ge,series:Ze,diff:rt,targetIdx:We,idx:it,status:"series-grouping"}):rt?Z.push({opts:Ge,series:Ze,diff:rt,targetIdx:We,idx:it,status:"update"}):Z.push({opts:Ge,series:Ze,targetIdx:We,idx:it,status:"no-op"}),He.length===0&&O.delete(Ce)}for(let Ce of O.values())for(let[Pe,Ge]of Ce)Z.push({series:Pe,idx:Ge,targetIdx:-1,status:"remove"});return{status:"overlap",changes:Z}}function Oh(l){var y,I;let{series:c}=l;if(c)return(I=(y=c[0])==null?void 0:y.type)!=null?I:"line"}function To(l){let c=Oh(l);return c==null?!1:Qo.isCartesian(c)||aL(c)}function Fc(l){let c=Oh(l);return c==null?!1:Qo.isPolar(c)||iM(c)}function Rv(l){let c=Oh(l);return c==null?!1:Qo.isHierarchy(c)||Ap(c)}function sM(l){let c=Oh(l);return c==null?!1:Qo.isTopology(c)||Ev(c)}function lM(l){let c=Oh(l);return c==null?!1:Qo.isFlowProportion(c)||qm(c)}function Mb(l){let c=Oh(l);return c==null?!1:Qo.isStandalone(c)||Iv(c)}function Iu(l){let c=Oh(l);return c==null?!1:Qo.isGauge(c)||Ym(c)}function _h(l){let c=Oh(l);return Fc(l)&&c!=="pie"&&c!=="donut"}function yg(l){return l==null?!1:Qo.has(l)}function ss(l){return l==null?!1:Zs.has(l)}var ur=class extends yh{applyOptions(l){for(let c of this.moduleMap.values())c.module.optionsKey in l&&fu(c.moduleInstance)&&c.moduleInstance.set(l[c.module.optionsKey])}*legends(){for(let{module:l,moduleInstance:c}of this.moduleMap.values())l.type==="legend"&&(yield{legendType:l.identifier,legend:c})}},wl="ag-charts-overlay",cM="ag-charts-dark-overlay",$s=class extends un{constructor(l,c){super(),this.className=l,this.defaultMessageId=c,this.enabled=!0}getText(l){var c;return l.t((c=this.text)!=null?c:this.defaultMessageId)}getElement(l,c,y){var I;if((I=this.content)==null||I.remove(),this.focusBox=y,this.renderer){let O=this.renderer();if(O instanceof HTMLElement)this.content=O;else{let j=Aa("div");j.innerHTML=O,this.content=j.firstElementChild}}else{let O=Aa("div",{display:"flex",alignItems:"center",justifyContent:"center",boxSizing:"border-box",height:"100%",margin:"8px",font:"12px Verdana, sans-serif"});O.innerText=this.getText(c),this.content=O,l==null||l.animate({from:0,to:1,id:"overlay",phase:"add",groupId:"opacity",onUpdate(j){O.style.opacity=String(j)},onStop(){O.style.opacity="1"}})}return this.content}removeElement(l=()=>{var y;return(y=this.content)==null?void 0:y.remove()},c){if(this.content){if(c){let{content:y}=this;c.animate({from:1,to:0,phase:"remove",id:"overlay",groupId:"opacity",onUpdate(I){y.style.opacity=String(I)},onStop(){l==null||l()}})}else l==null||l();this.content=void 0,this.focusBox=void 0}}};D([Je(Zi)],$s.prototype,"enabled",2),D([Je(ui,{optional:!0})],$s.prototype,"text",2),D([Je(no,{optional:!0})],$s.prototype,"renderer",2);var dd=class extends un{constructor(){super(...arguments),this.darkTheme=!1,this.loading=new $s("ag-charts-loading-overlay","overlayLoadingData"),this.noData=new $s("ag-charts-no-data-overlay","overlayNoData"),this.noVisibleSeries=new $s("ag-charts-no-visible-series","overlayNoVisibleSeries"),this.unsupportedBrowser=new $s("ag-charts-unsupported-browser","overlayUnsupportedBrowser")}getFocusInfo(l){for(let c of[this.loading,this.noData,this.noVisibleSeries,this.unsupportedBrowser])if(c.focusBox!==void 0)return{text:c.getText(l),rect:c.focusBox}}destroy(){this.loading.removeElement(),this.noData.removeElement(),this.noVisibleSeries.removeElement(),this.unsupportedBrowser.removeElement()}};D([Je(Zi)],dd.prototype,"darkTheme",2),D([Je(Gi)],dd.prototype,"loading",2),D([Je(Gi)],dd.prototype,"noData",2),D([Je(Gi)],dd.prototype,"noVisibleSeries",2),D([Je(Gi)],dd.prototype,"unsupportedBrowser",2);function oT(l,c){let{animationDuration:y}=Vl.add,I=y*c,O=Aa("div",`${wl}--loading`,{display:"flex",alignItems:"center",justifyContent:"center",flexDirection:"column",height:"100%",boxSizing:"border-box",font:"13px Verdana, sans-serif",userSelect:"none",animation:`ag-charts-loading ${I}ms linear 50ms both`}),j=Aa("span",{width:"45px",height:"40px",backgroundImage:["linear-gradient(#0000 calc(1 * 100% / 6), #ccc 0 calc(3 * 100% / 6), #0000 0), ","linear-gradient(#0000 calc(2 * 100% / 6), #ccc 0 calc(4 * 100% / 6), #0000 0), ","linear-gradient(#0000 calc(3 * 100% / 6), #ccc 0 calc(5 * 100% / 6), #0000 0)"].join(""),backgroundSize:"10px 400%",backgroundRepeat:"no-repeat",animation:"ag-charts-loading-matrix 1s infinite linear"}),H=Aa("p",{marginTop:"1em"});H.innerText=l;let K=Aa("div",`${wl}__loading-background`,{position:"absolute",inset:"0",opacity:"0.5",zIndex:"-1"}),Z=Aa("style");return Z.innerText=["@keyframes ag-charts-loading { from { opacity: 0 } to { opacity: 1 } }","@keyframes ag-charts-loading-matrix {","0% { background-position: 0% 0%, 50% 0%, 100% 0%; }","100% { background-position: 0% 100%, 50% 100%, 100% 100%; }","}"].join(" "),O.replaceChildren(Z,j,H,K),O}var Xm=(l=>(l[l.BACKGROUND=0]="BACKGROUND",l[l.ANY_CONTENT=1]="ANY_CONTENT",l))(Xm||{}),kb=(l=>(l[l.FOREGROUND=0]="FOREGROUND",l[l.HIGHLIGHT=1]="HIGHLIGHT",l[l.LABEL=2]="LABEL",l))(kb||{}),Pv=(l=>(l[l.EXACT_SHAPE_MATCH=0]="EXACT_SHAPE_MATCH",l[l.NEAREST_NODE=1]="NEAREST_NODE",l[l.AXIS_ALIGNED=2]="AXIS_ALIGNED",l))(Pv||{}),Q0=.25,sL=.125,Tu=class{constructor(l,c,{datum:y},I){this.type=l,this.event=c,this.datum=y,this.seriesId=I.id}},J0=class{constructor(l,c,y){this.series=l,this.seriesGrouping=c,this.oldGrouping=y,this.type="groupingChanged"}},Lv=class extends LI{constructor(l){super(),this.destroyFns=[],this.usesPlacedLabels=!1,this.seriesGrouping=void 0,this.NodeEvent=Tu,this.internalId=U(this),this.contentGroup=new yl({name:`${this.internalId}-content`,zIndex:1}),this.highlightGroup=new yl({name:`${this.internalId}-highlight`,zIndex:1}),this.annotationGroup=new yl({name:`${this.internalId}-annotation`}),this.labelGroup=new yl({name:`${this.internalId}-series-labels`}),this.axes={x:void 0,y:void 0},this.directions=["x","y"],this.nodeDataRefresh=!0,this.moduleMap=new yh,this.datumCallbackCache=new Map,this.connectsToYAxis=!1,this._declarationOrder=-1,this.seriesListeners=new as,this._pickNodeCache=new Od;let{moduleCtx:c,pickModes:y,directionKeys:I={},directionNames:O={},canHaveAxes:j=!1,usesPlacedLabels:H=!1}=l;this.ctx=c,this.directionKeys=I,this.directionNames=O,this.canHaveAxes=j,this.usesPlacedLabels=H,this.highlightGroup=new yl({name:`${this.internalId}-highlight`}),this.highlightNode=this.highlightGroup.appendChild(new Mn({name:"highlightNode",zIndex:0})),this.highlightLabel=this.highlightGroup.appendChild(new Mn({name:"highlightLabel",zIndex:10})),this.pickModes=y}get pickModeAxis(){return"main"}get id(){var l,c;return(c=(l=this.properties)==null?void 0:l.id)!=null?c:this.internalId}get type(){var l;return(l=this.constructor.type)!=null?l:""}get data(){var l;return(l=this._data)!=null?l:this._chartData}set visible(l){this.properties.visible=l,this.ctx.legendManager.toggleItem({enabled:l,seriesId:this.id}),this.ctx.legendManager.update(),this.visibleMaybeChanged()}get visible(){var l;return(l=this.ctx.legendManager.getSeriesEnabled(this.id))!=null?l:this.properties.visible}get hasData(){return this.data!=null&&this.data.length>0}get tooltipEnabled(){var l,c;return(c=(l=this.properties.tooltip)==null?void 0:l.enabled)!=null?c:!1}onDataChange(){this.nodeDataRefresh=!0,this._pickNodeCache.clear()}setOptionsData(l){this._data=l,this.onDataChange()}setChartData(l){this._chartData=l,this.data===l&&this.onDataChange()}onSeriesGroupingChange(l,c){let{internalId:y,type:I,visible:O}=this;l&&this.ctx.seriesStateManager.deregisterSeries(this),c&&this.ctx.seriesStateManager.registerSeries({internalId:y,type:I,visible:O,seriesGrouping:c}),this.fireEvent(new J0(this,c,l))}getBandScalePadding(){return{inner:1,outer:0}}attachSeries(l,c,y){l.appendChild(this.contentGroup),c.appendChild(this.highlightGroup),c.appendChild(this.labelGroup),y==null||y.appendChild(this.annotationGroup)}detachSeries(l,c,y){l==null||l.removeChild(this.contentGroup),c.removeChild(this.highlightGroup),c.removeChild(this.labelGroup),y==null||y.removeChild(this.annotationGroup)}setSeriesIndex(l){return l===this._declarationOrder?!1:(this._declarationOrder=l,this.contentGroup.zIndex=[1,l,0],this.highlightGroup.zIndex=[1,l,1],this.labelGroup.zIndex=[1,l,2],this.annotationGroup.zIndex=l,!0)}renderToOffscreenCanvas(){return!1}addEventListener(l,c){return super.addEventListener(l,c)}addListener(l,c){return this.seriesListeners.addListener(l,c)}dispatch(l,c){this.seriesListeners.dispatch(l,c)}addChartEventListeners(){}destroy(){this.destroyFns.forEach(l=>l()),this.destroyFns=[],this.resetDatumCallbackCache(),this.ctx.seriesStateManager.deregisterSeries(this)}getDirectionValues(l,c){let y=this.resolveKeyDirection(l),I=c==null?void 0:c[y],O=[];if(!I)return O;let j=(...H)=>{for(let K of H)Array.isArray(K)?j(...K):typeof K=="object"?j(...Object.values(K)):O.push(K)};return j(...I.map(H=>this.properties[H])),O}getKeys(l){return this.getDirectionValues(l,this.directionKeys)}getKeyProperties(l){var c;return(c=this.directionKeys[this.resolveKeyDirection(l)])!=null?c:[]}getNames(l){return this.getDirectionValues(l,this.directionNames)}resolveKeyDirection(l){return l}getDomain(l){let c=this.getSeriesDomain(l),y=this.moduleMap.mapModules(I=>I.getDomain(l)).flat();return y.length!==0?c.concat(y):c}getRange(l,c){return this.getSeriesRange(l,c)}markNodeDataDirty(){this.nodeDataRefresh=!0,this._pickNodeCache.clear(),this.visibleMaybeChanged()}visibleMaybeChanged(){this.ctx.seriesStateManager.updateSeries(this)}getOpacity(){let{dimOpacity:c=1,enabled:y=!0}=this.properties.highlightStyle.series;if(!y||c===1)return 1;switch(this.isItemIdHighlighted()){case 0:case 1:return 1;case 2:default:return c}}getStrokeWidth(l){let{strokeWidth:c,enabled:y=!0}=this.properties.highlightStyle.series;if(!y||c===void 0)return l;switch(this.isItemIdHighlighted()){case 1:return c;case 0:case 2:return l}}isItemIdHighlighted(){var c,y;let l=(y=(c=this.ctx.highlightManager)==null?void 0:c.getActiveHighlight())==null?void 0:y.series;return l==null?0:l!==this?2:1}getModuleTooltipParams(){return this.moduleMap.mapModules(l=>l.getTooltipParams()).reduce((l,c)=>Object.assign(l,c),{})}pickNode(l,c,y=!1){let{pickModes:I,pickModeAxis:O,visible:j,contentGroup:H}=this;if(!j||!H.visible||c==="highlight"&&!this.properties.highlight.enabled||c==="highlight-tooltip"&&!this.properties.highlight.enabled)return;let K=1/0;if(c==="tooltip"||c==="highlight-tooltip"){let{tooltip:Se}=this.properties;K=typeof Se.range=="number"?Se.range:1/0,y||(y=Se.range==="exact")}else if(c==="event"||c==="context-menu"){let{nodeClickRange:Se}=this.properties;K=typeof Se=="number"?Se:1/0,y||(y=Se==="exact")}let Z=I.filter(Se=>!y||Se===0),{x:te,y:se}=l,ge=JSON.stringify({x:te,y:se,maxDistance:K,selectedPickModes:Z});if(this._pickNodeCache.has(ge))return this._pickNodeCache.get(ge);for(let Se of Z){let Ce;switch(Se){case 0:Ce=this.pickNodeExactShape(l);break;case 1:Ce=this.pickNodeClosestDatum(l);break;case 2:Ce=O!=null?this.pickNodeMainAxisFirst(l,O==="main-category"):void 0;break}if(Ce&&Ce.distance<=K)return this._pickNodeCache.set(ge,{pickMode:Se,match:Ce.datum,distance:Ce.distance})}return this._pickNodeCache.set(ge,void 0)}pickNodeExactShape(l){let c=this.contentGroup.pickNode(l.x,l.y);if(c&&c.datum.missing!==!0)return{datum:c.datum,distance:0}}pickNodeClosestDatum(l){throw new Error("AG Charts - Series.pickNodeClosestDatum() not implemented")}pickNodeNearestDistantObject(l,c){let y=xe(l.x,l.y,c);if(y.nearest!==void 0&&y.nearest.datum.missing!==!0)return{datum:y.nearest.datum,distance:Math.sqrt(y.distanceSquared)}}pickNodeMainAxisFirst(l,c){throw new Error("AG Charts - Series.pickNodeMainAxisFirst() not implemented")}getLabelData(){return[]}updatePlacedLabelData(l){}fireNodeClickEvent(l,c){this.fireEvent(new this.NodeEvent("nodeClick",l,c,this))}fireNodeDoubleClickEvent(l,c){this.fireEvent(new this.NodeEvent("nodeDoubleClick",l,c,this))}createNodeContextMenuActionEvent(l,c){return new this.NodeEvent("nodeContextMenuAction",l,c,this)}onLegendInitialState(l,c){let{visible:y=!0,itemId:I,legendItemName:O}=c!=null?c:{};this.toggleSeriesItem(y,l,I,O)}onLegendItemClick(l){let{enabled:c,itemId:y,series:I,legendType:O}=l,j="legendItemName"in this.properties?this.properties.legendItemName:void 0,H="legendItemKey"in this.properties?this.properties.legendItemKey:void 0,K=j!=null&&j===l.legendItemName;(I.id===this.id||K||H!=null)&&this.toggleSeriesItem(c,O,y,j,l)}onLegendItemDoubleClick(l){let{enabled:c,itemId:y,series:I,numVisibleItems:O,legendType:j}=l,H="legendItemName"in this.properties?this.properties.legendItemName:void 0,K="legendItemKey"in this.properties?this.properties.legendItemKey:void 0,Z=H!=null&&H===l.legendItemName;I.id===this.id||Z||K!=null?this.toggleSeriesItem(!0,j,y,H,l):c&&O===1?this.toggleSeriesItem(!0,j,void 0,H):this.toggleSeriesItem(!1,j,void 0,H)}toggleSeriesItem(l,c,y,I,O){var K;let j=this.id;(l||c!=="category")&&(this.visible=l),this.nodeDataRefresh=!0,this._pickNodeCache.clear();let H={type:"seriesVisibilityChange",seriesId:j,itemId:y,legendItemName:(K=O==null?void 0:O.legendItemName)!=null?K:I,visible:l};this.fireEvent(H),this.ctx.legendManager.toggleItem({enabled:l,seriesId:j,itemId:y,legendItemName:I})}isEnabled(){return this.visible}getModuleMap(){return this.moduleMap}createModuleContext(){return et(pe({},this.ctx),{series:this})}getLabelText(l,c,y=id){var I;return l.formatter&&(I=this.ctx.callbackCache.call(l.formatter,pe({seriesId:this.id},c)))!=null?I:y(c.value)}getMarkerStyle(l,c,y=l.getStyle()){var j,H;let I={size:(H=(j=c.datum.point)==null?void 0:j.size)!=null?H:0},O=Wi(I,y);if(l.itemStyler){let K=this.ctx.callbackCache.call(l.itemStyler,et(pe(pe({seriesId:this.id},O),c),{datum:c.datum.datum}));return Wi(K,O)}return O}updateMarkerStyle(l,c,y,I=c.getStyle(),{applyTranslation:O=!0,selected:j=!0}={}){let{point:H}=y.datum,K=this.getMarkerStyle(c,y,I),Z=this.visible&&K.size>0&&H&&!isNaN(H.x)&&!isNaN(H.y);if(O?l.setProperties(et(pe({visible:Z},K),{translationX:H==null?void 0:H.x,translationY:H==null?void 0:H.y})):l.setProperties(pe({visible:Z},K)),j||(l.fillOpacity*=Q0,l.strokeOpacity*=sL),typeof c.shape=="function"&&!l.dirtyPath){l.path.clear(!0),l.updatePath(),l.checkPathDirty();let te=l.getBBox();if(H!==void 0&&te.isFinite()){let se=te.computeCenter(),[ge,Se]=["x","y"].map(Pe=>{var Ge;return((Ge=K.strokeWidth)!=null?Ge:0)+Math.abs(se[Pe]-H[Pe])}),Ce=Math.max(te.width+ge,te.height+Se);H.focusSize=Ce}}}getMinRects(l,c){}get nodeDataDependencies(){var l;return(l=this._nodeDataDependencies)!=null?l:{seriesRectWidth:NaN,seriesRectHeight:NaN}}checkResize(l){let{width:c,height:y}=l!=null?l:{width:NaN,height:NaN},I=l?{seriesRectWidth:c,seriesRectHeight:y}:void 0,O=ad(this.nodeDataDependencies,I)!=null;return O&&(this._nodeDataDependencies=I,this.markNodeDataDirty()),O}pickFocus(l){}resetDatumCallbackCache(){this.datumCallbackCache.clear()}cachedDatumCallback(l,c){let{datumCallbackCache:y}=this,I=y.get(l);if(I!=null)return I;let O=c();return y.set(l,O),O}};Lv.highlightedZIndex=1e12,D([Xl({changeValue:function(l,c){this.onSeriesGroupingChange(c,l)}})],Lv.prototype,"seriesGrouping",2);function lL(l,c){let y=-c/l;return l!==0&&y>=0&&y<=1?[y]:[]}function PD(l,c,y){if(l===0)return lL(c,y);let I=c*c-4*l*y,O=[];if(I===0){let j=-c/(2*l);j>=0&&j<=1&&O.push(j)}else if(I>0){let j=Math.sqrt(I),H=(-c-j)/(2*l),K=(-c+j)/(2*l);H>=0&&H<=1&&O.push(H),K>=0&&K<=1&&O.push(K)}return O}function LD(l,c,y,I){if(l===0)return PD(c,y,I);let O=c/l,j=y/l,H=I/l,K=(3*j-O*O)/9,Z=(9*O*j-27*H-2*O*O*O)/54,te=K*K*K+Z*Z,se=1/3,ge=[];if(te>=0){let Se=Math.sqrt(te),Ce=Math.sign(Z+Se)*Math.pow(Math.abs(Z+Se),se),Pe=Math.sign(Z-Se)*Math.pow(Math.abs(Z-Se),se),Ge=Math.abs(Math.sqrt(3)*(Ce-Pe)/2),We=-se*O+(Ce+Pe);if(We>=0&&We<=1&&ge.push(We),Ge===0){let He=-se*O-(Ce+Pe)/2;He>=0&&He<=1&&ge.push(He)}}else{let Se=Math.acos(Z/Math.sqrt(-K*K*K)),Ce=se*O,Pe=2*Math.sqrt(-K),Ge=Pe*Math.cos(se*Se)-Ce,We=Pe*Math.cos(se*(Se+2*Math.PI))-Ce,He=Pe*Math.cos(se*(Se+4*Math.PI))-Ce;Ge>=0&&Ge<=1&&ge.push(Ge),We>=0&&We<=1&&ge.push(We),He>=0&&He<=1&&ge.push(He)}return ge}function Vd(l,c,y,I,O,j,H,K){let Z=(y-l)*(K-j)-(I-c)*(H-O);if(Z===0)return 0;let te=((H-O)*(c-j)-(l-O)*(K-j))/Z,se=((y-l)*(c-j)-(I-c)*(l-O))/Z;return te>=0&&te<=1&&se>=0&&se<=1?1:0}function rT(l,c,y,I,O,j,H,K,Z,te,se,ge){let Se=0,Ce=te-ge,Pe=se-Z,Ge=Z*(ge-te)-te*(se-Z),We=ud(l,y,O,H),He=ud(c,I,j,K),Ze=Ce*We[0]+Pe*He[0],it=Ce*We[1]+Pe*He[1],qe=Ce*We[2]+Pe*He[2],rt=Ce*We[3]+Pe*He[3]+Ge,dt=LD(Ze,it,qe,rt);for(let mt of dt){let yt=mt*mt,Lt=mt*yt,Ht=We[0]*Lt+We[1]*yt+We[2]*mt+We[3],qt=He[0]*Lt+He[1]*yt+He[2]*mt+He[3],ri;Z===se?ri=(qt-te)/(ge-te):ri=(Ht-Z)/(se-Z),ri>=0&&ri<=1&&Se++}return Se}function ud(l,c,y,I){return[-l+3*c-3*y+I,3*l-6*c+3*y,-3*l+3*c,l]}function yo(l,c,y,I,O,j,H,K,Z,te){if(isNaN(l)||isNaN(c))return 0;j&&([O,I]=[I,O]);let se=(te-K)/(Z-H),ge=K-se*H,Se=Math.pow(se,2)+1,Ce=2*(se*(ge-c)-l),Pe=Math.pow(l,2)+Math.pow(ge-c,2)-Math.pow(y,2),Ge=Math.pow(Ce,2)-4*Se*Pe;if(Ge<0)return 0;let We=(-Ce+Math.sqrt(Ge))/2/Se,He=(-Ce-Math.sqrt(Ge))/2/Se,Ze=0;return[We,He].forEach(it=>{if(!(it>=Math.min(H,Z)&&it<=Math.max(H,Z)))return;let rt=se*it+ge,dt=it-l,mt=rt-c,yt=Math.atan2(mt,dt);ga(yt,I,O)&&Ze++}),Ze}function bg(l,c,y,I,O){return(1-O)**3*l+3*(1-O)**2*O*c+3*(1-O)*O**2*y+O**3*I}function Ov(l,c,y,I,O){if(O<=Math.min(l,I))return l<I?0:1;if(O>=Math.max(l,I))return l<I?1:0;let j=0,H=1,K=NaN;for(let Z=0;Z<12;Z+=1)K=(j+H)/2,bg(l,c,y,I,K)<O?j=K:H=K;return K}function hd(l,c,y,I,O,j,H,K,Z){let te=(1-Z)*l+Z*y,se=(1-Z)*c+Z*I,ge=(1-Z)*y+Z*O,Se=(1-Z)*I+Z*j,Ce=(1-Z)*O+Z*H,Pe=(1-Z)*j+Z*K,Ge=(1-Z)*te+Z*ge,We=(1-Z)*se+Z*Se,He=(1-Z)*ge+Z*Ce,Ze=(1-Z)*Se+Z*Pe,it=(1-Z)*Ge+Z*He,qe=(1-Z)*We+Z*Ze;return[[{x:l,y:c},{x:te,y:se},{x:Ge,y:We},{x:it,y:qe}],[{x:it,y:qe},{x:He,y:Ze},{x:Ce,y:Pe},{x:H,y:K}]]}function Ab(l,c,y,I){let O=-l+3*c-3*y+I,j=3*l-6*c+3*y,H=-3*l+3*c;if(O===0){if(j!==0){let Z=-H/j;if(Z>0&&Z<1)return[Z]}return[]}let K=j*j-4*O*H;if(K>=0){let Z=Math.sqrt(K),te=(-j+Z)/(2*O),se=(-j-Z)/(2*O);return[te,se].filter(ge=>ge>0&&ge<1)}return[]}function _v(l,c,y,I,O,j,H,K){let Z=Ab(l,y,O,H),te=Ab(c,I,j,K);return[...Z,...te]}var Ur=class{constructor(){this.path2d=new Path2D,this.previousCommands=[],this.previousParams=[],this.previousClosedPath=!1,this.commands=[],this.params=[],this.openedPath=!1,this.closedPath=!1}isEmpty(){return this.commands.length===0}isDirty(){return this.closedPath!==this.previousClosedPath||this.previousCommands.length!==this.commands.length||this.previousParams.length!==this.params.length||this.previousCommands.toString()!==this.commands.toString()||this.previousParams.toString()!==this.params.toString()}getPath2D(){return this.path2d}moveTo(l,c){this.openedPath=!0,this.path2d.moveTo(l,c),this.commands.push(0),this.params.push(l,c)}lineTo(l,c){this.openedPath?(this.path2d.lineTo(l,c),this.commands.push(1),this.params.push(l,c)):this.moveTo(l,c)}rect(l,c,y,I){this.moveTo(l,c),this.lineTo(l+y,c),this.lineTo(l+y,c+I),this.lineTo(l,c+I),this.closePath()}roundRect(l,c,y,I,O){O=Math.min(O,y/2,I/2),this.moveTo(l,c+O),this.arc(l+O,c+O,O,Math.PI,1.5*Math.PI),this.lineTo(l+O,c),this.lineTo(l+y-O,c),this.arc(l+y-O,c+O,O,1.5*Math.PI,2*Math.PI),this.lineTo(l+y,c+O),this.lineTo(l+y,c+I-O),this.arc(l+y-O,c+I-O,O,0,Math.PI/2),this.lineTo(l+y-O,c+I),this.lineTo(l+O,c+I),this.arc(l+ +O,c+I-O,O,Math.PI/2,Math.PI),this.lineTo(l,c+I-O),this.closePath()}arc(l,c,y,I,O,j){this.openedPath=!0,this.path2d.arc(l,c,y,I,O,j),this.commands.push(2),this.params.push(l,c,y,I,O,j?1:0)}cubicCurveTo(l,c,y,I,O,j){this.openedPath||this.moveTo(l,c),this.path2d.bezierCurveTo(l,c,y,I,O,j),this.commands.push(3),this.params.push(l,c,y,I,O,j)}closePath(){this.openedPath&&(this.path2d.closePath(),this.commands.push(4),this.openedPath=!1,this.closedPath=!0)}clear(l){l&&(this.previousCommands=this.commands,this.previousParams=this.params,this.previousClosedPath=this.closedPath),this.path2d=new Path2D,this.openedPath=!1,this.closedPath=!1,this.commands=[],this.params=[]}isPointInPath(l,c){let y=this.commands,I=this.params,O=y.length,j=-1e4,H=-1e4,K=NaN,Z=NaN,te=0,se=0,ge=0;for(let Se=0,Ce=0;Se<O;Se++)switch(y[Se]){case 0:ge+=Vd(K,Z,te,se,j,H,l,c),te=I[Ce++],K=te,se=I[Ce++],Z=se;break;case 1:ge+=Vd(te,se,I[Ce++],I[Ce++],j,H,l,c),te=I[Ce-2],se=I[Ce-1];break;case 3:ge+=rT(te,se,I[Ce++],I[Ce++],I[Ce++],I[Ce++],I[Ce++],I[Ce++],j,H,l,c),te=I[Ce-2],se=I[Ce-1];break;case 2:{let Pe=I[Ce++],Ge=I[Ce++],We=I[Ce++],He=I[Ce++],Ze=I[Ce++],it=!!I[Ce++];if(ge+=yo(Pe,Ge,We,He,Ze,it,j,H,l,c),!isNaN(K)){let qe=Pe+Math.cos(He)*We,rt=Ge+Math.sin(He)*We;ge+=Vd(te,se,qe,rt,j,H,l,c)}te=Pe+Math.cos(Ze)*We,se=Ge+Math.sin(Ze)*We;break}case 4:ge+=Vd(K,Z,te,se,j,H,l,c);break}return ge%2===1}distanceSquared(l,c){let y=1/0,I=this.commands,O=this.params,j=I.length,H=NaN,K=NaN,Z=0,te=0;for(let se=0,ge=0;se<j;se++)switch(I[se]){case 0:Z=H=O[ge++],te=K=O[ge++];break;case 1:{let Se=O[ge++],Ce=O[ge++];y=bl(l,c,Z,te,Se,Ce,y);break}case 3:Pi.error("Command.Curve distanceSquare not implemented");break;case 2:{let Se=O[ge++],Ce=O[ge++],Pe=O[ge++],Ge=O[ge++],We=O[ge++],He=Se+Math.cos(Ge)*Pe,Ze=Ce+Math.sin(Ge)*Pe,it=!!O[ge++];y=bl(l,c,Z,te,He,Ze,y),y=Mh(l,c,Se,Ce,Pe,Ge,We,it,y),Z=Se+Math.cos(We)*Pe,te=Ce+Math.sin(We)*Pe;break}case 4:y=bl(l,c,Z,te,H,K,y);break}return y}getPoints(){let{commands:l,params:c}=this,y=[],I=0;for(let O of l)switch(O){case 0:case 1:y.push({x:c[I++],y:c[I++]});break;case 3:I+=4,y.push({x:c[I++],y:c[I++]});break;case 2:y.push({x:c[I++],y:c[I++]}),I+=4;break;case 4:break}return y}toSVG(l=(c,y)=>({x:c,y})){let c=[],{commands:y,params:I}=this,O=(H,...K)=>{c.push(H);for(let Z=0;Z<K.length;Z+=2){let{x:te,y:se}=l(K[Z],K[Z+1]);c.push(te,se)}},j=0;for(let H of y)switch(H){case 0:O("M",I[j++],I[j++]);break;case 1:O("L",I[j++],I[j++]);break;case 3:O("C",I[j++],I[j++],I[j++],I[j++],I[j++],I[j++]);break;case 2:{let K=I[j++],Z=I[j++],te=I[j++],se=I[j++],ge=I[j++],Se=I[j++],Ce=Se?se-ge:ge-se;Ce<0&&(Ce+=Math.ceil(-Ce/(2*Math.PI))*2*Math.PI),Se&&(Ce=-Ce);let Pe=Math.max(Math.ceil(Math.abs(Ce)/(Math.PI/2)),1),Ge=Ce/Pe,We=4/3*Math.tan(Ge/4),He=c.length===0?"M":"L";O(He,K+Math.cos(se)*te,Z+Math.sin(se)*te);for(let Ze=0;Ze<Pe;Ze+=1){let it=se+Ge*(Ze+0),qe=se+Ge*(Ze+1),rt=te*Math.sin(it),dt=te*Math.cos(it),mt=te*Math.sin(qe),yt=te*Math.cos(qe);O("C",K+dt-We*rt,Z+rt+We*dt,K+yt+We*mt,Z+mt-We*yt,K+yt,Z+mt)}break}case 4:c.push("Z");break}return c.join(" ")}computeBBox(){let{commands:l,params:c}=this,[y,I,O,j]=[1/0,1/0,-1/0,-1/0],[H,K]=[NaN,NaN],[Z,te]=[NaN,NaN],se=(Se,Ce,Pe)=>{y=Math.min(Ce,y),I=Math.min(Se,I),O=Math.max(Se,O),j=Math.max(Ce,j),Pe&&([H,K]=[Se,Ce])},ge=0;for(let Se of l)switch(Se){case 0:se(c[ge++],c[ge++],!0),[Z,te]=[H,K];break;case 1:se(c[ge++],c[ge++],!0);break;case 3:{let Ce=c[ge++],Pe=c[ge++],Ge=c[ge++],We=c[ge++],He=c[ge++],Ze=c[ge++];se(He,Ze,!0),_v(H,K,Ce,Pe,Ge,We,He,Ze).forEach(qe=>{let rt=bg(H,Ce,Ge,He,qe),dt=bg(K,Pe,We,Ze,qe);se(rt,dt)});break}case 2:{let Ce=c[ge++],Pe=c[ge++],Ge=c[ge++],We=ha(c[ge++]),He=ha(c[ge++]);c[ge++]&&([We,He]=[He,We]);let it=(rt,dt)=>{let mt=Ce+Ge*Math.cos(rt),yt=Pe+Ge*Math.sin(rt);se(mt,yt,dt)};it(We),it(He,!0);let qe=[0,Math.PI/2,Math.PI,3*Math.PI/2];for(let rt of qe)(We<He&&We<=rt&&rt<=He||We>He&&(We<=rt||rt<=He))&&it(rt);break}case 4:[H,K]=[Z,te];break}return new ft(I,y,O-I,j-y)}};function Pn(l){let{changeCb:c,convertor:y}=l!=null?l:{};return kt({type:"path",convertor:y,changeCb:c})}var ic=class extends Wn{constructor(){super(...arguments),this.path=new Ur,this._clipX=NaN,this._clipY=NaN,this.clip=!1,this._dirtyPath=!0}set clipX(l){this._clipX=l,this.dirtyPath=!0}set clipY(l){this._clipY=l,this.dirtyPath=!0}set dirtyPath(l){this._dirtyPath!==l&&(this._dirtyPath=l,l&&this.markDirty())}get dirtyPath(){return this._dirtyPath}checkPathDirty(){var l,c,y,I;this._dirtyPath||(this.dirtyPath=this.path.isDirty()||((c=(l=this.fillShadow)==null?void 0:l.isDirty())!=null?c:!1)||((I=(y=this._clipPath)==null?void 0:y.isDirty())!=null?I:!1))}isPointInPath(l,c){return this.updatePathIfDirty(),this.path.closedPath&&this.path.isPointInPath(l,c)}distanceSquared(l,c){return this.distanceSquaredTransformedPoint(l,c)}svgPathData(l){return this.updatePathIfDirty(),this.path.toSVG(l)}distanceSquaredTransformedPoint(l,c){return this.updatePathIfDirty(),this.path.closedPath&&this.path.isPointInPath(l,c)?0:this.path.distanceSquared(l,c)}isDirtyPath(){return!1}updatePath(){}updatePathIfDirty(){(this.dirtyPath||this.isDirtyPath())&&(this.updatePath(),this.dirtyPath=!1)}preRender(){return this.updatePathIfDirty(),super.preRender(this.path.commands.length)}render(l){var y,I,O;let{ctx:c}=l;if(this.clip&&!isNaN(this._clipX)&&!isNaN(this._clipY)){c.save();let j=this.strokeWidth/2;(y=this._clipPath)!=null||(this._clipPath=new Ur),this._clipPath.clear(),this._clipPath.rect(-j,-j,this._clipX+j,this._clipY+j+j),c.clip((I=this._clipPath)==null?void 0:I.getPath2D()),this._clipX>0&&this._clipY>0&&this.drawPath(c),c.restore()}else this._clipPath=void 0,this.drawPath(c);(O=this.fillShadow)==null||O.markClean(),super.render(l)}drawPath(l){this.fillStroke(l,this.path.getPath2D())}toSVG(){if(!this.visible)return;let l=document.createElementNS("http://www.w3.org/2000/svg","path");return l.setAttribute("d",this.svgPathData()),this.applySvgFillAttributes(l),this.applySvgStrokeAttributes(l),{elements:[l]}}};ic.className="Path",D([Pn()],ic.prototype,"clip",2),D([Pn()],ic.prototype,"clipX",1),D([Pn()],ic.prototype,"clipY",1);var Dp=class{constructor(l){this.swapChain=l,this.div=bs().createElement("div"),this.svg=bs().createElementNS("http://www.w3.org/2000/svg","svg"),this.path=bs().createElementNS("http://www.w3.org/2000/svg","path"),this.svg.append(this.path),this.element=bs().createElement("div"),this.element.classList.add("ag-charts-focus-indicator"),this.element.ariaHidden="true",this.element.append(this.svg),this.swapChain.addListener("swap",c=>this.onSwap(c))}updateBounds(l,c,y=0,I=0){if(l!==void 0)if(l instanceof ic){let O=(j,H)=>{let{x:K,y:Z}=fr.toCanvasPoint(l,j,H);return K-=y,Z-=I,{x:K,y:Z}};this.path.setAttribute("d",l.svgPathData(O)),this.show(this.svg)}else{if(c==null)xh(this.div,l);else{let O=Math.max(l.x,c.x),j=Math.max(l.y,c.y),H=Math.min(l.x+l.width,c.x+c.width),K=Math.min(l.y+l.height,c.y+c.height);xh(this.div,new ft(O,j,H-O,K-j))}this.show(this.div)}}onSwap(l){l!==this.element.parentElement&&(this.element.remove(),l.appendChild(this.element),this.overrideFocusVisible(this.focusVisible))}show(l){this.element.innerHTML="",this.element.append(l)}overrideFocusVisible(l){this.focusVisible=l;let c={true:"1",false:"0",undefined:""},y=this.element.parentElement;y==null||y.style.setProperty("opacity",c[`${l}`])}isFocusVisible(){let l=this.element.parentElement;return l!=null&&ca().getComputedStyle(l).opacity==="1"}},sT=class{constructor(l,c,y,I){this.label1=l,this.label2=c,this.hasFocus=!1,this.skipDispatch=!1,this.listeners={blur:[],focus:[],swap:[]},this.onBlur=O=>!this.skipDispatch&&this.dispatch("blur",O),this.onFocus=O=>!this.skipDispatch&&this.dispatch("focus",O),fo(this.label1,"id",`${y}-label1`),fo(this.label2,"id",`${y}-label2`),$l(this.label1,"display","none"),$l(this.label2,"display","none"),this.activeAnnouncer=this.createAnnouncer(I),this.inactiveAnnouncer=this.createAnnouncer(I),fo(this.activeAnnouncer,"tabindex",0),this.label2.insertAdjacentElement("afterend",this.activeAnnouncer),this.label2.insertAdjacentElement("afterend",this.inactiveAnnouncer),this.swap("")}createAnnouncer(l){let c=Aa("div");return c.role=l,c.className="ag-charts-swapchain",c.addEventListener("blur",this.onBlur),c.addEventListener("focus",this.onFocus),c}destroy(){for(let l of[this.activeAnnouncer,this.inactiveAnnouncer])l.removeEventListener("blur",this.onBlur),l.removeEventListener("focus",this.onFocus),l.remove()}focus(){this.activeAnnouncer.focus()}update(l){this.skipDispatch=!0,this.swap(l),this.hasFocus&&this.activeAnnouncer.focus(),this.skipDispatch=!1}addListener(l,c){this.listeners[l].push(c),l==="swap"&&c(this.activeAnnouncer)}dispatch(l,c){l==="focus"?this.hasFocus=!0:l==="blur"&&(this.hasFocus=!1),this.listeners[l].forEach(y=>y(c))}swap(l){let c=this.activeAnnouncer.tabIndex;this.label2.textContent=l,[this.inactiveAnnouncer,this.activeAnnouncer]=[this.activeAnnouncer,this.inactiveAnnouncer],[this.label1,this.label2]=[this.label2,this.label1],br(this.inactiveAnnouncer,{"aria-labelledby":this.label1.id,"aria-hidden":!0,tabindex:void 0}),br(this.activeAnnouncer,{"aria-labelledby":this.label1.id,"aria-hidden":!1,tabindex:c}),$l(this.inactiveAnnouncer,"pointer-events","none"),$l(this.activeAnnouncer,"pointer-events",void 0),this.dispatch("swap",this.activeAnnouncer)}};function cL(l,c){let y=eM(c.datum);if(y!=null)return{x:y.canvasX,y:y.canvasY};let I=c.bounds;if(I!=null){if(I instanceof ft){let{x:O,y:j}=I.computeCenter();return{x:l.x+O,y:l.y+j}}return fr.toCanvas(I).computeCenter()}}function dL(l,c,y,I,O){let{bounds:j,showFocusBox:H,clipFocusBox:K=!0}=y;H&&(c==null||c.updateBounds(j,K?l:void 0,I,O))}function dM({bounds:l}){return l instanceof ft?l:l!=null?l.getBBox():ft.NaN}function Db(l,c){var O;let{x:y,y:I}=(O=cL(l,c))!=null?O:{};if(y!==void 0&&I!==void 0)return{type:"keyboard",canvasX:y,canvasY:I}}function uM(l,c,y,I){let{top:O,right:j,bottom:H,left:K,width:Z,height:te}=I;return K!=null?Z!=null?j=y.width-K+Z:j!=null&&(Z=y.width-K-j):j!=null&&Z!=null&&(K=y.width-j-Z),O!=null?te!=null?H=y.height-O-te:H!=null&&(te=y.height-H-O):H!=null&&te!=null&&(O=y.height-H-te),Z==null?te==null?(Z=l,te=c):Z=Math.ceil(l*te/c):te==null&&(te=Math.ceil(c*Z/l)),K==null&&(j==null?K=Math.floor((y.width-Z)/2):K=y.width-j-Z),O==null&&(H==null?O=Math.floor((y.height-te)/2):O=y.height-te-H),{x:K,y:O,width:Z,height:te}}var Eb=null;function Ib(l){if(l!=null)return l===""?"":(Eb!=null||(Eb=Aa("div")),Eb.textContent=String(l),Eb.innerHTML)}var eS=["ArrowDown","ArrowUp","Circle","Cross","Diamond","Heart","MapPin","Plus","Square","Star","Triangle"],lT=Object.freeze({x:.5,y:.5}),hM=class extends ic{constructor(){super(...arguments),this.x=0,this.y=0,this.size=12}isBuiltIn(){var l;return eS.includes((l=this.constructor.className)!=null?l:"")}computeBBox(){if(!this.isBuiltIn())return this.updatePathIfDirty(),this.path.computeBBox();let{x:l,y:c,size:y}=this,{center:I}=this.constructor;return new ft(l-y*I.x,c-y*I.y,y,y)}applyPath(l,c){let{path:y}=this,{x:I,y:O}=this;y.clear();for(let{x:j,y:H,t:K}of c)I+=j*l,O+=H*l,K==="move"?y.moveTo(I,O):y.lineTo(I,O);y.closePath()}executeFill(l,c){if(c)return super.executeFill(l,c)}executeStroke(l,c){if(c)return super.executeStroke(l,c)}};D([Pn()],hM.prototype,"x",2),D([Pn()],hM.prototype,"y",2),D([Pn({convertor:Math.abs})],hM.prototype,"size",2);var Qs=class extends Tm(mx(Rm(hM))){};Qs.center=lT;var Cg=class extends Qs{updatePath(){let{x:l,y:c,path:y,size:I}=this,O=I/2;y.clear(),y.arc(l,c,O,0,Math.PI*2),y.closePath()}};Cg.className="Circle";var Fv=class rZ extends Qs{updatePath(){let c=this.size/4.2;super.applyPath(c,rZ.moves)}};Fv.className="Cross",Fv.moves=[{x:-1,y:0,t:"move"},{x:-1,y:-1},{x:1,y:-1},{x:1,y:1},{x:1,y:-1},{x:1,y:1},{x:-1,y:1},{x:1,y:1},{x:-1,y:1},{x:-1,y:-1},{x:-1,y:1},{x:-1,y:-1}];var Sg=Fv,gM=class sZ extends Qs{updatePath(){let c=this.size/2;super.applyPath(c,sZ.moves)}};gM.className="Diamond",gM.moves=[{x:0,y:-1,t:"move"},{x:1,y:1},{x:-1,y:1},{x:-1,y:-1},{x:1,y:-1}];var Ep=gM,OD=class lZ extends Qs{static rad(c){return c/180*Math.PI}updatePath(){let{x:c,path:y,size:I}=this,{rad:O}=lZ,j=I/4,H=this.y+j/2;y.clear(),y.arc(c-j,H-j,j,O(130),O(330)),y.arc(c+j,H-j,j,O(220),O(50)),y.lineTo(c,H+j),y.closePath()}};OD.className="Heart";var uL=OD,pM=class extends Qs{updatePath(){let{path:l,x:c,y}=this,I=this.size,O=.5,j=1;l.clear(),l.moveTo(c+(.15625-O)*I,y+(.34375-j)*I),l.cubicCurveTo(c+(.15625-O)*I,y+(.151491-j)*I,c+(.307741-O)*I,y+(0-j)*I,c+(.5-O)*I,y+(0-j)*I),l.cubicCurveTo(c+(.692259-O)*I,y+(0-j)*I,c+(.84375-O)*I,y+(.151491-j)*I,c+(.84375-O)*I,y+(.34375-j)*I),l.cubicCurveTo(c+(.84375-O)*I,y+(.493824-j)*I,c+(.784625-O)*I,y+(.600181-j)*I,c+(.716461-O)*I,y+(.695393-j)*I),l.cubicCurveTo(c+(.699009-O)*I,y+(.719769-j)*I,c+(.681271-O)*I,y+(.743104-j)*I,c+(.663785-O)*I,y+(.766105-j)*I),l.cubicCurveTo(c+(.611893-O)*I,y+(.834367-j)*I,c+(.562228-O)*I,y+(.899699-j)*I,c+(.528896-O)*I,y+(.980648-j)*I),l.cubicCurveTo(c+(.524075-O)*I,y+(.992358-j)*I,c+(.512663-O)*I,y+(1-j)*I,c+(.5-O)*I,y+(1-j)*I),l.cubicCurveTo(c+(.487337-O)*I,y+(1-j)*I,c+(.475925-O)*I,y+(.992358-j)*I,c+(.471104-O)*I,y+(.980648-j)*I),l.cubicCurveTo(c+(.487337-O)*I,y+(1-j)*I,c+(.475925-O)*I,y+(.992358-j)*I,c+(.471104-O)*I,y+(.980648-j)*I),l.cubicCurveTo(c+(.437772-O)*I,y+(.899699-j)*I,c+(.388107-O)*I,y+(.834367-j)*I,c+(.336215-O)*I,y+(.766105-j)*I),l.cubicCurveTo(c+(.318729-O)*I,y+(.743104-j)*I,c+(.300991-O)*I,y+(.719769-j)*I,c+(.283539-O)*I,y+(.695393-j)*I),l.cubicCurveTo(c+(.215375-O)*I,y+(.600181-j)*I,c+(.15625-O)*I,y+(.493824-j)*I,c+(.15625-O)*I,y+(.34375-j)*I),l.closePath()}};pM.className="MapPin",pM.center={x:.5,y:1};var mM=class cZ extends Qs{updatePath(){let c=this.size/3;super.applyPath(c,cZ.moves)}};mM.className="Plus",mM.moves=[{x:-.5,y:-.5,t:"move"},{x:0,y:-1},{x:1,y:0},{x:0,y:1},{x:1,y:0},{x:0,y:1},{x:-1,y:0},{x:0,y:1},{x:-1,y:0},{x:0,y:-1},{x:-1,y:0},{x:0,y:-1}];var cT=mM,Tb=class extends Qs{updatePath(){let{path:l,x:c,y}=this,I=this.size/2;l.clear(),l.moveTo(this.align(c-I),this.align(y-I)),l.lineTo(this.align(c+I),this.align(y-I)),l.lineTo(this.align(c+I),this.align(y+I)),l.lineTo(this.align(c-I),this.align(y+I)),l.closePath()}};Tb.className="Square";var _D=class extends Qs{updatePath(){let{x:l,y:c,path:y,size:I}=this,O=5,j=I/2,H=j/2,K=Math.PI/2;y.clear();for(let Z=0;Z<O*2;Z++){let te=Z%2===0?j:H,se=Z*Math.PI/O-K,ge=l+Math.cos(se)*te,Se=c+Math.sin(se)*te;y.lineTo(ge,Se)}y.closePath()}};_D.className="Star";var fM=class dZ extends Qs{updatePath(){let c=this.size*1.1;super.applyPath(c,dZ.moves)}};fM.className="Triangle",fM.moves=[{x:0,y:-.48,t:"move"},{x:.5,y:.87},{x:-1,y:0}];var wg=fM,vM={circle:Cg,cross:Sg,diamond:Ep,heart:uL,pin:pM,plus:cT,square:Tb,star:_D,triangle:wg},FD=Object.keys(vM);function Nv(l){return typeof l=="string"&&FD.includes(l)}function Rb(l){return class extends Qs{updatePath(){let{path:y,x:I,y:O,size:j}=this;l({path:y,x:I,y:O,size:j})}}}function Hd(l="square"){return Nv(l)?vM[l]:typeof l=="function"?Rb(l):Tb}function zv(l,c,y=c*(5/3)){var Z,te;let I=new Mn,O=Math.min(l.marker.strokeWidth,2),j=Math.min((te=(Z=l.line)==null?void 0:Z.strokeWidth)!=null?te:0,2),H=Math.max(l.marker.enabled===!1?0:c,l.line==null?0:y),K=Math.max(l.marker.enabled===!1?0:c,j);if(l.line!=null){let{stroke:se,strokeOpacity:ge,lineDash:Se}=l.line,Ce=new ns;Ce.x1=0,Ce.y1=K/2,Ce.x2=H,Ce.y2=K/2,Ce.stroke=se,Ce.strokeOpacity=ge,Ce.strokeWidth=j,Ce.lineDash=Se,I.append(Ce)}if(l.marker.enabled!==!1){let{shape:se,fill:ge,fillOpacity:Se,stroke:Ce,strokeOpacity:Pe}=l.marker,Ge=Hd(se),We=new Ge,{center:He}=Ge;We.size=c,We.translationX=H/2+(He.x-.5)*c,We.translationY=K/2+(He.y-.5)*c,We.fill=ge,We.fillOpacity=Se,We.stroke=Ce,We.strokeOpacity=Pe,We.strokeWidth=O;let Ze=H/2+(He.x-.5)*c,it=K/2+(He.y-.5)*c;if(typeof se=="string"){let qe=c/(c+O);We.translationX=Ze,We.translationY=it,We.scalingX=qe,We.scalingY=qe}else{let qe=We.getBBox(),rt=Math.min(H/(qe.width+O),K/(qe.height+O),1);We.translationX=Ze*rt-qe.x*rt+(H-qe.width*rt)/2,We.translationY=it*rt-qe.y*rt+(K-qe.height*rt)/2,We.scalingX=rt,We.scalingY=rt}I.append(We)}return Mn.toSVG(I,H,K)}var Pb=.1,ND=200,tS=12,zD=.5,iS=class extends as{constructor(){super(...arguments),this.x1=NaN,this.y1=NaN,this.x=NaN,this.y=NaN,this.vx=0,this.vy=0,this.t0=NaN,this.animationFrameHandle=void 0}reset(){this.x=NaN,this.y=NaN,this.animationFrameHandle!=null&&(cancelAnimationFrame(this.animationFrameHandle),this.animationFrameHandle=void 0)}update(l,c){if(Number.isNaN(this.x)||Number.isNaN(this.y)){this.x=l,this.y=c,this.vx=0,this.vy=0,this.emitUpdate(),this.animationFrameHandle!=null&&(cancelAnimationFrame(this.animationFrameHandle),this.animationFrameHandle=void 0);return}this.x1=l,this.y1=c,this.t0=Date.now(),this.animationFrameHandle==null&&(this.animationFrameHandle=requestAnimationFrame(this.onFrame.bind(this)))}onFrame(){this.animationFrameHandle=void 0;let{x1:l,y1:c,t0:y}=this,I=Date.now(),O=I-y;this.t0=I;let j=.001,H=Math.ceil(O/(j*1e3))|0,{x:K,y:Z,vx:te,vy:se}=this;for(let ge=0;ge<H;ge+=1){let Se=K-l,Ce=Z-c,Pe=-(ND*Se+tS*te)/Pb,Ge=-(ND*Ce+tS*se)/Pb;te+=Pe*j,se+=Ge*j,K+=te*j,Z+=se*j}Math.hypot(K-l,Z-c)<zD?(this.x=this.x1,this.y=this.y1,this.vx=0,this.vy=0):(this.x=K,this.y=Z,this.vx=te,this.vy=se,this.animationFrameHandle=requestAnimationFrame(this.onFrame.bind(this))),this.emitUpdate()}emitUpdate(){this.dispatch("update",{type:"update",x:this.x,y:this.y})}},xl="ag-charts-tooltip",Lb="ag-charts-tooltip--dark";function BD(l){var y;if(typeof l=="string")return"";let c=[];return l.heading!=null&&c.push(l.heading),l.title!=null&&c.push(l.title),(y=l.data)==null||y.forEach(I=>{var O;c.push((O=I.label)!=null?O:I.fallbackLabel,I.value)}),c.join("; ")}function Ru(l,c,y){let I="";l==null?I+=`<span class="${xl}-label">${Ib(c)}</span>`:(I+=`<span class="${xl}-label">${Ib(l)}</span>`,I+=" ",I+=`<span class="${xl}-value">${Ib(c)}</span>`);let O=[`${xl}-row`];return y&&O.push(`${xl}-row--inline`),I=`<div class="${O.join(" ")}">${I}</div>`,I}function Zm(l){var y,I,O,j,H;if(typeof l=="string")return l;let c="";if((l.heading==null||l.title==null)&&((y=l.data)==null?void 0:y.length)===1&&l.data[0].label==null&&l.data[0].value!=null){let K=l.data[0];c+=Ru((I=l.heading)!=null?I:l.title,K.value,!1)}else{let K=l.title==null&&((O=l.data)==null?void 0:O.length)===1;l.heading!=null&&(c+=`<span class="${xl}-heading">${Ib(l.heading)}</span>`,c+=" ");let Z=l.symbol==null?void 0:zv(l.symbol,12);Z!=null&&(l.title!=null||(j=l.data)!=null&&j.length)&&(c+=`<span class="${xl}-symbol">${Z}</span>`),l.title!=null&&(c+=`<span class="${xl}-title">${Ib(l.title)}</span>`,c+=" "),(H=l.data)==null||H.forEach(te=>{var se;c+=Ru((se=te.label)!=null?se:te.fallbackLabel,te.value,K),c+=" "})}return c=`<div class="${xl}-content">${c.trimEnd()}</div>`,c}var $m=class extends un{constructor(){super(...arguments),this.type="pointer",this.xOffset=0,this.yOffset=0}};D([Je(wa(["pointer","node","top","right","bottom","left","top-left","top-right","bottom-right","bottom-left",{value:"sparkline",undocumented:!0},{value:"sparkline-",undocumented:!0}],"a position type"))],$m.prototype,"type",2),D([Je(Vn)],$m.prototype,"xOffset",2),D([Je(Vn)],$m.prototype,"yOffset",2);var Fh=class extends un{constructor(){super(),this.enabled=!0,this.delay=0,this.range=void 0,this.wrapping="hyphenate",this.position=new $m,this.darkTheme=!1,this.bounds="extended",this.destroyFns=[],this.springAnimation=new iS,this.enableInteraction=!1,this.wrapTypes=["always","hyphenate","on-space","never"],this.showTimeout=0,this._showArrow=!0,this._compact=!1,this._visible=!1,this.positionParams=void 0,this.destroyFns.push(this.springAnimation.addListener("update",this.updateTooltipPosition.bind(this)))}get interactive(){return this.enableInteraction}setup(l){"togglePopover"in ca().HTMLElement.prototype&&(this.element=l.addChild("canvas-overlay",xl),this.element.setAttribute("popover","manual"),this.element.className=xl)}destroy(l){l.removeChild("canvas-overlay",xl)}isVisible(){return this._visible}updateTooltipPosition(){var rt,dt,mt,yt,Lt,Ht,qt,ri;let{element:l,positionParams:c}=this;if(l==null||c==null)return;let{canvasRect:y,relativeRect:I,meta:O}=c,{x:j,y:H}=this.springAnimation,K=(dt=(rt=O.position)==null?void 0:rt.type)!=null?dt:this.position.type,Z=(yt=(mt=O.position)==null?void 0:mt.xOffset)!=null?yt:0,te=(Ht=(Lt=O.position)==null?void 0:Lt.yOffset)!=null?Ht:0,se=I.x,ge=I.y,Se=I.width-l.clientWidth-1+se,Ce=I.height-l.clientHeight+ge,Pe=this.getTooltipBounds({positionType:K,canvasX:j,canvasY:H,yOffset:te,xOffset:Z,canvasRect:y}),Ge=uM(l.clientWidth,l.clientHeight,I,Pe);K==="sparkline"&&(Ge.x<=se||Ge.x>=Se)&&(Pe=this.getTooltipBounds({positionType:"sparkline-constrained",canvasX:j,canvasY:H,yOffset:te,xOffset:Z,canvasRect:y}),Ge=uM(l.clientWidth,l.clientHeight,I,Pe));let We=Ae(se,Ge.x,Se),He=Ae(ge,Ge.y,Ce),Ze=We!==Ge.x||He!==Ge.y,it=(K==="node"||K==="pointer")&&!Ze&&!Z&&!te,qe=(ri=(qt=O.showArrow)!=null?qt:this.showArrow)!=null?ri:it;this.updateShowArrow(qe),this.updateCompact(K==="sparkline"||K==="sparkline-constrained"),l.style.transform=`translate(${We}px, ${He}px)`}show(l,c,y,I,O=!1){let{element:j}=this;if(j!=null&&I!=null)j.innerHTML=Zm(I);else if(j==null||j.innerHTML===""){this.toggle(!1);return}let H={x:l.x-c.x,y:l.y-c.y,width:l.width,height:l.height};this.positionParams={canvasRect:c,relativeRect:H,meta:y},this.springAnimation.update(y.canvasX,y.canvasY),j.style.top=`${c.top}px`,j.style.left=`${c.left}px`,y.enableInteraction?(this.enableInteraction=!0,j.style.pointerEvents="auto",j.removeAttribute("aria-hidden")):(this.enableInteraction=!1,j.style.pointerEvents="none",j.setAttribute("aria-hidden","true")),this.delay>0&&!O?(this.toggle(!1),this.showTimeout=setTimeout(()=>{this.toggle(!0)},this.delay)):this.toggle(!0)}hide(){this.springAnimation.reset(),this.toggle(!1)}toggle(l){var I;if(!((I=this.element)!=null&&I.isConnected))return;this._visible=l;let{classList:c}=this.element,y=(O,j)=>c.toggle(`${xl}--${O}`,j);l||clearTimeout(this.showTimeout),y("no-interaction",!this.enableInteraction),y("arrow",this._showArrow),y("compact",this._compact),c.toggle(Lb,this.darkTheme),this.element.togglePopover(l),l&&this.updateTooltipPosition();for(let O of this.wrapTypes)c.toggle(`${xl}--wrap-${O}`,O===this.wrapping)}updateShowArrow(l){this._showArrow=l}updateCompact(l){this._compact=l}getTooltipBounds(l){if(!this.element)return{};let{positionType:c,canvasX:y,canvasY:I,yOffset:O,xOffset:j,canvasRect:H}=l,{clientWidth:K,clientHeight:Z}=this.element,te={width:K,height:Z};switch(c){case"node":case"pointer":return te.top=I+O-Z-8,te.left=y+j-K/2,te;case"top":return te.top=O,te.left=H.width/2-K/2+j,te;case"right":return te.top=H.height/2-Z/2+O,te.left=H.width-K/2+j,te;case"left":return te.top=H.height/2-Z/2+O,te.left=j,te;case"bottom":return te.top=H.height-Z+O,te.left=H.width/2-K/2+j,te;case"top-left":return te.top=O,te.left=j,te;case"top-right":return te.top=O,te.left=H.width-K+j,te;case"bottom-right":return te.top=H.height-Z+O,te.left=H.width-K+j,te;case"bottom-left":return te.top=H.height-Z+O,te.left=j,te;case"sparkline":return te.top=I+O-Z/2,te.left=y+j+8,te;case"sparkline-constrained":return te.top=I+O-Z/2,te.left=y+j-8-K,te}}};D([Je(Zi)],Fh.prototype,"enabled",2),D([Je(Zi,{optional:!0})],Fh.prototype,"showArrow",2),D([Je(Fi)],Fh.prototype,"delay",2),D([Je(hp,{optional:!0})],Fh.prototype,"range",2),D([Je(Hy)],Fh.prototype,"wrapping",2),D([Je(Gi)],Fh.prototype,"position",2),D([Je(Zi)],Fh.prototype,"darkTheme",2),D([Je(wa(["extended","canvas"]))],Fh.prototype,"bounds",2);function Pu(l,c,y,I){var H;let O=[...l].reverse(),j;for(let K of O){if(!K.visible||!K.contentGroup.visible)continue;let{match:Z,distance:te}=(H=K.pickNode(c,y,I))!=null?H:{};if(!(!Z||te==null)&&((!j||j.distance>te)&&(j={series:K,distance:te,datum:Z}),te===0))break}return j}function nS(l,c){if(l==null||c.length===0)return[!1,!1];let y=l.valueOf(),I=c[0],O=c[c.length-1];if(typeof I=="string")return[y===I,y===O];let j=I.valueOf(),H=O.valueOf();return j>H&&([j,H]=[H,j]),[y===j,y===H]}function Ip(l,c,y,I,O){let{xValue:j,yValue:H}=l,[K,Z]=nS(H,O),[te,se]=nS(j,I);return{datum:l,xKey:c,yKey:y,xValue:j,yValue:H,first:te,last:se,min:K,max:Z}}function aS(l,[c,y],I){var H,K;let O=(H=Dm(0,l-1,Z=>{var se;let te=(se=I(Z))==null?void 0:se[1];return!Number.isFinite(te)||te>c}))!=null?H:0,j=(K=hx(0,l-1,Z=>{var se;let te=(se=I(Z))==null?void 0:se[0];return!Number.isFinite(te)||te<y}))!=null?K:l-1;return j=Math.min(j+1,l),[O,j]}var yM=class extends da{constructor(l){super(),this.chart=l,this.id=U(this),this.series=[],this.highlight={pendingHoverEvent:void 0,appliedHoverEvent:void 0,stashedHoverEvent:void 0},this.tooltip={lastHover:void 0},this.hoverDevice="mouse",this.focus={sortedSeries:[],series:void 0,seriesIndex:0,datumIndex:0,datum:void 0},this.hoverScheduler=ub(()=>{if(!(!this.tooltip.lastHover&&!this.highlight.pendingHoverEvent)){if(this.chart.getUpdateType()<=4){this.hoverScheduler.schedule();return}this.highlight.pendingHoverEvent&&this.handleHoverHighlight(!1),this.tooltip.lastHover&&this.handleHoverTooltip(this.tooltip.lastHover,!1)}});let c=41,y=34,I=63,{domManager:O}=l.ctx,j="series-area",H=O.addChild(j,"series-area-aria-label1"),K=O.addChild(j,"series-area-aria-label2");this.seriesWidget=new qs(O.getParent(j)),this.chartWidget=new qs(O.getParent("canvas-proxy")),this.containerWidget=new qs(O.getParent("canvas-container")),l.ctx.regionManager.initRegions(this.containerWidget,this.seriesWidget),this.swapChain=new sT(H,K,this.id,"img"),this.swapChain.addListener("blur",()=>this.onBlur(y)),this.swapChain.addListener("focus",()=>this.onFocus(y)),this.focusIndicator=new Dp(this.swapChain),this.focusIndicator.overrideFocusVisible(l.mode==="integrated"?!1:void 0),this.chart.ctx.keyNavManager.focusIndicator=this.focusIndicator;let Z=l.ctx.regionManager.getRegion("series");this.destroyFns.push(()=>l.ctx.domManager.removeChild(j,"series-area-aria-label1"),()=>l.ctx.domManager.removeChild(j,"series-area-aria-label2"),Z.addListener("drag",te=>this.onHoverLikeEvent(te),c),Z.addListener("hover",te=>this.onHover(te),c),Z.addListener("leave",()=>this.onLeave(),c),l.ctx.animationManager.addListener("animation-start",()=>this.clearAll()),l.ctx.domManager.addListener("resize",()=>this.clearAll()),l.ctx.highlightManager.addListener("highlight-change",te=>this.changeHighlightDatum(te)),l.ctx.keyNavManager.addListener("nav-hori",te=>this.onNavHori(te),y),l.ctx.keyNavManager.addListener("nav-vert",te=>this.onNavVert(te),y),l.ctx.keyNavManager.addListener("submit",te=>this.onSubmit(te),y),l.ctx.layoutManager.addListener("layout:complete",te=>this.layoutComplete(te)),l.ctx.regionManager.listenAll("contextmenu",te=>this.onContextMenu(te),I),l.ctx.regionManager.listenAll("click",te=>this.onClick(te)),l.ctx.regionManager.listenAll("dblclick",te=>this.onClick(te)),l.ctx.updateService.addListener("pre-scene-render",()=>this.preSceneRender()),l.ctx.zoomManager.addListener("zoom-change",()=>this.clearAll()),l.ctx.zoomManager.addListener("zoom-pan-start",()=>this.clearAll()))}dataChanged(){var c;var l;(c=(l=this.highlight).stashedHoverEvent)!=null||(l.stashedHoverEvent=this.highlight.appliedHoverEvent),this.chart.ctx.tooltipManager.removeTooltip(this.id),this.focusIndicator.updateBounds(void 0),this.clearHighlight()}preSceneRender(){this.focusIndicator.isFocusVisible()&&this.handleSeriesFocus(0,0,!0),this.highlight.stashedHoverEvent!=null&&(this.highlight.pendingHoverEvent=this.highlight.stashedHoverEvent,this.highlight.stashedHoverEvent=void 0,this.handleHoverHighlight(!0)),this.tooltip.lastHover!=null&&this.handleHoverTooltip(this.tooltip.lastHover,!0)}update(l,c){this.chart.ctx.updateService.update(l,c)}seriesChanged(l){this.focus.sortedSeries=[...l].sort((c,y)=>{var j,H;let I=(j=c.properties.focusPriority)!=null?j:1/0,O=(H=y.properties.focusPriority)!=null?H:1/0;return I===O&&([I,O]=[c._declarationOrder,y._declarationOrder]),I<O?-1:I>O?1:0}),this.series=l}layoutComplete(l){this.seriesRect=l.series.rect,this.hoverRect=l.series.paddedRect,this.seriesWidget.setBounds(l.series.paddedRect),this.chartWidget.setBounds(l.chart)}onContextMenu(l){let{Default:c,ContextMenu:y}=Ox;if(l.region==="root"){this.chart.ctx.interactionManager.getState()&(c|y)&&this.chart.ctx.contextMenuRegistry.dispatchContext("all",l,{});return}let I,O;if(this.focusIndicator.isFocusVisible())I=this.chart.ctx.highlightManager.getActiveHighlight(),I&&this.seriesRect&&I.midPoint&&(O=fr.toCanvasPoint(I.series.contentGroup,I.midPoint.x,I.midPoint.y));else if(this.chart.ctx.interactionManager.getState()&(c|y)){let H=Pu(this.series,{x:l.regionX,y:l.regionY},"context-menu");H&&(this.chart.ctx.highlightManager.updateHighlight(this.id),I=H.datum)}let j=I==null?void 0:I.series;this.clearAll(),this.chart.ctx.contextMenuRegistry.dispatchContext("series-area",l,{pickedSeries:j,pickedNode:I},O)}onLeave(){this.chart.ctx.cursorManager.updateCursor(this.id),this.focusIndicator.isFocusVisible()||this.clearAll()}onHover(l){this.hoverDevice="mouse",this.onHoverLikeEvent(l)}onHoverLikeEvent(l){if(Oi(l,"drag")&&(this.tooltip.lastHover=l),this.highlight.pendingHoverEvent=l,this.hoverScheduler.schedule(),this.chart.ctx.interactionManager.getState()===32){let{regionX:c,regionY:y}=l,I=Pu(this.series,{x:c,y},"event");I!=null&&I.series.hasEventListener("nodeClick")||I!=null&&I.series.hasEventListener("nodeDoubleClick")?this.chart.ctx.cursorManager.updateCursor(this.id,"pointer"):this.chart.ctx.cursorManager.updateCursor(this.id)}}onClick(l){var y;if(this.hoverDevice="mouse",this.onHoverLikeEvent(l),(y=this.seriesRect)!=null&&y.containsPoint(l.canvasX,l.canvasY)&&this.checkSeriesNodeClick(l)){this.update(4),l.preventDefault();return}let c={type:l.type==="click"?"click":"doubleClick",event:l.sourceEvent};this.chart.fireEvent(c)}onFocus(l){this.chart.ctx.interactionManager.getState()&l&&(this.hoverDevice=this.focusIndicator.isFocusVisible()?"keyboard":"mouse",this.handleFocus(0,0))}onBlur(l){this.chart.ctx.interactionManager.getState()&l&&(this.hoverDevice="mouse",this.clearAll(),this.focusIndicator.overrideFocusVisible(void 0))}onNavVert(l){this.hoverDevice="keyboard",this.focus.seriesIndex+=l.delta,this.handleFocus(l.delta,0),l.preventDefault()}onNavHori(l){this.hoverDevice="keyboard",this.focus.datumIndex+=l.delta,this.handleFocus(0,l.delta),l.preventDefault()}onSubmit(l){let{series:c,datum:y}=this.focus,I=l.sourceEvent.sourceEvent;c!==void 0&&y!==void 0?c.fireNodeClickEvent(I,y):this.chart.fireEvent({type:"click",event:I}),l.preventDefault()}checkSeriesNodeClick(l){let c={x:l.regionX,y:l.regionY};l.region!=="series"&&(c=fr.fromCanvasPoint(this.chart.seriesRoot,l.canvasX,l.canvasY));let y=Pu(this.series,c,"event");return y==null?!1:l.type==="click"?(y.series.fireNodeClickEvent(l.sourceEvent,y.datum),!0):l.type==="dblclick"?(l.preventZoomDblClick=y.distance===0,y.series.fireNodeDoubleClickEvent(l.sourceEvent,y.datum),!0):!1}handleFocus(l,c){let y=this.chart.overlays.getFocusInfo(this.chart.ctx.localeManager);y==null?this.handleSeriesFocus(l,c):this.focusIndicator.updateBounds(new ft(0,0,y.rect.width,y.rect.height))}handleSeriesFocus(l,c,y=!1){if(this.chart.chartType==="hierarchy"){this.handleHierarchySeriesFocus(l,c,y);return}let{focus:I,seriesRect:O}=this,j=I.sortedSeries.filter(te=>te.visible);if(j.length===0)return;I.seriesIndex=Ae(0,I.seriesIndex,j.length-1),I.series=j[I.seriesIndex];let{datumIndex:H,seriesIndex:K}=I,Z=I.series.pickFocus({datumIndex:H,datumIndexDelta:c,otherIndex:K,otherIndexDelta:l,seriesRect:O});this.updatePickedFocus(Z,y)}handleHierarchySeriesFocus(l,c,y){this.focus.series=this.focus.sortedSeries[0];let{focus:{series:I,seriesIndex:O,datumIndex:j},seriesRect:H}=this;if(I==null)return;let K=I.pickFocus({datumIndex:j,datumIndexDelta:c,otherIndex:O,otherIndexDelta:l,seriesRect:H});this.updatePickedFocus(K,y)}updatePickedFocus(l,c){let{focus:y,hoverRect:I,seriesRect:O}=this;if(l===void 0||y.series===void 0||I===void 0)return;let{datum:j,datumIndex:H}=l;if(y.datumIndex=H,y.datum=j,this.focusIndicator.isFocusVisible()&&this.chart.ctx.animationManager.reset(),this.focusIndicator.isFocusVisible()){let Z=dM(l);if(O!=null){let ge=Z.clone();ge.x+=O.x,ge.y+=O.y,Z=ge}let{x:te,y:se}=Z.computeCenter();I.containsPoint(te,se)||this.chart.ctx.zoomManager.panToBBox(this.id,I,Z)}dL(O!=null?new ft(0,0,O.width,O==null?void 0:O.height):void 0,this.focusIndicator,l,O==null?void 0:O.x,O==null?void 0:O.y);let K=Db(I,l);if(K!==void 0&&this.hoverDevice==="keyboard"){this.tooltip.lastHover=void 0,this.highlight.appliedHoverEvent=void 0,this.highlight.pendingHoverEvent=void 0,this.highlight.stashedHoverEvent=void 0;let Z=y.series.getTooltipContent(j),te=ec.makeTooltipMeta(K,j);this.chart.ctx.highlightManager.updateHighlight(this.id,j),this.chart.ctx.tooltipManager.updateTooltip(this.id,te,Z),c||this.swapChain.update(this.getDatumAriaText(j,Z))}}getDatumAriaText(l,c){var I,O,j;let y=c==null?"":BD(c);return this.chart.ctx.localeManager.t("ariaAnnounceHoverDatum",{datum:(j=(O=(I=l.series).getDatumAriaText)==null?void 0:O.call(I,l,y))!=null?j:y})}clearHighlight(){this.highlight.pendingHoverEvent=void 0,this.highlight.appliedHoverEvent=void 0,this.chart.ctx.highlightManager.updateHighlight(this.id)}clearTooltip(){this.chart.ctx.tooltipManager.removeTooltip(this.id),this.tooltip.lastHover=void 0}clearAll(){this.clearHighlight(),this.clearTooltip(),this.focusIndicator.updateBounds(void 0)}handleHoverHighlight(l){var te;this.highlight.appliedHoverEvent=this.highlight.pendingHoverEvent,this.highlight.pendingHoverEvent=void 0;let c=this.highlight.appliedHoverEvent;if(!c)return;let y=this.chart.ctx.interactionManager.getState();if(y!==32&&y!==8&&y!==1)return;let{canvasX:I,canvasY:O}=c;if(l?this.chart.ctx.animationManager.isActive():!((te=this.hoverRect)!=null&&te.containsPoint(I,O))){this.clearHighlight();return}let j={x:c.regionX,y:c.regionY};c.region!=="series"&&(j=fr.fromCanvasPoint(this.chart.seriesRoot,I,O));let{range:H}=this.chart.highlight,K=H==="tooltip"?"highlight-tooltip":"highlight",Z=Pu(this.series,j,K);if(Z){this.chart.ctx.highlightManager.updateHighlight(this.id,Z.datum),this.hoverDevice="mouse";return}this.chart.ctx.highlightManager.updateHighlight(this.id)}handleHoverTooltip(l,c){var Ce;let y=this.chart.ctx.interactionManager.getState();if(y!==32&&y!==8&&y!==1)return;let{canvasX:I,canvasY:O,regionX:j,regionY:H}=l,K=l.sourceEvent.target;if(c?this.chart.ctx.animationManager.isActive():!((Ce=this.hoverRect)!=null&&Ce.containsPoint(I,O))){this.hoverDevice=="mouse"&&this.clearTooltip();return}if(K&&this.chart.tooltip.interactive&&this.chart.ctx.domManager.isManagedChildDOMElement(K,"canvas-overlay",xl))return;let Z={x:j,y:H};l.region!=="series"&&(Z=fr.fromCanvasPoint(this.chart.seriesRoot,I,O));let te=Pu(this.series,Z,"tooltip");if(!te){this.hoverDevice=="mouse"&&this.clearTooltip();return}this.hoverDevice="mouse";let se=te.series.getTooltipContent(te.datum);if(this.chart.tooltip.enabled&&te.series.tooltipEnabled&&se!=null){let Pe=ec.makeTooltipMeta(l,te.datum);this.chart.ctx.tooltipManager.updateTooltip(this.id,Pe,se)}}changeHighlightDatum(l){var K,Z;let c=new Set,{series:y=void 0,datum:I}=(K=l.currentHighlight)!=null?K:{},{series:O=void 0,datum:j}=(Z=l.previousHighlight)!=null?Z:{};O&&c.add(O),y&&c.add(y),O!=null&&O.properties.cursor&&j&&this.chart.ctx.cursorManager.updateCursor(O.id),y!=null&&y.properties.cursor&&(y==null?void 0:y.properties.cursor)!=="default"&&I&&this.chart.ctx.cursorManager.updateCursor(y.id,y.properties.cursor),y==null||O==null?this.update(4):this.update(4,{seriesToUpdate:c})}},bM=30,CM=class{constructor(l){this.seriesRoot=l,this.groups=new Map,this.series=new Map,this.expectedSeriesCount=1,this.mode="normal"}setSeriesCount(l){this.expectedSeriesCount=l}requestGroup(l){var se;let{internalId:c,type:y,contentGroup:I,seriesGrouping:O}=l,{groupIndex:j=c}=O!=null?O:{},H=this.series.get(c);if(H!=null)throw new Error(`AG Charts - series already has an allocated layer: ${JSON.stringify(H)}`);this.series.size===0&&(this.mode=this.expectedSeriesCount>=bM?"aggressive-grouping":"normal");let K=this.groups.get(y);K==null&&(K=new Map,this.groups.set(y,K));let Z=this.lookupIdx(j),te=K.get(Z);return te==null&&(te={type:y,id:Z,seriesIds:[],group:this.seriesRoot.appendChild(new Mn({name:`${(se=l.contentGroup.name)!=null?se:y}-managed-layer`,zIndex:l.contentGroup.zIndex,renderToOffscreenCanvas:!1}))},K.set(Z,te)),this.series.set(c,{layerState:te,seriesConfig:l}),te.seriesIds.push(c),te.group.appendChild(I),te.group}changeGroup(l){var K,Z;let{internalId:c,seriesGrouping:y,type:I,contentGroup:O,oldGrouping:j}=l,{groupIndex:H=c}=y!=null?y:{};(Z=(K=this.groups.get(I))==null?void 0:K.get(H))!=null&&Z.seriesIds.includes(c)||(this.series.has(c)&&this.releaseGroup({internalId:c,seriesGrouping:j,type:I,contentGroup:O}),this.requestGroup(l))}releaseGroup(l){var j,H,K;let{internalId:c,contentGroup:y,type:I}=l;if(!this.series.has(c))throw new Error(`AG Charts - series doesn't have an allocated layer: ${c}`);let O=(j=this.series.get(c))==null?void 0:j.layerState;O&&(O.seriesIds=O.seriesIds.filter(Z=>Z!==c),O.group.removeChild(y)),(O==null?void 0:O.seriesIds.length)===0?(this.seriesRoot.removeChild(O.group),(H=this.groups.get(O.type))==null||H.delete(O.id),(K=this.groups.get(I))==null||K.delete(c)):O!=null&&O.seriesIds.length>0&&(O.group.zIndex=this.getLowestSeriesZIndex(O.seriesIds)),this.series.delete(c)}updateLayerCompositing(){this.groups.forEach(l=>{l.forEach(c=>{let{group:y,seriesIds:I}=c,O;if(I.length===0)O=!1;else if(I.length>1)O=!0;else{let j=this.series.get(I[0]);O=(j==null?void 0:j.seriesConfig.renderToOffscreenCanvas())===!0}y.renderToOffscreenCanvas=O,y.zIndex=this.getLowestSeriesZIndex(I)})})}lookupIdx(l){return this.mode==="normal"?l:typeof l=="string"&&(l=Number(l.split("-").at(-1)),!l)?0:Math.floor(Ae(0,l/this.expectedSeriesCount,1)*bM)}destroy(){this.groups.forEach(l=>{l.forEach(c=>{this.seriesRoot.removeChild(c.group)})}),this.groups.clear(),this.series.clear()}getLowestSeriesZIndex(l){let c=l.reduce((y,I)=>{let O=this.series.get(I),j=O==null?void 0:O.seriesConfig.contentGroup.zIndex;return y==null||j==null?j:vx(y,j)<=0?y:j},void 0);return c!=null?c:1}},hL=class{constructor(l,c,y,I,O){this.chart=l,this.dataService=c,this.updateService=y,this.zoomManager=I,this.animationManager=O,this.dirtyZoom=!1,this.dirtyDataSource=!1,this.lastAxisZooms=new Map,this.destroyFns=[],this.destroyFns.push(this.dataService.addListener("data-source-change",()=>this.onDataSourceChange()),this.dataService.addListener("data-load",()=>this.onDataLoad()),this.dataService.addListener("data-error",()=>this.onDataError()),this.updateService.addListener("update-complete",()=>this.onUpdateComplete()),this.zoomManager.addListener("zoom-change",()=>this.onZoomChange()))}destroy(){this.destroyFns.forEach(l=>l())}onDataLoad(){this.animationManager.skip(),this.updateService.update(1)}onDataError(){this.updateService.update(3)}onDataSourceChange(){this.dirtyDataSource=!0}onUpdateComplete(){!this.dirtyZoom&&!this.dirtyDataSource||this.updateWindow()}onZoomChange(){this.dirtyZoom=!0}updateWindow(){if(!this.dataService.isLazy())return;let l=this.getValidAxis(),c,y=!0;if(l){let I=this.zoomManager.getAxisZoom(l.id);c=this.getAxisWindow(l,I),y=this.shouldRefresh(l,I)}this.dirtyZoom=!1,this.dirtyDataSource=!1,y&&this.dataService.load({windowStart:c==null?void 0:c.min,windowEnd:c==null?void 0:c.max})}getValidAxis(){return this.chart.axes.find(l=>l.type==="time")}shouldRefresh(l,c){if(this.dirtyDataSource)return!0;if(!this.dirtyZoom)return!1;let y=this.lastAxisZooms.get(l.id);return y&&c.min===y.min&&c.max===y.max?!1:(this.lastAxisZooms.set(l.id,c),!0)}getAxisWindow(l,c){var H,K;let y=(K=(H=l.scale).getDomain)==null?void 0:K.call(H);if(!c||!y||y.length===0||isNaN(Number(y[0])))return;let I=Number(y[1])-Number(y[0]),O=new Date(Number(y[0])+I*c.min),j=new Date(Number(y[0])+I*c.max);return{min:O,max:j}}},Tp=/^((?!chrome|android).)*safari/i,Ob=/Version\/(\d+(\.\d+)?)/,SM=/Chrome/,oS=/Chrome\/(\d+)/,wM=/Edg/,dT=/OPR/;function gL(){var c,y,I,O;let{userAgent:l}=ca().navigator;if(Tp.test(l)){let j=parseFloat((y=(c=Ob.exec(l))==null?void 0:c[1])!=null?y:"0"),H=Math.floor(j)>16;return H||Pi.warnOnce(`Unsupported Safari version: ${j} ; ${l}`),!H}else if(SM.test(l)&&!wM.test(l)&&!dT.test(l)){let j=parseInt((O=(I=oS.exec(l))==null?void 0:I[1])!=null?O:"0",10),H=j>126;return H||Pi.warnOnce(`Unsupported Chrome version: ${j} ; ${l}`),!H}return!1}var rS=class{constructor(l,c,y,I,O,j,H){this.chartLike=l,this.overlays=c,this.dataService=y,this.layoutManager=I,this.localeManager=O,this.animationManager=j,this.domManager=H,this.destroyFns=[],this.overlayElem=this.domManager.addChild("canvas-overlay","overlay"),this.overlayElem.role="status",this.overlayElem.ariaAtomic="false",this.overlayElem.ariaLive="polite",this.overlayElem.classList.toggle(wl),this.destroyFns.push(this.layoutManager.addListener("layout:complete",K=>this.onLayoutComplete(K)))}destroy(){this.destroyFns.forEach(l=>l()),this.domManager.removeStyles("overlays"),this.domManager.removeChild("canvas-overlay","overlay")}onLayoutComplete({series:{rect:l}}){let c=this.dataService.isLoading(),y=this.chartLike.series.some(te=>te.hasData),I=this.chartLike.series.some(te=>te.visible);this.overlays.darkTheme?this.overlayElem.classList.add(cM):this.overlayElem.classList.remove(cM),this.overlayElem.style.left=`${l.x}px`,this.overlayElem.style.top=`${l.y}px`,this.overlayElem.style.width=`${l.width}px`,this.overlayElem.style.height=`${l.height}px`;let O=c,j=!c&&!y,H=y&&!I,K=this.overlays.unsupportedBrowser.enabled&&gL();O?this.showOverlay(this.overlays.loading,l):this.hideOverlay(this.overlays.loading),j?this.showOverlay(this.overlays.noData,l):this.hideOverlay(this.overlays.noData),H?this.showOverlay(this.overlays.noVisibleSeries,l):this.hideOverlay(this.overlays.noVisibleSeries),K?this.showOverlay(this.overlays.unsupportedBrowser,l):this.hideOverlay(this.overlays.unsupportedBrowser);let Z=O||j||H||K;fo(this.overlayElem,"aria-hidden",!Z)}showOverlay(l,c){if(!l.enabled)return;let y=l.getElement(this.animationManager,this.localeManager,c);this.overlayElem.appendChild(y)}hideOverlay(l){l.removeElement(()=>{this.overlayElem.innerText="\xA0"},this.animationManager)}},Wd=Ua.create(!0,"opts"),Qm=class extends un{constructor(){super(...arguments),this.padding=new yp(0)}};D([Je(Zi,{optional:!0})],Qm.prototype,"clip",2),D([Je(Gi)],Qm.prototype,"padding",2);var xs=class uZ extends LI{constructor(c,y){var se,ge,Se,Ce,Pe;var I;super(),this.id=U(this),this.seriesRoot=new yl({name:`${this.id}-series-root`,zIndex:4}),this.annotationRoot=new yl({name:`${this.id}-annotation-root`,zIndex:8}),this.titleGroup=new Mn({name:"titles",zIndex:12}),this.debug=Ua.create(),this.extraDebugStats={},this.data=[],this._firstAutoSize=!0,this._autoSizeNotify=new zm,this.padding=new yp(20),this.seriesArea=new Qm,this.keyboard=new Z0,this.mode="standalone",this.chartCaptions=new Pa,this.suppressFieldDotNotation=!1,this.destroyed=!1,this._destroyFns=[],this.skipSync=!1,this.chartAnimationPhase="initial",this.modulesManager=new ur,this.processors=[],this.queuedUserOptions=[],this.queuedChartOptions=[],this.firstApply=!0,this._pendingFactoryUpdatesCount=0,this._performUpdateSkipAnimations=!1,this._performUpdateNotify=new zm,this.performUpdateType=7,this.runningUpdateType=7,this.updateShortcutCount=0,this.seriesToUpdate=new Set,this.updateMutex=new BP,this.updateRequestors={},this.performUpdateTrigger=Ih(({count:Ge})=>{this.destroyed||this.updateMutex.acquire(async()=>{try{await this.performUpdate(Ge)}catch(We){Pi.error("update error",We)}}).catch(We=>Pi.errorOnce(We))}),this._performUpdateSplits={},this.axes=[],this.series=[],this._cachedData=void 0,this.onSeriesNodeClick=Ge=>{this.fireEvent(et(pe({},Ge),{type:"seriesNodeClick"}))},this.onSeriesNodeDoubleClick=Ge=>{this.fireEvent(et(pe({},Ge),{type:"seriesNodeDoubleClick"}))},this.onSeriesVisibilityChange=Ge=>{this.fireEvent(Ge)},this.seriesGroupingChanged=Ge=>{if(!(Ge instanceof J0))return;let{series:We,seriesGrouping:He,oldGrouping:Ze}=Ge;We.contentGroup.isRoot()||this.seriesLayerManager.changeGroup({internalId:We.internalId,type:We.type,contentGroup:We.contentGroup,renderToOffscreenCanvas:()=>We.renderToOffscreenCanvas(),seriesGrouping:He,oldGrouping:Ze})},this.chartOptions=c;let O=y==null?void 0:y.scene,j=(ge=(se=y==null?void 0:y.container)!=null?se:c.processedOptions.container)!=null?ge:void 0,H=(Se=y==null?void 0:y.styleContainer)!=null?Se:c.specialOverrides.styleContainer,K=new Mn({name:"root"});K.visible=!1,K.append(this.seriesRoot),K.append(this.annotationRoot),K.append(this.titleGroup),this.titleGroup.append(this.title.node),this.titleGroup.append(this.subtitle.node),this.titleGroup.append(this.footnote.node),this.tooltip=new Fh,this.seriesLayerManager=new CM(this.seriesRoot),this.mode=(Ce=c.userOptions.mode)!=null?Ce:this.mode;let Z=this.ctx=new iL(this,{chartType:this.getChartType(),scene:O,root:K,container:j,styleContainer:H,syncManager:new rL(this),pixelRatio:c.specialOverrides.overrideDevicePixelRatio,updateCallback:(Ge,We)=>this.update(Ge,We),updateMutex:this.updateMutex});this._destroyFns.push(Z.domManager.addListener("resize",()=>this.parentResize(Z.domManager.containerSize))),this.overlays=new dd,(Pe=(I=this.overlays.loading).renderer)!=null||(I.renderer=()=>oT(this.overlays.loading.getText(Z.localeManager),Z.animationManager.defaultDuration)),this.processors=[new hL(this,Z.dataService,Z.updateService,Z.zoomManager,Z.animationManager),new rS(this,this.overlays,Z.dataService,Z.layoutManager,Z.localeManager,Z.animationManager,Z.domManager)],this.highlight=new MD,this.container=j;let te=this.getModuleContext();Z.domManager.setDataBoolean("animating",!1),this.seriesAreaManager=new yM(this.initSeriesAreaDependencies()),this._destroyFns.push(Z.layoutManager.registerElement(0,Ge=>{Ge.layoutBox.shrink(this.padding.toJson()),this.chartCaptions.positionCaptions(Ge)}),Z.layoutManager.addListener("layout:complete",Ge=>this.chartCaptions.positionAbsoluteCaptions(Ge)),Z.dataService.addListener("data-load",Ge=>{this.data=Ge.data}),this.title.registerInteraction(te,"beforebegin"),this.subtitle.registerInteraction(te,"beforebegin"),this.footnote.registerInteraction(te,"afterend"),Z.interactionManager.addListener("page-left",()=>this.destroy()),Z.animationManager.addListener("animation-frame",()=>{this.update(6)}),Z.animationManager.addListener("animation-start",()=>Z.domManager.setDataBoolean("animating",!0)),Z.animationManager.addListener("animation-stop",()=>Z.domManager.setDataBoolean("animating",!1)),Z.zoomManager.addListener("zoom-change",()=>{this.series.forEach(We=>{var He;return(He=We.animationState)==null?void 0:He.transition("updateData")});let Ge=this.chartAnimationPhase!=="initial";this.update(3,{forceNodeDataRefresh:!0,skipAnimations:Ge})})),this.parentResize(Z.domManager.containerSize)}static getInstance(c){return uZ.chartsInstances.get(c)}get canvasElement(){return this.ctx.scene.canvas.element}download(c,y){this.ctx.scene.download(c,y)}getCanvasDataURL(c){return this.ctx.scene.getDataURL(c)}toSVG(){return this.ctx.scene.toSVG()}getOptions(){var c;return(c=this.queuedUserOptions.at(-1))!=null?c:this.chartOptions.userOptions}getChartOptions(){var c;return(c=this.queuedChartOptions.at(-1))!=null?c:this.chartOptions}initSeriesAreaDependencies(){let{ctx:c,tooltip:y,highlight:I,overlays:O,seriesRoot:j,mode:H}=this,K=this.getChartType();return{fireEvent:this.fireEvent.bind(this),getUpdateType:()=>this.performUpdateType,chartType:K,ctx:c,tooltip:y,highlight:I,overlays:O,seriesRoot:j,mode:H}}getModuleContext(){return this.ctx}getCaptionText(){return[this.title,this.subtitle,this.footnote].filter(c=>c.enabled&&c.text).map(c=>c.text).join(". ")}getAriaLabel(){return this.ctx.localeManager.t("ariaAnnounceChart",{seriesCount:this.series.length})}resetAnimations(){this.chartAnimationPhase="initial";for(let c of this.series)c.resetAnimation(this.chartAnimationPhase);for(let c of this.axes)c.resetAnimation(this.chartAnimationPhase);this.animationRect=void 0,this.ctx.animationManager.reset()}skipAnimations(){this.ctx.animationManager.skipCurrentBatch(),this._performUpdateSkipAnimations=!0}detachAndClear(){this.container=void 0,this.ctx.scene.clear()}destroy(c){if(this.destroyed)return;let y=c==null?void 0:c.keepTransferableResources,I;return this.performUpdateType=7,this._destroyFns.forEach(O=>O()),this.processors.forEach(O=>O.destroy()),this.tooltip.destroy(this.ctx.domManager),this.overlays.destroy(),this.modulesManager.destroy(),y?(this.ctx.scene.strip(),I={container:this.container,scene:this.ctx.scene}):(this.ctx.scene.destroy(),this.container=void 0),this.destroySeries(this.series),this.seriesLayerManager.destroy(),this.axes.forEach(O=>O.destroy()),this.axes=[],this.animationRect=void 0,this.ctx.destroy(),this.destroyed=!0,Object.freeze(this),I}requestFactoryUpdate(c){this.destroyed||(this._pendingFactoryUpdatesCount++,this.updateMutex.acquire(async()=>{if(!this.destroyed)try{await c(this)}finally{this.destroyed||this._pendingFactoryUpdatesCount--}}).catch(y=>Pi.errorOnce(y)))}update(c=0,y){var K,Z;let{forceNodeDataRefresh:I=!1,skipAnimations:O,seriesToUpdate:j=this.series,newAnimationBatch:H}=y!=null?y:{};I&&this.series.forEach(te=>te.markNodeDataDirty());for(let te of j)this.seriesToUpdate.add(te);if(O&&(this.ctx.animationManager.skipCurrentBatch(),this._performUpdateSkipAnimations=!0),H&&this.ctx.animationManager.isActive()&&(this._performUpdateSkipAnimations=!0),this.skipSync=(K=y==null?void 0:y.skipSync)!=null?K:!1,this.debug.check()){let te=(Z=new Error().stack)!=null?Z:"<unknown>";te=te.replace(/\([^)]*/g,""),this.updateRequestors[te]=c}c<this.performUpdateType&&(this.performUpdateType=c,this.ctx.domManager.setDataBoolean("updatePending",!0),this.performUpdateTrigger.schedule(y==null?void 0:y.backOffMs))}async performUpdate(c){var se;let{performUpdateType:y,extraDebugStats:I,_performUpdateSplits:O,ctx:j}=this,H=[...this.seriesToUpdate];this.performUpdateType=7,this.seriesToUpdate.clear(),this.runningUpdateType=y,this.updateShortcutCount===0&&y<6&&(j.animationManager.startBatch(this._performUpdateSkipAnimations),j.animationManager.onBatchStop(()=>this.chartAnimationPhase="ready")),this.debug("Chart.performUpdate() - start",j0[y]);let K=performance.now();(se=O.start)!=null||(O.start=K);let Z=ge=>{var Se;(Se=O[ge])!=null||(O[ge]=0),O[ge]+=performance.now()-K,K=performance.now()};switch(y){case 0:if(this.checkUpdateShortcut(0))break;this.ctx.updateService.dispatchPreDomUpdate(),this.updateDOM();case 1:if(this.checkUpdateShortcut(1))break;await this.updateData(),Z("\u2B07\uFE0F");case 2:if(this.checkUpdateShortcut(2))break;await this.processData(),this.seriesAreaManager.dataChanged(),Z("\u{1F3ED}");case 3:if(await this.checkFirstAutoSize(),this.checkUpdateShortcut(3))break;await this.processLayout(),Z("\u2316");case 4:{if(this.checkUpdateShortcut(4))break;await this.updateSeries(H),Z("\u{1F914}"),this.updateAriaLabels(),this.seriesLayerManager.updateLayerCompositing()}case 5:if(this.checkUpdateShortcut(5))break;j.updateService.dispatchPreSceneRender(this.getMinRects()),Z("\u2196");case 6:if(this.checkUpdateShortcut(6))break;j.animationManager.endBatch(),I.updateShortcutCount=this.updateShortcutCount,j.scene.render({debugSplitTimes:O,extraDebugStats:I,seriesRect:this.seriesRect}),this.extraDebugStats={};for(let ge of Object.keys(O))delete O[ge];this.ctx.domManager.incrementDataCounter("sceneRenders");case 7:this.updateShortcutCount=0,this.updateRequestors={},this._performUpdateSkipAnimations=!1,j.animationManager.endBatch()}this.destroyed||(j.updateService.dispatchUpdateComplete(this.getMinRects()),this.ctx.domManager.setDataBoolean("updatePending",!1),this.runningUpdateType=7),this._performUpdateNotify.notify();let te=performance.now();this.debug("Chart.performUpdate() - end",{chart:this,durationMs:Math.round((te-O.start)*100)/100,count:c,performUpdateType:j0[y]})}updateThemeClassName(){let c="ag-charts-theme-",y=[`${c}default`,`${c}default-dark`],I=y[0],O=!1,{theme:j}=this.chartOptions.processedOptions;for(;typeof j!="string"&&j!=null;)j=j.baseTheme;typeof j=="string"&&(I=j.replace("ag-",c),O=j.includes("-dark")),y.includes(I)||(I=O?y[1]:y[0]),this.ctx.domManager.setThemeClass(I)}updateDOM(){this.updateThemeClassName();let{enabled:c,tabIndex:y}=this.keyboard;this.ctx.domManager.setTabGuardIndex(c?y!=null?y:0:-1)}updateAriaLabels(){this.ctx.domManager.updateCanvasLabel(this.getAriaLabel())}checkUpdateShortcut(c){return this.destroyed?!0:this.updateShortcutCount>3?(Pi.warn(`exceeded the maximum number of simultaneous updates (${3+1}), discarding changes and rendering`,this.updateRequestors),!1):this.performUpdateType<=c?(this.updateShortcutCount++,!0):!1}async checkFirstAutoSize(){this.width!=null&&this.height!=null||this._lastAutoSize||await this._autoSizeNotify.await(500)||this.debug("Chart.checkFirstAutoSize() - timeout for first size update.")}onAxisChange(c,y){y==null&&c.length===0||this.ctx.axisManager.updateAxes(y!=null?y:[],c)}onSeriesChange(c,y){var O,j,H;let I=(O=y==null?void 0:y.filter(K=>!c.includes(K)))!=null?O:[];this.destroySeries(I),(j=this.seriesLayerManager)==null||j.setSeriesCount(c.length);for(let K of c){if(y!=null&&y.includes(K))continue;let Z=this.seriesLayerManager.requestGroup(K);K.attachSeries(Z,this.seriesRoot,this.annotationRoot);let te=this;K.chart={get mode(){return te.mode},get isMiniChart(){return!1},get seriesRect(){return te.seriesRect}},K.resetAnimation(this.chartAnimationPhase),this.addSeriesListeners(K),K.addChartEventListeners()}(H=this.seriesAreaManager)==null||H.seriesChanged(c)}destroySeries(c){c==null||c.forEach(y=>{y.removeEventListener("nodeClick",this.onSeriesNodeClick),y.removeEventListener("nodeDoubleClick",this.onSeriesNodeDoubleClick),y.removeEventListener("groupingChanged",this.seriesGroupingChanged),y.destroy(),this.seriesLayerManager.releaseGroup(y),y.detachSeries(void 0,this.seriesRoot,this.annotationRoot),y.chart=void 0})}addSeriesListeners(c){this.hasEventListener("seriesNodeClick")&&c.addEventListener("nodeClick",this.onSeriesNodeClick),this.hasEventListener("seriesNodeDoubleClick")&&c.addEventListener("nodeDoubleClick",this.onSeriesNodeDoubleClick),this.hasEventListener("seriesVisibilityChange")&&c.addEventListener("seriesVisibilityChange",this.onSeriesVisibilityChange),c.addEventListener("groupingChanged",this.seriesGroupingChanged)}assignSeriesToAxes(){for(let c of this.axes)c.boundSeries=this.series.filter(y=>y.axes[c.direction]===c)}assignAxesToSeries(){let c=Ac(this.axes,y=>y.direction);for(let y of this.series)for(let I of y.directions){let O=c[I];if(!O){Pi.warnOnce(`no available axis for direction [${I}]; check series and axes configuration.`);return}let j=y.getKeys(I),H=O.find(K=>!K.keys.length||j.some(Z=>K.keys.includes(Z)));if(!H){Pi.warnOnce(`no matching axis for direction [${I}] and keys [${j}]; check series and axes configuration.`);return}y.axes[I]=H}}parentResize(c){var H;if(c==null||this.width!=null&&this.height!=null)return;let{width:y,height:I}=c;if(y=Math.floor(y),I=Math.floor(I),y===0&&I===0)return;let[O=0,j=0]=(H=this._lastAutoSize)!=null?H:[];O===y&&j===I||(this._lastAutoSize=[y,I],this.resize("SizeMonitor",{}))}resize(c,y){var ge,Se,Ce,Pe;let{scene:I,animationManager:O}=this.ctx,{inWidth:j,inHeight:H,inMinWidth:K,inMinHeight:Z}=y;this.ctx.domManager.setSizeOptions(K!=null?K:this.minWidth,Z!=null?Z:this.minHeight,j!=null?j:this.width,H!=null?H:this.height);let te=(Se=j!=null?j:this.width)!=null?Se:(ge=this._lastAutoSize)==null?void 0:ge[0],se=(Pe=H!=null?H:this.height)!=null?Pe:(Ce=this._lastAutoSize)==null?void 0:Ce[1];if(this.debug(`Chart.resize() from ${c}`,{width:te,height:se,stack:new Error().stack}),!(te==null||se==null||!_t(te)||!_t(se))&&I.resize(te,se)){O.reset();let Ge=!0;(this.width==null||this.height==null)&&this._firstAutoSize&&(Ge=!1,this._firstAutoSize=!1),this.update(3,{forceNodeDataRefresh:!0,skipAnimations:Ge}),this._autoSizeNotify.notify()}}async updateData(){this.series.forEach(y=>y.setChartData(this.data));let c=this.modulesManager.mapModules(y=>{var I;return(I=y.updateData)==null?void 0:I.call(y,this.data)});await Promise.all(c)}async processData(){this.series.some(O=>O.canHaveAxes)&&(this.assignAxesToSeries(),this.assignSeriesToAxes());for(let O of this.axes)O.processData();let c=new ID(this.mode,this.suppressFieldDotNotation),y=this.series.map(O=>(O.resetDatumCallbackCache(),O.processData(c))),I=this.modulesManager.mapModules(O=>{var j;return(j=O.processData)==null?void 0:j.call(O,c)});this._cachedData=c.execute(this._cachedData),await Promise.all([...y,...I]),this.updateLegends()}updateLegends(c){for(let{legend:y,legendType:I}of this.modulesManager.legends())I==="category"?this.setCategoryLegendData(c):this.setLegendData(I,y)}setCategoryLegendData(c){var H,K;var y;let{ctx:{legendManager:I,stateManager:O}}=this;c&&this.series.forEach(Z=>{let te=c.find(se=>se.seriesId===Z.id);Z.onLegendInitialState("category",te)});let j=this.series.flatMap(Z=>{let te=Z.getLegendData("category");return I.updateData(Z.id,te),te});if(c){O.setStateAndRestore(I,c);return}if(this.mode!=="integrated"){let Z={},te=new Map(this.series.map(se=>[se.id,se.type]));for(let{seriesId:se,symbol:{marker:ge},label:Se}of j.filter(Ce=>!Ce.hideInLegend)){if(ge.fill==null)continue;let Ce=te.get(se),Pe=(H=Z[Ce])!=null?H:Z[Ce]={};(K=Pe[y=Se.text])!=null||(Pe[y]=ge.fill),Pe[Se.text]!==ge.fill&&Pi.warnOnce(`legend item '${Se.text}' has multiple fill colors, this may cause unexpected behaviour.`)}}I.update()}setLegendData(c,y){y.data=this.series.filter(I=>I.properties.showInLegend).flatMap(I=>I.getLegendData(c))}async processLayout(){var j;let c=this.animationRect,{width:y,height:I}=this.ctx.scene,O=this.ctx.layoutManager.createContext(y,I);await this.performLayout(O),c&&!((j=this.animationRect)!=null&&j.equals(c))&&this.ctx.animationManager.skipCurrentBatch(),this.debug("Chart.performUpdate() - seriesRect",this.seriesRect)}async updateSeries(c){let{seriesRect:y}=this;await Promise.all(c.map(I=>I.update({seriesRect:y}))),this.ctx.seriesLabelLayoutManager.updateLabels(this.series.filter(I=>I.visible&&I.usesPlacedLabels),this.padding,this.seriesRect)}async waitForUpdate(c=1e4,y=!1){let I=performance.now();for(;this._pendingFactoryUpdatesCount>0||this.performUpdateType!==7||this.runningUpdateType!==7;){if(this._pendingFactoryUpdatesCount>0&&await this.updateMutex.waitForClearAcquireQueue(),(this.performUpdateType!==7||this.runningUpdateType!==7)&&await this._performUpdateNotify.await(),performance.now()-I>c){let O=`Chart.waitForUpdate() timeout of ${c} reached - first chart update taking too long.`;if(y)throw new Error(O);Pi.warnOnce(O)}wx()&&await PI()}}getMinRects(){let{width:c,height:y}=this.ctx.scene,I=this.series.map(se=>se.getMinRects(c,y)).filter(to);if(I.length===0)return;let O=0,j=0,H=0,K=0;for(let{minRect:se,minVisibleRect:ge}of I)O=Math.max(O,se.width),j=Math.max(j,se.height),H=Math.max(H,ge.width),K=Math.max(K,ge.height);let Z=new ft(0,0,O,j),te=Z.clone();return H>0&&K>0&&(te=new ft(0,0,H,K)),{minRect:Z,minVisibleRect:te}}filterMiniChartSeries(c){return c==null?void 0:c.filter(y=>y.showInMiniChart!==!1)}applyOptions(c){var Ge,We,He,Ze,it,qe;let y=this.firstApply?c.processedOptions:c.diffOptions(this.chartOptions);if(y==null||Object.keys(y).length===0)return;let I=this.firstApply?{}:this.chartOptions.processedOptions,O=c.processedOptions;Wd("Chart.applyOptions() - applying delta",y);let j=this.applyModules(O),H=["type","data","series","listeners","preset","theme","legend.listeners","navigator.miniChart.series","navigator.miniChart.label","locale.localeText","axes","topology","nodes","initialState","styleContainer"];y.listeners&&this.registerListeners(this,y.listeners),Lm(this,y,{skip:H});let K=!1,Z="no-op";y.series!=null&&(Z=this.applySeries(this,y.series,I==null?void 0:I.series),K=!0),Z==="replaced"&&this.resetAnimations(),this.applyAxes(this,O,I,Z,[])&&(K=!0),y.data&&(this.data=y.data),(Ge=y.legend)!=null&&Ge.listeners&&this.modulesManager.isEnabled("legend")&&Object.assign(this.legend.listeners,y.legend.listeners),(We=y.locale)!=null&&We.localeText&&(this.modulesManager.getModule("locale").localeText=(He=y.locale)==null?void 0:He.localeText),this.chartOptions=c;let te=this.modulesManager.getModule("navigator"),se=this.modulesManager.getModule("zoom");!(te!=null&&te.enabled)&&!(se!=null&&se.enabled)&&this.ctx.zoomManager.updateZoom("chart");let ge=te==null?void 0:te.miniChart,Se=(qe=(it=(Ze=O.navigator)==null?void 0:Ze.miniChart)==null?void 0:it.series)!=null?qe:O.series;(ge==null?void 0:ge.enabled)===!0&&Se!=null?this.applyMiniChartOptions(ge,Se,O,I):(ge==null?void 0:ge.enabled)===!1&&(ge.series=[],ge.axes=[]),this.ctx.annotationManager.setAnnotationStyles(c.annotationThemes),K||(K=this.shouldForceNodeDataRefresh(y,Z));let Pe=K||j?0:3;this.maybeResetAnimations(Z),Wd("Chart.applyOptions() - update type",j0[Pe],{seriesStatus:Z,forceNodeDataRefresh:K}),this.update(Pe,{forceNodeDataRefresh:K,newAnimationBatch:!0}),this.ctx.legendManager.clearData(),this.applyInitialState(O),this.firstApply=!1}applyInitialState(c){var Z,te,se;let{annotationManager:y,chartTypeOriginator:I,historyManager:O,stateManager:j,zoomManager:H}=this.ctx,{initialState:K}=c;if("annotations"in c&&((Z=c.annotations)!=null&&Z.enabled)&&(K==null?void 0:K.annotations)!=null){let ge=K.annotations.map(Se=>{let Ce=y.getAnnotationTypeStyles(Se.type);return Wi(Se,Ce)});j.setState(y,ge)}(K==null?void 0:K.chartType)!=null&&j.setState(I,K.chartType),((te=c.navigator)!=null&&te.enabled||(se=c.zoom)!=null&&se.enabled)&&(K==null?void 0:K.zoom)!=null&&j.setState(H,K.zoom),(K==null?void 0:K.legend)!=null&&this.updateLegends(K.legend),K!=null&&O.clear()}maybeResetAnimations(c){if(this.mode==="standalone")switch(c){case"series-grouping-change":case"replaced":this.resetAnimations();break;default:}}shouldForceNodeDataRefresh(c,y){let I=!!c.data||y==="data-change"||y==="replaced",O=RD.getKeys(),j=Object.values(O).some(K=>c[K]!=null),H=c.title!=null&&c.subtitle!=null;return I||j||H}applyMiniChartOptions(c,y,I,O){var se,ge,Se,Ce,Pe;let j=(Se=(ge=(se=O==null?void 0:O.navigator)==null?void 0:se.miniChart)==null?void 0:ge.series)!=null?Se:O==null?void 0:O.series,H=this.applySeries(c,this.filterMiniChartSeries(y),this.filterMiniChartSeries(j));this.applyAxes(c,I,O,H,["axes[].tick","axes[].thickness","axes[].title","axes[].crosshair","axes[].gridLine","axes[].label"]);let K=c.series;for(let Ge of K)Ge.properties.id=void 0;let Z=c.axes,te=Z.find(Ge=>Ge.direction==="x");for(let Ge of Z)Ge.gridLine.enabled=!1,Ge.label.enabled=Ge===te,Ge.tick.enabled=!1,Ge.interactionEnabled=!1;if(te!=null){let Ge=(Ce=I.navigator)==null?void 0:Ce.miniChart,We=Ge==null?void 0:Ge.label,He=(Pe=Ge==null?void 0:Ge.label)==null?void 0:Pe.interval;if(te.line.enabled=!1,te.label.set(Os(We,["interval","rotation","minSpacing","autoRotate","autoRotateAngle"])),te.tick.set(Os(He,["enabled","width","size","color","interval","step"])),te.type==="grouped-category"){te.label.enabled=!1,te.label.rotation=0;let{depthOptions:it}=te;if(it.length===0)it.set([{label:{enabled:!0}}]);else for(let qe=1;qe<it.length;qe++)it[qe].label.enabled=!1}let Ze=He==null?void 0:He.step;Ze!=null&&(te.interval.step=Ze)}}applyModules(c){var O;let{type:y}=this.constructor,I=!1;for(let j of ku.byType("root","legend")){let K=c[j.optionsKey]!=null&&j.chartTypes.includes(y);K!==this.modulesManager.isEnabled(j)&&(K?(this.modulesManager.addModule(j,Z=>Z.moduleFactory(this.getModuleContext())),j.type==="legend"&&((O=this.modulesManager.getModule(j))==null||O.attachLegend(this.ctx.scene)),this[j.optionsKey]=this.modulesManager.getModule(j)):(this.modulesManager.removeModule(j),delete this[j.optionsKey]),I=!0)}return I}initSeriesDeclarationOrder(c){for(let y=0;y<c.length;y++)c[y].setSeriesIndex(y)}applySeries(c,y,I){var se;if(!y)return"no-change";let O=rM(c.series,y,I);if(O.status==="no-overlap"){Wd(`Chart.applySeries() - creating new series instances, status: ${O.status}`,O);let ge=y.map(Se=>this.createSeries(Se));return this.initSeriesDeclarationOrder(ge),c.series=ge,"replaced"}Wd("Chart.applySeries() - matchResult",O);let j=[],H=!1,K=!1,Z=!1,te=O.changes.toSorted((ge,Se)=>ge.targetIdx-Se.targetIdx);for(let ge of te)switch(K||(K=ge.status==="series-grouping"),H||(H=((se=ge.diff)==null?void 0:se.data)!=null),Z||(Z=ge.status!=="no-op"),ge.status){case"add":{let Se=this.createSeries(ge.opts);j.push(Se),Wd("Chart.applySeries() - created new series",Se);break}case"remove":Wd(`Chart.applySeries() - removing series at previous idx ${ge.idx}`,ge.series);break;case"no-op":j.push(ge.series),Wd(`Chart.applySeries() - no change to series at previous idx ${ge.idx}`,ge.series);break;case"series-grouping":case"update":default:{let{series:Se,diff:Ce,idx:Pe}=ge;Wd(`Chart.applySeries() - applying series diff previous idx ${Pe}`,Ce,Se),this.applySeriesValues(Se,Ce),Se.markNodeDataDirty(),j.push(Se)}}return this.initSeriesDeclarationOrder(j),Wd("Chart.applySeries() - final series instances",j),c.series=j,K?"series-grouping-change":H?"data-change":Z?"updated":"no-op"}applyAxes(c,y,I,O,j=[]){if(!("axes"in y)||!y.axes)return!1;j=["axes[].type",...j];let{axes:H}=y;return!(O==="replaced")&&c.axes.length===H.length&&c.axes.every((te,se)=>te.type===H[se].type)&&To(I)?(c.axes.forEach((te,se)=>{var Pe,Ge;let ge=(Ge=(Pe=I.axes)==null?void 0:Pe[se])!=null?Ge:{},Se=ad(ge,H[se]);Wd(`Chart.applyAxes() - applying axis diff idx ${se}`,Se);let Ce=`axes[${se}]`;Lm(te,Se,{path:Ce,skip:j})}),!0):(Wd(`Chart.applyAxes() - creating new axes instances; seriesStatus: ${O}`),c.axes=this.createAxis(H,j),!0)}createSeries(c){let y=Wr.create(c.type,this.getModuleContext());return this.applySeriesOptionModules(y,c),this.applySeriesValues(y,c),y}applySeriesOptionModules(c,y){let I=c.createModuleContext(),O=c.getModuleMap();for(let j of ku.byType("series-option"))j.optionsKey in y&&j.seriesTypes.includes(c.type)&&O.addModule(j,H=>H.moduleFactory(I))}applySeriesValues(c,y){let I=c.getModuleMap(),se=y,{type:O,data:j,listeners:H,seriesGrouping:K,showInMiniChart:Z}=se,te=ji(se,["type","data","listeners","seriesGrouping","showInMiniChart"]);for(let ge of kp)if(ge.type==="series-option"&&ge.optionsKey in te){let Se=I.getModule(ge.optionsKey);if(Se){let Ce=te[ge.optionsKey];delete te[ge.optionsKey],Se.properties.set(Ce)}}c.properties.set(te),"data"in y&&c.setOptionsData(j),H&&this.registerListeners(c,H),"seriesGrouping"in y&&(K==null?c.seriesGrouping=void 0:c.seriesGrouping=pe(pe({},c.seriesGrouping),K))}createAxis(c,y){let I=[],O=this.getModuleContext();for(let j=0;j<c.length;j++){let H=c[j],K=Zs.create(H.type,O);this.applyAxisModules(K,H),Lm(K,H,{path:`axes[${j}]`,skip:y}),I.push(K)}return aM(I),I}applyAxisModules(c,y){let I=c.createModuleContext(),O=c.getModuleMap();for(let j of ku.byType("axis-option")){let H=y[j.optionsKey]!=null;H!==O.isEnabled(j)&&(H?(O.addModule(j,K=>K.moduleFactory(I)),c[j.optionsKey]=O.getModule(j)):(O.removeModule(j),delete c[j.optionsKey]))}}registerListeners(c,y){c.clearEventListeners();for(let[I,O]of Object.entries(y))Yn(O)&&c.addEventListener(I,O)}};xs.chartsInstances=new WeakMap,D([Xl({newValue(l){this.destroyed||(this.ctx.domManager.setContainer(l),xs.chartsInstances.set(l,this))},oldValue(l){xs.chartsInstances.delete(l)}})],xs.prototype,"container",2),D([Xl({newValue(l){this.resize("width option",{inWidth:l})}})],xs.prototype,"width",2),D([Xl({newValue(l){this.resize("height option",{inHeight:l})}})],xs.prototype,"height",2),D([Xl({newValue(l){this.resize("minWidth option",{inMinWidth:l})}})],xs.prototype,"minWidth",2),D([Xl({newValue(l){this.resize("minHeight option",{inMinHeight:l})}})],xs.prototype,"minHeight",2),D([Je(Gi)],xs.prototype,"padding",2),D([Je(Gi)],xs.prototype,"seriesArea",2),D([Je(Gi)],xs.prototype,"keyboard",2),D([Je(wa(["standalone","integrated"],"a chart mode"))],xs.prototype,"mode",2),D([Ki("chartCaptions.title")],xs.prototype,"title",2),D([Ki("chartCaptions.subtitle")],xs.prototype,"subtitle",2),D([Ki("chartCaptions.footnote")],xs.prototype,"footnote",2),D([Je(Zi)],xs.prototype,"suppressFieldDotNotation",2),D([Xl({changeValue(l,c){this.onAxisChange(l,c)}})],xs.prototype,"axes",2),D([Xl({changeValue(l,c){this.onSeriesChange(l,c)}})],xs.prototype,"series",2);var Ud=xs,GD=class{constructor(l,c,y){this.root=new xM(l,c,y)}clear(l){this.root.clear(l)}addValue(l,c){let y={hitTester:l,value:c,distanceSquared:(I,O)=>l.distanceSquared(I,O)};this.root.addElem(y)}find(l,c){let y={best:{nearest:void 0,distanceSquared:1/0}};return this.root.find(l,c,y),y.best}},uT=class{constructor(l,c,y,I){this.nw=l,this.ne=c,this.sw=y,this.se=I}addElem(l){this.nw.addElem(l),this.ne.addElem(l),this.sw.addElem(l),this.se.addElem(l)}find(l,c,y){this.nw.find(l,c,y),this.ne.find(l,c,y),this.sw.find(l,c,y),this.se.find(l,c,y)}},hT=class{constructor(l,c,y){this.capacity=l,this.maxdepth=c,this.boundary=y!=null?y:ft.NaN,this.elems=[],this.subdivisions=void 0}clear(l){this.elems.length=0,this.boundary=l,this.subdivisions=void 0}addElem(l){this.addCondition(l)&&(this.subdivisions===void 0?this.maxdepth===0||this.elems.length<this.capacity?this.elems.push(l):this.subdivide(l):this.subdivisions.addElem(l))}find(l,c,y){this.findCondition(l,c,y)&&(this.subdivisions===void 0?this.findAction(l,c,y):this.subdivisions.find(l,c,y))}subdivide(l){this.subdivisions=this.makeSubdivisions();for(let c of this.elems)this.subdivisions.addElem(c);this.subdivisions.addElem(l),this.elems.length=0}makeSubdivisions(){let{x:l,y:c,width:y,height:I}=this.boundary,{capacity:O}=this,j=this.maxdepth-1,H=y/2,K=I/2,Z=new ft(l,c,H,K),te=new ft(l+H,c,H,K),se=new ft(l,c+K,H,K),ge=new ft(l+H,c+K,H,K);return new uT(this.child(O,j,Z),this.child(O,j,te),this.child(O,j,se),this.child(O,j,ge))}},xM=class hZ extends hT{addCondition(c){let{x:y,y:I}=c.hitTester.midPoint;return this.boundary.containsPoint(y,I)}findCondition(c,y,I){let{best:O}=I;return O.distanceSquared!==0&&this.boundary.distanceSquared(c,y)<O.distanceSquared}findAction(c,y,I){let O=xe(c,y,this.elems,I.best.distanceSquared);O.nearest!==void 0&&O.distanceSquared<I.best.distanceSquared&&(I.best=O)}child(c,y,I){return new hZ(c,y,I)}},MM=class extends Lv{constructor(){super(...arguments),this.showFocusBox=!0,this.clipFocusBox=!0}getScaleInformation({xScale:l,yScale:c}){let y=io.is(l),I=io.is(c);return{isContinuousX:y,isContinuousY:I,xScaleType:l==null?void 0:l.type,yScaleType:c==null?void 0:c.type}}getModulePropertyDefinitions(){var y,I;let l=(y=this.axes.x)==null?void 0:y.scale,c=(I=this.axes.y)==null?void 0:I.scale;return this.moduleMap.mapModules(O=>O.getPropertyDefinitions(this.getScaleInformation({xScale:l,yScale:c}))).flat()}async requestDataModel(l,c,y){y.props.push(...this.getModulePropertyDefinitions());let{dataModel:I,processedData:O}=await l.request(this.id,c!=null?c:[],y);return this.dataModel=I,this.processedData=O,this.dispatch("data-processed",{dataModel:I,processedData:O}),{dataModel:I,processedData:O}}isProcessedDataAnimatable(){var I,O;let l=(O=(I=this.processedData)==null?void 0:I.reduced)==null?void 0:O.animationValidation;if(!l)return!0;let{orderedKeys:c,uniqueKeys:y}=l;return c&&y}checkProcessedDataAnimatable(){this.isProcessedDataAnimatable()||this.ctx.animationManager.skipCurrentBatch()}pickFocus(l){let c=this.getNodeData();if(c===void 0||c.length===0)return;let y=this.computeFocusDatumIndex(l,c);if(y===void 0)return;let{showFocusBox:I,clipFocusBox:O}=this,j=c[y],H=et(pe({},l),{datumIndex:y}),K=this.computeFocusBounds(H);if(K!==void 0)return{bounds:K,showFocusBox:I,clipFocusBox:O,datum:j,datumIndex:y}}computeFocusDatumIndex(l,c){var K;let y=Z=>{let{missing:te=!1,enabled:se=!0,focusable:ge=!0}=c[Z];return!te&&se&&ge},I=Z=>{for(;Z>=0&&!y(Z);)Z+=l.datumIndexDelta;return Z===-1?void 0:Z},O=Z=>{for(;Z<c.length&&!y(Z);)Z+=l.datumIndexDelta;return Z===c.length?void 0:Z},j,H=Ae(0,l.datumIndex,c.length-1);return l.datumIndexDelta<0?j=I(H):l.datumIndexDelta>0?j=O(H):j=(K=O(H))!=null?K:I(H),j===void 0?l.datumIndexDelta===0?void 0:l.datumIndex-l.datumIndexDelta:j}},Rp=class extends un{constructor(){super(...arguments),this.fill="rgba(255,255,255, 0.33)",this.stroke="rgba(0, 0, 0, 0.4)",this.strokeWidth=2}};D([Je(na,{optional:!0})],Rp.prototype,"fill",2),D([Je(Ia,{optional:!0})],Rp.prototype,"fillOpacity",2),D([Je(na,{optional:!0})],Rp.prototype,"stroke",2),D([Je(Fi,{optional:!0})],Rp.prototype,"strokeWidth",2),D([Je(Ia,{optional:!0})],Rp.prototype,"strokeOpacity",2),D([Je(qo,{optional:!0})],Rp.prototype,"lineDash",2),D([Je(Fi,{optional:!0})],Rp.prototype,"lineDashOffset",2);var sS=class extends un{};D([Je(Fi,{optional:!0})],sS.prototype,"strokeWidth",2),D([Je(Ia,{optional:!0})],sS.prototype,"dimOpacity",2),D([Je(Zi,{optional:!0})],sS.prototype,"enabled",2);var gT=class extends un{constructor(){super(...arguments),this.color="black"}};D([Je(na,{optional:!0})],gT.prototype,"color",2);var kM=class extends un{constructor(){super(...arguments),this.enabled=!0}};D([Je(Zi,{optional:!0})],kM.prototype,"enabled",2);var _b=class extends un{constructor(){super(...arguments),this.item=new Rp,this.series=new sS,this.text=new gT}};D([Je(Gi)],_b.prototype,"item",2),D([Je(Gi)],_b.prototype,"series",2),D([Je(Gi)],_b.prototype,"text",2);var gd=class extends un{constructor(){super(...arguments),this.visible=!0,this.focusPriority=1/0,this.showInLegend=!0,this.cursor="default",this.nodeClickRange="exact",this.highlight=new kM,this.highlightStyle=new _b}};D([Je(ui,{optional:!0})],gd.prototype,"id",2),D([Je(Zi)],gd.prototype,"visible",2),D([Je(Na,{optional:!0})],gd.prototype,"focusPriority",2),D([Je(Zi)],gd.prototype,"showInLegend",2),D([Je(ui)],gd.prototype,"cursor",2),D([Je(hp)],gd.prototype,"nodeClickRange",2),D([Je(Gi)],gd.prototype,"highlight",2),D([Je(Gi)],gd.prototype,"highlightStyle",2);var xg={x:["xKey"],y:["yKey"]},Pp={x:["xName"],y:["yName"]},AM=class extends Tu{constructor(l,c,y,I){super(l,c,y,I),this.xKey=I.properties.xKey,this.yKey=I.properties.yKey}},Lp=class extends gd{constructor(){super(...arguments),this.pickOutsideVisibleMinorAxis=!1}};D([Je(ui,{optional:!0})],Lp.prototype,"legendItemName",2),D([Je(Zi,{optional:!0})],Lp.prototype,"pickOutsideVisibleMinorAxis",2);var lS=100,Jm=class extends MM{constructor(ge){var Se=ge,{pathsPerSeries:l=["path"],hasMarkers:c=!1,hasHighlightedLabels:y=!1,pathsZIndexSubOrderOffset:I=[],datumSelectionGarbageCollection:O=!0,markerSelectionGarbageCollection:j=!0,animationAlwaysUpdateSelections:H=!1,animationResetFns:K,directionKeys:Z,directionNames:te}=Se,se=ji(Se,["pathsPerSeries","hasMarkers","hasHighlightedLabels","pathsZIndexSubOrderOffset","datumSelectionGarbageCollection","markerSelectionGarbageCollection","animationAlwaysUpdateSelections","animationResetFns","directionKeys","directionNames"]);if(super(pe({directionKeys:Z,directionNames:te,canHaveAxes:!0},se)),this.NodeEvent=AM,this.dataNodeGroup=this.contentGroup.appendChild(new Mn({name:`${this.id}-series-dataNodes`,zIndex:0})),this.markerGroup=this.contentGroup.appendChild(new Mn({name:`${this.id}-series-markers`,zIndex:1})),this.labelGroup=this.contentGroup.appendChild(new yl({name:`${this.id}-series-labels`})),this.labelSelection=No.select(this.labelGroup,Gr),this.highlightSelection=No.select(this.highlightNode,()=>this.opts.hasMarkers?this.markerFactory():this.nodeFactory()),this.highlightLabelSelection=No.select(this.highlightLabel,Gr),this.annotationSelections=new Set,this.minRectsCache={dirtyNodeData:!0},this.debug=Ua.create(),!Z||!te)throw new Error(`Unable to initialise series type ${this.type}`);this.opts={pathsPerSeries:l,hasMarkers:c,hasHighlightedLabels:y,pathsZIndexSubOrderOffset:I,directionKeys:Z,directionNames:te,animationResetFns:K,animationAlwaysUpdateSelections:H,datumSelectionGarbageCollection:O,markerSelectionGarbageCollection:j},this.paths=l.map(Ce=>new ic({name:`${this.id}-${Ce}`})),this.datumSelection=No.select(this.dataNodeGroup,()=>this.nodeFactory(),O),this.markerSelection=No.select(this.markerGroup,()=>this.markerFactory(),j),this.animationState=new Io("empty",{empty:{update:{target:"ready",action:Ce=>this.animateEmptyUpdateReady(Ce)},reset:"empty",skip:"ready",disable:"disabled"},ready:{updateData:"waiting",clear:"clearing",highlight:Ce=>this.animateReadyHighlight(Ce),highlightMarkers:Ce=>this.animateReadyHighlightMarkers(Ce),resize:Ce=>this.animateReadyResize(Ce),reset:"empty",skip:"ready",disable:"disabled"},waiting:{update:{target:"ready",action:Ce=>{this.ctx.animationManager.isSkipped()?this.resetAllAnimation(Ce):this.animateWaitingUpdateReady(Ce)}},reset:"empty",skip:"ready",disable:"disabled"},disabled:{update:Ce=>this.resetAllAnimation(Ce),reset:"empty"},clearing:{update:{target:"empty",action:Ce=>this.animateClearingUpdateEmpty(Ce)},reset:"empty",skip:"ready"}},()=>this.checkProcessedDataAnimatable())}get contextNodeData(){return this._contextNodeData}getNodeData(){var l;return(l=this.contextNodeData)==null?void 0:l.nodeData}attachSeries(l,c,y){super.attachSeries(l,c,y),this.attachPaths(this.paths,c,y)}detachSeries(l,c,y){super.detachSeries(l,c,y),this.detachPaths(this.paths,c,y)}attachPaths(l,c,y){for(let I of l)this.contentGroup.appendChild(I)}detachPaths(l,c,y){for(let I of l)this.contentGroup.removeChild(I)}renderToOffscreenCanvas(){let l=this.getNodeData();return l!=null&&l.length>lS}resetAnimation(l){l==="initial"?this.animationState.transition("reset"):l==="ready"?this.animationState.transition("skip"):l==="disabled"&&this.animationState.transition("disable")}addChartEventListeners(){this.destroyFns.push(this.ctx.chartEventManager.addListener("legend-item-click",l=>this.onLegendItemClick(l)),this.ctx.chartEventManager.addListener("legend-item-double-click",l=>this.onLegendItemDoubleClick(l)))}destroy(){super.destroy(),this._contextNodeData=void 0}update({seriesRect:l}){var Z,te;let{visible:c,_contextNodeData:y}=this,O=((te=(Z=this.ctx.highlightManager)==null?void 0:Z.getActiveHighlight())==null?void 0:te.series)===this,j=this.checkResize(l),H=this.updateHighlightSelection(O);this.updateSelections(c),this.updateNodes(H,O,c);let K=this.getAnimationData(l,y);K&&(j&&this.animationState.transition("resize",K),this.animationState.transition("update",K))}updateSelections(l){var I;var c;let y=!this.opts.animationAlwaysUpdateSelections&&this.ctx.animationManager.isSkipped();if(!(!l&&y)&&!(!this.nodeDataRefresh&&!this.isPathOrSelectionDirty())){if(this.nodeDataRefresh){this.nodeDataRefresh=!1,this.debug("CartesianSeries.updateSelections() - calling createNodeData() for",this.id),this.markQuadtreeDirty(),this._contextNodeData=this.createNodeData();let O=this.isProcessedDataAnimatable();this._contextNodeData&&((I=(c=this._contextNodeData).animationValid)!=null||(c.animationValid=O)),this.minRectsCache.dirtyNodeData=!0;let{dataModel:j,processedData:H}=this;j!==void 0&&H!==void 0&&this.dispatch("data-update",{dataModel:j,processedData:H})}this.updateSeriesSelections()}}updateSeriesSelections(l){var te;let{datumSelection:c,labelSelection:y,markerSelection:I,paths:O}=this,j=this._contextNodeData;if(!j)return;let{nodeData:H,labelData:K,itemId:Z}=j;this.updatePaths({seriesHighlighted:l,itemId:Z,contextData:j,paths:O}),this.datumSelection=this.updateDatumSelection({nodeData:H,datumSelection:c}),this.labelSelection=(te=this.updateLabelSelection({labelData:K,labelSelection:y}))!=null?te:y,this.opts.hasMarkers&&(this.markerSelection=this.updateMarkerSelection({nodeData:H,markerSelection:I}))}markerFactory(){let l=Hd();return new l}updateNodes(l,c,y){var Ze;let{highlightSelection:I,highlightLabelSelection:O,opts:{hasMarkers:j,hasHighlightedLabels:H}}=this,K=!this.ctx.animationManager.isSkipped(),Z=this.visible&&this._contextNodeData!=null&&y;this.contentGroup.visible=K||Z,this.highlightGroup.visible=(K||Z)&&c;let te=this.getOpacity();j?(this.updateMarkerNodes({markerSelection:I,isHighlight:!0}),this.animationState.transition("highlightMarkers",I)):(this.updateDatumNodes({datumSelection:I,isHighlight:!0}),this.animationState.transition("highlight",I)),H&&this.updateLabelNodes({labelSelection:O});let{dataNodeGroup:se,markerGroup:ge,datumSelection:Se,labelSelection:Ce,markerSelection:Pe,paths:Ge,labelGroup:We}=this,{itemId:He}=(Ze=this.contextNodeData)!=null?Ze:{};se.opacity=te,se.visible=K||Z,We.visible=Z,j&&(ge.opacity=te,ge.visible=Z),We&&(We.opacity=te),this.updatePathNodes({seriesHighlighted:c,itemId:He,paths:Ge,opacity:te,visible:Z,animationEnabled:K}),se.visible&&(this.updateDatumNodes({datumSelection:Se,highlightedItems:l,isHighlight:!1}),this.usesPlacedLabels||this.updateLabelNodes({labelSelection:Ce}),j&&this.updateMarkerNodes({markerSelection:Pe,isHighlight:!1}))}getHighlightLabelData(l,c){let y=l.filter(I=>I.datum===c.datum&&I.itemId===c.itemId);return y.length===0?void 0:y}getHighlightData(l,c){return c?[c]:void 0}updateHighlightSelection(l){var Z;let{highlightSelection:c,highlightLabelSelection:y,_contextNodeData:I}=this;if(!I)return;let O=(Z=this.ctx.highlightManager)==null?void 0:Z.getActiveHighlight(),j=l&&(O!=null&&O.datum)?O:void 0,H,K;if(j!=null){let te=this.isLabelEnabled(),{labelData:se,nodeData:ge}=I;K=this.getHighlightData(ge,j),H=te?this.getHighlightLabelData(se,j):void 0}return this.highlightSelection=this.updateHighlightSelectionItem({items:K,highlightSelection:c}),this.highlightLabelSelection=this.updateHighlightSelectionLabel({items:H,highlightLabelSelection:y}),K}markQuadtreeDirty(){this.quadtree=void 0}*datumNodesIter(){for(let{node:l}of this.datumSelection)l.datum.missing!==!0&&(yield l)}getQuadTree(){if(this.quadtree===void 0){let{width:l,height:c}=this.ctx.scene.canvas,y=new ft(0,0,l,c);this.quadtree=new GD(100,10,y),this.initQuadTree(this.quadtree)}return this.quadtree}initQuadTree(l){}pickNodeExactShape(l){var Z;let c=super.pickNodeExactShape(l);if(c)return c;let{x:y,y:I}=l,{opts:{hasMarkers:O}}=this,j,{dataNodeGroup:H,markerGroup:K}=this;if(j=H.pickNode(y,I),!j&&O&&(j=K==null?void 0:K.pickNode(y,I)),j&&j.datum.missing!==!0)return{datum:j.datum,distance:0};for(let te of this.moduleMap.modules()){let{datum:se}=(Z=te.pickNodeExact(l))!=null?Z:{};if(se!=null&&(se==null?void 0:se.missing)!==!0)return{datum:se,distance:0}}}pickNodeClosestDatum(l){var se,ge;let{x:c,y}=l,{axes:I,_contextNodeData:O}=this;if(!O)return;let j=I.x,H=I.y,K={x:c,y},Z=1/0,te;for(let Se of O.nodeData){let{point:{x:Ce=NaN,y:Pe=NaN}={}}=Se;if(isNaN(Ce)||isNaN(Pe)||!((j==null?void 0:j.inRange(Ce))&&(H==null?void 0:H.inRange(Pe))))continue;let We=Math.max((K.x-Ce)**2+(K.y-Pe)**2,0);We<Z&&(Z=We,te=Se)}for(let Se of this.moduleMap.modules()){let Ce=Se.pickNodeNearest(l);if(Ce!==void 0&&Ce.distanceSquared<Z){Z=Ce.distanceSquared,te=Ce.datum;break}}if(te){let Se=Math.max(Math.sqrt(Z)-((ge=(se=te.point)==null?void 0:se.size)!=null?ge:0),0);return{datum:te,distance:Se}}}pickNodeMainAxisFirst(l,c){var Pe,Ge,We,He;let{x:y,y:I}=l,{axes:O,_contextNodeData:j}=this,{pickOutsideVisibleMinorAxis:H}=this.properties;if(!j)return;let K=O.x,Z=O.y,te=[K,Z].filter(vp.is).map(Ze=>Ze.direction);if(c&&te.length===0)return;let[se="x"]=te,ge=[y,I];se!=="x"&&ge.reverse();let Se=[1/0,1/0],Ce;for(let Ze of j.nodeData){let{x:it=NaN,y:qe=NaN}=(Ge=(Pe=Ze.point)!=null?Pe:Ze.midPoint)!=null?Ge:{};if(isNaN(it)||isNaN(qe)||Ze.missing===!0)continue;let rt=[K==null?void 0:K.inRange(it),Z==null?void 0:Z.inRange(qe)];if(se!=="x"&&rt.reverse(),!rt[0]||!H&&!rt[1])continue;let dt=[it,qe];se!=="x"&&dt.reverse();let mt=!0;for(let yt=0;yt<dt.length;yt++){let Lt=Math.abs(dt[yt]-ge[yt]);if(Lt>Se[yt]){mt=!1;break}else Lt<Se[yt]&&(Se[yt]=Lt,Se.fill(1/0,yt+1,Se.length))}mt&&(Ce=Ze)}if(Ce){let Ze=Math.max(Se[0]**2+Se[1]**2-((He=(We=Ce.point)==null?void 0:We.size)!=null?He:0),0);for(let it of this.moduleMap.modules()){let qe=it.pickNodeMainAxisFirst(l);if(qe!==void 0&&qe.distanceSquared<Ze){Ce=qe.datum,Ze=qe.distanceSquared;break}}return{datum:Ce,distance:Math.sqrt(Ze)}}}isPathOrSelectionDirty(){return!1}shouldFlipXY(){return!1}getMinRects(l,c){let{dirtyNodeData:y,sizeCache:I,minRect:O,minVisibleRect:j}=this.minRectsCache,H=JSON.stringify({width:l,height:c});if(!(H!==I)&&!y&&O&&j)return{minRect:O,minVisibleRect:j};let Z=this.computeMinRects(l,c);return this.minRectsCache={dirtyNodeData:!1,sizeCache:H,minRect:Z==null?void 0:Z.minRect,minVisibleRect:Z==null?void 0:Z.minVisibleRect},Z}computeMinRects(l,c){var Ze,it;let y=this._contextNodeData;if(!(y!=null&&y.nodeData.length))return;let{nodeData:I}=y,O=Array(I.length),j=Array(I.length);for(let[qe,{midPoint:rt}]of I.entries())O[qe]=(Ze=rt==null?void 0:rt.x)!=null?Ze:0,j[qe]=(it=rt==null?void 0:rt.y)!=null?it:0;O.sort((qe,rt)=>qe-rt),j.sort((qe,rt)=>qe-rt);let H,K,Z,te,se=0,ge=0;for(let qe=1;qe<I.length;qe++)O[qe]>=0&&(H!=null||(H=qe)),O[qe]>l&&(K!=null||(K=qe)),j[qe]>=0&&(Z!=null||(Z=qe)),j[qe]>c&&(te!=null||(te=qe)),se=Math.max(se,O[qe]-O[qe-1]),ge=Math.max(ge,j[qe]-j[qe-1]);K!=null||(K=I.length),te!=null||(te=I.length);let Se=H!=null&&K!=null?O.slice(H,K):[],Ce=Z!=null&&te!=null?j.slice(Z,te):[],Pe=0,Ge=0;for(let qe=1;qe<Math.max(Se.length,Ce.length);qe++){let rt=Se[qe],dt=Se[qe-1],mt=Ce[qe],yt=Ce[qe-1];rt!=null&&dt!=null&&(Pe=Math.max(Pe,rt-dt)),mt!=null&&yt!=null&&(Ge=Math.max(Ge,mt-yt))}let We=new ft(0,0,se,ge),He=new ft(0,0,Pe,Ge);return{minRect:We,minVisibleRect:He}}updateHighlightSelectionItem(l){let{opts:{hasMarkers:c}}=this,{items:y,highlightSelection:I}=l,O=y!=null?y:[];if(c){let j=I;return this.updateMarkerSelection({nodeData:O,markerSelection:j})}else return this.updateDatumSelection({nodeData:O,datumSelection:I})}updateHighlightSelectionLabel(l){var c;return this.updateLabelSelection({labelData:(c=l.items)!=null?c:[],labelSelection:l.highlightLabelSelection})}updateDatumSelection(l){return l.datumSelection}updateDatumNodes(l){}updateMarkerSelection(l){return l.markerSelection}updateMarkerNodes(l){}updatePaths(l){l.paths.forEach(c=>c.visible=!1)}updatePathNodes(l){let{paths:c,opacity:y,visible:I}=l;for(let O of c)O.opacity=y,O.visible=I}resetPathAnimation(l){var y,I;let{path:c}=(I=(y=this.opts)==null?void 0:y.animationResetFns)!=null?I:{};c&&l.paths.forEach(O=>{Yo([O],c)})}resetDatumAnimation(l){var y,I;let{datum:c}=(I=(y=this.opts)==null?void 0:y.animationResetFns)!=null?I:{};c&&Yo([l.datumSelection],c)}resetLabelAnimation(l){var y,I;let{label:c}=(I=(y=this.opts)==null?void 0:y.animationResetFns)!=null?I:{};c&&Yo([l.labelSelection],c)}resetMarkerAnimation(l){var y,I;let{marker:c}=(I=(y=this.opts)==null?void 0:y.animationResetFns)!=null?I:{};c&&this.opts.hasMarkers&&Yo([l.markerSelection],c)}resetAllAnimation(l){var c;this.ctx.animationManager.stopByAnimationGroupId(this.id),this.resetPathAnimation(l),this.resetDatumAnimation(l),this.resetLabelAnimation(l),this.resetMarkerAnimation(l),((c=l.contextData)==null?void 0:c.animationValid)===!1&&this.ctx.animationManager.skipCurrentBatch()}animateEmptyUpdateReady(l){this.ctx.animationManager.skipCurrentBatch(),this.resetAllAnimation(l)}animateWaitingUpdateReady(l){this.ctx.animationManager.skipCurrentBatch(),this.resetAllAnimation(l)}animateReadyHighlight(l){var y,I;let{datum:c}=(I=(y=this.opts)==null?void 0:y.animationResetFns)!=null?I:{};c&&Yo([l],c)}animateReadyHighlightMarkers(l){var y,I;let{marker:c}=(I=(y=this.opts)==null?void 0:y.animationResetFns)!=null?I:{};c&&Yo([l],c)}animateReadyResize(l){this.resetAllAnimation(l)}animateClearingUpdateEmpty(l){this.ctx.animationManager.skipCurrentBatch(),this.resetAllAnimation(l)}getAnimationData(l,c){let{_contextNodeData:y}=this;return y?{datumSelection:this.datumSelection,markerSelection:this.markerSelection,labelSelection:this.labelSelection,annotationSelections:[...this.annotationSelections],contextData:y,previousContextData:c,paths:this.paths,seriesRect:l}:void 0}updateLabelSelection(l){return l.labelSelection}getScaling(l){if(l instanceof BA){let{range:c,domain:y}=l;return{type:"log",convert:I=>l.convert(I),domain:[y[0],y[1]],range:[c[0],c[1]]}}else if(l instanceof io){let{range:c}=l,y=l.getDomain();return{type:"continuous",domain:[y[0],y[1]],range:[c[0],c[1]]}}else if(l instanceof Wl){let{domain:c}=l;return{type:"category",domain:c,inset:l.inset,step:l.step}}}calculateScaling(){let l={};for(let c of Object.values(av)){let y=this.axes[c];if(!y)continue;let I=this.getScaling(y.scale);I!=null&&(l[c]=I)}return l}},jD=["top","right","bottom","left"],Fb=class gZ extends Ud{constructor(c,y){super(c,y),this.paired=!0,this.firstSeriesTranslation=!0,this.lastUpdateClipRect=void 0}onAxisChange(c,y){super.onAxisChange(c,y),this.ctx!=null&&this.ctx.zoomManager.updateAxes(c)}destroySeries(c){super.destroySeries(c),this.firstSeriesTranslation=!0}getChartType(){return"cartesian"}setRootClipRects(c){let{seriesRoot:y,annotationRoot:I}=this;y.setClipRect(c),I.setClipRect(c)}performLayout(c){let{firstSeriesTranslation:y,seriesRoot:I,annotationRoot:O}=this,{clipSeries:j,seriesRect:H,visible:K}=this.updateAxes(c.layoutBox);this.seriesRoot.visible=K,this.seriesRect=H,this.animationRect=c.layoutBox;let{x:Z,y:te}=H;if(y){for(let Ce of[I,O])Ce.translationX=Math.floor(Z),Ce.translationY=Math.floor(te);this.firstSeriesTranslation=!1}else{let{translationX:Ce,translationY:Pe}=I;Rd(this.id,"seriesRect",this.ctx.animationManager,[I,O],{translationX:Ce,translationY:Pe},{translationX:Math.floor(Z),translationY:Math.floor(te)},{phase:"update"})}let se=H.clone().grow(this.seriesArea.padding),ge=this.seriesArea.clip||j?se:void 0,{lastUpdateClipRect:Se}=this;this.lastUpdateClipRect=ge,this.ctx.animationManager.isActive()&&Se!=null?this.ctx.animationManager.animate({id:this.id,groupId:"clip-rect",phase:"update",from:Se,to:se,onUpdate:Ce=>this.setRootClipRects(Ce),onComplete:()=>this.setRootClipRects(ge)}):this.setRootClipRects(ge),this.ctx.layoutManager.emitLayoutComplete(c,{axes:this.axes.map(Ce=>Ce.getLayoutState()),series:{visible:K,rect:H,paddedRect:se,shouldFlipXY:this.shouldFlipXY()},clipSeries:j})}updateAxes(c){let{clipSeries:y,seriesRect:I,overflows:O}=this.resolveAxesLayout(c);for(let j of this.axes)j.update(),j.setCrossLinesVisible(!O),this.clipAxis(j,I,c);return{clipSeries:y,seriesRect:I,visible:!O}}resolveAxesLayout(c){let y,I,O=0,j=10;do if(I=y!=null?y:this.getDefaultState(),y=this.updateAxesPass(new Map(I.axisAreaWidths),c.clone()),O++>j){Pi.warn("Max iterations reached. Unable to stabilize axes layout.");break}while(!this.isLayoutStable(y,I));return this.lastAreaWidths=y.axisAreaWidths,y}updateAxesPass(c,y){var He,Ze,it,qe,rt,dt,mt;let I=new Map,O={},j=!1,H=!1;for(let yt of jD){let Lt=this.seriesArea.padding[yt],Ht=this.axes.findLast(qt=>qt.position===yt);Ht?Ht.seriesAreaPadding=Lt:y.shrink(Lt,yt)}let K=((He=c.get("left"))!=null?He:0)+((Ze=c.get("right"))!=null?Ze:0),Z=((it=c.get("top"))!=null?it:0)+((qe=c.get("bottom"))!=null?qe:0),te=this.buildCrossLinePadding(c);y.width<=K+te.hPadding||y.height<=Z+te.vPadding?j=!0:y.shrink(te);let se=y.clone().shrink(Object.fromEntries(c));for(let yt of this.axes){let{position:Lt="left",direction:Ht}=yt;this.sizeAxis(yt,se,Lt);let qt=this.getSyncedDomain(yt),ri=Ht==="y",Ei=yt.calculateLayout(qt,yt.nice?O[Ht]:void 0);(rt=O[Ht])!=null||(O[Ht]=Ei.primaryTickCount),H||(H=yt.dataDomain.clipped||yt.visibleRange[0]>0||yt.visibleRange[1]<1),I.set(yt.id,Math.ceil((dt=yt.thickness)!=null?dt:ri?Ei.bbox.width:Ei.bbox.height))}let ge=Object.entries(Ac(this.axes,yt=>{var Lt;return(Lt=yt.position)!=null?Lt:"left"})),{width:Se,height:Ce,canvas:Pe}=this.ctx.scene,Ge=new Map,We=new Map;for(let[yt,Lt]of ge){let qt=yt==="left"||yt==="right"?Ce%Pe.pixelRatio:Se%Pe.pixelRatio,ri=0;for(let Ei of Lt){We.set(Ei.id,qt);let Ni=(mt=I.get(Ei.id))!=null?mt:0;ri=Math.max(ri,qt+Ni),Ei.layoutConstraints.stacked&&(qt+=Ni+gZ.AxesPadding)}Ge.set(yt,Math.ceil(ri))}for(let[yt,Lt]of ge)this.positionAxes({axes:Lt,position:yt,axisWidths:I,axisOffsets:We,axisAreaWidths:Ge,axisBound:y,seriesRect:se});return{clipSeries:H,seriesRect:se,axisAreaWidths:Ge,overflows:j}}buildCrossLinePadding(c){var I;let y={top:0,right:0,bottom:0,left:0,hPadding:0,vPadding:0};this.axes.forEach(O=>{var j;(j=O.crossLines)==null||j.forEach(H=>{var K;(K=H.calculatePadding)==null||K.call(H,y)})});for(let[O,j=0]of Object.entries(y))y[O]=Math.max(j-((I=c.get(O))!=null?I:0),0);return y.hPadding=y.left+y.right,y.vPadding=y.top+y.bottom,y}clampToOutsideSeriesRect(c,y,I,O){let j=I==="x"?c.x:c.y,H=I==="x"?c.width:c.height;return O===1?Math.min(y,j+H):Math.max(y,j)}getSyncedDomain(c){let y=this.modulesManager.getModule("sync");if(!(y!=null&&y.enabled))return;let I=y.getSyncedDomain(c);if(I&&c.dataDomain.domain.length){let O,{domain:j}=c.scale;if(io.is(c.scale)){let[H,K]=Re(I);O=H!==j[0]||K!==j[1]}else O=!eg(I,j);O&&!this.skipSync&&y.updateSiblings()}return I}sizeAxis(c,y,I){let O=c instanceof vp,j=I==="left"||I==="right",{width:H,height:K}=y,Z=j?K:H,te=0,se=Z,{min:ge,max:Se}=this.ctx.zoomManager.getAxisZoom(c.id),{width:Ce,unit:Pe,align:Ge}=c.layoutConstraints;Pe==="px"?se=te+Ce:se=se*Ce/100,Ge==="end"&&(te=Z-(se-te),se=Z),j&&(O?[ge,Se]=[1-Se,1-ge]:[te,se]=[se,te]),c.range=[te,se],c.visibleRange=[ge,Se],c.gridLength=j?H:K}positionAxes(c){var Pe,Ge,We,He;let{axes:y,axisBound:I,axisWidths:O,axisOffsets:j,axisAreaWidths:H,seriesRect:K,position:Z}=c,te=(Pe=H.get(Z))!=null?Pe:0,se="x",ge="y",Se=1;(Z==="top"||Z==="bottom")&&(se="y",ge="x");let Ce=I[se];(Z==="right"||Z==="bottom")&&(Se=-1,Ce+=se==="x"?I.width:I.height);for(let Ze of y){let it=(Ge=H.get(ge==="x"?"left":"top"))!=null?Ge:0,qe=(We=O.get(Ze.id))!=null?We:0,rt=(He=j.get(Ze.id))!=null?He:0;Ze.gridPadding=te-rt-qe,Ze.translation[ge]=I[ge]+it,Ze.translation[se]=this.clampToOutsideSeriesRect(K,Ce+Se*(rt+qe),se,Se)}}shouldFlipXY(){return this.series.every(c=>c instanceof Jm&&c.shouldFlipXY())}getDefaultState(){let c=new Map;if(this.lastAreaWidths)for(let{position:y="left"}of this.axes){let I=this.lastAreaWidths.get(y);I!=null&&c.set(y,I)}return{axisAreaWidths:c,clipSeries:!1,overflows:!1}}isLayoutStable(c,y){if(y.overflows!==c.overflows||y.clipSeries!==c.clipSeries)return!1;for(let I of c.axisAreaWidths.keys())if(!y.axisAreaWidths.has(I))return!1;for(let[I,O]of y.axisAreaWidths.entries()){let j=c.axisAreaWidths.get(I);if((O!=null||j!=null)&&O!==j)return!1}return!0}clipAxis(c,y,I){var Z,te,se,ge;let O=Math.ceil((te=(Z=c.gridLine)==null?void 0:Z.width)!=null?te:0),j=Math.ceil((ge=(se=c.line)==null?void 0:se.width)!=null?ge:0),{width:H,height:K}=y;switch(H+=c.direction==="x"?O:j,K+=c.direction==="y"?O:j,c.clipGrid(y.x,y.y,H,K),c.position){case"left":case"right":c.clipTickLines(I.x,y.y-O,I.width+O,y.height+O*2);break;case"top":case"bottom":c.clipTickLines(y.x-O,I.y,y.width+O*2,I.height+O);break}}};Fb.className="CartesianChart",Fb.type="cartesian",Fb.AxesPadding=15;var pT=Fb,Bv=class pZ{constructor(c,y,I){this.factoryApi=y,this.licenseManager=I,this.chart=c}static isInstance(c){var y;return c instanceof pZ||((y=c.constructor)==null?void 0:y.name)==="AgChartInstanceProxy"&&c.chart!=null?!0:c.chart!=null&&this.validateImplementation(c)}static validateImplementation(c){var O;let y=["getOptions","destroy"],I=Object.keys((O=Object.getPrototypeOf(c))!=null?O:{});return y.every(j=>I.includes(j))}async update(c){this.factoryApi.update(c,this),await this.chart.waitForUpdate()}async updateDelta(c){this.factoryApi.updateUserDelta(this,c),await this.chart.waitForUpdate()}getOptions(){let c=Ss(this.chart.getOptions());for(let y of Object.keys(c))y.startsWith("_")&&delete c[y];return c}waitForUpdate(){return this.chart.waitForUpdate()}async download(c){let y=await this.prepareResizedChart(this,c);try{y.chart.download(c==null?void 0:c.fileName,c==null?void 0:c.fileFormat)}finally{y.destroy()}}async __toSVG(c){let y=await this.prepareResizedChart(this,pe({width:600,height:300},c));try{return y.chart.toSVG()}finally{y.destroy()}}async getImageDataURL(c){let y=await this.prepareResizedChart(this,c);try{return y.chart.getCanvasDataURL(c==null?void 0:c.fileFormat)}finally{y.destroy()}}getState(){return this.factoryApi.caretaker.save(...this.getEnabledOriginators())}async setState(c){let y=this.getEnabledOriginators();if(!y.includes(this.chart.ctx.legendManager)){await this.setStateOriginators(c,y);return}await this.setStateOriginators(c,y.filter(I=>I!==this.chart.ctx.zoomManager)),await this.setStateOriginators(c,[this.chart.ctx.zoomManager])}resetAnimations(){this.chart.resetAnimations()}skipAnimations(){this.chart.skipAnimations()}destroy(){this.releaseChart?(this.releaseChart(),this.chart=null):(this.chart.publicApi=void 0,this.chart.destroy())}async prepareResizedChart(c,y={}){var Pe,Ge,We,He,Ze,it,qe,rt;let{chart:I}=c,O=(Ge=(Pe=y.width)!=null?Pe:I.width)!=null?Ge:I.ctx.scene.canvas.width,j=(He=(We=y.height)!=null?We:I.height)!=null?He:I.ctx.scene.canvas.height,H=c.getState(),K=ku.hasEnterpriseModules(),Z=et(pe({},I.chartOptions.processedOverrides),{container:document.createElement("div"),width:O,height:j}),te=I.getOptions();K&&(Z.animation={enabled:!1},(Ze=this.licenseManager)!=null&&Ze.isDisplayWatermark()&&(Z.foreground={text:this.licenseManager.getWatermarkMessage(),image:{url:"data:image/svg+xml;base64, ",width:170,height:25,right:25,bottom:50,opacity:.7}}));let se=pe({},I.chartOptions.specialOverrides),ge=pe({},I.chartOptions.optionMetadata);y.width!=null&&y.height!=null&&(se.overrideDevicePixelRatio=1);let Se=this.factoryApi.create(te,Z,se,ge);await Se.setState(H),Se.chart.ctx.zoomManager.updateZoom("chartProxy",I.ctx.zoomManager.getZoom()),Se.chart.ctx.legendManager.clearData(),Se.chart.ctx.legendManager.update(I.ctx.legendManager.getData()),I.series.forEach((dt,mt)=>{dt.visible||(Se.chart.series[mt].visible=!1)});let Ce=[];for(let dt of I.modulesManager.legends())Ce.push((qe=(it=dt.legend.pagination)==null?void 0:it.currentPage)!=null?qe:0);for(let dt of Se.chart.modulesManager.legends()){let mt=(rt=Ce.shift())!=null?rt:0;dt.legend.pagination&&dt.legend.pagination.setPage(mt)}return Se.chart.update(0,{forceNodeDataRefresh:!0}),await Se.waitForUpdate(),Se}getEnabledOriginators(){var te,se,ge;let{chartOptions:{processedOptions:c,optionMetadata:y},ctx:{annotationManager:I,chartTypeOriginator:O,zoomManager:j,legendManager:H}}=this.chart,K=[];return"annotations"in c&&((te=c.annotations)!=null&&te.enabled)&&K.push(I),y.presetType==="price-volume"&&K.push(O),((se=c.navigator)!=null&&se.enabled||(ge=c.zoom)!=null&&ge.enabled)&&K.push(j),"legend"in this.chart&&K.push(H),K}async setStateOriginators(c,y){this.factoryApi.caretaker.restore(c,...y),this.chart.ctx.updateService.update(2,{forceNodeDataRefresh:!0}),await this.chart.waitForUpdate()}};Bv.chartInstances=new WeakMap,D([Xl({oldValue(l){l.destroyed||(l.publicApi=void 0),Bv.chartInstances.delete(l)},newValue(l){l&&(l.publicApi=this,Bv.chartInstances.set(l,this))}})],Bv.prototype,"chart",2);var VD=Bv,DM=class extends M0{constructor(l){super(),this.ctx=l,this.localeText=void 0}};D([mp(l=>{l.ctx.localeManager.setLocaleText(l.localeText)}),Je(Br,{optional:!0})],DM.prototype,"localeText",2),D([mp(l=>{l.ctx.localeManager.setLocaleTextFormatter(l.getLocaleText)}),Je(no,{optional:!0})],DM.prototype,"getLocaleText",2);var pL={type:"root",optionsKey:"locale",packageType:"community",chartTypes:["cartesian","polar","hierarchy","topology","flow-proportion","standalone","gauge"],moduleFactory:l=>new DM(l)};function mL(l,c=1/0){switch(typeof l){case"undefined":return"undefined";case"number":if(isNaN(l))return"NaN";if(l===1/0)return"Infinity";if(l===-1/0)return"-Infinity";default:return l=JSON.stringify(l),l.length>c?`${l.slice(0,c)}... (+${l.length-c} characters)`:l}}function fL(l){let c=1;for(let y=0;y<l.length;y++)l.charCodeAt(y)===10&&c++;return c}var ef=new WeakMap;function cS(l,c){var I,O,j;let y=JSON.stringify(l,null,0);return ef.has(c)||ef.set(c,new Map),(I=ef.get(c))!=null&&I.has(y)||(O=ef.get(c))==null||O.set(y,c(l)),(j=ef.get(c))==null?void 0:j.get(y)}function Ml(l){let c=new Map,y=(...j)=>j.map(H=>typeof H=="object"||typeof H=="symbol"?H:(c.has(H)||c.set(H,{v:H}),c.get(H))),I={},O=new WeakMap;return(...j)=>{let H=j.length===0?[I]:y(...j),K=O;for(let se of H.slice(0,-1))K.has(se)||K.set(se,new WeakMap),K=K.get(se);let Z=H.at(-1),te=K.get(Z);return te||(te=l(...j),K.set(Z,te)),te}}function dS(l,c=[0,0]){for(let y of l)typeof y=="number"&&(y<0&&(c[0]+=y),y>0&&(c[1]+=y));return c}function vL(l,c){return{id:l,matchGroupIds:[c],type:"aggregate",aggregateFunction:I=>dS(I)}}function HD(l,c){return{id:l,type:"aggregate",matchGroupIds:c?[c]:void 0,aggregateFunction:y=>dS(y),groupAggregateFunction:(y,I=[0,0])=>{var O,j;return I[0]+=(O=y==null?void 0:y[0])!=null?O:0,I[1]+=(j=y==null?void 0:y[1])!=null?j:0,I}}}function mT(l,c){return{id:l,matchGroupIds:[c],type:"aggregate",aggregateFunction:I=>Go.extendDomain(I)}}function WD(l){return{id:l,type:"aggregate",aggregateFunction:()=>[0,1],groupAggregateFunction:(c,y=[0,0])=>{var I,O;return y[0]+=(I=c==null?void 0:c[0])!=null?I:0,y[1]+=(O=c==null?void 0:c[1])!=null?O:0,y}}}function Gv(l,c){return{id:l,matchGroupIds:c?[c]:void 0,type:"aggregate",aggregateFunction:I=>dS(I),groupAggregateFunction:(I,O=[0,0,-1])=>{var j,H;return O[0]+=(j=I==null?void 0:I[0])!=null?j:0,O[1]+=(H=I==null?void 0:I[1])!=null?H:0,O[2]++,O},finalFunction:(I=[0,0,0])=>{let O=I[0]+I[1];return O>=0?[0,O/I[2]]:[O/I[2],0]}}}function uS(l,c,y){let I={id:l,matchGroupIds:y?[y]:void 0,type:"aggregate",aggregateFunction:(O,j=[])=>{let H=j[1]-j[0];return c.aggregateFunction(O).map(K=>K/H)}};return c.groupAggregateFunction&&(I.groupAggregateFunction=c.groupAggregateFunction),I}function UD(l){return()=>{let c=0;return y=>_t(y)?(c+=l?Math.max(0,y):y,c):y}}function fT(){return()=>{let l=0;return c=>{if(!_t(c))return c;let y=l;return l+=c,y}}}function KD(l){return l!=null&&Eh(l)}function yL(l){return l!=null}function qD(l){switch(l){case"number":case"log":case"ordinal-time":case"time":case"color":return KD;default:return yL}}function vT(l){switch(l){case"number":case"log":case"time":case"color":return"range";default:return"category"}}function kl(l,c,y={}){return pe({property:l,type:"key",valueType:vT(c),validation:qD(c)},y)}function Jn(l,c,y={}){return pe({property:l,type:"value",valueType:vT(c),validation:qD(c)},y)}function hS(l,c={}){let j=c,{min:y=-1/0,max:I=1/0}=j,O=ji(j,["min","max"]);return pe({type:"value",property:l,valueType:"range",validation:KD,processor:()=>H=>_t(H)?Ae(y,H,I):H},O)}function gS(l,c,y={}){let H=y,{onlyPositive:I}=H,O=ji(H,["onlyPositive"]);return et(pe({},Jn(l,c,O)),{processor:UD(I)})}function Op(l,c,y={}){return et(pe({},Jn(l,c,y)),{processor:fT()})}function _p(l,c,y,I,O){return[Jn(l,O,I),QD(I.groupId,c,y,I.separateNegative),...I.rangeId!=null?[mT(I.rangeId,I.groupId)]:[]]}function tf(l,c,y){return[Jn(l,c,y),JD(y.groupId)]}var yT={type:"reducer",property:"smallestKeyInterval",initialValue:1/0,reducer:()=>{let l=NaN;return(c=1/0,y)=>{let I=y.keys[0],O=Math.abs(I-l);return l=I,!isNaN(O)&&O>0&&O<c?O:c}}},Nb={type:"reducer",property:"largestKeyInterval",initialValue:-1/0,reducer:()=>{let l=NaN;return(c=-1/0,y)=>{let I=y.keys[0],O=Math.abs(I-l);return l=I,!isNaN(O)&&O>0&&O>c?O:c}}},EM={type:"processor",property:"sortedGroupDomain",calculate:({domain:{groups:l}})=>l==null?void 0:l.slice().sort((c,y)=>{for(let I=0;I<c.length;I++){let O=c[I]-y[I];if(O!==0)return O}return 0})};function IM({normaliseTo:l,mode:c}){let y=(I,O)=>{if(O===0)return null;let j=(I!=null?I:0)*l/O;return j>=0?Math.min(l,j):Math.max(-l,j)};return()=>()=>(I,O,j)=>{let H=TM(c,I,O,j);for(let K of O){let Z=I[K],te=Z[j];if(te==null){Z[j]=void 0;continue}Z[j]=typeof te=="number"?y(te,H):te.map(se=>y(se,H))}}}function TM(l,c,y,I){let O=[0,0];for(let j of y){let K=c[j][I];if(K==null)continue;let Z=typeof K=="number"?K:Math.max(...K.map(se=>se!=null?se:0)),te=Z<0?0:1;l==="sum"?O[te]+=Z:te===0?O[te]=Math.min(O[te],Z):O[te]=Math.max(O[te],Z)}return Math.max(Math.abs(O[0]),O[1])}function zb(l,c,y="sum"){return{type:"group-value-processor",matchGroupIds:l,adjust:cS({normaliseTo:c,mode:y},IM)}}function YD({normaliseTo:l,zeroDomain:c,rangeMin:y,rangeMax:I}){let O=l[1]-l[0],j=(H,K,Z)=>{let te=l[0]+(H-K)/Z*O;return Z===0?c:te>=l[1]?l[1]:te<l[0]?l[0]:te};return()=>(H,K)=>{let[Z,te]=H.domain.values[K];y!=null&&(Z=y),I!=null&&(te=I);let se=te-Z;H.domain.values[K]=[l[0],l[1]];let{rawData:ge}=H,Se=H.columns[K];for(let Ce=0;Ce<ge.length;Ce+=1)Se[Ce]=j(Se[Ce],Z,se)}}function Kd(l,c,y,I,O){return{type:"property-value-processor",property:l,adjust:cS({normaliseTo:c,rangeMin:I,rangeMax:O,zeroDomain:y},YD)}}var nf=1,Mg=2,XD=(l,c,y,I)=>{var H,K;let O=nf|Mg;if(c.valueType==="category")return y.length!==l&&(O&=~nf),O;let j=(H=I[0])==null?void 0:H.valueOf();for(let Z=1;O!==0&&Z<I.length;Z++){let te=(K=I[Z])==null?void 0:K.valueOf();(!Number.isFinite(te)||j>te)&&(O&=~Mg),Number.isFinite(te)&&j===te&&(O&=~nf),j=te}return O};function af(l){return{type:"processor",property:"animationValidation",calculate(c){let{keys:y,values:I}=c.defs,{input:{count:O},domain:{keys:j,values:H},rawData:K,keys:Z,columns:te}=c,se=nf|Mg;if(K.length!==0){for(let ge=0;se!==0&&ge<y.length;ge++)se&=XD(O,y[ge],j[ge],Z[ge]);for(let ge=0;se!==0&&ge<I.length;ge++){let Se=I[ge];l!=null&&l.includes(Se.id)&&(se&=XD(O,Se,H[ge],te[ge]))}}return{uniqueKeys:(se&nf)!==0,orderedKeys:(se&Mg)!==0}}}}function ZD({mode:l,separateNegative:c}){return()=>()=>(y,I,O)=>{let j=[0,0];for(let H of I){let K=y[H],Z=K[O],te=Ee(Z)&&c?0:1;_t(Z)&&(l==="normal"&&(j[te]+=Z),K[O]=j[te],l==="trailing"&&(j[te]+=Z))}}}function $D({mode:l,sum:c}){return()=>{let y=[],I=!0;return()=>(O,j,H)=>{let K=0;for(let Z of j){let te=O[Z],se=te[H],ge=I&&c==="current"?0:y[Z];y[Z]=se;let Se=c==="current"?se:ge;if(!_t(se)||!_t(ge)){te[H]=K;continue}l==="normal"&&(K+=Se),te[H]=K,l==="trailing"&&(K+=Se)}I=!1}}}function QD(l,c,y,I=!1){let O;if(c.startsWith("window")){let j=c.endsWith("-trailing")?"trailing":"normal";O=cS({mode:j,sum:y},$D)}else O=cS({mode:c,separateNegative:I},ZD);return{type:"group-value-processor",matchGroupIds:[l],adjust:O}}function RM(){return()=>(l,c,y)=>{let I=new Float64Array(32),O=0;for(let j of c){let H=l[j],K=H[y];I[O]=Number.isFinite(K)?K:NaN,O+=1,H[y]=I.subarray(0,O)}}}function JD(l){return{type:"group-value-processor",matchGroupIds:[l],adjust:RM}}function of(l){var c;return(c=l.id)!=null?c:l.property}function Bb(l,c,y){var K,Z;let I=new Map,O=c.defs.values;for(let te=0;te<O.length;te+=1){let se=O[te];if(((K=se.scopes)==null?void 0:K.includes(l))===!1)continue;let ge=of(se);if(I.has(ge))return;I.set(ge,te)}let j=[],H=y.defs.values;for(let te=0;te<H.length;te+=1){let se=H[te];if(((Z=se.scopes)==null?void 0:Z.includes(l))===!1)continue;let ge=of(se),Se=I.get(ge);if(Se==null)return;I.delete(ge),j.push({previousIndex:Se,nextIndex:te})}if(I.size===0)return j}function rf(l,c,y,I,O){for(let{previousIndex:j,nextIndex:H}of y){let K=l[j],Z=c[H],te=K[I],se=Z[O];if(te!==se)return!1}return!0}function sf(l,c,y=!0){return{type:"processor",property:"diff",calculate(I,O){let j=new Map,H=new Map,K=new Map,Z=new Map,te=c.keys,se=I.keys,ge=c.columns,Se=I.columns,Ce=Bb(l,c,I);if(Ce==null)return O;let Pe=Math.max(c.rawData.length,I.rawData.length);for(let He=0;He<Pe;He++){let Ze=He<c.rawData.length,it=He<I.rawData.length,qe=Ze?xb(te,He):void 0,rt=qe!=null?Js(qe):"",dt=it?xb(se,He):void 0,mt=dt!=null?Js(dt):"";if(it&&Ze&&rt===mt){rf(ge,Se,Ce,He,He)||K.set(mt,He);continue}let yt=Z.get(mt);yt!=null?((y||!rf(ge,Se,Ce,yt,He))&&(K.set(mt,He),j.set(mt,He)),Z.delete(mt)):it&&H.set(mt,He);let Lt=H.get(rt);Lt!=null?((y||!rf(ge,Se,Ce,Lt,He))&&(K.set(rt,He),j.set(rt,He)),H.delete(rt)):Ze&&(K.delete(rt),Z.set(rt,He))}let We={changed:H.size>0||K.size>0||Z.size>0,added:new Set(H.keys()),updated:new Set(K.keys()),removed:new Set(Z.keys()),moved:new Set(j.keys())};return et(pe({},O),{[l]:We})}}}function Js(l,...c){let y;return $t(l)?y=l.map(O=>f0(O)).join("___"):y=f0(l),(typeof y=="string"||typeof y=="number"||typeof y=="boolean"||y instanceof Date)&&c.length>0&&(y+=`___${c.join("___")}`),y}var bL=class{constructor(){this.top=1/0,this.right=-1/0,this.bottom=-1/0,this.left=1/0}update(l,c){l>this.right&&(this.right=l),l<this.left&&(this.left=l),c>this.bottom&&(this.bottom=c),c<this.top&&(this.top=c)}},bT=class mZ{constructor(c="",y,I){this.label=c,this.parent=y,this.refId=I,this.x=0,this.y=0,this.subtreeLeft=NaN,this.subtreeRight=NaN,this.children=[],this.leafCount=0,this.prelim=0,this.mod=0,this.ancestor=this,this.change=0,this.shift=0,this.index=0,this.screenX=0,this.screenY=0,this.depth=y?y.depth+1:0}insertTick(c,y){let I=this;for(let O=0;O<c.length;O++){let j=c[O],H=O!==c.length-1,{children:K}=I,Z=K.find(te=>te.label===j);if(Z&&H)I=Z;else{let te=new mZ(j,I,y);te.index=K.length,K.push(te),H&&(I=te)}}}getLeftSibling(){var c;return this.index>0?(c=this.parent)==null?void 0:c.children[this.index-1]:void 0}getLeftmostSibling(){var c;return this.index>0?(c=this.parent)==null?void 0:c.children[0]:void 0}nextLeft(){return this.children[0]}nextRight(){return this.children.at(-1)}getSiblings(){var c,y;return(y=(c=this.parent)==null?void 0:c.children.filter((I,O)=>O!==this.index))!=null?y:[]}};function e1(l){let c=l.reduce((I,O)=>I<O.length?O.length:I,0),y=new bT;for(let I=0;I<l.length;I++){let O=l[I];for(;O.length<c;)O.push("");y.insertTick(O,I)}return y}function qd(l,c,y){let I=c.index-l.index,O=y/I;c.change-=O,c.shift+=y,l.change+=O,c.prelim+=y,c.mod+=y}function pS(l,c,y){return c.getSiblings().indexOf(l.ancestor)>=0?l.ancestor:y}function mS({children:l}){let c=0,y=0;for(let I=l.length-1;I>=0;I--){let O=l[I];O.prelim+=c,O.mod+=c,y+=O.change,c+=O.shift+y}}function t1(l,c){let y=l.getLeftSibling();if(y){let I=l,O=l,j=y,H=O.getLeftmostSibling(),K=O.mod,Z=I.mod,te=j.mod,se=H.mod;for(;j.nextRight()&&O.nextLeft();){j=j.nextRight(),O=O.nextLeft(),H=H.nextLeft(),I=I.nextRight(),I.ancestor=l;let ge=j.prelim+te-(O.prelim+K)+1;ge>0&&(qd(pS(j,l,c),l,ge),K+=ge,Z+=ge),te+=j.mod,K+=O.mod,se+=H.mod,Z+=I.mod}j.nextRight()&&!I.nextRight()?I.mod+=te-Z:(O.nextLeft()&&!H.nextLeft()&&(H.mod+=K-se),c=l)}return c}function PM(l){let{children:c}=l;if(c.length){let[y]=c;for(let j of c)PM(j),y=t1(j,y);mS(l);let I=(c[0].prelim+c.at(-1).prelim)/2,O=l.getLeftSibling();O?(l.prelim=O.prelim+1,l.mod=l.prelim-I):l.prelim=I}else{let y=l.getLeftSibling();l.prelim=y?y.prelim+1:0}}function LM(l,c,y){l.x=l.prelim+c,l.y=l.depth,y.insertNode(l);for(let I of l.children)LM(I,c+l.mod,y)}function OM(l){let{children:c}=l,y=0;for(let I of c)OM(I),I.children.length?y+=I.leafCount:y++;l.leafCount=y,c.length?(l.subtreeLeft=c[0].subtreeLeft,l.subtreeRight=c[c.length-1].subtreeRight,l.x=(l.subtreeLeft+l.subtreeRight)/2):(l.subtreeLeft=l.x,l.subtreeRight=l.x)}function CL(l){let c=new SL,y=e1(l);return PM(y),LM(y,-y.prelim,c),OM(y),c}var SL=class{constructor(){this.dimensions=new bL,this.nodes=[],this.depth=0}insertNode(l){this.depth<l.depth&&(this.depth=l.depth),this.dimensions.update(l.x,l.y),this.nodes.push(l)}scalingX(l,c){let y=1;if(l>0){let{left:I,right:O}=this.dimensions;y=l/(O-I)}return c&&(y*=-1),y}scalingY(l,c){let y=1;if(l>0){let{top:I,bottom:O}=this.dimensions;y=l/(O-I)}return c&&(y*=-1),y}},Lu=class extends un{constructor(){super(...arguments),this.enabled=!0}};D([Je(Zi)],Lu.prototype,"enabled",2),D([Je(Zi,{optional:!0})],Lu.prototype,"avoidCollisions",2),D([Je(na,{optional:!0})],Lu.prototype,"color",2),D([Je(Fi,{optional:!0})],Lu.prototype,"spacing",2),D([Je(mh,{optional:!0})],Lu.prototype,"fontStyle",2),D([Je(fh,{optional:!0})],Lu.prototype,"fontWeight",2),D([Je(Vn.restrict({min:1}),{optional:!0})],Lu.prototype,"fontSize",2),D([Je(ui,{optional:!0})],Lu.prototype,"fontFamily",2);var Gb=class extends un{constructor(){super(...arguments),this.enabled=!0}};D([Je(Zi)],Gb.prototype,"enabled",2),D([Je(Fi,{optional:!0})],Gb.prototype,"width",2),D([Je(na,{optional:!0})],Gb.prototype,"stroke",2);var _M=class extends un{constructor(){super(...arguments),this.label=new Lu,this.tick=new Gb}};D([Je(Gi)],_M.prototype,"label",2),D([Je(Gi)],_M.prototype,"tick",2);var kg=class extends vp{constructor(l){super(l),this.tickScale=new Wl,this.depthOptions=new ho(_M),this.includeInvisibleDomains=!0,this.tickScale.paddingInner=1,this.tickScale.paddingOuter=0}resizeTickTree(){if(!this.tickTreeLayout)return;let{nodes:l}=this.tickTreeLayout,{range:c,step:y,inset:I,bandwidth:O}=this.scale,j=Math.abs(c[1]-c[0])-y,H=this.tickTreeLayout.scalingX(j,c[0]>c[1]),K=I+O/2,Z=0;for(let te of l){let se=te.x*H;Z>se&&(Z=se),te.screenX=se+K}for(let te of l)te.screenX-=Z}getDepthOptionsMap(l){var O,j,H,K,Z,te,se,ge,Se;let c=[],{depthOptions:y,label:I}=this;for(let Ce=0;Ce<l;Ce++)c.push(((j=(O=y[Ce])==null?void 0:O.label.enabled)!=null?j:I.enabled)?{enabled:!0,spacing:(K=(H=y[Ce])==null?void 0:H.label.spacing)!=null?K:I.spacing,lineHeight:po.getLineHeight((se=(te=(Z=y[Ce])==null?void 0:Z.label.fontSize)!=null?te:I.fontSize)!=null?se:10),avoidCollisions:(Se=(ge=y[Ce])==null?void 0:ge.label.avoidCollisions)!=null?Se:I.avoidCollisions}:{enabled:!1,spacing:0,lineHeight:0,avoidCollisions:!1});return c}updateCategoryLabels(){this.computedLayout&&this.tickLabelGroupSelection.update(this.computedLayout.tickLabelLayout).each((l,c)=>l.setProperties(c))}updateAxisLine(){this.computedLayout&&(this.lineNode.visible=this.line.enabled,this.lineNode.stroke=this.line.stroke,this.lineNode.strokeWidth=this.line.width)}computeLayout(){var Vi;if(this.updateDirection(),this.updateScale(),this.updateRange(),this.resizeTickTree(),!((Vi=this.tickTreeLayout)!=null&&Vi.depth))return{bbox:ft.zero,separatorLayout:[],tickLabelLayout:[]};let{step:l}=this.scale,{title:c,label:y,range:I,depthOptions:O}=this,{depth:j,nodes:H}=this.tickTreeLayout,K=Math.ceil(y.fontSize/l),Z=$e(this.rotation),te=this.position==="top"||this.position==="bottom",se=y.getSideFlag(),ge=[],Se=new Map,Ce=new Hs,{defaultRotation:Pe,configuredRotation:Ge}=nb({rotation:y.rotation,parallel:y.parallel,regularFlipRotation:ha(Z-Math.PI/2),parallelFlipRotation:ha(Z)}),We=Pe+Ge,He=this.getDepthOptionsMap(j),Ze=(Si,sn)=>{var ea,Sn;let en=j-Si.depth;if(!((ea=He[en])!=null&&ea.enabled)||sn%K!==0||!Ve(Si.screenX,I))return!1;let Nn=this.formatTick(Si.label,sn-1),dn=this.getLabelStyles({value:Nn,depth:en},(Sn=O[en])==null?void 0:Sn.label);return Ce.setProperties(et(pe({},dn),{text:Nn,textAlign:"center",textBaseline:y.parallel?"hanging":"bottom",rotation:0,translationX:0,translationY:Si.screenX})),!0},it=0,qe={};H.forEach((Si,sn)=>{var ea;let en=j-Si.depth,Nn=fL(Si.label);if((ea=qe[en])!=null||(qe[en]=1),qe[en]<Nn&&(qe[en]=Nn),!(!Ze(Si,sn)||!Ce.getBBox())&&(Se.set(sn,Ce.getBBox()),!Si.leafCount)){Ce.rotation=We;let{width:Sn}=Ce.getBBox();it<Sn&&(it=Sn)}});let rt=ib(),dt=se*He[0].spacing,mt=new Map,yt=Si=>{let sn=it;for(let en=1;en<=Si;en++)sn+=He[en].spacing,(y.mirrored||en!==Si)&&(sn+=qe[en]*He[en].lineHeight);return sn};H.forEach((Si,sn)=>{var Sn;if(sn===0)return;let en=Ze(Si,sn),Nn=!Si.children.length,dn=j-Si.depth;if(Si.parent){let pn=Nn?Si.x:Si.x-(Si.leafCount-1)/2;if(!mt.has(pn)){let ta=(Sn=this.depthOptions[dn])==null?void 0:Sn.tick,wo=it;for(let Ca=0;Ca<=dn;Ca++)wo+=He[Ca].spacing,Ca!==0&&(wo+=qe[Ca]*He[Ca].lineHeight);mt.set(pn,{tickSize:wo,tickStroke:ta==null?void 0:ta.stroke,tickWidth:(ta==null?void 0:ta.enabled)!==!1?ta==null?void 0:ta.width:0})}}if(!en)return;if(Ce.x=dt,Ce.y=0,Nn){let{width:pn}=Se.get(sn),ta=qA(We);Ce.rotation=We,Ce.textAlign="end",Ce.textBaseline="middle",Ce.rotationCenterX=dt-pn/2,Ce.translationX=(He[dn].spacing-pn)/2*ta*se,y.mirrored&&(Ce.translationX+=pn)}else Ce.rotation=te?Pe:-Math.PI/2,Ce.rotationCenterX=dt,Ce.translationX=se*yt(dn);if(He[dn].avoidCollisions){let pn=Nn?l:Si.leafCount*l;if(Ce.getBBox().height>pn){Se.delete(sn);return}}let{text:ea=""}=Ce;ge.push({text:ea,visible:!0,range:this.scale.range,tickId:rt(ea),fill:Ce.fill,fontFamily:Ce.fontFamily,fontSize:Ce.fontSize,fontStyle:Ce.fontStyle,fontWeight:Ce.fontWeight,rotation:Ce.rotation,rotationCenterX:Ce.rotationCenterX,textAlign:Ce.textAlign,textBaseline:Ce.textBaseline,translationX:Ce.translationX,translationY:Ce.translationY,x:Ce.x,y:Ce.y}),Se.set(sn,fr.toCanvas(Ce))});let{enabled:Lt,stroke:Ht,width:qt}=this.line;this.lineNode.datum={x:0,y1:I[0],y2:I[1]},this.lineNode.setProperties({stroke:Ht,strokeWidth:Lt?qt:0});let ri=[...mt.values()];ri.push(ri[0]);let Ei=[this.lineNode.getBBox(),new ft(0,0,ri[0].tickSize*se,0)];c.enabled&&(this.updateTitle(!1,ri[0].tickSize),Ei.push(c.caption.node.getBBox()));let Ni=ft.merge(oe(Se.values(),Ei));return{bbox:this.getTransformBox(Ni),separatorLayout:ri,tickLabelLayout:ge}}update(){if(!this.computedLayout)return;let{tickScale:l,gridLine:c,gridLength:y}=this,{separatorLayout:I}=this.computedLayout,O=l.ticks().map((j,H)=>et(pe({},I[H]),{tick:j,tickId:Js(j,H),tickLabel:j.filter(Boolean).join(" - "),translationY:Math.round(l.convert(j))}));this.gridLineGroupSelection.update(c.enabled&&y?O:[]),this.tickLineGroupSelection.update(this.tick.enabled?O:[]),this.updatePosition(),this.updateCategoryLabels(),this.updateAxisLine(),this.updateGridLines(),this.updateTickLines(),this.updateTitle(),this.resetSelectionNodes()}calculateLayout(){let{separatorLayout:l,tickLabelLayout:c,bbox:y}=this.computeLayout();return this.computedLayout={separatorLayout:l,tickLabelLayout:c},{bbox:y,primaryTickCount:void 0}}onGridVisibilityChange(){this.gridLineGroupSelection.clear(),this.tickLabelGroupSelection.clear()}updateRange(){super.updateRange(),this.tickScale.range=this.scale.range}calculateDomain(){var O;let{direction:l}=this,c=this.boundSeries.filter(j=>j.visible).flatMap(j=>j.getDomain(l));this.setDomain((O=lp(c))!=null?O:Qf(c));let y=this.dataDomain.domain.map(XC);this.tickTreeLayout=CL(y);let I=[];for(let j of this.tickTreeLayout.nodes)j.leafCount||j.refId==null||I.push(this.dataDomain.domain[j.refId]);this.scale.domain=Ea(this.dataDomain.domain,I),this.tickScale.domain=y.concat([[""]])}updateGridLines(){if(!this.gridLength)return;let{width:l,style:c}=this.gridLine,y=this.gridLength*-this.label.getSideFlag();this.gridLineGroupSelection.each((I,O,j)=>{let{stroke:H,lineDash:K}=c[j%c.length],Z=O.translationY;I.visible=this.inRange(Z),I.x1=0,I.x2=y,I.y=Z,I.stroke=H,I.strokeWidth=l,I.lineDash=K})}updateScale(l){super.updateScale(l),this.scale.paddingOuter=this.scale.paddingInner/2}};kg.className="GroupedCategoryAxis",kg.type="grouped-category",D([Je(Ta)],kg.prototype,"depthOptions",2);function fS(l,c,y){let[I,O]=Re(l);I=i1(Math.floor(I),O,c);let j=vS(I,O,c),H=c-1;O=I+H*j;let K=y?[O,I]:[I,O],Z=FM(I,j,c);return{domain:K,ticks:Z}}function i1(l,c,y){let I=Math.abs(c-l)/(y-1),O=Math.floor(Math.log10(I)),j=Math.pow(10,O);return Math.floor(l/j)*j}function FM(l,c,y){let I=Math.floor(Math.log10(c)),O=c>0&&c<1?Math.abs(I):0,j=Math.pow(10,O),H=[];for(let K=0;K<y;K++){let Z=l+c*K;H[K]=Math.round(Z*j)/j}return H}function vS(l,c,y){let I=y-1,O=(c-l)/I;return n1(O)}function n1(l){let c=Math.floor(Math.log10(l)),y=Math.pow(10,c),I=l/y*10;return I>0&&I<=1?y/10:I>1&&I<=2?2*y/10:I>1&&I<=5?5*y/10:I>5&&I<=10?10*y/10:I>10&&I<=20?20*y/10:I>20&&I<=40?40*y/10:I>40&&I<=50?50*y/10:I>50&&I<=100?100*y/10:I}var pd=class extends io{constructor(){super([0,1],[0,1]),this.type="number"}toDomain(l){return l}ticks(){var I;let l=(I=this.tickCount)!=null?I:io.defaultTickCount;if(!this.domain||this.domain.length<2||l<1||!this.domain.every(isFinite))return[];this.refresh();let[c,y]=this.getDomain();if(this.interval){let O=Math.abs(this.interval);if(!r0((y-c)/O,this.getPixelRange()))return js(c,y,O)}return ag(c,y,l,this.minTickCount,this.maxTickCount)}update(){!this.domain||this.domain.length<2||this.nice&&this.updateNiceDomain()}getTickStep(l,c){var y;return(y=this.interval)!=null?y:Ri(l,c,this.tickCount,this.minTickCount,this.maxTickCount)}updateNiceDomain(){let l=this.tickCount,[c,y]=this.domain;if(l===1)[c,y]=Ky(c,y);else if(l>1){let I=c>y?Math.ceil:Math.floor,O=c>y?Math.floor:Math.ceil,j=4;for(let H=0;H<j;H++){let K=c,Z=y,te=this.getTickStep(c,y),[se,ge]=this.domain;if(c=I(se/te)*te,y=O(ge/te)*te,c===K&&y===Z)break}}this.niceDomain=[c,y]}tickFormat({ticks:l,specifier:c}){return Ul(l!=null?l:this.ticks(),c)}},lf=class extends Da{constructor(l,c=new pd){super(l,c),this.min=NaN,this.max=NaN}normaliseDataDomain(l){let{min:c,max:y}=this,{extent:I,clipped:O}=dl(l,c,y);return{domain:I,clipped:O}}updateSecondaryAxisTicks(l){var I;if(!((I=this.dataDomain)!=null&&I.domain.length))return[];let{domain:c,ticks:y}=fS(this.dataDomain.domain,l!=null?l:0,this.reverse);return this.scale.nice=!1,this.scale.domain=c,this.scale.update(),y}};lf.className="NumberAxis",lf.type="number",D([Je(Ld(ei,ph("max"))),lg(NaN)],lf.prototype,"min",2),D([Je(Ld(ei,Gy("min"))),lg(NaN)],lf.prototype,"max",2);var CT=xa(l=>Gt(l)&&l!==0,"a non-zero number"),cf=class extends lf{constructor(l){super(l,new BA),this.min=NaN,this.max=NaN}normaliseDataDomain(l){let{min:c,max:y}=this,{extent:I,clipped:O}=dl(l,c,y);return I[0]<0&&I[1]>0?(Pi.warn("The log axis domain crosses zero, the chart data cannot be rendered. See log axis documentation for more information."),{domain:[],clipped:O}):I[0]===0||I[1]===0?(Pi.warn("The log axis domain contains a value of 0, the chart data cannot be rendered. See log axis documentation for more information."),{domain:[],clipped:O}):{domain:I,clipped:O}}set base(l){this.scale.base=l}get base(){return this.scale.base}updateSecondaryAxisTicks(l){var I;if(!((I=this.dataDomain)!=null&&I.domain.length))return[];let{domain:c,ticks:y}=fS(this.dataDomain.domain,l!=null?l:0,this.reverse);return this.scale.nice=!1,this.scale.domain=c,this.scale.update(),y}};cf.className="LogAxis",cf.type="log",D([Je(Ld(ei,CT,ph("max"))),lg(NaN)],cf.prototype,"min",2),D([Je(Ld(ei,CT,Gy("min"))),lg(NaN)],cf.prototype,"max",2);var jv=class extends Da{constructor(l){super(l,new VA),this.min=void 0,this.max=void 0}normaliseDataDomain(l){var O,j;let{min:c,max:y}=this,I=!1;return typeof c=="number"&&(c=new Date(c)),typeof y=="number"&&(y=new Date(y)),l.length>2&&(l=(j=(O=lp(l))==null?void 0:O.map(H=>new Date(H)))!=null?j:[]),c instanceof Date&&(I||(I=c>l[0]),l=[c,l[1]]),y instanceof Date&&(I||(I=y<l[1]),l=[l[0],y]),l[0]>l[1]&&(l=[]),{domain:l,clipped:I}}onFormatChange(l,c,y,I){I?super.onFormatChange(l,c,y,I):(this.labelFormatter=this.scale.tickFormat({ticks:l,domain:y}),this.datumFormatter=this.scale.tickFormat({ticks:l,domain:y,formatOffset:1}))}updateSecondaryAxisTicks(l){var I;if(!((I=this.dataDomain)!=null&&I.domain.length))return[];let{domain:c,ticks:y}=fS(this.dataDomain.domain.map(Number),l!=null?l:0,this.reverse);return this.scale.nice=!1,this.scale.domain=c.map(O=>new Date(O)),this.scale.update(),y}};jv.className="TimeAxis",jv.type="time",D([Je(Ld(jy,ph("max")),{optional:!0})],jv.prototype,"min",2),D([Je(Ld(jy,Gy("min")),{optional:!0})],jv.prototype,"max",2);var jb=(l,{x0:c,y0:y,x1:I,y1:O,cx:j,cy:H},K,Z)=>{if(Z&&l.moveTo(c,y),c!==I||y!==O){let te=Math.atan2(y-H,c-j),se=Math.atan2(O-H,I-j);l.arc(j,H,K,te,se)}else l.lineTo(c,y)},a1=1e-6,NM=(l,c,y,I,O)=>{let j=!1,H=!1,K=I-Math.sqrt(Math.max(O**2-y**2,0)),Z=0,te=0,se=y-Math.sqrt(Math.max(O**2-I**2,0));return K>l?(j=!0,K=l,Z=y-Math.sqrt(Math.max(O**2-(I-l)**2))):K<a1&&(K=0),se>c?(H=!0,te=I-Math.sqrt(Math.max(O**2-(y-c)**2)),se=c):se<a1&&(se=0),{leading0:K,leading1:Z,trailing0:te,trailing1:se,leadingClipped:j,trailingClipped:H}},Al=(l,c,y,I,O,j,H)=>{let{topLeft:K,topRight:Z,bottomRight:te,bottomLeft:se}=j,ge=Math.max(K+se,Z+te),Se=Math.max(K+Z,se+te);if(ge<=0&&Se<=0){H==null?l.rect(c,y,I,O):l.rect(H.x,H.y,H.width,H.height);return}else if(H==null&&K===Z&&K===te&&K===se){l.roundRect(c,y,I,O,K);return}if(I<0&&(c+=I,I=Math.abs(I)),O<0&&(y+=O,O=Math.abs(O)),I<=0||O<=0)return;if(H==null)H=new ft(c,y,I,O);else{let mt=Math.max(c,H.x),yt=Math.min(c+I,H.x+H.width),Lt=Math.max(y,H.y),Ht=Math.min(y+O,H.y+H.height);H=new ft(mt,Lt,yt-mt,Ht-Lt)}let Ce=Math.max(ge/O,Se/I,1);Ce>1&&(K/=Ce,Z/=Ce,te/=Ce,se/=Ce);let Pe=!0,Ge=!0,We=!0,He=!0,Ze,it,qe,rt;if(Pe){let mt=NM(H.height,H.width,Math.max(c+K-H.x,0),Math.max(y+K-H.y,0),K);mt.leadingClipped&&(He=!1),mt.trailingClipped&&(Ge=!1);let yt=Math.max(H.x+mt.leading1,H.x),Lt=Math.max(H.y+mt.leading0,H.y),Ht=Math.max(H.x+mt.trailing1,H.x),qt=Math.max(H.y+mt.trailing0,H.y),ri=c+K,Ei=y+K;Ze={x0:yt,y0:Lt,x1:Ht,y1:qt,cx:ri,cy:Ei}}if(Ge){let mt=NM(H.width,H.height,Math.max(y+Z-H.y,0),Math.max(H.x+H.width-(c+I-Z),0),Z);mt.leadingClipped&&(Pe=!1),mt.trailingClipped&&(We=!1);let yt=Math.min(H.x+H.width-mt.leading0,H.x+H.width),Lt=Math.max(H.y+mt.leading1,H.y),Ht=Math.min(H.x+H.width-mt.trailing0,H.x+H.width),qt=Math.max(H.y+mt.trailing1,H.y),ri=c+I-Z,Ei=y+Z;it={x0:yt,y0:Lt,x1:Ht,y1:qt,cx:ri,cy:Ei}}if(We){let mt=NM(H.height,H.width,Math.max(H.x+H.width-(c+I-te),0),Math.max(H.y+H.height-(y+O-te),0),te);mt.leadingClipped&&(Ge=!1),mt.trailingClipped&&(He=!1);let yt=Math.min(H.x+H.width-mt.leading1,H.x+H.width),Lt=Math.min(H.y+H.height-mt.leading0,H.y+H.height),Ht=Math.min(H.x+H.width-mt.trailing1,H.x+H.width),qt=Math.min(H.y+H.height-mt.trailing0,H.y+H.height),ri=c+I-te,Ei=y+O-te;qe={x0:yt,y0:Lt,x1:Ht,y1:qt,cx:ri,cy:Ei}}if(He){let mt=NM(H.width,H.height,Math.max(H.y+H.height-(y+O-se),0),Math.max(c+se-H.x,0),se);mt.leadingClipped&&(We=!1),mt.trailingClipped&&(Pe=!1);let yt=Math.max(H.x+mt.leading0,H.x),Lt=Math.min(H.y+H.height-mt.leading1,H.y+H.height),Ht=Math.max(H.x+mt.trailing0,H.x),qt=Math.min(H.y+H.height-mt.trailing1,H.y+H.height),ri=c+se,Ei=y+O-se;rt={x0:yt,y0:Lt,x1:Ht,y1:qt,cx:ri,cy:Ei}}let dt=!1;Pe&&Ze!=null&&(jb(l,Ze,K,!dt),dt||(dt=!0)),Ge&&it!=null&&(jb(l,it,Z,!dt),dt||(dt=!0)),We&&qe!=null&&(jb(l,qe,te,!dt),dt||(dt=!0)),He&&rt!=null&&jb(l,rt,se,!dt),l.closePath()},oo=class extends ic{constructor(){super(...arguments),this.borderPath=new Ur,this.x=0,this.y=0,this.width=10,this.height=10,this.topLeftCornerRadius=0,this.topRightCornerRadius=0,this.bottomRightCornerRadius=0,this.bottomLeftCornerRadius=0,this.clipBBox=void 0,this.crisp=!1,this.lastUpdatePathStrokeWidth=Wn.defaultStyles.strokeWidth,this.effectiveStrokeWidth=Wn.defaultStyles.strokeWidth,this.hittester=super.isPointInPath.bind(this),this.distanceCalculator=super.distanceSquaredTransformedPoint.bind(this),this.microPixelEffectOpacity=1}set cornerRadius(l){this.topLeftCornerRadius=l,this.topRightCornerRadius=l,this.bottomRightCornerRadius=l,this.bottomLeftCornerRadius=l}isDirtyPath(){return this.lastUpdatePathStrokeWidth!==this.strokeWidth||!!(this.path.isDirty()||this.borderPath.isDirty())}updatePath(){var We,He,Ze;let{path:l,borderPath:c,crisp:y,topLeftCornerRadius:I,topRightCornerRadius:O,bottomRightCornerRadius:j,bottomLeftCornerRadius:H}=this,{x:K,y:Z,width:te,height:se,strokeWidth:ge,clipBBox:Se}=this,Pe=1/((He=(We=this.layerManager)==null?void 0:We.canvas.pixelRatio)!=null?He:1),Ge=1;if(l.clear(!0),c.clear(!0),y&&(te<=Pe&&(Ge*=te/Pe),se<=Pe&&(Ge*=se/Pe),te=this.align(K,te),se=this.align(Z,se),K=this.align(K),Z=this.align(Z),Se=Se!=null?new ft(this.align(Se.x),this.align(Se.y),this.align(Se.x,Se.width),this.align(Se.y,Se.height)):void 0),ge)if(te<Pe){let it=K+Pe/2;c.moveTo(it,Z),c.lineTo(it,Z+se),ge=Pe,this.borderClipPath=void 0}else if(se<Pe){let it=Z+Pe/2;c.moveTo(K,it),c.lineTo(K+te,it),ge=Pe,this.borderClipPath=void 0}else if(ge<te&&ge<se){let it=ge/2;K+=it,Z+=it,te-=ge,se-=ge;let qe=Se==null?void 0:Se.clone().shrink(it),rt={topLeft:I>0?I-ge:0,topRight:O>0?O-ge:0,bottomRight:j>0?j-ge:0,bottomLeft:H>0?H-ge:0};this.borderClipPath=void 0,te>0&&se>0&&(qe==null||(qe==null?void 0:qe.width)>0&&(qe==null?void 0:qe.height)>0)&&(Al(l,K,Z,te,se,rt,qe),Al(c,K,Z,te,se,rt,qe))}else this.borderClipPath=(Ze=this.borderClipPath)!=null?Ze:new Ur,this.borderClipPath.clear(!0),this.borderClipPath.rect(K,Z,te,se),c.rect(K,Z,te,se);else{let it={topLeft:I,topRight:O,bottomRight:j,bottomLeft:H};this.borderClipPath=void 0,Al(l,K,Z,te,se,it,Se)}if([I,O,j,H].every(it=>it===0)){let it=this.getBBox();this.hittester=it.containsPoint.bind(it),this.distanceSquared=(qe,rt)=>this.getBBox().distanceSquared(qe,rt)}else this.hittester=super.isPointInPath,this.distanceCalculator=super.distanceSquaredTransformedPoint;this.effectiveStrokeWidth=ge,this.lastUpdatePathStrokeWidth=ge,this.microPixelEffectOpacity=Ge}computeBBox(){var j;let{x:l,y:c,width:y,height:I,clipBBox:O}=this;return(j=O==null?void 0:O.clone())!=null?j:new ft(l,c,y,I)}isPointInPath(l,c){return this.hittester(l,c)}get midPoint(){return{x:this.x+this.width/2,y:this.y+this.height/2}}distanceSquared(l,c){return this.distanceCalculator(l,c)}applyFillAlpha(l){let{fillOpacity:c,microPixelEffectOpacity:y,opacity:I}=this;l.globalAlpha*=I*c*y}renderStroke(l){let{stroke:c,effectiveStrokeWidth:y}=this;if(c&&y){let{globalAlpha:I}=l,{strokeOpacity:O,lineDash:j,lineDashOffset:H,lineCap:K,lineJoin:Z,borderPath:te,borderClipPath:se,opacity:ge,microPixelEffectOpacity:Se}=this;se&&l.clip(se.getPath2D()),this.applyStroke(l),l.globalAlpha*=ge*O*Se,l.lineWidth=y,j&&l.setLineDash(j),H&&(l.lineDashOffset=H),K&&(l.lineCap=K),Z&&(l.lineJoin=Z),l.stroke(te.getPath2D()),l.globalAlpha=I}}};oo.className="Rect",D([Pn()],oo.prototype,"x",2),D([Pn()],oo.prototype,"y",2),D([Pn()],oo.prototype,"width",2),D([Pn()],oo.prototype,"height",2),D([Pn()],oo.prototype,"topLeftCornerRadius",2),D([Pn()],oo.prototype,"topRightCornerRadius",2),D([Pn()],oo.prototype,"bottomRightCornerRadius",2),D([Pn()],oo.prototype,"bottomLeftCornerRadius",2),D([Pn()],oo.prototype,"clipBBox",2),D([Pn()],oo.prototype,"crisp",2);var Nh=class extends M0{constructor(l){super(),this.ctx=l,this.rectNode=new oo,this.textNode=new Gr,this.fill="white",this.node=this.createNode(),this.node.append([this.rectNode,this.textNode]),this.visible=!0,this.destroyFns.push(l.scene.attachNode(this.node),l.layoutManager.addListener("layout:complete",c=>this.onLayoutComplete(c)))}createNode(){return new Mn({name:"background",zIndex:0})}onLayoutComplete(l){let{width:c,height:y}=l.chart;this.rectNode.width=c,this.rectNode.height=y}};D([Je(Zi),aa("node","visible")],Nh.prototype,"visible",2),D([Je(na,{optional:!0}),aa("rectNode","fill")],Nh.prototype,"fill",2),D([Je(Gi,{optional:!0})],Nh.prototype,"image",2),D([Je(ui,{optional:!0}),aa("textNode")],Nh.prototype,"text",2);var yS={type:"root",optionsKey:"background",packageType:"community",chartTypes:["cartesian","polar","hierarchy","topology","flow-proportion","standalone","gauge"],moduleFactory:l=>new Nh(l)};function ST({orientation:l,bboxes:c,maxHeight:y,maxWidth:I,itemPaddingY:O=0,itemPaddingX:j=0,forceResult:H=!1}){let K=l==="horizontal",Z={max:K?I:y,fn:K?Se=>Se.width:Se=>Se.height,padding:K?j:O},te={max:K?y:I,fn:K?Se=>Se.height:Se=>Se.width,padding:K?O:j},se=0,ge=[];for(;se<c.length;){let Se=c.slice(se),Ce=zM(Se,se,Z,te,H);if(!Ce)return;se+=Ce.processedBBoxCount,ge.push(Ce.pageIndices)}return BM(ge,l,c,O,j)}function zM(l,c,y,I,O){let H=xT(l,y);if(H<1){if(!O)return;H=1}let K=H;for(;K>=1;){let Z=wT(l,c,K,y,I,O);if(Z==null&&K<=1)return;if(Z==null){K--;continue}if(typeof Z=="number"){if(Z<=1)return;K=Z<K&&Z>1?Z:K,K--;continue}return{processedBBoxCount:Z.length*Z[0].length,pageIndices:Z}}}function wT(l,c,y,I,O,j){var ge;let H=[],K=0,Z=0,te=[],se=[];for(let Se=0;Se<l.length;Se++){let Ce=(Se+y)%y;Ce===0&&(K+=Z,Z=0,te.length>0&&H.push(te),te=[]);let Pe=I.fn(l[Se])+I.padding;se[Ce]=Math.max((ge=se[Ce])!=null?ge:0,Pe),Z=Math.max(Z,O.fn(l[Se])+O.padding);let Ge=K+Z,We=!j||H.length>0;if(Ge>O.max&&We){te=[];break}if(se.reduce((Ze,it)=>Ze+it,0)>I.max&&!j)return se.length<y?se.length:void 0;te.push(Se+c)}return te.length>0&&H.push(te),H.length>0?H:void 0}function BM(l,c,y,I,O){let j=0,H=0;return{pages:l.map(Z=>{c==="horizontal"&&(Z=wL(Z));let te=0,se=Z.map(Ce=>{let Pe=Ce.map(He=>(te=Math.max(He,te),y[He])),Ge=0,We=0;return Pe.forEach(He=>{Ge+=He.height+I,We=Math.max(We,He.width+O)}),{indices:Ce,bboxes:Pe,columnHeight:Math.ceil(Ge),columnWidth:Math.ceil(We)}}),ge=0,Se=0;return se.forEach(Ce=>{ge+=Ce.columnWidth,Se=Math.max(Se,Ce.columnHeight)}),j=Math.max(ge,j),H=Math.max(Se,H),{columns:se,startIndex:Z[0][0],endIndex:te,pageWidth:ge,pageHeight:Se}}),maxPageWidth:j,maxPageHeight:H}}function wL(l){let c=[];for(let y of l[0])c.push([]);return l.forEach((y,I)=>{y.forEach((O,j)=>{c[j][I]=O})}),c}function xT(l,c){let y=l.length,I=0;for(let O=0;O<y;O++)if(I+=c.fn(l[O])+c.padding,I>c.max)return y/O<2?Math.ceil(y/2):O;return y}var Vb=class extends un{constructor(){super(...arguments),this.color="black",this.fontStyle=void 0,this.fontWeight=void 0,this.fontSize=12,this.fontFamily="Verdana, sans-serif"}};D([Je(na)],Vb.prototype,"color",2),D([Je(mh,{optional:!0})],Vb.prototype,"fontStyle",2),D([Je(fh,{optional:!0})],Vb.prototype,"fontWeight",2),D([Je(Fi)],Vb.prototype,"fontSize",2),D([Je(ui)],Vb.prototype,"fontFamily",2);var md=class extends un{constructor(){super(...arguments),this.size=15,this.fill=void 0,this.fillOpacity=void 0,this.stroke=void 0,this.strokeWidth=1,this.strokeOpacity=1}};D([Je(Fi)],md.prototype,"size",2),D([Je(na,{optional:!0})],md.prototype,"fill",2),D([Je(Ia,{optional:!0})],md.prototype,"fillOpacity",2),D([Je(na,{optional:!0})],md.prototype,"stroke",2),D([Je(Fi)],md.prototype,"strokeWidth",2),D([Je(Ia)],md.prototype,"strokeOpacity",2);var bS=class extends un{constructor(l){super(),this.parent=l,this.shape="triangle",this.size=15,this.padding=8}};D([Xl({changeValue(){this.parent.marker===this&&this.parent.onMarkerShapeChange()}})],bS.prototype,"shape",2),D([Je(Fi)],bS.prototype,"size",2),D([Je(Fi)],bS.prototype,"padding",2);var zh=class extends un{constructor(l,c){super(),this.chartUpdateCallback=l,this.pageUpdateCallback=c,this.id=U(this),this.marker=new bS(this),this.activeStyle=new md,this.inactiveStyle=new md,this.highlightStyle=new md,this.label=new Vb,this.group=new yl({name:"pagination"}),this.labelNode=new Gr,this.destroyFns=[],this.totalPages=0,this.currentPage=0,this.translationX=0,this.translationY=0,this.nextButtonDisabled=!1,this.previousButtonDisabled=!1,this._visible=!0,this._enabled=!0,this._orientation="vertical",this._nextButton=new wg,this._previousButton=new wg,this.labelNode.setProperties({textBaseline:"middle",fontSize:12,fontFamily:"Verdana, sans-serif",fill:"black",y:1}),this.group.append([this.nextButton,this.previousButton,this.labelNode]),this.update(),this.updateMarkers()}destroy(){this.destroyFns.forEach(l=>l())}set visible(l){this._visible=l,this.updateGroupVisibility()}get visible(){return this._visible}set enabled(l){this._enabled=l,this.updateGroupVisibility()}get enabled(){return this._enabled}updateGroupVisibility(){this.group.visible=this.enabled&&this.visible}set orientation(l){switch(this._orientation=l,l){case"horizontal":{this.previousButton.rotation=-Math.PI/2,this.nextButton.rotation=Math.PI/2;break}case"vertical":default:this.previousButton.rotation=0,this.nextButton.rotation=Math.PI}}get orientation(){return this._orientation}set nextButton(l){this._nextButton!==l&&(this.group.removeChild(this._nextButton),this._nextButton=l,this.group.appendChild(l))}get nextButton(){return this._nextButton}set previousButton(l){this._previousButton!==l&&(this.group.removeChild(this._previousButton),this._previousButton=l,this.group.appendChild(l))}get previousButton(){return this._previousButton}update(){this.updateLabel(),this.updatePositions(),this.enableOrDisableButtons()}updatePositions(){this.group.translationX=this.translationX,this.group.translationY=this.translationY,this.updateLabelPosition(),this.updateNextButtonPosition()}updateLabelPosition(){let{size:l,padding:c}=this.marker;this.nextButton.size=l,this.previousButton.size=l,this.labelNode.x=l/2+c}updateNextButtonPosition(){let l=this.labelNode.getBBox();this.nextButton.translationX=l.width+(this.marker.size/2+this.marker.padding)*2}updateLabel(){let{currentPage:l,totalPages:c,labelNode:y,label:{color:I,fontStyle:O,fontWeight:j,fontSize:H,fontFamily:K}}=this;y.text=`${l+1} / ${c}`,y.fill=I,y.fontStyle=O,y.fontWeight=j,y.fontSize=H,y.fontFamily=K}updateMarkers(){let{nextButton:l,previousButton:c,nextButtonDisabled:y,previousButtonDisabled:I,activeStyle:O,inactiveStyle:j,highlightStyle:H,highlightActive:K}=this,Z=(te,se)=>se?j:te===K?H:O;this.updateMarker(l,Z("next",y)),this.updateMarker(c,Z("previous",I))}updateMarker(l,c){var I;let{size:y}=this.marker;l.size=y,l.fill=c.fill,l.fillOpacity=(I=c.fillOpacity)!=null?I:1,l.stroke=c.stroke,l.strokeWidth=c.strokeWidth,l.strokeOpacity=c.strokeOpacity}enableOrDisableButtons(){let{currentPage:l,totalPages:c}=this,y=c===0,I=l===c-1,O=l===0;this.nextButtonDisabled=I||y,this.previousButtonDisabled=O||y}setPage(l){l=Ae(0,l,Math.max(0,this.totalPages-1)),this.currentPage!==l&&(this.currentPage=l,this.onPaginationChanged())}getCursor(l){return{previous:this.previousButtonDisabled,next:this.nextButtonDisabled}[l]?void 0:"pointer"}onClick(l,c){l.preventDefault(),c==="next"&&!this.nextButtonDisabled?(this.incrementPage(),this.onPaginationChanged()):c==="previous"&&!this.previousButtonDisabled&&(this.decrementPage(),this.onPaginationChanged())}onMouseHover(l){this.highlightActive=l,this.updateMarkers(),this.chartUpdateCallback(6)}onPaginationChanged(){this.pageUpdateCallback(this.currentPage)}incrementPage(){this.currentPage=Math.min(this.currentPage+1,this.totalPages-1)}decrementPage(){this.currentPage=Math.max(this.currentPage-1,0)}onMarkerShapeChange(){let l=Tm(Hd(this.marker.shape||wg));this.previousButton=new l,this.nextButton=new l,this.updatePositions(),this.updateMarkers(),this.chartUpdateCallback(6)}attachPagination(l){l.append(this.group)}getBBox(){return this.group.getBBox()}computeCSSBounds(){let l=fr.toCanvas(this.previousButton),c=fr.toCanvas(this.nextButton);return{prev:l,next:c}}};zh.className="Pagination",D([Je(Gi)],zh.prototype,"marker",2),D([Je(Gi)],zh.prototype,"activeStyle",2),D([Je(Gi)],zh.prototype,"inactiveStyle",2),D([Je(Gi)],zh.prototype,"highlightStyle",2),D([Je(Gi)],zh.prototype,"label",2);var GM=class{constructor(l,c){this.idPrefix=c,this.dirty=!0,this.destroyFns=new sd,this.itemList=l.proxyInteractionService.createProxyContainer({type:"list",domManagerId:`${c}-toolbar`,classList:["ag-charts-proxy-legend-toolbar"],ariaLabel:{id:"ariaLabelLegend"}}),this.paginationGroup=l.proxyInteractionService.createProxyContainer({type:"group",domManagerId:`${c}-pagination`,classList:["ag-charts-proxy-legend-pagination"],ariaLabel:{id:"ariaLabelLegendPagination"},ariaOrientation:"horizontal"}),this.itemDescription=Aa("p"),this.itemDescription.style.display="none",this.itemDescription.id=`${c}-ariaDescription`,this.itemDescription.textContent=this.getItemAriaDescription(l.localeManager),this.itemList.getElement().append(this.itemDescription)}destroy(){this.destroyFns.destroy()}initLegendList(l){if(!this.dirty)return;let{ctx:c,itemSelection:y,datumReader:I,itemListener:O}=l,j=c.localeManager,H=y.length;y.each((K,Z,te)=>{var ge;(ge=K.proxyButton)==null||ge.destroy(),K.proxyButton=c.proxyInteractionService.createProxyElement({type:"listswitch",id:`ag-charts-legend-item-${te}`,textContent:this.getItemAriaText(j,I.getItemLabel(Z),te,H),ariaChecked:!!K.datum.enabled,ariaDescribedBy:this.itemDescription.id,parent:this.itemList});let se=K.proxyButton;se.addListener("click",Se=>O.onClick(Se.sourceEvent,K.datum,se)),se.addListener("dblclick",Se=>O.onDoubleClick(Se.sourceEvent,K.datum)),se.addListener("mouseenter",Se=>O.onHover(Se.sourceEvent,K)),se.addListener("mouseleave",()=>O.onLeave()),se.addListener("contextmenu",Se=>O.onContextClick(Se.sourceEvent,K)),se.addListener("blur",()=>O.onLeave()),se.addListener("focus",Se=>O.onHover(Se.sourceEvent,K))}),this.dirty=!1}update(l){this.updateVisibility(l.visible),l.visible&&(this.initLegendList(l),this.updateItemProxyButtons(l),this.updatePaginationProxyButtons(l))}updateVisibility(l){this.itemList.setHidden(!l),this.paginationGroup.setHidden(!l)}updateItemProxyButtons({itemSelection:l,group:c,pagination:y,interactive:I}){let O=fr.toCanvas(c);this.itemList.setBounds(O);let j=Math.max(...l.nodes().map(H=>H.getBBox().height));l.each((H,K)=>{if(H.proxyButton){let Z=H.pageIndex===y.currentPage,{x:te,y:se,height:ge,width:Se}=fr.toCanvas(H),Ce=(j-ge)/2,Pe={x:te-O.x,y:se-Ce-O.y,height:j,width:Se};H.proxyButton.setCursor("pointer"),H.proxyButton.setEnabled(I&&Z),H.proxyButton.setBounds(Pe)}})}updatePaginationProxyButtons(l){var te,se,ge,Se,Ce,Pe;let{ctx:c,pagination:y,oldPages:I,newPages:O}=l;this.paginationGroup.setHidden(!y.visible);let j=((te=I==null?void 0:I.length)!=null?te:O.length)>1,H=O.length>1;j!==H&&(H?(this.prevButton=c.proxyInteractionService.createProxyElement({type:"button",id:`${this.idPrefix}-prev-page`,textContent:{id:"ariaLabelLegendPagePrevious"},tabIndex:0,parent:this.paginationGroup}),this.prevButton.addListener("click",Ge=>y.onClick(Ge.sourceEvent,"previous")),this.prevButton.addListener("mouseenter",()=>y.onMouseHover("previous")),this.prevButton.addListener("mouseleave",()=>y.onMouseHover(void 0)),(se=this.nextButton)!=null||(this.nextButton=c.proxyInteractionService.createProxyElement({type:"button",id:`${this.idPrefix}-next-page`,textContent:{id:"ariaLabelLegendPageNext"},tabIndex:0,parent:this.paginationGroup})),this.nextButton.addListener("click",Ge=>y.onClick(Ge.sourceEvent,"next")),this.nextButton.addListener("mouseenter",()=>y.onMouseHover("next")),this.nextButton.addListener("mouseleave",()=>y.onMouseHover(void 0))):((ge=this.nextButton)==null||ge.destroy(),(Se=this.prevButton)==null||Se.destroy(),this.nextButton=void 0,this.prevButton=void 0));let{prev:K,next:Z}=y.computeCSSBounds();(Ce=this.prevButton)==null||Ce.setBounds(K),(Pe=this.nextButton)==null||Pe.setBounds(Z),this.updatePaginationCursors(l)}updatePaginationCursors({pagination:l}){var c,y;(c=this.nextButton)==null||c.setCursor(l.getCursor("next")),(y=this.prevButton)==null||y.setCursor(l.getCursor("previous"))}onDataUpdate(l,c){this.dirty=l.length!==c.length||l.some((y,I,O)=>{let[j,H]=[c[I],l[I]];return j.id!==H.id})}onLocaleChanged(l,c,y){let I=c.length;c.each(({proxyButton:O},j,H)=>{let K=O==null?void 0:O.getElement();if(K!=null){let Z=y.getItemLabel(j);K.textContent=this.getItemAriaText(l,Z,H,I)}}),this.itemDescription.textContent=this.getItemAriaDescription(l)}onPageChange(l){this.updateItemProxyButtons(l),this.updatePaginationCursors(l)}getItemAriaText(l,c,y,I){return y>=0&&c?(y++,l.t("ariaLabelLegendItem",{label:c,index:y,count:I})):l.t("ariaLabelLegendItemUnknown")}getItemAriaDescription(l){return l.t("ariaDescriptionLegendItem")}};function jM(l,c,y,I){let O={defaultPrevented:!1,apiEvent:{type:l,itemId:c,seriesId:y,event:I,preventDefault:()=>O.defaultPrevented=!0}};return O}var df=class extends Tn{constructor(l){super(),this.sourceImage=l,this.x=0,this.y=0,this.width=0,this.height=0,this.opacity=1}updateBitmap(l,c,y,I){this.sourceImage=l,this.width=l.width/c,this.height=l.height/c,this.x=y/c,this.y=I/c,this.markDirty()}render(l){let{ctx:c}=l,y=this.sourceImage;y&&(c.globalAlpha=this.opacity,c.drawImage(y,0,0,y.width,y.height,this.x,this.y,this.width,this.height)),super.render(l)}};D([kt()],df.prototype,"x",2),D([kt()],df.prototype,"y",2),D([kt()],df.prototype,"width",2),D([kt()],df.prototype,"height",2),D([kt()],df.prototype,"opacity",2);var Ag=class extends Rm(Mn){constructor(){super({name:"markerLabelGroup"}),this.label=new Gr,this.symbolsGroup=new Mn({name:"legend-markerLabel-symbols"}),this.bitmap=new df,this.bitmapDirty=!0,this.enabled=!0,this.pageIndex=NaN,this._marker=void 0,this._line=void 0;let{marker:l,label:c,line:y}=this;c.textBaseline="middle",c.fontSize=12,c.fontFamily="Verdana, sans-serif",c.fill="black",c.y=1,this.updateSymbols(l,y),this.append([this.symbolsGroup,c])}destroy(){var l;super.destroy(),(l=this.proxyButton)==null||l.destroy()}get marker(){return this._marker}get line(){return this._line}updateSymbols(l,c){this._marker===l&&this._line===c||(this.bitmapDirty=!0,this._marker=l,this._line=c,this.symbolsGroup.clear(),this.symbolsGroup.append([this.bitmap,c,l].filter(to)))}setEnabled(l){this.enabled=l,this.refreshVisibilities()}refreshVisibilities(){let l=this.enabled?1:.5;this.label.opacity=l,this.opacity=l,this.bitmap.opacity=l,this.setBitmapVisibility(!this.enabled)}setBitmapVisibility(l){let{line:c,marker:y}=this;y!=null&&(y.visible=!l),c!=null&&(c.visible=!l),this.bitmap.visible=l}update(l,{spriteAAPadding:c,spritePixelRatio:y},I){var qe,rt,dt;let{marker:O,line:j}=this,{length:H,spacing:K,isCustomMarker:Z}=I,te=1/0,se=1/0,ge=1/0,Se=1/0,Ce=1/0,Pe=0,Ge=0;if(O){let{size:mt}=O,yt=O.constructor.center,Lt=(mt+O.strokeWidth)/2;Pe=(yt.x-.5)*mt,Ge=(yt.y-.5)*mt,Z?(O.x=0,O.y=0,O.translationX=Pe*mt+H/2,O.translationY=Ge*mt,Se=O.translationY-Lt,Ce=O.translationX-Lt):(O.x=Pe+H/2,O.y=Ge,Se=O.y-Lt,Ce=O.x-Lt)}j&&(j.x1=0,j.x2=H,j.y1=0,j.y2=0,j.markDirty(),te=-j.strokeWidth/2,se=j.x1,ge=j.x2);let We=Math.min(se,ge,Ce),He=Math.min(te,Se),Ze=(qe=j==null?void 0:j.x2)!=null?qe:-1/0,it=((rt=O==null?void 0:O.x)!=null?rt:0)+((dt=O==null?void 0:O.size)!=null?dt:0)/2;if(this.label.x=Math.max(Ze,it)+K,this.bitmapDirty){this.setBitmapVisibility(!1);let mt=Pe+(c+We)*y,yt=Ge+(c-He)*y,Lt=l.renderSprite(this.symbolsGroup,{scale:y,translateX:Math.floor(mt),translateY:Math.floor(yt)});this.bitmap.updateBitmap(Lt,y,Math.ceil(-mt),Math.ceil(-yt)),this.bitmapDirty=!1,this.refreshVisibilities()}}computeBBox(){let{label:l,line:c,marker:y}=this;return this.toParent(Mn.computeChildrenBBox([l,c,y].filter(to),!1))}};Ag.className="MarkerLabel",D([aa("label")],Ag.prototype,"text",2),D([aa("label")],Ag.prototype,"fontStyle",2),D([aa("label")],Ag.prototype,"fontWeight",2),D([aa("label")],Ag.prototype,"fontSize",2),D([aa("label")],Ag.prototype,"fontFamily",2),D([aa("label","fill")],Ag.prototype,"color",2);var uf=class extends un{constructor(){super(...arguments),this.maxLength=void 0,this.color="black",this.fontStyle=void 0,this.fontWeight=void 0,this.fontSize=12,this.fontFamily="Verdana, sans-serif"}};D([Je(Fi,{optional:!0})],uf.prototype,"maxLength",2),D([Je(na)],uf.prototype,"color",2),D([Je(mh,{optional:!0})],uf.prototype,"fontStyle",2),D([Je(fh,{optional:!0})],uf.prototype,"fontWeight",2),D([Je(Fi)],uf.prototype,"fontSize",2),D([Je(ui)],uf.prototype,"fontFamily",2),D([Je(no,{optional:!0})],uf.prototype,"formatter",2);var Vv=class extends un{constructor(){super(...arguments),this.size=15,this.padding=8}};D([mp(l=>{var c;return(c=l.parent)==null?void 0:c.onMarkerShapeChange()})],Vv.prototype,"shape",2),D([Je(Fi)],Vv.prototype,"size",2),D([Je(Fi)],Vv.prototype,"padding",2),D([Je(Fi,{optional:!0})],Vv.prototype,"strokeWidth",2),D([Je(Zi)],Vv.prototype,"enabled",2);var o1=class extends un{};D([Je(Fi,{optional:!0})],o1.prototype,"strokeWidth",2),D([Je(Fi,{optional:!0})],o1.prototype,"length",2);var Fp=class extends un{constructor(){super(...arguments),this.paddingX=16,this.paddingY=8,this.showSeriesStroke=!1,this.marker=new Vv,this.label=new uf,this.line=new o1}};D([Je(Fi,{optional:!0})],Fp.prototype,"maxWidth",2),D([Je(Fi)],Fp.prototype,"paddingX",2),D([Je(Fi)],Fp.prototype,"paddingY",2),D([Je(Zi)],Fp.prototype,"showSeriesStroke",2),D([Je(Gi)],Fp.prototype,"marker",2),D([Je(Gi)],Fp.prototype,"label",2),D([Je(Gi)],Fp.prototype,"line",2);var r1=class extends un{};D([Je(no,{optional:!0})],r1.prototype,"legendItemClick",2),D([Je(no,{optional:!0})],r1.prototype,"legendItemDoubleClick",2);var Dg="legend-visibility",Yd="legend-other-series",nc=class extends un{constructor(l){super(),this.ctx=l,this.id=U(this),this.group=new yl({name:"legend",zIndex:13}),this.itemSelection=No.select(this.group,Ag),this.spriteRenderer=void 0,this.oldSize=[0,0],this.pages=[],this.maxPageSize=[0,0],this.paginationTrackingIndex=0,this.truncatedItems=new Set,this._data=[],this._symbolsDirty=!0,this.toggleSeries=!0,this.item=new Fp,this.listeners=new r1,this.enabled=!0,this.position="bottom",this.spacing=20,this.destroyFns=[],this.size=[0,0],this._visible=!0,this.item.marker.parent=this,this.pagination=new zh(c=>l.updateService.update(c),c=>this.updatePageNumber(c)),this.pagination.attachPagination(this.group),this.destroyFns.push(l.contextMenuRegistry.registerDefaultAction({id:Dg,type:"legend",label:"contextMenuToggleSeriesVisibility",action:c=>this.contextToggleVisibility(c)}),l.contextMenuRegistry.registerDefaultAction({id:Yd,type:"legend",label:"contextMenuToggleOtherSeries",action:c=>this.contextToggleOtherSeries(c)}),l.legendManager.addListener("legend-change",this.onLegendDataChange.bind(this))),this.destroyFns.push(l.layoutManager.registerElement(1,c=>this.positionLegend(c)),l.localeManager.addListener("locale-changed",()=>this.onLocaleChanged()),()=>this.group.remove()),this.domProxy=new GM(this.ctx,this.id),this.ctx.historyManager.addMementoOriginator(l.legendManager)}set data(l){this.domProxy.onDataUpdate(this._data,l),this._data=l,this._symbolsDirty=!0,this.updateGroupVisibility()}get data(){return this._data}onLegendDataChange({legendData:l=[]}){if(!this.enabled)return;let c=l.filter(I=>!I.hideInLegend),{data:y}=this;xn(l,y)||(this.data=c)}destroy(){this.ctx.domManager.removeChild("canvas-overlay",`${this.id}-toolbar`),this.ctx.domManager.removeChild("canvas-overlay",`${this.id}-pagination`),this.destroyFns.forEach(l=>l()),this.pagination.destroy(),this.itemSelection.clear(),this.domProxy.destroy()}onMarkerShapeChange(){this.itemSelection.clear(),this.group.markDirty()}getOrientation(){if(this.orientation!==void 0)return this.orientation;switch(this.position){case"right":case"left":return"vertical";case"bottom":case"top":return"horizontal"}}set visible(l){this._visible=l,this.updateGroupVisibility()}get visible(){return this._visible}updateGroupVisibility(){this.group.visible=this.enabled&&this.visible&&this.data.length>0}attachLegend(l){l.appendChild(this.group)}getItemLabel(l){let{ctx:{callbackCache:c}}=this,{formatter:y}=this.item.label;if(y){let I=l.datum;return c.call(y,pe({itemId:l.itemId,value:l.label.text,seriesId:l.seriesId},I&&{datum:I}))}return l.label.text}calcLayout(l,c){var Lt;let{paddingX:y,paddingY:I,label:O,maxWidth:j,label:{maxLength:H=1/0,fontStyle:K,fontWeight:Z,fontSize:te,fontFamily:se}}=this.item,ge=[...this.data];this.reverseOrder&&ge.reverse(),this.itemSelection.update(ge);let Se=[],Ce=po.toFontString(O),Pe=.8,Ge=j!=null?j:l*Pe,We=this.calculateSpriteDimensions();if((Lt=this.spriteRenderer)!=null||(this.spriteRenderer=new Ys),this.spriteRenderer.resize(We),this.itemSelection.each((Ht,qt)=>{var Si;Ht.fontStyle=K,Ht.fontWeight=Z,Ht.fontSize=te,Ht.fontFamily=se;let ri=this.updateMarkerLabel(this.spriteRenderer,Ht,qt,We),Ei=(Si=qt.itemId)!=null?Si:qt.id,Ni=this.getItemLabel(qt),Vi=(Ni!=null?Ni:"<unknown>").replace(/\r?\n/g," ");Ht.text=this.truncate(Vi,H,Ge,ri,Ce,Ei),Se.push(Ht.getBBox())}),this._symbolsDirty=!1,l=Math.max(1,l),c=Math.max(1,c),!isFinite(l))return{};let He=this.size,Ze=this.oldSize;He[0]=l,He[1]=c,(He[0]!==Ze[0]||He[1]!==Ze[1])&&(Ze[0]=He[0],Ze[1]=He[1]);let{pages:it,maxPageHeight:qe,maxPageWidth:rt}=this.updatePagination(Se,l,c),dt=this.pages;this.pages=it,this.maxPageSize=[rt-y,qe-I];let mt=this.pagination.currentPage,yt=this.pages[mt];return this.pages.length<1||!yt?(this.visible=!1,{oldPages:dt}):(this.visible=!0,this.updatePositions(mt),this.update(),{oldPages:dt})}isCustomMarker(l,c){return l&&c!==void 0&&typeof c!="string"}calcSymbolsEnabled(l){var H;let{showSeriesStroke:c,marker:y}=this.item,I=!!y.enabled||!c||((H=l.marker.enabled)!=null?H:!0),O=!!(l.line&&c),j=this.isCustomMarker(I,l.marker.shape);return{markerEnabled:I,lineEnabled:O,isCustomMarker:j}}calcSymbolsLengths(l){var ge;let{marker:c,line:y}=this.item,{markerEnabled:I,lineEnabled:O}=this.calcSymbolsEnabled(l),{strokeWidth:j}=this.getMarkerStyles(l),{strokeWidth:H}=O?this.getLineStyles(l):{strokeWidth:0},K,{shape:Z}=l.marker;if(this.isCustomMarker(I,Z)){let Se=Hd(Z),Ce=new Se;Ce.updatePath();let Pe=Ce.getBBox();K=Math.max(Pe.width,Pe.height)}let te=I?c.size:0,se=O?(ge=y.length)!=null?ge:25:0;return{markerLength:te,markerStrokeWidth:j,lineLength:se,lineStrokeWidth:H,customMarkerSize:K}}calculateSpriteDimensions(){let l=0,c=0,y=0,I=0;return this.itemSelection.each((j,H)=>{let{symbol:K}=H,{markerLength:Z,markerStrokeWidth:te,lineLength:se,lineStrokeWidth:ge,customMarkerSize:Se=-1/0}=this.calcSymbolsLengths(K),Ce=Z+te;I=Math.max(I,se,Se,Z),c=Math.max(c,se,Se,Ce),y=Math.max(y,ge,Ce),l=Math.max(l,te+.5)}),c+=l*2,y+=l*2,{spritePixelRatio:ca().devicePixelRatio,spriteAAPadding:l,spriteWidth:c,spriteHeight:y,markerWidth:I}}updateMarkerLabel(l,c,y,I){let{marker:O,paddingX:j}=this.item,{markerWidth:H}=I,{symbol:K}=y,Z=j,{markerEnabled:te,lineEnabled:se,isCustomMarker:ge}=this.calcSymbolsEnabled(K);if(this._symbolsDirty){let{shape:We=K.marker.shape}=O,He=Hd(We);c.updateSymbols(new He({zIndex:1}),new ns({zIndex:0}))}let Se=O.padding,{marker:Ce,line:Pe}=c;Ce!=null&&(Ce.size=te||!se?O.size:0);let Ge={length:H,spacing:Se,isCustomMarker:ge};if((te||se)&&(Z+=Se+H),Ce){let{strokeWidth:We,fill:He,stroke:Ze,fillOpacity:it,strokeOpacity:qe}=this.getMarkerStyles(K);Ce.fill=He,Ce.stroke=Ze,Ce.strokeWidth=We,Ce.fillOpacity=it,Ce.strokeOpacity=qe}if(!se&&Pe!=null)Pe.strokeWidth=0;else if(Pe){let We=this.getLineStyles(K);Pe.stroke=We.stroke,Pe.strokeOpacity=We.strokeOpacity,Pe.strokeWidth=We.strokeWidth,Pe.lineDash=We.lineDash}return c.update(l,I,Ge),Z}truncate(l,c,y,I,O,j){let H=!1;l.length>c&&(l=l.substring(0,c),H=!0);let K=Cs.getMeasurer({font:O}),Z=m0.truncateLine(l,K,y-I,H);return Z.endsWith(po.EllipsisChar)?this.truncatedItems.add(j):this.truncatedItems.delete(j),Z}updatePagination(l,c,y){let I=this.getOrientation(),O=Math.min(this.paginationTrackingIndex,l.length);this.pagination.orientation=I,this.pagination.translationX=0,this.pagination.translationY=0;let{pages:j,maxPageHeight:H,maxPageWidth:K,paginationBBox:Z,paginationVertical:te}=this.calculatePagination(l,c,y),se=j.findIndex(it=>it.endIndex>=O);this.pagination.currentPage=Ae(0,se,j.length-1);let{paddingX:ge,paddingY:Se}=this.item,Ce=8,Pe=K-ge,Ge=H-Se,We=0,He=-Z.y-this.item.marker.size/2;te?He+=Ge+Ce:(We+=-Z.x+Pe+Ce,He+=(Ge-Z.height)/2),this.pagination.translationX=We,this.pagination.translationY=He,this.pagination.update(),this.pagination.updateMarkers();let Ze=0;return this.itemSelection.each((it,qe,rt)=>{var dt,mt;rt>((mt=(dt=j[Ze])==null?void 0:dt.endIndex)!=null?mt:1/0)&&Ze++,it.pageIndex=Ze}),{maxPageHeight:H,maxPageWidth:K,pages:j}}calculatePagination(l,c,y){var Ge,We,He;let{paddingX:I,paddingY:O}=this.item,j=this.getOrientation(),H=["left","right"].includes(this.position),K=this.pagination.getBBox(),Z=new ft(0,0,0,0),te=[],se=0,ge=0,Se=0,Ce=Ze=>Ze.width===K.width&&Ze.height===K.height,Pe=this.maxWidth!==void 0&&this.maxHeight!==void 0;do{if(Se++>10){Pi.warn("unable to find stable legend layout.");break}K=Z;let Ze=c-(H?0:K.width),it=y-(H?K.height:0),qe=ST({orientation:j,bboxes:l,maxHeight:it,maxWidth:Ze,itemPaddingY:O,itemPaddingX:I,forceResult:Pe});te=(Ge=qe==null?void 0:qe.pages)!=null?Ge:[],se=(We=qe==null?void 0:qe.maxPageWidth)!=null?We:0,ge=(He=qe==null?void 0:qe.maxPageHeight)!=null?He:0;let rt=te.length;if(this.pagination.visible=rt>1,this.pagination.totalPages=rt,this.pagination.update(),this.pagination.updateMarkers(),Z=this.pagination.getBBox(),!this.pagination.visible)break}while(!Ce(Z));return{maxPageWidth:se,maxPageHeight:ge,pages:te,paginationBBox:Z,paginationVertical:H}}updatePositions(l=0){let{item:{paddingY:c},itemSelection:y,pages:I}=this;if(I.length<1||!I[l])return;let{columns:O,startIndex:j,endIndex:H}=I[l],K=0,Z=0,te=O.length,se=O[0].indices.length,ge=this.getOrientation()==="horizontal",Se=O[0].bboxes[0].height+c,Ce=[];y.each((Pe,Ge,We)=>{var rt,dt;if(We<j||We>H){Pe.visible=!1;return}let He=We-j,Ze,it;ge?(Ze=He%te,it=Math.floor(He/te)):(Ze=Math.floor(He/se),it=He%se),Pe.visible=!0;let qe=O[Ze];qe&&(Z=Math.floor(Se*it),K=Math.floor((rt=Ce[it])!=null?rt:0),Ce[it]=((dt=Ce[it])!=null?dt:0)+qe.columnWidth,Pe.translationX=K,Pe.translationY=Z)})}updatePageNumber(l){let{itemSelection:c,group:y,pagination:I,pages:O,toggleSeries:j}=this,{startIndex:H,endIndex:K}=O[l];H===0?this.paginationTrackingIndex=0:l===O.length-1?this.paginationTrackingIndex=K:this.paginationTrackingIndex=Math.floor((H+K)/2),this.pagination.update(),this.pagination.updateMarkers(),this.updatePositions(l),this.domProxy.onPageChange({itemSelection:c,group:y,pagination:I,interactive:j}),this.ctx.updateService.update(6)}update(){let{label:{color:l}}=this.item;this.itemSelection.each((c,y)=>{c.setEnabled(y.enabled),c.color=l}),this.updateContextMenu()}updateContextMenu(){let{toggleSeries:l,ctx:{contextMenuRegistry:c}}=this;l?(c.hideAction(Dg),c.hideAction(Yd)):(c.showAction(Dg),c.showAction(Yd))}getLineStyles(l){var H,K;let{stroke:c,strokeOpacity:y=1,strokeWidth:I,lineDash:O}=(H=l.line)!=null?H:{},j=Math.min(2,I!=null?I:1);return{stroke:c,strokeOpacity:y,strokeWidth:(K=this.item.line.strokeWidth)!=null?K:j,lineDash:O}}getMarkerStyles(l){var K;let{fill:c,stroke:y,strokeOpacity:I=1,fillOpacity:O=1,strokeWidth:j}=l.marker,H=Math.min(2,j!=null?j:1);return{fill:c,stroke:y,strokeOpacity:I,fillOpacity:O,strokeWidth:(K=this.item.marker.strokeWidth)!=null?K:H}}computePagedBBox(){let l=Mn.computeChildrenBBox(this.group.children());if(this.pages.length>1){let[c,y]=this.maxPageSize;l.height=Math.max(y,l.height),l.width=Math.max(c,l.width)}return l}findNode(l){var I;let{datum:c,proxyButton:y}=(I=this.itemSelection.select(O=>{var j;return((j=O.datum)==null?void 0:j.itemId)===l.itemId})[0])!=null?I:{};if(c===void 0||y===void 0)throw new Error(`AG Charts - Missing required properties { datum: ${c}, proxyButton: ${JSON.stringify(y)} }`);return{datum:c,proxyButton:y}}contextToggleVisibility(l){let{datum:c,proxyButton:y}=this.findNode(l);this.doClick(l.event,c,y)}contextToggleOtherSeries(l){this.doDoubleClick(l.event,this.findNode(l).datum)}onContextClick(l,c){var K;let y=c.datum;this.preventHidingAll&&((K=this.contextMenuDatum)!=null&&K.enabled)&&this.getVisibleItemCount()<=1?this.ctx.contextMenuRegistry.disableAction(Dg):this.ctx.contextMenuRegistry.enableAction(Dg);let{offsetX:I,offsetY:O}=l,{x:j,y:H}=fr.toCanvasPoint(c,I,O);this.ctx.contextMenuRegistry.dispatchContext("legend",{sourceEvent:l,canvasX:j,canvasY:H},{legendItem:y})}onClick(l,c,y){this.doClick(l,c,y)&&l.preventDefault()}getVisibleItemCount(){return this.ctx.chartService.series.flatMap(l=>l.getLegendData("category")).filter(l=>l.enabled).length}doClick(l,c,y){var Ge;let{listeners:{legendItemClick:I},ctx:{chartService:O,highlightManager:j},preventHidingAll:H,toggleSeries:K}=this;if(!c)return!1;let{legendType:Z,seriesId:te,itemId:se,enabled:ge}=c,Se=O.series.find(We=>We.id===te);if(!Se)return!1;let Ce=ge,Pe=jM("click",se,Se.id,l);return I==null||I(Pe.apiEvent),Pe.defaultPrevented||(K&&(Ce=!ge,H&&!Ce&&this.getVisibleItemCount()<2&&(Ce=!0),y.setChecked(Ce),this.ctx.chartEventManager.legendItemClick(Z,Se,se,Ce,c.legendItemName)),Ce?j.updateHighlight(this.id,{series:Se,itemId:se,datum:void 0}):j.updateHighlight(this.id),this.ctx.legendManager.update(),this.ctx.updateService.update(2,{forceNodeDataRefresh:!0,skipAnimations:(Ge=c.skipAnimations)!=null?Ge:!1})),!0}onDoubleClick(l,c){this.doDoubleClick(l,c)&&l.preventDefault()}doDoubleClick(l,c){var ge;let{listeners:{legendItemDoubleClick:y},ctx:{chartService:I},toggleSeries:O}=this;if(I.mode==="integrated"||!c)return!1;let{legendType:j,id:H,itemId:K,seriesId:Z}=c,te=I.series.find(Se=>Se.id===H);if(!te)return!1;let se=jM("dblclick",K,te.id,l);if(y==null||y(se.apiEvent),se.defaultPrevented)return!0;if(O){let Se=I.series.flatMap(Ge=>Ge.getLegendData("category")),Ce=Se.filter(Ge=>Ge.enabled).length,Pe=Se.find(Ge=>Ge.itemId===K&&Ge.seriesId===Z);this.ctx.chartEventManager.legendItemDoubleClick(j,te,K,(ge=Pe==null?void 0:Pe.enabled)!=null?ge:!1,Ce,Pe==null?void 0:Pe.legendItemName)}return this.ctx.legendManager.update(),this.ctx.updateService.update(2,{forceNodeDataRefresh:!0}),!0}toTooltipMeta(l,c){let y;if(l instanceof FocusEvent){let{x:j,y:H}=fr.toCanvas(c).computeCenter();y={type:"keyboard",canvasX:j,canvasY:H}}else{l.preventDefault();let{x:j,y:H}=fr.toCanvasPoint(c,l.offsetX,l.offsetY);y={type:"hover",canvasX:j,canvasY:H}}let{canvasX:I,canvasY:O}=y;return{canvasX:I,canvasY:O,lastPointerEvent:y,showArrow:!1}}onHover(l,c){var O;if(!this.enabled)throw new Error("AG Charts - onHover handler called on disabled legend");this.pagination.setPage(c.pageIndex);let y=c.datum,I=y?this.ctx.chartService.series.find(j=>j.id===(y==null?void 0:y.id)):void 0;if(y&&this.truncatedItems.has((O=y.itemId)!=null?O:y.id)){let j=this.toTooltipMeta(l,c);this.ctx.tooltipManager.updateTooltip(this.id,j,{title:this.getItemLabel(y)})}else this.ctx.tooltipManager.removeTooltip(this.id);y!=null&&y.enabled&&I?this.updateHighlight({series:I,itemId:y==null?void 0:y.itemId,datum:void 0}):this.updateHighlight()}onLeave(){this.ctx.tooltipManager.removeTooltip(this.id),this.updateHighlight()}updateHighlight(l){let c=this.ctx.interactionManager.getState();c===32?this.ctx.highlightManager.updateHighlight(this.id,l):c===2&&(this.pendingHighlightDatum=l,this.ctx.animationManager.onBatchStop(()=>{this.ctx.highlightManager.updateHighlight(this.id,this.pendingHighlightDatum)}))}onLocaleChanged(){this.domProxy.onLocaleChanged(this.ctx.localeManager,this.itemSelection,this)}positionLegend(l){let c=this.positionLegendScene(l);this.positionLegendDOM(c)}positionLegendScene(l){if(!this.enabled||!this.data.length)return;let{layoutBox:c}=l,{x:y,y:I,width:O,height:j}=c,[H,K]=this.calculateLegendDimensions(c),{oldPages:Z}=this.calcLayout(H,K),te=this.computePagedBBox(),se=()=>{switch(this.position){case"top":case"left":return 0;case"bottom":return j-te.height;case"right":default:return O-te.width}};if(this.visible){let ge=this.spacing,Se,Ce;switch(this.position){case"top":case"bottom":Se=(O-te.width)/2,Ce=se(),c.shrink(te.height+ge,this.position);break;case"left":case"right":default:Se=se(),Ce=(j-te.height)/2,c.shrink(te.width+ge,this.position)}this.group.translationX=Math.floor(y+Se-te.x),this.group.translationY=Math.floor(I+Ce-te.y)}return Z}positionLegendDOM(l){let{ctx:c,itemSelection:y,pagination:I,pages:O,toggleSeries:j,group:H}=this,K=this.visible&&this.enabled;this.domProxy.update({visible:K,interactive:j,ctx:c,itemSelection:y,group:H,pagination:I,oldPages:l,newPages:O,datumReader:this,itemListener:this})}calculateLegendDimensions(l){let{width:c,height:y}=l,I=c/y,O=.5,j=.2,H=.25,K,Z;switch(this.position){case"top":case"bottom":{let te=I<1?Math.min(O,j*(1/I)):j;K=this.maxWidth?Math.min(this.maxWidth,c):c,Z=this.maxHeight?Math.min(this.maxHeight,y):Math.round(y*te);break}case"left":case"right":default:{let te=I>1?Math.min(O,H*I):H;K=this.maxWidth?Math.min(this.maxWidth,c):Math.round(c*te),Z=this.maxHeight?Math.min(this.maxHeight,y):y}}return[K,Z]}};nc.className="Legend",D([Je(Zi)],nc.prototype,"toggleSeries",2),D([Je(Gi)],nc.prototype,"pagination",2),D([Je(Gi)],nc.prototype,"item",2),D([Je(Gi)],nc.prototype,"listeners",2),D([mp((l,c,y)=>{if(l.updateGroupVisibility(),c===y)return;let{ctx:{legendManager:I,stateManager:O}}=l;y===!1&&c===!0&&O.restoreState(I)}),Je(Zi)],nc.prototype,"enabled",2),D([Je(n0)],nc.prototype,"position",2),D([Je(Fi,{optional:!0})],nc.prototype,"maxWidth",2),D([Je(Fi,{optional:!0})],nc.prototype,"maxHeight",2),D([Je(Zi,{optional:!0})],nc.prototype,"reverseOrder",2),D([Je(wa(["horizontal","vertical"],"an orientation"),{optional:!0})],nc.prototype,"orientation",2),D([Je(Zi,{optional:!0})],nc.prototype,"preventHidingAll",2),D([Je(Fi)],nc.prototype,"spacing",2);var Bh={type:"legend",optionsKey:"legend",identifier:"category",chartTypes:["cartesian","polar","hierarchy","topology","flow-proportion","standalone","gauge"],moduleFactory:l=>new nc(l),packageType:"community",removable:"standalone-only"},s1={};M(s1,{CARTESIAN_AXIS_TYPE:()=>kT,CARTESIAN_POSITION:()=>VM,FONT_SIZE:()=>MT,POLAR_AXIS_SHAPE:()=>DT,POLAR_AXIS_TYPE:()=>AT});var MT=(l=>(l[l.SMALL=12]="SMALL",l[l.MEDIUM=13]="MEDIUM",l[l.LARGE=17]="LARGE",l))(MT||{}),VM=(l=>(l.TOP="top",l.RIGHT="right",l.BOTTOM="bottom",l.LEFT="left",l))(VM||{}),kT=(l=>(l.CATEGORY="category",l.GROUPED_CATEGORY="grouped-category",l.ORDINAL_TIME="ordinal-time",l.NUMBER="number",l.TIME="time",l.LOG="log",l))(kT||{}),AT=(l=>(l.ANGLE_CATEGORY="angle-category",l.ANGLE_NUMBER="angle-number",l.RADIUS_CATEGORY="radius-category",l.RADIUS_NUMBER="radius-number",l))(AT||{}),DT=(l=>(l.CIRCLE="circle",l.POLYGON="polygon",l))(DT||{}),l1={};M(l1,{DEFAULT_ANNOTATION_BACKGROUND_FILL:()=>Kr,DEFAULT_ANNOTATION_COLOR:()=>Bc,DEFAULT_ANNOTATION_HANDLE_FILL:()=>Pg,DEFAULT_ANNOTATION_STATISTICS_COLOR:()=>Uv,DEFAULT_ANNOTATION_STATISTICS_DIVIDER_STROKE:()=>Xb,DEFAULT_ANNOTATION_STATISTICS_DOWN_FILL:()=>ZM,DEFAULT_ANNOTATION_STATISTICS_DOWN_STROKE:()=>bo,DEFAULT_ANNOTATION_STATISTICS_FILL:()=>Yb,DEFAULT_ANNOTATION_STATISTICS_STROKE:()=>ff,DEFAULT_AXIS_GRID_COLOUR:()=>Ms,DEFAULT_AXIS_LINE_COLOUR:()=>Wb,DEFAULT_BACKGROUND_COLOUR:()=>Eg,DEFAULT_CAPTION_ALIGNMENT:()=>hf,DEFAULT_CAPTION_LAYOUT_STYLE:()=>Np,DEFAULT_COLOURS:()=>wS,DEFAULT_CROSS_LINES_COLOUR:()=>Ub,DEFAULT_DIVERGING_SERIES_COLOR_RANGE:()=>Nc,DEFAULT_FIBONACCI_STROKES:()=>XM,DEFAULT_FONT_FAMILY:()=>Jo,DEFAULT_FUNNEL_SERIES_COLOR_RANGE:()=>Rg,DEFAULT_GAUGE_SERIES_COLOR_RANGE:()=>zc,DEFAULT_GRIDLINE_ENABLED:()=>rr,DEFAULT_HIERARCHY_FILLS:()=>qM,DEFAULT_HIERARCHY_STROKES:()=>YM,DEFAULT_INSIDE_SERIES_LABEL_COLOUR:()=>fd,DEFAULT_INVERTED_BACKGROUND_COLOUR:()=>Dl,DEFAULT_INVERTED_LABEL_COLOUR:()=>HM,DEFAULT_LABEL_COLOUR:()=>jo,DEFAULT_MUTED_LABEL_COLOUR:()=>vd,DEFAULT_NAVIGATOR_STROKE:()=>WM,DEFAULT_PADDING:()=>Xd,DEFAULT_POLAR_SERIES_STROKE:()=>KM,DEFAULT_SEPARATION_LINES_COLOUR:()=>SS,DEFAULT_SHADOW_COLOUR:()=>Ig,DEFAULT_SPARKLINE_CROSSHAIR_STROKE:()=>mf,DEFAULT_TEXTBOX_COLOR:()=>Lg,DEFAULT_TEXTBOX_FILL:()=>Zb,DEFAULT_TEXTBOX_STROKE:()=>Kv,DEFAULT_TEXT_ANNOTATION_COLOR:()=>xS,DEFAULT_TOOLBAR_POSITION:()=>qv,IS_COMMUNITY:()=>c1,IS_DARK_THEME:()=>Hb,IS_ENTERPRISE:()=>CS,PALETTE_ALT_DOWN_FILL:()=>pf,PALETTE_ALT_DOWN_STROKE:()=>UM,PALETTE_ALT_NEUTRAL_FILL:()=>d1,PALETTE_ALT_NEUTRAL_STROKE:()=>Tg,PALETTE_ALT_UP_FILL:()=>Ou,PALETTE_ALT_UP_STROKE:()=>Wv,PALETTE_DOWN_FILL:()=>ac,PALETTE_DOWN_STROKE:()=>zp,PALETTE_NEUTRAL_FILL:()=>qb,PALETTE_NEUTRAL_STROKE:()=>gf,PALETTE_UP_FILL:()=>Hv,PALETTE_UP_STROKE:()=>Kb});var Hb=Symbol("is-dark-theme"),c1=Symbol("is-community"),CS=Symbol("is-enterprise"),Jo=Symbol("default-font"),jo=Symbol("default-label-colour"),HM=Symbol("default-inverted-label-colour"),fd=Symbol("default-inside-series-label-colour"),vd=Symbol("default-muted-label-colour"),Ms=Symbol("default-axis-grid-colour"),Wb=Symbol("default-axis-line-colour"),Ub=Symbol("default-cross-lines-colour"),SS=Symbol("default-separation-lines-colour"),Eg=Symbol("default-background-colour"),Dl=Symbol("default-inverted-background-colour"),Ig=Symbol("default-shadow-colour"),wS=Symbol("default-colours"),Xd=Symbol("default-padding"),Np=Symbol("default-caption-layout-style"),hf=Symbol("default-caption-alignment"),WM=Symbol("default-navigator-stroke"),Kb=Symbol("palette-up-stroke"),zp=Symbol("palette-down-stroke"),Hv=Symbol("palette-up-fill"),ac=Symbol("palette-down-fill"),gf=Symbol("palette-neutral-stroke"),qb=Symbol("palette-neutral-fill"),Wv=Symbol("palette-alt-up-stroke"),UM=Symbol("palette-alt-down-stroke"),Ou=Symbol("palette-alt-up-fill"),pf=Symbol("palette-alt-down-fill"),d1=Symbol("palette-gray-fill"),Tg=Symbol("palette-gray-stroke"),KM=Symbol("default-polar-series-stroke"),Nc=Symbol("default-diverging-series-colour-range"),mf=Symbol("default-sparkline-crosshair-stroke"),zc=Symbol("default-gauge-series-colour-range"),Rg=Symbol("default-funnel-series-colour-range"),qM=Symbol("default-hierarchy-fills"),YM=Symbol("default-hierarchy-strokes"),Bc=Symbol("default-annotation-stroke"),XM=Symbol("default-hierarchy-strokes"),xS=Symbol("default-text-annotation-color"),Kr=Symbol("default-annotation-background-fill"),Pg=Symbol("default-annotation-handle-fill"),Yb=Symbol("default-annotation-statistics-fill"),ff=Symbol("default-annotation-statistics-stroke"),Uv=Symbol("default-annotation-statistics-color"),Xb=Symbol("default-annotation-statistics-divider-stroke"),ZM=Symbol("default-annotation-statistics-fill"),bo=Symbol("default-annotation-statistics-stroke"),Zb=Symbol("default-textbox-fill"),Kv=Symbol("default-textbox-stroke"),Lg=Symbol("default-textbox-color"),qv=Symbol("default-toolbar-position"),rr=Symbol("default-gridline-enabled");function MS(l,c){return y=>c(y)?[et(pe({},l[0]),{position:l[1].position}),et(pe({},l[1]),{position:l[0].position})]:l}function Bp({takeColors:l}){let{fills:[c],strokes:[y]}=l(1);return{fill:c,stroke:y}}function kS(l){return{marker:Bp(l)}}function AS(l,c,y,I,O){let{addPhaseFn:j,updatePhaseFn:H,removePhaseFn:K}=O,Z=(te,se,ge)=>{y.animate({id:`${l}_${c}_${se.id}_${te}`,groupId:l,from:0,to:1,ease:Oo,collapsable:!1,onUpdate(Se,Ce){Ce&&te!=="removed"||(se.path.clear(!0),ge(Se,se),se.checkPathDirty())},onStop(){te==="added"&&(se.path.clear(!0),ge(1,se),se.checkPathDirty())},phase:Fs[te]})};for(let te of I)y.isSkipped()||(Z("removed",te,K),Z("updated",te,H)),Z("added",te,j)}function Ma({id:l},c,y,...I){Rd(l,c,y,I,{opacity:0},{opacity:1},{phase:"trailing"})}function vf({id:l},c,y,...I){Rd(l,c,y,I,{opacity:1},{opacity:0},{phase:"remove"})}function Og(l){return{opacity:1}}var $M=class extends un{constructor(){super(...arguments),this._dirty=!0}markDirty(){this._dirty=!0}markClean(l){this._dirty=!1}isDirty(){return this._dirty}},Zd=class extends $M{constructor(){super(...arguments),this.enabled=!0,this.color="rgba(0, 0, 0, 0.5)",this.xOffset=0,this.yOffset=0,this.blur=5}};D([Je(Zi),kt()],Zd.prototype,"enabled",2),D([Je(na),kt()],Zd.prototype,"color",2),D([Je(Vn),kt()],Zd.prototype,"xOffset",2),D([Je(Vn),kt()],Zd.prototype,"yOffset",2),D([Je(Fi),kt()],Zd.prototype,"blur",2);var ET=xa(l=>Nv(l)||typeof l=="function","a marker shape keyword such as 'circle', 'diamond' or 'square' or an object extending the Marker class"),yd=class extends $M{constructor(){super(...arguments),this.enabled=!0,this.shape="circle",this.size=6,this.fillOpacity=1,this.strokeWidth=1,this.strokeOpacity=1}getStyle(){let{size:l,shape:c,fill:y,fillOpacity:I,stroke:O,strokeWidth:j,strokeOpacity:H}=this;return{size:l,shape:c,fill:y,fillOpacity:I,stroke:O,strokeWidth:j,strokeOpacity:H}}getDiameter(){return this.size+this.strokeWidth}};D([Je(Zi),kt()],yd.prototype,"enabled",2),D([Je(ET),kt()],yd.prototype,"shape",2),D([Je(Fi),kt()],yd.prototype,"size",2),D([Je(na,{optional:!0}),kt()],yd.prototype,"fill",2),D([Je(Ia),kt()],yd.prototype,"fillOpacity",2),D([Je(na,{optional:!0}),kt()],yd.prototype,"stroke",2),D([Je(Fi),kt()],yd.prototype,"strokeWidth",2),D([Je(Ia),kt()],yd.prototype,"strokeOpacity",2),D([Je(no,{optional:!0}),kt()],yd.prototype,"itemStyler",2);var u1=class extends un{constructor(){super(...arguments),this.enabled=!1}};D([Je(Zi)],u1.prototype,"enabled",2);var oc=class extends un{constructor(){super(...arguments),this.enabled=!0,this.interaction=new u1,this.position=new $m,this.range=void 0,this.class=void 0}formatTooltip(l,c){var I;let y=(I=this.renderer)==null?void 0:I.call(this,c);return typeof y=="string"?y:y!=null?pe(pe({},l),y):l}};D([Je(Zi)],oc.prototype,"enabled",2),D([Je(Zi,{optional:!0})],oc.prototype,"showArrow",2),D([Je(no,{optional:!0})],oc.prototype,"renderer",2),D([Je(Gi)],oc.prototype,"interaction",2),D([Je(Gi)],oc.prototype,"position",2),D([Je(hp,{optional:!0})],oc.prototype,"range",2),D([Je(ui,{optional:!0})],oc.prototype,"class",2);var _g=wa(["linear","smooth","step"],"a line style"),$b=wa(["start","middle","end"]),_u=class extends un{constructor(){super(...arguments),this.type="linear",this.tension=1,this.position="end"}};D([Je(_g)],_u.prototype,"type",2),D([Je(Ia)],_u.prototype,"tension",2),D([Je($b)],_u.prototype,"position",2);var hr=class extends Lp{constructor(){super(...arguments),this.xName=void 0,this.fill="#c16068",this.fillOpacity=1,this.stroke="#874349",this.strokeWidth=2,this.strokeOpacity=1,this.lineDash=[0],this.lineDashOffset=0,this.interpolation=new _u,this.shadow=new Zd,this.marker=new yd,this.label=new Xo,this.tooltip=new oc,this.connectMissingData=!1}};D([Je(ui)],hr.prototype,"xKey",2),D([Je(ui,{optional:!0})],hr.prototype,"xName",2),D([Je(ui)],hr.prototype,"yKey",2),D([Je(ui,{optional:!0})],hr.prototype,"yName",2),D([Je(ui,{optional:!0})],hr.prototype,"yFilterKey",2),D([Je(Fi,{optional:!0})],hr.prototype,"normalizedTo",2),D([Je(na)],hr.prototype,"fill",2),D([Je(Ia)],hr.prototype,"fillOpacity",2),D([Je(na)],hr.prototype,"stroke",2),D([Je(Fi)],hr.prototype,"strokeWidth",2),D([Je(Ia)],hr.prototype,"strokeOpacity",2),D([Je(qo)],hr.prototype,"lineDash",2),D([Je(Fi)],hr.prototype,"lineDashOffset",2),D([Je(Gi)],hr.prototype,"interpolation",2),D([Je(Gi)],hr.prototype,"shadow",2),D([Je(Gi)],hr.prototype,"marker",2),D([Je(Gi)],hr.prototype,"label",2),D([Je(Gi)],hr.prototype,"tooltip",2),D([Je(Zi)],hr.prototype,"connectMissingData",2);function rc(l){switch(l.type){case"linear":case"step":return[{x:l.x0,y:l.y0},{x:l.x1,y:l.y1}];case"cubic":return[{x:l.cp0x,y:l.cp0y},{x:l.cp3x,y:l.cp3y}]}}function QM(l){let c=rc(l);return c[0].x>c[1].x&&c.reverse(),c}function DS(l,c){let{x:y,y:I}=c;switch(l.type){case"linear":return{type:"linear",moveTo:l.moveTo,x0:y,y0:I,x1:y,y1:I};case"step":return{type:"step",moveTo:l.moveTo,x0:y,y0:I,x1:y,y1:I,stepX:y};case"cubic":return{type:"cubic",moveTo:l.moveTo,cp0x:y,cp0y:I,cp1x:y,cp1y:I,cp2x:y,cp2y:I,cp3x:y,cp3y:I}}}function Gp(l,c,y){let[I,O]=rc(l),j=O.x!==I.x?(y.x-c.x)/(O.x-I.x):0,H=O.y!==I.y?(y.y-c.y)/(O.y-I.y):0;switch(l.type){case"linear":return{type:"linear",moveTo:l.moveTo,x0:c.x,y0:c.y,x1:y.x,y1:y.y};case"cubic":return{type:"cubic",moveTo:l.moveTo,cp0x:c.x,cp0y:c.y,cp1x:y.x-(l.cp2x-I.x)*j,cp1y:y.y-(l.cp2y-I.y)*H,cp2x:y.x-(l.cp1x-I.x)*j,cp2y:y.y-(l.cp1y-I.y)*H,cp3x:y.x,cp3y:y.y};case"step":return{type:"step",moveTo:l.moveTo,x0:c.x,y0:c.y,x1:y.x,y1:y.y,stepX:y.x-(l.stepX-I.x)*j}}}function h1(l,c,y){let{moveTo:I}=l,[O,j]=QM(l),{x:H,y:K}=O,{x:Z,y:te}=j;if(y<H)return Gp(l,O,O);if(c>Z)return Gp(l,j,j);switch(l.type){case"linear":{let se=K===te?void 0:(te-K)/(Z-H),ge=se==null?K:se*(c-H)+K,Se=se==null?K:se*(y-H)+K;return{type:"linear",moveTo:I,x0:c,y0:ge,x1:y,y1:Se}}case"step":if(y<=l.stepX){let se=l.y0;return{type:"step",moveTo:I,x0:c,y0:se,x1:y,y1:se,stepX:y}}else if(c>=l.stepX){let se=l.y1;return{type:"step",moveTo:I,x0:c,y0:se,x1:y,y1:se,stepX:c}}else{let{y0:se,y1:ge,stepX:Se}=l;return{type:"step",moveTo:I,x0:c,y0:se,x1:y,y1:ge,stepX:Se}}case"cubic":{let se=Ov(l.cp0x,l.cp1x,l.cp2x,l.cp3x,c),[ge,Se]=hd(l.cp0x,l.cp0y,l.cp1x,l.cp1y,l.cp2x,l.cp2y,l.cp3x,l.cp3y,se),Ce=Ov(Se[0].x,Se[1].x,Se[2].x,Se[3].x,y);return[Se,ge]=hd(Se[0].x,Se[0].y,Se[1].x,Se[1].y,Se[2].x,Se[2].y,Se[3].x,Se[3].y,Ce),{type:"cubic",moveTo:I,cp0x:Se[0].x,cp0y:Se[0].y,cp1x:Se[1].x,cp1y:Se[1].y,cp2x:Se[2].x,cp2y:Se[2].y,cp3x:Se[3].x,cp3y:Se[3].y}}}}function IT(l){let c=[],y=0,I=NaN,O=NaN;for(let{x:j,y:H}of l){if(y>0){let K=y===1;c.push({type:"linear",moveTo:K,x0:I,y0:O,x1:j,y1:H})}y+=1,I=j,O=H}return c}var TT={start:0,middle:.5,end:1};function yf(l,c){let y=[],I=0,O=NaN,j=NaN,H=typeof c=="number"?c:TT[c];for(let{x:K,y:Z}of l){if(I>0){let te=I===1,se=O+(K-O)*H;y.push({type:"step",moveTo:te,x0:O,y0:j,x1:K,y1:Z,stepX:se})}I+=1,O=K,j=Z}return y}var Yv=.05;function xL(l,c){let y=Array.isArray(l)?l:Array.from(l);if(y.length<=1)return[];let I=y.map((j,H)=>{let K=H===0?j:y[H-1],Z=H===y.length-1?j:y[H+1],te=H===0||H===y.length-1;if(Math.sign(K.y-j.y)===Math.sign(Z.y-j.y))return 0;if(!te){let se=Math.abs(K.y-Z.y),ge=Math.abs(j.y-K.y)/se,Se=Math.abs(j.y-Z.y)/se;if(ge<=Yv||1-ge<=Yv||Se<=Yv||1-Se<=Yv)return 0}return(Z.y-K.y)/(Z.x-K.x)});I[1]===0&&(I[0]*=2),I[I.length-2]===0&&(I[I.length-1]*=2);let O=[];for(let j=1;j<y.length;j+=1){let H=y[j-1],K=I[j-1],Z=y[j],te=I[j],se=Z.x-H.x,ge=Z.y-H.y,Se=se*c/3,Ce=se*K*c/3,Pe=se*c/3,Ge=se*te*c/3;te===0&&Math.abs(Ce)>Math.abs(ge)&&(Se*=Math.abs(ge/Ce),Ce=Math.sign(Ce)*Math.abs(ge)),K===0&&Math.abs(Ge)>Math.abs(ge)&&(Pe*=Math.abs(ge/Ge),Ge=Math.sign(Ge)*Math.abs(ge)),O.push({type:"cubic",moveTo:j===1,cp0x:H.x,cp0y:H.y,cp1x:H.x+Se,cp1y:H.y+Ce,cp2x:Z.x-Pe,cp2y:Z.y-Ge,cp3x:Z.x,cp3y:Z.y})}return O}function gr(l,c,y){return(c-l)*y+l}function g1(l,c){let{x0:y,y0:I,x1:O,y1:j}=l,K=(j-I)/(O-y)*(c-y)+I;return{leftCp1x:y,leftCp1y:I,leftCp2x:c,leftCp2y:K,stepX:c,stepY0:K,stepY1:K,rightCp1x:c,rightCp1y:K,rightCp2x:O,rightCp2y:j}}function bf(l,c){let{cp0x:y,cp0y:I,cp1x:O,cp1y:j,cp2x:H,cp2y:K,cp3x:Z,cp3y:te}=l,se=Ov(y,O,H,Z,c),[ge,Se]=hd(y,I,O,j,H,K,Z,te,se),Ce=ge[3].y;return{leftCp1x:ge[1].x,leftCp1y:ge[1].y,leftCp2x:ge[2].x,leftCp2y:ge[2].y,stepX:c,stepY0:Ce,stepY1:Ce,rightCp1x:Se[1].x,rightCp1y:Se[1].y,rightCp2x:Se[2].x,rightCp2y:Se[2].y}}function p1(l){let{x0:c,y0:y,x1:I,y1:O,stepX:j}=l;return{leftCp1x:(c+j)/2,leftCp1y:y,leftCp2x:(c+j)/2,leftCp2y:y,stepX:j,stepY0:y,stepY1:O,rightCp1x:(j+I)/2,rightCp1y:O,rightCp2x:(j+I)/2,rightCp2y:O}}function Gh(l,c){return l.type==="linear"?g1(l,c):l.type==="cubic"?bf(l,c):p1(l)}function RT(l,c,y,I,O,j,H){switch(c){case 0:H?l.moveTo(O,j):l.moveTo(y,I);break;case 1:H?l.lineTo(O,j):l.lineTo(y,I);break}}function PT(l,c,y,I,O,j){j?l.lineTo(c,y):l.lineTo(I,O)}function LT(l,c,y,I,O,j,H,K,Z,te){te?l.cubicCurveTo(j,H,I,O,c,y):l.cubicCurveTo(I,O,j,H,K,Z)}function JM(l,c,y,I,O,j,H){H?(l.lineTo(j,O),l.lineTo(j,y),l.lineTo(c,y)):(l.lineTo(j,y),l.lineTo(j,O),l.lineTo(I,O))}function ES(l,c,y,I){let[O,j]=rc(c);switch(RT(l,y,O.x,O.y,j.x,j.y,I),c.type){case"linear":PT(l,c.x0,c.y0,c.x1,c.y1,I);break;case"cubic":LT(l,c.cp0x,c.cp0y,c.cp1x,c.cp1y,c.cp2x,c.cp2y,c.cp3x,c.cp3y,I);break;case"step":JM(l,c.x0,c.y0,c.x1,c.y1,c.stepX,I);break}}function IS(l,c,y){let[I,O]=rc(l),[j,H]=rc(c),K=gr(I.x,j.x,y),Z=gr(I.y,j.y,y),te=gr(O.x,H.x,y),se=gr(O.y,H.y,y);return[{x:K,y:Z},{x:te,y:se}]}function TS(l,c,y,I,O,j){let[{x:H,y:K},{x:Z,y:te}]=IS(c,y,I);if(RT(l,O,H,K,Z,te,j),c.type==="cubic"&&y.type==="cubic"){let se=gr(c.cp1x,y.cp1x,I),ge=gr(c.cp1y,y.cp1y,I),Se=gr(c.cp2x,y.cp2x,I),Ce=gr(c.cp2y,y.cp2y,I);LT(l,H,K,se,ge,Se,Ce,Z,te,j)}else if(c.type==="step"&&y.type==="step"){let se=gr(c.stepX,y.stepX,I);JM(l,H,K,Z,te,se,j)}else if(c.type==="linear"&&y.type==="linear")PT(l,H,K,Z,te,j);else{let se;c.type==="step"?se=c.stepX:y.type==="step"?se=y.stepX:se=(H+Z)/2;let ge=Gh(c,se),Se=Gh(y,se),Ce=gr(ge.leftCp1x,Se.leftCp1x,I),Pe=gr(ge.leftCp1y,Se.leftCp1y,I),Ge=gr(ge.leftCp2x,Se.leftCp2x,I),We=gr(ge.leftCp2y,Se.leftCp2y,I),He=gr(ge.stepX,Se.stepX,I),Ze=gr(ge.stepY0,Se.stepY0,I),it=gr(ge.stepY1,Se.stepY1,I),qe=gr(ge.rightCp1x,Se.rightCp1x,I),rt=gr(ge.rightCp1y,Se.rightCp1y,I),dt=gr(ge.rightCp2x,Se.rightCp2x,I),mt=gr(ge.rightCp2y,Se.rightCp2y,I);j?(l.cubicCurveTo(dt,mt,qe,rt,He,it),l.lineTo(He,Ze),l.cubicCurveTo(Ge,We,Ce,Pe,H,K)):(l.cubicCurveTo(Ce,Pe,Ge,We,He,Ze),l.lineTo(He,it),l.cubicCurveTo(qe,rt,dt,mt,Z,te))}}var m1=(l=>(l[l.Zero=0]="Zero",l[l.Split=1]="Split",l))(m1||{});function OT(l,c){return l==null||c==null||typeof l!="object"||typeof c!="object"?!1:"id"in l&&"id"in c?l.id===c.id:l.toString()===c.toString()}function Tr(l,c){if(!c)return NaN;if(l instanceof Date&&(l=l.getTime()),c.type==="continuous"&&typeof l=="number")return(l-c.domain[0])/(c.domain[1]-c.domain[0])*(c.range[1]-c.range[0])+c.range[0];if(c.type==="log"&&typeof l=="number")return c.convert(l);if(c.type!=="category")return NaN;let y=c.domain.findIndex(O=>O===l);return y>=0||c.domain.findIndex(O=>OT(l,O))>=0?c.inset+c.step*y:NaN}function Gc(l){return f0(l).valueOf()}function Cf({data:l},c){return l.map((y,I)=>({xValue0Index:c.indexOf(Gc(y.xValue0)),xValue1Index:c.indexOf(Gc(y.xValue1)),datumIndex:I}))}function sc(l,c){let y=c.scales.x,I=l.scales.x;if((y==null?void 0:y.type)!=="category"||(I==null?void 0:I.type)!=="category")return!0;let O=-1/0;for(let j of y.domain){let H=Tr(j,I);if(Number.isFinite(H)){if(H<O)return!1;O=H}else continue}return!0}function _T(l,c){let y=-1/0;for(let I of l){let O=Tr(I.value,c.scales.x);if(Number.isFinite(O)){if(O<y)return!1;y=O}else continue}return!0}function ML(l,c){let y=new Map;for(let{xValue0:se,xValue1:ge}of l.data){let Se=Gc(se),Ce=Gc(ge);y.set(Se,se).set(Ce,ge)}let I=Array.from(y,([se,ge])=>({axisValue:se,value:ge}));I.sort((se,ge)=>Tr(se.value,l.scales.x)-Tr(ge.value,l.scales.x));let O=[];for(let{xValue0:se,xValue1:ge}of c.data){let Se=Gc(se),Ce=Gc(ge);y.has(Se)||(y.set(Se,se),O.push({axisValue:Se,value:se})),y.has(Ce)||(y.set(Ce,ge),O.push({axisValue:Ce,value:ge}))}O.sort((se,ge)=>Tr(se.value,c.scales.x)-Tr(ge.value,c.scales.x));let j=I,H=0;for(let se of O){for(let ge=j.length-1;ge>H;ge-=1){let Se=Tr(se.value,c.scales.x),Ce=Tr(j[ge].value,c.scales.x);if(Se>Ce){H=ge+1;break}}j.splice(H,0,se),H+=1}if(!_T(j,c))return;let K=j.map(se=>se.axisValue),Z=Cf(c,K),te=Cf(l,K);return{axisValues:K,oldDataAxisIndices:Z,newDataAxisIndices:te}}function FT(l,c,y){if(y.xValue1Index===y.xValue0Index+1)return l;let I=rc(l),O=(I[1].x-I[0].x)/(y.xValue1Index-y.xValue0Index),j=I[0].x+(c-y.xValue0Index)*O,H=j+O;return h1(l,j,H)}function NT(l,c){let[y,I]=rc(l),O=Tr(0,c.scales.y);return Gp(l,{x:y.x,y:O},{x:I.x,y:O})}function Xv(l){let[c,y]=rc(l);return DS(l,{x:(c.x+y.x)/2,y:(c.y+y.y)/2})}function zT(l,c,y,I,O,j){var ge,Se;let H,K;if(O.xValue0Index>=j.xValue1Index){let Ce=(ge=I.findLast(Ge=>Ge.xValue1Index<=j.xValue1Index))==null?void 0:ge.datumIndex,Pe=Ce!=null?y.data[Ce]:void 0;H=Pe==null?void 0:Pe.xValue1,K=Pe==null?void 0:Pe.yValue1}else if(O.xValue0Index<=j.xValue0Index){let Ce=(Se=I.find(Ge=>Ge.xValue0Index>=j.xValue0Index))==null?void 0:Se.datumIndex,Pe=Ce!=null?y.data[Ce]:void 0;H=Pe==null?void 0:Pe.xValue0,K=Pe==null?void 0:Pe.yValue0}if(H==null||K==null)switch(c){case 0:return NT(l,y);case 1:return Xv(l)}let Z=Tr(H,y.scales.x),te=Tr(K,y.scales.y),se={x:Z,y:te};return Gp(l,se,se)}function ek(l,c){var O;if(c==null)return;let y=Gc(l.xValue0),I=Gc(l.xValue1);return(O=c.find(j=>Gc(j.xValue0)===y&&Gc(j.xValue1)===I))==null?void 0:O.span}function f1(l,c,y,I,O,j,H){let K=l.data[I.datumIndex],Z=K.span,te=ek(K,O);if(te!=null)H.removed.push({from:te,to:te}),H.moved.push({from:te,to:Z}),H.added.push({from:Z,to:Z});else{let se=zT(Z,c,l,y,I,j);H.added.push({from:se,to:Z})}}function v1(l,c,y,I,O,j,H){let K=l.data[I.datumIndex],Z=K.span,te=ek(K,O);if(te!=null)H.removed.push({from:Z,to:Z}),H.moved.push({from:Z,to:te}),H.added.push({from:te,to:te});else{let se=zT(Z,c,l,y,I,j);H.removed.push({from:Z,to:se})}}function RS(l,c,y,I,O){let j=c[O.xValue0Index],H=y.data.find(We=>Gc(We.xValue0)===j),K=c[O.xValue1Index],Z=y.data.find(We=>Gc(We.xValue1)===K);if(H==null||Z==null)return;let[{x:te},{x:se}]=rc(l),ge=Tr(H.xValue0,y.scales.x),Se=Tr(H.yValue0,y.scales.y),Ce=Tr(Z.xValue1,y.scales.x),Pe=Tr(Z.yValue1,y.scales.y),Ge=I.data[O.datumIndex].span;return Ge=Gp(Ge,{x:ge,y:Se},{x:Ce,y:Pe}),Ge=h1(Ge,te,se),Ge}function tk(l,c,y,I,O,j,H,K,Z){let te=O+1,se=H.find(it=>it.xValue0Index<=O&&it.xValue1Index>=te),ge=j.find(it=>it.xValue0Index<=O&&it.xValue1Index>=te),Se=c.zeroData,Ce=l.zeroData;if(se==null&&ge!=null){f1(l,y,j,ge,Se,K,Z);return}else if(se!=null&&ge==null){v1(c,y,H,se,Ce,K,Z);return}else if(se==null||ge==null)return;let Pe;se.xValue0Index===ge.xValue0Index&&se.xValue1Index===ge.xValue1Index?Pe=0:se.xValue0Index<=ge.xValue0Index&&se.xValue1Index>=ge.xValue1Index?Pe=-1:se.xValue0Index>=ge.xValue0Index&&se.xValue1Index<=ge.xValue1Index?Pe=1:Pe=0;let Ge=c.data[se.datumIndex],We=FT(Ge.span,O,se),He=l.data[ge.datumIndex],Ze=FT(He.span,O,ge);if(Pe===1){let it=RS(We,I,c,l,ge);it!=null?(Z.removed.push({from:We,to:it}),Z.moved.push({from:it,to:Ze}),Z.added.push({from:Ze,to:Ze})):v1(c,y,H,se,Ce,K,Z)}else if(Pe===-1){let it=RS(Ze,I,l,c,se);it!=null?(Z.removed.push({from:We,to:We}),Z.moved.push({from:We,to:it}),Z.added.push({from:it,to:Ze})):f1(l,y,j,ge,Se,K,Z)}else Z.removed.push({from:We,to:We}),Z.moved.push({from:We,to:Ze}),Z.added.push({from:Ze,to:Ze})}function ik(l,c,y,I){var te,se,ge,Se,Ce,Pe,Ge,We;let O={removed:[],moved:[],added:[]},{axisValues:j,oldDataAxisIndices:H,newDataAxisIndices:K}=l,Z={xValue0Index:Math.max((se=(te=H.at(0))==null?void 0:te.xValue0Index)!=null?se:-1/0,(Se=(ge=K.at(0))==null?void 0:ge.xValue0Index)!=null?Se:-1/0),xValue1Index:Math.min((Pe=(Ce=H.at(-1))==null?void 0:Ce.xValue1Index)!=null?Pe:1/0,(We=(Ge=K.at(-1))==null?void 0:Ge.xValue1Index)!=null?We:1/0)};for(let He=0;He<j.length-1;He+=1)tk(c,y,I,j,He,K,H,Z,O);return O}function PS(l,c,y){var O;let{span:I}=c;switch(y){case 0:return(O=ek(c,l.zeroData))!=null?O:NT(I,l);case 1:return Xv(I)}}function BT(l,c,y){let I=[],O=[];for(let j of c.data){let H=j.span,K=PS(c,j,y);O.push({from:H,to:K})}for(let j of l.data){let H=j.span,K=PS(l,j,y);I.push({from:K,to:H})}return{removed:O,moved:[],added:I}}function Sf(l,c,y){if(!sc(l,c))return;let I=ML(l,c);return I==null?BT(l,c,y):ik(I,l,c,y)}function Zv(l){return l.type==="continuous"||l.type==="log"}function Fu(l){return l.type==="category"}function mn(l,c){return l===void 0||c===void 0?l!==void 0||c!==void 0:Zv(l)&&Zv(c)?l.type===c.type&&eg(l.domain,c.domain)&&eg(l.range,c.range):Fu(l)&&Fu(c)?l.inset===c.inset&&l.step===c.step&&eg(l.domain,c.domain):!1}function qr(l){return l==null?!1:l.type==="category"?l.domain.every(c=>c!=null):l.domain.every(c=>Number.isFinite(c)||c instanceof Date)&&l.range.every(c=>Number.isFinite(c))}function lc(l,c){let y,I=l.map(O=>O.point);switch(c.type){case"linear":y=IT(I);break;case"smooth":y=xL(I,c.tension);break;case"step":y=yf(I,c.position);break}return y.map((O,j)=>({span:O,xValue0:l[j].xDatum,yValue0:l[j].yDatum,xValue1:l[j+1].xDatum,yValue1:l[j+1].yDatum}))}function nk(l,c,y=.001){return Math.abs(l.x-c.x)<y&&Math.abs(l.y-c.y)<y}function ak({path:l},c){let y;for(let{span:I}of c){let[O,j]=rc(I),H=y!=null&&nk(y,O)?1:0;ES(l,I,H,!1),y=j}}function Qb(l,c,y){let I;for(let O of y){let[j,H]=IS(O.from,O.to,l),K=I!=null&&nk(I,j)?1:0;TS(c.path,O.from,O.to,l,K,!1),I=H}}function ok(l,c,y){let I=(K,Z)=>Qb(K,Z,c.removed),O=(K,Z)=>Qb(K,Z,c.moved),j=(K,Z)=>Qb(K,Z,c.added),H=rk(l,y);return{status:l,path:{addPhaseFn:j,updatePhaseFn:O,removePhaseFn:I},pathProperties:H}}function rk(l,c){let y=c==="none"?"updated":l,I={fromFn:O=>{let j;return l==="removed"?j={finish:{visible:!1}}:l==="added"?j={start:{visible:!0}}:j={},pe({phase:Fs[y]},j)},toFn:O=>({phase:Fs[y]})};return c==="fade"?{fromFn:O=>{let j=l==="added"?0:O.opacity;return pe({opacity:j},I.fromFn(O))},toFn:O=>pe({opacity:l==="removed"?0:1},I.toFn(O))}:I}function GT(l,c,y){var te,se,ge;let I=((te=l.scales.x)==null?void 0:te.type)==="category",O=((se=c.scales.x)==null?void 0:se.type)==="category";if(I!==O||!qr(l.scales.x)||!qr(c.scales.x)||l.strokeData==null||c.strokeData==null)return;let j="updated";c.visible&&!l.visible?j="removed":!c.visible&&l.visible&&(j="added");let H=Sf({scales:l.scales,data:l.strokeData.spans},{scales:c.scales,data:c.strokeData.spans},1);if(H==null)return;let K=ok(j,H,"fade"),Z=((ge=y==null?void 0:y.changed)!=null?ge:!0)||!mn(l.scales.x,c.scales.x)||!mn(l.scales.y,c.scales.y)||j!=="updated";return{status:j,stroke:K,hasMotion:Z}}function jT({path:l},{spans:c,phantomSpans:y}){for(let I=0;I<c.length;I+=1){let{span:O}=c[I],j=y[I].span;ES(l,O,0,!1),ES(l,j,1,!0),l.closePath()}}function sk(l,{path:c},y,I){for(let O=0;O<y.length;O+=1){let j=y[O],H=I[O];TS(c,j.from,j.to,l,0,!1),TS(c,H.from,H.to,l,1,!0),c.closePath()}}function VT(l,c,y,I){let O=(Z,te)=>sk(Z,te,c.removed,y.removed),j=(Z,te)=>sk(Z,te,c.moved,y.moved),H=(Z,te)=>sk(Z,te,c.added,y.added),K=rk(l,I);return{status:l,path:{addPhaseFn:H,updatePhaseFn:j,removePhaseFn:O},pathProperties:K}}function lk(l,c){var ge,Se;let y=((ge=l.scales.x)==null?void 0:ge.type)==="category",I=((Se=c.scales.x)==null?void 0:Se.type)==="category";if(y!==I||!qr(l.scales.x)||!qr(c.scales.x))return;let O="updated";c.visible&&!l.visible?O="removed":!c.visible&&l.visible&&(O="added");let j=Sf({scales:l.scales,data:l.fillData.spans},{scales:c.scales,data:c.fillData.spans},0);if(j==null)return;let H=Sf({scales:l.scales,data:l.fillData.phantomSpans},{scales:c.scales,data:c.fillData.phantomSpans},0);if(H==null)return;let K=Sf({scales:l.scales,data:l.strokeData.spans,zeroData:l.fillData.phantomSpans},{scales:c.scales,data:c.strokeData.spans,zeroData:c.fillData.phantomSpans},0);if(K==null)return;let Z="none",te=VT(O,j,H,Z),se=ok(O,K,Z);return{status:O,fill:te,stroke:se}}function Jb({id:l},c,y,...I){let O={phase:y?Fs[y]:"trailing"};Rd(l,"markers",c,I,{opacity:0},{opacity:1},O),I.forEach(j=>j.cleanup())}function wf({id:l},c,...y){Rd(l,"markers",c,y,{scalingX:0,scalingY:0},{scalingX:1,scalingY:1},{phase:"initial"}),y.forEach(I=>I.cleanup())}function jp({id:l,nodeDataDependencies:c},y,...I){let O=c.seriesRectWidth;yi(l,"markers",y,I,{fromFn:(K,Z)=>{var ge,Se;let te=(Se=(ge=Z.midPoint)==null?void 0:ge.x)!=null?Se:O,se=Ae(0,kc(te/O),1);return isNaN(se)&&(se=0),{scalingX:0,scalingY:0,delay:se,duration:_s,phase:"initial"}},toFn:()=>({scalingX:1,scalingY:1})})}function eC(l){return{opacity:1,scalingX:1,scalingY:1}}function tC(l,c){var y,I,O,j;return{translationX:(I=(y=c.point)==null?void 0:y.x)!=null?I:NaN,translationY:(j=(O=c.point)==null?void 0:O.y)!=null?j:NaN}}function y1(l,c){let y=(H,K)=>{let Z=l[K][H];return Array.isArray(Z)?Z[0]:Z},I=H=>{let{xValue:K}=H;return l.moved[K]?{point:y(K,"moved"),status:"updated"}:l.removed[K]?{point:y(K,"removed"),status:"removed"}:l.added[K]?{point:y(K,"added"),status:"added"}:{status:"unknown"}};return{fromFn:(H,K)=>{var ge,Se,Ce,Pe,Ge,We;let{status:Z,point:te}=I(K);if(Z==="unknown")return{opacity:0};let se={translationX:(Se=(ge=te==null?void 0:te.from)==null?void 0:ge.x)!=null?Se:H.translationX,translationY:(Pe=(Ce=te==null?void 0:te.from)==null?void 0:Ce.y)!=null?Pe:H.translationY,opacity:H.opacity,phase:Fs[Z]};return c==="added"?et(pe({},se),{opacity:0,translationX:(Ge=te==null?void 0:te.to)==null?void 0:Ge.x,translationY:(We=te==null?void 0:te.to)==null?void 0:We.y,phase:Fs.added}):(Z==="added"&&(se.opacity=0),se)},toFn:(H,K)=>{var ge,Se;let{status:Z,point:te}=I(K);if(Z==="unknown")return{opacity:0};let se={translationX:K.point.x,translationY:K.point.y,opacity:1,phase:Fs[Z]};return Z==="removed"||c==="removed"?et(pe({},se),{translationX:(ge=te==null?void 0:te.to)==null?void 0:ge.x,translationY:(Se=te==null?void 0:te.to)==null?void 0:Se.y,opacity:0,phase:Fs.removed}):se}}}function Fg(l,{datumIndex:c}){var te;let y=l.getNodeData();if(y===void 0)return;let I=y[c],{point:O}=I;if(I==null||O==null)return;let j=(te=O.focusSize)!=null?te:l.getFormattedMarkerStyle(I).size,H=j/2,K=I.point.x-H,Z=I.point.y-H;return new ft(K,Z,j,j)}function cc(l,c,y){let I=y;for(let{x:O,y:j}of c)I?l.lineTo(O,j):(l.moveTo(O,j),I=!0)}var El=.05;function Vp(l,c,y,I){let O=Array.isArray(c)?c:Array.from(c);if(O.length===0||(I?l.lineTo(O[0].x,O[0].y):l.moveTo(O[0].x,O[0].y),O.length<=1))return;let j=O.map((H,K)=>{let Z=K===0?H:O[K-1],te=K===O.length-1?H:O[K+1],se=K===0||K===O.length-1;if(Math.sign(Z.y-H.y)===Math.sign(te.y-H.y))return 0;if(!se){let ge=Math.abs(Z.y-te.y),Se=Math.abs(H.y-Z.y)/ge,Ce=Math.abs(H.y-te.y)/ge;if(Se<=El||1-Se<=El||Ce<=El||1-Ce<=El)return 0}return(te.y-Z.y)/(te.x-Z.x)});j[1]===0&&(j[0]*=2),j[j.length-2]===0&&(j[j.length-1]*=2);for(let H=1;H<O.length;H+=1){let K=O[H-1],Z=j[H-1],te=O[H],se=j[H],ge=te.x-K.x,Se=te.y-K.y,Ce=ge*y/3,Pe=ge*Z*y/3,Ge=ge*y/3,We=ge*se*y/3;se===0&&Math.abs(Pe)>Math.abs(Se)&&(Ce*=Math.abs(Se/Pe),Pe=Math.sign(Pe)*Math.abs(Se)),Z===0&&Math.abs(We)>Math.abs(Se)&&(Ge*=Math.abs(Se/We),We=Math.sign(We)*Math.abs(Se)),l.cubicCurveTo(K.x+Ce,K.y+Pe,te.x-Ge,te.y-We,te.x,te.y)}}function LS(l,c,y,I){var j;let O;for(let H of c){if(O!=null){let K=O.x<H.x?y:1-y,Z=(H.x-O.x)*K+O.x;l.lineTo(Z,(j=O==null?void 0:O.y)!=null?j:H.y),l.lineTo(Z,H.y),l.lineTo(H.x,H.y)}else I?l.lineTo(H.x,H.y):l.moveTo(H.x,H.y);O=H}}function ck(l){return l.reduce(({min:c,max:y},I)=>((c==null||c.point.x>I.point.x)&&(c=I),(y==null||y.point.x<I.point.x)&&(y=I),{min:c,max:y}),{})}function b1(l,c,y){let I=(c.y-l.y)/(c.x-l.x),O=(y-l.x)*I+l.y;return{x:y,y:O}}function C1(l,c,y,I){let O=-1,j=0,H=[];for(;j<l.length;){if(l[j].change===c){H.push(l[j]),j++;continue}if(l[j].change===y){j++;continue}H.length>0&&(I(H,O,j),H.length=0),O=j,j++}H.length>0&&I(H,O,j)}function OS(l,c){C1(l,"out","in",(y,I,O)=>{var j,H;I===-1&&l[O]?y.forEach(K=>K.to=l[O].from):O===l.length&&l[I]?y.forEach(K=>K.to=l[I].from):c==="intersect"&&((j=l[I])!=null&&j.from)&&((H=l[O])!=null&&H.from)?y.forEach(K=>K.to=b1(l[I].from,l[O].from,K.from.x)):y.forEach(K=>K.to=K.from)}),C1(l,"in","out",(y,I,O)=>{var j,H;I===-1&&l[O]?y.forEach(K=>K.from=l[O].to):O===l.length&&l[I]?y.forEach(K=>K.from=l[I].to):c==="intersect"&&((j=l[I])!=null&&j.to)&&((H=l[O])!=null&&H.to)?y.forEach(K=>K.from=b1(l[I].to,l[O].to,K.to.x)):y.forEach(K=>K.from=K.to)})}function dk(l,c,y){let I=isNaN(l.x)?c.x:l.x,O=isNaN(l.y)?c.y:l.y,j=c.x-l.x,H=c.y-l.y,K=isNaN(j)?0:j*y,Z=isNaN(H)?0:H*y;return{x:I+K,y:O+Z}}var S1={start:0,middle:.5,end:1};function uk(l,c,y,I=!1){var j,H;let{path:O}=c;(y==null?void 0:y.type)==="smooth"?Vp(O,l,(j=y.tension)!=null?j:1,I):(y==null?void 0:y.type)==="step"?LS(O,l,S1[(H=y.position)!=null?H:"end"],I):cc(O,l,I)}function _S(l,c){let y,I,O=[],j=()=>{I!=null&&(O.push(I),I=void 0)};for(let H of l){let{from:K,to:Z}=H,te=c[H.change];if(te==null||K==null||Z==null)continue;let se=dk(K,Z,te);if(H.moveTo===!1)I!=null||(I=[]),I.push(se);else if(H.moveTo===!0||!y)j(),I=[se];else if(y){let ge=H.moveTo==="in"?te:1-te,{x:Se,y:Ce}=dk(y,se,ge);I!=null||(I=[]),I.push({x:Se,y:Ce}),j(),I=[se]}y=se}return j(),O}function kL(l,c,y,I){_S(l,c).forEach(O=>{uk(O,y,I)})}function $v({id:l,visible:c,nodeDataDependencies:y},I,...O){let{seriesRectWidth:j,seriesRectHeight:H}=y;Rd(l,"path_properties",I,O,{clipX:0},{clipX:j},{phase:"initial",start:{clip:!0,clipY:H,visible:c},finish:{clip:!1,visible:c}})}function hk({id:l},c,y,I="add",...O){Rd(l,c,y,O,{opacity:0},{opacity:1},{phase:I})}function gk({id:l},c,y,...I){Rd(l,c,y,I,{opacity:1},{opacity:0},{phase:"remove"})}function pk(l){return c=>({visible:l.getVisible(),opacity:l.getOpacity(),clipScalingX:1,clip:!1})}function mk({nodeDataDependencies:l},c){let y=I=>isFinite(I)?I:0;c.clipX=y(l.seriesRectWidth),c.clipY=y(l.seriesRectHeight)}var FS=.125,HT=.25,NS=class extends Jm{constructor(l){super({moduleCtx:l,directionKeys:xg,directionNames:Pp,pathsPerSeries:["fill","stroke"],pathsZIndexSubOrderOffset:[0,1e3],hasMarkers:!0,markerSelectionGarbageCollection:!1,pickModes:[2,0],animationResetFns:{path:pk({getVisible:()=>this.visible,getOpacity:()=>this.getOpacity()}),label:Og,marker:(c,y)=>pe(pe({},eC(c)),tC(c,y))}}),this.properties=new hr,this.connectsToYAxis=!0,this.backgroundGroup=new Mn({name:`${this.id}-background`,zIndex:0}),this._isStacked=void 0}get pickModeAxis(){return"main"}renderToOffscreenCanvas(){return super.renderToOffscreenCanvas()||this.contextNodeData!=null&&(this.contextNodeData.fillData.spans.length>lS||this.contextNodeData.strokeData.spans.length>lS)}attachSeries(l,c,y){super.attachSeries(l,c,y),l.appendChild(this.backgroundGroup)}detachSeries(l,c,y){super.detachSeries(l,c,y),l==null||l.removeChild(this.backgroundGroup)}attachPaths([l,c]){this.backgroundGroup.appendChild(l),this.contentGroup.appendChild(c),c.zIndex=-1}isStacked(){var c,y;return((y=(c=this.seriesGrouping)==null?void 0:c.stackCount)!=null?y:1)>1}setSeriesIndex(l){let c=this.isStacked();return!super.setSeriesIndex(l)&&this._isStacked===c?!1:(this._isStacked=c,c?(this.backgroundGroup.zIndex=[0,l],this.contentGroup.zIndex=[1,l,0]):(this.backgroundGroup.zIndex=[1,l,0,0],this.contentGroup.zIndex=[1,l,0,1]),!0)}async processData(l){var Ze,it;if(this.data==null||!this.properties.isValid())return;let{data:c,visible:y,seriesGrouping:{groupIndex:I=this.id,stackCount:O=1}={}}=this,{xKey:j,yKey:H,yFilterKey:K,connectMissingData:Z,normalizedTo:te}=this.properties,se=!this.ctx.animationManager.isSkipped(),ge=(Ze=this.axes.x)==null?void 0:Ze.scale,Se=(it=this.axes.y)==null?void 0:it.scale,{xScaleType:Ce,yScaleType:Pe}=this.getScaleInformation({xScale:ge,yScale:Se}),Ge={value:`area-stack-${I}-yValue`,values:`area-stack-${I}-yValues`,stack:`area-stack-${I}-yValue-stack`,marker:`area-stack-${I}-yValues-marker`},We=[];to(te)&&We.push(zb(Object.values(Ge),te,"range")),se&&We.push(af());let He={invalidValue:null};(to(te)||Z)&&O>1&&(He.invalidValue=0),y||(He.forceValue=0),await this.requestDataModel(l,c,{props:[kl(j,Ce,{id:"xValue"}),Jn(H,Pe,pe({id:"yValueRaw"},He)),...K!=null?[Jn(K,Pe,{id:"yFilterRaw"})]:[],...tf(H,Pe,et(pe({id:"yValueStack"},He),{groupId:Ge.stack})),Jn(H,Pe,et(pe({id:"yValue"},He),{groupId:Ge.value})),..._p(H,"window","current",et(pe({id:"yValueEnd"},He),{groupId:Ge.values}),Pe),..._p(H,"normal","current",et(pe({id:"yValueCumulative"},He),{groupId:Ge.marker}),Pe),...We],groupByKeys:!0,groupByData:!1}),this.animationState.transition("updateData")}getSeriesDomain(l){var Z;let{processedData:c,dataModel:y,axes:I}=this;if(!c||!y||!((Z=c.rawData)!=null&&Z.length))return[];let O=I.y,j=y.resolveProcessedDataDefById(this,"xValue"),H=y.getDomain(this,"xValue","key",c),K=y.getDomain(this,"yValueEnd","value",c);if(l==="x")return(j==null?void 0:j.def.type)==="key"&&j.def.valueType==="category"?H:tc(lp(H));if(O instanceof cf||O instanceof jv)return tc(K);{let te=[K[0]>0?0:K[0],K[1]<0?0:K[1]];return tc(te)}}getSeriesRange(l,c){let{dataModel:y,processedData:I}=this;if(!y||!I)return[NaN,NaN];let O=this.axes.x.scale,j=y.resolveKeysById(this,"xValue",I),[H,K]=aS(j.length,c,se=>{let ge=O.convert(j[se]);return[ge,ge]}),[Z,te]=y.getDomainBetweenRange(this,["yValueEnd"],[H,K],I);return[Math.min(Z,0),Math.max(te,0)]}createNodeData(){var Ca,Bn,ya;let{axes:l,data:c,processedData:y,dataModel:I}=this,O=l.x,j=l.y;if(!O||!j||!c||!I||!(y!=null&&y.rawData.length)||y.type!=="grouped"||!this.properties.isValid())return;let{yKey:H,xKey:K,yFilterKey:Z,marker:te,label:se,fill:ge,stroke:Se,connectMissingData:Ce,interpolation:Pe}=this.properties,{scale:Ge}=O,{scale:We}=j,{isContinuousY:He}=this.getScaleInformation({xScale:Ge,yScale:We}),Ze=((Ca=Ge.bandwidth)!=null?Ca:0)/2,it=I.resolveKeysById(this,"xValue",y),qe=I.resolveColumnById(this,"yValueEnd",y),rt=I.resolveColumnById(this,"yValueRaw",y),dt=I.resolveColumnById(this,"yValueCumulative",y),mt=Z!=null?I.resolveColumnById(this,"yFilterRaw",y):void 0,yt=I.resolveColumnById(this,"yValueStack",y),Lt=(wn,$i,kn)=>{let Zn;return(to(this.properties.normalizedTo)?He&&Eh(kn):!isNaN(kn))&&(Zn=$i),{x:Ge.convert(wn)+Ze,y:We.convert(Zn),size:te.size}},Ht=[],qt=[],{visibleSameStackCount:ri}=this.ctx.seriesStateManager.getVisiblePeerGroupIndex(this),Ei=!1,{rawData:Ni}=y;y.groups.forEach(({datumIndices:wn})=>{wn.forEach($i=>{var Ro,ro,Ha;let kn=it[$i];if(kn==null)return;let Zn=Ni[$i],Qi=rt[$i],vn=dt[$i],Xi=qe[$i],Kn=Number.isFinite(Qi),cn=Lt(kn,+vn,Qi),xo=mt!=null?mt[$i]===Qi:void 0;if(xo===!1&&(Ei=!0),Kn&&te&&qt.push({index:$i,series:this,itemId:H,datum:Zn,datumIndex:$i,midPoint:{x:cn.x,y:cn.y},cumulativeValue:Xi,yValue:Qi,xValue:kn,yKey:H,xKey:K,point:cn,fill:(Ro=te.fill)!=null?Ro:ge,stroke:(ro=te.stroke)!=null?ro:Se,strokeWidth:(Ha=te.strokeWidth)!=null?Ha:this.getStrokeWidth(this.properties.strokeWidth),selected:xo}),Kn&&se){let Fr=this.getLabelText(se,{value:Qi,datum:Zn,xKey:K,yKey:H,xName:this.properties.xName,yName:this.properties.yName});Ht.push({index:$i,series:this,itemId:H,datum:Zn,x:cn.x,y:cn.y,labelText:Fr})}})});let Vi=wn=>wn.flatMap($i=>Array.isArray($i)?lc($i,Pe):new Array($i.skip).fill(null)),Si=y.groups.flatMap(wn=>wn.datumIndices),sn=(wn,$i)=>({point:{x:Ge.convert(wn)+Ze,y:We.convert($i)},xDatum:wn,yDatum:$i}),en=wn=>{let $i=[];for(let kn=0;kn<Si.length;kn+=1){let Zn=Si[kn],Qi=it[Zn],vn=yt[Zn],Xi=vn[wn],Kn=Number.isFinite(Xi);if(Ce&&!Kn)continue;let cn=kn>0?yt[Si[kn-1]]:void 0,xo=kn<Si.length-1?yt[Si[kn+1]]:void 0,Ro=0,ro=0;for(let Fr=0;Fr<=wn;Fr+=1){let Sr=vn[Fr];if(Number.isFinite(Sr)){let ru=cn==null||Number.isFinite(cn[Fr]),pC=xo==null||Number.isFinite(xo[Fr]);ru&&(Ro+=Sr),pC&&(ro+=Sr)}}let Ha=$i[$i.length-1];if(!Ce&&(Ro!==ro||!Kn))if(!Kn&&Array.isArray(Ha)&&Ha.length===1)$i[$i.length-1]={skip:1};else{let Fr=sn(Qi,Ro),Sr=sn(Qi,ro);Array.isArray(Ha)?Ha.push(Fr):Ha!=null&&(Ha.skip+=1),$i.push(Kn?[Sr]:{skip:0})}else{let Fr=Math.max(Ro,ro),Sr=sn(Qi,Fr);Array.isArray(Ha)?Ha.push(Sr):Ha!=null?(Ha.skip+=1,$i.push([Sr])):$i.push([Sr])}}return Vi($i)},Nn=(ya=(Bn=this.seriesGrouping)==null?void 0:Bn.stackIndex)!=null?ya:0,dn=()=>{let wn=Si.map($i=>{let kn=it[$i],Qi=yt[$i][Nn];if(!(Ce&&!Number.isFinite(Qi)))return sn(kn,0)}).filter($i=>$i!=null);return lc(wn,Pe)},ea=en(Nn),Sn=ea.map(()=>null);for(let wn=Nn-1;wn>=-1;wn-=1){let $i;for(let kn=0;kn<Sn.length;kn+=1)Sn[kn]==null&&($i!=null||($i=wn!==-1?en(wn):dn()),Sn[kn]=$i[kn])}let pn=ea.map((wn,$i)=>wn!=null?wn:Sn[$i]),ta=ea.filter(wn=>wn!=null);return{itemId:H,fillData:{itemId:H,spans:pn,phantomSpans:Sn},strokeData:{itemId:H,spans:ta},labelData:Ht,nodeData:qt,scales:this.calculateScaling(),visible:this.visible,stackVisible:ri>0,crossFiltering:Ei}}isPathOrSelectionDirty(){return this.properties.marker.isDirty()}markerFactory(){let{shape:l}=this.properties.marker,c=Hd(l);return new c}updatePathNodes(l){var Z;let{opacity:c,visible:y,animationEnabled:I}=l,[O,j]=l.paths,H=((Z=this.contextNodeData)==null?void 0:Z.crossFiltering)===!0,K=this.getStrokeWidth(this.properties.strokeWidth);j.setProperties({fill:void 0,lineCap:"round",lineJoin:"round",pointerEvents:1,stroke:this.properties.stroke,strokeWidth:K,strokeOpacity:this.properties.strokeOpacity*(H?HT:1),lineDash:this.properties.lineDash,lineDashOffset:this.properties.lineDashOffset,opacity:c,visible:y||I}),O.setProperties({stroke:void 0,lineJoin:"round",pointerEvents:1,fill:this.properties.fill,fillOpacity:this.properties.fillOpacity*(H?FS:1),fillShadow:this.properties.shadow,opacity:c,visible:y||I}),mk(this,j),mk(this,O)}updatePaths(l){this.updateAreaPaths(l.paths,l.contextData)}updateAreaPaths(l,c){for(let y of l)y.visible=c.visible;if(c.visible)this.updateFillPath(l,c),this.updateStrokePath(l,c);else for(let y of l)y.path.clear(),y.markDirty()}updateFillPath(l,c){let[y]=l;y.path.clear(),jT(y,c.fillData),y.markDirty()}updateStrokePath(l,c){let{spans:y}=c.strokeData,[,I]=l;I.path.clear(),ak(I,y),I.markDirty()}updateMarkerSelection(l){var O;let{nodeData:c,markerSelection:y}=l,I=this.properties.marker.enabled||((O=this.contextNodeData)==null?void 0:O.crossFiltering)===!0;return this.properties.marker.isDirty()&&(y.clear(),y.cleanup()),y.update(I?c:[])}getMarkerItemBaseStyle(l){var I,O,j,H,K;let{marker:c}=this.properties,y=l?this.properties.highlightStyle.item:void 0;return{fill:(I=y==null?void 0:y.fill)!=null?I:c.fill,fillOpacity:(O=y==null?void 0:y.fillOpacity)!=null?O:c.fillOpacity,stroke:(j=y==null?void 0:y.stroke)!=null?j:c.stroke,strokeWidth:(H=y==null?void 0:y.strokeWidth)!=null?H:c.strokeWidth,strokeOpacity:(K=y==null?void 0:y.strokeOpacity)!=null?K:c.strokeOpacity}}getMarkerItemStyleOverrides(l,c,y,I,O,j){let{marker:H}=this.properties,{itemStyler:K}=H;if(K==null)return;let{id:Z,properties:te}=this,{xKey:se,yKey:ge}=te,{xDomain:Se,yDomain:Ce}=this.cachedDatumCallback("domain",()=>({xDomain:this.getSeriesDomain("x"),yDomain:this.getSeriesDomain("y")}));return this.cachedDatumCallback(Js(l,j?"highlight":"node"),()=>K(pe(et(pe({seriesId:Z},Ip(c,se,ge,Se,Ce)),{xValue:y,yValue:I,highlighted:j}),O)))}updateMarkerNodes(l){let{markerSelection:c,isHighlight:y}=l,{xKey:I,yKey:O,marker:j,fill:H,stroke:K,strokeWidth:Z,fillOpacity:te,strokeOpacity:se,highlightStyle:ge}=this.properties,Se=this.getSeriesDomain("x"),Ce=this.getSeriesDomain("y"),Pe=Wi(y&&ge.item,j.getStyle(),{fill:H,stroke:K,strokeWidth:Z,fillOpacity:te,strokeOpacity:se});c.each((Ge,We)=>{this.updateMarkerStyle(Ge,j,et(pe({},Ip(We,I,O,Se,Ce)),{highlighted:y}),Pe,{selected:We.selected})}),y||this.properties.marker.markClean()}updateLabelSelection(l){let{labelData:c,labelSelection:y}=l;return y.update(c)}updateLabelNodes(l){let{labelSelection:c}=l,{enabled:y,fontStyle:I,fontWeight:O,fontSize:j,fontFamily:H,color:K}=this.properties.label;c.each((Z,te)=>{let{x:se,y:ge,labelText:Se}=te;Se&&y&&this.visible?(Z.fontStyle=I,Z.fontWeight=O,Z.fontSize=j,Z.fontFamily=H,Z.textAlign="center",Z.textBaseline="bottom",Z.text=Se,Z.x=se,Z.y=ge-10,Z.fill=K,Z.visible=!0):Z.visible=!1})}getTooltipContent(l){let{id:c,dataModel:y,processedData:I,axes:O,properties:j}=this,{xKey:H,xName:K,yKey:Z,yName:te,tooltip:se}=j,ge=O.x,Se=O.y;if(!y||!I||I.rawData.length===0||!ge||!Se)return;let{datumIndex:Ce}=l,Pe=I.rawData[Ce],Ge=y.resolveKeysById(this,"xValue",I)[Ce],We=y.resolveColumnById(this,"yValueRaw",I)[Ce];if(Ge==null)return;let He=this.getMarkerItemBaseStyle(!1);return Object.assign(He,this.getMarkerItemStyleOverrides(String(Ce),Pe,Ge,We,He,!1)),se.formatTooltip({heading:ge.formatDatum(Ge),symbol:this.legendItemSymbol(),data:[{label:te,fallbackLabel:Z,value:Se.formatDatum(We)}]},pe(pe({seriesId:c,datum:Pe,title:te,xKey:H,xName:K,yKey:Z,yName:te},He),this.getModuleTooltipParams()))}legendItemSymbol(){var Z,te,se;let{fill:l,stroke:c,fillOpacity:y,strokeOpacity:I,strokeWidth:O,lineDash:j,marker:H}=this.properties,K=!H.enabled||H.fill===void 0;return{marker:{shape:H.shape,fill:K?l:H.fill,fillOpacity:K?y:H.fillOpacity,stroke:(Z=H.stroke)!=null?Z:c,strokeOpacity:(te=H.strokeOpacity)!=null?te:I,strokeWidth:(se=H.strokeWidth)!=null?se:0,enabled:H.enabled||O<=0},line:{stroke:c,strokeOpacity:I,strokeWidth:O,lineDash:j}}}getLegendData(l){var Z;if(!this.properties.isValid()||l!=="category")return[];let{id:c,ctx:{legendManager:y},visible:I}=this,{yKey:O,yName:j,legendItemName:H,showInLegend:K}=this.properties;return[{legendType:l,id:c,itemId:O,seriesId:c,enabled:I&&y.getItemEnabled({seriesId:c,itemId:O}),label:{text:(Z=H!=null?H:j)!=null?Z:O},symbol:this.legendItemSymbol(),legendItemName:H,hideInLegend:!K}]}animateEmptyUpdateReady(l){let{markerSelection:c,labelSelection:y,contextData:I,paths:O}=l,{animationManager:j}=this.ctx;this.updateAreaPaths(O,I),$v(this,j,...O),Yo([c],tC),jp(this,j,c),Ma(this,"labels",j,y)}animateReadyResize(l){let{contextData:c,paths:y}=l;this.updateAreaPaths(y,c),super.animateReadyResize(l)}animateWaitingUpdateReady(l){let{animationManager:c}=this.ctx,{markerSelection:y,labelSelection:I,contextData:O,paths:j,previousContextData:H}=l,[K,Z]=j;if(K==null&&Z==null)return;this.resetMarkerAnimation(l),this.resetLabelAnimation(l);let te=()=>{this.resetPathAnimation(l),this.updateAreaPaths(j,O)},se=()=>{c.skipCurrentBatch(),te()};if(O==null||H==null){te(),Jb(this,c,"added",y),hk(this,"fill_path_properties",c,"add",K),hk(this,"stroke_path_properties",c,"add",Z),Ma(this,"labels",c,I);return}if(O.crossFiltering!==H.crossFiltering){se();return}let ge=lk(O,H);if(ge===void 0){se();return}else if(ge.status==="no-op")return;Jb(this,c,void 0,y),yi(this.id,"fill_path_properties",c,[K],ge.fill.pathProperties),AS(this.id,"fill_path_update",c,[K],ge.fill.path),yi(this.id,"stroke_path_properties",c,[Z],ge.stroke.pathProperties),AS(this.id,"stroke_path_update",c,[Z],ge.stroke.path),Ma(this,"labels",c,I),this.ctx.animationManager.animate({id:this.id,groupId:"reset_after_animation",phase:"trailing",from:{},to:{},onComplete:()=>this.updateAreaPaths(j,O)})}isLabelEnabled(){return this.properties.label.enabled}nodeFactory(){return new Mn}getFormattedMarkerStyle(l){let{xKey:c,yKey:y}=l,I=this.getSeriesDomain("x"),O=this.getSeriesDomain("y");return this.getMarkerStyle(this.properties.marker,et(pe({},Ip(l,c,y,I,O)),{highlighted:!0}))}computeFocusBounds(l){return Fg(this,l)}};NS.className="AreaSeries",NS.type="area";var AL={type:"series",optionsKey:"series[]",packageType:"community",chartTypes:["cartesian"],identifier:"area",moduleFactory:l=>new NS(l),stackable:!0,tooltipDefaults:{range:"nearest"},defaultAxes:[{type:"number",position:"left"},{type:"category",position:"bottom"}],themeTemplate:{series:{nodeClickRange:"nearest",tooltip:{position:{type:"node"}},fillOpacity:.8,strokeOpacity:1,strokeWidth:0,lineDash:[0],lineDashOffset:0,shadow:{enabled:!1,color:Ig,xOffset:3,yOffset:3,blur:5},interpolation:{type:"linear",tension:1,position:"end"},marker:{enabled:!1,shape:"circle",size:7,strokeWidth:0},label:{enabled:!1,fontSize:12,fontFamily:Jo,color:jo}}},paletteFactory:l=>{let{marker:c}=kS(l);return{fill:c.fill,stroke:c.stroke,marker:c}}};function iC(l,c){for(let y of c){let I=y.datum;I===void 0?Pi.error("undefined datum"):l.addValue(y,I)}}function xf(l,c){let{x:y,y:I}=c,{nearest:O,distanceSquared:j}=l.getQuadTree().find(y,I);if(O!==void 0)return{datum:O.value,distance:Math.sqrt(j)}}var zS=class extends Lp{constructor(){super(...arguments),this.direction="vertical"}};D([Je(ig)],zS.prototype,"direction",2);var w1=class extends Jm{constructor(){super(...arguments),this.groupScale=new Wl,this.smallestDataInterval=void 0,this.largestDataInterval=void 0}padBandExtent(l,c){var j;let y=typeof c=="boolean"?1:.5,I=_t(this.smallestDataInterval)?this.smallestDataInterval*y:0,O=(j=lp(l))!=null?j:[NaN,NaN];return typeof c=="boolean"?O[c?0:1]-=(c?1:-1)*I:(O[0]-=I,O[1]+=I),tc(O)}getBandScalePadding(){return{inner:.3,outer:.15}}shouldFlipXY(){return!this.isVertical()}isVertical(){return this.properties.direction==="vertical"}getBarDirection(){return this.shouldFlipXY()?"x":"y"}getCategoryDirection(){return this.shouldFlipXY()?"y":"x"}getValueAxis(){let l=this.getBarDirection();return this.axes[l]}getCategoryAxis(){let l=this.getCategoryDirection();return this.axes[l]}getBandwidth(l){return io.is(l.scale)?l.scale.calcBandwidth(this.smallestDataInterval):l.scale.bandwidth}updateGroupScale(l){let c=[],{groupScale:y}=this,I=this.getBandwidth(l),{index:O,visibleGroupCount:j}=this.ctx.seriesStateManager.getVisiblePeerGroupIndex(this);for(let K=0;K<j;K++)c.push(String(K));return y.domain=c,y.range=[0,I!=null?I:0],l instanceof kg?y.paddingInner=l.groupPaddingInner:l instanceof vp?(y.paddingInner=l.groupPaddingInner,y.round=y.padding!==0):y.padding=0,{barWidth:y.bandwidth>=1?y.bandwidth:y.rawBandwidth,groupIndex:O}}resolveKeyDirection(l){return this.getBarDirection()==="x"?l==="x"?"y":"x":l}initQuadTree(l){iC(l,this.datumNodesIter())}pickNodeClosestDatum(l){return xf(this,l)}},x1=class extends Xo{constructor(){super(...arguments),this.placement="inside-center",this.padding=0}};D([Je(wa(["inside-center","inside-start","inside-end","outside-start","outside-end"],"a placement"))],x1.prototype,"placement",2),D([Je(Vn)],x1.prototype,"padding",2);var La=class extends zS{constructor(){super(...arguments),this.fill="#c16068",this.fillOpacity=1,this.stroke="#874349",this.strokeWidth=1,this.strokeOpacity=1,this.lineDash=[0],this.lineDashOffset=0,this.cornerRadius=0,this.crisp=void 0,this.shadow=new Zd,this.label=new x1,this.tooltip=new oc,this.sparklineMode=!1,this.fastDataProcessing=!1}};D([Je(ui)],La.prototype,"xKey",2),D([Je(ui,{optional:!0})],La.prototype,"xName",2),D([Je(ui)],La.prototype,"yKey",2),D([Je(ui,{optional:!0})],La.prototype,"yName",2),D([Je(ui,{optional:!0})],La.prototype,"yFilterKey",2),D([Je(ui,{optional:!0})],La.prototype,"stackGroup",2),D([Je(Vn,{optional:!0})],La.prototype,"normalizedTo",2),D([Je(na)],La.prototype,"fill",2),D([Je(Ia)],La.prototype,"fillOpacity",2),D([Je(na)],La.prototype,"stroke",2),D([Je(Fi)],La.prototype,"strokeWidth",2),D([Je(Ia)],La.prototype,"strokeOpacity",2),D([Je(qo)],La.prototype,"lineDash",2),D([Je(Fi)],La.prototype,"lineDashOffset",2),D([Je(Fi)],La.prototype,"cornerRadius",2),D([Je(Zi,{optional:!0})],La.prototype,"crisp",2),D([Je(no,{optional:!0})],La.prototype,"itemStyler",2),D([Je(Gi,{optional:!0})],La.prototype,"shadow",2),D([Je(Gi)],La.prototype,"label",2),D([Je(Gi)],La.prototype,"tooltip",2),D([Je(Zi)],La.prototype,"sparklineMode",2),D([Je(Zi)],La.prototype,"fastDataProcessing",2);function fk(l,c){var y,I,O,j,H,K;l.crisp=(y=c.crisp)!=null?y:!0,l.fill=c.fill,l.stroke=c.stroke,l.strokeWidth=c.strokeWidth,l.fillOpacity=c.fillOpacity,l.strokeOpacity=c.strokeOpacity,l.lineDash=c.lineDash,l.lineDashOffset=c.lineDashOffset,l.fillShadow=c.fillShadow,l.topLeftCornerRadius=c.topLeftCornerRadius!==!1&&(I=c.cornerRadius)!=null?I:0,l.topRightCornerRadius=c.topRightCornerRadius!==!1&&(O=c.cornerRadius)!=null?O:0,l.bottomRightCornerRadius=c.bottomRightCornerRadius!==!1&&(j=c.cornerRadius)!=null?j:0,l.bottomLeftCornerRadius=c.bottomLeftCornerRadius!==!1&&(H=c.cornerRadius)!=null?H:0,l.visible=(K=c.visible)!=null?K:!0}function vk(l,c,te){var se=te,{datum:y,isHighlighted:I,style:O,highlightStyle:j,itemStyler:H,seriesId:K}=se,Z=ji(se,["datum","isHighlighted","style","highlightStyle","itemStyler","seriesId"]);var qe,rt,dt,mt,yt,Lt,Ht,qt;let{fill:ge,fillOpacity:Se,stroke:Ce,strokeWidth:Pe,strokeOpacity:Ge,lineDash:We,lineDashOffset:He,cornerRadius:Ze=0}=Wi(I&&j,O),it;return H&&(it=l.cachedDatumCallback(Js(c,I?"highlight":"node"),()=>H(pe({datum:y.datum,xKey:y.xKey,fill:ge,fillOpacity:Se,stroke:Ce,strokeWidth:Pe,strokeOpacity:Ge,lineDash:We,lineDashOffset:He,cornerRadius:Ze,highlighted:I,seriesId:K},Z)))),{fill:(qe=it==null?void 0:it.fill)!=null?qe:ge,fillOpacity:(rt=it==null?void 0:it.fillOpacity)!=null?rt:Se,stroke:(dt=it==null?void 0:it.stroke)!=null?dt:Ce,strokeWidth:(mt=it==null?void 0:it.strokeWidth)!=null?mt:Pe,strokeOpacity:(yt=it==null?void 0:it.strokeOpacity)!=null?yt:Ge,lineDash:(Lt=it==null?void 0:it.lineDash)!=null?Lt:We,lineDashOffset:(Ht=it==null?void 0:it.lineDashOffset)!=null?Ht:He,cornerRadius:(qt=it==null?void 0:it.cornerRadius)!=null?qt:Ze,topLeftCornerRadius:O.topLeftCornerRadius,topRightCornerRadius:O.topRightCornerRadius,bottomRightCornerRadius:O.bottomRightCornerRadius,bottomLeftCornerRadius:O.bottomLeftCornerRadius,fillShadow:O.fillShadow}}function Nu(l,c,y,I){if(c!=null){let[O,j]=c;if(O!==0||j!==1)return!1}if(io.is(l)){let O=l.calcBandwidth(I)-l.calcBandwidth(y);if(O>0&&O<1)return!1}return!0}var yk=l=>{var c;return Ee((c=l.yValue)!=null?c:0)};function Mf(l,c,y){let{startingX:I,startingY:O}=M1(l,c);return{isVertical:l,calculate:(H,K)=>{let Z=l?H.x:I,te=l?O:H.y,se=l?H.width:0,ge=l?0:H.height,{opacity:Se}=H;K&&(isNaN(Z)||isNaN(te))&&({x:Z,y:te}=K,se=l?K.width:0,ge=l?0:K.height,l&&!yk(K)?te+=K.height:!l&&yk(K)&&(Z+=K.width));let Ce;return H.clipBBox==null?Ce=void 0:yk(H)?Ce=l?new ft(Z,te-ge,se,ge):new ft(Z-se,te,se,ge):Ce=new ft(Z,te,se,ge),{x:Z,y:te,width:se,height:ge,clipBBox:Ce,opacity:Se}},mode:y}}function bk(l,c){return{isVertical:l,calculate:y=>({x:l?y.x:y.x+y.width/2,y:l?y.y+y.height/2:y.y,width:l?y.width:0,height:l?0:y.height,clipBBox:y.clipBBox,opacity:y.opacity}),mode:c}}function Qv(l){let c=O=>O==null||isNaN(O.x)||isNaN(O.y);return{toFn:(O,j,H)=>H==="removed"&&O.datum==null&&l.mode==="fade"?et(pe({},nC(O,j)),{opacity:0}):H==="removed"||c(j)?l.calculate(j,O.previousDatum):{x:j.x,y:j.y,width:j.width,height:j.height,clipBBox:j.clipBBox,opacity:j.opacity},fromFn:(O,j,H)=>{H==="updated"&&c(j)?H="removed":H==="updated"&&c(O.previousDatum)&&(H="added");let K;H==="added"&&O.previousDatum==null&&l.mode==="fade"?K=et(pe({},nC(O,j)),{opacity:0}):H==="unknown"||H==="added"?K=l.calculate(j,O.previousDatum):K={x:O.x,y:O.y,width:O.width,height:O.height,clipBBox:O.clipBBox,opacity:O.opacity};let Z=Fs[H];return et(pe({},K),{phase:Z})}}}function M1(l,c){let y=c[l?"y":"x"],I=1/0,O=0;return y?(l?O=y.scale.convert(io.is(y.scale)?0:Math.max(...y.range)):I=y.scale.convert(io.is(y.scale)?0:Math.min(...y.range)),{startingX:I,startingY:O}):{startingX:I,startingY:O}}function nC(l,{x:c,y,width:I,height:O,clipBBox:j,opacity:H}){return{x:c,y,width:I,height:O,clipBBox:j,opacity:H}}function Ck(l){if(l===void 0)return;let{x:c,y,width:I,height:O}=l;return new ft(c,y,I,O)}function k1(l,c,y){if(c.enabled&&y){let{x:I,y:O,text:j,textAlign:H,textBaseline:K}=y,{color:Z,fontStyle:te,fontWeight:se,fontSize:ge,fontFamily:Se}=c;l.setProperties({visible:!0,x:I,y:O,text:j,fill:Z,fontStyle:te,fontWeight:se,fontSize:ge,fontFamily:Se,textAlign:H,textBaseline:K})}else l.visible=!1}var WT={"inside-start":{inside:!0,direction:-1,textAlignment:1},"inside-end":{inside:!0,direction:1,textAlignment:-1},"outside-start":{inside:!1,direction:-1,textAlignment:-1},"outside-end":{inside:!1,direction:1,textAlignment:1}};function A1({isUpward:l,isVertical:c,placement:y,padding:I=0,rect:O}){let j=O.x+O.width/2,H=O.y+O.height/2,K="center",Z="middle";if(y!=="inside-center"){let te=(l?1:-1)*(c?-1:1),{direction:se,textAlignment:ge}=WT[y],Se=(se+1)*.5;if(c){let Ce=l?O.y+O.height:O.y,Pe=O.height*te;H=Ce+Pe*Se+I*ge*te,Z=ge===te?"top":"bottom"}else{let Ce=l?O.x:O.x+O.width,Pe=O.width*te;j=Ce+Pe*Se+I*ge*te,K=ge===te?"left":"right"}}return{x:j,y:H,textAlign:K,textBaseline:Z}}var UT=0,el=1,D1=2,Jv=3,zu=4,Il=class extends w1{constructor(l){super({moduleCtx:l,directionKeys:xg,directionNames:Pp,pickModes:[2,1,0],pathsPerSeries:[],hasHighlightedLabels:!0,datumSelectionGarbageCollection:!1,animationAlwaysUpdateSelections:!0,animationResetFns:{datum:nC,label:Og}}),this.properties=new La,this.connectsToYAxis=!0,this.dataAggregationFilters=void 0}get pickModeAxis(){return this.properties.sparklineMode?"main":void 0}crossFilteringEnabled(){return this.properties.yFilterKey!=null&&(this.seriesGrouping==null||this.seriesGrouping.stackIndex===0)}async processData(l){var mt,yt,Lt,Ht,qt,ri,Ei,Ni;if(!this.properties.isValid()||!this.data)return;let{xKey:c,yKey:y,yFilterKey:I,normalizedTo:O,fastDataProcessing:j}=this.properties,{seriesGrouping:{groupIndex:H=this.id}={},data:K}=this,Z=(yt=(mt=this.seriesGrouping)==null?void 0:mt.groupCount)!=null?yt:0,te=(Ht=(Lt=this.seriesGrouping)==null?void 0:Lt.stackCount)!=null?Ht:0,se=!j||O!=null||Z>1||te>1,ge=!this.ctx.animationManager.isSkipped(),Se=(qt=this.getCategoryAxis())==null?void 0:qt.scale,Ce=(ri=this.getValueAxis())==null?void 0:ri.scale,{isContinuousX:Pe,xScaleType:Ge,yScaleType:We}=this.getScaleInformation({xScale:Se,yScale:Ce}),He=`bar-stack-${H}-yValues`,Ze=`${He}-trailing`,it=this.visible?{}:{forceValue:0},qe=[kl(c,Ge,{id:"xValue"}),Jn(y,We,pe({id:"yValue-raw",invalidValue:null},it))];this.crossFilteringEnabled()&&qe.push(Jn(I,We,pe({id:"yFilterValue",invalidValue:null},it))),se&&qe.push(..._p(y,"normal","current",pe({id:"yValue-end",rangeId:"yValue-range",invalidValue:null,missingValue:0,groupId:He,separateNegative:!0},it),We),..._p(y,"trailing","current",pe({id:"yValue-start",invalidValue:null,missingValue:0,groupId:Ze,separateNegative:!0},it),We)),Pe&&qe.push(yT,Nb),_t(O)&&qe.push(zb([He,Ze],Math.abs(O),"range")),ge&&this.processedData&&qe.push(sf(this.id,this.processedData)),(ge||!se)&&qe.push(af());let{dataModel:rt,processedData:dt}=await this.requestDataModel(l,K,{props:qe,groupByKeys:se,groupByData:!se});this.dataAggregationFilters=this.aggregateData(rt,dt),this.smallestDataInterval=(Ei=dt.reduced)==null?void 0:Ei.smallestKeyInterval,this.largestDataInterval=(Ni=dt.reduced)==null?void 0:Ni.largestKeyInterval,this.animationState.transition("updateData")}getSeriesDomain(l){var Z,te;let{processedData:c,dataModel:y}=this;if(y==null||c==null)return[];let I=(te=(Z=c.rawDataSources)==null?void 0:Z.get(this.id))!=null?te:c.rawData;if(I==null||I.length===0)return[];let O=y.resolveProcessedDataDefById(this,"xValue"),j=y.getDomain(this,"xValue","key",c),H=c.type==="grouped"?y.getDomain(this,"yValue-end","value",c):y.getDomain(this,"yValue-raw","value",c),K=this.crossFilteringEnabled()?y.getDomain(this,"yFilterValue","value",c):void 0;if(K!=null&&(H=[Math.min(H[0],K[0]),Math.max(H[1],K[1])]),l===this.getCategoryDirection())return(O==null?void 0:O.def.type)==="key"&&O.def.valueType==="category"?j:this.padBandExtent(j);if(this.getValueAxis()instanceof cf)return tc(H);{let se=[Math.min(0,H[0]),Math.max(0,H[1])];return tc(se)}}getSeriesRange(l,c){var ge;let{dataModel:y,processedData:I}=this;if(!y||!I||this.getBarDirection()==="x")return[NaN,NaN];let O=this.axes.x.scale,j=y.resolveKeysById(this,"xValue",I),H=(ge=O.bandwidth)!=null?ge:0,[K,Z]=aS(j.length,c,Se=>{let Ce=O.convert(j[Se]);return[Ce,Ce+H]}),[te,se]=y.getDomainBetweenRange(this,I.type==="ungrouped"?["yValue-raw"]:["yValue-end"],[K,Z],I);return[Math.min(te,0),Math.max(se,0)]}aggregateData(l,c){}visibleRange(l,c,y,I){return[0,l]}createNodeData(){var wo,Ca;let{dataModel:l,processedData:c,groupScale:y,dataAggregationFilters:I}=this,O=this.getCategoryAxis(),j=this.getValueAxis();if(!l||!c||!O||!j||!this.properties.isValid())return;let H=(Ca=(wo=c.rawDataSources)==null?void 0:wo.get(this.id))!=null?Ca:c.rawData;if(H==null||H.length===0)return;let K=O.scale,Z=j.scale,{xKey:te,yKey:se,xName:ge,yName:Se,fill:Ce,stroke:Pe,strokeWidth:Ge,cornerRadius:We,legendItemName:He,label:Ze}=this.properties,it=j.isReversed(),{barWidth:qe,groupIndex:rt}=this.updateGroupScale(O),dt=y.convert(String(rt)),mt=io.is(K)?qe*-.5:0,yt=l.resolveKeysById(this,"xValue",c),Lt=l.resolveColumnById(this,"yValue-raw",c),Ht=this.crossFilteringEnabled()?l.resolveColumnById(this,"yFilterValue",c):void 0,qt=!this.ctx.animationManager.isSkipped(),ri=Bn=>K.convert(yt[Bn])+dt+mt,Ei=Z.convert(0),Ni=({datum:Bn,datumIndex:ya,valueIndex:wn,xValue:$i,yValue:kn,cumulativeValue:Zn,phantom:Qi,currY:vn,prevY:Xi,x:Kn,width:cn,isPositive:xo,yRange:Ro,labelText:ro,opacity:Ha,crossScale:Fr=1})=>{let Sr=xo!==it,ru=Z.convert(vn),pC=Z.convert(Xi),jk=Z.convert(Ro),Hg=this.getBarDirection()==="x",gw=cn*.5*(1-Fr),Wg={x:Hg?Math.min(ru,pC):Kn+gw,y:Hg?Kn+gw:Math.min(ru,pC),width:Hg?Math.abs(pC-ru):cn*Fr,height:Hg?cn*Fr:Math.abs(pC-ru)},vR=new ft(Wg.x,Wg.y,Wg.width,Wg.height),aE={x:Hg?Math.min(Ei,jk):Kn+gw,y:Hg?Kn+gw:Math.min(Ei,jk),width:Hg?Math.abs(Ei-jk):cn*Fr,height:Hg?cn*Fr:Math.abs(Ei-jk)},zL=this.shouldFlipXY()?Wg.height:Wg.width;return{series:this,itemId:Qi?Js(se,Qi):se,datum:Bn,datumIndex:ya,valueIndex:wn,cumulativeValue:Zn,phantom:Qi,xValue:$i,yValue:kn,yKey:se,xKey:te,capDefaults:{lengthRatioMultiplier:zL,lengthMax:zL},x:aE.x,y:aE.y,width:aE.width,height:aE.height,midPoint:{x:Wg.x+Wg.width/2,y:Wg.y+Wg.height/2},fill:Ce,stroke:Pe,opacity:Ha,strokeWidth:Ge,cornerRadius:We,topLeftCornerRadius:Hg!==Sr,topRightCornerRadius:Sr,bottomRightCornerRadius:Hg===Sr,bottomLeftCornerRadius:!Sr,clipBBox:vR,label:ro!=null?pe({text:ro},A1({isUpward:Sr,isVertical:!Hg,placement:Ze.placement,padding:Ze.padding,rect:Wg})):void 0,missing:kn==null,focusable:!Qi}},Vi=[],Si=[],sn=[],en=(Bn,ya,wn,$i,kn,Zn,Qi,vn)=>{let Xi=yt[Bn];if(Xi==null)return;let Kn=Lt[Bn],cn=Ht!=null?Number(Ht[Bn]):void 0,xo=Kn>=0&&!Object.is(Kn,-0);if(!Number.isFinite(Zn)||cn!=null&&!Number.isFinite(cn))return;let Ro=Kn!=null?this.getLabelText(this.properties.label,{datum:H[Bn],value:cn!=null?cn:Kn,xKey:te,yKey:se,xName:ge,yName:Se,legendItemName:He}):void 0,ro=cn!=null&&cn>Kn,Ha=Ni({datum:H[Bn],datumIndex:Bn,valueIndex:ya,xValue:Xi,yValue:cn!=null?cn:Kn,cumulativeValue:cn!=null?cn:Zn,phantom:!1,currY:cn!=null?kn+cn:Zn,prevY:kn,x:wn,width:$i,isPositive:xo,yRange:Math.max(kn+(cn!=null?cn:-1/0),Qi),labelText:Ro,opacity:vn,crossScale:ro?.6:void 0});if(Si.push(Ha),sn.push(Ha),cn!=null){let Fr=Ni({datum:H[Bn],datumIndex:Bn,valueIndex:ya,xValue:Xi,yValue:cn,cumulativeValue:cn,phantom:!0,currY:Zn,prevY:kn,x:wn,width:$i,isPositive:xo,yRange:Qi,labelText:void 0,opacity:vn,crossScale:void 0});Vi.push(Fr)}},[Nn,dn]=Re(O.range),[ea,Sn]=K.range,pn=Sn-ea,ta=I==null?void 0:I.find(Bn=>Bn.maxRange>pn);if(c.type==="grouped"){let Bn=qe,ya=l.resolveColumnById(this,"yValue-start",c),wn=l.resolveColumnById(this,"yValue-end",c),$i=l.resolveProcessedDataIndexById(this,"yValue-range");c.groups.forEach(({datumIndices:kn,aggregation:Zn})=>{let Qi=Zn[$i];kn.forEach((vn,Xi)=>{let Kn=ri(vn),cn=Lt[vn],xo=cn>=0&&!Object.is(cn,-0),Ro=Number(ya[vn]),ro=Number(wn[vn]),Ha=Qi[xo?1:0];en(vn,Xi,Kn,Bn,Ro,ro,Ha,1)})})}else if(ta==null){let Bn=qe,[ya,wn]=this.visibleRange(H.length,Nn,dn,ri);c.rawData.length<1e3&&(ya=0,wn=c.rawData.length);for(let $i=ya;$i<wn;$i+=1){let kn=ri($i),Zn=Number(Lt[$i]);en($i,0,kn,Bn,0,Zn,Zn,1)}}else{let{maxRange:Bn,indexData:ya}=ta,[wn,$i]=this.visibleRange(Bn,Nn,dn,kn=>{let Zn=kn*zu,Qi=ya[Zn+UT],vn=ya[Zn+el],Xi=(Qi+vn)/2|0;return Qi!==-1?ri(Xi):NaN});for(let kn=wn;kn<$i;kn+=1){let Zn=kn*zu,Qi=ya[Zn+UT],vn=ya[Zn+el],Xi=ya[Zn+D1],Kn=ya[Zn+Jv];if(Qi===-1)continue;let cn=ri((Qi+vn)/2|0),xo=Math.abs(ri(vn)-ri(Qi))+qe,Ro=yt[Kn]!=null?Number(Lt[Kn]):NaN,ro=yt[Xi]!=null?Number(Lt[Xi]):NaN;if(Ro>0){let Ha=ro>=0?ro/Ro:1;en(Kn,0,cn,xo,0,Ro,Ro,Ha)}if(ro<0){let Ha=Ro<=0?Ro/ro:1;en(Xi,1,cn,xo,0,ro,ro,Ha)}}}return{itemId:se,nodeData:Vi.length>0?[...Vi,...Si]:Si,labelData:sn,scales:this.calculateScaling(),visible:this.visible||qt,groupScale:this.getScaling(this.groupScale)}}nodeFactory(){return new oo}getHighlightData(l,c){let y=l.find(I=>I.datum===c.datum&&!I.phantom);return y!=null?[y]:void 0}updateDatumSelection(l){return l.datumSelection.update(l.nodeData,void 0,c=>this.getDatumId(c))}getItemBaseStyle(l){var O,j,H,K,Z,te,se,ge;let{properties:c}=this,{cornerRadius:y}=c,I=l?c.highlightStyle.item:void 0;return{fill:(O=I==null?void 0:I.fill)!=null?O:c.fill,fillOpacity:(j=I==null?void 0:I.fillOpacity)!=null?j:c.fillOpacity,stroke:(H=I==null?void 0:I.stroke)!=null?H:c.stroke,strokeWidth:(K=I==null?void 0:I.strokeWidth)!=null?K:c.strokeWidth,strokeOpacity:(Z=I==null?void 0:I.strokeOpacity)!=null?Z:c.strokeOpacity,lineDash:(se=(te=I==null?void 0:I.lineDash)!=null?te:c.lineDash)!=null?se:[],lineDashOffset:(ge=I==null?void 0:I.lineDashOffset)!=null?ge:c.lineDashOffset,cornerRadius:y}}getItemStyleOverrides(l,c,y,I,O,j){let{id:H,properties:K}=this,{xKey:Z,yKey:te,itemStyler:se}=K;if(se==null)return;let{xDomain:ge,yDomain:Se}=this.cachedDatumCallback("domain",()=>({xDomain:this.getSeriesDomain("x"),yDomain:this.getSeriesDomain("y")}));return this.cachedDatumCallback(Js(l,j?"highlight":"node"),()=>se(pe(et(pe({seriesId:H},Ip(c,Z,te,ge,Se)),{xValue:y,yValue:I,highlighted:j}),O)))}updateDatumNodes(l){var qe;if(!this.properties.isValid())return;let{xKey:c,yKey:y,stackGroup:I,fill:O,fillOpacity:j,stroke:H,strokeWidth:K,strokeOpacity:Z,lineDash:te,lineDashOffset:se,itemStyler:ge,shadow:Se,highlightStyle:{item:Ce}}=this.properties,Pe=this.axes.x,Ge=(qe=this.properties.crisp)!=null?qe:Nu(Pe==null?void 0:Pe.scale,Pe==null?void 0:Pe.visibleRange,this.smallestDataInterval,this.largestDataInterval),We=this.getCategoryDirection()==="x",He={fill:O,stroke:H,lineDash:te,lineDashOffset:se,fillShadow:Se,strokeWidth:this.getStrokeWidth(K),fillOpacity:0,strokeOpacity:0},Ze=this.getSeriesDomain("x"),it=this.getSeriesDomain("y");l.datumSelection.each((rt,dt)=>{var Ht,qt,ri,Ei;let mt=pe({seriesId:this.id,isHighlighted:l.isHighlight,highlightStyle:Ce,style:He,itemStyler:ge,stackGroup:I},Ip(dt,c,y,Ze,it));He.fillOpacity=j*(dt.phantom?.2:1),He.strokeOpacity=Z*(dt.phantom?.2:1),He.cornerRadius=dt.cornerRadius,He.topLeftCornerRadius=dt.topLeftCornerRadius,He.topRightCornerRadius=dt.topRightCornerRadius,He.bottomRightCornerRadius=dt.bottomRightCornerRadius,He.bottomLeftCornerRadius=dt.bottomLeftCornerRadius;let yt=We?((qt=(Ht=dt.clipBBox)==null?void 0:Ht.width)!=null?qt:dt.width)>0:((Ei=(ri=dt.clipBBox)==null?void 0:ri.height)!=null?Ei:dt.height)>0,Lt=vk(this,this.getDatumId(dt),mt);Lt.crisp=Ge,Lt.visible=yt,fk(rt,Lt)})}updateLabelSelection(l){let c=this.isLabelEnabled()?l.labelData:[];return l.labelSelection.update(c,y=>{y.pointerEvents=1})}updateLabelNodes(l){l.labelSelection.each((c,y)=>{k1(c,this.properties.label,y.label)})}getTooltipContent(l){let{id:c,dataModel:y,processedData:I,properties:O}=this,{xKey:j,xName:H,yKey:K,yName:Z,legendItemName:te,stackGroup:se,tooltip:ge}=O,Se=this.getCategoryAxis(),Ce=this.getValueAxis();if(!y||!I||I.rawData.length===0||!Se||!Ce)return;let{datumIndex:Pe}=l,Ge=I.rawData[Pe],We=y.resolveKeysById(this,"xValue",I)[Pe],He=y.resolveColumnById(this,"yValue-raw",I)[Pe];if(We==null)return;let Ze=this.getItemBaseStyle(!1);return Object.assign(Ze,this.getItemStyleOverrides(String(Pe),Ge,We,He,Ze,!1)),ge.formatTooltip({heading:Se.formatDatum(We),symbol:this.legendItemSymbol(),data:[{label:Z,fallbackLabel:K,value:Ce.formatDatum(He)}]},pe(pe({seriesId:c,datum:Ge,title:Z,xKey:j,xName:H,yKey:K,yName:Z,legendItemName:te,stackGroup:se},Ze),this.getModuleTooltipParams()))}legendItemSymbol(){let{fill:l,stroke:c,strokeWidth:y,fillOpacity:I,strokeOpacity:O}=this.properties;return{marker:{fill:l,fillOpacity:I,stroke:c,strokeWidth:y,strokeOpacity:O}}}getLegendData(l){var Z;let{showInLegend:c}=this.properties;if(l!=="category"||!this.properties.isValid())return[];let{id:y,ctx:{legendManager:I},visible:O}=this,{yKey:j,yName:H,legendItemName:K}=this.properties;return[{legendType:"category",id:y,itemId:j,seriesId:y,enabled:O&&I.getItemEnabled({seriesId:y,itemId:j}),label:{text:(Z=K!=null?K:H)!=null?Z:j},symbol:this.legendItemSymbol(),legendItemName:K,hideInLegend:!c}]}animateEmptyUpdateReady({datumSelection:l,labelSelection:c,annotationSelections:y}){let I=Qv(Mf(this.isVertical(),this.axes,"normal"));yi(this.id,"nodes",this.ctx.animationManager,[l],I),Ma(this,"labels",this.ctx.animationManager,c),Ma(this,"annotations",this.ctx.animationManager,...y)}animateWaitingUpdateReady(l){var se,ge,Se,Ce,Pe,Ge;let{datumSelection:c,labelSelection:y,annotationSelections:I,previousContextData:O}=l;this.ctx.animationManager.stopByAnimationGroupId(this.id);let j=(Se=(ge=(se=this.processedData)==null?void 0:se.reduced)==null?void 0:ge.diff)==null?void 0:Se[this.id];j==null&&((Pe=(Ce=this.processedData)==null?void 0:Ce.reduced)==null?void 0:Pe.diff)!=null&&(j={changed:!0,added:new Set(Array.from(c,({datum:We})=>this.getDatumId(We))),updated:new Set,removed:new Set,moved:new Set});let H=O==null?"fade":"normal",K=Qv(Mf(this.isVertical(),this.axes,H));yi(this.id,"nodes",this.ctx.animationManager,[c],K,(We,He)=>this.getDatumId(He),j);let Z=O!=null&&(!mn(l.contextData.scales.x,O.scales.x)||!mn(l.contextData.scales.y,O.scales.y)||!mn(l.contextData.groupScale,l.previousContextData.groupScale));(((Ge=j==null?void 0:j.changed)!=null?Ge:!1)||Z)&&(Ma(this,"labels",this.ctx.animationManager,y),Ma(this,"annotations",this.ctx.animationManager,...I))}getDatumId(l){return Js(l.xValue,l.valueIndex,l.phantom)}isLabelEnabled(){return this.properties.label.enabled}computeFocusBounds({datumIndex:l}){var y;let c=(y=this.contextNodeData)==null?void 0:y.nodeData[l].clipBBox;return Ck(c)}};Il.className="BarSeries",Il.type="bar";var kf={type:"series",optionsKey:"series[]",packageType:"community",chartTypes:["cartesian"],identifier:"bar",moduleFactory:l=>new Il(l),stackable:!0,groupable:!0,tooltipDefaults:{range:"exact"},defaultAxes:MS([{type:"number",position:"left"},{type:"category",position:"bottom"}],l=>(l==null?void 0:l.direction)==="horizontal"),themeTemplate:{series:{direction:"vertical",fillOpacity:1,strokeWidth:0,lineDash:[0],lineDashOffset:0,label:{enabled:!1,fontWeight:"normal",fontSize:12,fontFamily:Jo,color:fd,placement:"inside-center"},shadow:{enabled:!1,color:Ig,xOffset:3,yOffset:3,blur:5},errorBar:{cap:{lengthRatio:.3}}}},paletteFactory:Bp},Sk=class extends yd{constructor(){super(...arguments),this.maxSize=30}};D([Je(Fi),kt()],Sk.prototype,"maxSize",2),D([Je(Ic,{optional:!0}),kt()],Sk.prototype,"domain",2);var Hp=class extends Xo{constructor(){super(...arguments),this.placement="top"}};D([Je(ng)],Hp.prototype,"placement",2);var Ya=class extends Lp{constructor(){super(...arguments),this.colorRange=["#ffff00","#00ff00","#0000ff"],this.label=new Hp,this.tooltip=new oc,this.marker=new Sk}};D([Je(ui)],Ya.prototype,"xKey",2),D([Je(ui)],Ya.prototype,"yKey",2),D([Je(ui)],Ya.prototype,"sizeKey",2),D([Je(ui,{optional:!0})],Ya.prototype,"labelKey",2),D([Je(ui,{optional:!0})],Ya.prototype,"colorKey",2),D([Je(ui,{optional:!0})],Ya.prototype,"xFilterKey",2),D([Je(ui,{optional:!0})],Ya.prototype,"yFilterKey",2),D([Je(ui,{optional:!0})],Ya.prototype,"sizeFilterKey",2),D([Je(ui,{optional:!0})],Ya.prototype,"xName",2),D([Je(ui,{optional:!0})],Ya.prototype,"yName",2),D([Je(ui,{optional:!0})],Ya.prototype,"sizeName",2),D([Je(ui,{optional:!0})],Ya.prototype,"labelName",2),D([Je(ui,{optional:!0})],Ya.prototype,"colorName",2),D([Je(Ic,{optional:!0})],Ya.prototype,"colorDomain",2),D([Je(gl)],Ya.prototype,"colorRange",2),D([Je(ui,{optional:!0})],Ya.prototype,"title",2),D([Ki("marker.shape")],Ya.prototype,"shape",2),D([Ki("marker.size")],Ya.prototype,"size",2),D([Ki("marker.maxSize")],Ya.prototype,"maxSize",2),D([Ki("marker.domain",{optional:!0})],Ya.prototype,"domain",2),D([Ki("marker.fill",{optional:!0})],Ya.prototype,"fill",2),D([Ki("marker.fillOpacity")],Ya.prototype,"fillOpacity",2),D([Ki("marker.stroke",{optional:!0})],Ya.prototype,"stroke",2),D([Ki("marker.strokeWidth")],Ya.prototype,"strokeWidth",2),D([Ki("marker.strokeOpacity")],Ya.prototype,"strokeOpacity",2),D([Ki("marker.itemStyler",{optional:!0})],Ya.prototype,"itemStyler",2),D([Je(Gi)],Ya.prototype,"label",2),D([Je(Gi)],Ya.prototype,"tooltip",2);var BS=class extends AM{constructor(l,c,y,I){super(l,c,y,I),this.sizeKey=I.properties.sizeKey}},wk=class extends Jm{constructor(l){super({moduleCtx:l,directionKeys:xg,directionNames:Pp,pickModes:[2,1,0],pathsPerSeries:[],hasMarkers:!0,markerSelectionGarbageCollection:!1,animationResetFns:{label:Og,marker:eC},usesPlacedLabels:!0}),this.NodeEvent=BS,this.clipFocusBox=!1,this.properties=new Ya,this.sizeScale=new pd,this.colorScale=new hi}get pickModeAxis(){return"main-category"}async processData(l){var dt,mt,yt,Lt;if(!this.properties.isValid()||this.data==null||!this.visible)return;let c=(dt=this.axes.x)==null?void 0:dt.scale,y=(mt=this.axes.y)==null?void 0:mt.scale,{xScaleType:I,yScaleType:O}=this.getScaleInformation({xScale:c,yScale:y}),j=this.colorScale.type,H=this.sizeScale.type,{xKey:K,yKey:Z,sizeKey:te,xFilterKey:se,yFilterKey:ge,sizeFilterKey:Se,labelKey:Ce,colorDomain:Pe,colorRange:Ge,colorKey:We,marker:He}=this.properties,{dataModel:Ze,processedData:it}=await this.requestDataModel(l,this.data,{props:[Jn(K,I,{id:"xValue"}),Jn(Z,O,{id:"yValue"}),...se!=null?[Jn(se,I,{id:"xFilterValue"})]:[],...ge!=null?[Jn(ge,O,{id:"yFilterValue"})]:[],...Se!=null?[Jn(Se,H,{id:"sizeFilterValue"})]:[],Jn(te,H,{id:"sizeValue"}),...We?[Jn(We,j,{id:"colorValue"})]:[],...Ce?[Jn(Ce,"band",{id:"labelValue"})]:[]]}),qe=Ze.resolveProcessedDataIndexById(this,"sizeValue"),rt=(yt=it.domain.values[qe])!=null?yt:[];if(this.sizeScale.domain=He.domain?He.domain:rt,We){let Ht=Ze.resolveProcessedDataIndexById(this,"colorValue");this.colorScale.domain=(Lt=Pe!=null?Pe:it.domain.values[Ht])!=null?Lt:[],this.colorScale.range=Ge,this.colorScale.update()}this.animationState.transition("updateData")}getSeriesDomain(l){let{dataModel:c,processedData:y}=this;if(!y||!c)return[];let I=l==="x"?"xValue":"yValue",O=c.resolveProcessedDataDefById(this,I),j=c.getDomain(this,I,"value",y);return(O==null?void 0:O.def.type)==="value"&&(O==null?void 0:O.def.valueType)==="category"?j:tc(lp(j))}getSeriesRange(l,c){return[NaN,NaN]}createNodeData(){var pn,ta;let{axes:l,dataModel:c,processedData:y,colorScale:I,sizeScale:O,visible:j}=this,{xKey:H,yKey:K,sizeKey:Z,xFilterKey:te,yFilterKey:se,sizeFilterKey:ge,labelKey:Se,xName:Ce,yName:Pe,sizeName:Ge,labelName:We,label:He,colorKey:Ze,marker:it}=this.properties,qe=Hd(it.shape),{placement:rt}=He,dt=l.x,mt=l.y;if(!(c&&(y!=null&&y.rawData.length)&&j&&dt&&mt))return;let yt=c.resolveColumnById(this,"xValue",y),Lt=c.resolveColumnById(this,"yValue",y),Ht=Z!=null?c.resolveColumnById(this,"sizeValue",y):void 0,qt=Ze!=null?c.resolveColumnById(this,"colorValue",y):void 0,ri=Se!=null?c.resolveColumnById(this,"labelValue",y):void 0,Ei=te!=null?c.resolveColumnById(this,"xFilterValue",y):void 0,Ni=se!=null?c.resolveColumnById(this,"yFilterValue",y):void 0,Vi=ge!=null?c.resolveColumnById(this,"sizeFilterValue",y):void 0,Si=dt.scale,sn=mt.scale,en=((pn=Si.bandwidth)!=null?pn:0)/2,Nn=((ta=sn.bandwidth)!=null?ta:0)/2,dn=[];O.range=[it.size,it.maxSize];let ea=He.getFont(),Sn=Cs.getMeasurer({font:ea});return y.rawData.forEach((wo,Ca)=>{let Bn=yt[Ca],ya=Lt[Ca],wn=Ht==null?void 0:Ht[Ca],$i=Si.convert(Bn)+en,kn=sn.convert(ya)+Nn,Zn;Ei!=null&&Ni!=null&&(Zn=Ei[Ca]===Bn&&Ni[Ca]===ya,Vi!=null&&Zn&&(Zn=Vi[Ca]===wn));let Qi=this.getLabelText(He,{value:ri!=null?ri[Ca]:ya,datum:wo,xKey:H,yKey:K,sizeKey:Z,labelKey:Se,xName:Ce,yName:Pe,sizeName:Ge,labelName:We}),vn=Sn.measureText(String(Qi)),Xi=wn!=null?O.convert(wn):it.size,Kn=qt!=null?I.convert(qt[Ca]):void 0;dn.push({series:this,itemId:K,yKey:K,xKey:H,datum:wo,datumIndex:Ca,xValue:Bn,yValue:ya,sizeValue:wn,point:{x:$i,y:kn,size:Xi},midPoint:{x:$i,y:kn},fill:Kn,label:pe({text:Qi},vn),marker:qe,placement:rt,selected:Zn})}),{itemId:K,nodeData:dn,labelData:dn,scales:this.calculateScaling(),visible:this.visible}}isPathOrSelectionDirty(){return this.properties.marker.isDirty()}getLabelData(){var l,c;return this.isLabelEnabled()?(c=(l=this.contextNodeData)==null?void 0:l.labelData)!=null?c:[]:[]}markerFactory(){let{shape:l}=this.properties.marker,c=Hd(l);return new c}updateMarkerSelection(l){let{nodeData:c,markerSelection:y}=l;this.properties.marker.isDirty()&&(y.clear(),y.cleanup());let I=this.properties.marker.enabled?c:[];return y.update(I,void 0,O=>Js([O.xValue,O.yValue,O.label.text]))}getMarkerItemBaseStyle(l){var O,j,H,K,Z;let{properties:c}=this,{marker:y}=c,I=l?c.highlightStyle.item:void 0;return{fill:(O=I==null?void 0:I.fill)!=null?O:y.fill,fillOpacity:(j=I==null?void 0:I.fillOpacity)!=null?j:y.fillOpacity,stroke:(H=I==null?void 0:I.stroke)!=null?H:y.stroke,strokeWidth:(K=I==null?void 0:I.strokeWidth)!=null?K:y.strokeWidth,strokeOpacity:(Z=I==null?void 0:I.strokeOpacity)!=null?Z:y.strokeOpacity}}getMarkerItemStyleOverrides(l,c,y,I){let{id:O,properties:j}=this,{xKey:H,yKey:K,sizeKey:Z,labelKey:te,marker:se}=j,{itemStyler:ge}=se;if(ge!=null)return this.cachedDatumCallback(Js(l,I?"highlight":"node"),()=>ge(pe({seriesId:O,datum:c,xKey:H,yKey:K,sizeKey:Z,labelKey:te,highlighted:I},y)))}updateMarkerNodes(l){let{markerSelection:c,isHighlight:y}=l,{xKey:I,yKey:O,sizeKey:j,labelKey:H,marker:K}=this.properties,{size:Z,shape:te,fill:se,fillOpacity:ge,stroke:Se,strokeWidth:Ce,strokeOpacity:Pe}=Wi(y&&this.properties.highlightStyle.item,K.getStyle()),Ge={size:Z,shape:te,fill:se,fillOpacity:ge,stroke:Se,strokeWidth:Ce,strokeOpacity:Pe};this.sizeScale.range=[K.size,K.maxSize],c.each((We,He)=>{this.updateMarkerStyle(We,K,{datum:He,highlighted:y,xKey:I,yKey:O,sizeKey:j,labelKey:H},Ge,{selected:He.selected})}),y||this.properties.marker.markClean()}updatePlacedLabelData(l){this.labelSelection.update(l.map(c=>et(pe({},c.datum),{point:{x:c.x,y:c.y,size:c.datum.point.size}})),c=>{c.pointerEvents=1}),this.updateLabelNodes({labelSelection:this.labelSelection})}updateLabelNodes(l){let{label:c}=this.properties;l.labelSelection.each((y,I)=>{var O,j,H,K;y.text=I.label.text,y.fill=c.color,y.x=(j=(O=I.point)==null?void 0:O.x)!=null?j:0,y.y=(K=(H=I.point)==null?void 0:H.y)!=null?K:0,y.fontStyle=c.fontStyle,y.fontWeight=c.fontWeight,y.fontSize=c.fontSize,y.fontFamily=c.fontFamily,y.textAlign="left",y.textBaseline="top"})}getTooltipContent(l){let{id:c,dataModel:y,processedData:I,axes:O,properties:j}=this,{xKey:H,xName:K,yKey:Z,yName:te,sizeKey:se,sizeName:ge,labelKey:Se,labelName:Ce,title:Pe,tooltip:Ge}=j,We=O.x,He=O.y;if(!y||!I||I.rawData.length===0||!We||!He)return;let{datumIndex:Ze}=l,it=I.rawData[Ze],qe=y.resolveColumnById(this,"xValue",I)[Ze],rt=y.resolveColumnById(this,"yValue",I)[Ze];if(qe==null)return;let dt=[{label:K,fallbackLabel:H,value:We.formatDatum(qe)},{label:te,fallbackLabel:Z,value:He.formatDatum(rt)}];if(se!=null){let yt=y.resolveColumnById(this,"sizeValue",I)[Ze];dt.push({label:ge,fallbackLabel:se,value:String(yt)})}let mt=this.getMarkerItemBaseStyle(!1);return Object.assign(mt,this.getMarkerItemStyleOverrides(String(Ze),it,mt,!1)),Ge.formatTooltip({title:Pe,symbol:this.legendItemSymbol(),data:dt},pe(pe({seriesId:c,datum:it,title:Z,xKey:H,xName:K,yKey:Z,yName:te,sizeKey:se,sizeName:ge,labelKey:Se,labelName:Ce},mt),this.getModuleTooltipParams()))}legendItemSymbol(){let{marker:l}=this.properties,{shape:c,fill:y,stroke:I,fillOpacity:O,strokeOpacity:j,strokeWidth:H}=l;return{marker:{shape:c,fill:y!=null?y:"rgba(0, 0, 0, 0)",stroke:I!=null?I:"rgba(0, 0, 0, 0)",fillOpacity:O!=null?O:1,strokeOpacity:j!=null?j:1,strokeWidth:H!=null?H:0}}}getLegendData(){var H;if(!this.properties.isValid())return[];let{id:l,ctx:{legendManager:c},visible:y}=this,{yKey:I,yName:O,title:j}=this.properties;return[{legendType:"category",id:l,itemId:I,seriesId:l,enabled:y&&c.getItemEnabled({seriesId:l,itemId:I}),label:{text:(H=j!=null?j:O)!=null?H:I},symbol:this.legendItemSymbol()}]}animateEmptyUpdateReady({markerSelection:l,labelSelection:c}){wf(this,this.ctx.animationManager,l),Ma(this,"labels",this.ctx.animationManager,c)}isLabelEnabled(){return this.properties.label.enabled}nodeFactory(){return new Mn}getFormattedMarkerStyle(l){let{xKey:c,yKey:y,sizeKey:I,labelKey:O}=this.properties;return this.getMarkerStyle(this.properties.marker,{datum:l,xKey:c,yKey:y,sizeKey:I,labelKey:O,highlighted:!1})}computeFocusBounds(l){return Fg(this,l)}};wk.className="BubbleSeries",wk.type="bubble";var DL={type:"series",optionsKey:"series[]",packageType:"community",chartTypes:["cartesian"],identifier:"bubble",moduleFactory:l=>new wk(l),tooltipDefaults:{range:"nearest"},defaultAxes:[{type:"number",position:"bottom"},{type:"number",position:"left"}],themeTemplate:{series:{shape:"circle",size:7,maxSize:30,fillOpacity:.8,tooltip:{position:{type:"node"}},label:{enabled:!1,fontSize:12,fontFamily:Jo,color:jo}}},paletteFactory:Bp},Rr=class extends Lp{constructor(){super(...arguments),this.fillOpacity=1,this.strokeWidth=1,this.strokeOpacity=1,this.lineDash=[0],this.lineDashOffset=0,this.cornerRadius=0,this.areaPlot=!1,this.aggregation="sum",this.shadow=new Zd,this.label=new Xo,this.tooltip=new oc}};D([Je(ui)],Rr.prototype,"xKey",2),D([Je(ui,{optional:!0})],Rr.prototype,"yKey",2),D([Je(ui,{optional:!0})],Rr.prototype,"xName",2),D([Je(ui,{optional:!0})],Rr.prototype,"yName",2),D([Je(na,{optional:!0})],Rr.prototype,"fill",2),D([Je(Ia)],Rr.prototype,"fillOpacity",2),D([Je(na,{optional:!0})],Rr.prototype,"stroke",2),D([Je(Fi)],Rr.prototype,"strokeWidth",2),D([Je(Ia)],Rr.prototype,"strokeOpacity",2),D([Je(qo)],Rr.prototype,"lineDash",2),D([Je(Fi)],Rr.prototype,"lineDashOffset",2),D([Je(Fi)],Rr.prototype,"cornerRadius",2),D([Je(Zi)],Rr.prototype,"areaPlot",2),D([Je(nv,{optional:!0})],Rr.prototype,"bins",2),D([Je(wa(["count","sum","mean"],"a histogram aggregation"))],Rr.prototype,"aggregation",2),D([Je(Fi,{optional:!0})],Rr.prototype,"binCount",2),D([Je(Gi)],Rr.prototype,"shadow",2),D([Je(Gi)],Rr.prototype,"label",2),D([Je(Gi)],Rr.prototype,"tooltip",2);var xk=10,E1=class extends Jm{constructor(l){super({moduleCtx:l,directionKeys:xg,directionNames:Pp,pickModes:[1,0],datumSelectionGarbageCollection:!1,animationResetFns:{datum:nC,label:Og}}),this.properties=new Rr,this.calculatedBins=[]}deriveBins(l){let c=ag(l[0],l[1],xk),y=Ri(l[0],l[1],xk),[I]=c,O=j=>[j,j+y];return[[I-y,I],...c.map(O)]}calculateNiceBins(l,c){let y=Math.floor(l[0]),I=l[1],O=c||1,{start:j,binSize:H}=this.calculateNiceStart(y,I,O);return this.getBins(j,I,H,O)}getBins(l,c,y,I){let O=[],j=this.calculatePrecision(y);for(let H=0;H<I;H++){let K=Math.round((l+H*y)*j)/j,Z=Math.round((l+(H+1)*y)*j)/j;H===I-1&&(Z=Math.max(Z,c)),O[H]=[K,Z]}return O}calculatePrecision(l){let c=10;if(isFinite(l)&&l>0)for(;l<1;)c*=10,l*=10;return c}calculateNiceStart(l,c,y){let I=Math.abs(c-l)/y,O=Math.floor(Math.log10(I)),j=Math.pow(10,O);return{start:Math.floor(l/j)*j,binSize:I}}async processData(l){var ge,Se;this.visible||(this.processedData=void 0,this.animationState.transition("updateData"));let{xKey:c,yKey:y,areaPlot:I,aggregation:O}=this.properties,j=(ge=this.axes.x)==null?void 0:ge.scale,H=(Se=this.axes.y)==null?void 0:Se.scale,{xScaleType:K,yScaleType:Z}=this.getScaleInformation({yScale:H,xScale:j}),te=[kl(c,K),EM];if(y){let Ce=WD("groupAgg");O==="count"||(O==="sum"?Ce=HD("groupAgg"):O==="mean"&&(Ce=Gv("groupAgg"))),I&&(Ce=uS("groupAgg",Ce)),te.push(Jn(y,Z,{invalidValue:void 0}),Ce)}else{let Ce=WD("groupAgg");I&&(Ce=uS("groupAgg",Ce)),te.push(Ce)}let se=Ce=>{var He;let Pe=tc(Ce.domain.keys[0]);if(Pe.length===0)return Ce.domain.groups=[],()=>[];let Ge=Gt(this.properties.binCount)?this.calculateNiceBins(Pe,this.properties.binCount):(He=this.properties.bins)!=null?He:this.deriveBins(Pe),We=Ge.length;return this.calculatedBins=[...Ge],Ze=>{let it=Ze.keys[0];for(let qe=0;qe<We;qe++){let rt=Ge[qe];if(it>=rt[0]&&it<rt[1]||qe===We-1&&it<=rt[1])return rt}return[]}};!this.ctx.animationManager.isSkipped()&&this.processedData&&te.push(sf(this.id,this.processedData,!1)),await this.requestDataModel(l,this.data,{props:te,groupByFn:se}),this.animationState.transition("updateData")}getSeriesDomain(l){var H,K,Z,te;let{processedData:c,dataModel:y}=this;if(!c||!y||!this.calculatedBins.length)return[];let I=y.getDomain(this,"groupAgg","aggregate",c),O=(H=this.calculatedBins)==null?void 0:H[0][0],j=(te=this.calculatedBins)==null?void 0:te[((Z=(K=this.calculatedBins)==null?void 0:K.length)!=null?Z:0)-1][1];return tc(l==="x"?[O,j]:I)}getSeriesRange(l,c){return[NaN,NaN]}createNodeData(){var it,qe;let{id:l,axes:c,processedData:y}=this,I=c.x,O=c.y;if(!I||!O)return;let{scale:j}=I,{scale:H}=O,{xKey:K,yKey:Z,xName:te,yName:se,fill:ge,stroke:Se,strokeWidth:Ce,cornerRadius:Pe}=this.properties,Ge=(it=this.properties.label.formatter)!=null?it:rt=>String(rt.value),We=[],He={itemId:(qe=this.properties.yKey)!=null?qe:this.id,nodeData:We,labelData:We,scales:this.calculateScaling(),animationValid:!0,visible:this.visible};if(!this.visible||y==null||y.rawData.length===0||y.type!=="grouped")return He;let{rawData:Ze}=y;return y.groups.forEach(({keys:rt,datumIndices:dt,aggregation:mt},yt)=>{var ya;let[[Lt,Ht]=[0,0]]=mt,qt=dt.length,ri=rt,[Ei,Ni]=ri,Vi=dt.map(wn=>Ze[wn]),Si=j.convert(Ei),sn=j.convert(Ni),en=Lt+Ht,Nn=H.convert(0),dn=H.convert(en),ea=Math.abs(sn-Si),Sn=Math.abs(dn-Nn),pn=Math.min(Si,sn),ta=Math.min(Nn,dn),wo;en!==0&&(wo={x:pn+ea/2,y:ta+Sn/2,text:(ya=this.cachedDatumCallback(Js(yt,"label"),()=>Ge({value:en,datum:Vi,seriesId:l,xKey:K,yKey:Z,xName:te,yName:se})))!=null?ya:String(en)});let Ca={x:pn+ea/2,y:ta+Sn/2},Bn=O.isReversed();We.push({series:this,datumIndex:yt,datum:Vi,aggregatedValue:en,frequency:qt,domain:ri,yKey:Z,xKey:K,x:pn,y:ta,xValue:Si,yValue:dn,width:ea,height:Sn,midPoint:Ca,fill:ge,stroke:Se,cornerRadius:Pe,topLeftCornerRadius:!Bn,topRightCornerRadius:!Bn,bottomRightCornerRadius:Bn,bottomLeftCornerRadius:Bn,opacity:1,strokeWidth:Ce,label:wo})}),We.sort((rt,dt)=>rt.x-dt.x),He}nodeFactory(){return new oo}updateDatumSelection(l){let{nodeData:c,datumSelection:y}=l;return y.update(c,I=>{I.crisp=!0},I=>I.domain.join("_"))}getItemBaseStyle(l){var I,O,j,H,K;let{properties:c}=this,y=l?c.highlightStyle.item:void 0;return{fill:(I=y==null?void 0:y.fill)!=null?I:c.fill,fillOpacity:(O=y==null?void 0:y.fillOpacity)!=null?O:c.fillOpacity,stroke:(j=y==null?void 0:y.stroke)!=null?j:c.stroke,strokeWidth:(H=y==null?void 0:y.strokeWidth)!=null?H:c.strokeWidth,strokeOpacity:(K=y==null?void 0:y.strokeOpacity)!=null?K:c.strokeOpacity}}updateDatumNodes(l){let{isHighlight:c}=l,{fillOpacity:y,strokeOpacity:I,lineDash:O,lineDashOffset:j,shadow:H,highlightStyle:{item:{fill:K,fillOpacity:Z=y,stroke:te,strokeWidth:se}}}=this.properties;l.datumSelection.each((ge,Se,Ce)=>{var rt,dt;let{cornerRadius:Pe,topLeftCornerRadius:Ge,topRightCornerRadius:We,bottomRightCornerRadius:He,bottomLeftCornerRadius:Ze}=Se,it=c&&se!==void 0?se:Se.strokeWidth,qe=c?Z:y;ge.fill=(rt=c?K:void 0)!=null?rt:Se.fill,ge.stroke=(dt=c?te:void 0)!=null?dt:Se.stroke,ge.fillOpacity=qe,ge.strokeOpacity=I,ge.strokeWidth=it,ge.lineDash=O,ge.lineDashOffset=j,ge.topLeftCornerRadius=Ge?Pe:0,ge.topRightCornerRadius=We?Pe:0,ge.bottomRightCornerRadius=He?Pe:0,ge.bottomLeftCornerRadius=Ze?Pe:0,ge.fillShadow=H,ge.zIndex=c?Lv.highlightedZIndex:Ce,ge.visible=Se.height>0})}updateLabelSelection(l){let{labelData:c,labelSelection:y}=l;return y.update(c,I=>{I.pointerEvents=1,I.textAlign="center",I.textBaseline="middle"})}updateLabelNodes(l){let{fontStyle:c,fontWeight:y,fontFamily:I,fontSize:O,color:j}=this.properties.label,H=this.isLabelEnabled();l.labelSelection.each((K,Z)=>{H&&(Z!=null&&Z.label)?(K.text=Z.label.text,K.x=Z.label.x,K.y=Z.label.y,K.fontStyle=c,K.fontWeight=y,K.fontFamily=I,K.fontSize=O,K.fill=j,K.visible=!0):K.visible=!1})}initQuadTree(l){let{value:c}=this.contentGroup.children().next();c&&iC(l,c.children())}pickNodeClosestDatum(l){return xf(this,l)}getTooltipContent(l){let{id:c,dataModel:y,processedData:I,axes:O,properties:j,ctx:{localeManager:H}}=this,{xKey:K,xName:Z,yKey:te,yName:se,tooltip:ge}=j,Se=O.x,Ce=O.y;if(!y||(I==null?void 0:I.type)!=="grouped"||I.rawData.length===0||!Se||!Ce)return;let Pe=l.datumIndex,{aggregation:Ge,datumIndices:We,keys:He}=I.groups[Pe],[[Ze,it]=[0,0]]=Ge,qe=We.length,rt=He,[dt,mt]=rt,yt=Ze+it,Lt={data:We.map(qt=>I.rawData[qt]),aggregatedValue:yt,frequency:qe,domain:rt},Ht=[{label:Z,fallbackLabel:K,value:`${Se.formatDatum(dt)} - ${Se.formatDatum(mt)}`},{label:H.t("seriesHistogramTooltipFrequency"),value:Ce.formatDatum(qe)}];if(te!=null){let qt;switch(j.aggregation){case"sum":qt=H.t("seriesHistogramTooltipSum",{yName:se});break;case"mean":qt=H.t("seriesHistogramTooltipMean",{yName:se});break;case"count":qt=H.t("seriesHistogramTooltipCount",{yName:se});break}Ht.push({label:qt,value:Ce.formatDatum(yt)})}return ge.formatTooltip({symbol:this.legendItemSymbol(),data:Ht},pe({seriesId:c,datum:Lt,title:se,xKey:K,xName:Z,yKey:te,yName:se,xRange:[dt,mt],frequency:qe},this.getItemBaseStyle(!1)))}legendItemSymbol(){let{fill:l,fillOpacity:c,stroke:y,strokeWidth:I,strokeOpacity:O}=this.properties;return{marker:{fill:l!=null?l:"rgba(0, 0, 0, 0)",stroke:y!=null?y:"rgba(0, 0, 0, 0)",fillOpacity:c,strokeOpacity:O,strokeWidth:I}}}getLegendData(l){var K;if(l!=="category")return[];let{id:c,ctx:{legendManager:y},visible:I}=this,{xKey:O,yName:j,showInLegend:H}=this.properties;return[{legendType:"category",id:c,itemId:O,seriesId:c,enabled:I&&y.getItemEnabled({seriesId:c,itemId:O}),label:{text:(K=j!=null?j:O)!=null?K:"Frequency"},symbol:this.legendItemSymbol(),hideInLegend:!H}]}animateEmptyUpdateReady({datumSelection:l,labelSelection:c}){let y=Qv(Mf(!0,this.axes,"normal"));yi(this.id,"datums",this.ctx.animationManager,[l],y),Ma(this,"labels",this.ctx.animationManager,c)}animateWaitingUpdateReady(l){var I,O,j;let c=(j=(O=(I=this.processedData)==null?void 0:I.reduced)==null?void 0:O.diff)==null?void 0:j[this.id],y=Qv(Mf(!0,this.axes,"normal"));yi(this.id,"datums",this.ctx.animationManager,[l.datumSelection],y,(H,K)=>Js(K.domain),c),Ma(this,"labels",this.ctx.animationManager,l.labelSelection)}isLabelEnabled(){return this.properties.label.enabled}computeFocusBounds({datumIndex:l}){var c;return Ck((c=this.contextNodeData)==null?void 0:c.nodeData[l])}};E1.className="HistogramSeries",E1.type="histogram";var KT={type:"series",optionsKey:"series[]",packageType:"community",chartTypes:["cartesian"],identifier:"histogram",moduleFactory:l=>new E1(l),tooltipDefaults:{range:"exact"},defaultAxes:[{type:"number",position:"bottom"},{type:"number",position:"left"}],themeTemplate:{series:{strokeWidth:1,fillOpacity:1,strokeOpacity:1,lineDash:[0],lineDashOffset:0,label:{enabled:!1,fontSize:12,fontFamily:Jo,color:fd},shadow:{enabled:!1,color:Ig,xOffset:3,yOffset:3,blur:5}}},paletteFactory:({takeColors:l})=>{let{fills:[c],strokes:[y]}=l(1);return{fill:c,stroke:y}}},ls=class extends Lp{constructor(){super(...arguments),this.stroke="#874349",this.strokeWidth=2,this.strokeOpacity=1,this.lineDash=[0],this.lineDashOffset=0,this.interpolation=new _u,this.marker=new yd,this.label=new Xo,this.tooltip=new oc,this.connectMissingData=!1,this.sparklineMode=!1}};D([Je(ui)],ls.prototype,"xKey",2),D([Je(ui)],ls.prototype,"yKey",2),D([Je(ui,{optional:!0})],ls.prototype,"xName",2),D([Je(ui,{optional:!0})],ls.prototype,"yName",2),D([Je(ui,{optional:!0})],ls.prototype,"yFilterKey",2),D([Je(ui,{optional:!0})],ls.prototype,"stackGroup",2),D([Je(Fi,{optional:!0})],ls.prototype,"normalizedTo",2),D([Je(ui,{optional:!0})],ls.prototype,"title",2),D([Je(na)],ls.prototype,"stroke",2),D([Je(Fi)],ls.prototype,"strokeWidth",2),D([Je(Ia)],ls.prototype,"strokeOpacity",2),D([Je(qo)],ls.prototype,"lineDash",2),D([Je(Fi)],ls.prototype,"lineDashOffset",2),D([Je(Gi)],ls.prototype,"interpolation",2),D([Je(Gi)],ls.prototype,"marker",2),D([Je(Gi)],ls.prototype,"label",2),D([Je(Gi)],ls.prototype,"tooltip",2),D([Je(Zi)],ls.prototype,"connectMissingData",2),D([Je(Zi)],ls.prototype,"sparklineMode",2);var EL=.25,GS=class extends Jm{constructor(l){super({moduleCtx:l,directionKeys:xg,directionNames:Pp,hasMarkers:!0,pickModes:[2,1,0],markerSelectionGarbageCollection:!1,animationResetFns:{path:pk({getVisible:()=>this.visible,getOpacity:()=>this.getOpacity()}),label:Og,marker:(c,y)=>pe(pe({},eC(c)),tC(c,y))}}),this.clipFocusBox=!1,this.properties=new ls,this.dataAggregationFilters=void 0}get pickModeAxis(){return this.properties.sparklineMode?"main":"main-category"}async processData(l){var qe,rt;if(this.data==null||!this.properties.isValid())return;let{data:c,visible:y,seriesGrouping:{groupIndex:I=this.id,stackCount:O=1}={}}=this,{xKey:j,yKey:H,yFilterKey:K,connectMissingData:Z,normalizedTo:te}=this.properties,se=!this.ctx.animationManager.isSkipped(),ge=(qe=this.axes.x)==null?void 0:qe.scale,Se=(rt=this.axes.y)==null?void 0:rt.scale,{isContinuousX:Ce,xScaleType:Pe,yScaleType:Ge}=this.getScaleInformation({xScale:ge,yScale:Se}),We={invalidValue:null};Z&&O>1&&(We.invalidValue=0,y||(We.forceValue=0));let He=[];if(Ce||He.push(kl(j,Pe,{id:"xKey"})),He.push(Jn(j,Pe,{id:"xValue"}),Jn(H,Ge,et(pe({id:"yValueRaw"},We),{invalidValue:void 0}))),K!=null&&He.push(Jn(K,Ge,{id:"yFilterRaw"})),O>1){let dt=[`line-stack-${I}-yValues`,`line-stack-${I}-yValues-trailing`,`line-stack-${I}-yValues-marker`];He.push(..._p(H,"window","current",et(pe({id:"yValueEnd"},We),{groupId:dt[0]}),Ge),..._p(H,"window-trailing","current",et(pe({id:"yValueStart"},We),{groupId:dt[1]}),Ge),..._p(H,"normal","current",et(pe({id:"yValueCumulative"},We),{groupId:dt[2]}),Ge)),to(te)&&He.push(zb([dt[0],dt[1],dt[2]],te,"range"))}se&&(He.push(af(Ce?["xValue"]:void 0)),this.processedData&&He.push(sf(this.id,this.processedData)));let{dataModel:Ze,processedData:it}=await this.requestDataModel(l,c,{props:He});this.dataAggregationFilters=this.aggregateData(Ze,it),this.animationState.transition("updateData")}getSeriesDomain(l){var O,j;let{dataModel:c,processedData:y}=this;if(!c||!(y!=null&&y.rawData.length))return[];let I=c.resolveProcessedDataDefById(this,"xValue");if(l==="x"){let H=c.getDomain(this,"xValue","value",y);return(I==null?void 0:I.def.type)==="value"&&I.def.valueType==="category"?H:tc(lp(H))}else{let K=((j=(O=this.seriesGrouping)==null?void 0:O.stackCount)!=null?j:1)>1?c.getDomain(this,"yValueEnd","value",y):c.getDomain(this,"yValueRaw","value",y);return tc(K)}}visibleRangeIndices(l,c){var H;let{dataModel:y,processedData:I}=this;if(!y||!I)return[0,0];let O=this.axes.x.scale,j=y.resolveColumnById(this,"xValue",I);return aS((H=c==null?void 0:c.length)!=null?H:j.length,l,K=>{var te;let Z=O.convert(j[(te=c==null?void 0:c[K])!=null?te:K]);return[Z,Z]})}getSeriesRange(l,c){let{dataModel:y,processedData:I}=this;if(!y||!I)return[NaN,NaN];let[O,j]=this.visibleRangeIndices(c);return y.getDomainBetweenRange(this,["yValueRaw"],[O,j],I)}aggregateData(l,c){}createNodeData(){var ya,wn,$i,kn,Zn,Qi,vn;let{dataModel:l,processedData:c,axes:y,dataAggregationFilters:I}=this,O=y.x,j=y.y;if(!l||!c||c.rawData.length===0||!O||!j)return;let{xKey:H,yKey:K,yFilterKey:Z,xName:te,yName:se,marker:ge,label:Se,connectMissingData:Ce,interpolation:Pe,legendItemName:Ge}=this.properties,We=((wn=(ya=this.seriesGrouping)==null?void 0:ya.stackCount)!=null?wn:1)>1,He=O.scale,Ze=j.scale,it=(($i=He.bandwidth)!=null?$i:0)/2,qe=((kn=Ze.bandwidth)!=null?kn:0)/2,rt=ge.enabled?ge.size:0,{rawData:dt}=c,mt=l.resolveColumnById(this,"xValue",c),yt=l.resolveColumnById(this,"yValueRaw",c),Lt=We?l.resolveColumnById(this,"yValueEnd",c):void 0,Ht=We?l.resolveColumnById(this,"yValueCumulative",c):yt,qt=Z!=null?l.resolveColumnById(this,"yFilterRaw",c):void 0,ri=Xi=>He.convert(mt[Xi])+it,Ei=Xi=>Ze.convert(Ht[Xi])+qe,Ni={lengthRatioMultiplier:this.properties.marker.getDiameter(),lengthMax:1/0},Vi=[],Si,sn=Xi=>{let Kn=dt[Xi],cn=mt[Xi],xo=yt[Xi],Ro=Lt==null?void 0:Lt[Xi],ro=qt==null?void 0:qt[Xi],Ha=ri(Xi),Fr=Ei(Xi);if(!Number.isFinite(Ha))return;if(xo!=null){let ru=Se.enabled?this.getLabelText(Se,{value:xo,datum:Kn,xKey:H,yKey:K,xName:te,yName:se,legendItemName:Ge}):void 0;Vi.push({series:this,datum:Kn,datumIndex:Xi,yKey:K,xKey:H,point:{x:Ha,y:Fr,size:rt},midPoint:{x:Ha,y:Fr},cumulativeValue:Ro,yValue:xo,xValue:cn,capDefaults:Ni,labelText:ru,selected:ro})}if(Si==null)return;let Sr=Si[Si.length-1];if(xo!=null){let ru={point:{x:Ha,y:Fr},xDatum:cn,yDatum:xo};Array.isArray(Sr)?Sr.push(ru):Sr!=null?(Sr.skip+=1,Si.push([ru])):Si.push([ru])}else Ce||(Array.isArray(Sr)||Sr==null?Si.push({skip:0}):Sr.skip+=1)},[en,Nn]=He.range,dn=Nn-en,ea=I==null?void 0:I.find(Xi=>Xi.maxRange>dn),Sn=ea==null?void 0:ea.indices,[pn,ta]=this.visibleRangeIndices(O.range,Sn);pn=Math.max(pn-1,0),ta=Math.min(ta+1,(Zn=Sn==null?void 0:Sn.length)!=null?Zn:mt.length),c.rawData.length<1e3&&(pn=0,ta=c.rawData.length),Sn==null&&(Si=[]);for(let Xi=pn;Xi<ta;Xi+=1)sn((Qi=Sn==null?void 0:Sn[Xi])!=null?Qi:Xi);let wo=Si==null?void 0:Si.flatMap(Xi=>Array.isArray(Xi)?lc(Xi,Pe):[]),Ca=wo!=null?{itemId:K,spans:wo}:void 0,Bn=(vn=qt==null?void 0:qt.some((Xi,Kn)=>Xi===yt[Kn]))!=null?vn:!1;return{itemId:K,nodeData:Vi,labelData:Vi,strokeData:Ca,scales:this.calculateScaling(),visible:this.visible,crossFiltering:Bn}}isPathOrSelectionDirty(){return this.properties.marker.isDirty()}markerFactory(){let{shape:l}=this.properties.marker,c=Hd(l);return new c}updatePathNodes(l){var H;let{paths:[c],opacity:y,visible:I,animationEnabled:O}=l,j=((H=this.contextNodeData)==null?void 0:H.crossFiltering)===!0;c.setProperties({fill:void 0,lineJoin:"round",pointerEvents:1,opacity:y,stroke:this.properties.stroke,strokeWidth:this.getStrokeWidth(this.properties.strokeWidth),strokeOpacity:this.properties.strokeOpacity*(j?EL:1),lineDash:this.properties.lineDash,lineDashOffset:this.properties.lineDashOffset}),O||(c.visible=I),mk(this,c)}updateMarkerSelection(l){var O;let{nodeData:c}=l,{markerSelection:y}=l;return c=this.properties.marker.enabled||((O=this.contextNodeData)==null?void 0:O.crossFiltering)===!0?c:[],this.properties.marker.isDirty()&&(y.clear(),y.cleanup()),y.update(c,void 0,j=>Js(j.xValue))}updateMarkerNodes(l){let{markerSelection:c,isHighlight:y}=l,{xKey:I,yKey:O,stroke:j,strokeWidth:H,strokeOpacity:K,marker:Z,highlightStyle:te}=this.properties,se=this.getSeriesDomain("x"),ge=this.getSeriesDomain("y"),Se=Wi(y&&te.item,Z.getStyle(),{stroke:j,strokeWidth:H,strokeOpacity:K}),Ce=this.ctx.animationManager.isSkipped();c.each((Pe,Ge)=>{this.updateMarkerStyle(Pe,Z,et(pe({},Ip(Ge,I,O,se,ge)),{highlighted:y}),Se,{applyTranslation:Ce,selected:Ge.selected})}),y||Z.markClean()}updateLabelSelection(l){return l.labelSelection.update(this.isLabelEnabled()?l.labelData:[])}updateLabelNodes(l){let{enabled:c,fontStyle:y,fontWeight:I,fontSize:O,fontFamily:j,color:H}=this.properties.label;l.labelSelection.each((K,Z)=>{c&&(Z!=null&&Z.labelText)?(K.fontStyle=y,K.fontWeight=I,K.fontSize=O,K.fontFamily=j,K.textAlign="center",K.textBaseline="bottom",K.text=Z.labelText,K.x=Z.point.x,K.y=Z.point.y-10,K.fill=H,K.visible=!0):K.visible=!1})}getTooltipContent(l){let{id:c,dataModel:y,processedData:I,axes:O,properties:j}=this,{xKey:H,xName:K,yKey:Z,yName:te,tooltip:se}=j,ge=O.x,Se=O.y;if(!y||!I||I.rawData.length===0||!ge||!Se)return;let{datumIndex:Ce}=l,Pe=I.rawData[Ce],Ge=y.resolveColumnById(this,"xValue",I)[Ce],We=y.resolveColumnById(this,"yValueRaw",I)[Ce];if(Ge!=null)return se.formatTooltip({heading:ge.formatDatum(Ge),symbol:this.legendItemSymbol(),data:[{label:te,fallbackLabel:Z,value:Se.formatDatum(We)}]},pe({seriesId:c,datum:Pe,title:te,xKey:H,xName:K,yKey:Z,yName:te},this.getModuleTooltipParams()))}legendItemSymbol(){var H,K,Z,te,se,ge,Se;let l="rgba(0, 0, 0, 0)",{stroke:c,strokeOpacity:y,strokeWidth:I,lineDash:O,marker:j}=this.properties;return{marker:{shape:j.shape,fill:(H=j.fill)!=null?H:l,stroke:(Z=(K=j.stroke)!=null?K:c)!=null?Z:l,fillOpacity:(te=j.fillOpacity)!=null?te:1,strokeOpacity:(ge=(se=j.strokeOpacity)!=null?se:y)!=null?ge:1,strokeWidth:(Se=j.strokeWidth)!=null?Se:0,enabled:j.enabled},line:{stroke:c!=null?c:l,strokeOpacity:y,strokeWidth:I,lineDash:O}}}getLegendData(l){var te,se;if(!(this.properties.isValid()&&l==="category"))return[];let{id:c,ctx:{legendManager:y},visible:I}=this,{yKey:O,yName:j,title:H,legendItemName:K,showInLegend:Z}=this.properties;return[{legendType:"category",id:c,itemId:O,legendItemName:K,seriesId:c,enabled:I&&y.getItemEnabled({seriesId:c,itemId:O}),label:{text:(se=(te=K!=null?K:H)!=null?te:j)!=null?se:O},symbol:this.legendItemSymbol(),hideInLegend:!Z}]}updatePaths(l){this.updateLinePaths(l.paths,l.contextData)}plotNodeDataPoints(l,c){if(c.length===0)return;let y=c[0].point;l.moveTo(y.x,y.y);for(let I=1;I<c.length;I+=1){let{x:O,y:j}=c[I].point;l.lineTo(O,j)}}updateLinePaths(l,c){var O;let y=(O=c.strokeData)==null?void 0:O.spans,[I]=l;I.path.clear(),y!=null?ak(I,y):this.plotNodeDataPoints(I.path,c.nodeData),I.markDirty()}animateEmptyUpdateReady(l){let{markerSelection:c,labelSelection:y,annotationSelections:I,contextData:O,paths:j}=l,{animationManager:H}=this.ctx;this.updateLinePaths(j,O),$v(this,H,...j),Yo([c],tC),jp(this,H,c),Ma(this,"labels",H,y),Ma(this,"annotations",H,...I)}animateReadyResize(l){let{contextData:c,paths:y}=l;this.updateLinePaths(y,c),super.animateReadyResize(l)}animateWaitingUpdateReady(l){var Se,Ce,Pe;let{animationManager:c}=this.ctx,{markerSelection:y,labelSelection:I,annotationSelections:O,contextData:j,paths:H,previousContextData:K}=l,[Z]=H;this.resetMarkerAnimation(l),this.resetLabelAnimation(l);let te=()=>{this.resetPathAnimation(l),this.updateLinePaths(H,j)},se=()=>{c.skipCurrentBatch(),te()};if(j==null||K==null){te(),Jb(this,c,"added",y),hk(this,"path_properties",c,"add",Z),Ma(this,"labels",c,I),Ma(this,"annotations",c,...O);return}if(j.crossFiltering!==K.crossFiltering){se();return}let ge=GT(j,K,(Pe=(Ce=(Se=this.processedData)==null?void 0:Se.reduced)==null?void 0:Ce.diff)==null?void 0:Pe[this.id]);if(ge===void 0){se();return}else if(ge.status==="no-op")return;yi(this.id,"path_properties",c,[Z],ge.stroke.pathProperties),ge.status==="added"?this.updateLinePaths(H,j):ge.status==="removed"?this.updateLinePaths(H,K):AS(this.id,"path_update",c,[Z],ge.stroke.path),ge.hasMotion&&(Jb(this,c,void 0,y),Ma(this,"labels",c,I),Ma(this,"annotations",c,...O))}isLabelEnabled(){return this.properties.label.enabled}getBandScalePadding(){return{inner:1,outer:.1}}nodeFactory(){return new Mn}getFormattedMarkerStyle(l){let{xKey:c,yKey:y}=this.properties,I=this.getSeriesDomain("x"),O=this.getSeriesDomain("y");return this.getMarkerStyle(this.properties.marker,et(pe({},Ip(l,c,y,I,O)),{highlighted:!0}))}computeFocusBounds(l){return Fg(this,l)}};GS.className="LineSeries",GS.type="line";var Mk={type:"series",optionsKey:"series[]",packageType:"community",chartTypes:["cartesian"],identifier:"line",moduleFactory:l=>new GS(l),stackable:!0,tooltipDefaults:{range:"nearest"},defaultAxes:[{type:"number",position:"left"},{type:"category",position:"bottom"}],themeTemplate:{series:{tooltip:{position:{type:"node"}},strokeWidth:2,strokeOpacity:1,lineDash:[0],lineDashOffset:0,interpolation:{type:"linear",tension:1,position:"end"},marker:{shape:"circle",size:7,strokeWidth:0},label:{enabled:!1,fontSize:12,fontFamily:Jo,color:jo},errorBar:{cap:{lengthRatio:1}}}},paletteFactory:l=>{let{marker:c}=kS(l);return{stroke:c.fill,marker:c}}},I1=class extends Xo{constructor(){super(...arguments),this.placement="top"}};D([Je(ng)],I1.prototype,"placement",2);var sr=class extends Lp{constructor(){super(...arguments),this.colorRange=["#ffff00","#00ff00","#0000ff"],this.label=new I1,this.tooltip=new oc,this.marker=new yd}};D([Je(ui)],sr.prototype,"xKey",2),D([Je(ui)],sr.prototype,"yKey",2),D([Je(ui,{optional:!0})],sr.prototype,"labelKey",2),D([Je(ui,{optional:!0})],sr.prototype,"colorKey",2),D([Je(ui,{optional:!0})],sr.prototype,"xFilterKey",2),D([Je(ui,{optional:!0})],sr.prototype,"yFilterKey",2),D([Je(ui,{optional:!0})],sr.prototype,"xName",2),D([Je(ui,{optional:!0})],sr.prototype,"yName",2),D([Je(ui,{optional:!0})],sr.prototype,"labelName",2),D([Je(ui,{optional:!0})],sr.prototype,"colorName",2),D([Je(Ic,{optional:!0})],sr.prototype,"colorDomain",2),D([Je(gl)],sr.prototype,"colorRange",2),D([Je(ui,{optional:!0})],sr.prototype,"title",2),D([Ki("marker.shape")],sr.prototype,"shape",2),D([Ki("marker.size")],sr.prototype,"size",2),D([Ki("marker.fill")],sr.prototype,"fill",2),D([Ki("marker.fillOpacity")],sr.prototype,"fillOpacity",2),D([Ki("marker.stroke")],sr.prototype,"stroke",2),D([Ki("marker.strokeWidth")],sr.prototype,"strokeWidth",2),D([Ki("marker.strokeOpacity")],sr.prototype,"strokeOpacity",2),D([Ki("marker.itemStyler",{optional:!0})],sr.prototype,"itemStyler",2),D([Je(Gi)],sr.prototype,"label",2),D([Je(Gi)],sr.prototype,"tooltip",2);var kk=class extends Jm{constructor(l){super({moduleCtx:l,directionKeys:xg,directionNames:Pp,pickModes:[2,1,0],pathsPerSeries:[],hasMarkers:!0,markerSelectionGarbageCollection:!1,animationResetFns:{marker:eC,label:Og},usesPlacedLabels:!0}),this.clipFocusBox=!1,this.properties=new sr,this.colorScale=new hi}get pickModeAxis(){return"main-category"}async processData(l){var We,He,Ze;if(!this.properties.isValid()||this.data==null||!this.visible)return;let c=(We=this.axes.x)==null?void 0:We.scale,y=(He=this.axes.y)==null?void 0:He.scale,{xScaleType:I,yScaleType:O}=this.getScaleInformation({xScale:c,yScale:y}),j=this.colorScale.type,{xKey:H,yKey:K,xFilterKey:Z,yFilterKey:te,labelKey:se,colorKey:ge,colorDomain:Se,colorRange:Ce}=this.properties,{dataModel:Pe,processedData:Ge}=await this.requestDataModel(l,this.data,{props:[Jn(H,I,{id:"xValue"}),Jn(K,O,{id:"yValue"}),...Z!=null?[Jn(Z,I,{id:"xFilterValue"})]:[],...te!=null?[Jn(te,O,{id:"yFilterValue"})]:[],...ge?[Jn(ge,j,{id:"colorValue"})]:[],...se?[Jn(se,"band",{id:"labelValue"})]:[]]});if(ge){let it=Pe.resolveProcessedDataIndexById(this,"colorValue");this.colorScale.domain=(Ze=Se!=null?Se:Ge.domain.values[it])!=null?Ze:[],this.colorScale.range=Ce,this.colorScale.update()}this.animationState.transition("updateData")}getSeriesDomain(l){let{dataModel:c,processedData:y}=this;if(!y||!c)return[];let I=l==="x"?"xValue":"yValue",O=c.resolveProcessedDataDefById(this,I),j=c.getDomain(this,I,"value",y);return(O==null?void 0:O.def.type)==="value"&&(O==null?void 0:O.def.valueType)==="category"?j:tc(lp(j))}getSeriesRange(l,c){return[NaN,NaN]}createNodeData(){var sn,en;let{axes:l,dataModel:c,processedData:y,colorScale:I,visible:O}=this,{xKey:j,yKey:H,xFilterKey:K,yFilterKey:Z,labelKey:te,colorKey:se,xName:ge,yName:Se,labelName:Ce,marker:Pe,label:Ge}=this.properties,{placement:We}=Ge,He=Hd(Pe.shape),Ze=l.x,it=l.y;if(!(c&&(y!=null&&y.rawData.length)&&O&&Ze&&it))return;let qe=c.resolveColumnById(this,"xValue",y),rt=c.resolveColumnById(this,"yValue",y),dt=se!=null?c.resolveColumnById(this,"colorValue",y):void 0,mt=te!=null?c.resolveColumnById(this,"labelValue",y):void 0,yt=K!=null?c.resolveColumnById(this,"xFilterValue",y):void 0,Lt=Z!=null?c.resolveColumnById(this,"yFilterValue",y):void 0,Ht=Ze.scale,qt=it.scale,ri=((sn=Ht.bandwidth)!=null?sn:0)/2,Ei=((en=qt.bandwidth)!=null?en:0)/2,Ni=[],Vi=Ge.getFont(),Si=Cs.getMeasurer({font:Vi});return y.rawData.forEach((Nn,dn)=>{let ea=qe[dn],Sn=rt[dn],pn=Ht.convert(ea)+ri,ta=qt.convert(Sn)+Ei,wo=yt!=null&&Lt!=null?yt[dn]===ea&&Lt[dn]===Sn:void 0,Ca=this.getLabelText(Ge,{value:mt!=null?mt==null?void 0:mt[dn]:Sn,datum:Nn,xKey:j,yKey:H,labelKey:te,xName:ge,yName:Se,labelName:Ce}),Bn=Si.measureText(Ca),ya=dt!=null?I.convert(dt[dn]):void 0;Ni.push({series:this,itemId:H,yKey:H,xKey:j,datum:Nn,datumIndex:dn,xValue:ea,yValue:Sn,capDefaults:{lengthRatioMultiplier:Pe.getDiameter(),lengthMax:1/0},point:{x:pn,y:ta,size:Pe.size},midPoint:{x:pn,y:ta},fill:ya,label:pe({text:Ca},Bn),marker:He,placement:We,selected:wo})}),{itemId:H,nodeData:Ni,labelData:Ni,scales:this.calculateScaling(),visible:this.visible}}isPathOrSelectionDirty(){return this.properties.marker.isDirty()}getLabelData(){var l,c;return this.isLabelEnabled()?(c=(l=this.contextNodeData)==null?void 0:l.labelData)!=null?c:[]:[]}markerFactory(){let{shape:l}=this.properties.marker,c=Hd(l);return new c}updateMarkerSelection(l){let{nodeData:c,markerSelection:y}=l;return this.properties.marker.isDirty()&&(y.clear(),y.cleanup()),y.update(this.properties.marker.enabled?c:[])}getMarkerItemBaseStyle(l){var O,j,H,K,Z;let{properties:c}=this,{marker:y}=c,I=l?c.highlightStyle.item:void 0;return{fill:(O=I==null?void 0:I.fill)!=null?O:y.fill,fillOpacity:(j=I==null?void 0:I.fillOpacity)!=null?j:y.fillOpacity,stroke:(H=I==null?void 0:I.stroke)!=null?H:y.stroke,strokeWidth:(K=I==null?void 0:I.strokeWidth)!=null?K:y.strokeWidth,strokeOpacity:(Z=I==null?void 0:I.strokeOpacity)!=null?Z:y.strokeOpacity}}getMarkerItemStyleOverrides(l,c,y,I){let{id:O,properties:j}=this,{xKey:H,yKey:K,labelKey:Z,marker:te}=j,{itemStyler:se}=te;if(se!=null)return this.cachedDatumCallback(Js(l,I?"highlight":"node"),()=>se(pe({seriesId:O,datum:c,xKey:H,yKey:K,labelKey:Z,highlighted:I},y)))}updateMarkerNodes(l){let{markerSelection:c,isHighlight:y}=l,{xKey:I,yKey:O,labelKey:j,marker:H,highlightStyle:K}=this.properties,Z=Wi(y&&K.item,H.getStyle());c.each((te,se)=>{this.updateMarkerStyle(te,H,{datum:se,highlighted:y,xKey:I,yKey:O,labelKey:j},Z,{selected:se.selected})}),y||H.markClean()}updatePlacedLabelData(l){this.labelSelection.update(l.map(c=>et(pe({},c.datum),{point:{x:c.x,y:c.y,size:c.datum.point.size}})),c=>{c.pointerEvents=1}),this.updateLabelNodes({labelSelection:this.labelSelection})}updateLabelNodes(l){let{label:c}=this.properties;l.labelSelection.each((y,I)=>{var O,j,H,K;y.text=I.label.text,y.fill=c.color,y.x=(j=(O=I.point)==null?void 0:O.x)!=null?j:0,y.y=(K=(H=I.point)==null?void 0:H.y)!=null?K:0,y.fontStyle=c.fontStyle,y.fontWeight=c.fontWeight,y.fontSize=c.fontSize,y.fontFamily=c.fontFamily,y.textAlign="left",y.textBaseline="top"})}getTooltipContent(l){let{id:c,dataModel:y,processedData:I,axes:O,properties:j}=this,{xKey:H,xName:K,yKey:Z,yName:te,labelKey:se,labelName:ge,title:Se,tooltip:Ce}=j,Pe=O.x,Ge=O.y;if(!y||!I||I.rawData.length===0||!Pe||!Ge)return;let{datumIndex:We}=l,He=I.rawData[We],Ze=y.resolveColumnById(this,"xValue",I)[We],it=y.resolveColumnById(this,"yValue",I)[We];if(Ze==null)return;let qe=this.getMarkerItemBaseStyle(!1);return Object.assign(qe,this.getMarkerItemStyleOverrides(String(We),He,qe,!1)),Ce.formatTooltip({symbol:this.legendItemSymbol(),title:Se,data:[{label:K,fallbackLabel:H,value:Pe.formatDatum(Ze)},{label:te,fallbackLabel:Z,value:Ge.formatDatum(it)}]},pe(pe({seriesId:c,datum:He,title:te,xKey:H,xName:K,yKey:Z,yName:te,labelKey:se,labelName:ge},qe),this.getModuleTooltipParams()))}legendItemSymbol(){let{shape:l,fill:c,stroke:y,fillOpacity:I,strokeOpacity:O,strokeWidth:j}=this.properties.marker;return{marker:{shape:l,fill:c!=null?c:"rgba(0, 0, 0, 0)",stroke:y!=null?y:"rgba(0, 0, 0, 0)",fillOpacity:I!=null?I:1,strokeOpacity:O!=null?O:1,strokeWidth:j!=null?j:0}}}getLegendData(l){var Z;if(!this.properties.isValid()||l!=="category")return[];let{yKey:c,yName:y,title:I,showInLegend:O}=this.properties,{id:j,ctx:{legendManager:H},visible:K}=this;return[{legendType:"category",id:j,itemId:c,seriesId:j,enabled:K&&H.getItemEnabled({seriesId:j,itemId:c}),label:{text:(Z=I!=null?I:y)!=null?Z:c},symbol:this.legendItemSymbol(),hideInLegend:!O}]}animateEmptyUpdateReady(l){let{markerSelection:c,labelSelection:y,annotationSelections:I}=l;wf(this,this.ctx.animationManager,c),Ma(this,"labels",this.ctx.animationManager,y),Ma(this,"annotations",this.ctx.animationManager,...I)}isLabelEnabled(){return this.properties.label.enabled}nodeFactory(){return new Mn}getFormattedMarkerStyle(l){let{xKey:c,yKey:y,labelKey:I}=this.properties;return this.getMarkerStyle(this.properties.marker,{datum:l,xKey:c,yKey:y,labelKey:I,highlighted:!0})}computeFocusBounds(l){return Fg(this,l)}};kk.className="ScatterSeries",kk.type="scatter";var qT={type:"series",optionsKey:"series[]",packageType:"community",chartTypes:["cartesian"],identifier:"scatter",moduleFactory:l=>new kk(l),tooltipDefaults:{range:"nearest"},defaultAxes:[{type:"number",position:"bottom"},{type:"number",position:"left"}],themeTemplate:{series:{shape:"circle",size:7,fillOpacity:.8,tooltip:{position:{type:"node"}},label:{enabled:!1,fontSize:12,fontFamily:Jo,color:jo},errorBar:{cap:{lengthRatio:1}}}},paletteFactory:Bp},YT=class tV{constructor(c,y,I,O){this.startAngle=c,this.endAngle=y,this.innerRadius=I,this.outerRadius=O}clone(){let{startAngle:c,endAngle:y,innerRadius:I,outerRadius:O}=this;return new tV(c,y,I,O)}equals(c){return this.startAngle===c.startAngle&&this.endAngle===c.endAngle&&this.innerRadius===c.innerRadius&&this.outerRadius===c.outerRadius}[ze](c,y){return new tV(this.startAngle*(1-y)+c.startAngle*y,this.endAngle*(1-y)+c.endAngle*y,this.innerRadius*(1-y)+c.innerRadius*y,this.outerRadius*(1-y)+c.outerRadius*y)}};function Ak({startAngle:l,endAngle:c,innerRadius:y,outerRadius:I}){let O=1/0,j=1/0,H=-1/0,K=-1/0,Z=(te,se)=>{O=Math.min(te,O),j=Math.min(se,j),H=Math.max(te,H),K=Math.max(se,K)};return Z(y*Math.cos(l),y*Math.sin(l)),Z(y*Math.cos(c),y*Math.sin(c)),Z(I*Math.cos(l),I*Math.sin(l)),Z(I*Math.cos(c),I*Math.sin(c)),ga(0,l,c)&&Z(I,0),ga(Math.PI*.5,l,c)&&Z(0,I),ga(Math.PI,l,c)&&Z(-I,0),ga(Math.PI*1.5,l,c)&&Z(0,-I),new ft(O,j,H-O,K-j)}function Dk(l,c,y){let I=Math.sqrt(Math.pow(l,2)+Math.pow(c,2)),{innerRadius:O,outerRadius:j}=y;if(y.startAngle===y.endAngle||I<Math.min(O,j)||I>Math.max(O,j))return!1;let H=rg(y.startAngle),K=rg(y.endAngle),Z=Math.atan2(c,l);return H<K?Z<=K&&Z>=H:Z<=K&&Z>=-Math.PI||Z>=H&&Z<=Math.PI}function $d(l,c){let{startAngle:y,endAngle:I,innerRadius:O,outerRadius:j}=c,H={x:j*Math.cos(y),y:j*Math.sin(y)},K={x:j*Math.cos(I),y:j*Math.sin(I)},Z=O===0?{x:0,y:0}:{x:O*Math.cos(y),y:O*Math.sin(y)},te=O===0?{x:0,y:0}:{x:O*Math.cos(I),y:O*Math.sin(I)};return Vd(l.start.x,l.start.y,l.end.x,l.end.y,H.x,H.y,Z.x,Z.y)||Vd(l.start.x,l.start.y,l.end.x,l.end.y,K.x,K.y,te.x,te.y)||yo(0,0,j,y,I,!0,l.start.x,l.start.y,l.end.x,l.end.y)}function jS(l,c){let y={x:l.x,y:l.y},I={x:l.x+l.width,y:l.y},O={x:l.x,y:l.y+l.height},j={x:l.x+l.width,y:l.y+l.height};return $d({start:y,end:I},c)||$d({start:O,end:j},c)}function Yr(l,c,y,I){if(y===0&&I===0)return 0;if(Math.asin(Math.abs(1*y)/(l+1*y))+Math.asin(Math.abs(1*I)/(l+1*I))-c<0)return 1;let j=0,H=1;for(let K=0;K<8;K+=1){let Z=(j+H)/2;Math.asin(Math.abs(Z*y)/(l+Z*y))+Math.asin(Math.abs(Z*I)/(l+Z*I))-c<0?j=Z:H=Z}return j}var Wp=1e-6;function ks(l,c){return d0(l,c)<Wp?c:ha(l-c)+c}function VS(l,c,y=0){let O=Math.abs(c-l)>=2*Math.PI?2*Math.PI:ha(c-l);return l=ks(l,y),c=l+O,{startAngle:l,endAngle:c}}function HS(l,c,y,I,O,j){let H=Math.sin(j),K=Math.cos(j),Z=l**2+c**2-y**2,te,se,ge,Se;if(K>.5){let it=H/K,qe=1+it**2,rt=-2*(l+c*it),dt=rt**2-4*qe*Z;if(dt<0)return;let mt=(-rt+Math.sqrt(dt))/(2*qe),yt=(-rt-Math.sqrt(dt))/(2*qe);te=mt,se=mt*it,ge=yt,Se=yt*it}else{let it=K/H,qe=1+it**2,rt=-2*(c+l*it),dt=rt**2-4*qe*Z;if(dt<0)return;let mt=(-rt+Math.sqrt(dt))/(2*qe),yt=(-rt-Math.sqrt(dt))/(2*qe);te=mt*it,se=mt,ge=yt*it,Se=yt}let Ce=K,Pe=H,Ge=te*Ce+se*Pe,We=ge*Ce+Se*Pe,He=Ge>0?ks(Math.atan2(se-c,te-l),I):NaN,Ze=We>0?ks(Math.atan2(Se-c,ge-l),I):NaN;if(He>=I&&He<=O)return He;if(Ze>=I&&Ze<=O)return Ze}function WS(l,c,y,I,O,j){let H=Math.hypot(l,c),K=(H**2-y**2+j**2)/(2*H),Z=H-K,te=Math.atan2(c,l),se=Math.acos(-Z/y),ge=ks(te+se,I),Se=ks(te-se,I);if(ge>=I&&ge<=O)return ge;if(Se>=I&&Se<=O)return Se}var Ek=class{constructor(l,c,y,I,O){this.cx=l,this.cy=c,this.r=y,this.a0=I,this.a1=O,this.a0>=this.a1&&(this.a0=NaN,this.a1=NaN)}isValid(){return Number.isFinite(this.a0)&&Number.isFinite(this.a1)}pointAt(l){return{x:this.cx+this.r*Math.cos(l),y:this.cy+this.r*Math.sin(l)}}clipStart(l){l==null||!this.isValid()||l<this.a0||(this.a0=l,(Number.isNaN(l)||this.a0>=this.a1)&&(this.a0=NaN,this.a1=NaN))}clipEnd(l){l==null||!this.isValid()||l>this.a1||(this.a1=l,(Number.isNaN(l)||this.a0>=this.a1)&&(this.a0=NaN,this.a1=NaN))}},tl=class extends ic{constructor(){super(...arguments),this.centerX=0,this.centerY=0,this.innerRadius=10,this.outerRadius=20,this.startAngle=0,this.endAngle=Math.PI*2,this.clipSector=void 0,this.concentricEdgeInset=0,this.radialEdgeInset=0,this.startOuterCornerRadius=0,this.endOuterCornerRadius=0,this.startInnerCornerRadius=0,this.endInnerCornerRadius=0}set inset(l){this.concentricEdgeInset=l,this.radialEdgeInset=l}set cornerRadius(l){this.startOuterCornerRadius=l,this.endOuterCornerRadius=l,this.startInnerCornerRadius=l,this.endInnerCornerRadius=l}computeBBox(){return Ak(this).translate(this.centerX,this.centerY)}normalizedRadii(){let{concentricEdgeInset:l}=this,{innerRadius:c,outerRadius:y}=this;return c=c>0?c+l:0,y=Math.max(y-l,0),{innerRadius:c,outerRadius:y}}normalizedClipSector(){let{clipSector:l}=this;if(l==null)return;let{startAngle:c,endAngle:y}=VS(this.startAngle,this.endAngle),{innerRadius:I,outerRadius:O}=this.normalizedRadii(),j=VS(l.startAngle,l.endAngle,c);return new YT(Math.max(c,j.startAngle),Math.min(y,j.endAngle),Math.max(I,l.innerRadius),Math.min(O,l.outerRadius))}getAngleOffset(l){return l>0?this.radialEdgeInset/l:0}arc(l,c,y,I,O,j,H,K){if(l<=0)return;let{startAngle:Z,endAngle:te}=VS(this.startAngle,this.endAngle),{innerRadius:se,outerRadius:ge}=this.normalizedRadii(),Se=this.normalizedClipSector();if(K&&se<=0)return;let Ce=K?this.getAngleOffset(se+l):this.getAngleOffset(ge-l),Pe=H?Z+Ce+c:te-Ce-c,Ge=K?se+l:ge-l,We=Ge*Math.cos(Pe),He=Ge*Math.sin(Pe);if(Se!=null&&(!H&&!(Pe>=Z-1e-6&&Pe<=Se.endAngle-1e-6)||H&&!(Pe>=Se.startAngle+1e-6&&Pe<=te-1e-6)||K&&Ge<Se.innerRadius-1e-6||!K&&Ge>Se.outerRadius+1e-6))return;let Ze=new Ek(We,He,l,y,I);if(Se!=null){K?(Ze.clipStart(HS(We,He,l,y,I,Se.endAngle)),Ze.clipEnd(HS(We,He,l,y,I,Se.startAngle))):(Ze.clipStart(HS(We,He,l,y,I,Se.startAngle)),Ze.clipEnd(HS(We,He,l,y,I,Se.endAngle)));let mt,yt;if(H?(mt=WS(We,He,l,y,I,Se.innerRadius),yt=WS(We,He,l,y,I,Se.outerRadius)):(mt=WS(We,He,l,y,I,Se.outerRadius),yt=WS(We,He,l,y,I,Se.innerRadius)),Ze.clipStart(mt),Ze.clipEnd(yt),mt!=null){let{x:Lt,y:Ht}=Ze.pointAt(mt),qt=ks(Math.atan2(Ht,Lt),Z);H?j==null||j.clipStart(qt):O.clipEnd(qt)}if(yt!=null){let{x:Lt,y:Ht}=Ze.pointAt(yt),qt=ks(Math.atan2(Ht,Lt),Z);H?O.clipStart(qt):j==null||j.clipEnd(qt)}}if(Se!=null){let{x:mt,y:yt}=Ze.pointAt((Ze.a0+Ze.a1)/2);if(!Dk(mt,yt,Se))return}let{x:it,y:qe}=Ze.pointAt(H===K?Ze.a0:Ze.a1),rt=ks(Math.atan2(qe,it),Z),dt=K?j:O;return H?dt==null||dt.clipStart(rt):dt==null||dt.clipEnd(rt),Ze}updatePath(){var ya,wn,$i,kn,Zn;let{path:c,centerX:y,centerY:I,concentricEdgeInset:O,radialEdgeInset:j}=this,{startOuterCornerRadius:H,endOuterCornerRadius:K,startInnerCornerRadius:Z,endInnerCornerRadius:te}=this,{startAngle:se,endAngle:ge}=VS(this.startAngle,this.endAngle),{innerRadius:Se,outerRadius:Ce}=this.normalizedRadii(),Pe=this.normalizedClipSector(),Ge=ge-se,We=Ge>=2*Math.PI-1e-6;if(c.clear(),Se===0&&Ce===0||Se>Ce)return;if(((ya=Pe==null?void 0:Pe.startAngle)!=null?ya:se)===((wn=Pe==null?void 0:Pe.endAngle)!=null?wn:ge))return;if(We&&this.clipSector==null&&H===0&&K===0&&Z===0&&te===0){c.moveTo(y+Ce*Math.cos(se),I+Ce*Math.sin(se)),c.arc(y,I,Ce,se,ge),Se>O&&(c.moveTo(y+Se*Math.cos(ge),I+Se*Math.sin(ge)),c.arc(y,I,Se,ge,se,!0)),c.closePath();return}else if(this.clipSector==null&&Math.abs(Se-Ce)<1e-6){c.arc(y,I,Ce,se,ge,!1),c.arc(y,I,Ce,ge,se,!0),c.closePath();return}let He=this.getAngleOffset(Se),Ze=this.getAngleOffset(Ce);if(Ge<2*Ze)return;let qe=(($i=Pe==null?void 0:Pe.innerRadius)!=null?$i:Se)>O,rt=Se<O||Ge<2*He,dt=Ce-Se,mt=Math.max(H,Z,K,te),yt=mt>0?Math.min(dt/mt,1):1;H*=yt,K*=yt,Z*=yt,te*=yt;let Lt=Yr(Ce,Ge-2*Ze,-H,-K);if(H*=Lt,K*=Lt,!rt&&qe){let Qi=Yr(Se,Ge-2*He,Z,te);Z*=Qi,te*=Qi}else Z=0,te=0;let Ht=Math.max(H+Z,K+te),qt=Ht>0?Math.min(dt/Ht,1):1;H*=qt,K*=qt,Z*=qt,te*=qt;let ri=0,Ei=0,Ni=H/(Ce-H),Vi=K/(Ce-K);if(Ni>=0&&Ni<1-1e-6)ri=Math.asin(Ni);else{ri=Ge/2;let Qi=Ce/(1/Math.sin(ri)+1);H=Math.min(Qi,H)}if(Vi>=0&&Vi<1-1e-6)Ei=Math.asin(Vi);else{Ei=Ge/2;let Qi=Ce/(1/Math.sin(Ei)+1);K=Math.min(Qi,K)}let Si=Math.asin(Z/(Se+Z)),sn=Math.asin(te/(Se+te)),en=(kn=Pe==null?void 0:Pe.outerRadius)!=null?kn:Ce,Nn=this.getAngleOffset(en),dn=new Ek(0,0,en,se+Nn,ge-Nn),ea=(Zn=Pe==null?void 0:Pe.innerRadius)!=null?Zn:Se,Sn=this.getAngleOffset(ea),pn=qe?new Ek(0,0,ea,se+Sn,ge-Sn):void 0;Pe!=null&&(dn.clipStart(Pe.startAngle),dn.clipEnd(Pe.endAngle),pn==null||pn.clipStart(Pe.startAngle),pn==null||pn.clipEnd(Pe.endAngle));let ta=this.arc(H,ri,se-Math.PI*.5,se+ri,dn,pn,!0,!1),wo=this.arc(K,Ei,ge-Ei,ge+Math.PI*.5,dn,pn,!1,!1),Ca=this.arc(te,sn,ge+Math.PI*.5,ge+Math.PI-sn,dn,pn,!1,!0),Bn=this.arc(Z,Si,se+Math.PI+Si,se+Math.PI*1.5,dn,pn,!0,!0);if(rt){let Qi=Ge<Math.PI*.5?j*(1+Math.cos(Ge))/Math.sin(Ge):NaN,vn;Qi>0&&Qi<Ce?vn=Math.max(Math.hypot(j,Qi),Se):vn=j,vn=Math.max(vn,Se);let Xi=se+Ge*.5;c.moveTo(y+vn*Math.cos(Xi),I+vn*Math.sin(Xi))}else if(!((Bn==null?void 0:Bn.isValid())===!0||(pn==null?void 0:pn.isValid())===!0)){let Qi=se+Ge/2,vn=Se*Math.cos(Qi),Xi=Se*Math.sin(Qi);c.moveTo(y+vn,I+Xi)}if((ta==null?void 0:ta.isValid())===!0){let{cx:Qi,cy:vn,r:Xi,a0:Kn,a1:cn}=ta;c.arc(y+Qi,I+vn,Xi,Kn,cn)}if(dn.isValid()){let{r:Qi,a0:vn,a1:Xi}=dn;c.arc(y,I,Qi,vn,Xi)}if((wo==null?void 0:wo.isValid())===!0){let{cx:Qi,cy:vn,r:Xi,a0:Kn,a1:cn}=wo;c.arc(y+Qi,I+vn,Xi,Kn,cn)}if(!rt){if((Ca==null?void 0:Ca.isValid())===!0){let{cx:Qi,cy:vn,r:Xi,a0:Kn,a1:cn}=Ca;c.arc(y+Qi,I+vn,Xi,Kn,cn)}if((pn==null?void 0:pn.isValid())===!0){let{r:Qi,a0:vn,a1:Xi}=pn;c.arc(y,I,Qi,Xi,vn,!0)}if((Bn==null?void 0:Bn.isValid())===!0){let{cx:Qi,cy:vn,r:Xi,a0:Kn,a1:cn}=Bn;c.arc(y+Qi,I+vn,Xi,Kn,cn)}}c.closePath()}isPointInPath(l,c){var H;let{startAngle:y,endAngle:I,innerRadius:O,outerRadius:j}=(H=this.clipSector)!=null?H:this;return Dk(l-this.centerX,c-this.centerY,{startAngle:y,endAngle:I,innerRadius:Math.min(O,j),outerRadius:Math.max(O,j)})}};tl.className="Sector",D([Pn()],tl.prototype,"centerX",2),D([Pn()],tl.prototype,"centerY",2),D([Pn()],tl.prototype,"innerRadius",2),D([Pn()],tl.prototype,"outerRadius",2),D([Pn()],tl.prototype,"startAngle",2),D([Pn()],tl.prototype,"endAngle",2),D([Pn()],tl.prototype,"clipSector",2),D([Pn()],tl.prototype,"concentricEdgeInset",2),D([Pn()],tl.prototype,"radialEdgeInset",2),D([Pn()],tl.prototype,"startOuterCornerRadius",2),D([Pn()],tl.prototype,"endOuterCornerRadius",2),D([Pn()],tl.prototype,"startInnerCornerRadius",2),D([Pn()],tl.prototype,"endInnerCornerRadius",2);var Pr={BLUE:"#5090dc",ORANGE:"#ffa03a",GREEN:"#459d55",CYAN:"#34bfe1",YELLOW:"#e1cc00",VIOLET:"#9669cb",GRAY:"#b5b5b5",MAGENTA:"#bd5aa7",BROWN:"#8a6224",RED:"#ef5452"},Qd={BLUE:"#2b5c95",ORANGE:"#cc6f10",GREEN:"#1e652e",CYAN:"#18859e",YELLOW:"#a69400",VIOLET:"#603c88",GRAY:"#575757",MAGENTA:"#7d2f6d",BROWN:"#4f3508",RED:"#a82529"},jh=class extends mo{constructor(){super(...arguments),this.showInLegend=!1}};D([Je(Zi)],jh.prototype,"showInLegend",2);var Af=class extends Xo{constructor(){super(...arguments),this.spacing=2}set(l,c){return super.set(l)}};D([Je(ui)],Af.prototype,"text",2),D([Je(Vn)],Af.prototype,"spacing",2);var US=class extends un{constructor(){super(...arguments),this.fill="transparent",this.fillOpacity=1}};D([Je(na)],US.prototype,"fill",2),D([Je(Ia)],US.prototype,"fillOpacity",2);var Up=class extends Xo{constructor(){super(...arguments),this.offset=3,this.minAngle=0,this.minSpacing=4,this.maxCollisionOffset=50,this.avoidCollisions=!0}};D([Je(Fi)],Up.prototype,"offset",2),D([Je(Vn.restrict({min:0,max:360}))],Up.prototype,"minAngle",2),D([Je(Fi)],Up.prototype,"minSpacing",2),D([Je(Fi)],Up.prototype,"maxCollisionOffset",2),D([Je(Zi)],Up.prototype,"avoidCollisions",2);var Df=class extends Xo{constructor(){super(...arguments),this.positionOffset=0,this.positionRatio=.5}};D([Je(Vn)],Df.prototype,"positionOffset",2),D([Je(Ia)],Df.prototype,"positionRatio",2);var Tl=class extends un{constructor(){super(...arguments),this.length=10,this.strokeWidth=1}};D([Je(gl,{optional:!0})],Tl.prototype,"colors",2),D([Je(Fi)],Tl.prototype,"length",2),D([Je(Fi)],Tl.prototype,"strokeWidth",2);var ua=class extends gd{constructor(){super(...arguments),this.fills=Object.values(Pr),this.strokes=Object.values(Qd),this.fillOpacity=1,this.strokeOpacity=1,this.lineDash=[0],this.lineDashOffset=0,this.cornerRadius=0,this.rotation=0,this.outerRadiusOffset=0,this.outerRadiusRatio=1,this.strokeWidth=1,this.sectorSpacing=0,this.hideZeroValueSectorsInLegend=!1,this.innerLabels=new ho(Af),this.title=new jh,this.innerCircle=new US,this.shadow=new Zd,this.calloutLabel=new Up,this.sectorLabel=new Df,this.calloutLine=new Tl,this.tooltip=new oc}isValid(){let l=super.isValid();return this.innerRadiusRatio==null&&this.innerRadiusOffset==null?(Pi.warnOnce("Either an [innerRadiusRatio] or an [innerRadiusOffset] must be set to render a donut series."),!1):l}};D([Je(ui)],ua.prototype,"angleKey",2),D([Je(ui,{optional:!0})],ua.prototype,"angleName",2),D([Je(ui,{optional:!0})],ua.prototype,"angleFilterKey",2),D([Je(ui,{optional:!0})],ua.prototype,"radiusKey",2),D([Je(ui,{optional:!0})],ua.prototype,"radiusName",2),D([Je(Fi,{optional:!0})],ua.prototype,"radiusMin",2),D([Je(Fi,{optional:!0})],ua.prototype,"radiusMax",2),D([Je(ui,{optional:!0})],ua.prototype,"calloutLabelKey",2),D([Je(ui,{optional:!0})],ua.prototype,"calloutLabelName",2),D([Je(ui,{optional:!0})],ua.prototype,"sectorLabelKey",2),D([Je(ui,{optional:!0})],ua.prototype,"sectorLabelName",2),D([Je(ui,{optional:!0})],ua.prototype,"legendItemKey",2),D([Je(gl)],ua.prototype,"fills",2),D([Je(gl)],ua.prototype,"strokes",2),D([Je(Ia)],ua.prototype,"fillOpacity",2),D([Je(Ia)],ua.prototype,"strokeOpacity",2),D([Je(qo)],ua.prototype,"lineDash",2),D([Je(Fi)],ua.prototype,"lineDashOffset",2),D([Je(Fi)],ua.prototype,"cornerRadius",2),D([Je(no,{optional:!0})],ua.prototype,"itemStyler",2),D([Je(Vn)],ua.prototype,"rotation",2),D([Je(Vn)],ua.prototype,"outerRadiusOffset",2),D([Je(Ia)],ua.prototype,"outerRadiusRatio",2),D([Je(Vn,{optional:!0})],ua.prototype,"innerRadiusOffset",2),D([Je(Ia,{optional:!0})],ua.prototype,"innerRadiusRatio",2),D([Je(Fi)],ua.prototype,"strokeWidth",2),D([Je(Vn)],ua.prototype,"sectorSpacing",2),D([Je(Zi)],ua.prototype,"hideZeroValueSectorsInLegend",2),D([Je(Ta)],ua.prototype,"innerLabels",2),D([Je(Gi)],ua.prototype,"title",2),D([Je(Gi)],ua.prototype,"innerCircle",2),D([Je(Gi)],ua.prototype,"shadow",2),D([Je(Gi)],ua.prototype,"calloutLabel",2),D([Je(Gi)],ua.prototype,"sectorLabel",2),D([Je(Gi)],ua.prototype,"calloutLine",2),D([Je(Gi)],ua.prototype,"tooltip",2);function bd(l,c,y,I){let O=[y.convert(0),y.convert(1)],j=[I.convert(0),I.convert(1)],H=Math.PI/-2+$e(c),K=l?"initial":"update",Z=({radius:Pe})=>({innerRadius:O[0],outerRadius:O[0]+(O[1]-O[0])*Pe}),te=({radius:Pe})=>({innerRadius:j[0],outerRadius:j[0]+(j[1]-j[0])*Pe});return{nodes:{toFn:(Pe,Ge,We,{prevLive:He})=>{var yt,Lt;let{startAngle:Ze,endAngle:it,innerRadius:qe,outerRadius:rt}=Ge,{stroke:dt,fill:mt}=Ge.sectorFormat;if(We==="removed"&&He?(Ze=(yt=He.datum)==null?void 0:yt.endAngle,it=(Lt=He.datum)==null?void 0:Lt.endAngle):We==="removed"&&!He&&(Ze=H,it=H),We==="removed"){let Ht=Z(Ge);qe=Ht.innerRadius,rt=Ht.outerRadius}return{startAngle:Ze,endAngle:it,outerRadius:rt,innerRadius:qe,stroke:dt,fill:mt}},fromFn:(Pe,Ge,We,{prevFromProps:He})=>{var yt,Lt,Ht,qt,ri,Ei;let{startAngle:Ze,endAngle:it,innerRadius:qe,outerRadius:rt}=Pe,{fill:dt,stroke:mt}=Ge.sectorFormat;if(We==="unknown"||We==="added"&&!He?(Ze=H,it=H,qe=Ge.innerRadius,rt=Ge.outerRadius):We==="added"&&He&&(Ze=(yt=He.endAngle)!=null?yt:H,it=(Lt=He.endAngle)!=null?Lt:H,qe=(Ht=He.innerRadius)!=null?Ht:Ge.innerRadius,rt=(qt=He.outerRadius)!=null?qt:Ge.outerRadius),We==="added"&&!l){let Ni=te(Ge);qe=Ni.innerRadius,rt=Ni.outerRadius}return We==="updated"&&(dt=(ri=Pe.fill)!=null?ri:dt,mt=(Ei=typeof Pe.stroke=="string"?Pe.stroke:void 0)!=null?Ei:mt),{startAngle:Ze,endAngle:it,innerRadius:qe,outerRadius:rt,fill:dt,stroke:mt,phase:K}}},innerCircle:{fromFn:(Pe,Ge)=>{var We,He,Ze;return{size:(Ze=(He=(We=Pe.previousDatum)==null?void 0:We.radius)!=null?He:Pe.size)!=null?Ze:0,phase:K}},toFn:(Pe,Ge)=>{var We;return{size:(We=Ge.radius)!=null?We:0}}}}}function Ng(l,c){return{startAngle:c.startAngle,endAngle:c.endAngle,innerRadius:c.innerRadius,outerRadius:c.outerRadius,fill:c.sectorFormat.fill,stroke:c.sectorFormat.stroke}}function aC(l,c){let y=c.y-l.centerY,I=c.x-l.centerX,O=Math.atan2(y,I),j=l.getItemNodes();for(let H of j)if(H.datum.missing!==!0&&ga(O,H.startAngle,H.endAngle)){let K=Math.sqrt(I*I+y*y),Z=0;return K<H.innerRadius?Z=H.innerRadius-K:K>H.outerRadius&&(Z=K-H.outerRadius),{datum:H.datum,distance:Z}}}var Bu=(l=>(l[l.BACKGROUND=0]="BACKGROUND",l[l.FOREGROUND=1]="FOREGROUND",l[l.HIGHLIGHT=2]="HIGHLIGHT",l[l.LABEL=3]="LABEL",l))(Bu||{}),Kp=class extends MM{constructor(j){var H=j,{useLabelLayer:l=!1,pickModes:c=[1,0],canHaveAxes:y=!1,animationResetFns:I}=H,O=ji(H,["useLabelLayer","pickModes","canHaveAxes","animationResetFns"]);super(et(pe({},O),{useLabelLayer:l,pickModes:c,directionKeys:{x:["angleKey"],y:["radiusKey"]},directionNames:{x:["angleName"],y:["radiusName"]},canHaveAxes:y})),this.itemGroup=this.contentGroup.appendChild(new Mn),this.nodeData=[],this.itemSelection=No.select(this.itemGroup,()=>this.nodeFactory(),!1),this.labelSelection=No.select(this.labelGroup,()=>this.labelFactory(),!1),this.highlightSelection=No.select(this.highlightGroup,()=>this.nodeFactory()),this.highlightLabelSelection=No.select(this.highlightLabel,()=>this.labelFactory()),this.centerX=0,this.centerY=0,this.radius=0,this.animationResetFns=I,this.animationState=new Io("empty",{empty:{update:{target:"ready",action:K=>this.animateEmptyUpdateReady(K)},reset:"empty",skip:"ready"},ready:{updateData:"waiting",clear:"clearing",highlight:K=>this.animateReadyHighlight(K),highlightMarkers:K=>this.animateReadyHighlightMarkers(K),resize:K=>this.animateReadyResize(K),reset:"empty",skip:"ready"},waiting:{update:{target:"ready",action:K=>this.animateWaitingUpdateReady(K)},reset:"empty",skip:"ready"},clearing:{update:{target:"empty",action:K=>this.animateClearingUpdateEmpty(K)},reset:"empty",skip:"ready"}},()=>this.checkProcessedDataAnimatable())}getItemNodes(){return[...this.itemGroup.children()]}getNodeData(){return this.nodeData}setSeriesIndex(l){return super.setSeriesIndex(l)?(this.contentGroup.zIndex=[l,1],this.highlightGroup.zIndex=[l,2],this.labelGroup.zIndex=[l,3],!0):!1}resetAnimation(l){l==="initial"?this.animationState.transition("reset"):l==="ready"&&this.animationState.transition("skip")}labelFactory(){let l=new Gr;return l.pointerEvents=1,l}addChartEventListeners(){var l;this.destroyFns.push((l=this.ctx.chartEventManager)==null?void 0:l.addListener("legend-item-click",c=>this.onLegendItemClick(c)))}getInnerRadius(){return 0}computeLabelsBBox(l,c){return null}resetAllAnimation(){var y;let{item:l,label:c}=(y=this.animationResetFns)!=null?y:{};this.ctx.animationManager.stopByAnimationGroupId(this.id),l&&Yo([this.itemSelection,this.highlightSelection],l),c&&Yo([this.labelSelection,this.highlightLabelSelection],c),this.itemSelection.cleanup(),this.labelSelection.cleanup(),this.highlightSelection.cleanup(),this.highlightLabelSelection.cleanup()}animateEmptyUpdateReady(l){this.ctx.animationManager.skipCurrentBatch(),this.resetAllAnimation()}animateWaitingUpdateReady(l){this.ctx.animationManager.skipCurrentBatch(),this.resetAllAnimation()}animateReadyHighlight(l){var I;let{item:c,label:y}=(I=this.animationResetFns)!=null?I:{};c&&Yo([this.highlightSelection],c),y&&Yo([this.highlightLabelSelection],y)}animateReadyHighlightMarkers(l){}animateReadyResize(l){this.resetAllAnimation()}animateClearingUpdateEmpty(l){this.ctx.animationManager.skipCurrentBatch(),this.resetAllAnimation()}computeFocusBounds(l){var y;let c=(y=this.getNodeData())==null?void 0:y[l.datumIndex];if(c!==void 0)return this.itemSelection.select(I=>I instanceof ic&&I.datum===c)[0]}getSeriesRange(l,c){return[NaN,NaN]}},qp=class extends Tu{constructor(l,c,y,I){super(l,c,y,I),this.angleKey=I.properties.angleKey,this.radiusKey=I.properties.radiusKey,this.calloutLabelKey=I.properties.calloutLabelKey,this.sectorLabelKey=I.properties.sectorLabelKey}},dc=class extends Kp{constructor(l){super({moduleCtx:l,pickModes:[1,0],useLabelLayer:!0,animationResetFns:{item:Ng,label:Og}}),this.properties=new ua,this.phantomNodeData=void 0,this.backgroundGroup=new yl({name:`${this.id}-background`,zIndex:0}),this.noVisibleData=!1,this.previousRadiusScale=new pd,this.radiusScale=new pd,this.phantomGroup=this.backgroundGroup.appendChild(new Mn({name:"phantom"})),this.phantomSelection=No.select(this.phantomGroup,()=>this.nodeFactory(),!1),this.calloutLabelGroup=this.contentGroup.appendChild(new Mn({name:"pieCalloutLabels"})),this.calloutLabelSelection=new No(this.calloutLabelGroup,Mn),this.zerosumRingsGroup=this.backgroundGroup.appendChild(new Mn({name:`${this.id}-zerosumRings`})),this.zerosumOuterRing=this.zerosumRingsGroup.appendChild(new Cg),this.zerosumInnerRing=this.zerosumRingsGroup.appendChild(new Cg),this.innerLabelsGroup=this.contentGroup.appendChild(new Mn({name:"innerLabels"})),this.innerCircleGroup=this.backgroundGroup.appendChild(new Mn({name:`${this.id}-innerCircle`})),this.innerLabelsSelection=No.select(this.innerLabelsGroup,Gr),this.innerCircleSelection=No.select(this.innerCircleGroup,Cg),this.surroundingRadius=void 0,this.NodeEvent=qp,this.angleScale=new pd,this.angleScale.domain=[0,1],this.angleScale.range=[-Math.PI,Math.PI].map(c=>c+Math.PI/2),this.phantomGroup.opacity=.2}get calloutNodeData(){var l;return(l=this.phantomNodeData)!=null?l:this.nodeData}attachSeries(l,c,y){super.attachSeries(l,c,y),l==null||l.appendChild(this.backgroundGroup)}detachSeries(l,c,y){super.detachSeries(l,c,y),l==null||l.removeChild(this.backgroundGroup)}setSeriesIndex(l){return super.setSeriesIndex(l)?(this.backgroundGroup.zIndex=[0,l],!0):!1}nodeFactory(){return new tl}getSeriesDomain(l){return l==="x"?this.angleScale.domain:this.radiusScale.domain}async processData(l){var Ge,We,He,Ze,it;if(this.data==null||!this.properties.isValid())return;let{visible:c,id:y}=this,{angleKey:I,angleFilterKey:O,radiusKey:j,calloutLabelKey:H,sectorLabelKey:K,legendItemKey:Z}=this.properties,te=(qe,rt,dt)=>c&&this.ctx.legendManager.getItemEnabled({seriesId:y,itemId:dt}),se=!this.ctx.animationManager.isSkipped(),ge=[],Se=[];Z?ge.push(kl(Z,"band",{id:"legendItemKey"})):H?ge.push(kl(H,"band",{id:"calloutLabelKey"})):K&&ge.push(kl(K,"band",{id:"sectorLabelKey"}));let Ce=this.radiusScale.type,Pe=this.angleScale.type;j&&Se.push(hS(j,{id:"radiusValue",min:(Ge=this.properties.radiusMin)!=null?Ge:0,max:this.properties.radiusMax}),Jn(j,Ce,{id:"radiusRaw"}),Kd("radiusValue",[0,1],1,(We=this.properties.radiusMin)!=null?We:0,this.properties.radiusMax)),H&&Se.push(Jn(H,"band",{id:"calloutLabelValue"})),K&&Se.push(Jn(K,"band",{id:"sectorLabelValue"})),Z&&Se.push(Jn(Z,"band",{id:"legendItemValue"})),O&&Se.push(gS(O,Pe,{id:"angleFilterValue",onlyPositive:!0,validation:te,invalidValue:0}),Jn(O,Pe,{id:"angleFilterRaw"}),Kd("angleFilterValue",[0,1],0,0)),se&&this.processedData&&ge.length>0&&Se.push(sf(this.id,this.processedData)),Se.push(af()),await this.requestDataModel(l,this.data,{props:[...ge,gS(I,Pe,{id:"angleValue",onlyPositive:!0,validation:te,invalidValue:0}),Jn(I,Pe,{id:"angleRaw"}),Kd("angleValue",[0,1],0,0),...Se]});for(let qe of(it=(Ze=(He=this.processedData)==null?void 0:He.defs)==null?void 0:Ze.values)!=null?it:[]){let{id:rt,missing:dt,property:mt}=qe,yt=AD(this,dt);rt!=="angleRaw"&&yt>0&&Pi.warnOnce(`no value was found for the key '${String(mt)}' on ${yt} data element${yt>1?"s":""}`)}this.animationState.transition("updateData")}maybeRefreshNodeData(){var y;if(!this.nodeDataRefresh)return;let{nodeData:l=[],phantomNodeData:c}=(y=this.createNodeData())!=null?y:{};this.nodeData=l,this.phantomNodeData=c,this.nodeDataRefresh=!1}getProcessedDataValues(l,c){let y=l.resolveColumnById(this,"angleValue",c),I=l.resolveColumnById(this,"angleRaw",c),O=this.properties.angleFilterKey!=null?l.resolveColumnById(this,"angleFilterValue",c):void 0,j=this.properties.angleFilterKey!=null?l.resolveColumnById(this,"angleFilterRaw",c):void 0,H=this.properties.radiusKey?l.resolveColumnById(this,"radiusValue",c):void 0,K=this.properties.radiusKey?l.resolveColumnById(this,"radiusRaw",c):void 0,Z=this.properties.calloutLabelKey?l.resolveColumnById(this,"calloutLabelValue",c):void 0,te=this.properties.sectorLabelKey?l.resolveColumnById(this,"sectorLabelValue",c):void 0,se=this.properties.legendItemKey?l.resolveColumnById(this,"legendItemValue",c):void 0;return{angleValues:y,angleRawValues:I,angleFilterValues:O,angleFilterRawValues:j,radiusValues:H,radiusRawValues:K,calloutLabelValues:Z,sectorLabelValues:te,legendItemValues:se}}createNodeData(){var dt;let{id:l,processedData:c,dataModel:y,angleScale:I,ctx:{legendManager:O},visible:j}=this,{rotation:H,innerRadiusRatio:K}=this.properties;if(!this.properties.isValid())return this.zerosumOuterRing.visible=!0,this.zerosumInnerRing.visible=!0,{itemId:l,nodeData:[],labelData:[]};if(!(c!=null&&c.rawData.length)||!y||c.type!=="ungrouped")return;let{angleValues:Z,angleRawValues:te,angleFilterValues:se,angleFilterRawValues:ge,radiusValues:Se,radiusRawValues:Ce,calloutLabelValues:Pe,sectorLabelValues:Ge,legendItemValues:We}=this.getProcessedDataValues(y,c),He=(dt=ge==null?void 0:ge.some((mt,yt)=>mt>te[yt]))!=null?dt:!1,Ze=0,it=0,qe=[],rt=ge!=null?[]:void 0;return c.rawData.forEach((mt,yt)=>{var pn;let Lt=He?se[yt]:Z[yt],Ht=ge!=null&&!He?Math.sqrt(ge[yt]/te[yt]):1,qt=I.convert(Ze)+$e(H);Ze=Lt,it+=Lt;let ri=I.convert(Ze)+$e(H),Ei=Math.abs(ri-qt),Ni=qt+Ei/2,Vi=te[yt],sn=((pn=Se==null?void 0:Se[yt])!=null?pn:1)*Ht,en=Ce==null?void 0:Ce[yt],Nn=We==null?void 0:We[yt],dn=this.getLabels(mt,Ni,Ei,!0,Pe==null?void 0:Pe[yt],Ge==null?void 0:Ge[yt],Nn),ea=this.getSectorFormat(mt,yt,!1),Sn=pe({itemId:yt,series:this,datum:mt,datumIndex:yt,angleValue:Vi,midAngle:Ni,midCos:Math.cos(Ni),midSin:Math.sin(Ni),startAngle:qt,endAngle:ri,radius:sn,innerRadius:Math.max(this.radiusScale.convert(0),0),outerRadius:Math.max(this.radiusScale.convert(sn),0),sectorFormat:ea,radiusValue:en,legendItemValue:Nn,enabled:j&&O.getItemEnabled({seriesId:l,itemId:yt}),focusable:!0},dn);qe.push(Sn),rt!=null&&rt.push(et(pe({},Sn),{radius:1,innerRadius:Math.max(this.radiusScale.convert(0),0),outerRadius:Math.max(this.radiusScale.convert(1),0),focusable:!1}))}),this.zerosumOuterRing.visible=it===0,this.zerosumInnerRing.visible=it===0&&K!=null&&K!==1&&K>0,{itemId:l,nodeData:qe,labelData:qe,phantomNodeData:rt}}getLabels(l,c,y,I,O,j,H){let{calloutLabel:K,sectorLabel:Z,legendItemKey:te}=this.properties,se=!I||K.enabled?this.properties.calloutLabelKey:void 0,ge=!I||Z.enabled?this.properties.sectorLabelKey:void 0;if(!se&&!ge&&!te)return{};let Se={datum:l,angleKey:this.properties.angleKey,angleName:this.properties.angleName,radiusKey:this.properties.radiusKey,radiusName:this.properties.radiusName,calloutLabelKey:this.properties.calloutLabelKey,calloutLabelName:this.properties.calloutLabelName,sectorLabelKey:this.properties.sectorLabelKey,sectorLabelName:this.properties.sectorLabelName,legendItemKey:this.properties.legendItemKey},Ce={};return se&&y>$e(K.minAngle)&&(Ce.calloutLabel=et(pe({},this.getTextAlignment(c)),{text:this.getLabelText(K,et(pe({},Se),{value:O})),hidden:!1,collisionTextAlign:void 0,collisionOffsetY:0,box:void 0})),ge&&(Ce.sectorLabel={text:this.getLabelText(Z,et(pe({},Se),{value:j}))}),te!=null&&H!=null&&(Ce.legendItem={key:te,text:H}),Ce}getTextAlignment(l){let c=[{textAlign:"center",textBaseline:"bottom"},{textAlign:"left",textBaseline:"middle"},{textAlign:"center",textBaseline:"hanging"},{textAlign:"right",textBaseline:"middle"}],y=rg(l),I=-.75*Math.PI,O=y-I,j=Math.floor(O/(Math.PI/2)),H=ut(j,c.length);return c[H]}getSectorFormat(l,c,y){var rt,dt,mt,yt,Lt,Ht,qt,ri;let{angleKey:I,radiusKey:O,calloutLabelKey:j,sectorLabelKey:H,legendItemKey:K,fills:Z,strokes:te,itemStyler:se}=this.properties,ge=te[c%te.length],{fill:Se,fillOpacity:Ce,stroke:Pe,strokeWidth:Ge,strokeOpacity:We,lineDash:He,lineDashOffset:Ze,cornerRadius:it}=Wi(y&&this.properties.highlightStyle.item,{fill:Z.length>0?Z[c%Z.length]:void 0,stroke:ge,strokeWidth:this.getStrokeWidth(this.properties.strokeWidth),strokeOpacity:this.getOpacity()},this.properties),qe;return se&&(qe=this.cachedDatumCallback(Js(this.getDatumIdFromData(l),y?"highlight":"hide"),()=>se({datum:l,angleKey:I,radiusKey:O,calloutLabelKey:j,sectorLabelKey:H,legendItemKey:K,fill:Se,fillOpacity:Ce,stroke:Pe,strokeWidth:Ge,strokeOpacity:We,lineDash:He,lineDashOffset:Ze,cornerRadius:it,highlighted:y,seriesId:this.id}))),{fill:(rt=qe==null?void 0:qe.fill)!=null?rt:Se,fillOpacity:(dt=qe==null?void 0:qe.fillOpacity)!=null?dt:Ce,stroke:(mt=qe==null?void 0:qe.stroke)!=null?mt:Pe,strokeWidth:(yt=qe==null?void 0:qe.strokeWidth)!=null?yt:Ge,strokeOpacity:(Lt=qe==null?void 0:qe.strokeOpacity)!=null?Lt:We,lineDash:(Ht=qe==null?void 0:qe.lineDash)!=null?Ht:He,lineDashOffset:(qt=qe==null?void 0:qe.lineDashOffset)!=null?qt:Ze,cornerRadius:(ri=qe==null?void 0:qe.cornerRadius)!=null?ri:it}}getInnerRadius(){let{radius:l}=this,{innerRadiusRatio:c=1,innerRadiusOffset:y=0}=this.properties,I=l*c+y;return I===l||I<0?0:I}getOuterRadius(){let{outerRadiusRatio:l,outerRadiusOffset:c}=this.properties;return Math.max(this.radius*l+c,0)}updateRadiusScale(l){var I;let c=[this.getInnerRadius(),this.getOuterRadius()];this.radiusScale.range=c,l&&(this.previousRadiusScale.range=c);let y=O=>et(pe({},O),{innerRadius:Math.max(this.radiusScale.convert(0),0),outerRadius:Math.max(this.radiusScale.convert(O.radius),0)});this.nodeData=this.nodeData.map(y),this.phantomNodeData=(I=this.phantomNodeData)==null?void 0:I.map(y)}getTitleTranslationY(){var O,j;let l=Math.max(0,this.radiusScale.range[1]);if(l===0)return NaN;let y=2+((j=(O=this.properties.title)==null?void 0:O.spacing)!=null?j:0),I=Math.max(0,-l);return-l-y-I}update({seriesRect:l}){let{title:c}=this.properties,y={seriesRectWidth:l==null?void 0:l.width,seriesRectHeight:l==null?void 0:l.height},I=ad(this.nodeDataDependencies,y)!=null;if(I&&(this._nodeDataDependencies=y),this.maybeRefreshNodeData(),this.updateTitleNodes(),this.updateRadiusScale(I),this.contentGroup.translationX=this.centerX,this.contentGroup.translationY=this.centerY,this.highlightGroup.translationX=this.centerX,this.highlightGroup.translationY=this.centerY,this.backgroundGroup.translationX=this.centerX,this.backgroundGroup.translationY=this.centerY,this.labelGroup&&(this.labelGroup.translationX=this.centerX,this.labelGroup.translationY=this.centerY),c){let O=this.getTitleTranslationY();c.node.y=isFinite(O)?O:0;let j=c.node.getBBox();c.node.visible=c.enabled&&isFinite(O)&&!this.bboxIntersectsSurroundingSeries(j)}for(let O of[this.zerosumInnerRing,this.zerosumOuterRing])O.fillOpacity=0,O.stroke=this.properties.calloutLabel.color,O.strokeWidth=1,O.strokeOpacity=1;this.updateNodeMidPoint(),this.updateSelections(),this.updateNodes(l)}updateTitleNodes(){var y,I;let{oldTitle:l}=this,{title:c}=this.properties;l!==c&&(l&&((y=this.labelGroup)==null||y.removeChild(l.node)),c&&(c.node.textBaseline="bottom",(I=this.labelGroup)==null||I.appendChild(c.node)),this.oldTitle=c)}updateNodeMidPoint(){var c;let l=y=>{let I=y.innerRadius+(y.outerRadius-y.innerRadius)/2;y.midPoint={x:y.midCos*Math.max(0,I),y:y.midSin*Math.max(0,I)}};this.nodeData.forEach(l),(c=this.phantomNodeData)==null||c.forEach(l)}updateSelections(){this.updateGroupSelection(),this.updateInnerCircleSelection()}updateGroupSelection(){var te;let{itemSelection:l,highlightSelection:c,phantomSelection:y,highlightLabelSelection:I,calloutLabelSelection:O,labelSelection:j,innerLabelsSelection:H}=this,K=this.nodeData.map(se=>et(pe({},se),{sectorFormat:pe({},se.sectorFormat)})),Z=(se,ge)=>{se.update(ge,void 0,Se=>this.getDatumId(Se)),this.ctx.animationManager.isSkipped()&&se.cleanup()};Z(l,this.nodeData),Z(c,K),Z(y,(te=this.phantomNodeData)!=null?te:[]),O.update(this.calloutNodeData,se=>{let ge=new ns;ge.tag=0,ge.pointerEvents=1,se.appendChild(ge);let Se=new Gr;Se.tag=1,Se.pointerEvents=1,se.appendChild(Se)}),j.update(this.nodeData),I.update(K),H.update(this.properties.innerLabels,se=>{se.pointerEvents=1})}updateInnerCircleSelection(){let{innerCircle:l}=this.properties,c=0,y=this.getInnerRadius();if(y>0){let O=Math.min(y,this.getOuterRadius()),j=1;c=Math.ceil(O*2+j)}let I=l?[{radius:c}]:[];this.innerCircleSelection.update(I)}updateNodes(l){let c=this.ctx.highlightManager.getActiveHighlight(),{visible:y}=this;this.backgroundGroup.visible=y,this.contentGroup.visible=y,this.highlightGroup.visible=y&&(c==null?void 0:c.series)===this,this.highlightLabel.visible=y&&(c==null?void 0:c.series)===this,this.labelGroup.visible=y,this.contentGroup.opacity=this.getOpacity(),this.innerCircleSelection.each((j,{radius:H})=>{var K,Z;j.setProperties({fill:(K=this.properties.innerCircle)==null?void 0:K.fill,opacity:(Z=this.properties.innerCircle)==null?void 0:Z.fillOpacity,size:H})});let I=this.ctx.animationManager.isSkipped(),O=(j,H,K,Z)=>{let te=this.getSectorFormat(H.datum,H.itemId,Z);H.sectorFormat.fill=te.fill,H.sectorFormat.stroke=te.stroke,I&&(j.startAngle=H.startAngle,j.endAngle=H.endAngle,j.innerRadius=H.innerRadius,j.outerRadius=H.outerRadius),(Z||I)&&(j.fill=te.fill,j.stroke=te.stroke),j.strokeWidth=te.strokeWidth,j.fillOpacity=te.fillOpacity,j.strokeOpacity=te.strokeOpacity,j.lineDash=te.lineDash,j.lineDashOffset=te.lineDashOffset,j.cornerRadius=te.cornerRadius,j.fillShadow=this.properties.shadow;let se=Math.max((this.properties.sectorSpacing+(te.stroke!=null?te.strokeWidth:0))/2,0);j.inset=se,j.lineJoin=this.properties.sectorSpacing>=0||se>0?"miter":"round"};this.itemSelection.each((j,H,K)=>O(j,H,K,!1)),this.highlightSelection.each((j,H,K)=>{O(j,H,K,!0),j.visible=H.itemId===(c==null?void 0:c.itemId)}),this.phantomSelection.each((j,H,K)=>O(j,H,K,!1)),this.updateCalloutLineNodes(),this.updateCalloutLabelNodes(l),this.updateSectorLabelNodes(),this.updateInnerLabelNodes(),this.updateZerosumRings(),this.animationState.transition("update")}updateCalloutLineNodes(){var j;let{calloutLine:l}=this.properties,c=l.length,y=l.strokeWidth,I=(j=l.colors)!=null?j:this.properties.strokes,{offset:O}=this.properties.calloutLabel;this.calloutLabelSelection.selectByTag(0).forEach((H,K)=>{var ge;let Z=H.datum,{calloutLabel:te,outerRadius:se}=Z;if(te!=null&&te.text&&!te.hidden&&se!==0){H.visible=!0,H.strokeWidth=y,H.stroke=I[K%I.length],H.fill=void 0;let Se=Z.midCos*se,Ce=Z.midSin*se,Pe=Z.midCos*(se+c),Ge=Z.midSin*(se+c);if(((ge=te.collisionTextAlign)!=null?ge:te.collisionOffsetY!==0)&&te.box!=null){let He=te.box,Ze=Pe,it=Ge;Pe<He.x?Ze=He.x:Pe>He.x+He.width&&(Ze=He.x+He.width),Ge<He.y?it=He.y:Ge>He.y+He.height&&(it=He.y+He.height);let qe=Ze-Pe,rt=it-Ge,dt=Math.sqrt(Math.pow(qe,2)+Math.pow(rt,2)),mt=dt-O;mt>0&&(Pe=Pe+qe*mt/dt,Ge=Ge+rt*mt/dt)}H.x1=Se,H.y1=Ce,H.x2=Pe,H.y2=Ge}else H.visible=!1})}getLabelOverflow(l,c,y){let I=-this.centerX,O=I+y.width,j=-this.centerY,H=j+y.height,K=1,Z=1;c.x+K<I?Z=(c.x+c.width-I)/c.width:c.x+c.width-K>O&&(Z=(O-c.x)/c.width);let te=c.y+K<j||c.y+c.height-K>H,se=Z===1?l.length:Math.floor(l.length*Z)-1,ge=this.bboxIntersectsSurroundingSeries(c);return{textLength:se,hasVerticalOverflow:te,hasSurroundingSeriesOverflow:ge}}bboxIntersectsSurroundingSeries(l){let{surroundingRadius:c}=this;if(c==null)return!1;let y=[{x:l.x,y:l.y},{x:l.x+l.width,y:l.y},{x:l.x+l.width,y:l.y+l.height},{x:l.x,y:l.y+l.height}],I=c**2;return y.some(O=>O.x**2+O.y**2>I)}computeCalloutLabelCollisionOffsets(){let{radiusScale:l}=this,{calloutLabel:c,calloutLine:y}=this.properties,{offset:I,minSpacing:O}=c,j=l.convert(0),H=He=>!He.calloutLabel||He.outerRadius===0,K=this.calloutNodeData,Z=K.filter(He=>!H(He));if(Z.forEach(He=>{let Ze=He.calloutLabel;Ze!=null&&(Ze.hidden=!1,Ze.collisionTextAlign=void 0,Ze.collisionOffsetY=0)}),Z.length<=1)return;let te=Z.filter(He=>He.midCos<0).sort((He,Ze)=>He.midSin-Ze.midSin),se=Z.filter(He=>He.midCos>=0).sort((He,Ze)=>He.midSin-Ze.midSin),ge=Z.filter(He=>{var Ze;return He.midSin<0&&((Ze=He.calloutLabel)==null?void 0:Ze.textAlign)==="center"}).sort((He,Ze)=>He.midCos-Ze.midCos),Se=Z.filter(He=>{var Ze;return He.midSin>=0&&((Ze=He.calloutLabel)==null?void 0:Ze.textAlign)==="center"}).sort((He,Ze)=>He.midCos-Ze.midCos),Ce=He=>{var yt;let Ze=He.calloutLabel;if(Ze==null)return ft.zero.clone();let it=He.outerRadius+y.length+I,qe=He.midCos*it,rt=He.midSin*it+Ze.collisionOffsetY,dt=(yt=Ze.collisionTextAlign)!=null?yt:Ze.textAlign,mt=Ze.textBaseline;return Gr.computeBBox(Ze.text,qe,rt,{font:this.properties.calloutLabel,textAlign:dt,textBaseline:mt})},Pe=(He,Ze,it)=>{let qe=Ce(He).grow(O/2),rt=Ce(Ze).grow(O/2);if(qe.x<rt.x+rt.width&&qe.x+qe.width>rt.x&&(it==="to-top"?qe.y<rt.y+rt.height:qe.y+qe.height>rt.y)){let mt=it==="to-top"?qe.y-rt.y-rt.height:qe.y+qe.height-rt.y;Ze.calloutLabel.collisionOffsetY=mt}},Ge=He=>{let Ze=He.slice().sort((qe,rt)=>Math.abs(qe.midSin)-Math.abs(rt.midSin))[0],it=He.indexOf(Ze);for(let qe=it-1;qe>=0;qe--){let rt=He[qe+1],dt=He[qe];Pe(rt,dt,"to-top")}for(let qe=it+1;qe<He.length;qe++){let rt=He[qe-1],dt=He[qe];Pe(rt,dt,"to-bottom")}},We=He=>{let Ze=Z.some(yt=>yt.calloutLabel.collisionOffsetY!==0),it=He.map(yt=>Ce(yt)),qe=it.map(yt=>yt.clone().grow(O/2)),rt=!1;for(let yt=0;yt<qe.length&&!rt;yt++){let Lt=qe[yt];for(let Ht=yt+1;Ht<He.length;Ht++){let qt=qe[Ht];if(Lt.collidesBBox(qt)){rt=!0;break}}}let dt=K.map(yt=>{let{startAngle:Lt,endAngle:Ht,outerRadius:qt}=yt;return{startAngle:Lt,endAngle:Ht,innerRadius:j,outerRadius:qt}}),mt=it.some(yt=>dt.some(Lt=>jS(yt,Lt)));!rt&&!Ze&&!mt||He.filter(yt=>yt.calloutLabel.textAlign==="center").forEach(yt=>{let Lt=yt.calloutLabel;yt.midCos<0?Lt.collisionTextAlign="right":yt.midCos>0?Lt.collisionTextAlign="left":Lt.collisionTextAlign="center"})};Ge(te),Ge(se),We(ge),We(Se)}updateCalloutLabelNodes(l){let{radiusScale:c}=this,{calloutLabel:y,calloutLine:I}=this.properties,O=I.length,{offset:j,color:H}=y,K=new Gr;this.calloutLabelSelection.selectByTag(1).forEach(Z=>{var qe;let{datum:te}=Z,se=te.calloutLabel,ge=c.convert(te.radius),Se=Math.max(0,ge);if(!(se!=null&&se.text)||Se===0||se.hidden){Z.visible=!1;return}let Ce=Se+O+j,Pe=te.midCos*Ce,Ge=te.midSin*Ce+se.collisionOffsetY,We={textAlign:(qe=se.collisionTextAlign)!=null?qe:se.textAlign,textBaseline:se.textBaseline};K.text=se.text,K.x=Pe,K.y=Ge,K.setFont(this.properties.calloutLabel),K.setAlign(We);let He=K.getBBox(),Ze=se.text,it=!0;if(y.avoidCollisions){let{textLength:rt,hasVerticalOverflow:dt}=this.getLabelOverflow(se.text,He,l);Ze=se.text.length===rt?se.text:`${se.text.substring(0,rt)}\u2026`,it=!dt}Z.text=Ze,Z.x=Pe,Z.y=Ge,Z.setFont(this.properties.calloutLabel),Z.setAlign(We),Z.fill=H,Z.visible=it})}computeLabelsBBox(l,c){let{calloutLabel:y,calloutLine:I}=this.properties,O=I.length,{offset:j,maxCollisionOffset:H,minSpacing:K}=y;if(!y.avoidCollisions)return null;this.maybeRefreshNodeData(),this.updateRadiusScale(!1),this.computeCalloutLabelCollisionOffsets();let Z=[],te=new Gr,se,{title:ge}=this.properties;if(ge!=null&&ge.text&&ge.enabled){let Se=this.getTitleTranslationY();isFinite(Se)&&(te.text=ge.text,te.x=0,te.y=Se,te.setFont(ge),te.setAlign({textBaseline:"bottom",textAlign:"center"}),se=te.getBBox(),Z.push(se))}return this.calloutNodeData.forEach(Se=>{var Ze;let Ce=Se.calloutLabel;if(!Ce||Se.outerRadius===0)return null;let Pe=Se.outerRadius+O+j,Ge=Se.midCos*Pe,We=Se.midSin*Pe+Ce.collisionOffsetY;te.text=Ce.text,te.x=Ge,te.y=We,te.setFont(this.properties.calloutLabel),te.setAlign({textAlign:(Ze=Ce.collisionTextAlign)!=null?Ze:Ce.textAlign,textBaseline:Ce.textBaseline});let He=te.getBBox();if(Ce.box=He,Math.abs(Ce.collisionOffsetY)>H){Ce.hidden=!0;return}if(se){let it=-this.centerY,qe=new ft(se.x-K,it,se.width+2*K,se.y+se.height+K-it);if(He.collidesBBox(qe)){Ce.hidden=!0;return}}if(l.hideWhenNecessary){let{textLength:it,hasVerticalOverflow:qe,hasSurroundingSeriesOverflow:rt}=this.getLabelOverflow(Ce.text,He,c),dt=Ce.text.length>2&&it<2;if(qe||dt||rt){Ce.hidden=!0;return}}Ce.hidden=!1,Z.push(He)}),Z.length===0?null:ft.merge(Z)}updateSectorLabelNodes(){let{radiusScale:l}=this,c=l.convert(0),{fontSize:y,fontStyle:I,fontWeight:O,fontFamily:j,positionOffset:H,positionRatio:K,color:Z}=this.properties.sectorLabel,te=(se,ge)=>{let{sectorLabel:Se,outerRadius:Ce}=ge,Pe=!1;if(Se&&Ce!==0){let Ge=c*(1-K)+Ce*K+H;se.fill=Z,se.fontStyle=I,se.fontWeight=O,se.fontSize=y,se.fontFamily=j,se.text=Se.text,se.x=ge.midCos*Ge,se.y=ge.midSin*Ge,se.textAlign="center",se.textBaseline="middle";let We=se.getBBox(),He=[[We.x,We.y],[We.x+We.width,We.y],[We.x+We.width,We.y+We.height],[We.x,We.y+We.height]],{startAngle:Ze,endAngle:it}=ge,qe={startAngle:Ze,endAngle:it,innerRadius:c,outerRadius:Ce};He.every(([rt,dt])=>Dk(rt,dt,qe))&&(Pe=!0)}se.visible=Pe};this.labelSelection.each(te),this.highlightLabelSelection.each(te)}updateInnerLabelNodes(){let l=[],c=[];this.innerLabelsSelection.each((se,ge)=>{let{fontStyle:Se,fontWeight:Ce,fontSize:Pe,fontFamily:Ge,color:We}=ge;se.fontStyle=Se,se.fontWeight=Ce,se.fontSize=Pe,se.fontFamily=Ge,se.text=ge.text,se.x=0,se.y=0,se.fill=We,se.textAlign="center",se.textBaseline="alphabetic",l.push(se.getBBox()),c.push(ge.spacing)});let y=se=>se===0?0:c[se],I=se=>se===c.length-1?0:c[se],O=l.reduce((se,ge,Se)=>se+ge.height+y(Se)+I(Se),0),j=Math.max(...l.map(se=>se.width)),H=this.getInnerRadius(),Z=Math.sqrt(Math.pow(j/2,2)+Math.pow(O/2,2))<=(H>0?H:this.getOuterRadius()),te=[];for(let se=0,ge=-O/2;se<l.length;se++){let Ce=l[se].height+ge+y(se);te.push(Ce),ge=Ce+I(se)}this.innerLabelsSelection.each((se,ge,Se)=>{se.y=te[Se],se.visible=Z})}updateZerosumRings(){this.zerosumOuterRing.size=this.getOuterRadius()*2,this.zerosumInnerRing.size=this.getInnerRadius()*2}pickNodeClosestDatum(l){return aC(this,l)}getTooltipContent(l){var yt,Lt,Ht;let{id:c,dataModel:y,processedData:I,properties:O}=this,{legendItemKey:j,calloutLabelKey:H,calloutLabelName:K,sectorLabelKey:Z,sectorLabelName:te,angleKey:se,angleName:ge,radiusKey:Se,radiusName:Ce,tooltip:Pe}=O,Ge=this.properties.title.text;if(!y||!I||I.rawData.length===0)return;let{datumIndex:We}=l,He=I.rawData[We],{angleRawValues:Ze,legendItemValues:it,calloutLabelValues:qe,sectorLabelValues:rt}=this.getProcessedDataValues(y,I),dt=Ze[We],mt=(Ht=(Lt=(yt=it==null?void 0:it[We])!=null?yt:H===se||qe==null?void 0:qe[We])!=null?Lt:Z===se||rt==null?void 0:rt[We])!=null?Ht:ge;return Pe.formatTooltip({title:Ge,symbol:this.legendItemSymbol(We),data:[{label:mt,fallbackLabel:se,value:String(dt)}]},pe({seriesId:c,datum:He,title:ge,legendItemKey:j,calloutLabelKey:H,calloutLabelName:K,sectorLabelKey:Z,sectorLabelName:te,angleKey:se,angleName:ge,radiusKey:Se,radiusName:Ce},this.getSectorFormat(He,We,!1)))}legendItemSymbol(l){var I;let c=(I=this.processedData)==null?void 0:I.rawData[l],y=this.getSectorFormat(c,l,!1);return{marker:{fill:y.fill,stroke:y.stroke,fillOpacity:this.properties.fillOpacity,strokeOpacity:this.properties.strokeOpacity,strokeWidth:this.properties.strokeWidth}}}getLegendData(l){var Ze,it,qe,rt,dt;let{visible:c,processedData:y,dataModel:I,id:O,ctx:{legendManager:j}}=this;if(!I||!y||!this.properties.isValid()||l!=="category")return[];let{angleKey:H,calloutLabelKey:K,sectorLabelKey:Z,legendItemKey:te,showInLegend:se}=this.properties;if(!te&&(!K||K===H)&&(!Z||Z===H))return[];let{angleRawValues:ge,calloutLabelValues:Se,sectorLabelValues:Ce,legendItemValues:Pe}=this.getProcessedDataValues(I,y),Ge=((Ze=this.properties.title)==null?void 0:Ze.showInLegend)&&this.properties.title.text,We=[],He=this.properties.hideZeroValueSectorsInLegend;for(let mt=0;mt<y.rawData.length;mt++){let yt=y.rawData[mt],Lt=ge[mt];if(He&&Lt===0)continue;let Ht=[];Ge&&Ht.push(Ge);let qt=this.getLabels(yt,2*Math.PI,2*Math.PI,!1,Se==null?void 0:Se[mt],Ce==null?void 0:Ce[mt],Pe==null?void 0:Pe[mt]);te&&qt.legendItem!==void 0?Ht.push(qt.legendItem.text):K&&K!==H&&((it=qt.calloutLabel)==null?void 0:it.text)!==void 0?Ht.push((qe=qt.calloutLabel)==null?void 0:qe.text):Z&&Z!==H&&((rt=qt.sectorLabel)==null?void 0:rt.text)!==void 0&&Ht.push((dt=qt.sectorLabel)==null?void 0:dt.text),Ht.length!==0&&We.push({legendType:"category",id:O,datum:yt,itemId:mt,seriesId:O,enabled:c&&j.getItemEnabled({seriesId:O,itemId:mt}),label:{text:Ht.join(" - ")},symbol:this.legendItemSymbol(mt),legendItemName:te!=null?yt[te]:void 0,hideInLegend:!se})}return We}setLegendState(l){let{id:c,ctx:{legendManager:y,updateService:I}}=this;l.forEach((O,j)=>y.toggleItem({enabled:O,seriesId:c,itemId:j})),y.update(),I.update(4)}animateEmptyUpdateReady(l){let{animationManager:c}=this.ctx,y=bd(!0,this.properties.rotation,this.radiusScale,this.previousRadiusScale);yi(this.id,"nodes",c,[this.itemSelection,this.highlightSelection,this.phantomSelection],y.nodes,(I,O)=>this.getDatumId(O)),yi(this.id,"innerCircle",c,[this.innerCircleSelection],y.innerCircle),Ma(this,"callout",c,this.calloutLabelSelection),Ma(this,"sector",c,this.labelSelection),Ma(this,"highlight",c,this.highlightLabelSelection),Ma(this,"inner",c,this.innerLabelsSelection),this.previousRadiusScale.range=this.radiusScale.range}animateWaitingUpdateReady(){var Ce,Pe,Ge,We,He,Ze,it;let{itemSelection:l,highlightSelection:c,phantomSelection:y,processedData:I,radiusScale:O,previousRadiusScale:j}=this,{animationManager:H}=this.ctx,K=(Pe=(Ce=I==null?void 0:I.reduced)==null?void 0:Ce.diff)==null?void 0:Pe[this.id];this.ctx.animationManager.stopByAnimationGroupId(this.id);let Z=((Ge=K==null?void 0:K.moved.size)!=null?Ge:0)===0,te=((We=I==null?void 0:I.defs.keys.length)!=null?We:0)>0,se=(it=(Ze=(He=I==null?void 0:I.reduced)==null?void 0:He.animationValidation)==null?void 0:Ze.uniqueKeys)!=null?it:!0;(!Z||!te||!se)&&this.ctx.animationManager.skipCurrentBatch();let ge=!this.nodeData.some(qe=>qe.enabled),Se=bd(!1,this.properties.rotation,O,j);yi(this.id,"nodes",H,[l,c,y],Se.nodes,(qe,rt)=>this.getDatumId(rt),K),yi(this.id,"innerCircle",H,[this.innerCircleSelection],Se.innerCircle),Ma(this,"callout",this.ctx.animationManager,this.calloutLabelSelection),Ma(this,"sector",this.ctx.animationManager,this.labelSelection),Ma(this,"highlight",this.ctx.animationManager,this.highlightLabelSelection),this.noVisibleData!==ge&&(this.noVisibleData=ge,Ma(this,"inner",this.ctx.animationManager,this.innerLabelsSelection)),this.previousRadiusScale.range=this.radiusScale.range}animateClearingUpdateEmpty(){let{itemSelection:l,highlightSelection:c,phantomSelection:y,radiusScale:I,previousRadiusScale:O}=this,{animationManager:j}=this.ctx,H=bd(!1,this.properties.rotation,I,O);yi(this.id,"nodes",j,[l,c,y],H.nodes,(K,Z)=>this.getDatumId(Z)),yi(this.id,"innerCircle",j,[this.innerCircleSelection],H.innerCircle),vf(this,"callout",this.ctx.animationManager,this.calloutLabelSelection),vf(this,"sector",this.ctx.animationManager,this.labelSelection),vf(this,"highlight",this.ctx.animationManager,this.highlightLabelSelection),vf(this,"inner",this.ctx.animationManager,this.innerLabelsSelection),this.previousRadiusScale.range=this.radiusScale.range}getDatumIdFromData(l){var O,j,H;let{calloutLabelKey:c,sectorLabelKey:y,legendItemKey:I}=this.properties;if((H=(j=(O=this.processedData)==null?void 0:O.reduced)==null?void 0:j.animationValidation)!=null&&H.uniqueKeys){if(I)return l[I];if(c)return l[c];if(y)return l[y]}}getDatumId(l){let{datumIndex:c}=l,y=this.getDatumIdFromData(l.datum);return String(y!=null?y:c)}};dc.className="DonutSeries",dc.type="donut";var XT={series:{title:{enabled:!0,fontWeight:"normal",fontSize:14,fontFamily:Jo,color:vd,spacing:5},calloutLabel:{enabled:!0,fontSize:12,fontFamily:Jo,color:jo,offset:3,minAngle:0},sectorLabel:{enabled:!0,fontWeight:"normal",fontSize:12,fontFamily:Jo,color:fd,positionOffset:0,positionRatio:.5},calloutLine:{length:10,strokeWidth:2},fillOpacity:1,strokeOpacity:1,strokeWidth:0,lineDash:[0],lineDashOffset:0,rotation:0,sectorSpacing:1,shadow:{enabled:!1,color:Ig,xOffset:3,yOffset:3,blur:5},innerLabels:{fontSize:12,fontFamily:Jo,color:jo,spacing:2}}},KS={series:{title:{enabled:!0,fontWeight:"normal",fontSize:14,fontFamily:Jo,color:vd,spacing:5},calloutLabel:{enabled:!0,fontSize:12,fontFamily:Jo,color:jo,offset:3,minAngle:0},sectorLabel:{enabled:!0,fontWeight:"normal",fontSize:12,fontFamily:Jo,color:fd,positionOffset:0,positionRatio:.5},calloutLine:{length:10,strokeWidth:2},fillOpacity:1,strokeOpacity:1,strokeWidth:0,lineDash:[0],lineDashOffset:0,rotation:0,sectorSpacing:1,shadow:{enabled:!1,color:Ig,xOffset:3,yOffset:3,blur:5}}},T1=({takeColors:l,colorsCount:c})=>{let{fills:y,strokes:I}=l(c);return{fills:y,strokes:I,calloutLine:{colors:I}}},IL={type:"series",optionsKey:"series[]",packageType:"community",chartTypes:["polar"],identifier:"donut",moduleFactory:l=>new dc(l),tooltipDefaults:{range:"exact"},themeTemplate:XT,paletteFactory:T1},ey=class extends mo{constructor(){super(...arguments),this.showInLegend=!1}};D([Je(Zi)],ey.prototype,"showInLegend",2);var Yp=class extends Xo{constructor(){super(...arguments),this.offset=3,this.minAngle=0,this.minSpacing=4,this.maxCollisionOffset=50,this.avoidCollisions=!0}};D([Je(Fi)],Yp.prototype,"offset",2),D([Je(Vn.restrict({min:0,max:360}))],Yp.prototype,"minAngle",2),D([Je(Fi)],Yp.prototype,"minSpacing",2),D([Je(Fi)],Yp.prototype,"maxCollisionOffset",2),D([Je(Zi)],Yp.prototype,"avoidCollisions",2);var R1=class extends Xo{constructor(){super(...arguments),this.positionOffset=0,this.positionRatio=.5}};D([Je(Vn)],R1.prototype,"positionOffset",2),D([Je(Ia)],R1.prototype,"positionRatio",2);var ty=class extends un{constructor(){super(...arguments),this.length=10,this.strokeWidth=1}};D([Je(gl,{optional:!0})],ty.prototype,"colors",2),D([Je(Fi)],ty.prototype,"length",2),D([Je(Fi)],ty.prototype,"strokeWidth",2);var Ba=class extends gd{constructor(){super(...arguments),this.fills=Object.values(Pr),this.strokes=Object.values(Qd),this.fillOpacity=1,this.strokeOpacity=1,this.lineDash=[0],this.lineDashOffset=0,this.cornerRadius=0,this.rotation=0,this.outerRadiusOffset=0,this.outerRadiusRatio=1,this.strokeWidth=1,this.sectorSpacing=0,this.hideZeroValueSectorsInLegend=!1,this.title=new ey,this.shadow=new Zd,this.calloutLabel=new Yp,this.sectorLabel=new R1,this.calloutLine=new ty,this.tooltip=new oc}};D([Je(ui)],Ba.prototype,"angleKey",2),D([Je(ui,{optional:!0})],Ba.prototype,"angleName",2),D([Je(ui,{optional:!0})],Ba.prototype,"angleFilterKey",2),D([Je(ui,{optional:!0})],Ba.prototype,"radiusKey",2),D([Je(ui,{optional:!0})],Ba.prototype,"radiusName",2),D([Je(Fi,{optional:!0})],Ba.prototype,"radiusMin",2),D([Je(Fi,{optional:!0})],Ba.prototype,"radiusMax",2),D([Je(ui,{optional:!0})],Ba.prototype,"calloutLabelKey",2),D([Je(ui,{optional:!0})],Ba.prototype,"calloutLabelName",2),D([Je(ui,{optional:!0})],Ba.prototype,"sectorLabelKey",2),D([Je(ui,{optional:!0})],Ba.prototype,"sectorLabelName",2),D([Je(ui,{optional:!0})],Ba.prototype,"legendItemKey",2),D([Je(gl)],Ba.prototype,"fills",2),D([Je(gl)],Ba.prototype,"strokes",2),D([Je(Ia)],Ba.prototype,"fillOpacity",2),D([Je(Ia)],Ba.prototype,"strokeOpacity",2),D([Je(qo)],Ba.prototype,"lineDash",2),D([Je(Fi)],Ba.prototype,"lineDashOffset",2),D([Je(Fi)],Ba.prototype,"cornerRadius",2),D([Je(no,{optional:!0})],Ba.prototype,"itemStyler",2),D([Je(Vn)],Ba.prototype,"rotation",2),D([Je(Vn)],Ba.prototype,"outerRadiusOffset",2),D([Je(Ia)],Ba.prototype,"outerRadiusRatio",2),D([Je(Fi)],Ba.prototype,"strokeWidth",2),D([Je(Vn)],Ba.prototype,"sectorSpacing",2),D([Je(Zi)],Ba.prototype,"hideZeroValueSectorsInLegend",2),D([Je(Gi)],Ba.prototype,"title",2),D([Je(Gi)],Ba.prototype,"shadow",2),D([Je(Gi)],Ba.prototype,"calloutLabel",2),D([Je(Gi)],Ba.prototype,"sectorLabel",2),D([Je(Gi)],Ba.prototype,"calloutLine",2),D([Je(Gi)],Ba.prototype,"tooltip",2);var ZT=class extends Tu{constructor(l,c,y,I){super(l,c,y,I),this.angleKey=I.properties.angleKey,this.radiusKey=I.properties.radiusKey,this.calloutLabelKey=I.properties.calloutLabelKey,this.sectorLabelKey=I.properties.sectorLabelKey}},P1=class extends Kp{constructor(l){super({moduleCtx:l,pickModes:[1,0],useLabelLayer:!0,animationResetFns:{item:Ng,label:Og}}),this.properties=new Ba,this.phantomNodeData=void 0,this.backgroundGroup=new yl({name:`${this.id}-background`,zIndex:0}),this.previousRadiusScale=new pd,this.radiusScale=new pd,this.phantomGroup=this.backgroundGroup.appendChild(new Mn({name:"phantom"})),this.phantomSelection=No.select(this.phantomGroup,()=>this.nodeFactory(),!1),this.calloutLabelGroup=this.contentGroup.appendChild(new Mn({name:"pieCalloutLabels"})),this.calloutLabelSelection=new No(this.calloutLabelGroup,Mn),this.zerosumRingsGroup=this.backgroundGroup.appendChild(new Mn({name:`${this.id}-zerosumRings`})),this.zerosumOuterRing=this.zerosumRingsGroup.appendChild(new Cg),this.surroundingRadius=void 0,this.NodeEvent=ZT,this.angleScale=new pd,this.angleScale.domain=[0,1],this.angleScale.range=[-Math.PI,Math.PI].map(c=>c+Math.PI/2),this.phantomGroup.opacity=.2}get calloutNodeData(){var l;return(l=this.phantomNodeData)!=null?l:this.nodeData}attachSeries(l,c,y){super.attachSeries(l,c,y),l.appendChild(this.backgroundGroup)}detachSeries(l,c,y){super.detachSeries(l,c,y),l==null||l.removeChild(this.backgroundGroup)}setSeriesIndex(l){return super.setSeriesIndex(l)?(this.backgroundGroup.zIndex=[0,l],!0):!1}nodeFactory(){let l=new tl;return l.miterLimit=1e9,l}getSeriesDomain(l){return l==="x"?this.angleScale.domain:this.radiusScale.domain}async processData(l){var We,He,Ze,it,qe,rt,dt,mt;if(this.data==null||!this.properties.isValid())return;let{visible:c,id:y,ctx:{legendManager:I}}=this,{angleKey:O,angleFilterKey:j,radiusKey:H,calloutLabelKey:K,sectorLabelKey:Z,legendItemKey:te}=this.properties,se=(yt,Lt,Ht)=>c&&I.getItemEnabled({seriesId:y,itemId:Ht}),ge=!this.ctx.animationManager.isSkipped(),Se=[],Ce=[];te?Se.push(kl(te,"band",{id:"legendItemKey"})):K?Se.push(kl(K,"band",{id:"calloutLabelKey"})):Z&&Se.push(kl(Z,"band",{id:"sectorLabelKey"}));let Pe=this.radiusScale.type,Ge=this.angleScale.type;H&&Ce.push(hS(H,{id:"radiusValue",min:(We=this.properties.radiusMin)!=null?We:0,max:this.properties.radiusMax}),Jn(H,Pe,{id:"radiusRaw"}),Kd("radiusValue",[0,1],1,(He=this.properties.radiusMin)!=null?He:0,this.properties.radiusMax)),K&&Ce.push(Jn(K,"band",{id:"calloutLabelValue"})),Z&&Ce.push(Jn(Z,"band",{id:"sectorLabelValue"})),te&&Ce.push(Jn(te,"band",{id:"legendItemValue"})),j&&Ce.push(gS(j,Ge,{id:"angleFilterValue",onlyPositive:!0,validation:se,invalidValue:0}),Jn(j,Ge,{id:"angleFilterRaw"}),Kd("angleFilterValue",[0,1],0,0)),ge&&((qe=(it=(Ze=this.processedData)==null?void 0:Ze.reduced)==null?void 0:it.animationValidation)!=null&&qe.uniqueKeys)&&Se.length>0&&Ce.push(sf(this.id,this.processedData)),Ce.push(af()),await this.requestDataModel(l,this.data,{props:[...Se,gS(O,Ge,{id:"angleValue",onlyPositive:!0,validation:se,invalidValue:0}),Jn(O,Ge,{id:"angleRaw"}),Kd("angleValue",[0,1],0,0),...Ce]});for(let yt of(mt=(dt=(rt=this.processedData)==null?void 0:rt.defs)==null?void 0:dt.values)!=null?mt:[]){let{id:Lt,missing:Ht,property:qt}=yt,ri=AD(this,Ht);Lt!=="angleRaw"&&ri>0&&Pi.warnOnce(`no value was found for the key '${String(qt)}' on ${ri} data element${ri>1?"s":""}`)}this.animationState.transition("updateData")}maybeRefreshNodeData(){var y;if(!this.nodeDataRefresh)return;let{nodeData:l=[],phantomNodeData:c}=(y=this.createNodeData())!=null?y:{};this.nodeData=l,this.phantomNodeData=c,this.nodeDataRefresh=!1}getProcessedDataValues(l,c){let y=l.resolveColumnById(this,"angleValue",c),I=l.resolveColumnById(this,"angleRaw",c),O=this.properties.angleFilterKey!=null?l.resolveColumnById(this,"angleFilterValue",c):void 0,j=this.properties.angleFilterKey!=null?l.resolveColumnById(this,"angleFilterRaw",c):void 0,H=this.properties.radiusKey?l.resolveColumnById(this,"radiusValue",c):void 0,K=this.properties.radiusKey?l.resolveColumnById(this,"radiusRaw",c):void 0,Z=this.properties.calloutLabelKey?l.resolveColumnById(this,"calloutLabelValue",c):void 0,te=this.properties.sectorLabelKey?l.resolveColumnById(this,"sectorLabelValue",c):void 0,se=this.properties.legendItemKey?l.resolveColumnById(this,"legendItemValue",c):void 0;return{angleValues:y,angleRawValues:I,angleFilterValues:O,angleFilterRawValues:j,radiusValues:H,radiusRawValues:K,calloutLabelValues:Z,sectorLabelValues:te,legendItemValues:se}}createNodeData(){var rt;let{id:l,processedData:c,dataModel:y,angleScale:I,ctx:{legendManager:O},visible:j}=this,{rotation:H}=this.properties;if(!(c!=null&&c.rawData.length)||!y||c.type!=="ungrouped")return;let{angleValues:K,angleRawValues:Z,angleFilterValues:te,angleFilterRawValues:se,radiusValues:ge,radiusRawValues:Se,calloutLabelValues:Ce,sectorLabelValues:Pe,legendItemValues:Ge}=this.getProcessedDataValues(y,c),We=(rt=se==null?void 0:se.some((dt,mt)=>dt>Z[mt]))!=null?rt:!1,He=0,Ze=0,it=[],qe=se!=null?[]:void 0;return c.rawData.forEach((dt,mt)=>{var Sn;let yt=We?te[mt]:K[mt],Lt=se!=null&&!We?Math.sqrt(se[mt]/Z[mt]):1,Ht=I.convert(He)+$e(H);He=yt,Ze+=yt;let qt=I.convert(He)+$e(H),ri=Math.abs(qt-Ht),Ei=Ht+ri/2,Ni=Z[mt],Si=((Sn=ge==null?void 0:ge[mt])!=null?Sn:1)*Lt,sn=Se==null?void 0:Se[mt],en=Ge==null?void 0:Ge[mt],Nn=this.getLabels(dt,Ei,ri,!0,Ce==null?void 0:Ce[mt],Pe==null?void 0:Pe[mt],en),dn=this.getSectorFormat(dt,mt,!1),ea=pe({itemId:mt,series:this,datum:dt,datumIndex:mt,angleValue:Ni,midAngle:Ei,midCos:Math.cos(Ei),midSin:Math.sin(Ei),startAngle:Ht,endAngle:qt,radius:Si,innerRadius:Math.max(this.radiusScale.convert(0),0),outerRadius:Math.max(this.radiusScale.convert(Si),0),sectorFormat:dn,radiusValue:sn,legendItemValue:en,enabled:j&&O.getItemEnabled({seriesId:l,itemId:mt})},Nn);it.push(ea),qe!=null&&qe.push(et(pe({},ea),{radius:1,innerRadius:Math.max(this.radiusScale.convert(0),0),outerRadius:Math.max(this.radiusScale.convert(1),0)}))}),this.zerosumOuterRing.visible=Ze===0,{itemId:l,nodeData:it,labelData:it,phantomNodeData:qe}}getLabels(l,c,y,I,O,j,H){let{calloutLabel:K,sectorLabel:Z,legendItemKey:te}=this.properties,se=!I||K.enabled?this.properties.calloutLabelKey:void 0,ge=!I||Z.enabled?this.properties.sectorLabelKey:void 0;if(!se&&!ge&&!te)return{};let Se={datum:l,angleKey:this.properties.angleKey,angleName:this.properties.angleName,radiusKey:this.properties.radiusKey,radiusName:this.properties.radiusName,calloutLabelKey:this.properties.calloutLabelKey,calloutLabelName:this.properties.calloutLabelName,sectorLabelKey:this.properties.sectorLabelKey,sectorLabelName:this.properties.sectorLabelName,legendItemKey:this.properties.legendItemKey},Ce={};return se&&y>$e(K.minAngle)&&(Ce.calloutLabel=et(pe({},this.getTextAlignment(c)),{text:this.getLabelText(K,et(pe({},Se),{value:O})),hidden:!1,collisionTextAlign:void 0,collisionOffsetY:0,box:void 0})),ge&&(Ce.sectorLabel={text:this.getLabelText(Z,et(pe({},Se),{value:j}))}),te!=null&&H!=null&&(Ce.legendItem={key:te,text:H}),Ce}getTextAlignment(l){let c=[{textAlign:"center",textBaseline:"bottom"},{textAlign:"left",textBaseline:"middle"},{textAlign:"center",textBaseline:"hanging"},{textAlign:"right",textBaseline:"middle"}],y=rg(l),I=-.75*Math.PI,O=y-I,j=Math.floor(O/(Math.PI/2)),H=ut(j,c.length);return c[H]}getSectorFormat(l,c,y){var rt,dt,mt,yt,Lt,Ht,qt,ri;let{angleKey:I,radiusKey:O,calloutLabelKey:j,sectorLabelKey:H,legendItemKey:K,fills:Z,strokes:te,itemStyler:se}=this.properties,ge=te[c%te.length],{fill:Se,fillOpacity:Ce,stroke:Pe,strokeWidth:Ge,strokeOpacity:We,lineDash:He,lineDashOffset:Ze,cornerRadius:it}=Wi(y&&this.properties.highlightStyle.item,{fill:Z.length>0?Z[c%Z.length]:void 0,stroke:ge,strokeWidth:this.getStrokeWidth(this.properties.strokeWidth),strokeOpacity:this.getOpacity()},this.properties),qe;return se&&(qe=this.cachedDatumCallback(Js(this.getDatumIdFromData(l),y?"highlight":"hide"),()=>se({datum:l,angleKey:I,radiusKey:O,calloutLabelKey:j,sectorLabelKey:H,legendItemKey:K,fill:Se,strokeOpacity:We,stroke:Pe,strokeWidth:Ge,fillOpacity:Ce,lineDash:He,lineDashOffset:Ze,cornerRadius:it,highlighted:y,seriesId:this.id}))),{fill:(rt=qe==null?void 0:qe.fill)!=null?rt:Se,fillOpacity:(dt=qe==null?void 0:qe.fillOpacity)!=null?dt:Ce,stroke:(mt=qe==null?void 0:qe.stroke)!=null?mt:Pe,strokeWidth:(yt=qe==null?void 0:qe.strokeWidth)!=null?yt:Ge,strokeOpacity:(Lt=qe==null?void 0:qe.strokeOpacity)!=null?Lt:We,lineDash:(Ht=qe==null?void 0:qe.lineDash)!=null?Ht:He,lineDashOffset:(qt=qe==null?void 0:qe.lineDashOffset)!=null?qt:Ze,cornerRadius:(ri=qe==null?void 0:qe.cornerRadius)!=null?ri:it}}getOuterRadius(){return Math.max(this.radius*this.properties.outerRadiusRatio+this.properties.outerRadiusOffset,0)}updateRadiusScale(l){var I;let c=[0,this.getOuterRadius()];this.radiusScale.range=c,l&&(this.previousRadiusScale.range=c);let y=O=>et(pe({},O),{innerRadius:Math.max(this.radiusScale.convert(0),0),outerRadius:Math.max(this.radiusScale.convert(O.radius),0)});this.nodeData=this.nodeData.map(y),this.phantomNodeData=(I=this.phantomNodeData)==null?void 0:I.map(y)}getTitleTranslationY(){var O,j;let l=Math.max(0,this.radiusScale.range[1]);if(l===0)return NaN;let y=2+((j=(O=this.properties.title)==null?void 0:O.spacing)!=null?j:0),I=Math.max(0,-l);return-l-y-I}update({seriesRect:l}){let{title:c}=this.properties,y={seriesRectWidth:l==null?void 0:l.width,seriesRectHeight:l==null?void 0:l.height},I=ad(this.nodeDataDependencies,y)!=null;if(I&&(this._nodeDataDependencies=y),this.maybeRefreshNodeData(),this.updateTitleNodes(),this.updateRadiusScale(I),this.contentGroup.translationX=this.centerX,this.contentGroup.translationY=this.centerY,this.highlightGroup.translationX=this.centerX,this.highlightGroup.translationY=this.centerY,this.backgroundGroup.translationX=this.centerX,this.backgroundGroup.translationY=this.centerY,this.labelGroup&&(this.labelGroup.translationX=this.centerX,this.labelGroup.translationY=this.centerY),c){let O=this.getTitleTranslationY();c.node.y=isFinite(O)?O:0;let j=c.node.getBBox();c.node.visible=c.enabled&&isFinite(O)&&!this.bboxIntersectsSurroundingSeries(j)}this.zerosumOuterRing.fillOpacity=0,this.zerosumOuterRing.stroke=this.properties.calloutLabel.color,this.zerosumOuterRing.strokeWidth=1,this.zerosumOuterRing.strokeOpacity=1,this.updateNodeMidPoint(),this.updateSelections(),this.updateNodes(l)}updateTitleNodes(){var y,I;let{oldTitle:l}=this,{title:c}=this.properties;l!==c&&(l&&((y=this.labelGroup)==null||y.removeChild(l.node)),c&&(c.node.textBaseline="bottom",(I=this.labelGroup)==null||I.appendChild(c.node)),this.oldTitle=c)}updateNodeMidPoint(){var c;let l=y=>{let I=y.innerRadius+(y.outerRadius-y.innerRadius)/2;y.midPoint={x:y.midCos*Math.max(0,I),y:y.midSin*Math.max(0,I)}};this.nodeData.forEach(l),(c=this.phantomNodeData)==null||c.forEach(l)}updateSelections(){this.updateGroupSelection()}updateGroupSelection(){var Z;let{itemSelection:l,highlightSelection:c,phantomSelection:y,highlightLabelSelection:I,calloutLabelSelection:O,labelSelection:j}=this,H=this.nodeData.map(te=>et(pe({},te),{sectorFormat:pe({},te.sectorFormat)})),K=(te,se)=>{te.update(se,void 0,ge=>this.getDatumId(ge)),this.ctx.animationManager.isSkipped()&&te.cleanup()};K(l,this.nodeData),K(c,H),K(y,(Z=this.phantomNodeData)!=null?Z:[]),O.update(this.calloutNodeData,te=>{let se=new ns;se.tag=0,se.pointerEvents=1,te.appendChild(se);let ge=new Gr;ge.tag=1,ge.pointerEvents=1,te.appendChild(ge)}),j.update(this.nodeData),I.update(H)}updateNodes(l){let c=this.ctx.highlightManager.getActiveHighlight(),{visible:y}=this;this.backgroundGroup.visible=y,this.contentGroup.visible=y,this.highlightGroup.visible=y&&(c==null?void 0:c.series)===this,this.highlightLabel.visible=y&&(c==null?void 0:c.series)===this,this.labelGroup&&(this.labelGroup.visible=y),this.contentGroup.opacity=this.getOpacity();let I=this.ctx.animationManager.isSkipped(),O=(j,H,K,Z)=>{let te=this.getSectorFormat(H.datum,H.itemId,Z);H.sectorFormat.fill=te.fill,H.sectorFormat.stroke=te.stroke,I&&(j.startAngle=H.startAngle,j.endAngle=H.endAngle,j.innerRadius=H.innerRadius,j.outerRadius=H.outerRadius),(Z||I)&&(j.fill=te.fill,j.stroke=te.stroke),j.strokeWidth=te.strokeWidth,j.fillOpacity=te.fillOpacity,j.strokeOpacity=te.strokeOpacity,j.lineDash=te.lineDash,j.lineDashOffset=te.lineDashOffset,j.cornerRadius=te.cornerRadius,j.fillShadow=this.properties.shadow;let se=Math.max((this.properties.sectorSpacing+(te.stroke!=null?te.strokeWidth:0))/2,0);j.inset=se,j.lineJoin=this.properties.sectorSpacing>=0||se>0?"miter":"round"};this.itemSelection.each((j,H,K)=>O(j,H,K,!1)),this.highlightSelection.each((j,H,K)=>{O(j,H,K,!0),j.visible=H.itemId===(c==null?void 0:c.itemId)}),this.phantomSelection.each((j,H,K)=>O(j,H,K,!1)),this.updateCalloutLineNodes(),this.updateCalloutLabelNodes(l),this.updateSectorLabelNodes(),this.updateZerosumRings(),this.animationState.transition("update")}updateCalloutLineNodes(){var j;let{calloutLine:l}=this.properties,c=l.length,y=l.strokeWidth,I=(j=l.colors)!=null?j:this.properties.strokes,{offset:O}=this.properties.calloutLabel;this.calloutLabelSelection.selectByTag(0).forEach((H,K)=>{var ge;let Z=H.datum,{calloutLabel:te,outerRadius:se}=Z;if(te!=null&&te.text&&!te.hidden&&se!==0){H.visible=!0,H.strokeWidth=y,H.stroke=I[K%I.length],H.fill=void 0;let Se=Z.midCos*se,Ce=Z.midSin*se,Pe=Z.midCos*(se+c),Ge=Z.midSin*(se+c);if(((ge=te.collisionTextAlign)!=null?ge:te.collisionOffsetY!==0)&&te.box!=null){let He=te.box,Ze=Pe,it=Ge;Pe<He.x?Ze=He.x:Pe>He.x+He.width&&(Ze=He.x+He.width),Ge<He.y?it=He.y:Ge>He.y+He.height&&(it=He.y+He.height);let qe=Ze-Pe,rt=it-Ge,dt=Math.sqrt(Math.pow(qe,2)+Math.pow(rt,2)),mt=dt-O;mt>0&&(Pe=Pe+qe*mt/dt,Ge=Ge+rt*mt/dt)}H.x1=Se,H.y1=Ce,H.x2=Pe,H.y2=Ge}else H.visible=!1})}getLabelOverflow(l,c,y){let I=-this.centerX,O=I+y.width,j=-this.centerY,H=j+y.height,K=1,Z=1;c.x+K<I?Z=(c.x+c.width-I)/c.width:c.x+c.width-K>O&&(Z=(O-c.x)/c.width);let te=c.y+K<j||c.y+c.height-K>H,se=Z===1?l.length:Math.floor(l.length*Z)-1,ge=this.bboxIntersectsSurroundingSeries(c);return{textLength:se,hasVerticalOverflow:te,hasSurroundingSeriesOverflow:ge}}bboxIntersectsSurroundingSeries(l){let{surroundingRadius:c}=this;if(c==null)return!1;let y=[{x:l.x,y:l.y},{x:l.x+l.width,y:l.y},{x:l.x+l.width,y:l.y+l.height},{x:l.x,y:l.y+l.height}],I=c**2;return y.some(O=>O.x**2+O.y**2>I)}computeCalloutLabelCollisionOffsets(){let{radiusScale:l}=this,{calloutLabel:c,calloutLine:y}=this.properties,{offset:I,minSpacing:O}=c,j=l.convert(0),H=He=>!He.calloutLabel||He.outerRadius===0,K=this.calloutNodeData,Z=K.filter(He=>!H(He));if(Z.forEach(He=>{let Ze=He.calloutLabel;Ze!=null&&(Ze.hidden=!1,Ze.collisionTextAlign=void 0,Ze.collisionOffsetY=0)}),Z.length<=1)return;let te=Z.filter(He=>He.midCos<0).sort((He,Ze)=>He.midSin-Ze.midSin),se=Z.filter(He=>He.midCos>=0).sort((He,Ze)=>He.midSin-Ze.midSin),ge=Z.filter(He=>{var Ze;return He.midSin<0&&((Ze=He.calloutLabel)==null?void 0:Ze.textAlign)==="center"}).sort((He,Ze)=>He.midCos-Ze.midCos),Se=Z.filter(He=>{var Ze;return He.midSin>=0&&((Ze=He.calloutLabel)==null?void 0:Ze.textAlign)==="center"}).sort((He,Ze)=>He.midCos-Ze.midCos),Ce=He=>{var yt;let Ze=He.calloutLabel;if(Ze==null)return ft.zero.clone();let it=He.outerRadius+y.length+I,qe=He.midCos*it,rt=He.midSin*it+Ze.collisionOffsetY,dt=(yt=Ze.collisionTextAlign)!=null?yt:Ze.textAlign,mt=Ze.textBaseline;return Gr.computeBBox(Ze.text,qe,rt,{font:this.properties.calloutLabel,textAlign:dt,textBaseline:mt})},Pe=(He,Ze,it)=>{let qe=Ce(He).grow(O/2),rt=Ce(Ze).grow(O/2);if(qe.x<rt.x+rt.width&&qe.x+qe.width>rt.x&&(it==="to-top"?qe.y<rt.y+rt.height:qe.y+qe.height>rt.y)){let mt=it==="to-top"?qe.y-rt.y-rt.height:qe.y+qe.height-rt.y;Ze.calloutLabel.collisionOffsetY=mt}},Ge=He=>{let Ze=He.slice().sort((qe,rt)=>Math.abs(qe.midSin)-Math.abs(rt.midSin))[0],it=He.indexOf(Ze);for(let qe=it-1;qe>=0;qe--){let rt=He[qe+1],dt=He[qe];Pe(rt,dt,"to-top")}for(let qe=it+1;qe<He.length;qe++){let rt=He[qe-1],dt=He[qe];Pe(rt,dt,"to-bottom")}},We=He=>{let Ze=Z.some(yt=>yt.calloutLabel.collisionOffsetY!==0),it=He.map(yt=>Ce(yt)),qe=it.map(yt=>yt.clone().grow(O/2)),rt=!1;for(let yt=0;yt<qe.length&&!rt;yt++){let Lt=qe[yt];for(let Ht=yt+1;Ht<He.length;Ht++){let qt=qe[Ht];if(Lt.collidesBBox(qt)){rt=!0;break}}}let dt=K.map(yt=>{let{startAngle:Lt,endAngle:Ht,outerRadius:qt}=yt;return{startAngle:Lt,endAngle:Ht,innerRadius:j,outerRadius:qt}}),mt=it.some(yt=>dt.some(Lt=>jS(yt,Lt)));!rt&&!Ze&&!mt||He.filter(yt=>yt.calloutLabel.textAlign==="center").forEach(yt=>{let Lt=yt.calloutLabel;yt.midCos<0?Lt.collisionTextAlign="right":yt.midCos>0?Lt.collisionTextAlign="left":Lt.collisionTextAlign="center"})};Ge(te),Ge(se),We(ge),We(Se)}updateCalloutLabelNodes(l){let{radiusScale:c}=this,{calloutLabel:y,calloutLine:I}=this.properties,O=I.length,{offset:j,color:H}=y,K=new Gr;this.calloutLabelSelection.selectByTag(1).forEach(Z=>{var qe;let{datum:te}=Z,se=te.calloutLabel,ge=c.convert(te.radius),Se=Math.max(0,ge);if(!(se!=null&&se.text)||Se===0||se.hidden){Z.visible=!1;return}let Ce=Se+O+j,Pe=te.midCos*Ce,Ge=te.midSin*Ce+se.collisionOffsetY,We={textAlign:(qe=se.collisionTextAlign)!=null?qe:se.textAlign,textBaseline:se.textBaseline};K.text=se.text,K.x=Pe,K.y=Ge,K.setFont(this.properties.calloutLabel),K.setAlign(We);let He=K.getBBox(),Ze=se.text,it=!0;if(y.avoidCollisions){let{textLength:rt,hasVerticalOverflow:dt}=this.getLabelOverflow(se.text,He,l);Ze=se.text.length===rt?se.text:`${se.text.substring(0,rt)}\u2026`,it=!dt}Z.text=Ze,Z.x=Pe,Z.y=Ge,Z.setFont(this.properties.calloutLabel),Z.setAlign(We),Z.fill=H,Z.visible=it})}computeLabelsBBox(l,c){let{calloutLabel:y,calloutLine:I}=this.properties,O=I.length,{offset:j,maxCollisionOffset:H,minSpacing:K}=y;if(!y.avoidCollisions)return null;this.maybeRefreshNodeData(),this.updateRadiusScale(!1),this.computeCalloutLabelCollisionOffsets();let Z=[],te=new Gr,se,{title:ge}=this.properties;if(ge!=null&&ge.text&&ge.enabled){let Se=this.getTitleTranslationY();isFinite(Se)&&(te.text=ge.text,te.x=0,te.y=Se,te.setFont(ge),te.setAlign({textBaseline:"bottom",textAlign:"center"}),se=te.getBBox(),Z.push(se))}return this.calloutNodeData.forEach(Se=>{var Ze;let Ce=Se.calloutLabel;if(!Ce||Se.outerRadius===0)return null;let Pe=Se.outerRadius+O+j,Ge=Se.midCos*Pe,We=Se.midSin*Pe+Ce.collisionOffsetY;te.text=Ce.text,te.x=Ge,te.y=We,te.setFont(this.properties.calloutLabel),te.setAlign({textAlign:(Ze=Ce.collisionTextAlign)!=null?Ze:Ce.textAlign,textBaseline:Ce.textBaseline});let He=te.getBBox();if(Ce.box=He,Math.abs(Ce.collisionOffsetY)>H){Ce.hidden=!0;return}if(se){let it=-this.centerY,qe=new ft(se.x-K,it,se.width+2*K,se.y+se.height+K-it);if(He.collidesBBox(qe)){Ce.hidden=!0;return}}if(l.hideWhenNecessary){let{textLength:it,hasVerticalOverflow:qe,hasSurroundingSeriesOverflow:rt}=this.getLabelOverflow(Ce.text,He,c),dt=Ce.text.length>2&&it<2;if(qe||dt||rt){Ce.hidden=!0;return}}Ce.hidden=!1,Z.push(He)}),Z.length===0?null:ft.merge(Z)}updateSectorLabelNodes(){var Se;let{radiusScale:l}=this,c=l.convert(0),{fontSize:y,fontStyle:I,fontWeight:O,fontFamily:j,positionOffset:H,positionRatio:K,color:Z}=this.properties.sectorLabel,te=c>0,se=((Se=this.ctx.legendManager.getData(this.id))==null?void 0:Se.filter(Ce=>Ce.enabled).length)===1,ge=(Ce,Pe)=>{let{sectorLabel:Ge,outerRadius:We,startAngle:He,endAngle:Ze}=Pe,it=!1;if(Ge&&We!==0){let qe=c*(1-K)+We*K+H;Ce.fill=Z,Ce.fontStyle=I,Ce.fontWeight=O,Ce.fontSize=y,Ce.fontFamily=j,Ce.text=Ge.text,!te&&se?(Ce.x=0,Ce.y=0):(Ce.x=Pe.midCos*qe,Ce.y=Pe.midSin*qe),Ce.textAlign="center",Ce.textBaseline="middle";let dt=Ce.getBBox(),mt=[[dt.x,dt.y],[dt.x+dt.width,dt.y],[dt.x+dt.width,dt.y+dt.height],[dt.x,dt.y+dt.height]],yt={startAngle:He,endAngle:Ze,innerRadius:c,outerRadius:We};mt.every(([Lt,Ht])=>Dk(Lt,Ht,yt))&&(it=!0)}Ce.visible=it};this.labelSelection.each(ge),this.highlightLabelSelection.each(ge)}updateZerosumRings(){this.zerosumOuterRing.size=this.getOuterRadius()*2}pickNodeClosestDatum(l){return aC(this,l)}getTooltipContent(l){var yt,Lt,Ht;let{id:c,dataModel:y,processedData:I,properties:O}=this,{legendItemKey:j,calloutLabelKey:H,calloutLabelName:K,sectorLabelKey:Z,sectorLabelName:te,angleKey:se,angleName:ge,radiusKey:Se,radiusName:Ce,tooltip:Pe}=O,Ge=this.properties.title.text;if(!y||!I||I.rawData.length===0)return;let{datumIndex:We}=l,He=I.rawData[We],{angleRawValues:Ze,legendItemValues:it,calloutLabelValues:qe,sectorLabelValues:rt}=this.getProcessedDataValues(y,I),dt=Ze[We],mt=(Ht=(Lt=(yt=it==null?void 0:it[We])!=null?yt:H===se||qe==null?void 0:qe[We])!=null?Lt:Z===se||rt==null?void 0:rt[We])!=null?Ht:ge;return Pe.formatTooltip({title:Ge,symbol:this.legendItemSymbol(We),data:[{label:mt,fallbackLabel:se,value:String(dt)}]},pe({seriesId:c,datum:He,title:ge,legendItemKey:j,calloutLabelKey:H,calloutLabelName:K,sectorLabelKey:Z,sectorLabelName:te,angleKey:se,angleName:ge,radiusKey:Se,radiusName:Ce},this.getSectorFormat(He,We,!1)))}legendItemSymbol(l){var I;let c=(I=this.processedData)==null?void 0:I.rawData[l],y=this.getSectorFormat(c,l,!1);return{marker:{fill:y.fill,stroke:y.stroke,fillOpacity:this.properties.fillOpacity,strokeOpacity:this.properties.strokeOpacity,strokeWidth:this.properties.strokeWidth}}}getLegendData(l){var Ze,it,qe,rt,dt;let{id:c,visible:y,processedData:I,dataModel:O,ctx:{legendManager:j}}=this;if(!O||!I||l!=="category")return[];let{angleKey:H,calloutLabelKey:K,sectorLabelKey:Z,legendItemKey:te,showInLegend:se}=this.properties;if(!te&&(!K||K===H)&&(!Z||Z===H))return[];let{calloutLabelValues:ge,sectorLabelValues:Se,legendItemValues:Ce,angleRawValues:Pe}=this.getProcessedDataValues(O,I),Ge=((Ze=this.properties.title)==null?void 0:Ze.showInLegend)&&this.properties.title.text,We=[],He=this.properties.hideZeroValueSectorsInLegend;for(let mt=0;mt<I.rawData.length;mt++){let yt=I.rawData[mt],Lt=Pe[mt];if(He&&Lt===0)continue;let Ht=[];Ge&&Ht.push(Ge);let qt=this.getLabels(yt,2*Math.PI,2*Math.PI,!1,ge==null?void 0:ge[mt],Se==null?void 0:Se[mt],Ce==null?void 0:Ce[mt]);te&&qt.legendItem!==void 0?Ht.push(qt.legendItem.text):K&&K!==H&&((it=qt.calloutLabel)==null?void 0:it.text)!==void 0?Ht.push((qe=qt.calloutLabel)==null?void 0:qe.text):Z&&Z!==H&&((rt=qt.sectorLabel)==null?void 0:rt.text)!==void 0&&Ht.push((dt=qt.sectorLabel)==null?void 0:dt.text),Ht.length!==0&&We.push({legendType:"category",id:c,datum:yt,itemId:mt,seriesId:c,enabled:y&&j.getItemEnabled({seriesId:c,itemId:mt}),label:{text:Ht.join(" - ")},symbol:this.legendItemSymbol(mt),legendItemName:te!=null?yt[te]:void 0,hideInLegend:!se})}return We}setLegendState(l){let{id:c,ctx:{legendManager:y,updateService:I}}=this;l.forEach((O,j)=>y.toggleItem({enabled:O,seriesId:c,itemId:j})),y.update(),I.update(4)}animateEmptyUpdateReady(l){let{animationManager:c}=this.ctx,y=bd(!0,this.properties.rotation,this.radiusScale,this.previousRadiusScale);yi(this.id,"nodes",c,[this.itemSelection,this.highlightSelection,this.phantomSelection],y.nodes,(I,O)=>this.getDatumId(O)),Ma(this,"callout",c,this.calloutLabelSelection),Ma(this,"sector",c,this.labelSelection),Ma(this,"highlight",c,this.highlightLabelSelection),this.previousRadiusScale.range=this.radiusScale.range}animateWaitingUpdateReady(){var Se,Ce,Pe,Ge,We,He,Ze;let{itemSelection:l,highlightSelection:c,phantomSelection:y,processedData:I,radiusScale:O,previousRadiusScale:j}=this,{animationManager:H}=this.ctx,K=(Ce=(Se=I==null?void 0:I.reduced)==null?void 0:Se.diff)==null?void 0:Ce[this.id];this.ctx.animationManager.stopByAnimationGroupId(this.id);let Z=((Pe=K==null?void 0:K.moved.size)!=null?Pe:0)===0,te=((Ge=I==null?void 0:I.defs.keys.length)!=null?Ge:0)>0,se=(Ze=(He=(We=I==null?void 0:I.reduced)==null?void 0:We.animationValidation)==null?void 0:He.uniqueKeys)!=null?Ze:!0;(!Z||!te||!se)&&this.ctx.animationManager.skipCurrentBatch();let ge=bd(!1,this.properties.rotation,O,j);yi(this.id,"nodes",H,[l,c,y],ge.nodes,(it,qe)=>this.getDatumId(qe),K),Ma(this,"callout",this.ctx.animationManager,this.calloutLabelSelection),Ma(this,"sector",this.ctx.animationManager,this.labelSelection),Ma(this,"highlight",this.ctx.animationManager,this.highlightLabelSelection),this.previousRadiusScale.range=this.radiusScale.range}animateClearingUpdateEmpty(){let{itemSelection:l,highlightSelection:c,phantomSelection:y,radiusScale:I,previousRadiusScale:O}=this,{animationManager:j}=this.ctx,H=bd(!1,this.properties.rotation,I,O);yi(this.id,"nodes",j,[l,c,y],H.nodes,(K,Z)=>this.getDatumId(Z)),vf(this,"callout",this.ctx.animationManager,this.calloutLabelSelection),vf(this,"sector",this.ctx.animationManager,this.labelSelection),vf(this,"highlight",this.ctx.animationManager,this.highlightLabelSelection),this.previousRadiusScale.range=this.radiusScale.range}getDatumIdFromData(l){var O,j,H;let{calloutLabelKey:c,sectorLabelKey:y,legendItemKey:I}=this.properties;if((H=(j=(O=this.processedData)==null?void 0:O.reduced)==null?void 0:j.animationValidation)!=null&&H.uniqueKeys){if(I)return l[I];if(c)return l[c];if(y)return l[y]}}getDatumId(l){let{datumIndex:c}=l,y=this.getDatumIdFromData(l.datum);return y!=null?String(y):`${c}`}};P1.className="PieSeries",P1.type="pie";var $T={type:"series",optionsKey:"series[]",packageType:"community",chartTypes:["polar"],identifier:"pie",moduleFactory:l=>new P1(l),tooltipDefaults:{range:"exact"},themeTemplate:KS,paletteFactory:T1};function L1(){ku.register(yS,Bh,pL,AL,kf,DL,Mk,qT,IL,$T,KT);for(let l of[lf,vp,jv,kg,cf])Zs.register(l.type,{moduleFactory:c=>new l(c),hidden:l===kg})}function QT(){for(let l of ku.modules){if(l.packageType==="enterprise"&&!TD(l)&&Pi.errorOnce("Unexpected enterprise module registered: "+l.identifier),l.type==="root"&&l.themeTemplate)for(let c of l.chartTypes)Y0.set(c,l.themeTemplate);if(l.type==="series"){if(l.chartTypes.length>1)throw new Error(`AG Charts - Module definition error: ${l.identifier}`);Wr.register(l.identifier,l)}if(l.type==="series-option"&&l.themeTemplate)for(let c of l.seriesTypes)Wr.setThemeTemplate(c,l.themeTemplate);if(l.type==="axis-option"&&l.themeTemplate)for(let c of l.axisTypes){let y=Zs.getThemeTemplate(c),I=Wi(l.themeTemplate,y);Zs.setThemeTemplate(c,I)}l.type==="axis"&&Zs.register(l.identifier,l),l.type==="legend"&&RD.register(l.identifier,l)}if(ku.hasEnterpriseModules()){let l=Ph();l.length>0&&Pi.errorOnce("Enterprise modules expected but not registered: ",l)}}function Ik(l){return l.type==="sankey"||l.type==="chord"}var Rl=class extends Ud{getChartType(){return"flow-proportion"}async updateData(){await super.updateData();let{nodes:l}=this.getOptions();this.series.forEach(c=>{Ik(c)&&c.setChartNodes(l)})}performLayout(l){let{seriesRoot:c,annotationRoot:y}=this,{layoutBox:I}=l;I.shrink(this.seriesArea.padding.toJson());let O=I.clone();this.seriesRect=O,this.animationRect=O,c.visible=this.series.some(j=>j.visible);for(let j of[c,y])j.translationX=Math.floor(O.x),j.translationY=Math.floor(O.y);this.ctx.layoutManager.emitLayoutComplete(l,{series:{visible:c.visible,rect:O,paddedRect:O}})}};Rl.className="FlowProportionChart",Rl.type="flow-proportion";var Gu=class extends dg{constructor(){super(...arguments),this.shape="polygon",this.innerRadiusRatio=0,this.defaultTickMinSpacing=20}computeLabelsBBox(l,c){return null}computeRange(){}getAxisLinePoints(){}};D([Je(wa(["polygon","circle"],"a polar axis shape"))],Gu.prototype,"shape",2),D([Je(Ia)],Gu.prototype,"innerRadiusRatio",2);function Tk(l){return l.type==="radial-gauge"}function Ef(l){return l.type==="linear-gauge"}var qS=class extends Ud{getChartType(){return"gauge"}updateRadialGauge(l,c){let y=this.axes.find(Lt=>Lt.direction==="x");if(!(y instanceof Gu))return;y.computeRange();let I=l.x,O=I+l.width,j=l.y,H=j+l.height,[K,Z]=y.range,se=_n(Z-K)>Math.PI,ge=se||ga(1.5*Math.PI,K,Z),Se=se||ga(0*Math.PI,K,Z),Ce=se||ga(.5*Math.PI,K,Z),Pe=se||ga(1*Math.PI,K,Z),Ge;Pe&&!Se?Ge="right":!Pe&&Se?Ge="left":Ge="center";let We;ge&&!Ce?We="bottom":!ge&&Ce?We="top":We="middle";let He=Ak({startAngle:K,endAngle:Z,innerRadius:0,outerRadius:.5}),Ze=-(He.x+He.width/2)*2,it=-(He.y+He.height/2)*2,{minimumRadius:qe=0,maximumRadius:rt}=c,dt=Math.max(.5*Math.min(l.width/He.width,l.height/He.height),0),mt=Math.min(rt!=null?rt:1/0,Math.max(dt,qe!=null?qe:0)),yt=8;for(let Lt=0;Lt<yt;Lt+=1){let Ht=mt<=qe||Lt===yt-1,qt=l.x+l.width/2+Ze*mt,ri=l.y+l.height/2+it*mt;y.translation.x=qt,y.translation.y=ri,y.gridLength=mt,y.calculateLayout();let Ei=y.computeLabelsBBox({hideWhenNecessary:Ht},l);if(Ht)break;let Ni=0;if(Ei!=null){let Vi=Ei.x+qt,Si=Vi+Ei.width,sn=Ei.y+ri,en=sn+Ei.height;Ni=Math.max(j-sn,I-Vi,en-H,Si-O,0)}if(Ni>0)mt=Math.max(mt-Ni,qe);else break}y.translation.x=l.x+l.width/2+Ze*mt,y.translation.y=l.y+l.height/2+it*mt,c.centerX=l.width/2+Ze*mt,c.centerY=l.height/2+it*mt,c.radius=mt,c.textAlign=Ge,c.verticalAlign=We,(mt===0||mt>dt)&&Pi.warnOnce("There was insufficient space to display the Radial Gauge.")}updateLinearGauge(l,c){let y=this.axes.find(We=>We.direction==="x"),I=this.axes.find(We=>We.direction==="y");if(!(y instanceof Da)||!(I instanceof Da))return l;let{horizontal:O,thickness:j}=c,H=0,K=0,Z=new pd;Z.domain=[0,100],Z.range=O?y.range:I.range;let te=Z.ticks();O?H=c.computeInset("x",te):K=c.computeInset("y",te);let se=l.width-Math.abs(H),ge=l.height-Math.abs(K),Se=Math.max(O?se:j,0),Ce=Math.max(O?j:ge,0),Pe=l.x+(se-Se)/2+Math.max(H,0),Ge=l.y+(ge-Ce)/2-Math.min(K,0);y.range=[0,Se],y.gridLength=Se,y.calculateLayout(),y.translation.x=Pe,y.translation.y=Ge+(y.position==="bottom"?j:0),I.range=[0,Ce],I.gridLength=Ce,I.calculateLayout(),I.translation.x=Pe+(I.position==="right"?j:0),I.translation.y=Ge,c.originX=Pe-l.x,c.originY=Ge-l.y,(Se===0||Ce===0)&&Pi.warnOnce("There was insufficient space to display the Linear Gauge.")}performLayout(l){let{seriesRoot:c,annotationRoot:y,series:I,seriesArea:O}=this,{layoutBox:j}=l,H=j.clone();j.shrink(O.padding.toJson());let K=this.series[0];Tk(K)?this.updateRadialGauge(j,K):Ef(K)&&this.updateLinearGauge(j,K),this.axes.forEach(Z=>Z.update()),this.seriesRect=H.clone().translate(H.x-j.x,H.y-j.y),this.animationRect=j,c.visible=I.some(Z=>Z.visible);for(let Z of[c,y])Z.translationX=Math.floor(j.x),Z.translationY=Math.floor(j.y);this.ctx.layoutManager.emitLayoutComplete(l,{series:{visible:c.visible,rect:H,paddedRect:j}})}getAriaLabel(){let l=[],c=this.getCaptionText();c.length!==0&&l.push(c);for(let I of this.series)l.push(I.getCaptionText());let y=l.join(". ");return this.ctx.localeManager.t("ariaAnnounceGaugeChart",{caption:y})}};qS.className="GaugeChart",qS.type="gauge";var If=class extends Ud{constructor(l,c){super(l,c)}getChartType(){return"hierarchy"}performLayout(l){let{seriesRoot:c,annotationRoot:y}=this,{layoutBox:I}=l;I.shrink(this.seriesArea.padding.toJson());let O=I.clone();this.seriesRect=O,this.animationRect=O;for(let j of[c,y])j.translationX=Math.floor(O.x),j.translationY=Math.floor(O.y);c.visible=this.series[0].visible,c.setClipRect(O.clone()),this.ctx.layoutManager.emitLayoutComplete(l,{series:{visible:!0,rect:O,paddedRect:O}})}getAriaLabel(){let l=this.getCaptionText();return this.ctx.localeManager.t("ariaAnnounceHierarchyChart",{caption:l})}};If.className="HierarchyChart",If.type="hierarchy";var YS=class extends Ud{constructor(l,c){super(l,c),this.padding=new yp(40),this.ctx.axisManager.axisGroup.zIndex=5}getChartType(){return"polar"}async performLayout(l){let{layoutBox:c}=l;c.shrink(this.seriesArea.padding.toJson());let y=c.clone();this.seriesRect=y,this.animationRect=y,this.seriesRoot.translationX=y.x,this.seriesRoot.translationY=y.y,await this.computeCircle(y),this.axes.forEach(I=>I.update()),this.ctx.layoutManager.emitLayoutComplete(l,{series:{visible:!0,rect:y,paddedRect:y}})}updateAxes(l,c,y,I){var Z;let O=this.axes.find(te=>te.direction==="x"),j=this.axes.find(te=>te.direction==="y");if(!(O instanceof Gu)||!(j instanceof Gu))return;let H=O.scale,K=j.innerRadiusRatio;O.innerRadiusRatio=K,O.computeRange(),O.gridLength=I,j.gridAngles=(Z=H.ticks)==null?void 0:Z.call(H).map(te=>H.convert(te)),j.gridRange=O.range,j.range=[I,I*K],[O,j].forEach(te=>{te.translation.x=l.x+c,te.translation.y=l.y+y,te.calculateLayout()})}async computeCircle(l){let c=this.series.filter(Rk),y=this.axes.filter(JT),I=(te,se,ge)=>{this.updateAxes(l,te,se,ge),c.forEach(Ce=>{Ce.centerX=te,Ce.centerY=se,Ce.radius=ge});let Se=c.filter(Ce=>Ce.type==="donut"||Ce.type==="pie");if(Se.length>1){let Ce=Se.map(Pe=>{let Ge=Pe.getInnerRadius();return{series:Pe,innerRadius:Ge}}).sort((Pe,Ge)=>Pe.innerRadius-Ge.innerRadius);Ce.at(-1).series.surroundingRadius=void 0;for(let Pe=0;Pe<Ce.length-1;Pe++)Ce[Pe].series.surroundingRadius=Ce[Pe+1].innerRadius}},O=l.width/2,j=l.height/2,H=Math.max(0,Math.min(l.width,l.height)/2),K=H;I(O,j,K);let Z=async({hideWhenNecessary:te=!1}={})=>{let se=[];for(let Ce of oe(y,c)){let Pe=await Ce.computeLabelsBBox({hideWhenNecessary:te},l);Pe&&se.push(Pe)}if(se.length===0){I(O,j,H);return}let ge=ft.merge(se),Se=this.refineCircle(ge,K,l);I(Se.centerX,Se.centerY,Se.radius),K=Se.radius};await Z(),await Z(),await Z(),await Z({hideWhenNecessary:!0}),await Z({hideWhenNecessary:!0});for(let te of oe(y,c))await te.computeLabelsBBox({hideWhenNecessary:!0},l);return{radius:K,centerX:O,centerY:j}}refineCircle(l,c,y){let O=-c,j=-c,H=c,K=c,Z=Math.max(0,O-l.x),te=Math.max(0,j-l.y),se=Math.max(0,l.x+l.width-H),ge=Math.max(0,l.y+l.height-K);Z=se=Math.max(Z,se),te=ge=Math.max(te,ge);let Se=y.width-Z-se,Ce=y.height-te-ge,Pe=Math.min(Se,Ce)/2,Ge=.5*y.width/2,We=.5*y.height/2,He=Math.min(Ge,We);if(Pe<He){Pe=He;let qe=Z+se,rt=te+ge;if(2*Pe+rt>y.height){let dt=y.height-2*Pe;Math.min(te,ge)*2>dt?(te=dt/2,ge=dt/2):te>ge?te=dt-ge:ge=dt-te}if(2*Pe+qe>y.width){let dt=y.width-2*Pe;Math.min(Z,se)*2>dt?(Z=dt/2,se=dt/2):Z>se?Z=dt-se:se=dt-Z}}let Ze=Z+2*Pe+se,it=te+2*Pe+ge;return{centerX:(y.width-Ze)/2+Z+Pe,centerY:(y.height-it)/2+te+Pe,radius:Pe}}};YS.className="PolarChart",YS.type="polar";function Rk(l){return l instanceof Kp}function JT(l){return l instanceof Gu}var XS=class extends Ud{constructor(l,c){super(l,c)}getChartType(){return"standalone"}performLayout(l){let{seriesRoot:c,annotationRoot:y}=this,{layoutBox:I}=l,O=I.clone();I.shrink(this.seriesArea.padding.toJson()),this.seriesRect=I,this.animationRect=I;for(let j of[c,y])j.translationX=Math.floor(I.x),j.translationY=Math.floor(I.y);c.visible=this.series[0].visible,this.ctx.layoutManager.emitLayoutComplete(l,{series:{visible:!0,rect:O,paddedRect:I}})}getAriaLabel(){let l=this.getCaptionText();return this.ctx.localeManager.t("ariaAnnounceHierarchyChart",{caption:l})}};XS.className="StandaloneChart",XS.type="standalone";var oC=Math.PI/180,ZS=l=>l*oC,$S=l=>-Math.log(Math.tan(Math.PI*.25+l*oC*.5)),Pk=l=>l/oC,O1=l=>(Math.atan(Math.exp(-l))-Math.PI*.25)/(oC*.5),Lk=class iV{constructor(c,y){this.domain=c,this.range=y,this.type="mercator",this.bounds=iV.bounds(c)}static bounds(c){let[[y,I],[O,j]]=c,H=ZS(y),K=$S(I),Z=ZS(O),te=$S(j);return new ft(Math.min(H,Z),Math.min(K,te),Math.abs(Z-H),Math.abs(te-K))}static fixedScale(){return new iV([[Pk(0),O1(0)],[Pk(1),O1(1)]],[[0,0],[1,1]])}convert([c,y]){let[[I,O],[j,H]]=this.range,K=(j-I)/this.bounds.width,Z=(H-O)/this.bounds.height;return[(ZS(c)-this.bounds.x)*K+I,($S(y)-this.bounds.y)*Z+O]}invert([c,y]){let[[I,O],[j,H]]=this.range,K=(j-I)/this.bounds.width,Z=(H-O)/this.bounds.height;return[Pk((c-I)/K+this.bounds.x),O1((y-O)/Z+this.bounds.y)]}};function Ok(l){return l.type==="map-shape"||l.type==="map-line"||l.type==="map-marker"||l.type==="map-shape-background"||l.type==="map-line-background"}var Jd=class extends Ud{constructor(l,c){super(l,c),this.xAxis=new lf(this.getModuleContext()),this.xAxis.position="bottom",this.yAxis=new lf(this.getModuleContext()),this.yAxis.position="left",this.ctx.zoomManager.updateAxes([this.xAxis,this.yAxis])}getChartType(){return"topology"}async updateData(){await super.updateData();let{topology:l}=this.getOptions();this.series.forEach(c=>{Ok(c)&&c.setChartTopology(l)})}performLayout(l){let{seriesRoot:c,annotationRoot:y}=this,{layoutBox:I}=l;I.shrink(this.seriesArea.padding.toJson());let O=I.clone();this.seriesRect=O,this.animationRect=O;let j=this.series.filter(Ok),H=j.reduce((te,se)=>{if(!se.visible)return te;let ge=se.topologyBounds;return ge==null?te:te==null?ge:(te.merge(ge),te)},void 0),K;if(H!=null){let{lon0:te,lat0:se,lon1:ge,lat1:Se}=H,Ce=[[te,se],[ge,Se]],Pe=Lk.bounds(Ce),{width:Ge,height:We}=O,He=Math.min(Ge/Pe.width,We/Pe.height),Ze=Pe.width*He,it=Pe.height*He,qe=(Ge-Ze)/2,rt=(We-it)/2,dt=qe,mt=rt,yt=qe+Ze,Lt=rt+it,Ht=this.ctx.zoomManager.getAxisZoom(this.xAxis.id),qt=this.ctx.zoomManager.getAxisZoom(this.yAxis.id),ri=(yt-dt)/(Ht.max-Ht.min),Ei=dt-ri*Ht.min,Ni=(Lt-mt)/(1-qt.min-(1-qt.max)),Vi=mt-Ni*(1-qt.max);K=new Lk(Ce,[[Ei,Vi],[Ei+ri,Vi+Ni]])}j.forEach(te=>{te.scale=K});let Z=this.series.some(te=>te.visible);c.visible=Z;for(let te of[c,y])te.translationX=Math.floor(O.x),te.translationY=Math.floor(O.y),te.setClipRect(O.clone());this.ctx.layoutManager.emitLayoutComplete(l,{series:{visible:Z,rect:O,paddedRect:O}})}};Jd.className="TopologyChart",Jd.type="topology";var fn={isEnterprise:!1},Cd=Symbol("IGNORED_PROP");function Pl(l,c){let y={};for(let[I,O]of Object.entries(c))O!==Cd&&Object.hasOwn(l,I)&&(y[I]=O);return y}function TL(l){return l.type==="radial-gauge"}function Xp(l){return l.type==="linear-gauge"}function eR(l){let ro=l,{animation:c,background:y,container:I,contextMenu:O,footnote:j,height:H,listeners:K,locale:Z,minHeight:te,minWidth:se,padding:ge,subtitle:Se,theme:Ce,title:Pe,width:Ge,type:We,cursor:He,nodeClickRange:Ze,tooltip:it,value:qe,scale:rt={},startAngle:dt,endAngle:mt,highlightStyle:yt,segmentation:Lt,bar:Ht,needle:qt,targets:ri,outerRadius:Ei,innerRadius:Ni,outerRadiusRatio:Vi,innerRadiusRatio:Si,cornerRadius:sn,cornerMode:en,label:Nn,secondaryLabel:dn,spacing:ea}=ro,Sn=ji(ro,["animation","background","container","contextMenu","footnote","height","listeners","locale","minHeight","minWidth","padding","subtitle","theme","title","width","type","cursor","nodeClickRange","tooltip","value","scale","startAngle","endAngle","highlightStyle","segmentation","bar","needle","targets","outerRadius","innerRadius","outerRadiusRatio","innerRadiusRatio","cornerRadius","cornerMode","label","secondaryLabel","spacing"]),{fills:pn,fillMode:ta,fill:wo,fillOpacity:Ca,stroke:Bn,strokeWidth:ya,strokeOpacity:wn,lineDash:$i,lineDashOffset:kn,min:Zn=0,max:Qi=1,interval:vn={},label:Xi={}}=rt,Kn=Pl(l,{animation:c,background:y,container:I,contextMenu:O,footnote:j,height:H,listeners:K,locale:Z,minHeight:te,minWidth:se,padding:ge,subtitle:Se,theme:Ce,title:Pe,width:Ge}),cn=Pl(rt,{fills:pn,fillMode:ta,fill:wo,fillOpacity:Ca,stroke:Bn,strokeWidth:ya,strokeOpacity:wn,lineDash:$i,lineDashOffset:kn}),xo=Pl(l,pe({startAngle:Cd,endAngle:Cd,needle:qt!=null?pe({enabled:!0},qt):Cd,scale:cn,type:We,cursor:He,nodeClickRange:Ze,listeners:K,tooltip:it,value:qe,highlightStyle:yt,segmentation:Lt,bar:Ht,targets:ri,outerRadius:Ei,innerRadius:Ni,outerRadiusRatio:Vi,innerRadiusRatio:Si,cornerRadius:sn,cornerMode:en,label:Nn,secondaryLabel:dn,spacing:ea},Sn)),Ro=[{type:"angle-number",min:Zn,max:Qi,startAngle:dt,endAngle:mt,interval:vn!=null?vn:{},label:Xi!=null?Xi:{}},{type:"radius-number"}];return et(pe({},Kn),{series:[xo],axes:Ro})}function RL(l){let ro=l,{animation:c,background:y,container:I,contextMenu:O,footnote:j,height:H,listeners:K,locale:Z,minHeight:te,minWidth:se,padding:ge,subtitle:Se,theme:Ce,title:Pe,width:Ge,type:We,cursor:He,nodeClickRange:Ze,tooltip:it,value:qe,scale:rt={},direction:dt="vertical",thickness:mt,highlightStyle:yt,segmentation:Lt,bar:Ht,targets:qt,cornerRadius:ri,cornerMode:Ei,label:Ni}=ro,Vi=ji(ro,["animation","background","container","contextMenu","footnote","height","listeners","locale","minHeight","minWidth","padding","subtitle","theme","title","width","type","cursor","nodeClickRange","tooltip","value","scale","direction","thickness","highlightStyle","segmentation","bar","targets","cornerRadius","cornerMode","label"]),{fills:Si,fillMode:sn,fill:en,fillOpacity:Nn,stroke:dn,strokeWidth:ea,strokeOpacity:Sn,lineDash:pn,lineDashOffset:ta,min:wo=0,max:Ca=1,interval:Bn={},label:ya={}}=rt,wn=Pl(l,{animation:c,background:y,container:I,contextMenu:O,footnote:j,height:H,listeners:K,locale:Z,minHeight:te,minWidth:se,padding:ge,subtitle:Se,theme:Ce,title:Pe,width:Ge}),$i=Pl(rt,{fills:Si,fillMode:sn,fill:en,fillOpacity:Nn,stroke:dn,strokeWidth:ea,strokeOpacity:Sn,lineDash:pn,lineDashOffset:ta}),kn=Pl(l,pe({scale:$i,type:We,cursor:He,nodeClickRange:Ze,listeners:K,tooltip:it,value:qe,direction:dt,thickness:mt,highlightStyle:yt,segmentation:Lt,bar:Ht,targets:qt,cornerRadius:ri,cornerMode:Ei,label:Ni},Vi)),Ha=ya,{placement:Zn}=Ha,Qi=ji(Ha,["placement"]),vn,Xi,Kn=dt==="horizontal";Kn?(vn=Zn==="before"?"top":"bottom",Xi="left"):(vn=Zn==="after"?"right":"left",Xi="bottom");let cn={type:"number",position:vn,min:wo,max:Ca,reverse:!Kn,interval:Bn,label:Qi,nice:!1},xo={type:"number",position:Xi,min:0,max:1,label:{enabled:!1}},Ro=Kn?[cn,xo]:[xo,cn];return et(pe({},wn),{series:[kn],axes:Ro})}function _1(l,c){if(c==null)return l;let O=c,{targets:y}=O,I=ji(O,["targets"]);return l=Wi(l,I),l.targets!=null&&y!=null&&(l.targets=ko(l.targets,y)),l}function QS(l,c){if(TL(l)){let He=_1(l,c);return eR(He)}else if(Xp(l)){let He=_1(l,c);return RL(He)}let{animation:y,background:I,container:O,contextMenu:j,footnote:H,height:K,listeners:Z,locale:te,minHeight:se,minWidth:ge,padding:Se,subtitle:Ce,theme:Pe,title:Ge,width:We}=l;return Pl(l,{animation:y,background:I,container:O,contextMenu:j,footnote:H,height:K,listeners:Z,locale:te,minHeight:se,minWidth:ge,padding:Se,subtitle:Ce,theme:Pe,title:Ge,width:We})}function As(l,c){if(Ke(l))return c(l)}var Tf=["ohlc","line","step-line","hlc","high-low","candlestick","hollow-candlestick"];function rC(l,c,y){var Ei,Ni;let ri=l,{dateKey:I="date",highKey:O="high",openKey:j="open",lowKey:H="low",closeKey:K="close",volumeKey:Z="volume",chartType:te="candlestick",navigator:se=!1,volume:ge=!0,rangeButtons:Se=!0,statusBar:Ce=!0,toolbar:Pe=!0,zoom:Ge=!0,theme:We,data:He}=ri,Ze=ji(ri,["dateKey","highKey","openKey","lowKey","closeKey","volumeKey","chartType","navigator","volume","rangeButtons","statusBar","toolbar","zoom","theme","data"]),it=i(We,te,I,O,H,j,K),qe=tR(We,y,j,K,ge,Z),dt={navigator:pe({enabled:se},ge?{miniChart:{enabled:se,series:[{type:"line",xKey:I,yKey:Z,marker:{enabled:!1}}]},height:40,minHandle:{height:46},maxHandle:{height:46}}:null)},mt={annotations:{enabled:Pe,toolbar:{enabled:Pe},optionsToolbar:{enabled:Pe},data:He,xKey:I,volumeKey:ge?Z:void 0}},yt=Ce?{statusBar:{enabled:!0,data:He,highKey:O,openKey:j,lowKey:H,closeKey:K,volumeKey:ge?Z:void 0}}:null,Lt={zoom:{enabled:Ge,enableIndependentAxes:!0}},Ht={ranges:{enabled:Se}},qt=ge?[{type:"number",position:"left",keys:[Z],label:{enabled:!1},crosshair:{enabled:!1},gridLine:{enabled:!1},nice:!1,layoutConstraints:{stacked:!1,width:20,unit:"percentage",align:"end"}}]:[];return pe(pe(pe(pe(pe(pe({theme:pe({baseTheme:typeof We=="string"?We:"ag-financial"},Wi(typeof We=="object"?We:null,{overrides:{common:{title:{padding:4},padding:{top:6,right:8,bottom:5},chartToolbar:{enabled:Pe}}}})),animation:{enabled:!1},legend:{enabled:!1},series:[...qe,...it],seriesArea:{clip:!0},axes:[{type:"number",position:"right",keys:[j,K,O,H],interval:{maxSpacing:(Ei=As(We,Vi=>{var Si,sn,en,Nn,dn;return(dn=(Nn=(en=(sn=(Si=Vi.overrides)==null?void 0:Si.common)==null?void 0:sn.axes)==null?void 0:en.number)==null?void 0:Nn.interval)==null?void 0:dn.maxSpacing}))!=null?Ei:45},label:{format:(Ni=As(We,Vi=>{var Si,sn,en,Nn,dn;return(dn=(Nn=(en=(sn=(Si=Vi.overrides)==null?void 0:Si.common)==null?void 0:sn.axes)==null?void 0:en.number)==null?void 0:Nn.label)==null?void 0:dn.format}))!=null?Ni:".2f"},crosshair:{enabled:!0,snap:!1},layoutConstraints:{stacked:!1,width:100,unit:"percentage",align:"start"}},...qt,{type:"ordinal-time",position:"bottom",line:{enabled:!1},label:{enabled:!0},crosshair:{enabled:!0}}],tooltip:{enabled:!1},data:He},mt),dt),yt),Lt),Ht),Ze)}function tR(l,c,y,I,O,j){var Z;if(!O)return[];let H=As(l,te=>{var se,ge,Se;return(Se=(ge=(se=te.overrides)==null?void 0:se.bar)==null?void 0:ge.series)==null?void 0:Se.fill}),K=H?{fill:H}:{itemStyler({datum:te}){let{up:se,down:ge}=c().palette;return{fill:te[y]<te[I]?se==null?void 0:se.fill:ge==null?void 0:ge.fill}}};return[et(pe({type:"bar",xKey:"date",yKey:j,tooltip:{enabled:!1},highlight:{enabled:!1},fillOpacity:(Z=As(l,te=>{var se,ge,Se;return(Se=(ge=(se=te.overrides)==null?void 0:se.bar)==null?void 0:ge.series)==null?void 0:Se.fillOpacity}))!=null?Z:.5},K),{focusPriority:1,fastDataProcessing:!0})]}var _k="range-area";function i(l,c,y,I,O,j,H){let K={xKey:y,openKey:j,closeKey:H,highKey:I,lowKey:O},Z={xKey:y,yKey:H},te={pickOutsideVisibleMinorAxis:!0};switch(c!=null?c:"candlestick"){case"ohlc":return o(te,K);case"line":return C(te,l,Z);case"step-line":return P(te,l,Z);case"hlc":return B(te,l,Z,K);case"high-low":return W(te,l,K);case"candlestick":return $(te,K);case"hollow-candlestick":return ie(te,l,K);default:return Pi.warnOnce(`unknown chart type: ${c}; expected one of: ${Tf.join(", ")}`),$(te,K)}}function o(l,c){return[pe(pe({type:"ohlc",focusPriority:0},l),c)]}function C(l,c,y){var I,O;return[et(pe(pe({type:"line",focusPriority:0},l),y),{stroke:(I=As(c,j=>{var H,K,Z;return(Z=(K=(H=j.overrides)==null?void 0:H.line)==null?void 0:K.series)==null?void 0:Z.stroke}))!=null?I:gf,marker:(O=As(c,j=>{var H,K,Z;return(Z=(K=(H=j.overrides)==null?void 0:H.line)==null?void 0:K.series)==null?void 0:Z.marker}))!=null?O:{enabled:!1}})]}function P(l,c,y){var I,O,j;return[et(pe(pe({type:"line",focusPriority:0},l),y),{stroke:(I=As(c,H=>{var K,Z,te;return(te=(Z=(K=H.overrides)==null?void 0:K.line)==null?void 0:Z.series)==null?void 0:te.stroke}))!=null?I:gf,interpolation:(O=As(c,H=>{var K,Z,te;return(te=(Z=(K=H.overrides)==null?void 0:K.line)==null?void 0:Z.series)==null?void 0:te.interpolation}))!=null?O:{type:"step"},marker:(j=As(c,H=>{var K,Z,te;return(te=(Z=(K=H.overrides)==null?void 0:K.line)==null?void 0:Z.series)==null?void 0:te.marker}))!=null?j:{enabled:!1}})]}function B(l,c,y,{xKey:I,highKey:O,closeKey:j,lowKey:H}){var Z,te,se,ge,Se,Ce,Pe,Ge,We,He,Ze;let K=ue(_k,c);return[et(pe({type:_k,focusPriority:0},l),{xKey:I,yHighKey:O,yLowKey:j,fill:(Z=K.fill)!=null?Z:Hv,stroke:(te=K.stroke)!=null?te:Kb,fillOpacity:(se=As(c,it=>{var qe,rt,dt;return(dt=(rt=(qe=it.overrides)==null?void 0:qe["range-area"])==null?void 0:rt.series)==null?void 0:dt.fillOpacity}))!=null?se:.3,strokeWidth:(ge=As(c,it=>{var qe,rt,dt;return(dt=(rt=(qe=it.overrides)==null?void 0:qe["range-area"])==null?void 0:rt.series)==null?void 0:dt.strokeWidth}))!=null?ge:2}),et(pe({type:_k,focusPriority:0},l),{xKey:I,yHighKey:j,yLowKey:H,fill:(Se=K.fill)!=null?Se:ac,stroke:(Ce=K.stroke)!=null?Ce:zp,fillOpacity:(Pe=As(c,it=>{var qe,rt,dt;return(dt=(rt=(qe=it.overrides)==null?void 0:qe["range-area"])==null?void 0:rt.series)==null?void 0:dt.fillOpacity}))!=null?Pe:.3,strokeWidth:(Ge=As(c,it=>{var qe,rt,dt;return(dt=(rt=(qe=it.overrides)==null?void 0:qe["range-area"])==null?void 0:rt.series)==null?void 0:dt.strokeWidth}))!=null?Ge:2}),et(pe(pe({type:"line"},l),y),{stroke:(We=As(c,it=>{var qe,rt,dt;return(dt=(rt=(qe=it.overrides)==null?void 0:qe.line)==null?void 0:rt.series)==null?void 0:dt.stroke}))!=null?We:Tg,strokeWidth:(He=As(c,it=>{var qe,rt,dt;return(dt=(rt=(qe=it.overrides)==null?void 0:qe.line)==null?void 0:rt.series)==null?void 0:dt.strokeWidth}))!=null?He:2,marker:(Ze=As(c,it=>{var qe,rt,dt;return(dt=(rt=(qe=it.overrides)==null?void 0:qe.line)==null?void 0:rt.series)==null?void 0:dt.marker}))!=null?Ze:{enabled:!1}})]}function W(l,c,{xKey:y,highKey:I,lowKey:O}){var H,K;let j=ue("range-bar",c);return[et(pe({type:"range-bar"},l),{xKey:y,yHighKey:I,yLowKey:O,fill:(H=j.fill)!=null?H:qb,stroke:(K=j.stroke)!=null?K:gf,tooltip:{range:"nearest"},focusPriority:0,fastDataProcessing:!0})]}function $(l,c){return[pe(pe({type:"candlestick",focusPriority:0},l),c)]}function ie(l,c,y){var O,j;let I=As(c,H=>{var K,Z,te;return(te=(Z=(K=H.overrides)==null?void 0:K.candlestick)==null?void 0:Z.series)==null?void 0:te.item});return[et(pe(pe({type:"candlestick",focusPriority:0},l),y),{item:{up:{fill:(j=(O=I==null?void 0:I.up)==null?void 0:O.fill)!=null?j:"transparent"}}})]}function ue(l,c){let y=As(c,O=>{var j,H,K;return(K=(H=(j=O.overrides)==null?void 0:j[l])==null?void 0:H.series)==null?void 0:K.fill}),I=As(c,O=>{var j,H,K;return(K=(H=(j=O.overrides)==null?void 0:j[l])==null?void 0:H.series)==null?void 0:K.stroke});return{fill:y,stroke:I}}var De={title:{enabled:!1},label:{enabled:!1},line:{enabled:!1},gridLine:{enabled:!1},crosshair:{enabled:!1,stroke:mf,lineDash:[0],label:{enabled:!1}}},_e=et(pe({},De),{nice:!1}),Be={position:{type:"sparkline"}},Qe={style:[{stroke:Ms}],width:2},st={number:{gridLine:Qe},time:{gridLine:Qe},category:{gridLine:Qe}},Ct={overrides:{common:{animation:{enabled:!1},contextMenu:{enabled:!1},keyboard:{enabled:!1},background:{visible:!1},padding:{top:0,right:0,bottom:0,left:0},axes:{number:et(pe({},_e),{interval:{values:[0]}}),log:pe({},_e),time:pe({},_e),category:pe({},De)}},bar:{series:{crisp:!1,label:{placement:"inside-end",padding:4},sparklineMode:!0},tooltip:et(pe({},Be),{range:"nearest"}),axes:st},line:{seriesArea:{padding:{top:2,right:2,bottom:2,left:2}},series:{sparklineMode:!0,strokeWidth:1,marker:{enabled:!1,size:3},tooltip:Be}},area:{seriesArea:{padding:{top:1,right:0,bottom:1,left:0}},series:{strokeWidth:1,fillOpacity:.4,tooltip:Be}}}},Ot=Ml(Pt);function Pt(l,c){return typeof l=="string"?et(pe({},c),{baseTheme:l}):l!=null?et(pe({},l),{baseTheme:Ot(l.baseTheme,c)}):c}function Kt(l){if(Array.isArray(l)&&l.length!==0){let c=l[0];if(typeof c=="number")return{data:l.map((I,O)=>({x:O,y:I})),series:[{xKey:"x",yKey:"y"}],datumKey:"y"};if(Array.isArray(c))return{data:l.map(I=>({x:I[0],y:I[1],datum:I})),series:[{xKey:"x",yKey:"y"}],datumKey:"datum"}}return{data:l}}function ti(l,c){switch(l==null?void 0:l.type){case"number":{let{type:y,visible:I,stroke:O,strokeWidth:j,min:H,max:K,reverse:Z}=l;return Pl(l,{type:y,reverse:Z,min:H,max:K})}case"time":{let{type:y,visible:I,stroke:O,strokeWidth:j,min:H,max:K,reverse:Z}=l;return Pl(l,{type:y,reverse:Z,min:H,max:K})}case"category":{let{type:y,visible:I,stroke:O,strokeWidth:j,paddingInner:H,paddingOuter:K,reverse:Z}=l;return Pl(l,{type:y,reverse:Z,paddingInner:H,paddingOuter:K})}}return{type:c}}function Jt(l,c,y){var O,j,H,K;let I={};return(l==null?void 0:l.stroke)!=null&&(I.style=[{stroke:l==null?void 0:l.stroke}],(O=I.enabled)!=null||(I.enabled=!0)),(l==null?void 0:l.strokeWidth)!=null&&(I.width=l==null?void 0:l.strokeWidth,(j=I.enabled)!=null||(I.enabled=!0)),y.type==="bar"&&y.direction!=="horizontal"&&((H=I.enabled)!=null||(I.enabled=!0)),(l==null?void 0:l.visible)!=null&&(I.enabled=l.visible),(K=I.enabled)!=null||(I.enabled=c),I}var ai=Ml((l,c,y)=>I=>{var se,ge;let O=I.datum[I.xKey],j=I.datum[I.yKey],H=y!=null?I.datum[y]:I.datum,K=(se=c==null?void 0:c.renderer)==null?void 0:se.call(c,{context:l,datum:H,xValue:O,yValue:j});if(typeof K=="string")return K;let Z=K==null?void 0:K.title,te=K==null?void 0:K.content;return Z!=null&&te!=null?{heading:Z,title:void 0,data:[{label:void 0,value:te}]}:{heading:(ge=Z!=null?Z:te)!=null?ge:j.toFixed(2),title:void 0,data:[]}});function Mi(l){let Ei=l,{background:c,container:y,height:I,listeners:O,locale:j,minHeight:H,minWidth:K,padding:Z,width:te,theme:se,data:ge,crosshair:Se,axis:Ce,min:Pe,max:Ge,tooltip:We,context:He}=Ei,Ze=ji(Ei,["background","container","height","listeners","locale","minHeight","minWidth","padding","width","theme","data","crosshair","axis","min","max","tooltip","context"]),it=Pl(l,{background:c,container:y,height:I,listeners:O,locale:j,minHeight:H,minWidth:K,padding:Z,width:te,tooltip:Cd,context:Cd,data:Cd,crosshair:Cd,axis:Cd,min:Cd,max:Cd,theme:Cd}),{data:qe,series:[rt]=[],datumKey:dt}=Kt(ge),mt=Ze;rt!=null&&Object.assign(mt,rt),mt.tooltip=et(pe({},We),{renderer:ai(He,We,dt)}),it.theme=Ot(se,Ct),it.data=qe,it.series=[mt];let yt=mt.type!=="bar"||mt.direction!=="horizontal",[Lt,Ht]=yt?["bottom","left"]:["left","bottom"],qt=pe(et(pe({},ti(Ce,"category")),{position:Lt}),Pl(l,{crosshair:Se})),ri=pe({type:"number",gridLine:Jt(Ce,!1,l),position:Ht},Pl(l,{min:Pe,max:Ge}));return it.axes=yt?[ri,qt]:[qt,ri],it}var qi={"price-volume":rC,gauge:QS,sparkline:Mi},Fn={sparkline:Kt};function Xn(l,c){var H,K,Z,te;let y=[],I=Iu(l),O=Oh(l),j=O?Qo.get(O):"unknown";for(let se of kp)if(!(j!=="unknown"&&!se.chartTypes.includes(j))){if(se.type==="root"||se.type==="legend"){let ge=l[se.optionsKey];if(ge==null)continue;se.optionsInnerKey?ge[se.optionsInnerKey]&&(y.push(`${se.optionsKey}.${se.optionsInnerKey}`),delete ge[se.optionsInnerKey]):(y.push(se.optionsKey),delete l[se.optionsKey])}else if(se.type==="axis"){if(!("axes"in l)||!((H=l.axes)!=null&&H.some(ge=>ge.type===se.identifier)))continue;y.push(`axis[type=${se.identifier}]`),l.axes=l.axes.filter(ge=>ge.type!==se.identifier)}else if(se.type==="axis-option"){if(!("axes"in l)||!((K=l.axes)!=null&&K.some(ge=>ge[se.optionsKey])))continue;y.push(`axis.${se.optionsKey}`),l.axes.forEach(ge=>{ge[se.optionsKey]&&delete ge[se.optionsKey]})}else if(se.type==="series"){if(se.community||!((Z=l.series)!=null&&Z.some(ge=>ge.type===se.identifier)))continue;y.push(`series[type=${se.identifier}]`),l.series=l.series.filter(ge=>ge.type!==se.identifier)}else if(se.type==="series-option"){if(!((te=l.series)!=null&&te.some(ge=>ge[se.optionsKey])))continue;y.push(`series.${se.optionsKey}`),l.series.forEach(ge=>{ge[se.optionsKey]&&delete ge[se.optionsKey]})}}if(y.length&&!c){I&&(y=["AgCharts.createGauge"]);let se="ag-charts-enterprise",ge="https://ag-grid.com/charts/javascript/installation/";l.mode==="integrated"&&(se="ag-grid-charts-enterprise' or 'ag-grid-enterprise/charts-enterprise",ge="https://www.ag-grid.com/javascript-data-grid/integrated-charts-installation/"),Pi.warnOnce([`unable to use these enterprise features as '${se}' has not been loaded:`,"",...y,"",`See: ${ge}`].join(`
`))}}function Ga(l){let c="mode"in l&&l.mode==="integrated";for(let y of ku.byType("root","legend")){let I=l[y.optionsKey],O=I!=null&&I.enabled===!1,j=!("removable"in y)||y.removable===!0||y.removable==="standalone-only"&&!c;O&&j&&delete l[y.optionsKey]}}var ba=Symbol("description"),Qa=Symbol("required");function gn(l,c,y){let{errors:I}=Lr(l,c,y);for(let{message:O}of I)Pi.warn(O);return I.length===0}function ja(l,c,y){let I=ht(y)?y:y[ba],O=I?`; expecting ${I}`:"";return`${l?`Option \`${l}\``:"Value"} cannot be set to \`${mL(c)}\`${O}, ignoring.`}function Lr(l,c,y=""){if(!Ke(l))return{valid:null,errors:[{path:y,value:l,message:ja(y,l,"an object")}]};let I=new Set(Object.keys(l)),O=[],j={};function H(K){return $t(c)?`${y}[${K}]`:y?`${y}.${K}`:K}for(let[K,Z]of Object.entries(c)){I.delete(K);let te=l[K];if(!(!Z[Qa]&&typeof te=="undefined"))if(Yn(Z))Z(te)?j[K]=te:O.push({key:K,path:y,value:te,message:ja(H(K),te,Z)});else{let se=Lr(te,Z,H(K));j[K]=se.valid,O.push(...se.errors)}}for(let K of I)O.push({key:K,path:y,unknown:!0,message:`Unknown option \`${H(K)}\`, ignoring.`});return{valid:j,errors:O}}function Va(l,c){return Object.assign(y=>l(y),{[ba]:c})}var uc=(...l)=>Va(c=>l.some(y=>y(c)),l.map(c=>c[ba]).filter(Boolean).join(" or ")),Fk=Va($t,"an array"),PL=Va(nn,"a boolean"),JS=Va(Yn,"a function"),ew=Va(_t,"a number"),sC=Va(Ke,"an object"),ju=Va(ht,"a string"),Sd=(l,c=!0)=>Va(y=>_t(y)&&(y>l||c&&y===l),`a number greater than ${c?"or equal to ":""}${l}`),Zp=(l,c)=>Va(y=>_t(y)&&y>=l&&y<=c,`a number between ${l} and ${c} inclusive`),Or=Sd(0),Vu=Zp(0,1),lC=(l,c)=>Va(y=>$t(y)&&y.every(l),c!=null?c:`${l[ba]} array`);function jc(l){return l!=null&&l.up||l!=null&&l.down||l!=null&&l.neutral?"user-full":l!=null&&l.fills||l!=null&&l.strokes?"user-indexed":"inbuilt"}var iy="white",ny={get cartesian(){return{seriesTypes:Qo.cartesianTypes,commonOptions:["zoom","navigator"]}},get polar(){return{seriesTypes:Qo.polarTypes,commonOptions:[]}},get hierarchy(){return{seriesTypes:Qo.hierarchyTypes,commonOptions:[]}},get topology(){return{seriesTypes:Qo.topologyTypes,commonOptions:[]}},get"flow-proportion"(){return{seriesTypes:Qo.flowProportionTypes,commonOptions:[]}},get standalone(){return{seriesTypes:Qo.standaloneTypes,commonOptions:[]}},get gauge(){return{seriesTypes:Qo.gaugeTypes,commonOptions:[]}}},FO={"radial-gauge":!0,"linear-gauge":!0};function tw(l){return FO[l]===!0}var NO=Object.values(ny).reduce((l,{commonOptions:c})=>l.concat(c),[]),Hu=class nV{static getAxisDefaults(c){return Wi(c,{title:{enabled:!1,text:"Axis Title",spacing:25,fontWeight:"normal",fontSize:13,fontFamily:Jo,color:jo},label:{fontSize:12,fontFamily:Jo,spacing:11,color:jo,avoidCollisions:!0},line:{enabled:!0,width:1,stroke:Wb},tick:{enabled:!1,width:1,stroke:Wb},gridLine:{enabled:!0,style:[{stroke:Ms,lineDash:[]}]},crossLines:{enabled:!1,fill:Ub,stroke:Ub,fillOpacity:.1,strokeWidth:1,label:{enabled:!1,fontSize:12,fontFamily:Jo,padding:5,color:jo}},crosshair:{enabled:!0}})}getChartDefaults(){return{minHeight:300,minWidth:300,background:{visible:!0,fill:Eg},padding:{top:Xd,right:Xd,bottom:Xd,left:Xd},keyboard:{enabled:!0},title:{enabled:!1,text:"Title",fontWeight:"normal",fontSize:17,fontFamily:Jo,color:jo,wrapping:"hyphenate",layoutStyle:Np,textAlign:hf},subtitle:{enabled:!1,text:"Subtitle",spacing:20,fontSize:13,fontFamily:Jo,color:vd,wrapping:"hyphenate",layoutStyle:Np,textAlign:hf},footnote:{enabled:!1,text:"Footnote",spacing:20,fontSize:13,fontFamily:Jo,color:"rgb(140, 140, 140)",wrapping:"hyphenate",layoutStyle:Np,textAlign:hf},legend:{position:"bottom",spacing:30,listeners:{},toggleSeries:!0,item:{paddingX:16,paddingY:8,marker:{size:15,padding:8},showSeriesStroke:!0,label:{color:jo,fontSize:12,fontFamily:Jo}},reverseOrder:!1,pagination:{marker:{size:12},activeStyle:{fill:jo},inactiveStyle:{fill:vd},highlightStyle:{fill:jo},label:{color:jo}}},tooltip:{enabled:!0,darkTheme:Hb,delay:0},overlays:{darkTheme:Hb},listeners:{}}}constructor(c={}){let{overrides:y,palette:I}=Ss(c),O=this.createChartConfigPerChartType(this.getDefaults()),j={};y&&this.mergeOverrides(O,j,y);let te=this.getDefaultColors(),{fills:H,strokes:K}=te,Z=ji(te,["fills","strokes"]);this.palette=Qr(Wi(I,pe({fills:Object.values(H),strokes:Object.values(K)},Z))),this.paletteType=jc(I),this.config=Qr(this.templateTheme(O)),this.presets=Qr(j)}mergeOverrides(c,y,I){for(let{seriesTypes:O,commonOptions:j}of Object.values(ny)){let H=pe({},I.common);for(let K of NO)j.includes(K)||delete H[K];if(H)for(let K of O){let Z=K;tw(Z)||(c[Z]=Wi(H,c[Z]))}}Qo.seriesTypes.forEach(O=>{let j=O,H=I[j];tw(j)?y[j]=H:c[j]=Wi(H,c[j])})}createChartConfigPerChartType(c){var y;for(let[I,{seriesTypes:O}]of Object.entries(ny)){let j=Y0.get(I);for(let H of O)(y=c[H])!=null||(c[H]=Ss(j))}return c}getDefaults(){let c=(y,I)=>{var H;let O={},j=pe(pe(pe({axes:{}},RD.getThemeTemplates()),this.getChartDefaults()),Y0.get(y));for(let K of I){O[K]=Wi(Wr.getThemeTemplate(K),(H=O[K])!=null?H:Ss(j));let{axes:Z}=O[K];for(let te of Zs.keys())Z[te]=Wi(Z[te],Zs.getThemeTemplate(te),nV.cartesianAxisDefault[te])}return O};return Wi(c("cartesian",Qo.cartesianTypes),c("polar",Qo.polarTypes),c("hierarchy",Qo.hierarchyTypes),c("topology",Qo.topologyTypes),c("flow-proportion",Qo.flowProportionTypes),c("standalone",Qo.standaloneTypes),c("gauge",Qo.gaugeTypes))}static applyTemplateTheme(c,y,I){if($t(c))for(let O=0;O<c.length;O++){let j=c[O];typeof j=="symbol"&&(I!=null&&I.has(j))&&(c[O]=I.get(j))}else for(let[O,j]of Object.entries(c))typeof j=="symbol"&&(I!=null&&I.has(j))&&(c[O]=I.get(j))}templateTheme(c,y=!0){let I=y?Ss(c):c,O=this.getTemplateParameters();return Ah(I,nV.applyTemplateTheme,void 0,void 0,O),I}getDefaultColors(){return{fills:Pr,strokes:Qd,up:{fill:Pr.GREEN,stroke:Qd.GREEN},down:{fill:Pr.RED,stroke:Qd.RED},neutral:{fill:Pr.GRAY,stroke:Qd.GRAY},altUp:{fill:Pr.BLUE,stroke:Qd.BLUE},altDown:{fill:Pr.ORANGE,stroke:Qd.ORANGE},altNeutral:{fill:Pr.GRAY,stroke:Qd.GRAY}}}getTemplateParameters(){var O,j,H,K,Z,te,se,ge,Se,Ce,Pe,Ge,We,He,Ze,it,qe,rt,dt,mt,yt,Lt,Ht,qt;let{isEnterprise:c}=fn,y=new Map;y.set(Hb,!1),y.set(CS,c),y.set(c1,!c),y.set(Jo,"Verdana, sans-serif"),y.set(jo,"#464646"),y.set(HM,"#fff"),y.set(vd,"#8c8c8c"),y.set(Ms,"#e0eaf1"),y.set(Wb,"#c3c3c3"),y.set(Ub,"#464646"),y.set(SS,"#d9d9d9"),y.set(WM,"#ddd"),y.set(fd,iy),y.set(Eg,iy),y.set(Dl,"black"),y.set(Ig,"#00000080"),y.set(Nc,[Pr.ORANGE,Pr.YELLOW,Pr.GREEN]),y.set(mf,"#aaa"),y.set(zc,[Pr.GREEN,Pr.YELLOW,Pr.RED]),y.set(Rg,["#5090dc","#629be0","#73a6e3","#85b1e7","#96bcea","#a8c8ee","#b9d3f1","#cbdef5"]),y.set(Xd,20),y.set(Np,"block"),y.set(hf,"center"),y.set(qM,["#fff","#e0e5ea","#c1ccd5","#a3b4c1","#859cad"]),y.set(YM,["#fff","#c5cbd1","#a4b1bd","#8498a9","#648096"]),y.set(XM,["#797b86","#e24c4a","#f49d2d","#65ab58","#409682","#4db9d2","#5090dc","#3068f9","#e24c4a","#913aac","#d93e64"]),y.set(KM,iy),y.set(Bc,Pr.BLUE),y.set(xS,Pr.BLUE),y.set(Kr,Pr.BLUE),y.set(Pg,iy),y.set(Yb,"#fafafa"),y.set(ff,"#ddd"),y.set(Uv,"#000"),y.set(Xb,"#181d1f"),y.set(ZM,"#e35c5c"),y.set(bo,"#e35c5c"),y.set(Zb,"#fafafa"),y.set(Kv,"#ddd"),y.set(Lg,"#000"),y.set(qv,"top"),y.set(rr,!1);let I=this.getDefaultColors();return y.set(Kb,(j=(O=this.palette.up)==null?void 0:O.stroke)!=null?j:I.up.stroke),y.set(Hv,(K=(H=this.palette.up)==null?void 0:H.fill)!=null?K:I.up.fill),y.set(zp,(te=(Z=this.palette.down)==null?void 0:Z.stroke)!=null?te:I.down.stroke),y.set(ac,(ge=(se=this.palette.down)==null?void 0:se.fill)!=null?ge:I.down.fill),y.set(gf,(Ce=(Se=this.palette.neutral)==null?void 0:Se.stroke)!=null?Ce:I.neutral.stroke),y.set(qb,(Ge=(Pe=this.palette.neutral)==null?void 0:Pe.fill)!=null?Ge:I.neutral.fill),y.set(Wv,(He=(We=this.palette.altUp)==null?void 0:We.stroke)!=null?He:I.up.stroke),y.set(Ou,(it=(Ze=this.palette.altUp)==null?void 0:Ze.fill)!=null?it:I.up.fill),y.set(UM,(rt=(qe=this.palette.altDown)==null?void 0:qe.stroke)!=null?rt:I.down.stroke),y.set(pf,(mt=(dt=this.palette.altDown)==null?void 0:dt.fill)!=null?mt:I.down.fill),y.set(d1,(Lt=(yt=this.palette.altNeutral)==null?void 0:yt.fill)!=null?Lt:I.altNeutral.fill),y.set(Tg,(qt=(Ht=this.palette.altNeutral)==null?void 0:Ht.stroke)!=null?qt:I.altNeutral.stroke),y}};Hu.cartesianAxisDefault={number:Hu.getAxisDefaults({line:{enabled:!1}}),log:Hu.getAxisDefaults({base:10,line:{enabled:!1},interval:{minSpacing:NaN}}),category:Hu.getAxisDefaults({groupPaddingInner:.1,label:{autoRotate:!0},gridLine:{enabled:rr},crosshair:{enabled:!1}}),["grouped-category"]:Hu.getAxisDefaults({tick:{enabled:!0,stroke:SS},label:{spacing:10,rotation:270},paddingInner:.4,groupPaddingInner:.2,crosshair:{enabled:!1}}),time:Hu.getAxisDefaults({gridLine:{enabled:rr}}),["ordinal-time"]:Hu.getAxisDefaults({groupPaddingInner:0,label:{autoRotate:!1},gridLine:{enabled:rr}}),["angle-category"]:Hu.getAxisDefaults({label:{spacing:5},gridLine:{enabled:rr}}),["angle-number"]:Hu.getAxisDefaults({label:{spacing:5},gridLine:{enabled:rr}}),["radius-category"]:Hu.getAxisDefaults({line:{enabled:!1}}),["radius-number"]:Hu.getAxisDefaults({line:{enabled:!1}})};var Vh=Hu,cC="#192232",Co={BLUE:"#5090dc",ORANGE:"#ffa03a",GREEN:"#459d55",CYAN:"#34bfe1",YELLOW:"#e1cc00",VIOLET:"#9669cb",GRAY:"#b5b5b5",MAGENTA:"#bd5aa7",BROWN:"#8a6224",RED:"#ef5452"},$p={BLUE:"#74a8e6",ORANGE:"#ffbe70",GREEN:"#6cb176",CYAN:"#75d4ef",YELLOW:"#f6e559",VIOLET:"#aa86d8",GRAY:"#a1a1a1",MAGENTA:"#ce7ab9",BROWN:"#997b52",RED:"#ff7872"},zg=class extends Vh{getDefaultColors(){return{fills:Co,strokes:$p,up:{fill:Co.GREEN,stroke:$p.GREEN},down:{fill:Co.RED,stroke:$p.RED},neutral:{fill:Co.GRAY,stroke:$p.GRAY},altUp:{fill:Co.BLUE,stroke:$p.BLUE},altDown:{fill:Co.ORANGE,stroke:$p.ORANGE},altNeutral:{fill:Co.GRAY,stroke:$p.GRAY}}}getTemplateParameters(){let l=super.getTemplateParameters();return l.set(Hb,!0),l.set(KM,cC),l.set(WM,"#4b525d"),l.set(jo,"#fff"),l.set(vd,"#7d91a0"),l.set(Ms,"#545a6e"),l.set(Ub,"#fff"),l.set(SS,"#7f8389"),l.set(Nc,[Co.ORANGE,Co.YELLOW,Co.GREEN]),l.set(zc,[Co.GREEN,Co.YELLOW,Co.RED]),l.set(Rg,["#5090dc","#4882c6","#4073b0","#38659a","#305684","#28486e","#203a58","#182b42"]),l.set(qM,["#192834","#253746","#324859","#3f596c","#4d6a80"]),l.set(YM,["#192834","#3b5164","#496275","#577287","#668399"]),l.set(Eg,cC),l.set(Dl,"white"),l.set(fd,cC),l.set(Bc,Co.BLUE),l.set(xS,"#fff"),l.set(Kr,Co.BLUE),l.set(Pg,cC),l.set(Yb,"#28313e"),l.set(ff,"#4b525d"),l.set(Uv,"#fff"),l.set(Xb,"#fff"),l.set(Zb,"#28313e"),l.set(Kv,"#4b525d"),l.set(Lg,"#fff"),l}constructor(l){super(l)}},Hh={GREEN:"#089981",RED:"#F23645",BLUE:"#5090dc",GRAY:"#A9A9A9"},ay={GREEN:"#089981",RED:"#F23645",BLUE:"#5090dc",GRAY:"#909090"},zO=class extends zg{getDefaultColors(){return{fills:pe({},Hh),strokes:pe({},ay),up:{fill:Hh.GREEN,stroke:ay.GREEN},down:{fill:Hh.RED,stroke:ay.RED},neutral:{fill:Hh.BLUE,stroke:ay.BLUE},altUp:{fill:Hh.GREEN,stroke:ay.GREEN},altDown:{fill:Hh.RED,stroke:ay.RED},altNeutral:{fill:Hh.GRAY,stroke:ay.GRAY}}}getTemplateParameters(){let l=super.getTemplateParameters();return l.set(Nc,[Hh.GREEN,Hh.BLUE,Hh.RED]),l.set(Bc,Hh.BLUE),l.set(Kr,Hh.BLUE),l.set(Ms,"#343A4E"),l.set(Xd,0),l.set(Np,"overlay"),l.set(hf,"left"),l.set(qv,"bottom"),l.set(rr,!0),l}},Bg={GREEN:"#089981",RED:"#F23645",BLUE:"#5090dc",GRAY:"#A9A9A9"},iw={GREEN:"#089981",RED:"#F23645",BLUE:"#5090dc",GRAY:"#909090"},Hz=class extends Vh{getDefaultColors(){return{fills:pe({},Bg),strokes:pe({},iw),up:{fill:Bg.GREEN,stroke:iw.GREEN},down:{fill:Bg.RED,stroke:iw.RED},neutral:{fill:Bg.BLUE,stroke:iw.BLUE},altUp:{fill:Bg.GREEN,stroke:iw.GREEN},altDown:{fill:Bg.RED,stroke:iw.RED},altNeutral:{fill:Bg.GRAY,stroke:iw.GRAY}}}getTemplateParameters(){let l=super.getTemplateParameters();return l.set(Nc,[Bg.GREEN,Bg.BLUE,Bg.RED]),l.set(Bc,Bg.BLUE),l.set(Kr,Bg.BLUE),l.set(Ms,"#F2F3F3"),l.set(Xd,0),l.set(Np,"overlay"),l.set(hf,"left"),l.set(qv,"bottom"),l.set(rr,!0),l}},eu={BLUE:"#2196F3",ORANGE:"#FF9800",GREEN:"#4CAF50",CYAN:"#00BCD4",YELLOW:"#FFEB3B",VIOLET:"#7E57C2",GRAY:"#9E9E9E",MAGENTA:"#F06292",BROWN:"#795548",RED:"#F44336"},nw={BLUE:"#90CAF9",ORANGE:"#FFCC80",GREEN:"#A5D6A7",CYAN:"#80DEEA",YELLOW:"#FFF9C4",VIOLET:"#B39DDB",GRAY:"#E0E0E0",MAGENTA:"#F48FB1",BROWN:"#A1887F",RED:"#EF9A9A"},Wz=class extends zg{getDefaultColors(){return{fills:eu,strokes:nw,up:{fill:eu.GREEN,stroke:nw.GREEN},down:{fill:eu.RED,stroke:nw.RED},neutral:{fill:eu.GRAY,stroke:nw.GRAY},altUp:{fill:eu.BLUE,stroke:nw.BLUE},altDown:{fill:eu.RED,stroke:nw.RED},altNeutral:{fill:eu.GRAY,stroke:nw.GRAY}}}getTemplateParameters(){let l=super.getTemplateParameters();return l.set(Nc,[eu.ORANGE,eu.YELLOW,eu.GREEN]),l.set(Rg,["#2196f3","#208FEC","#1E88E5","#1C7FDC","#1976d2","#176EC9","#1565c0"]),l.set(zc,[eu.GREEN,eu.YELLOW,eu.RED]),l.set(Bc,eu.BLUE),l.set(Kr,eu.BLUE),l}},tu={BLUE:"#2196F3",ORANGE:"#FF9800",GREEN:"#4CAF50",CYAN:"#00BCD4",YELLOW:"#FFEB3B",VIOLET:"#7E57C2",GRAY:"#9E9E9E",MAGENTA:"#F06292",BROWN:"#795548",RED:"#F44336"},Wh={BLUE:"#1565C0",ORANGE:"#E65100",GREEN:"#2E7D32",CYAN:"#00838F",YELLOW:"#F9A825",VIOLET:"#4527A0",GRAY:"#616161",MAGENTA:"#C2185B",BROWN:"#4E342E",RED:"#B71C1C"},Rf=class extends Vh{getDefaultColors(){return{fills:tu,strokes:Wh,up:{fill:tu.GREEN,stroke:Wh.GREEN},down:{fill:tu.RED,stroke:Wh.RED},neutral:{fill:tu.GRAY,stroke:Wh.GRAY},altUp:{fill:tu.BLUE,stroke:Wh.BLUE},altDown:{fill:tu.RED,stroke:Wh.RED},altNeutral:{fill:tu.GRAY,stroke:Wh.GRAY}}}getTemplateParameters(){let l=super.getTemplateParameters();return l.set(Nc,[tu.ORANGE,tu.YELLOW,tu.GREEN]),l.set(Rg,["#2196f3","#329EF4","#42a5f5","#53ADF6","#64b5f6","#7AC0F8","#90caf9"]),l.set(zc,[tu.GREEN,tu.YELLOW,tu.RED]),l.set(Bc,tu.BLUE),l.set(Kr,tu.BLUE),l}},Cr={BLUE:"#436ff4",PURPLE:"#9a7bff",MAGENTA:"#d165d2",PINK:"#f0598b",RED:"#f47348",ORANGE:"#f2a602",YELLOW:"#e9e201",GREEN:"#21b448",CYAN:"#00b9a2",MODERATE_BLUE:"#00aee4",GRAY:"#bbbbbb"},Wu={BLUE:"#6698ff",PURPLE:"#c0a3ff",MAGENTA:"#fc8dfc",PINK:"#ff82b1",RED:"#ff9b70",ORANGE:"#ffcf4e",YELLOW:"#ffff58",GREEN:"#58dd70",CYAN:"#51e2c9",MODERATE_BLUE:"#4fd7ff",GRAY:"#eeeeee"},Uz=class extends zg{getDefaultColors(){return{fills:Cr,strokes:Wu,up:{fill:Cr.GREEN,stroke:Wu.GREEN},down:{fill:Cr.RED,stroke:Wu.RED},neutral:{fill:Cr.GRAY,stroke:Wu.GRAY},altUp:{fill:Cr.BLUE,stroke:Wu.BLUE},altDown:{fill:Cr.RED,stroke:Wu.RED},altNeutral:{fill:Cr.GRAY,stroke:Wu.GRAY}}}getTemplateParameters(){let l=super.getTemplateParameters();return l.set(Nc,[Cr.BLUE,Cr.RED]),l.set(Rg,[Cr.BLUE,Cr.PURPLE,Cr.MAGENTA,Cr.PINK,Cr.RED,Cr.ORANGE,Cr.YELLOW,Cr.GREEN]),l.set(zc,[Cr.BLUE,Cr.RED]),l.set(Bc,Cr.BLUE),l.set(Kr,Cr.BLUE),l}},cs={BLUE:"#436ff4",PURPLE:"#9a7bff",MAGENTA:"#d165d2",PINK:"#f0598b",RED:"#f47348",ORANGE:"#f2a602",YELLOW:"#e9e201",GREEN:"#21b448",CYAN:"#00b9a2",MODERATE_BLUE:"#00aee4",GRAY:"#bbbbbb"},aw={BLUE:"#2346c9",PURPLE:"#7653d4",MAGENTA:"#a73da9",PINK:"#c32d66",RED:"#c84b1c",ORANGE:"#c87f00",YELLOW:"#c1b900",GREEN:"#008c1c",CYAN:"#00927c",MODERATE_BLUE:"#0087bb",GRAY:"#888888"},BO=class extends Vh{getDefaultColors(){return{fills:cs,strokes:aw,up:{fill:cs.GREEN,stroke:aw.GREEN},down:{fill:cs.RED,stroke:aw.RED},neutral:{fill:cs.GRAY,stroke:aw.GRAY},altUp:{fill:cs.BLUE,stroke:aw.BLUE},altDown:{fill:cs.RED,stroke:aw.RED},altNeutral:{fill:cs.GRAY,stroke:aw.GRAY}}}getTemplateParameters(){let l=super.getTemplateParameters();return l.set(Nc,[cs.BLUE,cs.RED]),l.set(Rg,[cs.BLUE,cs.PURPLE,cs.MAGENTA,cs.PINK,cs.RED,cs.ORANGE,cs.YELLOW,cs.GREEN]),l.set(zc,[cs.BLUE,cs.RED]),l.set(Bc,cs.BLUE),l.set(Kr,cs.BLUE),l}},wd={BLUE:"#4472C4",ORANGE:"#ED7D31",GRAY:"#A5A5A5",YELLOW:"#FFC000",MODERATE_BLUE:"#5B9BD5",GREEN:"#70AD47",DARK_GRAY:"#7B7B7B",DARK_BLUE:"#264478",VERY_DARK_GRAY:"#636363",DARK_YELLOW:"#997300"},iu={BLUE:"#6899ee",ORANGE:"#ffa55d",GRAY:"#cdcdcd",YELLOW:"#ffea53",MODERATE_BLUE:"#82c3ff",GREEN:"#96d56f",DARK_GRAY:"#a1a1a1",DARK_BLUE:"#47689f",VERY_DARK_GRAY:"#878787",DARK_YELLOW:"#c0993d"},GO=class extends zg{getDefaultColors(){return{fills:et(pe({},wd),{RED:wd.ORANGE}),strokes:et(pe({},iu),{RED:iu.ORANGE}),up:{fill:wd.GREEN,stroke:iu.GREEN},down:{fill:wd.ORANGE,stroke:iu.ORANGE},neutral:{fill:wd.GRAY,stroke:iu.GRAY},altUp:{fill:wd.BLUE,stroke:iu.BLUE},altDown:{fill:wd.ORANGE,stroke:iu.ORANGE},altNeutral:{fill:wd.GRAY,stroke:iu.GRAY}}}getTemplateParameters(){let l=super.getTemplateParameters();return l.set(Nc,[wd.ORANGE,wd.YELLOW,wd.GREEN]),l.set(zc,[wd.GREEN,wd.YELLOW,wd.ORANGE]),l.set(Bc,wd.BLUE),l.set(Kr,wd.BLUE),l}},_r={BLUE:"#5281d5",ORANGE:"#ff8d44",GRAY:"#b5b5b5",YELLOW:"#ffd02f",MODERATE_BLUE:"#6aabe6",GREEN:"#7fbd57",DARK_GRAY:"#8a8a8a",DARK_BLUE:"#335287",VERY_DARK_GRAY:"#717171",DARK_YELLOW:"#a98220"},Pf={BLUE:"#214d9b",ORANGE:"#c25600",GRAY:"#7f7f7f",YELLOW:"#d59800",MODERATE_BLUE:"#3575ac",GREEN:"#4b861a",DARK_GRAY:"#575757",DARK_BLUE:"#062253",VERY_DARK_GRAY:"#414141",DARK_YELLOW:"#734f00"},oy=class extends Vh{getDefaultColors(){return{fills:et(pe({},_r),{RED:_r.ORANGE}),strokes:et(pe({},Pf),{RED:Pf.ORANGE}),up:{fill:_r.GREEN,stroke:Pf.GREEN},down:{fill:_r.ORANGE,stroke:Pf.ORANGE},neutral:{fill:Pf.GRAY,stroke:Pf.GRAY},altUp:{fill:_r.BLUE,stroke:Pf.BLUE},altDown:{fill:_r.ORANGE,stroke:Pf.ORANGE},altNeutral:{fill:_r.GRAY,stroke:Pf.GRAY}}}getTemplateParameters(){let l=super.getTemplateParameters();return l.set(Nc,[_r.ORANGE,_r.YELLOW,_r.GREEN]),l.set(zc,[_r.GREEN,_r.YELLOW,_r.ORANGE]),l.set(Bc,_r.BLUE),l.set(Kr,_r.BLUE),l}},Ds={BLUE:"#0083ff",ORANGE:"#ff6600",GREEN:"#00af00",CYAN:"#00ccff",YELLOW:"#f7c700",VIOLET:"#ac26ff",GRAY:"#a7a7b7",MAGENTA:"#e800c5",BROWN:"#b54300",RED:"#ff0000"},Lf={BLUE:"#67b7ff",ORANGE:"#ffc24d",GREEN:"#5cc86f",CYAN:"#54ebff",VIOLET:"#fff653",YELLOW:"#c18aff",GRAY:"#aeaeae",MAGENTA:"#f078d4",BROWN:"#ba8438",RED:"#ff726e"},ry=class extends zg{getDefaultColors(){return{fills:Ds,strokes:Lf,up:{fill:Ds.GREEN,stroke:Lf.GREEN},down:{fill:Ds.RED,stroke:Lf.RED},neutral:{fill:Ds.GRAY,stroke:Lf.GRAY},altUp:{fill:Ds.BLUE,stroke:Lf.BLUE},altDown:{fill:Ds.ORANGE,stroke:Lf.ORANGE},altNeutral:{fill:Ds.GRAY,stroke:Lf.GRAY}}}getTemplateParameters(){let l=super.getTemplateParameters();return l.set(Nc,[Ds.ORANGE,Ds.YELLOW,Ds.GREEN]),l.set(Rg,["#0083ff","#0076e6","#0069cc","#005cb3","#004f99","#004280","#003466","#00274c"]),l.set(zc,[Ds.GREEN,Ds.YELLOW,Ds.RED]),l.set(Bc,Ds.BLUE),l.set(Kr,Ds.BLUE),l}},hc={BLUE:"#0083ff",ORANGE:"#ff6600",GREEN:"#00af00",CYAN:"#00ccff",YELLOW:"#f7c700",VIOLET:"#ac26ff",GRAY:"#a7a7b7",MAGENTA:"#e800c5",BROWN:"#b54300",RED:"#ff0000"},Gg={BLUE:"#0f68c0",ORANGE:"#d47100",GREEN:"#007922",CYAN:"#009ac2",VIOLET:"#bca400",YELLOW:"#753cac",GRAY:"#646464",MAGENTA:"#9b2685",BROWN:"#6c3b00",RED:"#cb0021"},iR=class extends Vh{getDefaultColors(){return{fills:hc,strokes:Gg,up:{fill:hc.GREEN,stroke:Gg.GREEN},down:{fill:hc.RED,stroke:Gg.RED},neutral:{fill:hc.GRAY,stroke:Gg.GRAY},altUp:{fill:hc.BLUE,stroke:Gg.BLUE},altDown:{fill:hc.ORANGE,stroke:Gg.ORANGE},altNeutral:{fill:hc.GRAY,stroke:Gg.GRAY}}}getTemplateParameters(){let l=super.getTemplateParameters();return l.set(Nc,[hc.ORANGE,hc.YELLOW,hc.GREEN]),l.set(Rg,["#0083ff","#1a8fff","#339cff","#4da8ff","#66b5ff","#80c1ff","#99cdff","#b3daff"]),l.set(zc,[hc.GREEN,hc.YELLOW,hc.RED]),l.set(Bc,hc.BLUE),l.set(Kr,hc.BLUE),l}},il=Ml(()=>new Vh),Kz=Ml(()=>new zg),nR={"ag-default-dark":Kz,"ag-sheets-dark":Ml(()=>new GO),"ag-polychroma-dark":Ml(()=>new Uz),"ag-vivid-dark":Ml(()=>new ry),"ag-material-dark":Ml(()=>new Wz),"ag-financial-dark":Ml(()=>new zO),null:il,undefined:il,"ag-default":il,"ag-sheets":Ml(()=>new oy),"ag-polychroma":Ml(()=>new BO),"ag-vivid":Ml(()=>new iR),"ag-material":Ml(()=>new Rf),"ag-financial":Ml(()=>new Hz)},aR=Ml(jO);function jO(l){if(l instanceof Vh)return l;if(l==null||typeof l=="string"){let c=nR[l];return c?c():(Pi.warnOnce(`the theme [${l}] is invalid, using [ag-default] instead.`),il())}if(gn(l,OL,"theme")){let c=LL(l),y=c.baseTheme?aR(c.baseTheme):il();return new y.constructor(c)}return il()}function LL(l){let c=l,y,I=[];for(;typeof c=="object";)y!=null||(y=c.palette),c.overrides&&I.push(c.overrides),c=c.baseTheme;return{baseTheme:c,overrides:Wi(...I),palette:y}}var OL={baseTheme:uc(ju,sC),overrides:sC,palette:{fills:lC(ju),strokes:lC(ju),up:{fill:ju,stroke:ju},down:{fill:ju,stroke:ju},neutral:{fill:ju,stroke:ju}}},_L=new Set(["map-shape-background","map-line-background"]),F1=class $w{constructor(c,y,I,O,j){this.debug=Ua.create(!0,"opts"),this.optionMetadata=O!=null?O:{},this.processedOverrides=y!=null?y:{};let H=null;if(c instanceof $w){if(H=c,this.specialOverrides=H.specialOverrides,!j)throw new Error("AG Charts - internal error: deltaOptions must be supplied.");this.userOptions=Wi(j,Ss(H.userOptions,$w.OPTIONS_CLONE_OPTS))}else this.userOptions=c,this.specialOverrides=this.specialOverridesDefaults(pe({},I));let K,Z,te,se;j!=null&&$w.isFastPathDelta(j)&&H!=null?{activeTheme:K,processedOptions:Z,defaultAxes:te,fastDelta:se}=this.fastSetup(j,H):{activeTheme:K,processedOptions:Z,defaultAxes:te}=this.slowSetup(y,j),this.activeTheme=K,this.processedOptions=Z,this.defaultAxes=te,this.fastDelta=se}static isFastPathDelta(c){for(let y of Object.keys(c))if(!this.FAST_PATH_OPTIONS.has(y))return!1;return!0}fastSetup(c,y){let{activeTheme:I,defaultAxes:O,processedOptions:j}=y,{presetType:H}=this.optionMetadata,K=H?Fn[H]:void 0;H!=null&&c.data!=null&&K!=null&&(c=Wi(K(c.data),c)),this.fastSeriesSetup(c,j);let Z=Wi(c,j);return{activeTheme:I,defaultAxes:O,processedOptions:Z,fastDelta:c}}fastSeriesSetup(c,y){var I;c.series&&((I=c.series)!=null&&I.every((O,j)=>{var H,K;return kx(O,(K=(H=y.series)==null?void 0:H[j])!=null?K:{})})?delete c.series:c.series=c.series.map((O,j)=>{var H,K;return Wi(O,(K=(H=y.series)==null?void 0:H[j])!=null?K:{})}))}slowSetup(c,y){var Ge,He,Ze;let I=Ss(this.userOptions,$w.OPTIONS_CLONE_OPTS);y&&(I=Wi(y,I));let{presetType:O}=this.optionMetadata;if(O!=null){let it=qi[O],qe=this.userOptions,rt=this.userOptions.type,dt=rt!=null?aR(this.userOptions.theme).presets[rt]:void 0;this.debug(">>> AgCharts.createOrUpdate() - applying preset",qe),I=(Ge=it==null?void 0:it(qe,dt,()=>this.activeTheme))!=null?Ge:I}fn.isEnterprise||Xn(I);let j=aR(I.theme);this.sanityCheck(I),this.removeDisabledOptions(I);let H=this.getDefaultAxes(I),K=this.optionsType(I),We=this.getSeriesThemeConfig(K,j),{axes:Z={},annotations:te={},series:se}=We,ge=ji(We,["axes","annotations","series"]),[Se,Ce]=this.splitAnnotationsOptions(te),Pe=Wi(c,I,Se,ge,H);return this.processAxesOptions(Pe,Z),this.processSeriesOptions(Pe,j),this.processMiniChartSeriesOptions(Pe,j),this.annotationThemes=Ce,Pe=Ss(Pe,$w.OPTIONS_CLONE_OPTS),(To(Pe)||Mb(Pe)||_h(Pe))&&((He=Pe.legend)==null?void 0:He.enabled)==null&&((Ze=Pe.legend)!=null||(Pe.legend={}),Pe.legend.enabled=Pe.series.length>1),this.enableConfiguredOptions(Pe,this.userOptions),j.templateTheme(Pe,!1),this.removeDisabledOptions(I),Ga(Pe),fn.isEnterprise||Xn(Pe,!0),this.debug("AgCharts.createOrUpdate() - processed options",Pe),{activeTheme:j,processedOptions:Pe,defaultAxes:H}}diffOptions(c){var y;return this===c?{}:c==null?this.processedOptions:(y=this.fastDelta)!=null?y:ad(c.processedOptions,this.processedOptions)}getSeriesThemeConfig(c,y){var I;return(I=y==null?void 0:y.config[c])!=null?I:{}}getDefaultAxes(c){var O,j;let y=this.optionsType(c),I=(j=(O=c.series)==null?void 0:O.find(H=>{var K;return((K=H.type)!=null?K:"line")===y}))!=null?j:{};return Wr.cloneDefaultAxes(y,I)}optionsType(c){var y,I,O;return(O=(I=(y=c.series)==null?void 0:y[0])==null?void 0:I.type)!=null?O:"line"}sanityCheck(c){this.axesTypeIntegrity(c),this.seriesTypeIntegrity(c),this.soloSeriesIntegrity(c)}splitAnnotationsOptions(c){let K=c,{axesButtons:y=null,enabled:I=null,optionsToolbar:O=null,toolbar:j=null}=K,H=ji(K,["axesButtons","enabled","optionsToolbar","toolbar"]);return y==null&&I==null&&O==null&&j==null?[{},H]:[{annotations:{axesButtons:y,enabled:I,optionsToolbar:O,toolbar:j}},H]}processAxesOptions(c,y){var I;"axes"in c&&(c.axes=(I=c.axes)==null?void 0:I.map(O=>{var Ce,Ge,We;let Pe=Wi((Ce=y[O.type])==null?void 0:Ce[O.position],y[O.type]),{crossLines:j}=Pe,H=ji(Pe,["crossLines"]);O.crossLines&&(O.crossLines=ko(O.crossLines,j));let K=(Ge=H.gridLine)==null?void 0:Ge.style;(We=O.gridLine)!=null&&We.style&&(K!=null&&K.length)&&(O.gridLine.style=O.gridLine.style.map((Ze,it)=>Ze.stroke!=null||Ze.lineDash!=null?Wi(Ze,K.at(it%K.length)):Ze));let He=Wi(O,H),{top:Z,right:te,bottom:se,left:ge}=He;return ji(He,["top","right","bottom","left"])}))}processSeriesOptions(c,y){var K,Z;let I=this.getTooltipPositionDefaults(c),O=Ke(c.theme)?jc((K=c.theme)==null?void 0:K.palette):"inbuilt",j={colourIndex:0,userPalette:O},H=(Z=c.series)==null?void 0:Z.map(te=>{var We,He;(We=te.type)!=null||(te.type=this.getDefaultSeriesType(c));let Ze=(He=this.getSeriesThemeConfig(te.type,y).series)!=null?He:{},{innerLabels:se}=Ze,ge=ji(Ze,["innerLabels"]),Se=_L.has(te.type)?{colourIndex:0,userPalette:O}:j,Ce=this.getSeriesPalette(te.type,Se,y),Pe=this.getTooltipRangeDefaults(c,te.type),Ge=Wi(this.getSeriesGroupingOptions(te),te,I,Pe,ge,Ce,{visible:!0});return Ge.innerLabels&&(Ge.innerLabels=ko(Ge.innerLabels,se)),Ge});c.series=this.setSeriesGroupingOptions(H!=null?H:[])}processMiniChartSeriesOptions(c,y){var j,H;let I=(H=(j=c.navigator)==null?void 0:j.miniChart)==null?void 0:H.series;if(I==null)return;let O={colourIndex:0,userPalette:Ke(c.theme)?jc(c.theme.palette):"inbuilt"};I=I.map(K=>{var se,ge;(se=K.type)!=null||(K.type="line");let Se=(ge=this.getSeriesThemeConfig(K.type,y).series)!=null?ge:{},{innerLabels:Z}=Se,te=ji(Se,["innerLabels"]);return Wi(this.getSeriesGroupingOptions(K),K,te,this.getSeriesPalette(K.type,O,y))}),c.navigator.miniChart.series=this.setSeriesGroupingOptions(I)}getSeriesPalette(c,y,I){let O=Wr.getPaletteFactory(c),{colourIndex:j,userPalette:H}=y,{fills:K=[],strokes:Z=[]}=I.palette;return O==null?void 0:O({userPalette:H,colorsCount:Math.max(K.length,Z.length),themeTemplateParameters:I.getTemplateParameters(),palette:I.palette,takeColors(te){return y.colourIndex+=te,{fills:pi(K,te,j),strokes:pi(Z,te,j)}}})}getSeriesGroupingOptions(c){let y=Wr.isGroupable(c.type),I=Wr.isStackable(c.type),O=Wr.isStackedByDefault(c.type);c.grouped&&!y&&Pi.warnOnce(`unsupported grouping of series type "${c.type}".`),(c.stacked||c.stackGroup)&&!I&&Pi.warnOnce(`unsupported stacking of series type "${c.type}".`);let{grouped:j,stacked:H}=c;return H!=null||(H=(O||c.stackGroup!=null)&&!(y&&j)),j!=null||(j=!0),{stacked:I&&H,grouped:y&&j&&!(I&&H)}}setSeriesGroupingOptions(c){let y=this.getSeriesGrouping(c);this.debug("setSeriesGroupingOptions() - series grouping: ",y);let I={},O=y.reduce((j,H)=>{var Z;var K;return H.groupType==="default"||((Z=j[K=H.seriesType])!=null||(j[K]=0),j[H.seriesType]+=H.groupType==="stack"?1:H.series.length),j},{});return y.flatMap(j=>{var K;var H;switch((K=I[H=j.seriesType])!=null||(I[H]=0),j.groupType){case"stack":{let Z=I[j.seriesType]++;return j.series.map((te,se)=>Object.assign(te,{seriesGrouping:{groupId:j.groupId,groupIndex:Z,groupCount:O[j.seriesType],stackIndex:se,stackCount:j.series.length}}))}case"group":return j.series.map(Z=>Object.assign(Z,{seriesGrouping:{groupId:j.groupId,groupIndex:I[j.seriesType]++,groupCount:O[j.seriesType],stackIndex:0,stackCount:0}}))}return j.series}).map(Z=>{var te=Z,{stacked:j,grouped:H}=te,K=ji(te,["stacked","grouped"]);return K})}getSeriesGroupId(c){var y;return[c.type,c.xKey,c.stacked?(y=c.stackGroup)!=null?y:"stacked":"grouped"].filter(Boolean).join("-")}getSeriesGrouping(c){let y=new Map;return c.reduce((I,O)=>{let j=O.type;if(!O.stacked&&!O.grouped)I.push({groupType:"default",seriesType:j,series:[O],groupId:"__default__"});else{let H=this.getSeriesGroupId(O);if(!y.has(H)){let Z={groupType:O.stacked?"stack":"group",seriesType:j,series:[],groupId:H};y.set(H,Z),I.push(Z)}y.get(H).series.push(O)}return I},[])}getDefaultSeriesType(c){if(To(c))return"line";if(Fc(c))return"pie";if(Rv(c))return"treemap";if(sM(c))return"map-shape";if(lM(c))return"sankey";if(Mb(c))return"pyramid";if(Iu(c))return"radial-gauge";throw new Error("Invalid chart options type detected.")}getTooltipPositionDefaults(c){var K;let y=(K=c.tooltip)==null?void 0:K.position;if(!ct(y))return;let{type:I,xOffset:O,yOffset:j}=y,H={};return ht(I)&&xi(m,I)&&(H.type=I),_t(O)&&(H.xOffset=O),_t(j)&&(H.yOffset=j),{tooltip:{position:H}}}getTooltipRangeDefaults(c,y){var I,O,j;return{tooltip:{range:(j=(I=c.tooltip)==null?void 0:I.range)!=null?j:(O=Wr.getTooltipDefauls(y))==null?void 0:O.range}}}axesTypeIntegrity(c){if("axes"in c&&c.axes){let y=c.axes;for(let{type:I}of y)if(!ss(I)){delete c.axes;let O=Zs.publicKeys().join(", ");Pi.warnOnce(`unknown axis type: ${I}; expected one of: ${O}`)}}}seriesTypeIntegrity(c){var y;c.series=(y=c.series)==null?void 0:y.filter(({type:I})=>{if(I==null||yg(I)||K0(I))return!0;Pi.warnOnce(`unknown series type: ${JSON.stringify(I)}; expected one of: ${nT.seriesTypes.join(", ")}`)})}soloSeriesIntegrity(c){let y=c.series;if(y&&y.length>1&&y.some(I=>Wr.isSolo(I.type))){let I=this.optionsType(c);if(Wr.isSolo(I))Pi.warn(`series[0] of type '${I}' is incompatible with other series types. Only processing series[0]`),c.series=y.slice(0,1);else{let{solo:O,nonSolo:j}=Ac(y,K=>Wr.isSolo(K.type)?"solo":"nonSolo"),H=Qf(O.map(K=>K.type)).join(", ");Pi.warn(`Unable to mix these series types with the lead series type: ${H}`),c.series=j}}}static enableConfiguredJsonOptions(c,y){y&&"enabled"in y&&!y._enabledFromTheme&&c.enabled==null&&(y.enabled=!0)}static cleanupEnabledFromThemeJsonOptions(c){c._enabledFromTheme!=null&&delete c._enabledFromTheme}enableConfiguredOptions(c,y){Ah(y,$w.enableConfiguredJsonOptions,new Set(["data","theme"]),c),Ah(c,$w.cleanupEnabledFromThemeJsonOptions,new Set(["data","theme"]))}static removeDisabledOptionJson(c){"enabled"in c&&c.enabled===!1&&Object.keys(c).forEach(y=>{y!=="enabled"&&delete c[y]})}removeDisabledOptions(c){Ah(c,$w.removeDisabledOptionJson,new Set(["data","theme"]))}specialOverridesDefaults(c){if(c.window!=null?Cx(c.window):typeof window!="undefined"?c.window=window:typeof global!="undefined"&&(c.window=global.window),c.document!=null?bx(c.document):typeof document!="undefined"?c.document=document:typeof global!="undefined"&&(c.document=global.document),c.window==null)throw new Error("AG Charts - unable to resolve global window");if(c.document==null)throw new Error("AG Charts - unable to resolve global document");return c}};F1.OPTIONS_CLONE_OPTS=new Set(["data","container"]),F1.FAST_PATH_OPTIONS=new Set(["data","width","height"]);var oR=F1,Of=100,N1=class dI{constructor(c,y,I,O,j,H=Of){this.name=c,this.buildItem=y,this.releaseItem=I,this.destroyItem=O,this.maxPoolSize=j,this.cleanupTimeMs=H,this.freePool=[],this.busyPool=new Set}static getPool(c,y,I,O,j){return this.pools.has(c)||this.pools.set(c,new dI(c,y,I,O,j)),this.pools.get(c)}isFull(){return this.freePool.length+this.busyPool.size>=this.maxPoolSize}obtain(c){if(this.freePool.length===0&&this.isFull())throw new Error("AG Charts - pool exhausted");let y=this.freePool.pop();return y==null?(y=this.buildItem(c),dI.debug(`Pool[name=${this.name}]: Created instance (${this.freePool.length} / ${this.busyPool.size+1} / ${this.maxPoolSize})`,y)):dI.debug(`Pool[name=${this.name}]: Re-used instance (${this.freePool.length} / ${this.busyPool.size+1} / ${this.maxPoolSize})`,y),this.busyPool.add(y),{item:y,release:()=>this.release(y)}}release(c){if(!this.busyPool.has(c))throw new Error("AG Charts - cannot free item from pool which is not tracked as busy.");dI.debug(`Pool[name=${this.name}]: Releasing instance (${this.freePool.length} / ${this.busyPool.size} / ${this.maxPoolSize})`,c),this.releaseItem(c),this.busyPool.delete(c),this.freePool.push(c),dI.debug(`Pool[name=${this.name}]: Returned instance to free pool (${this.freePool.length} / ${this.busyPool.size} / ${this.maxPoolSize})`,c),this.cleanPoolTimer&&clearTimeout(this.cleanPoolTimer),this.cleanPoolTimer=setTimeout(()=>{this.cleanPool()},this.cleanupTimeMs)}cleanPool(){let c=this.freePool.splice(0);for(let y of c)this.destroyItem(y);dI.debug(`Pool[name=${this.name}]: Cleaned pool of ${c.length} items (${this.freePool.length} / ${this.busyPool.size} / ${this.maxPoolSize})`)}destroy(){this.cleanPool();for(let c of this.busyPool.values())this.destroyItem(c);this.busyPool.clear()}};N1.pools=new Map,N1.debug=Ua.create(!0,"pool");var ow=N1,rw=Ua.create(!0,"opts");function z1(l){if(To(l))return"cartesian";if(Fc(l))return"polar";if(Rv(l))return"hierarchy";if(sM(l))return"topology";if(lM(l))return"flow-proportion";if(Mb(l))return"standalone";if(Iu(l))return"gauge";throw new Error(`AG Chart - unknown type of chart for options with type: ${l.type}`)}var So=class{static licenseCheck(l){var c,y;this.licenseChecked||(this.licenseManager=(c=fn.licenseManager)==null?void 0:c.call(fn,l),(y=this.licenseManager)==null||y.validateLicense(),this.licenseChecked=!0)}static getLicenseDetails(l){var c;return(c=fn.licenseManager)==null?void 0:c.call(fn,{}).getLicenseDetails(l)}static getInstance(l){return B1.getInstance(l)}static create(l,c){var I,O;this.licenseCheck(l);let y=B1.createOrUpdate({userOptions:l,licenseManager:this.licenseManager,optionsMetadata:c});return(I=this.licenseManager)!=null&&I.isDisplayWatermark()&&this.licenseManager&&((O=fn.injectWatermark)==null||O.call(fn,y.chart.ctx.domManager,this.licenseManager.getWatermarkMessage())),y}static createFinancialChart(l){return this.create(l,{presetType:"price-volume"})}static createGauge(l){return this.create(l,{presetType:"gauge"})}static __createSparkline(l){let I=l,{pool:c}=I,y=ji(I,["pool"]);return this.create(y,{presetType:"sparkline",pool:c!=null?c:!0})}};So.licenseChecked=!1;var Vo=class Qw{static getInstance(c){let y=Ud.getInstance(c);return y?VD.chartInstances.get(y):void 0}static initialiseModules(){Qw.initialised||(L1(),QT(),Qw.initialised=!0)}static createOrUpdate(c){var dt,mt,yt,Ht,qt,ri,Ei;let{proxy:y}=c,{userOptions:I,licenseManager:O,processedOverrides:j=(dt=y==null?void 0:y.chart.chartOptions.processedOverrides)!=null?dt:{},specialOverrides:H=(mt=y==null?void 0:y.chart.chartOptions.specialOverrides)!=null?mt:{},optionsMetadata:K=(yt=y==null?void 0:y.chart.chartOptions.optionMetadata)!=null?yt:{},deltaOptions:Z}=c,te=fn.styles!=null?[["ag-charts-enterprise",fn.styles]]:[],{presetType:se}=K;Qw.initialiseModules(),rw(">>> AgCharts.createOrUpdate() user options",I);let ge=I;So.optionsMutationFn&&ge&&(ge=So.optionsMutationFn(Ss(ge),se),rw(">>> AgCharts.createOrUpdate() MUTATED user options",ge));let Lt=ge!=null?ge:{},{overrideDevicePixelRatio:Se,document:Ce,window:Pe,styleContainer:Ge}=Lt,We=ji(Lt,["overrideDevicePixelRatio","document","window","styleContainer"]),He=(Ht=Z?y==null?void 0:y.chart.getChartOptions():We)!=null?Ht:We,Ze=new oR(He,j,et(pe({},H),{document:Ce,window:Pe,overrideDevicePixelRatio:Se,styleContainer:Ge}),K,Z),it=!1,qe=y==null?void 0:y.chart,rt;return(qe==null||z1(Ze.processedOptions)!==z1(qe==null?void 0:qe.chartOptions.processedOptions))&&(rt=(qt=this.getPool(Ze))==null?void 0:qt.obtain(Ze),rt?qe=rt.item:(it=!0,qe=Qw.createChartInstance(Ze,qe)),te==null||te.forEach(([Ni,Vi])=>{qe==null||qe.ctx.domManager.addStyles(Ni,Vi)})),y==null?(y=new VD(qe,Qw.callbackApi,O),y.releaseChart=rt==null?void 0:rt.release):(rt||it)&&((ri=y.releaseChart)==null||ri.call(y),y.chart=qe,y.releaseChart=rt==null?void 0:rt.release),rw.check()&&typeof window!="undefined"&&((Ei=window.agChartInstances)!=null||(window.agChartInstances={}),window.agChartInstances[qe.id]=qe),qe.queuedUserOptions.push(Ze.userOptions),qe.queuedChartOptions.push(Ze),qe.requestFactoryUpdate(Ni=>{Ni.applyOptions(Ze);let Vi=Ni.queuedUserOptions.indexOf(Ze.userOptions)+1;Ni.queuedUserOptions.splice(0,Vi),Ni.queuedChartOptions.splice(0,Vi)}),y}static markRemovedProperties(c){if(typeof c=="object")for(let[y,I]of Object.entries(c))typeof I=="undefined"&&Object.assign(c,{[y]:Symbol("UNSET")})}static updateUserDelta(c,y){y=Ss(y,new Set(["data"])),Ah(y,Qw.markRemovedProperties,new Set(["data"])),rw(">>> AgCharts.updateUserDelta() user delta",y),Qw.createOrUpdate({proxy:c,deltaOptions:y})}static createChartInstance(c,y){let I=y==null?void 0:y.destroy({keepTransferableResources:!0}),O=Qw.getChartByOptions(c.processedOptions);return new O(c,I)}static getChartByOptions(c){if(To(c))return pT;if(Rv(c))return If;if(Fc(c))return YS;if(sM(c))return Jd;if(lM(c))return Rl;if(Mb(c))return XS;if(Iu(c))return qS;throw new Error("AG Charts - couldn't apply configuration, check options are correctly structured and series types are specified")}static getPool(c){var y;if(c.optionMetadata.pool===!0)return ow.getPool((y=c.optionMetadata.presetType)!=null?y:"default",this.createChartInstance,this.detachAndClear,this.destroy,1/0)}};Vo.caretaker=new gb(za),Vo.initialised=!1,Vo.callbackApi={caretaker:Vo.caretaker,create(l,c,y,I){return Vo.createOrUpdate({userOptions:l,processedOverrides:c,specialOverrides:y,optionsMetadata:I})},update(l,c){return Vo.createOrUpdate({userOptions:l,proxy:c})},updateUserDelta(l,c){return Vo.updateUserDelta(l,c)}},Vo.detachAndClear=l=>l.detachAndClear(),Vo.destroy=l=>l.destroy();var B1=Vo,Qp={};M(Qp,{Arc:()=>Ll,BBox:()=>ft,BandScale:()=>Wl,Caption:()=>mo,Circle:()=>Cg,Group:()=>Mn,Line:()=>ns,LinearScale:()=>pd,Path:()=>ic,RadialColumnShape:()=>Vc,Rect:()=>oo,Scene:()=>Mv,Sector:()=>tl,Shape:()=>Wn,TranslatableGroup:()=>yl,getRadialColumnWidth:()=>dC,toRadians:()=>$e});var Ll=class extends ic{constructor(){super(),this.centerX=0,this.centerY=0,this.radius=10,this.startAngle=0,this.endAngle=Math.PI*2,this.counterClockwise=!1,this.type=0,this.restoreOwnStyles()}get fullPie(){return Ue(ha(this.startAngle),ha(this.endAngle))}updatePath(){let l=this.path;l.clear(),l.arc(this.centerX,this.centerY,this.radius,this.startAngle,this.endAngle,this.counterClockwise),this.type===1?l.closePath():this.type===2&&!this.fullPie&&(l.lineTo(this.centerX,this.centerY),l.closePath())}computeBBox(){return new ft(this.centerX-this.radius,this.centerY-this.radius,this.radius*2,this.radius*2)}isPointInPath(l,c){let y=this.getBBox();return this.type!==0&&y.containsPoint(l,c)&&this.path.isPointInPath(l,c)}};Ll.className="Arc",Ll.defaultStyles=et(pe({},Wn.defaultStyles),{lineWidth:1,fillStyle:null}),D([Pn()],Ll.prototype,"centerX",2),D([Pn()],Ll.prototype,"centerY",2),D([Pn()],Ll.prototype,"radius",2),D([Pn()],Ll.prototype,"startAngle",2),D([Pn()],Ll.prototype,"endAngle",2),D([Pn()],Ll.prototype,"counterClockwise",2),D([Pn()],Ll.prototype,"type",2);function Jp(l,c,y){let I=Math.sqrt(l**2+c**2),j=Math.atan2(c,l)+y;return{x:Math.cos(j)*I,y:Math.sin(j)*I}}var Vc=class extends ic{constructor(){super(...arguments),this.isBeveled=!0,this.columnWidth=0,this.startAngle=0,this.endAngle=0,this.outerRadius=0,this.innerRadius=0,this.axisInnerRadius=0,this.axisOuterRadius=0,this.isRadiusAxisReversed=!1}set cornerRadius(l){}computeBBox(){let{innerRadius:l,outerRadius:c,columnWidth:y}=this,I=this.getRotation(),O=-y/2,j=y/2,H=-c,K=-l,Z=1/0,te=1/0,se=-1/0,ge=-1/0;for(let Se=0;Se<4;Se+=1){let{x:Ce,y:Pe}=Jp(Se%2===0?O:j,Se<2?H:K,I);Z=Math.min(Ce,Z),te=Math.min(Pe,te),se=Math.max(Ce,se),ge=Math.max(Pe,ge)}return new ft(Z,te,se-Z,ge-te)}getRotation(){let{startAngle:l,endAngle:c}=this,y=d0(l,c);return ha(l+y/2+Math.PI/2)}updatePath(){let{isBeveled:l}=this;l?this.updateBeveledPath():this.updateRectangularPath(),this.checkPathDirty()}updateRectangularPath(){let{columnWidth:l,innerRadius:c,outerRadius:y,path:I}=this,O=-l/2,j=l/2,H=-y,K=-c,Z=this.getRotation(),te=[[O,K],[O,H],[j,H],[j,K]].map(([se,ge])=>Jp(se,ge,Z));I.clear(!0),I.moveTo(te[0].x,te[0].y),I.lineTo(te[1].x,te[1].y),I.lineTo(te[2].x,te[2].y),I.lineTo(te[3].x,te[3].y),I.closePath()}updateBeveledPath(){let{columnWidth:l,path:c,outerRadius:y,innerRadius:I,axisInnerRadius:O,axisOuterRadius:j,isRadiusAxisReversed:H}=this,K=Ue(I,O),Z=Math.asin(l/2/I),te=this.getRotation(),se=(yt,Lt)=>Jp(yt,Lt,te),ge=(yt,Lt)=>Math.sqrt(yt**2+Lt**2),Se=(yt,Lt)=>Lt>yt?0:Math.sqrt(yt**2-Lt**2),Ce=(yt,Lt,Ht)=>Ht?yt<Lt:yt>Lt,Pe=K&&!isNaN(Z)&&Z<Math.PI/6,Ge=-l/2,We=l/2,He=-y,Ze=-I*(Pe?Math.cos(Z):1),it=Ce(j,ge(I,l/2),!H);if(it){let yt=Se(j,I);Ge=-yt,We=yt}c.clear(!0);let qe=se(Ge,Ze);c.moveTo(qe.x,qe.y);let rt=Ue(I,y),dt=Ce(j,ge(y,l/2),!H);if(rt&&Pe)c.arc(0,0,I,ha(-Z-Math.PI/2)+te,ha(Z-Math.PI/2)+te,!1);else if(dt){let yt=-Se(j,l/2),Lt=Se(j,y);if(!it){let Ht=se(Ge,yt);c.lineTo(Ht.x,Ht.y)}if(c.arc(0,0,j,Math.atan2(yt,Ge)+te,Math.atan2(He,-Lt)+te,!1),!Ue(Lt,0)){let Ht=se(Lt,He);c.lineTo(Ht.x,Ht.y)}c.arc(0,0,j,Math.atan2(He,Lt)+te,Math.atan2(yt,We)+te,!1)}else{let yt=se(Ge,He),Lt=se(We,He);c.lineTo(yt.x,yt.y),c.lineTo(Lt.x,Lt.y)}let mt=se(We,Ze);if(c.lineTo(mt.x,mt.y),Pe)c.arc(0,0,I,ha(Z-Math.PI/2)+te,ha(-Z-Math.PI/2)+te,!0);else{let yt=se(Ge,Ze);c.lineTo(yt.x,yt.y)}c.closePath()}};Vc.className="RadialColumnShape",D([Pn()],Vc.prototype,"isBeveled",2),D([Pn()],Vc.prototype,"columnWidth",2),D([Pn()],Vc.prototype,"startAngle",2),D([Pn()],Vc.prototype,"endAngle",2),D([Pn()],Vc.prototype,"outerRadius",2),D([Pn()],Vc.prototype,"innerRadius",2),D([Pn()],Vc.prototype,"axisInnerRadius",2),D([Pn()],Vc.prototype,"axisOuterRadius",2),D([Pn()],Vc.prototype,"isRadiusAxisReversed",2);function dC(l,c,y,I,O){let j=d0(l,c),H=j*(1-I)/2;if(l+=H,c-=H,j<.001)return 2*y*O;if(j>=2*Math.PI){let Ce=l+j/2;l=Ce-Math.PI,c=Ce+Math.PI}let K=y*Math.cos(l),Z=y*Math.sin(l),te=y*Math.cos(c),se=y*Math.sin(c),ge=Math.floor(Math.sqrt((K-te)**2+(Z-se)**2)),Se=2*y*O;return Math.max(1,Math.min(Se,ge))}var uC={};M(uC,{ChartTheme:()=>Vh,DEFAULT_ANNOTATION_BACKGROUND_FILL:()=>Kr,DEFAULT_ANNOTATION_COLOR:()=>Bc,DEFAULT_ANNOTATION_HANDLE_FILL:()=>Pg,DEFAULT_ANNOTATION_STATISTICS_COLOR:()=>Uv,DEFAULT_ANNOTATION_STATISTICS_DIVIDER_STROKE:()=>Xb,DEFAULT_ANNOTATION_STATISTICS_DOWN_FILL:()=>ZM,DEFAULT_ANNOTATION_STATISTICS_DOWN_STROKE:()=>bo,DEFAULT_ANNOTATION_STATISTICS_FILL:()=>Yb,DEFAULT_ANNOTATION_STATISTICS_STROKE:()=>ff,DEFAULT_AXIS_GRID_COLOUR:()=>Ms,DEFAULT_AXIS_LINE_COLOUR:()=>Wb,DEFAULT_BACKGROUND_COLOUR:()=>Eg,DEFAULT_CAPTION_ALIGNMENT:()=>hf,DEFAULT_CAPTION_LAYOUT_STYLE:()=>Np,DEFAULT_COLOURS:()=>wS,DEFAULT_CROSS_LINES_COLOUR:()=>Ub,DEFAULT_DIVERGING_SERIES_COLOR_RANGE:()=>Nc,DEFAULT_FIBONACCI_STROKES:()=>XM,DEFAULT_FONT_FAMILY:()=>Jo,DEFAULT_FUNNEL_SERIES_COLOR_RANGE:()=>Rg,DEFAULT_GAUGE_SERIES_COLOR_RANGE:()=>zc,DEFAULT_GRIDLINE_ENABLED:()=>rr,DEFAULT_HIERARCHY_FILLS:()=>qM,DEFAULT_HIERARCHY_STROKES:()=>YM,DEFAULT_INSIDE_SERIES_LABEL_COLOUR:()=>fd,DEFAULT_INVERTED_BACKGROUND_COLOUR:()=>Dl,DEFAULT_INVERTED_LABEL_COLOUR:()=>HM,DEFAULT_LABEL_COLOUR:()=>jo,DEFAULT_MUTED_LABEL_COLOUR:()=>vd,DEFAULT_NAVIGATOR_STROKE:()=>WM,DEFAULT_PADDING:()=>Xd,DEFAULT_POLAR_SERIES_STROKE:()=>KM,DEFAULT_SEPARATION_LINES_COLOUR:()=>SS,DEFAULT_SHADOW_COLOUR:()=>Ig,DEFAULT_SPARKLINE_CROSSHAIR_STROKE:()=>mf,DEFAULT_TEXTBOX_COLOR:()=>Lg,DEFAULT_TEXTBOX_FILL:()=>Zb,DEFAULT_TEXTBOX_STROKE:()=>Kv,DEFAULT_TEXT_ANNOTATION_COLOR:()=>xS,DEFAULT_TOOLBAR_POSITION:()=>qv,IS_COMMUNITY:()=>c1,IS_DARK_THEME:()=>Hb,IS_ENTERPRISE:()=>CS,PALETTE_ALT_DOWN_FILL:()=>pf,PALETTE_ALT_DOWN_STROKE:()=>UM,PALETTE_ALT_NEUTRAL_FILL:()=>d1,PALETTE_ALT_NEUTRAL_STROKE:()=>Tg,PALETTE_ALT_UP_FILL:()=>Ou,PALETTE_ALT_UP_STROKE:()=>Wv,PALETTE_DOWN_FILL:()=>ac,PALETTE_DOWN_STROKE:()=>zp,PALETTE_NEUTRAL_FILL:()=>qb,PALETTE_NEUTRAL_STROKE:()=>gf,PALETTE_UP_FILL:()=>Hv,PALETTE_UP_STROKE:()=>Kb,getChartTheme:()=>aR,themeNames:()=>Nk,themeSymbols:()=>l1,themes:()=>nR});var Nk=Object.keys(nR),sw={};M(sw,{Color:()=>eo,interpolateColor:()=>rn});var sy={VERSION:za,_Scene:Qp,_Theme:uC,_Util:sw,create:So.create.bind(So),createSparkline:So.__createSparkline.bind(So),setup:L1,isEnterprise:!1},rR={};M(rR,{AND:()=>Ld,ARRAY:()=>nv,ARRAY_OF:()=>Hn,AbstractBarSeries:()=>w1,AbstractBarSeriesProperties:()=>zS,ActionOnSet:()=>Xl,AnchoredPopover:()=>Xa,Animation:()=>_y,AnimationManager:()=>kv,Arc:()=>Ll,ArrowDown:()=>mR,ArrowUp:()=>Bk,Axis:()=>dg,AxisInterval:()=>rd,AxisLabel:()=>jr,AxisTick:()=>Mu,AxisTicks:()=>Z1,BBox:()=>ft,BBoxValues:()=>fe,BOOLEAN:()=>Zi,BOOLEAN_ARRAY:()=>Bs,Background:()=>Nh,BackgroundModule:()=>yS,BandScale:()=>Wl,BarSeries:()=>Il,BarSeriesModule:()=>kf,BaseModuleInstance:()=>M0,BaseProperties:()=>un,BaseToolbar:()=>Uu,ButtonWidget:()=>Cv,COLOR_STRING:()=>na,COLOR_STRING_ARRAY:()=>gl,CachedTextMeasurer:()=>dv,CachedTextMeasurerPool:()=>Cs,Caption:()=>mo,CartesianAxis:()=>Da,CartesianSeries:()=>Jm,CartesianSeriesNodeEvent:()=>AM,CartesianSeriesProperties:()=>Lp,CategoryAxis:()=>vp,ChangeDetectableProperties:()=>$M,ChartAxisDirection:()=>av,ChartEventManager:()=>O0,ChartOptions:()=>oR,ChartUpdateType:()=>j0,Circle:()=>Cg,CollapseMode:()=>m1,Color:()=>eo,ColorScale:()=>hi,ConicGradient:()=>tm,ContextMenuRegistry:()=>qx,ContinuousScale:()=>io,Cursor:()=>Yx,CursorManager:()=>bD,DATE:()=>ia,DATE_ARRAY:()=>i0,DATE_OR_DATETIME_MS:()=>jy,DEFAULT_CARTESIAN_DIRECTION_KEYS:()=>xg,DEFAULT_CARTESIAN_DIRECTION_NAMES:()=>Pp,DEFAULT_TOOLTIP_CLASS:()=>xl,DEFAULT_TOOLTIP_DARK_CLASS:()=>Lb,DIRECTION:()=>ig,DOMManager:()=>cd,DataController:()=>ID,DataModel:()=>U0,DataModelSeries:()=>MM,DataService:()=>_c,Debug:()=>Ua,Default:()=>lg,Deprecated:()=>ly,DeprecatedAndRenamedTo:()=>cy,Diamond:()=>Ep,DraggablePopover:()=>Ff,DropShadow:()=>Zd,ExtendedPath2D:()=>Ur,FONT_STYLE:()=>mh,FONT_WEIGHT:()=>fh,FUNCTION:()=>no,FloatingToolbar:()=>ou,GREATER_THAN:()=>Gy,GestureDetector:()=>Zx,Gradient:()=>pa,Group:()=>Mn,GroupedCategoryAxis:()=>kg,HdpiCanvas:()=>Lc,HierarchyNode:()=>dy,HierarchySeries:()=>au,HierarchySeriesProperties:()=>Vg,HighlightManager:()=>$x,HighlightProperties:()=>kM,HighlightStyle:()=>_b,INTERACTION_RANGE:()=>hp,INTERPOLATION_STEP_POSITION:()=>$b,INTERPOLATION_TYPE:()=>_g,Image:()=>df,InteractionManager:()=>yb,InteractionState:()=>Ox,InterpolationProperties:()=>_u,Invalidating:()=>ps,KeyNavManager:()=>Qx,LABEL_PLACEMENT:()=>ng,LARGEST_KEY_INTERVAL:()=>Nb,LESS_THAN:()=>ph,LINE_CAP:()=>Sa,LINE_DASH:()=>qo,LINE_JOIN:()=>tg,LINE_STYLE:()=>vI,Label:()=>Xo,LayoutElement:()=>Lx,LayoutManager:()=>k0,LegendMarkerLabel:()=>Ag,Line:()=>ns,LineSeries:()=>GS,LineSeriesModule:()=>Mk,LinearGradient:()=>sg,LinearScale:()=>pd,Listeners:()=>as,Logger:()=>Pi,LonLatBBox:()=>X1,MARKER_SHAPE:()=>ET,MATCHING_CROSSLINE_TYPE:()=>Fm,MAX_SPACING:()=>sx,MIN_SPACING:()=>o0,Marker:()=>Qs,Menu:()=>hC,MercatorScale:()=>Lk,ModuleRegistry:()=>sD,Motion:()=>cl,NAN:()=>t0,NODE_UPDATE_STATE_TO_PHASE_MAPPING:()=>Fs,NUMBER:()=>Vn,NUMBER_ARRAY:()=>Ic,NUMBER_OR_NAN:()=>ei,NativeWidget:()=>qs,Node:()=>Tn,OBJECT:()=>Gi,OBJECT_ARRAY:()=>Ta,OR:()=>km,OVERFLOW_STRATEGY:()=>yI,ObserveChanges:()=>mp,OrdinalTimeScale:()=>Vs,PHASE_METADATA:()=>Vl,PHASE_ORDER:()=>Jr,PLACEMENT:()=>td,PLAIN_OBJECT:()=>Br,POINTER_INTERACTION_TYPES:()=>WI,POSITION:()=>n0,POSITION_TOP_COORDINATES:()=>ob,POSITIVE_NUMBER:()=>Fi,PREV_NEXT_KEYS:()=>Cp,Padding:()=>yp,ParallelStateMachine:()=>ZA,Path:()=>ic,PointerEvents:()=>_i,PolarAxis:()=>Gu,PolarSeries:()=>Kp,PolarZIndexMap:()=>Bu,Popover:()=>tE,PropertiesArray:()=>ho,ProxyInteractionService:()=>Sl,ProxyOnWrite:()=>g0,ProxyProperty:()=>Ki,ProxyPropertyOnWrite:()=>aa,QUICK_TRANSITION:()=>_s,RATIO:()=>Ia,REAL_NUMBER:()=>Na,RENDER_TO_OFFSCREEN_CANVAS_THRESHOLD:()=>lS,RadialColumnShape:()=>Vc,Range:()=>Dh,Rect:()=>oo,RegionManager:()=>CD,RepeatType:()=>Oy,Rotatable:()=>Tm,RotatableGroup:()=>UA,RotatableText:()=>Ra,SKIP_JS_BUILTINS:()=>$r,SMALLEST_KEY_INTERVAL:()=>yT,SORT_DOMAIN_GROUPS:()=>EM,STRING:()=>ui,STRING_ARRAY:()=>Vy,Scalable:()=>mx,ScalableGroup:()=>Yy,Scene:()=>Mv,SceneChangeDetection:()=>kt,ScenePathChangeDetection:()=>Pn,Sector:()=>tl,SectorBox:()=>YT,Selection:()=>No,Series:()=>Lv,SeriesContentZIndexMap:()=>kb,SeriesGroupingChangedEvent:()=>J0,SeriesItemHighlightStyle:()=>Rp,SeriesMarker:()=>yd,SeriesNodeEvent:()=>Tu,SeriesNodePickMode:()=>Pv,SeriesProperties:()=>gd,SeriesTooltip:()=>oc,SeriesZIndexMap:()=>Xm,Shape:()=>Wn,SimpleTextMeasurer:()=>ql,SliderWidget:()=>E0,Square:()=>Tb,StateMachine:()=>Io,StateMachineProperty:()=>Om,SvgPath:()=>lr,TEXT_ALIGN:()=>a0,TEXT_WRAP:()=>Hy,TICK_INTERVAL:()=>rD,Text:()=>Gr,TextUtils:()=>po,TextWrapper:()=>m0,ThemeConstants:()=>s1,ThemeSymbols:()=>l1,TimeScale:()=>VA,Toolbar:()=>Gk,ToolbarButtonProperties:()=>Kh,ToolbarButtonWidget:()=>iE,ToolbarWidget:()=>I0,Tooltip:()=>Fh,TooltipManager:()=>ec,TooltipPosition:()=>$m,Transformable:()=>fr,TransformableText:()=>Hs,Translatable:()=>Rm,TranslatableGroup:()=>yl,Triangle:()=>wg,UNION:()=>wa,UpdateService:()=>QI,VERTICAL_ALIGN:()=>Wy,Validate:()=>Je,Vec2:()=>_f,Vec4:()=>Xs,WIDGET_HTML_EVENTS:()=>rs,Widget:()=>hg,WidgetEventUtil:()=>Du,ZIndexMap:()=>nD,ZoomManager:()=>xD,__FORCE_MODULE_DETECTION:()=>$1,accumulateGroup:()=>QD,accumulateStack:()=>JD,accumulatedValue:()=>UD,accumulativeValueProperty:()=>gS,addHitTestersToQuadtree:()=>iC,adjustLabelPlacement:()=>A1,angleBetween:()=>d0,angleDiff:()=>Ka,animationValidation:()=>af,areScalingEqual:()=>mn,area:()=>uS,arraysEqual:()=>eg,backfillPathPointData:()=>OS,buildFormatter:()=>up,buildResetPathFn:()=>pk,calculateDefaultTimeTickFormat:()=>e0,calculateDerivativeExtrema:()=>Ab,calculateDerivativeExtremaXY:()=>_v,calculateLabelChartPadding:()=>Nd,calculateLabelTranslation:()=>ab,calculatePlacement:()=>uM,checkCrisp:()=>Nu,circularSliceArray:()=>pi,clamp:()=>Ae,clampArray:()=>Ne,clippedRoundRect:()=>Al,clockwiseAngle:()=>KA,clockwiseAngles:()=>pp,collapsedStartingBarPosition:()=>Mf,compareDates:()=>xI,computeBarFocusBounds:()=>Ck,computeMarkerFocusBounds:()=>Fg,countFractionDigits:()=>Mt,createButton:()=>hR,createCheckbox:()=>gR,createDatumId:()=>Js,createDeprecationWarning:()=>jg,createElement:()=>Aa,createElementId:()=>Xy,createElementNS:()=>lv,createIcon:()=>zk,createId:()=>U,createSelect:()=>Q1,createTextArea:()=>J1,dateToNumber:()=>Uo,datesSortOrder:()=>s0,datumKeys:()=>xb,datumStylerProperties:()=>Ip,debounce:()=>bm,deconstructSelectionsOrNodes:()=>$f,deepClone:()=>Ss,deepFreeze:()=>Qr,deepMerge:()=>Cn,defaultTimeTickFormat:()=>Mm,diff:()=>sf,displacePointFromVector:()=>$y,doOnce:()=>sp,downloadUrl:()=>yx,drawCorner:()=>jb,easing:()=>cl,enterpriseModule:()=>fn,evaluateBezier:()=>bg,excludesType:()=>Oi,extent:()=>lp,extractDecoratedProperties:()=>ka,findMaxIndex:()=>hx,findMaxValue:()=>GA,findMinIndex:()=>Dm,findMinMax:()=>Re,findMinValue:()=>wI,findQuadtreeMatch:()=>xf,findRangeExtent:()=>Oe,fixNumericExtent:()=>tc,focusCursorAtEnd:()=>cv,formatNumber:()=>uv,formatPercent:()=>nd,formatValue:()=>id,fromToMotion:()=>yi,generateUUID:()=>X,getAngleRatioRadians:()=>qA,getDatumRefPoint:()=>eM,getDocument:()=>bs,getElementBBox:()=>Sx,getIconClassNames:()=>xx,getLastFocus:()=>Gd,getMarker:()=>Hd,getMissCount:()=>AD,getPath:()=>pr,getPathComponents:()=>DD,getRadialColumnWidth:()=>dC,getRectConfig:()=>vk,getWindow:()=>ca,groupAccumulativeValueProperty:()=>_p,groupAverage:()=>Gv,groupBy:()=>Ac,groupCount:()=>WD,groupStackValueProperty:()=>tf,groupSum:()=>HD,hasNoModifiers:()=>Au,identity:()=>YC,inRange:()=>Ve,includes:()=>cp,initMenuKeyNav:()=>Us,initRovingTabIndex:()=>bv,initToolbarKeyNav:()=>zI,interpolatePoints:()=>lc,isArray:()=>$t,isBetweenAngles:()=>ga,isBoolean:()=>nn,isButtonClickEvent:()=>Ks,isContinuous:()=>Eh,isDate:()=>bn,isDecoratedObject:()=>la,isDefined:()=>to,isDenseInterval:()=>r0,isEnumKey:()=>Bi,isEnumValue:()=>xi,isFiniteNumber:()=>_t,isFunction:()=>Yn,isHtmlElement:()=>ni,isInputPending:()=>wx,isInteger:()=>tt,isNegative:()=>Ee,isNumber:()=>Gt,isNumberEqual:()=>Ue,isObject:()=>Ke,isObjectLike:()=>pt,isPlainObject:()=>ct,isProperties:()=>fu,isRegExp:()=>En,isScaleValid:()=>qr,isString:()=>ht,isSymbol:()=>Ti,isValidDate:()=>zi,jsonApply:()=>Lm,jsonDiff:()=>ad,jsonPropertyCompare:()=>kx,jsonWalk:()=>Ah,keyProperty:()=>kl,labelDirectionHandling:()=>wu,legendSymbolSvg:()=>zv,lineDistanceSquared:()=>bl,listDecoratedProperties:()=>uo,makeAccessibleClickListener:()=>os,mapValues:()=>xc,markerFadeInAnimation:()=>Jb,markerPaletteFactory:()=>kS,markerScaleInAnimation:()=>wf,markerSwipeScaleInAnimation:()=>jp,mergeArrayDefaults:()=>ko,mergeDefaults:()=>Wi,midpointStartingBarPosition:()=>bk,minMax:()=>ck,mod:()=>ut,moduleRegistry:()=>ku,motion:()=>NL,nearestSquared:()=>xe,nearestSquaredInContainer:()=>Te,normaliseGroupTo:()=>zb,normalisePropertyTo:()=>Kd,normalisedExtentWithMetadata:()=>dl,normalizeAngle180:()=>rg,normalizeAngle360:()=>ha,normalizeAngle360Inclusive:()=>_n,objectsEqual:()=>xn,objectsEqualWith:()=>an,pairUpSpans:()=>Sf,partialAssign:()=>Lo,pathFadeInAnimation:()=>hk,pathFadeOutAnimation:()=>gk,pathMotion:()=>AS,pathSwipeInAnimation:()=>$v,pickByMatchingAngle:()=>aC,pickNode:()=>Pu,plotAreaPathFill:()=>jT,plotInterpolatedAreaSeriesFillSpans:()=>sk,plotInterpolatedLinePathStroke:()=>Qb,plotLinePathStroke:()=>ak,plotPath:()=>uk,predicateWithMessage:()=>xa,prepareAreaFillAnimationFns:()=>VT,prepareAreaPathAnimation:()=>lk,prepareAxisAnimationContext:()=>cg,prepareAxisAnimationFunctions:()=>Tx,prepareBarAnimationFunctions:()=>Qv,prepareLinePathAnimation:()=>GT,prepareLinePathPropertyAnimation:()=>rk,prepareLinePathStrokeAnimationFns:()=>ok,prepareMarkerAnimation:()=>y1,preparePieSeriesAnimationFunctions:()=>bd,range:()=>js,rangedValueProperty:()=>hS,renderPartialPath:()=>kL,resetAxisGroupFn:()=>db,resetAxisLabelSelectionFn:()=>w0,resetAxisLineSelectionFn:()=>hn,resetAxisSelectionFn:()=>Rx,resetBarSelectionsFn:()=>nC,resetIds:()=>G,resetLabelFn:()=>Og,resetMarkerFn:()=>eC,resetMarkerPositionFn:()=>tC,resetMotion:()=>Yo,resetPieSelectionsFn:()=>Ng,round:()=>at,sanitizeHtml:()=>Ib,scale:()=>Tr,sectorBox:()=>Ak,seriesLabelFadeInAnimation:()=>Ma,seriesLabelFadeOutAnimation:()=>vf,setAttribute:()=>fo,setAttributes:()=>br,setDocument:()=>bx,setElementBBox:()=>xh,setElementStyle:()=>$l,setPath:()=>Qh,setWindow:()=>Cx,shallowClone:()=>Pm,singleSeriesPaletteFactory:()=>Bp,solveBezier:()=>Ov,sortAndUniqueDates:()=>Em,sortBasedOnArray:()=>Ea,splitBezier:()=>hd,splitPairData:()=>_S,staticFromToMotion:()=>Rd,stopPageScrolling:()=>Jl,stringify:()=>vu,sum:()=>vL,sumValues:()=>dS,swapAxisCondition:()=>MS,throttle:()=>Ny,toArray:()=>XC,toDegrees:()=>zo,toRadians:()=>$e,tooltipContentAriaLabel:()=>BD,trailingAccumulatedValue:()=>fT,trailingAccumulatedValueProperty:()=>Op,unique:()=>Qf,updateClipPath:()=>mk,updateLabelNode:()=>k1,updateRect:()=>fk,validateCrossLineValues:()=>Ax,valueProperty:()=>Jn,visibleRangeIndices:()=>aS,without:()=>Os});function jg(){return(l,c)=>{let y=[`Property [${l}] is deprecated.`,c].filter(Boolean).join(" ");Pi.warnOnce(y)}}function ly(l,c){let y=jg(),I=c==null?void 0:c.default;return Un((O,j,H)=>(H!==I&&y(j.toString(),l),H))}function cy(l,c){let y=jg();return Un((I,O,j)=>(j!==I[l]&&(y(O.toString(),`Use [${l}] instead.`),Qh(I,l,c?c(j):j)),Wo),(I,O)=>(y(O.toString(),`Use [${l}] instead.`),pr(I,l)))}var _f={add:G1,angle:cR,apply:K1,equal:Uh,distance:V1,distanceSquared:sR,from:em,gradient:uR,intercept:H1,intersectAtX:nu,intersectAtY:W1,length:cw,lengthSquared:dw,multiply:j1,normalized:lR,origin:Hc,required:q1,rotate:dR,round:U1,sub:lw};function G1(l,c){return typeof c=="number"?{x:l.x+c,y:l.y+c}:{x:l.x+c.x,y:l.y+c.y}}function lw(l,c){return typeof c=="number"?{x:l.x-c,y:l.y-c}:{x:l.x-c.x,y:l.y-c.y}}function j1(l,c){return typeof c=="number"?{x:l.x*c,y:l.y*c}:{x:l.x*c.x,y:l.y*c.y}}function cw(l){return Math.sqrt(l.x*l.x+l.y*l.y)}function dw(l){return l.x*l.x+l.y*l.y}function V1(l,c){let y=lw(l,c);return Math.sqrt(y.x*y.x+y.y*y.y)}function sR(l,c){let y=lw(l,c);return y.x*y.x+y.y*y.y}function lR(l){let c=cw(l);return{x:l.x/c,y:l.y/c}}function cR(l,c=Hc()){return Math.atan2(l.y,l.x)-Math.atan2(c.y,c.x)}function dR(l,c,y=Hc()){let I=cw(l);return{x:y.x+I*Math.cos(c),y:y.y+I*Math.sin(c)}}function uR(l,c,y){let I=c.x-l.x;return(y==null?c.y-l.y:y-c.y-(y-l.y))/I}function H1(l,c,y){return(y==null?l.y:y-l.y)-c*l.x}function W1(l,c,y=0,I){return{x:l===1/0?1/0:(y-c)/l,y:I==null?y:I-y}}function nu(l,c,y=0,I){let O=l===1/0?1/0:l*y+c;return{x:y,y:I==null?O:I-O}}function U1(l){return{x:Math.round(l.x),y:Math.round(l.y)}}function Uh(l,c){return l.x===c.x&&l.y===c.y}function em(l,c){if(typeof l=="number")return{x:l,y:c};if("regionX"in l)return{x:l.regionX,y:l.regionY};if("offsetWidth"in l)return{x:l.offsetWidth,y:l.offsetHeight};if("width"in l)return[{x:l.x,y:l.y},{x:l.x+l.width,y:l.y+l.height}];if("x1"in l)return[{x:l.x1,y:l.y1},{x:l.x2,y:l.y2}];throw new Error(`Values can not be converted into a vector: [${JSON.stringify(l)}] [${c}]`)}function K1(l,c){return l.x=c.x,l.y=c.y,l}function q1(l){var c,y;return{x:(c=l==null?void 0:l.x)!=null?c:0,y:(y=l==null?void 0:l.y)!=null?y:0}}function Hc(){return{x:0,y:0}}var Y1=class Oz{constructor(c,y,I,O,j,H,K,Z,te,se){this.series=c,this.index=y,this.rootIndex=I,this.datum=O,this.sizeValue=j,this.colorValue=H,this.sumSize=K,this.depth=Z,this.parent=te,this.children=se,this.midPoint={x:0,y:0}}contains(c){let y=c;for(;y!=null&&y.index>=this.index;){if(y===this)return!0;y=y.parent}return!1}walk(c,y=Oz.Walk.PreOrder){y===Oz.Walk.PreOrder&&c(this),this.children.forEach(I=>{I.walk(c,y)}),y===Oz.Walk.PostOrder&&c(this)}*[Symbol.iterator](){yield this;for(let c of this.children)yield*c}};Y1.Walk={PreOrder:0,PostOrder:1};var dy=Y1,au=class extends Lv{constructor(l){super({moduleCtx:l,pickModes:[1,0]}),this.rootNode=new dy(this,0,0,void 0,0,void 0,0,void 0,void 0,[]),this.colorDomain=[0,0],this.maxDepth=0,this.colorScale=new hi,this.focusPath=[],this.animationState=new Io("empty",{empty:{update:{target:"ready",action:c=>this.animateEmptyUpdateReady(c)},reset:"empty",skip:"ready"},ready:{updateData:"waiting",clear:"clearing",highlight:c=>this.animateReadyHighlight(c),resize:c=>this.animateReadyResize(c),reset:"empty",skip:"ready"},waiting:{update:{target:"ready",action:c=>this.animateWaitingUpdateReady(c)},reset:"empty",skip:"ready"},clearing:{update:{target:"empty",action:c=>this.animateClearingUpdateEmpty(c)},reset:"empty",skip:"ready"}},()=>this.checkProcessedDataAnimatable())}resetAnimation(l){l==="initial"?this.animationState.transition("reset"):l==="ready"&&this.animationState.transition("skip")}processData(){let{childrenKey:l,sizeKey:c,colorKey:y,colorRange:I}=this.properties,O=0,j=()=>(O+=1,O),H=0,K=1/0,Z=-1/0,te=(Ce,Pe,Ge)=>{let We=j(),He=Ge.depth!=null?Ge.depth+1:0,Ze=l!=null?Ce[l]:void 0,it=Ze==null||Ze.length===0,qe=c!=null?Ce[c]:void 0;Number.isFinite(qe)?qe=Math.max(qe,0):qe=it?1:0;let rt=qe;H=Math.max(H,He);let dt=y!=null?Ce[y]:void 0;return typeof dt=="number"&&(K=Math.min(K,dt),Z=Math.max(Z,dt)),se(new dy(this,We,Pe!=null?Pe:0,Ce,qe,dt,rt,He,Ge,[]),Pe,Ze)},se=(Ce,Pe,Ge)=>(Ge==null||Ge.forEach((We,He)=>{let Ze=te(We,Pe!=null?Pe:He,Ce);Ce.children.push(Ze),Ce.sumSize+=Ze.sumSize}),Ce),ge=se(new dy(this,0,0,void 0,0,void 0,0,void 0,void 0,[]),void 0,this.data),Se=[K,Z];this.colorScale.domain=K<Z?[K,Z]:[0,1],this.colorScale.range=I!=null?I:["black"],this.colorScale.update(),this.rootNode=ge,this.maxDepth=H,this.colorDomain=Se,this.focusPath=[{nodeDatum:this.rootNode,childIndex:0}]}update({seriesRect:l}){this.updateSelections(),this.updateNodes();let c=this.getAnimationData();this.checkResize(l)&&this.animationState.transition("resize",c),this.animationState.transition("update",c)}resetAllAnimation(l){var y;let c=(y=this.animationResetFns)==null?void 0:y.datum;this.ctx.animationManager.stopByAnimationGroupId(this.id),c!=null&&Yo(l.datumSelections,c)}animateEmptyUpdateReady(l){this.ctx.animationManager.skipCurrentBatch(),this.resetAllAnimation(l)}animateWaitingUpdateReady(l){this.ctx.animationManager.skipCurrentBatch(),this.resetAllAnimation(l)}animateReadyHighlight(l){var y;let c=(y=this.animationResetFns)==null?void 0:y.datum;c!=null&&Yo([l],c)}animateReadyResize(l){this.resetAllAnimation(l)}animateClearingUpdateEmpty(l){this.ctx.animationManager.skipCurrentBatch(),this.resetAllAnimation(l)}isProcessedDataAnimatable(){return!0}checkProcessedDataAnimatable(){this.isProcessedDataAnimatable()||this.ctx.animationManager.skipCurrentBatch()}getSeriesDomain(){return[NaN,NaN]}getSeriesRange(l,c){return[NaN,NaN]}getLegendData(l){let{colorKey:c,colorName:y,colorRange:I}=this.properties,{id:O,ctx:{legendManager:j},visible:H}=this;return l==="gradient"&&c!=null&&I!=null?[{legendType:"gradient",enabled:H&&j.getItemEnabled({seriesId:O}),seriesId:O,colorName:y,colorRange:I,colorDomain:this.colorDomain}]:[]}getDatumIdFromData(l){return`${l.index}`}getDatumId(l){return this.getDatumIdFromData(l)}pickFocus(l){var j,H;if(this.rootNode.children.length===0)return;this.focusPath.length===0&&Pi.error("this.focusPath should not be empty");let{datumIndexDelta:c,otherIndexDelta:y}=l,{focusPath:I}=this,O=I.length-2;if(y!==0||I.length===1){let K=Math.max(0,O+y);if(I[K+1]==null){let Z=I[I.length-1];for(;Z.nodeDatum.children.length>0&&((j=Z.nodeDatum.depth)!=null?j:-1)<K;){let te={nodeDatum:Z.nodeDatum.children[0],childIndex:0};I.push(te),Z=te}return this.computeFocusOutputs(Z)}else return I.length=K+2,this.computeFocusOutputs(I[K+1])}else{if(c===0)return this.computeFocusOutputs(I[I.length-1]);{let K=I[O+1].childIndex+c,Z=I[O].nodeDatum,te=(H=Z==null?void 0:Z.children)==null?void 0:H.length;if(te!=null){let se=Ae(0,K,te-1),ge={nodeDatum:Z.children[se],childIndex:se};return I[O+1]=ge,I.length=O+2,this.computeFocusOutputs(ge)}}}}getDatumAriaText(l,c){var y;if(!(l instanceof dy)){Pi.error(`datum is not HierarchyNode: ${JSON.stringify(l)}`);return}return this.ctx.localeManager.t("ariaAnnounceHierarchyDatum",{level:((y=l.depth)!=null?y:-1)+1,count:l.children.length,description:c})}computeFocusOutputs({nodeDatum:l,childIndex:c}){let y=this.computeFocusBounds(l);if(y)return{datum:l,datumIndex:c,otherIndex:l.depth,bounds:y,showFocusBox:!0,clipFocusBox:!0}}},Vg=class extends gd{constructor(){super(...arguments),this.childrenKey="children",this.fills=Object.values(Pr),this.strokes=Object.values(Qd)}};D([Je(ui)],Vg.prototype,"childrenKey",2),D([Je(ui,{optional:!0})],Vg.prototype,"sizeKey",2),D([Je(ui,{optional:!0})],Vg.prototype,"colorKey",2),D([Je(ui,{optional:!0})],Vg.prototype,"colorName",2),D([Je(gl)],Vg.prototype,"fills",2),D([Je(gl)],Vg.prototype,"strokes",2),D([Je(gl,{optional:!0})],Vg.prototype,"colorRange",2);var X1=class{constructor(l,c,y,I){this.lon0=l,this.lat0=c,this.lon1=y,this.lat1=I}merge(l){this.lon0=Math.min(this.lon0,l.lon0),this.lat0=Math.min(this.lat0,l.lat0),this.lon1=Math.max(this.lon1,l.lon1),this.lat1=Math.max(this.lat1,l.lat1)}},uw=class aV{constructor(){this.id=U(this),this.axisGroup=new yl({name:`${this.id}-AxisTicks`,zIndex:2}),this.labelSelection=No.select(this.axisGroup,Gr),this.interval=new rd,this.label=new jr,this.scale=new pd,this.position="bottom",this.translationX=0,this.translationY=0,this.padding=0}attachAxis(c){c.appendChild(this.axisGroup)}calculateLayout(){this.scale.interval=this.interval.step;let c=[],y=this.generateTicks(),{translationX:I,translationY:O}=this;return this.labelSelection.update(y.ticks.map(j=>this.createLabelDatum(j)),void 0,j=>j.tickId),this.labelSelection.each((j,H)=>{j.setProperties(H),H.visible&&c.push(j.getBBox())}),this.axisGroup.setProperties({translationX:I,translationY:O}),ft.merge(c)}getLabelParams(c){let{padding:y}=this,{translate:I}=c;switch(this.position){case"top":case"bottom":return{x:I,y,textAlign:"center",textBaseline:"top"};case"left":case"right":return{x:y,y:I,textAlign:"start",textBaseline:"middle"}}}inRange(c,y=.001){let[I,O]=Re(this.scale.range);return c>=I-y&&c<=O+y}createLabelDatum(c){let{x:y,y:I,textBaseline:O,textAlign:j}=this.getLabelParams(c);return{visible:!!c.tickLabel,tickId:c.tickId,fill:this.label.color,fontFamily:this.label.fontFamily,fontSize:this.label.fontSize,fontStyle:this.label.fontStyle,fontWeight:this.label.fontWeight,rotation:0,rotationCenterX:0,text:c.tickLabel,textAlign:j,textBaseline:O,x:y,y:I}}generateTicks(){let{minSpacing:c,maxSpacing:y}=this.interval,I=at(Oe(this.scale.range),2),{maxTickCount:O,minTickCount:j,tickCount:H}=ux(I,c,y,aV.DefaultTickCount,aV.DefaultMinSpacing);H&&(this.scale.tickCount=H,this.scale.minTickCount=j,this.scale.maxTickCount=O);let K=this.getTicksData();if(this.position==="bottom"||this.position==="top"){let Z=Cs.getMeasurer({font:this.label}),te=this.scale.getDomain(),ge=te[0]>te[1]?-1:1,Se=-1/0*ge;K.ticks=K.ticks.filter(Ce=>Math.sign(Ce.translate-Se)!==ge?!1:(Se=Ce.translate+Z.textWidth(Ce.tickLabel,!0)*ge,!0))}return K}getTicksData(){var H,K,Z;let c=[],y=this.scale.ticks(),I=y.reduce((te,se)=>Math.max(te,Mt(se)),0),O=ib(),j=this.label.format?this.scale.tickFormat({ticks:y,specifier:this.label.format}):te=>id(te,I);for(let te=0;te<y.length;te++){let se=y[te],ge=this.scale.convert(se);if(!this.inRange(ge))continue;let Se=(Z=(K=(H=this.label).formatter)==null?void 0:K.call(H,{value:se,index:te,fractionDigits:I}))!=null?Z:j(se),Ce=O(Se);c.push({tick:se,tickId:Ce,tickLabel:Se,translate:ge})}return{rawTicks:y,fractionDigits:I,ticks:c}}};uw.DefaultTickCount=5,uw.DefaultMinSpacing=50;var Z1=uw,$1=0;function hR(l,c){let y=Aa("button",uy("ag-charts-input ag-charts-button",c));return l.label!==void 0?y.append(l.label):(y.append(zk(l.icon)),y.ariaLabel=l.altText),y.addEventListener("click",l.onPress),br(y,c),y}function gR(l,c){let y=Aa("input",uy("ag-charts-input ag-charts-checkbox",c));return y.type="checkbox",y.checked=l.checked,y.addEventListener("change",I=>l.onChange(y.checked,I)),y.addEventListener("keydown",I=>{Ks(I)&&(I.preventDefault(),y.click())}),br(y,c),y}function Q1(l,c){let y=Aa("select",uy("ag-charts-input ag-charts-select",c));return y.append(...l.options.map(I=>{let O=Aa("option");return O.value=I.value,O.textContent=I.label,O})),fo(y,"data-preventdefault",!1),y.value=l.value,y.addEventListener("change",I=>l.onChange(y.value,I)),br(y,c),y}function J1(l,c){let y=Aa("textarea",uy("ag-charts-input ag-charts-textarea",c));return y.value=l.value,y.addEventListener("input",I=>l.onChange(y.value,I)),br(y,c),y}function zk(l){let c=Aa("span",`ag-charts-icon ag-charts-icon-${l}`);return fo(c,"aria-hidden",!0),c}function uy(l,c){return c==null?l:`${l} ${c.class}`}var tm=class extends pa{constructor(l,c,y=0,I){super(l,c,I),this.angle=y}createCanvasGradient(l,c){let{angle:I}=this,O=ha($e(I+90)),j=c.x+c.width*.5,H=c.y+c.height*.5;return l.createConicGradient(O,j,H)}},lr=class extends ic{constructor(l=""){super(),this.x=0,this.y=0,this.commands=[],this._d="",this.d=l}get d(){return this._d}set d(l){if(l!==this._d){this._d=l,this.commands.length=0;for(let[c,y,I]of l.matchAll(/([A-Z])([0-9. ]*)/g)){let O=I.split(/\s+/g).map(Number);this.commands.push([y,O])}this.checkPathDirty()}}updatePath(){let{path:l,x:c,y}=this;l.clear();let I=c,O=y;for(let[j,H]of this.commands)switch(j){case"M":l.moveTo(c+H[0],y+H[1]),I=c+H[0];break;case"C":l.cubicCurveTo(c+H[0],y+H[1],c+H[2],y+H[3],c+H[4],y+H[5]),I=c+H[4],O=y+H[5];break;case"H":l.lineTo(c+H[0],O),I=y+H[0];break;case"L":l.lineTo(c+H[0],y+H[1]),I=c+H[0],O=y+H[1];break;case"V":l.lineTo(I,y+H[0]),O=y+H[0];break;case"Z":l.closePath();break;default:throw new Error(`Could not translate command '${j}' with '${H.join(" ")}'`)}l.closePath()}};D([Pn()],lr.prototype,"x",2),D([Pn()],lr.prototype,"y",2);var pR=class fZ extends Qs{updatePath(){let c=this.size/2;super.applyPath(c,fZ.moves)}};pR.className="ArrowUp",pR.moves=[{x:0,y:0,t:"move"},{x:1,y:1.2},{x:-.5,y:0},{x:0,y:.8},{x:-1,y:0},{x:0,y:-.8},{x:-.5,y:0}];var Bk=pR,mR=class extends Qs{updatePath(){let l=this.size/2;super.applyPath(l,Bk.moves.map(c=>({x:c.x*-1,y:c.y*-1})))}};mR.className="ArrowDown";var hw={};M(hw,{ButtonWidget:()=>Cv,NativeWidget:()=>qs,SliderWidget:()=>E0,ToolbarWidget:()=>I0,WIDGET_HTML_EVENTS:()=>rs,Widget:()=>hg,WidgetEventUtil:()=>Du});var eE="canvas-overlay",tE=class extends M0{constructor(l,c,y){super(),this.ctx=l,this.hideFns=[],this.moduleId=`popover-${c}`,y!=null&&y.detached?this.element=Aa("div"):this.element=l.domManager.addChild(eE,this.moduleId),this.element.setAttribute("role","presentation"),this.destroyFns.push(()=>l.domManager.removeChild(eE,this.moduleId))}attachTo(l){this.element.parentElement||l.element.append(this.element)}hide(l){let{lastFocus:c=this.lastFocus}=l!=null?l:{};this.element.children.length!==0&&(this.hideFns.forEach(y=>y()),c==null||c.focus(),this.lastFocus=void 0)}removeChildren(){this.element.replaceChildren()}showWithChildren(l,c){if(!this.element.parentElement)throw new Error("Can not show popover that has not been attached to a parent.");let y=Aa("div","ag-charts-popover");if(c.ariaLabel!=null&&y.setAttribute("aria-label",c.ariaLabel),c.class!=null&&y.classList.add(c.class),y.replaceChildren(...l),this.element.replaceChildren(y),this.hideFns.push(()=>this.removeChildren()),c.onHide&&this.hideFns.push(c.onHide),c.initialFocus&&c.sourceEvent){let I=Gd(c.sourceEvent);I!==void 0&&(this.lastFocus=I,this.initialFocus=c.initialFocus)}return y}getPopoverElement(){return this.element.firstElementChild}updatePosition(l){var y;let c=this.getPopoverElement();c&&(c.style.setProperty("right","unset"),c.style.setProperty("bottom","unset"),l.x!=null&&c.style.setProperty("left",`${Math.floor(l.x)}px`),l.y!=null&&c.style.setProperty("top",`${Math.floor(l.y)}px`),(y=this.initialFocus)==null||y.focus(),this.initialFocus=void 0)}},Xa=class extends tE{setAnchor(l,c){this.anchor=l,this.fallbackAnchor=c,this.updatePosition(l),this.repositionWithinBounds()}showWithChildren(l,c){var j,H;let y=(j=c.anchor)!=null?j:this.anchor,I=(H=c.fallbackAnchor)!=null?H:this.fallbackAnchor,O=super.showWithChildren(l,c);return y&&this.setAnchor(y,I),ca().requestAnimationFrame(()=>{this.repositionWithinBounds()}),O}repositionWithinBounds(){let{anchor:l,ctx:c,fallbackAnchor:y}=this,I=this.getPopoverElement();if(!l||!I)return;let O=c.domManager.getBoundingClientRect(),{offsetWidth:j,offsetHeight:H}=I,K=Ae(0,l.x,O.width-j),Z=Ae(0,l.y,O.height-H);K!==l.x&&(y==null?void 0:y.x)!=null&&(K=Ae(0,y.x-j,O.width-j)),Z!==l.y&&(y==null?void 0:y.y)!=null&&(Z=Ae(0,y.y-H,O.height-H)),this.updatePosition({x:K,y:Z})}},hC=class extends Xa{show(l){let c=l.items.map(I=>this.createRow(l,I)),y=this.showWithChildren(c,l);y.classList.add("ag-charts-menu"),y.setAttribute("role","menu"),this.menuCloser=Us({orientation:"vertical",menu:y,buttons:c,sourceEvent:l.sourceEvent,closeCallback:()=>this.hide()}),this.hideFns.push(()=>{var I;(I=this.menuCloser)==null||I.finishClosing(),this.menuCloser=void 0})}createRow(l,c){let{menuItemRole:y="menuitem"}=l,I=c.value===l.value,O=Aa("div","ag-charts-menu__row");if(O.setAttribute("role",y),y==="menuitemradio"&&O.setAttribute("aria-checked",(l.value===c.value).toString()),typeof c.value=="string"&&(O.dataset.popoverId=c.value),O.classList.toggle("ag-charts-menu__row--active",I),c.icon!=null){let Z=Aa("span",`ag-charts-menu__icon ${xx(c.icon)}`);O.appendChild(Z)}let j=c.strokeWidth!=null;if(j&&(O.classList.toggle("ag-charts-menu__row--stroke-width-visible",j),O.style.setProperty("--strokeWidth",j?`${c.strokeWidth}px`:null)),c.label!=null){let Z=Aa("span","ag-charts-menu__label");Z.textContent=this.ctx.localeManager.t(c.label),O.appendChild(Z)}"altText"in c&&(O.ariaLabel=this.ctx.localeManager.t(c.altText));let H=()=>{var Z;(Z=l.onPress)==null||Z.call(l,c)},K=Z=>{Ks(Z)&&(H(),Z.preventDefault(),Z.stopPropagation())};return O.addEventListener("keydown",K),O.addEventListener("click",K),O.addEventListener("mousemove",()=>{O.focus({preventScroll:!0})}),O}},Ff=class extends tE{constructor(){super(...arguments),this.dragged=!1}setDragHandle(l){l.addListener("drag-start",c=>{l.addClass(this.dragHandleDraggingClass),this.onDragStart(c)}),l.addListener("drag-move",this.onDragMove.bind(this)),l.addListener("drag-end",()=>{l.removeClass(this.dragHandleDraggingClass),this.onDragEnd.bind(this)})}onDragStart(l){let c=this.getPopoverElement();c&&(l.sourceEvent.preventDefault(),this.dragged=!0,this.dragStartState={client:_f.from(l.clientX,l.clientY),position:_f.from(Number(c.style.getPropertyValue("left").replace("px","")),Number(c.style.getPropertyValue("top").replace("px","")))})}onDragMove(l){let{dragStartState:c}=this,y=this.getPopoverElement();if(!c||!y)return;let I=_f.sub(_f.from(l.clientX,l.clientY),c.client),O=_f.add(c.position,I),j=this.ctx.domManager.getBoundingClientRect(),H={};O.x>=j.x&&O.x+y.offsetWidth<=j.width&&(H.x=O.x),O.y>=j.y&&O.y+y.offsetHeight<=j.height&&(H.y=O.y),this.updatePosition(H)}onDragEnd(){this.dragStartState=void 0}},Kh=class extends un{};D([Je(ui,{optional:!0})],Kh.prototype,"icon",2),D([Je(ui,{optional:!0})],Kh.prototype,"label",2),D([Je(ui,{optional:!0})],Kh.prototype,"ariaLabel",2),D([Je(ui,{optional:!0})],Kh.prototype,"tooltip",2);var iE=class extends Cv{constructor(l){super(),this.localeManager=l}update(l){let{localeManager:c}=this;l.tooltip&&(this.elem.title=c.t(l.tooltip));let y="";if(l.icon!=null&&(y=`<span class="${xx(l.icon)} ag-charts-toolbar__icon"></span>`),l.label!=null){let I=c.t(l.label);y=`${y}<span class="ag-charts-toolbar__label">${I}</span>`}this.elem.innerHTML=y}setChecked(l){fo(this.elem,"aria-checked",l)}},fR="ag-charts-toolbar__button--active",Uu=class extends I0{constructor(l,c="horizontal"){super(c),this.localeManager=l,this.horizontalSpacing=10,this.verticalSpacing=10,this.events=new as,this.hasPrefix=!1,this.buttonWidgets=[],this.addClass("ag-charts-toolbar"),this.toggleClass("ag-charts-toolbar--horizontal",c==="horizontal"),this.toggleClass("ag-charts-toolbar--vertical",c==="vertical")}addToolbarListener(l,c){return this.events.addListener(l,c)}clearButtons(){for(let l of this.buttonWidgets)l.destroy();this.buttonWidgets.splice(0)}updateButtons(l){var y;let{buttonWidgets:c}=this;for(let[I,O]of l.entries())((y=this.buttonWidgets.at(I))!=null?y:this.createButton(I,O)).update(O);for(let I=l.length;I<c.length;I++){let O=this.buttonWidgets.at(I);O==null||O.destroy()}this.buttonWidgets.splice(l.length),this.refreshButtonClasses()}updateButtonByIndex(l,c){var y;(y=this.buttonWidgets.at(l))==null||y.update(c)}clearActiveButton(){for(let l of this.buttonWidgets)l.toggleClass(fR,!1)}toggleActiveButtonByIndex(l){if(l!==-1)for(let[c,y]of this.buttonWidgets.entries())y.toggleClass(fR,l!=null&&l===c)}toggleButtonEnabledByIndex(l,c){var y;l!==-1&&((y=this.buttonWidgets.at(l))==null||y.setEnabled(c))}toggleSwitchCheckedByIndex(l,c){var y;l!==-1&&((y=this.buttonWidgets.at(l))==null||y.setChecked(c))}getButtonBounds(){return this.buttonWidgets.map(l=>this.getButtonWidgetBounds(l))}setButtonHiddenByIndex(l,c){var y;(y=this.buttonWidgets.at(l))==null||y.setHidden(c)}getButtonWidgetBounds(l){let c=this.getBounds(),y=l.getBounds();return new ft(y.x+c.x,y.y+c.y,y.width,y.height)}refreshButtonClasses(){var j;let{buttonWidgets:l,hasPrefix:c}=this,y,I,O;for(let[H,K]of l.entries())y=!c&&H===0||O!=K.section,I=H===l.length-1||K.section!=((j=l.at(H+1))==null?void 0:j.section),K.toggleClass("ag-charts-toolbar__button--first",y),K.toggleClass("ag-charts-toolbar__button--last",I),K.toggleClass("ag-charts-toolbar__button--gap",H>0&&y),O=K.section}createButton(l,c){let y=this.createButtonWidget();return y.addClass("ag-charts-toolbar__button"),y.addListener("click",I=>{let O=pe({index:l},c instanceof un?c.toJson():c),j=this.getButtonWidgetBounds(y);this.events.dispatch("button-pressed",{event:I,button:O,buttonBounds:j})}),y.addListener("focus",()=>{this.events.dispatch("button-focused",{button:{index:l}})}),c.section&&(y.section=c.section),this.buttonWidgets.push(y),this.addChild(y),y}},Gk=class extends Uu{createButtonWidget(){return new iE(this.localeManager)}},FL=class extends Ff{constructor(l,c,y){super(l,c),this.onPopoverMoved=y,this.dragHandleDraggingClass="ag-charts-floating-toolbar__drag-handle--dragging"}show(l,c){this.showWithChildren(l,et(pe({},c),{class:"ag-charts-floating-toolbar"}))}hide(){this.dragged=!1,super.hide()}getBounds(){var c,y,I,O;let l=this.getPopoverElement();return new ft((c=l==null?void 0:l.offsetLeft)!=null?c:0,(y=l==null?void 0:l.offsetTop)!=null?y:0,(I=l==null?void 0:l.offsetWidth)!=null?I:0,(O=l==null?void 0:l.offsetHeight)!=null?O:0)}hasBeenDragged(){return this.dragged}setAnchor(l,c,y){var te;let I=this.getPopoverElement();if(!I)return;let O=(te=l.position)!=null?te:"above",{offsetWidth:j,offsetHeight:H}=I,K=l.y-H-y,Z=l.x-j/2;O==="below"?K=l.y+y:O==="right"?(K=l.y-H/2,Z=l.x+c):O==="above-left"&&(Z=l.x),this.updatePosition({x:Z,y:K})}ignorePointerEvents(){let l=this.getPopoverElement();l&&(l.style.pointerEvents="none")}capturePointerEvents(){let l=this.getPopoverElement();l&&(l.style.pointerEvents="unset")}updatePosition(l){let c=this.getBounds(),y=this.ctx.domManager.getBoundingClientRect();l.x=Math.floor(Ae(0,l.x,y.width-c.width)),l.y=Math.floor(Ae(0,l.y,y.height-c.height)),super.updatePosition(l),this.onPopoverMoved()}},ou=class extends Uu{constructor(l,c){super(l.localeManager),this.hasPrefix=!0,this.popover=new FL(l,c,this.onPopoverMoved.bind(this)),this.dragHandle=new nE(l.localeManager.t("toolbarAnnotationsDragHandle")),this.popover.setDragHandle(this.dragHandle)}show(l){this.popover.show([this.dragHandle.getElement(),this.getElement()],l)}hide(){this.popover.hide()}setAnchor(l){this.popover.setAnchor(l,this.horizontalSpacing,this.verticalSpacing)}hasBeenDragged(){return this.popover.hasBeenDragged()}ignorePointerEvents(){this.popover.ignorePointerEvents()}capturePointerEvents(){this.popover.capturePointerEvents()}onPopoverMoved(){var y;let l=this.popover.getBounds();if((y=this.popoverBounds)!=null&&y.equals(l))return;this.popoverBounds=l.clone();let c=this.getButtonBounds();this.events.dispatch("toolbar-moved",{popoverBounds:l,buttonBounds:c})}getButtonWidgetBounds(l){let c=this.popover.getBounds(),y=super.getButtonWidgetBounds(l),I=this.dragHandle.getBounds();return new ft(y.x+c.x-I.width,y.y+c.y,y.width,y.height)}},nE=class extends qs{constructor(l){super(Aa("div","ag-charts-floating-toolbar__drag-handle"));let c=new qs(Aa("span",`${xx("drag-handle")} ag-charts-toolbar__icon`));c.setAriaHidden(!0),this.addChild(c),this.elem.title=l}},NL=pe(pe({},T),Am);if(typeof ee.exports=="object"&&typeof ae=="object"){var Wc=(l,c,y,I)=>{if(c&&typeof c=="object"||typeof c=="function")for(let O of Object.getOwnPropertyNames(c))!Object.prototype.hasOwnProperty.call(l,O)&&O!==y&&Object.defineProperty(l,O,{get:()=>c[O],enumerable:!(I=Object.getOwnPropertyDescriptor(c,O))||I.enumerable});return l};ee.exports=Wc(ee.exports,ae)}return ee.exports})});var HZ=yP((_O,pV)=>{(function(ae,ee){typeof _O=="object"&&typeof pV=="object"?pV.exports=ee():typeof define=="function"&&define.amd?define("agCharts",[],ee):typeof _O=="object"?_O.agCharts=ee():ae.agCharts=ee()})(_O,()=>{var ae={},ee={exports:ae};if(typeof Ixe=="undefined")var Ixe=function(t){throw new Error("Unknown module: "+t)};var de=Object.defineProperty,ne=Object.getOwnPropertyDescriptor,x=Object.getOwnPropertyNames,p=Object.prototype.hasOwnProperty,M=(e,t)=>function(){return e&&(t=(0,e[x(e)[0]])(e=0)),t},A=(e,t)=>{for(var n in t)de(e,n,{get:t[n],enumerable:!0})},F=(e,t,n,a)=>{if(t&&typeof t=="object"||typeof t=="function")for(let h of x(t))!p.call(e,h)&&h!==n&&de(e,h,{get:()=>t[h],enumerable:!(a=ne(t,h))||a.enumerable});return e},D=e=>F(de({},"__esModule",{value:!0}),e),f=(e,t,n,a)=>{for(var h=a>1?void 0:a?ne(t,n):t,S=e.length-1,E;S>=0;S--)(E=e[S])&&(h=(a?E(t,n,h):E(h))||h);return a&&h&&de(t,n,h),h},v=M({"packages/ag-charts-locale/src/ar-EG.ts"(){"use strict"}}),u=M({"packages/ag-charts-locale/src/bg-BG.ts"(){"use strict"}}),s=M({"packages/ag-charts-locale/src/cs-CZ.ts"(){"use strict"}}),r=M({"packages/ag-charts-locale/src/da-DK.ts"(){"use strict"}}),d=M({"packages/ag-charts-locale/src/de-DE.ts"(){"use strict"}}),g=M({"packages/ag-charts-locale/src/el-GR.ts"(){"use strict"}}),m,b=M({"packages/ag-charts-locale/src/en-US.ts"(){"use strict";m={ariaAnnounceHoverDatum:"${datum}",ariaAnnounceChart:"chart, ${seriesCount}[number] series",ariaAnnounceHierarchyChart:"hierarchy chart, ${caption}",ariaAnnounceGaugeChart:"gauge chart, ${caption}",ariaAnnounceHierarchyDatum:"level ${level}[number], ${count}[number] children, ${description}",ariaAnnounceFlowProportionLink:"link ${index} of ${count}, from ${from} to ${to}, ${sizeName} ${size}",ariaAnnounceFlowProportionNode:"node ${index} of ${count}, ${description}",ariaDescriptionLegendItem:"Press Space or Enter to toggle visibility",ariaLabelAddHorizontalLine:"Add Horizontal Line",ariaLabelAnnotationOptionsToolbar:"Annotation Options",ariaLabelAnnotationSettingsDialog:"Annotation Settings",ariaLabelColorPicker:"Color picker",ariaLabelFinancialCharts:"Financial Charts",ariaLabelLegend:"Legend",ariaLabelLegendPagination:"Legend Pagination",ariaLabelLegendPagePrevious:"Previous Legend Page",ariaLabelLegendPageNext:"Next Legend Page",ariaLabelLegendItem:"${label}, Legend item ${index}[number] of ${count}[number]",ariaLabelLegendItemUnknown:"Unknown legend item",ariaLabelNavigator:"Navigator",ariaLabelNavigatorRange:"Range",ariaLabelNavigatorMinimum:"Minimum",ariaLabelNavigatorMaximum:"Maximum",ariaLabelRangesToolbar:"Ranges",ariaLabelSettingsTabBar:"Settings",ariaLabelZoomToolbar:"Zoom",ariaValuePanRange:"${min}[percent] to ${max}[percent]",iconAltTextLineStyleSolid:"Solid",iconAltTextLineStyleDashed:"Long-dashed",iconAltTextLineStyleDotted:"Short-dashed",iconAltTextPositionTop:"Top",iconAltTextPositionCenter:"Center",iconAltTextPositionBottom:"Bottom",iconAltTextAlignLeft:"Left",iconAltTextAlignCenter:"Center",iconAltTextAlignRight:"Right",iconAltTextClose:"Close",overlayLoadingData:"Loading data...",overlayNoData:"No data to display",overlayNoVisibleSeries:"No visible series",overlayUnsupportedBrowser:"Incompatible browser version. Please upgrade your browser.",seriesHistogramTooltipFrequency:"Frequency",seriesHistogramTooltipSum:"${yName} (sum)",seriesHistogramTooltipCount:"${yName} (count)",seriesHistogramTooltipMean:"${yName} (mean)",toolbarSeriesTypeDropdown:"Chart Type",toolbarSeriesTypeOHLC:"OHLC",toolbarSeriesTypeHLC:"HLC",toolbarSeriesTypeHighLow:"High Low",toolbarSeriesTypeCandles:"Candles",toolbarSeriesTypeHollowCandles:"Hollow Candles",toolbarSeriesTypeLine:"Line",toolbarSeriesTypeLineWithMarkers:"Line with Markers",toolbarSeriesTypeStepLine:"Step Line",toolbarAnnotationsTrendLine:"Trend Line",toolbarAnnotationsFibonacciRetracement:"Fib Retracement",toolbarAnnotationsHorizontalLine:"Horizontal Line",toolbarAnnotationsVerticalLine:"Vertical Line",toolbarAnnotationsParallelChannel:"Parallel Channel",toolbarAnnotationsDisjointChannel:"Disjoint Channel",toolbarAnnotationsClearAll:"Clear All",toolbarAnnotationsFillColor:"Fill Color",toolbarAnnotationsLineColor:"Line Color",toolbarAnnotationsLineStyle:"Line Style",toolbarAnnotationsLineStrokeWidth:"Line Stroke Width",toolbarAnnotationsSettings:"Settings",toolbarAnnotationsTextColor:"Text Color",toolbarAnnotationsTextSize:"Text Size",toolbarAnnotationsLock:"Lock",toolbarAnnotationsUnlock:"Unlock",toolbarAnnotationsDelete:"Delete",toolbarAnnotationsDragHandle:"Drag Toolbar",toolbarAnnotationsLineAnnotations:"Trend Lines",toolbarAnnotationsFibonacciAnnotations:"Fibonacci",toolbarAnnotationsTextAnnotations:"Text Annotations",toolbarAnnotationsShapeAnnotations:"Arrows",toolbarAnnotationsMeasurerAnnotations:"Measurers",toolbarAnnotationsCallout:"Callout",toolbarAnnotationsComment:"Comment",toolbarAnnotationsNote:"Note",toolbarAnnotationsText:"Text",toolbarAnnotationsArrow:"Arrow",toolbarAnnotationsArrowUp:"Arrow Up",toolbarAnnotationsArrowDown:"Arrow Down",toolbarAnnotationsDateRange:"Date Range",toolbarAnnotationsPriceRange:"Price Range",toolbarAnnotationsDatePriceRange:"Date and Price",toolbarAnnotationsQuickDatePriceRange:"Measure",toolbarRange1Month:"1M",toolbarRange1MonthAria:"1 month",toolbarRange3Months:"3M",toolbarRange3MonthsAria:"3 months",toolbarRange6Months:"6M",toolbarRange6MonthsAria:"6 months",toolbarRangeYearToDate:"YTD",toolbarRangeYearToDateAria:"Year to date",toolbarRange1Year:"1Y",toolbarRange1YearAria:"1 year",toolbarRangeAll:"All",toolbarRangeAllAria:"All",toolbarZoomZoomOut:"Zoom out",toolbarZoomZoomIn:"Zoom in",toolbarZoomPanLeft:"Pan left",toolbarZoomPanRight:"Pan right",toolbarZoomPanStart:"Pan to the start",toolbarZoomPanEnd:"Pan to the end",toolbarZoomReset:"Reset the zoom",contextMenuDownload:"Download",contextMenuToggleSeriesVisibility:"Toggle Visibility",contextMenuToggleOtherSeries:"Toggle Other Series",contextMenuZoomToCursor:"Zoom to here",contextMenuPanToCursor:"Pan to here",dialogHeaderChannel:"Channel",dialogHeaderLine:"Line",dialogHeaderFibonacciRange:"Fib Retracement",dialogHeaderDateRange:"Date Range",dialogHeaderPriceRange:"Price Range",dialogHeaderDatePriceRange:"Date and Price",dialogHeaderText:"Text",dialogInputAlign:"Align",dialogInputColorPicker:"Color",dialogInputColorPickerAltText:"Text Color",dialogInputFillColorPicker:"Fill",dialogInputFillColorPickerAltText:"Fill Color",dialogInputExtendChannelStart:"Extend channel start",dialogInputExtendChannelEnd:"Extend channel end",dialogInputExtendLineStart:"Extend line start",dialogInputExtendLineEnd:"Extend line end",dialogInputExtendAbove:"Extend above",dialogInputExtendBelow:"Extend below",dialogInputExtendLeft:"Extend left",dialogInputExtendRight:"Extend right",dialogInputReverse:"Reverse",dialogInputShowFill:"Show Fill",dialogInputFontSize:"Size",dialogInputFontSizeAltText:"Font Size",dialogInputLineStyle:"Dash",dialogInputPosition:"Position",dialogInputStrokeWidth:"Weight",dialogInputStrokeWidthAltText:"Line Weight",dialogInputFibonacciBands:"Bands",dialogInputFibonacciBandsAltText:"Fibonacci Bands",inputTextareaPlaceholder:"Add Text",measurerDateRangeBars:"${value}[number] bars",measurerPriceRangeValue:"${value}[number]",measurerPriceRangePercent:"${value}[percent]",measurerVolume:"Vol ${value}"}}}),w=M({"packages/ag-charts-locale/src/es-ES.ts"(){"use strict"}}),k=M({"packages/ag-charts-locale/src/fa-IR.ts"(){"use strict"}}),R=M({"packages/ag-charts-locale/src/fi-FI.ts"(){"use strict"}}),T=M({"packages/ag-charts-locale/src/fr-FR.ts"(){"use strict"}}),z=M({"packages/ag-charts-locale/src/he-IL.ts"(){"use strict"}}),G=M({"packages/ag-charts-locale/src/hr-HR.ts"(){"use strict"}}),U=M({"packages/ag-charts-locale/src/hu-HU.ts"(){"use strict"}}),X=M({"packages/ag-charts-locale/src/it-IT.ts"(){"use strict"}}),Q=M({"packages/ag-charts-locale/src/ja-JP.ts"(){"use strict"}}),oe=M({"packages/ag-charts-locale/src/ko-KR.ts"(){"use strict"}}),le=M({"packages/ag-charts-locale/src/nb-NO.ts"(){"use strict"}}),fe=M({"packages/ag-charts-locale/src/nl-NL.ts"(){"use strict"}}),ye=M({"packages/ag-charts-locale/src/pl-PL.ts"(){"use strict"}}),ke=M({"packages/ag-charts-locale/src/pt-BR.ts"(){"use strict"}}),Ie=M({"packages/ag-charts-locale/src/pt-PT.ts"(){"use strict"}}),ze=M({"packages/ag-charts-locale/src/ro-RO.ts"(){"use strict"}}),Ye=M({"packages/ag-charts-locale/src/sk-SK.ts"(){"use strict"}}),xe=M({"packages/ag-charts-locale/src/sv-SE.ts"(){"use strict"}}),Te=M({"packages/ag-charts-locale/src/tr-TR.ts"(){"use strict"}}),Ae=M({"packages/ag-charts-locale/src/uk-UA.ts"(){"use strict"}}),Ne=M({"packages/ag-charts-locale/src/ur-PK.ts"(){"use strict"}}),Re=M({"packages/ag-charts-locale/src/vi-VN.ts"(){"use strict"}}),Oe=M({"packages/ag-charts-locale/src/zh-CN.ts"(){"use strict"}}),Ve=M({"packages/ag-charts-locale/src/zh-HK.ts"(){"use strict"}}),Ue=M({"packages/ag-charts-locale/src/zh-TW.ts"(){"use strict"}}),Ee=M({"packages/ag-charts-locale/src/main.ts"(){"use strict";v(),u(),s(),r(),d(),g(),b(),w(),k(),R(),T(),z(),G(),U(),X(),Q(),oe(),le(),fe(),ye(),ke(),Ie(),ze(),Ye(),xe(),Te(),Ae(),Ne(),Re(),Oe(),Ve(),Ue()}}),tt=M({"packages/ag-charts-types/src/api/initialStateOptions.ts"(){"use strict"}}),at=M({"packages/ag-charts-types/src/api/agCharts.ts"(){"use strict"}}),ut=M({"packages/ag-charts-types/src/chart/annotationsOptions.ts"(){"use strict"}}),Mt=M({"packages/ag-charts-types/src/chart/axisOptions.ts"(){"use strict"}}),St=M({"packages/ag-charts-types/src/chart/callbackOptions.ts"(){"use strict"}}),ft=M({"packages/ag-charts-types/src/chart/chartOptions.ts"(){"use strict"}}),kt=M({"packages/ag-charts-types/src/chart/chartToolbarOptions.ts"(){"use strict"}}),Et=M({"packages/ag-charts-types/src/chart/contextMenuOptions.ts"(){"use strict"}}),Yt=M({"packages/ag-charts-types/src/chart/crossLineOptions.ts"(){"use strict"}}),Tt=M({"packages/ag-charts-types/src/chart/crosshairOptions.ts"(){"use strict"}}),Ft=M({"packages/ag-charts-types/src/chart/dropShadowOptions.ts"(){"use strict"}}),Bt,Xt=M({"packages/ag-charts-types/src/chart/errorBarOptions.ts"(){"use strict";Bt=["bar","line","scatter"]}}),ii=M({"packages/ag-charts-types/src/chart/eventOptions.ts"(){"use strict"}}),Ci=M({"packages/ag-charts-types/src/chart/gradientLegendOptions.ts"(){"use strict"}}),_i=M({"packages/ag-charts-types/src/chart/icons.ts"(){"use strict"}}),yn=M({"packages/ag-charts-types/src/chart/labelOptions.ts"(){"use strict"}}),Tn=M({"packages/ag-charts-types/src/chart/legendOptions.ts"(){"use strict"}}),ma=M({"packages/ag-charts-types/src/chart/localeOptions.ts"(){"use strict"}}),Ho,Ar,ll=M({"packages/ag-charts-types/src/chart/navigatorOptions.ts"(){"use strict";Ho=void 0,Ar=void 0,Ar=Ho}}),eo=M({"packages/ag-charts-types/src/chart/polarAxisOptions.ts"(){"use strict"}}),Nr=M({"packages/ag-charts-types/src/chart/rangesOptions.ts"(){"use strict"}}),rn,Wo,Mo=M({"packages/ag-charts-types/src/chart/themeOptions.ts"(){"use strict";rn=void 0,Wo=void 0,Wo=rn}}),Ps,Un=M({"packages/ag-charts-types/src/chart/tooltipOptions.ts"(){"use strict";Ps=(e=>(e.POINTER="pointer",e.NODE="node",e.TOP="top",e.RIGHT="right",e.BOTTOM="bottom",e.LEFT="left",e.TOP_LEFT="top-left",e.TOP_RIGHT="top-right",e.BOTTOM_RIGHT="bottom-right",e.BOTTOM_LEFT="bottom-left",e))(Ps||{})}}),Ls=M({"packages/ag-charts-types/src/chart/types.ts"(){"use strict"}}),la=M({"packages/ag-charts-types/src/chart/zoomOptions.ts"(){"use strict"}}),uo=M({"packages/ag-charts-types/src/chartBuilderOptions.ts"(){"use strict"}}),ka=M({"packages/ag-charts-types/src/integratedCharts.ts"(){"use strict"}}),$n=M({"packages/ag-charts-types/src/presets/financial/financialOptions.ts"(){"use strict"}}),to=M({"packages/ag-charts-types/src/presets/financial/priceVolumeOptions.ts"(){"use strict"}}),$t,nn,bn,zi,En=M({"packages/ag-charts-types/src/presets/gauge/commonOptions.ts"(){"use strict";$t=void 0,nn=void 0,nn=$t,bn=void 0,zi=void 0,zi=bn}}),Yn=M({"packages/ag-charts-types/src/presets/gauge/gaugeOptions.ts"(){"use strict"}}),Ke=M({"packages/ag-charts-types/src/presets/gauge/linearGaugeOptions.ts"(){"use strict"}}),pt=M({"packages/ag-charts-types/src/presets/gauge/radialGaugeOptions.ts"(){"use strict"}}),ct=M({"packages/ag-charts-types/src/presets/sparkline/sparklineAxisOptions.ts"(){"use strict"}}),ht=M({"packages/ag-charts-types/src/presets/sparkline/sparklineOptions.ts"(){"use strict"}}),Gt=M({"packages/ag-charts-types/src/presets/presetOptions.ts"(){"use strict"}}),_t=M({"packages/ag-charts-types/src/series/cartesian/areaOptions.ts"(){"use strict"}}),ni=M({"packages/ag-charts-types/src/series/cartesian/barOptions.ts"(){"use strict"}}),Bi=M({"packages/ag-charts-types/src/series/cartesian/boxPlotOptions.ts"(){"use strict"}}),xi=M({"packages/ag-charts-types/src/series/cartesian/bubbleOptions.ts"(){"use strict"}}),Ti=M({"packages/ag-charts-types/src/series/cartesian/candlestickOptions.ts"(){"use strict"}}),Oi=M({"packages/ag-charts-types/src/series/cartesian/cartesianOptions.ts"(){"use strict"}}),xn=M({"packages/ag-charts-types/src/series/cartesian/cartesianSeriesTooltipOptions.ts"(){"use strict"}}),an=M({"packages/ag-charts-types/src/series/cartesian/cartesianSeriesTypes.ts"(){"use strict"}}),Cn=M({"packages/ag-charts-types/src/series/cartesian/commonOptions.ts"(){"use strict"}}),Wi=M({"packages/ag-charts-types/src/series/cartesian/coneFunnelOptions.ts"(){"use strict"}}),ko=M({"packages/ag-charts-types/src/series/cartesian/funnelOptions.ts"(){"use strict"}}),xc=M({"packages/ag-charts-types/src/series/cartesian/heatmapOptions.ts"(){"use strict"}}),Os=M({"packages/ag-charts-types/src/series/cartesian/histogramOptions.ts"(){"use strict"}}),pr=M({"packages/ag-charts-types/src/series/cartesian/lineOptions.ts"(){"use strict"}}),$r=M({"packages/ag-charts-types/src/series/cartesian/ohlcBaseOptions.ts"(){"use strict"}}),Qh=M({"packages/ag-charts-types/src/series/cartesian/ohlcOptions.ts"(){"use strict"}}),Lo=M({"packages/ag-charts-types/src/series/cartesian/rangeAreaOptions.ts"(){"use strict"}}),Qr=M({"packages/ag-charts-types/src/series/cartesian/rangeBarOptions.ts"(){"use strict"}}),cl=M({"packages/ag-charts-types/src/series/cartesian/scatterOptions.ts"(){"use strict"}}),Ai=M({"packages/ag-charts-types/src/series/cartesian/waterfallOptions.ts"(){"use strict"}}),Qn=M({"packages/ag-charts-types/src/series/flow-proportion/chordOptions.ts"(){"use strict"}}),Oo=M({"packages/ag-charts-types/src/series/flow-proportion/flowProportionOptions.ts"(){"use strict"}}),Id=M({"packages/ag-charts-types/src/series/flow-proportion/sankeyOptions.ts"(){"use strict"}}),Td=M({"packages/ag-charts-types/src/series/standalone/pyramidOptions.ts"(){"use strict"}}),Jh=M({"packages/ag-charts-types/src/series/standalone/standaloneOptions.ts"(){"use strict"}}),Mc=M({"packages/ag-charts-types/src/series/hierarchy/hierarchyOptions.ts"(){"use strict"}}),kc=M({"packages/ag-charts-types/src/series/hierarchy/sunburstOptions.ts"(){"use strict"}}),_s=M({"packages/ag-charts-types/src/series/hierarchy/treemapOptions.ts"(){"use strict"}}),Jr=M({"packages/ag-charts-types/src/series/interpolationOptions.ts"(){"use strict"}}),Vl=M({"packages/ag-charts-types/src/series/markerOptions.ts"(){"use strict"}}),Oy=M({"packages/ag-charts-types/src/series/polar/donutOptions.ts"(){"use strict"}}),qC=M({"packages/ag-charts-types/src/series/polar/nightingaleOptions.ts"(){"use strict"}}),$f=M({"packages/ag-charts-types/src/series/polar/pieOptions.ts"(){"use strict"}}),zr=M({"packages/ag-charts-types/src/series/polar/polarOptions.ts"(){"use strict"}}),_y=M({"packages/ag-charts-types/src/series/polar/radarAreaOptions.ts"(){"use strict"}}),Fs=M({"packages/ag-charts-types/src/series/polar/radarLineOptions.ts"(){"use strict"}}),yi=M({"packages/ag-charts-types/src/series/polar/radarOptions.ts"(){"use strict"}}),Rd=M({"packages/ag-charts-types/src/series/polar/radialBarOptions.ts"(){"use strict"}}),ix=M({"packages/ag-charts-types/src/series/polar/radialColumnOptions.ts"(){"use strict"}}),Fy=M({"packages/ag-charts-types/src/series/polar/radialOptions.ts"(){"use strict"}}),sp=M({"packages/ag-charts-types/src/series/seriesOptions.ts"(){"use strict"}}),YC=M({"packages/ag-charts-types/src/series/topology/mapLineBackgroundOptions.ts"(){"use strict"}}),bm=M({"packages/ag-charts-types/src/series/topology/mapLineOptions.ts"(){"use strict"}}),Ny=M({"packages/ag-charts-types/src/series/topology/mapMarkerOptions.ts"(){"use strict"}}),Pi=M({"packages/ag-charts-types/src/series/topology/mapShapeBackgroundOptions.ts"(){"use strict"}}),ps=M({"packages/ag-charts-types/src/series/topology/mapShapeOptions.ts"(){"use strict"}}),mu=M({"packages/ag-charts-types/src/series/topology/topologyOptions.ts"(){"use strict"}}),io=M({"packages/ag-charts-types/src/main.ts"(){"use strict";tt(),at(),ut(),Mt(),St(),ft(),kt(),Et(),Yt(),Tt(),Ft(),Xt(),ii(),Ci(),_i(),yn(),Tn(),ma(),ll(),eo(),Nr(),Mo(),Un(),Ls(),la(),uo(),ka(),$n(),to(),En(),Yn(),Ke(),pt(),ct(),ht(),Gt(),_t(),ni(),Bi(),xi(),Ti(),Oi(),xn(),an(),Cn(),Wi(),ko(),xc(),Os(),pr(),$r(),Qh(),Lo(),Qr(),cl(),Ai(),Qn(),Oo(),Id(),Td(),Jh(),Mc(),kc(),_s(),Jr(),Vl(),Oy(),qC(),$f(),zr(),_y(),Fs(),yi(),Rd(),ix(),Fy(),sp(),YC(),bm(),Ny(),Pi(),ps(),mu()}});function lp(){Qf.clear()}function dl(e){var h;let t=e.constructor,n=Object.hasOwn(t,"className")?t.className:t.name;if(!n)throw new Error(`The ${t} is missing the 'className' property.`);let a=((h=Qf.get(n))!=null?h:0)+1;return Qf.set(n,a),`${n}-${a}`}function eg(){var e,t;return(t=(e=crypto.randomUUID)==null?void 0:e.call(crypto))!=null?t:XC()}function XC(){let e=new Uint8Array(16);crypto.getRandomValues(e),e[6]=e[6]&15|64,e[8]=e[8]&63|128;let t="";for(let n=0;n<e.length;n++)(n===4||n===6||n===8||n===10)&&(t+="-"),t+=e[n].toString(16).padStart(2,"0");return t}var Qf,Ac=M({"packages/ag-charts-community/src/util/id.ts"(){"use strict";Qf=new Map}});function*pi(...e){for(let t of e)yield*t}function Ea(e){return e!=null&&typeof e=="object"&&Symbol.iterator in e?e:[e]}var cp=M({"packages/ag-charts-community/src/util/iterator.ts"(){"use strict"}});function dp(e,t,n){return t>=e.x&&t<=e.x+e.width&&n>=e.y&&n<=e.y+e.height}function ar(e){return e==null||e.height===0||e.width===0||isNaN(e.height)||isNaN(e.width)}function Dc(e){let{x:t,y:n,width:a,height:h}=e;return(a==null||a>0)&&(h==null||h>0)?e:(t!=null&&a!=null&&a<0&&(a=-a,t=t-a),n!=null&&h!=null&&h<0&&(h=-h,n=n-h),{x:t,y:n,width:a,height:h})}var ul,_o=M({"packages/ag-charts-community/src/util/bboxinterface.ts"(){"use strict";ul={containsPoint:dp,isEmpty:ar,normalize:Dc}}}),Jc,Fo,Ec=M({"packages/ag-charts-community/src/util/interpolating.ts"(){"use strict";Jc=Symbol("interpolate"),Fo=e=>e[Jc]!=null}});function Ns(e,t,n,a=1/0){let h={nearest:void 0,distanceSquared:a};for(let S of n){let E=S.distanceSquared(e,t);if(E===0)return{nearest:S,distanceSquared:0};E<h.distanceSquared&&(h.nearest=S,h.distanceSquared=E)}return h}function EP(e,t,n,a=1/0){var L,_;let{x:h=e,y:S=t}=(_=(L=n.transformPoint)==null?void 0:L.call(n,e,t))!=null?_:{},E={nearest:void 0,distanceSquared:a};for(let N of n.children){let{nearest:V,distanceSquared:q}=N.nearestSquared(h,S,E.distanceSquared);if(q===0)return{nearest:V,distanceSquared:q};q<E.distanceSquared&&(E.nearest=V,E.distanceSquared=q)}return E}var uh=M({"packages/ag-charts-community/src/util/nearest.ts"(){"use strict"}});function Gn(e,t,n){return Math.min(n,Math.max(e,t))}function hh(e,t){let[n,a]=zs(t);return Gn(n,e,a)}function zs(e){if(e.length===0)return[];let t=[1/0,-1/0];for(let n of e)n<t[0]&&(t[0]=n),n>t[1]&&(t[1]=n);return t}function Cm(e){let[t,n]=zs(e);return n-t}function Pd(e,t,n=1e-10){return e>=t[0]-n&&e<=t[1]+n}function Ao(e,t,n=1e-10){return Math.abs(e-t)<n}function ZC(e){return Math.sign(e)===-1||Object.is(e,-0)}function Jf(e){return e%1===0}function Fa(e,t=2){let n=10**t;return Math.round(e*n)/n}function zy(e,t){return Math.floor(e%t+(e<0?t:0))}function nx(e){var h,S;if(Math.floor(e)===e)return 0;let t=String(e),n=0;if(e<1e-6||e>=1e21){let E;[t,E]=t.split("e"),E!=null&&(n=Number(E))}let a=(S=(h=t.split(".")[1])==null?void 0:h.length)!=null?S:0;return Math.max(a-n,0)}var zn=M({"packages/ag-charts-community/src/util/number.ts"(){"use strict"}}),Sm,Ui,jn=M({"packages/ag-charts-community/src/scene/bbox.ts"(){"use strict";_o(),Ec(),uh(),zn(),Sm=class AP{constructor(t,n,a,h){this.x=t,this.y=n,this.width=a,this.height=h}static fromDOMRect({x:t,y:n,width:a,height:h}){return new AP(t,n,a,h)}static merge(t){let n=1/0,a=1/0,h=-1/0,S=-1/0;for(let E of t)E.x<n&&(n=E.x),E.y<a&&(a=E.y),E.x+E.width>h&&(h=E.x+E.width),E.y+E.height>S&&(S=E.y+E.height);return new AP(n,a,h-n,S-a)}static nearestBox(t,n,a){return Ns(t,n,a)}toDOMRect(){return{x:this.x,y:this.y,width:this.width,height:this.height,top:this.y,left:this.x,right:this.x+this.width,bottom:this.y+this.height,toJSON(){return{}}}}clone(){let{x:t,y:n,width:a,height:h}=this;return new AP(t,n,a,h)}equals(t){return this.x===t.x&&this.y===t.y&&this.width===t.width&&this.height===t.height}containsPoint(t,n){return ul.containsPoint(this,t,n)}containsBBox(t){let[n,a]=[this.x,this.x+this.width],[h,S]=[this.y,this.y+this.height],[E,L]=[t.x,t.x+t.width],[_,N]=[t.y,t.y+t.height];return Math.min(n,E)===n&&Math.max(a,L)===a&&Math.min(h,_)===h&&Math.max(S,N)===S}intersection(t){if(!this.collidesBBox(t))return;let n=Gn(t.x,this.x,t.x+t.width),a=Gn(t.y,this.y,t.y+t.height),h=Gn(t.x,this.x+this.width,t.x+t.width),S=Gn(t.y,this.y+this.height,t.y+t.height);return new AP(n,a,h-n,S-a)}collidesBBox(t){return this.x<t.x+t.width&&this.x+this.width>t.x&&this.y<t.y+t.height&&this.y+this.height>t.y}computeCenter(){return{x:this.x+this.width/2,y:this.y+this.height/2}}isFinite(){return Number.isFinite(this.x)&&Number.isFinite(this.y)&&Number.isFinite(this.width)&&Number.isFinite(this.height)}distanceSquared(t,n){if(this.containsPoint(t,n))return 0;let a=t-Gn(this.x,t,this.x+this.width),h=n-Gn(this.y,n,this.y+this.height);return a*a+h*h}shrink(t,n){if(typeof t=="number")this.applyMargin(t,n);else for(let[a,h]of Object.entries(t))this.applyMargin(h,a);return this.width<0&&(this.width=0),this.height<0&&(this.height=0),this}grow(t,n){if(typeof t=="number")this.applyMargin(-t,n);else for(let[a,h]of Object.entries(t))this.applyMargin(-h,a);return this}applyMargin(t,n){switch(n){case"top":this.y+=t;case"bottom":this.height-=t;break;case"left":this.x+=t;case"right":this.width-=t;break;case"vertical":this.y+=t,this.height-=t*2;break;case"horizontal":this.x+=t,this.width-=t*2;break;case void 0:this.x+=t,this.y+=t,this.width-=t*2,this.height-=t*2;break}}translate(t,n){return this.x+=t,this.y+=n,this}combine(t){let{x:n,y:a,width:h,height:S}=this;this.x=Math.min(n,t.x),this.y=Math.min(a,t.y),this.width=Math.max(n+h,t.x+t.width)-this.x,this.height=Math.max(a+S,t.y+t.height)-this.y}[Jc](t,n){return new AP(this.x*(1-n)+t.x*n,this.y*(1-n)+t.y*n,this.width*(1-n)+t.width*n,this.height*(1-n)+t.height*n)}},Sm.zero=Object.freeze(new Sm(0,0,0,0)),Sm.NaN=Object.freeze(new Sm(NaN,NaN,NaN,NaN)),Ui=Sm}});function Hi(e){return function(t,n){let a=`__${n}`;t[n]||hl(t,n,a,e)}}function hl(e,t,n,a){let{type:h="normal",changeCb:S,convertor:E,checkDirtyOnAssignment:L=!1}=a!=null?a:{},_={type:h,changeCb:S,checkDirtyOnAssignment:L,convertor:E},N;switch(h){case"normal":N=pI(n,_);break;case"transform":N=ax(n);break;case"path":N=ev(n);break}N=TP(IP(wm(N,_),_),_),Object.defineProperty(e,t,{set:N,get:function(){return this[n]},enumerable:!0,configurable:!0})}function wm(e,t){let{convertor:n}=t;return n?function(a){e.call(this,n(a))}:e}function IP(e,t){let{changeCb:n}=t;return n?function(a){let h=e.call(this,a);return h!==tv&&n.call(this,this),h}:e}function TP(e,t){let{checkDirtyOnAssignment:n}=t;return n?function(a){let h=e.call(this,a);return h!==tv&&(a==null?void 0:a._dirty)===!0&&this.markDirty(),h}:e}function pI(e,t){let{changeCb:n}=t;return function(a){let h=this[e];return a!==h?(this[e]=a,this.markDirty(),n==null||n(this),a):tv}}function ax(e){return function(t){let n=this[e];return t!==n?(this[e]=t,this.markDirtyTransform(),t):tv}}function ev(e){return function(t){let n=this[e];return t!==n?(this[e]=t,this._dirtyPath||(this._dirtyPath=!0,this.markDirty()),t):tv}}var tv,ox=M({"packages/ag-charts-community/src/scene/changeDetectable.ts"(){"use strict";tv=Symbol("no-change")}}),_A,ed,Hl,Wa=M({"packages/ag-charts-community/src/scene/node.ts"(){"use strict";Ac(),cp(),jn(),ox(),_A=(e=>(e[e.All=0]="All",e[e.None=1]="None",e))(_A||{}),ed=class yZ{constructor(t){var n,a;this.serialNumber=yZ._nextSerialNumber++,this.childNodeCounts={groups:0,nonGroups:0,thisComplexity:0,complexity:0},this.id=dl(this),this.pointerEvents=0,this._dirty=!0,this.dirtyZIndex=!1,this.isContainerNode=!1,this.visible=!0,this.zIndex=0,this.name=t==null?void 0:t.name,this.tag=(n=t==null?void 0:t.tag)!=null?n:NaN,this.zIndex=(a=t==null?void 0:t.zIndex)!=null?a:0}static toSVG(t,n,a){var E,L;let h=t==null?void 0:t.toSVG();if(h==null||!h.elements.length&&!((E=h.defs)!=null&&E.length))return;let S=document.createElementNS("http://www.w3.org/2000/svg","svg");if(S.setAttribute("width",String(n)),S.setAttribute("height",String(a)),S.setAttribute("viewBox",`0 0 ${n} ${a}`),(L=h.defs)!=null&&L.length){let _=document.createElementNS("http://www.w3.org/2000/svg","defs");_.append(...h.defs),S.append(_)}return S.append(...h.elements),S.outerHTML}static*extractBBoxes(t,n){for(let a of t)if(!n||a.visible&&!a.transitionOut){let h=a.getBBox();h&&(yield h)}}get datum(){var t,n;return(n=this._datum)!=null?n:(t=this.parentNode)==null?void 0:t.datum}set datum(t){this._datum!==t&&(this._previousDatum=this._datum,this._datum=t)}get previousDatum(){return this._previousDatum}get layerManager(){return this._layerManager}get dirty(){return this._dirty}preRender(t=1){this.childNodeCounts.groups=0,this.childNodeCounts.nonGroups=1,this.childNodeCounts.complexity=t,this.childNodeCounts.thisComplexity=t;for(let n of this.children()){let a=n.preRender();this.childNodeCounts.groups+=a.groups,this.childNodeCounts.nonGroups+=a.nonGroups,this.childNodeCounts.complexity+=a.complexity}return this.childNodeCounts}render(t){var a,h;let{stats:n}=t;if(this._dirty=!1,t.debugNodeSearch){let S=(a=this.name)!=null?a:this.id;t.debugNodeSearch.some(E=>typeof E=="string"?E===S:E.test(S))&&(t.debugNodes[(h=this.name)!=null?h:this.id]=this)}n&&(n.nodesRendered++,n.opsPerformed+=this.childNodeCounts.thisComplexity)}_setLayerManager(t){this._layerManager=t,this._debug=t==null?void 0:t.debug;for(let n of this.children())n._setLayerManager(t)}sortChildren(t){if(this.dirtyZIndex=!1,!this.childNodes)return;let n=[...this.childNodes].sort(t);this.childNodes.clear();for(let a of n)this.childNodes.add(a)}*traverseUp(t){let n=this;for(t&&(yield n);n=n.parentNode;)yield n}*children(){if(this.childNodes)for(let t of this.childNodes)yield t}isLeaf(){var t;return!((t=this.childNodes)!=null&&t.size)}isRoot(){return!this.parentNode}append(t){var n,a;(n=this.childNodes)!=null||(this.childNodes=new Set);for(let h of Ea(t))(a=h.parentNode)==null||a.removeChild(h),this.childNodes.add(h),h.parentNode=this,h._setLayerManager(this.layerManager);this.invalidateCachedBBox(),this.dirtyZIndex=!0,this.markDirty()}appendChild(t){return this.append(t),t}removeChild(t){var n;return(n=this.childNodes)!=null&&n.delete(t)?(delete t.parentNode,t._setLayerManager(),this.invalidateCachedBBox(),this.dirtyZIndex=!0,this.markDirty(),!0):!1}remove(){var t,n;return(n=(t=this.parentNode)==null?void 0:t.removeChild(this))!=null?n:!1}clear(){var t;for(let n of this.children())delete n.parentNode,n._setLayerManager();(t=this.childNodes)==null||t.clear(),this.invalidateCachedBBox()}destroy(){var t;(t=this.parentNode)==null||t.removeChild(this)}setProperties(t,n){if(n)for(let a of n)this[a]=t[a];else Object.assign(this,t);return this}containsPoint(t,n){return!1}pickNode(t,n,a=!1){if(!this.visible||this.pointerEvents===1||!this.containsPoint(t,n))return;let h=[...this.children()];if(h.length>1e3)for(let S=h.length-1;S>=0;S--){let E=h[S],_=E.containsPoint(t,n)?E.pickNode(t,n):void 0;if(_)return _}else if(h.length)for(let S=h.length-1;S>=0;S--){let E=h[S].pickNode(t,n);if(E)return E}else if(!this.isContainerNode)return this}invalidateCachedBBox(){var t;this.cachedBBox!=null&&(this.cachedBBox=void 0,(t=this.parentNode)==null||t.invalidateCachedBBox())}getBBox(){return this.cachedBBox==null&&(this.cachedBBox=Object.freeze(this.computeBBox())),this.cachedBBox}computeBBox(){}markDirty(){let{_dirty:t}=this;this.cachedBBox==null&&t||(this.invalidateCachedBBox(),this._dirty=!0,this.parentNode&&this.parentNode.markDirty())}markClean(){if(this._dirty){this._dirty=!1;for(let t of this.children())t.markClean()}}onZIndexChange(){let{parentNode:t}=this;t&&(t.dirtyZIndex=!0)}toSVG(){}},ed._nextSerialNumber=0,f([Hi()],ed.prototype,"visible",2),f([Hi({changeCb:e=>e.onZIndexChange()})],ed.prototype,"zIndex",2),Hl=ed}}),xm,$C,QC,rx,Dr,JC=M({"packages/ag-charts-community/src/util/color.ts"(){"use strict";zn(),xm=(e,t,n)=>e*(1-n)+t*n,$C=e=>{let t=e<0?-1:1,n=Math.abs(e);return n<=.04045?e/12.92:t*((n+.055)/1.055)**2.4},QC=e=>{let t=e<0?-1:1,n=Math.abs(e);return n>.0031308?t*(1.055*n**(1/2.4)-.055):12.92*e},rx=class kr{constructor(t,n,a,h=1){this.r=Gn(0,t||0,1),this.g=Gn(0,n||0,1),this.b=Gn(0,a||0,1),this.a=Gn(0,h||0,1)}static validColorString(t){return t.indexOf("#")>=0?!!kr.parseHex(t):t.indexOf("rgb")>=0?!!kr.stringToRgba(t):!!kr.nameToHex.has(t.toLowerCase())}static fromString(t){if(t.indexOf("#")>=0)return kr.fromHexString(t);let n=kr.nameToHex.get(t.toLowerCase());if(n)return kr.fromHexString(n);if(t.indexOf("rgb")>=0)return kr.fromRgbaString(t);throw new Error(`Invalid color string: '${t}'`)}static parseHex(t){t=t.replace(/ /g,"").slice(1);let n;switch(t.length){case 6:case 8:n=[];for(let a=0;a<t.length;a+=2)n.push(parseInt(`${t[a]}${t[a+1]}`,16));break;case 3:case 4:n=t.split("").map(a=>parseInt(a,16)).map(a=>a+a*16);break}if((n==null?void 0:n.length)>=3&&n.every(a=>a>=0))return n.length===3&&n.push(255),n}static fromHexString(t){let n=kr.parseHex(t);if(n){let[a,h,S,E]=n;return new kr(a/255,h/255,S/255,E/255)}throw new Error(`Malformed hexadecimal color string: '${t}'`)}static stringToRgba(t){let n=-1,a=-1;for(let L=0;L<t.length;L++){let _=t[L];if(n===-1&&_==="(")n=L;else if(_===")"){a=L;break}}if(n===-1||a===-1)return;let S=t.substring(n+1,a).split(","),E=[];for(let L=0;L<S.length;L++){let _=S[L],N=parseFloat(_);if(!Number.isFinite(N))return;_.indexOf("%")>=0?(N=Gn(0,N,100),N/=100):L===3?N=Gn(0,N,1):(N=Gn(0,N,255),N/=255),E.push(N)}return E}static fromRgbaString(t){let n=kr.stringToRgba(t);if(n){if(n.length===3)return new kr(n[0],n[1],n[2]);if(n.length===4)return new kr(n[0],n[1],n[2],n[3])}throw new Error(`Malformed rgb/rgba color string: '${t}'`)}static fromArray(t){if(t.length===4)return new kr(t[0],t[1],t[2],t[3]);if(t.length===3)return new kr(t[0],t[1],t[2]);throw new Error("The given array should contain 3 or 4 color components (numbers).")}static fromHSB(t,n,a,h=1){let S=kr.HSBtoRGB(t,n,a);return new kr(S[0],S[1],S[2],h)}static fromHSL(t,n,a,h=1){let S=kr.HSLtoRGB(t,n,a);return new kr(S[0],S[1],S[2],h)}static fromOKLCH(t,n,a,h=1){let S=kr.OKLCHtoRGB(t,n,a);return new kr(S[0],S[1],S[2],h)}static padHex(t){return t.length===1?"0"+t:t}toHexString(){let t="#"+kr.padHex(Math.round(this.r*255).toString(16))+kr.padHex(Math.round(this.g*255).toString(16))+kr.padHex(Math.round(this.b*255).toString(16));return this.a<1&&(t+=kr.padHex(Math.round(this.a*255).toString(16))),t}toRgbaString(t=3){let n=[Math.round(this.r*255),Math.round(this.g*255),Math.round(this.b*255)],a=Math.pow(10,t);return this.a!==1?(n.push(Math.round(this.a*a)/a),`rgba(${n.join(", ")})`):`rgb(${n.join(", ")})`}toString(){return this.a===1?this.toHexString():this.toRgbaString()}toHSB(){return kr.RGBtoHSB(this.r,this.g,this.b)}static RGBtoOKLCH(t,n,a){let h=$C(t),S=$C(n),E=$C(a),L=Math.cbrt(.4122214708*h+.5363325363*S+.0514459929*E),_=Math.cbrt(.2119034982*h+.6806995451*S+.1073969566*E),N=Math.cbrt(.0883024619*h+.2817188376*S+.6299787005*E),V=.2104542553*L+.793617785*_-.0040720468*N,q=1.9779984951*L-2.428592205*_+.4505937099*N,Y=.0259040371*L+.7827717662*_-.808675766*N,J=Math.atan2(Y,q)*180/Math.PI,re=V,ce=Math.hypot(q,Y),he=J>=0?J:J+360;return[re,ce,he]}static OKLCHtoRGB(t,n,a){let h=t,S=n*Math.cos(a*Math.PI/180),E=n*Math.sin(a*Math.PI/180),L=(h+.3963377774*S+.2158037573*E)**3,_=(h-.1055613458*S-.0638541728*E)**3,N=(h-.0894841775*S-1.291485548*E)**3,V=4.0767416621*L-3.3077115913*_+.2309699292*N,q=-1.2684380046*L+2.6097574011*_-.3413193965*N,Y=-.0041960863*L-.7034186147*_+1.707614701*N,J=QC(V),re=QC(q),ce=QC(Y);return[J,re,ce]}static RGBtoHSL(t,n,a){let h=Math.min(t,n,a),S=Math.max(t,n,a),E=(S+h)/2,L,_;if(S===h)L=0,_=0;else{let N=S-h;_=E>.5?N/(2-S-h):N/(S+h),S===t?L=(n-a)/N+(n<a?6:0):S===n?L=(a-t)/N+2:L=(t-n)/N+4,L*=360/6}return[L,_,E]}static HSLtoRGB(t,n,a){if(t=(t%360+360)%360,n===0)return[a,a,a];let h=a<.5?a*(1+n):a+n-a*n,S=2*a-h;function E(V){return V<0&&(V+=1),V>1&&(V-=1),V<1/6?S+(h-S)*6*V:V<1/2?h:V<2/3?S+(h-S)*(2/3-V)*6:S}let L=E(t/360+1/3),_=E(t/360),N=E(t/360-1/3);return[L,_,N]}static RGBtoHSB(t,n,a){let h=Math.min(t,n,a),S=Math.max(t,n,a),E=S===0?0:(S-h)/S,L=0;if(h!==S){let _=S-h,N=(S-t)/_,V=(S-n)/_,q=(S-a)/_;t===S?L=q-V:n===S?L=2+N-q:L=4+V-N,L/=6,L<0&&(L=L+1)}return[L*360,E,S]}static HSBtoRGB(t,n,a){t=(t%360+360)%360/360;let h=0,S=0,E=0;if(n===0)h=S=E=a;else{let L=(t-Math.floor(t))*6,_=L-Math.floor(L),N=a*(1-n),V=a*(1-n*_),q=a*(1-n*(1-_));switch(L>>0){case 0:h=a,S=q,E=N;break;case 1:h=V,S=a,E=N;break;case 2:h=N,S=a,E=q;break;case 3:h=N,S=V,E=a;break;case 4:h=q,S=N,E=a;break;case 5:h=a,S=N,E=V;break}}return[h,S,E]}static mix(t,n,a){return new kr(xm(t.r,n.r,a),xm(t.g,n.g,a),xm(t.b,n.b,a),xm(t.a,n.a,a))}},rx.nameToHex=new Map([["aliceblue","#F0F8FF"],["antiquewhite","#FAEBD7"],["aqua","#00FFFF"],["aquamarine","#7FFFD4"],["azure","#F0FFFF"],["beige","#F5F5DC"],["bisque","#FFE4C4"],["black","#000000"],["blanchedalmond","#FFEBCD"],["blue","#0000FF"],["blueviolet","#8A2BE2"],["brown","#A52A2A"],["burlywood","#DEB887"],["cadetblue","#5F9EA0"],["chartreuse","#7FFF00"],["chocolate","#D2691E"],["coral","#FF7F50"],["cornflowerblue","#6495ED"],["cornsilk","#FFF8DC"],["crimson","#DC143C"],["cyan","#00FFFF"],["darkblue","#00008B"],["darkcyan","#008B8B"],["darkgoldenrod","#B8860B"],["darkgray","#A9A9A9"],["darkgreen","#006400"],["darkgrey","#A9A9A9"],["darkkhaki","#BDB76B"],["darkmagenta","#8B008B"],["darkolivegreen","#556B2F"],["darkorange","#FF8C00"],["darkorchid","#9932CC"],["darkred","#8B0000"],["darksalmon","#E9967A"],["darkseagreen","#8FBC8F"],["darkslateblue","#483D8B"],["darkslategray","#2F4F4F"],["darkslategrey","#2F4F4F"],["darkturquoise","#00CED1"],["darkviolet","#9400D3"],["deeppink","#FF1493"],["deepskyblue","#00BFFF"],["dimgray","#696969"],["dimgrey","#696969"],["dodgerblue","#1E90FF"],["firebrick","#B22222"],["floralwhite","#FFFAF0"],["forestgreen","#228B22"],["fuchsia","#FF00FF"],["gainsboro","#DCDCDC"],["ghostwhite","#F8F8FF"],["gold","#FFD700"],["goldenrod","#DAA520"],["gray","#808080"],["green","#008000"],["greenyellow","#ADFF2F"],["grey","#808080"],["honeydew","#F0FFF0"],["hotpink","#FF69B4"],["indianred","#CD5C5C"],["indigo","#4B0082"],["ivory","#FFFFF0"],["khaki","#F0E68C"],["lavender","#E6E6FA"],["lavenderblush","#FFF0F5"],["lawngreen","#7CFC00"],["lemonchiffon","#FFFACD"],["lightblue","#ADD8E6"],["lightcoral","#F08080"],["lightcyan","#E0FFFF"],["lightgoldenrodyellow","#FAFAD2"],["lightgray","#D3D3D3"],["lightgreen","#90EE90"],["lightgrey","#D3D3D3"],["lightpink","#FFB6C1"],["lightsalmon","#FFA07A"],["lightseagreen","#20B2AA"],["lightskyblue","#87CEFA"],["lightslategray","#778899"],["lightslategrey","#778899"],["lightsteelblue","#B0C4DE"],["lightyellow","#FFFFE0"],["lime","#00FF00"],["limegreen","#32CD32"],["linen","#FAF0E6"],["magenta","#FF00FF"],["maroon","#800000"],["mediumaquamarine","#66CDAA"],["mediumblue","#0000CD"],["mediumorchid","#BA55D3"],["mediumpurple","#9370DB"],["mediumseagreen","#3CB371"],["mediumslateblue","#7B68EE"],["mediumspringgreen","#00FA9A"],["mediumturquoise","#48D1CC"],["mediumvioletred","#C71585"],["midnightblue","#191970"],["mintcream","#F5FFFA"],["mistyrose","#FFE4E1"],["moccasin","#FFE4B5"],["navajowhite","#FFDEAD"],["navy","#000080"],["oldlace","#FDF5E6"],["olive","#808000"],["olivedrab","#6B8E23"],["orange","#FFA500"],["orangered","#FF4500"],["orchid","#DA70D6"],["palegoldenrod","#EEE8AA"],["palegreen","#98FB98"],["paleturquoise","#AFEEEE"],["palevioletred","#DB7093"],["papayawhip","#FFEFD5"],["peachpuff","#FFDAB9"],["peru","#CD853F"],["pink","#FFC0CB"],["plum","#DDA0DD"],["powderblue","#B0E0E6"],["purple","#800080"],["rebeccapurple","#663399"],["red","#FF0000"],["rosybrown","#BC8F8F"],["royalblue","#4169E1"],["saddlebrown","#8B4513"],["salmon","#FA8072"],["sandybrown","#F4A460"],["seagreen","#2E8B57"],["seashell","#FFF5EE"],["sienna","#A0522D"],["silver","#C0C0C0"],["skyblue","#87CEEB"],["slateblue","#6A5ACD"],["slategray","#708090"],["slategrey","#708090"],["snow","#FFFAFA"],["springgreen","#00FF7F"],["steelblue","#4682B4"],["tan","#D2B48C"],["teal","#008080"],["thistle","#D8BFD8"],["tomato","#FF6347"],["transparent","#00000000"],["turquoise","#40E0D0"],["violet","#EE82EE"],["wheat","#F5DEB3"],["white","#FFFFFF"],["whitesmoke","#F5F5F5"],["yellow","#FFFF00"],["yellowgreen","#9ACD32"]]),Dr=rx}});function mI(e,t){return n=>Number(e)*(1-n)+Number(t)*n}function fI(e,t){if(typeof e=="string")try{e=Dr.fromString(e)}catch(n){e=Dr.fromArray([0,0,0])}if(typeof t=="string")try{t=Dr.fromString(t)}catch(n){t=Dr.fromArray([0,0,0])}return n=>Dr.mix(e,t,n).toRgbaString()}var ms=M({"packages/ag-charts-community/src/util/interpolate.ts"(){"use strict";JC()}});function up(e,t){Object.getOwnPropertyDescriptor(e,mr)==null&&Object.defineProperty(e,mr,{value:{}});let n=e[mr],a=t.toString();if(typeof n[a]!="undefined")return n[a];let h=new WeakMap;n[a]={setters:[],getters:[],observers:[],valuesMap:h};let S=Object.getOwnPropertyDescriptor(e,t),E=S==null?void 0:S.set,L=S==null?void 0:S.get;return Object.defineProperty(e,t,{set:function(V){let{setters:q,observers:Y}=n[a],J;q.some(re=>re.length>2)&&(J=L?L.call(this):h.get(this));for(let re of q)if(V=re(this,t,V,J),V===iv)return;E?E.call(this,V):h.set(this,V);for(let re of Y)re(this,V,J)},get:function(){let V=L?L.call(this):h.get(this);for(let q of n[a].getters)if(V=q(this,t,V),V===iv)return;return V},enumerable:!0,configurable:!1}),n[a]}function Uo(e,t,n){return(a,h)=>{let S=up(a,h);S.setters.push(e),t&&S.getters.unshift(t),n&&Object.assign(S,n)}}function Mm(e){return(t,n)=>{up(t,n).observers.push(e)}}function e0(e){return typeof e!="undefined"&&mr in e}function gh(e){let t=new Set;for(;e0(e);)t.add(e==null?void 0:e[mr]),e=Object.getPrototypeOf(e);return Array.from(t).flatMap(n=>Object.keys(n))}function FA(e){return gh(e).reduce((t,n)=>{var a;return t[n]=(a=e[n])!=null?a:null,t},{})}function By(e,t){let n=t.toString();for(;e0(e);){let a=e[mr];if(Object.hasOwn(a,n))return a[n];e=Object.getPrototypeOf(e)}}var iv,mr,Wl=M({"packages/ag-charts-community/src/util/decorator.ts"(){"use strict";iv=Symbol("BREAK"),mr="__decorator_config"}});function un(e){return e!=null}function ho(e){return Array.isArray(e)}function fu(e){return typeof e=="boolean"}function Je(e){return e instanceof Date}function Ld(e){return Je(e)&&!isNaN(Number(e))}function km(e){return e instanceof RegExp}function Gi(e){return typeof e=="function"}function Br(e){return typeof e=="object"&&e!==null&&!ho(e)}function Zi(e){return ho(e)||no(e)}function no(e){return typeof e=="object"&&e!==null&&Object.getPrototypeOf(e)===Object.prototype}function ui(e){return typeof e=="string"}function Vn(e){return typeof e=="number"}function Na(e){return Number.isFinite(e)}function t0(e){return typeof window!="undefined"&&e instanceof HTMLElement}function Fi(e,t){return ui(t)&&Object.keys(e).includes(t)}function Ia(e,t){return Object.values(e).includes(t)}function ei(e){return typeof e=="symbol"}function nv(e,t){return e.type!==t}var Hn=M({"packages/ag-charts-community/src/util/type-guards.ts"(){"use strict"}});function Ko(e,t){return Array.isArray(e)?!Array.isArray(t)||e.length!==t.length?!1:e.every((n,a)=>Ko(n,t[a])):no(e)?no(t)?ph(e,t,Ko):!1:e===t}function ph(e,t,n){for(let a of Object.keys(t))if(!(a in e))return!1;for(let a of Object.keys(e))if(!(a in t)||!n(e[a],t[a]))return!1;return!0}function Gy(...e){return ia(...e.reverse())}function ia(...e){var n;let t={};for(let a of e){if(!Br(a))continue;let h=e0(a)?gh(a):Object.keys(a);for(let S of h)no(t[S])&&no(a[S])?t[S]=ia(t[S],a[S]):(n=t[S])!=null||(t[S]=a[S])}return t}function jy(e,...t){return t&&ho(e)?e.map(n=>ia(n,...t)):e}function NA(e,t){return Object.entries(e).reduce((n,[a,h])=>(n[a]=t(h,a,e),n),{})}function na(e,t){let n=pe({},e);for(let a of t)delete n[a];return n}function gl(e,t){return(ho(t)?t:t.split(".")).reduce((a,h)=>a[h],e)}function Bs(e,t,n){let a=ho(t)?t.slice():t.split("."),h=a.pop();if(a.some(E=>i0.has(E)))return;let S=a.reduce((E,L)=>E[L],e);return S[h]=n,S[h]}function Ic(e,t,n){if(n===void 0)return t;for(let a of e){let h=n[a];h!==void 0&&(t[a]=h)}return t}function Vy(e){return Object.freeze(e),Object.getOwnPropertyNames(e).forEach(t=>{let n=e[t];n!==null&&(typeof n=="object"||typeof n=="function")&&!Object.isFrozen(n)&&Vy(n)}),e}var i0,Ta=M({"packages/ag-charts-community/src/util/object.ts"(){"use strict";Wl(),Hn(),i0=new Set(["__proto__","constructor","prototype"])}}),Sa={};A(Sa,{easeIn:()=>vI,easeInOut:()=>n0,easeInOutQuad:()=>Hy,easeInQuad:()=>mh,easeOut:()=>qo,easeOutQuad:()=>fh,inverseEaseOut:()=>a0,linear:()=>tg});var tg,vI,qo,n0,mh,fh,Hy,a0,Wy=M({"packages/ag-charts-community/src/motion/easing.ts"(){"use strict";tg=e=>e,vI=e=>1-Math.cos(e*Math.PI/2),qo=e=>Math.sin(e*Math.PI/2),n0=e=>-(Math.cos(e*Math.PI)-1)/2,mh=e=>e*e,fh=e=>1-(1-e)**2,Hy=e=>e<.5?2*e*e:1-(-2*e+2)**2/2,a0=e=>2*Math.asin(e)/Math.PI}});function yI(e){return e.every(t=>t instanceof Hl)}function ig(e){return yI(e)?{nodes:e,selections:[]}:{nodes:[],selections:e}}function td(e,t){return e===t?!0:Array.isArray(e)&&Array.isArray(t)?e.length===t.length&&e.every((n,a)=>td(n,t[a])):Fo(e)&&Fo(t)?e.equals(t):no(e)&&no(t)?ph(e,t,td):!1}var hp,ng,wa,o0,sx,xa=M({"packages/ag-charts-community/src/motion/animation.ts"(){"use strict";Wa(),ms(),Ec(),zn(),Ta(),Hn(),Wy(),hp=.2,ng=["initial","remove","update","add","trailing","end","none"],wa={initial:{animationDuration:1,animationDelay:0},add:{animationDuration:.25,animationDelay:.75},remove:{animationDuration:.25,animationDelay:0},update:{animationDuration:.5,animationDelay:.25},trailing:{animationDuration:hp,animationDelay:1,skipIfNoEarlierAnimations:!0},end:{animationDelay:1+hp,animationDuration:0,skipIfNoEarlierAnimations:!0},none:{animationDuration:0,animationDelay:0}},o0=(e=>(e.Loop="loop",e.Reverse="reverse",e))(o0||{}),sx=class{constructor(e){var n,a,h,S,E,L,_;this.isComplete=!1,this.elapsed=0,this.iteration=0,this.isPlaying=!1,this.isReverse=!1,this.id=e.id,this.groupId=e.groupId,this.autoplay=(n=e.autoplay)!=null?n:!0,this.ease=(a=e.ease)!=null?a:tg,this.phase=e.phase;let t=(h=e.duration)!=null?h:wa[this.phase].animationDuration;this.duration=t*e.defaultDuration,this.delay=((S=e.delay)!=null?S:0)*e.defaultDuration,this.onComplete=e.onComplete,this.onPlay=e.onPlay,this.onStop=e.onStop,this.onUpdate=e.onUpdate,this.interpolate=this.createInterpolator(e.from,e.to),this.from=e.from,e.skip===!0&&((E=this.onUpdate)==null||E.call(this,e.to,!1,this),(L=this.onStop)==null||L.call(this,this),(_=this.onComplete)==null||_.call(this,this),this.isComplete=!0),e.collapsable!==!1&&(this.duration=this.checkCollapse(e,this.duration))}checkCollapse(e,t){return td(e.from,e.to)?0:t}play(e=!1){var t,n;this.isPlaying||this.isComplete||(this.isPlaying=!0,(t=this.onPlay)==null||t.call(this,this),this.autoplay&&(this.autoplay=!1,e&&((n=this.onUpdate)==null||n.call(this,this.from,!0,this))))}pause(){this.isPlaying=!1}stop(){var e;this.isPlaying=!1,this.isComplete||(this.isComplete=!0,(e=this.onStop)==null||e.call(this,this))}update(e){var h,S;if(this.isComplete)return e;!this.isPlaying&&this.autoplay&&this.play(!0);let t=this.elapsed;if(this.elapsed+=e,this.delay>this.elapsed)return 0;let n=this.interpolate(this.isReverse?1-this.delta:this.delta);(h=this.onUpdate)==null||h.call(this,n,!1,this);let a=this.delay+this.duration;return this.elapsed>=a?(this.stop(),this.isComplete=!0,(S=this.onComplete)==null||S.call(this,this),e-(a-t)):0}get delta(){return this.ease(Gn(0,(this.elapsed-this.delay)/this.duration,1))}createInterpolator(e,t){if(typeof t!="object"||Fo(t))return this.interpolateValue(e,t);let n=[];for(let a of Object.keys(t)){let h=this.interpolateValue(e[a],t[a]);h!=null&&n.push([a,h])}return a=>{let h={};for(let[S,E]of n)h[S]=E(a);return h}}interpolateValue(e,t){if(!(e==null||t==null)){if(Fo(e))return n=>e[Jc](t,n);try{switch(typeof e){case"number":return mI(e,t);case"string":return fI(e,t);case"boolean":if(e===t)return()=>e;break}}catch(n){}throw new Error(`Unable to interpolate values: ${e}, ${t}`)}}}}}),bI={};A(bI,{NODE_UPDATE_STATE_TO_PHASE_MAPPING:()=>pl,fromToMotion:()=>Do,staticFromToMotion:()=>vh});function Do(e,t,n,a,h,S,E){let{fromFn:L,toFn:_,applyFn:N=(re,ce)=>re.setProperties(ce)}=h,{nodes:V,selections:q}=ig(a),Y=(re,ce)=>{var Le;let he,me=0,we=0;for(let Fe of ce){let je=re[me]===Fe,Xe={last:we>=ce.length-1,lastLive:me>=re.length-1,prev:ce[we-1],prevFromProps:he,prevLive:re[me-1],next:ce[we+1],nextLive:re[me+(je?1:0)]},nt=`${e}_${t}_${Fe.id}`;n.stopByAnimationId(nt);let lt="unknown";je?S&&E&&(lt=RP(Fe,Fe.datum,S,E)):lt="removed",Fe.transitionOut=lt==="removed";let Me=L(Fe,Fe.datum,lt,Xe),{phase:ot,start:vt,finish:gt,delay:bt,duration:At}=Me,Rt=ji(Me,["phase","start","finish","delay","duration"]),be=_(Fe,Fe.datum,lt,Xe),{phase:It,start:Dt,finish:jt,delay:Nt,duration:zt}=be,Ut=ji(be,["phase","start","finish","delay","duration"]),Vt=gt==null;n.animate({id:nt,groupId:e,phase:(Le=ot!=null?ot:It)!=null?Le:"update",duration:At!=null?At:zt,delay:bt!=null?bt:Nt,from:Rt,to:Ut,ease:qo,collapsable:Vt,onPlay:()=>{N(Fe,pe(pe(pe({},vt),Dt),Rt))},onUpdate(Wt){N(Fe,Wt)},onStop:()=>{N(Fe,pe(pe(pe(pe(pe(pe({},vt),Dt),Rt),Ut),gt),jt))}}),je&&me++,we++,he=Rt}},J=0;for(let re of q){let ce=re.nodes(),he=ce.filter(me=>!re.isGarbage(me));Y(he,ce),n.animate({id:`${e}_${t}_selection_${J}`,groupId:e,phase:"end",from:0,to:1,ease:qo,onStop(){re.cleanup()}}),J++}Y(V,V)}function vh(e,t,n,a,h,S,E){let{nodes:L,selections:_}=ig(a),{start:N,finish:V,phase:q}=E;n.animate({id:`${e}_${t}`,groupId:e,phase:q!=null?q:"update",from:h,to:S,ease:qo,onPlay:()=>{if(N){for(let Y of L)Y.setProperties(N);for(let Y of _)for(let J of Y.nodes())J.setProperties(N)}},onUpdate(Y){for(let J of L)J.setProperties(Y);for(let J of _)for(let re of J.nodes())re.setProperties(Y)},onStop:()=>{for(let Y of L)Y.setProperties(pe(pe({},S),V));for(let Y of _){for(let J of Y.nodes())J.setProperties(pe(pe({},S),V));Y.cleanup()}}})}function RP(e,t,n,a){let h=n(e,t);return a.added.has(h)?"added":a.removed.has(h)?"removed":"updated"}var pl,fs=M({"packages/ag-charts-community/src/motion/fromToMotion.ts"(){"use strict";xa(),Wy(),pl={added:"add",updated:"update",removed:"remove",unknown:"initial","no-op":"none"}}});function vu(e,t){Yo.has(t)||(Yo.set(t,!0),e())}function av(e){return e}function yh(e,t=0,n){let{leading:a=!1,trailing:h=!0,maxWait:S=1/0}=n!=null?n:{},E,L;if(S<t)throw new Error("Value of maxWait cannot be lower than waitMs.");function _(...N){if(a&&!L){L=Date.now(),E=setTimeout(()=>L=null,t),e(...N);return}let V=t;if(S!==1/0&&L){let q=Date.now()-L;t>S-q&&(V=S-q)}clearTimeout(E),L!=null||(L=Date.now()),E=setTimeout(()=>{L=null,h&&e(...N)},V)}return Object.assign(_,{cancel(){clearTimeout(E),L=null}})}function Am(e,t,n){let{leading:a=!0,trailing:h=!0}=n!=null?n:{},S,E,L=!1;function _(){h&&E?(S=setTimeout(_,t),e(...E)):L=!1,E=null}function N(...V){L?E=V:(L=!0,S=setTimeout(_,t),a?e(...V):E=V)}return Object.assign(N,{cancel(){clearTimeout(S),L=!1,E=null}})}var Yo,Tc=M({"packages/ag-charts-community/src/util/function.ts"(){"use strict";Yo=new Map,vu.clear=()=>Yo.clear()}}),Di,Rn=M({"packages/ag-charts-community/src/util/logger.ts"(){"use strict";Tc(),Di={log(...e){console.log(...e)},warn(e,...t){console.warn(`AG Charts - ${e}`,...t)},error(e,...t){typeof e=="object"?console.error("AG Charts error",e,...t):console.error(`AG Charts - ${e}`,...t)},table(...e){console.table(...e)},warnOnce(e,...t){vu(()=>Di.warn(e,...t),`Logger.warn: ${e}`)},errorOnce(e,...t){vu(()=>Di.error(e,...t),`Logger.error: ${e}`)}}}}),es,ml=M({"packages/ag-charts-community/src/scale/invalidating.ts"(){"use strict";es=(e,t)=>{let n=Symbol(String(t));e[n]=void 0,Object.defineProperty(e,t,{get(){return this[n]},set(a){this[n]!==a&&(this[n]=a,this.invalid=!0)},enumerable:!0,configurable:!1})}}}),cr,go,Gs=M({"packages/ag-charts-community/src/scale/continuousScale.ts"(){"use strict";Rn(),zn(),ml(),cr=class rV{constructor(t,n){this.invalid=!0,this.nice=!1,this.interval=void 0,this.tickCount=rV.defaultTickCount,this.minTickCount=0,this.maxTickCount=1/0,this.niceDomain=[],this.defaultClamp=!1,this.domain=t,this.range=n}static is(t){return t instanceof rV}transform(t){return t}transformInvert(t){return t}calcBandwidth(t=1){let n=this.getDomain(),a=this.getPixelRange(),h=Math.abs(n[1]-n[0])/t+1,S=Math.floor(a),E=Math.min(h,S);return a/Math.max(1,E)}getDomain(){return this.nice&&(this.refresh(),this.niceDomain.length)?this.niceDomain:this.domain}convert(t,n){if(!this.domain||this.domain.length<2)return NaN;this.refresh();let a=this.getDomain().map(N=>this.transform(N)),[h,S]=a,{range:E}=this,[L,_]=E;if(t=this.transform(t),n!=null?n:this.defaultClamp){let[N,V]=zs(a.map(Number));if(Number(t)<N)return L;if(Number(t)>V)return _}return h===S?(L+_)/2:t===h?L:t===S?_:L+(Number(t)-Number(h))/(Number(S)-Number(h))*(_-L)}invert(t,n){this.refresh();let a=this.getDomain().map(J=>this.transform(J)),[h,S]=a,{range:E}=this,[L,_]=E,N=L>_,V=N?_:L,q=N?L:_;if(n!=null?n:this.defaultClamp){if(t<V)return N?S:h;if(t>q)return N?h:S}let Y;return L===_?Y=this.toDomain((Number(h)+Number(S))/2):Y=this.toDomain(Number(h)+(t-L)/(_-L)*(Number(S)-Number(h))),this.transformInvert(Y)}refresh(){this.invalid&&(this.invalid=!1,this.update(),this.invalid&&Di.warnOnce("Expected update to not invalidate scale"))}getPixelRange(){let[t,n]=this.range;return Math.abs(n-t)}},cr.defaultTickCount=5,cr.defaultMaxTickCount=6,f([es],cr.prototype,"domain",2),f([es],cr.prototype,"range",2),f([es],cr.prototype,"nice",2),f([es],cr.prototype,"interval",2),f([es],cr.prototype,"tickCount",2),f([es],cr.prototype,"minTickCount",2),f([es],cr.prototype,"maxTickCount",2),go=cr}});function gp(e){if(e.length===0)return null;let t=1/0,n=-1/0;for(let h of e)h instanceof Date&&(h=h.getTime()),typeof h=="number"&&(h<t&&(t=h),h>n&&(n=h));let a=[t,n];return a.every(isFinite)?a:null}function lx(e,t,n){var h;let a=!1;return e.length>2&&(e=(h=gp(e))!=null?h:[NaN,NaN]),isNaN(t)||(a||(a=t>e[0]),e=[t,e[1]]),isNaN(n)||(a||(a=n<e[1]),e=[e[0],n]),e[0]>e[1]&&(e=[]),{extent:e,clipped:a}}function bh(e,t){if(e==null||t==null||e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(Array.isArray(e[n])&&Array.isArray(t[n])){if(!bh(e[n],t[n]))return!1}else if(e[n]!==t[n])return!1;return!0}function Uy(e){return typeof e=="undefined"?[]:Array.isArray(e)?e:[e]}function cx(e){return Array.from(new Set(e))}function dx(e,t){return e.reduce((n,a)=>{var S;let h=t(a);return(S=n[h])!=null||(n[h]=[]),n[h].push(a),n},{})}function ov(e,t,n=0){if(e.length===0)return[];let a=[];for(let h=0;h<t;h++)a.push(e.at((h+n)%e.length));return a}function CI(e,t){let n=new Map;return t.forEach((a,h)=>{n.set(a,h)}),e.sort((a,h)=>{var L,_;let S=(L=n.get(a))!=null?L:1/0,E=(_=n.get(h))!=null?_:1/0;return S-E})}function zA(e,t){return e.includes(t)}var ts=M({"packages/ag-charts-community/src/util/array.ts"(){"use strict"}}),fl,vs,fa,ys,Ch,Sh,ag,wh=M({"packages/ag-charts-community/src/util/time/duration.ts"(){"use strict";fl=1e3,vs=fl*60,fa=vs*60,ys=fa*24,Ch=ys*7,Sh=ys*30,ag=ys*365}}),Ri,On,Ul=M({"packages/ag-charts-community/src/util/time/interval.ts"(){"use strict";Rn(),Ri=class{constructor(e,t,n){this._encode=e,this._decode=t,this._rangeCallback=n}floor(e){let t=new Date(e),n=this._encode(t);return this._decode(n)}ceil(e){let t=new Date(Number(e)-1),n=this._encode(t);return this._decode(n+1)}range(e,t,n){var L;let a=(L=this._rangeCallback)==null?void 0:L.call(this,e,t),h=this._encode(n?this.floor(e):this.ceil(e)),S=this._encode(n?this.ceil(t):this.floor(t));if(S<h)return[];let E=[];for(let _=h;_<=S;_++){let N=this._decode(_);E.push(N)}return a==null||a(),E}},On=class extends Ri{getOffset(e,t){let n=typeof e=="number"||e instanceof Date?this._encode(new Date(e)):0;return Math.floor(n)%t}every(e,t){let n=0,a,h=e;e=Math.max(1,Math.round(e)),h!==e&&Di.warnOnce(`interval step of [${h}] rounded to [${e}].`);let{snapTo:S="start"}=t!=null?t:{};if(typeof S=="string"){let _=n;a=(N,V)=>{let q=S==="start"?N:V;return n=this.getOffset(q,e),()=>n=_}}else typeof S=="number"?n=this.getOffset(new Date(S),e):S instanceof Date&&(n=this.getOffset(S,e));let E=_=>{let N=this._encode(_);return Math.floor((N-n)/e)},L=_=>this._decode(_*e+n);return new Ri(E,L,a)}}}});function js(e){let t=e.getTimezoneOffset()*vs;return Math.floor((e.getTime()-t)/ys)}function r0(e){let t=new Date(1970,0,1);return t.setDate(t.getDate()+e),t}var Ky,ux=M({"packages/ag-charts-community/src/util/time/day.ts"(){"use strict";wh(),Ul(),Ky=new On(js,r0)}});function SI(e){return Math.floor((e.getTime()-hx)/fa)}function BA(e){return new Date(hx+e*fa)}var hx,Dm,GA=M({"packages/ag-charts-community/src/util/time/hour.ts"(){"use strict";wh(),Ul(),hx=new Date().getTimezoneOffset()*vs,Dm=new On(SI,BA)}});function wI(e){return Math.floor((e.getTime()-jA)/vs)}function xI(e){return new Date(jA+e*vs)}var jA,Em,s0=M({"packages/ag-charts-community/src/util/time/minute.ts"(){"use strict";wh(),Ul(),jA=new Date().getTimezoneOffset()*vs,Em=new On(wI,xI)}});function VA(e){return e.getFullYear()*12+e.getMonth()}function l0(e){let t=Math.floor(e/12),n=e-t*12;return new Date(t,n,1)}var Vs,HA=M({"packages/ag-charts-community/src/util/time/month.ts"(){"use strict";Ul(),Vs=new On(VA,l0)}});function gx(e){return Math.floor((e.getTime()-c0)/fl)}function qy(e){return new Date(c0+e*fl)}var c0,vl,og=M({"packages/ag-charts-community/src/util/time/second.ts"(){"use strict";wh(),Ul(),c0=new Date().getTimezoneOffset()*vs,vl=new On(gx,qy)}});function Im(e){let n=(7+e-4)%7;function a(S){let E=S.getTimezoneOffset()*vs;return Math.floor((S.getTime()-E)/Ch-n/7)}function h(S){let E=new Date(1970,0,1);return E.setDate(E.getDate()+S*7+n),E}return new On(a,h)}var rv,px,Tm,mx,Rm,fr,fx,vx=M({"packages/ag-charts-community/src/util/time/week.ts"(){"use strict";wh(),Ul(),rv=Im(0),px=Im(1),Tm=Im(2),mx=Im(3),Rm=Im(4),fr=Im(5),fx=Im(6)}});function WA(e){return e.getFullYear()}function Mn(e){let t=new Date;return t.setFullYear(e),t.setMonth(0,1),t.setHours(0,0,0,0),t}var Yy,UA=M({"packages/ag-charts-community/src/util/time/year.ts"(){"use strict";Ul(),Yy=new On(WA,Mn)}});function yl(e,t=new Date(e.getFullYear(),0,1)){let n=e.getTimezoneOffset()-t.getTimezoneOffset(),a=e.getTime()-t.getTime()+n*6e4,h=36e5*24;return Math.floor(a/h)}function sv(e,t){let a=new Date(e.getFullYear(),0,1).getDay(),h=(t-a+7)%7,S=new Date(e.getFullYear(),0,h+1);return S<=e?Math.floor(yl(e,S)/7)+1:0}function yu(e,t=e.getFullYear()){let a=new Date(t,0,1).getDay(),h=(Cx-a+7)%7,S=new Date(t,0,h-(Cx-bx)+1);return S<=e?Math.floor(yl(e,S)/7)+1:yu(e,t-1)}function bs(e){let t=e.getTimezoneOffset(),n=Math.abs(t);return`${t>0?"-":"+"}${ca(Math.floor(n/60),2,"0")}${ca(Math.floor(n%60),2,"0")}`}function ca(e,t,n){let a=String(Math.floor(e));return a.length>=t?a:`${n.repeat(t-a.length)}${a}`}function Aa(e){let t=[];for(;e.length>0;){let n=e.indexOf("%");if(n!==0){let L=n>0?e.substring(0,n):e;t.push(L)}if(n<0)break;let a=e[n+1],h=Sx[a];h!=null&&n++;let S=e[n+1],E=xh[S];if(typeof E=="function")t.push([E,h]);else if(typeof E=="string"){let L=Aa(E);t.push([L,h])}else t.push(`${h!=null?h:""}${S}`);e=e.substring(n+2)}return n=>{let a=typeof n=="number"?new Date(n):n;return t.map(h=>typeof h=="string"?h:h[0](a,h[1])).join("")}}var lv,yx,bx,Cx,xh,Sx,cv=M({"packages/ag-charts-community/src/util/timeFormat.ts"(){"use strict";lv={periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]},yx=0,bx=1,Cx=4,xh={a:e=>lv.shortDays[e.getDay()],A:e=>lv.days[e.getDay()],b:e=>lv.shortMonths[e.getMonth()],B:e=>lv.months[e.getMonth()],c:"%x, %X",d:(e,t)=>ca(e.getDate(),2,t!=null?t:"0"),e:"%_d",f:(e,t)=>ca(e.getMilliseconds()*1e3,6,t!=null?t:"0"),H:(e,t)=>ca(e.getHours(),2,t!=null?t:"0"),I:(e,t)=>{let n=e.getHours()%12;return n===0?"12":ca(n,2,t!=null?t:"0")},j:(e,t)=>ca(yl(e)+1,3,t!=null?t:"0"),m:(e,t)=>ca(e.getMonth()+1,2,t!=null?t:"0"),M:(e,t)=>ca(e.getMinutes(),2,t!=null?t:"0"),L:(e,t)=>ca(e.getMilliseconds(),3,t!=null?t:"0"),p:e=>e.getHours()<12?"AM":"PM",Q:e=>String(e.getTime()),s:e=>String(Math.floor(e.getTime()/1e3)),S:(e,t)=>ca(e.getSeconds(),2,t!=null?t:"0"),u:e=>{let t=e.getDay();return t<1&&(t+=7),String(t%7)},U:(e,t)=>ca(sv(e,yx),2,t!=null?t:"0"),V:(e,t)=>ca(yu(e),2,t!=null?t:"0"),w:(e,t)=>ca(e.getDay(),2,t!=null?t:"0"),W:(e,t)=>ca(sv(e,bx),2,t!=null?t:"0"),x:"%-m/%-d/%Y",X:"%-I:%M:%S %p",y:(e,t)=>ca(e.getFullYear()%100,2,t!=null?t:"0"),Y:(e,t)=>ca(e.getFullYear(),4,t!=null?t:"0"),Z:e=>bs(e),"%":()=>"%"},Sx={_:" ",0:"0","-":""}}});function is(e){return e instanceof Date?e.getTime():e}function Xy(e,t,n){let a=wx(e,t,n),h=Aa(a);return S=>h(S)}function wx(e=[],t=e,n=0){let a=1/0;for(let _=1;_<e.length;_++)a=Math.min(a,Math.abs(e[_]-e[_-1]));let h=new Date(t[0]).getFullYear(),E=new Date(t.at(-1)).getFullYear()-h>0,L=isFinite(a)?xx(a,e):PP(e[0]);return LP(Math.max(L-n,0),E,e)}function xx(e,t){return e<fl?0:e<vs?1:e<fa?2:e<ys?3:e<Ch?4:e<ys*28||e<ys*31&&Zy(t)?5:e<ag?6:7}function PP(e){return vl.floor(e)<e?0:Em.floor(e)<e?1:Dm.floor(e)<e?2:Ky.floor(e)<e?3:Vs.floor(e)<e?rv.floor(e)<e?4:5:Yy.floor(e)<e?6:7}function Zy(e){let t=new Date(e[0]).getMonth();for(let n=1;n<e.length;n++){let a=new Date(e[n]).getMonth();if(t===a)return!0;t=a}return!1}function LP(e,t,n){let a=is(n[0]),h=is(n.at(-1)),S=Math.abs(h-a),E=t||e===7,L=S===0,N=[["hour",6*fa,14*ys,3,"%I %p"],["hour",vs,6*fa,3,"%I:%M"],["second",1e3,6*fa,1,":%S"],["ms",0,6*fa,0,".%L"],["am/pm",vs,6*fa,3,"%p"]," ",["day",ys,Ch,4,"%a"],["month",L?0:Ch,52*Ch,5,"%b %d"],["month",5*Ch,10*ag,6,"%B"]," ",["year",E?0:ag,1/0,7,"%Y"]].filter(Y=>{if(typeof Y=="string")return!0;let[J,re,ce,he]=Y;return he>=e&&re<=S&&S<ce}).reduce((Y,J)=>(typeof J=="string"?Y.result.push(J):Y.used.has(J[0])||(Y.result.push(J),Y.used.add(J[0])),Y),{result:[],used:new Set}).result,V=N.findIndex(Y=>typeof Y!="string"),q=N.findLastIndex(Y=>typeof Y!="string");return N.slice(V,q+1).map(Y=>typeof Y=="string"?Y:Y[4]).join("").replaceAll(/\s+/g," ").trim()}var Ua=M({"packages/ag-charts-community/src/util/timeFormatDefaults.ts"(){"use strict";ux(),GA(),s0(),HA(),og(),vx(),UA(),wh(),cv()}}),No,dr,bu=M({"packages/ag-charts-community/src/scale/bandScale.ts"(){"use strict";Rn(),zn(),Ua(),ml(),No=class bZ{constructor(){this.type="band",this.invalid=!0,this.range=[0,1],this.round=!1,this.interval=void 0,this.index=new Map,this._domain=[],this._bandwidth=1,this._step=1,this._inset=1,this._rawBandwidth=1,this._paddingInner=0,this._paddingOuter=0}static is(t){return t instanceof bZ}refresh(){this.invalid&&(this.invalid=!1,this.update(),this.invalid&&Di.warnOnce("Expected update to not invalidate scale"))}set domain(t){this.index=new Map,this.invalid=!0,this._domain=[];for(let n of t){let a=is(n);this.getIndex(a)===void 0&&this.index.set(a,this._domain.push(n)-1)}}get domain(){return this._domain}getDomain(){return this._domain}ticks(){return this.refresh(),this._domain}convert(t){this.refresh();let n=this.getIndex(t);return n==null||n<0||n>=this.domain.length?NaN:this.ordinalRange(n)}invertNearestIndex(t){this.refresh();let{domain:n}=this;if(n.length===0)return-1;let a=0,h=n.length-1,S=1/0,E=0;for(;a<=h;){let L=(h+a)/2|0,_=this.ordinalRange(L),N=Math.abs(_-t);if(N===0)return L;N<S&&(S=N,E=L),_<t?a=L+1:h=L-1}return E}invert(t){this.refresh();let n=this.invertNearestIndex(t),a=this.ordinalRange(n);return t===a?this.domain[n]:void 0}invertNearest(t){let n=this.invertNearestIndex(t);return this.domain[n]}get bandwidth(){return this.refresh(),this._bandwidth}get step(){return this.refresh(),this._step}get inset(){return this.refresh(),this._inset}get rawBandwidth(){return this.refresh(),this._rawBandwidth}set padding(t){t=Gn(0,t,1),this._paddingInner=t,this._paddingOuter=t}get padding(){return this._paddingInner}set paddingInner(t){this._paddingInner=Gn(0,t,1)}get paddingInner(){return this._paddingInner}set paddingOuter(t){this._paddingOuter=Gn(0,t,1)}get paddingOuter(){return this._paddingOuter}update(){let t=this._domain.length;if(t===0)return;let[n,a]=this.range,{_paddingInner:h}=this,{_paddingOuter:S,round:E}=this,L=a-n,_;t===1?(h=0,_=L*(1-S*2)):_=L/Math.max(1,t-h+S*2);let N=E?Math.floor(_):_,V=n+(L-N*(t-h))/2,q=N*(1-h);E&&(V=Math.round(V),q=Math.round(q)),this._step=N,this._inset=V,this._bandwidth=q,this._rawBandwidth=_*(1-h)}ordinalRange(t){let{_inset:n,_step:a}=this;return n+a*t}getIndex(t){return this.index.get(t instanceof Date?t.getTime():t)}},f([es],No.prototype,"range",2),f([es],No.prototype,"round",2),f([es],No.prototype,"interval",2),dr=No}});function ha(e){return e instanceof _n||e instanceof rg}var _n,rg,ga=M({"packages/ag-charts-community/src/util/properties.ts"(){"use strict";Wl(),Rn(),Hn(),_n=class{set(e){let{className:t=this.constructor.name}=this.constructor;if(typeof e!="object")return Di.warn(`unable to set ${t} - expecting a properties object`),this;let n=new Set(Object.keys(e));for(let a of gh(this))if(n.has(a)){let h=e[a],S=this;if(ha(S[a]))if(S[a]instanceof rg){let E=S[a].reset(h);E!=null?S[a]=E:Di.warn(`unable to set [${a}] - expecting a properties array`)}else S[a].set(h);else S[a]=h;n.delete(a)}for(let a of n)Di.warn(`unable to set [${a}] in ${t} - property is unknown`);return this}isValid(e){return gh(this).every(t=>{let{optional:n}=By(this,t),a=n===!0||typeof this[t]!="undefined";return a||Di.warnOnce(`${e!=null?e:""}[${t}] is required.`),a})}toJson(){return gh(this).reduce((e,t)=>{let n=this[t];return e[t]=ha(n)?n.toJson():n,e},{})}},rg=class CZ extends Array{constructor(t,...n){super(n.length);let h=(S=>{var E,L;return!!((L=(E=S==null?void 0:S.prototype)==null?void 0:E.constructor)!=null&&L.name)})(t)?S=>new t().set(S):t;Object.defineProperty(this,"itemFactory",{value:h,enumerable:!1,configurable:!1}),this.set(n)}set(t){if(ho(t)){this.length=t.length;for(let n=0;n<t.length;n++)this[n]=this.itemFactory(t[n])}return this}reset(t){if(Array.isArray(t))return new CZ(this.itemFactory,...t)}toJson(){return this.map(t=>{var n,a;return(a=(n=t==null?void 0:t.toJson)==null?void 0:n.call(t))!=null?a:t})}}}});function $e(e,t={}){let{optional:n=!1,property:a}=t;return Uo((h,S,E)=>{var Y;let L=et(pe({},t),{target:h,property:S});if(n&&typeof E=="undefined"||e(E,L))return ha(h[S])&&!ha(E)?(h[S].set(E),h[S]):E;let _=a!=null?a:String(S).replace(/^_*/,""),N=(Y=h.constructor.className)!=null?Y:h.constructor.name.replace(/Properties$/,""),V=Qt(E),q=50;if(V!=null&&V.length>q){let J=V.length-q;V=V.slice(0,q)+`... (+${J} characters)`}return Di.warn(`Property [${_}] of [${N}] cannot be set to [${V}]${e.message?`; expecting ${$y(e,L)}`:""}, ignoring.`),iv},void 0,{optional:n})}function zo(e,t="a"){return Ka((n,a)=>{let h=e.find(S=>{let E=typeof S=="string"?S:S.value;return n===E});if(h==null)return!1;if(typeof h!="string"&&(h.deprecated===!0||h.deprecatedTo!=null)){let S=[`Property [%s] with value '${h.value}' is deprecated.`];h.deprecatedTo&&S.push(`Use ${h.deprecatedTo} instead.`),Di.warnOnce(S.join(" "),a.property)}return!0},`${t} keyword such as ${d0(e)}`)}function Ka(e,t){return e.message=t,e}function d0(e){let t=e.filter(a=>typeof a=="string"||a.undocumented!==!0).map(a=>`'${typeof a=="string"?a:a.value}'`);if(t.length===1)return t[0];let n=t.pop();return`${t.join(", ")} or ${n}`}function $y(e,t){return Gi(e.message)?e.message(t):e.message}function OP(e){return t=>$y(t,e)}function KA(e){return Object.assign(e,{restrict({length:t,minLength:n}={}){let a="an array";return Vn(n)&&n>0?a="a non-empty array":Vn(t)&&(a=`an array of length ${t}`),Ka(h=>ho(h)&&(Vn(t)?h.length===t:!0)&&(Vn(n)?h.length>=n:!0),a)}})}function pp(e){return Object.assign(e,{restrict({min:t,max:n}={}){let a=["a number"],h=Vn(t),S=Vn(n);return h&&S?a.push(`between ${t} and ${n} inclusive`):h?a.push(`greater than or equal to ${t}`):S&&a.push(`less than or equal to ${n}`),Ka(E=>Na(E)&&(h?E>=t:!0)&&(S?E<=n:!0),a.join(" "))}})}function qA(e){return Object.assign(e,{restrict(t){return Ka(n=>n instanceof t,n=>{var a;return(a=$y(e,n))!=null?a:`an instance of ${t.name}`})}})}function Qt(e){if(typeof e=="number"){if(isNaN(e))return"NaN";if(e===1/0)return"Infinity";if(e===-1/0)return"-Infinity"}return JSON.stringify(e)}var bl,Mh,Yi,u0,Ji,Kl,hi,pa,sg,Cu,mi,Wn,ns,kh,Od,Cs,dv,po,ql,Yl,Gr,Ra,Hs,MI,Qy,YA,kI,Mx,AI,DI,EI,_d,Jy,id,nd,uv,eb,ad,kx,Ss,h0,Pm,Ah,Lm,tb,Ki=M({"packages/ag-charts-community/src/util/validation.ts"(){"use strict";JC(),Wl(),Rn(),ga(),Hn(),bl=(...e)=>{let t=[];return Ka((n,a)=>(t.length=0,e.every(h=>{let S=h(n,a);return S||t.push($y(h,a)),S})),()=>t.filter(Boolean).join(" AND "))},Mh=(...e)=>Ka((t,n)=>e.some(a=>a(t,n)),t=>e.map(OP(t)).filter(Boolean).join(" OR ")),Yi=qA(Ka((e,t)=>ha(e)||Br(e)&&ha(t.target[t.property]),"a properties object")),u0=qA(Ka(e=>Br(e),"an object")),Ji=Ka(fu,"a boolean"),Kl=Ka(Gi,"a function"),hi=Ka(ui,"a string"),pa=pp(Ka(Na,"a number")),sg=Ka(e=>Vn(e)&&!isNaN(e),"a real number"),Cu=Ka(e=>Vn(e)&&isNaN(e),"NaN"),mi=pa.restrict({min:0}),Wn=pa.restrict({min:0,max:1}),ns=Mh(pa,Cu),kh=KA(Ka(ho,"an array")),Od=(e,t)=>Ka((n,a)=>ho(n)&&n.every(h=>e(h,a)),n=>{var h;let a=(h=$y(kh,n))!=null?h:"";return typeof t=="function"?`${a} of ${t(n)}`:t?`${a} of ${t}`:a}),Cs=e=>Na(e)||Ld(e),dv=e=>Ka((t,n)=>!Cs(t)||!Cs(n.target[e])||t<n.target[e],`to be less than ${e}`),po=e=>Ka((t,n)=>!Cs(t)||!Cs(n.target[e])||t>n.target[e],`to be greater than ${e}`),ql=Ka(Ld,"Date object"),Yl=Mh(ql,mi),Gr="A color string can be in one of the following formats to be valid: #rgb, #rrggbb, rgb(r, g, b), rgba(r, g, b, a) or a CSS color name such as 'white', 'orange', 'cyan', etc",Ra=Ka(e=>ui(e)&&Dr.validColorString(e),`color String. ${Gr}`),Hs=Ka(Od(Ra),`color strings. ${Gr}`),MI=Od(Ji,"boolean values"),Qy=Od(pa,"numbers"),YA=Od(hi,"strings"),kI=Ka(Od(ql),"Date objects"),Mx=Ka(Od(Yi),"objects"),AI=zo(["butt","round","square"],"a line cap"),DI=zo(["round","bevel","miter"],"a line join"),EI=zo(["solid","dashed","dotted"],"a line style"),_d=Ka(Od(mi),"numbers specifying the length in pixels of alternating dashes and gaps, for example, [6, 3] means dashes with a length of 6 pixels with gaps between of 3 pixels."),Jy=zo(["top","right","bottom","left"],"a position"),id=zo(["normal","italic","oblique"],"a font style"),nd=Mh(zo(["normal","bold","bolder","lighter"],"a font weight"),pa.restrict({min:1,max:1e3})),uv=zo(["never","always","hyphenate","on-space"],"a text wrap strategy"),eb=zo(["left","center","right"],"a text align"),ad=zo(["top","middle","bottom"],"a vertical align"),kx=zo(["ellipsis","hide"],"an overflow strategy"),Ss=zo(["horizontal","vertical"],"a direction"),h0=zo(["inside","outside"],"a placement"),Pm=Mh(zo(["exact","nearest"],"interaction range"),pa),Ah=zo(["top","bottom","left","right"]),Lm=Mh(bl(pa.restrict({min:1}),dv("maxSpacing")),Cu),tb=Mh(bl(pa.restrict({min:1}),po("minSpacing")),Cu)}}),g0,aa=M({"packages/ag-charts-community/src/chart/chartAxisDirection.ts"(){"use strict";g0=(e=>(e.X="x",e.Y="y",e))(g0||{})}}),Xl,mp=M({"packages/ag-charts-community/src/module/moduleMap.ts"(){"use strict";Hn(),Xl=class{constructor(){this.moduleMap=new Map}*modules(){for(let e of this.moduleMap.values())yield e.moduleInstance}addModule(e,t){if(this.moduleMap.has(e.optionsKey))throw new Error(`AG Charts - module already initialised: ${e.optionsKey}`);this.moduleMap.set(e.optionsKey,{module:e,moduleInstance:t(e)})}removeModule(e){var n;let t=ui(e)?e:e.optionsKey;(n=this.moduleMap.get(t))==null||n.moduleInstance.destroy(),this.moduleMap.delete(t)}getModule(e){var t;return(t=this.moduleMap.get(ui(e)?e:e.optionsKey))==null?void 0:t.moduleInstance}isEnabled(e){return this.moduleMap.has(ui(e)?e:e.optionsKey)}mapModules(e){return Array.from(this.moduleMap.values(),(t,n)=>e(t.moduleInstance,n))}destroy(){var e;for(let t of this.moduleMap.keys())(e=this.moduleMap.get(t))==null||e.moduleInstance.destroy();this.moduleMap.clear()}}}}),hv={};A(hv,{resetMotion:()=>Eo});function Eo(e,t){let{nodes:n,selections:a}=ig(e);for(let h of a){for(let S of h.nodes()){let E=t(S,S.datum);S.setProperties(E)}h.cleanup()}for(let h of n){let S=t(h,h.datum);h.setProperties(S)}}var Om=M({"packages/ag-charts-community/src/motion/resetMotion.ts"(){"use strict";xa()}});function p0(e){let t,n,a=nb.exec(e);a&&([,t,e,n]=a);let h=Xo.exec(e);if(!h)throw new Error(`The number formatter is invalid: ${e}`);let[,S,E,L,_,N,V,q,Y,J,re]=h;return{fill:S,align:E,sign:L,symbol:_,zero:N,width:parseInt(V),comma:q,precision:parseInt(Y),trim:!!J,type:re,prefix:t,suffix:n}}function XA(e){let t=typeof e=="string"?p0(e):e,{fill:n,align:a,sign:h="-",symbol:S,zero:E,width:L,comma:_,type:N,prefix:V="",suffix:q="",precision:Y}=t,{trim:J}=t,re=Y==null||isNaN(Y),ce;if(!N)ce=od.g,J=!0;else if(N in od&&N in _m)ce=re?_m[N]:od[N];else if(N in od)ce=od[N];else if(N in _m)ce=_m[N];else throw new Error(`The number formatter type is invalid: ${N}`);let he;return Y==null||re?he=N?6:12:he=Y,me=>{let we=ce(me,he);return J&&(we=Io(we)),_&&(we=ZA(we,_)),we=mo(me,we,h),S&&S!=="#"&&(we=`${S}${we}`),S==="#"&&N==="x"&&(we=`0x${we}`),N==="s"&&(we=`${we}${ib(me)}`),(N==="%"||N==="p")&&(we=`${we}%`),L!=null&&!isNaN(L)&&(we=Dh(we,L,n!=null?n:E,a)),we=`${V}${we}${q}`,we}}function gv(e){return Math.floor(Math.abs(e))}function Io(e){return e.replace(/\.0+$/,"").replace(/(\.[1-9])0+$/,"$1")}function ZA(e,t){let n=e.indexOf(".");n<0&&(n=e.length);let a=e.substring(0,n).split(""),h=e.substring(n);for(let S=a.length-3;S>0;S-=3)a.splice(S,0,t);return`${a.join("")}${h}`}function ib(e){return QA[m0(e)]}function m0(e){return Gn(Su,e?Math.floor(Math.log10(Math.abs(e))/3)*3:0,$A)}function mo(e,t,n=""){if(n==="(")return e>=0?t:`(${t})`;let a=n==="+"?"+":"";return`${e>=0?a:JA}${t}`}function Dh(e,t,n=" ",a=">"){let h=e;if(a===">"||!a)h=h.padStart(t,n);else if(a==="<")h=h.padEnd(t,n);else if(a==="^"){let S=Math.max(0,t-h.length),E=Math.ceil(S/2),L=Math.floor(S/2);h=h.padStart(E+h.length,n),h=h.padEnd(L+h.length,n)}return h}var Xo,nb,_m,od,Su,$A,QA,JA,Eh=M({"packages/ag-charts-community/src/util/numberFormat.ts"(){"use strict";zn(),Xo=/^(?:(.)?([<>=^]))?([+\-( ])?([$€£¥₣₹#])?(0)?(\d+)?(,)?(?:\.(\d+))?(~)?([%a-z])?$/i,nb=/^((?:[^#]|#[^{])*)#{([^}]+)}(.*)$/,_m={b:e=>gv(e).toString(2),c:e=>String.fromCharCode(e),d:e=>Math.round(Math.abs(e)).toFixed(0),o:e=>gv(e).toString(8),x:e=>gv(e).toString(16),X:e=>_m.x(e).toUpperCase(),n:e=>_m.d(e),"%":e=>`${gv(e*100).toFixed(0)}`},od={e:(e,t)=>Math.abs(e).toExponential(t),E:(e,t)=>od.e(e,t).toUpperCase(),f:(e,t)=>Math.abs(e).toFixed(t),F:(e,t)=>od.f(e,t).toUpperCase(),g:(e,t)=>{if(e===0)return"0";let n=Math.abs(e),a=Math.floor(Math.log10(n));return a>=-4&&a<t?n.toFixed(t-1-a):n.toExponential(t-1)},G:(e,t)=>od.g(e,t).toUpperCase(),n:(e,t)=>od.g(e,t),p:(e,t)=>od.r(e*100,t),r:(e,t)=>{if(e===0)return"0";let n=Math.abs(e),h=Math.floor(Math.log10(n))-(t-1);if(h<=0)return n.toFixed(-h);let S=10**h;return(Math.round(n/S)*S).toFixed()},s:(e,t)=>{let n=m0(e);return od.r(e/10**n,t)},"%":(e,t)=>od.f(e*100,t)},Su=-24,$A=24,QA={[Su]:"y",[-21]:"z",[-18]:"a",[-15]:"f",[-12]:"p",[-9]:"n",[-6]:"\xB5",[-3]:"m",[0]:"",[3]:"k",[6]:"M",[9]:"G",[12]:"T",[15]:"P",[18]:"E",[21]:"Z",[$A]:"Y"},JA="\u2212"}});function eD(e){return e.getTime()}function f0(e){return new Date(e)}var Fm,Ax=M({"packages/ag-charts-community/src/util/time/millisecond.ts"(){"use strict";Ul(),Fm=new On(eD,f0)}});function tD(e,t){return Math.abs(Math.round(e)-e)<t}function Fd(e,t,n,a,h){if(n<2)return[e,t];let S=Nd(e,t,n,a,h);return Number.isFinite(S)?(tD(e/S,1e-12)||(e=Math.ceil(e/S)*S),tD(t/S,1e-12)||(t=Math.floor(t/S)*S),v0(e,t,S)):[]}function ab(e,t,n,a,h,S){let E=S!=null?S:Math.abs(t-e)/Math.max(n,1),L=0;for(let Y of pv){if(E<=Y.duration)break;L++}if(L===0){let Y=Math.max(Nd(e,t,n,a,h),1);return Fm.every(Y)}else if(L===pv.length){let Y=S==null?Nd(e/ag,t/ag,n,a,h):1;return Yy.every(Y)}let _=pv[L-1],N=pv[L],{timeInterval:V,step:q}=E-_.duration<N.duration-E?_:N;return V.every(q)}function Nd(e,t,n,a=0,h=1/0){if(e===t)return Gn(1,a,h);if(n<1)return NaN;let S=Math.abs(t-e),E=10**Math.floor(Math.log10(S/n)),L=NaN,_=1/0,N=!1;for(let V of Dx){let q=Math.ceil(S/(V*E)),Y=q>=a&&q<=h;if(N&&!Y)continue;let J=Math.abs(q-n);(_>J||N!==Y)&&(N||(N=Y),_=J,L=V)}return L*E}function ob(e){for(let t=e.length-1;t>=0;t-=1)if(e[t]!=="0")return t+1;return 0}function iD(e,t){let n=p0(t!=null?t:",f");(n.precision==null||isNaN(n.precision))&&(!n.type||"eEFgGnprs".includes(n.type)?n.precision=Math.max(...e.map(h=>{if(!Number.isFinite(h))return 0;let[S,E]=h.toExponential((n.type?6:12)-1).split(/[.e]/g);return(S!=="1"&&S!=="-1"?1:0)+ob(E)+1})):"f%".includes(n.type)&&(n.precision=Math.max(...e.map(h=>{if(!Number.isFinite(h)||h===0)return 0;let S=Math.floor(Math.log10(Math.abs(h))),E=n.type?6:12,L=h.toExponential(E-1).split(/[.e]/g)[1],_=ob(L);return Math.max(0,_-S)}))));let a=XA(n);return h=>a(Number(h))}function v0(e,t,n){if(!Number.isFinite(n)||n<=0)return[];let a=10**nx(n),h=Math.min(e,t),S=Math.max(e,t),E=[];for(let L=0;;L+=1){let _=Math.round((h+n*L)*a)/a;if(_>S)break;E.push(_)}return E}function Nm(e,t){return e>=t?(Di.warnOnce("the configured interval results in more than 1 item per pixel, ignoring. Supply a larger interval or omit this configuration"),!0):!1}function _P(e,t){let n=Math.abs(t-e),a=10**Math.floor(Math.log10(n)),h=1/0,S=[e,t];for(let E of Dx){let L=E*a,_=Math.floor(e/L)*L,N=Math.ceil(t/L)*L,V=1-n/Math.abs(N-_);h>V&&(h=V,S=[_,N])}return S}function y0(e,t,n,a,h){h=Math.max(h,e/(a+1)),isNaN(t)&&(t=h),isNaN(n)&&(n=e),t>n&&(t===h?t=n:n=t);let S=Math.max(1,Math.floor(e/t)),E=Math.min(S,Math.ceil(e/n)),L=Gn(E,a,S);return{minTickCount:E,maxTickCount:S,tickCount:L}}var Zo,pv,Dx,wu=M({"packages/ag-charts-community/src/util/ticks.ts"(){"use strict";Rn(),zn(),Eh(),ux(),wh(),GA(),Ul(),Ax(),s0(),HA(),og(),vx(),UA(),Zo=(e,t,n)=>({duration:t*n,timeInterval:e,step:n}),pv=[Zo(vl,fl,1),Zo(vl,fl,5),Zo(vl,fl,15),Zo(vl,fl,30),Zo(Em,vs,1),Zo(Em,vs,5),Zo(Em,vs,15),Zo(Em,vs,30),Zo(Dm,fa,1),Zo(Dm,fa,3),Zo(Dm,fa,6),Zo(Dm,fa,12),Zo(Ky,ys,1),Zo(Ky,ys,2),Zo(rv,Ch,1),Zo(rv,Ch,2),Zo(rv,Ch,3),Zo(Vs,Sh,1),Zo(Vs,Sh,2),Zo(Vs,Sh,3),Zo(Vs,Sh,4),Zo(Vs,Sh,6),Zo(Yy,ag,1)],Dx=[1,2,5,10]}}),b0,Cl,Ws=M({"packages/ag-charts-community/src/scale/logScale.ts"(){"use strict";Tc(),Rn(),zn(),Eh(),wu(),Hn(),Gs(),ml(),b0=class sV extends go{constructor(){super([1,10],[0,1]),this.type="log",this.base=10,this.baseLog=av,this.basePow=av,this.log=t=>Math.min(...this.domain)>=0?this.baseLog(t):-this.baseLog(-t),this.pow=t=>Math.min(...this.domain)>=0?this.basePow(t):-this.basePow(-t),this.defaultClamp=!0}toDomain(t){return t}transform(t){return Math.min(...this.domain)>=0?Math.log(t):-Math.log(-t)}transformInvert(t){return Math.min(...this.domain)>=0?Math.exp(t):-Math.exp(-t)}refresh(){this.base<=0&&(this.base=0,Di.warnOnce("expecting a finite Number greater than to 0")),super.refresh()}update(){!this.domain||this.domain.length<2||(this.baseLog=sV.getBaseLogMethod(this.base),this.basePow=sV.getBasePowerMethod(this.base),this.nice&&this.updateNiceDomain())}updateNiceDomain(){let[t,n]=this.domain,a=t>n?Math.ceil:Math.floor,h=t>n?Math.floor:Math.ceil,S=this.pow(a(this.log(t))),E=this.pow(h(this.log(n)));this.niceDomain=[S,E]}ticks(){var J;let t=(J=this.tickCount)!=null?J:10;if(!this.domain||this.domain.length<2||t<1)return[];this.refresh();let n=this.base,[a,h]=this.getDomain(),S=Math.min(a,h),E=Math.max(a,h),L=this.log(S),_=this.log(E);if(this.interval){let re=me=>me>=S&&me<=E,ce=Math.min(Math.abs(this.interval),Math.abs(_-L)),he=v0(L,_,ce).map(this.pow).filter(re);if(!Nm(he.length,this.getPixelRange()))return he}if(!Jf(n)||_-L>=t)return Fd(L,_,Math.min(_-L,t)).map(this.pow);let N=[],V=S>0;L=Math.floor(L)-1,_=Math.round(_)+1;let q=Cm(this.range)/t,Y=1/0;for(let re=L;re<=_;re++){let ce=this.convert(this.pow(re+1));for(let he=1;he<n;he++){let me=V?he:n-he+1,we=this.pow(re)*me,Me=this.convert(we),be=Math.abs(Y-Me),Le=Math.abs(Me-ce),Fe=be>=q&&Le>=q;we>=S&&we<=E&&(he===1||Fe||N.length===0)&&(N.push(we),Y=Me)}}return N}tickFormat({specifier:t}){return t!=null||(t=this.base===10?".0e":","),ui(t)?XA(t):t}static getBaseLogMethod(t){switch(t){case 10:return Math.log10;case Math.E:return Math.log;case 2:return Math.log2;default:return n=>Math.log(n)/Math.log(t)}}static getBasePowerMethod(t){switch(t){case 10:return n=>n>=0?10**n:1/10**-n;case Math.E:return Math.exp;default:return n=>t**n}}},f([es],b0.prototype,"base",2),Cl=b0}});function nD(e,t,n){if(e>t)return;let a;for(;t>=e;){let h=Math.floor((t+e)/2);n(h)?(a=h,e=h+1):t=h-1}return a}function II(e,t,n){if(e>t)return;let a;for(;t>=e;){let h=Math.floor((t+e)/2);n(h)?(a=h,t=h-1):e=h+1}return a}function FP(e,t,n){if(e>t)return;let a;for(;t>=e;){let h=Math.floor((t+e)/2),S=n(h);S==null?t=h-1:(a=S,e=h+1)}return a}function C0(e,t,n){if(e>t)return;let a;for(;t>=e;){let h=Math.floor((t+e)/2),S=n(h);S==null?e=h+1:(a=S,t=h-1)}return a}var lg=M({"packages/ag-charts-community/src/util/binarySearch.ts"(){"use strict"}});function aD(e,t){return e.valueOf()-t.valueOf()}function NP(e){let t=NaN,n=[];for(let a of e){let h=a.valueOf();t!==h&&n.push(a),t=h}return n}function TI(e){let t=e.slice().sort(aD);return Ex(e)==null?NP(t):t}function Ex(e){if(e.length===0)return 1;let t=Number(e[e.length-1])>Number(e[0])?1:-1,n=-1/0*t;for(let a of e){let h=a.valueOf();if(Math.sign(h-n)!==t)return;n=h}return t}var S0=M({"packages/ag-charts-community/src/util/date.ts"(){"use strict"}}),mv,rb=M({"packages/ag-charts-community/src/scale/timeScale.ts"(){"use strict";zn(),wu(),Ul(),cv(),Ua(),Gs(),mv=class _z extends go{constructor(){super([],[0,1]),this.type="time"}toDomain(t){return new Date(t)}convert(t,n){return t instanceof Date||(t=new Date(t)),super.convert(t,n)}invert(t){return new Date(super.invert(t))}ticks(){var _;if(!this.domain||this.domain.length<2)return[];this.refresh();let{interval:t,nice:n,tickCount:a,minTickCount:h,maxTickCount:S}=this,[E,L]=zs(this.getDomain().map(is));return t!=null?(_=_z.getTicksForInterval({start:E,stop:L,interval:t,availableRange:this.getPixelRange()}))!=null?_:_z.getDefaultTicks({start:E,stop:L,tickCount:a,minTickCount:h,maxTickCount:S}):n&&a===2?this.niceDomain:n&&a===1?this.niceDomain.slice(0,1):_z.getDefaultTicks({start:E,stop:L,tickCount:a,minTickCount:h,maxTickCount:S})}static getDefaultTicks({start:t,stop:n,tickCount:a,minTickCount:h,maxTickCount:S}){let E=ab(t,n,a,h,S);return E?E.range(new Date(t),new Date(n)):[]}static getTicksForInterval({start:t,stop:n,interval:a,availableRange:h}){if(!a)return[];if(a instanceof Ri){let V=a.range(new Date(t),new Date(n));return Nm(V.length,h)?void 0:V}let S=Math.abs(a);if(Nm((n-t)/S,h))return;let E=pv.findLast(V=>S%V.duration===0);if(E)return E.timeInterval.every(S/(E.duration/E.step)).range(new Date(t),new Date(n));let L=new Date(t),_=new Date(n),N=[];for(;L<=_;)N.push(L),L=new Date(L),L.setMilliseconds(L.getMilliseconds()+S);return N}tickFormat({ticks:t,domain:n,specifier:a,formatOffset:h}){return a==null?Xy(t,n,h):Aa(a)}update(){!this.domain||this.domain.length<2||this.nice&&this.updateNiceDomain()}updateNiceDomain(){let[n,a]=this.domain;for(let h=0;h<4;h++){this.updateNiceDomainIteration(n,a);let[S,E]=this.niceDomain;if(is(n)===is(S)&&is(a)===is(E))break;n=S,a=E}}updateNiceDomainIteration(t,n){let a=Math.min(is(t),is(n)),h=Math.max(is(t),is(n)),S=t>n,{interval:E}=this,L;if(E instanceof Ri)L=E;else{let _=typeof E=="number"?(h-a)/Math.max(E,1):this.tickCount;L=ab(a,h,_,this.minTickCount,this.maxTickCount)}if(L){let _=L.range(new Date(a),new Date(h),!0),N=S?[..._].reverse():_,V=N[0],q=N.at(-1);this.niceDomain=[V,q]}}}}}),fp,Rc,sb=M({"packages/ag-charts-community/src/scale/ordinalTimeScale.ts"(){"use strict";lg(),S0(),cv(),Ua(),bu(),Gs(),ml(),rb(),fp=class SZ extends dr{constructor(){super(...arguments),this.type="ordinal-time",this.tickCount=go.defaultTickCount,this.minTickCount=0,this.maxTickCount=1/0,this.interval=void 0,this._domain=[],this.sortedTimestamps=[],this.visibleRange=[0,1],this.isReversed=!1,this._values=void 0}static is(t){return t instanceof SZ}setVisibleRange(t){this.visibleRange=t}set domain(t){if(t===this._values)return;this.invalid=!0;let n=Ex(t),a=n==null?TI(t):t,h=n===-1,S=a.map(is);h&&S.reverse(),this._values=t,this._domain=a,this.isReversed=h,this.sortedTimestamps=S,this.precomputedSteps=void 0;let E=t.length<1e4?S.length:Math.ceil(S.length/16);if(E<=1)return;this.refresh();let L=new Int32Array(E),_=S[0].valueOf(),V=S[S.length-1].valueOf()-_;for(let q=0;q<L.length;q+=1)L[q]=this.findInterval(_+q/E*V);this.precomputedSteps=L}get domain(){return this._domain}ticks(){var J;if(!this._domain.length)return[];this.refresh();let{domain:t,isReversed:n,interval:a}=this,[h,S]=[t[0].valueOf(),t.at(-1).valueOf()],E=Math.min(h,S),L=Math.max(h,S);if(a==null)return this.getDefaultTicks(this.maxTickCount,n);let[_,N]=this.range,V=Math.abs(N-_),q=(J=mv.getTicksForInterval({start:E,stop:L,interval:a,availableRange:V}))!=null?J:[],Y=-1;return q.filter(re=>{let ce=this.findInterval(re.valueOf()),he=ce===Y;return Y=ce,!he})}getDefaultTicks(t,n){let{domain:a,visibleRange:h}=this,S=[],E=Math.ceil(a.length*(h[1]-h[0])/t),L=Math.floor(E/2);for(let _=0;_<a.length;_+=1){let N=a[_],V=n?a.length-1-_:_;(E<=0||(V+L)%E===0)&&S.push(N)}return n&&S.reverse(),S}convert(t){this.refresh();let n=Number(t);if(n<this.sortedTimestamps[0])return NaN;let a=this.findInterval(n);return this.isReversed&&(a=this.domain.length-a-1),this.ordinalRange(a)}findInterval(t){let{sortedTimestamps:n,precomputedSteps:a}=this,h,S;if(a==null)h=0,S=n.length-1;else{let E=n[0].valueOf(),L=n[n.length-1].valueOf(),_=Math.min((t-E)/(L-E)*a.length|0,a.length-1|0);h=a[_],S=_<a.length-2?a[_+1]:n.length-1}for(;h<=S;){let E=(h+S)/2|0;if(n[E]===t)return E;n[E]<t?h=E+1:S=E-1}return h}tickFormat({ticks:t,domain:n,specifier:a}){return a==null?Xy(t,n):Aa(a)}invert(t){this.refresh();let{domain:n}=this,a=C0(0,n.length-1,h=>this.ordinalRange(h)>=t?n[h]:void 0);return a!=null?a:n[0]}invertNearest(t){return super.invertNearest(t)}},f([es],fp.prototype,"tickCount",2),f([es],fp.prototype,"minTickCount",2),f([es],fp.prototype,"maxTickCount",2),f([es],fp.prototype,"interval",2),Rc=fp}});function fv(e,t){return typeof e=="number"&&typeof t=="number"?e-t:typeof e=="string"&&typeof t=="string"?e.localeCompare(t):e==null&&t==null?0:e==null?-1:t==null?1:String(e).localeCompare(String(t))}var zP=M({"packages/ag-charts-community/src/util/compare.ts"(){"use strict"}});function lb(e,t,n=1e-8){return e===t||Math.abs(t-e)<n}var oD,Ix,xu,rD=M({"packages/ag-charts-community/src/scene/matrix.ts"(){"use strict";jn(),oD=[1,0,0,1,0,0],Ix=class DP{get e(){return[...this.elements]}constructor(t=[...oD]){this.elements=t}setElements(t){let n=this.elements;return n[0]=t[0],n[1]=t[1],n[2]=t[2],n[3]=t[3],n[4]=t[4],n[5]=t[5],this}get identity(){let t=this.elements;return lb(t[0],1)&&lb(t[1],0)&&lb(t[2],0)&&lb(t[3],1)&&lb(t[4],0)&&lb(t[5],0)}AxB(t,n,a){let h=t[0]*n[0]+t[2]*n[1],S=t[1]*n[0]+t[3]*n[1],E=t[0]*n[2]+t[2]*n[3],L=t[1]*n[2]+t[3]*n[3],_=t[0]*n[4]+t[2]*n[5]+t[4],N=t[1]*n[4]+t[3]*n[5]+t[5];a=a!=null?a:t,a[0]=h,a[1]=S,a[2]=E,a[3]=L,a[4]=_,a[5]=N}multiplySelf(t){return this.AxB(this.elements,t.elements),this}multiply(t){let n=new Array(6);return t instanceof DP?this.AxB(this.elements,t.elements,n):this.AxB(this.elements,[t.a,t.b,t.c,t.d,t.e,t.f],n),new DP(n)}preMultiplySelf(t){return this.AxB(t.elements,this.elements,this.elements),this}inverse(){let t=this.elements,n=t[0],a=t[1],h=t[2],S=t[3],E=t[4],L=t[5],_=1/(n*S-a*h);return n*=_,a*=_,h*=_,S*=_,new DP([S,-a,-h,n,h*L-S*E,a*E-n*L])}inverseTo(t){let n=this.elements,a=n[0],h=n[1],S=n[2],E=n[3],L=n[4],_=n[5],N=1/(a*E-h*S);return a*=N,h*=N,S*=N,E*=N,t.setElements([E,-h,-S,a,S*_-E*L,h*L-a*_]),this}invertSelf(){let t=this.elements,n=t[0],a=t[1],h=t[2],S=t[3],E=t[4],L=t[5],_=1/(n*S-a*h);return n*=_,a*=_,h*=_,S*=_,t[0]=S,t[1]=-a,t[2]=-h,t[3]=n,t[4]=h*L-S*E,t[5]=a*E-n*L,this}transformPoint(t,n){let a=this.elements;return{x:t*a[0]+n*a[2]+a[4],y:t*a[1]+n*a[3]+a[5]}}transformBBox(t,n){let a=this.elements,h=a[0],S=a[1],E=a[2],L=a[3],_=t.width*.5,N=t.height*.5,V=t.x+_,q=t.y+N,Y=Math.abs(_*h)+Math.abs(N*E),J=Math.abs(_*S)+Math.abs(N*L);return n!=null||(n=new Ui(0,0,0,0)),n.x=V*h+q*E+a[4]-Y,n.y=V*S+q*L+a[5]-J,n.width=Y+Y,n.height=J+J,n}toContext(t){if(this.identity)return;let n=this.elements;t.transform(n[0],n[1],n[2],n[3],n[4],n[5])}static flyweight(t){return DP.instance.setElements(t.elements)}static updateTransformMatrix(t,n,a,h,S,E,L){var Le,Fe,je,Xe;let _=n,N=a,V,q;_===1&&N===1?(V=0,q=0):(V=(Le=L==null?void 0:L.scalingCenterX)!=null?Le:0,q=(Fe=L==null?void 0:L.scalingCenterY)!=null?Fe:0);let Y=h,J=Math.cos(Y),re=Math.sin(Y),ce,he;Y===0?(ce=0,he=0):(ce=(je=L==null?void 0:L.rotationCenterX)!=null?je:0,he=(Xe=L==null?void 0:L.rotationCenterY)!=null?Xe:0);let me=S,we=E,Me=V*(1-_)-ce,be=q*(1-N)-he;return t.setElements([J*_,re*_,-re*N,J*N,J*Me-re*be+ce+me,re*Me+J*be+he+we]),t}static fromContext(t){let n=t.getTransform();return new DP([n.a,n.b,n.c,n.d,n.e,n.f])}},Ix.instance=new Ix,xu=Ix}});function rd(e){return jr(e.constructor)}function jr(e){return e[cb]===!0}function vv(e){var t,n;let a=e;if(jr(e))return e;let h=Symbol("matrix_combined_transform");class S extends a{constructor(){super(...arguments),this[n]=new xu,this._dirtyTransform=!0}markDirtyTransform(){this._dirtyTransform=!0,super.markDirty()}updateMatrix(L){}computeTransformMatrix(){this._dirtyTransform&&(this[h].setElements(oD),this.updateMatrix(this[h]),this._dirtyTransform=!1)}toParent(L){return this.computeTransformMatrix(),this[h].identity?L.clone():this[h].transformBBox(L)}toParentPoint(L,_){return this.computeTransformMatrix(),this[h].identity?{x:L,y:_}:this[h].transformPoint(L,_)}fromParent(L){return this.computeTransformMatrix(),this[h].identity?L.clone():this[h].inverse().transformBBox(L)}fromParentPoint(L,_){return this.computeTransformMatrix(),this[h].identity?{x:L,y:_}:this[h].inverse().transformPoint(L,_)}computeBBox(){let L=super.computeBBox();return L&&this.toParent(L)}computeBBoxWithoutTransforms(){return super.computeBBox()}pickNode(L,_,N=!1){return N||({x:L,y:_}=this.fromParentPoint(L,_)),super.pickNode(L,_)}render(L){this.computeTransformMatrix();let{ctx:_}=L,N=this[h],V=!1;N.identity||(_.save(),V=!0,N.toContext(_)),super.render(L),V&&_.restore()}toSVG(){this.computeTransformMatrix();let L=super.toSVG(),_=this[h];if(_.identity||L==null)return L;let N=document.createElementNS("http://www.w3.org/2000/svg","g");N.append(...L.elements);let[V,q,Y,J,re,ce]=_.e;return N.setAttribute("transform",`matrix(${V} ${q} ${Y} ${J} ${re} ${ce})`),{elements:[N],defs:L.defs}}}return t=cb,n=h,S[t]=!0,S}function Mu(e){var t;let n=e,a=Symbol("matrix_rotation");class h extends vv(n){constructor(){super(...arguments),this[t]=new xu,this.rotationCenterX=null,this.rotationCenterY=null,this.rotation=0}updateMatrix(E){super.updateMatrix(E);let{rotation:L,rotationCenterX:_,rotationCenterY:N}=this;L!==0&&(xu.updateTransformMatrix(this[a],1,1,L,0,0,{rotationCenterX:_,rotationCenterY:N}),E.multiplySelf(this[a]))}}return t=a,f([Hi({type:"transform"})],h.prototype,"rotationCenterX",2),f([Hi({type:"transform"})],h.prototype,"rotationCenterY",2),f([Hi({type:"transform"})],h.prototype,"rotation",2),h}function zd(e){var t;let n=e,a=Symbol("matrix_scale");class h extends vv(n){constructor(){super(...arguments),this[t]=new xu,this.scalingX=1,this.scalingY=1,this.scalingCenterX=null,this.scalingCenterY=null}updateMatrix(E){super.updateMatrix(E);let{scalingX:L,scalingY:_,scalingCenterX:N,scalingCenterY:V}=this;L===1&&_===1||(xu.updateTransformMatrix(this[a],L,_,0,0,0,{scalingCenterX:N,scalingCenterY:V}),E.multiplySelf(this[a]))}}return t=a,f([Hi({type:"transform"})],h.prototype,"scalingX",2),f([Hi({type:"transform"})],h.prototype,"scalingY",2),f([Hi({type:"transform"})],h.prototype,"scalingCenterX",2),f([Hi({type:"transform"})],h.prototype,"scalingCenterY",2),h}function cg(e){var t;let n=e,a=Symbol("matrix_translation");class h extends vv(n){constructor(){super(...arguments),this[t]=new xu,this.translationX=0,this.translationY=0}updateMatrix(E){super.updateMatrix(E);let{translationX:L,translationY:_}=this;L===0&&_===0||(xu.updateTransformMatrix(this[a],1,1,0,L,_),E.multiplySelf(this[a]))}}return t=a,f([Hi({type:"transform"})],h.prototype,"translationX",2),f([Hi({type:"transform"})],h.prototype,"translationY",2),h}var cb,vr,Zl=M({"packages/ag-charts-community/src/scene/transformable.ts"(){"use strict";rD(),Wa(),cb=Symbol("isMatrixTransform"),vr=class{static fromCanvas(e,t){let n=[];for(let a of e.traverseUp())rd(a)&&n.unshift(a);for(let a of n)t=a.fromParent(t);return rd(e)&&(t=e.fromParent(t)),t}static toCanvas(e,t){t==null?t=e.getBBox():rd(e)&&(t=e.toParent(t));for(let n of e.traverseUp())rd(n)&&(t=n.toParent(t));return t}static fromCanvasPoint(e,t,n){let a=[];for(let h of e.traverseUp())rd(h)&&a.unshift(h);for(let h of a)({x:t,y:n}=h.fromParentPoint(t,n));return rd(e)&&({x:t,y:n}=e.fromParentPoint(t,n)),{x:t,y:n}}static toCanvasPoint(e,t,n){rd(e)&&({x:t,y:n}=e.toParentPoint(t,n));for(let a of e.traverseUp())rd(a)&&({x:t,y:n}=a.toParentPoint(t,n));return{x:t,y:n}}}}});function Tx(e,t){if(typeof e=="number"&&typeof t=="number")return db(e,t);let n=typeof e=="number"?[e]:e,a=typeof t=="number"?[t]:t,h=Math.min(n.length,a.length);for(let S=0;S<h;S+=1){let E=db(n[S],a[S]);if(E!==0)return E}return db(n.length,a.length)}var db,Rx=M({"packages/ag-charts-community/src/scene/zIndex.ts"(){"use strict";db=(e,t)=>Math.sign(e-t)}}),w0,hn,RI,x0,qa,dg,$o=M({"packages/ag-charts-community/src/scene/group.ts"(){"use strict";zP(),zn(),jn(),Wa(),Zl(),Rx(),w0=class Fz extends Hl{constructor(t){super(t),this.opacity=1,this.layer=void 0,this.renderToOffscreenCanvas=!1,this.isContainerNode=!0,this.renderToOffscreenCanvas=(t==null?void 0:t.renderToOffscreenCanvas)===!0}static is(t){return t instanceof Fz}static computeChildrenBBox(t,n=!0){return Ui.merge(Hl.extractBBoxes(t,n))}static compareChildren(t,n){return Tx(t.zIndex,n.zIndex)||fv(t.serialNumber,n.serialNumber)}containsPoint(t,n){return!0}computeBBox(){return Fz.computeChildrenBBox(this.children())}isDirty(t){let{resized:n}=t,{dirty:a,dirtyZIndex:h}=this;if(a||h||n)return!0;for(let S of this.children())if(S.dirty)return!0;return!1}preRender(){var n,a,h;let t=super.preRender(0);return t.groups+=1,t.nonGroups-=1,this.renderToOffscreenCanvas&&t.nonGroups>0&&this.getVisibility()?(a=this.layer)!=null||(this.layer=(n=this._layerManager)==null?void 0:n.addLayer({name:this.name})):this.layer!=null&&((h=this._layerManager)==null||h.removeLayer(this.layer),this.layer=void 0),t}render(t){var E;let{layer:n}=this,a=pe({},t);if(n==null){this.renderInContext(a),super.render(a);return}let{ctx:h,stats:S}=t;if(this.isDirty(t)){let L=h.getTransform(),{globalAlpha:_}=h,N=n.context;a.ctx=N,n.clear(),N.save(),N.setTransform(L),N.globalAlpha=_,this.renderInContext(a),N.restore(),(E=N.verifyDepthZero)==null||E.call(N),S&&S.layersRendered++}else this.skipRender(a),S&&S.layersSkipped++;h.save(),h.resetTransform(),n.drawImage(h),h.restore(),super.render(a)}skipRender(t){let{stats:n}=t;for(let a of this.children())a.markClean(),n&&(n.nodesSkipped+=this.childNodeCounts.groups+this.childNodeCounts.nonGroups,n.opsSkipped+=this.childNodeCounts.complexity)}applyClip(t,n){let{x:a,y:h,width:S,height:E}=n;t.beginPath(),t.rect(a,h,S,E),t.clip()}renderInContext(t){let{ctx:n,stats:a}=t;this.dirtyZIndex&&this.sortChildren(Fz.compareChildren),n.save(),n.globalAlpha*=this.opacity,this.clipRect!=null&&(this.applyClip(n,this.clipRect),t.clipBBox=vr.toCanvas(this,this.clipRect));for(let h of this.children()){if(!h.visible){h.markClean(),a&&(a.nodesSkipped+=h.childNodeCounts.nonGroups+h.childNodeCounts.groups,a.opsSkipped+=h.childNodeCounts.complexity);continue}n.save(),h.render(t),n.restore()}n.restore()}setClipRect(t){this.clipRect=t?vr.fromCanvas(this,t):void 0}setClipRectCanvasSpace(t){this.clipRect=t}_setLayerManager(t){var n;this.layer&&((n=this._layerManager)==null||n.removeLayer(this.layer),this.layer=void 0),super._setLayerManager(t)}getVisibility(){for(let t of this.traverseUp(!0))if(!t.visible)return!1;return!0}toSVG(){if(!this.visible)return;let t=[],n=[];for(let a of this.children()){let h=a.toSVG();h!=null&&(n.push(...h.elements),h.defs!=null&&t.push(...h.defs))}return{elements:n,defs:t}}},w0.className="Group",f([Hi({convertor:e=>Gn(0,e,1)})],w0.prototype,"opacity",2),hn=w0,RI=class extends zd(hn){},x0=class extends Mu(hn){},qa=class extends cg(hn){},dg=class extends Mu(cg(hn)){}}});function yr(e){var t;return e?(t=Ih.document)==null?void 0:t[e]:Ih.document}function Da(e){var t;return e?(t=Ih.window)==null?void 0:t[e]:Ih.window}function va(e,t,n){let a=yr().createElement(e);if(typeof t=="object"&&(n=t,t=void 0),t)for(let h of t.split(" "))a.classList.add(h);return n&&Object.assign(a.style,n),a}function vp(e,t){return yr().createElementNS(e,t)}function M0(e,t){let{body:n}=yr(),a=va("a",{display:"none"});a.href=e,a.download=t,n.appendChild(a),a.click(),setTimeout(()=>n.removeChild(a))}function sD(e){Ih.document=e}function ku(e){Ih.window=e}function zm(e,t){e&&(t=ul.normalize(t),t.width==null?e.style.removeProperty("width"):e.style.width=`${t.width}px`,t.height==null?e.style.removeProperty("height"):e.style.height=`${t.height}px`,t.x==null?e.style.removeProperty("left"):e.style.left=`${t.x}px`,t.y==null?e.style.removeProperty("top"):e.style.top=`${t.y}px`)}function PI(e){let t=parseFloat(e.style.width)||e.offsetWidth,n=parseFloat(e.style.height)||e.offsetHeight,a=parseFloat(e.style.left)||e.offsetLeft,h=parseFloat(e.style.top)||e.offsetTop;return{x:a,y:h,width:t,height:n}}function BP(e){var a;if(e.focus({preventScroll:!0}),((a=e.lastChild)==null?void 0:a.textContent)==null)return;let t=yr().createRange();t.setStart(e.lastChild,e.lastChild.textContent.length),t.setEnd(e.lastChild,e.lastChild.textContent.length);let n=Da().getSelection();n==null||n.removeAllRanges(),n==null||n.addRange(t)}function LI(e){return`${e!=null?e:"ag-charts-element"}-${Px++}`}function yp(){let e=Da().navigator;if("scheduling"in e){let t=e.scheduling;if("isInputPending"in t)return t.isInputPending({includeContinuous:!0})}return!1}function ub(e){return`ag-charts-icon ag-charts-icon-${e}`}var Ih,Px,oa=M({"packages/ag-charts-community/src/util/dom.ts"(){"use strict";_o(),Ih={},typeof window!="undefined"?Ih.window=window:typeof global!="undefined"&&(Ih.window=global.window),typeof document!="undefined"?Ih.document=document:typeof global!="undefined"&&(Ih.document=global.document),Px=0}}),Lx,k0,OI,Pa,Vr=M({"packages/ag-charts-community/src/util/debug.ts"(){"use strict";ts(),oa(),Rn(),Lx=2e3,k0=Date.now(),OI=()=>{let e=Date.now()-k0;if(e>Lx){let t=(Math.floor(e/100)/10).toFixed(1);Di.log(`**** ${t}s since last log message ****`)}k0=Date.now()},Pa={create(...e){return Object.assign((...n)=>{Pa.check(...e)&&(typeof n[0]=="function"&&(n=Uy(n[0]())),OI(),Di.log(...n))},{check:()=>Pa.check(...e)})},check(...e){return e.length===0&&e.push(!0),Uy(Da("agChartsDebug")).some(n=>e.includes(n))}}}}),Er,as=M({"packages/ag-charts-community/src/scene/selection.ts"(){"use strict";Vr(),Wa(),Er=class uI{constructor(t,n,a=!0){this.parentNode=t,this.autoCleanup=a,this.garbageBin=new Set,this._nodesMap=new Map,this._nodes=[],this.data=[],this.debug=Pa.create(!0,"scene","scene:selections"),this.nodeFactory=Object.prototype.isPrototypeOf.call(Hl,n)?()=>new n:n}static select(t,n,a=!0){return new uI(t,n,a)}static selectAll(t,n){let a=[],h=S=>{n(S)&&a.push(S);for(let E of S.children())h(E)};return h(t),a}static selectByClass(t,...n){return uI.selectAll(t,a=>n.some(h=>a instanceof h))}static selectByTag(t,n){return uI.selectAll(t,a=>a.tag===n)}createNode(t,n,a){let h=this.nodeFactory(t);return h.datum=t,n==null||n(h),a==null?this._nodes.push(h):this._nodes.splice(a,0,h),this.parentNode.appendChild(h),h}update(t,n,a){if(this.garbageBin.size>0&&this.debug("Selection - update() called with pending garbage",t),a){let h=new Map(t.map((S,E)=>[a(S),[S,E]]));for(let[S,E]of this._nodesMap.entries())if(h.has(E)){let[L]=h.get(E);S.datum=L,this.garbageBin.delete(S),h.delete(E)}else this.garbageBin.add(S);for(let[S,[E,L]]of h.entries())this._nodesMap.set(this.createNode(E,n,L),S)}else{let h=Math.max(t.length,this.data.length);for(let S=0;S<h;S++)S>=t.length?this.garbageBin.add(this._nodes[S]):S>=this._nodes.length?this.createNode(t[S],n):(this._nodes[S].datum=t[S],this.garbageBin.delete(this._nodes[S]))}return this.data=t.slice(),this.autoCleanup&&this.cleanup(),this}cleanup(){return this.garbageBin.size===0?this:(this._nodes=this._nodes.filter(t=>this.garbageBin.has(t)?(this._nodesMap.delete(t),this.garbageBin.delete(t),t.destroy(),!1):!0),this)}clear(){return this.update([]),this}isGarbage(t){return this.garbageBin.has(t)}hasGarbage(){return this.garbageBin.size>0}each(t){for(let n of this._nodes.entries())t(n[1],n[1].datum,n[0]);return this}*[Symbol.iterator](){for(let t=0;t<this._nodes.length;t++){let n=this._nodes[t];yield{node:n,datum:n.datum,index:t}}}select(t){return uI.selectAll(this.parentNode,t)}selectByClass(t){return uI.selectByClass(this.parentNode,t)}selectByTag(t){return uI.selectByTag(this.parentNode,t)}nodes(){return this._nodes}at(t){return this._nodes.at(t)}get length(){return this._nodes.length}}}});function da(e){return e%=ao,e+=ao,e%=ao,e}function Ox(e){return e%=ao,e+=ao,e!==ao&&(e%=ao),e}function hb(e){return e%=ao,e<-Math.PI?e+=ao:e>=Math.PI&&(e-=ao),e}function sd(e,t,n){let a=da(e),h=da(t),S=da(n);return h<S?h<=a&&a<=S:h>S?h<=a||a<=S:!0}function za(e){return e/180*Math.PI}function _I(e){return e/Math.PI*180}function GP(e,t,n){n&&([e,t]=[t,e]);let a=da(e);return(da(t)+ao-a)%ao}function gb(e,t){return e=da(e),t=da(t),t-e+(e>t?ao:0)}function FI(e,t,n,a){let h=e+n*Math.cos(a),S=t+n*Math.sin(a);return{x:h,y:S}}function lD(e,t){return gb(e,t)<fo?t:da(e-t)+t}function ld(e,t,n=0){let h=Math.abs(t-e)>=ao?ao:da(t-e);return e=lD(e,n),t=e+h,{startAngle:e,endAngle:t}}function pb(e){let t=da(e);return t<=Bm?t/Bm:t<=Math.PI?(Math.PI-t)/Bm:t<=1.5*Math.PI?(t-Math.PI)/Bm:(ao-t)/Bm}var ao,Bm,fo,br=M({"packages/ag-charts-community/src/util/angle.ts"(){"use strict";ao=Math.PI*2,Bm=Math.PI/2,fo=1e-6}});function bp(e,t,n,a){let h=e-n,S=t-a;return h*h+S*S}function $l(e,t,n,a,h,S,E){if(n===h&&a===S)return Math.min(E,bp(e,t,n,a));let L=h-n,_=S-a,N=Math.max(0,Math.min(1,((e-n)*L+(t-a)*_)/(L*L+_*_))),V=n+N*L,q=a+N*_;return Math.min(E,bp(e,t,V,q))}function jP(e,t,n,a,h,S,E,L,_){L&&([E,S]=[S,E]);let N=Math.atan2(t-a,e-n);if(!sd(N,S,E)){let q=n+Math.cos(S)*h,Y=a+Math.sin(S)*h,J=n+Math.cos(S)*h,re=a+Math.sin(S)*h;return Math.min(_,bp(e,t,q,Y),bp(e,t,J,re))}let V=h-Math.sqrt(bp(e,t,n,a));return Math.min(_,V*V)}var cD=M({"packages/ag-charts-community/src/util/distance.ts"(){"use strict";br()}}),Th,mb,_x,NI,Au,yv=M({"packages/ag-charts-community/src/scale/colorScale.ts"(){"use strict";JC(),Rn(),zn(),ml(),Th=e=>{let t=Dr.fromString(e),[n,a,h]=Dr.RGBtoOKLCH(t.r,t.g,t.b);return{l:n,c:a,h,a:t.a}},mb=1e-6,_x=e=>e.c<mb||e.l<mb||e.l>1-mb,NI=(e,t,n)=>{n=Gn(0,n,1);let a;if(_x(e))a=t.h;else if(_x(t))a=e.h;else{let L=e.h,_=t.h,N=t.h-e.h;N>180?_-=360:N<-180&&(_+=360),a=L*(1-n)+_*n}let h=e.c*(1-n)+t.c*n,S=e.l*(1-n)+t.l*n,E=e.a*(1-n)+t.a*n;return Dr.fromOKLCH(S,h,a,E)},Au=class{constructor(){this.type="color",this.invalid=!0,this.domain=[0,1],this.range=["red","blue"],this.parsedRange=this.range.map(Th)}update(){let{domain:e,range:t}=this;e.length<2&&(Di.warnOnce("`colorDomain` should have at least 2 values."),e.length===0?e.push(0,1):e.length===1&&e.push(e[0]+1));for(let n=1;n<e.length;n++){let a=e[n-1],h=e[n];if(a>=h){Di.warnOnce("`colorDomain` values should be supplied in ascending order."),e.sort((S,E)=>S-E);break}}if(t.length<e.length)for(let n=t.length;n<e.length;n++)t.push(t.length>0?t[0]:"black");this.parsedRange=this.range.map(Th)}convert(e){this.refresh();let{domain:t,range:n,parsedRange:a}=this,h=t[0],S=t.at(-1),E=n[0],L=n[n.length-1];if(e<=h)return E;if(e>=S)return L;let _,N;if(t.length===2){let Y=(e-h)/(S-h),J=1/(n.length-1);_=n.length<=2?0:Math.min(Math.floor(Y*(n.length-1)),n.length-2),N=(Y-_*J)/J}else{for(_=0;_<t.length-2&&!(e<t[_+1]);_++);let Y=t[_],J=t[_+1];N=(e-Y)/(J-Y)}let V=a[_],q=a[_+1];return NI(V,q,N).toRgbaString()}refresh(){this.invalid&&(this.invalid=!1,this.update(),this.invalid&&Di.warnOnce("Expected update to not invalidate scale"))}},f([es],Au.prototype,"domain",2),f([es],Au.prototype,"range",2)}}),Bd,Gm=M({"packages/ag-charts-community/src/scene/gradient/gradient.ts"(){"use strict";yv(),Bd=class{constructor(e,t=[],n){this.colorSpace=e,this.stops=t,this.bbox=n,this._cache=void 0}createGradient(e,t){var N;let n=(N=this.bbox)!=null?N:t;if(this._cache!=null&&this._cache.ctx===e&&this._cache.bbox.equals(n))return this._cache.gradient;let{stops:a,colorSpace:h}=this;if(a.length===0)return;if(a.length===1)return a[0].color;let S=this.createCanvasGradient(e,n);if(S==null)return;let E=h==="oklch",L=.05,_=a[0];S.addColorStop(_.offset,_.color);for(let V=1;V<a.length;V+=1){let q=a[V];if(E){let Y=new Au;Y.domain=[_.offset,q.offset],Y.range=[_.color,q.color];for(let J=_.offset+L;J<q.offset;J+=L)S.addColorStop(J,Y.convert(J))}S.addColorStop(q.offset,q.color),_=q}return"createPattern"in S&&(S=S.createPattern()),this._cache={ctx:e,bbox:n,gradient:S},S}}}}),Cp,zI=M({"packages/ag-charts-community/src/scene/gradient/linearGradient.ts"(){"use strict";br(),Gm(),Cp=class extends Bd{constructor(e,t,n=0,a){super(e,t,a),this.angle=n}createCanvasGradient(e,t){let{angle:a}=this,h=da(za(a+90)),S=Math.cos(h),E=Math.sin(h),L=t.width,_=t.height,N=t.x+L*.5,V=t.y+_*.5,q=Math.sqrt(_*_+L*L)/2,Y=Math.atan2(_,L),J;h<Math.PI/2?J=h:h<Math.PI?J=Math.PI-h:h<1.5*Math.PI?J=h-Math.PI:J=2*Math.PI-h;let re=q*Math.abs(Math.cos(J-Y));return e.createLinearGradient(N+S*re,V+E*re,N-S*re,V-E*re)}}}}),bv,Ql,Us,os=M({"packages/ag-charts-community/src/scene/shape/shape.ts"(){"use strict";zn(),Gm(),zI(),Wa(),bv=/^linear-gradient\((-?[\d.]+)deg,(.*?)\)$/i,Ql=class KC extends Hl{constructor(){super(...arguments),this.fillOpacity=1,this.strokeOpacity=1,this.fill=KC.defaultStyles.fill,this.stroke=KC.defaultStyles.stroke,this.strokeWidth=KC.defaultStyles.strokeWidth,this.lineDash=KC.defaultStyles.lineDash,this.lineDashOffset=KC.defaultStyles.lineDashOffset,this.lineCap=KC.defaultStyles.lineCap,this.lineJoin=KC.defaultStyles.lineJoin,this.miterLimit=void 0,this.opacity=KC.defaultStyles.opacity,this.fillShadow=KC.defaultStyles.fillShadow}restoreOwnStyles(){let{defaultStyles:t}=this.constructor;Object.assign(this,t)}getGradient(t){let n;if(t instanceof Bd)return t;if(t!=null&&t.startsWith("linear-gradient")&&(n=bv.exec(t))){let a=parseFloat(n[1]),h=[],S=n[2],E=/(#[0-9a-f]+)|(rgba?\(.+?\))|([a-z]+)/gi,L;for(;L=E.exec(S);)h.push(L[0]);return new Cp("rgb",h.map((_,N)=>({color:_,offset:N/(h.length-1)})),a)}else return}onFillChange(){this.fillGradient=this.getGradient(this.fill)}onStrokeChange(){this.strokeGradient=this.getGradient(this.stroke)}align(t,n){var S,E,L;let a=(L=(E=(S=this.layerManager)==null?void 0:S.canvas)==null?void 0:E.pixelRatio)!=null?L:1,h=Math.round(t*a)/a;return n==null?h:n===0?0:n<1?Math.ceil(n*a)/a:Math.round((n+t)*a)/a-h}fillStroke(t,n){this.renderFill(t,n),this.renderStroke(t,n)}renderFill(t,n){if(this.fill){let{globalAlpha:a}=t;this.applyFill(t),this.applyFillAlpha(t),this.applyShadow(t),this.executeFill(t,n),t.globalAlpha=a}t.shadowColor="rgba(0, 0, 0, 0)"}executeFill(t,n){n?t.fill(n):t.fill()}applyFill(t){var n,a,h;t.fillStyle=(h=(a=(n=this.fillGradient)==null?void 0:n.createGradient(t,this.getBBox()))!=null?a:typeof this.fill=="string"?this.fill:void 0)!=null?h:"black"}applyStroke(t){var n,a,h;t.strokeStyle=(h=(a=(n=this.strokeGradient)==null?void 0:n.createGradient(t,this.getBBox()))!=null?a:typeof this.stroke=="string"?this.stroke:void 0)!=null?h:"black"}applyFillAlpha(t){t.globalAlpha*=this.opacity*this.fillOpacity}applyShadow(t){var h,S;let n=(S=(h=this.layerManager)==null?void 0:h.canvas.pixelRatio)!=null?S:1,a=this.fillShadow;a!=null&&a.enabled&&(t.shadowColor=a.color,t.shadowOffsetX=a.xOffset*n,t.shadowOffsetY=a.yOffset*n,t.shadowBlur=a.blur*n)}renderStroke(t,n){if(this.stroke&&this.strokeWidth){let{globalAlpha:a}=t;this.applyStroke(t),t.globalAlpha*=this.opacity*this.strokeOpacity,t.lineWidth=this.strokeWidth,this.lineDash&&t.setLineDash(this.lineDash),this.lineDashOffset&&(t.lineDashOffset=this.lineDashOffset),this.lineCap&&(t.lineCap=this.lineCap),this.lineJoin&&(t.lineJoin=this.lineJoin),this.miterLimit!=null&&(t.miterLimit=this.miterLimit),this.executeStroke(t,n),t.globalAlpha=a}}executeStroke(t,n){n?t.stroke(n):t.stroke()}containsPoint(t,n){return this.isPointInPath(t,n)}applySvgFillAttributes(t){t.setAttribute("fill",typeof this.fill=="string"?this.fill:"none"),t.setAttribute("fill-opacity",String(this.fillOpacity))}applySvgStrokeAttributes(t){this.stroke!=null&&(t.setAttribute("stroke",typeof this.stroke=="string"?this.stroke:"none"),t.setAttribute("stroke-opacity",String(this.strokeOpacity)),t.setAttribute("stroke-width",String(this.strokeWidth))),this.lineDash!=null&&t.setAttribute("stroke-dasharray",this.lineDash.join(" "))}},Ql.defaultStyles={fill:"black",stroke:void 0,strokeWidth:0,lineDash:void 0,lineDashOffset:0,lineCap:void 0,lineJoin:void 0,opacity:1,fillShadow:void 0},f([Hi()],Ql.prototype,"fillOpacity",2),f([Hi()],Ql.prototype,"strokeOpacity",2),f([Hi({changeCb:e=>e.onFillChange()})],Ql.prototype,"fill",2),f([Hi({changeCb:e=>e.onStrokeChange()})],Ql.prototype,"stroke",2),f([Hi()],Ql.prototype,"strokeWidth",2),f([Hi()],Ql.prototype,"lineDash",2),f([Hi()],Ql.prototype,"lineDashOffset",2),f([Hi()],Ql.prototype,"lineCap",2),f([Hi()],Ql.prototype,"lineJoin",2),f([Hi()],Ql.prototype,"miterLimit",2),f([Hi({convertor:e=>Gn(0,e,1)})],Ql.prototype,"opacity",2),f([Hi({checkDirtyOnAssignment:!0})],Ql.prototype,"fillShadow",2),Us=Ql}}),Ks,Gd=M({"packages/ag-charts-community/src/scene/shape/line.ts"(){"use strict";cD(),jn(),Wa(),os(),Ks=class extends Us{constructor(e={}){super(e),this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.restoreOwnStyles()}set x(e){this.x1=e,this.x2=e}set y(e){this.y1=e,this.y2=e}get midPoint(){return{x:(this.x1+this.x2)/2,y:(this.y1+this.y2)/2}}computeBBox(){return new Ui(Math.min(this.x1,this.x2),Math.min(this.y1,this.y2),Math.abs(this.x2-this.x1),Math.abs(this.y2-this.y1))}isPointInPath(e,t){return this.x1===this.x2||this.y1===this.y2?this.getBBox().clone().grow(this.strokeWidth/2).containsPoint(e,t):!1}distanceSquared(e,t){let{x1:n,y1:a,x2:h,y2:S}=this;return $l(e,t,n,a,h,S,1/0)}render(e){var L;let{ctx:t,devicePixelRatio:n}=e,{x1:a,y1:h,x2:S,y2:E}=this;if(a===S){let{strokeWidth:_}=this,N=Math.round(a*n)/n+Math.trunc(_*n)%2/(n*2);a=N,S=N}else if(h===E){let{strokeWidth:_}=this,N=Math.round(h*n)/n+Math.trunc(_*n)%2/(n*2);h=N,E=N}t.beginPath(),t.moveTo(a,h),t.lineTo(S,E),this.fillStroke(t),(L=this.fillShadow)==null||L.markClean(),super.render(e)}toSVG(){if(!this.visible)return;let e=document.createElementNS("http://www.w3.org/2000/svg","line");return e.setAttribute("x1",String(this.x1)),e.setAttribute("y1",String(this.y1)),e.setAttribute("x2",String(this.x2)),e.setAttribute("y2",String(this.y2)),this.applySvgStrokeAttributes(e),{elements:[e]}}},Ks.className="Line",Ks.defaultStyles=et(pe({},Us.defaultStyles),{fill:void 0,strokeWidth:1}),f([Hi()],Ks.prototype,"x1",2),f([Hi()],Ks.prototype,"y1",2),f([Hi()],Ks.prototype,"x2",2),f([Hi()],Ks.prototype,"y2",2)}});function Jl(e=0,t=0){return new OffscreenCanvas(e,t).getContext("2d")}var BI=M({"packages/ag-charts-community/src/util/canvas.util.ts"(){"use strict"}}),A0,GI=M({"packages/ag-charts-community/src/util/lruCache.ts"(){"use strict";A0=class{constructor(e=5){this.maxCacheSize=e,this.store=new Map}get(e){if(!this.store.has(e))return;let t=this.store.get(e);return this.store.delete(e),this.store.set(e,t),t}has(e){return this.store.has(e)}set(e,t){if(this.store.set(e,t),this.store.size>this.maxCacheSize){let n=this.store.keys(),a=this.store.size-this.maxCacheSize;for(;a>0;){let h=n.next();h.done||this.store.delete(h.value),a--}}return t}clear(){this.store.clear()}}}}),ug,Fx,Bo,jm,cd=M({"packages/ag-charts-community/src/util/textMeasurer.ts"(){"use strict";BI(),GI(),ug=class{static measureText(e,t){return this.getMeasurer(t).measureText(e)}static measureLines(e,t){return this.getMeasurer(t).measureLines(e)}static getMeasurer(e){var a,h,S;let t=typeof e.font=="string"?e.font:Bo.toFontString(e.font),n=`${t}-${(a=e.textAlign)!=null?a:"start"}-${(h=e.textBaseline)!=null?h:"alphabetic"}`;return(S=this.instanceMap.get(n))!=null?S:this.createFontMeasurer(t,e,n)}static createFontMeasurer(e,t,n){var S,E;let a=Jl();a.font=e,a.textAlign=(S=t.textAlign)!=null?S:"start",a.textBaseline=(E=t.textBaseline)!=null?E:"alphabetic";let h=new Fx(a,t);return this.instanceMap.set(n,h),h}},ug.instanceMap=new A0(10),Fx=class{constructor(e,t){var n;this.ctx=e,this.measureMap=new A0(100),t.textAlign&&(e.textAlign=t.textAlign),t.textBaseline&&(e.textBaseline=t.textBaseline),e.font=typeof t.font=="string"?t.font:Bo.toFontString(t.font),this.textMeasurer=new jm(a=>this.cachedCtxMeasureText(a),(n=t.textBaseline)!=null?n:"alphabetic")}textWidth(e,t){return this.textMeasurer.textWidth(e,t)}measureText(e){return this.textMeasurer.measureText(e)}measureLines(e){return this.textMeasurer.measureLines(e)}cachedCtxMeasureText(e){if(!this.measureMap.has(e)){let t=this.ctx.measureText(e);this.measureMap.set(e,{actualBoundingBoxAscent:t.actualBoundingBoxAscent,emHeightAscent:t.emHeightAscent,emHeightDescent:t.emHeightDescent,actualBoundingBoxDescent:t.actualBoundingBoxDescent,actualBoundingBoxLeft:t.actualBoundingBoxLeft,actualBoundingBoxRight:t.actualBoundingBoxRight,alphabeticBaseline:t.alphabeticBaseline,fontBoundingBoxAscent:t.fontBoundingBoxAscent,fontBoundingBoxDescent:t.fontBoundingBoxDescent,hangingBaseline:t.hangingBaseline,ideographicBaseline:t.ideographicBaseline,width:t.width})}return this.measureMap.get(e)}},Bo=class{static toFontString({fontSize:e=10,fontStyle:t,fontWeight:n,fontFamily:a,lineHeight:h}){let S="";return t&&(S+=`${t} `),n&&(S+=`${n} `),S+=`${e}px`,h&&(S+=`/${h}px`),S+=` ${a}`,S.trim()}static getLineHeight(e){return Math.ceil(e*this.defaultLineHeight)}static getVerticalModifier(e){switch(e){case"hanging":case"top":return 0;case"middle":return .5;case"alphabetic":case"bottom":case"ideographic":default:return 1}}},Bo.EllipsisChar="\u2026",Bo.defaultLineHeight=1.15,Bo.lineSplitter=/\r?\n/g,jm=class{constructor(e,t="alphabetic"){this.measureTextFn=e,this.textBaseline=t,this.charMap=new Map}getMetrics(e){var n,a;let t=this.measureTextFn(e);return(n=t.fontBoundingBoxAscent)!=null||(t.fontBoundingBoxAscent=t.emHeightAscent),(a=t.fontBoundingBoxDescent)!=null||(t.fontBoundingBoxDescent=t.emHeightDescent),{width:t.width,height:t.actualBoundingBoxAscent+t.actualBoundingBoxDescent,lineHeight:t.fontBoundingBoxAscent+t.fontBoundingBoxDescent,offsetTop:t.actualBoundingBoxAscent,offsetLeft:t.actualBoundingBoxLeft}}getMultilineMetrics(e){var V,q;let t=0,n=0,a=0,h=0,S=0,E=Bo.getVerticalModifier(this.textBaseline),L=[],_=0,N=e.length;for(let Y of e){let J=this.measureTextFn(Y);(V=J.fontBoundingBoxAscent)!=null||(J.fontBoundingBoxAscent=J.emHeightAscent),(q=J.fontBoundingBoxDescent)!=null||(J.fontBoundingBoxDescent=J.emHeightDescent),t<J.width&&(t=J.width),h<J.actualBoundingBoxLeft&&(h=J.actualBoundingBoxLeft),_===0?(n+=J.actualBoundingBoxAscent,a+=J.actualBoundingBoxAscent):S+=J.fontBoundingBoxAscent,_===N-1?n+=J.actualBoundingBoxDescent:S+=J.fontBoundingBoxDescent,L.push({text:Y,width:J.width,height:J.actualBoundingBoxAscent+J.actualBoundingBoxDescent,lineHeight:J.fontBoundingBoxAscent+J.fontBoundingBoxDescent,offsetTop:J.actualBoundingBoxAscent,offsetLeft:J.actualBoundingBoxLeft}),_++}return n+=S,a+=S*E,{width:t,height:n,offsetTop:a,offsetLeft:h,lineMetrics:L}}textWidth(e,t){var n;if(t){let a=0;for(let h=0;h<e.length;h++)a+=this.textWidth(e.charAt(h));return a}return e.length>1?this.measureTextFn(e).width:(n=this.charMap.get(e))!=null?n:this.charWidth(e)}measureText(e){return this.getMetrics(e)}measureLines(e){let t=typeof e=="string"?e.split(Bo.lineSplitter):e;return this.getMultilineMetrics(t)}charWidth(e){let{width:t}=this.measureTextFn(e);return this.charMap.set(e,t),t}}}}),rs,or,Vm,Du,Pc=M({"packages/ag-charts-community/src/scene/shape/text.ts"(){"use strict";cd(),jn(),Wa(),Zl(),os(),rs=class Nz extends Us{constructor(){super(...arguments),this.x=0,this.y=0,this.lines=[],this.text=void 0,this.fontSize=10,this.fontFamily="sans-serif",this.textAlign=Nz.defaultStyles.textAlign,this.textBaseline=Nz.defaultStyles.textBaseline}onTextChange(){var t,n;this.lines=(n=(t=this.text)==null?void 0:t.split(`
`).map(a=>a.trim()))!=null?n:[]}static computeBBox(t,n,a,h){let{offsetTop:S,offsetLeft:E,width:L,height:_}=ug.measureLines(t,h);return new Ui(n-E,a-S,L,_)}computeBBox(){let{x:t,y:n,lines:a,textBaseline:h,textAlign:S}=this;return Nz.computeBBox(a,t,n,{font:this,textBaseline:h,textAlign:S})}isPointInPath(t,n){let a=this.getBBox();return a?a.containsPoint(t,n):!1}render(t){let{ctx:n,stats:a}=t;if(!this.lines.length||!this.layerManager)return a&&(a.nodesSkipped+=1),super.render(t);let{fill:h,stroke:S,strokeWidth:E}=this,{pixelRatio:L}=this.layerManager.canvas;if(n.font=Bo.toFontString(this),n.textAlign=this.textAlign,n.textBaseline=this.textBaseline,h){this.applyFill(n),n.globalAlpha*=this.opacity*this.fillOpacity;let{fillShadow:_}=this;_!=null&&_.enabled&&(n.shadowColor=_.color,n.shadowOffsetX=_.xOffset*L,n.shadowOffsetY=_.yOffset*L,n.shadowBlur=_.blur*L),this.renderLines((N,V,q)=>n.fillText(N,V,q))}if(S&&E){this.applyStroke(n),n.lineWidth=E,n.globalAlpha*=this.opacity*this.strokeOpacity;let{lineDash:_,lineDashOffset:N,lineCap:V,lineJoin:q}=this;_&&n.setLineDash(_),N&&(n.lineDashOffset=N),V&&(n.lineCap=V),q&&(n.lineJoin=q),this.renderLines((Y,J,re)=>n.strokeText(Y,J,re))}super.render(t)}renderLines(t){var L;let{lines:n,x:a,y:h}=this,S=(L=this.lineHeight)!=null?L:Bo.getLineHeight(this.fontSize),E=(S-S*n.length)*Bo.getVerticalModifier(this.textBaseline);for(let _ of n)t(_,a,h+E),E+=S}setFont(t){this.fontFamily=t.fontFamily,this.fontSize=t.fontSize,this.fontStyle=t.fontStyle,this.fontWeight=t.fontWeight}setAlign(t){this.textAlign=t.textAlign,this.textBaseline=t.textBaseline}toSVG(){var n,a,h,S,E,L,_;if(!this.visible||!this.text)return;let t=document.createElementNS("http://www.w3.org/2000/svg","text");return this.applySvgFillAttributes(t),t.setAttribute("font-family",(a=(n=this.fontFamily)==null?void 0:n.split(",")[0])!=null?a:""),t.setAttribute("font-size",String(this.fontSize)),t.setAttribute("font-style",(h=this.fontStyle)!=null?h:""),t.setAttribute("font-weight",String((S=this.fontWeight)!=null?S:"")),t.setAttribute("text-anchor",{center:"middle",left:"start",right:"end",start:"start",end:"end"}[(E=this.textAlign)!=null?E:"start"]),t.setAttribute("alignment-baseline",{alphabetic:"alphabetic",top:"top",bottom:"bottom",hanging:"hanging",middle:"middle",ideographic:"ideographic"}[(L=this.textBaseline)!=null?L:"alphabetic"]),t.setAttribute("x",String(this.x)),t.setAttribute("y",String(this.y)),t.textContent=(_=this.text)!=null?_:"",{elements:[t]}}},rs.className="Text",rs.defaultStyles=et(pe({},Us.defaultStyles),{textAlign:"start",fontStyle:void 0,fontWeight:void 0,fontSize:10,fontFamily:"sans-serif",textBaseline:"alphabetic"}),f([Hi()],rs.prototype,"x",2),f([Hi()],rs.prototype,"y",2),f([Hi({changeCb:e=>e.onTextChange()})],rs.prototype,"text",2),f([Hi()],rs.prototype,"fontStyle",2),f([Hi()],rs.prototype,"fontWeight",2),f([Hi()],rs.prototype,"fontSize",2),f([Hi()],rs.prototype,"fontFamily",2),f([Hi()],rs.prototype,"textAlign",2),f([Hi()],rs.prototype,"textBaseline",2),f([Hi()],rs.prototype,"lineHeight",2),or=rs,Vm=class extends Mu(or){},Du=class extends Mu(cg(or)){}}});function dD(e,t,n,a,h,S){if(e.size===0)return!1;let E=e.x,L=e.y;t!=null&&(E-=(t.x-.5)*e.size,L-=(t.y-.5)*e.size);let _=E;E<n?_=n:E>n+h&&(_=n+h);let N=L;L<a?N=a:L>a+S&&(N=a+S);let V=E-_,q=L-N;return Math.sqrt(V*V+q*q)<=e.size*.5}function uD(e,t,n,a,h){let S=e.x+e.width>t&&e.x<t+a,E=e.y+e.height>n&&e.y<n+h;return S&&E}function VP(e,t,n,a,h){return t+a<e.x+e.width&&t>e.x&&n>e.y&&n+h<e.y+e.height}function Nx(e){return e!=null&&typeof e.point=="object"&&typeof e.label=="object"}function hg(e,t,n=5){var L,_,N;let a=new Map,h=[],S=new Map([...e.entries()].map(([V,q])=>[V,q.toSorted((Y,J)=>J.point.size-Y.point.size)])),E=[...S.values()].flat();for(let[V,q]of S.entries()){let Y=[];if((L=q[0])!=null&&L.label){for(let J=0,re=q.length;J<re;J++){let ce=q[J],{point:he,label:me,marker:we}=ce,{text:Me,width:be,height:Le}=me,Fe=he.size*.5,je=0,Xe=0;if(Fe>0&&ce.placement!=null){let At=Cv[ce.placement];je=(be*.5+Fe+n)*At.x,Xe=(Le*.5+Fe+n)*At.y}let nt=he.x-be*.5+je-(((_=we==null?void 0:we.center.x)!=null?_:.5)-.5)*he.size,lt=he.y-Le*.5+Xe-(((N=we==null?void 0:we.center.y)!=null?N:.5)-.5)*he.size;if(!(!t||VP(t,nt,lt,be,Le))||E.some(At=>{var Rt;return dD(At.point,(Rt=At.marker)==null?void 0:Rt.center,nt,lt,be,Le)})||h.some(At=>uD(At,nt,lt,be,Le)))continue;let bt={index:J,text:Me,x:nt,y:lt,width:be,height:Le,datum:ce};Y.push(bt),h.push(bt)}a.set(V,Y)}}return a}function zx(e,t=0){let n=[];for(let a=0;a<e.length;a++){let h=e[a],{point:{x:S,y:E},label:{text:L}}=h,{width:_,height:N}=h.label;if(_+=t,N+=t,n.some(V=>uD(V,S,E,_,N)))return!0;n.push({index:a,text:L,x:S,y:E,width:_,height:N,datum:h})}return!1}var Cv,hD=M({"packages/ag-charts-community/src/scene/util/labelPlacement.ts"(){"use strict";Cv={top:{x:0,y:-1},bottom:{x:0,y:1},left:{x:-1,y:0},right:{x:1,y:0},"top-left":{x:-1,y:-1},"top-right":{x:1,y:-1},"bottom-left":{x:-1,y:1},"bottom-right":{x:1,y:1}}}});function Bx(e,t){let n=Math.max(e.length,t.length),a=new Set,h=new Set;for(let S=0;S<n;S++){let E=e[S],L=t[S];E!==L&&(h.has(L)?h.delete(L):L&&a.add(L),a.has(E)?a.delete(E):E&&h.add(E))}return{changed:a.size>0||h.size>0,added:a,removed:h}}var Sv=M({"packages/ag-charts-community/src/util/diff.util.ts"(){"use strict"}});function qs(e,t=2){return typeof e=="number"?E0(e,t):String(e!=null?e:"")}function D0(e){return I0.format(e)}function E0(e,t){return t===2?jI.format(e):new Intl.NumberFormat("en-US",{maximumFractionDigits:t,useGrouping:!1}).format(e)}var jI,I0,Rh=M({"packages/ag-charts-community/src/util/format.util.ts"(){"use strict";jI=new Intl.NumberFormat("en-US",{maximumFractionDigits:2,useGrouping:!1}),I0=new Intl.NumberFormat("en-US",{style:"percent"})}});function gg(e,t,n){if(ho(t)){if(!ho(e)||e.length!==t.length||t.some((a,h)=>gg(e[h],a)!=null))return t}else if(no(t)){if(!no(e))return t;let a={},h=new Set([...Object.keys(e),...Object.keys(t)]);for(let S of h)if(!(e[S]===t[S]||n!=null&&n.includes(S)))if(typeof e[S]==typeof t[S]){let E=gg(e[S],t[S]);E!==null&&(a[S]=E)}else a[S]=t[S];return Object.keys(a).length?a:null}else if(e!==t)return t;return null}function gD(e,t){for(let n of Object.keys(e))if(e[n]!==(t==null?void 0:t[n]))return!1;return!0}function Sl(e,t){return ho(e)?e.map(n=>Sl(n,t)):no(e)?HP(e,t):e instanceof Map?new Map(Sl(Array.from(e))):T0(e)}function HP(e,t){let n={};for(let a of Object.keys(e))n[a]=t!=null&&t.has(a)?T0(e[a]):Sl(e[a],t);return n}function T0(e){return ho(e)?e.slice(0):no(e)?pe({},e):Je(e)?new Date(e):km(e)?new RegExp(e.source,e.flags):e}function pg(e,t,n,a,h){if(ho(e)){t(e,a,h);let S=0;for(let E of e)pg(E,t,n,a==null?void 0:a[S],h),S++}else if(no(e)){t(e,a,h);for(let S of Object.keys(e)){if(n!=null&&n.has(S))continue;let E=e[S];pg(E,t,n,a==null?void 0:a[S],h)}}}function R0(e,t,n={}){let{path:a,matcherPath:h=a==null?void 0:a.replace(/(\[[0-9+]+])/i,"[]"),skip:S=[]}=n;if(e==null)throw new Error(`AG Charts - target is uninitialised: ${a!=null?a:"<root>"}`);if(t==null)return e;if(ha(e))return e.set(t);let E=e,L=Gx(e);for(let _ of Object.keys(t)){if(i0.has(_))continue;let N=`${h?h+".":""}${_}`;if(S.includes(N))continue;let V=t[_],q=`${a?a+".":""}${_}`,Y=E.constructor,J=E[_];try{let re=Gx(J),ce=Gx(V);if(L===P0&&!(_ in e)){if(V===void 0)continue;Di.warn(`unable to set [${q}] in ${Y==null?void 0:Y.name} - property is unknown`);continue}if(re!=null&&ce!=null&&ce!==re&&(re!==P0||ce!=="object")){Di.warn(`unable to set [${q}] in ${Y==null?void 0:Y.name} - can't apply type of [${ce}], allowed types are: [${re}]`);continue}ha(J)?E[_].set(V):ce==="object"?(J==null&&(E[_]={}),R0(J!=null?J:E[_],V,et(pe({},n),{path:q,matcherPath:N}))):E[_]=V}catch(re){Di.warn(`unable to set [${q}] in [${Y==null?void 0:Y.name}]; nested error is: ${re.message}`)}}return e}function Gx(e){return e==null?null:t0(e)||Je(e)?"primitive":ho(e)?"array":Br(e)?no(e)?"object":P0:Gi(e)?"function":"primitive"}var P0,Lc=M({"packages/ag-charts-community/src/util/json.ts"(){"use strict";Rn(),Ta(),ga(),Hn(),P0="class-instance"}});function Ir(e,t){let n=ho(e)?e:e.split(".");if(n.length===1){let[a]=n;return Uo((h,S,E)=>h[a]=E,h=>h[a],t)}return Uo((a,h,S)=>Bs(a,n,S),a=>gl(a,n),t)}function WP(e){return Uo((t,n,a)=>t[e]=a)}function ws(e,t){return Uo((n,a,h)=>n[e][t!=null?t:a]=h)}function Ys(e){let{newValue:t,oldValue:n,changeValue:a}=e;return Uo((h,S,E,L)=>(E!==L&&(L!==void 0&&(n==null||n.call(h,L)),E!==void 0&&(t==null||t.call(h,E)),a==null||a.call(h,E,L)),E))}function wv(e){return Mm(e)}var Oc=M({"packages/ag-charts-community/src/util/proxy.ts"(){"use strict";Wl(),Ta(),Hn()}});function VI(){return Mm(()=>{})}function jx(e,t){let n=gh(t);if(n.length===0)return;let a=FA(e);for(let h of n)h in a&&(t[h]=a[h])}var Vx,In,Hx,fb,Sp,Wx,xv=M({"packages/ag-charts-community/src/util/stateMachine.ts"(){"use strict";Vr(),Wl(),Vx="color: green",In="color: grey",Hx=class{transitionRoot(e,t){this.parent?this.parent.transitionRoot(e,t):this.transition(e,t)}},fb=class op extends Hx{constructor(t,n,a){super(),this.defaultState=t,this.states=n,this.enterEach=a,this.debug=Pa.create(!0,"animation"),this.state=t,this.debug(`%c${this.constructor.name} | init -> ${t}`,Vx)}transition(t,n){var V,q,Y,J;if(!this.transitionChild(t,n)||this.state===op.child||this.state===op.parent)return;let h=this.state,S=this.states[this.state],E=S[t],L=`%c${this.constructor.name} | ${this.state} -> ${t} ->`;if(Array.isArray(E))E=E.find(re=>{if(!re.guard)return!0;let ce=re.guard(n);return ce||this.debug(`${L} (guarded)`,re.target,In),ce});else if(typeof E=="object"&&!(E instanceof op)&&E.guard&&!E.guard(n)){this.debug(`${L} (guarded)`,E.target,In);return}if(!E){this.debug(`${L} ${this.state}`,In);return}let _=this.getDestinationState(E),N=_===this.state?void 0:S.onExit;this.debug(`${L} ${_}`,Vx),this.state=_,typeof E=="function"?E(n):typeof E=="object"&&!(E instanceof op)&&((V=E.action)==null||V.call(E,n)),N==null||N(),(q=this.enterEach)==null||q.call(this,h,_),_!==h&&_!==op.child&&_!==op.parent&&((J=(Y=this.states[_]).onEnter)==null||J.call(Y,h,n))}transitionAsync(t,n){setTimeout(()=>{this.transition(t,n)},0)}is(t){return this.state===op.child&&this.childState?this.childState.is(t):this.state===t}resetHierarchy(){this.debug(`%c${this.constructor.name} | ${this.state} -> [resetHierarchy] -> ${this.defaultState}`,"color: green"),this.state=this.defaultState}transitionChild(t,n){var a,h;return this.state!==op.child||!this.childState||(jx(this,this.childState),this.childState.transition(t,n),!this.childState.is(op.parent))?!0:(this.debug(`%c${this.constructor.name} | ${this.state} -> ${t} -> ${this.defaultState}`,Vx),this.state=this.defaultState,(h=(a=this.states[this.state]).onEnter)==null||h.call(a),this.childState.resetHierarchy(),!1)}getDestinationState(t){let n=this.state;return typeof t=="string"?n=t:t instanceof op?(this.childState=t,this.childState.parent=this,n=op.child):typeof t=="object"&&(t.target instanceof op?(this.childState=t.target,this.childState.parent=this,n=op.child):t.target!=null&&(n=t.target)),n}},fb.child="__child",fb.parent="__parent",Sp=fb,Wx=class extends Hx{constructor(...e){super(),this.stateMachines=e;for(let t of e)t.parent=this}transition(e,t){for(let n of this.stateMachines)jx(this,n),n.transition(e,t)}transitionAsync(e,t){for(let n of this.stateMachines)jx(this,n),n.transitionAsync(e,t)}}}});function Ux(){let e=new Map;return t=>{let n=e.get(t);return n?(e.set(t,n+1),`${t}_${n}`):(e.set(t,1),t)}}var pD=M({"packages/ag-charts-community/src/util/tempUtils.ts"(){"use strict"}}),Mv,mD=M({"packages/ag-charts-community/src/util/textWrapper.ts"(){"use strict";cd(),Mv=class{static wrapText(e,t){return this.wrapLines(e,t).join(`
`)}static wrapLines(e,t){let n=this.textWrap(e,t);return t.overflow==="hide"&&n.some(a=>a.endsWith(Bo.EllipsisChar))?[]:n}static appendEllipsis(e){return e.replace(/[.,]{1,5}$/,"")+Bo.EllipsisChar}static truncateLine(e,t,n,a){let h=t.textWidth(Bo.EllipsisChar),S=0,E=0;for(;E<e.length;E++){let L=t.textWidth(e.charAt(E));if(S+L>n)break;S+=L}if(e.length===E&&(!a||S+h<=n))return a?e+Bo.EllipsisChar:e;for(e=e.slice(0,E).trimEnd();e.length&&t.textWidth(e)+h>n;)e=e.slice(0,-1).trimEnd();return e+Bo.EllipsisChar}static textWrap(e,t){let n=e.split(Bo.lineSplitter),a=ug.getMeasurer(t);if(t.textWrap==="never")return n.map(L=>this.truncateLine(L.trimEnd(),a,t.maxWidth));let h=[],S=t.textWrap==="hyphenate",E=t.textWrap==null||t.textWrap==="on-space";for(let L of n){let _=L.trimEnd();if(_===""){h.push(_);continue}for(let N=0,V=0,q=0;N<_.length;N++){let Y=_.charAt(N);if(V+=a.textWidth(Y),Y===" "&&(q=N),V>t.maxWidth){if(N===0)break;let J=a.textWidth(_.slice(0,N+1));if(J<=t.maxWidth){V=J;continue}if(q){let he=this.getWordAt(_,q+1),me=a.textWidth(he);if(me<=t.maxWidth){h.push(_.slice(0,q).trimEnd()),_=_.slice(q).trimStart(),N=-1,V=0,q=0;continue}else E&&me>t.maxWidth&&h.push(_.slice(0,q).trimEnd(),this.truncateLine(_.slice(q).trimStart(),a,t.maxWidth,!0))}else E&&h.push(this.truncateLine(_,a,t.maxWidth,!0));if(E){_="";break}let re=S?"-":"",ce=_.slice(0,N).trim();for(;ce.length&&a.textWidth(ce+re)>t.maxWidth;)ce=ce.slice(0,-1).trimEnd();if(h.push(ce+re),!ce.length){_="";break}_=_.slice(ce.length).trimStart(),N=-1,V=0,q=0}}_&&h.push(_)}return this.avoidOrphans(h,a,t),this.clipLines(h,a,t)}static getWordAt(e,t){let n=e.indexOf(" ",t);return n===-1?e.slice(t):e.slice(t,n)}static clipLines(e,t,n){if(!n.maxHeight)return e;let{height:a,lineMetrics:h}=t.measureLines(e);if(a<=n.maxHeight)return e;for(let S=0,E=0;S<h.length;S++){let{lineHeight:L}=h[S];if(E+=L,E>n.maxHeight){if(n.overflow==="hide")return[];let _=e.slice(0,S||1),N=_.pop();return _.concat(this.truncateLine(N,t,n.maxWidth,!0))}}return e}static avoidOrphans(e,t,n){if(n.avoidOrphans===!1||e.length<2)return;let{length:a}=e,h=e[a-1],S=e[a-2];if(S.length<h.length)return;let E=S.lastIndexOf(" ");if(E===-1||E===S.indexOf(" ")||h.includes(" "))return;let L=S.slice(E+1);t.textWidth(h+L)<=n.maxWidth&&(e[a-2]=S.slice(0,E),e[a-1]=L+" "+h)}}}}),vo,wp=M({"packages/ag-charts-community/src/chart/caption.ts"(){"use strict";Wa(),Pc(),Zl(),Ac(),ga(),Oc(),cd(),mD(),Ki(),vo=class extends _n{constructor(){super(...arguments),this.id=dl(this),this.node=new Vm({zIndex:1}).setProperties({textAlign:"center",pointerEvents:1}),this.enabled=!1,this.textAlign="center",this.fontSize=10,this.fontFamily="sans-serif",this.wrapping="always",this.padding=0,this.layoutStyle="block",this.truncated=!1}registerInteraction(e,t){return e.layoutManager.addListener("layout:complete",()=>this.updateA11yText(e,t))}computeTextWrap(e,t){var _,N;let{text:n,padding:a,wrapping:h}=this,S=Math.min((_=this.maxWidth)!=null?_:1/0,e)-a*2,E=(N=this.maxHeight)!=null?N:t-a*2;if(!isFinite(S)&&!isFinite(E)){this.node.text=n;return}let L=Mv.wrapText(n!=null?n:"",{maxWidth:S,maxHeight:E,font:this,textWrap:h});this.node.text=L,this.truncated=L.includes(Bo.EllipsisChar)}updateA11yText(e,t){var a,h;let{proxyInteractionService:n}=e;if(this.enabled&&this.text){let S=vr.toCanvas(this.node);if(S){let{id:E}=this;(a=this.proxyText)!=null||(this.proxyText=n.createProxyElement({type:"text",domManagerId:E,where:t})),this.proxyText.textContent=this.text,this.proxyText.setBounds(S),this.proxyText.addListener("mousemove",L=>this.handleMouseMove(e,L)),this.proxyText.addListener("mouseleave",L=>this.handleMouseLeave(e,L))}}else(h=this.proxyText)==null||h.destroy(),this.proxyText=void 0}handleMouseMove(e,t){if(t!=null&&this.enabled&&this.node.visible&&this.truncated){let{x:n,y:a}=vr.toCanvas(this.node),h=t.sourceEvent.offsetX+n,S=t.sourceEvent.offsetY+a,E={type:"hover",canvasX:h,canvasY:S};e.tooltipManager.updateTooltip(this.id,{canvasX:h,canvasY:S,lastPointerEvent:E,showArrow:!1},{title:this.text})}}handleMouseLeave(e,t){e.tooltipManager.removeTooltip(this.id)}},vo.SMALL_PADDING=10,vo.LARGE_PADDING=20,f([$e(Ji),ws("node","visible")],vo.prototype,"enabled",2),f([$e(hi,{optional:!0}),ws("node")],vo.prototype,"text",2),f([$e(eb,{optional:!0}),ws("node")],vo.prototype,"textAlign",2),f([$e(id,{optional:!0}),ws("node")],vo.prototype,"fontStyle",2),f([$e(nd,{optional:!0}),ws("node")],vo.prototype,"fontWeight",2),f([$e(mi),ws("node")],vo.prototype,"fontSize",2),f([$e(hi),ws("node")],vo.prototype,"fontFamily",2),f([$e(Ra,{optional:!0}),ws("node","fill")],vo.prototype,"color",2),f([$e(mi,{optional:!0})],vo.prototype,"spacing",2),f([$e(mi,{optional:!0})],vo.prototype,"maxWidth",2),f([$e(mi,{optional:!0})],vo.prototype,"maxHeight",2),f([$e(uv)],vo.prototype,"wrapping",2),f([$e(mi)],vo.prototype,"padding",2),f([$e(hi)],vo.prototype,"layoutStyle",2)}}),_c,fD=M({"packages/ag-charts-community/src/scene/shape/range.ts"(){"use strict";jn(),Wa(),os(),_c=class extends Us{constructor(e={}){super(e),this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.startLine=!1,this.endLine=!1,this.isRange=!1,this.restoreOwnStyles()}computeBBox(){return new Ui(this.x1,this.y1,this.x2-this.x1,this.y2-this.y1)}isPointInPath(e,t){return!1}render(e){var ce;let{ctx:t}=e,{x1:n,y1:a,x2:h,y2:S}=this;n=this.align(n),a=this.align(a),h=this.align(h),S=this.align(S);let{fill:E,opacity:L,isRange:_}=this;if(!!(_&&E)){let{fillOpacity:he}=this;this.applyFill(t),t.globalAlpha=L*he,t.beginPath(),t.moveTo(n,a),t.lineTo(h,a),t.lineTo(h,S),t.lineTo(n,S),t.closePath(),t.fill()}let{stroke:V,strokeWidth:q,startLine:Y,endLine:J}=this;if(!!((Y||J)&&V&&q)){let{strokeOpacity:he,lineDash:me,lineDashOffset:we,lineCap:Me,lineJoin:be}=this;this.applyStroke(t),t.globalAlpha=L*he,t.lineWidth=q,me&&t.setLineDash(me),we&&(t.lineDashOffset=we),Me&&(t.lineCap=Me),be&&(t.lineJoin=be),t.beginPath(),Y&&(t.moveTo(n,a),t.lineTo(h,a)),J&&(t.moveTo(h,S),t.lineTo(n,S)),t.stroke()}(ce=this.fillShadow)==null||ce.markClean(),super.render(e)}},_c.className="Range",_c.defaultStyles=et(pe({},Us.defaultStyles),{strokeWidth:1}),f([Hi()],_c.prototype,"x1",2),f([Hi()],_c.prototype,"y1",2),f([Hi()],_c.prototype,"x2",2),f([Hi()],_c.prototype,"y2",2),f([Hi()],_c.prototype,"startLine",2),f([Hi()],_c.prototype,"endLine",2),f([Hi()],_c.prototype,"isRange",2)}});function Hm(e){let{parallelFlipRotation:t=0,regularFlipRotation:n=0}=e,a=e.rotation?da(za(e.rotation)):0,h=!a&&t>=0&&t<=Math.PI?-1:1,S=!a&&n>=0&&n<=Math.PI?-1:1,E=0;return e.parallel?E=h*Math.PI/2:S===-1&&(E=Math.PI),{configuredRotation:a,defaultRotation:E,parallelFlipFlag:h,regularFlipFlag:S}}function HI(e,t){return isNaN(e)?t?0:10:e}function WI(e,t,n,a){return e&&!t?n*a===-1?"hanging":"bottom":"middle"}function vD(e,t,n,a,h){let S=t>0&&t<=Math.PI,E=n>0&&n<=Math.PI,L=S||E?-1:1;if(e)if(t||n){if(a*L===-1)return"end"}else return"center";else if(a*h===-1)return"end";return"start"}function Kx(e,t,n,a){let h=[];for(let{tickLabel:S,translationY:E}of e){if(!S)continue;let{width:L,height:_}=a.measureLines(S),N=new Ui(t,E,L,_),V=new Ui(t,E,0,0);n.transformBBox(V,N);let{x:q,y:Y}=N;h.push({point:{x:q,y:Y},label:{text:S,width:L,height:_}})}return h}var Hr,jd=M({"packages/ag-charts-community/src/chart/label.ts"(){"use strict";jn(),br(),ga(),cd(),Ki(),Hr=class extends _n{constructor(){super(...arguments),this.enabled=!0,this.fontSize=12,this.fontFamily="Verdana, sans-serif"}getFont(){return Bo.toFontString(this)}},f([$e(Ji)],Hr.prototype,"enabled",2),f([$e(Ra,{optional:!0})],Hr.prototype,"color",2),f([$e(id,{optional:!0})],Hr.prototype,"fontStyle",2),f([$e(nd,{optional:!0})],Hr.prototype,"fontWeight",2),f([$e(mi)],Hr.prototype,"fontSize",2),f([$e(hi)],Hr.prototype,"fontFamily",2),f([$e(Kl,{optional:!0})],Hr.prototype,"formatter",2)}});function UP(e){return e!=null&&Object.hasOwn(e,"toString")&&ui(e.toString())}function yD(e){return e!=null&&Object.hasOwn(e,"valueOf")&&Na(e.valueOf())}function vb(e){return Na(e)||Ld(e)||yD(e)}function yb(e,t){return e!=null&&(!t||vb(e))}function L0(e){return UP(e)&&Object.hasOwn(e,"id")?e.id:e}var kv=M({"packages/ag-charts-community/src/util/value.ts"(){"use strict";Hn()}}),O0,qx,Av=M({"packages/ag-charts-community/src/chart/crossline/crossLine.ts"(){"use strict";Gs(),sb(),Rn(),Ki(),kv(),O0=e=>e==="value"?Ka((t,n)=>n.target.type==="line",t=>t.target.type==="range"?"crossLine type 'range' to have a 'range' property instead of 'value'":"crossLine property 'type' to be 'line'"):Ka((t,n)=>n.target.type==="range",t=>t.target.type==="line"?"crossLine type 'line' to have a 'value' property instead of 'range'":"crossLine property 'type' to be 'range'"),qx=(e,t,n,a,h)=>{var J;let S=e==="line"&&t!==void 0,E=e==="range"&&n!==void 0;if(!S&&!E)return!0;let[L,_]=n!=null?n:[t,void 0],N=go.is(a)||Rc.is(a),V=yb(L,N)&&!isNaN(a.convert(L)),q=yb(_,N)&&!isNaN(a.convert(_));if(S&&V||E&&V&&q)return(J=h==null?void 0:h())!=null?J:!0;let Y=["Expecting crossLine"];return E?(V||Y.push(`range start ${Qt(L)}`),q||Y.push(`${V?"":"and "}range end ${Qt(_)}`)):Y.push(`value ${Qt(L)}`),Y.push("to match the axis scale domain."),Di.warnOnce(Y.join(" ")),!1}}});function Yx({yDirection:e,padding:t=0,position:n="top",bbox:a}){let h=e?UI:Xx,{xTranslationDirection:S,yTranslationDirection:E}=h[n],L=S*(t+a.width/2),_=E*(t+a.height/2);return{xTranslation:L,yTranslation:_}}function bD({yDirection:e,bbox:t,padding:n=0,position:a="top"}){let h={};return a.startsWith("inside")||(a==="top"&&!e?h.top=n+t.height:a==="bottom"&&!e?h.bottom=n+t.height:a==="left"&&e?h.left=n+t.width:a==="right"&&e&&(h.right=n+t.width)),h}var UI,Xx,bb,Zx,$x,Qx,Jx,_0,F0,N0,z0,Cb,CD=M({"packages/ag-charts-community/src/chart/crossline/crossLineLabelPosition.ts"(){"use strict";aa(),UI={top:{xTranslationDirection:0,yTranslationDirection:-1},bottom:{xTranslationDirection:0,yTranslationDirection:1},left:{xTranslationDirection:-1,yTranslationDirection:0},right:{xTranslationDirection:1,yTranslationDirection:0},"top-left":{xTranslationDirection:1,yTranslationDirection:-1},"top-right":{xTranslationDirection:-1,yTranslationDirection:-1},"bottom-left":{xTranslationDirection:1,yTranslationDirection:1},"bottom-right":{xTranslationDirection:-1,yTranslationDirection:1},inside:{xTranslationDirection:0,yTranslationDirection:0},"inside-left":{xTranslationDirection:1,yTranslationDirection:0},"inside-right":{xTranslationDirection:-1,yTranslationDirection:0},"inside-top":{xTranslationDirection:0,yTranslationDirection:1},"inside-bottom":{xTranslationDirection:0,yTranslationDirection:-1},"inside-top-left":{xTranslationDirection:1,yTranslationDirection:1},"inside-bottom-left":{xTranslationDirection:1,yTranslationDirection:-1},"inside-top-right":{xTranslationDirection:-1,yTranslationDirection:1},"inside-bottom-right":{xTranslationDirection:-1,yTranslationDirection:-1}},Xx={top:{xTranslationDirection:1,yTranslationDirection:0},bottom:{xTranslationDirection:-1,yTranslationDirection:0},left:{xTranslationDirection:0,yTranslationDirection:-1},right:{xTranslationDirection:0,yTranslationDirection:1},"top-left":{xTranslationDirection:-1,yTranslationDirection:-1},"top-right":{xTranslationDirection:-1,yTranslationDirection:1},"bottom-left":{xTranslationDirection:1,yTranslationDirection:-1},"bottom-right":{xTranslationDirection:1,yTranslationDirection:1},inside:{xTranslationDirection:0,yTranslationDirection:0},"inside-left":{xTranslationDirection:0,yTranslationDirection:1},"inside-right":{xTranslationDirection:0,yTranslationDirection:-1},"inside-top":{xTranslationDirection:-1,yTranslationDirection:0},"inside-bottom":{xTranslationDirection:1,yTranslationDirection:0},"inside-top-left":{xTranslationDirection:-1,yTranslationDirection:1},"inside-bottom-left":{xTranslationDirection:1,yTranslationDirection:1},"inside-top-right":{xTranslationDirection:-1,yTranslationDirection:-1},"inside-bottom-right":{xTranslationDirection:1,yTranslationDirection:-1}},bb=({direction:e,xEnd:t,yStart:n,yEnd:a})=>e==="y"?{x:t/2,y:n}:{x:t,y:isNaN(a)?n:(n+a)/2},Zx=({direction:e,xStart:t,xEnd:n,yStart:a,yEnd:h})=>e==="y"?{x:t,y:isNaN(h)?a:(a+h)/2}:{x:n/2,y:a},$x=({direction:e,xEnd:t,yStart:n,yEnd:a})=>e==="y"?{x:t,y:isNaN(a)?n:(n+a)/2}:{x:t/2,y:isNaN(a)?n:a},Qx=({direction:e,xStart:t,xEnd:n,yStart:a,yEnd:h})=>e==="y"?{x:n/2,y:isNaN(h)?a:h}:{x:t,y:isNaN(h)?a:(a+h)/2},Jx=({xEnd:e,yStart:t,yEnd:n})=>({x:e/2,y:isNaN(n)?t:(t+n)/2}),_0=({direction:e,xStart:t,xEnd:n,yStart:a})=>e==="y"?{x:t/2,y:a}:{x:n,y:a},F0=({direction:e,xStart:t,yStart:n,yEnd:a})=>e==="y"?{x:t,y:isNaN(a)?n:a}:{x:t,y:n},N0=({direction:e,xEnd:t,yStart:n,yEnd:a})=>e==="y"?{x:t,y:n}:{x:t,y:isNaN(a)?n:a},z0=({direction:e,xStart:t,xEnd:n,yStart:a,yEnd:h})=>e==="y"?{x:n,y:isNaN(h)?a:h}:{x:t,y:isNaN(h)?a:h},Cb={top:{c:bb},bottom:{c:Qx},left:{c:Zx},right:{c:$x},"top-left":{c:_0},"top-right":{c:N0},"bottom-left":{c:F0},"bottom-right":{c:z0},inside:{c:Jx},"inside-left":{c:Zx},"inside-right":{c:$x},"inside-top":{c:bb},"inside-bottom":{c:Qx},"inside-top-left":{c:_0},"inside-bottom-left":{c:F0},"inside-top-right":{c:N0},"inside-bottom-right":{c:z0}}}}),eM,ec,Xs,KP=M({"packages/ag-charts-community/src/chart/crossline/cartesianCrossLine.ts"(){"use strict";bu(),Gs(),sb(),jn(),$o(),Wa(),fD(),Pc(),Ac(),zn(),ga(),Ki(),aa(),jd(),Av(),CD(),eM=zo(["top","left","right","bottom","top-left","top-right","bottom-left","bottom-right","inside","inside-left","inside-right","inside-top","inside-bottom","inside-top-left","inside-bottom-left","inside-top-right","inside-bottom-right"],"crossLine label position"),ec=class extends _n{constructor(){super(...arguments),this.fontSize=14,this.fontFamily="Verdana, sans-serif",this.padding=5,this.color="rgba(87, 87, 87, 1)"}},f([$e(Ji,{optional:!0})],ec.prototype,"enabled",2),f([$e(hi,{optional:!0})],ec.prototype,"text",2),f([$e(id,{optional:!0})],ec.prototype,"fontStyle",2),f([$e(nd,{optional:!0})],ec.prototype,"fontWeight",2),f([$e(mi)],ec.prototype,"fontSize",2),f([$e(hi)],ec.prototype,"fontFamily",2),f([$e(pa)],ec.prototype,"padding",2),f([$e(Ra,{optional:!0})],ec.prototype,"color",2),f([$e(eM,{optional:!0})],ec.prototype,"position",2),f([$e(pa,{optional:!0})],ec.prototype,"rotation",2),f([$e(Ji,{optional:!0})],ec.prototype,"parallel",2),Xs=class extends _n{constructor(){super(),this.id=dl(this),this.label=new ec,this.scale=void 0,this.clippedRange=[-1/0,1/0],this.gridLength=0,this.sideFlag=-1,this.parallelFlipRotation=0,this.regularFlipRotation=0,this.direction="x",this.rangeGroup=new hn({name:this.id}),this.lineGroup=new hn({name:this.id}),this.labelGroup=new hn({name:this.id}),this.crossLineRange=new _c,this.crossLineLabel=new Du,this.labelPoint=void 0,this.data=[],this.startLine=!1,this.endLine=!1,this.isRange=!1,this._isRange=void 0,this.lineGroup.append(this.crossLineRange),this.labelGroup.append(this.crossLineLabel),this.crossLineRange.pointerEvents=1}update(e){let{enabled:t,data:n,type:a,value:h,range:S,scale:E}=this;if(!a||!E||!t||!e||!qx(a,h,S,E)||n.length===0){this.rangeGroup.visible=!1,this.lineGroup.visible=!1,this.labelGroup.visible=!1;return}this.rangeGroup.visible=e,this.lineGroup.visible=e,this.labelGroup.visible=e,this.updateNodes();let{isRange:L}=this;L!==this._isRange&&(L?this.rangeGroup.appendChild(this.crossLineRange):this.lineGroup.appendChild(this.crossLineRange)),this._isRange=L}calculateLayout(e,t){var je,Xe,nt;if(!e)return;let{scale:n,gridLength:a,sideFlag:h,direction:S,label:{position:E="top"},clippedRange:L,strokeWidth:_=0}=this;if(this.data=[],!n)return;let N=(je=n.bandwidth)!=null?je:0,V=(Xe=n.step)!=null?Xe:0,q=(t?-1:1)*(n instanceof dr?(V-N)/2:0),[Y,J]=[0,h*a],[re,ce]=this.getRange(),he=ce===void 0&&Rc.is(n)?N/2+q:0,[me,we]=[Number(n.convert(re,!0))-q+he,n.convert(ce,!0)+N+q];me=hh(me,L),we=hh(we,L),[re,ce]=[Number(n.convert(re))+he,n.convert(ce)+N];let Me=(re===me||ce===we||me!==we)&&Math.abs(we-me)>0;if(Me&&me>we&&([me,we]=[we,me],[re,ce]=[ce,re]),re-q>=me&&(re-=q),ce+q<=we&&(ce+=q),this.isRange=Me,this.startLine=_>0&&re>=me&&re<=me+q,this.endLine=_>0&&ce>=we-N-q&&ce<=we,!Me&&!this.startLine&&!this.endLine||(this.data=[me,we],!this.label.enabled))return;let{c:be=bb}=(nt=Cb[E])!=null?nt:{},{x:Le,y:Fe}=be({direction:S,xStart:Y,xEnd:J,yStart:me,yEnd:we});this.labelPoint={x:Le,y:Fe}}updateNodes(){this.updateRangeNode(),this.label.enabled&&(this.updateLabel(),this.positionLabel())}updateRangeNode(){var Y;let{crossLineRange:e,sideFlag:t,gridLength:n,data:a,startLine:h,endLine:S,isRange:E,fill:L,fillOpacity:_,stroke:N,strokeWidth:V,lineDash:q}=this;e.x1=0,e.x2=t*n,e.y1=a[0],e.y2=a[1],e.startLine=h,e.endLine=S,e.isRange=E,e.fill=L,e.fillOpacity=_!=null?_:1,e.stroke=N,e.strokeWidth=V!=null?V:1,e.strokeOpacity=(Y=this.strokeOpacity)!=null?Y:1,e.lineDash=q}updateLabel(){let{crossLineLabel:e,label:t}=this;t.text&&(e.fontStyle=t.fontStyle,e.fontWeight=t.fontWeight,e.fontSize=t.fontSize,e.fontFamily=t.fontFamily,e.fill=t.color,e.text=t.text)}positionLabel(){let{crossLineLabel:e,labelPoint:{x:t=void 0,y:n=void 0}={},label:{parallel:a,rotation:h,position:S="top",padding:E=0},direction:L,parallelFlipRotation:_,regularFlipRotation:N}=this;if(t===void 0||n===void 0)return;let{defaultRotation:V,configuredRotation:q}=Hm({rotation:h,parallel:a,regularFlipRotation:N,parallelFlipRotation:_});e.rotation=V+q,e.textBaseline="middle",e.textAlign="center";let Y=e.getBBox();if(!Y)return;let J=L==="y",{xTranslation:re,yTranslation:ce}=Yx({yDirection:J,padding:E,position:S,bbox:Y});e.translationX=t+re,e.translationY=n+ce}getRange(){var E;let{value:e,range:t,scale:n}=this,a=go.is(n)||Rc.is(n),h=(E=t==null?void 0:t[0])!=null?E:e,S=t==null?void 0:t[1];return!a&&S===void 0&&(S=h),a&&h===S&&(S=void 0),[h,S]}computeLabelBBox(){let{label:e}=this;if(!e.enabled)return;let t=new Du;t.fontFamily=e.fontFamily,t.fontSize=e.fontSize,t.fontStyle=e.fontStyle,t.fontWeight=e.fontWeight,t.text=e.text;let{labelPoint:{x:n=void 0,y:a=void 0}={},label:{parallel:h,rotation:S,position:E="top",padding:L=0},direction:_,parallelFlipRotation:N,regularFlipRotation:V}=this;if(n===void 0||a===void 0)return;let{configuredRotation:q}=Hm({rotation:S,parallel:h,regularFlipRotation:V,parallelFlipRotation:N});t.rotation=q,t.textBaseline="middle",t.textAlign="center";let Y=t.getBBox();if(!Y)return;let J=_==="y",{xTranslation:re,yTranslation:ce}=Yx({yDirection:J,padding:L,position:E,bbox:Y});return t.x=n+re,t.y=a+ce,t.getBBox()}calculatePadding(e){var N,V,q,Y,J,re,ce,he;let{isRange:t,startLine:n,endLine:a,direction:h,label:{padding:S=0,position:E="top"}}=this;if(!t&&!n&&!a)return;let L=this.computeLabelBBox();if((L==null?void 0:L.x)==null||(L==null?void 0:L.y)==null)return;let _=bD({yDirection:h==="y",padding:S,position:E,bbox:L});e.left=Math.max((N=e.left)!=null?N:0,(V=_.left)!=null?V:0),e.right=Math.max((q=e.right)!=null?q:0,(Y=_.right)!=null?Y:0),e.top=Math.max((J=e.top)!=null?J:0,(re=_.top)!=null?re:0),e.bottom=Math.max((ce=e.bottom)!=null?ce:0,(he=_.bottom)!=null?he:0)}},Xs.className="CrossLine",f([$e(Ji,{optional:!0})],Xs.prototype,"enabled",2),f([$e(zo(["range","line"],"a crossLine type"),{optional:!0})],Xs.prototype,"type",2),f([$e(bl(O0("range"),kh.restrict({length:2})),{optional:!0})],Xs.prototype,"range",2),f([$e(O0("value"),{optional:!0})],Xs.prototype,"value",2),f([$e(Ra,{optional:!0})],Xs.prototype,"fill",2),f([$e(Wn,{optional:!0})],Xs.prototype,"fillOpacity",2),f([$e(Ra,{optional:!0})],Xs.prototype,"stroke",2),f([$e(pa,{optional:!0})],Xs.prototype,"strokeWidth",2),f([$e(Wn,{optional:!0})],Xs.prototype,"strokeOpacity",2),f([$e(_d,{optional:!0})],Xs.prototype,"lineDash",2),f([$e(Yi)],Xs.prototype,"label",2)}}),SD,Wm=M({"packages/ag-charts-community/src/chart/zIndexMap.ts"(){"use strict";SD=(e=>(e[e.CHART_BACKGROUND=0]="CHART_BACKGROUND",e[e.AXIS_GRID=1]="AXIS_GRID",e[e.AXIS=2]="AXIS",e[e.SERIES_CROSSLINE_RANGE=3]="SERIES_CROSSLINE_RANGE",e[e.SERIES_LAYER=4]="SERIES_LAYER",e[e.AXIS_FOREGROUND=5]="AXIS_FOREGROUND",e[e.SERIES_CROSSHAIR=6]="SERIES_CROSSHAIR",e[e.SERIES_CROSSLINE_LINE=7]="SERIES_CROSSLINE_LINE",e[e.SERIES_ANNOTATION=8]="SERIES_ANNOTATION",e[e.CHART_ANNOTATION=9]="CHART_ANNOTATION",e[e.CHART_ANNOTATION_FOCUSED=10]="CHART_ANNOTATION_FOCUSED",e[e.STATUS_BAR=11]="STATUS_BAR",e[e.SERIES_LABEL=12]="SERIES_LABEL",e[e.LEGEND=13]="LEGEND",e[e.NAVIGATOR=14]="NAVIGATOR",e[e.FOREGROUND=15]="FOREGROUND",e))(SD||{})}}),KI,qI,B0,YI=M({"packages/ag-charts-community/src/chart/axis/axisGridLine.ts"(){"use strict";Hn(),Ki(),KI=["stroke","lineDash"],qI=Od(e=>Br(e)&&Object.keys(e).every(t=>KI.includes(t)),"objects with gridline style properties such as 'stroke' or 'lineDash'"),B0=class{constructor(){this.enabled=!0,this.width=1,this.style=[{stroke:void 0,lineDash:[]}]}},f([$e(Ji)],B0.prototype,"enabled",2),f([$e(mi)],B0.prototype,"width",2),f([$e(qI)],B0.prototype,"style",2)}});function Um(e,t=[void 0]){return Uo((n,a,h)=>t.includes(h)?Gi(e)?e(h):e:h)}var Sb=M({"packages/ag-charts-community/src/util/default.ts"(){"use strict";Wl(),Hn()}});function qP(e){return Math.floor(e.getTime()/vs)}function YP(e){return new Date(e*vs)}var G0,XI=M({"packages/ag-charts-community/src/util/time/utcMinute.ts"(){"use strict";wh(),Ul(),G0=new On(qP,YP)}});function ZI(e){return Math.floor(e.getTime()/fa)}function XP(e){return new Date(e*fa)}var wD,ZP=M({"packages/ag-charts-community/src/util/time/utcHour.ts"(){"use strict";wh(),Ul(),wD=new On(ZI,XP)}});function $P(e){return Math.floor(e.getTime()/ys)}function QP(e){let t=new Date(0);return t.setUTCDate(t.getUTCDate()+e),t.setUTCHours(0,0,0,0),t}var xD,JP=M({"packages/ag-charts-community/src/util/time/utcDay.ts"(){"use strict";wh(),Ul(),xD=new On($P,QP)}});function eL(e){return e.getUTCFullYear()*12+e.getUTCMonth()}function tL(e){let t=Math.floor(e/12),n=e-t*12;return new Date(Date.UTC(t,n,1))}var $I,j0=M({"packages/ag-charts-community/src/util/time/utcMonth.ts"(){"use strict";Ul(),$I=new On(eL,tL)}});function QI(e){return e.getUTCFullYear()}function iL(e){let t=new Date;return t.setUTCFullYear(e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0),t}var MD,nL=M({"packages/ag-charts-community/src/util/time/utcYear.ts"(){"use strict";Ul(),MD=new On(QI,iL)}}),JI={};A(JI,{TimeInterval:()=>Ri,day:()=>Ky,friday:()=>fr,hour:()=>Dm,millisecond:()=>Fm,minute:()=>Em,monday:()=>px,month:()=>Vs,saturday:()=>fx,second:()=>vl,sunday:()=>rv,thursday:()=>Rm,tuesday:()=>Tm,utcDay:()=>xD,utcHour:()=>wD,utcMinute:()=>G0,utcMonth:()=>$I,utcYear:()=>MD,wednesday:()=>mx,year:()=>Yy});var xp=M({"packages/ag-charts-community/src/util/time/index.ts"(){"use strict";Ax(),og(),s0(),GA(),ux(),vx(),HA(),UA(),XI(),ZP(),JP(),j0(),nL(),Ul()}}),V0,Km,H0=M({"packages/ag-charts-community/src/chart/axis/axisInterval.ts"(){"use strict";Sb(),ga(),xp(),Hn(),Ki(),V0=Ka(e=>Na(e)&&e>0||e instanceof Ri,"a non-zero positive Number value or, for a time axis, a Time Interval such as 'agCharts.time.month'"),Km=class extends _n{constructor(){super(...arguments),this.minSpacing=NaN,this.maxSpacing=NaN}},f([$e(V0,{optional:!0})],Km.prototype,"step",2),f([$e(kh,{optional:!0})],Km.prototype,"values",2),f([$e(Lm),Um(NaN)],Km.prototype,"minSpacing",2),f([$e(tb),Um(NaN)],Km.prototype,"maxSpacing",2)}}),Go,Mp=M({"packages/ag-charts-community/src/chart/axis/axisLabel.ts"(){"use strict";Sb(),ga(),Ki(),Go=class extends _n{constructor(){super(...arguments),this.enabled=!0,this.fontSize=12,this.fontFamily="Verdana, sans-serif",this.spacing=5,this.minSpacing=NaN,this.color="#575757",this.avoidCollisions=!0,this.mirrored=!1,this.parallel=!1}getSideFlag(){return this.mirrored?1:-1}},f([$e(Ji)],Go.prototype,"enabled",2),f([$e(id,{optional:!0})],Go.prototype,"fontStyle",2),f([$e(nd,{optional:!0})],Go.prototype,"fontWeight",2),f([$e(pa.restrict({min:1}))],Go.prototype,"fontSize",2),f([$e(hi)],Go.prototype,"fontFamily",2),f([$e(mi)],Go.prototype,"spacing",2),f([$e(ns),Um(NaN)],Go.prototype,"minSpacing",2),f([$e(Ra,{optional:!0})],Go.prototype,"color",2),f([$e(pa,{optional:!0})],Go.prototype,"rotation",2),f([$e(Ji)],Go.prototype,"avoidCollisions",2),f([$e(Ji)],Go.prototype,"mirrored",2),f([$e(Ji)],Go.prototype,"parallel",2),f([$e(Kl,{optional:!0})],Go.prototype,"itemStyler",2),f([$e(Kl,{optional:!0})],Go.prototype,"formatter",2),f([$e(hi,{optional:!0})],Go.prototype,"format",2)}}),mg,fg=M({"packages/ag-charts-community/src/chart/axis/axisLine.ts"(){"use strict";Ki(),mg=class{constructor(){this.enabled=!0,this.width=1,this.stroke=void 0}},f([$e(Ji)],mg.prototype,"enabled",2),f([$e(mi)],mg.prototype,"width",2),f([$e(Ra,{optional:!0})],mg.prototype,"stroke",2)}}),Dv,kD=M({"packages/ag-charts-community/src/chart/axis/axisTick.ts"(){"use strict";ga(),xp(),Ki(),Dv=class extends _n{constructor(){super(...arguments),this.enabled=!0,this.width=1,this.size=6}},f([$e(Ji)],Dv.prototype,"enabled",2),f([$e(mi)],Dv.prototype,"width",2),f([$e(mi)],Dv.prototype,"size",2),f([$e(Ra,{optional:!0})],Dv.prototype,"stroke",2)}}),Eu,eT=M({"packages/ag-charts-community/src/chart/axis/axisTitle.ts"(){"use strict";ga(),Ki(),wp(),Eu=class extends _n{constructor(){super(...arguments),this.caption=new vo,this.enabled=!1,this.spacing=vo.SMALL_PADDING,this.fontSize=10,this.fontFamily="sans-serif",this.wrapping="always"}},f([$e(Ji)],Eu.prototype,"enabled",2),f([$e(hi,{optional:!0})],Eu.prototype,"text",2),f([$e(mi,{optional:!0})],Eu.prototype,"spacing",2),f([$e(id,{optional:!0})],Eu.prototype,"fontStyle",2),f([$e(nd,{optional:!0})],Eu.prototype,"fontWeight",2),f([$e(mi)],Eu.prototype,"fontSize",2),f([$e(hi)],Eu.prototype,"fontFamily",2),f([$e(Ra,{optional:!0})],Eu.prototype,"color",2),f([$e(uv)],Eu.prototype,"wrapping",2),f([$e(Kl,{optional:!0})],Eu.prototype,"formatter",2)}});function tc(e){let[t,n]=zs(e.range),a=Math.floor(t),h=Math.ceil(n);return{min:a,max:h,visible:a!==h}}function AD(e,t){return Math.abs(t-e)<iT?t:e>t?t+U0:t-U0}function wb(e){let t=(E,L)=>{let[_=e.min,N=e.max]=zs(L!=null?L:[]);return E<_||E>N};return{tick:{fromFn(E,L,_){let N=E.y1+E.translationY,V=E.opacity;return(_==="added"||t(E.datum.translationY,E.datum.range))&&(N=L.translationY,V=0),{y:0,translationY:N,opacity:V,phase:pl[_]}},toFn(E,L,_){let N=L.translationY,V=1;return _==="removed"&&(V=0),{y:0,translationY:N,opacity:V,finish:{y:N,translationY:0}}},applyFn(E,L){E.setProperties(L),E.visible=!t(E.y)}},line:{fromFn(E,L){var _;return et(pe({},(_=E.previousDatum)!=null?_:L),{phase:pl.updated})},toFn(E,L){return pe({},L)}},label:{fromFn(E,L,_){var he;let N=(he=E.previousDatum)!=null?he:L,V=N.x,q=N.y,Y=N.rotationCenterX,J=Math.round(E.translationY),re=N.rotation,ce=E.opacity;return _==="removed"||t(N.y,N.range)?re=L.rotation:(_==="added"||t(E.datum.y,E.datum.range))&&(J=Math.round(N.translationY),ce=0,re=L.rotation),{x:V,y:q,rotationCenterX:Y,translationY:J,rotation:re,opacity:ce,phase:pl[_]}},toFn(E,L,_){var ce,he;let N=L.x,V=L.y,q=L.rotationCenterX,Y=Math.round(L.translationY),J=0,re=1;return _==="added"?J=L.rotation:_==="removed"?(re=0,J=L.rotation):J=AD((he=(ce=E.previousDatum)==null?void 0:ce.rotation)!=null?he:L.rotation,L.rotation),{x:N,y:V,rotationCenterX:q,translationY:Y,rotation:J,opacity:re,finish:{rotation:L.rotation}}}},group:{fromFn(E,L){let{rotation:_,translationX:N,translationY:V}=E;return{rotation:_,translationX:N,translationY:V,phase:pl.updated}},toFn(E,L){let{rotation:_,translationX:N,translationY:V}=L;return{rotation:_,translationX:N,translationY:V}}}}}function W0(){return(e,t)=>({rotation:t.rotation,rotationCenterX:t.rotationCenterX,rotationCenterY:t.rotationCenterY,translationX:t.translationX,translationY:t.translationY})}function xb(e){let{visible:t,min:n,max:a}=e;return(h,S)=>{let E=S.translationY,L=t&&E>=n&&E<=a;return{y:E,translationY:0,opacity:1,visible:L}}}function DD(){return(e,t)=>({x:t.x,y:t.y,translationY:t.translationY,rotation:t.rotation,rotationCenterX:t.rotationCenterX})}function tT(){return(e,t)=>pe({},t)}var U0,iT,ED=M({"packages/ag-charts-community/src/chart/axis/axisUtil.ts"(){"use strict";fs(),zn(),U0=Math.PI*2,iT=U0/2}}),ID,tM,Zs,kp,K0=M({"packages/ag-charts-community/src/chart/axis/axis.ts"(){"use strict";mp(),fs(),Om(),Gs(),Ws(),sb(),jn(),$o(),rD(),as(),Gd(),Pc(),Zl(),hD(),br(),ts(),Sv(),Rh(),Ac(),Lc(),Rn(),zn(),Ta(),Oc(),xv(),pD(),cd(),wu(),Hn(),Ki(),wp(),aa(),KP(),jd(),Wm(),YI(),H0(),Mp(),fg(),kD(),eT(),ED(),ID=Object.freeze({tickData:{ticks:[],rawTicks:[],labelCount:0,fractionDigits:0},combinedRotation:0,textAlign:"center",textBaseline:"bottom",labelData:[]}),tM=class extends cg(Ks){},Zs=class wZ{constructor(t,n){this.moduleCtx=t,this.scale=n,this.id=dl(this),this.nice=!0,this.reverse=!1,this.keys=[],this.interval=new Km,this.dataDomain={domain:[],clipped:!1},this.layoutConstraints={stacked:!0,align:"start",width:100,unit:"percent"},this.boundSeries=[],this.includeInvisibleDomains=!1,this.interactionEnabled=!0,this.axisGroup=new dg({name:`${this.id}-axis`}),this.tickLineGroup=this.axisGroup.appendChild(new hn({name:`${this.id}-Axis-tick-lines`})),this.lineNode=this.axisGroup.appendChild(new tM({name:`${this.id}-Axis-line`})),this.tickLabelGroup=this.axisGroup.appendChild(new hn({name:`${this.id}-Axis-tick-labels`})),this.labelGroup=new hn({name:`${this.id}-Labels`,zIndex:8}),this.gridGroup=new dg({name:`${this.id}-Axis-grid`,zIndex:1}),this.gridLineGroup=this.gridGroup.appendChild(new hn({name:`${this.id}-gridLines`})),this.crossLineRangeGroup=new dg({name:`${this.id}-CrossLines-Range`,zIndex:3}),this.crossLineLineGroup=new dg({name:`${this.id}-CrossLines-Line`,zIndex:7}),this.crossLineLabelGroup=new dg({name:`${this.id}-CrossLines-Label`,zIndex:12}),this.tickLineGroupSelection=Er.select(this.tickLineGroup,tM,!1),this.tickLabelGroupSelection=Er.select(this.tickLabelGroup,Du,!1),this.gridLineGroupSelection=Er.select(this.gridLineGroup,tM,!1),this._crossLines=[],this.line=new mg,this.tick=new Dv,this.gridLine=new B0,this.label=this.createLabel(),this.tempText=new Du,this.tempCaption=new vo,this.defaultTickMinSpacing=wZ.defaultTickMinSpacing,this.translation={x:0,y:0},this.rotation=0,this.layout={label:{fractionDigits:0,spacing:this.label.spacing,format:this.label.format}},this.destroyFns=[],this.range=[0,1],this.visibleRange=[0,1],this.title=new Eu,this.gridLength=0,this.gridPadding=0,this.seriesAreaPadding=0,this.tickGenerationResult=void 0,this._domainCalculated=!1,this.moduleMap=new Xl,this.range=this.scale.range.slice(),this.crossLines.forEach(h=>this.initCrossLine(h)),this.axisGroup.appendChild(this.title.caption.node),this.animationManager=t.animationManager,this.animationState=new Sp("empty",{empty:{update:{target:"ready",action:()=>this.resetSelectionNodes()},reset:"empty"},ready:{update:h=>this.animateReadyUpdate(h),resize:()=>this.resetSelectionNodes(),reset:"empty"}});let a;this.destroyFns.push(this.title.caption.registerInteraction(this.moduleCtx,"afterend"),t.layoutManager.addListener("layout:complete",h=>{a!=null&&gg(h.chart,a)!=null&&this.animationState.transition("resize"),a=pe({},h.chart)}))}get type(){var t;return(t=this.constructor.type)!=null?t:""}set crossLines(t){let{CrossLineConstructor:n}=this.constructor;this._crossLines.forEach(a=>this.detachCrossLine(a)),this._crossLines=t.map(a=>{let h=new n;return h.set(a),h}),this._crossLines.forEach(a=>{this.attachCrossLine(a),this.initCrossLine(a)})}get crossLines(){return this._crossLines}resetAnimation(t){t==="initial"&&this.animationState.transition("reset")}attachCrossLine(t){this.crossLineRangeGroup.appendChild(t.rangeGroup),this.crossLineLineGroup.appendChild(t.lineGroup),this.crossLineLabelGroup.appendChild(t.labelGroup)}detachCrossLine(t){this.crossLineRangeGroup.removeChild(t.rangeGroup),this.crossLineLineGroup.removeChild(t.lineGroup),this.crossLineLabelGroup.removeChild(t.labelGroup)}destroy(){this.moduleMap.destroy(),this.destroyFns.forEach(t=>t())}updateRange(){var L;let{range:t,visibleRange:n,scale:a}=this,h=(t[1]-t[0])/(n[1]-n[0]),S=h*n[0],E=t[0]-S;(L=a.setVisibleRange)==null||L.call(a,n),a.range=[E,E+h],this.crossLines.forEach(_=>{_.clippedRange=[t[0],t[1]]})}setCrossLinesVisible(t){this.crossLineRangeGroup.visible=t,this.crossLineLineGroup.visible=t,this.crossLineLabelGroup.visible=t}attachAxis(t){t.gridNode.appendChild(this.gridGroup),t.axisNode.appendChild(this.axisGroup),t.labelNode.appendChild(this.labelGroup),t.crossLineRangeNode.appendChild(this.crossLineRangeGroup),t.crossLineLineNode.appendChild(this.crossLineLineGroup),t.crossLineLabelNode.appendChild(this.crossLineLabelGroup)}detachAxis(t){t.gridNode.removeChild(this.gridGroup),t.axisNode.removeChild(this.axisGroup),t.labelNode.removeChild(this.labelGroup),t.crossLineRangeNode.removeChild(this.crossLineRangeGroup),t.crossLineLineNode.removeChild(this.crossLineLineGroup),t.crossLineLabelNode.removeChild(this.crossLineLabelGroup)}attachLabel(t){this.labelGroup.append(t)}inRange(t,n=0){let[a,h]=zs(this.range);return t>=a-n&&t<=h+n}onFormatChange(t,n,a,h){let{scale:S}=this,E=S instanceof Cl;if(h&&(S!=null&&S.tickFormat))try{let L=S.tickFormat({ticks:t,specifier:h});this.labelFormatter=L,this.datumFormatter=L;return}catch(L){Di.warnOnce(`the axis label format string ${h} is invalid. No formatting will be applied`)}this.labelFormatter=E?String:L=>qs(L,n),this.datumFormatter=E?String:L=>qs(L,n+1)}onGridLengthChange(t,n){n^t&&this.onGridVisibilityChange(),this.crossLines.forEach(a=>this.initCrossLine(a))}onGridVisibilityChange(){this.gridLineGroupSelection.clear()}createLabel(){return new Go}update(t=!0){if(!this.tickGenerationResult)return;this.updatePosition();let n=this.getAxisLineCoordinates(),{tickData:a,combinedRotation:h,textBaseline:S,textAlign:E}=this.tickGenerationResult,L=this.tickLabelGroupSelection.nodes().slice();if(this.updateSelections(n,a.ticks,{combinedRotation:h,textAlign:E,textBaseline:S,range:this.scale.range}),!t||this.animationManager.isSkipped())this.resetSelectionNodes();else{let q=Bx(L.map(Y=>Y.datum.tickId),a.ticks.map(Y=>Y.tickId));this.animationState.transition("update",q)}this.tickLineGroup.visible=this.tick.enabled,this.gridLineGroup.visible=this.gridLine.enabled,this.tickLabelGroup.visible=this.label.enabled;let{enabled:_,stroke:N,width:V}=this.line;this.lineNode.setProperties({stroke:N,strokeWidth:_?V:0}),this.updateLabels(),this.updateGridLines(),this.updateTickLines(),this.updateTitle(!a.ticks.length),this.updateCrossLines()}getAxisLineCoordinates(){let[t,n]=zs(this.range);return{x:0,y1:t,y2:n}}getTickLineCoordinates(t){let a=this.label.getSideFlag()*this.getTickSize(),h=Math.min(0,a),S=h+Math.abs(a),E=t.translationY;return{x1:h,x2:S,y:E}}getLabelStyles(t,n){let{label:a}=this,h={color:a.color,spacing:a.spacing,fontFamily:a.fontFamily,fontSize:a.fontSize,fontStyle:a.fontStyle,fontWeight:a.fontWeight},S;a.itemStyler&&(S=this.moduleCtx.callbackCache.call(a.itemStyler,pe(pe({},t),h)));let{color:E,fontFamily:L,fontSize:_,fontStyle:N,fontWeight:V,spacing:q}=ia(S,n,h);return{fill:E,fontFamily:L,fontSize:_,fontStyle:N,fontWeight:V,spacing:q}}getTickLabelProps(t,n){let{label:a}=this,{combinedRotation:h,textBaseline:S,textAlign:E,range:L}=n,_=t.tickLabel,V=a.getSideFlag()*(this.getTickSize()+a.spacing+this.seriesAreaPadding),q=_!==""&&_!=null;return et(pe({},this.getLabelStyles({value:t.tickLabel})),{tickId:t.tickId,rotation:h,rotationCenterX:V,translationY:t.translationY,text:_,textAlign:E,textBaseline:S,visible:q,x:V,y:0,range:L})}getTickSize(){return this.tick.enabled?this.tick.size:0}setTitleProps(t,n){var me;let{title:a}=this;if(!a.enabled){t.enabled=!1,t.node.visible=!1;return}t.color=a.color,t.fontFamily=a.fontFamily,t.fontSize=a.fontSize,t.fontStyle=a.fontStyle,t.fontWeight=a.fontWeight,t.enabled=a.enabled,t.wrapping=a.wrapping;let h=t.node,S=((me=a.spacing)!=null?me:0)+n.spacing,E=this.label.getSideFlag(),L=da(this.rotation),_=E===-1&&L>Math.PI&&L<Math.PI*2?-1:1,N=_*E*Math.PI/2,V=_===1?"bottom":"top",{range:q}=this,Y=Math.floor(_*E*(q[0]+q[1])/2),J=Math.floor(E===-1?_*-S:-S),{callbackCache:re}=this.moduleCtx,{formatter:ce=we=>we.defaultValue}=a,he=re.call(ce,this.getTitleFormatterParams());t.text=he,h.setProperties({visible:!0,text:he,textBaseline:V,x:Y,y:J,rotation:N})}processData(){this._domainCalculated=!1}calculateLayout(t,n){var q,Y;let{rotation:a,parallelFlipRotation:h,regularFlipRotation:S}=this.calculateRotations(),E=this.label.getSideFlag();this.updateScale({domain:t,skipDomainCalculation:this._domainCalculated}),this._domainCalculated=t==null;let L=this.processTicks(n,h,S);this.tickGenerationResult=L.tickGenerationResult;let _=Ui.merge(L.boxes),N=this.getTransformBox(_),V=this.isAnySeriesActive();return this.crossLines.forEach(J=>{var ce,he;var re;J.sideFlag=-E,J.direction=a===-Math.PI/2?"x":"y",J instanceof Xs&&((ce=(re=J.label).parallel)!=null||(re.parallel=this.label.parallel)),J.parallelFlipRotation=h,J.regularFlipRotation=S,(he=J.calculateLayout)==null||he.call(J,V,this.reverse)}),{primaryTickCount:(Y=(q=L.tickGenerationResult)==null?void 0:q.primaryTickCount)!=null?Y:n,bbox:N}}processTicks(t,n,a){var we;let h=this.label.getSideFlag(),S=h*(this.getTickSize()+this.label.spacing+this.seriesAreaPadding),L=this.label.enabled||this.tick.enabled||this.gridLine.enabled?this.generateTicks({primaryTickCount:t,parallelFlipRotation:n,regularFlipRotation:a,labelX:S,sideFlag:h}):ID,{tickData:_,combinedRotation:N,textBaseline:V,textAlign:q}=L;this.updateLayoutState(_.fractionDigits);let Y=[],{x:J,y1:re,y2:ce}=this.getAxisLineCoordinates(),he=new Ui(J+Math.min(h*this.seriesAreaPadding,0),re,this.seriesAreaPadding,ce-re);Y.push(he),this.tick.enabled&&_.ticks.forEach(Me=>{let{x1:be,x2:Le,y:Fe}=this.getTickLineCoordinates(Me),je=new Ui(be,Fe,Le-be,0);Y.push(je)});let{tempText:me}=this;if(this.label.enabled&&_.ticks.forEach(Me=>{let be=this.getTickLabelProps(Me,{combinedRotation:N,textAlign:q,textBaseline:V,range:this.scale.range});if(!be.visible)return;me.setProperties(et(pe({},be),{translationY:Math.round(Me.translationY)}));let Le=me.getBBox();Le&&Y.push(Le)}),(we=this.title)!=null&&we.enabled){let Me=Ui.merge(Y).width;this.setTitleProps(this.tempCaption,{spacing:Me});let be=this.tempCaption.node.getBBox();be&&Y.push(be)}return{tickGenerationResult:L,boxes:Y}}updateLayoutState(t){this.layout.label={fractionDigits:t,spacing:this.label.spacing,format:this.label.format}}getTransformBox(t){let n=new xu,{rotation:a,translationX:h,translationY:S}=this.getAxisTransform();return xu.updateTransformMatrix(n,1,1,a,h,S),n.transformBBox(t)}setDomain(t){this.dataDomain=this.normaliseDataDomain(t),this.reverse&&this.dataDomain.domain.reverse(),this.scale.domain=this.dataDomain.domain}updateScale(t){var h;let n=t==null?void 0:t.domain;((h=t==null?void 0:t.skipDomainCalculation)!=null?h:!1)||(n?this.setDomain(n):this.calculateDomain()),this.updateRange(),this.scale.interval=this.interval.step,go.is(this.scale)&&(this.scale.nice=this.nice,this.scale.update())}calculateRotations(){let t=za(this.rotation),n=da(t),a=da(t-Math.PI/2);return{rotation:t,parallelFlipRotation:n,regularFlipRotation:a}}generateTicks({primaryTickCount:t,parallelFlipRotation:n,regularFlipRotation:a,labelX:h,sideFlag:S}){let{scale:E,interval:{minSpacing:L,maxSpacing:_},label:{parallel:N,rotation:V,fontFamily:q,fontSize:Y,fontStyle:J,fontWeight:re}}=this,ce=t!==void 0,{defaultRotation:he,configuredRotation:me,parallelFlipFlag:we,regularFlipFlag:Me}=Hm({rotation:V,parallel:N,regularFlipRotation:a,parallelFlipRotation:n}),be=me+he,Le=new xu,{maxTickCount:Fe}=this.estimateTickCount(L,_),Xe=!(go.is(E)||Rc.is(E))||isNaN(Fe)?10:Fe,nt=vD(N,me,0,S,Me),lt=WI(N,me,S,we),ot=Bo.toFontString({fontFamily:q,fontSize:Y,fontStyle:J,fontWeight:re}),vt=ug.getMeasurer({font:ot}),gt={fontFamily:q,fontSize:Y,fontStyle:J,fontWeight:re,textBaseline:lt,textAlign:nt},bt={ticks:[],rawTicks:[],fractionDigits:0,labelCount:0},At=0,Rt=0,It=!0,Dt=[],jt=!1;for(;It&&At<=Xe&&!jt;){Rt=0,nt=vD(N,me,0,S,Me);let zt=this.getTickStrategies({secondaryAxis:ce,index:At});for(let Ut of zt){({tickData:bt,index:At,autoRotation:Rt,terminate:jt}=Ut({index:At,tickData:bt,textProps:gt,labelOverlap:It,terminate:jt,primaryTickCount:t}));let Vt=me!==0||Rt!==0,Wt=be+Rt,ci=HI(this.label.minSpacing,Vt);xu.updateTransformMatrix(Le,1,1,Wt,0,0),nt=vD(N,me,Rt,S,Me),Dt=Kx(bt.ticks,h,Le,vt),It=this.label.avoidCollisions?zx(Dt,ci):!1}}let Nt=he+me+Rt;return!ce&&bt.rawTicks.length>0&&(t=bt.rawTicks.length),{tickData:bt,primaryTickCount:t,combinedRotation:Nt,textBaseline:lt,textAlign:nt,labelData:Dt}}getTickStrategies({index:t,secondaryAxis:n}){let{scale:a,label:h}=this,{minSpacing:S}=this.interval,E=go.is(a)||Rc.is(a),L=h.enabled&&h.avoidCollisions,_=!E&&t!==0&&L,N=h.autoRotate===!0&&h.rotation===void 0,V=[],q;this.interval.values?q=3:n?q=1:_?q=2:q=0;let Y=({index:J,tickData:re,primaryTickCount:ce,terminate:he})=>this.createTickData(q,J,re,he,ce);if(V.push(Y),!E&&!isNaN(S)){let J=({index:re,tickData:ce,primaryTickCount:he,terminate:me})=>this.createTickData(2,re,ce,me,he);V.push(J)}if(L&&N){let J=({index:re,tickData:ce,labelOverlap:he,terminate:me})=>{var we;return{index:re,tickData:ce,autoRotation:he?da(za((we=this.label.autoRotateAngle)!=null?we:0)):0,terminate:me}};V.push(J)}return V}createTickData(t,n,a,h,S){let{scale:E}=this,{step:L,values:_,minSpacing:N,maxSpacing:V}=this.interval,{maxTickCount:q,minTickCount:Y,tickCount:J}=this.estimateTickCount(N,V),re=go.is(E)||Rc.is(E),ce=!re||isNaN(q)?10:q,he=we=>re?Math.max(J-we,Y):q,me=L==null&&_==null&&he(n)>Y&&(re||t===2);for(;n<=ce;){let we=a.rawTicks;if(a=this.getTicks({tickGenerationType:t,previousTicks:we,minTickCount:Y,maxTickCount:q,primaryTickCount:S,tickCount:he(n)}),n++,!me||!bh(a.rawTicks,we))break}return h||(h=L!=null||_!=null),{tickData:a,index:n,autoRotation:0,terminate:h}}getTicks({tickGenerationType:t,previousTicks:n,tickCount:a,minTickCount:h,maxTickCount:S,primaryTickCount:E}){var Me;let{range:L,scale:_,visibleRange:N}=this,V=Ux(),q;switch(t){case 3:if(q=this.interval.values,go.is(_)){let[be,Le]=zs(_.getDomain().map(Number));q=q.filter(Fe=>Fe>=be&&Fe<=Le).sort((Fe,je)=>Fe-je)}break;case 1:go.is(_)?q=this.updateSecondaryAxisTicks(E):q=this.createTicks(a,h,S);break;case 2:q=this.filterTicks(n,a);break;default:q=this.createTicks(a,h,S);break}let Y=q.reduce((be,Le)=>Math.max(be,typeof Le=="number"?nx(Le):0),0),J=((Me=_.bandwidth)!=null?Me:0)/2,re=[],ce=0,he=Math.max(0,Math.floor(N[0]*q.length)),me=Math.min(q.length,Math.ceil(N[1]*q.length)),we=q.slice(he,me);this.onFormatChange(we,Y,q,this.label.format);for(let be=0;be<we.length;be++){let Le=we[be],Fe=_.convert(Le)+J;if(L.length>0&&!this.inRange(Fe,.001))continue;let je=this.formatTick(Le,he+be,Y);re.push({tick:Le,tickId:V(je),tickLabel:je,translationY:Math.floor(Fe)}),!(je===""||je==null)&&ce++}return{rawTicks:q,fractionDigits:Y,ticks:re,labelCount:ce}}filterTicks(t,n){let{minSpacing:a,maxSpacing:h}=this.interval,E=!isNaN(a)||!isNaN(h)?Math.ceil(t.length/n):2;return t.filter((L,_)=>_%E===0)}createTicks(t,n,a){var S,E;let{scale:h}=this;return t&&(go.is(h)||Rc.is(h))&&(h.tickCount=t,h.minTickCount=n!=null?n:0,h.maxTickCount=a!=null?a:1/0),(E=(S=h.ticks)==null?void 0:S.call(h))!=null?E:[]}estimateTickCount(t,n){return y0(this.calculateRangeWithBleed(),t,n,go.defaultTickCount,this.defaultTickMinSpacing)}updateCrossLines(){let t=this.isAnySeriesActive();this.crossLines.forEach(n=>{n.update(t)})}updateTickLines(){let{tick:t,label:n}=this,a=n.getSideFlag();this.tickLineGroupSelection.each((h,S)=>{var E,L,_;h.strokeWidth=(E=S.tickWidth)!=null?E:t.width,h.stroke=(L=S.tickStroke)!=null?L:t.stroke,h.x1=a*((_=S.tickSize)!=null?_:this.getTickSize()),h.x2=0})}calculateAvailableRange(){return Cm(this.range)}calculateRangeWithBleed(){return Fa(this.calculateAvailableRange()/Cm(this.visibleRange),2)}calculateDomain(){let{includeInvisibleDomains:t,boundSeries:n,direction:a}=this,h=t?n:n.filter(E=>E.isEnabled()),S=h.length===1?h[0].getDomain(a):h.flatMap(E=>E.getDomain(a));this.setDomain(S)}getAxisTransform(){return{rotation:za(this.rotation),translationX:Math.floor(this.translation.x),translationY:Math.floor(this.translation.y)}}updatePosition(){let{crossLineRangeGroup:t,crossLineLineGroup:n,crossLineLabelGroup:a,axisGroup:h,gridGroup:S,translation:E}=this,{rotation:L}=this.calculateRotations(),_=Math.floor(E.x),N=Math.floor(E.y);t.setProperties({rotation:L,translationX:_,translationY:N}),n.setProperties({rotation:L,translationX:_,translationY:N}),a.setProperties({rotation:L,translationX:_,translationY:N}),S.setProperties({rotation:L,translationX:_,translationY:N}),h.datum=this.getAxisTransform()}updateSecondaryAxisTicks(t){throw new Error("AG Charts - unexpected call to updateSecondaryAxisTicks() - check axes configuration.")}updateSelections(t,n,a){let h=E=>E.tickId,S=n.map(E=>this.getTickLabelProps(E,a));this.lineNode.datum=t,this.gridLineGroupSelection.update(this.gridLength?n:[],void 0,h),this.tickLineGroupSelection.update(n,void 0,h),this.tickLabelGroupSelection.update(S,void 0,h)}updateGridLines(){let t=this.label.getSideFlag(),{gridLine:{style:n,width:a},gridPadding:h,gridLength:S}=this;S===0||n.length===0||this.gridLineGroupSelection.each((E,L,_)=>{let{stroke:N,lineDash:V}=n[_%n.length];E.setProperties({x1:h,x2:-t*S+h,stroke:N,strokeWidth:a,lineDash:V})})}updateLabels(){this.label.enabled&&this.tickLabelGroupSelection.each((t,n)=>{t.setProperties(n,["fill","fontFamily","fontSize","fontStyle","fontWeight","text","textAlign","textBaseline"])})}updateTitle(t,n){let{title:a,lineNode:h,tickLineGroup:S,tickLabelGroup:E}=this;a.enabled&&!t&&n==null&&(n=hn.computeChildrenBBox([S,E,h]).width+(this.tickLabelGroup.visible?0:this.seriesAreaPadding)),n!=null||(n=0),this.setTitleProps(a.caption,{spacing:n})}formatTick(t,n,a){let{labelFormatter:h,label:{formatter:S},moduleCtx:{callbackCache:E}}=this,L;return S?L=E.call(S,{value:t,index:n,fractionDigits:a}):h&&(L=E.call(h,t)),String(L!=null?L:t)}formatDatum(t){let{label:{formatter:n},moduleCtx:{callbackCache:a},datumFormatter:h=this.labelFormatter}=this,S;return n?S=a.call(n,{value:t,index:NaN}):h?S=a.call(h,t):ho(t)&&(S=t.filter(Boolean).join(" - ")),String(S!=null?S:t)}getScaleValueFormatter(t){if(t&&this.scale.tickFormat)try{return this.scale.tickFormat({specifier:t})}catch(n){Di.warnOnce(`the format string ${t} is invalid, ignoring.`)}return n=>this.formatDatum(n)}getBBox(){return this.axisGroup.getBBox()}initCrossLine(t){t.scale=this.scale,t.gridLength=this.gridLength}isAnySeriesActive(){return this.boundSeries.some(t=>this.includeInvisibleDomains||t.isEnabled())}clipTickLines(t,n,a,h){this.tickLineGroup.setClipRect(new Ui(t,n,a,h))}clipGrid(t,n,a,h){this.gridGroup.setClipRect(new Ui(t,n,a,h))}getTitleFormatterParams(){var a;let{direction:t}=this,n=[];for(let h of this.boundSeries){let S=h.getKeys(t),E=h.getNames(t);for(let L=0;L<S.length;L++)n.push({key:S[L],name:E[L]})}return{direction:t,boundSeries:n,defaultValue:(a=this.title)==null?void 0:a.text}}normaliseDataDomain(t){return{domain:[...t],clipped:!1}}getLayoutState(){return pe({id:this.id,rect:this.getBBox(),gridPadding:this.gridPadding,seriesAreaPadding:this.seriesAreaPadding,tickSize:this.getTickSize(),direction:this.direction,domain:this.dataDomain.domain,scale:this.scale},this.layout)}getModuleMap(){return this.moduleMap}createModuleContext(){var t;return(t=this.axisContext)!=null||(this.axisContext=this.createAxisContext()),et(pe({},this.moduleCtx),{parent:this.axisContext})}createAxisContext(){let{scale:t}=this;return{axisId:this.id,scale:this.scale,direction:this.direction,continuous:go.is(t)||Rc.is(t),getCanvasBounds:()=>vr.toCanvas(this.axisGroup),seriesKeyProperties:()=>this.boundSeries.reduce((n,a)=>(a.getKeyProperties(this.direction).forEach(S=>{n.indexOf(S)<0&&n.push(S)}),n),[]),scaleValueFormatter:n=>this.getScaleValueFormatter(n),scaleInvert:Rc.is(t)?n=>{var a;return(a=t.invertNearest)==null?void 0:a.call(t,n)}:n=>{var a;return(a=t.invert)==null?void 0:a.call(t,n)},scaleInvertNearest:n=>{var a;return(a=t.invertNearest)==null?void 0:a.call(t,n)},attachLabel:n=>this.attachLabel(n),inRange:(n,a)=>this.inRange(n,a)}}animateReadyUpdate(t){let{animationManager:n}=this.moduleCtx,a=tc(this),h=wb(a);Do(this.id,"axis-group",n,[this.axisGroup],h.group),Do(this.id,"line",n,[this.lineNode],h.line),Do(this.id,"line-paths",n,[this.gridLineGroupSelection,this.tickLineGroupSelection],h.tick,(S,E)=>E.tickId,t),Do(this.id,"tick-labels",n,[this.tickLabelGroupSelection],h.label,(S,E)=>E.tickId,t)}resetSelectionNodes(){let t=tc(this);Eo([this.axisGroup],W0()),Eo([this.gridLineGroupSelection,this.tickLineGroupSelection],xb(t)),Eo([this.tickLabelGroupSelection],DD()),Eo([this.lineNode],tT())}isReversed(){return this.reverse}},Zs.defaultTickMinSpacing=50,Zs.CrossLineConstructor=Xs,f([$e(Ji)],Zs.prototype,"nice",2),f([$e(Ji)],Zs.prototype,"reverse",2),f([$e(YA)],Zs.prototype,"keys",2),f([$e(Yi)],Zs.prototype,"interval",2),f([$e(Yi)],Zs.prototype,"title",2),f([wv((e,t,n)=>e.onGridLengthChange(t,n))],Zs.prototype,"gridLength",2),kp=Zs}}),vg,aL=M({"packages/ag-charts-community/src/chart/axis/cartesianAxisLabel.ts"(){"use strict";Ki(),Mp(),vg=class extends Go{constructor(){super(...arguments),this.autoRotateAngle=335}},f([$e(Ji,{optional:!0})],vg.prototype,"autoRotate",2),f([$e(pa)],vg.prototype,"autoRotateAngle",2)}}),iM,Ap,Ev=M({"packages/ag-charts-community/src/chart/axis/cartesianAxis.ts"(){"use strict";Ki(),aa(),K0(),aL(),iM=class xZ extends kp{static is(t){return t instanceof xZ}get direction(){return this.position==="top"||this.position==="bottom"?"x":"y"}updateDirection(){switch(this.position){case"top":this.rotation=-90,this.label.mirrored=!0,this.label.parallel=!0;break;case"right":this.rotation=0,this.label.mirrored=!0,this.label.parallel=!1;break;case"bottom":this.rotation=-90,this.label.mirrored=!1,this.label.parallel=!0;break;case"left":this.rotation=0,this.label.mirrored=!1,this.label.parallel=!1;break}this.axisContext&&(this.axisContext.position=this.position,this.axisContext.direction=this.direction)}update(t){this.updateDirection(),super.update(t)}calculateLayout(t,n){return this.updateDirection(),super.calculateLayout(t,n)}createAxisContext(){return et(pe({},super.createAxisContext()),{position:this.position})}createLabel(){return new vg}},f([$e(mi,{optional:!0})],iM.prototype,"thickness",2),f([$e(Jy)],iM.prototype,"position",2),Ap=iM}}),qm,Iv,Ym=M({"packages/ag-charts-community/src/chart/axis/categoryAxis.ts"(){"use strict";bu(),Hn(),Ki(),Ev(),qm=class MZ extends Ap{constructor(t,n=new dr){super(t,n),this.groupPaddingInner=.1,this.categoryAnimatable=!0,this.includeInvisibleDomains=!0}static is(t){return t instanceof MZ}domainOrderedToNormalizedDomain(t,n){let a=-1;for(let h of t){let S=n.indexOf(h);if(S===-1)a=1/0;else{if(S<=a)return!1;a=S}}return!0}calculateDomain(){let t,n=new Set,a=!0;for(let h of this.boundSeries){if(!this.includeInvisibleDomains&&!h.isEnabled())continue;let S=h.getDomain(this.direction);n.has(S)||(n.add(S),t==null?t=this.normaliseDataDomain(S).domain:(a&&(a=this.domainOrderedToNormalizedDomain(S,t)),t=this.normaliseDataDomain([...t,...S]).domain))}t!=null||(t=[]),this.setDomain(t),this.categoryAnimatable=a}update(){super.update(),this.categoryAnimatable||this.moduleCtx.animationManager.skip()}normaliseDataDomain(t){let n=[],a=new Set;for(let h of t){let S=h instanceof Date?h.getTime():h;a.has(S)||(a.add(S),n.push(h))}return{domain:n,clipped:!1}}updateScale(t){let{paddingInner:n,paddingOuter:a}=this;if(!Na(n)||!Na(a)){let h=this.reduceBandScalePadding();n!=null||(n=h.inner),a!=null||(a=h.outer)}this.scale.paddingInner=n!=null?n:0,this.scale.paddingOuter=a!=null?a:0,super.updateScale(t)}reduceBandScalePadding(){return this.boundSeries.reduce((t,n)=>{var h;let a=(h=n.getBandScalePadding)==null?void 0:h.call(n);return a&&(t.inner>a.inner&&(t.inner=a.inner),t.outer<a.outer&&(t.outer=a.outer)),t},{inner:1/0,outer:-1/0})}},qm.className="CategoryAxis",qm.type="category",f([$e(Wn)],qm.prototype,"groupPaddingInner",2),f([$e(Wn,{optional:!0})],qm.prototype,"paddingInner",2),f([$e(Wn,{optional:!0})],qm.prototype,"paddingOuter",2),Iv=qm}}),q0,TD,Ph,Lh=M({"packages/ag-charts-community/src/module/module.ts"(){"use strict";q0=class{constructor(){this.destroyFns=[]}destroy(){for(let e of this.destroyFns)e()}},TD=class{constructor(){this.modules=[],this.dependencies=new Map,this.modulesByOptionKey=new Map}register(...e){for(let t of e){this.registerDependencies(t);let n=this.modules.find(a=>t.type===a.type&&("optionsKey"in t&&"optionsKey"in a?t.optionsKey===a.optionsKey:!0)&&t.identifier===a.identifier);if(n){if(t.packageType==="enterprise"&&n.packageType==="community"){let a=this.modules.indexOf(n);this.modules.splice(a,1,t),"optionsKey"in t&&this.modulesByOptionKey.set(t.optionsKey,t)}}else this.modules.push(t),"optionsKey"in t&&this.modulesByOptionKey.set(t.optionsKey,t)}}hasEnterpriseModules(){return this.modules.some(e=>e.packageType==="enterprise")}*byType(...e){let t=new Set,n=this.modules.filter(S=>e.includes(S.type)),a=S=>{var L;let E=this.dependencies.get(S);return(L=E==null?void 0:E.flatMap(a).concat(E))!=null?L:[]},h=[];for(let S of n){let E="optionsKey"in S?S.optionsKey:S.contextKey;if(!t.has(E)){for(let L of a(E)){if(t.has(L))continue;let _=this.modulesByOptionKey.get(L);if(!_){h.push(L);continue}e.includes(_.type)&&(yield _,t.add(L))}yield S,t.add(E)}}if(h.length>0)throw new Error(`Could not resolve module dependencies: ${h}`)}registerDependencies(e){if(e.dependencies==null||e.dependencies.length===0)return;let t="optionsKey"in e?e.optionsKey:e.contextKey;this.dependencies.set(t,e.dependencies)}},Ph=new TD}});function RD(){return new Promise(e=>{setTimeout(e,0)})}var nM,oL=M({"packages/ag-charts-community/src/util/async.ts"(){"use strict";nM=class{constructor(){this.queue=[]}await(e=50){return new Promise(t=>{let n=()=>{clearTimeout(h),t(!0)},h=setTimeout(()=>{let S=this.queue.indexOf(n);S<0||(this.queue.splice(S,1),t(!1))},e);this.queue.push(n)})}notify(){this.queue.splice(0).forEach(e=>e())}}}}),Qo,nT=M({"packages/ag-charts-community/src/util/mutex.ts"(){"use strict";Rn(),Qo=class{constructor(){this.available=!0,this.acquireQueue=[]}acquire(e){return new Promise(t=>{this.acquireQueue.push([e,t]),this.available&&this.dispatchNext().catch(n=>Di.errorOnce(n))})}async acquireImmediately(e){return this.available?(await this.acquire(e),!0):!1}async waitForClearAcquireQueue(){return this.acquire(()=>Promise.resolve(void 0))}async dispatchNext(){var n,a;this.available=!1;let[e,t]=(n=this.acquireQueue.shift())!=null?n:[];for(;e;){try{await e(),t==null||t()}catch(h){Di.error("mutex callback error",h),t==null||t()}[e,t]=(a=this.acquireQueue.shift())!=null?a:[]}this.available=!0}}}}),Y0,aT=M({"packages/ag-charts-community/src/util/observable.ts"(){"use strict";Y0=class{constructor(){this.eventListeners=new Map}addEventListener(e,t){if(typeof t!="function")throw new Error("AG Charts - listener must be a Function");let n=this.eventListeners.get(e);n?n.add(t):this.eventListeners.set(e,new Set([t]))}removeEventListener(e,t){var n;(n=this.eventListeners.get(e))==null||n.delete(t),this.eventListeners.size===0&&this.eventListeners.delete(e)}hasEventListener(e){return this.eventListeners.has(e)}clearEventListeners(){this.eventListeners.clear()}fireEvent(e){var t;(t=this.eventListeners.get(e.type))==null||t.forEach(n=>n(e))}}}}),Wr,X0=M({"packages/ag-charts-community/src/util/padding.ts"(){"use strict";ga(),Ki(),Wr=class extends _n{constructor(e=0,t=e,n=e,a=t){super(),this.top=e,this.right=t,this.bottom=n,this.left=a}},f([$e(mi)],Wr.prototype,"top",2),f([$e(mi)],Wr.prototype,"right",2),f([$e(mi)],Wr.prototype,"bottom",2),f([$e(mi)],Wr.prototype,"left",2)}});function rL(e){return $0((t,n)=>Da().requestAnimationFrame(t),e)}function Z0(e){return $0((t,n=0)=>{n===0?queueMicrotask(t):setTimeout(t,n)},e)}function $0(e,t){let n=0,a=!1,h,S,E=()=>a,L=()=>{a=!1,S==null||S(),S=void 0,h=void 0,n>0&&e(_)},_=()=>{let N=n;n=0,a=!0;let V=t({count:N});if(!V){L();return}V.then(L,L)};return{schedule(N){n===0&&!E()&&e(_,N),n++},async await(){if(E())for(h==null&&(h=new Promise(N=>{S=N}));E();)await h}}}var Tv=M({"packages/ag-charts-community/src/util/render.ts"(){"use strict";oa()}}),aM,oM=M({"packages/ag-charts-community/src/util/eventEmitter.ts"(){"use strict";Rn(),aM=class{constructor(){this.events=new Map}on(e,t){var n;return this.events.has(e)||this.events.set(e,new Set),(n=this.events.get(e))==null||n.add(t),()=>this.off(e,t)}off(e,t){let n=this.events.get(e);n&&(n.delete(t),n.size===0&&this.events.delete(e))}emit(e,t){var n;for(let a of(n=this.events.get(e))!=null?n:[]){let h=a(t);h&&h.catch(S=>Di.error(S))}}clear(e){e?this.events.delete(e):this.events.clear()}}}}),rM,Oh,To,Fc=M({"packages/ag-charts-community/src/chart/layout/layoutManager.ts"(){"use strict";jn(),oM(),Rn(),rM=(e=>(e[e.Caption=0]="Caption",e[e.Legend=1]="Legend",e[e.ToolbarLeft=2]="ToolbarLeft",e[e.ToolbarBottom=3]="ToolbarBottom",e[e.Navigator=4]="Navigator",e[e.Overlay=5]="Overlay",e))(rM||{}),Oh=class{constructor(){this.events=new aM,this.elements=new Map}addListener(e,t){return this.events.on(e,t)}registerElement(e,t){return this.elements.has(e)?this.elements.get(e).add(t):this.elements.set(e,new Set([t])),()=>{var n;return(n=this.elements.get(e))==null?void 0:n.delete(t)}}createContext(e,t){var a;let n=new To(e,t);for(let h of Object.values(rM))typeof h=="number"&&((a=this.elements.get(h))==null||a.forEach(S=>{var E;(E=S(n))==null||E.catch(L=>Di.error(L))}));return n}emitLayoutComplete(e,t){var S,E;let n="layout:complete",{width:a,height:h}=e;this.events.emit(n,{type:n,axes:(S=t.axes)!=null?S:[],chart:{width:a,height:h},clipSeries:(E=t.clipSeries)!=null?E:!1,series:t.series})}},To=class{constructor(e,t){this.width=e,this.height=t,this.layoutBox=new Ui(0,0,e,t)}}}}),Rv,sM=M({"packages/ag-charts-community/src/chart/chartCaptions.ts"(){"use strict";cd(),Ki(),wp(),Fc(),Rv=class{constructor(){this.title=new vo,this.subtitle=new vo,this.footnote=new vo}positionCaptions(e){let{title:t,subtitle:n,footnote:a}=this,h=e.layoutBox.height/10;if(t.enabled){let{spacing:S=n.enabled?vo.SMALL_PADDING:vo.LARGE_PADDING}=t;this.positionCaption("top",t,e.layoutBox,h),this.shrinkLayoutByCaption("top",t,e.layoutBox,S)}n.enabled&&(this.positionCaption("top",n,e.layoutBox,h),this.shrinkLayoutByCaption("top",n,e.layoutBox,n.spacing)),a.enabled&&(this.positionCaption("bottom",a,e.layoutBox,h),this.shrinkLayoutByCaption("bottom",a,e.layoutBox,a.spacing))}positionAbsoluteCaptions(e){let{title:t,subtitle:n,footnote:a}=this,{rect:h}=e.series;for(let S of[t,n,a])if(S.layoutStyle==="overlay"){if(S.textAlign==="left")S.node.x=h.x+S.padding;else if(S.textAlign==="right"){let E=S.node.getBBox();S.node.x=h.x+h.width-E.width-S.padding}}}computeX(e,t){return e==="left"?t.x:e==="right"?t.x+t.width:t.x+t.width/2}positionCaption(e,t,n,a){let h=Math.max(Bo.getLineHeight(t.fontSize),a);t.node.x=this.computeX(t.textAlign,n)+t.padding,t.node.y=n.y+(e==="top"?0:n.height)+t.padding,t.node.textBaseline=e,t.computeTextWrap(n.width,h)}shrinkLayoutByCaption(e,t,n,a=0){if(t.layoutStyle==="block"){let h=t.node.getBBox();n.shrink(Math.ceil(e==="top"?h.y-n.y+h.height+a:n.y+n.height-h.y+a),e)}}},f([$e(Yi)],Rv.prototype,"title",2),f([$e(Yi)],Rv.prototype,"subtitle",2),f([$e(Yi)],Rv.prototype,"footnote",2)}}),lM,Mb,Iu=M({"packages/ag-charts-community/src/api/preset/chartTypeOriginator.ts"(){"use strict";ts(),Rn(),Hn(),lM=["candlestick","hollow-candlestick","ohlc","line","step-line","hlc","high-low"],Mb=class{constructor(e){this.chartService=e,this.mementoOriginatorKey="chartType"}createMemento(){var t,n;let e=(n=(t=this.chartService.publicApi)==null?void 0:t.getOptions())==null?void 0:n.chartType;return e==null&&(e="candlestick"),e}guardMemento(e){return e==null||ui(e)&&zA(lM,e)}restoreMemento(e,t,n){var h;if(n==null)return;let a={chartType:n};(h=this.chartService.publicApi)==null||h.updateDelta(a).catch(S=>Di.error("error restoring state",S))}}}}),_h,yg=M({"packages/ag-charts-community/src/util/listeners.ts"(){"use strict";Rn(),_h=class{constructor(){this.registeredListeners=new Map}addListener(e,t){let n={symbol:Symbol(e),handler:t};return this.registeredListeners.has(e)?this.registeredListeners.get(e).push(n):this.registeredListeners.set(e,[n]),()=>this.removeListener(n.symbol)}removeListener(e){for(let[t,n]of this.registeredListeners.entries()){let a=n.findIndex(h=>h.symbol===e);if(a>=0){n.splice(a,1),n.length===0&&this.registeredListeners.delete(t);break}}}dispatch(e,...t){for(let n of this.getListenersByType(e))try{n.handler(...t)}catch(a){Di.errorOnce(a)}}dispatchWrapHandlers(e,t,...n){for(let a of this.getListenersByType(e))try{t(a.handler,...n)}catch(h){Di.errorOnce(h)}}getListenersByType(e){var t;return(t=this.registeredListeners.get(e))!=null?t:[]}destroy(){this.registeredListeners.clear()}}}}),ss,ur=M({"packages/ag-charts-community/src/util/baseManager.ts"(){"use strict";yg(),ss=class{constructor(){this.listeners=new _h,this.destroyFns=[]}addListener(e,t){return this.listeners.addListener(e,t)}destroy(){this.listeners.destroy(),this.destroyFns.forEach(e=>e())}}}}),wl,cM,$s=M({"packages/ag-charts-community/src/chart/interaction/interactionStateListener.ts"(){"use strict";ur(),wl=(e=>(e[e.Default=32]="Default",e[e.ZoomDrag=16]="ZoomDrag",e[e.Annotations=8]="Annotations",e[e.ContextMenu=4]="ContextMenu",e[e.Animation=2]="Animation",e[e.AnnotationsSelected=1]="AnnotationsSelected",e[e.All=63]="All",e))(wl||{}),cM=class extends ss{addListener(e,t,n=32){return super.addListener(e,a=>{this.getState()&n&&t(a)})}}}}),dd,oT=M({"packages/ag-charts-community/src/util/destroy.ts"(){"use strict";dd=class{constructor(){this.destroyFns=[]}destroy(){this.destroyFns.forEach(e=>e()),this.destroyFns.length=0}setFns(e){this.destroy(),this.destroyFns=e}push(...e){this.destroyFns.push(...e)}}}}),Xm,kb=M({"packages/ag-charts-community/src/version.ts"(){"use strict";Xm="11.0.0"}}),Pv,Q0,sL=M({"packages/ag-charts-community/src/api/state/historyManager.ts"(){"use strict";$s(),Vr(),oT(),kb(),Pv=Symbol("previous-memento-not-found"),Q0=class{constructor(e){this.history=[],this.historyIndex=-1,this.originators=new Map,this.clearState=new Map,this.maxHistoryLength=100,this.debug=Pa.create(!0,"history"),this.destroyFns=new dd,this.destroyFns.setFns([e.addListener("undo",this.undo.bind(this),63),e.addListener("redo",this.redo.bind(this),63)])}destroy(){this.destroyFns.destroy()}addMementoOriginator(e){this.originators.set(e.mementoOriginatorKey,e),this.clearState.set(e.mementoOriginatorKey,e.createMemento()),this.debugEvent("History add originator:",e.mementoOriginatorKey)}clear(){this.debug("History clear:",Object.keys(this.originators)),this.history=[],this.historyIndex=-1;for(let[e,t]of this.originators.entries())this.clearState.set(e,t.createMemento())}record(e,...t){this.historyIndex<this.history.length-1&&(this.history=this.history.slice(0,this.historyIndex+1)),this.history.length>this.maxHistoryLength&&(this.history=this.history.slice(-this.maxHistoryLength));let n=new Map;for(let a of t){if(!this.originators.has(a.mementoOriginatorKey))throw new Error(`Originator [${a.mementoOriginatorKey}] has not been added to the HistoryManager.`);n.set(a.mementoOriginatorKey,a.createMemento())}this.history.push({label:e,mementos:n}),this.historyIndex=this.history.length-1,this.debugEvent(`History record: [${e}]`)}undo(){let e=this.history[this.historyIndex];if(e){for(let t of e.mementos.keys()){let n=this.findPreviousMemento(t);if(n===Pv)throw new Error(`Could not find previous memento for [${t}].`);this.restoreMemento(t,n)}this.historyIndex-=1,this.debugEvent(`History undo: [${e.label}]`)}}redo(){let e=this.history[this.historyIndex+1];if(e){for(let[t,n]of e.mementos.entries())this.restoreMemento(t,n);this.historyIndex+=1,this.debugEvent(`History redo: [${e.label}]`)}}findPreviousMemento(e){for(let t=this.historyIndex-1;t>=0;t--)if(this.history[t].mementos.has(e))return this.history[t].mementos.get(e);return this.clearState.has(e)?this.clearState.get(e):Pv}restoreMemento(e,t){var n;(n=this.originators.get(e))==null||n.restoreMemento(Xm,Xm,t)}debugEvent(...e){this.debug(...e,this.history.map((t,n)=>n===this.historyIndex?`** ${t.label} **`:t.label))}}}}),Tu,J0=M({"packages/ag-charts-community/src/api/state/memento.ts"(){"use strict";Rn(),Hn(),Tu=class lV{constructor(t){this.version=t.split("-")[0]}save(...t){let n={version:this.version};for(let a of Object.values(t))n[a.mementoOriginatorKey]=this.encode(a,a.createMemento());return n}restore(t,...n){if(typeof t!="object"){Di.warnOnce(`Could not restore data of type [${typeof t}], expecting an object, ignoring.`);return}if(t==null){Di.warnOnce("Could not restore data of type [null], expecting an object, ignoring.");return}if(!("version"in t)||typeof t.version!="string"){Di.warnOnce("Could not restore data, missing [version] string in object, ignoring.");return}for(let a of n){let h=this.decode(a,t[a.mementoOriginatorKey]);if(!a.guardMemento(h)){Di.warnOnce(`Could not restore [${a.mementoOriginatorKey}] data, value was invalid, ignoring.`,h);return}a.restoreMemento(this.version,t.version,h)}}encode(t,n){try{return JSON.parse(JSON.stringify(n,lV.encodeTypes))}catch(a){throw new Error(`Failed to encode [${t.mementoOriginatorKey}] value [${a}].`,{cause:a})}}decode(t,n){if(n==null)return n;try{return JSON.parse(JSON.stringify(n),lV.decodeTypes)}catch(a){throw new Error(`Failed to decode [${t.mementoOriginatorKey}] value [${a}].`,{cause:a})}}static encodeTypes(t,n){return Je(this[t])?{__type:"date",value:this[t].toISOString()}:n}static decodeTypes(t,n){return Br(this[t])&&"__type"in this[t]&&this[t].__type==="date"?new Date(this[t].value):n}}}}),Lv,lL=M({"packages/ag-charts-community/src/api/state/stateManager.ts"(){"use strict";Ta(),kb(),J0(),Lv=class{constructor(){this.caretaker=new Tu(Xm),this.state=new Map}setState(e,t){Ko(this.state.get(e.mementoOriginatorKey),t)||this.setStateAndRestore(e,t)}setStateAndRestore(e,t){this.state.set(e.mementoOriginatorKey,t),this.restoreState(e)}restoreState(e){let{caretaker:t,state:n}=this;if(!n.has(e.mementoOriginatorKey))return;let a=n.get(e.mementoOriginatorKey);t.restore({version:t.version,[e.mementoOriginatorKey]:a},e)}}}}),PD,LD=M({"packages/ag-charts-community/src/styles.css"(){PD=`.ag-charts-wrapper,.ag-charts-wrapper:after,.ag-charts-wrapper:before,.ag-charts-wrapper *,.ag-charts-wrapper *:after,.ag-charts-wrapper *:before{box-sizing:border-box}.ag-charts-wrapper{position:relative;user-select:none}.ag-charts-tab-guard{width:0%;height:0%;position:absolute;pointer-events:none}.ag-charts-canvas-center{width:100%;height:100%;position:absolute;touch-action:auto;pointer-events:auto;display:flex;align-items:var(--ag-charts-align);justify-content:var(--ag-charts-justify)}.ag-charts-canvas-container,.ag-charts-canvas{position:relative;user-select:none}.ag-charts-canvas-container>*,.ag-charts-canvas>*{display:block;pointer-events:none}.ag-charts-series-area{outline:none;pointer-events:none;position:absolute}.ag-charts-swapchain{outline:none;opacity:0;pointer-events:auto;position:absolute;width:100%;height:100%}.ag-charts-swapchain:focus-visible{opacity:1}.ag-charts-canvas-proxy,.ag-charts-canvas-overlay{inset:0;pointer-events:none;position:absolute;user-select:none}.ag-charts-canvas-overlay>*{position:absolute;pointer-events:auto}.ag-charts-theme-default,.ag-charts-theme-default-dark{--ag-charts-active-color: var(--ag-active-color, #2196f3);--ag-charts-background-color: var(--ag-background-color, #fff);--ag-charts-foreground-color: var(--ag-foreground-color, #181d1f);--ag-charts-border-color: var(--ag-border-color, #dddddd);--ag-charts-hover-color: color-mix(in srgb, var(--ag-charts-background-color), var(--ag-charts-active-color) 12%);--ag-charts-font-family: "Verdana", sans-serif;--ag-charts-font-size: var(--ag-font-size, 14px);--ag-charts-size: var(--ag-grid-size, 8px);--ag-charts-border: var(--ag-charts-border-color) var(--ag-borders, solid 1px);--ag-charts-border-critical: var(--ag-borders-critical, solid 1px);--ag-charts-floating-shadow: 0 2px 8px 0 color-mix(in srgb, black 8%, transparent);--ag-charts-layer-ui-overlay: 5;--ag-charts-layer-tooltip: 4;--ag-charts-layer-toolbar: 3;--ag-charts-layer-crosshair: 2;--ag-charts-layer-annotations: 1;--ag-charts-align: center;--ag-charts-justify: center;--ag-charts-axis-label-background-color: #474747;--ag-charts-axis-label-color: #ffffff;--ag-charts-tooltip-background-color: #fafafb;--ag-charts-tooltip-text-color: var(--ag-charts-foreground-color);--ag-charts-tooltip-border: 1px solid var(--ag-charts-border-color);--ag-charts-content-padding: 8px 12px;--ag-charts-content-gap: 8px;--ag-charts-content-compact-padding: 3px 6px;--ag-charts-tooltip-border-radius: 4px;--ag-charts-toolbar-foreground-color: var(--ag-header-foreground-color, var(--ag-charts-foreground-color));--ag-charts-toolbar-background-color: var( --ag-header-background-color, color-mix(in srgb, var(--ag-charts-background-color), var(--ag-charts-foreground-color) 2%) );--ag-charts-toolbar-shadow: var(--ag-charts-floating-shadow);--ag-charts-toolbar-size: 34px;--ag-charts-toolbar-size-small: 24px;--ag-charts-toolbar-border: var(--ag-charts-border-critical, solid 1px) var(--ag-charts-border-color);--ag-charts-toolbar-hover-color: color-mix( in srgb, var(--ag-charts-background-color), var(--ag-charts-active-color) 12% );--ag-charts-toolbar-focus-color: var(--ag-charts-active-color);--ag-charts-toolbar-active-background-color: var(--ag-charts-toolbar-hover-color);--ag-charts-toolbar-active-color: var(--ag-charts-active-color);--ag-charts-toolbar-disabled-foreground-color: var( --ag-disabled-foreground-color, color-mix(in srgb, transparent, var(--ag-charts-toolbar-foreground-color) 50%) );--ag-charts-toolbar-disabled-background-color: color-mix( in srgb, var(--ag-charts-toolbar-background-color), var(--ag-charts-toolbar-foreground-color) 6% );--ag-charts-toolbar-gap: var(--ag-charts-size);--ag-charts-toolbar-font-size: 13px;--ag-charts-toolbar-font-size-small: 12px;--ag-charts-toolbar-button-padding: 6px;--ag-charts-toolbar-button-padding-small: 1px;--ag-charts-popover-background-color: var(--ag-charts-toolbar-background-color);--ag-charts-popover-foreground-color: var(--ag-charts-toolbar-foreground-color);--ag-charts-popover-border: var(--ag-charts-toolbar-border);--ag-charts-popover-border-radius: var(--ag-border-radius, 4px);--ag-charts-popover-active-color: var(--ag-charts-toolbar-active-color);--ag-charts-popover-hover-color: var(--ag-charts-toolbar-hover-color);--ag-charts-popover-active-background-color: var(--ag-charts-toolbar-active-background-color);--ag-charts-popover-font-size: 14px;--ag-charts-popover-font-size-small: var(--ag-charts-toolbar-font-size-small);--ag-charts-popover-shadow: var(--ag-charts-floating-shadow);--ag-charts-dialog-input-group-label-color: color-mix(in srgb, transparent, var(--ag-charts-foreground-color) 55%);--ag-charts-dialog-tab-color--inactive: color-mix(in srgb, transparent, var(--ag-charts-foreground-color) 55%);--ag-charts-button-radius: var(--ag-border-radius, 4px);--ag-charts-focus-border-color: var(--ag-input-focus-border-color, var(--ag-charts-active-color));--ag-charts-focus-border: solid 1px var(--ag-charts-focus-border-color);--ag-charts-focus-border-shadow: var( --ag-input-focus-box-shadow, 0 0 0 3px color-mix(in srgb, transparent, var(--ag-input-focus-border-color, var(--ag-charts-active-color)) 20%) );--ag-charts-focus-box-shadow: var(--box-shadow), 0 0 0 2px #fff8, var(--ag-charts-focus-border-shadow);--ag-charts-icon-font-family: "agChartsDefault";--ag-charts-icon-font-weight: normal;--ag-charts-icon-font-color: color-mix(in srgb, transparent, var(--ag-charts-foreground-color), 90%);--ag-charts-icon-size: 20px;--ag-charts-input-background-color: var(--ag-charts-background-color);--ag-charts-input-background-color--hover: var(--ag-charts-hover-color);--ag-charts-input-background-color--active: var(--ag-charts-hover-color);--ag-charts-input-border-color: var(--ag-charts-border-color);--ag-charts-input-border-color--active: var(--ag-charts-active-color);--ag-charts-input-border-radius: var(--ag-border-radius, 4px);--ag-charts-input-color--active: var(--ag-charts-active-color);--ag-charts-input-focus-outline: var(--ag-charts-focus-border);--ag-charts-input-focus-box-shadow: var(--ag-charts-focus-border-shadow);--ag-charts-input-font-family: var(--ag-charts-font-family);--ag-charts-input-font-size: var(--ag-charts-font-size);--ag-charts-input-padding: 8px;--ag-charts-input-padding-large: 10px;--ag-charts-input-placeholder-color: #888888;--ag-charts-input-spacing: 8px;--ag-charts-input-transition-duration: .25s;--ag-charts-input-transition-duration--fast: .1s;--ag-charts-input-transition-timing-function: ease-out;--ag-charts-input-checkbox-background-color: #babbbc;--ag-charts-input-checkbox-background-color--checked: var(--ag-charts-active-color)}.ag-charts-theme-default-dark{--ag-charts-background-color: var(--ag-background-color, color-mix(in srgb, #fff, #182230 97%));--ag-charts-foreground-color: var(--ag-foreground-color, #fff);--ag-charts-border-color: var(--ag-border-color, rgba(255, 255, 255, .16));--ag-charts-hover-color: color-mix(in srgb, var(--ag-charts-background-color), var(--ag-charts-active-color) 18%);--ag-charts-floating-shadow: 0 2px 12px 0 color-mix(in srgb, black 33.3%, transparent);--ag-charts-axis-label-background-color: #9caebb;--ag-charts-axis-label-color: #000000;--ag-charts-tooltip-background-color: #28313e;--ag-charts-tooltip-border: 1px solid #474e59;--ag-charts-toolbar-background-color: var(--ag-header-background-color, color-mix(in srgb, #fff, #182230 93%));--ag-charts-toolbar-hover-color: color-mix( in srgb, var(--ag-charts-background-color), var(--ag-charts-active-color) 18% );--ag-charts-dialog-input-group-label-text-color: #ffffff;--ag-charts-focus-border-shadow: var( --ag-input-focus-box-shadow, 0 0 0 3px color-mix(in srgb, transparent, var(--ag-input-focus-border-color, var(--ag-charts-active-color)) 20%) );--ag-charts-input-placeholder-color: #aaaaaa}.ag-charts-icon{display:block;width:var(--ag-charts-icon-size);height:var(--ag-charts-icon-size);speak:none;speak:never;mask:var(--icon) center / contain no-repeat;background-color:currentColor;transition:background-color .25s ease-in-out}.ag-charts-icon-align-center{--icon: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjAiIGhlaWdodD0iMjAiIHZpZXdCb3g9IjAgMCAyMCAyMCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBmaWxsPSIjMDAwIiBkPSJNNyAxMGg2djFIN3pNNCA3aDEydjFINHptMSA2aDEwdjFINXoiLz48L3N2Zz4=)}.ag-charts-icon-align-left{--icon: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjAiIGhlaWdodD0iMjAiIHZpZXdCb3g9IjAgMCAyMCAyMCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBmaWxsPSIjMDAwIiBkPSJNNCAxMGg2djFINHptMC0zaDEydjFINHptMCA2aDEwdjFINHoiLz48L3N2Zz4=)}.ag-charts-icon-align-right{--icon: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjAiIGhlaWdodD0iMjAiIHZpZXdCb3g9IjAgMCAyMCAyMCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBmaWxsPSIjMDAwIiBkPSJNMTAgMTBoNnYxaC02ek00IDdoMTJ2MUg0em0yIDZoMTB2MUg2eiIvPjwvc3ZnPg==)}.ag-charts-icon-arrow-drawing{--icon: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjAiIGhlaWdodD0iMjAiIHZpZXdCb3g9IjAgMCAyMCAyMCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBmaWxsLXJ1bGU9ImV2ZW5vZGQiIGNsaXAtcnVsZT0iZXZlbm9kZCIgZD0iTTE1LjI5MyA0LjVIMTIuNXYtMUgxN3Y0aC0xVjUuMjA3bC05LjY0NiA5LjY0Ny0uNzA4LS43MDh6IiBmaWxsPSIjMDAwIi8+PHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik03IDE2YTIuNSAyLjUgMCAxIDEtNSAwIDIuNSAyLjUgMCAwIDEgNSAwbS0yLjUgMS41YTEuNSAxLjUgMCAxIDAgMC0zIDEuNSAxLjUgMCAwIDAgMCAzIiBmaWxsPSIjMDAwIi8+PC9zdmc+)}.ag-charts-icon-arrow-down-drawing{--icon: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjAiIGhlaWdodD0iMjAiIHZpZXdCb3g9IjAgMCAyMCAyMCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik02IDhMMS41IDhMMTAgMThMMTguNSA4TDE0IDhMMTQgM0w2IDNMNiA4Wk03IDRMNyA5SDMuNjYyNDRMMTAgMTYuNDU2TDE2LjMzNzYgOUwxMyA5TDEzIDRMNyA0WiIgZmlsbD0iYmxhY2siLz4KPC9zdmc+Cg==)}.ag-charts-icon-arrow-up-drawing{--icon: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjAiIGhlaWdodD0iMjAiIHZpZXdCb3g9IjAgMCAyMCAyMCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik0xNCAxMkgxOC41TDEwIDJMMS41IDEySDZMNi4wMDAwMiAxN0gxNFYxMlpNMTMgMTZWMTFIMTYuMzM3NkwxMCAzLjU0NDA1TDMuNjYyNDQgMTFIN0w3LjAwMDAyIDE2SDEzWiIgZmlsbD0iYmxhY2siLz4KPC9zdmc+Cg==)}.ag-charts-icon-callout-annotation{--icon: url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyMCIgaGVpZ2h0PSIyMCIgZmlsbD0ibm9uZSI+PHBhdGggZmlsbD0iIzAwMCIgZmlsbC1ydWxlPSJldmVub2RkIiBkPSJNMyA0LjVBMS41IDEuNSAwIDAgMSA0LjUgM2gxMUExLjUgMS41IDAgMCAxIDE3IDQuNXY4YTEuNSAxLjUgMCAwIDEtMS41IDEuNWgtNC41MTRhMjYgMjYgMCAwIDAtMi4wMTcgMS41NGwtLjMxNC4yNmMtLjU1LjQ1Ny0xLjExNS45MjYtMS43NiAxLjQtLjY2OS40OTEtMS41NjItLjAxMi0xLjU2Mi0uOFYxNEg0LjVBMS41IDEuNSAwIDAgMSAzIDEyLjV6TTQuNSA0YS41LjUgMCAwIDAtLjUuNXY4YS41LjUgMCAwIDAgLjUuNWgxLjgzM3YzLjM3MmEzNiAzNiAwIDAgMCAxLjY3OC0xLjMzOGwuMzItLjI2NWEyNiAyNiAwIDAgMSAyLjIyNS0xLjY4NWwuMTI2LS4wODRIMTUuNWEuNS41IDAgMCAwIC41LS41di04YS41LjUgMCAwIDAtLjUtLjV6IiBjbGlwLXJ1bGU9ImV2ZW5vZGQiLz48L3N2Zz4=)}.ag-charts-icon-candlestick-series{--icon: url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyMCIgaGVpZ2h0PSIyMCIgZmlsbD0ibm9uZSI+PHBhdGggZmlsbD0iIzEzMTcyMiIgZmlsbC1ydWxlPSJldmVub2RkIiBkPSJNNyAxdjNoMnYxMkg3djNINnYtM0g0VjRoMlYxek01IDVoM3YxMEg1ek0xMSAxNFY2aDJWMy4yNWgxVjZoMnY4aC0ydjIuNzVoLTFWMTR6bTEtN2gzdjZoLTN6IiBjbGlwLXJ1bGU9ImV2ZW5vZGQiLz48L3N2Zz4=)}.ag-charts-icon-close{--icon: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjAiIGhlaWdodD0iMjAiIHZpZXdCb3g9IjAgMCAyMCAyMCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBkPSJtNSA1IDEwIDEwTTUgMTUgMTUgNSIgc3Ryb2tlPSIjMDAwIi8+PC9zdmc+)}.ag-charts-icon-comment-annotation{--icon: url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyMCIgaGVpZ2h0PSIyMCIgZmlsbD0ibm9uZSI+PHBhdGggZmlsbD0iIzAwMCIgZmlsbC1ydWxlPSJldmVub2RkIiBkPSJNNy41MTMgMy45OTVhNi41IDYuNSAwIDAgMSA2LjA5OCAxMS40MWMtLjU4OC4zOTMtMS4yMTcuNTM2LTEuODI5LjU4NWExMyAxMyAwIDAgMS0xLjI3LjAxN0EyNyAyNyAwIDAgMCAxMCAxNkg0LjVhLjUuNSAwIDAgMS0uNS0uNVYxMHEwLS4yNDctLjAwNy0uNTEzYy0uMDA4LS40MTYtLjAxNi0uODU3LjAxNy0xLjI2OS4wNS0uNjEyLjE5Mi0xLjI0LjU4NS0xLjgzYTYuNSA2LjUgMCAwIDEgMi45MTgtMi4zOTNtMy41Ni42MWE1LjUgNS41IDAgMCAwLTUuNjQ2IDIuMzRjLS4yNjYuMzk3LS4zNzkuODQyLS40MiAxLjM1NC0uMDMuMzYtLjAyMi43MTgtLjAxNSAxLjEwOFE1IDkuNjg5IDUgMTB2NWg1cS4zMTEuMDAxLjU5My4wMDhjLjM5LjAwNy43NDcuMDE1IDEuMTA4LS4wMTUuNTEyLS4wNDEuOTU3LS4xNTQgMS4zNTUtLjQyYTUuNSA1LjUgMCAwIDAtMS45ODMtOS45NjciIGNsaXAtcnVsZT0iZXZlbm9kZCIvPjwvc3ZnPg==)}.ag-charts-icon-crosshair-add-line{--icon: url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyMCIgaGVpZ2h0PSIyMCIgZmlsbD0ibm9uZSI+PHBhdGggZmlsbD0iIzAwMCIgZD0iTTEwIDUuNWEuNS41IDAgMCAxIC41LjV2My41aDMuODc1YS41LjUgMCAwIDEgMCAxSDEwLjV2NC4yNWEuNS41IDAgMSAxLTEgMFYxMC41SDUuNjI1YS41LjUgMCAxIDEgMC0xSDkuNVY2YS41LjUgMCAwIDEgLjUtLjUiLz48L3N2Zz4=)}.ag-charts-icon-date-range-drawing{--icon: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjAiIGhlaWdodD0iMjAiIHZpZXdCb3g9IjAgMCAyMCAyMCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBkPSJNMiAyaDF2MTZIMnptMTUgMGgxdjE2aC0xeiIgZmlsbD0iIzE4MUQxRiIvPjxwYXRoIGQ9Ik0xMy4xNTcgMTFINXYtMWg3Ljc5M0wxMSA4LjIwN2wuNzA3LS43MDcgMy4xODIgMy4xODItMy4xODIgMy4xODItLjcwNy0uNzA3eiIgZmlsbD0iIzAwMCIvPjwvc3ZnPg==)}.ag-charts-icon-date-price-range-drawing{--icon: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjAiIGhlaWdodD0iMjAiIHZpZXdCb3g9IjAgMCAyMCAyMCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBkPSJNMyAySDJ2MTZoMXptMy41MDcgNC44OUw4LjUgNC44OTVWMTBINXYxaDMuNXY3aDF2LTdoNS4wODhsLTEuOTU3IDEuOTU3LjcwNy43MDcgMy4xODItMy4xODJMMTMuMzM4IDcuM2wtLjcwNy43MDdMMTQuNjI0IDEwSDkuNVY0LjkzMmwxLjk1NyAxLjk1Ny43MDctLjcwN0w4Ljk4MiAzIDUuOCA2LjE4MnoiIGZpbGw9IiMxODFEMUYiLz48L3N2Zz4=)}.ag-charts-icon-delete{--icon: url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyMCIgaGVpZ2h0PSIyMCIgZmlsbD0ibm9uZSI+PHBhdGggZmlsbD0iIzEzMTcyMiIgZD0iTTguNDk2IDguOTk2QS41LjUgMCAwIDEgOSA5LjQ5MnY0YS41LjUgMCAxIDEtMSAuMDA4di00YS41LjUgMCAwIDEgLjQ5Ni0uNTA0TTEyIDkuNWEuNS41IDAgMCAwLTEgMHY0YS41LjUgMCAwIDAgMSAweiIvPjxwYXRoIGZpbGw9IiMxMzE3MjIiIGZpbGwtcnVsZT0iZXZlbm9kZCIgZD0iTTYgNVYzLjVBMi41IDIuNSAwIDAgMSA4LjUgMWgzQTIuNSAyLjUgMCAwIDEgMTQgMy41VjVoMi44MzNhLjUuNSAwIDAgMSAwIDFIMTV2MTAuMjVjMCAuNDE1LS4wNjYuODYzLS4zIDEuMjIxLS4yNTcuMzk0LS42NzIuNjEyLTEuMi42MTJoLTdjLS41MjggMC0uOTQzLS4yMTgtMS4yLS42MTItLjIzNC0uMzU4LS4zLS44MDYtLjMtMS4yMjFWNkgzLjMzM2EuNS41IDAgMCAxIDAtMXptMS0xLjVBMS41IDEuNSAwIDAgMSA4LjUgMmgzQTEuNSAxLjUgMCAwIDEgMTMgMy41VjVIN3pNNiAxNi4yNVY2aDh2MTAuMjVjMCAuMzM1LS4wNTkuNTU0LS4xMzguNjc1LS4wNTUuMDg1LS4xNC4xNTgtLjM2Mi4xNThoLTdjLS4yMjIgMC0uMzA3LS4wNzMtLjM2Mi0uMTU4LS4wOC0uMTIxLS4xMzgtLjM0LS4xMzgtLjY3NSIgY2xpcC1ydWxlPSJldmVub2RkIi8+PC9zdmc+)}.ag-charts-icon-disjoint-channel,.ag-charts-icon-disjoint-channel-drawing{--icon: url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyMCIgaGVpZ2h0PSIyMCIgZmlsbD0ibm9uZSI+PHBhdGggZmlsbD0iIzEzMTcyMiIgZmlsbC1ydWxlPSJldmVub2RkIiBkPSJNMTkuMDI4IDE3LjQ2YTIuMjUgMi4yNSAwIDAgMC00LjA5Mi0xLjg1bC05LjUxMS0yLjM3OGEyLjI1IDIuMjUgMCAxIDAtLjIyNS45NzRsOS40NzUgMi4zNjlhMi4yNTEgMi4yNTEgMCAwIDAgNC4zNTMuODg2bS0xLjY2Mi0xLjk2NWExLjI1IDEuMjUgMCAxIDEtLjg4NSAyLjMzOCAxLjI1IDEuMjUgMCAwIDEgLjg4NS0yLjMzOE00LjM0MyAxMy42NjlhMS4yNSAxLjI1IDAgMSAwLTIuMzM4LS44ODUgMS4yNSAxLjI1IDAgMCAwIDIuMzM4Ljg4NU0zLjk3IDguNzY5YTIuMjUgMi4yNSAwIDAgMCAxLjQ1NS0yLjExbDkuNTExLTIuMzc4YTIuMjUgMi4yNSAwIDEgMC0uMjYtLjk2NUw1LjIgNS42ODVhMi4yNSAyLjI1IDAgMSAwLTEuMjMgMy4wODRtLjM3My0yLjU0N2ExLjI1IDEuMjUgMCAxIDEtMi4zMzguODg1IDEuMjUgMS4yNSAwIDAgMSAyLjMzOC0uODg1bTEzLjc1LTMuNDM4YTEuMjUgMS4yNSAwIDEgMS0yLjMzOC44ODUgMS4yNSAxLjI1IDAgMCAxIDIuMzM4LS44ODUiIGNsaXAtcnVsZT0iZXZlbm9kZCIvPjwvc3ZnPg==)}.ag-charts-icon-drag-handle{--icon: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjAiIGhlaWdodD0iMjAiIHZpZXdCb3g9IjAgMCAyMCAyMCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48Y2lyY2xlIGN4PSI1Ljc1IiBjeT0iNy43NSIgcj0iLjc1IiBmaWxsPSIjMDAwIiBmaWxsLW9wYWNpdHk9Ii41Ii8+PGNpcmNsZSBjeD0iOS43NSIgY3k9IjcuNzUiIHI9Ii43NSIgZmlsbD0iIzAwMCIgZmlsbC1vcGFjaXR5PSIuNSIvPjxjaXJjbGUgY3g9IjEzLjc1IiBjeT0iNy43NSIgcj0iLjc1IiBmaWxsPSIjMDAwIiBmaWxsLW9wYWNpdHk9Ii41Ii8+PGNpcmNsZSBjeD0iMTMuNzUiIGN5PSIxMS43NSIgcj0iLjc1IiBmaWxsPSIjMDAwIiBmaWxsLW9wYWNpdHk9Ii41Ii8+PGNpcmNsZSBjeD0iOS43NSIgY3k9IjExLjc1IiByPSIuNzUiIGZpbGw9IiMwMDAiIGZpbGwtb3BhY2l0eT0iLjUiLz48Y2lyY2xlIGN4PSI1Ljc1IiBjeT0iMTEuNzUiIHI9Ii43NSIgZmlsbD0iIzAwMCIgZmlsbC1vcGFjaXR5PSIuNSIvPjwvc3ZnPg==)}.ag-charts-icon-fibonacci-retracement-drawing{--icon: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjAiIGhlaWdodD0iMjAiIHZpZXdCb3g9IjAgMCAyMCAyMCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBmaWxsPSIjMDAwIiBkPSJNMiA1aDEydjFIMnoiLz48Y2lyY2xlIGN4PSIxNS43NSIgY3k9IjUuNSIgcj0iMS43NSIgc3Ryb2tlPSIjMDAwIi8+PGNpcmNsZSBjeD0iNC4yNSIgY3k9IjE0LjUiIHI9IjEuNzUiIHN0cm9rZT0iIzAwMCIvPjxwYXRoIGZpbGw9IiMwMDAiIGQ9Ik0xOCAxNUg2di0xaDEyem0wLTQuNUgydi0xaDE2eiIvPjwvc3ZnPg==)}.ag-charts-icon-fill-color{--icon: url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyMCIgaGVpZ2h0PSIyMCIgZmlsbD0ibm9uZSI+PHBhdGggZmlsbD0iIzAwMCIgZmlsbC1ydWxlPSJldmVub2RkIiBkPSJtOC4wNzEgNC4wNi0uOTI0LS45MjQuNzA3LS43MDcgNy4yODggNy4yODgtNC45NSA0Ljk1YTMuNSAzLjUgMCAwIDEtNC45NSAwbC0xLjQxNC0xLjQxNGEzLjUgMy41IDAgMCAxIDAtNC45NXptLjcwNy43MDhMNC41MzYgOS4wMWEyLjUgMi41IDAgMCAwIDAgMy41MzZMNS45NSAxMy45NmEyLjUgMi41IDAgMCAwIDMuNTM1IDBsNC4yNDMtNC4yNDN6bTYuOSA3LjIwMi0uMzQ1LjM2My0uMzQ0LS4zNjNhLjUuNSAwIDAgMSAuNjg4IDBtLS4zNDUgMS4wOGE4IDggMCAwIDAtLjI4LjMyMyA0LjMgNC4zIDAgMCAwLS40MDkuNTgyYy0uMTEzLjIwMS0uMTQ0LjMyNi0uMTQ0LjM3OGEuODMzLjgzMyAwIDAgMCAxLjY2NyAwYzAtLjA1Mi0uMDMxLS4xNzctLjE0NC0uMzc4YTQuMyA0LjMgMCAwIDAtLjQxLS41ODIgOCA4IDAgMCAwLS4yOC0uMzIybS0uMzQ0LTEuMDguMzQ0LjM2My4zNDQtLjM2My4wMDIuMDAyLjAwNC4wMDQuMDEzLjAxMmE2IDYgMCAwIDEgLjIwNi4yMDhjLjEzMS4xMzYuMzA4LjMyNy40ODUuNTQ1LjE3Ni4yMTUuMzYzLjQ2Ny41MDcuNzI0LjEzNy4yNDMuMjczLjU1My4yNzMuODY4YTEuODMzIDEuODMzIDAgMSAxLTMuNjY3IDBjMC0uMzE1LjEzNi0uNjI1LjI3My0uODY4LjE0NC0uMjU3LjMzLS41MDkuNTA3LS43MjRhOSA5IDAgMCAxIC42NDUtLjcwOGwuMDQ2LS4wNDUuMDEzLS4wMTIuMDA0LS4wMDR6IiBjbGlwLXJ1bGU9ImV2ZW5vZGQiLz48L3N2Zz4=)}.ag-charts-icon-hollow-candlestick-series{--icon: url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyMCIgaGVpZ2h0PSIyMCIgZmlsbD0ibm9uZSI+PHBhdGggZmlsbD0iIzEzMTcyMiIgZmlsbC1vcGFjaXR5PSIuMTUiIGQ9Ik01IDVoM3YxMEg1eiIvPjxwYXRoIGZpbGw9IiMxMzE3MjIiIGZpbGwtcnVsZT0iZXZlbm9kZCIgZD0iTTcgMXYzaDJ2MTJIN3YzSDZ2LTNINFY0aDJWMXpNNSA1aDN2MTBINXptNyAyaDN2NmgtM3ptLTEgN1Y2aDJWMy4yNWgxVjZoMnY4aC0ydjIuNzVoLTFWMTR6IiBjbGlwLXJ1bGU9ImV2ZW5vZGQiLz48L3N2Zz4=)}.ag-charts-icon-horizontal-line,.ag-charts-icon-horizontal-line-drawing{--icon: url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyMCIgaGVpZ2h0PSIyMCIgZmlsbD0ibm9uZSI+PHBhdGggZmlsbD0iIzEzMTcyMiIgZmlsbC1ydWxlPSJldmVub2RkIiBkPSJNLjUgOS41aDcuMzA2YTIuMjUgMi4yNSAwIDAgMSA0LjM4OCAwSDE5LjV2MWgtNy4zMDZhMi4yNSAyLjI1IDAgMCAxLTQuMzg4IDBILjV6bTkuNSAxLjc1YTEuMjUgMS4yNSAwIDEgMCAwLTIuNSAxLjI1IDEuMjUgMCAwIDAgMCAyLjUiIGNsaXAtcnVsZT0iZXZlbm9kZCIvPjwvc3ZnPg==)}.ag-charts-icon-line-color{--icon: url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyMCIgaGVpZ2h0PSIyMCIgZmlsbD0ibm9uZSI+PHBhdGggZmlsbD0iIzAwMCIgZmlsbC1ydWxlPSJldmVub2RkIiBkPSJNMTQuMjQyIDIuNzIyYy0uNjEyIDAtMS4yLjI0My0xLjYzMi42NzVsLTEuMzQzIDEuMzQ0YS41LjUgMCAwIDAtLjExMi4xMTJMNC4wNSAxMS45NTljLS4yMDcuMjA3LS4zNi40Ni0uNDQ2Ljc0di4wMDFsLS42OSAyLjc2N3YuMDAyYS44Mi44MiAwIDAgMCAxLjAyMiAxLjAyMWguMDAybDIuNjM0LS44MjJjLjI4LS4wODUuNTM0LS4yMzcuNzQtLjQ0M2w3LjEwNy03LjEwOGEuNS41IDAgMCAwIC4xMTItLjExMmwxLjM0My0xLjM0M2EyLjMwOCAyLjMwOCAwIDAgMC0xLjYzMi0zLjk0TTE0LjEyMiA3bDEuMDQ0LTEuMDQ1YTEuMzA4IDEuMzA4IDAgMSAwLTEuODQ5LTEuODVMMTIuMjcxIDUuMTV6bS0yLjU1OC0xLjE0Mi02LjgwNyA2LjgwOWEuOC44IDAgMCAwLS4xOTYuMzI1bC0uNzUgMi40NjggMi40Ny0uNzQ5YS44LjggMCAwIDAgLjMyNS0uMTk0bDYuODA4LTYuODF6IiBjbGlwLXJ1bGU9ImV2ZW5vZGQiLz48L3N2Zz4=)}.ag-charts-icon-line-series{--icon: url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyMCIgaGVpZ2h0PSIyMCIgZmlsbD0ibm9uZSI+PHBhdGggZmlsbD0iIzEzMTcyMiIgZmlsbC1ydWxlPSJldmVub2RkIiBkPSJtMTcuMzYyIDQuODczLTQuNTk0IDYuNjU0LTQuODUtMy4zMTctNC4yNTEgNi45NzctLjg1NC0uNTJMNy42MTIgNi43OWw0Ljg5OSAzLjM1IDQuMDI4LTUuODM2eiIgY2xpcC1ydWxlPSJldmVub2RkIi8+PC9zdmc+)}.ag-charts-icon-line-style-dashed{--icon: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjAiIGhlaWdodD0iMjAiIHZpZXdCb3g9IjAgMCAyMCAyMCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBmaWxsPSIjMDAwIiBkPSJNMiA5aDR2MUgyem0xMiAwaDR2MWgtNHpNOCA5aDR2MUg4eiIvPjwvc3ZnPg==)}.ag-charts-icon-line-style-dotted{--icon: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjAiIGhlaWdodD0iMjAiIHZpZXdCb3g9IjAgMCAyMCAyMCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48Y2lyY2xlIGN4PSIyLjUiIGN5PSI5LjUiIHI9Ii41IiBmaWxsPSIjMDAwIi8+PGNpcmNsZSBjeD0iNC41IiBjeT0iOS41IiByPSIuNSIgZmlsbD0iIzAwMCIvPjxjaXJjbGUgY3g9IjYuNSIgY3k9IjkuNSIgcj0iLjUiIGZpbGw9IiMwMDAiLz48Y2lyY2xlIGN4PSI4LjUiIGN5PSI5LjUiIHI9Ii41IiBmaWxsPSIjMDAwIi8+PGNpcmNsZSBjeD0iMTAuNSIgY3k9IjkuNSIgcj0iLjUiIGZpbGw9IiMwMDAiLz48Y2lyY2xlIGN4PSIxMi41IiBjeT0iOS41IiByPSIuNSIgZmlsbD0iIzAwMCIvPjxjaXJjbGUgY3g9IjE0LjUiIGN5PSI5LjUiIHI9Ii41IiBmaWxsPSIjMDAwIi8+PGNpcmNsZSBjeD0iMTYuNSIgY3k9IjkuNSIgcj0iLjUiIGZpbGw9IiMwMDAiLz48L3N2Zz4=)}.ag-charts-icon-line-style-solid{--icon: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjAiIGhlaWdodD0iMjAiIHZpZXdCb3g9IjAgMCAyMCAyMCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBmaWxsPSIjMDAwIiBkPSJNMiA5aDE2djFIMnoiLz48L3N2Zz4=)}.ag-charts-icon-line-with-markers-series{--icon: url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyMCIgaGVpZ2h0PSIyMCIgZmlsbD0ibm9uZSI+PHBhdGggZmlsbD0iIzEzMTcyMiIgZmlsbC1ydWxlPSJldmVub2RkIiBkPSJtMTguMTk4IDQuODg4LTMuNTU2IDQuOTE4YTIuMjUgMi4yNSAwIDEgMS0zLjg2Ni43NWwtMS40MzItLjlhMi4yNCAyLjI0IDAgMCAxLTIuMDA5LjQzNWwtMy44MjggNi40MjgtLjg2LS41MTJMNi40NSA5LjYyM2EyLjI1IDIuMjUgMCAxIDEgMy41MS0uNzYxbDEuMzI5LjgzNWEyLjI0IDIuMjQgMCAwIDEgMi41NTctLjQ5N2wzLjU0Mi00Ljg5OHptLTQuOTYgNS4xNTNhMS4yNSAxLjI1IDAgMSAwLS42NCAyLjQxOSAxLjI1IDEuMjUgMCAwIDAgLjY0LTIuNDE5TTkuMSA4LjMyMXEuMDY2LS4xOTIuMDY3LS40MDRhMS4yNSAxLjI1IDAgMSAwLS4wNjcuNDA0IiBjbGlwLXJ1bGU9ImV2ZW5vZGQiLz48L3N2Zz4=)}.ag-charts-icon-lock,.ag-charts-icon-locked{--icon: url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyMCIgaGVpZ2h0PSIyMCIgZmlsbD0ibm9uZSI+PHBhdGggZmlsbD0iIzAwMCIgZmlsbC1ydWxlPSJldmVub2RkIiBkPSJNMTAuMjA3IDMuNzY0YTIuODk0IDIuODk0IDAgMCAwLTIuODk1IDIuODk0VjloNS43ODlWNi42NThhMi44OTQgMi44OTQgMCAwIDAtMi44OTUtMi44OTRNMTQuMSA5VjYuNjU4YTMuODk0IDMuODk0IDAgMSAwLTcuNzg5IDB2Mi4zNDlBMi41IDIuNSAwIDAgMCA0IDExLjV2M0EyLjUgMi41IDAgMCAwIDYuNSAxN2g4YTIuNSAyLjUgMCAwIDAgMi41LTIuNXYtM0EyLjUgMi41IDAgMCAwIDE0LjUgOXpNNi41IDEwQTEuNSAxLjUgMCAwIDAgNSAxMS41djNBMS41IDEuNSAwIDAgMCA2LjUgMTZoOGExLjUgMS41IDAgMCAwIDEuNS0xLjV2LTNhMS41IDEuNSAwIDAgMC0xLjUtMS41eiIgY2xpcC1ydWxlPSJldmVub2RkIi8+PC9zdmc+)}.ag-charts-icon-measurer-drawing{--icon: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjAiIGhlaWdodD0iMjAiIHZpZXdCb3g9IjAgMCAyMCAyMCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBmaWxsLXJ1bGU9ImV2ZW5vZGQiIGNsaXAtcnVsZT0iZXZlbm9kZCIgZD0ibTQuNDYxIDEyLjcxIDEuNTMyLTEuNTMxIDEuNDE0IDEuNDE0LjcwNy0uNzA3TDYuNyAxMC40NzJsMS41MzItMS41MzMgMiAyIC43MDctLjcwNy0yLTIgNi4wMS02LjAxIDIuODMgMi44MjhMNS4wNSAxNy43NzggMi4yMjIgMTQuOTVsMS41MzItMS41MzIgMS40MTQgMS40MTQuNzA3LS43MDd6TS44MDggMTQuOTVsLjcwNy0uNzA3TDE0LjI0MyAxLjUxNWwuNzA3LS43MDcuNzA3LjcwNyAyLjgyOCAyLjgyOC43MDcuNzA3LS43MDcuNzA3TDUuNzU3IDE4LjQ4NWwtLjcwNy43MDctLjcwNy0uNzA3LTIuODI4LTIuODI4em0xMS4wNzgtNi44MzVMMTAuNDcgNi43bC43MDctLjcwNyAxLjQxNSAxLjQxNHptLjgyNC0zLjY1NCAxIDEgLjcwOC0uNzA3LTEtMXoiIGZpbGw9IiMxODFEMUYiLz48L3N2Zz4=)}.ag-charts-icon-note-annotation{--icon: url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyMCIgaGVpZ2h0PSIyMCIgZmlsbD0ibm9uZSI+PHBhdGggZmlsbD0iIzAwMCIgZmlsbC1ydWxlPSJldmVub2RkIiBkPSJNMyA0LjVBMS41IDEuNSAwIDAgMSA0LjUgM2gxMUExLjUgMS41IDAgMCAxIDE3IDQuNXY4YTEuNSAxLjUgMCAwIDEtMS41IDEuNWgtMy4yMWwtMS40NjkgMi41N2ExIDEgMCAwIDEtMS42ODIuMDg1TDcuMjQzIDE0SDQuNUExLjUgMS41IDAgMCAxIDMgMTIuNXpNNC41IDRhLjUuNSAwIDAgMC0uNS41djhhLjUuNSAwIDAgMCAuNS41aDMuMjU3bDIuMTk2IDMuMDc0TDExLjcxIDEzaDMuNzlhLjUuNSAwIDAgMCAuNS0uNXYtOGEuNS41IDAgMCAwLS41LS41eiIgY2xpcC1ydWxlPSJldmVub2RkIi8+PHBhdGggZmlsbD0iIzAwMCIgZmlsbC1ydWxlPSJldmVub2RkIiBkPSJNNi41IDYuNUEuNS41IDAgMCAxIDcgNmg2YS41LjUgMCAwIDEgMCAxSDdhLjUuNSAwIDAgMS0uNS0uNU02LjUgOS41QS41LjUgMCAwIDEgNyA5aDZhLjUuNSAwIDAgMSAwIDFIN2EuNS41IDAgMCAxLS41LS41IiBjbGlwLXJ1bGU9ImV2ZW5vZGQiLz48L3N2Zz4=)}.ag-charts-icon-ohlc-series{--icon: url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyMCIgaGVpZ2h0PSIyMCIgZmlsbD0ibm9uZSI+PHBhdGggZmlsbD0iIzEzMTcyMiIgZD0iTTEzIDExaC0zdi0xaDNWM2gxdjJoNHYxaC00djExaC0xek02IDE3di0yaDN2LTFINlY0SDV2MUgydjFoM3YxMXoiLz48L3N2Zz4=)}.ag-charts-icon-pan-end{--icon: url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyMCIgaGVpZ2h0PSIyMCIgZmlsbD0ibm9uZSI+PHBhdGggZmlsbD0iIzAwMCIgZD0ibTYuNjQ2IDEzLjgxMy0uMzUzLjM1NC43MDcuNzA3LjM1NC0uMzU0ek0xMS4xNjYgMTBsLjM1NC4zNTQuMzU0LS4zNTQtLjM1NC0uMzU0ek03LjM1NSA1LjQ4IDcgNS4xMjZsLS43MDcuNzA3LjM1My4zNTR6bTAgOS4wNCA0LjE2Ni00LjE2Ni0uNzA3LS43MDgtNC4xNjcgNC4xNjd6bTQuMTY2LTQuODc0TDcuMzU0IDUuNDhsLS43MDguNzA3IDQuMTY3IDQuMTY3ek0xMy4wODMgNXYxMGgxVjV6Ii8+PC9zdmc+)}.ag-charts-icon-pan-left{--icon: url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyMCIgaGVpZ2h0PSIyMCIgZmlsbD0ibm9uZSI+PHBhdGggZmlsbD0iIzAwMCIgZmlsbC1ydWxlPSJldmVub2RkIiBkPSJNMTIuNzkgNS44MzMgOC42MjUgMTBsNC4xNjYgNC4xNjctLjcwNy43MDdMNy4yMSAxMGw0Ljg3My00Ljg3NHoiIGNsaXAtcnVsZT0iZXZlbm9kZCIvPjwvc3ZnPg==)}.ag-charts-icon-pan-right{--icon: url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyMCIgaGVpZ2h0PSIyMCIgZmlsbD0ibm9uZSI+PHBhdGggZmlsbD0iIzAwMCIgZmlsbC1ydWxlPSJldmVub2RkIiBkPSJNNy4yMSAxNC4xNjcgMTEuMzc2IDEwIDcuMjEgNS44MzNsLjcwNy0uNzA3TDEyLjc5IDEwbC00Ljg3MyA0Ljg3NHoiIGNsaXAtcnVsZT0iZXZlbm9kZCIvPjwvc3ZnPg==)}.ag-charts-icon-pan-start{--icon: url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyMCIgaGVpZ2h0PSIyMCIgZmlsbD0ibm9uZSI+PHBhdGggZmlsbD0iIzAwMCIgZD0iTTYgNXYxMGgxVjV6TTkuNjI0IDEwbDQuMTY2LTQuMTY3LS43MDctLjcwN0w4LjIxIDEwbDQuODc0IDQuODc0LjcwNy0uNzA3eiIvPjwvc3ZnPg==)}.ag-charts-icon-parallel-channel,.ag-charts-icon-parallel-channel-drawing{--icon: url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyMCIgaGVpZ2h0PSIyMCIgZmlsbD0ibm9uZSI+PHBhdGggZmlsbD0iIzEzMTcyMiIgZmlsbC1ydWxlPSJldmVub2RkIiBkPSJNMTcuNzIgNS4zMzFBMi4yNSAyLjI1IDAgMSAwIDE0LjcwNSAzLjZsLTkuNDkgNC41NjJhMi4yNSAyLjI1IDAgMSAwIC4yMDkgMS4wMWw5LjY2Mi00LjY0NmEyLjI1IDIuMjUgMCAwIDAgMi42MzQuODA1bS4zNzMtMi41NDdhMS4yNSAxLjI1IDAgMSAxLTIuMzM4Ljg4NSAxLjI1IDEuMjUgMCAwIDEgMi4zMzgtLjg4NU00LjM0MyA4LjY3YTEuMjUgMS4yNSAwIDEgMS0yLjMzOC44ODUgMS4yNSAxLjI1IDAgMCAxIDIuMzM4LS44ODVNNS4zMDcgMTYuNzI4YTIuMjUgMi4yNSAwIDEgMS0uNTI1LS44NThsOS45MjMtNC43N2EyLjI1IDIuMjUgMCAxIDEgLjM4MS45MjZ6bS0uOTY0LjI3NGExLjI1IDEuMjUgMCAxIDEtMi4zMzguODg1IDEuMjUgMS4yNSAwIDAgMSAyLjMzOC0uODg1bTEzLjAyMy01LjEwNmExLjI1IDEuMjUgMCAxIDAtLjg4NS0yLjMzOSAxLjI1IDEuMjUgMCAwIDAgLjg4NSAyLjMzOSIgY2xpcC1ydWxlPSJldmVub2RkIi8+PC9zdmc+)}.ag-charts-icon-position-bottom{--icon: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjAiIGhlaWdodD0iMjAiIHZpZXdCb3g9IjAgMCAyMCAyMCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBmaWxsPSIjMDAwIiBmaWxsLW9wYWNpdHk9Ii4yNSIgZD0iTTMgMTBoMTR2MUgzem0zLTNoOHYxSDZ6Ii8+PHBhdGggZmlsbD0iIzAwMCIgZD0iTTYgMTNoOHYxSDZ6Ii8+PC9zdmc+)}.ag-charts-icon-position-center{--icon: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjAiIGhlaWdodD0iMjAiIHZpZXdCb3g9IjAgMCAyMCAyMCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBmaWxsPSIjMDAwIiBkPSJNMyAxMGgxNHYxSDN6Ii8+PHBhdGggZmlsbD0iIzAwMCIgZmlsbC1vcGFjaXR5PSIuMjUiIGQ9Ik02IDdoOHYxSDZ6bTAgNmg4djFINnoiLz48L3N2Zz4=)}.ag-charts-icon-position-top{--icon: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjAiIGhlaWdodD0iMjAiIHZpZXdCb3g9IjAgMCAyMCAyMCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBmaWxsPSIjMDAwIiBmaWxsLW9wYWNpdHk9Ii4yNSIgZD0iTTMgMTBoMTR2MUgzeiIvPjxwYXRoIGZpbGw9IiMwMDAiIGQ9Ik02IDdoOHYxSDZ6Ii8+PHBhdGggZmlsbD0iIzAwMCIgZmlsbC1vcGFjaXR5PSIuMjUiIGQ9Ik02IDEzaDh2MUg2eiIvPjwvc3ZnPg==)}.ag-charts-icon-price-label-annotation{--icon: url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyMCIgaGVpZ2h0PSIyMCIgZmlsbD0ibm9uZSI+PHBhdGggZmlsbD0iIzAwMCIgZmlsbC1ydWxlPSJldmVub2RkIiBkPSJNNC41IDNBMS41IDEuNSAwIDAgMCAzIDQuNVYxM2ExLjUgMS41IDAgMCAwIDEuNSAxLjVoLjgzM3YuMDU3Yy4yNDItLjI5OS41OTctLjUwMyAxLS41NDhWMTMuNUg0LjVBLjUuNSAwIDAgMSA0IDEzVjQuNWEuNS41IDAgMCAxIC41LS41aDExYS41LjUgMCAwIDEgLjUuNXY4YS41LjUgMCAwIDEtLjUuNWgtNC44MThsLS4xMjYuMDg0YTI2IDI2IDAgMCAwLTIuMjI1IDEuNjg1bC0uMzIuMjY1LS4wNjguMDU2YTEuNSAxLjUgMCAwIDEtMi42MDkgMS4zNTRjLjAzMy43NjMuOTA1IDEuMjM4IDEuNTYuNzU2LjY0Ni0uNDc0IDEuMjEtLjk0MyAxLjc2MS0xLjRsLjMxMy0uMjZBMjYgMjYgMCAwIDEgMTAuOTg2IDE0SDE1LjVhMS41IDEuNSAwIDAgMCAxLjUtMS41di04QTEuNSAxLjUgMCAwIDAgMTUuNSAzeiIgY2xpcC1ydWxlPSJldmVub2RkIi8+PHBhdGggZmlsbD0iIzEzMTcyMiIgZmlsbC1ydWxlPSJldmVub2RkIiBkPSJNOC43MTYgMTQuODE1YTIuMjUgMi4yNSAwIDEgMS00LjIxIDEuNTkzIDIuMjUgMi4yNSAwIDAgMSA0LjIxLTEuNTkzbS0xLjY2MiAxLjk2NmExLjI1IDEuMjUgMCAxIDAtLjg4NS0yLjMzOSAxLjI1IDEuMjUgMCAwIDAgLjg4NSAyLjMzOSIgY2xpcC1ydWxlPSJldmVub2RkIi8+PC9zdmc+)}.ag-charts-icon-price-range-drawing{--icon: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjAiIGhlaWdodD0iMjAiIHZpZXdCb3g9IjAgMCAyMCAyMCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBkPSJNOS4wNDYgMTVWNS44NzdoLjk0MlYxNXoiIGZpbGw9IiMxODFEMUYiLz48cGF0aCBkPSJNOS4wNDYgMTVWNS44NzdoLjk0MlYxNXoiIGZpbGw9IiMxODFEMUYiLz48cGF0aCBkPSJNOS41IDYuMjI4IDcuMTY3IDguMzc2IDYuNSA3Ljc2MiA5LjUgNWwzIDIuNzYyLS42NjcuNjE0eiIgZmlsbD0iIzAwMCIvPjxwYXRoIGQ9Ik0yIDE4di0xaDE2djF6TTIgM1YyaDE2djF6IiBmaWxsPSIjMTgxRDFGIi8+PC9zdmc+)}.ag-charts-icon-reset{--icon: url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyMCIgaGVpZ2h0PSIyMCIgZmlsbD0ibm9uZSI+PHBhdGggZmlsbD0iIzAwMCIgZmlsbC1ydWxlPSJldmVub2RkIiBkPSJNMTIuMDQgNC40NDVhNS44MSA1LjgxIDAgMCAwLTcuMjU3IDIuNDUzLjUuNSAwIDAgMS0uODY1LS41MDJBNi44MSA2LjgxIDAgMSAxIDMgOS44MTNhLjUuNSAwIDAgMSAxIDAgNS44MSA1LjgxIDAgMSAwIDguMDQtNS4zNjgiIGNsaXAtcnVsZT0iZXZlbm9kZCIvPjxwYXRoIGZpbGw9IiMwMDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIgZD0iTTQuMjg5IDMuMDAyYS41LjUgMCAwIDEgLjUuNXYyLjY1NWgyLjY1NWEuNS41IDAgMCAxIDAgMUg0LjI5YS41LjUgMCAwIDEtLjUtLjVWMy41MDJhLjUuNSAwIDAgMSAuNS0uNSIgY2xpcC1ydWxlPSJldmVub2RkIi8+PC9zdmc+)}.ag-charts-icon-settings{--icon: url(data:image/svg+xml;base64,PHN2ZyB2aWV3Qm94PSIwIDAgMjAgMjAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sOnNwYWNlPSJwcmVzZXJ2ZSIgc3R5bGU9ImZpbGwtcnVsZTpldmVub2RkIj48cGF0aCBkPSJNMTAgMTNhMyAzIDAgMSAwIDAtNiAzIDMgMCAwIDAgMCA2bTAtMWEyIDIgMCAxIDEtLjAwMS0zLjk5OUEyIDIgMCAwIDEgMTAgMTIiLz48cGF0aCBkPSJNMi4zMSAxNC4zNDVjLS44MTctMS40OTEuMDI3LTIuNDk5LjQ3NC0yLjg2NS41MzEtLjQzNC45NjktLjM2NS45NzItMS40OC0uMDAzLTEuMTE1LS40NDEtMS4wNDYtLjk3Mi0xLjQ4MS0uNDU0LS4zNzEtMS4zMTctMS40MDUtLjQzNC0yLjkzNmwuMDA1LS4wMDljLjg4NC0xLjUyIDIuMjA3LTEuMjkgMi43NTUtMS4wODMuNjQxLjI0My44MDEuNjU2IDEuNzY4LjEwMS45NjQtLjU2LjY4Ni0uOTA0Ljc5Ni0xLjU4Mi4wOTQtLjU3OC41NTktMS44NDMgMi4zMjYtMS44NDNoLjAxYzEuNzU5LjAwNSAyLjIyMiAxLjI2NiAyLjMxNiAxLjg0My4xMS42NzgtLjE2OCAxLjAyMi43OTYgMS41ODIuOTY3LjU1NSAxLjEyNy4xNDIgMS43NjgtLjEwMS41NDktLjIwOCAxLjg3Ni0uNDM4IDIuNzYgMS4wOTJzLjAyIDIuNTY1LS40MzQgMi45MzZjLS41MzEuNDM1LS45NjkuMzY2LS45NzIgMS40ODEuMDAzIDEuMTE1LjQ0MSAxLjA0Ni45NzIgMS40OC40NTQuMzcyIDEuMzE3IDEuNDA2LjQzNCAyLjkzN2wtLjAwNS4wMDljLS44ODQgMS41Mi0yLjIwNyAxLjI5LTIuNzU1IDEuMDgzLS42NDEtLjI0My0uODAxLS42NTYtMS43NjgtLjEwMS0uOTY0LjU2LS42ODYuOTA0LS43OTYgMS41ODEtLjA5NC41NzktLjU1OSAxLjg0NC0yLjMyNiAxLjg0NGgtLjAxYy0xLjc1OS0uMDA1LTIuMjIyLTEuMjY2LTIuMzE2LTEuODQ0LS4xMS0uNjc3LjE2OC0xLjAyMS0uNzk2LTEuNTgxLS45NjctLjU1NS0xLjEyNy0uMTQyLTEuNzY4LjEwMS0uNTQ5LjIwOC0xLjg3Ni40MzgtMi43Ni0xLjA5MmwtLjAyLS4wMzZ6TTkuOTg0IDIuMTYySDEwYzEuMzU1IDAgMS4zNDIgMS4wMzkgMS4zNTMgMS40MjUuMDA4LjMxMi4wNCAxLjE2IDEuMjU5IDEuODcybC4wMTUuMDA4YzEuMjI1LjcgMS45NzYuMzA0IDIuMjUxLjE1NS4zMzctLjE4MyAxLjIyNi0uNzExIDEuOTAyLjQ0NWwuMDA4LjAxNGMuNjc4IDEuMTczLS4yMjkgMS42ODItLjU1OCAxLjg4NC0uMjY2LjE2My0uOTg0LjYxNS0uOTkxIDIuMDI3di4wMTZjLjAwNyAxLjQxMi43MjUgMS44NjQuOTkxIDIuMDI3LjMyOC4yMDEgMS4yMjkuNzA3LjU2NiAxLjg3bC0uMDA4LjAxNGMtLjY3NyAxLjE3NC0xLjU3MS42NDMtMS45MS40NTktLjI3NS0uMTQ5LTEuMDI2LS41NDUtMi4yNTEuMTU0bC0uMDE1LjAwOWMtMS4yMTkuNzEyLTEuMjUxIDEuNTYtMS4yNTkgMS44NzItLjAxMS4zODYuMDAyIDEuNDI1LTEuMzUzIDEuNDI1cy0xLjM0Mi0xLjAzOS0xLjM1My0xLjQyNWMtLjAwOC0uMzEyLS4wNC0xLjE2LTEuMjU5LTEuODcybC0uMDE1LS4wMDljLTEuMjI1LS42OTktMS45NzYtLjMwMy0yLjI1MS0uMTU0LS4zMzYuMTgzLTEuMjE5LjcwNi0xLjg5NC0uNDMybC0uMDE2LS4wMjdjLS42NzgtMS4xNzQuMjI5LTEuNjgyLjU1OC0xLjg4NC4yNjYtLjE2My45ODQtLjYxNS45OTEtMi4wMjd2LS4wMTZjLS4wMDctMS40MTItLjcyNS0xLjg2NC0uOTkxLTIuMDI3LS4zMjgtLjIwMS0xLjIyOS0uNzA3LS41NjYtMS44N2wuMDA4LS4wMTRjLjY3Ny0xLjE3NCAxLjU3MS0uNjQzIDEuOTEtLjQ1OS4yNzUuMTQ5IDEuMDI2LjU0NSAyLjI1MS0uMTU1bC4wMTUtLjAwOGMxLjIxOS0uNzEyIDEuMjUxLTEuNTYgMS4yNTktMS44NzIuMDEtLjM4NC0uMDAyLTEuNDE3IDEuMzM3LTEuNDI1Ii8+PC9zdmc+)}.ag-charts-icon-step-line-series{--icon: url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyMCIgaGVpZ2h0PSIyMCIgZmlsbD0ibm9uZSI+PHBhdGggZmlsbD0iIzE4MUQxRiIgZmlsbC1ydWxlPSJldmVub2RkIiBkPSJNNiA0aDV2OGgzVjhoNXYxaC00djRoLTVWNUg3djEwSDJ2LTFoNHoiIGNsaXAtcnVsZT0iZXZlbm9kZCIvPjwvc3ZnPg==)}.ag-charts-icon-text-annotation{--icon: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjAiIGhlaWdodD0iMjAiIHZpZXdCb3g9IjAgMCAyMCAyMCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik00IDRIMTZWN0gxNVY1SDEwLjVWMTVIMTRWMTZINlYxNUg5LjVWNUg1VjdINFY0WiIgZmlsbD0iYmxhY2siLz4KPC9zdmc+Cg==)}.ag-charts-icon-trend-line,.ag-charts-icon-trend-line-drawing{--icon: url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyMCIgaGVpZ2h0PSIyMCIgZmlsbD0ibm9uZSI+PHBhdGggZmlsbD0iIzEzMTcyMiIgZmlsbC1ydWxlPSJldmVub2RkIiBkPSJNNS4zMTQgMTAuOTM4YTIuMjUgMi4yNSAwIDEgMSAuMDEtMWg5LjM1MmEyLjI1IDIuMjUgMCAxIDEgLjAxIDF6bS0yLjE4OS43MjlhMS4yNSAxLjI1IDAgMSAwIDAtMi41IDEuMjUgMS4yNSAwIDAgMCAwIDIuNW0xMy43NSAwYTEuMjUgMS4yNSAwIDEgMCAwLTIuNSAxLjI1IDEuMjUgMCAwIDAgMCAyLjUiIGNsaXAtcnVsZT0iZXZlbm9kZCIvPjwvc3ZnPg==)}.ag-charts-icon-unlock,.ag-charts-icon-unlocked{--icon: url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyMCIgaGVpZ2h0PSIyMCIgZmlsbD0ibm9uZSI+PHBhdGggZmlsbD0iIzAwMCIgZmlsbC1ydWxlPSJldmVub2RkIiBkPSJNMTAuNjUxIDMuNWEyLjg5NCAyLjg5NCAwIDAgMC0yLjg5NCAyLjg5NFY5SDE0LjVhMi41IDIuNSAwIDAgMSAyLjUgMi41djNhMi41IDIuNSAwIDAgMS0yLjUgMi41aC04QTIuNSAyLjUgMCAwIDEgNCAxNC41di0zQTIuNSAyLjUgMCAwIDEgNi41IDloLjI1N1Y2LjM5NGEzLjg5NCAzLjg5NCAwIDEgMSA3Ljc4OSAwIC41LjUgMCAwIDEtMSAwQTIuODk0IDIuODk0IDAgMCAwIDEwLjY1IDMuNU02LjUgMTBBMS41IDEuNSAwIDAgMCA1IDExLjV2M0ExLjUgMS41IDAgMCAwIDYuNSAxNmg4YTEuNSAxLjUgMCAwIDAgMS41LTEuNXYtM2ExLjUgMS41IDAgMCAwLTEuNS0xLjV6IiBjbGlwLXJ1bGU9ImV2ZW5vZGQiLz48L3N2Zz4=)}.ag-charts-icon-vertical-line,.ag-charts-icon-vertical-line-drawing{--icon: url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyMCIgaGVpZ2h0PSIyMCIgZmlsbD0ibm9uZSI+PHBhdGggZmlsbD0iIzEzMTcyMiIgZmlsbC1ydWxlPSJldmVub2RkIiBkPSJNMTAuNSA3LjgwNmEyLjI1IDIuMjUgMCAwIDEgMCA0LjM4OFYxOS41aC0xdi03LjMwNmEyLjI1IDIuMjUgMCAwIDEgMC00LjM4OFYuNWgxem0tLjUuOTQ0YTEuMjUgMS4yNSAwIDEgMSAwIDIuNSAxLjI1IDEuMjUgMCAwIDEgMC0yLjUiIGNsaXAtcnVsZT0iZXZlbm9kZCIvPjwvc3ZnPg==)}.ag-charts-icon-zoom-in{--icon: url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyMCIgaGVpZ2h0PSIyMCIgZmlsbD0ibm9uZSI+PHBhdGggZmlsbD0iIzAwMCIgZD0iTTEwIDUuNWEuNS41IDAgMCAxIC41LjV2My41aDMuODc1YS41LjUgMCAwIDEgMCAxSDEwLjV2NC4yNWEuNS41IDAgMSAxLTEgMFYxMC41SDUuNjI1YS41LjUgMCAxIDEgMC0xSDkuNVY2YS41LjUgMCAwIDEgLjUtLjUiLz48L3N2Zz4=)}.ag-charts-icon-zoom-out{--icon: url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyMCIgaGVpZ2h0PSIyMCIgZmlsbD0ibm9uZSI+PHBhdGggZmlsbD0iIzAwMCIgZmlsbC1ydWxlPSJldmVub2RkIiBkPSJNNS41IDEwYS41LjUgMCAwIDEgLjUtLjVoOGEuNS41IDAgMCAxIDAgMUg2YS41LjUgMCAwIDEtLjUtLjUiIGNsaXAtcnVsZT0iZXZlbm9kZCIvPjwvc3ZnPg==)}.ag-charts-icon-high-low-series{--icon: url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyMCIgaGVpZ2h0PSIyMCIgZmlsbD0ibm9uZSI+PHBhdGggZmlsbD0iIzEzMTcyMiIgZmlsbC1ydWxlPSJldmVub2RkIiBkPSJNNyA0aDJ2MTJINFY0aDNNNSA1aDN2MTBINXpNMTEgMTRWNmg1djhoLTVtMS03aDN2NmgtM3oiIGNsaXAtcnVsZT0iZXZlbm9kZCIvPjwvc3ZnPg==)}.ag-charts-icon-hlc-series{--icon: url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyMCIgaGVpZ2h0PSIyMCIgZmlsbD0ibm9uZSI+PHBhdGggZmlsbD0iIzEzMTcyMiIgZmlsbC1ydWxlPSJldmVub2RkIiBkPSJtMTguMTYzIDEuODM3LTUuMzM0IDExLjYyMUw2Ljk1NyA4LjEybC00LjE5OSA5LjYyMi0uOTE2LS40IDQuNzU2LTEwLjlMMTIuNDkgMTEuOCAxNy4yNTQgMS40MnoiIGNsaXAtcnVsZT0iZXZlbm9kZCIvPjxwYXRoIGZpbGw9IiMwMDAiIGZpbGwtb3BhY2l0eT0iLjQiIGZpbGwtcnVsZT0iZXZlbm9kZCIgZD0iTTUuODI1IDIuNzA0LjU1IDEzLjc4NWwuOTAyLjQzIDQuNzI0LTkuOTE5IDYuMDM0IDUuMDI5IDMuMjU1LTguMTQtLjkyOC0uMzctMi43NDUgNi44NnptNy44NTIgMTQuNjM2IDUuNzgtMTMuMTM5LS45MTUtLjQwMi01LjIxOSAxMS44Ni02LjAwNS01LjUwNC0zLjI3OCA3LjY0OC45Mi4zOTQgMi43MjItNi4zNTJ6IiBjbGlwLXJ1bGU9ImV2ZW5vZGQiLz48L3N2Zz4=)}.ag-charts-icon-zoom-in-alt{--icon: url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNCIgaGVpZ2h0PSIyNCIgdmlld0JveD0iMCAwIDI0IDI0IiBmaWxsPSJub25lIiBzdHJva2U9ImN1cnJlbnRDb2xvciIgc3Ryb2tlLXdpZHRoPSIyIiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiIGNsYXNzPSJsdWNpZGUgbHVjaWRlLXpvb20taW4iPjxjaXJjbGUgY3g9IjExIiBjeT0iMTEiIHI9IjgiLz48bGluZSB4MT0iMjEiIHgyPSIxNi42NSIgeTE9IjIxIiB5Mj0iMTYuNjUiLz48bGluZSB4MT0iMTEiIHgyPSIxMSIgeTE9IjgiIHkyPSIxNCIvPjxsaW5lIHgxPSI4IiB4Mj0iMTQiIHkxPSIxMSIgeTI9IjExIi8+PC9zdmc+)}.ag-charts-icon-zoom-out-alt{--icon: url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNCIgaGVpZ2h0PSIyNCIgdmlld0JveD0iMCAwIDI0IDI0IiBmaWxsPSJub25lIiBzdHJva2U9ImN1cnJlbnRDb2xvciIgc3Ryb2tlLXdpZHRoPSIyIiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiIGNsYXNzPSJsdWNpZGUgbHVjaWRlLXpvb20tb3V0Ij48Y2lyY2xlIGN4PSIxMSIgY3k9IjExIiByPSI4Ii8+PGxpbmUgeDE9IjIxIiB4Mj0iMTYuNjUiIHkxPSIyMSIgeTI9IjE2LjY1Ii8+PGxpbmUgeDE9IjgiIHgyPSIxNCIgeTE9IjExIiB5Mj0iMTEiLz48L3N2Zz4=)}.ag-charts-input{--input-layer-active: 1;--input-layer-focus: 2;color:inherit;font-family:var(--ag-charts-input-font-family);font-size:var(--ag-charts-input-font-size);transition-duration:var(--ag-charts-input-transition-duration);transition-property:none;transition-timing-function:var(--ag-charts-input-transition-timing-function)}.ag-charts-input:focus-visible{outline:var(--ag-charts-input-focus-outline);box-shadow:var(--ag-charts-input-focus-box-shadow);z-index:var(--input-layer-focus)}.ag-charts-button{background:var(--ag-charts-input-background-color);border:1px solid var(--ag-charts-input-border-color);border-radius:var(--ag-charts-input-border-radius);cursor:pointer;padding:var(--ag-charts-input-padding);transition-property:background,border-color}.ag-charts-button:hover{background:var(--ag-charts-input-background-color--hover)}.ag-charts-button:has(.ag-charts-icon){padding:2px}.ag-charts-checkbox{appearance:none;background:var(--ag-charts-input-checkbox-background-color);border-radius:9px;cursor:pointer;height:18px;margin:0;transition-duration:var(--ag-charts-input-transition-duration--fast);transition-property:margin;width:29px}.ag-charts-checkbox:before{display:block;background:var(--ag-charts-input-background-color);border-radius:7px;content:" ";height:14px;margin:2px;transition-duration:var(--ag-charts-input-transition-duration--fast);transition-property:margin;transition-timing-function:var(--ag-charts-input-transition-easing);width:14px}.ag-charts-checkbox:checked{background:var(--ag-charts-input-checkbox-background-color--checked)}.ag-charts-checkbox:checked:before{margin-left:13px}.ag-charts-select{background:var(--ag-charts-input-background-color);border:1px solid var(--ag-charts-input-border-color);border-radius:var(--ag-charts-input-border-radius);padding:3px 2px 4px;font-size:inherit}.ag-charts-textarea{--line-height: 1.38;background:var(--ag-charts-input-background-color);border:1px solid var(--ag-charts-input-border-color);border-radius:var(--ag-charts-input-border-radius);line-height:var(--line-height);font-family:var(--ag-charts-input-font-family);font-size:var(--ag-charts-input-font-size);padding:var(--ag-charts-input-padding-large) var(--ag-charts-input-padding)}.ag-charts-textarea[placeholder]:empty:before{color:var(--ag-charts-input-placeholder);content:attr(placeholder)}.ag-charts-proxy-container{pointer-events:none;position:absolute}.ag-charts-proxy-elem{-webkit-appearance:none;appearance:none;background:none;border:none;color:#0000;overflow:hidden;pointer-events:auto;position:absolute}.ag-charts-proxy-elem::-moz-range-thumb,.ag-charts-proxy-elem::-moz-range-track{opacity:0}.ag-charts-proxy-elem::-webkit-slider-runnable-track,.ag-charts-proxy-elem::-webkit-slider-thumb{opacity:0}.ag-charts-proxy-elem:focus-visible{outline:var(--ag-charts-focus-border);box-shadow:var(--ag-charts-focus-border-shadow)}.ag-charts-focus-indicator{position:absolute;display:block;pointer-events:none;user-select:none;width:100%;height:100%}.ag-charts-focus-indicator>div{position:absolute;outline:var(--ag-charts-focus-border);outline-width:2px;box-shadow:var(--ag-charts-focus-border-shadow)}.ag-charts-focus-indicator>svg{width:100%;height:100%;fill:none;stroke:var(--ag-charts-focus-border-color);stroke-width:2px}.ag-charts-overlay{color:#181d1f;pointer-events:none}.ag-charts-overlay.ag-charts-dark-overlay{color:#fff}.ag-charts-overlay--loading{color:#8c8c8c}.ag-charts-overlay__loading-background{background:#fff;pointer-events:none}.ag-charts-overlay.ag-charts-dark-overlay .ag-charts-overlay__loading-background{background:#192232}.ag-charts-tooltip{position:fixed;inset:unset;margin:0;padding:0;overflow:visible;width:max-content;max-width:100%;font:12px Verdana,sans-serif;color:var(--ag-charts-tooltip-text-color);background:var(--ag-charts-tooltip-background-color);border:var(--ag-charts-tooltip-border);border-radius:var(--ag-charts-tooltip-border-radius);box-shadow:0 4px 8px #00000014}.ag-charts-tooltip--compact{--ag-charts-content-padding: var(--ag-charts-content-compact-padding)}.ag-charts-tooltip--arrow:before{--tooltip-arrow-size: 8px;content:"";position:absolute;top:100%;left:50%;margin:0 auto;transform:translate(-50%) translateY(calc(var(--tooltip-arrow-size) * -.5)) rotate(45deg);display:block;width:var(--tooltip-arrow-size);height:var(--tooltip-arrow-size);border:inherit;background:inherit;border-top:none;border-left:none;clip-path:polygon(0 100%,100% 0,100% 100%)}.ag-charts-tooltip--no-interaction{pointer-events:none;user-select:none}.ag-charts-tooltip--wrap-always{overflow-wrap:break-word;word-break:break-word;hyphens:none}.ag-charts-tooltip--wrap-hyphenate{overflow-wrap:break-word;word-break:break-word;hyphens:auto}.ag-charts-tooltip--wrap-on-space{overflow-wrap:normal;word-break:normal}.ag-charts-tooltip--wrap-never{white-space:nowrap}.ag-charts-tooltip-heading,.ag-charts-tooltip-title,.ag-charts-tooltip-label,.ag-charts-tooltip-value{overflow:hidden;text-overflow:ellipsis}.ag-charts-tooltip-content{display:grid;grid:auto-flow minmax(1em,auto) / 1fr;padding:var(--ag-charts-content-padding);gap:var(--ag-charts-content-gap)}.ag-charts-tooltip-content:has(.ag-charts-tooltip-symbol){grid:auto-flow minmax(1em,auto) / auto 1fr}.ag-charts-tooltip-heading{grid-column:1 / -1}.ag-charts-tooltip-symbol{grid-column:1 / 2;align-self:center}.ag-charts-tooltip-symbol svg{display:block}.ag-charts-tooltip-title{grid-column:-2 / -1}.ag-charts-tooltip-row{grid-column:1 / -1;display:flex;gap:16px;align-items:baseline;justify-content:space-between;overflow:hidden}.ag-charts-tooltip-row--inline{grid-column:-2 / -1}.ag-charts-tooltip-label{flex:1;min-width:0}.ag-charts-tooltip-value{min-width:0}.ag-charts-popover{position:absolute;border:var(--ag-charts-popover-border);border-radius:var(--ag-charts-popover-border-radius);background:var(--ag-charts-popover-background-color);color:var(--ag-charts-popover-foreground-color);font-family:var(--ag-charts-font-family);font-size:var(--ag-charts-popover-font-size);box-shadow:var(--ag-charts-popover-shadow);z-index:var(--ag-charts-layer-ui-overlay)}.ag-charts-menu{--item-padding: 6px 12px;--icon-color: var(--ag-charts-popover-foreground-color);display:grid;grid:auto-flow auto / 1fr;column-gap:12px;font-size:var(--ag-charts-popover-font-size-small)}.ag-charts-menu:has(.ag-charts-menu__icon,.ag-charts-menu__row--stroke-width-visible){grid:auto-flow auto / auto 1fr}.ag-charts-menu__row--stroke-width-visible:before{content:"";height:var(--strokeWidth);width:12px;background:var(--icon-color)}.ag-charts-menu__row--stroke-width-visible[aria-disabled=true]:before{filter:grayscale(1);opacity:.5}.ag-charts-menu__row{display:grid;grid-column:1 / -1;grid-template-columns:subgrid;align-items:center;padding:var(--item-padding)}.ag-charts-menu__row:not(.ag-charts-menu__row--active){cursor:pointer}.ag-charts-menu__row:first-child{border-top-left-radius:inherit;border-top-right-radius:inherit}.ag-charts-menu__row:last-child{border-bottom-left-radius:inherit;border-bottom-right-radius:inherit}.ag-charts-menu__row:focus{background:var(--ag-charts-popover-hover-color)}.ag-charts-menu__row:focus-visible{outline:var(--ag-charts-focus-border);box-shadow:var(--ag-charts-focus-border-shadow);z-index:calc(var(--ag-charts-layer-ui-overlay) + 1)}.ag-charts-menu__row--active{--icon-color: var(--ag-charts-popover-active-color);background:var(--ag-charts-popover-active-background-color);color:var(--ag-charts-popover-active-color)}.ag-charts-menu__label{grid-column:-1 / span 1}.ag-charts-toolbar{align-items:center;display:flex;flex-wrap:nowrap;position:absolute}.ag-charts-toolbar__button{align-items:center;background:var(--ag-charts-toolbar-background-color);border:var(--ag-charts-toolbar-border);color:var(--ag-charts-toolbar-foreground-color);cursor:pointer;display:flex;font:var(--ag-charts-toolbar-font-size) var(--ag-charts-font-family);justify-content:center;min-height:var(--ag-charts-toolbar-size);min-width:var(--ag-charts-toolbar-size);padding:var(--ag-charts-toolbar-button-padding);position:relative;transition:background-color .25s ease-in-out,border-color .25s ease-in-out,color .25s ease-in-out;white-space:nowrap}.ag-charts-toolbar__button:hover{background:var(--ag-charts-toolbar-hover-color);z-index:1}.ag-charts-toolbar__button:focus-visible{outline:var(--ag-charts-focus-border);box-shadow:var(--ag-charts-focus-border-shadow);z-index:calc(var(--ag-charts-layer-ui-overlay) + 1)}.ag-charts-toolbar__button--active{background:var(--ag-charts-toolbar-active-background-color);border-color:var(--ag-charts-toolbar-active-color);color:var(--ag-charts-toolbar-active-color);z-index:2}.ag-charts-toolbar__button[aria-disabled=true]{background:var(--ag-charts-toolbar-disabled-background-color);color:var(--ag-charts-toolbar-disabled-foreground-color);cursor:default}.ag-charts-toolbar--horizontal{flex-direction:row;.ag-charts-toolbar__button{margin:0 0 0 -1px}.ag-charts-toolbar__button--first{border-bottom-left-radius:var(--ag-charts-button-radius);border-top-left-radius:var(--ag-charts-button-radius);margin:0}.ag-charts-toolbar__button--last{border-bottom-right-radius:var(--ag-charts-button-radius);border-top-right-radius:var(--ag-charts-button-radius)}}.ag-charts-toolbar--vertical{flex-direction:column;.ag-charts-toolbar__button{margin:-1px 0 0;max-width:100%}.ag-charts-toolbar__button--first{border-top-left-radius:var(--ag-charts-button-radius);border-top-right-radius:var(--ag-charts-button-radius);margin:0}.ag-charts-toolbar__button--last{border-bottom-left-radius:var(--ag-charts-button-radius);border-bottom-right-radius:var(--ag-charts-button-radius)}}.ag-charts-toolbar__icon+.ag-charts-toolbar__label{margin-left:var(--ag-charts-toolbar-gap)}.ag-charts-toolbar__icon,.ag-charts-toolbar__label{pointer-events:none}.ag-charts-floating-toolbar{border:none;display:flex;.ag-charts-toolbar{align-items:unset;position:unset}}.ag-charts-floating-toolbar__drag-handle{align-items:center;background:var(--ag-charts-toolbar-background-color);border:var(--ag-charts-toolbar-border);border-bottom-left-radius:var(--ag-charts-button-radius);border-top-left-radius:var(--ag-charts-button-radius);cursor:grab;display:flex;justify-content:center;min-width:24px;padding-left:0;padding-right:0}.ag-charts-floating-toolbar__drag-handle--dragging{cursor:grabbing}
`}});function Vd(e){return e==="true"}function rT(e){return Number(e)}function ud(e){return e}function yo(e,t,n){n==null||n===""||n===""?e==null||e.removeAttribute(t):e==null||e.setAttribute(t,n.toString())}function bg(e,t){if(t!=null)for(let[n,a]of Object.entries(t))n!=="class"&&yo(e,n,a)}function Ov(e,t,n){var h,S;if(!(e instanceof HTMLElement))return;let a=e.getAttribute(t);return a===null?n:(S=(h=_v[t])==null?void 0:h.call(_v,a))!=null?S:void 0}function hd(e,t,n){e!=null&&(n==null?e.style.removeProperty(t):e.style.setProperty(t,n.toString()))}function Ab(e,t){for(let[n,a]of Object.entries(t))hd(e,n,a)}var _v,Ur=M({"packages/ag-charts-community/src/util/attributeUtil.ts"(){"use strict";_v={role:ud,"aria-checked":Vd,"aria-controls":ud,"aria-describedby":ud,"aria-disabled":Vd,"aria-expanded":Vd,"aria-haspopup":Vd,"aria-hidden":Vd,"aria-label":ud,"aria-labelledby":ud,"aria-live":ud,"aria-orientation":ud,"aria-selected":Vd,"data-preventdefault":Vd,class:ud,id:ud,tabindex:rT,title:ud,placeholder:ud}}}),Pn,ic=M({"packages/ag-charts-community/src/util/guardedElement.ts"(){"use strict";Ur(),oa(),Pn=class zz{constructor(t,n,a){this.element=t,this.topTabGuard=n,this.bottomTabGuard=a,this.destroyFns=[],this.guardTabIndex=0,this.hasFocus=!1,this.initTabGuard(this.topTabGuard,h=>this.onTab(h,!1)),this.initTabGuard(this.bottomTabGuard,h=>this.onTab(h,!0)),this.element.addEventListener("focus",()=>this.onFocus(),{capture:!0}),this.element.addEventListener("blur",h=>this.onBlur(h),{capture:!0})}set tabIndex(t){this.guardTabIndex=t,this.guardTabIndex===0?this.setGuardIndices(void 0):this.hasFocus||this.setGuardIndices(this.guardTabIndex)}destroy(){for(let t of this.destroyFns)t();this.destroyFns.length=0}initTabGuard(t,n){let a=()=>n(t);t.addEventListener("focus",a),this.destroyFns.push(()=>t.removeEventListener("focus",a))}setGuardIndices(t){let n=t;yo(this.topTabGuard,"tabindex",n),yo(this.bottomTabGuard,"tabindex",n)}onFocus(){this.hasFocus=!0,this.guardTabIndex!==0&&this.setGuardIndices(0)}onBlur({relatedTarget:t}){let{topTabGuard:n,bottomTabGuard:a}=this;this.hasFocus=!1,this.guardTabIndex!==0&&t!==n&&t!==a&&this.setGuardIndices(this.guardTabIndex)}onTab(t,n){if(this.guardTabIndex!==0){let a;t.tabIndex===0?(a=this.findExitTarget(!n),this.setGuardIndices(this.guardTabIndex)):a=this.findEnterTarget(n),a==null||a.focus()}}static queryFocusable(t,n){let a=Da();return Array.from(t.querySelectorAll(n)).filter(h=>{if(h instanceof HTMLElement){let S=a.getComputedStyle(h);return S.display!=="none"&&S.visibility!=="none"}return!1})}findEnterTarget(t){let n=zz.queryFocusable(this.element,'[tabindex="0"]'),a=t?n.length-1:0;return n[a]}findExitTarget(t){let n=zz.queryFocusable(yr(),"[tabindex]").filter(S=>S.tabIndex>0).sort((S,E)=>S.tabIndex-E.tabIndex),{before:a,after:h}=zz.findBeforeAndAfter(n,this.guardTabIndex);return t?a:h}static findBeforeAndAfter(t,n){let a=0,h=t.length-1,S,E;for(;a<=h;){let L=Math.floor((a+h)/2),_=t[L].tabIndex;if(_===n){S=t[L-1]||void 0,E=t[L+1]||void 0;break}else _<n?(S=t[L],a=L+1):(E=t[L],h=L-1)}return{before:S,after:E}}}}});function Dp(e,t,n,a){t.addEventListener(n,a);let h=()=>t.removeEventListener(n,a);return e.push(h),h}function sT(e,t,n){Dp(e,t,"keydown",a=>{a.key==="Escape"&&n(a)})}function cL(e,t,n){let a=Dp(e,window,"mousedown",h=>{[0,2].includes(h.button)&&!dL(t,h)&&(n(),a())});return a}function dL(e,t){if(t.target instanceof Element){let{x:n,y:a,width:h,height:S}=e.getBoundingClientRect(),{clientX:E,clientY:L}=t;return E>=n&&L>=a&&E<=n+h&&L<=a+S}return!1}function dM(e){return!(e.shiftKey||e.altKey||e.ctrlKey||e.metaKey)}function Db(e,t,...n){return dM(e)&&(e.key===t||n.some(a=>e.key===a))}function uM(e,t,n,a){n&&Dp(e,t,"keydown",h=>{Db(h,a)&&n.focus()})}function Eb(e,t,n,a,h,S){uM(e,t,h,S),uM(e,t,n,a),Dp(e,t,"keydown",E=>{Db(E,a,S)&&E.preventDefault()})}function Ib(e){return e.toolbar.role="toolbar",e.toolbar.ariaOrientation=e.orientation,e.toolbar.ariaHidden=(e.buttons.length===0).toString(),eS(e)}function eS(e){let{orientation:t,buttons:n,wrapAround:a=!1,onEscape:h,onFocus:S,onBlur:E}=e,{nextKey:L,prevKey:_}=Sg[t],N=J=>{J.target&&"tabIndex"in J.target&&(n.forEach(re=>re.tabIndex=-1),J.target.tabIndex=0)},[V,q]=a?[n.length,n.length]:[0,1/0],Y=[];for(let J=0;J<n.length;J++){let re=n[(V+J-1)%q],ce=n[J],he=n[(V+J+1)%q];Dp(Y,ce,"focus",N),S&&Dp(Y,ce,"focus",S),E&&Dp(Y,ce,"blur",E),h&&sT(Y,ce,h),Eb(Y,ce,he,L,re,_),ce.tabIndex=J===0?0:-1}return Y}function lT(e){var J;let{sourceEvent:t,orientation:n,menu:a,buttons:h,closeCallback:S,autoCloseOnBlur:E=!1}=e,{nextKey:L,prevKey:_}=Sg[n],N=Cg(t);yo(N,"aria-expanded",!0);let V=new gM(a,N,S),q=()=>V.close(),{destroyFns:Y}=V;if(a.role="menu",a.ariaOrientation=n,Y.push(...eS({orientation:n,buttons:h,onEscape:q,wrapAround:!0})),a.tabIndex=-1,sT(Y,a,q),Dp(Y,a,"keydown",re=>{var ce;re.target===a&&(re.key===L||re.key===_)&&(re.preventDefault(),(ce=h[0])==null||ce.focus())}),E){let re=ce=>{!h.includes(ce.relatedTarget)&&q()};for(let ce of h)Dp(Y,ce,"blur",re)}return(J=h[0])==null||J.focus({preventScroll:!0}),V}function hM(e,t){return n=>{if(e.ariaDisabled==="true")return n.preventDefault();t(n)}}function Qs(e){return"button"in e?e.button===0:dM(e)&&(e.code==="Space"||e.key==="Enter")}function Cg(e){if((e==null?void 0:e.target)instanceof HTMLElement&&"tabindex"in e.target.attributes)return e.target}function Fv(e){let t=n=>{if(n.defaultPrevented)return;Ov(n.target,"data-preventdefault",!0)&&Db(n,"ArrowRight","ArrowLeft","ArrowDown","ArrowUp")&&n.preventDefault()};return e.addEventListener("keydown",t),()=>e.removeEventListener("keydown",t)}var Sg,gM,Ep=M({"packages/ag-charts-community/src/util/keynavUtil.ts"(){"use strict";Ur(),Sg={horizontal:{nextKey:"ArrowRight",prevKey:"ArrowLeft"},vertical:{nextKey:"ArrowDown",prevKey:"ArrowUp"}},gM=class{constructor(e,t,n){this.lastFocus=t,this.closeCallback=n,this.destroyFns=[],this.destroyFns.push(cL(this.destroyFns,e,()=>this.close(!0)))}close(e){this.destroyFns.forEach(t=>t()),this.destroyFns.length=0,this.closeCallback(),this.finishClosing(e)}finishClosing(e){var t;this.destroyFns.forEach(n=>n()),this.destroyFns.length=0,yo(this.lastFocus,"aria-expanded",!1),e||(t=this.lastFocus)==null||t.focus({preventScroll:!0}),this.lastFocus=void 0}}}}),OD,uL=M({"packages/ag-charts-community/src/util/sizeMonitor.ts"(){"use strict";oa(),OD=class{constructor(){var e;this.elements=new Map,this.documentReady=!1,this.queuedObserveRequests=[],this.onLoad=()=>{this.documentReady=!0,this.queuedObserveRequests.forEach(([t,n])=>this.observe(t,n)),this.queuedObserveRequests=[]},typeof ResizeObserver!="undefined"&&(this.resizeObserver=new ResizeObserver(t=>{for(let{target:n,contentRect:{width:a,height:h}}of t){let S=this.elements.get(n);this.checkSize(S,n,a,h)}}),this.documentReady=yr("readyState")==="complete",this.documentReady||(e=Da())==null||e.addEventListener("load",this.onLoad))}destroy(){var e,t;(e=Da())==null||e.removeEventListener("load",this.onLoad),(t=this.resizeObserver)==null||t.disconnect(),this.resizeObserver=null}checkSize(e,t,n,a){var h,S;e&&(n!==((h=e.size)==null?void 0:h.width)||a!==((S=e.size)==null?void 0:S.height))&&(e.size={width:n,height:a},e.cb(e.size,t))}observe(e,t){var a;if(!this.documentReady){this.queuedObserveRequests.push([e,t]);return}this.elements.has(e)?this.removeFromQueue(e):(a=this.resizeObserver)==null||a.observe(e);let n={cb:t};this.elements.set(e,n)}unobserve(e){var t;(t=this.resizeObserver)==null||t.unobserve(e),this.elements.delete(e),this.removeFromQueue(e),this.elements.size||this.destroy()}removeFromQueue(e){this.queuedObserveRequests=this.queuedObserveRequests.filter(([t])=>t!==e)}}}}),pM,mM=M({"packages/ag-charts-community/src/dom/domLayout.html"(){pM='<div role="presentation" class="ag-charts-wrapper ag-charts-styles" data-ag-charts><div role="presentation" class="ag-charts-canvas-center"><div role="presentation" class="ag-charts-canvas-container"><div role="presentation" class="ag-charts-canvas" aria-hidden="true"></div><div role="figure" class="ag-charts-canvas-proxy"><div role="presentation" class="ag-charts-series-area"></div></div><div role="presentation" class="ag-charts-canvas-overlay"></div></div></div></div>'}});function cT(e,t){if(typeof IntersectionObserver=="undefined")return;let n=new IntersectionObserver(a=>{for(let h of a)h.target===e&&t(h.intersectionRatio)},{root:e});return n.observe(e),n}function Tb(e,t){let n=va("div");return n.className="ag-charts-tab-guard",e.insertAdjacentElement(t,n),n}var _D,fM,wg,vM,FD=M({"packages/ag-charts-community/src/dom/domManager.ts"(){"use strict";jn(),LD(),Ur(),ur(),oa(),ic(),Ep(),uL(),mM(),_D=["styles","canvas","canvas-center","canvas-container","canvas-overlay","canvas-proxy","series-area"],fM=new Map([["styles",{childElementType:"style"}],["canvas",{childElementType:"canvas"}],["canvas-proxy",{childElementType:"div"}],["canvas-overlay",{childElementType:"div"}],["canvas-center",{childElementType:"div"}],["series-area",{childElementType:"div"}]]),wg={x:0,y:0,width:0,height:0,top:0,bottom:0,left:0,right:0,toJSON(){return wg}},vM=class extends ss{constructor(e,t){super(),this.styles=new Map,this.container=void 0,this.containerSize=void 0,this.sizeMonitor=new OD;let n=va("div");n.innerHTML=pM,this.element=n.children.item(0),this.styleRootElement=t,this.rootElements=_D.reduce((L,_)=>{let N=`ag-charts-${_}`,V=this.element.classList.contains(N)?this.element:this.element.querySelector(`.${N}`);if(!V)throw new Error(`AG Charts - unable to find DOM element ${N}`);return L[_]={element:V,children:new Map,listeners:[]},L},{});let a=!1;this.observer=cT(this.element,L=>{L===0&&!a&&this.listeners.dispatch("hidden",{type:"hidden"}),a=L===0}),this.setSizeOptions(),this.addStyles("ag-charts-community",PD),e&&this.setContainer(e),this.destroyFns.push(Fv(this.element));let h=this.element.querySelector(".ag-charts-canvas-center");if(h==null)throw new Error("Error initializing tab guards");let S=Tb(h,"beforebegin"),E=Tb(h,"afterend");this.tabGuards=new Pn(h,S,E)}destroy(){var e;super.destroy(),(e=this.observer)==null||e.unobserve(this.element),this.container&&this.sizeMonitor.unobserve(this.container),Object.values(this.rootElements).forEach(t=>{t.children.forEach(n=>n.remove()),t.element.remove()}),this.element.remove()}setSizeOptions(e=300,t=300,n,a){let{style:h}=this.element;h.width=`${n!=null?n:e}px`,h.height=`${a!=null?a:t}px`}updateContainerSize(){var t,n,a,h;let{style:e}=this.rootElements["canvas-center"].element;e.width=`${(n=(t=this.containerSize)==null?void 0:t.width)!=null?n:0}px`,e.height=`${(h=(a=this.containerSize)==null?void 0:a.height)!=null?h:0}px`}setTabGuardIndex(e){this.tabGuards.tabIndex=e}setContainer(e){if(e===this.container)return;if(this.container&&(this.container.removeChild(this.element),this.sizeMonitor.unobserve(this.container)),!(this.getShadowDocumentRoot(e)!=null))for(let n of this.rootElements.styles.children.keys())this.removeChild("styles",n);this.container=e;for(let[n,a]of this.styles)this.addStyles(n,a);e.appendChild(this.element),this.sizeMonitor.observe(e,n=>{this.containerSize=n,this.updateContainerSize(),this.listeners.dispatch("resize",{type:"resize"})}),this.listeners.dispatch("container-changed",{type:"container-changed"})}setThemeClass(e){let t="ag-charts-theme-";this.element.classList.forEach(n=>{n.startsWith(t)&&n!==e&&this.element.classList.remove(n)}),this.element.classList.add(e)}updateCanvasLabel(e){yo(this.rootElements["canvas-proxy"].element,"aria-label",e)}getEventElement(e,t){return["focus","blur","keydown","keyup"].includes(t)?this.rootElements["series-area"].element:e}addEventListener(e,t,n){this.getEventElement(this.element,e).addEventListener(e,t,n)}removeEventListener(e,t,n){this.getEventElement(this.element,e).removeEventListener(e,t,n)}getBoundingClientRect(){return this.rootElements.canvas.element.getBoundingClientRect()}getOverlayClientRect(){var a,h;let e=Da(),t=new Ui(0,0,e.innerWidth,e.innerHeight),n=this.getRawOverlayClientRect();return(h=(a=t.intersection(n))==null?void 0:a.toDOMRect())!=null?h:wg}getRawOverlayClientRect(){var h,S;let e=this.element;for(;e!=null;){let E=(h=e.computedStyleMap)==null?void 0:h.call(e),L=(S=E==null?void 0:E.get("overflow-y"))==null?void 0:S.toString();if(L==="auto"||L==="scroll")return Ui.fromDOMRect(e.getBoundingClientRect());e=e.parentElement}let t=this.getShadowDocumentRoot();if(t!=null)return Ui.fromDOMRect(t.getBoundingClientRect());let{innerWidth:n,innerHeight:a}=Da();return new Ui(0,0,n,a)}getShadowDocumentRoot(e=this.container){var n,a;let t=(a=(n=e==null?void 0:e.ownerDocument)==null?void 0:n.body)!=null?a:yr("body");for(;e!=null;){if(e===t)return;if(e.parentNode instanceof DocumentFragment)return e;e=e.parentNode}return this.container}getParent(e){return this.rootElements[e].element}getChildBoundingClientRect(e){let{children:t}=this.rootElements[e],n=[];for(let a of t.values())n.push(Ui.fromDOMRect(a.getBoundingClientRect()));return Ui.merge(n)}calculateCanvasPosition(e){var E;let t=0,n=0,{x:a=0,y:h=0}=(E=this.getChildBoundingClientRect("canvas"))!=null?E:{},S=e.getBoundingClientRect();return t=S.x-a,n=S.y-h,{x:t,y:n}}isManagedChildDOMElement(e,t,n){let{children:a}=this.rootElements[t],h=a==null?void 0:a.get(n);return h!=null&&e.contains(h)}contains(e,t){return t==null?this.element.contains(e):this.rootElements[t].element.contains(e)}addStyles(e,t){let n="data-ag-charts";if(this.styles.set(e,t),this.container==null)return;let a=E=>E.getAttribute(n)===e,h=E=>{let L=new Set(["TITLE","META"]),_=!0,N;for(let q of E.children){if(_&&L.has(q.tagName)){N=q;continue}if(_=!1,a(q))return;q.hasAttribute(n)&&(N=q)}let V=va("style");return N!=null?E.insertBefore(V,N.nextSibling):E.prepend(V),V},S;this.styleRootElement?S=h(this.styleRootElement):this.getShadowDocumentRoot(this.container)!=null?S=this.addChild("styles",e):S=h(yr("head")),!(S==null||a(S))&&(S.setAttribute(n,e),S.innerHTML=t)}removeStyles(e){this.removeChild("styles",e)}updateCursor(e){this.element.style.cursor=e}getCursor(){return this.element.style.cursor}addChild(e,t,n,a){var N;let{element:h,children:S,listeners:E}=this.rootElements[e];if(!S)throw new Error("AG Charts - unable to create DOM elements after destroy()");if(S.has(t))return S.get(t);let{childElementType:L="div"}=(N=fM.get(e))!=null?N:{};if(n&&n.tagName.toLowerCase()!==L.toLowerCase())throw new Error("AG Charts - mismatching DOM element type");let _=n!=null?n:va(L);for(let[V,q,Y]of E)_.addEventListener(V,q,Y);if(S.set(t,_),a){let V=h.querySelector(a.query);if(V==null)throw new Error(`AG Charts - addChild query failed ${a.query}`);V.insertAdjacentElement(a.where,_)}else h==null||h.appendChild(_);return _}removeChild(e,t){var a;let{children:n}=this.rootElements[e];n&&((a=n.get(t))==null||a.remove(),n.delete(t))}incrementDataCounter(e){var n;let{dataset:t}=this.element;(n=t[e])!=null||(t[e]="0"),t[e]=String(Number(t[e])+1)}setDataBoolean(e,t){this.element.dataset[e]=String(t)}}}});function Nv(e,t){let{offsetX:n,offsetY:a,clientX:h,clientY:S}=t;return{type:e,offsetX:n,offsetY:a,clientX:h,clientY:S,sourceEvent:t}}var Rb,Hd,zv,Pb=M({"packages/ag-charts-community/src/widget/widgetEvents.ts"(){"use strict";Rb=["blur","change","contextmenu","focus","keydown","keyup","click","dblclick","mouseenter","mousemove","mouseleave","wheel"],Hd={blur:e=>({type:"blur",sourceEvent:e}),change:e=>({type:"change",sourceEvent:e}),contextmenu:e=>Nv("contextmenu",e),focus:e=>({type:"focus",sourceEvent:e}),keydown:e=>({type:"keydown",sourceEvent:e}),keyup:e=>({type:"keyup",sourceEvent:e}),click:e=>Nv("click",e),dblclick:e=>Nv("dblclick",e),mouseenter:e=>Nv("mouseenter",e),mousemove:e=>Nv("mousemove",e),mouseleave:e=>Nv("mouseleave",e),wheel:e=>{let{offsetX:t,offsetY:n,clientX:a,clientY:h,deltaX:S,deltaY:E}=e;return{type:"wheel",offsetX:t,offsetY:n,clientX:a,clientY:h,deltaX:S,deltaY:E,sourceEvent:e}}},zv=class{static alloc(e,t){return Hd[e](t)}static isHTMLEvent(e){return Rb.includes(e)}}}}),ND,tS=M({"packages/ag-charts-community/src/widget/widgetListenerHTML.ts"(){"use strict";Pb(),ND=class{constructor(){this.maps={}}lazyGetMap(e){let t=this.maps[e];return t===void 0&&(t=new Map,this.maps[e]=t),t}add(e,t,n){let a=this.lazyGetMap(e);if(a.has(n))throw new Error("AG Charts - duplicate add(handler)");let h=S=>{let E=zv.alloc(e,S);n(E,t)};t.getElement().addEventListener(e,h),a.set(n,h)}remove(e,t,n){let a=this.lazyGetMap(e),h=a.get(n);h&&t.getElement().removeEventListener(e,h),a.delete(n)}destroy(e){for(let t of Object.keys(this.maps))this.typedDestroy(t,e)}typedDestroy(e,t){let n=this.maps[e];if(n!=null)for(let[a,h]of n.entries())t.getElement().removeEventListener(e,h)}}}});function zD(e,t,n){let a=n.pageX-t.pageX,h=n.pageY-t.pageY;return{type:e,offsetX:t.offsetX+a,offsetY:t.offsetY+h,clientX:n.clientX,clientY:n.clientY,originDeltaX:a,originDeltaY:h,sourceEvent:n}}function iS(e,t,n){if(e.globalDragCallbacks!=null)return;let a=Da(),h=L=>{L.stopPropagation(),L.stopImmediatePropagation()},S=L=>{var _;L.stopPropagation(),L.stopImmediatePropagation(),(_=e.globalDragCallbacks)==null||_.move(L)},E=L=>{var _;L.button===0&&(L.stopPropagation(),L.stopImmediatePropagation(),a.removeEventListener("mousedown",h,{capture:!0}),a.removeEventListener("mouseenter",h,{capture:!0}),a.removeEventListener("mouseleave",h,{capture:!0}),a.removeEventListener("mouseout",h,{capture:!0}),a.removeEventListener("mouseover",h,{capture:!0}),a.removeEventListener("mousemove",S,{capture:!0}),a.removeEventListener("mouseup",E,{capture:!0}),(_=e.globalDragCallbacks)==null||_.up(L),e.globalDragCallbacks=void 0)};a.addEventListener("mousedown",h,{capture:!0}),a.addEventListener("mouseenter",h,{capture:!0}),a.addEventListener("mouseleave",h,{capture:!0}),a.addEventListener("mouseout",h,{capture:!0}),a.addEventListener("mouseover",h,{capture:!0}),a.addEventListener("mousemove",S,{capture:!0}),a.addEventListener("mouseup",E,{capture:!0}),e.globalDragCallbacks=t,e.globalDragCallbacks.down(n)}var xl,Lb=M({"packages/ag-charts-community/src/widget/widgetListenerInternal.ts"(){"use strict";_o(),oa(),Ta(),xl=class Bz{destroy(){var t;(t=this.dragTriggerRemovers)==null||t.forEach(n=>n()),this.dragTriggerRemovers=void 0,this.dragStartListeners=void 0,this.dragMoveListeners=void 0,this.dragEndListeners=void 0,Bz.globalDragCallbacks===this.localDragCallbacks&&(Bz.globalDragCallbacks=void 0)}add(t,n,a){var h,S,E;switch(t){case"drag-start":{(h=this.dragStartListeners)!=null||(this.dragStartListeners=[]),this.dragStartListeners.push(a),this.registerDragTrigger(n,a);break}case"drag-move":{(S=this.dragMoveListeners)!=null||(this.dragMoveListeners=[]),this.dragMoveListeners.push(a);break}case"drag-end":{(E=this.dragEndListeners)!=null||(this.dragEndListeners=[]),this.dragEndListeners.push(a);break}}}remove(t,n,a){switch(t){case"drag-start":return this.removeHandler(this.dragStartListeners,a);case"drag-move":return this.removeHandler(this.dragMoveListeners,a);case"drag-end":return this.removeHandler(this.dragEndListeners,a)}}removeHandler(t,n){let a=t==null?void 0:t.indexOf(n);a!==void 0&&(t==null||t.splice(a,1))}registerDragTrigger(t,n){var h;let a=S=>S.button===0&&this.startDrag(t,S);t.getElement().addEventListener("mousedown",a),(h=this.dragTriggerRemovers)!=null||(this.dragTriggerRemovers=new Map),this.dragTriggerRemovers.set(n,()=>t.getElement().removeEventListener("mousedown",a))}startDrag(t,n){let a={pageX:NaN,pageY:NaN,offsetX:NaN,offsetY:NaN};Ic(["pageX","pageY","offsetX","offsetY"],a,n);let h={down:S=>{this.localDragCallbacks=h;let E=zD("drag-start",a,S);this.dispatch("drag-start",t,E)},move:S=>{let E=zD("drag-move",a,S);this.dispatch("drag-move",t,E)},up:S=>{let E=zD("drag-end",a,S);this.dispatch("drag-end",t,E),this.endDrag(t,E)}};iS(Bz,h,n)}endDrag(t,{sourceEvent:n,clientX:a,clientY:h}){var L;let S=t.getElement(),E=S.getBoundingClientRect();ul.containsPoint(E,a,h)||(S.dispatchEvent(new MouseEvent("mouseleave",n)),(L=n.target)==null||L.dispatchEvent(new MouseEvent("mouseenter",n)))}dispatch(t,n,a){var h,S,E;switch(t){case"drag-start":return(h=this.dragStartListeners)==null?void 0:h.forEach(L=>L(a,n));case"drag-move":return(S=this.dragMoveListeners)==null?void 0:S.forEach(L=>L(a,n));case"drag-end":return(E=this.dragEndListeners)==null?void 0:E.forEach(L=>L(a,n))}}}}}),BD,Ru,Zm=M({"packages/ag-charts-community/src/widget/widget.ts"(){"use strict";Ur(),oa(),Pb(),tS(),Lb(),BD=class{constructor(e){this.elem=e}setBounds(e){var t;zm((t=this.elemContainer)!=null?t:this.elem,e)}getBounds(){var e;return PI((e=this.elemContainer)!=null?e:this.elem)}static setElementContainer(e,t){let n=e.getBounds();zm(t,n),Ab(e.elem,{width:"100%",height:"100%"}),e.elem.remove(),e.elemContainer=t,e.elemContainer.replaceChildren(e.elem)}},Ru=class extends BD{constructor(e){super(e),this.elem=e,this.index=NaN,this.children=[]}getElement(){return this.elem}get clientWidth(){return this.elem.clientWidth}get clientHeight(){return this.elem.clientHeight}destroy(){var e,t,n,a;(e=this.parent)==null||e.removeChild(this),this.children.forEach(h=>{h.parent=void 0,h.destroy()}),this.children.length=0,this.destructor(),this.elem.remove(),(t=this.elemContainer)==null||t.remove(),(n=this.internalListener)==null||n.destroy(),(a=this.htmlListener)==null||a.destroy(this)}setHidden(e){hd(this.elem,"display",e?"none":void 0)}isHidden(){var e,t;return((t=(e=Da())==null?void 0:e.getComputedStyle)==null?void 0:t.call(e,this.elem).display)==="none"}setCursor(e){hd(this.elem,"cursor",e)}setTextContent(e){this.elem.textContent=e!=null?e:null}setAriaDescribedBy(e){yo(this.elem,"aria-describedby",e)}setAriaHidden(e){yo(this.elem,"aria-hidden",e)}setAriaLabel(e){yo(this.elem,"aria-label",e)}setInnerHTML(e){this.elem.innerHTML=e}isDisabled(){return Ov(this.elem,"aria-disabled",!1)}parseFloat(e){return e===""?0:parseFloat(e)}cssLeft(){return this.parseFloat(this.elem.style.left)}cssTop(){return this.parseFloat(this.elem.style.top)}focus(){this.elem.focus()}setPreventsDefault(e){yo(this.elem,"data-preventdefault",e)}setTabIndex(e){yo(this.elem,"tabindex",e)}addChild(e){this.addChildToDOM(e,this.getBefore(e)),this.children.push(e),e.index=this.children.length-1,e.parent=this,this.onChildAdded(e)}removeChild(e){let t=this.children.findIndex(n=>n===e);this.children.splice(t,1),this.removeChildFromDOM(e),this.onChildRemoved(e)}addClass(...e){this.elem.classList.add(...e)}removeClass(...e){this.elem.classList.remove(...e)}toggleClass(e,t){this.elem.classList.toggle(e,t)}appendOrInsert(e,t){t?t.getElement().insertAdjacentElement("beforebegin",e):this.elem.appendChild(e)}addChildToDOM(e,t){this.appendOrInsert(e.getElement(),t)}removeChildFromDOM(e){this.elem.removeChild(e.getElement())}onChildAdded(e){}onChildRemoved(e){}getBefore({domIndex:e}){if(e!==void 0)return this.children.filter(t=>t.domIndex!==void 0&&t.domIndex>e).reduce((t,n)=>!t||n.domIndex<t.domIndex?n:t,void 0)}addListener(e,t){var n,a;zv.isHTMLEvent(e)?((n=this.htmlListener)!=null||(this.htmlListener=new ND),this.htmlListener.add(e,this,t)):((a=this.internalListener)!=null||(this.internalListener=new xl),this.internalListener.add(e,this,t))}removeListener(e,t){var n,a;zv.isHTMLEvent(e)?(n=this.htmlListener)==null||n.remove(e,this,t):this.htmlListener!=null&&((a=this.internalListener)==null||a.remove(e,this,t))}}}}),$m,Fh=M({"packages/ag-charts-community/src/widget/boundedTextWidget.ts"(){"use strict";oa(),Zm(),$m=class extends Ru{constructor(){super(yr().createElement("div")),this.textElement=vp("http://www.w3.org/2000/svg","text"),this.textElement.role="presentation",this.svgElement=vp("http://www.w3.org/2000/svg","svg"),this.svgElement.appendChild(this.textElement),this.svgElement.style.width="100%",this.svgElement.style.opacity="0",this.svgElement.role="presentation",this.elem.appendChild(this.svgElement),this.elem.role="presentation"}set textContent(e){var a;this.textElement.textContent=e;let t=this.textElement,n=(a=t.getBBox)==null?void 0:a.call(t);n&&this.svgElement.setAttribute("viewBox",`${n.x} ${n.y} ${n.width} ${n.height}`)}get textContent(){return this.textElement.textContent}destructor(){}}}}),Pu,nS=M({"packages/ag-charts-community/src/widget/buttonWidget.ts"(){"use strict";Ur(),oa(),Zm(),Pu=class extends Ru{constructor(){super(yr().createElement("button")),this.setEnabled(!0)}destructor(){}setEnabled(e){yo(this.elem,"aria-disabled",!e),hd(this.elem,"pointer-events",e?void 0:"none")}addListener(e,t){return super.addListener(e,(n,a)=>{(e==="click"||e==="dblclick")&&this.isDisabled()||t(n,a)})}}}}),Ip,aS=M({"packages/ag-charts-community/src/widget/groupWidget.ts"(){"use strict";Ur(),oa(),Zm(),Ip=class extends Ru{constructor(){super(yr().createElement("div")),yo(this.elem,"role","group")}destructor(){}}}}),yM,bM=M({"packages/ag-charts-community/src/widget/rovingTabContainerWidget.ts"(){"use strict";Ur(),oa(),Ep(),Zm(),yM=class extends Ru{constructor(e,t){super(yr().createElement("div")),this.focusedChildIndex=0,this.onChildFocus=(n,a)=>{let h=this.children[this.focusedChildIndex];this.focusedChildIndex=a.index,h==null||h.setTabIndex(-1),a.setTabIndex(0)},this.onChildKeyDown=(n,a)=>{var _;let h=this.orientation,[S,E]=h==="both"?[Sg.horizontal,Sg.vertical]:[Sg[h],void 0],L=-1;if(dM(n.sourceEvent)){let N=n.sourceEvent.key;N===S.nextKey||N===(E==null?void 0:E.nextKey)?L=a.index+1:(N===S.prevKey||N===(E==null?void 0:E.prevKey))&&(L=a.index-1)}(_=this.children[L])==null||_.focus()},this.orientation=e,yo(this.elem,"role",t)}get orientation(){var e;return(e=Ov(this.elem,"aria-orientation"))!=null?e:"both"}set orientation(e){yo(this.elem,"aria-orientation",e!=="both"?e:void 0)}focus(){var e;(e=this.children[this.focusedChildIndex])==null||e.focus()}onChildAdded(e){e.addListener("focus",this.onChildFocus),e.addListener("keydown",this.onChildKeyDown),e.setTabIndex(this.children.length===1?0:-1)}onChildRemoved(e){e.removeListener("focus",this.onChildFocus),e.removeListener("keydown",this.onChildKeyDown)}}}}),CM,hL=M({"packages/ag-charts-community/src/widget/listWidget.ts"(){"use strict";Ur(),oa(),bM(),Zm(),CM=class extends yM{constructor(){super("both","list"),this.setHidden(!0)}destructor(){this.children.forEach(e=>e.getElement().parentElement.remove())}addChildToDOM(e,t){let n=yr().createElement("div");yo(n,"role","listitem"),hd(n,"position","absolute"),Ru.setElementContainer(e,n),this.appendOrInsert(n,t),this.setHidden(!1)}removeChildFromDOM(e){e.getElement().parentElement.remove(),this.setHidden(this.children.length===0)}setHidden(e){this.children.length===0&&(e=!0),super.setHidden(e)}}}}),Tp,Ob=M({"packages/ag-charts-community/src/widget/nativeWidget.ts"(){"use strict";Zm(),Tp=class extends Ru{constructor(e){super(e)}destructor(){}}}}),SM,oS,wM=M({"packages/ag-charts-community/src/widget/sliderWidget.ts"(){"use strict";Ur(),oa(),Rh(),zn(),Zm(),SM=class RO extends Ru{constructor(){super(yr().createElement("input")),this._step=RO.STEP_ONE,this.orientation="both"}get step(){return this._step}set step(t){this._step=t,this.getElement().step=t.attributeValue}get keyboardStep(){var t,n;return(n=(t=this._keyboardStep)==null?void 0:t.step)!=null?n:this._step}set keyboardStep(t){var n;if(t!==((n=this._keyboardStep)==null?void 0:n.step)&&(this._keyboardStep!==void 0&&(this.removeListener("keydown",this._keyboardStep.onKeyDown),this.removeListener("keyup",this._keyboardStep.onKeyUp),this.removeListener("blur",this._keyboardStep.onBlur),this._keyboardStep=void 0),t!==void 0)){let a=()=>this.getElement().step=t.attributeValue,h=()=>this.getElement().step=this._step.attributeValue;this._keyboardStep={step:t,onKeyDown:a,onKeyUp:h,onBlur:h},this.addListener("keydown",this._keyboardStep.onKeyDown),this.addListener("keyup",this._keyboardStep.onKeyUp),this.addListener("blur",this._keyboardStep.onBlur)}}get orientation(){var t;return(t=Ov(this.elem,"aria-orientation"))!=null?t:"both"}set orientation(t){yo(this.elem,"aria-orientation",t!=="both"?t:void 0),RO.registerDefaultPreventers(this,t)}destructor(){}clampValueRatio(t,n){let a=this.getValueRatio(),h=Gn(t,a,n);return h!==a&&this.setValueRatio(h),h}setValueRatio(t,n){let{divider:a}=this.step,h=Math.round(t*1e4)/a,{ariaValueText:S=D0(h/a)}=n!=null?n:{},E=this.getElement();E.value=`${h}`,E.ariaValueText=S}getValueRatio(){return parseFloat(this.getElement().value)/this.step.divider}static registerDefaultPreventers(t,n){n==="both"?t.removeListener("keydown",RO.onKeyDown):t.addListener("keydown",RO.onKeyDown)}static onKeyDown(t,n){let a=[],{orientation:h}=n;h==="horizontal"?a=["ArrowUp","ArrowDown"]:h==="vertical"&&(a=["ArrowLeft","ArrowRight"]),a.includes(t.sourceEvent.code)&&t.sourceEvent.preventDefault()}},SM.STEP_ONE={attributeValue:"1",divider:1},SM.STEP_HUNDRETH={attributeValue:"0.01",divider:100},oS=SM}}),dT,gL=M({"packages/ag-charts-community/src/widget/switchWidget.ts"(){"use strict";Ur(),nS(),dT=class extends Pu{constructor(){super(),yo(this.elem,"role","switch"),this.setChecked(!1)}setChecked(e){yo(this.elem,"aria-checked",e)}}}}),rS,Wd=M({"packages/ag-charts-community/src/widget/toolbarWidget.ts"(){"use strict";bM(),rS=class extends yM{constructor(e="horizontal"){super(e,"toolbar")}destructor(){}}}});function Qm(e,t){var n;return((n=t.params)==null?void 0:n.type)===e}function xs(e){if(e==="button")return new Pu;if(e==="slider")return new oS;if(e==="toolbar")return new rS;if(e==="group")return new Ip;if(e==="list")return new CM;if(e==="region")return new Tp(va("div"));if(e==="text")return new $m;if(e==="listswitch")return new dT;throw Error("AG Charts - error allocating meta")}function Ud(e){let t={params:e,result:void 0};return t.result=xs(t.params.type),t}var GD,uT=M({"packages/ag-charts-community/src/dom/proxyInteractionService.ts"(){"use strict";Ur(),oa(),Fh(),nS(),aS(),hL(),Ob(),wM(),gL(),Wd(),GD=class{constructor(e,t){this.localeManager=e,this.domManager=t,this.destroyFns=[]}destroy(){this.destroyFns.forEach(e=>e())}addLocalisation(e){e(),this.destroyFns.push(this.localeManager.addListener("locale-changed",e))}createProxyContainer(e){let t=Ud(e),{params:n,result:a}=t,h=a.getElement();return this.domManager.addChild("canvas-proxy",n.domManagerId,h),h.classList.add(...n.classList,"ag-charts-proxy-container"),h.role=n.type,"ariaOrientation"in n&&(h.ariaOrientation=n.ariaOrientation),Qm("toolbar",t)&&(t.result.orientation=t.params.orientation),this.addLocalisation(()=>{h.ariaLabel=this.localeManager.t(n.ariaLabel.id,n.ariaLabel.params)}),a}createProxyElement(e){let t=Ud(e);if(Qm("button",t)){let{params:n,result:a}=t,h=a.getElement();if(this.initInteract(n,a),typeof n.textContent=="string")h.textContent=n.textContent;else{let{textContent:S}=n;this.addLocalisation(()=>{h.textContent=this.localeManager.t(S.id,S.params)})}this.setParent(t.params,t.result)}if(Qm("slider",t)){let{params:n,result:a}=t,h=a.getElement();this.initInteract(n,a),h.type="range",h.role="presentation",h.style.margin="0px",this.addLocalisation(()=>{h.ariaLabel=this.localeManager.t(n.ariaLabel.id,n.ariaLabel.params)}),this.setParent(t.params,t.result)}if(Qm("text",t)){let{params:n,result:a}=t;this.initElement(n,a),this.setParent(t.params,t.result)}if(Qm("listswitch",t)){let{params:n,result:a}=t;this.initInteract(n,a),a.setTextContent(n.textContent),a.setChecked(n.ariaChecked),a.setAriaDescribedBy(n.ariaDescribedBy),this.setParent(t.params,t.result)}if(Qm("region",t)){let{params:n,result:a}=t,h=a.getElement();this.initInteract(n,a),h.role="region",this.setParent(t.params,t.result)}return t.result}initElement(e,t){let n=t.getElement();return yo(n,"id",e.id),hd(n,"cursor",e.cursor),n.classList.toggle("ag-charts-proxy-elem",!0),n}initInteract(e,t){let{tabIndex:n,domIndex:a}=e,h=this.initElement(e,t);n!==void 0&&(h.tabIndex=n),a!==void 0&&(t.domIndex=a)}setParent(e,t){var n;if("parent"in e)(n=e.parent)==null||n.addChild(t);else{let a={where:e.where,query:".ag-charts-series-area"};this.domManager.addChild("canvas-proxy",e.domManagerId,t.getElement(),a)}}}}}),hT,xM,MM,Rp=M({"packages/ag-charts-community/src/locale/defaultMessageFormatter.ts"(){"use strict";Rn(),hT=/\$\{(\w+)}(?:\[(\w+)])?/gi,xM={number:new Intl.NumberFormat("en-US"),percent:new Intl.NumberFormat("en-US",{style:"percent",minimumFractionDigits:2,maximumFractionDigits:2}),date:new Intl.DateTimeFormat("en-US",{dateStyle:"full"}),time:new Intl.DateTimeFormat("en-US",{timeStyle:"full"}),datetime:new Intl.DateTimeFormat("en-US",{dateStyle:"full",timeStyle:"full"})},MM=({defaultValue:e,variables:t})=>e==null?void 0:e.replaceAll(hT,(n,a,h)=>{let S=t[a],E=h!=null?xM[h]:null;return h!=null&&E==null&&Di.warnOnce(`Format style [${h}] is not supported`),E!=null?E.format(S):typeof S=="number"?xM.number.format(S):S instanceof Date?xM.datetime.format(S):String(S)})}}),sS,gT=M({"packages/ag-charts-community/src/locale/localeManager.ts"(){"use strict";Ee(),yg(),Rp(),sS=class extends _h{constructor(){super(...arguments),this.localeText=void 0,this.getLocaleText=void 0}setLocaleText(e){this.localeText!==e&&(this.localeText=e,this.dispatch("locale-changed"))}setLocaleTextFormatter(e){this.getLocaleText=e,this.getLocaleText!==e&&(this.getLocaleText=e,this.dispatch("locale-changed"))}t(e,t={}){var S,E;let{localeText:n=m,getLocaleText:a}=this,h=n[e];return(E=(S=a==null?void 0:a({key:e,defaultValue:h,variables:t}))!=null?S:MM({key:e,defaultValue:h,variables:t}))!=null?E:e}}}});function kM({context:e,pixelRatio:t,width:n,height:a}){e.save(),e.setTransform(t,0,0,t,0,0),e.clearRect(0,0,n,a),e.restore()}function _b(e){if(Pa.check("canvas")){let t=e.save.bind(e),n=e.restore.bind(e),a=0;Object.assign(e,{save(){t(),a++},restore(){if(a===0)throw new Error("AG Charts - Unable to restore() past depth 0");n(),a--},verifyDepthZero(){if(a!==0)throw new Error(`AG Charts - Save/restore depth is non-zero: ${a}`)}})}}var gd=M({"packages/ag-charts-community/src/scene/canvas/canvasUtil.ts"(){"use strict";Vr()}}),xg,Pp=M({"packages/ag-charts-community/src/scene/canvas/hdpiCanvas.ts"(){"use strict";oa(),Oc(),gd(),xg=class{constructor(e){this.enabled=!0,this.width=600,this.height=300;let{width:t,height:n,pixelRatio:a,canvasElement:h,willReadFrequently:S=!1}=e;this.pixelRatio=a!=null?a:Da("devicePixelRatio"),this.element=h!=null?h:va("canvas"),this.element.style.display="block",this.element.style.width=(t!=null?t:this.width)+"px",this.element.style.height=(n!=null?n:this.height)+"px",this.element.width=Math.round((t!=null?t:this.width)*this.pixelRatio),this.element.height=Math.round((n!=null?n:this.height)*this.pixelRatio),this.context=this.element.getContext("2d",{willReadFrequently:S}),this.onEnabledChange(),this.resize(t!=null?t:0,n!=null?n:0),_b(this.context)}drawImage(e,t=0,n=0){return e.drawImage(this.context.canvas,t,n)}toDataURL(e){return this.element.toDataURL(e)}resize(e,t){if(!(e>0&&t>0))return;let{element:n,context:a,pixelRatio:h}=this;n.width=Math.round(e*h),n.height=Math.round(t*h),a.setTransform(h,0,0,h,0,0),n.style.width=e+"px",n.style.height=t+"px",this.width=e,this.height=t}clear(){kM(this)}destroy(){this.element.remove(),this.element.width=0,this.element.height=0,this.context.clearRect(0,0,0,0),Object.freeze(this)}onEnabledChange(){this.element&&(this.element.style.display=this.enabled?"":"none")}},f([wv(e=>e.onEnabledChange())],xg.prototype,"enabled",2)}}),AM,Lp=M({"packages/ag-charts-community/src/scene/canvas/hdpiOffscreenCanvas.ts"(){"use strict";oa(),gd(),AM=class{constructor(e){this.width=600,this.height=300;let{width:t,height:n,pixelRatio:a,willReadFrequently:h=!1}=e;this.pixelRatio=a!=null?a:Da("devicePixelRatio"),this.canvas=new OffscreenCanvas(t!=null?t:this.width,n!=null?n:this.height),this.context=this.canvas.getContext("2d",{willReadFrequently:h}),this.resize(t!=null?t:0,n!=null?n:0),_b(this.context)}drawImage(e,t=0,n=0){return e.drawImage(this.context.canvas,t,n)}resize(e,t){if(!(e>0&&t>0))return;let{canvas:n,context:a,pixelRatio:h}=this;n.width=Math.round(e*h),n.height=Math.round(t*h),a.setTransform(h,0,0,h,0,0),this.width=e,this.height=t}clear(){kM(this)}destroy(){this.canvas.width=0,this.canvas.height=0,this.context.clearRect(0,0,0,0),this.canvas=null,this.context=null,Object.freeze(this)}}}}),lS,Jm=M({"packages/ag-charts-community/src/scene/layersManager.ts"(){"use strict";Vr(),Pp(),Lp(),lS=class{constructor(e){this.canvas=e,this.debug=Pa.create(!0,"scene"),this.layersMap=new Map,this.nextLayerId=0}get size(){return this.layersMap.size}resize(e,t){this.canvas.resize(e,t),this.layersMap.forEach(({canvas:n})=>n.resize(e,t))}addLayer(e){let{width:t,height:n,pixelRatio:a}=this.canvas,{name:h}=e,S=new AM({width:t,height:n,pixelRatio:a});return this.layersMap.set(S,{id:this.nextLayerId++,name:h,canvas:S}),this.debug("Scene.addLayer() - layers",this.layersMap),S}removeLayer(e){this.layersMap.has(e)&&(this.layersMap.delete(e),e.destroy(),this.debug("Scene.removeLayer() -  layers",this.layersMap))}clear(){for(let e of this.layersMap.values())e.canvas.destroy();this.layersMap.clear()}}}}),jD,Fb,pT=M({"packages/ag-charts-community/src/scene/spriteRenderer.ts"(){"use strict";cp(),jD=class kZ{constructor(){this.offscreenCanvas=new OffscreenCanvas(1,1),kZ.offscreenCanvasCount++;let t=this.offscreenCanvas.getContext("2d");if(t==null)throw new TypeError("AG Charts - invalid 2d context");this.renderCtx={ctx:t,devicePixelRatio:1,resized:!1,debugNodes:{}}}resize({spritePixelRatio:t,spriteWidth:n,spriteHeight:a}){this.offscreenCanvas.width=Math.max(n,0)*t,this.offscreenCanvas.height=Math.max(a,0)*t}renderSprite(t,n){t=Ea(t);let{renderCtx:a,renderCtx:{ctx:h},offscreenCanvas:S}=this,{scale:E=1,translateX:L=0,translateY:_=0}=n!=null?n:{};h.save(),h.resetTransform(),h.clearRect(0,0,S.width,S.height),h.beginPath(),h.setTransform(E,0,0,E,L,_);for(let N of t)N.preRender(),N.render(a);return h.closePath(),h.restore(),S.transferToImageBitmap()}},jD.offscreenCanvasCount=0,Fb=jD}});function Bv(e){for(let t of["B","KB","MB","GB"]){if(e<1536)return`${e.toFixed(1)}${t}`;e/=1024}return`${e.toFixed(1)}TB}`}function VD(){if(!("memory"in performance))return;let{totalJSHeapSize:e,usedJSHeapSize:t,jsHeapSizeLimit:n}=performance.memory,a=[];for(let h of[t,e,n])typeof h=="number"&&a.push(Bv(h));return`Heap ${a.join(" / ")}`}function DM(e,t,n,a,h={},S=Ui.zero){if(!Pa.check("scene:stats","scene:stats:verbose"))return;let{layersRendered:E=0,layersSkipped:L=0,nodesRendered:_=0,nodesSkipped:N=0,opsPerformed:V=0,opsSkipped:q=0}=a!=null?a:{},Y=performance.now(),lt=t,{start:J}=lt,re=ji(lt,["start"]),ce=Object.entries(re).map(([ot,vt])=>dS(ot,vt)).filter(ot=>ot!=null).join(" + "),he=Object.entries(h).map(([ot,vt])=>`${ot}: ${JSON.stringify(vt)}`).join(" ; "),me=Pa.check("scene:stats:verbose"),we=VD(),Me=[`${dS("\u23F1\uFE0F",J,Y)} (${ce})`,`${he}`,`Layers: ${me?Ml(E,L):e.size}; Sprites: ${Fb.offscreenCanvasCount}`,me?`Nodes: ${Ml(_,N)}`:null,me?`Ops: ${Ml(V,q)}`:null,me&&we?we:null].filter(ui),be=new jm(ot=>n.measureText(ot)),Le=new Map(Me.map(ot=>[ot,be.measureLines(ot)])),Fe=Math.max(...Array.from(Le.values(),ot=>ot.width)),je=vL(Le.values(),ot=>ot.height),Xe=2+S.x;n.save(),n.fillStyle="white",n.fillRect(Xe,0,Fe,je),n.fillStyle="black";let nt=0;for(let[ot,vt]of Le.entries())nt+=vt.height,n.fillText(ot,Xe,nt);n.restore()}function pL(e){let t=Uy(Da("agChartsSceneDebug")),n=[];for(let a of t)a==="layout"?n.push("seriesRoot","legend","root",/.*Axis-\d+-axis.*/):n.push(a);e.debugNodeSearch=n}function mL(e,t){e.save();for(let[n,a]of Object.entries(t)){let h=vr.toCanvas(a);if(!h){Di.log(`Scene.render() - no bbox for debugged node [${n}].`);continue}e.globalAlpha=.8,e.strokeStyle="red",e.lineWidth=1,e.strokeRect(h.x,h.y,h.width,h.height),e.fillStyle="red",e.strokeStyle="white",e.font="16px sans-serif",e.textBaseline="top",e.textAlign="left",e.lineWidth=2,e.strokeText(n,h.x,h.y,h.width),e.fillText(n,h.x,h.y,h.width)}e.restore()}function fL(e){let t=ji(e,[]);for(let n of Object.keys(t))mT.has(n)||typeof t[n]!="number"&&typeof t[n]!="string"&&typeof t[n]!="boolean"&&(HD.add(n),delete t[n]);return t}function ef(e,t){var a;if(!Pa.check(!0,"scene"))return{};let n=0;return pe({node:t==="json"?fL(e):e,name:(a=e.name)!=null?a:e.id,dirty:e.dirty},Array.from(e.children(),h=>ef(h,t)).reduce((h,S)=>{let{name:E}=S,{node:{visible:L,opacity:_,zIndex:N,translationX:V,translationY:q,rotation:Y,scalingX:J,scalingY:re},node:ce}=S;(!L||_<=0)&&(E=`(${E})`),hn.is(ce)&&ce.renderToOffscreenCanvas&&(E=`*${E}*`);let he=Array.isArray(N)?`(${N.join(", ")})`:N,me=[`${(n++).toString().padStart(3,"0")}|`,`${E!=null?E:"<unknown>"}`,`z: ${he}`,V&&`x: ${V}`,q&&`y: ${q}`,Y&&`r: ${Y}`,J!=null&&J!==1&&`sx: ${J}`,re!=null&&re!==1&&`sy: ${re}`].filter(be=>!!be).join(" "),we=me,Me=1;for(;h[we]!=null&&Me<100;)we=`${me} (${Me++})`;return h[we]=S,h},{}))}function cS(e){var h;if(!e.dirty)return{dirtyTree:{},paths:[]};let t=Array.from(e.children(),S=>cS(S)).filter(S=>S.paths.length>0),n=hn.is(e)&&(h=e.name)!=null?h:e.id,a=t.length?t.flatMap(S=>S.paths).map(S=>`${n}.${S}`):[n];return{dirtyTree:pe({name:n,node:e,dirty:e.dirty},t.map(S=>S.dirtyTree).filter(S=>S.dirty!=null).reduce((S,E)=>{var L;return S[(L=E.name)!=null?L:"<unknown>"]=E,S},{})),paths:a}}function Ml(e,t){let n=e+t;return`${e} / ${n} (${Math.round(100*e/n)}%)`}function dS(e,t,n){let a=n!=null?n-t:t;return`${e}: ${Math.round(a*100)/100}ms`}function vL(e,t){let n=0;for(let a of e)n+=t(a);return n}var HD,mT,WD=M({"packages/ag-charts-community/src/scene/sceneDebug.ts"(){"use strict";ts(),Vr(),oa(),Rn(),cd(),Hn(),jn(),$o(),Wa(),pT(),Zl(),HD=new Set,mT=new Set(["gradient","zIndex","clipRect","cachedBBox","childNodeCounts","path","__zIndex","name","__scalingCenterX","__scalingCenterY","__rotationCenterX","__rotationCenterY","_previousDatum","__fill","__lineDash","borderPath","borderClipPath","_clipPath"])}}),Gv,uS=M({"packages/ag-charts-community/src/scene/scene.ts"(){"use strict";Vr(),oa(),Ac(),Pp(),Jm(),Wa(),WD(),Gv=class{constructor(e){this.debug=Pa.create(!0,"scene"),this.id=dl(this),this.root=null,this.pendingSize=null,this.isDirty=!1,this.canvas=new xg(e),this.layersManager=new lS(this.canvas)}get width(){var e,t;return(t=(e=this.pendingSize)==null?void 0:e[0])!=null?t:this.canvas.width}get height(){var e,t;return(t=(e=this.pendingSize)==null?void 0:e[1])!=null?t:this.canvas.height}setContainer(e){var n;let{element:t}=this.canvas;return(n=t.parentElement)==null||n.removeChild(t),e.appendChild(t),this}setRoot(e){var t;return this.root===e?this:(this.isDirty=!0,(t=this.root)==null||t._setLayerManager(),this.root=e,e&&(e.visible=!0,e._setLayerManager(this.layersManager)),this)}clear(){this.canvas.clear()}attachNode(e){return this.appendChild(e),()=>this.removeChild(e)}appendChild(e){var t;return(t=this.root)==null||t.appendChild(e),this}removeChild(e){var t;return(t=this.root)==null||t.removeChild(e),this}download(e,t){var n;M0(this.canvas.toDataURL(t),(n=e==null?void 0:e.trim())!=null?n:"image")}getDataURL(e){return this.canvas.toDataURL(e)}resize(e,t){return e=Math.round(e),t=Math.round(t),e>0&&t>0&&(e!==this.width||t!==this.height)?(this.pendingSize=[e,t],this.isDirty=!0,!0):!1}render(e){var q,Y;let{debugSplitTimes:t={start:performance.now()},extraDebugStats:n,seriesRect:a}=e!=null?e:{},{canvas:h,canvas:{context:S}={},root:E,pendingSize:L}=this;if(!S)return;let _=performance.now();if(L&&(this.layersManager.resize(...L),this.pendingSize=null),E&&!E.visible){this.isDirty=!1;return}if((E==null?void 0:E.dirty)===!1&&!this.isDirty){this.debug.check()&&this.debug("Scene.render() - no-op",{tree:ef(E,"console")}),DM(this.layersManager,t,S,void 0,n,a);return}let N={ctx:S,devicePixelRatio:(q=this.canvas.pixelRatio)!=null?q:1,resized:!!L,debugNodes:{}};Pa.check("scene:stats:verbose")&&(N.stats={layersRendered:0,layersSkipped:0,nodesRendered:0,nodesSkipped:0,opsPerformed:0,opsSkipped:0}),pL(N);let V=!1;if((E==null?void 0:E.dirty)!==!1&&(V=!0,h.clear()),E&&Pa.check("scene:dirtyTree")){let{dirtyTree:J,paths:re}=cS(E);Pa.create("scene:dirtyTree")("Scene.render() - dirtyTree",{dirtyTree:J,paths:re})}if(E&&V){if(E.visible&&E.preRender(),this.debug.check()){let J=ef(E,"console");this.debug("Scene.render() - before",{canvasCleared:V,tree:J})}E.visible&&(S.save(),E.render(N),S.restore())}t["\u270D\uFE0F"]=performance.now()-_,(Y=S.verifyDepthZero)==null||Y.call(S),this.isDirty=!1,DM(this.layersManager,t,S,N.stats,n,a),mL(S,N.debugNodes),E&&this.debug.check()&&this.debug("Scene.render() - after",{tree:ef(E,"console"),canvasCleared:V})}toSVG(){let{root:e,width:t,height:n}=this;if(e!=null)return Hl.toSVG(e,t,n)}strip(){let{context:e,pixelRatio:t}=this.canvas;e.setTransform(t,0,0,t,0,0),this.layersManager.clear(),this.setRoot(null),this.isDirty=!1}destroy(){this.strip(),this.canvas.destroy(),Object.assign(this,{canvas:void 0})}},Gv.className="Scene"}}),UD,fT=M({"packages/ag-charts-community/src/util/callbackCache.ts"(){"use strict";Rn(),UD=class{constructor(){this.cache=new WeakMap}call(e,...t){let n,a=this.cache.get(e);try{n=JSON.stringify(t)}catch(h){return this.invoke(e,t,a)}return a==null&&(a=new Map,this.cache.set(e,a)),a.has(n)?a.get(n):this.invoke(e,t,a,n)}invoke(e,t,n,a){try{let h=e(...t);return n&&a!=null&&n.set(a,h),h}catch(h){Di.warnOnce("User callback errored, ignoring",h);return}}invalidateCache(){this.cache=new WeakMap}}}}),KD,yL=M({"packages/ag-charts-community/src/chart/annotation/annotationManager.ts"(){"use strict";ur(),Ta(),Hn(),KD=class extends ss{constructor(e){super(),this.annotationRoot=e,this.mementoOriginatorKey="annotations",this.annotations=[]}createMemento(){return this.annotations}guardMemento(e){return e==null||ho(e)}restoreMemento(e,t,n){this.annotations=this.cleanData(n!=null?n:[]).map(a=>{let h=this.getAnnotationTypeStyles(a.type);return ia(a,h)}),this.listeners.dispatch("restore-annotations",{type:"restore-annotations",annotations:this.annotations})}updateData(e){this.annotations=this.cleanData(e!=null?e:[])}attachNode(e){return this.annotationRoot.append(e),()=>{var t;return(t=this.annotationRoot)==null||t.removeChild(e),this}}setAnnotationStyles(e){this.styles=e}getAnnotationTypeStyles(e){var t;return(t=this.styles)==null?void 0:t[e]}cleanData(e){for(let t of e)"textAlign"in t&&delete t.textAlign;return e}}}}),qD,vT=M({"packages/ag-charts-community/src/chart/axis/axisManager.ts"(){"use strict";$o(),Wa(),Wm(),qD=class{constructor(e){this.sceneRoot=e,this.axes=new Map,this.axisGridGroup=new hn({name:"Axes-Grids",zIndex:1}),this.axisGroup=new hn({name:"Axes",zIndex:2}),this.axisLabelGroup=new hn({name:"Axes-Labels",zIndex:12}),this.axisCrosslineRangeGroup=new hn({name:"Axes-Crosslines-Range",zIndex:3}),this.axisCrosslineLineGroup=new hn({name:"Axes-Crosslines-Line",zIndex:7}),this.axisCrosslineLabelGroup=new hn({name:"Axes-Crosslines-Label",zIndex:12}),this.sceneRoot.appendChild(this.axisGroup),this.sceneRoot.appendChild(this.axisGridGroup),this.sceneRoot.appendChild(this.axisLabelGroup),this.sceneRoot.appendChild(this.axisCrosslineRangeGroup),this.sceneRoot.appendChild(this.axisCrosslineLineGroup),this.sceneRoot.appendChild(this.axisCrosslineLabelGroup)}updateAxes(e,t){var a;let n={axisNode:this.axisGroup,gridNode:this.axisGridGroup,labelNode:this.axisLabelGroup,crossLineRangeNode:this.axisCrosslineRangeGroup,crossLineLineNode:this.axisCrosslineLineGroup,crossLineLabelNode:this.axisCrosslineLabelGroup};for(let h of e)t.includes(h)||(h.detachAxis(n),h.destroy());for(let h of t)e!=null&&e.includes(h)||h.attachAxis(n);this.axes.clear();for(let h of t){let S=h.createAxisContext();this.axes.has(S.direction)?(a=this.axes.get(S.direction))==null||a.push(S):this.axes.set(S.direction,[S])}}getAxisContext(e){var t;return(t=this.axes.get(e))!=null?t:[]}destroy(){this.axes.clear(),this.sceneRoot.removeChild(this.axisGroup),this.sceneRoot.removeChild(this.axisGridGroup)}}}}),kl,Jn=M({"packages/ag-charts-community/src/chart/data/dataService.ts"(){"use strict";Vr(),Tc(),yg(),Rn(),Oc(),kl=class extends _h{constructor(e){super(),this.animationManager=e,this.dispatchOnlyLatest=!0,this.dispatchThrottle=0,this.requestThrottle=300,this.isLoadingInitialData=!1,this.isLoadingData=!1,this.freshRequests=[],this.requestCounter=0,this.debug=Pa.create(!0,"data-model","data-source"),this.throttledFetch=this.createThrottledFetch(this.requestThrottle),this.throttledDispatch=this.createThrottledDispatch(this.dispatchThrottle)}updateCallback(e){typeof e=="function"&&(this.debug("DataService - updated data source callback"),this.dataSourceCallback=e,this.isLoadingInitialData=!0,this.animationManager.skip(),this.dispatch("data-source-change"))}clearCallback(){this.dataSourceCallback=void 0}load(e){this.isLoadingData=!0,this.throttledFetch(e)}isLazy(){return this.dataSourceCallback!=null}isLoading(){return this.isLazy()&&(this.isLoadingInitialData||this.isLoadingData)}createThrottledFetch(e){return Am(t=>this.fetch(t).catch(n=>Di.error("callback failed",n)),e,{leading:!1,trailing:!0})}createThrottledDispatch(e){return Am((t,n)=>{this.debug(`DataService - dispatching 'data-load' | ${t}`),this.dispatch("data-load",{type:"data-load",data:n})},e,{leading:!0,trailing:!0})}async fetch(e){if(!this.dataSourceCallback)throw new Error("DataService - [dataSource.getData] callback not initialised");let t=performance.now(),n=this.requestCounter++;this.debug(`DataService - requesting | ${n}`),this.freshRequests.push(n);let a;try{a=await this.dataSourceCallback(e),this.debug(`DataService - response | ${performance.now()-t}ms | ${n}`)}catch(S){this.debug(`DataService - request failed | ${n}`),Di.errorOnce(`DataService - request failed | [${S}]`)}this.isLoadingInitialData=!1;let h=this.freshRequests.findIndex(S=>S===n);if(h===-1||this.dispatchOnlyLatest&&h!==this.freshRequests.length-1){this.debug(`DataService - discarding stale request | ${n}`);return}this.freshRequests=this.freshRequests.slice(h+1),this.freshRequests.length===0&&(this.isLoadingData=!1),Array.isArray(a)?this.throttledDispatch(n,a):this.dispatch("data-error")}},f([Ys({newValue(e){this.throttledDispatch=this.createThrottledDispatch(e)}})],kl.prototype,"dispatchThrottle",2),f([Ys({newValue(e){this.throttledFetch=this.createThrottledFetch(e)}})],kl.prototype,"requestThrottle",2)}}),hS,gS=M({"packages/ag-charts-community/src/chart/interaction/animationBatch.ts"(){"use strict";xa(),Vr(),Rn(),hS=class{constructor(e){this.maxAnimationTime=e,this.debug=Pa.create(!0,"animation"),this.controllers=new Map,this.stoppedCbs=new Set,this.currentPhase=0,this.phases=new Map(ng.map(t=>[t,[]])),this.skipAnimations=!1,this.animationTimeConsumed=0,this.isReady=!1}get size(){return this.controllers.size}get consumedTimeMs(){return this.animationTimeConsumed}isActive(){return this.controllers.size>0}getActiveControllers(){var e;return(e=this.phases.get(ng[this.currentPhase]))!=null?e:[]}checkOverlappingId(e){e!=null&&this.controllers.has(e)&&(this.controllers.get(e).stop(),this.debug(`Skipping animation batch due to update of existing animation: ${e}`),this.skip())}addAnimation(e){var n;if(e.isComplete)return;if(ng.indexOf(e.phase)<this.currentPhase){this.debug("Skipping animation due to being for an earlier phase",e.id),e.stop();return}this.controllers.set(e.id,e),(n=this.phases.get(e.phase))==null||n.push(e)}removeAnimation(e){this.controllers.delete(e.id);let t=this.phases.get(e.phase),n=t==null?void 0:t.indexOf(e);n!=null&&n>=0&&(t==null||t.splice(n,1))}progress(e){if(!this.isReady)return;let t=e===0?.01:e,n=()=>{let N=ng[this.currentPhase];return{phaseControllers:[...this.getActiveControllers()],phase:N,phaseMeta:wa[N]}},{phase:a,phaseControllers:h,phaseMeta:S}=n(),E=()=>ng[this.currentPhase]==null,L=()=>{for({phase:a,phaseControllers:h,phaseMeta:S}=n();!E()&&h.length===0;)this.currentPhase++,{phase:a,phaseControllers:h,phaseMeta:S}=n(),this.debug(`AnimationBatch - phase changing to ${a}`,{unusedTime:t},h)},_=this.controllers.size;this.debug(`AnimationBatch - ${e}ms; phase ${a} with ${h==null?void 0:h.length} of ${_}`);do{let N=t,V=S.skipIfNoEarlierAnimations&&this.animationTimeConsumed===0,q=0;for(let Y of h)V?Y.stop():t=Math.min(Y.update(N),t),Y.isComplete&&(q++,this.removeAnimation(Y));this.animationTimeConsumed+=N-t,this.debug(`AnimationBatch - updated ${h.length} controllers; ${q} completed`),this.debug(`AnimationBatch - animationTimeConsumed: ${this.animationTimeConsumed}`),L()}while(t>0&&!E());this.animationTimeConsumed>this.maxAnimationTime&&(this.debug("Animation batch exceeded max animation time, skipping",[...this.controllers]),this.stop())}ready(){if(this.isReady)return;this.isReady=!0,this.debug(`AnimationBatch - ready; skipped: ${this.skipAnimations}`,[...this.controllers]);let e=!0;for(let[,t]of this.controllers)if(t.duration>0&&wa[t.phase].skipIfNoEarlierAnimations!==!0){e=!1;break}if(!e)for(let[,t]of this.controllers)t.autoplay&&t.play(!0)}skip(e=!0){if(this.skipAnimations===!1&&e===!0){for(let t of this.controllers.values())t.stop();this.controllers.clear()}this.skipAnimations=e}play(){for(let e of this.controllers.values())e.play()}pause(){for(let e of this.controllers.values())e.pause()}stop(){for(let e of this.controllers.values())try{e.stop(),this.removeAnimation(e)}catch(t){Di.error("Error during animation stop",t)}this.dispatchStopped()}stopByAnimationId(e){if(e!=null&&this.controllers.has(e)){let t=this.controllers.get(e);t&&(t.stop(),this.removeAnimation(t))}}stopByAnimationGroupId(e){for(let t of this.controllers.values())t.groupId===e&&this.stopByAnimationId(t.id)}dispatchStopped(){this.stoppedCbs.forEach(e=>e()),this.stoppedCbs.clear()}isSkipped(){return this.skipAnimations}destroy(){this.stop(),this.controllers.clear()}}}});function Op(e){let t=et(pe({},e),{preventDefault(){var n;(n=t.sourceEvent)==null||n.preventDefault()}});return t}function _p(e,t){e.dispatchWrapHandlers(t.type,(n,a)=>n(a),Op(t))}var tf=M({"packages/ag-charts-community/src/chart/interaction/preventableEvent.ts"(){"use strict"}});function yT(e){return EM.includes(e)}function Nb(e){return IM.includes(e)}var EM,IM,TM,zb,YD,Kd,nf,Mg=M({"packages/ag-charts-community/src/chart/interaction/interactionManager.ts"(){"use strict";Vr(),oa(),Ta(),Hn(),$s(),tf(),EM=["click","dblclick","contextmenu","hover","leave","enter","page-left","wheel"],IM=["keydown","keyup"],TM=["mousemove","mouseup"],zb=["pagehide","mousemove","mouseup"],YD=["click","dblclick","contextmenu","mousedown","mouseleave","mouseenter","touchstart","touchmove","touchend","touchcancel","wheel","keydown","keyup"],Kd=class Gz extends cM{constructor(t,n){super(),this.keyboardOptions=t,this.domManager=n,this.debug=Pa.create(!0,"interaction"),this.eventHandler=a=>this.processEvent(a),this.clickHistory=[{offsetX:NaN,offsetY:NaN,type:"mousedown"}],this.dblclickHistory=[{offsetX:NaN,offsetY:NaN,type:"mousedown"},{offsetX:NaN,offsetY:NaN,type:"mouseup"},{offsetX:NaN,offsetY:NaN,type:"mousedown"}],this.stateQueue=34,this.rootElement=this.domManager.getShadowDocumentRoot();for(let a of YD)a.startsWith("touch")||a==="wheel"?this.domManager.addEventListener(a,this.eventHandler,{passive:!1}):this.domManager.addEventListener(a,this.eventHandler);for(let a of zb)Da().addEventListener(a,this.eventHandler);this.containerChanged(!0),this.domManager.addListener("container-changed",()=>this.containerChanged())}containerChanged(t=!1){var a,h;let n=this.domManager.getShadowDocumentRoot();if(!(!t&&n===this.rootElement)){for(let S of TM)(a=this.rootElement)==null||a.removeEventListener(S,this.eventHandler);this.rootElement=n,this.debug("[InteractionManager] Switching rootElement to:",this.rootElement);for(let S of TM)(h=this.rootElement)==null||h.addEventListener(S,this.eventHandler)}}destroy(){var t;super.destroy();for(let n of zb)Da().removeEventListener(n,this.eventHandler);for(let n of TM)(t=this.rootElement)==null||t.removeEventListener(n,this.eventHandler);for(let n of YD)this.domManager.removeEventListener(n,this.eventHandler);this.domManager.removeStyles("interactionManager")}pushState(t){this.stateQueue|=t}popState(t){this.stateQueue&=~t}getState(){return this.stateQueue&-this.stateQueue}processEvent(t){this.debug("Received raw event",t);let n=this.decideInteractionEventTypes(t);n!=null&&!Array.isArray(n)&&(n=[n]);for(let a of n!=null?n:[])this.dispatchEvent(t,a)}dispatchEvent(t,n){if(yT(n)){this.dispatchPointerEvent(t,n);return}let{relatedElement:a,targetElement:h}=this.extractElements(t);if(Nb(n)){let S=t;this.dispatchTypedEvent(this.listeners,{type:n,sourceEvent:S,relatedElement:a,targetElement:h})}}dispatchTypedEvent(t,n){let a=Op(n);this.debug("Dispatching typed event",a,this.getState()),t.dispatchWrapHandlers(n.type,(h,S)=>h(S),a)}extractElements(t){let n,a;return"relatedTarget"in t&&t.relatedTarget instanceof HTMLElement&&(n=t.relatedTarget),"target"in t&&t.target instanceof HTMLElement&&(a=t.target),{relatedElement:n,targetElement:a}}dispatchPointerEvent(t,n){let a=this.calculateCoordinates(t);if(a==null)return;let h=this.buildPointerEvent(pe({type:n,event:t},a));this.debug("Dispatching pointer event",h,this.getState()),_p(this.listeners,h)}getEventHTMLTarget(t){if(t.target instanceof HTMLElement)return t.target;if(t.currentTarget instanceof HTMLElement)return t.currentTarget}recordDown(t){t instanceof MouseEvent&&(Ic(["offsetX","offsetY"],this.clickHistory[0],t),Ic(["offsetX","offsetY"],this.dblclickHistory[2],this.dblclickHistory[0]),Ic(["offsetX","offsetY"],this.dblclickHistory[0],t))}recordUp(t){t instanceof MouseEvent&&Ic(["offsetX","offsetY"],this.dblclickHistory[1],t)}decideInteractionEventTypes(t){switch(t.type){case"keydown":case"keyup":return this.keyboardOptions.enabled?t.type:void 0;case"click":case"dblclick":return t.type;case"contextmenu":case"wheel":return t.type;case"touchstart":case"mousedown":if(!this.isEventOverElement(t))return;this.recordDown(t);return;case"touchmove":case"mousemove":return this.isEventOverElement(t)?"hover":void 0;case"mouseup":case"touchend":if(!this.isEventOverElement(t))return;this.recordUp(t);return;case"mouseleave":case"touchcancel":return"leave";case"mouseenter":return"enter";case"pagehide":return"page-left"}}isEventOverElement(t){return t.target instanceof HTMLElement&&this.domManager.contains(t.target)}calculateCoordinates(t){var n;if(t instanceof MouseEvent)return this.getMouseEventCoords(t);if(typeof TouchEvent!="undefined"&&t instanceof TouchEvent){let a=(n=t.touches[0])!=null?n:t.changedTouches[0],{clientX:h,clientY:S,pageX:E,pageY:L}=a;return et(pe({},Gz.NULL_COORDS),{clientX:h,clientY:S,pageX:E,pageY:L})}else if(t instanceof PageTransitionEvent)return t.persisted?void 0:Gz.NULL_COORDS}getMouseEventCoords(t){let{clientX:n,clientY:a,pageX:h,pageY:S}=t,{offsetX:E,offsetY:L}=t,_=this.getEventHTMLTarget(t),{x:N=0,y:V=0}=_?this.domManager.calculateCanvasPosition(_):{};return E+=N,L+=V,{clientX:n,clientY:a,pageX:h,pageY:S,offsetX:E,offsetY:L}}static isWheelEvent(t){return t.type==="wheel"}static getWheelDeltas(t){let[n,a]=[NaN,NaN];if(this.isWheelEvent(t)){let h=t.deltaMode===0?.01:1;n=t.deltaX*h,a=t.deltaY*h}return{deltaX:n,deltaY:a}}buildPointerEvent(t){var me,we,Me;let{type:n,event:a,clientX:h,clientY:S}=t,{offsetX:E,offsetY:L,pageX:_,pageY:N}=t;if(!Na(E)||!Na(L)){let be=this.domManager.getBoundingClientRect();E=h-be.left,L=S-be.top}if(!Na(_)||!Na(N)){let be=(me=this.rootElement)==null?void 0:me.getBoundingClientRect();_=h-((we=be==null?void 0:be.left)!=null?we:0),N=S-((Me=be==null?void 0:be.top)!=null?Me:0)}let{deltaX:V,deltaY:q}=Gz.getWheelDeltas(a),Y=[];a.type==="click"?Y=this.clickHistory:a.type==="dblclick"&&(Y=this.dblclickHistory);let{relatedElement:J,targetElement:re}=this.extractElements(a),ce="button"in a?Number(a.button):0,he={type:n,offsetX:E,offsetY:L,pageX:_,pageY:N,deltaX:V,deltaY:q,button:ce,pointerHistory:Y,sourceEvent:a,relatedElement:J,targetElement:re};return this.debug("InteractionManager - builtEvent: ",he,this.getState()),he}},Kd.NULL_COORDS={clientX:-1/0,clientY:-1/0,pageX:-1/0,pageY:-1/0,offsetX:-1/0,offsetY:-1/0},nf=Kd}});function XD(e){return e==null?!0:!isNaN(e)&&e>=0&&e<=2}var af,ZD=M({"packages/ag-charts-community/src/chart/interaction/animationManager.ts"(){"use strict";xa(),Vr(),oa(),oM(),Rn(),gS(),Mg(),af=class{constructor(e,t){this.interactionManager=e,this.chartUpdateMutex=t,this.defaultDuration=1e3,this.batch=new hS(this.defaultDuration*1.5),this.debug=Pa.create(!0,"animation"),this.events=new aM,this.rafAvailable=typeof requestAnimationFrame!="undefined",this.isPlaying=!0,this.requestId=null,this.skipAnimations=!0,this.currentAnonymousAnimationId=0}addListener(e,t){return this.events.on(e,t)}animate(e){let t=this.batch;try{t.checkOverlappingId(e.id)}catch(L){this.failsafeOnError(L);return}let{id:n}=e;n==null&&(n=`__${this.currentAnonymousAnimationId}`,this.currentAnonymousAnimationId+=1);let a=this.isSkipped()||e.phase==="none";a&&this.debug("AnimationManager - skipping animation");let{delay:h,duration:S}=e;if(!XD(h))throw new Error(`Animation delay of ${h} is unsupported (${n})`);if(!XD(S))throw new Error(`Animation duration of ${S} is unsupported (${n})`);let E=new sx(et(pe({},e),{id:n,skip:a,autoplay:this.isPlaying?e.autoplay:!1,phase:e.phase,defaultDuration:this.defaultDuration}));if(!this.forceTimeJump(E,this.defaultDuration))return this.batch.addAnimation(E),E}play(){if(!this.isPlaying){this.isPlaying=!0,this.debug("AnimationManager.play()");try{this.batch.play()}catch(e){this.failsafeOnError(e)}this.requestAnimation()}}pause(){if(this.isPlaying){this.isPlaying=!1,this.cancelAnimation(),this.debug("AnimationManager.pause()");try{this.batch.pause()}catch(e){this.failsafeOnError(e)}}}stop(){this.isPlaying=!1,this.cancelAnimation(),this.debug("AnimationManager.stop()"),this.batch.stop()}stopByAnimationId(e){try{this.batch.stopByAnimationId(e)}catch(t){this.failsafeOnError(t)}}stopByAnimationGroupId(e){try{this.batch.stopByAnimationGroupId(e)}catch(t){this.failsafeOnError(t)}}reset(){this.isPlaying?(this.stop(),this.play()):this.stop()}skip(e=!0){this.skipAnimations=e}isSkipped(){return!this.rafAvailable||this.skipAnimations||this.batch.isSkipped()}isActive(){return this.isPlaying&&this.batch.isActive()}skipCurrentBatch(){this.debug.check()&&this.debug("AnimationManager - skipCurrentBatch()",{stack:new Error().stack}),this.batch.skip()}isSkippingFrames(){return!0}scheduleAnimationFrame(e){this.requestId=Da().requestAnimationFrame(t=>{e(t).catch(n=>Di.error(n))})}forceTimeJump(e,t){return!1}requestAnimation(){if(!this.rafAvailable||!this.batch.isActive()||this.requestId!==null)return;let e,t=async n=>{let a=()=>{let h=n-(e!=null?e:n);e=n,this.debug("AnimationManager - onAnimationFrame()",{controllersCount:this.batch.size,deltaTime:h}),this.interactionManager.pushState(2);try{this.batch.progress(h)}catch(S){this.failsafeOnError(S)}this.events.emit("animation-frame",{type:"animation-frame",deltaMs:h})};this.isSkippingFrames()?await this.chartUpdateMutex.acquireImmediately(a):await this.chartUpdateMutex.acquire(a),this.batch.isActive()?this.scheduleAnimationFrame(t):(this.batch.stop(),this.events.emit("animation-stop",{type:"animation-stop",deltaMs:this.batch.consumedTimeMs}))};this.events.emit("animation-start",{type:"animation-start",deltaMs:0}),this.scheduleAnimationFrame(t)}cancelAnimation(){this.requestId!==null&&(cancelAnimationFrame(this.requestId),this.requestId=null,this.startBatch())}failsafeOnError(e,t=!0){Di.error("Error during animation, skipping animations",e),t&&this.cancelAnimation()}startBatch(e){this.debug(`AnimationManager - startBatch() with skipAnimations=${e}.`),this.reset(),this.batch.destroy(),this.batch=new hS(this.defaultDuration*1.5),e===!0&&this.batch.skip()}endBatch(){this.batch.isActive()?(this.batch.ready(),this.requestAnimation()):(this.interactionManager.popState(2),this.batch.isSkipped()&&this.batch.skip(!1))}onBatchStop(e){this.batch.stoppedCbs.add(e)}destroy(){this.stop(),this.events.clear()}}}}),$D,QD=M({"packages/ag-charts-community/src/chart/interaction/chartEventManager.ts"(){"use strict";ur(),$D=class extends ss{legendItemClick(e,t,n,a,h){let S={type:"legend-item-click",legendType:e,series:t,itemId:n,enabled:a,legendItemName:h};this.listeners.dispatch("legend-item-click",S)}legendItemDoubleClick(e,t,n,a,h,S){let E={type:"legend-item-double-click",legendType:e,series:t,itemId:n,enabled:a,legendItemName:S,numVisibleItems:h};this.listeners.dispatch("legend-item-double-click",E)}axisHover(e,t){let n={type:"axis-hover",axisId:e,direction:t};this.listeners.dispatch("axis-hover",n)}}}}),RM,JD=M({"packages/ag-charts-community/src/chart/interaction/contextMenuRegistry.ts"(){"use strict";yg(),tf(),RM=class{constructor(){this.defaultActions=[],this.disabledActions=new Set,this.hiddenActions=new Set,this.listeners=new _h}static check(e,t){return t.type===e}static checkCallback(e,t,n){return e===t}dispatchContext(e,t,n,a){var L,_;let{sourceEvent:h}=t,S=(L=a==null?void 0:a.x)!=null?L:t.canvasX,E=(_=a==null?void 0:a.y)!=null?_:t.canvasY;h.stopPropagation(),this.listeners.dispatch("",Op({type:e,x:S,y:E,context:n,sourceEvent:h}))}addListener(e){return this.listeners.addListener("",e)}filterActions(e){return this.defaultActions.filter(t=>t.id&&!this.hiddenActions.has(t.id)&&["all",e].includes(t.type))}registerDefaultAction(e){let t=e.id!=null&&!this.defaultActions.some(({id:n})=>n===e.id);return t&&this.defaultActions.push(e),()=>{let n=t?this.defaultActions.findIndex(({id:a})=>a===e.id):-1;n!==-1&&this.defaultActions.splice(n,1)}}enableAction(e){this.disabledActions.delete(e)}disableAction(e){this.disabledActions.add(e)}showAction(e){this.hiddenActions.add(e)}hideAction(e){this.hiddenActions.delete(e)}isDisabled(e){return this.disabledActions.has(e)}}}}),of,Bb=M({"packages/ag-charts-community/src/util/stateTracker.ts"(){"use strict";of=class extends Map{constructor(e,t){super(),this.defaultValue=e,this.defaultState=t}set(e,t){return this.delete(e),typeof t!="undefined"&&super.set(e,t),this}stateId(){var e;return(e=Array.from(this.keys()).pop())!=null?e:this.defaultState}stateValue(){var e;return(e=Array.from(this.values()).pop())!=null?e:this.defaultValue}}}}),rf,sf,Js=M({"packages/ag-charts-community/src/chart/interaction/cursorManager.ts"(){"use strict";Bb(),rf=(e=>(e.Auto="auto",e.Default="default",e.Grab="grab",e.Grabbing="grabbing",e.Move="move",e.NotAllowed="not-allowed",e.Pointer="pointer",e.EWResize="ew-resize",e.NSResize="ns-resize",e.ZoomIn="zoom-in",e.ZoomOut="zoom-out",e))(rf||{}),sf=class{constructor(e){this.domManager=e,this.stateTracker=new of("default")}updateCursor(e,t){this.stateTracker.set(e,t),this.domManager.updateCursor(this.stateTracker.stateValue())}getCursor(){return this.domManager.getCursor()}}}});function bL(e,t){let n=e.screenX-t.screenX,a=e.screenY-t.screenY;return n*n+a*a}function bT(e,t){return Math.sqrt(bL(e,t))}var e1,qd,pS=M({"packages/ag-charts-community/src/chart/interaction/gestureDetector.ts"(){"use strict";ur(),Rn(),Ta(),tf(),e1=1,qd=class extends ss{constructor(e){super(),this.domManager=e,this.touchstart=t=>this.onTouchStart(t),this.touchmove=t=>this.onTouchMove(t),this.touchend=t=>this.onTouchEnd(t),this.touchcancel=t=>this.onTouchCancel(t),this.pinch={finger1:{identifier:NaN,screenX:NaN,screenY:NaN},finger2:{identifier:NaN,screenX:NaN,screenY:NaN},origin:{x:NaN,y:NaN},distance:NaN,status:0},this.domManager.addEventListener("touchstart",this.touchstart,{passive:!0}),this.domManager.addEventListener("touchmove",this.touchmove,{passive:!1}),this.domManager.addEventListener("touchend",this.touchend),this.domManager.addEventListener("touchcancel",this.touchcancel)}destroy(){this.domManager.removeEventListener("touchstart",this.touchstart),this.domManager.removeEventListener("touchmove",this.touchmove),this.domManager.removeEventListener("touchend",this.touchend),this.domManager.removeEventListener("touchcancel",this.touchcancel)}findPinchTouches(e){let{touches:t}=e,{finger1:n,finger2:a}=this.pinch;if(this.pinch.status!==0&&t.length===2){if(t[0].identifier===n.identifier&&t[1].identifier===a.identifier)return[t[0],t[1]];if(t[0].identifier===a.identifier&&t[1].identifier===n.identifier)return[t[1],t[0]]}}copyTouchData(e){let t=["identifier","screenX","screenY"];Ic(t,this.pinch.finger1,e.touches[0]),Ic(t,this.pinch.finger2,e.touches[1]),this.pinch.distance=bT(this.pinch.finger1,this.pinch.finger2)}dispatchPinchEvent(e,t,n){let{finger1:a,finger2:h,origin:S}=this.pinch;this.listeners.dispatch(e,Op({sourceEvent:n,type:e,finger1:a,finger2:h,deltaDistance:t,origin:S}))}onTouchStart(e){this.stopPinchTracking(e);let{pinch:t}=this;e.touches.length===2&&(t.status=1,this.copyTouchData(e),t.origin.x=(e.touches[0].clientX+e.touches[1].clientX)/2,t.origin.y=(e.touches[0].clientY+e.touches[1].clientY)/2)}onTouchMove(e){let t=this.findPinchTouches(e);if(t!==void 0){let[n,a]=t,{pinch:h}=this,S=bT(n,a),E=S-h.distance;h.status===1?Math.abs(E)>e1&&(h.status=2,this.copyTouchData(e),this.dispatchPinchEvent("pinch-start",0,e)):h.status===2?(h.distance=S,this.copyTouchData(e),this.dispatchPinchEvent("pinch-move",E,e)):Di.error(`unexpected pinch.status: ${h.status}`)}}onTouchEnd(e){this.stopPinchTracking(e)}onTouchCancel(e){this.stopPinchTracking(e)}stopPinchTracking(e){let{pinch:t}=this;t.status===2&&this.dispatchPinchEvent("pinch-end",0,e),this.pinch.status=0}}}}),mS,t1=M({"packages/ag-charts-community/src/chart/interaction/highlightManager.ts"(){"use strict";ur(),Bb(),mS=class extends ss{constructor(){super(...arguments),this.highlightStates=new of}updateHighlight(e,t){let{activeHighlight:n}=this;this.highlightStates.set(e,t),this.activeHighlight=this.highlightStates.stateValue(),this.isEqual(this.activeHighlight,n)||this.listeners.dispatch("highlight-change",{type:"highlight-change",currentHighlight:this.activeHighlight,previousHighlight:n,callerId:e})}getActiveHighlight(){return this.activeHighlight}isEqual(e,t){return e===t||e!=null&&t!=null&&(e==null?void 0:e.series)===(t==null?void 0:t.series)&&(e==null?void 0:e.itemId)===(t==null?void 0:t.itemId)&&(e==null?void 0:e.datum)===(t==null?void 0:t.datum)}}}}),PM,LM=M({"packages/ag-charts-community/src/chart/interaction/keyNavManager.ts"(){"use strict";$s(),tf(),PM=class extends cM{constructor(e,t){super(),this.interactionManager=e,this.previousInputDevice="keyboard";let n=t.getRegion("series"),a=41;this.destroyFns.push(e.addListener("click",()=>this.onClick(),a),e.addListener("hover",()=>this.onMouse(),a),e.addListener("wheel",()=>this.onClick(),a),e.addListener("keydown",h=>this.onKeyDown(h),63),n.addListener("drag-start",()=>this.onClick(),a))}getState(){return this.interactionManager.getState()}destroy(){super.destroy()}onClick(){var e;(e=this.focusIndicator)==null||e.overrideFocusVisible(!1),this.previousInputDevice="mouse"}onMouse(){this.previousInputDevice="mouse"}onKeyDown(e){var _,N,V,q;let t=this.getState(),{key:n,code:a,altKey:h,shiftKey:S,metaKey:E,ctrlKey:L}=e.sourceEvent;if(L||E){if(n==="y"||n==="z"&&S)return(_=this.focusIndicator)==null||_.overrideFocusVisible(this.previousInputDevice==="keyboard"),this.dispatch("redo",0,e);if(n==="z")return(N=this.focusIndicator)==null||N.overrideFocusVisible(this.previousInputDevice==="keyboard"),this.dispatch("undo",0,e)}if(t&9){(V=this.focusIndicator)==null||V.overrideFocusVisible(!1);return}switch(n){case"+":return this.dispatch("nav-zoom",1,e);case"-":return this.dispatch("nav-zoom",-1,e)}if(!(h||S||E||L))switch((q=this.focusIndicator)==null||q.overrideFocusVisible(!0),a){case"ArrowDown":return this.dispatch("nav-vert",1,e);case"ArrowUp":return this.dispatch("nav-vert",-1,e);case"ArrowLeft":return this.dispatch("nav-hori",-1,e);case"ArrowRight":return this.dispatch("nav-hori",1,e);case"ZoomIn":case"Add":return this.dispatch("nav-zoom",1,e);case"ZoomOut":case"Substract":return this.dispatch("nav-zoom",-1,e);case"Space":case"Enter":return this.dispatch("submit",0,e)}}dispatch(e,t,n){let{previousInputDevice:a}=this;_p(this.listeners,{type:e,delta:t,sourceEvent:n,previousInputDevice:a});let h=["redo","undo","nav-zoom"];n.type==="keydown"&&!h.includes(e)&&(this.previousInputDevice="keyboard")}}}});function OM(e,t,n,a,h=32){var S;return(S=e==null?void 0:e.addListener(n,E=>{t.getState()&h&&a(E)}))!=null?S:()=>{}}function CL(e){if(e==null||!(e instanceof HTMLElement))return;let t=e;for(;t!=null&&!(t!=null&&t.classList.contains("ag-charts-wrapper"));){if(t.classList.contains("ag-charts-tooltip"))return t;t=t.parentElement}}function SL(e){var S,E;let{sourceEvent:t}=e,{className:n,classList:a,ariaHidden:h}=(E=(S=e.sourceEvent)==null?void 0:S.target)!=null?E:{};return n==="ag-charts-proxy-elem"||!(a instanceof DOMTokenList)?"leave":a.contains("ag-charts-annotations__axis-button-icon")||n==="ag-charts-swapchain"||n==="ag-charts-canvas-container"||n==="ag-charts-canvas-proxy"||(t==null?void 0:t.target)instanceof HTMLCanvasElement?"none":CL(t.target)&&h!=="true"?"wait":"leave"}var Lu,Gb,_M,kg,fS=M({"packages/ag-charts-community/src/chart/interaction/regionManager.ts"(){"use strict";Vr(),yg(),Mg(),Mg(),tf(),Lu=class extends _h{},Gb=300,_M=3,kg=class{constructor(e){this.interactionManager=e,this.debug=Pa.create(!0,"region"),this.regions={root:{properties:{name:"root"},listeners:new Lu},series:{properties:{name:"series"},listeners:new Lu}},this.destroyFns=[],this.allRegionsListeners=new Lu,this.isDragMoving=!1,this.blockNextClickEvent=!1,this.processPointerEvent=t=>{let n=SL(t),{current:a}=this,h=a;if(!this.isDragMoving&&this.deferredDragStart==null)switch(n){case"wait":return;case"none":h=this.pickRegion(t);break;case"leave":h=void 0;break}let S=h;a!==void 0&&(S==null?void 0:S.properties.name)!==a.properties.name&&this.dispatch(a,t,"leave"),S!==void 0&&S.properties.name!==(a==null?void 0:a.properties.name)&&this.dispatch(h,t,"enter"),S!==void 0&&this.dispatch(h,t),this.current=h}}destroy(){this.destroyFns.forEach(e=>e()),this.current=void 0,this.regions.root.listeners.destroy(),this.regions.series.listeners.destroy()}initRegions(e,t){this.regions.root.properties.widget=e,this.regions.series.properties.widget=t,e.addListener("wheel",this.processPointerEvent),e.addListener("contextmenu",this.processPointerEvent),e.addListener("click",this.processPointerEvent),e.addListener("dblclick",this.processPointerEvent),e.addListener("mouseenter",this.processPointerEvent),e.addListener("mousemove",this.processPointerEvent),e.addListener("mouseleave",this.processPointerEvent),e.addListener("drag-start",this.processPointerEvent),e.addListener("drag-move",this.processPointerEvent),e.addListener("drag-end",this.processPointerEvent)}getRegion(e){return this.makeObserver(this.regions[e])}listenAll(e,t,n=32){return OM(this.allRegionsListeners,this.interactionManager,e,t,n)}makeObserver(e){let{interactionManager:t}=this;class n{addListener(h,S,E=32){return OM(e==null?void 0:e.listeners,t,h,S,E)}}return new n}widgetEventTypeToRegionEventType(e,t){return t!==void 0?t:{contextmenu:"contextmenu",click:"click",dblclick:"dblclick",mouseenter:"enter",mousemove:"hover",mouseleave:"leave",wheel:"wheel","drag-start":"drag-start","drag-move":"drag","drag-end":"drag-end"}[e.type]}computeEventOffsets(e,t,n){let{deltaX:a,deltaY:h}=nf.getWheelDeltas(n.sourceEvent);if("mockRegion"in n.sourceEvent){let L=n.sourceEvent.mockRegion;if(L)return pe({deltaX:a,deltaY:h},L)}let S=t.getElement().getBoundingClientRect(),E=e.getElement().getBoundingClientRect();return{canvasX:n.clientX-S.x,canvasY:n.clientY-S.y,regionX:n.clientX-E.x,regionY:n.clientY-E.y,deltaX:a,deltaY:h}}dispatch(e,t,n){var E;let{widget:a}=(E=e==null?void 0:e.properties)!=null?E:{},{widget:h}=this.regions.root.properties;if(e==null||a==null||h==null)return;let S=Op(et(pe({},this.computeEventOffsets(a,h,t)),{sourceEvent:t.sourceEvent,type:this.widgetEventTypeToRegionEventType(t,n),region:e.properties.name,timestamp:Date.now()}));switch(S.type){case"drag-start":{this.deferredDragStart=S;break}case"drag":{if(this.deferredDragStart)if(this.canStartDrag(S))this.dispatchEvent(e,this.deferredDragStart);else return;this.dispatchEvent(e,S),this.deferredDragStart=void 0,this.isDragMoving=!0,this.blockNextClickEvent=!0;break}case"drag-end":{this.isDragMoving&&this.dispatchEvent(e,S),this.deferredDragStart=void 0,this.isDragMoving=!1;break}case"click":{this.blockNextClickEvent||this.dispatchEvent(e,S),this.blockNextClickEvent=!1;break}case"leave":case"enter":(!this.isDragMoving||this.deferredDragStart!=null)&&this.dispatchEvent(e,S);break;case"hover":{this.blockNextClickEvent=!1,this.dispatchEvent(e,S);break}default:{this.dispatchEvent(e,S);break}}}dispatchEvent(e,t){this.debug("Dispatching region event: ",t),this.allRegionsListeners.dispatch(t.type,t),e.listeners.dispatch(t.type,t)}pickRegion({sourceEvent:e}){var t,n;return"mockRegion"in e&&e.mockRegion?e.mockRegion.region==="series"?this.regions.series:this.regions.root:e.target==((n=(t=this.regions.root)==null?void 0:t.properties.widget)==null?void 0:n.getElement())?this.regions.root:this.regions.series}canStartDrag(e){return this.deferredDragStart?e.timestamp-this.deferredDragStart.timestamp>Gb?!0:Math.abs(e.canvasX-this.deferredDragStart.canvasX)+Math.abs(e.canvasY-this.deferredDragStart.canvasY)>_M:!1}}}});function i1(e){var n,a,h,S,E;let t=(E=(a=(n=e.yBar)==null?void 0:n.upperPoint)!=null?a:e.midPoint)!=null?E:(S=(h=e.series).datumMidPoint)==null?void 0:S.call(h,e);if(t){let{x:L,y:_}=vr.toCanvasPoint(e.series.contentGroup,t.x,t.y);return{canvasX:Math.round(L),canvasY:Math.round(_)}}}var FM=M({"packages/ag-charts-community/src/chart/series/seriesTypes.ts"(){"use strict";Zl()}}),vS,n1=M({"packages/ag-charts-community/src/chart/interaction/tooltipManager.ts"(){"use strict";Bb(),FM(),vS=class{constructor(e,t){this.domManager=e,this.tooltip=t,this.stateTracker=new of,this.suppressState=new of(!1),this.appliedState=null,t.setup(e),e.addListener("hidden",()=>this.tooltip.hide())}updateTooltip(e,t,n){var a;this.tooltip.enabled&&(n!=null||(n=(a=this.stateTracker.get(e))==null?void 0:a.content),this.stateTracker.set(e,{content:n,meta:t}),this.applyStates())}removeTooltip(e){this.tooltip.enabled&&(this.stateTracker.delete(e),this.applyStates())}suppressTooltip(e){this.suppressState.set(e,!0)}unsuppressTooltip(e){this.suppressState.delete(e)}getTooltipMeta(e){var t;return(t=this.stateTracker.get(e))==null?void 0:t.meta}destroy(){this.domManager.removeStyles("tooltip")}applyStates(){var h;let e=this.stateTracker.stateId(),t=e?this.stateTracker.get(e):null;if(this.suppressState.stateValue()||(t==null?void 0:t.meta)==null||(t==null?void 0:t.content)==null){this.appliedState=null,this.tooltip.hide();return}let n=this.domManager.getBoundingClientRect(),a=this.tooltip.bounds==="extended"?this.domManager.getOverlayClientRect():n;if(((h=this.appliedState)==null?void 0:h.content)===(t==null?void 0:t.content)){let S=this.tooltip.isVisible();this.tooltip.show(a,n,t==null?void 0:t.meta,null,S)}else this.tooltip.show(a,n,t==null?void 0:t.meta,t==null?void 0:t.content);this.appliedState=t}static makeTooltipMeta(e,t){var L,_;let{canvasX:n,canvasY:a}=e,h=t.series.properties.tooltip,S={canvasX:n,canvasY:a,enableInteraction:(_=(L=h.interaction)==null?void 0:L.enabled)!=null?_:!1,lastPointerEvent:{type:e.type,canvasX:n,canvasY:a},showArrow:h.showArrow,position:{type:h.position.type,xOffset:h.position.xOffset,yOffset:h.position.yOffset}},E=i1(t);return(h.position.type==="node"||h.position.type==="sparkline")&&E?et(pe({},S),{canvasX:E.canvasX,canvasY:E.canvasY}):S}}}});function pd(e){return{x:e.x1,y:e.y1}}function lf(e){return{x:e.x2,y:e.y2}}function CT(e){return{x:(e.x1+e.x2)/2,y:Math.min(e.y1,e.y2)}}function cf(e){return{x:(e.x1+e.x2)/2,y:(e.y1+e.y2)/2}}function jv(e){return{x:(e.x1+e.x2)/2,y:Math.max(e.y1,e.y2)}}function jb(e){return Math.abs(e.x2-e.x1)}function a1(e){return Math.abs(e.y2-e.y1)}function NM(e){return{x1:Math.round(e.x1),y1:Math.round(e.y1),x2:Math.round(e.x2),y2:Math.round(e.y2)}}function Al(e){return{x1:e.x1,y1:e.y1,x2:e.x2,y2:e.y2}}function oo(e,t,n,a){if(typeof e=="number")return{x1:e,y1:t,x2:n,y2:a};if("width"in e)return{x1:e.x,y1:e.y,x2:e.x+e.width,y2:e.y+e.height};throw new Error(`Values can not be converted into a vector4: [${JSON.stringify(e)}] [${t}] [${n}] [${a}]`)}function Nh(){return{x1:0,y1:0,x2:0,y2:0}}var yS,ST=M({"packages/ag-charts-community/src/util/vector4.ts"(){"use strict";yS={bottomCenter:jv,center:cf,clone:Al,end:lf,from:oo,height:a1,round:NM,start:pd,topCenter:CT,origin:Nh,width:jb}}});function zM(e,t,n,a,h){return t+(a-t)*((h-e)/(n-e))}function wT(e,t,n,a,h){return e+(h-t)*((n-e)/(a-t))}function BM(e,t,n){return[wT(e,n.min,t,n.max,0),wT(e,n.min,t,n.max,1)]}function wL(e,t,n){let[a,h]=BM(e.x1,e.x2,t),[S,E]=BM(e.y1,e.y2,n);return{x1:a,x2:h,y1:S,y2:E}}function xT(e,t,n,a,h,S){if(n<=h&&S<=a)return n;let E=h-n,L=S-a,_=Math.abs(E)<Math.abs(L)?E:L;return Gn(e,n+_,t)}function Vb(e,t,n){let{x:a={min:0,max:1},y:h={min:0,max:1}}=t,S=yS.from(n),E=yS.from(e),L=wL(E,a,h),_=xT(L.x1,L.x2,E.x1,E.x2,S.x1,S.x2),N=xT(L.y1,L.y2,E.y1,E.y2,S.y1,S.y2);return{x:{min:zM(E.x1,a.min,E.x2,a.max,_),max:zM(E.x1,a.min,E.x2,a.max,_+e.width)},y:{min:zM(E.y1,h.min,E.y2,h.max,N),max:zM(E.y1,h.min,E.y2,h.max,N+e.height)}}}var md=M({"packages/ag-charts-community/src/util/panToBBox.ts"(){"use strict";zn(),ST()}}),bS,zh,GM,jM,df=M({"packages/ag-charts-community/src/chart/interaction/zoomManager.ts"(){"use strict";Gs(),sb(),ts(),ur(),Lc(),Rn(),zn(),md(),Bb(),Hn(),aa(),bS=["rangeX","rangeY","ratioX","ratioY","autoScaleYAxis"],zh=class{constructor(){this.enabled=!1,this.padding=0,this.manuallyAdjusted=!1}},GM=class extends ss{constructor(){super(...arguments),this.mementoOriginatorKey="zoom",this.axisZoomManagers=new Map,this.state=new of(void 0,"initial"),this.axes=[],this.didLayoutAxes=!1,this.autoScaleYAxis=new zh,this.lastRestoredState=void 0,this.independentAxes=!1,this.navigatorModule=!1,this.zoomModule=!1,this.pendingMemento=void 0}addLayoutListeners(e){this.destroyFns.push(e.addListener("layout:complete",()=>{let{pendingMemento:t}=this,n=!this.didLayoutAxes;this.didLayoutAxes=!0,t?this.restoreMemento(t.version,t.mementoVersion,t.memento):n&&this.autoScaleYZoom("zoom-manager")}))}createMemento(){let e=this.getDefinedZoom(),t={rangeX:this.getRangeDirection(e.x,"x"),rangeY:this.getRangeDirection(e.y,"y"),ratioX:{start:e.x.min,end:e.x.max},ratioY:{start:e.y.min,end:e.y.max}};return this.autoScaleYAxis.enabled&&(t.autoScaleYAxis=!this.autoScaleYAxis.manuallyAdjusted),t}guardMemento(e){if(e==null)return!0;if(!Br(e))return!1;for(let t of Object.keys(e))if(!zA(bS,t))return!1;return!0}restoreMemento(e,t,n){var L,_,N,V,q,Y;let{independentAxes:a}=this;if(!this.axes||!this.didLayoutAxes){this.pendingMemento={version:e,mementoVersion:t,memento:n};return}this.pendingMemento=void 0;let h=this.getDefinedZoom();if(n!=null&&n.rangeX?h.x=(L=this.rangeToRatio(n.rangeX,"x"))!=null?L:{min:0,max:1}:n!=null&&n.ratioX?h.x={min:(_=n.ratioX.start)!=null?_:0,max:(N=n.ratioX.end)!=null?N:1}:h.x={min:0,max:1},(!this.navigatorModule||this.zoomModule)&&(n!=null&&n.rangeY?h.y=(V=this.rangeToRatio(n.rangeY,"y"))!=null?V:{min:0,max:1}:n!=null&&n.ratioY?h.y={min:(q=n.ratioY.start)!=null?q:0,max:(Y=n.ratioY.end)!=null?Y:1}:h.y={min:0,max:1}),(n==null?void 0:n.autoScaleYAxis)!=null&&(this.autoScaleYAxis.manuallyAdjusted=!n.autoScaleYAxis),this.lastRestoredState=h,a!==!0){this.updateZoom("zoom-manager",h);return}let S=this.getPrimaryAxis("x"),E=this.getPrimaryAxis("y");for(let J of[S,E])J&&this.updateAxisZoom("zoom-manager",J.id,h[J.direction])}updateAxes(e){var n;this.axes=e;let t=new Map(e.map(a=>[a.id,this.axisZoomManagers.get(a.id)]));this.axisZoomManagers.clear();for(let a of e)this.axisZoomManagers.set(a.id,(n=t.get(a.id))!=null?n:new jM(a));this.state.size>0&&e.length>0&&this.updateZoom(this.state.stateId(),this.state.stateValue())}setIndependentAxes(e=!0){this.independentAxes=e}setAutoScaleYAxis(e,t){this.autoScaleYAxis.enabled=e,this.autoScaleYAxis.padding=t}setNavigatorEnabled(e=!0){this.navigatorModule=e}setZoomModuleEnabled(e=!0){this.zoomModule=e}isZoomEnabled(){return this.zoomModule}updateZoom(e,t){if(this.axisZoomManagers.size===0){let n=this.state.stateId();(n==="initial"||n===e)&&this.state.set(e,t);return}this.state.set(e,t),this.axisZoomManagers.forEach(n=>{n.updateZoom(e,t==null?void 0:t[n.getDirection()])}),this.applyChanges(e)}updateAxisZoom(e,t,n){var a;(a=this.axisZoomManagers.get(t))==null||a.updateZoom(e,n),this.applyChanges(e)}resetZoom(e){var n,a,h,S,E,L,_,N;this.autoScaleYAxis.manuallyAdjusted=!1;let t=this.getRestoredZoom();this.updateZoom(e,{x:{min:(a=(n=t==null?void 0:t.x)==null?void 0:n.min)!=null?a:0,max:(S=(h=t==null?void 0:t.x)==null?void 0:h.max)!=null?S:1},y:{min:(L=(E=t==null?void 0:t.y)==null?void 0:E.min)!=null?L:0,max:(N=(_=t==null?void 0:t.y)==null?void 0:_.max)!=null?N:1}})}resetAxisZoom(e,t){var h,S;let n=this.axisZoomManagers.get(t),a=n==null?void 0:n.getDirection();a!=null&&(a==="y"&&(this.autoScaleYAxis.manuallyAdjusted=!1),this.updateAxisZoom(e,t,(S=(h=this.getRestoredZoom())==null?void 0:h[a])!=null?S:{min:0,max:1}))}setAxisManuallyAdjusted(e,t){var a;((a=this.axisZoomManagers.get(t))==null?void 0:a.getDirection())==="y"&&(this.autoScaleYAxis.manuallyAdjusted=!0)}updatePrimaryAxisZoom(e,t,n){let a=this.getPrimaryAxis(t);a&&this.updateAxisZoom(e,a.id,n)}panToBBox(e,t,n){let a=this.getZoom();if(a===void 0||!a.x&&!a.y)return;if(!(t.width>0&&t.height>0&&Math.abs(n.width)<=Math.abs(t.width)&&Math.abs(n.height)<=Math.abs(t.height))){Di.warnOnce("cannot pan to target BBox - chart too small?");return}let S=Vb(t,a,n);this.independentAxes?(this.updatePrimaryAxisZoom(e,"x",S.x),this.updatePrimaryAxisZoom(e,"y",S.y)):this.updateZoom(e,S)}fireZoomPanStartEvent(e){this.listeners.dispatch("zoom-pan-start",{type:"zoom-pan-start",callerId:e})}extendToEnd(e,t,n){return this.extendWith(e,t,a=>Number(a)-n)}extendWith(e,t,n){let a=this.getPrimaryAxis(t);if(!a)return;let h=this.getDomainExtents(a);if(!h)return;let[,S]=h,E=n(S),L=this.rangeToRatio({start:E,end:S},t);L&&this.updateZoom(e,{[t]:L})}updateWith(e,t,n){let a=this.getPrimaryAxis(t);if(!a)return;let h=this.getDomainExtents(a);if(!h)return;let[S,E]=h;[S,E]=n(S,E);let L=this.rangeToRatio({start:S,end:E},t);L&&this.updateZoom(e,{[t]:L})}getZoom(){let e,t;if(this.axisZoomManagers.forEach(n=>{n.getDirection()==="x"?e!=null||(e=n.getZoom()):n.getDirection()==="y"&&(t!=null||(t=n.getZoom()))}),e||t)return{x:e,y:t}}getAxisZoom(e){var t,n;return(n=(t=this.axisZoomManagers.get(e))==null?void 0:t.getZoom())!=null?n:{min:0,max:1}}getAxisZooms(){let e={};for(let[t,n]of this.axisZoomManagers.entries())e[t]={direction:n.getDirection(),zoom:n.getZoom()};return e}getRestoredZoom(){return this.lastRestoredState}autoScaleYZoom(e,t=!0){let{independentAxes:n,autoScaleYAxis:a}=this,h=this.getZoom();if((h==null?void 0:h.x)==null||!a.enabled||a.manuallyAdjusted)return;let{padding:S}=a,E=n?this.primaryAxisZoom("y",h.x,{padding:S}):this.combinedAxisZoom("y",h.x,{padding:S});if(E!=null){if(n){let L=this.getPrimaryAxis("y"),_=L==null?void 0:this.axisZoomManagers.get(L.id);_==null||_.updateZoom("zoom-manager",E)}else for(let L of this.axisZoomManagers.values())L.getDirection()==="y"&&L.updateZoom("zoom-manager",E);t&&this.applyChanges(e)}}applyChanges(e){if(this.autoScaleYZoom(e,!1),!Array.from(this.axisZoomManagers.values(),a=>a.applyChanges()).includes(!0))return;let n={};for(let[a,h]of this.axisZoomManagers.entries())n[a]=h.getZoom();this.listeners.dispatch("zoom-change",et(pe({type:"zoom-change"},this.getZoom()),{axes:n,callerId:e}))}getRangeDirection(e,t){var _,N,V,q,Y,J,re,ce;let n=this.getPrimaryAxis(t);if(!n||!go.is(n.scale)&&!Rc.is(n.scale))return;let a=this.getDomainPixelExtents(n);if(!a)return;let[h,S]=a,E,L;return h<=S?(E=(N=(_=n.scale).invert)==null?void 0:N.call(_,0),L=(q=(V=n.scale).invert)==null?void 0:q.call(V,h+(S-h)*e.max)):(E=(J=(Y=n.scale).invert)==null?void 0:J.call(Y,h-(h-S)*e.min),L=(ce=(re=n.scale).invert)==null?void 0:ce.call(re,0)),{start:E,end:L}}rangeToRatio(e,t){var q,Y,J,re;let n=this.getPrimaryAxis(t);if(!n)return;let a=this.getDomainPixelExtents(n);if(!a)return;let[h,S]=a,E=e.start==null?h:(Y=(q=n.scale).convert)==null?void 0:Y.call(q,e.start),L=e.end==null?S:(re=(J=n.scale).convert)==null?void 0:re.call(J,e.end);if(!Na(E)||!Na(L))return;let _=S-h,N=Math.abs((E-h)/_),V=Math.abs((L-h)/_);return{min:N,max:V}}getPrimaryAxis(e){var t;return(t=this.axes)==null?void 0:t.find(n=>n.direction===e)}getDomainExtents(e){var h,S;let t=(S=(h=e.scale).getDomain)==null?void 0:S.call(h),n=t==null?void 0:t.at(0),a=t==null?void 0:t.at(-1);if(!(n==null||a==null))return[n,a]}getDomainPixelExtents(e){var h,S,E,L,_,N;let t=(S=(h=e.scale).getDomain)==null?void 0:S.call(h),n=(L=(E=e.scale).convert)==null?void 0:L.call(E,t==null?void 0:t.at(0)),a=(N=(_=e.scale).convert)==null?void 0:N.call(_,t==null?void 0:t.at(-1));if(!(!Na(n)||!Na(a)))return[n,a]}getDefinedZoom(){var t,n,a,h,S,E,L,_;let e=this.getZoom();return{x:{min:(n=(t=e==null?void 0:e.x)==null?void 0:t.min)!=null?n:0,max:(h=(a=e==null?void 0:e.x)==null?void 0:a.max)!=null?h:1},y:{min:(E=(S=e==null?void 0:e.y)==null?void 0:S.min)!=null?E:0,max:(_=(L=e==null?void 0:e.y)==null?void 0:L.max)!=null?_:1}}}zoomBounds(e,t,n,a){let h=e.scale,S=h.range;h.range=[0,1];let[E,L]=zs(t.scale.domain),_=1,N=!1,V=0,q=!1;for(let re of t.boundSeries){let[ce,he]=re.getRange("y",[n.min,n.max]),me=(ce-E)/(L-E),we=(he-E)/(L-E);if([me,we]=zs([me,we]),!Number.isFinite(me)||!Number.isFinite(we))continue;let{connectsToYAxis:Me}=re;me<_&&(_=me,N=!Me||ce<0),we>V&&(V=we,q=!Me||he>0)}h.range=S;let Y=(N?a:0)+(q?a:0),J=(V-_)*(1+Y);if(!(J<=0||J>=1)){if(N&&q){let re=(V+_)/2;_=re-J/2,V=re+J/2}else!N&&q?V=_+J:N&&!q&&(_=V-J);return _<0?(V+=-_,_=0):V>1&&(_-=V-1,V=1),{min:_,max:V}}}primaryAxisZoom(e,t,{padding:n=0}={}){let a=e==="x"?"y":"x",h=this.getPrimaryAxis(a),S=this.getPrimaryAxis(e);if(!(h==null||S==null))return this.zoomBounds(h,S,t,n)}combinedAxisZoom(e,t,{padding:n=0}={}){let a=e==="x"?"y":"x",h=new Map;for(let L of this.axes)if(L.direction===a)for(let _ of L.boundSeries)h.set(_,L);let S=1,E=0;for(let L of this.axes)if(L.direction===e)for(let _ of L.boundSeries){let N=h.get(_);if(N==null)continue;let V=this.zoomBounds(N,L,t,n);if(V==null)return;S=Math.min(S,V.min),E=Math.max(E,V.max)}if(!(S>E))return{min:S,max:E}}},jM=class{constructor(e){this.axis=e;let[t=0,n=1]=e.visibleRange;this.state=new of({min:t,max:n}),this.currentZoom=this.state.stateValue()}getDirection(){return this.axis.direction}updateZoom(e,t){this.state.set(e,t)}getZoom(){return Sl(this.state.stateValue())}hasChanges(){let e=this.currentZoom,t=this.state.stateValue();return e.min!==t.min||e.max!==t.max}applyChanges(){let e=this.hasChanges();return this.currentZoom=this.state.stateValue(),e}}}}),Ag,uf=M({"packages/ag-charts-community/src/chart/layout/seriesLabelLayoutManager.ts"(){"use strict";jn(),hD(),Ag=class{constructor(){this.labelData=new Map}updateLabels(e,t,n=Ui.zero){var E,L;let a={x:-t.left,y:-t.top,width:n.width+t.left+t.right,height:n.height+t.top+t.bottom},h=new Set(e.map(_=>_.id));for(let _ of this.labelData.keys())h.has(_)||this.labelData.delete(_);for(let _ of e){let N=_.getLabelData();N.every(Nx)&&this.labelData.set(_.id,N)}let S=hg(this.labelData,a,5);for(let _ of e)(L=_.updatePlacedLabelData)==null||L.call(_,(E=S.get(_.id))!=null?E:[])}}}}),Vv,o1=M({"packages/ag-charts-community/src/chart/legend/legendManager.ts"(){"use strict";ur(),Rn(),Hn(),Vv=class extends ss{constructor(e){super(),this.chartService=e,this.mementoOriginatorKey="legend",this.legendDataMap=new Map}createMemento(){return this.getData().filter(({hideInLegend:e,isFixed:t})=>!e&&!t).map(({enabled:e,seriesId:t,itemId:n,legendItemName:a})=>({visible:e,seriesId:t,itemId:n,legendItemName:a}))}guardMemento(e){return e==null||ho(e)}restoreMemento(e,t,n){n==null||n.forEach(a=>{var E;let{seriesId:h,data:S}=(E=this.getRestoredData(a))!=null?E:{};!h||!S||this.updateData(h,S)}),this.update()}getRestoredData(e){var S,E;let{seriesId:t,itemId:n,legendItemName:a,visible:h}=e;if(t){let _=((S=this.legendDataMap.get(t))!=null?S:[]).map(N=>{let V=N.seriesId===t&&(!n||N.itemId===n);return V&&N.isFixed&&this.warnFixed(N.seriesId,N.itemId),!N.isFixed&&V?et(pe({},N),{enabled:h}):N});return{seriesId:t,data:_}}if(!(n==null&&a==null))for(let L of this.getData()){if(n!=null&&L.itemId!==n||a!=null&&L.legendItemName!==a)continue;if(L.isFixed){this.warnFixed(L.seriesId,n);return}let _=((E=this.legendDataMap.get(L.seriesId))!=null?E:[]).map(N=>N.itemId===n||N.legendItemName===a?et(pe({},N),{enabled:h}):N);return{seriesId:L.seriesId,data:_}}}warnFixed(e,t){Di.warnOnce(`The legend item with seriesId [${e}] and itemId [${t}] is not configurable, this series item cannot be toggled through the legend.`)}update(e){this.listeners.dispatch("legend-change",{type:"legend-change",legendData:e!=null?e:this.getData()})}updateData(e,t=[]){this.legendDataMap.set(e,t)}clearData(){this.legendDataMap.clear()}toggleItem({enabled:e,seriesId:t,itemId:n,legendItemName:a}){if(a){this.getData().forEach(L=>{var N;let _=((N=this.legendDataMap.get(L.seriesId))!=null?N:[]).map(V=>V.legendItemName===a?et(pe({},V),{enabled:e}):V);this.updateData(L.seriesId,_)});return}let h=this.getData(t),S=h.length===1,E=h.map(L=>n==null&&S||L.itemId===n?et(pe({},L),{enabled:e}):L);this.updateData(t,E)}getData(e){var t;return e?(t=this.legendDataMap.get(e))!=null?t:[]:[...this.legendDataMap].reduce((n,[a,h])=>n.concat(h),[])}getDatum({seriesId:e,itemId:t}={}){return this.getData(e).find(n=>n.itemId===t)}getSeriesEnabled(e){let t=this.getData(e);if(t.length>0)return t.some(n=>n.enabled)}getItemEnabled({seriesId:e,itemId:t}={}){var n,a;return(a=(n=this.getDatum({seriesId:e,itemId:t}))==null?void 0:n.enabled)!=null?a:!0}}}}),Fp,r1=M({"packages/ag-charts-community/src/chart/series/seriesStateManager.ts"(){"use strict";Fp=class{constructor(){this.groups={}}registerSeries({internalId:e,seriesGrouping:t,visible:n,type:a}){var S;var h;t&&((S=(h=this.groups)[a])!=null||(h[a]={}),this.groups[a][e]={grouping:t,visible:n})}updateSeries({internalId:e,seriesGrouping:t,visible:n,type:a}){var S;if(!t)return;let h=(S=this.groups[a])==null?void 0:S[e];h&&(h.grouping=t,h.visible=n)}deregisterSeries({internalId:e,type:t}){this.groups[t]&&delete this.groups[t][e],this.groups[t]&&Object.keys(this.groups[t]).length===0&&delete this.groups[t]}getVisiblePeerGroupIndex({type:e,seriesGrouping:t,visible:n}){var E;if(!t)return{visibleGroupCount:n?1:0,visibleSameStackCount:n?1:0,index:0};let a=new Set,h=new Set;for(let L of Object.values((E=this.groups[e])!=null?E:{}))L.visible&&(a.add(L.grouping.groupIndex),L.grouping.groupIndex===t.groupIndex&&h.add(L.grouping.stackIndex));let S=Array.from(a);return S.sort((L,_)=>L-_),{visibleGroupCount:S.length,visibleSameStackCount:h.size,index:S.indexOf(t.groupIndex)}}}}}),Dg,Yd=M({"packages/ag-charts-community/src/chart/chartUpdateType.ts"(){"use strict";Dg=(e=>(e[e.FULL=0]="FULL",e[e.UPDATE_DATA=1]="UPDATE_DATA",e[e.PROCESS_DATA=2]="PROCESS_DATA",e[e.PERFORM_LAYOUT=3]="PERFORM_LAYOUT",e[e.SERIES_UPDATE=4]="SERIES_UPDATE",e[e.PRE_SCENE_RENDER=5]="PRE_SCENE_RENDER",e[e.SCENE_RENDER=6]="SCENE_RENDER",e[e.NONE=7]="NONE",e))(Dg||{})}}),nc,Bh=M({"packages/ag-charts-community/src/chart/updateService.ts"(){"use strict";yg(),Yd(),nc=class extends _h{constructor(e){super(),this.updateCallback=e}update(e=0,t){this.updateCallback(e,t)}dispatchUpdateComplete(e){this.dispatch("update-complete",{type:"update-complete",minRect:e==null?void 0:e.minRect,minVisibleRect:e==null?void 0:e.minVisibleRect})}dispatchPreDomUpdate(){this.dispatch("pre-dom-update",{type:"pre-dom-update"})}dispatchPreSceneRender(e){this.dispatch("pre-scene-render",pe({type:"pre-scene-render"},e))}}}}),s1,MT=M({"packages/ag-charts-community/src/chart/chartContext.ts"(){"use strict";Iu(),sL(),lL(),FD(),uT(),gT(),Lh(),uS(),fT(),yL(),vT(),Jn(),ZD(),QD(),JD(),Js(),pS(),t1(),Mg(),LM(),fS(),n1(),df(),Fc(),uf(),o1(),r1(),Bh(),s1=class{constructor(e,t){this.callbackCache=new UD,this.chartEventManager=new $D,this.highlightManager=new mS,this.layoutManager=new Oh,this.localeManager=new sS,this.seriesStateManager=new Fp,this.stateManager=new Lv,this.zoomManager=new GM,this.seriesLabelLayoutManager=new Ag,this.contextModules=[];let{scene:n,root:a,syncManager:h,container:S,updateCallback:E,updateMutex:L,pixelRatio:_,styleContainer:N,chartType:V}=t;this.chartService=e,this.syncManager=h,this.domManager=new vM(S,N);let q=this.domManager.addChild("canvas","scene-canvas",n==null?void 0:n.canvas.element);this.scene=n!=null?n:new Gv({pixelRatio:_,canvasElement:q}),this.scene.setRoot(a),this.axisManager=new qD(a),this.legendManager=new Vv(this.chartService),this.annotationManager=new KD(e.annotationRoot),this.chartTypeOriginator=new Mb(e),this.cursorManager=new sf(this.domManager),this.interactionManager=new nf(e.keyboard,this.domManager),this.regionManager=new kg(this.interactionManager),this.keyNavManager=new PM(this.interactionManager,this.regionManager),this.contextMenuRegistry=new RM,this.gestureDetector=new qd(this.domManager),this.updateService=new nc(E),this.proxyInteractionService=new GD(this.localeManager,this.domManager),this.historyManager=new Q0(this.keyNavManager),this.animationManager=new af(this.interactionManager,L),this.dataService=new kl(this.animationManager),this.tooltipManager=new vS(this.domManager,e.tooltip),this.zoomManager.addLayoutListeners(this.layoutManager);for(let Y of Ph.byType("context")){if(!Y.chartTypes.includes(V))continue;let J=Y.moduleFactory(this);this.contextModules.push(J),this[Y.contextKey]=J}}destroy(){this.animationManager.destroy(),this.highlightManager.destroy(),this.axisManager.destroy(),this.callbackCache.invalidateCache(),this.chartEventManager.destroy(),this.domManager.destroy(),this.highlightManager.destroy(),this.keyNavManager.destroy(),this.regionManager.destroy(),this.interactionManager.destroy(),this.proxyInteractionService.destroy(),this.syncManager.destroy(),this.tooltipManager.destroy(),this.zoomManager.destroy(),this.contextModules.forEach(e=>e.destroy())}}}}),VM,kT=M({"packages/ag-charts-community/src/chart/chartHighlight.ts"(){"use strict";ga(),Ki(),VM=class extends _n{constructor(){super(...arguments),this.range="tooltip"}},f([$e(zo(["tooltip","node"],"a range"))],VM.prototype,"range",2)}});function AT(e,t){if(e.size!==t.size)return!1;for(let n of e)if(!t.has(n))return!1;return!0}function DT(e,t){if(e==null||t==null)return e===t;if(e.size!==t.size)return!1;for(let[n,a]of e){let h=t.get(n);if(h==null||!AT(a,h))return!1}return!0}function l1(e,t){if(e.length!==t.length)return!1;for(let h=0;h<e.length;h+=1){let n=e[h],{idsMap:S}=n,E=ji(n,["idsMap"]),a=t[h],{idsMap:L}=a,_=ji(a,["idsMap"]);if(!Ko(E,_)||!DT(S,L))return!1}return!0}function Hb(e,t){let E=e,{props:n}=E,a=ji(E,["props"]),L=t,{props:h}=L,S=ji(L,["props"]);return Ko(a,S)&&l1(n,h)}function c1(e,t,n,a){return t===e.data&&bh(n,e.ids)&&Hb(a,e.opts)}var CS=M({"packages/ag-charts-community/src/chart/data/caching.ts"(){"use strict";ts(),Ta()}}),Jo,jo,HM=M({"packages/ag-charts-community/src/chart/data/dataDomain.ts"(){"use strict";Jo=class AZ{constructor(){this.domain=new Set}static is(t){return t instanceof AZ}extend(t){this.domain.add(t)}getDomain(){return Array.from(this.domain)}},jo=class DZ{constructor(){this.domain=[1/0,-1/0]}static is(t){return t instanceof DZ}static extendDomain(t,n=[1/0,-1/0]){for(let a of t)typeof a=="number"&&(n[0]>a&&(n[0]=a),n[1]<a&&(n[1]=a));return n}extend(t){this.domain[0]>t&&(this.domain[0]=t),this.domain[1]<t&&(this.domain[1]=t)}getDomain(){return[...this.domain]}}}}),fd,vd,Ms,Wb,Ub=M({"packages/ag-charts-community/src/chart/data/rangeLookup.ts"(){"use strict";fd=0,vd=1,Ms=2,Wb=class{constructor(e){let t=e.reduce((S,E)=>Math.max(S,E.length),0),a=1<<32-Math.clz32(t);t===a/2&&(a=a>>>1),this.maxLevelSize=a;let h=new Float64Array((a*2-1)*2).fill(NaN);for(let S of e)for(let E=0;E<S.length;E+=1){let L=Number(S[E]),_=a+E-1,N=(_*Ms|0)+fd,V=(_*Ms|0)+vd,q=h[N],Y=h[V];(!Number.isFinite(q)||L<q)&&(h[N]=L),(!Number.isFinite(Y)||L>Y)&&(h[V]=L)}for(let S=a/2|0;S>=1;S=S/2|0){let E=S-1|0,L=E+S|0;for(let _=0;_<S;_+=1){let N=E+_,V=L+_*2,q=V+1,Y=h[(V*Ms|0)+fd],J=h[(q*Ms|0)+fd];h[(N*Ms|0)+fd]=!Number.isFinite(J)||Y<J?Y:J;let re=h[(V*Ms|0)+vd],ce=h[(q*Ms|0)+vd];h[(N*Ms|0)+vd]=!Number.isFinite(ce)||re>ce?re:ce}}this.buffer=h}computeRangeInto(e,t,n,a,h,S,E){let L=h+S-1;if(L<t||h>n)return E;if(h>=t&&L<=n){let _=e[(a*Ms|0)+fd],N=e[(a*Ms|0)+vd];Number.isFinite(_)&&(E[0]=Math.min(E[0],_)),Number.isFinite(N)&&(E[1]=Math.max(E[1],N))}else S>1&&(a=a*2|0,S=S/2|0,this.computeRangeInto(e,t,n,a+1|0,h,S,E),this.computeRangeInto(e,t,n,a+2|0,h+S,S,E));return E}rangeBetween(e,t){let{maxLevelSize:n,buffer:a}=this,h=[1/0,-1/0];return this.computeRangeInto(a,e,t,0,0,n,h),h}get range(){let{buffer:e}=this;return[e[fd],e[vd]]}}}});function SS(e){return e.map(t=>Br(t)?JSON.stringify(t):t).join("-")}function Eg(e){return Number.isInteger(e)?e:Math.abs(e)>1e4?Math.trunc(e):Math.round(e*1e4)/1e4}function Dl(e){let t=e==null?void 0:e.map(Number);return t!=null&&t.every(Number.isFinite)?t:[]}function Ig(e,t){var n;return(n=t==null?void 0:t.get(e.id))!=null?n:0}function wS(e,t){let n=[];for(let a=0;a<e;a+=1)n[a]=t;return n}function Xd(e,t){let n=[];for(let a of e){let h=a[t];if(h==null)return;n.push(h)}return n}function Np(e){let t=[],n=0,a,h=new RegExp(`((?:(?:^|\\.)\\s*\\w+|\\[\\s*(?:'(?:[^']|(?<!\\\\)\\\\')*'|"(?:[^"]|(?<!\\\\)\\\\")*"|-?\\d+)\\s*\\])\\s*)`,"g");for(;a=h.exec(e);){if(a.index!==n)return;n=a.index+a[0].length;let S=a[1].trim();if(S.startsWith("."))t.push(S.slice(1).trim());else if(S.startsWith("[")){let E=S.slice(1,-1).trim();E.startsWith("'")?t.push(E.slice(1,-1).replace(new RegExp("(?<!\\\\)\\\\'","g"),"'")):E.startsWith('"')?t.push(E.slice(1,-1).replace(new RegExp('(?<!\\\\)\\\\"',"g"),'"')):t.push(E)}else t.push(S)}if(n===e.length)return t}function hf(e){return t=>{let n=t;for(let a of e)n=n[a];return n}}function WM(e){var n,a;let t=(h,S)=>{S.length>0&&(Di.log(`DataModel.processData() - ${h}`),Di.table(S))};Di.log("DataModel.processData() - processedData",e),t("Key Domains",e.domain.keys),t("Group Domains",(n=e.domain.groups)!=null?n:[]),t("Value Domains",e.domain.values),t("Aggregate Domains",(a=e.domain.aggValues)!=null?a:[])}var Kb,zp,Hv,ac=M({"packages/ag-charts-community/src/chart/data/dataModel.ts"(){"use strict";Vr(),cp(),Rn(),zn(),Hn(),HM(),Ub(),Kb=Symbol("domain-ranges"),zp=Symbol("invalid"),Hv=class{constructor(e,t="standalone",n=!1){this.opts=e,this.mode=t,this.suppressFieldDotNotation=n,this.debug=Pa.create(!0,"data-model"),this.scopeCache=new Map,this.keys=[],this.values=[],this.aggregates=[],this.groupProcessors=[],this.propertyProcessors=[],this.reducers=[],this.processors=[];let a=!0;for(let S of e.props){if(S.type==="key"&&!a)throw new Error("AG Charts - internal config error: keys must come before values.");S.type==="value"&&a&&(a=!1)}let h=({matchGroupIds:S=[]})=>{for(let E of S)if(this.values.every(L=>L.groupId!==E))throw new Error(`AG Charts - internal config error: matchGroupIds properties must match defined groups (${E}).`)};for(let S of e.props)switch(S.type){case"key":this.keys.push(et(pe({},S),{index:this.keys.length,missing:new Map}));break;case"value":if(S.property==null)throw new Error(`AG Charts - internal config error: no properties specified for value definitions: ${JSON.stringify(S)}`);this.values.push(et(pe({},S),{index:this.values.length,missing:new Map}));break;case"aggregate":h(S),this.aggregates.push(et(pe({},S),{index:this.aggregates.length}));break;case"group-value-processor":h(S),this.groupProcessors.push(et(pe({},S),{index:this.groupProcessors.length}));break;case"property-value-processor":this.propertyProcessors.push(et(pe({},S),{index:this.propertyProcessors.length}));break;case"reducer":this.reducers.push(et(pe({},S),{index:this.reducers.length}));break;case"processor":this.processors.push(et(pe({},S),{index:this.processors.length}));break}}resolveProcessedDataDefById(e,t){var a;let n=(a=this.scopeCache.get(e.id))==null?void 0:a.get(t);if(!n)throw new Error(`AG Charts - didn't find property definition for [${t}, ${e.id}]`);return{index:n.index,def:n}}resolveProcessedDataIndexById(e,t){return this.resolveProcessedDataDefById(e,t).index}resolveProcessedDataDefsByIds(e,t){return t.map(n=>[n,this.resolveProcessedDataDefById(e,n)])}resolveKeysById(e,t,n){let a=this.resolveProcessedDataIndexById(e,t),h=n.keys[a];if(h==null)throw new Error(`AG Charts - didn't find keys for [${t}, ${e.id}]`);return h}resolveColumnById(e,t,n){var S;let a=this.resolveProcessedDataIndexById(e,t),h=(S=n.columns)==null?void 0:S[a];if(h==null)throw new Error(`AG Charts - didn't find column for [${t}, ${e.id}]`);return h}resolveProcessedDataDefsValues(e,{keys:t,values:n}){let a={};for(let[h,{index:S,def:E}]of e){let L=E.type==="key"?t:n;a[h]=L[S]}return a}getDomain(e,t,n,a){var S;let h=this.getDomainsByType(n!=null?n:"value",a);return(S=h==null?void 0:h[this.resolveProcessedDataIndexById(e,t)])!=null?S:[]}getDomainBetweenRange(e,t,[n,a],h){let S=t.map(N=>this.resolveProcessedDataIndexById(e,N)),E=S.join(":"),L=h[Kb],_=L.get(E);if(_==null){let N=S.map(V=>h.columns[V]);_=new Wb(N),L.set(E,_)}return _.rangeBetween(n,a)}getDomainsByType(e,t){switch(e){case"key":return t.domain.keys;case"value":return t.domain.values;case"aggregate":return t.domain.aggValues;case"group-value-processor":return t.domain.groups;default:return null}}processData(e,t){let{opts:{groupByKeys:n,groupByFn:a},aggregates:h,groupProcessors:S,reducers:E,processors:L,propertyProcessors:_}=this,N=performance.now();if(n&&this.keys.length===0)return;let V=this.extractData(e,t);n?V=this.groupData(V):a&&(V=this.groupData(V,a(V))),S.length>0&&this.postProcessGroups(V),h.length>0&&this.aggregateData(V),_.length>0&&this.postProcessProperties(V),E.length>0&&this.reduceData(V),L.length>0&&this.postProcessData(V),this.warnDataMissingProperties(e);let q=performance.now();return V.time=q-N,this.debug.check()&&WM(V),this.processScopeCache(),V}warnDataMissingProperties(e){if(e.length!==0)for(let t of pi(this.keys,this.values))for(let[n,a]of t.missing){if(a<e.length)continue;let h=n==null?"":` for ${n}`;Di.warnOnce(`the key '${t.property}' was not found in any data element${h}.`)}}processScopeCache(){var e;this.scopeCache.clear();for(let t of pi(this.keys,this.values,this.aggregates))if(t.idsMap)for(let[n,a]of t.idsMap)for(let h of a)if(!this.scopeCache.has(n))this.scopeCache.set(n,new Map([[h,t]]));else{if((e=this.scopeCache.get(n))!=null&&e.has(h))throw new Error("duplicate definition ids on the same scope are not allowed.");this.scopeCache.get(n).set(h,t)}}valueGroupIdxLookup({matchGroupIds:e}){let t=[];for(let[n,a]of this.values.entries())(!e||a.groupId&&e.includes(a.groupId))&&t.push(n);return t}valueIdxLookup(e,t){let n=e==null||e.length===0,a=typeof t=="string"?t:t.id,h=E=>{if(E.idsMap){for(let[L,_]of E.idsMap)if(e!=null&&e.includes(L)&&_.has(a))return!0}return!1},S=this.values.reduce((E,L,_)=>((L.scopes==null||n&&!L.scopes.length||L.scopes.some(V=>e==null?void 0:e.includes(V)))&&(L.property===a||L.id===a||h(L))&&E.push(_),E),[]);if(S.length===0)throw new Error(`AG Charts - configuration error, unknown property ${JSON.stringify(t)} in scope(s) ${JSON.stringify(e)}`);return S}extractData(e,t){let{dataDomain:n,processValue:a,scopes:h,allScopesHaveSameDefs:S}=this.initDataDomainProcessor(),E=new Map(t==null?void 0:t.map(we=>[we.id,we])),{keys:L,values:_}=this,N=e.length,V=0,q,Y,J=L.map(we=>{let{invalidValue:Me}=we;return e.map((be,Le)=>{let Fe=a(we,be,Le);return Fe!==zp?Fe:(q!=null||(q=wS(N,!1)),q[Le]=!0,Y!=null||(Y=wS(N,!1)),Y[Le]=!0,Me)})}),re,ce=(we,Me)=>{re!=null||(re=new Map);let be=re.get(we);be==null&&(be=wS(N,!1),re.set(we,be)),be[Me]=!0,Y!=null||(Y=wS(N,!1)),Y[Me]=!0},he=[];_.forEach(we=>{let{invalidValue:Me}=we,be=he.length>0?he[he.length-1]:void 0,Le=e.map((Fe,je)=>{var lt,ot;let Xe=(q==null?void 0:q[je])===!0,nt=be==null?void 0:be[je];for(let vt of(lt=we.scopes)!=null?lt:h){let gt=E.get(vt),bt=(ot=gt==null?void 0:gt.data[je])!=null?ot:Fe;nt=a(we,bt,je,nt,vt),(Xe||nt===zp)&&ce(vt,je)}return Xe?Me:nt===zp?(V+=1,Me):nt});he.push(Le)});let me=we=>{let Me=n.get(we),be=Me.getDomain();return jo.is(Me)&&be[0]>be[1]?[]:be};return{type:"ungrouped",input:{count:e.length},rawData:e,rawDataSources:t!=null?new Map(t.map(we=>[we.id,we.data])):void 0,aggregation:void 0,keys:J,columns:he,invalidKeys:q,invalidDataScopes:re,invalidData:Y,domain:{keys:L.map(me),values:_.map(me)},defs:{allScopesHaveSameDefs:S,keys:L,values:_},partialValidDataCount:V,time:0,[Kb]:new Map}}groupData(e,t){var V;let n=new Map,{rawData:a,keys:h,invalidKeys:S,invalidDataScopes:E,invalidData:L}=e;for(let q=0;q<a.length;q+=1){let Y=a[q],J=Xd(h,q);if(J==null||J.length===0)continue;let re=(V=t==null?void 0:t({index:q,keys:J,values:void 0,aggValues:void 0,datum:Y,validScopes:void 0}))!=null?V:J,ce=SS(re);if((S==null?void 0:S[q])===!0)continue;let he;if(E!=null&&(L==null?void 0:L[q])===!0&&(he=new Set,E.forEach((we,Me)=>{we[q]===!1&&he.add(Me)}),he.size===0))continue;let me=n.get(ce);if(me!=null){if(me.datumIndices.push(q),he!=null&&me.validScopes!=null)for(let we of me.validScopes)he.has(we)||me.validScopes.delete(we)}else n.set(ce,{keys:re,datumIndices:[q],validScopes:he})}let _=[],N=[];for(let{keys:q,datumIndices:Y,validScopes:J}of n.values())(J==null?void 0:J.size)!==0&&(_.push(q),N.push({datumIndices:Y,keys:q,aggregation:[],validScopes:J}));return et(pe({},e),{type:"grouped",domain:et(pe({},e.domain),{groups:_}),groups:N})}aggregateData(e){var S,E,L,_,N,V,q;let t=this.aggregates.map(()=>[1/0,-1/0]);e.domain.aggValues=t;let{keys:n,columns:a,rawData:h}=e;if(e.type==="ungrouped"){let Y=h.map((J,re)=>{var he,me,we,Me,be,Le;let ce=[];for(let[Fe,je]of this.aggregates.entries()){let Xe=this.valueGroupIdxLookup(je),nt=(me=(he=je.groupAggregateFunction)==null?void 0:he.call(je))!=null?me:[1/0,-1/0],lt=Xe.map(bt=>a[bt][re]),ot=Xd(n,re),vt=ot!=null?je.aggregateFunction(lt,ot):void 0;vt&&(nt=(Me=(we=je.groupAggregateFunction)==null?void 0:we.call(je,vt,nt))!=null?Me:jo.extendDomain(vt,nt));let gt=((Le=(be=je.finalFunction)==null?void 0:be.call(je,nt))!=null?Le:nt).map(bt=>Eg(bt));ce[Fe]=gt,jo.extendDomain(gt,t[Fe])}return ce});e.aggregation=Y}else for(let[Y,J]of this.aggregates.entries()){let re=this.valueGroupIdxLookup(J);for(let ce of e.groups){if((S=ce.aggregation)!=null||(ce.aggregation=[]),ce.validScopes!=null)continue;let he=ce.keys,me=(L=(E=J.groupAggregateFunction)==null?void 0:E.call(J))!=null?L:[1/0,-1/0];for(let Me of ce.datumIndices){let be=re.map(Fe=>a[Fe][Me]),Le=J.aggregateFunction(be,he);Le&&(me=(N=(_=J.groupAggregateFunction)==null?void 0:_.call(J,Le,me))!=null?N:jo.extendDomain(Le,me))}let we=((q=(V=J.finalFunction)==null?void 0:V.call(J,me))!=null?q:me).map(Me=>Eg(Me));ce.aggregation[Y]=we,jo.extendDomain(we,t[Y])}}}postProcessGroups(e){let{groupProcessors:t}=this,{rawData:n,columns:a,invalidData:h}=e;for(let S of t){let E=this.valueGroupIdxLookup(S),L=S.adjust()();for(let _=0;_<n.length;_+=1)(h==null?void 0:h[_])!==!0&&L(a,E,_);for(let _ of E){let V=this.values[_].valueType==="category",q=a[_],Y=V?new Jo:new jo;for(let J=0;J<n.length;J+=1)(h==null?void 0:h[J])!==!0&&Y.extend(q[J]);e.domain.values[_]=Y.getDomain()}}}postProcessProperties(e){for(let{adjust:t,property:n,scopes:a}of this.propertyProcessors)for(let h of this.valueIdxLookup(a,n))t()(e,h)}reduceData(e){var t,n;(t=e.reduced)!=null||(e.reduced={});for(let a of this.reducers){let h=a.reducer(),S=a.initialValue,{rawData:E,keys:L,columns:_}=e;if(e.type==="grouped")for(let N of e.groups)(!N.validScopes||(n=a.scopes)!=null&&n.some(V=>{var q;return(q=N.validScopes)==null?void 0:q.has(V)}))&&(S=h(S,{index:N.datumIndices,keys:N.datumIndices.flatMap(V=>L.map(q=>q[V])),values:N.datumIndices.map(V=>_[V]),datum:N.datumIndices.map(V=>E[V])}));else for(let N=0;N<E.length;N+=1)S=h(S,{index:[N],keys:L.map(V=>V[N]),values:[_[N]],datum:[E[N]]});e.reduced[a.property]=S}}postProcessData(e){var t;(t=e.reduced)!=null||(e.reduced={});for(let n of this.processors)e.reduced[n.property]=n.calculate(e,e.reduced[n.property])}initDataDomainProcessor(){let{keys:e,values:t}=this,n=new Set;for(let N of t)if(N.scopes)for(let V of N.scopes)n.add(V);let a=new Map,h=new Map,S=!0,E=()=>{var N;for(let V of pi(e,t))V.valueType==="category"?a.set(V,new Jo):(a.set(V,new jo),S&&(S=((N=V.scopes)!=null?N:[]).length===n.size))};E();let L=this.buildAccessors(pi(e,t));return{dataDomain:a,processValue:(N,V,q,Y,J)=>{var me,we,Me,be;let re,ce;if(L.has(N.property)){try{ce=L.get(N.property)(V)}catch(Le){}re=ce!=null}else re=N.property in V,ce=re?V[N.property]:N.missingValue;N.forceValue!=null&&(ce=re&&ZC(ce)?-1*N.forceValue:N.forceValue,re=!0);let he="missingValue"in N;if(!re&&!he){let Le=(me=N.missing.get(J))!=null?me:0;N.missing.set(J,Le+1)}if(a.has(N)||E(),re&&((we=N.validation)==null?void 0:we.call(N,ce,V,q))===!1)if("invalidValue"in N)ce=N.invalidValue;else return this.mode!=="integrated"&&Di.warnOnce(`invalid value of type [${typeof ce}] for [${N.scopes} / ${N.id}] ignored:`,`[${ce}]`),zp;return N.processor&&(h.has(N)||h.set(N,N.processor()),ce=(Me=h.get(N))==null?void 0:Me(ce,Y===zp?void 0:Y)),(be=a.get(N))==null||be.extend(ce),ce},initDataDomain:E,scopes:n,allScopesHaveSameDefs:S}}buildAccessors(e){let t=new Map;if(this.suppressFieldDotNotation)return t;for(let n of e){if(!(n.property.includes(".")||n.property.includes("[")))continue;let h=Np(n.property);if(h==null){Di.warnOnce("Invalid property path [%s]",n.property);continue}let S=hf(h);t.set(n.property,S)}return t}}}}),gf,qb,Wv=M({"packages/ag-charts-community/src/chart/data/dataController.ts"(){"use strict";Vr(),oa(),CS(),ac(),gf=class Jw{constructor(t,n){this.mode=t,this.suppressFieldDotNotation=n,this.debug=Pa.create(!0,"data-model"),this.requested=[],this.status="setup"}async request(t,n,a){if(this.status!=="setup")throw new Error("AG Charts - data request after data setup phase.");return new Promise((h,S)=>{this.requested.push({id:t,opts:a,data:n,resolve:h,reject:S})})}execute(t){if(this.status!=="setup")throw new Error("AG Charts - data request after data setup phase.");this.status="executed",this.debug("DataController.execute() - requested",this.requested);let n=this.validateRequests(this.requested);this.debug("DataController.execute() - validated",n);let a=this.mergeRequested(n);this.debug("DataController.execute() - merged",a),this.debug.check()&&(Da().processedData=[]);let h=[];for(let{data:S,ids:E,opts:L,resolves:_,rejects:N}of a){let V=t==null?void 0:t.find(J=>c1(J,S,E,L)),q,Y;if(V==null)try{q=new Hv(L,this.mode,this.suppressFieldDotNotation),Y=q.processData(S,n)}catch(J){N.forEach(re=>re(J));continue}else({dataModel:q,processedData:Y}=V);h.push({opts:L,data:S,ids:E,dataModel:q,processedData:Y}),this.debug.check()&&Da("processedData").push(Y),(Y==null?void 0:Y.partialValidDataCount)===0?_.forEach(J=>J({dataModel:q,processedData:Y})):Y?this.splitResult(q,Y,E,_):N.forEach(J=>J(new Error("AG Charts - no processed data generated")))}return h}validateRequests(t){let n=[];for(let[a,h]of t.entries())a>0&&h.data.length!==t[0].data.length&&h.opts.groupByData===!1?h.reject(new Error("all series[].data arrays must be of the same length and have matching keys.")):n.push(h);return n}mergeRequested(t){let n=[];for(let a of t){let h=n.find(Jw.groupMatch(a));h?h.push(a):n.push([a])}return n.map(Jw.mergeRequests)}splitResult(t,n,a,h){for(let S=0;S<a.length;S++){let E=h[S];E({dataModel:t,processedData:n})}}static groupMatch({data:t,opts:n}){function a(N){return N.filter(V=>V.type==="key").map(V=>V.property).join(";")}let{groupByData:h,groupByKeys:S=!1,groupByFn:E,props:L}=n,_=a(L);return([N])=>{var V;return(h===!1||N.data===t)&&((V=N.opts.groupByKeys)!=null?V:!1)===S&&N.opts.groupByFn===E&&a(N.opts.props)===_}}static mergeRequests(t){return t.reduce((n,N)=>{var{id:a,data:h,resolve:S,reject:E,opts:V}=N,q=V,{props:L}=q,_=ji(q,["props"]);var Y,J,re,ce,he;n.ids.push(a),n.rejects.push(E),n.resolves.push(S),(Y=n.data)!=null||(n.data=h),(J=n.opts)!=null||(n.opts=et(pe({},_),{props:[]}));for(let me of L){let we=et(pe({},me),{scopes:[a]});Jw.createIdsMap(a,we);let Me=n.opts.props.find(be=>be.type===we.type&&Jw.deepEqual(be,we));if(!Me){n.opts.props.push(we);continue}(re=Me.scopes)!=null||(Me.scopes=[]),Me.scopes.push(...(ce=we.scopes)!=null?ce:[]),(Me.type==="key"||Me.type==="value")&&((he=we.idsMap)!=null&&he.size)&&Jw.mergeIdsMap(we.idsMap,Me.idsMap)}return n},{ids:[],rejects:[],resolves:[],data:null,opts:null})}static mergeIdsMap(t,n){for(let[a,h]of t){let S=n.get(a);if(S==null)n.set(a,new Set(h));else for(let E of h)S.add(E)}}static createIdsMap(t,n){var a;n.id!=null&&((a=n.idsMap)!=null||(n.idsMap=new Map),n.idsMap.has(t)?n.idsMap.get(t).add(n.id):n.idsMap.set(t,new Set([n.id])))}static deepEqual(t,n){if(t===n)return!0;if(t&&n&&typeof t=="object"&&typeof n=="object"){if(t.constructor!==n.constructor)return!1;let a,h;if(Array.isArray(t)){if(h=t.length,h!==n.length)return!1;for(a=h-1;a>=0;a--)if(!Jw.deepEqual(t[a],n[a]))return!1;return!0}let S=Object.keys(t);if(h=S.length,h!==Object.keys(n).length)return!1;for(a=h-1;a>=0;a--){let E=S[a];if(!Jw.skipKeys.has(E)&&(!Object.hasOwn(n,E)||!Jw.deepEqual(t[E],n[E])))return!1}return!0}return!1}},gf.skipKeys=new Set(["id","idsMap","type","scopes"]),qb=gf}}),UM,Ou,pf=M({"packages/ag-charts-community/src/chart/factory/axisRegistry.ts"(){"use strict";UM=class{constructor(){this.axesMap=new Map,this.hidden=new Set,this.themeTemplates=new Map}register(e,t){this.axesMap.set(e,t.moduleFactory),t.themeTemplate&&this.setThemeTemplate(e,t.themeTemplate),t.hidden&&this.hidden.add(e)}create(e,t){let n=this.axesMap.get(e);if(n)return n(t);throw new Error(`AG Charts - unknown axis type: ${e}`)}has(e){return this.axesMap.has(e)}keys(){return this.axesMap.keys()}publicKeys(){return[...this.keys()].filter(e=>!this.hidden.has(e))}setThemeTemplate(e,t){return this.themeTemplates.set(e,t),this}getThemeTemplate(e){return this.themeTemplates.get(e)}},Ou=new UM}});function d1(e){return Kr.some(t=>t.type==="series"&&t.identifier===e)}function Tg(e){var t;return(t=Kr.find(n=>n.type==="series"&&n.identifier===e))==null?void 0:t.chartTypes}function KM(e){var n;return((n=Tg(e))==null?void 0:n.find(a=>a==="cartesian"))==="cartesian"}function Nc(e){var n;return((n=Tg(e))==null?void 0:n.find(a=>a==="polar"))==="polar"}function mf(e){var n;return((n=Tg(e))==null?void 0:n.find(a=>a==="hierarchy"))==="hierarchy"}function zc(e){var n;return((n=Tg(e))==null?void 0:n.find(a=>a==="topology"))==="topology"}function Rg(e){var n;return((n=Tg(e))==null?void 0:n.find(a=>a==="flow-proportion"))==="flow-proportion"}function qM(e){var n;return((n=Tg(e))==null?void 0:n.find(a=>a==="standalone"))==="standalone"}function YM(e){var n;return((n=Tg(e))==null?void 0:n.find(a=>a==="gauge"))==="gauge"}function Bc(e){return e.packageType==="enterprise"}function XM(e){var n;if(!Bc(e))throw new Error("AG Charts - internal configuration error, only enterprise modules need verification.");let t=Kr.find(a=>a.type===e.type&&("optionsKey"in a&&"optionsKey"in e?a.optionsKey===e.optionsKey:!0)&&("contextKey"in a&&"contextKey"in e?a.contextKey===e.contextKey:!0)&&a.identifier===e.identifier&&e.chartTypes.every(h=>a.chartTypes.includes(h)));return t&&((n=t.useCount)!=null||(t.useCount=0),t.useCount++),t!=null}function xS(){return Kr.filter(({useCount:e})=>e==null||e===0)}var Kr,Pg=M({"packages/ag-charts-community/src/chart/factory/expectedEnterpriseModules.ts"(){"use strict";Kr=[{type:"root",optionsKey:"animation",chartTypes:["cartesian","polar","hierarchy","topology","flow-proportion","standalone","gauge"]},{type:"root",optionsKey:"annotations",chartTypes:["cartesian"]},{type:"root",optionsKey:"background",chartTypes:["cartesian","polar","hierarchy","topology","flow-proportion","standalone","gauge"],optionsInnerKey:"image"},{type:"root",optionsKey:"foreground",chartTypes:["cartesian","polar","hierarchy","topology","flow-proportion","standalone","gauge"],optionsInnerKey:"image"},{type:"root",optionsKey:"chartToolbar",chartTypes:["cartesian"]},{type:"root",optionsKey:"contextMenu",chartTypes:["cartesian","polar","hierarchy","topology","flow-proportion","standalone","gauge"]},{type:"root",optionsKey:"statusBar",chartTypes:["cartesian"],identifier:"status-bar"},{type:"root",optionsKey:"dataSource",chartTypes:["cartesian","polar","hierarchy","topology","flow-proportion","standalone","gauge"]},{type:"root",optionsKey:"sync",chartTypes:["cartesian"]},{type:"root",optionsKey:"zoom",chartTypes:["cartesian","topology"]},{type:"root",optionsKey:"ranges",chartTypes:["cartesian"]},{type:"legend",optionsKey:"gradientLegend",chartTypes:["cartesian","polar","hierarchy","topology","flow-proportion","standalone","gauge"],identifier:"gradient"},{type:"root",optionsKey:"navigator",chartTypes:["cartesian"]},{type:"axis",optionsKey:"axes[]",chartTypes:["polar"],identifier:"angle-category"},{type:"axis",optionsKey:"axes[]",chartTypes:["polar"],identifier:"angle-number"},{type:"axis",optionsKey:"axes[]",chartTypes:["polar"],identifier:"radius-category"},{type:"axis",optionsKey:"axes[]",chartTypes:["polar"],identifier:"radius-number"},{type:"series",optionsKey:"series[]",chartTypes:["cartesian"],identifier:"bar",community:!0},{type:"series",optionsKey:"series[]",chartTypes:["cartesian"],identifier:"line",community:!0},{type:"axis",optionsKey:"axes[]",chartTypes:["cartesian"],identifier:"ordinal-time"},{type:"axis-option",optionsKey:"crosshair",chartTypes:["cartesian"]},{type:"series",optionsKey:"series[]",chartTypes:["cartesian"],identifier:"box-plot"},{type:"series",optionsKey:"series[]",chartTypes:["cartesian"],identifier:"candlestick"},{type:"series",optionsKey:"series[]",chartTypes:["cartesian"],identifier:"cone-funnel"},{type:"series",optionsKey:"series[]",chartTypes:["cartesian"],identifier:"funnel"},{type:"series",optionsKey:"series[]",chartTypes:["cartesian"],identifier:"ohlc"},{type:"series",optionsKey:"series[]",chartTypes:["cartesian"],identifier:"heatmap"},{type:"series",optionsKey:"series[]",chartTypes:["cartesian"],identifier:"range-area"},{type:"series",optionsKey:"series[]",chartTypes:["cartesian"],identifier:"range-bar"},{type:"series",optionsKey:"series[]",chartTypes:["cartesian"],identifier:"waterfall"},{type:"series",optionsKey:"series[]",chartTypes:["polar"],identifier:"nightingale"},{type:"series",optionsKey:"series[]",chartTypes:["polar"],identifier:"radar-area"},{type:"series",optionsKey:"series[]",chartTypes:["polar"],identifier:"radar-line"},{type:"series",optionsKey:"series[]",chartTypes:["polar"],identifier:"radial-bar"},{type:"series",optionsKey:"series[]",chartTypes:["polar"],identifier:"radial-column"},{type:"series",optionsKey:"series[]",chartTypes:["hierarchy"],identifier:"sunburst"},{type:"series",optionsKey:"series[]",chartTypes:["hierarchy"],identifier:"treemap"},{type:"series",optionsKey:"series[]",chartTypes:["topology"],identifier:"map-shape"},{type:"series",optionsKey:"series[]",chartTypes:["topology"],identifier:"map-line"},{type:"series",optionsKey:"series[]",chartTypes:["topology"],identifier:"map-marker"},{type:"series",optionsKey:"series[]",chartTypes:["topology"],identifier:"map-shape-background"},{type:"series",optionsKey:"series[]",chartTypes:["topology"],identifier:"map-line-background"},{type:"series",optionsKey:"series[]",chartTypes:["flow-proportion"],identifier:"chord"},{type:"series",optionsKey:"series[]",chartTypes:["flow-proportion"],identifier:"sankey"},{type:"series",optionsKey:"series[]",chartTypes:["standalone"],identifier:"pyramid"},{type:"series",optionsKey:"series[]",chartTypes:["gauge"],identifier:"linear-gauge"},{type:"series",optionsKey:"series[]",chartTypes:["gauge"],identifier:"radial-gauge"},{type:"series-option",optionsKey:"errorBar",chartTypes:["cartesian"],identifier:"error-bars"},{type:"context",contextKey:"sharedToolbar",chartTypes:["cartesian"]}]}}),Yb,ff,Uv=M({"packages/ag-charts-community/src/chart/factory/legendRegistry.ts"(){"use strict";Yb=class{constructor(){this.legendMap=new Map,this.themeTemplates=new Map}register(e,{optionsKey:t,moduleFactory:n,themeTemplate:a}){this.legendMap.set(e,{optionsKey:t,moduleFactory:n}),this.themeTemplates.set(t,a)}create(e,t){var a;let n=(a=this.legendMap.get(e))==null?void 0:a.moduleFactory;if(n)return n(t);throw new Error(`AG Charts - unknown legend type: ${e}`)}getThemeTemplates(){return Object.fromEntries(this.themeTemplates)}getKeys(){return Array.from(this.legendMap.entries()).reduce((e,[t,n])=>(e[t]=n.optionsKey,e),{})}},ff=new Yb}}),Xb,ZM,bo,Zb,Kv,Lg=M({"packages/ag-charts-community/src/chart/factory/chartTypes.ts"(){"use strict";Ta(),Xb=class extends Map{get(e){var t;return(t=super.get(e))!=null?t:"unknown"}isCartesian(e){return this.get(e)==="cartesian"}isPolar(e){return this.get(e)==="polar"}isHierarchy(e){return this.get(e)==="hierarchy"}isTopology(e){return this.get(e)==="topology"}isFlowProportion(e){return this.get(e)==="flow-proportion"}isStandalone(e){return this.get(e)==="standalone"}isGauge(e){return this.get(e)==="gauge"}get seriesTypes(){return Array.from(this.keys())}get cartesianTypes(){return this.seriesTypes.filter(e=>this.isCartesian(e))}get polarTypes(){return this.seriesTypes.filter(e=>this.isPolar(e))}get hierarchyTypes(){return this.seriesTypes.filter(e=>this.isHierarchy(e))}get topologyTypes(){return this.seriesTypes.filter(e=>this.isTopology(e))}get flowProportionTypes(){return this.seriesTypes.filter(e=>this.isFlowProportion(e))}get standaloneTypes(){return this.seriesTypes.filter(e=>this.isStandalone(e))}get gaugeTypes(){return this.seriesTypes.filter(e=>this.isGauge(e))}},ZM=class extends Map{set(e,t){return super.set(e,ia(t,this.get(e)))}},bo=new Xb,Zb=new Xb,Kv=new ZM}}),qv,rr,MS=M({"packages/ag-charts-community/src/chart/factory/seriesRegistry.ts"(){"use strict";Lc(),Ta(),Lg(),qv=class{constructor(){this.seriesMap=new Map,this.themeTemplates=new Map}register(e,{chartTypes:[t],moduleFactory:n,tooltipDefaults:a,defaultAxes:h,themeTemplate:S,paletteFactory:E,solo:L,stackable:_,groupable:N,stackedByDefault:V,hidden:q}){this.setThemeTemplate(e,S),this.seriesMap.set(e,{moduleFactory:n,tooltipDefaults:a,defaultAxes:h,paletteFactory:E,solo:L,stackable:_,groupable:N,stackedByDefault:V}),bo.set(e,t),q||Zb.set(e,t)}create(e,t){var a;let n=(a=this.seriesMap.get(e))==null?void 0:a.moduleFactory;if(n)return n(t);throw new Error(`AG Charts - unknown series type: ${e}`)}cloneDefaultAxes(e,t){var h;let n=(h=this.seriesMap.get(e))==null?void 0:h.defaultAxes;if(n==null)return null;let a=typeof n=="function"?n(t):n;return{axes:Sl(a)}}setThemeTemplate(e,t){let n=this.themeTemplates.get(e);this.themeTemplates.set(e,ia(t,n))}getThemeTemplate(e){return this.themeTemplates.get(e)}getPaletteFactory(e){var t;return(t=this.seriesMap.get(e))==null?void 0:t.paletteFactory}getTooltipDefauls(e){var t;return(t=this.seriesMap.get(e))==null?void 0:t.tooltipDefaults}isSolo(e){var t,n;return(n=(t=this.seriesMap.get(e))==null?void 0:t.solo)!=null?n:!1}isGroupable(e){var t,n;return(n=(t=this.seriesMap.get(e))==null?void 0:t.groupable)!=null?n:!1}isStackable(e){var t,n;return(n=(t=this.seriesMap.get(e))==null?void 0:t.stackable)!=null?n:!1}isStackedByDefault(e){var t,n;return(n=(t=this.seriesMap.get(e))==null?void 0:t.stackedByDefault)!=null?n:!1}},rr=new qv}}),Bp,kS,AS=M({"packages/ag-charts-community/src/chart/interaction/syncManager.ts"(){"use strict";ur(),Bp=class hI extends ss{constructor(t){super(),this.chart=t}subscribe(t=hI.DEFAULT_GROUP){let n=this.get(t);return n||(n=new Set,hI.chartsGroups.set(t,n)),n.add(this.chart),this}unsubscribe(t=hI.DEFAULT_GROUP){var n;return(n=this.get(t))==null||n.delete(this.chart),this}getChart(){return this.chart}getGroup(t=hI.DEFAULT_GROUP){let n=this.get(t);return n?Array.from(n):[]}getGroupSiblings(t=hI.DEFAULT_GROUP){return this.getGroup(t).filter(n=>n!==this.chart)}get(t){return hI.chartsGroups.get(t)}},Bp.chartsGroups=new Map,Bp.DEFAULT_GROUP=Symbol("sync-group-default"),kS=Bp}}),Ma,vf=M({"packages/ag-charts-community/src/chart/keyboard.ts"(){"use strict";ga(),Ki(),Ma=class extends _n{constructor(){super(...arguments),this.enabled=!1}},f([$e(Ji)],Ma.prototype,"enabled",2),f([$e(pa)],Ma.prototype,"tabIndex",2)}});function Og(e){return typeof e=="string"&&Zd.includes(e)}function $M(e){let t=[],n=[],a=[...Zd];for(let h of e)h instanceof Ap&&(Og(h.position)?n.push(h.position):t.push(h));for(let h of t){let S;do S=a.pop();while(S&&n.includes(S));if(S==null)break;h.position=S}}var Zd,ET=M({"packages/ag-charts-community/src/chart/mapping/prepareAxis.ts"(){"use strict";Ev(),Zd=["top","right","bottom","left"]}});function yd(e,t,n){var N,V,q,Y;let a=(J,re,ce)=>{let he=[J];for(let me of u1)me in re&&re[me]!=null&&he.push(`${me}=${re[me]}`);return ce!=null&&ce.seriesGrouping&&he.push(`seriesGrouping.groupId=${ce==null?void 0:ce.seriesGrouping.groupId}`),he.join(";")},h=new Map,S=0;for(let J of e){let re=a(J.type,J.properties,n==null?void 0:n[S]);h.has(re)||h.set(re,[]),(N=h.get(re))==null||N.push([J,S++])}let E=new Map;S=0;for(let J of t){let re=a(J.type,J,J);E.has(re)||E.set(re,[]),(V=E.get(re))==null||V.push([J,S++])}if(![...h.keys()].some(J=>E.has(J)))return{status:"no-overlap",oldKeys:h.keys(),newKeys:E.keys()};let _=[];for(let[J,re]of E.entries())for(let[ce,he]of re){let me=h.get(J);if(me==null||me.length<1){_.push({opts:ce,targetIdx:he,idx:he,status:"add"}),h.delete(J);continue}let[we,Me]=me.shift(),be=(q=n==null?void 0:n[Me])!=null?q:{},Le=gg(be,ce!=null?ce:{}),{groupIndex:Fe,stackIndex:je}=(Y=Le==null?void 0:Le.seriesGrouping)!=null?Y:{};Fe!=null||je!=null?_.push({opts:ce,series:we,diff:Le,targetIdx:he,idx:Me,status:"series-grouping"}):Le?_.push({opts:ce,series:we,diff:Le,targetIdx:he,idx:Me,status:"update"}):_.push({opts:ce,series:we,targetIdx:he,idx:Me,status:"no-op"}),me.length===0&&h.delete(J)}for(let J of h.values())for(let[re,ce]of J)_.push({series:re,idx:ce,targetIdx:-1,status:"remove"});return{status:"overlap",changes:_}}var u1,oc=M({"packages/ag-charts-community/src/chart/mapping/prepareSeries.ts"(){"use strict";Lc(),u1=["direction","xKey","yKey","sizeKey","angleKey","radiusKey","normalizedTo"]}});function _g(e){var n,a;let{series:t}=e;if(t)return(a=(n=t[0])==null?void 0:n.type)!=null?a:"line"}function $b(e){let t=_g(e);return t==null?!1:bo.isCartesian(t)||KM(t)}function _u(e){let t=_g(e);return t==null?!1:bo.isPolar(t)||Nc(t)}function hr(e){let t=_g(e);return t==null?!1:bo.isHierarchy(t)||mf(t)}function rc(e){let t=_g(e);return t==null?!1:bo.isTopology(t)||zc(t)}function QM(e){let t=_g(e);return t==null?!1:bo.isFlowProportion(t)||Rg(t)}function DS(e){let t=_g(e);return t==null?!1:bo.isStandalone(t)||qM(t)}function Gp(e){let t=_g(e);return t==null?!1:bo.isGauge(t)||YM(t)}function h1(e){let t=_g(e);return _u(e)&&t!=="pie"&&t!=="donut"}function IT(e){return e==null?!1:bo.has(e)}function TT(e){return e==null?!1:Ou.has(e)}var yf=M({"packages/ag-charts-community/src/chart/mapping/types.ts"(){"use strict";pf(),Lg(),Pg()}}),Yv,xL=M({"packages/ag-charts-community/src/chart/modulesManager.ts"(){"use strict";mp(),ga(),Yv=class extends Xl{applyOptions(e){for(let t of this.moduleMap.values())t.module.optionsKey in e&&ha(t.moduleInstance)&&t.moduleInstance.set(e[t.module.optionsKey])}*legends(){for(let{module:e,moduleInstance:t}of this.moduleMap.values())e.type==="legend"&&(yield{legendType:e.identifier,legend:t})}}}}),gr,g1,bf,p1=M({"packages/ag-charts-community/src/chart/overlay/overlay.ts"(){"use strict";oa(),ga(),Ki(),gr="ag-charts-overlay",g1="ag-charts-dark-overlay",bf=class extends _n{constructor(e,t){super(),this.className=e,this.defaultMessageId=t,this.enabled=!0}getText(e){var t;return e.t((t=this.text)!=null?t:this.defaultMessageId)}getElement(e,t,n){var a;if((a=this.content)==null||a.remove(),this.focusBox=n,this.renderer){let h=this.renderer();if(h instanceof HTMLElement)this.content=h;else{let S=va("div");S.innerHTML=h,this.content=S.firstElementChild}}else{let h=va("div",{display:"flex",alignItems:"center",justifyContent:"center",boxSizing:"border-box",height:"100%",margin:"8px",font:"12px Verdana, sans-serif"});h.innerText=this.getText(t),this.content=h,e==null||e.animate({from:0,to:1,id:"overlay",phase:"add",groupId:"opacity",onUpdate(S){h.style.opacity=String(S)},onStop(){h.style.opacity="1"}})}return this.content}removeElement(e=()=>{var n;return(n=this.content)==null?void 0:n.remove()},t){if(this.content){if(t){let{content:n}=this;t.animate({from:1,to:0,phase:"remove",id:"overlay",groupId:"opacity",onUpdate(a){n.style.opacity=String(a)},onStop(){e==null||e()}})}else e==null||e();this.content=void 0,this.focusBox=void 0}}},f([$e(Ji)],bf.prototype,"enabled",2),f([$e(hi,{optional:!0})],bf.prototype,"text",2),f([$e(Kl,{optional:!0})],bf.prototype,"renderer",2)}}),Gh,RT=M({"packages/ag-charts-community/src/chart/overlay/chartOverlays.ts"(){"use strict";ga(),Ki(),p1(),Gh=class extends _n{constructor(){super(...arguments),this.darkTheme=!1,this.loading=new bf("ag-charts-loading-overlay","overlayLoadingData"),this.noData=new bf("ag-charts-no-data-overlay","overlayNoData"),this.noVisibleSeries=new bf("ag-charts-no-visible-series","overlayNoVisibleSeries"),this.unsupportedBrowser=new bf("ag-charts-unsupported-browser","overlayUnsupportedBrowser")}getFocusInfo(e){for(let t of[this.loading,this.noData,this.noVisibleSeries,this.unsupportedBrowser])if(t.focusBox!==void 0)return{text:t.getText(e),rect:t.focusBox}}destroy(){this.loading.removeElement(),this.noData.removeElement(),this.noVisibleSeries.removeElement(),this.unsupportedBrowser.removeElement()}},f([$e(Ji)],Gh.prototype,"darkTheme",2),f([$e(Yi)],Gh.prototype,"loading",2),f([$e(Yi)],Gh.prototype,"noData",2),f([$e(Yi)],Gh.prototype,"noVisibleSeries",2),f([$e(Yi)],Gh.prototype,"unsupportedBrowser",2)}});function PT(e,t){let{animationDuration:n}=wa.add,a=n*t,h=va("div",`${gr}--loading`,{display:"flex",alignItems:"center",justifyContent:"center",flexDirection:"column",height:"100%",boxSizing:"border-box",font:"13px Verdana, sans-serif",userSelect:"none",animation:`ag-charts-loading ${a}ms linear 50ms both`}),S=va("span",{width:"45px",height:"40px",backgroundImage:["linear-gradient(#0000 calc(1 * 100% / 6), #ccc 0 calc(3 * 100% / 6), #0000 0), ","linear-gradient(#0000 calc(2 * 100% / 6), #ccc 0 calc(4 * 100% / 6), #0000 0), ","linear-gradient(#0000 calc(3 * 100% / 6), #ccc 0 calc(5 * 100% / 6), #0000 0)"].join(""),backgroundSize:"10px 400%",backgroundRepeat:"no-repeat",animation:"ag-charts-loading-matrix 1s infinite linear"}),E=va("p",{marginTop:"1em"});E.innerText=e;let L=va("div",`${gr}__loading-background`,{position:"absolute",inset:"0",opacity:"0.5",zIndex:"-1"}),_=va("style");return _.innerText=["@keyframes ag-charts-loading { from { opacity: 0 } to { opacity: 1 } }","@keyframes ag-charts-loading-matrix {","0% { background-position: 0% 0%, 50% 0%, 100% 0%; }","100% { background-position: 0% 100%, 50% 100%, 100% 100%; }","}"].join(" "),h.replaceChildren(_,S,E,L),h}var LT=M({"packages/ag-charts-community/src/chart/overlay/loadingSpinner.ts"(){"use strict";xa(),oa(),p1()}}),JM,ES,IS=M({"packages/ag-charts-community/src/chart/series/seriesZIndexMap.ts"(){"use strict";JM=(e=>(e[e.BACKGROUND=0]="BACKGROUND",e[e.ANY_CONTENT=1]="ANY_CONTENT",e))(JM||{}),ES=(e=>(e[e.FOREGROUND=0]="FOREGROUND",e[e.HIGHLIGHT=1]="HIGHLIGHT",e[e.LABEL=2]="LABEL",e))(ES||{})}}),TS,m1,OT,Tr,Gc,Cf,sc=M({"packages/ag-charts-community/src/chart/series/series.ts"(){"use strict";mp(),$o(),Rh(),Ac(),Lc(),yg(),GI(),uh(),Ta(),aT(),Oc(),aa(),IS(),TS=(e=>(e[e.EXACT_SHAPE_MATCH=0]="EXACT_SHAPE_MATCH",e[e.NEAREST_NODE=1]="NEAREST_NODE",e[e.AXIS_ALIGNED=2]="AXIS_ALIGNED",e))(TS||{}),m1=.25,OT=.125,Tr=class{constructor(e,t,{datum:n},a){this.type=e,this.event=t,this.datum=n,this.seriesId=a.id}},Gc=class{constructor(e,t,n){this.series=e,this.seriesGrouping=t,this.oldGrouping=n,this.type="groupingChanged"}},Cf=class extends Y0{constructor(e){super(),this.destroyFns=[],this.usesPlacedLabels=!1,this.seriesGrouping=void 0,this.NodeEvent=Tr,this.internalId=dl(this),this.contentGroup=new qa({name:`${this.internalId}-content`,zIndex:1}),this.highlightGroup=new qa({name:`${this.internalId}-highlight`,zIndex:1}),this.annotationGroup=new qa({name:`${this.internalId}-annotation`}),this.labelGroup=new qa({name:`${this.internalId}-series-labels`}),this.axes={x:void 0,y:void 0},this.directions=["x","y"],this.nodeDataRefresh=!0,this.moduleMap=new Xl,this.datumCallbackCache=new Map,this.connectsToYAxis=!1,this._declarationOrder=-1,this.seriesListeners=new _h,this._pickNodeCache=new A0;let{moduleCtx:t,pickModes:n,directionKeys:a={},directionNames:h={},canHaveAxes:S=!1,usesPlacedLabels:E=!1}=e;this.ctx=t,this.directionKeys=a,this.directionNames=h,this.canHaveAxes=S,this.usesPlacedLabels=E,this.highlightGroup=new qa({name:`${this.internalId}-highlight`}),this.highlightNode=this.highlightGroup.appendChild(new hn({name:"highlightNode",zIndex:0})),this.highlightLabel=this.highlightGroup.appendChild(new hn({name:"highlightLabel",zIndex:10})),this.pickModes=n}get pickModeAxis(){return"main"}get id(){var e,t;return(t=(e=this.properties)==null?void 0:e.id)!=null?t:this.internalId}get type(){var e;return(e=this.constructor.type)!=null?e:""}get data(){var e;return(e=this._data)!=null?e:this._chartData}set visible(e){this.properties.visible=e,this.ctx.legendManager.toggleItem({enabled:e,seriesId:this.id}),this.ctx.legendManager.update(),this.visibleMaybeChanged()}get visible(){var e;return(e=this.ctx.legendManager.getSeriesEnabled(this.id))!=null?e:this.properties.visible}get hasData(){return this.data!=null&&this.data.length>0}get tooltipEnabled(){var e,t;return(t=(e=this.properties.tooltip)==null?void 0:e.enabled)!=null?t:!1}onDataChange(){this.nodeDataRefresh=!0,this._pickNodeCache.clear()}setOptionsData(e){this._data=e,this.onDataChange()}setChartData(e){this._chartData=e,this.data===e&&this.onDataChange()}onSeriesGroupingChange(e,t){let{internalId:n,type:a,visible:h}=this;e&&this.ctx.seriesStateManager.deregisterSeries(this),t&&this.ctx.seriesStateManager.registerSeries({internalId:n,type:a,visible:h,seriesGrouping:t}),this.fireEvent(new Gc(this,t,e))}getBandScalePadding(){return{inner:1,outer:0}}attachSeries(e,t,n){e.appendChild(this.contentGroup),t.appendChild(this.highlightGroup),t.appendChild(this.labelGroup),n==null||n.appendChild(this.annotationGroup)}detachSeries(e,t,n){e==null||e.removeChild(this.contentGroup),t.removeChild(this.highlightGroup),t.removeChild(this.labelGroup),n==null||n.removeChild(this.annotationGroup)}setSeriesIndex(e){return e===this._declarationOrder?!1:(this._declarationOrder=e,this.contentGroup.zIndex=[1,e,0],this.highlightGroup.zIndex=[1,e,1],this.labelGroup.zIndex=[1,e,2],this.annotationGroup.zIndex=e,!0)}renderToOffscreenCanvas(){return!1}addEventListener(e,t){return super.addEventListener(e,t)}addListener(e,t){return this.seriesListeners.addListener(e,t)}dispatch(e,t){this.seriesListeners.dispatch(e,t)}addChartEventListeners(){}destroy(){this.destroyFns.forEach(e=>e()),this.destroyFns=[],this.resetDatumCallbackCache(),this.ctx.seriesStateManager.deregisterSeries(this)}getDirectionValues(e,t){let n=this.resolveKeyDirection(e),a=t==null?void 0:t[n],h=[];if(!a)return h;let S=(...E)=>{for(let L of E)Array.isArray(L)?S(...L):typeof L=="object"?S(...Object.values(L)):h.push(L)};return S(...a.map(E=>this.properties[E])),h}getKeys(e){return this.getDirectionValues(e,this.directionKeys)}getKeyProperties(e){var t;return(t=this.directionKeys[this.resolveKeyDirection(e)])!=null?t:[]}getNames(e){return this.getDirectionValues(e,this.directionNames)}resolveKeyDirection(e){return e}getDomain(e){let t=this.getSeriesDomain(e),n=this.moduleMap.mapModules(a=>a.getDomain(e)).flat();return n.length!==0?t.concat(n):t}getRange(e,t){return this.getSeriesRange(e,t)}markNodeDataDirty(){this.nodeDataRefresh=!0,this._pickNodeCache.clear(),this.visibleMaybeChanged()}visibleMaybeChanged(){this.ctx.seriesStateManager.updateSeries(this)}getOpacity(){let{dimOpacity:t=1,enabled:n=!0}=this.properties.highlightStyle.series;if(!n||t===1)return 1;switch(this.isItemIdHighlighted()){case 0:case 1:return 1;case 2:default:return t}}getStrokeWidth(e){let{strokeWidth:t,enabled:n=!0}=this.properties.highlightStyle.series;if(!n||t===void 0)return e;switch(this.isItemIdHighlighted()){case 1:return t;case 0:case 2:return e}}isItemIdHighlighted(){var t,n;let e=(n=(t=this.ctx.highlightManager)==null?void 0:t.getActiveHighlight())==null?void 0:n.series;return e==null?0:e!==this?2:1}getModuleTooltipParams(){return this.moduleMap.mapModules(e=>e.getTooltipParams()).reduce((e,t)=>Object.assign(e,t),{})}pickNode(e,t,n=!1){let{pickModes:a,pickModeAxis:h,visible:S,contentGroup:E}=this;if(!S||!E.visible||t==="highlight"&&!this.properties.highlight.enabled||t==="highlight-tooltip"&&!this.properties.highlight.enabled)return;let L=1/0;if(t==="tooltip"||t==="highlight-tooltip"){let{tooltip:Y}=this.properties;L=typeof Y.range=="number"?Y.range:1/0,n||(n=Y.range==="exact")}else if(t==="event"||t==="context-menu"){let{nodeClickRange:Y}=this.properties;L=typeof Y=="number"?Y:1/0,n||(n=Y==="exact")}let _=a.filter(Y=>!n||Y===0),{x:N,y:V}=e,q=JSON.stringify({x:N,y:V,maxDistance:L,selectedPickModes:_});if(this._pickNodeCache.has(q))return this._pickNodeCache.get(q);for(let Y of _){let J;switch(Y){case 0:J=this.pickNodeExactShape(e);break;case 1:J=this.pickNodeClosestDatum(e);break;case 2:J=h!=null?this.pickNodeMainAxisFirst(e,h==="main-category"):void 0;break}if(J&&J.distance<=L)return this._pickNodeCache.set(q,{pickMode:Y,match:J.datum,distance:J.distance})}return this._pickNodeCache.set(q,void 0)}pickNodeExactShape(e){let t=this.contentGroup.pickNode(e.x,e.y);if(t&&t.datum.missing!==!0)return{datum:t.datum,distance:0}}pickNodeClosestDatum(e){throw new Error("AG Charts - Series.pickNodeClosestDatum() not implemented")}pickNodeNearestDistantObject(e,t){let n=Ns(e.x,e.y,t);if(n.nearest!==void 0&&n.nearest.datum.missing!==!0)return{datum:n.nearest.datum,distance:Math.sqrt(n.distanceSquared)}}pickNodeMainAxisFirst(e,t){throw new Error("AG Charts - Series.pickNodeMainAxisFirst() not implemented")}getLabelData(){return[]}updatePlacedLabelData(e){}fireNodeClickEvent(e,t){this.fireEvent(new this.NodeEvent("nodeClick",e,t,this))}fireNodeDoubleClickEvent(e,t){this.fireEvent(new this.NodeEvent("nodeDoubleClick",e,t,this))}createNodeContextMenuActionEvent(e,t){return new this.NodeEvent("nodeContextMenuAction",e,t,this)}onLegendInitialState(e,t){let{visible:n=!0,itemId:a,legendItemName:h}=t!=null?t:{};this.toggleSeriesItem(n,e,a,h)}onLegendItemClick(e){let{enabled:t,itemId:n,series:a,legendType:h}=e,S="legendItemName"in this.properties?this.properties.legendItemName:void 0,E="legendItemKey"in this.properties?this.properties.legendItemKey:void 0,L=S!=null&&S===e.legendItemName;(a.id===this.id||L||E!=null)&&this.toggleSeriesItem(t,h,n,S,e)}onLegendItemDoubleClick(e){let{enabled:t,itemId:n,series:a,numVisibleItems:h,legendType:S}=e,E="legendItemName"in this.properties?this.properties.legendItemName:void 0,L="legendItemKey"in this.properties?this.properties.legendItemKey:void 0,_=E!=null&&E===e.legendItemName;a.id===this.id||_||L!=null?this.toggleSeriesItem(!0,S,n,E,e):t&&h===1?this.toggleSeriesItem(!0,S,void 0,E):this.toggleSeriesItem(!1,S,void 0,E)}toggleSeriesItem(e,t,n,a,h){var L;let S=this.id;(e||t!=="category")&&(this.visible=e),this.nodeDataRefresh=!0,this._pickNodeCache.clear();let E={type:"seriesVisibilityChange",seriesId:S,itemId:n,legendItemName:(L=h==null?void 0:h.legendItemName)!=null?L:a,visible:e};this.fireEvent(E),this.ctx.legendManager.toggleItem({enabled:e,seriesId:S,itemId:n,legendItemName:a})}isEnabled(){return this.visible}getModuleMap(){return this.moduleMap}createModuleContext(){return et(pe({},this.ctx),{series:this})}getLabelText(e,t,n=qs){var a;return e.formatter&&(a=this.ctx.callbackCache.call(e.formatter,pe({seriesId:this.id},t)))!=null?a:n(t.value)}getMarkerStyle(e,t,n=e.getStyle()){var S,E;let a={size:(E=(S=t.datum.point)==null?void 0:S.size)!=null?E:0},h=ia(a,n);if(e.itemStyler){let L=this.ctx.callbackCache.call(e.itemStyler,et(pe(pe({seriesId:this.id},h),t),{datum:t.datum.datum}));return ia(L,h)}return h}updateMarkerStyle(e,t,n,a=t.getStyle(),{applyTranslation:h=!0,selected:S=!0}={}){let{point:E}=n.datum,L=this.getMarkerStyle(t,n,a),_=this.visible&&L.size>0&&E&&!isNaN(E.x)&&!isNaN(E.y);if(h?e.setProperties(et(pe({visible:_},L),{translationX:E==null?void 0:E.x,translationY:E==null?void 0:E.y})):e.setProperties(pe({visible:_},L)),S||(e.fillOpacity*=m1,e.strokeOpacity*=OT),typeof t.shape=="function"&&!e.dirtyPath){e.path.clear(!0),e.updatePath(),e.checkPathDirty();let N=e.getBBox();if(E!==void 0&&N.isFinite()){let V=N.computeCenter(),[q,Y]=["x","y"].map(re=>{var ce;return((ce=L.strokeWidth)!=null?ce:0)+Math.abs(V[re]-E[re])}),J=Math.max(N.width+q,N.height+Y);E.focusSize=J}}}getMinRects(e,t){}get nodeDataDependencies(){var e;return(e=this._nodeDataDependencies)!=null?e:{seriesRectWidth:NaN,seriesRectHeight:NaN}}checkResize(e){let{width:t,height:n}=e!=null?e:{width:NaN,height:NaN},a=e?{seriesRectWidth:t,seriesRectHeight:n}:void 0,h=gg(this.nodeDataDependencies,a)!=null;return h&&(this._nodeDataDependencies=a,this.markNodeDataDirty()),h}pickFocus(e){}resetDatumCallbackCache(){this.datumCallbackCache.clear()}cachedDatumCallback(e,t){let{datumCallbackCache:n}=this,a=n.get(e);if(a!=null)return a;let h=t();return n.set(e,h),h}},Cf.highlightedZIndex=1e12,f([Ys({changeValue:function(e,t){this.onSeriesGroupingChange(t,e)}})],Cf.prototype,"seriesGrouping",2)}});function _T(e,t){let n=-t/e;return e!==0&&n>=0&&n<=1?[n]:[]}function ML(e,t,n){if(e===0)return _T(t,n);let a=t*t-4*e*n,h=[];if(a===0){let S=-t/(2*e);S>=0&&S<=1&&h.push(S)}else if(a>0){let S=Math.sqrt(a),E=(-t-S)/(2*e),L=(-t+S)/(2*e);E>=0&&E<=1&&h.push(E),L>=0&&L<=1&&h.push(L)}return h}function FT(e,t,n,a){if(e===0)return ML(t,n,a);let h=t/e,S=n/e,E=a/e,L=(3*S-h*h)/9,_=(9*h*S-27*E-2*h*h*h)/54,N=L*L*L+_*_,V=1/3,q=[];if(N>=0){let Y=Math.sqrt(N),J=Math.sign(_+Y)*Math.pow(Math.abs(_+Y),V),re=Math.sign(_-Y)*Math.pow(Math.abs(_-Y),V),ce=Math.abs(Math.sqrt(3)*(J-re)/2),he=-V*h+(J+re);if(he>=0&&he<=1&&q.push(he),ce===0){let me=-V*h-(J+re)/2;me>=0&&me<=1&&q.push(me)}}else{let Y=Math.acos(_/Math.sqrt(-L*L*L)),J=V*h,re=2*Math.sqrt(-L),ce=re*Math.cos(V*Y)-J,he=re*Math.cos(V*(Y+2*Math.PI))-J,me=re*Math.cos(V*(Y+4*Math.PI))-J;ce>=0&&ce<=1&&q.push(ce),he>=0&&he<=1&&q.push(he),me>=0&&me<=1&&q.push(me)}return q}var NT=M({"packages/ag-charts-community/src/scene/polyRoots.ts"(){"use strict"}});function Xv(e,t,n,a,h,S,E,L){let _=(n-e)*(L-S)-(a-t)*(E-h);if(_===0)return 0;let N=((E-h)*(t-S)-(e-h)*(L-S))/_,V=((n-e)*(t-S)-(a-t)*(e-h))/_;return N>=0&&N<=1&&V>=0&&V<=1?1:0}function zT(e,t,n,a,h,S,E,L,_,N,V,q){let Y=0,J=N-q,re=V-_,ce=_*(q-N)-N*(V-_),he=ek(e,n,h,E),me=ek(t,a,S,L),we=J*he[0]+re*me[0],Me=J*he[1]+re*me[1],be=J*he[2]+re*me[2],Le=J*he[3]+re*me[3]+ce,Fe=FT(we,Me,be,Le);for(let je of Fe){let Xe=je*je,nt=je*Xe,lt=he[0]*nt+he[1]*Xe+he[2]*je+he[3],ot=me[0]*nt+me[1]*Xe+me[2]*je+me[3],vt;_===V?vt=(ot-N)/(q-N):vt=(lt-_)/(V-_),vt>=0&&vt<=1&&Y++}return Y}function ek(e,t,n,a){return[-e+3*t-3*n+a,3*e-6*t+3*n,-3*e+3*t,e]}function f1(e,t,n,a,h,S,E,L,_,N){if(isNaN(e)||isNaN(t))return 0;S&&([h,a]=[a,h]);let V=(N-L)/(_-E),q=L-V*E,Y=Math.pow(V,2)+1,J=2*(V*(q-t)-e),re=Math.pow(e,2)+Math.pow(q-t,2)-Math.pow(n,2),ce=Math.pow(J,2)-4*Y*re;if(ce<0)return 0;let he=(-J+Math.sqrt(ce))/2/Y,me=(-J-Math.sqrt(ce))/2/Y,we=0;return[he,me].forEach(Me=>{if(!(Me>=Math.min(E,_)&&Me<=Math.max(E,_)))return;let Le=V*Me+q,Fe=Me-e,je=Le-t,Xe=Math.atan2(je,Fe);sd(Xe,a,h)&&we++}),we}var v1=M({"packages/ag-charts-community/src/scene/intersection.ts"(){"use strict";br(),NT()}});function RS(e,t,n,a,h){return(1-h)**3*e+3*(1-h)**2*h*t+3*(1-h)*h**2*n+h**3*a}function tk(e,t,n,a,h){if(h<=Math.min(e,a))return e<a?0:1;if(h>=Math.max(e,a))return e<a?1:0;let S=0,E=1,L=NaN;for(let _=0;_<12;_+=1)L=(S+E)/2,RS(e,t,n,a,L)<h?S=L:E=L;return L}function ik(e,t,n,a,h,S,E,L,_){let N=(1-_)*e+_*n,V=(1-_)*t+_*a,q=(1-_)*n+_*h,Y=(1-_)*a+_*S,J=(1-_)*h+_*E,re=(1-_)*S+_*L,ce=(1-_)*N+_*q,he=(1-_)*V+_*Y,me=(1-_)*q+_*J,we=(1-_)*Y+_*re,Me=(1-_)*ce+_*me,be=(1-_)*he+_*we;return[[{x:e,y:t},{x:N,y:V},{x:ce,y:he},{x:Me,y:be}],[{x:Me,y:be},{x:me,y:we},{x:J,y:re},{x:E,y:L}]]}function PS(e,t,n,a){let h=-e+3*t-3*n+a,S=3*e-6*t+3*n,E=-3*e+3*t;if(h===0){if(S!==0){let _=-E/S;if(_>0&&_<1)return[_]}return[]}let L=S*S-4*h*E;if(L>=0){let _=Math.sqrt(L),N=(-S+_)/(2*h),V=(-S-_)/(2*h);return[N,V].filter(q=>q>0&&q<1)}return[]}function BT(e,t,n,a,h,S,E,L){let _=PS(e,n,h,E),N=PS(t,a,S,L);return[..._,...N]}var Sf=M({"packages/ag-charts-community/src/scene/util/bezier.ts"(){"use strict"}}),Zv,Fu=M({"packages/ag-charts-community/src/scene/extendedPath2D.ts"(){"use strict";br(),cD(),Rn(),jn(),v1(),Sf(),Zv=class{constructor(){this.path2d=new Path2D,this.previousCommands=[],this.previousParams=[],this.previousClosedPath=!1,this.commands=[],this.params=[],this.openedPath=!1,this.closedPath=!1}isEmpty(){return this.commands.length===0}isDirty(){return this.closedPath!==this.previousClosedPath||this.previousCommands.length!==this.commands.length||this.previousParams.length!==this.params.length||this.previousCommands.toString()!==this.commands.toString()||this.previousParams.toString()!==this.params.toString()}getPath2D(){return this.path2d}moveTo(e,t){this.openedPath=!0,this.path2d.moveTo(e,t),this.commands.push(0),this.params.push(e,t)}lineTo(e,t){this.openedPath?(this.path2d.lineTo(e,t),this.commands.push(1),this.params.push(e,t)):this.moveTo(e,t)}rect(e,t,n,a){this.moveTo(e,t),this.lineTo(e+n,t),this.lineTo(e+n,t+a),this.lineTo(e,t+a),this.closePath()}roundRect(e,t,n,a,h){h=Math.min(h,n/2,a/2),this.moveTo(e,t+h),this.arc(e+h,t+h,h,Math.PI,1.5*Math.PI),this.lineTo(e+h,t),this.lineTo(e+n-h,t),this.arc(e+n-h,t+h,h,1.5*Math.PI,2*Math.PI),this.lineTo(e+n,t+h),this.lineTo(e+n,t+a-h),this.arc(e+n-h,t+a-h,h,0,Math.PI/2),this.lineTo(e+n-h,t+a),this.lineTo(e+h,t+a),this.arc(e+ +h,t+a-h,h,Math.PI/2,Math.PI),this.lineTo(e,t+a-h),this.closePath()}arc(e,t,n,a,h,S){this.openedPath=!0,this.path2d.arc(e,t,n,a,h,S),this.commands.push(2),this.params.push(e,t,n,a,h,S?1:0)}cubicCurveTo(e,t,n,a,h,S){this.openedPath||this.moveTo(e,t),this.path2d.bezierCurveTo(e,t,n,a,h,S),this.commands.push(3),this.params.push(e,t,n,a,h,S)}closePath(){this.openedPath&&(this.path2d.closePath(),this.commands.push(4),this.openedPath=!1,this.closedPath=!0)}clear(e){e&&(this.previousCommands=this.commands,this.previousParams=this.params,this.previousClosedPath=this.closedPath),this.path2d=new Path2D,this.openedPath=!1,this.closedPath=!1,this.commands=[],this.params=[]}isPointInPath(e,t){let n=this.commands,a=this.params,h=n.length,S=-1e4,E=-1e4,L=NaN,_=NaN,N=0,V=0,q=0;for(let Y=0,J=0;Y<h;Y++)switch(n[Y]){case 0:q+=Xv(L,_,N,V,S,E,e,t),N=a[J++],L=N,V=a[J++],_=V;break;case 1:q+=Xv(N,V,a[J++],a[J++],S,E,e,t),N=a[J-2],V=a[J-1];break;case 3:q+=zT(N,V,a[J++],a[J++],a[J++],a[J++],a[J++],a[J++],S,E,e,t),N=a[J-2],V=a[J-1];break;case 2:{let re=a[J++],ce=a[J++],he=a[J++],me=a[J++],we=a[J++],Me=!!a[J++];if(q+=f1(re,ce,he,me,we,Me,S,E,e,t),!isNaN(L)){let be=re+Math.cos(me)*he,Le=ce+Math.sin(me)*he;q+=Xv(N,V,be,Le,S,E,e,t)}N=re+Math.cos(we)*he,V=ce+Math.sin(we)*he;break}case 4:q+=Xv(L,_,N,V,S,E,e,t);break}return q%2===1}distanceSquared(e,t){let n=1/0,a=this.commands,h=this.params,S=a.length,E=NaN,L=NaN,_=0,N=0;for(let V=0,q=0;V<S;V++)switch(a[V]){case 0:_=E=h[q++],N=L=h[q++];break;case 1:{let Y=h[q++],J=h[q++];n=$l(e,t,_,N,Y,J,n);break}case 3:Di.error("Command.Curve distanceSquare not implemented");break;case 2:{let Y=h[q++],J=h[q++],re=h[q++],ce=h[q++],he=h[q++],me=Y+Math.cos(ce)*re,we=J+Math.sin(ce)*re,Me=!!h[q++];n=$l(e,t,_,N,me,we,n),n=jP(e,t,Y,J,re,ce,he,Me,n),_=Y+Math.cos(he)*re,N=J+Math.sin(he)*re;break}case 4:n=$l(e,t,_,N,E,L,n);break}return n}getPoints(){let{commands:e,params:t}=this,n=[],a=0;for(let h of e)switch(h){case 0:case 1:n.push({x:t[a++],y:t[a++]});break;case 3:a+=4,n.push({x:t[a++],y:t[a++]});break;case 2:n.push({x:t[a++],y:t[a++]}),a+=4;break;case 4:break}return n}toSVG(e=(t,n)=>({x:t,y:n})){let t=[],{commands:n,params:a}=this,h=(E,...L)=>{t.push(E);for(let _=0;_<L.length;_+=2){let{x:N,y:V}=e(L[_],L[_+1]);t.push(N,V)}},S=0;for(let E of n)switch(E){case 0:h("M",a[S++],a[S++]);break;case 1:h("L",a[S++],a[S++]);break;case 3:h("C",a[S++],a[S++],a[S++],a[S++],a[S++],a[S++]);break;case 2:{let L=a[S++],_=a[S++],N=a[S++],V=a[S++],q=a[S++],Y=a[S++],J=Y?V-q:q-V;J<0&&(J+=Math.ceil(-J/(2*Math.PI))*2*Math.PI),Y&&(J=-J);let re=Math.max(Math.ceil(Math.abs(J)/(Math.PI/2)),1),ce=J/re,he=4/3*Math.tan(ce/4),me=t.length===0?"M":"L";h(me,L+Math.cos(V)*N,_+Math.sin(V)*N);for(let we=0;we<re;we+=1){let Me=V+ce*(we+0),be=V+ce*(we+1),Le=N*Math.sin(Me),Fe=N*Math.cos(Me),je=N*Math.sin(be),Xe=N*Math.cos(be);h("C",L+Fe-he*Le,_+Le+he*Fe,L+Xe+he*je,_+je-he*Xe,L+Xe,_+je)}break}case 4:t.push("Z");break}return t.join(" ")}computeBBox(){let{commands:e,params:t}=this,[n,a,h,S]=[1/0,1/0,-1/0,-1/0],[E,L]=[NaN,NaN],[_,N]=[NaN,NaN],V=(Y,J,re)=>{n=Math.min(J,n),a=Math.min(Y,a),h=Math.max(Y,h),S=Math.max(J,S),re&&([E,L]=[Y,J])},q=0;for(let Y of e)switch(Y){case 0:V(t[q++],t[q++],!0),[_,N]=[E,L];break;case 1:V(t[q++],t[q++],!0);break;case 3:{let J=t[q++],re=t[q++],ce=t[q++],he=t[q++],me=t[q++],we=t[q++];V(me,we,!0),BT(E,L,J,re,ce,he,me,we).forEach(be=>{let Le=RS(E,J,ce,me,be),Fe=RS(L,re,he,we,be);V(Le,Fe)});break}case 2:{let J=t[q++],re=t[q++],ce=t[q++],he=da(t[q++]),me=da(t[q++]);t[q++]&&([he,me]=[me,he]);let Me=(Le,Fe)=>{let je=J+ce*Math.cos(Le),Xe=re+ce*Math.sin(Le);V(je,Xe,Fe)};Me(he),Me(me,!0);let be=[0,Math.PI/2,Math.PI,3*Math.PI/2];for(let Le of be)(he<me&&he<=Le&&Le<=me||he>me&&(he<=Le||Le<=me))&&Me(Le);break}case 4:[E,L]=[_,N];break}return new Ui(a,n,h-a,S-n)}}}});function mn(e){let{changeCb:t,convertor:n}=e!=null?e:{};return Hi({type:"path",convertor:n,changeCb:t})}var qr,lc=M({"packages/ag-charts-community/src/scene/shape/path.ts"(){"use strict";Fu(),Wa(),os(),qr=class extends Us{constructor(){super(...arguments),this.path=new Zv,this._clipX=NaN,this._clipY=NaN,this.clip=!1,this._dirtyPath=!0}set clipX(e){this._clipX=e,this.dirtyPath=!0}set clipY(e){this._clipY=e,this.dirtyPath=!0}set dirtyPath(e){this._dirtyPath!==e&&(this._dirtyPath=e,e&&this.markDirty())}get dirtyPath(){return this._dirtyPath}checkPathDirty(){var e,t,n,a;this._dirtyPath||(this.dirtyPath=this.path.isDirty()||((t=(e=this.fillShadow)==null?void 0:e.isDirty())!=null?t:!1)||((a=(n=this._clipPath)==null?void 0:n.isDirty())!=null?a:!1))}isPointInPath(e,t){return this.updatePathIfDirty(),this.path.closedPath&&this.path.isPointInPath(e,t)}distanceSquared(e,t){return this.distanceSquaredTransformedPoint(e,t)}svgPathData(e){return this.updatePathIfDirty(),this.path.toSVG(e)}distanceSquaredTransformedPoint(e,t){return this.updatePathIfDirty(),this.path.closedPath&&this.path.isPointInPath(e,t)?0:this.path.distanceSquared(e,t)}isDirtyPath(){return!1}updatePath(){}updatePathIfDirty(){(this.dirtyPath||this.isDirtyPath())&&(this.updatePath(),this.dirtyPath=!1)}preRender(){return this.updatePathIfDirty(),super.preRender(this.path.commands.length)}render(e){var n,a,h;let{ctx:t}=e;if(this.clip&&!isNaN(this._clipX)&&!isNaN(this._clipY)){t.save();let S=this.strokeWidth/2;(n=this._clipPath)!=null||(this._clipPath=new Zv),this._clipPath.clear(),this._clipPath.rect(-S,-S,this._clipX+S,this._clipY+S+S),t.clip((a=this._clipPath)==null?void 0:a.getPath2D()),this._clipX>0&&this._clipY>0&&this.drawPath(t),t.restore()}else this._clipPath=void 0,this.drawPath(t);(h=this.fillShadow)==null||h.markClean(),super.render(e)}drawPath(e){this.fillStroke(e,this.path.getPath2D())}toSVG(){if(!this.visible)return;let e=document.createElementNS("http://www.w3.org/2000/svg","path");return e.setAttribute("d",this.svgPathData()),this.applySvgFillAttributes(e),this.applySvgStrokeAttributes(e),{elements:[e]}}},qr.className="Path",f([mn()],qr.prototype,"clip",2),f([mn()],qr.prototype,"clipX",1),f([mn()],qr.prototype,"clipY",1)}}),nk,ak=M({"packages/ag-charts-community/src/dom/focusIndicator.ts"(){"use strict";jn(),lc(),Zl(),oa(),nk=class{constructor(e){this.swapChain=e,this.div=yr().createElement("div"),this.svg=yr().createElementNS("http://www.w3.org/2000/svg","svg"),this.path=yr().createElementNS("http://www.w3.org/2000/svg","path"),this.svg.append(this.path),this.element=yr().createElement("div"),this.element.classList.add("ag-charts-focus-indicator"),this.element.ariaHidden="true",this.element.append(this.svg),this.swapChain.addListener("swap",t=>this.onSwap(t))}updateBounds(e,t,n=0,a=0){if(e!==void 0)if(e instanceof qr){let h=(S,E)=>{let{x:L,y:_}=vr.toCanvasPoint(e,S,E);return L-=n,_-=a,{x:L,y:_}};this.path.setAttribute("d",e.svgPathData(h)),this.show(this.svg)}else{if(t==null)zm(this.div,e);else{let h=Math.max(e.x,t.x),S=Math.max(e.y,t.y),E=Math.min(e.x+e.width,t.x+t.width),L=Math.min(e.y+e.height,t.y+t.height);zm(this.div,new Ui(h,S,E-h,L-S))}this.show(this.div)}}onSwap(e){e!==this.element.parentElement&&(this.element.remove(),e.appendChild(this.element),this.overrideFocusVisible(this.focusVisible))}show(e){this.element.innerHTML="",this.element.append(e)}overrideFocusVisible(e){this.focusVisible=e;let t={true:"1",false:"0",undefined:""},n=this.element.parentElement;n==null||n.style.setProperty("opacity",t[`${e}`])}isFocusVisible(){let e=this.element.parentElement;return e!=null&&Da().getComputedStyle(e).opacity==="1"}}}}),Qb,ok=M({"packages/ag-charts-community/src/dom/focusSwapChain.ts"(){"use strict";Ur(),oa(),Qb=class{constructor(e,t,n,a){this.label1=e,this.label2=t,this.hasFocus=!1,this.skipDispatch=!1,this.listeners={blur:[],focus:[],swap:[]},this.onBlur=h=>!this.skipDispatch&&this.dispatch("blur",h),this.onFocus=h=>!this.skipDispatch&&this.dispatch("focus",h),yo(this.label1,"id",`${n}-label1`),yo(this.label2,"id",`${n}-label2`),hd(this.label1,"display","none"),hd(this.label2,"display","none"),this.activeAnnouncer=this.createAnnouncer(a),this.inactiveAnnouncer=this.createAnnouncer(a),yo(this.activeAnnouncer,"tabindex",0),this.label2.insertAdjacentElement("afterend",this.activeAnnouncer),this.label2.insertAdjacentElement("afterend",this.inactiveAnnouncer),this.swap("")}createAnnouncer(e){let t=va("div");return t.role=e,t.className="ag-charts-swapchain",t.addEventListener("blur",this.onBlur),t.addEventListener("focus",this.onFocus),t}destroy(){for(let e of[this.activeAnnouncer,this.inactiveAnnouncer])e.removeEventListener("blur",this.onBlur),e.removeEventListener("focus",this.onFocus),e.remove()}focus(){this.activeAnnouncer.focus()}update(e){this.skipDispatch=!0,this.swap(e),this.hasFocus&&this.activeAnnouncer.focus(),this.skipDispatch=!1}addListener(e,t){this.listeners[e].push(t),e==="swap"&&t(this.activeAnnouncer)}dispatch(e,t){e==="focus"?this.hasFocus=!0:e==="blur"&&(this.hasFocus=!1),this.listeners[e].forEach(n=>n(t))}swap(e){let t=this.activeAnnouncer.tabIndex;this.label2.textContent=e,[this.inactiveAnnouncer,this.activeAnnouncer]=[this.activeAnnouncer,this.inactiveAnnouncer],[this.label1,this.label2]=[this.label2,this.label1],bg(this.inactiveAnnouncer,{"aria-labelledby":this.label1.id,"aria-hidden":!0,tabindex:void 0}),bg(this.activeAnnouncer,{"aria-labelledby":this.label1.id,"aria-hidden":!1,tabindex:t}),hd(this.inactiveAnnouncer,"pointer-events","none"),hd(this.activeAnnouncer,"pointer-events",void 0),this.dispatch("swap",this.activeAnnouncer)}}}});function rk(e,t){let n=i1(t.datum);if(n!=null)return{x:n.canvasX,y:n.canvasY};let a=t.bounds;if(a!=null){if(a instanceof Ui){let{x:h,y:S}=a.computeCenter();return{x:e.x+h,y:e.y+S}}return vr.toCanvas(a).computeCenter()}}function GT(e,t,n,a,h){let{bounds:S,showFocusBox:E,clipFocusBox:L=!0}=n;E&&(t==null||t.updateBounds(S,L?e:void 0,a,h))}function jT({bounds:e}){return e instanceof Ui?e:e!=null?e.getBBox():Ui.NaN}function sk(e,t){var h;let{x:n,y:a}=(h=rk(e,t))!=null?h:{};if(n!==void 0&&a!==void 0)return{type:"keyboard",canvasX:n,canvasY:a}}var VT=M({"packages/ag-charts-community/src/chart/keyboardUtil.ts"(){"use strict";jn(),Zl(),FM()}});function lk(e,t,n,a){let{top:h,right:S,bottom:E,left:L,width:_,height:N}=a;return L!=null?_!=null?S=n.width-L+_:S!=null&&(_=n.width-L-S):S!=null&&_!=null&&(L=n.width-S-_),h!=null?N!=null?E=n.height-h-N:E!=null&&(N=n.height-E-h):E!=null&&N!=null&&(h=n.height-E-N),_==null?N==null?(_=e,N=t):_=Math.ceil(e*N/t):N==null&&(N=Math.ceil(t*_/e)),L==null&&(S==null?L=Math.floor((n.width-_)/2):L=n.width-S-_),h==null&&(E==null?h=Math.floor((n.height-N)/2):h=n.height-N-E),{x:L,y:h,width:_,height:N}}var Jb=M({"packages/ag-charts-community/src/util/placement.ts"(){"use strict"}});function wf(e){if(e!=null)return e===""?"":(jp!=null||(jp=va("div")),jp.textContent=String(e),jp.innerHTML)}var jp,eC=M({"packages/ag-charts-community/src/util/sanitize.ts"(){"use strict";oa(),jp=null}}),tC,y1,Fg,cc,El=M({"packages/ag-charts-community/src/chart/marker/marker.ts"(){"use strict";jn(),lc(),Zl(),tC=["ArrowDown","ArrowUp","Circle","Cross","Diamond","Heart","MapPin","Plus","Square","Star","Triangle"],y1=Object.freeze({x:.5,y:.5}),Fg=class extends qr{constructor(){super(...arguments),this.x=0,this.y=0,this.size=12}isBuiltIn(){var e;return tC.includes((e=this.constructor.className)!=null?e:"")}computeBBox(){if(!this.isBuiltIn())return this.updatePathIfDirty(),this.path.computeBBox();let{x:e,y:t,size:n}=this,{center:a}=this.constructor;return new Ui(e-n*a.x,t-n*a.y,n,n)}applyPath(e,t){let{path:n}=this,{x:a,y:h}=this;n.clear();for(let{x:S,y:E,t:L}of t)a+=S*e,h+=E*e,L==="move"?n.moveTo(a,h):n.lineTo(a,h);n.closePath()}executeFill(e,t){if(t)return super.executeFill(e,t)}executeStroke(e,t){if(t)return super.executeStroke(e,t)}},f([mn()],Fg.prototype,"x",2),f([mn()],Fg.prototype,"y",2),f([mn({convertor:Math.abs})],Fg.prototype,"size",2),cc=class extends Mu(zd(cg(Fg))){},cc.center=y1}}),Vp,LS=M({"packages/ag-charts-community/src/chart/marker/circle.ts"(){"use strict";El(),Vp=class extends cc{updatePath(){let{x:e,y:t,path:n,size:a}=this,h=a/2;n.clear(),n.arc(e,t,h,0,Math.PI*2),n.closePath()}},Vp.className="Circle"}}),ck,b1,C1=M({"packages/ag-charts-community/src/chart/marker/cross.ts"(){"use strict";El(),ck=class EZ extends cc{updatePath(){let t=this.size/4.2;super.applyPath(t,EZ.moves)}},ck.className="Cross",ck.moves=[{x:-1,y:0,t:"move"},{x:-1,y:-1},{x:1,y:-1},{x:1,y:1},{x:1,y:-1},{x:1,y:1},{x:-1,y:1},{x:1,y:1},{x:-1,y:1},{x:-1,y:-1},{x:-1,y:1},{x:-1,y:-1}],b1=ck}}),OS,dk,S1=M({"packages/ag-charts-community/src/chart/marker/diamond.ts"(){"use strict";El(),OS=class IZ extends cc{updatePath(){let t=this.size/2;super.applyPath(t,IZ.moves)}},OS.className="Diamond",OS.moves=[{x:0,y:-1,t:"move"},{x:1,y:1},{x:-1,y:1},{x:-1,y:-1},{x:1,y:-1}],dk=OS}}),uk,_S,kL=M({"packages/ag-charts-community/src/chart/marker/heart.ts"(){"use strict";El(),uk=class TZ extends cc{static rad(t){return t/180*Math.PI}updatePath(){let{x:t,path:n,size:a}=this,{rad:h}=TZ,S=a/4,E=this.y+S/2;n.clear(),n.arc(t-S,E-S,S,h(130),h(330)),n.arc(t+S,E-S,S,h(220),h(50)),n.lineTo(t,E+S),n.closePath()}},uk.className="Heart",_S=uk}}),$v,hk=M({"packages/ag-charts-community/src/chart/marker/pin.ts"(){"use strict";El(),$v=class extends cc{updatePath(){let{path:e,x:t,y:n}=this,a=this.size,h=.5,S=1;e.clear(),e.moveTo(t+(.15625-h)*a,n+(.34375-S)*a),e.cubicCurveTo(t+(.15625-h)*a,n+(.151491-S)*a,t+(.307741-h)*a,n+(0-S)*a,t+(.5-h)*a,n+(0-S)*a),e.cubicCurveTo(t+(.692259-h)*a,n+(0-S)*a,t+(.84375-h)*a,n+(.151491-S)*a,t+(.84375-h)*a,n+(.34375-S)*a),e.cubicCurveTo(t+(.84375-h)*a,n+(.493824-S)*a,t+(.784625-h)*a,n+(.600181-S)*a,t+(.716461-h)*a,n+(.695393-S)*a),e.cubicCurveTo(t+(.699009-h)*a,n+(.719769-S)*a,t+(.681271-h)*a,n+(.743104-S)*a,t+(.663785-h)*a,n+(.766105-S)*a),e.cubicCurveTo(t+(.611893-h)*a,n+(.834367-S)*a,t+(.562228-h)*a,n+(.899699-S)*a,t+(.528896-h)*a,n+(.980648-S)*a),e.cubicCurveTo(t+(.524075-h)*a,n+(.992358-S)*a,t+(.512663-h)*a,n+(1-S)*a,t+(.5-h)*a,n+(1-S)*a),e.cubicCurveTo(t+(.487337-h)*a,n+(1-S)*a,t+(.475925-h)*a,n+(.992358-S)*a,t+(.471104-h)*a,n+(.980648-S)*a),e.cubicCurveTo(t+(.487337-h)*a,n+(1-S)*a,t+(.475925-h)*a,n+(.992358-S)*a,t+(.471104-h)*a,n+(.980648-S)*a),e.cubicCurveTo(t+(.437772-h)*a,n+(.899699-S)*a,t+(.388107-h)*a,n+(.834367-S)*a,t+(.336215-h)*a,n+(.766105-S)*a),e.cubicCurveTo(t+(.318729-h)*a,n+(.743104-S)*a,t+(.300991-h)*a,n+(.719769-S)*a,t+(.283539-h)*a,n+(.695393-S)*a),e.cubicCurveTo(t+(.215375-h)*a,n+(.600181-S)*a,t+(.15625-h)*a,n+(.493824-S)*a,t+(.15625-h)*a,n+(.34375-S)*a),e.closePath()}},$v.className="MapPin",$v.center={x:.5,y:1}}}),gk,pk,mk=M({"packages/ag-charts-community/src/chart/marker/plus.ts"(){"use strict";El(),gk=class RZ extends cc{updatePath(){let t=this.size/3;super.applyPath(t,RZ.moves)}},gk.className="Plus",gk.moves=[{x:-.5,y:-.5,t:"move"},{x:0,y:-1},{x:1,y:0},{x:0,y:1},{x:1,y:0},{x:0,y:1},{x:-1,y:0},{x:0,y:1},{x:-1,y:0},{x:0,y:-1},{x:-1,y:0},{x:0,y:-1}],pk=gk}}),FS,HT=M({"packages/ag-charts-community/src/chart/marker/square.ts"(){"use strict";El(),FS=class extends cc{updatePath(){let{path:e,x:t,y:n}=this,a=this.size/2;e.clear(),e.moveTo(this.align(t-a),this.align(n-a)),e.lineTo(this.align(t+a),this.align(n-a)),e.lineTo(this.align(t+a),this.align(n+a)),e.lineTo(this.align(t-a),this.align(n+a)),e.closePath()}},FS.className="Square"}}),NS,AL=M({"packages/ag-charts-community/src/chart/marker/star.ts"(){"use strict";El(),NS=class extends cc{updatePath(){let{x:e,y:t,path:n,size:a}=this,h=5,S=a/2,E=S/2,L=Math.PI/2;n.clear();for(let _=0;_<h*2;_++){let N=_%2===0?S:E,V=_*Math.PI/h-L,q=e+Math.cos(V)*N,Y=t+Math.sin(V)*N;n.lineTo(q,Y)}n.closePath()}},NS.className="Star"}}),iC,xf,zS=M({"packages/ag-charts-community/src/chart/marker/triangle.ts"(){"use strict";El(),iC=class PZ extends cc{updatePath(){let t=this.size*1.1;super.applyPath(t,PZ.moves)}},iC.className="Triangle",iC.moves=[{x:0,y:-.48,t:"move"},{x:.5,y:.87},{x:-1,y:0}],xf=iC}});function w1(e){return typeof e=="string"&&vk.includes(e)}function x1(e){return class extends cc{updatePath(){let{path:n,x:a,y:h,size:S}=this;e({path:n,x:a,y:h,size:S})}}}function La(e="square"){return w1(e)?fk[e]:typeof e=="function"?x1(e):FS}var fk,vk,Nu=M({"packages/ag-charts-community/src/chart/marker/util.ts"(){"use strict";LS(),C1(),S1(),kL(),El(),hk(),mk(),HT(),AL(),zS(),fk={circle:Vp,cross:b1,diamond:dk,heart:_S,pin:$v,plus:pk,square:FS,star:NS,triangle:xf},vk=Object.keys(fk)}});function yk(e,t,n=t*(5/3)){var _,N;let a=new hn,h=Math.min(e.marker.strokeWidth,2),S=Math.min((N=(_=e.line)==null?void 0:_.strokeWidth)!=null?N:0,2),E=Math.max(e.marker.enabled===!1?0:t,e.line==null?0:n),L=Math.max(e.marker.enabled===!1?0:t,S);if(e.line!=null){let{stroke:V,strokeOpacity:q,lineDash:Y}=e.line,J=new Ks;J.x1=0,J.y1=L/2,J.x2=E,J.y2=L/2,J.stroke=V,J.strokeOpacity=q,J.strokeWidth=S,J.lineDash=Y,a.append(J)}if(e.marker.enabled!==!1){let{shape:V,fill:q,fillOpacity:Y,stroke:J,strokeOpacity:re}=e.marker,ce=La(V),he=new ce,{center:me}=ce;he.size=t,he.translationX=E/2+(me.x-.5)*t,he.translationY=L/2+(me.y-.5)*t,he.fill=q,he.fillOpacity=Y,he.stroke=J,he.strokeOpacity=re,he.strokeWidth=h;let we=E/2+(me.x-.5)*t,Me=L/2+(me.y-.5)*t;if(typeof V=="string"){let be=t/(t+h);he.translationX=we,he.translationY=Me,he.scalingX=be,he.scalingY=be}else{let be=he.getBBox(),Le=Math.min(E/(be.width+h),L/(be.height+h),1);he.translationX=we*Le-be.x*Le+(E-be.width*Le)/2,he.translationY=Me*Le-be.y*Le+(L-be.height*Le)/2,he.scalingX=Le,he.scalingY=Le}a.append(he)}return hn.toSVG(a,E,L)}var Mf=M({"packages/ag-charts-community/src/chart/legend/legendSymbol.ts"(){"use strict";$o(),Gd(),Nu()}}),bk,Qv,M1,nC,Ck,k1=M({"packages/ag-charts-community/src/chart/tooltip/springAnimation.ts"(){"use strict";yg(),bk=.1,Qv=200,M1=12,nC=.5,Ck=class extends _h{constructor(){super(...arguments),this.x1=NaN,this.y1=NaN,this.x=NaN,this.y=NaN,this.vx=0,this.vy=0,this.t0=NaN,this.animationFrameHandle=void 0}reset(){this.x=NaN,this.y=NaN,this.animationFrameHandle!=null&&(cancelAnimationFrame(this.animationFrameHandle),this.animationFrameHandle=void 0)}update(e,t){if(Number.isNaN(this.x)||Number.isNaN(this.y)){this.x=e,this.y=t,this.vx=0,this.vy=0,this.emitUpdate(),this.animationFrameHandle!=null&&(cancelAnimationFrame(this.animationFrameHandle),this.animationFrameHandle=void 0);return}this.x1=e,this.y1=t,this.t0=Date.now(),this.animationFrameHandle==null&&(this.animationFrameHandle=requestAnimationFrame(this.onFrame.bind(this)))}onFrame(){this.animationFrameHandle=void 0;let{x1:e,y1:t,t0:n}=this,a=Date.now(),h=a-n;this.t0=a;let S=.001,E=Math.ceil(h/(S*1e3))|0,{x:L,y:_,vx:N,vy:V}=this;for(let q=0;q<E;q+=1){let Y=L-e,J=_-t,re=-(Qv*Y+M1*N)/bk,ce=-(Qv*J+M1*V)/bk;N+=re*S,V+=ce*S,L+=N*S,_+=V*S}Math.hypot(L-e,_-t)<nC?(this.x=this.x1,this.y=this.y1,this.vx=0,this.vy=0):(this.x=L,this.y=_,this.vx=N,this.vy=V,this.animationFrameHandle=requestAnimationFrame(this.onFrame.bind(this))),this.emitUpdate()}emitUpdate(){this.dispatch("update",{type:"update",x:this.x,y:this.y})}}}});function WT(e){var n;if(typeof e=="string")return"";let t=[];return e.heading!=null&&t.push(e.heading),e.title!=null&&t.push(e.title),(n=e.data)==null||n.forEach(a=>{var h;t.push((h=a.label)!=null?h:a.fallbackLabel,a.value)}),t.join("; ")}function A1(e,t,n){let a="";e==null?a+=`<span class="${el}-label">${wf(t)}</span>`:(a+=`<span class="${el}-label">${wf(e)}</span>`,a+=" ",a+=`<span class="${el}-value">${wf(t)}</span>`);let h=[`${el}-row`];return n&&h.push(`${el}-row--inline`),a=`<div class="${h.join(" ")}">${a}</div>`,a}function UT(e){var n,a,h,S,E;if(typeof e=="string")return e;let t="";if((e.heading==null||e.title==null)&&((n=e.data)==null?void 0:n.length)===1&&e.data[0].label==null&&e.data[0].value!=null){let L=e.data[0];t+=A1((a=e.heading)!=null?a:e.title,L.value,!1)}else{let L=e.title==null&&((h=e.data)==null?void 0:h.length)===1;e.heading!=null&&(t+=`<span class="${el}-heading">${wf(e.heading)}</span>`,t+=" ");let _=e.symbol==null?void 0:yk(e.symbol,12);_!=null&&(e.title!=null||(S=e.data)!=null&&S.length)&&(t+=`<span class="${el}-symbol">${_}</span>`),e.title!=null&&(t+=`<span class="${el}-title">${wf(e.title)}</span>`,t+=" "),(E=e.data)==null||E.forEach(N=>{var V;t+=A1((V=N.label)!=null?V:N.fallbackLabel,N.value,L),t+=" "})}return t=`<div class="${el}-content">${t.trimEnd()}</div>`,t}var el,D1,Jv,zu,Il=M({"packages/ag-charts-community/src/chart/tooltip/tooltip.ts"(){"use strict";oa(),zn(),Jb(),ga(),eC(),Ki(),Mf(),k1(),el="ag-charts-tooltip",D1="ag-charts-tooltip--dark",Jv=class extends _n{constructor(){super(...arguments),this.type="pointer",this.xOffset=0,this.yOffset=0}},f([$e(zo(["pointer","node","top","right","bottom","left","top-left","top-right","bottom-right","bottom-left",{value:"sparkline",undocumented:!0},{value:"sparkline-",undocumented:!0}],"a position type"))],Jv.prototype,"type",2),f([$e(pa)],Jv.prototype,"xOffset",2),f([$e(pa)],Jv.prototype,"yOffset",2),zu=class extends _n{constructor(){super(),this.enabled=!0,this.delay=0,this.range=void 0,this.wrapping="hyphenate",this.position=new Jv,this.darkTheme=!1,this.bounds="extended",this.destroyFns=[],this.springAnimation=new Ck,this.enableInteraction=!1,this.wrapTypes=["always","hyphenate","on-space","never"],this.showTimeout=0,this._showArrow=!0,this._compact=!1,this._visible=!1,this.positionParams=void 0,this.destroyFns.push(this.springAnimation.addListener("update",this.updateTooltipPosition.bind(this)))}get interactive(){return this.enableInteraction}setup(e){"togglePopover"in Da().HTMLElement.prototype&&(this.element=e.addChild("canvas-overlay",el),this.element.setAttribute("popover","manual"),this.element.className=el)}destroy(e){e.removeChild("canvas-overlay",el)}isVisible(){return this._visible}updateTooltipPosition(){var Le,Fe,je,Xe,nt,lt,ot,vt;let{element:e,positionParams:t}=this;if(e==null||t==null)return;let{canvasRect:n,relativeRect:a,meta:h}=t,{x:S,y:E}=this.springAnimation,L=(Fe=(Le=h.position)==null?void 0:Le.type)!=null?Fe:this.position.type,_=(Xe=(je=h.position)==null?void 0:je.xOffset)!=null?Xe:0,N=(lt=(nt=h.position)==null?void 0:nt.yOffset)!=null?lt:0,V=a.x,q=a.y,Y=a.width-e.clientWidth-1+V,J=a.height-e.clientHeight+q,re=this.getTooltipBounds({positionType:L,canvasX:S,canvasY:E,yOffset:N,xOffset:_,canvasRect:n}),ce=lk(e.clientWidth,e.clientHeight,a,re);L==="sparkline"&&(ce.x<=V||ce.x>=Y)&&(re=this.getTooltipBounds({positionType:"sparkline-constrained",canvasX:S,canvasY:E,yOffset:N,xOffset:_,canvasRect:n}),ce=lk(e.clientWidth,e.clientHeight,a,re));let he=Gn(V,ce.x,Y),me=Gn(q,ce.y,J),we=he!==ce.x||me!==ce.y,Me=(L==="node"||L==="pointer")&&!we&&!_&&!N,be=(vt=(ot=h.showArrow)!=null?ot:this.showArrow)!=null?vt:Me;this.updateShowArrow(be),this.updateCompact(L==="sparkline"||L==="sparkline-constrained"),e.style.transform=`translate(${he}px, ${me}px)`}show(e,t,n,a,h=!1){let{element:S}=this;if(S!=null&&a!=null)S.innerHTML=UT(a);else if(S==null||S.innerHTML===""){this.toggle(!1);return}let E={x:e.x-t.x,y:e.y-t.y,width:e.width,height:e.height};this.positionParams={canvasRect:t,relativeRect:E,meta:n},this.springAnimation.update(n.canvasX,n.canvasY),S.style.top=`${t.top}px`,S.style.left=`${t.left}px`,n.enableInteraction?(this.enableInteraction=!0,S.style.pointerEvents="auto",S.removeAttribute("aria-hidden")):(this.enableInteraction=!1,S.style.pointerEvents="none",S.setAttribute("aria-hidden","true")),this.delay>0&&!h?(this.toggle(!1),this.showTimeout=setTimeout(()=>{this.toggle(!0)},this.delay)):this.toggle(!0)}hide(){this.springAnimation.reset(),this.toggle(!1)}toggle(e){var a;if(!((a=this.element)!=null&&a.isConnected))return;this._visible=e;let{classList:t}=this.element,n=(h,S)=>t.toggle(`${el}--${h}`,S);e||clearTimeout(this.showTimeout),n("no-interaction",!this.enableInteraction),n("arrow",this._showArrow),n("compact",this._compact),t.toggle(D1,this.darkTheme),this.element.togglePopover(e),e&&this.updateTooltipPosition();for(let h of this.wrapTypes)t.toggle(`${el}--wrap-${h}`,h===this.wrapping)}updateShowArrow(e){this._showArrow=e}updateCompact(e){this._compact=e}getTooltipBounds(e){if(!this.element)return{};let{positionType:t,canvasX:n,canvasY:a,yOffset:h,xOffset:S,canvasRect:E}=e,{clientWidth:L,clientHeight:_}=this.element,N={width:L,height:_};switch(t){case"node":case"pointer":return N.top=a+h-_-8,N.left=n+S-L/2,N;case"top":return N.top=h,N.left=E.width/2-L/2+S,N;case"right":return N.top=E.height/2-_/2+h,N.left=E.width-L/2+S,N;case"left":return N.top=E.height/2-_/2+h,N.left=S,N;case"bottom":return N.top=E.height-_+h,N.left=E.width/2-L/2+S,N;case"top-left":return N.top=h,N.left=S,N;case"top-right":return N.top=h,N.left=E.width-L+S,N;case"bottom-right":return N.top=E.height-_+h,N.left=E.width-L+S,N;case"bottom-left":return N.top=E.height-_+h,N.left=S,N;case"sparkline":return N.top=a+h-_/2,N.left=n+S+8,N;case"sparkline-constrained":return N.top=a+h-_/2,N.left=n+S-8-L,N}}},f([$e(Ji)],zu.prototype,"enabled",2),f([$e(Ji,{optional:!0})],zu.prototype,"showArrow",2),f([$e(mi)],zu.prototype,"delay",2),f([$e(Pm,{optional:!0})],zu.prototype,"range",2),f([$e(uv)],zu.prototype,"wrapping",2),f([$e(Yi)],zu.prototype,"position",2),f([$e(Ji)],zu.prototype,"darkTheme",2),f([$e(zo(["extended","canvas"]))],zu.prototype,"bounds",2)}});function kf(e,t,n,a){var E;let h=[...e].reverse(),S;for(let L of h){if(!L.visible||!L.contentGroup.visible)continue;let{match:_,distance:N}=(E=L.pickNode(t,n,a))!=null?E:{};if(!(!_||N==null)&&((!S||S.distance>N)&&(S={series:L,distance:N,datum:_}),N===0))break}return S}function Sk(e,t){if(e==null||t.length===0)return[!1,!1];let n=e.valueOf(),a=t[0],h=t[t.length-1];if(typeof a=="string")return[n===a,n===h];let S=a.valueOf(),E=h.valueOf();return S>E&&([S,E]=[E,S]),[n===S,n===E]}function Hp(e,t,n,a,h){let{xValue:S,yValue:E}=e,[L,_]=Sk(E,h),[N,V]=Sk(S,a);return{datum:e,xKey:t,yKey:n,xValue:S,yValue:E,first:N,last:V,min:L,max:_}}function Ya(e,[t,n],a){var E,L;let h=(E=II(0,e-1,_=>{var V;let N=(V=a(_))==null?void 0:V[1];return!Number.isFinite(N)||N>t}))!=null?E:0,S=(L=nD(0,e-1,_=>{var V;let N=(V=a(_))==null?void 0:V[0];return!Number.isFinite(N)||N<n}))!=null?L:e-1;return S=Math.min(S+1,e),[h,S]}var BS=M({"packages/ag-charts-community/src/chart/series/util.ts"(){"use strict";lg()}}),wk,DL=M({"packages/ag-charts-community/src/chart/series/seriesAreaManager.ts"(){"use strict";ak(),ok(),jn(),Zl(),ur(),Ac(),zn(),Tv(),Hn(),Ob(),Yd(),Mg(),n1(),VT(),Il(),sc(),BS(),wk=class extends ss{constructor(e){super(),this.chart=e,this.id=dl(this),this.series=[],this.highlight={pendingHoverEvent:void 0,appliedHoverEvent:void 0,stashedHoverEvent:void 0},this.tooltip={lastHover:void 0},this.hoverDevice="mouse",this.focus={sortedSeries:[],series:void 0,seriesIndex:0,datumIndex:0,datum:void 0},this.hoverScheduler=rL(()=>{if(!(!this.tooltip.lastHover&&!this.highlight.pendingHoverEvent)){if(this.chart.getUpdateType()<=4){this.hoverScheduler.schedule();return}this.highlight.pendingHoverEvent&&this.handleHoverHighlight(!1),this.tooltip.lastHover&&this.handleHoverTooltip(this.tooltip.lastHover,!1)}});let t=41,n=34,a=63,{domManager:h}=e.ctx,S="series-area",E=h.addChild(S,"series-area-aria-label1"),L=h.addChild(S,"series-area-aria-label2");this.seriesWidget=new Tp(h.getParent(S)),this.chartWidget=new Tp(h.getParent("canvas-proxy")),this.containerWidget=new Tp(h.getParent("canvas-container")),e.ctx.regionManager.initRegions(this.containerWidget,this.seriesWidget),this.swapChain=new Qb(E,L,this.id,"img"),this.swapChain.addListener("blur",()=>this.onBlur(n)),this.swapChain.addListener("focus",()=>this.onFocus(n)),this.focusIndicator=new nk(this.swapChain),this.focusIndicator.overrideFocusVisible(e.mode==="integrated"?!1:void 0),this.chart.ctx.keyNavManager.focusIndicator=this.focusIndicator;let _=e.ctx.regionManager.getRegion("series");this.destroyFns.push(()=>e.ctx.domManager.removeChild(S,"series-area-aria-label1"),()=>e.ctx.domManager.removeChild(S,"series-area-aria-label2"),_.addListener("drag",N=>this.onHoverLikeEvent(N),t),_.addListener("hover",N=>this.onHover(N),t),_.addListener("leave",()=>this.onLeave(),t),e.ctx.animationManager.addListener("animation-start",()=>this.clearAll()),e.ctx.domManager.addListener("resize",()=>this.clearAll()),e.ctx.highlightManager.addListener("highlight-change",N=>this.changeHighlightDatum(N)),e.ctx.keyNavManager.addListener("nav-hori",N=>this.onNavHori(N),n),e.ctx.keyNavManager.addListener("nav-vert",N=>this.onNavVert(N),n),e.ctx.keyNavManager.addListener("submit",N=>this.onSubmit(N),n),e.ctx.layoutManager.addListener("layout:complete",N=>this.layoutComplete(N)),e.ctx.regionManager.listenAll("contextmenu",N=>this.onContextMenu(N),a),e.ctx.regionManager.listenAll("click",N=>this.onClick(N)),e.ctx.regionManager.listenAll("dblclick",N=>this.onClick(N)),e.ctx.updateService.addListener("pre-scene-render",()=>this.preSceneRender()),e.ctx.zoomManager.addListener("zoom-change",()=>this.clearAll()),e.ctx.zoomManager.addListener("zoom-pan-start",()=>this.clearAll()))}dataChanged(){var t;var e;(t=(e=this.highlight).stashedHoverEvent)!=null||(e.stashedHoverEvent=this.highlight.appliedHoverEvent),this.chart.ctx.tooltipManager.removeTooltip(this.id),this.focusIndicator.updateBounds(void 0),this.clearHighlight()}preSceneRender(){this.focusIndicator.isFocusVisible()&&this.handleSeriesFocus(0,0,!0),this.highlight.stashedHoverEvent!=null&&(this.highlight.pendingHoverEvent=this.highlight.stashedHoverEvent,this.highlight.stashedHoverEvent=void 0,this.handleHoverHighlight(!0)),this.tooltip.lastHover!=null&&this.handleHoverTooltip(this.tooltip.lastHover,!0)}update(e,t){this.chart.ctx.updateService.update(e,t)}seriesChanged(e){this.focus.sortedSeries=[...e].sort((t,n)=>{var S,E;let a=(S=t.properties.focusPriority)!=null?S:1/0,h=(E=n.properties.focusPriority)!=null?E:1/0;return a===h&&([a,h]=[t._declarationOrder,n._declarationOrder]),a<h?-1:a>h?1:0}),this.series=e}layoutComplete(e){this.seriesRect=e.series.rect,this.hoverRect=e.series.paddedRect,this.seriesWidget.setBounds(e.series.paddedRect),this.chartWidget.setBounds(e.chart)}onContextMenu(e){let{Default:t,ContextMenu:n}=wl;if(e.region==="root"){this.chart.ctx.interactionManager.getState()&(t|n)&&this.chart.ctx.contextMenuRegistry.dispatchContext("all",e,{});return}let a,h;if(this.focusIndicator.isFocusVisible())a=this.chart.ctx.highlightManager.getActiveHighlight(),a&&this.seriesRect&&a.midPoint&&(h=vr.toCanvasPoint(a.series.contentGroup,a.midPoint.x,a.midPoint.y));else if(this.chart.ctx.interactionManager.getState()&(t|n)){let E=kf(this.series,{x:e.regionX,y:e.regionY},"context-menu");E&&(this.chart.ctx.highlightManager.updateHighlight(this.id),a=E.datum)}let S=a==null?void 0:a.series;this.clearAll(),this.chart.ctx.contextMenuRegistry.dispatchContext("series-area",e,{pickedSeries:S,pickedNode:a},h)}onLeave(){this.chart.ctx.cursorManager.updateCursor(this.id),this.focusIndicator.isFocusVisible()||this.clearAll()}onHover(e){this.hoverDevice="mouse",this.onHoverLikeEvent(e)}onHoverLikeEvent(e){if(nv(e,"drag")&&(this.tooltip.lastHover=e),this.highlight.pendingHoverEvent=e,this.hoverScheduler.schedule(),this.chart.ctx.interactionManager.getState()===32){let{regionX:t,regionY:n}=e,a=kf(this.series,{x:t,y:n},"event");a!=null&&a.series.hasEventListener("nodeClick")||a!=null&&a.series.hasEventListener("nodeDoubleClick")?this.chart.ctx.cursorManager.updateCursor(this.id,"pointer"):this.chart.ctx.cursorManager.updateCursor(this.id)}}onClick(e){var n;if(this.hoverDevice="mouse",this.onHoverLikeEvent(e),(n=this.seriesRect)!=null&&n.containsPoint(e.canvasX,e.canvasY)&&this.checkSeriesNodeClick(e)){this.update(4),e.preventDefault();return}let t={type:e.type==="click"?"click":"doubleClick",event:e.sourceEvent};this.chart.fireEvent(t)}onFocus(e){this.chart.ctx.interactionManager.getState()&e&&(this.hoverDevice=this.focusIndicator.isFocusVisible()?"keyboard":"mouse",this.handleFocus(0,0))}onBlur(e){this.chart.ctx.interactionManager.getState()&e&&(this.hoverDevice="mouse",this.clearAll(),this.focusIndicator.overrideFocusVisible(void 0))}onNavVert(e){this.hoverDevice="keyboard",this.focus.seriesIndex+=e.delta,this.handleFocus(e.delta,0),e.preventDefault()}onNavHori(e){this.hoverDevice="keyboard",this.focus.datumIndex+=e.delta,this.handleFocus(0,e.delta),e.preventDefault()}onSubmit(e){let{series:t,datum:n}=this.focus,a=e.sourceEvent.sourceEvent;t!==void 0&&n!==void 0?t.fireNodeClickEvent(a,n):this.chart.fireEvent({type:"click",event:a}),e.preventDefault()}checkSeriesNodeClick(e){let t={x:e.regionX,y:e.regionY};e.region!=="series"&&(t=vr.fromCanvasPoint(this.chart.seriesRoot,e.canvasX,e.canvasY));let n=kf(this.series,t,"event");return n==null?!1:e.type==="click"?(n.series.fireNodeClickEvent(e.sourceEvent,n.datum),!0):e.type==="dblclick"?(e.preventZoomDblClick=n.distance===0,n.series.fireNodeDoubleClickEvent(e.sourceEvent,n.datum),!0):!1}handleFocus(e,t){let n=this.chart.overlays.getFocusInfo(this.chart.ctx.localeManager);n==null?this.handleSeriesFocus(e,t):this.focusIndicator.updateBounds(new Ui(0,0,n.rect.width,n.rect.height))}handleSeriesFocus(e,t,n=!1){if(this.chart.chartType==="hierarchy"){this.handleHierarchySeriesFocus(e,t,n);return}let{focus:a,seriesRect:h}=this,S=a.sortedSeries.filter(N=>N.visible);if(S.length===0)return;a.seriesIndex=Gn(0,a.seriesIndex,S.length-1),a.series=S[a.seriesIndex];let{datumIndex:E,seriesIndex:L}=a,_=a.series.pickFocus({datumIndex:E,datumIndexDelta:t,otherIndex:L,otherIndexDelta:e,seriesRect:h});this.updatePickedFocus(_,n)}handleHierarchySeriesFocus(e,t,n){this.focus.series=this.focus.sortedSeries[0];let{focus:{series:a,seriesIndex:h,datumIndex:S},seriesRect:E}=this;if(a==null)return;let L=a.pickFocus({datumIndex:S,datumIndexDelta:t,otherIndex:h,otherIndexDelta:e,seriesRect:E});this.updatePickedFocus(L,n)}updatePickedFocus(e,t){let{focus:n,hoverRect:a,seriesRect:h}=this;if(e===void 0||n.series===void 0||a===void 0)return;let{datum:S,datumIndex:E}=e;if(n.datumIndex=E,n.datum=S,this.focusIndicator.isFocusVisible()&&this.chart.ctx.animationManager.reset(),this.focusIndicator.isFocusVisible()){let _=jT(e);if(h!=null){let q=_.clone();q.x+=h.x,q.y+=h.y,_=q}let{x:N,y:V}=_.computeCenter();a.containsPoint(N,V)||this.chart.ctx.zoomManager.panToBBox(this.id,a,_)}GT(h!=null?new Ui(0,0,h.width,h==null?void 0:h.height):void 0,this.focusIndicator,e,h==null?void 0:h.x,h==null?void 0:h.y);let L=sk(a,e);if(L!==void 0&&this.hoverDevice==="keyboard"){this.tooltip.lastHover=void 0,this.highlight.appliedHoverEvent=void 0,this.highlight.pendingHoverEvent=void 0,this.highlight.stashedHoverEvent=void 0;let _=n.series.getTooltipContent(S),N=vS.makeTooltipMeta(L,S);this.chart.ctx.highlightManager.updateHighlight(this.id,S),this.chart.ctx.tooltipManager.updateTooltip(this.id,N,_),t||this.swapChain.update(this.getDatumAriaText(S,_))}}getDatumAriaText(e,t){var a,h,S;let n=t==null?"":WT(t);return this.chart.ctx.localeManager.t("ariaAnnounceHoverDatum",{datum:(S=(h=(a=e.series).getDatumAriaText)==null?void 0:h.call(a,e,n))!=null?S:n})}clearHighlight(){this.highlight.pendingHoverEvent=void 0,this.highlight.appliedHoverEvent=void 0,this.chart.ctx.highlightManager.updateHighlight(this.id)}clearTooltip(){this.chart.ctx.tooltipManager.removeTooltip(this.id),this.tooltip.lastHover=void 0}clearAll(){this.clearHighlight(),this.clearTooltip(),this.focusIndicator.updateBounds(void 0)}handleHoverHighlight(e){var N;this.highlight.appliedHoverEvent=this.highlight.pendingHoverEvent,this.highlight.pendingHoverEvent=void 0;let t=this.highlight.appliedHoverEvent;if(!t)return;let n=this.chart.ctx.interactionManager.getState();if(n!==32&&n!==8&&n!==1)return;let{canvasX:a,canvasY:h}=t;if(e?this.chart.ctx.animationManager.isActive():!((N=this.hoverRect)!=null&&N.containsPoint(a,h))){this.clearHighlight();return}let S={x:t.regionX,y:t.regionY};t.region!=="series"&&(S=vr.fromCanvasPoint(this.chart.seriesRoot,a,h));let{range:E}=this.chart.highlight,L=E==="tooltip"?"highlight-tooltip":"highlight",_=kf(this.series,S,L);if(_){this.chart.ctx.highlightManager.updateHighlight(this.id,_.datum),this.hoverDevice="mouse";return}this.chart.ctx.highlightManager.updateHighlight(this.id)}handleHoverTooltip(e,t){var J;let n=this.chart.ctx.interactionManager.getState();if(n!==32&&n!==8&&n!==1)return;let{canvasX:a,canvasY:h,regionX:S,regionY:E}=e,L=e.sourceEvent.target;if(t?this.chart.ctx.animationManager.isActive():!((J=this.hoverRect)!=null&&J.containsPoint(a,h))){this.hoverDevice=="mouse"&&this.clearTooltip();return}if(L&&this.chart.tooltip.interactive&&this.chart.ctx.domManager.isManagedChildDOMElement(L,"canvas-overlay",el))return;let _={x:S,y:E};e.region!=="series"&&(_=vr.fromCanvasPoint(this.chart.seriesRoot,a,h));let N=kf(this.series,_,"tooltip");if(!N){this.hoverDevice=="mouse"&&this.clearTooltip();return}this.hoverDevice="mouse";let V=N.series.getTooltipContent(N.datum);if(this.chart.tooltip.enabled&&N.series.tooltipEnabled&&V!=null){let re=vS.makeTooltipMeta(e,N.datum);this.chart.ctx.tooltipManager.updateTooltip(this.id,re,V)}}changeHighlightDatum(e){var L,_;let t=new Set,{series:n=void 0,datum:a}=(L=e.currentHighlight)!=null?L:{},{series:h=void 0,datum:S}=(_=e.previousHighlight)!=null?_:{};h&&t.add(h),n&&t.add(n),h!=null&&h.properties.cursor&&S&&this.chart.ctx.cursorManager.updateCursor(h.id),n!=null&&n.properties.cursor&&(n==null?void 0:n.properties.cursor)!=="default"&&a&&this.chart.ctx.cursorManager.updateCursor(n.id,n.properties.cursor),n==null||h==null?this.update(4):this.update(4,{seriesToUpdate:t})}}}}),Rr,xk,E1=M({"packages/ag-charts-community/src/chart/series/seriesLayerManager.ts"(){"use strict";$o(),Rx(),zn(),IS(),Rr=30,xk=class{constructor(e){this.seriesRoot=e,this.groups=new Map,this.series=new Map,this.expectedSeriesCount=1,this.mode="normal"}setSeriesCount(e){this.expectedSeriesCount=e}requestGroup(e){var V;let{internalId:t,type:n,contentGroup:a,seriesGrouping:h}=e,{groupIndex:S=t}=h!=null?h:{},E=this.series.get(t);if(E!=null)throw new Error(`AG Charts - series already has an allocated layer: ${JSON.stringify(E)}`);this.series.size===0&&(this.mode=this.expectedSeriesCount>=Rr?"aggressive-grouping":"normal");let L=this.groups.get(n);L==null&&(L=new Map,this.groups.set(n,L));let _=this.lookupIdx(S),N=L.get(_);return N==null&&(N={type:n,id:_,seriesIds:[],group:this.seriesRoot.appendChild(new hn({name:`${(V=e.contentGroup.name)!=null?V:n}-managed-layer`,zIndex:e.contentGroup.zIndex,renderToOffscreenCanvas:!1}))},L.set(_,N)),this.series.set(t,{layerState:N,seriesConfig:e}),N.seriesIds.push(t),N.group.appendChild(a),N.group}changeGroup(e){var L,_;let{internalId:t,seriesGrouping:n,type:a,contentGroup:h,oldGrouping:S}=e,{groupIndex:E=t}=n!=null?n:{};(_=(L=this.groups.get(a))==null?void 0:L.get(E))!=null&&_.seriesIds.includes(t)||(this.series.has(t)&&this.releaseGroup({internalId:t,seriesGrouping:S,type:a,contentGroup:h}),this.requestGroup(e))}releaseGroup(e){var S,E,L;let{internalId:t,contentGroup:n,type:a}=e;if(!this.series.has(t))throw new Error(`AG Charts - series doesn't have an allocated layer: ${t}`);let h=(S=this.series.get(t))==null?void 0:S.layerState;h&&(h.seriesIds=h.seriesIds.filter(_=>_!==t),h.group.removeChild(n)),(h==null?void 0:h.seriesIds.length)===0?(this.seriesRoot.removeChild(h.group),(E=this.groups.get(h.type))==null||E.delete(h.id),(L=this.groups.get(a))==null||L.delete(t)):h!=null&&h.seriesIds.length>0&&(h.group.zIndex=this.getLowestSeriesZIndex(h.seriesIds)),this.series.delete(t)}updateLayerCompositing(){this.groups.forEach(e=>{e.forEach(t=>{let{group:n,seriesIds:a}=t,h;if(a.length===0)h=!1;else if(a.length>1)h=!0;else{let S=this.series.get(a[0]);h=(S==null?void 0:S.seriesConfig.renderToOffscreenCanvas())===!0}n.renderToOffscreenCanvas=h,n.zIndex=this.getLowestSeriesZIndex(a)})})}lookupIdx(e){return this.mode==="normal"?e:typeof e=="string"&&(e=Number(e.split("-").at(-1)),!e)?0:Math.floor(Gn(0,e/this.expectedSeriesCount,1)*Rr)}destroy(){this.groups.forEach(e=>{e.forEach(t=>{this.seriesRoot.removeChild(t.group)})}),this.groups.clear(),this.series.clear()}getLowestSeriesZIndex(e){let t=e.reduce((n,a)=>{let h=this.series.get(a),S=h==null?void 0:h.seriesConfig.contentGroup.zIndex;return n==null||S==null?S:Tx(n,S)<=0?n:S},void 0);return t!=null?t:1}}}}),KT,ls=M({"packages/ag-charts-community/src/chart/update/dataWindowProcessor.ts"(){"use strict";Yd(),KT=class{constructor(e,t,n,a,h){this.chart=e,this.dataService=t,this.updateService=n,this.zoomManager=a,this.animationManager=h,this.dirtyZoom=!1,this.dirtyDataSource=!1,this.lastAxisZooms=new Map,this.destroyFns=[],this.destroyFns.push(this.dataService.addListener("data-source-change",()=>this.onDataSourceChange()),this.dataService.addListener("data-load",()=>this.onDataLoad()),this.dataService.addListener("data-error",()=>this.onDataError()),this.updateService.addListener("update-complete",()=>this.onUpdateComplete()),this.zoomManager.addListener("zoom-change",()=>this.onZoomChange()))}destroy(){this.destroyFns.forEach(e=>e())}onDataLoad(){this.animationManager.skip(),this.updateService.update(1)}onDataError(){this.updateService.update(3)}onDataSourceChange(){this.dirtyDataSource=!0}onUpdateComplete(){!this.dirtyZoom&&!this.dirtyDataSource||this.updateWindow()}onZoomChange(){this.dirtyZoom=!0}updateWindow(){if(!this.dataService.isLazy())return;let e=this.getValidAxis(),t,n=!0;if(e){let a=this.zoomManager.getAxisZoom(e.id);t=this.getAxisWindow(e,a),n=this.shouldRefresh(e,a)}this.dirtyZoom=!1,this.dirtyDataSource=!1,n&&this.dataService.load({windowStart:t==null?void 0:t.min,windowEnd:t==null?void 0:t.max})}getValidAxis(){return this.chart.axes.find(e=>e.type==="time")}shouldRefresh(e,t){if(this.dirtyDataSource)return!0;if(!this.dirtyZoom)return!1;let n=this.lastAxisZooms.get(e.id);return n&&t.min===n.min&&t.max===n.max?!1:(this.lastAxisZooms.set(e.id,t),!0)}getAxisWindow(e,t){var E,L;let n=(L=(E=e.scale).getDomain)==null?void 0:L.call(E);if(!t||!n||n.length===0||isNaN(Number(n[0])))return;let a=Number(n[1])-Number(n[0]),h=new Date(Number(n[0])+a*t.min),S=new Date(Number(n[0])+a*t.max);return{min:h,max:S}}}}});function EL(){var t,n,a,h;let{userAgent:e}=Da().navigator;if(GS.test(e)){let S=parseFloat((n=(t=Mk.exec(e))==null?void 0:t[1])!=null?n:"0"),E=Math.floor(S)>16;return E||Di.warnOnce(`Unsupported Safari version: ${S} ; ${e}`),!E}else if(I1.test(e)&&!kk.test(e)&&!qT.test(e)){let S=parseInt((h=(a=sr.exec(e))==null?void 0:a[1])!=null?h:"0",10),E=S>126;return E||Di.warnOnce(`Unsupported Chrome version: ${S} ; ${e}`),!E}return!1}var GS,Mk,I1,sr,kk,qT,YT=M({"packages/ag-charts-community/src/util/browser.ts"(){"use strict";oa(),Rn(),GS=/^((?!chrome|android).)*safari/i,Mk=/Version\/(\d+(\.\d+)?)/,I1=/Chrome/,sr=/Chrome\/(\d+)/,kk=/Edg/,qT=/OPR/}}),Ak,Dk=M({"packages/ag-charts-community/src/chart/update/overlaysProcessor.ts"(){"use strict";Ur(),YT(),p1(),Ak=class{constructor(e,t,n,a,h,S,E){this.chartLike=e,this.overlays=t,this.dataService=n,this.layoutManager=a,this.localeManager=h,this.animationManager=S,this.domManager=E,this.destroyFns=[],this.overlayElem=this.domManager.addChild("canvas-overlay","overlay"),this.overlayElem.role="status",this.overlayElem.ariaAtomic="false",this.overlayElem.ariaLive="polite",this.overlayElem.classList.toggle(gr),this.destroyFns.push(this.layoutManager.addListener("layout:complete",L=>this.onLayoutComplete(L)))}destroy(){this.destroyFns.forEach(e=>e()),this.domManager.removeStyles("overlays"),this.domManager.removeChild("canvas-overlay","overlay")}onLayoutComplete({series:{rect:e}}){let t=this.dataService.isLoading(),n=this.chartLike.series.some(N=>N.hasData),a=this.chartLike.series.some(N=>N.visible);this.overlays.darkTheme?this.overlayElem.classList.add(g1):this.overlayElem.classList.remove(g1),this.overlayElem.style.left=`${e.x}px`,this.overlayElem.style.top=`${e.y}px`,this.overlayElem.style.width=`${e.width}px`,this.overlayElem.style.height=`${e.height}px`;let h=t,S=!t&&!n,E=n&&!a,L=this.overlays.unsupportedBrowser.enabled&&EL();h?this.showOverlay(this.overlays.loading,e):this.hideOverlay(this.overlays.loading),S?this.showOverlay(this.overlays.noData,e):this.hideOverlay(this.overlays.noData),E?this.showOverlay(this.overlays.noVisibleSeries,e):this.hideOverlay(this.overlays.noVisibleSeries),L?this.showOverlay(this.overlays.unsupportedBrowser,e):this.hideOverlay(this.overlays.unsupportedBrowser);let _=h||S||E||L;yo(this.overlayElem,"aria-hidden",!_)}showOverlay(e,t){if(!e.enabled)return;let n=e.getElement(this.animationManager,this.localeManager,t);this.overlayElem.appendChild(n)}hideOverlay(e){e.removeElement(()=>{this.overlayElem.innerText="\xA0"},this.animationManager)}}}}),$d,jS,Yr,Wp,ks=M({"packages/ag-charts-community/src/chart/chart.ts"(){"use strict";Lh(),jn(),$o(),ts(),oL(),Vr(),oa(),Ac(),Lc(),Rn(),nT(),Ta(),aT(),X0(),ga(),Oc(),Tv(),Hn(),Ki(),wp(),aa(),sM(),MT(),kT(),Yd(),CS(),Wv(),pf(),Pg(),Uv(),MS(),AS(),vf(),Fc(),ET(),oc(),yf(),xL(),RT(),LT(),sc(),DL(),E1(),Il(),ls(),Dk(),Wm(),$d=Pa.create(!0,"opts"),jS=class extends _n{constructor(){super(...arguments),this.padding=new Wr(0)}},f([$e(Ji,{optional:!0})],jS.prototype,"clip",2),f([$e(Yi)],jS.prototype,"padding",2),Yr=class LZ extends Y0{constructor(t,n){var V,q,Y,J,re;var a;super(),this.id=dl(this),this.seriesRoot=new qa({name:`${this.id}-series-root`,zIndex:4}),this.annotationRoot=new qa({name:`${this.id}-annotation-root`,zIndex:8}),this.titleGroup=new hn({name:"titles",zIndex:12}),this.debug=Pa.create(),this.extraDebugStats={},this.data=[],this._firstAutoSize=!0,this._autoSizeNotify=new nM,this.padding=new Wr(20),this.seriesArea=new jS,this.keyboard=new Ma,this.mode="standalone",this.chartCaptions=new Rv,this.suppressFieldDotNotation=!1,this.destroyed=!1,this._destroyFns=[],this.skipSync=!1,this.chartAnimationPhase="initial",this.modulesManager=new Yv,this.processors=[],this.queuedUserOptions=[],this.queuedChartOptions=[],this.firstApply=!0,this._pendingFactoryUpdatesCount=0,this._performUpdateSkipAnimations=!1,this._performUpdateNotify=new nM,this.performUpdateType=7,this.runningUpdateType=7,this.updateShortcutCount=0,this.seriesToUpdate=new Set,this.updateMutex=new Qo,this.updateRequestors={},this.performUpdateTrigger=Z0(({count:ce})=>{this.destroyed||this.updateMutex.acquire(async()=>{try{await this.performUpdate(ce)}catch(he){Di.error("update error",he)}}).catch(he=>Di.errorOnce(he))}),this._performUpdateSplits={},this.axes=[],this.series=[],this._cachedData=void 0,this.onSeriesNodeClick=ce=>{this.fireEvent(et(pe({},ce),{type:"seriesNodeClick"}))},this.onSeriesNodeDoubleClick=ce=>{this.fireEvent(et(pe({},ce),{type:"seriesNodeDoubleClick"}))},this.onSeriesVisibilityChange=ce=>{this.fireEvent(ce)},this.seriesGroupingChanged=ce=>{if(!(ce instanceof Gc))return;let{series:he,seriesGrouping:me,oldGrouping:we}=ce;he.contentGroup.isRoot()||this.seriesLayerManager.changeGroup({internalId:he.internalId,type:he.type,contentGroup:he.contentGroup,renderToOffscreenCanvas:()=>he.renderToOffscreenCanvas(),seriesGrouping:me,oldGrouping:we})},this.chartOptions=t;let h=n==null?void 0:n.scene,S=(q=(V=n==null?void 0:n.container)!=null?V:t.processedOptions.container)!=null?q:void 0,E=(Y=n==null?void 0:n.styleContainer)!=null?Y:t.specialOverrides.styleContainer,L=new hn({name:"root"});L.visible=!1,L.append(this.seriesRoot),L.append(this.annotationRoot),L.append(this.titleGroup),this.titleGroup.append(this.title.node),this.titleGroup.append(this.subtitle.node),this.titleGroup.append(this.footnote.node),this.tooltip=new zu,this.seriesLayerManager=new xk(this.seriesRoot),this.mode=(J=t.userOptions.mode)!=null?J:this.mode;let _=this.ctx=new s1(this,{chartType:this.getChartType(),scene:h,root:L,container:S,styleContainer:E,syncManager:new kS(this),pixelRatio:t.specialOverrides.overrideDevicePixelRatio,updateCallback:(ce,he)=>this.update(ce,he),updateMutex:this.updateMutex});this._destroyFns.push(_.domManager.addListener("resize",()=>this.parentResize(_.domManager.containerSize))),this.overlays=new Gh,(re=(a=this.overlays.loading).renderer)!=null||(a.renderer=()=>PT(this.overlays.loading.getText(_.localeManager),_.animationManager.defaultDuration)),this.processors=[new KT(this,_.dataService,_.updateService,_.zoomManager,_.animationManager),new Ak(this,this.overlays,_.dataService,_.layoutManager,_.localeManager,_.animationManager,_.domManager)],this.highlight=new VM,this.container=S;let N=this.getModuleContext();_.domManager.setDataBoolean("animating",!1),this.seriesAreaManager=new wk(this.initSeriesAreaDependencies()),this._destroyFns.push(_.layoutManager.registerElement(0,ce=>{ce.layoutBox.shrink(this.padding.toJson()),this.chartCaptions.positionCaptions(ce)}),_.layoutManager.addListener("layout:complete",ce=>this.chartCaptions.positionAbsoluteCaptions(ce)),_.dataService.addListener("data-load",ce=>{this.data=ce.data}),this.title.registerInteraction(N,"beforebegin"),this.subtitle.registerInteraction(N,"beforebegin"),this.footnote.registerInteraction(N,"afterend"),_.interactionManager.addListener("page-left",()=>this.destroy()),_.animationManager.addListener("animation-frame",()=>{this.update(6)}),_.animationManager.addListener("animation-start",()=>_.domManager.setDataBoolean("animating",!0)),_.animationManager.addListener("animation-stop",()=>_.domManager.setDataBoolean("animating",!1)),_.zoomManager.addListener("zoom-change",()=>{this.series.forEach(he=>{var me;return(me=he.animationState)==null?void 0:me.transition("updateData")});let ce=this.chartAnimationPhase!=="initial";this.update(3,{forceNodeDataRefresh:!0,skipAnimations:ce})})),this.parentResize(_.domManager.containerSize)}static getInstance(t){return LZ.chartsInstances.get(t)}get canvasElement(){return this.ctx.scene.canvas.element}download(t,n){this.ctx.scene.download(t,n)}getCanvasDataURL(t){return this.ctx.scene.getDataURL(t)}toSVG(){return this.ctx.scene.toSVG()}getOptions(){var t;return(t=this.queuedUserOptions.at(-1))!=null?t:this.chartOptions.userOptions}getChartOptions(){var t;return(t=this.queuedChartOptions.at(-1))!=null?t:this.chartOptions}initSeriesAreaDependencies(){let{ctx:t,tooltip:n,highlight:a,overlays:h,seriesRoot:S,mode:E}=this,L=this.getChartType();return{fireEvent:this.fireEvent.bind(this),getUpdateType:()=>this.performUpdateType,chartType:L,ctx:t,tooltip:n,highlight:a,overlays:h,seriesRoot:S,mode:E}}getModuleContext(){return this.ctx}getCaptionText(){return[this.title,this.subtitle,this.footnote].filter(t=>t.enabled&&t.text).map(t=>t.text).join(". ")}getAriaLabel(){return this.ctx.localeManager.t("ariaAnnounceChart",{seriesCount:this.series.length})}resetAnimations(){this.chartAnimationPhase="initial";for(let t of this.series)t.resetAnimation(this.chartAnimationPhase);for(let t of this.axes)t.resetAnimation(this.chartAnimationPhase);this.animationRect=void 0,this.ctx.animationManager.reset()}skipAnimations(){this.ctx.animationManager.skipCurrentBatch(),this._performUpdateSkipAnimations=!0}detachAndClear(){this.container=void 0,this.ctx.scene.clear()}destroy(t){if(this.destroyed)return;let n=t==null?void 0:t.keepTransferableResources,a;return this.performUpdateType=7,this._destroyFns.forEach(h=>h()),this.processors.forEach(h=>h.destroy()),this.tooltip.destroy(this.ctx.domManager),this.overlays.destroy(),this.modulesManager.destroy(),n?(this.ctx.scene.strip(),a={container:this.container,scene:this.ctx.scene}):(this.ctx.scene.destroy(),this.container=void 0),this.destroySeries(this.series),this.seriesLayerManager.destroy(),this.axes.forEach(h=>h.destroy()),this.axes=[],this.animationRect=void 0,this.ctx.destroy(),this.destroyed=!0,Object.freeze(this),a}requestFactoryUpdate(t){this.destroyed||(this._pendingFactoryUpdatesCount++,this.updateMutex.acquire(async()=>{if(!this.destroyed)try{await t(this)}finally{this.destroyed||this._pendingFactoryUpdatesCount--}}).catch(n=>Di.errorOnce(n)))}update(t=0,n){var L,_;let{forceNodeDataRefresh:a=!1,skipAnimations:h,seriesToUpdate:S=this.series,newAnimationBatch:E}=n!=null?n:{};a&&this.series.forEach(N=>N.markNodeDataDirty());for(let N of S)this.seriesToUpdate.add(N);if(h&&(this.ctx.animationManager.skipCurrentBatch(),this._performUpdateSkipAnimations=!0),E&&this.ctx.animationManager.isActive()&&(this._performUpdateSkipAnimations=!0),this.skipSync=(L=n==null?void 0:n.skipSync)!=null?L:!1,this.debug.check()){let N=(_=new Error().stack)!=null?_:"<unknown>";N=N.replace(/\([^)]*/g,""),this.updateRequestors[N]=t}t<this.performUpdateType&&(this.performUpdateType=t,this.ctx.domManager.setDataBoolean("updatePending",!0),this.performUpdateTrigger.schedule(n==null?void 0:n.backOffMs))}async performUpdate(t){var V;let{performUpdateType:n,extraDebugStats:a,_performUpdateSplits:h,ctx:S}=this,E=[...this.seriesToUpdate];this.performUpdateType=7,this.seriesToUpdate.clear(),this.runningUpdateType=n,this.updateShortcutCount===0&&n<6&&(S.animationManager.startBatch(this._performUpdateSkipAnimations),S.animationManager.onBatchStop(()=>this.chartAnimationPhase="ready")),this.debug("Chart.performUpdate() - start",Dg[n]);let L=performance.now();(V=h.start)!=null||(h.start=L);let _=q=>{var Y;(Y=h[q])!=null||(h[q]=0),h[q]+=performance.now()-L,L=performance.now()};switch(n){case 0:if(this.checkUpdateShortcut(0))break;this.ctx.updateService.dispatchPreDomUpdate(),this.updateDOM();case 1:if(this.checkUpdateShortcut(1))break;await this.updateData(),_("\u2B07\uFE0F");case 2:if(this.checkUpdateShortcut(2))break;await this.processData(),this.seriesAreaManager.dataChanged(),_("\u{1F3ED}");case 3:if(await this.checkFirstAutoSize(),this.checkUpdateShortcut(3))break;await this.processLayout(),_("\u2316");case 4:{if(this.checkUpdateShortcut(4))break;await this.updateSeries(E),_("\u{1F914}"),this.updateAriaLabels(),this.seriesLayerManager.updateLayerCompositing()}case 5:if(this.checkUpdateShortcut(5))break;S.updateService.dispatchPreSceneRender(this.getMinRects()),_("\u2196");case 6:if(this.checkUpdateShortcut(6))break;S.animationManager.endBatch(),a.updateShortcutCount=this.updateShortcutCount,S.scene.render({debugSplitTimes:h,extraDebugStats:a,seriesRect:this.seriesRect}),this.extraDebugStats={};for(let q of Object.keys(h))delete h[q];this.ctx.domManager.incrementDataCounter("sceneRenders");case 7:this.updateShortcutCount=0,this.updateRequestors={},this._performUpdateSkipAnimations=!1,S.animationManager.endBatch()}this.destroyed||(S.updateService.dispatchUpdateComplete(this.getMinRects()),this.ctx.domManager.setDataBoolean("updatePending",!1),this.runningUpdateType=7),this._performUpdateNotify.notify();let N=performance.now();this.debug("Chart.performUpdate() - end",{chart:this,durationMs:Math.round((N-h.start)*100)/100,count:t,performUpdateType:Dg[n]})}updateThemeClassName(){let t="ag-charts-theme-",n=[`${t}default`,`${t}default-dark`],a=n[0],h=!1,{theme:S}=this.chartOptions.processedOptions;for(;typeof S!="string"&&S!=null;)S=S.baseTheme;typeof S=="string"&&(a=S.replace("ag-",t),h=S.includes("-dark")),n.includes(a)||(a=h?n[1]:n[0]),this.ctx.domManager.setThemeClass(a)}updateDOM(){this.updateThemeClassName();let{enabled:t,tabIndex:n}=this.keyboard;this.ctx.domManager.setTabGuardIndex(t?n!=null?n:0:-1)}updateAriaLabels(){this.ctx.domManager.updateCanvasLabel(this.getAriaLabel())}checkUpdateShortcut(t){return this.destroyed?!0:this.updateShortcutCount>3?(Di.warn(`exceeded the maximum number of simultaneous updates (${3+1}), discarding changes and rendering`,this.updateRequestors),!1):this.performUpdateType<=t?(this.updateShortcutCount++,!0):!1}async checkFirstAutoSize(){this.width!=null&&this.height!=null||this._lastAutoSize||await this._autoSizeNotify.await(500)||this.debug("Chart.checkFirstAutoSize() - timeout for first size update.")}onAxisChange(t,n){n==null&&t.length===0||this.ctx.axisManager.updateAxes(n!=null?n:[],t)}onSeriesChange(t,n){var h,S,E;let a=(h=n==null?void 0:n.filter(L=>!t.includes(L)))!=null?h:[];this.destroySeries(a),(S=this.seriesLayerManager)==null||S.setSeriesCount(t.length);for(let L of t){if(n!=null&&n.includes(L))continue;let _=this.seriesLayerManager.requestGroup(L);L.attachSeries(_,this.seriesRoot,this.annotationRoot);let N=this;L.chart={get mode(){return N.mode},get isMiniChart(){return!1},get seriesRect(){return N.seriesRect}},L.resetAnimation(this.chartAnimationPhase),this.addSeriesListeners(L),L.addChartEventListeners()}(E=this.seriesAreaManager)==null||E.seriesChanged(t)}destroySeries(t){t==null||t.forEach(n=>{n.removeEventListener("nodeClick",this.onSeriesNodeClick),n.removeEventListener("nodeDoubleClick",this.onSeriesNodeDoubleClick),n.removeEventListener("groupingChanged",this.seriesGroupingChanged),n.destroy(),this.seriesLayerManager.releaseGroup(n),n.detachSeries(void 0,this.seriesRoot,this.annotationRoot),n.chart=void 0})}addSeriesListeners(t){this.hasEventListener("seriesNodeClick")&&t.addEventListener("nodeClick",this.onSeriesNodeClick),this.hasEventListener("seriesNodeDoubleClick")&&t.addEventListener("nodeDoubleClick",this.onSeriesNodeDoubleClick),this.hasEventListener("seriesVisibilityChange")&&t.addEventListener("seriesVisibilityChange",this.onSeriesVisibilityChange),t.addEventListener("groupingChanged",this.seriesGroupingChanged)}assignSeriesToAxes(){for(let t of this.axes)t.boundSeries=this.series.filter(n=>n.axes[t.direction]===t)}assignAxesToSeries(){let t=dx(this.axes,n=>n.direction);for(let n of this.series)for(let a of n.directions){let h=t[a];if(!h){Di.warnOnce(`no available axis for direction [${a}]; check series and axes configuration.`);return}let S=n.getKeys(a),E=h.find(L=>!L.keys.length||S.some(_=>L.keys.includes(_)));if(!E){Di.warnOnce(`no matching axis for direction [${a}] and keys [${S}]; check series and axes configuration.`);return}n.axes[a]=E}}parentResize(t){var E;if(t==null||this.width!=null&&this.height!=null)return;let{width:n,height:a}=t;if(n=Math.floor(n),a=Math.floor(a),n===0&&a===0)return;let[h=0,S=0]=(E=this._lastAutoSize)!=null?E:[];h===n&&S===a||(this._lastAutoSize=[n,a],this.resize("SizeMonitor",{}))}resize(t,n){var q,Y,J,re;let{scene:a,animationManager:h}=this.ctx,{inWidth:S,inHeight:E,inMinWidth:L,inMinHeight:_}=n;this.ctx.domManager.setSizeOptions(L!=null?L:this.minWidth,_!=null?_:this.minHeight,S!=null?S:this.width,E!=null?E:this.height);let N=(Y=S!=null?S:this.width)!=null?Y:(q=this._lastAutoSize)==null?void 0:q[0],V=(re=E!=null?E:this.height)!=null?re:(J=this._lastAutoSize)==null?void 0:J[1];if(this.debug(`Chart.resize() from ${t}`,{width:N,height:V,stack:new Error().stack}),!(N==null||V==null||!Na(N)||!Na(V))&&a.resize(N,V)){h.reset();let ce=!0;(this.width==null||this.height==null)&&this._firstAutoSize&&(ce=!1,this._firstAutoSize=!1),this.update(3,{forceNodeDataRefresh:!0,skipAnimations:ce}),this._autoSizeNotify.notify()}}async updateData(){this.series.forEach(n=>n.setChartData(this.data));let t=this.modulesManager.mapModules(n=>{var a;return(a=n.updateData)==null?void 0:a.call(n,this.data)});await Promise.all(t)}async processData(){this.series.some(h=>h.canHaveAxes)&&(this.assignAxesToSeries(),this.assignSeriesToAxes());for(let h of this.axes)h.processData();let t=new qb(this.mode,this.suppressFieldDotNotation),n=this.series.map(h=>(h.resetDatumCallbackCache(),h.processData(t))),a=this.modulesManager.mapModules(h=>{var S;return(S=h.processData)==null?void 0:S.call(h,t)});this._cachedData=t.execute(this._cachedData),await Promise.all([...n,...a]),this.updateLegends()}updateLegends(t){for(let{legend:n,legendType:a}of this.modulesManager.legends())a==="category"?this.setCategoryLegendData(t):this.setLegendData(a,n)}setCategoryLegendData(t){var E,L;var n;let{ctx:{legendManager:a,stateManager:h}}=this;t&&this.series.forEach(_=>{let N=t.find(V=>V.seriesId===_.id);_.onLegendInitialState("category",N)});let S=this.series.flatMap(_=>{let N=_.getLegendData("category");return a.updateData(_.id,N),N});if(t){h.setStateAndRestore(a,t);return}if(this.mode!=="integrated"){let _={},N=new Map(this.series.map(V=>[V.id,V.type]));for(let{seriesId:V,symbol:{marker:q},label:Y}of S.filter(J=>!J.hideInLegend)){if(q.fill==null)continue;let J=N.get(V),re=(E=_[J])!=null?E:_[J]={};(L=re[n=Y.text])!=null||(re[n]=q.fill),re[Y.text]!==q.fill&&Di.warnOnce(`legend item '${Y.text}' has multiple fill colors, this may cause unexpected behaviour.`)}}a.update()}setLegendData(t,n){n.data=this.series.filter(a=>a.properties.showInLegend).flatMap(a=>a.getLegendData(t))}async processLayout(){var S;let t=this.animationRect,{width:n,height:a}=this.ctx.scene,h=this.ctx.layoutManager.createContext(n,a);await this.performLayout(h),t&&!((S=this.animationRect)!=null&&S.equals(t))&&this.ctx.animationManager.skipCurrentBatch(),this.debug("Chart.performUpdate() - seriesRect",this.seriesRect)}async updateSeries(t){let{seriesRect:n}=this;await Promise.all(t.map(a=>a.update({seriesRect:n}))),this.ctx.seriesLabelLayoutManager.updateLabels(this.series.filter(a=>a.visible&&a.usesPlacedLabels),this.padding,this.seriesRect)}async waitForUpdate(t=1e4,n=!1){let a=performance.now();for(;this._pendingFactoryUpdatesCount>0||this.performUpdateType!==7||this.runningUpdateType!==7;){if(this._pendingFactoryUpdatesCount>0&&await this.updateMutex.waitForClearAcquireQueue(),(this.performUpdateType!==7||this.runningUpdateType!==7)&&await this._performUpdateNotify.await(),performance.now()-a>t){let h=`Chart.waitForUpdate() timeout of ${t} reached - first chart update taking too long.`;if(n)throw new Error(h);Di.warnOnce(h)}yp()&&await RD()}}getMinRects(){let{width:t,height:n}=this.ctx.scene,a=this.series.map(V=>V.getMinRects(t,n)).filter(un);if(a.length===0)return;let h=0,S=0,E=0,L=0;for(let{minRect:V,minVisibleRect:q}of a)h=Math.max(h,V.width),S=Math.max(S,V.height),E=Math.max(E,q.width),L=Math.max(L,q.height);let _=new Ui(0,0,h,S),N=_.clone();return E>0&&L>0&&(N=new Ui(0,0,E,L)),{minRect:_,minVisibleRect:N}}filterMiniChartSeries(t){return t==null?void 0:t.filter(n=>n.showInMiniChart!==!1)}applyOptions(t){var ce,he,me,we,Me,be;let n=this.firstApply?t.processedOptions:t.diffOptions(this.chartOptions);if(n==null||Object.keys(n).length===0)return;let a=this.firstApply?{}:this.chartOptions.processedOptions,h=t.processedOptions;$d("Chart.applyOptions() - applying delta",n);let S=this.applyModules(h),E=["type","data","series","listeners","preset","theme","legend.listeners","navigator.miniChart.series","navigator.miniChart.label","locale.localeText","axes","topology","nodes","initialState","styleContainer"];n.listeners&&this.registerListeners(this,n.listeners),R0(this,n,{skip:E});let L=!1,_="no-op";n.series!=null&&(_=this.applySeries(this,n.series,a==null?void 0:a.series),L=!0),_==="replaced"&&this.resetAnimations(),this.applyAxes(this,h,a,_,[])&&(L=!0),n.data&&(this.data=n.data),(ce=n.legend)!=null&&ce.listeners&&this.modulesManager.isEnabled("legend")&&Object.assign(this.legend.listeners,n.legend.listeners),(he=n.locale)!=null&&he.localeText&&(this.modulesManager.getModule("locale").localeText=(me=n.locale)==null?void 0:me.localeText),this.chartOptions=t;let N=this.modulesManager.getModule("navigator"),V=this.modulesManager.getModule("zoom");!(N!=null&&N.enabled)&&!(V!=null&&V.enabled)&&this.ctx.zoomManager.updateZoom("chart");let q=N==null?void 0:N.miniChart,Y=(be=(Me=(we=h.navigator)==null?void 0:we.miniChart)==null?void 0:Me.series)!=null?be:h.series;(q==null?void 0:q.enabled)===!0&&Y!=null?this.applyMiniChartOptions(q,Y,h,a):(q==null?void 0:q.enabled)===!1&&(q.series=[],q.axes=[]),this.ctx.annotationManager.setAnnotationStyles(t.annotationThemes),L||(L=this.shouldForceNodeDataRefresh(n,_));let re=L||S?0:3;this.maybeResetAnimations(_),$d("Chart.applyOptions() - update type",Dg[re],{seriesStatus:_,forceNodeDataRefresh:L}),this.update(re,{forceNodeDataRefresh:L,newAnimationBatch:!0}),this.ctx.legendManager.clearData(),this.applyInitialState(h),this.firstApply=!1}applyInitialState(t){var _,N,V;let{annotationManager:n,chartTypeOriginator:a,historyManager:h,stateManager:S,zoomManager:E}=this.ctx,{initialState:L}=t;if("annotations"in t&&((_=t.annotations)!=null&&_.enabled)&&(L==null?void 0:L.annotations)!=null){let q=L.annotations.map(Y=>{let J=n.getAnnotationTypeStyles(Y.type);return ia(Y,J)});S.setState(n,q)}(L==null?void 0:L.chartType)!=null&&S.setState(a,L.chartType),((N=t.navigator)!=null&&N.enabled||(V=t.zoom)!=null&&V.enabled)&&(L==null?void 0:L.zoom)!=null&&S.setState(E,L.zoom),(L==null?void 0:L.legend)!=null&&this.updateLegends(L.legend),L!=null&&h.clear()}maybeResetAnimations(t){if(this.mode==="standalone")switch(t){case"series-grouping-change":case"replaced":this.resetAnimations();break;default:}}shouldForceNodeDataRefresh(t,n){let a=!!t.data||n==="data-change"||n==="replaced",h=ff.getKeys(),S=Object.values(h).some(L=>t[L]!=null),E=t.title!=null&&t.subtitle!=null;return a||S||E}applyMiniChartOptions(t,n,a,h){var V,q,Y,J,re;let S=(Y=(q=(V=h==null?void 0:h.navigator)==null?void 0:V.miniChart)==null?void 0:q.series)!=null?Y:h==null?void 0:h.series,E=this.applySeries(t,this.filterMiniChartSeries(n),this.filterMiniChartSeries(S));this.applyAxes(t,a,h,E,["axes[].tick","axes[].thickness","axes[].title","axes[].crosshair","axes[].gridLine","axes[].label"]);let L=t.series;for(let ce of L)ce.properties.id=void 0;let _=t.axes,N=_.find(ce=>ce.direction==="x");for(let ce of _)ce.gridLine.enabled=!1,ce.label.enabled=ce===N,ce.tick.enabled=!1,ce.interactionEnabled=!1;if(N!=null){let ce=(J=a.navigator)==null?void 0:J.miniChart,he=ce==null?void 0:ce.label,me=(re=ce==null?void 0:ce.label)==null?void 0:re.interval;if(N.line.enabled=!1,N.label.set(na(he,["interval","rotation","minSpacing","autoRotate","autoRotateAngle"])),N.tick.set(na(me,["enabled","width","size","color","interval","step"])),N.type==="grouped-category"){N.label.enabled=!1,N.label.rotation=0;let{depthOptions:Me}=N;if(Me.length===0)Me.set([{label:{enabled:!0}}]);else for(let be=1;be<Me.length;be++)Me[be].label.enabled=!1}let we=me==null?void 0:me.step;we!=null&&(N.interval.step=we)}}applyModules(t){var h;let{type:n}=this.constructor,a=!1;for(let S of Ph.byType("root","legend")){let L=t[S.optionsKey]!=null&&S.chartTypes.includes(n);L!==this.modulesManager.isEnabled(S)&&(L?(this.modulesManager.addModule(S,_=>_.moduleFactory(this.getModuleContext())),S.type==="legend"&&((h=this.modulesManager.getModule(S))==null||h.attachLegend(this.ctx.scene)),this[S.optionsKey]=this.modulesManager.getModule(S)):(this.modulesManager.removeModule(S),delete this[S.optionsKey]),a=!0)}return a}initSeriesDeclarationOrder(t){for(let n=0;n<t.length;n++)t[n].setSeriesIndex(n)}applySeries(t,n,a){var V;if(!n)return"no-change";let h=yd(t.series,n,a);if(h.status==="no-overlap"){$d(`Chart.applySeries() - creating new series instances, status: ${h.status}`,h);let q=n.map(Y=>this.createSeries(Y));return this.initSeriesDeclarationOrder(q),t.series=q,"replaced"}$d("Chart.applySeries() - matchResult",h);let S=[],E=!1,L=!1,_=!1,N=h.changes.toSorted((q,Y)=>q.targetIdx-Y.targetIdx);for(let q of N)switch(L||(L=q.status==="series-grouping"),E||(E=((V=q.diff)==null?void 0:V.data)!=null),_||(_=q.status!=="no-op"),q.status){case"add":{let Y=this.createSeries(q.opts);S.push(Y),$d("Chart.applySeries() - created new series",Y);break}case"remove":$d(`Chart.applySeries() - removing series at previous idx ${q.idx}`,q.series);break;case"no-op":S.push(q.series),$d(`Chart.applySeries() - no change to series at previous idx ${q.idx}`,q.series);break;case"series-grouping":case"update":default:{let{series:Y,diff:J,idx:re}=q;$d(`Chart.applySeries() - applying series diff previous idx ${re}`,J,Y),this.applySeriesValues(Y,J),Y.markNodeDataDirty(),S.push(Y)}}return this.initSeriesDeclarationOrder(S),$d("Chart.applySeries() - final series instances",S),t.series=S,L?"series-grouping-change":E?"data-change":_?"updated":"no-op"}applyAxes(t,n,a,h,S=[]){if(!("axes"in n)||!n.axes)return!1;S=["axes[].type",...S];let{axes:E}=n;return!(h==="replaced")&&t.axes.length===E.length&&t.axes.every((N,V)=>N.type===E[V].type)&&$b(a)?(t.axes.forEach((N,V)=>{var re,ce;let q=(ce=(re=a.axes)==null?void 0:re[V])!=null?ce:{},Y=gg(q,E[V]);$d(`Chart.applyAxes() - applying axis diff idx ${V}`,Y);let J=`axes[${V}]`;R0(N,Y,{path:J,skip:S})}),!0):($d(`Chart.applyAxes() - creating new axes instances; seriesStatus: ${h}`),t.axes=this.createAxis(E,S),!0)}createSeries(t){let n=rr.create(t.type,this.getModuleContext());return this.applySeriesOptionModules(n,t),this.applySeriesValues(n,t),n}applySeriesOptionModules(t,n){let a=t.createModuleContext(),h=t.getModuleMap();for(let S of Ph.byType("series-option"))S.optionsKey in n&&S.seriesTypes.includes(t.type)&&h.addModule(S,E=>E.moduleFactory(a))}applySeriesValues(t,n){let a=t.getModuleMap(),V=n,{type:h,data:S,listeners:E,seriesGrouping:L,showInMiniChart:_}=V,N=ji(V,["type","data","listeners","seriesGrouping","showInMiniChart"]);for(let q of Kr)if(q.type==="series-option"&&q.optionsKey in N){let Y=a.getModule(q.optionsKey);if(Y){let J=N[q.optionsKey];delete N[q.optionsKey],Y.properties.set(J)}}t.properties.set(N),"data"in n&&t.setOptionsData(S),E&&this.registerListeners(t,E),"seriesGrouping"in n&&(L==null?t.seriesGrouping=void 0:t.seriesGrouping=pe(pe({},t.seriesGrouping),L))}createAxis(t,n){let a=[],h=this.getModuleContext();for(let S=0;S<t.length;S++){let E=t[S],L=Ou.create(E.type,h);this.applyAxisModules(L,E),R0(L,E,{path:`axes[${S}]`,skip:n}),a.push(L)}return $M(a),a}applyAxisModules(t,n){let a=t.createModuleContext(),h=t.getModuleMap();for(let S of Ph.byType("axis-option")){let E=n[S.optionsKey]!=null;E!==h.isEnabled(S)&&(E?(h.addModule(S,L=>L.moduleFactory(a)),t[S.optionsKey]=h.getModule(S)):(h.removeModule(S),delete t[S.optionsKey]))}}registerListeners(t,n){t.clearEventListeners();for(let[a,h]of Object.entries(n))Gi(h)&&t.addEventListener(a,h)}},Yr.chartsInstances=new WeakMap,f([Ys({newValue(e){this.destroyed||(this.ctx.domManager.setContainer(e),Yr.chartsInstances.set(e,this))},oldValue(e){Yr.chartsInstances.delete(e)}})],Yr.prototype,"container",2),f([Ys({newValue(e){this.resize("width option",{inWidth:e})}})],Yr.prototype,"width",2),f([Ys({newValue(e){this.resize("height option",{inHeight:e})}})],Yr.prototype,"height",2),f([Ys({newValue(e){this.resize("minWidth option",{inMinWidth:e})}})],Yr.prototype,"minWidth",2),f([Ys({newValue(e){this.resize("minHeight option",{inMinHeight:e})}})],Yr.prototype,"minHeight",2),f([$e(Yi)],Yr.prototype,"padding",2),f([$e(Yi)],Yr.prototype,"seriesArea",2),f([$e(Yi)],Yr.prototype,"keyboard",2),f([$e(zo(["standalone","integrated"],"a chart mode"))],Yr.prototype,"mode",2),f([Ir("chartCaptions.title")],Yr.prototype,"title",2),f([Ir("chartCaptions.subtitle")],Yr.prototype,"subtitle",2),f([Ir("chartCaptions.footnote")],Yr.prototype,"footnote",2),f([$e(Ji)],Yr.prototype,"suppressFieldDotNotation",2),f([Ys({changeValue(e,t){this.onAxisChange(e,t)}})],Yr.prototype,"axes",2),f([Ys({changeValue(e,t){this.onSeriesChange(e,t)}})],Yr.prototype,"series",2),Wp=Yr}}),VS,HS,WS,Ek,tl=M({"packages/ag-charts-community/src/scene/util/quadtree.ts"(){"use strict";uh(),jn(),VS=class{constructor(e,t,n){this.root=new Ek(e,t,n)}clear(e){this.root.clear(e)}addValue(e,t){let n={hitTester:e,value:t,distanceSquared:(a,h)=>e.distanceSquared(a,h)};this.root.addElem(n)}find(e,t){let n={best:{nearest:void 0,distanceSquared:1/0}};return this.root.find(e,t,n),n.best}},HS=class{constructor(e,t,n,a){this.nw=e,this.ne=t,this.sw=n,this.se=a}addElem(e){this.nw.addElem(e),this.ne.addElem(e),this.sw.addElem(e),this.se.addElem(e)}find(e,t,n){this.nw.find(e,t,n),this.ne.find(e,t,n),this.sw.find(e,t,n),this.se.find(e,t,n)}},WS=class{constructor(e,t,n){this.capacity=e,this.maxdepth=t,this.boundary=n!=null?n:Ui.NaN,this.elems=[],this.subdivisions=void 0}clear(e){this.elems.length=0,this.boundary=e,this.subdivisions=void 0}addElem(e){this.addCondition(e)&&(this.subdivisions===void 0?this.maxdepth===0||this.elems.length<this.capacity?this.elems.push(e):this.subdivide(e):this.subdivisions.addElem(e))}find(e,t,n){this.findCondition(e,t,n)&&(this.subdivisions===void 0?this.findAction(e,t,n):this.subdivisions.find(e,t,n))}subdivide(e){this.subdivisions=this.makeSubdivisions();for(let t of this.elems)this.subdivisions.addElem(t);this.subdivisions.addElem(e),this.elems.length=0}makeSubdivisions(){let{x:e,y:t,width:n,height:a}=this.boundary,{capacity:h}=this,S=this.maxdepth-1,E=n/2,L=a/2,_=new Ui(e,t,E,L),N=new Ui(e+E,t,E,L),V=new Ui(e,t+L,E,L),q=new Ui(e+E,t+L,E,L);return new HS(this.child(h,S,_),this.child(h,S,N),this.child(h,S,V),this.child(h,S,q))}},Ek=class OZ extends WS{addCondition(t){let{x:n,y:a}=t.hitTester.midPoint;return this.boundary.containsPoint(n,a)}findCondition(t,n,a){let{best:h}=a;return h.distanceSquared!==0&&this.boundary.distanceSquared(t,n)<h.distanceSquared}findAction(t,n,a){let h=Ns(t,n,this.elems,a.best.distanceSquared);h.nearest!==void 0&&h.distanceSquared<a.best.distanceSquared&&(a.best=h)}child(t,n,a){return new OZ(t,n,a)}}}}),Pr,Qd=M({"packages/ag-charts-community/src/chart/series/dataModelSeries.ts"(){"use strict";Gs(),zn(),aa(),sc(),Pr=class extends Cf{constructor(){super(...arguments),this.showFocusBox=!0,this.clipFocusBox=!0}getScaleInformation({xScale:e,yScale:t}){let n=go.is(e),a=go.is(t);return{isContinuousX:n,isContinuousY:a,xScaleType:e==null?void 0:e.type,yScaleType:t==null?void 0:t.type}}getModulePropertyDefinitions(){var n,a;let e=(n=this.axes.x)==null?void 0:n.scale,t=(a=this.axes.y)==null?void 0:a.scale;return this.moduleMap.mapModules(h=>h.getPropertyDefinitions(this.getScaleInformation({xScale:e,yScale:t}))).flat()}async requestDataModel(e,t,n){n.props.push(...this.getModulePropertyDefinitions());let{dataModel:a,processedData:h}=await e.request(this.id,t!=null?t:[],n);return this.dataModel=a,this.processedData=h,this.dispatch("data-processed",{dataModel:a,processedData:h}),{dataModel:a,processedData:h}}isProcessedDataAnimatable(){var a,h;let e=(h=(a=this.processedData)==null?void 0:a.reduced)==null?void 0:h.animationValidation;if(!e)return!0;let{orderedKeys:t,uniqueKeys:n}=e;return t&&n}checkProcessedDataAnimatable(){this.isProcessedDataAnimatable()||this.ctx.animationManager.skipCurrentBatch()}pickFocus(e){let t=this.getNodeData();if(t===void 0||t.length===0)return;let n=this.computeFocusDatumIndex(e,t);if(n===void 0)return;let{showFocusBox:a,clipFocusBox:h}=this,S=t[n],E=et(pe({},e),{datumIndex:n}),L=this.computeFocusBounds(E);if(L!==void 0)return{bounds:L,showFocusBox:a,clipFocusBox:h,datum:S,datumIndex:n}}computeFocusDatumIndex(e,t){var L;let n=_=>{let{missing:N=!1,enabled:V=!0,focusable:q=!0}=t[_];return!N&&V&&q},a=_=>{for(;_>=0&&!n(_);)_+=e.datumIndexDelta;return _===-1?void 0:_},h=_=>{for(;_<t.length&&!n(_);)_+=e.datumIndexDelta;return _===t.length?void 0:_},S,E=Gn(0,e.datumIndex,t.length-1);return e.datumIndexDelta<0?S=a(E):e.datumIndexDelta>0?S=h(E):S=(L=h(E))!=null?L:a(E),S===void 0?e.datumIndexDelta===0?void 0:e.datumIndex-e.datumIndexDelta:S}}}}),jh,Af,US,Up,Df,Tl,ua=M({"packages/ag-charts-community/src/chart/series/seriesProperties.ts"(){"use strict";ga(),Ki(),jh=class extends _n{constructor(){super(...arguments),this.fill="rgba(255,255,255, 0.33)",this.stroke="rgba(0, 0, 0, 0.4)",this.strokeWidth=2}},f([$e(Ra,{optional:!0})],jh.prototype,"fill",2),f([$e(Wn,{optional:!0})],jh.prototype,"fillOpacity",2),f([$e(Ra,{optional:!0})],jh.prototype,"stroke",2),f([$e(mi,{optional:!0})],jh.prototype,"strokeWidth",2),f([$e(Wn,{optional:!0})],jh.prototype,"strokeOpacity",2),f([$e(_d,{optional:!0})],jh.prototype,"lineDash",2),f([$e(mi,{optional:!0})],jh.prototype,"lineDashOffset",2),Af=class extends _n{},f([$e(mi,{optional:!0})],Af.prototype,"strokeWidth",2),f([$e(Wn,{optional:!0})],Af.prototype,"dimOpacity",2),f([$e(Ji,{optional:!0})],Af.prototype,"enabled",2),US=class extends _n{constructor(){super(...arguments),this.color="black"}},f([$e(Ra,{optional:!0})],US.prototype,"color",2),Up=class extends _n{constructor(){super(...arguments),this.enabled=!0}},f([$e(Ji,{optional:!0})],Up.prototype,"enabled",2),Df=class extends _n{constructor(){super(...arguments),this.item=new jh,this.series=new Af,this.text=new US}},f([$e(Yi)],Df.prototype,"item",2),f([$e(Yi)],Df.prototype,"series",2),f([$e(Yi)],Df.prototype,"text",2),Tl=class extends _n{constructor(){super(...arguments),this.visible=!0,this.focusPriority=1/0,this.showInLegend=!0,this.cursor="default",this.nodeClickRange="exact",this.highlight=new Up,this.highlightStyle=new Df}},f([$e(hi,{optional:!0})],Tl.prototype,"id",2),f([$e(Ji)],Tl.prototype,"visible",2),f([$e(sg,{optional:!0})],Tl.prototype,"focusPriority",2),f([$e(Ji)],Tl.prototype,"showInLegend",2),f([$e(hi)],Tl.prototype,"cursor",2),f([$e(Pm)],Tl.prototype,"nodeClickRange",2),f([$e(Yi)],Tl.prototype,"highlight",2),f([$e(Yi)],Tl.prototype,"highlightStyle",2)}}),bd,Ng,aC,Bu,Kp,qp,dc=M({"packages/ag-charts-community/src/chart/series/cartesian/cartesianSeries.ts"(){"use strict";Om(),bu(),Gs(),Ws(),jn(),$o(),as(),lc(),Pc(),tl(),Vr(),xv(),Ki(),Ym(),aa(),Nu(),Qd(),sc(),ua(),bd={x:["xKey"],y:["yKey"]},Ng={x:["xName"],y:["yName"]},aC=class extends Tr{constructor(e,t,n,a){super(e,t,n,a),this.xKey=a.properties.xKey,this.yKey=a.properties.yKey}},Bu=class extends Tl{constructor(){super(...arguments),this.pickOutsideVisibleMinorAxis=!1}},f([$e(hi,{optional:!0})],Bu.prototype,"legendItemName",2),f([$e(Ji,{optional:!0})],Bu.prototype,"pickOutsideVisibleMinorAxis",2),Kp=100,qp=class extends Pr{constructor(q){var Y=q,{pathsPerSeries:e=["path"],hasMarkers:t=!1,hasHighlightedLabels:n=!1,pathsZIndexSubOrderOffset:a=[],datumSelectionGarbageCollection:h=!0,markerSelectionGarbageCollection:S=!0,animationAlwaysUpdateSelections:E=!1,animationResetFns:L,directionKeys:_,directionNames:N}=Y,V=ji(Y,["pathsPerSeries","hasMarkers","hasHighlightedLabels","pathsZIndexSubOrderOffset","datumSelectionGarbageCollection","markerSelectionGarbageCollection","animationAlwaysUpdateSelections","animationResetFns","directionKeys","directionNames"]);if(super(pe({directionKeys:_,directionNames:N,canHaveAxes:!0},V)),this.NodeEvent=aC,this.dataNodeGroup=this.contentGroup.appendChild(new hn({name:`${this.id}-series-dataNodes`,zIndex:0})),this.markerGroup=this.contentGroup.appendChild(new hn({name:`${this.id}-series-markers`,zIndex:1})),this.labelGroup=this.contentGroup.appendChild(new qa({name:`${this.id}-series-labels`})),this.labelSelection=Er.select(this.labelGroup,or),this.highlightSelection=Er.select(this.highlightNode,()=>this.opts.hasMarkers?this.markerFactory():this.nodeFactory()),this.highlightLabelSelection=Er.select(this.highlightLabel,or),this.annotationSelections=new Set,this.minRectsCache={dirtyNodeData:!0},this.debug=Pa.create(),!_||!N)throw new Error(`Unable to initialise series type ${this.type}`);this.opts={pathsPerSeries:e,hasMarkers:t,hasHighlightedLabels:n,pathsZIndexSubOrderOffset:a,directionKeys:_,directionNames:N,animationResetFns:L,animationAlwaysUpdateSelections:E,datumSelectionGarbageCollection:h,markerSelectionGarbageCollection:S},this.paths=e.map(J=>new qr({name:`${this.id}-${J}`})),this.datumSelection=Er.select(this.dataNodeGroup,()=>this.nodeFactory(),h),this.markerSelection=Er.select(this.markerGroup,()=>this.markerFactory(),S),this.animationState=new Sp("empty",{empty:{update:{target:"ready",action:J=>this.animateEmptyUpdateReady(J)},reset:"empty",skip:"ready",disable:"disabled"},ready:{updateData:"waiting",clear:"clearing",highlight:J=>this.animateReadyHighlight(J),highlightMarkers:J=>this.animateReadyHighlightMarkers(J),resize:J=>this.animateReadyResize(J),reset:"empty",skip:"ready",disable:"disabled"},waiting:{update:{target:"ready",action:J=>{this.ctx.animationManager.isSkipped()?this.resetAllAnimation(J):this.animateWaitingUpdateReady(J)}},reset:"empty",skip:"ready",disable:"disabled"},disabled:{update:J=>this.resetAllAnimation(J),reset:"empty"},clearing:{update:{target:"empty",action:J=>this.animateClearingUpdateEmpty(J)},reset:"empty",skip:"ready"}},()=>this.checkProcessedDataAnimatable())}get contextNodeData(){return this._contextNodeData}getNodeData(){var e;return(e=this.contextNodeData)==null?void 0:e.nodeData}attachSeries(e,t,n){super.attachSeries(e,t,n),this.attachPaths(this.paths,t,n)}detachSeries(e,t,n){super.detachSeries(e,t,n),this.detachPaths(this.paths,t,n)}attachPaths(e,t,n){for(let a of e)this.contentGroup.appendChild(a)}detachPaths(e,t,n){for(let a of e)this.contentGroup.removeChild(a)}renderToOffscreenCanvas(){let e=this.getNodeData();return e!=null&&e.length>Kp}resetAnimation(e){e==="initial"?this.animationState.transition("reset"):e==="ready"?this.animationState.transition("skip"):e==="disabled"&&this.animationState.transition("disable")}addChartEventListeners(){this.destroyFns.push(this.ctx.chartEventManager.addListener("legend-item-click",e=>this.onLegendItemClick(e)),this.ctx.chartEventManager.addListener("legend-item-double-click",e=>this.onLegendItemDoubleClick(e)))}destroy(){super.destroy(),this._contextNodeData=void 0}update({seriesRect:e}){var _,N;let{visible:t,_contextNodeData:n}=this,h=((N=(_=this.ctx.highlightManager)==null?void 0:_.getActiveHighlight())==null?void 0:N.series)===this,S=this.checkResize(e),E=this.updateHighlightSelection(h);this.updateSelections(t),this.updateNodes(E,h,t);let L=this.getAnimationData(e,n);L&&(S&&this.animationState.transition("resize",L),this.animationState.transition("update",L))}updateSelections(e){var a;var t;let n=!this.opts.animationAlwaysUpdateSelections&&this.ctx.animationManager.isSkipped();if(!(!e&&n)&&!(!this.nodeDataRefresh&&!this.isPathOrSelectionDirty())){if(this.nodeDataRefresh){this.nodeDataRefresh=!1,this.debug("CartesianSeries.updateSelections() - calling createNodeData() for",this.id),this.markQuadtreeDirty(),this._contextNodeData=this.createNodeData();let h=this.isProcessedDataAnimatable();this._contextNodeData&&((a=(t=this._contextNodeData).animationValid)!=null||(t.animationValid=h)),this.minRectsCache.dirtyNodeData=!0;let{dataModel:S,processedData:E}=this;S!==void 0&&E!==void 0&&this.dispatch("data-update",{dataModel:S,processedData:E})}this.updateSeriesSelections()}}updateSeriesSelections(e){var N;let{datumSelection:t,labelSelection:n,markerSelection:a,paths:h}=this,S=this._contextNodeData;if(!S)return;let{nodeData:E,labelData:L,itemId:_}=S;this.updatePaths({seriesHighlighted:e,itemId:_,contextData:S,paths:h}),this.datumSelection=this.updateDatumSelection({nodeData:E,datumSelection:t}),this.labelSelection=(N=this.updateLabelSelection({labelData:L,labelSelection:n}))!=null?N:n,this.opts.hasMarkers&&(this.markerSelection=this.updateMarkerSelection({nodeData:E,markerSelection:a}))}markerFactory(){let e=La();return new e}updateNodes(e,t,n){var we;let{highlightSelection:a,highlightLabelSelection:h,opts:{hasMarkers:S,hasHighlightedLabels:E}}=this,L=!this.ctx.animationManager.isSkipped(),_=this.visible&&this._contextNodeData!=null&&n;this.contentGroup.visible=L||_,this.highlightGroup.visible=(L||_)&&t;let N=this.getOpacity();S?(this.updateMarkerNodes({markerSelection:a,isHighlight:!0}),this.animationState.transition("highlightMarkers",a)):(this.updateDatumNodes({datumSelection:a,isHighlight:!0}),this.animationState.transition("highlight",a)),E&&this.updateLabelNodes({labelSelection:h});let{dataNodeGroup:V,markerGroup:q,datumSelection:Y,labelSelection:J,markerSelection:re,paths:ce,labelGroup:he}=this,{itemId:me}=(we=this.contextNodeData)!=null?we:{};V.opacity=N,V.visible=L||_,he.visible=_,S&&(q.opacity=N,q.visible=_),he&&(he.opacity=N),this.updatePathNodes({seriesHighlighted:t,itemId:me,paths:ce,opacity:N,visible:_,animationEnabled:L}),V.visible&&(this.updateDatumNodes({datumSelection:Y,highlightedItems:e,isHighlight:!1}),this.usesPlacedLabels||this.updateLabelNodes({labelSelection:J}),S&&this.updateMarkerNodes({markerSelection:re,isHighlight:!1}))}getHighlightLabelData(e,t){let n=e.filter(a=>a.datum===t.datum&&a.itemId===t.itemId);return n.length===0?void 0:n}getHighlightData(e,t){return t?[t]:void 0}updateHighlightSelection(e){var _;let{highlightSelection:t,highlightLabelSelection:n,_contextNodeData:a}=this;if(!a)return;let h=(_=this.ctx.highlightManager)==null?void 0:_.getActiveHighlight(),S=e&&(h!=null&&h.datum)?h:void 0,E,L;if(S!=null){let N=this.isLabelEnabled(),{labelData:V,nodeData:q}=a;L=this.getHighlightData(q,S),E=N?this.getHighlightLabelData(V,S):void 0}return this.highlightSelection=this.updateHighlightSelectionItem({items:L,highlightSelection:t}),this.highlightLabelSelection=this.updateHighlightSelectionLabel({items:E,highlightLabelSelection:n}),L}markQuadtreeDirty(){this.quadtree=void 0}*datumNodesIter(){for(let{node:e}of this.datumSelection)e.datum.missing!==!0&&(yield e)}getQuadTree(){if(this.quadtree===void 0){let{width:e,height:t}=this.ctx.scene.canvas,n=new Ui(0,0,e,t);this.quadtree=new VS(100,10,n),this.initQuadTree(this.quadtree)}return this.quadtree}initQuadTree(e){}pickNodeExactShape(e){var _;let t=super.pickNodeExactShape(e);if(t)return t;let{x:n,y:a}=e,{opts:{hasMarkers:h}}=this,S,{dataNodeGroup:E,markerGroup:L}=this;if(S=E.pickNode(n,a),!S&&h&&(S=L==null?void 0:L.pickNode(n,a)),S&&S.datum.missing!==!0)return{datum:S.datum,distance:0};for(let N of this.moduleMap.modules()){let{datum:V}=(_=N.pickNodeExact(e))!=null?_:{};if(V!=null&&(V==null?void 0:V.missing)!==!0)return{datum:V,distance:0}}}pickNodeClosestDatum(e){var V,q;let{x:t,y:n}=e,{axes:a,_contextNodeData:h}=this;if(!h)return;let S=a.x,E=a.y,L={x:t,y:n},_=1/0,N;for(let Y of h.nodeData){let{point:{x:J=NaN,y:re=NaN}={}}=Y;if(isNaN(J)||isNaN(re)||!((S==null?void 0:S.inRange(J))&&(E==null?void 0:E.inRange(re))))continue;let he=Math.max((L.x-J)**2+(L.y-re)**2,0);he<_&&(_=he,N=Y)}for(let Y of this.moduleMap.modules()){let J=Y.pickNodeNearest(e);if(J!==void 0&&J.distanceSquared<_){_=J.distanceSquared,N=J.datum;break}}if(N){let Y=Math.max(Math.sqrt(_)-((q=(V=N.point)==null?void 0:V.size)!=null?q:0),0);return{datum:N,distance:Y}}}pickNodeMainAxisFirst(e,t){var re,ce,he,me;let{x:n,y:a}=e,{axes:h,_contextNodeData:S}=this,{pickOutsideVisibleMinorAxis:E}=this.properties;if(!S)return;let L=h.x,_=h.y,N=[L,_].filter(Iv.is).map(we=>we.direction);if(t&&N.length===0)return;let[V="x"]=N,q=[n,a];V!=="x"&&q.reverse();let Y=[1/0,1/0],J;for(let we of S.nodeData){let{x:Me=NaN,y:be=NaN}=(ce=(re=we.point)!=null?re:we.midPoint)!=null?ce:{};if(isNaN(Me)||isNaN(be)||we.missing===!0)continue;let Le=[L==null?void 0:L.inRange(Me),_==null?void 0:_.inRange(be)];if(V!=="x"&&Le.reverse(),!Le[0]||!E&&!Le[1])continue;let Fe=[Me,be];V!=="x"&&Fe.reverse();let je=!0;for(let Xe=0;Xe<Fe.length;Xe++){let nt=Math.abs(Fe[Xe]-q[Xe]);if(nt>Y[Xe]){je=!1;break}else nt<Y[Xe]&&(Y[Xe]=nt,Y.fill(1/0,Xe+1,Y.length))}je&&(J=we)}if(J){let we=Math.max(Y[0]**2+Y[1]**2-((me=(he=J.point)==null?void 0:he.size)!=null?me:0),0);for(let Me of this.moduleMap.modules()){let be=Me.pickNodeMainAxisFirst(e);if(be!==void 0&&be.distanceSquared<we){J=be.datum,we=be.distanceSquared;break}}return{datum:J,distance:Math.sqrt(we)}}}isPathOrSelectionDirty(){return!1}shouldFlipXY(){return!1}getMinRects(e,t){let{dirtyNodeData:n,sizeCache:a,minRect:h,minVisibleRect:S}=this.minRectsCache,E=JSON.stringify({width:e,height:t});if(!(E!==a)&&!n&&h&&S)return{minRect:h,minVisibleRect:S};let _=this.computeMinRects(e,t);return this.minRectsCache={dirtyNodeData:!1,sizeCache:E,minRect:_==null?void 0:_.minRect,minVisibleRect:_==null?void 0:_.minVisibleRect},_}computeMinRects(e,t){var we,Me;let n=this._contextNodeData;if(!(n!=null&&n.nodeData.length))return;let{nodeData:a}=n,h=Array(a.length),S=Array(a.length);for(let[be,{midPoint:Le}]of a.entries())h[be]=(we=Le==null?void 0:Le.x)!=null?we:0,S[be]=(Me=Le==null?void 0:Le.y)!=null?Me:0;h.sort((be,Le)=>be-Le),S.sort((be,Le)=>be-Le);let E,L,_,N,V=0,q=0;for(let be=1;be<a.length;be++)h[be]>=0&&(E!=null||(E=be)),h[be]>e&&(L!=null||(L=be)),S[be]>=0&&(_!=null||(_=be)),S[be]>t&&(N!=null||(N=be)),V=Math.max(V,h[be]-h[be-1]),q=Math.max(q,S[be]-S[be-1]);L!=null||(L=a.length),N!=null||(N=a.length);let Y=E!=null&&L!=null?h.slice(E,L):[],J=_!=null&&N!=null?S.slice(_,N):[],re=0,ce=0;for(let be=1;be<Math.max(Y.length,J.length);be++){let Le=Y[be],Fe=Y[be-1],je=J[be],Xe=J[be-1];Le!=null&&Fe!=null&&(re=Math.max(re,Le-Fe)),je!=null&&Xe!=null&&(ce=Math.max(ce,je-Xe))}let he=new Ui(0,0,V,q),me=new Ui(0,0,re,ce);return{minRect:he,minVisibleRect:me}}updateHighlightSelectionItem(e){let{opts:{hasMarkers:t}}=this,{items:n,highlightSelection:a}=e,h=n!=null?n:[];if(t){let S=a;return this.updateMarkerSelection({nodeData:h,markerSelection:S})}else return this.updateDatumSelection({nodeData:h,datumSelection:a})}updateHighlightSelectionLabel(e){var t;return this.updateLabelSelection({labelData:(t=e.items)!=null?t:[],labelSelection:e.highlightLabelSelection})}updateDatumSelection(e){return e.datumSelection}updateDatumNodes(e){}updateMarkerSelection(e){return e.markerSelection}updateMarkerNodes(e){}updatePaths(e){e.paths.forEach(t=>t.visible=!1)}updatePathNodes(e){let{paths:t,opacity:n,visible:a}=e;for(let h of t)h.opacity=n,h.visible=a}resetPathAnimation(e){var n,a;let{path:t}=(a=(n=this.opts)==null?void 0:n.animationResetFns)!=null?a:{};t&&e.paths.forEach(h=>{Eo([h],t)})}resetDatumAnimation(e){var n,a;let{datum:t}=(a=(n=this.opts)==null?void 0:n.animationResetFns)!=null?a:{};t&&Eo([e.datumSelection],t)}resetLabelAnimation(e){var n,a;let{label:t}=(a=(n=this.opts)==null?void 0:n.animationResetFns)!=null?a:{};t&&Eo([e.labelSelection],t)}resetMarkerAnimation(e){var n,a;let{marker:t}=(a=(n=this.opts)==null?void 0:n.animationResetFns)!=null?a:{};t&&this.opts.hasMarkers&&Eo([e.markerSelection],t)}resetAllAnimation(e){var t;this.ctx.animationManager.stopByAnimationGroupId(this.id),this.resetPathAnimation(e),this.resetDatumAnimation(e),this.resetLabelAnimation(e),this.resetMarkerAnimation(e),((t=e.contextData)==null?void 0:t.animationValid)===!1&&this.ctx.animationManager.skipCurrentBatch()}animateEmptyUpdateReady(e){this.ctx.animationManager.skipCurrentBatch(),this.resetAllAnimation(e)}animateWaitingUpdateReady(e){this.ctx.animationManager.skipCurrentBatch(),this.resetAllAnimation(e)}animateReadyHighlight(e){var n,a;let{datum:t}=(a=(n=this.opts)==null?void 0:n.animationResetFns)!=null?a:{};t&&Eo([e],t)}animateReadyHighlightMarkers(e){var n,a;let{marker:t}=(a=(n=this.opts)==null?void 0:n.animationResetFns)!=null?a:{};t&&Eo([e],t)}animateReadyResize(e){this.resetAllAnimation(e)}animateClearingUpdateEmpty(e){this.ctx.animationManager.skipCurrentBatch(),this.resetAllAnimation(e)}getAnimationData(e,t){let{_contextNodeData:n}=this;return n?{datumSelection:this.datumSelection,markerSelection:this.markerSelection,labelSelection:this.labelSelection,annotationSelections:[...this.annotationSelections],contextData:n,previousContextData:t,paths:this.paths,seriesRect:e}:void 0}updateLabelSelection(e){return e.labelSelection}getScaling(e){if(e instanceof Cl){let{range:t,domain:n}=e;return{type:"log",convert:a=>e.convert(a),domain:[n[0],n[1]],range:[t[0],t[1]]}}else if(e instanceof go){let{range:t}=e,n=e.getDomain();return{type:"continuous",domain:[n[0],n[1]],range:[t[0],t[1]]}}else if(e instanceof dr){let{domain:t}=e;return{type:"category",domain:t,inset:e.inset,step:e.step}}}calculateScaling(){let e={};for(let t of Object.values(g0)){let n=this.axes[t];if(!n)continue;let a=this.getScaling(n.scale);a!=null&&(e[t]=a)}return e}}}}),XT,KS,T1,IL=M({"packages/ag-charts-community/src/chart/cartesianChart.ts"(){"use strict";fs(),Gs(),ts(),Rn(),zn(),Ym(),ks(),aa(),dc(),XT=["top","right","bottom","left"],KS=class _Z extends Wp{constructor(t,n){super(t,n),this.paired=!0,this.firstSeriesTranslation=!0,this.lastUpdateClipRect=void 0}onAxisChange(t,n){super.onAxisChange(t,n),this.ctx!=null&&this.ctx.zoomManager.updateAxes(t)}destroySeries(t){super.destroySeries(t),this.firstSeriesTranslation=!0}getChartType(){return"cartesian"}setRootClipRects(t){let{seriesRoot:n,annotationRoot:a}=this;n.setClipRect(t),a.setClipRect(t)}performLayout(t){let{firstSeriesTranslation:n,seriesRoot:a,annotationRoot:h}=this,{clipSeries:S,seriesRect:E,visible:L}=this.updateAxes(t.layoutBox);this.seriesRoot.visible=L,this.seriesRect=E,this.animationRect=t.layoutBox;let{x:_,y:N}=E;if(n){for(let J of[a,h])J.translationX=Math.floor(_),J.translationY=Math.floor(N);this.firstSeriesTranslation=!1}else{let{translationX:J,translationY:re}=a;vh(this.id,"seriesRect",this.ctx.animationManager,[a,h],{translationX:J,translationY:re},{translationX:Math.floor(_),translationY:Math.floor(N)},{phase:"update"})}let V=E.clone().grow(this.seriesArea.padding),q=this.seriesArea.clip||S?V:void 0,{lastUpdateClipRect:Y}=this;this.lastUpdateClipRect=q,this.ctx.animationManager.isActive()&&Y!=null?this.ctx.animationManager.animate({id:this.id,groupId:"clip-rect",phase:"update",from:Y,to:V,onUpdate:J=>this.setRootClipRects(J),onComplete:()=>this.setRootClipRects(q)}):this.setRootClipRects(q),this.ctx.layoutManager.emitLayoutComplete(t,{axes:this.axes.map(J=>J.getLayoutState()),series:{visible:L,rect:E,paddedRect:V,shouldFlipXY:this.shouldFlipXY()},clipSeries:S})}updateAxes(t){let{clipSeries:n,seriesRect:a,overflows:h}=this.resolveAxesLayout(t);for(let S of this.axes)S.update(),S.setCrossLinesVisible(!h),this.clipAxis(S,a,t);return{clipSeries:n,seriesRect:a,visible:!h}}resolveAxesLayout(t){let n,a,h=0,S=10;do if(a=n!=null?n:this.getDefaultState(),n=this.updateAxesPass(new Map(a.axisAreaWidths),t.clone()),h++>S){Di.warn("Max iterations reached. Unable to stabilize axes layout.");break}while(!this.isLayoutStable(n,a));return this.lastAreaWidths=n.axisAreaWidths,n}updateAxesPass(t,n){var me,we,Me,be,Le,Fe,je;let a=new Map,h={},S=!1,E=!1;for(let Xe of XT){let nt=this.seriesArea.padding[Xe],lt=this.axes.findLast(ot=>ot.position===Xe);lt?lt.seriesAreaPadding=nt:n.shrink(nt,Xe)}let L=((me=t.get("left"))!=null?me:0)+((we=t.get("right"))!=null?we:0),_=((Me=t.get("top"))!=null?Me:0)+((be=t.get("bottom"))!=null?be:0),N=this.buildCrossLinePadding(t);n.width<=L+N.hPadding||n.height<=_+N.vPadding?S=!0:n.shrink(N);let V=n.clone().shrink(Object.fromEntries(t));for(let Xe of this.axes){let{position:nt="left",direction:lt}=Xe;this.sizeAxis(Xe,V,nt);let ot=this.getSyncedDomain(Xe),vt=lt==="y",gt=Xe.calculateLayout(ot,Xe.nice?h[lt]:void 0);(Le=h[lt])!=null||(h[lt]=gt.primaryTickCount),E||(E=Xe.dataDomain.clipped||Xe.visibleRange[0]>0||Xe.visibleRange[1]<1),a.set(Xe.id,Math.ceil((Fe=Xe.thickness)!=null?Fe:vt?gt.bbox.width:gt.bbox.height))}let q=Object.entries(dx(this.axes,Xe=>{var nt;return(nt=Xe.position)!=null?nt:"left"})),{width:Y,height:J,canvas:re}=this.ctx.scene,ce=new Map,he=new Map;for(let[Xe,nt]of q){let ot=Xe==="left"||Xe==="right"?J%re.pixelRatio:Y%re.pixelRatio,vt=0;for(let gt of nt){he.set(gt.id,ot);let bt=(je=a.get(gt.id))!=null?je:0;vt=Math.max(vt,ot+bt),gt.layoutConstraints.stacked&&(ot+=bt+_Z.AxesPadding)}ce.set(Xe,Math.ceil(vt))}for(let[Xe,nt]of q)this.positionAxes({axes:nt,position:Xe,axisWidths:a,axisOffsets:he,axisAreaWidths:ce,axisBound:n,seriesRect:V});return{clipSeries:E,seriesRect:V,axisAreaWidths:ce,overflows:S}}buildCrossLinePadding(t){var a;let n={top:0,right:0,bottom:0,left:0,hPadding:0,vPadding:0};this.axes.forEach(h=>{var S;(S=h.crossLines)==null||S.forEach(E=>{var L;(L=E.calculatePadding)==null||L.call(E,n)})});for(let[h,S=0]of Object.entries(n))n[h]=Math.max(S-((a=t.get(h))!=null?a:0),0);return n.hPadding=n.left+n.right,n.vPadding=n.top+n.bottom,n}clampToOutsideSeriesRect(t,n,a,h){let S=a==="x"?t.x:t.y,E=a==="x"?t.width:t.height;return h===1?Math.min(n,S+E):Math.max(n,S)}getSyncedDomain(t){let n=this.modulesManager.getModule("sync");if(!(n!=null&&n.enabled))return;let a=n.getSyncedDomain(t);if(a&&t.dataDomain.domain.length){let h,{domain:S}=t.scale;if(go.is(t.scale)){let[E,L]=zs(a);h=E!==S[0]||L!==S[1]}else h=!bh(a,S);h&&!this.skipSync&&n.updateSiblings()}return a}sizeAxis(t,n,a){let h=t instanceof Iv,S=a==="left"||a==="right",{width:E,height:L}=n,_=S?L:E,N=0,V=_,{min:q,max:Y}=this.ctx.zoomManager.getAxisZoom(t.id),{width:J,unit:re,align:ce}=t.layoutConstraints;re==="px"?V=N+J:V=V*J/100,ce==="end"&&(N=_-(V-N),V=_),S&&(h?[q,Y]=[1-Y,1-q]:[N,V]=[V,N]),t.range=[N,V],t.visibleRange=[q,Y],t.gridLength=S?E:L}positionAxes(t){var re,ce,he,me;let{axes:n,axisBound:a,axisWidths:h,axisOffsets:S,axisAreaWidths:E,seriesRect:L,position:_}=t,N=(re=E.get(_))!=null?re:0,V="x",q="y",Y=1;(_==="top"||_==="bottom")&&(V="y",q="x");let J=a[V];(_==="right"||_==="bottom")&&(Y=-1,J+=V==="x"?a.width:a.height);for(let we of n){let Me=(ce=E.get(q==="x"?"left":"top"))!=null?ce:0,be=(he=h.get(we.id))!=null?he:0,Le=(me=S.get(we.id))!=null?me:0;we.gridPadding=N-Le-be,we.translation[q]=a[q]+Me,we.translation[V]=this.clampToOutsideSeriesRect(L,J+Y*(Le+be),V,Y)}}shouldFlipXY(){return this.series.every(t=>t instanceof qp&&t.shouldFlipXY())}getDefaultState(){let t=new Map;if(this.lastAreaWidths)for(let{position:n="left"}of this.axes){let a=this.lastAreaWidths.get(n);a!=null&&t.set(n,a)}return{axisAreaWidths:t,clipSeries:!1,overflows:!1}}isLayoutStable(t,n){if(n.overflows!==t.overflows||n.clipSeries!==t.clipSeries)return!1;for(let a of t.axisAreaWidths.keys())if(!n.axisAreaWidths.has(a))return!1;for(let[a,h]of n.axisAreaWidths.entries()){let S=t.axisAreaWidths.get(a);if((h!=null||S!=null)&&h!==S)return!1}return!0}clipAxis(t,n,a){var _,N,V,q;let h=Math.ceil((N=(_=t.gridLine)==null?void 0:_.width)!=null?N:0),S=Math.ceil((q=(V=t.line)==null?void 0:V.width)!=null?q:0),{width:E,height:L}=n;switch(E+=t.direction==="x"?h:S,L+=t.direction==="y"?h:S,t.clipGrid(n.x,n.y,E,L),t.position){case"left":case"right":t.clipTickLines(a.x,n.y-h,a.width+h,n.height+h*2);break;case"top":case"bottom":t.clipTickLines(n.x-h,a.y,n.width+h*2,a.height+h);break}}},KS.className="CartesianChart",KS.type="cartesian",KS.AxesPadding=15,T1=KS}}),ey,Yp,R1=M({"packages/ag-charts-community/src/chart/chartProxy.ts"(){"use strict";Lh(),Lc(),Oc(),Yd(),ey=class FZ{constructor(t,n,a){this.factoryApi=n,this.licenseManager=a,this.chart=t}static isInstance(t){var n;return t instanceof FZ||((n=t.constructor)==null?void 0:n.name)==="AgChartInstanceProxy"&&t.chart!=null?!0:t.chart!=null&&this.validateImplementation(t)}static validateImplementation(t){var h;let n=["getOptions","destroy"],a=Object.keys((h=Object.getPrototypeOf(t))!=null?h:{});return n.every(S=>a.includes(S))}async update(t){this.factoryApi.update(t,this),await this.chart.waitForUpdate()}async updateDelta(t){this.factoryApi.updateUserDelta(this,t),await this.chart.waitForUpdate()}getOptions(){let t=Sl(this.chart.getOptions());for(let n of Object.keys(t))n.startsWith("_")&&delete t[n];return t}waitForUpdate(){return this.chart.waitForUpdate()}async download(t){let n=await this.prepareResizedChart(this,t);try{n.chart.download(t==null?void 0:t.fileName,t==null?void 0:t.fileFormat)}finally{n.destroy()}}async __toSVG(t){let n=await this.prepareResizedChart(this,pe({width:600,height:300},t));try{return n.chart.toSVG()}finally{n.destroy()}}async getImageDataURL(t){let n=await this.prepareResizedChart(this,t);try{return n.chart.getCanvasDataURL(t==null?void 0:t.fileFormat)}finally{n.destroy()}}getState(){return this.factoryApi.caretaker.save(...this.getEnabledOriginators())}async setState(t){let n=this.getEnabledOriginators();if(!n.includes(this.chart.ctx.legendManager)){await this.setStateOriginators(t,n);return}await this.setStateOriginators(t,n.filter(a=>a!==this.chart.ctx.zoomManager)),await this.setStateOriginators(t,[this.chart.ctx.zoomManager])}resetAnimations(){this.chart.resetAnimations()}skipAnimations(){this.chart.skipAnimations()}destroy(){this.releaseChart?(this.releaseChart(),this.chart=null):(this.chart.publicApi=void 0,this.chart.destroy())}async prepareResizedChart(t,n={}){var re,ce,he,me,we,Me,be,Le;let{chart:a}=t,h=(ce=(re=n.width)!=null?re:a.width)!=null?ce:a.ctx.scene.canvas.width,S=(me=(he=n.height)!=null?he:a.height)!=null?me:a.ctx.scene.canvas.height,E=t.getState(),L=Ph.hasEnterpriseModules(),_=et(pe({},a.chartOptions.processedOverrides),{container:document.createElement("div"),width:h,height:S}),N=a.getOptions();L&&(_.animation={enabled:!1},(we=this.licenseManager)!=null&&we.isDisplayWatermark()&&(_.foreground={text:this.licenseManager.getWatermarkMessage(),image:{url:"data:image/svg+xml;base64, ",width:170,height:25,right:25,bottom:50,opacity:.7}}));let V=pe({},a.chartOptions.specialOverrides),q=pe({},a.chartOptions.optionMetadata);n.width!=null&&n.height!=null&&(V.overrideDevicePixelRatio=1);let Y=this.factoryApi.create(N,_,V,q);await Y.setState(E),Y.chart.ctx.zoomManager.updateZoom("chartProxy",a.ctx.zoomManager.getZoom()),Y.chart.ctx.legendManager.clearData(),Y.chart.ctx.legendManager.update(a.ctx.legendManager.getData()),a.series.forEach((Fe,je)=>{Fe.visible||(Y.chart.series[je].visible=!1)});let J=[];for(let Fe of a.modulesManager.legends())J.push((be=(Me=Fe.legend.pagination)==null?void 0:Me.currentPage)!=null?be:0);for(let Fe of Y.chart.modulesManager.legends()){let je=(Le=J.shift())!=null?Le:0;Fe.legend.pagination&&Fe.legend.pagination.setPage(je)}return Y.chart.update(0,{forceNodeDataRefresh:!0}),await Y.waitForUpdate(),Y}getEnabledOriginators(){var N,V,q;let{chartOptions:{processedOptions:t,optionMetadata:n},ctx:{annotationManager:a,chartTypeOriginator:h,zoomManager:S,legendManager:E}}=this.chart,L=[];return"annotations"in t&&((N=t.annotations)!=null&&N.enabled)&&L.push(a),n.presetType==="price-volume"&&L.push(h),((V=t.navigator)!=null&&V.enabled||(q=t.zoom)!=null&&q.enabled)&&L.push(S),"legend"in this.chart&&L.push(E),L}async setStateOriginators(t,n){this.factoryApi.caretaker.restore(t,...n),this.chart.ctx.updateService.update(2,{forceNodeDataRefresh:!0}),await this.chart.waitForUpdate()}},ey.chartInstances=new WeakMap,f([Ys({oldValue(e){e.destroyed||(e.publicApi=void 0),ey.chartInstances.delete(e)},newValue(e){e&&(e.publicApi=this,ey.chartInstances.set(e,this))}})],ey.prototype,"chart",2),Yp=ey}}),ty,Ba=M({"packages/ag-charts-community/src/locale/locale.ts"(){"use strict";Lh(),Oc(),Ki(),ty=class extends q0{constructor(e){super(),this.ctx=e,this.localeText=void 0}},f([wv(e=>{e.ctx.localeManager.setLocaleText(e.localeText)}),$e(u0,{optional:!0})],ty.prototype,"localeText",2),f([wv(e=>{e.ctx.localeManager.setLocaleTextFormatter(e.getLocaleText)}),$e(Kl,{optional:!0})],ty.prototype,"getLocaleText",2)}}),ZT,P1=M({"packages/ag-charts-community/src/locale/localeModule.ts"(){"use strict";Ba(),ZT={type:"root",optionsKey:"locale",packageType:"community",chartTypes:["cartesian","polar","hierarchy","topology","flow-proportion","standalone","gauge"],moduleFactory:e=>new ty(e)}}});function $T(e,t=1/0){switch(typeof e){case"undefined":return"undefined";case"number":if(isNaN(e))return"NaN";if(e===1/0)return"Infinity";if(e===-1/0)return"-Infinity";default:return e=JSON.stringify(e),e.length>t?`${e.slice(0,t)}... (+${e.length-t} characters)`:e}}function L1(e){let t=1;for(let n=0;n<e.length;n++)e.charCodeAt(n)===10&&t++;return t}var QT=M({"packages/ag-charts-community/src/util/string.util.ts"(){"use strict"}});function Ik(e,t){var a,h,S;let n=JSON.stringify(e,null,0);return Gu.has(t)||Gu.set(t,new Map),(a=Gu.get(t))!=null&&a.has(n)||(h=Gu.get(t))==null||h.set(n,t(e)),(S=Gu.get(t))==null?void 0:S.get(n)}function Rl(e){let t=new Map,n=(...S)=>S.map(E=>typeof E=="object"||typeof E=="symbol"?E:(t.has(E)||t.set(E,{v:E}),t.get(E))),a={},h=new WeakMap;return(...S)=>{let E=S.length===0?[a]:n(...S),L=h;for(let V of E.slice(0,-1))L.has(V)||L.set(V,new WeakMap),L=L.get(V);let _=E.at(-1),N=L.get(_);return N||(N=e(...S),L.set(_,N)),N}}var Gu,Tk=M({"packages/ag-charts-community/src/util/memo.ts"(){"use strict";Gu=new WeakMap}});function Ef(e,t=[0,0]){for(let n of e)typeof n=="number"&&(n<0&&(t[0]+=n),n>0&&(t[1]+=n));return t}function qS(e,t){return{id:e,matchGroupIds:[t],type:"aggregate",aggregateFunction:a=>Ef(a)}}function If(e,t){return{id:e,type:"aggregate",matchGroupIds:t?[t]:void 0,aggregateFunction:n=>Ef(n),groupAggregateFunction:(n,a=[0,0])=>{var h,S;return a[0]+=(h=n==null?void 0:n[0])!=null?h:0,a[1]+=(S=n==null?void 0:n[1])!=null?S:0,a}}}function YS(e,t){return{id:e,matchGroupIds:[t],type:"aggregate",aggregateFunction:a=>jo.extendDomain(a)}}function Rk(e){return{id:e,type:"aggregate",aggregateFunction:()=>[0,1],groupAggregateFunction:(t,n=[0,0])=>{var a,h;return n[0]+=(a=t==null?void 0:t[0])!=null?a:0,n[1]+=(h=t==null?void 0:t[1])!=null?h:0,n}}}function JT(e,t){return{id:e,matchGroupIds:t?[t]:void 0,type:"aggregate",aggregateFunction:a=>Ef(a),groupAggregateFunction:(a,h=[0,0,-1])=>{var S,E;return h[0]+=(S=a==null?void 0:a[0])!=null?S:0,h[1]+=(E=a==null?void 0:a[1])!=null?E:0,h[2]++,h},finalFunction:(a=[0,0,0])=>{let h=a[0]+a[1];return h>=0?[0,h/a[2]]:[h/a[2],0]}}}function XS(e,t,n){let a={id:e,matchGroupIds:n?[n]:void 0,type:"aggregate",aggregateFunction:(h,S=[])=>{let E=S[1]-S[0];return t.aggregateFunction(h).map(L=>L/E)}};return t.groupAggregateFunction&&(a.groupAggregateFunction=t.groupAggregateFunction),a}function oC(e){return()=>{let t=0;return n=>Na(n)?(t+=e?Math.max(0,n):n,t):n}}function ZS(){return()=>{let e=0;return t=>{if(!Na(t))return t;let n=e;return e+=t,n}}}var $S=M({"packages/ag-charts-community/src/chart/data/aggregateFunctions.ts"(){"use strict";Hn(),HM()}});function Pk(e){return e!=null&&vb(e)}function O1(e){return e!=null}function Lk(e){switch(e){case"number":case"log":case"ordinal-time":case"time":case"color":return Pk;default:return O1}}function Ok(e){switch(e){case"number":case"log":case"time":case"color":return"range";default:return"category"}}function Jd(e,t,n={}){return pe({property:e,type:"key",valueType:Ok(t),validation:Lk(t)},n)}function fn(e,t,n={}){return pe({property:e,type:"value",valueType:Ok(t),validation:Lk(t)},n)}function Cd(e,t={}){let S=t,{min:n=-1/0,max:a=1/0}=S,h=ji(S,["min","max"]);return pe({type:"value",property:e,valueType:"range",validation:Pk,processor:()=>E=>Na(E)?Gn(n,E,a):E},h)}function Pl(e,t,n={}){let E=n,{onlyPositive:a}=E,h=ji(E,["onlyPositive"]);return et(pe({},fn(e,t,h)),{processor:oC(a)})}function TL(e,t,n={}){return et(pe({},fn(e,t,n)),{processor:ZS()})}function Xp(e,t,n,a,h){return[fn(e,h,a),i(a.groupId,t,n,a.separateNegative),...a.rangeId!=null?[YS(a.rangeId,a.groupId)]:[]]}function eR(e,t,n){return[fn(e,t,n),C(n.groupId)]}function RL({normaliseTo:e,mode:t}){let n=(a,h)=>{if(h===0)return null;let S=(a!=null?a:0)*e/h;return S>=0?Math.min(e,S):Math.max(-e,S)};return()=>()=>(a,h,S)=>{let E=_1(t,a,h,S);for(let L of h){let _=a[L],N=_[S];if(N==null){_[S]=void 0;continue}_[S]=typeof N=="number"?n(N,E):N.map(V=>n(V,E))}}}function _1(e,t,n,a){let h=[0,0];for(let S of n){let L=t[S][a];if(L==null)continue;let _=typeof L=="number"?L:Math.max(...L.map(V=>V!=null?V:0)),N=_<0?0:1;e==="sum"?h[N]+=_:N===0?h[N]=Math.min(h[N],_):h[N]=Math.max(h[N],_)}return Math.max(Math.abs(h[0]),h[1])}function QS(e,t,n="sum"){return{type:"group-value-processor",matchGroupIds:e,adjust:Ik({normaliseTo:t,mode:n},RL)}}function As({normaliseTo:e,zeroDomain:t,rangeMin:n,rangeMax:a}){let h=e[1]-e[0],S=(E,L,_)=>{let N=e[0]+(E-L)/_*h;return _===0?t:N>=e[1]?e[1]:N<e[0]?e[0]:N};return()=>(E,L)=>{let[_,N]=E.domain.values[L];n!=null&&(_=n),a!=null&&(N=a);let V=N-_;E.domain.values[L]=[e[0],e[1]];let{rawData:q}=E,Y=E.columns[L];for(let J=0;J<q.length;J+=1)Y[J]=S(Y[J],_,V)}}function Tf(e,t,n,a,h){return{type:"property-value-processor",property:e,adjust:Ik({normaliseTo:t,rangeMin:a,rangeMax:h,zeroDomain:n},As)}}function rC(e){return{type:"processor",property:"animationValidation",calculate(t){let{keys:n,values:a}=t.defs,{input:{count:h},domain:{keys:S,values:E},rawData:L,keys:_,columns:N}=t,V=Be|Qe;if(L.length!==0){for(let q=0;V!==0&&q<n.length;q++)V&=st(h,n[q],S[q],_[q]);for(let q=0;V!==0&&q<a.length;q++){let Y=a[q];e!=null&&e.includes(Y.id)&&(V&=st(h,Y,E[q],N[q]))}}return{uniqueKeys:(V&Be)!==0,orderedKeys:(V&Qe)!==0}}}}function tR({mode:e,separateNegative:t}){return()=>()=>(n,a,h)=>{let S=[0,0];for(let E of a){let L=n[E],_=L[h],N=ZC(_)&&t?0:1;Na(_)&&(e==="normal"&&(S[N]+=_),L[h]=S[N],e==="trailing"&&(S[N]+=_))}}}function _k({mode:e,sum:t}){return()=>{let n=[],a=!0;return()=>(h,S,E)=>{let L=0;for(let _ of S){let N=h[_],V=N[E],q=a&&t==="current"?0:n[_];n[_]=V;let Y=t==="current"?V:q;if(!Na(V)||!Na(q)){N[E]=L;continue}e==="normal"&&(L+=Y),N[E]=L,e==="trailing"&&(L+=Y)}a=!1}}}function i(e,t,n,a=!1){let h;if(t.startsWith("window")){let S=t.endsWith("-trailing")?"trailing":"normal";h=Ik({mode:S,sum:n},_k)}else h=Ik({mode:t,separateNegative:a},tR);return{type:"group-value-processor",matchGroupIds:[e],adjust:h}}function o(){return()=>(e,t,n)=>{let a=new Float64Array(32),h=0;for(let S of t){let E=e[S],L=E[n];a[h]=Number.isFinite(L)?L:NaN,h+=1,E[n]=a.subarray(0,h)}}}function C(e){return{type:"group-value-processor",matchGroupIds:[e],adjust:o}}function P(e){var t;return(t=e.id)!=null?t:e.property}function B(e,t,n){var L,_;let a=new Map,h=t.defs.values;for(let N=0;N<h.length;N+=1){let V=h[N];if(((L=V.scopes)==null?void 0:L.includes(e))===!1)continue;let q=P(V);if(a.has(q))return;a.set(q,N)}let S=[],E=n.defs.values;for(let N=0;N<E.length;N+=1){let V=E[N];if(((_=V.scopes)==null?void 0:_.includes(e))===!1)continue;let q=P(V),Y=a.get(q);if(Y==null)return;a.delete(q),S.push({previousIndex:Y,nextIndex:N})}if(a.size===0)return S}function W(e,t,n,a,h){for(let{previousIndex:S,nextIndex:E}of n){let L=e[S],_=t[E],N=L[a],V=_[h];if(N!==V)return!1}return!0}function $(e,t,n=!0){return{type:"processor",property:"diff",calculate(a,h){let S=new Map,E=new Map,L=new Map,_=new Map,N=t.keys,V=a.keys,q=t.columns,Y=a.columns,J=B(e,t,a);if(J==null)return h;let re=Math.max(t.rawData.length,a.rawData.length);for(let me=0;me<re;me++){let we=me<t.rawData.length,Me=me<a.rawData.length,be=we?Xd(N,me):void 0,Le=be!=null?ie(be):"",Fe=Me?Xd(V,me):void 0,je=Fe!=null?ie(Fe):"";if(Me&&we&&Le===je){W(q,Y,J,me,me)||L.set(je,me);continue}let Xe=_.get(je);Xe!=null?((n||!W(q,Y,J,Xe,me))&&(L.set(je,me),S.set(je,me)),_.delete(je)):Me&&E.set(je,me);let nt=E.get(Le);nt!=null?((n||!W(q,Y,J,nt,me))&&(L.set(Le,me),S.set(Le,me)),E.delete(Le)):we&&(L.delete(Le),_.set(Le,me))}let he={changed:E.size>0||L.size>0||_.size>0,added:new Set(E.keys()),updated:new Set(L.keys()),removed:new Set(_.keys()),moved:new Set(S.keys())};return et(pe({},h),{[e]:he})}}}function ie(e,...t){let n;return ho(e)?n=e.map(h=>L0(h)).join("___"):n=L0(e),(typeof n=="string"||typeof n=="number"||typeof n=="boolean"||n instanceof Date)&&t.length>0&&(n+=`___${t.join("___")}`),n}var ue,De,_e,Be,Qe,st,Ct=M({"packages/ag-charts-community/src/chart/data/processors.ts"(){"use strict";Tk(),zn(),Hn(),kv(),$S(),ac(),ue={type:"reducer",property:"smallestKeyInterval",initialValue:1/0,reducer:()=>{let e=NaN;return(t=1/0,n)=>{let a=n.keys[0],h=Math.abs(a-e);return e=a,!isNaN(h)&&h>0&&h<t?h:t}}},De={type:"reducer",property:"largestKeyInterval",initialValue:-1/0,reducer:()=>{let e=NaN;return(t=-1/0,n)=>{let a=n.keys[0],h=Math.abs(a-e);return e=a,!isNaN(h)&&h>0&&h>t?h:t}}},_e={type:"processor",property:"sortedGroupDomain",calculate:({domain:{groups:e}})=>e==null?void 0:e.slice().sort((t,n)=>{for(let a=0;a<t.length;a++){let h=t[a]-n[a];if(h!==0)return h}return 0})},Be=1,Qe=2,st=(e,t,n,a)=>{var E,L;let h=Be|Qe;if(t.valueType==="category")return n.length!==e&&(h&=~Be),h;let S=(E=a[0])==null?void 0:E.valueOf();for(let _=1;h!==0&&_<a.length;_++){let N=(L=a[_])==null?void 0:L.valueOf();(!Number.isFinite(N)||S>N)&&(h&=~Qe),Number.isFinite(N)&&S===N&&(h&=~Be),S=N}return h}}});function Ot(e){let t=e.reduce((a,h)=>a<h.length?h.length:a,0),n=new Ga;for(let a=0;a<e.length;a++){let h=e[a];for(;h.length<t;)h.push("");n.insertTick(h,a)}return n}function Pt(e,t,n){let a=t.index-e.index,h=n/a;t.change-=h,t.shift+=n,e.change+=h,t.prelim+=n,t.mod+=n}function Kt(e,t,n){return t.getSiblings().indexOf(e.ancestor)>=0?e.ancestor:n}function ti({children:e}){let t=0,n=0;for(let a=e.length-1;a>=0;a--){let h=e[a];h.prelim+=t,h.mod+=t,n+=h.change,t+=h.shift+n}}function Jt(e,t){let n=e.getLeftSibling();if(n){let a=e,h=e,S=n,E=h.getLeftmostSibling(),L=h.mod,_=a.mod,N=S.mod,V=E.mod;for(;S.nextRight()&&h.nextLeft();){S=S.nextRight(),h=h.nextLeft(),E=E.nextLeft(),a=a.nextRight(),a.ancestor=e;let q=S.prelim+N-(h.prelim+L)+1;q>0&&(Pt(Kt(S,e,t),e,q),L+=q,_+=q),N+=S.mod,L+=h.mod,V+=E.mod,_+=a.mod}S.nextRight()&&!a.nextRight()?a.mod+=N-_:(h.nextLeft()&&!E.nextLeft()&&(E.mod+=L-V),t=e)}return t}function ai(e){let{children:t}=e;if(t.length){let[n]=t;for(let S of t)ai(S),n=Jt(S,n);ti(e);let a=(t[0].prelim+t.at(-1).prelim)/2,h=e.getLeftSibling();h?(e.prelim=h.prelim+1,e.mod=e.prelim-a):e.prelim=a}else{let n=e.getLeftSibling();e.prelim=n?n.prelim+1:0}}function Mi(e,t,n){e.x=e.prelim+t,e.y=e.depth,n.insertNode(e);for(let a of e.children)Mi(a,t+e.mod,n)}function qi(e){let{children:t}=e,n=0;for(let a of t)qi(a),a.children.length?n+=a.leafCount:n++;e.leafCount=n,t.length?(e.subtreeLeft=t[0].subtreeLeft,e.subtreeRight=t[t.length-1].subtreeRight,e.x=(e.subtreeLeft+e.subtreeRight)/2):(e.subtreeLeft=e.x,e.subtreeRight=e.x)}function Fn(e){let t=new ba,n=Ot(e);return ai(n),Mi(n,-n.prelim,t),qi(n),t}var Xn,Ga,ba,Qa=M({"packages/ag-charts-community/src/chart/axis/tree.ts"(){"use strict";Xn=class{constructor(){this.top=1/0,this.right=-1/0,this.bottom=-1/0,this.left=1/0}update(e,t){e>this.right&&(this.right=e),e<this.left&&(this.left=e),t>this.bottom&&(this.bottom=t),t<this.top&&(this.top=t)}},Ga=class NZ{constructor(t="",n,a){this.label=t,this.parent=n,this.refId=a,this.x=0,this.y=0,this.subtreeLeft=NaN,this.subtreeRight=NaN,this.children=[],this.leafCount=0,this.prelim=0,this.mod=0,this.ancestor=this,this.change=0,this.shift=0,this.index=0,this.screenX=0,this.screenY=0,this.depth=n?n.depth+1:0}insertTick(t,n){let a=this;for(let h=0;h<t.length;h++){let S=t[h],E=h!==t.length-1,{children:L}=a,_=L.find(N=>N.label===S);if(_&&E)a=_;else{let N=new NZ(S,a,n);N.index=L.length,L.push(N),E&&(a=N)}}}getLeftSibling(){var t;return this.index>0?(t=this.parent)==null?void 0:t.children[this.index-1]:void 0}getLeftmostSibling(){var t;return this.index>0?(t=this.parent)==null?void 0:t.children[0]:void 0}nextLeft(){return this.children[0]}nextRight(){return this.children.at(-1)}getSiblings(){var t,n;return(n=(t=this.parent)==null?void 0:t.children.filter((a,h)=>h!==this.index))!=null?n:[]}},ba=class{constructor(){this.dimensions=new Xn,this.nodes=[],this.depth=0}insertNode(e){this.depth<e.depth&&(this.depth=e.depth),this.dimensions.update(e.x,e.y),this.nodes.push(e)}scalingX(e,t){let n=1;if(e>0){let{left:a,right:h}=this.dimensions;n=e/(h-a)}return t&&(n*=-1),n}scalingY(e,t){let n=1;if(e>0){let{top:a,bottom:h}=this.dimensions;n=e/(h-a)}return t&&(n*=-1),n}}}}),gn,ja,Lr,Va,uc=M({"packages/ag-charts-community/src/chart/axis/groupedCategoryAxis.ts"(){"use strict";bu(),jn(),Pc(),Zl(),br(),ts(),cp(),zn(),ga(),QT(),pD(),cd(),Ki(),Ct(),jd(),Ym(),Qa(),gn=class extends _n{constructor(){super(...arguments),this.enabled=!0}},f([$e(Ji)],gn.prototype,"enabled",2),f([$e(Ji,{optional:!0})],gn.prototype,"avoidCollisions",2),f([$e(Ra,{optional:!0})],gn.prototype,"color",2),f([$e(mi,{optional:!0})],gn.prototype,"spacing",2),f([$e(id,{optional:!0})],gn.prototype,"fontStyle",2),f([$e(nd,{optional:!0})],gn.prototype,"fontWeight",2),f([$e(pa.restrict({min:1}),{optional:!0})],gn.prototype,"fontSize",2),f([$e(hi,{optional:!0})],gn.prototype,"fontFamily",2),ja=class extends _n{constructor(){super(...arguments),this.enabled=!0}},f([$e(Ji)],ja.prototype,"enabled",2),f([$e(mi,{optional:!0})],ja.prototype,"width",2),f([$e(Ra,{optional:!0})],ja.prototype,"stroke",2),Lr=class extends _n{constructor(){super(...arguments),this.label=new gn,this.tick=new ja}},f([$e(Yi)],Lr.prototype,"label",2),f([$e(Yi)],Lr.prototype,"tick",2),Va=class extends Iv{constructor(e){super(e),this.tickScale=new dr,this.depthOptions=new rg(Lr),this.includeInvisibleDomains=!0,this.tickScale.paddingInner=1,this.tickScale.paddingOuter=0}resizeTickTree(){if(!this.tickTreeLayout)return;let{nodes:e}=this.tickTreeLayout,{range:t,step:n,inset:a,bandwidth:h}=this.scale,S=Math.abs(t[1]-t[0])-n,E=this.tickTreeLayout.scalingX(S,t[0]>t[1]),L=a+h/2,_=0;for(let N of e){let V=N.x*E;_>V&&(_=V),N.screenX=V+L}for(let N of e)N.screenX-=_}getDepthOptionsMap(e){var h,S,E,L,_,N,V,q,Y;let t=[],{depthOptions:n,label:a}=this;for(let J=0;J<e;J++)t.push(((S=(h=n[J])==null?void 0:h.label.enabled)!=null?S:a.enabled)?{enabled:!0,spacing:(L=(E=n[J])==null?void 0:E.label.spacing)!=null?L:a.spacing,lineHeight:Bo.getLineHeight((V=(N=(_=n[J])==null?void 0:_.label.fontSize)!=null?N:a.fontSize)!=null?V:10),avoidCollisions:(Y=(q=n[J])==null?void 0:q.label.avoidCollisions)!=null?Y:a.avoidCollisions}:{enabled:!1,spacing:0,lineHeight:0,avoidCollisions:!1});return t}updateCategoryLabels(){this.computedLayout&&this.tickLabelGroupSelection.update(this.computedLayout.tickLabelLayout).each((e,t)=>e.setProperties(t))}updateAxisLine(){this.computedLayout&&(this.lineNode.visible=this.line.enabled,this.lineNode.stroke=this.line.stroke,this.lineNode.strokeWidth=this.line.width)}computeLayout(){var At;if(this.updateDirection(),this.updateScale(),this.updateRange(),this.resizeTickTree(),!((At=this.tickTreeLayout)!=null&&At.depth))return{bbox:Ui.zero,separatorLayout:[],tickLabelLayout:[]};let{step:e}=this.scale,{title:t,label:n,range:a,depthOptions:h}=this,{depth:S,nodes:E}=this.tickTreeLayout,L=Math.ceil(n.fontSize/e),_=za(this.rotation),N=this.position==="top"||this.position==="bottom",V=n.getSideFlag(),q=[],Y=new Map,J=new Du,{defaultRotation:re,configuredRotation:ce}=Hm({rotation:n.rotation,parallel:n.parallel,regularFlipRotation:da(_-Math.PI/2),parallelFlipRotation:da(_)}),he=re+ce,me=this.getDepthOptionsMap(S),we=(Rt,It)=>{var zt,Ut;let Dt=S-Rt.depth;if(!((zt=me[Dt])!=null&&zt.enabled)||It%L!==0||!Pd(Rt.screenX,a))return!1;let jt=this.formatTick(Rt.label,It-1),Nt=this.getLabelStyles({value:jt,depth:Dt},(Ut=h[Dt])==null?void 0:Ut.label);return J.setProperties(et(pe({},Nt),{text:jt,textAlign:"center",textBaseline:n.parallel?"hanging":"bottom",rotation:0,translationX:0,translationY:Rt.screenX})),!0},Me=0,be={};E.forEach((Rt,It)=>{var zt;let Dt=S-Rt.depth,jt=L1(Rt.label);if((zt=be[Dt])!=null||(be[Dt]=1),be[Dt]<jt&&(be[Dt]=jt),!(!we(Rt,It)||!J.getBBox())&&(Y.set(It,J.getBBox()),!Rt.leafCount)){J.rotation=he;let{width:Ut}=J.getBBox();Me<Ut&&(Me=Ut)}});let Le=Ux(),Fe=V*me[0].spacing,je=new Map,Xe=Rt=>{let It=Me;for(let Dt=1;Dt<=Rt;Dt++)It+=me[Dt].spacing,(n.mirrored||Dt!==Rt)&&(It+=be[Dt]*me[Dt].lineHeight);return It};E.forEach((Rt,It)=>{var Ut;if(It===0)return;let Dt=we(Rt,It),jt=!Rt.children.length,Nt=S-Rt.depth;if(Rt.parent){let Vt=jt?Rt.x:Rt.x-(Rt.leafCount-1)/2;if(!je.has(Vt)){let Wt=(Ut=this.depthOptions[Nt])==null?void 0:Ut.tick,ci=Me;for(let li=0;li<=Nt;li++)ci+=me[li].spacing,li!==0&&(ci+=be[li]*me[li].lineHeight);je.set(Vt,{tickSize:ci,tickStroke:Wt==null?void 0:Wt.stroke,tickWidth:(Wt==null?void 0:Wt.enabled)!==!1?Wt==null?void 0:Wt.width:0})}}if(!Dt)return;if(J.x=Fe,J.y=0,jt){let{width:Vt}=Y.get(It),Wt=pb(he);J.rotation=he,J.textAlign="end",J.textBaseline="middle",J.rotationCenterX=Fe-Vt/2,J.translationX=(me[Nt].spacing-Vt)/2*Wt*V,n.mirrored&&(J.translationX+=Vt)}else J.rotation=N?re:-Math.PI/2,J.rotationCenterX=Fe,J.translationX=V*Xe(Nt);if(me[Nt].avoidCollisions){let Vt=jt?e:Rt.leafCount*e;if(J.getBBox().height>Vt){Y.delete(It);return}}let{text:zt=""}=J;q.push({text:zt,visible:!0,range:this.scale.range,tickId:Le(zt),fill:J.fill,fontFamily:J.fontFamily,fontSize:J.fontSize,fontStyle:J.fontStyle,fontWeight:J.fontWeight,rotation:J.rotation,rotationCenterX:J.rotationCenterX,textAlign:J.textAlign,textBaseline:J.textBaseline,translationX:J.translationX,translationY:J.translationY,x:J.x,y:J.y}),Y.set(It,vr.toCanvas(J))});let{enabled:nt,stroke:lt,width:ot}=this.line;this.lineNode.datum={x:0,y1:a[0],y2:a[1]},this.lineNode.setProperties({stroke:lt,strokeWidth:nt?ot:0});let vt=[...je.values()];vt.push(vt[0]);let gt=[this.lineNode.getBBox(),new Ui(0,0,vt[0].tickSize*V,0)];t.enabled&&(this.updateTitle(!1,vt[0].tickSize),gt.push(t.caption.node.getBBox()));let bt=Ui.merge(pi(Y.values(),gt));return{bbox:this.getTransformBox(bt),separatorLayout:vt,tickLabelLayout:q}}update(){if(!this.computedLayout)return;let{tickScale:e,gridLine:t,gridLength:n}=this,{separatorLayout:a}=this.computedLayout,h=e.ticks().map((S,E)=>et(pe({},a[E]),{tick:S,tickId:ie(S,E),tickLabel:S.filter(Boolean).join(" - "),translationY:Math.round(e.convert(S))}));this.gridLineGroupSelection.update(t.enabled&&n?h:[]),this.tickLineGroupSelection.update(this.tick.enabled?h:[]),this.updatePosition(),this.updateCategoryLabels(),this.updateAxisLine(),this.updateGridLines(),this.updateTickLines(),this.updateTitle(),this.resetSelectionNodes()}calculateLayout(){let{separatorLayout:e,tickLabelLayout:t,bbox:n}=this.computeLayout();return this.computedLayout={separatorLayout:e,tickLabelLayout:t},{bbox:n,primaryTickCount:void 0}}onGridVisibilityChange(){this.gridLineGroupSelection.clear(),this.tickLabelGroupSelection.clear()}updateRange(){super.updateRange(),this.tickScale.range=this.scale.range}calculateDomain(){var h;let{direction:e}=this,t=this.boundSeries.filter(S=>S.visible).flatMap(S=>S.getDomain(e));this.setDomain((h=gp(t))!=null?h:cx(t));let n=this.dataDomain.domain.map(Uy);this.tickTreeLayout=Fn(n);let a=[];for(let S of this.tickTreeLayout.nodes)S.leafCount||S.refId==null||a.push(this.dataDomain.domain[S.refId]);this.scale.domain=CI(this.dataDomain.domain,a),this.tickScale.domain=n.concat([[""]])}updateGridLines(){if(!this.gridLength)return;let{width:e,style:t}=this.gridLine,n=this.gridLength*-this.label.getSideFlag();this.gridLineGroupSelection.each((a,h,S)=>{let{stroke:E,lineDash:L}=t[S%t.length],_=h.translationY;a.visible=this.inRange(_),a.x1=0,a.x2=n,a.y=_,a.stroke=E,a.strokeWidth=e,a.lineDash=L})}updateScale(e){super.updateScale(e),this.scale.paddingOuter=this.scale.paddingInner/2}},Va.className="GroupedCategoryAxis",Va.type="grouped-category",f([$e(Mx)],Va.prototype,"depthOptions",2)}});function Fk(e,t,n){let[a,h]=zs(e);a=PL(Math.floor(a),h,t);let S=ew(a,h,t),E=t-1;h=a+E*S;let L=n?[h,a]:[a,h],_=JS(a,S,t);return{domain:L,ticks:_}}function PL(e,t,n){let a=Math.abs(t-e)/(n-1),h=Math.floor(Math.log10(a)),S=Math.pow(10,h);return Math.floor(e/S)*S}function JS(e,t,n){let a=Math.floor(Math.log10(t)),h=t>0&&t<1?Math.abs(a):0,S=Math.pow(10,h),E=[];for(let L=0;L<n;L++){let _=e+t*L;E[L]=Math.round(_*S)/S}return E}function ew(e,t,n){let a=n-1,h=(t-e)/a;return sC(h)}function sC(e){let t=Math.floor(Math.log10(e)),n=Math.pow(10,t),a=e/n*10;return a>0&&a<=1?n/10:a>1&&a<=2?2*n/10:a>1&&a<=5?5*n/10:a>5&&a<=10?10*n/10:a>10&&a<=20?20*n/10:a>20&&a<=40?40*n/10:a>40&&a<=50?50*n/10:a>50&&a<=100?100*n/10:a}var ju=M({"packages/ag-charts-community/src/util/secondaryAxisTicks.ts"(){"use strict";zn()}}),Sd,Zp=M({"packages/ag-charts-community/src/scale/linearScale.ts"(){"use strict";wu(),Gs(),Sd=class extends go{constructor(){super([0,1],[0,1]),this.type="number"}toDomain(e){return e}ticks(){var a;let e=(a=this.tickCount)!=null?a:go.defaultTickCount;if(!this.domain||this.domain.length<2||e<1||!this.domain.every(isFinite))return[];this.refresh();let[t,n]=this.getDomain();if(this.interval){let h=Math.abs(this.interval);if(!Nm((n-t)/h,this.getPixelRange()))return v0(t,n,h)}return Fd(t,n,e,this.minTickCount,this.maxTickCount)}update(){!this.domain||this.domain.length<2||this.nice&&this.updateNiceDomain()}getTickStep(e,t){var n;return(n=this.interval)!=null?n:Nd(e,t,this.tickCount,this.minTickCount,this.maxTickCount)}updateNiceDomain(){let e=this.tickCount,[t,n]=this.domain;if(e===1)[t,n]=_P(t,n);else if(e>1){let a=t>n?Math.ceil:Math.floor,h=t>n?Math.floor:Math.ceil,S=4;for(let E=0;E<S;E++){let L=t,_=n,N=this.getTickStep(t,n),[V,q]=this.domain;if(t=a(V/N)*N,n=h(q/N)*N,t===L&&n===_)break}}this.niceDomain=[t,n]}tickFormat({ticks:e,specifier:t}){return iD(e!=null?e:this.ticks(),t)}}}}),Or,Vu=M({"packages/ag-charts-community/src/chart/axis/numberAxis.ts"(){"use strict";Zp(),ts(),Sb(),ju(),Ki(),Ev(),Or=class extends Ap{constructor(e,t=new Sd){super(e,t),this.min=NaN,this.max=NaN}normaliseDataDomain(e){let{min:t,max:n}=this,{extent:a,clipped:h}=lx(e,t,n);return{domain:a,clipped:h}}updateSecondaryAxisTicks(e){var a;if(!((a=this.dataDomain)!=null&&a.domain.length))return[];let{domain:t,ticks:n}=Fk(this.dataDomain.domain,e!=null?e:0,this.reverse);return this.scale.nice=!1,this.scale.domain=t,this.scale.update(),n}},Or.className="NumberAxis",Or.type="number",f([$e(bl(ns,dv("max"))),Um(NaN)],Or.prototype,"min",2),f([$e(bl(ns,po("min"))),Um(NaN)],Or.prototype,"max",2)}}),lC,jc,iy=M({"packages/ag-charts-community/src/chart/axis/logAxis.ts"(){"use strict";Ws(),ts(),Sb(),Rn(),ju(),Hn(),Ki(),Vu(),lC=Ka(e=>Vn(e)&&e!==0,"a non-zero number"),jc=class extends Or{constructor(e){super(e,new Cl),this.min=NaN,this.max=NaN}normaliseDataDomain(e){let{min:t,max:n}=this,{extent:a,clipped:h}=lx(e,t,n);return a[0]<0&&a[1]>0?(Di.warn("The log axis domain crosses zero, the chart data cannot be rendered. See log axis documentation for more information."),{domain:[],clipped:h}):a[0]===0||a[1]===0?(Di.warn("The log axis domain contains a value of 0, the chart data cannot be rendered. See log axis documentation for more information."),{domain:[],clipped:h}):{domain:a,clipped:h}}set base(e){this.scale.base=e}get base(){return this.scale.base}updateSecondaryAxisTicks(e){var a;if(!((a=this.dataDomain)!=null&&a.domain.length))return[];let{domain:t,ticks:n}=Fk(this.dataDomain.domain,e!=null?e:0,this.reverse);return this.scale.nice=!1,this.scale.domain=t,this.scale.update(),n}},jc.className="LogAxis",jc.type="log",f([$e(bl(ns,lC,dv("max"))),Um(NaN)],jc.prototype,"min",2),f([$e(bl(ns,lC,po("min"))),Um(NaN)],jc.prototype,"max",2)}}),ny,FO=M({"packages/ag-charts-community/src/chart/axis/timeAxis.ts"(){"use strict";rb(),ts(),ju(),Ki(),Ev(),ny=class extends Ap{constructor(e){super(e,new mv),this.min=void 0,this.max=void 0}normaliseDataDomain(e){var h,S;let{min:t,max:n}=this,a=!1;return typeof t=="number"&&(t=new Date(t)),typeof n=="number"&&(n=new Date(n)),e.length>2&&(e=(S=(h=gp(e))==null?void 0:h.map(E=>new Date(E)))!=null?S:[]),t instanceof Date&&(a||(a=t>e[0]),e=[t,e[1]]),n instanceof Date&&(a||(a=n<e[1]),e=[e[0],n]),e[0]>e[1]&&(e=[]),{domain:e,clipped:a}}onFormatChange(e,t,n,a){a?super.onFormatChange(e,t,n,a):(this.labelFormatter=this.scale.tickFormat({ticks:e,domain:n}),this.datumFormatter=this.scale.tickFormat({ticks:e,domain:n,formatOffset:1}))}updateSecondaryAxisTicks(e){var a;if(!((a=this.dataDomain)!=null&&a.domain.length))return[];let{domain:t,ticks:n}=Fk(this.dataDomain.domain.map(Number),e!=null?e:0,this.reverse);return this.scale.nice=!1,this.scale.domain=t.map(h=>new Date(h)),this.scale.update(),n}},ny.className="TimeAxis",ny.type="time",f([$e(bl(Yl,dv("max")),{optional:!0})],ny.prototype,"min",2),f([$e(bl(Yl,po("min")),{optional:!0})],ny.prototype,"max",2)}}),tw,NO=M({"packages/ag-charts-community/src/scene/util/corner.ts"(){"use strict";tw=(e,{x0:t,y0:n,x1:a,y1:h,cx:S,cy:E},L,_)=>{if(_&&e.moveTo(t,n),t!==a||n!==h){let N=Math.atan2(n-E,t-S),V=Math.atan2(h-E,a-S);e.arc(S,E,L,N,V)}else e.lineTo(t,n)}}}),Hu,Vh,cC,Co,$p=M({"packages/ag-charts-community/src/scene/shape/rect.ts"(){"use strict";jn(),Fu(),NO(),lc(),os(),Hu=1e-6,Vh=(e,t,n,a,h)=>{let S=!1,E=!1,L=a-Math.sqrt(Math.max(h**2-n**2,0)),_=0,N=0,V=n-Math.sqrt(Math.max(h**2-a**2,0));return L>e?(S=!0,L=e,_=n-Math.sqrt(Math.max(h**2-(a-e)**2))):L<Hu&&(L=0),V>t?(E=!0,N=a-Math.sqrt(Math.max(h**2-(n-t)**2)),V=t):V<Hu&&(V=0),{leading0:L,leading1:_,trailing0:N,trailing1:V,leadingClipped:S,trailingClipped:E}},cC=(e,t,n,a,h,S,E)=>{let{topLeft:L,topRight:_,bottomRight:N,bottomLeft:V}=S,q=Math.max(L+V,_+N),Y=Math.max(L+_,V+N);if(q<=0&&Y<=0){E==null?e.rect(t,n,a,h):e.rect(E.x,E.y,E.width,E.height);return}else if(E==null&&L===_&&L===N&&L===V){e.roundRect(t,n,a,h,L);return}if(a<0&&(t+=a,a=Math.abs(a)),h<0&&(n+=h,h=Math.abs(h)),a<=0||h<=0)return;if(E==null)E=new Ui(t,n,a,h);else{let je=Math.max(t,E.x),Xe=Math.min(t+a,E.x+E.width),nt=Math.max(n,E.y),lt=Math.min(n+h,E.y+E.height);E=new Ui(je,nt,Xe-je,lt-nt)}let J=Math.max(q/h,Y/a,1);J>1&&(L/=J,_/=J,N/=J,V/=J);let re=!0,ce=!0,he=!0,me=!0,we,Me,be,Le;if(re){let je=Vh(E.height,E.width,Math.max(t+L-E.x,0),Math.max(n+L-E.y,0),L);je.leadingClipped&&(me=!1),je.trailingClipped&&(ce=!1);let Xe=Math.max(E.x+je.leading1,E.x),nt=Math.max(E.y+je.leading0,E.y),lt=Math.max(E.x+je.trailing1,E.x),ot=Math.max(E.y+je.trailing0,E.y),vt=t+L,gt=n+L;we={x0:Xe,y0:nt,x1:lt,y1:ot,cx:vt,cy:gt}}if(ce){let je=Vh(E.width,E.height,Math.max(n+_-E.y,0),Math.max(E.x+E.width-(t+a-_),0),_);je.leadingClipped&&(re=!1),je.trailingClipped&&(he=!1);let Xe=Math.min(E.x+E.width-je.leading0,E.x+E.width),nt=Math.max(E.y+je.leading1,E.y),lt=Math.min(E.x+E.width-je.trailing0,E.x+E.width),ot=Math.max(E.y+je.trailing1,E.y),vt=t+a-_,gt=n+_;Me={x0:Xe,y0:nt,x1:lt,y1:ot,cx:vt,cy:gt}}if(he){let je=Vh(E.height,E.width,Math.max(E.x+E.width-(t+a-N),0),Math.max(E.y+E.height-(n+h-N),0),N);je.leadingClipped&&(ce=!1),je.trailingClipped&&(me=!1);let Xe=Math.min(E.x+E.width-je.leading1,E.x+E.width),nt=Math.min(E.y+E.height-je.leading0,E.y+E.height),lt=Math.min(E.x+E.width-je.trailing1,E.x+E.width),ot=Math.min(E.y+E.height-je.trailing0,E.y+E.height),vt=t+a-N,gt=n+h-N;be={x0:Xe,y0:nt,x1:lt,y1:ot,cx:vt,cy:gt}}if(me){let je=Vh(E.width,E.height,Math.max(E.y+E.height-(n+h-V),0),Math.max(t+V-E.x,0),V);je.leadingClipped&&(he=!1),je.trailingClipped&&(re=!1);let Xe=Math.max(E.x+je.leading0,E.x),nt=Math.min(E.y+E.height-je.leading1,E.y+E.height),lt=Math.max(E.x+je.trailing0,E.x),ot=Math.min(E.y+E.height-je.trailing1,E.y+E.height),vt=t+V,gt=n+h-V;Le={x0:Xe,y0:nt,x1:lt,y1:ot,cx:vt,cy:gt}}let Fe=!1;re&&we!=null&&(tw(e,we,L,!Fe),Fe||(Fe=!0)),ce&&Me!=null&&(tw(e,Me,_,!Fe),Fe||(Fe=!0)),he&&be!=null&&(tw(e,be,N,!Fe),Fe||(Fe=!0)),me&&Le!=null&&tw(e,Le,V,!Fe),e.closePath()},Co=class extends qr{constructor(){super(...arguments),this.borderPath=new Zv,this.x=0,this.y=0,this.width=10,this.height=10,this.topLeftCornerRadius=0,this.topRightCornerRadius=0,this.bottomRightCornerRadius=0,this.bottomLeftCornerRadius=0,this.clipBBox=void 0,this.crisp=!1,this.lastUpdatePathStrokeWidth=Us.defaultStyles.strokeWidth,this.effectiveStrokeWidth=Us.defaultStyles.strokeWidth,this.hittester=super.isPointInPath.bind(this),this.distanceCalculator=super.distanceSquaredTransformedPoint.bind(this),this.microPixelEffectOpacity=1}set cornerRadius(e){this.topLeftCornerRadius=e,this.topRightCornerRadius=e,this.bottomRightCornerRadius=e,this.bottomLeftCornerRadius=e}isDirtyPath(){return this.lastUpdatePathStrokeWidth!==this.strokeWidth||!!(this.path.isDirty()||this.borderPath.isDirty())}updatePath(){var he,me,we;let{path:e,borderPath:t,crisp:n,topLeftCornerRadius:a,topRightCornerRadius:h,bottomRightCornerRadius:S,bottomLeftCornerRadius:E}=this,{x:L,y:_,width:N,height:V,strokeWidth:q,clipBBox:Y}=this,re=1/((me=(he=this.layerManager)==null?void 0:he.canvas.pixelRatio)!=null?me:1),ce=1;if(e.clear(!0),t.clear(!0),n&&(N<=re&&(ce*=N/re),V<=re&&(ce*=V/re),N=this.align(L,N),V=this.align(_,V),L=this.align(L),_=this.align(_),Y=Y!=null?new Ui(this.align(Y.x),this.align(Y.y),this.align(Y.x,Y.width),this.align(Y.y,Y.height)):void 0),q)if(N<re){let Me=L+re/2;t.moveTo(Me,_),t.lineTo(Me,_+V),q=re,this.borderClipPath=void 0}else if(V<re){let Me=_+re/2;t.moveTo(L,Me),t.lineTo(L+N,Me),q=re,this.borderClipPath=void 0}else if(q<N&&q<V){let Me=q/2;L+=Me,_+=Me,N-=q,V-=q;let be=Y==null?void 0:Y.clone().shrink(Me),Le={topLeft:a>0?a-q:0,topRight:h>0?h-q:0,bottomRight:S>0?S-q:0,bottomLeft:E>0?E-q:0};this.borderClipPath=void 0,N>0&&V>0&&(be==null||(be==null?void 0:be.width)>0&&(be==null?void 0:be.height)>0)&&(cC(e,L,_,N,V,Le,be),cC(t,L,_,N,V,Le,be))}else this.borderClipPath=(we=this.borderClipPath)!=null?we:new Zv,this.borderClipPath.clear(!0),this.borderClipPath.rect(L,_,N,V),t.rect(L,_,N,V);else{let Me={topLeft:a,topRight:h,bottomRight:S,bottomLeft:E};this.borderClipPath=void 0,cC(e,L,_,N,V,Me,Y)}if([a,h,S,E].every(Me=>Me===0)){let Me=this.getBBox();this.hittester=Me.containsPoint.bind(Me),this.distanceSquared=(be,Le)=>this.getBBox().distanceSquared(be,Le)}else this.hittester=super.isPointInPath,this.distanceCalculator=super.distanceSquaredTransformedPoint;this.effectiveStrokeWidth=q,this.lastUpdatePathStrokeWidth=q,this.microPixelEffectOpacity=ce}computeBBox(){var S;let{x:e,y:t,width:n,height:a,clipBBox:h}=this;return(S=h==null?void 0:h.clone())!=null?S:new Ui(e,t,n,a)}isPointInPath(e,t){return this.hittester(e,t)}get midPoint(){return{x:this.x+this.width/2,y:this.y+this.height/2}}distanceSquared(e,t){return this.distanceCalculator(e,t)}applyFillAlpha(e){let{fillOpacity:t,microPixelEffectOpacity:n,opacity:a}=this;e.globalAlpha*=a*t*n}renderStroke(e){let{stroke:t,effectiveStrokeWidth:n}=this;if(t&&n){let{globalAlpha:a}=e,{strokeOpacity:h,lineDash:S,lineDashOffset:E,lineCap:L,lineJoin:_,borderPath:N,borderClipPath:V,opacity:q,microPixelEffectOpacity:Y}=this;V&&e.clip(V.getPath2D()),this.applyStroke(e),e.globalAlpha*=q*h*Y,e.lineWidth=n,S&&e.setLineDash(S),E&&(e.lineDashOffset=E),L&&(e.lineCap=L),_&&(e.lineJoin=_),e.stroke(N.getPath2D()),e.globalAlpha=a}}},Co.className="Rect",f([mn()],Co.prototype,"x",2),f([mn()],Co.prototype,"y",2),f([mn()],Co.prototype,"width",2),f([mn()],Co.prototype,"height",2),f([mn()],Co.prototype,"topLeftCornerRadius",2),f([mn()],Co.prototype,"topRightCornerRadius",2),f([mn()],Co.prototype,"bottomRightCornerRadius",2),f([mn()],Co.prototype,"bottomLeftCornerRadius",2),f([mn()],Co.prototype,"clipBBox",2),f([mn()],Co.prototype,"crisp",2)}}),zg,Hh=M({"packages/ag-charts-community/src/chart/background/background.ts"(){"use strict";Lh(),$o(),$p(),Pc(),Oc(),Ki(),Wm(),zg=class extends q0{constructor(e){super(),this.ctx=e,this.rectNode=new Co,this.textNode=new or,this.fill="white",this.node=this.createNode(),this.node.append([this.rectNode,this.textNode]),this.visible=!0,this.destroyFns.push(e.scene.attachNode(this.node),e.layoutManager.addListener("layout:complete",t=>this.onLayoutComplete(t)))}createNode(){return new hn({name:"background",zIndex:0})}onLayoutComplete(e){let{width:t,height:n}=e.chart;this.rectNode.width=t,this.rectNode.height=n}},f([$e(Ji),ws("node","visible")],zg.prototype,"visible",2),f([$e(Ra,{optional:!0}),ws("rectNode","fill")],zg.prototype,"fill",2),f([$e(Yi,{optional:!0})],zg.prototype,"image",2),f([$e(hi,{optional:!0}),ws("textNode")],zg.prototype,"text",2)}}),ay,zO=M({"packages/ag-charts-community/src/chart/background/backgroundModule.ts"(){"use strict";Hh(),ay={type:"root",optionsKey:"background",packageType:"community",chartTypes:["cartesian","polar","hierarchy","topology","flow-proportion","standalone","gauge"],moduleFactory:e=>new zg(e)}}});function Bg({orientation:e,bboxes:t,maxHeight:n,maxWidth:a,itemPaddingY:h=0,itemPaddingX:S=0,forceResult:E=!1}){let L=e==="horizontal",_={max:L?a:n,fn:L?Y=>Y.width:Y=>Y.height,padding:L?S:h},N={max:L?n:a,fn:L?Y=>Y.height:Y=>Y.width,padding:L?h:S},V=0,q=[];for(;V<t.length;){let Y=t.slice(V),J=iw(Y,V,_,N,E);if(!J)return;V+=J.processedBBoxCount,q.push(J.pageIndices)}return eu(q,e,t,h,S)}function iw(e,t,n,a,h){let E=Wz(e,n);if(E<1){if(!h)return;E=1}let L=E;for(;L>=1;){let _=Hz(e,t,L,n,a,h);if(_==null&&L<=1)return;if(_==null){L--;continue}if(typeof _=="number"){if(_<=1)return;L=_<L&&_>1?_:L,L--;continue}return{processedBBoxCount:_.length*_[0].length,pageIndices:_}}}function Hz(e,t,n,a,h,S){var q;let E=[],L=0,_=0,N=[],V=[];for(let Y=0;Y<e.length;Y++){let J=(Y+n)%n;J===0&&(L+=_,_=0,N.length>0&&E.push(N),N=[]);let re=a.fn(e[Y])+a.padding;V[J]=Math.max((q=V[J])!=null?q:0,re),_=Math.max(_,h.fn(e[Y])+h.padding);let ce=L+_,he=!S||E.length>0;if(ce>h.max&&he){N=[];break}if(V.reduce((we,Me)=>we+Me,0)>a.max&&!S)return V.length<n?V.length:void 0;N.push(Y+t)}return N.length>0&&E.push(N),E.length>0?E:void 0}function eu(e,t,n,a,h){let S=0,E=0;return{pages:e.map(_=>{t==="horizontal"&&(_=nw(_));let N=0,V=_.map(J=>{let re=J.map(me=>(N=Math.max(me,N),n[me])),ce=0,he=0;return re.forEach(me=>{ce+=me.height+a,he=Math.max(he,me.width+h)}),{indices:J,bboxes:re,columnHeight:Math.ceil(ce),columnWidth:Math.ceil(he)}}),q=0,Y=0;return V.forEach(J=>{q+=J.columnWidth,Y=Math.max(Y,J.columnHeight)}),S=Math.max(q,S),E=Math.max(Y,E),{columns:V,startIndex:_[0][0],endIndex:N,pageWidth:q,pageHeight:Y}}),maxPageWidth:S,maxPageHeight:E}}function nw(e){let t=[];for(let n of e[0])t.push([]);return e.forEach((n,a)=>{n.forEach((h,S)=>{t[S][a]=h})}),t}function Wz(e,t){let n=e.length,a=0;for(let h=0;h<n;h++)if(a+=t.fn(e[h])+t.padding,a>t.max)return n/h<2?Math.ceil(n/2):h;return n}var tu=M({"packages/ag-charts-community/src/chart/gridLayout.ts"(){"use strict"}}),Wh,Rf,Cr,Wu,Uz=M({"packages/ag-charts-community/src/chart/pagination/pagination.ts"(){"use strict";$o(),Pc(),Zl(),Ac(),zn(),ga(),Oc(),Ki(),Yd(),zS(),Nu(),Wh=class extends _n{constructor(){super(...arguments),this.color="black",this.fontStyle=void 0,this.fontWeight=void 0,this.fontSize=12,this.fontFamily="Verdana, sans-serif"}},f([$e(Ra)],Wh.prototype,"color",2),f([$e(id,{optional:!0})],Wh.prototype,"fontStyle",2),f([$e(nd,{optional:!0})],Wh.prototype,"fontWeight",2),f([$e(mi)],Wh.prototype,"fontSize",2),f([$e(hi)],Wh.prototype,"fontFamily",2),Rf=class extends _n{constructor(){super(...arguments),this.size=15,this.fill=void 0,this.fillOpacity=void 0,this.stroke=void 0,this.strokeWidth=1,this.strokeOpacity=1}},f([$e(mi)],Rf.prototype,"size",2),f([$e(Ra,{optional:!0})],Rf.prototype,"fill",2),f([$e(Wn,{optional:!0})],Rf.prototype,"fillOpacity",2),f([$e(Ra,{optional:!0})],Rf.prototype,"stroke",2),f([$e(mi)],Rf.prototype,"strokeWidth",2),f([$e(Wn)],Rf.prototype,"strokeOpacity",2),Cr=class extends _n{constructor(e){super(),this.parent=e,this.shape="triangle",this.size=15,this.padding=8}},f([Ys({changeValue(){this.parent.marker===this&&this.parent.onMarkerShapeChange()}})],Cr.prototype,"shape",2),f([$e(mi)],Cr.prototype,"size",2),f([$e(mi)],Cr.prototype,"padding",2),Wu=class extends _n{constructor(e,t){super(),this.chartUpdateCallback=e,this.pageUpdateCallback=t,this.id=dl(this),this.marker=new Cr(this),this.activeStyle=new Rf,this.inactiveStyle=new Rf,this.highlightStyle=new Rf,this.label=new Wh,this.group=new qa({name:"pagination"}),this.labelNode=new or,this.destroyFns=[],this.totalPages=0,this.currentPage=0,this.translationX=0,this.translationY=0,this.nextButtonDisabled=!1,this.previousButtonDisabled=!1,this._visible=!0,this._enabled=!0,this._orientation="vertical",this._nextButton=new xf,this._previousButton=new xf,this.labelNode.setProperties({textBaseline:"middle",fontSize:12,fontFamily:"Verdana, sans-serif",fill:"black",y:1}),this.group.append([this.nextButton,this.previousButton,this.labelNode]),this.update(),this.updateMarkers()}destroy(){this.destroyFns.forEach(e=>e())}set visible(e){this._visible=e,this.updateGroupVisibility()}get visible(){return this._visible}set enabled(e){this._enabled=e,this.updateGroupVisibility()}get enabled(){return this._enabled}updateGroupVisibility(){this.group.visible=this.enabled&&this.visible}set orientation(e){switch(this._orientation=e,e){case"horizontal":{this.previousButton.rotation=-Math.PI/2,this.nextButton.rotation=Math.PI/2;break}case"vertical":default:this.previousButton.rotation=0,this.nextButton.rotation=Math.PI}}get orientation(){return this._orientation}set nextButton(e){this._nextButton!==e&&(this.group.removeChild(this._nextButton),this._nextButton=e,this.group.appendChild(e))}get nextButton(){return this._nextButton}set previousButton(e){this._previousButton!==e&&(this.group.removeChild(this._previousButton),this._previousButton=e,this.group.appendChild(e))}get previousButton(){return this._previousButton}update(){this.updateLabel(),this.updatePositions(),this.enableOrDisableButtons()}updatePositions(){this.group.translationX=this.translationX,this.group.translationY=this.translationY,this.updateLabelPosition(),this.updateNextButtonPosition()}updateLabelPosition(){let{size:e,padding:t}=this.marker;this.nextButton.size=e,this.previousButton.size=e,this.labelNode.x=e/2+t}updateNextButtonPosition(){let e=this.labelNode.getBBox();this.nextButton.translationX=e.width+(this.marker.size/2+this.marker.padding)*2}updateLabel(){let{currentPage:e,totalPages:t,labelNode:n,label:{color:a,fontStyle:h,fontWeight:S,fontSize:E,fontFamily:L}}=this;n.text=`${e+1} / ${t}`,n.fill=a,n.fontStyle=h,n.fontWeight=S,n.fontSize=E,n.fontFamily=L}updateMarkers(){let{nextButton:e,previousButton:t,nextButtonDisabled:n,previousButtonDisabled:a,activeStyle:h,inactiveStyle:S,highlightStyle:E,highlightActive:L}=this,_=(N,V)=>V?S:N===L?E:h;this.updateMarker(e,_("next",n)),this.updateMarker(t,_("previous",a))}updateMarker(e,t){var a;let{size:n}=this.marker;e.size=n,e.fill=t.fill,e.fillOpacity=(a=t.fillOpacity)!=null?a:1,e.stroke=t.stroke,e.strokeWidth=t.strokeWidth,e.strokeOpacity=t.strokeOpacity}enableOrDisableButtons(){let{currentPage:e,totalPages:t}=this,n=t===0,a=e===t-1,h=e===0;this.nextButtonDisabled=a||n,this.previousButtonDisabled=h||n}setPage(e){e=Gn(0,e,Math.max(0,this.totalPages-1)),this.currentPage!==e&&(this.currentPage=e,this.onPaginationChanged())}getCursor(e){return{previous:this.previousButtonDisabled,next:this.nextButtonDisabled}[e]?void 0:"pointer"}onClick(e,t){e.preventDefault(),t==="next"&&!this.nextButtonDisabled?(this.incrementPage(),this.onPaginationChanged()):t==="previous"&&!this.previousButtonDisabled&&(this.decrementPage(),this.onPaginationChanged())}onMouseHover(e){this.highlightActive=e,this.updateMarkers(),this.chartUpdateCallback(6)}onPaginationChanged(){this.pageUpdateCallback(this.currentPage)}incrementPage(){this.currentPage=Math.min(this.currentPage+1,this.totalPages-1)}decrementPage(){this.currentPage=Math.max(this.currentPage-1,0)}onMarkerShapeChange(){let e=Mu(La(this.marker.shape||xf));this.previousButton=new e,this.nextButton=new e,this.updatePositions(),this.updateMarkers(),this.chartUpdateCallback(6)}attachPagination(e){e.append(this.group)}getBBox(){return this.group.getBBox()}computeCSSBounds(){let e=vr.toCanvas(this.previousButton),t=vr.toCanvas(this.nextButton);return{prev:e,next:t}}},Wu.className="Pagination",f([$e(Yi)],Wu.prototype,"marker",2),f([$e(Yi)],Wu.prototype,"activeStyle",2),f([$e(Yi)],Wu.prototype,"inactiveStyle",2),f([$e(Yi)],Wu.prototype,"highlightStyle",2),f([$e(Yi)],Wu.prototype,"label",2)}}),cs,aw=M({"packages/ag-charts-community/src/chart/legend/legendDOMProxy.ts"(){"use strict";Zl(),oT(),oa(),cs=class{constructor(e,t){this.idPrefix=t,this.dirty=!0,this.destroyFns=new dd,this.itemList=e.proxyInteractionService.createProxyContainer({type:"list",domManagerId:`${t}-toolbar`,classList:["ag-charts-proxy-legend-toolbar"],ariaLabel:{id:"ariaLabelLegend"}}),this.paginationGroup=e.proxyInteractionService.createProxyContainer({type:"group",domManagerId:`${t}-pagination`,classList:["ag-charts-proxy-legend-pagination"],ariaLabel:{id:"ariaLabelLegendPagination"},ariaOrientation:"horizontal"}),this.itemDescription=va("p"),this.itemDescription.style.display="none",this.itemDescription.id=`${t}-ariaDescription`,this.itemDescription.textContent=this.getItemAriaDescription(e.localeManager),this.itemList.getElement().append(this.itemDescription)}destroy(){this.destroyFns.destroy()}initLegendList(e){if(!this.dirty)return;let{ctx:t,itemSelection:n,datumReader:a,itemListener:h}=e,S=t.localeManager,E=n.length;n.each((L,_,N)=>{var q;(q=L.proxyButton)==null||q.destroy(),L.proxyButton=t.proxyInteractionService.createProxyElement({type:"listswitch",id:`ag-charts-legend-item-${N}`,textContent:this.getItemAriaText(S,a.getItemLabel(_),N,E),ariaChecked:!!L.datum.enabled,ariaDescribedBy:this.itemDescription.id,parent:this.itemList});let V=L.proxyButton;V.addListener("click",Y=>h.onClick(Y.sourceEvent,L.datum,V)),V.addListener("dblclick",Y=>h.onDoubleClick(Y.sourceEvent,L.datum)),V.addListener("mouseenter",Y=>h.onHover(Y.sourceEvent,L)),V.addListener("mouseleave",()=>h.onLeave()),V.addListener("contextmenu",Y=>h.onContextClick(Y.sourceEvent,L)),V.addListener("blur",()=>h.onLeave()),V.addListener("focus",Y=>h.onHover(Y.sourceEvent,L))}),this.dirty=!1}update(e){this.updateVisibility(e.visible),e.visible&&(this.initLegendList(e),this.updateItemProxyButtons(e),this.updatePaginationProxyButtons(e))}updateVisibility(e){this.itemList.setHidden(!e),this.paginationGroup.setHidden(!e)}updateItemProxyButtons({itemSelection:e,group:t,pagination:n,interactive:a}){let h=vr.toCanvas(t);this.itemList.setBounds(h);let S=Math.max(...e.nodes().map(E=>E.getBBox().height));e.each((E,L)=>{if(E.proxyButton){let _=E.pageIndex===n.currentPage,{x:N,y:V,height:q,width:Y}=vr.toCanvas(E),J=(S-q)/2,re={x:N-h.x,y:V-J-h.y,height:S,width:Y};E.proxyButton.setCursor("pointer"),E.proxyButton.setEnabled(a&&_),E.proxyButton.setBounds(re)}})}updatePaginationProxyButtons(e){var N,V,q,Y,J,re;let{ctx:t,pagination:n,oldPages:a,newPages:h}=e;this.paginationGroup.setHidden(!n.visible);let S=((N=a==null?void 0:a.length)!=null?N:h.length)>1,E=h.length>1;S!==E&&(E?(this.prevButton=t.proxyInteractionService.createProxyElement({type:"button",id:`${this.idPrefix}-prev-page`,textContent:{id:"ariaLabelLegendPagePrevious"},tabIndex:0,parent:this.paginationGroup}),this.prevButton.addListener("click",ce=>n.onClick(ce.sourceEvent,"previous")),this.prevButton.addListener("mouseenter",()=>n.onMouseHover("previous")),this.prevButton.addListener("mouseleave",()=>n.onMouseHover(void 0)),(V=this.nextButton)!=null||(this.nextButton=t.proxyInteractionService.createProxyElement({type:"button",id:`${this.idPrefix}-next-page`,textContent:{id:"ariaLabelLegendPageNext"},tabIndex:0,parent:this.paginationGroup})),this.nextButton.addListener("click",ce=>n.onClick(ce.sourceEvent,"next")),this.nextButton.addListener("mouseenter",()=>n.onMouseHover("next")),this.nextButton.addListener("mouseleave",()=>n.onMouseHover(void 0))):((q=this.nextButton)==null||q.destroy(),(Y=this.prevButton)==null||Y.destroy(),this.nextButton=void 0,this.prevButton=void 0));let{prev:L,next:_}=n.computeCSSBounds();(J=this.prevButton)==null||J.setBounds(L),(re=this.nextButton)==null||re.setBounds(_),this.updatePaginationCursors(e)}updatePaginationCursors({pagination:e}){var t,n;(t=this.nextButton)==null||t.setCursor(e.getCursor("next")),(n=this.prevButton)==null||n.setCursor(e.getCursor("previous"))}onDataUpdate(e,t){this.dirty=e.length!==t.length||e.some((n,a,h)=>{let[S,E]=[t[a],e[a]];return S.id!==E.id})}onLocaleChanged(e,t,n){let a=t.length;t.each(({proxyButton:h},S,E)=>{let L=h==null?void 0:h.getElement();if(L!=null){let _=n.getItemLabel(S);L.textContent=this.getItemAriaText(e,_,E,a)}}),this.itemDescription.textContent=this.getItemAriaDescription(e)}onPageChange(e){this.updateItemProxyButtons(e),this.updatePaginationCursors(e)}getItemAriaText(e,t,n,a){return n>=0&&t?(n++,e.t("ariaLabelLegendItem",{label:t,index:n,count:a})):e.t("ariaLabelLegendItemUnknown")}getItemAriaDescription(e){return e.t("ariaDescriptionLegendItem")}}}});function BO(e,t,n,a){let h={defaultPrevented:!1,apiEvent:{type:e,itemId:t,seriesId:n,event:a,preventDefault:()=>h.defaultPrevented=!0}};return h}var wd=M({"packages/ag-charts-community/src/chart/legend/legendEvent.ts"(){"use strict"}}),iu,GO=M({"packages/ag-charts-community/src/scene/image.ts"(){"use strict";Wa(),iu=class extends Hl{constructor(e){super(),this.sourceImage=e,this.x=0,this.y=0,this.width=0,this.height=0,this.opacity=1}updateBitmap(e,t,n,a){this.sourceImage=e,this.width=e.width/t,this.height=e.height/t,this.x=n/t,this.y=a/t,this.markDirty()}render(e){let{ctx:t}=e,n=this.sourceImage;n&&(t.globalAlpha=this.opacity,t.drawImage(n,0,0,n.width,n.height,this.x,this.y,this.width,this.height)),super.render(e)}},f([Hi()],iu.prototype,"x",2),f([Hi()],iu.prototype,"y",2),f([Hi()],iu.prototype,"width",2),f([Hi()],iu.prototype,"height",2),f([Hi()],iu.prototype,"opacity",2)}}),_r,Pf=M({"packages/ag-charts-community/src/chart/legend/legendMarkerLabel.ts"(){"use strict";jn(),$o(),GO(),Pc(),Zl(),Oc(),Hn(),_r=class extends cg(hn){constructor(){super({name:"markerLabelGroup"}),this.label=new or,this.symbolsGroup=new hn({name:"legend-markerLabel-symbols"}),this.bitmap=new iu,this.bitmapDirty=!0,this.enabled=!0,this.pageIndex=NaN,this._marker=void 0,this._line=void 0;let{marker:e,label:t,line:n}=this;t.textBaseline="middle",t.fontSize=12,t.fontFamily="Verdana, sans-serif",t.fill="black",t.y=1,this.updateSymbols(e,n),this.append([this.symbolsGroup,t])}destroy(){var e;super.destroy(),(e=this.proxyButton)==null||e.destroy()}get marker(){return this._marker}get line(){return this._line}updateSymbols(e,t){this._marker===e&&this._line===t||(this.bitmapDirty=!0,this._marker=e,this._line=t,this.symbolsGroup.clear(),this.symbolsGroup.append([this.bitmap,t,e].filter(un)))}setEnabled(e){this.enabled=e,this.refreshVisibilities()}refreshVisibilities(){let e=this.enabled?1:.5;this.label.opacity=e,this.opacity=e,this.bitmap.opacity=e,this.setBitmapVisibility(!this.enabled)}setBitmapVisibility(e){let{line:t,marker:n}=this;n!=null&&(n.visible=!e),t!=null&&(t.visible=!e),this.bitmap.visible=e}update(e,{spriteAAPadding:t,spritePixelRatio:n},a){var be,Le,Fe;let{marker:h,line:S}=this,{length:E,spacing:L,isCustomMarker:_}=a,N=1/0,V=1/0,q=1/0,Y=1/0,J=1/0,re=0,ce=0;if(h){let{size:je}=h,Xe=h.constructor.center,nt=(je+h.strokeWidth)/2;re=(Xe.x-.5)*je,ce=(Xe.y-.5)*je,_?(h.x=0,h.y=0,h.translationX=re*je+E/2,h.translationY=ce*je,Y=h.translationY-nt,J=h.translationX-nt):(h.x=re+E/2,h.y=ce,Y=h.y-nt,J=h.x-nt)}S&&(S.x1=0,S.x2=E,S.y1=0,S.y2=0,S.markDirty(),N=-S.strokeWidth/2,V=S.x1,q=S.x2);let he=Math.min(V,q,J),me=Math.min(N,Y),we=(be=S==null?void 0:S.x2)!=null?be:-1/0,Me=((Le=h==null?void 0:h.x)!=null?Le:0)+((Fe=h==null?void 0:h.size)!=null?Fe:0)/2;if(this.label.x=Math.max(we,Me)+L,this.bitmapDirty){this.setBitmapVisibility(!1);let je=re+(t+he)*n,Xe=ce+(t-me)*n,nt=e.renderSprite(this.symbolsGroup,{scale:n,translateX:Math.floor(je),translateY:Math.floor(Xe)});this.bitmap.updateBitmap(nt,n,Math.ceil(-je),Math.ceil(-Xe)),this.bitmapDirty=!1,this.refreshVisibilities()}}computeBBox(){let{label:e,line:t,marker:n}=this;return this.toParent(hn.computeChildrenBBox([e,t,n].filter(un),!1))}},_r.className="MarkerLabel",f([ws("label")],_r.prototype,"text",2),f([ws("label")],_r.prototype,"fontStyle",2),f([ws("label")],_r.prototype,"fontWeight",2),f([ws("label")],_r.prototype,"fontSize",2),f([ws("label")],_r.prototype,"fontFamily",2),f([ws("label","fill")],_r.prototype,"color",2)}}),oy,Ds,Lf,ry,hc,Gg,iR,il,Kz=M({"packages/ag-charts-community/src/chart/legend/legend.ts"(){"use strict";jn(),$o(),as(),Gd(),pT(),Zl(),oa(),Ac(),Rn(),zn(),Ta(),ga(),Oc(),cd(),mD(),Ki(),Yd(),tu(),Mg(),Fc(),Nu(),Uz(),Il(),Wm(),aw(),wd(),Pf(),oy=class extends _n{constructor(){super(...arguments),this.maxLength=void 0,this.color="black",this.fontStyle=void 0,this.fontWeight=void 0,this.fontSize=12,this.fontFamily="Verdana, sans-serif"}},f([$e(mi,{optional:!0})],oy.prototype,"maxLength",2),f([$e(Ra)],oy.prototype,"color",2),f([$e(id,{optional:!0})],oy.prototype,"fontStyle",2),f([$e(nd,{optional:!0})],oy.prototype,"fontWeight",2),f([$e(mi)],oy.prototype,"fontSize",2),f([$e(hi)],oy.prototype,"fontFamily",2),f([$e(Kl,{optional:!0})],oy.prototype,"formatter",2),Ds=class extends _n{constructor(){super(...arguments),this.size=15,this.padding=8}},f([wv(e=>{var t;return(t=e.parent)==null?void 0:t.onMarkerShapeChange()})],Ds.prototype,"shape",2),f([$e(mi)],Ds.prototype,"size",2),f([$e(mi)],Ds.prototype,"padding",2),f([$e(mi,{optional:!0})],Ds.prototype,"strokeWidth",2),f([$e(Ji)],Ds.prototype,"enabled",2),Lf=class extends _n{},f([$e(mi,{optional:!0})],Lf.prototype,"strokeWidth",2),f([$e(mi,{optional:!0})],Lf.prototype,"length",2),ry=class extends _n{constructor(){super(...arguments),this.paddingX=16,this.paddingY=8,this.showSeriesStroke=!1,this.marker=new Ds,this.label=new oy,this.line=new Lf}},f([$e(mi,{optional:!0})],ry.prototype,"maxWidth",2),f([$e(mi)],ry.prototype,"paddingX",2),f([$e(mi)],ry.prototype,"paddingY",2),f([$e(Ji)],ry.prototype,"showSeriesStroke",2),f([$e(Yi)],ry.prototype,"marker",2),f([$e(Yi)],ry.prototype,"label",2),f([$e(Yi)],ry.prototype,"line",2),hc=class extends _n{},f([$e(Kl,{optional:!0})],hc.prototype,"legendItemClick",2),f([$e(Kl,{optional:!0})],hc.prototype,"legendItemDoubleClick",2),Gg="legend-visibility",iR="legend-other-series",il=class extends _n{constructor(e){super(),this.ctx=e,this.id=dl(this),this.group=new qa({name:"legend",zIndex:13}),this.itemSelection=Er.select(this.group,_r),this.spriteRenderer=void 0,this.oldSize=[0,0],this.pages=[],this.maxPageSize=[0,0],this.paginationTrackingIndex=0,this.truncatedItems=new Set,this._data=[],this._symbolsDirty=!0,this.toggleSeries=!0,this.item=new ry,this.listeners=new hc,this.enabled=!0,this.position="bottom",this.spacing=20,this.destroyFns=[],this.size=[0,0],this._visible=!0,this.item.marker.parent=this,this.pagination=new Wu(t=>e.updateService.update(t),t=>this.updatePageNumber(t)),this.pagination.attachPagination(this.group),this.destroyFns.push(e.contextMenuRegistry.registerDefaultAction({id:Gg,type:"legend",label:"contextMenuToggleSeriesVisibility",action:t=>this.contextToggleVisibility(t)}),e.contextMenuRegistry.registerDefaultAction({id:iR,type:"legend",label:"contextMenuToggleOtherSeries",action:t=>this.contextToggleOtherSeries(t)}),e.legendManager.addListener("legend-change",this.onLegendDataChange.bind(this))),this.destroyFns.push(e.layoutManager.registerElement(1,t=>this.positionLegend(t)),e.localeManager.addListener("locale-changed",()=>this.onLocaleChanged()),()=>this.group.remove()),this.domProxy=new cs(this.ctx,this.id),this.ctx.historyManager.addMementoOriginator(e.legendManager)}set data(e){this.domProxy.onDataUpdate(this._data,e),this._data=e,this._symbolsDirty=!0,this.updateGroupVisibility()}get data(){return this._data}onLegendDataChange({legendData:e=[]}){if(!this.enabled)return;let t=e.filter(a=>!a.hideInLegend),{data:n}=this;Ko(e,n)||(this.data=t)}destroy(){this.ctx.domManager.removeChild("canvas-overlay",`${this.id}-toolbar`),this.ctx.domManager.removeChild("canvas-overlay",`${this.id}-pagination`),this.destroyFns.forEach(e=>e()),this.pagination.destroy(),this.itemSelection.clear(),this.domProxy.destroy()}onMarkerShapeChange(){this.itemSelection.clear(),this.group.markDirty()}getOrientation(){if(this.orientation!==void 0)return this.orientation;switch(this.position){case"right":case"left":return"vertical";case"bottom":case"top":return"horizontal"}}set visible(e){this._visible=e,this.updateGroupVisibility()}get visible(){return this._visible}updateGroupVisibility(){this.group.visible=this.enabled&&this.visible&&this.data.length>0}attachLegend(e){e.appendChild(this.group)}getItemLabel(e){let{ctx:{callbackCache:t}}=this,{formatter:n}=this.item.label;if(n){let a=e.datum;return t.call(n,pe({itemId:e.itemId,value:e.label.text,seriesId:e.seriesId},a&&{datum:a}))}return e.label.text}calcLayout(e,t){var nt;let{paddingX:n,paddingY:a,label:h,maxWidth:S,label:{maxLength:E=1/0,fontStyle:L,fontWeight:_,fontSize:N,fontFamily:V}}=this.item,q=[...this.data];this.reverseOrder&&q.reverse(),this.itemSelection.update(q);let Y=[],J=Bo.toFontString(h),re=.8,ce=S!=null?S:e*re,he=this.calculateSpriteDimensions();if((nt=this.spriteRenderer)!=null||(this.spriteRenderer=new Fb),this.spriteRenderer.resize(he),this.itemSelection.each((lt,ot)=>{var Rt;lt.fontStyle=L,lt.fontWeight=_,lt.fontSize=N,lt.fontFamily=V;let vt=this.updateMarkerLabel(this.spriteRenderer,lt,ot,he),gt=(Rt=ot.itemId)!=null?Rt:ot.id,bt=this.getItemLabel(ot),At=(bt!=null?bt:"<unknown>").replace(/\r?\n/g," ");lt.text=this.truncate(At,E,ce,vt,J,gt),Y.push(lt.getBBox())}),this._symbolsDirty=!1,e=Math.max(1,e),t=Math.max(1,t),!isFinite(e))return{};let me=this.size,we=this.oldSize;me[0]=e,me[1]=t,(me[0]!==we[0]||me[1]!==we[1])&&(we[0]=me[0],we[1]=me[1]);let{pages:Me,maxPageHeight:be,maxPageWidth:Le}=this.updatePagination(Y,e,t),Fe=this.pages;this.pages=Me,this.maxPageSize=[Le-n,be-a];let je=this.pagination.currentPage,Xe=this.pages[je];return this.pages.length<1||!Xe?(this.visible=!1,{oldPages:Fe}):(this.visible=!0,this.updatePositions(je),this.update(),{oldPages:Fe})}isCustomMarker(e,t){return e&&t!==void 0&&typeof t!="string"}calcSymbolsEnabled(e){var E;let{showSeriesStroke:t,marker:n}=this.item,a=!!n.enabled||!t||((E=e.marker.enabled)!=null?E:!0),h=!!(e.line&&t),S=this.isCustomMarker(a,e.marker.shape);return{markerEnabled:a,lineEnabled:h,isCustomMarker:S}}calcSymbolsLengths(e){var q;let{marker:t,line:n}=this.item,{markerEnabled:a,lineEnabled:h}=this.calcSymbolsEnabled(e),{strokeWidth:S}=this.getMarkerStyles(e),{strokeWidth:E}=h?this.getLineStyles(e):{strokeWidth:0},L,{shape:_}=e.marker;if(this.isCustomMarker(a,_)){let Y=La(_),J=new Y;J.updatePath();let re=J.getBBox();L=Math.max(re.width,re.height)}let N=a?t.size:0,V=h?(q=n.length)!=null?q:25:0;return{markerLength:N,markerStrokeWidth:S,lineLength:V,lineStrokeWidth:E,customMarkerSize:L}}calculateSpriteDimensions(){let e=0,t=0,n=0,a=0;return this.itemSelection.each((S,E)=>{let{symbol:L}=E,{markerLength:_,markerStrokeWidth:N,lineLength:V,lineStrokeWidth:q,customMarkerSize:Y=-1/0}=this.calcSymbolsLengths(L),J=_+N;a=Math.max(a,V,Y,_),t=Math.max(t,V,Y,J),n=Math.max(n,q,J),e=Math.max(e,N+.5)}),t+=e*2,n+=e*2,{spritePixelRatio:Da().devicePixelRatio,spriteAAPadding:e,spriteWidth:t,spriteHeight:n,markerWidth:a}}updateMarkerLabel(e,t,n,a){let{marker:h,paddingX:S}=this.item,{markerWidth:E}=a,{symbol:L}=n,_=S,{markerEnabled:N,lineEnabled:V,isCustomMarker:q}=this.calcSymbolsEnabled(L);if(this._symbolsDirty){let{shape:he=L.marker.shape}=h,me=La(he);t.updateSymbols(new me({zIndex:1}),new Ks({zIndex:0}))}let Y=h.padding,{marker:J,line:re}=t;J!=null&&(J.size=N||!V?h.size:0);let ce={length:E,spacing:Y,isCustomMarker:q};if((N||V)&&(_+=Y+E),J){let{strokeWidth:he,fill:me,stroke:we,fillOpacity:Me,strokeOpacity:be}=this.getMarkerStyles(L);J.fill=me,J.stroke=we,J.strokeWidth=he,J.fillOpacity=Me,J.strokeOpacity=be}if(!V&&re!=null)re.strokeWidth=0;else if(re){let he=this.getLineStyles(L);re.stroke=he.stroke,re.strokeOpacity=he.strokeOpacity,re.strokeWidth=he.strokeWidth,re.lineDash=he.lineDash}return t.update(e,a,ce),_}truncate(e,t,n,a,h,S){let E=!1;e.length>t&&(e=e.substring(0,t),E=!0);let L=ug.getMeasurer({font:h}),_=Mv.truncateLine(e,L,n-a,E);return _.endsWith(Bo.EllipsisChar)?this.truncatedItems.add(S):this.truncatedItems.delete(S),_}updatePagination(e,t,n){let a=this.getOrientation(),h=Math.min(this.paginationTrackingIndex,e.length);this.pagination.orientation=a,this.pagination.translationX=0,this.pagination.translationY=0;let{pages:S,maxPageHeight:E,maxPageWidth:L,paginationBBox:_,paginationVertical:N}=this.calculatePagination(e,t,n),V=S.findIndex(Me=>Me.endIndex>=h);this.pagination.currentPage=Gn(0,V,S.length-1);let{paddingX:q,paddingY:Y}=this.item,J=8,re=L-q,ce=E-Y,he=0,me=-_.y-this.item.marker.size/2;N?me+=ce+J:(he+=-_.x+re+J,me+=(ce-_.height)/2),this.pagination.translationX=he,this.pagination.translationY=me,this.pagination.update(),this.pagination.updateMarkers();let we=0;return this.itemSelection.each((Me,be,Le)=>{var Fe,je;Le>((je=(Fe=S[we])==null?void 0:Fe.endIndex)!=null?je:1/0)&&we++,Me.pageIndex=we}),{maxPageHeight:E,maxPageWidth:L,pages:S}}calculatePagination(e,t,n){var ce,he,me;let{paddingX:a,paddingY:h}=this.item,S=this.getOrientation(),E=["left","right"].includes(this.position),L=this.pagination.getBBox(),_=new Ui(0,0,0,0),N=[],V=0,q=0,Y=0,J=we=>we.width===L.width&&we.height===L.height,re=this.maxWidth!==void 0&&this.maxHeight!==void 0;do{if(Y++>10){Di.warn("unable to find stable legend layout.");break}L=_;let we=t-(E?0:L.width),Me=n-(E?L.height:0),be=Bg({orientation:S,bboxes:e,maxHeight:Me,maxWidth:we,itemPaddingY:h,itemPaddingX:a,forceResult:re});N=(ce=be==null?void 0:be.pages)!=null?ce:[],V=(he=be==null?void 0:be.maxPageWidth)!=null?he:0,q=(me=be==null?void 0:be.maxPageHeight)!=null?me:0;let Le=N.length;if(this.pagination.visible=Le>1,this.pagination.totalPages=Le,this.pagination.update(),this.pagination.updateMarkers(),_=this.pagination.getBBox(),!this.pagination.visible)break}while(!J(_));return{maxPageWidth:V,maxPageHeight:q,pages:N,paginationBBox:_,paginationVertical:E}}updatePositions(e=0){let{item:{paddingY:t},itemSelection:n,pages:a}=this;if(a.length<1||!a[e])return;let{columns:h,startIndex:S,endIndex:E}=a[e],L=0,_=0,N=h.length,V=h[0].indices.length,q=this.getOrientation()==="horizontal",Y=h[0].bboxes[0].height+t,J=[];n.each((re,ce,he)=>{var Le,Fe;if(he<S||he>E){re.visible=!1;return}let me=he-S,we,Me;q?(we=me%N,Me=Math.floor(me/N)):(we=Math.floor(me/V),Me=me%V),re.visible=!0;let be=h[we];be&&(_=Math.floor(Y*Me),L=Math.floor((Le=J[Me])!=null?Le:0),J[Me]=((Fe=J[Me])!=null?Fe:0)+be.columnWidth,re.translationX=L,re.translationY=_)})}updatePageNumber(e){let{itemSelection:t,group:n,pagination:a,pages:h,toggleSeries:S}=this,{startIndex:E,endIndex:L}=h[e];E===0?this.paginationTrackingIndex=0:e===h.length-1?this.paginationTrackingIndex=L:this.paginationTrackingIndex=Math.floor((E+L)/2),this.pagination.update(),this.pagination.updateMarkers(),this.updatePositions(e),this.domProxy.onPageChange({itemSelection:t,group:n,pagination:a,interactive:S}),this.ctx.updateService.update(6)}update(){let{label:{color:e}}=this.item;this.itemSelection.each((t,n)=>{t.setEnabled(n.enabled),t.color=e}),this.updateContextMenu()}updateContextMenu(){let{toggleSeries:e,ctx:{contextMenuRegistry:t}}=this;e?(t.hideAction(Gg),t.hideAction(iR)):(t.showAction(Gg),t.showAction(iR))}getLineStyles(e){var E,L;let{stroke:t,strokeOpacity:n=1,strokeWidth:a,lineDash:h}=(E=e.line)!=null?E:{},S=Math.min(2,a!=null?a:1);return{stroke:t,strokeOpacity:n,strokeWidth:(L=this.item.line.strokeWidth)!=null?L:S,lineDash:h}}getMarkerStyles(e){var L;let{fill:t,stroke:n,strokeOpacity:a=1,fillOpacity:h=1,strokeWidth:S}=e.marker,E=Math.min(2,S!=null?S:1);return{fill:t,stroke:n,strokeOpacity:a,fillOpacity:h,strokeWidth:(L=this.item.marker.strokeWidth)!=null?L:E}}computePagedBBox(){let e=hn.computeChildrenBBox(this.group.children());if(this.pages.length>1){let[t,n]=this.maxPageSize;e.height=Math.max(n,e.height),e.width=Math.max(t,e.width)}return e}findNode(e){var a;let{datum:t,proxyButton:n}=(a=this.itemSelection.select(h=>{var S;return((S=h.datum)==null?void 0:S.itemId)===e.itemId})[0])!=null?a:{};if(t===void 0||n===void 0)throw new Error(`AG Charts - Missing required properties { datum: ${t}, proxyButton: ${JSON.stringify(n)} }`);return{datum:t,proxyButton:n}}contextToggleVisibility(e){let{datum:t,proxyButton:n}=this.findNode(e);this.doClick(e.event,t,n)}contextToggleOtherSeries(e){this.doDoubleClick(e.event,this.findNode(e).datum)}onContextClick(e,t){var L;let n=t.datum;this.preventHidingAll&&((L=this.contextMenuDatum)!=null&&L.enabled)&&this.getVisibleItemCount()<=1?this.ctx.contextMenuRegistry.disableAction(Gg):this.ctx.contextMenuRegistry.enableAction(Gg);let{offsetX:a,offsetY:h}=e,{x:S,y:E}=vr.toCanvasPoint(t,a,h);this.ctx.contextMenuRegistry.dispatchContext("legend",{sourceEvent:e,canvasX:S,canvasY:E},{legendItem:n})}onClick(e,t,n){this.doClick(e,t,n)&&e.preventDefault()}getVisibleItemCount(){return this.ctx.chartService.series.flatMap(e=>e.getLegendData("category")).filter(e=>e.enabled).length}doClick(e,t,n){var ce;let{listeners:{legendItemClick:a},ctx:{chartService:h,highlightManager:S},preventHidingAll:E,toggleSeries:L}=this;if(!t)return!1;let{legendType:_,seriesId:N,itemId:V,enabled:q}=t,Y=h.series.find(he=>he.id===N);if(!Y)return!1;let J=q,re=BO("click",V,Y.id,e);return a==null||a(re.apiEvent),re.defaultPrevented||(L&&(J=!q,E&&!J&&this.getVisibleItemCount()<2&&(J=!0),n.setChecked(J),this.ctx.chartEventManager.legendItemClick(_,Y,V,J,t.legendItemName)),J?S.updateHighlight(this.id,{series:Y,itemId:V,datum:void 0}):S.updateHighlight(this.id),this.ctx.legendManager.update(),this.ctx.updateService.update(2,{forceNodeDataRefresh:!0,skipAnimations:(ce=t.skipAnimations)!=null?ce:!1})),!0}onDoubleClick(e,t){this.doDoubleClick(e,t)&&e.preventDefault()}doDoubleClick(e,t){var q;let{listeners:{legendItemDoubleClick:n},ctx:{chartService:a},toggleSeries:h}=this;if(a.mode==="integrated"||!t)return!1;let{legendType:S,id:E,itemId:L,seriesId:_}=t,N=a.series.find(Y=>Y.id===E);if(!N)return!1;let V=BO("dblclick",L,N.id,e);if(n==null||n(V.apiEvent),V.defaultPrevented)return!0;if(h){let Y=a.series.flatMap(ce=>ce.getLegendData("category")),J=Y.filter(ce=>ce.enabled).length,re=Y.find(ce=>ce.itemId===L&&ce.seriesId===_);this.ctx.chartEventManager.legendItemDoubleClick(S,N,L,(q=re==null?void 0:re.enabled)!=null?q:!1,J,re==null?void 0:re.legendItemName)}return this.ctx.legendManager.update(),this.ctx.updateService.update(2,{forceNodeDataRefresh:!0}),!0}toTooltipMeta(e,t){let n;if(e instanceof FocusEvent){let{x:S,y:E}=vr.toCanvas(t).computeCenter();n={type:"keyboard",canvasX:S,canvasY:E}}else{e.preventDefault();let{x:S,y:E}=vr.toCanvasPoint(t,e.offsetX,e.offsetY);n={type:"hover",canvasX:S,canvasY:E}}let{canvasX:a,canvasY:h}=n;return{canvasX:a,canvasY:h,lastPointerEvent:n,showArrow:!1}}onHover(e,t){var h;if(!this.enabled)throw new Error("AG Charts - onHover handler called on disabled legend");this.pagination.setPage(t.pageIndex);let n=t.datum,a=n?this.ctx.chartService.series.find(S=>S.id===(n==null?void 0:n.id)):void 0;if(n&&this.truncatedItems.has((h=n.itemId)!=null?h:n.id)){let S=this.toTooltipMeta(e,t);this.ctx.tooltipManager.updateTooltip(this.id,S,{title:this.getItemLabel(n)})}else this.ctx.tooltipManager.removeTooltip(this.id);n!=null&&n.enabled&&a?this.updateHighlight({series:a,itemId:n==null?void 0:n.itemId,datum:void 0}):this.updateHighlight()}onLeave(){this.ctx.tooltipManager.removeTooltip(this.id),this.updateHighlight()}updateHighlight(e){let t=this.ctx.interactionManager.getState();t===32?this.ctx.highlightManager.updateHighlight(this.id,e):t===2&&(this.pendingHighlightDatum=e,this.ctx.animationManager.onBatchStop(()=>{this.ctx.highlightManager.updateHighlight(this.id,this.pendingHighlightDatum)}))}onLocaleChanged(){this.domProxy.onLocaleChanged(this.ctx.localeManager,this.itemSelection,this)}positionLegend(e){let t=this.positionLegendScene(e);this.positionLegendDOM(t)}positionLegendScene(e){if(!this.enabled||!this.data.length)return;let{layoutBox:t}=e,{x:n,y:a,width:h,height:S}=t,[E,L]=this.calculateLegendDimensions(t),{oldPages:_}=this.calcLayout(E,L),N=this.computePagedBBox(),V=()=>{switch(this.position){case"top":case"left":return 0;case"bottom":return S-N.height;case"right":default:return h-N.width}};if(this.visible){let q=this.spacing,Y,J;switch(this.position){case"top":case"bottom":Y=(h-N.width)/2,J=V(),t.shrink(N.height+q,this.position);break;case"left":case"right":default:Y=V(),J=(S-N.height)/2,t.shrink(N.width+q,this.position)}this.group.translationX=Math.floor(n+Y-N.x),this.group.translationY=Math.floor(a+J-N.y)}return _}positionLegendDOM(e){let{ctx:t,itemSelection:n,pagination:a,pages:h,toggleSeries:S,group:E}=this,L=this.visible&&this.enabled;this.domProxy.update({visible:L,interactive:S,ctx:t,itemSelection:n,group:E,pagination:a,oldPages:e,newPages:h,datumReader:this,itemListener:this})}calculateLegendDimensions(e){let{width:t,height:n}=e,a=t/n,h=.5,S=.2,E=.25,L,_;switch(this.position){case"top":case"bottom":{let N=a<1?Math.min(h,S*(1/a)):S;L=this.maxWidth?Math.min(this.maxWidth,t):t,_=this.maxHeight?Math.min(this.maxHeight,n):Math.round(n*N);break}case"left":case"right":default:{let N=a>1?Math.min(h,E*a):E;L=this.maxWidth?Math.min(this.maxWidth,t):Math.round(t*N),_=this.maxHeight?Math.min(this.maxHeight,n):n}}return[L,_]}},il.className="Legend",f([$e(Ji)],il.prototype,"toggleSeries",2),f([$e(Yi)],il.prototype,"pagination",2),f([$e(Yi)],il.prototype,"item",2),f([$e(Yi)],il.prototype,"listeners",2),f([wv((e,t,n)=>{if(e.updateGroupVisibility(),t===n)return;let{ctx:{legendManager:a,stateManager:h}}=e;n===!1&&t===!0&&h.restoreState(a)}),$e(Ji)],il.prototype,"enabled",2),f([$e(Jy)],il.prototype,"position",2),f([$e(mi,{optional:!0})],il.prototype,"maxWidth",2),f([$e(mi,{optional:!0})],il.prototype,"maxHeight",2),f([$e(Ji,{optional:!0})],il.prototype,"reverseOrder",2),f([$e(zo(["horizontal","vertical"],"an orientation"),{optional:!0})],il.prototype,"orientation",2),f([$e(Ji,{optional:!0})],il.prototype,"preventHidingAll",2),f([$e(mi)],il.prototype,"spacing",2)}}),nR,aR=M({"packages/ag-charts-community/src/chart/legend/legendModule.ts"(){"use strict";Kz(),nR={type:"legend",optionsKey:"legend",identifier:"category",chartTypes:["cartesian","polar","hierarchy","topology","flow-proportion","standalone","gauge"],moduleFactory:e=>new il(e),packageType:"community",removable:"standalone-only"}}}),jO={};A(jO,{CARTESIAN_AXIS_TYPE:()=>_L,CARTESIAN_POSITION:()=>OL,FONT_SIZE:()=>LL,POLAR_AXIS_SHAPE:()=>oR,POLAR_AXIS_TYPE:()=>F1});var LL,OL,_L,F1,oR,Of=M({"packages/ag-charts-community/src/chart/themes/constants.ts"(){"use strict";LL=(e=>(e[e.SMALL=12]="SMALL",e[e.MEDIUM=13]="MEDIUM",e[e.LARGE=17]="LARGE",e))(LL||{}),OL=(e=>(e.TOP="top",e.RIGHT="right",e.BOTTOM="bottom",e.LEFT="left",e))(OL||{}),_L=(e=>(e.CATEGORY="category",e.GROUPED_CATEGORY="grouped-category",e.ORDINAL_TIME="ordinal-time",e.NUMBER="number",e.TIME="time",e.LOG="log",e))(_L||{}),F1=(e=>(e.ANGLE_CATEGORY="angle-category",e.ANGLE_NUMBER="angle-number",e.RADIUS_CATEGORY="radius-category",e.RADIUS_NUMBER="radius-number",e))(F1||{}),oR=(e=>(e.CIRCLE="circle",e.POLYGON="polygon",e))(oR||{})}}),N1={};A(N1,{DEFAULT_ANNOTATION_BACKGROUND_FILL:()=>au,DEFAULT_ANNOTATION_COLOR:()=>Hc,DEFAULT_ANNOTATION_HANDLE_FILL:()=>Vg,DEFAULT_ANNOTATION_STATISTICS_COLOR:()=>Z1,DEFAULT_ANNOTATION_STATISTICS_DIVIDER_STROKE:()=>$1,DEFAULT_ANNOTATION_STATISTICS_DOWN_FILL:()=>hR,DEFAULT_ANNOTATION_STATISTICS_DOWN_STROKE:()=>gR,DEFAULT_ANNOTATION_STATISTICS_FILL:()=>X1,DEFAULT_ANNOTATION_STATISTICS_STROKE:()=>uw,DEFAULT_AXIS_GRID_COLOUR:()=>Jp,DEFAULT_AXIS_LINE_COLOUR:()=>Vc,DEFAULT_BACKGROUND_COLOUR:()=>Nk,DEFAULT_CAPTION_ALIGNMENT:()=>cy,DEFAULT_CAPTION_LAYOUT_STYLE:()=>ly,DEFAULT_COLOURS:()=>rR,DEFAULT_CROSS_LINES_COLOUR:()=>dC,DEFAULT_DIVERGING_SERIES_COLOR_RANGE:()=>nu,DEFAULT_FIBONACCI_STROKES:()=>Y1,DEFAULT_FONT_FAMILY:()=>So,DEFAULT_FUNNEL_SERIES_COLOR_RANGE:()=>em,DEFAULT_GAUGE_SERIES_COLOR_RANGE:()=>Uh,DEFAULT_GRIDLINE_ENABLED:()=>tm,DEFAULT_HIERARCHY_FILLS:()=>K1,DEFAULT_HIERARCHY_STROKES:()=>q1,DEFAULT_INSIDE_SERIES_LABEL_COLOUR:()=>Qp,DEFAULT_INVERTED_BACKGROUND_COLOUR:()=>sw,DEFAULT_INVERTED_LABEL_COLOUR:()=>B1,DEFAULT_LABEL_COLOUR:()=>Vo,DEFAULT_MUTED_LABEL_COLOUR:()=>Ll,DEFAULT_NAVIGATOR_STROKE:()=>_f,DEFAULT_PADDING:()=>jg,DEFAULT_POLAR_SERIES_STROKE:()=>W1,DEFAULT_SEPARATION_LINES_COLOUR:()=>uC,DEFAULT_SHADOW_COLOUR:()=>sy,DEFAULT_SPARKLINE_CROSSHAIR_STROKE:()=>U1,DEFAULT_TEXTBOX_COLOR:()=>zk,DEFAULT_TEXTBOX_FILL:()=>Q1,DEFAULT_TEXTBOX_STROKE:()=>J1,DEFAULT_TEXT_ANNOTATION_COLOR:()=>dy,DEFAULT_TOOLBAR_POSITION:()=>uy,IS_COMMUNITY:()=>rw,IS_DARK_THEME:()=>ow,IS_ENTERPRISE:()=>z1,PALETTE_ALT_DOWN_FILL:()=>dR,PALETTE_ALT_DOWN_STROKE:()=>lR,PALETTE_ALT_NEUTRAL_FILL:()=>uR,PALETTE_ALT_NEUTRAL_STROKE:()=>H1,PALETTE_ALT_UP_FILL:()=>cR,PALETTE_ALT_UP_STROKE:()=>sR,PALETTE_DOWN_FILL:()=>cw,PALETTE_DOWN_STROKE:()=>lw,PALETTE_NEUTRAL_FILL:()=>V1,PALETTE_NEUTRAL_STROKE:()=>dw,PALETTE_UP_FILL:()=>j1,PALETTE_UP_STROKE:()=>G1});var ow,rw,z1,So,Vo,B1,Qp,Ll,Jp,Vc,dC,uC,Nk,sw,sy,rR,jg,ly,cy,_f,G1,lw,j1,cw,dw,V1,sR,lR,cR,dR,uR,H1,W1,nu,U1,Uh,em,K1,q1,Hc,Y1,dy,au,Vg,X1,uw,Z1,$1,hR,gR,Q1,J1,zk,uy,tm,lr=M({"packages/ag-charts-community/src/chart/themes/symbols.ts"(){"use strict";ow=Symbol("is-dark-theme"),rw=Symbol("is-community"),z1=Symbol("is-enterprise"),So=Symbol("default-font"),Vo=Symbol("default-label-colour"),B1=Symbol("default-inverted-label-colour"),Qp=Symbol("default-inside-series-label-colour"),Ll=Symbol("default-muted-label-colour"),Jp=Symbol("default-axis-grid-colour"),Vc=Symbol("default-axis-line-colour"),dC=Symbol("default-cross-lines-colour"),uC=Symbol("default-separation-lines-colour"),Nk=Symbol("default-background-colour"),sw=Symbol("default-inverted-background-colour"),sy=Symbol("default-shadow-colour"),rR=Symbol("default-colours"),jg=Symbol("default-padding"),ly=Symbol("default-caption-layout-style"),cy=Symbol("default-caption-alignment"),_f=Symbol("default-navigator-stroke"),G1=Symbol("palette-up-stroke"),lw=Symbol("palette-down-stroke"),j1=Symbol("palette-up-fill"),cw=Symbol("palette-down-fill"),dw=Symbol("palette-neutral-stroke"),V1=Symbol("palette-neutral-fill"),sR=Symbol("palette-alt-up-stroke"),lR=Symbol("palette-alt-down-stroke"),cR=Symbol("palette-alt-up-fill"),dR=Symbol("palette-alt-down-fill"),uR=Symbol("palette-gray-fill"),H1=Symbol("palette-gray-stroke"),W1=Symbol("default-polar-series-stroke"),nu=Symbol("default-diverging-series-colour-range"),U1=Symbol("default-sparkline-crosshair-stroke"),Uh=Symbol("default-gauge-series-colour-range"),em=Symbol("default-funnel-series-colour-range"),K1=Symbol("default-hierarchy-fills"),q1=Symbol("default-hierarchy-strokes"),Hc=Symbol("default-annotation-stroke"),Y1=Symbol("default-hierarchy-strokes"),dy=Symbol("default-text-annotation-color"),au=Symbol("default-annotation-background-fill"),Vg=Symbol("default-annotation-handle-fill"),X1=Symbol("default-annotation-statistics-fill"),uw=Symbol("default-annotation-statistics-stroke"),Z1=Symbol("default-annotation-statistics-color"),$1=Symbol("default-annotation-statistics-divider-stroke"),hR=Symbol("default-annotation-statistics-fill"),gR=Symbol("default-annotation-statistics-stroke"),Q1=Symbol("default-textbox-fill"),J1=Symbol("default-textbox-stroke"),zk=Symbol("default-textbox-color"),uy=Symbol("default-toolbar-position"),tm=Symbol("default-gridline-enabled")}});function pR(e,t){return n=>t(n)?[et(pe({},e[0]),{position:e[1].position}),et(pe({},e[1]),{position:e[0].position})]:e}function Bk({takeColors:e}){let{fills:[t],strokes:[n]}=e(1);return{fill:t,stroke:n}}function mR(e){return{marker:Bk(e)}}var hw=M({"packages/ag-charts-community/src/chart/themes/util.ts"(){"use strict"}});function eE(e,t,n,a,h){let{addPhaseFn:S,updatePhaseFn:E,removePhaseFn:L}=h,_=(N,V,q)=>{n.animate({id:`${e}_${t}_${V.id}_${N}`,groupId:e,from:0,to:1,ease:qo,collapsable:!1,onUpdate(Y,J){J&&N!=="removed"||(V.path.clear(!0),q(Y,V),V.checkPathDirty())},onStop(){N==="added"&&(V.path.clear(!0),q(1,V),V.checkPathDirty())},phase:pl[N]})};for(let N of a)n.isSkipped()||(_("removed",N,L),_("updated",N,E)),_("added",N,S)}var tE=M({"packages/ag-charts-community/src/motion/pathMotion.ts"(){"use strict";Wy(),fs()}});function Xa({id:e},t,n,...a){vh(e,t,n,a,{opacity:0},{opacity:1},{phase:"trailing"})}function hC({id:e},t,n,...a){vh(e,t,n,a,{opacity:1},{opacity:0},{phase:"remove"})}function Ff(e){return{opacity:1}}var Kh=M({"packages/ag-charts-community/src/chart/series/seriesLabelUtil.ts"(){"use strict";fs()}}),iE,fR=M({"packages/ag-charts-community/src/scene/util/changeDetectableProperties.ts"(){"use strict";ga(),iE=class extends _n{constructor(){super(...arguments),this._dirty=!0}markDirty(){this._dirty=!0}markClean(e){this._dirty=!1}isDirty(){return this._dirty}}}}),Uu,Gk=M({"packages/ag-charts-community/src/scene/dropShadow.ts"(){"use strict";Ki(),Wa(),fR(),Uu=class extends iE{constructor(){super(...arguments),this.enabled=!0,this.color="rgba(0, 0, 0, 0.5)",this.xOffset=0,this.yOffset=0,this.blur=5}},f([$e(Ji),Hi()],Uu.prototype,"enabled",2),f([$e(Ra),Hi()],Uu.prototype,"color",2),f([$e(pa),Hi()],Uu.prototype,"xOffset",2),f([$e(pa),Hi()],Uu.prototype,"yOffset",2),f([$e(mi),Hi()],Uu.prototype,"blur",2)}}),FL,ou,nE=M({"packages/ag-charts-community/src/chart/series/seriesMarker.ts"(){"use strict";ox(),fR(),Ki(),Nu(),FL=Ka(e=>w1(e)||typeof e=="function","a marker shape keyword such as 'circle', 'diamond' or 'square' or an object extending the Marker class"),ou=class extends iE{constructor(){super(...arguments),this.enabled=!0,this.shape="circle",this.size=6,this.fillOpacity=1,this.strokeWidth=1,this.strokeOpacity=1}getStyle(){let{size:e,shape:t,fill:n,fillOpacity:a,stroke:h,strokeWidth:S,strokeOpacity:E}=this;return{size:e,shape:t,fill:n,fillOpacity:a,stroke:h,strokeWidth:S,strokeOpacity:E}}getDiameter(){return this.size+this.strokeWidth}},f([$e(Ji),Hi()],ou.prototype,"enabled",2),f([$e(FL),Hi()],ou.prototype,"shape",2),f([$e(mi),Hi()],ou.prototype,"size",2),f([$e(Ra,{optional:!0}),Hi()],ou.prototype,"fill",2),f([$e(Wn),Hi()],ou.prototype,"fillOpacity",2),f([$e(Ra,{optional:!0}),Hi()],ou.prototype,"stroke",2),f([$e(mi),Hi()],ou.prototype,"strokeWidth",2),f([$e(Wn),Hi()],ou.prototype,"strokeOpacity",2),f([$e(Kl,{optional:!0}),Hi()],ou.prototype,"itemStyler",2)}}),NL,Wc,gC=M({"packages/ag-charts-community/src/chart/series/seriesTooltip.ts"(){"use strict";ga(),Ki(),Il(),NL=class extends _n{constructor(){super(...arguments),this.enabled=!1}},f([$e(Ji)],NL.prototype,"enabled",2),Wc=class extends _n{constructor(){super(...arguments),this.enabled=!0,this.interaction=new NL,this.position=new Jv,this.range=void 0,this.class=void 0}formatTooltip(e,t){var a;let n=(a=this.renderer)==null?void 0:a.call(this,t);return typeof n=="string"?n:n!=null?pe(pe({},e),n):e}},f([$e(Ji)],Wc.prototype,"enabled",2),f([$e(Ji,{optional:!0})],Wc.prototype,"showArrow",2),f([$e(Kl,{optional:!0})],Wc.prototype,"renderer",2),f([$e(Yi)],Wc.prototype,"interaction",2),f([$e(Yi)],Wc.prototype,"position",2),f([$e(Pm,{optional:!0})],Wc.prototype,"range",2),f([$e(hi,{optional:!0})],Wc.prototype,"class",2)}}),l,c,y,I=M({"packages/ag-charts-community/src/chart/series/cartesian/interpolationProperties.ts"(){"use strict";ga(),Ki(),l=zo(["linear","smooth","step"],"a line style"),c=zo(["start","middle","end"]),y=class extends _n{constructor(){super(...arguments),this.type="linear",this.tension=1,this.position="end"}},f([$e(l)],y.prototype,"type",2),f([$e(Wn)],y.prototype,"tension",2),f([$e(c)],y.prototype,"position",2)}}),O,j=M({"packages/ag-charts-community/src/chart/series/cartesian/areaSeriesProperties.ts"(){"use strict";Gk(),Ki(),jd(),nE(),gC(),dc(),I(),O=class extends Bu{constructor(){super(...arguments),this.xName=void 0,this.fill="#c16068",this.fillOpacity=1,this.stroke="#874349",this.strokeWidth=2,this.strokeOpacity=1,this.lineDash=[0],this.lineDashOffset=0,this.interpolation=new y,this.shadow=new Uu,this.marker=new ou,this.label=new Hr,this.tooltip=new Wc,this.connectMissingData=!1}},f([$e(hi)],O.prototype,"xKey",2),f([$e(hi,{optional:!0})],O.prototype,"xName",2),f([$e(hi)],O.prototype,"yKey",2),f([$e(hi,{optional:!0})],O.prototype,"yName",2),f([$e(hi,{optional:!0})],O.prototype,"yFilterKey",2),f([$e(mi,{optional:!0})],O.prototype,"normalizedTo",2),f([$e(Ra)],O.prototype,"fill",2),f([$e(Wn)],O.prototype,"fillOpacity",2),f([$e(Ra)],O.prototype,"stroke",2),f([$e(mi)],O.prototype,"strokeWidth",2),f([$e(Wn)],O.prototype,"strokeOpacity",2),f([$e(_d)],O.prototype,"lineDash",2),f([$e(mi)],O.prototype,"lineDashOffset",2),f([$e(Yi)],O.prototype,"interpolation",2),f([$e(Yi)],O.prototype,"shadow",2),f([$e(Yi)],O.prototype,"marker",2),f([$e(Yi)],O.prototype,"label",2),f([$e(Yi)],O.prototype,"tooltip",2),f([$e(Ji)],O.prototype,"connectMissingData",2)}});function H(e){switch(e.type){case"linear":case"step":return[{x:e.x0,y:e.y0},{x:e.x1,y:e.y1}];case"cubic":return[{x:e.cp0x,y:e.cp0y},{x:e.cp3x,y:e.cp3y}]}}function K(e){let t=H(e);return t[0].x>t[1].x&&t.reverse(),t}function Z(e,t){let{x:n,y:a}=t;switch(e.type){case"linear":return{type:"linear",moveTo:e.moveTo,x0:n,y0:a,x1:n,y1:a};case"step":return{type:"step",moveTo:e.moveTo,x0:n,y0:a,x1:n,y1:a,stepX:n};case"cubic":return{type:"cubic",moveTo:e.moveTo,cp0x:n,cp0y:a,cp1x:n,cp1y:a,cp2x:n,cp2y:a,cp3x:n,cp3y:a}}}function te(e,t,n){let[a,h]=H(e),S=h.x!==a.x?(n.x-t.x)/(h.x-a.x):0,E=h.y!==a.y?(n.y-t.y)/(h.y-a.y):0;switch(e.type){case"linear":return{type:"linear",moveTo:e.moveTo,x0:t.x,y0:t.y,x1:n.x,y1:n.y};case"cubic":return{type:"cubic",moveTo:e.moveTo,cp0x:t.x,cp0y:t.y,cp1x:n.x-(e.cp2x-a.x)*S,cp1y:n.y-(e.cp2y-a.y)*E,cp2x:n.x-(e.cp1x-a.x)*S,cp2y:n.y-(e.cp1y-a.y)*E,cp3x:n.x,cp3y:n.y};case"step":return{type:"step",moveTo:e.moveTo,x0:t.x,y0:t.y,x1:n.x,y1:n.y,stepX:n.x-(e.stepX-a.x)*S}}}function se(e,t,n){let{moveTo:a}=e,[h,S]=K(e),{x:E,y:L}=h,{x:_,y:N}=S;if(n<E)return te(e,h,h);if(t>_)return te(e,S,S);switch(e.type){case"linear":{let V=L===N?void 0:(N-L)/(_-E),q=V==null?L:V*(t-E)+L,Y=V==null?L:V*(n-E)+L;return{type:"linear",moveTo:a,x0:t,y0:q,x1:n,y1:Y}}case"step":if(n<=e.stepX){let V=e.y0;return{type:"step",moveTo:a,x0:t,y0:V,x1:n,y1:V,stepX:n}}else if(t>=e.stepX){let V=e.y1;return{type:"step",moveTo:a,x0:t,y0:V,x1:n,y1:V,stepX:t}}else{let{y0:V,y1:q,stepX:Y}=e;return{type:"step",moveTo:a,x0:t,y0:V,x1:n,y1:q,stepX:Y}}case"cubic":{let V=tk(e.cp0x,e.cp1x,e.cp2x,e.cp3x,t),[q,Y]=ik(e.cp0x,e.cp0y,e.cp1x,e.cp1y,e.cp2x,e.cp2y,e.cp3x,e.cp3y,V),J=tk(Y[0].x,Y[1].x,Y[2].x,Y[3].x,n);return[Y,q]=ik(Y[0].x,Y[0].y,Y[1].x,Y[1].y,Y[2].x,Y[2].y,Y[3].x,Y[3].y,J),{type:"cubic",moveTo:a,cp0x:Y[0].x,cp0y:Y[0].y,cp1x:Y[1].x,cp1y:Y[1].y,cp2x:Y[2].x,cp2y:Y[2].y,cp3x:Y[3].x,cp3y:Y[3].y}}}}function ge(e){let t=[],n=0,a=NaN,h=NaN;for(let{x:S,y:E}of e){if(n>0){let L=n===1;t.push({type:"linear",moveTo:L,x0:a,y0:h,x1:S,y1:E})}n+=1,a=S,h=E}return t}function Se(e,t){let n=[],a=0,h=NaN,S=NaN,E=typeof t=="number"?t:Pe[t];for(let{x:L,y:_}of e){if(a>0){let N=a===1,V=h+(L-h)*E;n.push({type:"step",moveTo:N,x0:h,y0:S,x1:L,y1:_,stepX:V})}a+=1,h=L,S=_}return n}function Ce(e,t){let n=Array.isArray(e)?e:Array.from(e);if(n.length<=1)return[];let a=n.map((S,E)=>{let L=E===0?S:n[E-1],_=E===n.length-1?S:n[E+1],N=E===0||E===n.length-1;if(Math.sign(L.y-S.y)===Math.sign(_.y-S.y))return 0;if(!N){let V=Math.abs(L.y-_.y),q=Math.abs(S.y-L.y)/V,Y=Math.abs(S.y-_.y)/V;if(q<=Ge||1-q<=Ge||Y<=Ge||1-Y<=Ge)return 0}return(_.y-L.y)/(_.x-L.x)});a[1]===0&&(a[0]*=2),a[a.length-2]===0&&(a[a.length-1]*=2);let h=[];for(let S=1;S<n.length;S+=1){let E=n[S-1],L=a[S-1],_=n[S],N=a[S],V=_.x-E.x,q=_.y-E.y,Y=V*t/3,J=V*L*t/3,re=V*t/3,ce=V*N*t/3;N===0&&Math.abs(J)>Math.abs(q)&&(Y*=Math.abs(q/J),J=Math.sign(J)*Math.abs(q)),L===0&&Math.abs(ce)>Math.abs(q)&&(re*=Math.abs(q/ce),ce=Math.sign(ce)*Math.abs(q)),h.push({type:"cubic",moveTo:S===1,cp0x:E.x,cp0y:E.y,cp1x:E.x+Y,cp1y:E.y+J,cp2x:_.x-re,cp2y:_.y-ce,cp3x:_.x,cp3y:_.y})}return h}var Pe,Ge,We=M({"packages/ag-charts-community/src/chart/series/cartesian/lineInterpolation.ts"(){"use strict";Sf(),Pe={start:0,middle:.5,end:1},Ge=.05}});function He(e,t,n){return(t-e)*n+e}function Ze(e,t){let{x0:n,y0:a,x1:h,y1:S}=e,L=(S-a)/(h-n)*(t-n)+a;return{leftCp1x:n,leftCp1y:a,leftCp2x:t,leftCp2y:L,stepX:t,stepY0:L,stepY1:L,rightCp1x:t,rightCp1y:L,rightCp2x:h,rightCp2y:S}}function it(e,t){let{cp0x:n,cp0y:a,cp1x:h,cp1y:S,cp2x:E,cp2y:L,cp3x:_,cp3y:N}=e,V=tk(n,h,E,_,t),[q,Y]=ik(n,a,h,S,E,L,_,N,V),J=q[3].y;return{leftCp1x:q[1].x,leftCp1y:q[1].y,leftCp2x:q[2].x,leftCp2y:q[2].y,stepX:t,stepY0:J,stepY1:J,rightCp1x:Y[1].x,rightCp1y:Y[1].y,rightCp2x:Y[2].x,rightCp2y:Y[2].y}}function qe(e){let{x0:t,y0:n,x1:a,y1:h,stepX:S}=e;return{leftCp1x:(t+S)/2,leftCp1y:n,leftCp2x:(t+S)/2,leftCp2y:n,stepX:S,stepY0:n,stepY1:h,rightCp1x:(S+a)/2,rightCp1y:h,rightCp2x:(S+a)/2,rightCp2y:h}}function rt(e,t){return e.type==="linear"?Ze(e,t):e.type==="cubic"?it(e,t):qe(e)}function dt(e,t,n,a,h,S,E){switch(t){case 0:E?e.moveTo(h,S):e.moveTo(n,a);break;case 1:E?e.lineTo(h,S):e.lineTo(n,a);break}}function mt(e,t,n,a,h,S){S?e.lineTo(t,n):e.lineTo(a,h)}function yt(e,t,n,a,h,S,E,L,_,N){N?e.cubicCurveTo(S,E,a,h,t,n):e.cubicCurveTo(a,h,S,E,L,_)}function Lt(e,t,n,a,h,S,E){E?(e.lineTo(S,h),e.lineTo(S,n),e.lineTo(t,n)):(e.lineTo(S,n),e.lineTo(S,h),e.lineTo(a,h))}function Ht(e,t,n,a){let[h,S]=H(t);switch(dt(e,n,h.x,h.y,S.x,S.y,a),t.type){case"linear":mt(e,t.x0,t.y0,t.x1,t.y1,a);break;case"cubic":yt(e,t.cp0x,t.cp0y,t.cp1x,t.cp1y,t.cp2x,t.cp2y,t.cp3x,t.cp3y,a);break;case"step":Lt(e,t.x0,t.y0,t.x1,t.y1,t.stepX,a);break}}function qt(e,t,n){let[a,h]=H(e),[S,E]=H(t),L=He(a.x,S.x,n),_=He(a.y,S.y,n),N=He(h.x,E.x,n),V=He(h.y,E.y,n);return[{x:L,y:_},{x:N,y:V}]}function ri(e,t,n,a,h,S){let[{x:E,y:L},{x:_,y:N}]=qt(t,n,a);if(dt(e,h,E,L,_,N,S),t.type==="cubic"&&n.type==="cubic"){let V=He(t.cp1x,n.cp1x,a),q=He(t.cp1y,n.cp1y,a),Y=He(t.cp2x,n.cp2x,a),J=He(t.cp2y,n.cp2y,a);yt(e,E,L,V,q,Y,J,_,N,S)}else if(t.type==="step"&&n.type==="step"){let V=He(t.stepX,n.stepX,a);Lt(e,E,L,_,N,V,S)}else if(t.type==="linear"&&n.type==="linear")mt(e,E,L,_,N,S);else{let V;t.type==="step"?V=t.stepX:n.type==="step"?V=n.stepX:V=(E+_)/2;let q=rt(t,V),Y=rt(n,V),J=He(q.leftCp1x,Y.leftCp1x,a),re=He(q.leftCp1y,Y.leftCp1y,a),ce=He(q.leftCp2x,Y.leftCp2x,a),he=He(q.leftCp2y,Y.leftCp2y,a),me=He(q.stepX,Y.stepX,a),we=He(q.stepY0,Y.stepY0,a),Me=He(q.stepY1,Y.stepY1,a),be=He(q.rightCp1x,Y.rightCp1x,a),Le=He(q.rightCp1y,Y.rightCp1y,a),Fe=He(q.rightCp2x,Y.rightCp2x,a),je=He(q.rightCp2y,Y.rightCp2y,a);S?(e.cubicCurveTo(Fe,je,be,Le,me,Me),e.lineTo(me,we),e.cubicCurveTo(ce,he,J,re,E,L)):(e.cubicCurveTo(J,re,ce,he,me,we),e.lineTo(me,Me),e.cubicCurveTo(be,Le,Fe,je,_,N))}}var Ei=M({"packages/ag-charts-community/src/chart/series/cartesian/lineInterpolationPlotting.ts"(){"use strict";Sf(),We()}});function Ni(e,t){return e==null||t==null||typeof e!="object"||typeof t!="object"?!1:"id"in e&&"id"in t?e.id===t.id:e.toString()===t.toString()}function Vi(e,t){if(!t)return NaN;if(e instanceof Date&&(e=e.getTime()),t.type==="continuous"&&typeof e=="number")return(e-t.domain[0])/(t.domain[1]-t.domain[0])*(t.range[1]-t.range[0])+t.range[0];if(t.type==="log"&&typeof e=="number")return t.convert(e);if(t.type!=="category")return NaN;let n=t.domain.findIndex(h=>h===e);return n>=0||t.domain.findIndex(h=>Ni(e,h))>=0?t.inset+t.step*n:NaN}function Si(e){return L0(e).valueOf()}function sn({data:e},t){return e.map((n,a)=>({xValue0Index:t.indexOf(Si(n.xValue0)),xValue1Index:t.indexOf(Si(n.xValue1)),datumIndex:a}))}function en(e,t){let n=t.scales.x,a=e.scales.x;if((n==null?void 0:n.type)!=="category"||(a==null?void 0:a.type)!=="category")return!0;let h=-1/0;for(let S of n.domain){let E=Vi(S,a);if(Number.isFinite(E)){if(E<h)return!1;h=E}else continue}return!0}function Nn(e,t){let n=-1/0;for(let a of e){let h=Vi(a.value,t.scales.x);if(Number.isFinite(h)){if(h<n)return!1;n=h}else continue}return!0}function dn(e,t){let n=new Map;for(let{xValue0:V,xValue1:q}of e.data){let Y=Si(V),J=Si(q);n.set(Y,V).set(J,q)}let a=Array.from(n,([V,q])=>({axisValue:V,value:q}));a.sort((V,q)=>Vi(V.value,e.scales.x)-Vi(q.value,e.scales.x));let h=[];for(let{xValue0:V,xValue1:q}of t.data){let Y=Si(V),J=Si(q);n.has(Y)||(n.set(Y,V),h.push({axisValue:Y,value:V})),n.has(J)||(n.set(J,q),h.push({axisValue:J,value:q}))}h.sort((V,q)=>Vi(V.value,t.scales.x)-Vi(q.value,t.scales.x));let S=a,E=0;for(let V of h){for(let q=S.length-1;q>E;q-=1){let Y=Vi(V.value,t.scales.x),J=Vi(S[q].value,t.scales.x);if(Y>J){E=q+1;break}}S.splice(E,0,V),E+=1}if(!Nn(S,t))return;let L=S.map(V=>V.axisValue),_=sn(t,L),N=sn(e,L);return{axisValues:L,oldDataAxisIndices:_,newDataAxisIndices:N}}function ea(e,t,n){if(n.xValue1Index===n.xValue0Index+1)return e;let a=H(e),h=(a[1].x-a[0].x)/(n.xValue1Index-n.xValue0Index),S=a[0].x+(t-n.xValue0Index)*h,E=S+h;return se(e,S,E)}function Sn(e,t){let[n,a]=H(e),h=Vi(0,t.scales.y);return te(e,{x:n.x,y:h},{x:a.x,y:h})}function pn(e){let[t,n]=H(e);return Z(e,{x:(t.x+n.x)/2,y:(t.y+n.y)/2})}function ta(e,t,n,a,h,S){var q,Y;let E,L;if(h.xValue0Index>=S.xValue1Index){let J=(q=a.findLast(ce=>ce.xValue1Index<=S.xValue1Index))==null?void 0:q.datumIndex,re=J!=null?n.data[J]:void 0;E=re==null?void 0:re.xValue1,L=re==null?void 0:re.yValue1}else if(h.xValue0Index<=S.xValue0Index){let J=(Y=a.find(ce=>ce.xValue0Index>=S.xValue0Index))==null?void 0:Y.datumIndex,re=J!=null?n.data[J]:void 0;E=re==null?void 0:re.xValue0,L=re==null?void 0:re.yValue0}if(E==null||L==null)switch(t){case 0:return Sn(e,n);case 1:return pn(e)}let _=Vi(E,n.scales.x),N=Vi(L,n.scales.y),V={x:_,y:N};return te(e,V,V)}function wo(e,t){var h;if(t==null)return;let n=Si(e.xValue0),a=Si(e.xValue1);return(h=t.find(S=>Si(S.xValue0)===n&&Si(S.xValue1)===a))==null?void 0:h.span}function Ca(e,t,n,a,h,S,E){let L=e.data[a.datumIndex],_=L.span,N=wo(L,h);if(N!=null)E.removed.push({from:N,to:N}),E.moved.push({from:N,to:_}),E.added.push({from:_,to:_});else{let V=ta(_,t,e,n,a,S);E.added.push({from:V,to:_})}}function Bn(e,t,n,a,h,S,E){let L=e.data[a.datumIndex],_=L.span,N=wo(L,h);if(N!=null)E.removed.push({from:_,to:_}),E.moved.push({from:_,to:N}),E.added.push({from:N,to:N});else{let V=ta(_,t,e,n,a,S);E.removed.push({from:_,to:V})}}function ya(e,t,n,a,h){let S=t[h.xValue0Index],E=n.data.find(he=>Si(he.xValue0)===S),L=t[h.xValue1Index],_=n.data.find(he=>Si(he.xValue1)===L);if(E==null||_==null)return;let[{x:N},{x:V}]=H(e),q=Vi(E.xValue0,n.scales.x),Y=Vi(E.yValue0,n.scales.y),J=Vi(_.xValue1,n.scales.x),re=Vi(_.yValue1,n.scales.y),ce=a.data[h.datumIndex].span;return ce=te(ce,{x:q,y:Y},{x:J,y:re}),ce=se(ce,N,V),ce}function wn(e,t,n,a,h,S,E,L,_){let N=h+1,V=E.find(Me=>Me.xValue0Index<=h&&Me.xValue1Index>=N),q=S.find(Me=>Me.xValue0Index<=h&&Me.xValue1Index>=N),Y=t.zeroData,J=e.zeroData;if(V==null&&q!=null){Ca(e,n,S,q,Y,L,_);return}else if(V!=null&&q==null){Bn(t,n,E,V,J,L,_);return}else if(V==null||q==null)return;let re;V.xValue0Index===q.xValue0Index&&V.xValue1Index===q.xValue1Index?re=0:V.xValue0Index<=q.xValue0Index&&V.xValue1Index>=q.xValue1Index?re=-1:V.xValue0Index>=q.xValue0Index&&V.xValue1Index<=q.xValue1Index?re=1:re=0;let ce=t.data[V.datumIndex],he=ea(ce.span,h,V),me=e.data[q.datumIndex],we=ea(me.span,h,q);if(re===1){let Me=ya(he,a,t,e,q);Me!=null?(_.removed.push({from:he,to:Me}),_.moved.push({from:Me,to:we}),_.added.push({from:we,to:we})):Bn(t,n,E,V,J,L,_)}else if(re===-1){let Me=ya(we,a,e,t,V);Me!=null?(_.removed.push({from:he,to:he}),_.moved.push({from:he,to:Me}),_.added.push({from:Me,to:we})):Ca(e,n,S,q,Y,L,_)}else _.removed.push({from:he,to:he}),_.moved.push({from:he,to:we}),_.added.push({from:we,to:we})}function $i(e,t,n,a){var N,V,q,Y,J,re,ce,he;let h={removed:[],moved:[],added:[]},{axisValues:S,oldDataAxisIndices:E,newDataAxisIndices:L}=e,_={xValue0Index:Math.max((V=(N=E.at(0))==null?void 0:N.xValue0Index)!=null?V:-1/0,(Y=(q=L.at(0))==null?void 0:q.xValue0Index)!=null?Y:-1/0),xValue1Index:Math.min((re=(J=E.at(-1))==null?void 0:J.xValue1Index)!=null?re:1/0,(he=(ce=L.at(-1))==null?void 0:ce.xValue1Index)!=null?he:1/0)};for(let me=0;me<S.length-1;me+=1)wn(t,n,a,S,me,L,E,_,h);return h}function kn(e,t,n){var h;let{span:a}=t;switch(n){case 0:return(h=wo(t,e.zeroData))!=null?h:Sn(a,e);case 1:return pn(a)}}function Zn(e,t,n){let a=[],h=[];for(let S of t.data){let E=S.span,L=kn(t,S,n);h.push({from:E,to:L})}for(let S of e.data){let E=S.span,L=kn(e,S,n);a.push({from:L,to:E})}return{removed:h,moved:[],added:a}}function Qi(e,t,n){if(!en(e,t))return;let a=dn(e,t);return a==null?Zn(e,t,n):$i(a,e,t,n)}var vn,Xi=M({"packages/ag-charts-community/src/chart/series/cartesian/lineInterpolationUtil.ts"(){"use strict";kv(),We(),vn=(e=>(e[e.Zero=0]="Zero",e[e.Split=1]="Split",e))(vn||{})}});function Kn(e){return e.type==="continuous"||e.type==="log"}function cn(e){return e.type==="category"}function xo(e,t){return e===void 0||t===void 0?e!==void 0||t!==void 0:Kn(e)&&Kn(t)?e.type===t.type&&bh(e.domain,t.domain)&&bh(e.range,t.range):cn(e)&&cn(t)?e.inset===t.inset&&e.step===t.step&&bh(e.domain,t.domain):!1}function Ro(e){return e==null?!1:e.type==="category"?e.domain.every(t=>t!=null):e.domain.every(t=>Number.isFinite(t)||t instanceof Date)&&e.range.every(t=>Number.isFinite(t))}var ro=M({"packages/ag-charts-community/src/chart/series/cartesian/scaling.ts"(){"use strict";ts()}});function Ha(e,t){let n,a=e.map(h=>h.point);switch(t.type){case"linear":n=ge(a);break;case"smooth":n=Ce(a,t.tension);break;case"step":n=Se(a,t.position);break}return n.map((h,S)=>({span:h,xValue0:e[S].xDatum,yValue0:e[S].yDatum,xValue1:e[S+1].xDatum,yValue1:e[S+1].yDatum}))}function Fr(e,t,n=.001){return Math.abs(e.x-t.x)<n&&Math.abs(e.y-t.y)<n}function Sr({path:e},t){let n;for(let{span:a}of t){let[h,S]=H(a),E=n!=null&&Fr(n,h)?1:0;Ht(e,a,E,!1),n=S}}function ru(e,t,n){let a;for(let h of n){let[S,E]=qt(h.from,h.to,e),L=a!=null&&Fr(a,S)?1:0;ri(t.path,h.from,h.to,e,L,!1),a=E}}function pC(e,t,n){let a=(L,_)=>ru(L,_,t.removed),h=(L,_)=>ru(L,_,t.moved),S=(L,_)=>ru(L,_,t.added),E=jk(e,n);return{status:e,path:{addPhaseFn:S,updatePhaseFn:h,removePhaseFn:a},pathProperties:E}}function jk(e,t){let n=t==="none"?"updated":e,a={fromFn:h=>{let S;return e==="removed"?S={finish:{visible:!1}}:e==="added"?S={start:{visible:!0}}:S={},pe({phase:pl[n]},S)},toFn:h=>({phase:pl[n]})};return t==="fade"?{fromFn:h=>{let S=e==="added"?0:h.opacity;return pe({opacity:S},a.fromFn(h))},toFn:h=>pe({opacity:e==="removed"?0:1},a.toFn(h))}:a}function Hg(e,t,n){var N,V,q;let a=((N=e.scales.x)==null?void 0:N.type)==="category",h=((V=t.scales.x)==null?void 0:V.type)==="category";if(a!==h||!Ro(e.scales.x)||!Ro(t.scales.x)||e.strokeData==null||t.strokeData==null)return;let S="updated";t.visible&&!e.visible?S="removed":!t.visible&&e.visible&&(S="added");let E=Qi({scales:e.scales,data:e.strokeData.spans},{scales:t.scales,data:t.strokeData.spans},1);if(E==null)return;let L=pC(S,E,"fade"),_=((q=n==null?void 0:n.changed)!=null?q:!0)||!xo(e.scales.x,t.scales.x)||!xo(e.scales.y,t.scales.y)||S!=="updated";return{status:S,stroke:L,hasMotion:_}}var gw=M({"packages/ag-charts-community/src/chart/series/cartesian/lineUtil.ts"(){"use strict";fs(),We(),Ei(),Xi(),ro()}});function Wg({path:e},{spans:t,phantomSpans:n}){for(let a=0;a<t.length;a+=1){let{span:h}=t[a],S=n[a].span;Ht(e,h,0,!1),Ht(e,S,1,!0),e.closePath()}}function vR(e,{path:t},n,a){for(let h=0;h<n.length;h+=1){let S=n[h],E=a[h];ri(t,S.from,S.to,e,0,!1),ri(t,E.from,E.to,e,1,!0),t.closePath()}}function aE(e,t,n,a){let h=(_,N)=>vR(_,N,t.removed,n.removed),S=(_,N)=>vR(_,N,t.moved,n.moved),E=(_,N)=>vR(_,N,t.added,n.added),L=jk(e,a);return{status:e,path:{addPhaseFn:E,updatePhaseFn:S,removePhaseFn:h},pathProperties:L}}function zL(e,t){var q,Y;let n=((q=e.scales.x)==null?void 0:q.type)==="category",a=((Y=t.scales.x)==null?void 0:Y.type)==="category";if(n!==a||!Ro(e.scales.x)||!Ro(t.scales.x))return;let h="updated";t.visible&&!e.visible?h="removed":!t.visible&&e.visible&&(h="added");let S=Qi({scales:e.scales,data:e.fillData.spans},{scales:t.scales,data:t.fillData.spans},0);if(S==null)return;let E=Qi({scales:e.scales,data:e.fillData.phantomSpans},{scales:t.scales,data:t.fillData.phantomSpans},0);if(E==null)return;let L=Qi({scales:e.scales,data:e.strokeData.spans,zeroData:e.fillData.phantomSpans},{scales:t.scales,data:t.strokeData.spans,zeroData:t.fillData.phantomSpans},0);if(L==null)return;let _="none",N=aE(h,S,E,_),V=pC(h,L,_);return{status:h,fill:N,stroke:V}}var mV=M({"packages/ag-charts-community/src/chart/series/cartesian/areaUtil.ts"(){"use strict";We(),Ei(),Xi(),gw(),ro()}});function BL({id:e},t,n,...a){let h={phase:n?pl[n]:"trailing"};vh(e,"markers",t,a,{opacity:0},{opacity:1},h),a.forEach(S=>S.cleanup())}function qz({id:e},t,...n){vh(e,"markers",t,n,{scalingX:0,scalingY:0},{scalingX:1,scalingY:1},{phase:"initial"}),n.forEach(a=>a.cleanup())}function Yz({id:e,nodeDataDependencies:t},n,...a){let h=t.seriesRectWidth;Do(e,"markers",n,a,{fromFn:(L,_)=>{var q,Y;let N=(Y=(q=_.midPoint)==null?void 0:q.x)!=null?Y:h,V=Gn(0,a0(N/h),1);return isNaN(V)&&(V=0),{scalingX:0,scalingY:0,delay:V,duration:hp,phase:"initial"}},toFn:()=>({scalingX:1,scalingY:1})})}function GL(e){return{opacity:1,scalingX:1,scalingY:1}}function jL(e,t){var n,a,h,S;return{translationX:(a=(n=t.point)==null?void 0:n.x)!=null?a:NaN,translationY:(S=(h=t.point)==null?void 0:h.y)!=null?S:NaN}}function qZ(e,t){let n=(E,L)=>{let _=e[L][E];return Array.isArray(_)?_[0]:_},a=E=>{let{xValue:L}=E;return e.moved[L]?{point:n(L,"moved"),status:"updated"}:e.removed[L]?{point:n(L,"removed"),status:"removed"}:e.added[L]?{point:n(L,"added"),status:"added"}:{status:"unknown"}};return{fromFn:(E,L)=>{var q,Y,J,re,ce,he;let{status:_,point:N}=a(L);if(_==="unknown")return{opacity:0};let V={translationX:(Y=(q=N==null?void 0:N.from)==null?void 0:q.x)!=null?Y:E.translationX,translationY:(re=(J=N==null?void 0:N.from)==null?void 0:J.y)!=null?re:E.translationY,opacity:E.opacity,phase:pl[_]};return t==="added"?et(pe({},V),{opacity:0,translationX:(ce=N==null?void 0:N.to)==null?void 0:ce.x,translationY:(he=N==null?void 0:N.to)==null?void 0:he.y,phase:pl.added}):(_==="added"&&(V.opacity=0),V)},toFn:(E,L)=>{var q,Y;let{status:_,point:N}=a(L);if(_==="unknown")return{opacity:0};let V={translationX:L.point.x,translationY:L.point.y,opacity:1,phase:pl[_]};return _==="removed"||t==="removed"?et(pe({},V),{translationX:(q=N==null?void 0:N.to)==null?void 0:q.x,translationY:(Y=N==null?void 0:N.to)==null?void 0:Y.y,opacity:0,phase:pl.removed}):V}}}function VL(e,{datumIndex:t}){var N;let n=e.getNodeData();if(n===void 0)return;let a=n[t],{point:h}=a;if(a==null||h==null)return;let S=(N=h.focusSize)!=null?N:e.getFormattedMarkerStyle(a).size,E=S/2,L=a.point.x-E,_=a.point.y-E;return new Ui(L,_,S,S)}var HL=M({"packages/ag-charts-community/src/chart/series/cartesian/markerUtil.ts"(){"use strict";xa(),fs(),jn(),zn(),Wy()}});function YZ(e,t,n){let a=n;for(let{x:h,y:S}of t)a?e.lineTo(h,S):(e.moveTo(h,S),a=!0)}function XZ(e,t,n,a){let h=Array.isArray(t)?t:Array.from(t);if(h.length===0||(a?e.lineTo(h[0].x,h[0].y):e.moveTo(h[0].x,h[0].y),h.length<=1))return;let S=h.map((E,L)=>{let _=L===0?E:h[L-1],N=L===h.length-1?E:h[L+1],V=L===0||L===h.length-1;if(Math.sign(_.y-E.y)===Math.sign(N.y-E.y))return 0;if(!V){let q=Math.abs(_.y-N.y),Y=Math.abs(E.y-_.y)/q,J=Math.abs(E.y-N.y)/q;if(Y<=WL||1-Y<=WL||J<=WL||1-J<=WL)return 0}return(N.y-_.y)/(N.x-_.x)});S[1]===0&&(S[0]*=2),S[S.length-2]===0&&(S[S.length-1]*=2);for(let E=1;E<h.length;E+=1){let L=h[E-1],_=S[E-1],N=h[E],V=S[E],q=N.x-L.x,Y=N.y-L.y,J=q*n/3,re=q*_*n/3,ce=q*n/3,he=q*V*n/3;V===0&&Math.abs(re)>Math.abs(Y)&&(J*=Math.abs(Y/re),re=Math.sign(re)*Math.abs(Y)),_===0&&Math.abs(he)>Math.abs(Y)&&(ce*=Math.abs(Y/he),he=Math.sign(he)*Math.abs(Y)),e.cubicCurveTo(L.x+J,L.y+re,N.x-ce,N.y-he,N.x,N.y)}}function ZZ(e,t,n,a){var S;let h;for(let E of t){if(h!=null){let L=h.x<E.x?n:1-n,_=(E.x-h.x)*L+h.x;e.lineTo(_,(S=h==null?void 0:h.y)!=null?S:E.y),e.lineTo(_,E.y),e.lineTo(E.x,E.y)}else a?e.lineTo(E.x,E.y):e.moveTo(E.x,E.y);h=E}}var WL,$Z=M({"packages/ag-charts-community/src/chart/series/cartesian/linePlotter.ts"(){"use strict";WL=.05}});function QZ(e){return e.reduce(({min:t,max:n},a)=>((t==null||t.point.x>a.point.x)&&(t=a),(n==null||n.point.x<a.point.x)&&(n=a),{min:t,max:n}),{})}function fV(e,t,n){let a=(t.y-e.y)/(t.x-e.x),h=(n-e.x)*a+e.y;return{x:n,y:h}}function vV(e,t,n,a){let h=-1,S=0,E=[];for(;S<e.length;){if(e[S].change===t){E.push(e[S]),S++;continue}if(e[S].change===n){S++;continue}E.length>0&&(a(E,h,S),E.length=0),h=S,S++}E.length>0&&a(E,h,S)}function JZ(e,t){vV(e,"out","in",(n,a,h)=>{var S,E;a===-1&&e[h]?n.forEach(L=>L.to=e[h].from):h===e.length&&e[a]?n.forEach(L=>L.to=e[a].from):t==="intersect"&&((S=e[a])!=null&&S.from)&&((E=e[h])!=null&&E.from)?n.forEach(L=>L.to=fV(e[a].from,e[h].from,L.from.x)):n.forEach(L=>L.to=L.from)}),vV(e,"in","out",(n,a,h)=>{var S,E;a===-1&&e[h]?n.forEach(L=>L.from=e[h].to):h===e.length&&e[a]?n.forEach(L=>L.from=e[a].to):t==="intersect"&&((S=e[a])!=null&&S.to)&&((E=e[h])!=null&&E.to)?n.forEach(L=>L.from=fV(e[a].to,e[h].to,L.to.x)):n.forEach(L=>L.from=L.to)})}function yV(e,t,n){let a=isNaN(e.x)?t.x:e.x,h=isNaN(e.y)?t.y:e.y,S=t.x-e.x,E=t.y-e.y,L=isNaN(S)?0:S*n,_=isNaN(E)?0:E*n;return{x:a+L,y:h+_}}function bV(e,t,n,a=!1){var S,E;let{path:h}=t;(n==null?void 0:n.type)==="smooth"?XZ(h,e,(S=n.tension)!=null?S:1,a):(n==null?void 0:n.type)==="step"?ZZ(h,e,SV[(E=n.position)!=null?E:"end"],a):YZ(h,e,a)}function CV(e,t){let n,a,h=[],S=()=>{a!=null&&(h.push(a),a=void 0)};for(let E of e){let{from:L,to:_}=E,N=t[E.change];if(N==null||L==null||_==null)continue;let V=yV(L,_,N);if(E.moveTo===!1)a!=null||(a=[]),a.push(V);else if(E.moveTo===!0||!n)S(),a=[V];else if(n){let q=E.moveTo==="in"?N:1-N,{x:Y,y:J}=yV(n,V,q);a!=null||(a=[]),a.push({x:Y,y:J}),S(),a=[V]}n=V}return S(),h}function e$(e,t,n,a){CV(e,t).forEach(h=>{bV(h,n,a)})}function Xz({id:e,visible:t,nodeDataDependencies:n},a,...h){let{seriesRectWidth:S,seriesRectHeight:E}=n;vh(e,"path_properties",a,h,{clipX:0},{clipX:S},{phase:"initial",start:{clip:!0,clipY:E,visible:t},finish:{clip:!1,visible:t}})}function VO({id:e},t,n,a="add",...h){vh(e,t,n,h,{opacity:0},{opacity:1},{phase:a})}function t$({id:e},t,n,...a){vh(e,t,n,a,{opacity:1},{opacity:0},{phase:"remove"})}function Zz(e){return t=>({visible:e.getVisible(),opacity:e.getOpacity(),clipScalingX:1,clip:!1})}function HO({nodeDataDependencies:e},t){let n=a=>isFinite(a)?a:0;t.clipX=n(e.seriesRectWidth),t.clipY=n(e.seriesRectHeight)}var SV,$z=M({"packages/ag-charts-community/src/chart/series/cartesian/pathUtil.ts"(){"use strict";fs(),$Z(),SV={start:0,middle:.5,end:1}}}),wV,xV,WO,i$=M({"packages/ag-charts-community/src/chart/series/cartesian/areaSeries.ts"(){"use strict";fs(),tE(),Om(),$o(),Wa(),ts(),Ta(),Hn(),kv(),iy(),FO(),aa(),ac(),Ct(),Nu(),Il(),sc(),Kh(),IS(),BS(),j(),mV(),dc(),gw(),HL(),$z(),wV=.125,xV=.25,WO=class extends qp{constructor(e){super({moduleCtx:e,directionKeys:bd,directionNames:Ng,pathsPerSeries:["fill","stroke"],pathsZIndexSubOrderOffset:[0,1e3],hasMarkers:!0,markerSelectionGarbageCollection:!1,pickModes:[2,0],animationResetFns:{path:Zz({getVisible:()=>this.visible,getOpacity:()=>this.getOpacity()}),label:Ff,marker:(t,n)=>pe(pe({},GL(t)),jL(t,n))}}),this.properties=new O,this.connectsToYAxis=!0,this.backgroundGroup=new hn({name:`${this.id}-background`,zIndex:0}),this._isStacked=void 0}get pickModeAxis(){return"main"}renderToOffscreenCanvas(){return super.renderToOffscreenCanvas()||this.contextNodeData!=null&&(this.contextNodeData.fillData.spans.length>Kp||this.contextNodeData.strokeData.spans.length>Kp)}attachSeries(e,t,n){super.attachSeries(e,t,n),e.appendChild(this.backgroundGroup)}detachSeries(e,t,n){super.detachSeries(e,t,n),e==null||e.removeChild(this.backgroundGroup)}attachPaths([e,t]){this.backgroundGroup.appendChild(e),this.contentGroup.appendChild(t),t.zIndex=-1}isStacked(){var t,n;return((n=(t=this.seriesGrouping)==null?void 0:t.stackCount)!=null?n:1)>1}setSeriesIndex(e){let t=this.isStacked();return!super.setSeriesIndex(e)&&this._isStacked===t?!1:(this._isStacked=t,t?(this.backgroundGroup.zIndex=[0,e],this.contentGroup.zIndex=[1,e,0]):(this.backgroundGroup.zIndex=[1,e,0,0],this.contentGroup.zIndex=[1,e,0,1]),!0)}async processData(e){var we,Me;if(this.data==null||!this.properties.isValid())return;let{data:t,visible:n,seriesGrouping:{groupIndex:a=this.id,stackCount:h=1}={}}=this,{xKey:S,yKey:E,yFilterKey:L,connectMissingData:_,normalizedTo:N}=this.properties,V=!this.ctx.animationManager.isSkipped(),q=(we=this.axes.x)==null?void 0:we.scale,Y=(Me=this.axes.y)==null?void 0:Me.scale,{xScaleType:J,yScaleType:re}=this.getScaleInformation({xScale:q,yScale:Y}),ce={value:`area-stack-${a}-yValue`,values:`area-stack-${a}-yValues`,stack:`area-stack-${a}-yValue-stack`,marker:`area-stack-${a}-yValues-marker`},he=[];un(N)&&he.push(QS(Object.values(ce),N,"range")),V&&he.push(rC());let me={invalidValue:null};(un(N)||_)&&h>1&&(me.invalidValue=0),n||(me.forceValue=0),await this.requestDataModel(e,t,{props:[Jd(S,J,{id:"xValue"}),fn(E,re,pe({id:"yValueRaw"},me)),...L!=null?[fn(L,re,{id:"yFilterRaw"})]:[],...eR(E,re,et(pe({id:"yValueStack"},me),{groupId:ce.stack})),fn(E,re,et(pe({id:"yValue"},me),{groupId:ce.value})),...Xp(E,"window","current",et(pe({id:"yValueEnd"},me),{groupId:ce.values}),re),...Xp(E,"normal","current",et(pe({id:"yValueCumulative"},me),{groupId:ce.marker}),re),...he],groupByKeys:!0,groupByData:!1}),this.animationState.transition("updateData")}getSeriesDomain(e){var _;let{processedData:t,dataModel:n,axes:a}=this;if(!t||!n||!((_=t.rawData)!=null&&_.length))return[];let h=a.y,S=n.resolveProcessedDataDefById(this,"xValue"),E=n.getDomain(this,"xValue","key",t),L=n.getDomain(this,"yValueEnd","value",t);if(e==="x")return(S==null?void 0:S.def.type)==="key"&&S.def.valueType==="category"?E:Dl(gp(E));if(h instanceof jc||h instanceof ny)return Dl(L);{let N=[L[0]>0?0:L[0],L[1]<0?0:L[1]];return Dl(N)}}getSeriesRange(e,t){let{dataModel:n,processedData:a}=this;if(!n||!a)return[NaN,NaN];let h=this.axes.x.scale,S=n.resolveKeysById(this,"xValue",a),[E,L]=Ya(S.length,t,V=>{let q=h.convert(S[V]);return[q,q]}),[_,N]=n.getDomainBetweenRange(this,["yValueEnd"],[E,L],a);return[Math.min(_,0),Math.max(N,0)]}createNodeData(){var li,oi,vi;let{axes:e,data:t,processedData:n,dataModel:a}=this,h=e.x,S=e.y;if(!h||!S||!t||!a||!(n!=null&&n.rawData.length)||n.type!=="grouped"||!this.properties.isValid())return;let{yKey:E,xKey:L,yFilterKey:_,marker:N,label:V,fill:q,stroke:Y,connectMissingData:J,interpolation:re}=this.properties,{scale:ce}=h,{scale:he}=S,{isContinuousY:me}=this.getScaleInformation({xScale:ce,yScale:he}),we=((li=ce.bandwidth)!=null?li:0)/2,Me=a.resolveKeysById(this,"xValue",n),be=a.resolveColumnById(this,"yValueEnd",n),Le=a.resolveColumnById(this,"yValueRaw",n),Fe=a.resolveColumnById(this,"yValueCumulative",n),je=_!=null?a.resolveColumnById(this,"yFilterRaw",n):void 0,Xe=a.resolveColumnById(this,"yValueStack",n),nt=(gi,fi,ki)=>{let si;return(un(this.properties.normalizedTo)?me&&vb(ki):!isNaN(ki))&&(si=fi),{x:ce.convert(gi)+we,y:he.convert(si),size:N.size}},lt=[],ot=[],{visibleSameStackCount:vt}=this.ctx.seriesStateManager.getVisiblePeerGroupIndex(this),gt=!1,{rawData:bt}=n;n.groups.forEach(({datumIndices:gi})=>{gi.forEach(fi=>{var on,Dn,ln;let ki=Me[fi];if(ki==null)return;let si=bt[fi],di=Le[fi],Ii=Fe[fi],bi=be[fi],wi=Number.isFinite(di),Li=nt(ki,+Ii,di),Ln=je!=null?je[fi]===di:void 0;if(Ln===!1&&(gt=!0),wi&&N&&ot.push({index:fi,series:this,itemId:E,datum:si,datumIndex:fi,midPoint:{x:Li.x,y:Li.y},cumulativeValue:bi,yValue:di,xValue:ki,yKey:E,xKey:L,point:Li,fill:(on=N.fill)!=null?on:q,stroke:(Dn=N.stroke)!=null?Dn:Y,strokeWidth:(ln=N.strokeWidth)!=null?ln:this.getStrokeWidth(this.properties.strokeWidth),selected:Ln}),wi&&V){let ra=this.getLabelText(V,{value:di,datum:si,xKey:L,yKey:E,xName:this.properties.xName,yName:this.properties.yName});lt.push({index:fi,series:this,itemId:E,datum:si,x:Li.x,y:Li.y,labelText:ra})}})});let At=gi=>gi.flatMap(fi=>Array.isArray(fi)?Ha(fi,re):new Array(fi.skip).fill(null)),Rt=n.groups.flatMap(gi=>gi.datumIndices),It=(gi,fi)=>({point:{x:ce.convert(gi)+we,y:he.convert(fi)},xDatum:gi,yDatum:fi}),Dt=gi=>{let fi=[];for(let ki=0;ki<Rt.length;ki+=1){let si=Rt[ki],di=Me[si],Ii=Xe[si],bi=Ii[gi],wi=Number.isFinite(bi);if(J&&!wi)continue;let Li=ki>0?Xe[Rt[ki-1]]:void 0,Ln=ki<Rt.length-1?Xe[Rt[ki+1]]:void 0,on=0,Dn=0;for(let ra=0;ra<=gi;ra+=1){let sa=Ii[ra];if(Number.isFinite(sa)){let gs=Li==null||Number.isFinite(Li[ra]),jl=Ln==null||Number.isFinite(Ln[ra]);gs&&(on+=sa),jl&&(Dn+=sa)}}let ln=fi[fi.length-1];if(!J&&(on!==Dn||!wi))if(!wi&&Array.isArray(ln)&&ln.length===1)fi[fi.length-1]={skip:1};else{let ra=It(di,on),sa=It(di,Dn);Array.isArray(ln)?ln.push(ra):ln!=null&&(ln.skip+=1),fi.push(wi?[sa]:{skip:0})}else{let ra=Math.max(on,Dn),sa=It(di,ra);Array.isArray(ln)?ln.push(sa):ln!=null?(ln.skip+=1,fi.push([sa])):fi.push([sa])}}return At(fi)},jt=(vi=(oi=this.seriesGrouping)==null?void 0:oi.stackIndex)!=null?vi:0,Nt=()=>{let gi=Rt.map(fi=>{let ki=Me[fi],di=Xe[fi][jt];if(!(J&&!Number.isFinite(di)))return It(ki,0)}).filter(fi=>fi!=null);return Ha(gi,re)},zt=Dt(jt),Ut=zt.map(()=>null);for(let gi=jt-1;gi>=-1;gi-=1){let fi;for(let ki=0;ki<Ut.length;ki+=1)Ut[ki]==null&&(fi!=null||(fi=gi!==-1?Dt(gi):Nt()),Ut[ki]=fi[ki])}let Vt=zt.map((gi,fi)=>gi!=null?gi:Ut[fi]),Wt=zt.filter(gi=>gi!=null);return{itemId:E,fillData:{itemId:E,spans:Vt,phantomSpans:Ut},strokeData:{itemId:E,spans:Wt},labelData:lt,nodeData:ot,scales:this.calculateScaling(),visible:this.visible,stackVisible:vt>0,crossFiltering:gt}}isPathOrSelectionDirty(){return this.properties.marker.isDirty()}markerFactory(){let{shape:e}=this.properties.marker,t=La(e);return new t}updatePathNodes(e){var _;let{opacity:t,visible:n,animationEnabled:a}=e,[h,S]=e.paths,E=((_=this.contextNodeData)==null?void 0:_.crossFiltering)===!0,L=this.getStrokeWidth(this.properties.strokeWidth);S.setProperties({fill:void 0,lineCap:"round",lineJoin:"round",pointerEvents:1,stroke:this.properties.stroke,strokeWidth:L,strokeOpacity:this.properties.strokeOpacity*(E?xV:1),lineDash:this.properties.lineDash,lineDashOffset:this.properties.lineDashOffset,opacity:t,visible:n||a}),h.setProperties({stroke:void 0,lineJoin:"round",pointerEvents:1,fill:this.properties.fill,fillOpacity:this.properties.fillOpacity*(E?wV:1),fillShadow:this.properties.shadow,opacity:t,visible:n||a}),HO(this,S),HO(this,h)}updatePaths(e){this.updateAreaPaths(e.paths,e.contextData)}updateAreaPaths(e,t){for(let n of e)n.visible=t.visible;if(t.visible)this.updateFillPath(e,t),this.updateStrokePath(e,t);else for(let n of e)n.path.clear(),n.markDirty()}updateFillPath(e,t){let[n]=e;n.path.clear(),Wg(n,t.fillData),n.markDirty()}updateStrokePath(e,t){let{spans:n}=t.strokeData,[,a]=e;a.path.clear(),Sr(a,n),a.markDirty()}updateMarkerSelection(e){var h;let{nodeData:t,markerSelection:n}=e,a=this.properties.marker.enabled||((h=this.contextNodeData)==null?void 0:h.crossFiltering)===!0;return this.properties.marker.isDirty()&&(n.clear(),n.cleanup()),n.update(a?t:[])}getMarkerItemBaseStyle(e){var a,h,S,E,L;let{marker:t}=this.properties,n=e?this.properties.highlightStyle.item:void 0;return{fill:(a=n==null?void 0:n.fill)!=null?a:t.fill,fillOpacity:(h=n==null?void 0:n.fillOpacity)!=null?h:t.fillOpacity,stroke:(S=n==null?void 0:n.stroke)!=null?S:t.stroke,strokeWidth:(E=n==null?void 0:n.strokeWidth)!=null?E:t.strokeWidth,strokeOpacity:(L=n==null?void 0:n.strokeOpacity)!=null?L:t.strokeOpacity}}getMarkerItemStyleOverrides(e,t,n,a,h,S){let{marker:E}=this.properties,{itemStyler:L}=E;if(L==null)return;let{id:_,properties:N}=this,{xKey:V,yKey:q}=N,{xDomain:Y,yDomain:J}=this.cachedDatumCallback("domain",()=>({xDomain:this.getSeriesDomain("x"),yDomain:this.getSeriesDomain("y")}));return this.cachedDatumCallback(ie(e,S?"highlight":"node"),()=>L(pe(et(pe({seriesId:_},Hp(t,V,q,Y,J)),{xValue:n,yValue:a,highlighted:S}),h)))}updateMarkerNodes(e){let{markerSelection:t,isHighlight:n}=e,{xKey:a,yKey:h,marker:S,fill:E,stroke:L,strokeWidth:_,fillOpacity:N,strokeOpacity:V,highlightStyle:q}=this.properties,Y=this.getSeriesDomain("x"),J=this.getSeriesDomain("y"),re=ia(n&&q.item,S.getStyle(),{fill:E,stroke:L,strokeWidth:_,fillOpacity:N,strokeOpacity:V});t.each((ce,he)=>{this.updateMarkerStyle(ce,S,et(pe({},Hp(he,a,h,Y,J)),{highlighted:n}),re,{selected:he.selected})}),n||this.properties.marker.markClean()}updateLabelSelection(e){let{labelData:t,labelSelection:n}=e;return n.update(t)}updateLabelNodes(e){let{labelSelection:t}=e,{enabled:n,fontStyle:a,fontWeight:h,fontSize:S,fontFamily:E,color:L}=this.properties.label;t.each((_,N)=>{let{x:V,y:q,labelText:Y}=N;Y&&n&&this.visible?(_.fontStyle=a,_.fontWeight=h,_.fontSize=S,_.fontFamily=E,_.textAlign="center",_.textBaseline="bottom",_.text=Y,_.x=V,_.y=q-10,_.fill=L,_.visible=!0):_.visible=!1})}getTooltipContent(e){let{id:t,dataModel:n,processedData:a,axes:h,properties:S}=this,{xKey:E,xName:L,yKey:_,yName:N,tooltip:V}=S,q=h.x,Y=h.y;if(!n||!a||a.rawData.length===0||!q||!Y)return;let{datumIndex:J}=e,re=a.rawData[J],ce=n.resolveKeysById(this,"xValue",a)[J],he=n.resolveColumnById(this,"yValueRaw",a)[J];if(ce==null)return;let me=this.getMarkerItemBaseStyle(!1);return Object.assign(me,this.getMarkerItemStyleOverrides(String(J),re,ce,he,me,!1)),V.formatTooltip({heading:q.formatDatum(ce),symbol:this.legendItemSymbol(),data:[{label:N,fallbackLabel:_,value:Y.formatDatum(he)}]},pe(pe({seriesId:t,datum:re,title:N,xKey:E,xName:L,yKey:_,yName:N},me),this.getModuleTooltipParams()))}legendItemSymbol(){var _,N,V;let{fill:e,stroke:t,fillOpacity:n,strokeOpacity:a,strokeWidth:h,lineDash:S,marker:E}=this.properties,L=!E.enabled||E.fill===void 0;return{marker:{shape:E.shape,fill:L?e:E.fill,fillOpacity:L?n:E.fillOpacity,stroke:(_=E.stroke)!=null?_:t,strokeOpacity:(N=E.strokeOpacity)!=null?N:a,strokeWidth:(V=E.strokeWidth)!=null?V:0,enabled:E.enabled||h<=0},line:{stroke:t,strokeOpacity:a,strokeWidth:h,lineDash:S}}}getLegendData(e){var _;if(!this.properties.isValid()||e!=="category")return[];let{id:t,ctx:{legendManager:n},visible:a}=this,{yKey:h,yName:S,legendItemName:E,showInLegend:L}=this.properties;return[{legendType:e,id:t,itemId:h,seriesId:t,enabled:a&&n.getItemEnabled({seriesId:t,itemId:h}),label:{text:(_=E!=null?E:S)!=null?_:h},symbol:this.legendItemSymbol(),legendItemName:E,hideInLegend:!L}]}animateEmptyUpdateReady(e){let{markerSelection:t,labelSelection:n,contextData:a,paths:h}=e,{animationManager:S}=this.ctx;this.updateAreaPaths(h,a),Xz(this,S,...h),Eo([t],jL),Yz(this,S,t),Xa(this,"labels",S,n)}animateReadyResize(e){let{contextData:t,paths:n}=e;this.updateAreaPaths(n,t),super.animateReadyResize(e)}animateWaitingUpdateReady(e){let{animationManager:t}=this.ctx,{markerSelection:n,labelSelection:a,contextData:h,paths:S,previousContextData:E}=e,[L,_]=S;if(L==null&&_==null)return;this.resetMarkerAnimation(e),this.resetLabelAnimation(e);let N=()=>{this.resetPathAnimation(e),this.updateAreaPaths(S,h)},V=()=>{t.skipCurrentBatch(),N()};if(h==null||E==null){N(),BL(this,t,"added",n),VO(this,"fill_path_properties",t,"add",L),VO(this,"stroke_path_properties",t,"add",_),Xa(this,"labels",t,a);return}if(h.crossFiltering!==E.crossFiltering){V();return}let q=zL(h,E);if(q===void 0){V();return}else if(q.status==="no-op")return;BL(this,t,void 0,n),Do(this.id,"fill_path_properties",t,[L],q.fill.pathProperties),eE(this.id,"fill_path_update",t,[L],q.fill.path),Do(this.id,"stroke_path_properties",t,[_],q.stroke.pathProperties),eE(this.id,"stroke_path_update",t,[_],q.stroke.path),Xa(this,"labels",t,a),this.ctx.animationManager.animate({id:this.id,groupId:"reset_after_animation",phase:"trailing",from:{},to:{},onComplete:()=>this.updateAreaPaths(S,h)})}isLabelEnabled(){return this.properties.label.enabled}nodeFactory(){return new hn}getFormattedMarkerStyle(e){let{xKey:t,yKey:n}=e,a=this.getSeriesDomain("x"),h=this.getSeriesDomain("y");return this.getMarkerStyle(this.properties.marker,et(pe({},Hp(e,t,n,a,h)),{highlighted:!0}))}computeFocusBounds(e){return VL(this,e)}},WO.className="AreaSeries",WO.type="area"}}),MV,n$=M({"packages/ag-charts-community/src/chart/series/cartesian/areaSeriesModule.ts"(){"use strict";Of(),lr(),hw(),i$(),MV={type:"series",optionsKey:"series[]",packageType:"community",chartTypes:["cartesian"],identifier:"area",moduleFactory:e=>new WO(e),stackable:!0,tooltipDefaults:{range:"nearest"},defaultAxes:[{type:"number",position:"left"},{type:"category",position:"bottom"}],themeTemplate:{series:{nodeClickRange:"nearest",tooltip:{position:{type:"node"}},fillOpacity:.8,strokeOpacity:1,strokeWidth:0,lineDash:[0],lineDashOffset:0,shadow:{enabled:!1,color:sy,xOffset:3,yOffset:3,blur:5},interpolation:{type:"linear",tension:1,position:"end"},marker:{enabled:!1,shape:"circle",size:7,strokeWidth:0},label:{enabled:!1,fontSize:12,fontFamily:So,color:Vo}}},paletteFactory:e=>{let{marker:t}=mR(e);return{fill:t.fill,stroke:t.stroke,marker:t}}}}});function Qz(e,t){for(let n of t){let a=n.datum;a===void 0?Di.error("undefined datum"):e.addValue(n,a)}}function Jz(e,t){let{x:n,y:a}=t,{nearest:h,distanceSquared:S}=e.getQuadTree().find(n,a);if(h!==void 0)return{datum:h.value,distance:Math.sqrt(S)}}var e3=M({"packages/ag-charts-community/src/chart/series/cartesian/quadtreeUtil.ts"(){"use strict";Rn()}}),UO,t3,i3=M({"packages/ag-charts-community/src/chart/series/cartesian/abstractBarSeries.ts"(){"use strict";bu(),Gs(),ts(),Hn(),Ki(),Ym(),uc(),aa(),ac(),dc(),e3(),UO=class extends Bu{constructor(){super(...arguments),this.direction="vertical"}},f([$e(Ss)],UO.prototype,"direction",2),t3=class extends qp{constructor(){super(...arguments),this.groupScale=new dr,this.smallestDataInterval=void 0,this.largestDataInterval=void 0}padBandExtent(e,t){var S;let n=typeof t=="boolean"?1:.5,a=Na(this.smallestDataInterval)?this.smallestDataInterval*n:0,h=(S=gp(e))!=null?S:[NaN,NaN];return typeof t=="boolean"?h[t?0:1]-=(t?1:-1)*a:(h[0]-=a,h[1]+=a),Dl(h)}getBandScalePadding(){return{inner:.3,outer:.15}}shouldFlipXY(){return!this.isVertical()}isVertical(){return this.properties.direction==="vertical"}getBarDirection(){return this.shouldFlipXY()?"x":"y"}getCategoryDirection(){return this.shouldFlipXY()?"y":"x"}getValueAxis(){let e=this.getBarDirection();return this.axes[e]}getCategoryAxis(){let e=this.getCategoryDirection();return this.axes[e]}getBandwidth(e){return go.is(e.scale)?e.scale.calcBandwidth(this.smallestDataInterval):e.scale.bandwidth}updateGroupScale(e){let t=[],{groupScale:n}=this,a=this.getBandwidth(e),{index:h,visibleGroupCount:S}=this.ctx.seriesStateManager.getVisiblePeerGroupIndex(this);for(let L=0;L<S;L++)t.push(String(L));return n.domain=t,n.range=[0,a!=null?a:0],e instanceof Va?n.paddingInner=e.groupPaddingInner:e instanceof Iv?(n.paddingInner=e.groupPaddingInner,n.round=n.padding!==0):n.padding=0,{barWidth:n.bandwidth>=1?n.bandwidth:n.rawBandwidth,groupIndex:h}}resolveKeyDirection(e){return this.getBarDirection()==="x"?e==="x"?"y":"x":e}initQuadTree(e){Qz(e,this.datumNodesIter())}pickNodeClosestDatum(e){return Jz(this,e)}}}}),KO,ds,a$=M({"packages/ag-charts-community/src/chart/series/cartesian/barSeriesProperties.ts"(){"use strict";Gk(),Ki(),jd(),gC(),i3(),KO=class extends Hr{constructor(){super(...arguments),this.placement="inside-center",this.padding=0}},f([$e(zo(["inside-center","inside-start","inside-end","outside-start","outside-end"],"a placement"))],KO.prototype,"placement",2),f([$e(pa)],KO.prototype,"padding",2),ds=class extends UO{constructor(){super(...arguments),this.fill="#c16068",this.fillOpacity=1,this.stroke="#874349",this.strokeWidth=1,this.strokeOpacity=1,this.lineDash=[0],this.lineDashOffset=0,this.cornerRadius=0,this.crisp=void 0,this.shadow=new Uu,this.label=new KO,this.tooltip=new Wc,this.sparklineMode=!1,this.fastDataProcessing=!1}},f([$e(hi)],ds.prototype,"xKey",2),f([$e(hi,{optional:!0})],ds.prototype,"xName",2),f([$e(hi)],ds.prototype,"yKey",2),f([$e(hi,{optional:!0})],ds.prototype,"yName",2),f([$e(hi,{optional:!0})],ds.prototype,"yFilterKey",2),f([$e(hi,{optional:!0})],ds.prototype,"stackGroup",2),f([$e(pa,{optional:!0})],ds.prototype,"normalizedTo",2),f([$e(Ra)],ds.prototype,"fill",2),f([$e(Wn)],ds.prototype,"fillOpacity",2),f([$e(Ra)],ds.prototype,"stroke",2),f([$e(mi)],ds.prototype,"strokeWidth",2),f([$e(Wn)],ds.prototype,"strokeOpacity",2),f([$e(_d)],ds.prototype,"lineDash",2),f([$e(mi)],ds.prototype,"lineDashOffset",2),f([$e(mi)],ds.prototype,"cornerRadius",2),f([$e(Ji,{optional:!0})],ds.prototype,"crisp",2),f([$e(Kl,{optional:!0})],ds.prototype,"itemStyler",2),f([$e(Yi,{optional:!0})],ds.prototype,"shadow",2),f([$e(Yi)],ds.prototype,"label",2),f([$e(Yi)],ds.prototype,"tooltip",2),f([$e(Ji)],ds.prototype,"sparklineMode",2),f([$e(Ji)],ds.prototype,"fastDataProcessing",2)}});function kV(e,t){var n,a,h,S,E,L;e.crisp=(n=t.crisp)!=null?n:!0,e.fill=t.fill,e.stroke=t.stroke,e.strokeWidth=t.strokeWidth,e.fillOpacity=t.fillOpacity,e.strokeOpacity=t.strokeOpacity,e.lineDash=t.lineDash,e.lineDashOffset=t.lineDashOffset,e.fillShadow=t.fillShadow,e.topLeftCornerRadius=t.topLeftCornerRadius!==!1&&(a=t.cornerRadius)!=null?a:0,e.topRightCornerRadius=t.topRightCornerRadius!==!1&&(h=t.cornerRadius)!=null?h:0,e.bottomRightCornerRadius=t.bottomRightCornerRadius!==!1&&(S=t.cornerRadius)!=null?S:0,e.bottomLeftCornerRadius=t.bottomLeftCornerRadius!==!1&&(E=t.cornerRadius)!=null?E:0,e.visible=(L=t.visible)!=null?L:!0}function AV(e,t,N){var V=N,{datum:n,isHighlighted:a,style:h,highlightStyle:S,itemStyler:E,seriesId:L}=V,_=ji(V,["datum","isHighlighted","style","highlightStyle","itemStyler","seriesId"]);var be,Le,Fe,je,Xe,nt,lt,ot;let{fill:q,fillOpacity:Y,stroke:J,strokeWidth:re,strokeOpacity:ce,lineDash:he,lineDashOffset:me,cornerRadius:we=0}=ia(a&&S,h),Me;return E&&(Me=e.cachedDatumCallback(ie(t,a?"highlight":"node"),()=>E(pe({datum:n.datum,xKey:n.xKey,fill:q,fillOpacity:Y,stroke:J,strokeWidth:re,strokeOpacity:ce,lineDash:he,lineDashOffset:me,cornerRadius:we,highlighted:a,seriesId:L},_)))),{fill:(be=Me==null?void 0:Me.fill)!=null?be:q,fillOpacity:(Le=Me==null?void 0:Me.fillOpacity)!=null?Le:Y,stroke:(Fe=Me==null?void 0:Me.stroke)!=null?Fe:J,strokeWidth:(je=Me==null?void 0:Me.strokeWidth)!=null?je:re,strokeOpacity:(Xe=Me==null?void 0:Me.strokeOpacity)!=null?Xe:ce,lineDash:(nt=Me==null?void 0:Me.lineDash)!=null?nt:he,lineDashOffset:(lt=Me==null?void 0:Me.lineDashOffset)!=null?lt:me,cornerRadius:(ot=Me==null?void 0:Me.cornerRadius)!=null?ot:we,topLeftCornerRadius:h.topLeftCornerRadius,topRightCornerRadius:h.topRightCornerRadius,bottomRightCornerRadius:h.bottomRightCornerRadius,bottomLeftCornerRadius:h.bottomLeftCornerRadius,fillShadow:h.fillShadow}}function DV(e,t,n,a){if(t!=null){let[h,S]=t;if(h!==0||S!==1)return!1}if(go.is(e)){let h=e.calcBandwidth(a)-e.calcBandwidth(n);if(h>0&&h<1)return!1}return!0}function UL(e,t,n){let{startingX:a,startingY:h}=r$(e,t);return{isVertical:e,calculate:(E,L)=>{let _=e?E.x:a,N=e?h:E.y,V=e?E.width:0,q=e?0:E.height,{opacity:Y}=E;L&&(isNaN(_)||isNaN(N))&&({x:_,y:N}=L,V=e?L.width:0,q=e?0:L.height,e&&!qO(L)?N+=L.height:!e&&qO(L)&&(_+=L.width));let J;return E.clipBBox==null?J=void 0:qO(E)?J=e?new Ui(_,N-q,V,q):new Ui(_-V,N,V,q):J=new Ui(_,N,V,q),{x:_,y:N,width:V,height:q,clipBBox:J,opacity:Y}},mode:n}}function o$(e,t){return{isVertical:e,calculate:n=>({x:e?n.x:n.x+n.width/2,y:e?n.y+n.height/2:n.y,width:e?n.width:0,height:e?0:n.height,clipBBox:n.clipBBox,opacity:n.opacity}),mode:t}}function KL(e){let t=h=>h==null||isNaN(h.x)||isNaN(h.y);return{toFn:(h,S,E)=>E==="removed"&&h.datum==null&&e.mode==="fade"?et(pe({},qL(h,S)),{opacity:0}):E==="removed"||t(S)?e.calculate(S,h.previousDatum):{x:S.x,y:S.y,width:S.width,height:S.height,clipBBox:S.clipBBox,opacity:S.opacity},fromFn:(h,S,E)=>{E==="updated"&&t(S)?E="removed":E==="updated"&&t(h.previousDatum)&&(E="added");let L;E==="added"&&h.previousDatum==null&&e.mode==="fade"?L=et(pe({},qL(h,S)),{opacity:0}):E==="unknown"||E==="added"?L=e.calculate(S,h.previousDatum):L={x:h.x,y:h.y,width:h.width,height:h.height,clipBBox:h.clipBBox,opacity:h.opacity};let _=pl[E];return et(pe({},L),{phase:_})}}}function r$(e,t){let n=t[e?"y":"x"],a=1/0,h=0;return n?(e?h=n.scale.convert(go.is(n.scale)?0:Math.max(...n.range)):a=n.scale.convert(go.is(n.scale)?0:Math.min(...n.range)),{startingX:a,startingY:h}):{startingX:a,startingY:h}}function qL(e,{x:t,y:n,width:a,height:h,clipBBox:S,opacity:E}){return{x:t,y:n,width:a,height:h,clipBBox:S,opacity:E}}function n3(e){if(e===void 0)return;let{x:t,y:n,width:a,height:h}=e;return new Ui(t,n,a,h)}var qO,a3=M({"packages/ag-charts-community/src/chart/series/cartesian/barUtil.ts"(){"use strict";fs(),Gs(),jn(),zn(),Ta(),aa(),Ct(),qO=e=>{var t;return ZC((t=e.yValue)!=null?t:0)}}});function EV(e,t,n){if(t.enabled&&n){let{x:a,y:h,text:S,textAlign:E,textBaseline:L}=n,{color:_,fontStyle:N,fontWeight:V,fontSize:q,fontFamily:Y}=t;e.setProperties({visible:!0,x:a,y:h,text:S,fill:_,fontStyle:N,fontWeight:V,fontSize:q,fontFamily:Y,textAlign:E,textBaseline:L})}else e.visible=!1}function IV({isUpward:e,isVertical:t,placement:n,padding:a=0,rect:h}){let S=h.x+h.width/2,E=h.y+h.height/2,L="center",_="middle";if(n!=="inside-center"){let N=(e?1:-1)*(t?-1:1),{direction:V,textAlignment:q}=TV[n],Y=(V+1)*.5;if(t){let J=e?h.y+h.height:h.y,re=h.height*N;E=J+re*Y+a*q*N,_=q===N?"top":"bottom"}else{let J=e?h.x:h.x+h.width,re=h.width*N;S=J+re*Y+a*q*N,L=q===N?"left":"right"}}return{x:S,y:E,textAlign:L,textBaseline:_}}var TV,RV=M({"packages/ag-charts-community/src/chart/series/cartesian/labelUtil.ts"(){"use strict";TV={"inside-start":{inside:!0,direction:-1,textAlignment:1},"inside-end":{inside:!0,direction:1,textAlignment:-1},"outside-start":{inside:!1,direction:-1,textAlignment:-1},"outside-end":{inside:!1,direction:1,textAlignment:1}}}}),o3,r3,PV,LV,s3,YL,OV=M({"packages/ag-charts-community/src/chart/series/cartesian/barSeries.ts"(){"use strict";fs(),Gs(),jn(),Wa(),as(),$p(),zn(),Hn(),iy(),aa(),ac(),Ct(),Il(),sc(),Kh(),BS(),i3(),a$(),a3(),dc(),RV(),ro(),o3=0,r3=1,PV=2,LV=3,s3=4,YL=class extends t3{constructor(e){super({moduleCtx:e,directionKeys:bd,directionNames:Ng,pickModes:[2,1,0],pathsPerSeries:[],hasHighlightedLabels:!0,datumSelectionGarbageCollection:!1,animationAlwaysUpdateSelections:!0,animationResetFns:{datum:qL,label:Ff}}),this.properties=new ds,this.connectsToYAxis=!0,this.dataAggregationFilters=void 0}get pickModeAxis(){return this.properties.sparklineMode?"main":void 0}crossFilteringEnabled(){return this.properties.yFilterKey!=null&&(this.seriesGrouping==null||this.seriesGrouping.stackIndex===0)}async processData(e){var je,Xe,nt,lt,ot,vt,gt,bt;if(!this.properties.isValid()||!this.data)return;let{xKey:t,yKey:n,yFilterKey:a,normalizedTo:h,fastDataProcessing:S}=this.properties,{seriesGrouping:{groupIndex:E=this.id}={},data:L}=this,_=(Xe=(je=this.seriesGrouping)==null?void 0:je.groupCount)!=null?Xe:0,N=(lt=(nt=this.seriesGrouping)==null?void 0:nt.stackCount)!=null?lt:0,V=!S||h!=null||_>1||N>1,q=!this.ctx.animationManager.isSkipped(),Y=(ot=this.getCategoryAxis())==null?void 0:ot.scale,J=(vt=this.getValueAxis())==null?void 0:vt.scale,{isContinuousX:re,xScaleType:ce,yScaleType:he}=this.getScaleInformation({xScale:Y,yScale:J}),me=`bar-stack-${E}-yValues`,we=`${me}-trailing`,Me=this.visible?{}:{forceValue:0},be=[Jd(t,ce,{id:"xValue"}),fn(n,he,pe({id:"yValue-raw",invalidValue:null},Me))];this.crossFilteringEnabled()&&be.push(fn(a,he,pe({id:"yFilterValue",invalidValue:null},Me))),V&&be.push(...Xp(n,"normal","current",pe({id:"yValue-end",rangeId:"yValue-range",invalidValue:null,missingValue:0,groupId:me,separateNegative:!0},Me),he),...Xp(n,"trailing","current",pe({id:"yValue-start",invalidValue:null,missingValue:0,groupId:we,separateNegative:!0},Me),he)),re&&be.push(ue,De),Na(h)&&be.push(QS([me,we],Math.abs(h),"range")),q&&this.processedData&&be.push($(this.id,this.processedData)),(q||!V)&&be.push(rC());let{dataModel:Le,processedData:Fe}=await this.requestDataModel(e,L,{props:be,groupByKeys:V,groupByData:!V});this.dataAggregationFilters=this.aggregateData(Le,Fe),this.smallestDataInterval=(gt=Fe.reduced)==null?void 0:gt.smallestKeyInterval,this.largestDataInterval=(bt=Fe.reduced)==null?void 0:bt.largestKeyInterval,this.animationState.transition("updateData")}getSeriesDomain(e){var _,N;let{processedData:t,dataModel:n}=this;if(n==null||t==null)return[];let a=(N=(_=t.rawDataSources)==null?void 0:_.get(this.id))!=null?N:t.rawData;if(a==null||a.length===0)return[];let h=n.resolveProcessedDataDefById(this,"xValue"),S=n.getDomain(this,"xValue","key",t),E=t.type==="grouped"?n.getDomain(this,"yValue-end","value",t):n.getDomain(this,"yValue-raw","value",t),L=this.crossFilteringEnabled()?n.getDomain(this,"yFilterValue","value",t):void 0;if(L!=null&&(E=[Math.min(E[0],L[0]),Math.max(E[1],L[1])]),e===this.getCategoryDirection())return(h==null?void 0:h.def.type)==="key"&&h.def.valueType==="category"?S:this.padBandExtent(S);if(this.getValueAxis()instanceof jc)return Dl(E);{let V=[Math.min(0,E[0]),Math.max(0,E[1])];return Dl(V)}}getSeriesRange(e,t){var q;let{dataModel:n,processedData:a}=this;if(!n||!a||this.getBarDirection()==="x")return[NaN,NaN];let h=this.axes.x.scale,S=n.resolveKeysById(this,"xValue",a),E=(q=h.bandwidth)!=null?q:0,[L,_]=Ya(S.length,t,Y=>{let J=h.convert(S[Y]);return[J,J+E]}),[N,V]=n.getDomainBetweenRange(this,a.type==="ungrouped"?["yValue-raw"]:["yValue-end"],[L,_],a);return[Math.min(N,0),Math.max(V,0)]}aggregateData(e,t){}visibleRange(e,t,n,a){return[0,e]}createNodeData(){var ci,li;let{dataModel:e,processedData:t,groupScale:n,dataAggregationFilters:a}=this,h=this.getCategoryAxis(),S=this.getValueAxis();if(!e||!t||!h||!S||!this.properties.isValid())return;let E=(li=(ci=t.rawDataSources)==null?void 0:ci.get(this.id))!=null?li:t.rawData;if(E==null||E.length===0)return;let L=h.scale,_=S.scale,{xKey:N,yKey:V,xName:q,yName:Y,fill:J,stroke:re,strokeWidth:ce,cornerRadius:he,legendItemName:me,label:we}=this.properties,Me=S.isReversed(),{barWidth:be,groupIndex:Le}=this.updateGroupScale(h),Fe=n.convert(String(Le)),je=go.is(L)?be*-.5:0,Xe=e.resolveKeysById(this,"xValue",t),nt=e.resolveColumnById(this,"yValue-raw",t),lt=this.crossFilteringEnabled()?e.resolveColumnById(this,"yFilterValue",t):void 0,ot=!this.ctx.animationManager.isSkipped(),vt=oi=>L.convert(Xe[oi])+Fe+je,gt=_.convert(0),bt=({datum:oi,datumIndex:vi,valueIndex:gi,xValue:fi,yValue:ki,cumulativeValue:si,phantom:di,currY:Ii,prevY:bi,x:wi,width:Li,isPositive:Ln,yRange:on,labelText:Dn,opacity:ln,crossScale:ra=1})=>{let sa=Ln!==Me,gs=_.convert(Ii),jl=_.convert(bi),dh=_.convert(on),Rs=this.getBarDirection()==="x",Zh=Li*.5*(1-ra),Qc={x:Rs?Math.min(gs,jl):wi+Zh,y:Rs?wi+Zh:Math.min(gs,jl),width:Rs?Math.abs(jl-gs):Li*ra,height:Rs?Li*ra:Math.abs(jl-gs)},eI=new Ui(Qc.x,Qc.y,Qc.width,Qc.height),BC={x:Rs?Math.min(gt,dh):wi+Zh,y:Rs?wi+Zh:Math.min(gt,dh),width:Rs?Math.abs(gt-dh):Li*ra,height:Rs?Li*ra:Math.abs(gt-dh)},RA=this.shouldFlipXY()?Qc.height:Qc.width;return{series:this,itemId:di?ie(V,di):V,datum:oi,datumIndex:vi,valueIndex:gi,cumulativeValue:si,phantom:di,xValue:fi,yValue:ki,yKey:V,xKey:N,capDefaults:{lengthRatioMultiplier:RA,lengthMax:RA},x:BC.x,y:BC.y,width:BC.width,height:BC.height,midPoint:{x:Qc.x+Qc.width/2,y:Qc.y+Qc.height/2},fill:J,stroke:re,opacity:ln,strokeWidth:ce,cornerRadius:he,topLeftCornerRadius:Rs!==sa,topRightCornerRadius:sa,bottomRightCornerRadius:Rs===sa,bottomLeftCornerRadius:!sa,clipBBox:eI,label:Dn!=null?pe({text:Dn},IV({isUpward:sa,isVertical:!Rs,placement:we.placement,padding:we.padding,rect:Qc})):void 0,missing:ki==null,focusable:!di}},At=[],Rt=[],It=[],Dt=(oi,vi,gi,fi,ki,si,di,Ii)=>{let bi=Xe[oi];if(bi==null)return;let wi=nt[oi],Li=lt!=null?Number(lt[oi]):void 0,Ln=wi>=0&&!Object.is(wi,-0);if(!Number.isFinite(si)||Li!=null&&!Number.isFinite(Li))return;let on=wi!=null?this.getLabelText(this.properties.label,{datum:E[oi],value:Li!=null?Li:wi,xKey:N,yKey:V,xName:q,yName:Y,legendItemName:me}):void 0,Dn=Li!=null&&Li>wi,ln=bt({datum:E[oi],datumIndex:oi,valueIndex:vi,xValue:bi,yValue:Li!=null?Li:wi,cumulativeValue:Li!=null?Li:si,phantom:!1,currY:Li!=null?ki+Li:si,prevY:ki,x:gi,width:fi,isPositive:Ln,yRange:Math.max(ki+(Li!=null?Li:-1/0),di),labelText:on,opacity:Ii,crossScale:Dn?.6:void 0});if(Rt.push(ln),It.push(ln),Li!=null){let ra=bt({datum:E[oi],datumIndex:oi,valueIndex:vi,xValue:bi,yValue:Li,cumulativeValue:Li,phantom:!0,currY:si,prevY:ki,x:gi,width:fi,isPositive:Ln,yRange:di,labelText:void 0,opacity:Ii,crossScale:void 0});At.push(ra)}},[jt,Nt]=zs(h.range),[zt,Ut]=L.range,Vt=Ut-zt,Wt=a==null?void 0:a.find(oi=>oi.maxRange>Vt);if(t.type==="grouped"){let oi=be,vi=e.resolveColumnById(this,"yValue-start",t),gi=e.resolveColumnById(this,"yValue-end",t),fi=e.resolveProcessedDataIndexById(this,"yValue-range");t.groups.forEach(({datumIndices:ki,aggregation:si})=>{let di=si[fi];ki.forEach((Ii,bi)=>{let wi=vt(Ii),Li=nt[Ii],Ln=Li>=0&&!Object.is(Li,-0),on=Number(vi[Ii]),Dn=Number(gi[Ii]),ln=di[Ln?1:0];Dt(Ii,bi,wi,oi,on,Dn,ln,1)})})}else if(Wt==null){let oi=be,[vi,gi]=this.visibleRange(E.length,jt,Nt,vt);t.rawData.length<1e3&&(vi=0,gi=t.rawData.length);for(let fi=vi;fi<gi;fi+=1){let ki=vt(fi),si=Number(nt[fi]);Dt(fi,0,ki,oi,0,si,si,1)}}else{let{maxRange:oi,indexData:vi}=Wt,[gi,fi]=this.visibleRange(oi,jt,Nt,ki=>{let si=ki*s3,di=vi[si+o3],Ii=vi[si+r3],bi=(di+Ii)/2|0;return di!==-1?vt(bi):NaN});for(let ki=gi;ki<fi;ki+=1){let si=ki*s3,di=vi[si+o3],Ii=vi[si+r3],bi=vi[si+PV],wi=vi[si+LV];if(di===-1)continue;let Li=vt((di+Ii)/2|0),Ln=Math.abs(vt(Ii)-vt(di))+be,on=Xe[wi]!=null?Number(nt[wi]):NaN,Dn=Xe[bi]!=null?Number(nt[bi]):NaN;if(on>0){let ln=Dn>=0?Dn/on:1;Dt(wi,0,Li,Ln,0,on,on,ln)}if(Dn<0){let ln=on<=0?on/Dn:1;Dt(bi,1,Li,Ln,0,Dn,Dn,ln)}}}return{itemId:V,nodeData:At.length>0?[...At,...Rt]:Rt,labelData:It,scales:this.calculateScaling(),visible:this.visible||ot,groupScale:this.getScaling(this.groupScale)}}nodeFactory(){return new Co}getHighlightData(e,t){let n=e.find(a=>a.datum===t.datum&&!a.phantom);return n!=null?[n]:void 0}updateDatumSelection(e){return e.datumSelection.update(e.nodeData,void 0,t=>this.getDatumId(t))}getItemBaseStyle(e){var h,S,E,L,_,N,V,q;let{properties:t}=this,{cornerRadius:n}=t,a=e?t.highlightStyle.item:void 0;return{fill:(h=a==null?void 0:a.fill)!=null?h:t.fill,fillOpacity:(S=a==null?void 0:a.fillOpacity)!=null?S:t.fillOpacity,stroke:(E=a==null?void 0:a.stroke)!=null?E:t.stroke,strokeWidth:(L=a==null?void 0:a.strokeWidth)!=null?L:t.strokeWidth,strokeOpacity:(_=a==null?void 0:a.strokeOpacity)!=null?_:t.strokeOpacity,lineDash:(V=(N=a==null?void 0:a.lineDash)!=null?N:t.lineDash)!=null?V:[],lineDashOffset:(q=a==null?void 0:a.lineDashOffset)!=null?q:t.lineDashOffset,cornerRadius:n}}getItemStyleOverrides(e,t,n,a,h,S){let{id:E,properties:L}=this,{xKey:_,yKey:N,itemStyler:V}=L;if(V==null)return;let{xDomain:q,yDomain:Y}=this.cachedDatumCallback("domain",()=>({xDomain:this.getSeriesDomain("x"),yDomain:this.getSeriesDomain("y")}));return this.cachedDatumCallback(ie(e,S?"highlight":"node"),()=>V(pe(et(pe({seriesId:E},Hp(t,_,N,q,Y)),{xValue:n,yValue:a,highlighted:S}),h)))}updateDatumNodes(e){var be;if(!this.properties.isValid())return;let{xKey:t,yKey:n,stackGroup:a,fill:h,fillOpacity:S,stroke:E,strokeWidth:L,strokeOpacity:_,lineDash:N,lineDashOffset:V,itemStyler:q,shadow:Y,highlightStyle:{item:J}}=this.properties,re=this.axes.x,ce=(be=this.properties.crisp)!=null?be:DV(re==null?void 0:re.scale,re==null?void 0:re.visibleRange,this.smallestDataInterval,this.largestDataInterval),he=this.getCategoryDirection()==="x",me={fill:h,stroke:E,lineDash:N,lineDashOffset:V,fillShadow:Y,strokeWidth:this.getStrokeWidth(L),fillOpacity:0,strokeOpacity:0},we=this.getSeriesDomain("x"),Me=this.getSeriesDomain("y");e.datumSelection.each((Le,Fe)=>{var lt,ot,vt,gt;let je=pe({seriesId:this.id,isHighlighted:e.isHighlight,highlightStyle:J,style:me,itemStyler:q,stackGroup:a},Hp(Fe,t,n,we,Me));me.fillOpacity=S*(Fe.phantom?.2:1),me.strokeOpacity=_*(Fe.phantom?.2:1),me.cornerRadius=Fe.cornerRadius,me.topLeftCornerRadius=Fe.topLeftCornerRadius,me.topRightCornerRadius=Fe.topRightCornerRadius,me.bottomRightCornerRadius=Fe.bottomRightCornerRadius,me.bottomLeftCornerRadius=Fe.bottomLeftCornerRadius;let Xe=he?((ot=(lt=Fe.clipBBox)==null?void 0:lt.width)!=null?ot:Fe.width)>0:((gt=(vt=Fe.clipBBox)==null?void 0:vt.height)!=null?gt:Fe.height)>0,nt=AV(this,this.getDatumId(Fe),je);nt.crisp=ce,nt.visible=Xe,kV(Le,nt)})}updateLabelSelection(e){let t=this.isLabelEnabled()?e.labelData:[];return e.labelSelection.update(t,n=>{n.pointerEvents=1})}updateLabelNodes(e){e.labelSelection.each((t,n)=>{EV(t,this.properties.label,n.label)})}getTooltipContent(e){let{id:t,dataModel:n,processedData:a,properties:h}=this,{xKey:S,xName:E,yKey:L,yName:_,legendItemName:N,stackGroup:V,tooltip:q}=h,Y=this.getCategoryAxis(),J=this.getValueAxis();if(!n||!a||a.rawData.length===0||!Y||!J)return;let{datumIndex:re}=e,ce=a.rawData[re],he=n.resolveKeysById(this,"xValue",a)[re],me=n.resolveColumnById(this,"yValue-raw",a)[re];if(he==null)return;let we=this.getItemBaseStyle(!1);return Object.assign(we,this.getItemStyleOverrides(String(re),ce,he,me,we,!1)),q.formatTooltip({heading:Y.formatDatum(he),symbol:this.legendItemSymbol(),data:[{label:_,fallbackLabel:L,value:J.formatDatum(me)}]},pe(pe({seriesId:t,datum:ce,title:_,xKey:S,xName:E,yKey:L,yName:_,legendItemName:N,stackGroup:V},we),this.getModuleTooltipParams()))}legendItemSymbol(){let{fill:e,stroke:t,strokeWidth:n,fillOpacity:a,strokeOpacity:h}=this.properties;return{marker:{fill:e,fillOpacity:a,stroke:t,strokeWidth:n,strokeOpacity:h}}}getLegendData(e){var _;let{showInLegend:t}=this.properties;if(e!=="category"||!this.properties.isValid())return[];let{id:n,ctx:{legendManager:a},visible:h}=this,{yKey:S,yName:E,legendItemName:L}=this.properties;return[{legendType:"category",id:n,itemId:S,seriesId:n,enabled:h&&a.getItemEnabled({seriesId:n,itemId:S}),label:{text:(_=L!=null?L:E)!=null?_:S},symbol:this.legendItemSymbol(),legendItemName:L,hideInLegend:!t}]}animateEmptyUpdateReady({datumSelection:e,labelSelection:t,annotationSelections:n}){let a=KL(UL(this.isVertical(),this.axes,"normal"));Do(this.id,"nodes",this.ctx.animationManager,[e],a),Xa(this,"labels",this.ctx.animationManager,t),Xa(this,"annotations",this.ctx.animationManager,...n)}animateWaitingUpdateReady(e){var V,q,Y,J,re,ce;let{datumSelection:t,labelSelection:n,annotationSelections:a,previousContextData:h}=e;this.ctx.animationManager.stopByAnimationGroupId(this.id);let S=(Y=(q=(V=this.processedData)==null?void 0:V.reduced)==null?void 0:q.diff)==null?void 0:Y[this.id];S==null&&((re=(J=this.processedData)==null?void 0:J.reduced)==null?void 0:re.diff)!=null&&(S={changed:!0,added:new Set(Array.from(t,({datum:he})=>this.getDatumId(he))),updated:new Set,removed:new Set,moved:new Set});let E=h==null?"fade":"normal",L=KL(UL(this.isVertical(),this.axes,E));Do(this.id,"nodes",this.ctx.animationManager,[t],L,(he,me)=>this.getDatumId(me),S);let _=h!=null&&(!xo(e.contextData.scales.x,h.scales.x)||!xo(e.contextData.scales.y,h.scales.y)||!xo(e.contextData.groupScale,e.previousContextData.groupScale));(((ce=S==null?void 0:S.changed)!=null?ce:!1)||_)&&(Xa(this,"labels",this.ctx.animationManager,n),Xa(this,"annotations",this.ctx.animationManager,...a))}getDatumId(e){return ie(e.xValue,e.valueIndex,e.phantom)}isLabelEnabled(){return this.properties.label.enabled}computeFocusBounds({datumIndex:e}){var n;let t=(n=this.contextNodeData)==null?void 0:n.nodeData[e].clipBBox;return n3(t)}},YL.className="BarSeries",YL.type="bar"}}),l3,_V=M({"packages/ag-charts-community/src/chart/series/cartesian/barSeriesModule.ts"(){"use strict";Of(),lr(),hw(),OV(),l3={type:"series",optionsKey:"series[]",packageType:"community",chartTypes:["cartesian"],identifier:"bar",moduleFactory:e=>new YL(e),stackable:!0,groupable:!0,tooltipDefaults:{range:"exact"},defaultAxes:pR([{type:"number",position:"left"},{type:"category",position:"bottom"}],e=>(e==null?void 0:e.direction)==="horizontal"),themeTemplate:{series:{direction:"vertical",fillOpacity:1,strokeWidth:0,lineDash:[0],lineDashOffset:0,label:{enabled:!1,fontWeight:"normal",fontSize:12,fontFamily:So,color:Qp,placement:"inside-center"},shadow:{enabled:!1,color:sy,xOffset:3,yOffset:3,blur:5},errorBar:{cap:{lengthRatio:.3}}}},paletteFactory:Bk}}}),YO,c3,er,s$=M({"packages/ag-charts-community/src/chart/series/cartesian/bubbleSeriesProperties.ts"(){"use strict";ox(),Oc(),Ki(),jd(),nE(),gC(),dc(),YO=class extends ou{constructor(){super(...arguments),this.maxSize=30}},f([$e(mi),Hi()],YO.prototype,"maxSize",2),f([$e(Qy,{optional:!0}),Hi()],YO.prototype,"domain",2),c3=class extends Hr{constructor(){super(...arguments),this.placement="top"}},f([$e(Ah)],c3.prototype,"placement",2),er=class extends Bu{constructor(){super(...arguments),this.colorRange=["#ffff00","#00ff00","#0000ff"],this.label=new c3,this.tooltip=new Wc,this.marker=new YO}},f([$e(hi)],er.prototype,"xKey",2),f([$e(hi)],er.prototype,"yKey",2),f([$e(hi)],er.prototype,"sizeKey",2),f([$e(hi,{optional:!0})],er.prototype,"labelKey",2),f([$e(hi,{optional:!0})],er.prototype,"colorKey",2),f([$e(hi,{optional:!0})],er.prototype,"xFilterKey",2),f([$e(hi,{optional:!0})],er.prototype,"yFilterKey",2),f([$e(hi,{optional:!0})],er.prototype,"sizeFilterKey",2),f([$e(hi,{optional:!0})],er.prototype,"xName",2),f([$e(hi,{optional:!0})],er.prototype,"yName",2),f([$e(hi,{optional:!0})],er.prototype,"sizeName",2),f([$e(hi,{optional:!0})],er.prototype,"labelName",2),f([$e(hi,{optional:!0})],er.prototype,"colorName",2),f([$e(Qy,{optional:!0})],er.prototype,"colorDomain",2),f([$e(Hs)],er.prototype,"colorRange",2),f([$e(hi,{optional:!0})],er.prototype,"title",2),f([Ir("marker.shape")],er.prototype,"shape",2),f([Ir("marker.size")],er.prototype,"size",2),f([Ir("marker.maxSize")],er.prototype,"maxSize",2),f([Ir("marker.domain",{optional:!0})],er.prototype,"domain",2),f([Ir("marker.fill",{optional:!0})],er.prototype,"fill",2),f([Ir("marker.fillOpacity")],er.prototype,"fillOpacity",2),f([Ir("marker.stroke",{optional:!0})],er.prototype,"stroke",2),f([Ir("marker.strokeWidth")],er.prototype,"strokeWidth",2),f([Ir("marker.strokeOpacity")],er.prototype,"strokeOpacity",2),f([Ir("marker.itemStyler",{optional:!0})],er.prototype,"itemStyler",2),f([$e(Yi)],er.prototype,"label",2),f([$e(Yi)],er.prototype,"tooltip",2)}}),FV,XO,l$=M({"packages/ag-charts-community/src/chart/series/cartesian/bubbleSeries.ts"(){"use strict";yv(),Zp(),$o(),Wa(),Pc(),ts(),Ta(),cd(),aa(),ac(),Ct(),Nu(),Il(),sc(),Kh(),s$(),dc(),HL(),FV=class extends aC{constructor(e,t,n,a){super(e,t,n,a),this.sizeKey=a.properties.sizeKey}},XO=class extends qp{constructor(e){super({moduleCtx:e,directionKeys:bd,directionNames:Ng,pickModes:[2,1,0],pathsPerSeries:[],hasMarkers:!0,markerSelectionGarbageCollection:!1,animationResetFns:{label:Ff,marker:GL},usesPlacedLabels:!0}),this.NodeEvent=FV,this.clipFocusBox=!1,this.properties=new er,this.sizeScale=new Sd,this.colorScale=new Au}get pickModeAxis(){return"main-category"}async processData(e){var Fe,je,Xe,nt;if(!this.properties.isValid()||this.data==null||!this.visible)return;let t=(Fe=this.axes.x)==null?void 0:Fe.scale,n=(je=this.axes.y)==null?void 0:je.scale,{xScaleType:a,yScaleType:h}=this.getScaleInformation({xScale:t,yScale:n}),S=this.colorScale.type,E=this.sizeScale.type,{xKey:L,yKey:_,sizeKey:N,xFilterKey:V,yFilterKey:q,sizeFilterKey:Y,labelKey:J,colorDomain:re,colorRange:ce,colorKey:he,marker:me}=this.properties,{dataModel:we,processedData:Me}=await this.requestDataModel(e,this.data,{props:[fn(L,a,{id:"xValue"}),fn(_,h,{id:"yValue"}),...V!=null?[fn(V,a,{id:"xFilterValue"})]:[],...q!=null?[fn(q,h,{id:"yFilterValue"})]:[],...Y!=null?[fn(Y,E,{id:"sizeFilterValue"})]:[],fn(N,E,{id:"sizeValue"}),...he?[fn(he,S,{id:"colorValue"})]:[],...J?[fn(J,"band",{id:"labelValue"})]:[]]}),be=we.resolveProcessedDataIndexById(this,"sizeValue"),Le=(Xe=Me.domain.values[be])!=null?Xe:[];if(this.sizeScale.domain=me.domain?me.domain:Le,he){let lt=we.resolveProcessedDataIndexById(this,"colorValue");this.colorScale.domain=(nt=re!=null?re:Me.domain.values[lt])!=null?nt:[],this.colorScale.range=ce,this.colorScale.update()}this.animationState.transition("updateData")}getSeriesDomain(e){let{dataModel:t,processedData:n}=this;if(!n||!t)return[];let a=e==="x"?"xValue":"yValue",h=t.resolveProcessedDataDefById(this,a),S=t.getDomain(this,a,"value",n);return(h==null?void 0:h.def.type)==="value"&&(h==null?void 0:h.def.valueType)==="category"?S:Dl(gp(S))}getSeriesRange(e,t){return[NaN,NaN]}createNodeData(){var Vt,Wt;let{axes:e,dataModel:t,processedData:n,colorScale:a,sizeScale:h,visible:S}=this,{xKey:E,yKey:L,sizeKey:_,xFilterKey:N,yFilterKey:V,sizeFilterKey:q,labelKey:Y,xName:J,yName:re,sizeName:ce,labelName:he,label:me,colorKey:we,marker:Me}=this.properties,be=La(Me.shape),{placement:Le}=me,Fe=e.x,je=e.y;if(!(t&&(n!=null&&n.rawData.length)&&S&&Fe&&je))return;let Xe=t.resolveColumnById(this,"xValue",n),nt=t.resolveColumnById(this,"yValue",n),lt=_!=null?t.resolveColumnById(this,"sizeValue",n):void 0,ot=we!=null?t.resolveColumnById(this,"colorValue",n):void 0,vt=Y!=null?t.resolveColumnById(this,"labelValue",n):void 0,gt=N!=null?t.resolveColumnById(this,"xFilterValue",n):void 0,bt=V!=null?t.resolveColumnById(this,"yFilterValue",n):void 0,At=q!=null?t.resolveColumnById(this,"sizeFilterValue",n):void 0,Rt=Fe.scale,It=je.scale,Dt=((Vt=Rt.bandwidth)!=null?Vt:0)/2,jt=((Wt=It.bandwidth)!=null?Wt:0)/2,Nt=[];h.range=[Me.size,Me.maxSize];let zt=me.getFont(),Ut=ug.getMeasurer({font:zt});return n.rawData.forEach((ci,li)=>{let oi=Xe[li],vi=nt[li],gi=lt==null?void 0:lt[li],fi=Rt.convert(oi)+Dt,ki=It.convert(vi)+jt,si;gt!=null&&bt!=null&&(si=gt[li]===oi&&bt[li]===vi,At!=null&&si&&(si=At[li]===gi));let di=this.getLabelText(me,{value:vt!=null?vt[li]:vi,datum:ci,xKey:E,yKey:L,sizeKey:_,labelKey:Y,xName:J,yName:re,sizeName:ce,labelName:he}),Ii=Ut.measureText(String(di)),bi=gi!=null?h.convert(gi):Me.size,wi=ot!=null?a.convert(ot[li]):void 0;Nt.push({series:this,itemId:L,yKey:L,xKey:E,datum:ci,datumIndex:li,xValue:oi,yValue:vi,sizeValue:gi,point:{x:fi,y:ki,size:bi},midPoint:{x:fi,y:ki},fill:wi,label:pe({text:di},Ii),marker:be,placement:Le,selected:si})}),{itemId:L,nodeData:Nt,labelData:Nt,scales:this.calculateScaling(),visible:this.visible}}isPathOrSelectionDirty(){return this.properties.marker.isDirty()}getLabelData(){var e,t;return this.isLabelEnabled()?(t=(e=this.contextNodeData)==null?void 0:e.labelData)!=null?t:[]:[]}markerFactory(){let{shape:e}=this.properties.marker,t=La(e);return new t}updateMarkerSelection(e){let{nodeData:t,markerSelection:n}=e;this.properties.marker.isDirty()&&(n.clear(),n.cleanup());let a=this.properties.marker.enabled?t:[];return n.update(a,void 0,h=>ie([h.xValue,h.yValue,h.label.text]))}getMarkerItemBaseStyle(e){var h,S,E,L,_;let{properties:t}=this,{marker:n}=t,a=e?t.highlightStyle.item:void 0;return{fill:(h=a==null?void 0:a.fill)!=null?h:n.fill,fillOpacity:(S=a==null?void 0:a.fillOpacity)!=null?S:n.fillOpacity,stroke:(E=a==null?void 0:a.stroke)!=null?E:n.stroke,strokeWidth:(L=a==null?void 0:a.strokeWidth)!=null?L:n.strokeWidth,strokeOpacity:(_=a==null?void 0:a.strokeOpacity)!=null?_:n.strokeOpacity}}getMarkerItemStyleOverrides(e,t,n,a){let{id:h,properties:S}=this,{xKey:E,yKey:L,sizeKey:_,labelKey:N,marker:V}=S,{itemStyler:q}=V;if(q!=null)return this.cachedDatumCallback(ie(e,a?"highlight":"node"),()=>q(pe({seriesId:h,datum:t,xKey:E,yKey:L,sizeKey:_,labelKey:N,highlighted:a},n)))}updateMarkerNodes(e){let{markerSelection:t,isHighlight:n}=e,{xKey:a,yKey:h,sizeKey:S,labelKey:E,marker:L}=this.properties,{size:_,shape:N,fill:V,fillOpacity:q,stroke:Y,strokeWidth:J,strokeOpacity:re}=ia(n&&this.properties.highlightStyle.item,L.getStyle()),ce={size:_,shape:N,fill:V,fillOpacity:q,stroke:Y,strokeWidth:J,strokeOpacity:re};this.sizeScale.range=[L.size,L.maxSize],t.each((he,me)=>{this.updateMarkerStyle(he,L,{datum:me,highlighted:n,xKey:a,yKey:h,sizeKey:S,labelKey:E},ce,{selected:me.selected})}),n||this.properties.marker.markClean()}updatePlacedLabelData(e){this.labelSelection.update(e.map(t=>et(pe({},t.datum),{point:{x:t.x,y:t.y,size:t.datum.point.size}})),t=>{t.pointerEvents=1}),this.updateLabelNodes({labelSelection:this.labelSelection})}updateLabelNodes(e){let{label:t}=this.properties;e.labelSelection.each((n,a)=>{var h,S,E,L;n.text=a.label.text,n.fill=t.color,n.x=(S=(h=a.point)==null?void 0:h.x)!=null?S:0,n.y=(L=(E=a.point)==null?void 0:E.y)!=null?L:0,n.fontStyle=t.fontStyle,n.fontWeight=t.fontWeight,n.fontSize=t.fontSize,n.fontFamily=t.fontFamily,n.textAlign="left",n.textBaseline="top"})}getTooltipContent(e){let{id:t,dataModel:n,processedData:a,axes:h,properties:S}=this,{xKey:E,xName:L,yKey:_,yName:N,sizeKey:V,sizeName:q,labelKey:Y,labelName:J,title:re,tooltip:ce}=S,he=h.x,me=h.y;if(!n||!a||a.rawData.length===0||!he||!me)return;let{datumIndex:we}=e,Me=a.rawData[we],be=n.resolveColumnById(this,"xValue",a)[we],Le=n.resolveColumnById(this,"yValue",a)[we];if(be==null)return;let Fe=[{label:L,fallbackLabel:E,value:he.formatDatum(be)},{label:N,fallbackLabel:_,value:me.formatDatum(Le)}];if(V!=null){let Xe=n.resolveColumnById(this,"sizeValue",a)[we];Fe.push({label:q,fallbackLabel:V,value:String(Xe)})}let je=this.getMarkerItemBaseStyle(!1);return Object.assign(je,this.getMarkerItemStyleOverrides(String(we),Me,je,!1)),ce.formatTooltip({title:re,symbol:this.legendItemSymbol(),data:Fe},pe(pe({seriesId:t,datum:Me,title:_,xKey:E,xName:L,yKey:_,yName:N,sizeKey:V,sizeName:q,labelKey:Y,labelName:J},je),this.getModuleTooltipParams()))}legendItemSymbol(){let{marker:e}=this.properties,{shape:t,fill:n,stroke:a,fillOpacity:h,strokeOpacity:S,strokeWidth:E}=e;return{marker:{shape:t,fill:n!=null?n:"rgba(0, 0, 0, 0)",stroke:a!=null?a:"rgba(0, 0, 0, 0)",fillOpacity:h!=null?h:1,strokeOpacity:S!=null?S:1,strokeWidth:E!=null?E:0}}}getLegendData(){var E;if(!this.properties.isValid())return[];let{id:e,ctx:{legendManager:t},visible:n}=this,{yKey:a,yName:h,title:S}=this.properties;return[{legendType:"category",id:e,itemId:a,seriesId:e,enabled:n&&t.getItemEnabled({seriesId:e,itemId:a}),label:{text:(E=S!=null?S:h)!=null?E:a},symbol:this.legendItemSymbol()}]}animateEmptyUpdateReady({markerSelection:e,labelSelection:t}){qz(this,this.ctx.animationManager,e),Xa(this,"labels",this.ctx.animationManager,t)}isLabelEnabled(){return this.properties.label.enabled}nodeFactory(){return new hn}getFormattedMarkerStyle(e){let{xKey:t,yKey:n,sizeKey:a,labelKey:h}=this.properties;return this.getMarkerStyle(this.properties.marker,{datum:e,xKey:t,yKey:n,sizeKey:a,labelKey:h,highlighted:!1})}computeFocusBounds(e){return VL(this,e)}},XO.className="BubbleSeries",XO.type="bubble"}}),NV,c$=M({"packages/ag-charts-community/src/chart/series/cartesian/bubbleSeriesModule.ts"(){"use strict";Of(),lr(),hw(),l$(),NV={type:"series",optionsKey:"series[]",packageType:"community",chartTypes:["cartesian"],identifier:"bubble",moduleFactory:e=>new XO(e),tooltipDefaults:{range:"nearest"},defaultAxes:[{type:"number",position:"bottom"},{type:"number",position:"left"}],themeTemplate:{series:{shape:"circle",size:7,maxSize:30,fillOpacity:.8,tooltip:{position:{type:"node"}},label:{enabled:!1,fontSize:12,fontFamily:So,color:Vo}}},paletteFactory:Bk}}}),Ol,d$=M({"packages/ag-charts-community/src/chart/series/cartesian/histogramSeriesProperties.ts"(){"use strict";Gk(),Ki(),jd(),gC(),dc(),Ol=class extends Bu{constructor(){super(...arguments),this.fillOpacity=1,this.strokeWidth=1,this.strokeOpacity=1,this.lineDash=[0],this.lineDashOffset=0,this.cornerRadius=0,this.areaPlot=!1,this.aggregation="sum",this.shadow=new Uu,this.label=new Hr,this.tooltip=new Wc}},f([$e(hi)],Ol.prototype,"xKey",2),f([$e(hi,{optional:!0})],Ol.prototype,"yKey",2),f([$e(hi,{optional:!0})],Ol.prototype,"xName",2),f([$e(hi,{optional:!0})],Ol.prototype,"yName",2),f([$e(Ra,{optional:!0})],Ol.prototype,"fill",2),f([$e(Wn)],Ol.prototype,"fillOpacity",2),f([$e(Ra,{optional:!0})],Ol.prototype,"stroke",2),f([$e(mi)],Ol.prototype,"strokeWidth",2),f([$e(Wn)],Ol.prototype,"strokeOpacity",2),f([$e(_d)],Ol.prototype,"lineDash",2),f([$e(mi)],Ol.prototype,"lineDashOffset",2),f([$e(mi)],Ol.prototype,"cornerRadius",2),f([$e(Ji)],Ol.prototype,"areaPlot",2),f([$e(kh,{optional:!0})],Ol.prototype,"bins",2),f([$e(zo(["count","sum","mean"],"a histogram aggregation"))],Ol.prototype,"aggregation",2),f([$e(mi,{optional:!0})],Ol.prototype,"binCount",2),f([$e(Yi)],Ol.prototype,"shadow",2),f([$e(Yi)],Ol.prototype,"label",2),f([$e(Yi)],Ol.prototype,"tooltip",2)}}),d3,ZO,u$=M({"packages/ag-charts-community/src/chart/series/cartesian/histogramSeries.ts"(){"use strict";fs(),Wa(),$p(),wu(),Hn(),aa(),$S(),ac(),Ct(),Il(),sc(),Kh(),a3(),dc(),d$(),e3(),d3=10,ZO=class extends qp{constructor(e){super({moduleCtx:e,directionKeys:bd,directionNames:Ng,pickModes:[1,0],datumSelectionGarbageCollection:!1,animationResetFns:{datum:qL,label:Ff}}),this.properties=new Ol,this.calculatedBins=[]}deriveBins(e){let t=Fd(e[0],e[1],d3),n=Nd(e[0],e[1],d3),[a]=t,h=S=>[S,S+n];return[[a-n,a],...t.map(h)]}calculateNiceBins(e,t){let n=Math.floor(e[0]),a=e[1],h=t||1,{start:S,binSize:E}=this.calculateNiceStart(n,a,h);return this.getBins(S,a,E,h)}getBins(e,t,n,a){let h=[],S=this.calculatePrecision(n);for(let E=0;E<a;E++){let L=Math.round((e+E*n)*S)/S,_=Math.round((e+(E+1)*n)*S)/S;E===a-1&&(_=Math.max(_,t)),h[E]=[L,_]}return h}calculatePrecision(e){let t=10;if(isFinite(e)&&e>0)for(;e<1;)t*=10,e*=10;return t}calculateNiceStart(e,t,n){let a=Math.abs(t-e)/n,h=Math.floor(Math.log10(a)),S=Math.pow(10,h);return{start:Math.floor(e/S)*S,binSize:a}}async processData(e){var q,Y;this.visible||(this.processedData=void 0,this.animationState.transition("updateData"));let{xKey:t,yKey:n,areaPlot:a,aggregation:h}=this.properties,S=(q=this.axes.x)==null?void 0:q.scale,E=(Y=this.axes.y)==null?void 0:Y.scale,{xScaleType:L,yScaleType:_}=this.getScaleInformation({yScale:E,xScale:S}),N=[Jd(t,L),_e];if(n){let J=Rk("groupAgg");h==="count"||(h==="sum"?J=If("groupAgg"):h==="mean"&&(J=JT("groupAgg"))),a&&(J=XS("groupAgg",J)),N.push(fn(n,_,{invalidValue:void 0}),J)}else{let J=Rk("groupAgg");a&&(J=XS("groupAgg",J)),N.push(J)}let V=J=>{var me;let re=Dl(J.domain.keys[0]);if(re.length===0)return J.domain.groups=[],()=>[];let ce=Vn(this.properties.binCount)?this.calculateNiceBins(re,this.properties.binCount):(me=this.properties.bins)!=null?me:this.deriveBins(re),he=ce.length;return this.calculatedBins=[...ce],we=>{let Me=we.keys[0];for(let be=0;be<he;be++){let Le=ce[be];if(Me>=Le[0]&&Me<Le[1]||be===he-1&&Me<=Le[1])return Le}return[]}};!this.ctx.animationManager.isSkipped()&&this.processedData&&N.push($(this.id,this.processedData,!1)),await this.requestDataModel(e,this.data,{props:N,groupByFn:V}),this.animationState.transition("updateData")}getSeriesDomain(e){var E,L,_,N;let{processedData:t,dataModel:n}=this;if(!t||!n||!this.calculatedBins.length)return[];let a=n.getDomain(this,"groupAgg","aggregate",t),h=(E=this.calculatedBins)==null?void 0:E[0][0],S=(N=this.calculatedBins)==null?void 0:N[((_=(L=this.calculatedBins)==null?void 0:L.length)!=null?_:0)-1][1];return Dl(e==="x"?[h,S]:a)}getSeriesRange(e,t){return[NaN,NaN]}createNodeData(){var Me,be;let{id:e,axes:t,processedData:n}=this,a=t.x,h=t.y;if(!a||!h)return;let{scale:S}=a,{scale:E}=h,{xKey:L,yKey:_,xName:N,yName:V,fill:q,stroke:Y,strokeWidth:J,cornerRadius:re}=this.properties,ce=(Me=this.properties.label.formatter)!=null?Me:Le=>String(Le.value),he=[],me={itemId:(be=this.properties.yKey)!=null?be:this.id,nodeData:he,labelData:he,scales:this.calculateScaling(),animationValid:!0,visible:this.visible};if(!this.visible||n==null||n.rawData.length===0||n.type!=="grouped")return me;let{rawData:we}=n;return n.groups.forEach(({keys:Le,datumIndices:Fe,aggregation:je},Xe)=>{var vi;let[[nt,lt]=[0,0]]=je,ot=Fe.length,vt=Le,[gt,bt]=vt,At=Fe.map(gi=>we[gi]),Rt=S.convert(gt),It=S.convert(bt),Dt=nt+lt,jt=E.convert(0),Nt=E.convert(Dt),zt=Math.abs(It-Rt),Ut=Math.abs(Nt-jt),Vt=Math.min(Rt,It),Wt=Math.min(jt,Nt),ci;Dt!==0&&(ci={x:Vt+zt/2,y:Wt+Ut/2,text:(vi=this.cachedDatumCallback(ie(Xe,"label"),()=>ce({value:Dt,datum:At,seriesId:e,xKey:L,yKey:_,xName:N,yName:V})))!=null?vi:String(Dt)});let li={x:Vt+zt/2,y:Wt+Ut/2},oi=h.isReversed();he.push({series:this,datumIndex:Xe,datum:At,aggregatedValue:Dt,frequency:ot,domain:vt,yKey:_,xKey:L,x:Vt,y:Wt,xValue:Rt,yValue:Nt,width:zt,height:Ut,midPoint:li,fill:q,stroke:Y,cornerRadius:re,topLeftCornerRadius:!oi,topRightCornerRadius:!oi,bottomRightCornerRadius:oi,bottomLeftCornerRadius:oi,opacity:1,strokeWidth:J,label:ci})}),he.sort((Le,Fe)=>Le.x-Fe.x),me}nodeFactory(){return new Co}updateDatumSelection(e){let{nodeData:t,datumSelection:n}=e;return n.update(t,a=>{a.crisp=!0},a=>a.domain.join("_"))}getItemBaseStyle(e){var a,h,S,E,L;let{properties:t}=this,n=e?t.highlightStyle.item:void 0;return{fill:(a=n==null?void 0:n.fill)!=null?a:t.fill,fillOpacity:(h=n==null?void 0:n.fillOpacity)!=null?h:t.fillOpacity,stroke:(S=n==null?void 0:n.stroke)!=null?S:t.stroke,strokeWidth:(E=n==null?void 0:n.strokeWidth)!=null?E:t.strokeWidth,strokeOpacity:(L=n==null?void 0:n.strokeOpacity)!=null?L:t.strokeOpacity}}updateDatumNodes(e){let{isHighlight:t}=e,{fillOpacity:n,strokeOpacity:a,lineDash:h,lineDashOffset:S,shadow:E,highlightStyle:{item:{fill:L,fillOpacity:_=n,stroke:N,strokeWidth:V}}}=this.properties;e.datumSelection.each((q,Y,J)=>{var Le,Fe;let{cornerRadius:re,topLeftCornerRadius:ce,topRightCornerRadius:he,bottomRightCornerRadius:me,bottomLeftCornerRadius:we}=Y,Me=t&&V!==void 0?V:Y.strokeWidth,be=t?_:n;q.fill=(Le=t?L:void 0)!=null?Le:Y.fill,q.stroke=(Fe=t?N:void 0)!=null?Fe:Y.stroke,q.fillOpacity=be,q.strokeOpacity=a,q.strokeWidth=Me,q.lineDash=h,q.lineDashOffset=S,q.topLeftCornerRadius=ce?re:0,q.topRightCornerRadius=he?re:0,q.bottomRightCornerRadius=me?re:0,q.bottomLeftCornerRadius=we?re:0,q.fillShadow=E,q.zIndex=t?Cf.highlightedZIndex:J,q.visible=Y.height>0})}updateLabelSelection(e){let{labelData:t,labelSelection:n}=e;return n.update(t,a=>{a.pointerEvents=1,a.textAlign="center",a.textBaseline="middle"})}updateLabelNodes(e){let{fontStyle:t,fontWeight:n,fontFamily:a,fontSize:h,color:S}=this.properties.label,E=this.isLabelEnabled();e.labelSelection.each((L,_)=>{E&&(_!=null&&_.label)?(L.text=_.label.text,L.x=_.label.x,L.y=_.label.y,L.fontStyle=t,L.fontWeight=n,L.fontFamily=a,L.fontSize=h,L.fill=S,L.visible=!0):L.visible=!1})}initQuadTree(e){let{value:t}=this.contentGroup.children().next();t&&Qz(e,t.children())}pickNodeClosestDatum(e){return Jz(this,e)}getTooltipContent(e){let{id:t,dataModel:n,processedData:a,axes:h,properties:S,ctx:{localeManager:E}}=this,{xKey:L,xName:_,yKey:N,yName:V,tooltip:q}=S,Y=h.x,J=h.y;if(!n||(a==null?void 0:a.type)!=="grouped"||a.rawData.length===0||!Y||!J)return;let re=e.datumIndex,{aggregation:ce,datumIndices:he,keys:me}=a.groups[re],[[we,Me]=[0,0]]=ce,be=he.length,Le=me,[Fe,je]=Le,Xe=we+Me,nt={data:he.map(ot=>a.rawData[ot]),aggregatedValue:Xe,frequency:be,domain:Le},lt=[{label:_,fallbackLabel:L,value:`${Y.formatDatum(Fe)} - ${Y.formatDatum(je)}`},{label:E.t("seriesHistogramTooltipFrequency"),value:J.formatDatum(be)}];if(N!=null){let ot;switch(S.aggregation){case"sum":ot=E.t("seriesHistogramTooltipSum",{yName:V});break;case"mean":ot=E.t("seriesHistogramTooltipMean",{yName:V});break;case"count":ot=E.t("seriesHistogramTooltipCount",{yName:V});break}lt.push({label:ot,value:J.formatDatum(Xe)})}return q.formatTooltip({symbol:this.legendItemSymbol(),data:lt},pe({seriesId:t,datum:nt,title:V,xKey:L,xName:_,yKey:N,yName:V,xRange:[Fe,je],frequency:be},this.getItemBaseStyle(!1)))}legendItemSymbol(){let{fill:e,fillOpacity:t,stroke:n,strokeWidth:a,strokeOpacity:h}=this.properties;return{marker:{fill:e!=null?e:"rgba(0, 0, 0, 0)",stroke:n!=null?n:"rgba(0, 0, 0, 0)",fillOpacity:t,strokeOpacity:h,strokeWidth:a}}}getLegendData(e){var L;if(e!=="category")return[];let{id:t,ctx:{legendManager:n},visible:a}=this,{xKey:h,yName:S,showInLegend:E}=this.properties;return[{legendType:"category",id:t,itemId:h,seriesId:t,enabled:a&&n.getItemEnabled({seriesId:t,itemId:h}),label:{text:(L=S!=null?S:h)!=null?L:"Frequency"},symbol:this.legendItemSymbol(),hideInLegend:!E}]}animateEmptyUpdateReady({datumSelection:e,labelSelection:t}){let n=KL(UL(!0,this.axes,"normal"));Do(this.id,"datums",this.ctx.animationManager,[e],n),Xa(this,"labels",this.ctx.animationManager,t)}animateWaitingUpdateReady(e){var a,h,S;let t=(S=(h=(a=this.processedData)==null?void 0:a.reduced)==null?void 0:h.diff)==null?void 0:S[this.id],n=KL(UL(!0,this.axes,"normal"));Do(this.id,"datums",this.ctx.animationManager,[e.datumSelection],n,(E,L)=>ie(L.domain),t),Xa(this,"labels",this.ctx.animationManager,e.labelSelection)}isLabelEnabled(){return this.properties.label.enabled}computeFocusBounds({datumIndex:e}){var t;return n3((t=this.contextNodeData)==null?void 0:t.nodeData[e])}},ZO.className="HistogramSeries",ZO.type="histogram"}}),zV,h$=M({"packages/ag-charts-community/src/chart/series/cartesian/histogramSeriesModule.ts"(){"use strict";Of(),lr(),u$(),zV={type:"series",optionsKey:"series[]",packageType:"community",chartTypes:["cartesian"],identifier:"histogram",moduleFactory:e=>new ZO(e),tooltipDefaults:{range:"exact"},defaultAxes:[{type:"number",position:"bottom"},{type:"number",position:"left"}],themeTemplate:{series:{strokeWidth:1,fillOpacity:1,strokeOpacity:1,lineDash:[0],lineDashOffset:0,label:{enabled:!1,fontSize:12,fontFamily:So,color:Qp},shadow:{enabled:!1,color:sy,xOffset:3,yOffset:3,blur:5}}},paletteFactory:({takeColors:e})=>{let{fills:[t],strokes:[n]}=e(1);return{fill:t,stroke:n}}}}}),_l,g$=M({"packages/ag-charts-community/src/chart/series/cartesian/lineSeriesProperties.ts"(){"use strict";Ki(),jd(),nE(),gC(),dc(),I(),_l=class extends Bu{constructor(){super(...arguments),this.stroke="#874349",this.strokeWidth=2,this.strokeOpacity=1,this.lineDash=[0],this.lineDashOffset=0,this.interpolation=new y,this.marker=new ou,this.label=new Hr,this.tooltip=new Wc,this.connectMissingData=!1,this.sparklineMode=!1}},f([$e(hi)],_l.prototype,"xKey",2),f([$e(hi)],_l.prototype,"yKey",2),f([$e(hi,{optional:!0})],_l.prototype,"xName",2),f([$e(hi,{optional:!0})],_l.prototype,"yName",2),f([$e(hi,{optional:!0})],_l.prototype,"yFilterKey",2),f([$e(hi,{optional:!0})],_l.prototype,"stackGroup",2),f([$e(mi,{optional:!0})],_l.prototype,"normalizedTo",2),f([$e(hi,{optional:!0})],_l.prototype,"title",2),f([$e(Ra)],_l.prototype,"stroke",2),f([$e(mi)],_l.prototype,"strokeWidth",2),f([$e(Wn)],_l.prototype,"strokeOpacity",2),f([$e(_d)],_l.prototype,"lineDash",2),f([$e(mi)],_l.prototype,"lineDashOffset",2),f([$e(Yi)],_l.prototype,"interpolation",2),f([$e(Yi)],_l.prototype,"marker",2),f([$e(Yi)],_l.prototype,"label",2),f([$e(Yi)],_l.prototype,"tooltip",2),f([$e(Ji)],_l.prototype,"connectMissingData",2),f([$e(Ji)],_l.prototype,"sparklineMode",2)}}),BV,XL,GV=M({"packages/ag-charts-community/src/chart/series/cartesian/lineSeries.ts"(){"use strict";fs(),tE(),Om(),$o(),Wa(),ts(),Ta(),Hn(),aa(),ac(),Ct(),Mf(),Nu(),Il(),sc(),Kh(),BS(),dc(),g$(),gw(),HL(),$z(),BV=.25,XL=class extends qp{constructor(e){super({moduleCtx:e,directionKeys:bd,directionNames:Ng,hasMarkers:!0,pickModes:[2,1,0],markerSelectionGarbageCollection:!1,animationResetFns:{path:Zz({getVisible:()=>this.visible,getOpacity:()=>this.getOpacity()}),label:Ff,marker:(t,n)=>pe(pe({},GL(t)),jL(t,n))}}),this.clipFocusBox=!1,this.properties=new _l,this.dataAggregationFilters=void 0}get pickModeAxis(){return this.properties.sparklineMode?"main":"main-category"}async processData(e){var be,Le;if(this.data==null||!this.properties.isValid())return;let{data:t,visible:n,seriesGrouping:{groupIndex:a=this.id,stackCount:h=1}={}}=this,{xKey:S,yKey:E,yFilterKey:L,connectMissingData:_,normalizedTo:N}=this.properties,V=!this.ctx.animationManager.isSkipped(),q=(be=this.axes.x)==null?void 0:be.scale,Y=(Le=this.axes.y)==null?void 0:Le.scale,{isContinuousX:J,xScaleType:re,yScaleType:ce}=this.getScaleInformation({xScale:q,yScale:Y}),he={invalidValue:null};_&&h>1&&(he.invalidValue=0,n||(he.forceValue=0));let me=[];if(J||me.push(Jd(S,re,{id:"xKey"})),me.push(fn(S,re,{id:"xValue"}),fn(E,ce,et(pe({id:"yValueRaw"},he),{invalidValue:void 0}))),L!=null&&me.push(fn(L,ce,{id:"yFilterRaw"})),h>1){let Fe=[`line-stack-${a}-yValues`,`line-stack-${a}-yValues-trailing`,`line-stack-${a}-yValues-marker`];me.push(...Xp(E,"window","current",et(pe({id:"yValueEnd"},he),{groupId:Fe[0]}),ce),...Xp(E,"window-trailing","current",et(pe({id:"yValueStart"},he),{groupId:Fe[1]}),ce),...Xp(E,"normal","current",et(pe({id:"yValueCumulative"},he),{groupId:Fe[2]}),ce)),un(N)&&me.push(QS([Fe[0],Fe[1],Fe[2]],N,"range"))}V&&(me.push(rC(J?["xValue"]:void 0)),this.processedData&&me.push($(this.id,this.processedData)));let{dataModel:we,processedData:Me}=await this.requestDataModel(e,t,{props:me});this.dataAggregationFilters=this.aggregateData(we,Me),this.animationState.transition("updateData")}getSeriesDomain(e){var h,S;let{dataModel:t,processedData:n}=this;if(!t||!(n!=null&&n.rawData.length))return[];let a=t.resolveProcessedDataDefById(this,"xValue");if(e==="x"){let E=t.getDomain(this,"xValue","value",n);return(a==null?void 0:a.def.type)==="value"&&a.def.valueType==="category"?E:Dl(gp(E))}else{let L=((S=(h=this.seriesGrouping)==null?void 0:h.stackCount)!=null?S:1)>1?t.getDomain(this,"yValueEnd","value",n):t.getDomain(this,"yValueRaw","value",n);return Dl(L)}}visibleRangeIndices(e,t){var E;let{dataModel:n,processedData:a}=this;if(!n||!a)return[0,0];let h=this.axes.x.scale,S=n.resolveColumnById(this,"xValue",a);return Ya((E=t==null?void 0:t.length)!=null?E:S.length,e,L=>{var N;let _=h.convert(S[(N=t==null?void 0:t[L])!=null?N:L]);return[_,_]})}getSeriesRange(e,t){let{dataModel:n,processedData:a}=this;if(!n||!a)return[NaN,NaN];let[h,S]=this.visibleRangeIndices(t);return n.getDomainBetweenRange(this,["yValueRaw"],[h,S],a)}aggregateData(e,t){}createNodeData(){var vi,gi,fi,ki,si,di,Ii;let{dataModel:e,processedData:t,axes:n,dataAggregationFilters:a}=this,h=n.x,S=n.y;if(!e||!t||t.rawData.length===0||!h||!S)return;let{xKey:E,yKey:L,yFilterKey:_,xName:N,yName:V,marker:q,label:Y,connectMissingData:J,interpolation:re,legendItemName:ce}=this.properties,he=((gi=(vi=this.seriesGrouping)==null?void 0:vi.stackCount)!=null?gi:1)>1,me=h.scale,we=S.scale,Me=((fi=me.bandwidth)!=null?fi:0)/2,be=((ki=we.bandwidth)!=null?ki:0)/2,Le=q.enabled?q.size:0,{rawData:Fe}=t,je=e.resolveColumnById(this,"xValue",t),Xe=e.resolveColumnById(this,"yValueRaw",t),nt=he?e.resolveColumnById(this,"yValueEnd",t):void 0,lt=he?e.resolveColumnById(this,"yValueCumulative",t):Xe,ot=_!=null?e.resolveColumnById(this,"yFilterRaw",t):void 0,vt=bi=>me.convert(je[bi])+Me,gt=bi=>we.convert(lt[bi])+be,bt={lengthRatioMultiplier:this.properties.marker.getDiameter(),lengthMax:1/0},At=[],Rt,It=bi=>{let wi=Fe[bi],Li=je[bi],Ln=Xe[bi],on=nt==null?void 0:nt[bi],Dn=ot==null?void 0:ot[bi],ln=vt(bi),ra=gt(bi);if(!Number.isFinite(ln))return;if(Ln!=null){let gs=Y.enabled?this.getLabelText(Y,{value:Ln,datum:wi,xKey:E,yKey:L,xName:N,yName:V,legendItemName:ce}):void 0;At.push({series:this,datum:wi,datumIndex:bi,yKey:L,xKey:E,point:{x:ln,y:ra,size:Le},midPoint:{x:ln,y:ra},cumulativeValue:on,yValue:Ln,xValue:Li,capDefaults:bt,labelText:gs,selected:Dn})}if(Rt==null)return;let sa=Rt[Rt.length-1];if(Ln!=null){let gs={point:{x:ln,y:ra},xDatum:Li,yDatum:Ln};Array.isArray(sa)?sa.push(gs):sa!=null?(sa.skip+=1,Rt.push([gs])):Rt.push([gs])}else J||(Array.isArray(sa)||sa==null?Rt.push({skip:0}):sa.skip+=1)},[Dt,jt]=me.range,Nt=jt-Dt,zt=a==null?void 0:a.find(bi=>bi.maxRange>Nt),Ut=zt==null?void 0:zt.indices,[Vt,Wt]=this.visibleRangeIndices(h.range,Ut);Vt=Math.max(Vt-1,0),Wt=Math.min(Wt+1,(si=Ut==null?void 0:Ut.length)!=null?si:je.length),t.rawData.length<1e3&&(Vt=0,Wt=t.rawData.length),Ut==null&&(Rt=[]);for(let bi=Vt;bi<Wt;bi+=1)It((di=Ut==null?void 0:Ut[bi])!=null?di:bi);let ci=Rt==null?void 0:Rt.flatMap(bi=>Array.isArray(bi)?Ha(bi,re):[]),li=ci!=null?{itemId:L,spans:ci}:void 0,oi=(Ii=ot==null?void 0:ot.some((bi,wi)=>bi===Xe[wi]))!=null?Ii:!1;return{itemId:L,nodeData:At,labelData:At,strokeData:li,scales:this.calculateScaling(),visible:this.visible,crossFiltering:oi}}isPathOrSelectionDirty(){return this.properties.marker.isDirty()}markerFactory(){let{shape:e}=this.properties.marker,t=La(e);return new t}updatePathNodes(e){var E;let{paths:[t],opacity:n,visible:a,animationEnabled:h}=e,S=((E=this.contextNodeData)==null?void 0:E.crossFiltering)===!0;t.setProperties({fill:void 0,lineJoin:"round",pointerEvents:1,opacity:n,stroke:this.properties.stroke,strokeWidth:this.getStrokeWidth(this.properties.strokeWidth),strokeOpacity:this.properties.strokeOpacity*(S?BV:1),lineDash:this.properties.lineDash,lineDashOffset:this.properties.lineDashOffset}),h||(t.visible=a),HO(this,t)}updateMarkerSelection(e){var h;let{nodeData:t}=e,{markerSelection:n}=e;return t=this.properties.marker.enabled||((h=this.contextNodeData)==null?void 0:h.crossFiltering)===!0?t:[],this.properties.marker.isDirty()&&(n.clear(),n.cleanup()),n.update(t,void 0,S=>ie(S.xValue))}updateMarkerNodes(e){let{markerSelection:t,isHighlight:n}=e,{xKey:a,yKey:h,stroke:S,strokeWidth:E,strokeOpacity:L,marker:_,highlightStyle:N}=this.properties,V=this.getSeriesDomain("x"),q=this.getSeriesDomain("y"),Y=ia(n&&N.item,_.getStyle(),{stroke:S,strokeWidth:E,strokeOpacity:L}),J=this.ctx.animationManager.isSkipped();t.each((re,ce)=>{this.updateMarkerStyle(re,_,et(pe({},Hp(ce,a,h,V,q)),{highlighted:n}),Y,{applyTranslation:J,selected:ce.selected})}),n||_.markClean()}updateLabelSelection(e){return e.labelSelection.update(this.isLabelEnabled()?e.labelData:[])}updateLabelNodes(e){let{enabled:t,fontStyle:n,fontWeight:a,fontSize:h,fontFamily:S,color:E}=this.properties.label;e.labelSelection.each((L,_)=>{t&&(_!=null&&_.labelText)?(L.fontStyle=n,L.fontWeight=a,L.fontSize=h,L.fontFamily=S,L.textAlign="center",L.textBaseline="bottom",L.text=_.labelText,L.x=_.point.x,L.y=_.point.y-10,L.fill=E,L.visible=!0):L.visible=!1})}getTooltipContent(e){let{id:t,dataModel:n,processedData:a,axes:h,properties:S}=this,{xKey:E,xName:L,yKey:_,yName:N,tooltip:V}=S,q=h.x,Y=h.y;if(!n||!a||a.rawData.length===0||!q||!Y)return;let{datumIndex:J}=e,re=a.rawData[J],ce=n.resolveColumnById(this,"xValue",a)[J],he=n.resolveColumnById(this,"yValueRaw",a)[J];if(ce!=null)return V.formatTooltip({heading:q.formatDatum(ce),symbol:this.legendItemSymbol(),data:[{label:N,fallbackLabel:_,value:Y.formatDatum(he)}]},pe({seriesId:t,datum:re,title:N,xKey:E,xName:L,yKey:_,yName:N},this.getModuleTooltipParams()))}legendItemSymbol(){var E,L,_,N,V,q,Y;let e="rgba(0, 0, 0, 0)",{stroke:t,strokeOpacity:n,strokeWidth:a,lineDash:h,marker:S}=this.properties;return{marker:{shape:S.shape,fill:(E=S.fill)!=null?E:e,stroke:(_=(L=S.stroke)!=null?L:t)!=null?_:e,fillOpacity:(N=S.fillOpacity)!=null?N:1,strokeOpacity:(q=(V=S.strokeOpacity)!=null?V:n)!=null?q:1,strokeWidth:(Y=S.strokeWidth)!=null?Y:0,enabled:S.enabled},line:{stroke:t!=null?t:e,strokeOpacity:n,strokeWidth:a,lineDash:h}}}getLegendData(e){var N,V;if(!(this.properties.isValid()&&e==="category"))return[];let{id:t,ctx:{legendManager:n},visible:a}=this,{yKey:h,yName:S,title:E,legendItemName:L,showInLegend:_}=this.properties;return[{legendType:"category",id:t,itemId:h,legendItemName:L,seriesId:t,enabled:a&&n.getItemEnabled({seriesId:t,itemId:h}),label:{text:(V=(N=L!=null?L:E)!=null?N:S)!=null?V:h},symbol:this.legendItemSymbol(),hideInLegend:!_}]}updatePaths(e){this.updateLinePaths(e.paths,e.contextData)}plotNodeDataPoints(e,t){if(t.length===0)return;let n=t[0].point;e.moveTo(n.x,n.y);for(let a=1;a<t.length;a+=1){let{x:h,y:S}=t[a].point;e.lineTo(h,S)}}updateLinePaths(e,t){var h;let n=(h=t.strokeData)==null?void 0:h.spans,[a]=e;a.path.clear(),n!=null?Sr(a,n):this.plotNodeDataPoints(a.path,t.nodeData),a.markDirty()}animateEmptyUpdateReady(e){let{markerSelection:t,labelSelection:n,annotationSelections:a,contextData:h,paths:S}=e,{animationManager:E}=this.ctx;this.updateLinePaths(S,h),Xz(this,E,...S),Eo([t],jL),Yz(this,E,t),Xa(this,"labels",E,n),Xa(this,"annotations",E,...a)}animateReadyResize(e){let{contextData:t,paths:n}=e;this.updateLinePaths(n,t),super.animateReadyResize(e)}animateWaitingUpdateReady(e){var Y,J,re;let{animationManager:t}=this.ctx,{markerSelection:n,labelSelection:a,annotationSelections:h,contextData:S,paths:E,previousContextData:L}=e,[_]=E;this.resetMarkerAnimation(e),this.resetLabelAnimation(e);let N=()=>{this.resetPathAnimation(e),this.updateLinePaths(E,S)},V=()=>{t.skipCurrentBatch(),N()};if(S==null||L==null){N(),BL(this,t,"added",n),VO(this,"path_properties",t,"add",_),Xa(this,"labels",t,a),Xa(this,"annotations",t,...h);return}if(S.crossFiltering!==L.crossFiltering){V();return}let q=Hg(S,L,(re=(J=(Y=this.processedData)==null?void 0:Y.reduced)==null?void 0:J.diff)==null?void 0:re[this.id]);if(q===void 0){V();return}else if(q.status==="no-op")return;Do(this.id,"path_properties",t,[_],q.stroke.pathProperties),q.status==="added"?this.updateLinePaths(E,S):q.status==="removed"?this.updateLinePaths(E,L):eE(this.id,"path_update",t,[_],q.stroke.path),q.hasMotion&&(BL(this,t,void 0,n),Xa(this,"labels",t,a),Xa(this,"annotations",t,...h))}isLabelEnabled(){return this.properties.label.enabled}getBandScalePadding(){return{inner:1,outer:.1}}nodeFactory(){return new hn}getFormattedMarkerStyle(e){let{xKey:t,yKey:n}=this.properties,a=this.getSeriesDomain("x"),h=this.getSeriesDomain("y");return this.getMarkerStyle(this.properties.marker,et(pe({},Hp(e,t,n,a,h)),{highlighted:!0}))}computeFocusBounds(e){return VL(this,e)}},XL.className="LineSeries",XL.type="line"}}),u3,jV=M({"packages/ag-charts-community/src/chart/series/cartesian/lineSeriesModule.ts"(){"use strict";Of(),lr(),hw(),GV(),u3={type:"series",optionsKey:"series[]",packageType:"community",chartTypes:["cartesian"],identifier:"line",moduleFactory:e=>new XL(e),stackable:!0,tooltipDefaults:{range:"nearest"},defaultAxes:[{type:"number",position:"left"},{type:"category",position:"bottom"}],themeTemplate:{series:{tooltip:{position:{type:"node"}},strokeWidth:2,strokeOpacity:1,lineDash:[0],lineDashOffset:0,interpolation:{type:"linear",tension:1,position:"end"},marker:{shape:"circle",size:7,strokeWidth:0},label:{enabled:!1,fontSize:12,fontFamily:So,color:Vo},errorBar:{cap:{lengthRatio:1}}}},paletteFactory:e=>{let{marker:t}=mR(e);return{stroke:t.fill,marker:t}}}}}),h3,Xr,p$=M({"packages/ag-charts-community/src/chart/series/cartesian/scatterSeriesProperties.ts"(){"use strict";Oc(),Ki(),jd(),nE(),gC(),dc(),h3=class extends Hr{constructor(){super(...arguments),this.placement="top"}},f([$e(Ah)],h3.prototype,"placement",2),Xr=class extends Bu{constructor(){super(...arguments),this.colorRange=["#ffff00","#00ff00","#0000ff"],this.label=new h3,this.tooltip=new Wc,this.marker=new ou}},f([$e(hi)],Xr.prototype,"xKey",2),f([$e(hi)],Xr.prototype,"yKey",2),f([$e(hi,{optional:!0})],Xr.prototype,"labelKey",2),f([$e(hi,{optional:!0})],Xr.prototype,"colorKey",2),f([$e(hi,{optional:!0})],Xr.prototype,"xFilterKey",2),f([$e(hi,{optional:!0})],Xr.prototype,"yFilterKey",2),f([$e(hi,{optional:!0})],Xr.prototype,"xName",2),f([$e(hi,{optional:!0})],Xr.prototype,"yName",2),f([$e(hi,{optional:!0})],Xr.prototype,"labelName",2),f([$e(hi,{optional:!0})],Xr.prototype,"colorName",2),f([$e(Qy,{optional:!0})],Xr.prototype,"colorDomain",2),f([$e(Hs)],Xr.prototype,"colorRange",2),f([$e(hi,{optional:!0})],Xr.prototype,"title",2),f([Ir("marker.shape")],Xr.prototype,"shape",2),f([Ir("marker.size")],Xr.prototype,"size",2),f([Ir("marker.fill")],Xr.prototype,"fill",2),f([Ir("marker.fillOpacity")],Xr.prototype,"fillOpacity",2),f([Ir("marker.stroke")],Xr.prototype,"stroke",2),f([Ir("marker.strokeWidth")],Xr.prototype,"strokeWidth",2),f([Ir("marker.strokeOpacity")],Xr.prototype,"strokeOpacity",2),f([Ir("marker.itemStyler",{optional:!0})],Xr.prototype,"itemStyler",2),f([$e(Yi)],Xr.prototype,"label",2),f([$e(Yi)],Xr.prototype,"tooltip",2)}}),$O,m$=M({"packages/ag-charts-community/src/chart/series/cartesian/scatterSeries.ts"(){"use strict";yv(),$o(),Wa(),Pc(),ts(),Ta(),cd(),aa(),ac(),Ct(),Nu(),Il(),sc(),Kh(),dc(),HL(),p$(),$O=class extends qp{constructor(e){super({moduleCtx:e,directionKeys:bd,directionNames:Ng,pickModes:[2,1,0],pathsPerSeries:[],hasMarkers:!0,markerSelectionGarbageCollection:!1,animationResetFns:{marker:GL,label:Ff},usesPlacedLabels:!0}),this.clipFocusBox=!1,this.properties=new Xr,this.colorScale=new Au}get pickModeAxis(){return"main-category"}async processData(e){var he,me,we;if(!this.properties.isValid()||this.data==null||!this.visible)return;let t=(he=this.axes.x)==null?void 0:he.scale,n=(me=this.axes.y)==null?void 0:me.scale,{xScaleType:a,yScaleType:h}=this.getScaleInformation({xScale:t,yScale:n}),S=this.colorScale.type,{xKey:E,yKey:L,xFilterKey:_,yFilterKey:N,labelKey:V,colorKey:q,colorDomain:Y,colorRange:J}=this.properties,{dataModel:re,processedData:ce}=await this.requestDataModel(e,this.data,{props:[fn(E,a,{id:"xValue"}),fn(L,h,{id:"yValue"}),..._!=null?[fn(_,a,{id:"xFilterValue"})]:[],...N!=null?[fn(N,h,{id:"yFilterValue"})]:[],...q?[fn(q,S,{id:"colorValue"})]:[],...V?[fn(V,"band",{id:"labelValue"})]:[]]});if(q){let Me=re.resolveProcessedDataIndexById(this,"colorValue");this.colorScale.domain=(we=Y!=null?Y:ce.domain.values[Me])!=null?we:[],this.colorScale.range=J,this.colorScale.update()}this.animationState.transition("updateData")}getSeriesDomain(e){let{dataModel:t,processedData:n}=this;if(!n||!t)return[];let a=e==="x"?"xValue":"yValue",h=t.resolveProcessedDataDefById(this,a),S=t.getDomain(this,a,"value",n);return(h==null?void 0:h.def.type)==="value"&&(h==null?void 0:h.def.valueType)==="category"?S:Dl(gp(S))}getSeriesRange(e,t){return[NaN,NaN]}createNodeData(){var It,Dt;let{axes:e,dataModel:t,processedData:n,colorScale:a,visible:h}=this,{xKey:S,yKey:E,xFilterKey:L,yFilterKey:_,labelKey:N,colorKey:V,xName:q,yName:Y,labelName:J,marker:re,label:ce}=this.properties,{placement:he}=ce,me=La(re.shape),we=e.x,Me=e.y;if(!(t&&(n!=null&&n.rawData.length)&&h&&we&&Me))return;let be=t.resolveColumnById(this,"xValue",n),Le=t.resolveColumnById(this,"yValue",n),Fe=V!=null?t.resolveColumnById(this,"colorValue",n):void 0,je=N!=null?t.resolveColumnById(this,"labelValue",n):void 0,Xe=L!=null?t.resolveColumnById(this,"xFilterValue",n):void 0,nt=_!=null?t.resolveColumnById(this,"yFilterValue",n):void 0,lt=we.scale,ot=Me.scale,vt=((It=lt.bandwidth)!=null?It:0)/2,gt=((Dt=ot.bandwidth)!=null?Dt:0)/2,bt=[],At=ce.getFont(),Rt=ug.getMeasurer({font:At});return n.rawData.forEach((jt,Nt)=>{let zt=be[Nt],Ut=Le[Nt],Vt=lt.convert(zt)+vt,Wt=ot.convert(Ut)+gt,ci=Xe!=null&&nt!=null?Xe[Nt]===zt&&nt[Nt]===Ut:void 0,li=this.getLabelText(ce,{value:je!=null?je==null?void 0:je[Nt]:Ut,datum:jt,xKey:S,yKey:E,labelKey:N,xName:q,yName:Y,labelName:J}),oi=Rt.measureText(li),vi=Fe!=null?a.convert(Fe[Nt]):void 0;bt.push({series:this,itemId:E,yKey:E,xKey:S,datum:jt,datumIndex:Nt,xValue:zt,yValue:Ut,capDefaults:{lengthRatioMultiplier:re.getDiameter(),lengthMax:1/0},point:{x:Vt,y:Wt,size:re.size},midPoint:{x:Vt,y:Wt},fill:vi,label:pe({text:li},oi),marker:me,placement:he,selected:ci})}),{itemId:E,nodeData:bt,labelData:bt,scales:this.calculateScaling(),visible:this.visible}}isPathOrSelectionDirty(){return this.properties.marker.isDirty()}getLabelData(){var e,t;return this.isLabelEnabled()?(t=(e=this.contextNodeData)==null?void 0:e.labelData)!=null?t:[]:[]}markerFactory(){let{shape:e}=this.properties.marker,t=La(e);return new t}updateMarkerSelection(e){let{nodeData:t,markerSelection:n}=e;return this.properties.marker.isDirty()&&(n.clear(),n.cleanup()),n.update(this.properties.marker.enabled?t:[])}getMarkerItemBaseStyle(e){var h,S,E,L,_;let{properties:t}=this,{marker:n}=t,a=e?t.highlightStyle.item:void 0;return{fill:(h=a==null?void 0:a.fill)!=null?h:n.fill,fillOpacity:(S=a==null?void 0:a.fillOpacity)!=null?S:n.fillOpacity,stroke:(E=a==null?void 0:a.stroke)!=null?E:n.stroke,strokeWidth:(L=a==null?void 0:a.strokeWidth)!=null?L:n.strokeWidth,strokeOpacity:(_=a==null?void 0:a.strokeOpacity)!=null?_:n.strokeOpacity}}getMarkerItemStyleOverrides(e,t,n,a){let{id:h,properties:S}=this,{xKey:E,yKey:L,labelKey:_,marker:N}=S,{itemStyler:V}=N;if(V!=null)return this.cachedDatumCallback(ie(e,a?"highlight":"node"),()=>V(pe({seriesId:h,datum:t,xKey:E,yKey:L,labelKey:_,highlighted:a},n)))}updateMarkerNodes(e){let{markerSelection:t,isHighlight:n}=e,{xKey:a,yKey:h,labelKey:S,marker:E,highlightStyle:L}=this.properties,_=ia(n&&L.item,E.getStyle());t.each((N,V)=>{this.updateMarkerStyle(N,E,{datum:V,highlighted:n,xKey:a,yKey:h,labelKey:S},_,{selected:V.selected})}),n||E.markClean()}updatePlacedLabelData(e){this.labelSelection.update(e.map(t=>et(pe({},t.datum),{point:{x:t.x,y:t.y,size:t.datum.point.size}})),t=>{t.pointerEvents=1}),this.updateLabelNodes({labelSelection:this.labelSelection})}updateLabelNodes(e){let{label:t}=this.properties;e.labelSelection.each((n,a)=>{var h,S,E,L;n.text=a.label.text,n.fill=t.color,n.x=(S=(h=a.point)==null?void 0:h.x)!=null?S:0,n.y=(L=(E=a.point)==null?void 0:E.y)!=null?L:0,n.fontStyle=t.fontStyle,n.fontWeight=t.fontWeight,n.fontSize=t.fontSize,n.fontFamily=t.fontFamily,n.textAlign="left",n.textBaseline="top"})}getTooltipContent(e){let{id:t,dataModel:n,processedData:a,axes:h,properties:S}=this,{xKey:E,xName:L,yKey:_,yName:N,labelKey:V,labelName:q,title:Y,tooltip:J}=S,re=h.x,ce=h.y;if(!n||!a||a.rawData.length===0||!re||!ce)return;let{datumIndex:he}=e,me=a.rawData[he],we=n.resolveColumnById(this,"xValue",a)[he],Me=n.resolveColumnById(this,"yValue",a)[he];if(we==null)return;let be=this.getMarkerItemBaseStyle(!1);return Object.assign(be,this.getMarkerItemStyleOverrides(String(he),me,be,!1)),J.formatTooltip({symbol:this.legendItemSymbol(),title:Y,data:[{label:L,fallbackLabel:E,value:re.formatDatum(we)},{label:N,fallbackLabel:_,value:ce.formatDatum(Me)}]},pe(pe({seriesId:t,datum:me,title:N,xKey:E,xName:L,yKey:_,yName:N,labelKey:V,labelName:q},be),this.getModuleTooltipParams()))}legendItemSymbol(){let{shape:e,fill:t,stroke:n,fillOpacity:a,strokeOpacity:h,strokeWidth:S}=this.properties.marker;return{marker:{shape:e,fill:t!=null?t:"rgba(0, 0, 0, 0)",stroke:n!=null?n:"rgba(0, 0, 0, 0)",fillOpacity:a!=null?a:1,strokeOpacity:h!=null?h:1,strokeWidth:S!=null?S:0}}}getLegendData(e){var _;if(!this.properties.isValid()||e!=="category")return[];let{yKey:t,yName:n,title:a,showInLegend:h}=this.properties,{id:S,ctx:{legendManager:E},visible:L}=this;return[{legendType:"category",id:S,itemId:t,seriesId:S,enabled:L&&E.getItemEnabled({seriesId:S,itemId:t}),label:{text:(_=a!=null?a:n)!=null?_:t},symbol:this.legendItemSymbol(),hideInLegend:!h}]}animateEmptyUpdateReady(e){let{markerSelection:t,labelSelection:n,annotationSelections:a}=e;qz(this,this.ctx.animationManager,t),Xa(this,"labels",this.ctx.animationManager,n),Xa(this,"annotations",this.ctx.animationManager,...a)}isLabelEnabled(){return this.properties.label.enabled}nodeFactory(){return new hn}getFormattedMarkerStyle(e){let{xKey:t,yKey:n,labelKey:a}=this.properties;return this.getMarkerStyle(this.properties.marker,{datum:e,xKey:t,yKey:n,labelKey:a,highlighted:!0})}computeFocusBounds(e){return VL(this,e)}},$O.className="ScatterSeries",$O.type="scatter"}}),VV,f$=M({"packages/ag-charts-community/src/chart/series/cartesian/scatterSeriesModule.ts"(){"use strict";Of(),lr(),hw(),m$(),VV={type:"series",optionsKey:"series[]",packageType:"community",chartTypes:["cartesian"],identifier:"scatter",moduleFactory:e=>new $O(e),tooltipDefaults:{range:"nearest"},defaultAxes:[{type:"number",position:"bottom"},{type:"number",position:"left"}],themeTemplate:{series:{shape:"circle",size:7,fillOpacity:.8,tooltip:{position:{type:"node"}},label:{enabled:!1,fontSize:12,fontFamily:So,color:Vo},errorBar:{cap:{lengthRatio:1}}}},paletteFactory:Bk}}}),g3,HV=M({"packages/ag-charts-community/src/scene/sectorBox.ts"(){"use strict";Ec(),g3=class cV{constructor(t,n,a,h){this.startAngle=t,this.endAngle=n,this.innerRadius=a,this.outerRadius=h}clone(){let{startAngle:t,endAngle:n,innerRadius:a,outerRadius:h}=this;return new cV(t,n,a,h)}equals(t){return this.startAngle===t.startAngle&&this.endAngle===t.endAngle&&this.innerRadius===t.innerRadius&&this.outerRadius===t.outerRadius}[Jc](t,n){return new cV(this.startAngle*(1-n)+t.startAngle*n,this.endAngle*(1-n)+t.endAngle*n,this.innerRadius*(1-n)+t.innerRadius*n,this.outerRadius*(1-n)+t.outerRadius*n)}}}});function p3({startAngle:e,endAngle:t,innerRadius:n,outerRadius:a}){let h=1/0,S=1/0,E=-1/0,L=-1/0,_=(N,V)=>{h=Math.min(N,h),S=Math.min(V,S),E=Math.max(N,E),L=Math.max(V,L)};return _(n*Math.cos(e),n*Math.sin(e)),_(n*Math.cos(t),n*Math.sin(t)),_(a*Math.cos(e),a*Math.sin(e)),_(a*Math.cos(t),a*Math.sin(t)),sd(0,e,t)&&_(a,0),sd(Math.PI*.5,e,t)&&_(0,a),sd(Math.PI,e,t)&&_(-a,0),sd(Math.PI*1.5,e,t)&&_(0,-a),new Ui(h,S,E-h,L-S)}function QO(e,t,n){let a=Math.sqrt(Math.pow(e,2)+Math.pow(t,2)),{innerRadius:h,outerRadius:S}=n;if(n.startAngle===n.endAngle||a<Math.min(h,S)||a>Math.max(h,S))return!1;let E=hb(n.startAngle),L=hb(n.endAngle),_=Math.atan2(t,e);return E<L?_<=L&&_>=E:_<=L&&_>=-Math.PI||_>=E&&_<=Math.PI}function WV(e,t){let{startAngle:n,endAngle:a,innerRadius:h,outerRadius:S}=t,E={x:S*Math.cos(n),y:S*Math.sin(n)},L={x:S*Math.cos(a),y:S*Math.sin(a)},_=h===0?{x:0,y:0}:{x:h*Math.cos(n),y:h*Math.sin(n)},N=h===0?{x:0,y:0}:{x:h*Math.cos(a),y:h*Math.sin(a)};return Xv(e.start.x,e.start.y,e.end.x,e.end.y,E.x,E.y,_.x,_.y)||Xv(e.start.x,e.start.y,e.end.x,e.end.y,L.x,L.y,N.x,N.y)||f1(0,0,S,n,a,!0,e.start.x,e.start.y,e.end.x,e.end.y)}function UV(e,t){let n={x:e.x,y:e.y},a={x:e.x+e.width,y:e.y},h={x:e.x,y:e.y+e.height},S={x:e.x+e.width,y:e.y+e.height};return WV({start:n,end:a},t)||WV({start:h,end:S},t)}function KV(e,t,n,a){if(n===0&&a===0)return 0;if(Math.asin(Math.abs(1*n)/(e+1*n))+Math.asin(Math.abs(1*a)/(e+1*a))-t<0)return 1;let S=0,E=1;for(let L=0;L<8;L+=1){let _=(S+E)/2;Math.asin(Math.abs(_*n)/(e+_*n))+Math.asin(Math.abs(_*a)/(e+_*a))-t<0?S=_:E=_}return S}function Vk(e,t){return gb(e,t)<qV?t:da(e-t)+t}function JO(e,t,n=0){let h=Math.abs(t-e)>=2*Math.PI?2*Math.PI:da(t-e);return e=Vk(e,n),t=e+h,{startAngle:e,endAngle:t}}function e_(e,t,n,a,h,S){let E=Math.sin(S),L=Math.cos(S),_=e**2+t**2-n**2,N,V,q,Y;if(L>.5){let Me=E/L,be=1+Me**2,Le=-2*(e+t*Me),Fe=Le**2-4*be*_;if(Fe<0)return;let je=(-Le+Math.sqrt(Fe))/(2*be),Xe=(-Le-Math.sqrt(Fe))/(2*be);N=je,V=je*Me,q=Xe,Y=Xe*Me}else{let Me=L/E,be=1+Me**2,Le=-2*(t+e*Me),Fe=Le**2-4*be*_;if(Fe<0)return;let je=(-Le+Math.sqrt(Fe))/(2*be),Xe=(-Le-Math.sqrt(Fe))/(2*be);N=je*Me,V=je,q=Xe*Me,Y=Xe}let J=L,re=E,ce=N*J+V*re,he=q*J+Y*re,me=ce>0?Vk(Math.atan2(V-t,N-e),a):NaN,we=he>0?Vk(Math.atan2(Y-t,q-e),a):NaN;if(me>=a&&me<=h)return me;if(we>=a&&we<=h)return we}function t_(e,t,n,a,h,S){let E=Math.hypot(e,t),L=(E**2-n**2+S**2)/(2*E),_=E-L,N=Math.atan2(t,e),V=Math.acos(-_/n),q=Vk(N+V,a),Y=Vk(N-V,a);if(q>=a&&q<=h)return q;if(Y>=a&&Y<=h)return Y}var qV,ZL=M({"packages/ag-charts-community/src/scene/util/sector.ts"(){"use strict";br(),jn(),v1(),qV=1e-6}}),i_,Uc,n_=M({"packages/ag-charts-community/src/scene/shape/sector.ts"(){"use strict";HV(),ZL(),lc(),i_=class{constructor(e,t,n,a,h){this.cx=e,this.cy=t,this.r=n,this.a0=a,this.a1=h,this.a0>=this.a1&&(this.a0=NaN,this.a1=NaN)}isValid(){return Number.isFinite(this.a0)&&Number.isFinite(this.a1)}pointAt(e){return{x:this.cx+this.r*Math.cos(e),y:this.cy+this.r*Math.sin(e)}}clipStart(e){e==null||!this.isValid()||e<this.a0||(this.a0=e,(Number.isNaN(e)||this.a0>=this.a1)&&(this.a0=NaN,this.a1=NaN))}clipEnd(e){e==null||!this.isValid()||e>this.a1||(this.a1=e,(Number.isNaN(e)||this.a0>=this.a1)&&(this.a0=NaN,this.a1=NaN))}},Uc=class extends qr{constructor(){super(...arguments),this.centerX=0,this.centerY=0,this.innerRadius=10,this.outerRadius=20,this.startAngle=0,this.endAngle=Math.PI*2,this.clipSector=void 0,this.concentricEdgeInset=0,this.radialEdgeInset=0,this.startOuterCornerRadius=0,this.endOuterCornerRadius=0,this.startInnerCornerRadius=0,this.endInnerCornerRadius=0}set inset(e){this.concentricEdgeInset=e,this.radialEdgeInset=e}set cornerRadius(e){this.startOuterCornerRadius=e,this.endOuterCornerRadius=e,this.startInnerCornerRadius=e,this.endInnerCornerRadius=e}computeBBox(){return p3(this).translate(this.centerX,this.centerY)}normalizedRadii(){let{concentricEdgeInset:e}=this,{innerRadius:t,outerRadius:n}=this;return t=t>0?t+e:0,n=Math.max(n-e,0),{innerRadius:t,outerRadius:n}}normalizedClipSector(){let{clipSector:e}=this;if(e==null)return;let{startAngle:t,endAngle:n}=JO(this.startAngle,this.endAngle),{innerRadius:a,outerRadius:h}=this.normalizedRadii(),S=JO(e.startAngle,e.endAngle,t);return new g3(Math.max(t,S.startAngle),Math.min(n,S.endAngle),Math.max(a,e.innerRadius),Math.min(h,e.outerRadius))}getAngleOffset(e){return e>0?this.radialEdgeInset/e:0}arc(e,t,n,a,h,S,E,L){if(e<=0)return;let{startAngle:_,endAngle:N}=JO(this.startAngle,this.endAngle),{innerRadius:V,outerRadius:q}=this.normalizedRadii(),Y=this.normalizedClipSector();if(L&&V<=0)return;let J=L?this.getAngleOffset(V+e):this.getAngleOffset(q-e),re=E?_+J+t:N-J-t,ce=L?V+e:q-e,he=ce*Math.cos(re),me=ce*Math.sin(re);if(Y!=null&&(!E&&!(re>=_-1e-6&&re<=Y.endAngle-1e-6)||E&&!(re>=Y.startAngle+1e-6&&re<=N-1e-6)||L&&ce<Y.innerRadius-1e-6||!L&&ce>Y.outerRadius+1e-6))return;let we=new i_(he,me,e,n,a);if(Y!=null){L?(we.clipStart(e_(he,me,e,n,a,Y.endAngle)),we.clipEnd(e_(he,me,e,n,a,Y.startAngle))):(we.clipStart(e_(he,me,e,n,a,Y.startAngle)),we.clipEnd(e_(he,me,e,n,a,Y.endAngle)));let je,Xe;if(E?(je=t_(he,me,e,n,a,Y.innerRadius),Xe=t_(he,me,e,n,a,Y.outerRadius)):(je=t_(he,me,e,n,a,Y.outerRadius),Xe=t_(he,me,e,n,a,Y.innerRadius)),we.clipStart(je),we.clipEnd(Xe),je!=null){let{x:nt,y:lt}=we.pointAt(je),ot=Vk(Math.atan2(lt,nt),_);E?S==null||S.clipStart(ot):h.clipEnd(ot)}if(Xe!=null){let{x:nt,y:lt}=we.pointAt(Xe),ot=Vk(Math.atan2(lt,nt),_);E?h.clipStart(ot):S==null||S.clipEnd(ot)}}if(Y!=null){let{x:je,y:Xe}=we.pointAt((we.a0+we.a1)/2);if(!QO(je,Xe,Y))return}let{x:Me,y:be}=we.pointAt(E===L?we.a0:we.a1),Le=Vk(Math.atan2(be,Me),_),Fe=L?S:h;return E?Fe==null||Fe.clipStart(Le):Fe==null||Fe.clipEnd(Le),we}updatePath(){var vi,gi,fi,ki,si;let{path:t,centerX:n,centerY:a,concentricEdgeInset:h,radialEdgeInset:S}=this,{startOuterCornerRadius:E,endOuterCornerRadius:L,startInnerCornerRadius:_,endInnerCornerRadius:N}=this,{startAngle:V,endAngle:q}=JO(this.startAngle,this.endAngle),{innerRadius:Y,outerRadius:J}=this.normalizedRadii(),re=this.normalizedClipSector(),ce=q-V,he=ce>=2*Math.PI-1e-6;if(t.clear(),Y===0&&J===0||Y>J)return;if(((vi=re==null?void 0:re.startAngle)!=null?vi:V)===((gi=re==null?void 0:re.endAngle)!=null?gi:q))return;if(he&&this.clipSector==null&&E===0&&L===0&&_===0&&N===0){t.moveTo(n+J*Math.cos(V),a+J*Math.sin(V)),t.arc(n,a,J,V,q),Y>h&&(t.moveTo(n+Y*Math.cos(q),a+Y*Math.sin(q)),t.arc(n,a,Y,q,V,!0)),t.closePath();return}else if(this.clipSector==null&&Math.abs(Y-J)<1e-6){t.arc(n,a,J,V,q,!1),t.arc(n,a,J,q,V,!0),t.closePath();return}let me=this.getAngleOffset(Y),we=this.getAngleOffset(J);if(ce<2*we)return;let be=((fi=re==null?void 0:re.innerRadius)!=null?fi:Y)>h,Le=Y<h||ce<2*me,Fe=J-Y,je=Math.max(E,_,L,N),Xe=je>0?Math.min(Fe/je,1):1;E*=Xe,L*=Xe,_*=Xe,N*=Xe;let nt=KV(J,ce-2*we,-E,-L);if(E*=nt,L*=nt,!Le&&be){let di=KV(Y,ce-2*me,_,N);_*=di,N*=di}else _=0,N=0;let lt=Math.max(E+_,L+N),ot=lt>0?Math.min(Fe/lt,1):1;E*=ot,L*=ot,_*=ot,N*=ot;let vt=0,gt=0,bt=E/(J-E),At=L/(J-L);if(bt>=0&&bt<1-1e-6)vt=Math.asin(bt);else{vt=ce/2;let di=J/(1/Math.sin(vt)+1);E=Math.min(di,E)}if(At>=0&&At<1-1e-6)gt=Math.asin(At);else{gt=ce/2;let di=J/(1/Math.sin(gt)+1);L=Math.min(di,L)}let Rt=Math.asin(_/(Y+_)),It=Math.asin(N/(Y+N)),Dt=(ki=re==null?void 0:re.outerRadius)!=null?ki:J,jt=this.getAngleOffset(Dt),Nt=new i_(0,0,Dt,V+jt,q-jt),zt=(si=re==null?void 0:re.innerRadius)!=null?si:Y,Ut=this.getAngleOffset(zt),Vt=be?new i_(0,0,zt,V+Ut,q-Ut):void 0;re!=null&&(Nt.clipStart(re.startAngle),Nt.clipEnd(re.endAngle),Vt==null||Vt.clipStart(re.startAngle),Vt==null||Vt.clipEnd(re.endAngle));let Wt=this.arc(E,vt,V-Math.PI*.5,V+vt,Nt,Vt,!0,!1),ci=this.arc(L,gt,q-gt,q+Math.PI*.5,Nt,Vt,!1,!1),li=this.arc(N,It,q+Math.PI*.5,q+Math.PI-It,Nt,Vt,!1,!0),oi=this.arc(_,Rt,V+Math.PI+Rt,V+Math.PI*1.5,Nt,Vt,!0,!0);if(Le){let di=ce<Math.PI*.5?S*(1+Math.cos(ce))/Math.sin(ce):NaN,Ii;di>0&&di<J?Ii=Math.max(Math.hypot(S,di),Y):Ii=S,Ii=Math.max(Ii,Y);let bi=V+ce*.5;t.moveTo(n+Ii*Math.cos(bi),a+Ii*Math.sin(bi))}else if(!((oi==null?void 0:oi.isValid())===!0||(Vt==null?void 0:Vt.isValid())===!0)){let di=V+ce/2,Ii=Y*Math.cos(di),bi=Y*Math.sin(di);t.moveTo(n+Ii,a+bi)}if((Wt==null?void 0:Wt.isValid())===!0){let{cx:di,cy:Ii,r:bi,a0:wi,a1:Li}=Wt;t.arc(n+di,a+Ii,bi,wi,Li)}if(Nt.isValid()){let{r:di,a0:Ii,a1:bi}=Nt;t.arc(n,a,di,Ii,bi)}if((ci==null?void 0:ci.isValid())===!0){let{cx:di,cy:Ii,r:bi,a0:wi,a1:Li}=ci;t.arc(n+di,a+Ii,bi,wi,Li)}if(!Le){if((li==null?void 0:li.isValid())===!0){let{cx:di,cy:Ii,r:bi,a0:wi,a1:Li}=li;t.arc(n+di,a+Ii,bi,wi,Li)}if((Vt==null?void 0:Vt.isValid())===!0){let{r:di,a0:Ii,a1:bi}=Vt;t.arc(n,a,di,bi,Ii,!0)}if((oi==null?void 0:oi.isValid())===!0){let{cx:di,cy:Ii,r:bi,a0:wi,a1:Li}=oi;t.arc(n+di,a+Ii,bi,wi,Li)}}t.closePath()}isPointInPath(e,t){var E;let{startAngle:n,endAngle:a,innerRadius:h,outerRadius:S}=(E=this.clipSector)!=null?E:this;return QO(e-this.centerX,t-this.centerY,{startAngle:n,endAngle:a,innerRadius:Math.min(h,S),outerRadius:Math.max(h,S)})}},Uc.className="Sector",f([mn()],Uc.prototype,"centerX",2),f([mn()],Uc.prototype,"centerY",2),f([mn()],Uc.prototype,"innerRadius",2),f([mn()],Uc.prototype,"outerRadius",2),f([mn()],Uc.prototype,"startAngle",2),f([mn()],Uc.prototype,"endAngle",2),f([mn()],Uc.prototype,"clipSector",2),f([mn()],Uc.prototype,"concentricEdgeInset",2),f([mn()],Uc.prototype,"radialEdgeInset",2),f([mn()],Uc.prototype,"startOuterCornerRadius",2),f([mn()],Uc.prototype,"endOuterCornerRadius",2),f([mn()],Uc.prototype,"startInnerCornerRadius",2),f([mn()],Uc.prototype,"endInnerCornerRadius",2)}}),gc,hy,$L=M({"packages/ag-charts-community/src/chart/themes/defaultColors.ts"(){"use strict";gc={BLUE:"#5090dc",ORANGE:"#ffa03a",GREEN:"#459d55",CYAN:"#34bfe1",YELLOW:"#e1cc00",VIOLET:"#9669cb",GRAY:"#b5b5b5",MAGENTA:"#bd5aa7",BROWN:"#8a6224",RED:"#ef5452"},hy={BLUE:"#2b5c95",ORANGE:"#cc6f10",GREEN:"#1e652e",CYAN:"#18859e",YELLOW:"#a69400",VIOLET:"#603c88",GRAY:"#575757",MAGENTA:"#7d2f6d",BROWN:"#4f3508",RED:"#a82529"}}}),m3,a_,o_,oE,r_,QL,Oa,v$=M({"packages/ag-charts-community/src/chart/series/polar/donutSeriesProperties.ts"(){"use strict";Gk(),Rn(),ga(),Ki(),wp(),jd(),$L(),ua(),gC(),m3=class extends vo{constructor(){super(...arguments),this.showInLegend=!1}},f([$e(Ji)],m3.prototype,"showInLegend",2),a_=class extends Hr{constructor(){super(...arguments),this.spacing=2}set(e,t){return super.set(e)}},f([$e(hi)],a_.prototype,"text",2),f([$e(pa)],a_.prototype,"spacing",2),o_=class extends _n{constructor(){super(...arguments),this.fill="transparent",this.fillOpacity=1}},f([$e(Ra)],o_.prototype,"fill",2),f([$e(Wn)],o_.prototype,"fillOpacity",2),oE=class extends Hr{constructor(){super(...arguments),this.offset=3,this.minAngle=0,this.minSpacing=4,this.maxCollisionOffset=50,this.avoidCollisions=!0}},f([$e(mi)],oE.prototype,"offset",2),f([$e(pa.restrict({min:0,max:360}))],oE.prototype,"minAngle",2),f([$e(mi)],oE.prototype,"minSpacing",2),f([$e(mi)],oE.prototype,"maxCollisionOffset",2),f([$e(Ji)],oE.prototype,"avoidCollisions",2),r_=class extends Hr{constructor(){super(...arguments),this.positionOffset=0,this.positionRatio=.5}},f([$e(pa)],r_.prototype,"positionOffset",2),f([$e(Wn)],r_.prototype,"positionRatio",2),QL=class extends _n{constructor(){super(...arguments),this.length=10,this.strokeWidth=1}},f([$e(Hs,{optional:!0})],QL.prototype,"colors",2),f([$e(mi)],QL.prototype,"length",2),f([$e(mi)],QL.prototype,"strokeWidth",2),Oa=class extends Tl{constructor(){super(...arguments),this.fills=Object.values(gc),this.strokes=Object.values(hy),this.fillOpacity=1,this.strokeOpacity=1,this.lineDash=[0],this.lineDashOffset=0,this.cornerRadius=0,this.rotation=0,this.outerRadiusOffset=0,this.outerRadiusRatio=1,this.strokeWidth=1,this.sectorSpacing=0,this.hideZeroValueSectorsInLegend=!1,this.innerLabels=new rg(a_),this.title=new m3,this.innerCircle=new o_,this.shadow=new Uu,this.calloutLabel=new oE,this.sectorLabel=new r_,this.calloutLine=new QL,this.tooltip=new Wc}isValid(){let e=super.isValid();return this.innerRadiusRatio==null&&this.innerRadiusOffset==null?(Di.warnOnce("Either an [innerRadiusRatio] or an [innerRadiusOffset] must be set to render a donut series."),!1):e}},f([$e(hi)],Oa.prototype,"angleKey",2),f([$e(hi,{optional:!0})],Oa.prototype,"angleName",2),f([$e(hi,{optional:!0})],Oa.prototype,"angleFilterKey",2),f([$e(hi,{optional:!0})],Oa.prototype,"radiusKey",2),f([$e(hi,{optional:!0})],Oa.prototype,"radiusName",2),f([$e(mi,{optional:!0})],Oa.prototype,"radiusMin",2),f([$e(mi,{optional:!0})],Oa.prototype,"radiusMax",2),f([$e(hi,{optional:!0})],Oa.prototype,"calloutLabelKey",2),f([$e(hi,{optional:!0})],Oa.prototype,"calloutLabelName",2),f([$e(hi,{optional:!0})],Oa.prototype,"sectorLabelKey",2),f([$e(hi,{optional:!0})],Oa.prototype,"sectorLabelName",2),f([$e(hi,{optional:!0})],Oa.prototype,"legendItemKey",2),f([$e(Hs)],Oa.prototype,"fills",2),f([$e(Hs)],Oa.prototype,"strokes",2),f([$e(Wn)],Oa.prototype,"fillOpacity",2),f([$e(Wn)],Oa.prototype,"strokeOpacity",2),f([$e(_d)],Oa.prototype,"lineDash",2),f([$e(mi)],Oa.prototype,"lineDashOffset",2),f([$e(mi)],Oa.prototype,"cornerRadius",2),f([$e(Kl,{optional:!0})],Oa.prototype,"itemStyler",2),f([$e(pa)],Oa.prototype,"rotation",2),f([$e(pa)],Oa.prototype,"outerRadiusOffset",2),f([$e(Wn)],Oa.prototype,"outerRadiusRatio",2),f([$e(pa,{optional:!0})],Oa.prototype,"innerRadiusOffset",2),f([$e(Wn,{optional:!0})],Oa.prototype,"innerRadiusRatio",2),f([$e(mi)],Oa.prototype,"strokeWidth",2),f([$e(pa)],Oa.prototype,"sectorSpacing",2),f([$e(Ji)],Oa.prototype,"hideZeroValueSectorsInLegend",2),f([$e(Mx)],Oa.prototype,"innerLabels",2),f([$e(Yi)],Oa.prototype,"title",2),f([$e(Yi)],Oa.prototype,"innerCircle",2),f([$e(Yi)],Oa.prototype,"shadow",2),f([$e(Yi)],Oa.prototype,"calloutLabel",2),f([$e(Yi)],Oa.prototype,"sectorLabel",2),f([$e(Yi)],Oa.prototype,"calloutLine",2),f([$e(Yi)],Oa.prototype,"tooltip",2)}});function rE(e,t,n,a){let h=[n.convert(0),n.convert(1)],S=[a.convert(0),a.convert(1)],E=Math.PI/-2+za(t),L=e?"initial":"update",_=({radius:re})=>({innerRadius:h[0],outerRadius:h[0]+(h[1]-h[0])*re}),N=({radius:re})=>({innerRadius:S[0],outerRadius:S[0]+(S[1]-S[0])*re});return{nodes:{toFn:(re,ce,he,{prevLive:me})=>{var Xe,nt;let{startAngle:we,endAngle:Me,innerRadius:be,outerRadius:Le}=ce,{stroke:Fe,fill:je}=ce.sectorFormat;if(he==="removed"&&me?(we=(Xe=me.datum)==null?void 0:Xe.endAngle,Me=(nt=me.datum)==null?void 0:nt.endAngle):he==="removed"&&!me&&(we=E,Me=E),he==="removed"){let lt=_(ce);be=lt.innerRadius,Le=lt.outerRadius}return{startAngle:we,endAngle:Me,outerRadius:Le,innerRadius:be,stroke:Fe,fill:je}},fromFn:(re,ce,he,{prevFromProps:me})=>{var Xe,nt,lt,ot,vt,gt;let{startAngle:we,endAngle:Me,innerRadius:be,outerRadius:Le}=re,{fill:Fe,stroke:je}=ce.sectorFormat;if(he==="unknown"||he==="added"&&!me?(we=E,Me=E,be=ce.innerRadius,Le=ce.outerRadius):he==="added"&&me&&(we=(Xe=me.endAngle)!=null?Xe:E,Me=(nt=me.endAngle)!=null?nt:E,be=(lt=me.innerRadius)!=null?lt:ce.innerRadius,Le=(ot=me.outerRadius)!=null?ot:ce.outerRadius),he==="added"&&!e){let bt=N(ce);be=bt.innerRadius,Le=bt.outerRadius}return he==="updated"&&(Fe=(vt=re.fill)!=null?vt:Fe,je=(gt=typeof re.stroke=="string"?re.stroke:void 0)!=null?gt:je),{startAngle:we,endAngle:Me,innerRadius:be,outerRadius:Le,fill:Fe,stroke:je,phase:L}}},innerCircle:{fromFn:(re,ce)=>{var he,me,we;return{size:(we=(me=(he=re.previousDatum)==null?void 0:he.radius)!=null?me:re.size)!=null?we:0,phase:L}},toFn:(re,ce)=>{var he;return{size:(he=ce.radius)!=null?he:0}}}}}function f3(e,t){return{startAngle:t.startAngle,endAngle:t.endAngle,innerRadius:t.innerRadius,outerRadius:t.outerRadius,fill:t.sectorFormat.fill,stroke:t.sectorFormat.stroke}}function v3(e,t){let n=t.y-e.centerY,a=t.x-e.centerX,h=Math.atan2(n,a),S=e.getItemNodes();for(let E of S)if(E.datum.missing!==!0&&sd(h,E.startAngle,E.endAngle)){let L=Math.sqrt(a*a+n*n),_=0;return L<E.innerRadius?_=E.innerRadius-L:L>E.outerRadius&&(_=L-E.outerRadius),{datum:E.datum,distance:_}}}var y3=M({"packages/ag-charts-community/src/chart/series/polar/pieUtil.ts"(){"use strict";br()}}),b3,s_=M({"packages/ag-charts-community/src/chart/series/polar/polarZIndexMap.ts"(){"use strict";b3=(e=>(e[e.BACKGROUND=0]="BACKGROUND",e[e.FOREGROUND=1]="FOREGROUND",e[e.HIGHLIGHT=2]="HIGHLIGHT",e[e.LABEL=3]="LABEL",e))(b3||{})}}),JL,l_=M({"packages/ag-charts-community/src/chart/series/polar/polarSeries.ts"(){"use strict";Om(),$o(),Wa(),as(),lc(),Pc(),xv(),aa(),Qd(),sc(),s_(),JL=class extends Pr{constructor(S){var E=S,{useLabelLayer:e=!1,pickModes:t=[1,0],canHaveAxes:n=!1,animationResetFns:a}=E,h=ji(E,["useLabelLayer","pickModes","canHaveAxes","animationResetFns"]);super(et(pe({},h),{useLabelLayer:e,pickModes:t,directionKeys:{x:["angleKey"],y:["radiusKey"]},directionNames:{x:["angleName"],y:["radiusName"]},canHaveAxes:n})),this.itemGroup=this.contentGroup.appendChild(new hn),this.nodeData=[],this.itemSelection=Er.select(this.itemGroup,()=>this.nodeFactory(),!1),this.labelSelection=Er.select(this.labelGroup,()=>this.labelFactory(),!1),this.highlightSelection=Er.select(this.highlightGroup,()=>this.nodeFactory()),this.highlightLabelSelection=Er.select(this.highlightLabel,()=>this.labelFactory()),this.centerX=0,this.centerY=0,this.radius=0,this.animationResetFns=a,this.animationState=new Sp("empty",{empty:{update:{target:"ready",action:L=>this.animateEmptyUpdateReady(L)},reset:"empty",skip:"ready"},ready:{updateData:"waiting",clear:"clearing",highlight:L=>this.animateReadyHighlight(L),highlightMarkers:L=>this.animateReadyHighlightMarkers(L),resize:L=>this.animateReadyResize(L),reset:"empty",skip:"ready"},waiting:{update:{target:"ready",action:L=>this.animateWaitingUpdateReady(L)},reset:"empty",skip:"ready"},clearing:{update:{target:"empty",action:L=>this.animateClearingUpdateEmpty(L)},reset:"empty",skip:"ready"}},()=>this.checkProcessedDataAnimatable())}getItemNodes(){return[...this.itemGroup.children()]}getNodeData(){return this.nodeData}setSeriesIndex(e){return super.setSeriesIndex(e)?(this.contentGroup.zIndex=[e,1],this.highlightGroup.zIndex=[e,2],this.labelGroup.zIndex=[e,3],!0):!1}resetAnimation(e){e==="initial"?this.animationState.transition("reset"):e==="ready"&&this.animationState.transition("skip")}labelFactory(){let e=new or;return e.pointerEvents=1,e}addChartEventListeners(){var e;this.destroyFns.push((e=this.ctx.chartEventManager)==null?void 0:e.addListener("legend-item-click",t=>this.onLegendItemClick(t)))}getInnerRadius(){return 0}computeLabelsBBox(e,t){return null}resetAllAnimation(){var n;let{item:e,label:t}=(n=this.animationResetFns)!=null?n:{};this.ctx.animationManager.stopByAnimationGroupId(this.id),e&&Eo([this.itemSelection,this.highlightSelection],e),t&&Eo([this.labelSelection,this.highlightLabelSelection],t),this.itemSelection.cleanup(),this.labelSelection.cleanup(),this.highlightSelection.cleanup(),this.highlightLabelSelection.cleanup()}animateEmptyUpdateReady(e){this.ctx.animationManager.skipCurrentBatch(),this.resetAllAnimation()}animateWaitingUpdateReady(e){this.ctx.animationManager.skipCurrentBatch(),this.resetAllAnimation()}animateReadyHighlight(e){var a;let{item:t,label:n}=(a=this.animationResetFns)!=null?a:{};t&&Eo([this.highlightSelection],t),n&&Eo([this.highlightLabelSelection],n)}animateReadyHighlightMarkers(e){}animateReadyResize(e){this.resetAllAnimation()}animateClearingUpdateEmpty(e){this.ctx.animationManager.skipCurrentBatch(),this.resetAllAnimation()}computeFocusBounds(e){var n;let t=(n=this.getNodeData())==null?void 0:n[e.datumIndex];if(t!==void 0)return this.itemSelection.select(a=>a instanceof qr&&a.datum===t)[0]}getSeriesRange(e,t){return[NaN,NaN]}}}}),YV,c_,y$=M({"packages/ag-charts-community/src/chart/series/polar/donutSeries.ts"(){"use strict";fs(),Zp(),jn(),$o(),Wa(),Wa(),as(),Gd(),n_(),Pc(),ZL(),br(),Lc(),Rn(),zn(),Ta(),aa(),Yd(),ac(),Ct(),LS(),Il(),sc(),Kh(),v$(),y3(),l_(),s_(),YV=class extends Tr{constructor(e,t,n,a){super(e,t,n,a),this.angleKey=a.properties.angleKey,this.radiusKey=a.properties.radiusKey,this.calloutLabelKey=a.properties.calloutLabelKey,this.sectorLabelKey=a.properties.sectorLabelKey}},c_=class extends JL{constructor(e){super({moduleCtx:e,pickModes:[1,0],useLabelLayer:!0,animationResetFns:{item:f3,label:Ff}}),this.properties=new Oa,this.phantomNodeData=void 0,this.backgroundGroup=new qa({name:`${this.id}-background`,zIndex:0}),this.noVisibleData=!1,this.previousRadiusScale=new Sd,this.radiusScale=new Sd,this.phantomGroup=this.backgroundGroup.appendChild(new hn({name:"phantom"})),this.phantomSelection=Er.select(this.phantomGroup,()=>this.nodeFactory(),!1),this.calloutLabelGroup=this.contentGroup.appendChild(new hn({name:"pieCalloutLabels"})),this.calloutLabelSelection=new Er(this.calloutLabelGroup,hn),this.zerosumRingsGroup=this.backgroundGroup.appendChild(new hn({name:`${this.id}-zerosumRings`})),this.zerosumOuterRing=this.zerosumRingsGroup.appendChild(new Vp),this.zerosumInnerRing=this.zerosumRingsGroup.appendChild(new Vp),this.innerLabelsGroup=this.contentGroup.appendChild(new hn({name:"innerLabels"})),this.innerCircleGroup=this.backgroundGroup.appendChild(new hn({name:`${this.id}-innerCircle`})),this.innerLabelsSelection=Er.select(this.innerLabelsGroup,or),this.innerCircleSelection=Er.select(this.innerCircleGroup,Vp),this.surroundingRadius=void 0,this.NodeEvent=YV,this.angleScale=new Sd,this.angleScale.domain=[0,1],this.angleScale.range=[-Math.PI,Math.PI].map(t=>t+Math.PI/2),this.phantomGroup.opacity=.2}get calloutNodeData(){var e;return(e=this.phantomNodeData)!=null?e:this.nodeData}attachSeries(e,t,n){super.attachSeries(e,t,n),e==null||e.appendChild(this.backgroundGroup)}detachSeries(e,t,n){super.detachSeries(e,t,n),e==null||e.removeChild(this.backgroundGroup)}setSeriesIndex(e){return super.setSeriesIndex(e)?(this.backgroundGroup.zIndex=[0,e],!0):!1}nodeFactory(){return new Uc}getSeriesDomain(e){return e==="x"?this.angleScale.domain:this.radiusScale.domain}async processData(e){var ce,he,me,we,Me;if(this.data==null||!this.properties.isValid())return;let{visible:t,id:n}=this,{angleKey:a,angleFilterKey:h,radiusKey:S,calloutLabelKey:E,sectorLabelKey:L,legendItemKey:_}=this.properties,N=(be,Le,Fe)=>t&&this.ctx.legendManager.getItemEnabled({seriesId:n,itemId:Fe}),V=!this.ctx.animationManager.isSkipped(),q=[],Y=[];_?q.push(Jd(_,"band",{id:"legendItemKey"})):E?q.push(Jd(E,"band",{id:"calloutLabelKey"})):L&&q.push(Jd(L,"band",{id:"sectorLabelKey"}));let J=this.radiusScale.type,re=this.angleScale.type;S&&Y.push(Cd(S,{id:"radiusValue",min:(ce=this.properties.radiusMin)!=null?ce:0,max:this.properties.radiusMax}),fn(S,J,{id:"radiusRaw"}),Tf("radiusValue",[0,1],1,(he=this.properties.radiusMin)!=null?he:0,this.properties.radiusMax)),E&&Y.push(fn(E,"band",{id:"calloutLabelValue"})),L&&Y.push(fn(L,"band",{id:"sectorLabelValue"})),_&&Y.push(fn(_,"band",{id:"legendItemValue"})),h&&Y.push(Pl(h,re,{id:"angleFilterValue",onlyPositive:!0,validation:N,invalidValue:0}),fn(h,re,{id:"angleFilterRaw"}),Tf("angleFilterValue",[0,1],0,0)),V&&this.processedData&&q.length>0&&Y.push($(this.id,this.processedData)),Y.push(rC()),await this.requestDataModel(e,this.data,{props:[...q,Pl(a,re,{id:"angleValue",onlyPositive:!0,validation:N,invalidValue:0}),fn(a,re,{id:"angleRaw"}),Tf("angleValue",[0,1],0,0),...Y]});for(let be of(Me=(we=(me=this.processedData)==null?void 0:me.defs)==null?void 0:we.values)!=null?Me:[]){let{id:Le,missing:Fe,property:je}=be,Xe=Ig(this,Fe);Le!=="angleRaw"&&Xe>0&&Di.warnOnce(`no value was found for the key '${String(je)}' on ${Xe} data element${Xe>1?"s":""}`)}this.animationState.transition("updateData")}maybeRefreshNodeData(){var n;if(!this.nodeDataRefresh)return;let{nodeData:e=[],phantomNodeData:t}=(n=this.createNodeData())!=null?n:{};this.nodeData=e,this.phantomNodeData=t,this.nodeDataRefresh=!1}getProcessedDataValues(e,t){let n=e.resolveColumnById(this,"angleValue",t),a=e.resolveColumnById(this,"angleRaw",t),h=this.properties.angleFilterKey!=null?e.resolveColumnById(this,"angleFilterValue",t):void 0,S=this.properties.angleFilterKey!=null?e.resolveColumnById(this,"angleFilterRaw",t):void 0,E=this.properties.radiusKey?e.resolveColumnById(this,"radiusValue",t):void 0,L=this.properties.radiusKey?e.resolveColumnById(this,"radiusRaw",t):void 0,_=this.properties.calloutLabelKey?e.resolveColumnById(this,"calloutLabelValue",t):void 0,N=this.properties.sectorLabelKey?e.resolveColumnById(this,"sectorLabelValue",t):void 0,V=this.properties.legendItemKey?e.resolveColumnById(this,"legendItemValue",t):void 0;return{angleValues:n,angleRawValues:a,angleFilterValues:h,angleFilterRawValues:S,radiusValues:E,radiusRawValues:L,calloutLabelValues:_,sectorLabelValues:N,legendItemValues:V}}createNodeData(){var Fe;let{id:e,processedData:t,dataModel:n,angleScale:a,ctx:{legendManager:h},visible:S}=this,{rotation:E,innerRadiusRatio:L}=this.properties;if(!this.properties.isValid())return this.zerosumOuterRing.visible=!0,this.zerosumInnerRing.visible=!0,{itemId:e,nodeData:[],labelData:[]};if(!(t!=null&&t.rawData.length)||!n||t.type!=="ungrouped")return;let{angleValues:_,angleRawValues:N,angleFilterValues:V,angleFilterRawValues:q,radiusValues:Y,radiusRawValues:J,calloutLabelValues:re,sectorLabelValues:ce,legendItemValues:he}=this.getProcessedDataValues(n,t),me=(Fe=q==null?void 0:q.some((je,Xe)=>je>N[Xe]))!=null?Fe:!1,we=0,Me=0,be=[],Le=q!=null?[]:void 0;return t.rawData.forEach((je,Xe)=>{var Vt;let nt=me?V[Xe]:_[Xe],lt=q!=null&&!me?Math.sqrt(q[Xe]/N[Xe]):1,ot=a.convert(we)+za(E);we=nt,Me+=nt;let vt=a.convert(we)+za(E),gt=Math.abs(vt-ot),bt=ot+gt/2,At=N[Xe],It=((Vt=Y==null?void 0:Y[Xe])!=null?Vt:1)*lt,Dt=J==null?void 0:J[Xe],jt=he==null?void 0:he[Xe],Nt=this.getLabels(je,bt,gt,!0,re==null?void 0:re[Xe],ce==null?void 0:ce[Xe],jt),zt=this.getSectorFormat(je,Xe,!1),Ut=pe({itemId:Xe,series:this,datum:je,datumIndex:Xe,angleValue:At,midAngle:bt,midCos:Math.cos(bt),midSin:Math.sin(bt),startAngle:ot,endAngle:vt,radius:It,innerRadius:Math.max(this.radiusScale.convert(0),0),outerRadius:Math.max(this.radiusScale.convert(It),0),sectorFormat:zt,radiusValue:Dt,legendItemValue:jt,enabled:S&&h.getItemEnabled({seriesId:e,itemId:Xe}),focusable:!0},Nt);be.push(Ut),Le!=null&&Le.push(et(pe({},Ut),{radius:1,innerRadius:Math.max(this.radiusScale.convert(0),0),outerRadius:Math.max(this.radiusScale.convert(1),0),focusable:!1}))}),this.zerosumOuterRing.visible=Me===0,this.zerosumInnerRing.visible=Me===0&&L!=null&&L!==1&&L>0,{itemId:e,nodeData:be,labelData:be,phantomNodeData:Le}}getLabels(e,t,n,a,h,S,E){let{calloutLabel:L,sectorLabel:_,legendItemKey:N}=this.properties,V=!a||L.enabled?this.properties.calloutLabelKey:void 0,q=!a||_.enabled?this.properties.sectorLabelKey:void 0;if(!V&&!q&&!N)return{};let Y={datum:e,angleKey:this.properties.angleKey,angleName:this.properties.angleName,radiusKey:this.properties.radiusKey,radiusName:this.properties.radiusName,calloutLabelKey:this.properties.calloutLabelKey,calloutLabelName:this.properties.calloutLabelName,sectorLabelKey:this.properties.sectorLabelKey,sectorLabelName:this.properties.sectorLabelName,legendItemKey:this.properties.legendItemKey},J={};return V&&n>za(L.minAngle)&&(J.calloutLabel=et(pe({},this.getTextAlignment(t)),{text:this.getLabelText(L,et(pe({},Y),{value:h})),hidden:!1,collisionTextAlign:void 0,collisionOffsetY:0,box:void 0})),q&&(J.sectorLabel={text:this.getLabelText(_,et(pe({},Y),{value:S}))}),N!=null&&E!=null&&(J.legendItem={key:N,text:E}),J}getTextAlignment(e){let t=[{textAlign:"center",textBaseline:"bottom"},{textAlign:"left",textBaseline:"middle"},{textAlign:"center",textBaseline:"hanging"},{textAlign:"right",textBaseline:"middle"}],n=hb(e),a=-.75*Math.PI,h=n-a,S=Math.floor(h/(Math.PI/2)),E=zy(S,t.length);return t[E]}getSectorFormat(e,t,n){var Le,Fe,je,Xe,nt,lt,ot,vt;let{angleKey:a,radiusKey:h,calloutLabelKey:S,sectorLabelKey:E,legendItemKey:L,fills:_,strokes:N,itemStyler:V}=this.properties,q=N[t%N.length],{fill:Y,fillOpacity:J,stroke:re,strokeWidth:ce,strokeOpacity:he,lineDash:me,lineDashOffset:we,cornerRadius:Me}=ia(n&&this.properties.highlightStyle.item,{fill:_.length>0?_[t%_.length]:void 0,stroke:q,strokeWidth:this.getStrokeWidth(this.properties.strokeWidth),strokeOpacity:this.getOpacity()},this.properties),be;return V&&(be=this.cachedDatumCallback(ie(this.getDatumIdFromData(e),n?"highlight":"hide"),()=>V({datum:e,angleKey:a,radiusKey:h,calloutLabelKey:S,sectorLabelKey:E,legendItemKey:L,fill:Y,fillOpacity:J,stroke:re,strokeWidth:ce,strokeOpacity:he,lineDash:me,lineDashOffset:we,cornerRadius:Me,highlighted:n,seriesId:this.id}))),{fill:(Le=be==null?void 0:be.fill)!=null?Le:Y,fillOpacity:(Fe=be==null?void 0:be.fillOpacity)!=null?Fe:J,stroke:(je=be==null?void 0:be.stroke)!=null?je:re,strokeWidth:(Xe=be==null?void 0:be.strokeWidth)!=null?Xe:ce,strokeOpacity:(nt=be==null?void 0:be.strokeOpacity)!=null?nt:he,lineDash:(lt=be==null?void 0:be.lineDash)!=null?lt:me,lineDashOffset:(ot=be==null?void 0:be.lineDashOffset)!=null?ot:we,cornerRadius:(vt=be==null?void 0:be.cornerRadius)!=null?vt:Me}}getInnerRadius(){let{radius:e}=this,{innerRadiusRatio:t=1,innerRadiusOffset:n=0}=this.properties,a=e*t+n;return a===e||a<0?0:a}getOuterRadius(){let{outerRadiusRatio:e,outerRadiusOffset:t}=this.properties;return Math.max(this.radius*e+t,0)}updateRadiusScale(e){var a;let t=[this.getInnerRadius(),this.getOuterRadius()];this.radiusScale.range=t,e&&(this.previousRadiusScale.range=t);let n=h=>et(pe({},h),{innerRadius:Math.max(this.radiusScale.convert(0),0),outerRadius:Math.max(this.radiusScale.convert(h.radius),0)});this.nodeData=this.nodeData.map(n),this.phantomNodeData=(a=this.phantomNodeData)==null?void 0:a.map(n)}getTitleTranslationY(){var h,S;let e=Math.max(0,this.radiusScale.range[1]);if(e===0)return NaN;let n=2+((S=(h=this.properties.title)==null?void 0:h.spacing)!=null?S:0),a=Math.max(0,-e);return-e-n-a}update({seriesRect:e}){let{title:t}=this.properties,n={seriesRectWidth:e==null?void 0:e.width,seriesRectHeight:e==null?void 0:e.height},a=gg(this.nodeDataDependencies,n)!=null;if(a&&(this._nodeDataDependencies=n),this.maybeRefreshNodeData(),this.updateTitleNodes(),this.updateRadiusScale(a),this.contentGroup.translationX=this.centerX,this.contentGroup.translationY=this.centerY,this.highlightGroup.translationX=this.centerX,this.highlightGroup.translationY=this.centerY,this.backgroundGroup.translationX=this.centerX,this.backgroundGroup.translationY=this.centerY,this.labelGroup&&(this.labelGroup.translationX=this.centerX,this.labelGroup.translationY=this.centerY),t){let h=this.getTitleTranslationY();t.node.y=isFinite(h)?h:0;let S=t.node.getBBox();t.node.visible=t.enabled&&isFinite(h)&&!this.bboxIntersectsSurroundingSeries(S)}for(let h of[this.zerosumInnerRing,this.zerosumOuterRing])h.fillOpacity=0,h.stroke=this.properties.calloutLabel.color,h.strokeWidth=1,h.strokeOpacity=1;this.updateNodeMidPoint(),this.updateSelections(),this.updateNodes(e)}updateTitleNodes(){var n,a;let{oldTitle:e}=this,{title:t}=this.properties;e!==t&&(e&&((n=this.labelGroup)==null||n.removeChild(e.node)),t&&(t.node.textBaseline="bottom",(a=this.labelGroup)==null||a.appendChild(t.node)),this.oldTitle=t)}updateNodeMidPoint(){var t;let e=n=>{let a=n.innerRadius+(n.outerRadius-n.innerRadius)/2;n.midPoint={x:n.midCos*Math.max(0,a),y:n.midSin*Math.max(0,a)}};this.nodeData.forEach(e),(t=this.phantomNodeData)==null||t.forEach(e)}updateSelections(){this.updateGroupSelection(),this.updateInnerCircleSelection()}updateGroupSelection(){var N;let{itemSelection:e,highlightSelection:t,phantomSelection:n,highlightLabelSelection:a,calloutLabelSelection:h,labelSelection:S,innerLabelsSelection:E}=this,L=this.nodeData.map(V=>et(pe({},V),{sectorFormat:pe({},V.sectorFormat)})),_=(V,q)=>{V.update(q,void 0,Y=>this.getDatumId(Y)),this.ctx.animationManager.isSkipped()&&V.cleanup()};_(e,this.nodeData),_(t,L),_(n,(N=this.phantomNodeData)!=null?N:[]),h.update(this.calloutNodeData,V=>{let q=new Ks;q.tag=0,q.pointerEvents=1,V.appendChild(q);let Y=new or;Y.tag=1,Y.pointerEvents=1,V.appendChild(Y)}),S.update(this.nodeData),a.update(L),E.update(this.properties.innerLabels,V=>{V.pointerEvents=1})}updateInnerCircleSelection(){let{innerCircle:e}=this.properties,t=0,n=this.getInnerRadius();if(n>0){let h=Math.min(n,this.getOuterRadius()),S=1;t=Math.ceil(h*2+S)}let a=e?[{radius:t}]:[];this.innerCircleSelection.update(a)}updateNodes(e){let t=this.ctx.highlightManager.getActiveHighlight(),{visible:n}=this;this.backgroundGroup.visible=n,this.contentGroup.visible=n,this.highlightGroup.visible=n&&(t==null?void 0:t.series)===this,this.highlightLabel.visible=n&&(t==null?void 0:t.series)===this,this.labelGroup.visible=n,this.contentGroup.opacity=this.getOpacity(),this.innerCircleSelection.each((S,{radius:E})=>{var L,_;S.setProperties({fill:(L=this.properties.innerCircle)==null?void 0:L.fill,opacity:(_=this.properties.innerCircle)==null?void 0:_.fillOpacity,size:E})});let a=this.ctx.animationManager.isSkipped(),h=(S,E,L,_)=>{let N=this.getSectorFormat(E.datum,E.itemId,_);E.sectorFormat.fill=N.fill,E.sectorFormat.stroke=N.stroke,a&&(S.startAngle=E.startAngle,S.endAngle=E.endAngle,S.innerRadius=E.innerRadius,S.outerRadius=E.outerRadius),(_||a)&&(S.fill=N.fill,S.stroke=N.stroke),S.strokeWidth=N.strokeWidth,S.fillOpacity=N.fillOpacity,S.strokeOpacity=N.strokeOpacity,S.lineDash=N.lineDash,S.lineDashOffset=N.lineDashOffset,S.cornerRadius=N.cornerRadius,S.fillShadow=this.properties.shadow;let V=Math.max((this.properties.sectorSpacing+(N.stroke!=null?N.strokeWidth:0))/2,0);S.inset=V,S.lineJoin=this.properties.sectorSpacing>=0||V>0?"miter":"round"};this.itemSelection.each((S,E,L)=>h(S,E,L,!1)),this.highlightSelection.each((S,E,L)=>{h(S,E,L,!0),S.visible=E.itemId===(t==null?void 0:t.itemId)}),this.phantomSelection.each((S,E,L)=>h(S,E,L,!1)),this.updateCalloutLineNodes(),this.updateCalloutLabelNodes(e),this.updateSectorLabelNodes(),this.updateInnerLabelNodes(),this.updateZerosumRings(),this.animationState.transition("update")}updateCalloutLineNodes(){var S;let{calloutLine:e}=this.properties,t=e.length,n=e.strokeWidth,a=(S=e.colors)!=null?S:this.properties.strokes,{offset:h}=this.properties.calloutLabel;this.calloutLabelSelection.selectByTag(0).forEach((E,L)=>{var q;let _=E.datum,{calloutLabel:N,outerRadius:V}=_;if(N!=null&&N.text&&!N.hidden&&V!==0){E.visible=!0,E.strokeWidth=n,E.stroke=a[L%a.length],E.fill=void 0;let Y=_.midCos*V,J=_.midSin*V,re=_.midCos*(V+t),ce=_.midSin*(V+t);if(((q=N.collisionTextAlign)!=null?q:N.collisionOffsetY!==0)&&N.box!=null){let me=N.box,we=re,Me=ce;re<me.x?we=me.x:re>me.x+me.width&&(we=me.x+me.width),ce<me.y?Me=me.y:ce>me.y+me.height&&(Me=me.y+me.height);let be=we-re,Le=Me-ce,Fe=Math.sqrt(Math.pow(be,2)+Math.pow(Le,2)),je=Fe-h;je>0&&(re=re+be*je/Fe,ce=ce+Le*je/Fe)}E.x1=Y,E.y1=J,E.x2=re,E.y2=ce}else E.visible=!1})}getLabelOverflow(e,t,n){let a=-this.centerX,h=a+n.width,S=-this.centerY,E=S+n.height,L=1,_=1;t.x+L<a?_=(t.x+t.width-a)/t.width:t.x+t.width-L>h&&(_=(h-t.x)/t.width);let N=t.y+L<S||t.y+t.height-L>E,V=_===1?e.length:Math.floor(e.length*_)-1,q=this.bboxIntersectsSurroundingSeries(t);return{textLength:V,hasVerticalOverflow:N,hasSurroundingSeriesOverflow:q}}bboxIntersectsSurroundingSeries(e){let{surroundingRadius:t}=this;if(t==null)return!1;let n=[{x:e.x,y:e.y},{x:e.x+e.width,y:e.y},{x:e.x+e.width,y:e.y+e.height},{x:e.x,y:e.y+e.height}],a=t**2;return n.some(h=>h.x**2+h.y**2>a)}computeCalloutLabelCollisionOffsets(){let{radiusScale:e}=this,{calloutLabel:t,calloutLine:n}=this.properties,{offset:a,minSpacing:h}=t,S=e.convert(0),E=me=>!me.calloutLabel||me.outerRadius===0,L=this.calloutNodeData,_=L.filter(me=>!E(me));if(_.forEach(me=>{let we=me.calloutLabel;we!=null&&(we.hidden=!1,we.collisionTextAlign=void 0,we.collisionOffsetY=0)}),_.length<=1)return;let N=_.filter(me=>me.midCos<0).sort((me,we)=>me.midSin-we.midSin),V=_.filter(me=>me.midCos>=0).sort((me,we)=>me.midSin-we.midSin),q=_.filter(me=>{var we;return me.midSin<0&&((we=me.calloutLabel)==null?void 0:we.textAlign)==="center"}).sort((me,we)=>me.midCos-we.midCos),Y=_.filter(me=>{var we;return me.midSin>=0&&((we=me.calloutLabel)==null?void 0:we.textAlign)==="center"}).sort((me,we)=>me.midCos-we.midCos),J=me=>{var Xe;let we=me.calloutLabel;if(we==null)return Ui.zero.clone();let Me=me.outerRadius+n.length+a,be=me.midCos*Me,Le=me.midSin*Me+we.collisionOffsetY,Fe=(Xe=we.collisionTextAlign)!=null?Xe:we.textAlign,je=we.textBaseline;return or.computeBBox(we.text,be,Le,{font:this.properties.calloutLabel,textAlign:Fe,textBaseline:je})},re=(me,we,Me)=>{let be=J(me).grow(h/2),Le=J(we).grow(h/2);if(be.x<Le.x+Le.width&&be.x+be.width>Le.x&&(Me==="to-top"?be.y<Le.y+Le.height:be.y+be.height>Le.y)){let je=Me==="to-top"?be.y-Le.y-Le.height:be.y+be.height-Le.y;we.calloutLabel.collisionOffsetY=je}},ce=me=>{let we=me.slice().sort((be,Le)=>Math.abs(be.midSin)-Math.abs(Le.midSin))[0],Me=me.indexOf(we);for(let be=Me-1;be>=0;be--){let Le=me[be+1],Fe=me[be];re(Le,Fe,"to-top")}for(let be=Me+1;be<me.length;be++){let Le=me[be-1],Fe=me[be];re(Le,Fe,"to-bottom")}},he=me=>{let we=_.some(Xe=>Xe.calloutLabel.collisionOffsetY!==0),Me=me.map(Xe=>J(Xe)),be=Me.map(Xe=>Xe.clone().grow(h/2)),Le=!1;for(let Xe=0;Xe<be.length&&!Le;Xe++){let nt=be[Xe];for(let lt=Xe+1;lt<me.length;lt++){let ot=be[lt];if(nt.collidesBBox(ot)){Le=!0;break}}}let Fe=L.map(Xe=>{let{startAngle:nt,endAngle:lt,outerRadius:ot}=Xe;return{startAngle:nt,endAngle:lt,innerRadius:S,outerRadius:ot}}),je=Me.some(Xe=>Fe.some(nt=>UV(Xe,nt)));!Le&&!we&&!je||me.filter(Xe=>Xe.calloutLabel.textAlign==="center").forEach(Xe=>{let nt=Xe.calloutLabel;Xe.midCos<0?nt.collisionTextAlign="right":Xe.midCos>0?nt.collisionTextAlign="left":nt.collisionTextAlign="center"})};ce(N),ce(V),he(q),he(Y)}updateCalloutLabelNodes(e){let{radiusScale:t}=this,{calloutLabel:n,calloutLine:a}=this.properties,h=a.length,{offset:S,color:E}=n,L=new or;this.calloutLabelSelection.selectByTag(1).forEach(_=>{var be;let{datum:N}=_,V=N.calloutLabel,q=t.convert(N.radius),Y=Math.max(0,q);if(!(V!=null&&V.text)||Y===0||V.hidden){_.visible=!1;return}let J=Y+h+S,re=N.midCos*J,ce=N.midSin*J+V.collisionOffsetY,he={textAlign:(be=V.collisionTextAlign)!=null?be:V.textAlign,textBaseline:V.textBaseline};L.text=V.text,L.x=re,L.y=ce,L.setFont(this.properties.calloutLabel),L.setAlign(he);let me=L.getBBox(),we=V.text,Me=!0;if(n.avoidCollisions){let{textLength:Le,hasVerticalOverflow:Fe}=this.getLabelOverflow(V.text,me,e);we=V.text.length===Le?V.text:`${V.text.substring(0,Le)}\u2026`,Me=!Fe}_.text=we,_.x=re,_.y=ce,_.setFont(this.properties.calloutLabel),_.setAlign(he),_.fill=E,_.visible=Me})}computeLabelsBBox(e,t){let{calloutLabel:n,calloutLine:a}=this.properties,h=a.length,{offset:S,maxCollisionOffset:E,minSpacing:L}=n;if(!n.avoidCollisions)return null;this.maybeRefreshNodeData(),this.updateRadiusScale(!1),this.computeCalloutLabelCollisionOffsets();let _=[],N=new or,V,{title:q}=this.properties;if(q!=null&&q.text&&q.enabled){let Y=this.getTitleTranslationY();isFinite(Y)&&(N.text=q.text,N.x=0,N.y=Y,N.setFont(q),N.setAlign({textBaseline:"bottom",textAlign:"center"}),V=N.getBBox(),_.push(V))}return this.calloutNodeData.forEach(Y=>{var we;let J=Y.calloutLabel;if(!J||Y.outerRadius===0)return null;let re=Y.outerRadius+h+S,ce=Y.midCos*re,he=Y.midSin*re+J.collisionOffsetY;N.text=J.text,N.x=ce,N.y=he,N.setFont(this.properties.calloutLabel),N.setAlign({textAlign:(we=J.collisionTextAlign)!=null?we:J.textAlign,textBaseline:J.textBaseline});let me=N.getBBox();if(J.box=me,Math.abs(J.collisionOffsetY)>E){J.hidden=!0;return}if(V){let Me=-this.centerY,be=new Ui(V.x-L,Me,V.width+2*L,V.y+V.height+L-Me);if(me.collidesBBox(be)){J.hidden=!0;return}}if(e.hideWhenNecessary){let{textLength:Me,hasVerticalOverflow:be,hasSurroundingSeriesOverflow:Le}=this.getLabelOverflow(J.text,me,t),Fe=J.text.length>2&&Me<2;if(be||Fe||Le){J.hidden=!0;return}}J.hidden=!1,_.push(me)}),_.length===0?null:Ui.merge(_)}updateSectorLabelNodes(){let{radiusScale:e}=this,t=e.convert(0),{fontSize:n,fontStyle:a,fontWeight:h,fontFamily:S,positionOffset:E,positionRatio:L,color:_}=this.properties.sectorLabel,N=(V,q)=>{let{sectorLabel:Y,outerRadius:J}=q,re=!1;if(Y&&J!==0){let ce=t*(1-L)+J*L+E;V.fill=_,V.fontStyle=a,V.fontWeight=h,V.fontSize=n,V.fontFamily=S,V.text=Y.text,V.x=q.midCos*ce,V.y=q.midSin*ce,V.textAlign="center",V.textBaseline="middle";let he=V.getBBox(),me=[[he.x,he.y],[he.x+he.width,he.y],[he.x+he.width,he.y+he.height],[he.x,he.y+he.height]],{startAngle:we,endAngle:Me}=q,be={startAngle:we,endAngle:Me,innerRadius:t,outerRadius:J};me.every(([Le,Fe])=>QO(Le,Fe,be))&&(re=!0)}V.visible=re};this.labelSelection.each(N),this.highlightLabelSelection.each(N)}updateInnerLabelNodes(){let e=[],t=[];this.innerLabelsSelection.each((V,q)=>{let{fontStyle:Y,fontWeight:J,fontSize:re,fontFamily:ce,color:he}=q;V.fontStyle=Y,V.fontWeight=J,V.fontSize=re,V.fontFamily=ce,V.text=q.text,V.x=0,V.y=0,V.fill=he,V.textAlign="center",V.textBaseline="alphabetic",e.push(V.getBBox()),t.push(q.spacing)});let n=V=>V===0?0:t[V],a=V=>V===t.length-1?0:t[V],h=e.reduce((V,q,Y)=>V+q.height+n(Y)+a(Y),0),S=Math.max(...e.map(V=>V.width)),E=this.getInnerRadius(),_=Math.sqrt(Math.pow(S/2,2)+Math.pow(h/2,2))<=(E>0?E:this.getOuterRadius()),N=[];for(let V=0,q=-h/2;V<e.length;V++){let J=e[V].height+q+n(V);N.push(J),q=J+a(V)}this.innerLabelsSelection.each((V,q,Y)=>{V.y=N[Y],V.visible=_})}updateZerosumRings(){this.zerosumOuterRing.size=this.getOuterRadius()*2,this.zerosumInnerRing.size=this.getInnerRadius()*2}pickNodeClosestDatum(e){return v3(this,e)}getTooltipContent(e){var Xe,nt,lt;let{id:t,dataModel:n,processedData:a,properties:h}=this,{legendItemKey:S,calloutLabelKey:E,calloutLabelName:L,sectorLabelKey:_,sectorLabelName:N,angleKey:V,angleName:q,radiusKey:Y,radiusName:J,tooltip:re}=h,ce=this.properties.title.text;if(!n||!a||a.rawData.length===0)return;let{datumIndex:he}=e,me=a.rawData[he],{angleRawValues:we,legendItemValues:Me,calloutLabelValues:be,sectorLabelValues:Le}=this.getProcessedDataValues(n,a),Fe=we[he],je=(lt=(nt=(Xe=Me==null?void 0:Me[he])!=null?Xe:E===V||be==null?void 0:be[he])!=null?nt:_===V||Le==null?void 0:Le[he])!=null?lt:q;return re.formatTooltip({title:ce,symbol:this.legendItemSymbol(he),data:[{label:je,fallbackLabel:V,value:String(Fe)}]},pe({seriesId:t,datum:me,title:q,legendItemKey:S,calloutLabelKey:E,calloutLabelName:L,sectorLabelKey:_,sectorLabelName:N,angleKey:V,angleName:q,radiusKey:Y,radiusName:J},this.getSectorFormat(me,he,!1)))}legendItemSymbol(e){var a;let t=(a=this.processedData)==null?void 0:a.rawData[e],n=this.getSectorFormat(t,e,!1);return{marker:{fill:n.fill,stroke:n.stroke,fillOpacity:this.properties.fillOpacity,strokeOpacity:this.properties.strokeOpacity,strokeWidth:this.properties.strokeWidth}}}getLegendData(e){var we,Me,be,Le,Fe;let{visible:t,processedData:n,dataModel:a,id:h,ctx:{legendManager:S}}=this;if(!a||!n||!this.properties.isValid()||e!=="category")return[];let{angleKey:E,calloutLabelKey:L,sectorLabelKey:_,legendItemKey:N,showInLegend:V}=this.properties;if(!N&&(!L||L===E)&&(!_||_===E))return[];let{angleRawValues:q,calloutLabelValues:Y,sectorLabelValues:J,legendItemValues:re}=this.getProcessedDataValues(a,n),ce=((we=this.properties.title)==null?void 0:we.showInLegend)&&this.properties.title.text,he=[],me=this.properties.hideZeroValueSectorsInLegend;for(let je=0;je<n.rawData.length;je++){let Xe=n.rawData[je],nt=q[je];if(me&&nt===0)continue;let lt=[];ce&&lt.push(ce);let ot=this.getLabels(Xe,2*Math.PI,2*Math.PI,!1,Y==null?void 0:Y[je],J==null?void 0:J[je],re==null?void 0:re[je]);N&&ot.legendItem!==void 0?lt.push(ot.legendItem.text):L&&L!==E&&((Me=ot.calloutLabel)==null?void 0:Me.text)!==void 0?lt.push((be=ot.calloutLabel)==null?void 0:be.text):_&&_!==E&&((Le=ot.sectorLabel)==null?void 0:Le.text)!==void 0&&lt.push((Fe=ot.sectorLabel)==null?void 0:Fe.text),lt.length!==0&&he.push({legendType:"category",id:h,datum:Xe,itemId:je,seriesId:h,enabled:t&&S.getItemEnabled({seriesId:h,itemId:je}),label:{text:lt.join(" - ")},symbol:this.legendItemSymbol(je),legendItemName:N!=null?Xe[N]:void 0,hideInLegend:!V})}return he}setLegendState(e){let{id:t,ctx:{legendManager:n,updateService:a}}=this;e.forEach((h,S)=>n.toggleItem({enabled:h,seriesId:t,itemId:S})),n.update(),a.update(4)}animateEmptyUpdateReady(e){let{animationManager:t}=this.ctx,n=rE(!0,this.properties.rotation,this.radiusScale,this.previousRadiusScale);Do(this.id,"nodes",t,[this.itemSelection,this.highlightSelection,this.phantomSelection],n.nodes,(a,h)=>this.getDatumId(h)),Do(this.id,"innerCircle",t,[this.innerCircleSelection],n.innerCircle),Xa(this,"callout",t,this.calloutLabelSelection),Xa(this,"sector",t,this.labelSelection),Xa(this,"highlight",t,this.highlightLabelSelection),Xa(this,"inner",t,this.innerLabelsSelection),this.previousRadiusScale.range=this.radiusScale.range}animateWaitingUpdateReady(){var J,re,ce,he,me,we,Me;let{itemSelection:e,highlightSelection:t,phantomSelection:n,processedData:a,radiusScale:h,previousRadiusScale:S}=this,{animationManager:E}=this.ctx,L=(re=(J=a==null?void 0:a.reduced)==null?void 0:J.diff)==null?void 0:re[this.id];this.ctx.animationManager.stopByAnimationGroupId(this.id);let _=((ce=L==null?void 0:L.moved.size)!=null?ce:0)===0,N=((he=a==null?void 0:a.defs.keys.length)!=null?he:0)>0,V=(Me=(we=(me=a==null?void 0:a.reduced)==null?void 0:me.animationValidation)==null?void 0:we.uniqueKeys)!=null?Me:!0;(!_||!N||!V)&&this.ctx.animationManager.skipCurrentBatch();let q=!this.nodeData.some(be=>be.enabled),Y=rE(!1,this.properties.rotation,h,S);Do(this.id,"nodes",E,[e,t,n],Y.nodes,(be,Le)=>this.getDatumId(Le),L),Do(this.id,"innerCircle",E,[this.innerCircleSelection],Y.innerCircle),Xa(this,"callout",this.ctx.animationManager,this.calloutLabelSelection),Xa(this,"sector",this.ctx.animationManager,this.labelSelection),Xa(this,"highlight",this.ctx.animationManager,this.highlightLabelSelection),this.noVisibleData!==q&&(this.noVisibleData=q,Xa(this,"inner",this.ctx.animationManager,this.innerLabelsSelection)),this.previousRadiusScale.range=this.radiusScale.range}animateClearingUpdateEmpty(){let{itemSelection:e,highlightSelection:t,phantomSelection:n,radiusScale:a,previousRadiusScale:h}=this,{animationManager:S}=this.ctx,E=rE(!1,this.properties.rotation,a,h);Do(this.id,"nodes",S,[e,t,n],E.nodes,(L,_)=>this.getDatumId(_)),Do(this.id,"innerCircle",S,[this.innerCircleSelection],E.innerCircle),hC(this,"callout",this.ctx.animationManager,this.calloutLabelSelection),hC(this,"sector",this.ctx.animationManager,this.labelSelection),hC(this,"highlight",this.ctx.animationManager,this.highlightLabelSelection),hC(this,"inner",this.ctx.animationManager,this.innerLabelsSelection),this.previousRadiusScale.range=this.radiusScale.range}getDatumIdFromData(e){var h,S,E;let{calloutLabelKey:t,sectorLabelKey:n,legendItemKey:a}=this.properties;if((E=(S=(h=this.processedData)==null?void 0:h.reduced)==null?void 0:S.animationValidation)!=null&&E.uniqueKeys){if(a)return e[a];if(t)return e[t];if(n)return e[n]}}getDatumId(e){let{datumIndex:t}=e,n=this.getDatumIdFromData(e.datum);return String(n!=null?n:t)}},c_.className="DonutSeries",c_.type="donut"}}),XV,b$=M({"packages/ag-charts-community/src/chart/series/polar/donutTheme.ts"(){"use strict";Of(),lr(),XV={series:{title:{enabled:!0,fontWeight:"normal",fontSize:14,fontFamily:So,color:Ll,spacing:5},calloutLabel:{enabled:!0,fontSize:12,fontFamily:So,color:Vo,offset:3,minAngle:0},sectorLabel:{enabled:!0,fontWeight:"normal",fontSize:12,fontFamily:So,color:Qp,positionOffset:0,positionRatio:.5},calloutLine:{length:10,strokeWidth:2},fillOpacity:1,strokeOpacity:1,strokeWidth:0,lineDash:[0],lineDashOffset:0,rotation:0,sectorSpacing:1,shadow:{enabled:!1,color:sy,xOffset:3,yOffset:3,blur:5},innerLabels:{fontSize:12,fontFamily:So,color:Vo,spacing:2}}}}}),ZV,C3,$V=M({"packages/ag-charts-community/src/chart/series/polar/pieTheme.ts"(){"use strict";Of(),lr(),ZV={series:{title:{enabled:!0,fontWeight:"normal",fontSize:14,fontFamily:So,color:Ll,spacing:5},calloutLabel:{enabled:!0,fontSize:12,fontFamily:So,color:Vo,offset:3,minAngle:0},sectorLabel:{enabled:!0,fontWeight:"normal",fontSize:12,fontFamily:So,color:Qp,positionOffset:0,positionRatio:.5},calloutLine:{length:10,strokeWidth:2},fillOpacity:1,strokeOpacity:1,strokeWidth:0,lineDash:[0],lineDashOffset:0,rotation:0,sectorSpacing:1,shadow:{enabled:!1,color:sy,xOffset:3,yOffset:3,blur:5}}},C3=({takeColors:e,colorsCount:t})=>{let{fills:n,strokes:a}=e(t);return{fills:n,strokes:a,calloutLine:{colors:a}}}}}),QV,C$=M({"packages/ag-charts-community/src/chart/series/polar/donutSeriesModule.ts"(){"use strict";y$(),b$(),$V(),QV={type:"series",optionsKey:"series[]",packageType:"community",chartTypes:["polar"],identifier:"donut",moduleFactory:e=>new c_(e),tooltipDefaults:{range:"exact"},themeTemplate:XV,paletteFactory:C3}}}),S3,sE,d_,e2,so,S$=M({"packages/ag-charts-community/src/chart/series/polar/pieSeriesProperties.ts"(){"use strict";Gk(),ga(),Ki(),wp(),jd(),$L(),ua(),gC(),S3=class extends vo{constructor(){super(...arguments),this.showInLegend=!1}},f([$e(Ji)],S3.prototype,"showInLegend",2),sE=class extends Hr{constructor(){super(...arguments),this.offset=3,this.minAngle=0,this.minSpacing=4,this.maxCollisionOffset=50,this.avoidCollisions=!0}},f([$e(mi)],sE.prototype,"offset",2),f([$e(pa.restrict({min:0,max:360}))],sE.prototype,"minAngle",2),f([$e(mi)],sE.prototype,"minSpacing",2),f([$e(mi)],sE.prototype,"maxCollisionOffset",2),f([$e(Ji)],sE.prototype,"avoidCollisions",2),d_=class extends Hr{constructor(){super(...arguments),this.positionOffset=0,this.positionRatio=.5}},f([$e(pa)],d_.prototype,"positionOffset",2),f([$e(Wn)],d_.prototype,"positionRatio",2),e2=class extends _n{constructor(){super(...arguments),this.length=10,this.strokeWidth=1}},f([$e(Hs,{optional:!0})],e2.prototype,"colors",2),f([$e(mi)],e2.prototype,"length",2),f([$e(mi)],e2.prototype,"strokeWidth",2),so=class extends Tl{constructor(){super(...arguments),this.fills=Object.values(gc),this.strokes=Object.values(hy),this.fillOpacity=1,this.strokeOpacity=1,this.lineDash=[0],this.lineDashOffset=0,this.cornerRadius=0,this.rotation=0,this.outerRadiusOffset=0,this.outerRadiusRatio=1,this.strokeWidth=1,this.sectorSpacing=0,this.hideZeroValueSectorsInLegend=!1,this.title=new S3,this.shadow=new Uu,this.calloutLabel=new sE,this.sectorLabel=new d_,this.calloutLine=new e2,this.tooltip=new Wc}},f([$e(hi)],so.prototype,"angleKey",2),f([$e(hi,{optional:!0})],so.prototype,"angleName",2),f([$e(hi,{optional:!0})],so.prototype,"angleFilterKey",2),f([$e(hi,{optional:!0})],so.prototype,"radiusKey",2),f([$e(hi,{optional:!0})],so.prototype,"radiusName",2),f([$e(mi,{optional:!0})],so.prototype,"radiusMin",2),f([$e(mi,{optional:!0})],so.prototype,"radiusMax",2),f([$e(hi,{optional:!0})],so.prototype,"calloutLabelKey",2),f([$e(hi,{optional:!0})],so.prototype,"calloutLabelName",2),f([$e(hi,{optional:!0})],so.prototype,"sectorLabelKey",2),f([$e(hi,{optional:!0})],so.prototype,"sectorLabelName",2),f([$e(hi,{optional:!0})],so.prototype,"legendItemKey",2),f([$e(Hs)],so.prototype,"fills",2),f([$e(Hs)],so.prototype,"strokes",2),f([$e(Wn)],so.prototype,"fillOpacity",2),f([$e(Wn)],so.prototype,"strokeOpacity",2),f([$e(_d)],so.prototype,"lineDash",2),f([$e(mi)],so.prototype,"lineDashOffset",2),f([$e(mi)],so.prototype,"cornerRadius",2),f([$e(Kl,{optional:!0})],so.prototype,"itemStyler",2),f([$e(pa)],so.prototype,"rotation",2),f([$e(pa)],so.prototype,"outerRadiusOffset",2),f([$e(Wn)],so.prototype,"outerRadiusRatio",2),f([$e(mi)],so.prototype,"strokeWidth",2),f([$e(pa)],so.prototype,"sectorSpacing",2),f([$e(Ji)],so.prototype,"hideZeroValueSectorsInLegend",2),f([$e(Yi)],so.prototype,"title",2),f([$e(Yi)],so.prototype,"shadow",2),f([$e(Yi)],so.prototype,"calloutLabel",2),f([$e(Yi)],so.prototype,"sectorLabel",2),f([$e(Yi)],so.prototype,"calloutLine",2),f([$e(Yi)],so.prototype,"tooltip",2)}}),JV,u_,w$=M({"packages/ag-charts-community/src/chart/series/polar/pieSeries.ts"(){"use strict";fs(),Zp(),jn(),$o(),Wa(),as(),Gd(),n_(),Pc(),ZL(),br(),Lc(),Rn(),zn(),Ta(),aa(),Yd(),ac(),Ct(),LS(),Il(),sc(),Kh(),S$(),y3(),l_(),s_(),JV=class extends Tr{constructor(e,t,n,a){super(e,t,n,a),this.angleKey=a.properties.angleKey,this.radiusKey=a.properties.radiusKey,this.calloutLabelKey=a.properties.calloutLabelKey,this.sectorLabelKey=a.properties.sectorLabelKey}},u_=class extends JL{constructor(e){super({moduleCtx:e,pickModes:[1,0],useLabelLayer:!0,animationResetFns:{item:f3,label:Ff}}),this.properties=new so,this.phantomNodeData=void 0,this.backgroundGroup=new qa({name:`${this.id}-background`,zIndex:0}),this.previousRadiusScale=new Sd,this.radiusScale=new Sd,this.phantomGroup=this.backgroundGroup.appendChild(new hn({name:"phantom"})),this.phantomSelection=Er.select(this.phantomGroup,()=>this.nodeFactory(),!1),this.calloutLabelGroup=this.contentGroup.appendChild(new hn({name:"pieCalloutLabels"})),this.calloutLabelSelection=new Er(this.calloutLabelGroup,hn),this.zerosumRingsGroup=this.backgroundGroup.appendChild(new hn({name:`${this.id}-zerosumRings`})),this.zerosumOuterRing=this.zerosumRingsGroup.appendChild(new Vp),this.surroundingRadius=void 0,this.NodeEvent=JV,this.angleScale=new Sd,this.angleScale.domain=[0,1],this.angleScale.range=[-Math.PI,Math.PI].map(t=>t+Math.PI/2),this.phantomGroup.opacity=.2}get calloutNodeData(){var e;return(e=this.phantomNodeData)!=null?e:this.nodeData}attachSeries(e,t,n){super.attachSeries(e,t,n),e.appendChild(this.backgroundGroup)}detachSeries(e,t,n){super.detachSeries(e,t,n),e==null||e.removeChild(this.backgroundGroup)}setSeriesIndex(e){return super.setSeriesIndex(e)?(this.backgroundGroup.zIndex=[0,e],!0):!1}nodeFactory(){let e=new Uc;return e.miterLimit=1e9,e}getSeriesDomain(e){return e==="x"?this.angleScale.domain:this.radiusScale.domain}async processData(e){var he,me,we,Me,be,Le,Fe,je;if(this.data==null||!this.properties.isValid())return;let{visible:t,id:n,ctx:{legendManager:a}}=this,{angleKey:h,angleFilterKey:S,radiusKey:E,calloutLabelKey:L,sectorLabelKey:_,legendItemKey:N}=this.properties,V=(Xe,nt,lt)=>t&&a.getItemEnabled({seriesId:n,itemId:lt}),q=!this.ctx.animationManager.isSkipped(),Y=[],J=[];N?Y.push(Jd(N,"band",{id:"legendItemKey"})):L?Y.push(Jd(L,"band",{id:"calloutLabelKey"})):_&&Y.push(Jd(_,"band",{id:"sectorLabelKey"}));let re=this.radiusScale.type,ce=this.angleScale.type;E&&J.push(Cd(E,{id:"radiusValue",min:(he=this.properties.radiusMin)!=null?he:0,max:this.properties.radiusMax}),fn(E,re,{id:"radiusRaw"}),Tf("radiusValue",[0,1],1,(me=this.properties.radiusMin)!=null?me:0,this.properties.radiusMax)),L&&J.push(fn(L,"band",{id:"calloutLabelValue"})),_&&J.push(fn(_,"band",{id:"sectorLabelValue"})),N&&J.push(fn(N,"band",{id:"legendItemValue"})),S&&J.push(Pl(S,ce,{id:"angleFilterValue",onlyPositive:!0,validation:V,invalidValue:0}),fn(S,ce,{id:"angleFilterRaw"}),Tf("angleFilterValue",[0,1],0,0)),q&&((be=(Me=(we=this.processedData)==null?void 0:we.reduced)==null?void 0:Me.animationValidation)!=null&&be.uniqueKeys)&&Y.length>0&&J.push($(this.id,this.processedData)),J.push(rC()),await this.requestDataModel(e,this.data,{props:[...Y,Pl(h,ce,{id:"angleValue",onlyPositive:!0,validation:V,invalidValue:0}),fn(h,ce,{id:"angleRaw"}),Tf("angleValue",[0,1],0,0),...J]});for(let Xe of(je=(Fe=(Le=this.processedData)==null?void 0:Le.defs)==null?void 0:Fe.values)!=null?je:[]){let{id:nt,missing:lt,property:ot}=Xe,vt=Ig(this,lt);nt!=="angleRaw"&&vt>0&&Di.warnOnce(`no value was found for the key '${String(ot)}' on ${vt} data element${vt>1?"s":""}`)}this.animationState.transition("updateData")}maybeRefreshNodeData(){var n;if(!this.nodeDataRefresh)return;let{nodeData:e=[],phantomNodeData:t}=(n=this.createNodeData())!=null?n:{};this.nodeData=e,this.phantomNodeData=t,this.nodeDataRefresh=!1}getProcessedDataValues(e,t){let n=e.resolveColumnById(this,"angleValue",t),a=e.resolveColumnById(this,"angleRaw",t),h=this.properties.angleFilterKey!=null?e.resolveColumnById(this,"angleFilterValue",t):void 0,S=this.properties.angleFilterKey!=null?e.resolveColumnById(this,"angleFilterRaw",t):void 0,E=this.properties.radiusKey?e.resolveColumnById(this,"radiusValue",t):void 0,L=this.properties.radiusKey?e.resolveColumnById(this,"radiusRaw",t):void 0,_=this.properties.calloutLabelKey?e.resolveColumnById(this,"calloutLabelValue",t):void 0,N=this.properties.sectorLabelKey?e.resolveColumnById(this,"sectorLabelValue",t):void 0,V=this.properties.legendItemKey?e.resolveColumnById(this,"legendItemValue",t):void 0;return{angleValues:n,angleRawValues:a,angleFilterValues:h,angleFilterRawValues:S,radiusValues:E,radiusRawValues:L,calloutLabelValues:_,sectorLabelValues:N,legendItemValues:V}}createNodeData(){var Le;let{id:e,processedData:t,dataModel:n,angleScale:a,ctx:{legendManager:h},visible:S}=this,{rotation:E}=this.properties;if(!(t!=null&&t.rawData.length)||!n||t.type!=="ungrouped")return;let{angleValues:L,angleRawValues:_,angleFilterValues:N,angleFilterRawValues:V,radiusValues:q,radiusRawValues:Y,calloutLabelValues:J,sectorLabelValues:re,legendItemValues:ce}=this.getProcessedDataValues(n,t),he=(Le=V==null?void 0:V.some((Fe,je)=>Fe>_[je]))!=null?Le:!1,me=0,we=0,Me=[],be=V!=null?[]:void 0;return t.rawData.forEach((Fe,je)=>{var Ut;let Xe=he?N[je]:L[je],nt=V!=null&&!he?Math.sqrt(V[je]/_[je]):1,lt=a.convert(me)+za(E);me=Xe,we+=Xe;let ot=a.convert(me)+za(E),vt=Math.abs(ot-lt),gt=lt+vt/2,bt=_[je],Rt=((Ut=q==null?void 0:q[je])!=null?Ut:1)*nt,It=Y==null?void 0:Y[je],Dt=ce==null?void 0:ce[je],jt=this.getLabels(Fe,gt,vt,!0,J==null?void 0:J[je],re==null?void 0:re[je],Dt),Nt=this.getSectorFormat(Fe,je,!1),zt=pe({itemId:je,series:this,datum:Fe,datumIndex:je,angleValue:bt,midAngle:gt,midCos:Math.cos(gt),midSin:Math.sin(gt),startAngle:lt,endAngle:ot,radius:Rt,innerRadius:Math.max(this.radiusScale.convert(0),0),outerRadius:Math.max(this.radiusScale.convert(Rt),0),sectorFormat:Nt,radiusValue:It,legendItemValue:Dt,enabled:S&&h.getItemEnabled({seriesId:e,itemId:je})},jt);Me.push(zt),be!=null&&be.push(et(pe({},zt),{radius:1,innerRadius:Math.max(this.radiusScale.convert(0),0),outerRadius:Math.max(this.radiusScale.convert(1),0)}))}),this.zerosumOuterRing.visible=we===0,{itemId:e,nodeData:Me,labelData:Me,phantomNodeData:be}}getLabels(e,t,n,a,h,S,E){let{calloutLabel:L,sectorLabel:_,legendItemKey:N}=this.properties,V=!a||L.enabled?this.properties.calloutLabelKey:void 0,q=!a||_.enabled?this.properties.sectorLabelKey:void 0;if(!V&&!q&&!N)return{};let Y={datum:e,angleKey:this.properties.angleKey,angleName:this.properties.angleName,radiusKey:this.properties.radiusKey,radiusName:this.properties.radiusName,calloutLabelKey:this.properties.calloutLabelKey,calloutLabelName:this.properties.calloutLabelName,sectorLabelKey:this.properties.sectorLabelKey,sectorLabelName:this.properties.sectorLabelName,legendItemKey:this.properties.legendItemKey},J={};return V&&n>za(L.minAngle)&&(J.calloutLabel=et(pe({},this.getTextAlignment(t)),{text:this.getLabelText(L,et(pe({},Y),{value:h})),hidden:!1,collisionTextAlign:void 0,collisionOffsetY:0,box:void 0})),q&&(J.sectorLabel={text:this.getLabelText(_,et(pe({},Y),{value:S}))}),N!=null&&E!=null&&(J.legendItem={key:N,text:E}),J}getTextAlignment(e){let t=[{textAlign:"center",textBaseline:"bottom"},{textAlign:"left",textBaseline:"middle"},{textAlign:"center",textBaseline:"hanging"},{textAlign:"right",textBaseline:"middle"}],n=hb(e),a=-.75*Math.PI,h=n-a,S=Math.floor(h/(Math.PI/2)),E=zy(S,t.length);return t[E]}getSectorFormat(e,t,n){var Le,Fe,je,Xe,nt,lt,ot,vt;let{angleKey:a,radiusKey:h,calloutLabelKey:S,sectorLabelKey:E,legendItemKey:L,fills:_,strokes:N,itemStyler:V}=this.properties,q=N[t%N.length],{fill:Y,fillOpacity:J,stroke:re,strokeWidth:ce,strokeOpacity:he,lineDash:me,lineDashOffset:we,cornerRadius:Me}=ia(n&&this.properties.highlightStyle.item,{fill:_.length>0?_[t%_.length]:void 0,stroke:q,strokeWidth:this.getStrokeWidth(this.properties.strokeWidth),strokeOpacity:this.getOpacity()},this.properties),be;return V&&(be=this.cachedDatumCallback(ie(this.getDatumIdFromData(e),n?"highlight":"hide"),()=>V({datum:e,angleKey:a,radiusKey:h,calloutLabelKey:S,sectorLabelKey:E,legendItemKey:L,fill:Y,strokeOpacity:he,stroke:re,strokeWidth:ce,fillOpacity:J,lineDash:me,lineDashOffset:we,cornerRadius:Me,highlighted:n,seriesId:this.id}))),{fill:(Le=be==null?void 0:be.fill)!=null?Le:Y,fillOpacity:(Fe=be==null?void 0:be.fillOpacity)!=null?Fe:J,stroke:(je=be==null?void 0:be.stroke)!=null?je:re,strokeWidth:(Xe=be==null?void 0:be.strokeWidth)!=null?Xe:ce,strokeOpacity:(nt=be==null?void 0:be.strokeOpacity)!=null?nt:he,lineDash:(lt=be==null?void 0:be.lineDash)!=null?lt:me,lineDashOffset:(ot=be==null?void 0:be.lineDashOffset)!=null?ot:we,cornerRadius:(vt=be==null?void 0:be.cornerRadius)!=null?vt:Me}}getOuterRadius(){return Math.max(this.radius*this.properties.outerRadiusRatio+this.properties.outerRadiusOffset,0)}updateRadiusScale(e){var a;let t=[0,this.getOuterRadius()];this.radiusScale.range=t,e&&(this.previousRadiusScale.range=t);let n=h=>et(pe({},h),{innerRadius:Math.max(this.radiusScale.convert(0),0),outerRadius:Math.max(this.radiusScale.convert(h.radius),0)});this.nodeData=this.nodeData.map(n),this.phantomNodeData=(a=this.phantomNodeData)==null?void 0:a.map(n)}getTitleTranslationY(){var h,S;let e=Math.max(0,this.radiusScale.range[1]);if(e===0)return NaN;let n=2+((S=(h=this.properties.title)==null?void 0:h.spacing)!=null?S:0),a=Math.max(0,-e);return-e-n-a}update({seriesRect:e}){let{title:t}=this.properties,n={seriesRectWidth:e==null?void 0:e.width,seriesRectHeight:e==null?void 0:e.height},a=gg(this.nodeDataDependencies,n)!=null;if(a&&(this._nodeDataDependencies=n),this.maybeRefreshNodeData(),this.updateTitleNodes(),this.updateRadiusScale(a),this.contentGroup.translationX=this.centerX,this.contentGroup.translationY=this.centerY,this.highlightGroup.translationX=this.centerX,this.highlightGroup.translationY=this.centerY,this.backgroundGroup.translationX=this.centerX,this.backgroundGroup.translationY=this.centerY,this.labelGroup&&(this.labelGroup.translationX=this.centerX,this.labelGroup.translationY=this.centerY),t){let h=this.getTitleTranslationY();t.node.y=isFinite(h)?h:0;let S=t.node.getBBox();t.node.visible=t.enabled&&isFinite(h)&&!this.bboxIntersectsSurroundingSeries(S)}this.zerosumOuterRing.fillOpacity=0,this.zerosumOuterRing.stroke=this.properties.calloutLabel.color,this.zerosumOuterRing.strokeWidth=1,this.zerosumOuterRing.strokeOpacity=1,this.updateNodeMidPoint(),this.updateSelections(),this.updateNodes(e)}updateTitleNodes(){var n,a;let{oldTitle:e}=this,{title:t}=this.properties;e!==t&&(e&&((n=this.labelGroup)==null||n.removeChild(e.node)),t&&(t.node.textBaseline="bottom",(a=this.labelGroup)==null||a.appendChild(t.node)),this.oldTitle=t)}updateNodeMidPoint(){var t;let e=n=>{let a=n.innerRadius+(n.outerRadius-n.innerRadius)/2;n.midPoint={x:n.midCos*Math.max(0,a),y:n.midSin*Math.max(0,a)}};this.nodeData.forEach(e),(t=this.phantomNodeData)==null||t.forEach(e)}updateSelections(){this.updateGroupSelection()}updateGroupSelection(){var _;let{itemSelection:e,highlightSelection:t,phantomSelection:n,highlightLabelSelection:a,calloutLabelSelection:h,labelSelection:S}=this,E=this.nodeData.map(N=>et(pe({},N),{sectorFormat:pe({},N.sectorFormat)})),L=(N,V)=>{N.update(V,void 0,q=>this.getDatumId(q)),this.ctx.animationManager.isSkipped()&&N.cleanup()};L(e,this.nodeData),L(t,E),L(n,(_=this.phantomNodeData)!=null?_:[]),h.update(this.calloutNodeData,N=>{let V=new Ks;V.tag=0,V.pointerEvents=1,N.appendChild(V);let q=new or;q.tag=1,q.pointerEvents=1,N.appendChild(q)}),S.update(this.nodeData),a.update(E)}updateNodes(e){let t=this.ctx.highlightManager.getActiveHighlight(),{visible:n}=this;this.backgroundGroup.visible=n,this.contentGroup.visible=n,this.highlightGroup.visible=n&&(t==null?void 0:t.series)===this,this.highlightLabel.visible=n&&(t==null?void 0:t.series)===this,this.labelGroup&&(this.labelGroup.visible=n),this.contentGroup.opacity=this.getOpacity();let a=this.ctx.animationManager.isSkipped(),h=(S,E,L,_)=>{let N=this.getSectorFormat(E.datum,E.itemId,_);E.sectorFormat.fill=N.fill,E.sectorFormat.stroke=N.stroke,a&&(S.startAngle=E.startAngle,S.endAngle=E.endAngle,S.innerRadius=E.innerRadius,S.outerRadius=E.outerRadius),(_||a)&&(S.fill=N.fill,S.stroke=N.stroke),S.strokeWidth=N.strokeWidth,S.fillOpacity=N.fillOpacity,S.strokeOpacity=N.strokeOpacity,S.lineDash=N.lineDash,S.lineDashOffset=N.lineDashOffset,S.cornerRadius=N.cornerRadius,S.fillShadow=this.properties.shadow;let V=Math.max((this.properties.sectorSpacing+(N.stroke!=null?N.strokeWidth:0))/2,0);S.inset=V,S.lineJoin=this.properties.sectorSpacing>=0||V>0?"miter":"round"};this.itemSelection.each((S,E,L)=>h(S,E,L,!1)),this.highlightSelection.each((S,E,L)=>{h(S,E,L,!0),S.visible=E.itemId===(t==null?void 0:t.itemId)}),this.phantomSelection.each((S,E,L)=>h(S,E,L,!1)),this.updateCalloutLineNodes(),this.updateCalloutLabelNodes(e),this.updateSectorLabelNodes(),this.updateZerosumRings(),this.animationState.transition("update")}updateCalloutLineNodes(){var S;let{calloutLine:e}=this.properties,t=e.length,n=e.strokeWidth,a=(S=e.colors)!=null?S:this.properties.strokes,{offset:h}=this.properties.calloutLabel;this.calloutLabelSelection.selectByTag(0).forEach((E,L)=>{var q;let _=E.datum,{calloutLabel:N,outerRadius:V}=_;if(N!=null&&N.text&&!N.hidden&&V!==0){E.visible=!0,E.strokeWidth=n,E.stroke=a[L%a.length],E.fill=void 0;let Y=_.midCos*V,J=_.midSin*V,re=_.midCos*(V+t),ce=_.midSin*(V+t);if(((q=N.collisionTextAlign)!=null?q:N.collisionOffsetY!==0)&&N.box!=null){let me=N.box,we=re,Me=ce;re<me.x?we=me.x:re>me.x+me.width&&(we=me.x+me.width),ce<me.y?Me=me.y:ce>me.y+me.height&&(Me=me.y+me.height);let be=we-re,Le=Me-ce,Fe=Math.sqrt(Math.pow(be,2)+Math.pow(Le,2)),je=Fe-h;je>0&&(re=re+be*je/Fe,ce=ce+Le*je/Fe)}E.x1=Y,E.y1=J,E.x2=re,E.y2=ce}else E.visible=!1})}getLabelOverflow(e,t,n){let a=-this.centerX,h=a+n.width,S=-this.centerY,E=S+n.height,L=1,_=1;t.x+L<a?_=(t.x+t.width-a)/t.width:t.x+t.width-L>h&&(_=(h-t.x)/t.width);let N=t.y+L<S||t.y+t.height-L>E,V=_===1?e.length:Math.floor(e.length*_)-1,q=this.bboxIntersectsSurroundingSeries(t);return{textLength:V,hasVerticalOverflow:N,hasSurroundingSeriesOverflow:q}}bboxIntersectsSurroundingSeries(e){let{surroundingRadius:t}=this;if(t==null)return!1;let n=[{x:e.x,y:e.y},{x:e.x+e.width,y:e.y},{x:e.x+e.width,y:e.y+e.height},{x:e.x,y:e.y+e.height}],a=t**2;return n.some(h=>h.x**2+h.y**2>a)}computeCalloutLabelCollisionOffsets(){let{radiusScale:e}=this,{calloutLabel:t,calloutLine:n}=this.properties,{offset:a,minSpacing:h}=t,S=e.convert(0),E=me=>!me.calloutLabel||me.outerRadius===0,L=this.calloutNodeData,_=L.filter(me=>!E(me));if(_.forEach(me=>{let we=me.calloutLabel;we!=null&&(we.hidden=!1,we.collisionTextAlign=void 0,we.collisionOffsetY=0)}),_.length<=1)return;let N=_.filter(me=>me.midCos<0).sort((me,we)=>me.midSin-we.midSin),V=_.filter(me=>me.midCos>=0).sort((me,we)=>me.midSin-we.midSin),q=_.filter(me=>{var we;return me.midSin<0&&((we=me.calloutLabel)==null?void 0:we.textAlign)==="center"}).sort((me,we)=>me.midCos-we.midCos),Y=_.filter(me=>{var we;return me.midSin>=0&&((we=me.calloutLabel)==null?void 0:we.textAlign)==="center"}).sort((me,we)=>me.midCos-we.midCos),J=me=>{var Xe;let we=me.calloutLabel;if(we==null)return Ui.zero.clone();let Me=me.outerRadius+n.length+a,be=me.midCos*Me,Le=me.midSin*Me+we.collisionOffsetY,Fe=(Xe=we.collisionTextAlign)!=null?Xe:we.textAlign,je=we.textBaseline;return or.computeBBox(we.text,be,Le,{font:this.properties.calloutLabel,textAlign:Fe,textBaseline:je})},re=(me,we,Me)=>{let be=J(me).grow(h/2),Le=J(we).grow(h/2);if(be.x<Le.x+Le.width&&be.x+be.width>Le.x&&(Me==="to-top"?be.y<Le.y+Le.height:be.y+be.height>Le.y)){let je=Me==="to-top"?be.y-Le.y-Le.height:be.y+be.height-Le.y;we.calloutLabel.collisionOffsetY=je}},ce=me=>{let we=me.slice().sort((be,Le)=>Math.abs(be.midSin)-Math.abs(Le.midSin))[0],Me=me.indexOf(we);for(let be=Me-1;be>=0;be--){let Le=me[be+1],Fe=me[be];re(Le,Fe,"to-top")}for(let be=Me+1;be<me.length;be++){let Le=me[be-1],Fe=me[be];re(Le,Fe,"to-bottom")}},he=me=>{let we=_.some(Xe=>Xe.calloutLabel.collisionOffsetY!==0),Me=me.map(Xe=>J(Xe)),be=Me.map(Xe=>Xe.clone().grow(h/2)),Le=!1;for(let Xe=0;Xe<be.length&&!Le;Xe++){let nt=be[Xe];for(let lt=Xe+1;lt<me.length;lt++){let ot=be[lt];if(nt.collidesBBox(ot)){Le=!0;break}}}let Fe=L.map(Xe=>{let{startAngle:nt,endAngle:lt,outerRadius:ot}=Xe;return{startAngle:nt,endAngle:lt,innerRadius:S,outerRadius:ot}}),je=Me.some(Xe=>Fe.some(nt=>UV(Xe,nt)));!Le&&!we&&!je||me.filter(Xe=>Xe.calloutLabel.textAlign==="center").forEach(Xe=>{let nt=Xe.calloutLabel;Xe.midCos<0?nt.collisionTextAlign="right":Xe.midCos>0?nt.collisionTextAlign="left":nt.collisionTextAlign="center"})};ce(N),ce(V),he(q),he(Y)}updateCalloutLabelNodes(e){let{radiusScale:t}=this,{calloutLabel:n,calloutLine:a}=this.properties,h=a.length,{offset:S,color:E}=n,L=new or;this.calloutLabelSelection.selectByTag(1).forEach(_=>{var be;let{datum:N}=_,V=N.calloutLabel,q=t.convert(N.radius),Y=Math.max(0,q);if(!(V!=null&&V.text)||Y===0||V.hidden){_.visible=!1;return}let J=Y+h+S,re=N.midCos*J,ce=N.midSin*J+V.collisionOffsetY,he={textAlign:(be=V.collisionTextAlign)!=null?be:V.textAlign,textBaseline:V.textBaseline};L.text=V.text,L.x=re,L.y=ce,L.setFont(this.properties.calloutLabel),L.setAlign(he);let me=L.getBBox(),we=V.text,Me=!0;if(n.avoidCollisions){let{textLength:Le,hasVerticalOverflow:Fe}=this.getLabelOverflow(V.text,me,e);we=V.text.length===Le?V.text:`${V.text.substring(0,Le)}\u2026`,Me=!Fe}_.text=we,_.x=re,_.y=ce,_.setFont(this.properties.calloutLabel),_.setAlign(he),_.fill=E,_.visible=Me})}computeLabelsBBox(e,t){let{calloutLabel:n,calloutLine:a}=this.properties,h=a.length,{offset:S,maxCollisionOffset:E,minSpacing:L}=n;if(!n.avoidCollisions)return null;this.maybeRefreshNodeData(),this.updateRadiusScale(!1),this.computeCalloutLabelCollisionOffsets();let _=[],N=new or,V,{title:q}=this.properties;if(q!=null&&q.text&&q.enabled){let Y=this.getTitleTranslationY();isFinite(Y)&&(N.text=q.text,N.x=0,N.y=Y,N.setFont(q),N.setAlign({textBaseline:"bottom",textAlign:"center"}),V=N.getBBox(),_.push(V))}return this.calloutNodeData.forEach(Y=>{var we;let J=Y.calloutLabel;if(!J||Y.outerRadius===0)return null;let re=Y.outerRadius+h+S,ce=Y.midCos*re,he=Y.midSin*re+J.collisionOffsetY;N.text=J.text,N.x=ce,N.y=he,N.setFont(this.properties.calloutLabel),N.setAlign({textAlign:(we=J.collisionTextAlign)!=null?we:J.textAlign,textBaseline:J.textBaseline});let me=N.getBBox();if(J.box=me,Math.abs(J.collisionOffsetY)>E){J.hidden=!0;return}if(V){let Me=-this.centerY,be=new Ui(V.x-L,Me,V.width+2*L,V.y+V.height+L-Me);if(me.collidesBBox(be)){J.hidden=!0;return}}if(e.hideWhenNecessary){let{textLength:Me,hasVerticalOverflow:be,hasSurroundingSeriesOverflow:Le}=this.getLabelOverflow(J.text,me,t),Fe=J.text.length>2&&Me<2;if(be||Fe||Le){J.hidden=!0;return}}J.hidden=!1,_.push(me)}),_.length===0?null:Ui.merge(_)}updateSectorLabelNodes(){var Y;let{radiusScale:e}=this,t=e.convert(0),{fontSize:n,fontStyle:a,fontWeight:h,fontFamily:S,positionOffset:E,positionRatio:L,color:_}=this.properties.sectorLabel,N=t>0,V=((Y=this.ctx.legendManager.getData(this.id))==null?void 0:Y.filter(J=>J.enabled).length)===1,q=(J,re)=>{let{sectorLabel:ce,outerRadius:he,startAngle:me,endAngle:we}=re,Me=!1;if(ce&&he!==0){let be=t*(1-L)+he*L+E;J.fill=_,J.fontStyle=a,J.fontWeight=h,J.fontSize=n,J.fontFamily=S,J.text=ce.text,!N&&V?(J.x=0,J.y=0):(J.x=re.midCos*be,J.y=re.midSin*be),J.textAlign="center",J.textBaseline="middle";let Fe=J.getBBox(),je=[[Fe.x,Fe.y],[Fe.x+Fe.width,Fe.y],[Fe.x+Fe.width,Fe.y+Fe.height],[Fe.x,Fe.y+Fe.height]],Xe={startAngle:me,endAngle:we,innerRadius:t,outerRadius:he};je.every(([nt,lt])=>QO(nt,lt,Xe))&&(Me=!0)}J.visible=Me};this.labelSelection.each(q),this.highlightLabelSelection.each(q)}updateZerosumRings(){this.zerosumOuterRing.size=this.getOuterRadius()*2}pickNodeClosestDatum(e){return v3(this,e)}getTooltipContent(e){var Xe,nt,lt;let{id:t,dataModel:n,processedData:a,properties:h}=this,{legendItemKey:S,calloutLabelKey:E,calloutLabelName:L,sectorLabelKey:_,sectorLabelName:N,angleKey:V,angleName:q,radiusKey:Y,radiusName:J,tooltip:re}=h,ce=this.properties.title.text;if(!n||!a||a.rawData.length===0)return;let{datumIndex:he}=e,me=a.rawData[he],{angleRawValues:we,legendItemValues:Me,calloutLabelValues:be,sectorLabelValues:Le}=this.getProcessedDataValues(n,a),Fe=we[he],je=(lt=(nt=(Xe=Me==null?void 0:Me[he])!=null?Xe:E===V||be==null?void 0:be[he])!=null?nt:_===V||Le==null?void 0:Le[he])!=null?lt:q;return re.formatTooltip({title:ce,symbol:this.legendItemSymbol(he),data:[{label:je,fallbackLabel:V,value:String(Fe)}]},pe({seriesId:t,datum:me,title:q,legendItemKey:S,calloutLabelKey:E,calloutLabelName:L,sectorLabelKey:_,sectorLabelName:N,angleKey:V,angleName:q,radiusKey:Y,radiusName:J},this.getSectorFormat(me,he,!1)))}legendItemSymbol(e){var a;let t=(a=this.processedData)==null?void 0:a.rawData[e],n=this.getSectorFormat(t,e,!1);return{marker:{fill:n.fill,stroke:n.stroke,fillOpacity:this.properties.fillOpacity,strokeOpacity:this.properties.strokeOpacity,strokeWidth:this.properties.strokeWidth}}}getLegendData(e){var we,Me,be,Le,Fe;let{id:t,visible:n,processedData:a,dataModel:h,ctx:{legendManager:S}}=this;if(!h||!a||e!=="category")return[];let{angleKey:E,calloutLabelKey:L,sectorLabelKey:_,legendItemKey:N,showInLegend:V}=this.properties;if(!N&&(!L||L===E)&&(!_||_===E))return[];let{calloutLabelValues:q,sectorLabelValues:Y,legendItemValues:J,angleRawValues:re}=this.getProcessedDataValues(h,a),ce=((we=this.properties.title)==null?void 0:we.showInLegend)&&this.properties.title.text,he=[],me=this.properties.hideZeroValueSectorsInLegend;for(let je=0;je<a.rawData.length;je++){let Xe=a.rawData[je],nt=re[je];if(me&&nt===0)continue;let lt=[];ce&&lt.push(ce);let ot=this.getLabels(Xe,2*Math.PI,2*Math.PI,!1,q==null?void 0:q[je],Y==null?void 0:Y[je],J==null?void 0:J[je]);N&&ot.legendItem!==void 0?lt.push(ot.legendItem.text):L&&L!==E&&((Me=ot.calloutLabel)==null?void 0:Me.text)!==void 0?lt.push((be=ot.calloutLabel)==null?void 0:be.text):_&&_!==E&&((Le=ot.sectorLabel)==null?void 0:Le.text)!==void 0&&lt.push((Fe=ot.sectorLabel)==null?void 0:Fe.text),lt.length!==0&&he.push({legendType:"category",id:t,datum:Xe,itemId:je,seriesId:t,enabled:n&&S.getItemEnabled({seriesId:t,itemId:je}),label:{text:lt.join(" - ")},symbol:this.legendItemSymbol(je),legendItemName:N!=null?Xe[N]:void 0,hideInLegend:!V})}return he}setLegendState(e){let{id:t,ctx:{legendManager:n,updateService:a}}=this;e.forEach((h,S)=>n.toggleItem({enabled:h,seriesId:t,itemId:S})),n.update(),a.update(4)}animateEmptyUpdateReady(e){let{animationManager:t}=this.ctx,n=rE(!0,this.properties.rotation,this.radiusScale,this.previousRadiusScale);Do(this.id,"nodes",t,[this.itemSelection,this.highlightSelection,this.phantomSelection],n.nodes,(a,h)=>this.getDatumId(h)),Xa(this,"callout",t,this.calloutLabelSelection),Xa(this,"sector",t,this.labelSelection),Xa(this,"highlight",t,this.highlightLabelSelection),this.previousRadiusScale.range=this.radiusScale.range}animateWaitingUpdateReady(){var Y,J,re,ce,he,me,we;let{itemSelection:e,highlightSelection:t,phantomSelection:n,processedData:a,radiusScale:h,previousRadiusScale:S}=this,{animationManager:E}=this.ctx,L=(J=(Y=a==null?void 0:a.reduced)==null?void 0:Y.diff)==null?void 0:J[this.id];this.ctx.animationManager.stopByAnimationGroupId(this.id);let _=((re=L==null?void 0:L.moved.size)!=null?re:0)===0,N=((ce=a==null?void 0:a.defs.keys.length)!=null?ce:0)>0,V=(we=(me=(he=a==null?void 0:a.reduced)==null?void 0:he.animationValidation)==null?void 0:me.uniqueKeys)!=null?we:!0;(!_||!N||!V)&&this.ctx.animationManager.skipCurrentBatch();let q=rE(!1,this.properties.rotation,h,S);Do(this.id,"nodes",E,[e,t,n],q.nodes,(Me,be)=>this.getDatumId(be),L),Xa(this,"callout",this.ctx.animationManager,this.calloutLabelSelection),Xa(this,"sector",this.ctx.animationManager,this.labelSelection),Xa(this,"highlight",this.ctx.animationManager,this.highlightLabelSelection),this.previousRadiusScale.range=this.radiusScale.range}animateClearingUpdateEmpty(){let{itemSelection:e,highlightSelection:t,phantomSelection:n,radiusScale:a,previousRadiusScale:h}=this,{animationManager:S}=this.ctx,E=rE(!1,this.properties.rotation,a,h);Do(this.id,"nodes",S,[e,t,n],E.nodes,(L,_)=>this.getDatumId(_)),hC(this,"callout",this.ctx.animationManager,this.calloutLabelSelection),hC(this,"sector",this.ctx.animationManager,this.labelSelection),hC(this,"highlight",this.ctx.animationManager,this.highlightLabelSelection),this.previousRadiusScale.range=this.radiusScale.range}getDatumIdFromData(e){var h,S,E;let{calloutLabelKey:t,sectorLabelKey:n,legendItemKey:a}=this.properties;if((E=(S=(h=this.processedData)==null?void 0:h.reduced)==null?void 0:S.animationValidation)!=null&&E.uniqueKeys){if(a)return e[a];if(t)return e[t];if(n)return e[n]}}getDatumId(e){let{datumIndex:t}=e,n=this.getDatumIdFromData(e.datum);return n!=null?String(n):`${t}`}},u_.className="PieSeries",u_.type="pie"}}),e6,x$=M({"packages/ag-charts-community/src/chart/series/polar/pieSeriesModule.ts"(){"use strict";w$(),$V(),e6={type:"series",optionsKey:"series[]",packageType:"community",chartTypes:["polar"],identifier:"pie",moduleFactory:e=>new u_(e),tooltipDefaults:{range:"exact"},themeTemplate:ZV,paletteFactory:C3}}});function w3(){Ph.register(ay,nR,ZT,MV,l3,NV,u3,VV,QV,e6,zV);for(let e of[Or,Iv,ny,Va,jc])Ou.register(e.type,{moduleFactory:t=>new e(t),hidden:e===Va})}var x3=M({"packages/ag-charts-community/src/chart/factory/registerInbuiltModules.ts"(){"use strict";P1(),Lh(),Ym(),uc(),iy(),Vu(),FO(),zO(),aR(),n$(),_V(),c$(),h$(),jV(),f$(),C$(),x$(),pf()}});function M$(){for(let e of Ph.modules){if(e.packageType==="enterprise"&&!XM(e)&&Di.errorOnce("Unexpected enterprise module registered: "+e.identifier),e.type==="root"&&e.themeTemplate)for(let t of e.chartTypes)Kv.set(t,e.themeTemplate);if(e.type==="series"){if(e.chartTypes.length>1)throw new Error(`AG Charts - Module definition error: ${e.identifier}`);rr.register(e.identifier,e)}if(e.type==="series-option"&&e.themeTemplate)for(let t of e.seriesTypes)rr.setThemeTemplate(t,e.themeTemplate);if(e.type==="axis-option"&&e.themeTemplate)for(let t of e.axisTypes){let n=Ou.getThemeTemplate(t),a=ia(e.themeTemplate,n);Ou.setThemeTemplate(t,a)}e.type==="axis"&&Ou.register(e.identifier,e),e.type==="legend"&&ff.register(e.identifier,e)}if(Ph.hasEnterpriseModules()){let e=xS();e.length>0&&Di.errorOnce("Enterprise modules expected but not registered: ",e)}}var k$=M({"packages/ag-charts-community/src/chart/factory/setupModules.ts"(){"use strict";Lh(),Rn(),Ta(),pf(),Lg(),Pg(),Uv(),MS()}});function A$(e){return e.type==="sankey"||e.type==="chord"}var h_,D$=M({"packages/ag-charts-community/src/chart/flowProportionChart.ts"(){"use strict";ks(),h_=class extends Wp{getChartType(){return"flow-proportion"}async updateData(){await super.updateData();let{nodes:e}=this.getOptions();this.series.forEach(t=>{A$(t)&&t.setChartNodes(e)})}performLayout(e){let{seriesRoot:t,annotationRoot:n}=this,{layoutBox:a}=e;a.shrink(this.seriesArea.padding.toJson());let h=a.clone();this.seriesRect=h,this.animationRect=h,t.visible=this.series.some(S=>S.visible);for(let S of[t,n])S.translationX=Math.floor(h.x),S.translationY=Math.floor(h.y);this.ctx.layoutManager.emitLayoutComplete(e,{series:{visible:t.visible,rect:h,paddedRect:h}})}},h_.className="FlowProportionChart",h_.type="flow-proportion"}}),Hk,M3=M({"packages/ag-charts-community/src/chart/axis/polarAxis.ts"(){"use strict";Ki(),K0(),Hk=class extends kp{constructor(){super(...arguments),this.shape="polygon",this.innerRadiusRatio=0,this.defaultTickMinSpacing=20}computeLabelsBBox(e,t){return null}computeRange(){}getAxisLinePoints(){}},f([$e(zo(["polygon","circle"],"a polar axis shape"))],Hk.prototype,"shape",2),f([$e(Wn)],Hk.prototype,"innerRadiusRatio",2)}});function E$(e){return e.type==="radial-gauge"}function I$(e){return e.type==="linear-gauge"}var g_,T$=M({"packages/ag-charts-community/src/chart/gaugeChart.ts"(){"use strict";Zp(),ZL(),br(),Rn(),Ev(),M3(),ks(),aa(),g_=class extends Wp{getChartType(){return"gauge"}updateRadialGauge(e,t){let n=this.axes.find(nt=>nt.direction==="x");if(!(n instanceof Hk))return;n.computeRange();let a=e.x,h=a+e.width,S=e.y,E=S+e.height,[L,_]=n.range,V=Ox(_-L)>Math.PI,q=V||sd(1.5*Math.PI,L,_),Y=V||sd(0*Math.PI,L,_),J=V||sd(.5*Math.PI,L,_),re=V||sd(1*Math.PI,L,_),ce;re&&!Y?ce="right":!re&&Y?ce="left":ce="center";let he;q&&!J?he="bottom":!q&&J?he="top":he="middle";let me=p3({startAngle:L,endAngle:_,innerRadius:0,outerRadius:.5}),we=-(me.x+me.width/2)*2,Me=-(me.y+me.height/2)*2,{minimumRadius:be=0,maximumRadius:Le}=t,Fe=Math.max(.5*Math.min(e.width/me.width,e.height/me.height),0),je=Math.min(Le!=null?Le:1/0,Math.max(Fe,be!=null?be:0)),Xe=8;for(let nt=0;nt<Xe;nt+=1){let lt=je<=be||nt===Xe-1,ot=e.x+e.width/2+we*je,vt=e.y+e.height/2+Me*je;n.translation.x=ot,n.translation.y=vt,n.gridLength=je,n.calculateLayout();let gt=n.computeLabelsBBox({hideWhenNecessary:lt},e);if(lt)break;let bt=0;if(gt!=null){let At=gt.x+ot,Rt=At+gt.width,It=gt.y+vt,Dt=It+gt.height;bt=Math.max(S-It,a-At,Dt-E,Rt-h,0)}if(bt>0)je=Math.max(je-bt,be);else break}n.translation.x=e.x+e.width/2+we*je,n.translation.y=e.y+e.height/2+Me*je,t.centerX=e.width/2+we*je,t.centerY=e.height/2+Me*je,t.radius=je,t.textAlign=ce,t.verticalAlign=he,(je===0||je>Fe)&&Di.warnOnce("There was insufficient space to display the Radial Gauge.")}updateLinearGauge(e,t){let n=this.axes.find(he=>he.direction==="x"),a=this.axes.find(he=>he.direction==="y");if(!(n instanceof Ap)||!(a instanceof Ap))return e;let{horizontal:h,thickness:S}=t,E=0,L=0,_=new Sd;_.domain=[0,100],_.range=h?n.range:a.range;let N=_.ticks();h?E=t.computeInset("x",N):L=t.computeInset("y",N);let V=e.width-Math.abs(E),q=e.height-Math.abs(L),Y=Math.max(h?V:S,0),J=Math.max(h?S:q,0),re=e.x+(V-Y)/2+Math.max(E,0),ce=e.y+(q-J)/2-Math.min(L,0);n.range=[0,Y],n.gridLength=Y,n.calculateLayout(),n.translation.x=re,n.translation.y=ce+(n.position==="bottom"?S:0),a.range=[0,J],a.gridLength=J,a.calculateLayout(),a.translation.x=re+(a.position==="right"?S:0),a.translation.y=ce,t.originX=re-e.x,t.originY=ce-e.y,(Y===0||J===0)&&Di.warnOnce("There was insufficient space to display the Linear Gauge.")}performLayout(e){let{seriesRoot:t,annotationRoot:n,series:a,seriesArea:h}=this,{layoutBox:S}=e,E=S.clone();S.shrink(h.padding.toJson());let L=this.series[0];E$(L)?this.updateRadialGauge(S,L):I$(L)&&this.updateLinearGauge(S,L),this.axes.forEach(_=>_.update()),this.seriesRect=E.clone().translate(E.x-S.x,E.y-S.y),this.animationRect=S,t.visible=a.some(_=>_.visible);for(let _ of[t,n])_.translationX=Math.floor(S.x),_.translationY=Math.floor(S.y);this.ctx.layoutManager.emitLayoutComplete(e,{series:{visible:t.visible,rect:E,paddedRect:S}})}getAriaLabel(){let e=[],t=this.getCaptionText();t.length!==0&&e.push(t);for(let a of this.series)e.push(a.getCaptionText());let n=e.join(". ");return this.ctx.localeManager.t("ariaAnnounceGaugeChart",{caption:n})}},g_.className="GaugeChart",g_.type="gauge"}}),p_,R$=M({"packages/ag-charts-community/src/chart/hierarchyChart.ts"(){"use strict";ks(),p_=class extends Wp{constructor(e,t){super(e,t)}getChartType(){return"hierarchy"}performLayout(e){let{seriesRoot:t,annotationRoot:n}=this,{layoutBox:a}=e;a.shrink(this.seriesArea.padding.toJson());let h=a.clone();this.seriesRect=h,this.animationRect=h;for(let S of[t,n])S.translationX=Math.floor(h.x),S.translationY=Math.floor(h.y);t.visible=this.series[0].visible,t.setClipRect(h.clone()),this.ctx.layoutManager.emitLayoutComplete(e,{series:{visible:!0,rect:h,paddedRect:h}})}getAriaLabel(){let e=this.getCaptionText();return this.ctx.localeManager.t("ariaAnnounceHierarchyChart",{caption:e})}},p_.className="HierarchyChart",p_.type="hierarchy"}});function P$(e){return e instanceof JL}function L$(e){return e instanceof Hk}var m_,O$=M({"packages/ag-charts-community/src/chart/polarChart.ts"(){"use strict";jn(),cp(),X0(),M3(),ks(),aa(),l_(),Wm(),m_=class extends Wp{constructor(e,t){super(e,t),this.padding=new Wr(40),this.ctx.axisManager.axisGroup.zIndex=5}getChartType(){return"polar"}async performLayout(e){let{layoutBox:t}=e;t.shrink(this.seriesArea.padding.toJson());let n=t.clone();this.seriesRect=n,this.animationRect=n,this.seriesRoot.translationX=n.x,this.seriesRoot.translationY=n.y,await this.computeCircle(n),this.axes.forEach(a=>a.update()),this.ctx.layoutManager.emitLayoutComplete(e,{series:{visible:!0,rect:n,paddedRect:n}})}updateAxes(e,t,n,a){var _;let h=this.axes.find(N=>N.direction==="x"),S=this.axes.find(N=>N.direction==="y");if(!(h instanceof Hk)||!(S instanceof Hk))return;let E=h.scale,L=S.innerRadiusRatio;h.innerRadiusRatio=L,h.computeRange(),h.gridLength=a,S.gridAngles=(_=E.ticks)==null?void 0:_.call(E).map(N=>E.convert(N)),S.gridRange=h.range,S.range=[a,a*L],[h,S].forEach(N=>{N.translation.x=e.x+t,N.translation.y=e.y+n,N.calculateLayout()})}async computeCircle(e){let t=this.series.filter(P$),n=this.axes.filter(L$),a=(N,V,q)=>{this.updateAxes(e,N,V,q),t.forEach(J=>{J.centerX=N,J.centerY=V,J.radius=q});let Y=t.filter(J=>J.type==="donut"||J.type==="pie");if(Y.length>1){let J=Y.map(re=>{let ce=re.getInnerRadius();return{series:re,innerRadius:ce}}).sort((re,ce)=>re.innerRadius-ce.innerRadius);J.at(-1).series.surroundingRadius=void 0;for(let re=0;re<J.length-1;re++)J[re].series.surroundingRadius=J[re+1].innerRadius}},h=e.width/2,S=e.height/2,E=Math.max(0,Math.min(e.width,e.height)/2),L=E;a(h,S,L);let _=async({hideWhenNecessary:N=!1}={})=>{let V=[];for(let J of pi(n,t)){let re=await J.computeLabelsBBox({hideWhenNecessary:N},e);re&&V.push(re)}if(V.length===0){a(h,S,E);return}let q=Ui.merge(V),Y=this.refineCircle(q,L,e);a(Y.centerX,Y.centerY,Y.radius),L=Y.radius};await _(),await _(),await _(),await _({hideWhenNecessary:!0}),await _({hideWhenNecessary:!0});for(let N of pi(n,t))await N.computeLabelsBBox({hideWhenNecessary:!0},e);return{radius:L,centerX:h,centerY:S}}refineCircle(e,t,n){let h=-t,S=-t,E=t,L=t,_=Math.max(0,h-e.x),N=Math.max(0,S-e.y),V=Math.max(0,e.x+e.width-E),q=Math.max(0,e.y+e.height-L);_=V=Math.max(_,V),N=q=Math.max(N,q);let Y=n.width-_-V,J=n.height-N-q,re=Math.min(Y,J)/2,ce=.5*n.width/2,he=.5*n.height/2,me=Math.min(ce,he);if(re<me){re=me;let be=_+V,Le=N+q;if(2*re+Le>n.height){let Fe=n.height-2*re;Math.min(N,q)*2>Fe?(N=Fe/2,q=Fe/2):N>q?N=Fe-q:q=Fe-N}if(2*re+be>n.width){let Fe=n.width-2*re;Math.min(_,V)*2>Fe?(_=Fe/2,V=Fe/2):_>V?_=Fe-V:V=Fe-_}}let we=_+2*re+V,Me=N+2*re+q;return{centerX:(n.width-we)/2+_+re,centerY:(n.height-Me)/2+N+re,radius:re}}},m_.className="PolarChart",m_.type="polar"}}),f_,_$=M({"packages/ag-charts-community/src/chart/standaloneChart.ts"(){"use strict";ks(),f_=class extends Wp{constructor(e,t){super(e,t)}getChartType(){return"standalone"}performLayout(e){let{seriesRoot:t,annotationRoot:n}=this,{layoutBox:a}=e,h=a.clone();a.shrink(this.seriesArea.padding.toJson()),this.seriesRect=a,this.animationRect=a;for(let S of[t,n])S.translationX=Math.floor(a.x),S.translationY=Math.floor(a.y);t.visible=this.series[0].visible,this.ctx.layoutManager.emitLayoutComplete(e,{series:{visible:!0,rect:h,paddedRect:a}})}getAriaLabel(){let e=this.getCaptionText();return this.ctx.localeManager.t("ariaAnnounceHierarchyChart",{caption:e})}},f_.className="StandaloneChart",f_.type="standalone"}}),t2,v_,y_,b_,C_,S_,t6=M({"packages/ag-charts-community/src/chart/series/topology/mercatorScale.ts"(){"use strict";jn(),t2=Math.PI/180,v_=e=>e*t2,y_=e=>-Math.log(Math.tan(Math.PI*.25+e*t2*.5)),b_=e=>e/t2,C_=e=>(Math.atan(Math.exp(-e))-Math.PI*.25)/(t2*.5),S_=class dV{constructor(t,n){this.domain=t,this.range=n,this.type="mercator",this.bounds=dV.bounds(t)}static bounds(t){let[[n,a],[h,S]]=t,E=v_(n),L=y_(a),_=v_(h),N=y_(S);return new Ui(Math.min(E,_),Math.min(L,N),Math.abs(_-E),Math.abs(N-L))}static fixedScale(){return new dV([[b_(0),C_(0)],[b_(1),C_(1)]],[[0,0],[1,1]])}convert([t,n]){let[[a,h],[S,E]]=this.range,L=(S-a)/this.bounds.width,_=(E-h)/this.bounds.height;return[(v_(t)-this.bounds.x)*L+a,(y_(n)-this.bounds.y)*_+h]}invert([t,n]){let[[a,h],[S,E]]=this.range,L=(S-a)/this.bounds.width,_=(E-h)/this.bounds.height;return[b_((t-a)/L+this.bounds.x),C_((n-h)/_+this.bounds.y)]}}}});function i6(e){return e.type==="map-shape"||e.type==="map-line"||e.type==="map-marker"||e.type==="map-shape-background"||e.type==="map-line-background"}var w_,F$=M({"packages/ag-charts-community/src/chart/topologyChart.ts"(){"use strict";Vu(),ks(),t6(),w_=class extends Wp{constructor(e,t){super(e,t),this.xAxis=new Or(this.getModuleContext()),this.xAxis.position="bottom",this.yAxis=new Or(this.getModuleContext()),this.yAxis.position="left",this.ctx.zoomManager.updateAxes([this.xAxis,this.yAxis])}getChartType(){return"topology"}async updateData(){await super.updateData();let{topology:e}=this.getOptions();this.series.forEach(t=>{i6(t)&&t.setChartTopology(e)})}performLayout(e){let{seriesRoot:t,annotationRoot:n}=this,{layoutBox:a}=e;a.shrink(this.seriesArea.padding.toJson());let h=a.clone();this.seriesRect=h,this.animationRect=h;let S=this.series.filter(i6),E=S.reduce((N,V)=>{if(!V.visible)return N;let q=V.topologyBounds;return q==null?N:N==null?q:(N.merge(q),N)},void 0),L;if(E!=null){let{lon0:N,lat0:V,lon1:q,lat1:Y}=E,J=[[N,V],[q,Y]],re=S_.bounds(J),{width:ce,height:he}=h,me=Math.min(ce/re.width,he/re.height),we=re.width*me,Me=re.height*me,be=(ce-we)/2,Le=(he-Me)/2,Fe=be,je=Le,Xe=be+we,nt=Le+Me,lt=this.ctx.zoomManager.getAxisZoom(this.xAxis.id),ot=this.ctx.zoomManager.getAxisZoom(this.yAxis.id),vt=(Xe-Fe)/(lt.max-lt.min),gt=Fe-vt*lt.min,bt=(nt-je)/(1-ot.min-(1-ot.max)),At=je-bt*(1-ot.max);L=new S_(J,[[gt,At],[gt+vt,At+bt]])}S.forEach(N=>{N.scale=L});let _=this.series.some(N=>N.visible);t.visible=_;for(let N of[t,n])N.translationX=Math.floor(h.x),N.translationY=Math.floor(h.y),N.setClipRect(h.clone());this.ctx.layoutManager.emitLayoutComplete(e,{series:{visible:_,rect:h,paddedRect:h}})}},w_.className="TopologyChart",w_.type="topology"}}),Ku,x_=M({"packages/ag-charts-community/src/module/enterpriseModule.ts"(){"use strict";Ku={isEnterprise:!1}}});function im(e,t){let n={};for(let[a,h]of Object.entries(t))h!==nm&&Object.hasOwn(e,a)&&(n[a]=h);return n}var nm,n6=M({"packages/ag-charts-community/src/api/preset/presetUtils.ts"(){"use strict";nm=Symbol("IGNORED_PROP")}});function N$(e){return e.type==="radial-gauge"}function z$(e){return e.type==="linear-gauge"}function B$(e){let Dn=e,{animation:t,background:n,container:a,contextMenu:h,footnote:S,height:E,listeners:L,locale:_,minHeight:N,minWidth:V,padding:q,subtitle:Y,theme:J,title:re,width:ce,type:he,cursor:me,nodeClickRange:we,tooltip:Me,value:be,scale:Le={},startAngle:Fe,endAngle:je,highlightStyle:Xe,segmentation:nt,bar:lt,needle:ot,targets:vt,outerRadius:gt,innerRadius:bt,outerRadiusRatio:At,innerRadiusRatio:Rt,cornerRadius:It,cornerMode:Dt,label:jt,secondaryLabel:Nt,spacing:zt}=Dn,Ut=ji(Dn,["animation","background","container","contextMenu","footnote","height","listeners","locale","minHeight","minWidth","padding","subtitle","theme","title","width","type","cursor","nodeClickRange","tooltip","value","scale","startAngle","endAngle","highlightStyle","segmentation","bar","needle","targets","outerRadius","innerRadius","outerRadiusRatio","innerRadiusRatio","cornerRadius","cornerMode","label","secondaryLabel","spacing"]),{fills:Vt,fillMode:Wt,fill:ci,fillOpacity:li,stroke:oi,strokeWidth:vi,strokeOpacity:gi,lineDash:fi,lineDashOffset:ki,min:si=0,max:di=1,interval:Ii={},label:bi={}}=Le,wi=im(e,{animation:t,background:n,container:a,contextMenu:h,footnote:S,height:E,listeners:L,locale:_,minHeight:N,minWidth:V,padding:q,subtitle:Y,theme:J,title:re,width:ce}),Li=im(Le,{fills:Vt,fillMode:Wt,fill:ci,fillOpacity:li,stroke:oi,strokeWidth:vi,strokeOpacity:gi,lineDash:fi,lineDashOffset:ki}),Ln=im(e,pe({startAngle:nm,endAngle:nm,needle:ot!=null?pe({enabled:!0},ot):nm,scale:Li,type:he,cursor:me,nodeClickRange:we,listeners:L,tooltip:Me,value:be,highlightStyle:Xe,segmentation:nt,bar:lt,targets:vt,outerRadius:gt,innerRadius:bt,outerRadiusRatio:At,innerRadiusRatio:Rt,cornerRadius:It,cornerMode:Dt,label:jt,secondaryLabel:Nt,spacing:zt},Ut)),on=[{type:"angle-number",min:si,max:di,startAngle:Fe,endAngle:je,interval:Ii!=null?Ii:{},label:bi!=null?bi:{}},{type:"radius-number"}];return et(pe({},wi),{series:[Ln],axes:on})}function G$(e){let Dn=e,{animation:t,background:n,container:a,contextMenu:h,footnote:S,height:E,listeners:L,locale:_,minHeight:N,minWidth:V,padding:q,subtitle:Y,theme:J,title:re,width:ce,type:he,cursor:me,nodeClickRange:we,tooltip:Me,value:be,scale:Le={},direction:Fe="vertical",thickness:je,highlightStyle:Xe,segmentation:nt,bar:lt,targets:ot,cornerRadius:vt,cornerMode:gt,label:bt}=Dn,At=ji(Dn,["animation","background","container","contextMenu","footnote","height","listeners","locale","minHeight","minWidth","padding","subtitle","theme","title","width","type","cursor","nodeClickRange","tooltip","value","scale","direction","thickness","highlightStyle","segmentation","bar","targets","cornerRadius","cornerMode","label"]),{fills:Rt,fillMode:It,fill:Dt,fillOpacity:jt,stroke:Nt,strokeWidth:zt,strokeOpacity:Ut,lineDash:Vt,lineDashOffset:Wt,min:ci=0,max:li=1,interval:oi={},label:vi={}}=Le,gi=im(e,{animation:t,background:n,container:a,contextMenu:h,footnote:S,height:E,listeners:L,locale:_,minHeight:N,minWidth:V,padding:q,subtitle:Y,theme:J,title:re,width:ce}),fi=im(Le,{fills:Rt,fillMode:It,fill:Dt,fillOpacity:jt,stroke:Nt,strokeWidth:zt,strokeOpacity:Ut,lineDash:Vt,lineDashOffset:Wt}),ki=im(e,pe({scale:fi,type:he,cursor:me,nodeClickRange:we,listeners:L,tooltip:Me,value:be,direction:Fe,thickness:je,highlightStyle:Xe,segmentation:nt,bar:lt,targets:ot,cornerRadius:vt,cornerMode:gt,label:bt},At)),ln=vi,{placement:si}=ln,di=ji(ln,["placement"]),Ii,bi,wi=Fe==="horizontal";wi?(Ii=si==="before"?"top":"bottom",bi="left"):(Ii=si==="after"?"right":"left",bi="bottom");let Li={type:"number",position:Ii,min:ci,max:li,reverse:!wi,interval:oi,label:di,nice:!1},Ln={type:"number",position:bi,min:0,max:1,label:{enabled:!1}},on=wi?[Li,Ln]:[Ln,Li];return et(pe({},gi),{series:[ki],axes:on})}function a6(e,t){if(t==null)return e;let h=t,{targets:n}=h,a=ji(h,["targets"]);return e=ia(e,a),e.targets!=null&&n!=null&&(e.targets=jy(e.targets,n)),e}function j$(e,t){if(N$(e)){let me=a6(e,t);return B$(me)}else if(z$(e)){let me=a6(e,t);return G$(me)}let{animation:n,background:a,container:h,contextMenu:S,footnote:E,height:L,listeners:_,locale:N,minHeight:V,minWidth:q,padding:Y,subtitle:J,theme:re,title:ce,width:he}=e;return im(e,{animation:n,background:a,container:h,contextMenu:S,footnote:E,height:L,listeners:_,locale:N,minHeight:V,minWidth:q,padding:Y,subtitle:J,theme:re,title:ce,width:he})}var V$=M({"packages/ag-charts-community/src/api/preset/gauge.ts"(){"use strict";io(),Ta(),n6()}});function Kc(e,t){if(Br(e))return t(e)}function H$(e,t,n){var gt,bt;let vt=e,{dateKey:a="date",highKey:h="high",openKey:S="open",lowKey:E="low",closeKey:L="close",volumeKey:_="volume",chartType:N="candlestick",navigator:V=!1,volume:q=!0,rangeButtons:Y=!0,statusBar:J=!0,toolbar:re=!0,zoom:ce=!0,theme:he,data:me}=vt,we=ji(vt,["dateKey","highKey","openKey","lowKey","closeKey","volumeKey","chartType","navigator","volume","rangeButtons","statusBar","toolbar","zoom","theme","data"]),Me=U$(he,N,a,h,E,S,L),be=W$(he,n,S,L,q,_),Fe={navigator:pe({enabled:V},q?{miniChart:{enabled:V,series:[{type:"line",xKey:a,yKey:_,marker:{enabled:!1}}]},height:40,minHandle:{height:46},maxHandle:{height:46}}:null)},je={annotations:{enabled:re,toolbar:{enabled:re},optionsToolbar:{enabled:re},data:me,xKey:a,volumeKey:q?_:void 0}},Xe=J?{statusBar:{enabled:!0,data:me,highKey:h,openKey:S,lowKey:E,closeKey:L,volumeKey:q?_:void 0}}:null,nt={zoom:{enabled:ce,enableIndependentAxes:!0}},lt={ranges:{enabled:Y}},ot=q?[{type:"number",position:"left",keys:[_],label:{enabled:!1},crosshair:{enabled:!1},gridLine:{enabled:!1},nice:!1,layoutConstraints:{stacked:!1,width:20,unit:"percentage",align:"end"}}]:[];return pe(pe(pe(pe(pe(pe({theme:pe({baseTheme:typeof he=="string"?he:"ag-financial"},ia(typeof he=="object"?he:null,{overrides:{common:{title:{padding:4},padding:{top:6,right:8,bottom:5},chartToolbar:{enabled:re}}}})),animation:{enabled:!1},legend:{enabled:!1},series:[...be,...Me],seriesArea:{clip:!0},axes:[{type:"number",position:"right",keys:[S,L,h,E],interval:{maxSpacing:(gt=Kc(he,At=>{var Rt,It,Dt,jt,Nt;return(Nt=(jt=(Dt=(It=(Rt=At.overrides)==null?void 0:Rt.common)==null?void 0:It.axes)==null?void 0:Dt.number)==null?void 0:jt.interval)==null?void 0:Nt.maxSpacing}))!=null?gt:45},label:{format:(bt=Kc(he,At=>{var Rt,It,Dt,jt,Nt;return(Nt=(jt=(Dt=(It=(Rt=At.overrides)==null?void 0:Rt.common)==null?void 0:It.axes)==null?void 0:Dt.number)==null?void 0:jt.label)==null?void 0:Nt.format}))!=null?bt:".2f"},crosshair:{enabled:!0,snap:!1},layoutConstraints:{stacked:!1,width:100,unit:"percentage",align:"start"}},...ot,{type:"ordinal-time",position:"bottom",line:{enabled:!1},label:{enabled:!0},crosshair:{enabled:!0}}],tooltip:{enabled:!1},data:me},je),Fe),Xe),nt),lt),we)}function W$(e,t,n,a,h,S){var _;if(!h)return[];let E=Kc(e,N=>{var V,q,Y;return(Y=(q=(V=N.overrides)==null?void 0:V.bar)==null?void 0:q.series)==null?void 0:Y.fill}),L=E?{fill:E}:{itemStyler({datum:N}){let{up:V,down:q}=t().palette;return{fill:N[n]<N[a]?V==null?void 0:V.fill:q==null?void 0:q.fill}}};return[et(pe({type:"bar",xKey:"date",yKey:S,tooltip:{enabled:!1},highlight:{enabled:!1},fillOpacity:(_=Kc(e,N=>{var V,q,Y;return(Y=(q=(V=N.overrides)==null?void 0:V.bar)==null?void 0:q.series)==null?void 0:Y.fillOpacity}))!=null?_:.5},L),{focusPriority:1,fastDataProcessing:!0})]}function U$(e,t,n,a,h,S,E){let L={xKey:n,openKey:S,closeKey:E,highKey:a,lowKey:h},_={xKey:n,yKey:E},N={pickOutsideVisibleMinorAxis:!0};switch(t!=null?t:"candlestick"){case"ohlc":return K$(N,L);case"line":return q$(N,e,_);case"step-line":return Y$(N,e,_);case"hlc":return X$(N,e,_,L);case"high-low":return Z$(N,e,L);case"candlestick":return o6(N,L);case"hollow-candlestick":return $$(N,e,L);default:return Di.warnOnce(`unknown chart type: ${t}; expected one of: ${s6.join(", ")}`),o6(N,L)}}function K$(e,t){return[pe(pe({type:"ohlc",focusPriority:0},e),t)]}function q$(e,t,n){var a,h;return[et(pe(pe({type:"line",focusPriority:0},e),n),{stroke:(a=Kc(t,S=>{var E,L,_;return(_=(L=(E=S.overrides)==null?void 0:E.line)==null?void 0:L.series)==null?void 0:_.stroke}))!=null?a:dw,marker:(h=Kc(t,S=>{var E,L,_;return(_=(L=(E=S.overrides)==null?void 0:E.line)==null?void 0:L.series)==null?void 0:_.marker}))!=null?h:{enabled:!1}})]}function Y$(e,t,n){var a,h,S;return[et(pe(pe({type:"line",focusPriority:0},e),n),{stroke:(a=Kc(t,E=>{var L,_,N;return(N=(_=(L=E.overrides)==null?void 0:L.line)==null?void 0:_.series)==null?void 0:N.stroke}))!=null?a:dw,interpolation:(h=Kc(t,E=>{var L,_,N;return(N=(_=(L=E.overrides)==null?void 0:L.line)==null?void 0:_.series)==null?void 0:N.interpolation}))!=null?h:{type:"step"},marker:(S=Kc(t,E=>{var L,_,N;return(N=(_=(L=E.overrides)==null?void 0:L.line)==null?void 0:_.series)==null?void 0:N.marker}))!=null?S:{enabled:!1}})]}function X$(e,t,n,{xKey:a,highKey:h,closeKey:S,lowKey:E}){var _,N,V,q,Y,J,re,ce,he,me,we;let L=r6(M_,t);return[et(pe({type:M_,focusPriority:0},e),{xKey:a,yHighKey:h,yLowKey:S,fill:(_=L.fill)!=null?_:j1,stroke:(N=L.stroke)!=null?N:G1,fillOpacity:(V=Kc(t,Me=>{var be,Le,Fe;return(Fe=(Le=(be=Me.overrides)==null?void 0:be["range-area"])==null?void 0:Le.series)==null?void 0:Fe.fillOpacity}))!=null?V:.3,strokeWidth:(q=Kc(t,Me=>{var be,Le,Fe;return(Fe=(Le=(be=Me.overrides)==null?void 0:be["range-area"])==null?void 0:Le.series)==null?void 0:Fe.strokeWidth}))!=null?q:2}),et(pe({type:M_,focusPriority:0},e),{xKey:a,yHighKey:S,yLowKey:E,fill:(Y=L.fill)!=null?Y:cw,stroke:(J=L.stroke)!=null?J:lw,fillOpacity:(re=Kc(t,Me=>{var be,Le,Fe;return(Fe=(Le=(be=Me.overrides)==null?void 0:be["range-area"])==null?void 0:Le.series)==null?void 0:Fe.fillOpacity}))!=null?re:.3,strokeWidth:(ce=Kc(t,Me=>{var be,Le,Fe;return(Fe=(Le=(be=Me.overrides)==null?void 0:be["range-area"])==null?void 0:Le.series)==null?void 0:Fe.strokeWidth}))!=null?ce:2}),et(pe(pe({type:"line"},e),n),{stroke:(he=Kc(t,Me=>{var be,Le,Fe;return(Fe=(Le=(be=Me.overrides)==null?void 0:be.line)==null?void 0:Le.series)==null?void 0:Fe.stroke}))!=null?he:H1,strokeWidth:(me=Kc(t,Me=>{var be,Le,Fe;return(Fe=(Le=(be=Me.overrides)==null?void 0:be.line)==null?void 0:Le.series)==null?void 0:Fe.strokeWidth}))!=null?me:2,marker:(we=Kc(t,Me=>{var be,Le,Fe;return(Fe=(Le=(be=Me.overrides)==null?void 0:be.line)==null?void 0:Le.series)==null?void 0:Fe.marker}))!=null?we:{enabled:!1}})]}function Z$(e,t,{xKey:n,highKey:a,lowKey:h}){var E,L;let S=r6("range-bar",t);return[et(pe({type:"range-bar"},e),{xKey:n,yHighKey:a,yLowKey:h,fill:(E=S.fill)!=null?E:V1,stroke:(L=S.stroke)!=null?L:dw,tooltip:{range:"nearest"},focusPriority:0,fastDataProcessing:!0})]}function o6(e,t){return[pe(pe({type:"candlestick",focusPriority:0},e),t)]}function $$(e,t,n){var h,S;let a=Kc(t,E=>{var L,_,N;return(N=(_=(L=E.overrides)==null?void 0:L.candlestick)==null?void 0:_.series)==null?void 0:N.item});return[et(pe(pe({type:"candlestick",focusPriority:0},e),n),{item:{up:{fill:(S=(h=a==null?void 0:a.up)==null?void 0:h.fill)!=null?S:"transparent"}}})]}function r6(e,t){let n=Kc(t,h=>{var S,E,L;return(L=(E=(S=h.overrides)==null?void 0:S[e])==null?void 0:E.series)==null?void 0:L.fill}),a=Kc(t,h=>{var S,E,L;return(L=(E=(S=h.overrides)==null?void 0:S[e])==null?void 0:E.series)==null?void 0:L.stroke});return{fill:n,stroke:a}}var s6,M_,Q$=M({"packages/ag-charts-community/src/api/preset/priceVolumePreset.ts"(){"use strict";lr(),Rn(),Ta(),Hn(),s6=["ohlc","line","step-line","hlc","high-low","candlestick","hollow-candlestick"],M_="range-area"}});function J$(e,t){return typeof e=="string"?et(pe({},t),{baseTheme:e}):e!=null?et(pe({},e),{baseTheme:A3(e.baseTheme,t)}):t}function l6(e){if(Array.isArray(e)&&e.length!==0){let t=e[0];if(typeof t=="number")return{data:e.map((a,h)=>({x:h,y:a})),series:[{xKey:"x",yKey:"y"}],datumKey:"y"};if(Array.isArray(t))return{data:e.map(a=>({x:a[0],y:a[1],datum:a})),series:[{xKey:"x",yKey:"y"}],datumKey:"datum"}}return{data:e}}function eQ(e,t){switch(e==null?void 0:e.type){case"number":{let{type:n,visible:a,stroke:h,strokeWidth:S,min:E,max:L,reverse:_}=e;return im(e,{type:n,reverse:_,min:E,max:L})}case"time":{let{type:n,visible:a,stroke:h,strokeWidth:S,min:E,max:L,reverse:_}=e;return im(e,{type:n,reverse:_,min:E,max:L})}case"category":{let{type:n,visible:a,stroke:h,strokeWidth:S,paddingInner:E,paddingOuter:L,reverse:_}=e;return im(e,{type:n,reverse:_,paddingInner:E,paddingOuter:L})}}return{type:t}}function tQ(e,t,n){var h,S,E,L;let a={};return(e==null?void 0:e.stroke)!=null&&(a.style=[{stroke:e==null?void 0:e.stroke}],(h=a.enabled)!=null||(a.enabled=!0)),(e==null?void 0:e.strokeWidth)!=null&&(a.width=e==null?void 0:e.strokeWidth,(S=a.enabled)!=null||(a.enabled=!0)),n.type==="bar"&&n.direction!=="horizontal"&&((E=a.enabled)!=null||(a.enabled=!0)),(e==null?void 0:e.visible)!=null&&(a.enabled=e.visible),(L=a.enabled)!=null||(a.enabled=t),a}function iQ(e){let gt=e,{background:t,container:n,height:a,listeners:h,locale:S,minHeight:E,minWidth:L,padding:_,width:N,theme:V,data:q,crosshair:Y,axis:J,min:re,max:ce,tooltip:he,context:me}=gt,we=ji(gt,["background","container","height","listeners","locale","minHeight","minWidth","padding","width","theme","data","crosshair","axis","min","max","tooltip","context"]),Me=im(e,{background:t,container:n,height:a,listeners:h,locale:S,minHeight:E,minWidth:L,padding:_,width:N,tooltip:nm,context:nm,data:nm,crosshair:nm,axis:nm,min:nm,max:nm,theme:nm}),{data:be,series:[Le]=[],datumKey:Fe}=l6(q),je=we;Le!=null&&Object.assign(je,Le),je.tooltip=et(pe({},he),{renderer:u6(me,he,Fe)}),Me.theme=A3(V,d6),Me.data=be,Me.series=[je];let Xe=je.type!=="bar"||je.direction!=="horizontal",[nt,lt]=Xe?["bottom","left"]:["left","bottom"],ot=pe(et(pe({},eQ(J,"category")),{position:nt}),im(e,{crosshair:Y})),vt=pe({type:"number",gridLine:tQ(J,!1,e),position:lt},im(e,{min:re,max:ce}));return Me.axes=Xe?[vt,ot]:[ot,vt],Me}var k3,k_,A_,D_,c6,d6,A3,u6,nQ=M({"packages/ag-charts-community/src/api/preset/sparkline.ts"(){"use strict";io(),lr(),Tk(),n6(),k3={title:{enabled:!1},label:{enabled:!1},line:{enabled:!1},gridLine:{enabled:!1},crosshair:{enabled:!1,stroke:U1,lineDash:[0],label:{enabled:!1}}},k_=et(pe({},k3),{nice:!1}),A_={position:{type:"sparkline"}},D_={style:[{stroke:Jp}],width:2},c6={number:{gridLine:D_},time:{gridLine:D_},category:{gridLine:D_}},d6={overrides:{common:{animation:{enabled:!1},contextMenu:{enabled:!1},keyboard:{enabled:!1},background:{visible:!1},padding:{top:0,right:0,bottom:0,left:0},axes:{number:et(pe({},k_),{interval:{values:[0]}}),log:pe({},k_),time:pe({},k_),category:pe({},k3)}},bar:{series:{crisp:!1,label:{placement:"inside-end",padding:4},sparklineMode:!0},tooltip:et(pe({},A_),{range:"nearest"}),axes:c6},line:{seriesArea:{padding:{top:2,right:2,bottom:2,left:2}},series:{sparklineMode:!0,strokeWidth:1,marker:{enabled:!1,size:3},tooltip:A_}},area:{seriesArea:{padding:{top:1,right:0,bottom:1,left:0}},series:{strokeWidth:1,fillOpacity:.4,tooltip:A_}}}},A3=Rl(J$),u6=Rl((e,t,n)=>a=>{var V,q;let h=a.datum[a.xKey],S=a.datum[a.yKey],E=n!=null?a.datum[n]:a.datum,L=(V=t==null?void 0:t.renderer)==null?void 0:V.call(t,{context:e,datum:E,xValue:h,yValue:S});if(typeof L=="string")return L;let _=L==null?void 0:L.title,N=L==null?void 0:L.content;return _!=null&&N!=null?{heading:_,title:void 0,data:[{label:void 0,value:N}]}:{heading:(q=_!=null?_:N)!=null?q:S.toFixed(2),title:void 0,data:[]}})}}),h6,g6,aQ=M({"packages/ag-charts-community/src/api/preset/presets.ts"(){"use strict";V$(),Q$(),nQ(),h6={"price-volume":H$,gauge:j$,sparkline:iQ},g6={sparkline:l6}}});function p6(e,t){var E,L,_,N;let n=[],a=Gp(e),h=_g(e),S=h?bo.get(h):"unknown";for(let V of Kr)if(!(S!=="unknown"&&!V.chartTypes.includes(S))){if(V.type==="root"||V.type==="legend"){let q=e[V.optionsKey];if(q==null)continue;V.optionsInnerKey?q[V.optionsInnerKey]&&(n.push(`${V.optionsKey}.${V.optionsInnerKey}`),delete q[V.optionsInnerKey]):(n.push(V.optionsKey),delete e[V.optionsKey])}else if(V.type==="axis"){if(!("axes"in e)||!((E=e.axes)!=null&&E.some(q=>q.type===V.identifier)))continue;n.push(`axis[type=${V.identifier}]`),e.axes=e.axes.filter(q=>q.type!==V.identifier)}else if(V.type==="axis-option"){if(!("axes"in e)||!((L=e.axes)!=null&&L.some(q=>q[V.optionsKey])))continue;n.push(`axis.${V.optionsKey}`),e.axes.forEach(q=>{q[V.optionsKey]&&delete q[V.optionsKey]})}else if(V.type==="series"){if(V.community||!((_=e.series)!=null&&_.some(q=>q.type===V.identifier)))continue;n.push(`series[type=${V.identifier}]`),e.series=e.series.filter(q=>q.type!==V.identifier)}else if(V.type==="series-option"){if(!((N=e.series)!=null&&N.some(q=>q[V.optionsKey])))continue;n.push(`series.${V.optionsKey}`),e.series.forEach(q=>{q[V.optionsKey]&&delete q[V.optionsKey]})}}if(n.length&&!t){a&&(n=["AgCharts.createGauge"]);let V="ag-charts-enterprise",q="https://ag-grid.com/charts/javascript/installation/";e.mode==="integrated"&&(V="ag-grid-charts-enterprise' or 'ag-grid-enterprise/charts-enterprise",q="https://www.ag-grid.com/javascript-data-grid/integrated-charts-installation/"),Di.warnOnce([`unable to use these enterprise features as '${V}' has not been loaded:`,"",...n,"",`See: ${q}`].join(`
`))}}function oQ(e){let t="mode"in e&&e.mode==="integrated";for(let n of Ph.byType("root","legend")){let a=e[n.optionsKey],h=a!=null&&a.enabled===!1,S=!("removable"in n)||n.removable===!0||n.removable==="standalone-only"&&!t;h&&S&&delete e[n.optionsKey]}}var rQ=M({"packages/ag-charts-community/src/chart/factory/processEnterpriseOptions.ts"(){"use strict";Lh(),Rn(),yf(),Lg(),Pg()}});function sQ(e,t,n){let{errors:a}=f6(e,t,n);for(let{message:h}of a)Di.warn(h);return a.length===0}function m6(e,t,n){let a=ui(n)?n:n[i2],h=a?`; expecting ${a}`:"";return`${e?`Option \`${e}\``:"Value"} cannot be set to \`${$T(t)}\`${h}, ignoring.`}function f6(e,t,n=""){if(!Br(e))return{valid:null,errors:[{path:n,value:e,message:m6(n,e,"an object")}]};let a=new Set(Object.keys(e)),h=[],S={};function E(L){return ho(t)?`${n}[${L}]`:n?`${n}.${L}`:L}for(let[L,_]of Object.entries(t)){a.delete(L);let N=e[L];if(!(!_[v6]&&typeof N=="undefined"))if(Gi(_))_(N)?S[L]=N:h.push({key:L,path:n,value:N,message:m6(E(L),N,_)});else{let V=f6(N,_,E(L));S[L]=V.valid,h.push(...V.errors)}}for(let L of a)h.push({key:L,path:n,unknown:!0,message:`Unknown option \`${E(L)}\`, ignoring.`});return{valid:S,errors:h}}function mC(e,t){return Object.assign(n=>e(n),{[i2]:t})}var i2,v6,y6,lQ,cQ,dQ,uQ,D3,fC,b6,C6,hQ,gQ,E3,pQ=M({"packages/ag-charts-community/src/util/validate.ts"(){"use strict";Rn(),QT(),Hn(),i2=Symbol("description"),v6=Symbol("required"),y6=(...e)=>mC(t=>e.some(n=>n(t)),e.map(t=>t[i2]).filter(Boolean).join(" or ")),lQ=mC(ho,"an array"),cQ=mC(fu,"a boolean"),dQ=mC(Gi,"a function"),uQ=mC(Na,"a number"),D3=mC(Br,"an object"),fC=mC(ui,"a string"),b6=(e,t=!0)=>mC(n=>Na(n)&&(n>e||t&&n===e),`a number greater than ${t?"or equal to ":""}${e}`),C6=(e,t)=>mC(n=>Na(n)&&n>=e&&n<=t,`a number between ${e} and ${t} inclusive`),hQ=b6(0),gQ=C6(0,1),E3=(e,t)=>mC(n=>ho(n)&&n.every(e),t!=null?t:`${e[i2]} array`)}});function I3(e){return e!=null&&e.up||e!=null&&e.down||e!=null&&e.neutral?"user-full":e!=null&&e.fills||e!=null&&e.strokes?"user-indexed":"inbuilt"}var S6=M({"packages/ag-charts-community/src/module/coreModulesTypes.ts"(){"use strict"}});function w6(e){return x6[e]===!0}var n2,E_,x6,M6,am,vC,pw=M({"packages/ag-charts-community/src/chart/themes/chartTheme.ts"(){"use strict";S6(),x_(),Lc(),Ta(),Hn(),pf(),Lg(),Uv(),MS(),Of(),$L(),lr(),n2="white",E_={get cartesian(){return{seriesTypes:bo.cartesianTypes,commonOptions:["zoom","navigator"]}},get polar(){return{seriesTypes:bo.polarTypes,commonOptions:[]}},get hierarchy(){return{seriesTypes:bo.hierarchyTypes,commonOptions:[]}},get topology(){return{seriesTypes:bo.topologyTypes,commonOptions:[]}},get"flow-proportion"(){return{seriesTypes:bo.flowProportionTypes,commonOptions:[]}},get standalone(){return{seriesTypes:bo.standaloneTypes,commonOptions:[]}},get gauge(){return{seriesTypes:bo.gaugeTypes,commonOptions:[]}}},x6={"radial-gauge":!0,"linear-gauge":!0},M6=Object.values(E_).reduce((e,{commonOptions:t})=>e.concat(t),[]),am=class uV{static getAxisDefaults(t){return ia(t,{title:{enabled:!1,text:"Axis Title",spacing:25,fontWeight:"normal",fontSize:13,fontFamily:So,color:Vo},label:{fontSize:12,fontFamily:So,spacing:11,color:Vo,avoidCollisions:!0},line:{enabled:!0,width:1,stroke:Vc},tick:{enabled:!1,width:1,stroke:Vc},gridLine:{enabled:!0,style:[{stroke:Jp,lineDash:[]}]},crossLines:{enabled:!1,fill:dC,stroke:dC,fillOpacity:.1,strokeWidth:1,label:{enabled:!1,fontSize:12,fontFamily:So,padding:5,color:Vo}},crosshair:{enabled:!0}})}getChartDefaults(){return{minHeight:300,minWidth:300,background:{visible:!0,fill:Nk},padding:{top:jg,right:jg,bottom:jg,left:jg},keyboard:{enabled:!0},title:{enabled:!1,text:"Title",fontWeight:"normal",fontSize:17,fontFamily:So,color:Vo,wrapping:"hyphenate",layoutStyle:ly,textAlign:cy},subtitle:{enabled:!1,text:"Subtitle",spacing:20,fontSize:13,fontFamily:So,color:Ll,wrapping:"hyphenate",layoutStyle:ly,textAlign:cy},footnote:{enabled:!1,text:"Footnote",spacing:20,fontSize:13,fontFamily:So,color:"rgb(140, 140, 140)",wrapping:"hyphenate",layoutStyle:ly,textAlign:cy},legend:{position:"bottom",spacing:30,listeners:{},toggleSeries:!0,item:{paddingX:16,paddingY:8,marker:{size:15,padding:8},showSeriesStroke:!0,label:{color:Vo,fontSize:12,fontFamily:So}},reverseOrder:!1,pagination:{marker:{size:12},activeStyle:{fill:Vo},inactiveStyle:{fill:Ll},highlightStyle:{fill:Vo},label:{color:Vo}}},tooltip:{enabled:!0,darkTheme:ow,delay:0},overlays:{darkTheme:ow},listeners:{}}}constructor(t={}){let{overrides:n,palette:a}=Sl(t),h=this.createChartConfigPerChartType(this.getDefaults()),S={};n&&this.mergeOverrides(h,S,n);let N=this.getDefaultColors(),{fills:E,strokes:L}=N,_=ji(N,["fills","strokes"]);this.palette=Vy(ia(a,pe({fills:Object.values(E),strokes:Object.values(L)},_))),this.paletteType=I3(a),this.config=Vy(this.templateTheme(h)),this.presets=Vy(S)}mergeOverrides(t,n,a){for(let{seriesTypes:h,commonOptions:S}of Object.values(E_)){let E=pe({},a.common);for(let L of M6)S.includes(L)||delete E[L];if(E)for(let L of h){let _=L;w6(_)||(t[_]=ia(E,t[_]))}}bo.seriesTypes.forEach(h=>{let S=h,E=a[S];w6(S)?n[S]=E:t[S]=ia(E,t[S])})}createChartConfigPerChartType(t){var n;for(let[a,{seriesTypes:h}]of Object.entries(E_)){let S=Kv.get(a);for(let E of h)(n=t[E])!=null||(t[E]=Sl(S))}return t}getDefaults(){let t=(n,a)=>{var E;let h={},S=pe(pe(pe({axes:{}},ff.getThemeTemplates()),this.getChartDefaults()),Kv.get(n));for(let L of a){h[L]=ia(rr.getThemeTemplate(L),(E=h[L])!=null?E:Sl(S));let{axes:_}=h[L];for(let N of Ou.keys())_[N]=ia(_[N],Ou.getThemeTemplate(N),uV.cartesianAxisDefault[N])}return h};return ia(t("cartesian",bo.cartesianTypes),t("polar",bo.polarTypes),t("hierarchy",bo.hierarchyTypes),t("topology",bo.topologyTypes),t("flow-proportion",bo.flowProportionTypes),t("standalone",bo.standaloneTypes),t("gauge",bo.gaugeTypes))}static applyTemplateTheme(t,n,a){if(ho(t))for(let h=0;h<t.length;h++){let S=t[h];typeof S=="symbol"&&(a!=null&&a.has(S))&&(t[h]=a.get(S))}else for(let[h,S]of Object.entries(t))typeof S=="symbol"&&(a!=null&&a.has(S))&&(t[h]=a.get(S))}templateTheme(t,n=!0){let a=n?Sl(t):t,h=this.getTemplateParameters();return pg(a,uV.applyTemplateTheme,void 0,void 0,h),a}getDefaultColors(){return{fills:gc,strokes:hy,up:{fill:gc.GREEN,stroke:hy.GREEN},down:{fill:gc.RED,stroke:hy.RED},neutral:{fill:gc.GRAY,stroke:hy.GRAY},altUp:{fill:gc.BLUE,stroke:hy.BLUE},altDown:{fill:gc.ORANGE,stroke:hy.ORANGE},altNeutral:{fill:gc.GRAY,stroke:hy.GRAY}}}getTemplateParameters(){var h,S,E,L,_,N,V,q,Y,J,re,ce,he,me,we,Me,be,Le,Fe,je,Xe,nt,lt,ot;let{isEnterprise:t}=Ku,n=new Map;n.set(ow,!1),n.set(z1,t),n.set(rw,!t),n.set(So,"Verdana, sans-serif"),n.set(Vo,"#464646"),n.set(B1,"#fff"),n.set(Ll,"#8c8c8c"),n.set(Jp,"#e0eaf1"),n.set(Vc,"#c3c3c3"),n.set(dC,"#464646"),n.set(uC,"#d9d9d9"),n.set(_f,"#ddd"),n.set(Qp,n2),n.set(Nk,n2),n.set(sw,"black"),n.set(sy,"#00000080"),n.set(nu,[gc.ORANGE,gc.YELLOW,gc.GREEN]),n.set(U1,"#aaa"),n.set(Uh,[gc.GREEN,gc.YELLOW,gc.RED]),n.set(em,["#5090dc","#629be0","#73a6e3","#85b1e7","#96bcea","#a8c8ee","#b9d3f1","#cbdef5"]),n.set(jg,20),n.set(ly,"block"),n.set(cy,"center"),n.set(K1,["#fff","#e0e5ea","#c1ccd5","#a3b4c1","#859cad"]),n.set(q1,["#fff","#c5cbd1","#a4b1bd","#8498a9","#648096"]),n.set(Y1,["#797b86","#e24c4a","#f49d2d","#65ab58","#409682","#4db9d2","#5090dc","#3068f9","#e24c4a","#913aac","#d93e64"]),n.set(W1,n2),n.set(Hc,gc.BLUE),n.set(dy,gc.BLUE),n.set(au,gc.BLUE),n.set(Vg,n2),n.set(X1,"#fafafa"),n.set(uw,"#ddd"),n.set(Z1,"#000"),n.set($1,"#181d1f"),n.set(hR,"#e35c5c"),n.set(gR,"#e35c5c"),n.set(Q1,"#fafafa"),n.set(J1,"#ddd"),n.set(zk,"#000"),n.set(uy,"top"),n.set(tm,!1);let a=this.getDefaultColors();return n.set(G1,(S=(h=this.palette.up)==null?void 0:h.stroke)!=null?S:a.up.stroke),n.set(j1,(L=(E=this.palette.up)==null?void 0:E.fill)!=null?L:a.up.fill),n.set(lw,(N=(_=this.palette.down)==null?void 0:_.stroke)!=null?N:a.down.stroke),n.set(cw,(q=(V=this.palette.down)==null?void 0:V.fill)!=null?q:a.down.fill),n.set(dw,(J=(Y=this.palette.neutral)==null?void 0:Y.stroke)!=null?J:a.neutral.stroke),n.set(V1,(ce=(re=this.palette.neutral)==null?void 0:re.fill)!=null?ce:a.neutral.fill),n.set(sR,(me=(he=this.palette.altUp)==null?void 0:he.stroke)!=null?me:a.up.stroke),n.set(cR,(Me=(we=this.palette.altUp)==null?void 0:we.fill)!=null?Me:a.up.fill),n.set(lR,(Le=(be=this.palette.altDown)==null?void 0:be.stroke)!=null?Le:a.down.stroke),n.set(dR,(je=(Fe=this.palette.altDown)==null?void 0:Fe.fill)!=null?je:a.down.fill),n.set(uR,(nt=(Xe=this.palette.altNeutral)==null?void 0:Xe.fill)!=null?nt:a.altNeutral.fill),n.set(H1,(ot=(lt=this.palette.altNeutral)==null?void 0:lt.stroke)!=null?ot:a.altNeutral.stroke),n}},am.cartesianAxisDefault={number:am.getAxisDefaults({line:{enabled:!1}}),log:am.getAxisDefaults({base:10,line:{enabled:!1},interval:{minSpacing:NaN}}),category:am.getAxisDefaults({groupPaddingInner:.1,label:{autoRotate:!0},gridLine:{enabled:tm},crosshair:{enabled:!1}}),["grouped-category"]:am.getAxisDefaults({tick:{enabled:!0,stroke:uC},label:{spacing:10,rotation:270},paddingInner:.4,groupPaddingInner:.2,crosshair:{enabled:!1}}),time:am.getAxisDefaults({gridLine:{enabled:tm}}),["ordinal-time"]:am.getAxisDefaults({groupPaddingInner:0,label:{autoRotate:!1},gridLine:{enabled:tm}}),["angle-category"]:am.getAxisDefaults({label:{spacing:5},gridLine:{enabled:tm}}),["angle-number"]:am.getAxisDefaults({label:{spacing:5},gridLine:{enabled:tm}}),["radius-category"]:am.getAxisDefaults({line:{enabled:!1}}),["radius-number"]:am.getAxisDefaults({line:{enabled:!1}})},vC=am}}),a2,qu,Wk,lE,yR=M({"packages/ag-charts-community/src/chart/themes/darkTheme.ts"(){"use strict";pw(),lr(),a2="#192232",qu={BLUE:"#5090dc",ORANGE:"#ffa03a",GREEN:"#459d55",CYAN:"#34bfe1",YELLOW:"#e1cc00",VIOLET:"#9669cb",GRAY:"#b5b5b5",MAGENTA:"#bd5aa7",BROWN:"#8a6224",RED:"#ef5452"},Wk={BLUE:"#74a8e6",ORANGE:"#ffbe70",GREEN:"#6cb176",CYAN:"#75d4ef",YELLOW:"#f6e559",VIOLET:"#aa86d8",GRAY:"#a1a1a1",MAGENTA:"#ce7ab9",BROWN:"#997b52",RED:"#ff7872"},lE=class extends vC{getDefaultColors(){return{fills:qu,strokes:Wk,up:{fill:qu.GREEN,stroke:Wk.GREEN},down:{fill:qu.RED,stroke:Wk.RED},neutral:{fill:qu.GRAY,stroke:Wk.GRAY},altUp:{fill:qu.BLUE,stroke:Wk.BLUE},altDown:{fill:qu.ORANGE,stroke:Wk.ORANGE},altNeutral:{fill:qu.GRAY,stroke:Wk.GRAY}}}getTemplateParameters(){let e=super.getTemplateParameters();return e.set(ow,!0),e.set(W1,a2),e.set(_f,"#4b525d"),e.set(Vo,"#fff"),e.set(Ll,"#7d91a0"),e.set(Jp,"#545a6e"),e.set(dC,"#fff"),e.set(uC,"#7f8389"),e.set(nu,[qu.ORANGE,qu.YELLOW,qu.GREEN]),e.set(Uh,[qu.GREEN,qu.YELLOW,qu.RED]),e.set(em,["#5090dc","#4882c6","#4073b0","#38659a","#305684","#28486e","#203a58","#182b42"]),e.set(K1,["#192834","#253746","#324859","#3f596c","#4d6a80"]),e.set(q1,["#192834","#3b5164","#496275","#577287","#668399"]),e.set(Nk,a2),e.set(sw,"white"),e.set(Qp,a2),e.set(Hc,qu.BLUE),e.set(dy,"#fff"),e.set(au,qu.BLUE),e.set(Vg,a2),e.set(X1,"#28313e"),e.set(uw,"#4b525d"),e.set(Z1,"#fff"),e.set($1,"#fff"),e.set(Q1,"#28313e"),e.set(J1,"#4b525d"),e.set(zk,"#fff"),e}constructor(e){super(e)}}}}),om,Uk,k6,mQ=M({"packages/ag-charts-community/src/chart/themes/financialDark.ts"(){"use strict";yR(),lr(),om={GREEN:"#089981",RED:"#F23645",BLUE:"#5090dc",GRAY:"#A9A9A9"},Uk={GREEN:"#089981",RED:"#F23645",BLUE:"#5090dc",GRAY:"#909090"},k6=class extends lE{getDefaultColors(){return{fills:pe({},om),strokes:pe({},Uk),up:{fill:om.GREEN,stroke:Uk.GREEN},down:{fill:om.RED,stroke:Uk.RED},neutral:{fill:om.BLUE,stroke:Uk.BLUE},altUp:{fill:om.GREEN,stroke:Uk.GREEN},altDown:{fill:om.RED,stroke:Uk.RED},altNeutral:{fill:om.GRAY,stroke:Uk.GRAY}}}getTemplateParameters(){let e=super.getTemplateParameters();return e.set(nu,[om.GREEN,om.BLUE,om.RED]),e.set(Hc,om.BLUE),e.set(au,om.BLUE),e.set(Jp,"#343A4E"),e.set(jg,0),e.set(ly,"overlay"),e.set(cy,"left"),e.set(uy,"bottom"),e.set(tm,!0),e}}}}),rm,Kk,A6,fQ=M({"packages/ag-charts-community/src/chart/themes/financialLight.ts"(){"use strict";pw(),lr(),rm={GREEN:"#089981",RED:"#F23645",BLUE:"#5090dc",GRAY:"#A9A9A9"},Kk={GREEN:"#089981",RED:"#F23645",BLUE:"#5090dc",GRAY:"#909090"},A6=class extends vC{getDefaultColors(){return{fills:pe({},rm),strokes:pe({},Kk),up:{fill:rm.GREEN,stroke:Kk.GREEN},down:{fill:rm.RED,stroke:Kk.RED},neutral:{fill:rm.BLUE,stroke:Kk.BLUE},altUp:{fill:rm.GREEN,stroke:Kk.GREEN},altDown:{fill:rm.RED,stroke:Kk.RED},altNeutral:{fill:rm.GRAY,stroke:Kk.GRAY}}}getTemplateParameters(){let e=super.getTemplateParameters();return e.set(nu,[rm.GREEN,rm.BLUE,rm.RED]),e.set(Hc,rm.BLUE),e.set(au,rm.BLUE),e.set(Jp,"#F2F3F3"),e.set(jg,0),e.set(ly,"overlay"),e.set(cy,"left"),e.set(uy,"bottom"),e.set(tm,!0),e}}}}),Yu,qk,D6,vQ=M({"packages/ag-charts-community/src/chart/themes/materialDark.ts"(){"use strict";yR(),lr(),Yu={BLUE:"#2196F3",ORANGE:"#FF9800",GREEN:"#4CAF50",CYAN:"#00BCD4",YELLOW:"#FFEB3B",VIOLET:"#7E57C2",GRAY:"#9E9E9E",MAGENTA:"#F06292",BROWN:"#795548",RED:"#F44336"},qk={BLUE:"#90CAF9",ORANGE:"#FFCC80",GREEN:"#A5D6A7",CYAN:"#80DEEA",YELLOW:"#FFF9C4",VIOLET:"#B39DDB",GRAY:"#E0E0E0",MAGENTA:"#F48FB1",BROWN:"#A1887F",RED:"#EF9A9A"},D6=class extends lE{getDefaultColors(){return{fills:Yu,strokes:qk,up:{fill:Yu.GREEN,stroke:qk.GREEN},down:{fill:Yu.RED,stroke:qk.RED},neutral:{fill:Yu.GRAY,stroke:qk.GRAY},altUp:{fill:Yu.BLUE,stroke:qk.BLUE},altDown:{fill:Yu.RED,stroke:qk.RED},altNeutral:{fill:Yu.GRAY,stroke:qk.GRAY}}}getTemplateParameters(){let e=super.getTemplateParameters();return e.set(nu,[Yu.ORANGE,Yu.YELLOW,Yu.GREEN]),e.set(em,["#2196f3","#208FEC","#1E88E5","#1C7FDC","#1976d2","#176EC9","#1565c0"]),e.set(Uh,[Yu.GREEN,Yu.YELLOW,Yu.RED]),e.set(Hc,Yu.BLUE),e.set(au,Yu.BLUE),e}}}}),Xu,Yk,E6,yQ=M({"packages/ag-charts-community/src/chart/themes/materialLight.ts"(){"use strict";pw(),lr(),Xu={BLUE:"#2196F3",ORANGE:"#FF9800",GREEN:"#4CAF50",CYAN:"#00BCD4",YELLOW:"#FFEB3B",VIOLET:"#7E57C2",GRAY:"#9E9E9E",MAGENTA:"#F06292",BROWN:"#795548",RED:"#F44336"},Yk={BLUE:"#1565C0",ORANGE:"#E65100",GREEN:"#2E7D32",CYAN:"#00838F",YELLOW:"#F9A825",VIOLET:"#4527A0",GRAY:"#616161",MAGENTA:"#C2185B",BROWN:"#4E342E",RED:"#B71C1C"},E6=class extends vC{getDefaultColors(){return{fills:Xu,strokes:Yk,up:{fill:Xu.GREEN,stroke:Yk.GREEN},down:{fill:Xu.RED,stroke:Yk.RED},neutral:{fill:Xu.GRAY,stroke:Yk.GRAY},altUp:{fill:Xu.BLUE,stroke:Yk.BLUE},altDown:{fill:Xu.RED,stroke:Yk.RED},altNeutral:{fill:Xu.GRAY,stroke:Yk.GRAY}}}getTemplateParameters(){let e=super.getTemplateParameters();return e.set(nu,[Xu.ORANGE,Xu.YELLOW,Xu.GREEN]),e.set(em,["#2196f3","#329EF4","#42a5f5","#53ADF6","#64b5f6","#7AC0F8","#90caf9"]),e.set(Uh,[Xu.GREEN,Xu.YELLOW,Xu.RED]),e.set(Hc,Xu.BLUE),e.set(au,Xu.BLUE),e}}}}),nl,Xk,I6,bQ=M({"packages/ag-charts-community/src/chart/themes/polychromaDark.ts"(){"use strict";yR(),lr(),nl={BLUE:"#436ff4",PURPLE:"#9a7bff",MAGENTA:"#d165d2",PINK:"#f0598b",RED:"#f47348",ORANGE:"#f2a602",YELLOW:"#e9e201",GREEN:"#21b448",CYAN:"#00b9a2",MODERATE_BLUE:"#00aee4",GRAY:"#bbbbbb"},Xk={BLUE:"#6698ff",PURPLE:"#c0a3ff",MAGENTA:"#fc8dfc",PINK:"#ff82b1",RED:"#ff9b70",ORANGE:"#ffcf4e",YELLOW:"#ffff58",GREEN:"#58dd70",CYAN:"#51e2c9",MODERATE_BLUE:"#4fd7ff",GRAY:"#eeeeee"},I6=class extends lE{getDefaultColors(){return{fills:nl,strokes:Xk,up:{fill:nl.GREEN,stroke:Xk.GREEN},down:{fill:nl.RED,stroke:Xk.RED},neutral:{fill:nl.GRAY,stroke:Xk.GRAY},altUp:{fill:nl.BLUE,stroke:Xk.BLUE},altDown:{fill:nl.RED,stroke:Xk.RED},altNeutral:{fill:nl.GRAY,stroke:Xk.GRAY}}}getTemplateParameters(){let e=super.getTemplateParameters();return e.set(nu,[nl.BLUE,nl.RED]),e.set(em,[nl.BLUE,nl.PURPLE,nl.MAGENTA,nl.PINK,nl.RED,nl.ORANGE,nl.YELLOW,nl.GREEN]),e.set(Uh,[nl.BLUE,nl.RED]),e.set(Hc,nl.BLUE),e.set(au,nl.BLUE),e}}}}),al,Zk,T6,CQ=M({"packages/ag-charts-community/src/chart/themes/polychromaLight.ts"(){"use strict";pw(),lr(),al={BLUE:"#436ff4",PURPLE:"#9a7bff",MAGENTA:"#d165d2",PINK:"#f0598b",RED:"#f47348",ORANGE:"#f2a602",YELLOW:"#e9e201",GREEN:"#21b448",CYAN:"#00b9a2",MODERATE_BLUE:"#00aee4",GRAY:"#bbbbbb"},Zk={BLUE:"#2346c9",PURPLE:"#7653d4",MAGENTA:"#a73da9",PINK:"#c32d66",RED:"#c84b1c",ORANGE:"#c87f00",YELLOW:"#c1b900",GREEN:"#008c1c",CYAN:"#00927c",MODERATE_BLUE:"#0087bb",GRAY:"#888888"},T6=class extends vC{getDefaultColors(){return{fills:al,strokes:Zk,up:{fill:al.GREEN,stroke:Zk.GREEN},down:{fill:al.RED,stroke:Zk.RED},neutral:{fill:al.GRAY,stroke:Zk.GRAY},altUp:{fill:al.BLUE,stroke:Zk.BLUE},altDown:{fill:al.RED,stroke:Zk.RED},altNeutral:{fill:al.GRAY,stroke:Zk.GRAY}}}getTemplateParameters(){let e=super.getTemplateParameters();return e.set(nu,[al.BLUE,al.RED]),e.set(em,[al.BLUE,al.PURPLE,al.MAGENTA,al.PINK,al.RED,al.ORANGE,al.YELLOW,al.GREEN]),e.set(Uh,[al.BLUE,al.RED]),e.set(Hc,al.BLUE),e.set(au,al.BLUE),e}}}}),su,mw,R6,SQ=M({"packages/ag-charts-community/src/chart/themes/sheetsDark.ts"(){"use strict";yR(),lr(),su={BLUE:"#4472C4",ORANGE:"#ED7D31",GRAY:"#A5A5A5",YELLOW:"#FFC000",MODERATE_BLUE:"#5B9BD5",GREEN:"#70AD47",DARK_GRAY:"#7B7B7B",DARK_BLUE:"#264478",VERY_DARK_GRAY:"#636363",DARK_YELLOW:"#997300"},mw={BLUE:"#6899ee",ORANGE:"#ffa55d",GRAY:"#cdcdcd",YELLOW:"#ffea53",MODERATE_BLUE:"#82c3ff",GREEN:"#96d56f",DARK_GRAY:"#a1a1a1",DARK_BLUE:"#47689f",VERY_DARK_GRAY:"#878787",DARK_YELLOW:"#c0993d"},R6=class extends lE{getDefaultColors(){return{fills:et(pe({},su),{RED:su.ORANGE}),strokes:et(pe({},mw),{RED:mw.ORANGE}),up:{fill:su.GREEN,stroke:mw.GREEN},down:{fill:su.ORANGE,stroke:mw.ORANGE},neutral:{fill:su.GRAY,stroke:mw.GRAY},altUp:{fill:su.BLUE,stroke:mw.BLUE},altDown:{fill:su.ORANGE,stroke:mw.ORANGE},altNeutral:{fill:su.GRAY,stroke:mw.GRAY}}}getTemplateParameters(){let e=super.getTemplateParameters();return e.set(nu,[su.ORANGE,su.YELLOW,su.GREEN]),e.set(Uh,[su.GREEN,su.YELLOW,su.ORANGE]),e.set(Hc,su.BLUE),e.set(au,su.BLUE),e}}}}),Zu,yC,P6,wQ=M({"packages/ag-charts-community/src/chart/themes/sheetsLight.ts"(){"use strict";pw(),lr(),Zu={BLUE:"#5281d5",ORANGE:"#ff8d44",GRAY:"#b5b5b5",YELLOW:"#ffd02f",MODERATE_BLUE:"#6aabe6",GREEN:"#7fbd57",DARK_GRAY:"#8a8a8a",DARK_BLUE:"#335287",VERY_DARK_GRAY:"#717171",DARK_YELLOW:"#a98220"},yC={BLUE:"#214d9b",ORANGE:"#c25600",GRAY:"#7f7f7f",YELLOW:"#d59800",MODERATE_BLUE:"#3575ac",GREEN:"#4b861a",DARK_GRAY:"#575757",DARK_BLUE:"#062253",VERY_DARK_GRAY:"#414141",DARK_YELLOW:"#734f00"},P6=class extends vC{getDefaultColors(){return{fills:et(pe({},Zu),{RED:Zu.ORANGE}),strokes:et(pe({},yC),{RED:yC.ORANGE}),up:{fill:Zu.GREEN,stroke:yC.GREEN},down:{fill:Zu.ORANGE,stroke:yC.ORANGE},neutral:{fill:yC.GRAY,stroke:yC.GRAY},altUp:{fill:Zu.BLUE,stroke:yC.BLUE},altDown:{fill:Zu.ORANGE,stroke:yC.ORANGE},altNeutral:{fill:Zu.GRAY,stroke:yC.GRAY}}}getTemplateParameters(){let e=super.getTemplateParameters();return e.set(nu,[Zu.ORANGE,Zu.YELLOW,Zu.GREEN]),e.set(Uh,[Zu.GREEN,Zu.YELLOW,Zu.ORANGE]),e.set(Hc,Zu.BLUE),e.set(au,Zu.BLUE),e}}}}),$u,$k,L6,xQ=M({"packages/ag-charts-community/src/chart/themes/vividDark.ts"(){"use strict";yR(),lr(),$u={BLUE:"#0083ff",ORANGE:"#ff6600",GREEN:"#00af00",CYAN:"#00ccff",YELLOW:"#f7c700",VIOLET:"#ac26ff",GRAY:"#a7a7b7",MAGENTA:"#e800c5",BROWN:"#b54300",RED:"#ff0000"},$k={BLUE:"#67b7ff",ORANGE:"#ffc24d",GREEN:"#5cc86f",CYAN:"#54ebff",VIOLET:"#fff653",YELLOW:"#c18aff",GRAY:"#aeaeae",MAGENTA:"#f078d4",BROWN:"#ba8438",RED:"#ff726e"},L6=class extends lE{getDefaultColors(){return{fills:$u,strokes:$k,up:{fill:$u.GREEN,stroke:$k.GREEN},down:{fill:$u.RED,stroke:$k.RED},neutral:{fill:$u.GRAY,stroke:$k.GRAY},altUp:{fill:$u.BLUE,stroke:$k.BLUE},altDown:{fill:$u.ORANGE,stroke:$k.ORANGE},altNeutral:{fill:$u.GRAY,stroke:$k.GRAY}}}getTemplateParameters(){let e=super.getTemplateParameters();return e.set(nu,[$u.ORANGE,$u.YELLOW,$u.GREEN]),e.set(em,["#0083ff","#0076e6","#0069cc","#005cb3","#004f99","#004280","#003466","#00274c"]),e.set(Uh,[$u.GREEN,$u.YELLOW,$u.RED]),e.set(Hc,$u.BLUE),e.set(au,$u.BLUE),e}}}}),Qu,Qk,O6,MQ=M({"packages/ag-charts-community/src/chart/themes/vividLight.ts"(){"use strict";pw(),lr(),Qu={BLUE:"#0083ff",ORANGE:"#ff6600",GREEN:"#00af00",CYAN:"#00ccff",YELLOW:"#f7c700",VIOLET:"#ac26ff",GRAY:"#a7a7b7",MAGENTA:"#e800c5",BROWN:"#b54300",RED:"#ff0000"},Qk={BLUE:"#0f68c0",ORANGE:"#d47100",GREEN:"#007922",CYAN:"#009ac2",VIOLET:"#bca400",YELLOW:"#753cac",GRAY:"#646464",MAGENTA:"#9b2685",BROWN:"#6c3b00",RED:"#cb0021"},O6=class extends vC{getDefaultColors(){return{fills:Qu,strokes:Qk,up:{fill:Qu.GREEN,stroke:Qk.GREEN},down:{fill:Qu.RED,stroke:Qk.RED},neutral:{fill:Qu.GRAY,stroke:Qk.GRAY},altUp:{fill:Qu.BLUE,stroke:Qk.BLUE},altDown:{fill:Qu.ORANGE,stroke:Qk.ORANGE},altNeutral:{fill:Qu.GRAY,stroke:Qk.GRAY}}}getTemplateParameters(){let e=super.getTemplateParameters();return e.set(nu,[Qu.ORANGE,Qu.YELLOW,Qu.GREEN]),e.set(em,["#0083ff","#1a8fff","#339cff","#4da8ff","#66b5ff","#80c1ff","#99cdff","#b3daff"]),e.set(Uh,[Qu.GREEN,Qu.YELLOW,Qu.RED]),e.set(Hc,Qu.BLUE),e.set(au,Qu.BLUE),e}}}});function kQ(e){if(e instanceof vC)return e;if(e==null||typeof e=="string"){let t=I_[e];return t?t():(Di.warnOnce(`the theme [${e}] is invalid, using [ag-default] instead.`),cE())}if(sQ(e,F6,"theme")){let t=AQ(e),n=t.baseTheme?o2(t.baseTheme):cE();return new n.constructor(t)}return cE()}function AQ(e){let t=e,n,a=[];for(;typeof t=="object";)n!=null||(n=t.palette),t.overrides&&a.push(t.overrides),t=t.baseTheme;return{baseTheme:t,overrides:ia(...a),palette:n}}var cE,_6,I_,o2,F6,T_=M({"packages/ag-charts-community/src/chart/mapping/themes.ts"(){"use strict";Rn(),Tk(),Ta(),pQ(),pw(),yR(),mQ(),fQ(),vQ(),yQ(),bQ(),CQ(),SQ(),wQ(),xQ(),MQ(),cE=Rl(()=>new vC),_6=Rl(()=>new lE),I_={"ag-default-dark":_6,"ag-sheets-dark":Rl(()=>new R6),"ag-polychroma-dark":Rl(()=>new I6),"ag-vivid-dark":Rl(()=>new L6),"ag-material-dark":Rl(()=>new D6),"ag-financial-dark":Rl(()=>new k6),null:cE,undefined:cE,"ag-default":cE,"ag-sheets":Rl(()=>new P6),"ag-polychroma":Rl(()=>new T6),"ag-vivid":Rl(()=>new O6),"ag-material":Rl(()=>new E6),"ag-financial":Rl(()=>new A6)},o2=Rl(kQ),F6={baseTheme:y6(fC,D3),overrides:D3,palette:{fills:E3(fC),strokes:E3(fC),up:{fill:fC,stroke:fC},down:{fill:fC,stroke:fC},neutral:{fill:fC,stroke:fC}}}}}),N6,R_,T3,z6=M({"packages/ag-charts-community/src/module/optionsModule.ts"(){"use strict";io(),aQ(),pf(),Lg(),Pg(),rQ(),MS(),T_(),yf(),pw(),ts(),Vr(),oa(),Lc(),Rn(),Ta(),Hn(),S6(),x_(),N6=new Set(["map-shape-background","map-line-background"]),R_=class ex{constructor(t,n,a,h,S){this.debug=Pa.create(!0,"opts"),this.optionMetadata=h!=null?h:{},this.processedOverrides=n!=null?n:{};let E=null;if(t instanceof ex){if(E=t,this.specialOverrides=E.specialOverrides,!S)throw new Error("AG Charts - internal error: deltaOptions must be supplied.");this.userOptions=ia(S,Sl(E.userOptions,ex.OPTIONS_CLONE_OPTS))}else this.userOptions=t,this.specialOverrides=this.specialOverridesDefaults(pe({},a));let L,_,N,V;S!=null&&ex.isFastPathDelta(S)&&E!=null?{activeTheme:L,processedOptions:_,defaultAxes:N,fastDelta:V}=this.fastSetup(S,E):{activeTheme:L,processedOptions:_,defaultAxes:N}=this.slowSetup(n,S),this.activeTheme=L,this.processedOptions=_,this.defaultAxes=N,this.fastDelta=V}static isFastPathDelta(t){for(let n of Object.keys(t))if(!this.FAST_PATH_OPTIONS.has(n))return!1;return!0}fastSetup(t,n){let{activeTheme:a,defaultAxes:h,processedOptions:S}=n,{presetType:E}=this.optionMetadata,L=E?g6[E]:void 0;E!=null&&t.data!=null&&L!=null&&(t=ia(L(t.data),t)),this.fastSeriesSetup(t,S);let _=ia(t,S);return{activeTheme:a,defaultAxes:h,processedOptions:_,fastDelta:t}}fastSeriesSetup(t,n){var a;t.series&&((a=t.series)!=null&&a.every((h,S)=>{var E,L;return gD(h,(L=(E=n.series)==null?void 0:E[S])!=null?L:{})})?delete t.series:t.series=t.series.map((h,S)=>{var E,L;return ia(h,(L=(E=n.series)==null?void 0:E[S])!=null?L:{})}))}slowSetup(t,n){var ce,me,we;let a=Sl(this.userOptions,ex.OPTIONS_CLONE_OPTS);n&&(a=ia(n,a));let{presetType:h}=this.optionMetadata;if(h!=null){let Me=h6[h],be=this.userOptions,Le=this.userOptions.type,Fe=Le!=null?o2(this.userOptions.theme).presets[Le]:void 0;this.debug(">>> AgCharts.createOrUpdate() - applying preset",be),a=(ce=Me==null?void 0:Me(be,Fe,()=>this.activeTheme))!=null?ce:a}Ku.isEnterprise||p6(a);let S=o2(a.theme);this.sanityCheck(a),this.removeDisabledOptions(a);let E=this.getDefaultAxes(a),L=this.optionsType(a),he=this.getSeriesThemeConfig(L,S),{axes:_={},annotations:N={},series:V}=he,q=ji(he,["axes","annotations","series"]),[Y,J]=this.splitAnnotationsOptions(N),re=ia(t,a,Y,q,E);return this.processAxesOptions(re,_),this.processSeriesOptions(re,S),this.processMiniChartSeriesOptions(re,S),this.annotationThemes=J,re=Sl(re,ex.OPTIONS_CLONE_OPTS),($b(re)||DS(re)||h1(re))&&((me=re.legend)==null?void 0:me.enabled)==null&&((we=re.legend)!=null||(re.legend={}),re.legend.enabled=re.series.length>1),this.enableConfiguredOptions(re,this.userOptions),S.templateTheme(re,!1),this.removeDisabledOptions(a),oQ(re),Ku.isEnterprise||p6(re,!0),this.debug("AgCharts.createOrUpdate() - processed options",re),{activeTheme:S,processedOptions:re,defaultAxes:E}}diffOptions(t){var n;return this===t?{}:t==null?this.processedOptions:(n=this.fastDelta)!=null?n:gg(t.processedOptions,this.processedOptions)}getSeriesThemeConfig(t,n){var a;return(a=n==null?void 0:n.config[t])!=null?a:{}}getDefaultAxes(t){var h,S;let n=this.optionsType(t),a=(S=(h=t.series)==null?void 0:h.find(E=>{var L;return((L=E.type)!=null?L:"line")===n}))!=null?S:{};return rr.cloneDefaultAxes(n,a)}optionsType(t){var n,a,h;return(h=(a=(n=t.series)==null?void 0:n[0])==null?void 0:a.type)!=null?h:"line"}sanityCheck(t){this.axesTypeIntegrity(t),this.seriesTypeIntegrity(t),this.soloSeriesIntegrity(t)}splitAnnotationsOptions(t){let L=t,{axesButtons:n=null,enabled:a=null,optionsToolbar:h=null,toolbar:S=null}=L,E=ji(L,["axesButtons","enabled","optionsToolbar","toolbar"]);return n==null&&a==null&&h==null&&S==null?[{},E]:[{annotations:{axesButtons:n,enabled:a,optionsToolbar:h,toolbar:S}},E]}processAxesOptions(t,n){var a;"axes"in t&&(t.axes=(a=t.axes)==null?void 0:a.map(h=>{var J,ce,he;let re=ia((J=n[h.type])==null?void 0:J[h.position],n[h.type]),{crossLines:S}=re,E=ji(re,["crossLines"]);h.crossLines&&(h.crossLines=jy(h.crossLines,S));let L=(ce=E.gridLine)==null?void 0:ce.style;(he=h.gridLine)!=null&&he.style&&(L!=null&&L.length)&&(h.gridLine.style=h.gridLine.style.map((we,Me)=>we.stroke!=null||we.lineDash!=null?ia(we,L.at(Me%L.length)):we));let me=ia(h,E),{top:_,right:N,bottom:V,left:q}=me;return ji(me,["top","right","bottom","left"])}))}processSeriesOptions(t,n){var L,_;let a=this.getTooltipPositionDefaults(t),h=Br(t.theme)?I3((L=t.theme)==null?void 0:L.palette):"inbuilt",S={colourIndex:0,userPalette:h},E=(_=t.series)==null?void 0:_.map(N=>{var he,me;(he=N.type)!=null||(N.type=this.getDefaultSeriesType(t));let we=(me=this.getSeriesThemeConfig(N.type,n).series)!=null?me:{},{innerLabels:V}=we,q=ji(we,["innerLabels"]),Y=N6.has(N.type)?{colourIndex:0,userPalette:h}:S,J=this.getSeriesPalette(N.type,Y,n),re=this.getTooltipRangeDefaults(t,N.type),ce=ia(this.getSeriesGroupingOptions(N),N,a,re,q,J,{visible:!0});return ce.innerLabels&&(ce.innerLabels=jy(ce.innerLabels,V)),ce});t.series=this.setSeriesGroupingOptions(E!=null?E:[])}processMiniChartSeriesOptions(t,n){var S,E;let a=(E=(S=t.navigator)==null?void 0:S.miniChart)==null?void 0:E.series;if(a==null)return;let h={colourIndex:0,userPalette:Br(t.theme)?I3(t.theme.palette):"inbuilt"};a=a.map(L=>{var V,q;(V=L.type)!=null||(L.type="line");let Y=(q=this.getSeriesThemeConfig(L.type,n).series)!=null?q:{},{innerLabels:_}=Y,N=ji(Y,["innerLabels"]);return ia(this.getSeriesGroupingOptions(L),L,N,this.getSeriesPalette(L.type,h,n))}),t.navigator.miniChart.series=this.setSeriesGroupingOptions(a)}getSeriesPalette(t,n,a){let h=rr.getPaletteFactory(t),{colourIndex:S,userPalette:E}=n,{fills:L=[],strokes:_=[]}=a.palette;return h==null?void 0:h({userPalette:E,colorsCount:Math.max(L.length,_.length),themeTemplateParameters:a.getTemplateParameters(),palette:a.palette,takeColors(N){return n.colourIndex+=N,{fills:ov(L,N,S),strokes:ov(_,N,S)}}})}getSeriesGroupingOptions(t){let n=rr.isGroupable(t.type),a=rr.isStackable(t.type),h=rr.isStackedByDefault(t.type);t.grouped&&!n&&Di.warnOnce(`unsupported grouping of series type "${t.type}".`),(t.stacked||t.stackGroup)&&!a&&Di.warnOnce(`unsupported stacking of series type "${t.type}".`);let{grouped:S,stacked:E}=t;return E!=null||(E=(h||t.stackGroup!=null)&&!(n&&S)),S!=null||(S=!0),{stacked:a&&E,grouped:n&&S&&!(a&&E)}}setSeriesGroupingOptions(t){let n=this.getSeriesGrouping(t);this.debug("setSeriesGroupingOptions() - series grouping: ",n);let a={},h=n.reduce((S,E)=>{var _;var L;return E.groupType==="default"||((_=S[L=E.seriesType])!=null||(S[L]=0),S[E.seriesType]+=E.groupType==="stack"?1:E.series.length),S},{});return n.flatMap(S=>{var L;var E;switch((L=a[E=S.seriesType])!=null||(a[E]=0),S.groupType){case"stack":{let _=a[S.seriesType]++;return S.series.map((N,V)=>Object.assign(N,{seriesGrouping:{groupId:S.groupId,groupIndex:_,groupCount:h[S.seriesType],stackIndex:V,stackCount:S.series.length}}))}case"group":return S.series.map(_=>Object.assign(_,{seriesGrouping:{groupId:S.groupId,groupIndex:a[S.seriesType]++,groupCount:h[S.seriesType],stackIndex:0,stackCount:0}}))}return S.series}).map(_=>{var N=_,{stacked:S,grouped:E}=N,L=ji(N,["stacked","grouped"]);return L})}getSeriesGroupId(t){var n;return[t.type,t.xKey,t.stacked?(n=t.stackGroup)!=null?n:"stacked":"grouped"].filter(Boolean).join("-")}getSeriesGrouping(t){let n=new Map;return t.reduce((a,h)=>{let S=h.type;if(!h.stacked&&!h.grouped)a.push({groupType:"default",seriesType:S,series:[h],groupId:"__default__"});else{let E=this.getSeriesGroupId(h);if(!n.has(E)){let _={groupType:h.stacked?"stack":"group",seriesType:S,series:[],groupId:E};n.set(E,_),a.push(_)}n.get(E).series.push(h)}return a},[])}getDefaultSeriesType(t){if($b(t))return"line";if(_u(t))return"pie";if(hr(t))return"treemap";if(rc(t))return"map-shape";if(QM(t))return"sankey";if(DS(t))return"pyramid";if(Gp(t))return"radial-gauge";throw new Error("Invalid chart options type detected.")}getTooltipPositionDefaults(t){var L;let n=(L=t.tooltip)==null?void 0:L.position;if(!no(n))return;let{type:a,xOffset:h,yOffset:S}=n,E={};return ui(a)&&Ia(Ps,a)&&(E.type=a),Na(h)&&(E.xOffset=h),Na(S)&&(E.yOffset=S),{tooltip:{position:E}}}getTooltipRangeDefaults(t,n){var a,h,S;return{tooltip:{range:(S=(a=t.tooltip)==null?void 0:a.range)!=null?S:(h=rr.getTooltipDefauls(n))==null?void 0:h.range}}}axesTypeIntegrity(t){if("axes"in t&&t.axes){let n=t.axes;for(let{type:a}of n)if(!TT(a)){delete t.axes;let h=Ou.publicKeys().join(", ");Di.warnOnce(`unknown axis type: ${a}; expected one of: ${h}`)}}}seriesTypeIntegrity(t){var n;t.series=(n=t.series)==null?void 0:n.filter(({type:a})=>{if(a==null||IT(a)||d1(a))return!0;Di.warnOnce(`unknown series type: ${JSON.stringify(a)}; expected one of: ${Zb.seriesTypes.join(", ")}`)})}soloSeriesIntegrity(t){let n=t.series;if(n&&n.length>1&&n.some(a=>rr.isSolo(a.type))){let a=this.optionsType(t);if(rr.isSolo(a))Di.warn(`series[0] of type '${a}' is incompatible with other series types. Only processing series[0]`),t.series=n.slice(0,1);else{let{solo:h,nonSolo:S}=dx(n,L=>rr.isSolo(L.type)?"solo":"nonSolo"),E=cx(h.map(L=>L.type)).join(", ");Di.warn(`Unable to mix these series types with the lead series type: ${E}`),t.series=S}}}static enableConfiguredJsonOptions(t,n){n&&"enabled"in n&&!n._enabledFromTheme&&t.enabled==null&&(n.enabled=!0)}static cleanupEnabledFromThemeJsonOptions(t){t._enabledFromTheme!=null&&delete t._enabledFromTheme}enableConfiguredOptions(t,n){pg(n,ex.enableConfiguredJsonOptions,new Set(["data","theme"]),t),pg(t,ex.cleanupEnabledFromThemeJsonOptions,new Set(["data","theme"]))}static removeDisabledOptionJson(t){"enabled"in t&&t.enabled===!1&&Object.keys(t).forEach(n=>{n!=="enabled"&&delete t[n]})}removeDisabledOptions(t){pg(t,ex.removeDisabledOptionJson,new Set(["data","theme"]))}specialOverridesDefaults(t){if(t.window!=null?ku(t.window):typeof window!="undefined"?t.window=window:typeof global!="undefined"&&(t.window=global.window),t.document!=null?sD(t.document):typeof document!="undefined"?t.document=document:typeof global!="undefined"&&(t.document=global.document),t.window==null)throw new Error("AG Charts - unable to resolve global window");if(t.document==null)throw new Error("AG Charts - unable to resolve global document");return t}},R_.OPTIONS_CLONE_OPTS=new Set(["data","container"]),R_.FAST_PATH_OPTIONS=new Set(["data","width","height"]),T3=R_}}),B6,P_,G6,DQ=M({"packages/ag-charts-community/src/util/pool.ts"(){"use strict";Vr(),B6=100,P_=class gI{constructor(t,n,a,h,S,E=B6){this.name=t,this.buildItem=n,this.releaseItem=a,this.destroyItem=h,this.maxPoolSize=S,this.cleanupTimeMs=E,this.freePool=[],this.busyPool=new Set}static getPool(t,n,a,h,S){return this.pools.has(t)||this.pools.set(t,new gI(t,n,a,h,S)),this.pools.get(t)}isFull(){return this.freePool.length+this.busyPool.size>=this.maxPoolSize}obtain(t){if(this.freePool.length===0&&this.isFull())throw new Error("AG Charts - pool exhausted");let n=this.freePool.pop();return n==null?(n=this.buildItem(t),gI.debug(`Pool[name=${this.name}]: Created instance (${this.freePool.length} / ${this.busyPool.size+1} / ${this.maxPoolSize})`,n)):gI.debug(`Pool[name=${this.name}]: Re-used instance (${this.freePool.length} / ${this.busyPool.size+1} / ${this.maxPoolSize})`,n),this.busyPool.add(n),{item:n,release:()=>this.release(n)}}release(t){if(!this.busyPool.has(t))throw new Error("AG Charts - cannot free item from pool which is not tracked as busy.");gI.debug(`Pool[name=${this.name}]: Releasing instance (${this.freePool.length} / ${this.busyPool.size} / ${this.maxPoolSize})`,t),this.releaseItem(t),this.busyPool.delete(t),this.freePool.push(t),gI.debug(`Pool[name=${this.name}]: Returned instance to free pool (${this.freePool.length} / ${this.busyPool.size} / ${this.maxPoolSize})`,t),this.cleanPoolTimer&&clearTimeout(this.cleanPoolTimer),this.cleanPoolTimer=setTimeout(()=>{this.cleanPool()},this.cleanupTimeMs)}cleanPool(){let t=this.freePool.splice(0);for(let n of t)this.destroyItem(n);gI.debug(`Pool[name=${this.name}]: Cleaned pool of ${t.length} items (${this.freePool.length} / ${this.busyPool.size} / ${this.maxPoolSize})`)}destroy(){this.cleanPool();for(let t of this.busyPool.values())this.destroyItem(t);this.busyPool.clear()}},P_.pools=new Map,P_.debug=Pa.create(!0,"pool"),G6=P_}});function j6(e){if($b(e))return"cartesian";if(_u(e))return"polar";if(hr(e))return"hierarchy";if(rc(e))return"topology";if(QM(e))return"flow-proportion";if(DS(e))return"standalone";if(Gp(e))return"gauge";throw new Error(`AG Chart - unknown type of chart for options with type: ${e.type}`)}var r2,fw,gy,R3,V6=M({"packages/ag-charts-community/src/api/agCharts.ts"(){"use strict";IL(),ks(),R1(),x3(),k$(),D$(),T$(),R$(),yf(),O$(),_$(),F$(),x_(),z6(),Vr(),Lc(),DQ(),kb(),J0(),r2=Pa.create(!0,"opts"),fw=class{static licenseCheck(e){var t,n;this.licenseChecked||(this.licenseManager=(t=Ku.licenseManager)==null?void 0:t.call(Ku,e),(n=this.licenseManager)==null||n.validateLicense(),this.licenseChecked=!0)}static getLicenseDetails(e){var t;return(t=Ku.licenseManager)==null?void 0:t.call(Ku,{}).getLicenseDetails(e)}static getInstance(e){return R3.getInstance(e)}static create(e,t){var a,h;this.licenseCheck(e);let n=R3.createOrUpdate({userOptions:e,licenseManager:this.licenseManager,optionsMetadata:t});return(a=this.licenseManager)!=null&&a.isDisplayWatermark()&&this.licenseManager&&((h=Ku.injectWatermark)==null||h.call(Ku,n.chart.ctx.domManager,this.licenseManager.getWatermarkMessage())),n}static createFinancialChart(e){return this.create(e,{presetType:"price-volume"})}static createGauge(e){return this.create(e,{presetType:"gauge"})}static __createSparkline(e){let a=e,{pool:t}=a,n=ji(a,["pool"]);return this.create(n,{presetType:"sparkline",pool:t!=null?t:!0})}},fw.licenseChecked=!1,gy=class tx{static getInstance(t){let n=Wp.getInstance(t);return n?Yp.chartInstances.get(n):void 0}static initialiseModules(){tx.initialised||(w3(),M$(),tx.initialised=!0)}static createOrUpdate(t){var Fe,je,Xe,lt,ot,vt,gt;let{proxy:n}=t,{userOptions:a,licenseManager:h,processedOverrides:S=(Fe=n==null?void 0:n.chart.chartOptions.processedOverrides)!=null?Fe:{},specialOverrides:E=(je=n==null?void 0:n.chart.chartOptions.specialOverrides)!=null?je:{},optionsMetadata:L=(Xe=n==null?void 0:n.chart.chartOptions.optionMetadata)!=null?Xe:{},deltaOptions:_}=t,N=Ku.styles!=null?[["ag-charts-enterprise",Ku.styles]]:[],{presetType:V}=L;tx.initialiseModules(),r2(">>> AgCharts.createOrUpdate() user options",a);let q=a;fw.optionsMutationFn&&q&&(q=fw.optionsMutationFn(Sl(q),V),r2(">>> AgCharts.createOrUpdate() MUTATED user options",q));let nt=q!=null?q:{},{overrideDevicePixelRatio:Y,document:J,window:re,styleContainer:ce}=nt,he=ji(nt,["overrideDevicePixelRatio","document","window","styleContainer"]),me=(lt=_?n==null?void 0:n.chart.getChartOptions():he)!=null?lt:he,we=new T3(me,S,et(pe({},E),{document:J,window:re,overrideDevicePixelRatio:Y,styleContainer:ce}),L,_),Me=!1,be=n==null?void 0:n.chart,Le;return(be==null||j6(we.processedOptions)!==j6(be==null?void 0:be.chartOptions.processedOptions))&&(Le=(ot=this.getPool(we))==null?void 0:ot.obtain(we),Le?be=Le.item:(Me=!0,be=tx.createChartInstance(we,be)),N==null||N.forEach(([bt,At])=>{be==null||be.ctx.domManager.addStyles(bt,At)})),n==null?(n=new Yp(be,tx.callbackApi,h),n.releaseChart=Le==null?void 0:Le.release):(Le||Me)&&((vt=n.releaseChart)==null||vt.call(n),n.chart=be,n.releaseChart=Le==null?void 0:Le.release),r2.check()&&typeof window!="undefined"&&((gt=window.agChartInstances)!=null||(window.agChartInstances={}),window.agChartInstances[be.id]=be),be.queuedUserOptions.push(we.userOptions),be.queuedChartOptions.push(we),be.requestFactoryUpdate(bt=>{bt.applyOptions(we);let At=bt.queuedUserOptions.indexOf(we.userOptions)+1;bt.queuedUserOptions.splice(0,At),bt.queuedChartOptions.splice(0,At)}),n}static markRemovedProperties(t){if(typeof t=="object")for(let[n,a]of Object.entries(t))typeof a=="undefined"&&Object.assign(t,{[n]:Symbol("UNSET")})}static updateUserDelta(t,n){n=Sl(n,new Set(["data"])),pg(n,tx.markRemovedProperties,new Set(["data"])),r2(">>> AgCharts.updateUserDelta() user delta",n),tx.createOrUpdate({proxy:t,deltaOptions:n})}static createChartInstance(t,n){let a=n==null?void 0:n.destroy({keepTransferableResources:!0}),h=tx.getChartByOptions(t.processedOptions);return new h(t,a)}static getChartByOptions(t){if($b(t))return T1;if(hr(t))return p_;if(_u(t))return m_;if(rc(t))return w_;if(QM(t))return h_;if(DS(t))return f_;if(Gp(t))return g_;throw new Error("AG Charts - couldn't apply configuration, check options are correctly structured and series types are specified")}static getPool(t){var n;if(t.optionMetadata.pool===!0)return G6.getPool((n=t.optionMetadata.presetType)!=null?n:"default",this.createChartInstance,this.detachAndClear,this.destroy,1/0)}},gy.caretaker=new Tu(Xm),gy.initialised=!1,gy.callbackApi={caretaker:gy.caretaker,create(e,t,n,a){return gy.createOrUpdate({userOptions:e,processedOverrides:t,specialOverrides:n,optionsMetadata:a})},update(e,t){return gy.createOrUpdate({userOptions:e,proxy:t})},updateUserDelta(e,t){return gy.updateUserDelta(e,t)}},gy.detachAndClear=e=>e.detachAndClear(),gy.destroy=e=>e.destroy(),R3=gy}}),Nf,H6=M({"packages/ag-charts-community/src/scene/shape/arc.ts"(){"use strict";br(),zn(),jn(),lc(),os(),Nf=class extends qr{constructor(){super(),this.centerX=0,this.centerY=0,this.radius=10,this.startAngle=0,this.endAngle=Math.PI*2,this.counterClockwise=!1,this.type=0,this.restoreOwnStyles()}get fullPie(){return Ao(da(this.startAngle),da(this.endAngle))}updatePath(){let e=this.path;e.clear(),e.arc(this.centerX,this.centerY,this.radius,this.startAngle,this.endAngle,this.counterClockwise),this.type===1?e.closePath():this.type===2&&!this.fullPie&&(e.lineTo(this.centerX,this.centerY),e.closePath())}computeBBox(){return new Ui(this.centerX-this.radius,this.centerY-this.radius,this.radius*2,this.radius*2)}isPointInPath(e,t){let n=this.getBBox();return this.type!==0&&n.containsPoint(e,t)&&this.path.isPointInPath(e,t)}},Nf.className="Arc",Nf.defaultStyles=et(pe({},Us.defaultStyles),{lineWidth:1,fillStyle:null}),f([mn()],Nf.prototype,"centerX",2),f([mn()],Nf.prototype,"centerY",2),f([mn()],Nf.prototype,"radius",2),f([mn()],Nf.prototype,"startAngle",2),f([mn()],Nf.prototype,"endAngle",2),f([mn()],Nf.prototype,"counterClockwise",2),f([mn()],Nf.prototype,"type",2)}});function P3(e,t,n){let a=Math.sqrt(e**2+t**2),S=Math.atan2(t,e)+n;return{x:Math.cos(S)*a,y:Math.sin(S)*a}}function W6(e,t,n,a,h){let S=gb(e,t),E=S*(1-a)/2;if(e+=E,t-=E,S<.001)return 2*n*h;if(S>=2*Math.PI){let J=e+S/2;e=J-Math.PI,t=J+Math.PI}let L=n*Math.cos(e),_=n*Math.sin(e),N=n*Math.cos(t),V=n*Math.sin(t),q=Math.floor(Math.sqrt((L-N)**2+(_-V)**2)),Y=2*n*h;return Math.max(1,Math.min(Y,q))}var sm,U6=M({"packages/ag-charts-community/src/scene/shape/radialColumnShape.ts"(){"use strict";br(),zn(),jn(),lc(),sm=class extends qr{constructor(){super(...arguments),this.isBeveled=!0,this.columnWidth=0,this.startAngle=0,this.endAngle=0,this.outerRadius=0,this.innerRadius=0,this.axisInnerRadius=0,this.axisOuterRadius=0,this.isRadiusAxisReversed=!1}set cornerRadius(e){}computeBBox(){let{innerRadius:e,outerRadius:t,columnWidth:n}=this,a=this.getRotation(),h=-n/2,S=n/2,E=-t,L=-e,_=1/0,N=1/0,V=-1/0,q=-1/0;for(let Y=0;Y<4;Y+=1){let{x:J,y:re}=P3(Y%2===0?h:S,Y<2?E:L,a);_=Math.min(J,_),N=Math.min(re,N),V=Math.max(J,V),q=Math.max(re,q)}return new Ui(_,N,V-_,q-N)}getRotation(){let{startAngle:e,endAngle:t}=this,n=gb(e,t);return da(e+n/2+Math.PI/2)}updatePath(){let{isBeveled:e}=this;e?this.updateBeveledPath():this.updateRectangularPath(),this.checkPathDirty()}updateRectangularPath(){let{columnWidth:e,innerRadius:t,outerRadius:n,path:a}=this,h=-e/2,S=e/2,E=-n,L=-t,_=this.getRotation(),N=[[h,L],[h,E],[S,E],[S,L]].map(([V,q])=>P3(V,q,_));a.clear(!0),a.moveTo(N[0].x,N[0].y),a.lineTo(N[1].x,N[1].y),a.lineTo(N[2].x,N[2].y),a.lineTo(N[3].x,N[3].y),a.closePath()}updateBeveledPath(){let{columnWidth:e,path:t,outerRadius:n,innerRadius:a,axisInnerRadius:h,axisOuterRadius:S,isRadiusAxisReversed:E}=this,L=Ao(a,h),_=Math.asin(e/2/a),N=this.getRotation(),V=(Xe,nt)=>P3(Xe,nt,N),q=(Xe,nt)=>Math.sqrt(Xe**2+nt**2),Y=(Xe,nt)=>nt>Xe?0:Math.sqrt(Xe**2-nt**2),J=(Xe,nt,lt)=>lt?Xe<nt:Xe>nt,re=L&&!isNaN(_)&&_<Math.PI/6,ce=-e/2,he=e/2,me=-n,we=-a*(re?Math.cos(_):1),Me=J(S,q(a,e/2),!E);if(Me){let Xe=Y(S,a);ce=-Xe,he=Xe}t.clear(!0);let be=V(ce,we);t.moveTo(be.x,be.y);let Le=Ao(a,n),Fe=J(S,q(n,e/2),!E);if(Le&&re)t.arc(0,0,a,da(-_-Math.PI/2)+N,da(_-Math.PI/2)+N,!1);else if(Fe){let Xe=-Y(S,e/2),nt=Y(S,n);if(!Me){let lt=V(ce,Xe);t.lineTo(lt.x,lt.y)}if(t.arc(0,0,S,Math.atan2(Xe,ce)+N,Math.atan2(me,-nt)+N,!1),!Ao(nt,0)){let lt=V(nt,me);t.lineTo(lt.x,lt.y)}t.arc(0,0,S,Math.atan2(me,nt)+N,Math.atan2(Xe,he)+N,!1)}else{let Xe=V(ce,me),nt=V(he,me);t.lineTo(Xe.x,Xe.y),t.lineTo(nt.x,nt.y)}let je=V(he,we);if(t.lineTo(je.x,je.y),re)t.arc(0,0,a,da(_-Math.PI/2)+N,da(-_-Math.PI/2)+N,!0);else{let Xe=V(ce,we);t.lineTo(Xe.x,Xe.y)}t.closePath()}},sm.className="RadialColumnShape",f([mn()],sm.prototype,"isBeveled",2),f([mn()],sm.prototype,"columnWidth",2),f([mn()],sm.prototype,"startAngle",2),f([mn()],sm.prototype,"endAngle",2),f([mn()],sm.prototype,"outerRadius",2),f([mn()],sm.prototype,"innerRadius",2),f([mn()],sm.prototype,"axisInnerRadius",2),f([mn()],sm.prototype,"axisOuterRadius",2),f([mn()],sm.prototype,"isRadiusAxisReversed",2)}}),L3={};A(L3,{Arc:()=>Nf,BBox:()=>Ui,BandScale:()=>dr,Caption:()=>vo,Circle:()=>Vp,Group:()=>hn,Line:()=>Ks,LinearScale:()=>Sd,Path:()=>qr,RadialColumnShape:()=>sm,Rect:()=>Co,Scene:()=>Gv,Sector:()=>Uc,Shape:()=>Us,TranslatableGroup:()=>qa,getRadialColumnWidth:()=>W6,toRadians:()=>za});var K6=M({"packages/ag-charts-community/src/integrated-charts-scene.ts"(){"use strict";wp(),LS(),bu(),Zp(),jn(),$o(),uS(),H6(),Gd(),lc(),U6(),$p(),n_(),os(),br()}}),O3={};A(O3,{ChartTheme:()=>vC,DEFAULT_ANNOTATION_BACKGROUND_FILL:()=>au,DEFAULT_ANNOTATION_COLOR:()=>Hc,DEFAULT_ANNOTATION_HANDLE_FILL:()=>Vg,DEFAULT_ANNOTATION_STATISTICS_COLOR:()=>Z1,DEFAULT_ANNOTATION_STATISTICS_DIVIDER_STROKE:()=>$1,DEFAULT_ANNOTATION_STATISTICS_DOWN_FILL:()=>hR,DEFAULT_ANNOTATION_STATISTICS_DOWN_STROKE:()=>gR,DEFAULT_ANNOTATION_STATISTICS_FILL:()=>X1,DEFAULT_ANNOTATION_STATISTICS_STROKE:()=>uw,DEFAULT_AXIS_GRID_COLOUR:()=>Jp,DEFAULT_AXIS_LINE_COLOUR:()=>Vc,DEFAULT_BACKGROUND_COLOUR:()=>Nk,DEFAULT_CAPTION_ALIGNMENT:()=>cy,DEFAULT_CAPTION_LAYOUT_STYLE:()=>ly,DEFAULT_COLOURS:()=>rR,DEFAULT_CROSS_LINES_COLOUR:()=>dC,DEFAULT_DIVERGING_SERIES_COLOR_RANGE:()=>nu,DEFAULT_FIBONACCI_STROKES:()=>Y1,DEFAULT_FONT_FAMILY:()=>So,DEFAULT_FUNNEL_SERIES_COLOR_RANGE:()=>em,DEFAULT_GAUGE_SERIES_COLOR_RANGE:()=>Uh,DEFAULT_GRIDLINE_ENABLED:()=>tm,DEFAULT_HIERARCHY_FILLS:()=>K1,DEFAULT_HIERARCHY_STROKES:()=>q1,DEFAULT_INSIDE_SERIES_LABEL_COLOUR:()=>Qp,DEFAULT_INVERTED_BACKGROUND_COLOUR:()=>sw,DEFAULT_INVERTED_LABEL_COLOUR:()=>B1,DEFAULT_LABEL_COLOUR:()=>Vo,DEFAULT_MUTED_LABEL_COLOUR:()=>Ll,DEFAULT_NAVIGATOR_STROKE:()=>_f,DEFAULT_PADDING:()=>jg,DEFAULT_POLAR_SERIES_STROKE:()=>W1,DEFAULT_SEPARATION_LINES_COLOUR:()=>uC,DEFAULT_SHADOW_COLOUR:()=>sy,DEFAULT_SPARKLINE_CROSSHAIR_STROKE:()=>U1,DEFAULT_TEXTBOX_COLOR:()=>zk,DEFAULT_TEXTBOX_FILL:()=>Q1,DEFAULT_TEXTBOX_STROKE:()=>J1,DEFAULT_TEXT_ANNOTATION_COLOR:()=>dy,DEFAULT_TOOLBAR_POSITION:()=>uy,IS_COMMUNITY:()=>rw,IS_DARK_THEME:()=>ow,IS_ENTERPRISE:()=>z1,PALETTE_ALT_DOWN_FILL:()=>dR,PALETTE_ALT_DOWN_STROKE:()=>lR,PALETTE_ALT_NEUTRAL_FILL:()=>uR,PALETTE_ALT_NEUTRAL_STROKE:()=>H1,PALETTE_ALT_UP_FILL:()=>cR,PALETTE_ALT_UP_STROKE:()=>sR,PALETTE_DOWN_FILL:()=>cw,PALETTE_DOWN_STROKE:()=>lw,PALETTE_NEUTRAL_FILL:()=>V1,PALETTE_NEUTRAL_STROKE:()=>dw,PALETTE_UP_FILL:()=>j1,PALETTE_UP_STROKE:()=>G1,getChartTheme:()=>o2,themeNames:()=>q6,themeSymbols:()=>N1,themes:()=>I_});var q6,Y6=M({"packages/ag-charts-community/src/integrated-charts-theme.ts"(){"use strict";T_(),T_(),lr(),pw(),T_(),lr(),q6=Object.keys(I_)}}),_3={};A(_3,{Color:()=>Dr,interpolateColor:()=>fI});var X6=M({"packages/ag-charts-community/src/integrated-charts-util.ts"(){"use strict";JC(),ms()}}),Z6,EQ=M({"packages/ag-charts-community/src/main-modules.ts"(){"use strict";V6(),x3(),K6(),Y6(),X6(),kb(),V6(),kb(),x3(),Z6={VERSION:Xm,_Scene:L3,_Theme:O3,_Util:_3,create:fw.create.bind(fw),createSparkline:fw.__createSparkline.bind(fw),setup:w3,isEnterprise:!1}}});function F3(){return(e,t)=>{let n=[`Property [${e}] is deprecated.`,t].filter(Boolean).join(" ");Di.warnOnce(n)}}function IQ(e,t){let n=F3(),a=t==null?void 0:t.default;return Uo((h,S,E)=>(E!==a&&n(S.toString(),e),E))}function TQ(e,t){let n=F3();return Uo((a,h,S)=>(S!==a[e]&&(n(h.toString(),`Use [${e}] instead.`),Bs(a,e,t?t(S):S)),iv),(a,h)=>(n(h.toString(),`Use [${e}] instead.`),gl(a,e)))}var RQ=M({"packages/ag-charts-community/src/util/deprecation.ts"(){"use strict";Wl(),Rn(),Ta()}}),PQ=M({"packages/ag-charts-community/src/util/types.ts"(){"use strict"}});function LQ(e,t){return typeof t=="number"?{x:e.x+t,y:e.y+t}:{x:e.x+t.x,y:e.y+t.y}}function N3(e,t){return typeof t=="number"?{x:e.x-t,y:e.y-t}:{x:e.x-t.x,y:e.y-t.y}}function OQ(e,t){return typeof t=="number"?{x:e.x*t,y:e.y*t}:{x:e.x*t.x,y:e.y*t.y}}function z3(e){return Math.sqrt(e.x*e.x+e.y*e.y)}function _Q(e){return e.x*e.x+e.y*e.y}function FQ(e,t){let n=N3(e,t);return Math.sqrt(n.x*n.x+n.y*n.y)}function NQ(e,t){let n=N3(e,t);return n.x*n.x+n.y*n.y}function zQ(e){let t=z3(e);return{x:e.x/t,y:e.y/t}}function BQ(e,t=B3()){return Math.atan2(e.y,e.x)-Math.atan2(t.y,t.x)}function GQ(e,t,n=B3()){let a=z3(e);return{x:n.x+a*Math.cos(t),y:n.y+a*Math.sin(t)}}function jQ(e,t,n){let a=t.x-e.x;return(n==null?t.y-e.y:n-t.y-(n-e.y))/a}function VQ(e,t,n){return(n==null?e.y:n-e.y)-t*e.x}function HQ(e,t,n=0,a){return{x:e===1/0?1/0:(n-t)/e,y:a==null?n:a-n}}function WQ(e,t,n=0,a){let h=e===1/0?1/0:e*n+t;return{x:n,y:a==null?h:a-h}}function UQ(e){return{x:Math.round(e.x),y:Math.round(e.y)}}function KQ(e,t){return e.x===t.x&&e.y===t.y}function qQ(e,t){if(typeof e=="number")return{x:e,y:t};if("regionX"in e)return{x:e.regionX,y:e.regionY};if("offsetWidth"in e)return{x:e.offsetWidth,y:e.offsetHeight};if("width"in e)return[{x:e.x,y:e.y},{x:e.x+e.width,y:e.y+e.height}];if("x1"in e)return[{x:e.x1,y:e.y1},{x:e.x2,y:e.y2}];throw new Error(`Values can not be converted into a vector: [${JSON.stringify(e)}] [${t}]`)}function YQ(e,t){return e.x=t.x,e.y=t.y,e}function XQ(e){var t,n;return{x:(t=e==null?void 0:e.x)!=null?t:0,y:(n=e==null?void 0:e.y)!=null?n:0}}function B3(){return{x:0,y:0}}var dE,$6=M({"packages/ag-charts-community/src/util/vector.ts"(){"use strict";dE={add:LQ,angle:BQ,apply:YQ,equal:KQ,distance:FQ,distanceSquared:NQ,from:qQ,gradient:jQ,intercept:VQ,intersectAtX:WQ,intersectAtY:HQ,length:z3,lengthSquared:_Q,multiply:OQ,normalized:zQ,origin:B3,required:XQ,rotate:GQ,round:UQ,sub:N3}}}),ZQ=M({"packages/ag-charts-community/src/module/axisModule.ts"(){"use strict"}}),$Q=M({"packages/ag-charts-community/src/module/axisOptionModule.ts"(){"use strict"}}),QQ=M({"packages/ag-charts-community/src/module/baseModule.ts"(){"use strict"}}),JQ=M({"packages/ag-charts-community/src/module/coreModules.ts"(){"use strict"}}),eJ=M({"packages/ag-charts-community/src/module/optionsModuleTypes.ts"(){"use strict"}}),tJ=M({"packages/ag-charts-community/src/module/axisContext.ts"(){"use strict"}}),iJ=M({"packages/ag-charts-community/src/module/moduleContext.ts"(){"use strict"}}),nJ=M({"packages/ag-charts-community/src/chart/chartAnimationPhase.ts"(){"use strict"}}),aJ=M({"packages/ag-charts-community/src/chart/series/seriesEvents.ts"(){"use strict"}}),G3,bR,Q6,oJ=M({"packages/ag-charts-community/src/chart/series/hierarchy/hierarchySeries.ts"(){"use strict";Om(),yv(),Rn(),zn(),xv(),sc(),G3=class jz{constructor(t,n,a,h,S,E,L,_,N,V){this.series=t,this.index=n,this.rootIndex=a,this.datum=h,this.sizeValue=S,this.colorValue=E,this.sumSize=L,this.depth=_,this.parent=N,this.children=V,this.midPoint={x:0,y:0}}contains(t){let n=t;for(;n!=null&&n.index>=this.index;){if(n===this)return!0;n=n.parent}return!1}walk(t,n=jz.Walk.PreOrder){n===jz.Walk.PreOrder&&t(this),this.children.forEach(a=>{a.walk(t,n)}),n===jz.Walk.PostOrder&&t(this)}*[Symbol.iterator](){yield this;for(let t of this.children)yield*t}},G3.Walk={PreOrder:0,PostOrder:1},bR=G3,Q6=class extends Cf{constructor(e){super({moduleCtx:e,pickModes:[1,0]}),this.rootNode=new bR(this,0,0,void 0,0,void 0,0,void 0,void 0,[]),this.colorDomain=[0,0],this.maxDepth=0,this.colorScale=new Au,this.focusPath=[],this.animationState=new Sp("empty",{empty:{update:{target:"ready",action:t=>this.animateEmptyUpdateReady(t)},reset:"empty",skip:"ready"},ready:{updateData:"waiting",clear:"clearing",highlight:t=>this.animateReadyHighlight(t),resize:t=>this.animateReadyResize(t),reset:"empty",skip:"ready"},waiting:{update:{target:"ready",action:t=>this.animateWaitingUpdateReady(t)},reset:"empty",skip:"ready"},clearing:{update:{target:"empty",action:t=>this.animateClearingUpdateEmpty(t)},reset:"empty",skip:"ready"}},()=>this.checkProcessedDataAnimatable())}resetAnimation(e){e==="initial"?this.animationState.transition("reset"):e==="ready"&&this.animationState.transition("skip")}processData(){let{childrenKey:e,sizeKey:t,colorKey:n,colorRange:a}=this.properties,h=0,S=()=>(h+=1,h),E=0,L=1/0,_=-1/0,N=(J,re,ce)=>{let he=S(),me=ce.depth!=null?ce.depth+1:0,we=e!=null?J[e]:void 0,Me=we==null||we.length===0,be=t!=null?J[t]:void 0;Number.isFinite(be)?be=Math.max(be,0):be=Me?1:0;let Le=be;E=Math.max(E,me);let Fe=n!=null?J[n]:void 0;return typeof Fe=="number"&&(L=Math.min(L,Fe),_=Math.max(_,Fe)),V(new bR(this,he,re!=null?re:0,J,be,Fe,Le,me,ce,[]),re,we)},V=(J,re,ce)=>(ce==null||ce.forEach((he,me)=>{let we=N(he,re!=null?re:me,J);J.children.push(we),J.sumSize+=we.sumSize}),J),q=V(new bR(this,0,0,void 0,0,void 0,0,void 0,void 0,[]),void 0,this.data),Y=[L,_];this.colorScale.domain=L<_?[L,_]:[0,1],this.colorScale.range=a!=null?a:["black"],this.colorScale.update(),this.rootNode=q,this.maxDepth=E,this.colorDomain=Y,this.focusPath=[{nodeDatum:this.rootNode,childIndex:0}]}update({seriesRect:e}){this.updateSelections(),this.updateNodes();let t=this.getAnimationData();this.checkResize(e)&&this.animationState.transition("resize",t),this.animationState.transition("update",t)}resetAllAnimation(e){var n;let t=(n=this.animationResetFns)==null?void 0:n.datum;this.ctx.animationManager.stopByAnimationGroupId(this.id),t!=null&&Eo(e.datumSelections,t)}animateEmptyUpdateReady(e){this.ctx.animationManager.skipCurrentBatch(),this.resetAllAnimation(e)}animateWaitingUpdateReady(e){this.ctx.animationManager.skipCurrentBatch(),this.resetAllAnimation(e)}animateReadyHighlight(e){var n;let t=(n=this.animationResetFns)==null?void 0:n.datum;t!=null&&Eo([e],t)}animateReadyResize(e){this.resetAllAnimation(e)}animateClearingUpdateEmpty(e){this.ctx.animationManager.skipCurrentBatch(),this.resetAllAnimation(e)}isProcessedDataAnimatable(){return!0}checkProcessedDataAnimatable(){this.isProcessedDataAnimatable()||this.ctx.animationManager.skipCurrentBatch()}getSeriesDomain(){return[NaN,NaN]}getSeriesRange(e,t){return[NaN,NaN]}getLegendData(e){let{colorKey:t,colorName:n,colorRange:a}=this.properties,{id:h,ctx:{legendManager:S},visible:E}=this;return e==="gradient"&&t!=null&&a!=null?[{legendType:"gradient",enabled:E&&S.getItemEnabled({seriesId:h}),seriesId:h,colorName:n,colorRange:a,colorDomain:this.colorDomain}]:[]}getDatumIdFromData(e){return`${e.index}`}getDatumId(e){return this.getDatumIdFromData(e)}pickFocus(e){var S,E;if(this.rootNode.children.length===0)return;this.focusPath.length===0&&Di.error("this.focusPath should not be empty");let{datumIndexDelta:t,otherIndexDelta:n}=e,{focusPath:a}=this,h=a.length-2;if(n!==0||a.length===1){let L=Math.max(0,h+n);if(a[L+1]==null){let _=a[a.length-1];for(;_.nodeDatum.children.length>0&&((S=_.nodeDatum.depth)!=null?S:-1)<L;){let N={nodeDatum:_.nodeDatum.children[0],childIndex:0};a.push(N),_=N}return this.computeFocusOutputs(_)}else return a.length=L+2,this.computeFocusOutputs(a[L+1])}else{if(t===0)return this.computeFocusOutputs(a[a.length-1]);{let L=a[h+1].childIndex+t,_=a[h].nodeDatum,N=(E=_==null?void 0:_.children)==null?void 0:E.length;if(N!=null){let V=Gn(0,L,N-1),q={nodeDatum:_.children[V],childIndex:V};return a[h+1]=q,a.length=h+2,this.computeFocusOutputs(q)}}}}getDatumAriaText(e,t){var n;if(!(e instanceof bR)){Di.error(`datum is not HierarchyNode: ${JSON.stringify(e)}`);return}return this.ctx.localeManager.t("ariaAnnounceHierarchyDatum",{level:((n=e.depth)!=null?n:-1)+1,count:e.children.length,description:t})}computeFocusOutputs({nodeDatum:e,childIndex:t}){let n=this.computeFocusBounds(e);if(n)return{datum:e,datumIndex:t,otherIndex:e.depth,bounds:n,showFocusBox:!0,clipFocusBox:!0}}}}}),vw,rJ=M({"packages/ag-charts-community/src/chart/series/hierarchy/hierarchySeriesProperties.ts"(){"use strict";Ki(),$L(),ua(),vw=class extends Tl{constructor(){super(...arguments),this.childrenKey="children",this.fills=Object.values(gc),this.strokes=Object.values(hy)}},f([$e(hi)],vw.prototype,"childrenKey",2),f([$e(hi,{optional:!0})],vw.prototype,"sizeKey",2),f([$e(hi,{optional:!0})],vw.prototype,"colorKey",2),f([$e(hi,{optional:!0})],vw.prototype,"colorName",2),f([$e(Hs)],vw.prototype,"fills",2),f([$e(Hs)],vw.prototype,"strokes",2),f([$e(Hs,{optional:!0})],vw.prototype,"colorRange",2)}}),sJ=M({"packages/ag-charts-community/src/chart/series/topologySeries.ts"(){"use strict"}}),lJ=M({"packages/ag-charts-community/src/chart/series/flowProportionSeries.ts"(){"use strict"}}),cJ=M({"packages/ag-charts-community/src/chart/series/topology/geojson.ts"(){"use strict"}}),J6,dJ=M({"packages/ag-charts-community/src/chart/series/topology/lonLatBbox.ts"(){"use strict";J6=class{constructor(e,t,n,a){this.lon0=e,this.lat0=t,this.lon1=n,this.lat1=a}merge(e){this.lon0=Math.min(this.lon0,e.lon0),this.lat0=Math.min(this.lat0,e.lat0),this.lon1=Math.max(this.lon1,e.lon1),this.lat1=Math.max(this.lat1,e.lat1)}}}}),uJ=M({"packages/ag-charts-community/src/chart/series/gaugeSeries.ts"(){"use strict"}}),L_,eH,hJ=M({"packages/ag-charts-community/src/chart/axis/axisTicks.ts"(){"use strict";Zp(),jn(),$o(),as(),Pc(),Rh(),Ac(),zn(),pD(),cd(),wu(),Wm(),H0(),Mp(),L_=class hV{constructor(){this.id=dl(this),this.axisGroup=new qa({name:`${this.id}-AxisTicks`,zIndex:2}),this.labelSelection=Er.select(this.axisGroup,or),this.interval=new Km,this.label=new Go,this.scale=new Sd,this.position="bottom",this.translationX=0,this.translationY=0,this.padding=0}attachAxis(t){t.appendChild(this.axisGroup)}calculateLayout(){this.scale.interval=this.interval.step;let t=[],n=this.generateTicks(),{translationX:a,translationY:h}=this;return this.labelSelection.update(n.ticks.map(S=>this.createLabelDatum(S)),void 0,S=>S.tickId),this.labelSelection.each((S,E)=>{S.setProperties(E),E.visible&&t.push(S.getBBox())}),this.axisGroup.setProperties({translationX:a,translationY:h}),Ui.merge(t)}getLabelParams(t){let{padding:n}=this,{translate:a}=t;switch(this.position){case"top":case"bottom":return{x:a,y:n,textAlign:"center",textBaseline:"top"};case"left":case"right":return{x:n,y:a,textAlign:"start",textBaseline:"middle"}}}inRange(t,n=.001){let[a,h]=zs(this.scale.range);return t>=a-n&&t<=h+n}createLabelDatum(t){let{x:n,y:a,textBaseline:h,textAlign:S}=this.getLabelParams(t);return{visible:!!t.tickLabel,tickId:t.tickId,fill:this.label.color,fontFamily:this.label.fontFamily,fontSize:this.label.fontSize,fontStyle:this.label.fontStyle,fontWeight:this.label.fontWeight,rotation:0,rotationCenterX:0,text:t.tickLabel,textAlign:S,textBaseline:h,x:n,y:a}}generateTicks(){let{minSpacing:t,maxSpacing:n}=this.interval,a=Fa(Cm(this.scale.range),2),{maxTickCount:h,minTickCount:S,tickCount:E}=y0(a,t,n,hV.DefaultTickCount,hV.DefaultMinSpacing);E&&(this.scale.tickCount=E,this.scale.minTickCount=S,this.scale.maxTickCount=h);let L=this.getTicksData();if(this.position==="bottom"||this.position==="top"){let _=ug.getMeasurer({font:this.label}),N=this.scale.getDomain(),q=N[0]>N[1]?-1:1,Y=-1/0*q;L.ticks=L.ticks.filter(J=>Math.sign(J.translate-Y)!==q?!1:(Y=J.translate+_.textWidth(J.tickLabel,!0)*q,!0))}return L}getTicksData(){var E,L,_;let t=[],n=this.scale.ticks(),a=n.reduce((N,V)=>Math.max(N,nx(V)),0),h=Ux(),S=this.label.format?this.scale.tickFormat({ticks:n,specifier:this.label.format}):N=>qs(N,a);for(let N=0;N<n.length;N++){let V=n[N],q=this.scale.convert(V);if(!this.inRange(q))continue;let Y=(_=(L=(E=this.label).formatter)==null?void 0:L.call(E,{value:V,index:N,fractionDigits:a}))!=null?_:S(V),J=h(Y);t.push({tick:V,tickId:J,tickLabel:Y,translate:q})}return{rawTicks:n,fractionDigits:a,ticks:t}}},L_.DefaultTickCount=5,L_.DefaultMinSpacing=50,eH=L_}}),gJ=M({"packages/ag-charts-community/src/chart/chartAxis.ts"(){"use strict"}}),tH,pJ=M({"packages/ag-charts-community/src/chart/legend/legendDatum.ts"(){"use strict";tH=0}});function mJ(e,t){let n=va("button",O_("ag-charts-input ag-charts-button",t));return e.label!==void 0?n.append(e.label):(n.append(iH(e.icon)),n.ariaLabel=e.altText),n.addEventListener("click",e.onPress),bg(n,t),n}function fJ(e,t){let n=va("input",O_("ag-charts-input ag-charts-checkbox",t));return n.type="checkbox",n.checked=e.checked,n.addEventListener("change",a=>e.onChange(n.checked,a)),n.addEventListener("keydown",a=>{Qs(a)&&(a.preventDefault(),n.click())}),bg(n,t),n}function vJ(e,t){let n=va("select",O_("ag-charts-input ag-charts-select",t));return n.append(...e.options.map(a=>{let h=va("option");return h.value=a.value,h.textContent=a.label,h})),yo(n,"data-preventdefault",!1),n.value=e.value,n.addEventListener("change",a=>e.onChange(n.value,a)),bg(n,t),n}function yJ(e,t){let n=va("textarea",O_("ag-charts-input ag-charts-textarea",t));return n.value=e.value,n.addEventListener("input",a=>e.onChange(n.value,a)),bg(n,t),n}function iH(e){let t=va("span",`ag-charts-icon ag-charts-icon-${e}`);return yo(t,"aria-hidden",!0),t}function O_(e,t){return t==null?e:`${e} ${t.class}`}var bJ=M({"packages/ag-charts-community/src/dom/elements.ts"(){"use strict";Ur(),oa(),Ep()}}),CJ=M({"packages/ag-charts-community/src/scale/scale.ts"(){"use strict"}}),nH,SJ=M({"packages/ag-charts-community/src/scene/gradient/conicGradient.ts"(){"use strict";br(),Gm(),nH=class extends Bd{constructor(e,t,n=0,a){super(e,t,a),this.angle=n}createCanvasGradient(e,t){let{angle:a}=this,h=da(za(a+90)),S=t.x+t.width*.5,E=t.y+t.height*.5;return e.createConicGradient(h,S,E)}}}}),__,wJ=M({"packages/ag-charts-community/src/scene/shape/svgPath.ts"(){"use strict";lc(),__=class extends qr{constructor(e=""){super(),this.x=0,this.y=0,this.commands=[],this._d="",this.d=e}get d(){return this._d}set d(e){if(e!==this._d){this._d=e,this.commands.length=0;for(let[t,n,a]of e.matchAll(/([A-Z])([0-9. ]*)/g)){let h=a.split(/\s+/g).map(Number);this.commands.push([n,h])}this.checkPathDirty()}}updatePath(){let{path:e,x:t,y:n}=this;e.clear();let a=t,h=n;for(let[S,E]of this.commands)switch(S){case"M":e.moveTo(t+E[0],n+E[1]),a=t+E[0];break;case"C":e.cubicCurveTo(t+E[0],n+E[1],t+E[2],n+E[3],t+E[4],n+E[5]),a=t+E[4],h=n+E[5];break;case"H":e.lineTo(t+E[0],h),a=n+E[0];break;case"L":e.lineTo(t+E[0],n+E[1]),a=t+E[0],h=n+E[1];break;case"V":e.lineTo(a,n+E[0]),h=n+E[0];break;case"Z":e.closePath();break;default:throw new Error(`Could not translate command '${S}' with '${E.join(" ")}'`)}e.closePath()}},f([mn()],__.prototype,"x",2),f([mn()],__.prototype,"y",2)}}),F_,j3,aH=M({"packages/ag-charts-community/src/chart/marker/arrowUp.ts"(){"use strict";El(),F_=class zZ extends cc{updatePath(){let t=this.size/2;super.applyPath(t,zZ.moves)}},F_.className="ArrowUp",F_.moves=[{x:0,y:0,t:"move"},{x:1,y:1.2},{x:-.5,y:0},{x:0,y:.8},{x:-1,y:0},{x:0,y:-.8},{x:-.5,y:0}],j3=F_}}),V3,xJ=M({"packages/ag-charts-community/src/chart/marker/arrowDown.ts"(){"use strict";aH(),El(),V3=class extends cc{updatePath(){let e=this.size/2;super.applyPath(e,j3.moves.map(t=>({x:t.x*-1,y:t.y*-1})))}},V3.className="ArrowDown"}}),oH={};A(oH,{ButtonWidget:()=>Pu,NativeWidget:()=>Tp,SliderWidget:()=>oS,ToolbarWidget:()=>rS,WIDGET_HTML_EVENTS:()=>Rb,Widget:()=>Ru,WidgetEventUtil:()=>zv});var rH=M({"packages/ag-charts-community/src/widget/exports.ts"(){"use strict";Zm(),Pb(),Ob(),Wd(),nS(),wM()}}),H3,N_,W3=M({"packages/ag-charts-community/src/components/popover/popover.ts"(){"use strict";Lh(),oa(),Ep(),H3="canvas-overlay",N_=class extends q0{constructor(e,t,n){super(),this.ctx=e,this.hideFns=[],this.moduleId=`popover-${t}`,n!=null&&n.detached?this.element=va("div"):this.element=e.domManager.addChild(H3,this.moduleId),this.element.setAttribute("role","presentation"),this.destroyFns.push(()=>e.domManager.removeChild(H3,this.moduleId))}attachTo(e){this.element.parentElement||e.element.append(this.element)}hide(e){let{lastFocus:t=this.lastFocus}=e!=null?e:{};this.element.children.length!==0&&(this.hideFns.forEach(n=>n()),t==null||t.focus(),this.lastFocus=void 0)}removeChildren(){this.element.replaceChildren()}showWithChildren(e,t){if(!this.element.parentElement)throw new Error("Can not show popover that has not been attached to a parent.");let n=va("div","ag-charts-popover");if(t.ariaLabel!=null&&n.setAttribute("aria-label",t.ariaLabel),t.class!=null&&n.classList.add(t.class),n.replaceChildren(...e),this.element.replaceChildren(n),this.hideFns.push(()=>this.removeChildren()),t.onHide&&this.hideFns.push(t.onHide),t.initialFocus&&t.sourceEvent){let a=Cg(t.sourceEvent);a!==void 0&&(this.lastFocus=a,this.initialFocus=t.initialFocus)}return n}getPopoverElement(){return this.element.firstElementChild}updatePosition(e){var n;let t=this.getPopoverElement();t&&(t.style.setProperty("right","unset"),t.style.setProperty("bottom","unset"),e.x!=null&&t.style.setProperty("left",`${Math.floor(e.x)}px`),e.y!=null&&t.style.setProperty("top",`${Math.floor(e.y)}px`),(n=this.initialFocus)==null||n.focus(),this.initialFocus=void 0)}}}}),U3,sH=M({"packages/ag-charts-community/src/components/popover/anchoredPopover.ts"(){"use strict";oa(),zn(),W3(),U3=class extends N_{setAnchor(e,t){this.anchor=e,this.fallbackAnchor=t,this.updatePosition(e),this.repositionWithinBounds()}showWithChildren(e,t){var S,E;let n=(S=t.anchor)!=null?S:this.anchor,a=(E=t.fallbackAnchor)!=null?E:this.fallbackAnchor,h=super.showWithChildren(e,t);return n&&this.setAnchor(n,a),Da().requestAnimationFrame(()=>{this.repositionWithinBounds()}),h}repositionWithinBounds(){let{anchor:e,ctx:t,fallbackAnchor:n}=this,a=this.getPopoverElement();if(!e||!a)return;let h=t.domManager.getBoundingClientRect(),{offsetWidth:S,offsetHeight:E}=a,L=Gn(0,e.x,h.width-S),_=Gn(0,e.y,h.height-E);L!==e.x&&(n==null?void 0:n.x)!=null&&(L=Gn(0,n.x-S,h.width-S)),_!==e.y&&(n==null?void 0:n.y)!=null&&(_=Gn(0,n.y-E,h.height-E)),this.updatePosition({x:L,y:_})}}}}),lH,MJ=M({"packages/ag-charts-community/src/components/menu/menu.ts"(){"use strict";oa(),Ep(),sH(),lH=class extends U3{show(e){let t=e.items.map(a=>this.createRow(e,a)),n=this.showWithChildren(t,e);n.classList.add("ag-charts-menu"),n.setAttribute("role","menu"),this.menuCloser=lT({orientation:"vertical",menu:n,buttons:t,sourceEvent:e.sourceEvent,closeCallback:()=>this.hide()}),this.hideFns.push(()=>{var a;(a=this.menuCloser)==null||a.finishClosing(),this.menuCloser=void 0})}createRow(e,t){let{menuItemRole:n="menuitem"}=e,a=t.value===e.value,h=va("div","ag-charts-menu__row");if(h.setAttribute("role",n),n==="menuitemradio"&&h.setAttribute("aria-checked",(e.value===t.value).toString()),typeof t.value=="string"&&(h.dataset.popoverId=t.value),h.classList.toggle("ag-charts-menu__row--active",a),t.icon!=null){let _=va("span",`ag-charts-menu__icon ${ub(t.icon)}`);h.appendChild(_)}let S=t.strokeWidth!=null;if(S&&(h.classList.toggle("ag-charts-menu__row--stroke-width-visible",S),h.style.setProperty("--strokeWidth",S?`${t.strokeWidth}px`:null)),t.label!=null){let _=va("span","ag-charts-menu__label");_.textContent=this.ctx.localeManager.t(t.label),h.appendChild(_)}"altText"in t&&(h.ariaLabel=this.ctx.localeManager.t(t.altText));let E=()=>{var _;(_=e.onPress)==null||_.call(e,t)},L=_=>{Qs(_)&&(E(),_.preventDefault(),_.stopPropagation())};return h.addEventListener("keydown",L),h.addEventListener("click",L),h.addEventListener("mousemove",()=>{h.focus({preventScroll:!0})}),h}}}}),K3,cH=M({"packages/ag-charts-community/src/components/popover/draggablePopover.ts"(){"use strict";$6(),W3(),K3=class extends N_{constructor(){super(...arguments),this.dragged=!1}setDragHandle(e){e.addListener("drag-start",t=>{e.addClass(this.dragHandleDraggingClass),this.onDragStart(t)}),e.addListener("drag-move",this.onDragMove.bind(this)),e.addListener("drag-end",()=>{e.removeClass(this.dragHandleDraggingClass),this.onDragEnd.bind(this)})}onDragStart(e){let t=this.getPopoverElement();t&&(e.sourceEvent.preventDefault(),this.dragged=!0,this.dragStartState={client:dE.from(e.clientX,e.clientY),position:dE.from(Number(t.style.getPropertyValue("left").replace("px","")),Number(t.style.getPropertyValue("top").replace("px","")))})}onDragMove(e){let{dragStartState:t}=this,n=this.getPopoverElement();if(!t||!n)return;let a=dE.sub(dE.from(e.clientX,e.clientY),t.client),h=dE.add(t.position,a),S=this.ctx.domManager.getBoundingClientRect(),E={};h.x>=S.x&&h.x+n.offsetWidth<=S.width&&(E.x=h.x),h.y>=S.y&&h.y+n.offsetHeight<=S.height&&(E.y=h.y),this.updatePosition(E)}onDragEnd(){this.dragStartState=void 0}}}}),CR,kJ=M({"packages/ag-charts-community/src/components/toolbar/toolbarButtonProperties.ts"(){"use strict";ga(),Ki(),CR=class extends _n{},f([$e(hi,{optional:!0})],CR.prototype,"icon",2),f([$e(hi,{optional:!0})],CR.prototype,"label",2),f([$e(hi,{optional:!0})],CR.prototype,"ariaLabel",2),f([$e(hi,{optional:!0})],CR.prototype,"tooltip",2)}}),q3,dH=M({"packages/ag-charts-community/src/components/toolbar/toolbarButtonWidget.ts"(){"use strict";Ur(),oa(),nS(),q3=class extends Pu{constructor(e){super(),this.localeManager=e}update(e){let{localeManager:t}=this;e.tooltip&&(this.elem.title=t.t(e.tooltip));let n="";if(e.icon!=null&&(n=`<span class="${ub(e.icon)} ag-charts-toolbar__icon"></span>`),e.label!=null){let a=t.t(e.label);n=`${n}<span class="ag-charts-toolbar__label">${a}</span>`}this.elem.innerHTML=n}setChecked(e){yo(this.elem,"aria-checked",e)}}}}),Y3,z_,uH,hH=M({"packages/ag-charts-community/src/components/toolbar/toolbar.ts"(){"use strict";jn(),yg(),ga(),Wd(),dH(),Y3="ag-charts-toolbar__button--active",z_=class extends rS{constructor(e,t="horizontal"){super(t),this.localeManager=e,this.horizontalSpacing=10,this.verticalSpacing=10,this.events=new _h,this.hasPrefix=!1,this.buttonWidgets=[],this.addClass("ag-charts-toolbar"),this.toggleClass("ag-charts-toolbar--horizontal",t==="horizontal"),this.toggleClass("ag-charts-toolbar--vertical",t==="vertical")}addToolbarListener(e,t){return this.events.addListener(e,t)}clearButtons(){for(let e of this.buttonWidgets)e.destroy();this.buttonWidgets.splice(0)}updateButtons(e){var n;let{buttonWidgets:t}=this;for(let[a,h]of e.entries())((n=this.buttonWidgets.at(a))!=null?n:this.createButton(a,h)).update(h);for(let a=e.length;a<t.length;a++){let h=this.buttonWidgets.at(a);h==null||h.destroy()}this.buttonWidgets.splice(e.length),this.refreshButtonClasses()}updateButtonByIndex(e,t){var n;(n=this.buttonWidgets.at(e))==null||n.update(t)}clearActiveButton(){for(let e of this.buttonWidgets)e.toggleClass(Y3,!1)}toggleActiveButtonByIndex(e){if(e!==-1)for(let[t,n]of this.buttonWidgets.entries())n.toggleClass(Y3,e!=null&&e===t)}toggleButtonEnabledByIndex(e,t){var n;e!==-1&&((n=this.buttonWidgets.at(e))==null||n.setEnabled(t))}toggleSwitchCheckedByIndex(e,t){var n;e!==-1&&((n=this.buttonWidgets.at(e))==null||n.setChecked(t))}getButtonBounds(){return this.buttonWidgets.map(e=>this.getButtonWidgetBounds(e))}setButtonHiddenByIndex(e,t){var n;(n=this.buttonWidgets.at(e))==null||n.setHidden(t)}getButtonWidgetBounds(e){let t=this.getBounds(),n=e.getBounds();return new Ui(n.x+t.x,n.y+t.y,n.width,n.height)}refreshButtonClasses(){var S;let{buttonWidgets:e,hasPrefix:t}=this,n,a,h;for(let[E,L]of e.entries())n=!t&&E===0||h!=L.section,a=E===e.length-1||L.section!=((S=e.at(E+1))==null?void 0:S.section),L.toggleClass("ag-charts-toolbar__button--first",n),L.toggleClass("ag-charts-toolbar__button--last",a),L.toggleClass("ag-charts-toolbar__button--gap",E>0&&n),h=L.section}createButton(e,t){let n=this.createButtonWidget();return n.addClass("ag-charts-toolbar__button"),n.addListener("click",a=>{let h=pe({index:e},t instanceof _n?t.toJson():t),S=this.getButtonWidgetBounds(n);this.events.dispatch("button-pressed",{event:a,button:h,buttonBounds:S})}),n.addListener("focus",()=>{this.events.dispatch("button-focused",{button:{index:e}})}),t.section&&(n.section=t.section),this.buttonWidgets.push(n),this.addChild(n),n}},uH=class extends z_{createButtonWidget(){return new q3(this.localeManager)}}}}),gH,pH,mH,AJ=M({"packages/ag-charts-community/src/components/toolbar/floatingToolbar.ts"(){"use strict";jn(),oa(),zn(),Ob(),cH(),hH(),gH=class extends K3{constructor(e,t,n){super(e,t),this.onPopoverMoved=n,this.dragHandleDraggingClass="ag-charts-floating-toolbar__drag-handle--dragging"}show(e,t){this.showWithChildren(e,et(pe({},t),{class:"ag-charts-floating-toolbar"}))}hide(){this.dragged=!1,super.hide()}getBounds(){var t,n,a,h;let e=this.getPopoverElement();return new Ui((t=e==null?void 0:e.offsetLeft)!=null?t:0,(n=e==null?void 0:e.offsetTop)!=null?n:0,(a=e==null?void 0:e.offsetWidth)!=null?a:0,(h=e==null?void 0:e.offsetHeight)!=null?h:0)}hasBeenDragged(){return this.dragged}setAnchor(e,t,n){var N;let a=this.getPopoverElement();if(!a)return;let h=(N=e.position)!=null?N:"above",{offsetWidth:S,offsetHeight:E}=a,L=e.y-E-n,_=e.x-S/2;h==="below"?L=e.y+n:h==="right"?(L=e.y-E/2,_=e.x+t):h==="above-left"&&(_=e.x),this.updatePosition({x:_,y:L})}ignorePointerEvents(){let e=this.getPopoverElement();e&&(e.style.pointerEvents="none")}capturePointerEvents(){let e=this.getPopoverElement();e&&(e.style.pointerEvents="unset")}updatePosition(e){let t=this.getBounds(),n=this.ctx.domManager.getBoundingClientRect();e.x=Math.floor(Gn(0,e.x,n.width-t.width)),e.y=Math.floor(Gn(0,e.y,n.height-t.height)),super.updatePosition(e),this.onPopoverMoved()}},pH=class extends z_{constructor(e,t){super(e.localeManager),this.hasPrefix=!0,this.popover=new gH(e,t,this.onPopoverMoved.bind(this)),this.dragHandle=new mH(e.localeManager.t("toolbarAnnotationsDragHandle")),this.popover.setDragHandle(this.dragHandle)}show(e){this.popover.show([this.dragHandle.getElement(),this.getElement()],e)}hide(){this.popover.hide()}setAnchor(e){this.popover.setAnchor(e,this.horizontalSpacing,this.verticalSpacing)}hasBeenDragged(){return this.popover.hasBeenDragged()}ignorePointerEvents(){this.popover.ignorePointerEvents()}capturePointerEvents(){this.popover.capturePointerEvents()}onPopoverMoved(){var n;let e=this.popover.getBounds();if((n=this.popoverBounds)!=null&&n.equals(e))return;this.popoverBounds=e.clone();let t=this.getButtonBounds();this.events.dispatch("toolbar-moved",{popoverBounds:e,buttonBounds:t})}getButtonWidgetBounds(e){let t=this.popover.getBounds(),n=super.getButtonWidgetBounds(e),a=this.dragHandle.getBounds();return new Ui(n.x+t.x-a.width,n.y+t.y,n.width,n.height)}},mH=class extends Tp{constructor(e){super(va("div","ag-charts-floating-toolbar__drag-handle"));let t=new Tp(va("span",`${ub("drag-handle")} ag-charts-toolbar__icon`));t.setAriaHidden(!0),this.addChild(t),this.elem.title=e}}}}),fH={};A(fH,{AND:()=>bl,ARRAY:()=>kh,ARRAY_OF:()=>Od,AbstractBarSeries:()=>t3,AbstractBarSeriesProperties:()=>UO,ActionOnSet:()=>Ys,AnchoredPopover:()=>U3,Animation:()=>sx,AnimationManager:()=>af,Arc:()=>Nf,ArrowDown:()=>V3,ArrowUp:()=>j3,Axis:()=>kp,AxisInterval:()=>Km,AxisLabel:()=>Go,AxisTick:()=>Dv,AxisTicks:()=>eH,BBox:()=>Ui,BBoxValues:()=>ul,BOOLEAN:()=>Ji,BOOLEAN_ARRAY:()=>MI,Background:()=>zg,BackgroundModule:()=>ay,BandScale:()=>dr,BarSeries:()=>YL,BarSeriesModule:()=>l3,BaseModuleInstance:()=>q0,BaseProperties:()=>_n,BaseToolbar:()=>z_,ButtonWidget:()=>Pu,COLOR_STRING:()=>Ra,COLOR_STRING_ARRAY:()=>Hs,CachedTextMeasurer:()=>Fx,CachedTextMeasurerPool:()=>ug,Caption:()=>vo,CartesianAxis:()=>Ap,CartesianSeries:()=>qp,CartesianSeriesNodeEvent:()=>aC,CartesianSeriesProperties:()=>Bu,CategoryAxis:()=>Iv,ChangeDetectableProperties:()=>iE,ChartAxisDirection:()=>g0,ChartEventManager:()=>$D,ChartOptions:()=>T3,ChartUpdateType:()=>Dg,Circle:()=>Vp,CollapseMode:()=>vn,Color:()=>Dr,ColorScale:()=>Au,ConicGradient:()=>nH,ContextMenuRegistry:()=>RM,ContinuousScale:()=>go,Cursor:()=>rf,CursorManager:()=>sf,DATE:()=>ql,DATE_ARRAY:()=>kI,DATE_OR_DATETIME_MS:()=>Yl,DEFAULT_CARTESIAN_DIRECTION_KEYS:()=>bd,DEFAULT_CARTESIAN_DIRECTION_NAMES:()=>Ng,DEFAULT_TOOLTIP_CLASS:()=>el,DEFAULT_TOOLTIP_DARK_CLASS:()=>D1,DIRECTION:()=>Ss,DOMManager:()=>vM,DataController:()=>qb,DataModel:()=>Hv,DataModelSeries:()=>Pr,DataService:()=>kl,Debug:()=>Pa,Default:()=>Um,Deprecated:()=>IQ,DeprecatedAndRenamedTo:()=>TQ,Diamond:()=>dk,DraggablePopover:()=>K3,DropShadow:()=>Uu,ExtendedPath2D:()=>Zv,FONT_STYLE:()=>id,FONT_WEIGHT:()=>nd,FUNCTION:()=>Kl,FloatingToolbar:()=>pH,GREATER_THAN:()=>po,GestureDetector:()=>qd,Gradient:()=>Bd,Group:()=>hn,GroupedCategoryAxis:()=>Va,HdpiCanvas:()=>xg,HierarchyNode:()=>bR,HierarchySeries:()=>Q6,HierarchySeriesProperties:()=>vw,HighlightManager:()=>mS,HighlightProperties:()=>Up,HighlightStyle:()=>Df,INTERACTION_RANGE:()=>Pm,INTERPOLATION_STEP_POSITION:()=>c,INTERPOLATION_TYPE:()=>l,Image:()=>iu,InteractionManager:()=>nf,InteractionState:()=>wl,InterpolationProperties:()=>y,Invalidating:()=>es,KeyNavManager:()=>PM,LABEL_PLACEMENT:()=>Ah,LARGEST_KEY_INTERVAL:()=>De,LESS_THAN:()=>dv,LINE_CAP:()=>AI,LINE_DASH:()=>_d,LINE_JOIN:()=>DI,LINE_STYLE:()=>EI,Label:()=>Hr,LayoutElement:()=>rM,LayoutManager:()=>Oh,LegendMarkerLabel:()=>_r,Line:()=>Ks,LineSeries:()=>XL,LineSeriesModule:()=>u3,LinearGradient:()=>Cp,LinearScale:()=>Sd,Listeners:()=>_h,Logger:()=>Di,LonLatBBox:()=>J6,MARKER_SHAPE:()=>FL,MATCHING_CROSSLINE_TYPE:()=>O0,MAX_SPACING:()=>tb,MIN_SPACING:()=>Lm,Marker:()=>cc,Menu:()=>lH,MercatorScale:()=>S_,ModuleRegistry:()=>TD,Motion:()=>Sa,NAN:()=>Cu,NODE_UPDATE_STATE_TO_PHASE_MAPPING:()=>pl,NUMBER:()=>pa,NUMBER_ARRAY:()=>Qy,NUMBER_OR_NAN:()=>ns,NativeWidget:()=>Tp,Node:()=>Hl,OBJECT:()=>Yi,OBJECT_ARRAY:()=>Mx,OR:()=>Mh,OVERFLOW_STRATEGY:()=>kx,ObserveChanges:()=>wv,OrdinalTimeScale:()=>Rc,PHASE_METADATA:()=>wa,PHASE_ORDER:()=>ng,PLACEMENT:()=>h0,PLAIN_OBJECT:()=>u0,POINTER_INTERACTION_TYPES:()=>EM,POSITION:()=>Jy,POSITION_TOP_COORDINATES:()=>bb,POSITIVE_NUMBER:()=>mi,PREV_NEXT_KEYS:()=>Sg,Padding:()=>Wr,ParallelStateMachine:()=>Wx,Path:()=>qr,PointerEvents:()=>_A,PolarAxis:()=>Hk,PolarSeries:()=>JL,PolarZIndexMap:()=>b3,Popover:()=>N_,PropertiesArray:()=>rg,ProxyInteractionService:()=>GD,ProxyOnWrite:()=>WP,ProxyProperty:()=>Ir,ProxyPropertyOnWrite:()=>ws,QUICK_TRANSITION:()=>hp,RATIO:()=>Wn,REAL_NUMBER:()=>sg,RENDER_TO_OFFSCREEN_CANVAS_THRESHOLD:()=>Kp,RadialColumnShape:()=>sm,Range:()=>_c,Rect:()=>Co,RegionManager:()=>kg,RepeatType:()=>o0,Rotatable:()=>Mu,RotatableGroup:()=>x0,RotatableText:()=>Vm,SKIP_JS_BUILTINS:()=>i0,SMALLEST_KEY_INTERVAL:()=>ue,SORT_DOMAIN_GROUPS:()=>_e,STRING:()=>hi,STRING_ARRAY:()=>YA,Scalable:()=>zd,ScalableGroup:()=>RI,Scene:()=>Gv,SceneChangeDetection:()=>Hi,ScenePathChangeDetection:()=>mn,Sector:()=>Uc,SectorBox:()=>g3,Selection:()=>Er,Series:()=>Cf,SeriesContentZIndexMap:()=>ES,SeriesGroupingChangedEvent:()=>Gc,SeriesItemHighlightStyle:()=>jh,SeriesMarker:()=>ou,SeriesNodeEvent:()=>Tr,SeriesNodePickMode:()=>TS,SeriesProperties:()=>Tl,SeriesTooltip:()=>Wc,SeriesZIndexMap:()=>JM,Shape:()=>Us,SimpleTextMeasurer:()=>jm,SliderWidget:()=>oS,Square:()=>FS,StateMachine:()=>Sp,StateMachineProperty:()=>VI,SvgPath:()=>__,TEXT_ALIGN:()=>eb,TEXT_WRAP:()=>uv,TICK_INTERVAL:()=>V0,Text:()=>or,TextUtils:()=>Bo,TextWrapper:()=>Mv,ThemeConstants:()=>jO,ThemeSymbols:()=>N1,TimeScale:()=>mv,Toolbar:()=>uH,ToolbarButtonProperties:()=>CR,ToolbarButtonWidget:()=>q3,ToolbarWidget:()=>rS,Tooltip:()=>zu,TooltipManager:()=>vS,TooltipPosition:()=>Jv,Transformable:()=>vr,TransformableText:()=>Du,Translatable:()=>cg,TranslatableGroup:()=>qa,Triangle:()=>xf,UNION:()=>zo,UpdateService:()=>nc,VERTICAL_ALIGN:()=>ad,Validate:()=>$e,Vec2:()=>dE,Vec4:()=>yS,WIDGET_HTML_EVENTS:()=>Rb,Widget:()=>Ru,WidgetEventUtil:()=>zv,ZIndexMap:()=>SD,ZoomManager:()=>GM,__FORCE_MODULE_DETECTION:()=>tH,accumulateGroup:()=>i,accumulateStack:()=>C,accumulatedValue:()=>oC,accumulativeValueProperty:()=>Pl,addHitTestersToQuadtree:()=>Qz,adjustLabelPlacement:()=>IV,angleBetween:()=>gb,angleDiff:()=>GP,animationValidation:()=>rC,areScalingEqual:()=>xo,area:()=>XS,arraysEqual:()=>bh,backfillPathPointData:()=>JZ,buildFormatter:()=>Aa,buildResetPathFn:()=>Zz,calculateDefaultTimeTickFormat:()=>wx,calculateDerivativeExtrema:()=>PS,calculateDerivativeExtremaXY:()=>BT,calculateLabelChartPadding:()=>bD,calculateLabelTranslation:()=>Yx,calculatePlacement:()=>lk,checkCrisp:()=>DV,circularSliceArray:()=>ov,clamp:()=>Gn,clampArray:()=>hh,clippedRoundRect:()=>cC,clockwiseAngle:()=>lD,clockwiseAngles:()=>ld,collapsedStartingBarPosition:()=>UL,compareDates:()=>aD,computeBarFocusBounds:()=>n3,computeMarkerFocusBounds:()=>VL,countFractionDigits:()=>nx,createButton:()=>mJ,createCheckbox:()=>fJ,createDatumId:()=>ie,createDeprecationWarning:()=>F3,createElement:()=>va,createElementId:()=>LI,createElementNS:()=>vp,createIcon:()=>iH,createId:()=>dl,createSelect:()=>vJ,createTextArea:()=>yJ,dateToNumber:()=>is,datesSortOrder:()=>Ex,datumKeys:()=>Xd,datumStylerProperties:()=>Hp,debounce:()=>yh,deconstructSelectionsOrNodes:()=>ig,deepClone:()=>Sl,deepFreeze:()=>Vy,deepMerge:()=>Gy,defaultTimeTickFormat:()=>Xy,diff:()=>$,displacePointFromVector:()=>FI,doOnce:()=>vu,downloadUrl:()=>M0,drawCorner:()=>tw,easing:()=>Sa,enterpriseModule:()=>Ku,evaluateBezier:()=>RS,excludesType:()=>nv,extent:()=>gp,extractDecoratedProperties:()=>FA,findMaxIndex:()=>nD,findMaxValue:()=>FP,findMinIndex:()=>II,findMinMax:()=>zs,findMinValue:()=>C0,findQuadtreeMatch:()=>Jz,findRangeExtent:()=>Cm,fixNumericExtent:()=>Dl,focusCursorAtEnd:()=>BP,formatNumber:()=>E0,formatPercent:()=>D0,formatValue:()=>qs,fromToMotion:()=>Do,generateUUID:()=>eg,getAngleRatioRadians:()=>pb,getDatumRefPoint:()=>i1,getDocument:()=>yr,getElementBBox:()=>PI,getIconClassNames:()=>ub,getLastFocus:()=>Cg,getMarker:()=>La,getMissCount:()=>Ig,getPath:()=>gl,getPathComponents:()=>Np,getRadialColumnWidth:()=>W6,getRectConfig:()=>AV,getWindow:()=>Da,groupAccumulativeValueProperty:()=>Xp,groupAverage:()=>JT,groupBy:()=>dx,groupCount:()=>Rk,groupStackValueProperty:()=>eR,groupSum:()=>If,hasNoModifiers:()=>dM,identity:()=>av,inRange:()=>Pd,includes:()=>zA,initMenuKeyNav:()=>lT,initRovingTabIndex:()=>eS,initToolbarKeyNav:()=>Ib,interpolatePoints:()=>Ha,isArray:()=>ho,isBetweenAngles:()=>sd,isBoolean:()=>fu,isButtonClickEvent:()=>Qs,isContinuous:()=>vb,isDate:()=>Je,isDecoratedObject:()=>e0,isDefined:()=>un,isDenseInterval:()=>Nm,isEnumKey:()=>Fi,isEnumValue:()=>Ia,isFiniteNumber:()=>Na,isFunction:()=>Gi,isHtmlElement:()=>t0,isInputPending:()=>yp,isInteger:()=>Jf,isNegative:()=>ZC,isNumber:()=>Vn,isNumberEqual:()=>Ao,isObject:()=>Br,isObjectLike:()=>Zi,isPlainObject:()=>no,isProperties:()=>ha,isRegExp:()=>km,isScaleValid:()=>Ro,isString:()=>ui,isSymbol:()=>ei,isValidDate:()=>Ld,jsonApply:()=>R0,jsonDiff:()=>gg,jsonPropertyCompare:()=>gD,jsonWalk:()=>pg,keyProperty:()=>Jd,labelDirectionHandling:()=>Cb,legendSymbolSvg:()=>yk,lineDistanceSquared:()=>$l,listDecoratedProperties:()=>gh,makeAccessibleClickListener:()=>hM,mapValues:()=>NA,markerFadeInAnimation:()=>BL,markerPaletteFactory:()=>mR,markerScaleInAnimation:()=>qz,markerSwipeScaleInAnimation:()=>Yz,mergeArrayDefaults:()=>jy,mergeDefaults:()=>ia,midpointStartingBarPosition:()=>o$,minMax:()=>QZ,mod:()=>zy,moduleRegistry:()=>Ph,motion:()=>vH,nearestSquared:()=>Ns,nearestSquaredInContainer:()=>EP,normaliseGroupTo:()=>QS,normalisePropertyTo:()=>Tf,normalisedExtentWithMetadata:()=>lx,normalizeAngle180:()=>hb,normalizeAngle360:()=>da,normalizeAngle360Inclusive:()=>Ox,objectsEqual:()=>Ko,objectsEqualWith:()=>ph,pairUpSpans:()=>Qi,partialAssign:()=>Ic,pathFadeInAnimation:()=>VO,pathFadeOutAnimation:()=>t$,pathMotion:()=>eE,pathSwipeInAnimation:()=>Xz,pickByMatchingAngle:()=>v3,pickNode:()=>kf,plotAreaPathFill:()=>Wg,plotInterpolatedAreaSeriesFillSpans:()=>vR,plotInterpolatedLinePathStroke:()=>ru,plotLinePathStroke:()=>Sr,plotPath:()=>bV,predicateWithMessage:()=>Ka,prepareAreaFillAnimationFns:()=>aE,prepareAreaPathAnimation:()=>zL,prepareAxisAnimationContext:()=>tc,prepareAxisAnimationFunctions:()=>wb,prepareBarAnimationFunctions:()=>KL,prepareLinePathAnimation:()=>Hg,prepareLinePathPropertyAnimation:()=>jk,prepareLinePathStrokeAnimationFns:()=>pC,prepareMarkerAnimation:()=>qZ,preparePieSeriesAnimationFunctions:()=>rE,range:()=>v0,rangedValueProperty:()=>Cd,renderPartialPath:()=>e$,resetAxisGroupFn:()=>W0,resetAxisLabelSelectionFn:()=>DD,resetAxisLineSelectionFn:()=>tT,resetAxisSelectionFn:()=>xb,resetBarSelectionsFn:()=>qL,resetIds:()=>lp,resetLabelFn:()=>Ff,resetMarkerFn:()=>GL,resetMarkerPositionFn:()=>jL,resetMotion:()=>Eo,resetPieSelectionsFn:()=>f3,round:()=>Fa,sanitizeHtml:()=>wf,scale:()=>Vi,sectorBox:()=>p3,seriesLabelFadeInAnimation:()=>Xa,seriesLabelFadeOutAnimation:()=>hC,setAttribute:()=>yo,setAttributes:()=>bg,setDocument:()=>sD,setElementBBox:()=>zm,setElementStyle:()=>hd,setPath:()=>Bs,setWindow:()=>ku,shallowClone:()=>T0,singleSeriesPaletteFactory:()=>Bk,solveBezier:()=>tk,sortAndUniqueDates:()=>TI,sortBasedOnArray:()=>CI,splitBezier:()=>ik,splitPairData:()=>CV,staticFromToMotion:()=>vh,stopPageScrolling:()=>Fv,stringify:()=>Qt,sum:()=>qS,sumValues:()=>Ef,swapAxisCondition:()=>pR,throttle:()=>Am,toArray:()=>Uy,toDegrees:()=>_I,toRadians:()=>za,tooltipContentAriaLabel:()=>WT,trailingAccumulatedValue:()=>ZS,trailingAccumulatedValueProperty:()=>TL,unique:()=>cx,updateClipPath:()=>HO,updateLabelNode:()=>EV,updateRect:()=>kV,validateCrossLineValues:()=>qx,valueProperty:()=>fn,visibleRangeIndices:()=>Ya,without:()=>na});var vH,DJ=M({"packages/ag-charts-community/src/module-support.ts"(){"use strict";fs(),Om(),br(),ts(),S0(),Sb(),Wl(),oa(),RQ(),Rh(),Tc(),Lc(),Ep(),yg(),uh(),zn(),Ta(),Jb(),ga(),Oc(),lg(),xv(),Ua(),cd(),mD(),cv(),PQ(),Hn(),Ki(),$6(),ST(),ZQ(),$Q(),QQ(),JQ(),z6(),eJ(),Lh(),tJ(),iJ(),x_(),Hh(),zO(),nJ(),aa(),ED(),ac(),Wv(),Jn(),Ct(),$S(),Bh(),Fc(),ZD(),QD(),JD(),Js(),pS(),t1(),Mg(),LM(),fS(),n1(),df(),Wm(),sc(),aJ(),Kh(),ua(),nE(),gC(),FM(),IS(),BS(),OV(),_V(),ro(),i3(),dc(),GV(),jV(),gw(),Xi(),a3(),mV(),HL(),RV(),$z(),e3(),I(),Qd(),l_(),y3(),s_(),oJ(),rJ(),sJ(),lJ(),cJ(),dJ(),t6(),uJ(),K0(),H0(),Mp(),kD(),M3(),Ym(),uc(),Ev(),hJ(),gJ(),Av(),CD(),pJ(),Mf(),Il(),xa(),Wy(),Om(),fs(),tE(),FD(),bJ(),uT(),Ac(),$L(),Yd(),J0(),wu(),JC(),Ur(),Vr(),Rn(),eC(),kv(),_o(),X0(),cD(),rb(),bu(),Gs(),sb(),yv(),Zp(),CJ(),ml(),Gk(),fR(),$o(),Wa(),Zl(),as(),Gm(),zI(),SJ(),lc(),ZL(),NO(),wJ(),Pc(),Gs(),sb(),jd(),El(),Nu(),Pf(),S1(),HT(),zS(),aH(),xJ(),Il(),HV(),Pp(),GO(),Fu(),Sf(),Wy(),wp(),LS(),jn(),$o(),uS(),H6(),Gd(),fD(),lc(),U6(),$p(),n_(),os(),hw(),lr(),Of(),rH(),MJ(),sH(),cH(),W3(),kJ(),dH(),hH(),AJ(),vH=pe(pe({},bI),hv)}}),wt={};A(wt,{AG_CHARTS_LOCALE_EN_US:()=>m,AgCharts:()=>fw,AgChartsCommunityModule:()=>Z6,AgErrorBarSupportedSeriesTypes:()=>Bt,AgTooltipPositionType:()=>Ps,Marker:()=>cc,VERSION:()=>Xm,_ModuleSupport:()=>fH,_Scene:()=>L3,_Theme:()=>O3,_Util:()=>_3,_Widget:()=>oH,setupCommunityModules:()=>w3,time:()=>JI});var xt=M({"packages/ag-charts-community/src/main.ts"(){"use strict";Ee(),io(),EQ(),xp(),El(),K6(),Y6(),X6(),DJ(),rH()}}),B_=Object.defineProperty,yH=Object.getOwnPropertyDescriptor,EJ=Object.getOwnPropertyNames,IJ=Object.prototype.hasOwnProperty,TJ=(e,t)=>{for(var n in t)B_(e,n,{get:t[n],enumerable:!0})},X3=(e,t,n,a)=>{if(t&&typeof t=="object"||typeof t=="function")for(let h of EJ(t))!IJ.call(e,h)&&h!==n&&B_(e,h,{get:()=>t[h],enumerable:!(a=yH(t,h))||a.enumerable});return e},RJ=(e,t,n)=>(X3(e,t,"default"),n&&X3(n,t,"default")),PJ=e=>X3(B_({},"__esModule",{value:!0}),e),ve=(e,t,n,a)=>{for(var h=a>1?void 0:a?yH(t,n):t,S=e.length-1,E;S>=0;S--)(E=e[S])&&(h=(a?E(t,n,h):E(h))||h);return a&&h&&B_(t,n,h),h},Z3={};TJ(Z3,{AgCharts:()=>Ly.AgCharts,AgChartsEnterpriseModule:()=>$Se,LicenseManager:()=>ZSe,VERSION:()=>Ly.VERSION,setupEnterpriseModules:()=>XY}),ee.exports=PJ(Z3);var s2=(xt(),D(wt)),LJ=(xt(),D(wt));function $3(e,t,n){let a=(S,E,L,_)=>{let N=e[0];for(let V=S;L>0?V<=E:V>E;V+=L){let q=e[V];if(_(N,q))return!0;N=q}return!1},h=Math.floor(e.length/2);return a(t,h,t,n)?!0:a(e.length-t,h,-t,n)}var OJ=(xt(),D(wt)),{OR:_J,POSITIVE_NUMBER:FJ,NAN:NJ,AxisInterval:zJ,Validate:BJ}=OJ._ModuleSupport,Q3=class extends zJ{constructor(){super(...arguments),this.minSpacing=NaN}};ve([BJ(_J(FJ,NJ))],Q3.prototype,"minSpacing",2);var J3=(xt(),D(wt)),eB=(xt(),D(wt)),GJ=(xt(),D(wt)),{BaseProperties:bH,ChartAxisDirection:jJ,ARRAY:VJ,BOOLEAN:tB,COLOR_STRING:iB,FONT_STYLE:HJ,FONT_WEIGHT:WJ,LINE_DASH:UJ,NUMBER:CH,OBJECT:KJ,POSITIVE_NUMBER:qJ,RATIO:SH,STRING:wH,UNION:xH,AND:YJ,Validate:Fl,MATCHING_CROSSLINE_TYPE:MH,createId:XJ,Group:nB}=GJ._ModuleSupport,py=class extends bH{constructor(){super(...arguments),this.fontSize=14,this.fontFamily="Verdana, sans-serif",this.padding=5,this.color="rgba(87, 87, 87, 1)"}};ve([Fl(tB,{optional:!0})],py.prototype,"enabled",2),ve([Fl(wH,{optional:!0})],py.prototype,"text",2),ve([Fl(HJ,{optional:!0})],py.prototype,"fontStyle",2),ve([Fl(WJ,{optional:!0})],py.prototype,"fontWeight",2),ve([Fl(qJ)],py.prototype,"fontSize",2),ve([Fl(wH)],py.prototype,"fontFamily",2),ve([Fl(CH)],py.prototype,"padding",2),ve([Fl(iB,{optional:!0})],py.prototype,"color",2),ve([Fl(tB,{optional:!0})],py.prototype,"parallel",2);var Ug=class extends bH{constructor(){super(...arguments),this.id=XJ(this),this.shape="polygon",this.label=new py,this.scale=void 0,this.clippedRange=[-1/0,1/0],this.gridLength=0,this.sideFlag=-1,this.parallelFlipRotation=0,this.regularFlipRotation=0,this.direction=jJ.X,this.axisInnerRadius=0,this.axisOuterRadius=0,this.lineGroup=new nB({name:this.id}),this.rangeGroup=new nB({name:this.id}),this.labelGroup=new nB({name:this.id}),this._isRange=void 0}assignCrossLineGroup(e,t){e!==this._isRange&&(e?this.rangeGroup.appendChild(t):this.lineGroup.appendChild(t)),this._isRange=e}setSectorNodeProps(e){var t,n,a;e.fill=this.fill,e.fillOpacity=(t=this.fillOpacity)!=null?t:1,e.stroke=this.stroke,e.strokeOpacity=(n=this.strokeOpacity)!=null?n:1,e.strokeWidth=(a=this.strokeWidth)!=null?a:1,e.lineDash=this.lineDash}setLabelNodeProps(e,t,n,a,h){let{label:S}=this;e.x=t,e.y=n,e.text=S.text,e.textAlign="center",e.textBaseline=a,e.rotation=h,e.rotationCenterX=t,e.rotationCenterY=n,e.fill=S.color,e.fontFamily=S.fontFamily,e.fontSize=S.fontSize,e.fontStyle=S.fontStyle,e.visible=!0}};ve([Fl(tB,{optional:!0})],Ug.prototype,"enabled",2),ve([Fl(xH(["range","line"],"a crossLine type"),{optional:!0})],Ug.prototype,"type",2),ve([Fl(YJ(MH("range"),VJ.restrict({length:2})),{optional:!0})],Ug.prototype,"range",2),ve([Fl(MH("value"),{optional:!0})],Ug.prototype,"value",2),ve([Fl(iB,{optional:!0})],Ug.prototype,"fill",2),ve([Fl(SH,{optional:!0})],Ug.prototype,"fillOpacity",2),ve([Fl(iB,{optional:!0})],Ug.prototype,"stroke",2),ve([Fl(CH,{optional:!0})],Ug.prototype,"strokeWidth",2),ve([Fl(SH,{optional:!0})],Ug.prototype,"strokeOpacity",2),ve([Fl(UJ,{optional:!0})],Ug.prototype,"lineDash",2),ve([Fl(xH(["polygon","circle"],"a shape"))],Ug.prototype,"shape",2),ve([Fl(KJ)],Ug.prototype,"label",2);var{ChartAxisDirection:ZJ,validateCrossLineValues:$J,normalizeAngle360:aB,isNumberEqual:kH,Group:QJ,Path:AH,Sector:JJ,RotatableText:eee,ContinuousScale:tee}=eB._ModuleSupport,oB=class extends Ug{constructor(){super(),this.direction=ZJ.X,this.polygonNode=new AH,this.sectorNode=new JJ,this.lineNode=new AH,this.crossLineRange=new QJ,this.labelNode=new eee,this.crossLineRange.append(this.polygonNode),this.crossLineRange.append(this.sectorNode),this.crossLineRange.append(this.lineNode),this.labelGroup.append(this.labelNode)}update(e){let{scale:t,shape:n,type:a,value:h,range:S}=this;if(!t||!a||!$J(a,h,S,t,()=>{var V,q;if(!tee.is(t))return!0;let[L,_]=S!=null?S:[h,void 0],N=(q=(V=t.getDomain)==null?void 0:V.call(t))!=null?q:t.domain;return L>=N[0]&&L<=N[1]&&(a==="line"||_>=L&&_<=N[1])})){this.rangeGroup.visible=!1,this.lineGroup.visible=!1,this.labelGroup.visible=!1;return}this.rangeGroup.visible=e,this.lineGroup.visible=e,this.labelGroup.visible=e,a==="line"&&n==="circle"&&t instanceof eB._ModuleSupport.BandScale&&(this.type="range",this.range=[h,h]),this.updateLineNode(e),this.updatePolygonNode(e),this.updateSectorNode(e),this.updateLabelNode(e)}updateLineNode(e){var Y,J;let{scale:t,type:n,value:a,lineNode:h}=this;if(!e||n!=="line"||!t){h.visible=!1;return}let S=t.convert(a);if(isNaN(S)){h.visible=!1;return}let{axisInnerRadius:E,axisOuterRadius:L}=this;h.visible=!0,h.stroke=this.stroke,h.strokeOpacity=(Y=this.strokeOpacity)!=null?Y:1,h.strokeWidth=(J=this.strokeWidth)!=null?J:1,h.fill=void 0,h.lineDash=this.lineDash;let _=L*Math.cos(S),N=L*Math.sin(S),V=E*Math.cos(S),q=E*Math.sin(S);h.path.clear(!0),h.path.moveTo(V,q),h.path.lineTo(_,N),this.assignCrossLineGroup(!1,this.crossLineRange)}updatePolygonNode(e){var re;let{polygonNode:t,range:n,scale:a,shape:h,type:S}=this;if(!e||S!=="range"||h!=="polygon"||!a||!n){t.visible=!1;return}let E=(re=a.ticks)==null?void 0:re.call(a);if(!E){t.visible=!1;return}let{axisInnerRadius:L,axisOuterRadius:_}=this,N=E.indexOf(n[0]),V=E.indexOf(n[1]),Y=(N<=V?E.slice(N,V+1):E.slice(N).concat(E.slice(0,V+1))).map(ce=>a.convert(ce));t.visible=!0,this.setSectorNodeProps(t);let{path:J}=t;J.clear(!0),Y.forEach((ce,he)=>{let me=_*Math.cos(ce),we=_*Math.sin(ce);he===0?J.moveTo(me,we):J.lineTo(me,we)}),L===0?J.lineTo(0,0):Y.slice().reverse().forEach(ce=>{let he=L*Math.cos(ce),me=L*Math.sin(ce);J.lineTo(he,me)}),t.path.closePath(),this.assignCrossLineGroup(!0,this.crossLineRange)}updateSectorNode(e){var q;let{sectorNode:t,range:n,scale:a,shape:h,type:S}=this;if(!e||S!=="range"||h!=="circle"||!a||!n){t.visible=!1;return}let{axisInnerRadius:E,axisOuterRadius:L}=this,_=n.map(Y=>a.convert(Y)),N=(q=a.step)!=null?q:0,V=a instanceof eB._ModuleSupport.BandScale?N/2:0;t.visible=!0,this.setSectorNodeProps(t),t.centerX=0,t.centerY=0,t.innerRadius=E,t.outerRadius=L,t.startAngle=_[0]-V,t.endAngle=_[1]+V,this.assignCrossLineGroup(!0,this.crossLineRange)}updateLabelNode(e){var Y,J;let{label:t,labelNode:n,range:a,scale:h,type:S}=this;if(!e||t.enabled===!1||!t.text||!h||S==="range"&&!a){n.visible=!0;return}let{axisInnerRadius:E,axisOuterRadius:L}=this,_,N,V,q;if(S==="line"){let re=aB(h.convert(this.value)),ce=1.5*Math.PI,he=kH(re,ce)||re>ce||re<Math.PI/2,me=(E+L)/2*Math.cos(re),we=(E+L)/2*Math.sin(re);_=me+t.padding*Math.cos(re+Math.PI/2),N=we+t.padding*Math.sin(re+Math.PI/2),q=he?"top":"bottom",V=he?re:re-Math.PI}else{let[re,ce]=a.map(be=>aB(h.convert(be))),he=(re+ce)/2;re>ce&&(he-=Math.PI),he=aB(he);let me=(kH(he,0)||he>0)&&he<Math.PI,we,Me=(J=(Y=h.ticks)==null?void 0:Y.call(h))!=null?J:[];this.shape==="circle"||Me.length<3?we=L-t.padding:we=L*Math.cos(Math.PI/Me.length)-t.padding,_=we*Math.cos(he),N=we*Math.sin(he),q=me?"bottom":"top",V=me?he-Math.PI/2:he+Math.PI/2}this.setLabelNodeProps(n,_,N,q,V)}};oB.className="AngleCrossLine";var{ChartAxisDirection:iee,NUMBER:DH,UNION:nee,ProxyOnWrite:aee,TextWrapper:oee,TextUtils:ree,Validate:rB,angleBetween:see,isNumberEqual:SR,toRadians:G_,normalizeAngle360:wR,normalizeAngle360Inclusive:lee,Path:cee,RotatableText:dee,Transformable:uee,BBox:hee}=J3._ModuleSupport,sB=class extends J3._ModuleSupport.AxisLabel{constructor(){super(...arguments),this.orientation="fixed"}};ve([rB(nee(["fixed","parallel","perpendicular"],"a label orientation"))],sB.prototype,"orientation",2);var l2=class extends J3._ModuleSupport.PolarAxis{constructor(e,t){super(e,t),this.startAngle=0,this.endAngle=void 0,this.labelData=[],this.tickData=[],this.radiusLine=this.axisGroup.appendChild(new cee),this.includeInvisibleDomains=!0}get direction(){return iee.X}createLabel(){return new sB}update(){this.updateScale(),this.updatePosition(),this.updateGridLines(),this.updateTickLines(),this.updateLabels(),this.updateRadiusLine(),this.updateCrossLines()}normalizedAngles(){let e=wR(-Math.PI/2+G_(this.startAngle)),t=this.endAngle!=null?lee(G_(this.endAngle)-G_(this.startAngle)):2*Math.PI,n=e+t;return[e,n]}computeRange(){this.range=this.normalizedAngles()}calculateAvailableRange(){let{range:e,gridLength:t}=this;return see(e[0],e[1])*t}updatePosition(){let{translation:e,axisGroup:t,gridGroup:n,crossLineRangeGroup:a,crossLineLineGroup:h,crossLineLabelGroup:S}=this,E=Math.floor(e.x),L=Math.floor(e.y);t.translationX=E,t.translationY=L,n.translationX=E,n.translationY=L,a.translationX=E,a.translationY=L,h.translationX=E,h.translationY=L,S.translationX=E,S.translationY=L}updateRadiusLine(){let e=this.radiusLine,{path:t}=e;t.clear(!0);let{points:n,closePath:a}=this.getAxisLinePoints();n.forEach(({x:h,y:S,moveTo:E,arc:L,radius:_=0,startAngle:N=0,endAngle:V=0})=>{L?t.arc(h,S,_,N,V):E?t.moveTo(h,S):t.lineTo(h,S)}),a&&t.closePath(),e.visible=this.line.enabled,e.stroke=this.line.stroke,e.strokeWidth=this.line.width,e.fill=void 0}getAxisLinePoints(){var L;let{scale:e,shape:t,gridLength:n}=this,[a,h]=this.range,S=SR(h-a,2*Math.PI),E=[];if(t==="circle")S?E.push({x:n,y:0,moveTo:!0},{x:0,y:0,radius:n,startAngle:0,endAngle:2*Math.PI,arc:!0,moveTo:!1}):E.push({x:n*Math.cos(a),y:n*Math.sin(a),moveTo:!0},{x:0,y:0,radius:n,startAngle:wR(a),endAngle:wR(h),arc:!0,moveTo:!1});else if(t==="polygon"){let _=(L=e.ticks)==null?void 0:L.call(e).map(N=>e.convert(N));_&&_.length>2&&_.forEach((N,V)=>{let q=n*Math.cos(N),Y=n*Math.sin(N),J=V===0;E.push({x:q,y:Y,moveTo:J})})}return{points:E,closePath:S}}updateGridLines(){let{scale:e,gridLength:t,gridLine:{enabled:n,style:a,width:h},innerRadiusRatio:S}=this;if(!(a&&t>0))return;let E=this.tickData,L=t*S,_=a.length,N=V=>V.value;this.gridLineGroupSelection.update(n?E:[],void 0,N).each((V,q,Y)=>{let{value:J}=q,{stroke:re,lineDash:ce}=a[Y%_],he=e.convert(J);V.x1=L*Math.cos(he),V.y1=L*Math.sin(he),V.x2=t*Math.cos(he),V.y2=t*Math.sin(he),V.stroke=re,V.strokeWidth=h,V.lineDash=ce,V.fill=void 0}),this.gridLineGroupSelection.cleanup()}updateLabels(){let{label:e,tickLabelGroupSelection:t}=this,n=this.tickData;t.update(e.enabled?n:[]).each((a,h,S)=>{let E=this.labelData[S];if(!E||E.hidden){a.visible=!1;return}a.text=E.text,a.setFont(e),a.fill=e.color,a.x=E.x,a.y=E.y,a.textAlign=E.textAlign,a.textBaseline=E.textBaseline,a.visible=!0,E.rotation?(a.rotation=E.rotation,a.rotationCenterX=E.x,a.rotationCenterY=E.y):a.rotation=0})}updateTickLines(){let{scale:e,gridLength:t,tick:n,tickLineGroupSelection:a}=this,h=this.tickData;a.update(n.enabled?h:[]).each((S,E)=>{let{value:L}=E,_=e.convert(L),N=Math.cos(_),V=Math.sin(_);S.x1=t*N,S.y1=t*V,S.x2=(t+n.size)*N,S.y2=(t+n.size)*V,S.stroke=n.stroke,S.strokeWidth=n.width})}createLabelNodeData(e,t,n){let{label:a,gridLength:h,scale:S,tick:E}=this;if(!a.enabled)return[];let L=new dee,_=n.x-this.translation.x,N=n.x+n.width-this.translation.x,V=e.map((q,Y)=>{var lt;let{value:J}=q,re=h+a.spacing+E.size,ce=S.convert(J),he=Math.cos(ce),me=Math.sin(ce),we=re*he,Me=re*me,{textAlign:be,textBaseline:Le}=this.getLabelAlign(ce),Fe=Y===e.length-1&&J!==e[0]&&SR(wR(ce),wR(S.convert(e[0]))),je=this.getLabelRotation(ce),Xe=String(J);if(a.formatter){let{callbackCache:ot}=this.moduleCtx;Xe=(lt=ot.call(a.formatter,{value:J,index:Y}))!=null?lt:""}L.text=Xe,L.x=we,L.y=Me,L.setFont(a),L.textAlign=be,L.textBaseline=Le,L.rotation=je,je&&(L.rotationCenterX=we,L.rotationCenterY=Me);let nt=je?uee.toCanvas(L):L.getBBox();if(nt&&t.hideWhenNecessary&&!je){let ot=_-nt.x,vt=nt.x+nt.width-N,gt=1;if(ot>gt||vt>gt){let bt=nt.width-Math.max(ot,vt);Xe=oee.wrapText(Xe,{maxWidth:bt,font:a,textWrap:"never"}),Xe===ree.EllipsisChar&&(Xe=""),L.text=Xe,nt=L.getBBox()}}return{text:Xe,x:we,y:Me,textAlign:be,textBaseline:Le,hidden:Xe===""||q.hidden||Fe,rotation:je,box:nt}});return a.avoidCollisions&&this.avoidLabelCollisions(V),V}computeLabelsBBox(e,t){this.tickData=this.generateAngleTicks(),this.labelData=this.createLabelNodeData(this.tickData,e,t);let n=this.labelData.map(({box:a})=>a).filter(a=>a!=null);return!this.label.enabled||n.length===0?null:hee.merge(n)}getLabelOrientation(){let{label:e}=this;return e instanceof sB?e.orientation:"fixed"}getLabelRotation(e){var a;let t=G_((a=this.label.rotation)!=null?a:0);e=wR(e);let n=this.getLabelOrientation();return n==="parallel"?(t+=e,e>=0&&e<Math.PI?t-=Math.PI/2:t+=Math.PI/2):n==="perpendicular"&&(t+=e,e>=Math.PI/2&&e<1.5*Math.PI&&(t+=Math.PI)),t}getLabelAlign(e){let t=Math.cos(e),n=Math.sin(e),a,h,S=this.getLabelOrientation(),E=SR(t,0),L=SR(n,0),_=SR(t,1),N=SR(n,-1),V=t>0&&!E,q=n>0&&!L;return S==="parallel"?(a="center",h=_&&L||q?"top":"bottom"):S==="perpendicular"?(a=N||V?"left":"right",h="middle"):(a="right",E?a="center":V&&(a="left"),h="bottom",L?h="middle":q&&(h="top")),{textAlign:a,textBaseline:h}}updateCrossLines(){this.crossLines.forEach(e=>{if(e instanceof oB){let{shape:t,gridLength:n,innerRadiusRatio:a}=this;e.shape=t,e.axisOuterRadius=n,e.axisInnerRadius=n*a}}),super.updateCrossLines()}};l2.CrossLineConstructor=oB,ve([aee("rotation"),rB(DH)],l2.prototype,"startAngle",2),ve([rB(DH,{optional:!0})],l2.prototype,"endAngle",2);var{RATIO:EH,OBJECT:gee,Validate:lB,isNumberEqual:IH,BandScale:pee}=LJ._ModuleSupport,uE=class extends l2{constructor(e){super(e,new pee),this.groupPaddingInner=0,this.paddingInner=0,this.interval=new Q3}generateAngleTicks(){var N;let{scale:e,gridLength:t}=this,{values:n,minSpacing:a}=this.interval,h=(N=n!=null?n:e.ticks())!=null?N:[];if(h.length<2||isNaN(a))return h.map(V=>({value:V,visible:!0}));let S=h[0],E=e.convert(S),L=t*Math.cos(E),_=t*Math.sin(E);for(let V=1;V<h.length-1;V++){let q=h[V],Y=e.convert(q);if(Y-E>Math.PI)break;let J=t*Math.cos(Y),re=t*Math.sin(Y);if(Math.sqrt((J-L)**2+(re-_)**2)>a){let he=new Set([S]);return $3(h,V,(me,we)=>{he.add(we)}),h.map(me=>{let we=he.has(me);return{value:me,visible:we}})}}return[{value:S,visible:!0}]}avoidLabelCollisions(e){let{minSpacing:t}=this.label;if(Number.isFinite(t)||(t=0),e.length<3)return;let n=(_,N)=>{if(_.hidden||N.hidden)return!1;let V=_.box.clone().grow(t/2),q=N.box.clone().grow(t/2);return V.collidesBBox(q)},a=e[0],h=e.at(-1),S=new Set([a]),E=IH(a.x,h.x)&&IH(a.y,h.y),L=Math.floor(e.length/2);for(let _=1;_<=L;_++){let N=E?e.slice(0,-1):e;if(!$3(N,_,n)){$3(N,_,(q,Y)=>{S.add(Y)});break}}e.forEach(_=>{S.has(_)||(_.hidden=!0,_.box=void 0)})}};uE.className="AngleCategoryAxis",uE.type="angle-category",ve([lB(EH)],uE.prototype,"groupPaddingInner",2),ve([lB(EH)],uE.prototype,"paddingInner",2),ve([lB(gee)],uE.prototype,"interval",2);var mee={type:"axis",optionsKey:"axes[]",packageType:"enterprise",chartTypes:["polar"],identifier:"angle-category",moduleFactory:e=>new uE(e)},fee=(xt(),D(wt)),vee=(xt(),D(wt)),{range:TH,isDenseInterval:yee,isNumberEqual:bee,LinearScale:Cee,Invalidating:See}=vee._ModuleSupport,RH=class extends Cee{constructor(){super(...arguments),this.arcLength=0,this.niceTickStep=0}ticks(){if(!this.domain||this.domain.length<2||this.domain.some(h=>!isFinite(h))||this.arcLength<=0)return[];this.refresh();let{interval:e}=this,[t,n]=this.getDomain();if(e){let h=Math.abs(e),S=this.getPixelRange();if(!yee((n-t)/h,S))return TH(t,n,h)}let a=this.nice&&this.niceTickStep?this.niceTickStep:this.getTickStep(t,n);return TH(t,n,a)}hasNiceRange(){let e=this.range.slice().sort((n,a)=>n-a);return[Math.PI,2*Math.PI].some(n=>bee(n,e[1]-e[0]))}getNiceStepAndTickCount(){let[e,t]=this.niceDomain,n=this.getTickStep(e,t),a=isNaN(this.maxTickCount)?1/0:this.maxTickCount,h=Math.abs(t-e)/n,S=Math.pow(2,Math.ceil(Math.log(h)/Math.log(2)));return S>a&&(S/=2,n*=2),{count:S,step:n}}updateNiceDomain(){if(super.updateNiceDomain(),!this.hasNiceRange())return;let e=this.niceDomain[0]>this.niceDomain[1],t=e?this.niceDomain[1]:this.niceDomain[0],{step:n,count:a}=this.getNiceStepAndTickCount(),h=1/n,S=n>=1?Math.ceil(t/n+a)*n:Math.ceil((t+a*n)*h)/h;this.niceDomain=e?[S,t]:[t,S],this.niceTickStep=n}getPixelRange(){return this.arcLength}};ve([See],RH.prototype,"arcLength",2);var{AND:PH,Default:LH,GREATER_THAN:wee,LESS_THAN:xee,NUMBER_OR_NAN:OH,OBJECT:Mee,Validate:cB,angleBetween:kee,isNumberEqual:_H,normalisedExtentWithMetadata:Aee,findMinMax:Dee}=fee._ModuleSupport,xR=class extends l2{constructor(e){super(e,new RH),this.shape="circle",this.min=NaN,this.max=NaN,this.interval=new Q3}normaliseDataDomain(e){let{min:t,max:n}=this,{extent:a,clipped:h}=Aee(e,t,n);return{domain:a,clipped:h}}getRangeArcLength(){let{range:e}=this,t=Math.min(...e),n=Math.max(...e),a=kee(t,n)||2*Math.PI,h=this.gridLength;return a*h}generateAngleTicks(){let e=this.getRangeArcLength(),{scale:t,range:n}=this,{values:a,minSpacing:h,maxSpacing:S}=this.interval,E=S?Math.floor(e/S):1,L=h?Math.floor(e/h):1/0,_=Math.floor(4/Math.PI*Math.abs(n[0]-n[1]));t.tickCount=Math.max(E,Math.min(L,_)),t.minTickCount=E,t.maxTickCount=L,t.arcLength=e;let N;if(a!=null){let[V,q]=Dee(t.getDomain().map(Number));N=a.filter(Y=>Y>=V&&Y<=q).sort((Y,J)=>Y-J)}else N=t.ticks();return N.map(V=>({value:V,visible:!0}))}avoidLabelCollisions(e){let{minSpacing:t}=this.label;Number.isFinite(t)||(t=0);let n=(S,E)=>{if(S.hidden||E.hidden)return!1;let L=S.box.clone().grow(t/2),_=E.box.clone().grow(t/2);return L.collidesBBox(_)},a=e[0],h=e.at(-1);a!==h&&_H(a.x,h.x)&&_H(a.y,h.y)&&(h.hidden=!0);for(let S=1;S<e.length;S*=2){let E=!1;for(let L=S;L<e.length;L+=S){let _=e[L],N=e[L-S];if(n(N,_)){E=!0;break}}if(!E){e.forEach((L,_)=>{_%S>0&&(L.hidden=!0,L.box=void 0)});return}}e.forEach((S,E)=>{E>0&&(S.hidden=!0,S.box=void 0)})}};xR.className="AngleNumberAxis",xR.type="angle-number",ve([cB(PH(OH,xee("max"))),LH(NaN)],xR.prototype,"min",2),ve([cB(PH(OH,wee("min"))),LH(NaN)],xR.prototype,"max",2),ve([cB(Mee)],xR.prototype,"interval",2);var Eee={type:"axis",optionsKey:"axes[]",packageType:"enterprise",chartTypes:["polar"],identifier:"angle-number",moduleFactory:e=>new xR(e)},FH=(xt(),D(wt)),{OrdinalTimeScale:Iee,sortAndUniqueDates:Tee}=FH._ModuleSupport,dB=class extends FH._ModuleSupport.CategoryAxis{constructor(e){super(e,new Iee),this._lastSetDomain=void 0}normaliseDataDomain(e){return{domain:e,clipped:!1}}setDomain(e){if(this._lastSetDomain===e)return;this._lastSetDomain=e;let t=Tee(e);super.setDomain(t)}onFormatChange(e,t,n,a){a?super.onFormatChange(e,t,n,a):this.labelFormatter=this.scale.tickFormat({ticks:e,domain:n})}};dB.className="OrdinalTimeAxis",dB.type="ordinal-time";var Ree={type:"axis",optionsKey:"axes[]",packageType:"enterprise",chartTypes:["cartesian"],identifier:"ordinal-time",moduleFactory:e=>new dB(e)},Pee=(xt(),D(wt)),uB=(xt(),D(wt)),hB=(xt(),D(wt)),{ChartAxisDirection:Lee,Validate:Oee,NUMBER:_ee,validateCrossLineValues:Fee,clamp:NH,normalizeAngle360:Nee,toRadians:zee,isNumberEqual:Bee,Group:Gee,Path:jee,Sector:Vee,RotatableText:Hee}=hB._ModuleSupport,zH=class extends py{constructor(){super(...arguments),this.positionAngle=void 0}};ve([Oee(_ee,{optional:!0})],zH.prototype,"positionAngle",2);var gB=class extends Ug{constructor(){super(),this.direction=Lee.Y,this.label=new zH,this.polygonNode=new jee,this.sectorNode=new Vee,this.crossLineRange=new Gee,this.labelNode=new Hee,this.outerRadius=0,this.innerRadius=0,this.crossLineRange.append(this.polygonNode),this.crossLineRange.append(this.sectorNode),this.labelGroup.append(this.labelNode)}update(e){let{scale:t,type:n,value:a,range:h}=this;if(!t||!n||!Fee(n,a,h,t)){this.rangeGroup.visible=!1,this.lineGroup.visible=!1,this.labelGroup.visible=!1;return}n==="line"&&t instanceof hB._ModuleSupport.BandScale&&(this.type="range",this.range=[a,a]),this.updateRadii();let{innerRadius:S,outerRadius:E}=this;e&&(e=S>=this.axisInnerRadius&&E<=this.axisOuterRadius),this.rangeGroup.visible=e,this.lineGroup.visible=e,this.labelGroup.visible=e,this.updatePolygonNode(e),this.updateSectorNode(e),this.updateLabelNode(e),this.assignCrossLineGroup(this.type==="range",this.crossLineRange)}updateRadii(){var _;let{range:e,scale:t,type:n,axisInnerRadius:a,axisOuterRadius:h}=this;if(!t)return{innerRadius:0,outerRadius:0};let S=N=>h+a-N,E=0,L=0;if(n==="line")E=S(t.convert(this.value)),L=E;else{let N=Math.abs((_=t==null?void 0:t.bandwidth)!=null?_:0),V=e.map(q=>t.convert(q));E=S(Math.max(...V)),L=S(Math.min(...V))+N}this.outerRadius=E,this.innerRadius=L}drawPolygon(e,t,n){t.forEach((a,h)=>{let S=e*Math.cos(a),E=e*Math.sin(a);h===0?n.path.moveTo(S,E):n.path.lineTo(S,E)}),n.path.closePath()}updatePolygonNode(e){let{gridAngles:t,polygonNode:n,scale:a,shape:h,type:S,innerRadius:E,outerRadius:L}=this;if(!e||h!=="polygon"||!a||!t){n.visible=!1;return}n.visible=!0;let _=this.getPadding();n.path.clear(!0),this.drawPolygon(L-_,t,n);let N=t.slice().reverse(),V=S==="line"?L-_:E+_;this.drawPolygon(V,N,n),this.setSectorNodeProps(n)}updateSectorNode(e){let{axisInnerRadius:t,axisOuterRadius:n,scale:a,sectorNode:h,shape:S,innerRadius:E,outerRadius:L}=this;if(!e||S!=="circle"||!a){h.visible=!1;return}h.visible=!0,h.startAngle=0,h.endAngle=2*Math.PI;let _=this.getPadding(),N=NH(t,E+_,n),V=NH(t,L-_,n);h.innerRadius=Math.min(N,V),h.outerRadius=Math.max(N,V),this.setSectorNodeProps(h)}updateLabelNode(e){var ce,he;let{innerRadius:t,label:n,labelNode:a,scale:h,shape:S,type:E}=this;if(!e||n.enabled===!1||!n.text||!h){a.visible=!1;return}let L=Nee(zee(((ce=n.positionAngle)!=null?ce:0)-90)),_=(Bee(L,0)||L>0)&&L<Math.PI,N=_?L-Math.PI/2:L+Math.PI/2,V=0,q=(he=this.gridAngles)!=null?he:[];E==="line"?V=t+n.padding:S==="circle"||q.length<3?V=t-n.padding:V=t*Math.cos(Math.PI/q.length)-n.padding;let Y=V*Math.cos(L),J=V*Math.sin(L),re;E==="line"?re=_?"top":"bottom":re=_?"bottom":"top",this.setLabelNodeProps(a,Y,J,re,N)}getPadding(){var a,h;let{scale:e}=this;if(!e)return 0;let t=Math.abs((a=e.bandwidth)!=null?a:0),n=Math.abs((h=e.step)!=null?h:0);return e instanceof hB._ModuleSupport.BandScale?(n-t)/2:0}};gB.className="RadiusCrossLine";var{ChartAxisDirection:Wee,Default:Uee,ZIndexMap:Kee,NUMBER:BH,BOOLEAN:qee,Validate:pB,isNumberEqual:Yee,normalizeAngle360:GH,toRadians:Xee,Caption:Zee,Group:$ee,Path:Qee,Selection:Jee}=uB._ModuleSupport,mB=class extends uB._ModuleSupport.AxisLabel{constructor(){super(...arguments),this.autoRotateAngle=335}};ve([pB(qee,{optional:!0})],mB.prototype,"autoRotate",2),ve([pB(BH)],mB.prototype,"autoRotateAngle",2);var j_=class extends uB._ModuleSupport.PolarAxis{constructor(){super(...arguments),this.positionAngle=0,this.gridPathGroup=this.gridGroup.appendChild(new $ee({name:`${this.id}-gridPaths`,zIndex:Kee.AXIS_GRID})),this.gridPathSelection=Jee.select(this.gridPathGroup,Qee)}get direction(){return Wee.Y}getAxisTransform(){let e=this.scale.range[0],{translation:t,positionAngle:n,innerRadiusRatio:a}=this,h=e*a,S=Xee(n);return{translationX:t.x,translationY:t.y-e-h,rotation:S,rotationCenterX:0,rotationCenterY:e+h}}updateSelections(e,t,n){var ce;super.updateSelections(e,t,n);let{gridLine:{enabled:a,style:h,width:S},shape:E}=this;if(!h)return;let L=this.prepareTickData(t),_=h.length,N=(he,me)=>{let{stroke:we,lineDash:Me}=h[me%_];he.stroke=we,he.strokeWidth=S,he.lineDash=Me,he.fill=void 0},[V,q]=(ce=this.gridRange)!=null?ce:[0,2*Math.PI],Y=Yee(q-V,2*Math.PI),J=(he,me)=>{let{path:we}=he;we.clear(!0);let Me=this.getTickRadius(me);Y?(we.moveTo(Me,0),we.arc(0,0,Me,0,2*Math.PI)):(we.moveTo(Me*Math.cos(V),Me*Math.sin(V)),we.arc(0,0,Me,GH(V),GH(q))),Y&&we.closePath()},re=(he,me)=>{let{path:we}=he,Me=this.gridAngles;if(we.clear(!0),!Me||Me.length<3)return;let be=this.getTickRadius(me);Me.forEach((Le,Fe)=>{let je=be*Math.cos(Le),Xe=be*Math.sin(Le);Fe===0?we.moveTo(je,Xe):we.lineTo(je,Xe),Me.forEach((nt,lt)=>{let ot=be*Math.cos(nt),vt=be*Math.sin(nt);lt===0?we.moveTo(ot,vt):we.lineTo(ot,vt)}),we.closePath()}),we.closePath()};this.gridPathSelection.update(a?L:[]).each((he,me,we)=>{N(he,we),E==="circle"?J(he,me):re(he,me)})}updateTitle(){let e=L=>L.defaultValue,{title:t,range:n,moduleCtx:{callbackCache:a}}=this,{formatter:h=e}=this.title;t.caption.enabled=t.enabled,t.caption.fontFamily=t.fontFamily,t.caption.fontSize=t.fontSize,t.caption.fontStyle=t.fontStyle,t.caption.fontWeight=t.fontWeight,t.caption.color=t.color,t.caption.wrapping=t.wrapping;let S=!1,E=t.caption.node;t.enabled&&(S=!0,E.rotation=Math.PI/2,E.x=Math.floor((n[0]+n[1])/2),E.y=-Zee.SMALL_PADDING,E.textAlign="center",E.textBaseline="bottom",E.text=a.call(h,this.getTitleFormatterParams())),E.visible=S}updateCrossLines(){this.crossLines.forEach(e=>{if(e instanceof gB){let{shape:t,gridAngles:n,range:a,innerRadiusRatio:h}=this,S=a[0];e.shape=t,e.gridAngles=n,e.axisOuterRadius=S,e.axisInnerRadius=S*h}}),super.updateCrossLines()}createLabel(){return new mB}};j_.CrossLineConstructor=gB,ve([pB(BH),Uee(0)],j_.prototype,"positionAngle",2);var{RATIO:fB,ProxyPropertyOnWrite:jH,Validate:vB,BandScale:VH}=Pee._ModuleSupport,hE=class extends j_{constructor(e){super(e,new VH),this.shape="circle",this.groupPaddingInner=0,this.paddingInner=0,this.paddingOuter=0}prepareTickData(e){return e.slice().reverse()}getTickRadius(e){let{scale:t,innerRadiusRatio:n}=this,a=t.range[0],h=a*n;if(t instanceof VH){let S=t.ticks(),E=S.length-1-S.indexOf(e.tickId);return E===0?h:t.inset+t.step*(E-.5)+t.bandwidth/2}else{let S=(a-h)/t.domain.length;return a-e.translationY+h-S/2}}};hE.className="RadiusCategoryAxis",hE.type="radius-category",ve([vB(fB)],hE.prototype,"groupPaddingInner",2),ve([jH("scale","paddingInner"),vB(fB)],hE.prototype,"paddingInner",2),ve([jH("scale","paddingOuter"),vB(fB)],hE.prototype,"paddingOuter",2);var ete={type:"axis",optionsKey:"axes[]",packageType:"enterprise",chartTypes:["polar"],identifier:"radius-category",moduleFactory:e=>new hE(e)},tte=(xt(),D(wt)),{AND:HH,Default:WH,GREATER_THAN:ite,LESS_THAN:nte,NUMBER_OR_NAN:UH,Validate:KH,normalisedExtentWithMetadata:ate,LinearScale:ote}=tte._ModuleSupport,c2=class extends j_{constructor(e){super(e,new ote),this.shape="polygon",this.min=NaN,this.max=NaN}prepareTickData(e){var a;let{scale:t}=this,n=(a=t.getDomain)==null?void 0:a.call(t)[1];return e.filter(({tick:h})=>h!==n).sort((h,S)=>S.tick-h.tick)}getTickRadius(e){let{scale:t}=this,n=t.range[0],a=n*this.innerRadiusRatio;return n-e.translationY+a}normaliseDataDomain(e){let{min:t,max:n}=this,{extent:a,clipped:h}=ate(e,t,n);return{domain:a,clipped:h}}};c2.className="RadiusNumberAxis",c2.type="radius-number",ve([KH(HH(UH,nte("max"))),WH(NaN)],c2.prototype,"min",2),ve([KH(HH(UH,ite("min"))),WH(NaN)],c2.prototype,"max",2);var rte={type:"axis",optionsKey:"axes[]",packageType:"enterprise",chartTypes:["polar"],identifier:"radius-number",moduleFactory:e=>new c2(e)},qH=(xt(),D(wt)),{BOOLEAN:ste,POSITIVE_NUMBER:lte,ObserveChanges:YH,Validate:XH}=qH._ModuleSupport,yB=class extends qH._ModuleSupport.BaseModuleInstance{constructor(e){super(),this.ctx=e,this.enabled=!0,e.animationManager.skip(!1)}};ve([YH((e,t)=>{e.ctx.animationManager.skip(!t)}),XH(ste)],yB.prototype,"enabled",2),ve([YH((e,t)=>{e.ctx.animationManager.defaultDuration=t}),XH(lte,{optional:!0})],yB.prototype,"duration",2);var cte={type:"root",optionsKey:"animation",packageType:"enterprise",chartTypes:["cartesian","polar","hierarchy","topology","flow-proportion","standalone","gauge"],moduleFactory:e=>new yB(e),themeTemplate:{animation:{enabled:!0}}},V_=(xt(),D(wt)),bB=(xt(),D(wt)),dte='<div contenteditable="plaintext-only" class="ag-charts-text-input__textarea" tabindex="0"></div>',{focusCursorAtEnd:ute}=bB._ModuleSupport,ZH="text-input",$H="canvas-overlay",hte=class extends bB._ModuleSupport.BaseModuleInstance{constructor(e){super(),this.ctx=e,this.layout={getTextInputCoords:()=>({x:0,y:0}),getTextPosition:()=>"center",alignment:"center",textAlign:"center"},this.visible=!1,this.element=e.domManager.addChild($H,ZH),this.element.classList.add("ag-charts-text-input"),this.destroyFns.push(()=>e.domManager.removeChild($H,ZH))}setKeyDownHandler(e){this.element.addEventListener("keydown",e),this.destroyFns.push(()=>this.element.removeEventListener("keydown",e))}show(e){var n,a,h,S,E,L,_,N,V,q,Y,J,re,ce,he;this.element.innerHTML=dte;let t=this.element.firstElementChild;t.isContentEditable||(t.contentEditable="true"),t.setAttribute("placeholder",this.ctx.localeManager.t((n=e.placeholderText)!=null?n:"inputTextareaPlaceholder")),(a=e.styles)!=null&&a.placeholderColor&&t.style.setProperty("--ag-charts-input-placeholder-color",(h=e.styles)==null?void 0:h.placeholderColor),t.innerText=(S=e.text)!=null?S:"",t.style.color=(L=(E=e.styles)==null?void 0:E.color)!=null?L:"inherit",t.style.fontFamily=(N=(_=e.styles)==null?void 0:_.fontFamily)!=null?N:"inherit",t.style.fontSize=(V=e.styles)!=null&&V.fontSize?`${e.styles.fontSize}px`:"inherit",t.style.fontStyle=(Y=(q=e.styles)==null?void 0:q.fontStyle)!=null?Y:"inherit",t.style.fontWeight=typeof((J=e.styles)==null?void 0:J.fontWeight)=="number"?`${e.styles.fontWeight}`:(ce=(re=e.styles)==null?void 0:re.fontWeight)!=null?ce:"inherit",ute(t),t.addEventListener("input",()=>{var me;this.updatePosition(),(me=e.onChange)==null||me.call(e,this.getValue(),this.getBBox())}),t.addEventListener("click",me=>{me.stopPropagation()}),e.layout&&(this.layout=e.layout,this.updatePosition()),(he=e.onChange)==null||he.call(e,this.getValue(),this.getBBox()),this.visible=!0}hide(){this.element.innerHTML="",this.layout={getTextInputCoords:()=>({x:0,y:0}),getTextPosition:()=>"center",alignment:"center",textAlign:"center"},this.visible=!1}isVisible(){return this.visible}updateColor(e){this.element.firstElementChild&&(this.element.firstElementChild.style.color=e)}updateFontSize(e){if(this.element.firstElementChild)return this.element.firstElementChild.style.fontSize=`${e}px`,this.updatePosition(),this.getBBox()}getValue(){if(this.element.firstElementChild)return this.element.firstElementChild.innerText.trim()}updatePosition(){let{element:e}=this,t=e.firstElementChild;if(!t)return;let n=this.ctx.domManager.getBoundingClientRect(),{width:a,getTextInputCoords:h,getTextPosition:S,alignment:E,textAlign:L}=this.layout;e.style.setProperty("width",a?`${a}px`:"unset");let _=t.getBoundingClientRect(),N=h(_.height),V=N.x;E==="center"?V-=(a!=null?a:_.width)/2:E==="right"&&(V-=a!=null?a:_.width);let q=S(),Y=N.y;q==="center"?Y-=_.height/2:q==="bottom"&&(Y-=_.height),e.style.setProperty("top",`${Y}px`),e.style.setProperty("left",`${V}px`),e.style.setProperty("max-width",`${n.width-V}px`),e.style.setProperty("text-align",E),t.style.setProperty("text-align",L)}getBBox(){let{left:e,top:t,width:n,height:a}=this.element.getBoundingClientRect();return new bB._ModuleSupport.BBox(e,t,n,a)}},gte=(xt(),D(wt)),{BOOLEAN:pte,BaseProperties:mte,Validate:QH,UNION:fte}=gte._ModuleSupport,vte=fte(["x","y","xy"],"an axis type"),CB=class extends mte{constructor(){super(...arguments),this.enabled=!0,this.axes="y"}};ve([QH(pte)],CB.prototype,"enabled",2),ve([QH(vte,{optional:!0})],CB.prototype,"axes",2);var yte=(xt(),D(wt)),SB=(e=>(e.Line="line",e.HorizontalLine="horizontal-line",e.VerticalLine="vertical-line",e.DisjointChannel="disjoint-channel",e.ParallelChannel="parallel-channel",e.FibonacciRetracement="fibonacci-retracement",e.Callout="callout",e.Comment="comment",e.Note="note",e.Text="text",e.Arrow="arrow",e.ArrowUp="arrow-up",e.ArrowDown="arrow-down",e.DateRange="date-range",e.PriceRange="price-range",e.DatePriceRange="date-price-range",e.QuickDatePriceRange="quick-date-price-range",e))(SB||{}),bte=Object.values(SB);function Cte(e){for(let t of bte)if(t===e)return t}var Ste=(xt(),D(wt)),wte=(xt(),D(wt)),xte=(xt(),D(wt)),{BOOLEAN:d2,COLOR_STRING:wB,DATE:xB,FONT_STYLE:Mte,FONT_WEIGHT:kte,FUNCTION:Ate,LINE_DASH:Dte,LINE_STYLE:Ete,NUMBER:gE,OBJECT:u2,OR:MB,POSITIVE_NUMBER:kB,RATIO:JH,STRING:MR,TEXT_ALIGN:Ite,UNION:H_,BaseProperties:Jk,Validate:_a,generateUUID:Tte}=xte._ModuleSupport,W_=class extends Jk{};ve([_a(MB(MR,gE,xB))],W_.prototype,"x",2),ve([_a(gE)],W_.prototype,"y",2);var Rte=class extends Ju(yw(nW(Jk))){},AB=class extends Ju(yw(bC(IB(fE(Jk))))){constructor(){super(...arguments),this.cornerRadius=2}};ve([_a(d2)],AB.prototype,"enabled",2),ve([_a(kB)],AB.prototype,"cornerRadius",2);var Pte=class extends bC(Jk){},Lte=class extends Ju(yw(bC(Jk))){},pE=class extends fE(Jk){constructor(){super(...arguments),this.label="",this.position="top",this.alignment="left"}};ve([_a(MR)],pE.prototype,"label",2),ve([_a(H_(["top","center","bottom"]),{optional:!0})],pE.prototype,"position",2),ve([_a(H_(["left","center","right"]),{optional:!0})],pE.prototype,"alignment",2);var Ote=class extends fE(Jk){},h2=class extends fE(Jk){constructor(){super(...arguments),this.label=""}};ve([_a(MR)],h2.prototype,"label",2),ve([_a(H_(["top","inside","bottom"]),{optional:!0})],h2.prototype,"position",2),ve([_a(H_(["left","center","right"]),{optional:!0})],h2.prototype,"alignment",2);function mE(e){class t extends Fte(nW(e)){constructor(){super(...arguments),this.id=Tte()}isValidWithContext(a,h){return super.isValid(h)}}return t}function DB(e){class t extends e{constructor(){super(...arguments),this.start=new W_,this.end=new W_}}return ve([_a(u2)],t.prototype,"start",2),ve([_a(u2)],t.prototype,"end",2),t}function eW(e){class t extends e{}return ve([_a(MB(MR,gE,xB))],t.prototype,"x",2),ve([_a(gE)],t.prototype,"y",2),t}function tW(e){class t extends e{}return ve([_a(MB(MR,gE,xB))],t.prototype,"value",2),t}function EB(e){class t extends e{constructor(){super(...arguments),this.background=new Pte}}return ve([_a(u2,{optional:!0})],t.prototype,"background",2),t}function eA(e){class t extends e{constructor(){super(...arguments),this.handle=new Lte}}return ve([_a(u2,{optional:!0})],t.prototype,"handle",2),t}function iW(e){class t extends e{constructor(){super(...arguments),this.axisLabel=new AB}}return ve([_a(u2,{optional:!0})],t.prototype,"axisLabel",2),t}function IB(e){class t extends e{constructor(){super(...arguments),this.textAlign="center"}}return ve([_a(kB,{optional:!0})],t.prototype,"padding",2),ve([_a(Ite,{optional:!0})],t.prototype,"textAlign",2),ve([_a(Ate,{optional:!0})],t.prototype,"formatter",2),t}function _te(e){class t extends e{}return t}function TB(e){class t extends e{}return ve([_a(d2,{optional:!0})],t.prototype,"extendStart",2),ve([_a(d2,{optional:!0})],t.prototype,"extendEnd",2),t}function Fte(e){class t extends e{}return ve([_a(d2,{optional:!0})],t.prototype,"locked",2),t}function RB(e){class t extends e{setLocaleManager(a){var h;(h=this.localeManager)!=null||(this.localeManager=a)}}return t}function nW(e){class t extends e{}return ve([_a(d2,{optional:!0})],t.prototype,"visible",2),t}function bC(e){class t extends e{}return ve([_a(wB,{optional:!0})],t.prototype,"fill",2),ve([_a(JH,{optional:!0})],t.prototype,"fillOpacity",2),t}function Ju(e){class t extends e{}return ve([_a(wB,{optional:!0})],t.prototype,"stroke",2),ve([_a(JH,{optional:!0})],t.prototype,"strokeOpacity",2),ve([_a(gE,{optional:!0})],t.prototype,"strokeWidth",2),t}function yw(e){class t extends e{constructor(){super(...arguments),this.lineCap=void 0,this.computedLineDash=void 0}}return ve([_a(Dte,{optional:!0})],t.prototype,"lineDash",2),ve([_a(gE,{optional:!0})],t.prototype,"lineDashOffset",2),ve([_a(Ete,{optional:!0})],t.prototype,"lineStyle",2),t}function fE(e){class t extends e{constructor(){super(...arguments),this.fontSize=12,this.fontFamily="Verdana, sans-serif"}}return ve([_a(Mte,{optional:!0})],t.prototype,"fontStyle",2),ve([_a(kte,{optional:!0})],t.prototype,"fontWeight",2),ve([_a(kB)],t.prototype,"fontSize",2),ve([_a(MR)],t.prototype,"fontFamily",2),ve([_a(wB,{optional:!0})],t.prototype,"color",2),t}var Nte=(xt(),D(wt));function bw(e,t){if(e.start==null||e.end==null)return;let n=qc(e.start,t),a=qc(e.end,t);if(!(n==null||a==null))return{x1:n.x,y1:n.y,x2:a.x,y2:a.y}}function qc(e,t){let n=vE(e.x,t.xAxis),a=vE(e.y,t.yAxis);return{x:n,y:a}}function vE(e,t){var a;if(e==null)return 0;let n=((a=t.scale.bandwidth)!=null?a:0)/2;return t.scale.convert(e)+n}function Es(e,t){let n=g2(e.x,t.xAxis),a=g2(e.y,t.yAxis);return{x:n,y:a}}function g2(e,t){var a;let n=((a=t.scale.bandwidth)!=null?a:0)/2;return t.continuous?t.scaleInvert(e-n):t.scaleInvertNearest(e-n)}var zte=(xt(),D(wt)),{BaseProperties:Bte}=zte._ModuleSupport,PB=class extends mE(DB(eA(Bte))){constructor(){super(...arguments),this.snapToAngle=45}isValidWithContext(e,t){return super.isValid(t)}getDefaultColor(e){}getDefaultOpacity(e){}},{STRING:Gte,Validate:jte}=Nte._ModuleSupport,aW=class extends RB(IB(fE(PB))){constructor(){super(...arguments),this.text="",this.position="top",this.alignment="left",this.placement="inside",this.placeholderText="inputTextareaPlaceholder"}isValidWithContext(e,t){return super.isValid(t)}getDefaultColor(e){return this.color}getDefaultOpacity(e){}getPlaceholderColor(){}getPadding(){let{padding:e=0}=this;return{top:e,right:e,bottom:e,left:e}}getText(){var n;let e=this.text.length==0,t=this.text;return e&&(t=(n=this.placeholderText)!=null?n:"",this.localeManager&&(t=this.localeManager.t(t))),{text:t,isPlaceholder:e}}getTextInputCoords(e,t){return qc(this.end,e)}getTextPosition(){return this.position}};ve([jte(Gte)],aW.prototype,"text",2);var{STRING:Vte,Validate:Hte,isObject:Wte,Color:oW}=wte._ModuleSupport,Ute={top:6,right:12,bottom:9,left:12},my=class extends bC(Ju(aW)){constructor(){super(...arguments),this.type="callout",this.position="bottom",this.alignment="left"}static is(e){return Wte(e)&&e.type==="callout"}getDefaultColor(e){switch(e){case"fill-color":return this.fill;case"line-color":return this.stroke;case"text-color":default:return this.color}}getDefaultOpacity(e){switch(e){case"fill-color":return this.fillOpacity;case"line-color":return this.strokeOpacity;case"text-color":default:return}}getPlaceholderColor(){var a;let{r:e,g:t,b:n}=oW.fromString((a=this.color)!=null?a:"#888888");return new oW(e,t,n,.66).toString()}getPadding(){let{padding:e}=this;return e==null?pe({},Ute):{top:e,right:e,bottom:e,left:e}}getTextInputCoords(e,t){var E,L;let n=super.getTextInputCoords(e,t),a=this.getPadding(),h=typeof a=="number"?a:(E=a==null?void 0:a.left)!=null?E:0,S=typeof a=="number"?a:(L=a==null?void 0:a.bottom)!=null?L:0;return{x:n.x+h,y:n.y-S}}};ve([Hte(Vte)],my.prototype,"type",2);var Kte=(xt(),D(wt)),qte=(xt(),D(wt)),{STRING:Yte,BaseProperties:Xte,Validate:Zte}=qte._ModuleSupport,U_=class extends mE(eW(eA(IB(fE(Xte))))){constructor(){super(...arguments),this.text="",this.position="top",this.alignment="left",this.placement="inside",this.placeholderText="inputTextareaPlaceholder"}isValidWithContext(e,t){return super.isValid(t)}getDefaultColor(e){return this.color}getDefaultOpacity(e){}getPlaceholderColor(){}getPadding(){let{padding:e=0}=this;return{top:e,right:e,bottom:e,left:e}}getText(){var n;let e=this.text.length==0;return{text:e?(n=this.placeholderText)!=null?n:"":this.text,isPlaceholder:e}}getTextInputCoords(e,t){return qc(this,e)}getTextPosition(){return this.position}};ve([Zte(Yte)],U_.prototype,"text",2);var{STRING:$te,Validate:Qte,isObject:Jte,Color:rW}=Kte._ModuleSupport,K_={top:8,right:14,bottom:8,left:14},CC=class extends bC(Ju(U_)){constructor(){super(...arguments),this.type="comment",this.position="bottom",this.alignment="left"}static is(e){return Jte(e)&&e.type==="comment"}getDefaultColor(e){switch(e){case"fill-color":return this.fill;case"line-color":return this.stroke;case"text-color":default:return this.color}}getDefaultOpacity(e){switch(e){case"fill-color":return this.fillOpacity;case"line-color":return this.strokeOpacity;case"text-color":default:return}}getPlaceholderColor(){var a;let{r:e,g:t,b:n}=rW.fromString((a=this.color)!=null?a:"#888888");return new rW(e,t,n,.66).toString()}getPadding(){let{padding:e,fontSize:t}=this;return e==null?{top:Math.max(t*.4,K_.top),bottom:Math.max(t*.4,K_.bottom),left:Math.max(t*.8,K_.left),right:Math.max(t*.8,K_.right)}:{top:e,right:e,bottom:e,left:e}}getTextInputCoords(e,t){let n=super.getTextInputCoords(e,t),a=this.getPadding();return{x:n.x+a.left,y:n.y-a.bottom}}};ve([Qte($te)],CC.prototype,"type",2);var eie=(xt(),D(wt)),tie=(xt(),D(wt)),{Vec2:yE}=tie._ModuleSupport;function p2(e,t){return e?"dashed":t!=null?t:"solid"}function sW(e,t){switch(t){case"solid":return[];case"dashed":return[e*4,e*2];case"dotted":return[0,e*2]}}function kR(e,t,n,a){var S;let h=p2(e,n);return(S=t!=null?t:e)!=null?S:sW(a!=null?a:1,h)}function AR(e,t,n){let a=p2(t,n);return(e!=null?e:a==="dotted")?"round":void 0}function iie(e,t){let[n,a]=yE.from(e),h=t.height,S=yE.gradient(a,n,h),E=yE.intercept(a,S,h),L=[{x:n.x,y:h!=null?h:0},{x:n.x,y:h==null?t.height:h-t.height}];if(S===1/0)return L;let _=[yE.intersectAtY(S,E,0,h),yE.intersectAtY(S,E,t.height,h),yE.intersectAtX(S,E,0,h),yE.intersectAtX(S,E,t.width,h)];return _=_.filter(N=>N.x>=t.x&&N.x<=t.width&&N.y>=t.y&&N.y<=t.height).sort((N,V)=>N.x===V.x?0:N.x<V.x?-1:1),_.length!==2?L:_}var{BOOLEAN:q_,OBJECT:DR,STRING:Y_,BaseProperties:LB,Validate:Kg,isObject:X_}=eie._ModuleSupport,nie=class extends Ju(LB){},OB=class extends fE(bC(Ju(LB))){constructor(){super(...arguments),this.divider=new nie}};ve([Kg(DR,{optional:!0})],OB.prototype,"divider",2);var _B=class extends bC(Ju(eA(LB))){constructor(){super(...arguments),this.statistics=new OB}};ve([Kg(DR,{optional:!0})],_B.prototype,"statistics",2);var ER=class extends RB(EB(Ju(yw(PB)))){constructor(){super(...arguments),this.direction="both",this.hasDateRange=!1,this.hasPriceRange=!1,this.statistics=new OB,this.getVolume=()=>{},this.text=new pE}getDefaultColor(e){switch(e){case"fill-color":return this.background.fill;case"line-color":return this.stroke;case"text-color":return this.text.color}}getDefaultOpacity(e){switch(e){case"fill-color":return this.background.fillOpacity;case"line-color":return this.strokeOpacity}}getLineDash(){return kR(this.lineDash,this.computedLineDash,this.lineStyle,this.strokeWidth)}getLineCap(){return AR(this.lineCap,this.lineDash,this.lineStyle)}};ve([Kg(DR,{optional:!0})],ER.prototype,"statistics",2),ve([Kg(DR,{optional:!0})],ER.prototype,"text",2);function FB(e){class t extends e{constructor(){super(...arguments),this.hasDateRange=!0}}return t}function NB(e){class t extends e{constructor(){super(...arguments),this.hasPriceRange=!0}}return t}var zf=class extends FB(ER){constructor(){super(...arguments),this.type="date-range",this.direction="horizontal"}static is(e){return X_(e)&&e.type==="date-range"}};ve([Kg(Y_)],zf.prototype,"type",2),ve([Kg(q_,{optional:!0})],zf.prototype,"extendAbove",2),ve([Kg(q_,{optional:!0})],zf.prototype,"extendBelow",2);var Bf=class extends NB(ER){constructor(){super(...arguments),this.type="price-range",this.direction="vertical"}static is(e){return X_(e)&&e.type==="price-range"}};ve([Kg(Y_)],Bf.prototype,"type",2),ve([Kg(q_,{optional:!0})],Bf.prototype,"extendLeft",2),ve([Kg(q_,{optional:!0})],Bf.prototype,"extendRight",2);var Cw=class extends FB(NB(ER)){constructor(){super(...arguments),this.type="date-price-range",this.direction="both"}static is(e){return X_(e)&&e.type==="date-price-range"}};ve([Kg(Y_)],Cw.prototype,"type",2);var lm=class extends FB(NB(ER)){constructor(){super(...arguments),this.type="quick-date-price-range",this.up=new _B,this.down=new _B,this.direction="both"}static is(e){return X_(e)&&e.type==="quick-date-price-range"}};ve([Kg(Y_)],lm.prototype,"type",2),ve([Kg(DR,{optional:!0})],lm.prototype,"up",2),ve([Kg(DR,{optional:!0})],lm.prototype,"down",2);var aie=(xt(),D(wt)),oie=(xt(),D(wt)),{TextWrapper:rie,CachedTextMeasurerPool:sie,BBox:lie}=oie._ModuleSupport,Z_=1.38;function lW(e){return{font:{fontFamily:e.fontFamily,fontSize:e.fontSize,fontStyle:e.fontStyle,fontWeight:e.fontWeight},textAlign:e.textAlign,textBaseline:e.position=="center"?"middle":e.position,lineHeight:Z_,avoidOrphans:!1,textWrap:"always"}}function $_(e,t,n){return n?rie.wrapText(t,et(pe({},lW(e)),{maxWidth:n})):t}function cie(e,t){var E;let n=lW(e),{lineMetrics:a,width:h}=sie.measureLines(t,n),S=a.length*((E=e.fontSize)!=null?E:14)*Z_;return{width:h,height:S}}function zB(e,t,n,a){var E,L;let h=(E=a==null?void 0:a.width)!=null?E:0,S=(L=a==null?void 0:a.height)!=null?L:0;if(!a){let _=e.width!=null?$_(e,t,e.width):t;({width:h,height:S}=cie(e,_))}return new lie(n.x,n.y,h,S)}function cW(e,t,n,a,{x:h,y:S}){let{visible:E=!0,fontFamily:L,fontSize:_=14,fontStyle:N,fontWeight:V,textAlign:q}=a,Y=_*Z_,J=a.position=="center"?"middle":a.position,re=n?a.getPlaceholderColor():a.color;e.setProperties({x:h,y:S,visible:E,text:t,fill:re,fontFamily:L,fontSize:_,fontStyle:N,fontWeight:V,textAlign:q,lineHeight:Y,textBaseline:J})}var{OBJECT:die,STRING:uie,BaseProperties:hie,Validate:dW,isObject:gie,clamp:pie}=aie._ModuleSupport,mie=10,fie=11,uW=20,vie=22,yie=10,hW=uW+yie,gW=34,bie=class extends bC(Ju(hie)){},qg=class extends bC(Ju(U_)){constructor(){super(...arguments),this.type="note",this.background=new bie,this.position="bottom",this.alignment="center",this.width=200}static is(e){return gie(e)&&e.type==="note"}getDefaultColor(e){switch(e){case"line-color":return this.fill;case"text-color":return this.color}}getDefaultOpacity(e){switch(e){case"line-color":return this.fillOpacity;case"text-color":return}}getPadding(){var t;let e=(t=this.padding)!=null?t:mie;return{top:e,right:e,bottom:e,left:e}}getTextInputCoords(e,t){let{width:n,text:a}=this,h=super.getTextInputCoords(e,t),S=this.getPadding().top,E=zB(this,a,h);E.x=pie(n/2,E.x,e.seriesRect.width-n/2);let L=E.y-hW-S*2,_=E.y+fie+S*2,N=Math.max(E.height,t);return L-N-gW<0?(E.y=_,this.position="top"):(E.y=L+S,this.position="bottom"),{x:E.x,y:E.y}}};ve([dW(uie)],qg.prototype,"type",2),ve([dW(die,{optional:!0})],qg.prototype,"background",2);var Cie=(xt(),D(wt)),{BaseProperties:Sie}=Cie._ModuleSupport,wie=class extends mE(eW(eA(Sie))){isValidWithContext(e,t){return super.isValid(t)}getDefaultColor(e){}getDefaultOpacity(e){}},BB=class BZ extends bC(wie){constructor(){super(...arguments),this.size=32}static is(t){return t instanceof BZ}getDefaultColor(t){return t==="fill-color"?this.fill:void 0}getDefaultOpacity(t){return t==="fill-color"?this.fillOpacity:void 0}},xie=(xt(),D(wt)),Mie=(xt(),D(wt)),{Logger:GB}=Mie._ModuleSupport;function m2(e,t,n,a){let h=!0;return h&&(h=fy(e,t.start,n,a&&`${a}[start] `)),h&&(h=fy(e,t.end,n,a&&`${a}[end] `)),h}function pW(e,t,n){let a=t.direction==="horizontal"?e.yAxis:e.xAxis,h=jB(t.value,a);return!h&&n&&GB.warnOnce(`${n}is outside the axis domain, ignoring. - value: [${t.value}]]`),h}function fy(e,t,n,a){if(t.x==null||t.y==null)return a&&GB.warnOnce(`${a}requires both an [x] and [y] property, ignoring.`),!1;let h=(n==null?void 0:n.x)===!1?!0:jB(t.x,e.xAxis),S=(n==null?void 0:n.y)===!1?!0:jB(t.y,e.yAxis);if(!h||!S){let E="x & y domains";return h&&(E="y domain"),S&&(E="x domain"),a&&GB.warnOnce(`${a}is outside the ${E}, ignoring. - x: [${t.x}], y: ${t.y}]`),!1}return!0}function jB(e,t){var a,h;let n=(h=(a=t.scale).getDomain)==null?void 0:h.call(a);return n&&t.continuous?e>=n[0]&&e<=n.at(-1):!0}function kie(e){return(e==null?void 0:e.x)!=null&&(e==null?void 0:e.y)!=null}var{OBJECT:mW,STRING:fW,BaseProperties:vW,Validate:Q_,isObject:yW}=xie._ModuleSupport,eh=class extends mE(tW(eA(iW(Ju(yw(vW)))))){constructor(){super(...arguments),this.direction="horizontal",this.type="horizontal-line",this.text=new pE}static is(e){return yW(e)&&e.type==="horizontal-line"}isValidWithContext(e,t){return super.isValid(t)&&pW(e,this,t)}getDefaultColor(){return this.stroke}getDefaultOpacity(){return this.strokeOpacity}getLineDash(){return kR(this.lineDash,this.computedLineDash,this.lineStyle,this.strokeWidth)}getLineCap(){return AR(this.lineCap,this.lineDash,this.lineStyle)}};ve([Q_(fW)],eh.prototype,"type",2),ve([Q_(mW,{optional:!0})],eh.prototype,"text",2);var SC=class extends mE(tW(eA(iW(Ju(yw(vW)))))){constructor(){super(...arguments),this.direction="vertical",this.type="vertical-line",this.text=new pE}static is(e){return yW(e)&&e.type==="vertical-line"}isValidWithContext(e,t){return super.isValid(t)&&pW(e,this,t)}getDefaultColor(){return this.stroke}getDefaultOpacity(){return this.strokeOpacity}getLineDash(){return kR(this.lineDash,this.computedLineDash,this.lineStyle,this.strokeWidth)}getLineCap(){return AR(this.lineCap,this.lineDash,this.lineStyle)}};ve([Q_(fW)],SC.prototype,"type",2),ve([Q_(mW,{optional:!0})],SC.prototype,"text",2);var Aie=(xt(),D(wt)),{NUMBER:bW,OBJECT:Die,STRING:Eie,BaseProperties:Iie,Validate:J_,isObject:Tie,Logger:Rie}=Aie._ModuleSupport,Gf=class extends mE(EB(DB(eA(TB(Ju(yw(Iie))))))){constructor(){super(...arguments),this.type="disjoint-channel",this.text=new h2,this.snapToAngle=45}static is(e){return Tie(e)&&e.type==="disjoint-channel"}get bottom(){let e={start:{x:this.start.x,y:this.start.y},end:{x:this.end.x,y:this.end.y}};return typeof e.start.y=="number"&&typeof e.end.y=="number"?(e.start.y-=this.startHeight,e.end.y-=this.endHeight):Rie.warnOnce(`Annotation [${this.type}] can only be used with a numeric y-axis.`),e}isValidWithContext(e,t){return super.isValid(t)&&m2(e,this,{y:!1},t)&&m2(e,this.bottom,{y:!1},t)}getDefaultColor(e){switch(e){case"fill-color":return this.background.fill;case"line-color":return this.stroke;case"text-color":return this.text.color}}getDefaultOpacity(e){switch(e){case"fill-color":return this.background.fillOpacity;case"line-color":return this.strokeOpacity}}getLineDash(){return kR(this.lineDash,this.computedLineDash,this.lineStyle,this.strokeWidth)}getLineCap(){return AR(this.lineCap,this.lineDash,this.lineStyle)}};ve([J_(Eie)],Gf.prototype,"type",2),ve([J_(bW)],Gf.prototype,"startHeight",2),ve([J_(bW)],Gf.prototype,"endHeight",2),ve([J_(Die,{optional:!0})],Gf.prototype,"text",2);var Pie=(xt(),D(wt)),Lie=(xt(),D(wt)),Oie=(xt(),D(wt)),{OBJECT:_ie,STRING:CW,Validate:VB,isObject:SW}=Oie._ModuleSupport,eF=class extends RB(_te(TB(Ju(yw(PB))))){constructor(){super(...arguments),this.text=new pE}isValidWithContext(e,t){return super.isValid(t)&&m2(e,this,void 0,t)}getDefaultColor(e){switch(e){case"line-color":return this.stroke;case"text-color":return this.text.color}}getDefaultOpacity(){return this.strokeOpacity}getLineDash(){return kR(this.lineDash,this.computedLineDash,this.lineStyle,this.strokeWidth)}getLineCap(){return AR(this.lineCap,this.lineDash,this.lineStyle)}};ve([VB(_ie,{optional:!0})],eF.prototype,"text",2);var Sw=class extends eF{constructor(){super(...arguments),this.type="arrow",this.endCap="arrow"}static is(e){return SW(e)&&e.type==="arrow"}};ve([VB(CW)],Sw.prototype,"type",2);var ww=class extends eF{constructor(){super(...arguments),this.type="line"}static is(e){return SW(e)&&e.type==="line"}};ve([VB(CW)],ww.prototype,"type",2);var{OBJECT:Fie,BOOLEAN:HB,COLOR_STRING:Nie,COLOR_STRING_ARRAY:zie,Validate:bE,predicateWithMessage:Bie,isFiniteNumber:Gie}=Lie._ModuleSupport,jie=[10,6,4],Vie=Bie(e=>Gie(e)&&jie.includes(e),"Number of fibonacci ranges, 10, 6 or 4"),tA=class extends eF{constructor(){super(...arguments),this.label=new Ote,this.reverse=!1,this.showFill=!0,this.isMultiColor=!0,this.strokes=[],this.bands=10}getDefaultColor(e){var t;switch(e){case"line-color":return(t=this.rangeStroke)!=null?t:this.stroke;case"text-color":return this.text.color}}};ve([bE(Fie,{optional:!0})],tA.prototype,"label",2),ve([bE(HB,{optional:!0})],tA.prototype,"reverse",2),ve([bE(HB,{optional:!0})],tA.prototype,"showFill",2),ve([bE(HB,{optional:!0})],tA.prototype,"isMultiColor",2),ve([bE(zie,{optional:!0})],tA.prototype,"strokes",2),ve([bE(Nie,{optional:!0})],tA.prototype,"rangeStroke",2),ve([bE(Vie,{optional:!0})],tA.prototype,"bands",2);var{STRING:Hie,Validate:Wie,isObject:Uie}=Pie._ModuleSupport,xw=class extends tA{constructor(){super(...arguments),this.type="fibonacci-retracement"}static is(e){return Uie(e)&&e.type==="fibonacci-retracement"}};ve([Wie(Hie)],xw.prototype,"type",2);var Kie=(xt(),D(wt)),{NUMBER:qie,STRING:Yie,OBJECT:wW,BaseProperties:Xie,Validate:tF,isObject:Zie,Logger:$ie}=Kie._ModuleSupport,jf=class extends mE(EB(DB(eA(TB(Ju(yw(Xie))))))){constructor(){super(...arguments),this.type="parallel-channel",this.middle=new Rte,this.text=new h2,this.snapToAngle=45}static is(e){return Zie(e)&&e.type==="parallel-channel"}get bottom(){let e={start:{x:this.start.x,y:this.start.y},end:{x:this.end.x,y:this.end.y}};return typeof e.start.y=="number"&&typeof e.end.y=="number"?(e.start.y-=this.height,e.end.y-=this.height):$ie.warnOnce(`Annotation [${this.type}] can only be used with a numeric y-axis.`),e}isValidWithContext(e,t){return super.isValid(t)&&m2(e,this,{y:!1},t)&&m2(e,this.bottom,{y:!1},t)}getDefaultColor(e){switch(e){case"fill-color":return this.background.fill;case"line-color":return this.stroke;case"text-color":return this.text.color}}getDefaultOpacity(e){switch(e){case"fill-color":return this.background.fillOpacity;case"line-color":return this.strokeOpacity}}getLineDash(){return kR(this.lineDash,this.computedLineDash,this.lineStyle,this.strokeWidth)}getLineCap(){return AR(this.lineCap,this.lineDash,this.lineStyle)}};ve([tF(Yie)],jf.prototype,"type",2),ve([tF(qie)],jf.prototype,"height",2),ve([tF(wW,{optional:!0})],jf.prototype,"middle",2),ve([tF(wW,{optional:!0})],jf.prototype,"text",2);var Qie=(xt(),D(wt)),{STRING:Jie,Validate:ene,isObject:tne}=Qie._ModuleSupport,Mw=class extends U_{constructor(){super(...arguments),this.type="text",this.position="bottom"}static is(e){return tne(e)&&e.type==="text"}};ve([ene(Jie)],Mw.prototype,"type",2);function iA(e){return lm.is(e)}function iF(e){return ww.is(e)||eh.is(e)||SC.is(e)||Sw.is(e)||xW(e)}function kw(e){return Gf.is(e)||jf.is(e)}function xW(e){return xw.is(e)}function wC(e){return my.is(e)||CC.is(e)||qg.is(e)||Mw.is(e)}function f2(e){return zf.is(e)||Bf.is(e)||Cw.is(e)||lm.is(e)}var{isObject:ine}=Ste._ModuleSupport;function WB(e){return wC(e)&&!qg.is(e)}function nA(e){return iF(e)||kw(e)||f2(e)&&!lm.is(e)}function nne(e){return iF(e)||kw(e)||f2(e)||my.is(e)||qg.is(e)}function ane(e){return qg.is(e)}function one(e){return kw(e)||f2(e)||my.is(e)||CC.is(e)||BB.is(e)}function rne(e){return wC(e)&&!qg.is(e)}function IR(e){return(iF(e)||kw(e)||f2(e))&&!iA(e)&&ine(e.text)}function sne(e,t){"fontSize"in e&&(e.fontSize=t),IR(e)&&(e.text.fontSize=t)}function MW(e,t){var E,L,_;let n=(L=(E=t==null?void 0:t.strokeWidth)!=null?E:e.strokeWidth)!=null?L:1,a=(_=t==null?void 0:t.type)!=null?_:e.lineStyle,h=a!=null?a:p2(e.lineDash,a),S=sW(n,h);e.strokeWidth=n,e.computedLineDash=S,e.lineStyle=h,e.lineCap=h==="dotted"?"round":void 0}function nF(e,t,n,a,h,S){switch(t){case"fill-color":{"fill"in e&&(e.fill=a),"fillOpacity"in e&&(e.fillOpacity=h),"background"in e&&(e.background.fill=a,e.background.fillOpacity=h);break}case"line-color":{"axisLabel"in e&&(e.axisLabel.fill=a,e.axisLabel.fillOpacity=h,e.axisLabel.stroke=a,e.axisLabel.strokeOpacity=h),"fill"in e&&"fillOpacity"in e&&ane(e)?(e.fill=a,e.fillOpacity=h):("strokeOpacity"in e&&(e.strokeOpacity=h),"isMultiColor"in e&&"rangeStroke"in e?(e.isMultiColor=S,e.rangeStroke=a):"stroke"in e&&(e.stroke=a));break}case"text-color":{"color"in e&&(e.color=n),IR(e)&&(e.text.color=a);break}}}var{deepClone:Vf}=yte._ModuleSupport,lne=class{constructor(){this.mementoOriginatorKey="annotation-defaults",this.colors=new Map(Object.values(SB).map(e=>[e,new Map([["line-color",void 0],["fill-color",void 0],["text-color",void 0]])])),this.fontSizes=new Map([["callout",void 0],["comment",void 0],["text",void 0],["arrow",void 0],["line",void 0],["disjoint-channel",void 0],["parallel-channel",void 0],["date-range",void 0],["price-range",void 0],["date-price-range",void 0]]),this.lineStyles=new Map([["line",void 0],["horizontal-line",void 0],["vertical-line",void 0],["disjoint-channel",void 0],["parallel-channel",void 0],["arrow",void 0],["date-range",void 0],["price-range",void 0],["date-price-range",void 0]]),this.lineTextAlignments=new Map([["line",void 0],["horizontal-line",void 0],["vertical-line",void 0],["disjoint-channel",void 0],["parallel-channel",void 0],["arrow",void 0],["date-range",void 0],["price-range",void 0],["date-price-range",void 0]]),this.lineTextPositions=new Map([["line",void 0],["horizontal-line",void 0],["vertical-line",void 0],["disjoint-channel",void 0],["parallel-channel",void 0],["arrow",void 0],["date-range",void 0],["price-range",void 0],["date-price-range",void 0]]),this.fibonacciBands=new Map([["fibonacci-retracement",void 0]])}createMemento(){return{colors:Vf(this.colors),fontSizes:Vf(this.fontSizes),lineStyles:Vf(this.lineStyles),lineTextAlignments:Vf(this.lineTextAlignments),lineTextPositions:Vf(this.lineTextPositions),fibonacciBands:Vf(this.fibonacciBands)}}guardMemento(e){return!0}restoreMemento(e,t,n){this.colors=Vf(n.colors),this.fontSizes=Vf(n.fontSizes),this.lineStyles=Vf(n.lineStyles),this.lineTextAlignments=Vf(n.lineTextAlignments),this.lineTextPositions=Vf(n.lineTextPositions),this.fibonacciBands=Vf(n.fibonacciBands)}setDefaultColor(e,t,n,a,h,S){var E;(E=this.colors.get(e))==null||E.set(t,[n,a,h,S])}setDefaultFontSize(e,t){this.fontSizes.set(e,t)}setDefaultLineStyleType(e,t){let n=this.lineStyles.get(e);n?n.type=t:this.lineStyles.set(e,{type:t})}setDefaultLineStyleWidth(e,t){let n=this.lineStyles.get(e);n?n.strokeWidth=t:this.lineStyles.set(e,{strokeWidth:t})}setDefaultLineTextAlignment(e,t){this.lineTextAlignments.set(e,t)}setDefaultLineTextPosition(e,t){this.lineTextPositions.set(e,t)}setDefaultFibonacciBands(e,t){e=="fibonacci-retracement"&&this.fibonacciBands.set(e,t)}applyDefaults(e){for(let[t,n]of this.colors)if(e.type===t)for(let[a,[h,S,E,L]=[]]of n)h&&S&&E!=null&&L!=null&&nF(e,a,h,S,E,L);for(let[t,n]of this.fontSizes)e.type!==t||n==null||sne(e,n);for(let[t,n]of this.lineStyles)e.type!==t||n==null||MW(e,n);for(let[t,n]of this.lineTextPositions)e.type!==t||n==null||(e.text.position=n);for(let[t,n]of this.lineTextAlignments)e.type!==t||n==null||(e.text.alignment=n);for(let[t,n]of this.fibonacciBands)e.type!==t||n==null||(e.bands=n)}},kW=(xt(),D(wt)),AW=(xt(),D(wt)),cne='<div class="ag-charts-color-picker__palette" tabindex="0"></div><div class="ag-charts-color-picker__color-row"><button class="ag-charts-color-picker__multi-color-button" tabindex="0" type="button"></button> <input class="ag-charts-color-picker__hue-input" tabindex="0" type="range" min="0" max="360" value="0"></div><input class="ag-charts-color-picker__alpha-input" tabindex="0" type="range" min="0" max="1" value="1" step="0.01"> <label class="ag-charts-color-picker__color-field"><span class="ag-charts-color-picker__color-label">Color</span> <input class="ag-charts-color-picker__color-input" tabindex="0" value="#000"></label>',{createElement:dne,Color:UB,clamp:aF}=AW._ModuleSupport,DW=e=>{try{let t=UB.fromString(e),[n,a,h]=t.toHSB();return[n,a,h,t.a]}catch(t){return}},EW=class extends AW._ModuleSupport.AnchoredPopover{constructor(e,t){super(e,"color-picker",t),this.hasChanged=!1,this.hideFns.push(()=>{var n;this.hasChanged&&((n=this.onChangeHide)==null||n.call(this))})}show(e){this.hasChanged=!1,this.onChangeHide=e.onChangeHide;let{element:t,initialFocus:n}=this.createColorPicker(e),a=this.showWithChildren([t],pe({initialFocus:n},e));a.classList.add("ag-charts-color-picker"),a.setAttribute("role","dialog")}createColorPicker(e){var ce,he,me,we;let t=(ce=e.isMultiColor)!=null?ce:!1,[n,a,h,S]=(me=DW((he=e.color)!=null?he:"#f00"))!=null?me:[0,1,.5,1];S=(we=e.opacity)!=null?we:S;let E=dne("div","ag-charts-color-picker__content");E.innerHTML=cne,E.ariaLabel=this.ctx.localeManager.t("ariaLabelColorPicker");let L=E.querySelector(".ag-charts-color-picker__palette"),_=E.querySelector(".ag-charts-color-picker__hue-input"),N=E.querySelector(".ag-charts-color-picker__multi-color-button"),V=E.querySelector(".ag-charts-color-picker__alpha-input"),q=E.querySelector(".ag-charts-color-picker__color-input"),Y=E.querySelector(".ag-charts-color-picker__color-label");N.classList.toggle("ag-charts-color-picker__multi-color-button--hidden",!e.hasMultiColorOption);let J=(Me=!0)=>{var Fe;let Le=UB.fromHSB(n,a,h,S).toHexString();if(E.style.setProperty("--h",`${n}`),E.style.setProperty("--s",`${a}`),E.style.setProperty("--v",`${h}`),E.style.setProperty("--a",`${S}`),E.style.setProperty("--color",Le.slice(0,7)),E.style.setProperty("--color-a",Le),_.value=`${n}`,V.value=`${S}`,V.classList.toggle("ag-charts-color-picker__alpha-input--opaque",S===1),N.classList.toggle("ag-charts-color-picker__multi-color-button--active",t),Y.classList.toggle("ag-charts-color-picker__color-label--multi-color",t),document.activeElement!==q&&(q.value=t?"Multi Colour":Le.toUpperCase()),Me||e.color==null){let je=UB.fromHSB(n,a,h,1).toHexString();(Fe=e.onChange)==null||Fe.call(e,Le,je,S,t)}Me&&(this.hasChanged=!0)};J(!1);let re=Me=>{Me.preventDefault();let be=Me.currentTarget;be.focus();let Le=be.getBoundingClientRect(),Fe=({pageX:je,pageY:Xe})=>{t=!1,a=Math.min(Math.max((je-Le.left)/Le.width,0),1),h=1-Math.min(Math.max((Xe-Le.top)/Le.height,0),1),J()};Fe(Me),window.addEventListener("mousemove",Fe),window.addEventListener("mouseup",()=>window.removeEventListener("mousemove",Fe),{once:!0})};return E.addEventListener("mousedown",Me=>{Me.stopPropagation()}),E.addEventListener("keydown",Me=>{switch(Me.stopPropagation(),Me.key){case"Enter":case"Escape":this.hide();break;default:return}Me.preventDefault()}),L.addEventListener("mousedown",re),L.addEventListener("keydown",Me=>{if(Me.key==="ArrowLeft")a=aF(0,a-.01,1);else if(Me.key==="ArrowRight")a=aF(0,a+.01,1);else if(Me.key==="ArrowUp")h=aF(0,h+.01,1);else if(Me.key==="ArrowDown")h=aF(0,h-.01,1);else return;Me.preventDefault(),J()}),N.addEventListener("click",()=>{t=!t,J()}),_.addEventListener("input",Me=>{var be;t=!1,n=(be=Me.currentTarget.valueAsNumber)!=null?be:0,J()}),V.addEventListener("input",Me=>{var be;t=!1,S=(be=Me.currentTarget.valueAsNumber)!=null?be:0,J()}),q.addEventListener("input",Me=>{t=!1;let be=DW(Me.currentTarget.value);be!=null&&([n,a,h,S]=be,J())}),q.addEventListener("blur",()=>J()),q.addEventListener("keydown",Me=>{Me.key==="Enter"&&(Me.currentTarget.blur(),J())}),{element:E,initialFocus:L}}},une=[{label:"toolbarAnnotationsTrendLine",icon:"trend-line-drawing",value:"line"},{label:"toolbarAnnotationsHorizontalLine",icon:"horizontal-line-drawing",value:"horizontal-line"},{label:"toolbarAnnotationsVerticalLine",icon:"vertical-line-drawing",value:"vertical-line"},{label:"toolbarAnnotationsParallelChannel",icon:"parallel-channel-drawing",value:"parallel-channel"},{label:"toolbarAnnotationsDisjointChannel",icon:"disjoint-channel-drawing",value:"disjoint-channel"}],hne=[{label:"toolbarAnnotationsFibonacciRetracement",icon:"fibonacci-retracement-drawing",value:"fibonacci-retracement"}],gne=[{label:"Fibonacci - Extended",value:10},{label:"Fibonacci - 6 Band",value:6},{label:"Fibonacci - 4 Band",value:4}],pne=[{label:"toolbarAnnotationsText",icon:"text-annotation",value:"text"},{label:"toolbarAnnotationsComment",icon:"comment-annotation",value:"comment"},{label:"toolbarAnnotationsCallout",icon:"callout-annotation",value:"callout"},{label:"toolbarAnnotationsNote",icon:"note-annotation",value:"note"}],mne=[{label:"toolbarAnnotationsArrow",icon:"arrow-drawing",value:"arrow"},{label:"toolbarAnnotationsArrowUp",icon:"arrow-up-drawing",value:"arrow-up"},{label:"toolbarAnnotationsArrowDown",icon:"arrow-down-drawing",value:"arrow-down"}],fne=[{label:"toolbarAnnotationsQuickDatePriceRange",icon:"measurer-drawing",value:"quick-date-price-range"},{label:"toolbarAnnotationsDateRange",icon:"date-range-drawing",value:"date-range"},{label:"toolbarAnnotationsPriceRange",icon:"price-range-drawing",value:"price-range"},{label:"toolbarAnnotationsDatePriceRange",icon:"date-price-range-drawing",value:"date-price-range"}],IW=[{strokeWidth:1,label:"1",value:1},{strokeWidth:2,label:"2",value:2},{strokeWidth:3,label:"3",value:3},{strokeWidth:4,label:"4",value:4},{strokeWidth:8,label:"8",value:8}],v2=[{icon:"line-style-solid",altText:"iconAltTextLineStyleSolid",value:"solid"},{icon:"line-style-dashed",altText:"iconAltTextLineStyleDashed",value:"dashed"},{icon:"line-style-dotted",altText:"iconAltTextLineStyleDotted",value:"dotted"}],TW=[{label:"10",value:10},{label:"12",value:12},{label:"14",value:14},{label:"16",value:16},{label:"18",value:18},{label:"22",value:22},{label:"28",value:28},{label:"36",value:36},{label:"46",value:46}],{ARRAY:vne,BOOLEAN:yne,NUMBER:bne,OBJECT:Cne,STRING:Sne,UNION:wne,Color:RW,FloatingToolbar:xne,InteractionState:PW,Listeners:Mne,Menu:KB,PropertiesArray:kne,ToolbarButtonProperties:LW,ToolbarButtonWidget:Ane,Validate:CE}=kW._ModuleSupport,TR=class extends LW{constructor(){super(...arguments),this.checkedOverrides=new LW}};ve([CE(wne(["line-stroke-width","line-style-type","line-color","fill-color","text-color","text-size","delete","settings","lock"]))],TR.prototype,"value",2),ve([CE(Cne,{optional:!0})],TR.prototype,"checkedOverrides",2),ve([CE(Sne,{optional:!0})],TR.prototype,"color",2),ve([CE(bne,{optional:!0})],TR.prototype,"strokeWidth",2),ve([CE(Boolean,{optional:!0})],TR.prototype,"isMultiColor",2);var Dne=class extends Ane{update(e){super.update(e),e.value==="line-stroke-width"&&this.updateLineStrokeWidth(e),(e.value==="fill-color"||e.value==="line-color"||e.value==="text-color")&&this.updateFillColor(e)}updateFillColor(e){var n;let t=this.getElement();t.classList.add("ag-charts-annotations__color-picker-button"),t.classList.toggle("ag-charts-annotations__color-picker-button--multi-color",e.isMultiColor),t.style.setProperty("--color",(n=e.color)!=null?n:null)}updateLineStrokeWidth(e){let t=this.getElement();t.classList.add("ag-charts-annotations__stroke-width-button"),t.style.setProperty("--stroke-width",`${e.strokeWidth}px`)}},Ene=class extends xne{createButtonWidget(){return new Dne(this.localeManager)}},qB=class extends kW._ModuleSupport.BaseProperties{constructor(e,t){super(),this.ctx=e,this.getActiveDatum=t,this.enabled=!0,this.buttons=new kne(TR),this.destroyFns=[],this.events=new Mne,this.visibleButtons=[],this.toolbar=new Ene(this.ctx,"annotation-options"),this.colorPicker=new EW(this.ctx),this.textSizeMenu=new KB(this.ctx,"text-size"),this.lineStyleTypeMenu=new KB(this.ctx,"annotations-line-style-type"),this.lineStrokeWidthMenu=new KB(this.ctx,"annotations-line-stroke-width");let n=e.regionManager.getRegion("series");this.destroyFns.push(this.toolbar.addToolbarListener("button-pressed",this.onButtonPress.bind(this)),this.toolbar.addToolbarListener("toolbar-moved",this.onToolbarMoved.bind(this)),n.addListener("drag-start",this.onDragStart.bind(this),PW.All),n.addListener("drag-end",this.onDragEnd.bind(this),PW.All),()=>this.colorPicker.destroy())}onDragStart(){this.toolbar.ignorePointerEvents()}onDragEnd(){this.toolbar.capturePointerEvents()}destroy(){for(let e of this.destroyFns)e()}addListener(e,t){return this.events.addListener(e,t)}show(){this.toolbar.show({})}hide(){this.toolbar.hide()}updateButtons(e){let t={["line-style-type"]:nA(e),["line-stroke-width"]:nA(e),["line-color"]:nne(e),["text-color"]:rne(e),["fill-color"]:one(e),["text-size"]:WB(e),settings:IR(e),lock:!0,delete:!0};this.visibleButtons=this.buttons.filter(n=>t[n.value]),this.toolbar.clearButtons(),this.toolbar.updateButtons(this.visibleButtons),this.refreshButtons(e)}setAnchorScene(e){this.toolbar.hasBeenDragged()||this.toolbar.setAnchor(e.getAnchor())}hideOverlays(){this.toolbar.clearActiveButton(),this.colorPicker.hide({lastFocus:null}),this.textSizeMenu.hide(),this.lineStyleTypeMenu.hide(),this.lineStrokeWidthMenu.hide(),this.dispatch("hid-overlays")}clearActiveButton(){this.toolbar.clearActiveButton()}updateColors(e){this.updateColorPickerColor("line-color",e.getDefaultColor("line-color"),e.getDefaultOpacity("line-color"),"isMultiColor"in e&&(e==null?void 0:e.isMultiColor)),this.updateColorPickerColor("fill-color",e.getDefaultColor("fill-color"),e.getDefaultOpacity("fill-color"),"isMultiColor"in e&&(e==null?void 0:e.isMultiColor)),this.updateColorPickerColor("text-color",e.getDefaultColor("text-color"),e.getDefaultOpacity("text-color"),"isMultiColor"in e&&(e==null?void 0:e.isMultiColor))}updateColorPickerColor(e,t,n,a){if(t!=null&&n!=null){let{r:h,g:S,b:E}=RW.fromString(t);t=RW.fromArray([h,S,E,n]).toHexString()}this.updateButtonByValue(e,{color:t,isMultiColor:a})}updateFontSize(e){this.updateButtonByValue("text-size",{label:e!=null?String(e):void 0})}updateLineStyleType(e){this.updateButtonByValue("line-style-type",{icon:e.icon})}updateStrokeWidth(e){this.updateButtonByValue("line-stroke-width",{label:e.label,strokeWidth:e.value})}dispatch(e,t){this.events.dispatch(e,t)}onButtonPress({event:e,button:t}){let n=this.getActiveDatum();if(n)switch(this.hideOverlays(),t.value){case"line-style-type":{let a=nA(n)?p2(n.lineDash,n.lineStyle):void 0;this.lineStyleTypeMenu.show({items:v2,ariaLabel:this.ctx.localeManager.t("toolbarAnnotationsLineStyle"),value:a,sourceEvent:e.sourceEvent,onPress:h=>this.onLineStyleTypeMenuPress(h,n),class:"ag-charts-annotations__line-style-type-menu"});break}case"line-stroke-width":{let a=nA(n)?n.strokeWidth:void 0;this.lineStrokeWidthMenu.show({items:IW,ariaLabel:this.ctx.localeManager.t("toolbarAnnotationsLineStrokeWidth"),value:a,sourceEvent:e.sourceEvent,onPress:h=>this.onLineStrokeWidthMenuPress(h,n),class:"ag-charts-annotations__line-stroke-width-menu"});break}case"line-color":case"fill-color":case"text-color":{this.toolbar.toggleActiveButtonByIndex(t.index),this.colorPicker.show({color:n==null?void 0:n.getDefaultColor(t.value),opacity:n==null?void 0:n.getDefaultOpacity(t.value),sourceEvent:e.sourceEvent,hasMultiColorOption:"isMultiColor"in n,isMultiColor:"isMultiColor"in n&&(n==null?void 0:n.isMultiColor),onChange:n!=null?this.onColorPickerChange.bind(this,t.value,n):void 0,onChangeHide:(a=>{this.dispatch("saved-color",{type:n.type,colorPickerType:t.value,color:n.getDefaultColor(a)})}).bind(this,t.value)});break}case"text-size":{let a=wC(n)?n.fontSize:void 0;this.textSizeMenu.show({items:TW,ariaLabel:this.ctx.localeManager.t("toolbarAnnotationsTextSize"),value:a,sourceEvent:e.sourceEvent,onPress:h=>this.onTextSizeMenuPress(h,n),class:"ag-charts-annotations__text-size-menu"});break}case"delete":{this.dispatch("pressed-delete");break}case"lock":{n.locked=!n.locked,this.refreshButtons(n),this.dispatch("pressed-lock");break}case"settings":{this.toolbar.toggleActiveButtonByIndex(t.index),this.dispatch("pressed-settings",e);break}}}onToolbarMoved(e){let{buttonBounds:t,popoverBounds:n}=e,a={x:n.x,y:n.y+n.height+4},h={y:n.y-4};this.colorPicker.setAnchor(a,h);for(let[S,E]of t.entries()){let L=this.visibleButtons.at(S);if(!L)continue;let _={x:E.x,y:E.y+E.height-1},N={y:E.y};switch(L.value){case"line-stroke-width":this.lineStrokeWidthMenu.setAnchor(_,N);break;case"line-style-type":this.lineStyleTypeMenu.setAnchor(_,N);break;case"text-size":this.textSizeMenu.setAnchor(_,N);break}}}onColorPickerChange(e,t,n,a,h,S){this.dispatch("updated-color",{type:t.type,colorPickerType:e,colorOpacity:n,color:a,opacity:h,isMultiColor:S}),this.updateColorPickerColor(e,n,h,S)}onTextSizeMenuPress(e,t){if(!WB(t))return;let n=e.value;this.dispatch("updated-font-size",{type:t.type,fontSize:n}),this.textSizeMenu.hide(),this.updateFontSize(n)}onLineStyleTypeMenuPress(e,t){if(!nA(t))return;let n=e.value;this.dispatch("updated-line-style",{type:t.type,lineStyleType:n}),this.lineStyleTypeMenu.hide(),this.updateLineStyleType(e)}onLineStrokeWidthMenuPress(e,t){if(!nA(t))return;let n=e.value;this.dispatch("updated-line-width",{type:t.type,strokeWidth:n}),this.lineStrokeWidthMenu.hide(),this.updateStrokeWidth(e)}refreshButtons(e){var n;let t=(n=e.locked)!=null?n:!1;for(let[a,h]of this.visibleButtons.entries())h&&(h.value==="lock"?(this.toolbar.toggleSwitchCheckedByIndex(a,t),this.updateButtonByIndex(a,t?h.checkedOverrides.toJson():h.toJson())):this.toolbar.toggleButtonEnabledByIndex(a,!t));WB(e)&&this.updateFontSize(e.fontSize),this.updateColors(e),this.updateLineStyles(e)}updateLineStyles(e){var a,h;if(!nA(e))return;let t=(a=e.strokeWidth)!=null?a:1,n=p2(e.lineDash,e.lineStyle);this.updateStrokeWidth({strokeWidth:t,value:t,label:String(t)}),this.updateLineStyleType((h=v2.find(S=>S.value===n))!=null?h:v2[0])}updateButtonByValue(e,t){let n=this.visibleButtons.findIndex(a=>a.value===e);n!==-1&&this.updateButtonByIndex(n,t)}updateButtonByIndex(e,t){var a;let n=this.visibleButtons.at(e);n&&this.toolbar.updateButtonByIndex(e,et(pe(pe({},n.toJson()),t),{value:(a=t.value)!=null?a:n.value}))}};ve([CE(yne)],qB.prototype,"enabled",2),ve([CE(vne)],qB.prototype,"buttons",2);var Ine=(xt(),D(wt)),{StateMachine:OW,StateMachineProperty:YB,Vec2:_W,Debug:Tne}=Ine._ModuleSupport,pc=class extends OW{constructor(e){let t=({context:n})=>{var a;(a=this.node)==null||a.drag(this.datum,this.offset,n,this.snapping),e.update()};super("idle",{idle:{dragStart:{target:"dragging",action:({offset:n,context:a})=>{var h;this.hasMoved=!1,this.dragStart=n,this.offset=n,(h=this.node)==null||h.dragStart(this.datum,n,a)}}},dragging:{keyDown:t,keyUp:t,drag:({offset:n,context:a})=>{var h;this.hasMoved=_W.lengthSquared(_W.sub(n,this.dragStart))>0,this.offset=n,(h=this.node)==null||h.drag(this.datum,n,a,this.snapping),e.update()},dragEnd:{target:OW.parent,action:()=>{var n;(n=this.node)==null||n.stopDragging(),e.stopInteracting(),this.hasMoved&&e.recordAction("Move annotation"),e.update()}}}}),this.debug=Tne.create(!0,"annotations"),this.hasMoved=!1,this.snapping=!1}};ve([YB()],pc.prototype,"snapping",2),ve([YB()],pc.prototype,"datum",2),ve([YB()],pc.prototype,"node",2);var Rne=(xt(),D(wt)),{STRING:Pne,Validate:Lne,isObject:One}=Rne._ModuleSupport,aA=class extends BB{constructor(){super(...arguments),this.type="arrow-down"}static is(e){return One(e)&&e.type==="arrow-down"}};ve([Lne(Pne)],aA.prototype,"type",2);var _ne=(xt(),D(wt)),oF=(xt(),D(wt)),SE=(xt(),D(wt)),FW=class GZ extends SE._ModuleSupport.Group{constructor(){super(...arguments),this.active=!1,this.locked=!1,this.visible=!1,this.zIndex=1}drag(t){let{handle:n,locked:a}=this;return a?{point:{x:n.x,y:n.y},offset:{x:0,y:0}}:{point:t,offset:{x:t.x-n.x,y:t.y-n.y}}}toggleActive(t){this.active=t,t||(this.handle.strokeWidth=GZ.INACTIVE_STROKE_WIDTH)}toggleHovered(t){this.glow.visible=!this.locked&&t,this.glow.dirtyPath=!0}toggleDragging(t){this.locked||(this.handle.visible=!t,this.glow.visible=this.glow.visible&&!t,this.handle.dirtyPath=!0,this.glow.dirtyPath=!0)}toggleLocked(t){this.locked=t}getCursor(){}containsPoint(t,n){return this.handle.containsPoint(t,n)}};FW.INACTIVE_STROKE_WIDTH=2;var oA=FW,XB=class jZ extends oA{constructor(){super(),this.handle=new SE._ModuleSupport.Circle,this.glow=new SE._ModuleSupport.Circle,this.append([this.handle]),this.handle.size=jZ.HANDLE_SIZE,this.handle.strokeWidth=oA.INACTIVE_STROKE_WIDTH,this.handle.zIndex=2}update(t){this.handle.setProperties(et(pe({},t),{strokeWidth:oA.INACTIVE_STROKE_WIDTH}))}drag(t){return{point:t,offset:{x:0,y:0}}}};XB.HANDLE_SIZE=7,XB.GLOW_SIZE=9;var rA=XB,rF=class rp extends oA{constructor(){super(),this.handle=new SE._ModuleSupport.Rect,this.glow=new SE._ModuleSupport.Rect,this.gradient="horizontal",this.append([this.glow,this.handle]),this.handle.cornerRadius=rp.CORNER_RADIUS,this.handle.width=rp.HANDLE_SIZE,this.handle.height=rp.HANDLE_SIZE,this.handle.strokeWidth=oA.INACTIVE_STROKE_WIDTH,this.handle.zIndex=2,this.glow.cornerRadius=rp.CORNER_RADIUS,this.glow.width=rp.GLOW_SIZE,this.glow.height=rp.GLOW_SIZE,this.glow.strokeWidth=0,this.glow.fillOpacity=.2,this.glow.zIndex=1,this.glow.visible=!1}toggleLocked(t){if(super.toggleLocked(t),t){let n=(rp.HANDLE_SIZE-rA.HANDLE_SIZE)/2;this.handle.cornerRadius=1,this.handle.fill=this.handle.stroke,this.handle.strokeWidth=0,this.handle.x+=n,this.handle.y+=n,this.handle.width=rA.HANDLE_SIZE,this.handle.height=rA.HANDLE_SIZE,this.glow.width=rA.GLOW_SIZE,this.glow.height=rA.GLOW_SIZE}else this.handle.cornerRadius=rp.CORNER_RADIUS,this.handle.width=rp.HANDLE_SIZE,this.handle.height=rp.HANDLE_SIZE,this.glow.width=rp.GLOW_SIZE,this.glow.height=rp.GLOW_SIZE,this.cachedStyles&&this.handle.setProperties(this.cachedStyles)}update(t){var n,a;if(this.cachedStyles=pe({},t),this.active||delete t.strokeWidth,this.locked){delete t.fill,delete t.strokeWidth;let h=(rp.HANDLE_SIZE-rA.HANDLE_SIZE)/2;t.x-=h,t.y-=h,this.cachedStyles.x-=h,this.cachedStyles.y-=h}this.handle.setProperties(t),this.glow.setProperties(et(pe({},t),{x:((n=t.x)!=null?n:this.glow.x)-2,y:((a=t.y)!=null?a:this.glow.y)-2,strokeWidth:0,fill:t.stroke}))}drag(t){return this.locked?{point:t,offset:{x:0,y:0}}:this.gradient==="vertical"?{point:{x:t.x,y:this.handle.y},offset:{x:t.x-this.handle.x,y:0}}:{point:{x:this.handle.x,y:t.y},offset:{x:0,y:t.y-this.handle.y}}}getCursor(){if(!this.locked)return this.gradient==="vertical"?"col-resize":"row-resize"}};rF.HANDLE_SIZE=12,rF.GLOW_SIZE=16,rF.CORNER_RADIUS=4;var RR=rF,ZB=class PO extends oA{constructor(){super(),this.handle=new SE._ModuleSupport.Circle,this.glow=new SE._ModuleSupport.Circle,this.append([this.glow,this.handle]),this.handle.size=PO.HANDLE_SIZE,this.handle.strokeWidth=oA.INACTIVE_STROKE_WIDTH,this.handle.zIndex=2,this.glow.size=PO.GLOW_SIZE,this.glow.strokeWidth=0,this.glow.fillOpacity=.2,this.glow.zIndex=1,this.glow.visible=!1}toggleLocked(t){super.toggleLocked(t),t?(this.handle.fill=this.handle.stroke,this.handle.strokeWidth=0,this.handle.size=rA.HANDLE_SIZE,this.glow.size=rA.GLOW_SIZE):(this.handle.size=PO.HANDLE_SIZE,this.glow.size=PO.GLOW_SIZE,this.cachedStyles&&this.handle.setProperties(this.cachedStyles))}update(t){this.cachedStyles=pe({},t),this.active||delete t.strokeWidth,this.locked&&(delete t.fill,delete t.strokeWidth),this.handle.setProperties(t),this.glow.setProperties(et(pe({},t),{strokeWidth:0,fill:t.stroke}))}getCursor(){return"pointer"}};ZB.HANDLE_SIZE=11,ZB.GLOW_SIZE=17;var mc=ZB,{ZIndexMap:Fne,isObject:Nne}=oF._ModuleSupport,lu=class extends oF._ModuleSupport.Group{constructor(){super(...arguments),this.name="AnnotationScene",this.zIndex=Fne.CHART_ANNOTATION}static isCheck(e,t){return Nne(e)&&Object.hasOwn(e,"type")&&e.type===t}toggleHovered(e){this.toggleHandles(e)}*nonHandleChildren(){for(let e of this.children())e instanceof oA||(yield e)}computeBBoxWithoutHandles(){return oF._ModuleSupport.Transformable.toCanvas(this,oF._ModuleSupport.Group.computeChildrenBBox(this.nonHandleChildren()))}updateNode(e,t,n){if(!n&&t){this.removeChild(t);return}return n&&t==null&&(t=new e,this.appendChild(t)),t}},zne=(xt(),D(wt)),Bne=(xt(),D(wt)),{Vec2:NW,toRadians:Gne}=Bne._ModuleSupport;function $B(e,t,n=!1,a,h=1){if(!n)return Es(e,t);let S=a?qc(a,t):NW.origin();return Es(sF(e,S,h),t)}function sF({x:e,y:t},n,a,h=1){let{x:S,y:E}=n,L=Math.sqrt(Math.pow(e-S,2)+Math.pow(t-E,2)),_=Math.atan2(t-E,e-S),N=Gne(a),V=Math.round(_/N)*N;return{x:S+L*Math.cos(V),y:E+L*Math.sin(V)*h}}function QB(e,t){let n={};return Object.entries(e).forEach(([a,h])=>{n[a]=qc(h,t)}),n}function zW(e,t,n){let a=[],h={};Object.entries(e).forEach(([V,q])=>{let Y=NW.add(q,t);a.push(Y);let J=Es(Y,n);h[V]=J});let{xAxis:S,yAxis:E}=n,L=(V,q,Y)=>q>=V&&q<=Y,_=a.every(V=>L(S.bounds.x,V.x,S.bounds.x+S.bounds.width)),N=a.every(V=>L(E.bounds.y,V.y,E.bounds.y+E.bounds.height));return{vectors:h,translateX:_,translateY:N}}var{Vec2:JB}=zne._ModuleSupport,BW=class extends lu{constructor(){super(...arguments),this.handle=new mc,this.anchor={x:0,y:0,position:"above"}}update(e,t){let n=qc(e,t);this.updateHandle(e,n),this.anchor=this.updateAnchor(e,n,t)}dragStart(e,t,n){this.dragState=pe({offset:t},QB({handle:e},n))}drag(e,t,n){let{dragState:a}=this;if(e.locked||!a)return;let h=JB.add(a.handle,JB.sub(t,a.offset)),S=Es(h,n);fy(n,S)&&(e.x=S.x,e.y=S.y)}translate(e,t,n){let a=JB.add(qc(e,n),t),h=Es(a,n);fy(n,h)&&(e.x=h.x,e.y=h.y)}toggleHandles(e){this.handle.visible=!!e,this.handle.toggleHovered(this.activeHandle==="handle")}toggleActive(e){this.toggleHandles(e),this.handle.toggleActive(e)}stopDragging(){this.handle.toggleDragging(!1)}copy(e,t,n){let a=qc(e,n),h=Es({x:a.x-30,y:a.y-30},n);return t.x=h.x,t.y=h.y,t}getAnchor(){return this.anchor}getCursor(){return"pointer"}containsPoint(e,t){let{handle:n}=this;return this.activeHandle=void 0,n.containsPoint(e,t)?(this.activeHandle="handle",!0):!1}getNodeAtCoords(e,t){if(this.handle.containsPoint(e,t))return"handle"}updateHandle(e,t,n){var E;let{x:a,y:h}=this.getHandleCoords(e,t,n),S=this.getHandleStyles(e);this.handle.update(et(pe({},S),{x:a,y:h})),this.handle.toggleLocked((E=e.locked)!=null?E:!1)}updateAnchor(e,t,n){let a=this.getHandleCoords(e,t);return{x:a.x+n.seriesRect.x,y:a.y+n.seriesRect.y,position:this.anchor.position}}getHandleCoords(e,t,n){return{x:t.x,y:t.y}}getHandleStyles(e){return{fill:e.handle.fill,stroke:e.handle.stroke,strokeOpacity:e.handle.strokeOpacity,strokeWidth:e.handle.strokeWidth}}},GW=class extends BW{constructor(){super(),this.append([this.handle])}update(e,t){super.update(e,t);let n=qc(e,t);this.updateShape(e,n)}updateShape(e,t){this.updateShapeStyles(e),this.updateShapePath(e,t)}updateShapeStyles(e){var n;let{shape:t}=this;t.fill=e.fill,t.fillOpacity=(n=e.fillOpacity)!=null?n:1}updateShapePath(e,t){let{shape:n}=this;n.x=t.x,n.y=t.y,n.size=e.size}containsPoint(e,t){return super.containsPoint(e,t)||this.shape.containsPoint(e,t)}getNodeAtCoords(e,t){return this.shape.containsPoint(e,t)?"shape":super.getNodeAtCoords(e,t)}},lF=class extends GW{constructor(){super(),this.type="arrow-down",this.shape=new _ne._ModuleSupport.ArrowDown,this.append([this.shape])}static is(e){return lu.isCheck(e,"arrow-down")}updateAnchor(e,t,n){let a=super.updateAnchor(e,t,n);return a.y-=e.size,a}getHandleCoords(e,t){let n=mc.HANDLE_SIZE/2,a=super.getHandleCoords(e,t);return a.y+=n,a}},jne=(xt(),D(wt)),{StateMachine:cF,StateMachineProperty:Vne,Debug:Hne}=jne._ModuleSupport,e4=class extends cF{constructor(e){let t=({point:a})=>{let h=this.createDatum();h.set({x:a.x,y:a.y}),e.create(h)},n=()=>{var a;(a=this.node)==null||a.toggleActive(!0),e.showAnnotationOptions(),e.update()};super("start",{start:{click:{target:"waiting-first-render",action:t},drag:{target:"waiting-first-render",action:t},cancel:cF.parent,reset:cF.parent},"waiting-first-render":{render:{target:cF.parent,action:n}}}),this.debug=Hne.create(!0,"annotations")}};ve([Vne()],e4.prototype,"node",2);var Wne=class extends e4{createDatum(){return new aA}},jW={type:"arrow-down",datum:aA,scene:lF,isDatum:aA.is,translate:(e,t,n,a)=>{aA.is(t)&&lF.is(e)&&e.translate(t,n,a)},copy:(e,t,n,a)=>{if(aA.is(t)&&aA.is(n)&&lF.is(e))return e.copy(t,n,a)},update:(e,t,n)=>{aA.is(t)&&lF.is(e)&&e.update(t,n)},createState:(e,{createDatum:t})=>new Wne(et(pe({},e),{create:t("arrow-down")})),dragState:e=>new pc(e)},Une=(xt(),D(wt)),{STRING:Kne,Validate:qne,isObject:Yne}=Une._ModuleSupport,sA=class extends BB{constructor(){super(...arguments),this.type="arrow-up"}static is(e){return Yne(e)&&e.type==="arrow-up"}};ve([qne(Kne)],sA.prototype,"type",2);var Xne=(xt(),D(wt)),dF=class extends GW{constructor(){super(),this.type="arrow-up",this.shape=new Xne._ModuleSupport.ArrowUp,this.append([this.shape])}static is(e){return lu.isCheck(e,"arrow-up")}getHandleCoords(e,t){let n=mc.HANDLE_SIZE/2,a=super.getHandleCoords(e,t);return a.y-=n,a}},Zne=class extends e4{createDatum(){return new sA}},VW={type:"arrow-up",datum:sA,scene:dF,isDatum:sA.is,translate:(e,t,n,a)=>{sA.is(t)&&dF.is(e)&&e.translate(t,n,a)},copy:(e,t,n,a)=>{if(sA.is(t)&&sA.is(n)&&dF.is(e))return e.copy(t,n,a)},update:(e,t,n)=>{sA.is(t)&&dF.is(e)&&e.update(t,n)},createState:(e,{createDatum:t})=>new Zne(et(pe({},e),{create:t("arrow-up")})),dragState:e=>new pc(e)},$ne=(xt(),D(wt)),HW=(xt(),D(wt)),Qne=(xt(),D(wt)),Jne=(xt(),D(wt)),{Vec2:eae,Vec4:WW}=Jne._ModuleSupport,UW=class extends lu{extendLine({x1:e,y1:t,x2:n,y2:a},h,S){let E={x1:e,y1:t,x2:n,y2:a};if(!h.extendStart&&!h.extendEnd)return E;let[L,_]=iie(E,S.yAxis.bounds),N=E.x2<E.x1,V=E.y1>=E.y2,q=E.x2===E.x1;return h.extendEnd&&(q?E.y2=V?_.y:L.y:(E.x2=N?L.x:_.x,E.y2=N?L.y:_.y)),h.extendStart&&(q?E.y1=V?L.y:_.y:(E.x1=N?_.x:L.x,E.y1=N?_.y:L.y)),E}dragStart(e,t,n){this.dragState=pe({offset:t},QB({start:e.start,end:e.end},n))}drag(e,t,n,a){e.locked||(this.activeHandle?this.dragHandle(e,t,n,a):this.dragAll(e,t,n))}dragAll(e,t,n){let{dragState:a}=this;a&&this.translatePoints(e,a.start,a.end,eae.sub(t,a.offset),n)}translatePoints(e,t,n,a,h){var _,N,V,q;let{vectors:S,translateX:E,translateY:L}=zW({start:t,end:n},a,h);E&&(e.start.x=(_=S.start)==null?void 0:_.x,e.end.x=(N=S.end)==null?void 0:N.x),(this.ignoreYBounds||L)&&(e.start.y=(V=S.start)==null?void 0:V.y,e.end.y=(q=S.end)==null?void 0:q.y)}translate(e,t,n){this.translatePoints(e,qc(e.start,n),qc(e.end,n),t,n)}copy(e,t,n){let a=bw(e,n);if(!a)return;let h=this.computeBBoxWithoutHandles(),S={x:-h.width/2,y:-h.height/2};return this.translatePoints(t,WW.start(a),WW.end(a),S,n),t}},{Vec4:KW}=Qne._ModuleSupport,t4=class extends UW{constructor(){super(...arguments),this.start=new mc,this.end=new mc,this.anchor={x:0,y:0,position:"above"}}update(e,t){let n=bw(e,t);n!=null&&(this.updateHandles(e,n),this.updateAnchor(e,n,t))}toggleHandles(e){if(typeof e=="boolean")this.start.visible=e,this.end.visible=e;else for(let[t,n]of Object.entries(e))this[t].visible=n;this.start.toggleHovered(this.activeHandle==="start"),this.end.toggleHovered(this.activeHandle==="end")}toggleActive(e){this.toggleHandles(e),this.start.toggleActive(e),this.end.toggleActive(e)}dragHandle(e,t,n,a){let{activeHandle:h,dragState:S}=this;if(!h||!S)return;this[h].toggleDragging(!0);let E=a?this.snapToAngle(e,t,n):Es(this[h].drag(t).point,n);!E||!fy(n,E)||(e[h].x=E.x,e[h].y=E.y)}snapToAngle(e,t,n){let{activeHandle:a}=this,S=["start","end"].find(L=>L!==a);if(!a||!S)return;this[a].toggleDragging(!0);let E=qc(e[S],n);return Es(sF(t,E,e.snapToAngle),n)}stopDragging(){this.start.toggleDragging(!1),this.end.toggleDragging(!1)}getAnchor(){return this.anchor}getCursor(){return"pointer"}containsPoint(e,t){let{start:n,end:a}=this;return this.activeHandle=void 0,n.containsPoint(e,t)?(this.activeHandle="start",!0):a.containsPoint(e,t)?(this.activeHandle="end",!0):!1}getNodeAtCoords(e,t){if(this.start.containsPoint(e,t)||this.end.containsPoint(e,t))return"handle"}updateHandles(e,t,n){var a,h;this.start.update(pe(pe({},this.getHandleStyles(e,"start")),this.getHandleCoords(e,t,"start"))),this.end.update(pe(pe({},this.getHandleStyles(e,"end")),this.getHandleCoords(e,t,"end",n))),this.start.toggleLocked((a=e.locked)!=null?a:!1),this.end.toggleLocked((h=e.locked)!=null?h:!1)}updateAnchor(e,t,n,a){this.anchor={x:t.x1+n.seriesRect.x,y:t.y1+n.seriesRect.y,position:this.anchor.position}}getHandleCoords(e,t,n,a){return n==="start"?KW.start(t):KW.end(t)}getHandleStyles(e,t){return{fill:e.handle.fill,stroke:e.handle.stroke,strokeOpacity:e.handle.strokeOpacity,strokeWidth:e.handle.strokeWidth}}},{Vec2:qW,Vec4:YW}=HW._ModuleSupport,tae=class extends t4{constructor(){super(...arguments),this.label=new HW._ModuleSupport.Text({zIndex:1}),this.anchor={x:0,y:0,position:"above-left"}}setTextInputBBox(e){this.textInputBBox=e,this.markDirty()}update(e,t){let n=bw(e,t);if(n==null)return;let a=this.getTextBBox(e,n);this.updateLabel(e,a,n),this.updateHandles(e,n,a),this.updateShape(e,a,n),this.updateAnchor(e,n,t,a)}dragHandle(e,t,n,a){let{activeHandle:h,dragState:S}=this;if(!h||!S)return;this[h].toggleDragging(!0);let E=qW.add(S.end,qW.sub(t,S.offset)),L=a?this.snapToAngle(e,E,n):Es(E,n);!L||!fy(n,L)||(e[h].x=L.x,e[h].y=L.y)}containsPoint(e,t){let{label:n}=this;return super.containsPoint(e,t)||n.containsPoint(e,t)}getNodeAtCoords(e,t){return this.label.containsPoint(e,t)?"text":super.getNodeAtCoords(e,t)}getTextBBox(e,t){let{text:n}=e.getText();return zB(e,n,YW.end(t),this.textInputBBox)}updateLabel(e,t,n){let{text:a,isPlaceholder:h}=e.getText();cW(this.label,a,h,e,this.getLabelCoords(e,t,n))}updateShape(e,t,n){}getLabelCoords(e,t,n){return YW.end(n)}getHandleStyles(e,t){var n;return et(pe({},super.getHandleStyles(e,t)),{stroke:(n=e.handle.stroke)!=null?n:e.color})}},{drawCorner:iae,Path:nae}=$ne._ModuleSupport,uF=class extends tae{constructor(){super(),this.type="callout",this.shape=new nae,this.append([this.shape,this.label,this.start,this.end])}static is(e){return lu.isCheck(e,"callout")}drag(e,t,n,a){e.locked||(this.activeHandle==="end"?this.dragHandle(e,t,n,a):this.dragAll(e,t,n))}getLabelCoords(e,t,n){var S;let a=e.getPadding(),{bodyBounds:h={x:0,y:0,width:0,height:0}}=(S=this.getDimensions(e,t,n))!=null?S:{};return{x:h.x+a.left,y:h.y-a.bottom}}getHandleStyles(e,t){var n;return t==="start"?{fill:e.handle.fill,stroke:(n=e.handle.stroke)!=null?n:e.stroke,strokeOpacity:e.handle.strokeOpacity,strokeWidth:e.handle.strokeWidth}:{fill:void 0,strokeWidth:0}}updateAnchor(e,t,n,a){var E;let{bodyBounds:h}=(E=this.getDimensions(e,a,t))!=null?E:{},S=h!=null?h:a;this.anchor={x:S.x+n.seriesRect.x,y:S.y+n.seriesRect.y-S.height,position:this.anchor.position}}updateShape(e,t,n){var E,L,_,N;let{shape:a}=this;a.fill=e.fill,a.fillOpacity=(E=e.fillOpacity)!=null?E:1,a.stroke=e.stroke,a.strokeWidth=(L=e.strokeWidth)!=null?L:1,a.strokeOpacity=(_=e.strokeOpacity)!=null?_:1;let{tailPoint:h,bodyBounds:S}=(N=this.getDimensions(e,t,n))!=null?N:{};!h||!S||this.updatePath(h,S)}updatePath(e,t){let{x:n,y:a}=e,{x:h,y:S,width:E,height:L}=t,_=S-L,N=h+E,V=this.calculateCalloutPlacement({x:n,y:a},t),q=8,Y=[{coordinates:{x0:h,x1:h+q,y0:_+q,y1:_,cx:V==="topLeft"?n:h+q,cy:V==="topLeft"?a:_+q},type:V==="topLeft"?"calloutCorner":"corner"},{coordinates:{x0:h+q,x1:N-q,y0:_,y1:_,cx:n,cy:a},type:V==="top"?"calloutSide":"side"},{coordinates:{x0:N-q,x1:N,y0:_,y1:_+q,cx:V==="topRight"?n:N-q,cy:V==="topRight"?a:_+q},type:V==="topRight"?"calloutCorner":"corner"},{coordinates:{x0:N,x1:N,y0:_+q,y1:S-q,cx:n,cy:a},type:V==="right"?"calloutSide":"side"},{coordinates:{x0:N,x1:N-q,y0:S-q,y1:S,cx:V==="bottomRight"?n:N-q,cy:V==="bottomRight"?a:S-q},type:V==="bottomRight"?"calloutCorner":"corner"},{coordinates:{x0:N-q,x1:h+q,y0:S,y1:S,cx:n,cy:a},type:V==="bottom"?"calloutSide":"side"},{coordinates:{x0:h+q,x1:h,y0:S,y1:S-q,cx:V==="bottomLeft"?n:h+q,cy:V==="bottomLeft"?a:S-q},type:V==="bottomLeft"?"calloutCorner":"corner"},{coordinates:{x0:h,x1:h,y0:S-q,y1:_+q,cx:n,cy:a},type:V==="left"?"calloutSide":"side"}],{path:J}=this.shape;J.clear(),J.moveTo(h,_+q),Y.forEach(({coordinates:re,type:ce})=>{this.drawPath(J,re,q,ce)}),J.closePath()}drawPath(e,{x0:t,y0:n,x1:a,y1:h,cx:S,cy:E},L,_){switch(_){case"calloutCorner":{e.lineTo(S,E),e.lineTo(a,h);break}case"corner":{iae(e,{x0:t,x1:a,y0:n,y1:h,cx:S,cy:E},L,!1);break}case"calloutSide":{if(t!==a){let V=t>a?-1:1,q=Math.min(t,a)+Math.abs(a-t)/2;e.lineTo(q-6*V,n),e.lineTo(S,E),e.lineTo(q+6*V,n),e.lineTo(a,h)}else{let V=n>h?-1:1,q=Math.min(n,h)+Math.abs(n-h)/2;e.lineTo(t,q-6*V),e.lineTo(S,E),e.lineTo(t,q+6*V),e.lineTo(a,h)}break}case"side":default:{e.lineTo(a,h);break}}}calculateCalloutPlacement(e,t){let n=t.x+t.width,a=t.y-t.height,h,S;return e.x>n?h="right":e.x<t.x&&(h="left"),e.y>t.y?S="bottom":e.y<a&&(S="top"),h&&S?`${S}${h[0].toUpperCase()}${h.substring(1)}`:S!=null?S:h}getDimensions(e,t,n){let{fontSize:a}=e,h=e.getPadding(),S=h.left+h.right,E=h.top+h.bottom,L=t.width+S,_=Math.max(t.height+E,a+E);return{tailPoint:{x:n.x1,y:n.y1},bodyBounds:{x:t.x,y:t.y,width:L,height:_}}}containsPoint(e,t){let{start:n,end:a,shape:h}=this;if(this.activeHandle=void 0,n.containsPoint(e,t))return this.activeHandle="start",!0;let S=a.containsPoint(e,t)||h.containsPoint(e,t);return S&&(this.activeHandle="end"),S}},aae=(xt(),D(wt));function i4({key:e}){return e==="Escape"}function n4({key:e,shiftKey:t}){return!t&&e==="Enter"}var{StateMachine:vy,StateMachineProperty:XW,Debug:oae}=aae._ModuleSupport,a4=class extends vy{constructor(e){let t=({point:Y})=>{let J=this.createDatum();J.set({start:Y,end:Y,visible:!0}),e.create(J)},n=()=>{let{node:Y}=this;Y==null||Y.toggleActive(!0),Y==null||Y.toggleHandles({start:!0})},a=()=>{e.showTextInput(),this.datum&&(this.datum.visible=!1)},h=()=>{e.hideTextInput(),this.datum&&(this.datum.visible=!0),e.deselect()},S=Y=>{var J;(J=this.node)==null||J.setTextInputBBox(Y),e.update()},E=({point:Y})=>{let{datum:J,node:re}=this;J==null||J.set({end:Y}),re==null||re.toggleActive(!0),re==null||re.toggleHandles({end:!1}),e.update()},L=()=>{var Y;e.showAnnotationOptions(),(Y=this.node)==null||Y.toggleHandles({end:!0})},_=({colorPickerType:Y,colorOpacity:J,color:re,opacity:ce,isMultiColor:he})=>{let{datum:me}=this;me&&(Y==="text-color"&&e.updateTextInputColor(re),nF(me,Y,J,re,ce,he),e.update())},N=Y=>{let{datum:J,node:re}=this;!J||!re||!wC(J)||(J.fontSize=Y,e.updateTextInputFontSize(Y),e.update())},V=()=>{e.delete()},q=({textInputValue:Y,bbox:J})=>{let{datum:re}=this;if(J!=null&&Y!=null&&Y.length>0){if(!wC(re))return;let ce=$_(re,Y,J.width);re==null||re.set({text:ce}),e.update(),e.recordAction(`Create ${re==null?void 0:re.type} annotation`)}else e.delete()};super("start",{start:{click:{target:"waiting-first-render",action:t},dragStart:{target:"waiting-first-render",action:t},cancel:vy.parent,reset:vy.parent},"waiting-first-render":{render:{target:"end",action:n}},end:{hover:E,drag:E,click:{target:"edit",action:L},dragEnd:{target:"edit",action:L},reset:{target:vy.parent,action:V},cancel:{target:vy.parent,action:V}},edit:{onEnter:a,updateTextInputBBox:S,color:_,fontSize:N,textInput:[{guard:i4,target:vy.parent,action:V},{guard:n4,target:vy.parent,action:q}],click:{target:vy.parent,action:q},dragStart:{target:vy.parent,action:q},resize:{target:vy.parent,action:q},onExit:h,cancel:{target:vy.parent,action:V}}}),this.debug=oae.create(!0,"annotations")}};ve([XW()],a4.prototype,"datum",2),ve([XW()],a4.prototype,"node",2);var rae=class extends a4{createDatum(){return new my}},ZW={type:"callout",datum:my,scene:uF,isDatum:my.is,translate:(e,t,n,a)=>{if(my.is(t)&&uF.is(e))return e.translate(t,n,a)},copy:(e,t,n,a)=>{if(my.is(t)&&my.is(n)&&uF.is(e))return e.copy(t,n,a)},update:(e,t,n)=>{my.is(t)&&uF.is(e)&&e.update(t,n)},createState:(e,{createDatum:t})=>new rae(et(pe({},e),{create:t("callout")})),dragState:e=>new pc(e)},$W=(xt(),D(wt)),sae=(xt(),D(wt)),o4=class extends BW{constructor(){super(...arguments),this.label=new sae._ModuleSupport.Text({zIndex:1}),this.anchor={x:0,y:0,position:"above-left"}}setTextInputBBox(e){this.textInputBBox=e,this.markDirty()}update(e,t){let n=qc(e,t),a=this.getTextBBox(e,n,t);this.updateLabel(e,a),this.updateHandle(e,n,a),this.updateShape(e,a),this.anchor=this.updateAnchor(e,a,t)}copy(e,t,n){let a=qc(e,n),h=this.getTextBBox(e,a,n),S=e.getPadding(),E=S.left+S.right,L=S.top+S.bottom,_=(h.width+E)/2,N=h.height+L,V=Es({x:a.x-_,y:a.y-N},n);return t.x=V.x,t.y=V.y,t}containsPoint(e,t){let{label:n}=this;return super.containsPoint(e,t)||n.visible&&n.containsPoint(e,t)}getNodeAtCoords(e,t){return this.label.visible&&this.label.containsPoint(e,t)?"text":super.getNodeAtCoords(e,t)}getTextBBox(e,t,n){let{text:a}=e.getText();return zB(e,a,{x:t.x,y:t.y},this.textInputBBox)}updateLabel(e,t){let{text:n,isPlaceholder:a}=e.getText();cW(this.label,n,a,e,this.getLabelCoords(e,t))}updateShape(e,t){}updateAnchor(e,t,n){return{x:t.x+n.seriesRect.x,y:t.y+n.seriesRect.y-t.height,position:this.anchor.position}}getLabelCoords(e,t){return t}getHandleCoords(e,t,n){return n}getHandleStyles(e){var n;let t=super.getHandleStyles(e);return t.stroke=(n=e.handle.stroke)!=null?n:e.color,t}},{drawCorner:r4}=$W._ModuleSupport,hF=class extends o4{constructor(){super(),this.type="comment",this.shape=new $W._ModuleSupport.Path,this.append([this.shape,this.label,this.handle])}static is(e){return lu.isCheck(e,"comment")}updateShape(e,t){var a,h,S,E;let{shape:n}=this;n.fill=e.fill,n.fillOpacity=(a=e.fillOpacity)!=null?a:1,n.stroke=(h=e.stroke)!=null?h:"transparent",n.strokeWidth=(S=e.strokeWidth)!=null?S:1,n.strokeOpacity=(E=e.strokeOpacity)!=null?E:1,this.updatePath(e,t)}getLabelCoords(e,t){let n=e.getPadding();return{x:t.x+n.left,y:t.y-n.bottom}}getHandleStyles(e){var t,n;return{fill:e.handle.fill,stroke:(n=(t=e.handle.stroke)!=null?t:e.stroke)!=null?n:e.fill,strokeOpacity:e.handle.strokeOpacity,strokeWidth:e.handle.strokeWidth}}updateAnchor(e,t,n){let a=super.updateAnchor(e,t,n),h=e.getPadding();return a.y-=h.bottom+h.top,a}updatePath(e,t){let n=e.getPadding(),{x:a,y:h}=t,{width:S,height:E}=t,{fontSize:L}=e,_=n.left+n.right,N=n.top+n.bottom;S=S+_,E=Math.max(E+N,L+N);let V=h-E,q=a+S,Y=(L*Z_+N)/2,{path:J}=this.shape;J.clear(),J.moveTo(a,h),J.lineTo(a,V+Y),r4(J,{x0:a,x1:a+Y,y0:V+Y,y1:V,cx:a+Y,cy:V+Y},Y,!1),J.lineTo(q-Y,V),r4(J,{x0:q-Y,x1:q,y0:V,y1:V+Y,cx:q-Y,cy:V+Y},Y,!1),J.lineTo(q,h-Y),r4(J,{x0:q,x1:q-Y,y0:h-Y,y1:h,cx:q-Y,cy:h-Y},Y,!1),J.closePath()}containsPoint(e,t){return super.containsPoint(e,t)||this.shape.containsPoint(e,t)}},lae=(xt(),D(wt)),{StateMachine:Aw,StateMachineProperty:QW,Debug:cae}=lae._ModuleSupport,y2=class extends Aw{constructor(e){let t=({point:V})=>{let q=this.createDatum();q.set({x:V.x,y:V.y}),e.create(q)},n=()=>{var V;(V=this.node)==null||V.toggleActive(!0),e.showAnnotationOptions(),e.update()},a=()=>{e.showTextInput(),this.datum&&(this.datum.visible=!1)},h=()=>{e.hideTextInput(),this.datum&&(this.datum.visible=!0),e.deselect()},S=V=>{var q;(q=this.node)==null||q.setTextInputBBox(V),e.update()},E=({colorPickerType:V,colorOpacity:q,color:Y,opacity:J,isMultiColor:re})=>{this.datum&&(V==="text-color"&&e.updateTextInputColor(Y),nF(this.datum,V,q,Y,J,re),e.update())},L=V=>{let{datum:q,node:Y}=this;!q||!Y||!wC(q)||(q.fontSize=V,e.updateTextInputFontSize(V),e.update())},_=()=>{e.delete()},N=({textInputValue:V,bbox:q})=>{if(q!=null&&V!=null&&V.length>0){let{datum:Y}=this;if(!wC(Y))return;let J=$_(Y,V,q.width);Y==null||Y.set({text:J}),e.update(),e.recordAction(`Create ${Y==null?void 0:Y.type} annotation`)}else e.delete()};super("start",{start:{click:{target:"waiting-first-render",action:t},dragStart:{target:"waiting-first-render",action:t},cancel:Aw.parent,reset:Aw.parent},"waiting-first-render":{render:{target:"edit",action:n}},edit:{onEnter:a,updateTextInputBBox:S,color:E,fontSize:L,textInput:[{guard:i4,target:Aw.parent,action:_},{guard:n4,target:Aw.parent,action:N}],click:{target:Aw.parent,action:N},dragStart:{target:Aw.parent,action:N},resize:{target:Aw.parent,action:N},onExit:h,cancel:{target:Aw.parent,action:_}}}),this.debug=cae.create(!0,"annotations")}};ve([QW()],y2.prototype,"datum",2),ve([QW()],y2.prototype,"node",2);var dae=class extends y2{createDatum(){return new CC}},JW={type:"comment",datum:CC,scene:hF,isDatum:CC.is,translate:(e,t,n,a)=>{CC.is(t)&&hF.is(e)&&e.translate(t,n,a)},copy:(e,t,n,a)=>{if(CC.is(t)&&CC.is(n)&&hF.is(e))return e.copy(t,n,a)},update:(e,t,n)=>{CC.is(t)&&hF.is(e)&&e.update(t,n)},createState:(e,{createDatum:t})=>new dae(et(pe({},e),{create:t("comment")})),dragState:e=>new pc(e)},uae=(xt(),D(wt)),gF=(xt(),D(wt)),{calculateLabelTranslation:hae,ChartAxisDirection:gae}=gF._ModuleSupport,eU=class extends gF._ModuleSupport.Group{constructor(){super({name:"AnnotationAxisLabelGroup"}),this.label=new gF._ModuleSupport.Text({zIndex:1}),this.rect=new gF._ModuleSupport.Rect;let{label:e}=this;e.fontSize=12,e.fontFamily="Verdana, sans-serif",e.fill="black",e.textBaseline="middle",e.textAlign="center",this.append([this.rect,this.label])}update(e){this.updateLabel(e),this.updateRect(e),this.updatePosition(e)}updateLabel({value:e,styles:t,context:n}){let{fontWeight:a,fontSize:h,fontStyle:S,fontFamily:E,textAlign:L,color:_="white",formatter:N=n.scaleValueFormatter()}=t;this.label.setProperties({fontWeight:a,fontSize:h,fontStyle:S,fontFamily:E,textAlign:L,fill:_,text:N(e)})}updateRect({styles:e}){let{rect:t}=this,{cornerRadius:n,fill:a,fillOpacity:h,stroke:S,strokeOpacity:E}=e;t.setProperties({cornerRadius:n,fill:a,fillOpacity:h,stroke:S,strokeOpacity:E})}updatePosition({x:e,y:t,context:n,styles:{padding:a}}){var re,ce;let{label:h,rect:S}=this,E=(re=h.getBBox())==null?void 0:re.clone(),L=a!=null?a:8,_=a!=null?a:5;E.grow(L,"horizontal"),E.grow(_,"vertical");let N=n.direction===gae.X?_/2:L,{xTranslation:V,yTranslation:q}=hae({yDirection:!0,padding:n.labelPadding-N,position:(ce=n.position)!=null?ce:"left",bbox:E}),Y=e+V,J=t+q;h.x=Y,h.y=J,S.x=Y-E.width/2,S.y=J-E.height/2,S.height=E.height,S.width=E.width}};eU.className="AxisLabel";var pF=(xt(),D(wt)),{Vec2:xC}=pF._ModuleSupport,cm=class extends pF._ModuleSupport.Line{constructor(){super(...arguments),this.growCollisionBox=9,this.clipMask=new Map}setProperties(e,t){return super.setProperties(e,t),this.updateCollisionBBox(),this}updateCollisionBBox(){let{growCollisionBox:e,strokeWidth:t,x1:n,y1:a,x2:h,y2:S}=this,E=t+e;E%2===0&&(E+=1);let L=xC.from(n,a-Math.floor(E/2)),_=xC.from(h,S),N=xC.distance(L,_);this.collisionBBox=new pF._ModuleSupport.BBox(L.x,L.y,N,E)}isPointInPath(e,t){var Y;let{collisionBBox:n,x1:a,y1:h,x2:S,y2:E}=this;if(!n)return!1;let L=xC.from(a,h),_=xC.from(S,E),N=xC.sub(xC.from(e,t),L),V=xC.sub(_,L),q=xC.rotate(N,xC.angle(N,V),L);return(Y=n.containsPoint(q.x,q.y))!=null?Y:!1}render(e){this.applyClipMask(e.ctx),super.render(e),this.closeClipMask(e.ctx)}setClipMask(e,t){let n=this.clipMask.get(e);pF._ModuleSupport.jsonDiff(n,t)!=null&&this.markDirty(),t?this.clipMask.set(e,t):this.clipMask.delete(e)}applyClipMask(e){let{clipMask:t}=this;t.size!==0&&this.clipMask.forEach(n=>{let{x:a,y:h,radius:S}=n;e.save(),e.beginPath(),e.rect(0,0,e.canvas.width,e.canvas.height),e.ellipse(a,h,S,S,0,Math.PI*2,0,!0),e.clip()})}closeClipMask(e){this.clipMask.size!==0&&e.restore()}},pae=(xt(),D(wt)),wE=class extends pae._ModuleSupport.TransformableText{constructor(){super(...arguments),this.growCollisionBox={top:4,right:4,bottom:4,left:4}}isPointInPath(e,t){let n=this.fromParentPoint(e,t),a=this.computeBBoxWithoutTransforms();return a?a.grow(this.growCollisionBox).containsPoint(n.x,n.y):!1}},mae=(xt(),D(wt)),{Vec2:th}=mae._ModuleSupport;function PR(e,t,n,a,h,S,E){let{alignment:L,position:_}=n;if(!S||!h){t.setClipMask(e);return}let N=iU(a,n.fontSize,E),{point:V,textBaseline:q}=nU(N,_,L);aU(h,S,n,V,N.angle,q);let{x:Y,y:J,width:re,height:ce}=h.getBBox(),he=th.length(th.from(re,ce)),me={x:Y+re/2,y:J+ce/2,radius:he/2+th.length(N.offset)};return _==="center"?t.setClipMask(e,me):t.setClipMask(e),{clipMask:me,numbers:N}}function tU(e,t,n,a,h,S,E){if(!E||!S)return;let{alignment:L,position:_}=a,[N,V]=t.y1<=n.y1?[t,n]:[n,t],q=N;_==="bottom"?q=V:_==="inside"&&(q={x1:(N.x1+V.x1)/2,y1:(N.y1+V.y1)/2,x2:(N.x2+V.x2)/2,y2:(N.y2+V.y2)/2});let Y=iU(q,a.fontSize,h),{point:J,textBaseline:re}=nU(Y,_==="inside"?"center":_,L,e);aU(S,E,a,J,Y.angle,re)}function iU(e,t,n){let[a,h]=th.from(e);a.x>h.x&&([a,h]=[h,a]);let S=th.normalized(th.sub(h,a)),E=th.angle(S),L=th.multiply(S,mc.HANDLE_SIZE/2+(t!=null?t:14)/2),_=th.multiply(S,(n!=null?n:2)/2+(t!=null?t:14)/3);return{left:a,right:h,normal:S,angle:E,inset:L,offset:_}}function nU({left:e,right:t,normal:n,angle:a,inset:h,offset:S},E,L,_){let N;L==="right"?N=th.sub(t,h):L==="center"?N=th.add(e,th.multiply(n,th.distance(e,t)/2)):N=th.add(e,h);let V="bottom";return E==="bottom"?(N=th.rotate(S,a+Math.PI/2,N),V="top"):E==="center"&&!_?V="middle":N=th.rotate(S,a-Math.PI/2,N),{point:N,textBaseline:V}}function aU(e,t,n,a,h,S){e.setProperties({text:t,x:a.x,y:a.y,rotation:h,rotationCenterX:a.x,rotationCenterY:a.y,fill:n.color,fontFamily:n.fontFamily,fontSize:n.fontSize,fontStyle:n.fontStyle,fontWeight:n.fontWeight,textAlign:n.alignment,textBaseline:S})}var{ChartAxisDirection:fae,Vec2:LR,Vec4:s4}=uae._ModuleSupport,lA=class extends lu{constructor(){super(),this.type="cross-line",this.line=new cm,this.middle=new RR,this.isHorizontal=!1,this.append([this.line,this.middle])}static is(e){return lu.isCheck(e,"cross-line")}update(e,t){var S;let{seriesRect:n}=t;this.seriesRect=n,this.isHorizontal=eh.is(e);let a=this.isHorizontal?t.yAxis:t.xAxis,h=this.convertCrossLine(e,a);if(h==null){this.visible=!1;return}this.visible=(S=e.visible)!=null?S:!0,this.visible&&(this.updateLine(e,h),this.updateHandle(e,h),this.updateText(e,h),this.updateAxisLabel(e,a,h))}updateLine(e,t){let{line:n}=this,{lineDashOffset:a,stroke:h,strokeWidth:S,strokeOpacity:E}=e,{x1:L,y1:_,x2:N,y2:V}=t;n.setProperties({x1:L,y1:_,x2:N,y2:V,lineCap:e.getLineCap(),lineDash:e.getLineDash(),lineDashOffset:a,stroke:h,strokeWidth:S,strokeOpacity:E,fillOpacity:0})}updateHandle(e,t){var N,V,q;let{middle:n}=this,{locked:a,stroke:h,strokeWidth:S,strokeOpacity:E}=e,L={fill:e.handle.fill,stroke:(N=e.handle.stroke)!=null?N:h,strokeOpacity:(V=e.handle.strokeOpacity)!=null?V:E,strokeWidth:(q=e.handle.strokeWidth)!=null?q:S},_=LR.sub(s4.center(t),LR.from(n.handle.width/2,n.handle.height/2));n.gradient=this.isHorizontal?"horizontal":"vertical",n.update(pe(pe({},L),_)),n.toggleLocked(a!=null?a:!1)}updateText(e,t){this.text=this.updateNode(wE,this.text,!!e.text.label),PR(this.line.id,this.line,e.text,t,this.text,e.text.label,e.strokeWidth)}createAxisLabel(e){let t=new eU;return e.attachLabel(t),t}updateAxisLabel(e,t,n){this.axisLabel||(this.axisLabel=this.createAxisLabel(t));let{axisLabel:a,seriesRect:h}=this,{direction:S,position:E}=t;if(e.axisLabel.enabled){a.visible=this.visible;let L=E==="left"||E==="top"?s4.start(n):s4.end(n),_=S===fae.X?L.x:L.y;if(!t.inRange(_)){a.visible=!1;return}a.update(et(pe({},LR.add(L,LR.required(h))),{value:e.value,styles:e.axisLabel,context:t}))}else a.visible=!1}toggleHandles(e){this.middle.visible=e,this.middle.toggleHovered(this.activeHandle==="middle")}destroy(){var e;super.destroy(),(e=this.axisLabel)==null||e.destroy()}toggleActive(e){this.toggleHandles(e),this.middle.toggleActive(e)}dragStart(e,t,n){let a=eh.is(e)?{x:t.x,y:vE(e.value,n.yAxis)}:{x:vE(e.value,n.xAxis),y:t.y};this.dragState={offset:t,middle:a}}drag(e,t,n){let{activeHandle:a,dragState:h}=this;if(e.locked)return;let S;if(a)this[a].toggleDragging(!0),S=this[a].drag(t).point;else if(h)S=LR.add(h.middle,LR.sub(t,h.offset));else return;let E=Es(S,n),L=eh.is(e);e.set({value:L?E.y:E.x})}translate(e,{x:t,y:n},a){if(e.locked)return;let{axisContext:h,translation:S}=eh.is(e)?{axisContext:a.yAxis,translation:n}:{axisContext:a.xAxis,translation:t},E=vE(e.value,h)+S,L=g2(E,h);isNaN(L)||e.set({value:L})}stopDragging(){this.middle.toggleDragging(!1)}copy(e,t,n){let a=eh.is(e),h=this.isHorizontal?n.yAxis:n.xAxis,S=this.convertCrossLine(e,h);if(!S)return;let E=a?-30:0,L=a?0:-30,_=Es({x:S.x1+L,y:S.y1+E},n);return t.set({value:a?_.y:_.x}),t}getCursor(){return this.activeHandle==null?"pointer":this[this.activeHandle].getCursor()}containsPoint(e,t){let{middle:n,line:a,text:h}=this;return this.activeHandle=void 0,n.containsPoint(e,t)?(this.activeHandle="middle",!0):a.isPointInPath(e,t)||!!(h!=null&&h.containsPoint(e,t))}getNodeAtCoords(e,t){var n;if((n=this.text)!=null&&n.containsPoint(e,t))return"text";if(this.line.isPointInPath(e,t))return"line";if(this.middle.containsPoint(e,t))return"handle"}getAnchor(){let e=this.computeBBoxWithoutHandles();return this.isHorizontal?{x:e.x+e.width/2,y:e.y}:{x:e.x+e.width,y:e.y+e.height/2,position:"right"}}convertCrossLine(e,t){var V;if(e.value==null)return;let n=0,a=0,h=0,S=0,{bounds:E,scale:L}=t,_=((V=L.bandwidth)!=null?V:0)/2,N=L.convert(e.value)+_;return eh.is(e)?(a=E.width,h=N,S=N):(n=N,a=N,S=E.height),{x1:n,y1:h,x2:a,y2:S}}},vae=(xt(),D(wt)),{StateMachine:mF,StateMachineProperty:yae,Debug:bae}=vae._ModuleSupport,l4=class extends mF{constructor(e,t){let n=({point:h})=>{let S=e==="horizontal",E=S?new eh:new SC;E.set({value:S?h.y:h.x}),t.create(E),t.recordAction(`Create ${S?"horizontal-line":"vertical-line"} annotation`)},a=()=>{var h;(h=this.node)==null||h.toggleActive(!0),t.showAnnotationOptions(),t.update()};super("start",{start:{click:{target:"waiting-first-render",action:n},drag:{target:"waiting-first-render",action:n},reset:mF.parent,cancel:mF.parent},"waiting-first-render":{render:{target:mF.parent,action:a}}}),this.debug=bae.create(!0,"annotations")}};ve([yae()],l4.prototype,"node",2);var oU={type:"horizontal-line",datum:eh,scene:lA,isDatum:eh.is,translate:(e,t,n,a)=>{eh.is(t)&&lA.is(e)&&e.translate(t,n,a)},copy:(e,t,n,a)=>{if(eh.is(t)&&eh.is(n)&&lA.is(e))return e.copy(t,n,a)},update:(e,t,n)=>{eh.is(t)&&lA.is(e)&&e.update(t,n)},createState:(e,{createDatum:t})=>new l4("horizontal",et(pe({},e),{create:t("horizontal-line")})),dragState:e=>new pc(e)},rU={type:"vertical-line",datum:SC,scene:lA,isDatum:SC.is,translate:(e,t,n,a)=>{SC.is(t)&&lA.is(e)&&e.translate(t,n,a)},copy:(e,t,n,a)=>{if(SC.is(t)&&SC.is(n)&&lA.is(e))return e.copy(t,n,a)},update:(e,t,n)=>{SC.is(t)&&lA.is(e)&&e.update(t,n)},createState:(e,{createDatum:t})=>new l4("vertical",et(pe({},e),{create:t("vertical-line")})),dragState:e=>new pc(e)},Cae=(xt(),D(wt)),sU=(xt(),D(wt)),Sae=(xt(),D(wt)),{Vec4:wae}=Sae._ModuleSupport,lU=class{static updateBackground(e,t,n,a){var N,V;let{background:h}=this,{seriesRect:S}=a;h.path.clear(!0);let E=wae.from(0,0,S.width,S.height),L=this.getBackgroundPoints(e,t,n,E);for(let q=0;q<L.length;q++){let Y=L[q];q===0?h.path.moveTo(Y.x,Y.y):h.path.lineTo(Y.x,Y.y)}h.path.closePath(),h.checkPathDirty();let _=(V=(N=this.getBackgroundStyles)==null?void 0:N.call(this,e))!=null?V:e.background;h.setProperties({fill:_.fill,fillOpacity:_.fillOpacity})}},cU=class extends UW{constructor(){super(...arguments),this.handles={},this.topLine=new cm,this.bottomLine=new cm,this.background=new sU._ModuleSupport.Path({zIndex:-1}),this.anchor={x:0,y:0},this.updateBackground=lU.updateBackground.bind(this)}update(e,t){let{locked:n,visible:a}=e,h=bw(e,t),S=bw(e.bottom,t);if(h==null||S==null){this.visible=!1;return}else this.visible=a!=null?a:!0;let E=this.extendLine(h,e,t),L=this.extendLine(S,e,t);this.updateLines(e,E,L,t,h,S),this.updateHandles(e,h,S),this.updateText(e,h,S),this.updateBackground(e,E,L,t),this.updateAnchor(h,S);for(let _ of Object.values(this.handles))_.toggleLocked(n!=null?n:!1)}snapToAngle(e,t,n,a,h,S){let{handles:E}=this,L=E[a].handle,_=E[n].drag(e).point;return Es(sF(_,L,h,S),t)}toggleHandles(e){let{handles:t}=this;if(typeof e=="boolean"){for(let[n,a]of Object.entries(t))a.visible=e,a.toggleHovered(this.activeHandle===n);return}for(let[n,a]of Object.entries(e)){let h=t[n];h.visible=a!=null?a:!0,h.toggleHovered(this.activeHandle===n)}}toggleActive(e){this.toggleHandles(e);for(let t of Object.values(this.handles))t.toggleActive(e)}stopDragging(){let{activeHandle:e,handles:t}=this;e!=null&&t[e].toggleDragging(!1)}getAnchor(){return this.anchor}getCursor(){return this.activeHandle==null?"pointer":this.handles[this.activeHandle].getCursor()}containsPoint(e,t){let{handles:n,topLine:a,bottomLine:h,text:S}=this;this.activeHandle=void 0;for(let[E,L]of Object.entries(n))if(L.containsPoint(e,t))return this.activeHandle=E,!0;return a.containsPoint(e,t)||h.containsPoint(e,t)||!!(S!=null&&S.containsPoint(e,t))}getNodeAtCoords(e,t){var n;if((n=this.text)!=null&&n.containsPoint(e,t))return"text";if(this.topLine.containsPoint(e,t)||this.bottomLine.containsPoint(e,t))return"line";for(let[a,h]of Object.entries(this.handles))if(h.containsPoint(e,t))return"handle"}updateAnchor(e,t){let{x:n,y:a}=sU._ModuleSupport.Transformable.toCanvasPoint(this.topLine,(e.x1+e.x2)/2,Math.min(e.y1,e.y2,t.y1,t.y2));this.anchor.x=n,this.anchor.y=a}},{Vec2:cA,Vec4:fF}=Cae._ModuleSupport,vF=class extends cU{constructor(){super(),this.type="disjoint-channel",this.ignoreYBounds=!0,this.handles={topLeft:new mc,topRight:new mc,bottomLeft:new mc,bottomRight:new RR},this.append([this.background,this.topLine,this.bottomLine,...Object.values(this.handles)])}static is(e){return lu.isCheck(e,"disjoint-channel")}dragHandle(e,t,n,a){let{activeHandle:h,handles:S}=this;if(h==null)return;let{offset:E}=S[h].drag(t);S[h].toggleDragging(!0);let L=V=>Es(V,n),_=e.toJson(),N=e.snapToAngle;switch(h){case"topLeft":case"bottomLeft":{let V=h==="topLeft"?1:-1,q=a?this.snapToAngle(t,n,"topLeft","topRight",N,V):L({x:S.topLeft.handle.x+E.x,y:S.topLeft.handle.y+E.y*V}),Y=a?this.snapToAngle(t,n,"bottomLeft","bottomRight",N,-V):L({x:S.bottomLeft.handle.x+E.x,y:S.bottomLeft.handle.y+E.y*-V});if((q==null?void 0:q.y)==null||(Y==null?void 0:Y.y)==null||e.start.y==null)return;let J=e.startHeight+(q.y-e.start.y)*2;e.start.x=q.x,e.start.y=q.y,e.startHeight=J;break}case"topRight":{let V=a?this.snapToAngle(t,n,"topRight","topLeft",N):L({x:S.topRight.handle.x+E.x,y:S.topRight.handle.y+E.y});if((V==null?void 0:V.y)==null||e.end.y==null)return;let q=e.endHeight+(V.y-e.end.y)*2;e.end.x=V.x,e.end.y=V.y,e.endHeight=q;break}case"bottomRight":{let V=L({x:S.bottomLeft.handle.x+E.x,y:S.bottomLeft.handle.y+E.y}),q=L({x:S.bottomRight.handle.x+E.x,y:S.bottomRight.handle.y+E.y});if(!V||!q||e.start.y==null||e.end.y==null)return;let Y=e.end.y-q.y,J=e.startHeight-(e.endHeight-Y);e.startHeight=J,e.endHeight=Y}}e.isValidWithContext(n)||e.set(_)}updateLines(e,t,n){let{topLine:a,bottomLine:h}=this,{lineDashOffset:S,stroke:E,strokeOpacity:L,strokeWidth:_}=e,N={lineCap:e.getLineCap(),lineDash:e.getLineDash(),lineDashOffset:S,stroke:E,strokeOpacity:L,strokeWidth:_};a.setProperties(pe(pe({},t),N)),h.setProperties(pe(pe({},n),N))}updateHandles(e,t,n){var _,N,V;let{handles:{topLeft:a,topRight:h,bottomLeft:S,bottomRight:E}}=this,L={fill:e.handle.fill,stroke:(_=e.handle.stroke)!=null?_:e.stroke,strokeOpacity:(N=e.handle.strokeOpacity)!=null?N:e.strokeOpacity,strokeWidth:(V=e.handle.strokeWidth)!=null?V:e.strokeWidth};a.update(pe(pe({},L),fF.start(t))),h.update(pe(pe({},L),fF.end(t))),S.update(pe(pe({},L),fF.start(n))),E.update(pe(pe({},L),cA.sub(fF.end(n),cA.from(E.handle.width/2,E.handle.height/2))))}updateText(e,t,n){this.text=this.updateNode(wE,this.text,!!e.text.label),tU(!1,t,n,e.text,e.strokeWidth,this.text,e.text.label)}getBackgroundPoints(e,t,n,a){let h=t.x1>t.x2,S=t.y1>t.y2,E=S?a.y2:a.y1,L=S?a.y1:a.y2,_=cA.from(t);return e.extendEnd&&t.y2===L&&_.push(cA.from(h?a.x1:a.x2,S?a.y1:a.y2)),e.extendEnd&&n.y2===E&&_.push(cA.from(h?a.x1:a.x2,S?a.y2:a.y1)),_.push(...cA.from(n).reverse()),e.extendStart&&n.y1===L&&_.push(cA.from(h?a.x2:a.x1,S?a.y1:a.y2)),e.extendStart&&t.y1===E&&_.push(cA.from(h?a.x2:a.x1,S?a.y2:a.y1)),_}},xae=(xt(),D(wt)),{StateMachine:dA,StateMachineProperty:c4,Debug:Mae}=xae._ModuleSupport,yF=class extends dA{constructor(e){let t=({point:_})=>{let N=new Gf;N.set({start:_,end:_,startHeight:0,endHeight:0}),e.create(N)},n=()=>{let{node:_}=this;_==null||_.toggleActive(!0),_==null||_.toggleHandles({topLeft:!0,topRight:!1,bottomLeft:!1,bottomRight:!1})},a=({offset:_,context:N})=>{let{datum:V,snapping:q}=this;V&&(V.set({end:$B(_,N,q,V.start,V.snapToAngle)}),e.update())},h=()=>{var _;(_=this.node)==null||_.toggleHandles({topRight:!0}),e.update()},S=({point:_})=>{var ce;let{datum:N,node:V}=this;if((N==null?void 0:N.start.y)==null||(N==null?void 0:N.end.y)==null)return;let q=N.end.y-((ce=_.y)!=null?ce:0),Y=(N.start.y-N.end.y)*2+q,J={x:N.start.x,y:N.start.y-Y},re={x:N.end.x,y:_.y};V==null||V.toggleHandles({bottomLeft:!0,bottomRight:!0}),!(!e.validatePoint(J)||!e.validatePoint(re))&&(N.set({startHeight:Y,endHeight:q}),e.update())},E=({point:_})=>{var ce;let{datum:N,node:V}=this;if((N==null?void 0:N.start.y)==null||(N==null?void 0:N.end.y)==null)return;let q=N.end.y-((ce=_.y)!=null?ce:0),Y=(N.start.y-N.end.y)*2+q,J={x:N.start.x,y:N.start.y-q},re={x:N.end.x,y:_.y};V==null||V.toggleHandles(!0),!(!e.validatePoint(J)||!e.validatePoint(re))&&(N.set({startHeight:Y,endHeight:q}),e.recordAction("Create disjoint-channel annotation"),e.showAnnotationOptions(),e.update())},L=()=>e.delete();super("start",{start:{click:{target:"waiting-first-render",action:t},drag:{target:"waiting-first-render",action:t},reset:dA.parent},"waiting-first-render":{render:{target:"end",action:n}},end:{hover:a,drag:a,click:{target:"height",action:h},dragEnd:{target:"height",action:h},reset:{target:dA.parent,action:L},cancel:{target:dA.parent,action:L}},height:{hover:S,click:{target:dA.parent,action:E},drag:{target:dA.parent,action:E},reset:{target:dA.parent,action:L},cancel:{target:dA.parent,action:L}}}),this.debug=Mae.create(!0,"annotations"),this.snapping=!1}};ve([c4()],yF.prototype,"datum",2),ve([c4()],yF.prototype,"node",2),ve([c4()],yF.prototype,"snapping",2);var dU={type:"disjoint-channel",datum:Gf,scene:vF,isDatum:Gf.is,translate:(e,t,n,a)=>{Gf.is(t)&&vF.is(e)&&e.translate(t,n,a)},copy:(e,t,n,a)=>{if(Gf.is(t)&&Gf.is(n)&&vF.is(e))return e.copy(t,n,a)},update:(e,t,n)=>{Gf.is(t)&&vF.is(e)&&e.update(t,n)},createState:(e,{createDatum:t})=>new yF(et(pe({},e),{create:t("disjoint-channel")})),dragState:e=>new pc(e)},kae=(xt(),D(wt)),Dw=(xt(),D(wt)),d4=[0,23.6,38.2,50,61.8,78.6,100],Aae=[161.8,261.8,361.8,423.6],Dae=[...d4,...Aae],Eae={10:Dae,6:d4,4:d4.filter(e=>e!==78.6&&e!==23.6)},Iae=10;function Tae({x1:e,y1:t,x2:n,y2:a},h,S,E=10){let L=a-t,_=S?1:-1,N=S?t:a,V=N,q=[];return Eae[E].forEach((Y,J)=>{let re=N+L*(Y/100)*_,ce=h.yAxis.scaleInvert(re);q.push({id:J,x1:e,x2:n,y1:V,y2:re,tag:Y==100?0:1,label:{x1:Math.min(e,n)-Iae,x2:n,y1:re,y2:re,text:`${(Y/100).toFixed(3)} (${ce.toFixed(2)})`}}),V=re}),q}var{Vec2:Rae,Vec4:uU}=Dw._ModuleSupport,Pae=class extends lu{constructor(){super(),this.trendLine=new cm,this.rangeFillsGroup=new Dw._ModuleSupport.Group({name:`${this.id}-range-fills`}),this.rangeFillsGroupSelection=Dw._ModuleSupport.Selection.select(this.rangeFillsGroup,Dw._ModuleSupport.Range),this.rangeStrokesGroup=new Dw._ModuleSupport.Group({name:`${this.id}-range-strokes`}),this.rangeStrokesGroupSelection=Dw._ModuleSupport.Selection.select(this.rangeStrokesGroup,cm),this.labelsGroup=new Dw._ModuleSupport.Group({name:`${this.id}-ranges-labels`}),this.labelsGroupSelection=Dw._ModuleSupport.Selection.select(this.labelsGroup,wE),this.anchor={x:0,y:0,position:"above"},this.append([this.trendLine,this.rangeFillsGroup,this.rangeStrokesGroup,this.labelsGroup])}update(e,t){var L;let n=bw(e,t);if(n==null){this.visible=!1;return}if(n=uU.round(n),this.visible=(L=e.visible)!=null?L:!0,!this.visible)return;this.updateTrendLine(e,n),this.updateHandles(e,n),this.updateAnchor(e,n,t);let{reverse:a}=e,h=this.extendLine(n,e,t);this.updateRanges(e,h,t);let S=a?n.y2:n.y1,E=et(pe({},h),{y1:S,y2:S});this.updateText(e,E)}extendLine({x1:e,y1:t,x2:n,y2:a},h,S){let E={x1:e,y1:t,x2:n,y2:a};if(!h.extendStart&&!h.extendEnd)return E;let{x:L,width:_}=S.xAxis.bounds;return h.extendEnd&&(E[e>n?"x1":"x2"]=L+_),h.extendStart&&(E[e>n?"x2":"x1"]=L),E}updateTrendLine(e,t){let{trendLine:n}=this,{lineDashOffset:a,strokeWidth:h,strokeOpacity:S,stroke:E}=e;n.setProperties(et(pe({},t),{lineCap:e.getLineCap(),lineDash:[3,4],lineDashOffset:a,strokeWidth:h,strokeOpacity:S,fillOpacity:0,stroke:E}))}updateRangeStrokes(e){let{lineDashOffset:t,strokeWidth:n,strokeOpacity:a,strokes:h,rangeStroke:S,isMultiColor:E}=e;this.rangeStrokesGroupSelection.each((L,{x1:_,x2:N,y2:V,tag:q},Y)=>{let J=V,re=E?h[Y%h.length]:S;L.setProperties({x1:_,x2:N,y1:J,y2:J,stroke:re,strokeOpacity:a,strokeWidth:n,lineCap:e.getLineCap(),lineDash:e.getLineDash(),lineDashOffset:t,tag:q})})}updateRanges(e,t,n){let a=Tae(t,n,e.reverse,e.bands),h=S=>S.id;this.rangeFillsGroupSelection.update(a,void 0,h),this.rangeStrokesGroupSelection.update(a,void 0,h),this.labelsGroupSelection.update(a,void 0,h),this.updateRangeFills(e),this.updateRangeStrokes(e),this.updateRangeLabels(e,n)}updateRangeFills(e){let{lineDashOffset:t,strokeWidth:n,strokeOpacity:a,strokes:h,rangeStroke:S,showFill:E,isMultiColor:L}=e;this.rangeFillsGroupSelection.each((_,{x1:N,x2:V,y1:q,y2:Y},J)=>{let re=L?h[J%h.length]:S;if(!E){_.visible=!1;return}_.setProperties({x1:N,x2:V,y1:q,y2:Y,startLine:!1,endLine:!1,isRange:!0,stroke:re,strokeOpacity:a,fill:re,fillOpacity:(a!=null?a:1)*.15,strokeWidth:n,lineCap:e.getLineCap(),lineDash:e.getLineDash(),lineDashOffset:t,visible:!0})})}updateRangeLabels(e,{xAxis:t}){let{rangeStrokesGroupSelection:n}=this,{strokes:a,strokeWidth:h,rangeStroke:S,isMultiColor:E,label:{color:L,fontFamily:_,fontSize:N,fontStyle:V,fontWeight:q}}=e;this.labelsGroupSelection.each((Y,J,re)=>{let ce=L!=null?L:E?a[re%a.length]:S,he=n.at(re);if(!he)return;let Fe=J.label,{text:me}=Fe,we=ji(Fe,["text"]),Me={label:me,position:"center",alignment:"left",color:ce,fontFamily:_,fontSize:N,fontStyle:V,fontWeight:q};PR(Y.id,he,Me,we,Y),Y.setProperties({text:me,x:we.x1,y:we.y1,textBaseline:"middle",textAlign:"end",fill:ce,fontFamily:_,fontSize:N,fontStyle:V,fontWeight:q});let{x:be}=Y.getBBox();be>=t.bounds.x&&be<=t.bounds.x+t.bounds.width||PR(Y.id,he,Me,we,Y,me,h)})}updateText(e,t){let n=this.rangeStrokesGroupSelection.selectByTag(0)[0],{text:a,strokeWidth:h}=e;this.text=this.updateNode(wE,this.text,!!a.label),PR(n.id,n,a,t,this.text,a.label,h)}updateAnchor(e,t,n,a){let h=uU.topCenter(t);Rae.apply(this.anchor,Dw._ModuleSupport.Transformable.toCanvasPoint(this.trendLine,h.x,h.y))}containsPoint(e,t){let{trendLine:n,rangeStrokesGroupSelection:a,text:h}=this,S=!1;return a.each(E=>S||(S=E.isPointInPath(e,t))),S||n.isPointInPath(e,t)||!!(h!=null&&h.containsPoint(e,t))}getNodeAtCoords(e,t){var n;if((n=this.text)!=null&&n.containsPoint(e,t))return"text";if(this.trendLine.isPointInPath(e,t))return"line"}getHandleStyles(e){var t,n,a;return{fill:e.handle.fill,stroke:(t=e.handle.stroke)!=null?t:e.stroke,strokeOpacity:(n=e.handle.strokeOpacity)!=null?n:e.strokeOpacity,strokeWidth:(a=e.handle.strokeWidth)!=null?a:e.strokeWidth}}drag(e,t,n,a){e.locked||(this.activeHandle?this.dragHandle(e,t,n,a):this.dragAll(e,t,n))}getAnchor(){return this.anchor}getCursor(){return"pointer"}},{Vec2:Lae,Vec4:hU}=kae._ModuleSupport,bF=class extends Pae{constructor(){super(),this.type="fibonacci-retracement",this.start=new mc,this.end=new mc,this.append([this.start,this.end])}static is(e){return lu.isCheck(e,"fibonacci-retracement")}containsPoint(e,t){let{start:n,end:a}=this;return this.activeHandle=void 0,n.containsPoint(e,t)?(this.activeHandle="start",!0):a.containsPoint(e,t)?(this.activeHandle="end",!0):super.containsPoint(e,t)}getNodeAtCoords(e,t){return this.start.containsPoint(e,t)||this.end.containsPoint(e,t)?"handle":super.getNodeAtCoords(e,t)}dragStart(e,t,n){this.dragState=pe({offset:t},QB({start:e.start,end:e.end},n))}stopDragging(){this.start.toggleDragging(!1),this.end.toggleDragging(!1)}dragAll(e,t,n){let{dragState:a}=this;a&&this.translatePoints({datum:e,start:a.start,end:a.end,translation:Lae.sub(t,a.offset),context:n})}dragHandle(e,t,n,a){let{activeHandle:h,dragState:S}=this;if(!h||!S)return;this[h].toggleDragging(!0);let E=a?this.snapToAngle(e,t,n):Es(this[h].drag(t).point,n);!E||!fy(n,E)||(e[h].x=E.x,e[h].y=E.y)}snapToAngle(e,t,n){let{activeHandle:a}=this,S=["start","end"].find(L=>L!==a);if(!a||!S)return;this[a].toggleDragging(!0);let E=qc(e[S],n);return Es(sF(t,E,e.snapToAngle),n)}translatePoints({datum:e,start:t,end:n,translation:a,context:h}){var _,N,V,q;let{vectors:S,translateX:E,translateY:L}=zW({start:t,end:n},a,h);E&&(e.start.x=(_=S.start)==null?void 0:_.x,e.end.x=(N=S.end)==null?void 0:N.x),(this.ignoreYBounds||L)&&(e.start.y=(V=S.start)==null?void 0:V.y,e.end.y=(q=S.end)==null?void 0:q.y)}translate(e,t,n){this.translatePoints({datum:e,start:qc(e.start,n),end:qc(e.end,n),translation:t,context:n})}copy(e,t,n){let a=bw(e,n);if(!a)return;let h=this.computeBBoxWithoutHandles();return this.translatePoints({datum:t,start:{x:a.x1,y:a.y1},end:{x:a.x2,y:a.y2},translation:{x:-h.width/2,y:-h.height/2},context:n}),t}toggleHandles(e){if(typeof e=="boolean")this.start.visible=e,this.end.visible=e;else for(let[t,n]of Object.entries(e))this[t].visible=n;this.start.toggleHovered(this.activeHandle==="start"),this.end.toggleHovered(this.activeHandle==="end")}toggleActive(e){this.toggleHandles(e),this.start.toggleActive(e),this.end.toggleActive(e)}updateHandles(e,t,n){var a,h;this.start.update(pe(pe({},this.getHandleStyles(e)),this.getHandleCoords(e,t,"start"))),this.end.update(pe(pe({},this.getHandleStyles(e)),this.getHandleCoords(e,t,"end",n))),this.start.toggleLocked((a=e.locked)!=null?a:!1),this.end.toggleLocked((h=e.locked)!=null?h:!1)}getHandleCoords(e,t,n,a){return n==="start"?hU.start(t):hU.end(t)}},Oae=(xt(),D(wt)),{StateMachine:OR,StateMachineProperty:u4,Debug:_ae}=Oae._ModuleSupport,_R=class extends OR{constructor(e){let t=({point:L})=>{let _=this.createDatum();_.set({start:L,end:L}),e.create(_)},n=()=>{let{node:L}=this;L==null||L.toggleActive(!0),L==null||L.toggleHandles({start:!0,end:!1})},a=({offset:L,context:_})=>{let{datum:N,snapping:V}=this;N&&(N.set({end:$B(L,_,V,N.start,N.snapToAngle)}),e.update())},h=()=>{var L;(L=this.node)==null||L.toggleHandles({end:!0}),e.update()},S=()=>e.delete(),E=()=>{var L;e.showAnnotationOptions(),e.recordAction(`Create ${(L=this.datum)==null?void 0:L.type} annotation`)};super("start",{start:{click:{target:"waiting-first-render",action:t},drag:{target:"waiting-first-render",action:t},reset:OR.parent},"waiting-first-render":{render:{target:"end",action:n}},end:{hover:a,click:{target:OR.parent,action:h},drag:a,dragEnd:{target:OR.parent,action:h},reset:{target:OR.parent,action:S},cancel:{target:OR.parent,action:S},onExit:E}}),this.debug=_ae.create(!0,"annotations"),this.snapping=!1}};ve([u4()],_R.prototype,"datum",2),ve([u4()],_R.prototype,"node",2),ve([u4()],_R.prototype,"snapping",2);var Fae=class extends _R{createDatum(){return new Sw}},Nae=class extends _R{createDatum(){return new ww}},zae=class extends _R{createDatum(){return new xw}},gU={type:"fibonacci-retracement",datum:xw,scene:bF,isDatum:xw.is,translate:(e,t,n,a)=>{xw.is(t)&&bF.is(e)&&e.translate(t,n,a)},copy:(e,t,n,a)=>{if(xw.is(t)&&xw.is(n)&&bF.is(e))return e.copy(t,n,a)},update:(e,t,n)=>{xw.is(t)&&bF.is(e)&&e.update(t,n)},createState:(e,{createDatum:t})=>new zae(et(pe({},e),{create:t("fibonacci-retracement")})),dragState:e=>new pc(e)},pU=(xt(),D(wt)),h4=(xt(),D(wt)),{Vec2:b2}=h4._ModuleSupport,Bae=class extends h4._ModuleSupport.Group{},CF=class extends Bae{constructor(){super(),this.type="arrow",this.path=new h4._ModuleSupport.Path,this.armLength=6,this.append([this.path])}update(e){var Y;let{path:t}=this,q=e,{x:n,y:a,angle:h}=q,S=ji(q,["x","y","angle"]),E=b2.from(n,a),L=3*Math.PI/4,_=this.armLength+((Y=e.strokeWidth)!=null?Y:0)*2,N=b2.rotate(b2.from(0,_),h+L,E),V=b2.rotate(b2.from(_,0),h-L,E);t.setProperties(S),t.fillOpacity=0,t.path.clear(),t.path.moveTo(N.x,N.y),t.path.lineTo(E.x,E.y),t.path.lineTo(V.x,V.y)}},{Vec2:yy,Vec4:mU}=pU._ModuleSupport,uA=class extends t4{constructor(){super(),this.type="line",this.line=new cm,this.append([this.line,this.start,this.end])}static is(e){return lu.isCheck(e,"line")}update(e,t){var a;let n=bw(e,t);if(n==null){this.visible=!1;return}n=mU.round(n),this.visible=(a=e.visible)!=null?a:!0,this.visible&&(this.updateLine(e,n,t),this.updateHandles(e,n),this.updateText(e,n),this.updateCaps(e,n),this.updateAnchor(e,n,t))}updateLine(e,t,n){let{line:a}=this,{lineDashOffset:h,stroke:S,strokeWidth:E,strokeOpacity:L}=e,_=this.extendLine(t,e,n);a.setProperties(et(pe({},_),{lineCap:e.getLineCap(),lineDash:e.getLineDash(),lineDashOffset:h,stroke:S,strokeWidth:E,strokeOpacity:L,fillOpacity:0}))}updateText(e,t){this.text=this.updateNode(wE,this.text,!!e.text.label),PR(this.line.id,this.line,e.text,t,this.text,e.text.label,e.strokeWidth)}updateCaps(e,t){if(!e.startCap&&this.startCap&&(this.removeChild(this.startCap),this.startCap=void 0),!e.endCap&&this.endCap&&(this.removeChild(this.endCap),this.endCap=void 0),!e.startCap&&!e.endCap)return;let{stroke:n,strokeWidth:a,strokeOpacity:h}=e,[S,E]=yy.from(t),L=yy.angle(yy.sub(E,S));e.startCap&&(this.startCap&&this.startCap.type!==e.startCap&&(this.removeChild(this.startCap),this.startCap=void 0),this.startCap==null&&(this.startCap=new CF,this.append([this.startCap])),this.startCap.update({x:S.x,y:S.y,angle:L-Math.PI,stroke:n,strokeWidth:a,strokeOpacity:h})),e.endCap&&(this.endCap&&this.endCap.type!==e.endCap&&(this.removeChild(this.endCap),this.endCap=void 0),this.endCap==null&&(this.endCap=new CF,this.append([this.endCap])),this.endCap.update({x:E.x,y:E.y,angle:L,stroke:n,strokeWidth:a,strokeOpacity:h}))}updateAnchor(e,t,n,a){let h=mU.topCenter(t);yy.apply(this.anchor,pU._ModuleSupport.Transformable.toCanvasPoint(this.line,h.x,h.y))}containsPoint(e,t){let{line:n,text:a}=this;return super.containsPoint(e,t)||n.isPointInPath(e,t)||!!(a!=null&&a.containsPoint(e,t))}getNodeAtCoords(e,t){var n;return(n=this.text)!=null&&n.containsPoint(e,t)?"text":this.line.isPointInPath(e,t)?"line":super.getNodeAtCoords(e,t)}getHandleCoords(e,t,n,a){let{startCap:h,endCap:S}=this,[E,L]=yy.from(t),_=yy.angle(yy.sub(L,E));return h&&(E=yy.rotate(yy.from(0,-mc.HANDLE_SIZE/2),_,E)),S&&(L=yy.rotate(yy.from(0,mc.HANDLE_SIZE/2),_,L)),n==="start"?E:L}getHandleStyles(e){var t,n,a;return{fill:e.handle.fill,stroke:(t=e.handle.stroke)!=null?t:e.stroke,strokeOpacity:(n=e.handle.strokeOpacity)!=null?n:e.strokeOpacity,strokeWidth:(a=e.handle.strokeWidth)!=null?a:e.strokeWidth}}},fU={type:"line",datum:ww,scene:uA,isDatum:ww.is,translate:(e,t,n,a)=>{ww.is(t)&&uA.is(e)&&e.translate(t,n,a)},copy:(e,t,n,a)=>{if(ww.is(t)&&ww.is(n)&&uA.is(e))return e.copy(t,n,a)},update:(e,t,n)=>{ww.is(t)&&uA.is(e)&&e.update(t,n)},createState:(e,{createDatum:t})=>new Nae(et(pe({},e),{create:t("line")})),dragState:e=>new pc(e)},vU={type:"arrow",datum:Sw,scene:uA,isDatum:Sw.is,translate:(e,t,n,a)=>{Sw.is(t)&&uA.is(e)&&e.translate(t,n,a)},copy:(e,t,n,a)=>{if(Sw.is(t)&&Sw.is(n)&&uA.is(e))return e.copy(t,n,a)},update:(e,t,n)=>{Sw.is(t)&&uA.is(e)&&e.update(t,n)},createState:(e,{createDatum:t})=>new Fae(et(pe({},e),{create:t("arrow")})),dragState:e=>new pc(e)},g4=(xt(),D(wt)),Hf=(xt(),D(wt)),yU=(xt(),D(wt));function bU(e,t=0,n=0){let a=t;for(let h of e)if(Array.isArray(h)){for(let S of h)CU(S,a);a+=yU._ModuleSupport.Group.computeChildrenBBox(h).width+n}else CU(h,a),a+=h.getBBox().width+n}function Gae(e,t=0,n=0){let a=t;for(let h of e)if(Array.isArray(h)){for(let S of h)SU(S,a);a+=yU._ModuleSupport.Group.computeChildrenBBox(h).height+n}else SU(h,a),a+=h.getBBox().height+n}function CU(e,t){"x1"in e?(e.x2=t+(e.x2-e.x1),e.x1=t):e.x=t}function SU(e,t){"y1"in e?(e.y2=t+(e.y2-e.y1),e.y1=t):e.y=t}function wU(e,t){"x1"in e?(e.x1+=t,e.x2+=t):e.x+=t}function xU(e,t){"y1"in e?(e.y1+=t,e.y2+=t):e.y+=t}var{Vec4:jae}=Hf._ModuleSupport,MU=class extends Hf._ModuleSupport.Group{constructor(){super(),this.name="MeasurerStatisticsScene",this.background=new Hf._ModuleSupport.Rect,this.dateRangeBarsText=new Hf._ModuleSupport.Text,this.dateRangeDivider=new Hf._ModuleSupport.Line,this.dateRangeValueText=new Hf._ModuleSupport.Text,this.priceRangeValueText=new Hf._ModuleSupport.Text,this.priceRangeDivider=new Hf._ModuleSupport.Line,this.priceRangePercentageText=new Hf._ModuleSupport.Text,this.volumeText=new Hf._ModuleSupport.Text,this.volumeFormatter=new Intl.NumberFormat("en-US",{notation:"compact",minimumFractionDigits:2,maximumFractionDigits:2}),this.append([this.background,this.dateRangeBarsText,this.dateRangeDivider,this.dateRangeValueText,this.priceRangeValueText,this.priceRangeDivider,this.priceRangePercentageText,this.volumeText])}update(e,t,n,a,h,S){this.verticalDirection=h;let E=this.updateStatistics(e,t,n,S),L=Hf._ModuleSupport.Group.computeChildrenBBox(E.flat()),_=10;L.grow(_),this.updateBackground(e,L,_),this.reposition(E,_,a)}updateStatistics(e,t,n,a){let{dateRangeBarsText:h,dateRangeDivider:S,dateRangeValueText:E,priceRangeValueText:L,priceRangeDivider:_,priceRangePercentageText:N,volumeText:V}=this,q=8,Y=6,J=e.statistics.fontSize+3,re=-2,ce=this.getTextStyles(e),he=et(pe({},this.getDividerStyles(e)),{x1:0,y1:0,x2:0,y2:J}),me=[h,S,E],we=[L,_,N],Me=[];return t.priceRange&&(L.setProperties(et(pe({},ce),{text:this.formatPriceRangeValue(t.priceRange.value,a)})),_.setProperties(he),N.setProperties(et(pe({},ce),{text:this.formatPriceRangePercentage(t.priceRange.percentage,a)})),bU(we,n.x,q),Me.push(we)),t.dateRange&&(h.setProperties(et(pe({},ce),{text:this.formatDateRangeBars(t.dateRange.bars,a)})),S.setProperties(he),E.setProperties(et(pe({},ce),{text:this.formatDateRangeValue(t.dateRange.value)})),bU(me,n.x,q),Me.push(me)),t.volume!=null?(V.setProperties(et(pe({},ce),{x:n.x,text:this.formatVolume(t.volume,a),visible:!0})),Me.push(V)):V.visible=!1,Gae(Me,n.y,Y),_.y1+=re,_.y2+=re,S.y1+=re,S.y2+=re,Me}updateBackground(e,t,n){let a=this.getBackgroundStyles(e);this.background.setProperties(et(pe(pe({},a),t),{x:t.x-t.width/2+n,y:t.y}))}reposition(e,t,n){let{width:a,height:h}=n.seriesRect,S=jae.from(this.background.getBBox()),E=0;S.x1<0&&(E=-S.x1),S.x2>a&&(E=a-S.x2);let L=Math.min(t,h-S.y2);for(let _ of e)if(Array.isArray(_)){let N=Hf._ModuleSupport.Group.computeChildrenBBox(_).width;for(let V of _)wU(V,E-N/2),xU(V,L)}else wU(_,E-_.getBBox().width/2),xU(_,L);this.background.x+=E,this.background.y+=L}getTextStyles(e){return{fill:e.statistics.color,fontFamily:e.statistics.fontFamily,fontSize:e.statistics.fontSize,fontStyle:e.statistics.fontStyle,fontWeight:e.statistics.fontWeight,textBaseline:"top"}}getDividerStyles(e){return{stroke:e.statistics.divider.stroke,strokeOpacity:e.statistics.divider.strokeOpacity,strokeWidth:e.statistics.divider.strokeWidth}}getBackgroundStyles(e){return{fill:e.statistics.fill,stroke:e.statistics.stroke,strokeOpacity:e.statistics.strokeOpacity,strokeWidth:e.statistics.strokeWidth,cornerRadius:4}}formatDateRangeBars(e,t){var n;return(n=t==null?void 0:t.t("measurerDateRangeBars",{value:e}))!=null?n:`${e}`}formatDateRangeValue(e){let t=[],n=e>=0?"":"-";e=Math.abs(e);let a=1e3*60,h=a*60,S=h*24,E=Math.floor(e/a),L=Math.floor(e/h),_=Math.floor(e/S),N=L%(S/h),V=E%(h/a);return _>=1&&t.push(`${_}d`),L>=1&&(e<S||N!==0)&&t.push(`${N}h`),(e<h||V!==0)&&t.push(`${V}m`),t[0]=`${n}${t[0]}`,t.join(" ")}formatPriceRangeValue(e,t){var n;return(n=t==null?void 0:t.t("measurerPriceRangeValue",{value:Number(e.toFixed(2))}))!=null?n:`${e}`}formatPriceRangePercentage(e,t){var n;return(n=t==null?void 0:t.t("measurerPriceRangePercent",{value:e}))!=null?n:`${e}`}formatVolume(e,t){var a;let n=isNaN(e)?"":this.volumeFormatter.format(e);return(a=t==null?void 0:t.t("measurerVolume",{value:n}))!=null?a:n}},Vae=class extends MU{getDirectionStyles(e){return this.verticalDirection==="down"?e.down.statistics:e.up.statistics}getTextStyles(e){let t=this.getDirectionStyles(e);return et(pe({},super.getTextStyles(e)),{fill:t.color,fontFamily:t.fontFamily,fontSize:t.fontSize,fontStyle:t.fontStyle,fontWeight:t.fontWeight})}getDividerStyles(e){let t=this.getDirectionStyles(e);return{stroke:t.divider.stroke,strokeOpacity:t.divider.strokeOpacity,strokeWidth:t.divider.strokeWidth}}getBackgroundStyles(e){let t=this.getDirectionStyles(e);return et(pe({},super.getBackgroundStyles(e)),{fill:t.fill,stroke:t.stroke,strokeOpacity:t.strokeOpacity,strokeWidth:t.strokeWidth})}},{Vec2:MC,Vec4:xE}=g4._ModuleSupport,dm=class extends t4{constructor(){super(),this.type="measurer",this.horizontalLine=new cm,this.verticalLine=new cm,this.horizontalStartLine=new cm,this.horizontalEndLine=new cm,this.verticalStartLine=new cm,this.verticalEndLine=new cm,this.horizontalEndCap=new CF,this.verticalEndCap=new CF,this.background=new g4._ModuleSupport.Path({zIndex:-1}),this.updateBackground=lU.updateBackground.bind(this),this.statistics=this.createStatisticsScene(),this.statistics.zIndex=1,this.append([this.background,this.verticalStartLine,this.verticalEndLine,this.horizontalStartLine,this.horizontalEndLine,this.horizontalLine,this.verticalLine,this.horizontalEndCap,this.verticalEndCap,this.start,this.end,this.statistics])}static is(e){return lu.isCheck(e,"measurer")}createStatisticsScene(){return new MU}update(e,t){var E;let n=bw(e,t);if(n==null){this.visible=!1;return}if(this.visible=(E=e.visible)!=null?E:!0,!this.visible)return;let a=this.extendPerpendicular(n,e,t),h=et(pe({},a),{y2:a.y1}),S=et(pe({},a),{y1:a.y2});this.verticalDirection=n.y1<n.y2?"down":"up",this.updateVisibilities(e),this.updateLines(e,n),this.updateHandles(e,n),this.updateText(e,n),this.updateCaps(e,n),this.updateBoundingLines(e,a),this.updateBackground(e,h,S,t),this.updateStatistics(e,n,t),this.updateAnchor(e,n,t)}extendPerpendicular(e,t,n){let a={x1:Math.min(e.x1,e.x2),x2:Math.max(e.x1,e.x2),y1:Math.min(e.y1,e.y2),y2:Math.max(e.y1,e.y2)},[h,S]=MC.from(n.yAxis.bounds);return zf.is(t)?(t.extendAbove&&(a.y1=h.y),t.extendBelow&&(a.y2=S.y)):Bf.is(t)&&(t.extendLeft&&(a.x1=h.x),t.extendRight&&(a.x2=S.x)),a}updateVisibilities(e){let{horizontalStartLine:t,horizontalEndLine:n,horizontalEndCap:a,verticalStartLine:h,verticalEndLine:S,verticalEndCap:E}=this,{direction:L}=e;h.visible=L!=="vertical",S.visible=L!=="vertical",a.visible=L!=="vertical",t.visible=L!=="horizontal",n.visible=L!=="horizontal",E.visible=L!=="horizontal"}updateLines(e,t){let{horizontalLine:n,verticalLine:a}=this,{direction:h}=e,{x1:S,y1:E,x2:L,y2:_}=t,N=MC.round(xE.center(t)),V=this.getLineStyles(e);h!=="vertical"&&n.setProperties(et(pe({},V),{x1:S,x2:L,y1:N.y,y2:N.y})),h!=="horizontal"&&a.setProperties(et(pe({},V),{x1:N.x,x2:N.x,y1:E,y2:_}))}updateText(e,t){let{direction:n}=e,a=MC.round(xE.center(t)),h,S=pe({},t);n==="vertical"?(h=this.verticalLine,S.x1=a.x,S.x2=a.x):(h=this.horizontalLine,S.y1=a.y,S.y2=a.y),this.text=this.updateNode(wE,this.text,!!e.text.label);let{id:E}=h,L=PR(E,h,e.text,S,this.text,e.text.label,e.strokeWidth),_;if(n==="both"&&L&&this.text){let N=xE.from(this.text.getBBox()),{offset:V}=L.numbers;N.x1<=a.x+V.x&&N.x2>=a.x-V.x&&(_={x:a.x,y:L.clipMask.y,radius:this.text.getBBox().height/2+MC.length(V)})}this.verticalLine.setClipMask(E,_)}updateCaps(e,t){let{horizontalEndCap:n,verticalEndCap:a}=this,{direction:h}=e,{x1:S,y1:E,x2:L,y2:_}=t,N=MC.round(xE.center(t)),{stroke:V,strokeWidth:q,strokeOpacity:Y}=this.getLineStyles(e),J={stroke:V,strokeWidth:q,strokeOpacity:Y};if(h!=="vertical"){let re=S<=L?0:Math.PI,ce=L;h==="horizontal"&&(ce+=S<=L?-2:2),n.update(et(pe({},J),{x:ce,y:N.y,angle:re}))}if(h!=="horizontal"){let re=E<=_?Math.PI/2:Math.PI/-2,ce=_;h==="vertical"&&(ce+=E<=_?-2:2),a.update(et(pe({},J),{x:N.x,y:ce,angle:re}))}}updateBoundingLines(e,t){let{verticalStartLine:n,verticalEndLine:a,horizontalStartLine:h,horizontalEndLine:S}=this,{direction:E}=e,{x1:L,y1:_,x2:N,y2:V}=t,q=this.getLineStyles(e);E==="horizontal"&&(n.setProperties(et(pe({},q),{x1:L,y1:_,x2:L,y2:V})),a.setProperties(et(pe({},q),{x1:N,y1:_,x2:N,y2:V}))),E==="vertical"&&(h.setProperties(et(pe({},q),{x1:L,y1:_,x2:N,y2:_})),S.setProperties(et(pe({},q),{x1:L,y1:V,x2:N,y2:V})))}updateStatistics(e,t,n){let a=MC.add(xE.bottomCenter(t),MC.from(0,10)),h={volume:this.getVolume(e)};e.hasPriceRange&&(h.priceRange={percentage:this.getPriceRangePercentage(e),value:this.getPriceRangeValue(e)}),e.hasDateRange&&(h.dateRange={bars:this.getDateRangeBars(t,n),value:this.getDateRangeValue(e)}),this.statistics.update(e,h,a,n,this.verticalDirection,e.localeManager)}updateAnchor(e,t,n,a){let h=xE.topCenter(t);MC.apply(this.anchor,g4._ModuleSupport.Transformable.toCanvasPoint(this.horizontalLine,h.x,h.y))}getBackgroundPoints(e,t,n,a){let[h,S]=MC.from(t),[E,L]=MC.from(n);return[h,S,L,E]}getLineStyles(e){let{lineDashOffset:t,stroke:n,strokeWidth:a,strokeOpacity:h}=e;return{lineCap:e.getLineCap(),lineDash:e.getLineDash(),lineDashOffset:t,stroke:n,strokeWidth:a,strokeOpacity:h,fillOpacity:0}}getBackgroundStyles(e){let{background:t}=e;return{fill:t.fill,fillOpacity:t.fillOpacity}}getHandleStyles(e){var t,n,a;return{fill:e.handle.fill,stroke:(t=e.handle.stroke)!=null?t:e.stroke,strokeOpacity:(n=e.handle.strokeOpacity)!=null?n:e.strokeOpacity,strokeWidth:(a=e.handle.strokeWidth)!=null?a:e.strokeWidth}}containsPoint(e,t){let{horizontalLine:n,text:a,verticalLine:h,horizontalStartLine:S,horizontalEndLine:E,verticalStartLine:L,verticalEndLine:_}=this;return super.containsPoint(e,t)||n.isPointInPath(e,t)||h.isPointInPath(e,t)||S.visible&&S.isPointInPath(e,t)||E.visible&&E.isPointInPath(e,t)||L.visible&&L.isPointInPath(e,t)||_.visible&&_.isPointInPath(e,t)||!!(a!=null&&a.containsPoint(e,t))}getNodeAtCoords(e,t){var n;return(n=this.text)!=null&&n.containsPoint(e,t)?"text":this.start.containsPoint(e,t)||this.end.containsPoint(e,t)?"handle":"line"}getDateRangeBars(e,t){let{step:n}=t.xAxis.scale,a=e.x1<=e.x2?1:-1;return n?Math.round(xE.width(e)/n)*a:0}getDateRangeValue(e){if(e.start.x==null||e.end.x==null||!(e.start.x instanceof Date)||!(e.end.x instanceof Date))throw new Error("Can not create a date range measurement of non-date x-axis.");return e.end.x.getTime()-e.start.x.getTime()}getPriceRangePercentage(e){if(e.start.y==null||e.end.y==null)throw new Error("Can not create a price range measurement of a non-numeric y-axis");return(e.end.y-e.start.y)/e.start.y}getPriceRangeValue(e){if(e.start.y==null||e.end.y==null)throw new Error("Can not create a price range measurement of a non-numeric y-axis");return e.end.y-e.start.y}getVolume(e){return e.getVolume(e.start.x,e.end.x)}},SF=class extends dm{constructor(){super(...arguments),this.type="quick-measurer"}static is(e){return lu.isCheck(e,"quick-measurer")}createStatisticsScene(){return new Vae}getDirectionStyles(e){return this.verticalDirection==="down"?e.down:e.up}getLineStyles(e){let t=this.getDirectionStyles(e);return et(pe({},super.getLineStyles(e)),{stroke:t.stroke,strokeWidth:t.strokeWidth,strokeOpacity:t.strokeOpacity})}getBackgroundStyles(e){let t=this.getDirectionStyles(e);return{fill:t.fill,fillOpacity:t.fillOpacity}}getHandleStyles(e){var n,a,h;let t=this.getDirectionStyles(e);return{fill:t.handle.fill,stroke:(n=t.handle.stroke)!=null?n:t.stroke,strokeOpacity:(a=t.handle.strokeOpacity)!=null?a:t.strokeOpacity,strokeWidth:(h=t.handle.strokeWidth)!=null?h:t.strokeWidth}}},Hae=(xt(),D(wt)),{StateMachine:FR,StateMachineProperty:kU,Debug:Wae}=Hae._ModuleSupport,NR=class extends FR{constructor(e){let t=({point:E})=>{let L=this.createDatum();L.set({start:E,end:E}),e.create(L)},n=({point:E})=>{let{datum:L,node:_}=this;L==null||L.set({end:E}),_==null||_.toggleActive(!0),_==null||_.toggleHandles({end:!1}),e.update()},a=()=>{var E;(E=this.node)==null||E.toggleHandles({end:!0})},h=()=>e.delete(),S=()=>{var E;e.showAnnotationOptions(),!iA(this.datum)&&e.recordAction(`Create ${(E=this.node)==null?void 0:E.type} annotation`)};super("start",{start:{reset:FR.parent,click:{target:"end",action:t},drag:{target:"end",action:t}},end:{hover:n,drag:n,click:{target:FR.parent,action:a},dragEnd:{target:FR.parent,action:a},reset:{target:FR.parent,action:h},cancel:{target:FR.parent,action:h},onExit:S}}),this.debug=Wae.create(!0,"annotations")}};ve([kU()],NR.prototype,"datum",2),ve([kU()],NR.prototype,"node",2);var Uae=class extends NR{createDatum(){return new zf}},Kae=class extends NR{createDatum(){return new Bf}},qae=class extends NR{createDatum(){return new Cw}},Yae=class extends NR{createDatum(){return new lm}},AU={type:"date-range",datum:zf,scene:dm,isDatum:zf.is,translate:(e,t,n,a)=>{zf.is(t)&&dm.is(e)&&e.translate(t,n,a)},copy:(e,t,n,a)=>{if(zf.is(t)&&zf.is(n)&&dm.is(e))return e.copy(t,n,a)},update:(e,t,n)=>{zf.is(t)&&dm.is(e)&&e.update(t,n)},createState:(e,{createDatum:t})=>new Uae(et(pe({},e),{create:t("date-range")})),dragState:e=>new pc(e)},DU={type:"price-range",datum:Bf,scene:dm,isDatum:Bf.is,translate:(e,t,n,a)=>{Bf.is(t)&&dm.is(e)&&e.translate(t,n,a)},copy:(e,t,n,a)=>{if(Bf.is(t)&&Bf.is(n)&&dm.is(e))return e.copy(t,n,a)},update:(e,t,n)=>{Bf.is(t)&&dm.is(e)&&e.update(t,n)},createState:(e,{createDatum:t})=>new Kae(et(pe({},e),{create:t("date-range")})),dragState:e=>new pc(e)},EU={type:"date-price-range",datum:Cw,scene:dm,isDatum:Cw.is,translate:(e,t,n,a)=>{Cw.is(t)&&dm.is(e)&&e.translate(t,n,a)},copy:(e,t,n,a)=>{if(Cw.is(t)&&Cw.is(n)&&dm.is(e))return e.copy(t,n,a)},update:(e,t,n)=>{Cw.is(t)&&dm.is(e)&&e.update(t,n)},createState:(e,{createDatum:t})=>new qae(et(pe({},e),{create:t("date-range")})),dragState:e=>new pc(e)},IU={type:"quick-date-price-range",datum:lm,scene:SF,isDatum:lm.is,translate:(e,t,n,a)=>{lm.is(t)&&SF.is(e)&&e.translate(t,n,a)},copy:(e,t,n,a)=>{if(lm.is(t)&&lm.is(n)&&SF.is(e))return e.copy(t,n,a)},update:(e,t,n)=>{lm.is(t)&&SF.is(e)&&e.update(t,n)},createState:(e,{createDatum:t})=>new Yae(et(pe({},e),{create:t("quick-date-price-range")})),dragState:e=>new pc(e)},C2=(xt(),D(wt)),{ZIndexMap:TU,TextWrapper:Xae,clamp:Zae}=C2._ModuleSupport,wF=class extends o4{constructor(){super(),this.type="note",this.shape=new C2._ModuleSupport.Rect,this.iconBackground=new C2._ModuleSupport.SvgPath("M22 1.83333C22 0.820811 21.1792 0 20.1667 0H1.83333C0.820811 0 0 0.82081 0 1.83333V13.9868C0 14.9994 0.820811 15.8202 1.83333 15.8202L5.88971 15.8202C6.44575 15.8202 6.97175 16.0725 7.31971 16.5062L9.57006 19.3112C10.304 20.2259 11.6962 20.2259 12.4301 19.3112L14.6804 16.5062C15.0284 16.0725 15.5544 15.8202 16.1104 15.8202L20.1667 15.8202C21.1792 15.8202 22 14.9994 22 13.9868V1.83333Z"),this.iconLines=new C2._ModuleSupport.SvgPath("M17.1114 5.75C17.1114 6.16421 16.7756 6.5 16.3614 6.5H5.63916C5.22495 6.5 4.88916 6.16421 4.88916 5.75V5.75C4.88916 5.33579 5.22495 5 5.63916 5H16.3614C16.7756 5 17.1114 5.33579 17.1114 5.75V5.75ZM17.1114 9.25C17.1114 9.66421 16.7756 10 16.3614 10H5.63916C5.22495 10 4.88916 9.66421 4.88916 9.25V9.25C4.88916 8.83579 5.22495 8.5 5.63916 8.5H16.3614C16.7756 8.5 17.1114 8.83579 17.1114 9.25V9.25Z"),this.active=!1,this.shape.visible=!1,this.label.visible=!1,this.iconBackground.fillShadow=new C2._ModuleSupport.DropShadow,this.append([this.shape,this.label,this.iconBackground,this.iconLines,this.handle])}static is(e){return lu.isCheck(e,"note")}update(e,t){this.updateIcon(e,t),super.update(e,t)}getTextBBox(e,t,n){let a=super.getTextBBox(e,t,n);a.x-=e.width/2,a.x=Zae(0,a.x,n.seriesRect.width-e.width);let h=e.getPadding().top,S=a.y-hW-h*2,E=a.y+mc.HANDLE_SIZE+h*2;return S-a.height-gW<0?(a.y=E,e.position="top"):(a.y=S+h,e.position="bottom"),a}updateLabel(e,t){let n=e.visible===!1?!1:this.label.visible;super.updateLabel(e,t),this.label.visible=n,this.label.text=Xae.wrapText(e.text,{font:{fontFamily:e.fontFamily,fontSize:e.fontSize,fontStyle:e.fontStyle,fontWeight:e.fontWeight},avoidOrphans:!1,textAlign:e.textAlign,textBaseline:"hanging",textWrap:"always",maxWidth:200})}updateShape(e,t){var S,E,L;let{shape:n}=this;n.fill=e.background.fill,n.fillOpacity=(S=e.background.fillOpacity)!=null?S:1,n.stroke=e.background.stroke,n.strokeOpacity=(E=e.background.strokeOpacity)!=null?E:1,n.strokeWidth=(L=e.background.strokeWidth)!=null?L:1,n.cornerRadius=4;let a=e.getPadding().top,h=e.position==="top";n.x=t.x-a,n.width=e.width+a*2,n.height=t.height+a*2,n.y=t.y+(h?0:-t.height)-a}updateIcon(e,t){var L,_,N,V;let{active:n,iconBackground:a,iconLines:h}=this,{x:S,y:E}=qc(e,t);a.x=S-vie/2,a.y=E-uW,h.x=a.x,h.y=a.y,a.fill=e.fill,a.fillOpacity=(L=e.fillOpacity)!=null?L:1,a.stroke=e.stroke,a.strokeOpacity=(_=e.strokeOpacity)!=null?_:1,a.strokeWidth=(N=e.strokeWidth)!=null?N:1,h.fill=e.stroke,n?a.fillShadow.color=(V=e.fill)!=null?V:"rgba(0, 0, 0, 0.22)":a.fillShadow.color="rgba(0, 0, 0, 0.22)"}updateAnchor(e,t,n){let a=e.getPadding().top,h=e.position==="top",S=h?1:-1;return{x:t.x+n.seriesRect.x+e.width/2,y:t.y+n.seriesRect.y+S*(t.height+a),position:h?"below":"above"}}getLabelCoords(e,t){let n=e.position==="top",a=e.getPadding().top;return{x:t.x,y:t.y+(n?a/2:0)}}getHandleCoords(e,t,n){return{x:t.x,y:t.y+mc.HANDLE_SIZE/2+4}}getHandleStyles(e){var t;return{fill:e.handle.fill,stroke:(t=e.handle.stroke)!=null?t:e.fill,strokeOpacity:e.handle.strokeOpacity,strokeWidth:e.handle.strokeWidth}}toggleHovered(e){super.toggleHovered(e),this.label.visible=e,this.shape.visible=e,this.zIndex=e?TU.CHART_ANNOTATION_FOCUSED:TU.CHART_ANNOTATION}toggleActive(e){super.toggleActive(e),this.label.visible=e,this.shape.visible=e,this.active=e}containsPoint(e,t){return this.shape.visible&&this.shape.containsPoint(e,t)||this.iconBackground.containsPoint(e,t)?!0:super.containsPoint(e,t)}},$ae=class extends y2{createDatum(){return new qg}},RU={type:"note",datum:qg,scene:wF,isDatum:qg.is,translate:(e,t,n,a)=>{qg.is(t)&&wF.is(e)&&e.translate(t,n,a)},copy:(e,t,n,a)=>{if(qg.is(t)&&qg.is(n)&&wF.is(e))return e.copy(t,n,a)},update:(e,t,n)=>{qg.is(t)&&wF.is(e)&&e.update(t,n)},createState:(e,{createDatum:t})=>new $ae(et(pe({},e),{create:t("note")})),dragState:e=>new pc(e)},Qae=(xt(),D(wt)),{Vec2:kC,Vec4:zR}=Qae._ModuleSupport,xF=class extends cU{constructor(){super(),this.type="parallel-channel",this.ignoreYBounds=!0,this.handles={topLeft:new mc,topMiddle:new RR,topRight:new mc,bottomLeft:new mc,bottomMiddle:new RR,bottomRight:new mc},this.middleLine=new cm,this.append([this.background,this.topLine,this.middleLine,this.bottomLine,...Object.values(this.handles)])}static is(e){return lu.isCheck(e,"parallel-channel")}dragHandle(e,t,n,a){let{activeHandle:h,handles:S}=this;if(h==null)return;let{offset:E}=S[h].drag(t);S[h].toggleDragging(!0);let L=e.toJson(),_=[],N=[];switch(h){case"topLeft":case"bottomLeft":_=["topLeft","bottomLeft"],N=["topRight","bottomRight"];break;case"topMiddle":_=["topLeft","topRight"],E.y-=RR.HANDLE_SIZE/2;break;case"topRight":case"bottomRight":_=["topRight","bottomRight"],N=["topLeft","bottomLeft"];break;case"bottomMiddle":_=["bottomLeft","bottomRight"],E.y-=RR.HANDLE_SIZE/2;break}let V=e.snapToAngle,q=_.map((Y,J)=>a&&N[J]?this.snapToAngle(t,n,Y,N[J],V):Es(kC.add(S[Y].handle,E),n)).filter(kie);if(!q.some(Y=>!fy(n,Y,{y:!1}))){if((h==="topMiddle"||h==="bottomMiddle")&&e.start.y!=null){let Y=Es(kC.add(S.topLeft.handle,E),n);fy(n,Y)&&(h==="topMiddle"?e.height+=Y.y-e.start.y:e.height-=Y.y-e.start.y)}for(let[Y,J]of q.entries())switch(_[Y]){case"topLeft":e.start.x=J.x,e.start.y=J.y;break;case"topRight":e.end.x=J.x,e.end.y=J.y;break}e.isValidWithContext(n)||e.set(L)}}containsPoint(e,t){return super.containsPoint(e,t)||this.middleLine.visible&&this.middleLine.strokeWidth>0&&this.middleLine.containsPoint(e,t)}getNodeAtCoords(e,t){return this.middleLine.visible&&this.middleLine.strokeWidth>0&&this.middleLine.containsPoint(e,t)?"line":super.getNodeAtCoords(e,t)}updateLines(e,t,n,a,h,S){var he,me,we,Me,be,Le;let{topLine:E,middleLine:L,bottomLine:_}=this,{lineDashOffset:N,stroke:V,strokeOpacity:q,strokeWidth:Y}=e,J=e.getLineDash(),re={lineCap:e.getLineCap(),lineDash:J,lineDashOffset:N,stroke:V,strokeOpacity:q,strokeWidth:Y};E.setProperties(pe(pe({},t),re)),_.setProperties(pe(pe({},n),re));let ce=this.extendLine({x1:h.x1,y1:S.y1+(h.y1-S.y1)/2,x2:h.x2,y2:S.y2+(h.y2-S.y2)/2},e,a);L.setProperties(et(pe({},ce),{lineDash:(he=e.middle.lineDash)!=null?he:J,lineDashOffset:(me=e.middle.lineDashOffset)!=null?me:N,stroke:(we=e.middle.stroke)!=null?we:V,strokeOpacity:(Me=e.middle.strokeOpacity)!=null?Me:q,strokeWidth:(be=e.middle.strokeWidth)!=null?be:Y,visible:(Le=e.middle.visible)!=null?Le:!0}))}updateHandles(e,t,n){var V,q,Y;let{handles:{topLeft:a,topMiddle:h,topRight:S,bottomLeft:E,bottomMiddle:L,bottomRight:_}}=this,N={fill:e.handle.fill,stroke:(V=e.handle.stroke)!=null?V:e.stroke,strokeOpacity:(q=e.handle.strokeOpacity)!=null?q:e.strokeOpacity,strokeWidth:(Y=e.handle.strokeWidth)!=null?Y:e.strokeWidth};a.update(pe(pe({},N),zR.start(t))),S.update(pe(pe({},N),zR.end(t))),E.update(pe(pe({},N),zR.start(n))),_.update(pe(pe({},N),zR.end(n))),h.update(pe(pe({},N),kC.sub(zR.center(t),kC.from(h.handle.width/2,h.handle.height/2)))),L.update(pe(pe({},N),kC.sub(zR.center(n),kC.from(L.handle.width/2,L.handle.height/2))))}updateText(e,t,n){this.text=this.updateNode(wE,this.text,!!e.text.label),tU(!0,t,n,e.text,e.strokeWidth,this.text,e.text.label)}getBackgroundPoints(e,t,n,a){let h=t.x1>t.x2,S=t.y1>t.y2,E=t.x1!==n.x1&&t.y1!==n.y1,L=t.x2!==n.x2&&t.y2!==n.y2,_=kC.from(t);return e.extendEnd&&L&&_.push(kC.from(h?a.x1:a.x2,S?a.y1:a.y2)),_.push(...kC.from(n).reverse()),e.extendStart&&E&&_.push(kC.from(h?a.x2:a.x1,S?a.y2:a.y1)),_}},Jae=(xt(),D(wt)),{StateMachine:hA,StateMachineProperty:p4,Debug:eoe}=Jae._ModuleSupport,MF=class extends hA{constructor(e){let t=({point:_})=>{let N=new jf;N.set({start:_,end:_,height:0}),e.create(N)},n=()=>{let{node:_}=this;_==null||_.toggleActive(!0),_==null||_.toggleHandles({topLeft:!0,topMiddle:!1,topRight:!1,bottomLeft:!1,bottomMiddle:!1,bottomRight:!1})},a=({offset:_,context:N})=>{let{datum:V,snapping:q}=this;V&&(V.set({end:$B(_,N,q,V.start,V.snapToAngle)}),e.update())},h=()=>{var _;(_=this.node)==null||_.toggleHandles({topRight:!0}),e.update()},S=({point:_})=>{var J;let{datum:N,node:V}=this;if((N==null?void 0:N.start.y)==null||(N==null?void 0:N.end.y)==null)return;let q=N.end.y-((J=_.y)!=null?J:0),Y=N.start.y-q;V==null||V.toggleHandles({bottomLeft:!0,bottomRight:!0}),!(!e.validatePoint({x:N.start.x,y:Y})||!e.validatePoint({x:N.end.x,y:_.y}))&&(N.set({height:q}),e.update())},E=({point:_})=>{var J;let{datum:N,node:V}=this;if((N==null?void 0:N.start.y)==null||(N==null?void 0:N.end.y)==null)return;let q=N.end.y-((J=_.y)!=null?J:0),Y=N.start.y-q;V==null||V.toggleHandles(!0),!(!e.validatePoint({x:N.start.x,y:Y})||!e.validatePoint({x:N.end.x,y:_.y}))&&(N.set({height:q}),e.recordAction("Create parallel-channel annotation"),e.showAnnotationOptions(),e.update())},L=()=>e.delete();super("start",{start:{click:{target:"waiting-first-render",action:t},drag:{target:"waiting-first-render",action:t},reset:hA.parent},"waiting-first-render":{render:{target:"end",action:n}},end:{hover:a,drag:a,click:{target:"height",action:h},dragEnd:{target:"height",action:h},reset:{target:hA.parent,action:L},cancel:{target:hA.parent,action:L}},height:{hover:S,click:{target:hA.parent,action:E},drag:{target:hA.parent,action:E},reset:{target:hA.parent,action:L},cancel:{target:hA.parent,action:L}}}),this.debug=eoe.create(!0,"annotations"),this.snapping=!1}};ve([p4()],MF.prototype,"datum",2),ve([p4()],MF.prototype,"node",2),ve([p4()],MF.prototype,"snapping",2);var PU={type:"parallel-channel",datum:jf,scene:xF,isDatum:jf.is,translate:(e,t,n,a)=>{jf.is(t)&&xF.is(e)&&e.translate(t,n,a)},copy:(e,t,n,a)=>{if(jf.is(t)&&jf.is(n)&&xF.is(e))return e.copy(t,n,a)},update:(e,t,n)=>{jf.is(t)&&xF.is(e)&&e.update(t,n)},createState:(e,{createDatum:t})=>new MF(et(pe({},e),{create:t("parallel-channel")})),dragState:e=>new pc(e)},kF=class extends o4{constructor(){super(),this.type="text",this.append([this.label,this.handle])}static is(e){return lu.isCheck(e,"text")}getHandleCoords(e,t){let n=mc.HANDLE_SIZE/2;return{x:t.x+n,y:t.y+2+n}}},toe=class extends y2{createDatum(){return new Mw}},LU={type:"text",datum:Mw,scene:kF,isDatum:Mw.is,translate:(e,t,n,a)=>{Mw.is(t)&&kF.is(e)&&e.translate(t,n,a)},copy:(e,t,n,a)=>{if(Mw.is(t)&&Mw.is(n)&&kF.is(e))return e.copy(t,n,a)},update:(e,t,n)=>{Mw.is(t)&&kF.is(e)&&e.update(t,n)},createState:(e,{createDatum:t})=>new toe(et(pe({},e),{create:t("text")})),dragState:e=>new pc(e)},um={[fU.type]:fU,[oU.type]:oU,[rU.type]:rU,[PU.type]:PU,[dU.type]:dU,[gU.type]:gU,[ZW.type]:ZW,[JW.type]:JW,[RU.type]:RU,[LU.type]:LU,[vU.type]:vU,[VW.type]:VW,[jW.type]:jW,[AU.type]:AU,[DU.type]:DU,[EU.type]:EU,[IU.type]:IU};function ME(e){for(let{isDatum:t}of Object.values(um))if(t(e))return e}var ioe=(xt(),D(wt)),{ActionOnSet:noe,ParallelStateMachine:aoe,StateMachine:m4,StateMachineProperty:AC,Debug:ooe}=ioe._ModuleSupport,AF=class extends aoe{constructor(e){super(new roe(t=>{this.snapping=t}),new soe(()=>{this.node=this.active==null?void 0:e.node(this.active)}),new gA(e,t=>{this.active=t,this.datum=this.active==null?void 0:e.datum(this.active),this.node=this.active==null?void 0:e.node(this.active)})),this.snapping=!1}getActive(){return this.active}isActive(e){return e===this.active}};ve([AC()],AF.prototype,"snapping",2),ve([AC()],AF.prototype,"datum",2),ve([AC()],AF.prototype,"node",2);var roe=class extends m4{constructor(e){super("idle",{idle:{hover:({shiftKey:t})=>e(t),keyDown:({shiftKey:t})=>e(t),keyUp:({shiftKey:t})=>e(t),click:({shiftKey:t})=>e(t),drag:({shiftKey:t})=>e(t)},dragging:{},["text-input"]:{}})}},soe=class extends m4{constructor(e){super("idle",{idle:{onEnter:e,render:e},dragging:{onEnter:e,render:e},["text-input"]:{render:e}})}},gA=class extends m4{constructor(e,t){let n=Me=>be=>{e.create(Me,be),this.active=e.selectLast()},a=()=>{this.active!=null&&e.delete(this.active),this.active=void 0,e.select()},h={createDatum:n},S=et(pe({},e),{delete:a,showTextInput:()=>{this.active!=null&&e.showTextInput(this.active)},deselect:()=>{let Me=this.active;this.active=void 0,this.hovered=void 0,e.select(this.active,Me)},showAnnotationOptions:()=>{this.active!=null&&e.showAnnotationOptions(this.active)}}),E=Object.fromEntries(Object.entries(um).map(([Me,be])=>[Me,be.createState(S,h)])),L=Object.fromEntries(Object.entries(um).map(([Me,be])=>[Me,be.dragState(e,h)])),_=({colorPickerType:Me,colorOpacity:be,color:Le,opacity:Fe,isMultiColor:je})=>{this.datum&&(Me==="text-color"&&e.updateTextInputColor(Le),nF(this.datum,Me,be,Le,Fe,je),e.update())},N=Me=>{let{datum:be,node:Le}=this;!be||!Le||(wC(be)?(be.fontSize=Me,e.updateTextInputFontSize(Me)):IR(be)&&(be.text.fontSize=Me),e.update())},V=Me=>{let{datum:be,node:Le}=this;!be||!Le||!nA(be)||(MW(be,Me),e.update())},q=Me=>{let{node:be}=this;!be||!("setTextInputBBox"in be)||(be.setTextInputBBox(Me),e.update())},Y=({textInputValue:Me,bbox:be})=>{let{datum:Le}=this;if(be!=null&&Me!=null&&Me.length>0){if(!wC(Le))return;let Fe=$_(Le,Me,be.width);Le.set({text:Fe}),e.update(),e.recordAction(`Change ${Le.type} annotation text`)}else e.delete(this.active),e.recordAction(`Delete ${Le==null?void 0:Le.type} annotation`)},J=()=>{e.updateTextInputBBox(void 0)},re=()=>this.active!=null,ce=()=>this.copied!=null,he=()=>{let{active:Me,datum:be}=this;return Me==null||!be?!1:IR(be)&&!be.locked},me=()=>this.active!=null&&!iA(this.datum),we=()=>this.hovered!=null;super("idle",{idle:pe({onEnter:()=>{e.select(this.active,this.active),this.hoverCoords&&(this.hovered=e.hoverAtCoords(this.hoverCoords,this.active))},hover:({offset:Me})=>{this.hovered=e.hoverAtCoords(Me,this.active),this.hoverCoords=Me},translate:{guard:re,action:({translation:Me})=>{e.startInteracting(),e.translate(this.active,Me),e.update()}},translateEnd:{guard:re,action:()=>{e.stopInteracting()}},copy:{guard:me,action:()=>{this.copied=e.copy(this.active)}},cut:{guard:me,action:()=>{this.copied=e.copy(this.active),a()}},paste:{guard:ce,action:()=>{e.paste(this.copied)}},selectLast:()=>{let Me=this.active;this.active=e.selectLast(),e.select(this.active,Me)},click:[{guard:()=>{let{active:Me,hovered:be,datum:Le}=this;return Me==null||be!==Me||!Le?!1:wC(Le)&&!Le.locked},target:"text-input"},{action:()=>{let Me=this.active;this.active=this.hovered,e.select(this.active,Me)}}],dblclick:{guard:he,action:({offset:Me})=>{let be=e.getNodeAtCoords(Me,this.active)==="text"?"text":"line";e.showAnnotationSettings(this.active,void 0,be)}},dragStart:[{guard:we,target:"dragging",action:()=>{let Me=this.active;this.active=this.hovered,e.select(this.active,Me),e.startInteracting()}},{action:()=>{let Me=this.active;this.active=this.hovered,e.select(this.active,Me)}}],color:{guard:re,action:_},fontSize:{guard:re,action:N},lineProps:{guard:re,action:Me=>{let be=ME(this.datum);be==null||be.set(Me),e.update(),e.recordAction(`Change ${be==null?void 0:be.type} ${Object.entries(Me).map(([Le,Fe])=>`${Le} to ${Fe}`).join(", ")}`)}},lineStyle:{guard:re,action:V},lineText:{guard:re,action:Me=>{let be=ME(this.datum);IR(be)&&(kw(be)&&Me.position==="center"&&(Me.position="inside"),be.text.set(Me),e.update())}},updateTextInputBBox:{guard:re,action:q},toolbarPressSettings:{guard:he,action:Me=>{e.showAnnotationSettings(this.active,Me)}},reset:()=>{var Me;this.active!=null&&((Me=this.node)==null||Me.toggleActive(!1)),this.hovered=void 0,this.active=void 0,e.select(this.active,this.active),e.resetToIdle()},delete:()=>{var Me;this.active!=null&&(e.delete(this.active),!iA(this.datum)&&e.recordAction(`Delete ${(Me=this.datum)==null?void 0:Me.type} annotation`))},deleteAll:()=>{e.deleteAll()}},E),dragging:pe({onEnter:(Me,be)=>{if(this.active==null)return;let Le=e.getAnnotationType(this.active);Le&&(this.transitionRoot(Le),this.transitionRoot("dragStart",be))}},L),["text-input"]:{onEnter:()=>{if(this.active==null)return;let Me=ME(this.datum);!Me||!("getTextInputCoords"in Me)||(e.startInteracting(),e.showTextInput(this.active),Me.visible=!1,e.update())},updateTextInputBBox:{guard:re,action:q},resize:{target:"idle",action:Y},click:{target:"idle",action:Y},drag:{target:"idle",action:Y},textInput:[{guard:i4,target:"idle",action:J},{guard:n4,target:"idle",action:Y}],color:{guard:re,action:_},fontSize:{guard:re,action:N},cancel:{target:"idle",action:J},onExit:()=>{e.stopInteracting(),e.hideTextInput();let Me=this.active;if(this.active=this.hovered=void 0,e.select(this.active,Me),Me==null)return;let be=e.datum(Me),Le=e.node(Me);!be||!Le||(be.visible=!0)}}}),this.setActive=t,this.debug=ooe.create(!0,"annotations"),this.snapping=!1}};ve([noe({changeValue(e){this.setActive(e)}}),AC()],gA.prototype,"active",2),ve([AC()],gA.prototype,"hovered",2),ve([AC()],gA.prototype,"hoverCoords",2),ve([AC()],gA.prototype,"copied",2),ve([AC()],gA.prototype,"snapping",2),ve([AC()],gA.prototype,"datum",2),ve([AC()],gA.prototype,"node",2);var f4=(xt(),D(wt)),{ARRAY:loe,BOOLEAN:coe,UNION:doe,ActionOnSet:uoe,LayoutElement:hoe,Menu:goe,PropertiesArray:poe,ToolbarButtonProperties:moe,Validate:v4}=f4._ModuleSupport,OU=class extends moe{};ve([v4(doe(["line-menu","fibonacci-menu","text-menu","shape-menu","measurer-menu","clear"]))],OU.prototype,"value",2);var y4=class extends f4._ModuleSupport.BaseProperties{constructor(e){super(),this.ctx=e,this.enabled=!0,this.buttons=new poe(OU),this.events=new f4._ModuleSupport.Listeners,this.annotationMenu=new goe(this.ctx,"annotations"),this.destroyFns=[],this.toolbar=e.sharedToolbar.getSharedToolbar("annotations");let t=this.onKeyDown.bind(this);this.toolbar.addListener("keydown",t),this.destroyFns.push(this.toolbar.addToolbarListener("button-pressed",this.onToolbarButtonPress.bind(this)),e.layoutManager.registerElement(hoe.ToolbarLeft,this.onLayoutStart.bind(this)),()=>{this.toolbar.removeListener("keydown",t),this.toolbar.destroy()})}destroy(){for(let e of this.destroyFns)e()}addListener(e,t){return this.events.addListener(e,t)}toggleVisibility(e){this.toolbar.setHidden(!e)}toggleClearButtonEnabled(e){let t=this.buttons.findIndex(n=>n.value==="clear");this.toolbar.toggleButtonEnabledByIndex(t,e)}resetButtonIcons(){for(let[e,t]of this.buttons.entries())switch(t.value){case"line-menu":this.updateButtonByIndex(e,{icon:"trend-line-drawing",value:"line-menu"});break;case"fibonacci-menu":this.updateButtonByIndex(e,{icon:"fibonacci-retracement-drawing",value:"fibonacci-menu"});break;case"text-menu":this.updateButtonByIndex(e,{icon:"text-annotation",value:"text-menu"});break;case"shape-menu":this.updateButtonByIndex(e,{icon:"arrow-drawing",value:"shape-menu"});break}}hideOverlays(){this.annotationMenu.hide()}clearActiveButton(){this.toolbar.clearActiveButton()}dispatch(e,t){this.events.dispatch(e,t)}onLayoutStart(e){this.enabled&&(this.toolbar.updateButtons(this.buttons),this.toolbar.layout(e.layoutBox))}onToolbarButtonPress({event:e,button:t,buttonBounds:n}){switch(t.value){case"clear":this.dispatch("pressed-clear");break;case"line-menu":this.onToolbarButtonPressShowMenu(e,n,t.value,"toolbarAnnotationsLineAnnotations",une);break;case"fibonacci-menu":this.onToolbarButtonPressShowMenu(e,n,t.value,"toolbarAnnotationsFibonacciAnnotations",hne);break;case"text-menu":this.onToolbarButtonPressShowMenu(e,n,t.value,"toolbarAnnotationsTextAnnotations",pne);break;case"shape-menu":this.onToolbarButtonPressShowMenu(e,n,t.value,"toolbarAnnotationsShapeAnnotations",mne);break;case"measurer-menu":this.onToolbarButtonPressShowMenu(e,n,t.value,"toolbarAnnotationsMeasurerAnnotations",fne);break}}onToolbarButtonPressShowMenu(e,t,n,a,h){this.dispatch("pressed-show-menu");let S=this.buttons.findIndex(E=>E.value===n);this.toolbar.toggleActiveButtonByIndex(S),this.annotationMenu.setAnchor({x:t.x+t.width+6,y:t.y}),this.annotationMenu.show({items:h,ariaLabel:this.ctx.localeManager.t(a),class:"ag-charts-annotations__toolbar-menu",sourceEvent:e.sourceEvent,onPress:this.onButtonPressMenuCreateAnnotation.bind(this,n)})}onButtonPressMenuCreateAnnotation(e,t){let n=this.buttons.findIndex(a=>a.value===e);this.updateButtonByIndex(n,{icon:t.icon}),this.dispatch("pressed-create-annotation",{annotation:t.value}),this.annotationMenu.hide()}onKeyDown({sourceEvent:e}){e.key==="Escape"&&this.dispatch("cancel-create-annotation")}updateButtonByIndex(e,t){var a;let n=this.buttons.at(e);n&&(n.set(et(pe(pe({},n.toJson()),t),{value:(a=t.value)!=null?a:n.value})),this.toolbar.updateButtonByIndex(e,pe({},n.toJson())))}};ve([v4(coe),uoe({changeValue(e){var t;(t=this.toolbar)==null||t.setHidden(!e)}})],y4.prototype,"enabled",2),ve([v4(loe)],y4.prototype,"buttons",2);var _U=(xt(),D(wt)),{BaseModuleInstance:foe,InteractionState:S2,Validate:voe,BOOLEAN:yoe,ChartAxisDirection:boe,getIconClassNames:Coe}=_U._ModuleSupport,kE="ag-charts-annotations__axis-button",FU=class extends foe{constructor(e,t,n,a){super(),this.ctx=e,this.axisCtx=t,this.onButtonClick=n,this.seriesRect=a,this.enabled=!0,this.snap=!1,this.padding=0;let{button:h,wrapper:S}=this.setup();this.wrapper=S,this.button=h,this.toggleVisibility(!1),this.updateButtonElement(),this.snap=!!t.scale.bandwidth;let E=this.ctx.regionManager.getRegion("series"),L=S2.Default|S2.Annotations|S2.AnnotationsSelected;e.domManager.addEventListener("focusin",({target:_})=>{let N=_ instanceof HTMLElement?_:void 0;!(N&&e.domManager.contains(N,"series-area"))&&N!==this.button.getElement()&&this.hide()}),this.destroyFns.push(E.addListener("hover",_=>this.show(_),L),E.addListener("drag",_=>this.show(_),S2.Annotations|S2.AnnotationsSelected),E.addListener("leave",()=>this.hide(),L),e.highlightManager.addListener("highlight-change",_=>this.onHighlightChange(_)),e.keyNavManager.addListener("nav-hori",()=>this.onKeyPress()),e.keyNavManager.addListener("nav-vert",()=>this.onKeyPress()),e.zoomManager.addListener("zoom-pan-start",()=>this.hide()),e.zoomManager.addListener("zoom-change",()=>this.hide()),()=>this.destroyElements(),()=>this.wrapper.remove(),()=>this.button.destroy())}update(e,t){this.seriesRect=e,this.padding=t}setup(){let e=this.ctx.domManager.addChild("canvas-overlay",`${kE}-${this.axisCtx.axisId}`);e.classList.add(`${kE}-wrapper`);let t=new _U._Widget.ButtonWidget;return t.addClass(kE),t.setTabIndex(-1),t.setAriaLabel(this.ctx.localeManager.t("ariaLabelAddHorizontalLine")),e.appendChild(t.getElement()),{wrapper:e,button:t}}destroyElements(){this.ctx.domManager.removeChild("canvas-overlay",kE)}show(e){let{canvasX:t,canvasY:n}=e;if(!(this.enabled&&this.seriesRect.containsPoint(t,n))){this.hide();return}this.toggleVisibility(!0);let a=this.getButtonCoordinates({x:t,y:n});this.coords=this.getAxisCoordinates(a),this.updatePosition(a)}hide(){this.toggleVisibility(!1)}onHighlightChange(e){e.currentHighlight||this.hide()}onKeyPress(){this.snap||this.hide()}getButtonCoordinates({x:e,y:t}){let{axisCtx:{direction:n,position:a},seriesRect:h,snap:S,axisCtx:E,padding:L}=this,{clientWidth:_,clientHeight:N}=this.button,[V,q]=[h.y,h.y+h.height],[Y,J]=[h.x,h.x+h.width];if(S&&(e=vE(g2(e-h.x,E),E)+h.x,t=vE(g2(t-h.y,E),E)+h.y),n===boe.X){let ce=N-Math.max(0,L-5);e=e-_/2,t=a==="top"?V-N+ce:q-ce}else{let ce=_-Math.max(0,L-9);e=a==="left"?Y-_+ce:J-ce,t=t-N/2}return{x:e,y:t}}getAxisCoordinates(e){let{seriesRect:t}=this,{clientWidth:n,clientHeight:a}=this.button,h=e.x-t.x+n/2,S=e.y-t.y+a/2;return{x:h,y:S}}toggleVisibility(e){let{button:t}=this;if(t==null)return;let n=this.enabled&&e;this.toggleClass("-hidden",!n)}toggleClass(e,t){this.wrapper.classList.toggle(`${kE}-wrapper-${e}`,t)}updatePosition({x:e,y:t}){this.wrapper.style.transform=`translate(${Math.round(e)}px, ${Math.round(t)}px)`}updateButtonElement(){let{button:e}=this;e.addListener("click",()=>this.onButtonClick(this.coords)),e.addListener("drag-start",()=>{}),e.setInnerHTML(`<span class="${Coe("zoom-in")} ${kE}-icon"></span>`)}};ve([voe(yoe)],FU.prototype,"enabled",2);var Soe=(xt(),D(wt)),woe=(xt(),D(wt)),{Color:NU,DraggablePopover:xoe,NativeWidget:b4,Vec2:fc,createButton:DF,createCheckbox:Moe,createElement:Ew,createElementId:zU,createSelect:koe,createTextArea:Aoe,initRovingTabIndex:BU,getIconClassNames:Doe,getWindow:Eoe,mapValues:C4,setAttribute:Ioe,setAttributes:S4}=woe._ModuleSupport,GU=class gV extends xoe{constructor(t,n){super(t,n),this.dragHandleDraggingClass="ag-charts-dialog__drag-handle--dragging",this.colorPicker=new EW(this.ctx,{detached:!0}),this.destroyFns.push(t.layoutManager.addListener("layout:complete",this.onLayoutComplete.bind(this)))}showWithChildren(t,n){let a=super.showWithChildren(t,n);return a.classList.add("ag-charts-dialog"),a.setAttribute("role","dialog"),a.addEventListener("mousedown",h=>{var S;(S=h.target.classList)!=null&&S.contains("ag-charts-dialog__color-picker-button")||this.colorPicker.hide()}),a.addEventListener("keydown",this.onKeyDown.bind(this)),Eoe().requestAnimationFrame(()=>this.reposition()),this.colorPicker.attachTo(this),a}updatePosition(t){var h;super.updatePosition(t);let{anchor:n,fallbackAnchor:a}=(h=this.getColorPickerAnchors())!=null?h:{};n&&this.colorPicker.setAnchor(n,a)}createTabs(t,n,a){let h=Ew("div","ag-charts-dialog__tabs"),S=C4(a,()=>zU("ag-charts-dialog__tab")),E=C4(a,()=>zU("ag-charts-dialog__tab-panel"));for(let[J,re]of Object.entries(a))S4(re.panel,{id:E[J],role:"tabpanel","aria-labelledby":S[J]});let L=J=>{var re;for(let[ce,he]of Object.entries(a))he.panel.classList.toggle("ag-charts-dialog__tab-panel--active",ce===J),V[ce].classList.toggle("ag-charts-dialog__tab-button--active",ce===J),Ioe(V[ce],"aria-selected",ce===J),ce===J&&((re=he.onShow)==null||re.call(he))},_=new b4(Ew("div","ag-charts-dialog__header"));_.addListener("drag-start",J=>{let{sourceEvent:re}=J;re.target instanceof Element&&re.target.classList.contains("ag-charts-dialog__header")&&this.onDragStart(J)}),_.addListener("drag-move",J=>this.onDragMove(J)),_.addListener("drag-end",()=>this.onDragEnd());let N=new Roe;this.setDragHandle(N);let V=C4(a,(J,re)=>DF({label:this.ctx.localeManager.t(J.label),onPress:()=>L(re)},{id:S[re],class:"ag-charts-dialog__tab-button",role:"tab","aria-controls":E[re]})),q=Ew("div","ag-charts-dialog__tab-list");S4(q,{role:"tablist","aria-label":this.ctx.localeManager.t(t)}),q.append(...Object.values(V));let Y=this.createHeaderCloseButton();return _.getElement().append(N.getElement(),q,Y),h.append(_.getElement(),...Object.values(a).map(J=>J.panel)),L(n),BU({orientation:"horizontal",buttons:Object.values(V)}),{tabs:h,initialFocus:V[n]}}createTabPanel(){return Ew("div","ag-charts-dialog__tab-panel")}createInputGroupLine(){return Ew("div","ag-charts-dialog__input-group-line")}createRadioGroup({label:t,options:n,value:a,onChange:h}){let S=this.createInputGroup(t);S4(S,{role:"radiogroup",tabindex:-1,"aria-label":this.ctx.localeManager.t(t)});let E="ag-charts-dialog__button--active",L=[];for(let _ of n){let{icon:N,altText:V}=_,q=this.ctx.localeManager.t(V),Y=DF({icon:N,altText:q,onPress:()=>{for(let J of Array.from(S.children))J.classList.remove(E),J.ariaChecked="false";Y.classList.add(E),Y.ariaChecked="true",h(_.value)}},{"aria-checked":_.value===a,class:"ag-charts-dialog__button",role:"radio",title:q});_.value===a&&Y.classList.add(E),S.appendChild(Y),L.push(Y)}return BU({orientation:"horizontal",buttons:L}),S}createSelect({altText:t,label:n,options:a,value:h,onChange:S}){let E=this.createInputGroup(n),L=this.ctx.localeManager.t(t),_=koe({value:h,options:a,onChange:S},{class:"ag-charts-dialog__select","aria-label":L,title:L});return E.append(_),E}createTextArea({placeholder:t,value:n,onChange:a}){let h=t?this.ctx.localeManager.t(t):void 0;return Aoe({value:n,onChange:a},{placeholder:h})}createCheckbox({label:t,checked:n,onChange:a}){let h=`ag-charts__${t}`,S=this.createInputGroup(t,{for:h}),E=Moe({checked:n,onChange:a},{class:"ag-charts-dialog__checkbox",role:"switch",id:h});return S.append(E),S}createColorPicker({color:t,opacity:n,label:a,altText:h,onChange:S,onChangeHide:E,isMultiColor:L,hasMultiColorOption:_}){let N=this.createInputGroup(a),V=this.ctx.localeManager.t(h),q=DF({label:V,onPress:Y=>{var ce;let{anchor:J,fallbackAnchor:re}=(ce=this.getColorPickerAnchors(q))!=null?ce:{};this.colorPicker.show({anchor:J,fallbackAnchor:re,color:t,opacity:n,isMultiColor:L,hasMultiColorOption:_,sourceEvent:Y,onChange:(he,me,we,Me)=>{q.style.setProperty("--color",he),q.classList.toggle("ag-charts-dialog__color-picker-button--multi-color",Me),S(he,me,we,Me)},onChangeHide:E})}},{"aria-label":V,tabindex:0,class:"ag-charts-dialog__color-picker-button",title:V});if(L)q.classList.toggle("ag-charts-dialog__color-picker-button--multi-color");else if(t){let Y=NU.fromHexString(t),J=new NU(Y.r,Y.g,Y.b,n);q.style.setProperty("--color",J.toHexString())}return N.append(q),this.hideFns.push(()=>{this.colorPicker.hide()}),N}createHeaderCloseButton(){return DF({icon:"close",altText:this.ctx.localeManager.t("iconAltTextClose"),onPress:()=>this.hide()},{class:"ag-charts-dialog__close-button"})}createInputGroup(t,n){let a=Ew("div","ag-charts-dialog__input-group"),h=Ew("label","ag-charts-dialog__input-group-label");return h.innerText=this.ctx.localeManager.t(t),n!=null&&n.for&&h.setAttribute("for",n.for),a.appendChild(h),a}onLayoutComplete(t){this.seriesRect=t.series.paddedRect,this.reposition()}onKeyDown(t){t.altKey||t.ctrlKey||t.metaKey||t.isComposing||t.key!=="Escape"||this.hide()}reposition(){let{seriesRect:t,ctx:n}=this,a=n.domManager.getBoundingClientRect(),h=this.getPopoverElement();if(!t||!h)return;let S=fc.from(0,t.y),E=fc.from(a.width,t.height),L=fc.from(h),_=fc.from(.5,1),N;if(t.width>1e3){let V=fc.sub(fc.add(S,fc.multiply(E,_)),fc.multiply(L,_));N=fc.sub(V,fc.from(0,gV.offset))}else{let V=fc.sub(fc.add(S,E),L);N=fc.sub(V,gV.offset)}this.updatePosition(N)}getColorPickerAnchors(t){if(t&&(this.colorPickerAnchorElement=t),!this.colorPickerAnchorElement)return;let n=this.colorPickerAnchorElement.getBoundingClientRect(),a=this.ctx.domManager.getBoundingClientRect(),h=fc.sub(fc.from(n.x,n.y),fc.from(a.left,a.top)),S=fc.add(h,fc.from(0,n.height+5)),E=fc.sub(h,fc.from(0,5));return{anchor:S,fallbackAnchor:E}}};GU.offset=60;var Toe=GU,Roe=class extends b4{constructor(){super(Ew("div","ag-charts-dialog__drag-handle"));let e=new b4(Ew("span",Doe("drag-handle")));e.setAriaHidden(!0),this.addChild(e)}},{Listeners:Poe,focusCursorAtEnd:Loe}=Soe._ModuleSupport,Ooe=class extends Toe{constructor(e){super(e,"settings"),this.events=new Poe,this.hideFns.push(()=>this.events.dispatch("hidden"))}addListener(e,t){return this.events.addListener(e,t)}show(e,t){let n=this.createLinearLineTab(e,t),a=this.createLinearTextTab(e,t),h="dialogHeaderLine";kw(e)?h="dialogHeaderChannel":xW(e)?h="dialogHeaderFibonacciRange":e.type==="date-range"?h="dialogHeaderDateRange":e.type==="price-range"?h="dialogHeaderPriceRange":e.type==="date-price-range"&&(h="dialogHeaderDatePriceRange");let{tabs:S,initialFocus:E}=this.createTabs("ariaLabelSettingsTabBar",t.initialSelectedTab,{line:{label:h,panel:n},text:{label:"dialogHeaderText",panel:a.panel,onShow:a.onShow}});t.initialFocus=E,this.showWithChildren([S],t).classList.add("ag-charts-dialog--annotation-settings")}createLinearLineTab(e,t){var N,V,q,Y,J,re,ce,he,me,we,Me;let n=this.createTabPanel(),a=this.createInputGroupLine(),h=this.createInputGroupLine(),S="isMultiColor"in e,E=this.createColorPickerInput("line-color",e.getDefaultColor("line-color"),e.getDefaultOpacity("line-color"),S?e.isMultiColor:!1,S,t.onChangeLineColor,t.onChangeHideLineColor),L=this.createStrokeWidthSelect((N=e.strokeWidth)!=null?N:2,t.onChangeLineStyleWidth),_=this.createLineStyleRadioGroup((V=e.lineStyle)!=null?V:"solid",t.onChangeLineStyleType);if(a.append(E),"background"in e){let be=this.createColorPickerInput("fill-color",e.getDefaultColor("fill-color"),e.getDefaultOpacity("fill-color"),!1,!1,t.onChangeFillColor,t.onChangeHideFillColor);a.append(be),h.append(L)}else"showFill"in e?(a.append(this.createCheckbox({label:"dialogInputShowFill",checked:(q=e.showFill)!=null?q:!0,onChange:be=>t.onChangeLine({showFill:be})})),h.append(L)):a.append(L);return h.append(_),n.append(a,h),"bands"in e&&n.append(this.createFibonacciRatioSelect((Y=e.bands)!=null?Y:10,be=>t.onChangeLine({bands:be}))),"extendStart"in e&&"extendEnd"in e&&n.append(this.createCheckbox({label:kw(e)?"dialogInputExtendChannelStart":"dialogInputExtendLineStart",checked:(J=e.extendStart)!=null?J:!1,onChange:be=>t.onChangeLine({extendStart:be})}),this.createCheckbox({label:kw(e)?"dialogInputExtendChannelEnd":"dialogInputExtendLineEnd",checked:(re=e.extendEnd)!=null?re:!1,onChange:be=>t.onChangeLine({extendEnd:be})})),"extendAbove"in e&&"extendBelow"in e&&n.append(this.createCheckbox({label:"dialogInputExtendAbove",checked:(ce=e.extendAbove)!=null?ce:!1,onChange:be=>t.onChangeLine({extendAbove:be})}),this.createCheckbox({label:"dialogInputExtendBelow",checked:(he=e.extendBelow)!=null?he:!1,onChange:be=>t.onChangeLine({extendBelow:be})})),"extendLeft"in e&&"extendRight"in e&&n.append(this.createCheckbox({label:"dialogInputExtendLeft",checked:(me=e.extendLeft)!=null?me:!1,onChange:be=>t.onChangeLine({extendLeft:be})}),this.createCheckbox({label:"dialogInputExtendRight",checked:(we=e.extendRight)!=null?we:!1,onChange:be=>t.onChangeLine({extendRight:be})})),"reverse"in e&&"showFill"in e&&n.append(this.createCheckbox({label:"dialogInputReverse",checked:(Me=e.reverse)!=null?Me:!1,onChange:be=>t.onChangeLine({reverse:be})})),n}createLinearTextTab(e,t){var q;let n=this.createTabPanel(),a=this.createTextArea({placeholder:"inputTextareaPlaceholder",value:e.text.label,onChange:Y=>t.onChangeText({label:Y})}),h=this.createInputGroupLine(),S=this.createFontSizeSelect(e.text.fontSize,t.onChangeTextFontSize),E=this.createColorPickerInput("text-color",e.text.color,1,!1,!1,t.onChangeTextColor,t.onChangeHideTextColor);h.append(S,E);let L=this.createInputGroupLine(),_=e.text.position==="inside"?"center":e.text.position,N=this.createPositionRadioGroup(_!=null?_:"top",Y=>t.onChangeText({position:Y})),V=this.createAlignmentRadioGroup((q=e.text.alignment)!=null?q:"center",Y=>t.onChangeText({alignment:Y}));return L.append(N,V),n.append(a,h,L),{panel:n,onShow:()=>Loe(a)}}createColorPickerInput(e,t,n,a,h,S,E){let L=e==="fill-color"?"dialogInputFillColorPicker":"dialogInputColorPicker",_=e==="fill-color"?"dialogInputFillColorPickerAltText":"dialogInputColorPickerAltText";return this.createColorPicker({label:L,altText:_,color:t,opacity:n,isMultiColor:a,hasMultiColorOption:h,onChange:S,onChangeHide:E})}createStrokeWidthSelect(e,t){return this.createSelect({label:"dialogInputStrokeWidth",altText:"dialogInputStrokeWidthAltText",options:IW.map(({label:n,value:a})=>({label:n,value:`${a}`})),value:String(e),onChange:n=>t(Number(n))})}createFibonacciRatioSelect(e,t){return this.createSelect({label:"dialogInputFibonacciBands",altText:"dialogInputFibonacciBandsAltText",options:gne.map(({label:n,value:a})=>({label:n,value:`${a}`})),value:String(e),onChange:n=>t(Number(n))})}createLineStyleRadioGroup(e,t){return this.createRadioGroup({label:"dialogInputLineStyle",options:[{icon:"line-style-solid",altText:"iconAltTextLineStyleSolid",value:"solid"},{icon:"line-style-dashed",altText:"iconAltTextLineStyleDashed",value:"dashed"},{icon:"line-style-dotted",altText:"iconAltTextLineStyleDotted",value:"dotted"}],value:e,onChange:t})}createFontSizeSelect(e,t){return this.createSelect({label:"dialogInputFontSize",altText:"dialogInputFontSizeAltText",options:TW.map(({label:n,value:a})=>({label:n,value:String(a)})),value:String(e),onChange:n=>t(Number(n))})}createPositionRadioGroup(e,t){return this.createRadioGroup({label:"dialogInputPosition",options:[{icon:"position-top",altText:"iconAltTextPositionTop",value:"top"},{icon:"position-center",altText:"iconAltTextPositionCenter",value:"center"},{icon:"position-bottom",altText:"iconAltTextPositionBottom",value:"bottom"}],value:e,onChange:t})}createAlignmentRadioGroup(e,t){return this.createRadioGroup({label:"dialogInputAlign",options:[{icon:"align-left",altText:"iconAltTextAlignLeft",value:"left"},{icon:"align-center",altText:"iconAltTextAlignCenter",value:"center"},{icon:"align-right",altText:"iconAltTextAlignRight",value:"right"}],value:e,onChange:t})}};function w4(e){return e.gridPadding+e.seriesAreaPadding+e.tickSize+e.label.spacing}function _oe(e,t,n){for(let{update:a}of Object.values(um))a(e,t,n)}var{BOOLEAN:Foe,OBJECT:x4,ChartUpdateType:Noe,InteractionState:DC,ObserveChanges:zoe,PropertiesArray:Boe,Validate:EF,ChartAxisDirection:Goe,Vec2:AE,isValidDate:M4,keyProperty:joe,valueProperty:Voe,Selection:Hoe,BBox:Woe}=V_._ModuleSupport,w2=class VZ extends V_._ModuleSupport.BaseModuleInstance{constructor(t){super(),this.ctx=t,this.enabled=!0,this.toolbar=new y4(this.ctx),this.optionsToolbar=new qB(this.ctx,()=>{let n=this.state.getActive();if(n!=null)return ME(this.annotationData.at(n))}),this.axesButtons=new CB,this.data=void 0,this.xKey=void 0,this.volumeKey=void 0,this.annotationData=new Boe(VZ.createAnnotationDatum),this.defaults=new lne,this.container=new V_._ModuleSupport.Group({name:"static-annotations"}),this.annotations=new Hoe(this.container,this.createAnnotationScene.bind(this)),this.settingsDialog=new Ooe(this.ctx),this.textInput=new hte(this.ctx),this.postUpdateFns=[],this.state=this.setupStateMachine(),this.setupListeners(),this.setupDOM(),this.ctx.historyManager.addMementoOriginator(t.annotationManager),this.ctx.historyManager.addMementoOriginator(this.defaults),this.textInput.setKeyDownHandler(this.onTextInput.bind(this))}setupStateMachine(){let{ctx:t}=this;return new AF({resetToIdle:()=>{t.cursorManager.updateCursor("annotations"),t.interactionManager.popState(DC.Annotations),t.tooltipManager.unsuppressTooltip("annotations"),this.hideOverlays(),this.optionsToolbar.hide(),this.deleteEphemeralAnnotations(),this.update()},hoverAtCoords:(n,a)=>{var S;let h;return this.annotations.each((E,L,_)=>{let N=E.containsPoint(n.x,n.y);N&&(h!=null||(h=_)),E.toggleHovered(N||a===_)}),this.ctx.cursorManager.updateCursor("annotations",h==null||(S=this.annotations.at(h))==null?void 0:S.getCursor()),h},getNodeAtCoords:(n,a)=>{let h=this.annotations.at(a);if(h)return h.getNodeAtCoords(n.x,n.y)},translate:(n,a)=>{let h=this.annotations.at(n),S=ME(this.annotationData.at(n));if(!(!h||!S))return this.translateNode(h,S,a)},copy:n=>{let a=this.annotations.at(n),h=ME(this.annotationData.at(n));if(!(!a||!h))return this.createAnnotationDatumCopy(a,h)},paste:n=>{this.createAnnotation(n.type,n,!1),this.postUpdateFns.push(()=>{this.state.transitionAsync("selectLast"),this.state.transitionAsync("copy")})},select:(n,a)=>{let{annotations:h,optionsToolbar:S,toolbar:E,ctx:{interactionManager:L,tooltipManager:_}}=this;this.hideOverlays(),E.clearActiveButton(),E.resetButtonIcons();let N=n!=null?h.at(n):null,V=a!=null?h.at(a):null;V===N&&N!=null||(V==null||V.toggleActive(!1),S.hide(),N?(L.pushState(DC.AnnotationsSelected),N.toggleActive(!0),_.suppressTooltip("annotations"),S.updateButtons(this.annotationData.at(n)),this.postUpdateFns.push(()=>{S.show(),S.setAnchorScene(N)})):(L.popState(DC.AnnotationsSelected),L.popState(DC.Annotations),_.unsuppressTooltip("annotations")),this.deleteEphemeralAnnotations(),this.update())},selectLast:()=>(this.ctx.interactionManager.pushState(DC.AnnotationsSelected),this.annotationData.length-1),startInteracting:()=>{this.ctx.interactionManager.pushState(DC.Annotations)},stopInteracting:()=>{this.ctx.interactionManager.popState(DC.Annotations)},create:(n,a)=>{this.createAnnotation(n,a)},delete:n=>{this.annotationData.splice(n,1)},deleteAll:()=>{this.annotationData.splice(0,this.annotationData.length)},validatePoint:n=>{let a=this.getAnnotationContext();return a?fy(a,n):!0},getAnnotationType:n=>Cte(this.annotationData[n].type),datum:n=>this.annotationData.at(n),node:n=>this.annotations.at(n),recordAction:n=>{this.recordActionAfterNextUpdate(n)},update:()=>{this.postUpdateFns.push(()=>{let n=this.state.getActive(),a=n!=null?this.annotations.at(n):null;a!=null&&this.optionsToolbar.setAnchorScene(a)}),this.update()},showTextInput:n=>{let a=ME(this.annotationData.at(n));if(!this.annotations.at(n)||!a||!("getTextInputCoords"in a)||!("getTextPosition"in a))return;let S={color:a.color,fontFamily:a.fontFamily,fontSize:a.fontSize,fontStyle:a.fontStyle,fontWeight:a.fontWeight,placeholderColor:a.getPlaceholderColor()},E=this.getAnnotationContext(),L=N=>AE.add(a.getTextInputCoords(E,N),AE.required(this.seriesRect)),_=()=>a.getTextPosition();this.textInput.show({styles:S,layout:{getTextInputCoords:L,getTextPosition:_,alignment:a.alignment,textAlign:a.textAlign,width:a.width},text:a.text,placeholderText:a.placeholderText,onChange:(N,V)=>{this.state.transition("updateTextInputBBox",V)}}),this.ctx.cursorManager.updateCursor("annotations")},hideTextInput:()=>{this.textInput.hide()},updateTextInputColor:n=>{this.textInput.updateColor(n)},updateTextInputFontSize:n=>{let a=this.textInput.updateFontSize(n);this.state.transition("updateTextInputBBox",a)},updateTextInputBBox:n=>{this.state.transition("updateTextInputBBox",n)},showAnnotationOptions:n=>{let a=this.annotations.at(n);!a||iA(this.annotationData.at(n))||(this.optionsToolbar.updateButtons(this.annotationData.at(n)),this.optionsToolbar.show(),this.optionsToolbar.setAnchorScene(a))},showAnnotationSettings:(n,a,h="line")=>{let S=this.annotationData.at(n);if(!iF(S)&&!kw(S)&&!f2(S)||iA(S))return;let E=N=>(V,q,Y,J)=>{this.setColorAndDefault(S.type,N,V,q,Y,J),this.optionsToolbar.updateColorPickerColor(N,q,Y,J)},L=N=>()=>{this.recordActionAfterNextUpdate(`Change ${S.type} ${N} to ${S.getDefaultColor(N)}`,["annotations","defaults"]),this.update()},_={initialSelectedTab:h,ariaLabel:this.ctx.localeManager.t("ariaLabelAnnotationSettingsDialog"),sourceEvent:a,onChangeLine:N=>{this.state.transition("lineProps",N),N.bands&&this.defaults.setDefaultFibonacciBands(S.type,N.bands)},onChangeText:N=>{this.state.transition("lineText",N),N.alignment&&this.defaults.setDefaultLineTextAlignment(S.type,N.alignment),N.position&&this.defaults.setDefaultLineTextPosition(S.type,N.position),this.recordActionAfterNextUpdate(`Change ${S.type} text ${Object.entries(N).map(([V,q])=>`${V} to ${q}`).join(", ")}`)},onChangeFillColor:E("fill-color"),onChangeHideFillColor:L("fill-color"),onChangeLineColor:E("line-color"),onChangeHideLineColor:L("line-color"),onChangeLineStyleType:N=>{var V;this.setLineStyleTypeAndDefault(S.type,N),this.optionsToolbar.updateLineStyleType((V=v2.find(q=>q.value===N))!=null?V:v2[0])},onChangeLineStyleWidth:N=>{this.setLineStyleWidthAndDefault(S.type,N),this.optionsToolbar.updateStrokeWidth({strokeWidth:N,value:N,label:String(N)})},onChangeTextColor:E("text-color"),onChangeHideTextColor:L("text-color"),onChangeTextFontSize:N=>{this.setFontSizeAndDefault(S.type,N)}};this.settingsDialog.show(S,_)}})}setupListeners(){let{ctx:t,optionsToolbar:n,settingsDialog:a,toolbar:h}=this,{All:S,Default:E,Annotations:L,AnnotationsSelected:_,ZoomDrag:N}=DC,V=t.regionManager.getRegion("series"),q=t.regionManager.getRegion("root"),Y=E|N|L|_;this.destroyFns.push(V.addListener("hover",this.onHover.bind(this),S),V.addListener("click",this.onClick.bind(this),S),V.addListener("dblclick",this.onDoubleClick.bind(this),S),V.addListener("drag-start",this.onDragStart.bind(this),Y),V.addListener("drag",this.onDrag.bind(this),Y),V.addListener("drag-end",this.onDragEnd.bind(this),S),t.interactionManager.addListener("keydown",this.onKeyDown.bind(this),S),t.interactionManager.addListener("keyup",this.onKeyUp.bind(this),S),q.addListener("click",this.onCancel.bind(this),S),t.annotationManager.addListener("restore-annotations",this.onRestoreAnnotations.bind(this)),t.layoutManager.addListener("layout:complete",this.onLayoutComplete.bind(this)),t.updateService.addListener("pre-scene-render",this.onPreRender.bind(this)),t.zoomManager.addListener("zoom-change",()=>this.onResize()),t.domManager.addListener("resize",()=>this.onResize()),h.addListener("cancel-create-annotation",()=>{this.cancel(),this.reset(),this.update()}),h.addListener("pressed-create-annotation",({annotation:J})=>{this.cancel(),this.ctx.interactionManager.pushState(DC.Annotations),this.state.transition(J),this.update()}),h.addListener("pressed-clear",()=>{this.clear()}),h.addListener("pressed-show-menu",()=>{this.cancel(),this.reset()}),h.addListener("pressed-unrelated",()=>{this.reset()}),n.addListener("pressed-delete",()=>{this.cancel(),this.delete(),this.reset()}),n.addListener("pressed-settings",({sourceEvent:J})=>{this.state.transition("toolbarPressSettings",J)}),n.addListener("pressed-lock",()=>{this.update()}),n.addListener("hid-overlays",()=>{this.settingsDialog.hide()}),n.addListener("saved-color",({type:J,colorPickerType:re,color:ce})=>{this.recordActionAfterNextUpdate(`Change ${J} ${re} to ${ce}`,["annotations","defaults"])}),n.addListener("updated-color",({type:J,colorPickerType:re,colorOpacity:ce,color:he,opacity:me,isMultiColor:we})=>{this.setColorAndDefault(J,re,ce,he,me,we)}),n.addListener("updated-font-size",({type:J,fontSize:re})=>{this.setFontSizeAndDefault(J,re)}),n.addListener("updated-line-style",({type:J,lineStyleType:re})=>{this.setLineStyleTypeAndDefault(J,re)}),n.addListener("updated-line-width",({type:J,strokeWidth:re})=>{this.setLineStyleWidthAndDefault(J,re)}),a.addListener("hidden",()=>{this.optionsToolbar.clearActiveButton()}))}setupDOM(){let{ctx:t,toolbar:n}=this;this.destroyFns.push(t.annotationManager.attachNode(this.container),()=>t.domManager.removeStyles(kE),()=>n.destroy())}async processData(t){if(!this.enabled||this.data==null||this.xKey==null||this.volumeKey==null)return;let n=[joe(this.xKey,void 0,{id:"date"}),Voe(this.volumeKey,"number",{id:"volume"})],{dataModel:a,processedData:h}=await t.request("annotations",this.data,{props:n});this.dataModel=a,this.processedData=h}createAnnotationScene(t){if(t.type in um)return new um[t.type].scene;throw new Error(`AG Charts - Cannot create annotation scene of type [${t.type}], expected one of [${Object.keys(um)}], ignoring.`)}static createAnnotationDatum(t){if(t.type in um)return new um[t.type].datum().set(t);throw new Error(`AG Charts - Cannot create annotation datum of unknown type [${t.type}], expected one of [${Object.keys(um)}], ignoring.`)}createAnnotation(t,n,a=!0){if(this.annotationData.push(n),a){let h=this.ctx.annotationManager.getAnnotationTypeStyles(t);h&&n.set(h),this.defaults.applyDefaults(n)}this.injectDatumDependencies(n),this.update()}injectDatumDependencies(t){"setLocaleManager"in t&&t.setLocaleManager(this.ctx.localeManager),"getVolume"in t&&(t.getVolume=this.getDatumRangeVolume.bind(this))}getDatumRangeVolume(t,n){let{dataModel:a,processedData:h}=this;if(!M4(t)||!M4(n)||!a||!h||this.volumeKey==null)return;t>n&&([t,n]=[n,t]);let S=a.resolveKeysById({id:"annotations"},"date",h),E=a.resolveColumnById({id:"annotations"},"volume",h);return h.rawData.reduce((L,_,N)=>{let V=S[N];return M4(V)&&V>=t&&V<=n?L+E[N]:L},0)}translateNode(t,n,a){let h=this.getAnnotationConfig(n),S=this.getAnnotationContext();S&&h.translate(t,n,a,S)}createAnnotationDatumCopy(t,n){let a=this.getAnnotationConfig(n),h=new a.datum;h.set(n.toJson());let S=this.getAnnotationContext();if(S)return a.copy(t,n,h,S)}getAnnotationConfig(t){if(t.type in um)return um[t.type];throw new Error(`AG Charts - Cannot get annotation config of unknown type [${t.type}], expected one of [${Object.keys(um)}], ignoring.`)}onRestoreAnnotations(t){this.enabled&&(this.clear(),this.annotationData.set(t.annotations),this.update())}onLayoutComplete(t){var a,h,S;let n=t.series.paddedRect;this.seriesRect=n;for(let E of(a=t.axes)!=null?a:[])E.direction===V_._ModuleSupport.ChartAxisDirection.X?this.xAxis=this.getAxis(E,n,(h=this.xAxis)==null?void 0:h.button):this.yAxis=this.getAxis(E,n,(S=this.yAxis)==null?void 0:S.button)}onPreRender(){this.updateAnnotations(),this.state.transition("render")}getAxis(t,n,a){let h=this.ctx.axisManager.getAxisContext(t.direction)[0],{position:S="bottom",direction:E}=h,L=t.gridPadding+t.seriesAreaPadding,_=new Woe(0,0,n.width,n.height).grow(L,S),N=h.direction===Goe.X?"vertical":"horizontal",{axesButtons:V}=this;if(this.enabled&&V.enabled&&(V.axes==="xy"||V.axes===E)){a!=null||(a=new FU(this.ctx,h,J=>this.onAxisButtonClick(J,N),n));let Y=w4(t);a.update(n,Y)}else a==null||a.destroy(),a=void 0;return{layout:t,context:h,bounds:_,button:a}}recordActionAfterNextUpdate(t,n=["annotations"]){let{defaults:a,ctx:{annotationManager:h,historyManager:S}}=this,E=n.map(L=>L==="defaults"?a:h);this.postUpdateFns.push(()=>{S.record(t,...E)})}setColorAndDefault(t,n,a,h,S,E){this.state.transition("color",{colorPickerType:n,colorOpacity:a,color:h,opacity:S,isMultiColor:E}),this.defaults.setDefaultColor(t,n,a,h,S,E)}setFontSizeAndDefault(t,n){this.state.transition("fontSize",n),this.defaults.setDefaultFontSize(t,n),this.recordActionAfterNextUpdate(`Change ${t} font size to ${n}`,["annotations","defaults"])}setLineStyleTypeAndDefault(t,n){this.state.transition("lineStyle",{type:n}),this.defaults.setDefaultLineStyleType(t,n),this.recordActionAfterNextUpdate(`Change ${t} line style to ${n}`,["annotations","defaults"])}setLineStyleWidthAndDefault(t,n){this.state.transition("lineStyle",{strokeWidth:n}),this.defaults.setDefaultLineStyleWidth(t,n),this.recordActionAfterNextUpdate(`Change ${t} stroke width to ${n}`,["annotations","defaults"])}updateAnnotations(){let{annotationData:t,annotations:n,seriesRect:a,ctx:{annotationManager:h}}=this,S=this.getAnnotationContext();!a||!S||(h.updateData(t.toJson().filter(E=>!iA(E))),this.toolbar.toggleClearButtonEnabled(t.length>0),n.update(t!=null?t:[],void 0,E=>E.id).each((E,L)=>{if(!this.validateDatum(L)){E.visible=!1;return}this.injectDatumDependencies(L),_oe(E,L,S)}),this.postUpdateFns.forEach(E=>E()),this.postUpdateFns=[])}validateDatum(t){let n=this.getAnnotationContext();return n?t.isValidWithContext(n,`Annotation [${t.type}] `):!0}getAnnotationContext(){let{seriesRect:t,xAxis:n,yAxis:a}=this;if(t&&n&&a)return{seriesRect:t,xAxis:et(pe({},n.context),{bounds:n.bounds,labelPadding:w4(n.layout)}),yAxis:et(pe({},a.context),{bounds:a.bounds,labelPadding:w4(n.layout)})}}onHover(t){let{state:n}=this,a=this.getAnnotationContext();if(!a)return;let h=t.sourceEvent.shiftKey,S=AE.from(t),E=Es(S,a);n.transition("hover",{offset:S,point:E,shiftKey:h,context:a})}onClick(t){let{state:n}=this,a=this.getAnnotationContext();if(!a)return;let h=t.sourceEvent.shiftKey,S=Es(AE.from(t),a),E=this.textInput.getValue(),L=this.textInput.getBBox();n.transition("click",{point:S,shiftKey:h,textInputValue:E,bbox:L})}onDoubleClick(t){let{state:n}=this;if(!this.getAnnotationContext())return;let h=AE.from(t);n.transition("dblclick",{offset:h})}onAxisButtonClick(t,n){this.cancel(),this.reset();let a=this.getAnnotationContext();if(!this.annotationData||!a)return;let{state:h,ctx:{interactionManager:S}}=this;S.pushState(DC.Annotations);let E=n==="horizontal";if(h.transition(E?"horizontal-line":"vertical-line"),this.optionsToolbar.hide(),!t)return;let L=Es(t,a);fy(a,L)&&(h.transition("click",{point:L,shiftKey:!1}),this.update())}onResize(){let t=this.textInput.getValue(),n=this.textInput.getBBox();this.state.transition("resize",{textInputValue:t,bbox:n})}onDragStart(t){let{state:n}=this,a=this.getAnnotationContext();if(!a)return;let h=AE.from(t),S=Es(h,a),E=this.textInput.getValue(),L=this.textInput.getBBox();n.transition("dragStart",{context:a,offset:h,point:S,textInputValue:E,bbox:L})}onDrag(t){let{state:n}=this,a=this.getAnnotationContext();if(!a)return;let h=AE.from(t),S=Es(h,a),E=t.sourceEvent.shiftKey,L=this.textInput.getValue(),_=this.textInput.getBBox();n.transition("drag",{context:a,offset:h,point:S,shiftKey:E,textInputValue:L,bbox:_})}onDragEnd(){this.state.transition("dragEnd")}onCancel(){this.cancel(),this.reset()}onDelete(){this.textInput.isVisible()||(this.cancel(),this.delete(),this.reset(),this.update())}onTextInput(t){let{state:n}=this,a=this.getAnnotationContext();if(!a)return;let{key:h,shiftKey:S}=t,E=this.textInput.getValue(),L=this.textInput.getBBox();n.transition("textInput",{key:h,shiftKey:S,textInputValue:E,bbox:L,context:a})}onKeyDown(t){var J,re;let{state:n}=this,a=this.getAnnotationContext();if(!a)return;let{sourceEvent:h}=t,{shiftKey:S,ctrlKey:E,metaKey:L}=h,_=E||L,N=E||S;this.state.transition("keyDown",{shiftKey:S,context:a});let V={x:0,y:0},q=Math.max((J=a==null?void 0:a.xAxis.scale.bandwidth)!=null?J:0,N?10:1),Y=Math.max((re=a==null?void 0:a.yAxis.scale.bandwidth)!=null?re:0,N?10:1);switch(h.key){case"ArrowDown":V.y=Y;break;case"ArrowUp":V.y=-Y;break;case"ArrowLeft":V.x=-q;break;case"ArrowRight":V.x=q;break;case"Escape":this.onCancel();return;case"Backspace":case"Delete":this.onDelete();return}if((V.x||V.y)&&(n.transition("translate",{translation:V}),h.stopPropagation(),h.preventDefault()),!!_)switch(h.key){case"c":n.transition("copy");return;case"x":n.transition("cut"),this.recordActionAfterNextUpdate("Cut annotation");return;case"v":n.transition("paste"),this.recordActionAfterNextUpdate("Paste annotation");return}}onKeyUp(t){let{shiftKey:n}=t.sourceEvent,a=this.getAnnotationContext();a&&(this.state.transition("keyUp",{shiftKey:n,context:a}),this.state.transition("translateEnd"))}clear(){this.cancel(),this.deleteAll(),this.reset()}reset(){this.state.transition("reset")}cancel(){this.state.transition("cancel")}delete(){this.state.transition("delete")}deleteAll(){this.state.transition("deleteAll")}deleteEphemeralAnnotations(){for(let[t,n]of this.annotationData.entries())iA(n)&&this.annotationData.splice(t,1)}hideOverlays(){this.settingsDialog.hide(),this.toolbar.hideOverlays(),this.optionsToolbar.hideOverlays()}update(t=Noe.PRE_SCENE_RENDER){this.ctx.updateService.update(t,{skipAnimations:!0})}};ve([zoe((e,t,n)=>{var S;let{ctx:{annotationManager:a,stateManager:h}}=e;t!==n&&((S=e.toolbar)==null||S.toggleVisibility(!!t),n===!1&&t===!0?h.restoreState(a):t===!1&&e.clear())}),EF(Foe)],w2.prototype,"enabled",2),ve([EF(x4)],w2.prototype,"toolbar",2),ve([EF(x4)],w2.prototype,"optionsToolbar",2),ve([EF(x4)],w2.prototype,"axesButtons",2);var Uoe=w2,Koe=(xt(),D(wt)),{ThemeSymbols:lo}=Koe._ModuleSupport,by={stroke:lo.DEFAULT_ANNOTATION_COLOR,strokeOpacity:1,strokeWidth:2},ih={fill:lo.DEFAULT_ANNOTATION_HANDLE_FILL,strokeOpacity:1,strokeWidth:2},x2={color:lo.DEFAULT_TEXT_ANNOTATION_COLOR,fontSize:14,fontFamily:lo.DEFAULT_FONT_FAMILY},jU=et(pe({},x2),{enabled:!0,color:"white",fill:lo.DEFAULT_ANNOTATION_COLOR,fontSize:12}),IF=et(pe({},x2),{color:lo.DEFAULT_TEXT_ANNOTATION_COLOR,textAlign:"left"}),pA=et(pe({},x2),{position:"top",alignment:"center",color:lo.DEFAULT_ANNOTATION_COLOR}),k4=et(pe({},x2),{fontSize:12,color:lo.DEFAULT_ANNOTATION_STATISTICS_COLOR,fill:lo.DEFAULT_ANNOTATION_STATISTICS_FILL,stroke:lo.DEFAULT_ANNOTATION_STATISTICS_STROKE,strokeWidth:1,divider:{stroke:lo.DEFAULT_ANNOTATION_STATISTICS_DIVIDER_STROKE,strokeWidth:1,strokeOpacity:.5}}),A4=et(pe({},by),{background:{fill:lo.DEFAULT_ANNOTATION_BACKGROUND_FILL,fillOpacity:.2},handle:pe({},ih),text:pe({},pA),statistics:pe({},k4)}),qoe={buttons:[{icon:"trend-line-drawing",tooltip:"toolbarAnnotationsLineAnnotations",value:"line-menu"},{icon:"fibonacci-retracement-drawing",tooltip:"toolbarAnnotationsFibonacciAnnotations",value:"fibonacci-menu"},{icon:"text-annotation",tooltip:"toolbarAnnotationsTextAnnotations",value:"text-menu"},{icon:"arrow-drawing",tooltip:"toolbarAnnotationsShapeAnnotations",value:"shape-menu"},{icon:"measurer-drawing",tooltip:"toolbarAnnotationsMeasurerAnnotations",value:"measurer-menu"},{icon:"delete",tooltip:"toolbarAnnotationsClearAll",value:"clear"}]},Yoe={buttons:[{icon:"text-annotation",tooltip:"toolbarAnnotationsTextColor",value:"text-color"},{icon:"line-color",tooltip:"toolbarAnnotationsLineColor",value:"line-color"},{icon:"fill-color",tooltip:"toolbarAnnotationsFillColor",value:"fill-color"},{tooltip:"toolbarAnnotationsTextSize",value:"text-size"},{tooltip:"toolbarAnnotationsLineStrokeWidth",value:"line-stroke-width"},{icon:"line-style-solid",tooltip:"toolbarAnnotationsLineStyle",value:"line-style-type"},{icon:"settings",tooltip:"toolbarAnnotationsSettings",value:"settings"},{icon:"unlocked",tooltip:"toolbarAnnotationsLock",ariaLabel:"toolbarAnnotationsLock",checkedOverrides:{icon:"locked",tooltip:"toolbarAnnotationsUnlock"},value:"lock"},{icon:"delete",tooltip:"toolbarAnnotationsDelete",value:"delete"}]},Xoe={enabled:!1,line:et(pe({},by),{handle:pe({},ih),text:pe({},pA)}),"horizontal-line":et(pe({},by),{handle:pe({},ih),axisLabel:pe({},jU),text:pe({},pA)}),"vertical-line":et(pe({},by),{handle:pe({},ih),axisLabel:pe({},jU),text:pe({},pA)}),"disjoint-channel":et(pe({},by),{background:{fill:lo.DEFAULT_ANNOTATION_BACKGROUND_FILL,fillOpacity:.2},handle:pe({},ih),text:pe({},pA)}),"parallel-channel":et(pe({},by),{middle:{lineDash:[6,5],strokeWidth:1},background:{fill:lo.DEFAULT_ANNOTATION_BACKGROUND_FILL,fillOpacity:.2},handle:pe({},ih),text:pe({},pA)}),"fibonacci-retracement":et(pe({},by),{strokes:lo.DEFAULT_FIBONACCI_STROKES,rangeStroke:lo.DEFAULT_ANNOTATION_COLOR,handle:pe({},ih),text:et(pe({},pA),{position:"center"}),label:et(pe({},x2),{color:void 0,fontSize:10})}),callout:et(pe(pe({},by),IF),{color:lo.DEFAULT_LABEL_COLOUR,handle:pe({},ih),fill:lo.DEFAULT_ANNOTATION_BACKGROUND_FILL,fillOpacity:.2}),comment:et(pe({},IF),{color:"white",fontWeight:700,handle:pe({},ih),fill:lo.DEFAULT_ANNOTATION_COLOR}),note:et(pe({},IF),{color:lo.DEFAULT_TEXTBOX_COLOR,fill:lo.DEFAULT_ANNOTATION_COLOR,stroke:lo.DEFAULT_ANNOTATION_HANDLE_FILL,strokeWidth:1,strokeOpacity:1,handle:pe({},ih),background:{fill:lo.DEFAULT_TEXTBOX_FILL,stroke:lo.DEFAULT_TEXTBOX_STROKE,strokeWidth:1}}),text:et(pe({},IF),{handle:pe({},ih)}),arrow:et(pe({},by),{handle:pe({},ih),text:pe({},pA)}),"arrow-up":{fill:lo.PALETTE_UP_FILL,handle:et(pe({},ih),{stroke:lo.DEFAULT_ANNOTATION_COLOR})},"arrow-down":{fill:lo.PALETTE_DOWN_FILL,handle:et(pe({},ih),{stroke:lo.DEFAULT_ANNOTATION_COLOR})},"date-range":pe({},A4),"price-range":pe({},A4),"date-price-range":pe({},A4),"quick-date-price-range":{up:et(pe({},by),{fill:lo.DEFAULT_ANNOTATION_BACKGROUND_FILL,fillOpacity:.2,handle:pe({},ih),statistics:et(pe({},k4),{color:"#fff",fill:lo.DEFAULT_ANNOTATION_BACKGROUND_FILL,strokeWidth:0,divider:{stroke:"#fff",strokeWidth:1,strokeOpacity:.5}})}),down:et(pe({},by),{stroke:lo.DEFAULT_ANNOTATION_STATISTICS_DOWN_STROKE,fill:lo.DEFAULT_ANNOTATION_STATISTICS_DOWN_FILL,fillOpacity:.2,handle:et(pe({},ih),{stroke:lo.DEFAULT_ANNOTATION_STATISTICS_DOWN_STROKE}),statistics:et(pe({},k4),{color:"#fff",fill:lo.DEFAULT_ANNOTATION_STATISTICS_DOWN_FILL,strokeWidth:0,divider:{stroke:"#fff",strokeWidth:1,strokeOpacity:.5}})})},axesButtons:{enabled:!0},toolbar:qoe,optionsToolbar:Yoe},Zoe={type:"root",optionsKey:"annotations",packageType:"enterprise",chartTypes:["cartesian"],moduleFactory:e=>new Uoe(e),themeTemplate:{annotations:Xoe}},D4=(xt(),D(wt)),VU=(xt(),D(wt)),{BaseProperties:$oe,ObserveChanges:Qoe,ProxyProperty:Joe,Validate:DE,NUMBER:TF,POSITIVE_NUMBER:HU,RATIO:ere,createElement:tre,calculatePlacement:ire}=VU._ModuleSupport,EC=class extends $oe{constructor(){super(),this.opacity=1,this.loadedSynchronously=!0,this.containerWidth=0,this.containerHeight=0,this.onLoad=void 0,this.onImageLoad=()=>{var e;this.loadedSynchronously||(this.node.visible=!1,this.performLayout(this.containerWidth,this.containerHeight),(e=this.onLoad)==null||e.call(this))},this.imageElement=tre("img"),this.imageElement.onload=this.onImageLoad,this.node=new VU._ModuleSupport.Image(this.imageElement)}get complete(){return this.imageElement.width>0&&this.imageElement.height>0}performLayout(e,t){this.containerWidth=e,this.containerHeight=t;let n={x:0,y:0,width:e,height:t},a=ire(this.imageElement.width,this.imageElement.height,n,this);return this.node.setProperties(this.complete?pe({visible:!0,opacity:this.opacity},a):{visible:!1}),a}};ve([DE(TF,{optional:!0})],EC.prototype,"top",2),ve([DE(TF,{optional:!0})],EC.prototype,"right",2),ve([DE(TF,{optional:!0})],EC.prototype,"bottom",2),ve([DE(TF,{optional:!0})],EC.prototype,"left",2),ve([DE(HU,{optional:!0})],EC.prototype,"width",2),ve([DE(HU,{optional:!0})],EC.prototype,"height",2),ve([DE(ere)],EC.prototype,"opacity",2),ve([Joe("imageElement.src"),Qoe(e=>e.loadedSynchronously=e.complete)],EC.prototype,"url",2);var{ActionOnSet:nre,OBJECT:are,Validate:ore}=D4._ModuleSupport,WU=class extends D4._ModuleSupport.Background{constructor(){super(...arguments),this.image=new EC}onLayoutComplete(e){if(super.onLayoutComplete(e),this.image){let{width:t,height:n}=e.chart;this.image.performLayout(t,n)}}onImageLoad(){this.ctx.updateService.update(D4._ModuleSupport.ChartUpdateType.SCENE_RENDER)}};ve([ore(are,{optional:!0}),nre({newValue(e){this.node.appendChild(e.node),e.onLoad=()=>this.onImageLoad()},oldValue(e){this.node.removeChild(e.node),e.onLoad=void 0}})],WU.prototype,"image",2);var rre={type:"root",optionsKey:"background",packageType:"enterprise",chartTypes:["cartesian","polar","hierarchy","topology","flow-proportion","standalone","gauge"],moduleFactory:e=>new WU(e)},wxe=(xt(),D(wt)),UU=(xt(),D(wt)),{BOOLEAN:sre,ActionOnSet:lre,LayoutElement:cre,Logger:dre,Menu:ure,Validate:hre}=UU._ModuleSupport,E4=[{label:"toolbarSeriesTypeOHLC",icon:"ohlc-series",value:"ohlc"},{label:"toolbarSeriesTypeCandles",icon:"candlestick-series",value:"candlestick"},{label:"toolbarSeriesTypeHollowCandles",icon:"hollow-candlestick-series",value:"hollow-candlestick"},{label:"toolbarSeriesTypeLine",icon:"line-series",value:"line"},{label:"toolbarSeriesTypeStepLine",icon:"step-line-series",value:"step-line"},{label:"toolbarSeriesTypeHLC",icon:"hlc-series",value:"hlc"},{label:"toolbarSeriesTypeHighLow",icon:"high-low-series",value:"high-low"}],KU=class extends UU._ModuleSupport.BaseModuleInstance{constructor(e){super(),this.ctx=e,this.enabled=!1,this.menu=new ure(this.ctx,"chart-toolbar"),this.toolbar=e.sharedToolbar.getSharedToolbar("chartToolbar"),this.destroyFns.push(this.toolbar.addToolbarListener("button-pressed",this.onButtonPressed.bind(this)),e.layoutManager.registerElement(cre.ToolbarLeft,this.onLayoutStart.bind(this)),()=>this.toolbar.destroy())}onLayoutStart(e){this.enabled&&(this.updateButton(),this.toolbar.layout(e.layoutBox))}onButtonPressed({event:e,buttonBounds:t}){this.menu.setAnchor({x:t.x+t.width+6,y:t.y}),this.menu.show({items:E4,menuItemRole:"menuitemradio",ariaLabel:this.ctx.localeManager.t("toolbarSeriesTypeDropdown"),class:"ag-charts-chart-toolbar__menu",value:this.getChartType(),sourceEvent:e.sourceEvent,onPress:n=>{this.setChartType(n.value),this.hidePopover()},onHide:()=>{this.toolbar.clearActiveButton()}}),this.toolbar.toggleActiveButtonByIndex(0)}updateButton(){var n;let e=this.getChartType(),t=(n=E4.find(a=>a.value===e))==null?void 0:n.icon;t!=null&&this.toolbar.updateButtons([{icon:t,tooltip:"toolbarSeriesTypeDropdown"}])}hidePopover(){this.toolbar.clearActiveButton(),this.menu.hide()}setChartType(e){var n;let t={chartType:e};(n=this.ctx.chartService.publicApi)==null||n.updateDelta(t).catch(a=>dre.error(a))}getChartType(){var t,n;let e=(n=(t=this.ctx.chartService.publicApi)==null?void 0:t.getOptions())==null?void 0:n.chartType;return e==null||!E4.some(a=>a.value===e)?"candlestick":e}};ve([hre(sre),lre({changeValue(e){var t;(t=this.toolbar)==null||t.setHidden(!e)}})],KU.prototype,"enabled",2);var gre={type:"root",optionsKey:"chartToolbar",packageType:"enterprise",chartTypes:["cartesian"],moduleFactory:e=>new KU(e)},pre=(xt(),D(wt)),BR=(xt(),D(wt)),RF="ag-charts-context-menu",PF="ag-charts-dark-context-menu",{BOOLEAN:qU,Validate:YU,createElement:I4,initMenuKeyNav:mre,makeAccessibleClickListener:fre,ContextMenuRegistry:M2,Logger:XU}=BR._ModuleSupport,T4="context-menu";function vre(e,t){let{children:n}=e!=null?e:{};if(!n)return[];let a=[];for(let h of Array.from(n))h instanceof t&&a.push(h);return a}var R4=class extends BR._ModuleSupport.BaseModuleInstance{constructor(e){if(super(),this.ctx=e,this.enabled=!0,this.darkTheme=!1,this.extraActions=[],this.extraNodeActions=[],this.extraSeriesAreaActions=[],this.extraLegendItemActions=[],this.pickedNode=void 0,this.showEvent=void 0,this.x=0,this.y=0,this.interactionManager=e.interactionManager,this.registry=e.contextMenuRegistry,this.groups={default:[],extra:[],extraSeriesArea:[],extraNode:[],extraLegendItem:[]},this.element=e.domManager.addChild("canvas-overlay",T4),this.element.classList.add(RF),this.element.addEventListener("contextmenu",t=>t.preventDefault()),this.destroyFns.push(()=>{var t;return(t=this.element.parentNode)==null?void 0:t.removeChild(this.element)}),this.doClose(),this.destroyFns.push(e.domManager.addListener("hidden",()=>this.hide())),typeof MutationObserver!="undefined"){let t=new MutationObserver(()=>{this.menuElement&&this.element.contains(this.menuElement)&&this.reposition()});t.observe(this.element,{childList:!0}),this.mutationObserver=t,this.destroyFns.push(()=>t.disconnect())}this.destroyFns.push(this.registry.registerDefaultAction({id:"download",type:"all",label:"contextMenuDownload",action:()=>{var a;let t=e.chartService.title,n="image";t!=null&&t.enabled&&(t==null?void 0:t.text)!==void 0&&(n=t.text.replace(/\.+/,"")),(a=this.ctx.chartService.publicApi)==null||a.download({fileName:n}).catch(h=>{XU.error("Unable to download chart",h)})}})),this.destroyFns.push(this.registry.addListener(t=>this.onContext(t)))}onContext(e){if(!this.enabled)return;e.preventDefault(),this.showEvent=e.sourceEvent,this.x=e.x,this.y=e.y,this.groups.default=this.registry.filterActions(e.type),this.pickedNode=void 0,this.pickedLegendItem=void 0,this.groups.extra=this.extraActions.map(({label:L,action:_})=>({type:"all",label:L,action:_})),this.groups.extraSeriesArea=[],this.groups.extraNode=[],M2.check("series-area",e)&&(this.pickedNode=e.context.pickedNode,this.groups.extraSeriesArea=this.extraSeriesAreaActions.map(({label:L,action:_})=>({type:"series-area",label:L,action:_})),this.pickedNode&&(this.groups.extraNode=this.extraNodeActions.map(({label:L,action:_})=>({type:"node",label:L,action:_})))),this.groups.extraLegendItem=[],M2.check("legend",e)&&(this.pickedLegendItem=e.context.legendItem,this.pickedLegendItem&&(this.groups.extraLegendItem=this.extraLegendItemActions.map(({label:L,action:_})=>({type:"legend",label:L,action:_}))));let{default:t,extra:n,extraSeriesArea:a,extraNode:h,extraLegendItem:S}=this.groups;[t,n,a,h,S].reduce((L,_)=>_.length+L,0)!==0&&this.show(e.sourceEvent)}show(e){var a;this.interactionManager.pushState(BR._ModuleSupport.InteractionState.ContextMenu),this.element.classList.toggle(PF,this.darkTheme);let t=this.renderMenu();(a=this.menuCloser)==null||a.close(),this.menuElement?this.element.replaceChild(t,this.menuElement):this.element.appendChild(t),this.menuElement=t,this.element.style.display="block";let n=vre(t,HTMLButtonElement);this.menuCloser=mre({menu:t,buttons:n,orientation:"vertical",sourceEvent:e,autoCloseOnBlur:!0,closeCallback:()=>this.doClose()})}hide(){var e;(e=this.menuCloser)==null||e.close()}doClose(){this.interactionManager.popState(BR._ModuleSupport.InteractionState.ContextMenu),this.menuElement&&(this.element.removeChild(this.menuElement),this.menuElement=void 0,this.menuCloser=void 0),this.element.style.display="none"}renderMenu(){let e=I4("div");return e.classList.add(`${RF}__menu`),e.classList.toggle(PF,this.darkTheme),e.role="menu",this.appendMenuGroup(e,this.groups.default,!1),this.appendMenuGroup(e,this.groups.extra),this.appendMenuGroup(e,this.groups.extraSeriesArea),this.pickedNode&&this.appendMenuGroup(e,this.groups.extraNode),this.pickedLegendItem&&this.appendMenuGroup(e,this.groups.extraLegendItem),e}appendMenuGroup(e,t,n=!0){t.length!==0&&(n&&e.appendChild(this.createDividerElement()),t.forEach(a=>{let h=this.renderItem(a);h&&e.appendChild(h)}))}renderItem(e){if(e&&typeof e=="object"&&e.constructor===Object)return this.createActionElement(e)}createDividerElement(){let e=I4("div");return e.classList.add(`${RF}__divider`),e.classList.toggle(PF,this.darkTheme),e.role="separator",e}createActionElement({id:e,label:t,type:n,action:a}){let h=!!(e&&this.registry.isDisabled(e));return this.createButtonElement(n,t,a,h)}createButtonOnClick(e,t){return M2.checkCallback("legend",e,t)?n=>{if(this.pickedLegendItem){let{seriesId:a,itemId:h}=this.pickedLegendItem;t({type:"contextmenu",seriesId:a,itemId:h,event:n}),this.hide()}}:M2.checkCallback("series-area",e,t)?()=>{t({type:"seriesContextMenuAction",event:this.showEvent}),this.hide()}:M2.checkCallback("node",e,t)?()=>{let{pickedNode:n,showEvent:a}=this,h=n==null?void 0:n.series.createNodeContextMenuActionEvent(a,n);h?t(h):XU.error("series node not found"),this.hide()}:()=>{t({type:"contextMenuEvent",event:this.showEvent}),this.hide()}}createButtonElement(e,t,n,a){let h=I4("button");return h.classList.add(`${RF}__item`),h.classList.toggle(PF,this.darkTheme),h.ariaDisabled=a.toString(),h.textContent=this.ctx.localeManager.t(t),h.role="menuitem",h.onclick=fre(h,this.createButtonOnClick(e,n)),h.addEventListener("mouseover",()=>h.focus({preventScroll:!0})),h}reposition(){let{x:e,y:t}=this;this.element.style.top="unset",this.element.style.bottom="unset";let n=this.ctx.domManager.getBoundingClientRect(),{offsetWidth:a,offsetHeight:h}=this.element;e=BR._ModuleSupport.clamp(0,e,n.width-a),t=BR._ModuleSupport.clamp(0,t,n.height-h),this.element.style.left=`${e}px`,this.element.style.top=`calc(${t}px - 0.5em)`}destroy(){var e;super.destroy(),(e=this.mutationObserver)==null||e.disconnect(),this.ctx.domManager.removeStyles(T4),this.ctx.domManager.removeChild("canvas-overlay",T4)}};ve([YU(qU)],R4.prototype,"enabled",2),ve([YU(qU)],R4.prototype,"darkTheme",2);var yre={type:"root",packageType:"enterprise",chartTypes:["cartesian","polar","hierarchy","topology","flow-proportion","standalone","gauge"],optionsKey:"contextMenu",moduleFactory:e=>new R4(e),themeTemplate:{contextMenu:{enabled:!0,darkTheme:pre._ModuleSupport.ThemeSymbols.IS_DARK_THEME}}},bre=(xt(),D(wt)),GR=(xt(),D(wt)),P4=(xt(),D(wt)),{BaseProperties:Cre,BOOLEAN:ZU,FUNCTION:$U,NUMBER:LF,STRING:QU,Validate:IC,createId:Sre,setAttribute:wre}=P4._ModuleSupport,xre="ag-charts-crosshair-label",jR=class extends P4._ModuleSupport.ChangeDetectableProperties{constructor(){super(...arguments),this.enabled=!0,this.xOffset=0,this.yOffset=0,this.format=void 0,this.renderer=void 0}};ve([IC(ZU)],jR.prototype,"enabled",2),ve([IC(LF)],jR.prototype,"xOffset",2),ve([IC(LF)],jR.prototype,"yOffset",2),ve([IC(QU,{optional:!0})],jR.prototype,"format",2),ve([IC($U,{optional:!0})],jR.prototype,"renderer",2);var VR=class extends Cre{constructor(e,t,n){super(),this.domManager=e,this.id=Sre(this),this.enabled=!0,this.xOffset=0,this.yOffset=0,this.renderer=void 0,this.element=e.addChild("canvas-overlay",`crosshair-label-${this.id}`),this.element.classList.add(xre),wre(this.element,"aria-hidden",!0),this.element.setAttribute("data-key",t),this.element.setAttribute("data-axis-id",n)}show(e){let{element:t}=this,n=e.x+this.xOffset,a=e.y+this.yOffset;t.style.top=`${Math.round(a)}px`,t.style.left=`${Math.round(n)}px`,this.toggle(!0)}setLabelHtml(e){e!==void 0&&(this.element.innerHTML=e)}getBBox(){let{element:e}=this;return new P4._ModuleSupport.BBox(e.clientLeft,e.clientTop,e.clientWidth,e.clientHeight)}toggle(e){this.element.classList.toggle("ag-charts-crosshair-label--hidden",!e)}destroy(){this.domManager.removeChild("canvas-overlay",`crosshair-label-${this.id}`)}toLabelHtml(e,t){var L,_;if(typeof e=="string")return e;t=t!=null?t:{};let{text:n=(L=t.text)!=null?L:"",color:a=t.color,backgroundColor:h=t.backgroundColor,opacity:S=(_=t.opacity)!=null?_:1}=e;return`<div class="ag-charts-crosshair-label-content" style="${`opacity: ${S}; background-color: ${h==null?void 0:h.toLowerCase()}; color: ${a}`}">
                    <span>${n}</span>
                </div>`}};ve([IC(ZU)],VR.prototype,"enabled",2),ve([IC(LF)],VR.prototype,"xOffset",2),ve([IC(LF)],VR.prototype,"yOffset",2),ve([IC(QU,{optional:!0})],VR.prototype,"format",2),ve([IC($U,{optional:!0})],VR.prototype,"renderer",2);var{Group:Mre,TranslatableGroup:kre,Line:JU,BBox:L4,createId:Are,POSITIVE_NUMBER:e8,RATIO:Dre,BOOLEAN:t8,COLOR_STRING:Ere,LINE_DASH:Ire,OBJECT:Tre,InteractionState:k2,Validate:mA,ZIndexMap:i8,formatNumber:Rre,isInteger:Pre,ChartAxisDirection:n8}=GR._ModuleSupport,Iw=class extends GR._ModuleSupport.BaseModuleInstance{constructor(e){super(),this.ctx=e,this.id=Are(this),this.enabled=!1,this.stroke="rgb(195, 195, 195)",this.lineDash=[6,3],this.lineDashOffset=0,this.strokeWidth=1,this.strokeOpacity=1,this.snap=!0,this.label=new jR,this.seriesRect=new L4(0,0,0,0),this.hoverRect=new L4(0,0,0,0),this.bounds=new L4(0,0,0,0),this.crosshairGroup=new kre({name:"crosshairs",zIndex:i8.SERIES_CROSSHAIR}),this.lineGroup=this.crosshairGroup.appendChild(new Mre({name:`${this.id}-crosshair-lines`,zIndex:i8.SERIES_CROSSHAIR})),this.lineGroupSelection=GR._ModuleSupport.Selection.select(this.lineGroup,JU,!1),this.activeHighlight=void 0,this.axisCtx=e.parent,this.labels={};let t=e.regionManager.getRegion("series"),n=k2.Default|k2.Annotations|k2.AnnotationsSelected;this.hideCrosshairs(),e.domManager.addEventListener("focusin",({target:a})=>{let h=a instanceof HTMLElement&&e.domManager.contains(a,"series-area");this.crosshairGroup.visible&&!h&&(this.hideCrosshairs(),this.ctx.updateService.update(GR._ModuleSupport.ChartUpdateType.PERFORM_LAYOUT))}),this.destroyFns.push(e.scene.attachNode(this.crosshairGroup),t.addListener("hover",a=>this.onMouseMove(a),n),t.addListener("drag",a=>this.onMouseMove(a),k2.Annotations|k2.AnnotationsSelected),t.addListener("leave",()=>this.onMouseOut(),n),e.keyNavManager.addListener("nav-hori",()=>this.onKeyPress()),e.keyNavManager.addListener("nav-vert",()=>this.onKeyPress()),e.zoomManager.addListener("zoom-pan-start",()=>this.onMouseOut()),e.zoomManager.addListener("zoom-change",()=>this.onMouseOut()),e.highlightManager.addListener("highlight-change",a=>this.onHighlightChange(a)),e.layoutManager.addListener("layout:complete",a=>this.layout(a)),()=>Object.entries(this.labels).forEach(([a,h])=>h.destroy()))}layout({series:{rect:e,paddedRect:t,visible:n},axes:a}){if(!n||!a||!this.enabled)return;this.seriesRect=e,this.hoverRect=t;let{position:h="left",axisId:S}=this.axisCtx,E=a.find(V=>V.id===S);if(!E)return;this.axisLayout=E,this.bounds=e.clone().grow(E.gridPadding+E.seriesAreaPadding,h);let{crosshairGroup:L,bounds:_}=this;L.translationX=Math.round(_.x),L.translationY=Math.round(_.y);let N=["pointer",...this.axisCtx.seriesKeyProperties()];this.updateSelections(N),this.updateLines(),this.updateLabels(N)}updateSelections(e){this.lineGroupSelection.update(e,t=>t.append(new JU),t=>t)}updateLabels(e){var a;let{labels:t,ctx:n}=this;for(let h of e)this.label.enabled&&((a=t[h])!=null||(t[h]=new VR(n.domManager,h,this.axisCtx.axisId))),t[h]&&this.updateLabel(t[h]);this.labelFormatter=this.axisCtx.scaleValueFormatter(this.label.format)}updateLabel(e){let{enabled:t,xOffset:n,yOffset:a,format:h,renderer:S}=this.label;e.enabled=t,e.xOffset=n,e.yOffset=a,e.format=h,e.renderer=S}updateLines(){let{lineGroupSelection:e,bounds:t,stroke:n,strokeWidth:a,strokeOpacity:h,lineDash:S,lineDashOffset:E,axisLayout:L}=this;if(!L)return;let _=this.isVertical();e.each(N=>{N.stroke=n,N.strokeWidth=a,N.strokeOpacity=h,N.lineDash=S,N.lineDashOffset=E,N.y1=0,N.y2=_?t.height:0,N.x1=0,N.x2=_?0:t.width})}isVertical(){return this.axisCtx.direction===n8.X}formatValue(e){var h;let{labelFormatter:t,axisLayout:n,ctx:{callbackCache:a}}=this;if(t){let S=a.call(t,e);if(S!=null)return S}if(typeof e=="number"){let S=((h=n==null?void 0:n.label.fractionDigits)!=null?h:0)+(Pre(e)?0:1);return Rre(e,S)}return String(e!=null?e:"")}onMouseMove(e){if(!this.enabled||this.snap)return;let{crosshairGroup:t,hoverRect:n}=this,{canvasX:a,canvasY:h}=e;if(n.containsPoint(a,h)){let S=this.getData(e);this.updatePositions(S),t.visible=!0}else this.hideCrosshairs();this.ctx.updateService.update(GR._ModuleSupport.ChartUpdateType.SCENE_RENDER)}onMouseOut(){this.hideCrosshairs(),this.ctx.updateService.update(GR._ModuleSupport.ChartUpdateType.SCENE_RENDER)}onKeyPress(){this.enabled&&!this.snap&&this.hideCrosshairs()}onHighlightChange(e){var E,L,_;if(!this.enabled)return;let{crosshairGroup:t,axisCtx:n}=this,{datum:a,series:h}=(E=e.currentHighlight)!=null?E:{},S=a&&(((L=h==null?void 0:h.axes.x)==null?void 0:L.id)===n.axisId||((_=h==null?void 0:h.axes.y)==null?void 0:_.id)===n.axisId);if(this.activeHighlight=S?e.currentHighlight:void 0,!this.activeHighlight)this.hideCrosshairs();else if(this.snap){let N=this.getActiveHighlightData(this.activeHighlight);this.updatePositions(N),t.visible=!0}}isInRange(e){return this.axisCtx.inRange(e)}updatePositions(e){let{seriesRect:t,lineGroupSelection:n}=this;n.each((a,h)=>{let S=e[h];if(!S){a.visible=!1,this.hideLabel(h);return}a.visible=!0;let{value:E,position:L}=S,_=0,N=0;this.isVertical()?(_=L,a.x=Math.round(_)):(N=L,a.y=Math.round(N)),this.label.enabled?this.showLabel(_+t.x,N+t.y,E,h):this.hideLabel(h)})}getData(e){var q,Y;let{axisCtx:t}=this,n="pointer",{datum:a,xKey:h="",yKey:S=""}=(q=this.activeHighlight)!=null?q:{},{regionX:E,regionY:L}=e,_=this.isVertical(),N=_?E:L,V=(Y=a==null?void 0:a[_?h:S])!=null?Y:"";return t.continuous&&(V=t.scaleInvert(N)),{[n]:{position:N,value:V}}}getActiveHighlightData(e){var ce,he,me;let{axisCtx:t}=this,{datum:n,series:a,xKey:h="",aggregatedValue:S,cumulativeValue:E,midPoint:L}=e,_=a.getKeyProperties(t.direction),N=((ce=t.scale.bandwidth)!=null?ce:0)/2,V=((he=a.axes[t.direction])==null?void 0:he.id)===t.axisId,q=_.indexOf("yKey")>-1&&V,Y=_.indexOf("xKey")>-1&&V,J=S!=null?S:E;if(q&&J!==void 0){let we=t.scale.convert(J)+N;return this.isInRange(we)?{yKey:{value:J,position:we}}:{}}if(Y){let we=(me=this.isVertical()?L==null?void 0:L.x:L==null?void 0:L.y)!=null?me:0,Me=t.continuous?t.scaleInvert(we):n[h];return this.isInRange(we)?{xKey:{value:Me,position:we}}:{}}let re={};return _.forEach(we=>{let Me=a.properties[we],be=n[Me],Le=t.scale.convert(be)+N;this.isInRange(Le)&&(re[we]={value:be,position:Le})}),re}getLabelHtml(e,t){var h,S,E;let n=(E=(S=(h=this.axisLayout)==null?void 0:h.label)==null?void 0:S.fractionDigits)!=null?E:0,a={text:this.formatValue(e)};return this.label.renderer?t.toLabelHtml(this.label.renderer({value:e,fractionDigits:n}),a):t.toLabelHtml(a)}showLabel(e,t,n,a){if(!this.axisLayout)return;let{bounds:h}=this,S=this.labels[a],E=this.getLabelHtml(n,S);S.setLabelHtml(E);let{width:L,height:_}=S.getBBox(),N=this.axisCtx.position,V=this.axisLayout.label.spacing+this.axisLayout.tickSize;this.axisCtx.direction===n8.X?(V-=4,S.show({x:e-L/2,y:N==="bottom"?h.y+h.height+V:h.y-_-V})):(V-=8,S.show({x:N==="right"?h.x+h.width+V:h.x-L-V,y:t-_/2}))}hideCrosshairs(){this.crosshairGroup.visible=!1;for(let e of Object.keys(this.labels))this.hideLabel(e)}hideLabel(e){var t;(t=this.labels[e])==null||t.toggle(!1)}};ve([mA(t8)],Iw.prototype,"enabled",2),ve([mA(Ere,{optional:!0})],Iw.prototype,"stroke",2),ve([mA(Ire,{optional:!0})],Iw.prototype,"lineDash",2),ve([mA(e8)],Iw.prototype,"lineDashOffset",2),ve([mA(e8)],Iw.prototype,"strokeWidth",2),ve([mA(Dre)],Iw.prototype,"strokeOpacity",2),ve([mA(t8)],Iw.prototype,"snap",2),ve([mA(Tre)],Iw.prototype,"label",2);var Lre={type:"axis-option",optionsKey:"crosshair",packageType:"enterprise",chartTypes:["cartesian"],axisTypes:["category","ordinal-time","number","log","time"],moduleFactory:e=>new Iw(e),themeTemplate:{crosshair:{snap:!0,stroke:bre._ModuleSupport.ThemeSymbols.DEFAULT_MUTED_LABEL_COLOUR,strokeWidth:1,strokeOpacity:1,lineDash:[5,6],lineDashOffset:0,label:{enabled:!0}}}},a8=(xt(),D(wt)),{BOOLEAN:Ore,FUNCTION:_re,ActionOnSet:A2,Validate:o8}=a8._ModuleSupport,HR=class extends a8._ModuleSupport.BaseModuleInstance{constructor(e){super(),this.enabled=!1,this.getData=()=>Promise.resolve(),this.dataService=e.dataService}updateCallback(e,t){this.dataService&&(e&&t!=null?this.dataService.updateCallback(t):this.dataService.clearCallback())}};ve([A2({newValue(e){this.updateCallback(e,this.getData)}}),o8(Ore)],HR.prototype,"enabled",2),ve([A2({newValue(e){this.updateCallback(this.enabled,e)}}),o8(_re)],HR.prototype,"getData",2),ve([A2({newValue(e){this.dataService.requestThrottle=e}})],HR.prototype,"requestThrottle",2),ve([A2({newValue(e){this.dataService.dispatchThrottle=e}})],HR.prototype,"updateThrottle",2),ve([A2({newValue(e){this.dataService.dispatchOnlyLatest=!e}})],HR.prototype,"updateDuringInteraction",2);var Fre={type:"root",optionsKey:"dataSource",packageType:"enterprise",chartTypes:["cartesian","hierarchy","polar","topology","flow-proportion","standalone","gauge"],moduleFactory:e=>new HR(e),themeTemplate:{dataSource:{enabled:!1}}},Nre=(xt(),D(wt)),D2=(xt(),D(wt)),E2=(xt(),D(wt)),{nearestSquaredInContainer:zre,partialAssign:Bre,mergeDefaults:r8,BBox:Tw}=E2._ModuleSupport,Gre=class{constructor(e){this.components=e,this.union=Tw.merge(e)}containsPoint(e,t){if(!this.union.containsPoint(e,t))return!1;for(let n of this.components)if(n.containsPoint(e,t))return!0;return!1}},jre=class extends E2._ModuleSupport.Group{constructor(){super(),this.capLength=NaN,this._datum=void 0,this.whiskerPath=new E2._ModuleSupport.Path,this.capsPath=new E2._ModuleSupport.Path,this.bboxes=new Gre([]),this.append([this.whiskerPath,this.capsPath])}get datum(){return this._datum}set datum(e){this._datum=e}calculateCapLength(e,t){let{lengthRatio:n=1,length:a}=e,{lengthRatioMultiplier:h,lengthMax:S}=t,E=a!=null?a:n*h;return Math.min(E,S)}getItemStylerParams(e,t,n){let{datum:a}=this;if(a==null||e.itemStyler==null)return;let{xLowerKey:h,xUpperKey:S,yLowerKey:E,yUpperKey:L}=e;return et(pe({},t),{datum:a.datum,seriesId:a.datum.seriesId,xKey:a.xKey,yKey:a.yKey,xLowerKey:h,xUpperKey:S,yLowerKey:E,yUpperKey:L,highlighted:n})}formatStyles(e,t,n){let E=e,{cap:a}=E,h=ji(E,["cap"]),S=this.getItemStylerParams(t,e,n);if(S!=null&&t.itemStyler!=null){let L=t.itemStyler(S);h=r8(L,h),a=r8(L==null?void 0:L.cap,L,a)}return{whiskerStyle:h,capsStyle:a}}applyStyling(e,t){Bre(["visible","stroke","strokeWidth","strokeOpacity","lineDash","lineDashOffset"],e,t)}update(e,t,n){if(this.datum===void 0)return;let{whiskerStyle:a,capsStyle:h}=this.formatStyles(e,t,n),{xBar:S,yBar:E,capDefaults:L}=this.datum,_=this.whiskerPath;this.applyStyling(_,a),_.path.clear(!0),E!==void 0&&(_.path.moveTo(E.lowerPoint.x,E.lowerPoint.y),_.path.lineTo(E.upperPoint.x,E.upperPoint.y)),S!==void 0&&(_.path.moveTo(S.lowerPoint.x,S.lowerPoint.y),_.path.lineTo(S.upperPoint.x,S.upperPoint.y)),_.path.closePath(),this.capLength=this.calculateCapLength(h!=null?h:{},L);let N=this.capLength/2,V=this.capsPath;this.applyStyling(V,h),V.path.clear(!0),E!==void 0&&(V.path.moveTo(E.lowerPoint.x-N,E.lowerPoint.y),V.path.lineTo(E.lowerPoint.x+N,E.lowerPoint.y),V.path.moveTo(E.upperPoint.x-N,E.upperPoint.y),V.path.lineTo(E.upperPoint.x+N,E.upperPoint.y)),S!==void 0&&(V.path.moveTo(S.lowerPoint.x,S.lowerPoint.y-N),V.path.lineTo(S.lowerPoint.x,S.lowerPoint.y+N),V.path.moveTo(S.upperPoint.x,S.upperPoint.y-N),V.path.lineTo(S.upperPoint.x,S.upperPoint.y+N)),V.path.closePath()}updateBBoxes(){var L;let{capLength:e,whiskerPath:t,capsPath:n}=this,{yBar:a,xBar:h}=(L=this.datum)!=null?L:{},S=e/2,E=[];if(a!==void 0){let _=a.lowerPoint.y-a.upperPoint.y;E.push(new Tw(a.lowerPoint.x,a.upperPoint.y,t.strokeWidth,_),new Tw(a.lowerPoint.x-S,a.lowerPoint.y,e,n.strokeWidth),new Tw(a.upperPoint.x-S,a.upperPoint.y,e,n.strokeWidth))}if(h!==void 0){let _=h.upperPoint.x-h.lowerPoint.x;E.push(new Tw(h.lowerPoint.x,h.upperPoint.y,_,t.strokeWidth),new Tw(h.lowerPoint.x,h.lowerPoint.y-S,n.strokeWidth,e),new Tw(h.upperPoint.x,h.upperPoint.y-S,n.strokeWidth,e))}this.bboxes.components=E,this.bboxes.union=Tw.merge(E)}containsPoint(e,t){return this.bboxes.containsPoint(e,t)}pickNode(e,t){return this.containsPoint(e,t)?this:void 0}nearestSquared(e,t,n){let{bboxes:a}=this;if(a.union.distanceSquared(e,t)>n)return{nearest:void 0,distanceSquared:1/0};let{distanceSquared:h}=Tw.nearestBox(e,t,a.components);return{nearest:this,distanceSquared:h}}},Vre=class extends E2._ModuleSupport.Group{nearestSquared(e,t){let{nearest:n,distanceSquared:a}=zre(e,t,{children:this.children()});if(n!==void 0&&!isNaN(a))return{datum:n.datum,distanceSquared:a}}},Hre=(xt(),D(wt)),{BaseProperties:s8,Validate:us,BOOLEAN:l8,COLOR_STRING:c8,FUNCTION:Wre,LINE_DASH:d8,NUMBER:Ure,OBJECT:Kre,POSITIVE_NUMBER:OF,RATIO:O4,STRING:fA}=Hre._ModuleSupport,Rw=class extends s8{};ve([us(l8,{optional:!0})],Rw.prototype,"visible",2),ve([us(c8,{optional:!0})],Rw.prototype,"stroke",2),ve([us(OF,{optional:!0})],Rw.prototype,"strokeWidth",2),ve([us(O4,{optional:!0})],Rw.prototype,"strokeOpacity",2),ve([us(d8,{optional:!0})],Rw.prototype,"lineDash",2),ve([us(OF,{optional:!0})],Rw.prototype,"lineDashOffset",2),ve([us(Ure,{optional:!0})],Rw.prototype,"length",2),ve([us(O4,{optional:!0})],Rw.prototype,"lengthRatio",2);var cu=class extends s8{constructor(){super(...arguments),this.visible=!0,this.stroke="black",this.strokeWidth=1,this.strokeOpacity=1,this.cap=new Rw}};ve([us(fA,{optional:!0})],cu.prototype,"yLowerKey",2),ve([us(fA,{optional:!0})],cu.prototype,"yLowerName",2),ve([us(fA,{optional:!0})],cu.prototype,"yUpperKey",2),ve([us(fA,{optional:!0})],cu.prototype,"yUpperName",2),ve([us(fA,{optional:!0})],cu.prototype,"xLowerKey",2),ve([us(fA,{optional:!0})],cu.prototype,"xLowerName",2),ve([us(fA,{optional:!0})],cu.prototype,"xUpperKey",2),ve([us(fA,{optional:!0})],cu.prototype,"xUpperName",2),ve([us(l8,{optional:!0})],cu.prototype,"visible",2),ve([us(c8,{optional:!0})],cu.prototype,"stroke",2),ve([us(OF,{optional:!0})],cu.prototype,"strokeWidth",2),ve([us(O4,{optional:!0})],cu.prototype,"strokeOpacity",2),ve([us(d8,{optional:!0})],cu.prototype,"lineDash",2),ve([us(OF,{optional:!0})],cu.prototype,"lineDashOffset",2),ve([us(Wre,{optional:!0})],cu.prototype,"itemStyler",2),ve([us(Kre)],cu.prototype,"cap",2);var{fixNumericExtent:qre,groupAccumulativeValueProperty:Yre,isDefined:Yg,mergeDefaults:Xre,valueProperty:_F,ChartAxisDirection:_4,Logger:Zre}=D2._ModuleSupport;function $re(e){for(let t of D2.AgErrorBarSupportedSeriesTypes)if(t===e.series.type)return e.series;throw new Error(`AG Charts - unsupported series type '${e.series.type}', error bars supported series types: ${D2.AgErrorBarSupportedSeriesTypes.join(", ")}`)}var Qre=class LO extends D2._ModuleSupport.BaseModuleInstance{constructor(t){super(),this.properties=new cu;let n=$re(t),{annotationGroup:a,annotationSelections:h}=n;this.cartesianSeries=n,this.groupNode=new Vre({name:`${a.id}-errorBars`}),a.appendChild(this.groupNode),this.selection=D2._ModuleSupport.Selection.select(this.groupNode,()=>this.errorBarFactory()),h.add(this.selection),n.addEventListener("seriesVisibilityChange",S=>this.onToggleSeriesItem(S)),this.destroyFns.push(n.addListener("data-processed",S=>this.onDataProcessed(S)),n.addListener("data-update",S=>this.onDataUpdate(S)),t.highlightManager.addListener("highlight-change",S=>this.onHighlightChange(S)),()=>a.removeChild(this.groupNode),()=>h.delete(this.selection))}hasErrorBars(){let{xLowerKey:t,xUpperKey:n,yLowerKey:a,yUpperKey:h}=this.properties;return Yg(t)&&Yg(n)||Yg(a)&&Yg(h)}isStacked(){var n;let t=(n=this.cartesianSeries.seriesGrouping)==null?void 0:n.stackCount;return t==null?!1:t>0}getUnstackPropertyDefinition(t){let n=[],{xLowerKey:a,xUpperKey:h,yLowerKey:S,yUpperKey:E,xErrorsID:L,yErrorsID:_}=this.getMaybeFlippedKeys(),{xScaleType:N,yScaleType:V}=t;return S!=null&&E!=null&&n.push(_F(S,V,{id:`${_}-lower`}),_F(E,V,{id:`${_}-upper`})),a!=null&&h!=null&&n.push(_F(a,N,{id:`${L}-lower`}),_F(h,N,{id:`${L}-upper`})),n}getStackPropertyDefinition(t){var he,me;let n=[],{cartesianSeries:a}=this,{xLowerKey:h,xUpperKey:S,yLowerKey:E,yUpperKey:L,xErrorsID:_,yErrorsID:N}=this.getMaybeFlippedKeys(),{xScaleType:V,yScaleType:q}=t,Y=(me=(he=a.seriesGrouping)==null?void 0:he.groupIndex)!=null?me:a.id,J=pe({invalidValue:null,missingValue:0,separateNegative:!0},a.visible?{}:{forceValue:0}),re=(we,Me,be,Le)=>Yre(we,"normal","current",pe({id:`${Me}-${be}`,groupId:`errorGroup-${Y}-${be}`},J),Le),ce=(we,Me,be,Le)=>{n.push(...re(we,be,"lower",Le),...re(Me,be,"upper",Le))};return E!=null&&L!=null&&ce(E,L,N,q),h!=null&&S!=null&&ce(h,S,_,V),n}getPropertyDefinitions(t){return this.isStacked()?this.getStackPropertyDefinition(t):this.getUnstackPropertyDefinition(t)}onDataProcessed(t){this.dataModel=t.dataModel,this.processedData=t.processedData}getDomain(t){let{xLowerKey:n,xUpperKey:a,xErrorsID:h,yLowerKey:S,yUpperKey:E,yErrorsID:L}=this.getMaybeFlippedKeys();if(t===_4.X?Yg(n)&&Yg(a):Yg(S)&&Yg(E)){let{dataModel:N,processedData:V,cartesianSeries:q}=this;if(N!=null&&V!=null){let Y={x:h,y:L}[t],J=N.getDomain(q,`${Y}-lower`,"value",V),re=N.getDomain(q,`${Y}-upper`,"value",V),ce=[Math.min(...J,...re),Math.max(...J,...re)];return qre(ce)}}return[]}onDataUpdate(t){this.dataModel=t.dataModel,this.processedData=t.processedData,Yg(t.dataModel)&&Yg(t.processedData)&&(this.createNodeData(),this.update())}getNodeData(){var t;return this.hasErrorBars()?(t=this.cartesianSeries.contextNodeData)==null?void 0:t.nodeData:void 0}createNodeData(){var h,S;let t=this.getNodeData(),n=(h=this.cartesianSeries.axes[_4.X])==null?void 0:h.scale,a=(S=this.cartesianSeries.axes[_4.Y])==null?void 0:S.scale;if(!(!n||!a||!t))for(let E=0;E<t.length;E++){let{midPoint:L,xLower:_,xUpper:N,yLower:V,yUpper:q}=this.getDatum(t,E);if(L!=null){let Y,J;Yg(_)&&Yg(N)&&(Y={lowerPoint:{x:this.convert(n,_),y:L.y},upperPoint:{x:this.convert(n,N),y:L.y}}),Yg(V)&&Yg(q)&&(J={lowerPoint:{x:L.x,y:this.convert(a,V)},upperPoint:{x:L.x,y:this.convert(a,q)}}),t[E].xBar=Y,t[E].yBar=J}}}getMaybeFlippedKeys(){let{xLowerKey:t,xUpperKey:n,yLowerKey:a,yUpperKey:h}=this.properties,[S,E]=["xValue-errors","yValue-errors"];return this.cartesianSeries.shouldFlipXY()&&([t,a]=[a,t],[n,h]=[h,n],[S,E]=[E,S]),{xLowerKey:t,xUpperKey:n,xErrorsID:S,yLowerKey:a,yUpperKey:h,yErrorsID:E}}static getDatumKey(t,n,a){if(n==null)return;let h=t.datum[n];if(h!=null){if(typeof h!="number"){Zre.warnOnce(`Found [${n}] error value of type ${typeof h}. Expected number type`);return}return h+a}}getDatum(t,n){let{xLowerKey:a,xUpperKey:h,yLowerKey:S,yUpperKey:E}=this.getMaybeFlippedKeys(),L=t[n],_=L.cumulativeValue==null||!this.isStacked()?0:L.cumulativeValue-L.yValue,[N,V]=this.cartesianSeries.shouldFlipXY()?[_,0]:[0,_];return{midPoint:L.midPoint,xLower:LO.getDatumKey(L,a,N),xUpper:LO.getDatumKey(L,h,N),yLower:LO.getDatumKey(L,S,V),yUpper:LO.getDatumKey(L,E,V)}}convert(t,n){var h;let a=((h=t.bandwidth)!=null?h:0)/2;return t.convert(n)+a}update(){let t=this.getNodeData();t!=null&&(this.selection.update(t),this.selection.each((n,a,h)=>this.updateNode(n,a,h)))}updateNode(t,n,a){t.datum=n,t.update(this.getDefaultStyle(),this.properties,!1),t.updateBBoxes()}pickNodeExact(t){let{x:n,y:a}=t,h=this.groupNode.pickNode(n,a);if(h!=null)return{datum:h.datum,distanceSquared:0}}pickNodeNearest(t){return this.groupNode.nearestSquared(t.x,t.y)}pickNodeMainAxisFirst(t){return this.groupNode.nearestSquared(t.x,t.y)}getTooltipParams(){let{xLowerKey:t,xUpperKey:n,yLowerKey:a,yUpperKey:h,xLowerName:S=t,xUpperName:E=n,yLowerName:L=a,yUpperName:_=h}=this.properties;return{xLowerKey:t,xLowerName:S,xUpperKey:n,xUpperName:E,yLowerKey:a,yLowerName:L,yUpperKey:h,yUpperName:_}}onToggleSeriesItem(t){this.groupNode.visible=t.visible}makeStyle(t){return{visible:t.visible,lineDash:t.lineDash,lineDashOffset:t.lineDashOffset,stroke:t.stroke,strokeWidth:t.strokeWidth,strokeOpacity:t.strokeOpacity,cap:Xre(this.properties.cap,t)}}getDefaultStyle(){return this.makeStyle(this.getWhiskerProperties())}getHighlightStyle(){return this.makeStyle(this.getWhiskerProperties())}restyleHighlightChange(t,n,a){var S;let h=this.getNodeData();if(h!=null){for(let E=0;E<h.length;E++)if(t===h[E]){(S=this.selection.at(E))==null||S.update(n,this.properties,a);break}}}onHighlightChange(t){let{previousHighlight:n,currentHighlight:a}=t;(a==null?void 0:a.series)===this.cartesianSeries&&this.restyleHighlightChange(a,this.getHighlightStyle(),!0),(n==null?void 0:n.series)===this.cartesianSeries&&this.restyleHighlightChange(n,this.getDefaultStyle(),!1),this.groupNode.opacity=this.cartesianSeries.getOpacity()}errorBarFactory(){return new jre}getWhiskerProperties(){let{stroke:t,strokeWidth:n,visible:a,strokeOpacity:h,lineDash:S,lineDashOffset:E}=this.properties;return{stroke:t,strokeWidth:n,visible:a,strokeOpacity:h,lineDash:S,lineDashOffset:E}}},Jre=(xt(),D(wt)),ese={series:{errorBar:{visible:!0,stroke:Jre._ModuleSupport.ThemeSymbols.DEFAULT_LABEL_COLOUR,strokeWidth:1,strokeOpacity:1,cap:{length:void 0,lengthRatio:void 0}}}},tse={type:"series-option",identifier:"error-bars",optionsKey:"errorBar",packageType:"enterprise",chartTypes:["cartesian"],seriesTypes:Nre.AgErrorBarSupportedSeriesTypes,moduleFactory:e=>new Qre(e),themeTemplate:ese},FF=(xt(),D(wt)),{ZIndexMap:ise,ActionOnSet:nse,Validate:F4,ProxyPropertyOnWrite:u8,OBJECT:ase,RATIO:ose,COLOR_STRING:rse}=FF._ModuleSupport,NF=class extends FF._ModuleSupport.Background{constructor(){super(...arguments),this.image=new EC,this.fill="transparent",this.fillOpacity=void 0}createNode(){return new FF._ModuleSupport.Group({name:"foreground",zIndex:ise.FOREGROUND})}onLayoutComplete(e){super.onLayoutComplete(e);let{width:t,height:n}=e.chart,a={x:0,y:0,width:t,height:n};this.image&&(a=this.image.performLayout(t,n)),this.text&&this.updateTextNode(a)}onImageLoad(){this.ctx.updateService.update(FF._ModuleSupport.ChartUpdateType.SCENE_RENDER)}updateTextNode(e){let{textNode:t}=this;t.fontWeight="bold",t.fontFamily="Impact, sans-serif",t.fontSize=19,t.opacity=.7,t.fill="#9b9b9b",t.textBaseline="top";let n=this.textNode.getBBox(),a=10;t.x=e.x+e.width/2-n.width/2,t.y=e.y+e.height+a}};ve([F4(ase,{optional:!0}),nse({newValue(e){this.node.appendChild(e.node),e.onLoad=()=>this.onImageLoad()},oldValue(e){this.node.removeChild(e.node),e.onLoad=void 0}})],NF.prototype,"image",2),ve([F4(rse,{optional:!0}),u8("rectNode","fill")],NF.prototype,"fill",2),ve([F4(ose,{optional:!0}),u8("rectNode","fillOpacity")],NF.prototype,"fillOpacity",2);var sse={type:"root",optionsKey:"foreground",packageType:"enterprise",chartTypes:["cartesian","polar","hierarchy","topology","flow-proportion","standalone","gauge"],moduleFactory:e=>new NF(e)},lse=(xt(),D(wt)),I2=(xt(),D(wt)),h8=(xt(),D(wt)),cse=(xt(),D(wt)),{TranslatableGroup:dse,ScenePathChangeDetection:g8}=cse._ModuleSupport,N4=class extends dse{constructor(){super(...arguments),this.inset=0,this.cornerRadius=0}applyClip(e,t){let{cornerRadius:n,inset:a}=this,{x:h,y:S,width:E,height:L}=t;e.beginPath(),e.roundRect(h+a,S+a,E-2*a,L-2*a,n),e.clip()}};ve([g8()],N4.prototype,"inset",2),ve([g8()],N4.prototype,"cornerRadius",2);var{Validate:z4,BOOLEAN:use,POSITIVE_NUMBER:p8,ZIndexMap:EE,ActionOnSet:m8,CategoryAxis:hse,TextUtils:gse,Padding:pse,Logger:f8,Group:IE,BBox:v8,ProxyProperty:y8}=h8._ModuleSupport,B4=class{constructor(){this.top=0,this.bottom=0}};ve([z4(p8)],B4.prototype,"top",2),ve([z4(p8)],B4.prototype,"bottom",2);var WR=class extends h8._ModuleSupport.BaseModuleInstance{constructor(e){super(),this.ctx=e,this.enabled=!1,this.padding=new B4,this.root=new IE({name:"root"}),this.seriesRoot=this.root.appendChild(new N4({name:"Series-root",zIndex:EE.SERIES_LAYER,renderToOffscreenCanvas:!0})),this.axisGridGroup=this.root.appendChild(new IE({name:"Axes-Grids",zIndex:EE.AXIS_GRID})),this.axisGroup=this.root.appendChild(new IE({name:"Axes-Grids",zIndex:EE.AXIS_GRID})),this.axisLabelGroup=this.root.appendChild(new IE({name:"Axes-Labels",zIndex:EE.SERIES_LABEL})),this.axisCrosslineRangeGroup=this.root.appendChild(new IE({name:"Axes-Crosslines-Range",zIndex:EE.SERIES_CROSSLINE_RANGE})),this.axisCrosslineLineGroup=this.root.appendChild(new IE({name:"Axes-Crosslines-Line",zIndex:EE.SERIES_CROSSLINE_LINE})),this.axisCrosslineLabelGroup=this.root.appendChild(new IE({name:"Axes-Crosslines-Label",zIndex:EE.SERIES_LABEL})),this.data=[],this._destroyed=!1,this.miniChartAnimationPhase="initial",this.axes=[],this.series=[]}destroy(){this._destroyed||(this.destroySeries(this.series),this.axes.forEach(e=>e.destroy()),this.axes=[],this._destroyed=!0)}onSeriesChange(e,t){var a;let n=(a=t==null?void 0:t.filter(h=>!e.includes(h)))!=null?a:[];this.destroySeries(n);for(let h of e){if(t!=null&&t.includes(h))continue;h.attachSeries(this.seriesRoot,this.seriesRoot,void 0);let S=this;h.chart={get mode(){return"standalone"},get isMiniChart(){return!0},get seriesRect(){return S.seriesRect}},h.resetAnimation(this.miniChartAnimationPhase==="initial"?"initial":"disabled")}}destroySeries(e){e==null||e.forEach(t=>{t.destroy(),t.detachSeries(this.seriesRoot,this.seriesRoot,void 0),t.chart=void 0})}assignSeriesToAxes(){this.axes.forEach(e=>{e.boundSeries=this.series.filter(t=>t.axes[e.direction]===e)})}assignAxesToSeries(){let e={};this.axes.forEach(t=>{var h;let n=t.direction;((h=e[n])!=null?h:e[n]=[]).push(t)}),this.series.forEach(t=>{t.directions.forEach(n=>{let a=e[n];if(!a){f8.warnOnce(`no available axis for direction [${n}]; check series and axes configuration.`);return}let h=t.getKeys(n),S=this.findMatchingAxis(a,h);if(!S){f8.warnOnce(`no matching axis for direction [${n}] and keys [${h}]; check series and axes configuration.`);return}t.axes[n]=S})})}findMatchingAxis(e,t){for(let n of e){if(!n.keys.length)return n;if(t){for(let a of t)if(n.keys.includes(a))return n}}}updateData(e){this.series.forEach(t=>t.setChartData(e)),this.miniChartAnimationPhase==="initial"&&this.ctx.animationManager.onBatchStop(()=>{this.miniChartAnimationPhase="ready",this.series.forEach(t=>t.resetAnimation("disabled"))})}async processData(e){this.series.some(t=>t.canHaveAxes)&&(this.assignAxesToSeries(),this.assignSeriesToAxes());for(let t of this.axes)t.processData();await Promise.all(this.series.map(t=>(t.resetDatumCallbackCache(),t.processData(e))))}computeAxisPadding(){let e=new pse;return this.enabled&&this.axes.forEach(({position:t,thickness:n,line:a,label:h})=>{var E;if(t==null)return;let S;n?S=n:S=(a.enabled?a.width:0)+(h.enabled?gse.getLineHeight((E=h.fontSize)!=null?E:0)+h.spacing:0),e[t]=Math.ceil(S)}),e}async layout(e,t){let{padding:n}=this,a=this.seriesRect!=null,h=new v8(0,0,e,t-(n.top+n.bottom));this.seriesRect=h,this.seriesRoot.translationY=n.top,this.seriesRoot.setClipRectCanvasSpace(new v8(0,-n.top,e,t)),this.axes.forEach(S=>{let{position:E="left"}=S;switch(E){case"top":case"bottom":S.range=[0,h.width],S.gridLength=h.height;break;case"right":case"left":{let L=S instanceof hse;S.range=L?[0,h.height]:[h.height,0],S.gridLength=h.width;break}}S.gridPadding=0,S.translation.x=0,S.translation.y=0,E==="right"?S.translation.x=e:E==="bottom"&&(S.translation.y=t),S.calculateLayout(),S.update(a)}),await Promise.all(this.series.map(S=>S.update({seriesRect:h})))}};ve([z4(use)],WR.prototype,"enabled",2),ve([y8(["seriesRoot","inset"])],WR.prototype,"inset",2),ve([y8(["seriesRoot","cornerRadius"])],WR.prototype,"cornerRadius",2),ve([m8({changeValue(e,t=[]){let n={axisNode:this.axisGroup,gridNode:this.axisGridGroup,labelNode:this.axisLabelGroup,crossLineLineNode:this.axisCrosslineLineGroup,crossLineRangeNode:this.axisCrosslineRangeGroup,crossLineLabelNode:this.axisCrosslineLabelGroup};for(let a of t)e.includes(a)||(a.detachAxis(n),a.destroy());for(let a of e)t!=null&&t.includes(a)||a.attachAxis(n)}})],WR.prototype,"axes",2),ve([m8({changeValue(e,t){this.onSeriesChange(e,t)}})],WR.prototype,"series",2);var mse=(xt(),D(wt)),{clamp:fse,SliderWidget:b8}=mse._ModuleSupport,vse=class{constructor(e,t){this.ctx=e,this.sliderHandlers=t,this._min=0,this._max=1,this.minRange=.001,this.dragStartX=0,this.ctx=e,this.toolbar=e.proxyInteractionService.createProxyContainer({type:"toolbar",domManagerId:"navigator-toolbar",classList:["ag-charts-proxy-navigator-toolbar"],orientation:"vertical",ariaLabel:{id:"ariaLabelNavigator"}}),this.sliders=[e.proxyInteractionService.createProxyElement({type:"slider",domIndex:1,ariaLabel:{id:"ariaLabelNavigatorMinimum"},parent:this.toolbar,cursor:"ew-resize"}),e.proxyInteractionService.createProxyElement({type:"slider",domIndex:0,ariaLabel:{id:"ariaLabelNavigatorRange"},parent:this.toolbar,cursor:"grab"}),e.proxyInteractionService.createProxyElement({type:"slider",ariaLabel:{id:"ariaLabelNavigatorMaximum"},parent:this.toolbar,cursor:"ew-resize"})];for(let[n,a]of["min","pan","max"].entries()){let h=this.sliders[n];h.step=b8.STEP_HUNDRETH,h.keyboardStep=b8.STEP_ONE,h.orientation="horizontal",h.setPreventsDefault(!1),h.addListener("drag-start",S=>this.onDragStart(h,S,a)),h.addListener("drag-move",S=>this.onDrag(h,S,a)),h.addListener("drag-end",()=>this.updateSliderRatios()),h.addListener("contextmenu",S=>this.onContextMenu(h,S))}this.sliders[0].addListener("change",()=>this.onMinSliderChange()),this.sliders[1].addListener("change",()=>this.onPanSliderChange()),this.sliders[2].addListener("change",()=>this.onMaxSliderChange()),this.updateSliderRatios(),this.updateVisibility(!1)}destroy(){this.toolbar.destroy()}updateVisibility(e){this.toolbar.setHidden(!e)}updateZoom(){let{_min:e,_max:t}=this;if(!(e==null||t==null))return this.ctx.zoomManager.updateZoom("navigator",{x:{min:e,max:t}})}updateBounds(e){this.toolbar.setBounds(e)}updateSliderBounds(e,t){this.sliders[e].setBounds(t)}updateMinMax(e,t){this._min=e,this._max=t,this.updateSliderRatios()}updateSliderRatios(){let{_min:e,_max:t}=this,n=this.ctx.localeManager.t("ariaValuePanRange",{min:e,max:t});this.sliders[0].setValueRatio(e),this.sliders[1].setValueRatio(e,{ariaValueText:n}),this.sliders[2].setValueRatio(t)}toCanvasOffsets(e){return{offsetX:this.dragStartX+e.originDeltaX}}onDragStart(e,t,n){let a=this.toolbar.cssLeft(),h=e.cssLeft();this.dragStartX=a+h+t.offsetX,this.sliderHandlers.onDragStart(n,this.toCanvasOffsets(t))}onDrag(e,t,n){this.sliderHandlers.onDrag(n,this.toCanvasOffsets(t))}onContextMenu(e,{sourceEvent:t,offsetX:n,offsetY:a}){let{x:h,y:S}=this.toolbar.getBounds(),{x:E,y:L}=e.getBounds(),_=n+h+E,N=a+S+L;this.ctx.contextMenuRegistry.dispatchContext("all",{sourceEvent:t,canvasX:_,canvasY:N},{})}onPanSliderChange(){let e=this.sliders[1].getValueRatio(),t=this._max-this._min;this._min=fse(0,e,1-t),this._max=this._min+t,this.updateZoom()}onMinSliderChange(){this._min=this.sliders[0].clampValueRatio(0,this._max-this.minRange),this.updateZoom()}onMaxSliderChange(){this._max=this.sliders[2].clampValueRatio(this._min+this.minRange,1),this.updateZoom()}},C8=(xt(),D(wt)),{Validate:zF,ScenePathChangeDetection:BF,POSITIVE_NUMBER:G4,BOOLEAN:yse,BBox:bse,ExtendedPath2D:Cse}=C8._ModuleSupport,vA=class extends C8._ModuleSupport.Path{constructor(){super(...arguments),this.zIndex=3,this.centerX=0,this.centerY=0,this.width=8,this.height=16,this.cornerRadius=4,this.grip=!0,this.gripPath=new Cse}setCenter(e,t){this.dirtyPath=!0,(this.centerX!==e||this.centerY!==t)&&(this.centerX=e,this.centerY=t,this.markDirty())}static align(e,t,n,a,h,S,E,L,_){let N=e.align(n+h*E)+_,V=N+e.align(n+h*E,h*(L-E))-2*_,q=e.align(a+S/2);e.setCenter(N,q),t.setCenter(V,q)}computeBBox(){let{centerX:e,centerY:t,width:n,height:a}=this,h=e-n/2,S=t-a/2;return new bse(h,S,n,a)}isPointInPath(e,t){return this.getBBox().containsPoint(e,t)}updatePath(){var Y,J,re;let{centerX:e,centerY:t,path:n,gripPath:a,strokeWidth:h,cornerRadius:S,grip:E}=this,L=h/2,_=(re=(J=(Y=this.layerManager)==null?void 0:Y.canvas)==null?void 0:J.pixelRatio)!=null?re:1;n.clear(),a.clear();let N=Math.floor(this.width/2*_)/_,V=Math.floor(this.height/2*_)/_;n.roundRect(e-N+L,t-V+L,2*(N-L),2*(V-L),S);let q=3;if(E)for(let ce=-.5;ce<=.5;ce+=1)for(let he=-1;he<=1;he+=1)a.arc(e+ce*q,t+he*q,1,0,2*Math.PI),a.closePath()}renderFill(e,t){let{stroke:n}=this;super.renderFill(e,t),e.fillStyle=typeof n=="string"?n:"black",e.fill(this.gripPath.getPath2D())}};vA.className="RangeHandle",ve([zF(G4),BF()],vA.prototype,"width",2),ve([zF(G4),BF()],vA.prototype,"height",2),ve([zF(G4),BF()],vA.prototype,"cornerRadius",2),ve([zF(yse),BF()],vA.prototype,"grip",2);var Sse=(xt(),D(wt)),{Path:wse,BBox:T2,ExtendedPath2D:xse,clippedRoundRect:j4,POSITIVE_NUMBER:Mse,Validate:kse,ScenePathChangeDetection:Ase}=Sse._ModuleSupport,V4=class extends wse{constructor(){super(...arguments),this.cornerRadius=4,this.zIndex=2,this.x=0,this.y=0,this.width=200,this.height=30,this.min=0,this.max=1,this.visiblePath=new xse}layout(e,t,n,a,h,S){h=isNaN(h)?this.min:h,S=isNaN(S)?this.max:S,(e!==this.x||t!==this.y||n!==this.width||this.height!==a||h!==this.min||S!==this.max)&&(this.x=e,this.y=t,this.width=n,this.height=a,this.min=h,this.max=S,this.dirtyPath=!0,this.markDirty())}computeBBox(){let{x:e,y:t,width:n,height:a}=this;return new T2(e,t,n,a)}computeVisibleRangeBBox(){let{x:e,y:t,width:n,height:a,min:h,max:S}=this,E=e+n*h,L=e+n*S;return new T2(E,t,L-E,a)}updatePath(){let{path:e,visiblePath:t,x:n,y:a,width:h,height:S,min:E,max:L,strokeWidth:_,cornerRadius:N}=this,V=_/2;e.clear(),t.clear();let q=this.align(n)+V,Y=this.align(a)+V,J=this.align(n,h)-2*V,re=this.align(a,S)-2*V,ce=this.align(n+h*E)+V,he=ce+this.align(n+h*E,h*(L-E))-2*V,me={topLeft:N,topRight:N,bottomRight:N,bottomLeft:N};j4(e,q,Y,J,re,me,new T2(q,Y,ce-q,re)),j4(e,q,Y,J,re,me,new T2(he,Y,J+q-he,re)),j4(t,q,Y,J,re,me,new T2(ce,Y,he-ce,re))}renderStroke(e,t){super.renderStroke(e,t),super.renderStroke(e,this.visiblePath.getPath2D())}};V4.className="RangeMask",ve([kse(Mse),Ase()],V4.prototype,"cornerRadius",2);var GF=(xt(),D(wt)),Dse=class extends GF._ModuleSupport.Group{constructor(e){super({name:"rangeSelectorGroup",zIndex:GF._ModuleSupport.ZIndexMap.NAVIGATOR}),this.x=0,this.y=0,this.width=200,this.height=30,this.lOffset=0,this.rOffset=0,this.background=this.appendChild(new GF._ModuleSupport.TranslatableGroup({name:"navigator-background",zIndex:1})),this.append(e)}layout(e,t,n,a,h,S){this.x=e,this.y=t,this.width=n,this.height=a,this.lOffset=h,this.rOffset=S,this.background.translationX=e,this.background.translationY=t,this.markDirty()}updateBackground(e,t){e!=null&&this.background.removeChild(e),t!=null&&this.background.appendChild(t),this.markDirty()}computeBBox(){let{x:e,y:t,width:n,height:a,lOffset:h,rOffset:S}=this;return new GF._ModuleSupport.BBox(e-h,t,n+(h+S),a)}},{clamp:H4,BaseModuleInstance:Ese,ObserveChanges:W4,Validate:jF,BOOLEAN:Ise,POSITIVE_NUMBER:U4}=I2._ModuleSupport,UR=class extends Ese{constructor(e){super(),this.ctx=e,this.enabled=!1,this.mask=new V4,this.minHandle=new vA,this.maxHandle=new vA,this.maskVisibleRange={id:"navigator-mask-visible-range",getBBox:()=>this.mask.computeVisibleRangeBBox(),toCanvasBBox:()=>this.mask.computeVisibleRangeBBox(),fromCanvasPoint:(t,n)=>({x:t,y:n})},this.height=30,this.cornerRadius=0,this.spacing=10,this.x=0,this.y=0,this.width=0,this.rangeSelector=new Dse([this.mask,this.minHandle,this.maxHandle]),this.destroyFns.push(e.scene.attachNode(this.rangeSelector),this.ctx.localeManager.addListener("locale-changed",()=>this.updateZoom()),this.ctx.layoutManager.registerElement(I2._ModuleSupport.LayoutElement.Navigator,t=>this.onLayoutStart(t)),this.ctx.layoutManager.addListener("layout:complete",t=>this.onLayoutComplete(t)),e.zoomManager.addListener("zoom-change",t=>this.onZoomChange(t))),this.domProxy=new vse(e,this),this.updateGroupVisibility(),this.miniChart=new WR(e)}updateBackground(e,t){var n;(n=this.rangeSelector)==null||n.updateBackground(e,t)}updateGroupVisibility(){let{enabled:e}=this;this.rangeSelector==null||e===this.rangeSelector.visible||(this.rangeSelector.visible=e,this.domProxy.updateVisibility(e),e?this.updateZoom():this.ctx.zoomManager.updateZoom("navigator"))}onLayoutStart(e){if(this.enabled){let{layoutBox:t}=e,n=this.height+this.spacing;t.shrink(n,"bottom"),this.y=t.y+t.height+this.spacing}else this.y=0;if(this.enabled&&this.miniChart){let{top:t,bottom:n}=this.miniChart.computeAxisPadding();e.layoutBox.shrink(t+n,"bottom"),this.y-=n,this.miniChart.inset=this.mask.strokeWidth/2,this.miniChart.cornerRadius=this.mask.cornerRadius}}async onLayoutComplete(e){var S;let{x:t,width:n}=e.series.rect,{y:a,height:h}=this;if(this.domProxy.updateVisibility(this.enabled),this.enabled){let{_min:E,_max:L}=this.domProxy;this.layoutNodes(t,a,n,h,E,L),this.domProxy.updateBounds({x:t,y:a,width:n,height:h})}this.x=t,this.width=n,await((S=this.miniChart)==null?void 0:S.layout(n,h))}canDrag(){let e=I2._ModuleSupport.InteractionState.Default|I2._ModuleSupport.InteractionState.Animation|I2._ModuleSupport.InteractionState.ZoomDrag;return this.enabled&&this.ctx.interactionManager.getState()&e}onDragStart(e,{offsetX:t}){this.canDrag()&&(e==="pan"&&(this.panStart=(t-this.x)/this.width-this.domProxy._min),this.ctx.zoomManager.fireZoomPanStartEvent("navigator"))}onDrag(e,{offsetX:t}){if(!this.canDrag())return;let{panStart:n,x:a,width:h}=this,{minRange:S}=this.domProxy,{_min:E,_max:L}=this.domProxy,_=(t-a)/h;if(e==="min")E=H4(0,_,L-S);else if(e==="max")L=H4(E+S,_,1);else if(e==="pan"&&n!=null){let N=L-E;E=H4(0,_-n,1-N),L=E+N}this.domProxy._min=E,this.domProxy._max=L,this.updateZoom()}onZoomChange(e){let{x:t}=e;if(!t)return;let{x:n,y:a,width:h,height:S}=this,{min:E,max:L}=t;this.domProxy.updateMinMax(E,L),this.layoutNodes(n,a,h,S,E,L)}layoutNodes(e,t,n,a,h,S){let{rangeSelector:E,mask:L,minHandle:_,maxHandle:N}=this;L.layout(e,t,n,a,h,S),E.layout(e,t,n,a,_.width/2,N.width/2),vA.align(_,N,e,t,n,a,h,S,L.strokeWidth/2),h+(S-h)/2<.5?(_.zIndex=3,N.zIndex=4):(_.zIndex=4,N.zIndex=3),[_,this.maskVisibleRange,N].forEach((V,q)=>{let Y=V.getBBox(),J={x:Y.x-e,y:Y.y-t,height:Y.height,width:Y.width};this.domProxy.updateSliderBounds(q,J)})}updateZoom(){this.enabled&&this.domProxy.updateZoom()}updateData(e){var t;return(t=this.miniChart)==null?void 0:t.updateData(e)}async processData(e){var t;if(this.miniChart)return(t=this.miniChart)==null?void 0:t.processData(e)}};ve([W4((e,t,n)=>{e.updateBackground(n==null?void 0:n.root,t==null?void 0:t.root)})],UR.prototype,"miniChart",2),ve([jF(Ise),W4((e,t)=>{e.ctx.zoomManager.setNavigatorEnabled(!!t),e.updateGroupVisibility()})],UR.prototype,"enabled",2),ve([jF(U4)],UR.prototype,"height",2),ve([jF(U4),W4((e,t)=>{e.mask.cornerRadius=t})],UR.prototype,"cornerRadius",2),ve([jF(U4)],UR.prototype,"spacing",2);var{DEFAULT_FONT_FAMILY:Tse,DEFAULT_LABEL_COLOUR:Rse,DEFAULT_INVERTED_BACKGROUND_COLOUR:Pse,DEFAULT_BACKGROUND_COLOUR:S8,DEFAULT_NAVIGATOR_STROKE:K4}=lse._ModuleSupport.ThemeSymbols,Lse={type:"root",optionsKey:"navigator",packageType:"enterprise",chartTypes:["cartesian"],moduleFactory:e=>new UR(e),removable:!1,themeTemplate:{navigator:{enabled:!1,height:18,cornerRadius:4,mask:{fill:Pse,fillOpacity:.1,stroke:K4,strokeWidth:1},minHandle:{fill:S8,stroke:K4,strokeWidth:1,width:12,height:24,cornerRadius:4},maxHandle:{fill:S8,stroke:K4,strokeWidth:1,width:12,height:24,cornerRadius:4},miniChart:{enabled:!1,label:{color:Rse,fontSize:10,fontFamily:Tse,spacing:5},padding:{top:0,bottom:0}}}}},w8=(xt(),D(wt)),Ose=(xt(),D(wt)),{AND:_se,ARRAY:x8,FUNCTION:Fse,NUMBER:Nse,OR:zse,ToolbarButtonProperties:Bse,Validate:Gse}=Ose._ModuleSupport,M8=class extends Bse{};ve([Gse(zse(Nse,_se(x8,x8.restrict({length:2})),Fse))],M8.prototype,"value",2);var{BOOLEAN:jse,OBJECT:Vse,ChartAxisDirection:q4,LayoutElement:Hse,PropertiesArray:Wse,Toolbar:Use,Validate:k8}=w8._ModuleSupport,Y4=class extends w8._ModuleSupport.BaseModuleInstance{constructor(e){super(),this.ctx=e,this.enabled=!1,this.buttons=new Wse(M8),this.verticalSpacing=10,this.toolbar=new Use(this.ctx.localeManager),this.toolbar.addClass("ag-charts-range-buttons"),e.domManager.addChild("canvas-overlay","range-buttons",this.toolbar.getElement()),this.destroyFns.push(this.toolbar.addToolbarListener("button-pressed",this.onButtonPress.bind(this)),e.layoutManager.registerElement(Hse.ToolbarBottom,this.onLayoutStart.bind(this)),e.zoomManager.addListener("zoom-change",this.onZoomChanged.bind(this)),this.teardown.bind(this))}teardown(){this.ctx.domManager.removeChild("canvas-overlay","range-buttons"),this.toolbar.destroy()}onLayoutStart(e){let{buttons:t,ctx:n,enabled:a,toolbar:h,verticalSpacing:S}=this,{layoutBox:E}=e;if(!a||!n.zoomManager.isZoomEnabled()){h.setHidden(!0);return}h.setHidden(!1),h.updateButtons(t);let L=h.getBounds().height;h.setBounds({x:E.x,y:E.y+E.height-L,width:E.width,height:L}),E.shrink({bottom:L+S})}onZoomChanged(){this.toolbar.clearActiveButton()}onButtonPress({button:{index:e}}){let{zoomManager:t}=this.ctx,n=this.buttons.at(e);if(!n)return;let{value:a}=n;typeof a=="number"?t.extendToEnd("zoom-buttons",q4.X,a):Array.isArray(a)?t.updateWith("zoom-buttons",q4.X,()=>a):typeof a=="function"&&t.updateWith("zoom-buttons",q4.X,a),this.toolbar.toggleActiveButtonByIndex(e)}};ve([k8(jse)],Y4.prototype,"enabled",2),ve([k8(Vse)],Y4.prototype,"buttons",2);var A8=1e3*60*60*24,X4=A8*30,Kse=A8*365,qse={type:"root",optionsKey:"ranges",packageType:"enterprise",chartTypes:["cartesian"],moduleFactory:e=>new Y4(e),themeTemplate:{ranges:{enabled:!1,buttons:[{label:"toolbarRange1Month",ariaLabel:"toolbarRange1MonthAria",value:X4},{label:"toolbarRange3Months",ariaLabel:"toolbarRange3MonthsAria",value:3*X4},{label:"toolbarRange6Months",ariaLabel:"toolbarRange6MonthsAria",value:6*X4},{label:"toolbarRangeYearToDate",ariaLabel:"toolbarRangeYearToDateAria",value:(e,t)=>[new Date(`${new Date(t).getFullYear()}-01-01`).getTime(),t]},{label:"toolbarRange1Year",ariaLabel:"toolbarRange1YearAria",value:Kse},{label:"toolbarRangeAll",ariaLabel:"toolbarRangeAllAria",value:(e,t)=>[e,t]}]}}},xxe=(xt(),D(wt)),D8=(xt(),D(wt)),E8=class OO extends D8._ModuleSupport.BaseModuleInstance{constructor(t){super(),this.ctx=t,this.activeSections=new Set,this.sectionButtons={annotations:[],chartToolbar:[]}}getSharedToolbar(t){return this.sharedToolbar||this.createSharedToolbar(),this.toolbarWithSection(t)}createSharedToolbar(){this.sharedToolbar=new D8._ModuleSupport.Toolbar(this.ctx.localeManager,"vertical"),this.sharedToolbar.addClass("ag-charts-shared-toolbar"),this.ctx.domManager.addChild("canvas-overlay","shared-toolbar",this.sharedToolbar.getElement()),this.destroyFns.push(()=>{var t;(t=this.sharedToolbar)==null||t.destroy(),this.sharedToolbar=void 0,this.ctx.domManager.removeChild("canvas-overlay","shared-toolbar")})}toolbarWithSection(t){let n=this.sharedToolbar,a={layout:h=>{if(this.firstLayoutSection!=null&&this.firstLayoutSection!==t&&this.activeSections.has(this.firstLayoutSection))return;this.firstLayoutSection=t;let S=n.getBounds().width;n.setBounds({x:h.x,y:h.y,width:S}),h.shrink({left:S+n.horizontalSpacing})},addToolbarListener:(h,S)=>n.addToolbarListener(h,E=>{let L=this.getSectionIndex(t,E.button.index);if(L<0)return;let _=et(pe({},E),{button:this.sectionButtons[t][L]});S(_)}),updateButtons:h=>{this.sectionButtons[t]=h;let S=OO.SECTION_ORDER.flatMap(E=>this.sectionButtons[E]);n.updateButtons(S)},updateButtonByIndex:(h,S)=>{n.updateButtonByIndex(this.getIndex(t,h),S)},toggleActiveButtonByIndex:h=>{n.toggleActiveButtonByIndex(this.getIndex(t,h))},toggleButtonEnabledByIndex:(h,S)=>{n.toggleButtonEnabledByIndex(this.getIndex(t,h),S)},setHidden:h=>{h?this.activeSections.delete(t):this.activeSections.add(t);let S=0;for(let E of OO.SECTION_ORDER){if(E!==t){S+=this.sectionButtons[E].length;continue}for(let L of this.sectionButtons[t].keys())n.setButtonHiddenByIndex(S+L,h)}},destroy:()=>{a.setHidden(!0),this.activeSections.size===0&&this.destroy()},clearActiveButton:n.clearActiveButton.bind(n),addListener:n.addListener.bind(n),removeListener:n.removeListener.bind(n)};return a.setHidden(!1),a}getIndex(t,n){let a=0;for(let h of OO.SECTION_ORDER){if(h===t)return a+n;a+=this.sectionButtons[h].length}return-1}getSectionIndex(t,n){let a=0;for(let h of OO.SECTION_ORDER){if(h===t)return n>=a+this.sectionButtons[t].length?-1:n-a;a+=this.sectionButtons[h].length}return-1}};E8.SECTION_ORDER=["chartToolbar","annotations"];var Yse=E8,Xse={type:"context",contextKey:"sharedToolbar",packageType:"enterprise",chartTypes:["cartesian"],moduleFactory:e=>new Yse(e)},KR=(xt(),D(wt)),Z4=(xt(),D(wt)),{CachedTextMeasurerPool:R2,ZIndexMap:Zse,LayoutElement:$se,Validate:qh,BaseProperties:Qse,OBJECT:qR,BOOLEAN:Jse,STRING:YR,COLOR_STRING:ele,RATIO:tle,valueProperty:ile,TextUtils:nle,Group:ale,Label:P2,Rect:ole,Text:xd}=Z4._ModuleSupport,I8={ohlc:62,candlestick:62,"hollow-candlestick":62,line:96,"step-line":96,hlc:184,"high-low":800},rle={up:"positive",down:"negative"},sle={hlc:"altNeutral"},$4=class extends Qse{constructor(){super(...arguments),this.fill="black",this.fillOpacity=1}};ve([qh(ele)],$4.prototype,"fill",2),ve([qh(tle)],$4.prototype,"fillOpacity",2);var Xg=class extends Z4._ModuleSupport.BaseModuleInstance{constructor(e){super(),this.ctx=e,this.enabled=!1,this.openKey=void 0,this.highKey=void 0,this.lowKey=void 0,this.closeKey=void 0,this.volumeKey=void 0,this.title=new P2,this.positive=new P2,this.negative=new P2,this.neutral=new P2,this.altNeutral=new P2,this.background=new $4,this.layoutStyle="block",this.id="status-bar",this.data=void 0,this.layer=new ale({name:"StatusBar",zIndex:Zse.STATUS_BAR}),this.labelGroup=this.layer.appendChild(new Z4._ModuleSupport.TranslatableGroup),this.backgroundNode=this.labelGroup.appendChild(new ole),this.labels=[{label:"O",configuration:2,title:this.labelGroup.appendChild(new xd),value:this.labelGroup.appendChild(new xd),id:"openValue",key:"openKey",domain:void 0,formatter:new Intl.NumberFormat("en-US",{minimumFractionDigits:2,maximumFractionDigits:2})},{label:"H",configuration:16,title:this.labelGroup.appendChild(new xd),value:this.labelGroup.appendChild(new xd),id:"highValue",key:"highKey",domain:void 0,formatter:new Intl.NumberFormat("en-US",{minimumFractionDigits:2,maximumFractionDigits:2})},{label:"H",configuration:256,title:this.labelGroup.appendChild(new xd),value:this.labelGroup.appendChild(new xd),style:"neutral",id:"highValue",key:"highKey",domain:void 0,formatter:new Intl.NumberFormat("en-US",{minimumFractionDigits:2,maximumFractionDigits:2})},{label:"L",configuration:8,title:this.labelGroup.appendChild(new xd),value:this.labelGroup.appendChild(new xd),id:"lowValue",key:"lowKey",domain:void 0,formatter:new Intl.NumberFormat("en-US",{minimumFractionDigits:2,maximumFractionDigits:2})},{label:"L",configuration:512,title:this.labelGroup.appendChild(new xd),value:this.labelGroup.appendChild(new xd),style:"neutral",id:"lowValue",key:"lowKey",domain:void 0,formatter:new Intl.NumberFormat("en-US",{minimumFractionDigits:2,maximumFractionDigits:2})},{label:"C",configuration:4,title:this.labelGroup.appendChild(new xd),value:this.labelGroup.appendChild(new xd),id:"closeValue",key:"closeKey",domain:void 0,formatter:new Intl.NumberFormat("en-US",{minimumFractionDigits:2,maximumFractionDigits:2})},{label:"C",configuration:128,title:this.labelGroup.appendChild(new xd),value:this.labelGroup.appendChild(new xd),id:"closeValue",key:"closeKey",style:"neutral",domain:void 0,formatter:new Intl.NumberFormat("en-US",{minimumFractionDigits:2,maximumFractionDigits:2})},{label:"",configuration:64,title:this.labelGroup.appendChild(new xd),value:this.labelGroup.appendChild(new xd),style:"neutral",id:"closeValue",key:"closeKey",domain:void 0,formatter:new Intl.NumberFormat("en-US",{notation:"compact",minimumFractionDigits:2,maximumFractionDigits:2})},{label:"Vol",configuration:32,title:this.labelGroup.appendChild(new xd),value:this.labelGroup.appendChild(new xd),id:"volumeValue",key:"volumeKey",domain:void 0,formatter:new Intl.NumberFormat("en-US",{notation:"compact",minimumFractionDigits:2,maximumFractionDigits:2})}],this.highlightManager=e.highlightManager,this.labelGroup.visible=!1,this.destroyFns.push(e.scene.attachNode(this.layer),e.layoutManager.registerElement($se.Overlay,t=>this.startPerformLayout(t)),e.layoutManager.addListener("layout:complete",t=>this.onLayoutComplete(t)),e.highlightManager.addListener("highlight-change",()=>this.updateHighlight()))}async processData(e){if(!this.enabled||this.data==null)return;let t=[];for(let h of this.labels){let{id:S,key:E}=h,L=this[E];L==null?h.domain=void 0:t.push(ile(L,"number",{id:S}))}if(t.length===0)return;let{processedData:n,dataModel:a}=await e.request(this.id,this.data,{props:t});for(let h of this.labels){let{id:S,key:E}=h;this[E]!=null&&(h.domain=a.getDomain(this,S,"value",n))}}startPerformLayout(e){var Y;if(this.labelGroup.translationX=0,this.labelGroup.translationY=0,!this.enabled)return;let{layoutBox:t}=e,n=4,a=12,h=0,S=8;this.labelGroup.translationY=t.y+h;let E=Math.max(this.title.fontSize,this.positive.fontSize,this.negative.fontSize),L=nle.getLineHeight(E),_=(Y=I8[this.getChartType()])!=null?Y:0,N=0,V,q="alphabetic";if(this.layoutStyle==="block")t.shrink(h+L+S,"top"),V=E+(L-E)/2;else{let{title:J}=this.ctx.chartService;if(q="top",V=h+J.padding,J.enabled){let re=J.node.getBBox();N=re.x+re.width+a}else N=J.padding}for(let{label:J,configuration:re,title:ce,value:he,domain:me,formatter:we}of this.labels){if(me==null||!(_&re)){ce.visible=!1,he.visible=!1;continue}let Me=Math.max(R2.measureText(we.format(me[0]),{font:this.positive.getFont(),textBaseline:q,textAlign:"left"}).width,R2.measureText(we.format(me[1]),{font:this.positive.getFont(),textBaseline:q,textAlign:"left"}).width,R2.measureText(we.format(me[0]),{font:this.negative.getFont(),textBaseline:q,textAlign:"left"}).width,R2.measureText(we.format(me[1]),{font:this.negative.getFont(),textBaseline:q,textAlign:"left"}).width);ce.visible=!0,he.visible=!0;let be=R2.measureText(J,{font:this.title.getFont(),textBaseline:q,textAlign:"left"});ce.setFont(this.title),ce.fill=this.title.color,ce.text=J,ce.textBaseline=q,ce.y=V,ce.x=N,N+=be.width+n,he.textBaseline=q,he.y=V,he.x=N,N+=Me+a}this.backgroundNode.x=0,this.backgroundNode.y=0,this.backgroundNode.width=N-a,this.backgroundNode.height=L+h+S,this.backgroundNode.fill=this.background.fill,this.backgroundNode.fillOpacity=this.background.fillOpacity}onLayoutComplete(e){this.labelGroup.translationX=e.series.rect.x,this.updateHighlight()}updateHighlight(){var h,S,E,L;if(!this.enabled)return;let e=this.highlightManager.getActiveHighlight(),t=(S=e==null?void 0:e.datum)!=null?S:(h=this.data)==null?void 0:h.at(-1);if(t==null){this.labelGroup.visible=!1;return}this.labelGroup.visible=!0;let n=e==null?void 0:e.itemId,a=n!=null?rle[n]:void 0;a==null&&this.openKey!=null&&this.closeKey!=null&&(t[this.openKey]<t[this.closeKey]?a="positive":a="negative");for(let{domain:_,value:N,key:V,formatter:q,style:Y}of this.labels){if(_==null)continue;let J=(E=Y!=null?Y:a)!=null?E:"neutral";J==="neutral"&&(J=(L=sle[this.getChartType()])!=null?L:J);let re=this[V],ce=re!=null?t==null?void 0:t[re]:void 0;N.setFont(this[J]),N.fill=this[J].color,N.text=typeof ce=="number"?q.format(ce):""}}getChartType(){var t,n;let e=(n=(t=this.ctx.chartService.publicApi)==null?void 0:t.getOptions())==null?void 0:n.chartType;return(e==null||I8[e]==null)&&(e="candlestick"),e}};ve([qh(Jse)],Xg.prototype,"enabled",2),ve([qh(YR,{optional:!0})],Xg.prototype,"openKey",2),ve([qh(YR,{optional:!0})],Xg.prototype,"highKey",2),ve([qh(YR,{optional:!0})],Xg.prototype,"lowKey",2),ve([qh(YR,{optional:!0})],Xg.prototype,"closeKey",2),ve([qh(YR,{optional:!0})],Xg.prototype,"volumeKey",2),ve([qh(qR)],Xg.prototype,"title",2),ve([qh(qR)],Xg.prototype,"positive",2),ve([qh(qR)],Xg.prototype,"negative",2),ve([qh(qR)],Xg.prototype,"neutral",2),ve([qh(qR)],Xg.prototype,"altNeutral",2),ve([qh(qR)],Xg.prototype,"background",2),ve([qh(YR)],Xg.prototype,"layoutStyle",2);var lle={type:"root",identifier:"status-bar",optionsKey:"statusBar",packageType:"enterprise",chartTypes:["cartesian"],moduleFactory:e=>new Xg(e),themeTemplate:{statusBar:{enabled:!1,layoutStyle:KR._ModuleSupport.ThemeSymbols.DEFAULT_CAPTION_LAYOUT_STYLE,title:{color:KR._ModuleSupport.ThemeSymbols.DEFAULT_LABEL_COLOUR},positive:{color:KR._ModuleSupport.ThemeSymbols.PALETTE_UP_STROKE},negative:{color:KR._ModuleSupport.ThemeSymbols.PALETTE_DOWN_STROKE},neutral:{color:KR._ModuleSupport.ThemeSymbols.PALETTE_NEUTRAL_STROKE},background:{fill:KR._ModuleSupport.ThemeSymbols.DEFAULT_BACKGROUND_COLOUR,fillOpacity:.5},altNeutral:{color:"gray"}}}},cle=(xt(),D(wt)),{BOOLEAN:Q4,STRING:dle,UNION:ule,BaseProperties:hle,CartesianAxis:T8,ChartUpdateType:R8,isDate:gle,isDefined:ple,isFiniteNumber:VF,unique:mle,ObserveChanges:L2,TooltipManager:fle,Validate:O2,Logger:vle}=cle._ModuleSupport,TE=class extends hle{constructor(e){super(),this.moduleContext=e,this.enabled=!1,this.axes="x",this.nodeInteraction=!0,this.zoom=!0}updateSiblings(e){let{syncManager:t}=this.moduleContext;for(let n of t.getGroupSiblings(e!=null?e:this.groupId))this.updateChart(n)}updateChart(e,t=R8.UPDATE_DATA){e.ctx.updateService.update(t,{skipSync:!0})}enabledZoomSync(){let{syncManager:e,zoomManager:t}=this.moduleContext;this.disableZoomSync=t.addListener("zoom-change",()=>{var n;for(let a of e.getGroupSiblings(this.groupId))(n=a.modulesManager.getModule("sync"))!=null&&n.zoom&&a.ctx.zoomManager.updateZoom("sync",this.mergeZoom(a))})}enabledNodeInteractionSync(){let{highlightManager:e,syncManager:t}=this.moduleContext;this.disableNodeInteractionSync=e.addListener("highlight-change",n=>{var a,h,S,E,L,_,N,V,q,Y,J,re;for(let ce of t.getGroupSiblings(this.groupId))if((a=ce.modulesManager.getModule("sync"))!=null&&a.nodeInteraction){if(!((h=n.currentHighlight)!=null&&h.datum)){ce.ctx.highlightManager.updateHighlight(ce.id),ce.ctx.tooltipManager.removeTooltip(ce.id);continue}for(let he of ce.axes){let me=this.axes==="xy"?"x":this.axes;if(!T8.is(he)||he.direction!==me)continue;let we=ce.series.map(Me=>{let be=Me.getKeys(he.direction);if(he.keys.length&&!he.keys.some(lt=>be.includes(lt)))return;let{nodeData:Le}=Me.contextNodeData;if(!(Le!=null&&Le.length))return;let Fe=Le[0][`${he.direction}Key`],je=n.currentHighlight.datum[Fe],Xe=gle(je);Xe&&(je=je.getTime());let nt=Le.find(lt=>{let ot=lt.datum[Fe];return Xe?ot.getTime()===je:ot===je});return nt?{series:Me,nodeDatum:nt}:null}).filter(ple);if(we.length<2&&((S=we[0])==null?void 0:S.nodeDatum)!==ce.ctx.highlightManager.getActiveHighlight()){let{series:Me,nodeDatum:be}=(E=we[0])!=null?E:{};if(ce.ctx.highlightManager.updateHighlight(ce.id,be),be){let Le=(V=(N=(L=be.midPoint)==null?void 0:L.x)!=null?N:(_=be.point)==null?void 0:_.x)!=null?V:0,Fe=(re=(J=(q=be.midPoint)==null?void 0:q.y)!=null?J:(Y=be.point)==null?void 0:Y.y)!=null?re:0,je=fle.makeTooltipMeta({type:"hover",canvasX:Le,canvasY:Fe},be);delete je.lastPointerEvent,ce.ctx.tooltipManager.updateTooltip(ce.id,je,Me.getTooltipContent(be))}else ce.ctx.tooltipManager.removeTooltip(ce.id);this.updateChart(ce,R8.SERIES_UPDATE)}}}})}getSyncedDomain(e){if(!T8.is(e)||this.axes!=="xy"&&this.axes!==e.direction)return;let{syncManager:t}=this.moduleContext,n=t.getGroup(this.groupId),[{axes:a}]=n,{direction:h,min:S,max:E,nice:L,reverse:_}=e;for(let N of a)if(h===N.direction&&(L!==N.nice||_!==N.reverse||S!==N.min&&(VF(S)||VF(N.min))||E!==N.max&&(VF(E)||VF(N.max)))){vle.warnOnce("To allow synchronization, ensure that all charts have matching min, max, nice, and reverse properties on the synchronized axes."),this.enabled=!1;return}return mle(n.flatMap(N=>N.series).filter(N=>{if(N.visible){let V=N.getKeys(e.direction);return e.keys.length?e.keys.some(q=>V.includes(q)):!0}}).flatMap(N=>N.getDomain(e.direction)))}mergeZoom(e){var a,h;let{zoomManager:t}=this.moduleContext;if(this.axes==="xy")return t.getZoom();let n=(a=e.ctx.zoomManager.getZoom())!=null?a:{};return n[this.axes]=(h=t.getZoom())==null?void 0:h[this.axes],n}onEnabledChange(){let{syncManager:e}=this.moduleContext;this.enabled?e.subscribe(this.groupId):e.unsubscribe(this.groupId),this.updateSiblings(),this.onNodeInteractionChange(),this.onZoomChange()}onGroupIdChange(e,t){if(!this.enabled||e===t)return;let{syncManager:n}=this.moduleContext;n.unsubscribe(t),n.subscribe(e),this.updateSiblings(t),this.updateSiblings(e)}onAxesChange(){if(!this.enabled)return;let{syncManager:e}=this.moduleContext;this.updateChart(e.getChart())}onNodeInteractionChange(){var e;this.enabled&&this.nodeInteraction?this.enabledNodeInteractionSync():(e=this.disableNodeInteractionSync)==null||e.call(this)}onZoomChange(){var e;this.enabled&&this.zoom?this.enabledZoomSync():(e=this.disableZoomSync)==null||e.call(this)}destroy(){var t;let{syncManager:e}=this.moduleContext;e.unsubscribe(this.groupId),this.updateSiblings(),(t=this.disableZoomSync)==null||t.call(this)}};TE.className="Sync",ve([O2(Q4),L2(e=>e.onEnabledChange())],TE.prototype,"enabled",2),ve([O2(dle,{optional:!0}),L2((e,t,n)=>e.onGroupIdChange(t,n))],TE.prototype,"groupId",2),ve([O2(ule(["x","y","xy"],"an axis")),L2(e=>e.onAxesChange())],TE.prototype,"axes",2),ve([O2(Q4),L2(e=>e.onNodeInteractionChange())],TE.prototype,"nodeInteraction",2),ve([O2(Q4),L2(e=>e.onZoomChange())],TE.prototype,"zoom",2);var yle={type:"root",optionsKey:"sync",packageType:"enterprise",chartTypes:["cartesian"],moduleFactory:e=>new TE(e),themeTemplate:{sync:{enabled:!1}}},Pw=(xt(),D(wt)),P8=(xt(),D(wt)),{COLOR_STRING:ble,RATIO:Cle,Validate:L8}=P8._ModuleSupport,HF=class extends P8._ModuleSupport.Rect{constructor(){super(...arguments),this.fill="rgb(33, 150, 243)",this.fillOpacity=.2}};HF.className="ZoomRect",ve([L8(ble)],HF.prototype,"fill",2),ve([L8(Cle)],HF.prototype,"fillOpacity",2);var J4=(xt(),D(wt)),Sle=(xt(),D(wt)),{clamp:wle,isNumberEqual:O8,round:_8}=Sle._ModuleSupport,tr={min:0,max:1},eG="end",tG="middle",WF=(e,t=tr.min,n=tr.max)=>wle(t,e,n);function iG(){return{x:pe({},tr),y:pe({},tr)}}function vc(e){return e.x.max-e.x.min}function Zg(e){return e.y.max-e.y.min}function F8(e,t,n=1e-10){return O8(e.min,t.min,n)&&O8(e.max,t.max,n)}function nG(e,t,n){return F8(e.x,t.x,n)&&F8(e.y,t.y,n)}function aG(e,t,n){let a=_8(vc(e),10)<=t,h=_8(Zg(e),10)<=n;return a||h}function du(e){var t,n,a,h,S,E,L,_;return{x:{min:(n=(t=e==null?void 0:e.x)==null?void 0:t.min)!=null?n:tr.min,max:(h=(a=e==null?void 0:e.x)==null?void 0:a.max)!=null?h:tr.max},y:{min:(E=(S=e==null?void 0:e.y)==null?void 0:S.min)!=null?E:tr.min,max:(_=(L=e==null?void 0:e.y)==null?void 0:L.max)!=null?_:tr.max}}}function Lw(e,t,n){if(!e)return{x:0,y:0};let a=WF(t-e.x,0,e.x+e.width),h=WF(n-e.y,0,e.y+e.height),S=1/e.width*a,E=1-1/e.height*h;return{x:WF(S),y:WF(E)}}function RE(e,t,n){return{x:{min:e.x.min+t,max:e.x.max+t},y:{min:e.y.min+n,max:e.y.max+n}}}function N8(e,t,n){return{x:{min:e.x.min,max:e.x.min+vc(e)*t},y:{min:e.y.min,max:e.y.min+Zg(e)*n}}}function z8(e,t,n){let a=vc(e),h=Zg(e),S=e.x.min+a/2,E=e.y.min+h/2;return{x:{min:S-a*t/2,max:S+a*t/2},y:{min:E-h*n/2,max:E+h*n/2}}}function Cy(e,t,n,a){let{min:h,max:S}=t,E=h+(S-h)/2,L=e.max-e.min;switch(n){case"start":return{min:h,max:t.min+L};case"end":return{min:t.max-L,max:S};case"middle":return{min:E-L/2,max:E+L/2};case"pointer":return oG(e,t,a!=null?a:E);default:return{min:h,max:S}}}function oG(e,t,n){let a=e.max-e.min,h=t.max-t.min,S=n*(1-(h-a)),E=n-S,L=e.min+E,_=e.max+E;return{min:L,max:_}}function xle(e,t,n){return{x:{min:e.x.min*t,max:e.x.max*t},y:{min:e.y.min*n,max:e.y.max*n}}}function Wf(e){let t=iG();return t.x=UF(e.x),t.y=UF(e.y),t}function UF(e){let t=e.max-e.min,n=e.max>tr.max?tr.max-t:e.min,a=e.min<tr.min?t:e.max;return n=Math.max(tr.min,n),a=Math.min(tr.max,a),{min:n,max:a}}function B8({min:e,max:t},n,a){if(t===n.max)e=t-a;else if(e===n.min)t=e+a;else{let h=e+(t-e)/2;e=h-a/2,t=h+a/2}return{min:e,max:t}}var Mle=class{update(e,t,n,a,h,S){var E;return(E=this.oldZoom)!=null||(this.oldZoom=du(t===J4._ModuleSupport.ChartAxisDirection.X?et(pe({},h),{x:S}):et(pe({},h),{y:S}))),this.updateCoords(e.regionX,e.regionY),this.updateZoom(t,n,a)}stop(){this.coords=void 0,this.oldZoom=void 0}updateCoords(e,t){this.coords?(this.coords.x2=e,this.coords.y2=t):this.coords={x1:e,y1:t,x2:e,y2:t}}updateZoom(e,t,n){let{coords:a,oldZoom:h}=this,S=du(h);if(!a||!h)return e===J4._ModuleSupport.ChartAxisDirection.X?S.x:S.y;let E=Lw(n,a.x1,a.y1),L=Lw(n,a.x2,a.y2);if(e===J4._ModuleSupport.ChartAxisDirection.X){let N=(L.x-E.x)*vc(h);return S.x.max+=N,S.x=Cy(S.x,h.x,t,E.x),S=Wf(S),S.x}let _=(L.y-E.y)*Zg(h);return S.y.max-=_,S.y=Cy(S.y,h.y,t,E.y),S=Wf(S),S.y}},rG="zoom-action",sG="pan-action",kle=class{constructor(e,t,n,a,h){this.contextMenuRegistry=e,this.zoomManager=t,this.getModuleProperties=n,this.getRect=a,this.updateZoom=h}registerActions(e,t){if(!e)return;let{contextMenuRegistry:n}=this,a=n.registerDefaultAction({id:rG,type:"series-area",label:"contextMenuZoomToCursor",action:this.onZoomToHere.bind(this)}),h=n.registerDefaultAction({id:sG,type:"series-area",label:"contextMenuPanToCursor",action:this.onPanToHere.bind(this)});return this.toggleActions(t),()=>{a(),h()}}toggleActions(e){let{contextMenuRegistry:t}=this,{minRatioX:n,minRatioY:a}=this.getModuleProperties();aG(e,n,a)?t.disableAction(rG):t.enableAction(rG),nG(e,iG())?t.disableAction(sG):t.enableAction(sG)}computeOrigin(e){let t=this.getRect(),{enabled:n}=this.getModuleProperties();if(!n||!t||!(e!=null&&e.target)||!(e instanceof MouseEvent))return;let a={x:0,y:0,width:t.width,height:t.height};return Lw(a,e.offsetX,e.offsetY)}onZoomToHere({event:e}){let t=this.computeOrigin(e);if(!t)return;let{isScalingX:n,isScalingY:a,minRatioX:h,minRatioY:S}=this.getModuleProperties(),E=du(this.zoomManager.getZoom()),L=t.x*vc(E),_=t.y*Zg(E),N=tr.max-tr.min,V=N/2,q={x:{min:t.x-V,max:t.x+V},y:{min:t.y-V,max:t.y+V}};q=z8(q,n?h:N,a?S:N),q=RE(q,E.x.min-t.x+L,E.y.min-t.y+_),this.updateZoom(Wf(q))}onPanToHere({event:e}){let t=this.computeOrigin(e);if(!t)return;let n=du(this.zoomManager.getZoom()),a=vc(n),h=Zg(n),S=t.x*a,E=t.y*h,L=(tr.max-tr.min)/2,_={x:{min:t.x-L,max:t.x+L},y:{min:t.y-L,max:t.y+L}};_=z8(_,a,h),_=RE(_,n.x.min-t.x+S,n.y.min-t.y+E),this.updateZoom(Wf(_))}},lG=(xt(),D(wt)),{BBoxValues:Ale}=lG._ModuleSupport,Dle=class{constructor(e){this.axesHandlers=e,this.axes=[]}initAxis(e,t,n,a){let{X:h,Y:S}=lG._ModuleSupport.ChartAxisDirection,E={[h]:"ew-resize",[S]:"ns-resize"}[a],L="afterend",_=e.proxyInteractionService.createProxyElement({type:"region",domManagerId:t,where:L});return _.setCursor(E),_.addListener("drag-start",()=>n.onDragStart(t,a)),_.addListener("drag-move",N=>n.onDrag(N)),_.addListener("drag-end",n.onDragEnd),_.addListener("dblclick",()=>n.onDoubleClick(t,a)),{axisId:t,div:_}}destroy(){this.axes.forEach(e=>e.div.destroy())}update(e){let{X:t,Y:n}=lG._ModuleSupport.ChartAxisDirection,a=[...e.axisManager.getAxisContext(t),...e.axisManager.getAxisContext(n)],{removed:h,added:S}=this.diffAxisIds(a);h.length>0&&(this.axes=this.axes.filter(E=>h.includes(E.axisId)?(E.div.destroy(),!1):!0));for(let E of S){let{axisId:L,direction:_}=E;this.axes.push(this.initAxis(e,L,this.axesHandlers,_))}for(let E of this.axes){let _=a.filter(N=>N.axisId===E.axisId)[0].getCanvasBounds();E.div.setHidden(Ale.isEmpty(_)),_!==void 0&&E.div.setBounds(_)}}diffAxisIds(e){let t=this.axes.map(S=>S.axisId),n=e.map(S=>S.axisId),a=t.filter(S=>!n.includes(S)),h=e.filter(S=>!t.includes(S.axisId));return{removed:a,added:h}}},Ele=(xt(),D(wt)),G8=16,Ile={off:1,short:.01,long:.002},Tle=class{constructor(){this.deceleration=1,this.zoomCoordsHistoryIndex=0,this.coordsHistory=[]}get decelerationValue(){var t;let{deceleration:e}=this;return Math.max(typeof e=="number"?e:(t=Ile[e])!=null?t:1,1e-4)}addListener(e,t){return this.onUpdate=t,()=>{this.onUpdate=void 0}}stopInteractions(){this.inertiaHandle!=null&&(cancelAnimationFrame(this.inertiaHandle),this.inertiaHandle=void 0)}update(e){var S,E;this.updateCoords(e.regionX,e.regionY);let{x1:t=0,y1:n=0,x2:a=0,y2:h=0}=(S=this.coords)!=null?S:{};(E=this.onUpdate)==null||E.call(this,{type:"update",deltaX:t-a,deltaY:n-h})}start(){this.coordsMonitorTimeout=setInterval(this.recordCurrentZoomCoords.bind(this),16)}stop(){let{coordsHistory:e}=this,t=0,n=0,a=0;if(e.length>0){let h=this.zoomCoordsHistoryIndex%G8,S=h-1;S<0&&(S=e.length-1);let E=h;E>=e.length&&(E=0);let L=e[S],_=e[E];t=L.x-_.x,n=L.y-_.y,a=L.t-_.t}if(this.coords=void 0,clearInterval(this.coordsMonitorTimeout),this.coordsMonitorTimeout=void 0,this.zoomCoordsHistoryIndex=0,this.coordsHistory.length=0,a>0&&this.decelerationValue<1){let h=t/a,S=n/a,E=Math.hypot(h,S),L=Math.atan2(S,h),_=performance.now();this.inertiaHandle=Ele._ModuleSupport.getWindow().requestAnimationFrame(N=>{this.animateInertia(N,N,_,E,L)})}}recordCurrentZoomCoords(){let{coords:e,coordsHistory:t,zoomCoordsHistoryIndex:n}=this;if(!e)return;let{x2:a,y2:h}=e,S=Date.now();t[n%G8]={x:a,y:h,t:S},this.zoomCoordsHistoryIndex+=1}animateInertia(e,t,n,a,h){var N;let S=1-this.decelerationValue,E=-a/Math.log(S),L=a*(S**(t-n)-1)/Math.log(S),_=a*(S**(e-n)-1)/Math.log(S);(N=this.onUpdate)==null||N.call(this,{type:"update",deltaX:-Math.cos(h)*(_-L),deltaY:-Math.sin(h)*(_-L)}),!(_>=E-1)&&(this.inertiaHandle=requestAnimationFrame(V=>{this.animateInertia(V,e,n,a,h)}))}updateCoords(e,t){this.coords?this.coords={x1:this.coords.x2,y1:this.coords.y2,x2:e,y2:t}:this.coords={x1:e,y1:t,x2:e,y2:t}}translateZooms(e,t,n,a){let h=Lw(e,e.x+Math.abs(n),e.y+e.height-Math.abs(a)),S=Math.sign(n)*h.x,E=-Math.sign(a)*h.y,L={};for(let[_,{direction:N,zoom:V}]of Object.entries(t)){if(V&&V.min===tr.min&&V.max===tr.max)continue;let q=du({[N]:V});q=Wf(RE(q,S*vc(q),E*Zg(q))),L[_]={direction:N,zoom:q[N]}}return L}},Rle=(xt(),D(wt)),Ple=200,Lle=class{update(e,t,n,a){let h=e.deltaX*t*Ple;return this.translateZooms(n,a,h)}translateZooms(e,t,n){let a={},h=Lw(e,e.x+Math.abs(n),0),S=n<0?-h.x:h.x;for(let[E,{direction:L,zoom:_}]of Object.entries(t)){if(L!==Rle._ModuleSupport.ChartAxisDirection.X)continue;let N=du({x:_});N=Wf(RE(N,S*vc(N),0)),a[E]={direction:L,zoom:N.x}}return a}},j8=(xt(),D(wt)),Ole=class{updateAxes(e,t,n,a){var Y,J;let h=e.sourceEvent,S={},{anchorPointX:E,anchorPointY:L,isScalingX:_,isScalingY:N,scrollingStep:V}=t,q=Lw(n,(Y=h.offsetX)!=null?Y:h.clientX,(J=h.offsetY)!=null?J:h.clientY);for(let[re,{direction:ce,zoom:he}]of Object.entries(a)){if(he==null)continue;let me=pe({},he),we=V*e.deltaY*(he.max-he.min);if(ce===j8._ModuleSupport.ChartAxisDirection.X&&_)me.max+=we,me=Cy(me,he,E,q.x);else if(ce===j8._ModuleSupport.ChartAxisDirection.Y&&N)me.max+=we,me=Cy(me,he,L,q.y);else continue;S[re]={direction:ce,zoom:UF(me)}}return S}update(e,t,n,a){let{anchorPointX:h,anchorPointY:S,isScalingX:E,isScalingY:L,scrollingStep:_}=t,N=Lw(n,e.canvasX,e.canvasY),V=e.deltaY,q=du(a);return q.x.max+=E?_*V*vc(a):0,q.y.max+=L?_*V*Zg(a):0,E&&(q.x=Cy(q.x,a.x,h,N.x)),L&&(q.y=Cy(q.y,a.y,S,N.y)),q=Wf(q),q}updateDelta(e,t,n){let{anchorPointX:a,anchorPointY:h,isScalingX:S,isScalingY:E,scrollingStep:L}=t,_=du(n);return _.x.max+=S?L*-e*vc(n):0,_.y.max+=E?L*-e*Zg(n):0,S&&(_.x=Cy(_.x,n.x,a)),E&&(_.y=Cy(_.y,n.y,h)),_=Wf(_),_}},_le=class{constructor(e){this.rect=e,this.rect.visible=!1}update(e,t,n,a){this.rect.visible=!0,this.updateCoords(e.canvasX,e.canvasY,t,n,a),this.updateRect(n)}stop(e,t,n){let a=du();if(!e||!t)return a;this.coords&&(a=this.createZoomFromCoords(t,n));let h=t.width/e.width,S=t.height/e.height;return a=Wf(xle(a,h,S)),this.reset(),a}reset(){this.coords=void 0,this.rect.visible=!1}didUpdate(){return this.rect.visible&&this.rect.width>0&&this.rect.height>0}updateCoords(e,t,n,a,h){if(!this.coords){this.coords={x1:e,y1:t,x2:e,y2:t};return}let{coords:S}=this;if(S.x2=e,S.y2=t,!a)return;let{isScalingX:E,isScalingY:L,keepAspectRatio:_,minRatioX:N,minRatioY:V}=n,q=du(h),Y=this.getNormalisedDimensions(),J=q.x.max-q.x.min,re=q.y.max-q.y.min,ce=N/J,he=V/re;if(E&&Y.width/a.width<ce&&(S.x2<S.x1?S.x2=S.x1-a.width*ce:S.x2=S.x1+a.width*ce),_&&E&&L){let me=a.width/a.height;S.y2<S.y1?S.y2=Math.min(S.y1-Y.width/me,S.y1-a.height*he):S.y2=Math.max(S.y1+Y.width/me,S.y1+a.height*he)}else L&&Y.height/a.height<he&&(S.y2<S.y1?S.y2=S.y1-a.height*he:S.y2=S.y1+a.height*he);E||(S.x1=a.x,S.x2=a.x+a.width),L||(S.y1=a.y,S.y2=a.y+a.height)}updateRect(e){if(!e)return;let{rect:t}=this,n=this.getNormalisedDimensions(),{width:a,height:h}=n,{x:S,y:E}=n;S=Math.max(S,e.x),S-=Math.max(0,S+a-(e.x+e.width)),E=Math.max(E,e.y),E-=Math.max(0,E+h-(e.y+e.height)),t.x=S,t.y=E,t.width=a,t.height=h}createZoomFromCoords(e,t){let n=du(t),a=this.getNormalisedDimensions(),h=Lw(e,a.x,a.y+a.height),S=a.width/e.width,E=a.height/e.height,L=N8(n,S,E),_=h.x*vc(n),N=h.y*Zg(n);return L=RE(L,_,N),L=Wf(L),L}getNormalisedDimensions(){var _;let{x1:e=0,y1:t=0,x2:n=0,y2:a=0}=(_=this.coords)!=null?_:{},h=e<=n?e:n,S=t<=a?t:a,E=e<=n?n-e:e-n,L=t<=a?a-t:t-a;return{x:h,y:S,width:E,height:L}}},Fle=(xt(),D(wt)),{ARRAY:Nle,BOOLEAN:zle,STRING:Ble,UNION:Gle,ActionOnSet:jle,BaseProperties:Vle,ChartAxisDirection:Hle,InteractionState:V8,NativeWidget:Wle,PropertiesArray:Ule,Toolbar:Kle,ToolbarButtonProperties:qle,Validate:KF,createElement:Yle}=Fle._ModuleSupport,cG=class extends qle{};ve([KF(Gle(["reset","zoom-in","zoom-out","pan-left","pan-right","pan-start","pan-end"]))],cG.prototype,"value",2),ve([KF(Ble)],cG.prototype,"section",2);var dG=class extends Vle{constructor(e,t,n,a,h,S){super(),this.ctx=e,this.getModuleProperties=t,this.getResetZoom=n,this.updateZoom=a,this.updateAxisZoom=h,this.resetZoom=S,this.enabled=!1,this.buttons=new Ule(cG),this.verticalSpacing=10,this.detectionRange=38,this.destroyFns=[],this.container=new Wle(Yle("div")),this.container.addClass("ag-charts-zoom-buttons"),e.domManager.addChild("canvas-overlay","zoom-buttons",this.container.getElement()),this.toolbar=new Kle(e.localeManager),this.container.addChild(this.toolbar),this.toggleVisibility(!1),this.destroyFns.push(this.toolbar.addToolbarListener("button-pressed",this.onButtonPress.bind(this)),this.toolbar.addToolbarListener("button-focused",this.onButtonFocus.bind(this)),e.interactionManager.addListener("hover",this.onHover.bind(this),V8.All),e.interactionManager.addListener("leave",this.onLeave.bind(this),V8.All),e.layoutManager.addListener("layout:complete",this.onLayoutComplete.bind(this)),this.teardown.bind(this))}destroy(){for(let e of this.destroyFns)e()}teardown(){this.ctx.domManager.removeChild("canvas-overlay","zoom-buttons"),this.container.destroy()}onLayoutComplete(e){let{buttons:t,container:n}=this,{rect:a}=e.series;this.toolbar.updateButtons(t),this.toggleButtons();let h=n.getBounds().height;n.setBounds({y:a.y+a.height-h})}onHover(e){if(!this.enabled||this.toolbar.isHidden())return;let{container:t,detectionRange:n,ctx:{scene:a}}=this,{offsetY:h,sourceEvent:{target:S}}=e,E=t.getElement(),L=E.offsetTop-n,_=h>L&&h<a.canvas.element.offsetHeight||S===E;this.toggleVisibility(_)}onLeave(){this.toggleVisibility(!1)}toggleVisibility(e,t=!1){let{container:n,toolbar:a,verticalSpacing:h}=this;a.toggleClass("ag-charts-zoom-buttons__toolbar--hidden",!e);let S=a.getElement();S.style.transitionDuration=t?"0s":"",S.style.transform=e?"translateY(0)":`translateY(${n.getBounds().height+h}px)`}toggleButtons(){let e=du(this.ctx.zoomManager.getZoom()),{minRatioX:t,minRatioY:n}=this.getModuleProperties();for(let[a,h]of this.buttons.entries()){let S=!0;switch(h==null?void 0:h.value){case"pan-start":S=e.x.min>tr.min;break;case"pan-end":S=e.x.max<tr.max;break;case"pan-left":S=e.x.min>tr.min;break;case"pan-right":S=e.x.max<tr.max;break;case"zoom-out":S=!nG(e,iG());break;case"zoom-in":S=!aG(e,t,n);break;case"reset":S=!nG(e,this.getResetZoom());break}this.toolbar.toggleButtonEnabledByIndex(a,S)}}onButtonPress({button:e}){if(!this.enabled||this.toolbar.isHidden())return;let t=this.getModuleProperties();if(t.independentAxes&&e.value!=="reset"){let n=this.ctx.zoomManager.getAxisZooms();for(let[a,{direction:h,zoom:S}]of Object.entries(n))S!=null&&this.onButtonPressAxis(e,t,a,h,S)}else this.onButtonPressUnified(e,t)}onButtonFocus(e){this.toggleVisibility(!0,!0)}onButtonPressAxis(e,t,n,a,h){let{anchorPointX:S,anchorPointY:E,isScalingX:L,isScalingY:_,scrollingStep:N}=t,V=pe({},h),q=h.max-h.min;switch(e.value){case"pan-start":V.max=q,V.min=0;break;case"pan-end":V.min=V.max-q,V.max=tr.max;break;case"pan-left":V.min-=q*N,V.max-=q*N;break;case"pan-right":V.min+=q*N,V.max+=q*N;break;case"zoom-in":case"zoom-out":{let Y=a===Hle.X,J=Y&&L||!Y&&_,re=e.value==="zoom-in"?1-N:1+N;J||(re=1);let me=Y?S==="pointer"?eG:S:E==="pointer"?tG:E;V.max=V.min+(V.max-V.min)*re,V=Cy(V,h,me);break}}this.updateAxisZoom(n,a,UF(V))}onButtonPressUnified(e,t){let{anchorPointX:n,anchorPointY:a,isScalingX:h,isScalingY:S,scrollingStep:E}=t,L=du(this.ctx.zoomManager.getZoom()),_=du(L);switch(e.value){case"reset":this.resetZoom();return;case"pan-start":_.x.max=vc(_),_.x.min=0;break;case"pan-end":_.x.min=tr.max-vc(_),_.x.max=tr.max;break;case"pan-left":_=RE(_,-vc(_)*E,0);break;case"pan-right":_=RE(_,vc(_)*E,0);break;case"zoom-in":case"zoom-out":{let N=e.value==="zoom-in"?1-E:1+E,V=n==="pointer"?eG:n,q=a==="pointer"?tG:a;_=N8(_,h?N:1,S?N:1),_.x=Cy(_.x,L.x,V),_.y=Cy(_.y,L.y,q);break}}this.updateZoom(Wf(_))}};ve([KF(zle),jle({changeValue(e){var t;(t=this.toolbar)==null||t.setHidden(!e)}})],dG.prototype,"enabled",2),ve([KF(Nle)],dG.prototype,"buttons",2);var{BOOLEAN:Ow,NUMBER:H8,RATIO:uG,UNION:qF,OBJECT:W8,OR:Xle,ActionOnSet:YF,ChartAxisDirection:hG,ChartUpdateType:Zle,Validate:yc,ProxyProperty:$le,round:Qle}=Pw._ModuleSupport,U8=e=>Qle(e,10),K8=qF(["pointer","start","middle","end"],"an anchor cord"),q8="zoom-cursor",gG="zoom-tooltip",pG=class extends Pw._ModuleSupport.BaseProperties{constructor(e){super(),this.onChange=e,this.enabled=!1,this.padding=0}};ve([yc(Ow),YF({changeValue(e){this.onChange({enabled:e,padding:this.padding})}})],pG.prototype,"enabled",2),ve([yc(uG),YF({changeValue(e){this.onChange({enabled:this.enabled,padding:e})}})],pG.prototype,"padding",2);var Yc=class extends Pw._ModuleSupport.BaseModuleInstance{constructor(e){super(),this.ctx=e,this.enabled=!1,this.enableAxisDragging=!0,this.buttons=new dG(this.ctx,this.getModuleProperties.bind(this),this.getResetZoom.bind(this),this.updateZoom.bind(this),this.updateAxisZoom.bind(this),this.resetZoom.bind(this)),this.enableDoubleClickToReset=!0,this.enablePanning=!0,this.enableScrolling=!0,this.enableSelecting=!1,this.panKey="alt",this.axes="x",this.scrollingStep=(tr.max-tr.min)/10,this.keepAspectRatio=!1,this.minVisibleItemsX=2,this.minVisibleItemsY=2,this.anchorPointX=eG,this.anchorPointY=tG,this.autoScaling=new pG(Y=>{this.ctx.zoomManager.setAutoScaleYAxis(Y.enabled,Y.padding)}),this.axisDragger=new Mle,this.panner=new Tle,this.scroller=new Ole,this.scrollPanner=new Lle,this.deceleration="short",this.dragState=0,this.minRatioX=0,this.minRatioY=0,this.destroyContextMenuActions=void 0,this.isFirstWheelEvent=!0,this.debouncedWheelReset=Pw._ModuleSupport.debounce(()=>{this.isFirstWheelEvent=!0},100),this._didAutoZoomOnMount=!1;let t=new HF;this.selector=new _le(t),this.contextMenu=new kle(e.contextMenuRegistry,e.zoomManager,this.getModuleProperties.bind(this),()=>this.paddedRect,this.updateZoom.bind(this));let{Default:n,ZoomDrag:a,Animation:h,Annotations:S,AnnotationsSelected:E}=Pw._ModuleSupport.InteractionState,L=n|h|a,_=n|h,N=L|S|E,V=e.regionManager.getRegion("series");this.domProxy=new Dle({onDragStart:(Y,J)=>this.onAxisDragStart(Y,J),onDrag:Y=>this.onDrag({regionX:Y.offsetX,regionY:Y.offsetY,canvasX:NaN,canvasY:NaN}),onDragEnd:()=>this.onDragEnd(),onDoubleClick:(Y,J)=>{this.hoveredAxis={id:Y,direction:J},this.onDoubleClick(),this.hoveredAxis=void 0}});let q="drag-start";this.destroyFns.push(e.scene.attachNode(t),e.keyNavManager.addListener("nav-zoom",Y=>this.onNavZoom(Y)),V.addListener("dblclick",Y=>this.onDoubleClick(Y),_),V.addListener("drag",Y=>this.onDrag(Y),L),V.addListener(q,Y=>this.onDragStart(Y),L),V.addListener("drag-end",()=>this.onDragEnd(),L),V.addListener("wheel",Y=>this.onWheel(Y),N),e.gestureDetector.addListener("pinch-move",Y=>this.onPinchMove(Y)),e.layoutManager.addListener("layout:complete",Y=>this.onLayoutComplete(Y)),e.updateService.addListener("update-complete",Y=>this.onUpdateComplete(Y)),e.zoomManager.addListener("zoom-change",Y=>this.onZoomChange(Y)),e.zoomManager.addListener("zoom-pan-start",Y=>this.onZoomPanStart(Y)),this.panner.addListener("update",Y=>this.onPanUpdate(Y)),()=>this.teardown())}teardown(){var e;this.ctx.zoomManager.setZoomModuleEnabled(!1),this.buttons.destroy(),(e=this.destroyContextMenuActions)==null||e.call(this)}onEnabledChange(e){var n;this.ctx.zoomManager.setZoomModuleEnabled(e);let t=this.getZoom();this.contextMenu&&((n=this.destroyContextMenuActions)==null||n.call(this),this.destroyContextMenuActions=this.contextMenu.registerActions(e,t))}onDoubleClick(e){let{enabled:t,enableDoubleClickToReset:n,hoveredAxis:a,ctx:{zoomManager:h}}=this;!t||!n||(a?h.resetAxisZoom("zoom",a.id):e!=null&&e.preventZoomDblClick||this.resetZoom())}onDragStart(e){let{enabled:t,enableAxisDragging:n,enablePanning:a,enableSelecting:h,hoveredAxis:S,ctx:{cursorManager:E,zoomManager:L}}=this;if(!t)return;this.panner.stopInteractions();let _=0;if(n&&S)_=1;else if(e!=null){let N=this.isPanningKeyPressed(e.sourceEvent);a&&(!h||N)?(E.updateCursor(q8,"grabbing"),_=2,this.panner.start()):h&&!this.isMinZoom(this.getZoom())&&!N&&(_=3)}(this.dragState=_)!==0&&L.fireZoomPanStartEvent("zoom")}onDrag(e){let{anchorPointX:t,anchorPointY:n,axisDragger:a,dragState:h,enabled:S,paddedRect:E,panner:L,selector:_,seriesRect:N,hoveredAxis:V,ctx:{interactionManager:q,tooltipManager:Y,updateService:J,zoomManager:re}}=this;if(!S||!E||!N)return;q.pushState(Pw._ModuleSupport.InteractionState.ZoomDrag);let ce=this.getZoom();switch(h){case 1:{if(!V)break;let{id:he,direction:me}=V,we=me===Pw._ModuleSupport.ChartAxisDirection.X?t:n,Me=re.getAxisZoom(he),be=a.update(e,me,we,N,ce,Me);re.setAxisManuallyAdjusted("zoom",he),this.updateAxisZoom(he,me,be);break}case 2:L.update(e);break;case 3:_.update(e,this.getModuleProperties(),E,ce);break;case 0:return}Y.updateTooltip(gG),J.update(Zle.PERFORM_LAYOUT,{skipAnimations:!0})}onDragEnd(){let{axisDragger:e,dragState:t,enabled:n,panner:a,selector:h,ctx:{cursorManager:S,interactionManager:E,tooltipManager:L}}=this;if(E.popState(Pw._ModuleSupport.InteractionState.ZoomDrag),!(!n||t===0)){switch(t){case 1:this.hoveredAxis=void 0,e.stop();break;case 2:a.stop();break;case 3:{if(!h.didUpdate())break;let _=this.getZoom();if(this.isMinZoom(_))break;let N=h.stop(this.seriesRect,this.paddedRect,_);this.updateZoom(N);break}}this.dragState=0,S.updateCursor(q8),L.removeTooltip(gG)}}onNavZoom(e){let{enabled:t,enableScrolling:n,scroller:a}=this;!t||!n||(e.preventDefault(),this.updateZoom(a.updateDelta(e.delta,this.getModuleProperties(),this.getZoom())))}onWheel(e){let{enabled:t,enablePanning:n,enableScrolling:a,paddedRect:h}=this;if(!t||!a||!h)return;let S=e.sourceEvent,{deltaX:E,deltaY:L}=S,_=E!=null&&L!=null&&Math.abs(E)>Math.abs(L);n&&_?this.onWheelPanning(e):this.onWheelScrolling(e)}onWheelPanning(e){let{scrollingStep:t,scrollPanner:n,seriesRect:a,ctx:{zoomManager:h}}=this;if(!a)return;e.preventDefault();let S=n.update(e,t,a,h.getAxisZooms());for(let[E,{direction:L,zoom:_}]of Object.entries(S))this.updateAxisZoom(E,L,_)}onWheelScrolling(e){let{enableAxisDragging:t,enableIndependentAxes:n,hoveredAxis:a,scroller:h,seriesRect:S,ctx:{zoomManager:E}}=this;if(!S)return;let L=this.getZoom(),_=this.isMaxZoom(L)&&e.deltaY>0||this.isMinZoom(L)&&e.deltaY<0;(!this.isFirstWheelEvent||!_)&&e.preventDefault(),this.isFirstWheelEvent=!1,this.debouncedWheelReset();let N=t&&a!=null,V=this.isScalingX(),q=this.isScalingY();N&&(V=a.direction===Pw._ModuleSupport.ChartAxisDirection.X,q=!V);let Y=this.getModuleProperties({isScalingX:V,isScalingY:q});if(n===!0){let J=h.updateAxes(e,Y,S,E.getAxisZooms());for(let[re,{direction:ce,zoom:he}]of Object.entries(J))N&&a.id!==re||this.updateAxisZoom(re,ce,he)}else{let J=h.update(e,Y,S,this.getZoom());this.updateUnifiedZoom(J)}}onAxisDragStart(e,t){this.hoveredAxis={id:e,direction:t},this.onDragStart(void 0)}onPinchMove(e){let{enabled:t,enableScrolling:n,paddedRect:a,seriesRect:h}=this;if(!t||!n||!a||!h)return;let S=this.getZoom(),E=du(S),L=e.deltaDistance*-.01,_=Lw(h,e.origin.x,e.origin.y);this.isScalingX()&&(E.x.max+=L*vc(S),E.x=oG(E.x,S.x,_.x)),this.isScalingY()&&(E.y.max+=L*(S.y.max-S.y.min),E.y=oG(E.y,S.y,_.y)),this.updateZoom(Wf(E)),e.preventDefault()}onLayoutComplete(e){this.domProxy.update(this.ctx);let{enabled:t}=this;if(!t)return;let{series:{rect:n,paddedRect:a,shouldFlipXY:h}}=e;this.seriesRect=n,this.paddedRect=a,this.shouldFlipXY=h,this._didAutoZoomOnMount=!0}onUpdateComplete(e){let{minRect:t,minVisibleRect:n}=e,{enabled:a,minVisibleItemsX:h,minVisibleItemsY:S,paddedRect:E,shouldFlipXY:L}=this;if(!a||!E||!t||!n)return;let _=this.getZoom(),N=L?S:h,V=L?h:S,q=n.width*N/E.width,Y=n.height*V/E.height,J=U8(q*vc(_)),re=U8(Y*Zg(_));this.isScalingX()&&(this.minRatioX=Math.min(1,J)),this.isScalingY()&&(this.minRatioY=Math.min(1,re)),this.minRatioX||(this.minRatioX=this.minRatioY||0),this.minRatioY||(this.minRatioY=this.minRatioX||0)}onZoomChange(e){e.callerId!=="zoom"&&this.panner.stopInteractions();let t=this.getZoom();this.contextMenu.toggleActions(t)}onZoomPanStart(e){e.callerId==="zoom"&&this.panner.stopInteractions()}onPanUpdate(e){let{panner:t,seriesRect:n,ctx:{tooltipManager:a,zoomManager:h}}=this;if(!n)return;let S=t.translateZooms(n,h.getAxisZooms(),e.deltaX,e.deltaY);for(let[E,{direction:L,zoom:_}]of Object.entries(S))this.updateAxisZoom(E,L,_);a.updateTooltip(gG)}isPanningKeyPressed(e){switch(this.panKey){case"alt":return e.altKey;case"ctrl":return e.ctrlKey;case"shift":return e.shiftKey;case"meta":return e.metaKey}}isScalingX(){return this.axes==="xy"?!0:this.shouldFlipXY?this.axes==="y":this.axes==="x"}isScalingY(){return this.axes==="xy"?!0:this.shouldFlipXY?this.axes==="x":this.axes==="y"}getAnchorPointX(){return this.shouldFlipXY?this.anchorPointY:this.anchorPointX}getAnchorPointY(){return this.shouldFlipXY?this.anchorPointX:this.anchorPointY}isMinZoom(e){return aG(e,this.minRatioX,this.minRatioY)}isMaxZoom(e){let t=tr.max-tr.min;return vc(e)===t&&Zg(e)===t}updateZoom(e){this.enableIndependentAxes?this.updatePrimaryAxisZooms(e):this.updateUnifiedZoom(e)}resetZoom(){this.ctx.zoomManager.resetZoom("zoom")}updatePrimaryAxisZoom(e,t){this.ctx.zoomManager.updatePrimaryAxisZoom("zoom",t,e[t])}updatePrimaryAxisZooms(e){this.updatePrimaryAxisZoom(e,hG.X),this.updatePrimaryAxisZoom(e,hG.Y)}updateUnifiedZoom(e){let{minRatioX:t,minRatioY:n,ctx:{zoomManager:a}}=this,h=this.getZoom(),S=vc(e);S<=vc(h)&&S<t&&(e.x=B8(e.x,h.x,t));let L=Zg(e);L<=Zg(h)&&L<n&&(e.y=B8(e.y,h.y,n)),a.updateZoom("zoom",e)}updateAxisZoom(e,t,n){let{enableIndependentAxes:a,minRatioX:h,minRatioY:S,ctx:{zoomManager:E}}=this;if(!n)return;let L=this.getZoom();if(a!==!0){L[t]=n,this.updateUnifiedZoom(L);return}let _=n.max-n.min,N=L[t].max-L[t].min,V=t===hG.X?h:S;_<=N&&_<V||E.updateAxisZoom("zoom",e,n)}getZoom(){return du(this.ctx.zoomManager.getZoom())}getResetZoom(){return du(this.ctx.zoomManager.getRestoredZoom())}getModuleProperties(e){var t,n,a,h,S,E,L,_,N,V;return{anchorPointX:(t=e==null?void 0:e.anchorPointX)!=null?t:this.getAnchorPointX(),anchorPointY:(n=e==null?void 0:e.anchorPointY)!=null?n:this.getAnchorPointY(),enabled:(a=e==null?void 0:e.enabled)!=null?a:this.enabled,independentAxes:(h=e==null?void 0:e.independentAxes)!=null?h:this.enableIndependentAxes===!0,isScalingX:(S=e==null?void 0:e.isScalingX)!=null?S:this.isScalingX(),isScalingY:(E=e==null?void 0:e.isScalingY)!=null?E:this.isScalingY(),keepAspectRatio:(L=e==null?void 0:e.keepAspectRatio)!=null?L:this.keepAspectRatio,minRatioX:(_=e==null?void 0:e.minRatioX)!=null?_:this.minRatioX,minRatioY:(N=e==null?void 0:e.minRatioY)!=null?N:this.minRatioY,scrollingStep:(V=e==null?void 0:e.scrollingStep)!=null?V:this.scrollingStep}}};ve([YF({newValue(e){this.onEnabledChange(e)}}),yc(Ow)],Yc.prototype,"enabled",2),ve([yc(Ow)],Yc.prototype,"enableAxisDragging",2),ve([yc(W8)],Yc.prototype,"buttons",2),ve([yc(Ow)],Yc.prototype,"enableDoubleClickToReset",2),ve([YF({changeValue(e){this.ctx.zoomManager.setIndependentAxes(!!e)}}),yc(Ow,{optional:!0})],Yc.prototype,"enableIndependentAxes",2),ve([yc(Ow)],Yc.prototype,"enablePanning",2),ve([yc(Ow)],Yc.prototype,"enableScrolling",2),ve([yc(Ow)],Yc.prototype,"enableSelecting",2),ve([yc(qF(["alt","ctrl","meta","shift"],"a pan key"))],Yc.prototype,"panKey",2),ve([yc(qF(["x","y","xy"],"an axis"))],Yc.prototype,"axes",2),ve([yc(uG)],Yc.prototype,"scrollingStep",2),ve([yc(Ow)],Yc.prototype,"keepAspectRatio",2),ve([yc(H8.restrict({min:1}))],Yc.prototype,"minVisibleItemsX",2),ve([yc(H8.restrict({min:1}))],Yc.prototype,"minVisibleItemsY",2),ve([yc(K8)],Yc.prototype,"anchorPointX",2),ve([yc(K8)],Yc.prototype,"anchorPointY",2),ve([yc(W8)],Yc.prototype,"autoScaling",2),ve([$le("panner.deceleration"),yc(Xle(uG,qF(["off","short","long"],"a deceleration")))],Yc.prototype,"deceleration",2);var Jle={enabled:!0,buttons:[{icon:"zoom-out",tooltip:"toolbarZoomZoomOut",value:"zoom-out",section:"scale"},{icon:"zoom-in",tooltip:"toolbarZoomZoomIn",value:"zoom-in",section:"scale"},{icon:"pan-left",tooltip:"toolbarZoomPanLeft",value:"pan-left",section:"pan"},{icon:"pan-right",tooltip:"toolbarZoomPanRight",value:"pan-right",section:"pan"},{icon:"reset",tooltip:"toolbarZoomReset",value:"reset",section:"reset"}]},ece={type:"root",optionsKey:"zoom",packageType:"enterprise",chartTypes:["cartesian","topology"],moduleFactory:e=>new Yc(e),themeTemplate:{zoom:{anchorPointX:"end",anchorPointY:"middle",axes:"x",buttons:Jle,enabled:!1,enableAxisDragging:!0,enableDoubleClickToReset:!0,enablePanning:!0,enableScrolling:!0,enableSelecting:!1,deceleration:"short",minVisibleItemsX:2,minVisibleItemsY:2,panKey:"alt",scrollingStep:.1,autoScaling:{enabled:!1,padding:.25}}}},tce=(xt(),D(wt)),ice=(xt(),D(wt)),{BOOLEAN:Y8,OBJECT:nce,POSITION:ace,POSITIVE_NUMBER:mG,BaseProperties:oce,AxisTicks:rce,ZIndexMap:sce,ProxyProperty:fG,Validate:PE,LayoutElement:lce,createId:cce,Group:dce,Rect:uce,Triangle:hce,TranslatableGroup:gce,LinearGradient:pce}=ice._ModuleSupport,vG=class extends oce{constructor(){super(...arguments),this.thickness=16,this.preferredLength=100}};ve([PE(mG)],vG.prototype,"thickness",2),ve([PE(mG)],vG.prototype,"preferredLength",2);var XF=class{constructor(e){this.axisTicks=e}};ve([fG("axisTicks.label")],XF.prototype,"label",2),ve([fG("axisTicks.interval")],XF.prototype,"interval",2),ve([fG("axisTicks.padding")],XF.prototype,"padding",2);var LE=class{constructor(e){this.ctx=e,this.id=cce(this),this.legendGroup=new gce({name:"legend",zIndex:sce.LEGEND}),this.gradientRect=new uce,this.arrow=new hce,this.ticksGroup=new dce({name:"legend-axis-group"}),this.destroyFns=[],this.enabled=!1,this.position="bottom",this.reverseOrder=!1,this.gradient=new vG,this.spacing=20,this.data=[],this.highlightManager=e.highlightManager,this.axisTicks=new rce,this.axisTicks.attachAxis(this.ticksGroup),this.scale=new XF(this.axisTicks),this.legendGroup.append([this.gradientRect,this.arrow,this.ticksGroup]),this.destroyFns.push(e.highlightManager.addListener("highlight-change",()=>this.onChartHoverChange()),e.layoutManager.registerElement(lce.Legend,t=>this.onStartLayout(t)),()=>this.legendGroup.remove())}isVertical(){return this.position==="right"||this.position==="left"}destroy(){this.destroyFns.forEach(e=>e())}attachLegend(e){e.appendChild(this.legendGroup)}onStartLayout(e){let[t]=this.data;if(!this.enabled||!(t!=null&&t.enabled)){this.legendGroup.visible=!1;return}let{colorRange:n}=this.normalizeColorArrays(t);this.updateGradientRect(e.layoutBox,n);let a=this.updateAxis(t),{left:h,top:S}=this.getMeasurements(e.layoutBox,a);this.updateArrow(),this.legendGroup.visible=!0,this.legendGroup.translationX=h,this.legendGroup.translationY=S}normalizeColorArrays(e){let t=e.colorDomain.slice(),n=e.colorRange.slice();if(t.length===n.length)return{colorDomain:t,colorRange:n};t.length>n.length&&n.splice(t.length);let[a,h]=t,S=n.length;return t=n.map((E,L)=>L===0?a:L===S-1?h:a+(h-a)*L/(S-1)),{colorDomain:t,colorRange:n}}updateGradientRect(e,t){let{gradientRect:n}=this,{preferredLength:a,thickness:h}=this.gradient,S;this.isVertical()?(S=0,n.width=h,n.height=Math.min(e.height,a)):(S=90,n.width=Math.min(e.width,a),n.height=h);let E=new pce("oklch",t.map((L,_)=>({offset:_/(t.length-1),color:L})),S);n.fill=E}updateAxis(e){let{axisTicks:t}=this,n=this.isVertical(),a=this.reverseOrder!==n;return t.position=this.position,t.translationX=n?this.gradient.thickness:0,t.translationY=n?0:this.gradient.thickness,t.scale.domain=a?e.colorDomain.slice().reverse():e.colorDomain,t.scale.range=n?[0,this.gradientRect.height]:[0,this.gradientRect.width],t.calculateLayout()}updateArrow(){var N;let e=this.highlightManager.getActiveHighlight(),{arrow:t}=this;if((e==null?void 0:e.colorValue)==null){t.visible=!1;return}let{scale:n,label:a}=this.axisTicks,h=(N=a.fontSize)!=null?N:0,S=n.convert(e.colorValue),{x:E,y:L}=this.gradientRect,_=Math.PI;this.isVertical()?(E-=h/2,L+=S,_/=2):(E+=S,L-=h/2),t.visible=!0,t.fill=a.color,t.rotation=_,t.size=h,t.translationX=E,t.translationY=L}getMeasurements(e,t){let{x:n,y:a}=e,{width:h,height:S}=this.gradientRect;switch(this.isVertical()?h+=t.width+5:S+=t.height+5,this.position){case"left":a+=e.height/2-S/2,e.shrink(h+this.spacing,"left");break;case"right":n+=e.width-h,a+=e.height/2-S/2,e.shrink(h+this.spacing,"right");break;case"top":n+=e.width/2-h/2,e.shrink(S+this.spacing,"top");break;case"bottom":n+=e.width/2-h/2,a+=e.height-S,e.shrink(S+this.spacing,"bottom")}return{top:a,left:n}}onChartHoverChange(){this.enabled&&this.updateArrow()}};LE.className="GradientLegend",ve([PE(Y8)],LE.prototype,"enabled",2),ve([PE(ace)],LE.prototype,"position",2),ve([PE(Y8)],LE.prototype,"reverseOrder",2),ve([PE(nce)],LE.prototype,"gradient",2),ve([PE(mG)],LE.prototype,"spacing",2);var{ThemeSymbols:{DEFAULT_FONT_FAMILY:mce,DEFAULT_LABEL_COLOUR:fce},ThemeConstants:{FONT_SIZE:vce}}=tce._ModuleSupport,yce={type:"legend",optionsKey:"gradientLegend",packageType:"enterprise",chartTypes:["cartesian","polar","hierarchy","topology","flow-proportion","standalone","gauge"],identifier:"gradient",moduleFactory:e=>new LE(e),themeTemplate:{enabled:!1,position:"bottom",spacing:20,scale:{padding:13,label:{color:fce,fontSize:vce.SMALL,fontFamily:mce},interval:{minSpacing:1}},gradient:{preferredLength:100,thickness:16},reverseOrder:!1},removable:"standalone-only"},bce=class{constructor(){this.ieCompatibility=!1}init(){this.ieCompatibility=this.md5("hello")!="5d41402abc4b2a76b9719d911017c592"}md5cycle(e,t){let n=e[0],a=e[1],h=e[2],S=e[3];n=this.ff(n,a,h,S,t[0],7,-680876936),S=this.ff(S,n,a,h,t[1],12,-389564586),h=this.ff(h,S,n,a,t[2],17,606105819),a=this.ff(a,h,S,n,t[3],22,-1044525330),n=this.ff(n,a,h,S,t[4],7,-176418897),S=this.ff(S,n,a,h,t[5],12,1200080426),h=this.ff(h,S,n,a,t[6],17,-1473231341),a=this.ff(a,h,S,n,t[7],22,-45705983),n=this.ff(n,a,h,S,t[8],7,1770035416),S=this.ff(S,n,a,h,t[9],12,-1958414417),h=this.ff(h,S,n,a,t[10],17,-42063),a=this.ff(a,h,S,n,t[11],22,-1990404162),n=this.ff(n,a,h,S,t[12],7,1804603682),S=this.ff(S,n,a,h,t[13],12,-40341101),h=this.ff(h,S,n,a,t[14],17,-1502002290),a=this.ff(a,h,S,n,t[15],22,1236535329),n=this.gg(n,a,h,S,t[1],5,-165796510),S=this.gg(S,n,a,h,t[6],9,-1069501632),h=this.gg(h,S,n,a,t[11],14,643717713),a=this.gg(a,h,S,n,t[0],20,-373897302),n=this.gg(n,a,h,S,t[5],5,-701558691),S=this.gg(S,n,a,h,t[10],9,38016083),h=this.gg(h,S,n,a,t[15],14,-660478335),a=this.gg(a,h,S,n,t[4],20,-405537848),n=this.gg(n,a,h,S,t[9],5,568446438),S=this.gg(S,n,a,h,t[14],9,-1019803690),h=this.gg(h,S,n,a,t[3],14,-187363961),a=this.gg(a,h,S,n,t[8],20,1163531501),n=this.gg(n,a,h,S,t[13],5,-1444681467),S=this.gg(S,n,a,h,t[2],9,-51403784),h=this.gg(h,S,n,a,t[7],14,1735328473),a=this.gg(a,h,S,n,t[12],20,-1926607734),n=this.hh(n,a,h,S,t[5],4,-378558),S=this.hh(S,n,a,h,t[8],11,-2022574463),h=this.hh(h,S,n,a,t[11],16,1839030562),a=this.hh(a,h,S,n,t[14],23,-35309556),n=this.hh(n,a,h,S,t[1],4,-1530992060),S=this.hh(S,n,a,h,t[4],11,1272893353),h=this.hh(h,S,n,a,t[7],16,-155497632),a=this.hh(a,h,S,n,t[10],23,-1094730640),n=this.hh(n,a,h,S,t[13],4,681279174),S=this.hh(S,n,a,h,t[0],11,-358537222),h=this.hh(h,S,n,a,t[3],16,-722521979),a=this.hh(a,h,S,n,t[6],23,76029189),n=this.hh(n,a,h,S,t[9],4,-640364487),S=this.hh(S,n,a,h,t[12],11,-421815835),h=this.hh(h,S,n,a,t[15],16,530742520),a=this.hh(a,h,S,n,t[2],23,-995338651),n=this.ii(n,a,h,S,t[0],6,-198630844),S=this.ii(S,n,a,h,t[7],10,1126891415),h=this.ii(h,S,n,a,t[14],15,-1416354905),a=this.ii(a,h,S,n,t[5],21,-57434055),n=this.ii(n,a,h,S,t[12],6,1700485571),S=this.ii(S,n,a,h,t[3],10,-1894986606),h=this.ii(h,S,n,a,t[10],15,-1051523),a=this.ii(a,h,S,n,t[1],21,-2054922799),n=this.ii(n,a,h,S,t[8],6,1873313359),S=this.ii(S,n,a,h,t[15],10,-30611744),h=this.ii(h,S,n,a,t[6],15,-1560198380),a=this.ii(a,h,S,n,t[13],21,1309151649),n=this.ii(n,a,h,S,t[4],6,-145523070),S=this.ii(S,n,a,h,t[11],10,-1120210379),h=this.ii(h,S,n,a,t[2],15,718787259),a=this.ii(a,h,S,n,t[9],21,-343485551),e[0]=this.add32(n,e[0]),e[1]=this.add32(a,e[1]),e[2]=this.add32(h,e[2]),e[3]=this.add32(S,e[3])}cmn(e,t,n,a,h,S){return t=this.add32(this.add32(t,e),this.add32(a,S)),this.add32(t<<h|t>>>32-h,n)}ff(e,t,n,a,h,S,E){return this.cmn(t&n|~t&a,e,t,h,S,E)}gg(e,t,n,a,h,S,E){return this.cmn(t&a|n&~a,e,t,h,S,E)}hh(e,t,n,a,h,S,E){return this.cmn(t^n^a,e,t,h,S,E)}ii(e,t,n,a,h,S,E){return this.cmn(n^(t|~a),e,t,h,S,E)}md51(e){let t=e.length,n=[1732584193,-271733879,-1732584194,271733878],a;for(a=64;a<=e.length;a+=64)this.md5cycle(n,this.md5blk(e.substring(a-64,a)));e=e.substring(a-64);let h=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];for(a=0;a<e.length;a++)h[a>>2]|=e.charCodeAt(a)<<(a%4<<3);if(h[a>>2]|=128<<(a%4<<3),a>55)for(this.md5cycle(n,h),a=0;a<16;a++)h[a]=0;return h[14]=t*8,this.md5cycle(n,h),n}md5blk(e){let t=[];for(let n=0;n<64;n+=4)t[n>>2]=e.charCodeAt(n)+(e.charCodeAt(n+1)<<8)+(e.charCodeAt(n+2)<<16)+(e.charCodeAt(n+3)<<24);return t}rhex(e){let t="0123456789abcdef".split(""),n="",a=0;for(;a<4;a++)n+=t[e>>a*8+4&15]+t[e>>a*8&15];return n}hex(e){for(let t=0;t<e.length;t++)e[t]=this.rhex(e[t]);return e.join("")}md5(e){return this.hex(this.md51(e))}add32(e,t){return this.ieCompatibility?this.add32Compat(e,t):this.add32Std(e,t)}add32Std(e,t){return e+t&4294967295}add32Compat(e,t){let n=(e&65535)+(t&65535);return(e>>16)+(t>>16)+(n>>16)<<16|n&65535}};function yG(e){return e==null||e.length===0}var ZF={"01":"GRID","02":"CHARTS","0102":"BOTH"},X8="https://ag-grid.com/charts/licensing/",bG=class wc{constructor(t){this.watermarkMessage=void 0,this.totalMessageLength=124,this.document=t,this.md5=new bce,this.md5.init()}validateLicense(){let t=this.getLicenseDetails(wc.licenseKey,wc.gridContext),n=`AG ${t.currentLicenseType==="BOTH"?"Grid and ":""}Charts Enterprise`,a="";if(t.suppliedLicenseType==="BOTH"?a="AG Grid and AG Charts Enterprise":t.suppliedLicenseType==="GRID"?a="AG Grid Enterprise":t.suppliedLicenseType!==void 0&&(a="AG Charts Enterprise"),t.missing)(!this.isWebsiteUrl()||this.isForceWatermark())&&this.outputMissingLicenseKey(n);else if(t.expired){let h=wc.getChartsReleaseDate(),S=wc.formatDate(h);this.outputExpiredKey(t.expiry,S,a)}else t.valid?t.isTrial&&t.trialExpired&&this.outputExpiredTrialKey(t.expiry,n,a):this.outputInvalidLicenseKey(!!t.incorrectLicenseType,n,a)}static extractExpiry(t){let n=t.substring(t.lastIndexOf("_")+1,t.length);return new Date(parseInt(wc.decode(n),10))}static extractLicenseComponents(t){let n=t.replace(/[\u200B-\u200D\uFEFF]/g,"");if(n=n.replace(/\r?\n|\r/g,""),t.length<=32)return{md5:null,license:t,version:null,isTrial:null};let a=n.length-32,h=n.substring(a),S=n.substring(0,a),[E,L,_]=wc.extractBracketedInformation(n);return{md5:h,license:S,version:E,isTrial:L,type:_}}getLicenseDetails(t,n=!1){let a="CHARTS";if(yG(t))return{licenseKey:t,valid:!1,missing:!0,currentLicenseType:a};let h=wc.getChartsReleaseDate(),{md5:S,license:E,version:L,isTrial:_,type:N}=wc.extractLicenseComponents(t),V=S===this.md5.md5(E)&&t.indexOf("For_Trialing_ag-Grid_Only")===-1,q,Y,J=null,re=!1,ce;function he(){q=J<new Date,Y=void 0}if(V&&(J=wc.extractExpiry(E),V=!isNaN(J.getTime()),V))switch(Y=h>J,L){case"legacy":case"2":{V=!1;break}case"3":yG(N)?V=!1:(ce=N,N!==ZF["02"]&&N!==ZF["0102"]?(V=!1,re=!0):_&&he())}return V?{licenseKey:t,valid:V,expiry:wc.formatDate(J),expired:Y,version:L,isTrial:_,trialExpired:q,invalidLicenseTypeForCombo:n?ce!=="BOTH":void 0,incorrectLicenseType:re,currentLicenseType:a,suppliedLicenseType:ce}:{licenseKey:t,valid:V,incorrectLicenseType:re,currentLicenseType:a,suppliedLicenseType:ce}}isDisplayWatermark(){return this.isForceWatermark()||!this.isLocalhost()&&!this.isWebsiteUrl()&&!yG(this.watermarkMessage)}getWatermarkMessage(){var t;return(t=this.watermarkMessage)!=null?t:""}getHostname(){var h;if(!this.document)return"localhost";let t=(h=this.document.defaultView)!=null?h:window;if(!t)return"localhost";let n=t.location,{hostname:a=""}=n;return a}isForceWatermark(){var a,h;if(!this.document)return!1;let t=((h=(a=this.document)==null?void 0:a.defaultView)!=null?h:typeof window!="undefined")?window:void 0;if(!t)return!1;let{pathname:n}=t.location;return n?n.indexOf("forceWatermark")!==-1:!1}isWebsiteUrl(){let t=this.getHostname();return/^((?:[\w-]+\.)?ag-grid\.com)$/.exec(t)!==null}isLocalhost(){let t=this.getHostname();return/^(?:127\.0\.0\.1|localhost)$/.exec(t)!==null}static formatDate(t){let n=["January","February","March","April","May","June","July","August","September","October","November","December"],a=t.getDate(),h=t.getMonth(),S=t.getFullYear();return a+" "+n[h]+" "+S}static getChartsReleaseDate(){return new Date(parseInt(wc.decode(wc.RELEASE_INFORMATION),10))}static decode(t){let n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",a="",h,S,E,L,_,N,V,q=0,Y=t.replace(/[^A-Za-z0-9+/=]/g,"");for(;q<Y.length;)L=n.indexOf(Y.charAt(q++)),_=n.indexOf(Y.charAt(q++)),N=n.indexOf(Y.charAt(q++)),V=n.indexOf(Y.charAt(q++)),h=L<<2|_>>4,S=(_&15)<<4|N>>2,E=(N&3)<<6|V,a=a+String.fromCharCode(h),N!=64&&(a=a+String.fromCharCode(S)),V!=64&&(a=a+String.fromCharCode(E));return a=wc.utf8_decode(a),a}static utf8_decode(t){t=t.replace(/rn/g,"n");let n="";for(let a=0;a<t.length;a++){let h=t.charCodeAt(a);h<128?n+=String.fromCharCode(h):h>127&&h<2048?(n+=String.fromCharCode(h>>6|192),n+=String.fromCharCode(h&63|128)):(n+=String.fromCharCode(h>>12|224),n+=String.fromCharCode(h>>6&63|128),n+=String.fromCharCode(h&63|128))}return n}static setGridContext(t=!1){wc.gridContext=t}static setLicenseKey(t){wc.licenseKey=t}static extractBracketedInformation(t){if(!t.includes("["))return["legacy",!1,void 0];let n=t.match(/\[(.*?)\]/g).map(L=>L.replace("[","").replace("]",""));if(!n||n.length===0)return["legacy",!1,void 0];let a=n.filter(L=>L==="TRIAL").length===1,h=n.filter(L=>L.startsWith("v"))[0],S=h?h.replace("v",""):"legacy",E=ZF[n.filter(L=>ZF[L])[0]];return[S,a,E]}centerPadAndOutput(t){let n=this.totalMessageLength-t.length;console.error(t.padStart(n/2+t.length,"*").padEnd(this.totalMessageLength,"*"))}padAndOutput(t,n="*",a=""){console.error(t.padEnd(this.totalMessageLength-a.length,n)+a)}outputInvalidLicenseKey(t,n,a){wc.gridContext||(t?(this.centerPadAndOutput(""),this.centerPadAndOutput(` ${n} License `),this.centerPadAndOutput(" Incompatible License Key "),this.padAndOutput(`* Your license key is for ${a} only and does not cover you for ${n}.`," ","*"),this.padAndOutput(`* To troubleshoot your license key visit ${X8}.`," ","*"),this.centerPadAndOutput(""),this.centerPadAndOutput("")):(this.centerPadAndOutput(""),this.centerPadAndOutput(` ${n} License `),this.centerPadAndOutput(" Invalid License Key "),this.padAndOutput("* Your license key is not valid."," ","*"),this.padAndOutput(`* To troubleshoot your license key visit ${X8}.`," ","*"),this.centerPadAndOutput(""),this.centerPadAndOutput(""))),this.watermarkMessage="Invalid License"}outputExpiredTrialKey(t,n,a){wc.gridContext||(this.centerPadAndOutput(""),this.centerPadAndOutput(` ${n} License `),this.centerPadAndOutput(" Trial Period Expired. "),this.padAndOutput(`* Your trial only license for ${a} expired on ${t}.`," ","*"),this.padAndOutput("* Please email info@ag-grid.com to purchase a license."," ","*"),this.centerPadAndOutput(""),this.centerPadAndOutput("")),this.watermarkMessage="Trial Period Expired"}outputMissingLicenseKey(t){wc.gridContext||(this.centerPadAndOutput(""),this.centerPadAndOutput(` ${t} License `),this.centerPadAndOutput(" License Key Not Found "),this.padAndOutput(`* All ${t} features are unlocked for trial.`," ","*"),this.padAndOutput("* If you want to hide the watermark please email info@ag-grid.com for a trial license key."," ","*"),this.centerPadAndOutput(""),this.centerPadAndOutput("")),this.watermarkMessage="For Trial Use Only"}outputExpiredKey(t,n,a){wc.gridContext||(this.centerPadAndOutput(""),this.centerPadAndOutput(` ${a} License `),this.centerPadAndOutput(" Incompatible Software Version "),this.padAndOutput(`* Your license key works with versions of ${a} released before ${t}.`," ","*"),this.padAndOutput(`* The version you are trying to use was released on ${n}.`," ","*"),this.padAndOutput("* Please contact info@ag-grid.com to renew your license key."," ","*"),this.centerPadAndOutput(""),this.centerPadAndOutput("")),this.watermarkMessage="License Expired"}};bG.RELEASE_INFORMATION="MTczMzkwNTUyNzEyOQ==",bG.gridContext=!1;var XR=bG,Cce=(xt(),D(wt)),{createElement:Sce}=Cce._ModuleSupport;function wce(e,t){let n=e.addChild("canvas-overlay","watermark"),a=Sce("span");a.innerText=t,n.addEventListener("animationend",()=>{e.removeChild("canvas-overlay","watermark"),e.removeStyles("watermark")}),n.classList.add("ag-watermark"),n.appendChild(a)}var xce=(xt(),D(wt)),Z8=(xt(),D(wt)),Mce=(xt(),D(wt)),{findMinMax:kce,findMinValue:Ace,findMaxValue:Dce}=Mce._ModuleSupport,nh=0,$g=1,Qg=2,Jg=3,Uf=4;function _2(e,t=1){let n=Math.ceil(Math.log2(e.length/t))-1;return n=Math.min(Math.max(n,0),16),2**n|0}function F2(e){return kce(e.map(t=>Number(t)))}function $F(e,t,n){return(e.valueOf()-t)/(n-t)}function QF(e,t){return Math.min(Math.floor(e*t),t-1)*Uf|0}function N2(e,t,n,a,h,S){let E=new Int32Array(S*Uf).fill(-1),L=new Float64Array(S*Uf).fill(NaN);for(let _=0;_<e.length;_+=1){let N=e[_],V=t[_],q=n[_];if(N==null||V==null||q==null)continue;let Y=$F(N,a,h),J=V.valueOf(),re=q.valueOf(),ce=QF(Y,S),he=E[ce+nh]===-1;(he||Y<L[ce+nh])&&(E[ce+nh]=_,L[ce+nh]=Y),(he||Y>L[ce+$g])&&(E[ce+$g]=_,L[ce+$g]=Y),(he||re<L[ce+Qg])&&(E[ce+Qg]=_,L[ce+Qg]=re),(he||J>L[ce+Jg])&&(E[ce+Jg]=_,L[ce+Jg]=J)}return{indexData:E,valueData:L}}function z2(e,t,n,{inPlace:a=!1}={}){let h=n/2|0,S=a?e:new Int32Array(h*Uf),E=a?t:new Float64Array(h*Uf);for(let L=0;L<h;L+=1){let _=L*Uf|0,N=_*2|0,V=N+Uf|0,q=e[V+nh]===-1,Y=q||t[N+nh]<t[V+nh]?N:V;S[_+nh]=e[Y+nh],E[_+nh]=t[Y+nh];let J=q||t[N+$g]>t[V+$g]?N:V;S[_+$g]=e[J+$g],E[_+$g]=t[J+$g];let re=q||t[N+Qg]<t[V+Qg]?N:V;S[_+Qg]=e[re+Qg],E[_+Qg]=t[re+Qg];let ce=q||t[N+Jg]>t[V+Jg]?N:V;S[_+Jg]=e[ce+Jg],E[_+Jg]=t[ce+Jg]}return{maxRange:h,indexData:S,valueData:E}}function Ece(e,t,n,a){let h=Ace(0,e-1,E=>{let L=a(E);return!Number.isFinite(L)||L>t?E:void 0});h=Math.max((h!=null?h:0)-1,0);let S=Dce(0,e-1,E=>{let L=a(E);return!Number.isFinite(L)||L<n?E:void 0});return S=Math.min((S!=null?S:e)+2,e),[h,S]}var Mxe=(xt(),D(wt)),$8={xMin:nh,xMax:$g,yMin:Qg,yMax:Jg,span:Uf},Ice=1e3,Tce=5;function Rce(e,t,n){if(e.length<Ice)return;let[a,h]=F2(n),S=_2(e,Tce),{indexData:E,valueData:L}=N2(e,t,t,a,h,S),_=[{maxRange:S,indexData:E,indexes:$8}];for(;S>64;)({indexData:E,valueData:L,maxRange:S}=z2(E,L,S)),_.push({maxRange:S,indexData:E,indexes:$8});return _.reverse(),_}var{ChartAxisDirection:Pce,ContinuousScale:Lce,OrdinalTimeScale:Oce}=Z8._ModuleSupport,_ce=class extends Z8._ModuleSupport.BarSeries{visibleRange(e,t,n,a){return Ece(e,t,n,a)}aggregateData(e,t){if(t.rawData.length===0||t.type!=="ungrouped")return;let n=this.axes[Pce.X];if(n==null||!(Lce.is(n.scale)||Oce.is(n.scale)))return;let a=e.resolveKeysById(this,"xValue",t),h=e.resolveColumnById(this,"yValue-raw",t),{index:S}=e.resolveProcessedDataDefById(this,"xValue"),E=t.domain.keys[S];return Rce(a,h,E)}},{BarSeriesModule:Fce}=xce._ModuleSupport,Nce=et(pe({},Fce),{type:"series",optionsKey:"series[]",packageType:"enterprise",chartTypes:["cartesian"],identifier:"bar",moduleFactory:e=>new _ce(e)}),zce=(xt(),D(wt)),CG=(xt(),D(wt));function Bce(e){return{from:e?{scalingX:1,scalingY:0}:{scalingX:0,scalingY:1},to:{scalingX:1,scalingY:1}}}function Gce(e){return(t,n)=>e?{scalingCenterY:n.scaledValues.medianValue}:{scalingCenterX:n.scaledValues.medianValue}}var Q8=(xt(),D(wt)),{ScalableGroup:jce,Rect:ZR,Line:B2,BBox:Vce,Selection:J8,Logger:Hce}=Q8._ModuleSupport,Wce=class extends jce{constructor(){super(),this.append([new ZR({tag:0}),new ZR({tag:0}),new ZR({tag:2}),new ZR({tag:1}),new B2({tag:3}),new B2({tag:3}),new B2({tag:4}),new B2({tag:4})])}updateDatumStyles(e,t,n,a){let{bandwidth:h,scaledValues:{xValue:S,medianValue:E}}=e,{minValue:L,q1Value:_,q3Value:N,maxValue:V}=e.scaledValues;(n&&!a||!n&&a)&&([V,N,_,L]=[L,_,N,V]);let q=(Nt,zt,Ut,Vt)=>n?{y:Nt,x:zt,width:Vt,height:Ut}:{x:Nt,y:zt,width:Ut,height:Vt},Y=(Nt,zt,Ut)=>n?{y1:Nt,y2:zt,x:Ut}:{x1:Nt,x2:zt,y:Ut},J=(Nt,zt,Ut)=>n?{x1:zt,x2:Ut,y:Nt}:{x:Nt,y1:zt,y2:Ut},re=(Nt,zt,Ut,Vt)=>({x:Nt,y:zt,width:Ut,height:Vt}=q(Nt,zt,Ut,Vt),new Vce(Nt,zt,Ut,Vt)),{fill:ce,fillOpacity:he,stroke:me,strokeWidth:we,strokeOpacity:Me,lineDash:be,lineDashOffset:Le,cornerRadius:Fe,cap:je,whisker:Xe}=t,nt=J8.select(this,ZR),lt=nt.selectByTag(0),[ot]=nt.selectByTag(2),[vt]=nt.selectByTag(1),gt=nt.selectByTag(3),bt=nt.selectByTag(4);Xe.strokeWidth>h&&(Xe.strokeWidth=h);let At=q(_,S,N-_,h);ot.setProperties(At),lt[0].setProperties(At),lt[0].setProperties({cornerRadius:Fe,clipBBox:re(_,S,Math.round(E-_+we/2),h)}),lt[1].setProperties(At),lt[1].setProperties({cornerRadius:Fe,clipBBox:re(Math.round(E-we/2),S,Math.floor(N-E+we/2),h)});let Rt=Math.max(Math.round(E-we/2),_+we),It=Math.min(Math.round(E+we/2),N-we);vt.setProperties(At),vt.setProperties({visible:Rt<It,cornerRadius:Fe,clipBBox:re(Rt,S+we,It-Rt,Math.max(0,h-we*2))});let Dt=Math.floor(S+h*(1-je.lengthRatio)/2),jt=Math.ceil(S+h*(1+je.lengthRatio)/2);bt[0].setProperties(J(L,Dt,jt)),bt[1].setProperties(J(V,Dt,jt)),gt[0].setProperties(Y(Math.round(L+Xe.strokeWidth/2),_,Math.floor(S+h/2))),gt[1].setProperties(Y(N,Math.round(V-Xe.strokeWidth/2),Math.floor(S+h/2)));for(let Nt of lt)Nt.setProperties({fill:ce,fillOpacity:he,strokeWidth:we*2,strokeOpacity:0});vt.setProperties({fill:me,fillOpacity:Me,strokeWidth:0});for(let Nt of[...gt,...bt])Nt.setProperties(Xe);ot.setProperties({stroke:me,strokeWidth:we,strokeOpacity:Me,lineDash:be,lineDashOffset:Le,cornerRadius:Fe,fillOpacity:0})}distanceSquared(e,t){let n=J8.selectByClass(this,ZR,B2);return Q8._ModuleSupport.nearestSquared(e,t,n).distanceSquared}get midPoint(){let e=this.datum;return e.midPoint===void 0?(Hce.error("BoxPlotGroup.datum.midPoint is undefined"),{x:NaN,y:NaN}):e.midPoint}},Uce=(xt(),D(wt)),{BaseProperties:e7,AbstractBarSeriesProperties:Kce,SeriesTooltip:qce,Validate:Po,COLOR_STRING:JF,FUNCTION:Yce,LINE_DASH:t7,OBJECT:SG,POSITIVE_NUMBER:G2,RATIO:eN,STRING:hm,mergeDefaults:Xce}=Uce._ModuleSupport,i7=class extends e7{constructor(){super(...arguments),this.lengthRatio=.5}};ve([Po(eN)],i7.prototype,"lengthRatio",2);var $R=class extends e7{};ve([Po(JF,{optional:!0})],$R.prototype,"stroke",2),ve([Po(G2)],$R.prototype,"strokeWidth",2),ve([Po(eN)],$R.prototype,"strokeOpacity",2),ve([Po(t7,{optional:!0})],$R.prototype,"lineDash",2),ve([Po(G2)],$R.prototype,"lineDashOffset",2);var wr=class extends Kce{constructor(){super(...arguments),this.fill="#c16068",this.fillOpacity=1,this.stroke="#333",this.strokeWidth=1,this.strokeOpacity=1,this.lineDash=[0],this.lineDashOffset=0,this.cornerRadius=0,this.cap=new i7,this.whisker=new $R,this.tooltip=new qce,this.backgroundFill="white"}toJson(){let{stroke:e,strokeWidth:t,strokeOpacity:n,lineDash:a,lineDashOffset:h}=this,S=super.toJson();return S.whisker=Xce(S.whisker,{stroke:e,strokeWidth:t,strokeOpacity:n,lineDash:a,lineDashOffset:h}),S}};ve([Po(hm)],wr.prototype,"xKey",2),ve([Po(hm)],wr.prototype,"minKey",2),ve([Po(hm)],wr.prototype,"q1Key",2),ve([Po(hm)],wr.prototype,"medianKey",2),ve([Po(hm)],wr.prototype,"q3Key",2),ve([Po(hm)],wr.prototype,"maxKey",2),ve([Po(hm,{optional:!0})],wr.prototype,"xName",2),ve([Po(hm,{optional:!0})],wr.prototype,"yName",2),ve([Po(hm,{optional:!0})],wr.prototype,"minName",2),ve([Po(hm,{optional:!0})],wr.prototype,"q1Name",2),ve([Po(hm,{optional:!0})],wr.prototype,"medianName",2),ve([Po(hm,{optional:!0})],wr.prototype,"q3Name",2),ve([Po(hm,{optional:!0})],wr.prototype,"maxName",2),ve([Po(JF,{optional:!0})],wr.prototype,"fill",2),ve([Po(eN)],wr.prototype,"fillOpacity",2),ve([Po(JF)],wr.prototype,"stroke",2),ve([Po(G2)],wr.prototype,"strokeWidth",2),ve([Po(eN)],wr.prototype,"strokeOpacity",2),ve([Po(t7)],wr.prototype,"lineDash",2),ve([Po(G2)],wr.prototype,"lineDashOffset",2),ve([Po(G2)],wr.prototype,"cornerRadius",2),ve([Po(Yce,{optional:!0})],wr.prototype,"itemStyler",2),ve([Po(SG)],wr.prototype,"cap",2),ve([Po(SG)],wr.prototype,"whisker",2),ve([Po(SG)],wr.prototype,"tooltip",2),ve([Po(JF)],wr.prototype,"backgroundFill",2);var{extractDecoratedProperties:n7,fixNumericExtent:Zce,keyProperty:$ce,mergeDefaults:wG,SeriesNodePickMode:a7,SMALLEST_KEY_INTERVAL:Qce,valueProperty:j2,diff:Jce,animationValidation:ede,computeBarFocusBounds:tde,createDatumId:o7,Color:xG,ContinuousScale:ide,motion:r7}=CG._ModuleSupport,nde=class extends CG._ModuleSupport.SeriesNodeEvent{constructor(e,t,n,a){super(e,t,n,a),this.xKey=a.properties.xKey,this.minKey=a.properties.minKey,this.q1Key=a.properties.q1Key,this.medianKey=a.properties.medianKey,this.q3Key=a.properties.q3Key,this.maxKey=a.properties.maxKey}},MG=class extends CG._ModuleSupport.AbstractBarSeries{constructor(e){super({moduleCtx:e,pickModes:[a7.NEAREST_NODE,a7.EXACT_SHAPE_MATCH],directionKeys:{x:["xKey"],y:["medianKey","q1Key","q3Key","minKey","maxKey"]},directionNames:{x:["xName"],y:["medianName","q1Name","q3Name","minName","maxName"]},pathsPerSeries:[],hasHighlightedLabels:!0}),this.properties=new wr,this.NodeEvent=nde}async processData(e){var ce,he,me;if(!this.properties.isValid()||!this.visible)return;let{xKey:t,minKey:n,q1Key:a,medianKey:h,q3Key:S,maxKey:E}=this.properties,L=!this.ctx.animationManager.isSkipped(),_=(ce=this.getCategoryAxis())==null?void 0:ce.scale,N=(he=this.getValueAxis())==null?void 0:he.scale,{isContinuousX:V,xScaleType:q,yScaleType:Y}=this.getScaleInformation({xScale:_,yScale:N}),J=[];L&&this.processedData&&J.push(Jce(this.id,this.processedData)),L&&J.push(ede());let{processedData:re}=await this.requestDataModel(e,this.data,{props:[$ce(t,q,{id:"xValue"}),j2(n,Y,{id:"minValue"}),j2(a,Y,{id:"q1Value"}),j2(h,Y,{id:"medianValue"}),j2(S,Y,{id:"q3Value"}),j2(E,Y,{id:"maxValue"}),...V?[Qce]:[],...J]});this.smallestDataInterval=(me=re.reduced)==null?void 0:me.smallestKeyInterval,this.animationState.transition("updateData")}getSeriesDomain(e){let{processedData:t,dataModel:n}=this;if(!(t&&n))return[];if(e===this.getBarDirection()){let E=n.getDomain(this,"minValue","value",t),L=n.getDomain(this,"maxValue","value",t);return Zce([Math.min(...E),Math.max(...L)])}let{index:a,def:h}=n.resolveProcessedDataDefById(this,"xValue"),S=t.domain.keys[a];return h.type==="key"&&h.valueType==="category"?S:this.padBandExtent(S)}getSeriesRange(e,t){return[NaN,NaN]}createNodeData(){let{visible:e,dataModel:t,processedData:n}=this,a=this.getCategoryAxis(),h=this.getValueAxis();if(!(t&&n!=null&&n.rawData.length!==0&&a&&h))return;let{xKey:S,fill:E,fillOpacity:L,stroke:_,strokeWidth:N,strokeOpacity:V,lineDash:q,lineDashOffset:Y,cap:J,whisker:re}=this.properties,ce=[],he=t.resolveKeysById(this,"xValue",n),me=t.resolveColumnById(this,"minValue",n),we=t.resolveColumnById(this,"q1Value",n),Me=t.resolveColumnById(this,"medianValue",n),be=t.resolveColumnById(this,"q3Value",n),Le=t.resolveColumnById(this,"maxValue",n),{barWidth:Fe,groupIndex:je}=this.updateGroupScale(a),Xe=ide.is(a.scale)?Fe*-.5:0,{groupScale:nt}=this,lt=this.isVertical(),ot={itemId:S,nodeData:ce,labelData:[],scales:this.calculateScaling(),visible:this.visible};return e&&n.rawData.forEach((vt,gt)=>{let bt=he[gt];if(bt==null)return;let At=me[gt],Rt=we[gt],It=Me[gt],Dt=be[gt],jt=Le[gt];if([At,Rt,It,Dt,jt].some(oi=>typeof oi!="number")||At>Rt||Rt>It||It>Dt||Dt>jt)return;let Nt={xValue:Math.round(a.scale.convert(bt)),minValue:Math.round(h.scale.convert(At)),q1Value:Math.round(h.scale.convert(Rt)),medianValue:Math.round(h.scale.convert(It)),q3Value:Math.round(h.scale.convert(Dt)),maxValue:Math.round(h.scale.convert(jt))};Nt.xValue+=Math.round(nt.convert(String(je)))+Xe;let zt=Math.round(Fe),Ut=Math.abs(Nt.q3Value-Nt.q1Value),Vt=Nt.xValue+zt/2,Wt=Math.min(Nt.q3Value,Nt.q1Value)+Ut/2,ci={x:lt?Vt:Wt,y:lt?Wt:Vt},li;lt?li={x:ci.x-zt/2,y:Nt.minValue,width:zt,height:Nt.maxValue-Nt.minValue}:li={x:Nt.minValue,y:ci.y-zt/2,width:Nt.maxValue-Nt.minValue,height:zt},ce.push({series:this,itemId:bt,datum:vt,datumIndex:gt,xKey:S,bandwidth:zt,scaledValues:Nt,cap:J,whisker:re,fill:E,fillOpacity:L,stroke:_,strokeWidth:N,strokeOpacity:V,lineDash:q,lineDashOffset:Y,midPoint:ci,focusRect:li})}),ot}legendItemSymbol(){let{fill:e,fillOpacity:t,stroke:n,strokeWidth:a,strokeOpacity:h}=this.properties;return{marker:{fill:e,fillOpacity:t,stroke:n,strokeOpacity:h,strokeWidth:a}}}getLegendData(e){var _;let{id:t,ctx:{legendManager:n},visible:a}=this,{xKey:h,yName:S,showInLegend:E,legendItemName:L}=this.properties;return!h||e!=="category"?[]:[{legendType:"category",id:t,itemId:t,seriesId:t,enabled:a&&n.getItemEnabled({seriesId:t,itemId:t}),label:{text:(_=L!=null?L:S)!=null?_:t},symbol:this.legendItemSymbol(),legendItemName:L,hideInLegend:!E}]}getTooltipContent(e){let{id:t,dataModel:n,processedData:a,properties:h}=this,{xKey:S,xName:E,yName:L,medianKey:_,medianName:N,q1Key:V,q1Name:q,q3Key:Y,q3Name:J,minKey:re,minName:ce,maxKey:he,maxName:me,legendItemName:we,tooltip:Me}=h,be=this.getCategoryAxis(),Le=this.getValueAxis();if(!n||!a||a.rawData.length===0||!be||!Le)return;let{datumIndex:Fe}=e,je=a.rawData[Fe],Xe=n.resolveKeysById(this,"xValue",a)[Fe],nt=n.resolveColumnById(this,"minValue",a)[Fe],lt=n.resolveColumnById(this,"q1Value",a)[Fe],ot=n.resolveColumnById(this,"medianValue",a)[Fe],vt=n.resolveColumnById(this,"q3Value",a)[Fe],gt=n.resolveColumnById(this,"maxValue",a)[Fe];if(Xe==null)return;let bt=this.getItemBaseStyle(!1);return Object.assign(bt,this.getItemStyleOverrides(String(Fe),je,bt,!1)),Me.formatTooltip({heading:be.formatDatum(Xe),title:we!=null?we:L,symbol:this.legendItemSymbol(),data:[{label:ce,fallbackLabel:re,value:Le.formatDatum(nt)},{label:q,fallbackLabel:V,value:Le.formatDatum(lt)},{label:N,fallbackLabel:_,value:Le.formatDatum(ot)},{label:J,fallbackLabel:Y,value:Le.formatDatum(vt)},{label:me,fallbackLabel:he,value:Le.formatDatum(gt)}]},pe({seriesId:t,datum:je,title:L,xKey:S,xName:E,yName:L,medianKey:_,medianName:N,q1Key:V,q1Name:q,q3Key:Y,q3Name:J,minKey:re,minName:ce,maxKey:he,maxName:me},bt))}animateEmptyUpdateReady({datumSelection:e}){let t=this.isVertical(),{from:n,to:a}=Bce(t);r7.resetMotion([e],Gce(t)),r7.staticFromToMotion(this.id,"datums",this.ctx.animationManager,[e],n,a,{phase:"initial"})}isLabelEnabled(){return!1}updateDatumSelection(e){var n;let t=(n=e.nodeData)!=null?n:[];return e.datumSelection.update(t)}getItemBaseStyle(e){var E,L,_,N,V,q,Y,J;let{properties:t}=this,{cornerRadius:n,cap:a,whisker:h}=t,S=e?t.highlightStyle.item:void 0;return{fill:(E=S==null?void 0:S.fill)!=null?E:t.fill,fillOpacity:(L=S==null?void 0:S.fillOpacity)!=null?L:t.fillOpacity,stroke:(_=S==null?void 0:S.stroke)!=null?_:t.stroke,strokeWidth:(N=S==null?void 0:S.strokeWidth)!=null?N:t.strokeWidth,strokeOpacity:(V=S==null?void 0:S.strokeOpacity)!=null?V:t.strokeOpacity,lineDash:(Y=(q=S==null?void 0:S.lineDash)!=null?q:t.lineDash)!=null?Y:[],lineDashOffset:(J=S==null?void 0:S.lineDashOffset)!=null?J:t.lineDashOffset,cornerRadius:n,cap:a,whisker:h}}getItemStyleOverrides(e,t,n,a){let{id:h,properties:S}=this,{xKey:E,minKey:L,q1Key:_,medianKey:N,q3Key:V,maxKey:q,itemStyler:Y}=S;if(Y!=null)return this.cachedDatumCallback(o7(e,a?"highlight":"node"),()=>Y(pe({seriesId:h,datum:t,xKey:E,minKey:L,q1Key:_,medianKey:N,q3Key:V,maxKey:q,highlighted:a},n)))}updateDatumNodes({datumSelection:e,isHighlight:t}){var h;let n=this.isVertical(),a=(h=this.getValueAxis())==null?void 0:h.isReversed();e.each((S,E)=>{let L=this.getFormattedStyles(E,t?"highlight":"node");t&&(L=wG(this.properties.highlightStyle.item,L));let{stroke:_,strokeWidth:N,strokeOpacity:V,lineDash:q,lineDashOffset:Y}=L;L.whisker=wG(L.whisker,{stroke:_,strokeWidth:N,strokeOpacity:V,lineDash:q,lineDashOffset:Y}),S.updateDatumStyles(E,L,n,a)})}updateLabelNodes(){}updateLabelSelection(e){let{labelData:t,labelSelection:n}=e;return n.update(t)}nodeFactory(){return new Wce}getFormattedStyles(e,t){let{id:n,properties:a}=this,{xKey:h,minKey:S,q1Key:E,medianKey:L,q3Key:_,maxKey:N,itemStyler:V,backgroundFill:q,cornerRadius:Y}=a,{datum:J,stroke:re,strokeWidth:ce,strokeOpacity:he,lineDash:me,lineDashOffset:we,cap:Me,whisker:be}=e,Le,Fe;if(!0)Le=e.fill,Fe=a.fillOpacity;else{try{Le=xG.mix(xG.fromString(q),xG.fromString(e.fill),a.fillOpacity).toString()}catch(nt){Le=e.fill}Fe=void 0}let Xe={fill:Le,fillOpacity:Fe,stroke:re,strokeWidth:ce,strokeOpacity:he,lineDash:me,lineDashOffset:we,cornerRadius:Y,cap:n7(Me),whisker:n7(be)};if(V){let nt=this.cachedDatumCallback(o7(J.index,t),()=>V(et(pe({datum:J,seriesId:n,highlighted:t==="highlight"},Xe),{xKey:h,minKey:S,q1Key:E,medianKey:L,q3Key:_,maxKey:N})));if(nt)return wG(nt,Xe)}return Xe}computeFocusBounds({datumIndex:e}){var t;return tde((t=this.contextNodeData)==null?void 0:t.nodeData[e].focusRect)}};MG.className="BoxPlotSeries",MG.type="box-plot";var ade=(xt(),D(wt)),{CARTESIAN_AXIS_TYPE:s7}=ade._ModuleSupport.ThemeConstants,ode={series:{direction:"vertical",strokeWidth:2},axes:{[s7.NUMBER]:{crosshair:{snap:!1}},[s7.CATEGORY]:{groupPaddingInner:.2,crosshair:{enabled:!1,snap:!1}}}},{Color:kG,swapAxisCondition:rde,ThemeSymbols:{DEFAULT_BACKGROUND_COLOUR:sde},ThemeConstants:{CARTESIAN_AXIS_TYPE:l7,CARTESIAN_POSITION:c7}}=zce._ModuleSupport,lde={type:"series",optionsKey:"series[]",packageType:"enterprise",chartTypes:["cartesian"],identifier:"box-plot",moduleFactory:e=>new MG(e),tooltipDefaults:{range:"exact"},defaultAxes:rde([{type:l7.NUMBER,position:c7.LEFT},{type:l7.CATEGORY,position:c7.BOTTOM}],e=>(e==null?void 0:e.direction)==="horizontal"),themeTemplate:ode,groupable:!0,paletteFactory:({takeColors:e,themeTemplateParameters:t})=>{var L;let n=t.get(sde),a=(L=Array.isArray(n)?n[0]:n)!=null?L:"white",{fills:[h],strokes:[S]}=e(1),E;try{E=kG.mix(kG.fromString(a),kG.fromString(h),.3).toString()}catch(_){E=h}return{fill:E,stroke:S,backgroundFill:a}}},cde=(xt(),D(wt)),AG=(xt(),D(wt)),DG=(xt(),D(wt)),dde=1e3,d7=nh,ude=Jg,hde=Qg,u7=$g;function gde(e,t,n,a){if(e.length<dde)return;let[h,S]=F2(a),E=_2(e),{indexData:L,valueData:_}=N2(e,t,n,h,S,E),N=[{maxRange:E,indexData:L}];for(;E>64;)({indexData:L,valueData:_,maxRange:E}=z2(L,_,E)),N.push({maxRange:E,indexData:L});return N.reverse(),N}var{fixNumericExtent:pde,keyProperty:mde,createDatumId:h7,SeriesNodePickMode:g7,ChartAxisDirection:p7,SMALLEST_KEY_INTERVAL:fde,valueProperty:tN,diff:vde,animationValidation:yde,computeBarFocusBounds:bde,visibleRangeIndices:EG,Logger:m7,ContinuousScale:Cde,OrdinalTimeScale:Sde}=DG._ModuleSupport,wde=class extends DG._ModuleSupport.SeriesNodeEvent{constructor(e,t,n,a){super(e,t,n,a),this.xKey=a.properties.xKey,this.openKey=a.properties.openKey,this.closeKey=a.properties.closeKey,this.highKey=a.properties.highKey,this.lowKey=a.properties.lowKey}},f7=class extends DG._ModuleSupport.AbstractBarSeries{constructor(e){super({moduleCtx:e,pickModes:[g7.AXIS_ALIGNED,g7.EXACT_SHAPE_MATCH],directionKeys:{x:["xKey"],y:["lowKey","highKey","openKey","closeKey"]},directionNames:{x:["xName"],y:["lowName","highName","openName","closeName"]},pathsPerSeries:[]}),this.NodeEvent=wde,this.dataAggregationFilters=void 0}async processData(e){var ce,he,me;if(!this.properties.isValid()||!this.visible)return;let{xKey:t,openKey:n,closeKey:a,highKey:h,lowKey:S}=this.properties,E=!this.ctx.animationManager.isSkipped(),L=(ce=this.getCategoryAxis())==null?void 0:ce.scale,_=(he=this.getValueAxis())==null?void 0:he.scale,{isContinuousX:N,xScaleType:V,yScaleType:q}=this.getScaleInformation({xScale:L,yScale:_}),Y=[];E&&(this.processedData&&Y.push(vde(this.id,this.processedData)),Y.push(yde())),n&&Y.push(tN(n,q,{id:"openValue",invalidValue:void 0,missingValue:void 0}));let{dataModel:J,processedData:re}=await this.requestDataModel(e,this.data,{props:[mde(t,V,{id:"xValue"}),tN(a,q,{id:"closeValue"}),tN(h,q,{id:"highValue"}),tN(S,q,{id:"lowValue"}),...N?[fde]:[],...Y]});this.smallestDataInterval=(me=re.reduced)==null?void 0:me.smallestKeyInterval,this.dataAggregationFilters=this.aggregateData(J,re),this.animationState.transition("updateData")}aggregateData(e,t){if(t.rawData.length===0)return;let n=this.axes[p7.X];if(n==null||!(Cde.is(n.scale)||Sde.is(n.scale)))return;let a=e.resolveKeysById(this,"xValue",t),h=e.resolveColumnById(this,"highValue",t),S=e.resolveColumnById(this,"lowValue",t),{index:E}=e.resolveProcessedDataDefById(this,"xValue"),L=t.domain.keys[E];return gde(a,h,S,L)}getSeriesDomain(e){let{processedData:t,dataModel:n}=this;if(!(t&&n))return[];let{openKey:a}=this.properties;if(e===this.getBarDirection()){let L=n.getDomain(this,"lowValue","value",t),_=n.getDomain(this,"highValue","value",t),N=a?n.getDomain(this,"openValue","value",t):[],V=n.getDomain(this,"closeValue","value",t);return pde([Math.min(...L,..._,...N,...V),Math.max(..._,...L,...N,...V)])}let{index:h,def:S}=n.resolveProcessedDataDefById(this,"xValue"),E=t.domain.keys[h];return S.type==="key"&&S.valueType==="category"?E:this.padBandExtent(E)}getSeriesRange(e,t){var V;let{dataModel:n,processedData:a}=this;if(!n||!a)return[NaN,NaN];let S=this.axes[p7.X].scale,E=n.resolveKeysById(this,"xValue",a),L=(V=S.bandwidth)!=null?V:0,[_,N]=EG(E.length,t,q=>{let Y=S.convert(E[q]);return[Y,Y+L]});return n.getDomainBetweenRange(this,["highValue","lowValue"],[_,N],a)}createNodeData(){let{visible:e,dataModel:t,processedData:n}=this,a=this.getCategoryAxis(),h=this.getValueAxis();if(!(t&&n!=null&&n.rawData.length!==0&&a&&h))return;let S=[],{xKey:E,highKey:L,lowKey:_}=this.properties,{rawData:N}=n,V=t.resolveKeysById(this,"xValue",n),q=t.resolveColumnById(this,"openValue",n),Y=t.resolveColumnById(this,"closeValue",n),J=t.resolveColumnById(this,"highValue",n),re=t.resolveColumnById(this,"lowValue",n),{groupScale:ce}=this,{barWidth:he,groupIndex:me}=this.updateGroupScale(a),we=ce.convert(String(me)),Me=he>=1?he:ce.rawBandwidth,be={itemId:E,nodeData:S,labelData:[],scales:this.calculateScaling(),visible:this.visible};if(!e)return be;let Le=(gt,bt,At,Rt,It,Dt,jt,Nt)=>{let zt=N[gt],Ut=a.scale.convert(bt)+we+jt/2,Vt=h.scale.convert(At),Wt=h.scale.convert(Rt),ci=h.scale.convert(It),li=h.scale.convert(Dt),oi=Rt>At,vi=oi?"up":"down",gi=Math.min(ci,li),fi=Math.max(ci,li)-gi,ki={x:Ut,y:gi+fi/2};S.push({series:this,itemId:vi,datum:zt,datumIndex:gt,xKey:E,xValue:bt,openValue:At,closeValue:Rt,highValue:It,lowValue:Dt,midPoint:ki,aggregatedValue:Rt,isRising:oi,centerX:Ut,width:jt,y:gi,height:fi,yOpen:Vt,yClose:Wt,crisp:Nt})},{dataAggregationFilters:Fe}=this,je=a.scale,[Xe,nt]=je.range,lt=nt-Xe,ot=gt=>je.convert(V[gt])+we,vt=Fe==null?void 0:Fe.find(gt=>gt.maxRange>lt);if(vt==null){let[gt,bt]=EG(N.length,a.range,At=>{let Rt=ot(At);return[Rt,Rt+Me]});n.rawData.length<1e3&&(gt=0,bt=n.rawData.length);for(let At=gt;At<bt;At+=1){let Rt=V[At];if(Rt==null)continue;let It=q[At],Dt=Y[At],jt=J[At],Nt=re[At],zt=Nt!=null&&Nt<=It&&Nt<=Dt,Ut=jt!=null&&jt>=It&&jt>=Dt;if(!zt){m7.warnOnce(`invalid low value for key [${_}] in data element, low value cannot be higher than datum open or close values`);continue}if(!Ut){m7.warnOnce(`invalid high value for key [${L}] in data element, high value cannot be lower than datum open or close values.`);continue}Le(At,Rt,It,Dt,jt,Nt,Me,!0)}}else{let{maxRange:gt,indexData:bt}=vt,[At,Rt]=EG(gt,a.range,It=>{let Dt=It*Uf,jt=bt[Dt+d7],Nt=bt[Dt+u7];if(jt!==-1)return[ot(jt),ot(Nt)+Me]});for(let It=At;It<Rt;It+=1){let Dt=It*Uf,jt=bt[Dt+d7],Nt=bt[Dt+u7],zt=bt[Dt+ude],Ut=bt[Dt+hde];if(jt===-1)continue;let Vt=(jt+Nt)/2|0,Wt=V[Vt];if(Wt==null)continue;let ci=q[jt],li=Y[Nt],oi=J[zt],vi=re[Ut],gi=Math.abs(ot(Nt)-ot(jt))+Me;Le(Vt,Wt,ci,li,oi,vi,gi,!1)}}return be}isVertical(){return!0}isLabelEnabled(){return!1}updateDatumSelection(e){var n;let t=(n=e.nodeData)!=null?n:[];return e.datumSelection.update(t)}updateLabelNodes(e){}updateLabelSelection(e){let{labelData:t,labelSelection:n}=e;return n.update(t)}getItemBaseStyle(e,t){var S,E,L,_,N,V,q;let{properties:n}=this,a=n.item[e],h=t?n.highlightStyle.item:void 0;return{fill:(S=h==null?void 0:h.fill)!=null?S:a.fill,fillOpacity:(E=h==null?void 0:h.fillOpacity)!=null?E:a.fillOpacity,stroke:(L=h==null?void 0:h.stroke)!=null?L:a.stroke,strokeWidth:(_=h==null?void 0:h.strokeWidth)!=null?_:a.strokeWidth,strokeOpacity:(N=h==null?void 0:h.strokeOpacity)!=null?N:a.strokeOpacity,lineDash:(V=h==null?void 0:h.lineDash)!=null?V:a.lineDash,lineDashOffset:(q=h==null?void 0:h.lineDashOffset)!=null?q:a.lineDashOffset}}getItemStyleOverrides(e,t,n,a,h){let{id:S,properties:E}=this,{itemStyler:L}=E;if(L==null)return;let{xKey:_,openKey:N,closeKey:V,highKey:q,lowKey:Y}=E;return this.cachedDatumCallback(h7(e,h?"highlight":"node"),()=>L(pe({seriesId:S,datum:t,itemId:n,xKey:_,openKey:N,closeKey:V,highKey:q,lowKey:Y,highlighted:h},a)))}getTooltipContent(e){var bt,At,Rt,It,Dt;let{id:t,dataModel:n,processedData:a,properties:h}=this,{xKey:S,xName:E,yName:L,openKey:_,openName:N,highKey:V,highName:q,lowKey:Y,lowName:J,closeKey:re,closeName:ce,legendItemName:he,tooltip:me}=h,we=this.getCategoryAxis(),Me=this.getValueAxis();if(!n||!a||a.rawData.length===0||!we||!Me)return;let{datumIndex:be}=e,Le=a.rawData[be],Fe=n.resolveKeysById(this,"xValue",a)[be],je=n.resolveColumnById(this,"openValue",a)[be],Xe=n.resolveColumnById(this,"highValue",a)[be],nt=n.resolveColumnById(this,"lowValue",a)[be],lt=n.resolveColumnById(this,"closeValue",a)[be];if(Fe==null)return;let ot=lt>=je?"up":"down",vt=this.properties.item[ot],gt=this.getItemBaseStyle(ot,!1);return Object.assign(gt,this.getItemStyleOverrides(String(be),Le,ot,gt,!1)),me.formatTooltip({heading:we.formatDatum(Fe),title:he,symbol:{marker:{fill:(bt=vt.fill)!=null?bt:vt.stroke,fillOpacity:(Rt=(At=vt.fillOpacity)!=null?At:vt.strokeOpacity)!=null?Rt:1,stroke:vt.stroke,strokeWidth:(It=vt.strokeWidth)!=null?It:1,strokeOpacity:(Dt=vt.strokeOpacity)!=null?Dt:1}},data:[{label:N,fallbackLabel:_,value:Me.formatDatum(je)},{label:q,fallbackLabel:V,value:Me.formatDatum(Xe)},{label:J,fallbackLabel:Y,value:Me.formatDatum(nt)},{label:ce,fallbackLabel:re,value:Me.formatDatum(lt)}]},pe({seriesId:t,datum:Le,title:L,itemId:ot,xKey:S,xName:E,yName:L,openKey:_,openName:N,highKey:V,highName:q,lowKey:Y,lowName:J,closeKey:re,closeName:ce},gt))}getDatumId(e){return h7(e.xValue)}computeFocusBounds(e){var L;let t=(L=this.getNodeData())==null?void 0:L.at(e.datumIndex);if(t==null)return;let{centerX:n,y:a,width:h,height:S}=t,E={x:n-h/2,y:a,width:h,height:S};return bde(E)}},xde=(xt(),D(wt)),Mde=(xt(),D(wt)),{Path:kde,ScenePathChangeDetection:yA,BBox:Ade}=Mde._ModuleSupport,TC=class extends kde{constructor(){super(...arguments),this.centerX=0,this.y=0,this.width=0,this.height=0,this.yOpen=0,this.yClose=0,this.crisp=!1,this.strokeAlignment=0}computeBBox(){let{centerX:e,y:t,width:n,height:a}=this;return new Ade(e-n/2,t,n,a)}isPointInPath(e,t){return this.getBBox().containsPoint(e,t)}distanceSquared(e,t){return this.getBBox().distanceSquared(e,t)}get midPoint(){return{x:this.centerX,y:this.y+this.height/2}}alignedCoordinates(){let{y:e,width:t,height:n,crisp:a,strokeAlignment:h}=this,{centerX:S,yOpen:E,yClose:L}=this,_=S-t/2,N=S+t/2,V=e,q=e+n;if(a&&t>1){S=this.align(S),E=this.align(E),L=this.align(L);let J=this.align(t/2);_=S-J,N=S+J,V=this.align(e),q=V+this.align(V,n)}let Y=(V+q)/2;return S+=h,_+=h,N+=h,V-=h,q+=h,E+=E<Y?h:-h,L+=L<Y?h:-h,{centerX:S,x0:_,x1:N,y0:V,y1:q,yOpen:E,yClose:L}}executeStroke(e,t){let{width:n,strokeWidth:a}=this;n<a&&(e.lineWidth=n),super.executeStroke(e,t)}};ve([yA()],TC.prototype,"centerX",2),ve([yA()],TC.prototype,"y",2),ve([yA()],TC.prototype,"width",2),ve([yA()],TC.prototype,"height",2),ve([yA()],TC.prototype,"yOpen",2),ve([yA()],TC.prototype,"yClose",2),ve([yA()],TC.prototype,"crisp",2),ve([yA()],TC.prototype,"strokeAlignment",2);var Dde=class extends TC{updatePath(){let{path:e}=this,{centerX:t,x0:n,x1:a,y0:h,y1:S,yOpen:E,yClose:L}=this.alignedCoordinates();e.clear(),e.moveTo(t,h),e.lineTo(t,S),Math.abs(a-n)>1&&(e.moveTo(n,E),e.lineTo(t,E),e.moveTo(t,L),e.lineTo(a,L))}},{ScenePathChangeDetection:V2,ExtendedPath2D:Ede}=xde._ModuleSupport,QR=class extends TC{constructor(){super(...arguments),this.wickPath=new Ede,this.wickStroke=void 0,this.wickStrokeWidth=void 0,this.wickStrokeOpacity=void 0}updatePath(){let{path:e,stroke:t,strokeWidth:n,strokeOpacity:a,lineDash:h,lineDashOffset:S,wickStroke:E,wickStrokeWidth:L,wickStrokeOpacity:_,wickLineDash:N,wickLineDashOffset:V,strokeAlignment:q}=this,{centerX:Y,x0:J,x1:re,y0:ce,y1:he,yOpen:me,yClose:we}=this.alignedCoordinates();this.path.clear(),this.wickPath.clear();let be=E!=null&&E!==t||L!=null&&L!==n||_!=null&&_!==a||N!=null&&N!==h||V!=null&&V!==S?this.wickPath:e;if(Math.abs(re-J)<=3){be.moveTo(Y,ce),be.lineTo(Y,he);return}let Le=Math.min(me,we),Fe=Math.max(me,we);be.moveTo(Y,ce),be.lineTo(Y,Le+n/2),be.moveTo(Y,he),be.lineTo(Y,Fe-n/2);let je=q+n/2,Xe=Fe-Le-2*je;if(Xe>0)e.rect(J+je,Le+je,re-J-2*je,Xe);else{let nt=(Le+Fe)/2;e.moveTo(J,nt),e.lineTo(re,nt)}}drawPath(e){super.drawPath(e);let{wickPath:t}=this;if(t.isEmpty())return;let{stroke:n,strokeWidth:a,strokeOpacity:h,lineDash:S,lineDashOffset:E,wickStroke:L=n,wickStrokeWidth:_=a,wickStrokeOpacity:N=h,wickLineDash:V=S,wickLineDashOffset:q=E}=this;_!==0&&(e.globalAlpha*=N,typeof L=="string"&&(e.strokeStyle=L),e.lineWidth=_,V!=null&&e.setLineDash(V),e.lineDashOffset=q,e.stroke(t.getPath2D()))}};ve([V2()],QR.prototype,"wickStroke",2),ve([V2()],QR.prototype,"wickStrokeWidth",2),ve([V2()],QR.prototype,"wickStrokeOpacity",2),ve([V2()],QR.prototype,"wickLineDash",2),ve([V2()],QR.prototype,"wickLineDashOffset",2);var Ide=(xt(),D(wt)),Tde=(xt(),D(wt)),{BaseProperties:v7,Validate:Nl,AbstractBarSeriesProperties:Rde,SeriesTooltip:Pde,STRING:Sy,COLOR_STRING:Lde,FUNCTION:Ode,LINE_DASH:_de,OBJECT:iN,POSITIVE_NUMBER:y7,RATIO:Fde}=Tde._ModuleSupport,OE=class extends v7{constructor(){super(...arguments),this.stroke="#333",this.strokeWidth=1,this.strokeOpacity=1,this.lineDash=[0],this.lineDashOffset=0}};ve([Nl(Lde)],OE.prototype,"stroke",2),ve([Nl(y7)],OE.prototype,"strokeWidth",2),ve([Nl(Fde)],OE.prototype,"strokeOpacity",2),ve([Nl(_de)],OE.prototype,"lineDash",2),ve([Nl(y7)],OE.prototype,"lineDashOffset",2);var IG=class extends v7{constructor(){super(...arguments),this.up=new OE,this.down=new OE}};ve([Nl(iN)],IG.prototype,"up",2),ve([Nl(iN)],IG.prototype,"down",2);var gm=class extends Rde{};ve([Nl(Sy)],gm.prototype,"xKey",2),ve([Nl(Sy)],gm.prototype,"openKey",2),ve([Nl(Sy)],gm.prototype,"closeKey",2),ve([Nl(Sy)],gm.prototype,"highKey",2),ve([Nl(Sy)],gm.prototype,"lowKey",2),ve([Nl(Sy,{optional:!0})],gm.prototype,"xName",2),ve([Nl(Sy,{optional:!0})],gm.prototype,"yName",2),ve([Nl(Sy,{optional:!0})],gm.prototype,"openName",2),ve([Nl(Sy,{optional:!0})],gm.prototype,"closeName",2),ve([Nl(Sy,{optional:!0})],gm.prototype,"highName",2),ve([Nl(Sy,{optional:!0})],gm.prototype,"lowName",2);var nN=class extends gm{constructor(){super(...arguments),this.tooltip=new Pde,this.item=new IG}};ve([Nl(iN)],nN.prototype,"tooltip",2),ve([Nl(iN)],nN.prototype,"item",2),ve([Nl(Ode,{optional:!0})],nN.prototype,"itemStyler",2);var{BaseProperties:TG,SeriesTooltip:Nde,Validate:Xc,COLOR_STRING:RG,FUNCTION:zde,LINE_DASH:b7,OBJECT:H2,POSITIVE_NUMBER:W2,RATIO:PG}=Ide._ModuleSupport,JR=class extends TG{};ve([Xc(RG,{optional:!0})],JR.prototype,"stroke",2),ve([Xc(W2)],JR.prototype,"strokeWidth",2),ve([Xc(PG)],JR.prototype,"strokeOpacity",2),ve([Xc(b7,{optional:!0})],JR.prototype,"lineDash",2),ve([Xc(W2)],JR.prototype,"lineDashOffset",2);var wy=class extends TG{constructor(){super(...arguments),this.fill="#c16068",this.fillOpacity=1,this.stroke="#333",this.strokeWidth=1,this.strokeOpacity=1,this.lineDash=[0],this.lineDashOffset=0,this.cornerRadius=0,this.wick=new JR}};ve([Xc(RG,{optional:!0})],wy.prototype,"fill",2),ve([Xc(PG)],wy.prototype,"fillOpacity",2),ve([Xc(RG)],wy.prototype,"stroke",2),ve([Xc(W2)],wy.prototype,"strokeWidth",2),ve([Xc(PG)],wy.prototype,"strokeOpacity",2),ve([Xc(b7)],wy.prototype,"lineDash",2),ve([Xc(W2)],wy.prototype,"lineDashOffset",2),ve([Xc(W2)],wy.prototype,"cornerRadius",2),ve([Xc(H2)],wy.prototype,"wick",2);var LG=class extends TG{constructor(){super(...arguments),this.up=new wy,this.down=new wy}};ve([Xc(H2)],LG.prototype,"up",2),ve([Xc(H2)],LG.prototype,"down",2);var aN=class extends gm{constructor(){super(...arguments),this.item=new LG,this.tooltip=new Nde}};ve([Xc(H2)],aN.prototype,"item",2),ve([Xc(H2)],aN.prototype,"tooltip",2),ve([Xc(zde,{optional:!0})],aN.prototype,"itemStyler",2);var{createDatumId:Bde}=AG._ModuleSupport,OG=class extends f7{constructor(){super(...arguments),this.properties=new aN}nodeFactory(){return new QR}updateDatumNodes({datumSelection:e,isHighlight:t}){let{id:n,properties:a}=this,{xKey:h,highKey:S,lowKey:E,openKey:L,closeKey:_,item:N,itemStyler:V}=a,{up:q,down:Y}=N,{fill:J,fillOpacity:re,stroke:ce,strokeWidth:he,strokeOpacity:me,lineDash:we,lineDashOffset:Me}=q,{stroke:be,strokeWidth:Le,strokeOpacity:Fe,lineDash:je,lineDashOffset:Xe}=q.wick,{fill:nt,fillOpacity:lt,stroke:ot,strokeWidth:vt,strokeOpacity:gt,lineDash:bt,lineDashOffset:At}=Y,{stroke:Rt,strokeWidth:It,strokeOpacity:Dt,lineDash:jt,lineDashOffset:Nt}=Y.wick,zt=t?a.highlightStyle.item:void 0;e.each((Ut,Vt)=>{var Ii,bi,wi,Li,Ln,on,Dn,ln,ra,sa,gs,jl,dh,Rs,Zh,Qc,eI,BC,RA,ZY,$Y,QY,JY,eX,tX;let{isRising:Wt,centerX:ci,width:li,y:oi,height:vi,yOpen:gi,yClose:fi,crisp:ki}=Vt,si;if(V!=null){let{fill:JSe,fillOpacity:ewe,stroke:twe,strokeWidth:iwe,strokeOpacity:nwe,lineDash:awe,lineDashOffset:owe}=Wt?q:Y;si=this.cachedDatumCallback(Bde(this.getDatumId(Vt),t?"highlight":"node"),()=>V({seriesId:n,itemId:Vt.itemId,xKey:h,highKey:S,lowKey:E,openKey:L,closeKey:_,datum:Vt.datum,fill:JSe,fillOpacity:ewe,strokeOpacity:nwe,stroke:twe,strokeWidth:iwe,lineDash:awe,lineDashOffset:owe,highlighted:t}))}Ut.centerX=ci,Ut.width=li,Ut.y=oi,Ut.height=vi,Ut.yOpen=gi,Ut.yClose=fi,Ut.crisp=ki,Ut.fill=(bi=(Ii=zt==null?void 0:zt.fill)!=null?Ii:si==null?void 0:si.fill)!=null?bi:Wt?J:nt,Ut.fillOpacity=(Li=(wi=zt==null?void 0:zt.fillOpacity)!=null?wi:si==null?void 0:si.fillOpacity)!=null?Li:Wt?re:lt,Ut.stroke=(on=(Ln=zt==null?void 0:zt.stroke)!=null?Ln:si==null?void 0:si.stroke)!=null?on:Wt?ce:ot,Ut.strokeWidth=(ln=(Dn=zt==null?void 0:zt.strokeWidth)!=null?Dn:si==null?void 0:si.strokeWidth)!=null?ln:Wt?he:vt,Ut.strokeOpacity=(sa=(ra=zt==null?void 0:zt.strokeOpacity)!=null?ra:si==null?void 0:si.strokeOpacity)!=null?sa:Wt?me:gt,Ut.lineDash=(jl=(gs=zt==null?void 0:zt.lineDash)!=null?gs:si==null?void 0:si.lineDash)!=null?jl:Wt?we:bt,Ut.lineDashOffset=(Rs=(dh=zt==null?void 0:zt.lineDashOffset)!=null?dh:si==null?void 0:si.lineDashOffset)!=null?Rs:Wt?Me:At;let di=si==null?void 0:si.wick;Ut.wickStroke=(Qc=(Zh=zt==null?void 0:zt.stroke)!=null?Zh:di==null?void 0:di.stroke)!=null?Qc:Wt?be:Rt,Ut.wickStrokeWidth=(BC=(eI=zt==null?void 0:zt.strokeWidth)!=null?eI:di==null?void 0:di.strokeWidth)!=null?BC:Wt?Le:It,Ut.wickStrokeOpacity=(ZY=(RA=zt==null?void 0:zt.strokeOpacity)!=null?RA:di==null?void 0:di.strokeOpacity)!=null?ZY:Wt?Fe:Dt,Ut.wickLineDash=(QY=($Y=zt==null?void 0:zt.lineDash)!=null?$Y:di==null?void 0:di.lineDash)!=null?QY:Wt?je:jt,Ut.wickLineDashOffset=(eX=(JY=zt==null?void 0:zt.lineDashOffset)!=null?JY:di==null?void 0:di.lineDashOffset)!=null?eX:Wt?Xe:Nt,Ut.strokeAlignment=((tX=si==null?void 0:si.strokeWidth)!=null?tX:Wt?he:vt)/2})}legendItemSymbol(){var h,S;let{up:e,down:t}=this.properties.item,n=new AG._ModuleSupport.LinearGradient("rgb",[{color:e.fill,offset:0},{color:e.fill,offset:.5},{color:t.fill,offset:.5}],90),a=new AG._ModuleSupport.LinearGradient("rgb",[{color:e.stroke,offset:0},{color:e.stroke,offset:.5},{color:t.stroke,offset:.5}],90);return{marker:{fill:n,fillOpacity:e.fillOpacity,stroke:a,strokeWidth:(h=e.strokeWidth)!=null?h:1,strokeOpacity:(S=e.strokeOpacity)!=null?S:1}}}getLegendData(e){var N;let{id:t,data:n,visible:a,ctx:{legendManager:h}}=this,{xKey:S,yName:E,showInLegend:L,legendItemName:_}=this.properties;return!(n!=null&&n.length)||!S||e!=="category"?[]:[{legendType:"category",id:t,itemId:t,seriesId:t,enabled:a&&h.getItemEnabled({seriesId:t,itemId:t}),label:{text:(N=_!=null?_:E)!=null?N:t},symbol:this.legendItemSymbol(),legendItemName:_,hideInLegend:!L}]}};OG.className="CandleStickSeries",OG.type="candlestick";var Gde=(xt(),D(wt)),{CARTESIAN_AXIS_TYPE:C7}=Gde._ModuleSupport.ThemeConstants,jde={series:{highlightStyle:{item:{strokeWidth:3}}},animation:{enabled:!1},axes:{[C7.NUMBER]:{crosshair:{snap:!1}},[C7.ORDINAL_TIME]:{groupPaddingInner:0,crosshair:{enabled:!0}}}},{CARTESIAN_AXIS_TYPE:S7,CARTESIAN_POSITION:w7}=cde._ModuleSupport.ThemeConstants,Vde={type:"series",optionsKey:"series[]",packageType:"enterprise",chartTypes:["cartesian"],identifier:"candlestick",moduleFactory:e=>new OG(e),tooltipDefaults:{range:"nearest"},defaultAxes:[{type:S7.NUMBER,position:w7.LEFT},{type:S7.ORDINAL_TIME,position:w7.BOTTOM}],themeTemplate:jde,groupable:!1,paletteFactory:({takeColors:e,colorsCount:t,userPalette:n,palette:a})=>{if(n==="user-indexed"){let{fills:h,strokes:S}=e(t);return{item:{up:{fill:"transparent",stroke:S[0]},down:{fill:h[0],stroke:S[0]}}}}return{item:{up:a.up,down:a.down}}}},Hde=(xt(),D(wt)),Wde=(xt(),D(wt)),Ude=(xt(),D(wt)),Kde=(xt(),D(wt)),{Logger:qde}=Kde._ModuleSupport;function x7(e,t,n){n||(t=Yde(t));let a=new Map;for(let S of e)a.set(S.id,{datum:S,linksBefore:[],linksAfter:[],maxPathLengthBefore:-1,maxPathLengthAfter:-1});let h=0;return a.forEach((S,E)=>{h=Math.max(h,_G(a,t,S,E,-1,[])+_G(a,t,S,E,1,[])+1)}),{links:t,nodeGraph:a,maxPathLength:h}}function M7(e,t,n,a){let h=a.indexOf(t);if(h!==-1){for(let E=h;E<a.length;E+=1)n.add(a[E]);return}a.push(t);let{toNode:S}=t;for(let E of e)E.fromNode===S&&M7(e,E,n,a);a.pop()}function Yde(e){let t=new Set;for(let n of e)M7(e,n,t,[]);return t.size!==0&&qde.warnOnce("Some links formed circular references. These will be removed from the output."),t.size===0?e:e.filter(n=>!t.has(n))}function _G(e,t,n,a,h,S){if(S.includes(a))return 1/0;let E=h===-1?n.maxPathLengthBefore:n.maxPathLengthAfter;if(E===-1){E=0;let L=h===-1?n.linksBefore:n.linksAfter;for(let _ of t){let{fromNode:N,toNode:V}=_,q=h===-1?V.id:N.id,Y=h===-1?N.id:V.id,J=a===q?e.get(Y):void 0;J!=null&&(L.push({node:J,link:_}),S==null||S.push(a),E=Math.max(E,_G(e,t,J,Y,h,S)+1),S==null||S.pop())}h===-1?n.maxPathLengthBefore=E:n.maxPathLengthAfter=E}return E}var{DataModelSeries:Xde,DataController:Zde,Validate:$de,ARRAY:Qde,keyProperty:Jde,valueProperty:oN,Selection:_E,Group:eP,TransformableText:eue}=Ude._ModuleSupport,FG=class extends Xde{constructor(){super(...arguments),this._chartNodes=void 0,this.nodeCount=0,this.linkCount=0,this.nodesDataModel=void 0,this.nodesProcessedData=void 0,this.processedNodes=new Map,this.linkGroup=this.contentGroup.appendChild(new eP({name:"linkGroup"})),this.nodeGroup=this.contentGroup.appendChild(new eP({name:"nodeGroup"})),this.focusLinkGroup=this.highlightNode.appendChild(new eP({name:"linkGroup"})),this.focusNodeGroup=this.highlightNode.appendChild(new eP({name:"nodeGroup"})),this.highlightLinkGroup=this.highlightNode.appendChild(new eP({name:"linkGroup"})),this.highlightNodeGroup=this.highlightNode.appendChild(new eP({name:"nodeGroup"})),this.labelSelection=_E.select(this.labelGroup,eue),this.linkSelection=_E.select(this.linkGroup,()=>this.linkFactory()),this.nodeSelection=_E.select(this.nodeGroup,()=>this.nodeFactory()),this.focusLinkSelection=_E.select(this.focusLinkGroup,()=>this.linkFactory()),this.focusNodeSelection=_E.select(this.focusNodeGroup,()=>this.nodeFactory()),this.highlightLinkSelection=_E.select(this.highlightLinkGroup,()=>this.linkFactory()),this.highlightNodeSelection=_E.select(this.highlightNodeGroup,()=>this.nodeFactory())}get nodes(){var e;return(e=this.properties.nodes)!=null?e:this._chartNodes}setChartNodes(e){this._chartNodes=e,this.nodes===e&&(this.nodeDataRefresh=!0)}getNodeData(){var e;return(e=this.contextNodeData)==null?void 0:e.nodeData}async processData(e){let{data:t,nodes:n}=this;if(t==null||!this.properties.isValid())return;let{fromKey:a,toKey:h,sizeKey:S,idKey:E,labelKey:L}=this.properties,_=new Zde("standalone",e.suppressFieldDotNotation),N=n!=null?_.request(this.id,n,{props:[Jde(E,void 0,{id:"idValue",includeProperty:!1}),...L!=null?[oN(L,void 0,{id:"labelValue",includeProperty:!1})]:[]],groupByKeys:!0}):null,V=this.requestDataModel(e,t,{props:[oN(a,void 0,{id:"fromValue",includeProperty:!1}),oN(h,void 0,{id:"toValue",includeProperty:!1}),...S!=null?[oN(S,void 0,{id:"sizeValue",includeProperty:!1,missingValue:0})]:[]],groupByKeys:!1});n!=null&&_.execute();let[q,Y]=await Promise.all([N,V]);this.nodesDataModel=q==null?void 0:q.dataModel,this.nodesProcessedData=q==null?void 0:q.processedData;let J=new Map;if(q==null){let re=Y.dataModel.resolveColumnById(this,"fromValue",Y.processedData),ce=Y.dataModel.resolveColumnById(this,"toValue",Y.processedData),he=me=>{let we=J.size;return{series:this,itemId:void 0,datum:{},datumIndex:we,type:1,index:we,id:me,size:0,label:me}};Y.processedData.rawData.forEach((me,we)=>{let Me=re[we],be=ce[we];Me==null||be==null||(J.has(Me)||J.set(Me,he(Me)),J.has(be)||J.set(be,he(be)))})}else{let re=q.dataModel.resolveColumnById(this,"idValue",q.processedData),ce=L!=null?q.dataModel.resolveColumnById(this,"labelValue",q.processedData):void 0;q.processedData.rawData.forEach((he,me)=>{let we=re[me],Me=ce==null?void 0:ce[me];J.set(we,{series:this,itemId:void 0,datum:he,datumIndex:me,type:1,index:me,id:we,size:0,label:Me})})}this.processedNodes=J}getNodeGraph(e,t,{includeCircularReferences:n}){let{dataModel:a,processedData:h}=this;if(a==null||h==null||h.rawData.length===0){let{links:re,nodeGraph:ce,maxPathLength:he}=x7(new Map().values(),[],n);return this.nodeCount=0,this.linkCount=0,{nodeGraph:ce,links:re,maxPathLength:he}}let{sizeKey:S}=this.properties,E=a.resolveColumnById(this,"fromValue",h),L=a.resolveColumnById(this,"toValue",h),_=S!=null?a.resolveColumnById(this,"sizeValue",h):void 0,N=new Map;this.processedNodes.forEach(re=>{let ce=e(re);N.set(re.id,ce)});let V=[];h.rawData.forEach((re,ce)=>{let he=E[ce],me=L[ce],we=_!=null?_[ce]:1,Me=N.get(he),be=N.get(me);if(we<=0||Me==null||be==null)return;let Le=t({series:this,itemId:void 0,datum:re,datumIndex:ce,type:0,index:ce,fromNode:Me,toNode:be,size:we});V.push(Le)});let{links:q,nodeGraph:Y,maxPathLength:J}=x7(N.values(),V,n);return this.nodeCount=Y.size,this.linkCount=q.length,{nodeGraph:Y,links:q,maxPathLength:J}}updateSelections(){this.nodeDataRefresh&&(this.contextNodeData=this.createNodeData(),this.nodeDataRefresh=!1)}update(e){var V,q,Y,J,re,ce,he,me;let{seriesRect:t}=e,n={seriesRectWidth:(V=t==null?void 0:t.width)!=null?V:0,seriesRectHeight:(q=t==null?void 0:t.height)!=null?q:0};(this._nodeDataDependencies==null||this._nodeDataDependencies.seriesRectWidth!==n.seriesRectWidth||this._nodeDataDependencies.seriesRectHeight!==n.seriesRectHeight)&&(this._nodeDataDependencies=n),this.updateSelections();let a=(J=(Y=this.contextNodeData)==null?void 0:Y.nodeData)!=null?J:[],h=(ce=(re=this.contextNodeData)==null?void 0:re.labelData)!=null?ce:[],S=(he=this.ctx.highlightManager)==null?void 0:he.getActiveHighlight();if((S==null?void 0:S.series)===this&&S.type==null){let{itemId:we}=S;S=we!=null?a.find(Me=>Me.type===1&&Me.id===we):void 0}else(S==null?void 0:S.series)!==this&&(S=void 0);this.contentGroup.visible=this.visible,this.contentGroup.opacity=S!=null&&(me=this.properties.highlightStyle.series.dimOpacity)!=null?me:1,this.labelSelection=this.updateLabelSelection({labelData:h,labelSelection:this.labelSelection}),this.updateLabelNodes({labelSelection:this.labelSelection}),this.linkSelection=this.updateLinkSelection({nodeData:a.filter(we=>we.type===0),datumSelection:this.linkSelection}),this.updateLinkNodes({datumSelection:this.linkSelection,isHighlight:!1}),this.nodeSelection=this.updateNodeSelection({nodeData:a.filter(we=>we.type===1),datumSelection:this.nodeSelection}),this.updateNodeNodes({datumSelection:this.nodeSelection,isHighlight:!1});let E,L,_,N;(S==null?void 0:S.type)===1?(E=a.filter(we=>we.type===0&&(we.toNode===S||we.fromNode===S)),L=E.map(we=>we.fromNode===S?we.toNode:we.fromNode),L.push(S),_=[],N=[S]):(S==null?void 0:S.type)===0?(E=[S],L=[S.fromNode,S.toNode],_=[S],N=[]):(E=[],L=[],_=[],N=[]),this.focusLinkSelection=this.updateLinkSelection({nodeData:E,datumSelection:this.focusLinkSelection}),this.updateLinkNodes({datumSelection:this.focusLinkSelection,isHighlight:!1}),this.focusNodeSelection=this.updateNodeSelection({nodeData:L,datumSelection:this.focusNodeSelection}),this.updateNodeNodes({datumSelection:this.focusNodeSelection,isHighlight:!1}),this.highlightLinkSelection=this.updateLinkSelection({nodeData:_,datumSelection:this.highlightLinkSelection}),this.updateLinkNodes({datumSelection:this.highlightLinkSelection,isHighlight:!0}),this.highlightNodeSelection=this.updateNodeSelection({nodeData:N,datumSelection:this.highlightNodeSelection}),this.updateNodeNodes({datumSelection:this.highlightNodeSelection,isHighlight:!0})}resetAnimation(e){}getSeriesDomain(e){return[]}getSeriesRange(e,t){return[NaN,NaN]}legendItemSymbol(e,t,n={}){let{fills:a,strokes:h}=this.properties,{fill:S=a[t%a.length],fillOpacity:E=1,stroke:L=h[t%h.length],strokeWidth:_=0,strokeOpacity:N=1}=n;return{marker:{fill:S,fillOpacity:E,stroke:L,strokeWidth:_,strokeOpacity:N}}}getLegendData(e){if(e!=="category")return[];let{showInLegend:t}=this.properties;return Array.from(this.processedNodes.values(),({id:n,label:a},h)=>({legendType:"category",id:this.id,itemId:n,seriesId:this.id,enabled:!0,label:{text:a!=null?a:n},symbol:this.legendItemSymbol(1,h),hideInLegend:!t,isFixed:!0}))}pickNodeClosestDatum({x:e,y:t}){let n=1/0,a;return this.linkSelection.each((h,S)=>{let E=h.containsPoint(e,t)?0:1/0;E<n&&(n=E,a=S)}),this.nodeSelection.each((h,S)=>{let E=h.distanceSquared(e,t);E<n&&(n=E,a=S)}),a!=null?{datum:a,distance:Math.sqrt(n)}:void 0}getDatumAriaText(e,t){var n;if(e.type===0)return this.ctx.localeManager.t("ariaAnnounceFlowProportionLink",{index:e.index+1,count:this.linkCount,from:e.fromNode.id,to:e.toNode.id,size:e.size,sizeName:(n=this.properties.sizeName)!=null?n:this.properties.sizeKey});if(e.type===1)return this.ctx.localeManager.t("ariaAnnounceFlowProportionNode",{index:e.index+1,count:this.nodeCount,description:t})}};ve([$de(Qde,{optional:!0,property:"nodes"})],FG.prototype,"_chartNodes",2);var tue=(xt(),D(wt)),{BBox:iue,Path:nue,ScenePathChangeDetection:bA}=tue._ModuleSupport;function rN({radius:e,startAngle:t,endAngle:n,tension:a}){let h=e*Math.cos(t),S=e*Math.sin(t),E=e*Math.cos(n),L=e*Math.sin(n),_=h*a,N=S*a,V=E*a,q=L*a;return{x:[h,_,V,E],y:[S,N,q,L]}}var _w=class extends nue{constructor(){super(...arguments),this.centerX=0,this.centerY=0,this.radius=0,this.startAngle1=0,this.endAngle1=0,this.startAngle2=0,this.endAngle2=0,this.tension=1}computeBBox(){let{centerX:e,centerY:t,radius:n,startAngle1:a,endAngle1:h,startAngle2:S,endAngle2:E,tension:L}=this,_=rN({radius:n,startAngle:a,endAngle:E,tension:L}),N=rN({radius:n,startAngle:S,endAngle:h,tension:L}),V=Math.min(..._.x,...N.x),q=Math.max(..._.x,...N.x)-V,Y=Math.min(..._.y,...N.y),J=Math.max(..._.y,...N.y)-Y;return new iue(e+V,t+Y,q,J)}tensionedCurveTo(e,t,n,a,h,S,E,L){let{path:_,tension:N}=this,V=1-N;_.cubicCurveTo((n-e)*V+e,(a-t)*V+t,(h-E)*V+E,(S-L)*V+L,E,L)}updatePath(){let{path:e,centerX:t,centerY:n,radius:a}=this,{startAngle1:h,endAngle1:S,startAngle2:E,endAngle2:L}=this;h>E&&([h,E]=[E,h],[S,L]=[L,S]),e.clear();let _=t+a*Math.cos(h),N=n+a*Math.sin(h);e.moveTo(_,N),this.tensionedCurveTo(_,N,t,n,t,n,t+a*Math.cos(L),n+a*Math.sin(L)),e.arc(t,n,a,L,E,!0),this.tensionedCurveTo(t+a*Math.cos(E),n+a*Math.sin(E),t,n,t,n,t+a*Math.cos(S),n+a*Math.sin(S)),e.arc(t,n,a,S,h,!0),e.closePath()}};ve([bA()],_w.prototype,"centerX",2),ve([bA()],_w.prototype,"centerY",2),ve([bA()],_w.prototype,"radius",2),ve([bA()],_w.prototype,"startAngle1",2),ve([bA()],_w.prototype,"endAngle1",2),ve([bA()],_w.prototype,"startAngle2",2),ve([bA()],_w.prototype,"endAngle2",2),ve([bA()],_w.prototype,"tension",2);var aue=(xt(),D(wt)),{BaseProperties:k7,SeriesTooltip:oue,SeriesProperties:rue,ARRAY:sue,COLOR_STRING:sN,COLOR_STRING_ARRAY:A7,FUNCTION:D7,LINE_DASH:E7,OBJECT:lN,POSITIVE_NUMBER:CA,RATIO:U2,STRING:SA,Validate:Za,Label:lue}=aue._ModuleSupport,NG=class extends lue{constructor(){super(...arguments),this.spacing=1,this.maxWidth=1}};ve([Za(CA)],NG.prototype,"spacing",2),ve([Za(CA)],NG.prototype,"maxWidth",2);var RC=class extends k7{constructor(){super(...arguments),this.fill=void 0,this.fillOpacity=1,this.stroke=void 0,this.strokeOpacity=1,this.strokeWidth=1,this.lineDash=[0],this.lineDashOffset=0,this.tension=0}};ve([Za(sN,{optional:!0})],RC.prototype,"fill",2),ve([Za(U2)],RC.prototype,"fillOpacity",2),ve([Za(sN,{optional:!0})],RC.prototype,"stroke",2),ve([Za(U2)],RC.prototype,"strokeOpacity",2),ve([Za(CA)],RC.prototype,"strokeWidth",2),ve([Za(E7)],RC.prototype,"lineDash",2),ve([Za(CA)],RC.prototype,"lineDashOffset",2),ve([Za(U2)],RC.prototype,"tension",2),ve([Za(D7,{optional:!0})],RC.prototype,"itemStyler",2);var xy=class extends k7{constructor(){super(...arguments),this.spacing=1,this.width=1,this.fill=void 0,this.fillOpacity=1,this.stroke=void 0,this.strokeOpacity=1,this.strokeWidth=1,this.lineDash=[0],this.lineDashOffset=0}};ve([Za(CA)],xy.prototype,"spacing",2),ve([Za(CA)],xy.prototype,"width",2),ve([Za(sN,{optional:!0})],xy.prototype,"fill",2),ve([Za(U2)],xy.prototype,"fillOpacity",2),ve([Za(sN,{optional:!0})],xy.prototype,"stroke",2),ve([Za(U2)],xy.prototype,"strokeOpacity",2),ve([Za(CA)],xy.prototype,"strokeWidth",2),ve([Za(E7)],xy.prototype,"lineDash",2),ve([Za(CA)],xy.prototype,"lineDashOffset",2),ve([Za(D7,{optional:!0})],xy.prototype,"itemStyler",2);var ah=class extends rue{constructor(){super(...arguments),this.idKey="",this.idName=void 0,this.labelKey=void 0,this.labelName=void 0,this.sizeKey=void 0,this.sizeName=void 0,this.nodes=void 0,this.fills=[],this.strokes=[],this.label=new NG,this.link=new RC,this.node=new xy,this.tooltip=new oue}};ve([Za(SA)],ah.prototype,"fromKey",2),ve([Za(SA)],ah.prototype,"toKey",2),ve([Za(SA)],ah.prototype,"idKey",2),ve([Za(SA,{optional:!0})],ah.prototype,"idName",2),ve([Za(SA,{optional:!0})],ah.prototype,"labelKey",2),ve([Za(SA,{optional:!0})],ah.prototype,"labelName",2),ve([Za(SA,{optional:!0})],ah.prototype,"sizeKey",2),ve([Za(SA,{optional:!0})],ah.prototype,"sizeName",2),ve([Za(sue,{optional:!0})],ah.prototype,"nodes",2),ve([Za(A7)],ah.prototype,"fills",2),ve([Za(A7)],ah.prototype,"strokes",2),ve([Za(lN)],ah.prototype,"label",2),ve([Za(lN)],ah.prototype,"link",2),ve([Za(lN)],ah.prototype,"node",2),ve([Za(lN)],ah.prototype,"tooltip",2);var{SeriesNodePickMode:I7,CachedTextMeasurerPool:cue,TextWrapper:due,TextUtils:uue,createDatumId:cN,angleBetween:dN,normalizeAngle360:hue,isBetweenAngles:T7,Logger:gue,Sector:pue,evaluateBezier:uN}=Wde._ModuleSupport,hN=e=>e.startAngle+dN(e.startAngle,e.endAngle)/2,zG=class extends FG{constructor(e){super({moduleCtx:e,pickModes:[I7.NEAREST_NODE,I7.EXACT_SHAPE_MATCH]}),this.properties=new ah}isLabelEnabled(){return(this.properties.labelKey!=null||this.nodes==null)&&this.properties.label.enabled}linkFactory(){return new _w}nodeFactory(){return new pue}createNodeData(){let{id:e,_nodeDataDependencies:{seriesRectWidth:t,seriesRectHeight:n}={seriesRectWidth:0,seriesRectHeight:0}}=this,{fromKey:a,toKey:h,sizeKey:S,label:{spacing:E,maxWidth:L,fontSize:_},node:{width:N,spacing:V}}=this.properties,q=t/2,Y=n/2,J=[],{nodeGraph:re,links:ce}=this.getNodeGraph(gt=>et(pe({},gt),{centerX:q,centerY:Y,innerRadius:NaN,outerRadius:NaN,startAngle:NaN,endAngle:NaN}),gt=>et(pe({},gt),{centerX:q,centerY:Y,radius:NaN,startAngle1:NaN,endAngle1:NaN,startAngle2:NaN,endAngle2:NaN}),{includeCircularReferences:!0}),he=0;re.forEach(({datum:gt,linksBefore:bt,linksAfter:At},Rt)=>{let It=bt.reduce((Dt,{link:jt})=>Dt+jt.size,0)+At.reduce((Dt,{link:jt})=>Dt+jt.size,0);if(It===0)re.delete(Rt);else{gt.size=It,he+=gt.size;let Dt=this.getLabelText(this.properties.label,{datum:gt.datum,value:gt.label,fromKey:a,toKey:h,sizeKey:S,size:gt.size});gt.label=String(Dt)}});let me=0;if(this.isLabelEnabled()){let gt=this.properties.label.getFont(),bt=0;re.forEach(({datum:At})=>{let{id:Rt,label:It}=At;if(It==null)return;let Dt=due.wrapText(It,{maxWidth:L,font:this.properties.label,textWrap:"never"}),{width:jt}=cue.measureText(Dt,{font:gt,textAlign:"left",textBaseline:"middle"});bt=Math.max(jt,bt),J.push({id:Rt,text:Dt,centerX:q,centerY:Y,angle:NaN,radius:NaN})}),me=bt+E}let we=re.size,Me=Math.min(t,n)/2-N-me,be=V/Me;if(me!==0&&(we*be>=1.5*Math.PI||Me<=0)&&(J=[],Me=Math.min(t,n)/2-N,be=V/Me),we*be>=2*Math.PI||Me<=0){gue.warnOnce("There was insufficient space to display the Chord Series.");return}let Le=Me,Fe=Me+N,je=Math.max((2*Math.PI-we*be)/he,0),Xe=0;re.forEach(({datum:gt})=>{gt.innerRadius=Le,gt.outerRadius=Fe,gt.startAngle=Xe,gt.endAngle=Xe+gt.size*je,Xe=gt.endAngle+be;let bt=(gt.innerRadius+gt.outerRadius)/2,At=hN(gt);gt.midPoint={x:gt.centerX+bt*Math.cos(At),y:gt.centerY+bt*Math.sin(At)}});let nt=[];re.forEach(({datum:gt,linksBefore:bt,linksAfter:At})=>{let Rt=hN(gt),It=[...bt.map(jt=>({link:jt.link,distance:dN(hN(jt.node.datum),Rt),after:!1})),...At.map(jt=>({link:jt.link,distance:dN(hN(jt.node.datum),Rt),after:!0}))],Dt=gt.startAngle;It.toSorted((jt,Nt)=>jt.distance-Nt.distance).forEach(({link:jt,after:Nt})=>{let zt=jt.size*je;Nt?(jt.startAngle1=Dt,jt.endAngle1=Dt+zt):(jt.startAngle2=Dt,jt.endAngle2=Dt+zt),Dt+=jt.size*je}),nt.push(gt)});let{tension:lt}=this.properties.link;ce.forEach(gt=>{gt.radius=Me;let bt=rN({radius:Me,startAngle:gt.startAngle1,endAngle:gt.endAngle2,tension:lt}),At=rN({radius:Me,startAngle:gt.startAngle2,endAngle:gt.endAngle1,tension:lt}),Rt=uN(...bt.x,.5),It=uN(...bt.y,.5),Dt=uN(...At.x,.5),jt=uN(...At.y,.5);gt.midPoint={x:gt.centerX+(Rt+Dt)/2,y:gt.centerY+(It+jt)/2},nt.push(gt)}),J.forEach(gt=>{var At;let bt=(At=re.get(gt.id))==null?void 0:At.datum;bt!=null&&(gt.radius=Fe+E,gt.angle=hue(bt.startAngle+dN(bt.startAngle,bt.endAngle)/2))}),J.sort((gt,bt)=>gt.angle-bt.angle);let ot=1/0,vt=-1/0;return J=J.filter(gt=>{let bt=uue.getLineHeight(_),At=Math.atan2(bt/2,gt.radius),Rt=gt.angle-At,It=gt.angle+At;return T7(ot,Rt,It)||T7(vt,Rt,It)?!1:(ot=Math.min(Rt,ot),vt=Math.max(It,vt),!0)}),{itemId:e,nodeData:nt,labelData:J}}updateLabelSelection(e){let t=this.isLabelEnabled()?e.labelData:[];return e.labelSelection.update(t)}updateLabelNodes(e){let{labelSelection:t}=e,{color:n,fontStyle:a,fontWeight:h,fontSize:S,fontFamily:E}=this.properties.label;t.each((L,{text:_,centerX:N,centerY:V,radius:q,angle:Y})=>{L.visible=!0,L.translationX=N+q*Math.cos(Y),L.translationY=V+q*Math.sin(Y),L.text=_,L.fill=n,L.fontStyle=a,L.fontWeight=h,L.fontSize=S,L.fontFamily=E,L.textBaseline="middle",Math.cos(Y)>=0?(L.textAlign="left",L.rotation=Y):(L.textAlign="right",L.rotation=Y-Math.PI)})}updateNodeSelection(e){return e.datumSelection.update(e.nodeData,void 0,t=>cN([t.type,t.id]))}getBaseNodeStyle(e){var V,q,Y,J,re,ce,he;let{properties:t}=this,{fill:n,fillOpacity:a,stroke:h,strokeOpacity:S,lineDash:E,lineDashOffset:L}=t.node,_=this.getStrokeWidth(t.node.strokeWidth),N=e?t.highlightStyle.item:void 0;return{fill:(V=N==null?void 0:N.fill)!=null?V:n,fillOpacity:(q=N==null?void 0:N.fillOpacity)!=null?q:a,stroke:(Y=N==null?void 0:N.stroke)!=null?Y:h,strokeOpacity:(J=N==null?void 0:N.strokeOpacity)!=null?J:S,strokeWidth:(re=N==null?void 0:N.strokeWidth)!=null?re:_,lineDash:(ce=N==null?void 0:N.lineDash)!=null?ce:E,lineDashOffset:(he=N==null?void 0:N.lineDashOffset)!=null?he:L}}getNodeStyleOverrides(e,t,n,a,h,S,E){var ce,he;let{id:L,properties:_}=this,{fills:N,strokes:V}=_,{itemStyler:q}=_.node,Y=(ce=S.fill)!=null?ce:N[n%N.length],J=(he=S.stroke)!=null?he:V[n%V.length],re={};if(E||(re.fill=Y,re.stroke=J),q!=null){let me=this.cachedDatumCallback(cN(e,E?"highlight":"node"),()=>{let{fillOpacity:we=1,strokeOpacity:Me=1,strokeWidth:be=0,lineDash:Le=[],lineDashOffset:Fe=0}=S;return q({seriesId:L,datum:t,highlighted:E,label:h,size:a,fill:Y,fillOpacity:we,stroke:J,strokeOpacity:Me,strokeWidth:be,lineDash:Le,lineDashOffset:Fe})});Object.assign(re,me)}return re}updateNodeNodes(e){let{datumSelection:t,isHighlight:n}=e,a=this.getBaseNodeStyle(n);t.each((h,S)=>{var V,q,Y,J,re,ce,he;let{datumIndex:E,size:L,label:_}=S,N=this.getNodeStyleOverrides(String(E),S,E,L,_,a,n);h.centerX=S.centerX,h.centerY=S.centerY,h.innerRadius=S.innerRadius,h.outerRadius=S.outerRadius,h.startAngle=S.startAngle,h.endAngle=S.endAngle,h.fill=(V=N.fill)!=null?V:a==null?void 0:a.fill,h.fillOpacity=(q=N.fillOpacity)!=null?q:a==null?void 0:a.fillOpacity,h.stroke=(Y=N.stroke)!=null?Y:a==null?void 0:a.stroke,h.strokeOpacity=(J=N.strokeOpacity)!=null?J:a==null?void 0:a.strokeOpacity,h.strokeWidth=(re=N.strokeWidth)!=null?re:a==null?void 0:a.strokeWidth,h.lineDash=(ce=N.lineDash)!=null?ce:a==null?void 0:a.lineDash,h.lineDashOffset=(he=N.lineDashOffset)!=null?he:a==null?void 0:a.lineDashOffset,h.inset=h.strokeWidth/2})}updateLinkSelection(e){return e.datumSelection.update(e.nodeData,void 0,t=>cN([t.type,t.index,t.fromNode.id,t.toNode.id]))}getBaseLinkStyle(e){var q,Y,J,re,ce,he,me;let{properties:t}=this,{fill:n,fillOpacity:a,stroke:h,strokeOpacity:S,lineDash:E,lineDashOffset:L,tension:_}=t.link,N=this.getStrokeWidth(t.link.strokeWidth),V=e?t.highlightStyle.item:void 0;return{fill:(q=V==null?void 0:V.fill)!=null?q:n,fillOpacity:(Y=V==null?void 0:V.fillOpacity)!=null?Y:a,stroke:(J=V==null?void 0:V.stroke)!=null?J:h,strokeOpacity:(re=V==null?void 0:V.strokeOpacity)!=null?re:S,strokeWidth:(ce=V==null?void 0:V.strokeWidth)!=null?ce:N,lineDash:(he=V==null?void 0:V.lineDash)!=null?he:E,lineDashOffset:(me=V==null?void 0:V.lineDashOffset)!=null?me:L,tension:_}}getLinkStyleOverrides(e,t,n,a,h){var J,re;let{id:S,properties:E}=this,{fills:L,strokes:_}=E,{itemStyler:N}=E.link,V=(J=a.fill)!=null?J:L[n%L.length],q=(re=a.stroke)!=null?re:_[n%_.length],Y={};if(h||(Y.fill=V,Y.stroke=q),N!=null){let ce=this.cachedDatumCallback(cN(e,h?"highlight":"node"),()=>{let{fillOpacity:he=1,strokeOpacity:me=1,strokeWidth:we=0,lineDash:Me=[],lineDashOffset:be=0,tension:Le}=a;return N({seriesId:S,datum:t,highlighted:h,tension:Le,fill:V,fillOpacity:he,stroke:q,strokeOpacity:me,strokeWidth:we,lineDash:Me,lineDashOffset:be})});Object.assign(Y,ce)}return Y}updateLinkNodes(e){let{datumSelection:t,isHighlight:n}=e,a=this.getBaseLinkStyle(n);t.each((h,S)=>{var N,V,q,Y,J,re,ce,he;let{datumIndex:E}=S,L=S.fromNode.datumIndex,_=this.getLinkStyleOverrides(String(E),S,L,a,n);h.centerX=S.centerX,h.centerY=S.centerY,h.radius=S.radius,h.startAngle1=S.startAngle1,h.endAngle1=S.endAngle1,h.startAngle2=S.startAngle2,h.endAngle2=S.endAngle2,h.fill=(N=_==null?void 0:_.fill)!=null?N:a.fill,h.fillOpacity=(V=_==null?void 0:_.fillOpacity)!=null?V:a.fillOpacity,h.stroke=(q=_==null?void 0:_.stroke)!=null?q:a.stroke,h.strokeOpacity=(Y=_==null?void 0:_.strokeOpacity)!=null?Y:a.strokeOpacity,h.strokeWidth=(J=_==null?void 0:_.strokeWidth)!=null?J:a.strokeWidth,h.lineDash=(re=_==null?void 0:_.lineDash)!=null?re:a.lineDash,h.lineDashOffset=(ce=_==null?void 0:_.lineDashOffset)!=null?ce:a.lineDashOffset,h.tension=(he=_==null?void 0:_.tension)!=null?he:a.tension})}getTooltipContent(e){let{id:t,processedData:n,nodesProcessedData:a,properties:h}=this,{fromKey:S,toKey:E,sizeKey:L,sizeName:_,tooltip:N}=h,{datumIndex:V}=e,q=e.type===0?e.fromNode.index:e.index,Y=e.type===0?`${e.fromNode.label} - ${e.toNode.label}`:e.label,J=e.type===0?n==null?void 0:n.rawData[e.datumIndex]:a==null?void 0:a.rawData[e.datumIndex],re=e.size,ce;if(e.type===0){let he=e.fromNode.datumIndex,me=this.getBaseLinkStyle(!1);Object.assign(me,this.getLinkStyleOverrides(String(V),J,he,me,!1)),ce=me}else{let he=e.label,me=this.getBaseNodeStyle(!1);Object.assign(me,this.getNodeStyleOverrides(String(V),J,V,re,he,me,!1)),ce=me}return N.formatTooltip({title:Y,symbol:this.legendItemSymbol(e.type,q,ce),data:L!=null?[{label:_,fallbackLabel:L,value:String(re)}]:[]},pe({seriesId:t,datum:J,title:Y,fromKey:S,toKey:E,sizeKey:L,sizeName:_,size:re},ce))}computeFocusBounds({datumIndex:e}){var n;let t=(n=this.contextNodeData)==null?void 0:n.nodeData[e];if((t==null?void 0:t.type)===1){for(let a of this.nodeSelection)if(a.datum===t)return a.node;return}else if((t==null?void 0:t.type)===0){for(let a of this.linkSelection)if(a.datum===t)return a.node;return}}};zG.className="ChordSeries",zG.type="chord";var{DEFAULT_FONT_FAMILY:mue,DEFAULT_LABEL_COLOUR:fue}=Hde._ModuleSupport.ThemeSymbols,vue={type:"series",optionsKey:"series[]",packageType:"enterprise",chartTypes:["flow-proportion"],solo:!0,identifier:"chord",tooltipDefaults:{range:"exact"},moduleFactory:e=>new zG(e),themeTemplate:{series:{highlightStyle:{series:{dimOpacity:.2}},label:{fontFamily:mue,color:fue,spacing:5,maxWidth:100},node:{spacing:8,width:10,strokeWidth:0},link:{fillOpacity:.5,strokeWidth:0,tension:.4}},legend:{enabled:!1,toggleSeries:!1}},paletteFactory({takeColors:e,colorsCount:t}){let{fills:n,strokes:a}=e(t);return{fills:n,strokes:a}}},yue=(xt(),D(wt)),bue=(xt(),D(wt)),{ThemeSymbols:{DEFAULT_INSIDE_SERIES_LABEL_COLOUR:Cue,DEFAULT_FONT_FAMILY:Sue},ThemeConstants:{CARTESIAN_AXIS_TYPE:tP,CARTESIAN_POSITION:iP}}=bue._ModuleSupport;function R7(e){var a;let h=(a=e==null?void 0:e.stageLabel)!=null?a:{},{placement:t}=h,n=ji(h,["placement"]);return(e==null?void 0:e.direction)!=="horizontal"?[{type:tP.CATEGORY,position:t==="after"?iP.RIGHT:iP.LEFT,label:n},{type:tP.NUMBER,position:iP.BOTTOM}]:[{type:tP.NUMBER,position:iP.LEFT},{type:tP.CATEGORY,position:t==="before"?iP.TOP:iP.BOTTOM,label:n}]}var wue={series:{direction:"vertical",strokeWidth:0,spacingRatio:.25,label:{enabled:!0,fontSize:12,fontFamily:Sue,color:Cue},dropOff:{enabled:!0,fillOpacity:.2,strokeWidth:0}},axes:{[tP.NUMBER]:{nice:!1,gridLine:{enabled:!1},crosshair:{enabled:!1},label:{enabled:!1,formatter(e){var t;return Math.abs(e.value).toFixed((t=e.fractionDigits)!=null?t:0)}}},[tP.CATEGORY]:{line:{enabled:!1}}}},xue=(xt(),D(wt)),BG=(xt(),D(wt)),Mue=(xt(),D(wt)),{lineDistanceSquared:gN,BBox:kue,Path:Aue,ScenePathChangeDetection:wA}=Mue._ModuleSupport,P7=1e-6;function L7([e,t],[n,a]){return Math.abs(e-n)<=P7&&Math.abs(t-a)<=P7}var PC=class extends Aue{constructor(){super(...arguments),this.x0=0,this.y0=0,this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.x3=0,this.y3=0}get midPoint(){let{x0:e,y0:t,x1:n,y1:a,x2:h,y2:S,x3:E,y3:L}=this;return{x:(e+n+h+E)/4,y:(t+a+S+L)/4}}distanceSquared(e,t){if(this.containsPoint(e,t))return 0;let{x0:n,y0:a,x1:h,y1:S,x2:E,y2:L,x3:_,y3:N}=this;return Math.min(gN(e,t,n,a,h,S,1/0),gN(e,t,h,S,E,L,1/0),gN(e,t,E,L,_,N,1/0),gN(e,t,_,N,n,a,1/0))}computeBBox(){let{x0:e,y0:t,x1:n,y1:a,x2:h,y2:S,x3:E,y3:L}=this,_=Math.min(e,n,h,E),N=Math.max(e,n,h,E)-_,V=Math.min(t,a,S,L),q=Math.max(t,a,S,L)-V;return new kue(_,V,N,q)}updatePath(){let{path:e,x0:t,y0:n,x1:a,y1:h,x2:S,y2:E,x3:L,y3:_}=this,N=[[t,n],[a,h],[S,E],[L,_]];e.clear();let V,q;N.forEach(Y=>{if(V!=null&&L7(V,Y)||q!=null&&L7(q,Y))return;let[J,re]=Y;V==null?e.moveTo(J,re):e.lineTo(J,re),V!=null||(V=Y),q=Y}),e.closePath()}};ve([wA()],PC.prototype,"x0",2),ve([wA()],PC.prototype,"y0",2),ve([wA()],PC.prototype,"x1",2),ve([wA()],PC.prototype,"y1",2),ve([wA()],PC.prototype,"x2",2),ve([wA()],PC.prototype,"y2",2),ve([wA()],PC.prototype,"x3",2),ve([wA()],PC.prototype,"y3",2);var Due=(xt(),D(wt)),{NODE_UPDATE_STATE_TO_PHASE_MAPPING:Eue}=Due._ModuleSupport;function O7(e,t,n,a){let{x0:h,y0:S,x1:E,y1:L,x2:_,y2:N,x3:V,y3:q,opacity:Y}=e;return n?{x0:(h+V)/2,y0:(S+q)/2,x1:(E+_)/2,y1:(L+N)/2,x2:(E+_)/2,y2:(L+N)/2,x3:(h+V)/2,y3:(S+q)/2,opacity:Y}:{x0:(h+E)/2,y0:(S+L)/2,x1:(h+E)/2,y1:(S+L)/2,x2:(_+V)/2,y2:(N+q)/2,x3:(_+V)/2,y3:(N+q)/2,opacity:Y}}function Iue(e,t){let n=S=>S==null;return{fromFn:(S,E,L)=>{L==="updated"&&n(E)?L="removed":L==="updated"&&n(S.previousDatum)&&(L="added");let _;L==="added"&&S.previousDatum==null&&t==="fade"?_=et(pe({},K2(S,E)),{opacity:0}):L==="unknown"||L==="added"?_=O7(E,S.previousDatum,e,t):_={x0:S.x0,y0:S.y0,x1:S.x1,y1:S.y1,x2:S.x2,y2:S.y2,x3:S.x3,y3:S.y3,opacity:S.opacity};let N=Eue[L];return et(pe({},_),{phase:N})},toFn:(S,E,L)=>{let _;return L==="removed"&&S.datum==null&&t==="fade"?_=et(pe({},K2(S,E)),{opacity:0}):L==="removed"||n(E)?_=O7(E,S.previousDatum,e,t):_=K2(S,E),_}}}function K2(e,t){let{x0:n,y0:a,x1:h,y1:S,x2:E,y2:L,x3:_,y3:N,opacity:V}=t;return{x0:n,y0:a,x1:h,y1:S,x2:E,y2:L,x3:_,y3:N,opacity:V}}var{SeriesNodePickMode:_7,SeriesZIndexMap:F7,valueProperty:Tue,keyProperty:Rue,ChartAxisDirection:Pue,updateLabelNode:Lue,SMALLEST_KEY_INTERVAL:Oue,LARGEST_KEY_INTERVAL:_ue,diff:Fue,fixNumericExtent:Nue,seriesLabelFadeInAnimation:N7,resetMotion:zue,resetLabelFn:Bue,animationValidation:Gue,computeBarFocusBounds:jue,createDatumId:Vue,ContinuousScale:Hue,Group:Wue,Selection:Uue,PointerEvents:z7,motion:Kue}=BG._ModuleSupport,que=class extends BG._ModuleSupport.SeriesNodeEvent{constructor(e,t,n,a){super(e,t,n,a),this.xKey=a.properties.stageKey,this.yKey=a.properties.valueKey}},B7=class extends BG._ModuleSupport.AbstractBarSeries{constructor({moduleCtx:e,animationResetFns:t}){super({moduleCtx:e,pickModes:[_7.AXIS_ALIGNED,_7.EXACT_SHAPE_MATCH],hasHighlightedLabels:!0,directionKeys:{x:["stageKey"],y:["valueKey"]},directionNames:{x:[],y:[]},datumSelectionGarbageCollection:!1,animationResetFns:{datum:t.datum,label:Bue}}),this.NodeEvent=que,this.connectorNodeGroup=this.contentGroup.appendChild(new Wue({name:`${this.id}-series-connectorNodes`,zIndex:F7.BACKGROUND})),this.connectorSelection=Uue.select(this.connectorNodeGroup,()=>this.connectionFactory()),this.connectorNodeGroup.pointerEvents=z7.None}get pickModeAxis(){return"main-category"}setSeriesIndex(e){return super.setSeriesIndex(e)?(this.connectorNodeGroup.zIndex=[F7.BACKGROUND,e],!0):!1}isVertical(){return!super.isVertical()}connectionFactory(){return new PC}async processData(e){var re,ce,he,me;if(!this.properties.isValid())return;let{stageKey:t,valueKey:n}=this.properties,{visible:a,id:h}=this,S=(we,Me,be)=>a&&this.ctx.legendManager.getItemEnabled({seriesId:h,itemId:be}),E=(re=this.getCategoryAxis())==null?void 0:re.scale,L=(ce=this.getValueAxis())==null?void 0:ce.scale,{isContinuousX:_,xScaleType:N,yScaleType:V}=this.getScaleInformation({xScale:E,yScale:L}),q=[];this.ctx.animationManager.isSkipped()||(this.processedData&&q.push(Fue(this.id,this.processedData)),q.push(Gue()));let Y=this.visible?{}:{forceValue:0},{processedData:J}=await this.requestDataModel(e,this.data,{props:[Rue(t,N,{id:"xValue"}),Tue(n,V,et(pe({id:"yValue"},Y),{validation:S,invalidValue:0})),..._?[Oue,_ue]:[],...q],groupByKeys:!1});this.smallestDataInterval=(he=J.reduced)==null?void 0:he.smallestKeyInterval,this.largestDataInterval=(me=J.reduced)==null?void 0:me.largestKeyInterval,this.animationState.transition("updateData")}getSeriesDomain(e){let{processedData:t,dataModel:n,id:a,ctx:{legendManager:h}}=this;if(!t||!n)return[];let{keys:[S],values:E}=t.domain;if(e===this.getCategoryDirection()){let L=n.resolveProcessedDataDefById(this,"xValue");return(L==null?void 0:L.def.type)==="key"&&(L==null?void 0:L.def.valueType)==="category"?this.hasData?S.filter((_,N)=>h.getItemEnabled({seriesId:a,itemId:N})):[]:this.padBandExtent(S)}else{let L=n.resolveProcessedDataIndexById(this,"yValue"),_=E[L][1],N=[-_,_];return Nue(N)}}getSeriesRange(e,t){return[NaN,NaN]}createNodeData(){let{hasData:e,data:t,dataModel:n,groupScale:a,processedData:h,id:S,ctx:{legendManager:E}}=this,L=this.getCategoryAxis(),_=this.getValueAxis();if(!(e&&t&&L&&_&&n&&(h==null?void 0:h.type)==="ungrouped"&&h.rawData.length!==0))return;let N=L.scale,V=_.scale,q=this.getBarDirection()===Pue.X,{stageKey:Y,valueKey:J}=this.properties,{strokeWidth:re}=this.barStyle(),ce=`${J}`,he={itemId:ce,nodeData:[],labelData:[],connectorData:[],scales:this.calculateScaling(),visible:this.visible},me=this.visible;if(!me)return he;let we=n.resolveKeysById(this,"xValue",h),Me=n.resolveColumnById(this,"yValue",h),{barWidth:be,groupIndex:Le}=this.updateGroupScale(L),Fe=Hue.is(N)?be*-.5:0,je;return h.rawData.forEach((Xe,nt)=>{let lt=me&&E.getItemEnabled({seriesId:S,itemId:nt}),ot=we[nt];if(ot==null)return;let vt=Math.round(N.convert(ot))+a.convert(String(Le))+Fe,gt=Me[nt],bt=Math.round(V.convert(-gt)),At=Math.round(V.convert(gt)),Rt=Math.max(re,Math.abs(At-bt)),It={x:q?Math.min(At,bt):vt,y:q?vt:Math.min(At,bt),width:q?Rt:be,height:q?be:Rt},Dt={x:It.x+It.width/2,y:It.y+It.height/2},jt=this.createLabelData({rect:It,barAlongX:q,yDatum:gt,datum:Xe,visible:lt}),Nt={index:nt,series:this,itemId:ce,datum:Xe,datumIndex:nt,xValue:ot,yValue:gt,xKey:Y,yKey:J,x:It.x,y:It.y,width:It.width,height:It.height,midPoint:Dt,strokeWidth:re,opacity:1,label:jt,visible:lt};if(he.nodeData.push(Nt),jt!=null&&he.labelData.push(jt),je!=null){let zt=je.rect,Ut=je.nodeDatum,Vt=je.datumIndex;q?he.connectorData.push({datum:Ut,datumIndex:Vt,x0:zt.x,y0:zt.y+zt.height,x1:zt.x+zt.width,y1:zt.y+zt.height,x2:It.x+It.width,y2:It.y,x3:It.x,y3:It.y,opacity:1}):he.connectorData.push({datum:Ut,datumIndex:Vt,x0:zt.x+zt.width,y0:zt.y,x1:It.x,y1:It.y,x2:It.x,y2:It.y+It.height,x3:zt.x+zt.width,y3:zt.y+zt.height,opacity:1})}lt&&(je={itemId:ce,rect:It,nodeDatum:Nt,datumIndex:nt})}),he}updateNodes(e,t,n){var S,E;super.updateNodes(e,t,n);let{connectorSelection:a}=this,h=(E=(S=this.contextNodeData)==null?void 0:S.connectorData)!=null?E:[];this.connectorSelection=this.updateConnectorSelection({connectorSelection:a,connectorData:h}),this.updateConnectorNodes({connectorSelection:a})}updateDatumSelection(e){let{nodeData:t,datumSelection:n}=e,a=t!=null?t:[];return n.update(a,void 0,h=>this.getDatumId(h))}updateConnectorSelection(e){let{connectorData:t,connectorSelection:n}=e;return n.update(this.connectorEnabled()?t:[],void 0,a=>this.getDatumId(a.datum))}updateConnectorNodes(e){let{fills:t,strokes:n}=this.properties,{fill:a,fillOpacity:h,stroke:S,strokeOpacity:E,strokeWidth:L,lineDash:_,lineDashOffset:N}=this.connectorStyle();e.connectorSelection.each((V,q)=>{let{datumIndex:Y}=q;V.setProperties(K2(V,q)),V.fill=a!=null?a:t[Y%t.length],V.fillOpacity=h,V.stroke=S!=null?S:n[Y%n.length],V.strokeOpacity=E,V.strokeWidth=L,V.lineDash=_,V.lineDashOffset=N})}getHighlightLabelData(e,t){let n=e.filter(a=>a.datum===t.datum);return n.length>0?n:void 0}updateLabelSelection(e){let t=this.properties.label.enabled?e.labelData:[];return e.labelSelection.update(t,n=>{n.pointerEvents=z7.None})}updateLabelNodes(e){e.labelSelection.each((t,n)=>{Lue(t,this.properties.label,n)})}getTooltipContent(e){let{id:t,dataModel:n,processedData:a,properties:h}=this,{fills:S,strokes:E,stageKey:L,valueKey:_,tooltip:N,itemStyler:V}=h,q=this.getCategoryAxis(),Y=this.getValueAxis();if(!n||!a||a.rawData.length===0||!q||!Y)return;let{datumIndex:J}=e,re=a.rawData[J],ce=n.resolveKeysById(this,"xValue",a)[J],he=n.resolveColumnById(this,"yValue",a)[J];if(ce==null)return;let me=pe({fill:S[J%S.length],stroke:E[J%E.length]},this.barStyle());if(V!=null){let we=this.cachedDatumCallback(Vue(String(J),"node"),()=>V(pe({seriesId:t,datum:re,stageKey:L,valueKey:_,highlighted:!1},me)));Object.assign(me,we)}return N.formatTooltip({symbol:this.legendItemSymbol(J),data:[{label:q.formatDatum(ce),value:Y.formatDatum(he)}]},pe({seriesId:t,datum:re,title:L,stageKey:L,valueKey:_},me))}resetAllAnimation(e){super.resetAllAnimation(e),zue([this.connectorSelection],K2)}animateEmptyUpdateReady({labelSelection:e}){let{connectorSelection:t}=this,n=this.isVertical(),h=Iue(n,"normal");Kue.fromToMotion(this.id,"connectors",this.ctx.animationManager,[t],h),N7(this,"labels",this.ctx.animationManager,e)}animateWaitingUpdateReady(e){let{labelSelection:t}=e;this.ctx.animationManager.stopByAnimationGroupId(this.id),N7(this,"labels",this.ctx.animationManager,t)}getDatumId(e){return`${e.xValue}`}isLabelEnabled(){return this.properties.label.enabled}computeFocusBounds({datumIndex:e}){var t;return jue((t=this.contextNodeData)==null?void 0:t.nodeData[e])}legendItemSymbol(e){var _,N;let{strokeWidth:t,fillOpacity:n,strokeOpacity:a}=this.barStyle(),{fills:h,strokes:S}=this.properties,E=(_=h[e%h.length])!=null?_:"black",L=(N=S[e%S.length])!=null?N:"black";return{marker:{fill:E,fillOpacity:n,stroke:L,strokeWidth:t,strokeOpacity:a}}}getLegendData(e){let{id:t,processedData:n,dataModel:a,ctx:{legendManager:h},visible:S}=this;if(!a||!n||e!=="category"||!this.properties.isValid())return[];let{showInLegend:E}=this.properties,L=a.resolveKeysById(this,"xValue",n);return n.rawData.map((_,N)=>{let V=L[N];if(V!=null)return{legendType:"category",id:t,itemId:N,seriesId:t,enabled:S&&h.getItemEnabled({seriesId:t,itemId:N}),label:{text:V},symbol:this.legendItemSymbol(N),skipAnimations:!0,hideInLegend:!E}}).filter(_=>_!=null)}},Yue=(xt(),D(wt)),{Label:Xue,AbstractBarSeriesProperties:Zue,SeriesTooltip:$ue,AxisLabel:Que,Validate:Yh,UNION:G7,COLOR_STRING_ARRAY:j7,LINE_DASH:Jue,OBJECT:GG,POSITIVE_NUMBER:jG,RATIO:V7,STRING:H7}=Yue._ModuleSupport,VG=class extends Xue{constructor(){super(...arguments),this.spacing=0}};ve([Yh(G7(["before","middle","after"],"a placement"))],VG.prototype,"placement",2),ve([Yh(jG)],VG.prototype,"spacing",2);var W7=class extends Que{};ve([Yh(G7(["before","after"],"a placement"))],W7.prototype,"placement",2);var pm=class extends Zue{constructor(){super(...arguments),this.fills=[],this.fillOpacity=1,this.strokes=[],this.strokeWidth=1,this.strokeOpacity=1,this.lineDash=[0],this.lineDashOffset=0,this.label=new VG,this.stageLabel=new W7,this.tooltip=new $ue}};ve([Yh(H7)],pm.prototype,"stageKey",2),ve([Yh(H7)],pm.prototype,"valueKey",2),ve([Yh(j7)],pm.prototype,"fills",2),ve([Yh(V7)],pm.prototype,"fillOpacity",2),ve([Yh(j7)],pm.prototype,"strokes",2),ve([Yh(jG)],pm.prototype,"strokeWidth",2),ve([Yh(V7)],pm.prototype,"strokeOpacity",2),ve([Yh(Jue)],pm.prototype,"lineDash",2),ve([Yh(jG)],pm.prototype,"lineDashOffset",2),ve([Yh(GG)],pm.prototype,"label",2),ve([Yh(GG)],pm.prototype,"stageLabel",2),ve([Yh(GG)],pm.prototype,"tooltip",2);function U7(e,{x:t,y:n,width:a,height:h,opacity:S}){return{x1:t,y1:n,x2:t+a,y2:n+h,opacity:S}}var{formatValue:ehe,Line:the}=xue._ModuleSupport,HG=class extends B7{constructor(e){super({moduleCtx:e,animationResetFns:{datum:U7}}),this.properties=new pm}get hasData(){var a;let{id:e,ctx:{legendManager:t}}=this,n=(a=this.data)==null?void 0:a.reduce((h,S,E)=>h+(t.getItemEnabled({seriesId:e,itemId:E})?1:0),0);return n!=null&&n>1}getBandScalePadding(){return{inner:1,outer:0}}connectorEnabled(){return!0}barStyle(){return{fillOpacity:1,strokeOpacity:1,strokeWidth:0,lineDash:[],lineDashOffset:0}}connectorStyle(){let{fillOpacity:e,strokeOpacity:t,strokeWidth:n,lineDash:a,lineDashOffset:h}=this.properties;return{fillOpacity:e,strokeOpacity:t,strokeWidth:n,lineDash:a,lineDashOffset:h}}nodeFactory(){return new the}createLabelData({rect:e,barAlongX:t,yDatum:n,datum:a,visible:h}){let{stageKey:S,valueKey:E,label:L}=this.properties,{spacing:_,placement:N}=L,V,q,Y,J;if(t)switch(V=e.x+e.width/2,Y="center",N){case"before":q=e.y-_,J="bottom";break;case"after":q=e.y+e.height+_,J="top";break;default:q=e.y+e.height/2,J="middle"}else switch(q=e.y+e.height/2,J="middle",N){case"before":V=e.x-_,Y="right";break;case"after":V=e.x+e.width+_,Y="left";break;default:V=e.x+e.width/2,Y="center"}return{x:V,y:q,textAlign:Y,textBaseline:J,text:this.getLabelText(L,{itemId:E,value:n,datum:a,stageKey:S,valueKey:E},re=>ehe(re,0)),itemId:E,datum:a,series:this,visible:h}}updateDatumNodes(e){let t=e.isHighlight?this.properties.highlightStyle.item:void 0;e.datumSelection.each((n,a)=>{var h,S,E;n.setProperties(U7(n,a)),n.stroke=t==null?void 0:t.stroke,n.strokeWidth=(h=t==null?void 0:t.strokeWidth)!=null?h:0,n.strokeOpacity=(S=t==null?void 0:t.strokeOpacity)!=null?S:1,n.lineDash=t==null?void 0:t.lineDash,n.lineDashOffset=(E=t==null?void 0:t.lineDashOffset)!=null?E:0})}};HG.className="ConeFunnelSeries",HG.type="cone-funnel";var ihe=(xt(),D(wt)),{ThemeSymbols:{DEFAULT_LABEL_COLOUR:nhe,DEFAULT_FONT_FAMILY:ahe},ThemeConstants:{CARTESIAN_AXIS_TYPE:K7}}=ihe._ModuleSupport,ohe={series:{direction:"vertical",strokeWidth:0,label:{enabled:!0,fontSize:12,fontFamily:ahe,color:nhe,placement:"before",spacing:4}},seriesArea:{padding:{top:20,bottom:20}},axes:{[K7.NUMBER]:{nice:!1,gridLine:{enabled:!1},crosshair:{enabled:!1},label:{enabled:!1,formatter(e){var t;return Math.abs(e.value).toFixed((t=e.fractionDigits)!=null?t:0)}}},[K7.CATEGORY]:{line:{enabled:!1}}}},rhe={type:"series",optionsKey:"series[]",packageType:"enterprise",chartTypes:["cartesian"],identifier:"cone-funnel",moduleFactory:e=>new HG(e),solo:!0,tooltipDefaults:{range:"nearest"},defaultAxes:R7,themeTemplate:ohe,paletteFactory:({userPalette:e,themeTemplateParameters:t,takeColors:n,colorsCount:a})=>{let{fills:h}=n(a),S=t.get(yue._ModuleSupport.ThemeSymbols.DEFAULT_FUNNEL_SERIES_COLOR_RANGE),E=e==="inbuilt"?S:[h[0],h[1]];return{fills:E,strokes:E.slice(0)}}},she=(xt(),D(wt)),lhe=(xt(),D(wt)),{Label:che,DropShadow:dhe,AbstractBarSeriesProperties:uhe,BaseProperties:hhe,SeriesTooltip:ghe,AxisLabel:phe,Validate:Zr,UNION:mhe,BOOLEAN:fhe,COLOR_STRING_ARRAY:q7,COLOR_STRING:Y7,FUNCTION:vhe,LINE_DASH:X7,OBJECT:q2,POSITIVE_NUMBER:pN,RATIO:Y2,STRING:Z7}=lhe._ModuleSupport,yhe=class extends che{},$7=class extends phe{};ve([Zr(mhe(["before","after"],"a placement"))],$7.prototype,"placement",2);var Fw=class extends hhe{constructor(){super(...arguments),this.enabled=!0,this.fillOpacity=1,this.strokeWidth=1,this.strokeOpacity=1,this.lineDash=[0],this.lineDashOffset=0}};ve([Zr(fhe)],Fw.prototype,"enabled",2),ve([Zr(Y7,{optional:!0})],Fw.prototype,"fill",2),ve([Zr(Y2)],Fw.prototype,"fillOpacity",2),ve([Zr(Y7,{optional:!0})],Fw.prototype,"stroke",2),ve([Zr(pN)],Fw.prototype,"strokeWidth",2),ve([Zr(Y2)],Fw.prototype,"strokeOpacity",2),ve([Zr(X7)],Fw.prototype,"lineDash",2),ve([Zr(pN)],Fw.prototype,"lineDashOffset",2);var uu=class extends uhe{constructor(){super(...arguments),this.fills=[],this.fillOpacity=1,this.strokes=[],this.strokeWidth=1,this.strokeOpacity=1,this.lineDash=[0],this.lineDashOffset=0,this.spacingRatio=0,this.dropOff=new Fw,this.shadow=new dhe().set({enabled:!1}),this.label=new yhe,this.stageLabel=new $7,this.tooltip=new ghe}};ve([Zr(Z7)],uu.prototype,"stageKey",2),ve([Zr(Z7)],uu.prototype,"valueKey",2),ve([Zr(q7)],uu.prototype,"fills",2),ve([Zr(Y2)],uu.prototype,"fillOpacity",2),ve([Zr(q7)],uu.prototype,"strokes",2),ve([Zr(pN)],uu.prototype,"strokeWidth",2),ve([Zr(Y2)],uu.prototype,"strokeOpacity",2),ve([Zr(X7)],uu.prototype,"lineDash",2),ve([Zr(pN)],uu.prototype,"lineDashOffset",2),ve([Zr(Y2)],uu.prototype,"spacingRatio",2),ve([Zr(vhe,{optional:!0})],uu.prototype,"itemStyler",2),ve([Zr(q2)],uu.prototype,"dropOff",2),ve([Zr(q2)],uu.prototype,"shadow",2),ve([Zr(q2)],uu.prototype,"label",2),ve([Zr(q2)],uu.prototype,"stageLabel",2),ve([Zr(q2)],uu.prototype,"tooltip",2);var{ChartAxisDirection:Q7,getRectConfig:bhe,updateRect:Che,checkCrisp:She,resetBarSelectionsFn:whe,prepareBarAnimationFunctions:J7,midpointStartingBarPosition:e9,formatValue:xhe,Rect:Mhe,motion:t9}=she._ModuleSupport,WG=class extends B7{constructor(e){super({moduleCtx:e,animationResetFns:{datum:whe}}),this.properties=new uu}getBandScalePadding(){return{inner:this.properties.spacingRatio,outer:0}}connectorEnabled(){return this.properties.dropOff.enabled}barStyle(){let{fillOpacity:e,strokeOpacity:t,strokeWidth:n,lineDash:a,lineDashOffset:h}=this.properties;return{fillOpacity:e,strokeOpacity:t,strokeWidth:n,lineDash:a,lineDashOffset:h}}connectorStyle(){let{fill:e,fillOpacity:t,stroke:n,strokeOpacity:a,strokeWidth:h,lineDash:S,lineDashOffset:E}=this.properties.dropOff;return{fill:e,fillOpacity:t,stroke:n,strokeOpacity:a,strokeWidth:h,lineDash:S,lineDashOffset:E}}nodeFactory(){return new Mhe}createLabelData({rect:e,yDatum:t,datum:n,visible:a}){let{valueKey:h,stageKey:S,label:E}=this.properties;return{x:e.x+e.width/2,y:e.y+e.height/2,textAlign:"center",textBaseline:"middle",text:this.getLabelText(E,{itemId:S,value:t,datum:n,valueKey:h,stageKey:S},L=>xhe(L,0)),itemId:S,datum:n,series:this,visible:a}}updateDatumNodes(e){let{datumSelection:t,isHighlight:n}=e,{id:a}=this,{stageKey:h,valueKey:S,highlightStyle:{item:E},fills:L,strokes:_,fillOpacity:N,strokeOpacity:V,strokeWidth:q,lineDash:Y,lineDashOffset:J,itemStyler:re,shadow:ce}=this.properties,he=this.axes[Q7.X],me=She(he==null?void 0:he.scale,he==null?void 0:he.visibleRange,this.smallestDataInterval,this.largestDataInterval),we=this.getCategoryDirection()===Q7.X;t.each((Me,be)=>{var ot,vt;let{datumIndex:Le}=be,Fe=(ot=L[Le%L.length])!=null?ot:"black",je=(vt=_[Le%_.length])!=null?vt:"black",Xe={fill:Fe,stroke:je,fillOpacity:N,strokeOpacity:V,lineDash:Y,lineDashOffset:J,fillShadow:ce,strokeWidth:this.getStrokeWidth(q)},nt=we?be.width>0:be.height>0,lt=bhe(this,String(be.datumIndex),{datum:be,isHighlighted:n,style:Xe,highlightStyle:E,itemStyler:re,seriesId:a,stageKey:h,valueKey:S});lt.crisp=me,lt.visible=nt,Che(Me,lt)})}animateEmptyUpdateReady(e){super.animateEmptyUpdateReady(e);let{datumSelection:t}=e,n=this.isVertical(),h=J7(e9(n,"normal"));t9.fromToMotion(this.id,"datums",this.ctx.animationManager,[t],h)}animateWaitingUpdateReady(e){var S,E;super.animateWaitingUpdateReady(e);let{datumSelection:t}=e,{processedData:n}=this,a=(E=(S=n==null?void 0:n.reduced)==null?void 0:S.diff)==null?void 0:E[this.id],h=J7(e9(this.isVertical(),"fade"));t9.fromToMotion(this.id,"datums",this.ctx.animationManager,[t],h,(L,_)=>_.xValue,a)}};WG.className="FunnelSeries",WG.type="funnel";var khe={type:"series",optionsKey:"series[]",packageType:"enterprise",chartTypes:["cartesian"],identifier:"funnel",moduleFactory:e=>new WG(e),solo:!0,tooltipDefaults:{range:"exact"},defaultAxes:R7,themeTemplate:wue,paletteFactory:({takeColors:e})=>{let{fills:t,strokes:n}=e(1);return{fills:t,strokes:n}}},Ahe=(xt(),D(wt)),UG=(xt(),D(wt)),Dhe=(xt(),D(wt)),{CachedTextMeasurerPool:i9,TextUtils:n9,TextWrapper:mN,findMaxValue:a9,Logger:Ehe}=Dhe._ModuleSupport;function Ihe(e,t){let{fontSize:n,minimumFontSize:a=n}=e,{fontSize:h,minimumFontSize:S=h}=t,E=n-a,L=h-S,_=e.fontSize,N=t.fontSize,V=[{labelFontSize:n,secondaryLabelFontSize:h}];for(;_>a||N>S;){let q=E>0?(_-a)/E:-1,Y=L>0?(N-S)/L:-1;q>Y?_--:N--,V.push({labelFontSize:_,secondaryLabelFontSize:N})}return V.reverse(),V}function nP(e,t){return e.lineHeight!=null&&e.fontSize!=null?e.lineHeight*t/e.fontSize:n9.getLineHeight(t)}function o9(e,t,n,a,{padding:h},S){var ce,he;let{spacing:E=0}=t,L=2*h,_=2*h+E,N=((ce=t.minimumFontSize)!=null?ce:t.fontSize)+((he=a.minimumFontSize)!=null?he:a.fontSize);if(N>S(N+_,!1).height-_)return;let V=Ihe(t,a),q={fontFamily:t.fontFamily,fontSize:t.fontSize,fontStyle:t.fontStyle,fontWeight:t.fontWeight},Y={fontFamily:a.fontFamily,fontSize:a.fontSize,fontStyle:a.fontStyle,fontWeight:a.fontWeight},J,re;return a9(0,V.length-1,me=>{let{labelFontSize:we,secondaryLabelFontSize:Me}=V[me],be=me===0,Le=nP(t,we),Fe=nP(a,Me),je=S(Le+Fe+_,be),Xe=je.width-L,nt=je.height-_;if(Le+Fe>nt||((J==null||J.fontSize!==we)&&(q.fontSize=we,J=s9(t,e,Xe,nt,q,t.wrapping,be?t.overflowStrategy:"hide")),J==null||J.width>Xe||J.height>nt)||((re==null||re.fontSize!==Me)&&(Y.fontSize=Me,re=s9(a,n,Xe,nt,Y,a.wrapping,be?a.overflowStrategy:"hide")),re==null))return;let lt=J.height+re.height;if(!(re.width>Xe||lt>nt))return{width:Math.max(J.width,re.width),height:lt+E,meta:je.meta,label:J,secondaryLabel:re}})}function X2(e,t,{padding:n},a){var L;let h=2*n,S=Math.min((L=t.minimumFontSize)!=null?L:t.fontSize,t.fontSize),E={fontFamily:t.fontFamily,fontSize:t.fontSize,fontStyle:t.fontStyle,fontWeight:t.fontWeight};return a9(S,t.fontSize,_=>{var he;let N=nP(t,_),V=_===S,q=a(N+h,V),Y=q.width-h,J=q.height-h;if(N>J)return;E.fontSize=_;let re=mN.wrapLines(e,{maxWidth:Y,maxHeight:J,font:E,textWrap:t.wrapping,overflow:(he=V?t.overflowStrategy:void 0)!=null?he:"hide"});if(!re.length)return;let ce=The(re,{lineHeight:N,font:E,maxWidth:Y,maxHeight:J});if(ce)return[pe({fontSize:_,lineHeight:N},ce),q.meta]})}function r9(e){return(e==null?void 0:e.minimumFontSize)!=null&&(e==null?void 0:e.fontSize)&&(e==null?void 0:e.minimumFontSize)>(e==null?void 0:e.fontSize)}function KG(e,t,n,a,h,S){let E=t.enabled?e:void 0,L=a.enabled?n:void 0;(r9(t)||r9(a))&&Ehe.warnOnce("minimumFontSize should be set to a value less than or equal to the font size");let _;E!=null&&L!=null&&(_=o9(E,t,L,a,h,S));let N;if(_==null&&E!=null&&(N=X2(E,t,h,S)),N!=null){let[q,Y]=N;_={width:q.width,height:q.height,meta:Y,label:q,secondaryLabel:void 0}}let V;if(_==null&&E==null&&L!=null&&(V=X2(L,a,h,S)),V!=null){let[q,Y]=V;_={width:q.width,height:q.height,meta:Y,label:void 0,secondaryLabel:q}}return _}function s9(e,t,n,a,h,S,E){let L=mN.wrapLines(t,{maxWidth:n,maxHeight:a,font:h,textWrap:S,overflow:E});if(!L.length)return;let _=nP(e,h.fontSize),{width:N}=i9.measureLines(L,{font:h});return{width:N,lineHeight:_,text:L.join(`
`),height:L.length*_,fontSize:h.fontSize}}function The(e,{font:t,lineHeight:n=n9.defaultLineHeight,maxWidth:a,maxHeight:h=1/0}){let S=n*e.length;for(;S>h;){if(e.length===1)return;e.pop(),e[e.length-1]=mN.appendEllipsis(e.at(-1)),S=n*e.length}let E=i9.measureLines(e,{font:t}),L,_;if(E.width>a){let N=[];_=0;for(let V of E.lineMetrics){if(V.width>a){if(!N.length)return;break}N.push(V.text),_=Math.max(_,V.width)}L=mN.appendEllipsis(N.join(`
`))}else L=e.join(`
`),_=E.width;return{text:L,width:_,height:S}}var Rhe=(xt(),D(wt)),l9=(xt(),D(wt)),{Validate:Z2,NUMBER:Phe,POSITIVE_NUMBER:c9,TEXT_WRAP:Lhe,OVERFLOW_STRATEGY:Ohe}=l9._ModuleSupport,aP=class extends l9._ModuleSupport.Label{constructor(){super(...arguments),this.wrapping="on-space",this.overflowStrategy="ellipsis"}};ve([Z2(Lhe)],aP.prototype,"wrapping",2),ve([Z2(Ohe)],aP.prototype,"overflowStrategy",2),ve([Z2(c9,{optional:!0})],aP.prototype,"lineHeight",2),ve([Z2(c9,{optional:!0})],aP.prototype,"minimumFontSize",2);var LC=class extends aP{constructor(){super(...arguments),this.spacing=0}};ve([Z2(Phe)],LC.prototype,"spacing",2);var $2=class extends aP{},{CartesianSeriesProperties:_he,SeriesTooltip:Fhe,Validate:hu,AND:Nhe,ARRAY:zhe,COLOR_STRING:Bhe,COLOR_STRING_ARRAY:Ghe,FUNCTION:jhe,OBJECT:d9,POSITIVE_NUMBER:u9,RATIO:Vhe,STRING:FE,TEXT_ALIGN:Hhe,VERTICAL_ALIGN:Whe}=Rhe._ModuleSupport,Md=class extends _he{constructor(){super(...arguments),this.colorRange=["black","black"],this.stroke="black",this.strokeOpacity=1,this.strokeWidth=0,this.textAlign="center",this.verticalAlign="middle",this.itemPadding=0,this.label=new LC,this.tooltip=new Fhe}};ve([hu(FE,{optional:!0})],Md.prototype,"title",2),ve([hu(FE)],Md.prototype,"xKey",2),ve([hu(FE)],Md.prototype,"yKey",2),ve([hu(FE,{optional:!0})],Md.prototype,"colorKey",2),ve([hu(FE,{optional:!0})],Md.prototype,"xName",2),ve([hu(FE,{optional:!0})],Md.prototype,"yName",2),ve([hu(FE,{optional:!0})],Md.prototype,"colorName",2),ve([hu(Nhe(Ghe,zhe.restrict({minLength:1})))],Md.prototype,"colorRange",2),ve([hu(Bhe,{optional:!0})],Md.prototype,"stroke",2),ve([hu(Vhe)],Md.prototype,"strokeOpacity",2),ve([hu(u9,{optional:!0})],Md.prototype,"strokeWidth",2),ve([hu(Hhe)],Md.prototype,"textAlign",2),ve([hu(Whe)],Md.prototype,"verticalAlign",2),ve([hu(u9)],Md.prototype,"itemPadding",2),ve([hu(jhe,{optional:!0})],Md.prototype,"itemStyler",2),ve([hu(d9)],Md.prototype,"label",2),ve([hu(d9)],Md.prototype,"tooltip",2);var{SeriesNodePickMode:h9,computeBarFocusBounds:Uhe,getMissCount:Khe,valueProperty:qG,ChartAxisDirection:OC,DEFAULT_CARTESIAN_DIRECTION_KEYS:qhe,DEFAULT_CARTESIAN_DIRECTION_NAMES:Yhe,createDatumId:Xhe,Logger:Zhe,ColorScale:$he,Rect:Qhe,PointerEvents:Jhe}=UG._ModuleSupport,ege=class extends UG._ModuleSupport.CartesianSeriesNodeEvent{constructor(e,t,n,a){super(e,t,n,a),this.colorKey=a.properties.colorKey}},tge={left:-.5,center:0,right:-.5},ige={top:-.5,middle:0,bottom:-.5},YG=class extends UG._ModuleSupport.CartesianSeries{constructor(e){super({moduleCtx:e,directionKeys:qhe,directionNames:Yhe,pickModes:[h9.NEAREST_NODE,h9.EXACT_SHAPE_MATCH],pathsPerSeries:[],hasMarkers:!1,hasHighlightedLabels:!0}),this.properties=new Md,this.NodeEvent=ege,this.colorScale=new $he}async processData(e){var re,ce,he;let t=this.axes[OC.X],n=this.axes[OC.Y];if(!t||!n||!this.properties.isValid()||!((re=this.data)!=null&&re.length))return;let{xKey:a,yKey:h,colorRange:S,colorKey:E}=this.properties,L=(ce=this.axes[OC.X])==null?void 0:ce.scale,_=(he=this.axes[OC.Y])==null?void 0:he.scale,{xScaleType:N,yScaleType:V}=this.getScaleInformation({xScale:L,yScale:_}),q=this.colorScale.type,{dataModel:Y,processedData:J}=await this.requestDataModel(e,this.data,{props:[qG(a,N,{id:"xValue"}),qG(h,V,{id:"yValue"}),...E?[qG(E,q,{id:"colorValue"})]:[]]});if(this.isColorScaleValid()){let me=Y.resolveProcessedDataIndexById(this,"colorValue");this.colorScale.domain=J.domain.values[me],this.colorScale.range=S,this.colorScale.update()}}isColorScaleValid(){let{colorKey:e}=this.properties;if(!e)return!1;let{dataModel:t,processedData:n}=this;if(!t||!n)return!1;let a=t.resolveProcessedDataIndexById(this,"colorValue"),h=n.rawData.length,S=Khe(this,n.defs.values[a].missing);return!(h===0||h===S)}getSeriesDomain(e){let{dataModel:t,processedData:n}=this;return!t||!n?[]:e===OC.X?t.getDomain(this,"xValue","value",n):t.getDomain(this,"yValue","value",n)}getSeriesRange(e,t){return[NaN,NaN]}createNodeData(){var At,Rt,It,Dt,jt;let{data:e,visible:t,axes:n,dataModel:a,processedData:h}=this,S=n[OC.X],E=n[OC.Y];if(!(e&&a&&(h!=null&&h.rawData.length)&&t&&S&&E))return;if(S.type!=="category"||E.type!=="category"){Zhe.warnOnce(`Heatmap series expected axes to have "category" type, but received "${S.type}" and "${E.type}" instead.`);return}let{xKey:L,xName:_,yKey:N,yName:V,colorKey:q,colorName:Y,textAlign:J,verticalAlign:re,itemPadding:ce,label:he}=this.properties,me=a.resolveColumnById(this,"xValue",h),we=a.resolveColumnById(this,"yValue",h),Me=q?a.resolveColumnById(this,"colorValue",h):void 0,be=S.scale,Le=E.scale,Fe=((At=be.bandwidth)!=null?At:0)/2,je=((Rt=Le.bandwidth)!=null?Rt:0)/2,Xe=[],nt=[],lt=(It=be.bandwidth)!=null?It:10,ot=(Dt=Le.bandwidth)!=null?Dt:10,vt=(lt-2*ce)*tge[J],gt=(ot-2*ce)*ige[re],bt=()=>({width:lt,height:ot,meta:null});return h.rawData.forEach((Nt,zt)=>{let Ut=me[zt],Vt=we[zt],Wt=be.convert(Ut)+Fe,ci=Le.convert(Vt)+je,li=Me==null?void 0:Me[zt],oi=li==null?void 0:this.getLabelText(he,{value:li,datum:Nt,colorKey:q,colorName:Y,xKey:L,yKey:N,xName:_,yName:V}),vi=KG(oi,this.properties.label,void 0,this.properties.label,{padding:ce},bt),gi={x:Wt,y:ci,size:0};if(Xe.push({series:this,itemId:N,datumIndex:zt,yKey:N,xKey:L,xValue:Ut,yValue:Vt,colorValue:li,datum:Nt,point:gi,width:lt,height:ot,midPoint:{x:Wt,y:ci},missing:li==null}),(vi==null?void 0:vi.label)!=null){let{text:fi,fontSize:ki,lineHeight:si,height:di}=vi.label,{fontStyle:Ii,fontFamily:bi,fontWeight:wi,color:Li}=this.properties.label,Ln=gi.x+vt*(lt-2*ce),on=gi.y+gt*(ot-2*ce)-(vi.height-di)*.5;nt.push({series:this,itemId:N,datum:Nt,text:fi,fontSize:ki,lineHeight:si,fontStyle:Ii,fontFamily:bi,fontWeight:wi,color:Li,textAlign:J,verticalAlign:re,x:Ln,y:on})}}),{itemId:(jt=this.properties.yKey)!=null?jt:this.id,nodeData:Xe,labelData:nt,scales:this.calculateScaling(),visible:this.visible}}nodeFactory(){return new Qhe}update(e){return this.ctx.animationManager.skipCurrentBatch(),super.update(e)}updateDatumSelection(e){let{nodeData:t,datumSelection:n}=e,a=t!=null?t:[];return n.update(a)}getItemBaseStyle(e){var h,S,E,L;let{properties:t}=this,n=e?t.highlightStyle.item:void 0,a=this.getStrokeWidth(t.strokeWidth);return{fill:n==null?void 0:n.fill,fillOpacity:(h=n==null?void 0:n.fillOpacity)!=null?h:1,stroke:(S=n==null?void 0:n.stroke)!=null?S:t.stroke,strokeWidth:(E=n==null?void 0:n.strokeWidth)!=null?E:a,strokeOpacity:(L=n==null?void 0:n.strokeOpacity)!=null?L:t.strokeOpacity}}getItemStyleOverrides(e,t,n,a,h){let{id:S,properties:E}=this,{xKey:L,yKey:_,colorRange:N,itemStyler:V}=E,q=this.isColorScaleValid()&&n!=null?this.colorScale.convert(n):N[0],Y=a.fill==null?{fill:q}:void 0;if(V!=null){Y!=null||(Y={});let J=this.cachedDatumCallback(Xhe(e,h?"highlight":"node"),()=>V(pe({seriesId:S,datum:t,xKey:L,yKey:_,highlighted:h,fill:q},a)));Object.assign(Y,J)}return Y}updateDatumNodes(e){var _;let{isHighlight:t}=e,n=this.axes[OC.X],[a,h]=(_=n==null?void 0:n.visibleRange)!=null?_:[],E=!(a!==0||h!==1),L=this.getItemBaseStyle(t);e.datumSelection.each((N,V)=>{var we,Me,be,Le,Fe;let{datumIndex:q,colorValue:Y,datum:J,point:re,width:ce,height:he}=V,me=this.getItemStyleOverrides(String(q),J,Y,L,t);N.crisp=E,N.x=Math.floor(re.x-ce/2),N.y=Math.floor(re.y-he/2),N.width=Math.ceil(ce),N.height=Math.ceil(he),N.fill=(we=me==null?void 0:me.fill)!=null?we:L.fill,N.fillOpacity=(Me=me==null?void 0:me.fillOpacity)!=null?Me:L.fillOpacity,N.stroke=(be=me==null?void 0:me.stroke)!=null?be:L.stroke,N.strokeWidth=(Le=me==null?void 0:me.strokeWidth)!=null?Le:L.strokeWidth,N.strokeOpacity=(Fe=me==null?void 0:me.strokeOpacity)!=null?Fe:L.strokeOpacity})}updateLabelSelection(e){let{labelData:t,labelSelection:n}=e,{enabled:a}=this.properties.label,h=a?t:[];return n.update(h)}updateLabelNodes(e){e.labelSelection.each((t,n)=>{t.text=n.text,t.fontSize=n.fontSize,t.lineHeight=n.lineHeight,t.fontStyle=n.fontStyle,t.fontFamily=n.fontFamily,t.fontWeight=n.fontWeight,t.fill=n.color,t.textAlign=n.textAlign,t.textBaseline=n.verticalAlign,t.x=n.x,t.y=n.y,t.pointerEvents=Jhe.None})}getTooltipContent(e){let{id:t,dataModel:n,processedData:a,axes:h,properties:S,colorScale:E}=this,{xKey:L,xName:_,yKey:N,yName:V,colorKey:q,colorName:Y,colorRange:J,title:re,legendItemName:ce,tooltip:he}=S,me=h[OC.X],we=h[OC.Y];if(!n||!a||a.rawData.length===0||!me||!we)return;let{datumIndex:Me}=e,be=a.rawData[Me],Le=n.resolveColumnById(this,"xValue",a)[Me],Fe=n.resolveColumnById(this,"yValue",a)[Me],je=q!=null&&this.isColorScaleValid()?n.resolveColumnById(this,"colorValue",a)[Me]:void 0;if(Le==null)return;let Xe=[],nt;je==null?nt=J[0]:(nt=E.convert(je),Xe.push({label:Y,fallbackLabel:q,value:String(je)})),Xe.push({label:_,fallbackLabel:L,value:me.formatDatum(Le)},{label:V,fallbackLabel:N,value:we.formatDatum(Fe)});let lt=nt!=null?{marker:{shape:"square",fill:nt,fillOpacity:1,stroke:void 0,strokeWidth:0,strokeOpacity:1}}:void 0,ot=this.getItemBaseStyle(!1);return Object.assign(ot,this.getItemStyleOverrides(String(Me),be,je,ot,!1)),he.formatTooltip({title:re!=null?re:ce,symbol:lt,data:Xe},pe({seriesId:t,datum:be,title:re,xKey:L,xName:_,yKey:N,yName:V,colorKey:q,colorName:Y},ot))}getLegendData(e){return e!=="gradient"||!this.properties.isValid()||!this.isColorScaleValid()||!this.dataModel?[]:[{legendType:"gradient",enabled:this.visible,seriesId:this.id,colorName:this.properties.colorName,colorDomain:this.processedData.domain.values[this.dataModel.resolveProcessedDataIndexById(this,"colorValue")],colorRange:this.properties.colorRange}]}isLabelEnabled(){return this.properties.label.enabled&&!!this.properties.colorKey}getBandScalePadding(){return{inner:0,outer:0}}computeFocusBounds({datumIndex:e}){var E;let t=(E=this.contextNodeData)==null?void 0:E.nodeData[e];if(t===void 0)return;let{width:n,height:a,midPoint:h}=t,S={x:h.x-n/2,y:h.y-a/2,width:n,height:a};return Uhe(S)}};YG.className="HeatmapSeries",YG.type="heatmap";var nge=(xt(),D(wt)),{ThemeSymbols:{DEFAULT_FONT_FAMILY:age,DEFAULT_LABEL_COLOUR:oge},ThemeConstants:{FONT_SIZE:rge}}=nge._ModuleSupport,sge={series:{label:{enabled:!1,color:oge,fontSize:rge.SMALL,fontFamily:age,wrapping:"on-space",overflowStrategy:"ellipsis"},itemPadding:3},gradientLegend:{enabled:!0}},{ThemeSymbols:{DEFAULT_DIVERGING_SERIES_COLOR_RANGE:lge,DEFAULT_BACKGROUND_COLOUR:cge},ThemeConstants:{CARTESIAN_AXIS_TYPE:g9,CARTESIAN_POSITION:p9}}=Ahe._ModuleSupport,dge={type:"series",optionsKey:"series[]",packageType:"enterprise",chartTypes:["cartesian"],identifier:"heatmap",moduleFactory:e=>new YG(e),tooltipDefaults:{range:"exact"},defaultAxes:[{type:g9.CATEGORY,position:p9.LEFT},{type:g9.CATEGORY,position:p9.BOTTOM}],themeTemplate:sge,paletteFactory:({takeColors:e,colorsCount:t,userPalette:n,themeTemplateParameters:a})=>{var N;let h=a.get(lge),S=a.get(cge),E=(N=Array.isArray(S)?S[0]:S)!=null?N:"white",{fills:L,strokes:_}=e(t);return{stroke:n==="inbuilt"?E:_[0],colorRange:n==="inbuilt"?h:[L[0],L[1]]}}},uge=(xt(),D(wt)),m9=(xt(),D(wt)),kxe=(xt(),D(wt)),hge=1e3,f9=10;function v9(e,t,n,a,h,S){let E=e[S];if(E==null)return!1;let L=$F(E,t,n),_=QF(L,h);return S===a[_+nh]||S===a[_+$g]||S===a[_+Qg]||S===a[_+Jg]}function gge(e,t,n){if(e.length<hge)return;let[a,h]=F2(n),S=_2(e,f9),{indexData:E,valueData:L}=N2(e,t,t,a,h,S),_=[];for(let V=0;V<e.length;V+=1)v9(e,a,h,E,S,V)&&_.push(V);let N=[{maxRange:S,indices:_}];for(;_.length>f9&&S>64;)({maxRange:S}=z2(E,L,S,{inPlace:!0})),_=_.filter(v9.bind(null,e,a,h,E,S)),N.push({maxRange:S,indices:_});return N.reverse(),N}var{ChartAxisDirection:pge,ContinuousScale:mge,OrdinalTimeScale:fge}=m9._ModuleSupport,vge=class extends m9._ModuleSupport.LineSeries{aggregateData(e,t){if(t.rawData.length===0)return;let n=this.axes[pge.X];if(n==null||!(mge.is(n.scale)||fge.is(n.scale)))return;let a=e.resolveColumnById(this,"xValue",t),h=e.resolveColumnById(this,"yValueRaw",t),S=e.getDomain(this,"xValue","value",t);return gge(a,h,S)}},{LineSeriesModule:yge}=uge._ModuleSupport,bge=et(pe({},yge),{type:"series",optionsKey:"series[]",packageType:"enterprise",chartTypes:["cartesian"],identifier:"line",moduleFactory:e=>new vge(e)}),Cge=(xt(),D(wt)),Sge=(xt(),D(wt)),{ColorScale:wge}=Sge._ModuleSupport;function y9(e){if(e==null)return[];let t=new wge;t.domain=[0,1],t.range=e;let n=5;return Array.from({length:5},(a,h)=>t.convert(h/(n-1)))}var Q2=(xt(),D(wt)),b9={fromFn:()=>({opacity:0,phase:"initial"}),toFn:()=>({opacity:1})};function C9(e,t){if(e==null)return"";if(t==null)return String(e);let[n,a]=t.scale.domain,h=n!==0?Math.ceil(Math.log10(Math.abs(n))):0,S=a!==0?Math.ceil(Math.log10(Math.abs(a))):0,E=Math.max(2-Math.max(h,S),0);return e.toFixed(E)}function J2(e,t,n){var S;if(t.text!=null)return t.text;let a=n!=null?n:t.value,h=(S=t==null?void 0:t.formatter)==null?void 0:S.call(t,{seriesId:e.id,datum:void 0,value:a});if(h!=null)return String(h)}var xge=(xt(),D(wt)),XG=class extends xge.Marker{updatePath(){let{x:e,y:t,path:n,size:a}=this;n.clear(),n.moveTo(e,t-a/2),n.lineTo(e,t+a/2)}};XG.className="LineMarker";var Mge=(xt(),D(wt)),{BaseProperties:kge,Validate:S9,COLOR_STRING:Age,NUMBER:Dge,Logger:Ege,ColorScale:Ige}=Mge._ModuleSupport,oP=class extends kge{constructor(){super(...arguments),this.color="black"}};ve([S9(Dge,{optional:!0})],oP.prototype,"stop",2),ve([S9(Age,{optional:!0})],oP.prototype,"color",2);function Tge(e){let t;for(let{stop:n}of e)if(n!=null){if(t!=null&&n<t)return!1;t=n}return!0}function w9(e){return e.flatMap((t,n)=>{var S;let{offset:a}=t,h=(S=e.at(n+1))==null?void 0:S.color;return h!=null?[t,{offset:a,color:h}]:[t]})}function Rge(e,t){let n=t==="discrete"?1:0,a=e.map((h,S,{length:E})=>({offset:(S+n)/(E-1+n),color:h}));return t==="discrete"?w9(a):a}function x9(e,t,n,a){var J;if(e.length===0)return Rge(t,a);if(!Tge(e))return Ege.warnOnce("[fills] must have the stops defined in ascending order"),[];let h=Math.min(...n),S=Math.max(...n),E=a==="discrete",L=new Float64Array(e.length),_=0,N=-1;for(let re=0;re<e.length;re+=1){let ce=e[re];if(re>=N){N=e.length-1;for(let we=re+1;we<e.length;we+=1)if(e[we].stop!=null){N=we;break}}let{stop:he}=ce;if(he==null){let we=e[_].stop,Me=e[N].stop,be=we!=null?we:h,Le=Me!=null?Me:S,Fe=E&&we==null?1:0;he=be+(Le-be)*(re-_+Fe)/(N-_+Fe)}else _=re;let me=(he-h)/(S-h);L[re]=me}let V=(J=e.find(re=>re.color!=null))==null?void 0:J.color,q,Y=e.map(({color:re},ce)=>{let he=L[ce];return re!=null?V=re:V!=null?re=V:(q==null&&(q=new Ige,q.domain=[0,1],q.range=t),re=q.convert(he)),{offset:he,color:re}});return a==="discrete"?w9(Y):Y}var Pge=(xt(),D(wt)),Lge=(xt(),D(wt)),{MARKER_SHAPE:Oge,UNION:ZG,OR:_ge}=Lge._ModuleSupport,fN=ZG(["continuous","discrete"],"a fill mode"),M9=_ge(Oge,ZG(["line"],"a marker shape")),k9=ZG(["container","item"],"a corner mode"),Fge=(xt(),D(wt)),{BaseProperties:A9,Validate:rP,OBJECT:Nge,BOOLEAN:zge,NUMBER:$G,NUMBER_ARRAY:Bge,Logger:Gge}=Fge._ModuleSupport,vN=class extends A9{getSegments(e,t){var _;let{values:n,step:a,count:h}=this,S=Math.min(...e.domain),E=Math.max(...e.domain),L;if(n!=null){let N=n.filter(V=>V>S&&V<E).sort((V,q)=>V-q);L=[S,...N,E]}else if(a!=null){let N=[];for(let V=S;V<E;V+=a)N.push(V);N.push(E),L=N}else if(h!=null){let N=h+1;L=Array.from({length:N+1},(V,q)=>q/N*(E-S)+S)}else{let N=(_=e.ticks)==null?void 0:_.call(e).filter(V=>V>S&&V<E);L=N!=null?[S,...N,E]:void 0}return L!=null&&L.length>t&&(Gge.warnOnce("the configured segmentation results in more than 1 item per pixel, ignoring. Supply a segmentation configuration that results in larger segments or omit this configuration"),L=void 0),L!=null||(L=[S,E]),L}};ve([rP(Bge,{optional:!0})],vN.prototype,"values",2),ve([rP($G,{optional:!0})],vN.prototype,"step",2),ve([rP($G,{optional:!0})],vN.prototype,"count",2);var eO=class extends A9{constructor(){super(...arguments),this.enabled=!1,this.interval=new vN,this.spacing=0}};ve([rP(zge)],eO.prototype,"enabled",2),ve([rP(Nge)],eO.prototype,"interval",2),ve([rP($G)],eO.prototype,"spacing",2);var{BaseProperties:QG,SeriesTooltip:jge,SeriesProperties:Vge,PropertiesArray:JG,Validate:An,BOOLEAN:D9,COLOR_STRING:NE,COLOR_STRING_ARRAY:Hge,FUNCTION:Wge,LINE_DASH:e5,NUMBER:sP,OBJECT_ARRAY:t5,OBJECT:zE,POSITIVE_NUMBER:_C,RATIO:BE,STRING:E9,UNION:i5,Label:Uge}=Pge._ModuleSupport,Kge=i5(["before","after","middle"],"a placement"),qge=i5(["inside-start","outside-start","inside-end","outside-end","inside-center","bar-inside","bar-inside-end","bar-outside-end","bar-end"],"an placement"),Yge=i5(["horizontal","vertical"],"an orientation"),I9=class extends Uge{};ve([An(sP,{optional:!0})],I9.prototype,"spacing",2);var gu=class extends QG{constructor(){super(...arguments),this.value=0,this.label=new I9}};ve([An(E9,{optional:!0})],gu.prototype,"text",2),ve([An(sP)],gu.prototype,"value",2),ve([An(M9,{optional:!0})],gu.prototype,"shape",2),ve([An(Kge,{optional:!0})],gu.prototype,"placement",2),ve([An(sP,{optional:!0})],gu.prototype,"spacing",2),ve([An(_C,{optional:!0})],gu.prototype,"size",2),ve([An(sP,{optional:!0})],gu.prototype,"rotation",2),ve([An(NE,{optional:!0})],gu.prototype,"fill",2),ve([An(BE,{optional:!0})],gu.prototype,"fillOpacity",2),ve([An(NE,{optional:!0})],gu.prototype,"stroke",2),ve([An(_C,{optional:!0})],gu.prototype,"strokeWidth",2),ve([An(BE,{optional:!0})],gu.prototype,"strokeOpacity",2),ve([An(e5,{optional:!0})],gu.prototype,"lineDash",2),ve([An(_C,{optional:!0})],gu.prototype,"lineDashOffset",2),ve([An(zE)],gu.prototype,"label",2);var mm=class extends QG{constructor(){super(...arguments),this.enabled=!0,this.thicknessRatio=1,this.fills=new JG(oP),this.fillMode="continuous",this.fillOpacity=1,this.stroke="black",this.strokeWidth=0,this.strokeOpacity=1,this.lineDash=[0],this.lineDashOffset=0}};ve([An(D9)],mm.prototype,"enabled",2),ve([An(_C,{optional:!0})],mm.prototype,"thickness",2),ve([An(BE)],mm.prototype,"thicknessRatio",2),ve([An(t5)],mm.prototype,"fills",2),ve([An(fN)],mm.prototype,"fillMode",2),ve([An(NE,{optional:!0})],mm.prototype,"fill",2),ve([An(BE)],mm.prototype,"fillOpacity",2),ve([An(NE)],mm.prototype,"stroke",2),ve([An(_C)],mm.prototype,"strokeWidth",2),ve([An(BE)],mm.prototype,"strokeOpacity",2),ve([An(e5)],mm.prototype,"lineDash",2),ve([An(_C)],mm.prototype,"lineDashOffset",2);var My=class extends QG{constructor(){super(...arguments),this.fills=new JG(oP),this.fillMode="continuous",this.fillOpacity=1,this.stroke="black",this.strokeWidth=0,this.strokeOpacity=1,this.lineDash=[0],this.lineDashOffset=0,this.defaultFill="black"}};ve([An(t5)],My.prototype,"fills",2),ve([An(fN)],My.prototype,"fillMode",2),ve([An(NE,{optional:!0})],My.prototype,"fill",2),ve([An(BE)],My.prototype,"fillOpacity",2),ve([An(NE)],My.prototype,"stroke",2),ve([An(_C)],My.prototype,"strokeWidth",2),ve([An(BE)],My.prototype,"strokeOpacity",2),ve([An(e5)],My.prototype,"lineDash",2),ve([An(_C)],My.prototype,"lineDashOffset",2),ve([An(NE)],My.prototype,"defaultFill",2);var yN=class extends LC{constructor(){super(...arguments),this.placement="inside-center",this.avoidCollisions=!0}};ve([An(E9,{optional:!0})],yN.prototype,"text",2),ve([An(qge)],yN.prototype,"placement",2),ve([An(D9)],yN.prototype,"avoidCollisions",2);var oh=class extends Vge{constructor(){super(...arguments),this.value=0,this.segmentation=new eO,this.defaultColorRange=[],this.targets=new JG(gu),this.defaultTarget=new gu,this.direction="vertical",this.thickness=1,this.cornerRadius=0,this.cornerMode="container",this.margin=0,this.scale=new My,this.bar=new mm,this.label=new yN,this.tooltip=new jge}};ve([An(sP)],oh.prototype,"value",2),ve([An(zE)],oh.prototype,"segmentation",2),ve([An(Hge)],oh.prototype,"defaultColorRange",2),ve([An(t5)],oh.prototype,"targets",2),ve([An(zE)],oh.prototype,"defaultTarget",2),ve([An(Yge)],oh.prototype,"direction",2),ve([An(_C)],oh.prototype,"thickness",2),ve([An(_C)],oh.prototype,"cornerRadius",2),ve([An(k9)],oh.prototype,"cornerMode",2),ve([An(sP)],oh.prototype,"margin",2),ve([An(zE)],oh.prototype,"scale",2),ve([An(zE)],oh.prototype,"bar",2),ve([An(Wge,{optional:!0})],oh.prototype,"itemStyler",2),ve([An(zE)],oh.prototype,"label",2),ve([An(zE)],oh.prototype,"tooltip",2);var Xge=(xt(),D(wt)),{CachedTextMeasurerPool:Zge,BBox:$ge}=Xge._ModuleSupport;function n5(e){let{x0:t,y0:n,x1:a,y1:h,horizontalInset:S,verticalInset:E}=e,L=Math.min(t,a)+S,_=Math.min(n,h)+E,N=Math.max(Math.abs(a-t)-2*S,0),V=Math.max(Math.abs(h-n)-2*E,0);return{x:L,y:_,width:N,height:V}}function Qge(e,t){if(t==null)return!0;let n=n5(e),a=1e-6,h=n.x+a,S=n.y+a,E=n.x+n.width-a,L=n.y+n.height-a,_=t.x,N=t.x+t.width,V=t.y,q=t.y+t.height;return Math.max(h,_)<=Math.min(E,N)&&Math.max(S,V)<=Math.min(L,q)}function a5(e){let{clipX0:t,clipX1:n,clipY0:a,clipY1:h}=e;return t!=null&&n!=null||a!=null&&h!=null}function Jge(e){if(!a5(e))return;let{x0:t,y0:n,x1:a,y1:h}=e,{x:S,y:E,width:L,height:_}=n5(e),{clipX0:N,clipX1:V,clipY0:q,clipY1:Y}=e;(N==null||V==null)&&(N=t,V=a),(q==null||Y==null)&&(q=n,Y=h);let J=Math.min(N,V),re=Math.min(q,Y),ce=Math.abs(V-N),he=Math.abs(Y-q);return N=Math.max(S,J),q=Math.max(E,re),V=Math.min(S+L,J+ce),Y=Math.min(E+_,re+he),new $ge(Math.min(N,V),Math.min(q,Y),Math.abs(V-N),Math.abs(Y-q))}function T9(e,t){let n=e?"initial":"update";return{node:{fromFn(h,S){let E=h.previousDatum,{x0:L,y0:_,x1:N,y1:V,clipX0:q,clipY0:Y,clipX1:J,clipY1:re}=E!=null?E:S,{horizontalInset:ce,verticalInset:he}=S,me=E!=null&&a5(E),we=a5(S);return me&&we||(!me&&we?({x0:L,y0:_,x1:N,y1:V,clipX0:q,clipY0:Y,clipX1:J,clipY1:re}=S,e&&(t?J=S.clipX0:re=S.clipY0)):me&&!we?({x0:L,y0:_,x1:N,y1:V}=S,q=void 0,Y=void 0,J=void 0,re=void 0):e&&(t?N=L:V=_)),{x0:L,y0:_,x1:N,y1:V,clipX0:q,clipY0:Y,clipX1:J,clipY1:re,horizontalInset:ce,verticalInset:he,phase:n}},toFn(h,S){let{x0:E,y0:L,x1:_,y1:N,clipX0:V,clipY0:q,clipX1:Y,clipY1:J,horizontalInset:re,verticalInset:ce}=S;return{x0:E,y0:L,x1:_,y1:N,clipX0:V,clipY0:q,clipX1:Y,clipY1:J,horizontalInset:re,verticalInset:ce}},applyFn(h,S){h.setProperties(bN(h,S))}}}}function bN(e,t){let{x:n,y:a,width:h,height:S}=n5(t),E=Jge(t),L=Qge(t,E);return{x:n,y:a,width:h,height:S,clipBBox:E,visible:L}}var epe={Before:"right",Center:"center",After:"left"},tpe={Before:"top",Center:"middle",After:"bottom"},ipe={Before:-1,Center:-.5,After:0},npe={Before:0,Center:-.5,After:-1};function ape(e,t,n,a,h){let{scale:S,bar:E}=a,{padding:L,horizontal:_}=n;t.each((N,V)=>{let q=J2(e,V,h==null?void 0:h.label),Y=()=>({width:S.width,height:S.height,meta:null}),J,re=V.avoidCollisions&&V.placement!=="outside-start"&&V.placement!=="outside-end";if(q==null)return;if(re){let gt=X2(q,V,{padding:L},Y);J=gt==null?void 0:gt[0]}else{let gt={fontSize:V.fontSize,fontStyle:V.fontStyle,fontWeight:V.fontWeight,fontFamily:V.fontFamily,lineHeight:V.lineHeight},{width:bt,height:At}=Zge.measureText(q,{font:gt});J={text:q,fontSize:V.fontSize,lineHeight:nP(V,V.fontSize),width:bt,height:At}}if(J==null){N.visible=!1;return}let ce=_?S.x:S.y+S.height,he=_?S.x+S.width:S.y,me=_?E.x:E.y+E.height,we=_?E.x+E.width:E.y,Me=V.spacing*(_?1:-1),be,Le,Fe,je;switch(V.placement){case"outside-start":be=-1/0,Le=1/0,Fe=ce-Me,je="Before";break;case"outside-end":be=-1/0,Le=1/0,Fe=he+Me,je="After";break;case"inside-start":be=ce,Le=we,Fe=ce+Me,je="After";break;case"inside-end":be=we,Le=he,Fe=he-Me,je="Before";break;case"inside-center":be=ce,Le=he,Fe=(ce+he)/2,je="Center";break;case"bar-inside":be=me,Le=we,Fe=(me+we)/2,je="Center";break;case"bar-inside-end":be=me,Le=we,Fe=we-Me,je="Before";break;case"bar-outside-end":be=we,Le=he,Fe=we+Me,je="After";break;case"bar-end":be=-1/0,Le=1/0,Fe=we,je="Center";break}let Xe=_?Fe:S.x+S.width/2,nt=_?S.y+S.height/2:Fe,lt,ot;_?(lt=Xe+ipe[je]*J.width,ot=lt+J.width):(lt=nt+npe[je]*J.height,ot=lt+J.height);let vt=Math.min(lt,ot)>=Math.min(be,Le)&&Math.max(lt,ot)<=Math.max(be,Le);if(V.avoidCollisions&&!vt){N.visible=!1;return}N.visible=!0,N.text=J.text,N.fontSize=J.fontSize,N.lineHeight=J.lineHeight,N.textAlign=_?epe[je]:"center",N.textBaseline=_?"middle":tpe[je],N.x=Xe,N.y=nt})}var{fromToMotion:o5,resetMotion:ope,SeriesNodePickMode:R9,StateMachine:rpe,createDatumId:P9,ChartAxisDirection:ky,CachedTextMeasurerPool:spe,toRadians:lpe,BBox:CN,Group:lP,PointerEvents:r5,Selection:cP,Rect:cpe,Text:L9,LinearGradient:dpe,getMarker:upe,easing:hpe}=Q2._ModuleSupport,gpe={before:180,middle:0,after:0},ppe={before:90,middle:0,after:-90},s5=class extends Q2._ModuleSupport.Series{constructor(e){super({moduleCtx:e,useLabelLayer:!0,pickModes:[R9.EXACT_SHAPE_MATCH,R9.NEAREST_NODE]}),this.canHaveAxes=!0,this.properties=new oh,this.originX=0,this.originY=0,this.scaleGroup=this.contentGroup.appendChild(new lP({name:"scaleGroup"})),this.itemGroup=this.contentGroup.appendChild(new lP({name:"itemGroup"})),this.itemTargetGroup=this.contentGroup.appendChild(new lP({name:"itemTargetGroup"})),this.itemTargetLabelGroup=this.contentGroup.appendChild(new lP({name:"itemTargetLabelGroup"})),this.itemLabelGroup=this.contentGroup.appendChild(new lP({name:"itemLabelGroup"})),this.highlightTargetGroup=this.highlightGroup.appendChild(new lP({name:"itemTargetLabelGroup"})),this.scaleSelection=cP.select(this.scaleGroup,()=>this.nodeFactory()),this.datumSelection=cP.select(this.itemGroup,()=>this.nodeFactory()),this.targetSelection=cP.select(this.itemTargetGroup,t=>this.markerFactory(t)),this.targetLabelSelection=cP.select(this.itemTargetLabelGroup,L9),this.labelSelection=cP.select(this.itemLabelGroup,L9),this.highlightTargetSelection=cP.select(this.highlightTargetGroup,t=>this.markerFactory(t)),this.nodeDatum={series:this,datum:{}},this.animationState=new rpe("empty",{empty:{update:{target:"ready",action:()=>this.animateEmptyUpdateReady()},reset:"empty",skip:"ready"},ready:{updateData:"waiting",clear:"clearing",resize:()=>this.animateReadyResize(),reset:"empty",skip:"ready"},waiting:{update:{target:"ready",action:()=>this.animateWaitingUpdateReady()},reset:"empty",skip:"ready"},clearing:{update:{target:"empty"},reset:"empty",skip:"ready"}}),this.itemGroup.pointerEvents=r5.None,this.itemTargetLabelGroup.pointerEvents=r5.None,this.itemLabelGroup.pointerEvents=r5.None}get horizontal(){return this.properties.direction==="horizontal"}get thickness(){return this.properties.thickness}computeInset(e,t){var E,L;let{label:n}=this.properties,a;switch(n.placement){case"outside-start":a=1;break;case"outside-end":a=-1;break;default:return 0}let h=(E=n.text)==null?void 0:E.split(`
`),S;if(e===ky.Y)S=nP(n,n.fontSize)*((L=h==null?void 0:h.length)!=null?L:1);else{let _=n.getFont();S=(h!=null?h:t.map(V=>{var q;return(q=J2(this,this.labelDatum(n,V)))!=null?q:""})).reduce((V,q)=>{let{width:Y}=spe.measureText(q,{font:_});return Math.max(V,Y)},0)}return a*(n.spacing+S)}get hasData(){return!0}nodeFactory(){let e=new cpe;return e.crisp=!0,e}markerFactory({shape:e}){let t=e!=="line"?upe(e):XG,n=new t;return n.size=1,n}processData(){this.nodeDataRefresh=!0,this.animationState.transition("updateData")}formatLabel(e){let{axes:t,horizontal:n}=this,a=n?t[ky.X]:t[ky.Y];return C9(e,a)}createLinearGradient(e,t){let{properties:n,originX:a,originY:h,horizontal:S,axes:E}=this,{thickness:L,defaultColorRange:_}=n,N=S?E[ky.X]:E[ky.Y],{domain:V,range:q}=N.scale,Y=q[1]-q[0],J=x9(e,_,V,t);return new dpe("oklch",J,S?90:0,new CN(a,h,S?Y:L,S?L:Y))}getTargets(){let{properties:e}=this,t=e.defaultTarget;return Array.from(e.targets).map(n=>{var Xe,nt,lt,ot,vt,gt,bt,At,Rt,It,Dt,jt,Nt,zt,Ut,Vt,Wt;let{text:a=t.text,value:h=(Xe=t.value)!=null?Xe:0,shape:S=(nt=t.shape)!=null?nt:"triangle",rotation:E=(lt=t.rotation)!=null?lt:0,strokeWidth:L=(ot=t.strokeWidth)!=null?ot:0,placement:_=(vt=t.placement)!=null?vt:"middle",spacing:N=(gt=t.spacing)!=null?gt:0,size:V=(bt=t.size)!=null?bt:0,fill:q=(At=t.fill)!=null?At:"black",fillOpacity:Y=(Rt=t.fillOpacity)!=null?Rt:1,stroke:J=(It=t.stroke)!=null?It:"black",strokeOpacity:re=(Dt=t.strokeOpacity)!=null?Dt:1,lineDash:ce=(jt=t.lineDash)!=null?jt:[0],lineDashOffset:he=(Nt=t.lineDashOffset)!=null?Nt:0}=n,{enabled:me=t.label.enabled,color:we=(zt=t.label.color)!=null?zt:"black",fontStyle:Me=(Ut=t.label.fontStyle)!=null?Ut:"normal",fontWeight:be=(Vt=t.label.fontWeight)!=null?Vt:"normal",fontSize:Le=t.label.fontSize,fontFamily:Fe=t.label.fontFamily,spacing:je=(Wt=t.label.spacing)!=null?Wt:0}=n.label;return{text:a,value:h,shape:S,placement:_,spacing:N,size:V,rotation:E,fill:q,fillOpacity:Y,stroke:J,strokeWidth:L,strokeOpacity:re,lineDash:ce,lineDashOffset:he,label:{enabled:me,color:we,fontStyle:Me,fontWeight:be,fontSize:Le,fontFamily:Fe,spacing:je}}})}getTargetPoint(e){let t=this.axes[ky.X],n=this.axes[ky.Y];if(t==null||n==null)return{x:0,y:0};let{properties:a,originX:h,originY:S,horizontal:E}=this,{thickness:L}=a,{value:_,placement:N,spacing:V,size:q}=e,Y=E?t:n,J=Y.scale.convert(_)-Y.scale.range[0],re;switch(N){case"before":re=-(V+q/2);break;case"after":re=L+V+q/2;break;default:re=L/2;break}return{x:h+t.range[0]+(E?J:re),y:S+n.range[0]+(E?re:J)}}getTargetLabel(e){let{size:t,placement:n,label:a}=e,{spacing:h,color:S,fontStyle:E,fontWeight:L,fontSize:_,fontFamily:N}=a,V=void 0,q=t/2+h,Y,J,re=0,ce=0;return this.horizontal?(Y="center",n==="after"?(J="top",ce=q):(J="bottom",ce=-q)):(J="middle",n==="before"?(Y="right",re=-q):(Y="left",re=q)),{offsetX:re,offsetY:ce,fill:S,textAlign:Y,textBaseline:J,fontStyle:E,fontWeight:L,fontSize:_,fontFamily:N,lineHeight:V}}labelDatum(e,t){let{placement:n,avoidCollisions:a,spacing:h,text:S,color:E,fontSize:L,minimumFontSize:_,fontStyle:N,fontWeight:V,fontFamily:q,lineHeight:Y,wrapping:J,overflowStrategy:re,formatter:ce=he=>this.formatLabel(he.value)}=e;return{placement:n,avoidCollisions:a,spacing:h,text:S,value:t,fill:E,fontSize:L,minimumFontSize:_,fontStyle:N,fontWeight:V,fontFamily:q,lineHeight:Y,wrapping:J,overflowStrategy:re,formatter:ce}}createNodeData(){var ki,si,di,Ii;let{id:e,properties:t,originX:n,originY:a,horizontal:h}=this;if(!t.isValid())return;let{value:S,segmentation:E,thickness:L,cornerRadius:_,cornerMode:N,bar:V,scale:q,label:Y}=t,J=this.getTargets(),re=this.axes[ky.X],ce=this.axes[ky.Y];if(re==null||ce==null)return;let he=h?re:ce,me=re.scale,we=ce.scale,Me=he.scale,{domain:be}=he.scale;he.isReversed()&&(be=be.slice().reverse());let Le=[],Fe=[],je=[],Xe=[],[nt,lt]=Me.range,ot=Math.abs(lt-nt),[vt,gt]=re.range;re.isReversed()&&([gt,vt]=[vt,gt]);let[bt,At]=ce.range;ce.isReversed()&&([At,bt]=[bt,At]);let Rt=h?me.convert(S):gt,It=h?At:we.convert(S),Dt=E.enabled?E.spacing/2:0,jt=h?Dt:0,Nt=h?0:Dt,zt=Math.min((ki=V.thickness)!=null?ki:Math.round(V.thicknessRatio*L),L),Ut=-(L-zt)/2,Vt=h?0:Ut,Wt=h?Ut:0,ci=N==="item",li=Math.ceil(ot),oi=E.enabled?E.interval.getSegments(Me,li):void 0,vi=(si=V.fill)!=null?si:this.createLinearGradient(V.fills,V.fillMode),gi=(Ii=(di=q.fill)!=null?di:V.enabled&&q.fills.length===0?q.defaultFill:void 0)!=null?Ii:this.createLinearGradient(q.fills,q.fillMode);if(oi==null&&ci){let bi=Math.min(...be),wi=Math.max(...be),Li={value:S,segmentStart:bi,segmentEnd:wi};if(V.enabled){let sa=Math.min(_,zt/2,ot/2)*(he.isReversed()?-1:1),gs=h?sa:0,jl=h?0:sa;Le.push({series:this,itemId:"value",datum:Li,type:0,x0:n+vt-gs-Vt,y0:a+bt-jl-Wt,x1:n+Rt+gs+Vt,y1:a+It+jl+Wt,clipX0:void 0,clipY0:void 0,clipX1:void 0,clipY1:void 0,topLeftCornerRadius:_,topRightCornerRadius:_,bottomRightCornerRadius:_,bottomLeftCornerRadius:_,fill:vi,horizontalInset:jt,verticalInset:Nt})}let on=Math.min(_,L/2,ot/2)*(he.isReversed()?-1:1),Dn=h?on:0,ln=h?0:on;Xe.push({series:this,itemId:"scale",datum:Li,type:0,x0:n+vt-Dn,y0:a+bt-ln,x1:n+gt+Dn,y1:a+At+ln,clipX0:void 0,clipY0:void 0,clipX1:void 0,clipY1:void 0,topLeftCornerRadius:_,topRightCornerRadius:_,bottomRightCornerRadius:_,bottomLeftCornerRadius:_,fill:gi,horizontalInset:jt,verticalInset:Nt})}else{oi!=null||(oi=be);let bi=n+vt-Vt,wi=a+bt-Wt,Li=n+Rt+Vt,Ln=a+It+Wt;for(let on=0;on<oi.length-1;on+=1){let Dn=oi[on+0],ln=oi[on+1],ra={value:S,segmentStart:Dn,segmentEnd:ln},sa=on===0,gs=on===oi.length-2,jl=Me.convert(Dn),dh=Me.convert(ln),Rs=ci||sa?_:0,Zh=ci||gs?_:0,Qc=h?Rs:Zh,eI=Zh,BC=h?Zh:Rs,RA=Rs;V.enabled&&Le.push({series:this,itemId:`value-${on}`,datum:ra,type:0,x0:n+(h?jl:vt),y0:a+(h?bt:jl),x1:n+(h?dh:gt),y1:a+(h?At:dh),clipX0:bi,clipY0:wi,clipX1:Li,clipY1:Ln,topLeftCornerRadius:Qc,topRightCornerRadius:eI,bottomRightCornerRadius:BC,bottomLeftCornerRadius:RA,fill:vi,horizontalInset:jt,verticalInset:Nt}),Xe.push({series:this,itemId:`scale-${on}`,datum:ra,type:0,x0:n+(h?jl:vt),y0:a+(h?bt:jl),x1:n+(h?dh:gt),y1:a+(h?At:dh),clipX0:void 0,clipY0:void 0,clipX1:void 0,clipY1:void 0,topLeftCornerRadius:Qc,topRightCornerRadius:eI,bottomRightCornerRadius:BC,bottomLeftCornerRadius:RA,fill:gi,horizontalInset:jt,verticalInset:Nt})}}Y.enabled&&je.push(this.labelDatum(Y,S));let fi=h?gpe:ppe;for(let bi=0;bi<J.length;bi+=1){let wi=J[bi],{value:Li,text:Ln,shape:on,size:Dn,fill:ln,fillOpacity:ra,stroke:sa,strokeWidth:gs,strokeOpacity:jl,lineDash:dh,lineDashOffset:Rs}=wi,Zh=this.getTargetPoint(wi),Qc=lpe(wi.rotation+fi[wi.placement]);Fe.push({series:this,itemId:`target-${bi}`,midPoint:Zh,datum:{value:Li},type:1,value:Li,text:Ln,x:Zh.x,y:Zh.y,shape:on,size:Dn,rotation:Qc,fill:ln,fillOpacity:ra,stroke:sa,strokeOpacity:jl,strokeWidth:gs,lineDash:dh,lineDashOffset:Rs,label:this.getTargetLabel(wi)})}return{itemId:e,nodeData:Le,targetData:Fe,labelData:je,scaleData:Xe}}updateSelections(e){(this.nodeDataRefresh||e)&&(this.contextNodeData=this.createNodeData(),this.nodeDataRefresh=!1)}highlightDatum(e){if(e!=null&&e.series===this&&e.type===1)return e}update({seriesRect:e}){var J,re,ce,he,me,we,Me,be;let{datumSelection:t,labelSelection:n,targetSelection:a,targetLabelSelection:h,scaleSelection:S,highlightTargetSelection:E}=this,L=this.checkResize(e);this.updateSelections(L),this.contentGroup.visible=this.visible,this.contentGroup.opacity=this.getOpacity();let _=(re=(J=this.contextNodeData)==null?void 0:J.nodeData)!=null?re:[],N=(he=(ce=this.contextNodeData)==null?void 0:ce.labelData)!=null?he:[],V=(we=(me=this.contextNodeData)==null?void 0:me.targetData)!=null?we:[],q=(be=(Me=this.contextNodeData)==null?void 0:Me.scaleData)!=null?be:[],Y=this.highlightDatum(this.ctx.highlightManager.getActiveHighlight());this.scaleSelection=this.updateScaleSelection({scaleData:q,scaleSelection:S}),this.updateScaleNodes({scaleSelection:S}),this.targetSelection=this.updateTargetSelection({targetData:V,targetSelection:a}),this.updateTargetNodes({targetSelection:a,isHighlight:!1}),this.targetLabelSelection=this.updateTargetLabelSelection({targetData:V,targetLabelSelection:h}),this.updateTargetLabelNodes({targetLabelSelection:h}),this.datumSelection=this.updateDatumSelection({nodeData:_,datumSelection:t}),this.updateDatumNodes({datumSelection:t}),this.labelSelection=this.updateLabelSelection({labelData:N,labelSelection:n}),this.updateLabelNodes({labelSelection:n}),this.highlightTargetSelection=this.updateTargetSelection({targetData:Y!=null?[Y]:[],targetSelection:E}),this.updateTargetNodes({targetSelection:E,isHighlight:!0}),L&&this.animationState.transition("resize"),this.animationState.transition("update")}updateDatumSelection(e){return e.datumSelection.update(e.nodeData,void 0,t=>P9(e.nodeData.length,t.itemId))}updateDatumNodes(e){let{datumSelection:t}=e,{ctx:n,properties:a}=this,{bar:h}=a,{fillOpacity:S,stroke:E,strokeOpacity:L,lineDash:_,lineDashOffset:N}=h,V=this.getStrokeWidth(h.strokeWidth),q=n.animationManager.isSkipped();t.each((Y,J)=>{let{topLeftCornerRadius:re,topRightCornerRadius:ce,bottomRightCornerRadius:he,bottomLeftCornerRadius:me,fill:we}=J;Y.fill=we,Y.fillOpacity=S,Y.stroke=E,Y.strokeOpacity=L,Y.strokeWidth=V,Y.lineDash=_,Y.lineDashOffset=N,Y.topLeftCornerRadius=re,Y.topRightCornerRadius=ce,Y.bottomRightCornerRadius=he,Y.bottomLeftCornerRadius=me,(q||Y.previousDatum==null)&&Y.setProperties(bN(Y,J))})}updateScaleSelection(e){return e.scaleSelection.update(e.scaleData,void 0,t=>P9(e.scaleData.length,t.itemId))}updateScaleNodes(e){let{scaleSelection:t}=e,{scale:n}=this.properties,{fillOpacity:a,stroke:h,strokeOpacity:S,strokeWidth:E,lineDash:L,lineDashOffset:_}=n;t.each((N,V)=>{let{topLeftCornerRadius:q,topRightCornerRadius:Y,bottomRightCornerRadius:J,bottomLeftCornerRadius:re,fill:ce}=V;N.fill=ce,N.fillOpacity=a,N.stroke=h,N.strokeOpacity=S,N.strokeWidth=E,N.lineDash=L,N.lineDashOffset=_,N.topLeftCornerRadius=q,N.topRightCornerRadius=Y,N.bottomRightCornerRadius=J,N.bottomLeftCornerRadius=re,N.setProperties(bN(N,V))})}updateTargetSelection(e){return e.targetSelection.update(e.targetData,void 0,t=>t.itemId)}updateTargetNodes(e){let{targetSelection:t,isHighlight:n}=e,a=n?this.properties.highlightStyle.item:void 0;t.each((h,S)=>{var me,we,Me,be,Le,Fe,je;let{x:E,y:L,size:_,rotation:N,fill:V,fillOpacity:q,stroke:Y,strokeOpacity:J,strokeWidth:re,lineDash:ce,lineDashOffset:he}=S;h.size=_,h.fill=(me=a==null?void 0:a.fill)!=null?me:V,h.fillOpacity=(we=a==null?void 0:a.fillOpacity)!=null?we:q,h.stroke=(Me=a==null?void 0:a.stroke)!=null?Me:Y,h.strokeOpacity=(be=a==null?void 0:a.strokeOpacity)!=null?be:J,h.strokeWidth=(Le=a==null?void 0:a.strokeWidth)!=null?Le:re,h.lineDash=(Fe=a==null?void 0:a.lineDash)!=null?Fe:ce,h.lineDashOffset=(je=a==null?void 0:a.lineDashOffset)!=null?je:he,h.translationX=E,h.translationY=L,h.rotation=N})}updateTargetLabelSelection(e){return e.targetLabelSelection.update(e.targetData)}updateTargetLabelNodes(e){let{targetLabelSelection:t}=e;t.each((n,a)=>{let{x:h,y:S,text:E}=a,{offsetX:L,offsetY:_,fill:N,fontStyle:V,fontWeight:q,fontSize:Y,fontFamily:J,textAlign:re,textBaseline:ce}=a.label;n.visible=!0,n.x=h+L,n.y=S+_,n.text=E,n.fill=N,n.fontStyle=V,n.fontWeight=q,n.fontSize=Y,n.fontFamily=J,n.textAlign=re,n.textBaseline=ce})}updateLabelSelection(e){return e.labelSelection.update(e.labelData,void 0,t=>"primary")}updateLabelNodes(e){let{labelSelection:t}=e,n=this.ctx.animationManager.isSkipped();t.each((a,h)=>{a.fill=h.fill,a.fontStyle=h.fontStyle,a.fontWeight=h.fontWeight,a.fontFamily=h.fontFamily}),(n||this.labelsHaveExplicitText())&&this.formatLabelText()}labelsHaveExplicitText(){for(let{datum:e}of this.labelSelection)if(e.text==null)return!1;return!0}formatLabelText(e){var we;let{labelSelection:t,horizontal:n,axes:a}=this,h=a[ky.X],S=a[ky.Y];if(h==null||S==null)return;let[E,L]=h.range,[_,N]=S.range,V=this.originX+Math.min(E,L),q=this.originY+Math.min(_,N),Y=Math.abs(L-E),J=Math.abs(N-_),re=(we=e==null?void 0:e.label)!=null?we:this.properties.value,ce;if(n){let Me=h.scale.convert(re);ce=new CN(V,q,Me-V,J)}else{let Me=S.scale.convert(re);ce=new CN(V,Me,Y,J-Me)}let he={scale:new CN(V,q,Y,J),bar:ce},{margin:me}=this.properties;ape(this,t,{padding:me,horizontal:n},he,e)}resetAllAnimation(){this.ctx.animationManager.stopByAnimationGroupId(this.id),ope([this.datumSelection],bN),this.formatLabelText()}resetAnimation(e){e==="initial"?this.animationState.transition("reset"):e==="ready"&&this.animationState.transition("skip")}animateLabelText(e={}){var h;let{animationManager:t}=this.ctx,n=0,a=0;if(this.labelSelection.each((S,E)=>{var L,_,N;S.opacity=1,n=(N=(_=(L=S.previousDatum)==null?void 0:L.value)!=null?_:e.from)!=null?N:E.value,a=E.value}),!this.labelsHaveExplicitText())if(n===a)this.formatLabelText({label:a});else{let S=`${this.id}_labels`;t.animate({id:S,groupId:"label",from:{label:n},to:{label:a},phase:(h=e.phase)!=null?h:"update",ease:hpe.easeOut,onUpdate:E=>this.formatLabelText(E)})}}animateEmptyUpdateReady(){let{animationManager:e}=this.ctx,{node:t}=T9(!0,this.horizontal);o5(this.id,"node",e,[this.datumSelection],t,(n,a)=>a.itemId),o5(this.id,"label",e,[this.labelSelection],b9,()=>"primary"),this.animateLabelText({from:0,phase:"initial"})}animateWaitingUpdateReady(){let{animationManager:e}=this.ctx,{node:t}=T9(!1,this.horizontal);o5(this.id,"node",e,[this.datumSelection],t,(n,a)=>a.itemId),this.animateLabelText()}animateReadyResize(){this.resetAllAnimation()}getSeriesDomain(){return[NaN,NaN]}getSeriesRange(e,t){return[NaN,NaN]}getLegendData(){return[]}pickNode(e,t){switch(t){case"event":case"context-menu":{let n=this.scaleGroup.pickNode(e.x,e.y);return n!=null?{pickMode:Q2._ModuleSupport.SeriesNodePickMode.EXACT_SHAPE_MATCH,match:n.datum,distance:0}:void 0}case"tooltip":case"highlight":case"highlight-tooltip":{let n=this.itemTargetGroup.pickNode(e.x,e.y);return n!=null?{pickMode:Q2._ModuleSupport.SeriesNodePickMode.EXACT_SHAPE_MATCH,match:n.datum,distance:0}:{pickMode:Q2._ModuleSupport.SeriesNodePickMode.NEAREST_NODE,match:this.nodeDatum,distance:0}}}}getTooltipContent(e){var L;let{id:t,properties:n}=this,{tooltip:a}=n;if(!n.isValid())return;let h=this.highlightDatum(e),S=(L=h==null?void 0:h.value)!=null?L:n.value,E=h==null?void 0:h.text;return a.formatTooltip({data:[{label:E!=null?E:"",value:this.formatLabel(S)}]},{seriesId:t,title:void 0,datum:void 0,value:S})}pickFocus(e){var h;let t=(h=this.contextNodeData)==null?void 0:h.targetData;if(t==null||t.length===0)return;let n=Math.min(Math.max(e.datumIndex,0),t.length-1),a=t[n];for(let S of this.targetSelection)if(S.datum===a)return{bounds:S.node,showFocusBox:!0,clipFocusBox:!0,datum:a,datumIndex:n}}getCaptionText(){let{value:e}=this.properties,t=[];return t.push(this.formatLabel(e)),t.join(". ")}};s5.className="LinearGaugeSeries",s5.type="linear-gauge";var{ThemeSymbols:{DEFAULT_FONT_FAMILY:O9,DEFAULT_HIERARCHY_FILLS:mpe,DEFAULT_LABEL_COLOUR:l5,DEFAULT_INVERTED_LABEL_COLOUR:fpe,DEFAULT_GAUGE_SERIES_COLOR_RANGE:vpe},ThemeConstants:{CARTESIAN_AXIS_TYPE:c5}}=Cge._ModuleSupport,ype={type:"series",optionsKey:"series[]",packageType:"enterprise",chartTypes:["gauge"],identifier:"linear-gauge",moduleFactory:e=>new s5(e),tooltipDefaults:{range:"exact"},defaultAxes:[{type:c5.NUMBER,line:{enabled:!1}},{type:c5.NUMBER,line:{enabled:!1}}],themeTemplate:{minWidth:200,minHeight:200,series:{thickness:50,bar:{strokeWidth:0},segmentation:{enabled:!1,interval:{},spacing:1},defaultTarget:{fill:l5,stroke:l5,size:10,shape:"triangle",placement:"after",spacing:5,label:{enabled:!0,fontWeight:"normal",fontSize:12,fontFamily:O9,color:l5,spacing:5}},label:{enabled:!1,placement:"inside-start",fontWeight:"normal",fontSize:24,minimumFontSize:12,spacing:18,fontFamily:O9,color:fpe},margin:4,tooltip:{enabled:!1}},axes:{[c5.NUMBER]:{line:{enabled:!1},gridLine:{enabled:!1}}}},paletteFactory(e){let{takeColors:t,colorsCount:n,userPalette:a,themeTemplateParameters:h}=e,{fills:S}=t(n),E=h.get(vpe),L=h.get(mpe),_=a==="inbuilt"?E:[S[0],S[1]];return{scale:{defaultFill:L==null?void 0:L[1],stroke:L==null?void 0:L[2]},defaultColorRange:y9(_)}}},bpe=(xt(),D(wt)),tO={zoom:{axes:"xy",anchorPointX:"pointer",anchorPointY:"pointer"},legend:{enabled:!1},gradientLegend:{enabled:!1},tooltip:{range:"exact"}},Cpe=(xt(),D(wt)),Spe=(xt(),D(wt)),wpe=1e-9;function _9(e,t,n,a){let[h,S]=e,[E,L]=t,_=E-h,N=L-S,V=_*_+N*N,q,Y;if(Math.abs(V)<wpe)q=h,Y=S;else{let ce=((n-h)*_+(a-S)*N)/V;ce=Math.max(0,Math.min(1,ce)),q=h+ce*(E-h),Y=S+ce*(L-S)}let J=n-q,re=a-Y;return J*J+re*re}function F9(e,t,n){let a=1/0,h=e[e.length-1];for(let S of e)a=Math.min(a,_9(h,S,t,n)),h=S;return Math.sqrt(a)}function d5(e){let[t,n]=e[0],a=0;for(let h=1;h<e.length;h+=1){let[S,E]=e[h],L=Math.hypot(S-t,E-n);a+=L,t=S,n=E}return a}function SN(e){if(e.length===0)return;let t=d5(e)/2,[n,a]=e[0],h=0;for(let S=1;S<e.length;S+=1){let[E,L]=e[S],_=Math.hypot(E-n,L-a),N=h+_;if(N>t){let V=(t-h)/_,q=[n+(E-n)*V,a+(L-a)*V],Y=Math.atan2(L-a,E-n);return{point:q,angle:Y}}h=N,n=E,a=L}}var xpe=(xt(),D(wt)),{LonLatBBox:Mpe}=xpe._ModuleSupport;function iO(e,t,n,a,h){return e==null?e=new Mpe(t,n,a,h):(e.lon0=Math.min(e.lon0,t),e.lat0=Math.min(e.lat0,n),e.lon1=Math.max(e.lon1,a),e.lat1=Math.max(e.lat1,h)),e}function GE(e,t){return e.forEach(n=>{let[a,h]=n;t=iO(t,a,h,a,h)}),t}function kpe(e){if(e.length===0)return;let t=0,n=0,a=0,[h,S]=e[e.length-1];for(let[E,L]of e){let _=h*L-E*S;a+=_,t+=(h+E)*_,n+=(S+L)*_,h=E,S=L}return a*=3,[t/a,n/a]}function wN(e,t,n){let a=!1,h=1/0;for(let S of e){let E=S[S.length-1],[L,_]=E;for(let N of S){let[V,q]=N;q>n!=_>n&&t<(L-V)*(n-q)/(_-q)+V&&(a=!a),h=Math.min(h,_9(E,N,t,n)),E=N,L=V,_=q}}return(a?-1:1)*Math.sqrt(h)}var{Path:Ape,ExtendedPath2D:Dpe,BBox:Epe,ScenePathChangeDetection:N9}=Spe._ModuleSupport,dP=class extends Ape{constructor(){super(...arguments),this.projectedGeometry=void 0,this.renderMode=3,this.strokePath=new Dpe}computeBBox(){var e;return(this.dirtyPath||this.isDirtyPath())&&(this.updatePath(),this.dirtyPath=!1),(e=this.bbox)==null?void 0:e.clone()}updatePath(){let{projectedGeometry:e}=this;this.strokePath.clear(),this.path.clear(),this.bbox=e!=null?this.drawGeometry(e,void 0):void 0}drawPath(e){super.drawPath(e),this.renderStroke(e,this.strokePath.getPath2D())}containsPoint(e,t){let{projectedGeometry:n}=this;return n==null||!this.getBBox().containsPoint(e,t)?!1:this.geometryDistance(n,e,t)<=0}distanceSquared(e,t){let{projectedGeometry:n}=this;if(n==null)return 1/0;let a=this.geometryDistance(n,e,t);return a>0?a*a:0}geometryDistance(e,t,n){let{renderMode:a,strokeWidth:h}=this,S=(a&1)!==0,E=(a&2)!==0,L=Math.max(h/2,1)+1;switch(e.type){case"GeometryCollection":return e.geometries.reduce((_,N)=>Math.min(_,this.geometryDistance(N,t,n)),1/0);case"MultiPolygon":return S?e.coordinates.reduce((_,N)=>Math.min(_,Math.max(wN(N,t,n),0)),1/0):1/0;case"Polygon":return S?Math.max(wN(e.coordinates,t,n),0):1/0;case"MultiLineString":return E?e.coordinates.reduce((_,N)=>Math.min(_,Math.max(F9(N,t,n)-L,0)),1/0):1/0;case"LineString":return E?Math.max(F9(e.coordinates,t,n)-L,0):1/0;case"MultiPoint":case"Point":default:return 1/0}}drawGeometry(e,t){let{renderMode:n,path:a,strokePath:h}=this,S=(n&1)!==0,E=(n&2)!==0;switch(e.type){case"GeometryCollection":e.geometries.forEach(L=>{t=this.drawGeometry(L,t)});break;case"MultiPolygon":S&&e.coordinates.forEach(L=>{t=this.drawPolygon(a,L,t)});break;case"Polygon":S&&(t=this.drawPolygon(a,e.coordinates,t));break;case"LineString":E&&(t=this.drawLineString(h,e.coordinates,t,!1));break;case"MultiLineString":E&&e.coordinates.forEach(L=>{t=this.drawLineString(h,L,t,!1)});break;case"Point":case"MultiPoint":break}return t}drawPolygon(e,t,n){if(t.length<1)return n;n=this.drawLineString(e,t[0],n,!0);for(let a=1;a<t.length;a+=1){let h=t[a];this.drawLineString(e,h,void 0,!0)}return n}drawLineString(e,t,n,a){if(t.length<2)return n;let h=a?t.length-1:t.length;for(let S=0;S<h;S+=1){let[E,L]=t[S];if(S===0?e.moveTo(E,L):e.lineTo(E,L),n==null)n=new Epe(E,L,0,0);else{let{x:_,y:N}=n,V=_+n.width,q=N+n.height;n.x=Math.min(_,E),n.y=Math.min(N,L),n.width=Math.max(V,E)-n.x,n.height=Math.max(q,L)-n.y}}return a&&e.closePath(),n}};ve([N9()],dP.prototype,"projectedGeometry",2),ve([N9()],dP.prototype,"renderMode",2);function uP(e,t){if(e.bbox!=null){let[n,a,h,S]=e.bbox;return t=iO(t,n,a,h,S),t}switch(e.type){case"GeometryCollection":e.geometries.forEach(n=>{t=uP(n,t)});break;case"MultiPolygon":e.coordinates.forEach(n=>{n.length>0&&(t=GE(n[0],t))});break;case"Polygon":e.coordinates.length>0&&(t=GE(e.coordinates[0],t));break;case"MultiLineString":e.coordinates.forEach(n=>{t=GE(n,t)});break;case"LineString":t=GE(e.coordinates,t);break;case"MultiPoint":e.coordinates.forEach(n=>{let[a,h]=n;t=iO(t,a,h,a,h)});break;case"Point":{let[n,a]=e.coordinates;t=iO(t,n,a,n,a);break}}return t}function xN(e){switch(e.type){case"GeometryCollection":{let t,n;return e.geometries.forEach(a=>{let h=xN(a);if(h==null)return;let S=GE(h[0],void 0);if(S==null)return;let E=Math.abs(S.lat1-S.lat0)*Math.abs(S.lon1-S.lon0);(t==null||E>t)&&(t=E,n=h)}),n}case"MultiPolygon":{let t,n;return e.coordinates.forEach(a=>{let h=GE(a[0],void 0);if(h==null)return;let S=Math.abs(h.lat1-h.lat0)*Math.abs(h.lon1-h.lon0);(t==null||S>t)&&(t=S,n=a)}),n}case"Polygon":return e.coordinates;case"MultiLineString":case"LineString":case"MultiPoint":case"Point":return}}function MN(e){switch(e.type){case"GeometryCollection":{let t,n;return e.geometries.forEach(a=>{let h=MN(a);if(h==null)return;let S=d5(h);S!=null&&(t==null||S>t)&&(t=S,n=h)}),n}case"MultiLineString":{let t=0,n;return e.coordinates.forEach(a=>{let h=d5(a);h>t&&(t=h,n=a)}),n}case"LineString":return e.coordinates;case"MultiPolygon":case"Polygon":case"MultiPoint":case"Point":return}}function u5(e,t){if(e==null)return!1;switch(e.type){case"GeometryCollection":return e.geometries.some(n=>u5(n,t));case"MultiPolygon":case"Polygon":return(t&1)!==0;case"MultiLineString":case"LineString":return(t&2)!==0;case"MultiPoint":case"Point":return(t&4)!==0}}function xA(e,t){switch(e.type){case"GeometryCollection":return{type:"GeometryCollection",geometries:e.geometries.map(n=>xA(n,t))};case"Polygon":return{type:"Polygon",coordinates:h5(e.coordinates,t)};case"MultiPolygon":return{type:"MultiPolygon",coordinates:Ipe(e.coordinates,t)};case"MultiLineString":return{type:"MultiLineString",coordinates:h5(e.coordinates,t)};case"LineString":return{type:"LineString",coordinates:g5(e.coordinates,t)};case"MultiPoint":return{type:"MultiPoint",coordinates:g5(e.coordinates,t)};case"Point":return{type:"Point",coordinates:t.convert(e.coordinates)}}}function Ipe(e,t){return e.map(n=>h5(n,t))}function h5(e,t){return e.map(n=>g5(n,t))}function g5(e,t){return e.map(n=>t.convert(n))}var z9=(xt(),D(wt)),Axe=class extends z9._ModuleSupport.SeriesProperties{},nO=class extends z9._ModuleSupport.DataModelSeries{addChartEventListeners(){this.destroyFns.push(this.ctx.chartEventManager.addListener("legend-item-click",e=>{this.onLegendItemClick(e)}),this.ctx.chartEventManager.addListener("legend-item-double-click",e=>{this.onLegendItemDoubleClick(e)}))}getSeriesDomain(){return[NaN,NaN]}getSeriesRange(e,t){return[NaN,NaN]}},B9=(xt(),D(wt));function G9(e){return Array.isArray(e)&&e.length>=2&&e.every(B9._ModuleSupport.isFiniteNumber)}function kN(e){return Array.isArray(e)&&e.length>=2&&e.every(G9)}var j9=.001;function Tpe(e){return Math.abs(e[0][0]-e[e.length-1][0])<j9&&Math.abs(e[0][1]-e[e.length-1][1])<j9}function V9(e){return Array.isArray(e)&&e.every(kN)&&e.every(Tpe)}function H9(e){if(e===null)return!0;if(typeof e!="object"||e.type==null)return!1;let{type:t,coordinates:n}=e;switch(t){case"GeometryCollection":return Array.isArray(e.geometries)&&e.geometries.every(H9);case"MultiPolygon":return Array.isArray(n)&&n.every(V9);case"Polygon":return V9(n);case"MultiLineString":return Array.isArray(n)&&n.every(kN);case"LineString":return kN(n);case"MultiPoint":return kN(n);case"Point":return G9(n)}}function Rpe(e){return e!==null&&typeof e=="object"&&e.type==="Feature"&&H9(e.geometry)}function Ppe(e){return e!==null&&typeof e=="object"&&e.type==="FeatureCollection"&&Array.isArray(e.features)&&e.features.every(Rpe)}var FC=B9._ModuleSupport.predicateWithMessage(Ppe,"a GeoJSON object"),Lpe=(xt(),D(wt)),{COLOR_STRING:Ope,LINE_DASH:_pe,OBJECT:Fpe,POSITIVE_NUMBER:W9,RATIO:Npe,Validate:jE,SeriesProperties:zpe,SeriesTooltip:Bpe}=Lpe._ModuleSupport,MA=class extends zpe{constructor(){super(...arguments),this.topology=void 0,this.stroke="black",this.strokeOpacity=1,this.strokeWidth=0,this.lineDash=[0],this.lineDashOffset=0,this.tooltip=new Bpe}};ve([jE(FC,{optional:!0})],MA.prototype,"topology",2),ve([jE(Ope)],MA.prototype,"stroke",2),ve([jE(Npe)],MA.prototype,"strokeOpacity",2),ve([jE(W9)],MA.prototype,"strokeWidth",2),ve([jE(_pe)],MA.prototype,"lineDash",2),ve([jE(W9)],MA.prototype,"lineDashOffset",2),ve([jE(Fpe)],MA.prototype,"tooltip",2);var{createDatumId:Gpe,SeriesNodePickMode:jpe,Validate:Vpe,Logger:Hpe,Group:Wpe,Selection:Upe,PointerEvents:Kpe}=Cpe._ModuleSupport,AN=class extends nO{constructor(e){super({moduleCtx:e,useLabelLayer:!0,pickModes:[jpe.EXACT_SHAPE_MATCH]}),this.properties=new MA,this._chartTopology=void 0,this.itemGroup=this.contentGroup.appendChild(new Wpe({name:"itemGroup"})),this.datumSelection=Upe.select(this.itemGroup,()=>this.nodeFactory())}getNodeData(){var e;return(e=this.contextNodeData)==null?void 0:e.nodeData}get topology(){var e;return(e=this.properties.topology)!=null?e:this._chartTopology}setOptionsData(){}setChartData(){}get hasData(){return!1}renderToOffscreenCanvas(){return!0}setChartTopology(e){this._chartTopology=e,this.topology===e&&(this.nodeDataRefresh=!0)}setSeriesIndex(e){return super.setSeriesIndex(e)?(this.contentGroup.zIndex=[0,e,0],this.highlightGroup.zIndex=[0,e,1],!0):!1}nodeFactory(){let e=new dP;return e.renderMode=2,e.lineJoin="round",e.lineCap="round",e.pointerEvents=Kpe.None,e}processData(){let{topology:e}=this;this.topologyBounds=e==null?void 0:e.features.reduce((t,n)=>{let a=n.geometry;return a==null?t:uP(a,t)},void 0),e==null&&Hpe.warnOnce("no topology was provided for [MapShapeBackgroundSeries]; nothing will be rendered.")}createNodeData(){let{id:e,topology:t,scale:n}=this;if(t==null)return;let a=[],h=[];return t.features.forEach((S,E)=>{let{geometry:L}=S,_=L!=null&&n!=null?xA(L,n):void 0;_!=null&&a.push({series:this,itemId:E,datum:S,index:E,projectedGeometry:_})}),{itemId:e,nodeData:a,labelData:h}}updateSelections(){this.nodeDataRefresh&&(this.contextNodeData=this.createNodeData(),this.nodeDataRefresh=!1)}update(){var n;let{datumSelection:e}=this;this.updateSelections(),this.contentGroup.visible=this.visible;let{nodeData:t=[]}=(n=this.contextNodeData)!=null?n:{};this.datumSelection=this.updateDatumSelection({nodeData:t,datumSelection:e}),this.updateDatumNodes({datumSelection:e})}updateDatumSelection(e){return e.datumSelection.update(e.nodeData,void 0,t=>Gpe(t.index))}updateDatumNodes(e){let{properties:t}=this,{datumSelection:n}=e,{stroke:a,strokeOpacity:h,lineDash:S,lineDashOffset:E}=t,L=this.getStrokeWidth(t.strokeWidth);n.each((_,N)=>{let{projectedGeometry:V}=N;if(V==null){_.visible=!1,_.projectedGeometry=void 0;return}_.visible=!0,_.projectedGeometry=V,_.stroke=a,_.strokeWidth=L,_.strokeOpacity=h,_.lineDash=S,_.lineDashOffset=E})}resetAnimation(){}getLegendData(){return[]}getTooltipContent(e){}computeFocusBounds(e){}};AN.className="MapLineBackgroundSeries",AN.type="map-line-background",ve([Vpe(FC,{optional:!0,property:"topology"})],AN.prototype,"_chartTopology",2);var{DEFAULT_HIERARCHY_STROKES:qpe}=bpe._ModuleSupport.ThemeSymbols,Ype={type:"series",optionsKey:"series[]",packageType:"enterprise",chartTypes:["topology"],identifier:"map-line-background",moduleFactory:e=>new AN(e),tooltipDefaults:{range:"exact"},themeTemplate:et(pe({},tO),{series:{strokeWidth:1,lineDash:[0],lineDashOffset:0}}),paletteFactory:({themeTemplateParameters:e})=>{var t;return{stroke:(t=e.get(qpe))==null?void 0:t[1]}}},U9=(xt(),D(wt)),K9=(xt(),D(wt));function Xpe(){return{fromFn:(n,a,h)=>h==="removed"?{scalingX:1,scalingY:1}:n.previousDatum==null?{scalingX:0,scalingY:0}:{scalingX:n.scalingX,scalingY:n.scalingY},toFn:(n,a,h)=>h==="removed"?{scalingX:0,scalingY:0}:{scalingX:1,scalingY:1}}}function q9(e,t){var a;let n=(a=e.contextNodeData)==null?void 0:a.nodeData[t.datumIndex];if(n!==void 0){for(let h of e.datumSelection.nodes())if(h.datum===n)return h}}var Zpe=(xt(),D(wt)),{AND:$pe,ARRAY:Qpe,COLOR_STRING:Jpe,COLOR_STRING_ARRAY:eme,FUNCTION:tme,LINE_DASH:ime,NUMBER_ARRAY:nme,OBJECT:Y9,POSITIVE_NUMBER:p5,RATIO:ame,STRING:Ay,Validate:Is,SeriesProperties:ome,SeriesTooltip:rme,Label:sme}=Zpe._ModuleSupport,hs=class extends ome{constructor(){super(...arguments),this.topology=void 0,this.idKey="",this.topologyIdKey="name",this.idName=void 0,this.labelKey=void 0,this.labelName=void 0,this.colorRange=void 0,this.maxStrokeWidth=void 0,this.stroke="black",this.strokeOpacity=1,this.strokeWidth=0,this.lineDash=[0],this.lineDashOffset=0,this.label=new sme,this.tooltip=new rme}};ve([Is(FC,{optional:!0})],hs.prototype,"topology",2),ve([Is(Ay,{optional:!0})],hs.prototype,"title",2),ve([Is(Ay,{optional:!0})],hs.prototype,"legendItemName",2),ve([Is(Ay)],hs.prototype,"idKey",2),ve([Is(Ay)],hs.prototype,"topologyIdKey",2),ve([Is(Ay,{optional:!0})],hs.prototype,"idName",2),ve([Is(Ay,{optional:!0})],hs.prototype,"labelKey",2),ve([Is(Ay,{optional:!0})],hs.prototype,"labelName",2),ve([Is(Ay,{optional:!0})],hs.prototype,"sizeKey",2),ve([Is(Ay,{optional:!0})],hs.prototype,"sizeName",2),ve([Is(Ay,{optional:!0})],hs.prototype,"colorKey",2),ve([Is(Ay,{optional:!0})],hs.prototype,"colorName",2),ve([Is(nme,{optional:!0})],hs.prototype,"sizeDomain",2),ve([Is($pe(eme,Qpe.restrict({minLength:1})),{optional:!0})],hs.prototype,"colorRange",2),ve([Is(p5,{optional:!0})],hs.prototype,"maxStrokeWidth",2),ve([Is(Jpe)],hs.prototype,"stroke",2),ve([Is(ame)],hs.prototype,"strokeOpacity",2),ve([Is(p5)],hs.prototype,"strokeWidth",2),ve([Is(ime)],hs.prototype,"lineDash",2),ve([Is(p5)],hs.prototype,"lineDashOffset",2),ve([Is(tme,{optional:!0})],hs.prototype,"itemStyler",2),ve([Is(Y9)],hs.prototype,"label",2),ve([Is(Y9)],hs.prototype,"tooltip",2);var{getMissCount:lme,createDatumId:X9,SeriesNodePickMode:Z9,valueProperty:aO,CachedTextMeasurerPool:cme,Validate:dme,Logger:$9,ColorScale:ume,LinearScale:hme,Selection:m5,Text:gme}=K9._ModuleSupport,DN=class extends nO{constructor(e){super({moduleCtx:e,useLabelLayer:!0,pickModes:[Z9.EXACT_SHAPE_MATCH,Z9.NEAREST_NODE],usesPlacedLabels:!0}),this.properties=new hs,this._chartTopology=void 0,this.colorScale=new ume,this.sizeScale=new hme,this.datumSelection=m5.select(this.contentGroup,()=>this.nodeFactory()),this.labelSelection=m5.select(this.labelGroup,gme),this.highlightDatumSelection=m5.select(this.highlightNode,()=>this.nodeFactory()),this._previousDatumMidPoint=void 0}getNodeData(){var e;return(e=this.contextNodeData)==null?void 0:e.nodeData}get topology(){var e;return(e=this.properties.topology)!=null?e:this._chartTopology}get hasData(){return super.hasData&&this.topology!=null}renderToOffscreenCanvas(){return!0}setSeriesIndex(e){return super.setSeriesIndex(e)?(this.contentGroup.zIndex=[1,e],this.highlightGroup.zIndex=[2,e],!0):!1}setChartTopology(e){this._chartTopology=e,this.topology===e&&(this.nodeDataRefresh=!0)}isLabelEnabled(){return this.properties.labelKey!=null&&this.properties.label.enabled}nodeFactory(){let e=new dP;return e.renderMode=2,e.lineJoin="round",e.lineCap="round",e}async processData(e){var Me,be;if(this.data==null||!this.properties.isValid())return;let{data:t,topology:n,sizeScale:a,colorScale:h}=this,{topologyIdKey:S,idKey:E,sizeKey:L,colorKey:_,labelKey:N,sizeDomain:V,colorRange:q}=this.properties,Y=new Map;n==null||n.features.forEach(Le=>{var je;let Fe=(je=Le.properties)==null?void 0:je[S];Fe==null||!u5(Le.geometry,2)||Y.set(Fe,Le)});let J=this.sizeScale.type,re=this.colorScale.type,ce=(Me=this.scale)==null?void 0:Me.type,{dataModel:he,processedData:me}=await this.requestDataModel(e,t,{props:[aO(E,ce,{id:"idValue",includeProperty:!1}),aO(E,ce,{id:"featureValue",includeProperty:!1,processor:()=>Le=>Y.get(Le)}),...N!=null?[aO(N,"band",{id:"labelValue"})]:[],...L!=null?[aO(L,J,{id:"sizeValue"})]:[],..._!=null?[aO(_,re,{id:"colorValue"})]:[]]}),we=me.rawData.length!==0?he.resolveColumnById(this,"featureValue",me):void 0;if(this.topologyBounds=we==null?void 0:we.reduce((Le,Fe)=>{let je=Fe==null?void 0:Fe.geometry;return je==null?Le:uP(je,Le)},void 0),L!=null){let Le=he.resolveProcessedDataIndexById(this,"sizeValue"),Fe=(be=me.domain.values[Le])!=null?be:[];a.domain=V!=null?V:Fe}if(q!=null&&this.isColorScaleValid()){let Le=he.resolveProcessedDataIndexById(this,"colorValue");h.domain=me.domain.values[Le],h.range=q,h.update()}n==null&&$9.warnOnce("no topology was provided for [MapLineSeries]; nothing will be rendered.")}isColorScaleValid(){let{colorKey:e}=this.properties;if(!e)return!1;let{dataModel:t,processedData:n}=this;if(!t||!n)return!1;let a=t.resolveProcessedDataIndexById(this,"colorValue"),h=n.rawData.length,S=lme(this,n.defs.values[a].missing);return!(h===0||h===S)}getLabelDatum(e,t,n,a){if(t==null||n==null)return;let h=MN(n);if(h==null)return;let{idKey:S,idName:E,sizeKey:L,sizeName:_,colorKey:N,colorName:V,labelKey:q,labelName:Y,label:J}=this.properties,re=this.getLabelText(J,{value:t,datum:e,idKey:S,idName:E,sizeKey:L,sizeName:_,colorKey:N,colorName:V,labelKey:q,labelName:Y});if(re==null)return;let ce=cme.measureText(String(re),{font:a}),he=SN(h);if(he==null)return;let[me,we]=he.point,{width:Me,height:be}=ce;return{point:{x:me,y:we,size:0},label:{width:Me,height:be,text:re},marker:void 0,placement:void 0}}createNodeData(){var je;let{id:e,dataModel:t,processedData:n,sizeScale:a,properties:h,scale:S}=this,{idKey:E,sizeKey:L,colorKey:_,labelKey:N,label:V}=h;if(t==null||n==null||n.rawData.length===0)return;let q=t.resolveColumnById(this,"idValue",n),Y=t.resolveColumnById(this,"featureValue",n),J=N!=null?t.resolveColumnById(this,"labelValue",n):void 0,re=L!=null?t.resolveColumnById(this,"sizeValue",n):void 0,ce=_!=null?t.resolveColumnById(this,"colorValue",n):void 0,he=(je=h.maxStrokeWidth)!=null?je:h.strokeWidth;a.range=[Math.min(h.strokeWidth,he),he];let me=V.getFont(),we=new Map;n.rawData.forEach((Xe,nt)=>{var gt,bt;let lt=q[nt],ot=(bt=(gt=Y[nt])==null?void 0:gt.geometry)!=null?bt:void 0,vt=ot!=null&&S!=null?xA(ot,S):void 0;lt!=null&&vt!=null&&we.set(lt,vt)});let Me=[],be=[],Le=[];n.rawData.forEach((Xe,nt)=>{let lt=q[nt],ot=ce==null?void 0:ce[nt],vt=re==null?void 0:re[nt],gt=J==null?void 0:J[nt],bt=we.get(lt);bt==null&&Le.push(lt);let At=this.getLabelDatum(Xe,gt,bt,me);At!=null&&be.push(At),Me.push({series:this,itemId:E,datum:Xe,datumIndex:nt,idValue:lt,labelValue:gt,colorValue:ot,sizeValue:vt,projectedGeometry:bt})});let Fe=10;if(Le.length>Fe){let Xe=Le.length-Fe;Le.length=Fe,Le.push(`(+${Xe} more)`)}return Le.length>0&&$9.warnOnce("some data items do not have matches in the provided topology",Le),{itemId:e,nodeData:Me,labelData:be}}updateSelections(){this.nodeDataRefresh&&(this.contextNodeData=this.createNodeData(),this.nodeDataRefresh=!1)}update(){var h,S,E;let{datumSelection:e,highlightDatumSelection:t}=this;this.updateSelections(),this.contentGroup.visible=this.visible,this.contentGroup.opacity=this.getOpacity();let n=(h=this.ctx.highlightManager)==null?void 0:h.getActiveHighlight();n!=null&&(n.series!==this||n.datum==null)&&(n=void 0);let a=(E=(S=this.contextNodeData)==null?void 0:S.nodeData)!=null?E:[];this.datumSelection=this.updateDatumSelection({nodeData:a,datumSelection:e}),this.updateDatumNodes({datumSelection:e,isHighlight:!1}),this.highlightDatumSelection=this.updateDatumSelection({nodeData:n!=null?[n]:[],datumSelection:t}),this.updateDatumNodes({datumSelection:t,isHighlight:!0})}updateDatumSelection(e){return e.datumSelection.update(e.nodeData,void 0,t=>X9(t.idValue))}getItemBaseStyle(e){var h,S,E,L,_;let{properties:t}=this,n=e?t.highlightStyle.item:void 0,a=this.getStrokeWidth(t.strokeWidth);return{stroke:(h=n==null?void 0:n.stroke)!=null?h:t.stroke,strokeWidth:(S=n==null?void 0:n.strokeWidth)!=null?S:a,strokeOpacity:(E=n==null?void 0:n.strokeOpacity)!=null?E:t.strokeOpacity,lineDash:(L=n==null?void 0:n.lineDash)!=null?L:t.lineDash,lineDashOffset:(_=n==null?void 0:n.lineDashOffset)!=null?_:t.lineDashOffset}}getItemStyleOverrides(e,t,n,a,h,S){var J;let{id:E,properties:L,colorScale:_,sizeScale:N}=this,{colorRange:V,itemStyler:q}=L,Y;if(!S&&n!=null&&(Y!=null||(Y={}),Y.stroke=this.isColorScaleValid()?_.convert(n):(J=V==null?void 0:V[0])!=null?J:L.stroke),a!=null&&(Y!=null||(Y={}),Y.strokeWidth=N.convert(a,!0)),q!=null){let re=this.cachedDatumCallback(X9(e,S?"highlight":"node"),()=>q(pe(pe({seriesId:E,datum:t,highlighted:S},h),Y)));Y!=null||(Y={}),Object.assign(Y,re)}return Y}updateDatumNodes(e){let{datumSelection:t,isHighlight:n}=e,a=this.getItemBaseStyle(n);t.each((h,S)=>{var Y,J,re,ce,he;let{datum:E,datumIndex:L,colorValue:_,sizeValue:N,projectedGeometry:V}=S;if(V==null){h.visible=!1,h.projectedGeometry=void 0;return}let q=this.getItemStyleOverrides(String(L),E,_,N,a,n);h.visible=!0,h.projectedGeometry=V,h.stroke=(Y=q==null?void 0:q.stroke)!=null?Y:a.stroke,h.strokeWidth=(J=q==null?void 0:q.strokeWidth)!=null?J:a.strokeWidth,h.strokeOpacity=(re=q==null?void 0:q.strokeOpacity)!=null?re:a.strokeOpacity,h.lineDash=(ce=q==null?void 0:q.lineDash)!=null?ce:a.lineDash,h.lineDashOffset=(he=q==null?void 0:q.lineDashOffset)!=null?he:a.lineDashOffset})}updatePlacedLabelData(e){this.labelSelection=this.labelSelection.update(e,t=>{t.pointerEvents=K9._ModuleSupport.PointerEvents.None}),this.updateLabelNodes({labelSelection:this.labelSelection})}updateLabelNodes(e){let{labelSelection:t}=e,{color:n,fontStyle:a,fontWeight:h,fontSize:S,fontFamily:E}=this.properties.label;t.each((L,{x:_,y:N,width:V,height:q,text:Y})=>{L.visible=!0,L.x=_+V/2,L.y=N+q/2,L.text=Y,L.fill=n,L.fontStyle=a,L.fontWeight=h,L.fontSize=S,L.fontFamily=E,L.textAlign="center",L.textBaseline="middle"})}resetAnimation(){}getLabelData(){var e,t;return this.isLabelEnabled()?(t=(e=this.contextNodeData)==null?void 0:e.labelData)!=null?t:[]:[]}pickNodeClosestDatum({x:e,y:t}){let n=1/0,a;return this.datumSelection.each((h,S)=>{let E=h.distanceSquared(e,t);E<n&&(n=E,a=S)}),a!=null?{datum:a,distance:Math.sqrt(n)}:void 0}datumMidPoint(e){var E;let{_previousDatumMidPoint:t}=this;if((t==null?void 0:t.datum)===e)return t.point;let n=e.projectedGeometry,a=n!=null?MN(n):void 0,h=a!=null?(E=SN(a))==null?void 0:E.point:void 0,S=h!=null?{x:h[0],y:h[1]}:void 0;return this._previousDatumMidPoint={datum:e,point:S},S}legendItemSymbol(e){let{dataModel:t,processedData:n,properties:a}=this,{strokeWidth:h,strokeOpacity:S,lineDash:E}=a,{stroke:L}=a;if(e!=null&&this.isColorScaleValid()){let N=t.resolveColumnById(this,"colorValue",n)[e];L=this.colorScale.convert(N)}return{marker:{fill:void 0,fillOpacity:0,stroke:void 0,strokeWidth:0,strokeOpacity:0,enabled:!1},line:{stroke:L,strokeWidth:h,strokeOpacity:S,lineDash:E}}}getLegendData(e){var J,re;let{processedData:t,dataModel:n}=this;if(t==null||n==null)return[];let{id:a,visible:h}=this,{title:S,legendItemName:E,idKey:L,idName:_,colorKey:N,colorName:V,colorRange:q,showInLegend:Y}=this.properties;if(e==="gradient"&&N!=null&&q!=null){let ce=t.domain.values[n.resolveProcessedDataIndexById(this,"colorValue")];return[{legendType:"gradient",enabled:h,seriesId:a,colorName:V,colorRange:q,colorDomain:ce}]}else return e==="category"?[{legendType:"category",id:a,itemId:a,seriesId:a,enabled:h,label:{text:(re=(J=E!=null?E:S)!=null?J:_)!=null?re:L},symbol:this.legendItemSymbol(),legendItemName:E,hideInLegend:!Y}]:[]}getTooltipContent(e){let{id:t,dataModel:n,processedData:a,properties:h}=this,{idKey:S,idName:E,colorKey:L,colorName:_,sizeKey:N,sizeName:V,labelKey:q,labelName:Y,title:J,legendItemName:re,tooltip:ce}=h;if(!n||!(a!=null&&a.rawData.length))return;let{datumIndex:he}=e,me=a.rawData[he],we=n.resolveColumnById(this,"idValue",a),Me=[],be=N!=null?n.resolveColumnById(this,"sizeValue",a)[he]:void 0,Le=L!=null?n.resolveColumnById(this,"colorValue",a)[he]:void 0;if(N!=null&&Me.push({label:V,fallbackLabel:N,value:String(be)}),L!=null&&Me.push({label:_,fallbackLabel:L,value:String(Le)}),q!=null&&q!==S){let je=n.resolveColumnById(this,"labelValue",a)[he];Me.push({label:Y,fallbackLabel:q,value:je})}let Fe=this.getItemBaseStyle(!1);return Object.assign(Fe,this.getItemStyleOverrides(String(he),he,Le,be,Fe,!1)),ce.formatTooltip({heading:we[he],title:J!=null?J:re,symbol:this.legendItemSymbol(he),data:Me},pe({seriesId:t,datum:me,title:J,idKey:S,idName:E,colorKey:L,colorName:_,sizeKey:N,sizeName:V,labelKey:q,labelName:Y},Fe))}computeFocusBounds(e){let t=q9(this,e);return t?t.getBBox():void 0}};DN.className="MapLineSeries",DN.type="map-line",ve([dme(FC,{optional:!0,property:"topology"})],DN.prototype,"_chartTopology",2);var{DEFAULT_DIVERGING_SERIES_COLOR_RANGE:pme,DEFAULT_FONT_FAMILY:mme,DEFAULT_LABEL_COLOUR:fme}=U9._ModuleSupport.ThemeSymbols,vme={type:"series",optionsKey:"series[]",packageType:"enterprise",chartTypes:["topology"],identifier:"map-line",moduleFactory:e=>new DN(e),tooltipDefaults:{range:"exact"},themeTemplate:et(pe({},tO),{series:{strokeWidth:1,maxStrokeWidth:3,lineDash:[0],lineDashOffset:0,label:{enabled:!0,fontSize:12,fontFamily:mme,color:fme}}}),paletteFactory:e=>{let{takeColors:t,colorsCount:n,userPalette:a,themeTemplateParameters:h}=e,{fill:S}=U9._ModuleSupport.singleSeriesPaletteFactory(e),E=h.get(pme),{fills:L}=t(n);return{colorRange:a==="inbuilt"?E:[L[0],L[1]],stroke:S}}},Q9=(xt(),D(wt)),J9=(xt(),D(wt)),yme=(e,t,n)=>{let a=e,h=a;for(let S of t)if(a==null||n(a.value,S)>0)a={value:S,next:a},h=a;else{for(h=h;h.next!=null&&n(h.next.value,S)<=0;)h=h.next;h.next={value:S,next:h.next}}return a};function eK(e,t,n){let a=GE(e[0],void 0);if(a==null)return;let h=(a.lon0+a.lon1)/2,S=(a.lat0+a.lat1)/2,E=Math.abs(a.lon1-a.lon0),L=Math.abs(a.lat1-a.lat0),_=kpe(e[0]),[N,V]=_,q=-wN(e,N,V),Y,J=(Le,Fe)=>{let Xe=Math.max(Fe-q,0);return Le-.5*Xe},re=(Le,Fe,je)=>{let{distance:Xe,maxDistance:nt}=n(e,Le,Fe,je),lt=Math.hypot(N-Le,V-Fe),ot=Math.min(Math.max(N,Le-je/2),Le+je/2),vt=Math.min(Math.max(V,Fe-je/2),Fe+je/2),gt=Math.hypot(N-ot,V-vt),bt=J(Xe,lt),At=J(nt,gt);return{distance:Xe,maxDistance:nt,value:bt,maxValue:At,x:Le,y:Fe,stride:je}},ce=(Le,Fe,je,Xe)=>{let nt=re(Fe,je,Xe);nt.maxDistance>=0&&Le.push(nt)},he=Math.min(E,L)/2,me={value:re(h,S,he),next:null};for(;me!=null;){let Le=me.value,{distance:Fe,value:je,maxValue:Xe,x:nt,y:lt,stride:ot}=Le;if(me=me.next,Fe>0&&(Y==null||je>Y.value)&&(Y=Le),Y!=null&&Xe-Y.value<=t)continue;let vt=ot/2,gt=[];ce(gt,nt-vt,lt-vt,vt),ce(gt,nt+vt,lt-vt,vt),ce(gt,nt-vt,lt+vt,vt),ce(gt,nt+vt,lt+vt,vt),gt.sort(tK),me=yme(me,gt,tK)}if(Y==null)return;let{distance:we,x:Me,y:be}=Y;return{x:Me,y:be,distance:we}}var tK=(e,t)=>t.maxValue-e.maxValue;function f5(e,t){let n=eK(e,t,(S,E,L,_)=>{let N=-wN(S,E,L),V=N+_*Math.SQRT2;return{distance:N,maxDistance:V}});if(n==null)return;let{x:a,y:h}=n;return[a,h]}function iK(e,t){var a,h;let n;switch(e.type){case"GeometryCollection":return e.geometries.flatMap(S=>iK(S,t));case"MultiPoint":return e.coordinates;case"Point":return[e.coordinates];case"MultiPolygon":{let S=xN(e);n=S!=null?f5(S,t):void 0;break}case"Polygon":{let S=e.coordinates;n=S!=null?f5(S,t):void 0;break}case"MultiLineString":{let S=MN(e);n=S!=null?(a=SN(S))==null?void 0:a.point:void 0;break}case"LineString":{let S=e.coordinates;n=(h=SN(S))==null?void 0:h.point;break}}return n!=null?[n]:[]}var bme=(xt(),D(wt)),{AND:Cme,ARRAY:Sme,COLOR_STRING:nK,COLOR_STRING_ARRAY:wme,FUNCTION:xme,NUMBER_ARRAY:Mme,OBJECT:aK,POSITIVE_NUMBER:v5,RATIO:oK,STRING:rh,MARKER_SHAPE:kme,Validate:ir,SeriesProperties:Ame,SeriesTooltip:Dme,Logger:Eme,Label:Ime}=bme._ModuleSupport,rK=class extends Ime{constructor(){super(...arguments),this.placement="bottom"}};ve([ir(rh)],rK.prototype,"placement",2);var nr=class extends Ame{constructor(){super(...arguments),this.topology=void 0,this.idKey=void 0,this.topologyIdKey="name",this.idName=void 0,this.latitudeKey=void 0,this.latitudeName=void 0,this.longitudeKey=void 0,this.longitudeName=void 0,this.labelKey=void 0,this.labelName=void 0,this.colorRange=void 0,this.shape="circle",this.size=6,this.fill="black",this.fillOpacity=1,this.stroke="black",this.strokeWidth=1,this.strokeOpacity=1,this.label=new rK,this.tooltip=new Dme}isValid(){let e=super.isValid(),t=this.idKey!=null,n=this.latitudeKey!=null&&this.longitudeKey!=null;return!t&&!n?(Eme.warnOnce("Either both [topology] and [idKey] or both [latitudeKey] and [longitudeKey] must be set to render a map marker series."),!1):e}};ve([ir(FC,{optional:!0})],nr.prototype,"topology",2),ve([ir(rh,{optional:!0})],nr.prototype,"title",2),ve([ir(rh,{optional:!0})],nr.prototype,"legendItemName",2),ve([ir(rh,{optional:!0})],nr.prototype,"idKey",2),ve([ir(rh)],nr.prototype,"topologyIdKey",2),ve([ir(rh,{optional:!0})],nr.prototype,"idName",2),ve([ir(rh,{optional:!0})],nr.prototype,"latitudeKey",2),ve([ir(rh,{optional:!0})],nr.prototype,"latitudeName",2),ve([ir(rh,{optional:!0})],nr.prototype,"longitudeKey",2),ve([ir(rh,{optional:!0})],nr.prototype,"longitudeName",2),ve([ir(rh,{optional:!0})],nr.prototype,"labelKey",2),ve([ir(rh,{optional:!0})],nr.prototype,"labelName",2),ve([ir(rh,{optional:!0})],nr.prototype,"sizeKey",2),ve([ir(rh,{optional:!0})],nr.prototype,"sizeName",2),ve([ir(rh,{optional:!0})],nr.prototype,"colorKey",2),ve([ir(rh,{optional:!0})],nr.prototype,"colorName",2),ve([ir(Cme(wme,Sme.restrict({minLength:1})),{optional:!0})],nr.prototype,"colorRange",2),ve([ir(kme)],nr.prototype,"shape",2),ve([ir(v5)],nr.prototype,"size",2),ve([ir(v5,{optional:!0})],nr.prototype,"maxSize",2),ve([ir(Mme,{optional:!0})],nr.prototype,"sizeDomain",2),ve([ir(nK)],nr.prototype,"fill",2),ve([ir(oK)],nr.prototype,"fillOpacity",2),ve([ir(nK)],nr.prototype,"stroke",2),ve([ir(v5)],nr.prototype,"strokeWidth",2),ve([ir(oK)],nr.prototype,"strokeOpacity",2),ve([ir(xme,{optional:!0})],nr.prototype,"itemStyler",2),ve([ir(aK)],nr.prototype,"label",2),ve([ir(aK)],nr.prototype,"tooltip",2);var{CachedTextMeasurerPool:Tme,Validate:Rme,fromToMotion:Pme,StateMachine:Lme,getMissCount:Ome,createDatumId:sK,SeriesNodePickMode:lK,valueProperty:VE,computeMarkerFocusBounds:_me,Logger:Fme,ColorScale:Nme,LinearScale:zme,Group:Bme,Selection:y5,Text:Gme,getMarker:cK}=J9._ModuleSupport,EN=class extends nO{constructor(e){super({moduleCtx:e,useLabelLayer:!0,pickModes:[lK.EXACT_SHAPE_MATCH,lK.NEAREST_NODE],usesPlacedLabels:!0}),this.properties=new nr,this._chartTopology=void 0,this.colorScale=new Nme,this.sizeScale=new zme,this.markerGroup=this.contentGroup.appendChild(new Bme({name:"markerGroup"})),this.labelSelection=y5.select(this.labelGroup,Gme,!1),this.markerSelection=y5.select(this.markerGroup,()=>this.markerFactory(),!1),this.highlightMarkerSelection=y5.select(this.highlightNode,()=>this.markerFactory()),this.animationState=new Lme("empty",{empty:{update:{target:"ready",action:()=>this.animateMarkers()},reset:"empty",skip:"ready"},ready:{updateData:"waiting",clear:"clearing",resize:()=>this.resetAllAnimation(),reset:"empty",skip:"ready"},waiting:{update:{target:"ready",action:()=>this.animateMarkers()},resize:{target:"ready",action:()=>this.resetAllAnimation()},reset:"empty",skip:"ready"},clearing:{update:{target:"empty",action:()=>this.resetAllAnimation()},reset:"empty",skip:"ready"}},()=>this.checkProcessedDataAnimatable())}getNodeData(){var e;return(e=this.contextNodeData)==null?void 0:e.nodeData}get topology(){var e;return(e=this.properties.topology)!=null?e:this._chartTopology}get hasData(){let e=this.properties.latitudeKey!=null&&this.properties.longitudeKey!=null;return super.hasData&&(this.topology!=null||e)}renderToOffscreenCanvas(){return!0}setChartTopology(e){this._chartTopology=e,this.topology===e&&(this.nodeDataRefresh=!0)}setSeriesIndex(e){return super.setSeriesIndex(e)?(this.contentGroup.zIndex=[3,e],this.highlightGroup.zIndex=[4,e],!0):!1}isLabelEnabled(){return this.properties.labelKey!=null&&this.properties.label.enabled}markerFactory(){let{shape:e}=this.properties,t=cK(e);return new t}async processData(e){var nt,lt;if(this.data==null||!this.properties.isValid())return;let{data:t,topology:n,sizeScale:a,colorScale:h}=this,{topologyIdKey:S,idKey:E,latitudeKey:L,longitudeKey:_,sizeKey:N,colorKey:V,labelKey:q,sizeDomain:Y,colorRange:J}=this.properties,re=new Map;n==null||n.features.forEach(ot=>{var gt;let vt=(gt=ot.properties)==null?void 0:gt[S];vt!=null&&re.set(vt,ot)});let ce=this.sizeScale.type,he=this.colorScale.type,me=(nt=this.scale)==null?void 0:nt.type,we=L!=null&&_!=null,{dataModel:Me,processedData:be}=await this.requestDataModel(e,t,{props:[...E!=null?[VE(E,me,{id:"idValue",includeProperty:!1}),VE(E,me,{id:"featureValue",includeProperty:!1,processor:()=>ot=>re.get(ot)})]:[],...we?[VE(L,me,{id:"latValue"}),VE(_,me,{id:"lonValue"})]:[],...q?[VE(q,"band",{id:"labelValue"})]:[],...N?[VE(N,ce,{id:"sizeValue"})]:[],...V?[VE(V,he,{id:"colorValue"})]:[]]}),Le=be.rawData.length!==0,Fe=Le&&E!=null?Me.resolveColumnById(this,"featureValue",be):void 0,je=Le&&we?Me.resolveColumnById(this,"latValue",be):void 0,Xe=Le&&we?Me.resolveColumnById(this,"lonValue",be):void 0;if(this.topologyBounds=be.rawData.reduce((ot,vt,gt)=>{let bt=Fe==null?void 0:Fe[gt],At=bt==null?void 0:bt.geometry;if(At!=null&&(ot=uP(At,ot)),je!=null&&Xe!=null){let Rt=Xe[gt],It=je[gt];ot=iO(ot,Rt,It,Rt,It)}return ot},void 0),N!=null){let ot=Me.resolveProcessedDataIndexById(this,"sizeValue"),vt=(lt=be.domain.values[ot])!=null?lt:[];a.domain=Y!=null?Y:vt}if(J!=null&&this.isColorScaleValid()){let ot=Me.resolveProcessedDataIndexById(this,"colorValue");h.domain=be.domain.values[ot],h.range=J,h.update()}this.animationState.transition("updateData")}isColorScaleValid(){let{colorKey:e}=this.properties;if(!e)return!1;let{dataModel:t,processedData:n}=this;if(!t||!n)return!1;let a=t.resolveProcessedDataIndexById(this,"colorValue"),h=n.rawData.length,S=Ome(this,n.defs.values[a].missing);return!(h===0||h===S)}getLabelDatum(e,t,n,a,h,S){if(t==null)return;let{idKey:E,idName:L,latitudeKey:_,latitudeName:N,longitudeKey:V,longitudeName:q,sizeKey:Y,sizeName:J,colorKey:re,colorName:ce,labelKey:he,labelName:me,label:we}=this.properties,{placement:Me}=we,be=this.getLabelText(we,{value:t,datum:e,idKey:E,idName:L,latitudeKey:_,latitudeName:N,longitudeKey:V,longitudeName:q,sizeKey:Y,sizeName:J,colorKey:re,colorName:ce,labelKey:he,labelName:me});if(be==null)return;let{width:Le,height:Fe}=Tme.measureText(String(be),{font:S});return{point:{x:n,y:a,size:h},label:{width:Le,height:Fe,text:be},marker:cK(this.properties.shape),placement:Me}}createNodeData(){var vt;let{id:e,dataModel:t,processedData:n,sizeScale:a,properties:h,scale:S}=this,{idKey:E,latitudeKey:L,longitudeKey:_,sizeKey:N,colorKey:V,labelKey:q,label:Y}=h;if(t==null||n==null||n.rawData.length===0||S==null)return;let J=L!=null&&_!=null,re=E!=null?t.resolveColumnById(this,"idValue",n):void 0,ce=E!=null?t.resolveColumnById(this,"featureValue",n):void 0,he=J?t.resolveColumnById(this,"latValue",n):void 0,me=J?t.resolveColumnById(this,"lonValue",n):void 0,we=q!=null?t.resolveColumnById(this,"labelValue",n):void 0,Me=N!=null?t.resolveColumnById(this,"sizeValue",n):void 0,be=V!=null?t.resolveColumnById(this,"colorValue",n):void 0,Le=(vt=h.maxSize)!=null?vt:h.size;a.range=[Math.min(h.size,Le),Le];let Fe=Y.getFont(),je;re!=null&&ce!=null&&(je=new Map,n.rawData.forEach((gt,bt)=>{var Dt,jt;let At=re[bt],Rt=(jt=(Dt=ce[bt])==null?void 0:Dt.geometry)!=null?jt:void 0,It=Rt!=null&&S!=null?xA(Rt,S):void 0;At!=null&&It!=null&&je.set(At,It)}));let Xe=[],nt=[],lt=[];n.rawData.forEach((gt,bt)=>{let At=re==null?void 0:re[bt],Rt=me==null?void 0:me[bt],It=he==null?void 0:he[bt],Dt=be==null?void 0:be[bt],jt=Me==null?void 0:Me[bt],Nt=we==null?void 0:we[bt],zt=jt!=null?a.convert(jt,!0):h.size,Ut=At!=null?je==null?void 0:je.get(At):void 0;if(At!=null&&xA==null&&lt.push(At),Rt!=null&&It!=null){let[Vt,Wt]=S.convert([Rt,It]),ci=this.getLabelDatum(gt,Nt,Vt,Wt,zt,Fe);ci&&nt.push(ci),Xe.push({series:this,itemId:L,datum:gt,datumIndex:bt,index:-1,idValue:At,lonValue:Rt,latValue:It,labelValue:Nt,sizeValue:jt,colorValue:Dt,point:{x:Vt,y:Wt,size:zt},midPoint:{x:Vt,y:Wt}})}else Ut!=null&&iK(Ut,1).forEach(([Vt,Wt],ci)=>{let li=this.getLabelDatum(gt,Nt,Vt,Wt,zt,Fe);li&&nt.push(li),Xe.push({series:this,itemId:L,datum:gt,datumIndex:bt,index:ci,idValue:At,lonValue:Rt,latValue:It,labelValue:Nt,sizeValue:jt,colorValue:Dt,point:{x:Vt,y:Wt,size:zt},midPoint:{x:Vt,y:Wt}})})});let ot=10;if(lt.length>ot){let gt=lt.length-ot;lt.length=ot,lt.push(`(+${gt} more)`)}return lt.length>0&&Fme.warnOnce("some data items do not have matches in the provided topology",lt),{itemId:e,nodeData:Xe,labelData:nt}}updateSelections(){this.nodeDataRefresh&&(this.contextNodeData=this.createNodeData(),this.nodeDataRefresh=!1)}checkScaleChange(){return this.previousScale===this.scale?!1:(this.previousScale=this.scale,!0)}update({seriesRect:e}){var L,_,N;let t=this.checkResize(e),n=this.checkScaleChange(),{markerSelection:a,highlightMarkerSelection:h}=this;this.updateSelections(),this.contentGroup.visible=this.visible,this.contentGroup.opacity=this.getOpacity();let S=(L=this.ctx.highlightManager)==null?void 0:L.getActiveHighlight();S!=null&&(S.series!==this||S.datum==null)&&(S=void 0);let E=(N=(_=this.contextNodeData)==null?void 0:_.nodeData)!=null?N:[];this.markerSelection=this.updateMarkerSelection({markerData:E,markerSelection:a}),this.updateMarkerNodes({markerSelection:a,isHighlight:!1,highlightedDatum:S}),this.highlightMarkerSelection=this.updateMarkerSelection({markerData:S!=null?[S]:[],markerSelection:h}),this.updateMarkerNodes({markerSelection:h,isHighlight:!0,highlightedDatum:S}),(n||t)&&this.animationState.transition("resize"),this.animationState.transition("update")}updatePlacedLabelData(e){this.labelSelection=this.labelSelection.update(e,t=>{t.pointerEvents=J9._ModuleSupport.PointerEvents.None}),this.updateLabelNodes({labelSelection:this.labelSelection})}updateLabelNodes(e){let{labelSelection:t}=e,{color:n,fontStyle:a,fontWeight:h,fontSize:S,fontFamily:E}=this.properties.label;t.each((L,{x:_,y:N,width:V,height:q,text:Y})=>{L.visible=!0,L.x=_+V/2,L.y=N+q/2,L.text=Y,L.fill=n,L.fontStyle=a,L.fontWeight=h,L.fontSize=S,L.fontFamily=E,L.textAlign="center",L.textBaseline="middle"})}updateMarkerSelection(e){let{markerData:t,markerSelection:n}=e;return n.update(t,void 0,a=>sK([a.index,a.idValue,a.lonValue,a.latValue]))}getMarkerItemBaseStyle(e){var h,S,E,L,_;let{properties:t}=this,n=e?t.highlightStyle.item:void 0,a=this.getStrokeWidth(t.strokeWidth);return{size:t.size,fill:(h=n==null?void 0:n.fill)!=null?h:t.fill,fillOpacity:(S=n==null?void 0:n.fillOpacity)!=null?S:t.fillOpacity,stroke:(E=n==null?void 0:n.stroke)!=null?E:t.stroke,strokeWidth:(L=n==null?void 0:n.strokeWidth)!=null?L:a,strokeOpacity:(_=n==null?void 0:n.strokeOpacity)!=null?_:t.strokeOpacity}}getMarkerItemStyleOverrides(e,t,n,a,h,S){var J;let{id:E,properties:L,colorScale:_,sizeScale:N}=this,{colorRange:V,itemStyler:q}=L,Y;if(!S&&n!=null&&(Y!=null||(Y={}),Y.fill=this.isColorScaleValid()?_.convert(n):(J=V==null?void 0:V[0])!=null?J:L.fill),a!=null&&(Y!=null||(Y={}),Y.size=N.convert(a,!0)),q!=null){let re=this.cachedDatumCallback(sK(e,S?"highlight":"node"),()=>q(pe(pe({seriesId:E,datum:t,highlighted:S},h),Y)));Y!=null||(Y={}),Object.assign(Y,re)}return Y}updateMarkerNodes(e){let{markerSelection:t,isHighlight:n,highlightedDatum:a}=e,h=this.getMarkerItemBaseStyle(n);t.each((S,E)=>{var J,re,ce,he,me,we;let{datumIndex:L,datum:_,point:N,colorValue:V,sizeValue:q}=E,Y=this.getMarkerItemStyleOverrides(String(L),_,V,q,h,n);S.size=(J=Y==null?void 0:Y.size)!=null?J:h.size,S.fill=(re=Y==null?void 0:Y.fill)!=null?re:h.fill,S.fillOpacity=(ce=Y==null?void 0:Y.fillOpacity)!=null?ce:h.fillOpacity,S.stroke=(he=Y==null?void 0:Y.stroke)!=null?he:h.stroke,S.strokeWidth=(me=Y==null?void 0:Y.strokeWidth)!=null?me:h.strokeWidth,S.strokeOpacity=(we=Y==null?void 0:Y.strokeOpacity)!=null?we:h.strokeOpacity,S.translationX=N.x,S.translationY=N.y,S.zIndex=!n&&a!=null&&_===a.datum?1:0})}isProcessedDataAnimatable(){return!0}resetAnimation(e){e==="initial"?this.animationState.transition("reset"):e==="ready"&&this.animationState.transition("skip")}resetAllAnimation(){this.ctx.animationManager.stopByAnimationGroupId(this.id),this.ctx.animationManager.skipCurrentBatch(),this.labelSelection.cleanup(),this.markerSelection.cleanup(),this.highlightMarkerSelection.cleanup()}animateMarkers(){let{animationManager:e}=this.ctx,t=Xpe();Pme(this.id,"markers",e,[this.markerSelection,this.highlightMarkerSelection],t)}getLabelData(){var e,t;return this.isLabelEnabled()?(t=(e=this.contextNodeData)==null?void 0:e.labelData)!=null?t:[]:[]}pickNodeClosestDatum(e){var S;let{x:t,y:n}=e,a=1/0,h;return(S=this.contextNodeData)==null||S.nodeData.forEach(E=>{let{x:L,y:_,size:N}=E.point,V=Math.max(Math.abs(L-t)-N,0),q=Math.max(Math.abs(_-n)-N,0),Y=V*V+q*q;Y<a&&(a=Y,h=E)}),h!=null?{datum:h,distance:Math.sqrt(a)}:void 0}legendItemSymbol(e){let{dataModel:t,processedData:n,properties:a}=this,{shape:h,fillOpacity:S,stroke:E,strokeWidth:L,strokeOpacity:_}=a,{fill:N}=a;if(e!=null&&this.isColorScaleValid()){let q=t.resolveColumnById(this,"colorValue",n)[e];N=this.colorScale.convert(q)}return{marker:{shape:h,fill:N,fillOpacity:S,stroke:E,strokeWidth:L,strokeOpacity:_}}}getLegendData(e){var J,re,ce;let{processedData:t,dataModel:n}=this;if(t==null||n==null)return[];let{id:a,visible:h}=this,{title:S,legendItemName:E,idName:L,idKey:_,colorKey:N,colorName:V,colorRange:q,showInLegend:Y}=this.properties;if(e==="gradient"&&N!=null&&q!=null){let he=t.domain.values[n.resolveProcessedDataIndexById(this,"colorValue")];return[{legendType:"gradient",enabled:h,seriesId:a,colorName:V,colorRange:q,colorDomain:he}]}else return e==="category"?[{legendType:"category",id:a,itemId:a,seriesId:a,enabled:h,label:{text:(ce=(re=(J=E!=null?E:S)!=null?J:L)!=null?re:_)!=null?ce:a},symbol:this.legendItemSymbol(),legendItemName:E,hideInLegend:!Y}]:[]}getTooltipContent(e){let{id:t,dataModel:n,processedData:a,properties:h}=this,{idKey:S,idName:E,latitudeKey:L,latitudeName:_,longitudeKey:N,longitudeName:V,colorKey:q,colorName:Y,sizeKey:J,sizeName:re,labelKey:ce,labelName:he,title:me,legendItemName:we,tooltip:Me}=h;if(!n||!(a!=null&&a.rawData.length))return;let{datumIndex:be}=e,Le=a.rawData[be],Fe=J!=null?n.resolveColumnById(this,"sizeValue",a)[be]:void 0,je=q!=null?n.resolveColumnById(this,"colorValue",a)[be]:void 0,Xe=[];if(Fe!=null&&Xe.push({label:re,fallbackLabel:J,value:String(Fe)}),je!=null&&Xe.push({label:Y,fallbackLabel:q,value:String(je)}),ce!=null&&ce!==S){let ot=n.resolveColumnById(this,"labelValue",a)[be];Xe.push({label:he,fallbackLabel:ce,value:ot})}let nt;if(S!=null)nt=n.resolveColumnById(this,"idValue",a)[be];else if(L!=null&&N!=null){let ot=n.resolveColumnById(this,"latValue",a)[be],vt=n.resolveColumnById(this,"lonValue",a)[be];nt=`${Math.abs(ot).toFixed(4)}\xB0 ${ot>=0?"N":"S"}, ${Math.abs(vt).toFixed(4)}\xB0 ${vt>=0?"W":"E"}`}let lt=this.getMarkerItemBaseStyle(!1);return Object.assign(lt,this.getMarkerItemStyleOverrides(String(be),be,je,Fe,lt,!1)),Me.formatTooltip({heading:nt,title:me!=null?me:we,symbol:this.legendItemSymbol(be),data:Xe},pe({seriesId:t,datum:Le,title:me,idKey:S,idName:E,latitudeKey:L,latitudeName:_,longitudeKey:N,longitudeName:V,colorKey:q,colorName:Y,sizeKey:J,sizeName:re,labelKey:ce,labelName:he},lt))}getFormattedMarkerStyle(e){let{datumIndex:t,colorValue:n,sizeValue:a}=e,h=this.getMarkerItemBaseStyle(!1);return Object.assign(h,this.getMarkerItemStyleOverrides(String(t),t,n,a,h,!1)),{size:h.size}}computeFocusBounds(e){return _me(this,e)}};EN.className="MapMarkerSeries",EN.type="map-marker",ve([Rme(FC,{optional:!0,property:"topology"})],EN.prototype,"_chartTopology",2);var{DEFAULT_LABEL_COLOUR:jme,DEFAULT_DIVERGING_SERIES_COLOR_RANGE:Vme}=Q9._ModuleSupport.ThemeSymbols,Hme={type:"series",optionsKey:"series[]",packageType:"enterprise",chartTypes:["topology"],identifier:"map-marker",moduleFactory:e=>new EN(e),tooltipDefaults:{range:"exact"},themeTemplate:et(pe({},tO),{series:{shape:"circle",maxSize:30,fillOpacity:.5,label:{color:jme}}}),paletteFactory:e=>{let{takeColors:t,colorsCount:n,userPalette:a,themeTemplateParameters:h}=e,{fill:S,stroke:E}=Q9._ModuleSupport.singleSeriesPaletteFactory(e),L=h.get(Vme),{fills:_}=t(n);return{fill:S,stroke:E,colorRange:a==="inbuilt"?L:[_[0],_[1]]}}},Wme=(xt(),D(wt)),Ume=(xt(),D(wt)),Kme=(xt(),D(wt)),{COLOR_STRING:dK,LINE_DASH:qme,OBJECT:Yme,POSITIVE_NUMBER:uK,RATIO:hK,Validate:Nw,SeriesProperties:Xme,SeriesTooltip:Zme}=Kme._ModuleSupport,NC=class extends Xme{constructor(){super(...arguments),this.topology=void 0,this.fill="black",this.fillOpacity=1,this.stroke="black",this.strokeOpacity=1,this.strokeWidth=0,this.lineDash=[0],this.lineDashOffset=0,this.tooltip=new Zme}};ve([Nw(FC,{optional:!0})],NC.prototype,"topology",2),ve([Nw(dK)],NC.prototype,"fill",2),ve([Nw(hK)],NC.prototype,"fillOpacity",2),ve([Nw(dK)],NC.prototype,"stroke",2),ve([Nw(hK)],NC.prototype,"strokeOpacity",2),ve([Nw(uK)],NC.prototype,"strokeWidth",2),ve([Nw(qme)],NC.prototype,"lineDash",2),ve([Nw(uK)],NC.prototype,"lineDashOffset",2),ve([Nw(Yme)],NC.prototype,"tooltip",2);var{createDatumId:$me,SeriesNodePickMode:Qme,Validate:Jme,Logger:efe,Selection:tfe,Group:ife,PointerEvents:nfe}=Ume._ModuleSupport,IN=class extends nO{constructor(e){super({moduleCtx:e,useLabelLayer:!0,pickModes:[Qme.EXACT_SHAPE_MATCH]}),this.properties=new NC,this._chartTopology=void 0,this.itemGroup=this.contentGroup.appendChild(new ife({name:"itemGroup"})),this.datumSelection=tfe.select(this.itemGroup,()=>this.nodeFactory())}get topology(){var e;return(e=this.properties.topology)!=null?e:this._chartTopology}setOptionsData(){}setChartData(){}getNodeData(){}get hasData(){return!1}renderToOffscreenCanvas(){return!0}setChartTopology(e){this._chartTopology=e,this.topology===e&&(this.nodeDataRefresh=!0)}setSeriesIndex(e){return super.setSeriesIndex(e)?(this.contentGroup.zIndex=[0,e,0],this.highlightGroup.zIndex=[0,e,1],!0):!1}nodeFactory(){let e=new dP;return e.renderMode=1,e.lineJoin="round",e.pointerEvents=nfe.None,e}processData(){let{topology:e}=this;this.topologyBounds=e==null?void 0:e.features.reduce((t,n)=>{let a=n.geometry;return a==null?t:uP(a,t)},void 0),e==null&&efe.warnOnce("no topology was provided for [MapShapeBackgroundSeries]; nothing will be rendered.")}createNodeData(){let{id:e,topology:t,scale:n}=this;if(t==null)return;let a=[],h=[];return t.features.forEach((S,E)=>{let{geometry:L}=S,_=L!=null&&n!=null?xA(L,n):void 0;_!=null&&a.push({series:this,itemId:E,datum:S,index:E,projectedGeometry:_})}),{itemId:e,nodeData:a,labelData:h}}updateSelections(){this.nodeDataRefresh&&(this.contextNodeData=this.createNodeData(),this.nodeDataRefresh=!1)}update(){var n;let{datumSelection:e}=this;this.updateSelections(),this.contentGroup.visible=this.visible;let{nodeData:t=[]}=(n=this.contextNodeData)!=null?n:{};this.datumSelection=this.updateDatumSelection({nodeData:t,datumSelection:e}),this.updateDatumNodes({datumSelection:e})}updateDatumSelection(e){return e.datumSelection.update(e.nodeData,void 0,t=>$me(t.index))}updateDatumNodes(e){let{properties:t}=this,{datumSelection:n}=e,{fill:a,fillOpacity:h,stroke:S,strokeOpacity:E,lineDash:L,lineDashOffset:_}=t,N=this.getStrokeWidth(t.strokeWidth);n.each((V,q)=>{let{projectedGeometry:Y}=q;if(Y==null){V.visible=!1,V.projectedGeometry=void 0;return}V.visible=!0,V.projectedGeometry=Y,V.fill=a,V.fillOpacity=h,V.stroke=S,V.strokeWidth=N,V.strokeOpacity=E,V.lineDash=L,V.lineDashOffset=_})}resetAnimation(){}getLegendData(){return[]}getTooltipContent(e){}pickFocus(){}computeFocusBounds(e){}};IN.className="MapShapeBackgroundSeries",IN.type="map-shape-background",ve([Jme(FC,{optional:!0,property:"topology"})],IN.prototype,"_chartTopology",2);var{DEFAULT_BACKGROUND_COLOUR:afe,DEFAULT_HIERARCHY_FILLS:ofe}=Wme._ModuleSupport.ThemeSymbols,rfe={type:"series",optionsKey:"series[]",packageType:"enterprise",chartTypes:["topology"],identifier:"map-shape-background",moduleFactory:e=>new IN(e),tooltipDefaults:{range:"exact"},themeTemplate:et(pe({},tO),{series:{stroke:afe,strokeWidth:1}}),paletteFactory:({themeTemplateParameters:e})=>{var t;return{fill:(t=e.get(ofe))==null?void 0:t[1]}}},gK=(xt(),D(wt)),pK=(xt(),D(wt));function sfe(e,{aspectRatio:t,precision:n}){let a=eK(e,n,(_,N,V,q)=>{let Y=cfe(_,N,V,t),J=Y+2*q*t,re=Y*Math.SQRT2,ce=J*Math.SQRT2;return{distance:re,maxDistance:ce}});if(a==null)return;let{x:h,y:S,distance:E}=a,L=E/Math.SQRT2;return{x:h,y:S,maxWidth:L}}function lfe(e,t,n,a,h){let[S,E]=e,[L,_]=t,N=1/h,V=L-S,q=_-E,[Y,J]=E<=_?e:t,[re,ce]=S<=L?e:t,[he,me]=E<=_?t:e,[we,Me]=S<=L?t:e,be=1/0;if(V!==0){let lt=q/V;for(let ot=0;ot<=1;ot+=1){let vt=ot===0?N:-N,gt=(lt*S-E-vt*n+a)/(lt-vt);if(gt>=re&&gt<=we){let bt=Math.abs(n-gt)*2;be=Math.min(be,bt)}}}else for(let lt=0;lt<=1;lt+=1){let vt=(lt===0?N:-N)*(S-n)+a;if(vt>=J&&vt<=me){let bt=Math.abs(a-vt)*2*h;be=Math.min(be,bt)}}let Le=h,Fe=Math.abs((Y-n)/(J-a)),je=Math.abs((he-n)/(me-a));if(me<a&&je<Le){let ot=Math.abs(a-me)*2*h;be=Math.min(be,ot)}else if(J>a&&Fe<Le){let ot=Math.abs(a-J)*2*h;be=Math.min(be,ot)}let Xe=Math.abs((ce-a)/(re-n)),nt=Math.abs((Me-a)/(we-n));if(we<n&&nt<N){let lt=Math.abs(n-we)*2;be=Math.min(be,lt)}else if(re>n&&Xe<N){let lt=Math.abs(n-re)*2;be=Math.min(be,lt)}return be}function cfe(e,t,n,a){let h=!1,S=1/0;for(let E of e){let L=E[E.length-1],[_,N]=L;for(let V of E){let[q,Y]=V;Y>n!=N>n&&t<(_-q)*(n-Y)/(N-Y)+q&&(h=!h);let J=lfe(L,V,t,n,a);S=Math.min(S,J),L=V,_=q,N=Y}}return(h?1:-1)*S}function TN(e,t,n){n>=t&&(e.maxX=Math.min(e.maxX,n-t)),n<=t&&(e.minX=Math.max(e.minX,n-t))}function dfe(e,t,n,a,h,S){let E=h-S/2,L=h+S/2,[_,N]=t,[V,q]=n,Y=V-_,J=q-N,[re,ce]=_<=V?t:n,[he,me]=_<=V?n:t;if(Y!==0){let we=J/Y;for(let Me=0;Me<=1;Me+=1){let Le=((Me===0?E:L)-N)/we+_;Le>=re&&Le<=he&&TN(e,a,Le)}}else Math.max(E,Math.min(N,q))<=Math.min(L,Math.max(N,q))&&TN(e,a,_);return he<a&&me>=E&&me<=L?TN(e,a,he):re>a&&ce>=E&&ce<=L&&TN(e,a,re),e}function ufe(e,t,n,a){let h={minX:-1/0,maxX:1/0};for(let L of e){let _=L[L.length-1];for(let N of L)dfe(h,_,N,t,n,a),_=N}let{minX:S,maxX:E}=h;return Number.isFinite(S)&&Number.isFinite(E)?{x:t+(S+E)/2,width:E-S}:{x:t,width:0}}var hfe=(xt(),D(wt)),{AND:gfe,ARRAY:pfe,COLOR_STRING:mK,COLOR_STRING_ARRAY:mfe,FUNCTION:ffe,LINE_DASH:vfe,OBJECT:fK,POSITIVE_NUMBER:b5,RATIO:vK,STRING:zw,Validate:ol,SeriesProperties:yfe,SeriesTooltip:bfe}=hfe._ModuleSupport,Ts=class extends yfe{constructor(){super(...arguments),this.topology=void 0,this.idKey="",this.idName=void 0,this.topologyIdKey="name",this.labelKey=void 0,this.labelName=void 0,this.colorRange=void 0,this.fill="black",this.fillOpacity=1,this.stroke="black",this.strokeOpacity=1,this.strokeWidth=0,this.lineDash=[0],this.lineDashOffset=0,this.padding=0,this.label=new $2,this.tooltip=new bfe}};ve([ol(FC,{optional:!0})],Ts.prototype,"topology",2),ve([ol(zw,{optional:!0})],Ts.prototype,"title",2),ve([ol(zw,{optional:!0})],Ts.prototype,"legendItemName",2),ve([ol(zw)],Ts.prototype,"idKey",2),ve([ol(zw,{optional:!0})],Ts.prototype,"idName",2),ve([ol(zw)],Ts.prototype,"topologyIdKey",2),ve([ol(zw,{optional:!0})],Ts.prototype,"labelKey",2),ve([ol(zw,{optional:!0})],Ts.prototype,"labelName",2),ve([ol(zw,{optional:!0})],Ts.prototype,"colorKey",2),ve([ol(zw,{optional:!0})],Ts.prototype,"colorName",2),ve([ol(gfe(mfe,pfe.restrict({minLength:1})),{optional:!0})],Ts.prototype,"colorRange",2),ve([ol(mK)],Ts.prototype,"fill",2),ve([ol(vK)],Ts.prototype,"fillOpacity",2),ve([ol(mK)],Ts.prototype,"stroke",2),ve([ol(vK)],Ts.prototype,"strokeOpacity",2),ve([ol(b5)],Ts.prototype,"strokeWidth",2),ve([ol(vfe)],Ts.prototype,"lineDash",2),ve([ol(b5)],Ts.prototype,"lineDashOffset",2),ve([ol(b5)],Ts.prototype,"padding",2),ve([ol(ffe,{optional:!0})],Ts.prototype,"itemStyler",2),ve([ol(fK)],Ts.prototype,"label",2),ve([ol(fK)],Ts.prototype,"tooltip",2);var{getMissCount:Cfe,createDatumId:yK,SeriesNodePickMode:bK,valueProperty:RN,Validate:Sfe,CachedTextMeasurerPool:wfe,TextUtils:CK,Logger:SK,ColorScale:xfe,Group:wK,Selection:C5,Text:Mfe,PointerEvents:kfe}=pK._ModuleSupport,xK=pK._ModuleSupport.MercatorScale.fixedScale(),PN=class extends nO{constructor(e){super({moduleCtx:e,useLabelLayer:!0,pickModes:[bK.EXACT_SHAPE_MATCH,bK.NEAREST_NODE]}),this.properties=new Ts,this._chartTopology=void 0,this.colorScale=new xfe,this.itemGroup=this.contentGroup.appendChild(new wK({name:"itemGroup"})),this.itemLabelGroup=this.contentGroup.appendChild(new wK({name:"itemLabelGroup"})),this.datumSelection=C5.select(this.itemGroup,()=>this.nodeFactory()),this.labelSelection=C5.select(this.itemLabelGroup,Mfe),this.highlightDatumSelection=C5.select(this.highlightNode,()=>this.nodeFactory()),this.previousLabelLayouts=void 0,this._previousDatumMidPoint=void 0,this.itemLabelGroup.pointerEvents=kfe.None}getNodeData(){var e;return(e=this.contextNodeData)==null?void 0:e.nodeData}get topology(){var e;return(e=this.properties.topology)!=null?e:this._chartTopology}get hasData(){return super.hasData&&this.topology!=null}renderToOffscreenCanvas(){return!0}setChartTopology(e){this._chartTopology=e,this.topology===e&&(this.nodeDataRefresh=!0)}setSeriesIndex(e){return super.setSeriesIndex(e)?(this.contentGroup.zIndex=[1,e],this.highlightGroup.zIndex=[2,e],!0):!1}isLabelEnabled(){return this.properties.labelKey!=null&&this.properties.label.enabled}nodeFactory(){let e=new dP;return e.renderMode=1,e.lineJoin="round",e}async processData(e){var ce;if(this.data==null||!this.properties.isValid())return;let{data:t,topology:n,colorScale:a}=this,{topologyIdKey:h,idKey:S,colorKey:E,labelKey:L,colorRange:_}=this.properties,N=new Map;n==null||n.features.forEach(he=>{var we;let me=(we=he.properties)==null?void 0:we[h];me==null||!u5(he.geometry,1)||N.set(me,he)});let V=this.colorScale.type,q=(ce=this.scale)==null?void 0:ce.type,{dataModel:Y,processedData:J}=await this.requestDataModel(e,t,{props:[RN(S,q,{id:"idValue",includeProperty:!1}),RN(S,q,{id:"featureValue",includeProperty:!1,processor:()=>he=>N.get(he)}),...L?[RN(L,"band",{id:"labelValue"})]:[],...E?[RN(E,V,{id:"colorValue"})]:[]]}),re=J.rawData.length!==0?Y.resolveColumnById(this,"featureValue",J):void 0;if(this.topologyBounds=re==null?void 0:re.reduce((he,me)=>{let we=me==null?void 0:me.geometry;return we==null?he:uP(we,he)},void 0),_!=null&&this.isColorScaleValid()){let he=Y.resolveProcessedDataIndexById(this,"colorValue");a.domain=J.domain.values[he],a.range=_,a.update()}n==null&&SK.warnOnce("no topology was provided for [MapShapeSeries]; nothing will be rendered.")}isColorScaleValid(){let{colorKey:e}=this.properties;if(!e)return!1;let{dataModel:t,processedData:n}=this;if(!t||!n)return!1;let a=t.resolveProcessedDataIndexById(this,"colorValue"),h=n.rawData.length,S=Cfe(this,n.defs.values[a].missing);return!(h===0||h===S)}getLabelLayout(e,t,n,a,h){if(t==null||a==null)return;let{idKey:S,idName:E,colorKey:L,colorName:_,labelKey:N,labelName:V,padding:q,label:Y}=this.properties,J=this.getLabelText(Y,{value:t,datum:e,idKey:S,idName:E,colorKey:L,colorName:_,labelKey:N,labelName:V});if(J==null)return;let re=wfe.measureText(String(J),{font:n}),ce=J.split(`
`).length,he=(re.width+2*q)/(ce*CK.getLineHeight(Y.fontSize)+2*q);if((h==null?void 0:h.geometry)===a&&(h==null?void 0:h.labelText)===J&&(h==null?void 0:h.aspectRatio)===he)return h;let me=xA(a,xK),we=xN(me);if(we==null)return;let Me=sfe(we,{aspectRatio:he,precision:.001});if(Me==null)return;let{x:be,y:Le,maxWidth:Fe}=Me;return{geometry:a,labelText:J,aspectRatio:he,x:be,y:Le,maxWidth:Fe,fixedPolygon:we}}getLabelDatum(e,t){let{scale:n}=this;if(n==null)return;let{padding:a,label:h}=this.properties,{labelText:S,aspectRatio:E,x:L,y:_,maxWidth:N,fixedPolygon:V}=e,q={width:Math.ceil(N*t),height:Math.ceil(N*t/E),meta:L},Y=X2(S,h,{padding:a},(be,Le)=>{if(!Le)return q;let Fe=ufe(V,L,_,be/t);return{width:Fe.width*t,height:be,meta:Fe.x}});if(Y==null)return;let[{text:J,fontSize:re,lineHeight:ce,width:he},me]=Y;if(J===CK.EllipsisChar)return;let we=he<q.width?L:me,Me=this.scale.convert(xK.invert([we,_]));return{x:Me[0],y:Me[1],text:J,fontSize:re,lineHeight:ce}}createNodeData(){let{id:e,dataModel:t,processedData:n,properties:a,scale:h,previousLabelLayouts:S}=this,{idKey:E,colorKey:L,labelKey:_,label:N}=a;if(t==null||n==null||n.rawData.length===0)return;let V=h!=null?(h.range[1][0]-h.range[0][0])/h.bounds.width:NaN,q=t.resolveColumnById(this,"idValue",n),Y=t.resolveColumnById(this,"featureValue",n),J=_!=null?t.resolveColumnById(this,"labelValue",n):void 0,re=L!=null?t.resolveColumnById(this,"colorValue",n):void 0,ce=N.getFont(),he=new Map;this.previousLabelLayouts=he;let me=[],we=[],Me=[];n.rawData.forEach((Le,Fe)=>{var bt,At;let je=q[Fe],Xe=re==null?void 0:re[Fe],nt=J==null?void 0:J[Fe],lt=(At=(bt=Y[Fe])==null?void 0:bt.geometry)!=null?At:void 0;lt==null&&Me.push(je);let ot=this.getLabelLayout(Le,nt,ce,lt,S==null?void 0:S.get(je));ot!=null&&he.set(je,ot);let vt=ot!=null&&h!=null?this.getLabelDatum(ot,V):void 0;vt!=null&&we.push(vt);let gt=lt!=null&&h!=null?xA(lt,h):void 0;me.push({series:this,itemId:E,datum:Le,datumIndex:Fe,idValue:je,colorValue:Xe,labelValue:nt,projectedGeometry:gt})});let be=10;if(Me.length>be){let Le=Me.length-be;Me.length=be,Me.push(`(+${Le} more)`)}return Me.length>0&&SK.warnOnce("some data items do not have matches in the provided topology",Me),{itemId:e,nodeData:me,labelData:we}}updateSelections(){this.nodeDataRefresh&&(this.contextNodeData=this.createNodeData(),this.nodeDataRefresh=!1)}update(){var E,L,_,N,V;let{datumSelection:e,labelSelection:t,highlightDatumSelection:n}=this;this.updateSelections(),this.contentGroup.visible=this.visible,this.contentGroup.opacity=this.getOpacity();let a=(E=this.ctx.highlightManager)==null?void 0:E.getActiveHighlight();a!=null&&(a.series!==this||a.datum==null)&&(a=void 0);let h=(_=(L=this.contextNodeData)==null?void 0:L.nodeData)!=null?_:[],S=(V=(N=this.contextNodeData)==null?void 0:N.labelData)!=null?V:[];this.datumSelection=this.updateDatumSelection({nodeData:h,datumSelection:e}),this.updateDatumNodes({datumSelection:e,isHighlight:!1}),this.labelSelection=this.updateLabelSelection({labelData:S,labelSelection:t}),this.updateLabelNodes({labelSelection:t}),this.highlightDatumSelection=this.updateDatumSelection({nodeData:a!=null?[a]:[],datumSelection:n}),this.updateDatumNodes({datumSelection:n,isHighlight:!0})}updateDatumSelection(e){return e.datumSelection.update(e.nodeData,void 0,t=>yK(t.idValue))}getItemBaseStyle(e){var h,S,E,L,_,N,V;let{properties:t}=this,n=e?t.highlightStyle.item:void 0,a=this.getStrokeWidth(t.strokeWidth);return{fill:(h=n==null?void 0:n.fill)!=null?h:t.fill,fillOpacity:(S=n==null?void 0:n.fillOpacity)!=null?S:t.fillOpacity,stroke:(E=n==null?void 0:n.stroke)!=null?E:t.stroke,strokeWidth:(L=n==null?void 0:n.strokeWidth)!=null?L:a,strokeOpacity:(_=n==null?void 0:n.strokeOpacity)!=null?_:t.strokeOpacity,lineDash:(N=n==null?void 0:n.lineDash)!=null?N:t.lineDash,lineDashOffset:(V=n==null?void 0:n.lineDashOffset)!=null?V:t.lineDashOffset}}getItemStyleOverrides(e,t,n,a,h){var q;let{id:S,properties:E,colorScale:L}=this,{colorRange:_,itemStyler:N}=E,V;if(!h&&n!=null&&(V!=null||(V={}),V.fill=this.isColorScaleValid()?L.convert(n):(q=_==null?void 0:_[0])!=null?q:E.fill),N!=null){let Y=this.cachedDatumCallback(yK(e,h?"highlight":"node"),()=>N(pe(pe({seriesId:S,datum:t,highlighted:h},a),V)));V!=null||(V={}),Object.assign(V,Y)}return V}updateDatumNodes(e){let{datumSelection:t,isHighlight:n}=e,a=this.getItemBaseStyle(n);t.each((h,S)=>{var q,Y,J,re,ce,he,me;let{datum:E,datumIndex:L,colorValue:_,projectedGeometry:N}=S;if(N==null){h.visible=!1,h.projectedGeometry=void 0;return}let V=this.getItemStyleOverrides(String(L),E,_,a,n);h.visible=!0,h.projectedGeometry=N,h.fill=(q=V==null?void 0:V.fill)!=null?q:a.fill,h.fillOpacity=(Y=V==null?void 0:V.fillOpacity)!=null?Y:a.fillOpacity,h.stroke=(J=V==null?void 0:V.stroke)!=null?J:a.stroke,h.strokeWidth=(re=V==null?void 0:V.strokeWidth)!=null?re:a.strokeWidth,h.strokeOpacity=(ce=V==null?void 0:V.strokeOpacity)!=null?ce:a.strokeOpacity,h.lineDash=(he=V==null?void 0:V.lineDash)!=null?he:a.lineDash,h.lineDashOffset=(me=V==null?void 0:V.lineDashOffset)!=null?me:a.lineDashOffset})}updateLabelSelection(e){let t=this.isLabelEnabled()?e.labelData:[];return e.labelSelection.update(t)}updateLabelNodes(e){let{labelSelection:t}=e,{color:n,fontStyle:a,fontWeight:h,fontFamily:S}=this.properties.label;t.each((E,{x:L,y:_,text:N,fontSize:V,lineHeight:q})=>{E.visible=!0,E.x=L,E.y=_,E.text=N,E.fill=n,E.fontStyle=a,E.fontWeight=h,E.fontSize=V,E.lineHeight=q,E.fontFamily=S,E.textAlign="center",E.textBaseline="middle"})}resetAnimation(){}pickNodeClosestDatum({x:e,y:t}){let n=1/0,a;return this.datumSelection.each((h,S)=>{let E=h.distanceSquared(e,t);E<n&&(n=E,a=S)}),a!=null?{datum:a,distance:Math.sqrt(n)}:void 0}datumMidPoint(e){let{_previousDatumMidPoint:t}=this;if((t==null?void 0:t.datum)===e)return t.point;let n=e.projectedGeometry,a=n!=null?xN(n):void 0,h=a!=null?f5(a,2):void 0,S=h!=null?{x:h[0],y:h[1]}:void 0;return this._previousDatumMidPoint={datum:e,point:S},S}legendItemSymbol(e){let{dataModel:t,processedData:n,properties:a}=this,{fillOpacity:h,stroke:S,strokeWidth:E,strokeOpacity:L}=a,{fill:_}=a;if(e!=null&&this.isColorScaleValid()){let V=t.resolveColumnById(this,"colorValue",n)[e];_=this.colorScale.convert(V)}return{marker:{fill:_,fillOpacity:h,stroke:S,strokeWidth:E,strokeOpacity:L}}}getLegendData(e){var J,re;let{processedData:t,dataModel:n}=this;if(t==null||n==null)return[];let{id:a,visible:h}=this,{title:S,legendItemName:E,idKey:L,idName:_,colorKey:N,colorName:V,colorRange:q,showInLegend:Y}=this.properties;if(e==="gradient"&&N!=null&&q!=null){let ce=t.domain.values[n.resolveProcessedDataIndexById(this,"colorValue")];return[{legendType:"gradient",enabled:h,seriesId:a,colorName:V,colorRange:q,colorDomain:ce}]}else return e==="category"?[{legendType:"category",id:a,itemId:a,seriesId:a,enabled:h,label:{text:(re=(J=E!=null?E:S)!=null?J:_)!=null?re:L},symbol:this.legendItemSymbol(),legendItemName:E,hideInLegend:!Y}]:[]}getTooltipContent(e){let{id:t,dataModel:n,processedData:a,properties:h}=this,{idKey:S,idName:E,colorKey:L,colorName:_,labelKey:N,labelName:V,legendItemName:q,title:Y,tooltip:J}=h;if(!n||!(a!=null&&a.rawData.length))return;let{datumIndex:re}=e,ce=a.rawData[re],he=n.resolveColumnById(this,"idValue",a)[re],me=L!=null?n.resolveColumnById(this,"colorValue",a)[re]:void 0,we=[];if(me!=null&&we.push({label:_,fallbackLabel:L,value:String(me)}),N!=null&&N!==S){let be=n.resolveColumnById(this,"labelValue",a)[re];we.push({label:V,fallbackLabel:N,value:be})}let Me=this.getItemBaseStyle(!1);return Object.assign(Me,this.getItemStyleOverrides(String(re),re,me,Me,!1)),J.formatTooltip({heading:he,title:Y!=null?Y:q,symbol:this.legendItemSymbol(re),data:we},pe({seriesId:t,datum:ce,title:Y,idKey:S,idName:E,colorKey:L,colorName:_,labelKey:N,labelName:V},Me))}computeFocusBounds(e){return q9(this,e)}};PN.className="MapShapeSeries",PN.type="map-shape",ve([Sfe(FC,{optional:!0,property:"topology"})],PN.prototype,"_chartTopology",2);var{DEFAULT_INVERTED_LABEL_COLOUR:Afe,DEFAULT_DIVERGING_SERIES_COLOR_RANGE:Dfe,DEFAULT_BACKGROUND_COLOUR:Efe}=gK._ModuleSupport.ThemeSymbols,Ife={type:"series",optionsKey:"series[]",packageType:"enterprise",chartTypes:["topology"],identifier:"map-shape",moduleFactory:e=>new PN(e),tooltipDefaults:{range:"exact"},themeTemplate:et(pe({},tO),{series:{fillOpacity:1,strokeWidth:1,lineDash:[0],lineDashOffset:0,padding:2,label:{color:Afe,fontWeight:"bold",overflowStrategy:"hide"}}}),paletteFactory:e=>{let{takeColors:t,colorsCount:n,userPalette:a,themeTemplateParameters:h}=e,{fill:S}=gK._ModuleSupport.singleSeriesPaletteFactory(e),E=h.get(Dfe),{fills:L}=t(n);return{fill:S,stroke:h.get(Efe),colorRange:a==="inbuilt"?E:[L[0],L[1]]}}},Tfe=(xt(),D(wt)),Rfe=(xt(),D(wt)),S5=(xt(),D(wt)),{isDefined:Pfe,ChartAxisDirection:Bw,PolarAxis:Lfe,diff:Ofe,fixNumericExtent:_fe,groupAccumulativeValueProperty:MK,keyProperty:Ffe,normaliseGroupTo:Nfe,resetLabelFn:zfe,seriesLabelFadeInAnimation:Bfe,seriesLabelFadeOutAnimation:Gfe,valueProperty:jfe,animationValidation:Vfe,createDatumId:kK,SeriesNodePickMode:AK,normalizeAngle360:DK,BandScale:Hfe,motion:EK}=S5._ModuleSupport,Wfe=class extends S5._ModuleSupport.SeriesNodeEvent{constructor(e,t,n,a){super(e,t,n,a),this.angleKey=a.properties.angleKey,this.radiusKey=a.properties.radiusKey}},IK=class extends S5._ModuleSupport.PolarSeries{constructor(e,{animationResetFns:t}){super({moduleCtx:e,useLabelLayer:!0,canHaveAxes:!0,pickModes:[AK.NEAREST_NODE,AK.EXACT_SHAPE_MATCH],animationResetFns:et(pe({},t),{label:zfe})}),this.NodeEvent=Wfe,this.groupScale=new Hfe,this.circleCache={r:0,cx:0,cy:0}}getSeriesDomain(e){let{dataModel:t,processedData:n}=this;if(!n||!t)return[];if(e===Bw.X)return t.getDomain(this,"angleValue","key",n);{let a=t.getDomain(this,"radiusValue-end","value",n),h=[a[0]>0?0:a[0],a[1]<0?0:a[1]];return _fe(h)}}async processData(e){var Y,J;let{visible:t}=this,{angleKey:n,radiusKey:a,normalizedTo:h}=this.properties,S=!this.ctx.animationManager.isSkipped();if(!this.properties.isValid())return;let E=this.getStackId(),L=`${E}-trailing`,_=[];Pfe(h)&&_.push(Nfe([E,L],Math.abs(h),"range")),S&&this.processedData&&_.push(Ofe(this.id,this.processedData)),S&&_.push(Vfe());let N=t||!S?{}:{forceValue:0},V=(Y=this.axes[Bw.Y])==null?void 0:Y.scale.type,q=(J=this.axes[Bw.X])==null?void 0:J.scale.type;await this.requestDataModel(e,this.data,{props:[Ffe(n,q,{id:"angleValue"}),jfe(a,V,pe({id:"radiusValue-raw",invalidValue:null},N)),...MK(a,"normal","current",pe({id:"radiusValue-end",rangeId:"radiusValue-range",invalidValue:null,groupId:E,separateNegative:!0},N),V),...MK(a,"trailing","current",pe({id:"radiusValue-start",invalidValue:null,groupId:L,separateNegative:!0},N),V),..._]}),this.animationState.transition("updateData")}didCircleChange(){let e=this.radius,t=this.centerX,n=this.centerY,a=this.circleCache;return e!==a.r||t!==a.cx||n!==a.cy?(this.circleCache={r:e,cx:t,cy:n},!0):!1}isRadiusAxisReversed(){var e;return(e=this.axes[Bw.Y])==null?void 0:e.isReversed()}maybeRefreshNodeData(){var n;if(!this.didCircleChange()&&!this.nodeDataRefresh)return;let{nodeData:t=[]}=(n=this.createNodeData())!=null?n:{};this.nodeData=t,this.nodeDataRefresh=!1}getAxisInnerRadius(){let e=this.axes[Bw.Y];return e instanceof Lfe?this.radius*e.innerRadiusRatio:0}createNodeData(){var Rt;let{processedData:e,dataModel:t,groupScale:n}=this;if(!t||!e||e.type!=="ungrouped"||e.rawData.length===0||!this.properties.isValid())return;let a=this.axes[Bw.X],h=this.axes[Bw.Y],S=a==null?void 0:a.scale,E=h==null?void 0:h.scale;if(!S||!E)return;let L=t.resolveKeysById(this,"angleValue",e),_=t.resolveColumnById(this,"radiusValue-start",e),N=t.resolveColumnById(this,"radiusValue-end",e),V=t.resolveColumnById(this,"radiusValue-raw",e),q=t.resolveProcessedDataIndexById(this,"radiusValue-range"),Y=0,J=0;a instanceof uE&&(Y=a.groupPaddingInner,J=a.paddingInner);let ce=((Rt=S.bandwidth)!=null?Rt:0)*(1-J),{index:he,visibleGroupCount:me}=this.ctx.seriesStateManager.getVisiblePeerGroupIndex(this);n.domain=Array.from({length:me}).map((It,Dt)=>String(Dt)),n.range=[-ce/2,ce/2],n.paddingInner=me>1?Y:0;let we=this.isRadiusAxisReversed(),Me=we?this.radius:this.getAxisInnerRadius(),be=we?this.getAxisInnerRadius():this.radius,Le=be+Me,{angleKey:Fe,radiusKey:je,angleName:Xe,radiusName:nt,label:lt}=this.properties,ot=(It,Dt,jt,Nt)=>{let zt=this.getLabelText(lt,{value:Dt,datum:It,angleKey:Fe,radiusKey:je,angleName:Xe,radiusName:nt});if(zt)return{x:jt,y:Nt,text:zt,textAlign:"center",textBaseline:"middle"}},vt=[],gt={itemId:je,nodeData:vt,labelData:vt};if(!this.visible)return gt;let{rawData:bt,aggregation:At}=e;return bt.forEach((It,Dt)=>{var on;let jt=L[Dt];if(jt==null)return;let Nt=V[Dt],zt=Nt>=0&&!Object.is(Nt,-0),Ut=_[Dt],Vt=N[Dt],ci=(on=At[Dt][q][zt?1:0])!=null?on:0,li=zt===we;if(Ut===void 0||Vt===void 0)return;let oi,vi;if(bt.length===1)oi=-.5*Math.PI,vi=1.5*Math.PI;else{let Dn=S.convert(jt);oi=DK(Dn+n.convert(String(he))),vi=DK(oi+n.bandwidth)}let gi=oi+n.bandwidth/2,fi=Le-E.convert(Ut),ki=Le-E.convert(Vt),si=(fi+ki)/2,di=Le-E.convert(0),Ii=Le-E.convert(ci),bi=Math.cos(gi)*si,wi=Math.sin(gi)*si,Li=this.properties.label.enabled?ot(It,Nt,bi,wi):void 0,Ln=this.getColumnWidth(oi,vi);vt.push({series:this,datum:It,datumIndex:Dt,point:{x:bi,y:wi,size:0},midPoint:{x:bi,y:wi},label:Li,angleValue:jt,radiusValue:Nt,negative:li,innerRadius:fi,outerRadius:ki,stackInnerRadius:di,stackOuterRadius:Ii,startAngle:oi,endAngle:vi,axisInnerRadius:Me,axisOuterRadius:be,columnWidth:Ln,index:Dt})}),{itemId:je,nodeData:vt,labelData:vt}}getColumnWidth(e,t){return NaN}update({seriesRect:e}){let t=this.checkResize(e);this.maybeRefreshNodeData(),this.contentGroup.translationX=this.centerX,this.contentGroup.translationY=this.centerY,this.highlightGroup.translationX=this.centerX,this.highlightGroup.translationY=this.centerY,this.labelGroup&&(this.labelGroup.translationX=this.centerX,this.labelGroup.translationY=this.centerY),this.updateSectorSelection(this.itemSelection,!1),this.updateSectorSelection(this.highlightSelection,!0),this.updateLabels(),t&&this.animationState.transition("resize"),this.animationState.transition("update")}getItemBaseStyle(e){var h,S,E,L,_,N,V;let{properties:t}=this,n=e?t.highlightStyle.item:void 0,a=this.getStrokeWidth(t.strokeWidth);return{fill:(h=n==null?void 0:n.fill)!=null?h:t.fill,fillOpacity:(S=n==null?void 0:n.fillOpacity)!=null?S:t.fillOpacity,stroke:(E=n==null?void 0:n.stroke)!=null?E:t.stroke,strokeWidth:(L=n==null?void 0:n.strokeWidth)!=null?L:a,strokeOpacity:(_=n==null?void 0:n.strokeOpacity)!=null?_:t.strokeOpacity,lineDash:(N=n==null?void 0:n.lineDash)!=null?N:t.lineDash,lineDashOffset:(V=n==null?void 0:n.lineDashOffset)!=null?V:t.lineDashOffset,cornerRadius:t.cornerRadius}}getItemStyleOverrides(e,t,n,a){let{id:h,properties:S}=this,{angleKey:E,radiusKey:L,itemStyler:_}=S;if(_!=null)return this.cachedDatumCallback(kK(e,a?"highlight":"node"),()=>_(pe({seriesId:h,datum:t,highlighted:a,angleKey:E,radiusKey:L},n)))}updateSectorSelection(e,t){var h;let n=[];if(t){let S=(h=this.ctx.highlightManager)==null?void 0:h.getActiveHighlight();S!=null&&S.datum&&S.series===this&&n.push(S)}else n=this.nodeData;let a=this.getItemBaseStyle(t);e.update(n,void 0,S=>this.getDatumId(S)).each((S,E)=>{var V,q,Y,J,re,ce,he,me;let{datum:L,datumIndex:_}=E,N=this.getItemStyleOverrides(String(_),L,a,t);this.updateItemPath(S,E,t,pe(pe({},N),a)),S.fill=(V=N==null?void 0:N.fill)!=null?V:a.fill,S.fillOpacity=(q=N==null?void 0:N.fillOpacity)!=null?q:a.fillOpacity,S.stroke=(Y=N==null?void 0:N.stroke)!=null?Y:a.stroke,S.strokeWidth=(J=N==null?void 0:N.strokeWidth)!=null?J:a.strokeWidth,S.strokeOpacity=(re=N==null?void 0:N.strokeOpacity)!=null?re:a.strokeOpacity,S.lineDash=(ce=N==null?void 0:N.lineDash)!=null?ce:a.lineDash,S.lineDashOffset=(he=N==null?void 0:N.lineDashOffset)!=null?he:a.lineDashOffset,S.cornerRadius=(me=N==null?void 0:N.cornerRadius)!=null?me:a.cornerRadius,S.lineJoin="round"})}updateLabels(){let{label:e}=this.properties;this.labelSelection.update(this.nodeData).each((t,n)=>{e.enabled&&n.label?(t.x=n.label.x,t.y=n.label.y,t.fill=e.color,t.fontFamily=e.fontFamily,t.fontSize=e.fontSize,t.fontStyle=e.fontStyle,t.fontWeight=e.fontWeight,t.text=n.label.text,t.textAlign=n.label.textAlign,t.textBaseline=n.label.textBaseline,t.visible=!0):t.visible=!1})}animateEmptyUpdateReady(){let{labelSelection:e}=this,t=this.getColumnTransitionFunctions();EK.fromToMotion(this.id,"datums",this.ctx.animationManager,[this.itemSelection],t),Bfe(this,"labels",this.ctx.animationManager,e)}animateClearingUpdateEmpty(){let{itemSelection:e}=this,{animationManager:t}=this.ctx,n=this.getColumnTransitionFunctions();EK.fromToMotion(this.id,"datums",t,[e],n),Gfe(this,"labels",t,this.labelSelection)}getTooltipContent(e){let{id:t,dataModel:n,processedData:a,axes:h,properties:S}=this,{angleKey:E,angleName:L,radiusKey:_,radiusName:N,tooltip:V}=S,q=h[Bw.X],Y=h[Bw.Y];if(!n||!a||a.rawData.length===0||!q||!Y)return;let{datumIndex:J}=e,re=a.rawData[J],ce=n.resolveKeysById(this,"angleValue",a)[J],he=n.resolveColumnById(this,"radiusValue-raw",a)[J];if(ce==null)return;let me=this.getItemBaseStyle(!1);return Object.assign(me,this.getItemStyleOverrides(String(J),J,me,!1)),V.formatTooltip({heading:q.formatDatum(ce),symbol:this.legendItemSymbol(),data:[{label:N,fallbackLabel:_,value:Y.formatDatum(he)}]},pe({seriesId:t,datum:re,title:L,angleKey:E,angleName:L,radiusKey:_,radiusName:N},me))}pickNodeClosestDatum(e){return this.pickNodeNearestDistantObject(e,this.itemSelection.nodes())}legendItemSymbol(){let{fill:e,stroke:t,fillOpacity:n,strokeOpacity:a,strokeWidth:h}=this.properties;return{marker:{fill:e!=null?e:"rgba(0, 0, 0, 0)",stroke:t!=null?t:"rgba(0, 0, 0, 0)",fillOpacity:n!=null?n:1,strokeOpacity:a!=null?a:1,strokeWidth:h}}}getLegendData(e){if(!this.properties.isValid()||e!=="category")return[];let{id:t,visible:n}=this,{radiusKey:a,radiusName:h,showInLegend:S}=this.properties;return[{legendType:"category",id:t,itemId:a,seriesId:t,enabled:n,label:{text:h!=null?h:a},symbol:this.legendItemSymbol(),hideInLegend:!S}]}getDatumId(e){return kK(e.angleValue)}computeLabelsBBox(){return null}},Ufe=(xt(),D(wt)),{SeriesProperties:Kfe,SeriesTooltip:qfe,Validate:kd,COLOR_STRING:TK,NUMBER:RK,FUNCTION:Yfe,LINE_DASH:Xfe,OBJECT:PK,POSITIVE_NUMBER:w5,RATIO:LK,STRING:oO,Label:Zfe}=Ufe._ModuleSupport,bc=class extends Kfe{constructor(){super(...arguments),this.fill="black",this.fillOpacity=1,this.stroke="black",this.strokeWidth=1,this.strokeOpacity=1,this.lineDash=[0],this.lineDashOffset=0,this.cornerRadius=0,this.rotation=0,this.label=new Zfe,this.tooltip=new qfe}};ve([kd(oO)],bc.prototype,"angleKey",2),ve([kd(oO,{optional:!0})],bc.prototype,"angleName",2),ve([kd(oO)],bc.prototype,"radiusKey",2),ve([kd(oO,{optional:!0})],bc.prototype,"radiusName",2),ve([kd(TK)],bc.prototype,"fill",2),ve([kd(LK)],bc.prototype,"fillOpacity",2),ve([kd(TK)],bc.prototype,"stroke",2),ve([kd(w5)],bc.prototype,"strokeWidth",2),ve([kd(LK)],bc.prototype,"strokeOpacity",2),ve([kd(Xfe)],bc.prototype,"lineDash",2),ve([kd(w5)],bc.prototype,"lineDashOffset",2),ve([kd(w5)],bc.prototype,"cornerRadius",2),ve([kd(Yfe,{optional:!0})],bc.prototype,"itemStyler",2),ve([kd(RK)],bc.prototype,"rotation",2),ve([kd(oO,{optional:!0})],bc.prototype,"stackGroup",2),ve([kd(RK,{optional:!0})],bc.prototype,"normalizedTo",2),ve([kd(PK)],bc.prototype,"label",2),ve([kd(PK)],bc.prototype,"tooltip",2);var $fe=(xt(),D(wt)),Qfe=(xt(),D(wt)),{motion:Jfe}=Qfe._ModuleSupport;function OK(){let e={startAngle:new Map,endAngle:new Map},t=["startAngle","endAngle"],n=(E,L,_)=>{t.forEach(N=>{var re,ce;let V=e[N],q=(_==="removed"||_==="updated"?E:L)[N],Y=(_==="removed"?E:L)[N];isNaN(Y)&&(Y=(ce=(re=E.previousDatum)==null?void 0:re[N])!=null?ce:NaN);let J=q-Y;Math.abs(J)>Math.PI&&(q-=Math.sign(J)*2*Math.PI),V.set(L,{from:q,to:Y})})},a=(E,L)=>({startAngle:e.startAngle.get(E)[L],endAngle:e.endAngle.get(E)[L]});return{calculate:n,from:E=>a(E,"from"),to:E=>a(E,"to")}}function _K(e,t,n){if(n==="updated"){if(e.previousDatum==null||isNaN(e.previousDatum.startAngle)||isNaN(e.previousDatum.endAngle))return"added";if(isNaN(t.startAngle)||isNaN(t.endAngle))return"removed"}return n==="added"&&e.previousDatum!=null?"updated":n}function eve(e){let t=OK();return{toFn:(h,S,E)=>{let{startAngle:L,endAngle:_}=t.to(S),N,V,q,Y,J;return E==="removed"?(N=h.innerRadius,V=h.innerRadius,q=h.columnWidth,Y=h.axisInnerRadius,J=h.axisOuterRadius):(N=isNaN(S.innerRadius)?e:S.innerRadius,V=isNaN(S.outerRadius)?e:S.outerRadius,q=isNaN(S.columnWidth)?h.columnWidth:S.columnWidth,Y=S.axisInnerRadius,J=S.axisOuterRadius),{innerRadius:N,outerRadius:V,columnWidth:q,axisInnerRadius:Y,axisOuterRadius:J,startAngle:L,endAngle:_}},fromFn:(h,S,E)=>{E=_K(h,S,E),t.calculate(h,S,E);let{startAngle:L,endAngle:_}=t.from(S),N,V,q,Y,J;E==="removed"||E==="updated"?(N=h.innerRadius,V=h.outerRadius,q=h.columnWidth,Y=h.axisInnerRadius,J=h.axisOuterRadius):(N=e,V=e,q=S.columnWidth,Y=S.axisInnerRadius,J=S.axisOuterRadius);let re=Jfe.NODE_UPDATE_STATE_TO_PHASE_MAPPING[E];return{innerRadius:N,outerRadius:V,columnWidth:q,axisInnerRadius:Y,axisOuterRadius:J,startAngle:L,endAngle:_,phase:re}}}}function tve(e,{innerRadius:t,outerRadius:n,columnWidth:a,axisInnerRadius:h,axisOuterRadius:S,startAngle:E,endAngle:L}){return{innerRadius:t,outerRadius:n,columnWidth:a,axisInnerRadius:h,axisOuterRadius:S,startAngle:E,endAngle:L}}var{SectorBox:LN,motion:ive}=$fe._ModuleSupport;function x5(e){let{negative:t,innerRadius:n,outerRadius:a,stackInnerRadius:h,stackOuterRadius:S}=e;return{innerRadius:t?S:h,outerRadius:t?h:S,clipInnerRadius:t?a:n,clipOuterRadius:t?n:a}}function nve(e){let t=OK();return{toFn:(h,S,E)=>{let{startAngle:L,endAngle:_}=t.to(S),N,V,q;if(E==="removed")N=e,V=e,q=new LN(L,_,N,V);else{let Y,J;({innerRadius:N,outerRadius:V,clipInnerRadius:Y,clipOuterRadius:J}=x5(S)),isNaN(N)&&(N=e),isNaN(V)&&(V=e),isNaN(Y)&&(Y=e),isNaN(J)&&(J=e),q=new LN(L,_,Y,J)}return{innerRadius:N,outerRadius:V,startAngle:L,endAngle:_,clipSector:q}},fromFn:(h,S,E)=>{E=_K(h,S,E),t.calculate(h,S,E);let{startAngle:L,endAngle:_}=t.from(S),N,V,q;E==="removed"||E==="updated"?(N=h.innerRadius,V=h.outerRadius,q=h.clipSector):(N=e,V=e),q!=null||(q=new LN(L,_,N,V));let Y=ive.NODE_UPDATE_STATE_TO_PHASE_MAPPING[E];return{innerRadius:N,outerRadius:V,startAngle:L,endAngle:_,clipSector:q,phase:Y}}}}function ave(e,t){let{startAngle:n,endAngle:a}=t,{innerRadius:h,outerRadius:S,clipInnerRadius:E,clipOuterRadius:L}=x5(t),_=new LN(n,a,E,L);return{innerRadius:h,outerRadius:S,startAngle:n,endAngle:a,clipSector:_}}var{Sector:ove,SectorBox:rve,PolarZIndexMap:M5}=Rfe._ModuleSupport,k5=class extends IK{constructor(e){super(e,{animationResetFns:{item:ave}}),this.properties=new bc}setSeriesIndex(e){return super.setSeriesIndex(e)?(this.contentGroup.zIndex=[0,M5.FOREGROUND,e],this.highlightGroup.zIndex=[0,M5.HIGHLIGHT,e],this.labelGroup.zIndex=[0,M5.LABEL,e],!0):!1}getStackId(){var t,n;return`nightingale-stack-${(n=(t=this.seriesGrouping)==null?void 0:t.groupIndex)!=null?n:this.id}-yValues`}nodeFactory(){return new ove}updateItemPath(e,t,n,a){let{negative:h}=t;if(e.centerX=0,e.centerY=0,e.startOuterCornerRadius=h?0:this.properties.cornerRadius,e.endOuterCornerRadius=h?0:this.properties.cornerRadius,e.startInnerCornerRadius=h?this.properties.cornerRadius:0,e.endInnerCornerRadius=h?this.properties.cornerRadius:0,n){let{startAngle:S,endAngle:E}=t,{innerRadius:L,outerRadius:_,clipInnerRadius:N,clipOuterRadius:V}=x5(t);e.innerRadius=L,e.outerRadius=_,e.startAngle=S,e.endAngle=E,e.clipSector=new rve(S,E,N,V)}}getColumnTransitionFunctions(){let e=this.isRadiusAxisReversed()?this.radius:this.getAxisInnerRadius();return nve(e)}};k5.className="NightingaleSeries",k5.type="nightingale";var sve=(xt(),D(wt)),{ThemeSymbols:{DEFAULT_FONT_FAMILY:lve,DEFAULT_LABEL_COLOUR:cve},ThemeConstants:{POLAR_AXIS_TYPE:FK,POLAR_AXIS_SHAPE:NK}}=sve._ModuleSupport,dve={series:{strokeWidth:1,label:{enabled:!1,fontSize:12,fontFamily:lve,color:cve}},axes:{[FK.ANGLE_CATEGORY]:{shape:NK.CIRCLE,groupPaddingInner:0,paddingInner:0,label:{spacing:10}},[FK.RADIUS_NUMBER]:{shape:NK.CIRCLE}}},{ThemeSymbols:{DEFAULT_POLAR_SERIES_STROKE:uve},ThemeConstants:{POLAR_AXIS_TYPE:zK}}=Tfe._ModuleSupport,hve={type:"series",optionsKey:"series[]",packageType:"enterprise",chartTypes:["polar"],identifier:"nightingale",moduleFactory:e=>new k5(e),tooltipDefaults:{range:"exact"},defaultAxes:[{type:zK.ANGLE_CATEGORY},{type:zK.RADIUS_NUMBER}],themeTemplate:dve,paletteFactory({takeColors:e,userPalette:t}){let{fills:[n],strokes:[a]}=e(1);return{fill:n,stroke:t!=="inbuilt"?a:uve}},stackable:!0,groupable:!0,stackedByDefault:!0},gve=(xt(),D(wt)),BK=(xt(),D(wt)),{createDatumId:pve}=BK._ModuleSupport,A5=class extends f7{constructor(){super(...arguments),this.properties=new nN}nodeFactory(){return new Dde}updateDatumNodes({datumSelection:e,isHighlight:t}){let{id:n,properties:a}=this,{xKey:h,highKey:S,lowKey:E,openKey:L,closeKey:_,item:N,itemStyler:V}=a,{up:q,down:Y}=N,{stroke:J,strokeWidth:re,strokeOpacity:ce,lineDash:he,lineDashOffset:me}=q,{stroke:we,strokeWidth:Me,strokeOpacity:be,lineDash:Le,lineDashOffset:Fe}=Y,je=t?a.highlightStyle.item:void 0;e.each((Xe,nt)=>{var jt,Nt,zt,Ut,Vt,Wt,ci,li,oi,vi,gi;let{isRising:lt,centerX:ot,width:vt,y:gt,height:bt,yOpen:At,yClose:Rt,crisp:It}=nt,Dt;if(V!=null){let{stroke:fi,strokeWidth:ki,strokeOpacity:si,lineDash:di,lineDashOffset:Ii}=lt?q:Y;Dt=this.cachedDatumCallback(pve(this.getDatumId(nt),t?"highlight":"node"),()=>V({seriesId:n,itemId:nt.itemId,xKey:h,highKey:S,lowKey:E,openKey:L,closeKey:_,datum:nt.datum,strokeOpacity:si,stroke:fi,strokeWidth:ki,lineDash:di,lineDashOffset:Ii,highlighted:t}))}Xe.centerX=ot,Xe.width=vt,Xe.y=gt,Xe.height=bt,Xe.yOpen=At,Xe.yClose=Rt,Xe.crisp=It,Xe.stroke=(Nt=(jt=je==null?void 0:je.stroke)!=null?jt:Dt==null?void 0:Dt.stroke)!=null?Nt:lt?J:we,Xe.strokeWidth=(Ut=(zt=je==null?void 0:je.strokeWidth)!=null?zt:Dt==null?void 0:Dt.strokeWidth)!=null?Ut:lt?re:Me,Xe.strokeOpacity=(Wt=(Vt=je==null?void 0:je.strokeOpacity)!=null?Vt:Dt==null?void 0:Dt.strokeOpacity)!=null?Wt:lt?ce:be,Xe.lineDash=(li=(ci=je==null?void 0:je.lineDash)!=null?ci:Dt==null?void 0:Dt.lineDash)!=null?li:lt?he:Le,Xe.lineDashOffset=(vi=(oi=je==null?void 0:je.lineDashOffset)!=null?oi:Dt==null?void 0:Dt.lineDashOffset)!=null?vi:lt?me:Fe,Xe.strokeAlignment=((gi=Dt==null?void 0:Dt.strokeWidth)!=null?gi:lt?re:Me)/2})}getLegendData(e){var Y;let{id:t,data:n,ctx:{legendManager:a},visible:h}=this,{xKey:S,yName:E,item:{up:L,down:_},showInLegend:N,legendItemName:V}=this.properties;if(!(n!=null&&n.length)||!S||e!=="category")return[];let q=new BK._ModuleSupport.LinearGradient("rgb",[{color:L.stroke,offset:0},{color:L.stroke,offset:.5},{color:_.stroke,offset:.5}],90);return[{legendType:"category",id:t,itemId:t,seriesId:t,enabled:h&&a.getItemEnabled({seriesId:t,itemId:t}),label:{text:(Y=V!=null?V:E)!=null?Y:t},symbol:{marker:{fill:q,fillOpacity:L.strokeOpacity,stroke:void 0,strokeWidth:0,strokeOpacity:1}},legendItemName:V,hideInLegend:!N}]}};A5.className="ohlc",A5.type="ohlc";var{CARTESIAN_AXIS_TYPE:ON,CARTESIAN_POSITION:GK}=gve._ModuleSupport.ThemeConstants,mve={type:"series",optionsKey:"series[]",packageType:"enterprise",chartTypes:["cartesian"],identifier:"ohlc",moduleFactory:e=>new A5(e),tooltipDefaults:{range:"nearest"},defaultAxes:[{type:ON.NUMBER,position:GK.LEFT},{type:ON.ORDINAL_TIME,position:GK.BOTTOM}],themeTemplate:{animation:{enabled:!1},axes:{[ON.NUMBER]:{crosshair:{snap:!1}},[ON.ORDINAL_TIME]:{groupPaddingInner:0,crosshair:{enabled:!0}}}},groupable:!1,paletteFactory:({takeColors:e,colorsCount:t,userPalette:n,palette:a})=>{if(n==="user-indexed"){let[h]=e(t).strokes;return{item:{up:{stroke:h},down:{stroke:h}}}}return{item:{up:{stroke:a.up.stroke},down:{stroke:a.down.stroke}}}}},Dxe=(xt(),D(wt)),jK=(xt(),D(wt)),fve=(xt(),D(wt)),{SeriesProperties:vve,SeriesTooltip:yve,Validate:Cc,UNION:bve,COLOR_STRING_ARRAY:VK,FUNCTION:Cve,DIRECTION:Sve,BOOLEAN:wve,LINE_DASH:xve,OBJECT:_N,NUMBER:Mve,POSITIVE_NUMBER:FN,RATIO:HK,STRING:WK,Label:UK,DropShadow:kve}=fve._ModuleSupport,Ave=class extends UK{},D5=class extends UK{constructor(){super(...arguments),this.spacing=0}};ve([Cc(Mve)],D5.prototype,"spacing",2),ve([Cc(bve(["before","after"],"a placement"))],D5.prototype,"placement",2);var Zc=class extends vve{constructor(){super(...arguments),this.fills=[],this.fillOpacity=1,this.strokes=[],this.strokeWidth=1,this.strokeOpacity=1,this.lineDash=[0],this.lineDashOffset=0,this.direction="vertical",this.reverse=void 0,this.spacing=0,this.aspectRatio=void 0,this.shadow=new kve().set({enabled:!1}),this.label=new Ave,this.stageLabel=new D5,this.tooltip=new yve}};ve([Cc(WK)],Zc.prototype,"stageKey",2),ve([Cc(WK)],Zc.prototype,"valueKey",2),ve([Cc(VK)],Zc.prototype,"fills",2),ve([Cc(HK)],Zc.prototype,"fillOpacity",2),ve([Cc(VK)],Zc.prototype,"strokes",2),ve([Cc(FN)],Zc.prototype,"strokeWidth",2),ve([Cc(HK)],Zc.prototype,"strokeOpacity",2),ve([Cc(xve)],Zc.prototype,"lineDash",2),ve([Cc(FN)],Zc.prototype,"lineDashOffset",2),ve([Cc(Sve)],Zc.prototype,"direction",2),ve([Cc(wve,{optional:!0})],Zc.prototype,"reverse",2),ve([Cc(FN)],Zc.prototype,"spacing",2),ve([Cc(FN,{optional:!0})],Zc.prototype,"aspectRatio",2),ve([Cc(Cve,{optional:!0})],Zc.prototype,"itemStyler",2),ve([Cc(_N)],Zc.prototype,"shadow",2),ve([Cc(_N)],Zc.prototype,"label",2),ve([Cc(_N)],Zc.prototype,"stageLabel",2),ve([Cc(_N)],Zc.prototype,"tooltip",2);var{valueProperty:KK,SeriesNodePickMode:qK,CachedTextMeasurerPool:Dve,TextUtils:Eve,createDatumId:Ive,BBox:E5,Group:I5,Selection:NN,Text:YK,PointerEvents:XK}=jK._ModuleSupport,Tve=class extends jK._ModuleSupport.DataModelSeries{constructor(e){super({moduleCtx:e,pickModes:[qK.EXACT_SHAPE_MATCH,qK.NEAREST_NODE]}),this.properties=new Zc,this.itemGroup=this.contentGroup.appendChild(new I5({name:"itemGroup"})),this.itemLabelGroup=this.contentGroup.appendChild(new I5({name:"itemLabelGroup"})),this.stageLabelGroup=this.contentGroup.appendChild(new I5({name:"stageLabelGroup"})),this.datumSelection=NN.select(this.itemGroup,()=>this.nodeFactory()),this.labelSelection=NN.select(this.itemLabelGroup,YK),this.stageLabelSelection=NN.select(this.stageLabelGroup,YK),this.highlightDatumSelection=NN.select(this.highlightNode,()=>this.nodeFactory()),this.itemLabelGroup.pointerEvents=XK.None,this.stageLabelGroup.pointerEvents=XK.None}addChartEventListeners(){var e;this.destroyFns.push((e=this.ctx.chartEventManager)==null?void 0:e.addListener("legend-item-click",t=>this.onLegendItemClick(t)))}nodeFactory(){return new PC}getNodeData(){var e;return(e=this.contextNodeData)==null?void 0:e.nodeData}async processData(e){if(this.data==null||!this.properties.isValid())return;let{id:t,visible:n,ctx:{legendManager:a}}=this,{stageKey:h,valueKey:S}=this.properties,E="band",L="number",_=(V,q,Y)=>n&&a.getItemEnabled({seriesId:t,itemId:Y}),N=this.visible?{}:{forceValue:0};await this.requestDataModel(e,this.data,{props:[KK(h,E,{id:"xValue"}),KK(S,L,et(pe({id:"yValue"},N),{validation:_,invalidValue:0}))]})}createNodeData(){var jt,Nt,zt,Ut;let{id:e,dataModel:t,processedData:n,properties:a,visible:h,ctx:{legendManager:S}}=this,{stageKey:E,valueKey:L,direction:_,reverse:N=_==="horizontal",spacing:V,aspectRatio:q,label:Y,stageLabel:J}=a;if(t==null||n==null||n.rawData.length===0)return;let re=_==="horizontal",ce=t.resolveColumnById(this,"xValue",n),he=t.resolveColumnById(this,"yValue",n),me=Dve.getMeasurer({font:J.getFont()}),we,Me;re?(we="center",Me=J.placement==="before"?"bottom":"top"):(we=J.placement==="after"?"left":"right",Me="middle");let be=J.enabled?[]:void 0,Le=0,Fe=0,je=0;n.rawData.forEach((Vt,Wt)=>{let ci=ce[Wt],li=he[Wt],oi=h&&S.getItemEnabled({seriesId:e,itemId:Wt});if(je+=li,be==null)return;let vi=this.getLabelText(this.properties.stageLabel,{datum:Vt,value:ci,stageKey:E,valueKey:L}),{width:gi}=me.measureText(vi),fi=vi.split(`
`).length*Eve.getLineHeight(Y.fontSize);Le=Math.max(Le,gi),Fe=Math.max(Fe,fi),be.push({x:NaN,y:NaN,text:vi,textAlign:we,textBaseline:Me,visible:oi})});let Xe=(Nt=(jt=this._nodeDataDependencies)==null?void 0:jt.seriesRectWidth)!=null?Nt:0,nt=(Ut=(zt=this._nodeDataDependencies)==null?void 0:zt.seriesRectHeight)!=null?Ut:0,lt=V*(n.rawData.length-1),ot;if(re){let Vt=Fe+J.spacing;ot=new E5(0,J.placement==="before"?Vt:0,Xe,nt-Vt)}else{let Vt=Le+J.spacing;ot=new E5(J.placement==="after"?0:Vt,0,Xe-Vt,nt)}if(q!=null&&q!==0){let Vt=_==="horizontal"?1/q:q,Wt=Math.min(ot.width,ot.height*Vt),ci=Wt/Vt;ot=new E5(ot.x+(ot.width-Wt)/2,ot.y+(ot.height-ci)/2,Wt,ci)}let vt,gt;re?gt=J.placement==="before"?ot.y-J.spacing:ot.y+ot.height+J.spacing:vt=J.placement==="after"?ot.x+ot.width+J.spacing:ot.x-J.spacing;let bt=ot.width-(re?lt:0),At=ot.height-(re?0:lt);if(bt<0||At<0)return;let Rt=[],It=[],Dt=0;return n.rawData.forEach((Vt,Wt)=>{let ci=ce[Wt],li=he[Wt],oi=h&&S.getItemEnabled({seriesId:e,itemId:Wt}),vi=Dt+li,gi=(Dt+vi)/(2*je),fi=(vi-Dt)/je,ki=re?bt*gi+V*Wt:bt*.5,si=re?At*.5:At*gi+V*Wt,di=ot.x+ki,Ii=ot.y+si;if(be!=null){let ln=be[Wt];ln.x=vt!=null?vt:di,ln.y=gt!=null?gt:Ii}let bi,wi,Li,Ln;if(re){let ln=bt*fi;bi=ln,Li=ln;let ra=(ki+ln/2)*(At/ot.width),sa=(ki-ln/2)*(At/ot.width);wi=N?ot.height-ra:ra,Ln=N?ot.height-sa:sa}else{let ln=At*fi;wi=ln,Ln=ln;let ra=(si-ln/2)*(bt/ot.height),sa=(si+ln/2)*(bt/ot.height);bi=N?ot.width-ra:ra,Li=N?ot.width-sa:sa}let on=this.getLabelText(Y,{datum:Vt,value:li,stageKey:E,valueKey:L}),Dn={x:di,y:Ii,text:on,textAlign:"center",textBaseline:"middle",visible:oi};It.push(Dn),Rt.push({series:this,itemId:L,datum:Vt,datumIndex:Wt,index:Wt,xValue:ci,yValue:li,x:di,y:Ii,top:bi,right:wi,bottom:Li,left:Ln,label:Dn,enabled:oi,midPoint:{x:di,y:Ii}}),Dt=vi}),{itemId:e,nodeData:Rt,labelData:It,stageLabelData:be}}updateSelections(){this.nodeDataRefresh&&(this.contextNodeData=this.createNodeData(),this.nodeDataRefresh=!1)}update({seriesRect:e}){var N,V,q,Y,J,re,ce;this.checkResize(e);let{datumSelection:t,labelSelection:n,stageLabelSelection:a,highlightDatumSelection:h}=this;this.updateSelections(),this.contentGroup.visible=this.visible,this.contentGroup.opacity=this.getOpacity();let S=(N=this.ctx.highlightManager)==null?void 0:N.getActiveHighlight();S!=null&&(S.series!==this||S.datum==null)&&(S=void 0);let E=(q=(V=this.contextNodeData)==null?void 0:V.nodeData)!=null?q:[],L=(J=(Y=this.contextNodeData)==null?void 0:Y.labelData)!=null?J:[],_=(ce=(re=this.contextNodeData)==null?void 0:re.stageLabelData)!=null?ce:[];this.datumSelection=this.updateDatumSelection({nodeData:E,datumSelection:t}),this.updateDatumNodes({datumSelection:t,isHighlight:!1}),this.labelSelection=this.updateLabelSelection({labelData:L,labelSelection:n}),this.updateLabelNodes({labelSelection:n,labelProperties:this.properties.label}),this.stageLabelSelection=this.updateStageLabelSelection({stageLabelData:_,stageLabelSelection:a}),this.updateLabelNodes({labelSelection:a,labelProperties:this.properties.stageLabel}),this.highlightDatumSelection=this.updateDatumSelection({nodeData:S!=null?[S]:[],datumSelection:h}),this.updateDatumNodes({datumSelection:h,isHighlight:!0})}updateDatumSelection(e){return e.datumSelection.update(e.nodeData)}getItemBaseStyle(e){var h,S,E,L,_;let{properties:t}=this,n=e?t.highlightStyle.item:void 0,a=this.getStrokeWidth(t.strokeWidth);return{fill:n==null?void 0:n.fill,fillOpacity:(h=n==null?void 0:n.fillOpacity)!=null?h:t.fillOpacity,stroke:n==null?void 0:n.stroke,strokeWidth:(S=n==null?void 0:n.strokeWidth)!=null?S:a,strokeOpacity:(E=n==null?void 0:n.strokeOpacity)!=null?E:t.strokeOpacity,lineDash:(L=n==null?void 0:n.lineDash)!=null?L:t.lineDash,lineDashOffset:(_=n==null?void 0:n.lineDashOffset)!=null?_:t.lineDashOffset}}getItemStyleOverrides(e,t,n,a,h){var ce,he;let{id:S,properties:E}=this,{fills:L,strokes:_,stageKey:N,valueKey:V,itemStyler:q}=E,Y=(ce=a.fill)!=null?ce:L[n%L.length],J=(he=a.stroke)!=null?he:_[n%_.length],re={};if(h||(re.fill=Y,re.stroke=J),q!=null){let me=this.cachedDatumCallback(Ive(e,h?"highlight":"node"),()=>q(pe({seriesId:S,datum:t,stageKey:N,valueKey:V,highlighted:h,fill:Y,stroke:J},a)));Object.assign(re,me)}return re}updateDatumNodes(e){let{datumSelection:t,isHighlight:n}=e,{properties:a}=this,{shadow:h}=a,S=this.getItemBaseStyle(n);t.each((E,L)=>{var me,we,Me,be,Le,Fe,je;let{datumIndex:_,datum:N,x:V,y:q,top:Y,right:J,bottom:re,left:ce}=L,he=this.getItemStyleOverrides(String(_),N,_,S,n);E.x0=V-Y/2,E.x1=V+Y/2,E.x2=V+re/2,E.x3=V-re/2,E.y0=q-ce/2,E.y1=q-J/2,E.y2=q+J/2,E.y3=q+ce/2,E.fill=(me=he==null?void 0:he.fill)!=null?me:S.fill,E.fillOpacity=(we=he==null?void 0:he.fillOpacity)!=null?we:S.fillOpacity,E.stroke=(Me=he==null?void 0:he.stroke)!=null?Me:S.stroke,E.strokeOpacity=(be=he==null?void 0:he.strokeOpacity)!=null?be:S.strokeOpacity,E.strokeWidth=(Le=he==null?void 0:he.strokeWidth)!=null?Le:S.strokeWidth,E.lineDash=(Fe=he==null?void 0:he.lineDash)!=null?Fe:S.lineDash,E.lineDashOffset=(je=he==null?void 0:he.lineDashOffset)!=null?je:S.lineDashOffset,E.fillShadow=h})}updateLabelSelection(e){return e.labelSelection.update(this.properties.label.enabled?e.labelData:[])}updateStageLabelSelection(e){return e.stageLabelSelection.update(e.stageLabelData)}updateLabelNodes(e){let{labelSelection:t,labelProperties:n}=e,{color:a,fontSize:h,fontStyle:S,fontWeight:E,fontFamily:L}=n;t.each((_,{visible:N,x:V,y:q,text:Y,textAlign:J,textBaseline:re})=>{_.visible=N,_.x=V,_.y=q,_.text=Y,_.fill=a,_.fontStyle=S,_.fontWeight=E,_.fontSize=h,_.fontFamily=L,_.textAlign=J,_.textBaseline=re})}resetAnimation(e){}computeFocusBounds(e){var n;let t=(n=this.getNodeData())==null?void 0:n[e.datumIndex];if(t!==void 0){for(let a of this.datumSelection)if(a.datum===t)return a.node}}getTooltipContent(e){let{id:t,dataModel:n,processedData:a,properties:h}=this,{stageKey:S,valueKey:E,tooltip:L}=h;if(!n||!a||a.rawData.length===0)return;let{datumIndex:_}=e,N=a.rawData[_],V=n.resolveColumnById(this,"xValue",a)[_],q=n.resolveColumnById(this,"yValue",a)[_];if(V==null)return;let Y=this.getLabelText(this.properties.stageLabel,{datum:a.rawData[_],value:q,stageKey:S,valueKey:E}),J=this.getItemBaseStyle(!1);return Object.assign(J,this.getItemStyleOverrides(String(_),_,_,J,!1)),L.formatTooltip({symbol:this.legendItemSymbol(_),data:[{label:String(V),value:Y}]},pe({seriesId:t,datum:N,title:void 0,stageKey:S,valueKey:E},J))}getSeriesDomain(){return[NaN,NaN]}getSeriesRange(e,t){return[NaN,NaN]}pickNodeClosestDatum({x:e,y:t}){let n=1/0,a;return this.datumSelection.each((h,S)=>{let E=h.distanceSquared(e,t);E<n&&(n=E,a=S)}),a!=null?{datum:a,distance:Math.sqrt(n)}:void 0}legendItemSymbol(e){var _,N;let{fills:t,strokes:n,strokeWidth:a,fillOpacity:h,strokeOpacity:S}=this.properties,E=(_=t[e%t.length])!=null?_:"black",L=(N=n[e%n.length])!=null?N:"black";return{marker:{fill:E,fillOpacity:h,stroke:L,strokeWidth:a,strokeOpacity:S}}}getLegendData(e){let{processedData:t,dataModel:n,id:a,ctx:{legendManager:h},visible:S}=this;if(!n||!t||e!=="category"||!this.properties.isValid())return[];let{showInLegend:E}=this.properties,L=[],_=n.resolveColumnById(this,"xValue",t);return t.rawData.forEach((N,V)=>{let q=_[V];L.push({legendType:"category",id:a,itemId:V,seriesId:a,enabled:S&&h.getItemEnabled({seriesId:a,itemId:V}),label:{text:q},symbol:this.legendItemSymbol(V),hideInLegend:!E})}),L}},Rve=(xt(),D(wt)),{DEFAULT_FONT_FAMILY:ZK,DEFAULT_LABEL_COLOUR:Pve,DEFAULT_INSIDE_SERIES_LABEL_COLOUR:Lve}=Rve._ModuleSupport.ThemeSymbols,Ove={series:{direction:"vertical",strokeWidth:0,spacing:2,label:{enabled:!0,fontSize:12,fontFamily:ZK,color:Lve},stageLabel:{enabled:!0,fontSize:12,fontFamily:ZK,color:Pve,spacing:12}}},_ve={type:"series",optionsKey:"series[]",packageType:"enterprise",chartTypes:["standalone"],identifier:"pyramid",moduleFactory:e=>new Tve(e),solo:!0,tooltipDefaults:{range:"exact"},themeTemplate:Ove,paletteFactory:({takeColors:e,colorsCount:t})=>{let{fills:n,strokes:a}=e(t);return{fills:n,strokes:a}}},Fve=(xt(),D(wt)),T5=(xt(),D(wt)),{ThemeSymbols:{DEFAULT_FONT_FAMILY:Nve,DEFAULT_LABEL_COLOUR:zve},ThemeConstants:{POLAR_AXIS_TYPE:Bve}}=T5._ModuleSupport,$K={series:{label:{enabled:!1,fontSize:12,fontFamily:Nve,color:zve},marker:{enabled:!0,fillOpacity:1,shape:"circle",size:6,strokeOpacity:1,strokeWidth:0}},axes:{[Bve.ANGLE_CATEGORY]:{label:{spacing:10}}}},Gve=T5._ModuleSupport.mergeDefaults({series:{strokeWidth:2}},$K),jve=T5._ModuleSupport.mergeDefaults({series:{fillOpacity:.8,strokeWidth:2,marker:{enabled:!1}}},$K),QK=(xt(),D(wt)),hP=(xt(),D(wt)),Vve=(xt(),D(wt)),{Label:Hve,SeriesMarker:Wve,SeriesProperties:Uve,SeriesTooltip:Kve,Validate:ep,BOOLEAN:qve,COLOR_STRING:Yve,NUMBER:Xve,LINE_DASH:Zve,OBJECT:R5,POSITIVE_NUMBER:JK,RATIO:$ve,STRING:zN}=Vve._ModuleSupport,sh=class extends Uve{constructor(){super(...arguments),this.stroke="black",this.strokeWidth=1,this.strokeOpacity=1,this.lineDash=[0],this.lineDashOffset=0,this.rotation=0,this.marker=new Wve,this.label=new Hve,this.tooltip=new Kve,this.connectMissingData=!1}};ve([ep(zN)],sh.prototype,"angleKey",2),ve([ep(zN)],sh.prototype,"radiusKey",2),ve([ep(zN,{optional:!0})],sh.prototype,"angleName",2),ve([ep(zN,{optional:!0})],sh.prototype,"radiusName",2),ve([ep(Yve)],sh.prototype,"stroke",2),ve([ep(JK)],sh.prototype,"strokeWidth",2),ve([ep($ve)],sh.prototype,"strokeOpacity",2),ve([ep(Zve)],sh.prototype,"lineDash",2),ve([ep(JK)],sh.prototype,"lineDashOffset",2),ve([ep(Xve)],sh.prototype,"rotation",2),ve([ep(R5)],sh.prototype,"marker",2),ve([ep(R5)],sh.prototype,"label",2),ve([ep(R5)],sh.prototype,"tooltip",2),ve([ep(qve)],sh.prototype,"connectMissingData",2);var{ChartAxisDirection:Dy,PolarAxis:Qve,SeriesNodePickMode:eq,valueProperty:tq,fixNumericExtent:Jve,seriesLabelFadeInAnimation:eye,markerFadeInAnimation:tye,resetMarkerFn:iye,animationValidation:nye,computeMarkerFocusBounds:aye,isFiniteNumber:iq,extent:oye,isNumberEqual:nq,createDatumId:rye,BBox:sye,Group:lye,Path:cye,PointerEvents:dye,Selection:aq,Text:uye,getMarker:hye}=hP._ModuleSupport,gye=class extends hP._ModuleSupport.SeriesNodeEvent{constructor(e,t,n,a){super(e,t,n,a),this.angleKey=a.properties.angleKey,this.radiusKey=a.properties.radiusKey}},P5=class extends hP._ModuleSupport.PolarSeries{constructor(e){super({moduleCtx:e,useLabelLayer:!0,pickModes:[eq.NEAREST_NODE,eq.EXACT_SHAPE_MATCH],canHaveAxes:!0,animationResetFns:{item:iye}}),this.clipFocusBox=!1,this.properties=new sh,this.NodeEvent=gye,this.lineGroup=this.contentGroup.appendChild(new lye({name:"radar-line",zIndex:hP._ModuleSupport.SeriesZIndexMap.ANY_CONTENT})),this.lineSelection=aq.select(this.lineGroup,cye),this.resetInvalidToZero=!1,this.circleCache={r:0,cx:0,cy:0}}nodeFactory(){let{shape:e}=this.properties.marker,t=hye(e);return new t}setSeriesIndex(e){return super.setSeriesIndex(e)?(this.lineGroup.zIndex=[hP._ModuleSupport.SeriesZIndexMap.ANY_CONTENT,e,hP._ModuleSupport.SeriesContentZIndexMap.FOREGROUND,1],!0):!1}getSeriesDomain(e){let{dataModel:t,processedData:n}=this;if(!n||!t)return[];if(e===Dy.X)return t.getDomain(this,"angleValue","value",n);{let a=t.getDomain(this,"radiusValue","value",n),h=oye(a.length===0?a:[0].concat(a));return Jve(h)}}async processData(e){var E,L;if(!this.properties.isValid())return;let{angleKey:t,radiusKey:n}=this.properties,a=[];this.ctx.animationManager.isSkipped()||a.push(nye());let h=(E=this.axes[Dy.Y])==null?void 0:E.scale.type,S=(L=this.axes[Dy.X])==null?void 0:L.scale.type;await this.requestDataModel(e,this.data,{props:[tq(t,S,{id:"angleValue"}),tq(n,h,{id:"radiusValue",invalidValue:void 0}),...a]}),this.animationState.transition("updateData")}didCircleChange(){let e=this.radius,t=this.centerX,n=this.centerY,a=this.circleCache;return e===a.r&&t===a.cx&&n===a.cy?!1:(this.circleCache={r:e,cx:t,cy:n},!0)}getAxisInnerRadius(){let e=this.axes[Dy.Y];return e instanceof Qve?this.radius*e.innerRadiusRatio:0}maybeRefreshNodeData(){var n;if(!this.didCircleChange()&&!this.nodeDataRefresh)return;let{nodeData:t=[]}=(n=this.createNodeData())!=null?n:{};this.nodeData=t,this.nodeDataRefresh=!1}createNodeData(){var re,ce;let{processedData:e,dataModel:t}=this;if(!e||!t||e.rawData.length===0||!this.properties.isValid())return;let{angleKey:n,radiusKey:a,angleName:h,radiusName:S,marker:E,label:L}=this.properties,_=(re=this.axes[Dy.X])==null?void 0:re.scale,N=(ce=this.axes[Dy.Y])==null?void 0:ce.scale;if(!_||!N)return;let V=t.resolveColumnById(this,"angleValue",e),q=t.resolveColumnById(this,"radiusValue",e),Y=this.getAxisInnerRadius(),J=e.rawData.map((he,me)=>{let we=V[me],Me=q[me],be=_.convert(we),Le=this.radius+Y-N.convert(Me),Fe=Math.cos(be),je=Math.sin(be),Xe=Fe*Le,nt=je*Le,lt;if(L.enabled){let ot=this.getLabelText(L,{value:Me,datum:he,angleKey:n,radiusKey:a,angleName:h,radiusName:S});if(ot){let vt="right";nq(Fe,0)?vt="center":Fe>0&&(vt="left");let gt="bottom";nq(je,0)?gt="middle":je>0&&(gt="top"),lt={x:Xe+Fe*E.size,y:nt+je*E.size,text:ot,textAlign:vt,textBaseline:gt}}}return{series:this,datum:he,datumIndex:me,index:me,point:{x:Xe,y:nt,size:E.size},midPoint:{x:Xe,y:nt},label:lt,angleValue:we,radiusValue:Me,missing:!iq(be)||!iq(Le)}});return{itemId:a,nodeData:J,labelData:J}}update({seriesRect:e}){var h,S;let t=this.checkResize(e),n=!this.ctx.animationManager.isSkipped(),{series:a}=(S=(h=this.ctx.highlightManager)==null?void 0:h.getActiveHighlight())!=null?S:{};this.highlightGroup.visible=(n||this.visible)&&a===this,this.maybeRefreshNodeData(),this.contentGroup.translationX=this.centerX,this.contentGroup.translationY=this.centerY,this.highlightGroup.translationX=this.centerX,this.highlightGroup.translationY=this.centerY,this.labelGroup&&(this.labelGroup.translationX=this.centerX,this.labelGroup.translationY=this.centerY),this.updatePathSelections(),this.updateMarkerSelection(),this.updateMarkers(this.itemSelection,!1),this.updateMarkers(this.highlightSelection,!0),this.updateLabels(),t&&this.animationState.transition("resize"),this.animationState.transition("update")}updatePathSelections(){let e=this.visible?[!0]:[];this.lineSelection.update(e)}updateMarkerSelection(){this.properties.marker.isDirty()&&(this.itemSelection.clear(),this.itemSelection.cleanup(),this.itemSelection=aq.select(this.itemGroup,()=>this.nodeFactory(),!1)),this.itemSelection.update(this.properties.marker.enabled?this.nodeData:[])}getMarkerFill(e){var t;return(t=e==null?void 0:e.fill)!=null?t:this.properties.marker.fill}getMarkerItemBaseStyle(e){var S,E,L,_,N;let{properties:t}=this,{marker:n}=t,a=e?t.highlightStyle.item:void 0,h=this.getStrokeWidth(n.strokeWidth);return{size:n.size,fill:(S=a==null?void 0:a.fill)!=null?S:n.fill,fillOpacity:(E=a==null?void 0:a.fillOpacity)!=null?E:n.fillOpacity,stroke:(L=a==null?void 0:a.stroke)!=null?L:n.stroke,strokeWidth:(_=a==null?void 0:a.strokeWidth)!=null?_:h,strokeOpacity:(N=a==null?void 0:a.strokeOpacity)!=null?N:n.strokeOpacity}}getMarkerItemStyleOverrides(e,t,n,a){let{id:h,properties:S}=this,{angleKey:E,radiusKey:L,marker:_}=S,{itemStyler:N}=_;if(N!=null)return this.cachedDatumCallback(rye(e,a?"highlight":"node"),()=>N(pe({seriesId:h,datum:t,angleKey:E,radiusKey:L,highlighted:a},n)))}updateMarkers(e,t){var E;let{visible:n}=this,{marker:a}=this.properties,h=[];if(n&&a.shape&&a.enabled)if(t){let L=(E=this.ctx.highlightManager)==null?void 0:E.getActiveHighlight();L!=null&&L.datum&&(h=[L])}else h=this.nodeData;let S=this.getMarkerItemBaseStyle(t);e.update(h).each((L,_)=>{var ce,he,me,we,Me,be;let{datum:N,datumIndex:V,point:q}=_,Y=this.getMarkerItemStyleOverrides(String(V),N,S,!1);L.fill=(ce=Y==null?void 0:Y.fill)!=null?ce:S.fill,L.stroke=(he=Y==null?void 0:Y.stroke)!=null?he:S.stroke,L.strokeWidth=(me=Y==null?void 0:Y.strokeWidth)!=null?me:S.strokeWidth,L.fillOpacity=(we=Y==null?void 0:Y.fillOpacity)!=null?we:S.fillOpacity,L.strokeOpacity=(Me=Y==null?void 0:Y.strokeOpacity)!=null?Me:S.strokeOpacity,L.size=(be=Y==null?void 0:Y.size)!=null?be:S.size;let{x:J,y:re}=q;L.x=J,L.y=re,L.visible=n&&L.size>0&&!isNaN(J)&&!isNaN(re)})}updateLabels(){let{label:e}=this.properties;this.labelSelection.update(this.nodeData).each((t,n)=>{e.enabled&&n.label?(t.x=n.label.x,t.y=n.label.y,t.fill=e.color,t.fontFamily=e.fontFamily,t.fontSize=e.fontSize,t.fontStyle=e.fontStyle,t.fontWeight=e.fontWeight,t.text=n.label.text,t.textAlign=n.label.textAlign,t.textBaseline=n.label.textBaseline,t.visible=!0):t.visible=!1})}getTooltipContent(e){let{id:t,dataModel:n,processedData:a,axes:h,properties:S}=this,{angleKey:E,angleName:L,radiusKey:_,radiusName:N,tooltip:V}=S,q=h[Dy.X],Y=h[Dy.Y];if(!n||!a||a.rawData.length===0||!q||!Y)return;let{datumIndex:J}=e,re=a.rawData[J],ce=n.resolveColumnById(this,"angleValue",a)[J],he=n.resolveColumnById(this,"radiusValue",a)[J];if(ce==null)return;let me=this.getMarkerItemBaseStyle(!1);return Object.assign(me,this.getMarkerItemStyleOverrides(String(J),J,me,!1)),V.formatTooltip({heading:q.formatDatum(ce),symbol:this.legendItemSymbol(),data:[{label:N,fallbackLabel:_,value:Y.formatDatum(he)}]},pe({seriesId:t,datum:re,title:L,angleKey:E,radiusKey:_,angleName:L,radiusName:N},me))}legendItemSymbol(){var S,E,L,_,N,V,q,Y,J;let{stroke:e,strokeWidth:t,strokeOpacity:n,lineDash:a,marker:h}=this.properties;return{marker:{shape:h.shape,fill:(L=(E=(S=this.getMarkerFill())!=null?S:h.stroke)!=null?E:e)!=null?L:"rgba(0, 0, 0, 0)",stroke:(N=(_=h.stroke)!=null?_:e)!=null?N:"rgba(0, 0, 0, 0)",fillOpacity:(V=h.fillOpacity)!=null?V:1,strokeOpacity:(Y=(q=h.strokeOpacity)!=null?q:n)!=null?Y:1,strokeWidth:(J=h.strokeWidth)!=null?J:0,enabled:h.enabled||t<=0},line:{stroke:e,strokeOpacity:n,strokeWidth:t,lineDash:a}}}getLegendData(e){if(!this.properties.isValid()||e!=="category")return[];let{id:t,ctx:{legendManager:n},visible:a}=this,{radiusKey:h,radiusName:S,showInLegend:E}=this.properties;return[{legendType:"category",id:t,itemId:h,seriesId:t,enabled:a&&n.getItemEnabled({seriesId:t,itemId:h}),label:{text:S!=null?S:h},symbol:this.legendItemSymbol(),hideInLegend:!E}]}pickNodeClosestDatum(e){var V,q;let{nodeData:t,centerX:n,centerY:a}=this,{x:h,y:S}=e,E=this.radius;if(Math.sqrt((h-n)**2+(S-a)**2)>E+this.properties.marker.size)return;let _=1/0,N;for(let Y of t){let{point:{x:J=NaN,y:re=NaN}={}}=Y;if(isNaN(J)||isNaN(re))continue;let ce=Math.sqrt((e.x-J-n)**2+(e.y-re-a)**2);ce<_&&(_=ce,N=Y)}if(N){let Y=Math.max(_-((q=(V=N.point)==null?void 0:V.size)!=null?q:0),0);return{datum:N,distance:Y}}}computeLabelsBBox(){let{label:e}=this.properties;this.maybeRefreshNodeData();let t=[],n=new uye;return this.nodeData.forEach(a=>{if(!e.enabled||!a.label)return;n.text=a.label.text,n.x=a.label.x,n.y=a.label.y,n.setFont(e),n.setAlign(a.label);let h=n.getBBox();t.push(h)}),t.length===0?null:sye.merge(t)}getLineNode(){var e;return(e=this.lineSelection)==null?void 0:e.at(0)}beforePathAnimation(){let e=this.getLineNode();e&&(e.fill=void 0,e.lineJoin="round",e.lineCap="round",e.pointerEvents=dye.None,e.stroke=this.properties.stroke,e.strokeWidth=this.getStrokeWidth(this.properties.strokeWidth),e.strokeOpacity=this.properties.strokeOpacity,e.lineDash=this.properties.lineDash,e.lineDashOffset=this.properties.lineDashOffset)}getLinePoints(){let{nodeData:e,resetInvalidToZero:t}=this,{connectMissingData:n}=this.properties;if(e.length===0)return[];let a=this.axes[Dy.Y],h=this.axes[Dy.X],S=h==null?void 0:h.isReversed(),L=(a==null?void 0:a.isReversed())&&!S?[...e].reverse():e,_=[],N=!1,V;return L.forEach((q,Y)=>{let{x:J,y:re}=q.point,ce=isNaN(J)||isNaN(re);ce||V!=null||(V=q),ce&&!n&&(J=0,re=0);let he=Y===0||!t&&!n&&(ce||N);_.push({x:J,y:re,moveTo:he}),N=ce}),V!==void 0&&_.push({x:V.point.x,y:V.point.y,moveTo:!1}),_}animateSinglePath(e,t,n){let{path:a}=e;a.clear(!0);let h=this.getAxisInnerRadius(),S=this.axes[Dy.Y],L=(S==null?void 0:S.isReversed())?this.radius+h-(S==null?void 0:S.scale.convert(0)):h;t.forEach(_=>{let{x:N,y:V,arc:q,radius:Y=0,startAngle:J=0,endAngle:re=0,moveTo:ce}=_,he=Math.atan2(V,N),me=L*Math.cos(he),we=L*Math.sin(he),Me=n,be=me*(1-Me)+N*Me,Le=we*(1-Me)+V*Me;q?a.arc(N,V,Y,J,re):ce?a.moveTo(be,Le):a.lineTo(be,Le)}),e.checkPathDirty()}animatePaths(e){let t=this.getLinePoints(),n=this.getLineNode();n&&this.animateSinglePath(n,t,e)}animateEmptyUpdateReady(){let{itemSelection:e,labelSelection:t}=this,{animationManager:n}=this.ctx;this.beforePathAnimation(),n.animate({id:`${this.id}_'path`,groupId:this.id,from:0,to:1,phase:"initial",collapsable:!1,onUpdate:a=>this.animatePaths(a),onStop:()=>this.animatePaths(1)}),tye(this,n,"added",e),eye(this,"labels",n,t)}animateWaitingUpdateReady(e){super.animateWaitingUpdateReady(e),this.resetPaths()}animateReadyResize(e){super.animateReadyResize(e),this.resetPaths()}resetPaths(){let e=this.getLineNode();if(e){let{path:t}=e,n=this.getLinePoints();e.fill=void 0,e.stroke=this.properties.stroke,e.strokeWidth=this.getStrokeWidth(this.properties.strokeWidth),e.strokeOpacity=this.properties.strokeOpacity,e.lineDash=this.properties.lineDash,e.lineDashOffset=this.properties.lineDashOffset,t.clear(!0);for(let{x:a,y:h,moveTo:S}of n)S?t.moveTo(a,h):t.lineTo(a,h);e.checkPathDirty()}}getFormattedMarkerStyle(e){let{angleKey:t,radiusKey:n}=this.properties;return this.getMarkerStyle(this.properties.marker,{datum:e,angleKey:t,radiusKey:n,highlighted:!0})}computeFocusBounds(e){let t=aye(this,e),{translationX:n,translationY:a}=this.contentGroup;return t==null||t.translate(n,a),t}};P5.className="RadarSeries";var pye=(xt(),D(wt)),{RATIO:mye,COLOR_STRING:fye,Validate:oq}=pye._ModuleSupport,L5=class extends sh{constructor(){super(...arguments),this.fill="black",this.fillOpacity=1}};ve([oq(fye)],L5.prototype,"fill",2),ve([oq(mye)],L5.prototype,"fillOpacity",2);var{Group:vye,Path:yye,PointerEvents:bye,Selection:Cye,ChartAxisDirection:rq}=QK._ModuleSupport,O5=class extends P5{constructor(e){super(e),this.properties=new L5,this.resetInvalidToZero=!0;let t=new vye;this.contentGroup.append(t),this.areaSelection=Cye.select(t,yye)}updatePathSelections(){let e=this.visible?[!0]:[];this.areaSelection.update(e),super.updatePathSelections()}getAreaNode(){return this.areaSelection.at(0)}getMarkerFill(e){var t,n;return(n=(t=e==null?void 0:e.fill)!=null?t:this.properties.marker.fill)!=null?n:this.properties.fill}beforePathAnimation(){super.beforePathAnimation();let e=this.getAreaNode();e.fill=this.properties.fill,e.fillOpacity=this.properties.fillOpacity,e.pointerEvents=bye.None,e.stroke=void 0}animatePaths(e){super.animatePaths(e),this.animateSinglePath(this.getAreaNode(),this.getAreaPoints(),e)}getAreaPoints(){var E,L;let e=this.getLinePoints(),t=_=>{let N=this.axes[_];return N instanceof QK._ModuleSupport.PolarAxis?N:void 0},n=t(rq.Y),a=t(rq.X);if(!(n==null?void 0:n.isReversed()))return e;let S=(L=(E=a==null?void 0:a.getAxisLinePoints())==null?void 0:E.points)!=null?L:[];return e.concat(...S)}resetPaths(){super.resetPaths();let e=this.getAreaNode();if(e){let{path:t}=e,n=this.getAreaPoints();e.fill=this.properties.fill,e.fillOpacity=this.properties.fillOpacity,e.stroke=void 0,e.lineDash=this.properties.lineDash,e.lineDashOffset=this.properties.lineDashOffset,e.lineJoin=e.lineCap="round",t.clear(!0),n.forEach(({x:a,y:h,moveTo:S,arc:E,radius:L=0,startAngle:_=0,endAngle:N=0})=>{E?t.arc(a,h,L,_,N):S?t.moveTo(a,h):t.lineTo(a,h)}),t.closePath(),e.checkPathDirty()}}};O5.className="RadarAreaSeries",O5.type="radar-area";var{markerPaletteFactory:Sye,ThemeConstants:{POLAR_AXIS_TYPE:sq}}=Fve._ModuleSupport,wye={type:"series",optionsKey:"series[]",packageType:"enterprise",chartTypes:["polar"],identifier:"radar-area",moduleFactory:e=>new O5(e),tooltipDefaults:{range:"nearest"},defaultAxes:[{type:sq.ANGLE_CATEGORY},{type:sq.RADIUS_NUMBER}],themeTemplate:jve,paletteFactory:e=>{let{marker:t}=Sye(e);return{stroke:t.stroke,fill:t.fill,marker:t}}},xye=(xt(),D(wt)),_5=class extends P5{updatePathSelections(){this.lineSelection.update(this.visible?[!0]:[])}};_5.className="RadarLineSeries",_5.type="radar-line";var{POLAR_AXIS_TYPE:lq}=xye._ModuleSupport.ThemeConstants,Mye={type:"series",optionsKey:"series[]",packageType:"enterprise",chartTypes:["polar"],identifier:"radar-line",moduleFactory:e=>new _5(e),tooltipDefaults:{range:"nearest"},defaultAxes:[{type:lq.ANGLE_CATEGORY},{type:lq.RADIUS_NUMBER}],themeTemplate:Gve,paletteFactory:({takeColors:e})=>{let{fills:[t],strokes:[n]}=e(1);return{stroke:t,marker:{fill:t,stroke:n}}}},kye=(xt(),D(wt)),F5=(xt(),D(wt)),Aye=(xt(),D(wt)),{SeriesProperties:Dye,SeriesTooltip:Eye,Validate:Ad,COLOR_STRING:cq,NUMBER:dq,FUNCTION:Iye,LINE_DASH:Tye,OBJECT:uq,POSITIVE_NUMBER:N5,RATIO:hq,STRING:rO,Label:Rye}=Aye._ModuleSupport,$c=class extends Dye{constructor(){super(...arguments),this.fill="black",this.fillOpacity=1,this.stroke="black",this.strokeWidth=1,this.strokeOpacity=1,this.lineDash=[0],this.lineDashOffset=0,this.cornerRadius=0,this.rotation=0,this.label=new Rye,this.tooltip=new Eye}};ve([Ad(rO)],$c.prototype,"angleKey",2),ve([Ad(rO)],$c.prototype,"radiusKey",2),ve([Ad(rO,{optional:!0})],$c.prototype,"angleName",2),ve([Ad(rO,{optional:!0})],$c.prototype,"radiusName",2),ve([Ad(cq)],$c.prototype,"fill",2),ve([Ad(hq)],$c.prototype,"fillOpacity",2),ve([Ad(cq)],$c.prototype,"stroke",2),ve([Ad(N5)],$c.prototype,"strokeWidth",2),ve([Ad(hq)],$c.prototype,"strokeOpacity",2),ve([Ad(Tye)],$c.prototype,"lineDash",2),ve([Ad(N5)],$c.prototype,"lineDashOffset",2),ve([Ad(N5)],$c.prototype,"cornerRadius",2),ve([Ad(Iye,{optional:!0})],$c.prototype,"itemStyler",2),ve([Ad(dq)],$c.prototype,"rotation",2),ve([Ad(rO,{optional:!0})],$c.prototype,"stackGroup",2),ve([Ad(dq,{optional:!0})],$c.prototype,"normalizedTo",2),ve([Ad(uq)],$c.prototype,"label",2),ve([Ad(uq)],$c.prototype,"tooltip",2);var Pye=(xt(),D(wt)),{SectorBox:gq,motion:Lye}=Pye._ModuleSupport;function Oye(e,t,n){if(n==="updated"){if(e.previousDatum==null||isNaN(e.previousDatum.innerRadius)||isNaN(e.previousDatum.outerRadius))return"added";if(isNaN(t.innerRadius)||isNaN(t.outerRadius))return"removed"}return n==="added"&&e.previousDatum!=null?"updated":n}function pq(e){return{toFn:(a,h,S)=>{let E,L,_,N,V;return S==="removed"?(E=e,L=e,_=h.innerRadius,N=h.outerRadius,V=new gq(E,L,_,N)):(E=h.startAngle,L=h.endAngle,_=isNaN(h.innerRadius)?a.innerRadius:h.innerRadius,N=isNaN(h.outerRadius)?a.outerRadius:h.outerRadius,V=h.clipSector),{startAngle:E,endAngle:L,innerRadius:_,outerRadius:N,clipSector:V}},fromFn:(a,h,S)=>{S=Oye(a,h,S);let E,L,_,N,V;S==="removed"||S==="updated"?(E=a.startAngle,L=a.endAngle,_=a.innerRadius,N=a.outerRadius,V=a.clipSector):(E=e,L=e,_=h.innerRadius,N=h.outerRadius),V!=null||(V=new gq(E,L,_,N));let q=Lye.NODE_UPDATE_STATE_TO_PHASE_MAPPING[S];return{startAngle:E,endAngle:L,innerRadius:_,outerRadius:N,clipSector:V,phase:q}}}}function _ye(e,t){return{centerX:0,centerY:0,innerRadius:t.innerRadius,outerRadius:t.outerRadius,startAngle:t.startAngle,endAngle:t.endAngle,clipSector:t.clipSector}}var{ChartAxisDirection:Gw,PolarAxis:Fye,diff:Nye,isDefined:zye,groupAccumulativeValueProperty:mq,keyProperty:Bye,normaliseGroupTo:Gye,valueProperty:jye,fixNumericExtent:Vye,resetLabelFn:Hye,seriesLabelFadeInAnimation:Wye,seriesLabelFadeOutAnimation:Uye,animationValidation:Kye,angleBetween:qye,createDatumId:fq,BandScale:Yye,Sector:Xye,SectorBox:Zye,motion:vq}=F5._ModuleSupport,$ye=class extends F5._ModuleSupport.SeriesNodeEvent{constructor(e,t,n,a){super(e,t,n,a),this.angleKey=a.properties.angleKey,this.radiusKey=a.properties.radiusKey}},z5=class extends F5._ModuleSupport.PolarSeries{constructor(e){super({moduleCtx:e,useLabelLayer:!0,canHaveAxes:!0,animationResetFns:{item:_ye,label:Hye}}),this.properties=new $c,this.NodeEvent=$ye,this.groupScale=new Yye,this.circleCache={r:0,cx:0,cy:0}}nodeFactory(){return new Xye}getSeriesDomain(e){let{dataModel:t,processedData:n}=this;if(!n||!t)return[];if(e===Gw.X){let a=t.getDomain(this,"angleValue-end","value",n),h=[a[0]>0?0:a[0],a[1]<0?0:a[1]];return Vye(h)}else return t.getDomain(this,"radiusValue","key",n)}async processData(e){var Y,J;let{visible:t}=this,{angleKey:n,radiusKey:a,normalizedTo:h}=this.properties,S=!this.ctx.animationManager.isSkipped();if(!this.properties.isValid())return;let E=this.getStackId(),L=`${E}-trailing`,_=[];zye(h)&&_.push(Gye([E,L],Math.abs(h),"range")),S&&(this.processedData&&_.push(Nye(this.id,this.processedData)),_.push(Kye()));let N=t||!S?{}:{forceValue:0},V=(Y=this.axes[Gw.Y])==null?void 0:Y.scale.type,q=(J=this.axes[Gw.X])==null?void 0:J.scale.type;await this.requestDataModel(e,this.data,{props:[Bye(a,V,{id:"radiusValue"}),jye(n,q,pe({id:"angleValue-raw",invalidValue:null},N)),...mq(n,"normal","current",pe({id:"angleValue-end",rangeId:"angleValue-range",invalidValue:null,groupId:E,separateNegative:!0},N),q),...mq(n,"trailing","current",pe({id:"angleValue-start",invalidValue:null,groupId:L,separateNegative:!0},N),q),..._]}),this.animationState.transition("updateData")}didCircleChange(){let e=this.radius,t=this.centerX,n=this.centerY,a=this.circleCache;return e===a.r&&t===a.cx&&n===a.cy?!1:(this.circleCache={r:e,cx:t,cy:n},!0)}maybeRefreshNodeData(){var n;if(!this.didCircleChange()&&!this.nodeDataRefresh)return;let{nodeData:t=[]}=(n=this.createNodeData())!=null?n:{};this.nodeData=t,this.nodeDataRefresh=!1}getAxisInnerRadius(){let e=this.axes[Gw.Y];return e instanceof Fye?this.radius*e.innerRadiusRatio:0}createNodeData(){var At;let{processedData:e,dataModel:t}=this;if(!t||!e||e.type!=="ungrouped"||e.rawData.length===0||!this.properties.isValid())return;let n=this.axes[Gw.X],a=this.axes[Gw.Y],h=n==null?void 0:n.scale,S=a==null?void 0:a.scale;if(!h||!S)return;let E=t.resolveKeysById(this,"radiusValue",e),L=t.resolveColumnById(this,"angleValue-start",e),_=t.resolveColumnById(this,"angleValue-end",e),N=t.resolveColumnById(this,"angleValue-raw",e),V=t.resolveProcessedDataIndexById(this,"angleValue-range"),q=0;a instanceof hE&&(q=a.groupPaddingInner);let{groupScale:Y}=this,{index:J,visibleGroupCount:re}=this.ctx.seriesStateManager.getVisiblePeerGroupIndex(this);Y.domain=Array.from({length:re}).map((Rt,It)=>String(It)),Y.range=[0,Math.abs((At=S.bandwidth)!=null?At:0)],Y.paddingInner=re>1?q:0;let ce=Y.bandwidth>=1?Y.bandwidth:Y.rawBandwidth,he=n.isReversed(),me=a.isReversed(),we=me?this.radius:this.getAxisInnerRadius(),be=(me?this.getAxisInnerRadius():this.radius)+we,{angleKey:Le,radiusKey:Fe,angleName:je,radiusName:Xe,label:nt}=this.properties,lt=(Rt,It,Dt,jt)=>{let Nt=this.getLabelText(nt,{value:It,datum:Rt,angleKey:Le,radiusKey:Fe,angleName:je,radiusName:Xe});if(Nt)return{x:Dt,y:jt,text:Nt,textAlign:"center",textBaseline:"middle"}},ot=[],vt={itemId:Fe,nodeData:ot,labelData:ot};if(!this.visible)return vt;let{rawData:gt,aggregation:bt}=e;return gt.forEach((Rt,It)=>{let Dt=E[It];if(Dt==null)return;let jt=N[It],Nt=L[It],zt=_[It],Ut=jt>=0&&!Object.is(jt,-0),Wt=bt[It][V][Ut?1:0],ci=Ut===he,li=h.convert(Nt,!0),oi=h.convert(zt,!0),vi=h.convert(0,!0),gi=h.convert(Wt,!0);ci&&([vi,gi]=[gi,vi],[li,oi]=[oi,li]);let ki=be-S.convert(Dt)+Y.convert(String(J)),si=ki+ce,di=(ki+si)/2,Ii=li+qye(li,oi)/2,bi=Math.cos(Ii)*di,wi=Math.sin(Ii)*di,Li=this.properties.label.enabled?lt(Rt,jt,bi,wi):void 0,Ln=new Zye(li,oi,ki,si);ot.push({series:this,datum:Rt,datumIndex:It,point:{x:bi,y:wi,size:0},midPoint:{x:bi,y:wi},label:Li,angleValue:jt,radiusValue:Dt,innerRadius:ki,outerRadius:si,startAngle:vi,endAngle:gi,clipSector:Ln,reversed:ci,index:It})}),vt}update({seriesRect:e}){let t=this.checkResize(e);this.maybeRefreshNodeData(),this.contentGroup.translationX=this.centerX,this.contentGroup.translationY=this.centerY,this.highlightGroup.translationX=this.centerX,this.highlightGroup.translationY=this.centerY,this.labelGroup&&(this.labelGroup.translationX=this.centerX,this.labelGroup.translationY=this.centerY),this.updateSectorSelection(this.itemSelection,!1),this.updateSectorSelection(this.highlightSelection,!0),this.updateLabels(),t&&this.animationState.transition("resize"),this.animationState.transition("update")}getItemBaseStyle(e){var h,S,E,L,_,N,V;let{properties:t}=this,n=e?t.highlightStyle.item:void 0,a=this.getStrokeWidth(t.strokeWidth);return{fill:(h=n==null?void 0:n.fill)!=null?h:t.fill,fillOpacity:(S=n==null?void 0:n.fillOpacity)!=null?S:t.fillOpacity,stroke:(E=n==null?void 0:n.stroke)!=null?E:t.stroke,strokeWidth:(L=n==null?void 0:n.strokeWidth)!=null?L:a,strokeOpacity:(_=n==null?void 0:n.strokeOpacity)!=null?_:t.strokeOpacity,lineDash:(N=n==null?void 0:n.lineDash)!=null?N:t.lineDash,lineDashOffset:(V=n==null?void 0:n.lineDashOffset)!=null?V:t.lineDashOffset,cornerRadius:t.cornerRadius}}getItemStyleOverrides(e,t,n,a){let{id:h,properties:S}=this,{angleKey:E,radiusKey:L,itemStyler:_}=S;if(_!=null)return this.cachedDatumCallback(fq(e,a?"highlight":"node"),()=>_(pe({seriesId:h,datum:t,highlighted:a,angleKey:E,radiusKey:L},n)))}updateSectorSelection(e,t){var h;let n=[];if(t){let S=(h=this.ctx.highlightManager)==null?void 0:h.getActiveHighlight();S!=null&&S.datum&&S.series===this&&n.push(S)}else n=this.nodeData;let a=this.getItemBaseStyle(t);e.update(n,void 0,S=>this.getDatumId(S)).each((S,E)=>{var J,re,ce,he,me,we,Me,be;let{datum:L,datumIndex:_}=E,N=this.getItemStyleOverrides(String(_),L,a,t),V=(J=N==null?void 0:N.stroke)!=null?J:a.stroke,q=(re=N==null?void 0:N.strokeWidth)!=null?re:a.strokeWidth,Y=(ce=N==null?void 0:N.cornerRadius)!=null?ce:a.cornerRadius;S.fill=(he=N==null?void 0:N.fill)!=null?he:a.fill,S.fillOpacity=(me=N==null?void 0:N.fillOpacity)!=null?me:a.fillOpacity,S.stroke=V,S.strokeWidth=q,S.strokeOpacity=(we=N==null?void 0:N.strokeOpacity)!=null?we:a.strokeOpacity,S.lineDash=(Me=N==null?void 0:N.lineDash)!=null?Me:a.lineDash,S.lineDashOffset=(be=N==null?void 0:N.lineDashOffset)!=null?be:a.lineDashOffset,S.lineJoin="round",S.inset=V!=null?q/2:0,S.startInnerCornerRadius=L.reversed?Y:0,S.startOuterCornerRadius=L.reversed?Y:0,S.endInnerCornerRadius=L.reversed?0:Y,S.endOuterCornerRadius=L.reversed?0:Y,t&&(S.startAngle=E.startAngle,S.endAngle=E.endAngle,S.clipSector=E.clipSector,S.innerRadius=E.innerRadius,S.outerRadius=E.outerRadius)})}updateLabels(){let{label:e}=this.properties;this.labelSelection.update(this.nodeData).each((t,n)=>{e.enabled&&n.label?(t.x=n.label.x,t.y=n.label.y,t.fill=e.color,t.fontFamily=e.fontFamily,t.fontSize=e.fontSize,t.fontStyle=e.fontStyle,t.fontWeight=e.fontWeight,t.text=n.label.text,t.textAlign=n.label.textAlign,t.textBaseline=n.label.textBaseline,t.visible=!0):t.visible=!1})}getBarTransitionFunctions(){var h;let e=(h=this.axes[Gw.X])==null?void 0:h.scale,t=0;if(!e)return pq(t);let n=Math.min(e.domain[0],e.domain[1]),a=Math.max(e.domain[0],e.domain[1]);return n<=0&&a>=0&&(t=e.convert(0)),pq(t)}animateEmptyUpdateReady(){let{labelSelection:e}=this,t=this.getBarTransitionFunctions();vq.fromToMotion(this.id,"datums",this.ctx.animationManager,[this.itemSelection],t),Wye(this,"labels",this.ctx.animationManager,e)}animateClearingUpdateEmpty(){let{itemSelection:e}=this,{animationManager:t}=this.ctx,n=this.getBarTransitionFunctions();vq.fromToMotion(this.id,"datums",t,[e],n),Uye(this,"labels",t,this.labelSelection)}getTooltipContent(e){let{id:t,dataModel:n,processedData:a,axes:h,properties:S}=this,{angleKey:E,angleName:L,radiusKey:_,radiusName:N,tooltip:V}=S,q=h[Gw.X],Y=h[Gw.Y];if(!n||!a||a.rawData.length===0||!q||!Y)return;let{datumIndex:J}=e,re=a.rawData[J],ce=n.resolveKeysById(this,"radiusValue",a)[J],he=n.resolveColumnById(this,"angleValue-raw",a)[J];if(ce==null)return;let me=this.getItemBaseStyle(!1);return Object.assign(me,this.getItemStyleOverrides(String(J),J,me,!1)),V.formatTooltip({heading:Y.formatDatum(ce),symbol:this.legendItemSymbol(),data:[{label:L,fallbackLabel:E,value:q.formatDatum(he)}]},pe({seriesId:t,datum:re,title:L,angleKey:E,angleName:L,radiusKey:_,radiusName:N},me))}pickNodeClosestDatum(e){return this.pickNodeNearestDistantObject(e,this.itemSelection.nodes())}legendItemSymbol(){let{fill:e,stroke:t,fillOpacity:n,strokeOpacity:a,strokeWidth:h}=this.properties;return{marker:{fill:e!=null?e:"rgba(0, 0, 0, 0)",stroke:t!=null?t:"rgba(0, 0, 0, 0)",fillOpacity:n!=null?n:1,strokeOpacity:a!=null?a:1,strokeWidth:h}}}getLegendData(e){if(!this.properties.isValid()||e!=="category")return[];let{id:t,visible:n}=this,{angleKey:a,angleName:h,showInLegend:S}=this.properties;return[{legendType:"category",id:t,itemId:a,seriesId:t,enabled:n,label:{text:h!=null?h:a},symbol:this.legendItemSymbol(),hideInLegend:!S}]}getDatumId(e){return fq(e.radiusValue)}computeLabelsBBox(){return null}getStackId(){var t,n;return`radialBar-stack-${(n=(t=this.seriesGrouping)==null?void 0:t.groupIndex)!=null?n:this.id}-xValues`}};z5.className="RadialBarSeries",z5.type="radial-bar";var Qye=(xt(),D(wt)),{ThemeSymbols:{DEFAULT_FONT_FAMILY:Jye,DEFAULT_INVERTED_LABEL_COLOUR:ebe},ThemeConstants:{POLAR_AXIS_TYPE:tbe}}=Qye._ModuleSupport,ibe={series:{strokeWidth:0,label:{enabled:!1,fontSize:12,fontFamily:Jye,color:ebe}},axes:{[tbe.RADIUS_CATEGORY]:{innerRadiusRatio:.2,groupPaddingInner:.2,paddingInner:.2,paddingOuter:.1}}},{POLAR_AXIS_TYPE:yq}=kye._ModuleSupport.ThemeConstants,nbe={type:"series",optionsKey:"series[]",packageType:"enterprise",chartTypes:["polar"],identifier:"radial-bar",moduleFactory:e=>new z5(e),tooltipDefaults:{range:"exact"},defaultAxes:[{type:yq.ANGLE_NUMBER},{type:yq.RADIUS_CATEGORY}],themeTemplate:ibe,paletteFactory:({takeColors:e})=>{let{fills:[t],strokes:[n]}=e(1);return{fill:t,stroke:n}},stackable:!0,groupable:!0},abe=(xt(),D(wt)),obe=(xt(),D(wt)),rbe=(xt(),D(wt)),{Validate:bq,RATIO:Cq}=rbe._ModuleSupport,B5=class extends bc{};ve([bq(Cq,{optional:!0})],B5.prototype,"columnWidthRatio",2),ve([bq(Cq,{optional:!0})],B5.prototype,"maxColumnWidthRatio",2);var{ChartAxisDirection:sbe,PolarAxis:lbe,RadialColumnShape:cbe,getRadialColumnWidth:dbe}=obe._ModuleSupport,G5=class extends IK{constructor(e){super(e,{animationResetFns:{item:tve}}),this.properties=new B5}getStackId(){var t,n;return`radarColumn-stack-${(n=(t=this.seriesGrouping)==null?void 0:t.groupIndex)!=null?n:this.id}-yValues`}nodeFactory(){return new cbe}getColumnTransitionFunctions(){let e=this.isRadiusAxisReversed()?this.radius:this.getAxisInnerRadius();return eve(e)}isRadiusAxisCircle(){let e=this.axes[sbe.Y];return e instanceof lbe?e.shape==="circle":!1}updateItemPath(e,t,n){e.isBeveled=this.isRadiusAxisCircle(),e.isRadiusAxisReversed=this.isRadiusAxisReversed(),n&&(e.innerRadius=t.innerRadius,e.outerRadius=t.outerRadius,e.startAngle=t.startAngle,e.endAngle=t.endAngle,e.columnWidth=t.columnWidth,e.axisInnerRadius=t.axisInnerRadius,e.axisOuterRadius=t.axisOuterRadius)}getColumnWidth(e,t){let{columnWidthRatio:n=.5,maxColumnWidthRatio:a=.5}=this.properties;return dbe(e,t,this.radius,n,a)}};G5.className="RadialColumnSeries",G5.type="radial-column";var ube=(xt(),D(wt)),{ThemeSymbols:{DEFAULT_FONT_FAMILY:hbe,DEFAULT_LABEL_COLOUR:gbe},ThemeConstants:{POLAR_AXIS_TYPE:Sq,POLAR_AXIS_SHAPE:wq}}=ube._ModuleSupport,pbe={series:{columnWidthRatio:.5,maxColumnWidthRatio:.5,strokeWidth:0,label:{enabled:!1,fontSize:12,fontFamily:hbe,color:gbe}},axes:{[Sq.ANGLE_CATEGORY]:{shape:wq.CIRCLE,groupPaddingInner:0,paddingInner:0,label:{spacing:10}},[Sq.RADIUS_NUMBER]:{shape:wq.CIRCLE,innerRadiusRatio:.5}}},{POLAR_AXIS_TYPE:xq}=abe._ModuleSupport.ThemeConstants,mbe={type:"series",optionsKey:"series[]",packageType:"enterprise",chartTypes:["polar"],identifier:"radial-column",moduleFactory:e=>new G5(e),tooltipDefaults:{range:"exact"},defaultAxes:[{type:xq.ANGLE_CATEGORY},{type:xq.RADIUS_NUMBER}],themeTemplate:pbe,paletteFactory:({takeColors:e})=>{let{fills:[t],strokes:[n]}=e(1);return{fill:t,stroke:n}},stackable:!0,groupable:!0},fbe=(xt(),D(wt)),sO=(xt(),D(wt)),vbe=(xt(),D(wt)),{SvgPath:ybe,Rotatable:bbe,Translatable:Cbe,Scalable:Sbe}=vbe._ModuleSupport,j5=class extends bbe(Sbe(Cbe(ybe))){constructor(){super(...arguments),this.scalingCenterX=.5,this.scalingCenterY=.5,this.rotationCenterX=.5,this.rotationCenterY=.5}};j5.defaultPathData="M0.50245 0.53745C0.481767 0.53745 0.465 0.520683 0.465 0.5C0.465 0.479317 0.481767 0.46255 0.50245 0.46255L1 0.500012L0.50245 0.53745Z";var wbe=(xt(),D(wt)),{BaseProperties:BN,SeriesTooltip:xbe,SeriesProperties:Mbe,PropertiesArray:V5,Validate:tn,BOOLEAN:Mq,COLOR_STRING:jw,COLOR_STRING_ARRAY:kbe,FUNCTION:Abe,LINE_DASH:GN,NUMBER:HE,OBJECT_ARRAY:H5,OBJECT:Vw,POSITIVE_NUMBER:Kf,RATIO:Ey,STRING:W5,UNION:Dbe,Logger:Ebe,Label:Ibe}=wbe._ModuleSupport,Tbe=Dbe(["inside","outside","middle"],"a placement"),kq=class extends Ibe{};ve([tn(HE,{optional:!0})],kq.prototype,"spacing",2);var pu=class extends BN{constructor(){super(...arguments),this.label=new kq}};ve([tn(W5,{optional:!0})],pu.prototype,"text",2),ve([tn(HE,{optional:!0})],pu.prototype,"value",2),ve([tn(M9,{optional:!0})],pu.prototype,"shape",2),ve([tn(Tbe,{optional:!0})],pu.prototype,"placement",2),ve([tn(HE,{optional:!0})],pu.prototype,"spacing",2),ve([tn(Kf,{optional:!0})],pu.prototype,"size",2),ve([tn(HE,{optional:!0})],pu.prototype,"rotation",2),ve([tn(jw,{optional:!0})],pu.prototype,"fill",2),ve([tn(Ey,{optional:!0})],pu.prototype,"fillOpacity",2),ve([tn(jw,{optional:!0})],pu.prototype,"stroke",2),ve([tn(Kf,{optional:!0})],pu.prototype,"strokeWidth",2),ve([tn(Ey,{optional:!0})],pu.prototype,"strokeOpacity",2),ve([tn(GN,{optional:!0})],pu.prototype,"lineDash",2),ve([tn(Kf,{optional:!0})],pu.prototype,"lineDashOffset",2),ve([tn(Vw)],pu.prototype,"label",2);var Iy=class extends BN{constructor(){super(...arguments),this.enabled=!0,this.fills=new V5(oP),this.fillMode="continuous",this.fillOpacity=1,this.stroke="black",this.strokeWidth=0,this.strokeOpacity=1,this.lineDash=[0],this.lineDashOffset=0}};ve([tn(Mq)],Iy.prototype,"enabled",2),ve([tn(H5)],Iy.prototype,"fills",2),ve([tn(fN)],Iy.prototype,"fillMode",2),ve([tn(jw,{optional:!0})],Iy.prototype,"fill",2),ve([tn(Ey)],Iy.prototype,"fillOpacity",2),ve([tn(jw,{optional:!0})],Iy.prototype,"stroke",2),ve([tn(Kf,{optional:!0})],Iy.prototype,"strokeWidth",2),ve([tn(Ey)],Iy.prototype,"strokeOpacity",2),ve([tn(GN)],Iy.prototype,"lineDash",2),ve([tn(Kf)],Iy.prototype,"lineDashOffset",2);var Ty=class extends BN{constructor(){super(...arguments),this.fills=new V5(oP),this.fillMode="continuous",this.fillOpacity=1,this.stroke="black",this.strokeWidth=0,this.strokeOpacity=1,this.lineDash=[0],this.lineDashOffset=0,this.defaultFill="black"}};ve([tn(H5)],Ty.prototype,"fills",2),ve([tn(fN)],Ty.prototype,"fillMode",2),ve([tn(jw,{optional:!0})],Ty.prototype,"fill",2),ve([tn(Ey)],Ty.prototype,"fillOpacity",2),ve([tn(jw)],Ty.prototype,"stroke",2),ve([tn(Kf)],Ty.prototype,"strokeWidth",2),ve([tn(Ey)],Ty.prototype,"strokeOpacity",2),ve([tn(GN)],Ty.prototype,"lineDash",2),ve([tn(Kf)],Ty.prototype,"lineDashOffset",2),ve([tn(jw)],Ty.prototype,"defaultFill",2);var Ry=class extends BN{constructor(){super(...arguments),this.enabled=!0,this.spacing=0,this.fill="black",this.fillOpacity=1,this.stroke="black",this.strokeWidth=0,this.strokeOpacity=1,this.lineDash=[0],this.lineDashOffset=0}};ve([tn(Mq)],Ry.prototype,"enabled",2),ve([tn(Ey,{optional:!0})],Ry.prototype,"radiusRatio",2),ve([tn(HE)],Ry.prototype,"spacing",2),ve([tn(jw)],Ry.prototype,"fill",2),ve([tn(Ey)],Ry.prototype,"fillOpacity",2),ve([tn(jw)],Ry.prototype,"stroke",2),ve([tn(Kf)],Ry.prototype,"strokeWidth",2),ve([tn(Ey)],Ry.prototype,"strokeOpacity",2),ve([tn(GN)],Ry.prototype,"lineDash",2),ve([tn(Kf)],Ry.prototype,"lineDashOffset",2);var Aq=class extends LC{};ve([tn(W5,{optional:!0})],Aq.prototype,"text",2);var Dq=class extends $2{};ve([tn(W5,{optional:!0})],Dq.prototype,"text",2);var Sc=class extends Mbe{constructor(){super(...arguments),this.segmentation=new eO,this.defaultColorRange=[],this.targets=new V5(pu),this.defaultTarget=new pu,this.outerRadiusRatio=1,this.innerRadiusRatio=1,this.cornerRadius=0,this.cornerMode="container",this.spacing=0,this.scale=new Ty,this.bar=new Iy,this.needle=new Ry,this.label=new Aq,this.secondaryLabel=new Dq,this.tooltip=new xbe}isValid(e){if(!super.isValid(e))return!1;let{outerRadius:t,innerRadius:n}=this;return t==null!=(n==null)?(Ebe.warnOnce("Either [innerRadius] and [outerRadius] must both be set, or neither can be set."),!1):!0}};ve([tn(HE)],Sc.prototype,"value",2),ve([tn(Vw)],Sc.prototype,"segmentation",2),ve([tn(kbe)],Sc.prototype,"defaultColorRange",2),ve([tn(H5)],Sc.prototype,"targets",2),ve([tn(Vw)],Sc.prototype,"defaultTarget",2),ve([tn(Ey)],Sc.prototype,"outerRadiusRatio",2),ve([tn(Ey)],Sc.prototype,"innerRadiusRatio",2),ve([tn(Kf,{optional:!0})],Sc.prototype,"outerRadius",2),ve([tn(Kf,{optional:!0})],Sc.prototype,"innerRadius",2),ve([tn(Kf)],Sc.prototype,"cornerRadius",2),ve([tn(k9)],Sc.prototype,"cornerMode",2),ve([tn(HE)],Sc.prototype,"spacing",2),ve([tn(Vw)],Sc.prototype,"scale",2),ve([tn(Vw)],Sc.prototype,"bar",2),ve([tn(Vw)],Sc.prototype,"needle",2),ve([tn(Abe,{optional:!0})],Sc.prototype,"itemStyler",2),ve([tn(Vw)],Sc.prototype,"label",2),ve([tn(Vw)],Sc.prototype,"secondaryLabel",2),ve([tn(Vw)],Sc.prototype,"tooltip",2);var Rbe=(xt(),D(wt)),{SectorBox:U5}=Rbe._ModuleSupport;function Pbe(e){let{startAngle:t,endAngle:n,clipStartAngle:a,clipEndAngle:h,innerRadius:S,outerRadius:E}=e;if(!(a==null||h==null))return new U5(Math.max(a,t),Math.min(h,n),S,E)}function Eq(e,t,n){return Math.max(e,n.startAngle)<=Math.min(t,n.endAngle)}function K5(e){return e.clipStartAngle!=null&&e.clipEndAngle!=null}function q5(e,t){let{clipStartAngle:n,clipEndAngle:a,innerRadius:h,outerRadius:S}=e;return new U5(n,t?n:a,h,S)}function Iq(e,t){let n=e?"initial":"update";return{node:{fromFn(S,E){let L=S.previousDatum,{startAngle:_,endAngle:N}=L!=null?L:E,V=L!=null&&K5(L)?q5(L,e):void 0,q=K5(E)?q5(E,e):void 0,Y;return V!=null&&q!=null?Y=V:V==null&&q!=null?(Y=q,_=E.startAngle,N=E.endAngle):V!=null&&q==null?(Y=void 0,_=E.startAngle,N=E.endAngle):e&&(N=_),{startAngle:_,endAngle:N,clipSector:Y,phase:n}},toFn(S,E){let{startAngle:L,endAngle:_}=E,N;return K5(E)&&(N=q5(E,!1)),{startAngle:L,endAngle:_,clipSector:N}},applyFn(S,E){let{startAngle:L,endAngle:_}=E,{clipSector:N}=E;N!=null&&(N=new U5(Math.max(L,N.startAngle),Math.min(_,N.endAngle),N.innerRadius,N.outerRadius));let V=N==null||Eq(L,_,N);S.startAngle=L,S.endAngle=_,S.clipSector=N,S.visible=V}},needle:{fromFn(S){var L;let{angle:E}=(L=S.previousDatum)!=null?L:S.datum;return e&&(E=t),{rotation:E,phase:n}},toFn(S,E){let{angle:L}=E;return{rotation:L}}}}}function Y5(e,t){let{startAngle:n,endAngle:a}=t,h=Pbe(t),S=h==null||Eq(n,a,h);return{startAngle:n,endAngle:a,clipSector:h,visible:S}}function Tq(e,t){let{angle:n}=t;return{rotation:n}}var Lbe={top:0,middle:.5,bottom:1};function Obe(e,t,n,a,h){var be,Le;let{padding:S,textAlign:E,verticalAlign:L}=n,_,N;if(t.each((Fe,je)=>{je.label==="primary"?_=je:je.label==="secondary"&&(N=je)}),_==null)return;let V=J2(e,_,h==null?void 0:h.label);if(V==null)return;let q=N!=null?J2(e,N,h==null?void 0:h.secondaryLabel):void 0,Y={padding:S},J=E==="center"?2:1,re=L==="middle"?2:1,ce=Fe=>({width:Math.sqrt(Math.max(a**2-(Fe/re)**2,0))*J,height:Math.min(Fe,re*a),meta:null}),he,me,we;if(N!=null&&q!=null){let Fe=o9(V,_,q,N,Y,ce);he=Fe==null?void 0:Fe.label,me=Fe==null?void 0:Fe.secondaryLabel,we=(be=Fe==null?void 0:Fe.height)!=null?be:0}else{let Fe=X2(V,_,Y,ce);he=Fe==null?void 0:Fe[0],me=void 0,we=(Le=Fe==null?void 0:Fe[0].height)!=null?Le:0}let Me=we*Lbe[L];t.each((Fe,je)=>{let Xe;if(je.label==="primary"?Xe=he:je.label==="secondary"&&(Xe=me),Xe==null){Fe.visible=!1;return}Fe.visible=!0,Fe.text=Xe.text,Fe.fontSize=Xe.fontSize,Fe.lineHeight=Xe.lineHeight,Fe.textAlign=E,Fe.textBaseline="middle";let nt=je.label==="primary"?Xe.height/2:we-Xe.height/2;Fe.y=je.centerY+nt-Me,Fe.x=je.centerX})}var{fromToMotion:lO,resetMotion:Rq,SeriesNodePickMode:Pq,StateMachine:_be,createDatumId:X5,ChartAxisDirection:kA,normalizeAngle360:Lq,normalizeAngle360Inclusive:Oq,toDegrees:Fbe,toRadians:Nbe,BBox:zbe,Group:WE,PointerEvents:Z5,Selection:UE,Sector:Bbe,Text:_q,ConicGradient:Gbe,getMarker:jbe}=sO._ModuleSupport,Vbe={inside:90,middle:0,outside:-90},Hbe=[{textAlign:"left",textBaseline:"top"},{textAlign:"right",textBaseline:"top"},{textAlign:"right",textBaseline:"bottom"},{textAlign:"left",textBaseline:"bottom"}],Wbe=[{textAlign:"right",textBaseline:"bottom"},{textAlign:"left",textBaseline:"bottom"},{textAlign:"left",textBaseline:"top"},{textAlign:"right",textBaseline:"top"}],$5=class extends sO._ModuleSupport.Series{constructor(e){super({moduleCtx:e,useLabelLayer:!0,pickModes:[Pq.EXACT_SHAPE_MATCH,Pq.NEAREST_NODE]}),this.canHaveAxes=!0,this.properties=new Sc,this.centerX=0,this.centerY=0,this.radius=0,this.textAlign="center",this.verticalAlign="middle",this.scaleGroup=this.contentGroup.appendChild(new WE({name:"scaleGroup"})),this.itemGroup=this.contentGroup.appendChild(new WE({name:"itemGroup"})),this.itemNeedleGroup=this.contentGroup.appendChild(new WE({name:"itemNeedleGroup"})),this.itemTargetGroup=this.contentGroup.appendChild(new WE({name:"itemTargetGroup"})),this.itemTargetLabelGroup=this.contentGroup.appendChild(new WE({name:"itemTargetLabelGroup"})),this.itemLabelGroup=this.contentGroup.appendChild(new WE({name:"itemLabelGroup"})),this.highlightTargetGroup=this.highlightGroup.appendChild(new WE({name:"itemTargetLabelGroup"})),this.scaleSelection=UE.select(this.scaleGroup,()=>this.nodeFactory()),this.datumSelection=UE.select(this.itemGroup,()=>this.nodeFactory()),this.needleSelection=UE.select(this.itemNeedleGroup,j5),this.targetSelection=UE.select(this.itemTargetGroup,t=>this.markerFactory(t)),this.targetLabelSelection=UE.select(this.itemTargetLabelGroup,_q),this.labelSelection=UE.select(this.itemLabelGroup,_q),this.highlightTargetSelection=UE.select(this.highlightTargetGroup,t=>this.markerFactory(t)),this.nodeDatum={series:this,datum:{}},this.animationState=new _be("empty",{empty:{update:{target:"ready",action:()=>this.animateEmptyUpdateReady()},reset:"empty",skip:"ready"},ready:{updateData:"waiting",clear:"clearing",resize:()=>this.animateReadyResize(),reset:"empty",skip:"ready"},waiting:{update:{target:"ready",action:()=>this.animateWaitingUpdateReady()},reset:"empty",skip:"ready"},clearing:{update:{target:"empty"},reset:"empty",skip:"ready"}}),this.itemGroup.pointerEvents=Z5.None,this.itemTargetLabelGroup.pointerEvents=Z5.None,this.itemLabelGroup.pointerEvents=Z5.None}get maximumRadius(){return this.properties.outerRadius}get minimumRadius(){return this.properties.outerRadius}get hasData(){return this.properties.value!=null}nodeFactory(){return new Bbe}markerFactory({shape:e}){let t=e!=="line"?jbe(e):XG,n=new t;return n.size=1,n}processData(){this.nodeDataRefresh=!0,this.animationState.transition("updateData")}formatLabel(e){return C9(e,this.axes[kA.X])}createConicGradient(e,t){let{centerX:n,centerY:a,radius:h}=this,{domain:S,range:E}=this.axes[kA.X].scale,[L,_]=E,{defaultColorRange:N}=this.properties,V=Lq((L+_)/2+Math.PI),q=Oq(_-L),Y=x9(e,N,S,t).map(({color:J,offset:re})=>(re=Math.min(Math.max(re,0),1),re=(L+q*re-V)/(2*Math.PI),re=(re%1+1)%1,{offset:re,color:J}));return new Gbe("oklch",Y,Fbe(V)-90,new zbe(n-h,a-h,2*h,2*h))}getTargets(){let{properties:e}=this,t=e.defaultTarget;return Array.from(e.targets).map(n=>{var Xe,nt,lt,ot,vt,gt,bt,At,Rt,It,Dt,jt,Nt,zt,Ut,Vt,Wt;let{text:a=t.text,value:h=(Xe=t.value)!=null?Xe:0,shape:S=(nt=t.shape)!=null?nt:"triangle",rotation:E=(lt=t.rotation)!=null?lt:0,strokeWidth:L=(ot=t.strokeWidth)!=null?ot:0,placement:_=(vt=t.placement)!=null?vt:"middle",spacing:N=(gt=t.spacing)!=null?gt:0,size:V=(bt=t.size)!=null?bt:0,fill:q=(At=t.fill)!=null?At:"black",fillOpacity:Y=(Rt=t.fillOpacity)!=null?Rt:1,stroke:J=(It=t.stroke)!=null?It:"black",strokeOpacity:re=(Dt=t.strokeOpacity)!=null?Dt:1,lineDash:ce=(jt=t.lineDash)!=null?jt:[0],lineDashOffset:he=(Nt=t.lineDashOffset)!=null?Nt:0}=n,{enabled:me=t.label.enabled,color:we=(zt=t.label.color)!=null?zt:"black",fontStyle:Me=(Ut=t.label.fontStyle)!=null?Ut:"normal",fontWeight:be=(Vt=t.label.fontWeight)!=null?Vt:"normal",fontSize:Le=t.label.fontSize,fontFamily:Fe=t.label.fontFamily,spacing:je=(Wt=t.label.spacing)!=null?Wt:0}=n.label;return{text:a,value:h,shape:S,placement:_,spacing:N,size:V,rotation:E,fill:q,fillOpacity:Y,stroke:J,strokeWidth:L,strokeOpacity:re,lineDash:ce,lineDashOffset:he,label:{enabled:me,color:we,fontStyle:Me,fontWeight:be,fontSize:Le,fontFamily:Fe,spacing:je}}})}getTargetRadius(e){let{radius:t,properties:n}=this,{innerRadiusRatio:a,outerRadiusRatio:h}=n,{placement:S,spacing:E,size:L}=e,_=t*h,N=t*a;switch(S){case"inside":return Math.max(N-E-L/2,0);case"outside":return _+E+L/2;default:return(N+_)/2}}getTargetLabel(e){let n=this.axes[kA.X].scale,{value:a,size:h,placement:S,label:E}=e,{spacing:L,color:_,fontStyle:N,fontWeight:V,fontSize:q,fontFamily:Y}=E,J=void 0,re=n.convert(a),ce=Lq(re)/(Math.PI/2)|0,he=h/2+L,me,we,Me,be;switch(S){case"outside":({textAlign:me,textBaseline:we}=Hbe[ce]),Me=he*Math.cos(re),be=he*Math.sin(re);break;case"inside":({textAlign:me,textBaseline:we}=Wbe[ce]),Me=-he*Math.cos(re),be=-he*Math.sin(re);break;default:me="center",we="bottom",Me=0,be=-he;break}return{offsetX:Me,offsetY:be,fill:_,textAlign:me,textBaseline:we,fontStyle:N,fontWeight:V,fontSize:q,fontFamily:Y,lineHeight:J}}createNodeData(){var Nt,zt,Ut;let{id:e,properties:t,radius:n,centerX:a,centerY:h}=this;if(!t.isValid())return;let S=this.axes[kA.X];if(S==null)return;let{value:E,innerRadiusRatio:L,outerRadiusRatio:_,segmentation:N,cornerRadius:V,cornerMode:q,needle:Y,bar:J,scale:re,label:ce,secondaryLabel:he}=t,{outerRadius:me=n*_,innerRadius:we=n*L}=t,Me=this.getTargets(),{domain:be}=S.scale,Le=[],Fe=[],je=[],Xe=[],nt=[],[lt,ot]=S.range,vt=S.scale,gt=q==="item",bt=vt.convert(be[0]),At=vt.convert(E),Rt=Math.ceil(Oq(At-bt)*n),It=N.enabled?N.interval.getSegments(S.scale,Rt):void 0,Dt=(Nt=J.fill)!=null?Nt:this.createConicGradient(J.fills,J.fillMode),jt=(Ut=(zt=re.fill)!=null?zt:J.enabled&&re.fills.length===0?re.defaultFill:void 0)!=null?Ut:this.createConicGradient(re.fills,re.fillMode);if(It==null&&gt){let[Vt,Wt]=be,ci={value:E,segmentStart:Vt,segmentEnd:Wt},oi=Math.min(V,(me-we)/2)/((we+me)/2);J.enabled&&Le.push({series:this,itemId:"value",datum:ci,type:0,centerX:a,centerY:h,outerRadius:me,innerRadius:we,startAngle:bt-oi,endAngle:At+oi,clipStartAngle:void 0,clipEndAngle:void 0,startCornerRadius:V,endCornerRadius:V,fill:Dt}),nt.push({series:this,itemId:"scale",datum:ci,type:0,centerX:a,centerY:h,outerRadius:me,innerRadius:we,startAngle:lt-oi,endAngle:ot+oi,clipStartAngle:void 0,clipEndAngle:void 0,startCornerRadius:V,endCornerRadius:V,fill:jt})}else{It!=null||(It=be);for(let Vt=0;Vt<It.length-1;Vt++){let Wt=It[Vt],ci=It[Vt+1],li={value:E,segmentStart:Wt,segmentEnd:ci},oi=Vt===0,vi=Vt===It.length-2,gi=vt.convert(Wt),fi=vt.convert(ci);J.enabled&&Le.push({series:this,itemId:`value-${Vt}`,datum:li,type:0,centerX:a,centerY:h,outerRadius:me,innerRadius:we,startAngle:gi,endAngle:fi,clipStartAngle:bt,clipEndAngle:At,startCornerRadius:gt||oi?V:0,endCornerRadius:gt||vi?V:0,fill:Dt}),nt.push({series:this,itemId:`scale-${Vt}`,datum:li,type:0,centerX:a,centerY:h,outerRadius:me,innerRadius:we,startAngle:gi,endAngle:fi,clipStartAngle:void 0,clipEndAngle:void 0,startCornerRadius:gt||oi?V:0,endCornerRadius:gt||vi?V:0,fill:jt})}}if(!Y.enabled&&ce.enabled){let{text:Vt,color:Wt,fontSize:ci,minimumFontSize:li,fontStyle:oi,fontWeight:vi,fontFamily:gi,lineHeight:fi,formatter:ki=si=>this.formatLabel(si.value)}=ce;Xe.push({label:"primary",centerX:a,centerY:h,text:Vt,value:E,fill:Wt,fontSize:ci,minimumFontSize:li,fontStyle:oi,fontWeight:vi,fontFamily:gi,lineHeight:fi,formatter:ki})}if(!Y.enabled&&he.enabled){let{text:Vt,color:Wt,fontSize:ci,minimumFontSize:li,fontStyle:oi,fontWeight:vi,fontFamily:gi,lineHeight:fi,formatter:ki}=he;Xe.push({label:"secondary",centerX:a,centerY:h,text:Vt,value:E,fill:Wt,fontSize:ci,minimumFontSize:li,fontStyle:oi,fontWeight:vi,fontFamily:gi,lineHeight:fi,formatter:ki})}if(Y.enabled){let Vt=Y.radiusRatio!=null?n*Y.radiusRatio:we;Vt=Math.max(Vt-Y.spacing,0);let Wt=vt.convert(E);je.push({centerX:a,centerY:h,radius:Vt,angle:Wt})}for(let Vt=0;Vt<Me.length;Vt+=1){let Wt=Me[Vt],{value:ci,text:li,size:oi,shape:vi,fill:gi,fillOpacity:fi,stroke:ki,strokeWidth:si,strokeOpacity:di,lineDash:Ii,lineDashOffset:bi}=Wt;if(ci<Math.min(...be)||ci>Math.max(...be))continue;let wi=this.getTargetRadius(Wt),Li=vt.convert(ci),Ln=Nbe(Wt.rotation+Vbe[Wt.placement]);Fe.push({series:this,itemId:`target-${Vt}`,midPoint:{x:wi*Math.cos(Li)+a,y:wi*Math.sin(Li)+h},datum:{value:ci},type:1,value:ci,text:li,centerX:a,centerY:h,shape:vi,radius:wi,angle:Li,rotation:Ln,size:oi,fill:gi,fillOpacity:fi,stroke:ki,strokeOpacity:di,strokeWidth:si,lineDash:Ii,lineDashOffset:bi,label:this.getTargetLabel(Wt)})}return{itemId:e,nodeData:Le,needleData:je,targetData:Fe,labelData:Xe,scaleData:nt}}updateSelections(e){(this.nodeDataRefresh||e)&&(this.contextNodeData=this.createNodeData(),this.nodeDataRefresh=!1)}highlightDatum(e){if(e!=null&&e.series===this&&e.type===1)return e}update({seriesRect:e}){var ce,he,me,we,Me,be,Le,Fe,je,Xe;let{datumSelection:t,labelSelection:n,needleSelection:a,targetSelection:h,targetLabelSelection:S,scaleSelection:E,highlightTargetSelection:L}=this,_=this.checkResize(e);this.updateSelections(_),this.contentGroup.visible=this.visible,this.contentGroup.opacity=this.getOpacity();let N=(he=(ce=this.contextNodeData)==null?void 0:ce.nodeData)!=null?he:[],V=(we=(me=this.contextNodeData)==null?void 0:me.labelData)!=null?we:[],q=(be=(Me=this.contextNodeData)==null?void 0:Me.needleData)!=null?be:[],Y=(Fe=(Le=this.contextNodeData)==null?void 0:Le.targetData)!=null?Fe:[],J=(Xe=(je=this.contextNodeData)==null?void 0:je.scaleData)!=null?Xe:[],re=this.highlightDatum(this.ctx.highlightManager.getActiveHighlight());this.scaleSelection=this.updateScaleSelection({scaleData:J,scaleSelection:E}),this.updateScaleNodes({scaleSelection:E}),this.needleSelection=this.updateNeedleSelection({needleData:q,needleSelection:a}),this.updateNeedleNodes({needleSelection:a}),this.targetSelection=this.updateTargetSelection({targetData:Y,targetSelection:h}),this.updateTargetNodes({targetSelection:h,isHighlight:!1}),this.targetLabelSelection=this.updateTargetLabelSelection({targetData:Y,targetLabelSelection:S}),this.updateTargetLabelNodes({targetLabelSelection:S}),this.datumSelection=this.updateDatumSelection({nodeData:N,datumSelection:t}),this.updateDatumNodes({datumSelection:t}),this.labelSelection=this.updateLabelSelection({labelData:V,labelSelection:n}),this.updateLabelNodes({labelSelection:n}),this.highlightTargetSelection=this.updateTargetSelection({targetData:re!=null?[re]:[],targetSelection:L}),this.updateTargetNodes({targetSelection:L,isHighlight:!0}),_&&this.animationState.transition("resize"),this.animationState.transition("update")}updateDatumSelection(e){return e.datumSelection.update(e.nodeData,void 0,t=>X5(e.nodeData.length,t.itemId))}updateDatumNodes(e){var re;let{datumSelection:t}=e,{ctx:n,properties:a}=this,{bar:h,segmentation:S}=a,E=(re=S.spacing)!=null?re:0,{fillOpacity:L,stroke:_,strokeOpacity:N,lineDash:V,lineDashOffset:q}=h,Y=this.getStrokeWidth(h.strokeWidth),J=n.animationManager.isSkipped();t.each((ce,he)=>{let{centerX:me,centerY:we,innerRadius:Me,outerRadius:be,startCornerRadius:Le,endCornerRadius:Fe,fill:je}=he;ce.centerX=me,ce.centerY=we,ce.innerRadius=Me,ce.outerRadius=be,ce.fill=je,ce.fillOpacity=L,ce.stroke=_,ce.strokeOpacity=N,ce.strokeWidth=Y,ce.lineDash=V,ce.lineDashOffset=q,ce.startOuterCornerRadius=Le,ce.startInnerCornerRadius=Le,ce.endOuterCornerRadius=Fe,ce.endInnerCornerRadius=Fe,ce.radialEdgeInset=(E+ce.strokeWidth)/2,ce.concentricEdgeInset=ce.strokeWidth/2,(J||ce.previousDatum==null)&&ce.setProperties(Y5(ce,he))})}updateScaleSelection(e){return e.scaleSelection.update(e.scaleData,void 0,t=>X5(e.scaleData.length,t.itemId))}updateScaleNodes(e){var q;let{scaleSelection:t}=e,{scale:n,segmentation:a}=this.properties,h=(q=a.spacing)!=null?q:0,{fillOpacity:S,stroke:E,strokeOpacity:L,strokeWidth:_,lineDash:N,lineDashOffset:V}=n;t.each((Y,J)=>{let{centerX:re,centerY:ce,innerRadius:he,outerRadius:me,startCornerRadius:we,endCornerRadius:Me,fill:be}=J;Y.centerX=re,Y.centerY=ce,Y.innerRadius=he,Y.outerRadius=me,Y.fill=be,Y.fillOpacity=S,Y.stroke=E,Y.strokeOpacity=L,Y.strokeWidth=_,Y.lineDash=N,Y.lineDashOffset=V,Y.startOuterCornerRadius=we,Y.startInnerCornerRadius=we,Y.endOuterCornerRadius=Me,Y.endInnerCornerRadius=Me,Y.radialEdgeInset=(h+Y.strokeWidth)/2,Y.concentricEdgeInset=Y.strokeWidth/2,Y.setProperties(Y5(Y,J))})}updateNeedleSelection(e){return e.needleSelection.update(e.needleData,void 0,()=>X5([]))}updateNeedleNodes(e){let{needleSelection:t}=e,{fill:n,fillOpacity:a,stroke:h,strokeOpacity:S,strokeWidth:E,lineDash:L,lineDashOffset:_}=this.properties.needle,N=this.ctx.animationManager.isSkipped();t.each((V,q)=>{let{centerX:Y,centerY:J,radius:re}=q,ce=re*2;V.d=j5.defaultPathData,V.fill=n,V.fillOpacity=a,V.stroke=h,V.strokeOpacity=S,V.strokeWidth=E/ce,V.lineDash=L.map(he=>he/ce),V.lineDashOffset=_/ce,V.translationX=Y,V.translationY=J,V.scalingX=ce,V.scalingY=ce,N&&V.setProperties(Tq(V,q))})}updateTargetSelection(e){return e.targetSelection.update(e.targetData,void 0,t=>t.itemId)}updateTargetNodes(e){let{targetSelection:t,isHighlight:n}=e,a=n?this.properties.highlightStyle.item:void 0;t.each((h,S)=>{var Me,be,Le,Fe,je,Xe,nt;let{centerX:E,centerY:L,angle:_,radius:N,size:V,rotation:q,fill:Y,fillOpacity:J,stroke:re,strokeOpacity:ce,strokeWidth:he,lineDash:me,lineDashOffset:we}=S;h.size=V,h.fill=(Me=a==null?void 0:a.fill)!=null?Me:Y,h.fillOpacity=(be=a==null?void 0:a.fillOpacity)!=null?be:J,h.stroke=(Le=a==null?void 0:a.stroke)!=null?Le:re,h.strokeOpacity=(Fe=a==null?void 0:a.strokeOpacity)!=null?Fe:ce,h.strokeWidth=(je=a==null?void 0:a.strokeWidth)!=null?je:he,h.lineDash=(Xe=a==null?void 0:a.lineDash)!=null?Xe:me,h.lineDashOffset=(nt=a==null?void 0:a.lineDashOffset)!=null?nt:we,h.translationX=E+N*Math.cos(_),h.translationY=L+N*Math.sin(_),h.rotation=_+q})}updateTargetLabelSelection(e){return e.targetLabelSelection.update(e.targetData,void 0,t=>t.itemId)}updateTargetLabelNodes(e){let{targetLabelSelection:t}=e;t.each((n,a)=>{let{centerX:h,centerY:S,radius:E,angle:L,text:_}=a,{offsetX:N,offsetY:V,fill:q,fontStyle:Y,fontWeight:J,fontSize:re,fontFamily:ce,textAlign:he,textBaseline:me}=a.label;if(_==null){n.visible=!1;return}n.visible=!0,n.x=h+E*Math.cos(L)+N,n.y=S+E*Math.sin(L)+V,n.text=_,n.fill=q,n.fontStyle=Y,n.fontWeight=J,n.fontSize=re,n.fontFamily=ce,n.textAlign=he,n.textBaseline=me})}updateLabelSelection(e){return e.labelSelection.update(e.labelData,void 0,t=>t.label)}updateLabelNodes(e){let{labelSelection:t}=e,n=this.ctx.animationManager.isSkipped();t.each((a,h)=>{a.fill=h.fill,a.fontStyle=h.fontStyle,a.fontWeight=h.fontWeight,a.fontFamily=h.fontFamily}),(n||this.labelsHaveExplicitText())&&this.formatLabelText()}labelsHaveExplicitText(){for(let{datum:e}of this.labelSelection)if(e.text==null)return!1;return!0}formatLabelText(e){if(this.axes[kA.X]==null)return;let{labelSelection:n,radius:a,textAlign:h,verticalAlign:S}=this,{spacing:E,innerRadiusRatio:L}=this.properties;Obe(this,n,{padding:E,textAlign:h,verticalAlign:S},a*L,e)}resetAllAnimation(){this.ctx.animationManager.stopByAnimationGroupId(this.id),Rq([this.datumSelection],Y5),Rq([this.needleSelection],Tq),this.formatLabelText()}resetAnimation(e){e==="initial"?this.animationState.transition("reset"):e==="ready"&&this.animationState.transition("skip")}animateLabelText(e={}){var E;let{animationManager:t}=this.ctx,n,a,h,S;if(this.labelSelection.each((L,_)=>{var N,V,q,Y,J,re;L.opacity=1,_.label==="primary"?(n=(q=(V=(N=L.previousDatum)==null?void 0:N.value)!=null?V:e.from)!=null?q:_.value,a=_.value):_.label==="secondary"&&(h=(re=(J=(Y=L.previousDatum)==null?void 0:Y.value)!=null?J:e.from)!=null?re:_.value,S=_.value)}),!this.labelsHaveExplicitText())if(a==null||S==null)this.formatLabelText();else if(n===a&&h===S)this.formatLabelText({label:a,secondaryLabel:S});else{let L=`${this.id}_labels`;t.animate({id:L,groupId:"label",from:{label:n,secondaryLabel:h},to:{label:a,secondaryLabel:S},phase:(E=e.phase)!=null?E:"update",onUpdate:_=>this.formatLabelText(_)})}}animateEmptyUpdateReady(){var a,h,S,E;let{animationManager:e}=this.ctx,{node:t,needle:n}=Iq(!0,(h=(a=this.axes[kA.X])==null?void 0:a.range[0])!=null?h:0);lO(this.id,"node",e,[this.datumSelection],t,(L,_)=>_.itemId),lO(this.id,"needle",e,[this.needleSelection],n,()=>"needle"),lO(this.id,"label",e,[this.labelSelection],b9,(L,_)=>_.label),this.animateLabelText({from:(E=(S=this.axes[kA.X])==null?void 0:S.scale.domain[0])!=null?E:0,phase:"initial"})}animateWaitingUpdateReady(){var a,h;let{animationManager:e}=this.ctx,{node:t,needle:n}=Iq(!1,(h=(a=this.axes[kA.X])==null?void 0:a.range[0])!=null?h:0);lO(this.id,"node",e,[this.datumSelection],t,(S,E)=>E.itemId),lO(this.id,"needle",e,[this.needleSelection],n,()=>"needle"),this.animateLabelText()}animateReadyResize(){this.resetAllAnimation()}getSeriesDomain(){return[NaN,NaN]}getSeriesRange(e,t){return[NaN,NaN]}getLegendData(){return[]}pickNode(e,t){switch(t){case"event":case"context-menu":{let n=this.scaleGroup.pickNode(e.x,e.y);return n!=null?{pickMode:sO._ModuleSupport.SeriesNodePickMode.EXACT_SHAPE_MATCH,match:n.datum,distance:0}:void 0}case"tooltip":case"highlight":case"highlight-tooltip":{let n=this.itemTargetGroup.pickNode(e.x,e.y);return n!=null?{pickMode:sO._ModuleSupport.SeriesNodePickMode.EXACT_SHAPE_MATCH,match:n.datum,distance:0}:{pickMode:sO._ModuleSupport.SeriesNodePickMode.NEAREST_NODE,match:this.nodeDatum,distance:0}}}}getTooltipContent(e){var L;let{id:t,properties:n}=this,{tooltip:a}=n;if(!n.isValid())return;let h=this.highlightDatum(e),S=(L=h==null?void 0:h.value)!=null?L:n.value,E=h==null?void 0:h.text;return a.formatTooltip({data:[{label:E!=null?E:"",value:this.formatLabel(S)}]},{seriesId:t,title:void 0,datum:void 0,value:S})}pickFocus(e){var h;let t=(h=this.contextNodeData)==null?void 0:h.targetData;if(t==null||t.length===0)return;let n=Math.min(Math.max(e.datumIndex,0),t.length-1),a=t[n];for(let S of this.targetSelection)if(S.datum===a)return{bounds:S.node,showFocusBox:!0,clipFocusBox:!0,datum:a,datumIndex:n}}getCaptionText(){let{value:e}=this.properties,t=[];return t.push(this.formatLabel(e)),this.labelSelection.each((n,a)=>{let h=J2(this,a);h!=null&&t.push(h)}),t.join(". ")}};$5.className="RadialGaugeSeries",$5.type="radial-gauge";var{ThemeSymbols:{DEFAULT_FONT_FAMILY:Q5,DEFAULT_HIERARCHY_FILLS:Ube,DEFAULT_LABEL_COLOUR:cO,DEFAULT_MUTED_LABEL_COLOUR:Kbe,DEFAULT_GAUGE_SERIES_COLOR_RANGE:qbe},ThemeConstants:{POLAR_AXIS_TYPE:J5}}=fbe._ModuleSupport,Ybe={type:"series",optionsKey:"series[]",packageType:"enterprise",chartTypes:["gauge"],identifier:"radial-gauge",moduleFactory:e=>new $5(e),tooltipDefaults:{range:"exact"},defaultAxes:[{type:J5.ANGLE_NUMBER,line:{enabled:!1}},{type:J5.RADIUS_NUMBER,line:{enabled:!1}}],themeTemplate:{minWidth:200,minHeight:200,series:{outerRadiusRatio:1,innerRadiusRatio:.8,bar:{strokeWidth:0},segmentation:{enabled:!1,interval:{},spacing:2},defaultTarget:{fill:cO,stroke:cO,size:10,shape:"triangle",placement:"outside",spacing:5,label:{enabled:!0,fontWeight:"normal",fontSize:12,fontFamily:Q5,color:cO,spacing:5}},needle:{enabled:!1,fill:cO,spacing:10},label:{enabled:!0,fontWeight:"normal",fontSize:56,minimumFontSize:18,fontFamily:Q5,color:cO},secondaryLabel:{enabled:!0,fontWeight:"normal",fontSize:14,minimumFontSize:12,fontFamily:Q5,color:Kbe},tooltip:{enabled:!1}},axes:{[J5.ANGLE_NUMBER]:{startAngle:270,endAngle:270+180,nice:!1,line:{enabled:!1}}}},paletteFactory(e){let{takeColors:t,colorsCount:n,userPalette:a,themeTemplateParameters:h}=e,{fills:S}=t(n),E=h.get(qbe),L=h.get(Ube),_=a==="inbuilt"?E:[S[0],S[1]];return{scale:{defaultFill:L==null?void 0:L[1],stroke:L==null?void 0:L[2]},defaultColorRange:y9(_)}}},Xbe=(xt(),D(wt)),jN=(xt(),D(wt)),Zbe=1e3;function Fq(e,t,n,a,h,S){let E=e[S];if(E==null)return!1;let L=$F(E,t,n),_=QF(L,h);return S===a[_+Jg]}function Nq(e,t,n,a,h,S){let E=e[S];if(E==null)return!1;let L=$F(E,t,n),_=QF(L,h);return S===a[_+Qg]}function $be(e,t,n,a){if(e.length<Zbe)return;let[h,S]=F2(a),E=_2(e),{indexData:L,valueData:_}=N2(e,t,n,h,S,E),N=[],V=[];for(let Y=0;Y<e.length;Y+=1)Fq(e,h,S,L,E,Y)&&N.push(Y),Nq(e,h,S,L,E,Y)&&V.push(Y);let q=[{maxRange:E,topIndices:N,bottomIndices:V}];for(;E>64;)({maxRange:E}=z2(L,_,E,{inPlace:!0})),N=N.filter(Fq.bind(null,e,h,S,L,E)),V=V.filter(Nq.bind(null,e,h,S,L,E)),q.push({maxRange:E,topIndices:N,bottomIndices:V});return q.reverse(),q}var Qbe=(xt(),D(wt)),{CartesianSeriesProperties:Jbe,InterpolationProperties:eCe,SeriesMarker:tCe,SeriesTooltip:iCe,Validate:rl,BOOLEAN:nCe,COLOR_STRING:zq,LINE_DASH:aCe,OBJECT:dO,PLACEMENT:oCe,POSITIVE_NUMBER:ej,RATIO:Bq,STRING:KE,DropShadow:rCe,Label:sCe}=Qbe._ModuleSupport,tj=class extends sCe{constructor(){super(...arguments),this.placement="outside",this.padding=6}};ve([rl(oCe)],tj.prototype,"placement",2),ve([rl(ej)],tj.prototype,"padding",2);var zl=class extends Jbe{constructor(){super(...arguments),this.fill="#99CCFF",this.fillOpacity=1,this.stroke="#99CCFF",this.strokeWidth=1,this.strokeOpacity=1,this.lineDash=[0],this.lineDashOffset=0,this.interpolation=new eCe,this.shadow=new rCe().set({enabled:!1}),this.marker=new tCe,this.label=new tj,this.tooltip=new iCe,this.connectMissingData=!1}};ve([rl(KE)],zl.prototype,"xKey",2),ve([rl(KE)],zl.prototype,"yLowKey",2),ve([rl(KE)],zl.prototype,"yHighKey",2),ve([rl(KE,{optional:!0})],zl.prototype,"xName",2),ve([rl(KE,{optional:!0})],zl.prototype,"yName",2),ve([rl(KE,{optional:!0})],zl.prototype,"yLowName",2),ve([rl(KE,{optional:!0})],zl.prototype,"yHighName",2),ve([rl(zq)],zl.prototype,"fill",2),ve([rl(Bq)],zl.prototype,"fillOpacity",2),ve([rl(zq)],zl.prototype,"stroke",2),ve([rl(ej)],zl.prototype,"strokeWidth",2),ve([rl(Bq)],zl.prototype,"strokeOpacity",2),ve([rl(aCe)],zl.prototype,"lineDash",2),ve([rl(ej)],zl.prototype,"lineDashOffset",2),ve([rl(dO)],zl.prototype,"interpolation",2),ve([rl(dO)],zl.prototype,"shadow",2),ve([rl(dO)],zl.prototype,"marker",2),ve([rl(dO)],zl.prototype,"label",2),ve([rl(dO)],zl.prototype,"tooltip",2),ve([rl(nCe)],zl.prototype,"connectMissingData",2);var lCe=(xt(),D(wt)),{CollapseMode:VN,isScaleValid:Gq,pairUpSpans:HN,prepareAreaFillAnimationFns:cCe,plotInterpolatedLinePathStroke:gP,prepareLinePathPropertyAnimation:dCe,areScalingEqual:jq}=lCe._ModuleSupport;function uCe(e,t,n,a){let h=(_,N)=>{gP(_,N,t.removed),gP(_,N,n.removed)},S=(_,N)=>{gP(_,N,t.moved),gP(_,N,n.moved)},E=(_,N)=>{gP(_,N,t.added),gP(_,N,n.added)},L=dCe(e,a);return{status:e,path:{addPhaseFn:E,updatePhaseFn:S,removePhaseFn:h},pathProperties:L}}function hCe(e,t,n){var re,ce,he;let a=((re=e.scales.x)==null?void 0:re.type)==="category",h=((ce=t.scales.x)==null?void 0:ce.type)==="category";if(a!==h||!Gq(e.scales.x)||!Gq(t.scales.x))return;let S="updated";t.visible&&!e.visible?S="removed":!t.visible&&e.visible&&(S="added");let E=HN({scales:e.scales,data:e.fillData.spans},{scales:t.scales,data:t.fillData.spans},VN.Split);if(E==null)return;let L=HN({scales:e.scales,data:e.fillData.phantomSpans},{scales:t.scales,data:t.fillData.phantomSpans},VN.Split);if(L==null)return;let _=HN({scales:e.scales,data:e.highStrokeData.spans},{scales:t.scales,data:t.highStrokeData.spans},VN.Split);if(_==null)return;let N=HN({scales:e.scales,data:e.lowStrokeData.spans},{scales:t.scales,data:t.lowStrokeData.spans},VN.Split);if(N==null)return;let V="fade",q=cCe(S,E,L,V),Y=uCe(S,_,N,V),J=((he=n==null?void 0:n.changed)!=null?he:!0)||!jq(e.scales.x,t.scales.x)||!jq(e.scales.y,t.scales.y)||S!=="updated";return{status:S,fill:q,stroke:Y,hasMotion:J}}var{valueProperty:Vq,keyProperty:gCe,ChartAxisDirection:fm,mergeDefaults:pCe,updateLabelNode:mCe,fixNumericExtent:Hq,buildResetPathFn:fCe,resetLabelFn:vCe,resetMarkerFn:yCe,resetMarkerPositionFn:Wq,pathSwipeInAnimation:bCe,resetMotion:CCe,markerSwipeScaleInAnimation:SCe,seriesLabelFadeInAnimation:ij,animationValidation:wCe,diff:xCe,updateClipPath:Uq,computeMarkerFocusBounds:Kq,plotAreaPathFill:MCe,plotLinePathStroke:qq,interpolatePoints:Yq,pathFadeInAnimation:Xq,markerFadeInAnimation:Zq,fromToMotion:$q,pathMotion:Qq,extent:kCe,getMarker:ACe,visibleRangeIndices:DCe,createDatumId:ECe,PointerEvents:nj,Group:ICe,BBox:TCe,ContinuousScale:RCe,OrdinalTimeScale:PCe}=jN._ModuleSupport,LCe=class extends jN._ModuleSupport.SeriesNodeEvent{constructor(e,t,n,a){super(e,t,n,a),this.xKey=a.properties.xKey,this.yLowKey=a.properties.yLowKey,this.yHighKey=a.properties.yHighKey}},aj=class extends jN._ModuleSupport.CartesianSeries{constructor(e){super({moduleCtx:e,hasMarkers:!0,pathsPerSeries:["fill","stroke"],pickModes:[jN._ModuleSupport.SeriesNodePickMode.AXIS_ALIGNED],directionKeys:{[fm.X]:["xKey"],[fm.Y]:["yLowKey","yHighKey"]},directionNames:{[fm.X]:["xName"],[fm.Y]:["yLowName","yHighName","yName"]},animationResetFns:{path:fCe({getVisible:()=>this.visible,getOpacity:()=>this.getOpacity()}),label:vCe,marker:(t,n)=>pe(pe({},yCe(t)),Wq(t,n))}}),this.properties=new zl,this.NodeEvent=LCe,this.dataAggregationFilters=void 0}async processData(e){var Y,J;if(!this.properties.isValid())return;let{xKey:t,yLowKey:n,yHighKey:a}=this.properties,h=(Y=this.axes[fm.X])==null?void 0:Y.scale,S=(J=this.axes[fm.Y])==null?void 0:J.scale,{xScaleType:E,yScaleType:L}=this.getScaleInformation({xScale:h,yScale:S}),_=[],N=!this.ctx.animationManager.isSkipped();!this.ctx.animationManager.isSkipped()&&this.processedData&&_.push(xCe(this.id,this.processedData)),N&&_.push(wCe());let{dataModel:V,processedData:q}=await this.requestDataModel(e,this.data,{props:[gCe(t,E,{id:"xValue"}),Vq(n,L,{id:"yLowValue"}),Vq(a,L,{id:"yHighValue"}),..._]});this.dataAggregationFilters=this.aggregateData(V,q),this.animationState.transition("updateData")}aggregateData(e,t){if(t.rawData.length===0)return;let n=this.axes[fm.X];if(n==null||!(RCe.is(n.scale)||PCe.is(n.scale)))return;let a=e.resolveKeysById(this,"xValue",t),h=e.resolveColumnById(this,"yHighValue",t),S=e.resolveColumnById(this,"yLowValue",t),{index:E}=e.resolveProcessedDataDefById(this,"xValue"),L=t.domain.keys[E];return $be(a,h,S,L)}getSeriesDomain(e){let{processedData:t,dataModel:n}=this;if(!(t&&n))return[];let{domain:{keys:[a],values:h}}=t;if(e===fm.X){let S=n.resolveProcessedDataDefById(this,"xValue");return(S==null?void 0:S.def.type)==="key"&&S.def.valueType==="category"?a:Hq(kCe(a))}else{let S=n.resolveProcessedDataIndexById(this,"yLowValue"),E=h[S],L=n.resolveProcessedDataIndexById(this,"yHighValue"),_=h[L],N=[E[0]>_[0]?_[0]:E[0],_[1]<E[1]?E[1]:_[1]];return Hq(N)}}visibleRangeIndices(e,t){var E;let{dataModel:n,processedData:a}=this;if(!n||!a)return[0,0];let h=this.axes[fm.X].scale,S=n.resolveKeysById(this,"xValue",a);return DCe((E=t==null?void 0:t.length)!=null?E:S.length,e,L=>{var N;let _=h.convert(S[(N=t==null?void 0:t[L])!=null?N:L]);return[_,_]})}getSeriesRange(e,t){let{dataModel:n,processedData:a}=this;if(!n||!a)return[NaN,NaN];let[h,S]=this.visibleRangeIndices(t);return n.getDomainBetweenRange(this,["yLowValue","yHighValue"],[h,S],a)}createNodeData(){var Nt,zt,Ut,Vt;let{data:e,dataModel:t,processedData:n,axes:a}=this,h=a[fm.X],S=a[fm.Y];if(!(e&&h&&S&&t&&n!=null&&n.rawData.length!==0))return;let E=h.scale,L=S.scale,{xKey:_,yLowKey:N,yHighKey:V,connectMissingData:q,marker:Y,interpolation:J}=this.properties,{rawData:re}=n,ce=((Nt=E.bandwidth)!=null?Nt:0)/2,he=t.resolveKeysById(this,"xValue",n),me=t.resolveColumnById(this,"yHighValue",n),we=t.resolveColumnById(this,"yLowValue",n),Me=Wt=>E.convert(he[Wt])+ce,be=[],Le=[],Fe=[],je=(Wt,ci,li)=>{let oi=re[Wt],vi=he[Wt];if(vi==null)return;let gi=Fe[Fe.length-1];if(Number.isFinite(ci)&&Number.isFinite(li)){let fi=(Li,Ln,on)=>{Le.push({index:Wt,series:this,itemId:Li,datum:oi,datumIndex:Wt,midPoint:{x:si,y:on},yHighValue:ci,yLowValue:li,xValue:vi,xKey:_,yLowKey:N,yHighKey:V,point:{x:si,y:on,size:bi},enabled:!0});let Dn=this.createLabelData({point:{x:si,y:on},value:Ln,yLowValue:li,yHighValue:ci,itemId:Li,inverted:ki,datum:oi,series:this});be.push(Dn)},ki=li>ci,si=Me(Wt),di=L.convert(ci),Ii=L.convert(li),{size:bi}=Y;fi("high",ci,di),fi("low",li,Ii);let wi={high:{point:{x:si,y:di},xDatum:vi,yDatum:ci},low:{point:{x:si,y:Ii},xDatum:vi,yDatum:li}};Array.isArray(gi)?gi.push(wi):gi!=null?(gi.skip+=1,Fe.push([wi])):Fe.push([wi])}else q||(Array.isArray(gi)||gi==null?Fe.push({skip:0}):gi.skip+=1)},{dataAggregationFilters:Xe}=this,[nt,lt]=E.range,ot=lt-nt,vt=Xe==null?void 0:Xe.find(Wt=>Wt.maxRange>ot),gt=vt==null?void 0:vt.topIndices,bt=vt==null?void 0:vt.bottomIndices,[At,Rt]=this.visibleRangeIndices(h.range,gt);At=Math.max(At-1,0),Rt=Math.min(Rt+1,(zt=gt==null?void 0:gt.length)!=null?zt:he.length),n.rawData.length<1e3&&(At=0,Rt=n.rawData.length);for(let Wt=At;Wt<Rt;Wt+=1){let ci=(Ut=gt==null?void 0:gt[Wt])!=null?Ut:Wt,li=(Vt=bt==null?void 0:bt[Wt])!=null?Vt:Wt;je(ci,me[ci],we[li])}let It=Fe.flatMap(Wt=>{if(!Array.isArray(Wt))return[];let ci=Wt.map(li=>li.high);return Yq(ci,J)}),Dt=Fe.flatMap(Wt=>{if(!Array.isArray(Wt))return[];let ci=Wt.map(li=>li.low);return Yq(ci,J)});return{itemId:`${N}-${V}`,labelData:be,nodeData:Le,fillData:{itemId:"high",spans:It,phantomSpans:Dt},highStrokeData:{itemId:"high",spans:It},lowStrokeData:{itemId:"low",spans:Dt},scales:this.calculateScaling(),visible:this.visible}}createLabelData({point:e,value:t,itemId:n,inverted:a,datum:h,series:S}){let{xKey:E,yLowKey:L,yHighKey:_,xName:N,yName:V,yLowName:q,yHighName:Y,label:J}=this.properties,{placement:re,padding:ce=10}=J,he=n;a&&(he=n==="low"?"high":"low");let me=re==="outside"&&he==="high"||re==="inside"&&he==="low"?-1:1;return{x:e.x,y:e.y+ce*me,series:S,itemId:n,datum:h,text:this.getLabelText(J,{value:t,datum:h,itemId:n,xKey:E,yLowKey:L,yHighKey:_,xName:N,yLowName:q,yHighName:Y,yName:V}),textAlign:"center",textBaseline:me===-1?"bottom":"top"}}isPathOrSelectionDirty(){return this.properties.marker.isDirty()}markerFactory(){let{shape:e}=this.properties.marker,t=ACe(e);return new t}updatePathNodes(e){let{opacity:t,visible:n,animationEnabled:a}=e,[h,S]=e.paths,E=this.getStrokeWidth(this.properties.strokeWidth);S.setProperties({fill:void 0,lineCap:"round",lineJoin:"round",pointerEvents:nj.None,stroke:this.properties.stroke,strokeWidth:E,strokeOpacity:this.properties.strokeOpacity,lineDash:this.properties.lineDash,lineDashOffset:this.properties.lineDashOffset,opacity:t,visible:n||a}),h.setProperties({stroke:void 0,lineJoin:"round",pointerEvents:nj.None,fill:this.properties.fill,fillOpacity:this.properties.fillOpacity,lineDash:this.properties.lineDash,lineDashOffset:this.properties.lineDashOffset,strokeOpacity:this.properties.strokeOpacity,fillShadow:this.properties.shadow,strokeWidth:E,opacity:t,visible:n||a}),Uq(this,S),Uq(this,h)}updatePaths(e){this.updateAreaPaths(e.paths,e.contextData)}updateAreaPaths(e,t){for(let n of e)n.visible=t.visible;if(t.visible)this.updateFillPath(e,t),this.updateStrokePath(e,t);else for(let n of e)n.path.clear(),n.markDirty()}updateFillPath(e,t){let[n]=e;n.path.clear(),MCe(n,t.fillData),n.markDirty()}updateStrokePath(e,t){let[,n]=e;n.path.clear(),qq(n,t.highStrokeData.spans),qq(n,t.lowStrokeData.spans),n.markDirty()}updateMarkerSelection(e){let{nodeData:t,markerSelection:n}=e;return this.properties.marker.isDirty()&&(n.clear(),n.cleanup()),n.update(this.properties.marker.enabled?t:[])}getMarkerItemBaseStyle(e){var S,E,L,_,N;let{properties:t}=this,{marker:n}=t,a=e?t.highlightStyle.item:void 0,h=this.getStrokeWidth(n.strokeWidth);return{size:n.size,fill:(S=a==null?void 0:a.fill)!=null?S:n.fill,fillOpacity:(E=a==null?void 0:a.fillOpacity)!=null?E:n.fillOpacity,stroke:(L=a==null?void 0:a.stroke)!=null?L:n.stroke,strokeWidth:(_=a==null?void 0:a.strokeWidth)!=null?_:h,strokeOpacity:(N=a==null?void 0:a.strokeOpacity)!=null?N:n.strokeOpacity}}getMarkerItemStyleOverrides(e,t,n,a){let{id:h,properties:S}=this,{xKey:E,yHighKey:L,yLowKey:_,marker:N}=S,{itemStyler:V}=N;if(V!=null)return this.cachedDatumCallback(ECe(e,a?"highlight":"node"),()=>V(pe({seriesId:h,datum:t,xKey:E,yHighKey:L,yLowKey:_,highlighted:a},n)))}updateMarkerNodes(e){let{markerSelection:t,isHighlight:n}=e,{xKey:a,yLowKey:h,yHighKey:S,marker:E,fill:L,stroke:_,strokeWidth:N,fillOpacity:V,strokeOpacity:q}=this.properties,Y=pCe(n&&this.properties.highlightStyle.item,E.getStyle(),{fill:L,fillOpacity:V,stroke:_,strokeWidth:N,strokeOpacity:q});t.each((J,re)=>{this.updateMarkerStyle(J,E,{datum:re,highlighted:n,xKey:a,yHighKey:S,yLowKey:h},Y)}),n||this.properties.marker.markClean()}updateLabelSelection(e){let{labelData:t,labelSelection:n}=e;return n.update(t,a=>{a.pointerEvents=nj.None})}updateLabelNodes(e){e.labelSelection.each((t,n)=>{mCe(t,this.properties.label,n)})}getHighlightLabelData(e,t){let n=e.filter(a=>a.datum===t.datum);return n.length>0?n:void 0}getHighlightData(e,t){let n=e.filter(a=>a.datum===t.datum);return n.length>0?n:void 0}getTooltipContent(e){let{id:t,dataModel:n,processedData:a,axes:h,properties:S}=this,{xName:E,yName:L,yLowKey:_,yLowName:N,xKey:V,yHighKey:q,yHighName:Y,tooltip:J}=S,re=h[fm.X],ce=h[fm.Y];if(!n||!a||a.rawData.length===0||!re||!ce)return;let{datumIndex:he}=e,me=a.rawData[he],we=n.resolveKeysById(this,"xValue",a)[he],Me=n.resolveColumnById(this,"yHighValue",a)[he],be=n.resolveColumnById(this,"yLowValue",a)[he];if(we==null)return;let Le=this.getMarkerItemBaseStyle(!1);Object.assign(Le,this.getMarkerItemStyleOverrides(String(he),he,Le,!1));let Fe=`${ce.formatDatum(be)} - ${ce.formatDatum(Me)}`;return J.formatTooltip({heading:re.formatDatum(we),symbol:this.legendItemSymbol(),data:[{label:L,fallbackLabel:`${N!=null?N:_} - ${Y!=null?Y:Y}`,value:Fe}]},pe({seriesId:t,datum:me,title:L,itemId:e.itemId,xName:E,yName:L,yLowKey:_,yLowName:N,xKey:V,yHighKey:q,yHighName:Y},Le))}legendItemSymbol(){var E,L;let{fill:e,stroke:t,strokeWidth:n,strokeOpacity:a,lineDash:h,marker:S}=this.properties;return{marker:{shape:S.shape,fill:(E=S.fill)!=null?E:e,stroke:(L=S.stroke)!=null?L:t,fillOpacity:S.fillOpacity,strokeOpacity:S.strokeOpacity,strokeWidth:S.strokeWidth},line:{stroke:t,strokeOpacity:a,strokeWidth:n,lineDash:h}}}getLegendData(e){if(e!=="category")return[];let{id:t,visible:n}=this,{yLowKey:a,yHighKey:h,yName:S,yLowName:E,yHighName:L,showInLegend:_}=this.properties,N=S!=null?S:`${E!=null?E:a} - ${L!=null?L:h}`,V=`${a}-${h}`;return[{legendType:"category",id:t,itemId:V,seriesId:t,enabled:n,label:{text:`${N}`},symbol:this.legendItemSymbol(),hideInLegend:!_}]}isLabelEnabled(){return this.properties.label.enabled}onDataChange(){}nodeFactory(){return new ICe}animateEmptyUpdateReady(e){let{markerSelection:t,labelSelection:n,contextData:a,paths:h}=e,{animationManager:S}=this.ctx;this.updateAreaPaths(h,a),bCe(this,S,...h),CCe([t],Wq),SCe(this,S,t),ij(this,"labels",S,n)}animateReadyResize(e){let{contextData:t,paths:n}=e;this.updateAreaPaths(n,t),super.animateReadyResize(e)}animateWaitingUpdateReady(e){var Y,J,re;let{animationManager:t}=this.ctx,{markerSelection:n,labelSelection:a,contextData:h,paths:S,previousContextData:E}=e,[L,_]=S;if(L==null&&_==null)return;this.resetMarkerAnimation(e),this.resetLabelAnimation(e);let N=()=>{this.resetPathAnimation(e),this.updateAreaPaths(S,h)},V=()=>{t.skipCurrentBatch(),N()};if(h==null||E==null){N(),Zq(this,t,"added",n),Xq(this,"fill_path_properties",t,"add",L),Xq(this,"stroke_path_properties",t,"add",_),ij(this,"labels",t,a);return}let q=hCe(h,E,(re=(J=(Y=this.processedData)==null?void 0:Y.reduced)==null?void 0:J.diff)==null?void 0:re[this.id]);if(q===void 0){V();return}else if(q.status==="no-op")return;$q(this.id,"fill_path_properties",t,[L],q.fill.pathProperties),$q(this.id,"stroke_path_properties",t,[_],q.stroke.pathProperties),q.status==="added"?this.updateAreaPaths(S,h):q.status==="removed"?this.updateAreaPaths(S,E):(Qq(this.id,"fill_path_update",t,[L],q.fill.path),Qq(this.id,"stroke_path_update",t,[_],q.stroke.path)),q.hasMotion&&(Zq(this,t,void 0,n),ij(this,"labels",t,a)),this.ctx.animationManager.animate({id:this.id,groupId:"reset_after_animation",phase:"trailing",from:{},to:{},onComplete:()=>this.updateAreaPaths(S,h)})}getFormattedMarkerStyle(e){let{xKey:t,yLowKey:n,yHighKey:a}=this.properties;return this.getMarkerStyle(this.properties.marker,{datum:e,xKey:t,yLowKey:n,yHighKey:a,highlighted:!0})}computeFocusBounds(e){let t=Kq(this,e),n=Kq(this,et(pe({},e),{datumIndex:e.datumIndex+1}));if(t&&n)return TCe.merge([t,n])}computeFocusDatumIndex(e,t){let n=et(pe({},e),{datumIndex:e.datumIndex+e.datumIndexDelta,datumIndexDelta:e.datumIndexDelta*2});return super.computeFocusDatumIndex(n,t)}};aj.className="RangeAreaSeries",aj.type="range-area";var oj=(xt(),D(wt)),OCe={series:{fillOpacity:.7,nodeClickRange:"nearest",marker:{enabled:!1,size:6,strokeWidth:2},label:{enabled:!1,placement:"outside",padding:10,fontSize:12,fontFamily:oj._ModuleSupport.ThemeSymbols.DEFAULT_FONT_FAMILY,color:oj._ModuleSupport.ThemeSymbols.DEFAULT_LABEL_COLOUR},interpolation:{type:"linear",tension:1,position:"end"}},axes:{[oj._ModuleSupport.ThemeConstants.CARTESIAN_AXIS_TYPE.NUMBER]:{crosshair:{enabled:!0}}}},{markerPaletteFactory:_Ce,ThemeConstants:{CARTESIAN_AXIS_TYPE:Jq,CARTESIAN_POSITION:eY}}=Xbe._ModuleSupport,FCe={type:"series",optionsKey:"series[]",packageType:"enterprise",chartTypes:["cartesian"],identifier:"range-area",moduleFactory:e=>new aj(e),tooltipDefaults:{range:"nearest"},defaultAxes:[{type:Jq.NUMBER,position:eY.LEFT},{type:Jq.CATEGORY,position:eY.BOTTOM}],themeTemplate:OCe,paletteFactory:e=>{let{marker:t}=_Ce(e);return{fill:t.fill,stroke:t.stroke,marker:t}}},tY=(xt(),D(wt)),rj=(xt(),D(wt)),NCe=1e3,zCe=5;function BCe(e,t,n,a){if(e.length<NCe)return;let[h,S]=F2(a),E=_2(e,zCe),{indexData:L,valueData:_}=N2(e,t,n,h,S,E),N=[{maxRange:E,indexData:L}];for(;E>64;)({indexData:L,valueData:_,maxRange:E}=z2(L,_,E)),N.push({maxRange:E,indexData:L});return N.reverse(),N}var GCe=(xt(),D(wt)),{AbstractBarSeriesProperties:jCe,SeriesTooltip:VCe,Validate:sl,COLOR_STRING:iY,FUNCTION:HCe,LINE_DASH:WCe,OBJECT:sj,PLACEMENT:UCe,POSITIVE_NUMBER:WN,RATIO:nY,STRING:qE,BOOLEAN:KCe,DropShadow:qCe,Label:YCe}=GCe._ModuleSupport,lj=class extends YCe{constructor(){super(...arguments),this.placement="inside",this.padding=6}};ve([sl(UCe)],lj.prototype,"placement",2),ve([sl(WN)],lj.prototype,"padding",2);var Bl=class extends jCe{constructor(){super(...arguments),this.fill="#99CCFF",this.fillOpacity=1,this.stroke="#99CCFF",this.strokeWidth=1,this.strokeOpacity=1,this.lineDash=[0],this.lineDashOffset=0,this.cornerRadius=0,this.shadow=new qCe().set({enabled:!1}),this.label=new lj,this.tooltip=new VCe,this.fastDataProcessing=!1}};ve([sl(qE)],Bl.prototype,"xKey",2),ve([sl(qE)],Bl.prototype,"yLowKey",2),ve([sl(qE)],Bl.prototype,"yHighKey",2),ve([sl(qE,{optional:!0})],Bl.prototype,"xName",2),ve([sl(qE,{optional:!0})],Bl.prototype,"yName",2),ve([sl(qE,{optional:!0})],Bl.prototype,"yLowName",2),ve([sl(qE,{optional:!0})],Bl.prototype,"yHighName",2),ve([sl(iY)],Bl.prototype,"fill",2),ve([sl(nY)],Bl.prototype,"fillOpacity",2),ve([sl(iY)],Bl.prototype,"stroke",2),ve([sl(WN)],Bl.prototype,"strokeWidth",2),ve([sl(nY)],Bl.prototype,"strokeOpacity",2),ve([sl(WCe)],Bl.prototype,"lineDash",2),ve([sl(WN)],Bl.prototype,"lineDashOffset",2),ve([sl(WN)],Bl.prototype,"cornerRadius",2),ve([sl(HCe,{optional:!0})],Bl.prototype,"itemStyler",2),ve([sl(sj)],Bl.prototype,"shadow",2),ve([sl(sj)],Bl.prototype,"label",2),ve([sl(sj)],Bl.prototype,"tooltip",2),ve([sl(KCe)],Bl.prototype,"fastDataProcessing",2);var{SeriesNodePickMode:aY,valueProperty:oY,keyProperty:XCe,ChartAxisDirection:UN,getRectConfig:ZCe,updateRect:$Ce,checkCrisp:QCe,updateLabelNode:JCe,SMALLEST_KEY_INTERVAL:e0e,LARGEST_KEY_INTERVAL:t0e,diff:i0e,prepareBarAnimationFunctions:rY,midpointStartingBarPosition:sY,resetBarSelectionsFn:n0e,fixNumericExtent:a0e,seriesLabelFadeInAnimation:lY,resetLabelFn:o0e,animationValidation:r0e,computeBarFocusBounds:s0e,visibleRangeIndices:cj,createDatumId:l0e,ContinuousScale:cY,OrdinalTimeScale:c0e,Rect:d0e,PointerEvents:u0e,motion:dY}=rj._ModuleSupport,h0e=class extends rj._ModuleSupport.SeriesNodeEvent{constructor(e,t,n,a){super(e,t,n,a),this.xKey=a.properties.xKey,this.yLowKey=a.properties.yLowKey,this.yHighKey=a.properties.yHighKey}},dj=class extends rj._ModuleSupport.AbstractBarSeries{constructor(e){super({moduleCtx:e,pickModes:[aY.AXIS_ALIGNED,aY.EXACT_SHAPE_MATCH],hasHighlightedLabels:!0,directionKeys:{x:["xKey"],y:["yLowKey","yHighKey"]},directionNames:{x:["xName"],y:["yLowName","yHighName","yName"]},datumSelectionGarbageCollection:!1,animationResetFns:{datum:n0e,label:o0e}}),this.properties=new Bl,this.dataAggregationFilters=void 0,this.NodeEvent=h0e}async processData(e){var ce,he,me,we;if(!this.properties.isValid())return;let{xKey:t,yLowKey:n,yHighKey:a,fastDataProcessing:h}=this.properties,S=!h,E=(ce=this.getCategoryAxis())==null?void 0:ce.scale,L=(he=this.getValueAxis())==null?void 0:he.scale,{isContinuousX:_,xScaleType:N,yScaleType:V}=this.getScaleInformation({xScale:E,yScale:L}),q=[];this.ctx.animationManager.isSkipped()||(this.processedData&&q.push(i0e(this.id,this.processedData)),q.push(r0e()));let Y=this.visible?{}:{forceValue:0},{dataModel:J,processedData:re}=await this.requestDataModel(e,this.data,{props:[XCe(t,N,{id:"xValue"}),oY(n,V,pe({id:"yLowValue",invalidValue:null},Y)),oY(a,V,pe({id:"yHighValue",invalidValue:null},Y)),..._?[e0e,t0e]:[],...q],groupByKeys:S});this.smallestDataInterval=(me=re.reduced)==null?void 0:me.smallestKeyInterval,this.largestDataInterval=(we=re.reduced)==null?void 0:we.largestKeyInterval,this.dataAggregationFilters=this.aggregateData(J,re),this.animationState.transition("updateData")}aggregateData(e,t){if(t.type!=="grouped"||t.rawData.length===0)return;let n=this.axes[UN.X];if(n==null||!(cY.is(n.scale)||c0e.is(n.scale)))return;let a=e.resolveKeysById(this,"xValue",t),h=e.resolveColumnById(this,"yHighValue",t),S=e.resolveColumnById(this,"yLowValue",t),{index:E}=e.resolveProcessedDataDefById(this,"xValue"),L=t.domain.keys[E];return BCe(a,h,S,L)}getSeriesDomain(e){let{processedData:t,dataModel:n}=this;if(!t||!n)return[];let{keys:[a],values:h}=t.domain;if(e===this.getCategoryDirection()){let S=n.resolveProcessedDataDefById(this,"xValue");return(S==null?void 0:S.def.type)==="key"&&(S==null?void 0:S.def.valueType)==="category"?a:this.padBandExtent(a)}else{let S=n.resolveProcessedDataIndexById(this,"yLowValue"),E=h[S],L=n.resolveProcessedDataIndexById(this,"yHighValue"),_=h[L],N=[E[0]>_[0]?_[0]:E[0],_[1]<E[1]?E[1]:_[1]];return a0e(N)}}getSeriesRange(e,t){var N;let{dataModel:n,processedData:a}=this;if(!n||!a)return[NaN,NaN];let h=this.axes[UN.X].scale,S=n.resolveKeysById(this,"xValue",a),E=(N=h.bandwidth)!=null?N:0,[L,_]=cj(S.length,t,V=>{let q=h.convert(S[V]);return[q,q+E]});return n.getDomainBetweenRange(this,["yHighValue","yLowValue"],[L,_],a)}createNodeData(){let{data:e,dataModel:t,groupScale:n,processedData:a,visible:h}=this,S=this.getCategoryAxis(),E=this.getValueAxis();if(!(e&&S&&E&&t&&(a!=null&&a.rawData.length)))return;let L=S.scale,_=E.scale,N=this.getBarDirection()===UN.X,{xKey:V,yLowKey:q,yHighKey:Y,fill:J,stroke:re,strokeWidth:ce}=this.properties,he=`${q}-${Y}`,me={itemId:he,nodeData:[],labelData:[],scales:this.calculateScaling(),visible:this.visible};if(!h)return me;let{rawData:we}=a,Me=t.resolveKeysById(this,"xValue",a),be=t.resolveColumnById(this,"yLowValue",a),Le=t.resolveColumnById(this,"yHighValue",a),{barWidth:Fe,groupIndex:je}=this.updateGroupScale(S),Xe=cY.is(L)?Fe*-.5:0,nt=n.convert(String(je)),lt=QCe(S==null?void 0:S.scale,S==null?void 0:S.visibleRange,this.smallestDataInterval,this.largestDataInterval),ot=Dt=>Math.round(L.convert(Me[Dt]))+nt+Xe,vt=(Dt,jt,Nt,zt,Ut,Vt,Wt)=>{let ci=we[Dt],li=Me[Dt];if(li==null)return;let oi=be[Dt],vi=Le[Dt];if(!Number.isFinite(oi==null?void 0:oi.valueOf())||!Number.isFinite(vi==null?void 0:vi.valueOf()))return;let[gi,fi]=oi<vi?[oi,vi]:[vi,oi],ki=Math.round(_.convert(Vt)),si=Math.round(_.convert(Ut)),di=Math.max(ce,Math.abs(si-ki)),Ii={x:N?Math.min(ki,si):Nt,y:N?Nt:Math.min(ki,si),width:N?di:zt,height:N?zt:di},bi={x:Ii.x+Ii.width/2,y:Ii.y+Ii.height/2},wi=this.createLabelData({rect:Ii,barAlongX:N,yLowValue:gi,yHighValue:fi,datum:ci,series:this}),Li={index:jt,valueIndex:Dt,series:this,itemId:he,datum:ci,datumIndex:Dt,xValue:li,yLowValue:oi,yHighValue:vi,yLowKey:q,yHighKey:Y,xKey:V,x:Ii.x,y:Ii.y,width:Ii.width,height:Ii.height,midPoint:bi,fill:J,stroke:re,strokeWidth:ce,opacity:1,crisp:Wt,labels:wi};me.nodeData.push(Li),me.labelData.push(...wi)},{dataAggregationFilters:gt}=this,[bt,At]=L.range,Rt=At-bt,It=gt==null?void 0:gt.find(Dt=>Dt.maxRange>Rt);if(It!=null){let{maxRange:Dt,indexData:jt}=It,[Nt,zt]=cj(Dt,S.range,Ut=>{let Vt=Ut*Uf,Wt=jt[Vt+nh],ci=jt[Vt+$g];if(Wt===-1)return;let li=(Wt+ci)/2|0;return[ot(li),ot(ci)+Fe]});for(let Ut=Nt;Ut<zt;Ut+=1){let Vt=Ut*Uf,Wt=jt[Vt+nh],ci=jt[Vt+$g],li=jt[Vt+Qg],oi=jt[Vt+Jg];if(Wt===-1)continue;let vi=(Wt+ci)/2|0;if(Me[vi]==null)continue;let fi=ot(vi),ki=Math.abs(ot(Wt)-ot(ci))+Fe,si=be[li],di=Le[oi];vt(vi,0,fi,ki,si,di,!1)}}else if(a.type==="ungrouped"){let[Dt,jt]=cj(we.length,S.range,Nt=>[ot(Nt),Fe]);a.rawData.length<1e3&&(Dt=0,jt=a.rawData.length);for(let Nt=Dt;Nt<jt;Nt+=1){let zt=ot(Nt),Ut=Fe,Vt=be[Nt],Wt=Le[Nt];vt(Nt,0,zt,Ut,Vt,Wt,lt)}}else a.groups.forEach(({datumIndices:Dt},jt)=>{Dt.forEach(Nt=>{let zt=ot(Nt),Ut=Fe,Vt=be[Nt],Wt=Le[Nt];vt(Nt,jt,zt,Ut,Vt,Wt,lt)})});return me}createLabelData({rect:e,barAlongX:t,yLowValue:n,yHighValue:a,datum:h,series:S}){let{xKey:E,yLowKey:L,yHighKey:_,xName:N,yLowName:V,yHighName:q,yName:Y,label:J}=this.properties,re={datum:h,xKey:E,yLowKey:L,yHighKey:_,xName:N,yLowName:V,yHighName:q,yName:Y},{placement:ce,padding:he}=J,we=he*(ce==="outside"?1:-1),Me={x:e.x+(t?-we:e.width/2),y:e.y+(t?e.height/2:e.height+we),textAlign:t?"left":"center",textBaseline:t?"middle":"bottom",text:this.getLabelText(J,pe({itemId:"low",value:n},re)),itemId:"low",datum:h,series:S},be={x:e.x+(t?e.width+we:e.width/2),y:e.y+(t?e.height/2:-we),textAlign:t?"right":"center",textBaseline:t?"middle":"top",text:this.getLabelText(J,pe({itemId:"high",value:a},re)),itemId:"high",datum:h,series:S};return ce==="outside"&&(Me.textAlign=t?"right":"center",Me.textBaseline=t?"middle":"top",be.textAlign=t?"left":"center",be.textBaseline=t?"middle":"bottom"),[Me,be]}nodeFactory(){return new d0e}updateDatumSelection(e){let{nodeData:t,datumSelection:n}=e,a=t!=null?t:[];return n.update(a,void 0,h=>this.getDatumId(h))}getItemBaseStyle(e){var h,S,E,L,_,N,V,q;let{properties:t}=this,{cornerRadius:n}=t,a=e?t.highlightStyle.item:void 0;return{fill:(h=a==null?void 0:a.fill)!=null?h:t.fill,fillOpacity:(S=a==null?void 0:a.fillOpacity)!=null?S:t.fillOpacity,stroke:(E=a==null?void 0:a.stroke)!=null?E:t.stroke,strokeWidth:(L=a==null?void 0:a.strokeWidth)!=null?L:t.strokeWidth,strokeOpacity:(_=a==null?void 0:a.strokeOpacity)!=null?_:t.strokeOpacity,lineDash:(V=(N=a==null?void 0:a.lineDash)!=null?N:t.lineDash)!=null?V:[],lineDashOffset:(q=a==null?void 0:a.lineDashOffset)!=null?q:t.lineDashOffset,cornerRadius:n}}getItemStyleOverrides(e,t,n,a){let{id:h,properties:S}=this,{xKey:E,yHighKey:L,yLowKey:_,itemStyler:N}=S;if(N!=null)return this.cachedDatumCallback(l0e(e,a?"highlight":"node"),()=>N(pe({seriesId:h,datum:t,xKey:E,yHighKey:L,yLowKey:_,highlighted:a},n)))}updateDatumNodes(e){let{datumSelection:t,isHighlight:n}=e,{id:a}=this,{yLowKey:h,yHighKey:S,highlightStyle:{item:E},fillOpacity:L,strokeOpacity:_,strokeWidth:N,lineDash:V,lineDashOffset:q,itemStyler:Y,shadow:J}=this.properties,re=this.getCategoryDirection()===UN.X;t.each((ce,he)=>{let me={fill:he.fill,stroke:he.stroke,fillOpacity:L,strokeOpacity:_,lineDash:V,lineDashOffset:q,fillShadow:J,strokeWidth:this.getStrokeWidth(N),cornerRadius:this.properties.cornerRadius},we=re?he.width>0:he.height>0,Me=ZCe(this,this.getDatumId(he),{datum:he,isHighlighted:n,style:me,highlightStyle:E,itemStyler:Y,seriesId:a,yLowKey:h,yHighKey:S});Me.crisp=he.crisp,Me.visible=we,$Ce(ce,Me)})}getHighlightLabelData(e,t){let n=e.filter(a=>a.datum===t.datum);return n.length>0?n:void 0}updateLabelSelection(e){let t=this.properties.label.enabled?e.labelData:[];return e.labelSelection.update(t,n=>{n.pointerEvents=u0e.None})}updateLabelNodes(e){e.labelSelection.each((t,n)=>{JCe(t,this.properties.label,n)})}getTooltipContent(e){let{id:t,dataModel:n,processedData:a,properties:h}=this,{xKey:S,xName:E,yName:L,yLowKey:_,yHighKey:N,yLowName:V,yHighName:q,tooltip:Y}=h,J=this.getCategoryAxis(),re=this.getValueAxis();if(!n||!a||a.rawData.length===0||!J||!re)return;let{datumIndex:ce}=e,he=a.rawData[ce],me=n.resolveKeysById(this,"xValue",a)[ce],we=n.resolveColumnById(this,"yHighValue",a)[ce],Me=n.resolveColumnById(this,"yLowValue",a)[ce];if(me==null)return;let be=this.getItemBaseStyle(!1);Object.assign(be,this.getItemStyleOverrides(String(ce),he,be,!1));let Le=`${re.formatDatum(Me)} - ${re.formatDatum(we)}`;return Y.formatTooltip({heading:J.formatDatum(me),symbol:this.legendItemSymbol(),data:[{label:L,fallbackLabel:`${V!=null?V:_} - ${q!=null?q:N}`,value:Le}]},pe({seriesId:t,datum:he,title:L,xKey:S,xName:E,yName:L,yLowKey:_,yHighKey:N,yLowName:V,yHighName:q},be))}legendItemSymbol(){let{fill:e,stroke:t,strokeWidth:n,fillOpacity:a,strokeOpacity:h}=this.properties;return{marker:{fill:e,stroke:t,fillOpacity:a,strokeOpacity:h,strokeWidth:n}}}getLegendData(e){if(e!=="category")return[];let{id:t,visible:n}=this,{yName:a,yLowName:h,yHighName:S,yLowKey:E,yHighKey:L,showInLegend:_}=this.properties,N=a!=null?a:`${h!=null?h:E} - ${S!=null?S:L}`,V=`${E}-${L}`;return[{legendType:"category",id:t,itemId:V,seriesId:t,enabled:n,label:{text:`${N}`},symbol:this.legendItemSymbol(),hideInLegend:!_}]}animateEmptyUpdateReady({datumSelection:e,labelSelection:t}){let n=rY(sY(this.isVertical(),"normal"));dY.fromToMotion(this.id,"datums",this.ctx.animationManager,[e],n),lY(this,"labels",this.ctx.animationManager,t)}animateWaitingUpdateReady(e){var E,L;let{datumSelection:t,labelSelection:n}=e,{processedData:a}=this,h=(L=(E=a==null?void 0:a.reduced)==null?void 0:E.diff)==null?void 0:L[this.id];this.ctx.animationManager.stopByAnimationGroupId(this.id);let S=rY(sY(this.isVertical(),"fade"));dY.fromToMotion(this.id,"datums",this.ctx.animationManager,[t],S,(_,N)=>this.getDatumId(N),h),lY(this,"labels",this.ctx.animationManager,n)}getDatumId(e){return`${e.xValue}-${e.valueIndex}`}isLabelEnabled(){return this.properties.label.enabled}onDataChange(){}computeFocusBounds({datumIndex:e}){var t;return s0e((t=this.contextNodeData)==null?void 0:t.nodeData[e])}};dj.className="RangeBarSeries",dj.type="range-bar";var uj=(xt(),D(wt)),g0e={series:{direction:"vertical",strokeWidth:0,label:{enabled:!1,fontSize:12,fontFamily:uj._ModuleSupport.ThemeSymbols.DEFAULT_FONT_FAMILY,color:uj._ModuleSupport.ThemeSymbols.DEFAULT_INSIDE_SERIES_LABEL_COLOUR,placement:"inside"}},axes:{[uj._ModuleSupport.ThemeConstants.CARTESIAN_AXIS_TYPE.NUMBER]:{crosshair:{enabled:!0}}}},{CARTESIAN_AXIS_TYPE:uY,CARTESIAN_POSITION:hY}=tY._ModuleSupport.ThemeConstants,p0e={type:"series",optionsKey:"series[]",packageType:"enterprise",chartTypes:["cartesian"],identifier:"range-bar",moduleFactory:e=>new dj(e),tooltipDefaults:{range:"exact"},defaultAxes:tY._ModuleSupport.swapAxisCondition([{type:uY.NUMBER,position:hY.LEFT},{type:uY.CATEGORY,position:hY.BOTTOM}],e=>(e==null?void 0:e.direction)==="horizontal"),themeTemplate:g0e,paletteFactory:({takeColors:e})=>{let{fills:[t],strokes:[n]}=e(1);return{fill:t,stroke:n}},groupable:!0},m0e=(xt(),D(wt)),f0e=(xt(),D(wt));function gY(e){e.nodes.sort((t,n)=>Math.round((t.datum.y-n.datum.y)*100)/100||-(t.datum.size-n.datum.size))}function v0e({nodes:e,size:t},{seriesRectHeight:n,nodeSpacing:a,sizeScale:h}){let S=n*t*h,L=(n-(S+a*(e.length-1)))/2;e.forEach(({datum:_})=>{let N=n*_.size*h;_.y=L,_.height=N,L+=N+a})}function y0e(e,t){let{nodes:n}=e,{seriesRectHeight:a,nodeSpacing:h}=t;gY(e);let S=0,E=0;for(let{datum:N}of n){let V=Math.max(E-N.y,0);N.y+=V,S+=V,E=N.y+N.height+h}if(E-h<a)return S>0;let _=a;for(let N=n.length-1;N>=0;N-=1){let{datum:V}=n[N],q=V.y+V.height,Y=Math.min(_-q,0);V.y+=Y,S+=Y,_=V.y-h}return!0}function hj(e,t,n,a,h,S,E,L){let _=(n-e)/(a-t),N=(E-h)/(L-S),V=((S-t)*(_*N)+e*N-h*_)/(N-_);return e<n?V>e&&V<Math.min(n,E):V<e&&V>Math.max(n,E)}function pY(e,t){let n=!1,a=e.nodes.filter(S=>t(S).length===1),h=!0;for(let S=0;h&&S<a.length;S+=1){h=!1;for(let E=0;E<a.length-1;E+=1){let{datum:L}=a[E],_=t(a[E])[0].node.datum,{datum:N}=a[E+1],V=t(a[E+1])[0].node.datum;if(!(hj(L.x,L.y,_.x,_.y,N.x,N.y,V.x,V.y)||hj(L.x,L.y+L.height/2,_.x,_.y+_.height/2,N.x,N.y+N.height/2,V.x,V.y+V.height/2)||hj(L.x,L.y+L.height,_.x,_.y+_.height,N.x,N.y+N.height,V.x,V.y+V.height)))continue;let Y=a[E];a[E]=a[E+1],a[E+1]=Y;let J=L.y;L.y=N.y+N.height-L.height,N.y=J,n=!0,h=!0}}return n}function b0e(e){let t=!1;return gY(e),t=pY(e,n=>n.linksBefore)||t,t=pY(e,n=>n.linksAfter)||t,t}function C0e(e){if(e.length===0)return;let t=0,n=0;for(let{node:{datum:a}}of e)t+=a.y*a.size,n+=a.size;return t/n}function mY(e,t,n,a){return e.nodes.forEach(({datum:h,linksBefore:S,linksAfter:E})=>{let L=a===1?S:E,_=a===1?E:S,N=C0e(L);if(N!=null){let V=_.length!==0?n:1;h.y=h.y+(N-h.y)*V}}),y0e(e,t)}function fY(e,t,n){let a=!1;for(let h of e)a=mY(h,t,n,1)||a;return a}function S0e(e,t,n){let a=!1;for(let h=e.length-1;h>=0;h-=1)a=mY(e[h],t,n,-1)||a;return a}function vY(e){let t=!1;for(let n=e.length-1;n>=0;n-=1)t=b0e(e[n])||t;return t}function w0e(e,t){e.forEach(a=>{v0e(a,t)});let n=!1;for(let a=0;a<6;a+=1){let h=fY(e,t,1);n=S0e(e,t,.5);let S=vY(e);if(!h&&!n&&!S)break}n&&(fY(e,t,1),vY(e))}var x0e=(xt(),D(wt)),{BBox:M0e,Path:k0e,ScenePathChangeDetection:pP,splitBezier:A0e}=x0e._ModuleSupport;function KN(e,t,n,a,h,S,E,L,_,N){let V,q;if(h!==n&&_!==E){let Fe=-(a-t)/(h-n),je=-(L-S)/(_-E);V=(E-n+Fe*t-je*S)/(Fe-je),q=Fe*(V-t)+n}else if(h===n&&_!==E)V=t,q=-(L-S)/(_-E)*(V-L)+_;else if(h!==n&&_===E)V=L,q=-(a-t)/(h-n)*(V-t)+n;else throw new Error("Offsetting flat bezier curve");let Y=Math.hypot(n-q,t-V),J=(Y+N)/Y,re=Math.hypot(_-q,L-V),ce=(re+N)/re,he=V+(a-V)*J,me=q+(h-q)*J,we=V+(S-V)*ce,Me=q+(E-q)*ce,be=V+(L-V)*ce,Le=q+(_-q)*ce;e.cubicCurveTo(he,me,we,Me,be,Le)}var YE=class extends k0e{constructor(){super(...arguments),this.x1=0,this.x2=0,this.y1=0,this.y2=0,this.height=0,this.inset=0}computeBBox(){let e=Math.min(this.x1,this.x2),t=Math.max(this.x1,this.x2)-e,n=Math.min(this.y1,this.y2),a=Math.max(this.y1,this.y2)-n+this.height;return new M0e(e,n,t,a)}updatePath(){let{path:e,inset:t}=this;e.clear();let n=this.x1+t,a=this.x2-t,h=this.y1+t,S=this.y2+t,E=this.height-2*t;if(E<0||n>a)return;let L=n,_=h+E/2,N=(n+a)/2,V=h+E/2,q=(n+a)/2,Y=S+E/2,J=a,re=S+E/2;if(e.moveTo(L,_-E/2),Math.abs(this.y2-this.y1)<1||this.x2-this.x1<this.height*Math.SQRT2)e.cubicCurveTo(N,V-E/2,q,Y-E/2,J,re-E/2),e.lineTo(J,re+E/2),e.cubicCurveTo(q,Y+E/2,N,V+E/2,L,_+E/2);else{let[ce,he]=A0e(L,_,N,V,q,Y,J,re,.5),me=(S>h?1:-1)*E/2;KN(e,ce[0].x,ce[0].y,ce[1].x,ce[1].y,ce[2].x,ce[2].y,ce[3].x,ce[3].y,me),KN(e,he[0].x,he[0].y,he[1].x,he[1].y,he[2].x,he[2].y,he[3].x,he[3].y,-me),e.lineTo(J,re+E/2),KN(e,he[3].x,he[3].y,he[2].x,he[2].y,he[1].x,he[1].y,he[0].x,he[0].y,me),KN(e,ce[3].x,ce[3].y,ce[2].x,ce[2].y,ce[1].x,ce[1].y,ce[0].x,ce[0].y,-me)}e.closePath()}};ve([pP()],YE.prototype,"x1",2),ve([pP()],YE.prototype,"x2",2),ve([pP()],YE.prototype,"y1",2),ve([pP()],YE.prototype,"y2",2),ve([pP()],YE.prototype,"height",2),ve([pP()],YE.prototype,"inset",2);var D0e=(xt(),D(wt)),{BaseProperties:yY,SeriesTooltip:E0e,SeriesProperties:I0e,ARRAY:T0e,COLOR_STRING:qN,COLOR_STRING_ARRAY:bY,FUNCTION:CY,LINE_DASH:SY,OBJECT:YN,POSITIVE_NUMBER:XE,RATIO:XN,STRING:AA,UNION:R0e,Validate:Ja,Label:P0e}=D0e._ModuleSupport,L0e=R0e(["left","right","center","justify"],"a justification value"),wY=class extends P0e{constructor(){super(...arguments),this.spacing=1}};ve([Ja(XE)],wY.prototype,"spacing",2);var Hw=class extends yY{constructor(){super(...arguments),this.fill=void 0,this.fillOpacity=1,this.stroke=void 0,this.strokeOpacity=1,this.strokeWidth=1,this.lineDash=[0],this.lineDashOffset=0}};ve([Ja(qN,{optional:!0})],Hw.prototype,"fill",2),ve([Ja(XN)],Hw.prototype,"fillOpacity",2),ve([Ja(qN,{optional:!0})],Hw.prototype,"stroke",2),ve([Ja(XN)],Hw.prototype,"strokeOpacity",2),ve([Ja(XE)],Hw.prototype,"strokeWidth",2),ve([Ja(SY)],Hw.prototype,"lineDash",2),ve([Ja(XE)],Hw.prototype,"lineDashOffset",2),ve([Ja(CY,{optional:!0})],Hw.prototype,"itemStyler",2);var qf=class extends yY{constructor(){super(...arguments),this.spacing=1,this.width=1,this.alignment="justify",this.fill=void 0,this.fillOpacity=1,this.stroke=void 0,this.strokeOpacity=1,this.strokeWidth=1,this.lineDash=[0],this.lineDashOffset=0}};ve([Ja(XE)],qf.prototype,"spacing",2),ve([Ja(XE)],qf.prototype,"width",2),ve([Ja(L0e)],qf.prototype,"alignment",2),ve([Ja(qN,{optional:!0})],qf.prototype,"fill",2),ve([Ja(XN)],qf.prototype,"fillOpacity",2),ve([Ja(qN,{optional:!0})],qf.prototype,"stroke",2),ve([Ja(XN)],qf.prototype,"strokeOpacity",2),ve([Ja(XE)],qf.prototype,"strokeWidth",2),ve([Ja(SY)],qf.prototype,"lineDash",2),ve([Ja(XE)],qf.prototype,"lineDashOffset",2),ve([Ja(CY,{optional:!0})],qf.prototype,"itemStyler",2);var lh=class extends I0e{constructor(){super(...arguments),this.nodes=void 0,this.idKey="",this.idName=void 0,this.labelKey=void 0,this.labelName=void 0,this.sizeKey=void 0,this.sizeName=void 0,this.fills=[],this.strokes=[],this.label=new wY,this.link=new Hw,this.node=new qf,this.tooltip=new E0e}};ve([Ja(T0e,{optional:!0})],lh.prototype,"nodes",2),ve([Ja(AA)],lh.prototype,"fromKey",2),ve([Ja(AA)],lh.prototype,"toKey",2),ve([Ja(AA)],lh.prototype,"idKey",2),ve([Ja(AA,{optional:!0})],lh.prototype,"idName",2),ve([Ja(AA,{optional:!0})],lh.prototype,"labelKey",2),ve([Ja(AA,{optional:!0})],lh.prototype,"labelName",2),ve([Ja(AA,{optional:!0})],lh.prototype,"sizeKey",2),ve([Ja(AA,{optional:!0})],lh.prototype,"sizeName",2),ve([Ja(bY)],lh.prototype,"fills",2),ve([Ja(bY)],lh.prototype,"strokes",2),ve([Ja(YN)],lh.prototype,"label",2),ve([Ja(YN)],lh.prototype,"link",2),ve([Ja(YN)],lh.prototype,"node",2),ve([Ja(YN)],lh.prototype,"tooltip",2);var{SeriesNodePickMode:xY,CachedTextMeasurerPool:O0e,TextWrapper:MY,TextUtils:kY,createDatumId:ZN,Logger:_0e,Rect:F0e,BBox:N0e}=f0e._ModuleSupport,gj=class extends FG{constructor(e){super({moduleCtx:e,pickModes:[xY.NEAREST_NODE,xY.EXACT_SHAPE_MATCH]}),this.properties=new lh}isLabelEnabled(){return(this.properties.labelKey!=null||this.nodes==null)&&this.properties.label.enabled}linkFactory(){return new YE}nodeFactory(){return new F0e}createNodeData(){let{id:e,_nodeDataDependencies:{seriesRectWidth:t,seriesRectHeight:n}={seriesRectWidth:0,seriesRectHeight:0}}=this,{fromKey:a,toKey:h,sizeKey:S,label:{spacing:E},node:{spacing:L,width:_,alignment:N}}=this.properties,{nodeGraph:V,links:q,maxPathLength:Y}=this.getNodeGraph(je=>et(pe({},je),{x:NaN,y:NaN,width:_,height:NaN}),je=>et(pe({},je),{x1:NaN,x2:NaN,y1:NaN,y2:NaN,height:NaN}),{includeCircularReferences:!1}),J=V,re=this.isLabelEnabled()?(t-_)*(1-Y/(Y+1)):0,ce=(t-_-2*re)/(Y-1),he=[];for(let je=0;je<Y;je+=1){let Xe=re+je*ce;he.push({index:je,size:0,nodes:[],x:Xe})}J.forEach(je=>{let{datum:Xe,linksBefore:nt,linksAfter:lt,maxPathLengthBefore:ot,maxPathLengthAfter:vt}=je,gt=Math.max(nt.reduce((Rt,{link:It})=>Rt+It.size,0),lt.reduce((Rt,{link:It})=>Rt+It.size,0));if(nt.length===0&&lt.length===0||gt===0){je.columnIndex=-1;return}let bt;switch(N){case"left":bt=he[ot];break;case"right":bt=he[Y-1-vt];break;case"center":{if(nt.length!==0)bt=he[ot];else if(lt.length!==0){let Rt=lt.reduce((It,Dt)=>Math.min(It,Dt.node.maxPathLengthBefore),Y)-1;bt=he[Rt]}else bt=he[0];break}case"justify":{bt=lt.length===0?he[Y-1]:he[ot];break}}Xe.x=bt.x,Xe.size=gt;let At=this.getLabelText(this.properties.label,{datum:Xe.datum,value:Xe.label,fromKey:a,toKey:h,sizeKey:S,size:gt});Xe.label=String(At),bt.nodes.push(je),bt.size+=gt,je.columnIndex=bt.index}),J.forEach(je=>{let Xe=1/0,nt=0;je.linksAfter.forEach(lt=>{let ot=lt.node,{columnIndex:vt}=ot;vt<Xe?(Xe=vt,nt=ot.datum.size):vt===Xe&&(nt=Math.max(nt,ot.datum.size))}),je.closestColumnIndex=Xe,je.maxSizeOfClosestNodesAfter=nt});let me=he.reduce((je,{size:Xe,nodes:nt})=>{let lt=(1-(nt.length-1)*(L/n))/Xe;return Math.min(je,lt)},1/0);for(let je=he.length-1;je>=0;je-=1)he[je].nodes.sort((nt,lt)=>nt.closestColumnIndex-lt.closestColumnIndex||nt.maxSizeOfClosestNodesAfter-lt.maxSizeOfClosestNodesAfter||nt.datum.size-lt.datum.size);w0e(he,{seriesRectHeight:n,nodeSpacing:L,sizeScale:me});let we=!1;if(J.forEach(({datum:je,linksBefore:Xe,linksAfter:nt})=>{we||(we=je.height<0);let lt=je.y+je.height,ot=bt=>bt.sort((At,Rt)=>{let It=At.node.datum,Dt=Rt.node.datum,jt=It.y+It.height,Nt=Dt.y+Dt.height,zt=Math.atan2(It.y-je.y,Math.abs(It.x-je.x))-Math.atan2(Dt.y-je.y,Math.abs(Dt.x-je.x)),Ut=Math.atan2(jt-lt,Math.abs(It.x-je.x))-Math.atan2(Nt-lt,Math.abs(Dt.x-je.x));return zt+Ut}),vt=je.y;ot(Xe).forEach(({link:bt})=>{bt.y2=vt,vt+=bt.size*n*me});let gt=je.y;ot(nt).forEach(({link:bt})=>{bt.y1=gt,gt+=bt.size*n*me})}),we){_0e.warnOnce("There was insufficient space to display the Sankey Series. Reduce the node spacing, or provide a larger container.");return}let Me=[],be=[],{fontSize:Le}=this.properties.label,Fe=this.properties.label.getFont();return he.forEach((je,Xe)=>{let nt=Xe===0,lt=Xe===he.length-1,ot=-1/0;je.nodes.sort((vt,gt)=>vt.datum.y-gt.datum.y),je.nodes.forEach(({datum:vt})=>{if(vt.midPoint={x:vt.x+vt.width/2,y:vt.y+vt.height/2},Me.push(vt),vt.label==null)return;let gt=nt?vt.x-E:vt.x+vt.width+E,bt=vt.y+vt.height/2,At;if(!nt&&!lt){let jt=bt-kY.getLineHeight(Le),Nt=bt+kY.getLineHeight(Le),zt=t;J.forEach(({datum:Vt})=>{Vt.x>vt.x&&Math.max(Vt.y,jt)<=Math.min(Vt.y+Vt.height,Nt)&&(zt=Math.min(zt,Vt.x-E))});let Ut=zt-vt.x-2*E;At=MY.wrapText(vt.label,{maxWidth:Ut,maxHeight:vt.height,font:this.properties.label,textWrap:"never",overflow:"hide"})}if(At==null||At===""){let jt=nt||lt?E:E*2;At=MY.wrapText(vt.label,{maxWidth:ce-jt,maxHeight:vt.height,font:this.properties.label,textWrap:"never"})}if(At==="")return;let{height:Rt}=O0e.measureText(At,{font:Fe,textAlign:"left",textBaseline:"middle"}),It=bt-Rt/2,Dt=bt+Rt/2;It>=ot&&(be.push({x:gt,y:bt,leading:nt,text:At}),ot=Dt)})}),q.forEach(je=>{let{fromNode:Xe,toNode:nt,size:lt}=je;je.height=n*lt*me,je.x1=Xe.x+_,je.x2=nt.x,je.midPoint={x:(je.x1+je.x2)/2,y:(je.y1+je.y2)/2+je.height/2},Me.push(je)}),{itemId:e,nodeData:Me,labelData:be}}updateLabelSelection(e){let t=this.isLabelEnabled()?e.labelData:[];return e.labelSelection.update(t)}updateLabelNodes(e){let{labelSelection:t}=e,{color:n,fontStyle:a,fontWeight:h,fontSize:S,fontFamily:E}=this.properties.label;t.each((L,{x:_,y:N,leading:V,text:q})=>{L.visible=!0,L.x=_,L.y=N,L.text=q,L.fill=n,L.fontStyle=a,L.fontWeight=h,L.fontSize=S,L.fontFamily=E,L.textAlign=V?"right":"left",L.textBaseline="middle"})}updateNodeSelection(e){return e.datumSelection.update(e.nodeData,void 0,t=>ZN([t.type,t.id]))}getBaseNodeStyle(e){var V,q,Y,J,re,ce,he;let{properties:t}=this,{fill:n,fillOpacity:a,stroke:h,strokeOpacity:S,lineDash:E,lineDashOffset:L}=t.node,_=this.getStrokeWidth(t.node.strokeWidth),N=e?t.highlightStyle.item:void 0;return{fill:(V=N==null?void 0:N.fill)!=null?V:n,fillOpacity:(q=N==null?void 0:N.fillOpacity)!=null?q:a,stroke:(Y=N==null?void 0:N.stroke)!=null?Y:h,strokeOpacity:(J=N==null?void 0:N.strokeOpacity)!=null?J:S,strokeWidth:(re=N==null?void 0:N.strokeWidth)!=null?re:_,lineDash:(ce=N==null?void 0:N.lineDash)!=null?ce:E,lineDashOffset:(he=N==null?void 0:N.lineDashOffset)!=null?he:L}}getNodeStyleOverrides(e,t,n,a,h,S,E){var ce,he;let{id:L,properties:_}=this,{fills:N,strokes:V}=_,{itemStyler:q}=_.node,Y=(ce=S.fill)!=null?ce:N[n%N.length],J=(he=S.stroke)!=null?he:V[n%V.length],re={};if(E||(re.fill=Y,re.stroke=J),q!=null){let me=this.cachedDatumCallback(ZN(e,E?"highlight":"node"),()=>{let{fillOpacity:we=1,strokeOpacity:Me=1,strokeWidth:be=0,lineDash:Le=[],lineDashOffset:Fe=0}=S;return q({seriesId:L,datum:t,highlighted:E,label:h,size:a,fill:Y,fillOpacity:we,stroke:J,strokeOpacity:Me,strokeWidth:be,lineDash:Le,lineDashOffset:Fe})});Object.assign(re,me)}return re}updateNodeNodes(e){let{datumSelection:t,isHighlight:n}=e,a=this.getBaseNodeStyle(n);t.each((h,S)=>{var V,q,Y,J,re,ce,he;let{datumIndex:E,size:L,label:_}=S,N=this.getNodeStyleOverrides(String(E),S,E,L,_,a,n);h.x=S.x,h.y=S.y,h.width=Math.max(S.width,0),h.height=Math.max(S.height,0),h.fill=(V=N==null?void 0:N.fill)!=null?V:a.fill,h.fillOpacity=(q=N==null?void 0:N.fillOpacity)!=null?q:a.fillOpacity,h.stroke=(Y=N==null?void 0:N.stroke)!=null?Y:a.stroke,h.strokeOpacity=(J=N==null?void 0:N.strokeOpacity)!=null?J:a.strokeOpacity,h.strokeWidth=(re=N==null?void 0:N.strokeWidth)!=null?re:a.strokeWidth,h.lineDash=(ce=N==null?void 0:N.lineDash)!=null?ce:a.lineDash,h.lineDashOffset=(he=N==null?void 0:N.lineDashOffset)!=null?he:a.lineDashOffset})}updateLinkSelection(e){return e.datumSelection.update(e.nodeData,void 0,t=>ZN([t.type,t.index,t.fromNode.id,t.toNode.id]))}getBaseLinkStyle(e){var V,q,Y,J,re,ce,he;let{properties:t}=this,{fill:n,fillOpacity:a,stroke:h,strokeOpacity:S,lineDash:E,lineDashOffset:L}=t.link,_=this.getStrokeWidth(t.link.strokeWidth),N=e?t.highlightStyle.item:void 0;return{fill:(V=N==null?void 0:N.fill)!=null?V:n,fillOpacity:(q=N==null?void 0:N.fillOpacity)!=null?q:a,stroke:(Y=N==null?void 0:N.stroke)!=null?Y:h,strokeOpacity:(J=N==null?void 0:N.strokeOpacity)!=null?J:S,strokeWidth:(re=N==null?void 0:N.strokeWidth)!=null?re:_,lineDash:(ce=N==null?void 0:N.lineDash)!=null?ce:E,lineDashOffset:(he=N==null?void 0:N.lineDashOffset)!=null?he:L}}getLinkStyleOverrides(e,t,n,a,h){var J,re;let{id:S,properties:E}=this,{fills:L,strokes:_}=E,{itemStyler:N}=E.link,V=(J=a.fill)!=null?J:L[n%L.length],q=(re=a.stroke)!=null?re:_[n%_.length],Y={};if(h||(Y.fill=V,Y.stroke=q),N!=null){let ce=this.cachedDatumCallback(ZN(e,h?"highlight":"node"),()=>{let{fillOpacity:he=1,strokeOpacity:me=1,strokeWidth:we=0,lineDash:Me=[],lineDashOffset:be=0}=a;return N({seriesId:S,datum:t,highlighted:h,fill:V,fillOpacity:he,stroke:q,strokeOpacity:me,strokeWidth:we,lineDash:Me,lineDashOffset:be})});Object.assign(Y,ce)}return Y}updateLinkNodes(e){let{datumSelection:t,isHighlight:n}=e,a=this.getBaseLinkStyle(n);t.each((h,S)=>{var N,V,q,Y,J,re,ce;let{datumIndex:E}=S,L=S.fromNode.datumIndex,_=this.getLinkStyleOverrides(String(E),S,L,a,n);h.x1=S.x1,h.y1=S.y1,h.x2=S.x2,h.y2=S.y2,h.height=S.height,h.fill=(N=_==null?void 0:_.fill)!=null?N:a==null?void 0:a.fill,h.fillOpacity=(V=_==null?void 0:_.fillOpacity)!=null?V:a==null?void 0:a.fillOpacity,h.stroke=(q=_==null?void 0:_.stroke)!=null?q:a==null?void 0:a.stroke,h.strokeOpacity=(Y=_==null?void 0:_.strokeOpacity)!=null?Y:a==null?void 0:a.strokeOpacity,h.strokeWidth=Math.min((J=_==null?void 0:_.strokeWidth)!=null?J:a==null?void 0:a.strokeWidth,S.height/2),h.lineDash=(re=_==null?void 0:_.lineDash)!=null?re:a==null?void 0:a.lineDash,h.lineDashOffset=(ce=_==null?void 0:_.lineDashOffset)!=null?ce:a==null?void 0:a.lineDashOffset,h.inset=h.strokeWidth/2})}getTooltipContent(e){let{id:t,processedData:n,nodesProcessedData:a,properties:h}=this,{fromKey:S,toKey:E,sizeKey:L,sizeName:_,tooltip:N}=h,{datumIndex:V}=e,q=e.type===0?e.fromNode.index:e.index,Y=e.type===0?`${e.fromNode.label} - ${e.toNode.label}`:e.label,J=e.type===0?n==null?void 0:n.rawData[e.datumIndex]:a==null?void 0:a.rawData[e.datumIndex],re=e.size,ce;if(e.type===0){let he=e.fromNode.datumIndex,me=this.getBaseLinkStyle(!1);Object.assign(me,this.getLinkStyleOverrides(String(V),J,he,me,!1)),ce=me}else{let he=e.label,me=this.getBaseNodeStyle(!1);Object.assign(me,this.getNodeStyleOverrides(String(V),J,V,re,he,me,!1)),ce=me}return N.formatTooltip({title:Y,symbol:this.legendItemSymbol(e.type,q,ce),data:L!=null?[{label:_,fallbackLabel:L,value:String(re)}]:[]},pe({seriesId:t,datum:J,title:Y,fromKey:S,toKey:E,sizeKey:L,sizeName:_,size:re},ce))}computeFocusBounds({datumIndex:e}){var n;let t=(n=this.contextNodeData)==null?void 0:n.nodeData[e];if((t==null?void 0:t.type)===1){let{x:a,y:h,width:S,height:E}=t;return new N0e(a,h,S,E)}else if((t==null?void 0:t.type)===0){for(let a of this.linkSelection)if(a.datum===t)return a.node;return}}};gj.className="SankeySeries",gj.type="sankey";var{DEFAULT_FONT_FAMILY:z0e,DEFAULT_LABEL_COLOUR:B0e}=m0e._ModuleSupport.ThemeSymbols,G0e={type:"series",optionsKey:"series[]",packageType:"enterprise",chartTypes:["flow-proportion"],solo:!0,identifier:"sankey",moduleFactory:e=>new gj(e),tooltipDefaults:{range:"exact"},themeTemplate:{seriesArea:{padding:{top:10,bottom:10}},series:{highlightStyle:{series:{dimOpacity:.2}},label:{fontFamily:z0e,color:B0e,fontSize:12,spacing:10},node:{spacing:20,width:10,strokeWidth:0},link:{fillOpacity:.5,strokeWidth:0}},legend:{enabled:!1,toggleSeries:!1}},paletteFactory({takeColors:e,colorsCount:t}){return e(t)}},j0e=(xt(),D(wt)),AY=(xt(),D(wt)),V0e=(xt(),D(wt)),{HierarchySeriesProperties:H0e,HighlightStyle:W0e,SeriesTooltip:U0e,Validate:Gl,COLOR_STRING:K0e,FUNCTION:q0e,NUMBER:DY,OBJECT:mP,POSITIVE_NUMBER:pj,RATIO:$N,STRING:QN}=V0e._ModuleSupport,DA=class extends W0e{constructor(){super(...arguments),this.label=new LC,this.secondaryLabel=new LC}};ve([Gl(QN,{optional:!0})],DA.prototype,"fill",2),ve([Gl($N,{optional:!0})],DA.prototype,"fillOpacity",2),ve([Gl(K0e,{optional:!0})],DA.prototype,"stroke",2),ve([Gl(pj,{optional:!0})],DA.prototype,"strokeWidth",2),ve([Gl($N,{optional:!0})],DA.prototype,"strokeOpacity",2),ve([Gl(mP)],DA.prototype,"label",2),ve([Gl(mP)],DA.prototype,"secondaryLabel",2);var Xh=class extends H0e{constructor(){super(...arguments),this.fillOpacity=1,this.strokeWidth=0,this.strokeOpacity=1,this.cornerRadius=0,this.highlightStyle=new DA,this.label=new LC,this.secondaryLabel=new $2,this.tooltip=new U0e}};ve([Gl(QN,{optional:!0})],Xh.prototype,"sizeName",2),ve([Gl(QN,{optional:!0})],Xh.prototype,"labelKey",2),ve([Gl(QN,{optional:!0})],Xh.prototype,"secondaryLabelKey",2),ve([Gl($N)],Xh.prototype,"fillOpacity",2),ve([Gl(pj)],Xh.prototype,"strokeWidth",2),ve([Gl($N)],Xh.prototype,"strokeOpacity",2),ve([Gl(pj)],Xh.prototype,"cornerRadius",2),ve([Gl(DY,{optional:!0})],Xh.prototype,"sectorSpacing",2),ve([Gl(DY,{optional:!0})],Xh.prototype,"padding",2),ve([Gl(q0e,{optional:!0})],Xh.prototype,"itemStyler",2),ve([Gl(mP)],Xh.prototype,"highlightStyle",2),ve([Gl(mP)],Xh.prototype,"label",2),ve([Gl(mP)],Xh.prototype,"secondaryLabel",2),ve([Gl(mP)],Xh.prototype,"tooltip",2);var{fromToMotion:Y0e,normalizeAngle360:X0e,createDatumId:Z0e,Sector:uO,ScalableGroup:EY,Selection:mj,TransformableText:hO}=AY._ModuleSupport,IY=(e,t=0,n=2*Math.PI/e.sumSize,a=Array.from(e,()=>{}))=>{let h=t;for(let S of e.children){let E=h,L=h+S.sumSize*n;a[S.index]={start:E,end:L},IY(S,E,n,a),h=L}return a},fj=class extends AY._ModuleSupport.HierarchySeries{constructor(){super(...arguments),this.properties=new Xh,this.groupSelection=mj.select(this.contentGroup,EY),this.highlightSelection=mj.select(this.highlightGroup,EY),this.angleData=[]}processData(){let{childrenKey:e,colorKey:t,colorName:n,labelKey:a,secondaryLabelKey:h,sizeKey:S,sizeName:E}=this.properties;super.processData(),this.angleData=IY(this.rootNode),this.labelData=Array.from(this.rootNode,({datum:L,depth:_})=>{let N;if(L!=null&&_!=null&&a!=null){let q=L[a];N=this.getLabelText(this.properties.label,{depth:_,datum:L,childrenKey:e,colorKey:t,colorName:n,labelKey:a,secondaryLabelKey:h,sizeKey:S,sizeName:E,value:q})}N===""&&(N=void 0);let V;if(L!=null&&_!=null&&h!=null){let q=L[h];V=this.getLabelText(this.properties.secondaryLabel,{depth:_,datum:L,childrenKey:e,colorKey:t,colorName:n,labelKey:a,secondaryLabelKey:h,sizeKey:S,sizeName:E,value:q})}return V===""&&(V=void 0),N!=null||V!=null?{label:N,secondaryLabel:V}:void 0})}updateSelections(){if(!this.nodeDataRefresh)return;this.nodeDataRefresh=!1;let{chart:e}=this;if(e==null||e.seriesRect==null)return;let n=Array.from(this.rootNode),a=h=>{h.append([new uO,new hO({tag:0}),new hO({tag:1})])};this.groupSelection.update(n,a,h=>this.getDatumId(h)),this.highlightSelection.update(n,a,h=>this.getDatumId(h))}getItemBaseStyle(e){var a,h,S;let{properties:t}=this,n=e?t.highlightStyle:void 0;return{fill:n==null?void 0:n.fill,fillOpacity:(a=n==null?void 0:n.fillOpacity)!=null?a:t.fillOpacity,stroke:n==null?void 0:n.stroke,strokeWidth:(h=n==null?void 0:n.strokeWidth)!=null?h:t.strokeWidth,strokeOpacity:(S=n==null?void 0:n.strokeOpacity)!=null?S:t.strokeOpacity}}getItemStyleOverrides(e,t,n,a,h,S,E){var he,me;let{id:L,properties:_,colorScale:N}=this,{fills:V,strokes:q,itemStyler:Y}=_,J=(he=S.fill)!=null?he:V[n%V.length],re=(me=S.stroke)!=null?me:q[n%q.length],ce={};if(E||(ce.fill=h!=null?N.convert(h):J,ce.stroke=re),Y!=null){let we=this.cachedDatumCallback(Z0e(e,E?"highlight":"node"),()=>Y(pe({seriesId:L,datum:t,depth:a,highlighted:E,fill:J,stroke:re},S)));Object.assign(ce,we)}return ce}updateNodes(){var be;let{chart:e,data:t,maxDepth:n,labelData:a}=this;if(e==null||t==null||a==null)return;let{width:h,height:S}=e.seriesRect,{sectorSpacing:E=0,padding:L=0,cornerRadius:_}=this.properties;this.contentGroup.translationX=h/2,this.contentGroup.translationY=S/2,this.highlightGroup.translationX=h/2,this.highlightGroup.translationY=S/2;let N=E*.5,q=Math.min(h,S)/2/(n+1),Y=-Math.PI/2,J=(be=this.ctx.highlightManager)==null?void 0:be.getActiveHighlight();new hO().setFont(this.properties.label),this.rootNode.walk(Le=>{let Fe=this.angleData[Le.index];if(Le.depth!=null&&Fe!=null){let je=Fe.end-Fe.start,Xe=(Le.depth+.5)*q;Le.midPoint.x=Math.cos(je)*Xe,Le.midPoint.y=Math.sin(je)*Xe}});let ce=(Le,Fe,je,Xe)=>{var It,Dt,jt,Nt,zt;let{datum:nt,index:lt,rootIndex:ot,depth:vt,colorValue:gt}=Le,bt=this.angleData[lt];if(vt==null||bt==null){Fe.visible=!1;return}Fe.visible=!0;let At=this.getItemStyleOverrides(String(lt),nt,ot,vt,gt,je,Xe),Rt=(It=At.strokeWidth)!=null?It:je.strokeWidth;Fe.fill=(Dt=At.fill)!=null?Dt:je.fill,Fe.fillOpacity=(jt=At.fillOpacity)!=null?jt:je.fillOpacity,Fe.stroke=(Nt=At.stroke)!=null?Nt:je.stroke,Fe.strokeWidth=Rt,Fe.strokeOpacity=(zt=At.strokeOpacity)!=null?zt:je.strokeOpacity,Fe.centerX=0,Fe.centerY=0,Fe.innerRadius=vt*q,Fe.outerRadius=(vt+1)*q,Fe.startAngle=bt.start+Y,Fe.endAngle=bt.end+Y,Fe.inset=N+Rt*.5,Fe.cornerRadius=_},he=this.getItemBaseStyle(!1);this.groupSelection.selectByClass(uO).forEach(Le=>{ce(Le.datum,Le,he,!1)});let me=this.getItemBaseStyle(!0);this.highlightSelection.selectByClass(uO).forEach(Le=>{let Fe=Le.datum,je=J===Fe;Le.visible=je,Le.visible&&ce(Le.datum,Le,me,!0)});let we=Array.from(this.rootNode,(Le,Fe)=>{let{depth:je}=Le,Xe=a[Fe],nt=this.angleData[Fe];if(je==null||nt==null)return;let lt=je*q+N,ot=(je+1)*q-N,vt=lt>N?N/lt:N,gt=ot>N?N/ot:N,bt=nt.start+vt,Rt=nt.end+vt-bt,It=nt.start+gt,jt=nt.end+gt-It,Nt=si=>{var ln;if(je===0&&((ln=Le.parent)==null?void 0:ln.sumSize)===Le.sumSize)return{width:2*Math.sqrt(ot**2-(si*.5)**2),height:si,meta:0};let Ii=si,bi=2*Math.sqrt(ot**2-(lt+Ii)**2),wi=Rt<Math.PI?2*lt*Math.tan(Rt*.5):1/0,Li=Math.min(bi,wi),Ln=Math.PI/4,on,Dn;return je===0?(on=si,Dn=Math.sqrt(ot**2-(on/2)**2)-si/(2*Math.tan(jt*.5))):X0e(Rt)<Ln?(on=2*lt*Math.tan(Rt*.5),Dn=Math.sqrt(ot**2-(on/2)**2)-lt):(Dn=0,on=0),Li>=Dn?{width:Li,height:Ii,meta:1}:{width:Dn,height:on,meta:2}},zt=KG(Xe==null?void 0:Xe.label,this.properties.label,Xe==null?void 0:Xe.secondaryLabel,this.properties.secondaryLabel,{padding:L},Nt);if(zt==null)return;let{width:Ut,height:Vt,meta:Wt,label:ci,secondaryLabel:li}=zt,oi=Y+(nt.start+nt.end)/2,vi=Math.sin(oi)>=0,gi=Math.cos(oi)>=0,fi=(vi?3:12)&(gi?6:9),ki;switch(Wt){case 0:ki=0;break;case 1:{let di=ot-(q-Vt)*.58,Ii=Math.sqrt((ot-L)**2-(Ut/2)**2);ki=Math.min(di,Ii);break}case 2:if(je===0){let si=Vt/(2*Math.tan(Rt*.5))+Ut*.5,di=Math.sqrt(ot**2-(Vt*.5)**2)-Ut*.5;ki=(si+di)*.5}else ki=(lt+ot)*.5;break}return{width:Ut,height:Vt,labelPlacement:Wt,circleQuarter:fi,radius:ki,theta:oi,label:ci,secondaryLabel:li}}),Me=(Le,Fe,je,Xe)=>{let{index:nt,depth:lt}=Le,ot=we==null?void 0:we[nt],vt=je===0?this.properties.label:this.properties.secondaryLabel,gt=je===0?ot==null?void 0:ot.label:ot==null?void 0:ot.secondaryLabel;if(lt==null||ot==null||gt==null){Fe.visible=!1;return}let{height:bt,labelPlacement:At,circleQuarter:Rt,radius:It,theta:Dt}=ot,jt;switch(Xe&&(jt=(je===0?this.properties.highlightStyle.label:this.properties.highlightStyle.secondaryLabel).color),Fe.text=gt.text,Fe.fontSize=gt.fontSize,Fe.lineHeight=gt.lineHeight,Fe.fontStyle=vt.fontStyle,Fe.fontFamily=vt.fontFamily,Fe.fontWeight=vt.fontWeight,Fe.fill=jt!=null?jt:vt.color,At){case 0:Fe.textAlign="center",Fe.textBaseline="top",Fe.translationX=0,Fe.translationY=(je===0?0:bt-gt.height)-bt*.5,Fe.rotation=0;break;case 1:{let Nt=(Rt&3)!==0,zt=je===0==!Nt?It:It-(bt-gt.height);Fe.textAlign="center",Fe.textBaseline=Nt?"bottom":"top",Fe.translationX=Math.cos(Dt)*zt,Fe.translationY=Math.sin(Dt)*zt,Fe.rotation=Nt?Dt-Math.PI*.5:Dt+Math.PI*.5;break}case 2:{let Nt=(Rt&6)!==0,zt=je===0==!Nt?(bt-gt.height)*.5:(gt.height-bt)*.5;Fe.textAlign="center",Fe.textBaseline="middle",Fe.translationX=Math.cos(Dt)*It+Math.cos(Dt+Math.PI/2)*zt,Fe.translationY=Math.sin(Dt)*It+Math.sin(Dt+Math.PI/2)*zt,Fe.rotation=Nt?Dt:Dt+Math.PI;break}}Fe.visible=!0};this.groupSelection.selectByClass(hO).forEach(Le=>{Me(Le.datum,Le,Le.tag,!1)}),this.highlightSelection.selectByClass(hO).forEach(Le=>{let Fe=Le.datum,je=J===Fe;Le.visible=je,Le.visible&&Me(Le.datum,Le,Le.tag,je)})}getTooltipContent(e){let{id:t,properties:n}=this,{labelKey:a,secondaryLabelKey:h,childrenKey:S,sizeKey:E,sizeName:L,colorKey:_,colorName:N,tooltip:V}=n,{datum:q,index:Y,rootIndex:J,depth:re}=e;if(q==null||re==null)return;let ce=[],he=E!=null?q[E]:void 0;he!=null&&ce.push({label:L,fallbackLabel:E,value:he});let me=_!=null?q[_]:void 0;me!=null&&ce.push({label:N,fallbackLabel:_,value:me});let we=this.getItemBaseStyle(!1);Object.assign(we,this.getItemStyleOverrides(String(Y),q,J,re,me,we,!1));let Me=we.fill;return V.formatTooltip({title:a!=null?q[a]:void 0,symbol:{marker:{shape:"square",fill:Me,fillOpacity:1,stroke:void 0,strokeWidth:0,strokeOpacity:1}},data:ce},pe({seriesId:t,datum:q,title:void 0,depth:re,labelKey:a,secondaryLabelKey:h,childrenKey:S,sizeKey:E,sizeName:L,colorKey:_,colorName:N},we))}createNodeData(){}pickNodeClosestDatum(e){return this.pickNodeNearestDistantObject(e,this.groupSelection.selectByClass(uO))}animateEmptyUpdateReady({datumSelections:e}){Y0e(this.id,"nodes",this.ctx.animationManager,e,{toFn(){return{scalingX:1,scalingY:1}},fromFn(t,n,a){return a==="unknown"&&n!=null&&t.previousDatum==null?{scalingX:0,scalingY:0}:{scalingX:1,scalingY:1}}})}getAnimationData(){return{datumSelections:[this.groupSelection]}}computeFocusBounds(e){let t;for(let{node:n,datum:a}of this.groupSelection)a===e&&(t=mj.selectByClass(n,uO)[0]);return t}};fj.className="SunburstSeries",fj.type="sunburst";var{DEFAULT_INSIDE_SERIES_LABEL_COLOUR:JN,DEFAULT_DIVERGING_SERIES_COLOR_RANGE:$0e}=j0e._ModuleSupport.ThemeSymbols,Q0e={type:"series",optionsKey:"series[]",packageType:"enterprise",chartTypes:["hierarchy"],identifier:"sunburst",moduleFactory:e=>new fj(e),tooltipDefaults:{range:"exact"},solo:!0,themeTemplate:{series:{label:{fontSize:14,minimumFontSize:9,color:JN,overflowStrategy:"ellipsis",wrapping:"never",spacing:2},secondaryLabel:{fontSize:8,minimumFontSize:7,color:JN,overflowStrategy:"ellipsis",wrapping:"never"},sectorSpacing:2,padding:3,highlightStyle:{label:{color:JN},secondaryLabel:{color:JN},fill:"rgba(255,255,255, 0.33)",stroke:"rgba(0, 0, 0, 0.4)",strokeWidth:2}},gradientLegend:{enabled:!0}},paletteFactory:({takeColors:e,colorsCount:t,themeTemplateParameters:n})=>{let{fills:a,strokes:h}=e(t),S=n.get($0e);return{fills:a,strokes:h,colorRange:S}}},J0e=(xt(),D(wt)),vj=(xt(),D(wt)),eSe=(xt(),D(wt)),{BaseProperties:ez,HierarchySeriesProperties:tSe,HighlightStyle:iSe,SeriesTooltip:nSe,Validate:qn,BOOLEAN:aSe,COLOR_STRING:tz,FUNCTION:oSe,NUMBER:rSe,OBJECT:Yf,POSITIVE_NUMBER:zC,RATIO:EA,STRING:ZE,STRING_ARRAY:TY,TEXT_ALIGN:RY,VERTICAL_ALIGN:sSe,Label:lSe}=eSe._ModuleSupport,PY=class extends lSe{constructor(){super(...arguments),this.spacing=0}};ve([qn(rSe)],PY.prototype,"spacing",2);var Xf=class extends ez{constructor(){super(...arguments),this.fillOpacity=1,this.strokeWidth=1,this.strokeOpacity=1,this.cornerRadius=0,this.textAlign="center",this.gap=0,this.padding=0,this.interactive=!0,this.label=new PY}};ve([qn(ZE,{optional:!0})],Xf.prototype,"fill",2),ve([qn(EA)],Xf.prototype,"fillOpacity",2),ve([qn(tz,{optional:!0})],Xf.prototype,"stroke",2),ve([qn(zC)],Xf.prototype,"strokeWidth",2),ve([qn(EA)],Xf.prototype,"strokeOpacity",2),ve([qn(zC)],Xf.prototype,"cornerRadius",2),ve([qn(RY)],Xf.prototype,"textAlign",2),ve([qn(zC)],Xf.prototype,"gap",2),ve([qn(zC)],Xf.prototype,"padding",2),ve([qn(aSe)],Xf.prototype,"interactive",2),ve([qn(Yf)],Xf.prototype,"label",2);var vm=class extends ez{constructor(){super(...arguments),this.fillOpacity=1,this.strokeWidth=1,this.strokeOpacity=1,this.cornerRadius=0,this.textAlign="center",this.verticalAlign="middle",this.gap=0,this.padding=0,this.label=new LC,this.secondaryLabel=new $2}};ve([qn(ZE,{optional:!0})],vm.prototype,"fill",2),ve([qn(EA)],vm.prototype,"fillOpacity",2),ve([qn(tz,{optional:!0})],vm.prototype,"stroke",2),ve([qn(zC,{optional:!0})],vm.prototype,"strokeWidth",2),ve([qn(EA)],vm.prototype,"strokeOpacity",2),ve([qn(zC)],vm.prototype,"cornerRadius",2),ve([qn(RY)],vm.prototype,"textAlign",2),ve([qn(sSe)],vm.prototype,"verticalAlign",2),ve([qn(zC)],vm.prototype,"gap",2),ve([qn(zC)],vm.prototype,"padding",2),ve([qn(Yf)],vm.prototype,"label",2),ve([qn(Yf)],vm.prototype,"secondaryLabel",2);var $E=class extends ez{constructor(){super(...arguments),this.label=new LC}};ve([qn(ZE,{optional:!0})],$E.prototype,"fill",2),ve([qn(EA,{optional:!0})],$E.prototype,"fillOpacity",2),ve([qn(tz,{optional:!0})],$E.prototype,"stroke",2),ve([qn(zC,{optional:!0})],$E.prototype,"strokeWidth",2),ve([qn(EA,{optional:!0})],$E.prototype,"strokeOpacity",2),ve([qn(Yf)],$E.prototype,"label",2);var IA=class extends ez{constructor(){super(...arguments),this.label=new LC,this.secondaryLabel=new $2}};ve([qn(ZE,{optional:!0})],IA.prototype,"fill",2),ve([qn(EA,{optional:!0})],IA.prototype,"fillOpacity",2),ve([qn(tz,{optional:!0})],IA.prototype,"stroke",2),ve([qn(zC,{optional:!0})],IA.prototype,"strokeWidth",2),ve([qn(EA,{optional:!0})],IA.prototype,"strokeOpacity",2),ve([qn(Yf)],IA.prototype,"label",2),ve([qn(Yf)],IA.prototype,"secondaryLabel",2);var yj=class extends iSe{constructor(){super(...arguments),this.group=new $E,this.tile=new IA}};ve([qn(Yf)],yj.prototype,"group",2),ve([qn(Yf)],yj.prototype,"tile",2);var Py=class extends tSe{constructor(){super(...arguments),this.highlightStyle=new yj,this.tooltip=new nSe,this.group=new Xf,this.tile=new vm,this.undocumentedGroupFills=[],this.undocumentedGroupStrokes=[]}};ve([qn(ZE,{optional:!0})],Py.prototype,"sizeName",2),ve([qn(ZE,{optional:!0})],Py.prototype,"labelKey",2),ve([qn(ZE,{optional:!0})],Py.prototype,"secondaryLabelKey",2),ve([qn(oSe,{optional:!0})],Py.prototype,"itemStyler",2),ve([qn(Yf)],Py.prototype,"highlightStyle",2),ve([qn(Yf)],Py.prototype,"tooltip",2),ve([qn(Yf)],Py.prototype,"group",2),ve([qn(Yf)],Py.prototype,"tile",2),ve([qn(TY)],Py.prototype,"undocumentedGroupFills",2),ve([qn(TY)],Py.prototype,"undocumentedGroupStrokes",2);var{TextUtils:cSe,TextWrapper:dSe,clamp:uSe,isNumberEqual:hSe,createDatumId:LY,Rect:OY,Group:_Y,BBox:iz,Selection:bj,Text:nz}=vj._ModuleSupport,FY=new nz;function gSe(e,t){let{fontStyle:n,fontWeight:a,fontSize:h,fontFamily:S}=t;FY.setProperties({text:e,fontStyle:n,fontWeight:a,fontSize:h,fontFamily:S,textAlign:"left",textBaseline:"top"});let{width:E,height:L}=FY.getBBox();return{width:E,height:L}}function TA(e){return e.children.length>0?e.sumSize-e.sizeValue:e.sizeValue}var NY={left:0,center:.5,right:1},pSe={top:0,middle:.5,bottom:1},Exe=class extends vj._ModuleSupport.Group{distanceSquared(e,t){return this.getBBox().distanceSquared(e,t)}},Cj=class extends vj._ModuleSupport.HierarchySeries{constructor(){super(...arguments),this.properties=new Py,this.rectGroup=this.contentGroup.appendChild(new _Y),this.rectSelection=bj.select(this.rectGroup,OY),this.labelSelection=bj.select(this.labelGroup,_Y),this.highlightSelection=bj.select(this.rectGroup,OY)}groupTitleHeight(e,t){var S,E;let n=(E=(S=this.labelData)==null?void 0:S[e.index])==null?void 0:E.label,{label:a}=this.properties.group,h=3;if(n!=null){if(a.fontSize>t.width/h||a.fontSize>t.height/h)return;{let{height:L}=gSe(n,a);return Math.max(L,a.fontSize)}}}getNodePadding(e,t){if(e.index===0)return{top:0,right:0,bottom:0,left:0};if(e.children.length===0){let{padding:E}=this.properties.tile;return{top:E,right:E,bottom:E,left:E}}let{label:{spacing:n},padding:a}=this.properties.group,h=this.groupTitleHeight(e,t),S=h!=null?h+n:0;return{top:a+S,right:a,bottom:a,left:a}}processData(){var N;super.processData();let{childrenKey:e,colorKey:t,colorName:n,labelKey:a,secondaryLabelKey:h,sizeKey:S,sizeName:E,tile:L,group:_}=this.properties;if(!((N=this.data)!=null&&N.length)){this.labelData=void 0;return}this.labelData=Array.from(this.rootNode,({datum:V,depth:q,children:Y})=>{let J=Y.length===0,re=J?L.label:_.label,ce;if(V!=null&&q!=null&&a!=null){let me=V[a];ce=this.getLabelText(re,{depth:q,datum:V,childrenKey:e,colorKey:t,colorName:n,labelKey:a,secondaryLabelKey:h,sizeKey:S,sizeName:E,value:me})}ce===""&&(ce=void 0);let he;if(J&&V!=null&&q!=null&&h!=null){let me=V[h];he=this.getLabelText(L.secondaryLabel,{depth:q,datum:V,childrenKey:e,colorKey:t,colorName:n,labelKey:a,secondaryLabelKey:h,sizeKey:S,sizeName:E,value:me})}return he===""&&(he=void 0),ce!=null||he!=null?{label:ce,secondaryLabel:he}:void 0})}sortChildren({children:e}){let t=Array.from(e,(a,h)=>h).filter(a=>TA(e[a])>0).sort((a,h)=>TA(e[h])-TA(e[a]));return{sortedChildrenIndices:t,childAt:a=>{let h=t[a];return e[h]}}}squarify(e,t,n,a){let{index:h,datum:S,children:E}=e;if(t.width<=0||t.height<=0){n[h]=void 0,a[h]=void 0;return}let L=S!=null?this.getNodePadding(e,t):{top:0,right:0,bottom:0,left:0};n[h]=h===0?void 0:t,a[h]=h===0?void 0:L;let{sortedChildrenIndices:_,childAt:N}=this.sortChildren(e),V=_.every(Xe=>E[Xe].children.length===0),q=1,Y=t.width-L.left-L.right,J=t.height-L.top-L.bottom;if(Y<=0||J<=0)return;let re=_.length,ce=0,he=0,me=1/0,we=_.reduce((Xe,nt)=>Xe+TA(E[nt]),0),Me=new iz(t.x+L.left,t.y+L.top,Y,J),be=Me.clone(),Le=0;for(;Le<re;){let Xe=TA(N(Le)),nt=TA(N(he)),lt=be.width<be.height;ce+=Xe;let ot=lt?be.height:be.width,vt=lt?be.width:be.height,gt=vt*nt/ce,bt=ot*ce/we,At=Math.max(gt,bt)/Math.min(gt,bt),Rt=Math.abs(q-At);if(Rt<me){me=Rt,Le++;continue}ce-=Xe,bt=ot*ce/we;let It=lt?be.x:be.y;for(let Dt=he;Dt<Le;Dt++){let jt=N(Dt),Nt=TA(jt),zt=lt?It:be.x,Ut=lt?be.y:It,Vt=vt*Nt/ce,Wt=lt?Vt:bt,ci=lt?bt:Vt,li=new iz(zt,Ut,Wt,ci);this.applyGap(Me,li,V),this.squarify(jt,li,n,a),we-=Nt,It+=Vt}lt?(be.y+=bt,be.height-=bt):(be.x+=bt,be.width-=bt),he=Le,ce=0,me=1/0}let Fe=be.width<be.height,je=Fe?be.x:be.y;for(let Xe=he;Xe<re;Xe++){let nt=N(Xe),lt=Fe?je:be.x,ot=Fe?be.y:je,vt=TA(nt)/we,gt=be.width*(Fe?vt:1),bt=be.height*(Fe?1:vt),At=new iz(lt,ot,gt,bt);this.applyGap(Me,At,V),this.squarify(nt,At,n,a),je+=Fe?gt:bt}}applyGap(e,t,n){let a=n?this.properties.tile.gap*.5:this.properties.group.gap*.5,h=_=>({left:_.x,top:_.y,right:_.x+_.width,bottom:_.y+_.height}),S=h(e),E=h(t);["top","right","bottom","left"].forEach(_=>{hSe(S[_],E[_])||t.shrink(a,_)})}createNodeData(){}getGroupBaseStyle(e){var h,S,E,L,_;let{properties:t}=this,{group:n}=t,a=e?t.highlightStyle.group:void 0;return{fill:(h=a==null?void 0:a.fill)!=null?h:n.fill,fillOpacity:(S=a==null?void 0:a.fillOpacity)!=null?S:n.fillOpacity,stroke:(E=a==null?void 0:a.stroke)!=null?E:n.stroke,strokeWidth:(L=a==null?void 0:a.strokeWidth)!=null?L:n.strokeWidth,strokeOpacity:(_=a==null?void 0:a.strokeOpacity)!=null?_:n.strokeOpacity}}getGroupStyleOverrides(e,t,n,a,h){var J,re;let{id:S,properties:E}=this,{undocumentedGroupFills:L,undocumentedGroupStrokes:_,itemStyler:N}=E,V=(J=a.fill)!=null?J:L[Math.min(n!=null?n:0,L.length)],q=(re=a.stroke)!=null?re:_[Math.min(n!=null?n:0,_.length)],Y={};if(h||(Y.fill=V,Y.stroke=q),N!=null){let ce=this.cachedDatumCallback(LY(e,h?"highlight":"node"),()=>N(pe({seriesId:S,datum:t,depth:n,highlighted:h,fill:V,stroke:q},a)));Object.assign(Y,ce)}return Y}getTileBaseStyle(e){var h,S,E,L,_;let{properties:t}=this,{tile:n}=t,a=e?t.highlightStyle.tile:void 0;return{fill:(h=a==null?void 0:a.fill)!=null?h:n.fill,fillOpacity:(S=a==null?void 0:a.fillOpacity)!=null?S:n.fillOpacity,stroke:(E=a==null?void 0:a.stroke)!=null?E:n.stroke,strokeWidth:(L=a==null?void 0:a.strokeWidth)!=null?L:n.strokeWidth,strokeOpacity:(_=a==null?void 0:a.strokeOpacity)!=null?_:n.strokeOpacity}}getTileStyleOverrides(e,t,n,a,h,S,E){var he,me;let{id:L,properties:_,colorScale:N}=this,{fills:V,strokes:q,itemStyler:Y}=_,J=(he=S.fill)!=null?he:V[a%V.length],re=(me=S.stroke)!=null?me:q[a%q.length],ce={};if(E||(ce.fill=h!=null?N.convert(h):J,ce.stroke=re),Y!=null){let we=this.cachedDatumCallback(LY(e,E?"highlight":"node"),()=>Y(pe({seriesId:L,datum:t,depth:n,highlighted:E,fill:J,stroke:re},S)));Object.assign(ce,we)}return ce}updateSelections(){var h,S;let e=(h=this.ctx.highlightManager)==null?void 0:h.getActiveHighlight();if(e!=null&&!this.properties.group.interactive&&e.children.length!==0&&(e=void 0),this.highlightSelection.update(e!=null?[e]:[],void 0,E=>this.getDatumId(E)),!this.nodeDataRefresh)return;this.nodeDataRefresh=!1;let{seriesRect:t}=(S=this.chart)!=null?S:{};if(!t)return;let n=Array.from(this.rootNode),a=E=>{E.append([new nz({tag:0}),new nz({tag:1})])};this.rectSelection.update(n,void 0,E=>this.getDatumId(E)),this.labelSelection.update(n,a,E=>this.getDatumId(E))}updateNodes(){var me;let{rootNode:e,data:t}=this,{highlightStyle:n,tile:a,group:h}=this.properties,{seriesRect:S}=(me=this.chart)!=null?me:{};if(!S||!t)return;let{width:E,height:L}=S,_=Array.from(this.rootNode,()=>{}),N=Array.from(this.rootNode,()=>{});this.squarify(e,new iz(0,0,E,L),_,N),this.updateNodeMidPoint(_);let V=(we,Me,be,Le,Fe)=>{var jt,Nt,zt,Ut,Vt,Wt;let je=_[we.index];if(je==null){Me.visible=!1;return}let{datum:Xe,depth:nt=-1,index:lt,rootIndex:ot,colorValue:vt}=we,gt=we.children.length===0,bt=gt?Le:be,At=gt?this.getTileStyleOverrides(String(lt),Xe,nt,ot,vt,bt,Fe):this.getGroupStyleOverrides(String(lt),Xe,nt,bt,Fe);Me.crisp=!0,Me.fill=(jt=At==null?void 0:At.fill)!=null?jt:bt.fill,Me.fillOpacity=(Nt=At==null?void 0:At.fillOpacity)!=null?Nt:bt.fillOpacity,Me.stroke=(zt=At==null?void 0:At.stroke)!=null?zt:bt.stroke,Me.strokeWidth=(Ut=At==null?void 0:At.strokeWidth)!=null?Ut:bt.strokeWidth,Me.strokeOpacity=(Vt=At==null?void 0:At.strokeOpacity)!=null?Vt:bt.strokeOpacity,Me.cornerRadius=gt?a.cornerRadius:h.cornerRadius,Me.zIndex=[0,nt,Fe?1:0];let Rt=(Wt=we.parent)==null?void 0:Wt.children.every(ci=>ci.children.length===0),It=we.parent!=null?_[we.parent.index]:void 0,Dt=we.parent!=null?N[we.parent.index]:void 0;Rt===!0&&It!=null&&Dt!=null?(Me.clipBBox=je,Me.x=It.x+Dt.left,Me.y=It.y+Dt.top,Me.width=It.width-(Dt.left+Dt.right),Me.height=It.height-(Dt.top+Dt.bottom)):(Me.clipBBox=void 0,Me.x=je.x,Me.y=je.y,Me.width=je.width,Me.height=je.height),Me.visible=!0},q=this.getGroupBaseStyle(!1),Y=this.getTileBaseStyle(!1);this.rectSelection.each((we,Me)=>V(Me,we,q,Y,!1));let J=this.getGroupBaseStyle(!0),re=this.getTileBaseStyle(!0);this.highlightSelection.each((we,Me)=>{V(Me,we,J,re,!0)});let ce=Array.from(this.rootNode,we=>{var je,Xe,nt,lt;let{index:Me,children:be}=we,Le=_[Me],Fe=(je=this.labelData)==null?void 0:je[Me];if(!(Le==null||Fe==null))if(be.length===0){let ot={width:Le.width,height:Le.height,meta:null},vt=KG(Fe.label,this.properties.tile.label,Fe.secondaryLabel,this.properties.tile.secondaryLabel,{padding:a.padding},()=>ot);if(vt==null)return;let{height:gt,label:bt,secondaryLabel:At}=vt,{textAlign:Rt,verticalAlign:It,padding:Dt}=a,jt=(Xe=NY[Rt])!=null?Xe:.5,Nt=Le.x+Dt+(Le.width-2*Dt)*jt,zt=(nt=pSe[It])!=null?nt:.5,Ut=Le.y+Dt+gt*.5+(Le.height-2*Dt-gt)*zt;return{label:bt!=null?{text:bt.text,fontSize:bt.fontSize,lineHeight:bt.lineHeight,style:this.properties.tile.label,x:Nt,y:Ut-(gt-bt.height)*.5}:void 0,secondaryLabel:At!=null?{text:At.text,fontSize:At.fontSize,lineHeight:At.fontSize,style:this.properties.tile.secondaryLabel,x:Nt,y:Ut+(gt-At.height)*.5}:void 0,verticalAlign:"middle",textAlign:Rt}}else{if((Fe==null?void 0:Fe.label)==null)return;{let{padding:ot,textAlign:vt}=h,gt=this.groupTitleHeight(we,Le);if(gt==null)return;let bt=Le.width-2*ot,At=dSe.wrapText(Fe.label,{maxWidth:Le.width-2*ot,font:h.label,textWrap:"never"}),Rt=(lt=NY[vt])!=null?lt:.5;return{label:{text:At,fontSize:h.label.fontSize,lineHeight:cSe.getLineHeight(h.label.fontSize),style:this.properties.group.label,x:Le.x+ot+bt*Rt,y:Le.y+ot+gt*.5},secondaryLabel:void 0,verticalAlign:"middle",textAlign:vt}}}}),he=(we,Me,be,Le)=>{let Fe=we.children.length===0,je=ce[we.index],Xe=be===0?je==null?void 0:je.label:je==null?void 0:je.secondaryLabel;if(je==null||Xe==null){Me.visible=!1;return}let nt;if(Le){let{tile:lt,group:ot}=n;nt=lt.secondaryLabel.color,Fe?be===0&&(nt=lt.label.color):nt=ot.label.color}Me.text=Xe.text,Me.fontSize=Xe.fontSize,Me.lineHeight=Xe.lineHeight,Me.fontStyle=Xe.style.fontStyle,Me.fontFamily=Xe.style.fontFamily,Me.fontWeight=Xe.style.fontWeight,Me.fill=nt!=null?nt:Xe.style.color,Me.textAlign=je.textAlign,Me.textBaseline=je.verticalAlign,Me.x=Xe.x,Me.y=Xe.y,Me.visible=!0,Me.zIndex=1};this.labelSelection.selectByClass(nz).forEach(we=>{he(we.datum,we,we.tag,!1)})}updateNodeMidPoint(e){this.rootNode.walk(t=>{let n=e[t.index];n!=null&&(t.midPoint.x=n.x+n.width/2,t.midPoint.y=n.y)})}pickNodeClosestDatum(e){let t=this.pickNodeExactShape(e);return t!==void 0?t:this.pickNodeNearestDistantObject(e,this.rectSelection.nodes())}getTooltipContent(e){let{id:t,properties:n}=this,{labelKey:a,secondaryLabelKey:h,childrenKey:S,sizeKey:E,sizeName:L,colorKey:_,colorName:N,tooltip:V}=n,{datum:q,index:Y,rootIndex:J,depth:re,children:ce}=e;if(q==null||re==null)return;let he=ce.length===0,me=[],we=E!=null?q[E]:void 0;we!=null&&me.push({label:L,fallbackLabel:E,value:we});let Me=_!=null?q[_]:void 0;Me!=null&&me.push({label:N,fallbackLabel:_,value:Me});let be;he?(be=this.getTileBaseStyle(!1),Object.assign(be,this.getTileStyleOverrides(String(Y),q,re,J,Me,be,!1))):(be=this.getGroupBaseStyle(!1),Object.assign(be,this.getGroupStyleOverrides(String(Y),q,re,be,!1)));let Le=be.fill,Fe=he?{marker:{shape:"square",fill:Le,fillOpacity:1,stroke:void 0,strokeWidth:0,strokeOpacity:1}}:void 0;return V.formatTooltip({title:a!=null?q[a]:void 0,symbol:Fe,data:me},pe({seriesId:t,datum:q,title:void 0,depth:re,labelKey:a,secondaryLabelKey:h,childrenKey:S,sizeKey:E,sizeName:L,colorKey:_,colorName:N},be))}pickFocus(e){var E,L;let{focusPath:t}=this;(t.length<2||this.focusSorted==null)&&(t.length=1,this.focusSorted=this.sortChildren(t[0].nodeDatum),t.push({nodeDatum:this.focusSorted.childAt(0),childIndex:0}));let{datumIndexDelta:n,otherIndexDelta:a}=e,h=t[t.length-1];if(a===1){if(h.nodeDatum.children.length>0){this.focusSorted=this.sortChildren(h.nodeDatum);let _={nodeDatum:this.focusSorted.childAt(0),childIndex:0};return t.push(_),this.computeFocusOutputs(_)}}else if(n!==0){let _=h.childIndex+n,N=((L=(E=h.nodeDatum.parent)==null?void 0:E.children.length)!=null?L:1)-1;return h.childIndex=uSe(0,_,N),h.nodeDatum=this.focusSorted.childAt(h.childIndex),this.computeFocusOutputs(h)}let S=super.pickFocus(e);return a<0&&(this.focusSorted=this.sortChildren(t[t.length-1].nodeDatum.parent)),S}getAnimationData(){return{datumSelections:[]}}computeFocusBounds(e){var t;return(t=this.rectSelection.at(e.index))==null?void 0:t.getBBox()}};Cj.className="TreemapSeries",Cj.type="treemap";var{DEFAULT_DIVERGING_SERIES_COLOR_RANGE:mSe,DEFAULT_FONT_FAMILY:Sj,DEFAULT_HIERARCHY_FILLS:fSe,DEFAULT_HIERARCHY_STROKES:vSe,DEFAULT_INSIDE_SERIES_LABEL_COLOUR:az,DEFAULT_LABEL_COLOUR:zY}=J0e._ModuleSupport.ThemeSymbols,ySe={type:"series",optionsKey:"series[]",packageType:"enterprise",chartTypes:["hierarchy"],identifier:"treemap",moduleFactory:e=>new Cj(e),tooltipDefaults:{range:"exact"},solo:!0,themeTemplate:{series:{group:{label:{enabled:!0,color:zY,fontStyle:void 0,fontWeight:"normal",fontSize:12,fontFamily:Sj,spacing:4},fill:void 0,stroke:void 0,strokeWidth:1,padding:4,gap:2,textAlign:"left"},tile:{label:{enabled:!0,color:az,fontStyle:void 0,fontWeight:"normal",fontSize:18,minimumFontSize:10,fontFamily:Sj,wrapping:"on-space",overflowStrategy:"ellipsis",spacing:2},secondaryLabel:{enabled:!0,color:az,fontStyle:void 0,fontWeight:void 0,fontSize:12,minimumFontSize:10,fontFamily:Sj,wrapping:"never",overflowStrategy:"ellipsis"},fill:void 0,stroke:void 0,strokeWidth:0,padding:3,gap:1},highlightStyle:{group:{label:{color:zY},fill:"rgba(255,255,255, 0.33)",stroke:"rgba(0, 0, 0, 0.4)",strokeWidth:2},tile:{label:{color:az},secondaryLabel:{color:az},fill:"rgba(255,255,255, 0.33)",stroke:"rgba(0, 0, 0, 0.4)",strokeWidth:2}}},gradientLegend:{enabled:!0}},paletteFactory:({takeColors:e,colorsCount:t,themeTemplateParameters:n})=>{let{fills:a,strokes:h}=e(t),S=n.get(mSe),E=n.get(fSe),L=n.get(vSe);return{fills:a,strokes:h,colorRange:S,undocumentedGroupFills:E,undocumentedGroupStrokes:L}}},BY=(xt(),D(wt)),QE=(xt(),D(wt)),bSe=(xt(),D(wt)),{AbstractBarSeriesProperties:CSe,BaseProperties:gO,PropertiesArray:SSe,SeriesTooltip:wSe,Validate:$a,BOOLEAN:xSe,COLOR_STRING:wj,FUNCTION:GY,LINE_DASH:jY,NUMBER:MSe,OBJECT:Ww,OBJECT_ARRAY:kSe,POSITIVE_NUMBER:fP,RATIO:xj,STRING:vP,UNION:VY,DropShadow:ASe,Label:DSe}=bSe._ModuleSupport,oz=class extends gO{};ve([$a(VY(["subtotal","total"],"a total type"))],oz.prototype,"totalType",2),ve([$a(MSe)],oz.prototype,"index",2),ve([$a(vP)],oz.prototype,"axisLabel",2);var HY=class extends gO{};ve([$a(GY,{optional:!0})],HY.prototype,"renderer",2);var Mj=class extends DSe{constructor(){super(...arguments),this.placement="outside-end",this.padding=6}};ve([$a(VY(["inside-center","inside-start","inside-end","outside-start","outside-end"],"a placement"))],Mj.prototype,"placement",2),ve([$a(fP)],Mj.prototype,"padding",2);var ch=class extends gO{constructor(){super(...arguments),this.fill="#c16068",this.stroke="#c16068",this.fillOpacity=1,this.strokeOpacity=1,this.lineDash=[0],this.lineDashOffset=0,this.strokeWidth=1,this.cornerRadius=0,this.shadow=new ASe().set({enabled:!1}),this.label=new Mj,this.tooltip=new HY}};ve([$a(vP,{optional:!0})],ch.prototype,"name",2),ve([$a(wj)],ch.prototype,"fill",2),ve([$a(wj)],ch.prototype,"stroke",2),ve([$a(xj)],ch.prototype,"fillOpacity",2),ve([$a(xj)],ch.prototype,"strokeOpacity",2),ve([$a(jY)],ch.prototype,"lineDash",2),ve([$a(fP)],ch.prototype,"lineDashOffset",2),ve([$a(fP)],ch.prototype,"strokeWidth",2),ve([$a(fP)],ch.prototype,"cornerRadius",2),ve([$a(GY,{optional:!0})],ch.prototype,"itemStyler",2),ve([$a(Ww)],ch.prototype,"shadow",2),ve([$a(Ww)],ch.prototype,"label",2),ve([$a(Ww)],ch.prototype,"tooltip",2);var JE=class extends gO{constructor(){super(...arguments),this.enabled=!0,this.stroke="black",this.strokeOpacity=1,this.lineDash=[0],this.lineDashOffset=0,this.strokeWidth=2}};ve([$a(xSe)],JE.prototype,"enabled",2),ve([$a(wj)],JE.prototype,"stroke",2),ve([$a(xj)],JE.prototype,"strokeOpacity",2),ve([$a(jY)],JE.prototype,"lineDash",2),ve([$a(fP)],JE.prototype,"lineDashOffset",2),ve([$a(fP)],JE.prototype,"strokeWidth",2);var rz=class extends gO{constructor(){super(...arguments),this.positive=new ch,this.negative=new ch,this.total=new ch}};ve([$a(Ww)],rz.prototype,"positive",2),ve([$a(Ww)],rz.prototype,"negative",2),ve([$a(Ww)],rz.prototype,"total",2);var Uw=class extends CSe{constructor(){super(...arguments),this.item=new rz,this.totals=new SSe(oz),this.line=new JE,this.tooltip=new wSe}};ve([$a(vP)],Uw.prototype,"xKey",2),ve([$a(vP)],Uw.prototype,"yKey",2),ve([$a(vP,{optional:!0})],Uw.prototype,"xName",2),ve([$a(vP,{optional:!0})],Uw.prototype,"yName",2),ve([$a(Ww)],Uw.prototype,"item",2),ve([$a(kSe)],Uw.prototype,"totals",2),ve([$a(Ww)],Uw.prototype,"line",2),ve([$a(Ww)],Uw.prototype,"tooltip",2);var{adjustLabelPlacement:ESe,SeriesNodePickMode:WY,fixNumericExtent:ISe,valueProperty:UY,keyProperty:TSe,accumulativeValueProperty:sz,trailingAccumulatedValueProperty:RSe,ChartAxisDirection:kj,getRectConfig:PSe,createDatumId:KY,updateRect:LSe,checkCrisp:OSe,updateLabelNode:_Se,prepareBarAnimationFunctions:FSe,collapsedStartingBarPosition:NSe,resetBarSelectionsFn:zSe,seriesLabelFadeInAnimation:BSe,resetLabelFn:GSe,animationValidation:jSe,DEFAULT_CARTESIAN_DIRECTION_KEYS:VSe,DEFAULT_CARTESIAN_DIRECTION_NAMES:HSe,computeBarFocusBounds:WSe,isContinuous:qY,Rect:USe,motion:KSe}=QE._ModuleSupport,Aj=class extends QE._ModuleSupport.AbstractBarSeries{constructor(e){super({moduleCtx:e,directionKeys:VSe,directionNames:HSe,pickModes:[WY.NEAREST_NODE,WY.EXACT_SHAPE_MATCH],pathsPerSeries:["connector"],hasHighlightedLabels:!0,pathsZIndexSubOrderOffset:[-1,-1],animationResetFns:{datum:zSe,label:GSe}}),this.properties=new Uw,this.seriesItemTypes=new Set(["positive","negative","total"])}async processData(e){var we,Me,be,Le;let{xKey:t,yKey:n,totals:a}=this.properties,{data:h=[]}=this;if(!this.properties.isValid()||!this.visible)return;let S=Fe=>qY(Fe)&&Number(Fe)>=0,E=Fe=>qY(Fe)&&Number(Fe)>=0,L=Fe=>Fe==="total"||Fe==="subtotal",_={missingValue:void 0,invalidValue:void 0},N=[],V=a.reduce((Fe,je)=>{let Xe=Fe.get(je.index);return Xe?Xe.push(je):Fe.set(je.index,[je]),Fe},new Map);h.forEach((Fe,je)=>{var Xe;N.push(Fe),(Xe=V.get(je))==null||Xe.forEach(nt=>N.push(et(pe({},nt.toJson()),{[t]:nt.axisLabel})))});let q=[];this.ctx.animationManager.isSkipped()||q.push(jSe());let Y=(we=this.getCategoryAxis())==null?void 0:we.scale,J=(Me=this.getValueAxis())==null?void 0:Me.scale,{isContinuousX:re,xScaleType:ce,yScaleType:he}=this.getScaleInformation({xScale:Y,yScale:J}),{processedData:me}=await this.requestDataModel(e,N,{props:[TSe(t,ce,{id:"xValue"}),sz(n,he,et(pe({},_),{id:"yCurrent"})),sz(n,he,et(pe({},_),{missingValue:0,id:"yCurrentTotal"})),sz(n,he,et(pe({},_),{id:"yCurrentPositive",validation:S})),sz(n,he,et(pe({},_),{id:"yCurrentNegative",validation:E})),RSe(n,he,et(pe({},_),{id:"yPrevious"})),UY(n,he,{id:"yRaw"}),UY("totalType","band",{id:"totalTypeValue",missingValue:void 0,validation:L}),...re?[QE._ModuleSupport.SMALLEST_KEY_INTERVAL,QE._ModuleSupport.LARGEST_KEY_INTERVAL]:[],...q]});this.smallestDataInterval=(be=me.reduced)==null?void 0:be.smallestKeyInterval,this.largestDataInterval=(Le=me.reduced)==null?void 0:Le.largestKeyInterval,this.updateSeriesItemTypes(),this.animationState.transition("updateData")}getSeriesDomain(e){let{processedData:t,dataModel:n}=this;if(!t||!n)return[];let{keys:[a],values:h}=t.domain;if(e===this.getCategoryDirection()){let S=n.resolveProcessedDataDefById(this,"xValue");if((S==null?void 0:S.def.type)==="key"&&(S==null?void 0:S.def.valueType)==="category")return a;let E=e===kj.Y,L=this.getCategoryAxis().isReversed();return this.padBandExtent(a,L!==E)}else{let S=n.resolveProcessedDataIndexById(this,"yCurrent"),E=h[S],L=[Math.min(0,E[0]),Math.max(0,E[1])];return ISe(L)}}getSeriesRange(e,t){return[NaN,NaN]}createNodeData(){var vt;let{data:e,dataModel:t,processedData:n}=this,a=this.getCategoryAxis(),h=this.getValueAxis();if(!e||!a||!h||!t||n==null||n.rawData.length===0)return;let{line:S}=this.properties,E=a.scale,L=h.scale,_=this.getBarDirection()===kj.X,N=(vt=this.getBandwidth(a))!=null?vt:10,V=a.isReversed(),q=h.isReversed();if(n.type!=="ungrouped")return;let Y={itemId:this.properties.yKey,nodeData:[],labelData:[],pointData:[],scales:this.calculateScaling(),visible:this.visible};if(!this.visible)return Y;let J=[],re=t.resolveKeysById(this,"xValue",n),ce=t.resolveColumnById(this,"yRaw",n),he=t.resolveColumnById(this,"totalTypeValue",n),me=t.resolveColumnById(this,"yCurrent",n),we=t.resolveColumnById(this,"yPrevious",n),Me=t.resolveColumnById(this,"yCurrentTotal",n);function be(gt,bt,At){return gt||bt?{cumulativeValue:Me[At],trailingValue:bt?Fe:0}:{cumulativeValue:me[At],trailingValue:we[At]}}function Le(gt,bt,At,Rt,It){return gt?Rt:bt?(Rt!=null?Rt:0)-(It!=null?It:0):At}let Fe=0,{xKey:je,yKey:Xe,xName:nt,yName:lt}=this.properties;n.rawData.forEach((gt,bt)=>{let At=he[bt],Rt=this.isSubtotal(At),It=this.isTotal(At),Dt=It||Rt,jt=re[bt];if(jt==null)return;let Nt=Math.round(E.convert(jt)),zt=ce[bt],{cumulativeValue:Ut,trailingValue:Vt}=be(It,Rt,bt);Dt&&(Fe=Ut!=null?Ut:0);let Wt=Math.round(L.convert(Ut)),ci=Math.round(L.convert(Vt)),li=Le(It,Rt,zt,Ut,Vt),oi=(li!=null?li:0)>=0,vi=this.getSeriesItemType(oi,At),{fill:gi,stroke:fi,strokeWidth:ki,label:si}=this.getItemConfig(vi),di=oi?Wt:ci,Ii=oi?ci:Wt,bi=Math.max(ki,Math.abs(Ii-di)),wi={x:_?Math.min(di,Ii):Nt,y:_?Nt:Math.min(di,Ii),width:_?bi:N,height:_?N:bi},Li={x:wi.x+wi.width/2,y:wi.y+wi.height/2},Ln=Dt?Wt:ci,on=Math.floor(S.strokeWidth)%2/2,Dn=V?Wt:Ln,ln=V?Ln:Wt,ra,sa;_?(ra={x:Dn+on,y:wi.y},sa={x:ln+on,y:wi.y+wi.height}):(ra={x:wi.x,y:Dn+on},sa={x:wi.x+wi.width,y:ln+on});let gs={x:V?sa.x:ra.x,y:V?sa.y:ra.y,x2:V?ra.x:sa.x,y2:V?ra.y:sa.y,size:0};J.push(gs);let jl=vi==="subtotal"?"total":vi,dh=this.getLabelText(si,{itemId:jl,value:li,datum:gt,xKey:je,yKey:Xe,xName:nt,yName:lt}),Rs={index:bt,series:this,itemId:vi,datum:gt,datumIndex:bt,cumulativeValue:Ut!=null?Ut:0,xValue:jt,yValue:li,yKey:Xe,xKey:je,x:wi.x,y:wi.y,width:wi.width,height:wi.height,midPoint:Li,fill:gi,stroke:fi,strokeWidth:ki,opacity:1,label:pe({text:dh},ESe({isUpward:(li!=null?li:-1)>=0!==q,isVertical:!_,placement:si.placement,padding:si.padding,rect:wi}))};Y.nodeData.push(Rs),Y.labelData.push(Rs)});let ot=this.properties.line.enabled;return me!=null&&ot&&(Y.pointData=J),Y}updateSeriesItemTypes(){var N,V;let{dataModel:e,seriesItemTypes:t,processedData:n}=this;if(!e||!n)return;t.clear();let a=e.resolveProcessedDataIndexById(this,"yCurrentPositive"),h=e.resolveProcessedDataIndexById(this,"yCurrentNegative"),S=e.resolveProcessedDataIndexById(this,"totalTypeValue"),E=(N=n.domain.values[a])!=null?N:[],L=(V=n.domain.values[h])!=null?V:[];E.length>0&&t.add("positive"),L.length>0&&t.add("negative");let _=n==null?void 0:n.domain.values[S];_&&_.forEach(q=>{(q==="total"||q==="subtotal")&&t.add("total")})}isSubtotal(e){return e==="subtotal"}isTotal(e){return e==="total"}nodeFactory(){return new USe}getSeriesItemType(e,t){return t!=null?t:e?"positive":"negative"}getItemConfig(e){switch(e){case"positive":return this.properties.item.positive;case"negative":return this.properties.item.negative;case"subtotal":case"total":return this.properties.item.total}}updateDatumSelection(e){let{nodeData:t,datumSelection:n}=e,a=t!=null?t:[];return n.update(a)}getItemStyle(e,t,n,a){var Y,J,re,ce,he,me,we,Me;let{id:h,properties:S}=this,E=S.item[n==="subtotal"?"total":n],L=a?S.highlightStyle.item:void 0,{itemStyler:_}=E,{xKey:N,yKey:V}=S,q={fill:(Y=L==null?void 0:L.fill)!=null?Y:E.fill,fillOpacity:(J=L==null?void 0:L.fillOpacity)!=null?J:E.fillOpacity,stroke:(re=L==null?void 0:L.stroke)!=null?re:E.stroke,strokeWidth:(ce=L==null?void 0:L.strokeWidth)!=null?ce:E.strokeWidth,strokeOpacity:(he=L==null?void 0:L.strokeOpacity)!=null?he:E.strokeOpacity,lineDash:(we=(me=L==null?void 0:L.lineDash)!=null?me:E.lineDash)!=null?we:[],lineDashOffset:(Me=L==null?void 0:L.lineDashOffset)!=null?Me:E.lineDashOffset,cornerRadius:E.cornerRadius};if(_!=null){let be=this.cachedDatumCallback(KY(e,a?"highlight":"node"),()=>_(pe({seriesId:h,itemId:n,datum:t,xKey:N,yKey:V,highlighted:a},q)));Object.assign(q,be)}return q}updateDatumNodes(e){let{datumSelection:t,isHighlight:n}=e,{id:a}=this,{yKey:h,highlightStyle:{item:S}}=this.properties,E=this.getCategoryAxis(),L=OSe(E==null?void 0:E.scale,E==null?void 0:E.visibleRange,this.smallestDataInterval,this.largestDataInterval),_=this.getCategoryDirection()===kj.X;t.each((N,V)=>{let q=V.itemId,{fillOpacity:Y,strokeOpacity:J,strokeWidth:re,lineDash:ce,lineDashOffset:he,cornerRadius:me,itemStyler:we,shadow:Me}=this.getItemConfig(q),be={fill:V.fill,stroke:V.stroke,fillOpacity:Y,strokeOpacity:J,lineDash:ce,lineDashOffset:he,fillShadow:Me,strokeWidth:this.getStrokeWidth(re),cornerRadius:me},Le=_?V.width>0:V.height>0,Fe=PSe(this,KY(V.index,"node"),{datum:V,isHighlighted:n,style:be,highlightStyle:S,itemStyler:we,seriesId:a,itemId:V.itemId,value:V.yValue,yKey:h});Fe.crisp=L,Fe.visible=Le,LSe(N,Fe)})}updateLabelSelection(e){let{labelData:t,labelSelection:n}=e;if(t.length===0)return n.update([]);let a=t.filter(h=>{let{label:S}=this.getItemConfig(h.itemId);return S.enabled});return n.update(a)}updateLabelNodes(e){e.labelSelection.each((t,n)=>{_Se(t,this.getItemConfig(n.itemId).label,n.label)})}getTooltipContent(e){let{id:t,dataModel:n,processedData:a,properties:h}=this,{xKey:S,xName:E,yKey:L,yName:_,tooltip:N}=h,V=this.getCategoryAxis(),q=this.getValueAxis();if(!n||!a||a.rawData.length===0||!V||!q)return;let{datumIndex:Y}=e,J=a.rawData[Y],re=n.resolveKeysById(this,"xValue",a)[Y],ce=n.resolveColumnById(this,"yRaw",a)[Y],he=n.resolveColumnById(this,"yCurrentTotal",a),me=n.resolveColumnById(this,"totalTypeValue",a);if(re==null)return;let we=me[Y],Me=(ce!=null?ce:0)>=0,be=this.getSeriesItemType(Me,we),Le;if(this.isTotal(we))Le=he[Y];else if(this.isSubtotal(we)){Le=he[Y];for(let je=Y-1;je>=0;je-=1)if(this.isSubtotal(me[je])){Le=Le-he[je];break}}else Le=ce;let Fe=this.getItemStyle(String(Y),J,be,!1);return N.formatTooltip({heading:V.formatDatum(re),symbol:this.legendItemSymbol(be),data:[{label:_,fallbackLabel:L,value:q.formatDatum(Le)}]},pe({seriesId:t,datum:J,title:_,itemId:be,xKey:S,xName:E,yKey:L,yName:_},Fe))}legendItemSymbol(e){let{fill:t,stroke:n,fillOpacity:a,strokeOpacity:h,strokeWidth:S}=this.getItemConfig(e);return{marker:{fill:t,stroke:n,fillOpacity:a,strokeOpacity:h,strokeWidth:S}}}getLegendData(e){if(e!=="category")return[];let{id:t,seriesItemTypes:n}=this,a=[],h=E=>E.charAt(0).toUpperCase()+E.substring(1),{showInLegend:S}=this.properties;return n.forEach(E=>{let{name:L}=this.getItemConfig(E);a.push({legendType:"category",id:t,itemId:E,seriesId:t,enabled:!0,label:{text:L!=null?L:h(E)},symbol:this.legendItemSymbol(E),hideInLegend:!S,isFixed:!0})}),a}toggleSeriesItem(){}animateEmptyUpdateReady({datumSelection:e,labelSelection:t,contextData:n,paths:a}){let h=FSe(NSe(this.isVertical(),this.axes,"normal"));KSe.fromToMotion(this.id,"datums",this.ctx.animationManager,[e],h),BSe(this,"labels",this.ctx.animationManager,t);let{pointData:S}=n;if(!S)return;let[E]=a;this.isVertical()?this.animateConnectorLinesVertical(E,S):this.animateConnectorLinesHorizontal(E,S)}animateConnectorLinesHorizontal(e,t){let{path:n}=e;this.updateLineNode(e);let a=this.getValueAxis(),h=a==null?void 0:a.isReversed(),S=h?(N,V)=>N<V:(N,V)=>N>V,E=a==null?void 0:a.scale.convert(0),L=t.reduce((N,V)=>(S(V.x,N)&&(N=V.x),N),h?1/0:0),_=(N,V,q,Y,J)=>(N-V)/(q-V)*(J-Y)+Y;this.ctx.animationManager.animate({id:`${this.id}_connectors`,groupId:this.id,phase:"initial",from:E,to:L,ease:QE._ModuleSupport.Motion.easeOut,collapsable:!1,onUpdate(N){n.clear(!0),t.forEach((V,q)=>{let Y=_(N,E,L,E,V.x),J=_(N,E,L,E,V.x2);q!==0&&n.lineTo(Y,V.y),n.moveTo(J,V.y2)}),e.checkPathDirty()}})}animateConnectorLinesVertical(e,t){let{path:n}=e;this.updateLineNode(e);let a=this.getValueAxis(),h=a==null?void 0:a.isReversed(),S=h?(N,V)=>N>V:(N,V)=>N<V,E=a==null?void 0:a.scale.convert(0),L=t.reduce((N,V)=>(S(V.y,N)&&(N=V.y),N),h?0:1/0),_=(N,V,q,Y,J)=>(N-V)/(q-V)*(J-Y)+Y;this.ctx.animationManager.animate({id:`${this.id}_connectors`,groupId:this.id,phase:"initial",from:E,to:L,ease:QE._ModuleSupport.Motion.easeOut,collapsable:!1,onUpdate(N){n.clear(!0),t.forEach((V,q)=>{let Y=_(N,E,L,E,V.y),J=_(N,E,L,E,V.y2);q!==0&&n.lineTo(V.x,Y),n.moveTo(V.x2,J)}),e.checkPathDirty()}})}animateReadyResize(e){super.animateReadyResize(e),this.resetConnectorLinesPath(e)}updatePaths(e){this.resetConnectorLinesPath({contextData:e.contextData,paths:e.paths})}resetConnectorLinesPath({contextData:e,paths:t}){if(t.length===0)return;let[n]=t;this.updateLineNode(n);let{path:a}=n;a.clear(!0);let{pointData:h}=e;h&&(h.forEach((S,E)=>{E!==0&&a.lineTo(S.x,S.y),a.moveTo(S.x2,S.y2)}),n.checkPathDirty())}updateLineNode(e){let{stroke:t,strokeWidth:n,strokeOpacity:a,lineDash:h,lineDashOffset:S}=this.properties.line;e.setProperties({fill:void 0,stroke:t,strokeWidth:this.getStrokeWidth(n),strokeOpacity:a,lineDash:h,lineDashOffset:S,lineJoin:"round",pointerEvents:QE._ModuleSupport.PointerEvents.None})}isLabelEnabled(){let{positive:e,negative:t,total:n}=this.properties.item;return e.label.enabled||t.label.enabled||n.label.enabled}onDataChange(){}computeFocusBounds({datumIndex:e}){var t;return WSe((t=this.contextNodeData)==null?void 0:t.nodeData[e])}};Aj.className="WaterfallSeries",Aj.type="waterfall";var Dj=(xt(),D(wt)),Ej={strokeWidth:0,label:{enabled:!1,fontStyle:void 0,fontWeight:"normal",fontSize:12,fontFamily:Dj._ModuleSupport.ThemeSymbols.DEFAULT_FONT_FAMILY,color:Dj._ModuleSupport.ThemeSymbols.DEFAULT_LABEL_COLOUR,formatter:void 0,placement:"outside-end"}},qSe={series:{item:{positive:Ej,negative:Ej,total:Ej},line:{stroke:Dj._ModuleSupport.ThemeSymbols.PALETTE_NEUTRAL_STROKE,strokeOpacity:1,lineDash:[0],lineDashOffset:0,strokeWidth:2}},legend:{enabled:!0,toggleSeries:!1}},{ThemeSymbols:Ij,ThemeConstants:lz}=BY._ModuleSupport,YSe={type:"series",optionsKey:"series[]",packageType:"enterprise",chartTypes:["cartesian"],identifier:"waterfall",solo:!0,moduleFactory:e=>new Aj(e),tooltipDefaults:{range:"exact"},defaultAxes:BY._ModuleSupport.swapAxisCondition([{type:lz.CARTESIAN_AXIS_TYPE.NUMBER,position:lz.CARTESIAN_POSITION.LEFT},{type:lz.CARTESIAN_AXIS_TYPE.CATEGORY,position:lz.CARTESIAN_POSITION.BOTTOM}],e=>(e==null?void 0:e.direction)==="horizontal"),themeTemplate:qSe,paletteFactory:({takeColors:e,colorsCount:t,userPalette:n,palette:a})=>{if(n==="user-indexed"){let{fills:h,strokes:S}=e(t);return{line:{stroke:a.neutral.stroke},item:{positive:{fill:h[0],stroke:S[0]},negative:{fill:h[1],stroke:S[1]},total:{fill:h[2],stroke:S[2]}}}}return{line:{stroke:a.neutral.stroke},item:{positive:{fill:a.altUp.fill,stroke:a.altUp.stroke,label:{color:Ij.DEFAULT_LABEL_COLOUR}},negative:{fill:a.altDown.fill,stroke:a.altDown.stroke,label:{color:Ij.DEFAULT_LABEL_COLOUR}},total:{fill:a.neutral.fill,stroke:a.neutral.stroke,label:{color:Ij.DEFAULT_LABEL_COLOUR}}}}}},XSe=`.ag-watermark{position:absolute;bottom:20px;right:25px;font-weight:700;font-family:Impact,sans-serif;font-size:19px;opacity:.7;animation:1s ease-out 3s ag-watermark-fadeout;color:#9b9b9b;pointer-events:none;&:before{content:"";display:block;height:40px;width:170px;background-image:url(data:image/svg+xml;base64, );background-repeat:no-repeat;background-size:170px 40px}>span{padding-left:.7rem}}@keyframes ag-watermark-fadeout{0%{opacity:.5}to{opacity:0}}.ag-charts-dialog{display:flex;flex-direction:column;font-size:14px}.ag-charts-dialog__tabs{display:flex;flex-direction:column}.ag-charts-dialog__header{border-bottom:1px solid var(--ag-charts-border-color);display:flex}.ag-charts-dialog__tab-list{display:flex;gap:var(--ag-charts-input-spacing)}.ag-charts-dialog__drag-handle{align-items:center;color:inherit;cursor:grab;display:flex;padding:1px 6px;text-align:center}.ag-charts-dialog__drag-handle--dragging{cursor:grabbing}.ag-charts-dialog__tab-button{background:none;border:0;border-bottom:2px solid transparent;border-radius:0;color:var(--ag-charts-dialog-tab-color--inactive);margin-bottom:-1px;padding:var(--ag-charts-input-padding) calc(var(--ag-charts-input-padding) / 2)}.ag-charts-dialog__tab-button:hover{background:none}.ag-charts-dialog__tab-button--active{border-color:currentColor;color:inherit}.ag-charts-dialog__drag-handle+.ag-charts-dialog__tab-button{margin-left:calc(var(--ag-charts-input-spacing) * -1)}.ag-charts-button.ag-charts-dialog__close-button{background:none;border:0;margin-left:auto;padding:1px 6px}.ag-charts-dialog__close-button:focus-visible{outline:var(--ag-charts-focus-border);box-shadow:var(--ag-charts-focus-border-shadow);z-index:calc(var(--ag-charts-layer-ui-overlay) + 1)}.ag-charts-dialog__tab-panel{display:none;flex-direction:column;gap:calc(var(--ag-charts-input-spacing) * 2);margin:0 calc(var(--ag-charts-input-spacing) * 2);padding:calc(var(--ag-charts-input-spacing) * 2) 0}.ag-charts-dialog__tab-panel--active{display:flex}.ag-charts-dialog__input-group-line{display:flex;gap:18px}.ag-charts-dialog__input-group{align-items:center;display:flex;font-size:12px}.ag-charts-dialog__input-group-label{color:var(--ag-charts-dialog-input-group-label-color);margin-right:5px}.ag-charts-dialog__input-group-label[for]{cursor:pointer}.ag-charts-dialog__button{border-radius:0;margin-right:-1px}.ag-charts-dialog__button.ag-charts-dialog__button--active{background:var(--ag-charts-input-background-color--active);border-color:var(--ag-charts-input-border-color--active);color:var(--ag-charts-input-color--active);z-index:var(--input-layer-active)}.ag-charts-dialog__button:first-child,.ag-charts-dialog__input-group-label+.ag-charts-dialog__button{border-bottom-left-radius:var(--ag-charts-input-border-radius);border-top-left-radius:var(--ag-charts-input-border-radius)}.ag-charts-dialog__button:last-child{border-bottom-right-radius:var(--ag-charts-input-border-radius);border-top-right-radius:var(--ag-charts-input-border-radius)}.ag-charts-dialog__color-picker-button{--color: #000;background:var(--color);border:none;color:transparent;height:26px;width:26px}.ag-charts-dialog__color-picker-button:hover{background:var(--color)}.ag-charts-dialog__color-picker-button--multi-color,.ag-charts-dialog__color-picker-button--multi-color:hover{background:linear-gradient(135deg,red 0%,#ff0 calc(100% * 1 / 6),#0f0 calc(100% * 2 / 6),#0ff 50%,#00f calc(100% * 4 / 6),#f0f calc(100% * 5 / 6),red 100%)}.ag-charts-color-picker{width:190px;padding:8px;--h: 0;--s: 0;--v: 0;--a: 0;--color: #000;--color-a: #000;--thumb-size: 18px;--inner-width: 172px;--track-height: 12px;--palette-height: 136px;--checker: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="4" height="4"><rect x="0" y="0" width="4" height="4" fill="%23fff"/><path d="M0 0H2V4H4V2H0Z" fill="%23b2b2b2"/></svg>');--multi-color: linear-gradient( 135deg, #f00 0% , #ff0 calc(100% * 1 / 6), #0f0 calc(100% * 2 / 6), #0ff 50% , #00f calc(100% * 4 / 6), #f0f calc(100% * 5 / 6), #f00 100% )}.ag-charts-color-picker__content{display:flex;flex-direction:column}.ag-charts-color-picker__palette{position:relative;width:100%;height:var(--palette-height);margin-bottom:8px;background:linear-gradient(to bottom,#0000,#000),linear-gradient(to right,#fff,#fff0) hsl(var(--h),100%,50%);border-radius:6px;box-shadow:inset 0 0 0 1px #0003}.ag-charts-color-picker__palette:after{content:"";position:absolute;display:block;top:calc(var(--thumb-size) * -.5 + (1 - var(--v)) * 100%);left:calc(var(--thumb-size) * -.5 + var(--s) * 100%);background:var(--color);width:var(--thumb-size);height:var(--thumb-size);border-radius:99px;box-shadow:var(--box-shadow);--box-shadow: inset 0 0 0 3px white, inset 0 0 1px 3px #0006, 0 0 5px #00000038}.ag-charts-color-picker__palette:focus-visible:after{outline:var(--ag-charts-focus-border);box-shadow:var(--box-shadow),0 0 0 2px #fff8,var(--ag-charts-focus-border-shadow)}.ag-charts-color-picker__color-row{display:flex;gap:8px;align-items:center;margin-bottom:4px;--inset: calc((var(--thumb-size) - var(--track-height)) / 2)}.ag-charts-color-picker__hue-input,.ag-charts-color-picker__alpha-input{-webkit-appearance:none;display:block;position:relative;padding:0;margin:0 calc(var(--inset) * -1);border:0;height:var(--thumb-size);width:auto;background:transparent;--inset: calc((var(--thumb-size) - var(--track-height)) / 2)}.ag-charts-color-picker__hue-input::-webkit-slider-thumb,.ag-charts-color-picker__alpha-input::-webkit-slider-thumb{-webkit-appearance:none;width:var(--thumb-size);height:var(--thumb-size);border-radius:99px;box-shadow:var(--box-shadow);--box-shadow: inset 0 0 0 3px white, inset 0 0 1px 3px #0006, 0 0 5px #00000038;transform:translateZ(0)}.ag-charts-color-picker__hue-input::-webkit-slider-thumb{background:hsl(var(--h),100%,50%)}.ag-charts-color-picker__alpha-input::-webkit-slider-thumb{background:transparent}.ag-charts-color-picker__alpha-input--opaque::-webkit-slider-thumb{background:var(--color)}.ag-charts-color-picker__hue-input:focus-visible::-webkit-slider-thumb,.ag-charts-color-picker__alpha-input:focus-visible::-webkit-slider-thumb{outline:var(--ag-charts-focus-border);box-shadow:var(--box-shadow),var(--ag-charts-focus-border-shadow)}.ag-charts-color-picker__hue-input:before,.ag-charts-color-picker__alpha-input:before{position:absolute;content:"";display:block;top:calc(50% - var(--track-height) / 2);left:var(--inset);right:var(--inset);height:var(--track-height);border-radius:99px;box-shadow:inset 0 0 0 1px #0003}.ag-charts-color-picker__multi-color-button{width:36px;margin-left:var(--inset);height:var(--track-height);border-radius:99px;border:0;background:var(--multi-color);box-shadow:inset 0 0 0 1px #0003}.ag-charts-color-picker__multi-color-button--hidden{display:none}.ag-charts-color-picker__multi-color-button--active{box-shadow:inset 0 0 0 1px #0003;outline-offset:1px;outline:2px solid #2196f3}.ag-charts-color-picker__hue-input{flex:1 0 0}.ag-charts-color-picker__hue-input:before{background:linear-gradient(to right,red,red calc((100% - var(--track-height)) * 0 / 6 + var(--track-height) / 2),#ff0 calc((100% - var(--track-height)) * 1 / 6 + var(--track-height) / 2),#0f0 calc((100% - var(--track-height)) * 2 / 6 + var(--track-height) / 2),#0ff calc((100% - var(--track-height)) * 3 / 6 + var(--track-height) / 2),#00f calc((100% - var(--track-height)) * 4 / 6 + var(--track-height) / 2),#f0f calc((100% - var(--track-height)) * 5 / 6 + var(--track-height) / 2),red calc((100% - var(--track-height)) * 6 / 6 + var(--track-height) / 2))}.ag-charts-color-picker__alpha-input{margin-bottom:7px}.ag-charts-color-picker__alpha-input:before{background:linear-gradient(to right,transparent,var(--color)),var(--checker) top left / 4px 4px}.ag-charts-color-picker__color-field{display:flex;border:var(--ag-charts-border);background:var(--ag-charts-background-color);border-radius:4px;overflow:hidden}.ag-charts-color-picker__color-field:has(:focus-visible){border-color:var(--ag-charts-active-color);box-shadow:var(--ag-charts-focus-border-shadow)}.ag-charts-color-picker__color-label{width:16px;height:16px;margin:7px 0 7px 7px;color:transparent;background:linear-gradient(to right,var(--color-a),var(--color-a)),var(--checker) top left / 4px 4px;border-radius:2px;box-shadow:inset 0 0 0 1px #0003}.ag-charts-color-picker__color-label--multi-color{background:var(--multi-color)}.ag-charts-color-picker__color-input{flex:1;min-width:0;padding:7px 7px 7px 8px;border:0;margin:0;color:inherit;background:transparent;font-variant:tabular-nums}.ag-charts-color-picker__color-input:focus-visible{border:none;outline:none}.ag-charts-annotations__line-stroke-width-menu,.ag-charts-annotations__line-style-type-menu,.ag-charts-annotations__text-size-menu{.ag-charts-menu__row:first-child{border-radius:0}}.ag-charts-annotations__stroke-width-button:before{--stroke-width-color: var(--ag-charts-toolbar-foreground-color);background:var(--stroke-width-color);content:"";margin-right:var(--ag-charts-toolbar-button-padding);height:min(var(--stroke-width),20px);width:12px}.ag-charts-annotations__stroke-width-button[aria-disabled=true]:before{filter:grayscale(1);opacity:.5}.ag-charts-annotations__color-picker-button{--emblem: var(--color)}.ag-charts-annotations__color-picker-button--multi-color{--emblem: linear-gradient( to right, #f00 0% , #ff0 calc(100% * 1 / 6), #0f0 calc(100% * 2 / 6), #0ff 50% , #00f calc(100% * 4 / 6), #f0f calc(100% * 5 / 6), #f00 100% )}.ag-charts-annotations__color-picker-button:after{content:"";display:block;position:absolute;bottom:3px;left:5px;right:5px;height:4px;border-radius:99px;box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--ag-charts-foreground-color) 10%,transparent);background:var(--emblem)}.ag-charts-annotations__color-picker-button[aria-disabled=true]:after{filter:grayscale(1);opacity:.5}.ag-charts-annotations__toolbar-menu{min-width:200px}.ag-charts-annotations__text-size-menu{--item-padding: 4px 8px;border-top-left-radius:0;border-top-right-radius:0;width:34px}.ag-charts-annotations__line-stroke-width-menu{--item-padding: 6px;column-gap:6px}.ag-charts-annotations__line-style-type-menu{--item-padding: 6px;column-gap:0}.ag-charts-annotations__axis-button-wrapper{position:absolute;left:0;top:0;user-select:none;font:16px Verdana,sans-serif;overflow:hidden;white-space:nowrap;z-index:var(--ag-charts-layer-annotations);box-sizing:border-box}.ag-charts-annotations__axis-button-wrapper--hidden{display:none}.ag-charts-annotations__axis-button{cursor:pointer;border:none;border-radius:2px;padding:0;line-height:16px;background-color:var(--ag-charts-axis-label-background-color);color:var(--ag-charts-axis-label-color)}.ag-charts-annotations__axis-button:hover{opacity:.8;color:var(--ag-charts-axis-label-color)}.ag-charts-dialog--annotation-settings{min-height:233px;width:289px}.ag-charts-dialog--annotation-settings .ag-charts-textarea{height:calc(10px * 2 + var(--line-height) * 1em * 3 + 2px);overflow-y:auto;resize:vertical}.ag-charts-context-menu{background:#f8f8f8;border:1px solid #babfc7;border-radius:5px;box-shadow:0 1px 4px 1px #babfc766;color:#181d1f;font:13px Verdana,sans-serif;transition:transform .1s ease;white-space:nowrap;z-index:var(--ag-charts-layer-ui-overlay)}.ag-charts-context-menu.ag-charts-dark-context-menu{color:#fff;background:#15181c}.ag-charts-context-menu__cover{position:fixed;left:0;top:0}.ag-charts-context-menu__menu{display:flex;flex-direction:column;padding:.5em 0}.ag-charts-context-menu__menu:focus{outline:none}.ag-charts-context-menu__item{background:none;border:none;box-sizing:border-box;font:inherit;padding:.5em 1em;text-align:left;-webkit-appearance:none;-moz-appearance:none}.ag-charts-context-menu__item.ag-charts-dark-context-menu{color:#fff}.ag-charts-context-menu__item:focus{background:#2196f31a}.ag-charts-context-menu__item:focus.ag-charts-dark-context-menu{background:#2196f31a}.ag-charts-context-menu__item:active{background:#2196f333}.ag-charts-context-menu__item:active.ag-charts-dark-context-menu{background:#2196f31a}.ag-charts-context-menu__item:focus-visible{outline:var(--ag-charts-focus-border);box-shadow:var(--ag-charts-focus-border-shadow);z-index:calc(var(--ag-charts-layer-ui-overlay) + 1)}.ag-charts-context-menu__item[aria-disabled=true]{border:none;opacity:.5;text-align:left}.ag-charts-context-menu__item[aria-disabled=true]:focus{background:inherit;cursor:inherit}.ag-charts-context-menu__divider{margin:5px 0;background:#babfc7;height:1px}.ag-charts-context-menu__divider.ag-charts-dark-context-menu{background:#2196f31a}.ag-charts-crosshair-label{position:absolute;left:0;top:0;user-select:none;pointer-events:none;font:12px Verdana,sans-serif;overflow:hidden;white-space:nowrap;z-index:var(--ag-charts-layer-crosshair);box-sizing:border-box}.ag-charts-crosshair-label-content{padding:0 8px;border-radius:2px;line-height:20px;background-color:var(--ag-charts-axis-label-background-color);color:var(--ag-charts-axis-label-color)}.ag-charts-crosshair-label--hidden{visibility:hidden!important}.ag-charts-text-input{position:absolute}.ag-charts-text-input__textarea{display:block;height:100%;width:100%;border:0;background:none;line-height:1.38;outline:none;transform:translateY(.09em)}.ag-charts-text-input__textarea[placeholder]:empty:before{content:attr(placeholder);color:var(--ag-charts-input-placeholder-color);font-weight:400}.ag-charts-text-input__textarea[placeholder]:not(:empty):before{content:""}.ag-charts-chart-toolbar__menu{min-width:200px}.ag-charts-range-buttons .ag-charts-toolbar__button{padding:var(--ag-charts-toolbar-button-padding) calc(var(--ag-charts-toolbar-button-padding) * 1.5)}.ag-charts-zoom-buttons{align-items:center;display:flex;height:calc(var(--ag-charts-toolbar-size) + 10px);justify-content:center;overflow:hidden;padding-bottom:10px;pointer-events:none;width:100%;.ag-charts-toolbar{--ag-charts-toolbar-size: var(--ag-charts-toolbar-size-small);--ag-charts-toolbar-font-size: var(--ag-charts-toolbar-font-size-small);--ag-charts-toolbar-button-padding: var(--ag-charts-toolbar-button-padding-small);display:flex;height:var(--ag-charts-toolbar-size);justify-content:center;opacity:1;pointer-events:auto;transition:opacity .2s ease-in-out,transform .4s ease-in-out;.ag-charts-toolbar__button--first{border-bottom-left-radius:var(--ag-charts-button-radius);border-top-left-radius:var(--ag-charts-button-radius)}.ag-charts-toolbar__button--last{border-bottom-right-radius:var(--ag-charts-button-radius);border-top-right-radius:var(--ag-charts-button-radius)}.ag-charts-toolbar__label{padding-left:calc(var(--ag-charts-toolbar-gap) / 2);padding-right:calc(var(--ag-charts-toolbar-gap) / 2)}.ag-charts-toolbar__icon+.ag-charts-toolbar__label{padding-left:0}}.ag-charts-toolbar__button--gap{margin-left:var(--ag-charts-toolbar-gap)}.ag-charts-zoom-buttons__toolbar--hidden{opacity:0;transition:opacity .4s ease-in-out,transform .4s ease-in-out}}.ag-charts-shared-toolbar{gap:var(--ag-charts-toolbar-gap);.ag-charts-toolbar__button{border-radius:var(--ag-charts-button-radius);margin:0}}
`;function YY(){s2._ModuleSupport.moduleRegistry.register(mee,Eee,cte,Zoe,rre,Nce,sse,lde,Vde,vue,rhe,khe,mve,gre,yre,Lre,Fre,tse,ype,bge,vme,Ype,Hme,Ife,rfe,Lse,lle,yce,dge,hve,Ree,wye,Mye,nbe,mbe,ete,Ybe,rte,p0e,FCe,qse,_ve,G0e,Xse,Q0e,yle,ySe,YSe,ece),s2._ModuleSupport.enterpriseModule.isEnterprise=!0,s2._ModuleSupport.enterpriseModule.styles=XSe,s2._ModuleSupport.enterpriseModule.licenseManager=e=>{var t,n;return new XR((n=(t=e.container)==null?void 0:t.ownerDocument)!=null?n:typeof document=="undefined"?void 0:document)},s2._ModuleSupport.enterpriseModule.injectWatermark=wce}RJ(Z3,(xt(),D(wt)),ee.exports);var Ly=(xt(),D(wt)),ZSe={setLicenseKey(e){XR.setLicenseKey(e)}};function XY(){YY(),(0,Ly.setupCommunityModules)()}var $Se={VERSION:Ly.VERSION,_Scene:Ly._Scene,_Theme:Ly._Theme,_Util:Ly._Util,create:Ly.AgCharts.create.bind(Ly.AgCharts),createSparkline:Ly.AgCharts.__createSparkline.bind(Ly.AgCharts),setup:XY,setGridContext:XR.setGridContext.bind(XR),setLicenseKey:XR.setLicenseKey.bind(XR),isEnterprise:!0};if(YY(),typeof ee.exports=="object"&&typeof ae=="object"){var QSe=(e,t,n,a)=>{if(t&&typeof t=="object"||typeof t=="function")for(let h of Object.getOwnPropertyNames(t))!Object.prototype.hasOwnProperty.call(e,h)&&h!==n&&Object.defineProperty(e,h,{get:()=>t[h],enumerable:!(a=Object.getOwnPropertyDescriptor(t,h))||a.enumerable});return e};ee.exports=QSe(ee.exports,ae)}return ee.exports})});var WZ=yP(co=>{(function(){function ae(ye,ke){return[-ye[0][ke]+3*ye[1][ke]+-3*ye[2][ke]+ye[3][ke],3*ye[0][ke]-6*ye[1][ke]+3*ye[2][ke],-3*ye[0][ke]+3*ye[1][ke],ye[0][ke]]}function ee(ye){return[ae(ye,"x"),ae(ye,"y")]}function de(ye){return 0>ye?-1:ye>0?1:0}function ne(ye,ke,Ie,ze){var Ye,xe,Te=ke/ye,Ae=Ie/ye,Ne=ze/ye,Re=(3*Ae-Math.pow(Te,2))/9,Oe=(9*Te*Ae-27*Ne-2*Math.pow(Te,3))/54,Ve=Math.pow(Re,3)+Math.pow(Oe,2),Ue=[];if(Ve>=0)Ye=de(Oe+Math.sqrt(Ve))*Math.pow(Math.abs(Oe+Math.sqrt(Ve)),1/3),xe=de(Oe-Math.sqrt(Ve))*Math.pow(Math.abs(Oe-Math.sqrt(Ve)),1/3),Ue[0]=-Te/3+(Ye+xe),Ue[1]=-Te/3-(Ye+xe)/2,Ue[2]=-Te/3-(Ye+xe)/2,Math.abs(Math.sqrt(3)*(Ye-xe)/2)!==0&&(Ue[1]=-1,Ue[2]=-1);else{var Ee=Math.acos(Oe/Math.sqrt(-Math.pow(Re,3)));Ue[0]=2*Math.sqrt(-Re)*Math.cos(Ee/3)-Te/3,Ue[1]=2*Math.sqrt(-Re)*Math.cos((Ee+2*Math.PI)/3)-Te/3,Ue[2]=2*Math.sqrt(-Re)*Math.cos((Ee+4*Math.PI)/3)-Te/3}for(var tt=0;3>tt;tt++)(Ue[tt]<0||Ue[tt]>1)&&(Ue[tt]=-1);return Ue}typeof Math.sgn=="undefined"&&(Math.sgn=function(ye){return ye==0?0:ye>0?1:-1});var x={subtract:function(ye,ke){return{x:ye.x-ke.x,y:ye.y-ke.y}},dotProduct:function(ye,ke){return ye.x*ke.x+ye.y*ke.y},square:function(ye){return Math.sqrt(ye.x*ye.x+ye.y*ye.y)},scale:function(ye,ke){return{x:ye.x*ke,y:ye.y*ke}}},p=64,M=Math.pow(2,-p-1),A=function(ye,ke){for(var Ie=[],ze=D(ye,ke),Ye=ke.length-1,xe=2*Ye-1,Te=f(ze,xe,Ie,0),Ae=x.subtract(ye,ke[0]),Ne=x.square(Ae),Re=0,Oe=0;Te>Oe;Oe++){Ae=x.subtract(ye,r(ke,Ye,Ie[Oe],null,null));var Ve=x.square(Ae);Ne>Ve&&(Ne=Ve,Re=Ie[Oe])}return Ae=x.subtract(ye,ke[Ye]),Ve=x.square(Ae),Ne>Ve&&(Ne=Ve,Re=1),{location:Re,distance:Ne}},F=function(ye,ke){var Ie=A(ye,ke);return{point:r(ke,ke.length-1,Ie.location,null,null),location:Ie.location}},D=function(ye,ke){for(var Ie=ke.length-1,ze=2*Ie-1,Ye=[],xe=[],Te=[],Ae=[],Ne=[[1,.6,.3,.1],[.4,.6,.6,.4],[.1,.3,.6,1]],Re=0;Ie>=Re;Re++)Ye[Re]=x.subtract(ke[Re],ye);for(var Re=0;Ie-1>=Re;Re++)xe[Re]=x.subtract(ke[Re+1],ke[Re]),xe[Re]=x.scale(xe[Re],3);for(var Oe=0;Ie-1>=Oe;Oe++)for(var Ve=0;Ie>=Ve;Ve++)Te[Oe]||(Te[Oe]=[]),Te[Oe][Ve]=x.dotProduct(xe[Oe],Ye[Ve]);for(Re=0;ze>=Re;Re++)Ae[Re]||(Ae[Re]=[]),Ae[Re].y=0,Ae[Re].x=parseFloat(Re)/ze;for(var Ue=Ie,Ee=Ie-1,tt=0;Ue+Ee>=tt;tt++){var at=Math.max(0,tt-Ee),ut=Math.min(tt,Ue);for(Re=at;ut>=Re;Re++){var Mt=tt-Re;Ae[Re+Mt].y+=Te[Mt][Re]*Ne[Mt][Re]}}return Ae},f=function(ye,ke,Ie,ze){var Ye,xe,Te=[],Ae=[],Ne=[],Re=[];switch(v(ye,ke)){case 0:return 0;case 1:if(ze>=p)return Ie[0]=(ye[0].x+ye[ke].x)/2,1;if(u(ye,ke))return Ie[0]=s(ye,ke),1}r(ye,ke,.5,Te,Ae),Ye=f(Te,ke,Ne,ze+1),xe=f(Ae,ke,Re,ze+1);for(var Oe=0;Ye>Oe;Oe++)Ie[Oe]=Ne[Oe];for(var Oe=0;xe>Oe;Oe++)Ie[Oe+Ye]=Re[Oe];return Ye+xe},v=function(ye,ke){var Ie,ze,Ye=0;Ie=ze=Math.sgn(ye[0].y);for(var xe=1;ke>=xe;xe++)Ie=Math.sgn(ye[xe].y),Ie!=ze&&Ye++,ze=Ie;return Ye},u=function(ye,ke){var Ie,ze,Ye,xe,Te,Ae,Ne,Re,Oe,Ve,Ue,Ee,tt,at,ut,Mt;Ae=ye[0].y-ye[ke].y,Ne=ye[ke].x-ye[0].x,Re=ye[0].x*ye[ke].y-ye[ke].x*ye[0].y;var St,ft;St=ft=0;for(var kt=1;ke>kt;kt++){var Et=Ae*ye[kt].x+Ne*ye[kt].y+Re;Et>St?St=Et:ft>Et&&(ft=Et)}return Ue=0,Ee=1,tt=0,at=Ae,ut=Ne,Mt=Re-St,Oe=Ue*ut-at*Ee,Ve=1/Oe,ze=(Ee*Mt-ut*tt)*Ve,at=Ae,ut=Ne,Mt=Re-ft,Oe=Ue*ut-at*Ee,Ve=1/Oe,Ye=(Ee*Mt-ut*tt)*Ve,xe=Math.min(ze,Ye),Te=Math.max(ze,Ye),Ie=Te-xe,M>Ie?1:0},s=function(ye,ke){var Ie=1,ze=0,Ye=ye[ke].x-ye[0].x,xe=ye[ke].y-ye[0].y,Te=ye[0].x-0,Ae=ye[0].y-0,Ne=Ye*ze-xe*Ie,Re=1/Ne,Oe=(Ye*Ae-xe*Te)*Re;return 0+Ie*Oe},r=function(ye,ke,Ie,ze,Ye){for(var xe=[[]],Te=0;ke>=Te;Te++)xe[0][Te]=ye[Te];for(var Ae=1;ke>=Ae;Ae++)for(var Te=0;ke-Ae>=Te;Te++)xe[Ae]||(xe[Ae]=[]),xe[Ae][Te]||(xe[Ae][Te]={}),xe[Ae][Te].x=(1-Ie)*xe[Ae-1][Te].x+Ie*xe[Ae-1][Te+1].x,xe[Ae][Te].y=(1-Ie)*xe[Ae-1][Te].y+Ie*xe[Ae-1][Te+1].y;if(ze!=null)for(Te=0;ke>=Te;Te++)ze[Te]=xe[Te][0];if(Ye!=null)for(Te=0;ke>=Te;Te++)Ye[Te]=xe[ke-Te][Te];return xe[ke][0]},d={},g=function(ye){var ke=d[ye];if(!ke){ke=[];var Ie=function(){return function(Ve){return Math.pow(Ve,ye)}},ze=function(){return function(Ve){return Math.pow(1-Ve,ye)}},Ye=function(Ve){return function(Ue){return Ve}},xe=function(){return function(Ve){return Ve}},Te=function(){return function(Ve){return 1-Ve}},Ae=function(Ve){return function(Ue){for(var Ee=1,tt=0;tt<Ve.length;tt++)Ee*=Ve[tt](Ue);return Ee}};ke.push(new Ie);for(var Ne=1;ye>Ne;Ne++){for(var Re=[new Ye(ye)],Oe=0;ye-Ne>Oe;Oe++)Re.push(new xe);for(var Oe=0;Ne>Oe;Oe++)Re.push(new Te);ke.push(new Ae(Re))}ke.push(new ze),d[ye]=ke}return ke},m=function(ye,ke){for(var Ie=g(ye.length-1),ze=0,Ye=0,xe=0;xe<ye.length;xe++)ze+=ye[xe].x*Ie[xe](ke),Ye+=ye[xe].y*Ie[xe](ke);return{x:ze,y:Ye}},b=function(ye,ke){return Math.sqrt(Math.pow(ye.x-ke.x,2)+Math.pow(ye.y-ke.y,2))},w=function(ye){return ye[0].x===ye[1].x&&ye[0].y===ye[1].y},k=function(ye,ke,Ie){if(w(ye))return{point:ye[0],location:ke};for(var ze=m(ye,ke),Ye=0,xe=ke,Te=Ie>0?1:-1,Ae=null;Ye<Math.abs(Ie);)xe+=.005*Te,Ae=m(ye,xe),Ye+=b(Ae,ze),ze=Ae;return{point:Ae,location:xe}},R=function(ye){var ke=new Date().getTime();if(w(ye))return 0;for(var Ie=m(ye,0),ze=0,Ye=0,xe=1,Te=null;1>Ye;)Ye+=.005*xe,Te=m(ye,Ye),ze+=b(Te,Ie),Ie=Te;return console.log("length",new Date().getTime()-ke),ze},T=function(ye,ke,Ie){return k(ye,ke,Ie).point},z=function(ye,ke,Ie){return k(ye,ke,Ie).location},G=function(ye,ke){var Ie=m(ye,ke),ze=m(ye.slice(0,ye.length-1),ke),Ye=ze.y-Ie.y,xe=ze.x-Ie.x;return Ye===0?1/0:Math.atan(Ye/xe)},U=function(ye,ke,Ie){var ze=k(ye,ke,Ie);return ze.location>1&&(ze.location=1),ze.location<0&&(ze.location=0),G(ye,ze.location)},X=function(ye,ke,Ie,ze){ze=ze==null?0:ze;var Ye=k(ye,ke,ze),xe=G(ye,Ye.location),Te=Math.atan(-1/xe),Ae=Ie/2*Math.sin(Te),Ne=Ie/2*Math.cos(Te);return[{x:Ye.point.x+Ne,y:Ye.point.y+Ae},{x:Ye.point.x-Ne,y:Ye.point.y-Ae}]},Q=function(ye,ke,Ie,ze,Ye){var xe=ze-ke,Te=ye-Ie,Ae=ye*(ke-ze)+ke*(Ie-ye),Ne=ee(Ye),Re=[xe*Ne[0][0]+Te*Ne[1][0],xe*Ne[0][1]+Te*Ne[1][1],xe*Ne[0][2]+Te*Ne[1][2],xe*Ne[0][3]+Te*Ne[1][3]+Ae],Oe=ne.apply(null,Re),Ve=[];if(Oe!=null)for(var Ue=0;3>Ue;Ue++){var Ee,tt=Oe[Ue],at=Math.pow(tt,2),ut=Math.pow(tt,3),Mt=[Ne[0][0]*ut+Ne[0][1]*at+Ne[0][2]*tt+Ne[0][3],Ne[1][0]*ut+Ne[1][1]*at+Ne[1][2]*tt+Ne[1][3]];Ee=Ie-ye!==0?(Mt[0]-ye)/(Ie-ye):(Mt[1]-ke)/(ze-ke),tt>=0&&1>=tt&&Ee>=0&&1>=Ee&&Ve.push(Mt)}return Ve},oe=function(ye,ke,Ie,ze,Ye){var xe=[];return xe.push.apply(xe,Q(ye,ke,ye+Ie,ke,Ye)),xe.push.apply(xe,Q(ye+Ie,ke,ye+Ie,ke+ze,Ye)),xe.push.apply(xe,Q(ye+Ie,ke+ze,ye,ke+ze,Ye)),xe.push.apply(xe,Q(ye,ke+ze,ye,ke,Ye)),xe},le=function(ye,ke){var Ie=[];return Ie.push.apply(Ie,Q(ye.x,ye.y,ye.x+ye.w,ye.y,ke)),Ie.push.apply(Ie,Q(ye.x+ye.w,ye.y,ye.x+ye.w,ye.y+ye.h,ke)),Ie.push.apply(Ie,Q(ye.x+ye.w,ye.y+ye.h,ye.x,ye.y+ye.h,ke)),Ie.push.apply(Ie,Q(ye.x,ye.y+ye.h,ye.x,ye.y,ke)),Ie},fe=this.jsBezier={distanceFromCurve:A,gradientAtPoint:G,gradientAtPointAlongCurveFrom:U,nearestPointOnCurve:F,pointOnCurve:m,pointAlongCurveFrom:T,perpendicularToCurveAt:X,locationAlongCurveFrom:z,getLength:R,lineIntersection:Q,boxIntersection:oe,boundingBoxIntersection:le,version:"0.9.0"};typeof co!="undefined"&&(co.jsBezier=fe)}).call(typeof window!="undefined"?window:co),function(){"use strict";var ae=this,ee=ae.Biltong={version:"0.4.0"};typeof co!="undefined"&&(co.Biltong=ee);var de=function(F){return Object.prototype.toString.call(F)==="[object Array]"},ne=function(F,D,f){return F=de(F)?F:[F.x,F.y],D=de(D)?D:[D.x,D.y],f(F,D)},x=ee.gradient=function(F,D){return ne(F,D,function(f,v){return v[0]==f[0]?v[1]>f[1]?1/0:-(1/0):v[1]==f[1]?v[0]>f[0]?0:-0:(v[1]-f[1])/(v[0]-f[0])})},p=(ee.normal=function(F,D){return-1/x(F,D)},ee.lineLength=function(F,D){return ne(F,D,function(f,v){return Math.sqrt(Math.pow(v[1]-f[1],2)+Math.pow(v[0]-f[0],2))})},ee.quadrant=function(F,D){return ne(F,D,function(f,v){return v[0]>f[0]||v[0]==f[0]?v[1]>f[1]?2:1:v[1]>f[1]?3:4})}),M=(ee.theta=function(F,D){return ne(F,D,function(f,v){var u=x(f,v),s=Math.atan(u),r=p(f,v);return(r==4||r==3)&&(s+=Math.PI),0>s&&(s+=2*Math.PI),s})},ee.intersects=function(F,D){var f=F.x,v=F.x+F.w,u=F.y,s=F.y+F.h,r=D.x,d=D.x+D.w,g=D.y,m=D.y+D.h;return r>=f&&v>=r&&g>=u&&s>=g||d>=f&&v>=d&&g>=u&&s>=g||r>=f&&v>=r&&m>=u&&s>=m||d>=f&&v>=r&&m>=u&&s>=m||f>=r&&d>=f&&u>=g&&m>=u||v>=r&&d>=v&&u>=g&&m>=u||f>=r&&d>=f&&s>=g&&m>=s||v>=r&&d>=f&&s>=g&&m>=s},ee.encloses=function(F,D,f){var v=F.x,u=F.x+F.w,s=F.y,r=F.y+F.h,d=D.x,g=D.x+D.w,m=D.y,b=D.y+D.h,w=function(k,R,T,z){return f?R>=k&&T>=z:R>k&&T>z};return w(v,d,u,g)&&w(s,m,r,b)},[null,[1,-1],[1,1],[-1,1],[-1,-1]]),A=[null,[-1,-1],[-1,1],[1,1],[1,-1]];ee.pointOnLine=function(F,D,f){var v=x(F,D),u=p(F,D),s=f>0?M[u]:A[u],r=Math.atan(v),d=Math.abs(f*Math.sin(r))*s[1],g=Math.abs(f*Math.cos(r))*s[0];return{x:F.x+g,y:F.y+d}},ee.perpendicularLineTo=function(F,D,f){var v=x(F,D),u=Math.atan(-1/v),s=f/2*Math.sin(u),r=f/2*Math.cos(u);return[{x:D.x+r,y:D.y+s},{x:D.x-r,y:D.y-s}]}}.call(typeof window!="undefined"?window:co),function(){"use strict";function ae(xe,Te,Ae,Ne,Re,Oe,Ve,Ue){return new Touch({target:Te,identifier:Ye(),pageX:Ae,pageY:Ne,screenX:Re,screenY:Oe,clientX:Ve||Re,clientY:Ue||Oe})}function ee(){var xe=[];return Array.prototype.push.apply(xe,arguments),xe.item=function(Te){return this[Te]},xe}function de(xe,Te,Ae,Ne,Re,Oe,Ve,Ue){return ee(ae.apply(null,arguments))}var ne=this,x=function(xe,Te,Ae){Ae=Ae||xe.parentNode;for(var Ne=Ae.querySelectorAll(Te),Re=0;Re<Ne.length;Re++)if(Ne[Re]===xe)return!0;return!1},p=function(xe){return typeof xe=="string"||xe.constructor===String?document.getElementById(xe):xe},M=function(xe){return xe.srcElement||xe.target},A=function(xe,Te,Ae,Ne){if(Ne){if(typeof xe.path!="undefined"&&xe.path.indexOf)return{path:xe.path,end:xe.path.indexOf(Ae)};var Re={path:[],end:-1},Oe=function(Ve){Re.path.push(Ve),Ve===Ae?Re.end=Re.path.length-1:Ve.parentNode!=null&&Oe(Ve.parentNode)};return Oe(Te),Re}return{path:[Te],end:1}},F=function(xe,Te){for(var Ae=0,Ne=xe.length;Ne>Ae&&xe[Ae]!=Te;Ae++);Ae<xe.length&&xe.splice(Ae,1)},D=1,f=function(xe,Te,Ae){var Ne=D++;return xe.__ta=xe.__ta||{},xe.__ta[Te]=xe.__ta[Te]||{},xe.__ta[Te][Ne]=Ae,Ae.__tauid=Ne,Ne},v=function(xe,Te,Ae){if(xe.__ta&&xe.__ta[Te]&&delete xe.__ta[Te][Ae.__tauid],Ae.__taExtra){for(var Ne=0;Ne<Ae.__taExtra.length;Ne++)Ie(xe,Ae.__taExtra[Ne][0],Ae.__taExtra[Ne][1]);Ae.__taExtra.length=0}Ae.__taUnstore&&Ae.__taUnstore()},u=function(xe,Te,Ae,Ne){if(xe==null)return Ae;var Re=xe.split(","),Oe=function(Ve){Oe.__tauid=Ae.__tauid;var Ue=M(Ve),Ee=Ue,tt=A(Ve,Ue,Te,xe!=null);if(tt.end!=-1)for(var at=0;at<tt.end;at++){Ee=tt.path[at];for(var ut=0;ut<Re.length;ut++)x(Ee,Re[ut],Te)&&Ae.apply(Ee,arguments)}};return s(Ae,Ne,Oe),Oe},s=function(xe,Te,Ae){xe.__taExtra=xe.__taExtra||[],xe.__taExtra.push([Te,Ae])},r=function(xe,Te,Ae,Ne){if(k&&T[Te]){var Re=u(Ne,xe,Ae,T[Te]);ke(xe,T[Te],Re,Ae)}Te==="focus"&&xe.getAttribute("tabindex")==null&&xe.setAttribute("tabindex","1"),ke(xe,Te,u(Ne,xe,Ae,Te),Ae)},d=function(xe,Te,Ae,Ne){if(xe.__taSmartClicks==null){var Re=function(Ue){xe.__tad=X(Ue)},Oe=function(Ue){xe.__tau=X(Ue)},Ve=function(Ue){if(xe.__tad&&xe.__tau&&xe.__tad[0]===xe.__tau[0]&&xe.__tad[1]===xe.__tau[1])for(var Ee=0;Ee<xe.__taSmartClicks.length;Ee++)xe.__taSmartClicks[Ee].apply(M(Ue),[Ue])};r(xe,"mousedown",Re,Ne),r(xe,"mouseup",Oe,Ne),r(xe,"click",Ve,Ne),xe.__taSmartClicks=[]}xe.__taSmartClicks.push(Ae),Ae.__taUnstore=function(){F(xe.__taSmartClicks,Ae)}},g={tap:{touches:1,taps:1},dbltap:{touches:1,taps:2},contextmenu:{touches:2,taps:1}},m=function(xe,Te){return function(Ae,Ne,Re,Oe){if(Ne=="contextmenu"&&R)r(Ae,Ne,Re,Oe);else{if(Ae.__taTapHandler==null){var Ve=Ae.__taTapHandler={tap:[],dbltap:[],contextmenu:[],down:!1,taps:0,downSelectors:[]},Ue=function(ut){for(var Mt=M(ut),St=A(ut,Mt,Ae,Oe!=null),ft=!1,kt=0;kt<St.end;kt++){if(ft)return;Mt=St.path[kt];for(var Et=0;Et<Ve.downSelectors.length;Et++)if(Ve.downSelectors[Et]==null||x(Mt,Ve.downSelectors[Et],Ae)){Ve.down=!0,setTimeout(tt,xe),setTimeout(at,Te),ft=!0;break}}},Ee=function(ut){if(Ve.down){var Mt,St,ft=M(ut);Ve.taps++;var kt=ye(ut);for(var Et in g)if(g.hasOwnProperty(Et)){var Yt=g[Et];if(Yt.touches===kt&&(Yt.taps===1||Yt.taps===Ve.taps))for(var Tt=0;Tt<Ve[Et].length;Tt++){St=A(ut,ft,Ae,Ve[Et][Tt][1]!=null);for(var Ft=0;Ft<St.end;Ft++)if(Mt=St.path[Ft],Ve[Et][Tt][1]==null||x(Mt,Ve[Et][Tt][1],Ae)){Ve[Et][Tt][0].apply(Mt,[ut]);break}}}}},tt=function(){Ve.down=!1},at=function(){Ve.taps=0};r(Ae,"mousedown",Ue),r(Ae,"mouseup",Ee)}Ae.__taTapHandler.downSelectors.push(Oe),Ae.__taTapHandler[Ne].push([Re,Oe]),Re.__taUnstore=function(){F(Ae.__taTapHandler[Ne],Re)}}}},b=function(xe,Te,Ae,Ne){for(var Re in Ae.__tamee[xe])Ae.__tamee[xe].hasOwnProperty(Re)&&Ae.__tamee[xe][Re].apply(Ne,[Te])},w=function(){var xe=[];return function(Te,Ae,Ne,Re){if(!Te.__tamee){Te.__tamee={over:!1,mouseenter:[],mouseexit:[]};var Oe=function(Ue){var Ee=M(Ue);(Re==null&&Ee==Te&&!Te.__tamee.over||x(Ee,Re,Te)&&(Ee.__tamee==null||!Ee.__tamee.over))&&(b("mouseenter",Ue,Te,Ee),Ee.__tamee=Ee.__tamee||{},Ee.__tamee.over=!0,xe.push(Ee))},Ve=function(Ue){for(var Ee=M(Ue),tt=0;tt<xe.length;tt++)Ee!=xe[tt]||x(Ue.relatedTarget||Ue.toElement,"*",Ee)||(Ee.__tamee.over=!1,xe.splice(tt,1),b("mouseexit",Ue,Te,Ee))};ke(Te,"mouseover",u(Re,Te,Oe,"mouseover"),Oe),ke(Te,"mouseout",u(Re,Te,Ve,"mouseout"),Ve)}Ne.__taUnstore=function(){delete Te.__tamee[Ae][Ne.__tauid]},f(Te,Ae,Ne),Te.__tamee[Ae][Ne.__tauid]=Ne}},k="ontouchstart"in document.documentElement||navigator.maxTouchPoints,R="onmousedown"in document.documentElement,T={mousedown:"touchstart",mouseup:"touchend",mousemove:"touchmove"},z=function(){var xe=-1;if(navigator.appName=="Microsoft Internet Explorer"){var Te=navigator.userAgent,Ae=new RegExp("MSIE ([0-9]{1,}[.0-9]{0,})");Ae.exec(Te)!=null&&(xe=parseFloat(RegExp.$1))}return xe}(),G=z>-1&&9>z,U=function(xe,Te){if(xe==null)return[0,0];var Ae=fe(xe),Ne=le(Ae,0);return[Ne[Te+"X"],Ne[Te+"Y"]]},X=function(xe){return xe==null?[0,0]:G?[xe.clientX+document.documentElement.scrollLeft,xe.clientY+document.documentElement.scrollTop]:U(xe,"page")},Q=function(xe){return U(xe,"screen")},oe=function(xe){return U(xe,"client")},le=function(xe,Te){return xe.item?xe.item(Te):xe[Te]},fe=function(xe){return xe.touches&&xe.touches.length>0?xe.touches:xe.changedTouches&&xe.changedTouches.length>0?xe.changedTouches:xe.targetTouches&&xe.targetTouches.length>0?xe.targetTouches:[xe]},ye=function(xe){return fe(xe).length},ke=function(xe,Te,Ae,Ne){if(f(xe,Te,Ae),Ne.__tauid=Ae.__tauid,xe.addEventListener)xe.addEventListener(Te,Ae,!1);else if(xe.attachEvent){var Re=Te+Ae.__tauid;xe["e"+Re]=Ae,xe[Re]=function(){xe["e"+Re]&&xe["e"+Re](window.event)},xe.attachEvent("on"+Te,xe[Re])}},Ie=function(xe,Te,Ae){Ae!=null&&ze(xe,function(){var Ne=p(this);if(v(Ne,Te,Ae),Ae.__tauid!=null){if(Ne.removeEventListener)Ne.removeEventListener(Te,Ae,!1),k&&T[Te]&&Ne.removeEventListener(T[Te],Ae,!1);else if(this.detachEvent){var Re=Te+Ae.__tauid;Ne[Re]&&Ne.detachEvent("on"+Te,Ne[Re]),Ne[Re]=null,Ne["e"+Re]=null}}Ae.__taTouchProxy&&Ie(xe,Ae.__taTouchProxy[1],Ae.__taTouchProxy[0])})},ze=function(xe,Te){if(xe!=null){xe=typeof Window!="undefined"&&typeof xe.top!="unknown"&&xe==xe.top?[xe]:typeof xe!="string"&&xe.tagName==null&&xe.length!=null?xe:typeof xe=="string"?document.querySelectorAll(xe):[xe];for(var Ae=0;Ae<xe.length;Ae++)Te.apply(xe[Ae])}},Ye=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(xe){var Te=16*Math.random()|0,Ae=xe=="x"?Te:3&Te|8;return Ae.toString(16)})};ne.Mottle=function(xe){xe=xe||{};var Te=xe.clickThreshold||250,Ae=xe.dblClickThreshold||450,Ne=new w,Re=new m(Te,Ae),Oe=xe.smartClicks,Ve=function(Ue,Ee,tt,at){tt!=null&&ze(Ue,function(){var ut=p(this);Oe&&Ee==="click"?d(ut,Ee,tt,at):Ee==="tap"||Ee==="dbltap"||Ee==="contextmenu"?Re(ut,Ee,tt,at):Ee==="mouseenter"||Ee=="mouseexit"?Ne(ut,Ee,tt,at):r(ut,Ee,tt,at)})};this.remove=function(Ue){return ze(Ue,function(){var Ee=p(this);if(Ee.__ta){for(var tt in Ee.__ta)if(Ee.__ta.hasOwnProperty(tt))for(var at in Ee.__ta[tt])Ee.__ta[tt].hasOwnProperty(at)&&Ie(Ee,tt,Ee.__ta[tt][at])}Ee.parentNode&&Ee.parentNode.removeChild(Ee)}),this},this.on=function(Ue,Ee,tt,at){var ut=arguments[0],Mt=arguments.length==4?arguments[2]:null,St=arguments[1],ft=arguments[arguments.length-1];return Ve(ut,St,ft,Mt),this},this.off=function(Ue,Ee,tt){return Ie(Ue,Ee,tt),this},this.trigger=function(Ue,Ee,tt,at){var ut=R&&(typeof MouseEvent=="undefined"||tt==null||tt.constructor===MouseEvent),Mt=k&&!R&&T[Ee]?T[Ee]:Ee,St=!(k&&!R&&T[Ee]),ft=X(tt),kt=Q(tt),Et=oe(tt);return ze(Ue,function(){var Yt,Tt=p(this);tt=tt||{screenX:kt[0],screenY:kt[1],clientX:Et[0],clientY:Et[1]};var Ft=function(Ci){at&&(Ci.payload=at)},Bt={TouchEvent:function(Ci){var _i=de(window,Tt,0,ft[0],ft[1],kt[0],kt[1],Et[0],Et[1]),yn=Ci.initTouchEvent||Ci.initEvent;yn(Mt,!0,!0,window,null,kt[0],kt[1],Et[0],Et[1],!1,!1,!1,!1,_i,_i,_i,1,0)},MouseEvents:function(Ci){Ci.initMouseEvent(Mt,!0,!0,window,0,kt[0],kt[1],Et[0],Et[1],!1,!1,!1,!1,1,Tt)}};if(document.createEvent){var Xt=!St&&!ut&&k&&T[Ee],ii=Xt?"TouchEvent":"MouseEvents";Yt=document.createEvent(ii),Bt[ii](Yt),Ft(Yt),Tt.dispatchEvent(Yt)}else document.createEventObject&&(Yt=document.createEventObject(),Yt.eventType=Yt.eventName=Mt,Yt.screenX=kt[0],Yt.screenY=kt[1],Yt.clientX=Et[0],Yt.clientY=Et[1],Ft(Yt),Tt.fireEvent("on"+Mt,Yt))}),this}},ne.Mottle.consume=function(xe,Te){xe.stopPropagation?xe.stopPropagation():xe.returnValue=!1,!Te&&xe.preventDefault&&xe.preventDefault()},ne.Mottle.pageLocation=X,ne.Mottle.setForceTouchEvents=function(xe){k=xe},ne.Mottle.setForceMouseEvents=function(xe){R=xe},ne.Mottle.version="0.8.0",typeof co!="undefined"&&(co.Mottle=ne.Mottle)}.call(typeof window=="undefined"?co:window),function(){"use strict";var ae=this,ee=function(xe,Te,Ae){return xe.indexOf(Te)===-1?(Ae?xe.unshift(Te):xe.push(Te),!0):!1},de=function(xe,Te){var Ae=xe.indexOf(Te);Ae!==-1&&xe.splice(Ae,1)},ne=function(xe,Te){for(var Ae=[],Ne=0;Ne<xe.length;Ne++)Te.indexOf(xe[Ne])===-1&&Ae.push(xe[Ne]);return Ae},x=function(xe){return xe==null?!1:typeof xe=="string"||xe.constructor===String},p=function(xe){var Te=xe.getBoundingClientRect(),Ae=document.body,Ne=document.documentElement,Re=window.pageYOffset||Ne.scrollTop||Ae.scrollTop,Oe=window.pageXOffset||Ne.scrollLeft||Ae.scrollLeft,Ve=Ne.clientTop||Ae.clientTop||0,Ue=Ne.clientLeft||Ae.clientLeft||0,Ee=Te.top+Re-Ve,tt=Te.left+Oe-Ue;return{top:Math.round(Ee),left:Math.round(tt)}},M=function(xe,Te,Ae){Ae=Ae||xe.parentNode;for(var Ne=Ae.querySelectorAll(Te),Re=0;Re<Ne.length;Re++)if(Ne[Re]===xe)return!0;return!1},A=function(xe,Te,Ae){if(M(Te,Ae,xe))return Te;for(var Ne=Te.parentNode;Ne!=null&&Ne!==xe;){if(M(Ne,Ae,xe))return Ne;Ne=Ne.parentNode}},F=function(xe,Te,Ae){for(var Ne=null,Re=Te.getAttribute("katavorio-draggable"),Oe=Re!=null?"[katavorio-draggable='"+Re+"'] ":"",Ve=0;Ve<xe.length;Ve++)if(Ne=A(Te,Ae,Oe+xe[Ve].selector),Ne!=null){if(xe[Ve].filter){var Ue=M(Ae,xe[Ve].filter,Ne),Ee=xe[Ve].filterExclude===!0;if(Ee&&!Ue||Ue)return null}return[xe[Ve],Ne]}return null},D=function(){var xe=-1;if(navigator.appName==="Microsoft Internet Explorer"){var Te=navigator.userAgent,Ae=new RegExp("MSIE ([0-9]{1,}[.0-9]{0,})");Ae.exec(Te)!=null&&(xe=parseFloat(RegExp.$1))}return xe}(),f=10,v=10,u=D>-1&&9>D,s=D===9,r=function(xe){if(u)return[xe.clientX+document.documentElement.scrollLeft,xe.clientY+document.documentElement.scrollTop];var Te=g(xe),Ae=d(Te,0);return s?[Ae.pageX||Ae.clientX,Ae.pageY||Ae.clientY]:[Ae.pageX,Ae.pageY]},d=function(xe,Te){return xe.item?xe.item(Te):xe[Te]},g=function(xe){return xe.touches&&xe.touches.length>0?xe.touches:xe.changedTouches&&xe.changedTouches.length>0?xe.changedTouches:xe.targetTouches&&xe.targetTouches.length>0?xe.targetTouches:[xe]},m={delegatedDraggable:"katavorio-delegated-draggable",draggable:"katavorio-draggable",droppable:"katavorio-droppable",drag:"katavorio-drag",selected:"katavorio-drag-selected",active:"katavorio-drag-active",hover:"katavorio-drag-hover",noSelect:"katavorio-drag-no-select",ghostProxy:"katavorio-ghost-proxy",clonedDrag:"katavorio-clone-drag"},b="katavorio-drag-scope",w=["stop","start","drag","drop","over","out","beforeStart"],k=function(){},R=function(){return!0},T=function(xe,Te,Ae){for(var Ne=0;Ne<xe.length;Ne++)xe[Ne]!=Ae&&Te(xe[Ne])},z=function(xe,Te,Ae,Ne){T(xe,function(Re){Re.setActive(Te),Te&&Re.updatePosition(),Ae&&Re.setHover(Ne,Te)})},G=function(xe,Te){if(xe!=null){xe=x(xe)||xe.tagName!=null||xe.length==null?[xe]:xe;for(var Ae=0;Ae<xe.length;Ae++)Te.apply(xe[Ae],[xe[Ae]])}},U=function(xe){xe.stopPropagation?(xe.stopPropagation(),xe.preventDefault()):xe.returnValue=!1},X="input,textarea,select,button,option",Q=function(xe,Te,Ae){var Ne=xe.srcElement||xe.target;return!M(Ne,Ae.getInputFilterSelector(),Te)},oe=function(xe,Te,Ae,Ne){this.params=Te||{},this.el=xe,this.params.addClass(this.el,this._class),this.uuid=Ie();var Re=!0;return this.setEnabled=function(Oe){Re=Oe},this.isEnabled=function(){return Re},this.toggleEnabled=function(){Re=!Re},this.setScope=function(Oe){this.scopes=Oe?Oe.split(/\s+/):[Ne]},this.addScope=function(Oe){var Ve={};G(this.scopes,function(Ee){Ve[Ee]=!0}),G(Oe?Oe.split(/\s+/):[],function(Ee){Ve[Ee]=!0}),this.scopes=[];for(var Ue in Ve)this.scopes.push(Ue)},this.removeScope=function(Oe){var Ve={};G(this.scopes,function(Ee){Ve[Ee]=!0}),G(Oe?Oe.split(/\s+/):[],function(Ee){delete Ve[Ee]}),this.scopes=[];for(var Ue in Ve)this.scopes.push(Ue)},this.toggleScope=function(Oe){var Ve={};G(this.scopes,function(Ee){Ve[Ee]=!0}),G(Oe?Oe.split(/\s+/):[],function(Ee){Ve[Ee]?delete Ve[Ee]:Ve[Ee]=!0}),this.scopes=[];for(var Ue in Ve)this.scopes.push(Ue)},this.setScope(Te.scope),this.k=Te.katavorio,Te.katavorio},le=function(){return!0},fe=function(){return!1},ye=function(xe,Te,Ae,Ne){this._class=Ae.draggable;var Re=oe.apply(this,arguments);this.rightButtonCanDrag=this.params.rightButtonCanDrag;var Oe,Ve,Ue,Ee,tt,at,ut=[0,0],Mt=null,St=null,ft=[0,0],kt=!1,Et=[0,0],Yt=this.params.consumeStartEvent!==!1,Tt=this.el,Ft=this.params.clone,Bt=(this.params.scroll,Te.multipleDrop!==!1),Xt=!1,ii=null,Ci=[],_i=null,yn=Te.ghostProxyParent;if(Oe=Te.ghostProxy===!0?le:Te.ghostProxy&&typeof Te.ghostProxy=="function"?Te.ghostProxy:function($t,nn){return _i&&_i.useGhostProxy?_i.useGhostProxy($t,nn):!1},Ve=Te.makeGhostProxy?Te.makeGhostProxy:function($t){return _i&&_i.makeGhostProxy?_i.makeGhostProxy($t):$t.cloneNode(!0)},Te.selector){var Tn=xe.getAttribute("katavorio-draggable");Tn==null&&(Tn=""+new Date().getTime(),xe.setAttribute("katavorio-draggable",Tn)),Ci.push(Te)}var ma=Te.snapThreshold,Ho=function($t,nn,bn,zi,En){var Yn=Math.floor($t[0]/nn),Ke=nn*Yn,pt=Ke+nn,ct=Math.abs($t[0]-Ke)<=zi?Ke:Math.abs(pt-$t[0])<=zi?pt:$t[0],ht=Math.floor($t[1]/bn),Gt=bn*ht,_t=Gt+bn,ni=Math.abs($t[1]-Gt)<=En?Gt:Math.abs(_t-$t[1])<=En?_t:$t[1];return[ct,ni]};this.posses=[],this.posseRoles={},this.toGrid=function($t){if(this.params.grid==null)return $t;var nn=this.params.grid?this.params.grid[0]/2:ma||f/2,bn=this.params.grid?this.params.grid[1]/2:ma||v/2;return Ho($t,this.params.grid[0],this.params.grid[1],nn,bn)},this.snap=function($t,nn){if(Tt!=null){$t=$t||(this.params.grid?this.params.grid[0]:f),nn=nn||(this.params.grid?this.params.grid[1]:v);var bn=this.params.getPosition(Tt),zi=this.params.grid?this.params.grid[0]/2:ma,En=this.params.grid?this.params.grid[1]/2:ma,Yn=Ho(bn,$t,nn,zi,En);return this.params.setPosition(Tt,Yn),Yn}},this.setUseGhostProxy=function($t){Oe=$t?le:fe};var Ar,ll=function($t){return Te.allowNegative===!1?[Math.max(0,$t[0]),Math.max(0,$t[1])]:$t},eo=function($t){Ar=typeof $t=="function"?$t:$t?function(nn,bn,zi,En){return ll([Math.max(0,Math.min(zi.w-En[0],nn[0])),Math.max(0,Math.min(zi.h-En[1],nn[1]))])}.bind(this):function(nn){return ll(nn)}}.bind(this);eo(typeof this.params.constrain=="function"?this.params.constrain:this.params.constrain||this.params.containment),this.setConstrain=function($t){eo($t)};var Nr,rn=function($t,nn,bn,zi){return _i!=null&&_i.constrain&&typeof _i.constrain=="function"?_i.constrain($t,nn,bn,zi):Ar($t,nn,bn,zi)};this.setRevert=function($t){Nr=$t},this.params.revert&&(Nr=this.params.revert);var Wo=function($t){return typeof $t=="function"?($t._katavorioId=Ie(),$t._katavorioId):$t},Mo={},Ps=function($t){for(var nn in Mo){var bn=Mo[nn],zi=bn[0]($t);if(bn[1]&&(zi=!zi),!zi)return!1}return!0},Un=this.setFilter=function($t,nn){if($t){var bn=Wo($t);Mo[bn]=[function(zi){var En,Yn=zi.srcElement||zi.target;return x($t)?En=M(Yn,$t,xe):typeof $t=="function"&&(En=$t(zi,xe)),En},nn!==!1]}};this.addFilter=Un,this.removeFilter=function($t){var nn=typeof $t=="function"?$t._katavorioId:$t;delete Mo[nn]},this.clearAllFilters=function(){Mo={}},this.canDrag=this.params.canDrag||R;var Ls,la=[],uo=[];this.addSelector=function($t){$t.selector&&Ci.push($t)},this.downListener=function($t){if(!$t.defaultPrevented){var nn=this.rightButtonCanDrag||$t.which!==3&&$t.button!==2;if(nn&&this.isEnabled()&&this.canDrag()){var bn=Ps($t)&&Q($t,this.el,this.k);if(bn){if(_i=null,ii=null,Ci.length>0){var zi=F(Ci,this.el,$t.target||$t.srcElement);if(zi!=null&&(_i=zi[0],ii=zi[1]),ii==null)return}else ii=this.el;if(Ft)if(Tt=ii.cloneNode(!0),this.params.addClass(Tt,m.clonedDrag),Tt.setAttribute("id",null),Tt.style.position="absolute",this.params.parent!=null){var En=this.params.getPosition(this.el);Tt.style.left=En[0]+"px",Tt.style.top=En[1]+"px",this.params.parent.appendChild(Tt)}else{var Yn=p(ii);Tt.style.left=Yn.left+"px",Tt.style.top=Yn.top+"px",document.body.appendChild(Tt)}else Tt=ii;Yt&&U($t),ut=r($t),Tt&&Tt.parentNode&&(Et=[Tt.parentNode.scrollLeft,Tt.parentNode.scrollTop]),this.params.bind(document,"mousemove",this.moveListener),this.params.bind(document,"mouseup",this.upListener),Re.markSelection(this),Re.markPosses(this),this.params.addClass(document.body,Ae.noSelect),$n("beforeStart",{el:this.el,pos:Mt,e:$t,drag:this})}else this.params.consumeFilteredEvents&&U($t)}}}.bind(this),this.moveListener=function($t){if(ut){if(!kt){var nn=$n("start",{el:this.el,pos:Mt,e:$t,drag:this});if(nn!==!1){if(!ut)return;this.mark(!0),kt=!0}else this.abort()}if(ut){uo.length=0;var bn=r($t),zi=bn[0]-ut[0],En=bn[1]-ut[1],Yn=this.params.ignoreZoom?1:Re.getZoom();Tt&&Tt.parentNode&&(zi+=Tt.parentNode.scrollLeft-Et[0],En+=Tt.parentNode.scrollTop-Et[1]),zi/=Yn,En/=Yn,this.moveBy(zi,En,$t),Re.updateSelection(zi,En,this),Re.updatePosses(zi,En,this)}}}.bind(this),this.upListener=function($t){ut&&(ut=null,this.params.unbind(document,"mousemove",this.moveListener),this.params.unbind(document,"mouseup",this.upListener),this.params.removeClass(document.body,Ae.noSelect),this.unmark($t),Re.unmarkSelection(this,$t),Re.unmarkPosses(this,$t),this.stop($t),Re.notifyPosseDragStop(this,$t),kt=!1,uo.length=0,Ft?(Tt&&Tt.parentNode&&Tt.parentNode.removeChild(Tt),Tt=null):Nr&&Nr(Tt,this.params.getPosition(Tt))===!0&&(this.params.setPosition(Tt,Mt),$n("revert",Tt)))}.bind(this),this.getFilters=function(){return Mo},this.abort=function(){ut!=null&&this.upListener()},this.getDragElement=function($t){return $t?ii||this.el:Tt||this.el};var ka={start:[],drag:[],stop:[],over:[],out:[],beforeStart:[],revert:[]};Te.events.start&&ka.start.push(Te.events.start),Te.events.beforeStart&&ka.beforeStart.push(Te.events.beforeStart),Te.events.stop&&ka.stop.push(Te.events.stop),Te.events.drag&&ka.drag.push(Te.events.drag),Te.events.revert&&ka.revert.push(Te.events.revert),this.on=function($t,nn){ka[$t]&&ka[$t].push(nn)},this.off=function($t,nn){if(ka[$t]){for(var bn=[],zi=0;zi<ka[$t].length;zi++)ka[$t][zi]!==nn&&bn.push(ka[$t][zi]);ka[$t]=bn}};var $n=function($t,nn){var bn=null;if(_i&&_i[$t])bn=_i[$t](nn);else if(ka[$t])for(var zi=0;zi<ka[$t].length;zi++)try{var En=ka[$t][zi](nn);En!=null&&(bn=En)}catch(Yn){}return bn};this.notifyStart=function($t){$n("start",{el:this.el,pos:this.params.getPosition(Tt),e:$t,drag:this})},this.stop=function($t,nn){if(nn||kt){var bn=[],zi=Re.getSelection(),En=this.params.getPosition(Tt);if(zi.length>0)for(var Yn=0;Yn<zi.length;Yn++){var Ke=this.params.getPosition(zi[Yn].el);bn.push([zi[Yn].el,{left:Ke[0],top:Ke[1]},zi[Yn]])}else bn.push([Tt,{left:En[0],top:En[1]},this]);$n("stop",{el:Tt,pos:to||En,finalPos:En,e:$t,drag:this,selection:bn})}},this.mark=function($t){Mt=this.params.getPosition(Tt),St=this.params.getPosition(Tt,!0),ft=[St[0]-Mt[0],St[1]-Mt[1]],this.size=this.params.getSize(Tt),la=Re.getMatchingDroppables(this),z(la,!0,!1,this),this.params.addClass(Tt,this.params.dragClass||Ae.drag);var nn;nn=this.params.getConstrainingRectangle?this.params.getConstrainingRectangle(Tt):this.params.getSize(Tt.parentNode),Ls={w:nn[0],h:nn[1]},tt=0,at=0,$t&&Re.notifySelectionDragStart(this)};var to;this.unmark=function($t,nn){if(z(la,!1,!0,this),Xt&&Oe(ii,Tt)?(to=[Tt.offsetLeft-tt,Tt.offsetTop-at],Tt.parentNode.removeChild(Tt),Tt=ii):to=null,this.params.removeClass(Tt,this.params.dragClass||Ae.drag),la.length=0,Xt=!1,!nn){uo.length>0&&to&&Te.setPosition(ii,to),uo.sort(ze);for(var bn=0;bn<uo.length;bn++){var zi=uo[bn].drop(this,$t);if(zi===!0)break}}},this.moveBy=function($t,nn,bn){uo.length=0;var zi=this.toGrid([Mt[0]+$t,Mt[1]+nn]),En=rn(zi,Tt,Ls,this.size);if(Oe(this.el,Tt))if(zi[0]!==En[0]||zi[1]!==En[1]){if(!Xt){var Yn=Ve(ii);Te.addClass(Yn,m.ghostProxy),yn?(yn.appendChild(Yn),Ue=Te.getPosition(ii.parentNode,!0),Ee=Te.getPosition(Te.ghostProxyParent,!0),tt=Ue[0]-Ee[0],at=Ue[1]-Ee[1]):ii.parentNode.appendChild(Yn),Tt=Yn,Xt=!0}En=zi}else Xt&&(Tt.parentNode.removeChild(Tt),Tt=ii,Xt=!1,Ue=null,Ee=null,tt=0,at=0);var Ke={x:En[0],y:En[1],w:this.size[0],h:this.size[1]},pt={x:Ke.x+ft[0],y:Ke.y+ft[1],w:Ke.w,h:Ke.h},ct=null;this.params.setPosition(Tt,[En[0]+tt,En[1]+at]);for(var ht=0;ht<la.length;ht++){var Gt={x:la[ht].pagePosition[0],y:la[ht].pagePosition[1],w:la[ht].size[0],h:la[ht].size[1]};this.params.intersects(pt,Gt)&&(Bt||ct==null||ct===la[ht].el)&&la[ht].canDrop(this)?(ct||(ct=la[ht].el),uo.push(la[ht]),la[ht].setHover(this,!0,bn)):la[ht].isHover()&&la[ht].setHover(this,!1,bn)}$n("drag",{el:this.el,pos:En,e:bn,drag:this})},this.destroy=function(){this.params.unbind(this.el,"mousedown",this.downListener),this.params.unbind(document,"mousemove",this.moveListener),this.params.unbind(document,"mouseup",this.upListener),this.downListener=null,this.upListener=null,this.moveListener=null},this.params.bind(this.el,"mousedown",this.downListener),this.params.handle?Un(this.params.handle,!1):Un(this.params.filter,this.params.filterExclude)},ke=function(xe,Te,Ae,Ne){this._class=Ae.droppable,this.params=Te||{},this.rank=Te.rank||0,this._activeClass=this.params.activeClass||Ae.active,this._hoverClass=this.params.hoverClass||Ae.hover,oe.apply(this,arguments);var Re=!1;this.allowLoopback=this.params.allowLoopback!==!1,this.setActive=function(Oe){this.params[Oe?"addClass":"removeClass"](this.el,this._activeClass)},this.updatePosition=function(){this.position=this.params.getPosition(this.el),this.pagePosition=this.params.getPosition(this.el,!0),this.size=this.params.getSize(this.el)},this.canDrop=this.params.canDrop||function(Oe){return!0},this.isHover=function(){return Re},this.setHover=function(Oe,Ve,Ue){(Ve||this.el._katavorioDragHover==null||this.el._katavorioDragHover===Oe.el._katavorio)&&(this.params[Ve?"addClass":"removeClass"](this.el,this._hoverClass),this.el._katavorioDragHover=Ve?Oe.el._katavorio:null,Re!==Ve&&this.params.events[Ve?"over":"out"]({el:this.el,e:Ue,drag:Oe,drop:this}),Re=Ve)},this.drop=function(Oe,Ve){return this.params.events.drop({drag:Oe,e:Ve,drop:this})},this.destroy=function(){this._class=null,this._activeClass=null,this._hoverClass=null,Re=null}},Ie=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(xe){var Te=16*Math.random()|0,Ae=xe==="x"?Te:3&Te|8;return Ae.toString(16)})},ze=function(xe,Te){return xe.rank<Te.rank?1:xe.rank>Te.rank?-1:0},Ye=function(xe){return xe==null?null:(xe=typeof xe=="string"||xe.constructor===String?document.getElementById(xe):xe,xe==null?null:(xe._katavorio=xe._katavorio||Ie(),xe))};ae.Katavorio=function(xe){var Te=[],Ae={};this._dragsByScope={},this._dropsByScope={};var Ne=1,Re=function(Ft,Bt){G(Ft,function(Xt){for(var ii=0;ii<Xt.scopes.length;ii++)Bt[Xt.scopes[ii]]=Bt[Xt.scopes[ii]]||[],Bt[Xt.scopes[ii]].push(Xt)})},Oe=function(Ft,Bt){var Xt=0;return G(Ft,function(ii){for(var Ci=0;Ci<ii.scopes.length;Ci++)if(Bt[ii.scopes[Ci]]){var _i=xe.indexOf(Bt[ii.scopes[Ci]],ii);_i!==-1&&(Bt[ii.scopes[Ci]].splice(_i,1),Xt++)}}),Xt>0},Ve=(this.getMatchingDroppables=function(Ft){for(var Bt=[],Xt={},ii=0;ii<Ft.scopes.length;ii++){var Ci=this._dropsByScope[Ft.scopes[ii]];if(Ci)for(var _i=0;_i<Ci.length;_i++)!Ci[_i].canDrop(Ft)||Xt[Ci[_i].uuid]||!Ci[_i].allowLoopback&&Ci[_i].el===Ft.el||(Xt[Ci[_i].uuid]=!0,Bt.push(Ci[_i]))}return Bt.sort(ze),Bt},function(Ft){Ft=Ft||{};var Bt,Xt={events:{}};for(Bt in xe)Xt[Bt]=xe[Bt];for(Bt in Ft)Xt[Bt]=Ft[Bt];for(Bt=0;Bt<w.length;Bt++)Xt.events[w[Bt]]=Ft[w[Bt]]||k;return Xt.katavorio=this,Xt}.bind(this)),Ue=function(Ft,Bt){for(var Xt=0;Xt<w.length;Xt++)Bt[w[Xt]]&&Ft.on(w[Xt],Bt[w[Xt]])}.bind(this),Ee={},tt=xe.css||{},at=xe.scope||b;for(var ut in m)Ee[ut]=m[ut];for(var ut in tt)Ee[ut]=tt[ut];var Mt=xe.inputFilterSelector||X;this.getInputFilterSelector=function(){return Mt},this.setInputFilterSelector=function(Ft){return Mt=Ft,this},this.draggable=function(Ft,Bt){var Xt=[];return G(Ft,function(ii){if(ii=Ye(ii),ii!=null)if(ii._katavorioDrag==null){var Ci=Ve(Bt);ii._katavorioDrag=new ye(ii,Ci,Ee,at),Re(ii._katavorioDrag,this._dragsByScope),Xt.push(ii._katavorioDrag),xe.addClass(ii,Ci.selector?Ee.delegatedDraggable:Ee.draggable)}else Ue(ii._katavorioDrag,Bt)}.bind(this)),Xt},this.droppable=function(Ft,Bt){var Xt=[];return G(Ft,function(ii){if(ii=Ye(ii),ii!=null){var Ci=new ke(ii,Ve(Bt),Ee,at);ii._katavorioDrop=ii._katavorioDrop||[],ii._katavorioDrop.push(Ci),Re(Ci,this._dropsByScope),Xt.push(Ci),xe.addClass(ii,Ee.droppable)}}.bind(this)),Xt},this.select=function(Ft){return G(Ft,function(){var Bt=Ye(this);Bt&&Bt._katavorioDrag&&(Ae[Bt._katavorio]||(Te.push(Bt._katavorioDrag),Ae[Bt._katavorio]=[Bt,Te.length-1],xe.addClass(Bt,Ee.selected)))}),this},this.deselect=function(Ft){return G(Ft,function(){var Bt=Ye(this);if(Bt&&Bt._katavorio){var Xt=Ae[Bt._katavorio];if(Xt){for(var ii=[],Ci=0;Ci<Te.length;Ci++)Te[Ci].el!==Bt&&ii.push(Te[Ci]);Te=ii,delete Ae[Bt._katavorio],xe.removeClass(Bt,Ee.selected)}}}),this},this.deselectAll=function(){for(var Ft in Ae){var Bt=Ae[Ft];xe.removeClass(Bt[0],Ee.selected)}Te.length=0,Ae={}},this.markSelection=function(Ft){T(Te,function(Bt){Bt.mark()},Ft)},this.markPosses=function(Ft){Ft.posses&&G(Ft.posses,function(Bt){Ft.posseRoles[Bt]&&Yt[Bt]&&T(Yt[Bt].members,function(Xt){Xt.mark()},Ft)})},this.unmarkSelection=function(Ft,Bt){T(Te,function(Xt){Xt.unmark(Bt)},Ft)},this.unmarkPosses=function(Ft,Bt){Ft.posses&&G(Ft.posses,function(Xt){Ft.posseRoles[Xt]&&Yt[Xt]&&T(Yt[Xt].members,function(ii){ii.unmark(Bt,!0)},Ft)})},this.getSelection=function(){return Te.slice(0)},this.updateSelection=function(Ft,Bt,Xt){T(Te,function(ii){ii.moveBy(Ft,Bt)},Xt)};var St=function(Ft,Bt){Bt.posses&&G(Bt.posses,function(Xt){Bt.posseRoles[Xt]&&Yt[Xt]&&T(Yt[Xt].members,function(ii){Ft(ii)},Bt)})};this.updatePosses=function(Ft,Bt,Xt){St(function(ii){ii.moveBy(Ft,Bt)},Xt)},this.notifyPosseDragStop=function(Ft,Bt){St(function(Xt){Xt.stop(Bt,!0)},Ft)},this.notifySelectionDragStop=function(Ft,Bt){T(Te,function(Xt){Xt.stop(Bt,!0)},Ft)},this.notifySelectionDragStart=function(Ft,Bt){T(Te,function(Xt){Xt.notifyStart(Bt)},Ft)},this.setZoom=function(Ft){Ne=Ft},this.getZoom=function(){return Ne};var ft=function(Ft,Bt,Xt,ii){G(Ft,function(Ci){Oe(Ci,Xt),Ci[ii](Bt),Re(Ci,Xt)})};G(["set","add","remove","toggle"],function(Ft){this[Ft+"Scope"]=function(Bt,Xt){ft(Bt._katavorioDrag,Xt,this._dragsByScope,Ft+"Scope"),ft(Bt._katavorioDrop,Xt,this._dropsByScope,Ft+"Scope")}.bind(this),this[Ft+"DragScope"]=function(Bt,Xt){ft(Bt.constructor===ye?Bt:Bt._katavorioDrag,Xt,this._dragsByScope,Ft+"Scope")}.bind(this),this[Ft+"DropScope"]=function(Bt,Xt){ft(Bt.constructor===ke?Bt:Bt._katavorioDrop,Xt,this._dropsByScope,Ft+"Scope")}.bind(this)}.bind(this)),this.snapToGrid=function(Ft,Bt){for(var Xt in this._dragsByScope)T(this._dragsByScope[Xt],function(ii){ii.snap(Ft,Bt)})},this.getDragsForScope=function(Ft){return this._dragsByScope[Ft]},this.getDropsForScope=function(Ft){return this._dropsByScope[Ft]};var kt=function(Ft,Bt,Xt){if(Ft=Ye(Ft),Ft[Bt]){var ii=Te.indexOf(Ft[Bt]);ii>=0&&Te.splice(ii,1),Oe(Ft[Bt],Xt)&&G(Ft[Bt],function(Ci){Ci.destroy()}),delete Ft[Bt]}},Et=function(Ft,Bt,Xt,ii){Ft=Ye(Ft),Ft[Bt]&&Ft[Bt].off(Xt,ii)};this.elementRemoved=function(Ft){Ft._katavorioDrag&&this.destroyDraggable(Ft),Ft._katavorioDrop&&this.destroyDroppable(Ft)},this.destroyDraggable=function(Ft,Bt,Xt){arguments.length===1?kt(Ft,"_katavorioDrag",this._dragsByScope):Et(Ft,"_katavorioDrag",Bt,Xt)},this.destroyDroppable=function(Ft,Bt,Xt){arguments.length===1?kt(Ft,"_katavorioDrop",this._dropsByScope):Et(Ft,"_katavorioDrop",Bt,Xt)},this.reset=function(){this._dragsByScope={},this._dropsByScope={},Te=[],Ae={},Yt={}};var Yt={},Tt=function(Ft,Bt,Xt){var ii=x(Bt)?Bt:Bt.id,Ci=x(Bt)?!0:Bt.active!==!1,_i=Yt[ii]||function(){var yn={name:ii,members:[]};return Yt[ii]=yn,yn}();return G(Ft,function(yn){if(yn._katavorioDrag){if(Xt&&yn._katavorioDrag.posseRoles[_i.name]!=null)return;ee(_i.members,yn._katavorioDrag),ee(yn._katavorioDrag.posses,_i.name),yn._katavorioDrag.posseRoles[_i.name]=Ci}}),_i};this.addToPosse=function(Ft,Bt){for(var Xt=[],ii=1;ii<arguments.length;ii++)Xt.push(Tt(Ft,arguments[ii]));return Xt.length===1?Xt[0]:Xt},this.setPosse=function(Ft,Bt){for(var Xt=[],ii=1;ii<arguments.length;ii++)Xt.push(Tt(Ft,arguments[ii],!0).name);return G(Ft,function(Ci){if(Ci._katavorioDrag){var _i=ne(Ci._katavorioDrag.posses,Xt),yn=[];Array.prototype.push.apply(yn,Ci._katavorioDrag.posses);for(var Tn=0;Tn<_i.length;Tn++)this.removeFromPosse(Ci,_i[Tn])}}.bind(this)),Xt.length===1?Xt[0]:Xt},this.removeFromPosse=function(Ft,Bt){if(arguments.length<2)throw new TypeError("No posse id provided for remove operation");for(var Xt=1;Xt<arguments.length;Xt++)Bt=arguments[Xt],G(Ft,function(ii){if(ii._katavorioDrag&&ii._katavorioDrag.posses){var Ci=ii._katavorioDrag;G(Bt,function(_i){de(Yt[_i].members,Ci),de(Ci.posses,_i),delete Ci.posseRoles[_i]})}})},this.removeFromAllPosses=function(Ft){G(Ft,function(Bt){if(Bt._katavorioDrag&&Bt._katavorioDrag.posses){var Xt=Bt._katavorioDrag;G(Xt.posses,function(ii){de(Yt[ii].members,Xt)}),Xt.posses.length=0,Xt.posseRoles={}}})},this.setPosseState=function(Ft,Bt,Xt){var ii=Yt[Bt];ii&&G(Ft,function(Ci){Ci._katavorioDrag&&Ci._katavorioDrag.posses&&(Ci._katavorioDrag.posseRoles[ii.name]=Xt)})}},ae.Katavorio.version="1.0.0",typeof co!="undefined"&&(co.Katavorio=ae.Katavorio)}.call(typeof window!="undefined"?window:co),function(){function ae(xe){return Object.prototype.toString.call(xe)==="[object Array]"}function ee(xe){return Object.prototype.toString.call(xe)==="[object Number]"}function de(xe){return typeof xe=="string"}function ne(xe){return typeof xe=="boolean"}function x(xe){return xe==null}function p(xe){return xe==null?!1:Object.prototype.toString.call(xe)==="[object Object]"}function M(xe){return Object.prototype.toString.call(xe)==="[object Date]"}function A(xe){return Object.prototype.toString.call(xe)==="[object Function]"}function F(xe){return A(xe)&&xe.name!=null&&xe.name.length>0}function D(xe){for(var Te in xe)if(xe.hasOwnProperty(Te))return!1;return!0}function f(xe){if(de(xe))return""+xe;if(ne(xe))return!!xe;if(M(xe))return new Date(xe.getTime());if(A(xe))return xe;if(ae(xe)){for(var Te=[],Ae=0;Ae<xe.length;Ae++)Te.push(f(xe[Ae]));return Te}if(p(xe)){var Ne={};for(var Re in xe)Ne[Re]=f(xe[Re]);return Ne}return xe}function v(xe,Te,Ae,Ne){var Re,Oe,Ve={},Ue={};for(Ae=Ae||[],Ne=Ne||[],Oe=0;Oe<Ae.length;Oe++)Ve[Ae[Oe]]=!0;for(Oe=0;Oe<Ne.length;Oe++)Ue[Ne[Oe]]=!0;var Ee=f(xe);for(Oe in Te)if(Ee[Oe]==null||Ue[Oe])Ee[Oe]=Te[Oe];else if(de(Te[Oe])||ne(Te[Oe]))Ve[Oe]?(Re=[],Re.push.apply(Re,ae(Ee[Oe])?Ee[Oe]:[Ee[Oe]]),Re.push.apply(Re,ne(Te[Oe])?Te[Oe]:[Te[Oe]]),Ee[Oe]=Re):Ee[Oe]=Te[Oe];else if(ae(Te[Oe]))Re=[],ae(Ee[Oe])&&Re.push.apply(Re,Ee[Oe]),Re.push.apply(Re,Te[Oe]),Ee[Oe]=Re;else if(p(Te[Oe])){p(Ee[Oe])||(Ee[Oe]={});for(var tt in Te[Oe])Ee[Oe][tt]=Te[Oe][tt]}return Ee}function u(xe,Te,Ae){if(xe!=null){var Ne=xe,Re=Ne;return Te.replace(/([^\.])+/g,function(Oe,Ve,Ue,Ee){var tt=Oe.match(/([^\[0-9]+){1}(\[)([0-9+])/),at=Ue+Oe.length>=Ee.length,ut=function(){return Re[tt[1]]||function(){return Re[tt[1]]=[],Re[tt[1]]}()};if(at)tt?ut()[tt[3]]=Ae:Re[Oe]=Ae;else if(tt){var Mt=ut();Re=Mt[tt[3]]||function(){return Mt[tt[3]]={},Mt[tt[3]]}()}else Re=Re[Oe]||function(){return Re[Oe]={},Re[Oe]}();return""}),xe}}function s(xe,Te,Ae){for(var Ne=0;Ne<Ae.length;Ne++){var Re=Ae[Ne][0][Ae[Ne][1]].apply(Ae[Ne][0],Ae[Ne][2]);if(Re===Te)return Re}return xe}function r(xe,Te,Ae,Ne){var Re=function(Ve){var Ue=Ve.match(/(\${.*?})/g);if(Ue!=null)for(var Ee=0;Ee<Ue.length;Ee++){var tt=Te[Ue[Ee].substring(2,Ue[Ee].length-1)]||"";tt!=null&&(Ve=Ve.replace(Ue[Ee],tt))}return Ve},Oe=function(Ve){if(Ve!=null){if(de(Ve))return Re(Ve);if(!A(Ve)||Ne||Ae!=null&&(Ve.name||"").indexOf(Ae)!==0){if(ae(Ve)){for(var Ue=[],Ee=0;Ee<Ve.length;Ee++)Ue.push(Oe(Ve[Ee]));return Ue}if(p(Ve)){var tt={};for(var at in Ve)tt[at]=Oe(Ve[at]);return tt}return Ve}return Ve(Te)}};return Oe(xe)}function d(xe,Te){if(xe){for(var Ae=0;Ae<xe.length;Ae++)if(Te(xe[Ae]))return Ae}return-1}function g(xe,Te){var Ae=d(xe,Te);return Ae>-1&&xe.splice(Ae,1),Ae!==-1}function m(xe,Te){var Ae=xe.indexOf(Te);return Ae>-1&&xe.splice(Ae,1),Ae!==-1}function b(xe,Te,Ae){d(xe,Ae)===-1&&xe.push(Te)}function w(xe,Te,Ae,Ne){var Re=xe[Te];return Re==null&&(Re=[],xe[Te]=Re),Re[Ne?"unshift":"push"](Ae),Re}function k(xe,Te,Ae){return xe.indexOf(Te)===-1?(Ae?xe.unshift(Te):xe.push(Te),!0):!1}function R(xe,Te,Ae){var Ne;Te=ae(Te)?Te:[Te];var Re=function(Ee){for(var tt=Ee.__proto__;tt!=null;)if(tt.prototype!=null){for(var at in tt.prototype)tt.prototype.hasOwnProperty(at)&&!xe.prototype.hasOwnProperty(at)&&(xe.prototype[at]=tt.prototype[at]);tt=tt.prototype.__proto__}else tt=null};for(Ne=0;Ne<Te.length;Ne++){for(var Oe in Te[Ne].prototype)Te[Ne].prototype.hasOwnProperty(Oe)&&!xe.prototype.hasOwnProperty(Oe)&&(xe.prototype[Oe]=Te[Ne].prototype[Oe]);Re(Te[Ne])}var Ve=function(Ee,tt){return function(){for(Ne=0;Ne<Te.length;Ne++)Te[Ne].prototype[Ee]&&Te[Ne].prototype[Ee].apply(this,arguments);return tt.apply(this,arguments)}},Ue=function(Ee){for(var tt in Ee)xe.prototype[tt]=Ve(tt,Ee[tt])};if(arguments.length>2)for(Ne=2;Ne<arguments.length;Ne++)Ue(arguments[Ne]);return xe}function T(){var xe=4294967295*Math.random()|0,Te=4294967295*Math.random()|0,Ae=4294967295*Math.random()|0,Ne=4294967295*Math.random()|0;return Ie[255&xe]+Ie[xe>>8&255]+Ie[xe>>16&255]+Ie[xe>>24&255]+"-"+Ie[255&Te]+Ie[Te>>8&255]+"-"+Ie[Te>>16&15|64]+Ie[Te>>24&255]+"-"+Ie[63&Ae|128]+Ie[Ae>>8&255]+"-"+Ie[Ae>>16&255]+Ie[Ae>>24&255]+Ie[255&Ne]+Ie[Ne>>8&255]+Ie[Ne>>16&255]+Ie[Ne>>24&255]}function z(xe){if(xe==null)return null;for(var Te=xe.replace(/^\s\s*/,""),Ae=/\s/,Ne=Te.length;Ae.test(Te.charAt(--Ne)););return Te.slice(0,Ne+1)}function G(xe,Te){xe=xe.length==null||typeof xe=="string"?[xe]:xe;for(var Ae=0;Ae<xe.length;Ae++)Te(xe[Ae])}function U(xe,Te){for(var Ae=[],Ne=0;Ne<xe.length;Ne++)Ae.push(Te(xe[Ne]));return Ae}function X(xe,Te,Ae){Ae=Ae||"parent";var Ne=function(Ee){return Ee?Te[Ee]:null},Re=function(Ee){return Ee?Ne(Ee[Ae]):null},Oe=function(Ee,tt){if(Ee==null)return tt;var at=["anchor","anchors","cssClass","connector","paintStyle","hoverPaintStyle","endpoint","endpoints"];tt.mergeStrategy==="override"&&Array.prototype.push.apply(at,["events","overlays"]);var ut=v(Ee,tt,[],at);return Oe(Re(Ee),ut)},Ve=function(Ee){if(Ee==null)return{};if(typeof Ee=="string")return Ne(Ee);if(Ee.length){for(var tt=!1,at=0,ut=void 0;!tt&&at<Ee.length;)ut=Ve(Ee[at]),ut?tt=!0:at++;return ut}},Ue=Ve(xe);return Ue?Oe(Re(Ue),Ue):{}}function Q(){for(var xe=[],Te=0;Te<arguments.length;Te++)xe[Te]=arguments[Te];if(ke.logEnabled&&typeof console!="undefined")try{var Ae=arguments[arguments.length-1];console.log(Ae)}catch(Ne){}}function oe(xe,Te,Ae){return function(){var Ne=null;try{Te!=null&&(Ne=Te.apply(this,arguments))}catch(Re){Q("jsPlumb function failed : "+Re)}if(xe!=null&&(Ae==null||Ne!==Ae))try{Ne=xe.apply(this,arguments)}catch(Re){Q("wrapped function failed : "+Re)}return Ne}}function le(xe,Te,Ae){var Ne=[xe[0]-Te[0],xe[1]-Te[1]],Re=Math.cos(Ae/360*Math.PI*2),Oe=Math.sin(Ae/360*Math.PI*2);return[Ne[0]*Re-Ne[1]*Oe+Te[0],Ne[1]*Re+Ne[0]*Oe+Te[1],Re,Oe]}function fe(xe,Te){var Ae=le(xe,[0,0],Te);return[Math.round(Ae[0]),Math.round(Ae[1])]}var ye=this;ye.jsPlumbUtil=ye.jsPlumbUtil||{};var ke=ye.jsPlumbUtil;typeof co!="undefined"&&(co.jsPlumbUtil=ke),ke.isArray=ae,ke.isNumber=ee,ke.isString=de,ke.isBoolean=ne,ke.isNull=x,ke.isObject=p,ke.isDate=M,ke.isFunction=A,ke.isNamedFunction=F,ke.isEmpty=D,ke.clone=f,ke.merge=v,ke.replace=u,ke.functionChain=s,ke.populate=r,ke.findWithFunction=d,ke.removeWithFunction=g,ke.remove=m,ke.addWithFunction=b,ke.addToList=w,ke.suggest=k,ke.extend=R;for(var Ie=[],ze=0;256>ze;ze++)Ie[ze]=(16>ze?"0":"")+ze.toString(16);ke.uuid=T,ke.fastTrim=z,ke.each=G,ke.map=U,ke.mergeWithParents=X,ke.logEnabled=!0,ke.log=Q,ke.wrap=oe;var Ye=function(){function xe(){var Te=this;this._listeners={},this.eventsSuspended=!1,this.tick=!1,this.eventsToDieOn={ready:!0},this.queue=[],this.bind=function(Ae,Ne,Re){var Oe=function(Ue){w(Te._listeners,Ue,Ne,Re),Ne.__jsPlumb=Ne.__jsPlumb||{},Ne.__jsPlumb[T()]=Ue};if(typeof Ae=="string")Oe(Ae);else if(Ae.length!=null)for(var Ve=0;Ve<Ae.length;Ve++)Oe(Ae[Ve]);return Te},this.fire=function(Ae,Ne,Re){if(this.tick)this.queue.unshift(arguments);else{if(this.tick=!0,!this.eventsSuspended&&this._listeners[Ae]){var Oe=this._listeners[Ae].length,Ve=0,Ue=!1,Ee=null;if(!this.shouldFireEvent||this.shouldFireEvent(Ae,Ne,Re))for(;!Ue&&Oe>Ve&&Ee!==!1;){if(this.eventsToDieOn[Ae])this._listeners[Ae][Ve].apply(this,[Ne,Re]);else try{Ee=this._listeners[Ae][Ve].apply(this,[Ne,Re])}catch(tt){Q("jsPlumb: fire failed for event "+Ae+" : "+tt)}Ve++,(this._listeners==null||this._listeners[Ae]==null)&&(Ue=!0)}}this.tick=!1,this._drain()}return this},this._drain=function(){var Ae=Te.queue.pop();Ae&&Te.fire.apply(Te,Ae)},this.unbind=function(Ae,Ne){if(arguments.length===0)this._listeners={};else if(arguments.length===1){if(typeof Ae=="string")delete this._listeners[Ae];else if(Ae.__jsPlumb){var Re=void 0;for(var Oe in Ae.__jsPlumb)Re=Ae.__jsPlumb[Oe],m(this._listeners[Re]||[],Ae)}}else arguments.length===2&&m(this._listeners[Ae]||[],Ne);return this},this.getListener=function(Ae){return Te._listeners[Ae]},this.setSuspendEvents=function(Ae){Te.eventsSuspended=Ae},this.isSuspendEvents=function(){return Te.eventsSuspended},this.silently=function(Ae){Te.setSuspendEvents(!0);try{Ae()}catch(Ne){Q("Cannot execute silent function "+Ne)}Te.setSuspendEvents(!1)},this.cleanupListeners=function(){for(var Ae in Te._listeners)Te._listeners[Ae]=null}}return xe}();ke.EventGenerator=Ye,ke.rotatePoint=le,ke.rotateAnchorOrientation=fe}.call(typeof window!="undefined"?window:co),function(){"use strict";var ae=this;ae.jsPlumbUtil.matchesSelector=function(ee,de,ne){ne=ne||ee.parentNode;for(var x=ne.querySelectorAll(de),p=0;p<x.length;p++)if(x[p]===ee)return!0;return!1},ae.jsPlumbUtil.consume=function(ee,de){ee.stopPropagation?ee.stopPropagation():ee.returnValue=!1,!de&&ee.preventDefault&&ee.preventDefault()},ae.jsPlumbUtil.sizeElement=function(ee,de,ne,x,p){ee&&(ee.style.height=p+"px",ee.height=p,ee.style.width=x+"px",ee.width=x,ee.style.left=de+"px",ee.style.top=ne+"px")}}.call(typeof window!="undefined"?window:co),function(){var ae={deriveAnchor:function(x,p,M,A){return{top:["TopRight","TopLeft"],bottom:["BottomRight","BottomLeft"]}[x][p]}},ee=this,de=function(x,p){this.count=0,this.instance=x,this.lists={},this.options=p||{},this.instance.addList=function(M,A){return this.listManager.addList(M,A)},this.instance.removeList=function(M){this.listManager.removeList(M)},this.instance.bind("manageElement",function(M){for(var A=this.instance.getSelector(M.el,"[jtk-scrollable-list]"),F=0;F<A.length;F++)this.addList(A[F])}.bind(this)),this.instance.bind("unmanageElement",function(M){this.removeList(M.el)}),this.instance.bind("connection",function(M,A){A==null&&(this._maybeUpdateParentList(M.source),this._maybeUpdateParentList(M.target))}.bind(this))};ee.jsPlumbListManager=de,de.prototype={addList:function(x,p){var M=this.instance.extend({},ae);this.instance.extend(M,this.options),p=this.instance.extend(M,p||{});var A=[this.instance.getInstanceIndex(),this.count++].join("_");this.lists[A]=new ne(this.instance,x,p,A)},removeList:function(x){var p=this.lists[x._jsPlumbList];p&&(p.destroy(),delete this.lists[x._jsPlumbList])},_maybeUpdateParentList:function(x){for(var p=x.parentNode,M=this.instance.getContainer();p!=null&&p!==M;){if(p._jsPlumbList!=null&&this.lists[p._jsPlumbList]!=null)return void p._jsPlumbScrollHandler();p=p.parentNode}}};var ne=function(x,p,M,A){function F(u,s,r,d){return M.anchor?M.anchor:M.deriveAnchor(u,s,r,d)}function D(u,s,r,d){return M.deriveEndpoint?M.deriveEndpoint(u,s,r,d):M.endpoint?M.endpoint:r.type}function f(u){for(var s=u.parentNode,r=x.getContainer();s!=null&&s!==r;){if(x.hasClass(s,"jtk-managed"))return void x.recalculateOffsets(s);s=s.parentNode}}p._jsPlumbList=A;var v=function(u){for(var s=x.getSelector(p,".jtk-managed"),r=x.getId(p),d=0;d<s.length;d++){if(s[d].offsetTop<p.scrollTop)s[d]._jsPlumbProxies||(s[d]._jsPlumbProxies=s[d]._jsPlumbProxies||[],x.select({source:s[d]}).each(function(m){x.proxyConnection(m,0,p,r,function(){return D("top",0,m.endpoints[0],m)},function(){return F("top",0,m.endpoints[0],m)}),s[d]._jsPlumbProxies.push([m,0])}),x.select({target:s[d]}).each(function(m){x.proxyConnection(m,1,p,r,function(){return D("top",1,m.endpoints[1],m)},function(){return F("top",1,m.endpoints[1],m)}),s[d]._jsPlumbProxies.push([m,1])}));else if(s[d].offsetTop+s[d].offsetHeight>p.scrollTop+p.offsetHeight)s[d]._jsPlumbProxies||(s[d]._jsPlumbProxies=s[d]._jsPlumbProxies||[],x.select({source:s[d]}).each(function(m){x.proxyConnection(m,0,p,r,function(){return D("bottom",0,m.endpoints[0],m)},function(){return F("bottom",0,m.endpoints[0],m)}),s[d]._jsPlumbProxies.push([m,0])}),x.select({target:s[d]}).each(function(m){x.proxyConnection(m,1,p,r,function(){return D("bottom",1,m.endpoints[1],m)},function(){return F("bottom",1,m.endpoints[1],m)}),s[d]._jsPlumbProxies.push([m,1])}));else if(s[d]._jsPlumbProxies){for(var g=0;g<s[d]._jsPlumbProxies.length;g++)x.unproxyConnection(s[d]._jsPlumbProxies[g][0],s[d]._jsPlumbProxies[g][1],r);delete s[d]._jsPlumbProxies}x.revalidate(s[d])}f(p)};x.setAttribute(p,"jtk-scrollable-list","true"),p._jsPlumbScrollHandler=v,x.on(p,"scroll",v),v(),this.destroy=function(){x.off(p,"scroll",v),delete p._jsPlumbScrollHandler;for(var u=x.getSelector(p,".jtk-managed"),s=x.getId(p),r=0;r<u.length;r++)if(u[r]._jsPlumbProxies){for(var d=0;d<u[r]._jsPlumbProxies.length;d++)x.unproxyConnection(u[r]._jsPlumbProxies[d][0],u[r]._jsPlumbProxies[d][1],s);delete u[r]._jsPlumbProxies}}}}.call(typeof window!="undefined"?window:co),function(){"use strict";var ae=this,ee=ae.jsPlumbUtil,de=function(r){if(r._jsPlumb.paintStyle&&r._jsPlumb.hoverPaintStyle){var d={};s.extend(d,r._jsPlumb.paintStyle),s.extend(d,r._jsPlumb.hoverPaintStyle),delete r._jsPlumb.hoverPaintStyle,d.gradient&&r._jsPlumb.paintStyle.fill&&delete d.gradient,r._jsPlumb.hoverPaintStyle=d}},ne=["tap","dbltap","click","dblclick","mouseover","mouseout","mousemove","mousedown","mouseup","contextmenu"],x=function(r,d,g,m){var b=r.getAttachedElements();if(b)for(var w=0,k=b.length;k>w;w++)m&&m===b[w]||b[w].setHover(d,!0,g)},p=function(r){return r==null?null:r.split(" ")},M=function(r,d,g){for(var m in d)r[m]=g},A=function(r,d,g){if(r.getDefaultType){var m=r.getTypeDescriptor(),b={},w=r.getDefaultType(),k=ee.merge({},w);M(b,w,"__default");for(var R=0,T=r._jsPlumb.types.length;T>R;R++){var z=r._jsPlumb.types[R];if(z!=="__default"){var G=r._jsPlumb.instance.getType(z,m);if(G!=null){var U=["anchor","anchors","connector","paintStyle","hoverPaintStyle","endpoint","endpoints","connectorOverlays","connectorStyle","connectorHoverStyle","endpointStyle","endpointHoverStyle"],X=[];G.mergeStrategy==="override"?Array.prototype.push.apply(U,["events","overlays","cssClass"]):X.push("cssClass"),k=ee.merge(k,G,X,U),M(b,G,z)}}}d&&(k=ee.populate(k,d,"_")),r.applyType(k,g,b),g||r.repaint()}},F=ae.jsPlumbUIComponent=function(r){ee.EventGenerator.apply(this,arguments);var d=this,g=arguments,m=d.idPrefix,b=m+new Date().getTime();this._jsPlumb={instance:r._jsPlumb,parameters:r.parameters||{},paintStyle:null,hoverPaintStyle:null,paintStyleInUse:null,hover:!1,beforeDetach:r.beforeDetach,beforeDrop:r.beforeDrop,overlayPlacements:[],hoverClass:r.hoverClass||r._jsPlumb.Defaults.HoverClass,types:[],typeCache:{}},this.cacheTypeItem=function(X,Q,oe){this._jsPlumb.typeCache[oe]=this._jsPlumb.typeCache[oe]||{},this._jsPlumb.typeCache[oe][X]=Q},this.getCachedTypeItem=function(X,Q){return this._jsPlumb.typeCache[Q]?this._jsPlumb.typeCache[Q][X]:null},this.getId=function(){return b};var w=r.overlays||[],k={};if(this.defaultOverlayKeys){for(var R=0;R<this.defaultOverlayKeys.length;R++)Array.prototype.push.apply(w,this._jsPlumb.instance.Defaults[this.defaultOverlayKeys[R]]||[]);for(R=0;R<w.length;R++){var T=s.convertToFullOverlaySpec(w[R]);k[T[1].id]=T}}var z={overlays:k,parameters:r.parameters||{},scope:r.scope||this._jsPlumb.instance.getDefaultScope()};if(this.getDefaultType=function(){return z},this.appendToDefaultType=function(X){for(var Q in X)z[Q]=X[Q]},r.events)for(var G in r.events)d.bind(G,r.events[G]);this.clone=function(){var X=Object.create(this.constructor.prototype);return this.constructor.apply(X,g),X}.bind(this),this.isDetachAllowed=function(X){var Q=!0;if(this._jsPlumb.beforeDetach)try{Q=this._jsPlumb.beforeDetach(X)}catch(oe){ee.log("jsPlumb: beforeDetach callback failed",oe)}return Q},this.isDropAllowed=function(X,Q,oe,le,fe,ye,ke){var Ie=this._jsPlumb.instance.checkCondition("beforeDrop",{sourceId:X,targetId:Q,scope:oe,connection:le,dropEndpoint:fe,source:ye,target:ke});if(this._jsPlumb.beforeDrop)try{Ie=this._jsPlumb.beforeDrop({sourceId:X,targetId:Q,scope:oe,connection:le,dropEndpoint:fe,source:ye,target:ke})}catch(ze){ee.log("jsPlumb: beforeDrop callback failed",ze)}return Ie};var U=[];this.setListenerComponent=function(X){for(var Q=0;Q<U.length;Q++)U[Q][3]=X}},D=function(r,d){var g=r._jsPlumb.types[d],m=r._jsPlumb.instance.getType(g,r.getTypeDescriptor());m!=null&&m.cssClass&&r.canvas&&r._jsPlumb.instance.removeClass(r.canvas,m.cssClass)};ee.extend(ae.jsPlumbUIComponent,ee.EventGenerator,{getParameter:function(r){return this._jsPlumb.parameters[r]},setParameter:function(r,d){this._jsPlumb.parameters[r]=d},getParameters:function(){return this._jsPlumb.parameters},setParameters:function(r){this._jsPlumb.parameters=r},getClass:function(){return s.getClass(this.canvas)},hasClass:function(r){return s.hasClass(this.canvas,r)},addClass:function(r){s.addClass(this.canvas,r)},removeClass:function(r){s.removeClass(this.canvas,r)},updateClasses:function(r,d){s.updateClasses(this.canvas,r,d)},setType:function(r,d,g){this.clearTypes(),this._jsPlumb.types=p(r)||[],A(this,d,g)},getType:function(){return this._jsPlumb.types},reapplyTypes:function(r,d){A(this,r,d)},hasType:function(r){return this._jsPlumb.types.indexOf(r)!==-1},addType:function(r,d,g){var m=p(r),b=!1;if(m!=null){for(var w=0,k=m.length;k>w;w++)this.hasType(m[w])||(this._jsPlumb.types.push(m[w]),b=!0);b&&A(this,d,g)}},removeType:function(r,d,g){var m=p(r),b=!1,w=function(T){var z=this._jsPlumb.types.indexOf(T);return z!==-1?(D(this,z),this._jsPlumb.types.splice(z,1),!0):!1}.bind(this);if(m!=null){for(var k=0,R=m.length;R>k;k++)b=w(m[k])||b;b&&A(this,d,g)}},clearTypes:function(r,d){for(var g=this._jsPlumb.types.length,m=0;g>m;m++)D(this,0),this._jsPlumb.types.splice(0,1);A(this,r,d)},toggleType:function(r,d,g){var m=p(r);if(m!=null){for(var b=0,w=m.length;w>b;b++){var k=this._jsPlumb.types.indexOf(m[b]);k!==-1?(D(this,k),this._jsPlumb.types.splice(k,1)):this._jsPlumb.types.push(m[b])}A(this,d,g)}},applyType:function(r,d){if(this.setPaintStyle(r.paintStyle,d),this.setHoverPaintStyle(r.hoverPaintStyle,d),r.parameters)for(var g in r.parameters)this.setParameter(g,r.parameters[g]);this._jsPlumb.paintStyleInUse=this.getPaintStyle()},setPaintStyle:function(r,d){this._jsPlumb.paintStyle=r,this._jsPlumb.paintStyleInUse=this._jsPlumb.paintStyle,de(this),d||this.repaint()},getPaintStyle:function(){return this._jsPlumb.paintStyle},setHoverPaintStyle:function(r,d){this._jsPlumb.hoverPaintStyle=r,de(this),d||this.repaint()},getHoverPaintStyle:function(){return this._jsPlumb.hoverPaintStyle},destroy:function(r){(r||this.typeId==null)&&(this.cleanupListeners(),this.clone=null,this._jsPlumb=null)},isHover:function(){return this._jsPlumb.hover},setHover:function(r,d,g){if(this._jsPlumb&&!this._jsPlumb.instance.currentlyDragging&&!this._jsPlumb.instance.isHoverSuspended()){this._jsPlumb.hover=r;var m=r?"addClass":"removeClass";this.canvas!=null&&(this._jsPlumb.instance.hoverClass!=null&&this._jsPlumb.instance[m](this.canvas,this._jsPlumb.instance.hoverClass),this._jsPlumb.hoverClass!=null&&this._jsPlumb.instance[m](this.canvas,this._jsPlumb.hoverClass)),this._jsPlumb.hoverPaintStyle!=null&&(this._jsPlumb.paintStyleInUse=r?this._jsPlumb.hoverPaintStyle:this._jsPlumb.paintStyle,this._jsPlumb.instance.isSuspendDrawing()||(g=g||jsPlumbUtil.uuid(),this.repaint({timestamp:g,recalc:!1}))),this.getAttachedElements&&!d&&x(this,r,jsPlumbUtil.uuid(),this)}}});var f=0,v=function(){var r=f+1;return f++,r},u=ae.jsPlumbInstance=function(r){this.version="2.15.6",this.Defaults={Anchor:"Bottom",Anchors:[null,null],ConnectionsDetachable:!0,ConnectionOverlays:[],Connector:"Bezier",Container:null,DoNotThrowErrors:!1,DragOptions:{},DropOptions:{},Endpoint:"Dot",EndpointOverlays:[],Endpoints:[null,null],EndpointStyle:{fill:"#456"},EndpointStyles:[null,null],EndpointHoverStyle:null,EndpointHoverStyles:[null,null],HoverPaintStyle:null,LabelStyle:{color:"black"},ListStyle:{},LogEnabled:!1,Overlays:[],MaxConnections:1,PaintStyle:{"stroke-width":4,stroke:"#456"},ReattachConnections:!1,RenderMode:"svg",Scope:"jsPlumb_DefaultScope"},r&&s.extend(this.Defaults,r),this.logEnabled=this.Defaults.LogEnabled,this._connectionTypes={},this._endpointTypes={},ee.EventGenerator.apply(this);var d=this,g=v(),m=d.bind,b={},w=1,k=function(Ke){if(Ke==null)return null;if(Ke.nodeType===3||Ke.nodeType===8)return{el:Ke,text:!0};var pt=d.getElement(Ke);return{el:pt,id:ee.isString(Ke)&&pt==null?Ke:Et(pt)}};this.getInstanceIndex=function(){return g},this.setZoom=function(Ke,pt){return w=Ke,d.fire("zoom",w),pt&&d.repaintEverything(),!0},this.getZoom=function(){return w};for(var R in this.Defaults)b[R]=this.Defaults[R];var T,z=[];this.unbindContainer=function(){if(T!=null&&z.length>0)for(var Ke=0;Ke<z.length;Ke++)d.off(T,z[Ke][0],z[Ke][1])},this.setContainer=function(Ke){this.unbindContainer(),Ke=this.getElement(Ke),this.select().each(function(Ti){Ti.moveParent(Ke)}),this.selectEndpoints().each(function(Ti){Ti.moveParent(Ke)});var pt=T;T=Ke,z.length=0;for(var ct={endpointclick:"endpointClick",endpointdblclick:"endpointDblClick"},ht=function(Ti,Oi,xn){var an=Oi.srcElement||Oi.target,Cn=(an&&an.parentNode?an.parentNode._jsPlumb:null)||(an?an._jsPlumb:null)||(an&&an.parentNode&&an.parentNode.parentNode?an.parentNode.parentNode._jsPlumb:null);if(Cn){Cn.fire(Ti,Cn,Oi);var Wi=xn&&ct[xn+Ti]||Ti;d.fire(Wi,Cn.component||Cn,Oi)}},Gt=function(Ti,Oi,xn){z.push([Ti,xn]),d.on(T,Ti,Oi,xn)},_t=function(Ti){Gt(Ti,".jtk-connector",function(Oi){ht(Ti,Oi)}),Gt(Ti,".jtk-endpoint",function(Oi){ht(Ti,Oi,"endpoint")}),Gt(Ti,".jtk-overlay",function(Oi){ht(Ti,Oi)})},ni=0;ni<ne.length;ni++)_t(ne[ni]);for(var Bi in le){var xi=le[Bi].el;xi.parentNode===pt&&(pt.removeChild(xi),T.appendChild(xi))}},this.getContainer=function(){return T},this.bind=function(Ke,pt){Ke==="ready"&&U?pt():m.apply(d,[Ke,pt])},d.importDefaults=function(Ke){for(var pt in Ke)d.Defaults[pt]=Ke[pt];return Ke.Container&&d.setContainer(Ke.Container),d},d.restoreDefaults=function(){return d.Defaults=s.extend({},b),d};var G=null,U=!1,X=[],Q={},oe={},le={},fe={},ye={},ke=!1,Ie=[],ze=!1,Ye=null,xe=this.Defaults.Scope,Te=1,Ae=function(){return""+Te++},Ne=function(Ke,pt){T?T.appendChild(Ke):pt?this.getElement(pt).appendChild(Ke):this.appendToRoot(Ke)}.bind(this),Re=function(Ke,pt,ct,ht){var Gt={c:[],e:[]};if(!ze&&(Ke=d.getElement(Ke),Ke!=null)){var _t=Et(Ke),ni=Ke.querySelectorAll(".jtk-managed");ct==null&&(ct=jsPlumbUtil.uuid());for(var Bi=(la({elId:_t,offset:pt,recalc:!1,timestamp:ct}),0);Bi<ni.length;Bi++)la({elId:ni[Bi].getAttribute("id"),recalc:!0,timestamp:ct});var xi=d.router.redraw(_t,pt,ct,null,ht);if(Array.prototype.push.apply(Gt.c,xi.c),Array.prototype.push.apply(Gt.e,xi.e),ni)for(var Ti=0;Ti<ni.length;Ti++)xi=d.router.redraw(ni[Ti].getAttribute("id"),null,ct,null,ht,!0),Array.prototype.push.apply(Gt.c,xi.c),Array.prototype.push.apply(Gt.e,xi.e)}return Gt},Oe=function(Ke){return oe[Ke]},Ve=function(Ke,pt){for(var ct=Ke.scope.split(/\s/),ht=pt.scope.split(/\s/),Gt=0;Gt<ct.length;Gt++)for(var _t=0;_t<ht.length;_t++)if(ht[_t]===ct[Gt])return!0;return!1},Ue=function(Ke,pt){var ct=s.extend({},Ke);for(var ht in pt)pt[ht]&&(ct[ht]=pt[ht]);return ct},Ee=function(Ke,pt){var ct=s.extend({},Ke);if(pt&&s.extend(ct,pt),ct.source&&(ct.source.endpoint?ct.sourceEndpoint=ct.source:ct.source=d.getElement(ct.source)),ct.target&&(ct.target.endpoint?ct.targetEndpoint=ct.target:ct.target=d.getElement(ct.target)),Ke.uuids&&(ct.sourceEndpoint=Oe(Ke.uuids[0]),ct.targetEndpoint=Oe(Ke.uuids[1])),ct.sourceEndpoint&&ct.sourceEndpoint.isFull())return void ee.log(d,"could not add connection; source endpoint is full");if(ct.targetEndpoint&&ct.targetEndpoint.isFull())return void ee.log(d,"could not add connection; target endpoint is full");if(!ct.type&&ct.sourceEndpoint&&(ct.type=ct.sourceEndpoint.connectionType),ct.sourceEndpoint&&ct.sourceEndpoint.connectorOverlays){ct.overlays=ct.overlays||[];for(var ht=0,Gt=ct.sourceEndpoint.connectorOverlays.length;Gt>ht;ht++)ct.overlays.push(ct.sourceEndpoint.connectorOverlays[ht])}ct.sourceEndpoint&&ct.sourceEndpoint.scope&&(ct.scope=ct.sourceEndpoint.scope),!ct["pointer-events"]&&ct.sourceEndpoint&&ct.sourceEndpoint.connectorPointerEvents&&(ct["pointer-events"]=ct.sourceEndpoint.connectorPointerEvents);var _t=function(Bi,xi,Ti){var Oi=Ue(xi,{anchor:ct.anchors?ct.anchors[Ti]:ct.anchor,endpoint:ct.endpoints?ct.endpoints[Ti]:ct.endpoint,paintStyle:ct.endpointStyles?ct.endpointStyles[Ti]:ct.endpointStyle,hoverPaintStyle:ct.endpointHoverStyles?ct.endpointHoverStyles[Ti]:ct.endpointHoverStyle});return d.addEndpoint(Bi,Oi)},ni=function(Bi,xi,Ti,Oi){if(ct[Bi]&&!ct[Bi].endpoint&&!ct[Bi+"Endpoint"]&&!ct.newConnection){var xn=Et(ct[Bi]),an=Ti[xn];if(an=an?an[Oi]:null){if(!an.enabled)return!1;var Cn=s.extend({},an.def);delete Cn.label;var Wi=an.endpoint!=null&&an.endpoint._jsPlumb?an.endpoint:_t(ct[Bi],Cn,xi);if(Wi.isFull())return!1;ct[Bi+"Endpoint"]=Wi,!ct.scope&&Cn.scope&&(ct.scope=Cn.scope),an.uniqueEndpoint?an.endpoint?Wi.finalEndpoint=an.endpoint:(an.endpoint=Wi,Wi.setDeleteOnEmpty(!1)):Wi.setDeleteOnEmpty(!0),xi===0&&an.def.connectorOverlays&&(ct.overlays=ct.overlays||[],Array.prototype.push.apply(ct.overlays,an.def.connectorOverlays))}}};return ni("source",0,this.sourceEndpointDefinitions,ct.type||"default")!==!1&&ni("target",1,this.targetEndpointDefinitions,ct.type||"default")!==!1?(ct.sourceEndpoint&&ct.targetEndpoint&&(Ve(ct.sourceEndpoint,ct.targetEndpoint)||(ct=null)),ct):void 0}.bind(d),tt=function(Ke){var pt=d.Defaults.ConnectionType||d.getDefaultConnectionType();Ke._jsPlumb=d,Ke.newConnection=tt,Ke.newEndpoint=ut,Ke.endpointsByUUID=oe,Ke.endpointsByElement=Q,Ke.finaliseConnection=at,Ke.id="con_"+Ae();var ct=new pt(Ke);return ct.isDetachable()&&(ct.endpoints[0].initDraggable("_jsPlumbSource"),ct.endpoints[1].initDraggable("_jsPlumbTarget")),ct},at=d.finaliseConnection=function(Ke,pt,ct,ht){if(pt=pt||{},Ke.suspendedEndpoint||X.push(Ke),Ke.pending=null,Ke.endpoints[0].isTemporarySource=!1,ht!==!1&&d.router.newConnection(Ke),Re(Ke.source),!pt.doNotFireConnectionEvent&&pt.fireEvent!==!1){var Gt={connection:Ke,source:Ke.source,target:Ke.target,sourceId:Ke.sourceId,targetId:Ke.targetId,sourceEndpoint:Ke.endpoints[0],targetEndpoint:Ke.endpoints[1]};d.fire("connection",Gt,ct)}},ut=function(Ke,pt){var ct=d.Defaults.EndpointType||s.Endpoint,ht=s.extend({},Ke);ht._jsPlumb=d,ht.newConnection=tt,ht.newEndpoint=ut,ht.endpointsByUUID=oe,ht.endpointsByElement=Q,ht.fireDetachEvent=Ft,ht.elementId=pt||Et(ht.source);var Gt=new ct(ht);return Gt.id="ep_"+Ae(),Ls(ht.elementId,ht.source),s.headless||d.getDragManager().endpointAdded(ht.source,pt),Gt},Mt=function(Ke,pt,ct){var ht=Q[Ke];if(ht&&ht.length)for(var Gt=0,_t=ht.length;_t>Gt;Gt++){for(var ni=0,Bi=ht[Gt].connections.length;Bi>ni;ni++){var xi=pt(ht[Gt].connections[ni]);if(xi)return}ct&&ct(ht[Gt])}},St=function(Ke,pt,ct){pt=pt==="block";var ht=null;ct&&(ht=function(_t){_t.setVisible(pt,!0,!0)});var Gt=k(Ke);Mt(Gt.id,function(_t){if(pt&&ct){var ni=_t.sourceId===Gt.id?1:0;_t.endpoints[ni].isVisible()&&_t.setVisible(!0)}else _t.setVisible(pt)},ht)},ft=function(Ke,pt){var ct=null;pt&&(ct=function(ht){var Gt=ht.isVisible();ht.setVisible(!Gt)}),Mt(Ke,function(ht){var Gt=ht.isVisible();ht.setVisible(!Gt)},ct)},kt=function(Ke){var pt=fe[Ke];return pt?{o:pt,s:Ie[Ke]}:la({elId:Ke})},Et=function(Ke,pt,ct){if(ee.isString(Ke))return Ke;if(Ke==null)return null;var ht=d.getAttribute(Ke,"id");return ht&&ht!=="undefined"||(arguments.length===2&&arguments[1]!==void 0?ht=pt:(arguments.length===1||arguments.length===3&&!arguments[2])&&(ht="jsPlumb_"+g+"_"+Ae()),ct||d.setAttribute(Ke,"id",ht)),ht};this.setConnectionBeingDragged=function(Ke){ke=Ke},this.isConnectionBeingDragged=function(){return ke},this.getManagedElements=function(){return le},this.connectorClass="jtk-connector",this.connectorOutlineClass="jtk-connector-outline",this.connectedClass="jtk-connected",this.hoverClass="jtk-hover",this.endpointClass="jtk-endpoint",this.endpointConnectedClass="jtk-endpoint-connected",this.endpointFullClass="jtk-endpoint-full",this.endpointDropAllowedClass="jtk-endpoint-drop-allowed",this.endpointDropForbiddenClass="jtk-endpoint-drop-forbidden",this.overlayClass="jtk-overlay",this.draggingClass="jtk-dragging",this.elementDraggingClass="jtk-element-dragging",this.sourceElementDraggingClass="jtk-source-element-dragging",this.targetElementDraggingClass="jtk-target-element-dragging",this.endpointAnchorClassPrefix="jtk-endpoint-anchor",this.hoverSourceClass="jtk-source-hover",this.hoverTargetClass="jtk-target-hover",this.dragSelectClass="jtk-drag-select",this.Anchors={},this.Connectors={svg:{}},this.Endpoints={svg:{}},this.Overlays={svg:{}},this.ConnectorRenderers={},this.SVG="svg",this.addEndpoint=function(Ke,pt,ct){ct=ct||{};var ht=s.extend({},ct);s.extend(ht,pt),ht.endpoint=ht.endpoint||d.Defaults.Endpoint,ht.paintStyle=ht.paintStyle||d.Defaults.EndpointStyle;for(var Gt=[],_t=ee.isArray(Ke)||Ke.length!=null&&!ee.isString(Ke)?Ke:[Ke],ni=0,Bi=_t.length;Bi>ni;ni++){ht.source=d.getElement(_t[ni]),Ps(ht.source);var xi=Et(ht.source),Ti=ut(ht,xi),Oi=Ls(xi,ht.source,null,!ze).info.o;ee.addToList(Q,xi,Ti),ze||Ti.paint({anchorLoc:Ti.anchor.compute({xy:[Oi.left,Oi.top],wh:Ie[xi],element:Ti,timestamp:Ye,rotation:this.getRotation(xi)}),timestamp:Ye}),Gt.push(Ti)}return Gt.length===1?Gt[0]:Gt},this.addEndpoints=function(Ke,pt,ct){for(var ht=[],Gt=0,_t=pt.length;_t>Gt;Gt++){var ni=d.addEndpoint(Ke,pt[Gt],ct);ee.isArray(ni)?Array.prototype.push.apply(ht,ni):ht.push(ni)}return ht},this.animate=function(Ke,pt,ct){if(!this.animationSupported)return!1;ct=ct||{};var ht=d.getElement(Ke),Gt=Et(ht),_t=s.animEvents.step,ni=s.animEvents.complete;ct[_t]=ee.wrap(ct[_t],function(){d.revalidate(Gt)}),ct[ni]=ee.wrap(ct[ni],function(){d.revalidate(Gt)}),d.doAnimate(ht,pt,ct)},this.checkCondition=function(Ke,pt){var ct=d.getListener(Ke),ht=!0;if(ct&&ct.length>0){var Gt=Array.prototype.slice.call(arguments,1);try{for(var _t=0,ni=ct.length;ni>_t;_t++)ht=ht&&ct[_t].apply(ct[_t],Gt)}catch(Bi){ee.log(d,"cannot check condition ["+Ke+"]"+Bi)}}return ht},this.connect=function(Ke,pt){var ct,ht=Ee(Ke,pt);if(ht){if(ht.source==null&&ht.sourceEndpoint==null)return void ee.log("Cannot establish connection - source does not exist");if(ht.target==null&&ht.targetEndpoint==null)return void ee.log("Cannot establish connection - target does not exist");Ps(ht.source),ct=tt(ht),at(ct,ht)}return ct};var Yt=[{el:"source",elId:"sourceId",epDefs:"sourceEndpointDefinitions"},{el:"target",elId:"targetId",epDefs:"targetEndpointDefinitions"}],Tt=function(Ke,pt,ct,ht){var Gt,_t,ni,Bi=Yt[ct],xi=Ke[Bi.elId],Ti=(Ke[Bi.el],Ke.endpoints[ct]),Oi={index:ct,originalSourceId:ct===0?xi:Ke.sourceId,newSourceId:Ke.sourceId,originalTargetId:ct===1?xi:Ke.targetId,newTargetId:Ke.targetId,connection:Ke};if(pt.constructor===s.Endpoint)Gt=pt,Gt.addConnection(Ke),pt=Gt.element;else if(_t=Et(pt),ni=this[Bi.epDefs][_t],_t===Ke[Bi.elId])Gt=null;else if(ni)for(var xn in ni){if(!ni[xn].enabled)return;Gt=ni[xn].endpoint!=null&&ni[xn].endpoint._jsPlumb?ni[xn].endpoint:this.addEndpoint(pt,ni[xn].def),ni[xn].uniqueEndpoint&&(ni[xn].endpoint=Gt),Gt.addConnection(Ke)}else Gt=Ke.makeEndpoint(ct===0,pt,_t);return Gt!=null&&(Ti.detachFromConnection(Ke),Ke.endpoints[ct]=Gt,Ke[Bi.el]=Gt.element,Ke[Bi.elId]=Gt.elementId,Oi[ct===0?"newSourceId":"newTargetId"]=Gt.elementId,Bt(Oi),ht||Ke.repaint()),Oi.element=pt,Oi}.bind(this);this.setSource=function(Ke,pt,ct){var ht=Tt(Ke,pt,0,ct);this.router.sourceOrTargetChanged(ht.originalSourceId,ht.newSourceId,Ke,ht.el,0)},this.setTarget=function(Ke,pt,ct){var ht=Tt(Ke,pt,1,ct);this.router.sourceOrTargetChanged(ht.originalTargetId,ht.newTargetId,Ke,ht.el,1)},this.deleteEndpoint=function(Ke,pt,ct){var ht=typeof Ke=="string"?oe[Ke]:Ke;return ht&&d.deleteObject({endpoint:ht,dontUpdateHover:pt,deleteAttachedObjects:ct}),d},this.deleteEveryEndpoint=function(){var Ke=d.setSuspendDrawing(!0);for(var pt in Q){var ct=Q[pt];if(ct&&ct.length)for(var ht=0,Gt=ct.length;Gt>ht;ht++)d.deleteEndpoint(ct[ht],!0)}Q={},le={},oe={},fe={},ye={},d.router.reset();var _t=d.getDragManager();return _t&&_t.reset(),Ke||d.setSuspendDrawing(!1),d};var Ft=function(Ke,pt,ct){var ht=d.Defaults.ConnectionType||d.getDefaultConnectionType(),Gt=Ke.constructor===ht,_t=Gt?{connection:Ke,source:Ke.source,target:Ke.target,sourceId:Ke.sourceId,targetId:Ke.targetId,sourceEndpoint:Ke.endpoints[0],targetEndpoint:Ke.endpoints[1]}:Ke;pt&&d.fire("connectionDetached",_t,ct),d.fire("internal.connectionDetached",_t,ct),d.router.connectionDetached(_t)},Bt=d.fireMoveEvent=function(Ke,pt){d.fire("connectionMoved",Ke,pt)};this.unregisterEndpoint=function(Ke){Ke._jsPlumb.uuid&&(oe[Ke._jsPlumb.uuid]=null),d.router.deleteEndpoint(Ke);for(var pt in Q){var ct=Q[pt];if(ct){for(var ht=[],Gt=0,_t=ct.length;_t>Gt;Gt++)ct[Gt]!==Ke&&ht.push(ct[Gt]);Q[pt]=ht}Q[pt].length<1&&delete Q[pt]}};var Xt="isDetachAllowed",ii="beforeDetach",Ci="checkCondition";this.deleteConnection=function(Ke,pt){return Ke!=null&&(pt=pt||{},pt.force||ee.functionChain(!0,!1,[[Ke.endpoints[0],Xt,[Ke]],[Ke.endpoints[1],Xt,[Ke]],[Ke,Xt,[Ke]],[d,Ci,[ii,Ke]]]))?(Ke.setHover(!1),Ft(Ke,!Ke.pending&&pt.fireEvent!==!1,pt.originalEvent),Ke.endpoints[0].detachFromConnection(Ke),Ke.endpoints[1].detachFromConnection(Ke),ee.removeWithFunction(X,function(ct){return Ke.id===ct.id}),Ke.cleanup(),Ke.destroy(),!0):!1},this.deleteEveryConnection=function(Ke){Ke=Ke||{};var pt=X.length,ct=0;return d.batch(function(){for(var ht=0;pt>ht;ht++)ct+=d.deleteConnection(X[0],Ke)?1:0}),ct},this.deleteConnectionsForElement=function(Ke,pt){pt=pt||{},Ke=d.getElement(Ke);var ct=Et(Ke),ht=Q[ct];if(ht&&ht.length)for(var Gt=0,_t=ht.length;_t>Gt;Gt++)ht[Gt].deleteEveryConnection(pt);return d},this.deleteObject=function(Ke){var pt={endpoints:{},connections:{},endpointCount:0,connectionCount:0},ct=Ke.deleteAttachedObjects!==!1,ht=function(Oi){Oi!=null&&pt.connections[Oi.id]==null&&(Ke.dontUpdateHover||Oi._jsPlumb==null||Oi.setHover(!1),pt.connections[Oi.id]=Oi,pt.connectionCount++)},Gt=function(Oi){if(Oi!=null&&pt.endpoints[Oi.id]==null&&(Ke.dontUpdateHover||Oi._jsPlumb==null||Oi.setHover(!1),pt.endpoints[Oi.id]=Oi,pt.endpointCount++,ct))for(var xn=0;xn<Oi.connections.length;xn++){var an=Oi.connections[xn];ht(an)}};Ke.connection?ht(Ke.connection):Gt(Ke.endpoint);for(var _t in pt.connections){var ni=pt.connections[_t];if(ni._jsPlumb){ee.removeWithFunction(X,function(Oi){return ni.id===Oi.id}),Ft(ni,Ke.fireEvent===!1?!1:!ni.pending,Ke.originalEvent);var Bi=Ke.deleteAttachedObjects==null?null:!Ke.deleteAttachedObjects;ni.endpoints[0].detachFromConnection(ni,null,Bi),ni.endpoints[1].detachFromConnection(ni,null,Bi),ni.cleanup(!0),ni.destroy(!0)}}for(var xi in pt.endpoints){var Ti=pt.endpoints[xi];Ti._jsPlumb&&(d.unregisterEndpoint(Ti),Ti.cleanup(!0),Ti.destroy(!0))}return pt};var _i=function(Ke,pt,ct,ht){for(var Gt=0,_t=Ke.length;_t>Gt;Gt++)Ke[Gt][pt].apply(Ke[Gt],ct);return ht(Ke)},yn=function(Ke,pt,ct){for(var ht=[],Gt=0,_t=Ke.length;_t>Gt;Gt++)ht.push([Ke[Gt][pt].apply(Ke[Gt],ct),Ke[Gt]]);return ht},Tn=function(Ke,pt,ct){return function(){return _i(Ke,pt,arguments,ct)}},ma=function(Ke,pt){return function(){return yn(Ke,pt,arguments)}},Ho=function(Ke,pt){var ct=[];if(Ke)if(typeof Ke=="string"){if(Ke==="*")return Ke;ct.push(Ke)}else if(pt)ct=Ke;else if(Ke.length)for(var ht=0,Gt=Ke.length;Gt>ht;ht++)ct.push(k(Ke[ht]).id);else ct.push(k(Ke).id);return ct},Ar=function(Ke,pt,ct){return Ke==="*"?!0:Ke.length>0?Ke.indexOf(pt)!==-1:!ct};this.getConnections=function(Ke,pt){Ke?Ke.constructor===String&&(Ke={scope:Ke}):Ke={};for(var ct=Ke.scope||d.getDefaultScope(),ht=Ho(ct,!0),Gt=Ho(Ke.source),_t=Ho(Ke.target),ni=!pt&&ht.length>1?{}:[],Bi=function(Cn,Wi){if(!pt&&ht.length>1){var ko=ni[Cn];ko==null&&(ko=ni[Cn]=[]),ko.push(Wi)}else ni.push(Wi)},xi=0,Ti=X.length;Ti>xi;xi++){var Oi=X[xi],xn=Oi.proxies&&Oi.proxies[0]?Oi.proxies[0].originalEp.elementId:Oi.sourceId,an=Oi.proxies&&Oi.proxies[1]?Oi.proxies[1].originalEp.elementId:Oi.targetId;Ar(ht,Oi.scope)&&Ar(Gt,xn)&&Ar(_t,an)&&Bi(Oi.scope,Oi)}return ni};var ll=function(Ke,pt){return function(ct){for(var ht=0,Gt=Ke.length;Gt>ht;ht++)ct(Ke[ht]);return pt(Ke)}},eo=function(Ke){return function(pt){return Ke[pt]}},Nr=function(Ke,pt){var ct,ht,Gt={length:Ke.length,each:ll(Ke,pt),get:eo(Ke)},_t=["setHover","removeAllOverlays","setLabel","addClass","addOverlay","removeOverlay","removeOverlays","showOverlay","hideOverlay","showOverlays","hideOverlays","setPaintStyle","setHoverPaintStyle","setSuspendEvents","setParameter","setParameters","setVisible","repaint","addType","toggleType","removeType","removeClass","setType","bind","unbind"],ni=["getLabel","getOverlay","isHover","getParameter","getParameters","getPaintStyle","getHoverPaintStyle","isVisible","hasType","getType","isSuspendEvents"];for(ct=0,ht=_t.length;ht>ct;ct++)Gt[_t[ct]]=Tn(Ke,_t[ct],pt);for(ct=0,ht=ni.length;ht>ct;ct++)Gt[ni[ct]]=ma(Ke,ni[ct]);return Gt},rn=function(Ke){var pt=Nr(Ke,rn);return s.extend(pt,{setDetachable:Tn(Ke,"setDetachable",rn),setReattach:Tn(Ke,"setReattach",rn),setConnector:Tn(Ke,"setConnector",rn),delete:function(){for(var ct=0,ht=Ke.length;ht>ct;ct++)d.deleteConnection(Ke[ct])},isDetachable:ma(Ke,"isDetachable"),isReattach:ma(Ke,"isReattach")})},Wo=function(Ke){var pt=Nr(Ke,Wo);return s.extend(pt,{setEnabled:Tn(Ke,"setEnabled",Wo),setAnchor:Tn(Ke,"setAnchor",Wo),isEnabled:ma(Ke,"isEnabled"),deleteEveryConnection:function(){for(var ct=0,ht=Ke.length;ht>ct;ct++)Ke[ct].deleteEveryConnection()},delete:function(){for(var ct=0,ht=Ke.length;ht>ct;ct++)d.deleteEndpoint(Ke[ct])}})};this.select=function(Ke){return Ke=Ke||{},Ke.scope=Ke.scope||"*",rn(Ke.connections||d.getConnections(Ke,!0))},this.selectEndpoints=function(Ke){Ke=Ke||{},Ke.scope=Ke.scope||"*";var pt=!Ke.element&&!Ke.source&&!Ke.target,ct=pt?"*":Ho(Ke.element),ht=pt?"*":Ho(Ke.source),Gt=pt?"*":Ho(Ke.target),_t=Ho(Ke.scope,!0),ni=[];for(var Bi in Q){var xi=Ar(ct,Bi,!0),Ti=Ar(ht,Bi,!0),Oi=ht!=="*",xn=Ar(Gt,Bi,!0),an=Gt!=="*";if(xi||Ti||xn)e:for(var Cn=0,Wi=Q[Bi].length;Wi>Cn;Cn++){var ko=Q[Bi][Cn];if(Ar(_t,ko.scope,!0)){var xc=Oi&&ht.length>0&&!ko.isSource,Os=an&&Gt.length>0&&!ko.isTarget;if(xc||Os)continue e;ni.push(ko)}}}return Wo(ni)},this.getAllConnections=function(){return X},this.getDefaultScope=function(){return xe},this.getEndpoint=Oe,this.getEndpoints=function(Ke){return Q[k(Ke).id]||[]},this.getDefaultEndpointType=function(){return s.Endpoint},this.getDefaultConnectionType=function(){return s.Connection},this.getId=Et,this.draw=Re,this.info=k,this.appendElement=Ne;var Mo=!1;this.isHoverSuspended=function(){return Mo},this.setHoverSuspended=function(Ke){Mo=Ke},this.hide=function(Ke,pt){return St(Ke,"none",pt),d},this.idstamp=Ae;var Ps=function(Ke){if(!T&&Ke){var pt=d.getElement(Ke);pt.offsetParent&&d.setContainer(pt.offsetParent)}},Un=function(){d.Defaults.Container&&d.setContainer(d.Defaults.Container)},Ls=d.manage=function(Ke,pt,ct,ht){return le[Ke]?ht&&(le[Ke].info=la({elId:Ke,timestamp:Ye,recalc:!0})):(le[Ke]={el:pt,endpoints:[],connections:[],rotation:0},le[Ke].info=la({elId:Ke,timestamp:Ye}),d.addClass(pt,"jtk-managed"),ct||d.fire("manageElement",{id:Ke,info:le[Ke].info,el:pt})),le[Ke]};this.unmanage=function(Ke){if(le[Ke]){var pt=le[Ke].el;d.removeClass(pt,"jtk-managed"),delete le[Ke],d.fire("unmanageElement",{id:Ke,el:pt})}},this.rotate=function(Ke,pt,ct){return le[Ke]&&(le[Ke].rotation=pt,le[Ke].el.style.transform="rotate("+pt+"deg)",le[Ke].el.style.transformOrigin="center center",ct!==!0)?this.revalidate(Ke):{c:[],e:[]}},this.getRotation=function(Ke){return le[Ke]&&le[Ke].rotation||0};var la=function(Ke){var pt,ct=Ke.timestamp,ht=Ke.recalc,Gt=Ke.offset,_t=Ke.elId;return ze&&!ct&&(ct=Ye),!ht&&ct&&ct===ye[_t]?{o:Ke.offset||fe[_t],s:Ie[_t]}:(ht||!Gt&&fe[_t]==null?(pt=le[_t]?le[_t].el:null,pt!=null&&(Ie[_t]=d.getSize(pt),fe[_t]=d.getOffset(pt),ye[_t]=ct)):(fe[_t]=Gt||fe[_t],Ie[_t]==null&&(pt=le[_t].el,pt!=null&&(Ie[_t]=d.getSize(pt))),ye[_t]=ct),fe[_t]&&!fe[_t].right&&(fe[_t].right=fe[_t].left+Ie[_t][0],fe[_t].bottom=fe[_t].top+Ie[_t][1],fe[_t].width=Ie[_t][0],fe[_t].height=Ie[_t][1],fe[_t].centerx=fe[_t].left+fe[_t].width/2,fe[_t].centery=fe[_t].top+fe[_t].height/2),{o:fe[_t],s:Ie[_t]})};this.updateOffset=la,this.init=function(){U||(Un(),d.router=new ae.jsPlumb.DefaultRouter(d),d.anchorManager=d.router.anchorManager,U=!0,d.fire("ready",d))}.bind(this),this.log=G,this.jsPlumbUIComponent=F,this.makeAnchor=function(){var Ke,pt=function(ni,Bi){if(ae.jsPlumb.Anchors[ni])return new ae.jsPlumb.Anchors[ni](Bi);if(!d.Defaults.DoNotThrowErrors)throw{msg:"jsPlumb: unknown anchor type '"+ni+"'"}};if(arguments.length===0)return null;var ct=arguments[0],ht=arguments[1],Gt=(arguments[2],null);if(ct.compute&&ct.getOrientation)return ct;if(typeof ct=="string")Gt=pt(arguments[0],{elementId:ht,jsPlumbInstance:d});else if(ee.isArray(ct))if(ee.isArray(ct[0])||ee.isString(ct[0]))ct.length===2&&ee.isObject(ct[1])?ee.isString(ct[0])?(Ke=ae.jsPlumb.extend({elementId:ht,jsPlumbInstance:d},ct[1]),Gt=pt(ct[0],Ke)):(Ke=ae.jsPlumb.extend({elementId:ht,jsPlumbInstance:d,anchors:ct[0]},ct[1]),Gt=new ae.jsPlumb.DynamicAnchor(Ke)):Gt=new s.DynamicAnchor({anchors:ct,selector:null,elementId:ht,jsPlumbInstance:d});else{var _t={x:ct[0],y:ct[1],orientation:ct.length>=4?[ct[2],ct[3]]:[0,0],offsets:ct.length>=6?[ct[4],ct[5]]:[0,0],elementId:ht,jsPlumbInstance:d,cssClass:ct.length===7?ct[6]:null};Gt=new ae.jsPlumb.Anchor(_t),Gt.clone=function(){return new ae.jsPlumb.Anchor(_t)}}return Gt.id||(Gt.id="anchor_"+Ae()),Gt},this.makeAnchors=function(Ke,pt,ct){for(var ht=[],Gt=0,_t=Ke.length;_t>Gt;Gt++)typeof Ke[Gt]=="string"?ht.push(ae.jsPlumb.Anchors[Ke[Gt]]({elementId:pt,jsPlumbInstance:ct})):ee.isArray(Ke[Gt])&&ht.push(d.makeAnchor(Ke[Gt],pt,ct));return ht},this.makeDynamicAnchor=function(Ke,pt){return new ae.jsPlumb.DynamicAnchor({anchors:Ke,selector:pt,elementId:null,jsPlumbInstance:d})},this.targetEndpointDefinitions={},this.sourceEndpointDefinitions={};var uo=function(Ke,pt,ct,ht,Gt){for(var _t=Ke.target||Ke.srcElement,ni=!1,Bi=ht.getSelector(pt,ct),xi=0;xi<Bi.length;xi++)if(Bi[xi]===_t){ni=!0;break}return Gt?!ni:ni},ka=function(Ke,pt,ct,ht,Gt){var _t=new F(pt),ni=pt._jsPlumb.EndpointDropHandler({jsPlumb:d,enabled:function(){return Ke.def.enabled},isFull:function(){var xi=d.select({target:Ke.id}).length;return Ke.def.maxConnections>0&&xi>=Ke.def.maxConnections},element:Ke.el,elementId:Ke.id,isSource:ht,isTarget:Gt,addClass:function(xi){d.addClass(Ke.el,xi)},removeClass:function(xi){d.removeClass(Ke.el,xi)},onDrop:function(xi){var Ti=xi.endpoints[0];Ti.anchor.locked=!1},isDropAllowed:function(){return _t.isDropAllowed.apply(_t,arguments)},isRedrop:function(xi){return xi.suspendedElement!=null&&xi.suspendedEndpoint!=null&&xi.suspendedEndpoint.element===Ke.el},getEndpoint:function(xi){var Ti=Ke.def.endpoint;if(Ti==null||Ti._jsPlumb==null){var Oi=d.deriveEndpointAndAnchorSpec(xi.getType().join(" "),!0),xn=Oi.endpoints?ae.jsPlumb.extend(pt,{endpoint:Ke.def.def.endpoint||Oi.endpoints[1]}):pt;Oi.anchors&&(xn=ae.jsPlumb.extend(xn,{anchor:Ke.def.def.anchor||Oi.anchors[1]})),Ti=d.addEndpoint(Ke.el,xn),Ti._mtNew=!0}if(pt.uniqueEndpoint&&(Ke.def.endpoint=Ti),Ti.setDeleteOnEmpty(!0),xi.isDetachable()&&Ti.initDraggable(),Ti.anchor.positionFinder!=null){var an=d.getUIPosition(arguments,d.getZoom()),Cn=d.getOffset(Ke.el),Wi=d.getSize(Ke.el),ko=an==null?[0,0]:Ti.anchor.positionFinder(an,Cn,Wi,Ti.anchor.constructorParams);Ti.anchor.x=ko[0],Ti.anchor.y=ko[1]}return Ti},maybeCleanup:function(xi){xi._mtNew&&xi.connections.length===0?d.deleteObject({endpoint:xi}):delete xi._mtNew}}),Bi=ae.jsPlumb.dragEvents.drop;return ct.scope=ct.scope||pt.scope||d.Defaults.Scope,ct[Bi]=ee.wrap(ct[Bi],ni,!0),ct.rank=pt.rank||0,Gt&&(ct[ae.jsPlumb.dragEvents.over]=function(){return!0}),pt.allowLoopback===!1&&(ct.canDrop=function(xi){var Ti=xi.getDragElement()._jsPlumbRelatedElement;return Ti!==Ke.el}),d.initDroppable(Ke.el,ct,"internal"),ni};this.makeTarget=function(Ke,pt,ct){var ht=ae.jsPlumb.extend({_jsPlumb:this},ct);ae.jsPlumb.extend(ht,pt);for(var Gt=ht.maxConnections||-1,_t=function(Ti){var Oi=k(Ti),xn=Oi.id,an=ae.jsPlumb.extend({},ht.dropOptions||{}),Cn=ht.connectionType||"default";this.targetEndpointDefinitions[xn]=this.targetEndpointDefinitions[xn]||{},Ps(xn),Oi.el._isJsPlumbGroup&&an.rank==null&&(an.rank=-1);var Wi={def:ae.jsPlumb.extend({},ht),uniqueEndpoint:ht.uniqueEndpoint,maxConnections:Gt,enabled:!0};ht.createEndpoint&&(Wi.uniqueEndpoint=!0,Wi.endpoint=d.addEndpoint(Ti,Wi.def),Wi.endpoint.setDeleteOnEmpty(!1)),Oi.def=Wi,this.targetEndpointDefinitions[xn][Cn]=Wi,ka(Oi,ht,an,ht.isSource===!0,!0),Oi.el._katavorioDrop[Oi.el._katavorioDrop.length-1].targetDef=Wi}.bind(this),ni=Ke.length&&Ke.constructor!==String?Ke:[Ke],Bi=0,xi=ni.length;xi>Bi;Bi++)_t(ni[Bi]);return this},this.unmakeTarget=function(Ke,pt){var ct=k(Ke);return d.destroyDroppable(ct.el,"internal"),pt||delete this.targetEndpointDefinitions[ct.id],this},this.makeSource=function(Ke,pt,ct){var ht=ae.jsPlumb.extend({_jsPlumb:this},ct);ae.jsPlumb.extend(ht,pt);var Gt=ht.connectionType||"default",_t=d.deriveEndpointAndAnchorSpec(Gt);ht.endpoint=ht.endpoint||_t.endpoints[0],ht.anchor=ht.anchor||_t.anchors[0];for(var ni=ht.maxConnections||-1,Bi=ht.onMaxConnections,xi=function(an){var Cn=an.id,Wi=this.getElement(an.el);this.sourceEndpointDefinitions[Cn]=this.sourceEndpointDefinitions[Cn]||{},Ps(Cn);var ko={def:ae.jsPlumb.extend({},ht),uniqueEndpoint:ht.uniqueEndpoint,maxConnections:ni,enabled:!0};ht.createEndpoint&&(ko.uniqueEndpoint=!0,ko.endpoint=d.addEndpoint(Ke,ko.def),ko.endpoint.setDeleteOnEmpty(!1)),this.sourceEndpointDefinitions[Cn][Gt]=ko,an.def=ko;var xc=ae.jsPlumb.dragEvents.stop,Os=ae.jsPlumb.dragEvents.drag,pr=ae.jsPlumb.extend({},ht.dragOptions||{}),$r=pr.drag,Qh=pr.stop,Lo=null,Qr=!1;pr.scope=pr.scope||ht.scope,pr[Os]=ee.wrap(pr[Os],function(){$r&&$r.apply(this,arguments),Qr=!1}),pr[xc]=ee.wrap(pr[xc],function(){if(Qh&&Qh.apply(this,arguments),this.currentlyDragging=!1,Lo._jsPlumb!=null){var Qn=ht.anchor||this.Defaults.Anchor,Oo=Lo.anchor,Id=Lo.connections[0],Td=this.makeAnchor(Qn,Cn,this),Jh=Lo.element;if(Td.positionFinder!=null){var Mc=d.getOffset(Jh),kc=this.getSize(Jh),_s={left:Mc.left+Oo.x*kc[0],top:Mc.top+Oo.y*kc[1]},Jr=Td.positionFinder(_s,Mc,kc,Td.constructorParams);Td.x=Jr[0],Td.y=Jr[1]}Lo.setAnchor(Td,!0),Lo.repaint(),this.repaint(Lo.elementId),Id!=null&&this.repaint(Id.targetId)}}.bind(this));var cl=function(Qn){if(Qn.which!==3&&Qn.button!==2){Cn=this.getId(this.getElement(an.el));var Oo=this.sourceEndpointDefinitions[Cn][Gt];if(Oo.enabled){if(ht.filter){var Id=ee.isString(ht.filter)?uo(Qn,an.el,ht.filter,this,ht.filterExclude):ht.filter(Qn,an.el);if(Id===!1)return}var Td=this.select({source:Cn}).length;if(Oo.maxConnections>=0&&Td>=Oo.maxConnections)return Bi&&Bi({element:an.el,maxConnections:ni},Qn),!1;var Jh=ae.jsPlumb.getPositionOnElement(Qn,Wi,w),Mc={};ae.jsPlumb.extend(Mc,Oo.def),Mc.isTemporarySource=!0,Mc.anchor=[Jh[0],Jh[1],0,0],Mc.dragOptions=pr,Oo.def.scope&&(Mc.scope=Oo.def.scope),Lo=this.addEndpoint(Cn,Mc),Qr=!0,Lo.setDeleteOnEmpty(!0),Oo.uniqueEndpoint&&(Oo.endpoint?Lo.finalEndpoint=Oo.endpoint:(Oo.endpoint=Lo,Lo.setDeleteOnEmpty(!1)));var kc=function(){d.off(Lo.canvas,"mouseup",kc),d.off(an.el,"mouseup",kc),Qr&&(Qr=!1,d.deleteEndpoint(Lo))};d.on(Lo.canvas,"mouseup",kc),d.on(an.el,"mouseup",kc);var _s={};if(Oo.def.extract)for(var Jr in Oo.def.extract){var Vl=(Qn.srcElement||Qn.target).getAttribute(Jr);Vl&&(_s[Oo.def.extract[Jr]]=Vl)}d.trigger(Lo.canvas,"mousedown",Qn,_s),ee.consume(Qn)}}}.bind(this);this.on(an.el,"mousedown",cl),ko.trigger=cl,ht.filter&&(ee.isString(ht.filter)||ee.isFunction(ht.filter))&&d.setDragFilter(an.el,ht.filter);var Ai=ae.jsPlumb.extend({},ht.dropOptions||{});ka(an,ht,Ai,!0,ht.isTarget===!0)}.bind(this),Ti=Ke.length&&Ke.constructor!==String?Ke:[Ke],Oi=0,xn=Ti.length;xn>Oi;Oi++)xi(k(Ti[Oi]));return this},this.unmakeSource=function(Ke,pt,ct){var ht=k(Ke);d.destroyDroppable(ht.el,"internal");var Gt=this.sourceEndpointDefinitions[ht.id];if(Gt){for(var _t in Gt)if(pt==null||pt===_t){var ni=Gt[_t].trigger;ni&&d.off(ht.el,"mousedown",ni),ct||delete this.sourceEndpointDefinitions[ht.id][_t]}}return this},this.unmakeEverySource=function(){for(var Ke in this.sourceEndpointDefinitions)d.unmakeSource(Ke,null,!0);return this.sourceEndpointDefinitions={},this};var $n=function(Ke,pt,ct){pt=ee.isArray(pt)?pt:[pt];var ht=Et(Ke);ct=ct||"default";for(var Gt=0;Gt<pt.length;Gt++){var _t=this[pt[Gt]][ht];if(_t&&_t[ct])return _t[ct].def.scope||this.Defaults.Scope}}.bind(this),to=function(Ke,pt,ct,ht){ct=ee.isArray(ct)?ct:[ct];var Gt=Et(Ke);ht=ht||"default";for(var _t=0;_t<ct.length;_t++){var ni=this[ct[_t]][Gt];ni&&ni[ht]&&(ni[ht].def.scope=pt)}}.bind(this);this.getScope=function(Ke,pt){return $n(Ke,["sourceEndpointDefinitions","targetEndpointDefinitions"])},this.getSourceScope=function(Ke){return $n(Ke,"sourceEndpointDefinitions")},this.getTargetScope=function(Ke){return $n(Ke,"targetEndpointDefinitions")},this.setScope=function(Ke,pt,ct){this.setSourceScope(Ke,pt,ct),this.setTargetScope(Ke,pt,ct)},this.setSourceScope=function(Ke,pt,ct){to(Ke,pt,"sourceEndpointDefinitions",ct),this.setDragScope(Ke,pt)},this.setTargetScope=function(Ke,pt,ct){to(Ke,pt,"targetEndpointDefinitions",ct),this.setDropScope(Ke,pt)},this.unmakeEveryTarget=function(){for(var Ke in this.targetEndpointDefinitions)d.unmakeTarget(Ke,!0);return this.targetEndpointDefinitions={},this};var $t=function(Ke,pt,ct,ht,Gt){var _t,ni,Bi,xi=Ke==="source"?this.sourceEndpointDefinitions:this.targetEndpointDefinitions;if(Gt=Gt||"default",pt.length&&!ee.isString(pt)){_t=[];for(var Ti=0,Oi=pt.length;Oi>Ti;Ti++)ni=k(pt[Ti]),xi[ni.id]&&xi[ni.id][Gt]&&(_t[Ti]=xi[ni.id][Gt].enabled,Bi=ht?!_t[Ti]:ct,xi[ni.id][Gt].enabled=Bi,d[Bi?"removeClass":"addClass"](ni.el,"jtk-"+Ke+"-disabled"))}else{ni=k(pt);var xn=ni.id;xi[xn]&&xi[xn][Gt]&&(_t=xi[xn][Gt].enabled,Bi=ht?!_t:ct,xi[xn][Gt].enabled=Bi,d[Bi?"removeClass":"addClass"](ni.el,"jtk-"+Ke+"-disabled"))}return _t}.bind(this),nn=function(Ke,pt){if(Ke!=null){if(ee.isString(Ke)||!Ke.length)return pt.apply(this,[Ke]);if(Ke.length)return pt.apply(this,[Ke[0]])}}.bind(this);this.toggleSourceEnabled=function(Ke,pt){return $t("source",Ke,null,!0,pt),this.isSourceEnabled(Ke,pt)},this.setSourceEnabled=function(Ke,pt,ct){return $t("source",Ke,pt,null,ct)},this.isSource=function(Ke,pt){return pt=pt||"default",nn(Ke,function(ct){var ht=this.sourceEndpointDefinitions[k(ct).id];return ht!=null&&ht[pt]!=null}.bind(this))},this.isSourceEnabled=function(Ke,pt){return pt=pt||"default",nn(Ke,function(ct){var ht=this.sourceEndpointDefinitions[k(ct).id];return ht&&ht[pt]&&ht[pt].enabled===!0}.bind(this))},this.toggleTargetEnabled=function(Ke,pt){return $t("target",Ke,null,!0,pt),this.isTargetEnabled(Ke,pt)},this.isTarget=function(Ke,pt){return pt=pt||"default",nn(Ke,function(ct){var ht=this.targetEndpointDefinitions[k(ct).id];return ht!=null&&ht[pt]!=null}.bind(this))},this.isTargetEnabled=function(Ke,pt){return pt=pt||"default",nn(Ke,function(ct){var ht=this.targetEndpointDefinitions[k(ct).id];return ht&&ht[pt]&&ht[pt].enabled===!0}.bind(this))},this.setTargetEnabled=function(Ke,pt,ct){return $t("target",Ke,pt,null,ct)},this.ready=function(Ke){d.bind("ready",Ke)};var bn=function(Ke,pt){if(typeof Ke=="object"&&Ke.length)for(var ct=0,ht=Ke.length;ht>ct;ct++)pt(Ke[ct]);else pt(Ke);return d};this.repaint=function(Ke,pt,ct){return bn(Ke,function(ht){Re(ht,pt,ct)})},this.revalidate=function(Ke,pt,ct){var ht=ct?Ke:d.getId(Ke);d.updateOffset({elId:ht,recalc:!0,timestamp:pt});var Gt=d.getDragManager();return Gt&&Gt.updateOffsets(ht),Re(Ke,null,pt)},this.repaintEverything=function(){var Ke,pt=jsPlumbUtil.uuid();for(Ke in Q)d.updateOffset({elId:Ke,recalc:!0,timestamp:pt});for(Ke in Q)Re(Ke,null,pt);return this},this.removeAllEndpoints=function(Ke,pt,ct){ct=ct||[];var ht=function(Gt){var _t,ni,Bi=k(Gt),xi=Q[Bi.id];if(xi)for(ct.push(Bi),_t=0,ni=xi.length;ni>_t;_t++)d.deleteEndpoint(xi[_t],!1);if(delete Q[Bi.id],pt&&Bi.el&&Bi.el.nodeType!==3&&Bi.el.nodeType!==8)for(_t=0,ni=Bi.el.childNodes.length;ni>_t;_t++)ht(Bi.el.childNodes[_t])};return ht(Ke),this};var zi=function(Ke,pt){d.removeAllEndpoints(Ke.id,!0,pt);for(var ct=d.getDragManager(),ht=function(_t){ct&&ct.elementRemoved(_t.id),d.router.elementRemoved(_t.id),d.isSource(_t.el)&&d.unmakeSource(_t.el),d.isTarget(_t.el)&&d.unmakeTarget(_t.el),d.destroyDraggable(_t.el),d.destroyDroppable(_t.el),delete d.floatingConnections[_t.id],delete le[_t.id],delete fe[_t.id],_t.el&&(d.removeElement(_t.el),_t.el._jsPlumb=null)},Gt=1;Gt<pt.length;Gt++)ht(pt[Gt]);ht(Ke)};this.remove=function(Ke,pt){var ct=k(Ke),ht=[];return ct.text&&ct.el.parentNode?ct.el.parentNode.removeChild(ct.el):ct.id&&d.batch(function(){zi(ct,ht)},pt===!0),d},this.empty=function(Ke,pt){var ct=[],ht=function(Gt,_t){var ni=k(Gt);if(ni.text)ni.el.parentNode.removeChild(ni.el);else if(ni.el){for(;ni.el.childNodes.length>0;)ht(ni.el.childNodes[0]);_t||zi(ni,ct)}};return d.batch(function(){ht(Ke,!0)},pt===!1),d},this.reset=function(Ke){d.silently(function(){Mo=!1,d.removeAllGroups(),d.removeGroupManager(),d.deleteEveryEndpoint(),Ke||d.unbind(),this.targetEndpointDefinitions={},this.sourceEndpointDefinitions={},X.length=0,this.doReset&&this.doReset()}.bind(this))},this.destroy=function(){this.reset(),T=null,z=null};var En=function(Ke){Ke.canvas&&Ke.canvas.parentNode&&Ke.canvas.parentNode.removeChild(Ke.canvas),Ke.cleanup(),Ke.destroy()};this.clear=function(){d.select().each(En),d.selectEndpoints().each(En),Q={},oe={}},this.setDefaultScope=function(Ke){return xe=Ke,d},this.deriveEndpointAndAnchorSpec=function(Ke,pt){for(var ct=((pt?"":"default ")+Ke).split(/[\s]/),ht=null,Gt=null,_t=null,ni=null,Bi=0;Bi<ct.length;Bi++){var xi=d.getType(ct[Bi],"connection");xi&&(xi.endpoints&&(ht=xi.endpoints),xi.endpoint&&(Gt=xi.endpoint),xi.anchors&&(ni=xi.anchors),xi.anchor&&(_t=xi.anchor))}return{endpoints:ht||[Gt,Gt],anchors:ni||[_t,_t]}},this.setId=function(Ke,pt,ct){var ht;ee.isString(Ke)?ht=Ke:(Ke=this.getElement(Ke),ht=this.getId(Ke));var Gt=this.getConnections({source:ht,scope:"*"},!0),_t=this.getConnections({target:ht,scope:"*"},!0);pt=""+pt,ct?Ke=this.getElement(pt):(Ke=this.getElement(ht),this.setAttribute(Ke,"id",pt)),Q[pt]=Q[ht]||[];for(var ni=0,Bi=Q[pt].length;Bi>ni;ni++)Q[pt][ni].setElementId(pt),Q[pt][ni].setReferenceElement(Ke);delete Q[ht],this.sourceEndpointDefinitions[pt]=this.sourceEndpointDefinitions[ht],delete this.sourceEndpointDefinitions[ht],this.targetEndpointDefinitions[pt]=this.targetEndpointDefinitions[ht],delete this.targetEndpointDefinitions[ht],this.router.changeId(ht,pt);var xi=this.getDragManager();xi&&xi.changeId(ht,pt),le[pt]=le[ht],delete le[ht];var Ti=function(Oi,xn,an){for(var Cn=0,Wi=Oi.length;Wi>Cn;Cn++)Oi[Cn].endpoints[xn].setElementId(pt),Oi[Cn].endpoints[xn].setReferenceElement(Ke),Oi[Cn][an+"Id"]=pt,Oi[Cn][an]=Ke};Ti(Gt,0,"source"),Ti(_t,1,"target"),this.repaint(pt)},this.setDebugLog=function(Ke){G=Ke},this.setSuspendDrawing=function(Ke,pt){var ct=ze;return ze=Ke,Ye=Ke?new Date().getTime():null,pt&&this.repaintEverything(),ct},this.isSuspendDrawing=function(){return ze},this.getSuspendedAt=function(){return Ye},this.batch=function(Ke,pt){var ct=this.isSuspendDrawing();ct||this.setSuspendDrawing(!0);try{Ke()}catch(ht){ee.log("Function run while suspended failed",ht)}ct||this.setSuspendDrawing(!1,!pt)},this.doWhileSuspended=this.batch,this.getCachedData=kt,this.show=function(Ke,pt){return St(Ke,"block",pt),d},this.toggleVisible=ft,this.addListener=this.bind;var Yn=[];this.registerFloatingConnection=function(Ke,pt,ct){Yn[Ke.id]=pt,ee.addToList(Q,Ke.id,ct)},this.getFloatingConnectionFor=function(Ke){return Yn[Ke]},this.listManager=new ae.jsPlumbListManager(this,this.Defaults.ListStyle)};ee.extend(ae.jsPlumbInstance,ee.EventGenerator,{setAttribute:function(r,d,g){this.setAttribute(r,d,g)},getAttribute:function(r,d){return this.getAttribute(ae.jsPlumb.getElement(r),d)},convertToFullOverlaySpec:function(r){return ee.isString(r)&&(r=[r,{}]),r[1].id=r[1].id||ee.uuid(),r},registerConnectionType:function(r,d){if(this._connectionTypes[r]=ae.jsPlumb.extend({},d),d.overlays){for(var g={},m=0;m<d.overlays.length;m++){var b=this.convertToFullOverlaySpec(d.overlays[m]);g[b[1].id]=b}this._connectionTypes[r].overlays=g}},registerConnectionTypes:function(r){for(var d in r)this.registerConnectionType(d,r[d])},registerEndpointType:function(r,d){if(this._endpointTypes[r]=ae.jsPlumb.extend({},d),d.overlays){for(var g={},m=0;m<d.overlays.length;m++){var b=this.convertToFullOverlaySpec(d.overlays[m]);g[b[1].id]=b}this._endpointTypes[r].overlays=g}},registerEndpointTypes:function(r){for(var d in r)this.registerEndpointType(d,r[d])},getType:function(r,d){return d==="connection"?this._connectionTypes[r]:this._endpointTypes[r]},setIdChanged:function(r,d){this.setId(r,d,!0)},setParent:function(r,d){var g=this.getElement(r),m=this.getId(g),b=this.getElement(d),w=this.getId(b),k=this.getDragManager();g.parentNode.removeChild(g),b.appendChild(g),k&&k.setParent(g,m,b,w)},extend:function(r,d,g){var m;if(g)for(m=0;m<g.length;m++)r[g[m]]=d[g[m]];else for(m in d)r[m]=d[m];return r},floatingConnections:{},getFloatingAnchorIndex:function(r){return r.endpoints[0].isFloating()?0:r.endpoints[1].isFloating()?1:-1},proxyConnection:function(r,d,g,m,b,w){var k,R=r.endpoints[d].elementId,T=r.endpoints[d];r.proxies=r.proxies||[],k=r.proxies[d]?r.proxies[d].ep:this.addEndpoint(g,{endpoint:b(r,d),anchor:w(r,d),parameters:{isProxyEndpoint:!0}}),k.setDeleteOnEmpty(!0),r.proxies[d]={ep:k,originalEp:T},d===0?this.router.sourceOrTargetChanged(R,m,r,g,0):this.router.sourceOrTargetChanged(R,m,r,g,1),T.detachFromConnection(r,null,!0),k.connections=[r],r.endpoints[d]=k,T.setVisible(!1),r.setVisible(!0),this.revalidate(g)},unproxyConnection:function(r,d,g){if(r._jsPlumb!=null&&r.proxies!=null&&r.proxies[d]!=null){var m=r.proxies[d].originalEp.element,b=r.proxies[d].originalEp.elementId;r.endpoints[d]=r.proxies[d].originalEp,d===0?this.router.sourceOrTargetChanged(g,b,r,m,0):this.router.sourceOrTargetChanged(g,b,r,m,1),r.proxies[d].ep.detachFromConnection(r,null),r.proxies[d].originalEp.addConnection(r),r.isVisible()&&r.proxies[d].originalEp.setVisible(!0),delete r.proxies[d]}}});var s=new u;ae.jsPlumb=s,s.getInstance=function(r,d){var g=new u(r);if(d)for(var m in d)g[m]=d[m];return g.init(),g},s.each=function(r,d){if(r!=null)if(typeof r=="string")d(s.getElement(r));else if(r.length!=null)for(var g=0;g<r.length;g++)d(s.getElement(r[g]));else d(r)},typeof co!="undefined"&&(co.jsPlumb=s)}.call(typeof window!="undefined"?window:co),function(){"use strict";var ae=this,ee=ae.jsPlumb,de=ae.jsPlumbUtil,ne="__label",x=function(M,A){var F={cssClass:A.cssClass,labelStyle:M.labelStyle,id:ne,component:M,_jsPlumb:M._jsPlumb.instance},D=ee.extend(F,A);return new ee.Overlays[M._jsPlumb.instance.getRenderMode()].Label(D)},p=function(M,A){var F=null;if(de.isArray(A)){var D=A[0],f=ee.extend({component:M,_jsPlumb:M._jsPlumb.instance},A[1]);A.length===3&&ee.extend(f,A[2]),F=new ee.Overlays[M._jsPlumb.instance.getRenderMode()][D](f)}else F=A.constructor===String?new ee.Overlays[M._jsPlumb.instance.getRenderMode()][A]({component:M,_jsPlumb:M._jsPlumb.instance}):A;return F.id=F.id||de.uuid(),M.cacheTypeItem("overlay",F,F.id),M._jsPlumb.overlays[F.id]=F,F};ee.OverlayCapableJsPlumbUIComponent=function(M){ae.jsPlumbUIComponent.apply(this,arguments),this._jsPlumb.overlays={},this._jsPlumb.overlayPositions={},M.label&&(this.getDefaultType().overlays[ne]=["Label",{label:M.label,location:M.labelLocation||this.defaultLabelLocation||.5,labelStyle:M.labelStyle||this._jsPlumb.instance.Defaults.LabelStyle,id:ne}]),this.setListenerComponent=function(A){if(this._jsPlumb)for(var F in this._jsPlumb.overlays)this._jsPlumb.overlays[F].setListenerComponent(A)}},ee.OverlayCapableJsPlumbUIComponent.applyType=function(M,A){if(A.overlays){var F,D={};for(F in A.overlays){var f=M._jsPlumb.overlays[A.overlays[F][1].id];if(f)f.updateFrom(A.overlays[F][1]),D[A.overlays[F][1].id]=!0,f.reattach(M._jsPlumb.instance,M);else{var v=M.getCachedTypeItem("overlay",A.overlays[F][1].id);v!=null?(v.reattach(M._jsPlumb.instance,M),v.setVisible(!0),v.updateFrom(A.overlays[F][1]),M._jsPlumb.overlays[v.id]=v):v=M.addOverlay(A.overlays[F],!0),D[v.id]=!0}}for(F in M._jsPlumb.overlays)D[M._jsPlumb.overlays[F].id]==null&&M.removeOverlay(M._jsPlumb.overlays[F].id,!0)}},de.extend(ee.OverlayCapableJsPlumbUIComponent,ae.jsPlumbUIComponent,{setHover:function(M,A){if(this._jsPlumb&&!this._jsPlumb.instance.isConnectionBeingDragged())for(var F in this._jsPlumb.overlays)this._jsPlumb.overlays[F][M?"addClass":"removeClass"](this._jsPlumb.instance.hoverClass)},addOverlay:function(M,A){var F=p(this,M);if(this.getData&&F.type==="Label"&&de.isArray(M)){var D=this.getData(),f=M[1];if(D){var v=f.labelLocationAttribute||"labelLocation",u=D?D[v]:null;u&&(F.loc=u)}}return A||this.repaint(),F},getOverlay:function(M){return this._jsPlumb.overlays[M]},getOverlays:function(){return this._jsPlumb.overlays},hideOverlay:function(M){var A=this.getOverlay(M);A&&A.hide()},hideOverlays:function(){for(var M in this._jsPlumb.overlays)this._jsPlumb.overlays[M].hide()},showOverlay:function(M){var A=this.getOverlay(M);A&&A.show()},showOverlays:function(){for(var M in this._jsPlumb.overlays)this._jsPlumb.overlays[M].show()},removeAllOverlays:function(M){for(var A in this._jsPlumb.overlays)this._jsPlumb.overlays[A].cleanup&&this._jsPlumb.overlays[A].cleanup();this._jsPlumb.overlays={},this._jsPlumb.overlayPositions=null,this._jsPlumb.overlayPlacements={},M||this.repaint()},removeOverlay:function(M,A){var F=this._jsPlumb.overlays[M];F&&(F.setVisible(!1),!A&&F.cleanup&&F.cleanup(),delete this._jsPlumb.overlays[M],this._jsPlumb.overlayPositions&&delete this._jsPlumb.overlayPositions[M],this._jsPlumb.overlayPlacements&&delete this._jsPlumb.overlayPlacements[M])},removeOverlays:function(){for(var M=0,A=arguments.length;A>M;M++)this.removeOverlay(arguments[M])},moveParent:function(M){if(this.bgCanvas&&(this.bgCanvas.parentNode.removeChild(this.bgCanvas),M.appendChild(this.bgCanvas)),this.canvas&&this.canvas.parentNode){this.canvas.parentNode.removeChild(this.canvas),M.appendChild(this.canvas);for(var A in this._jsPlumb.overlays)if(this._jsPlumb.overlays[A].isAppendedAtTopLevel){var F=this._jsPlumb.overlays[A].getElement();F.parentNode.removeChild(F),M.appendChild(F)}}},getLabel:function(){var M=this.getOverlay(ne);return M!=null?M.getLabel():null},getLabelOverlay:function(){return this.getOverlay(ne)},setLabel:function(M){var A=this.getOverlay(ne);if(A)M.constructor===String||M.constructor===Function?A.setLabel(M):(M.label&&A.setLabel(M.label),M.location&&A.setLocation(M.location));else{var F=M.constructor===String||M.constructor===Function?{label:M}:M;A=x(this,F),this._jsPlumb.overlays[ne]=A}this._jsPlumb.instance.isSuspendDrawing()||this.repaint()},cleanup:function(M){for(var A in this._jsPlumb.overlays)this._jsPlumb.overlays[A].cleanup(M),this._jsPlumb.overlays[A].destroy(M);M&&(this._jsPlumb.overlays={},this._jsPlumb.overlayPositions=null)},setVisible:function(M){this[M?"showOverlays":"hideOverlays"]()},setAbsoluteOverlayPosition:function(M,A){this._jsPlumb.overlayPositions[M.id]=A},getAbsoluteOverlayPosition:function(M){return this._jsPlumb.overlayPositions?this._jsPlumb.overlayPositions[M.id]:null},_clazzManip:function(M,A,F){if(!F)for(var D in this._jsPlumb.overlays)this._jsPlumb.overlays[D][M+"Class"](A)},addClass:function(M,A){this._clazzManip("add",M,A)},removeClass:function(M,A){this._clazzManip("remove",M,A)}})}.call(typeof window!="undefined"?window:co),function(){"use strict";var ae=this,ee=ae.jsPlumb,de=ae.jsPlumbUtil,ne=function(F,D,f){var v=!1;return{drag:function(){if(v)return v=!1,!0;if(D.element){var u=f.getUIPosition(arguments,f.getZoom());u!=null&&f.setPosition(D.element,u),f.repaint(D.element,u),F.paint({anchorPoint:F.anchor.getCurrentLocation({element:F})})}},stopDrag:function(){v=!0}}},x=function(F,D,f,v){var u=D.createElement("div",{position:"absolute"});D.appendElement(u);var s=D.getId(u);D.setPosition(u,f),u.style.width=v[0]+"px",u.style.height=v[1]+"px",D.manage(s,u,!0),F.id=s,F.element=u},p=function(F,D,f,v,u,s,r,d){var g=new ee.FloatingAnchor({reference:D,referenceCanvas:v,jsPlumbInstance:s});return r({paintStyle:F,endpoint:f,anchor:g,source:u,scope:d})},M=["connectorStyle","connectorHoverStyle","connectorOverlays","connector","connectionType","connectorClass","connectorHoverClass"],A=function(F,D){var f=0;if(D!=null){for(var v=0;v<F.connections.length;v++)if(F.connections[v].sourceId===D||F.connections[v].targetId===D){f=v;break}}return F.connections[f]};ee.Endpoint=function(F){var D=F._jsPlumb,f=F.newConnection,v=F.newEndpoint;this.idPrefix="_jsplumb_e_",this.defaultLabelLocation=[.5,.5],this.defaultOverlayKeys=["Overlays","EndpointOverlays"],ee.OverlayCapableJsPlumbUIComponent.apply(this,arguments),this.appendToDefaultType({connectionType:F.connectionType,maxConnections:F.maxConnections==null?this._jsPlumb.instance.Defaults.MaxConnections:F.maxConnections,paintStyle:F.endpointStyle||F.paintStyle||F.style||this._jsPlumb.instance.Defaults.EndpointStyle||ee.Defaults.EndpointStyle,hoverPaintStyle:F.endpointHoverStyle||F.hoverPaintStyle||this._jsPlumb.instance.Defaults.EndpointHoverStyle||ee.Defaults.EndpointHoverStyle,connectorStyle:F.connectorStyle,connectorHoverStyle:F.connectorHoverStyle,connectorClass:F.connectorClass,connectorHoverClass:F.connectorHoverClass,connectorOverlays:F.connectorOverlays,connector:F.connector,connectorTooltip:F.connectorTooltip}),this._jsPlumb.enabled=F.enabled!==!1,this._jsPlumb.visible=!0,this.element=ee.getElement(F.source),this._jsPlumb.uuid=F.uuid,this._jsPlumb.floatingEndpoint=null;var u=null;this._jsPlumb.uuid&&(F.endpointsByUUID[this._jsPlumb.uuid]=this),this.elementId=F.elementId,this.dragProxy=F.dragProxy,this._jsPlumb.connectionCost=F.connectionCost,this._jsPlumb.connectionsDirected=F.connectionsDirected,this._jsPlumb.currentAnchorClass="",this._jsPlumb.events={};var s=F.deleteOnEmpty===!0;this.setDeleteOnEmpty=function(R){s=R};var r=function(){var R=D.endpointAnchorClassPrefix+"-"+this._jsPlumb.currentAnchorClass;this._jsPlumb.currentAnchorClass=this.anchor.getCssClass();var T=D.endpointAnchorClassPrefix+(this._jsPlumb.currentAnchorClass?"-"+this._jsPlumb.currentAnchorClass:"");this.removeClass(R),this.addClass(T),ee.updateClasses(this.element,T,R)}.bind(this);this.prepareAnchor=function(R){var T=this._jsPlumb.instance.makeAnchor(R,this.elementId,D);return T.bind("anchorChanged",function(z){this.fire("anchorChanged",{endpoint:this,anchor:z}),r()}.bind(this)),T},this.setPreparedAnchor=function(R,T){return this._jsPlumb.instance.continuousAnchorFactory.clear(this.elementId),this.anchor=R,r(),T||this._jsPlumb.instance.repaint(this.elementId),this},this.setAnchor=function(R,T){var z=this.prepareAnchor(R);return this.setPreparedAnchor(z,T),this};var d=function(R){if(this.connections.length>0)for(var T=0;T<this.connections.length;T++)this.connections[T].setHover(R,!1);else this.setHover(R)}.bind(this);this.bind("mouseover",function(){d(!0)}),this.bind("mouseout",function(){d(!1)}),F._transient||this._jsPlumb.instance.router.addEndpoint(this,this.elementId),this.prepareEndpoint=function(R,T){var z,G=function(X,Q){var oe=D.getRenderMode();if(ee.Endpoints[oe][X])return new ee.Endpoints[oe][X](Q);if(!D.Defaults.DoNotThrowErrors)throw{msg:"jsPlumb: unknown endpoint type '"+X+"'"}},U={_jsPlumb:this._jsPlumb.instance,cssClass:F.cssClass,container:F.container,tooltip:F.tooltip,connectorTooltip:F.connectorTooltip,endpoint:this};return de.isString(R)?z=G(R,U):de.isArray(R)?(U=de.merge(R[1],U),z=G(R[0],U)):z=R.clone(),z.clone=function(){return de.isString(R)?G(R,U):de.isArray(R)?(U=de.merge(R[1],U),G(R[0],U)):void 0}.bind(this),z.typeId=T,z},this.setEndpoint=function(R,T){var z=this.prepareEndpoint(R);this.setPreparedEndpoint(z,!0)},this.setPreparedEndpoint=function(R,T){this.endpoint!=null&&(this.endpoint.cleanup(),this.endpoint.destroy()),this.endpoint=R,this.type=this.endpoint.type,this.canvas=this.endpoint.canvas},ee.extend(this,F,M),this.isSource=F.isSource||!1,this.isTemporarySource=F.isTemporarySource||!1,this.isTarget=F.isTarget||!1,this.connections=F.connections||[],this.connectorPointerEvents=F["connector-pointer-events"],this.scope=F.scope||D.getDefaultScope(),this.timestamp=null,this.reattachConnections=F.reattach||D.Defaults.ReattachConnections,this.connectionsDetachable=D.Defaults.ConnectionsDetachable,(F.connectionsDetachable===!1||F.detachable===!1)&&(this.connectionsDetachable=!1),this.dragAllowedWhenFull=F.dragAllowedWhenFull!==!1,F.onMaxConnections&&this.bind("maxConnections",F.onMaxConnections),this.addConnection=function(R){this.connections.push(R),this[(this.connections.length>0?"add":"remove")+"Class"](D.endpointConnectedClass),this[(this.isFull()?"add":"remove")+"Class"](D.endpointFullClass)},this.detachFromConnection=function(R,T,z){T=T==null?this.connections.indexOf(R):T,T>=0&&(this.connections.splice(T,1),this[(this.connections.length>0?"add":"remove")+"Class"](D.endpointConnectedClass),this[(this.isFull()?"add":"remove")+"Class"](D.endpointFullClass)),!z&&s&&this.connections.length===0&&D.deleteObject({endpoint:this,fireEvent:!1,deleteAttachedObjects:z!==!0})},this.deleteEveryConnection=function(R){for(var T=this.connections.length,z=0;T>z;z++)D.deleteConnection(this.connections[0],R)},this.detachFrom=function(R,T,z){for(var G=[],U=0;U<this.connections.length;U++)(this.connections[U].endpoints[1]===R||this.connections[U].endpoints[0]===R)&&G.push(this.connections[U]);for(var X=0,Q=G.length;Q>X;X++)D.deleteConnection(G[0]);return this},this.getElement=function(){return this.element},this.setElement=function(R){var T=this._jsPlumb.instance.getId(R),z=this.elementId;return de.removeWithFunction(F.endpointsByElement[this.elementId],function(G){return G.id===this.id}.bind(this)),this.element=ee.getElement(R),this.elementId=D.getId(this.element),D.router.rehomeEndpoint(this,z,this.element),D.dragManager.endpointAdded(this.element),de.addToList(F.endpointsByElement,T,this),this},this.makeInPlaceCopy=function(){var R=this.anchor.getCurrentLocation({element:this}),T=this.anchor.getOrientation(this),z=this.anchor.getCssClass(),G={bind:function(){},compute:function(){return[R[0],R[1]]},getCurrentLocation:function(){return[R[0],R[1]]},getOrientation:function(){return T},getCssClass:function(){return z}};return v({dropOptions:F.dropOptions,anchor:G,source:this.element,paintStyle:this.getPaintStyle(),endpoint:F.hideOnDrag?"Blank":this.endpoint,_transient:!0,scope:this.scope,reference:this})},this.connectorSelector=function(){return this.connections[0]},this.setStyle=this.setPaintStyle,this.paint=function(R){R=R||{};var T=R.timestamp,z=R.recalc!==!1;if(!T||this.timestamp!==T){var G=D.updateOffset({elId:this.elementId,timestamp:T}),U=R.offset?R.offset.o:G.o;if(U!=null){var X=R.anchorPoint,Q=R.connectorPaintStyle;if(X==null){var oe=R.dimensions||G.s,le={xy:[U.left,U.top],wh:oe,element:this,timestamp:T};if(z&&this.anchor.isDynamic&&this.connections.length>0){var fe=A(this,R.elementWithPrecedence),ye=fe.endpoints[0]===this?1:0,ke=ye===0?fe.sourceId:fe.targetId,Ie=D.getCachedData(ke),ze=Ie.o,Ye=Ie.s;le.index=ye===0?1:0,le.connection=fe,le.txy=[ze.left,ze.top],le.twh=Ye,le.tElement=fe.endpoints[ye],le.tRotation=D.getRotation(ke)}else this.connections.length>0&&(le.connection=this.connections[0]);le.rotation=D.getRotation(this.elementId),X=this.anchor.compute(le)}this.endpoint.compute(X,this.anchor.getOrientation(this),this._jsPlumb.paintStyleInUse,Q||this.paintStyleInUse),this.endpoint.paint(this._jsPlumb.paintStyleInUse,this.anchor),this.timestamp=T;for(var xe in this._jsPlumb.overlays)if(this._jsPlumb.overlays.hasOwnProperty(xe)){var Te=this._jsPlumb.overlays[xe];Te.isVisible()&&(this._jsPlumb.overlayPlacements[xe]=Te.draw(this.endpoint,this._jsPlumb.paintStyleInUse),Te.paint(this._jsPlumb.overlayPlacements[xe]))}}}},this.getTypeDescriptor=function(){return"endpoint"},this.isVisible=function(){return this._jsPlumb.visible},this.repaint=this.paint;var g=!1;this.initDraggable=function(){if(!g&&ee.isDragSupported(this.element)){var R,T={id:null,element:null},z=null,G=!1,U=null,X=ne(this,T,D),Q=F.dragOptions||{},oe={},le=ee.dragEvents.start,fe=ee.dragEvents.stop,ye=ee.dragEvents.drag,ke=ee.dragEvents.beforeStart,Ie=function(xe){R=xe.e.payload||{}},ze=function(xe){z=this.connectorSelector();var Te=!0;this.isEnabled()||(Te=!1),z!=null||this.isSource||this.isTemporarySource||(Te=!1),!this.isSource||!this.isFull()||z!=null&&this.dragAllowedWhenFull||(Te=!1),z==null||z.isDetachable(this)||(this.isFull()?Te=!1:z=null);var Ae=D.checkCondition(z==null?"beforeDrag":"beforeStartDetach",{endpoint:this,source:this.element,sourceId:this.elementId,connection:z});if(Ae===!1?Te=!1:typeof Ae=="object"?ee.extend(Ae,R||{}):Ae=R||{},Te===!1)return D.stopDrag&&D.stopDrag(this.canvas),X.stopDrag(),!1;for(var Ne=0;Ne<this.connections.length;Ne++)this.connections[Ne].setHover(!1);this.addClass("endpointDrag"),D.setConnectionBeingDragged(!0),z&&!this.isFull()&&this.isSource&&(z=null),D.updateOffset({elId:this.elementId});var Re=this._jsPlumb.instance.getOffset(this.canvas),Oe=this.canvas,Ve=this._jsPlumb.instance.getSize(this.canvas);x(T,D,Re,Ve),D.setAttributes(this.canvas,{dragId:T.id,elId:this.elementId});var Ue=this.dragProxy||this.endpoint;if(this.dragProxy==null&&this.connectionType!=null){var Ee=this._jsPlumb.instance.deriveEndpointAndAnchorSpec(this.connectionType);Ee.endpoints[1]&&(Ue=Ee.endpoints[1])}var tt=this._jsPlumb.instance.makeAnchor("Center");tt.isFloating=!0,this._jsPlumb.floatingEndpoint=p(this.getPaintStyle(),tt,Ue,this.canvas,T.element,D,v,this.scope);var at=this._jsPlumb.floatingEndpoint.anchor;if(z==null)this.setHover(!1,!1),z=f({sourceEndpoint:this,targetEndpoint:this._jsPlumb.floatingEndpoint,source:this.element,target:T.element,anchors:[this.anchor,this._jsPlumb.floatingEndpoint.anchor],paintStyle:F.connectorStyle,hoverPaintStyle:F.connectorHoverStyle,connector:F.connector,overlays:F.connectorOverlays,type:this.connectionType,cssClass:this.connectorClass,hoverClass:this.connectorHoverClass,scope:F.scope,data:Ae}),z.pending=!0,z.addClass(D.draggingClass),this._jsPlumb.floatingEndpoint.addClass(D.draggingClass),this._jsPlumb.floatingEndpoint.anchor=at,D.fire("connectionDrag",z),D.router.newConnection(z);else{G=!0,z.setHover(!1);var ut=z.endpoints[0].id===this.id?0:1;this.detachFromConnection(z,null,!0);var Mt=D.getDragScope(Oe);D.setAttribute(this.canvas,"originalScope",Mt),D.fire("connectionDrag",z),ut===0?(U=[z.source,z.sourceId,Oe,Mt],D.router.sourceOrTargetChanged(z.endpoints[ut].elementId,T.id,z,T.element,0)):(U=[z.target,z.targetId,Oe,Mt],D.router.sourceOrTargetChanged(z.endpoints[ut].elementId,T.id,z,T.element,1)),z.suspendedEndpoint=z.endpoints[ut],z.suspendedElement=z.endpoints[ut].getElement(),z.suspendedElementId=z.endpoints[ut].elementId,z.suspendedElementType=ut===0?"source":"target",z.suspendedEndpoint.setHover(!1),this._jsPlumb.floatingEndpoint.referenceEndpoint=z.suspendedEndpoint,z.endpoints[ut]=this._jsPlumb.floatingEndpoint,z.addClass(D.draggingClass),this._jsPlumb.floatingEndpoint.addClass(D.draggingClass)}D.registerFloatingConnection(T,z,this._jsPlumb.floatingEndpoint),D.currentlyDragging=!0}.bind(this),Ye=function(){if(D.setConnectionBeingDragged(!1),z&&z.endpoints!=null){var xe=D.getDropEvent(arguments),Te=D.getFloatingAnchorIndex(z);if(z.endpoints[Te===0?1:0].anchor.locked=!1,z.removeClass(D.draggingClass),this._jsPlumb&&(z.deleteConnectionNow||z.endpoints[Te]===this._jsPlumb.floatingEndpoint)&&G&&z.suspendedEndpoint){Te===0?(z.floatingElement=z.source,z.floatingId=z.sourceId,z.floatingEndpoint=z.endpoints[0],z.floatingIndex=0,z.source=U[0],z.sourceId=U[1]):(z.floatingElement=z.target,z.floatingId=z.targetId,z.floatingEndpoint=z.endpoints[1],z.floatingIndex=1,z.target=U[0],z.targetId=U[1]);var Ae=this._jsPlumb.floatingEndpoint;D.setDragScope(U[2],U[3]),z.endpoints[Te]=z.suspendedEndpoint,z.isReattach()||z._forceReattach||z._forceDetach||!D.deleteConnection(z,{originalEvent:xe})?(z.setHover(!1),z._forceDetach=null,z._forceReattach=null,this._jsPlumb.floatingEndpoint.detachFromConnection(z),z.suspendedEndpoint.addConnection(z),Te===1?D.router.sourceOrTargetChanged(z.floatingId,z.targetId,z,z.target,Te):D.router.sourceOrTargetChanged(z.floatingId,z.sourceId,z,z.source,Te),D.repaint(U[1])):D.deleteObject({endpoint:Ae})}this.deleteAfterDragStop?D.deleteObject({endpoint:this}):this._jsPlumb&&this.paint({recalc:!1}),D.fire("connectionDragStop",z,xe),z.pending&&D.fire("connectionAborted",z,xe),D.currentlyDragging=!1,z.suspendedElement=null,z.suspendedEndpoint=null,z=null}T&&T.element&&D.remove(T.element,!1,!1),u&&D.deleteObject({endpoint:u}),this._jsPlumb&&(this.canvas.style.visibility="visible",this.anchor.locked=!1,this._jsPlumb.floatingEndpoint=null)}.bind(this);Q=ee.extend(oe,Q),Q.scope=this.scope||Q.scope,Q[ke]=de.wrap(Q[ke],Ie,!1),Q[le]=de.wrap(Q[le],ze,!1),Q[ye]=de.wrap(Q[ye],X.drag),Q[fe]=de.wrap(Q[fe],Ye),Q.multipleDrop=!1,Q.canDrag=function(){return this.isSource||this.isTemporarySource||this.connections.length>0&&this.connectionsDetachable!==!1}.bind(this),D.initDraggable(this.canvas,Q,"internal"),this.canvas._jsPlumbRelatedElement=this.element,g=!0}};var m=F.endpoint||this._jsPlumb.instance.Defaults.Endpoint||ee.Defaults.Endpoint;this.setEndpoint(m,!0);var b=F.anchor?F.anchor:F.anchors?F.anchors:D.Defaults.Anchor||"Top";this.setAnchor(b,!0);var w=["default",F.type||""].join(" ");this.addType(w,F.data,!0),this.canvas=this.endpoint.canvas,this.canvas._jsPlumb=this,this.initDraggable();var k=function(R,T,z,G){if(ee.isDropSupported(this.element)){var U=F.dropOptions||D.Defaults.DropOptions||ee.Defaults.DropOptions;U=ee.extend({},U),U.scope=U.scope||this.scope;var X=ee.dragEvents.drop,Q=ee.dragEvents.over,oe=ee.dragEvents.out,le=this,fe=D.EndpointDropHandler({getEndpoint:function(){return le},jsPlumb:D,enabled:function(){return z!=null?z.isEnabled():!0},isFull:function(){return z.isFull()},element:this.element,elementId:this.elementId,isSource:this.isSource,isTarget:this.isTarget,addClass:function(ye){le.addClass(ye)},removeClass:function(ye){le.removeClass(ye)},isDropAllowed:function(){return le.isDropAllowed.apply(le,arguments)},reference:G,isRedrop:function(ye,ke){return ye.suspendedEndpoint&&ke.reference&&ye.suspendedEndpoint.id===ke.reference.id}});U[X]=de.wrap(U[X],fe,!0),U[Q]=de.wrap(U[Q],function(){var ye=ee.getDragObject(arguments),ke=D.getAttribute(ee.getElement(ye),"dragId"),Ie=D.getFloatingConnectionFor(ke);if(Ie!=null){var ze=D.getFloatingAnchorIndex(Ie),Ye=this.isTarget&&ze!==0||Ie.suspendedEndpoint&&this.referenceEndpoint&&this.referenceEndpoint.id===Ie.suspendedEndpoint.id;if(Ye){var xe=D.checkCondition("checkDropAllowed",{sourceEndpoint:Ie.endpoints[ze],targetEndpoint:this,connection:Ie});this[(xe?"add":"remove")+"Class"](D.endpointDropAllowedClass),this[(xe?"remove":"add")+"Class"](D.endpointDropForbiddenClass),Ie.endpoints[ze].anchor.over(this.anchor,this)}}}.bind(this)),U[oe]=de.wrap(U[oe],function(){var ye=ee.getDragObject(arguments),ke=ye==null?null:D.getAttribute(ee.getElement(ye),"dragId"),Ie=ke?D.getFloatingConnectionFor(ke):null;if(Ie!=null){var ze=D.getFloatingAnchorIndex(Ie),Ye=this.isTarget&&ze!==0||Ie.suspendedEndpoint&&this.referenceEndpoint&&this.referenceEndpoint.id===Ie.suspendedEndpoint.id;Ye&&(this.removeClass(D.endpointDropAllowedClass),this.removeClass(D.endpointDropForbiddenClass),Ie.endpoints[ze].anchor.out())}}.bind(this)),D.initDroppable(R,U,"internal",T)}}.bind(this);return this.anchor.isFloating||k(this.canvas,!(F._transient||this.anchor.isFloating),this,F.reference),this},de.extend(ee.Endpoint,ee.OverlayCapableJsPlumbUIComponent,{setVisible:function(F,D,f){if(this._jsPlumb.visible=F,this.canvas&&(this.canvas.style.display=F?"block":"none"),this[F?"showOverlays":"hideOverlays"](),!D){for(var v=0;v<this.connections.length;v++)if(this.connections[v].setVisible(F),!f){var u=this===this.connections[v].endpoints[0]?1:0;this.connections[v].endpoints[u].connections.length===1&&this.connections[v].endpoints[u].setVisible(F,!0,!0)}}},getAttachedElements:function(){return this.connections},applyType:function(F,D){this.setPaintStyle(F.endpointStyle||F.paintStyle,D),this.setHoverPaintStyle(F.endpointHoverStyle||F.hoverPaintStyle,D),F.maxConnections!=null&&(this._jsPlumb.maxConnections=F.maxConnections),F.scope&&(this.scope=F.scope),ee.extend(this,F,M),F.cssClass!=null&&this.canvas&&this._jsPlumb.instance.addClass(this.canvas,F.cssClass),ee.OverlayCapableJsPlumbUIComponent.applyType(this,F)},isEnabled:function(){return this._jsPlumb.enabled},setEnabled:function(F){this._jsPlumb.enabled=F},cleanup:function(){var F=this._jsPlumb.instance.endpointAnchorClassPrefix+(this._jsPlumb.currentAnchorClass?"-"+this._jsPlumb.currentAnchorClass:"");ee.removeClass(this.element,F),this.anchor=null,this.endpoint.cleanup(!0),this.endpoint.destroy(),this.endpoint=null,this._jsPlumb.instance.destroyDraggable(this.canvas,"internal"),this._jsPlumb.instance.destroyDroppable(this.canvas,"internal")},setHover:function(F){this.endpoint&&this._jsPlumb&&!this._jsPlumb.instance.isConnectionBeingDragged()&&this.endpoint.setHover(F)},isFull:function(){return this._jsPlumb.maxConnections===0?!0:!(this.isFloating()||this._jsPlumb.maxConnections<0||this.connections.length<this._jsPlumb.maxConnections)},isFloating:function(){return this.anchor!=null&&this.anchor.isFloating},isConnectedTo:function(F){var D=!1;if(F){for(var f=0;f<this.connections.length;f++)if(this.connections[f].endpoints[1]===F||this.connections[f].endpoints[0]===F){D=!0;break}}return D},getConnectionCost:function(){return this._jsPlumb.connectionCost},setConnectionCost:function(F){this._jsPlumb.connectionCost=F},areConnectionsDirected:function(){return this._jsPlumb.connectionsDirected},setConnectionsDirected:function(F){this._jsPlumb.connectionsDirected=F},setElementId:function(F){this.elementId=F,this.anchor.elementId=F},setReferenceElement:function(F){this.element=ee.getElement(F)},setDragAllowedWhenFull:function(F){this.dragAllowedWhenFull=F},equals:function(F){return this.anchor.equals(F.anchor)},getUuid:function(){return this._jsPlumb.uuid},computeAnchor:function(F){return this.anchor.compute(F)}}),ae.jsPlumbInstance.prototype.EndpointDropHandler=function(F){return function(D){var f=F.jsPlumb;F.removeClass(f.endpointDropAllowedClass),F.removeClass(f.endpointDropForbiddenClass);var v=f.getDropEvent(arguments),u=f.getDragObject(arguments),s=f.getAttribute(u,"dragId"),r=(f.getAttribute(u,"elId"),f.getAttribute(u,"originalScope")),d=f.getFloatingConnectionFor(s);if(d!=null){var g=d.suspendedEndpoint!=null;if(!g||d.suspendedEndpoint._jsPlumb!=null){var m=F.getEndpoint(d);if(m!=null){if(F.isRedrop(d,F))return d._forceReattach=!0,d.setHover(!1),void(F.maybeCleanup&&F.maybeCleanup(m));var b=f.getFloatingAnchorIndex(d);if(b===0&&!F.isSource||b===1&&!F.isTarget)return void(F.maybeCleanup&&F.maybeCleanup(m));F.onDrop&&F.onDrop(d),r&&f.setDragScope(u,r);var w=F.isFull(D);if(w&&m.fire("maxConnections",{endpoint:this,connection:d,maxConnections:m._jsPlumb.maxConnections},v),!w&&F.enabled()){var k=!0;b===0?(d.floatingElement=d.source,d.floatingId=d.sourceId,d.floatingEndpoint=d.endpoints[0],d.floatingIndex=0,d.source=F.element,d.sourceId=f.getId(F.element)):(d.floatingElement=d.target,d.floatingId=d.targetId,d.floatingEndpoint=d.endpoints[1],d.floatingIndex=1,d.target=F.element,d.targetId=f.getId(F.element)),g&&d.suspendedEndpoint.id!==m.id&&(d.isDetachAllowed(d)&&d.endpoints[b].isDetachAllowed(d)&&d.suspendedEndpoint.isDetachAllowed(d)&&f.checkCondition("beforeDetach",d)||(k=!1));var R=function(z){d.endpoints[b].detachFromConnection(d),d.suspendedEndpoint&&d.suspendedEndpoint.detachFromConnection(d),d.endpoints[b]=m,m.addConnection(d);var G=m.getParameters();for(var U in G)d.setParameter(U,G[U]);if(g){var X=d.suspendedEndpoint.elementId;f.fireMoveEvent({index:b,originalSourceId:b===0?X:d.sourceId,newSourceId:b===0?m.elementId:d.sourceId,originalTargetId:b===1?X:d.targetId,newTargetId:b===1?m.elementId:d.targetId,originalSourceEndpoint:b===0?d.suspendedEndpoint:d.endpoints[0],newSourceEndpoint:b===0?m:d.endpoints[0],originalTargetEndpoint:b===1?d.suspendedEndpoint:d.endpoints[1],newTargetEndpoint:b===1?m:d.endpoints[1],connection:d},v)}else G.draggable&&f.initDraggable(this.element,F.dragOptions,"internal",f);if(b===1?f.router.sourceOrTargetChanged(d.floatingId,d.targetId,d,d.target,1):f.router.sourceOrTargetChanged(d.floatingId,d.sourceId,d,d.source,0),d.endpoints[0].finalEndpoint){var Q=d.endpoints[0];Q.detachFromConnection(d),d.endpoints[0]=d.endpoints[0].finalEndpoint,d.endpoints[0].addConnection(d)}de.isObject(z)&&d.mergeData(z),f.finaliseConnection(d,null,v,!1),d.setHover(!1),f.revalidate(d.endpoints[0].element)}.bind(this),T=function(){d.suspendedEndpoint&&(d.endpoints[b]=d.suspendedEndpoint,d.setHover(!1),d._forceDetach=!0,b===0?(d.source=d.suspendedEndpoint.element,d.sourceId=d.suspendedEndpoint.elementId):(d.target=d.suspendedEndpoint.element,d.targetId=d.suspendedEndpoint.elementId),d.suspendedEndpoint.addConnection(d),b===1?f.router.sourceOrTargetChanged(d.floatingId,d.targetId,d,d.target,1):f.router.sourceOrTargetChanged(d.floatingId,d.sourceId,d,d.source,0),f.repaint(d.sourceId),d._forceDetach=!1)};if(k=k&&F.isDropAllowed(d.sourceId,d.targetId,d.scope,d,m))return R(k),!0;T()}F.maybeCleanup&&F.maybeCleanup(m),f.currentlyDragging=!1}}}}}}.call(typeof window!="undefined"?window:co),function(){"use strict";var ae=this,ee=ae.jsPlumb,de=ae.jsPlumbUtil,ne=function(M,A,F,D,f){if(ee.Connectors[A]=ee.Connectors[A]||{},ee.Connectors[A][F]==null){if(ee.Connectors[F]==null){if(M.Defaults.DoNotThrowErrors)return null;throw new TypeError("jsPlumb: unknown connector type '"+F+"'")}ee.Connectors[A][F]=function(){ee.Connectors[F].apply(this,arguments),ee.ConnectorRenderers[A].apply(this,arguments)},de.extend(ee.Connectors[A][F],[ee.Connectors[F],ee.ConnectorRenderers[A]])}return new ee.Connectors[A][F](D,f)},x=function(M,A,F){return M?F.makeAnchor(M,A,F):null},p=function(M,A,F,D){A!=null&&(A._jsPlumbConnections=A._jsPlumbConnections||{},D?delete A._jsPlumbConnections[M.id]:A._jsPlumbConnections[M.id]=!0,de.isEmpty(A._jsPlumbConnections)?F.removeClass(A,F.connectedClass):F.addClass(A,F.connectedClass))};ee.Connection=function(M){var A=M.newEndpoint;this.id=M.id,this.connector=null,this.idPrefix="_jsplumb_c_",this.defaultLabelLocation=.5,this.defaultOverlayKeys=["Overlays","ConnectionOverlays"],this.previousConnection=M.previousConnection,this.source=ee.getElement(M.source),this.target=ee.getElement(M.target),ee.OverlayCapableJsPlumbUIComponent.apply(this,arguments),M.sourceEndpoint?(this.source=M.sourceEndpoint.getElement(),this.sourceId=M.sourceEndpoint.elementId):this.sourceId=this._jsPlumb.instance.getId(this.source),M.targetEndpoint?(this.target=M.targetEndpoint.getElement(),this.targetId=M.targetEndpoint.elementId):this.targetId=this._jsPlumb.instance.getId(this.target),this.scope=M.scope,this.endpoints=[],this.endpointStyles=[];var F=this._jsPlumb.instance;F.manage(this.sourceId,this.source),F.manage(this.targetId,this.target),this._jsPlumb.visible=!0,this._jsPlumb.params={cssClass:M.cssClass,container:M.container,"pointer-events":M["pointer-events"],editorParams:M.editorParams,overlays:M.overlays},this._jsPlumb.lastPaintedAt=null,this.bind("mouseover",function(){this.setHover(!0)}.bind(this)),this.bind("mouseout",function(){this.setHover(!1)}.bind(this)),this.makeEndpoint=function(U,X,Q,oe,le){return Q=Q||this._jsPlumb.instance.getId(X),this.prepareEndpoint(F,A,this,oe,U?0:1,M,X,Q,le)},M.type&&(M.endpoints=M.endpoints||this._jsPlumb.instance.deriveEndpointAndAnchorSpec(M.type).endpoints);var D=this.makeEndpoint(!0,this.source,this.sourceId,M.sourceEndpoint),f=this.makeEndpoint(!1,this.target,this.targetId,M.targetEndpoint);D&&de.addToList(M.endpointsByElement,this.sourceId,D),f&&de.addToList(M.endpointsByElement,this.targetId,f),this.scope||(this.scope=this.endpoints[0].scope),M.deleteEndpointsOnEmpty!=null&&(this.endpoints[0].setDeleteOnEmpty(M.deleteEndpointsOnEmpty),this.endpoints[1].setDeleteOnEmpty(M.deleteEndpointsOnEmpty));var v=F.Defaults.ConnectionsDetachable;M.detachable===!1&&(v=!1),this.endpoints[0].connectionsDetachable===!1&&(v=!1),this.endpoints[1].connectionsDetachable===!1&&(v=!1);var u=M.reattach||this.endpoints[0].reattachConnections||this.endpoints[1].reattachConnections||F.Defaults.ReattachConnections;this.appendToDefaultType({detachable:v,reattach:u,paintStyle:this.endpoints[0].connectorStyle||this.endpoints[1].connectorStyle||M.paintStyle||F.Defaults.PaintStyle||ee.Defaults.PaintStyle,hoverPaintStyle:this.endpoints[0].connectorHoverStyle||this.endpoints[1].connectorHoverStyle||M.hoverPaintStyle||F.Defaults.HoverPaintStyle||ee.Defaults.HoverPaintStyle});var s=F.getSuspendedAt();if(!F.isSuspendDrawing()){var r=F.getCachedData(this.sourceId),d=r.o,g=r.s,m=F.getCachedData(this.targetId),b=m.o,w=m.s,k=s||jsPlumbUtil.uuid(),R=this.endpoints[0].anchor.compute({xy:[d.left,d.top],wh:g,element:this.endpoints[0],elementId:this.endpoints[0].elementId,txy:[b.left,b.top],twh:w,tElement:this.endpoints[1],timestamp:k,rotation:F.getRotation(this.endpoints[0].elementId)});this.endpoints[0].paint({anchorLoc:R,timestamp:k}),R=this.endpoints[1].anchor.compute({xy:[b.left,b.top],wh:w,element:this.endpoints[1],elementId:this.endpoints[1].elementId,txy:[d.left,d.top],twh:g,tElement:this.endpoints[0],timestamp:k,rotation:F.getRotation(this.endpoints[1].elementId)}),this.endpoints[1].paint({anchorLoc:R,timestamp:k})}this.getTypeDescriptor=function(){return"connection"},this.getAttachedElements=function(){return this.endpoints},this.isDetachable=function(U){return this._jsPlumb.detachable===!1?!1:U!=null?U.connectionsDetachable===!0:this._jsPlumb.detachable===!0},this.setDetachable=function(U){this._jsPlumb.detachable=U===!0},this.isReattach=function(){return this._jsPlumb.reattach===!0||this.endpoints[0].reattachConnections===!0||this.endpoints[1].reattachConnections===!0},this.setReattach=function(U){this._jsPlumb.reattach=U===!0},this._jsPlumb.cost=M.cost||this.endpoints[0].getConnectionCost(),this._jsPlumb.directed=M.directed,M.directed==null&&(this._jsPlumb.directed=this.endpoints[0].areConnectionsDirected());var T=ee.extend({},this.endpoints[1].getParameters());ee.extend(T,this.endpoints[0].getParameters()),ee.extend(T,this.getParameters()),this.setParameters(T),this.setConnector(this.endpoints[0].connector||this.endpoints[1].connector||M.connector||F.Defaults.Connector||ee.Defaults.Connector,!0);var z=M.data!=null&&de.isObject(M.data)?M.data:{};this.getData=function(){return z},this.setData=function(U){z=U||{}},this.mergeData=function(U){z=ee.extend(z,U)};var G=["default",this.endpoints[0].connectionType,this.endpoints[1].connectionType,M.type].join(" ");/[^\s]/.test(G)&&this.addType(G,M.data,!0),this.updateConnectedClass()},de.extend(ee.Connection,ee.OverlayCapableJsPlumbUIComponent,{applyType:function(M,A,F){var D=null;M.connector!=null&&(D=this.getCachedTypeItem("connector",F.connector),D==null&&(D=this.prepareConnector(M.connector,F.connector),this.cacheTypeItem("connector",D,F.connector)),this.setPreparedConnector(D)),M.detachable!=null&&this.setDetachable(M.detachable),M.reattach!=null&&this.setReattach(M.reattach),M.scope&&(this.scope=M.scope),M.cssClass!=null&&this.canvas&&this._jsPlumb.instance.addClass(this.canvas,M.cssClass);var f=null;M.anchor?(f=this.getCachedTypeItem("anchors",F.anchor),f==null&&(f=[this._jsPlumb.instance.makeAnchor(M.anchor),this._jsPlumb.instance.makeAnchor(M.anchor)],this.cacheTypeItem("anchors",f,F.anchor))):M.anchors&&(f=this.getCachedTypeItem("anchors",F.anchors),f==null&&(f=[this._jsPlumb.instance.makeAnchor(M.anchors[0]),this._jsPlumb.instance.makeAnchor(M.anchors[1])],this.cacheTypeItem("anchors",f,F.anchors))),f!=null&&(this.endpoints[0].anchor=f[0],this.endpoints[1].anchor=f[1],this.endpoints[1].anchor.isDynamic&&this._jsPlumb.instance.repaint(this.endpoints[1].elementId)),ee.OverlayCapableJsPlumbUIComponent.applyType(this,M)},addClass:function(M,A){A&&(this.endpoints[0].addClass(M),this.endpoints[1].addClass(M),this.suspendedEndpoint&&this.suspendedEndpoint.addClass(M)),this.connector&&this.connector.addClass(M)},removeClass:function(M,A){A&&(this.endpoints[0].removeClass(M),this.endpoints[1].removeClass(M),this.suspendedEndpoint&&this.suspendedEndpoint.removeClass(M)),this.connector&&this.connector.removeClass(M)},isVisible:function(){return this._jsPlumb.visible},setVisible:function(M){this._jsPlumb.visible=M,this.connector&&this.connector.setVisible(M),this.repaint()},cleanup:function(){this.updateConnectedClass(!0),this.endpoints=null,this.source=null,this.target=null,this.connector!=null&&(this.connector.cleanup(!0),this.connector.destroy(!0)),this.connector=null},updateConnectedClass:function(M){this._jsPlumb&&(p(this,this.source,this._jsPlumb.instance,M),p(this,this.target,this._jsPlumb.instance,M))},setHover:function(M){this.connector&&this._jsPlumb&&!this._jsPlumb.instance.isConnectionBeingDragged()&&(this.connector.setHover(M),ae.jsPlumb[M?"addClass":"removeClass"](this.source,this._jsPlumb.instance.hoverSourceClass),ae.jsPlumb[M?"addClass":"removeClass"](this.target,this._jsPlumb.instance.hoverTargetClass))},getUuids:function(){return[this.endpoints[0].getUuid(),this.endpoints[1].getUuid()]},getCost:function(){return this._jsPlumb?this._jsPlumb.cost:-(1/0)},setCost:function(M){this._jsPlumb.cost=M},isDirected:function(){return this._jsPlumb.directed},getConnector:function(){return this.connector},prepareConnector:function(M,A){var F,D={_jsPlumb:this._jsPlumb.instance,cssClass:this._jsPlumb.params.cssClass,container:this._jsPlumb.params.container,"pointer-events":this._jsPlumb.params["pointer-events"]},f=this._jsPlumb.instance.getRenderMode();return de.isString(M)?F=ne(this._jsPlumb.instance,f,M,D,this):de.isArray(M)&&(F=M.length===1?ne(this._jsPlumb.instance,f,M[0],D,this):ne(this._jsPlumb.instance,f,M[0],de.merge(M[1],D),this)),A!=null&&(F.typeId=A),F},setPreparedConnector:function(M,A,F,D){if(this.connector!==M){var f,v="";if(this.connector!=null&&(f=this.connector,v=f.getClass(),this.connector.cleanup(),this.connector.destroy()),this.connector=M,D&&this.cacheTypeItem("connector",M,D),this.canvas=this.connector.canvas,this.bgCanvas=this.connector.bgCanvas,this.connector.reattach(this._jsPlumb.instance),this.addClass(v),this.canvas&&(this.canvas._jsPlumb=this),this.bgCanvas&&(this.bgCanvas._jsPlumb=this),f!=null)for(var u=this.getOverlays(),s=0;s<u.length;s++)u[s].transfer&&u[s].transfer(this.connector);F||this.setListenerComponent(this.connector),A||this.repaint()}},setConnector:function(M,A,F,D){var f=this.prepareConnector(M,D);this.setPreparedConnector(f,A,F,D)},paint:function(M){if(!this._jsPlumb.instance.isSuspendDrawing()&&this._jsPlumb.visible){M=M||{};var A=M.timestamp,F=!1,D=F?this.sourceId:this.targetId,f=F?this.targetId:this.sourceId,v=F?0:1,u=F?1:0;if(A==null||A!==this._jsPlumb.lastPaintedAt){var s=this._jsPlumb.instance.updateOffset({elId:f}).o,r=this._jsPlumb.instance.updateOffset({elId:D}).o,d=this.endpoints[u],g=this.endpoints[v],m=d.anchor.getCurrentLocation({xy:[s.left,s.top],wh:[s.width,s.height],element:d,timestamp:A,rotation:this._jsPlumb.instance.getRotation(this.sourceId)}),b=g.anchor.getCurrentLocation({xy:[r.left,r.top],wh:[r.width,r.height],element:g,timestamp:A,rotation:this._jsPlumb.instance.getRotation(this.targetId)});this.connector.resetBounds(),this.connector.compute({sourcePos:m,targetPos:b,sourceOrientation:d.anchor.getOrientation(d),targetOrientation:g.anchor.getOrientation(g),sourceEndpoint:this.endpoints[u],targetEndpoint:this.endpoints[v],"stroke-width":this._jsPlumb.paintStyleInUse.strokeWidth,sourceInfo:s,targetInfo:r});var w={minX:1/0,minY:1/0,maxX:-(1/0),maxY:-(1/0)};for(var k in this._jsPlumb.overlays)if(this._jsPlumb.overlays.hasOwnProperty(k)){var R=this._jsPlumb.overlays[k];R.isVisible()&&(this._jsPlumb.overlayPlacements[k]=R.draw(this.connector,this._jsPlumb.paintStyleInUse,this.getAbsoluteOverlayPosition(R)),w.minX=Math.min(w.minX,this._jsPlumb.overlayPlacements[k].minX),w.maxX=Math.max(w.maxX,this._jsPlumb.overlayPlacements[k].maxX),w.minY=Math.min(w.minY,this._jsPlumb.overlayPlacements[k].minY),w.maxY=Math.max(w.maxY,this._jsPlumb.overlayPlacements[k].maxY))}var T=parseFloat(this._jsPlumb.paintStyleInUse.strokeWidth||1)/2,z=parseFloat(this._jsPlumb.paintStyleInUse.strokeWidth||0),G={xmin:Math.min(this.connector.bounds.minX-(T+z),w.minX),ymin:Math.min(this.connector.bounds.minY-(T+z),w.minY),xmax:Math.max(this.connector.bounds.maxX+(T+z),w.maxX),ymax:Math.max(this.connector.bounds.maxY+(T+z),w.maxY)};this.connector.paintExtents=G,this.connector.paint(this._jsPlumb.paintStyleInUse,null,G);for(var U in this._jsPlumb.overlays)if(this._jsPlumb.overlays.hasOwnProperty(U)){var X=this._jsPlumb.overlays[U];X.isVisible()&&X.paint(this._jsPlumb.overlayPlacements[U],G)}}this._jsPlumb.lastPaintedAt=A}},repaint:function(M){var A=jsPlumb.extend(M||{},{});A.elId=this.sourceId,this.paint(A)},prepareEndpoint:function(M,A,F,D,f,v,u,s,r){var d;if(D)F.endpoints[f]=D,D.addConnection(F);else{v.endpoints||(v.endpoints=[null,null]);var g=r||v.endpoints[f]||v.endpoint||M.Defaults.Endpoints[f]||ee.Defaults.Endpoints[f]||M.Defaults.Endpoint||ee.Defaults.Endpoint;v.endpointStyles||(v.endpointStyles=[null,null]),v.endpointHoverStyles||(v.endpointHoverStyles=[null,null]);var m=v.endpointStyles[f]||v.endpointStyle||M.Defaults.EndpointStyles[f]||ee.Defaults.EndpointStyles[f]||M.Defaults.EndpointStyle||ee.Defaults.EndpointStyle;m.fill==null&&v.paintStyle!=null&&(m.fill=v.paintStyle.stroke),m.outlineStroke==null&&v.paintStyle!=null&&(m.outlineStroke=v.paintStyle.outlineStroke),m.outlineWidth==null&&v.paintStyle!=null&&(m.outlineWidth=v.paintStyle.outlineWidth);var b=v.endpointHoverStyles[f]||v.endpointHoverStyle||M.Defaults.EndpointHoverStyles[f]||ee.Defaults.EndpointHoverStyles[f]||M.Defaults.EndpointHoverStyle||ee.Defaults.EndpointHoverStyle;v.hoverPaintStyle!=null&&(b==null&&(b={}),b.fill==null&&(b.fill=v.hoverPaintStyle.stroke));var w=v.anchors?v.anchors[f]:v.anchor?v.anchor:x(M.Defaults.Anchors[f],s,M)||x(ee.Defaults.Anchors[f],s,M)||x(M.Defaults.Anchor,s,M)||x(ee.Defaults.Anchor,s,M),k=v.uuids?v.uuids[f]:null;d=A({paintStyle:m,hoverPaintStyle:b,endpoint:g,connections:[F],uuid:k,anchor:w,source:u,scope:v.scope,reattach:v.reattach||M.Defaults.ReattachConnections,detachable:v.detachable||M.Defaults.ConnectionsDetachable}),D==null&&d.setDeleteOnEmpty(!0),F.endpoints[f]=d,v.drawEndpoints===!1&&d.setVisible(!1,!0,!0)}return d},replaceEndpoint:function(M,A){var F=this.endpoints[M],D=F.elementId,f=this._jsPlumb.instance.getEndpoints(D),v=f.indexOf(F),u=this.makeEndpoint(M===0,F.element,D,null,A);this.endpoints[M]=u,f.splice(v,1,u),this._jsPlumb.instance.deleteObject({endpoint:F,deleteAttachedObjects:!1}),this._jsPlumb.instance.fire("endpointReplaced",{previous:F,current:u}),this._jsPlumb.instance.router.sourceOrTargetChanged(this.endpoints[1].elementId,this.endpoints[1].elementId,this,this.endpoints[1].element,1)}})}.call(typeof window!="undefined"?window:co),function(){"use strict";var ae=this,ee=ae.jsPlumbUtil,de=ae.jsPlumb;de.AnchorManager=function(M){var A={},F={},D={},f={},v=this,u={},s=M.jsPlumbInstance,r={},d=function(G,U,X,Q,oe,le,fe,ye){for(var ke=[],Ie=U[oe?0:1]/(Q.length+1),ze=0;ze<Q.length;ze++){var Ye=(ze+1)*Ie,xe=le*U[oe?1:0];fe&&(Ye=U[oe?0:1]-Ye);var Te=oe?Ye:xe,Ae=X.left+Te,Ne=Te/U[0],Re=oe?xe:Ye,Oe=X.top+Re,Ve=Re/U[1];if(ye!==0){var Ue=jsPlumbUtil.rotatePoint([Ae,Oe],[X.centerx,X.centery],ye);Ae=Ue[0],Oe=Ue[1]}ke.push([Ae,Oe,Ne,Ve,Q[ze][1],Q[ze][2]])}return ke},g=function(G,U){return U[0][0]-G[0][0]},m=function(G,U){var X=G[0][0]<0?-Math.PI-G[0][0]:Math.PI-G[0][0],Q=U[0][0]<0?-Math.PI-U[0][0]:Math.PI-U[0][0];return X-Q},b={top:m,right:g,bottom:g,left:m},w=function(G,U){return G.sort(U)},k=function(G,U){var X=s.getCachedData(G),Q=X.s,oe=X.o,le=function(fe,ye,ke,Ie,ze,Ye,xe){if(Ie.length>0)for(var Te=w(Ie,b[fe]),Ae=fe==="right"||fe==="top",Ne=s.getRotation(G),Re=d(fe,ye,ke,Te,ze,Ye,Ae,Ne),Oe=function(at,ut){F[at.id]=[ut[0],ut[1],ut[2],ut[3]],D[at.id]=xe},Ve=0;Ve<Re.length;Ve++){var Ue=Re[Ve][4],Ee=Ue.endpoints[0].elementId===G,tt=Ue.endpoints[1].elementId===G;Ee&&Oe(Ue.endpoints[0],Re[Ve]),tt&&Oe(Ue.endpoints[1],Re[Ve])}};le("bottom",Q,oe,U.bottom,!0,1,[0,1]),le("top",Q,oe,U.top,!0,0,[0,-1]),le("left",Q,oe,U.left,!1,0,[-1,0]),le("right",Q,oe,U.right,!1,1,[1,0])};this.reset=function(){A={},f={},u={}},this.addFloatingConnection=function(G,U){r[G]=U},this.newConnection=function(G){var U=G.sourceId,X=G.targetId,Q=G.endpoints,oe=!0,le=function(fe,ye,ke,Ie,ze){U===X&&ke.isContinuous&&(G._jsPlumb.instance.removeElement(Q[1].canvas),oe=!1),ee.addToList(f,Ie,[ze,ye,ke.constructor===de.DynamicAnchor])};le(0,Q[0],Q[0].anchor,X,G),oe&&le(1,Q[1],Q[1].anchor,U,G)};var R=function(G){(function(U,X){if(U){var Q=function(oe){return oe[4]===X};ee.removeWithFunction(U.top,Q),ee.removeWithFunction(U.left,Q),ee.removeWithFunction(U.bottom,Q),ee.removeWithFunction(U.right,Q)}})(u[G.elementId],G.id)};this.connectionDetached=function(G,U){var X=G.connection||G,Q=G.sourceId,oe=G.targetId,le=X.endpoints,fe=function(ye,ke,Ie,ze,Ye){ee.removeWithFunction(f[ze],function(xe){return xe[0].id===Ye.id})};fe(1,le[1],le[1].anchor,Q,X),fe(0,le[0],le[0].anchor,oe,X),X.floatingId&&(fe(X.floatingIndex,X.floatingEndpoint,X.floatingEndpoint.anchor,X.floatingId,X),R(X.floatingEndpoint)),R(X.endpoints[0]),R(X.endpoints[1]),U||(v.redraw(X.sourceId),X.targetId!==X.sourceId&&v.redraw(X.targetId))},this.addEndpoint=function(G,U){ee.addToList(A,U,G)},this.changeId=function(G,U){f[U]=f[G],A[U]=A[G],delete f[G],delete A[G]},this.getConnectionsFor=function(G){return f[G]||[]},this.getEndpointsFor=function(G){return A[G]||[]},this.deleteEndpoint=function(G){ee.removeWithFunction(A[G.elementId],function(U){return U.id===G.id}),R(G)},this.elementRemoved=function(G){delete r[G],delete A[G],A[G]=[]};var T=function(G,U,X,Q,oe,le,fe,ye,ke,Ie,ze,Ye){var xe,Te,Ae=-1,Ne=-1,Re=Q.endpoints[fe],Oe=Re.id,Ve=[1,0][fe],Ue=[[U,X],Q,oe,le,Oe],Ee=G[ke],tt=Re._continuousAnchorEdge?G[Re._continuousAnchorEdge]:null;if(tt){var at=ee.findWithFunction(tt,function(Mt){return Mt[4]===Oe});if(at!==-1)for(tt.splice(at,1),xe=0;xe<tt.length;xe++)Te=tt[xe][1],ee.addWithFunction(ze,Te,function(Mt){return Mt.id===Te.id}),ee.addWithFunction(Ye,tt[xe][1].endpoints[fe],function(Mt){return Mt.id===Te.endpoints[fe].id}),ee.addWithFunction(Ye,tt[xe][1].endpoints[Ve],function(Mt){return Mt.id===Te.endpoints[Ve].id})}for(xe=0;xe<Ee.length;xe++)Te=Ee[xe][1],M.idx===1&&Ee[xe][3]===le&&Ne===-1&&(Ne=xe),ee.addWithFunction(ze,Te,function(Mt){return Mt.id===Te.id}),ee.addWithFunction(Ye,Ee[xe][1].endpoints[fe],function(Mt){return Mt.id===Te.endpoints[fe].id}),ee.addWithFunction(Ye,Ee[xe][1].endpoints[Ve],function(Mt){return Mt.id===Te.endpoints[Ve].id});if(Ae!==-1)Ee[Ae]=Ue;else{var ut=ye?Ne!==-1?Ne:0:Ee.length;Ee.splice(ut,0,Ue)}Re._continuousAnchorEdge=ke};this.sourceOrTargetChanged=function(G,U,X,Q,oe){if(oe===0){if(G!==U){X.sourceId=U,X.source=Q,ee.removeWithFunction(f[G],function(Ie){return Ie[0].id===X.id});var le=ee.findWithFunction(f[X.targetId],function(Ie){return Ie[0].id===X.id});le>-1&&(f[X.targetId][le][0]=X,f[X.targetId][le][1]=X.endpoints[0],f[X.targetId][le][2]=X.endpoints[0].anchor.constructor===de.DynamicAnchor),ee.addToList(f,U,[X,X.endpoints[1],X.endpoints[1].anchor.constructor===de.DynamicAnchor]),X.endpoints[1].anchor.isContinuous&&(X.source===X.target?X._jsPlumb.instance.removeElement(X.endpoints[1].canvas):X.endpoints[1].canvas.parentNode==null&&X._jsPlumb.instance.appendElement(X.endpoints[1].canvas)),X.updateConnectedClass()}}else if(oe===1){var fe=X.endpoints[0].elementId;X.target=Q,X.targetId=U;var ye=ee.findWithFunction(f[fe],function(Ie){return Ie[0].id===X.id}),ke=ee.findWithFunction(f[G],function(Ie){return Ie[0].id===X.id});ye!==-1&&(f[fe][ye][0]=X,f[fe][ye][1]=X.endpoints[1],f[fe][ye][2]=X.endpoints[1].anchor.constructor===de.DynamicAnchor),ke>-1&&(f[G].splice(ke,1),ee.addToList(f,U,[X,X.endpoints[0],X.endpoints[0].anchor.constructor===de.DynamicAnchor])),X.updateConnectedClass()}},this.rehomeEndpoint=function(G,U,X){var Q=A[U]||[],oe=s.getId(X);if(oe!==U){var le=Q.indexOf(G);if(le>-1){var fe=Q.splice(le,1)[0];v.add(fe,oe)}}for(var ye=0;ye<G.connections.length;ye++)G.connections[ye].sourceId===U?v.sourceOrTargetChanged(U,G.elementId,G.connections[ye],G.element,0):G.connections[ye].targetId===U&&v.sourceOrTargetChanged(U,G.elementId,G.connections[ye],G.element,1)},this.redraw=function(G,U,X,Q,oe,le){var fe=[],ye=[],ke=[];if(!s.isSuspendDrawing()){var Ie=A[G]||[],ze=f[G]||[];X=X||jsPlumbUtil.uuid(),Q=Q||{left:0,top:0},U&&(U={left:U.left+Q.left,top:U.top+Q.top});for(var Ye=s.updateOffset({elId:G,offset:U,recalc:!1,timestamp:X}),xe={},Te=0;Te<ze.length;Te++){var Ae=ze[Te][0],Ne=Ae.sourceId,Re=Ae.targetId,Oe=Ae.endpoints[0].anchor.isContinuous,Ve=Ae.endpoints[1].anchor.isContinuous;if(Oe||Ve){var Ue=Ne+"_"+Re,Ee=xe[Ue],tt=Ae.sourceId===G?1:0,at=s.getRotation(Re),ut=s.getRotation(Ne);Oe&&!u[Ne]&&(u[Ne]={top:[],right:[],bottom:[],left:[]}),Ve&&!u[Re]&&(u[Re]={top:[],right:[],bottom:[],left:[]}),G!==Re&&s.updateOffset({elId:Re,timestamp:X}),G!==Ne&&s.updateOffset({elId:Ne,timestamp:X});var Mt=s.getCachedData(Re),St=s.getCachedData(Ne);Re===Ne&&(Oe||Ve)?(T(u[Ne],-Math.PI/2,0,Ae,!1,Re,0,!1,"top",Ne,fe,ye),T(u[Re],-Math.PI/2,0,Ae,!1,Ne,1,!1,"top",Re,fe,ye)):(Ee||(Ee=this.calculateOrientation(Ne,Re,St.o,Mt.o,Ae.endpoints[0].anchor,Ae.endpoints[1].anchor,Ae,ut,at),xe[Ue]=Ee),Oe&&T(u[Ne],Ee.theta,0,Ae,!1,Re,0,!1,Ee.a[0],Ne,fe,ye),Ve&&T(u[Re],Ee.theta2,-1,Ae,!0,Ne,1,!0,Ee.a[1],Re,fe,ye)),Oe&&ee.addWithFunction(ke,Ne,function(Tt){return Tt===Ne}),Ve&&ee.addWithFunction(ke,Re,function(Tt){return Tt===Re}),ee.addWithFunction(fe,Ae,function(Tt){return Tt.id===Ae.id}),(Oe&&tt===0||Ve&&tt===1)&&ee.addWithFunction(ye,Ae.endpoints[tt],function(Tt){return Tt.id===Ae.endpoints[tt].id})}}for(Te=0;Te<Ie.length;Te++)Ie[Te].connections.length===0&&Ie[Te].anchor.isContinuous&&(u[G]||(u[G]={top:[],right:[],bottom:[],left:[]}),T(u[G],-Math.PI/2,0,{endpoints:[Ie[Te],Ie[Te]],paint:function(){}},!1,G,0,!1,Ie[Te].anchor.getDefaultFace(),G,fe,ye),ee.addWithFunction(ke,G,function(Tt){return Tt===G}));for(Te=0;Te<ke.length;Te++)k(ke[Te],u[ke[Te]]);for(Te=0;Te<Ie.length;Te++)Ie[Te].paint({timestamp:X,offset:Ye,dimensions:Ye.s,recalc:le!==!0});for(Te=0;Te<ye.length;Te++){var ft=s.getCachedData(ye[Te].elementId);ye[Te].paint({timestamp:null,offset:ft,dimensions:ft.s})}for(Te=0;Te<ze.length;Te++){var kt=ze[Te][1];if(kt.anchor.constructor===de.DynamicAnchor){kt.paint({elementWithPrecedence:G,timestamp:X}),ee.addWithFunction(fe,ze[Te][0],function(Tt){return Tt.id===ze[Te][0].id});for(var Et=0;Et<kt.connections.length;Et++)kt.connections[Et]!==ze[Te][0]&&ee.addWithFunction(fe,kt.connections[Et],function(Tt){return Tt.id===kt.connections[Et].id})}else ee.addWithFunction(fe,ze[Te][0],function(Tt){return Tt.id===ze[Te][0].id})}var Yt=r[G];for(Yt&&Yt.paint({timestamp:X,recalc:!1,elId:G}),Te=0;Te<fe.length;Te++)fe[Te].paint({elId:G,timestamp:null,recalc:!1,clearEdits:oe})}return{c:fe,e:ye}};var z=function(G){ee.EventGenerator.apply(this),this.type="Continuous",this.isDynamic=!0,this.isContinuous=!0;for(var U=G.faces||["top","right","bottom","left"],X=G.clockwise!==!1,Q={},oe={top:"bottom",right:"left",left:"right",bottom:"top"},le={top:"right",right:"bottom",left:"top",bottom:"left"},fe={top:"left",right:"top",left:"bottom",bottom:"right"},ye=X?le:fe,ke=X?fe:le,Ie=G.cssClass||"",ze=null,Ye=null,xe=["left","right"],Te=["top","bottom"],Ae=null,Ne=0;Ne<U.length;Ne++)Q[U[Ne]]=!0;this.getDefaultFace=function(){return U.length===0?"top":U[0]},this.isRelocatable=function(){return!0},this.isSnapOnRelocate=function(){return!0},this.verifyEdge=function(Re){return Q[Re]?Re:Q[oe[Re]]?oe[Re]:Q[ye[Re]]?ye[Re]:Q[ke[Re]]?ke[Re]:Re},this.isEdgeSupported=function(Re){return Ae==null?Ye==null?Q[Re]===!0:Ye===Re:Ae.indexOf(Re)!==-1},this.setCurrentFace=function(Re,Oe){ze=Re,Oe&&Ye!=null&&(Ye=ze)},this.getCurrentFace=function(){return ze},this.getSupportedFaces=function(){var Re=[];for(var Oe in Q)Q[Oe]&&Re.push(Oe);return Re},this.lock=function(){Ye=ze},this.unlock=function(){Ye=null},this.isLocked=function(){return Ye!=null},this.lockCurrentAxis=function(){ze!=null&&(Ae=ze==="left"||ze==="right"?xe:Te)},this.unlockCurrentAxis=function(){Ae=null},this.compute=function(Re){return F[Re.element.id]||[0,0]},this.getCurrentLocation=function(Re){return F[Re.element.id]||[0,0]},this.getOrientation=function(Re){return D[Re.id]||[0,0]},this.getCssClass=function(){return Ie}};s.continuousAnchorFactory={get:function(G){return new z(G)},clear:function(G){delete F[G]}}},de.AnchorManager.prototype.calculateOrientation=function(M,A,F,D,f,v,u,s,r){var d={HORIZONTAL:"horizontal",VERTICAL:"vertical",DIAGONAL:"diagonal",IDENTITY:"identity"},g=["left","top","right","bottom"];if(M===A)return{orientation:d.IDENTITY,a:["top","top"]};var m=Math.atan2(D.centery-F.centery,D.centerx-F.centerx),b=Math.atan2(F.centery-D.centery,F.centerx-D.centerx),w=[],k={};(function(X,Q){for(var oe=0;oe<X.length;oe++)if(k[X[oe]]={left:[Q[oe][0].left,Q[oe][0].centery],right:[Q[oe][0].right,Q[oe][0].centery],top:[Q[oe][0].centerx,Q[oe][0].top],bottom:[Q[oe][0].centerx,Q[oe][0].bottom]},Q[oe][1]!==0)for(var le in k[X[oe]])k[X[oe]][le]=jsPlumbUtil.rotatePoint(k[X[oe]][le],[Q[oe][0].centerx,Q[oe][0].centery],Q[oe][1])})(["source","target"],[[F,s],[D,r]]);for(var R=0;R<g.length;R++)for(var T=0;T<g.length;T++)w.push({source:g[R],target:g[T],dist:Biltong.lineLength(k.source[g[R]],k.target[g[T]])});w.sort(function(X,Q){return X.dist<Q.dist?-1:X.dist>Q.dist?1:0});for(var z=w[0].source,G=w[0].target,U=0;U<w.length&&(z=f.isContinuous&&f.locked?f.getCurrentFace():!f.isContinuous||f.isEdgeSupported(w[U].source)?w[U].source:null,G=v.isContinuous&&v.locked?v.getCurrentFace():!v.isContinuous||v.isEdgeSupported(w[U].target)?w[U].target:null,z==null||G==null);U++);return f.isContinuous&&f.setCurrentFace(z),v.isContinuous&&v.setCurrentFace(G),{a:[z,G],theta:m,theta2:b}},de.Anchor=function(M){this.x=M.x||0,this.y=M.y||0,this.elementId=M.elementId,this.cssClass=M.cssClass||"",this.orientation=M.orientation||[0,0],this.lastReturnValue=null,this.offsets=M.offsets||[0,0],this.timestamp=null,this._unrotatedOrientation=[this.orientation[0],this.orientation[1]],this.relocatable=M.relocatable!==!1,this.snapOnRelocate=M.snapOnRelocate!==!1,this.locked=!1,ee.EventGenerator.apply(this),this.compute=function(A){var F=A.xy,D=A.wh,f=A.timestamp;if(f&&f===this.timestamp)return this.lastReturnValue;var v=[F[0]+this.x*D[0]+this.offsets[0],F[1]+this.y*D[1]+this.offsets[1],this.x,this.y],u=A.rotation;if(u!=null&&u!==0){var s=jsPlumbUtil.rotatePoint(v,[F[0]+D[0]/2,F[1]+D[1]/2],u);this.orientation[0]=Math.round(this._unrotatedOrientation[0]*s[2]-this._unrotatedOrientation[1]*s[3]),this.orientation[1]=Math.round(this._unrotatedOrientation[1]*s[2]+this._unrotatedOrientation[0]*s[3]),this.lastReturnValue=[s[0],s[1],this.x,this.y]}else this.orientation[0]=this._unrotatedOrientation[0],this.orientation[1]=this._unrotatedOrientation[1],this.lastReturnValue=v;return this.timestamp=f,this.lastReturnValue},this.getCurrentLocation=function(A){return A=A||{},this.lastReturnValue==null||A.timestamp!=null&&this.timestamp!==A.timestamp?this.compute(A):this.lastReturnValue},this.setPosition=function(A,F,D,f,v){(!this.locked||v)&&(this.x=A,this.y=F,this.orientation=[D,f],this.lastReturnValue=null)}},ee.extend(de.Anchor,ee.EventGenerator,{equals:function(M){if(!M)return!1;var A=M.getOrientation(),F=this.getOrientation();return this.x===M.x&&this.y===M.y&&this.offsets[0]===M.offsets[0]&&this.offsets[1]===M.offsets[1]&&F[0]===A[0]&&F[1]===A[1]},getOrientation:function(){return this.orientation},getCssClass:function(){return this.cssClass}}),de.FloatingAnchor=function(M){de.Anchor.apply(this,arguments);var A=M.reference,F=M.referenceCanvas,D=de.getSize(F),f=0,v=0,u=null,s=null;this.orientation=null,this.x=0,this.y=0,this.isFloating=!0,this.compute=function(r){var d=r.xy,g=[d[0]+D[0]/2,d[1]+D[1]/2];return s=g,g},this.getOrientation=function(r){if(u)return u;var d=A.getOrientation(r);return[Math.abs(d[0])*f*-1,Math.abs(d[1])*v*-1]},this.over=function(r,d){u=r.getOrientation(d)},this.out=function(){u=null},this.getCurrentLocation=function(r){return s==null?this.compute(r):s}},ee.extend(de.FloatingAnchor,de.Anchor);var ne=function(M,A,F){return M.constructor===de.Anchor?M:A.makeAnchor(M,F,A)};de.DynamicAnchor=function(M){de.Anchor.apply(this,arguments),this.isDynamic=!0,this.anchors=[],this.elementId=M.elementId,this.jsPlumbInstance=M.jsPlumbInstance;for(var A=0;A<M.anchors.length;A++)this.anchors[A]=ne(M.anchors[A],this.jsPlumbInstance,this.elementId);this.getAnchors=function(){return this.anchors};var F=this.anchors.length>0?this.anchors[0]:null,D=F,f=function(u,s,r,d,g,m,b){var w=d[0]+u.x*g[0],k=d[1]+u.y*g[1],R=d[0]+g[0]/2,T=d[1]+g[1]/2;if(m!=null&&m!==0){var z=jsPlumbUtil.rotatePoint([w,k],[R,T],m);w=z[0],k=z[1]}return Math.sqrt(Math.pow(s-w,2)+Math.pow(r-k,2))+Math.sqrt(Math.pow(R-w,2)+Math.pow(T-k,2))},v=M.selector||function(u,s,r,d,g,m,b){for(var w=r[0]+d[0]/2,k=r[1]+d[1]/2,R=-1,T=1/0,z=0;z<b.length;z++){var G=f(b[z],w,k,u,s,g,m);T>G&&(R=z+0,T=G)}return b[R]};this.compute=function(u){var s=u.xy,r=u.wh,d=u.txy,g=u.twh,m=u.rotation,b=u.tRotation;return this.timestamp=u.timestamp,this.locked||d==null||g==null?(this.lastReturnValue=F.compute(u),this.lastReturnValue):(u.timestamp=null,F=v(s,r,d,g,m,b,this.anchors),this.x=F.x,this.y=F.y,F!==D&&this.fire("anchorChanged",F),D=F,this.lastReturnValue=F.compute(u),this.lastReturnValue)},this.getCurrentLocation=function(u){return F!=null?F.getCurrentLocation(u):null},this.getOrientation=function(u){return F!=null?F.getOrientation(u):[0,0]},this.over=function(u,s){F!=null&&F.over(u,s)},this.out=function(){F!=null&&F.out()},this.setAnchor=function(u){F=u},this.getCssClass=function(){return F&&F.getCssClass()||""},this.setAnchorCoordinates=function(u){var s=jsPlumbUtil.findWithFunction(this.anchors,function(r){return r.x===u[0]&&r.y===u[1]});return s!==-1?(this.setAnchor(this.anchors[s]),!0):!1}},ee.extend(de.DynamicAnchor,de.Anchor);var x=function(M,A,F,D,f,v){de.Anchors[f]=function(u){var s=u.jsPlumbInstance.makeAnchor([M,A,F,D,0,0],u.elementId,u.jsPlumbInstance);return s.type=f,v&&v(s,u),s}};x(.5,0,0,-1,"TopCenter"),x(.5,1,0,1,"BottomCenter"),x(0,.5,-1,0,"LeftMiddle"),x(1,.5,1,0,"RightMiddle"),x(.5,0,0,-1,"Top"),x(.5,1,0,1,"Bottom"),x(0,.5,-1,0,"Left"),x(1,.5,1,0,"Right"),x(.5,.5,0,0,"Center"),x(1,0,0,-1,"TopRight"),x(1,1,0,1,"BottomRight"),x(0,0,0,-1,"TopLeft"),x(0,1,0,1,"BottomLeft"),de.Defaults.DynamicAnchors=function(M){return M.jsPlumbInstance.makeAnchors(["TopCenter","RightMiddle","BottomCenter","LeftMiddle"],M.elementId,M.jsPlumbInstance)},de.Anchors.AutoDefault=function(M){var A=M.jsPlumbInstance.makeDynamicAnchor(de.Defaults.DynamicAnchors(M));return A.type="AutoDefault",A};var p=function(M,A){de.Anchors[M]=function(F){var D=F.jsPlumbInstance.makeAnchor(["Continuous",{faces:A}],F.elementId,F.jsPlumbInstance);return D.type=M,D}};de.Anchors.Continuous=function(M){return M.jsPlumbInstance.continuousAnchorFactory.get(M)},p("ContinuousLeft",["left"]),p("ContinuousTop",["top"]),p("ContinuousBottom",["bottom"]),p("ContinuousRight",["right"]),x(0,0,0,0,"Assign",function(M,A){var F=A.position||"Fixed";M.positionFinder=F.constructor===String?A.jsPlumbInstance.AnchorPositionFinders[F]:F,M.constructorParams=A}),ae.jsPlumbInstance.prototype.AnchorPositionFinders={Fixed:function(M,A,F){return[(M.left-A.left)/F[0],(M.top-A.top)/F[1]]},Grid:function(M,A,F,D){var f=M.left-A.left,v=M.top-A.top,u=F[0]/D.grid[0],s=F[1]/D.grid[1],r=Math.floor(f/u),d=Math.floor(v/s);return[(r*u+u/2)/F[0],(d*s+s/2)/F[1]]}},de.Anchors.Perimeter=function(M){M=M||{};var A=M.anchorCount||60,F=M.shape;if(!F)throw new Error("no shape supplied to Perimeter Anchor type");var D=function(){for(var m=.5,b=2*Math.PI/A,w=0,k=[],R=0;A>R;R++){var T=m+m*Math.sin(w),z=m+m*Math.cos(w);k.push([T,z,0,0]),w+=b}return k},f=function(m){for(var b=A/m.length,w=[],k=function(T,z,G,U,X,Q,oe){b=A*X;for(var le=(G-T)/b,fe=(U-z)/b,ye=0;b>ye;ye++)w.push([T+le*ye,z+fe*ye,Q==null?0:Q,oe==null?0:oe])},R=0;R<m.length;R++)k.apply(null,m[R]);return w},v=function(m){for(var b=[],w=0;w<m.length;w++)b.push([m[w][0],m[w][1],m[w][2],m[w][3],1/m.length,m[w][4],m[w][5]]);return f(b)},u=function(){return v([[0,0,1,0,0,-1],[1,0,1,1,1,0],[1,1,0,1,0,1],[0,1,0,0,-1,0]])},s={Circle:D,Ellipse:D,Diamond:function(){return v([[.5,0,1,.5],[1,.5,.5,1],[.5,1,0,.5],[0,.5,.5,0]])},Rectangle:u,Square:u,Triangle:function(){return v([[.5,0,1,1],[1,1,0,1],[0,1,.5,0]])},Path:function(m){for(var b=m.points,w=[],k=0,R=0;R<b.length-1;R++){var T=Math.sqrt(Math.pow(b[R][2]-b[R][0])+Math.pow(b[R][3]-b[R][1]));k+=T,w.push([b[R][0],b[R][1],b[R+1][0],b[R+1][1],T])}for(var z=0;z<w.length;z++)w[z][4]=w[z][4]/k;return f(w)}},r=function(m,b){for(var w=[],k=b/180*Math.PI,R=0;R<m.length;R++){var T=m[R][0]-.5,z=m[R][1]-.5;w.push([.5+(T*Math.cos(k)-z*Math.sin(k)),.5+(T*Math.sin(k)+z*Math.cos(k)),m[R][2],m[R][3]])}return w};if(!s[F])throw new Error("Shape ["+F+"] is unknown by Perimeter Anchor type");var d=s[F](M);M.rotation&&(d=r(d,M.rotation));var g=M.jsPlumbInstance.makeDynamicAnchor(d);return g.type="Perimeter",g}}.call(typeof window!="undefined"?window:co),function(){"use strict";var ae=this,ee=(ae.jsPlumbUtil,ae.jsPlumb);ee.DefaultRouter=function(de){this.jsPlumbInstance=de,this.anchorManager=new ee.AnchorManager({jsPlumbInstance:de}),this.sourceOrTargetChanged=function(ne,x,p,M,A){this.anchorManager.sourceOrTargetChanged(ne,x,p,M,A)},this.reset=function(){this.anchorManager.reset()},this.changeId=function(ne,x){this.anchorManager.changeId(ne,x)},this.elementRemoved=function(ne){this.anchorManager.elementRemoved(ne)},this.newConnection=function(ne){this.anchorManager.newConnection(ne)},this.connectionDetached=function(ne,x){this.anchorManager.connectionDetached(ne,x)},this.redraw=function(ne,x,p,M,A,F){return this.anchorManager.redraw(ne,x,p,M,A,F)},this.deleteEndpoint=function(ne){this.anchorManager.deleteEndpoint(ne)},this.rehomeEndpoint=function(ne,x,p){this.anchorManager.rehomeEndpoint(ne,x,p)},this.addEndpoint=function(ne,x){this.anchorManager.addEndpoint(ne,x)}}}.call(typeof window!="undefined"?window:co),function(){"use strict";var ae=this,ee=ae.jsPlumb,de=ae.jsPlumbUtil,ne=ae.Biltong;ee.Segments={AbstractSegment:function(D){this.params=D,this.findClosestPointOnPath=function(f,v){return{d:1/0,x:null,y:null,l:null}},this.getBounds=function(){return{minX:Math.min(D.x1,D.x2),minY:Math.min(D.y1,D.y2),maxX:Math.max(D.x1,D.x2),maxY:Math.max(D.y1,D.y2)}},this.lineIntersection=function(f,v,u,s){return[]},this.boxIntersection=function(f,v,u,s){var r=[];return r.push.apply(r,this.lineIntersection(f,v,f+u,v)),r.push.apply(r,this.lineIntersection(f+u,v,f+u,v+s)),r.push.apply(r,this.lineIntersection(f+u,v+s,f,v+s)),r.push.apply(r,this.lineIntersection(f,v+s,f,v)),r},this.boundingBoxIntersection=function(f){return this.boxIntersection(f.x,f.y,f.w,f.y)}},Straight:function(D){var f,v,u,s,r,d,g,m=(ee.Segments.AbstractSegment.apply(this,arguments),function(){f=Math.sqrt(Math.pow(r-s,2)+Math.pow(g-d,2)),v=ne.gradient({x:s,y:d},{x:r,y:g}),u=-1/v});this.type="Straight",this.getLength=function(){return f},this.getGradient=function(){return v},this.getCoordinates=function(){return{x1:s,y1:d,x2:r,y2:g}},this.setCoordinates=function(T){s=T.x1,d=T.y1,r=T.x2,g=T.y2,m()},this.setCoordinates({x1:D.x1,y1:D.y1,x2:D.x2,y2:D.y2}),this.getBounds=function(){return{minX:Math.min(s,r),minY:Math.min(d,g),maxX:Math.max(s,r),maxY:Math.max(d,g)}},this.pointOnPath=function(T,z){if(T!==0||z){if(T!==1||z){var G=z?T>0?T:f+T:T*f;return ne.pointOnLine({x:s,y:d},{x:r,y:g},G)}return{x:r,y:g}}return{x:s,y:d}},this.gradientAtPoint=function(T){return v},this.pointAlongPathFrom=function(T,z,G){var U=this.pointOnPath(T,G),X=0>=z?{x:s,y:d}:{x:r,y:g};return 0>=z&&Math.abs(z)>1&&(z*=-1),ne.pointOnLine(U,X,z)};var b=function(T,z,G){return G>=Math.min(T,z)&&G<=Math.max(T,z)},w=function(T,z,G){return Math.abs(G-T)<Math.abs(G-z)?T:z};this.findClosestPointOnPath=function(T,z){var G={d:1/0,x:null,y:null,l:null,x1:s,x2:r,y1:d,y2:g};if(v===0)G.y=d,G.x=b(s,r,T)?T:w(s,r,T);else if(v===1/0||v===-(1/0))G.x=s,G.y=b(d,g,z)?z:w(d,g,z);else{var U=d-v*s,X=z-u*T,Q=(X-U)/(v-u),oe=v*Q+U;G.x=b(s,r,Q)?Q:w(s,r,Q),G.y=b(d,g,oe)?oe:w(d,g,oe)}var le=ne.lineLength([G.x,G.y],[s,d]);return G.d=ne.lineLength([T,z],[G.x,G.y]),G.l=le/f,G};var k=function(T,z,G){return G>z?T>=z&&G>=T:z>=T&&T>=G},R=k;this.lineIntersection=function(T,z,G,U){var X=Math.abs(ne.gradient({x:T,y:z},{x:G,y:U})),Q=Math.abs(v),oe=Q===1/0?s:d-Q*s,le=[],fe=X===1/0?T:z-X*T;if(X!==Q)if(X===1/0&&Q===0)R(T,s,r)&&R(d,z,U)&&(le=[T,d]);else if(X===0&&Q===1/0)R(z,d,g)&&R(s,T,G)&&(le=[s,z]);else{var ye,ke;X===1/0?(ye=T,R(ye,s,r)&&(ke=Q*T+oe,R(ke,z,U)&&(le=[ye,ke]))):X===0?(ke=z,R(ke,d,g)&&(ye=(z-oe)/Q,R(ye,T,G)&&(le=[ye,ke]))):(ye=(fe-oe)/(Q-X),ke=Q*ye+oe,R(ye,s,r)&&R(ke,d,g)&&(le=[ye,ke]))}return le},this.boxIntersection=function(T,z,G,U){var X=[];return X.push.apply(X,this.lineIntersection(T,z,T+G,z)),X.push.apply(X,this.lineIntersection(T+G,z,T+G,z+U)),X.push.apply(X,this.lineIntersection(T+G,z+U,T,z+U)),X.push.apply(X,this.lineIntersection(T,z+U,T,z)),X},this.boundingBoxIntersection=function(T){return this.boxIntersection(T.x,T.y,T.w,T.h)}},Arc:function(D){var f=(ee.Segments.AbstractSegment.apply(this,arguments),function(w,k){return ne.theta([D.cx,D.cy],[w,k])}),v=function(w,k){if(w.anticlockwise){var R=w.startAngle<w.endAngle?w.startAngle+u:w.startAngle,T=Math.abs(R-w.endAngle);return R-T*k}var z=w.endAngle<w.startAngle?w.endAngle+u:w.endAngle,G=Math.abs(z-w.startAngle);return w.startAngle+G*k},u=2*Math.PI;this.radius=D.r,this.anticlockwise=D.ac,this.type="Arc",D.startAngle&&D.endAngle?(this.startAngle=D.startAngle,this.endAngle=D.endAngle,this.x1=D.cx+this.radius*Math.cos(D.startAngle),this.y1=D.cy+this.radius*Math.sin(D.startAngle),this.x2=D.cx+this.radius*Math.cos(D.endAngle),this.y2=D.cy+this.radius*Math.sin(D.endAngle)):(this.startAngle=f(D.x1,D.y1),this.endAngle=f(D.x2,D.y2),this.x1=D.x1,this.y1=D.y1,this.x2=D.x2,this.y2=D.y2),this.endAngle<0&&(this.endAngle+=u),this.startAngle<0&&(this.startAngle+=u);var s=this.endAngle<this.startAngle?this.endAngle+u:this.endAngle;this.sweep=Math.abs(s-this.startAngle),this.anticlockwise&&(this.sweep=u-this.sweep);var r=2*Math.PI*this.radius,d=this.sweep/u,g=r*d;this.getLength=function(){return g},this.getBounds=function(){return{minX:D.cx-D.r,maxX:D.cx+D.r,minY:D.cy-D.r,maxY:D.cy+D.r}};var m=1e-10,b=function(w){var k=Math.floor(w),R=Math.ceil(w);return m>w-k?k:m>R-w?R:w};this.pointOnPath=function(w,k){if(w===0)return{x:this.x1,y:this.y1,theta:this.startAngle};if(w===1)return{x:this.x2,y:this.y2,theta:this.endAngle};k&&(w/=g);var R=v(this,w),T=D.cx+D.r*Math.cos(R),z=D.cy+D.r*Math.sin(R);return{x:b(T),y:b(z),theta:R}},this.gradientAtPoint=function(w,k){var R=this.pointOnPath(w,k),T=ne.normal([D.cx,D.cy],[R.x,R.y]);return this.anticlockwise||T!==1/0&&T!==-(1/0)||(T*=-1),T},this.pointAlongPathFrom=function(w,k,R){var T=this.pointOnPath(w,R),z=k/r*2*Math.PI,G=this.anticlockwise?-1:1,U=T.theta+G*z,X=D.cx+this.radius*Math.cos(U),Q=D.cy+this.radius*Math.sin(U);return{x:X,y:Q}}},Bezier:function(D){this.curve=[{x:D.x1,y:D.y1},{x:D.cp1x,y:D.cp1y},{x:D.cp2x,y:D.cp2y},{x:D.x2,y:D.y2}];var f=function(g){return g[0].x===g[1].x&&g[0].y===g[1].y},v=function(g,m){return Math.sqrt(Math.pow(g.x-m.x,2)+Math.pow(g.y-m.y,2))},u=function(g){var m={x:0,y:0};if(g===0)return this.curve[0];var b=this.curve.length-1;if(g===1)return this.curve[b];var w=this.curve,k=1-g;if(b===0)return this.curve[0];if(b===1)return{x:k*w[0].x+g*w[1].x,y:k*w[0].y+g*w[1].y};if(4>b){var R,T,z,G=k*k,U=g*g,X=0;return b===2?(w=[w[0],w[1],w[2],m],R=G,T=2*(k*g),z=U):b===3&&(R=G*k,T=3*(G*g),z=3*(k*U),X=g*U),{x:R*w[0].x+T*w[1].x+z*w[2].x+X*w[3].x,y:R*w[0].y+T*w[1].y+z*w[2].y+X*w[3].y}}return m}.bind(this),s=function(g){var m=[];g--;for(var b=0;g>=b;b++)m.push(u(b/g));return m},r=function(){f(this.curve)&&(this.length=0);var g=16,m=s(g);this.length=0;for(var b=0;g-1>b;b++){var w=m[b],k=m[b+1];this.length+=v(w,k)}}.bind(this);ee.Segments.AbstractSegment.apply(this,arguments),this.bounds={minX:Math.min(D.x1,D.x2,D.cp1x,D.cp2x),minY:Math.min(D.y1,D.y2,D.cp1y,D.cp2y),maxX:Math.max(D.x1,D.x2,D.cp1x,D.cp2x),maxY:Math.max(D.y1,D.y2,D.cp1y,D.cp2y)},this.type="Bezier",r();var d=function(g,m,b){return b&&(m=ae.jsBezier.locationAlongCurveFrom(g,m>0?0:1,m)),m};this.pointOnPath=function(g,m){return g=d(this.curve,g,m),ae.jsBezier.pointOnCurve(this.curve,g)},this.gradientAtPoint=function(g,m){return g=d(this.curve,g,m),ae.jsBezier.gradientAtPoint(this.curve,g)},this.pointAlongPathFrom=function(g,m,b){return g=d(this.curve,g,b),ae.jsBezier.pointAlongCurveFrom(this.curve,g,m)},this.getLength=function(){return this.length},this.getBounds=function(){return this.bounds},this.findClosestPointOnPath=function(g,m){var b=ae.jsBezier.nearestPointOnCurve({x:g,y:m},this.curve);return{d:Math.sqrt(Math.pow(b.point.x-g,2)+Math.pow(b.point.y-m,2)),x:b.point.x,y:b.point.y,l:1-b.location,s:this}},this.lineIntersection=function(g,m,b,w){return ae.jsBezier.lineIntersection(g,m,b,w,this.curve)}}},ee.SegmentRenderer={getPath:function(D,f){return{Straight:function(v){var u=D.getCoordinates();return(v?"M "+u.x1+" "+u.y1+" ":"")+"L "+u.x2+" "+u.y2},Bezier:function(v){var u=D.params;return(v?"M "+u.x2+" "+u.y2+" ":"")+"C "+u.cp2x+" "+u.cp2y+" "+u.cp1x+" "+u.cp1y+" "+u.x1+" "+u.y1},Arc:function(v){var u=D.params,s=D.sweep>Math.PI?1:0,r=D.anticlockwise?0:1;return(v?"M"+D.x1+" "+D.y1+" ":"")+"A "+D.radius+" "+u.r+" 0 "+s+","+r+" "+D.x2+" "+D.y2}}[D.type](f)}};var x=function(){this.resetBounds=function(){this.bounds={minX:1/0,minY:1/0,maxX:-(1/0),maxY:-(1/0)}},this.resetBounds()};ee.Connectors.AbstractConnector=function(D){x.apply(this,arguments);var f=[],v=0,u=[],s=[],r=D.stub||0,d=de.isArray(r)?r[0]:r,g=de.isArray(r)?r[1]:r,m=D.gap||0,b=de.isArray(m)?m[0]:m,w=de.isArray(m)?m[1]:m,k=null,R=null;this.getPathData=function(){for(var Q="",oe=0;oe<f.length;oe++)Q+=ee.SegmentRenderer.getPath(f[oe],oe===0),Q+=" ";return Q},this.findSegmentForPoint=function(Q,oe){for(var le={d:1/0,s:null,x:null,y:null,l:null},fe=0;fe<f.length;fe++){var ye=f[fe].findClosestPointOnPath(Q,oe);ye.d<le.d&&(le.d=ye.d,le.l=ye.l,le.x=ye.x,le.y=ye.y,le.s=f[fe],le.x1=ye.x1,le.x2=ye.x2,le.y1=ye.y1,le.y2=ye.y2,le.index=fe,le.connectorLocation=u[fe][0]+ye.l*(u[fe][1]-u[fe][0]))}return le},this.lineIntersection=function(Q,oe,le,fe){for(var ye=[],ke=0;ke<f.length;ke++)ye.push.apply(ye,f[ke].lineIntersection(Q,oe,le,fe));return ye},this.boxIntersection=function(Q,oe,le,fe){for(var ye=[],ke=0;ke<f.length;ke++)ye.push.apply(ye,f[ke].boxIntersection(Q,oe,le,fe));return ye},this.boundingBoxIntersection=function(Q){for(var oe=[],le=0;le<f.length;le++)oe.push.apply(oe,f[le].boundingBoxIntersection(Q));return oe};var T=function(){for(var Q=0,oe=0;oe<f.length;oe++){var le=f[oe].getLength();s[oe]=le/v,u[oe]=[Q,Q+=le/v]}},z=function(Q,oe){var le,fe,ye;if(oe&&(Q=Q>0?Q/v:(v+Q)/v),Q===1)le=f.length-1,ye=1;else if(Q===0)ye=0,le=0;else if(Q>=.5){for(le=0,ye=0,fe=u.length-1;fe>-1;fe--)if(u[fe][1]>=Q&&u[fe][0]<=Q){le=fe,ye=(Q-u[fe][0])/s[fe];break}}else for(le=u.length-1,ye=1,fe=0;fe<u.length;fe++)if(u[fe][1]>=Q){le=fe,ye=(Q-u[fe][0])/s[fe];break}return{segment:f[le],proportion:ye,index:le}},G=function(Q,oe,le){if(le.x1!==le.x2||le.y1!==le.y2){var fe=new ee.Segments[oe](le);f.push(fe),v+=fe.getLength(),Q.updateBounds(fe)}},U=function(){v=f.length=u.length=s.length=0};this.setSegments=function(Q){k=[],v=0;for(var oe=0;oe<Q.length;oe++)k.push(Q[oe]),v+=Q[oe].getLength()},this.getLength=function(){return v};var X=function(Q){this.strokeWidth=Q.strokeWidth;var oe=ne.quadrant(Q.sourcePos,Q.targetPos),le=Q.targetPos[0]<Q.sourcePos[0],fe=Q.targetPos[1]<Q.sourcePos[1],ye=Q.strokeWidth||1,ke=Q.sourceEndpoint.anchor.getOrientation(Q.sourceEndpoint),Ie=Q.targetEndpoint.anchor.getOrientation(Q.targetEndpoint),ze=le?Q.targetPos[0]:Q.sourcePos[0],Ye=fe?Q.targetPos[1]:Q.sourcePos[1],xe=Math.abs(Q.targetPos[0]-Q.sourcePos[0]),Te=Math.abs(Q.targetPos[1]-Q.sourcePos[1]);if(ke[0]===0&&ke[1]===0||Ie[0]===0&&Ie[1]===0){var Ae=xe>Te?0:1,Ne=[1,0][Ae];ke=[],Ie=[],ke[Ae]=Q.sourcePos[Ae]>Q.targetPos[Ae]?-1:1,Ie[Ae]=Q.sourcePos[Ae]>Q.targetPos[Ae]?1:-1,ke[Ne]=0,Ie[Ne]=0}var Re=le?xe+b*ke[0]:b*ke[0],Oe=fe?Te+b*ke[1]:b*ke[1],Ve=le?w*Ie[0]:xe+w*Ie[0],Ue=fe?w*Ie[1]:Te+w*Ie[1],Ee=ke[0]*Ie[0]+ke[1]*Ie[1],tt={sx:Re,sy:Oe,tx:Ve,ty:Ue,lw:ye,xSpan:Math.abs(Ve-Re),ySpan:Math.abs(Ue-Oe),mx:(Re+Ve)/2,my:(Oe+Ue)/2,so:ke,to:Ie,x:ze,y:Ye,w:xe,h:Te,segment:oe,startStubX:Re+ke[0]*d,startStubY:Oe+ke[1]*d,endStubX:Ve+Ie[0]*g,endStubY:Ue+Ie[1]*g,isXGreaterThanStubTimes2:Math.abs(Re-Ve)>d+g,isYGreaterThanStubTimes2:Math.abs(Oe-Ue)>d+g,opposite:Ee===-1,perpendicular:Ee===0,orthogonal:Ee===1,sourceAxis:ke[0]===0?"y":"x",points:[ze,Ye,xe,Te,Re,Oe,Ve,Ue],stubs:[d,g]};return tt.anchorOrientation=tt.opposite?"opposite":tt.orthogonal?"orthogonal":"perpendicular",tt};return this.getSegments=function(){return f},this.updateBounds=function(Q){var oe=Q.getBounds();this.bounds.minX=Math.min(this.bounds.minX,oe.minX),this.bounds.maxX=Math.max(this.bounds.maxX,oe.maxX),this.bounds.minY=Math.min(this.bounds.minY,oe.minY),this.bounds.maxY=Math.max(this.bounds.maxY,oe.maxY)},this.pointOnPath=function(Q,oe){var le=z(Q,oe);return le.segment&&le.segment.pointOnPath(le.proportion,!1)||[0,0]},this.gradientAtPoint=function(Q,oe){var le=z(Q,oe);return le.segment&&le.segment.gradientAtPoint(le.proportion,!1)||0},this.pointAlongPathFrom=function(Q,oe,le){var fe=z(Q,le);return fe.segment&&fe.segment.pointAlongPathFrom(fe.proportion,oe,!1)||[0,0]},this.compute=function(Q){R=X.call(this,Q),U(),this._compute(R,Q),this.x=R.points[0],this.y=R.points[1],this.w=R.points[2],this.h=R.points[3],this.segment=R.segment,T()},{addSegment:G,prepareCompute:X,sourceStub:d,targetStub:g,maxStub:Math.max(d,g),sourceGap:b,targetGap:w,maxGap:Math.max(b,w)}},de.extend(ee.Connectors.AbstractConnector,x),ee.Endpoints.AbstractEndpoint=function(D){x.apply(this,arguments);var f=this.compute=function(v,u,s,r){var d=this._compute.apply(this,arguments);return this.x=d[0],this.y=d[1],this.w=d[2],this.h=d[3],this.bounds.minX=this.x,this.bounds.minY=this.y,this.bounds.maxX=this.x+this.w,this.bounds.maxY=this.y+this.h,d};return{compute:f,cssClass:D.cssClass}},de.extend(ee.Endpoints.AbstractEndpoint,x),ee.Endpoints.Dot=function(D){this.type="Dot",ee.Endpoints.AbstractEndpoint.apply(this,arguments),D=D||{},this.radius=D.radius||10,this.defaultOffset=.5*this.radius,this.defaultInnerRadius=this.radius/3,this._compute=function(f,v,u,s){this.radius=u.radius||this.radius;var r=f[0]-this.radius,d=f[1]-this.radius,g=2*this.radius,m=2*this.radius;if(u.stroke){var b=u.strokeWidth||1;r-=b,d-=b,g+=2*b,m+=2*b}return[r,d,g,m,this.radius]}},de.extend(ee.Endpoints.Dot,ee.Endpoints.AbstractEndpoint),ee.Endpoints.Rectangle=function(D){this.type="Rectangle",ee.Endpoints.AbstractEndpoint.apply(this,arguments),D=D||{},this.width=D.width||20,this.height=D.height||20,this._compute=function(f,v,u,s){var r=u.width||this.width,d=u.height||this.height,g=f[0]-r/2,m=f[1]-d/2;return[g,m,r,d]}},de.extend(ee.Endpoints.Rectangle,ee.Endpoints.AbstractEndpoint);var p=function(D){ee.jsPlumbUIComponent.apply(this,arguments),this._jsPlumb.displayElements=[]};de.extend(p,ee.jsPlumbUIComponent,{getDisplayElements:function(){return this._jsPlumb.displayElements},appendDisplayElement:function(D){this._jsPlumb.displayElements.push(D)}}),ee.Endpoints.Image=function(D){this.type="Image",p.apply(this,arguments),ee.Endpoints.AbstractEndpoint.apply(this,arguments);var f=D.onload,v=D.src||D.url,u=D.cssClass?" "+D.cssClass:"";this._jsPlumb.img=new Image,this._jsPlumb.ready=!1,this._jsPlumb.initialized=!1,this._jsPlumb.deleted=!1,this._jsPlumb.widthToUse=D.width,this._jsPlumb.heightToUse=D.height,this._jsPlumb.endpoint=D.endpoint,this._jsPlumb.img.onload=function(){this._jsPlumb!=null&&(this._jsPlumb.ready=!0,this._jsPlumb.widthToUse=this._jsPlumb.widthToUse||this._jsPlumb.img.width,this._jsPlumb.heightToUse=this._jsPlumb.heightToUse||this._jsPlumb.img.height,f&&f(this))}.bind(this),this._jsPlumb.endpoint.setImage=function(s,r){var d=s.constructor===String?s:s.src;f=r,this._jsPlumb.img.src=d,this.canvas!=null&&this.canvas.setAttribute("src",this._jsPlumb.img.src)}.bind(this),this._jsPlumb.endpoint.setImage(v,f),this._compute=function(s,r,d,g){return this.anchorPoint=s,this._jsPlumb.ready?[s[0]-this._jsPlumb.widthToUse/2,s[1]-this._jsPlumb.heightToUse/2,this._jsPlumb.widthToUse,this._jsPlumb.heightToUse]:[0,0,0,0]},this.canvas=ee.createElement("img",{position:"absolute",margin:0,padding:0,outline:0},this._jsPlumb.instance.endpointClass+u),this._jsPlumb.widthToUse&&this.canvas.setAttribute("width",this._jsPlumb.widthToUse),this._jsPlumb.heightToUse&&this.canvas.setAttribute("height",this._jsPlumb.heightToUse),this._jsPlumb.instance.appendElement(this.canvas),this.actuallyPaint=function(s,r,d){if(!this._jsPlumb.deleted){this._jsPlumb.initialized||(this.canvas.setAttribute("src",this._jsPlumb.img.src),this.appendDisplayElement(this.canvas),this._jsPlumb.initialized=!0);var g=this.anchorPoint[0]-this._jsPlumb.widthToUse/2,m=this.anchorPoint[1]-this._jsPlumb.heightToUse/2;de.sizeElement(this.canvas,g,m,this._jsPlumb.widthToUse,this._jsPlumb.heightToUse)}},this.paint=function(s,r){this._jsPlumb!=null&&(this._jsPlumb.ready?this.actuallyPaint(s,r):ae.setTimeout(function(){this.paint(s,r)}.bind(this),200))}},de.extend(ee.Endpoints.Image,[p,ee.Endpoints.AbstractEndpoint],{cleanup:function(D){D&&(this._jsPlumb.deleted=!0,this.canvas&&this.canvas.parentNode.removeChild(this.canvas),this.canvas=null)}}),ee.Endpoints.Blank=function(D){ee.Endpoints.AbstractEndpoint.apply(this,arguments),this.type="Blank",p.apply(this,arguments),this._compute=function(v,u,s,r){return[v[0],v[1],10,0]};var f=D.cssClass?" "+D.cssClass:"";this.canvas=ee.createElement("div",{display:"block",width:"1px",height:"1px",background:"transparent",position:"absolute"},this._jsPlumb.instance.endpointClass+f),this._jsPlumb.instance.appendElement(this.canvas),this.paint=function(v,u){de.sizeElement(this.canvas,this.x,this.y,this.w,this.h)}},de.extend(ee.Endpoints.Blank,[ee.Endpoints.AbstractEndpoint,p],{cleanup:function(){this.canvas&&this.canvas.parentNode&&this.canvas.parentNode.removeChild(this.canvas)}}),ee.Endpoints.Triangle=function(D){this.type="Triangle",ee.Endpoints.AbstractEndpoint.apply(this,arguments);var f=this;D=D||{},D.width=D.width||55,D.height=D.height||55,this.width=D.width,this.height=D.height,this._compute=function(v,u,s,r){var d=s.width||f.width,g=s.height||f.height,m=v[0]-d/2,b=v[1]-g/2;return[m,b,d,g]}};var M=ee.Overlays.AbstractOverlay=function(D){this.visible=!0,this.isAppendedAtTopLevel=!0,this.component=D.component,this.loc=D.location==null?.5:D.location,this.endpointLoc=D.endpointLocation==null?[.5,.5]:D.endpointLocation,this.visible=D.visible!==!1};M.prototype={cleanup:function(D){D&&(this.component=null,this.canvas=null,this.endpointLoc=null)},reattach:function(D,f){},setVisible:function(D){this.visible=D,this.component.repaint()},isVisible:function(){return this.visible},hide:function(){this.setVisible(!1)},show:function(){this.setVisible(!0)},incrementLocation:function(D){this.loc+=D,this.component.repaint()},setLocation:function(D){this.loc=D,this.component.repaint()},getLocation:function(){return this.loc},updateFrom:function(){}},ee.Overlays.Arrow=function(D){this.type="Arrow",M.apply(this,arguments),this.isAppendedAtTopLevel=!1,D=D||{};var f=this;this.length=D.length||20,this.width=D.width||20,this.id=D.id,this.direction=(D.direction||1)<0?-1:1;var v=D.paintStyle||{"stroke-width":1},u=D.foldback||.623;this.computeMaxSize=function(){return 1.5*f.width},this.elementCreated=function(s,r){if(this.path=s,D.events)for(var d in D.events)ee.on(s,d,D.events[d])},this.draw=function(s,r){var d,g,m,b,w;if(s.pointAlongPathFrom){if(de.isString(this.loc)||this.loc>1||this.loc<0){var k=parseInt(this.loc,10),R=this.loc<0?1:0;d=s.pointAlongPathFrom(R,k,!1),g=s.pointAlongPathFrom(R,k-this.direction*this.length/2,!1),m=ne.pointOnLine(d,g,this.length)}else if(this.loc===1){if(d=s.pointOnPath(this.loc),g=s.pointAlongPathFrom(this.loc,-this.length),m=ne.pointOnLine(d,g,this.length),this.direction===-1){var T=m;m=d,d=T}}else if(this.loc===0){if(m=s.pointOnPath(this.loc),g=s.pointAlongPathFrom(this.loc,this.length),d=ne.pointOnLine(m,g,this.length),this.direction===-1){var z=m;m=d,d=z}}else d=s.pointAlongPathFrom(this.loc,this.direction*this.length/2),g=s.pointOnPath(this.loc),m=ne.pointOnLine(d,g,this.length);b=ne.perpendicularLineTo(d,m,this.width),w=ne.pointOnLine(d,m,u*this.length);var G={hxy:d,tail:b,cxy:w},U=v.stroke||r.stroke,X=v.fill||r.stroke,Q=v.strokeWidth||r.strokeWidth;return{component:s,d:G,"stroke-width":Q,stroke:U,fill:X,minX:Math.min(d.x,b[0].x,b[1].x),maxX:Math.max(d.x,b[0].x,b[1].x),minY:Math.min(d.y,b[0].y,b[1].y),maxY:Math.max(d.y,b[0].y,b[1].y)}}return{component:s,minX:0,maxX:0,minY:0,maxY:0}}},de.extend(ee.Overlays.Arrow,M,{updateFrom:function(D){this.length=D.length||this.length,this.width=D.width||this.width,this.direction=D.direction!=null?D.direction:this.direction,this.foldback=D.foldback||this.foldback},cleanup:function(){this.path&&this.path.parentNode&&this.path.parentNode.removeChild(this.path)}}),ee.Overlays.PlainArrow=function(D){D=D||{};var f=ee.extend(D,{foldback:1});ee.Overlays.Arrow.call(this,f),this.type="PlainArrow"},de.extend(ee.Overlays.PlainArrow,ee.Overlays.Arrow),ee.Overlays.Diamond=function(D){D=D||{};var f=D.length||40,v=ee.extend(D,{length:f/2,foldback:2});ee.Overlays.Arrow.call(this,v),this.type="Diamond"},de.extend(ee.Overlays.Diamond,ee.Overlays.Arrow);var A=function(D,f){return(D._jsPlumb.cachedDimensions==null||f)&&(D._jsPlumb.cachedDimensions=D.getDimensions()),D._jsPlumb.cachedDimensions},F=function(D){ee.jsPlumbUIComponent.apply(this,arguments),M.apply(this,arguments);var f=this.fire;this.fire=function(){f.apply(this,arguments),this.component&&this.component.fire.apply(this.component,arguments)},this.detached=!1,this.id=D.id,this._jsPlumb.div=null,this._jsPlumb.initialised=!1,this._jsPlumb.component=D.component,this._jsPlumb.cachedDimensions=null,this._jsPlumb.create=D.create,this._jsPlumb.initiallyInvisible=D.visible===!1,this.getElement=function(){if(this._jsPlumb.div==null){var v=this._jsPlumb.div=ee.getElement(this._jsPlumb.create(this._jsPlumb.component));v.style.position="absolute",jsPlumb.addClass(v,this._jsPlumb.instance.overlayClass+" "+(this.cssClass?this.cssClass:D.cssClass?D.cssClass:"")),this._jsPlumb.instance.appendElement(v),this._jsPlumb.instance.getId(v),this.canvas=v;var u="translate(-50%, -50%)";v.style.webkitTransform=u,v.style.mozTransform=u,v.style.msTransform=u,v.style.oTransform=u,v.style.transform=u,v._jsPlumb=this,D.visible===!1&&(v.style.display="none")}return this._jsPlumb.div},this.draw=function(v,u,s){var r=A(this);if(r!=null&&r.length===2){var d={x:0,y:0};if(s)d={x:s[0],y:s[1]};else if(v.pointOnPath){var g=this.loc,m=!1;(de.isString(this.loc)||this.loc<0||this.loc>1)&&(g=parseInt(this.loc,10),m=!0),d=v.pointOnPath(g,m)}else{var b=this.loc.constructor===Array?this.loc:this.endpointLoc;d={x:b[0]*v.w,y:b[1]*v.h}}var w=d.x-r[0]/2,k=d.y-r[1]/2;return{component:v,d:{minx:w,miny:k,td:r,cxy:d},minX:w,maxX:w+r[0],minY:k,maxY:k+r[1]}}return{minX:0,maxX:0,minY:0,maxY:0}}};de.extend(F,[ee.jsPlumbUIComponent,M],{getDimensions:function(){return[1,1]},setVisible:function(D){this._jsPlumb.div&&(this._jsPlumb.div.style.display=D?"block":"none",D&&this._jsPlumb.initiallyInvisible&&(A(this,!0),this.component.repaint(),this._jsPlumb.initiallyInvisible=!1))},clearCachedDimensions:function(){this._jsPlumb.cachedDimensions=null},cleanup:function(D){D?this._jsPlumb.div!=null&&(this._jsPlumb.div._jsPlumb=null,this._jsPlumb.instance.removeElement(this._jsPlumb.div)):(this._jsPlumb&&this._jsPlumb.div&&this._jsPlumb.div.parentNode&&this._jsPlumb.div.parentNode.removeChild(this._jsPlumb.div),this.detached=!0)},reattach:function(D,f){this._jsPlumb.div!=null&&D.getContainer().appendChild(this._jsPlumb.div),this.detached=!1},computeMaxSize:function(){var D=A(this);return Math.max(D[0],D[1])},paint:function(D,f){this._jsPlumb.initialised||(this.getElement(),D.component.appendDisplayElement(this._jsPlumb.div),this._jsPlumb.initialised=!0,this.detached&&this._jsPlumb.div.parentNode.removeChild(this._jsPlumb.div)),this._jsPlumb.div.style.left=D.component.x+D.d.minx+"px",this._jsPlumb.div.style.top=D.component.y+D.d.miny+"px"}}),ee.Overlays.Custom=function(D){this.type="Custom",F.apply(this,arguments)},de.extend(ee.Overlays.Custom,F),ee.Overlays.GuideLines=function(){var D=this;D.length=50,D.strokeWidth=5,this.type="GuideLines",M.apply(this,arguments),ee.jsPlumbUIComponent.apply(this,arguments),this.draw=function(f,v){var u=f.pointAlongPathFrom(D.loc,D.length/2),s=f.pointOnPath(D.loc),r=ne.pointOnLine(u,s,D.length),d=ne.perpendicularLineTo(u,r,40),g=ne.perpendicularLineTo(r,u,20);return{connector:f,head:u,tail:r,headLine:g,tailLine:d,minX:Math.min(u.x,r.x,g[0].x,g[1].x),minY:Math.min(u.y,r.y,g[0].y,g[1].y),maxX:Math.max(u.x,r.x,g[0].x,g[1].x),maxY:Math.max(u.y,r.y,g[0].y,g[1].y)}}},ee.Overlays.Label=function(D){this.labelStyle=D.labelStyle,this.cssClass=this.labelStyle!=null?this.labelStyle.cssClass:null;var f=ee.extend({create:function(){return ee.createElement("div")}},D);if(ee.Overlays.Custom.call(this,f),this.type="Label",this.label=D.label||"",this.labelText=null,this.labelStyle){var v=this.getElement();if(this.labelStyle.font=this.labelStyle.font||"12px sans-serif",v.style.font=this.labelStyle.font,v.style.color=this.labelStyle.color||"black",this.labelStyle.fill&&(v.style.background=this.labelStyle.fill),this.labelStyle.borderWidth>0){var u=this.labelStyle.borderStyle?this.labelStyle.borderStyle:"black";v.style.border=this.labelStyle.borderWidth+"px solid "+u}this.labelStyle.padding&&(v.style.padding=this.labelStyle.padding)}},de.extend(ee.Overlays.Label,ee.Overlays.Custom,{cleanup:function(D){D&&(this.div=null,this.label=null,this.labelText=null,this.cssClass=null,this.labelStyle=null)},getLabel:function(){return this.label},setLabel:function(D){this.label=D,this.labelText=null,this.clearCachedDimensions(),this.update(),this.component.repaint()},getDimensions:function(){return this.update(),F.prototype.getDimensions.apply(this,arguments)},update:function(){if(typeof this.label=="function"){var D=this.label(this);this.getElement().innerHTML=D.replace(/\r\n/g,"<br/>")}else this.labelText==null&&(this.labelText=this.label,this.getElement().innerHTML=this.labelText.replace(/\r\n/g,"<br/>"))},updateFrom:function(D){D.label!=null&&this.setLabel(D.label)}})}.call(typeof window!="undefined"?window:co),function(){"use strict";var ae=this,ee=ae.jsPlumbUtil,de=ae.jsPlumbInstance,ne="jtk-group-collapsed",x="jtk-group-expanded",p="[jtk-group-content]",M="elementDraggable",A="stop",F="revert",D="_groupManager",f="_jsPlumbGroup",v="_jsPlumbGroupDrag",u="group:addMember",s="group:removeMember",r="group:add",d="group:remove",g="group:expand",m="group:collapse",b="groupDragStop",w="connectionMoved",k="internal.connectionDetached",R="removeAll",T="orphanAll",z="show",G="hide",U=function(Q){function oe(Ae,Ne){for(var Re=Q.getContainer(),Oe=!1;!Oe;){if(Ae==null||Ae===Re)return!1;if(Ae===Ne)return!0;Ae=Ae.parentNode}}function le(Ae){delete Ae.proxies;var Ne,Re=Ie[Ae.id];Re!=null&&(Ne=function(Oe){return Oe.id===Ae.id},ee.removeWithFunction(Re.connections.source,Ne),ee.removeWithFunction(Re.connections.target,Ne),delete Ie[Ae.id]),Re=ze[Ae.id],Re!=null&&(Ne=function(Oe){return Oe.id===Ae.id},ee.removeWithFunction(Re.connections.source,Ne),ee.removeWithFunction(Re.connections.target,Ne),delete ze[Ae.id])}function fe(Ae,Ne){for(var Re=Ae.getEl().querySelectorAll(".jtk-managed"),Oe=0;Oe<Re.length;Oe++)Q[Ne?z:G](Re[Oe],!0)}function ye(Ae){for(var Ne=Ae.getMembers().slice(),Re=[],Oe=0;Oe<Ne.length;Oe++)Array.prototype.push.apply(Re,Ne[Oe].querySelectorAll(".jtk-managed"));Array.prototype.push.apply(Ne,Re);var Ve=Q.getConnections({source:Ne,scope:"*"},!0),Ue=Q.getConnections({target:Ne,scope:"*"},!0),Ee={};Ae.connections.source.length=0,Ae.connections.target.length=0;var tt=function(at){for(var ut=0;ut<at.length;ut++)if(!Ee[at[ut].id]){Ee[at[ut].id]=!0;var Mt=Q.getGroupFor(at[ut].source),St=Q.getGroupFor(at[ut].target);Mt===Ae?(St!==Ae&&Ae.connections.source.push(at[ut]),Ie[at[ut].id]=Ae):St===Ae&&(Ae.connections.target.push(at[ut]),ze[at[ut].id]=Ae)}};tt(Ve),tt(Ue)}var ke={},Ie={},ze={},Ye=this;Q.bind("connection",function(Ae){var Ne=Q.getGroupFor(Ae.source),Re=Q.getGroupFor(Ae.target);Ne!=null&&Re!=null&&Ne===Re?(Ie[Ae.connection.id]=Ne,ze[Ae.connection.id]=Ne):(Ne!=null&&(ee.suggest(Ne.connections.source,Ae.connection),Ie[Ae.connection.id]=Ne),Re!=null&&(ee.suggest(Re.connections.target,Ae.connection),ze[Ae.connection.id]=Re))}),Q.bind(k,function(Ae){le(Ae.connection)}),Q.bind(w,function(Ae){var Ne=Ae.index===0?Ie:ze,Re=Ne[Ae.connection.id];if(Re){var Oe=Re.connections[Ae.index===0?"source":"target"],Ve=Oe.indexOf(Ae.connection);Ve!==-1&&Oe.splice(Ve,1)}}),this.addGroup=function(Ae){Q.addClass(Ae.getEl(),x),ke[Ae.id]=Ae,Ae.manager=this,ye(Ae),Q.fire(r,{group:Ae})},this.addToGroup=function(Ae,Ne,Re){if(Ae=this.getGroup(Ae)){var Oe=Ae.getEl();if(Ne._isJsPlumbGroup)return;var Ve=Ne._jsPlumbGroup;if(Ve!==Ae){Q.removeFromDragSelection(Ne);var Ue=Q.getOffset(Ne,!0),Ee=Ae.collapsed?Q.getOffset(Oe,!0):Q.getOffset(Ae.getDragArea(),!0);Ve!=null&&(Ve.remove(Ne,!1,Re,!1,Ae),Ye.updateConnectionsForGroup(Ve)),Ae.add(Ne,Re);var tt=function(St,ft){var kt=ft===0?1:0;St.each(function(Et){Et.setVisible(!1),Et.endpoints[kt].element._jsPlumbGroup===Ae?(Et.endpoints[kt].setVisible(!1),Te(Et,kt,Ae)):(Et.endpoints[ft].setVisible(!1),xe(Et,ft,Ae))})};Ae.collapsed&&(tt(Q.select({source:Ne}),0),tt(Q.select({target:Ne}),1));var at=Q.getId(Ne);Q.dragManager.setParent(Ne,at,Oe,Q.getId(Oe),Ue);var ut={left:Ue.left-Ee.left,top:Ue.top-Ee.top};if(Q.setPosition(Ne,ut),Q.dragManager.revalidateParent(Ne,at,Ue),Ye.updateConnectionsForGroup(Ae),Q.revalidate(at),!Re){var Mt={group:Ae,el:Ne,pos:ut};Ve&&(Mt.sourceGroup=Ve),Q.fire(u,Mt)}}}},this.removeFromGroup=function(Ae,Ne,Re){if(Ae=this.getGroup(Ae)){if(Ae.collapsed){var Oe=function(Ve,Ue){for(var Ee=0;Ee<Ve.length;Ee++){var tt=Ve[Ee];if(tt.proxies){for(var at=0;at<tt.proxies.length;at++)if(tt.proxies[at]!=null){var ut=tt.proxies[at].originalEp.element;(ut===Ne||oe(ut,Ne))&&Te(tt,Ue,Ae)}}}};Oe(Ae.connections.source.slice(),0),Oe(Ae.connections.target.slice(),1)}Ae.remove(Ne,null,Re)}},this.getGroup=function(Ae){var Ne=Ae;if(ee.isString(Ae)&&(Ne=ke[Ae],Ne==null))throw new TypeError("No such group ["+Ae+"]");return Ne},this.getGroups=function(){var Ae=[];for(var Ne in ke)Ae.push(ke[Ne]);return Ae},this.removeGroup=function(Ae,Ne,Re,Oe){Ae=this.getGroup(Ae),this.expandGroup(Ae,!0);var Ve=Ae[Ne?R:T](Re,Oe);return Q.remove(Ae.getEl()),delete ke[Ae.id],delete Q._groups[Ae.id],Q.fire(d,{group:Ae}),Ve},this.removeAllGroups=function(Ae,Ne,Re){for(var Oe in ke)this.removeGroup(ke[Oe],Ae,Ne,Re)};var xe=function(Ae,Ne,Re){var Oe=Ae.endpoints[Ne===0?1:0].element;if(!Oe[f]||Oe[f].shouldProxy()||!Oe[f].collapsed){var Ve=Re.getEl(),Ue=Q.getId(Ve);Q.proxyConnection(Ae,Ne,Ve,Ue,function(Ee,tt){return Re.getEndpoint(Ee,tt)},function(Ee,tt){return Re.getAnchor(Ee,tt)})}};this.collapseGroup=function(Ae){if(Ae=this.getGroup(Ae),Ae!=null&&!Ae.collapsed){var Ne=Ae.getEl();if(fe(Ae,!1),Ae.shouldProxy()){var Re=function(Oe,Ve){for(var Ue=0;Ue<Oe.length;Ue++){var Ee=Oe[Ue];xe(Ee,Ve,Ae)}};Re(Ae.connections.source,0),Re(Ae.connections.target,1)}Ae.collapsed=!0,Q.removeClass(Ne,x),Q.addClass(Ne,ne),Q.revalidate(Ne),Q.fire(m,{group:Ae})}};var Te=function(Ae,Ne,Re){Q.unproxyConnection(Ae,Ne,Q.getId(Re.getEl()))};this.expandGroup=function(Ae,Ne){if(Ae=this.getGroup(Ae),Ae!=null&&Ae.collapsed){var Re=Ae.getEl();if(fe(Ae,!0),Ae.shouldProxy()){var Oe=function(Ve,Ue){for(var Ee=0;Ee<Ve.length;Ee++){var tt=Ve[Ee];Te(tt,Ue,Ae)}};Oe(Ae.connections.source,0),Oe(Ae.connections.target,1)}Ae.collapsed=!1,Q.addClass(Re,x),Q.removeClass(Re,ne),Q.revalidate(Re),this.repaintGroup(Ae),Ne||Q.fire(g,{group:Ae})}},this.repaintGroup=function(Ae){Ae=this.getGroup(Ae);for(var Ne=Ae.getMembers(),Re=0;Re<Ne.length;Re++)Q.revalidate(Ne[Re])},this.updateConnectionsForGroup=ye,this.refreshAllGroups=function(){for(var Ae in ke)ye(ke[Ae]),Q.dragManager.updateOffsets(Q.getId(ke[Ae].getEl()))}},X=function(Q,oe){function le(St){return St.offsetParent}function fe(St,ft){var kt=le(St),Et=Q.getSize(kt),Yt=Q.getSize(St),Tt=ft[0],Ft=Tt+Yt[0],Bt=ft[1],Xt=Bt+Yt[1];return Ft>0&&Tt<Et[0]&&Xt>0&&Bt<Et[1]}function ye(St){var ft=Q.getId(St),kt=Q.getOffset(St);return St.parentNode.removeChild(St),Q.getContainer().appendChild(St),Q.setPosition(St,kt),ze(St),Q.dragManager.clearParent(St,ft),[ft,kt]}function ke(St){function ft(Yt,Tt,Ft){var Bt=null;if(!fe(Yt,[Tt,Ft])){var Xt=Yt._jsPlumbGroup;Ue?Q.remove(Yt):Bt=ye(Yt),Xt.remove(Yt)}return Bt}for(var kt=[],Et=0;Et<St.selection.length;Et++)kt.push(ft(St.selection[Et][0],St.selection[Et][1].left,St.selection[Et][1].top));return kt.length===1?kt[0]:kt}function Ie(St){var ft=Q.getId(St);Q.revalidate(St),Q.dragManager.revalidateParent(St,ft)}function ze(St){St._katavorioDrag&&((Ue||Ve)&&St._katavorioDrag.off(A,ke),Ue||Ve||!Oe||(St._katavorioDrag.off(F,Ie),St._katavorioDrag.setRevert(null)))}function Ye(St){St._katavorioDrag&&((Ue||Ve)&&St._katavorioDrag.on(A,ke),Re&&St._katavorioDrag.setConstrain(!0),Ne&&St._katavorioDrag.setUseGhostProxy(!0),Ue||Ve||!Oe||(St._katavorioDrag.on(F,Ie),St._katavorioDrag.setRevert(function(ft,kt){return!fe(ft,kt)})))}var xe=this,Te=oe.el;this.getEl=function(){return Te},this.id=oe.id||ee.uuid(),Te._isJsPlumbGroup=!0;var Ae=this.getDragArea=function(){var St=Q.getSelector(Te,p);return St&&St.length>0?St[0]:Te},Ne=oe.ghost===!0,Re=Ne||oe.constrain===!0,Oe=oe.revert!==!1,Ve=oe.orphan===!0,Ue=oe.prune===!0,Ee=oe.dropOverride===!0,tt=oe.proxied!==!1,at=[];if(this.connections={source:[],target:[],internal:[]},this.getAnchor=function(St,ft){return oe.anchor||"Continuous"},this.getEndpoint=function(St,ft){return oe.endpoint||["Dot",{radius:10}]},this.collapsed=!1,oe.draggable!==!1){var ut={drag:function(){for(var St=0;St<at.length;St++)Q.draw(at[St])},stop:function(St){Q.fire(b,jsPlumb.extend(St,{group:xe}))},scope:v};oe.dragOptions&&ae.jsPlumb.extend(ut,oe.dragOptions),Q.draggable(oe.el,ut)}oe.droppable!==!1&&Q.droppable(oe.el,{drop:function(St){var ft=St.drag.el;if(!ft._isJsPlumbGroup){var kt=ft._jsPlumbGroup;if(kt!==xe){if(kt!=null&&kt.overrideDrop(ft,xe))return;Q.getGroupManager().addToGroup(xe,ft,!1)}}}});var Mt=function(St,ft){for(var kt=St.nodeType==null?St:[St],Et=0;Et<kt.length;Et++)ft(kt[Et])};this.overrideDrop=function(St,ft){return Ee&&(Oe||Ue||Ve)},this.add=function(St,ft){var kt=Ae();Mt(St,function(Et){if(Et._jsPlumbGroup!=null){if(Et._jsPlumbGroup===xe)return;Et._jsPlumbGroup.remove(Et,!0,ft,!1)}Et._jsPlumbGroup=xe,at.push(Et),Q.isAlreadyDraggable(Et)&&Ye(Et),Et.parentNode!==kt&&kt.appendChild(Et)}),Q.getGroupManager().updateConnectionsForGroup(xe)},this.remove=function(St,ft,kt,Et,Yt){Mt(St,function(Tt){if(Tt._jsPlumbGroup===xe){if(delete Tt._jsPlumbGroup,ee.removeWithFunction(at,function(Bt){return Bt===Tt}),ft)try{xe.getDragArea().removeChild(Tt)}catch(Bt){jsPlumbUtil.log("Could not remove element from Group "+Bt)}if(ze(Tt),!kt){var Ft={group:xe,el:Tt};Yt&&(Ft.targetGroup=Yt),Q.fire(s,Ft)}}}),Et||Q.getGroupManager().updateConnectionsForGroup(xe)},this.removeAll=function(St,ft){for(var kt=0,Et=at.length;Et>kt;kt++){var Yt=at[0];xe.remove(Yt,St,ft,!0),Q.remove(Yt,!0)}at.length=0,Q.getGroupManager().updateConnectionsForGroup(xe)},this.orphanAll=function(){for(var St={},ft=0;ft<at.length;ft++){var kt=ye(at[ft]);St[kt[0]]=kt[1]}return at.length=0,St},this.getMembers=function(){return at},Te[f]=this,Q.bind(M,function(St){St.el._jsPlumbGroup===this&&Ye(St.el)}.bind(this)),this.shouldProxy=function(){return tt},Q.getGroupManager().addGroup(this)};de.prototype.addGroup=function(Q){var oe=this;if(oe._groups=oe._groups||{},oe._groups[Q.id]!=null)throw new TypeError("cannot create Group ["+Q.id+"]; a Group with that ID exists");if(Q.el[f]!=null)throw new TypeError("cannot create Group ["+Q.id+"]; the given element is already a Group");var le=new X(oe,Q);return oe._groups[le.id]=le,Q.collapsed&&this.collapseGroup(le),le},de.prototype.addToGroup=function(Q,oe,le){var fe=function(ke){var Ie=this.getId(ke);this.manage(Ie,ke),this.getGroupManager().addToGroup(Q,ke,le)}.bind(this);if(Array.isArray(oe))for(var ye=0;ye<oe.length;ye++)fe(oe[ye]);else fe(oe)},de.prototype.removeFromGroup=function(Q,oe,le){this.getGroupManager().removeFromGroup(Q,oe,le),this.getContainer().appendChild(oe)},de.prototype.removeGroup=function(Q,oe,le,fe){return this.getGroupManager().removeGroup(Q,oe,le,fe)},de.prototype.removeAllGroups=function(Q,oe,le){this.getGroupManager().removeAllGroups(Q,oe,le)},de.prototype.getGroup=function(Q){return this.getGroupManager().getGroup(Q)},de.prototype.getGroups=function(){return this.getGroupManager().getGroups()},de.prototype.expandGroup=function(Q){this.getGroupManager().expandGroup(Q)},de.prototype.collapseGroup=function(Q){this.getGroupManager().collapseGroup(Q)},de.prototype.repaintGroup=function(Q){this.getGroupManager().repaintGroup(Q)},de.prototype.toggleGroup=function(Q){Q=this.getGroupManager().getGroup(Q),Q!=null&&this.getGroupManager()[Q.collapsed?"expandGroup":"collapseGroup"](Q)},de.prototype.getGroupManager=function(){var Q=this[D];return Q==null&&(Q=this[D]=new U(this)),Q},de.prototype.removeGroupManager=function(){delete this[D]},de.prototype.getGroupFor=function(Q){if(Q=this.getElement(Q)){for(var oe=this.getContainer(),le=!1,fe=null,ye=null;!le;)Q==null||Q===oe?le=!0:Q[f]?(fe=Q[f],ye=Q,le=!0):Q=Q.parentNode;return fe}}}.call(typeof window!="undefined"?window:co),function(){"use strict";var ae=this,ee=ae.jsPlumb,de=ae.jsPlumbUtil,ne="Straight",x="Arc",p=function(M){this.type="Flowchart",M=M||{},M.stub=M.stub==null?30:M.stub;var A,F,D=ee.Connectors.AbstractConnector.apply(this,arguments),f=M.midpoint==null||isNaN(M.midpoint)?.5:M.midpoint,v=M.alwaysRespectStubs===!0,u=null,s=null,r=M.cornerRadius!=null?M.cornerRadius:0,d=(M.loopbackRadius,function(R){return 0>R?-1:R===0?0:1}),g=function(R){return[d(R[2]-R[0]),d(R[3]-R[1])]},m=function(R,T,z,G){if(u!==T||s!==z){var U=u==null?G.sx:u,X=s==null?G.sy:s,Q=U===T?"v":"h";u=T,s=z,R.push([U,X,T,z,Q])}},b=function(R){return Math.sqrt(Math.pow(R[0]-R[2],2)+Math.pow(R[1]-R[3],2))},w=function(R){var T=[];return T.push.apply(T,R),T},k=function(R,T,z){for(var G,U,X,Q=null,oe=0;oe<T.length-1;oe++){if(Q=Q||w(T[oe]),G=w(T[oe+1]),U=g(Q),X=g(G),r>0&&Q[4]!==G[4]){var le=Math.min(b(Q),b(G)),fe=Math.min(r,le/2);Q[2]-=U[0]*fe,Q[3]-=U[1]*fe,G[0]+=X[0]*fe,G[1]+=X[1]*fe;var ye=U[1]===X[0]&&X[0]===1||U[1]===X[0]&&X[0]===0&&U[0]!==X[1]||U[1]===X[0]&&X[0]===-1,ke=G[1]>Q[3]?1:-1,Ie=G[0]>Q[2]?1:-1,ze=ke===Ie,Ye=ze&&ye||!ze&&!ye?G[0]:Q[2],xe=ze&&ye||!ze&&!ye?Q[3]:G[1];D.addSegment(R,ne,{x1:Q[0],y1:Q[1],x2:Q[2],y2:Q[3]}),D.addSegment(R,x,{r:fe,x1:Q[2],y1:Q[3],x2:G[0],y2:G[1],cx:Ye,cy:xe,ac:ye})}else{var Te=Q[2]===Q[0]?0:Q[2]>Q[0]?z.lw/2:-(z.lw/2),Ae=Q[3]===Q[1]?0:Q[3]>Q[1]?z.lw/2:-(z.lw/2);D.addSegment(R,ne,{x1:Q[0]-Te,y1:Q[1]-Ae,x2:Q[2]+Te,y2:Q[3]+Ae})}Q=G}G!=null&&D.addSegment(R,ne,{x1:G[0],y1:G[1],x2:G[2],y2:G[3]})};this.midpoint=f,this._compute=function(R,T){A=[],u=null,s=null,F=null;var z=function(){return[R.startStubX,R.startStubY,R.endStubX,R.endStubY]},G={perpendicular:z,orthogonal:z,opposite:function(Ae){var Ne=R,Re=Ae==="x"?0:1,Oe={x:function(){return Ne.so[Re]===1&&(Ne.startStubX>Ne.endStubX&&Ne.tx>Ne.startStubX||Ne.sx>Ne.endStubX&&Ne.tx>Ne.sx)||Ne.so[Re]===-1&&(Ne.startStubX<Ne.endStubX&&Ne.tx<Ne.startStubX||Ne.sx<Ne.endStubX&&Ne.tx<Ne.sx)},y:function(){return Ne.so[Re]===1&&(Ne.startStubY>Ne.endStubY&&Ne.ty>Ne.startStubY||Ne.sy>Ne.endStubY&&Ne.ty>Ne.sy)||Ne.so[Re]===-1&&(Ne.startStubY<Ne.endStubY&&Ne.ty<Ne.startStubY||Ne.sy<Ne.endStubY&&Ne.ty<Ne.sy)}};return!v&&Oe[Ae]()?{x:[(R.sx+R.tx)/2,R.startStubY,(R.sx+R.tx)/2,R.endStubY],y:[R.startStubX,(R.sy+R.ty)/2,R.endStubX,(R.sy+R.ty)/2]}[Ae]:[R.startStubX,R.startStubY,R.endStubX,R.endStubY]}},U=G[R.anchorOrientation](R.sourceAxis),X=R.sourceAxis==="x"?0:1,Q=R.sourceAxis==="x"?1:0,oe=U[X],le=U[Q],fe=U[X+2],ye=U[Q+2];m(A,U[0],U[1],R);var ke=R.startStubX+(R.endStubX-R.startStubX)*f,Ie=R.startStubY+(R.endStubY-R.startStubY)*f,ze={x:[0,1],y:[1,0]},Ye={perpendicular:function(Ae){var Ne=R,Re={x:[[[1,2,3,4],null,[2,1,4,3]],null,[[4,3,2,1],null,[3,4,1,2]]],y:[[[3,2,1,4],null,[2,3,4,1]],null,[[4,1,2,3],null,[1,4,3,2]]]},Oe={x:[[Ne.startStubX,Ne.endStubX],null,[Ne.endStubX,Ne.startStubX]],y:[[Ne.startStubY,Ne.endStubY],null,[Ne.endStubY,Ne.startStubY]]},Ve={x:[[ke,Ne.startStubY],[ke,Ne.endStubY]],y:[[Ne.startStubX,Ie],[Ne.endStubX,Ie]]},Ue={x:[[Ne.endStubX,Ne.startStubY]],y:[[Ne.startStubX,Ne.endStubY]]},Ee={x:[[Ne.startStubX,Ne.endStubY],[Ne.endStubX,Ne.endStubY]],y:[[Ne.endStubX,Ne.startStubY],[Ne.endStubX,Ne.endStubY]]},tt={x:[[Ne.startStubX,Ie],[Ne.endStubX,Ie],[Ne.endStubX,Ne.endStubY]],y:[[ke,Ne.startStubY],[ke,Ne.endStubY],[Ne.endStubX,Ne.endStubY]]},at={x:[Ne.startStubY,Ne.endStubY],y:[Ne.startStubX,Ne.endStubX]},ut=ze[Ae][0],Mt=ze[Ae][1],St=Ne.so[ut]+1,ft=Ne.to[Mt]+1,kt=Ne.to[Mt]===-1&&at[Ae][1]<at[Ae][0]||Ne.to[Mt]===1&&at[Ae][1]>at[Ae][0],Et=Oe[Ae][St][0],Yt=Oe[Ae][St][1],Tt=Re[Ae][St][ft];return Ne.segment===Tt[3]||Ne.segment===Tt[2]&&kt?Ve[Ae]:Ne.segment===Tt[2]&&Et>Yt?Ue[Ae]:Ne.segment===Tt[2]&&Yt>=Et||Ne.segment===Tt[1]&&!kt?tt[Ae]:Ne.segment===Tt[0]||Ne.segment===Tt[1]&&kt?Ee[Ae]:void 0},orthogonal:function(Ae,Ne,Re,Oe,Ve){var Ue=R,Ee={x:Ue.so[0]===-1?Math.min(Ne,Oe):Math.max(Ne,Oe),y:Ue.so[1]===-1?Math.min(Ne,Oe):Math.max(Ne,Oe)}[Ae];return{x:[[Ee,Re],[Ee,Ve],[Oe,Ve]],y:[[Re,Ee],[Ve,Ee],[Ve,Oe]]}[Ae]},opposite:function(Ae,Ne,Re,Oe){var Ve=R,Ue={x:"y",y:"x"}[Ae],Ee={x:"height",y:"width"}[Ae],tt=Ve["is"+Ae.toUpperCase()+"GreaterThanStubTimes2"];if(T.sourceEndpoint.elementId===T.targetEndpoint.elementId){var at=Re+(1-T.sourceEndpoint.anchor[Ue])*T.sourceInfo[Ee]+D.maxStub;return{x:[[Ne,at],[Oe,at]],y:[[at,Ne],[at,Oe]]}[Ae]}return!tt||Ve.so[X]===1&&Ne>Oe||Ve.so[X]===-1&&Oe>Ne?{x:[[Ne,Ie],[Oe,Ie]],y:[[ke,Ne],[ke,Oe]]}[Ae]:Ve.so[X]===1&&Oe>Ne||Ve.so[X]===-1&&Ne>Oe?{x:[[ke,Ve.sy],[ke,Ve.ty]],y:[[Ve.sx,Ie],[Ve.tx,Ie]]}[Ae]:void 0}},xe=Ye[R.anchorOrientation](R.sourceAxis,oe,le,fe,ye);if(xe)for(var Te=0;Te<xe.length;Te++)m(A,xe[Te][0],xe[Te][1],R);m(A,U[2],U[3],R),m(A,R.tx,R.ty,R),k(this,A,R)}};ee.Connectors.Flowchart=p,de.extend(ee.Connectors.Flowchart,ee.Connectors.AbstractConnector)}.call(typeof window!="undefined"?window:co),function(){"use strict";var ae=this,ee=ae.jsPlumb,de=ae.jsPlumbUtil;ee.Connectors.AbstractBezierConnector=function(x){x=x||{};var p,M=x.showLoopback!==!1,A=(x.curviness,x.margin||5),F=(x.proximityLimit,x.orientation&&x.orientation==="clockwise"),D=x.loopbackRadius||25,f=!1;return this._compute=function(v,u){var s=u.sourcePos,r=u.targetPos,d=Math.abs(s[0]-r[0]),g=Math.abs(s[1]-r[1]);if(M&&u.sourceEndpoint.elementId===u.targetEndpoint.elementId){f=!0;var m=u.sourcePos[0],b=u.sourcePos[1]-A,w=m,k=b-D,R=w-D,T=k-D;d=2*D,g=2*D,v.points[0]=R,v.points[1]=T,v.points[2]=d,v.points[3]=g,p.addSegment(this,"Arc",{loopback:!0,x1:m-R+4,y1:b-T,startAngle:0,endAngle:2*Math.PI,r:D,ac:!F,x2:m-R-4,y2:b-T,cx:w-R,cy:k-T})}else f=!1,this._computeBezier(v,u,s,r,d,g)},p=ee.Connectors.AbstractConnector.apply(this,arguments)},de.extend(ee.Connectors.AbstractBezierConnector,ee.Connectors.AbstractConnector);var ne=function(x){x=x||{},this.type="Bezier";var p=ee.Connectors.AbstractBezierConnector.apply(this,arguments),M=x.curviness||150,A=10;this.getCurviness=function(){return M},this._findControlPoint=function(F,D,f,v,u,s,r){var d=s[0]!==r[0]||s[1]===r[1],g=[];return d?(r[0]===0?g.push(f[0]<D[0]?F[0]+A:F[0]-A):g.push(F[0]+M*r[0]),r[1]===0?g.push(f[1]<D[1]?F[1]+A:F[1]-A):g.push(F[1]+M*s[1])):(s[0]===0?g.push(D[0]<f[0]?F[0]+A:F[0]-A):g.push(F[0]-M*s[0]),s[1]===0?g.push(D[1]<f[1]?F[1]+A:F[1]-A):g.push(F[1]+M*r[1])),g},this._computeBezier=function(F,D,f,v,u,s){var r,d,g=f[0]<v[0]?u:0,m=f[1]<v[1]?s:0,b=f[0]<v[0]?0:u,w=f[1]<v[1]?0:s;r=this._findControlPoint([g,m],f,v,D.sourceEndpoint,D.targetEndpoint,F.so,F.to),d=this._findControlPoint([b,w],v,f,D.targetEndpoint,D.sourceEndpoint,F.to,F.so),p.addSegment(this,"Bezier",{x1:g,y1:m,x2:b,y2:w,cp1x:r[0],cp1y:r[1],cp2x:d[0],cp2y:d[1]})}};ee.Connectors.Bezier=ne,de.extend(ne,ee.Connectors.AbstractBezierConnector)}.call(typeof window!="undefined"?window:co),function(){"use strict";var ae=this,ee=ae.jsPlumb,de=ae.jsPlumbUtil,ne=function(M,A,F,D){return F>=M&&A>=D?1:F>=M&&D>=A?2:M>=F&&D>=A?3:4},x=function(M,A,F,D,f,v,u,s,r){return r>=s?[M,A]:F===1?D[3]<=0&&f[3]>=1?[M+(D[2]<.5?-1*v:v),A]:D[2]>=1&&f[2]<=0?[M,A+(D[3]<.5?-1*u:u)]:[M+-1*v,A+-1*u]:F===2?D[3]>=1&&f[3]<=0?[M+(D[2]<.5?-1*v:v),A]:D[2]>=1&&f[2]<=0?[M,A+(D[3]<.5?-1*u:u)]:[M+v,A+-1*u]:F===3?D[3]>=1&&f[3]<=0?[M+(D[2]<.5?-1*v:v),A]:D[2]<=0&&f[2]>=1?[M,A+(D[3]<.5?-1*u:u)]:[M+-1*v,A+-1*u]:F===4?D[3]<=0&&f[3]>=1?[M+(D[2]<.5?-1*v:v),A]:D[2]<=0&&f[2]>=1?[M,A+(D[3]<.5?-1*u:u)]:[M+v,A+-1*u]:void 0},p=function(M){M=M||{},this.type="StateMachine";var A,F=ee.Connectors.AbstractBezierConnector.apply(this,arguments),D=M.curviness||10,f=M.margin||5,v=M.proximityLimit||80;M.orientation&&M.orientation,this._computeBezier=function(u,s,r,d,g,m){var b=s.sourcePos[0]<s.targetPos[0]?0:g,w=s.sourcePos[1]<s.targetPos[1]?0:m,k=s.sourcePos[0]<s.targetPos[0]?g:0,R=s.sourcePos[1]<s.targetPos[1]?m:0;s.sourcePos[2]===0&&(b-=f),s.sourcePos[2]===1&&(b+=f),s.sourcePos[3]===0&&(w-=f),s.sourcePos[3]===1&&(w+=f),s.targetPos[2]===0&&(k-=f),s.targetPos[2]===1&&(k+=f),s.targetPos[3]===0&&(R-=f),s.targetPos[3]===1&&(R+=f);var T,z,G,U,X=(b+k)/2,Q=(w+R)/2,oe=ne(b,w,k,R),le=Math.sqrt(Math.pow(k-b,2)+Math.pow(R-w,2));A=x(X,Q,oe,s.sourcePos,s.targetPos,D,D,le,v),T=A[0],z=A[0],G=A[1],U=A[1],F.addSegment(this,"Bezier",{x1:k,y1:R,x2:b,y2:w,cp1x:T,cp1y:G,cp2x:z,cp2y:U})}};ee.Connectors.StateMachine=p,de.extend(p,ee.Connectors.AbstractBezierConnector)}.call(typeof window!="undefined"?window:co),function(){"use strict";var ae=this,ee=ae.jsPlumb,de=ae.jsPlumbUtil,ne="Straight",x=function(p){this.type=ne;var M=ee.Connectors.AbstractConnector.apply(this,arguments);this._compute=function(A,F){M.addSegment(this,ne,{x1:A.sx,y1:A.sy,x2:A.startStubX,y2:A.startStubY}),M.addSegment(this,ne,{x1:A.startStubX,y1:A.startStubY,x2:A.endStubX,y2:A.endStubY}),M.addSegment(this,ne,{x1:A.endStubX,y1:A.endStubY,x2:A.tx,y2:A.ty})}};ee.Connectors.Straight=x,de.extend(x,ee.Connectors.AbstractConnector)}.call(typeof window!="undefined"?window:co),function(){"use strict";var ae=this,ee=ae.jsPlumb,de=ae.jsPlumbUtil,ne={"stroke-linejoin":"stroke-linejoin","stroke-dashoffset":"stroke-dashoffset","stroke-linecap":"stroke-linecap"},x="stroke-dasharray",p="dashstyle",M="linearGradient",A="radialGradient",F="defs",D="fill",f="stop",v="stroke",u="stroke-width",s="style",r="none",d="jsplumb_gradient_",g="strokeWidth",m={svg:"http://www.w3.org/2000/svg"},b=function(le,fe){for(var ye in fe)le.setAttribute(ye,""+fe[ye])},w=function(le,fe){return fe=fe||{},fe.version="1.1",fe.xmlns=m.svg,ee.createElementNS(m.svg,le,null,null,fe)},k=function(le){return"position:absolute;left:"+le[0]+"px;top:"+le[1]+"px"},R=function(le){for(var fe=le.querySelectorAll(" defs,linearGradient,radialGradient"),ye=0;ye<fe.length;ye++)fe[ye].parentNode.removeChild(fe[ye])},T=function(le,fe,ye,ke,Ie){var ze=d+Ie._jsPlumb.instance.idstamp();R(le);var Ye;Ye=ye.gradient.offset?w(A,{id:ze}):w(M,{id:ze,gradientUnits:"userSpaceOnUse"});var xe=w(F);le.appendChild(xe),xe.appendChild(Ye);for(var Te=0;Te<ye.gradient.stops.length;Te++){var Ae=Ie.segment===1||Ie.segment===2?Te:ye.gradient.stops.length-1-Te,Ne=ye.gradient.stops[Ae][1],Re=w(f,{offset:Math.floor(100*ye.gradient.stops[Te][0])+"%","stop-color":Ne});Ye.appendChild(Re)}var Oe=ye.stroke?v:D;fe.setAttribute(Oe,"url(#"+ze+")")},z=function(le,fe,ye,ke,Ie){if(fe.setAttribute(D,ye.fill?ye.fill:r),fe.setAttribute(v,ye.stroke?ye.stroke:r),ye.gradient?T(le,fe,ye,ke,Ie):(R(le),fe.setAttribute(s,"")),ye.strokeWidth&&fe.setAttribute(u,ye.strokeWidth),ye[p]&&ye[g]&&!ye[x]){var ze=ye[p].indexOf(",")===-1?" ":",",Ye=ye[p].split(ze),xe="";Ye.forEach(function(Ae){xe+=Math.floor(Ae*ye.strokeWidth)+ze}),fe.setAttribute(x,xe)}else ye[x]&&fe.setAttribute(x,ye[x]);for(var Te in ne)ye[Te]&&fe.setAttribute(ne[Te],ye[Te])},G=function(le,fe,ye){le.childNodes.length>ye?le.insertBefore(fe,le.childNodes[ye]):le.appendChild(fe)};de.svg={node:w,attr:b,pos:k};var U=function(le){var fe=le.pointerEventsSpec||"all",ye={};ee.jsPlumbUIComponent.apply(this,le.originalArgs),this.canvas=null,this.path=null,this.svg=null,this.bgCanvas=null;var ke=le.cssClass+" "+(le.originalArgs[0].cssClass||""),Ie={style:"",width:0,height:0,"pointer-events":fe,position:"absolute"};this.svg=w("svg",Ie),le.useDivWrapper?(this.canvas=ee.createElement("div",{position:"absolute"}),de.sizeElement(this.canvas,0,0,1,1),this.canvas.className=ke):(b(this.svg,{class:ke}),this.canvas=this.svg),le._jsPlumb.appendElement(this.canvas,le.originalArgs[0].parent),le.useDivWrapper&&this.canvas.appendChild(this.svg);var ze=[this.canvas];return this.getDisplayElements=function(){return ze},this.appendDisplayElement=function(Ye){ze.push(Ye)},this.paint=function(Ye,xe,Te){if(Ye!=null){var Ae,Ne=[this.x,this.y],Re=[this.w,this.h];Te!=null&&(Te.xmin<0&&(Ne[0]+=Te.xmin),Te.ymin<0&&(Ne[1]+=Te.ymin),Re[0]=Te.xmax+(Te.xmin<0?-Te.xmin:0),Re[1]=Te.ymax+(Te.ymin<0?-Te.ymin:0)),le.useDivWrapper?(de.sizeElement(this.canvas,Ne[0],Ne[1],Re[0]>0?Re[0]:1,Re[1]>0?Re[1]:1),Ne[0]=0,Ne[1]=0,Ae=k([0,0])):Ae=k([Ne[0],Ne[1]]),ye.paint.apply(this,arguments),b(this.svg,{style:Ae,width:Re[0]||1,height:Re[1]||1})}},{renderer:ye}};de.extend(U,ee.jsPlumbUIComponent,{cleanup:function(le){le||this.typeId==null?(this.canvas&&(this.canvas._jsPlumb=null),this.svg&&(this.svg._jsPlumb=null),this.bgCanvas&&(this.bgCanvas._jsPlumb=null),this.canvas&&this.canvas.parentNode&&this.canvas.parentNode.removeChild(this.canvas),this.bgCanvas&&this.bgCanvas.parentNode&&this.canvas.parentNode.removeChild(this.canvas),this.svg=null,this.canvas=null,this.path=null,this.group=null,this._jsPlumb=null):(this.canvas&&this.canvas.parentNode&&this.canvas.parentNode.removeChild(this.canvas),this.bgCanvas&&this.bgCanvas.parentNode&&this.bgCanvas.parentNode.removeChild(this.bgCanvas))},reattach:function(le){var fe=le.getContainer();this.canvas&&this.canvas.parentNode==null&&fe.appendChild(this.canvas),this.bgCanvas&&this.bgCanvas.parentNode==null&&fe.appendChild(this.bgCanvas)},setVisible:function(le){this.canvas&&(this.canvas.style.display=le?"block":"none")}}),ee.ConnectorRenderers.svg=function(le){var fe=this,ye=U.apply(this,[{cssClass:le._jsPlumb.connectorClass,originalArgs:arguments,pointerEventsSpec:"none",_jsPlumb:le._jsPlumb}]);ye.renderer.paint=function(ke,Ie,ze){var Ye=fe.getSegments(),xe="",Te=[0,0];if(ze.xmin<0&&(Te[0]=-ze.xmin),ze.ymin<0&&(Te[1]=-ze.ymin),Ye.length>0){xe=fe.getPathData();var Ae={d:xe,transform:"translate("+Te[0]+","+Te[1]+")","pointer-events":le["pointer-events"]||"visibleStroke"},Ne=null,Re=[fe.x,fe.y,fe.w,fe.h];if(ke.outlineStroke){var Oe=ke.outlineWidth||1,Ve=ke.strokeWidth+2*Oe;Ne=ee.extend({},ke),delete Ne.gradient,Ne.stroke=ke.outlineStroke,Ne.strokeWidth=Ve,fe.bgPath==null?(fe.bgPath=w("path",Ae),ee.addClass(fe.bgPath,ee.connectorOutlineClass),G(fe.svg,fe.bgPath,0)):b(fe.bgPath,Ae),z(fe.svg,fe.bgPath,Ne,Re,fe)}fe.path==null?(fe.path=w("path",Ae),G(fe.svg,fe.path,ke.outlineStroke?1:0)):b(fe.path,Ae),z(fe.svg,fe.path,ke,Re,fe)}}},de.extend(ee.ConnectorRenderers.svg,U);var X=ee.SvgEndpoint=function(le){var fe=U.apply(this,[{cssClass:le._jsPlumb.endpointClass,originalArgs:arguments,pointerEventsSpec:"all",useDivWrapper:!0,_jsPlumb:le._jsPlumb}]);fe.renderer.paint=function(ye){var ke=ee.extend({},ye);ke.outlineStroke&&(ke.stroke=ke.outlineStroke),this.node==null?(this.node=this.makeNode(ke),this.svg.appendChild(this.node)):this.updateNode!=null&&this.updateNode(this.node),z(this.svg,this.node,ke,[this.x,this.y,this.w,this.h],this),k(this.node,[this.x,this.y])}.bind(this)};de.extend(X,U),ee.Endpoints.svg.Dot=function(){ee.Endpoints.Dot.apply(this,arguments),X.apply(this,arguments),this.makeNode=function(le){return w("circle",{cx:this.w/2,cy:this.h/2,r:this.radius})},this.updateNode=function(le){b(le,{cx:this.w/2,cy:this.h/2,r:this.radius})}},de.extend(ee.Endpoints.svg.Dot,[ee.Endpoints.Dot,X]),ee.Endpoints.svg.Rectangle=function(){ee.Endpoints.Rectangle.apply(this,arguments),X.apply(this,arguments),this.makeNode=function(le){return w("rect",{width:this.w,height:this.h})},this.updateNode=function(le){b(le,{width:this.w,height:this.h})}},de.extend(ee.Endpoints.svg.Rectangle,[ee.Endpoints.Rectangle,X]),ee.Endpoints.svg.Image=ee.Endpoints.Image,ee.Endpoints.svg.Blank=ee.Endpoints.Blank,ee.Overlays.svg.Label=ee.Overlays.Label,ee.Overlays.svg.Custom=ee.Overlays.Custom;var Q=function(le,fe){le.apply(this,fe),ee.jsPlumbUIComponent.apply(this,fe),this.isAppendedAtTopLevel=!1,this.path=null,this.paint=function(ke,Ie){if(ke.component.svg&&Ie){this.path==null&&(this.path=w("path",{"pointer-events":"all"}),ke.component.svg.appendChild(this.path),this.elementCreated&&this.elementCreated(this.path,ke.component),this.canvas=ke.component.svg);var ze=fe&&fe.length===1&&fe[0].cssClass||"",Ye=[0,0];Ie.xmin<0&&(Ye[0]=-Ie.xmin),Ie.ymin<0&&(Ye[1]=-Ie.ymin),b(this.path,{d:ye(ke.d),class:ze,stroke:ke.stroke?ke.stroke:null,fill:ke.fill?ke.fill:null,transform:"translate("+Ye[0]+","+Ye[1]+")"})}};var ye=function(ke){return isNaN(ke.cxy.x)||isNaN(ke.cxy.y)?"":"M"+ke.hxy.x+","+ke.hxy.y+" L"+ke.tail[0].x+","+ke.tail[0].y+" L"+ke.cxy.x+","+ke.cxy.y+" L"+ke.tail[1].x+","+ke.tail[1].y+" L"+ke.hxy.x+","+ke.hxy.y};this.transfer=function(ke){ke.canvas&&this.path&&this.path.parentNode&&(this.path.parentNode.removeChild(this.path),ke.canvas.appendChild(this.path))}},oe={cleanup:function(le){this.path!=null&&(le?this._jsPlumb.instance.removeElement(this.path):this.path.parentNode&&this.path.parentNode.removeChild(this.path))},reattach:function(le,fe){this.path&&fe.canvas&&fe.canvas.appendChild(this.path)},setVisible:function(le){this.path!=null&&(this.path.style.display=le?"block":"none")}};de.extend(Q,[ee.jsPlumbUIComponent,ee.Overlays.AbstractOverlay]),ee.Overlays.svg.Arrow=function(){Q.apply(this,[ee.Overlays.Arrow,arguments])},de.extend(ee.Overlays.svg.Arrow,[ee.Overlays.Arrow,Q],oe),ee.Overlays.svg.PlainArrow=function(){Q.apply(this,[ee.Overlays.PlainArrow,arguments])},de.extend(ee.Overlays.svg.PlainArrow,[ee.Overlays.PlainArrow,Q],oe),ee.Overlays.svg.Diamond=function(){Q.apply(this,[ee.Overlays.Diamond,arguments])},de.extend(ee.Overlays.svg.Diamond,[ee.Overlays.Diamond,Q],oe),ee.Overlays.svg.GuideLines=function(){var le,fe,ye=null,ke=this;ee.Overlays.GuideLines.apply(this,arguments),this.paint=function(ze,Ye){ye==null&&(ye=w("path"),ze.connector.svg.appendChild(ye),ke.attachListeners(ye,ze.connector),ke.attachListeners(ye,ke),le=w("path"),ze.connector.svg.appendChild(le),ke.attachListeners(le,ze.connector),ke.attachListeners(le,ke),fe=w("path"),ze.connector.svg.appendChild(fe),ke.attachListeners(fe,ze.connector),ke.attachListeners(fe,ke));var xe=[0,0];Ye.xmin<0&&(xe[0]=-Ye.xmin),Ye.ymin<0&&(xe[1]=-Ye.ymin),b(ye,{d:Ie(ze.head,ze.tail),stroke:"red",fill:null,transform:"translate("+xe[0]+","+xe[1]+")"}),b(le,{d:Ie(ze.tailLine[0],ze.tailLine[1]),stroke:"blue",fill:null,transform:"translate("+xe[0]+","+xe[1]+")"}),b(fe,{d:Ie(ze.headLine[0],ze.headLine[1]),stroke:"green",fill:null,transform:"translate("+xe[0]+","+xe[1]+")"})};var Ie=function(ze,Ye){return"M "+ze.x+","+ze.y+" L"+Ye.x+","+Ye.y}},de.extend(ee.Overlays.svg.GuideLines,ee.Overlays.GuideLines)}.call(typeof window!="undefined"?window:co),function(){"use strict";var ae=this,ee=ae.jsPlumb,de=ae.jsPlumbUtil,ne=ae.Katavorio,x=ae.Biltong,p=function(T){var z=T._mottle;return z||(z=T._mottle=new ae.Mottle),z},M=function(T,z){z=z||"main";var G="_katavorio_"+z,U=T[G],X=T.getEventManager();return U||(U=new ne({bind:X.on,unbind:X.off,getSize:ee.getSize,getConstrainingRectangle:function(Q){return[Q.parentNode.scrollWidth,Q.parentNode.scrollHeight]},getPosition:function(Q,oe){var le=T.getOffset(Q,oe,Q._katavorioDrag?Q.offsetParent:null);return[le.left,le.top]},setPosition:function(Q,oe){Q.style.left=oe[0]+"px",Q.style.top=oe[1]+"px"},addClass:ee.addClass,removeClass:ee.removeClass,intersects:x.intersects,indexOf:function(Q,oe){return Q.indexOf(oe)},scope:T.getDefaultScope(),css:{noSelect:T.dragSelectClass,droppable:"jtk-droppable",draggable:"jtk-draggable",drag:"jtk-drag",selected:"jtk-drag-selected",active:"jtk-drag-active",hover:"jtk-drag-hover",ghostProxy:"jtk-ghost-proxy"}}),U.setZoom(T.getZoom()),T[G]=U,T.bind("zoom",U.setZoom)),U},A=function(T){var z=T.el._jsPlumbDragOptions,G=!0;return z.canDrag&&(G=z.canDrag()),G&&(this.setHoverSuspended(!0),this.select({source:T.el}).addClass(this.elementDraggingClass+" "+this.sourceElementDraggingClass,!0),this.select({target:T.el}).addClass(this.elementDraggingClass+" "+this.targetElementDraggingClass,!0),this.setConnectionBeingDragged(!0)),G},F=function(T){var z=this.getUIPosition(arguments,this.getZoom());if(z!=null){var G=T.el._jsPlumbDragOptions;this.draw(T.el,z,null,!0),G._dragging&&this.addClass(T.el,"jtk-dragged"),G._dragging=!0}},D=function(T){for(var z,G=T.selection,U=function(Q){var oe;Q[1]!=null&&(z=this.getUIPosition([{el:Q[2].el,pos:[Q[1].left,Q[1].top]}]),oe=this.draw(Q[2].el,z)),Q[0]._jsPlumbDragOptions!=null&&delete Q[0]._jsPlumbDragOptions._dragging,this.removeClass(Q[0],"jtk-dragged"),this.select({source:Q[2].el}).removeClass(this.elementDraggingClass+" "+this.sourceElementDraggingClass,!0),this.select({target:Q[2].el}).removeClass(this.elementDraggingClass+" "+this.targetElementDraggingClass,!0),T.e._drawResult=T.e._drawResult||{c:[],e:[],a:[]},Array.prototype.push.apply(T.e._drawResult.c,oe.c),Array.prototype.push.apply(T.e._drawResult.e,oe.e),Array.prototype.push.apply(T.e._drawResult.a,oe.a),this.getDragManager().dragEnded(Q[2].el)}.bind(this),X=0;X<G.length;X++)U(G[X]);this.setHoverSuspended(!1),this.setConnectionBeingDragged(!1)},f=function(T,z){var G=function(U){if(z[U]!=null){if(de.isString(z[U])){var X=z[U].match(/-=/)?-1:1,Q=z[U].substring(2);return T[U]+X*Q}return z[U]}return T[U]};return[G("left"),G("top")]},v=function(T,z){if(z==null)return[0,0];var G=g(z),U=d(G,0);return[U[T+"X"],U[T+"Y"]]},u=v.bind(this,"page"),s=v.bind(this,"screen"),r=v.bind(this,"client"),d=function(T,z){return T.item?T.item(z):T[z]},g=function(T){return T.touches&&T.touches.length>0?T.touches:T.changedTouches&&T.changedTouches.length>0?T.changedTouches:T.targetTouches&&T.targetTouches.length>0?T.targetTouches:[T]},m=function(T){var z={},G=[],U={},X={},Q={};this.register=function(oe){var le,fe=T.getId(oe);z[fe]||(z[fe]=oe,G.push(oe),U[fe]={});var ye=function(ke){if(ke){for(var Ie=0;Ie<ke.childNodes.length;Ie++)if(ke.childNodes[Ie].nodeType!==3&&ke.childNodes[Ie].nodeType!==8){var ze=jsPlumb.getElement(ke.childNodes[Ie]),Ye=T.getId(ke.childNodes[Ie],null,!0);if(Ye&&X[Ye]&&X[Ye]>0){le||(le=T.getOffset(oe));var xe=T.getOffset(ze);U[fe][Ye]={id:Ye,offset:{left:xe.left-le.left,top:xe.top-le.top}},Q[Ye]=fe}ye(ke.childNodes[Ie])}}};ye(oe)},this.updateOffsets=function(oe,le){if(oe!=null){le=le||{};var fe,ye=jsPlumb.getElement(oe),ke=T.getId(ye),Ie=U[ke];if(Ie){for(var ze in Ie)if(Ie.hasOwnProperty(ze)){var Ye=jsPlumb.getElement(ze),xe=le[ze]||T.getOffset(Ye);if(Ye.offsetParent==null&&U[ke][ze]!=null)continue;fe||(fe=T.getOffset(ye)),U[ke][ze]={id:ze,offset:{left:xe.left-fe.left,top:xe.top-fe.top}},Q[ze]=ke}}}},this.endpointAdded=function(oe,le){le=le||T.getId(oe);var fe=document.body,ye=oe.parentNode;for(X[le]=X[le]?X[le]+1:1;ye!=null&&ye!==fe;){var ke=T.getId(ye,null,!0);if(ke&&z[ke]){var Ie=T.getOffset(ye);if(U[ke][le]==null){var ze=T.getOffset(oe);U[ke][le]={id:le,offset:{left:ze.left-Ie.left,top:ze.top-Ie.top}},Q[le]=ke}break}ye=ye.parentNode}},this.endpointDeleted=function(oe){if(X[oe.elementId]&&(X[oe.elementId]--,X[oe.elementId]<=0))for(var le in U)U.hasOwnProperty(le)&&U[le]&&(delete U[le][oe.elementId],delete Q[oe.elementId])},this.changeId=function(oe,le){U[le]=U[oe],U[oe]={},Q[le]=Q[oe],Q[oe]=null},this.getElementsForDraggable=function(oe){return U[oe]},this.elementRemoved=function(oe){var le=Q[oe];le&&(U[le]&&delete U[le][oe],delete Q[oe])},this.reset=function(){z={},G=[],U={},X={}},this.dragEnded=function(oe){if(oe.offsetParent!=null){var le=T.getId(oe),fe=Q[le];fe&&this.updateOffsets(fe)}},this.setParent=function(oe,le,fe,ye,ke){var Ie=Q[le];U[ye]||(U[ye]={});var ze=T.getOffset(fe),Ye=ke||T.getOffset(oe);Ie&&U[Ie]&&delete U[Ie][le],U[ye][le]={id:le,offset:{left:Ye.left-ze.left,top:Ye.top-ze.top}},Q[le]=ye},this.clearParent=function(oe,le){var fe=Q[le];fe&&(delete U[fe][le],delete Q[le])},this.revalidateParent=function(oe,le,fe){var ye=Q[le];if(ye){var ke={};ke[le]=fe,this.updateOffsets(ye,ke),T.revalidate(ye)}},this.getDragAncestor=function(oe){var le=jsPlumb.getElement(oe),fe=T.getId(le),ye=Q[fe];return ye?jsPlumb.getElement(ye):null}},b=function(T,z,G){z=de.fastTrim(z),typeof T.className.baseVal!="undefined"?T.className.baseVal=z:T.className=z;try{var U=T.classList;if(U!=null){for(;U.length>0;)U.remove(U.item(0));for(var X=0;X<G.length;X++)G[X]&&U.add(G[X])}}catch(Q){de.log("JSPLUMB: cannot set class list",Q)}},w=function(T){return typeof T.className.baseVal=="undefined"?T.className:T.className.baseVal},k=function(T,z,G){z=z==null?[]:de.isArray(z)?z:z.split(/\s+/),G=G==null?[]:de.isArray(G)?G:G.split(/\s+/);var U=w(T),X=U.split(/\s+/),Q=function(oe,le){for(var fe=0;fe<le.length;fe++)if(oe)X.indexOf(le[fe])===-1&&X.push(le[fe]);else{var ye=X.indexOf(le[fe]);ye!==-1&&X.splice(ye,1)}};Q(!0,z),Q(!1,G),b(T,X.join(" "),X)};ae.jsPlumb.extend(ae.jsPlumbInstance.prototype,{headless:!1,pageLocation:u,screenLocation:s,clientLocation:r,getDragManager:function(){return this.dragManager==null&&(this.dragManager=new m(this)),this.dragManager},recalculateOffsets:function(T){this.getDragManager().updateOffsets(T)},createElement:function(T,z,G,U){return this.createElementNS(null,T,z,G,U)},createElementNS:function(T,z,G,U,X){var Q,oe=T==null?document.createElement(z):document.createElementNS(T,z);G=G||{};for(Q in G)oe.style[Q]=G[Q];U&&(oe.className=U),X=X||{};for(Q in X)oe.setAttribute(Q,""+X[Q]);return oe},getAttribute:function(T,z){return T.getAttribute!=null?T.getAttribute(z):null},setAttribute:function(T,z,G){T.setAttribute!=null&&T.setAttribute(z,G)},setAttributes:function(T,z){for(var G in z)z.hasOwnProperty(G)&&T.setAttribute(G,z[G])},appendToRoot:function(T){document.body.appendChild(T)},getRenderModes:function(){return["svg"]},getClass:w,addClass:function(T,z){jsPlumb.each(T,function(G){k(G,z)})},hasClass:function(T,z){return T=jsPlumb.getElement(T),T.classList?T.classList.contains(z):w(T).indexOf(z)!==-1},removeClass:function(T,z){jsPlumb.each(T,function(G){k(G,null,z)})},toggleClass:function(T,z){jsPlumb.hasClass(T,z)?jsPlumb.removeClass(T,z):jsPlumb.addClass(T,z)},updateClasses:function(T,z,G){jsPlumb.each(T,function(U){k(U,z,G)})},setClass:function(T,z){z!=null&&jsPlumb.each(T,function(G){b(G,z,z.split(/\s+/))})},setPosition:function(T,z){T.style.left=z.left+"px",T.style.top=z.top+"px"},getPosition:function(T){var z=function(G){var U=T.style[G];return U?U.substring(0,U.length-2):0};return{left:z("left"),top:z("top")}},getStyle:function(T,z){return typeof window.getComputedStyle!="undefined"?getComputedStyle(T,null).getPropertyValue(z):T.currentStyle[z]},getSelector:function(T,z){var G=null;return G=arguments.length===1?T.nodeType!=null?T:document.querySelectorAll(T):T.querySelectorAll(z)},getOffset:function(T,z,G){T=jsPlumb.getElement(T),G=G||this.getContainer();for(var U={left:T.offsetLeft,top:T.offsetTop},X=z||G!=null&&T!==G&&T.offsetParent!==G?T.offsetParent:null,Q=function(fe){fe!=null&&fe!==document.body&&(fe.scrollTop>0||fe.scrollLeft>0)&&(U.left-=fe.scrollLeft,U.top-=fe.scrollTop)}.bind(this);X!=null;)U.left+=X.offsetLeft,U.top+=X.offsetTop,Q(X),X=z?X.offsetParent:X.offsetParent===G?null:X.offsetParent;if(G!=null&&!z&&(G.scrollTop>0||G.scrollLeft>0)){var oe=T.offsetParent!=null?this.getStyle(T.offsetParent,"position"):"static",le=this.getStyle(T,"position");le!=="absolute"&&le!=="fixed"&&oe!=="absolute"&&oe!=="fixed"&&(U.left-=G.scrollLeft,U.top-=G.scrollTop)}return U},getPositionOnElement:function(T,z,G){var U=typeof z.getBoundingClientRect!="undefined"?z.getBoundingClientRect():{left:0,top:0,width:0,height:0},X=document.body,Q=document.documentElement,oe=window.pageYOffset||Q.scrollTop||X.scrollTop,le=window.pageXOffset||Q.scrollLeft||X.scrollLeft,fe=Q.clientTop||X.clientTop||0,ye=Q.clientLeft||X.clientLeft||0,ke=0,Ie=0,ze=U.top+oe-fe+ke*G,Ye=U.left+le-ye+Ie*G,xe=jsPlumb.pageLocation(T),Te=U.width||z.offsetWidth*G,Ae=U.height||z.offsetHeight*G,Ne=(xe[0]-Ye)/Te,Re=(xe[1]-ze)/Ae;return[Ne,Re]},getAbsolutePosition:function(T){var z=function(G){var U=T.style[G];return U?parseFloat(U.substring(0,U.length-2)):void 0};return[z("left"),z("top")]},setAbsolutePosition:function(T,z,G,U){G?this.animate(T,{left:"+="+(z[0]-G[0]),top:"+="+(z[1]-G[1])},U):(T.style.left=z[0]+"px",T.style.top=z[1]+"px")},getSize:function(T){return[T.offsetWidth,T.offsetHeight]},getWidth:function(T){return T.offsetWidth},getHeight:function(T){return T.offsetHeight},getRenderMode:function(){return"svg"},draggable:function(T,z){var G;return T=de.isArray(T)||T.length!=null&&!de.isString(T)?T:[T],Array.prototype.slice.call(T).forEach(function(U){G=this.info(U),G.el&&this._initDraggableIfNecessary(G.el,!0,z,G.id,!0)}.bind(this)),this},snapToGrid:function(T,z,G){var U=[],X=function(le){var fe=this.info(le);if(fe.el!=null&&fe.el._katavorioDrag){var ye=fe.el._katavorioDrag.snap(z,G);this.revalidate(fe.el),U.push([fe.el,ye])}}.bind(this);if(arguments.length===1||arguments.length===3)X(T,z,G);else{var Q=this.getManagedElements();for(var oe in Q)X(oe,arguments[0],arguments[1])}return U},initDraggable:function(T,z,G){M(this,G).draggable(T,z),T._jsPlumbDragOptions=z},destroyDraggable:function(T,z){M(this,z).destroyDraggable(T),T._jsPlumbDragOptions=null,T._jsPlumbRelatedElement=null},unbindDraggable:function(T,z,G,U){M(this,U).destroyDraggable(T,z,G)},setDraggable:function(T,z){return jsPlumb.each(T,function(G){this.isDragSupported(G)&&(this._draggableStates[this.getAttribute(G,"id")]=z,this.setElementDraggable(G,z))}.bind(this))},_draggableStates:{},toggleDraggable:function(T){var z;return jsPlumb.each(T,function(G){var U=this.getAttribute(G,"id");return z=this._draggableStates[U]==null?!1:this._draggableStates[U],z=!z,this._draggableStates[U]=z,this.setDraggable(G,z),z}.bind(this)),z},_initDraggableIfNecessary:function(T,z,G,U,X){if(!jsPlumb.headless){var Q=z==null?!1:z;if(Q&&jsPlumb.isDragSupported(T,this)){var oe=G||this.Defaults.DragOptions;if(oe=jsPlumb.extend({},oe),jsPlumb.isAlreadyDraggable(T,this))G.force&&this.initDraggable(T,oe);else{var le=jsPlumb.dragEvents.drag,fe=jsPlumb.dragEvents.stop,ye=jsPlumb.dragEvents.start;this.manage(U,T),oe[ye]=de.wrap(oe[ye],A.bind(this)),oe[le]=de.wrap(oe[le],F.bind(this)),oe[fe]=de.wrap(oe[fe],D.bind(this));var ke=this.getId(T);this._draggableStates[ke]=!0;var Ie=this._draggableStates[ke];oe.disabled=Ie==null?!1:!Ie,this.initDraggable(T,oe),this.getDragManager().register(T),X&&this.fire("elementDraggable",{el:T,options:oe})}}}},animationSupported:!0,getElement:function(T){return T==null?null:(T=typeof T=="string"?T:T.tagName==null&&T.length!=null&&T.enctype==null?T[0]:T,typeof T=="string"?document.getElementById(T):T)},removeElement:function(T){M(this).elementRemoved(T),this.getEventManager().remove(T)},doAnimate:function(T,z,G){G=G||{};var U=this.getOffset(T),X=f(U,z),Q=X[0]-U.left,oe=X[1]-U.top,le=G.duration||250,fe=15,ye=le/fe,ke=fe/le*Q,Ie=fe/le*oe,ze=0,Ye=setInterval(function(){ee.setPosition(T,{left:U.left+ke*(ze+1),top:U.top+Ie*(ze+1)}),G.step!=null&&G.step(ze,Math.ceil(ye)),ze++,ze>=ye&&(window.clearInterval(Ye),G.complete!=null&&G.complete())},fe)},destroyDroppable:function(T,z){M(this,z).destroyDroppable(T)},unbindDroppable:function(T,z,G,U){M(this,U).destroyDroppable(T,z,G)},droppable:function(T,z){T=de.isArray(T)||T.length!=null&&!de.isString(T)?T:[T];var G;return z=z||{},z.allowLoopback=!1,Array.prototype.slice.call(T).forEach(function(U){G=this.info(U),G.el&&this.initDroppable(G.el,z)}.bind(this)),this},initDroppable:function(T,z,G){M(this,G).droppable(T,z)},isAlreadyDraggable:function(T){return T._katavorioDrag!=null},isDragSupported:function(T,z){return!0},isDropSupported:function(T,z){return!0},isElementDraggable:function(T){return T=ee.getElement(T),T._katavorioDrag&&T._katavorioDrag.isEnabled()},getDragObject:function(T){return T[0].drag.getDragElement()},getDragScope:function(T){return T._katavorioDrag&&T._katavorioDrag.scopes.join(" ")||""},getDropEvent:function(T){return T[0].e},getUIPosition:function(T,z){var G=T[0].el;if(G.offsetParent==null)return null;var U=T[0].finalPos||T[0].pos,X={left:U[0],top:U[1]};if(G._katavorioDrag&&G.offsetParent!==this.getContainer()){var Q=this.getOffset(G.offsetParent);X.left+=Q.left,X.top+=Q.top}return X},setDragFilter:function(T,z,G){T._katavorioDrag&&T._katavorioDrag.setFilter(z,G)},setElementDraggable:function(T,z){T=ee.getElement(T),T._katavorioDrag&&T._katavorioDrag.setEnabled(z)},setDragScope:function(T,z){T._katavorioDrag&&T._katavorioDrag.k.setDragScope(T,z)},setDropScope:function(T,z){T._katavorioDrop&&T._katavorioDrop.length>0&&T._katavorioDrop[0].k.setDropScope(T,z)},addToPosse:function(T,z){var G=Array.prototype.slice.call(arguments,1),U=M(this);ee.each(T,function(X){X=[ee.getElement(X)],X.push.apply(X,G),U.addToPosse.apply(U,X)})},setPosse:function(T,z){var G=Array.prototype.slice.call(arguments,1),U=M(this);ee.each(T,function(X){X=[ee.getElement(X)],X.push.apply(X,G),U.setPosse.apply(U,X)})},removeFromPosse:function(T,z){var G=Array.prototype.slice.call(arguments,1),U=M(this);ee.each(T,function(X){X=[ee.getElement(X)],X.push.apply(X,G),U.removeFromPosse.apply(U,X)})},removeFromAllPosses:function(T){var z=M(this);ee.each(T,function(G){z.removeFromAllPosses(ee.getElement(G))})},setPosseState:function(T,z,G){var U=M(this);ee.each(T,function(X){U.setPosseState(ee.getElement(X),z,G)})},dragEvents:{start:"start",stop:"stop",drag:"drag",step:"step",over:"over",out:"out",drop:"drop",complete:"complete",beforeStart:"beforeStart"},animEvents:{step:"step",complete:"complete"},stopDrag:function(T){T._katavorioDrag&&T._katavorioDrag.abort()},addToDragSelection:function(T){var z=this.getElement(T);z==null||!z._isJsPlumbGroup&&z._jsPlumbGroup!=null||M(this).select(T)},removeFromDragSelection:function(T){M(this).deselect(T)},getDragSelection:function(){return M(this).getSelection()},clearDragSelection:function(){M(this).deselectAll()},trigger:function(T,z,G,U){this.getEventManager().trigger(T,z,G,U)},doReset:function(){for(var T in this)T.indexOf("_katavorio_")===0&&this[T].reset()},getEventManager:function(){return p(this)},on:function(T,z,G){return this.getEventManager().on.apply(this,arguments),this},off:function(T,z,G){return this.getEventManager().off.apply(this,arguments),this}});var R=function(T){var z=function(){/complete|loaded|interactive/.test(document.readyState)&&typeof document.body!="undefined"&&document.body!=null?T():setTimeout(z,9)};z()};R(ee.init)}.call(typeof window!="undefined"?window:co)});(function(){var ae=ee();function ee(){if(typeof window.CustomEvent=="function")return window.CustomEvent;function x(p,M){M=M||{bubbles:!1,cancelable:!1,detail:void 0};var A=document.createEvent("CustomEvent");return A.initCustomEvent(p,M.bubbles,M.cancelable,M.detail),A}return x.prototype=window.Event.prototype,x}function de(x,p){var M=document.createElement("input");return M.type="hidden",M.name=x,M.value=p,M}function ne(x,p){var M=x.getAttribute("data-to"),A=de("_method",x.getAttribute("data-method")),F=de("_csrf_token",x.getAttribute("data-csrf")),D=document.createElement("form"),f=document.createElement("input"),v=x.getAttribute("target");D.method=x.getAttribute("data-method")==="get"?"get":"post",D.action=M,D.style.display="none",v?D.target=v:p&&(D.target="_blank"),D.appendChild(F),D.appendChild(A),document.body.appendChild(D),f.type="submit",D.appendChild(f),f.click()}window.addEventListener("click",function(x){var p=x.target;if(!x.defaultPrevented)for(;p&&p.getAttribute;){var M=new ae("phoenix.link.click",{bubbles:!0,cancelable:!0});if(!p.dispatchEvent(M))return x.preventDefault(),x.stopImmediatePropagation(),!1;if(p.getAttribute("data-method")&&p.getAttribute("data-to"))return ne(p,x.metaKey||x.shiftKey),x.preventDefault(),!1;p=p.parentNode}},!1),window.addEventListener("phoenix.link.click",function(x){var p=x.target.getAttribute("data-confirm");p&&!window.confirm(p)&&x.preventDefault()},!1)})();var fO=ae=>typeof ae=="function"?ae:function(){return ae},gwe=typeof self!="undefined"?self:null,mO=typeof window!="undefined"?window:null,tI=gwe||mO||tI,pwe="2.0.0",GC={connecting:0,open:1,closing:2,closed:3},mwe=1e4,fwe=1e3,ym={closed:"closed",errored:"errored",joined:"joined",joining:"joining",leaving:"leaving"},Kw={close:"phx_close",error:"phx_error",join:"phx_join",reply:"phx_reply",leave:"phx_leave"},Pj={longpoll:"longpoll",websocket:"websocket"},vwe={complete:4},dz=class{constructor(ae,ee,de,ne){this.channel=ae,this.event=ee,this.payload=de||function(){return{}},this.receivedResp=null,this.timeout=ne,this.timeoutTimer=null,this.recHooks=[],this.sent=!1}resend(ae){this.timeout=ae,this.reset(),this.send()}send(){this.hasReceived("timeout")||(this.startTimeout(),this.sent=!0,this.channel.socket.push({topic:this.channel.topic,event:this.event,payload:this.payload(),ref:this.ref,join_ref:this.channel.joinRef()}))}receive(ae,ee){return this.hasReceived(ae)&&ee(this.receivedResp.response),this.recHooks.push({status:ae,callback:ee}),this}reset(){this.cancelRefEvent(),this.ref=null,this.refEvent=null,this.receivedResp=null,this.sent=!1}matchReceive({status:ae,response:ee,_ref:de}){this.recHooks.filter(ne=>ne.status===ae).forEach(ne=>ne.callback(ee))}cancelRefEvent(){this.refEvent&&this.channel.off(this.refEvent)}cancelTimeout(){clearTimeout(this.timeoutTimer),this.timeoutTimer=null}startTimeout(){this.timeoutTimer&&this.cancelTimeout(),this.ref=this.channel.socket.makeRef(),this.refEvent=this.channel.replyEventName(this.ref),this.channel.on(this.refEvent,ae=>{this.cancelRefEvent(),this.cancelTimeout(),this.receivedResp=ae,this.matchReceive(ae)}),this.timeoutTimer=setTimeout(()=>{this.trigger("timeout",{})},this.timeout)}hasReceived(ae){return this.receivedResp&&this.receivedResp.status===ae}trigger(ae,ee){this.channel.trigger(this.refEvent,{status:ae,response:ee})}},aX=class{constructor(ae,ee){this.callback=ae,this.timerCalc=ee,this.timer=null,this.tries=0}reset(){this.tries=0,clearTimeout(this.timer)}scheduleTimeout(){clearTimeout(this.timer),this.timer=setTimeout(()=>{this.tries=this.tries+1,this.callback()},this.timerCalc(this.tries+1))}},ywe=class{constructor(ae,ee,de){this.state=ym.closed,this.topic=ae,this.params=fO(ee||{}),this.socket=de,this.bindings=[],this.bindingRef=0,this.timeout=this.socket.timeout,this.joinedOnce=!1,this.joinPush=new dz(this,Kw.join,this.params,this.timeout),this.pushBuffer=[],this.stateChangeRefs=[],this.rejoinTimer=new aX(()=>{this.socket.isConnected()&&this.rejoin()},this.socket.rejoinAfterMs),this.stateChangeRefs.push(this.socket.onError(()=>this.rejoinTimer.reset())),this.stateChangeRefs.push(this.socket.onOpen(()=>{this.rejoinTimer.reset(),this.isErrored()&&this.rejoin()})),this.joinPush.receive("ok",()=>{this.state=ym.joined,this.rejoinTimer.reset(),this.pushBuffer.forEach(ne=>ne.send()),this.pushBuffer=[]}),this.joinPush.receive("error",()=>{this.state=ym.errored,this.socket.isConnected()&&this.rejoinTimer.scheduleTimeout()}),this.onClose(()=>{this.rejoinTimer.reset(),this.socket.hasLogger()&&this.socket.log("channel",`close ${this.topic} ${this.joinRef()}`),this.state=ym.closed,this.socket.remove(this)}),this.onError(ne=>{this.socket.hasLogger()&&this.socket.log("channel",`error ${this.topic}`,ne),this.isJoining()&&this.joinPush.reset(),this.state=ym.errored,this.socket.isConnected()&&this.rejoinTimer.scheduleTimeout()}),this.joinPush.receive("timeout",()=>{this.socket.hasLogger()&&this.socket.log("channel",`timeout ${this.topic} (${this.joinRef()})`,this.joinPush.timeout),new dz(this,Kw.leave,fO({}),this.timeout).send(),this.state=ym.errored,this.joinPush.reset(),this.socket.isConnected()&&this.rejoinTimer.scheduleTimeout()}),this.on(Kw.reply,(ne,x)=>{this.trigger(this.replyEventName(x),ne)})}join(ae=this.timeout){if(this.joinedOnce)throw new Error("tried to join multiple times. 'join' can only be called a single time per channel instance");return this.timeout=ae,this.joinedOnce=!0,this.rejoin(),this.joinPush}onClose(ae){this.on(Kw.close,ae)}onError(ae){return this.on(Kw.error,ee=>ae(ee))}on(ae,ee){let de=this.bindingRef++;return this.bindings.push({event:ae,ref:de,callback:ee}),de}off(ae,ee){this.bindings=this.bindings.filter(de=>!(de.event===ae&&(typeof ee=="undefined"||ee===de.ref)))}canPush(){return this.socket.isConnected()&&this.isJoined()}push(ae,ee,de=this.timeout){if(ee=ee||{},!this.joinedOnce)throw new Error(`tried to push '${ae}' to '${this.topic}' before joining. Use channel.join() before pushing events`);let ne=new dz(this,ae,function(){return ee},de);return this.canPush()?ne.send():(ne.startTimeout(),this.pushBuffer.push(ne)),ne}leave(ae=this.timeout){this.rejoinTimer.reset(),this.joinPush.cancelTimeout(),this.state=ym.leaving;let ee=()=>{this.socket.hasLogger()&&this.socket.log("channel",`leave ${this.topic}`),this.trigger(Kw.close,"leave")},de=new dz(this,Kw.leave,fO({}),ae);return de.receive("ok",()=>ee()).receive("timeout",()=>ee()),de.send(),this.canPush()||de.trigger("ok",{}),de}onMessage(ae,ee,de){return ee}isMember(ae,ee,de,ne){return this.topic!==ae?!1:ne&&ne!==this.joinRef()?(this.socket.hasLogger()&&this.socket.log("channel","dropping outdated message",{topic:ae,event:ee,payload:de,joinRef:ne}),!1):!0}joinRef(){return this.joinPush.ref}rejoin(ae=this.timeout){this.isLeaving()||(this.socket.leaveOpenTopic(this.topic),this.state=ym.joining,this.joinPush.resend(ae))}trigger(ae,ee,de,ne){let x=this.onMessage(ae,ee,de,ne);if(ee&&!x)throw new Error("channel onMessage callbacks must return the payload, modified or unmodified");let p=this.bindings.filter(M=>M.event===ae);for(let M=0;M<p.length;M++)p[M].callback(x,de,ne||this.joinRef())}replyEventName(ae){return`chan_reply_${ae}`}isClosed(){return this.state===ym.closed}isErrored(){return this.state===ym.errored}isJoined(){return this.state===ym.joined}isJoining(){return this.state===ym.joining}isLeaving(){return this.state===ym.leaving}},hz=class{static request(ae,ee,de,ne,x,p,M){if(tI.XDomainRequest){let A=new tI.XDomainRequest;return this.xdomainRequest(A,ae,ee,ne,x,p,M)}else{let A=new tI.XMLHttpRequest;return this.xhrRequest(A,ae,ee,de,ne,x,p,M)}}static xdomainRequest(ae,ee,de,ne,x,p,M){return ae.timeout=x,ae.open(ee,de),ae.onload=()=>{let A=this.parseJSON(ae.responseText);M&&M(A)},p&&(ae.ontimeout=p),ae.onprogress=()=>{},ae.send(ne),ae}static xhrRequest(ae,ee,de,ne,x,p,M,A){return ae.open(ee,de,!0),ae.timeout=p,ae.setRequestHeader("Content-Type",ne),ae.onerror=()=>A&&A(null),ae.onreadystatechange=()=>{if(ae.readyState===vwe.complete&&A){let F=this.parseJSON(ae.responseText);A(F)}},M&&(ae.ontimeout=M),ae.send(x),ae}static parseJSON(ae){if(!ae||ae==="")return null;try{return JSON.parse(ae)}catch(ee){return console&&console.log("failed to parse JSON response",ae),null}}static serialize(ae,ee){let de=[];for(var ne in ae){if(!Object.prototype.hasOwnProperty.call(ae,ne))continue;let x=ee?`${ee}[${ne}]`:ne,p=ae[ne];typeof p=="object"?de.push(this.serialize(p,x)):de.push(encodeURIComponent(x)+"="+encodeURIComponent(p))}return de.join("&")}static appendParams(ae,ee){if(Object.keys(ee).length===0)return ae;let de=ae.match(/\?/)?"&":"?";return`${ae}${de}${this.serialize(ee)}`}},bwe=ae=>{let ee="",de=new Uint8Array(ae),ne=de.byteLength;for(let x=0;x<ne;x++)ee+=String.fromCharCode(de[x]);return btoa(ee)},pO=class{constructor(ae){this.endPoint=null,this.token=null,this.skipHeartbeat=!0,this.reqs=new Set,this.awaitingBatchAck=!1,this.currentBatch=null,this.currentBatchTimer=null,this.batchBuffer=[],this.onopen=function(){},this.onerror=function(){},this.onmessage=function(){},this.onclose=function(){},this.pollEndpoint=this.normalizeEndpoint(ae),this.readyState=GC.connecting,setTimeout(()=>this.poll(),0)}normalizeEndpoint(ae){return ae.replace("ws://","http://").replace("wss://","https://").replace(new RegExp("(.*)/"+Pj.websocket),"$1/"+Pj.longpoll)}endpointURL(){return hz.appendParams(this.pollEndpoint,{token:this.token})}closeAndRetry(ae,ee,de){this.close(ae,ee,de),this.readyState=GC.connecting}ontimeout(){this.onerror("timeout"),this.closeAndRetry(1005,"timeout",!1)}isActive(){return this.readyState===GC.open||this.readyState===GC.connecting}poll(){this.ajax("GET","application/json",null,()=>this.ontimeout(),ae=>{if(ae){var{status:ee,token:de,messages:ne}=ae;this.token=de}else ee=0;switch(ee){case 200:ne.forEach(x=>{setTimeout(()=>this.onmessage({data:x}),0)}),this.poll();break;case 204:this.poll();break;case 410:this.readyState=GC.open,this.onopen({}),this.poll();break;case 403:this.onerror(403),this.close(1008,"forbidden",!1);break;case 0:case 500:this.onerror(500),this.closeAndRetry(1011,"internal server error",500);break;default:throw new Error(`unhandled poll status ${ee}`)}})}send(ae){typeof ae!="string"&&(ae=bwe(ae)),this.currentBatch?this.currentBatch.push(ae):this.awaitingBatchAck?this.batchBuffer.push(ae):(this.currentBatch=[ae],this.currentBatchTimer=setTimeout(()=>{this.batchSend(this.currentBatch),this.currentBatch=null},0))}batchSend(ae){this.awaitingBatchAck=!0,this.ajax("POST","application/x-ndjson",ae.join(`
`),()=>this.onerror("timeout"),ee=>{this.awaitingBatchAck=!1,!ee||ee.status!==200?(this.onerror(ee&&ee.status),this.closeAndRetry(1011,"internal server error",!1)):this.batchBuffer.length>0&&(this.batchSend(this.batchBuffer),this.batchBuffer=[])})}close(ae,ee,de){for(let x of this.reqs)x.abort();this.readyState=GC.closed;let ne=Object.assign({code:1e3,reason:void 0,wasClean:!0},{code:ae,reason:ee,wasClean:de});this.batchBuffer=[],clearTimeout(this.currentBatchTimer),this.currentBatchTimer=null,typeof CloseEvent!="undefined"?this.onclose(new CloseEvent("close",ne)):this.onclose(ne)}ajax(ae,ee,de,ne,x){let p,M=()=>{this.reqs.delete(p),ne()};p=hz.request(ae,this.endpointURL(),ee,de,this.timeout,M,A=>{this.reqs.delete(p),this.isActive()&&x(A)}),this.reqs.add(p)}};var uz={HEADER_LENGTH:1,META_LENGTH:4,KINDS:{push:0,reply:1,broadcast:2},encode(ae,ee){if(ae.payload.constructor===ArrayBuffer)return ee(this.binaryEncode(ae));{let de=[ae.join_ref,ae.ref,ae.topic,ae.event,ae.payload];return ee(JSON.stringify(de))}},decode(ae,ee){if(ae.constructor===ArrayBuffer)return ee(this.binaryDecode(ae));{let[de,ne,x,p,M]=JSON.parse(ae);return ee({join_ref:de,ref:ne,topic:x,event:p,payload:M})}},binaryEncode(ae){let{join_ref:ee,ref:de,event:ne,topic:x,payload:p}=ae,M=this.META_LENGTH+ee.length+de.length+x.length+ne.length,A=new ArrayBuffer(this.HEADER_LENGTH+M),F=new DataView(A),D=0;F.setUint8(D++,this.KINDS.push),F.setUint8(D++,ee.length),F.setUint8(D++,de.length),F.setUint8(D++,x.length),F.setUint8(D++,ne.length),Array.from(ee,v=>F.setUint8(D++,v.charCodeAt(0))),Array.from(de,v=>F.setUint8(D++,v.charCodeAt(0))),Array.from(x,v=>F.setUint8(D++,v.charCodeAt(0))),Array.from(ne,v=>F.setUint8(D++,v.charCodeAt(0)));var f=new Uint8Array(A.byteLength+p.byteLength);return f.set(new Uint8Array(A),0),f.set(new Uint8Array(p),A.byteLength),f.buffer},binaryDecode(ae){let ee=new DataView(ae),de=ee.getUint8(0),ne=new TextDecoder;switch(de){case this.KINDS.push:return this.decodePush(ae,ee,ne);case this.KINDS.reply:return this.decodeReply(ae,ee,ne);case this.KINDS.broadcast:return this.decodeBroadcast(ae,ee,ne)}},decodePush(ae,ee,de){let ne=ee.getUint8(1),x=ee.getUint8(2),p=ee.getUint8(3),M=this.HEADER_LENGTH+this.META_LENGTH-1,A=de.decode(ae.slice(M,M+ne));M=M+ne;let F=de.decode(ae.slice(M,M+x));M=M+x;let D=de.decode(ae.slice(M,M+p));M=M+p;let f=ae.slice(M,ae.byteLength);return{join_ref:A,ref:null,topic:F,event:D,payload:f}},decodeReply(ae,ee,de){let ne=ee.getUint8(1),x=ee.getUint8(2),p=ee.getUint8(3),M=ee.getUint8(4),A=this.HEADER_LENGTH+this.META_LENGTH,F=de.decode(ae.slice(A,A+ne));A=A+ne;let D=de.decode(ae.slice(A,A+x));A=A+x;let f=de.decode(ae.slice(A,A+p));A=A+p;let v=de.decode(ae.slice(A,A+M));A=A+M;let u=ae.slice(A,ae.byteLength),s={status:v,response:u};return{join_ref:F,ref:D,topic:f,event:Kw.reply,payload:s}},decodeBroadcast(ae,ee,de){let ne=ee.getUint8(1),x=ee.getUint8(2),p=this.HEADER_LENGTH+2,M=de.decode(ae.slice(p,p+ne));p=p+ne;let A=de.decode(ae.slice(p,p+x));p=p+x;let F=ae.slice(p,ae.byteLength);return{join_ref:null,ref:null,topic:M,event:A,payload:F}}},oX=class{constructor(ae,ee={}){this.stateChangeCallbacks={open:[],close:[],error:[],message:[]},this.channels=[],this.sendBuffer=[],this.ref=0,this.timeout=ee.timeout||mwe,this.transport=ee.transport||tI.WebSocket||pO,this.primaryPassedHealthCheck=!1,this.longPollFallbackMs=ee.longPollFallbackMs,this.fallbackTimer=null,this.sessionStore=ee.sessionStorage||tI&&tI.sessionStorage,this.establishedConnections=0,this.defaultEncoder=uz.encode.bind(uz),this.defaultDecoder=uz.decode.bind(uz),this.closeWasClean=!1,this.binaryType=ee.binaryType||"arraybuffer",this.connectClock=1,this.transport!==pO?(this.encode=ee.encode||this.defaultEncoder,this.decode=ee.decode||this.defaultDecoder):(this.encode=this.defaultEncoder,this.decode=this.defaultDecoder);let de=null;mO&&mO.addEventListener&&(mO.addEventListener("pagehide",ne=>{this.conn&&(this.disconnect(),de=this.connectClock)}),mO.addEventListener("pageshow",ne=>{de===this.connectClock&&(de=null,this.connect())})),this.heartbeatIntervalMs=ee.heartbeatIntervalMs||3e4,this.rejoinAfterMs=ne=>ee.rejoinAfterMs?ee.rejoinAfterMs(ne):[1e3,2e3,5e3][ne-1]||1e4,this.reconnectAfterMs=ne=>ee.reconnectAfterMs?ee.reconnectAfterMs(ne):[10,50,100,150,200,250,500,1e3,2e3][ne-1]||5e3,this.logger=ee.logger||null,!this.logger&&ee.debug&&(this.logger=(ne,x,p)=>{console.log(`${ne}: ${x}`,p)}),this.longpollerTimeout=ee.longpollerTimeout||2e4,this.params=fO(ee.params||{}),this.endPoint=`${ae}/${Pj.websocket}`,this.vsn=ee.vsn||pwe,this.heartbeatTimeoutTimer=null,this.heartbeatTimer=null,this.pendingHeartbeatRef=null,this.reconnectTimer=new aX(()=>{this.teardown(()=>this.connect())},this.reconnectAfterMs)}getLongPollTransport(){return pO}replaceTransport(ae){this.connectClock++,this.closeWasClean=!0,clearTimeout(this.fallbackTimer),this.reconnectTimer.reset(),this.conn&&(this.conn.close(),this.conn=null),this.transport=ae}protocol(){return location.protocol.match(/^https/)?"wss":"ws"}endPointURL(){let ae=hz.appendParams(hz.appendParams(this.endPoint,this.params()),{vsn:this.vsn});return ae.charAt(0)!=="/"?ae:ae.charAt(1)==="/"?`${this.protocol()}:${ae}`:`${this.protocol()}://${location.host}${ae}`}disconnect(ae,ee,de){this.connectClock++,this.closeWasClean=!0,clearTimeout(this.fallbackTimer),this.reconnectTimer.reset(),this.teardown(ae,ee,de)}connect(ae){ae&&(console&&console.log("passing params to connect is deprecated. Instead pass :params to the Socket constructor"),this.params=fO(ae)),!this.conn&&(this.longPollFallbackMs&&this.transport!==pO?this.connectWithFallback(pO,this.longPollFallbackMs):this.transportConnect())}log(ae,ee,de){this.logger&&this.logger(ae,ee,de)}hasLogger(){return this.logger!==null}onOpen(ae){let ee=this.makeRef();return this.stateChangeCallbacks.open.push([ee,ae]),ee}onClose(ae){let ee=this.makeRef();return this.stateChangeCallbacks.close.push([ee,ae]),ee}onError(ae){let ee=this.makeRef();return this.stateChangeCallbacks.error.push([ee,ae]),ee}onMessage(ae){let ee=this.makeRef();return this.stateChangeCallbacks.message.push([ee,ae]),ee}ping(ae){if(!this.isConnected())return!1;let ee=this.makeRef(),de=Date.now();this.push({topic:"phoenix",event:"heartbeat",payload:{},ref:ee});let ne=this.onMessage(x=>{x.ref===ee&&(this.off([ne]),ae(Date.now()-de))});return!0}transportConnect(){this.connectClock++,this.closeWasClean=!1,this.conn=new this.transport(this.endPointURL()),this.conn.binaryType=this.binaryType,this.conn.timeout=this.longpollerTimeout,this.conn.onopen=()=>this.onConnOpen(),this.conn.onerror=ae=>this.onConnError(ae),this.conn.onmessage=ae=>this.onConnMessage(ae),this.conn.onclose=ae=>this.onConnClose(ae)}getSession(ae){return this.sessionStore&&this.sessionStore.getItem(ae)}storeSession(ae,ee){this.sessionStore&&this.sessionStore.setItem(ae,ee)}connectWithFallback(ae,ee=2500){clearTimeout(this.fallbackTimer);let de=!1,ne=!0,x,p,M=A=>{this.log("transport",`falling back to ${ae.name}...`,A),this.off([x,p]),ne=!1,this.replaceTransport(ae),this.transportConnect()};if(this.getSession(`phx:fallback:${ae.name}`))return M("memorized");this.fallbackTimer=setTimeout(M,ee),p=this.onError(A=>{this.log("transport","error",A),ne&&!de&&(clearTimeout(this.fallbackTimer),M(A))}),this.onOpen(()=>{if(de=!0,!ne)return this.primaryPassedHealthCheck||this.storeSession(`phx:fallback:${ae.name}`,"true"),this.log("transport",`established ${ae.name} fallback`);clearTimeout(this.fallbackTimer),this.fallbackTimer=setTimeout(M,ee),this.ping(A=>{this.log("transport","connected to primary after",A),this.primaryPassedHealthCheck=!0,clearTimeout(this.fallbackTimer)})}),this.transportConnect()}clearHeartbeats(){clearTimeout(this.heartbeatTimer),clearTimeout(this.heartbeatTimeoutTimer)}onConnOpen(){this.hasLogger()&&this.log("transport",`${this.transport.name} connected to ${this.endPointURL()}`),this.closeWasClean=!1,this.establishedConnections++,this.flushSendBuffer(),this.reconnectTimer.reset(),this.resetHeartbeat(),this.stateChangeCallbacks.open.forEach(([,ae])=>ae())}heartbeatTimeout(){this.pendingHeartbeatRef&&(this.pendingHeartbeatRef=null,this.hasLogger()&&this.log("transport","heartbeat timeout. Attempting to re-establish connection"),this.triggerChanError(),this.closeWasClean=!1,this.teardown(()=>this.reconnectTimer.scheduleTimeout(),fwe,"heartbeat timeout"))}resetHeartbeat(){this.conn&&this.conn.skipHeartbeat||(this.pendingHeartbeatRef=null,this.clearHeartbeats(),this.heartbeatTimer=setTimeout(()=>this.sendHeartbeat(),this.heartbeatIntervalMs))}teardown(ae,ee,de){if(!this.conn)return ae&&ae();this.waitForBufferDone(()=>{this.conn&&(ee?this.conn.close(ee,de||""):this.conn.close()),this.waitForSocketClosed(()=>{this.conn&&(this.conn.onopen=function(){},this.conn.onerror=function(){},this.conn.onmessage=function(){},this.conn.onclose=function(){},this.conn=null),ae&&ae()})})}waitForBufferDone(ae,ee=1){if(ee===5||!this.conn||!this.conn.bufferedAmount){ae();return}setTimeout(()=>{this.waitForBufferDone(ae,ee+1)},150*ee)}waitForSocketClosed(ae,ee=1){if(ee===5||!this.conn||this.conn.readyState===GC.closed){ae();return}setTimeout(()=>{this.waitForSocketClosed(ae,ee+1)},150*ee)}onConnClose(ae){let ee=ae&&ae.code;this.hasLogger()&&this.log("transport","close",ae),this.triggerChanError(),this.clearHeartbeats(),!this.closeWasClean&&ee!==1e3&&this.reconnectTimer.scheduleTimeout(),this.stateChangeCallbacks.close.forEach(([,de])=>de(ae))}onConnError(ae){this.hasLogger()&&this.log("transport",ae);let ee=this.transport,de=this.establishedConnections;this.stateChangeCallbacks.error.forEach(([,ne])=>{ne(ae,ee,de)}),(ee===this.transport||de>0)&&this.triggerChanError()}triggerChanError(){this.channels.forEach(ae=>{ae.isErrored()||ae.isLeaving()||ae.isClosed()||ae.trigger(Kw.error)})}connectionState(){switch(this.conn&&this.conn.readyState){case GC.connecting:return"connecting";case GC.open:return"open";case GC.closing:return"closing";default:return"closed"}}isConnected(){return this.connectionState()==="open"}remove(ae){this.off(ae.stateChangeRefs),this.channels=this.channels.filter(ee=>ee!==ae)}off(ae){for(let ee in this.stateChangeCallbacks)this.stateChangeCallbacks[ee]=this.stateChangeCallbacks[ee].filter(([de])=>ae.indexOf(de)===-1)}channel(ae,ee={}){let de=new ywe(ae,ee,this);return this.channels.push(de),de}push(ae){if(this.hasLogger()){let{topic:ee,event:de,payload:ne,ref:x,join_ref:p}=ae;this.log("push",`${ee} ${de} (${p}, ${x})`,ne)}this.isConnected()?this.encode(ae,ee=>this.conn.send(ee)):this.sendBuffer.push(()=>this.encode(ae,ee=>this.conn.send(ee)))}makeRef(){let ae=this.ref+1;return ae===this.ref?this.ref=0:this.ref=ae,this.ref.toString()}sendHeartbeat(){this.pendingHeartbeatRef&&!this.isConnected()||(this.pendingHeartbeatRef=this.makeRef(),this.push({topic:"phoenix",event:"heartbeat",payload:{},ref:this.pendingHeartbeatRef}),this.heartbeatTimeoutTimer=setTimeout(()=>this.heartbeatTimeout(),this.heartbeatIntervalMs))}flushSendBuffer(){this.isConnected()&&this.sendBuffer.length>0&&(this.sendBuffer.forEach(ae=>ae()),this.sendBuffer=[])}onConnMessage(ae){this.decode(ae.data,ee=>{let{topic:de,event:ne,payload:x,ref:p,join_ref:M}=ee;p&&p===this.pendingHeartbeatRef&&(this.clearHeartbeats(),this.pendingHeartbeatRef=null,this.heartbeatTimer=setTimeout(()=>this.sendHeartbeat(),this.heartbeatIntervalMs)),this.hasLogger()&&this.log("receive",`${x.status||""} ${de} ${ne} ${p&&"("+p+")"||""}`,x);for(let A=0;A<this.channels.length;A++){let F=this.channels[A];F.isMember(de,ne,x,M)&&F.trigger(ne,x,p,M)}for(let A=0;A<this.stateChangeCallbacks.message.length;A++){let[,F]=this.stateChangeCallbacks.message[A];F(ee)}})}leaveOpenTopic(ae){let ee=this.channels.find(de=>de.topic===ae&&(de.isJoined()||de.isJoining()));ee&&(this.hasLogger()&&this.log("transport",`leaving duplicate topic "${ae}"`),ee.leave())}};var _X="consecutive-reloads",Cwe=10,Swe=5e3,wwe=1e4,xwe=3e4,FX=["phx-click-loading","phx-change-loading","phx-submit-loading","phx-keydown-loading","phx-keyup-loading","phx-blur-loading","phx-focus-loading","phx-hook-loading"],Yw="data-phx-component",Lj="data-phx-link",Mwe="track-static",kwe="data-phx-link-state",xP="data-phx-ref-loading",Zf="data-phx-ref-src",Dd="data-phx-ref-lock",NX="track-uploads",Xw="data-phx-upload-ref",Uj="data-phx-preflighted-refs",Awe="data-phx-done-refs",rX="drop-target",Gj="data-phx-active-refs",Cz="phx:live-file:updated",zX="data-phx-skip",BX="data-phx-id",sX="data-phx-prune",lX="phx-connected",iI="phx-loading",CP="phx-error",cX="phx-client-error",vO="phx-server-error",oI="data-phx-parent-id",Kj="data-phx-main",OA="data-phx-root-id",jj="viewport-top",Vj="viewport-bottom",Dwe="trigger-action",wz="phx-has-focused",Ewe=["text","textarea","number","email","password","search","tel","url","date","time","datetime-local","color","range"],GX=["checkbox","radio"],DO="phx-has-submitted",WC="data-phx-session",rI=`[${WC}]`,dX="data-phx-sticky",aI="data-phx-static",Hj="data-phx-readonly",wP="data-phx-disabled",uX="disable-with",xz="data-phx-disable-with-restore",yO="hook",Iwe="debounce",Twe="throttle",Mz="update",Oj="stream",bO="data-phx-stream",Rwe="key",jC="phxPrivate",hX="auto-recover",gz="phx:live-socket:debug",_j="phx:live-socket:profiling",Fj="phx:live-socket:latency-sim",pz="phx:nav-history-position",Pwe="progress",gX="mounted",pX="__phoenix_reload_status__",Lwe=1,mX=3,Owe=200,_we="phx-",Fwe=3e4,CO="debounce-trigger",SO="throttled",fX="debounce-prev-key",Nwe={debounce:300,throttle:300},vX=[xP,Zf,Dd],mz="d",VC="s",Nj="r",$h="c",yX="e",bX="r",CX="t",zwe="p",SX="stream",Bwe=class{constructor(ae,ee,de){let{chunk_size:ne,chunk_timeout:x}=ee;this.liveSocket=de,this.entry=ae,this.offset=0,this.chunkSize=ne,this.chunkTimeout=x,this.chunkTimer=null,this.errored=!1,this.uploadChannel=de.channel(`lvu:${ae.ref}`,{token:ae.metadata()})}error(ae){this.errored||(this.uploadChannel.leave(),this.errored=!0,clearTimeout(this.chunkTimer),this.entry.error(ae))}upload(){this.uploadChannel.onError(ae=>this.error(ae)),this.uploadChannel.join().receive("ok",ae=>this.readNextChunk()).receive("error",ae=>this.error(ae))}isDone(){return this.offset>=this.entry.file.size}readNextChunk(){let ae=new window.FileReader,ee=this.entry.file.slice(this.offset,this.chunkSize+this.offset);ae.onload=de=>{if(de.target.error===null)this.offset+=de.target.result.byteLength,this.pushChunk(de.target.result);else return ip("Read error: "+de.target.error)},ae.readAsArrayBuffer(ee)}pushChunk(ae){this.uploadChannel.isJoined()&&this.uploadChannel.push("chunk",ae,this.chunkTimeout).receive("ok",()=>{this.entry.progress(this.offset/this.entry.file.size*100),this.isDone()||(this.chunkTimer=setTimeout(()=>this.readNextChunk(),this.liveSocket.getLatencySim()||0))}).receive("error",({reason:ee})=>this.error(ee))}},ip=(ae,ee)=>console.error&&console.error(ae,ee),qw=ae=>{let ee=typeof ae;return ee==="number"||ee==="string"&&/^(0|[1-9]\d*)$/.test(ae)};function Gwe(){let ae=new Set,ee=document.querySelectorAll("*[id]");for(let de=0,ne=ee.length;de<ne;de++)ae.has(ee[de].id)?console.error(`Multiple IDs detected: ${ee[de].id}. Ensure unique element ids.`):ae.add(ee[de].id)}function jwe(ae){let ee=new Set;Object.keys(ae).forEach(de=>{let ne=document.getElementById(de);ne&&ne.parentElement&&ne.parentElement.getAttribute("phx-update")!=="stream"&&ee.add(`The stream container with id "${ne.parentElement.id}" is missing the phx-update="stream" attribute. Ensure it is set for streams to work properly.`)}),ee.forEach(de=>console.error(de))}var Vwe=(ae,ee,de,ne)=>{ae.liveSocket.isDebugEnabled()&&console.log(`${ae.id} ${ee}: ${de} - `,ne)},wO=ae=>typeof ae=="function"?ae:function(){return ae},Sz=ae=>JSON.parse(JSON.stringify(ae)),AO=(ae,ee,de)=>{do{if(ae.matches(`[${ee}]`)&&!ae.disabled)return ae;ae=ae.parentElement||ae.parentNode}while(ae!==null&&ae.nodeType===1&&!(de&&de.isSameNode(ae)||ae.matches(rI)));return null},SP=ae=>ae!==null&&typeof ae=="object"&&!(ae instanceof Array),Hwe=(ae,ee)=>JSON.stringify(ae)===JSON.stringify(ee),wX=ae=>{for(let ee in ae)return!1;return!0},LA=(ae,ee)=>ae&&ee(ae),Wwe=function(ae,ee,de,ne){ae.forEach(x=>{new Bwe(x,de.config,ne).upload()})},Uwe={canPushState(){return typeof history.pushState!="undefined"},dropLocal(ae,ee,de){return ae.removeItem(this.localKey(ee,de))},updateLocal(ae,ee,de,ne,x){let p=this.getLocal(ae,ee,de),M=this.localKey(ee,de),A=p===null?ne:x(p);return ae.setItem(M,JSON.stringify(A)),A},getLocal(ae,ee,de){return JSON.parse(ae.getItem(this.localKey(ee,de)))},updateCurrentState(ae){this.canPushState()&&history.replaceState(ae(history.state||{}),"",window.location.href)},pushState(ae,ee,de){if(this.canPushState()){if(de!==window.location.href){if(ee.type=="redirect"&&ee.scroll){let ne=history.state||{};ne.scroll=ee.scroll,history.replaceState(ne,"",window.location.href)}delete ee.scroll,history[ae+"State"](ee,"",de||null),window.requestAnimationFrame(()=>{let ne=this.getHashTargetEl(window.location.hash);ne?ne.scrollIntoView():ee.type==="redirect"&&window.scroll(0,0)})}}else this.redirect(de)},setCookie(ae,ee,de){let ne=typeof de=="number"?` max-age=${de};`:"";document.cookie=`${ae}=${ee};${ne} path=/`},getCookie(ae){return document.cookie.replace(new RegExp(`(?:(?:^|.*;s*)${ae}s*=s*([^;]*).*$)|^.*$`),"$1")},deleteCookie(ae){document.cookie=`${ae}=; max-age=-1; path=/`},redirect(ae,ee){ee&&this.setCookie("__phoenix_flash__",ee,60),window.location=ae},localKey(ae,ee){return`${ae}-${ee}`},getHashTargetEl(ae){let ee=ae.toString().substring(1);if(ee!=="")return document.getElementById(ee)||document.querySelector(`a[name="${ee}"]`)}},tp=Uwe,nI={byId(ae){return document.getElementById(ae)||ip(`no id found for ${ae}`)},removeClass(ae,ee){ae.classList.remove(ee),ae.classList.length===0&&ae.removeAttribute("class")},all(ae,ee,de){if(!ae)return[];let ne=Array.from(ae.querySelectorAll(ee));return de?ne.forEach(de):ne},childNodeLength(ae){let ee=document.createElement("template");return ee.innerHTML=ae,ee.content.childElementCount},isUploadInput(ae){return ae.type==="file"&&ae.getAttribute(Xw)!==null},isAutoUpload(ae){return ae.hasAttribute("data-phx-auto-upload")},findUploadInputs(ae){let ee=ae.id,de=this.all(document,`input[type="file"][${Xw}][form="${ee}"]`);return this.all(ae,`input[type="file"][${Xw}]`).concat(de)},findComponentNodeList(ae,ee){return this.filterWithinSameLiveView(this.all(ae,`[${Yw}="${ee}"]`),ae)},isPhxDestroyed(ae){return!!(ae.id&&nI.private(ae,"destroyed"))},wantsNewTab(ae){let ee=ae.ctrlKey||ae.shiftKey||ae.metaKey||ae.button&&ae.button===1,de=ae.target instanceof HTMLAnchorElement&&ae.target.hasAttribute("download"),ne=ae.target.hasAttribute("target")&&ae.target.getAttribute("target").toLowerCase()==="_blank",x=ae.target.hasAttribute("target")&&!ae.target.getAttribute("target").startsWith("_");return ee||ne||de||x},isUnloadableFormSubmit(ae){return ae.target&&ae.target.getAttribute("method")==="dialog"||ae.submitter&&ae.submitter.getAttribute("formmethod")==="dialog"?!1:!ae.defaultPrevented&&!this.wantsNewTab(ae)},isNewPageClick(ae,ee){let de=ae.target instanceof HTMLAnchorElement?ae.target.getAttribute("href"):null,ne;if(ae.defaultPrevented||de===null||this.wantsNewTab(ae)||de.startsWith("mailto:")||de.startsWith("tel:")||ae.target.isContentEditable)return!1;try{ne=new URL(de)}catch(x){try{ne=new URL(de,ee)}catch(p){return!0}}return ne.host===ee.host&&ne.protocol===ee.protocol&&ne.pathname===ee.pathname&&ne.search===ee.search?ne.hash===""&&!ne.href.endsWith("#"):ne.protocol.startsWith("http")},markPhxChildDestroyed(ae){this.isPhxChild(ae)&&ae.setAttribute(WC,""),this.putPrivate(ae,"destroyed",!0)},findPhxChildrenInFragment(ae,ee){let de=document.createElement("template");return de.innerHTML=ae,this.findPhxChildren(de.content,ee)},isIgnored(ae,ee){return(ae.getAttribute(ee)||ae.getAttribute("data-phx-update"))==="ignore"},isPhxUpdate(ae,ee,de){return ae.getAttribute&&de.indexOf(ae.getAttribute(ee))>=0},findPhxSticky(ae){return this.all(ae,`[${dX}]`)},findPhxChildren(ae,ee){return this.all(ae,`${rI}[${oI}="${ee}"]`)},findExistingParentCIDs(ae,ee){let de=new Set,ne=new Set;return ee.forEach(x=>{this.filterWithinSameLiveView(this.all(ae,`[${Yw}="${x}"]`),ae).forEach(p=>{de.add(x),this.filterWithinSameLiveView(this.all(p,`[${Yw}]`),p).map(M=>parseInt(M.getAttribute(Yw))).forEach(M=>ne.add(M))})}),ne.forEach(x=>de.delete(x)),de},filterWithinSameLiveView(ae,ee){return ee.querySelector(rI)?ae.filter(de=>this.withinSameLiveView(de,ee)):ae},withinSameLiveView(ae,ee){for(;ae=ae.parentNode;){if(ae.isSameNode(ee))return!0;if(ae.getAttribute(WC)!==null)return!1}},private(ae,ee){return ae[jC]&&ae[jC][ee]},deletePrivate(ae,ee){ae[jC]&&delete ae[jC][ee]},putPrivate(ae,ee,de){ae[jC]||(ae[jC]={}),ae[jC][ee]=de},updatePrivate(ae,ee,de,ne){let x=this.private(ae,ee);x===void 0?this.putPrivate(ae,ee,ne(de)):this.putPrivate(ae,ee,ne(x))},syncPendingAttrs(ae,ee){ae.hasAttribute(Zf)&&(FX.forEach(de=>{ae.classList.contains(de)&&ee.classList.add(de)}),vX.filter(de=>ae.hasAttribute(de)).forEach(de=>{ee.setAttribute(de,ae.getAttribute(de))}))},copyPrivates(ae,ee){ee[jC]&&(ae[jC]=ee[jC])},putTitle(ae){let ee=document.querySelector("title");if(ee){let{prefix:de,suffix:ne,default:x}=ee.dataset,p=typeof ae!="string"||ae.trim()==="";if(p&&typeof x!="string")return;let M=p?x:ae;document.title=`${de||""}${M||""}${ne||""}`}else document.title=ae},debounce(ae,ee,de,ne,x,p,M,A){let F=ae.getAttribute(de),D=ae.getAttribute(x);F===""&&(F=ne),D===""&&(D=p);let f=F||D;switch(f){case null:return A();case"blur":this.once(ae,"debounce-blur")&&ae.addEventListener("blur",()=>{M()&&A()});return;default:let v=parseInt(f),u=()=>D?this.deletePrivate(ae,SO):A(),s=this.incCycle(ae,CO,u);if(isNaN(v))return ip(`invalid throttle/debounce value: ${f}`);if(D){let d=!1;if(ee.type==="keydown"){let g=this.private(ae,fX);this.putPrivate(ae,fX,ee.key),d=g!==ee.key}if(!d&&this.private(ae,SO))return!1;{A();let g=setTimeout(()=>{M()&&this.triggerCycle(ae,CO)},v);this.putPrivate(ae,SO,g)}}else setTimeout(()=>{M()&&this.triggerCycle(ae,CO,s)},v);let r=ae.form;r&&this.once(r,"bind-debounce")&&r.addEventListener("submit",()=>{Array.from(new FormData(r).entries(),([d])=>{let g=r.querySelector(`[name="${d}"]`);this.incCycle(g,CO),this.deletePrivate(g,SO)})}),this.once(ae,"bind-debounce")&&ae.addEventListener("blur",()=>{clearTimeout(this.private(ae,SO)),this.triggerCycle(ae,CO)})}},triggerCycle(ae,ee,de){let[ne,x]=this.private(ae,ee);de||(de=ne),de===ne&&(this.incCycle(ae,ee),x())},once(ae,ee){return this.private(ae,ee)===!0?!1:(this.putPrivate(ae,ee,!0),!0)},incCycle(ae,ee,de=function(){}){let[ne]=this.private(ae,ee)||[0,de];return ne++,this.putPrivate(ae,ee,[ne,de]),ne},maintainPrivateHooks(ae,ee,de,ne){ae.hasAttribute&&ae.hasAttribute("data-phx-hook")&&!ee.hasAttribute("data-phx-hook")&&ee.setAttribute("data-phx-hook",ae.getAttribute("data-phx-hook")),ee.hasAttribute&&(ee.hasAttribute(de)||ee.hasAttribute(ne))&&ee.setAttribute("data-phx-hook","Phoenix.InfiniteScroll")},putCustomElHook(ae,ee){ae.isConnected?ae.setAttribute("data-phx-hook",""):console.error(`
        hook attached to non-connected DOM element
        ensure you are calling createHook within your connectedCallback. ${ae.outerHTML}
      `),this.putPrivate(ae,"custom-el-hook",ee)},getCustomElHook(ae){return this.private(ae,"custom-el-hook")},isUsedInput(ae){return ae.nodeType===Node.ELEMENT_NODE&&(this.private(ae,wz)||this.private(ae,DO))},resetForm(ae){Array.from(ae.elements).forEach(ee=>{this.deletePrivate(ee,wz),this.deletePrivate(ee,DO)})},isPhxChild(ae){return ae.getAttribute&&ae.getAttribute(oI)},isPhxSticky(ae){return ae.getAttribute&&ae.getAttribute(dX)!==null},isChildOfAny(ae,ee){return!!ee.find(de=>de.contains(ae))},firstPhxChild(ae){return this.isPhxChild(ae)?ae:this.all(ae,`[${oI}]`)[0]},dispatchEvent(ae,ee,de={}){let ne=!0;ae.nodeName==="INPUT"&&ae.type==="file"&&ee==="click"&&(ne=!1);let M={bubbles:de.bubbles===void 0?ne:!!de.bubbles,cancelable:!0,detail:de.detail||{}},A=ee==="click"?new MouseEvent("click",M):new CustomEvent(ee,M);ae.dispatchEvent(A)},cloneNode(ae,ee){if(typeof ee=="undefined")return ae.cloneNode(!0);{let de=ae.cloneNode(!1);return de.innerHTML=ee,de}},mergeAttrs(ae,ee,de={}){let ne=new Set(de.exclude||[]),x=de.isIgnored,p=ee.attributes;for(let A=p.length-1;A>=0;A--){let F=p[A].name;if(ne.has(F))F==="value"&&ae.value===ee.value&&ae.setAttribute("value",ee.getAttribute(F));else{let D=ee.getAttribute(F);ae.getAttribute(F)!==D&&(!x||x&&F.startsWith("data-"))&&ae.setAttribute(F,D)}}let M=ae.attributes;for(let A=M.length-1;A>=0;A--){let F=M[A].name;x?F.startsWith("data-")&&!ee.hasAttribute(F)&&!vX.includes(F)&&ae.removeAttribute(F):ee.hasAttribute(F)||ae.removeAttribute(F)}},mergeFocusedInput(ae,ee){ae instanceof HTMLSelectElement||nI.mergeAttrs(ae,ee,{exclude:["value"]}),ee.readOnly?ae.setAttribute("readonly",!0):ae.removeAttribute("readonly")},hasSelectionRange(ae){return ae.setSelectionRange&&(ae.type==="text"||ae.type==="textarea")},restoreFocus(ae,ee,de){if(ae instanceof HTMLSelectElement&&ae.focus(),!nI.isTextualInput(ae))return;ae.matches(":focus")||ae.focus(),this.hasSelectionRange(ae)&&ae.setSelectionRange(ee,de)},isFormInput(ae){return/^(?:input|select|textarea)$/i.test(ae.tagName)&&ae.type!=="button"},syncAttrsToProps(ae){ae instanceof HTMLInputElement&&GX.indexOf(ae.type.toLocaleLowerCase())>=0&&(ae.checked=ae.getAttribute("checked")!==null)},isTextualInput(ae){return Ewe.indexOf(ae.type)>=0},isNowTriggerFormExternal(ae,ee){return ae.getAttribute&&ae.getAttribute(ee)!==null&&document.body.contains(ae)},cleanChildNodes(ae,ee){if(nI.isPhxUpdate(ae,ee,["append","prepend"])){let de=[];ae.childNodes.forEach(ne=>{ne.id||(!(ne.nodeType===Node.TEXT_NODE&&ne.nodeValue.trim()==="")&&ne.nodeType!==Node.COMMENT_NODE&&ip(`only HTML element tags with an id are allowed inside containers with phx-update.

removing illegal node: "${(ne.outerHTML||ne.nodeValue).trim()}"

`),de.push(ne))}),de.forEach(ne=>ne.remove())}},replaceRootContainer(ae,ee,de){let ne=new Set(["id",WC,aI,Kj,OA]);if(ae.tagName.toLowerCase()===ee.toLowerCase())return Array.from(ae.attributes).filter(x=>!ne.has(x.name.toLowerCase())).forEach(x=>ae.removeAttribute(x.name)),Object.keys(de).filter(x=>!ne.has(x.toLowerCase())).forEach(x=>ae.setAttribute(x,de[x])),ae;{let x=document.createElement(ee);return Object.keys(de).forEach(p=>x.setAttribute(p,de[p])),ne.forEach(p=>x.setAttribute(p,ae.getAttribute(p))),x.innerHTML=ae.innerHTML,ae.replaceWith(x),x}},getSticky(ae,ee,de){let ne=(nI.private(ae,"sticky")||[]).find(([x])=>ee===x);if(ne){let[x,p,M]=ne;return M}else return typeof de=="function"?de():de},deleteSticky(ae,ee){this.updatePrivate(ae,"sticky",[],de=>de.filter(([ne,x])=>ne!==ee))},putSticky(ae,ee,de){let ne=de(ae);this.updatePrivate(ae,"sticky",[],x=>{let p=x.findIndex(([M])=>ee===M);return p>=0?x[p]=[ee,de,ne]:x.push([ee,de,ne]),x})},applyStickyOperations(ae){let ee=nI.private(ae,"sticky");ee&&ee.forEach(([de,ne,x])=>this.putSticky(ae,de,ne))},isLocked(ae){return ae.hasAttribute&&ae.hasAttribute(Dd)}},Zt=nI,xO=class{static isActive(ae,ee){let de=ee._phxRef===void 0,x=ae.getAttribute(Gj).split(",").indexOf(Ed.genFileRef(ee))>=0;return ee.size>0&&(de||x)}static isPreflighted(ae,ee){return ae.getAttribute(Uj).split(",").indexOf(Ed.genFileRef(ee))>=0&&this.isActive(ae,ee)}static isPreflightInProgress(ae){return ae._preflightInProgress===!0}static markPreflightInProgress(ae){ae._preflightInProgress=!0}constructor(ae,ee,de,ne){this.ref=Ed.genFileRef(ee),this.fileEl=ae,this.file=ee,this.view=de,this.meta=null,this._isCancelled=!1,this._isDone=!1,this._progress=0,this._lastProgressSent=-1,this._onDone=function(){},this._onElUpdated=this.onElUpdated.bind(this),this.fileEl.addEventListener(Cz,this._onElUpdated),this.autoUpload=ne}metadata(){return this.meta}progress(ae){this._progress=Math.floor(ae),this._progress>this._lastProgressSent&&(this._progress>=100?(this._progress=100,this._lastProgressSent=100,this._isDone=!0,this.view.pushFileProgress(this.fileEl,this.ref,100,()=>{Ed.untrackFile(this.fileEl,this.file),this._onDone()})):(this._lastProgressSent=this._progress,this.view.pushFileProgress(this.fileEl,this.ref,this._progress)))}isCancelled(){return this._isCancelled}cancel(){this.file._preflightInProgress=!1,this._isCancelled=!0,this._isDone=!0,this._onDone()}isDone(){return this._isDone}error(ae="failed"){this.fileEl.removeEventListener(Cz,this._onElUpdated),this.view.pushFileProgress(this.fileEl,this.ref,{error:ae}),this.isAutoUpload()||Ed.clearFiles(this.fileEl)}isAutoUpload(){return this.autoUpload}onDone(ae){this._onDone=()=>{this.fileEl.removeEventListener(Cz,this._onElUpdated),ae()}}onElUpdated(){this.fileEl.getAttribute(Gj).split(",").indexOf(this.ref)===-1&&(Ed.untrackFile(this.fileEl,this.file),this.cancel())}toPreflightPayload(){return{last_modified:this.file.lastModified,name:this.file.name,relative_path:this.file.webkitRelativePath,size:this.file.size,type:this.file.type,ref:this.ref,meta:typeof this.file.meta=="function"?this.file.meta():void 0}}uploader(ae){if(this.meta.uploader){let ee=ae[this.meta.uploader]||ip(`no uploader configured for ${this.meta.uploader}`);return{name:this.meta.uploader,callback:ee}}else return{name:"channel",callback:Wwe}}zipPostFlight(ae){this.meta=ae.entries[this.ref],this.meta||ip(`no preflight upload response returned with ref ${this.ref}`,{input:this.fileEl,response:ae})}},Kwe=0,Ed=class Wj{static genFileRef(ee){let de=ee._phxRef;return de!==void 0?de:(ee._phxRef=(Kwe++).toString(),ee._phxRef)}static getEntryDataURL(ee,de,ne){let x=this.activeFiles(ee).find(p=>this.genFileRef(p)===de);ne(URL.createObjectURL(x))}static hasUploadsInProgress(ee){let de=0;return Zt.findUploadInputs(ee).forEach(ne=>{ne.getAttribute(Uj)!==ne.getAttribute(Awe)&&de++}),de>0}static serializeUploads(ee){let de=this.activeFiles(ee),ne={};return de.forEach(x=>{let p={path:ee.name},M=ee.getAttribute(Xw);ne[M]=ne[M]||[],p.ref=this.genFileRef(x),p.last_modified=x.lastModified,p.name=x.name||p.ref,p.relative_path=x.webkitRelativePath,p.type=x.type,p.size=x.size,typeof x.meta=="function"&&(p.meta=x.meta()),ne[M].push(p)}),ne}static clearFiles(ee){ee.value=null,ee.removeAttribute(Xw),Zt.putPrivate(ee,"files",[])}static untrackFile(ee,de){Zt.putPrivate(ee,"files",Zt.private(ee,"files").filter(ne=>!Object.is(ne,de)))}static trackFiles(ee,de,ne){if(ee.getAttribute("multiple")!==null){let x=de.filter(p=>!this.activeFiles(ee).find(M=>Object.is(M,p)));Zt.updatePrivate(ee,"files",[],p=>p.concat(x)),ee.value=null}else ne&&ne.files.length>0&&(ee.files=ne.files),Zt.putPrivate(ee,"files",de)}static activeFileInputs(ee){let de=Zt.findUploadInputs(ee);return Array.from(de).filter(ne=>ne.files&&this.activeFiles(ne).length>0)}static activeFiles(ee){return(Zt.private(ee,"files")||[]).filter(de=>xO.isActive(ee,de))}static inputsAwaitingPreflight(ee){let de=Zt.findUploadInputs(ee);return Array.from(de).filter(ne=>this.filesAwaitingPreflight(ne).length>0)}static filesAwaitingPreflight(ee){return this.activeFiles(ee).filter(de=>!xO.isPreflighted(ee,de)&&!xO.isPreflightInProgress(de))}static markPreflightInProgress(ee){ee.forEach(de=>xO.markPreflightInProgress(de.file))}constructor(ee,de,ne){this.autoUpload=Zt.isAutoUpload(ee),this.view=de,this.onComplete=ne,this._entries=Array.from(Wj.filesAwaitingPreflight(ee)||[]).map(x=>new xO(ee,x,de,this.autoUpload)),Wj.markPreflightInProgress(this._entries),this.numEntriesInProgress=this._entries.length}isAutoUpload(){return this.autoUpload}entries(){return this._entries}initAdapterUpload(ee,de,ne){this._entries=this._entries.map(p=>(p.isCancelled()?(this.numEntriesInProgress--,this.numEntriesInProgress===0&&this.onComplete()):(p.zipPostFlight(ee),p.onDone(()=>{this.numEntriesInProgress--,this.numEntriesInProgress===0&&this.onComplete()})),p));let x=this._entries.reduce((p,M)=>{if(!M.meta)return p;let{name:A,callback:F}=M.uploader(ne.uploaders);return p[A]=p[A]||{callback:F,entries:[]},p[A].entries.push(M),p},{});for(let p in x){let{callback:M,entries:A}=x[p];M(A,de,ee,ne)}}},qwe={anyOf(ae,ee){return ee.find(de=>ae instanceof de)},isFocusable(ae,ee){return ae instanceof HTMLAnchorElement&&ae.rel!=="ignore"||ae instanceof HTMLAreaElement&&ae.href!==void 0||!ae.disabled&&this.anyOf(ae,[HTMLInputElement,HTMLSelectElement,HTMLTextAreaElement,HTMLButtonElement])||ae instanceof HTMLIFrameElement||ae.tabIndex>0||!ee&&ae.getAttribute("tabindex")!==null&&ae.getAttribute("aria-hidden")!=="true"},attemptFocus(ae,ee){if(this.isFocusable(ae,ee))try{ae.focus()}catch(de){}return!!document.activeElement&&document.activeElement.isSameNode(ae)},focusFirstInteractive(ae){let ee=ae.firstElementChild;for(;ee;){if(this.attemptFocus(ee,!0)||this.focusFirstInteractive(ee,!0))return!0;ee=ee.nextElementSibling}},focusFirst(ae){let ee=ae.firstElementChild;for(;ee;){if(this.attemptFocus(ee)||this.focusFirst(ee))return!0;ee=ee.nextElementSibling}},focusLast(ae){let ee=ae.lastElementChild;for(;ee;){if(this.attemptFocus(ee)||this.focusLast(ee))return!0;ee=ee.previousElementSibling}}},HC=qwe,jX={LiveFileUpload:{activeRefs(){return this.el.getAttribute(Gj)},preflightedRefs(){return this.el.getAttribute(Uj)},mounted(){this.preflightedWas=this.preflightedRefs()},updated(){let ae=this.preflightedRefs();this.preflightedWas!==ae&&(this.preflightedWas=ae,ae===""&&this.__view().cancelSubmit(this.el.form)),this.activeRefs()===""&&(this.el.value=null),this.el.dispatchEvent(new CustomEvent(Cz))}},LiveImgPreview:{mounted(){this.ref=this.el.getAttribute("data-phx-entry-ref"),this.inputEl=document.getElementById(this.el.getAttribute(Xw)),Ed.getEntryDataURL(this.inputEl,this.ref,ae=>{this.url=ae,this.el.src=ae})},destroyed(){URL.revokeObjectURL(this.url)}},FocusWrap:{mounted(){this.focusStart=this.el.firstElementChild,this.focusEnd=this.el.lastElementChild,this.focusStart.addEventListener("focus",ae=>{if(!ae.relatedTarget||!this.el.contains(ae.relatedTarget)){let ee=ae.target.nextElementSibling;HC.attemptFocus(ee)||HC.focusFirst(ee)}else HC.focusLast(this.el)}),this.focusEnd.addEventListener("focus",ae=>{if(!ae.relatedTarget||!this.el.contains(ae.relatedTarget)){let ee=ae.target.previousElementSibling;HC.attemptFocus(ee)||HC.focusLast(ee)}else HC.focusFirst(this.el)}),this.el.addEventListener("phx:show-end",()=>this.el.focus()),window.getComputedStyle(this.el).display!=="none"&&HC.focusFirst(this.el)}}},VX=ae=>["HTML","BODY"].indexOf(ae.nodeName.toUpperCase())>=0?null:["scroll","auto"].indexOf(getComputedStyle(ae).overflowY)>=0?ae:VX(ae.parentElement),xX=ae=>ae?ae.scrollTop:document.documentElement.scrollTop||document.body.scrollTop,qj=ae=>ae?ae.getBoundingClientRect().bottom:window.innerHeight||document.documentElement.clientHeight,Yj=ae=>ae?ae.getBoundingClientRect().top:0,Ywe=(ae,ee)=>{let de=ae.getBoundingClientRect();return Math.ceil(de.top)>=Yj(ee)&&Math.ceil(de.left)>=0&&Math.floor(de.top)<=qj(ee)},Xwe=(ae,ee)=>{let de=ae.getBoundingClientRect();return Math.ceil(de.bottom)>=Yj(ee)&&Math.ceil(de.left)>=0&&Math.floor(de.bottom)<=qj(ee)},MX=(ae,ee)=>{let de=ae.getBoundingClientRect();return Math.ceil(de.top)>=Yj(ee)&&Math.ceil(de.left)>=0&&Math.floor(de.top)<=qj(ee)};jX.InfiniteScroll={mounted(){this.scrollContainer=VX(this.el);let ae=xX(this.scrollContainer),ee=!1,de=500,ne=null,x=this.throttle(de,(A,F)=>{ne=()=>!0,this.liveSocket.execJSHookPush(this.el,A,{id:F.id,_overran:!0},()=>{ne=null})}),p=this.throttle(de,(A,F)=>{ne=()=>F.scrollIntoView({block:"start"}),this.liveSocket.execJSHookPush(this.el,A,{id:F.id},()=>{ne=null,window.requestAnimationFrame(()=>{MX(F,this.scrollContainer)||F.scrollIntoView({block:"start"})})})}),M=this.throttle(de,(A,F)=>{ne=()=>F.scrollIntoView({block:"end"}),this.liveSocket.execJSHookPush(this.el,A,{id:F.id},()=>{ne=null,window.requestAnimationFrame(()=>{MX(F,this.scrollContainer)||F.scrollIntoView({block:"end"})})})});this.onScroll=A=>{let F=xX(this.scrollContainer);if(ne)return ae=F,ne();let D=this.el.getBoundingClientRect(),f=this.el.getAttribute(this.liveSocket.binding("viewport-top")),v=this.el.getAttribute(this.liveSocket.binding("viewport-bottom")),u=this.el.lastElementChild,s=this.el.firstElementChild,r=F<ae,d=F>ae;r&&f&&!ee&&D.top>=0?(ee=!0,x(f,s)):d&&ee&&D.top<=0&&(ee=!1),f&&r&&Ywe(s,this.scrollContainer)?p(f,s):v&&d&&Xwe(u,this.scrollContainer)&&M(v,u),ae=F},this.scrollContainer?this.scrollContainer.addEventListener("scroll",this.onScroll):window.addEventListener("scroll",this.onScroll)},destroyed(){this.scrollContainer?this.scrollContainer.removeEventListener("scroll",this.onScroll):window.removeEventListener("scroll",this.onScroll)},throttle(ae,ee){let de=0,ne;return(...x)=>{let p=Date.now(),M=ae-(p-de);M<=0||M>ae?(ne&&(clearTimeout(ne),ne=null),de=p,ee(...x)):ne||(ne=setTimeout(()=>{de=Date.now(),ne=null,ee(...x)},M))}}};var Zwe=jX,kX=class{static onUnlock(ae,ee){if(!Zt.isLocked(ae)&&!ae.closest(`[${Dd}]`))return ee();let de=ae.closest(`[${Dd}]`),ne=de.closest(`[${Dd}]`).getAttribute(Dd);de.addEventListener(`phx:undo-lock:${ne}`,()=>{ee()},{once:!0})}constructor(ae){this.el=ae,this.loadingRef=ae.hasAttribute(xP)?parseInt(ae.getAttribute(xP),10):null,this.lockRef=ae.hasAttribute(Dd)?parseInt(ae.getAttribute(Dd),10):null}maybeUndo(ae,ee,de){this.isWithin(ae)&&(this.undoLocks(ae,ee,de),this.undoLoading(ae,ee),this.isFullyResolvedBy(ae)&&this.el.removeAttribute(Zf))}isWithin(ae){return!(this.loadingRef!==null&&this.loadingRef>ae&&this.lockRef!==null&&this.lockRef>ae)}undoLocks(ae,ee,de){if(!this.isLockUndoneBy(ae))return;let ne=Zt.private(this.el,Dd);ne&&(de(ne),Zt.deletePrivate(this.el,Dd)),this.el.removeAttribute(Dd);let x={detail:{ref:ae,event:ee},bubbles:!0,cancelable:!1};this.el.dispatchEvent(new CustomEvent(`phx:undo-lock:${this.lockRef}`,x))}undoLoading(ae,ee){if(!this.isLoadingUndoneBy(ae)){this.canUndoLoading(ae)&&this.el.classList.contains("phx-submit-loading")&&this.el.classList.remove("phx-change-loading");return}if(this.canUndoLoading(ae)){this.el.removeAttribute(xP);let de=this.el.getAttribute(wP),ne=this.el.getAttribute(Hj);ne!==null&&(this.el.readOnly=ne==="true",this.el.removeAttribute(Hj)),de!==null&&(this.el.disabled=de==="true",this.el.removeAttribute(wP));let x=this.el.getAttribute(xz);x!==null&&(this.el.innerText=x,this.el.removeAttribute(xz));let p={detail:{ref:ae,event:ee},bubbles:!0,cancelable:!1};this.el.dispatchEvent(new CustomEvent(`phx:undo-loading:${this.loadingRef}`,p))}FX.forEach(de=>{(de!=="phx-submit-loading"||this.canUndoLoading(ae))&&Zt.removeClass(this.el,de)})}isLoadingUndoneBy(ae){return this.loadingRef===null?!1:this.loadingRef<=ae}isLockUndoneBy(ae){return this.lockRef===null?!1:this.lockRef<=ae}isFullyResolvedBy(ae){return(this.loadingRef===null||this.loadingRef<=ae)&&(this.lockRef===null||this.lockRef<=ae)}canUndoLoading(ae){return this.lockRef===null||this.lockRef<=ae}},$we=class{constructor(ae,ee,de){let ne=new Set,x=new Set([...ee.children].map(M=>M.id)),p=[];Array.from(ae.children).forEach(M=>{if(M.id&&(ne.add(M.id),x.has(M.id))){let A=M.previousElementSibling&&M.previousElementSibling.id;p.push({elementId:M.id,previousElementId:A})}}),this.containerId=ee.id,this.updateType=de,this.elementsToModify=p,this.elementIdsToAdd=[...x].filter(M=>!ne.has(M))}perform(){let ae=Zt.byId(this.containerId);this.elementsToModify.forEach(ee=>{ee.previousElementId?LA(document.getElementById(ee.previousElementId),de=>{LA(document.getElementById(ee.elementId),ne=>{ne.previousElementSibling&&ne.previousElementSibling.id==de.id||de.insertAdjacentElement("afterend",ne)})}):LA(document.getElementById(ee.elementId),de=>{de.previousElementSibling==null||ae.insertAdjacentElement("afterbegin",de)})}),this.updateType=="prepend"&&this.elementIdsToAdd.reverse().forEach(ee=>{LA(document.getElementById(ee),de=>ae.insertAdjacentElement("afterbegin",de))})}},AX=11;function Qwe(ae,ee){var de=ee.attributes,ne,x,p,M,A;if(!(ee.nodeType===AX||ae.nodeType===AX)){for(var F=de.length-1;F>=0;F--)ne=de[F],x=ne.name,p=ne.namespaceURI,M=ne.value,p?(x=ne.localName||x,A=ae.getAttributeNS(p,x),A!==M&&(ne.prefix==="xmlns"&&(x=ne.name),ae.setAttributeNS(p,x,M))):(A=ae.getAttribute(x),A!==M&&ae.setAttribute(x,M));for(var D=ae.attributes,f=D.length-1;f>=0;f--)ne=D[f],x=ne.name,p=ne.namespaceURI,p?(x=ne.localName||x,ee.hasAttributeNS(p,x)||ae.removeAttributeNS(p,x)):ee.hasAttribute(x)||ae.removeAttribute(x)}}var fz,Jwe="http://www.w3.org/1999/xhtml",np=typeof document=="undefined"?void 0:document,exe=!!np&&"content"in np.createElement("template"),txe=!!np&&np.createRange&&"createContextualFragment"in np.createRange();function ixe(ae){var ee=np.createElement("template");return ee.innerHTML=ae,ee.content.childNodes[0]}function nxe(ae){fz||(fz=np.createRange(),fz.selectNode(np.body));var ee=fz.createContextualFragment(ae);return ee.childNodes[0]}function axe(ae){var ee=np.createElement("body");return ee.innerHTML=ae,ee.childNodes[0]}function oxe(ae){return ae=ae.trim(),exe?ixe(ae):txe?nxe(ae):axe(ae)}function vz(ae,ee){var de=ae.nodeName,ne=ee.nodeName,x,p;return de===ne?!0:(x=de.charCodeAt(0),p=ne.charCodeAt(0),x<=90&&p>=97?de===ne.toUpperCase():p<=90&&x>=97?ne===de.toUpperCase():!1)}function rxe(ae,ee){return!ee||ee===Jwe?np.createElement(ae):np.createElementNS(ee,ae)}function sxe(ae,ee){for(var de=ae.firstChild;de;){var ne=de.nextSibling;ee.appendChild(de),de=ne}return ee}function zj(ae,ee,de){ae[de]!==ee[de]&&(ae[de]=ee[de],ae[de]?ae.setAttribute(de,""):ae.removeAttribute(de))}var DX={OPTION:function(ae,ee){var de=ae.parentNode;if(de){var ne=de.nodeName.toUpperCase();ne==="OPTGROUP"&&(de=de.parentNode,ne=de&&de.nodeName.toUpperCase()),ne==="SELECT"&&!de.hasAttribute("multiple")&&(ae.hasAttribute("selected")&&!ee.selected&&(ae.setAttribute("selected","selected"),ae.removeAttribute("selected")),de.selectedIndex=-1)}zj(ae,ee,"selected")},INPUT:function(ae,ee){zj(ae,ee,"checked"),zj(ae,ee,"disabled"),ae.value!==ee.value&&(ae.value=ee.value),ee.hasAttribute("value")||ae.removeAttribute("value")},TEXTAREA:function(ae,ee){var de=ee.value;ae.value!==de&&(ae.value=de);var ne=ae.firstChild;if(ne){var x=ne.nodeValue;if(x==de||!de&&x==ae.placeholder)return;ne.nodeValue=de}},SELECT:function(ae,ee){if(!ee.hasAttribute("multiple")){for(var de=-1,ne=0,x=ae.firstChild,p,M;x;)if(M=x.nodeName&&x.nodeName.toUpperCase(),M==="OPTGROUP")p=x,x=p.firstChild;else{if(M==="OPTION"){if(x.hasAttribute("selected")){de=ne;break}ne++}x=x.nextSibling,!x&&p&&(x=p.nextSibling,p=null)}ae.selectedIndex=de}}},MO=1,EX=11,IX=3,TX=8;function PA(){}function lxe(ae){if(ae)return ae.getAttribute&&ae.getAttribute("id")||ae.id}function cxe(ae){return function(de,ne,x){if(x||(x={}),typeof ne=="string")if(de.nodeName==="#document"||de.nodeName==="HTML"||de.nodeName==="BODY"){var p=ne;ne=np.createElement("html"),ne.innerHTML=p}else ne=oxe(ne);else ne.nodeType===EX&&(ne=ne.firstElementChild);var M=x.getNodeKey||lxe,A=x.onBeforeNodeAdded||PA,F=x.onNodeAdded||PA,D=x.onBeforeElUpdated||PA,f=x.onElUpdated||PA,v=x.onBeforeNodeDiscarded||PA,u=x.onNodeDiscarded||PA,s=x.onBeforeElChildrenUpdated||PA,r=x.skipFromChildren||PA,d=x.addChild||function(Ie,ze){return Ie.appendChild(ze)},g=x.childrenOnly===!0,m=Object.create(null),b=[];function w(Ie){b.push(Ie)}function k(Ie,ze){if(Ie.nodeType===MO)for(var Ye=Ie.firstChild;Ye;){var xe=void 0;ze&&(xe=M(Ye))?w(xe):(u(Ye),Ye.firstChild&&k(Ye,ze)),Ye=Ye.nextSibling}}function R(Ie,ze,Ye){v(Ie)!==!1&&(ze&&ze.removeChild(Ie),u(Ie),k(Ie,Ye))}function T(Ie){if(Ie.nodeType===MO||Ie.nodeType===EX)for(var ze=Ie.firstChild;ze;){var Ye=M(ze);Ye&&(m[Ye]=ze),T(ze),ze=ze.nextSibling}}T(de);function z(Ie){F(Ie);for(var ze=Ie.firstChild;ze;){var Ye=ze.nextSibling,xe=M(ze);if(xe){var Te=m[xe];Te&&vz(ze,Te)?(ze.parentNode.replaceChild(Te,ze),U(Te,ze)):z(ze)}else z(ze);ze=Ye}}function G(Ie,ze,Ye){for(;ze;){var xe=ze.nextSibling;(Ye=M(ze))?w(Ye):R(ze,Ie,!0),ze=xe}}function U(Ie,ze,Ye){var xe=M(ze);if(xe&&delete m[xe],!Ye){var Te=D(Ie,ze);if(Te===!1||(Te instanceof HTMLElement&&(Ie=Te,T(Ie)),ae(Ie,ze),f(Ie),s(Ie,ze)===!1))return}Ie.nodeName!=="TEXTAREA"?X(Ie,ze):DX.TEXTAREA(Ie,ze)}function X(Ie,ze){var Ye=r(Ie,ze),xe=ze.firstChild,Te=Ie.firstChild,Ae,Ne,Re,Oe,Ve;e:for(;xe;){for(Oe=xe.nextSibling,Ae=M(xe);!Ye&&Te;){if(Re=Te.nextSibling,xe.isSameNode&&xe.isSameNode(Te)){xe=Oe,Te=Re;continue e}Ne=M(Te);var Ue=Te.nodeType,Ee=void 0;if(Ue===xe.nodeType&&(Ue===MO?(Ae?Ae!==Ne&&((Ve=m[Ae])?Re===Ve?Ee=!1:(Ie.insertBefore(Ve,Te),Ne?w(Ne):R(Te,Ie,!0),Te=Ve,Ne=M(Te)):Ee=!1):Ne&&(Ee=!1),Ee=Ee!==!1&&vz(Te,xe),Ee&&U(Te,xe)):(Ue===IX||Ue==TX)&&(Ee=!0,Te.nodeValue!==xe.nodeValue&&(Te.nodeValue=xe.nodeValue))),Ee){xe=Oe,Te=Re;continue e}Ne?w(Ne):R(Te,Ie,!0),Te=Re}if(Ae&&(Ve=m[Ae])&&vz(Ve,xe))Ye||d(Ie,Ve),U(Ve,xe);else{var tt=A(xe);tt!==!1&&(tt&&(xe=tt),xe.actualize&&(xe=xe.actualize(Ie.ownerDocument||np)),d(Ie,xe),z(xe))}xe=Oe,Te=Re}G(Ie,Te,Ne);var at=DX[Ie.nodeName];at&&at(Ie,ze)}var Q=de,oe=Q.nodeType,le=ne.nodeType;if(!g){if(oe===MO)le===MO?vz(de,ne)||(u(de),Q=sxe(de,rxe(ne.nodeName,ne.namespaceURI))):Q=ne;else if(oe===IX||oe===TX){if(le===oe)return Q.nodeValue!==ne.nodeValue&&(Q.nodeValue=ne.nodeValue),Q;Q=ne}}if(Q===ne)u(de);else{if(ne.isSameNode&&ne.isSameNode(Q))return;if(U(Q,ne,g),b)for(var fe=0,ye=b.length;fe<ye;fe++){var ke=m[b[fe]];ke&&R(ke,ke.parentNode,!1)}}return!g&&Q!==de&&de.parentNode&&(Q.actualize&&(Q=Q.actualize(de.ownerDocument||np)),de.parentNode.replaceChild(Q,de)),Q}}var dxe=cxe(Qwe),uxe=dxe,yz=class{constructor(ae,ee,de,ne,x,p,M={}){this.view=ae,this.liveSocket=ae.liveSocket,this.container=ee,this.id=de,this.rootID=ae.root.id,this.html=ne,this.streams=x,this.streamInserts={},this.streamComponentRestore={},this.targetCID=p,this.cidPatch=qw(this.targetCID),this.pendingRemoves=[],this.phxRemove=this.liveSocket.binding("remove"),this.targetContainer=this.isCIDPatch()?this.targetCIDContainer(ne):ee,this.callbacks={beforeadded:[],beforeupdated:[],beforephxChildAdded:[],afteradded:[],afterupdated:[],afterdiscarded:[],afterphxChildAdded:[],aftertransitionsDiscarded:[]},this.withChildren=M.withChildren||M.undoRef||!1,this.undoRef=M.undoRef}before(ae,ee){this.callbacks[`before${ae}`].push(ee)}after(ae,ee){this.callbacks[`after${ae}`].push(ee)}trackBefore(ae,...ee){this.callbacks[`before${ae}`].forEach(de=>de(...ee))}trackAfter(ae,...ee){this.callbacks[`after${ae}`].forEach(de=>de(...ee))}markPrunableContentForRemoval(){let ae=this.liveSocket.binding(Mz);Zt.all(this.container,`[${ae}=append] > *, [${ae}=prepend] > *`,ee=>{ee.setAttribute(sX,"")})}perform(ae){let{view:ee,liveSocket:de,html:ne,container:x,targetContainer:p}=this;if(this.isCIDPatch()&&!p)return;let M=de.getActiveElement(),{selectionStart:A,selectionEnd:F}=M&&Zt.hasSelectionRange(M)?M:{},D=de.binding(Mz),f=de.binding(jj),v=de.binding(Vj),u=de.binding(Dwe),s=[],r=[],d=[],g=null;function m(b,w,k=this.withChildren){let R={childrenOnly:b.getAttribute(Yw)===null&&!k,getNodeKey:T=>Zt.isPhxDestroyed(T)?null:ae?T.id:T.id||T.getAttribute&&T.getAttribute(BX),skipFromChildren:T=>T.getAttribute(D)===Oj,addChild:(T,z)=>{let{ref:G,streamAt:U}=this.getStreamInsert(z);if(G===void 0)return T.appendChild(z);if(this.setStreamRef(z,G),U===0)T.insertAdjacentElement("afterbegin",z);else if(U===-1){let X=T.lastElementChild;if(X&&!X.hasAttribute(bO)){let Q=Array.from(T.children).find(oe=>!oe.hasAttribute(bO));T.insertBefore(z,Q)}else T.appendChild(z)}else if(U>0){let X=Array.from(T.children)[U];T.insertBefore(z,X)}},onBeforeNodeAdded:T=>{Zt.maintainPrivateHooks(T,T,f,v),this.trackBefore("added",T);let z=T;return this.streamComponentRestore[T.id]&&(z=this.streamComponentRestore[T.id],delete this.streamComponentRestore[T.id],m.call(this,z,T,!0)),z},onNodeAdded:T=>{T.getAttribute&&this.maybeReOrderStream(T,!0),T instanceof HTMLImageElement&&T.srcset?T.srcset=T.srcset:T instanceof HTMLVideoElement&&T.autoplay&&T.play(),Zt.isNowTriggerFormExternal(T,u)&&(g=T),(Zt.isPhxChild(T)&&ee.ownsElement(T)||Zt.isPhxSticky(T)&&ee.ownsElement(T.parentNode))&&this.trackAfter("phxChildAdded",T),s.push(T)},onNodeDiscarded:T=>this.onNodeDiscarded(T),onBeforeNodeDiscarded:T=>T.getAttribute&&T.getAttribute(sX)!==null?!0:!(T.parentElement!==null&&T.id&&Zt.isPhxUpdate(T.parentElement,D,[Oj,"append","prepend"])||this.maybePendingRemove(T)||this.skipCIDSibling(T)),onElUpdated:T=>{Zt.isNowTriggerFormExternal(T,u)&&(g=T),r.push(T),this.maybeReOrderStream(T,!1)},onBeforeElUpdated:(T,z)=>{if(T.id&&T.isSameNode(b)&&T.id!==z.id)return R.onNodeDiscarded(T),T.replaceWith(z),R.onNodeAdded(z);if(Zt.syncPendingAttrs(T,z),Zt.maintainPrivateHooks(T,z,f,v),Zt.cleanChildNodes(z,D),this.skipCIDSibling(z))return this.maybeReOrderStream(T),!1;if(Zt.isPhxSticky(T))return[WC,aI,OA].map(X=>[X,T.getAttribute(X),z.getAttribute(X)]).forEach(([X,Q,oe])=>{oe&&Q!==oe&&T.setAttribute(X,oe)}),!1;if(Zt.isIgnored(T,D)||T.form&&T.form.isSameNode(g))return this.trackBefore("updated",T,z),Zt.mergeAttrs(T,z,{isIgnored:Zt.isIgnored(T,D)}),r.push(T),Zt.applyStickyOperations(T),!1;if(T.type==="number"&&T.validity&&T.validity.badInput)return!1;let G=M&&T.isSameNode(M)&&Zt.isFormInput(T),U=G&&this.isChangedSelect(T,z);if(T.hasAttribute(Zf)&&T.getAttribute(Dd)!=this.undoRef){Zt.isUploadInput(T)&&(Zt.mergeAttrs(T,z,{isIgnored:!0}),this.trackBefore("updated",T,z),r.push(T)),Zt.applyStickyOperations(T);let Q=T.hasAttribute(Dd)?Zt.private(T,Dd)||T.cloneNode(!0):null;Q&&(Zt.putPrivate(T,Dd,Q),G||(T=Q))}if(Zt.isPhxChild(z)){let X=T.getAttribute(WC);return Zt.mergeAttrs(T,z,{exclude:[aI]}),X!==""&&T.setAttribute(WC,X),T.setAttribute(OA,this.rootID),Zt.applyStickyOperations(T),!1}return Zt.copyPrivates(z,T),G&&T.type!=="hidden"&&!U?(this.trackBefore("updated",T,z),Zt.mergeFocusedInput(T,z),Zt.syncAttrsToProps(T),r.push(T),Zt.applyStickyOperations(T),!1):(U&&T.blur(),Zt.isPhxUpdate(z,D,["append","prepend"])&&d.push(new $we(T,z,z.getAttribute(D))),Zt.syncAttrsToProps(z),Zt.applyStickyOperations(z),this.trackBefore("updated",T,z),T)}};uxe(b,w,R)}return this.trackBefore("added",x),this.trackBefore("updated",x,x),de.time("morphdom",()=>{this.streams.forEach(([b,w,k,R])=>{w.forEach(([T,z,G])=>{this.streamInserts[T]={ref:b,streamAt:z,limit:G,reset:R}}),R!==void 0&&Zt.all(x,`[${bO}="${b}"]`,T=>{this.removeStreamChildElement(T)}),k.forEach(T=>{let z=x.querySelector(`[id="${T}"]`);z&&this.removeStreamChildElement(z)})}),ae&&Zt.all(this.container,`[${D}=${Oj}]`,b=>{this.liveSocket.owner(b,w=>{w===this.view&&Array.from(b.children).forEach(k=>{this.removeStreamChildElement(k)})})}),m.call(this,p,ne)}),de.isDebugEnabled()&&(Gwe(),jwe(this.streamInserts),Array.from(document.querySelectorAll("input[name=id]")).forEach(b=>{b.form&&console.error(`Detected an input with name="id" inside a form! This will cause problems when patching the DOM.
`,b)})),d.length>0&&de.time("post-morph append/prepend restoration",()=>{d.forEach(b=>b.perform())}),de.silenceEvents(()=>Zt.restoreFocus(M,A,F)),Zt.dispatchEvent(document,"phx:update"),s.forEach(b=>this.trackAfter("added",b)),r.forEach(b=>this.trackAfter("updated",b)),this.transitionPendingRemoves(),g&&(de.unload(),Object.getPrototypeOf(g).submit.call(g)),!0}onNodeDiscarded(ae){(Zt.isPhxChild(ae)||Zt.isPhxSticky(ae))&&this.liveSocket.destroyViewByEl(ae),this.trackAfter("discarded",ae)}maybePendingRemove(ae){return ae.getAttribute&&ae.getAttribute(this.phxRemove)!==null?(this.pendingRemoves.push(ae),!0):!1}removeStreamChildElement(ae){this.streamInserts[ae.id]?(this.streamComponentRestore[ae.id]=ae,ae.remove()):this.maybePendingRemove(ae)||(ae.remove(),this.onNodeDiscarded(ae))}getStreamInsert(ae){return(ae.id?this.streamInserts[ae.id]:{})||{}}setStreamRef(ae,ee){Zt.putSticky(ae,bO,de=>de.setAttribute(bO,ee))}maybeReOrderStream(ae,ee){let{ref:de,streamAt:ne,reset:x}=this.getStreamInsert(ae);if(ne!==void 0&&(this.setStreamRef(ae,de),!(!x&&!ee)&&ae.parentElement)){if(ne===0)ae.parentElement.insertBefore(ae,ae.parentElement.firstElementChild);else if(ne>0){let p=Array.from(ae.parentElement.children),M=p.indexOf(ae);if(ne>=p.length-1)ae.parentElement.appendChild(ae);else{let A=p[ne];M>ne?ae.parentElement.insertBefore(ae,A):ae.parentElement.insertBefore(ae,A.nextElementSibling)}}this.maybeLimitStream(ae)}}maybeLimitStream(ae){let{limit:ee}=this.getStreamInsert(ae),de=ee!==null&&Array.from(ae.parentElement.children);ee&&ee<0&&de.length>ee*-1?de.slice(0,de.length+ee).forEach(ne=>this.removeStreamChildElement(ne)):ee&&ee>=0&&de.length>ee&&de.slice(ee).forEach(ne=>this.removeStreamChildElement(ne))}transitionPendingRemoves(){let{pendingRemoves:ae,liveSocket:ee}=this;ae.length>0&&ee.transitionRemoves(ae,!1,()=>{ae.forEach(de=>{let ne=Zt.firstPhxChild(de);ne&&ee.destroyViewByEl(ne),de.remove()}),this.trackAfter("transitionsDiscarded",ae)})}isChangedSelect(ae,ee){return!(ae instanceof HTMLSelectElement)||ae.multiple?!1:ae.options.length!==ee.options.length?!0:(ee.value=ae.value,!ae.isEqualNode(ee))}isCIDPatch(){return this.cidPatch}skipCIDSibling(ae){return ae.nodeType===Node.ELEMENT_NODE&&ae.hasAttribute(zX)}targetCIDContainer(ae){if(!this.isCIDPatch())return;let[ee,...de]=Zt.findComponentNodeList(this.container,this.targetCID);return de.length===0&&Zt.childNodeLength(ae)===1?ee:ee&&ee.parentNode}indexOf(ae,ee){return Array.from(ae.children).indexOf(ee)}},hxe=new Set(["area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"]),gxe=new Set(["'",'"']),RX=(ae,ee,de)=>{let ne=0,x=!1,p,M,A,F,D,f,v=ae.match(/^(\s*(?:<!--.*?-->\s*)*)<([^\s\/>]+)/);if(v===null)throw new Error(`malformed html ${ae}`);for(ne=v[0].length,p=v[1],A=v[2],F=ne,ne;ne<ae.length&&ae.charAt(ne)!==">";ne++)if(ae.charAt(ne)==="="){let r=ae.slice(ne-3,ne)===" id";ne++;let d=ae.charAt(ne);if(gxe.has(d)){let g=ne;for(ne++,ne;ne<ae.length&&ae.charAt(ne)!==d;ne++);if(r){D=ae.slice(g+1,ne);break}}}let u=ae.length-1;for(x=!1;u>=p.length+A.length;){let r=ae.charAt(u);if(x)r==="-"&&ae.slice(u-3,u)==="<!-"?(x=!1,u-=4):u-=1;else if(r===">"&&ae.slice(u-2,u)==="--")x=!0,u-=3;else{if(r===">")break;u-=1}}M=ae.slice(u+1,ae.length);let s=Object.keys(ee).map(r=>ee[r]===!0?r:`${r}="${ee[r]}"`).join(" ");if(de){let r=D?` id="${D}"`:"";hxe.has(A)?f=`<${A}${r}${s===""?"":" "}${s}/>`:f=`<${A}${r}${s===""?"":" "}${s}></${A}>`}else{let r=ae.slice(F,u+1);f=`<${A}${s===""?"":" "}${s}${r}`}return[f,p,M]},PX=class{static extract(ae){let{[bX]:ee,[yX]:de,[CX]:ne}=ae;return delete ae[bX],delete ae[yX],delete ae[CX],{diff:ae,title:ne,reply:ee||null,events:de||[]}}constructor(ae,ee){this.viewId=ae,this.rendered={},this.magicId=0,this.mergeDiff(ee)}parentViewId(){return this.viewId}toString(ae){let[ee,de]=this.recursiveToString(this.rendered,this.rendered[$h],ae,!0,{});return[ee,de]}recursiveToString(ae,ee=ae[$h],de,ne,x){de=de?new Set(de):null;let p={buffer:"",components:ee,onlyCids:de,streams:new Set};return this.toOutputBuffer(ae,null,p,ne,x),[p.buffer,p.streams]}componentCIDs(ae){return Object.keys(ae[$h]||{}).map(ee=>parseInt(ee))}isComponentOnlyDiff(ae){return ae[$h]?Object.keys(ae).length===1:!1}getComponent(ae,ee){return ae[$h][ee]}resetRender(ae){this.rendered[$h][ae]&&(this.rendered[$h][ae].reset=!0)}mergeDiff(ae){let ee=ae[$h],de={};if(delete ae[$h],this.rendered=this.mutableMerge(this.rendered,ae),this.rendered[$h]=this.rendered[$h]||{},ee){let ne=this.rendered[$h];for(let x in ee)ee[x]=this.cachedFindComponent(x,ee[x],ne,ee,de);for(let x in ee)ne[x]=ee[x];ae[$h]=ee}}cachedFindComponent(ae,ee,de,ne,x){if(x[ae])return x[ae];{let p,M,A=ee[VC];if(qw(A)){let F;A>0?F=this.cachedFindComponent(A,ne[A],de,ne,x):F=de[-A],M=F[VC],p=this.cloneMerge(F,ee,!0),p[VC]=M}else p=ee[VC]!==void 0||de[ae]===void 0?ee:this.cloneMerge(de[ae],ee,!1);return x[ae]=p,p}}mutableMerge(ae,ee){return ee[VC]!==void 0?ee:(this.doMutableMerge(ae,ee),ae)}doMutableMerge(ae,ee){for(let de in ee){let ne=ee[de],x=ae[de];SP(ne)&&ne[VC]===void 0&&SP(x)?this.doMutableMerge(x,ne):ae[de]=ne}ae[Nj]&&(ae.newRender=!0)}cloneMerge(ae,ee,de){let ne=pe(pe({},ae),ee);for(let x in ne){let p=ee[x],M=ae[x];SP(p)&&p[VC]===void 0&&SP(M)?ne[x]=this.cloneMerge(M,p,de):p===void 0&&SP(M)&&(ne[x]=this.cloneMerge(M,{},de))}return de?(delete ne.magicId,delete ne.newRender):ae[Nj]&&(ne.newRender=!0),ne}componentToString(ae){let[ee,de]=this.recursiveCIDToString(this.rendered[$h],ae,null),[ne,x,p]=RX(ee,{});return[ne,de]}pruneCIDs(ae){ae.forEach(ee=>delete this.rendered[$h][ee])}get(){return this.rendered}isNewFingerprint(ae={}){return!!ae[VC]}templateStatic(ae,ee){return typeof ae=="number"?ee[ae]:ae}nextMagicID(){return this.magicId++,`m${this.magicId}-${this.parentViewId()}`}toOutputBuffer(ae,ee,de,ne,x={}){if(ae[mz])return this.comprehensionToBuffer(ae,ee,de);let{[VC]:p}=ae;p=this.templateStatic(p,ee);let M=ae[Nj],A=de.buffer;M&&(de.buffer=""),ne&&M&&!ae.magicId&&(ae.newRender=!0,ae.magicId=this.nextMagicID()),de.buffer+=p[0];for(let F=1;F<p.length;F++)this.dynamicToBuffer(ae[F-1],ee,de,ne),de.buffer+=p[F];if(M){let F=!1,D;ne||ae.magicId?(F=ne&&!ae.newRender,D=pe({[BX]:ae.magicId},x)):D=x,F&&(D[zX]=!0);let[f,v,u]=RX(de.buffer,D,F);ae.newRender=!1,de.buffer=A+v+f+u}}comprehensionToBuffer(ae,ee,de){let{[mz]:ne,[VC]:x,[SX]:p}=ae,[M,A,F,D]=p||[null,{},[],null];x=this.templateStatic(x,ee);let f=ee||ae[zwe];for(let v=0;v<ne.length;v++){let u=ne[v];de.buffer+=x[0];for(let s=1;s<x.length;s++){let r=!1;this.dynamicToBuffer(u[s-1],f,de,r),de.buffer+=x[s]}}p!==void 0&&(ae[mz].length>0||F.length>0||D)&&(delete ae[SX],ae[mz]=[],de.streams.add(p))}dynamicToBuffer(ae,ee,de,ne){if(typeof ae=="number"){let[x,p]=this.recursiveCIDToString(de.components,ae,de.onlyCids);de.buffer+=x,de.streams=new Set([...de.streams,...p])}else SP(ae)?this.toOutputBuffer(ae,ee,de,ne,{}):de.buffer+=ae}recursiveCIDToString(ae,ee,de){let ne=ae[ee]||ip(`no component for CID ${ee}`,ae),x={[Yw]:ee},p=de&&!de.has(ee);ne.newRender=!p,ne.magicId=`c${ee}-${this.parentViewId()}`;let M=!ne.reset,[A,F]=this.recursiveToString(ne,ae,de,M,x);return delete ne.reset,[A,F]}},LX=[],OX=200,pxe={exec(ae,ee,de,ne,x,p){let[M,A]=p||[null,{callback:p&&p.callback}];(de.charAt(0)==="["?JSON.parse(de):[[M,A]]).forEach(([D,f])=>{D===M&&(f=pe(pe({},A),f),f.callback=f.callback||A.callback),this.filterToEls(ne.liveSocket,x,f).forEach(v=>{this[`exec_${D}`](ae,ee,de,ne,x,v,f)})})},isVisible(ae){return!!(ae.offsetWidth||ae.offsetHeight||ae.getClientRects().length>0)},isInViewport(ae){let ee=ae.getBoundingClientRect(),de=window.innerHeight||document.documentElement.clientHeight,ne=window.innerWidth||document.documentElement.clientWidth;return ee.right>0&&ee.bottom>0&&ee.left<ne&&ee.top<de},exec_exec(ae,ee,de,ne,x,p,{attr:M,to:A}){(A?Zt.all(document,A):[x]).forEach(D=>{let f=D.getAttribute(M);if(!f)throw new Error(`expected ${M} to contain JS command on "${A}"`);ne.liveSocket.execJS(D,f,ee)})},exec_dispatch(ae,ee,de,ne,x,p,{event:M,detail:A,bubbles:F}){A=A||{},A.dispatcher=x,Zt.dispatchEvent(p,M,{detail:A,bubbles:F})},exec_push(ae,ee,de,ne,x,p,M){let{event:A,data:F,target:D,page_loading:f,loading:v,value:u,dispatcher:s,callback:r}=M,d={loading:v,value:u,target:D,page_loading:!!f},g=ee==="change"&&s?s:x,m=D||g.getAttribute(ne.binding("target"))||g,b=(w,k)=>{if(w.isConnected())if(ee==="change"){let{newCid:R,_target:T}=M;T=T||(Zt.isFormInput(x)?x.name:void 0),T&&(d._target=T),w.pushInput(x,k,R,A||de,d,r)}else if(ee==="submit"){let{submitter:R}=M;w.submitForm(x,k,A||de,R,d,r)}else w.pushEvent(ee,x,k,A||de,F,d,r)};M.targetView&&M.targetCtx?b(M.targetView,M.targetCtx):ne.withinTargets(m,b)},exec_navigate(ae,ee,de,ne,x,p,{href:M,replace:A}){ne.liveSocket.historyRedirect(ae,M,A?"replace":"push",null,x)},exec_patch(ae,ee,de,ne,x,p,{href:M,replace:A}){ne.liveSocket.pushHistoryPatch(ae,M,A?"replace":"push",x)},exec_focus(ae,ee,de,ne,x,p){window.requestAnimationFrame(()=>HC.attemptFocus(p))},exec_focus_first(ae,ee,de,ne,x,p){window.requestAnimationFrame(()=>HC.focusFirstInteractive(p)||HC.focusFirst(p))},exec_push_focus(ae,ee,de,ne,x,p){window.requestAnimationFrame(()=>LX.push(p||x))},exec_pop_focus(ae,ee,de,ne,x,p){window.requestAnimationFrame(()=>{let M=LX.pop();M&&M.focus()})},exec_add_class(ae,ee,de,ne,x,p,{names:M,transition:A,time:F,blocking:D}){this.addOrRemoveClasses(p,M,[],A,F,ne,D)},exec_remove_class(ae,ee,de,ne,x,p,{names:M,transition:A,time:F,blocking:D}){this.addOrRemoveClasses(p,[],M,A,F,ne,D)},exec_toggle_class(ae,ee,de,ne,x,p,{names:M,transition:A,time:F,blocking:D}){this.toggleClasses(p,M,A,F,ne,D)},exec_toggle_attr(ae,ee,de,ne,x,p,{attr:[M,A,F]}){this.toggleAttr(p,M,A,F)},exec_transition(ae,ee,de,ne,x,p,{time:M,transition:A,blocking:F}){this.addOrRemoveClasses(p,[],[],A,M,ne,F)},exec_toggle(ae,ee,de,ne,x,p,{display:M,ins:A,outs:F,time:D,blocking:f}){this.toggle(ee,ne,p,M,A,F,D,f)},exec_show(ae,ee,de,ne,x,p,{display:M,transition:A,time:F,blocking:D}){this.show(ee,ne,p,M,A,F,D)},exec_hide(ae,ee,de,ne,x,p,{display:M,transition:A,time:F,blocking:D}){this.hide(ee,ne,p,M,A,F,D)},exec_set_attr(ae,ee,de,ne,x,p,{attr:[M,A]}){this.setOrRemoveAttrs(p,[[M,A]],[])},exec_remove_attr(ae,ee,de,ne,x,p,{attr:M}){this.setOrRemoveAttrs(p,[],[M])},show(ae,ee,de,ne,x,p,M){this.isVisible(de)||this.toggle(ae,ee,de,ne,x,null,p,M)},hide(ae,ee,de,ne,x,p,M){this.isVisible(de)&&this.toggle(ae,ee,de,ne,null,x,p,M)},toggle(ae,ee,de,ne,x,p,M,A){M=M||OX;let[F,D,f]=x||[[],[],[]],[v,u,s]=p||[[],[],[]];if(F.length>0||v.length>0)if(this.isVisible(de)){let r=()=>{this.addOrRemoveClasses(de,u,F.concat(D).concat(f)),window.requestAnimationFrame(()=>{this.addOrRemoveClasses(de,v,[]),window.requestAnimationFrame(()=>this.addOrRemoveClasses(de,s,u))})},d=()=>{this.addOrRemoveClasses(de,[],v.concat(s)),Zt.putSticky(de,"toggle",g=>g.style.display="none"),de.dispatchEvent(new Event("phx:hide-end"))};de.dispatchEvent(new Event("phx:hide-start")),A===!1?(r(),setTimeout(d,M)):ee.transition(M,r,d)}else{if(ae==="remove")return;let r=()=>{this.addOrRemoveClasses(de,D,v.concat(u).concat(s));let g=ne||this.defaultDisplay(de);Zt.putSticky(de,"toggle",m=>m.style.display=g),window.requestAnimationFrame(()=>{this.addOrRemoveClasses(de,F,[]),window.requestAnimationFrame(()=>this.addOrRemoveClasses(de,f,D))})},d=()=>{this.addOrRemoveClasses(de,[],F.concat(f)),de.dispatchEvent(new Event("phx:show-end"))};de.dispatchEvent(new Event("phx:show-start")),A===!1?(r(),setTimeout(d,M)):ee.transition(M,r,d)}else this.isVisible(de)?window.requestAnimationFrame(()=>{de.dispatchEvent(new Event("phx:hide-start")),Zt.putSticky(de,"toggle",r=>r.style.display="none"),de.dispatchEvent(new Event("phx:hide-end"))}):window.requestAnimationFrame(()=>{de.dispatchEvent(new Event("phx:show-start"));let r=ne||this.defaultDisplay(de);Zt.putSticky(de,"toggle",d=>d.style.display=r),de.dispatchEvent(new Event("phx:show-end"))})},toggleClasses(ae,ee,de,ne,x,p){window.requestAnimationFrame(()=>{let[M,A]=Zt.getSticky(ae,"classes",[[],[]]),F=ee.filter(f=>M.indexOf(f)<0&&!ae.classList.contains(f)),D=ee.filter(f=>A.indexOf(f)<0&&ae.classList.contains(f));this.addOrRemoveClasses(ae,F,D,de,ne,x,p)})},toggleAttr(ae,ee,de,ne){ae.hasAttribute(ee)?ne!==void 0?ae.getAttribute(ee)===de?this.setOrRemoveAttrs(ae,[[ee,ne]],[]):this.setOrRemoveAttrs(ae,[[ee,de]],[]):this.setOrRemoveAttrs(ae,[],[ee]):this.setOrRemoveAttrs(ae,[[ee,de]],[])},addOrRemoveClasses(ae,ee,de,ne,x,p,M){x=x||OX;let[A,F,D]=ne||[[],[],[]];if(A.length>0){let f=()=>{this.addOrRemoveClasses(ae,F,[].concat(A).concat(D)),window.requestAnimationFrame(()=>{this.addOrRemoveClasses(ae,A,[]),window.requestAnimationFrame(()=>this.addOrRemoveClasses(ae,D,F))})},v=()=>this.addOrRemoveClasses(ae,ee.concat(D),de.concat(A).concat(F));M===!1?(f(),setTimeout(v,x)):p.transition(x,f,v);return}window.requestAnimationFrame(()=>{let[f,v]=Zt.getSticky(ae,"classes",[[],[]]),u=ee.filter(g=>f.indexOf(g)<0&&!ae.classList.contains(g)),s=de.filter(g=>v.indexOf(g)<0&&ae.classList.contains(g)),r=f.filter(g=>de.indexOf(g)<0).concat(u),d=v.filter(g=>ee.indexOf(g)<0).concat(s);Zt.putSticky(ae,"classes",g=>(g.classList.remove(...d),g.classList.add(...r),[r,d]))})},setOrRemoveAttrs(ae,ee,de){let[ne,x]=Zt.getSticky(ae,"attrs",[[],[]]),p=ee.map(([F,D])=>F).concat(de),M=ne.filter(([F,D])=>!p.includes(F)).concat(ee),A=x.filter(F=>!p.includes(F)).concat(de);Zt.putSticky(ae,"attrs",F=>(A.forEach(D=>F.removeAttribute(D)),M.forEach(([D,f])=>F.setAttribute(D,f)),[M,A]))},hasAllClasses(ae,ee){return ee.every(de=>ae.classList.contains(de))},isToggledOut(ae,ee){return!this.isVisible(ae)||this.hasAllClasses(ae,ee)},filterToEls(ae,ee,{to:de}){let ne=()=>{if(typeof de=="string")return document.querySelectorAll(de);if(de.closest){let x=ee.closest(de.closest);return x?[x]:[]}else if(de.inner)return ee.querySelectorAll(de.inner)};return de?ae.jsQuerySelectorAll(ee,de,ne):[ee]},defaultDisplay(ae){return{tr:"table-row",td:"table-cell"}[ae.tagName.toLowerCase()]||"block"},transitionClasses(ae){if(!ae)return null;let[ee,de,ne]=Array.isArray(ae)?ae:[ae.split(" "),[],[]];return ee=Array.isArray(ee)?ee:ee.split(" "),de=Array.isArray(de)?de:de.split(" "),ne=Array.isArray(ne)?ne:ne.split(" "),[ee,de,ne]}},xr=pxe,Bj="hookId",mxe=1,kO=class{static makeID(){return mxe++}static elementID(ae){return Zt.private(ae,Bj)}constructor(ae,ee,de){this.el=ee,this.__attachView(ae),this.__callbacks=de,this.__listeners=new Set,this.__isDisconnected=!1,Zt.putPrivate(this.el,Bj,this.constructor.makeID());for(let ne in this.__callbacks)this[ne]=this.__callbacks[ne]}__attachView(ae){ae?(this.__view=()=>ae,this.liveSocket=ae.liveSocket):(this.__view=()=>{throw new Error(`hook not yet attached to a live view: ${this.el.outerHTML}`)},this.liveSocket=null)}__mounted(){this.mounted&&this.mounted()}__updated(){this.updated&&this.updated()}__beforeUpdate(){this.beforeUpdate&&this.beforeUpdate()}__destroyed(){this.destroyed&&this.destroyed(),Zt.deletePrivate(this.el,Bj)}__reconnected(){this.__isDisconnected&&(this.__isDisconnected=!1,this.reconnected&&this.reconnected())}__disconnected(){this.__isDisconnected=!0,this.disconnected&&this.disconnected()}js(){let ae=this;return{exec(ee){ae.__view().liveSocket.execJS(ae.el,ee,"hook")},show(ee,de={}){let ne=ae.__view().liveSocket.owner(ee);xr.show("hook",ne,ee,de.display,de.transition,de.time,de.blocking)},hide(ee,de={}){let ne=ae.__view().liveSocket.owner(ee);xr.hide("hook",ne,ee,null,de.transition,de.time,de.blocking)},toggle(ee,de={}){let ne=ae.__view().liveSocket.owner(ee);de.in=xr.transitionClasses(de.in),de.out=xr.transitionClasses(de.out),xr.toggle("hook",ne,ee,de.display,de.in,de.out,de.time,de.blocking)},addClass(ee,de,ne={}){de=Array.isArray(de)?de:de.split(" ");let x=ae.__view().liveSocket.owner(ee);xr.addOrRemoveClasses(ee,de,[],ne.transition,ne.time,x,ne.blocking)},removeClass(ee,de,ne={}){ne.transition=xr.transitionClasses(ne.transition),de=Array.isArray(de)?de:de.split(" ");let x=ae.__view().liveSocket.owner(ee);xr.addOrRemoveClasses(ee,[],de,ne.transition,ne.time,x,ne.blocking)},toggleClass(ee,de,ne={}){ne.transition=xr.transitionClasses(ne.transition),de=Array.isArray(de)?de:de.split(" ");let x=ae.__view().liveSocket.owner(ee);xr.toggleClasses(ee,de,ne.transition,ne.time,x,ne.blocking)},transition(ee,de,ne={}){let x=ae.__view().liveSocket.owner(ee);xr.addOrRemoveClasses(ee,[],[],xr.transitionClasses(de),ne.time,x,ne.blocking)},setAttribute(ee,de,ne){xr.setOrRemoveAttrs(ee,[[de,ne]],[])},removeAttribute(ee,de){xr.setOrRemoveAttrs(ee,[],[de])},toggleAttribute(ee,de,ne,x){xr.toggleAttr(ee,de,ne,x)}}}pushEvent(ae,ee={},de){return de===void 0?new Promise((ne,x)=>{try{this.__view().pushHookEvent(this.el,null,ae,ee,(M,A)=>ne(M))===!1&&x(new Error("unable to push hook event. LiveView not connected"))}catch(p){x(p)}}):this.__view().pushHookEvent(this.el,null,ae,ee,de)}pushEventTo(ae,ee,de={},ne){return ne===void 0?new Promise((x,p)=>{try{this.__view().withinTargets(ae,(M,A)=>{M.pushHookEvent(this.el,A,ee,de,(D,f)=>x(D))===!1&&p(new Error("unable to push hook event. LiveView not connected"))})}catch(M){p(M)}}):this.__view().withinTargets(ae,(x,p)=>x.pushHookEvent(this.el,p,ee,de,ne))}handleEvent(ae,ee){let de=(ne,x)=>x?ae:ee(ne.detail);return window.addEventListener(`phx:${ae}`,de),this.__listeners.add(de),de}removeHandleEvent(ae){let ee=ae(null,!0);window.removeEventListener(`phx:${ee}`,ae),this.__listeners.delete(ae)}upload(ae,ee){return this.__view().dispatchUploads(null,ae,ee)}uploadTo(ae,ee,de){return this.__view().withinTargets(ae,(ne,x)=>{ne.dispatchUploads(x,ee,de)})}__cleanup__(){this.__listeners.forEach(ae=>this.removeHandleEvent(ae))}},fxe=(ae,ee)=>{let de=ae.endsWith("[]"),ne=de?ae.slice(0,-2):ae;return ne=ne.replace(/([^\[\]]+)(\]?$)/,`${ee}$1$2`),de&&(ne+="[]"),ne},bz=(ae,ee,de=[])=>{let f=ee,{submitter:ne}=f,x=ji(f,["submitter"]),p;if(ne&&ne.name){let v=document.createElement("input");v.type="hidden";let u=ne.getAttribute("form");u&&v.setAttribute("form",u),v.name=ne.name,v.value=ne.value,ne.parentElement.insertBefore(v,ne),p=v}let M=new FormData(ae),A=[];M.forEach((v,u,s)=>{v instanceof File&&A.push(u)}),A.forEach(v=>M.delete(v));let F=new URLSearchParams,D=Array.from(ae.elements);for(let[v,u]of M.entries())if(de.length===0||de.indexOf(v)>=0){let s=D.filter(g=>g.name===v),r=!s.some(g=>Zt.private(g,wz)||Zt.private(g,DO)),d=s.every(g=>g.type==="hidden");r&&!(ne&&ne.name==v)&&!d&&F.append(fxe(v,"_unused_"),""),F.append(v,u)}ne&&p&&ne.parentElement.removeChild(p);for(let v in x)F.append(v,x[v]);return F.toString()},vxe=class HX{static closestView(ee){let de=ee.closest(rI);return de?Zt.private(de,"view"):null}constructor(ee,de,ne,x,p){this.isDead=!1,this.liveSocket=de,this.flash=x,this.parent=ne,this.root=ne?ne.root:this,this.el=ee,Zt.putPrivate(this.el,"view",this),this.id=this.el.id,this.ref=0,this.lastAckRef=null,this.childJoins=0,this.loaderTimer=null,this.pendingDiffs=[],this.pendingForms=new Set,this.redirect=!1,this.href=null,this.joinCount=this.parent?this.parent.joinCount-1:0,this.joinAttempts=0,this.joinPending=!0,this.destroyed=!1,this.joinCallback=function(M){M&&M()},this.stopCallback=function(){},this.pendingJoinOps=this.parent?null:[],this.viewHooks={},this.formSubmits=[],this.children=this.parent?null:{},this.root.children[this.id]={},this.formsForRecovery={},this.channel=this.liveSocket.channel(`lv:${this.id}`,()=>{let M=this.href&&this.expandURL(this.href);return{redirect:this.redirect?M:void 0,url:this.redirect?void 0:M||void 0,params:this.connectParams(p),session:this.getSession(),static:this.getStatic(),flash:this.flash}})}setHref(ee){this.href=ee}setRedirect(ee){this.redirect=!0,this.href=ee}isMain(){return this.el.hasAttribute(Kj)}connectParams(ee){let de=this.liveSocket.params(this.el),ne=Zt.all(document,`[${this.binding(Mwe)}]`).map(x=>x.src||x.href).filter(x=>typeof x=="string");return ne.length>0&&(de._track_static=ne),de._mounts=this.joinCount,de._mount_attempts=this.joinAttempts,de._live_referer=ee,this.joinAttempts++,de}isConnected(){return this.channel.canPush()}getSession(){return this.el.getAttribute(WC)}getStatic(){let ee=this.el.getAttribute(aI);return ee===""?null:ee}destroy(ee=function(){}){this.destroyAllChildren(),this.destroyed=!0,delete this.root.children[this.id],this.parent&&delete this.root.children[this.parent.id][this.id],clearTimeout(this.loaderTimer);let de=()=>{ee();for(let ne in this.viewHooks)this.destroyHook(this.viewHooks[ne])};Zt.markPhxChildDestroyed(this.el),this.log("destroyed",()=>["the child has been removed from the parent"]),this.channel.leave().receive("ok",de).receive("error",de).receive("timeout",de)}setContainerClasses(...ee){this.el.classList.remove(lX,iI,CP,cX,vO),this.el.classList.add(...ee)}showLoader(ee){if(clearTimeout(this.loaderTimer),ee)this.loaderTimer=setTimeout(()=>this.showLoader(),ee);else{for(let de in this.viewHooks)this.viewHooks[de].__disconnected();this.setContainerClasses(iI)}}execAll(ee){Zt.all(this.el,`[${ee}]`,de=>this.liveSocket.execJS(de,de.getAttribute(ee)))}hideLoader(){clearTimeout(this.loaderTimer),this.setContainerClasses(lX),this.execAll(this.binding("connected"))}triggerReconnected(){for(let ee in this.viewHooks)this.viewHooks[ee].__reconnected()}log(ee,de){this.liveSocket.log(this,ee,de)}transition(ee,de,ne=function(){}){this.liveSocket.transition(ee,de,ne)}withinTargets(ee,de,ne=document,x){if(ee instanceof HTMLElement||ee instanceof SVGElement)return this.liveSocket.owner(ee,p=>de(p,ee));if(qw(ee))Zt.findComponentNodeList(x||this.el,ee).length===0?ip(`no component found matching phx-target of ${ee}`):de(this,parseInt(ee));else{let p=Array.from(ne.querySelectorAll(ee));p.length===0&&ip(`nothing found matching the phx-target selector "${ee}"`),p.forEach(M=>this.liveSocket.owner(M,A=>de(A,M)))}}applyDiff(ee,de,ne){this.log(ee,()=>["",Sz(de)]);let{diff:x,reply:p,events:M,title:A}=PX.extract(de);ne({diff:x,reply:p,events:M}),(typeof A=="string"||ee=="mount")&&window.requestAnimationFrame(()=>Zt.putTitle(A))}onJoin(ee){let{rendered:de,container:ne,liveview_version:x}=ee;if(ne){let[p,M]=ne;this.el=Zt.replaceRootContainer(this.el,p,M)}this.childJoins=0,this.joinPending=!0,this.flash=null,this.root===this&&(this.formsForRecovery=this.getFormsForRecovery()),this.isMain()&&window.history.state===null&&tp.pushState("replace",{type:"patch",id:this.id,position:this.liveSocket.currentHistoryPosition}),x!==this.liveSocket.version()&&console.error(`LiveView asset version mismatch. JavaScript version ${this.liveSocket.version()} vs. server ${x}. To avoid issues, please ensure that your assets use the same version as the server.`),tp.dropLocal(this.liveSocket.localStorage,window.location.pathname,_X),this.applyDiff("mount",de,({diff:p,events:M})=>{this.rendered=new PX(this.id,p);let[A,F]=this.renderContainer(null,"join");this.dropPendingRefs(),this.joinCount++,this.joinAttempts=0,this.maybeRecoverForms(A,()=>{this.onJoinComplete(ee,A,F,M)})})}dropPendingRefs(){Zt.all(document,`[${Zf}="${this.refSrc()}"]`,ee=>{ee.removeAttribute(xP),ee.removeAttribute(Zf),ee.removeAttribute(Dd)})}onJoinComplete({live_patch:ee},de,ne,x){if(this.joinCount>1||this.parent&&!this.parent.isJoinPending())return this.applyJoinPatch(ee,de,ne,x);Zt.findPhxChildrenInFragment(de,this.id).filter(M=>{let A=M.id&&this.el.querySelector(`[id="${M.id}"]`),F=A&&A.getAttribute(aI);return F&&M.setAttribute(aI,F),A&&A.setAttribute(OA,this.root.id),this.joinChild(M)}).length===0?this.parent?(this.root.pendingJoinOps.push([this,()=>this.applyJoinPatch(ee,de,ne,x)]),this.parent.ackJoin(this)):(this.onAllChildJoinsComplete(),this.applyJoinPatch(ee,de,ne,x)):this.root.pendingJoinOps.push([this,()=>this.applyJoinPatch(ee,de,ne,x)])}attachTrueDocEl(){this.el=Zt.byId(this.id),this.el.setAttribute(OA,this.root.id)}execNewMounted(ee=this.el){let de=this.binding(jj),ne=this.binding(Vj);Zt.all(ee,`[${de}], [${ne}]`,x=>{this.ownsElement(x)&&(Zt.maintainPrivateHooks(x,x,de,ne),this.maybeAddNewHook(x))}),Zt.all(ee,`[${this.binding(yO)}], [data-phx-${yO}]`,x=>{this.ownsElement(x)&&this.maybeAddNewHook(x)}),Zt.all(ee,`[${this.binding(gX)}]`,x=>{this.ownsElement(x)&&this.maybeMounted(x)})}applyJoinPatch(ee,de,ne,x){this.attachTrueDocEl();let p=new yz(this,this.el,this.id,de,ne,null);if(p.markPrunableContentForRemoval(),this.performPatch(p,!1,!0),this.joinNewChildren(),this.execNewMounted(),this.joinPending=!1,this.liveSocket.dispatchEvents(x),this.applyPendingUpdates(),ee){let{kind:M,to:A}=ee;this.liveSocket.historyPatch(A,M)}this.hideLoader(),this.joinCount>1&&this.triggerReconnected(),this.stopCallback()}triggerBeforeUpdateHook(ee,de){this.liveSocket.triggerDOM("onBeforeElUpdated",[ee,de]);let ne=this.getHook(ee),x=ne&&Zt.isIgnored(ee,this.binding(Mz));if(ne&&!ee.isEqualNode(de)&&!(x&&Hwe(ee.dataset,de.dataset)))return ne.__beforeUpdate(),ne}maybeMounted(ee){let de=ee.getAttribute(this.binding(gX)),ne=de&&Zt.private(ee,"mounted");de&&!ne&&(this.liveSocket.execJS(ee,de),Zt.putPrivate(ee,"mounted",!0))}maybeAddNewHook(ee){let de=this.addHook(ee);de&&de.__mounted()}performPatch(ee,de,ne=!1){let x=[],p=!1,M=new Set;return this.liveSocket.triggerDOM("onPatchStart",[ee.targetContainer]),ee.after("added",A=>{this.liveSocket.triggerDOM("onNodeAdded",[A]);let F=this.binding(jj),D=this.binding(Vj);Zt.maintainPrivateHooks(A,A,F,D),this.maybeAddNewHook(A),A.getAttribute&&this.maybeMounted(A)}),ee.after("phxChildAdded",A=>{Zt.isPhxSticky(A)?this.liveSocket.joinRootViews():p=!0}),ee.before("updated",(A,F)=>{this.triggerBeforeUpdateHook(A,F)&&M.add(A.id)}),ee.after("updated",A=>{M.has(A.id)&&this.getHook(A).__updated()}),ee.after("discarded",A=>{A.nodeType===Node.ELEMENT_NODE&&x.push(A)}),ee.after("transitionsDiscarded",A=>this.afterElementsRemoved(A,de)),ee.perform(ne),this.afterElementsRemoved(x,de),this.liveSocket.triggerDOM("onPatchEnd",[ee.targetContainer]),p}afterElementsRemoved(ee,de){let ne=[];ee.forEach(x=>{let p=Zt.all(x,`[${Yw}]`),M=Zt.all(x,`[${this.binding(yO)}], [data-phx-hook]`);p.concat(x).forEach(A=>{let F=this.componentID(A);qw(F)&&ne.indexOf(F)===-1&&ne.push(F)}),M.concat(x).forEach(A=>{let F=this.getHook(A);F&&this.destroyHook(F)})}),de&&this.maybePushComponentsDestroyed(ne)}joinNewChildren(){Zt.findPhxChildren(this.el,this.id).forEach(ee=>this.joinChild(ee))}maybeRecoverForms(ee,de){let ne=this.binding("change"),x=this.root.formsForRecovery,p=document.createElement("template");p.innerHTML=ee;let M=p.content.firstElementChild;M.id=this.id,M.setAttribute(OA,this.root.id),M.setAttribute(WC,this.getSession()),M.setAttribute(aI,this.getStatic()),M.setAttribute(oI,this.parent?this.parent.id:null);let A=Zt.all(p.content,"form").filter(F=>F.id&&x[F.id]).filter(F=>!this.pendingForms.has(F.id)).filter(F=>x[F.id].getAttribute(ne)===F.getAttribute(ne)).map(F=>[x[F.id],F]);if(A.length===0)return de();A.forEach(([F,D],f)=>{this.pendingForms.add(D.id),this.pushFormRecovery(F,D,p.content.firstElementChild,()=>{this.pendingForms.delete(D.id),f===A.length-1&&de()})})}getChildById(ee){return this.root.children[this.id][ee]}getDescendentByEl(ee){var de;return ee.id===this.id?this:(de=this.children[ee.getAttribute(oI)])==null?void 0:de[ee.id]}destroyDescendent(ee){for(let de in this.root.children)for(let ne in this.root.children[de])if(ne===ee)return this.root.children[de][ne].destroy()}joinChild(ee){if(!this.getChildById(ee.id)){let ne=new HX(ee,this.liveSocket,this);return this.root.children[this.id][ne.id]=ne,ne.join(),this.childJoins++,!0}}isJoinPending(){return this.joinPending}ackJoin(ee){this.childJoins--,this.childJoins===0&&(this.parent?this.parent.ackJoin(this):this.onAllChildJoinsComplete())}onAllChildJoinsComplete(){this.pendingForms.clear(),this.formsForRecovery={},this.joinCallback(()=>{this.pendingJoinOps.forEach(([ee,de])=>{ee.isDestroyed()||de()}),this.pendingJoinOps=[]})}update(ee,de){if(this.isJoinPending()||this.liveSocket.hasPendingLink()&&this.root.isMain())return this.pendingDiffs.push({diff:ee,events:de});this.rendered.mergeDiff(ee);let ne=!1;this.rendered.isComponentOnlyDiff(ee)?this.liveSocket.time("component patch complete",()=>{Zt.findExistingParentCIDs(this.el,this.rendered.componentCIDs(ee)).forEach(p=>{this.componentPatch(this.rendered.getComponent(ee,p),p)&&(ne=!0)})}):wX(ee)||this.liveSocket.time("full patch complete",()=>{let[x,p]=this.renderContainer(ee,"update"),M=new yz(this,this.el,this.id,x,p,null);ne=this.performPatch(M,!0)}),this.liveSocket.dispatchEvents(de),ne&&this.joinNewChildren()}renderContainer(ee,de){return this.liveSocket.time(`toString diff (${de})`,()=>{let ne=this.el.tagName,x=ee?this.rendered.componentCIDs(ee):null,[p,M]=this.rendered.toString(x);return[`<${ne}>${p}</${ne}>`,M]})}componentPatch(ee,de){if(wX(ee))return!1;let[ne,x]=this.rendered.componentToString(de),p=new yz(this,this.el,this.id,ne,x,de);return this.performPatch(p,!0)}getHook(ee){return this.viewHooks[kO.elementID(ee)]}addHook(ee){let de=kO.elementID(ee);if(!(ee.getAttribute&&!this.ownsElement(ee)))if(de&&!this.viewHooks[de]){let ne=Zt.getCustomElHook(ee)||ip(`no hook found for custom element: ${ee.id}`);return this.viewHooks[de]=ne,ne.__attachView(this),ne}else{if(de||!ee.getAttribute)return;{let ne=ee.getAttribute(`data-phx-${yO}`)||ee.getAttribute(this.binding(yO)),x=this.liveSocket.getHookCallbacks(ne);if(x){ee.id||ip(`no DOM ID for hook "${ne}". Hooks require a unique ID on each element.`,ee);let p=new kO(this,ee,x);return this.viewHooks[kO.elementID(p.el)]=p,p}else ne!==null&&ip(`unknown hook found for "${ne}"`,ee)}}}destroyHook(ee){let de=kO.elementID(ee.el);ee.__destroyed(),ee.__cleanup__(),delete this.viewHooks[de]}applyPendingUpdates(){this.pendingDiffs.forEach(({diff:ee,events:de})=>this.update(ee,de)),this.pendingDiffs=[],this.eachChild(ee=>ee.applyPendingUpdates())}eachChild(ee){let de=this.root.children[this.id]||{};for(let ne in de)ee(this.getChildById(ne))}onChannel(ee,de){this.liveSocket.onChannel(this.channel,ee,ne=>{this.isJoinPending()?this.root.pendingJoinOps.push([this,()=>de(ne)]):this.liveSocket.requestDOMUpdate(()=>de(ne))})}bindChannel(){this.liveSocket.onChannel(this.channel,"diff",ee=>{this.liveSocket.requestDOMUpdate(()=>{this.applyDiff("update",ee,({diff:de,events:ne})=>this.update(de,ne))})}),this.onChannel("redirect",({to:ee,flash:de})=>this.onRedirect({to:ee,flash:de})),this.onChannel("live_patch",ee=>this.onLivePatch(ee)),this.onChannel("live_redirect",ee=>this.onLiveRedirect(ee)),this.channel.onError(ee=>this.onError(ee)),this.channel.onClose(ee=>this.onClose(ee))}destroyAllChildren(){this.eachChild(ee=>ee.destroy())}onLiveRedirect(ee){let{to:de,kind:ne,flash:x}=ee,p=this.expandURL(de),M=new CustomEvent("phx:server-navigate",{detail:{to:de,kind:ne,flash:x}});this.liveSocket.historyRedirect(M,p,ne,x)}onLivePatch(ee){let{to:de,kind:ne}=ee;this.href=this.expandURL(de),this.liveSocket.historyPatch(de,ne)}expandURL(ee){return ee.startsWith("/")?`${window.location.protocol}//${window.location.host}${ee}`:ee}onRedirect({to:ee,flash:de,reloadToken:ne}){this.liveSocket.redirect(ee,de,ne)}isDestroyed(){return this.destroyed}joinDead(){this.isDead=!0}joinPush(){return this.joinPush=this.joinPush||this.channel.join(),this.joinPush}join(ee){this.showLoader(this.liveSocket.loaderTimeout),this.bindChannel(),this.isMain()&&(this.stopCallback=this.liveSocket.withPageLoading({to:this.href,kind:"initial"})),this.joinCallback=de=>{de=de||function(){},ee?ee(this.joinCount,de):de()},this.wrapPush(()=>this.channel.join(),{ok:de=>this.liveSocket.requestDOMUpdate(()=>this.onJoin(de)),error:de=>this.onJoinError(de),timeout:()=>this.onJoinError({reason:"timeout"})})}onJoinError(ee){if(ee.reason==="reload"){this.log("error",()=>[`failed mount with ${ee.status}. Falling back to page reload`,ee]),this.onRedirect({to:this.root.href,reloadToken:ee.token});return}else if(ee.reason==="unauthorized"||ee.reason==="stale"){this.log("error",()=>["unauthorized live_redirect. Falling back to page request",ee]),this.onRedirect({to:this.root.href});return}if((ee.redirect||ee.live_redirect)&&(this.joinPending=!1,this.channel.leave()),ee.redirect)return this.onRedirect(ee.redirect);if(ee.live_redirect)return this.onLiveRedirect(ee.live_redirect);if(this.log("error",()=>["unable to join",ee]),this.isMain())this.displayError([iI,CP,vO]),this.liveSocket.isConnected()&&this.liveSocket.reloadWithJitter(this);else{this.joinAttempts>=mX&&(this.root.displayError([iI,CP,vO]),this.log("error",()=>[`giving up trying to mount after ${mX} tries`,ee]),this.destroy());let de=Zt.byId(this.el.id);de?(Zt.mergeAttrs(de,this.el),this.displayError([iI,CP,vO]),this.el=de):this.destroy()}}onClose(ee){if(!this.isDestroyed()){if(this.isMain()&&this.liveSocket.hasPendingLink()&&ee!=="leave")return this.liveSocket.reloadWithJitter(this);this.destroyAllChildren(),this.liveSocket.dropActiveElement(this),document.activeElement&&document.activeElement.blur(),this.liveSocket.isUnloaded()&&this.showLoader(Owe)}}onError(ee){this.onClose(ee),this.liveSocket.isConnected()&&this.log("error",()=>["view crashed",ee]),this.liveSocket.isUnloaded()||(this.liveSocket.isConnected()?this.displayError([iI,CP,vO]):this.displayError([iI,CP,cX]))}displayError(ee){this.isMain()&&Zt.dispatchEvent(window,"phx:page-loading-start",{detail:{to:this.href,kind:"error"}}),this.showLoader(),this.setContainerClasses(...ee),this.execAll(this.binding("disconnected"))}wrapPush(ee,de){let ne=this.liveSocket.getLatencySim(),x=ne?p=>setTimeout(()=>!this.isDestroyed()&&p(),ne):p=>!this.isDestroyed()&&p();x(()=>{ee().receive("ok",p=>x(()=>de.ok&&de.ok(p))).receive("error",p=>x(()=>de.error&&de.error(p))).receive("timeout",()=>x(()=>de.timeout&&de.timeout()))})}pushWithReply(ee,de,ne){if(!this.isConnected())return Promise.reject({error:"noconnection"});let[x,[p],M]=ee?ee():[null,[],{}],A=this.joinCount,F=function(){};return M.page_loading&&(F=this.liveSocket.withPageLoading({kind:"element",target:p})),typeof ne.cid!="number"&&delete ne.cid,new Promise((D,f)=>{this.wrapPush(()=>this.channel.push(de,ne,Fwe),{ok:v=>{x!==null&&(this.lastAckRef=x);let u=s=>{v.redirect&&this.onRedirect(v.redirect),v.live_patch&&this.onLivePatch(v.live_patch),v.live_redirect&&this.onLiveRedirect(v.live_redirect),F(),D({resp:v,reply:s})};v.diff?this.liveSocket.requestDOMUpdate(()=>{this.applyDiff("update",v.diff,({diff:s,reply:r,events:d})=>{x!==null&&this.undoRefs(x,ne.event),this.update(s,d),u(r)})}):(x!==null&&this.undoRefs(x,ne.event),u(null))},error:v=>f({error:v}),timeout:()=>{f({timeout:!0}),this.joinCount===A&&this.liveSocket.reloadWithJitter(this,()=>{this.log("timeout",()=>["received timeout while communicating with server. Falling back to hard refresh for recovery"])})}})})}undoRefs(ee,de,ne){if(!this.isConnected())return;let x=`[${Zf}="${this.refSrc()}"]`;ne?(ne=new Set(ne),Zt.all(document,x,p=>{ne&&!ne.has(p)||(Zt.all(p,x,M=>this.undoElRef(M,ee,de)),this.undoElRef(p,ee,de))})):Zt.all(document,x,p=>this.undoElRef(p,ee,de))}undoElRef(ee,de,ne){new kX(ee).maybeUndo(de,ne,p=>{let M=new yz(this,ee,this.id,p,[],null,{undoRef:de}),A=this.performPatch(M,!0);Zt.all(ee,`[${Zf}="${this.refSrc()}"]`,F=>this.undoElRef(F,de,ne)),A&&this.joinNewChildren()})}refSrc(){return this.el.id}putRef(ee,de,ne,x={}){let p=this.ref++,M=this.binding(uX);if(x.loading){let A=Zt.all(document,x.loading).map(F=>({el:F,lock:!0,loading:!0}));ee=ee.concat(A)}for(let{el:A,lock:F,loading:D}of ee){if(!F&&!D)throw new Error("putRef requires lock or loading");if(A.setAttribute(Zf,this.refSrc()),D&&A.setAttribute(xP,p),F&&A.setAttribute(Dd,p),!D||x.submitter&&!(A===x.submitter||A===x.form))continue;let f=new Promise(r=>{A.addEventListener(`phx:undo-lock:${p}`,()=>r(s),{once:!0})}),v=new Promise(r=>{A.addEventListener(`phx:undo-loading:${p}`,()=>r(s),{once:!0})});A.classList.add(`phx-${ne}-loading`);let u=A.getAttribute(M);u!==null&&(A.getAttribute(xz)||A.setAttribute(xz,A.innerText),u!==""&&(A.innerText=u),A.setAttribute(wP,A.getAttribute(wP)||A.disabled),A.setAttribute("disabled",""));let s={event:de,eventType:ne,ref:p,isLoading:D,isLocked:F,lockElements:ee.filter(({lock:r})=>r).map(({el:r})=>r),loadingElements:ee.filter(({loading:r})=>r).map(({el:r})=>r),unlock:r=>{r=Array.isArray(r)?r:[r],this.undoRefs(p,de,r)},lockComplete:f,loadingComplete:v,lock:r=>new Promise(d=>{if(this.isAcked(p))return d(s);r.setAttribute(Dd,p),r.setAttribute(Zf,this.refSrc()),r.addEventListener(`phx:lock-stop:${p}`,()=>d(s),{once:!0})})};A.dispatchEvent(new CustomEvent("phx:push",{detail:s,bubbles:!0,cancelable:!1})),de&&A.dispatchEvent(new CustomEvent(`phx:push:${de}`,{detail:s,bubbles:!0,cancelable:!1}))}return[p,ee.map(({el:A})=>A),x]}isAcked(ee){return this.lastAckRef!==null&&this.lastAckRef>=ee}componentID(ee){let de=ee.getAttribute&&ee.getAttribute(Yw);return de?parseInt(de):null}targetComponentID(ee,de,ne={}){if(qw(de))return de;let x=ne.target||ee.getAttribute(this.binding("target"));return qw(x)?parseInt(x):de&&(x!==null||ne.target)?this.closestComponentID(de):null}closestComponentID(ee){return qw(ee)?ee:ee?LA(ee.closest(`[${Yw}]`),de=>this.ownsElement(de)&&this.componentID(de)):null}pushHookEvent(ee,de,ne,x,p){if(!this.isConnected())return this.log("hook",()=>["unable to push hook event. LiveView not connected",ne,x]),!1;let[M,A,F]=this.putRef([{el:ee,loading:!0,lock:!0}],ne,"hook");return this.pushWithReply(()=>[M,A,F],"event",{type:"hook",event:ne,value:x,cid:this.closestComponentID(de)}).then(({resp:D,reply:f})=>p(f,M)),M}extractMeta(ee,de,ne){let x=this.binding("value-");for(let p=0;p<ee.attributes.length;p++){de||(de={});let M=ee.attributes[p].name;M.startsWith(x)&&(de[M.replace(x,"")]=ee.getAttribute(M))}if(ee.value!==void 0&&!(ee instanceof HTMLFormElement)&&(de||(de={}),de.value=ee.value,ee.tagName==="INPUT"&&GX.indexOf(ee.type)>=0&&!ee.checked&&delete de.value),ne){de||(de={});for(let p in ne)de[p]=ne[p]}return de}pushEvent(ee,de,ne,x,p,M={},A){this.pushWithReply(()=>this.putRef([{el:de,loading:!0,lock:!0}],x,ee,M),"event",{type:ee,event:x,value:this.extractMeta(de,p,M.value),cid:this.targetComponentID(de,ne,M)}).then(({reply:F})=>A&&A(F))}pushFileProgress(ee,de,ne,x=function(){}){this.liveSocket.withinOwners(ee.form,(p,M)=>{p.pushWithReply(null,"progress",{event:ee.getAttribute(p.binding(Pwe)),ref:ee.getAttribute(Xw),entry_ref:de,progress:ne,cid:p.targetComponentID(ee.form,M)}).then(({resp:A})=>x(A))})}pushInput(ee,de,ne,x,p,M){if(!ee.form)throw new Error("form events require the input to be inside a form");let A,F=qw(ne)?ne:this.targetComponentID(ee.form,de,p),D=()=>this.putRef([{el:ee,loading:!0,lock:!0},{el:ee.form,loading:!0,lock:!0}],x,"change",p),f,v=this.extractMeta(ee.form);ee instanceof HTMLButtonElement&&(v.submitter=ee),ee.getAttribute(this.binding("change"))?f=bz(ee.form,pe({_target:p._target},v),[ee.name]):f=bz(ee.form,pe({_target:p._target},v)),Zt.isUploadInput(ee)&&ee.files&&ee.files.length>0&&Ed.trackFiles(ee,Array.from(ee.files)),A=Ed.serializeUploads(ee);let u={type:"form",event:x,value:f,uploads:A,cid:F};this.pushWithReply(D,"event",u).then(({resp:s})=>{Zt.isUploadInput(ee)&&Zt.isAutoUpload(ee)?kX.onUnlock(ee,()=>{if(Ed.filesAwaitingPreflight(ee).length>0){let[r,d]=D();this.undoRefs(r,x,[ee.form]),this.uploadFiles(ee.form,x,de,r,F,g=>{M&&M(s),this.triggerAwaitingSubmit(ee.form,x),this.undoRefs(r,x)})}}):M&&M(s)})}triggerAwaitingSubmit(ee,de){let ne=this.getScheduledSubmit(ee);if(ne){let[x,p,M,A]=ne;this.cancelSubmit(ee,de),A()}}getScheduledSubmit(ee){return this.formSubmits.find(([de,ne,x,p])=>de.isSameNode(ee))}scheduleSubmit(ee,de,ne,x){if(this.getScheduledSubmit(ee))return!0;this.formSubmits.push([ee,de,ne,x])}cancelSubmit(ee,de){this.formSubmits=this.formSubmits.filter(([ne,x,p,M])=>ne.isSameNode(ee)?(this.undoRefs(x,de),!1):!0)}disableForm(ee,de,ne={}){let x=r=>!(AO(r,`${this.binding(Mz)}=ignore`,r.form)||AO(r,"data-phx-update=ignore",r.form)),p=r=>r.hasAttribute(this.binding(uX)),M=r=>r.tagName=="BUTTON",A=r=>["INPUT","TEXTAREA","SELECT"].includes(r.tagName),F=Array.from(ee.elements),D=F.filter(p),f=F.filter(M).filter(x),v=F.filter(A).filter(x);f.forEach(r=>{r.setAttribute(wP,r.disabled),r.disabled=!0}),v.forEach(r=>{r.setAttribute(Hj,r.readOnly),r.readOnly=!0,r.files&&(r.setAttribute(wP,r.disabled),r.disabled=!0)});let u=D.concat(f).concat(v).map(r=>({el:r,loading:!0,lock:!0})),s=[{el:ee,loading:!0,lock:!1}].concat(u).reverse();return this.putRef(s,de,"submit",ne)}pushFormSubmit(ee,de,ne,x,p,M){let A=()=>this.disableForm(ee,ne,et(pe({},p),{form:ee,submitter:x})),F=this.targetComponentID(ee,de);if(Ed.hasUploadsInProgress(ee)){let[D,f]=A(),v=()=>this.pushFormSubmit(ee,de,ne,x,p,M);return this.scheduleSubmit(ee,D,p,v)}else if(Ed.inputsAwaitingPreflight(ee).length>0){let[D,f]=A(),v=()=>[D,f,p];this.uploadFiles(ee,ne,de,D,F,u=>{if(Ed.inputsAwaitingPreflight(ee).length>0)return this.undoRefs(D,ne);let s=this.extractMeta(ee),r=bz(ee,pe({submitter:x},s));this.pushWithReply(v,"event",{type:"form",event:ne,value:r,cid:F}).then(({resp:d})=>M(d))})}else if(!(ee.hasAttribute(Zf)&&ee.classList.contains("phx-submit-loading"))){let D=this.extractMeta(ee),f=bz(ee,pe({submitter:x},D));this.pushWithReply(A,"event",{type:"form",event:ne,value:f,cid:F}).then(({resp:v})=>M(v))}}uploadFiles(ee,de,ne,x,p,M){let A=this.joinCount,F=Ed.activeFileInputs(ee),D=F.length;F.forEach(f=>{let v=new Ed(f,this,()=>{D--,D===0&&M()}),u=v.entries().map(r=>r.toPreflightPayload());if(u.length===0){D--;return}let s={ref:f.getAttribute(Xw),entries:u,cid:this.targetComponentID(f.form,ne)};this.log("upload",()=>["sending preflight request",s]),this.pushWithReply(null,"allow_upload",s).then(({resp:r})=>{if(this.log("upload",()=>["got preflight response",r]),v.entries().forEach(d=>{r.entries&&!r.entries[d.ref]&&this.handleFailedEntryPreflight(d.ref,"failed preflight",v)}),r.error||Object.keys(r.entries).length===0)this.undoRefs(x,de),(r.error||[]).map(([g,m])=>{this.handleFailedEntryPreflight(g,m,v)});else{let d=g=>{this.channel.onError(()=>{this.joinCount===A&&g()})};v.initAdapterUpload(r,d,this.liveSocket)}})})}handleFailedEntryPreflight(ee,de,ne){if(ne.isAutoUpload()){let x=ne.entries().find(p=>p.ref===ee.toString());x&&x.cancel()}else ne.entries().map(x=>x.cancel());this.log("upload",()=>[`error for entry ${ee}`,de])}dispatchUploads(ee,de,ne){let x=this.targetCtxElement(ee)||this.el,p=Zt.findUploadInputs(x).filter(M=>M.name===de);p.length===0?ip(`no live file inputs found matching the name "${de}"`):p.length>1?ip(`duplicate live file inputs found matching the name "${de}"`):Zt.dispatchEvent(p[0],NX,{detail:{files:ne}})}targetCtxElement(ee){if(qw(ee)){let[de]=Zt.findComponentNodeList(this.el,ee);return de}else return ee||null}pushFormRecovery(ee,de,ne,x){let p=this.binding("change"),M=de.getAttribute(this.binding("target"))||de,A=de.getAttribute(this.binding(hX))||de.getAttribute(this.binding("change")),F=Array.from(ee.elements).filter(v=>Zt.isFormInput(v)&&v.name&&!v.hasAttribute(p));if(F.length===0)return;F.forEach(v=>v.hasAttribute(Xw)&&Ed.clearFiles(v));let D=F.find(v=>v.type!=="hidden")||F[0],f=0;this.withinTargets(M,(v,u)=>{let s=this.targetComponentID(de,u);f++;let r=new CustomEvent("phx:form-recovery",{detail:{sourceElement:ee}});xr.exec(r,"change",A,this,D,["push",{_target:D.name,targetView:v,targetCtx:u,newCid:s,callback:()=>{f--,f===0&&x()}}])},ne,ne)}pushLinkPatch(ee,de,ne,x){let p=this.liveSocket.setPendingLink(de),M=ee.isTrusted&&ee.type!=="popstate",A=ne?()=>this.putRef([{el:ne,loading:M,lock:!0}],null,"click"):null,F=()=>this.liveSocket.redirect(window.location.href),D=de.startsWith("/")?`${location.protocol}//${location.host}${de}`:de;this.pushWithReply(A,"live_patch",{url:D}).then(({resp:f})=>{this.liveSocket.requestDOMUpdate(()=>{f.link_redirect?this.liveSocket.replaceMain(de,null,x,p):(this.liveSocket.commitPendingLink(p)&&(this.href=de),this.applyPendingUpdates(),x&&x(p))})},({error:f,timeout:v})=>F())}getFormsForRecovery(){if(this.joinCount===0)return{};let ee=this.binding("change");return Zt.all(this.el,`form[${ee}]`).filter(de=>de.id).filter(de=>de.elements.length>0).filter(de=>de.getAttribute(this.binding(hX))!=="ignore").map(de=>de.cloneNode(!0)).reduce((de,ne)=>(de[ne.id]=ne,de),{})}maybePushComponentsDestroyed(ee){let de=ee.filter(ne=>Zt.findComponentNodeList(this.el,ne).length===0);de.length>0&&(de.forEach(ne=>this.rendered.resetRender(ne)),this.pushWithReply(null,"cids_will_destroy",{cids:de}).then(()=>{this.liveSocket.requestDOMUpdate(()=>{let ne=de.filter(x=>Zt.findComponentNodeList(this.el,x).length===0);ne.length>0&&this.pushWithReply(null,"cids_destroyed",{cids:ne}).then(({resp:x})=>{this.rendered.pruneCIDs(x.cids)})})}))}ownsElement(ee){let de=ee.closest(rI);return ee.getAttribute(oI)===this.id||de&&de.id===this.id||!de&&this.isDead}submitForm(ee,de,ne,x,p={}){Zt.putPrivate(ee,DO,!0),Array.from(ee.elements).forEach(A=>Zt.putPrivate(A,DO,!0)),this.liveSocket.blurActiveElement(this),this.pushFormSubmit(ee,de,ne,x,p,()=>{this.liveSocket.restorePreviouslyActiveFocus()})}binding(ee){return this.liveSocket.binding(ee)}};var WX=class{constructor(ae,ee,de={}){if(this.unloaded=!1,!ee||ee.constructor.name==="Object")throw new Error(`
      a phoenix Socket must be provided as the second argument to the LiveSocket constructor. For example:

          import {Socket} from "phoenix"
          import {LiveSocket} from "phoenix_live_view"
          let liveSocket = new LiveSocket("/live", Socket, {...})
      `);this.socket=new ee(ae,de),this.bindingPrefix=de.bindingPrefix||_we,this.opts=de,this.params=wO(de.params||{}),this.viewLogger=de.viewLogger,this.metadataCallbacks=de.metadata||{},this.defaults=Object.assign(Sz(Nwe),de.defaults||{}),this.activeElement=null,this.prevActive=null,this.silenced=!1,this.main=null,this.outgoingMainEl=null,this.clickStartedAtTarget=null,this.linkRef=1,this.roots={},this.href=window.location.href,this.pendingLink=null,this.currentLocation=Sz(window.location),this.hooks=de.hooks||{},this.uploaders=de.uploaders||{},this.loaderTimeout=de.loaderTimeout||Lwe,this.reloadWithJitterTimer=null,this.maxReloads=de.maxReloads||Cwe,this.reloadJitterMin=de.reloadJitterMin||Swe,this.reloadJitterMax=de.reloadJitterMax||wwe,this.failsafeJitter=de.failsafeJitter||xwe,this.localStorage=de.localStorage||window.localStorage,this.sessionStorage=de.sessionStorage||window.sessionStorage,this.boundTopLevelEvents=!1,this.boundEventNames=new Set,this.serverCloseRef=null,this.domCallbacks=Object.assign({jsQuerySelectorAll:null,onPatchStart:wO(),onPatchEnd:wO(),onNodeAdded:wO(),onBeforeElUpdated:wO()},de.dom||{}),this.transitions=new yxe,this.currentHistoryPosition=parseInt(this.sessionStorage.getItem(pz))||0,window.addEventListener("pagehide",ne=>{this.unloaded=!0}),this.socket.onOpen(()=>{this.isUnloaded()&&window.location.reload()})}version(){return"1.0.3"}isProfileEnabled(){return this.sessionStorage.getItem(_j)==="true"}isDebugEnabled(){return this.sessionStorage.getItem(gz)==="true"}isDebugDisabled(){return this.sessionStorage.getItem(gz)==="false"}enableDebug(){this.sessionStorage.setItem(gz,"true")}enableProfiling(){this.sessionStorage.setItem(_j,"true")}disableDebug(){this.sessionStorage.setItem(gz,"false")}disableProfiling(){this.sessionStorage.removeItem(_j)}enableLatencySim(ae){this.enableDebug(),console.log("latency simulator enabled for the duration of this browser session. Call disableLatencySim() to disable"),this.sessionStorage.setItem(Fj,ae)}disableLatencySim(){this.sessionStorage.removeItem(Fj)}getLatencySim(){let ae=this.sessionStorage.getItem(Fj);return ae?parseInt(ae):null}getSocket(){return this.socket}connect(){window.location.hostname==="localhost"&&!this.isDebugDisabled()&&this.enableDebug();let ae=()=>{this.resetReloadStatus(),this.joinRootViews()?(this.bindTopLevelEvents(),this.socket.connect()):this.main?this.socket.connect():this.bindTopLevelEvents({dead:!0}),this.joinDeadView()};["complete","loaded","interactive"].indexOf(document.readyState)>=0?ae():document.addEventListener("DOMContentLoaded",()=>ae())}disconnect(ae){clearTimeout(this.reloadWithJitterTimer),this.serverCloseRef&&(this.socket.off(this.serverCloseRef),this.serverCloseRef=null),this.socket.disconnect(ae)}replaceTransport(ae){clearTimeout(this.reloadWithJitterTimer),this.socket.replaceTransport(ae),this.connect()}execJS(ae,ee,de=null){let ne=new CustomEvent("phx:exec",{detail:{sourceElement:ae}});this.owner(ae,x=>xr.exec(ne,de,ee,x,ae))}execJSHookPush(ae,ee,de,ne){this.withinOwners(ae,x=>{let p=new CustomEvent("phx:exec",{detail:{sourceElement:ae}});xr.exec(p,"hook",ee,x,ae,["push",{data:de,callback:ne}])})}unload(){this.unloaded||(this.main&&this.isConnected()&&this.log(this.main,"socket",()=>["disconnect for page nav"]),this.unloaded=!0,this.destroyAllViews(),this.disconnect())}triggerDOM(ae,ee){this.domCallbacks[ae](...ee)}time(ae,ee){if(!this.isProfileEnabled()||!console.time)return ee();console.time(ae);let de=ee();return console.timeEnd(ae),de}log(ae,ee,de){if(this.viewLogger){let[ne,x]=de();this.viewLogger(ae,ee,ne,x)}else if(this.isDebugEnabled()){let[ne,x]=de();Vwe(ae,ee,ne,x)}}requestDOMUpdate(ae){this.transitions.after(ae)}transition(ae,ee,de=function(){}){this.transitions.addTransition(ae,ee,de)}onChannel(ae,ee,de){ae.on(ee,ne=>{let x=this.getLatencySim();x?setTimeout(()=>de(ne),x):de(ne)})}reloadWithJitter(ae,ee){clearTimeout(this.reloadWithJitterTimer),this.disconnect();let de=this.reloadJitterMin,ne=this.reloadJitterMax,x=Math.floor(Math.random()*(ne-de+1))+de,p=tp.updateLocal(this.localStorage,window.location.pathname,_X,0,M=>M+1);p>=this.maxReloads&&(x=this.failsafeJitter),this.reloadWithJitterTimer=setTimeout(()=>{ae.isDestroyed()||ae.isConnected()||(ae.destroy(),ee?ee():this.log(ae,"join",()=>[`encountered ${p} consecutive reloads`]),p>=this.maxReloads&&this.log(ae,"join",()=>[`exceeded ${this.maxReloads} consecutive reloads. Entering failsafe mode`]),this.hasPendingLink()?window.location=this.pendingLink:window.location.reload())},x)}getHookCallbacks(ae){return ae&&ae.startsWith("Phoenix.")?Zwe[ae.split(".")[1]]:this.hooks[ae]}isUnloaded(){return this.unloaded}isConnected(){return this.socket.isConnected()}getBindingPrefix(){return this.bindingPrefix}binding(ae){return`${this.getBindingPrefix()}${ae}`}channel(ae,ee){return this.socket.channel(ae,ee)}joinDeadView(){let ae=document.body;if(ae&&!this.isPhxView(ae)&&!this.isPhxView(document.firstElementChild)){let ee=this.newRootView(ae);ee.setHref(this.getHref()),ee.joinDead(),this.main||(this.main=ee),window.requestAnimationFrame(()=>{var de;ee.execNewMounted(),this.maybeScroll((de=history.state)==null?void 0:de.scroll)})}}joinRootViews(){let ae=!1;return Zt.all(document,`${rI}:not([${oI}])`,ee=>{if(!this.getRootById(ee.id)){let de=this.newRootView(ee);Zt.isPhxSticky(ee)||de.setHref(this.getHref()),de.join(),ee.hasAttribute(Kj)&&(this.main=de)}ae=!0}),ae}redirect(ae,ee,de){de&&tp.setCookie(pX,de,60),this.unload(),tp.redirect(ae,ee)}replaceMain(ae,ee,de=null,ne=this.setPendingLink(ae)){let x=this.currentLocation.href;this.outgoingMainEl=this.outgoingMainEl||this.main.el;let p=Zt.all(this.outgoingMainEl,`[${this.binding("remove")}]`),M=Zt.cloneNode(this.outgoingMainEl,"");this.main.showLoader(this.loaderTimeout),this.main.destroy(),this.main=this.newRootView(M,ee,x),this.main.setRedirect(ae),this.transitionRemoves(p,!0),this.main.join((A,F)=>{A===1&&this.commitPendingLink(ne)&&this.requestDOMUpdate(()=>{p.forEach(D=>D.remove()),Zt.findPhxSticky(document).forEach(D=>M.appendChild(D)),this.outgoingMainEl.replaceWith(M),this.outgoingMainEl=null,de&&de(ne),F()})})}transitionRemoves(ae,ee,de){let ne=this.binding("remove");if(ee){let p=Zt.findPhxSticky(document)||[];ae=ae.filter(M=>!Zt.isChildOfAny(M,p))}let x=p=>{p.preventDefault(),p.stopImmediatePropagation()};ae.forEach(p=>{for(let M of this.boundEventNames)p.addEventListener(M,x,!0);this.execJS(p,p.getAttribute(ne),"remove")}),this.requestDOMUpdate(()=>{ae.forEach(p=>{for(let M of this.boundEventNames)p.removeEventListener(M,x,!0)}),de&&de()})}isPhxView(ae){return ae.getAttribute&&ae.getAttribute(WC)!==null}newRootView(ae,ee,de){let ne=new vxe(ae,this,null,ee,de);return this.roots[ne.id]=ne,ne}owner(ae,ee){let de=LA(ae.closest(rI),ne=>this.getViewByEl(ne))||this.main;return de&&ee?ee(de):de}withinOwners(ae,ee){this.owner(ae,de=>ee(de,ae))}getViewByEl(ae){let ee=ae.getAttribute(OA);return LA(this.getRootById(ee),de=>de.getDescendentByEl(ae))}getRootById(ae){return this.roots[ae]}destroyAllViews(){for(let ae in this.roots)this.roots[ae].destroy(),delete this.roots[ae];this.main=null}destroyViewByEl(ae){let ee=this.getRootById(ae.getAttribute(OA));ee&&ee.id===ae.id?(ee.destroy(),delete this.roots[ee.id]):ee&&ee.destroyDescendent(ae.id)}getActiveElement(){return document.activeElement}dropActiveElement(ae){this.prevActive&&ae.ownsElement(this.prevActive)&&(this.prevActive=null)}restorePreviouslyActiveFocus(){this.prevActive&&this.prevActive!==document.body&&this.prevActive.focus()}blurActiveElement(){this.prevActive=this.getActiveElement(),this.prevActive!==document.body&&this.prevActive.blur()}bindTopLevelEvents({dead:ae}={}){this.boundTopLevelEvents||(this.boundTopLevelEvents=!0,this.serverCloseRef=this.socket.onClose(ee=>{if(ee&&ee.code===1e3&&this.main)return this.reloadWithJitter(this.main)}),document.body.addEventListener("click",function(){}),window.addEventListener("pageshow",ee=>{ee.persisted&&(this.getSocket().disconnect(),this.withPageLoading({to:window.location.href,kind:"redirect"}),window.location.reload())},!0),ae||this.bindNav(),this.bindClicks(),ae||this.bindForms(),this.bind({keyup:"keyup",keydown:"keydown"},(ee,de,ne,x,p,M)=>{let A=x.getAttribute(this.binding(Rwe)),F=ee.key&&ee.key.toLowerCase();if(A&&A.toLowerCase()!==F)return;let D=pe({key:ee.key},this.eventMeta(de,ee,x));xr.exec(ee,de,p,ne,x,["push",{data:D}])}),this.bind({blur:"focusout",focus:"focusin"},(ee,de,ne,x,p,M)=>{if(!M){let A=pe({key:ee.key},this.eventMeta(de,ee,x));xr.exec(ee,de,p,ne,x,["push",{data:A}])}}),this.bind({blur:"blur",focus:"focus"},(ee,de,ne,x,p,M)=>{if(M==="window"){let A=this.eventMeta(de,ee,x);xr.exec(ee,de,p,ne,x,["push",{data:A}])}}),this.on("dragover",ee=>ee.preventDefault()),this.on("drop",ee=>{ee.preventDefault();let de=LA(AO(ee.target,this.binding(rX)),p=>p.getAttribute(this.binding(rX))),ne=de&&document.getElementById(de),x=Array.from(ee.dataTransfer.files||[]);!ne||ne.disabled||x.length===0||!(ne.files instanceof FileList)||(Ed.trackFiles(ne,x,ee.dataTransfer),ne.dispatchEvent(new Event("input",{bubbles:!0})))}),this.on(NX,ee=>{let de=ee.target;if(!Zt.isUploadInput(de))return;let ne=Array.from(ee.detail.files||[]).filter(x=>x instanceof File||x instanceof Blob);Ed.trackFiles(de,ne),de.dispatchEvent(new Event("input",{bubbles:!0}))}))}eventMeta(ae,ee,de){let ne=this.metadataCallbacks[ae];return ne?ne(ee,de):{}}setPendingLink(ae){return this.linkRef++,this.pendingLink=ae,this.resetReloadStatus(),this.linkRef}resetReloadStatus(){tp.deleteCookie(pX)}commitPendingLink(ae){return this.linkRef!==ae?!1:(this.href=this.pendingLink,this.pendingLink=null,!0)}getHref(){return this.href}hasPendingLink(){return!!this.pendingLink}bind(ae,ee){for(let de in ae){let ne=ae[de];this.on(ne,x=>{let p=this.binding(de),M=this.binding(`window-${de}`),A=x.target.getAttribute&&x.target.getAttribute(p);A?this.debounce(x.target,x,ne,()=>{this.withinOwners(x.target,F=>{ee(x,de,F,x.target,A,null)})}):Zt.all(document,`[${M}]`,F=>{let D=F.getAttribute(M);this.debounce(F,x,ne,()=>{this.withinOwners(F,f=>{ee(x,de,f,F,D,"window")})})})})}}bindClicks(){this.on("mousedown",ae=>this.clickStartedAtTarget=ae.target),this.bindClick("click","click")}bindClick(ae,ee){let de=this.binding(ee);window.addEventListener(ae,ne=>{let x=null;ne.detail===0&&(this.clickStartedAtTarget=ne.target);let p=this.clickStartedAtTarget||ne.target;x=AO(ne.target,de),this.dispatchClickAway(ne,p),this.clickStartedAtTarget=null;let M=x&&x.getAttribute(de);if(!M){Zt.isNewPageClick(ne,window.location)&&this.unload();return}x.getAttribute("href")==="#"&&ne.preventDefault(),!x.hasAttribute(Zf)&&this.debounce(x,ne,"click",()=>{this.withinOwners(x,A=>{xr.exec(ne,"click",M,A,x,["push",{data:this.eventMeta("click",ne,x)}])})})},!1)}dispatchClickAway(ae,ee){let de=this.binding("click-away");Zt.all(document,`[${de}]`,ne=>{ne.isSameNode(ee)||ne.contains(ee)||this.withinOwners(ne,x=>{let p=ne.getAttribute(de);xr.isVisible(ne)&&xr.isInViewport(ne)&&xr.exec(ae,"click",p,x,ne,["push",{data:this.eventMeta("click",ae,ae.target)}])})})}bindNav(){if(!tp.canPushState())return;history.scrollRestoration&&(history.scrollRestoration="manual");let ae=null;window.addEventListener("scroll",ee=>{clearTimeout(ae),ae=setTimeout(()=>{tp.updateCurrentState(de=>Object.assign(de,{scroll:window.scrollY}))},100)}),window.addEventListener("popstate",ee=>{if(!this.registerNewLocation(window.location))return;let{type:de,backType:ne,id:x,scroll:p,position:M}=ee.state||{},A=window.location.href,F=M>this.currentHistoryPosition;de=F?de:ne||de,this.currentHistoryPosition=M||0,this.sessionStorage.setItem(pz,this.currentHistoryPosition.toString()),Zt.dispatchEvent(window,"phx:navigate",{detail:{href:A,patch:de==="patch",pop:!0,direction:F?"forward":"backward"}}),this.requestDOMUpdate(()=>{let D=()=>{this.maybeScroll(p)};this.main.isConnected()&&de==="patch"&&x===this.main.id?this.main.pushLinkPatch(ee,A,null,D):this.replaceMain(A,null,D)})},!1),window.addEventListener("click",ee=>{let de=AO(ee.target,Lj),ne=de&&de.getAttribute(Lj);if(!ne||!this.isConnected()||!this.main||Zt.wantsNewTab(ee))return;let x=de.href instanceof SVGAnimatedString?de.href.baseVal:de.href,p=de.getAttribute(kwe);ee.preventDefault(),ee.stopImmediatePropagation(),this.pendingLink!==x&&this.requestDOMUpdate(()=>{if(ne==="patch")this.pushHistoryPatch(ee,x,p,de);else if(ne==="redirect")this.historyRedirect(ee,x,p,null,de);else throw new Error(`expected ${Lj} to be "patch" or "redirect", got: ${ne}`);let M=de.getAttribute(this.binding("click"));M&&this.requestDOMUpdate(()=>this.execJS(de,M,"click"))})},!1)}maybeScroll(ae){typeof ae=="number"&&requestAnimationFrame(()=>{window.scrollTo(0,ae)})}dispatchEvent(ae,ee={}){Zt.dispatchEvent(window,`phx:${ae}`,{detail:ee})}dispatchEvents(ae){ae.forEach(([ee,de])=>this.dispatchEvent(ee,de))}withPageLoading(ae,ee){Zt.dispatchEvent(window,"phx:page-loading-start",{detail:ae});let de=()=>Zt.dispatchEvent(window,"phx:page-loading-stop",{detail:ae});return ee?ee(de):de}pushHistoryPatch(ae,ee,de,ne){if(!this.isConnected()||!this.main.isMain())return tp.redirect(ee);this.withPageLoading({to:ee,kind:"patch"},x=>{this.main.pushLinkPatch(ae,ee,ne,p=>{this.historyPatch(ee,de,p),x()})})}historyPatch(ae,ee,de=this.setPendingLink(ae)){this.commitPendingLink(de)&&(this.currentHistoryPosition++,this.sessionStorage.setItem(pz,this.currentHistoryPosition.toString()),tp.updateCurrentState(ne=>et(pe({},ne),{backType:"patch"})),tp.pushState(ee,{type:"patch",id:this.main.id,position:this.currentHistoryPosition},ae),Zt.dispatchEvent(window,"phx:navigate",{detail:{patch:!0,href:ae,pop:!1,direction:"forward"}}),this.registerNewLocation(window.location))}historyRedirect(ae,ee,de,ne,x){if(x&&ae.isTrusted&&ae.type!=="popstate"&&x.classList.add("phx-click-loading"),!this.isConnected()||!this.main.isMain())return tp.redirect(ee,ne);if(/^\/$|^\/[^\/]+.*$/.test(ee)){let{protocol:M,host:A}=window.location;ee=`${M}//${A}${ee}`}let p=window.scrollY;this.withPageLoading({to:ee,kind:"redirect"},M=>{this.replaceMain(ee,ne,A=>{A===this.linkRef&&(this.currentHistoryPosition++,this.sessionStorage.setItem(pz,this.currentHistoryPosition.toString()),tp.updateCurrentState(F=>et(pe({},F),{backType:"redirect"})),tp.pushState(de,{type:"redirect",id:this.main.id,scroll:p,position:this.currentHistoryPosition},ee),Zt.dispatchEvent(window,"phx:navigate",{detail:{href:ee,patch:!1,pop:!1,direction:"forward"}}),this.registerNewLocation(window.location)),M()})})}registerNewLocation(ae){let{pathname:ee,search:de}=this.currentLocation;return ee+de===ae.pathname+ae.search?!1:(this.currentLocation=Sz(ae),!0)}bindForms(){let ae=0,ee=!1;this.on("submit",de=>{let ne=de.target.getAttribute(this.binding("submit")),x=de.target.getAttribute(this.binding("change"));!ee&&x&&!ne&&(ee=!0,de.preventDefault(),this.withinOwners(de.target,p=>{p.disableForm(de.target),window.requestAnimationFrame(()=>{Zt.isUnloadableFormSubmit(de)&&this.unload(),de.target.submit()})}))}),this.on("submit",de=>{let ne=de.target.getAttribute(this.binding("submit"));if(!ne){Zt.isUnloadableFormSubmit(de)&&this.unload();return}de.preventDefault(),de.target.disabled=!0,this.withinOwners(de.target,x=>{xr.exec(de,"submit",ne,x,de.target,["push",{submitter:de.submitter}])})});for(let de of["change","input"])this.on(de,ne=>{if(ne instanceof CustomEvent&&ne.target.form===void 0){if(ne.detail&&ne.detail.dispatcher)throw new Error(`dispatching a custom ${de} event is only supported on input elements inside a form`);return}let x=this.binding("change"),p=ne.target;if(ne.isComposing){let s=`composition-listener-${de}`;Zt.private(p,s)||(Zt.putPrivate(p,s,!0),p.addEventListener("compositionend",()=>{p.dispatchEvent(new Event(de,{bubbles:!0})),Zt.deletePrivate(p,s)},{once:!0}));return}let M=p.getAttribute(x),A=p.form&&p.form.getAttribute(x),F=M||A;if(!F||p.type==="number"&&p.validity&&p.validity.badInput)return;let D=M?p:p.form,f=ae;ae++;let{at:v,type:u}=Zt.private(p,"prev-iteration")||{};v===f-1&&de==="change"&&u==="input"||(Zt.putPrivate(p,"prev-iteration",{at:f,type:de}),this.debounce(p,ne,de,()=>{this.withinOwners(D,s=>{Zt.putPrivate(p,wz,!0),xr.exec(ne,"change",F,s,p,["push",{_target:ne.target.name,dispatcher:D}])})}))});this.on("reset",de=>{let ne=de.target;Zt.resetForm(ne);let x=Array.from(ne.elements).find(p=>p.type==="reset");x&&window.requestAnimationFrame(()=>{x.dispatchEvent(new Event("input",{bubbles:!0,cancelable:!1}))})})}debounce(ae,ee,de,ne){if(de==="blur"||de==="focusout")return ne();let x=this.binding(Iwe),p=this.binding(Twe),M=this.defaults.debounce.toString(),A=this.defaults.throttle.toString();this.withinOwners(ae,F=>{let D=()=>!F.isDestroyed()&&document.body.contains(ae);Zt.debounce(ae,ee,x,M,p,A,D,()=>{ne()})})}silenceEvents(ae){this.silenced=!0,ae(),this.silenced=!1}on(ae,ee){this.boundEventNames.add(ae),window.addEventListener(ae,de=>{this.silenced||ee(de)})}jsQuerySelectorAll(ae,ee,de){let ne=this.domCallbacks.jsQuerySelectorAll;return ne?ne(ae,ee,de):de()}},yxe=class{constructor(){this.transitions=new Set,this.pendingOps=[]}reset(){this.transitions.forEach(ae=>{clearTimeout(ae),this.transitions.delete(ae)}),this.flushPendingOps()}after(ae){this.size()===0?ae():this.pushPendingOp(ae)}addTransition(ae,ee,de){ee();let ne=setTimeout(()=>{this.transitions.delete(ne),de(),this.flushPendingOps()},ae);this.transitions.add(ne)}pushPendingOp(ae){this.pendingOps.push(ae)}size(){return this.transitions.size}flushPendingOps(){if(this.size()>0)return;let ae=this.pendingOps.shift();ae&&(ae(),this.flushPendingOps())}};var Xj={};Xj.Focus={mounted(){this.el.focus()}};var Vz=bP(KX()),bxe=bP(qX()),$4e=bP(XX()),Cxe=bP(vZ()),Q4e=bP(HZ()),UZ=bP(WZ());window.agGrid=bxe;window.agCharts=Cxe;window.jsPlumb=UZ.jsPlumb;var Sxe=document.querySelector("meta[name='csrf-token']").getAttribute("content"),KZ=new WX("/live",oX,{hooks:Xj,dom:{onBeforeElUpdated(ae,ee){ae._x_dataStack&&window.Alpine.clone(ae,ee)}},longPollFallbackMs:2500,params:{_csrf_token:Sxe}});Vz.default.config({barColors:{0:"#29d"},shadowColor:"rgba(0, 0, 0, .3)"});window.addEventListener("phx:page-loading-start",ae=>Vz.default.show(300));window.addEventListener("phx:page-loading-stop",ae=>Vz.default.hide());KZ.connect();window.liveSocket=KZ;})();
/**
 * @license MIT
 * topbar 2.0.0, 2023-02-04
 * https://buunguyen.github.io/topbar
 * Copyright (c) 2021 Buu Nguyen
 */
